@konnectio/core 4.0.42 → 4.0.43
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-58df4817.cjs → ActionField-43360bd2.cjs} +1 -1
- package/dist/{ActionField-deec84ca.js → ActionField-46bc1332.js} +2 -2
- package/dist/ActionField-46bc1332.js.br +0 -0
- package/dist/{AvailabilitySkeleton-ca0f55c9.cjs → AvailabilitySkeleton-0a70de37.cjs} +1 -1
- package/dist/{AvailabilitySkeleton-16e7a713.js → AvailabilitySkeleton-f86f40b9.js} +5 -5
- package/dist/AvailabilitySkeleton-f86f40b9.js.br +0 -0
- package/dist/{CheckoutWindow-7251f2b5.js → CheckoutWindow-046e2e84.js} +1 -1
- package/dist/CheckoutWindow-046e2e84.js.br +0 -0
- package/dist/{CheckoutWindow-4f6a485b.cjs → CheckoutWindow-a2dfaa01.cjs} +1 -1
- package/dist/{DateField.vue_vue_type_style_index_0_lang-c61ab1c5.js → DateField.vue_vue_type_style_index_0_lang-10d7dd19.js} +221 -221
- package/dist/DateField.vue_vue_type_style_index_0_lang-10d7dd19.js.br +0 -0
- package/dist/{DateField.vue_vue_type_style_index_0_lang-36580b9f.cjs → DateField.vue_vue_type_style_index_0_lang-a4c0f28b.cjs} +1 -1
- package/dist/{Field-773fbfa9.cjs → Field-0588c03e.cjs} +1 -1
- package/dist/{Field-ce51be09.js → Field-a28f1e97.js} +2 -2
- package/dist/Field-a28f1e97.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-10a5f9ca.cjs → NumberField.vue_vue_type_script_setup_true_lang-01f7e3ee.cjs} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-9f68127f.js → NumberField.vue_vue_type_script_setup_true_lang-9edbbae0.js} +1 -1
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-9edbbae0.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-6990aef4.cjs → SelectField.vue_vue_type_style_index_0_lang-88de73f4.cjs} +15 -15
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-6f724c35.js → SelectField.vue_vue_type_style_index_0_lang-fbce2406.js} +30 -29
- package/dist/SelectField.vue_vue_type_style_index_0_lang-fbce2406.js.br +0 -0
- package/dist/{ThankYou-81753dcb.js → ThankYou-0b7441d8.js} +4465 -3940
- package/dist/ThankYou-0b7441d8.js.br +0 -0
- package/dist/ThankYou-2acb4fdf.cjs +59 -0
- package/dist/{_-c9150186.cjs → _-357f8de1.cjs} +1 -1
- package/dist/{_-a6ac9a82.js → _-5f328ff3.js} +1 -1
- package/dist/availability.cjs +1 -1
- package/dist/availability.js +7 -7
- package/dist/availability.js.br +0 -0
- package/dist/components/forms/ReservationForm.vue.d.ts +2 -1
- package/dist/components/forms/ReservationForm.vue.d.ts.map +1 -1
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/components/side-panels/Base.vue.d.ts +1 -1
- package/dist/components/side-panels/ListingInfo.vue.d.ts +5 -0
- package/dist/components/side-panels/ListingInfo.vue.d.ts.map +1 -0
- package/dist/components/side-panels/TermsOfService.vue.d.ts +5 -0
- package/dist/components/side-panels/TermsOfService.vue.d.ts.map +1 -0
- package/dist/components/views/TermsOfService.vue.d.ts +1 -1
- package/dist/{event-3b54636f.js → event-7eca2398.js} +7 -7
- package/dist/event-7eca2398.js.br +0 -0
- package/dist/{event-f5b6a5fb.cjs → event-b8c5517e.cjs} +1 -1
- package/dist/event.cjs +1 -1
- package/dist/event.js +8 -8
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -1
- package/dist/gift-card-validation.js +3 -3
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -1
- package/dist/gift-card.js +5 -5
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +8 -8
- package/dist/hotel.js +1823 -2262
- package/dist/hotel.js.br +0 -0
- package/dist/polyfill.cjs +1 -1
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-deec84ca.js.br +0 -0
- package/dist/AvailabilitySkeleton-16e7a713.js.br +0 -0
- package/dist/CheckoutWindow-7251f2b5.js.br +0 -0
- package/dist/DateField.vue_vue_type_style_index_0_lang-c61ab1c5.js.br +0 -0
- package/dist/Field-ce51be09.js.br +0 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-9f68127f.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-6f724c35.js.br +0 -0
- package/dist/ThankYou-81753dcb.js.br +0 -0
- package/dist/ThankYou-b538183d.cjs +0 -59
- package/dist/components/modals/Terms.vue.d.ts +0 -4
- package/dist/components/modals/Terms.vue.d.ts.map +0 -1
- package/dist/event-3b54636f.js.br +0 -0
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("./SelectField.vue_vue_type_style_index_0_lang-6990aef4.cjs"),Tn=require("./_commonjsHelpers-6763f629.cjs"),So=require("./ActionField-58df4817.cjs"),Co=require("./CheckoutWindow-4f6a485b.cjs"),de=require("./_-c9150186.cjs"),ko=["top","right","bottom","left"],fr=["start","end"],dr=ko.reduce((r,o)=>r.concat(o,o+"-"+fr[0],o+"-"+fr[1]),[]),qe=Math.min,Ee=Math.max,Ro={left:"right",right:"left",bottom:"top",top:"bottom"},Io={start:"end",end:"start"};function en(r,o,t){return Ee(r,qe(o,t))}function Te(r,o){return typeof r=="function"?r(o):r}function fe(r){return r.split("-")[0]}function ae(r){return r.split("-")[1]}function Xr(r){return r==="x"?"y":"x"}function Sn(r){return r==="y"?"height":"width"}function at(r){return["top","bottom"].includes(fe(r))?"y":"x"}function Cn(r){return Xr(at(r))}function Kr(r,o,t){t===void 0&&(t=!1);const e=ae(r),n=Cn(r),i=Sn(n);let a=n==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[i]>o.floating[i]&&(a=Et(a)),[a,Et(a)]}function No(r){const o=Et(r);return[bt(r),o,bt(o)]}function bt(r){return r.replace(/start|end/g,o=>Io[o])}function Ao(r,o,t){const e=["left","right"],n=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(r){case"top":case"bottom":return t?o?n:e:o?e:n;case"left":case"right":return o?i:a;default:return[]}}function Do(r,o,t,e){const n=ae(r);let i=Ao(fe(r),t==="start",e);return n&&(i=i.map(a=>a+"-"+n),o&&(i=i.concat(i.map(bt)))),i}function Et(r){return r.replace(/left|right|bottom|top/g,o=>Ro[o])}function Mo(r){return{top:0,right:0,bottom:0,left:0,...r}}function Zr(r){return typeof r!="number"?Mo(r):{top:r,right:r,bottom:r,left:r}}function Ye(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function hr(r,o,t){let{reference:e,floating:n}=r;const i=at(o),a=Cn(o),s=Sn(a),c=fe(o),u=i==="y",f=e.x+e.width/2-n.width/2,h=e.y+e.height/2-n.height/2,v=e[s]/2-n[s]/2;let d;switch(c){case"top":d={x:f,y:e.y-n.height};break;case"bottom":d={x:f,y:e.y+e.height};break;case"right":d={x:e.x+e.width,y:h};break;case"left":d={x:e.x-n.width,y:h};break;default:d={x:e.x,y:e.y}}switch(ae(o)){case"start":d[a]-=v*(t&&u?-1:1);break;case"end":d[a]+=v*(t&&u?-1:1);break}return d}const zo=async(r,o,t)=>{const{placement:e="bottom",strategy:n="absolute",middleware:i=[],platform:a}=t,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(o));let u=await a.getElementRects({reference:r,floating:o,strategy:n}),{x:f,y:h}=hr(u,e,c),v=e,d={},p=0;for(let g=0;g<s.length;g++){const{name:m,fn:_}=s[g],{x:y,y:b,data:E,reset:x}=await _({x:f,y:h,initialPlacement:e,placement:v,strategy:n,middlewareData:d,rects:u,platform:a,elements:{reference:r,floating:o}});if(f=y??f,h=b??h,d={...d,[m]:{...d[m],...E}},x&&p<=50){p++,typeof x=="object"&&(x.placement&&(v=x.placement),x.rects&&(u=x.rects===!0?await a.getElementRects({reference:r,floating:o,strategy:n}):x.rects),{x:f,y:h}=hr(u,v,c)),g=-1;continue}}return{x:f,y:h,placement:v,strategy:n,middlewareData:d}};async function At(r,o){var t;o===void 0&&(o={});const{x:e,y:n,platform:i,rects:a,elements:s,strategy:c}=r,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:v=!1,padding:d=0}=Te(o,r),p=Zr(d),m=s[v?h==="floating"?"reference":"floating":h],_=Ye(await i.getClippingRect({element:(t=await(i.isElement==null?void 0:i.isElement(m)))==null||t?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:c})),y=h==="floating"?{...a.floating,x:e,y:n}:a.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),E=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},x=Ye(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:b,strategy:c}):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 Bo=r=>({name:"arrow",options:r,async fn(o){const{x:t,y:e,placement:n,rects:i,platform:a,elements:s,middlewareData:c}=o,{element:u,padding:f=0}=Te(r,o)||{};if(u==null)return{};const h=Zr(f),v={x:t,y:e},d=Cn(n),p=Sn(d),g=await a.getDimensions(u),m=d==="y",_=m?"top":"left",y=m?"bottom":"right",b=m?"clientHeight":"clientWidth",E=i.reference[p]+i.reference[d]-v[d]-i.floating[p],x=v[d]-i.reference[d],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let I=C?C[b]:0;(!I||!await(a.isElement==null?void 0:a.isElement(C)))&&(I=s.floating[b]||i.floating[p]);const O=E/2-x/2,k=I/2-g[p]/2-1,T=qe(h[_],k),D=qe(h[y],k),A=T,$=I-g[p]-D,z=I/2-g[p]/2+O,H=en(A,z,$),w=!c.arrow&&ae(n)!=null&&z!=H&&i.reference[p]/2-(z<A?T:D)-g[p]/2<0,P=w?z<A?z-A:z-$:0;return{[d]:v[d]+P,data:{[d]:H,centerOffset:z-H-P,...w&&{alignmentOffset:P}},reset:w}}});function Lo(r,o,t){return(r?[...t.filter(n=>ae(n)===r),...t.filter(n=>ae(n)!==r)]:t.filter(n=>fe(n)===n)).filter(n=>r?ae(n)===r||(o?bt(n)!==n:!1):!0)}const Vo=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(o){var t,e,n;const{rects:i,middlewareData:a,placement:s,platform:c,elements:u}=o,{crossAxis:f=!1,alignment:h,allowedPlacements:v=dr,autoAlignment:d=!0,...p}=Te(r,o),g=h!==void 0||v===dr?Lo(h||null,d,v):v,m=await At(o,p),_=((t=a.autoPlacement)==null?void 0:t.index)||0,y=g[_];if(y==null)return{};const b=Kr(y,i,await(c.isRTL==null?void 0:c.isRTL(u.floating)));if(s!==y)return{reset:{placement:g[0]}};const E=[m[fe(y)],m[b[0]],m[b[1]]],x=[...((e=a.autoPlacement)==null?void 0:e.overflows)||[],{placement:y,overflows:E}],C=g[_+1];if(C)return{data:{index:_+1,overflows:x},reset:{placement:C}};const I=x.map(T=>{const D=ae(T.placement);return[T.placement,D&&f?T.overflows.slice(0,2).reduce((A,$)=>A+$,0):T.overflows[0],T.overflows]}).sort((T,D)=>T[1]-D[1]),k=((n=I.filter(T=>T[2].slice(0,ae(T[0])?2:3).every(D=>D<=0))[0])==null?void 0:n[0])||I[0][0];return k!==s?{data:{index:_+1,overflows:x},reset:{placement:k}}:{}}}},jo=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(o){var t,e;const{placement:n,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:u}=o,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=Te(r,o);if((t=i.arrow)!=null&&t.alignmentOffset)return{};const _=fe(n),y=fe(s)===s,b=await(c.isRTL==null?void 0:c.isRTL(u.floating)),E=v||(y||!g?[Et(s)]:No(s));!v&&p!=="none"&&E.push(...Do(s,g,p,b));const x=[s,...E],C=await At(o,m),I=[];let O=((e=i.flip)==null?void 0:e.overflows)||[];if(f&&I.push(C[_]),h){const A=Kr(n,a,b);I.push(C[A[0]],C[A[1]])}if(O=[...O,{placement:n,overflows:I}],!I.every(A=>A<=0)){var k,T;const A=(((k=i.flip)==null?void 0:k.index)||0)+1,$=x[A];if($)return{data:{index:A,overflows:O},reset:{placement:$}};let z=(T=O.filter(H=>H.overflows[0]<=0).sort((H,w)=>H.overflows[1]-w.overflows[1])[0])==null?void 0:T.placement;if(!z)switch(d){case"bestFit":{var D;const H=(D=O.map(w=>[w.placement,w.overflows.filter(P=>P>0).reduce((P,S)=>P+S,0)]).sort((w,P)=>w[1]-P[1])[0])==null?void 0:D[0];H&&(z=H);break}case"initialPlacement":z=s;break}if(n!==z)return{reset:{placement:z}}}return{}}}};async function Fo(r,o){const{placement:t,platform:e,elements:n}=r,i=await(e.isRTL==null?void 0:e.isRTL(n.floating)),a=fe(t),s=ae(t),c=at(t)==="y",u=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,h=Te(o,r);let{mainAxis:v,crossAxis:d,alignmentAxis:p}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return s&&typeof p=="number"&&(d=s==="end"?p*-1:p),c?{x:d*f,y:v*u}:{x:v*u,y:d*f}}const $o=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(o){const{x:t,y:e}=o,n=await Fo(o,r);return{x:t+n.x,y:e+n.y,data:n}}}},Ho=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(o){const{x:t,y:e,placement:n}=o,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:m=>{let{x:_,y}=m;return{x:_,y}}},...c}=Te(r,o),u={x:t,y:e},f=await At(o,c),h=at(fe(n)),v=Xr(h);let d=u[v],p=u[h];if(i){const m=v==="y"?"top":"left",_=v==="y"?"bottom":"right",y=d+f[m],b=d-f[_];d=en(y,d,b)}if(a){const m=h==="y"?"top":"left",_=h==="y"?"bottom":"right",y=p+f[m],b=p-f[_];p=en(y,p,b)}const g=s.fn({...o,[v]:d,[h]:p});return{...g,data:{x:g.x-t,y:g.y-e}}}}},Wo=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(o){const{placement:t,rects:e,platform:n,elements:i}=o,{apply:a=()=>{},...s}=Te(r,o),c=await At(o,s),u=fe(t),f=ae(t),h=at(t)==="y",{width:v,height:d}=e.floating;let p,g;u==="top"||u==="bottom"?(p=u,g=f===(await(n.isRTL==null?void 0:n.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,p=f==="end"?"top":"bottom");const m=d-c[p],_=v-c[g],y=!o.middlewareData.shift;let b=m,E=_;if(h){const C=v-c.left-c.right;E=f||y?qe(_,C):C}else{const C=d-c.top-c.bottom;b=f||y?qe(m,C):C}if(y&&!f){const C=Ee(c.left,0),I=Ee(c.right,0),O=Ee(c.top,0),k=Ee(c.bottom,0);h?E=v-2*(C!==0||I!==0?C+I:Ee(c.left,c.right)):b=d-2*(O!==0||k!==0?O+k:Ee(c.top,c.bottom))}await a({...o,availableWidth:E,availableHeight:b});const x=await n.getDimensions(i.floating);return v!==x.width||d!==x.height?{reset:{rects:!0}}:{}}}};function re(r){var o;return((o=r.ownerDocument)==null?void 0:o.defaultView)||window}function le(r){return re(r).getComputedStyle(r)}const vr=Math.min,Xe=Math.max,Pt=Math.round;function Jr(r){const o=le(r);let t=parseFloat(o.width),e=parseFloat(o.height);const n=r.offsetWidth,i=r.offsetHeight,a=Pt(t)!==n||Pt(e)!==i;return a&&(t=n,e=i),{width:t,height:e,fallback:a}}function ye(r){return qr(r)?(r.nodeName||"").toLowerCase():""}let ut;function Qr(){if(ut)return ut;const r=navigator.userAgentData;return r&&Array.isArray(r.brands)?(ut=r.brands.map(o=>o.brand+"/"+o.version).join(" "),ut):navigator.userAgent}function ce(r){return r instanceof re(r).HTMLElement}function ge(r){return r instanceof re(r).Element}function qr(r){return r instanceof re(r).Node}function pr(r){return typeof ShadowRoot>"u"?!1:r instanceof re(r).ShadowRoot||r instanceof ShadowRoot}function Dt(r){const{overflow:o,overflowX:t,overflowY:e,display:n}=le(r);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&!["inline","contents"].includes(n)}function Go(r){return["table","td","th"].includes(ye(r))}function tn(r){const o=/firefox/i.test(Qr()),t=le(r),e=t.backdropFilter||t.WebkitBackdropFilter;return t.transform!=="none"||t.perspective!=="none"||!!e&&e!=="none"||o&&t.willChange==="filter"||o&&!!t.filter&&t.filter!=="none"||["transform","perspective"].some(n=>t.willChange.includes(n))||["paint","layout","strict","content"].some(n=>{const i=t.contain;return i!=null&&i.includes(n)})}function ei(){return!/^((?!chrome|android).)*safari/i.test(Qr())}function kn(r){return["html","body","#document"].includes(ye(r))}function ti(r){return ge(r)?r:r.contextElement}const ni={x:1,y:1};function Ne(r){const o=ti(r);if(!ce(o))return ni;const t=o.getBoundingClientRect(),{width:e,height:n,fallback:i}=Jr(o);let a=(i?Pt(t.width):t.width)/e,s=(i?Pt(t.height):t.height)/n;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function et(r,o,t,e){var n,i;o===void 0&&(o=!1),t===void 0&&(t=!1);const a=r.getBoundingClientRect(),s=ti(r);let c=ni;o&&(e?ge(e)&&(c=Ne(e)):c=Ne(r));const u=s?re(s):window,f=!ei()&&t;let h=(a.left+(f&&((n=u.visualViewport)==null?void 0:n.offsetLeft)||0))/c.x,v=(a.top+(f&&((i=u.visualViewport)==null?void 0:i.offsetTop)||0))/c.y,d=a.width/c.x,p=a.height/c.y;if(s){const g=re(s),m=e&&ge(e)?re(e):e;let _=g.frameElement;for(;_&&e&&m!==g;){const y=Ne(_),b=_.getBoundingClientRect(),E=getComputedStyle(_);b.x+=(_.clientLeft+parseFloat(E.paddingLeft))*y.x,b.y+=(_.clientTop+parseFloat(E.paddingTop))*y.y,h*=y.x,v*=y.y,d*=y.x,p*=y.y,h+=b.x,v+=b.y,_=re(_).frameElement}}return{width:d,height:p,top:v,right:h+d,bottom:v+p,left:h,x:h,y:v}}function me(r){return((qr(r)?r.ownerDocument:r.document)||window.document).documentElement}function Mt(r){return ge(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function ri(r){return et(me(r)).left+Mt(r).scrollLeft}function tt(r){if(ye(r)==="html")return r;const o=r.assignedSlot||r.parentNode||pr(r)&&r.host||me(r);return pr(o)?o.host:o}function ii(r){const o=tt(r);return kn(o)?o.ownerDocument.body:ce(o)&&Dt(o)?o:ii(o)}function xt(r,o){var t;o===void 0&&(o=[]);const e=ii(r),n=e===((t=r.ownerDocument)==null?void 0:t.body),i=re(e);return n?o.concat(i,i.visualViewport||[],Dt(e)?e:[]):o.concat(e,xt(e))}function gr(r,o,t){return o==="viewport"?Ye(function(e,n){const i=re(e),a=me(e),s=i.visualViewport;let c=a.clientWidth,u=a.clientHeight,f=0,h=0;if(s){c=s.width,u=s.height;const v=ei();(v||!v&&n==="fixed")&&(f=s.offsetLeft,h=s.offsetTop)}return{width:c,height:u,x:f,y:h}}(r,t)):ge(o)?Ye(function(e,n){const i=et(e,!0,n==="fixed"),a=i.top+e.clientTop,s=i.left+e.clientLeft,c=ce(e)?Ne(e):{x:1,y:1};return{width:e.clientWidth*c.x,height:e.clientHeight*c.y,x:s*c.x,y:a*c.y}}(o,t)):Ye(function(e){const n=me(e),i=Mt(e),a=e.ownerDocument.body,s=Xe(n.scrollWidth,n.clientWidth,a.scrollWidth,a.clientWidth),c=Xe(n.scrollHeight,n.clientHeight,a.scrollHeight,a.clientHeight);let u=-i.scrollLeft+ri(e);const f=-i.scrollTop;return le(a).direction==="rtl"&&(u+=Xe(n.clientWidth,a.clientWidth)-s),{width:s,height:c,x:u,y:f}}(me(r)))}function mr(r){return ce(r)&&le(r).position!=="fixed"?r.offsetParent:null}function _r(r){const o=re(r);let t=mr(r);for(;t&&Go(t)&&le(t).position==="static";)t=mr(t);return t&&(ye(t)==="html"||ye(t)==="body"&&le(t).position==="static"&&!tn(t))?o:t||function(e){let n=tt(e);for(;ce(n)&&!kn(n);){if(tn(n))return n;n=tt(n)}return null}(r)||o}function Uo(r,o,t){const e=ce(o),n=me(o),i=et(r,!0,t==="fixed",o);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(e||!e&&t!=="fixed")if((ye(o)!=="body"||Dt(n))&&(a=Mt(o)),ce(o)){const c=et(o,!0);s.x=c.x+o.clientLeft,s.y=c.y+o.clientTop}else n&&(s.x=ri(n));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}const Yo={getClippingRect:function(r){let{element:o,boundary:t,rootBoundary:e,strategy:n}=r;const i=t==="clippingAncestors"?function(u,f){const h=f.get(u);if(h)return h;let v=xt(u).filter(m=>ge(m)&&ye(m)!=="body"),d=null;const p=le(u).position==="fixed";let g=p?tt(u):u;for(;ge(g)&&!kn(g);){const m=le(g),_=tn(g);(p?_||d:_||m.position!=="static"||!d||!["absolute","fixed"].includes(d.position))?d=m:v=v.filter(y=>y!==g),g=tt(g)}return f.set(u,v),v}(o,this._c):[].concat(t),a=[...i,e],s=a[0],c=a.reduce((u,f)=>{const h=gr(o,f,n);return u.top=Xe(h.top,u.top),u.right=vr(h.right,u.right),u.bottom=vr(h.bottom,u.bottom),u.left=Xe(h.left,u.left),u},gr(o,s,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(r){let{rect:o,offsetParent:t,strategy:e}=r;const n=ce(t),i=me(t);if(t===i)return o;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const c={x:0,y:0};if((n||!n&&e!=="fixed")&&((ye(t)!=="body"||Dt(i))&&(a=Mt(t)),ce(t))){const u=et(t);s=Ne(t),c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}return{width:o.width*s.x,height:o.height*s.y,x:o.x*s.x-a.scrollLeft*s.x+c.x,y:o.y*s.y-a.scrollTop*s.y+c.y}},isElement:ge,getDimensions:function(r){return ce(r)?Jr(r):r.getBoundingClientRect()},getOffsetParent:_r,getDocumentElement:me,getScale:Ne,async getElementRects(r){let{reference:o,floating:t,strategy:e}=r;const n=this.getOffsetParent||_r,i=this.getDimensions;return{reference:Uo(o,await n(t),e),floating:{x:0,y:0,...await i(t)}}},getClientRects:r=>Array.from(r.getClientRects()),isRTL:r=>le(r).direction==="rtl"},Xo=(r,o,t)=>{const e=new Map,n={platform:Yo,...t},i={...n.platform,_c:e};return zo(r,o,{...n,platform:i})};function oi(r,o){for(const t in o)Object.prototype.hasOwnProperty.call(o,t)&&(typeof o[t]=="object"&&r[t]?oi(r[t],o[t]):r[t]=o[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:r=>[...r,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function nt(r,o){let t=he.themes[r]||{},e;do e=t[o],typeof e>"u"?t.$extend?t=he.themes[t.$extend]||{}:(t=null,e=he[o]):t=null;while(t);return e}function Ko(r){const o=[r];let t=he.themes[r]||{};do t.$extend&&!t.$resetCss?(o.push(t.$extend),t=he.themes[t.$extend]||{}):t=null;while(t);return o.map(e=>`v-popper--theme-${e}`)}function yr(r){const o=[r];let t=he.themes[r]||{};do t.$extend?(o.push(t.$extend),t=he.themes[t.$extend]||{}):t=null;while(t);return o}let xe=!1;if(typeof window<"u"){xe=!1;try{const r=Object.defineProperty({},"passive",{get(){xe=!0}});window.addEventListener("test",null,r)}catch{}}let ai=!1;typeof window<"u"&&typeof navigator<"u"&&(ai=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const si=["auto","top","bottom","left","right"].reduce((r,o)=>r.concat([o,`${o}-start`,`${o}-end`]),[]),br={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Er={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Pr(r,o){const t=r.indexOf(o);t!==-1&&r.splice(t,1)}function Ft(){return new Promise(r=>requestAnimationFrame(()=>{requestAnimationFrame(r)}))}const oe=[];let be=null;const xr={};function Or(r){let o=xr[r];return o||(o=xr[r]=[]),o}let nn=function(){};typeof window<"u"&&(nn=window.Element);function j(r){return function(o){return nt(o.theme,r)}}const $t="__floating-vue__popper",li=()=>l.defineComponent({name:"VPopper",provide(){return{[$t]:{parentPopper:this}}},inject:{[$t]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:j("disabled")},positioningDisabled:{type:Boolean,default:j("positioningDisabled")},placement:{type:String,default:j("placement"),validator:r=>si.includes(r)},delay:{type:[String,Number,Object],default:j("delay")},distance:{type:[Number,String],default:j("distance")},skidding:{type:[Number,String],default:j("skidding")},triggers:{type:Array,default:j("triggers")},showTriggers:{type:[Array,Function],default:j("showTriggers")},hideTriggers:{type:[Array,Function],default:j("hideTriggers")},popperTriggers:{type:Array,default:j("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:j("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:j("popperHideTriggers")},container:{type:[String,Object,nn,Boolean],default:j("container")},boundary:{type:[String,nn],default:j("boundary")},strategy:{type:String,validator:r=>["absolute","fixed"].includes(r),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 r;return(r=this[$t])==null?void 0:r.parentPopper},hasPopperShowTriggerHover(){var r,o;return((r=this.popperTriggers)==null?void 0:r.includes("hover"))||((o=this.popperShowTriggers)==null?void 0:o.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(r){r?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},...["triggers","positioningDisabled"].reduce((r,o)=>(r[o]="$_refreshListeners",r),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((r,o)=>(r[o]="$_computePosition",r),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(r=>r.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:r=null,skipDelay:o=!1,force:t=!1}={}){var e,n;(e=this.parentPopper)!=null&&e.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(t||!this.disabled)&&(((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(r,o),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:r=null,skipDelay:o=!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:o}),this.parentPopper.lockedChild=null)},1e3));return}((t=this.parentPopper)==null?void 0:t.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(r,o),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var r;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((r=this.referenceNode)==null?void 0:r.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(o=>o.nodeType===o.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 r={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&r.middleware.push($o({mainAxis:this.distance,crossAxis:this.skidding}));const o=this.placement.startsWith("auto");if(o?r.middleware.push(Vo({alignment:this.placement.split("-")[1]??""})):r.placement=this.placement,this.preventOverflow&&(this.shift&&r.middleware.push(Ho({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!o&&this.flip&&r.middleware.push(jo({padding:this.overflowPadding,boundary:this.boundary}))),r.middleware.push(Bo({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&r.middleware.push({name:"arrowOverflow",fn:({placement:e,rects:n,middlewareData:i})=>{let a;const{centerOffset:s}=i.arrow;return e.startsWith("top")||e.startsWith("bottom")?a=Math.abs(s)>n.reference.width/2:a=Math.abs(s)>n.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const e=this.autoSize?this.autoSize:this.autoMinSize?"min":null;r.middleware.push({name:"autoSize",fn:({rects:n,placement:i,middlewareData:a})=>{var s;if((s=a.autoSize)!=null&&s.skip)return{};let c,u;return i.startsWith("top")||i.startsWith("bottom")?c=n.reference.width:u=n.reference.height,this.$_innerNode.style[e==="min"?"minWidth":e==="max"?"maxWidth":"width"]=c!=null?`${c}px`:null,this.$_innerNode.style[e==="min"?"minHeight":e==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,r.middleware.push(Wo({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:n})=>{this.$_innerNode.style.maxWidth=e!=null?`${e}px`:null,this.$_innerNode.style.maxHeight=n!=null?`${n}px`:null}})));const t=await Xo(this.$_referenceNode,this.$_popperNode,r);Object.assign(this.result,{x:t.x,y:t.y,placement:t.placement,strategy:t.strategy,arrow:{...t.middlewareData.arrow,...t.middlewareData.arrowOverflow}})},$_scheduleShow(r=null,o=!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}o?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(r=null,o=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(be=this),o?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(r){const o=this.delay;return parseInt(o&&o[r]||o||0)},async $_applyShow(r=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=r,!this.isShown&&(this.$_ensureTeleport(),await Ft(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...xt(this.$_referenceNode),...xt(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const o=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(".v-popper__wrapper"),e=t.parentNode.getBoundingClientRect(),n=o.x+o.width/2-(e.left+t.offsetLeft),i=o.y+o.height/2-(e.top+t.offsetTop);this.result.transformOrigin=`${n}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const r=this.showGroup;if(r){let o;for(let t=0;t<oe.length;t++)o=oe[t],o.showGroup!==r&&(o.hide(),o.$emit("close-group"))}oe.push(this),document.body.classList.add("v-popper--some-open");for(const o of yr(this.theme))Or(o).push(this),document.body.classList.add(`v-popper--some-open--${o}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ft(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(r=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=r,Pr(oe,this),oe.length===0&&document.body.classList.remove("v-popper--some-open");for(const t of yr(this.theme)){const e=Or(t);Pr(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 o=this.disposeTimeout;o!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},o)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Ft(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let r=this.container;if(typeof r=="string"?r=window.document.querySelector(r):r===!1&&(r=this.$_targetNodes[0].parentNode),!r)throw new Error("No container for popover: "+this.container);r.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const r=t=>{this.isShown&&!this.$_hideInProgress||(t.usedByTooltip=!0,!this.$_preventShow&&this.show({event:t}))};this.$_registerTriggerListeners(this.$_targetNodes,br,this.triggers,this.showTriggers,r),this.$_registerTriggerListeners([this.$_popperNode],br,this.popperTriggers,this.popperShowTriggers,r);const o=t=>{t.usedByTooltip||this.hide({event:t})};this.$_registerTriggerListeners(this.$_targetNodes,Er,this.triggers,this.hideTriggers,o),this.$_registerTriggerListeners([this.$_popperNode],Er,this.popperTriggers,this.popperHideTriggers,o)},$_registerEventListeners(r,o,t){this.$_events.push({targetNodes:r,eventType:o,handler:t}),r.forEach(e=>e.addEventListener(o,t,xe?{passive:!0}:void 0))},$_registerTriggerListeners(r,o,t,e,n){let i=t;e!=null&&(i=typeof e=="function"?e(i):e),i.forEach(a=>{const s=o[a];s&&this.$_registerEventListeners(r,s,n)})},$_removeEventListeners(r){const o=[];this.$_events.forEach(t=>{const{targetNodes:e,eventType:n,handler:i}=t;!r||r===n?e.forEach(a=>a.removeEventListener(n,i)):o.push(t)}),this.$_events=o},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(r,o=!1){this.$_showFrameLocked||(this.hide({event:r}),r.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),o&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(r,o){for(const t of this.$_targetNodes){const e=t.getAttribute(r);e&&(t.removeAttribute(r),t.setAttribute(o,e))}},$_applyAttrsToTarget(r){for(const o of this.$_targetNodes)for(const t in r){const e=r[t];e==null?o.removeAttribute(t):o.setAttribute(t,e)}},$_updateParentShownChildren(r){let o=this.parentPopper;for(;o;)r?o.shownChildren.add(this.randomId):(o.shownChildren.delete(this.randomId),o.$_pendingHide&&o.hide()),o=o.parentPopper},$_isAimingPopper(){const r=this.$_referenceNode.getBoundingClientRect();if(Ke>=r.left&&Ke<=r.right&&Ze>=r.top&&Ze<=r.bottom){const o=this.$_popperNode.getBoundingClientRect(),t=Ke-ve,e=Ze-pe,n=o.left+o.width/2-ve+(o.top+o.height/2)-pe+o.width+o.height,i=ve+t*n,a=pe+e*n;return ft(ve,pe,i,a,o.left,o.top,o.left,o.bottom)||ft(ve,pe,i,a,o.left,o.top,o.right,o.top)||ft(ve,pe,i,a,o.right,o.top,o.right,o.bottom)||ft(ve,pe,i,a,o.left,o.bottom,o.right,o.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(ai?(document.addEventListener("touchstart",wr,xe?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",Jo,xe?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",wr,!0),window.addEventListener("click",Zo,!0)),window.addEventListener("resize",ea));function wr(r){for(let o=0;o<oe.length;o++){const t=oe[o];try{const e=t.popperNode();t.$_mouseDownContains=e.contains(r.target)}catch{}}}function Zo(r){ci(r)}function Jo(r){ci(r,!0)}function ci(r,o=!1){const t={};for(let e=oe.length-1;e>=0;e--){const n=oe[e];try{const i=n.$_containsGlobalTarget=Qo(n,r);n.$_pendingHide=!1,requestAnimationFrame(()=>{if(n.$_pendingHide=!1,!t[n.randomId]&&Tr(n,i,r)){if(n.$_handleGlobalClose(r,o),!r.closeAllPopover&&r.closePopover&&i){let s=n.parentPopper;for(;s;)t[s.randomId]=!0,s=s.parentPopper;return}let a=n.parentPopper;for(;a&&Tr(a,a.$_containsGlobalTarget,r);)a.$_handleGlobalClose(r,o),a=a.parentPopper}})}catch{}}}function Qo(r,o){const t=r.popperNode();return r.$_mouseDownContains||t.contains(o.target)}function Tr(r,o,t){return t.closeAllPopover||t.closePopover&&o||qo(r,t)&&!o}function qo(r,o){if(typeof r.autoHide=="function"){const t=r.autoHide(o);return r.lastAutoHide=t,t}return r.autoHide}function ea(r){for(let o=0;o<oe.length;o++)oe[o].$_computePosition(r)}let ve=0,pe=0,Ke=0,Ze=0;typeof window<"u"&&window.addEventListener("mousemove",r=>{ve=Ke,pe=Ze,Ke=r.clientX,Ze=r.clientY},xe?{passive:!0}:void 0);function ft(r,o,t,e,n,i,a,s){const c=((a-n)*(o-i)-(s-i)*(r-n))/((s-i)*(t-r)-(a-n)*(e-o)),u=((t-r)*(o-i)-(e-o)*(r-n))/((s-i)*(t-r)-(a-n)*(e-o));return c>=0&&c<=1&&u>=0&&u<=1}const ta={extends:li()},zt=(r,o)=>{const t=r.__vccOpts||r;for(const[e,n]of o)t[e]=n;return t};function na(r,o,t,e,n,i){return l.openBlock(),l.createElementBlock("div",{ref:"reference",class:l.normalizeClass(["v-popper",{"v-popper--shown":r.slotData.isShown}])},[l.renderSlot(r.$slots,"default",l.normalizeProps(l.guardReactiveProps(r.slotData)))],2)}const ra=zt(ta,[["render",na]]);function ia(){var r=window.navigator.userAgent,o=r.indexOf("MSIE ");if(o>0)return parseInt(r.substring(o+5,r.indexOf(".",o)),10);var t=r.indexOf("Trident/");if(t>0){var e=r.indexOf("rv:");return parseInt(r.substring(e+3,r.indexOf(".",e)),10)}var n=r.indexOf("Edge/");return n>0?parseInt(r.substring(n+5,r.indexOf(".",n)),10):-1}let vt;function rn(){rn.init||(rn.init=!0,vt=ia()!==-1)}var Bt={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){rn(),l.nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const r=document.createElement("object");this._resizeObject=r,r.setAttribute("aria-hidden","true"),r.setAttribute("tabindex",-1),r.onload=this.addResizeHandlers,r.type="text/html",vt&&this.$el.appendChild(r),r.data="about:blank",vt||this.$el.appendChild(r)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!vt&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const oa=l.withScopeId();l.pushScopeId("data-v-b329ee4c");const aa={class:"resize-observer",tabindex:"-1"};l.popScopeId();const sa=oa((r,o,t,e,n,i)=>(l.openBlock(),l.createBlock("div",aa)));Bt.render=sa;Bt.__scopeId="data-v-b329ee4c";Bt.__file="src/components/ResizeObserver.vue";const ui=(r="theme")=>({computed:{themeClass(){return Ko(this[r])}}}),la=l.defineComponent({name:"VPopperContent",components:{ResizeObserver:Bt},mixins:[ui()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(r){return r!=null&&!isNaN(r)?`${r}px`:null}}}),ca=["id","aria-hidden","tabindex","data-popper-placement"],ua={ref:"inner",class:"v-popper__inner"},fa=l.createBaseVNode("div",{class:"v-popper__arrow-outer"},null,-1),da=l.createBaseVNode("div",{class:"v-popper__arrow-inner"},null,-1),ha=[fa,da];function va(r,o,t,e,n,i){const a=l.resolveComponent("ResizeObserver");return l.openBlock(),l.createElementBlock("div",{id:r.popperId,ref:"popover",class:l.normalizeClass(["v-popper__popper",[r.themeClass,r.classes.popperClass,{"v-popper__popper--shown":r.shown,"v-popper__popper--hidden":!r.shown,"v-popper__popper--show-from":r.classes.showFrom,"v-popper__popper--show-to":r.classes.showTo,"v-popper__popper--hide-from":r.classes.hideFrom,"v-popper__popper--hide-to":r.classes.hideTo,"v-popper__popper--skip-transition":r.skipTransition,"v-popper__popper--arrow-overflow":r.result&&r.result.arrow.overflow,"v-popper__popper--no-positioning":!r.result}]]),style:l.normalizeStyle(r.result?{position:r.result.strategy,transform:`translate3d(${Math.round(r.result.x)}px,${Math.round(r.result.y)}px,0)`}:void 0),"aria-hidden":r.shown?"false":"true",tabindex:r.autoHide?0:void 0,"data-popper-placement":r.result?r.result.placement:void 0,onKeyup:o[2]||(o[2]=l.withKeys(s=>r.autoHide&&r.$emit("hide"),["esc"]))},[l.createBaseVNode("div",{class:"v-popper__backdrop",onClick:o[0]||(o[0]=s=>r.autoHide&&r.$emit("hide"))}),l.createBaseVNode("div",{class:"v-popper__wrapper",style:l.normalizeStyle(r.result?{transformOrigin:r.result.transformOrigin}:void 0)},[l.createBaseVNode("div",ua,[r.mounted?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createBaseVNode("div",null,[l.renderSlot(r.$slots,"default")]),r.handleResize?(l.openBlock(),l.createBlock(a,{key:0,onNotify:o[1]||(o[1]=s=>r.$emit("resize",s))})):l.createCommentVNode("",!0)],64)):l.createCommentVNode("",!0)],512),l.createBaseVNode("div",{ref:"arrow",class:"v-popper__arrow-container",style:l.normalizeStyle(r.result?{left:r.toPx(r.result.arrow.x),top:r.toPx(r.result.arrow.y)}:void 0)},ha,4)],4)],46,ca)}const fi=zt(la,[["render",va]]),di={methods:{show(...r){return this.$refs.popper.show(...r)},hide(...r){return this.$refs.popper.hide(...r)},dispose(...r){return this.$refs.popper.dispose(...r)},onResize(...r){return this.$refs.popper.onResize(...r)}}},pa=l.defineComponent({name:"VPopperWrapper",components:{Popper:ra,PopperContent:fi},mixins:[di,ui("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(r=>r!==this.$refs.popperContent.$el)}}});function ga(r,o,t,e,n,i){const a=l.resolveComponent("PopperContent"),s=l.resolveComponent("Popper");return l.openBlock(),l.createBlock(s,{ref:"popper",theme:r.finalTheme,"target-nodes":r.getTargetNodes,"popper-node":()=>r.$refs.popperContent.$el,class:l.normalizeClass([r.themeClass])},{default:l.withCtx(({popperId:c,isShown:u,shouldMountContent:f,skipTransition:h,autoHide:v,show:d,hide:p,handleResize:g,onResize:m,classes:_,result:y})=>[l.renderSlot(r.$slots,"default",{shown:u,show:d,hide:p}),l.createVNode(a,{ref:"popperContent","popper-id":c,theme:r.finalTheme,shown:u,mounted:f,"skip-transition":h,"auto-hide":v,"handle-resize":g,classes:_,result:y,onHide:p,onResize:m},{default:l.withCtx(()=>[l.renderSlot(r.$slots,"popper",{shown:u,hide:p})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}const Rn=zt(pa,[["render",ga]]),ma={...Rn,name:"VDropdown",vPopperTheme:"dropdown"},_a={...Rn,name:"VMenu",vPopperTheme:"menu"},ya={...Rn,name:"VTooltip",vPopperTheme:"tooltip"},ba=l.defineComponent({name:"VTooltipDirective",components:{Popper:li(),PopperContent:fi},mixins:[di],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:r=>nt(r.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:r=>nt(r.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(r){if(typeof this.content=="function"&&this.$_isShown&&(r||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const o=++this.$_fetchId,t=this.content(this);t.then?t.then(e=>this.onResult(o,e)):this.onResult(o,t)}},onResult(r,o){r===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=o)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Ea=["innerHTML"],Pa=["textContent"];function xa(r,o,t,e,n,i){const a=l.resolveComponent("PopperContent"),s=l.resolveComponent("Popper");return l.openBlock(),l.createBlock(s,l.mergeProps({ref:"popper"},r.$attrs,{theme:r.theme,"target-nodes":r.targetNodes,"popper-node":()=>r.$refs.popperContent.$el,onApplyShow:r.onShow,onApplyHide:r.onHide}),{default:l.withCtx(({popperId:c,isShown:u,shouldMountContent:f,skipTransition:h,autoHide:v,hide:d,handleResize:p,onResize:g,classes:m,result:_})=>[l.createVNode(a,{ref:"popperContent",class:l.normalizeClass({"v-popper--tooltip-loading":r.loading}),"popper-id":c,theme:r.theme,shown:u,mounted:f,"skip-transition":h,"auto-hide":v,"handle-resize":p,classes:m,result:_,onHide:d,onResize:g},{default:l.withCtx(()=>[r.html?(l.openBlock(),l.createElementBlock("div",{key:0,innerHTML:r.finalContent},null,8,Ea)):(l.openBlock(),l.createElementBlock("div",{key:1,textContent:l.toDisplayString(r.finalContent)},null,8,Pa))]),_: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 Oa=zt(ba,[["render",xa]]),hi="v-popper--has-tooltip";function wa(r,o){let t=r.placement;if(!t&&o)for(const e of si)o[e]&&(t=e);return t||(t=nt(r.theme||"tooltip","placement")),t}function vi(r,o,t){let e;const n=typeof o;return n==="string"?e={content:o}:o&&n==="object"?e=o:e={content:!1},e.placement=wa(e,t),e.targetNodes=()=>[r],e.referenceNode=()=>r,e}let Ht,rt,Ta=0;function Sa(){if(Ht)return;rt=l.ref([]),Ht=l.createApp({name:"VTooltipDirectiveApp",setup(){return{directives:rt}},render(){return this.directives.map(o=>l.h(Oa,{...o.options,shown:o.shown||o.options.shown,key:o.id}))},devtools:{hide:!0}});const r=document.createElement("div");document.body.appendChild(r),Ht.mount(r)}function Ca(r,o,t){Sa();const e=l.ref(vi(r,o,t)),n=l.ref(!1),i={id:Ta++,options:e,shown:n};return rt.value.push(i),r.classList&&r.classList.add(hi),r.$_popper={options:e,item:i,show(){n.value=!0},hide(){n.value=!1}}}function pi(r){if(r.$_popper){const o=rt.value.indexOf(r.$_popper.item);o!==-1&&rt.value.splice(o,1),delete r.$_popper,delete r.$_popperOldShown,delete r.$_popperMountTarget}r.classList&&r.classList.remove(hi)}function Sr(r,{value:o,modifiers:t}){const e=vi(r,o,t);if(!e.content||nt(e.theme||"tooltip","disabled"))pi(r);else{let n;r.$_popper?(n=r.$_popper,n.options.value=e):n=Ca(r,o,t),typeof o.shown<"u"&&o.shown!==r.$_popperOldShown&&(r.$_popperOldShown=o.shown,o.shown?n.show():n.hide())}}const ka={beforeMount:Sr,updated:Sr,beforeUnmount(r){pi(r)}};function Cr(r){r.addEventListener("click",gi),r.addEventListener("touchstart",mi,xe?{passive:!0}:!1)}function kr(r){r.removeEventListener("click",gi),r.removeEventListener("touchstart",mi),r.removeEventListener("touchend",_i),r.removeEventListener("touchcancel",yi)}function gi(r){const o=r.currentTarget;r.closePopover=!o.$_vclosepopover_touch,r.closeAllPopover=o.$_closePopoverModifiers&&!!o.$_closePopoverModifiers.all}function mi(r){if(r.changedTouches.length===1){const o=r.currentTarget;o.$_vclosepopover_touch=!0;const t=r.changedTouches[0];o.$_vclosepopover_touchPoint=t,o.addEventListener("touchend",_i),o.addEventListener("touchcancel",yi)}}function _i(r){const o=r.currentTarget;if(o.$_vclosepopover_touch=!1,r.changedTouches.length===1){const t=r.changedTouches[0],e=o.$_vclosepopover_touchPoint;r.closePopover=Math.abs(t.screenY-e.screenY)<20&&Math.abs(t.screenX-e.screenX)<20,r.closeAllPopover=o.$_closePopoverModifiers&&!!o.$_closePopoverModifiers.all}}function yi(r){const o=r.currentTarget;o.$_vclosepopover_touch=!1}const Ra={beforeMount(r,{value:o,modifiers:t}){r.$_closePopoverModifiers=t,(typeof o>"u"||o)&&Cr(r)},updated(r,{value:o,oldValue:t,modifiers:e}){r.$_closePopoverModifiers=e,o!==t&&(typeof o>"u"||o?Cr(r):kr(r))},beforeUnmount(r){kr(r)}};function Ia(r,o={}){r.$_vTooltipInstalled||(r.$_vTooltipInstalled=!0,oi(he,o),r.directive("tooltip",ka),r.directive("close-popper",Ra),r.component("VTooltip",ya),r.component("VDropdown",ma),r.component("VMenu",_a))}const Na={version:"2.0.0-beta.24",install:Ia,options:he};var bi={exports:{}};const Aa=Tn.getAugmentedNamespace(l.vue_esmBundler);(function(r,o){(function(e,n){r.exports=n(Aa)})(typeof self<"u"?self:Tn.commonjsGlobal,function(t){return function(e){var n={};function i(a){if(n[a])return n[a].exports;var s=n[a]={i:a,l:!1,exports:{}};return e[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=n,i.d=function(a,s,c){i.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:c})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,s){if(s&1&&(a=i(a)),s&8||s&4&&typeof a=="object"&&a&&a.__esModule)return a;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:a}),s&2&&typeof a!="string")for(var u in a)i.d(c,u,function(f){return a[f]}.bind(null,u));return c},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s="fb15")}({"00ee":function(e,n,i){var a=i("b622"),s=a("toStringTag"),c={};c[s]="z",e.exports=String(c)==="[object z]"},"0366":function(e,n,i){var a=i("1c0b");e.exports=function(s,c,u){if(a(s),c===void 0)return s;switch(u){case 0:return function(){return s.call(c)};case 1:return function(f){return s.call(c,f)};case 2:return function(f,h){return s.call(c,f,h)};case 3:return function(f,h,v){return s.call(c,f,h,v)}}return function(){return s.apply(c,arguments)}}},"06cf":function(e,n,i){var a=i("83ab"),s=i("d1e7"),c=i("5c6c"),u=i("fc6a"),f=i("c04e"),h=i("5135"),v=i("0cfb"),d=Object.getOwnPropertyDescriptor;n.f=a?d:function(g,m){if(g=u(g),m=f(m,!0),v)try{return d(g,m)}catch{}if(h(g,m))return c(!s.f.call(g,m),g[m])}},"0cfb":function(e,n,i){var a=i("83ab"),s=i("d039"),c=i("cc12");e.exports=!a&&!s(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},"1be4":function(e,n,i){var a=i("d066");e.exports=a("document","documentElement")},"1c0b":function(e,n){e.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"1d80":function(e,n){e.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"1dde":function(e,n,i){var a=i("d039"),s=i("b622"),c=i("2d00"),u=s("species");e.exports=function(f){return c>=51||!a(function(){var h=[],v=h.constructor={};return v[u]=function(){return{foo:1}},h[f](Boolean).foo!==1})}},"23cb":function(e,n,i){var a=i("a691"),s=Math.max,c=Math.min;e.exports=function(u,f){var h=a(u);return h<0?s(h+f,0):c(h,f)}},"23e7":function(e,n,i){var a=i("da84"),s=i("06cf").f,c=i("9112"),u=i("6eeb"),f=i("ce4e"),h=i("e893"),v=i("94ca");e.exports=function(d,p){var g=d.target,m=d.global,_=d.stat,y,b,E,x,C,I;if(m?b=a:_?b=a[g]||f(g,{}):b=(a[g]||{}).prototype,b)for(E in p){if(C=p[E],d.noTargetGet?(I=s(b,E),x=I&&I.value):x=b[E],y=v(m?E:g+(_?".":"#")+E,d.forced),!y&&x!==void 0){if(typeof C==typeof x)continue;h(C,x)}(d.sham||x&&x.sham)&&c(C,"sham",!0),u(b,E,C,d)}}},"241c":function(e,n,i){var a=i("ca84"),s=i("7839"),c=s.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(f){return a(f,c)}},"2d00":function(e,n,i){var a=i("da84"),s=i("342f"),c=a.process,u=c&&c.versions,f=u&&u.v8,h,v;f?(h=f.split("."),v=h[0]+h[1]):s&&(h=s.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=s.match(/Chrome\/(\d+)/),h&&(v=h[1]))),e.exports=v&&+v},"342f":function(e,n,i){var a=i("d066");e.exports=a("navigator","userAgent")||""},"37e8":function(e,n,i){var a=i("83ab"),s=i("9bf2"),c=i("825a"),u=i("df75");e.exports=a?Object.defineProperties:function(h,v){c(h);for(var d=u(v),p=d.length,g=0,m;p>g;)s.f(h,m=d[g++],v[m]);return h}},"3bbe":function(e,n,i){var a=i("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,n,i){var a=i("da84");e.exports=a},"44ad":function(e,n,i){var a=i("d039"),s=i("c6b6"),c="".split;e.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return s(u)=="String"?c.call(u,""):Object(u)}:Object},4930:function(e,n,i){var a=i("d039");e.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(e,n,i){var a=i("fc6a"),s=i("50c4"),c=i("23cb"),u=function(f){return function(h,v,d){var p=a(h),g=s(p.length),m=c(d,g),_;if(f&&v!=v){for(;g>m;)if(_=p[m++],_!=_)return!0}else for(;g>m;m++)if((f||m in p)&&p[m]===v)return f||m||0;return!f&&-1}};e.exports={includes:u(!0),indexOf:u(!1)}},"4de4":function(e,n,i){var a=i("23e7"),s=i("b727").filter,c=i("1dde"),u=i("ae40"),f=c("filter"),h=u("filter");a({target:"Array",proto:!0,forced:!f||!h},{filter:function(d){return s(this,d,arguments.length>1?arguments[1]:void 0)}})},"50c4":function(e,n,i){var a=i("a691"),s=Math.min;e.exports=function(c){return c>0?s(a(c),9007199254740991):0}},5135:function(e,n){var i={}.hasOwnProperty;e.exports=function(a,s){return i.call(a,s)}},5692:function(e,n,i){var a=i("c430"),s=i("c6cd");(e.exports=function(c,u){return s[c]||(s[c]=u!==void 0?u:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,n,i){var a=i("d066"),s=i("241c"),c=i("7418"),u=i("825a");e.exports=a("Reflect","ownKeys")||function(h){var v=s.f(u(h)),d=c.f;return d?v.concat(d(h)):v}},5899:function(e,n){e.exports=`
|
|
2
|
-
\v\f\r \u2028\u2029\uFEFF`},"58a8":function(e,n,i){var a=i("1d80"),s=i("5899"),c="["+s+"]",u=RegExp("^"+c+c+"*"),f=RegExp(c+c+"*$"),h=function(v){return function(d){var p=String(a(d));return v&1&&(p=p.replace(u,"")),v&2&&(p=p.replace(f,"")),p}};e.exports={start:h(1),end:h(2),trim:h(3)}},"5c6c":function(e,n){e.exports=function(i,a){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:a}}},"652c":function(e,n,i){},"65f0":function(e,n,i){var a=i("861d"),s=i("e8b5"),c=i("b622"),u=c("species");e.exports=function(f,h){var v;return s(f)&&(v=f.constructor,typeof v=="function"&&(v===Array||s(v.prototype))?v=void 0:a(v)&&(v=v[u],v===null&&(v=void 0))),new(v===void 0?Array:v)(h===0?0:h)}},"69f3":function(e,n,i){var a=i("7f9a"),s=i("da84"),c=i("861d"),u=i("9112"),f=i("5135"),h=i("f772"),v=i("d012"),d=s.WeakMap,p,g,m,_=function(O){return m(O)?g(O):p(O,{})},y=function(O){return function(k){var T;if(!c(k)||(T=g(k)).type!==O)throw TypeError("Incompatible receiver, "+O+" required");return T}};if(a){var b=new d,E=b.get,x=b.has,C=b.set;p=function(O,k){return C.call(b,O,k),k},g=function(O){return E.call(b,O)||{}},m=function(O){return x.call(b,O)}}else{var I=h("state");v[I]=!0,p=function(O,k){return u(O,I,k),k},g=function(O){return f(O,I)?O[I]:{}},m=function(O){return f(O,I)}}e.exports={set:p,get:g,has:m,enforce:_,getterFor:y}},"6b0d":function(e,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=(a,s)=>{const c=a.__vccOpts||a;for(const[u,f]of s)c[u]=f;return c}},"6eeb":function(e,n,i){var a=i("da84"),s=i("9112"),c=i("5135"),u=i("ce4e"),f=i("8925"),h=i("69f3"),v=h.get,d=h.enforce,p=String(String).split("String");(e.exports=function(g,m,_,y){var b=y?!!y.unsafe:!1,E=y?!!y.enumerable:!1,x=y?!!y.noTargetGet:!1;if(typeof _=="function"&&(typeof m=="string"&&!c(_,"name")&&s(_,"name",m),d(_).source=p.join(typeof m=="string"?m:"")),g===a){E?g[m]=_:u(m,_);return}else b?!x&&g[m]&&(E=!0):delete g[m];E?g[m]=_:s(g,m,_)})(Function.prototype,"toString",function(){return typeof this=="function"&&v(this).source||f(this)})},7156:function(e,n,i){var a=i("861d"),s=i("d2bb");e.exports=function(c,u,f){var h,v;return s&&typeof(h=u.constructor)=="function"&&h!==f&&a(v=h.prototype)&&v!==f.prototype&&s(c,v),c}},7418:function(e,n){n.f=Object.getOwnPropertySymbols},7839:function(e,n){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7ae1":function(e,n,i){i("652c")},"7b0b":function(e,n,i){var a=i("1d80");e.exports=function(s){return Object(a(s))}},"7c73":function(e,n,i){var a=i("825a"),s=i("37e8"),c=i("7839"),u=i("d012"),f=i("1be4"),h=i("cc12"),v=i("f772"),d=">",p="<",g="prototype",m="script",_=v("IE_PROTO"),y=function(){},b=function(O){return p+m+d+O+p+"/"+m+d},E=function(O){O.write(b("")),O.close();var k=O.parentWindow.Object;return O=null,k},x=function(){var O=h("iframe"),k="java"+m+":",T;return O.style.display="none",f.appendChild(O),O.src=String(k),T=O.contentWindow.document,T.open(),T.write(b("document.F=Object")),T.close(),T.F},C,I=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch{}I=C?E(C):x();for(var O=c.length;O--;)delete I[g][c[O]];return I()};u[_]=!0,e.exports=Object.create||function(k,T){var D;return k!==null?(y[g]=a(k),D=new y,y[g]=null,D[_]=k):D=I(),T===void 0?D:s(D,T)}},"7f9a":function(e,n,i){var a=i("da84"),s=i("8925"),c=a.WeakMap;e.exports=typeof c=="function"&&/native code/.test(s(c))},"825a":function(e,n,i){var a=i("861d");e.exports=function(s){if(!a(s))throw TypeError(String(s)+" is not an object");return s}},"83ab":function(e,n,i){var a=i("d039");e.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(e,n,i){var a=i("c04e"),s=i("9bf2"),c=i("5c6c");e.exports=function(u,f,h){var v=a(f);v in u?s.f(u,v,c(0,h)):u[v]=h}},"861d":function(e,n){e.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},8875:function(e,n,i){var a,s,c;(function(u,f){s=[],a=f,c=typeof a=="function"?a.apply(n,s):a,c!==void 0&&(e.exports=c)})(typeof self<"u"?self:this,function(){function u(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==u&&document.currentScript)return document.currentScript;try{throw new Error}catch(C){var h=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,v=/@([^@]*):(\d+):(\d+)\s*$/ig,d=h.exec(C.stack)||v.exec(C.stack),p=d&&d[1]||!1,g=d&&d[2]||!1,m=document.location.href.replace(document.location.hash,""),_,y,b,E=document.getElementsByTagName("script");p===m&&(_=document.documentElement.outerHTML,y=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),b=_.replace(y,"$1").trim());for(var x=0;x<E.length;x++)if(E[x].readyState==="interactive"||E[x].src===p||p===m&&E[x].innerHTML&&E[x].innerHTML.trim()===b)return E[x];return null}}return u})},8925:function(e,n,i){var a=i("c6cd"),s=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(c){return s.call(c)}),e.exports=a.inspectSource},"8bbf":function(e,n){e.exports=t},"90e3":function(e,n){var i=0,a=Math.random();e.exports=function(s){return"Symbol("+String(s===void 0?"":s)+")_"+(++i+a).toString(36)}},9112:function(e,n,i){var a=i("83ab"),s=i("9bf2"),c=i("5c6c");e.exports=a?function(u,f,h){return s.f(u,f,c(1,h))}:function(u,f,h){return u[f]=h,u}},"94ca":function(e,n,i){var a=i("d039"),s=/#|\.prototype\./,c=function(d,p){var g=f[u(d)];return g==v?!0:g==h?!1:typeof p=="function"?a(p):!!p},u=c.normalize=function(d){return String(d).replace(s,".").toLowerCase()},f=c.data={},h=c.NATIVE="N",v=c.POLYFILL="P";e.exports=c},"99af":function(e,n,i){var a=i("23e7"),s=i("d039"),c=i("e8b5"),u=i("861d"),f=i("7b0b"),h=i("50c4"),v=i("8418"),d=i("65f0"),p=i("1dde"),g=i("b622"),m=i("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(!u(O))return!1;var k=O[_];return k!==void 0?!!k:c(O)},I=!E||!x;a({target:"Array",proto:!0,forced:I},{concat:function(k){var T=f(this),D=d(T,0),A=0,$,z,H,w,P;for($=-1,H=arguments.length;$<H;$++)if(P=$===-1?T:arguments[$],C(P)){if(w=h(P.length),A+w>y)throw TypeError(b);for(z=0;z<w;z++,A++)z in P&&v(D,A,P[z])}else{if(A>=y)throw TypeError(b);v(D,A++,P)}return D.length=A,D}})},"9bf2":function(e,n,i){var a=i("83ab"),s=i("0cfb"),c=i("825a"),u=i("c04e"),f=Object.defineProperty;n.f=a?f:function(v,d,p){if(c(v),d=u(d,!0),c(p),s)try{return f(v,d,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(v[d]=p.value),v}},a691:function(e,n){var i=Math.ceil,a=Math.floor;e.exports=function(s){return isNaN(s=+s)?0:(s>0?a:i)(s)}},a9e3:function(e,n,i){var a=i("83ab"),s=i("da84"),c=i("94ca"),u=i("6eeb"),f=i("5135"),h=i("c6b6"),v=i("7156"),d=i("c04e"),p=i("d039"),g=i("7c73"),m=i("241c").f,_=i("06cf").f,y=i("9bf2").f,b=i("58a8").trim,E="Number",x=s[E],C=x.prototype,I=h(g(C))==E,O=function($){var z=d($,!1),H,w,P,S,X,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(X=z.slice(2),M=X.length,L=0;L<M;L++)if(ie=X.charCodeAt(L),ie<48||ie>S)return NaN;return parseInt(X,P)}}return+z};if(c(E,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var k=function(z){var H=arguments.length<1?0:z,w=this;return w instanceof k&&(I?p(function(){C.valueOf.call(w)}):h(w)!=E)?v(new x(O(H)),w,k):O(H)},T=a?m(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),D=0,A;T.length>D;D++)f(x,A=T[D])&&!f(k,A)&&y(k,A,_(x,A));k.prototype=C,C.constructor=k,u(s,E,k)}},ae40:function(e,n,i){var a=i("83ab"),s=i("d039"),c=i("5135"),u=Object.defineProperty,f={},h=function(v){throw v};e.exports=function(v,d){if(c(f,v))return f[v];d||(d={});var p=[][v],g=c(d,"ACCESSORS")?d.ACCESSORS:!1,m=c(d,0)?d[0]:h,_=c(d,1)?d[1]:void 0;return f[v]=!!p&&!s(function(){if(g&&!a)return!0;var y={length:-1};g?u(y,1,{enumerable:!0,get:h}):y[1]=1,p.call(y,m,_)})}},b041:function(e,n,i){var a=i("00ee"),s=i("f5df");e.exports=a?{}.toString:function(){return"[object "+s(this)+"]"}},b622:function(e,n,i){var a=i("da84"),s=i("5692"),c=i("5135"),u=i("90e3"),f=i("4930"),h=i("fdbf"),v=s("wks"),d=a.Symbol,p=h?d:d&&d.withoutSetter||u;e.exports=function(g){return c(v,g)||(f&&c(d,g)?v[g]=d[g]:v[g]=p("Symbol."+g)),v[g]}},b727:function(e,n,i){var a=i("0366"),s=i("44ad"),c=i("7b0b"),u=i("50c4"),f=i("65f0"),h=[].push,v=function(d){var p=d==1,g=d==2,m=d==3,_=d==4,y=d==6,b=d==5||y;return function(E,x,C,I){for(var O=c(E),k=s(O),T=a(x,C,3),D=u(k.length),A=0,$=I||f,z=p?$(E,D):g?$(E,0):void 0,H,w;D>A;A++)if((b||A in k)&&(H=k[A],w=T(H,A,O),d)){if(p)z[A]=w;else if(w)switch(d){case 3:return!0;case 5:return H;case 6:return A;case 2:h.call(z,H)}else if(_)return!1}return y?-1:m||_?_:z}};e.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6)}},c04e:function(e,n,i){var a=i("861d");e.exports=function(s,c){if(!a(s))return s;var u,f;if(c&&typeof(u=s.toString)=="function"&&!a(f=u.call(s))||typeof(u=s.valueOf)=="function"&&!a(f=u.call(s))||!c&&typeof(u=s.toString)=="function"&&!a(f=u.call(s)))return f;throw TypeError("Can't convert object to primitive value")}},c430:function(e,n){e.exports=!1},c6b6:function(e,n){var i={}.toString;e.exports=function(a){return i.call(a).slice(8,-1)}},c6cd:function(e,n,i){var a=i("da84"),s=i("ce4e"),c="__core-js_shared__",u=a[c]||s(c,{});e.exports=u},c8ba:function(e,n){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}e.exports=i},ca84:function(e,n,i){var a=i("5135"),s=i("fc6a"),c=i("4d64").indexOf,u=i("d012");e.exports=function(f,h){var v=s(f),d=0,p=[],g;for(g in v)!a(u,g)&&a(v,g)&&p.push(g);for(;h.length>d;)a(v,g=h[d++])&&(~c(p,g)||p.push(g));return p}},cc12:function(e,n,i){var a=i("da84"),s=i("861d"),c=a.document,u=s(c)&&s(c.createElement);e.exports=function(f){return u?c.createElement(f):{}}},ce4e:function(e,n,i){var a=i("da84"),s=i("9112");e.exports=function(c,u){try{s(a,c,u)}catch{a[c]=u}return u}},d012:function(e,n){e.exports={}},d039:function(e,n){e.exports=function(i){try{return!!i()}catch{return!0}}},d066:function(e,n,i){var a=i("428f"),s=i("da84"),c=function(u){return typeof u=="function"?u:void 0};e.exports=function(u,f){return arguments.length<2?c(a[u])||c(s[u]):a[u]&&a[u][f]||s[u]&&s[u][f]}},d1e7:function(e,n,i){var a={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,c=s&&!a.call({1:2},1);n.f=c?function(f){var h=s(this,f);return!!h&&h.enumerable}:a},d2bb:function(e,n,i){var a=i("825a"),s=i("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,u={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(u,[]),c=u instanceof Array}catch{}return function(v,d){return a(v),s(d),c?f.call(v,d):v.__proto__=d,v}}():void 0)},d3b7:function(e,n,i){var a=i("00ee"),s=i("6eeb"),c=i("b041");a||s(Object.prototype,"toString",c,{unsafe:!0})},da84:function(e,n,i){(function(a){var s=function(c){return c&&c.Math==Math&&c};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,i("c8ba"))},df75:function(e,n,i){var a=i("ca84"),s=i("7839");e.exports=Object.keys||function(u){return a(u,s)}},e893:function(e,n,i){var a=i("5135"),s=i("56ef"),c=i("06cf"),u=i("9bf2");e.exports=function(f,h){for(var v=s(h),d=u.f,p=c.f,g=0;g<v.length;g++){var m=v[g];a(f,m)||d(f,m,p(h,m))}}},e8b5:function(e,n,i){var a=i("c6b6");e.exports=Array.isArray||function(c){return a(c)=="Array"}},f5df:function(e,n,i){var a=i("00ee"),s=i("c6b6"),c=i("b622"),u=c("toStringTag"),f=s(function(){return arguments}())=="Arguments",h=function(v,d){try{return v[d]}catch{}};e.exports=a?s:function(v){var d,p,g;return v===void 0?"Undefined":v===null?"Null":typeof(p=h(d=Object(v),u))=="string"?p:f?s(d):(g=s(d))=="Object"&&typeof d.callee=="function"?"Arguments":g}},f772:function(e,n,i){var a=i("5692"),s=i("90e3"),c=a("keys");e.exports=function(u){return c[u]||(c[u]=s(u))}},fb15:function(e,n,i){if(i.r(n),i.d(n,"InnerImageZoom",function(){return z}),typeof window<"u"){var a=window.document.currentScript;{var s=i("8875");a=s(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:s})}var c=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(i.p=c[1])}function u(w,P,S){return P in w?Object.defineProperty(w,P,{value:S,enumerable:!0,configurable:!0,writable:!0}):w[P]=S,w}i("99af");var f=i("8bbf"),h={key:0},v=["srcSet","sizes","media","type"],d=["src","srcSet","sizes","alt"],p=["src","srcSet","sizes","alt"],g={class:"iiz__zoom-portal"},m=["src"],_=["src"],y={key:1,class:"iiz__btn iiz__hint"};function b(w,P,S,X,M,L){var ie;return Object(f.openBlock)(),Object(f.createElementBlock)("figure",Object(f.mergeProps)({class:["iiz",(ie={},u(ie,S.className,S.className),u(ie,"iiz--drag",M.currentMoveType==="drag"),ie)],ref:"img",style:{width:"".concat(S.width,"px")}},Object(f.toHandlers)({touchstart:M.isZoomed?function(){}:L.handleTouchStart,click:L.handleClick,mouseenter:M.isTouch?function(){}:L.handleMouseEnter,mousemove:M.currentMoveType==="drag"||!M.isZoomed?function(){}:L.handleMouseMove,mouseleave:M.isTouch?function(){}:L.handleMouseLeave})),[Object(f.createElementVNode)("div",{style:Object(f.normalizeStyle)({paddingTop:L.createSpacer?"".concat(S.height/S.width*100,"%"):null})},[L.validSources?(Object(f.openBlock)(),Object(f.createElementBlock)("picture",h,[(Object(f.openBlock)(!0),Object(f.createElementBlock)(f.Fragment,null,Object(f.renderList)(L.validSources,function(Ce,ct){return Object(f.openBlock)(),Object(f.createElementBlock)("source",{key:ct,srcSet:Ce.srcSet,sizes:Ce.sizes,media:Ce.media,type:Ce.type},null,8,v)}),128)),Object(f.createElementVNode)("img",{class:Object(f.normalizeClass)(["iiz__img",{"iiz__img--hidden":M.isZoomed,"iiz__img--abs":L.createSpacer}]),style:Object(f.normalizeStyle)({transition:"linear 0ms opacity ".concat(M.isZoomed?S.fadeDuration:0,"ms, linear 0ms visibility ").concat(M.isZoomed?S.fadeDuration:0,"ms")}),src:S.src,srcSet:S.srcSet,sizes:S.sizes,alt:S.alt},null,14,d)])):(Object(f.openBlock)(),Object(f.createElementBlock)("img",{key:1,class:Object(f.normalizeClass)(["iiz__img",{"iiz__img--hidden":M.isZoomed,"iiz__img--abs":L.createSpacer}]),style:Object(f.normalizeStyle)({transition:"linear 0ms opacity ".concat(M.isZoomed?S.fadeDuration:0,"ms, linear 0ms visibility ").concat(M.isZoomed?S.fadeDuration:0,"ms")}),src:S.src,srcSet:S.srcSet,sizes:S.sizes,alt:S.alt},null,14,p))],4),M.isActive?(Object(f.openBlock)(),Object(f.createElementBlock)(f.Fragment,{key:0},[M.isFullscreen?(Object(f.openBlock)(),Object(f.createBlock)(f.Teleport,{key:0,to:"body"},[Object(f.createElementVNode)("div",g,[Object(f.createElementVNode)("img",Object(f.mergeProps)({class:["iiz__zoom-img",{"iiz__zoom-img--visible":M.isZoomed}],alt:"",draggable:!1,style:{top:"".concat(M.top,"px"),left:"".concat(M.left,"px"),transition:"linear ".concat(M.isFullscreen?0:S.fadeDuration,"ms opacity, linear ").concat(M.isFullscreen?0:S.fadeDuration,"ms visibility")},src:S.zoomSrc||S.src},Object(f.toHandlers)({load:L.handleLoad,touchstart:L.handleDragStart,touchend:L.handleDragEnd,mousedown:L.handleDragStart,mouseup:L.handleDragEnd,click:L.handleClick})),null,16,m),M.isTouch&&!S.hideCloseButton?(Object(f.openBlock)(),Object(f.createElementBlock)("button",{key:0,type:"button",class:Object(f.normalizeClass)(["iiz__btn iiz__close",{"iiz__close--visible":M.isZoomed}]),"aria-label":"Zoom Out",style:Object(f.normalizeStyle)({transition:"linear ".concat(M.isFullscreen?0:S.fadeDuration,"ms opacity, linear ").concat(M.isFullscreen?0:S.fadeDuration,"ms visibility")}),onClick:P[0]||(P[0]=Object(f.withModifiers)(function(){return L.handleClose&&L.handleClose.apply(L,arguments)},["stop"]))},null,6)):Object(f.createCommentVNode)("",!0)])])):(Object(f.openBlock)(),Object(f.createElementBlock)(f.Fragment,{key:1},[Object(f.createElementVNode)("img",Object(f.mergeProps)({class:["iiz__zoom-img",{"iiz__zoom-img--visible":M.isZoomed}],alt:"",draggable:!1,style:{top:"".concat(M.top,"px"),left:"".concat(M.left,"px"),transition:"linear ".concat(M.isFullscreen?0:S.fadeDuration,"ms opacity, linear ").concat(M.isFullscreen?0:S.fadeDuration,"ms visibility")},src:S.zoomSrc||S.src},Object(f.toHandlers)({load:L.handleLoad,touchstart:L.handleDragStart,touchend:L.handleDragEnd,mousedown:L.handleDragStart,mouseup:L.handleDragEnd})),null,16,_),M.isTouch&&!S.hideCloseButton?(Object(f.openBlock)(),Object(f.createElementBlock)("button",{key:0,class:Object(f.normalizeClass)(["iiz__btn iiz__close",{"iiz__close--visible":M.isZoomed}]),type:"button","aria-label":"Zoom Out",style:Object(f.normalizeStyle)({transition:"linear ".concat(M.isFullscreen?0:S.fadeDuration,"ms opacity, linear ").concat(M.isFullscreen?0:S.fadeDuration,"ms visibility")}),onClick:P[1]||(P[1]=Object(f.withModifiers)(function(){return L.handleClose&&L.handleClose.apply(L,arguments)},["stop"]))},null,6)):Object(f.createCommentVNode)("",!0)],64))],64)):Object(f.createCommentVNode)("",!0),!M.isZoomed&&!S.hideHint?(Object(f.openBlock)(),Object(f.createElementBlock)("span",y)):Object(f.createCommentVNode)("",!0)],16)}i("a9e3"),i("4de4"),i("d3b7");var E={name:"InnerImageZoom",props:{moveType:{type:String,default:"pan"},zoomType:{type:String,default:"click"},src:{type:String,required:!0},srcSet:String,sizes:String,sources:Array,width:Number,height:Number,hasSpacer:Boolean,zoomSrc:String,zoomScale:{type:Number,default:1},zoomPreload:Boolean,alt:String,fadeDuration:{type:Number,default:150},fullscreenOnMobile:Boolean,mobileBreakpoint:{type:Number,default:640},hideHint:Boolean,hideCloseButton:Boolean,className:String,afterZoomIn:Function,afterZoomOut:Function},data:function(){return{isActive:this.zoomPreload||!1,isTouch:!1,isZoomed:!1,isFullscreen:!1,isDragging:!1,currentMoveType:this.moveType,left:0,top:0,imgProps:{}}},created:function(){this.setDefaults(),O(this.fullscreenOnMobile,this.mobileBreakpoint)&&(this.isActive=!1)},computed:{validSources:function(){return this.sources?this.sources.filter(function(P){return P.srcSet}):[]},createSpacer:function(){return this.width&&this.height&&this.hasSpacer}},methods:{handleMouseEnter:function(P){this.isActive=!0,this.zoomType==="hover"&&!this.isZoomed&&this.handleClick(P)},handleTouchStart:function(){this.isTouch=!0,this.isFullscreen=O(this.fullscreenOnMobile,this.mobileBreakpoint),this.currentMoveType="drag"},handleClick:function(P){if(this.isZoomed){this.isTouch?this.hideCloseButton&&this.handleClose():!this.isDragging&&this.zoomOut();return}this.isTouch&&(this.isActive=!0),this.imgProps.zoomImg?(this.handleLoad({target:this.imgProps.zoomImg}),this.zoomIn(P.pageX,P.pageY)):this.imgProps.onLoadCallback=this.zoomIn.bind(this,P.pageX,P.pageY)},handleLoad:function(P){var S=k(P.target,this.zoomScale);this.imgProps.zoomImg=P.target,this.imgProps.zoomImg.setAttribute("width",S.width),this.imgProps.zoomImg.setAttribute("height",S.height),this.imgProps.scaledDimensions=S,this.imgProps.bounds=x(this.$refs.img,!1),this.imgProps.ratios=I(this.imgProps.bounds,S),this.imgProps.onLoadCallback&&(this.imgProps.onLoadCallback(),this.imgProps.onLoadCallback=null)},handleMouseMove:function(P){var S=P.pageX-this.imgProps.offsets.x,X=P.pageY-this.imgProps.offsets.y;S=Math.max(Math.min(S,this.imgProps.bounds.width),0),X=Math.max(Math.min(X,this.imgProps.bounds.height),0),this.left=S*-this.imgProps.ratios.x,this.top=X*-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,X=(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),X=Math.max(Math.min(X,0),(this.imgProps.scaledDimensions.height-this.imgProps.bounds.height)*-1),this.left=S,this.top=X},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),X=Math.abs(P.pageY-this.imgProps.eventPosition.y);this.isDragging=S>5||X>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 X=(P-(window.pageXOffset+this.imgProps.bounds.left))*-this.imgProps.ratios.x,M=(S-(window.pageYOffset+this.imgProps.bounds.top))*-this.imgProps.ratios.y;X=X+(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:X,pageY:M}],preventDefault:function(){},stopPropagation:function(){}})},zoomIn:function(P,S){var X=this.currentMoveType==="drag"?this.initialDragMove:this.initialMove;this.isZoomed=!0,X(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,X){return{x:w-S,y:P-X}}function I(w,P){return{x:(P.width-w.width)/w.width,y:(P.height-w.height)/w.height}}function O(w,P){return w&&window.matchMedia&&window.matchMedia("(max-width: ".concat(P,"px)")).matches}function k(w,P){return{width:w.naturalWidth*P,height:w.naturalHeight*P}}i("7ae1");var T=i("6b0d"),D=i.n(T),$=D()(E,[["render",b],["__scopeId","data-v-d1255c78"]]),z=$,H=z;n.default=H},fc6a:function(e,n,i){var a=i("44ad"),s=i("1d80");e.exports=function(c){return a(s(c))}},fdbf:function(e,n,i){var a=i("4930");e.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}})})})(bi);var Da=bi.exports;const Rr=Tn.getDefaultExportFromCjs(Da);var Ma=function(){function r(){this.keys=[],this.values=[]}var o=r.prototype;return o.get=function(t){return this.values[this.keys.indexOf(t)]},o.set=function(t,e){var n=this.keys,i=this.values,a=n.indexOf(t),s=a===-1?n.length:a;n[s]=t,i[s]=e},r}(),za=function(){function r(){this.object={}}var o=r.prototype;return o.get=function(t){return this.object[t]},o.set=function(t,e){this.object[t]=e},r}(),Ba=typeof Map=="function",La=function(){function r(){}var o=r.prototype;return o.connect=function(t,e){this.prev=t,this.next=e,t&&(t.next=this),e&&(e.prev=this)},o.disconnect=function(){var t=this.prev,e=this.next;t&&(t.next=e),e&&(e.prev=t)},o.getIndex=function(){for(var t=this,e=-1;t;)t=t.prev,++e;return e},r}();function Va(r,o){var t=[],e=[];return r.forEach(function(n){var i=n[0],a=n[1],s=new La;t[i]=s,e[a]=s}),t.forEach(function(n,i){n.connect(t[i-1])}),r.filter(function(n,i){return!o[i]}).map(function(n,i){var a=n[0],s=n[1];if(a===s)return[0,0];var c=t[a],u=e[s-1],f=c.getIndex();c.disconnect(),u?c.connect(u,u.next):c.connect(void 0,t[0]);var h=c.getIndex();return[f,h]})}var ja=function(){function r(t,e,n,i,a,s,c,u){this.prevList=t,this.list=e,this.added=n,this.removed=i,this.changed=a,this.maintained=s,this.changedBeforeAdded=c,this.fixed=u}var o=r.prototype;return Object.defineProperty(o,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(o,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),o.caculateOrdered=function(){var t=Va(this.changedBeforeAdded,this.fixed),e=this.changed,n=[];this.cacheOrdered=t.filter(function(i,a){var s=i[0],c=i[1],u=e[a],f=u[0],h=u[1];if(s!==c)return n.push([f,h]),!0}),this.cachePureChanged=n},r}();function Fa(r,o,t){var e=Ba?Map:t?za:Ma,n=t||function(y){return y},i=[],a=[],s=[],c=r.map(n),u=o.map(n),f=new e,h=new e,v=[],d=[],p={},g=[],m=0,_=0;return c.forEach(function(y,b){f.set(y,b)}),u.forEach(function(y,b){h.set(y,b)}),c.forEach(function(y,b){var E=h.get(y);typeof E>"u"?(++_,a.push(b)):p[E]=_}),u.forEach(function(y,b){var E=f.get(y);typeof E>"u"?(i.push(b),++m):(s.push([E,b]),_=p[b]||0,v.push([E-_,b-m]),d.push(b===E),E!==b&&g.push([E,b]))}),a.reverse(),new ja(r,o,i,a,g,s,v,d)}var $a=function(){function r(t,e){t===void 0&&(t=[]),this.findKeyCallback=e,this.list=[].slice.call(t)}var o=r.prototype;return o.update=function(t){var e=[].slice.call(t),n=Fa(this.list,e,this.findKeyCallback);return this.list=e,n},r}();const Ir=$a;/*! *****************************************************************************
|
|
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 Ei(r){var o=typeof Symbol=="function"&&Symbol.iterator,t=o&&r[o],e=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ha(r,o){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var e=t.call(r),n,i=[],a;try{for(;(o===void 0||o-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(t=e.return)&&t.call(e)}finally{if(a)throw a.error}}return i}function Wt(){for(var r=[],o=0;o<arguments.length;o++)r=r.concat(Ha(arguments[o]));return r}var Fe=function(r){return typeof r>"u"},on=function(){function r(t,e){var n,i;if(this._canceled=!1,e)try{for(var a=Ei(Object.keys(e)),s=a.next();!s.done;s=a.next()){var c=s.value;this[c]=e[c]}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}this.eventType=t}var o=r.prototype;return o.stop=function(){this._canceled=!0},o.isCanceled=function(){return this._canceled},r}(),Se=function(){function r(){this._eventHandler={}}var o=r.prototype;return o.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=t instanceof on?t.eventType:t,a=Wt(this._eventHandler[i]||[]);return a.length<=0?this:(t instanceof on?(t.currentTarget=this,a.forEach(function(s){s(t)})):a.forEach(function(s){s.apply(void 0,Wt(e))}),this)},o.once=function(t,e){var n=this;if(typeof t=="object"&&Fe(e)){var i=t;for(var a in i)this.once(a,i[a]);return this}else if(typeof t=="string"&&typeof e=="function"){var s=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];e.apply(void 0,Wt(c)),n.off(t,s)};this.on(t,s)}return this},o.hasOn=function(t){return!!this._eventHandler[t]},o.on=function(t,e){if(typeof t=="object"&&Fe(e)){var n=t;for(var i in n)this.on(i,n[i]);return this}else if(typeof t=="string"&&typeof e=="function"){var a=this._eventHandler[t];Fe(a)&&(this._eventHandler[t]=[],a=this._eventHandler[t]),a.push(e)}return this},o.off=function(t,e){var n,i;if(Fe(t))return this._eventHandler={},this;if(Fe(e)){if(typeof t=="string")return delete this._eventHandler[t],this;var a=t;for(var s in a)this.off(s,a[s]);return this}var c=this._eventHandler[t];if(c){var u=0;try{for(var f=Ei(c),h=f.next();!h.done;h=f.next()){var v=h.value;if(v===e){c.splice(u,1),c.length<=0&&delete this._eventHandler[t];break}u++}}catch(d){n={error:d}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}return this},r.VERSION="3.0.4",r}(),V=on;function In(r,o){for(var t=r.length,e=0;e<t;++e)if(o(r[e],e))return!0;return!1}function Pi(r,o){for(var t=r.length,e=0;e<t;++e)if(o(r[e],e))return r[e];return null}function xi(r){var o=r;if(typeof o>"u"){if(typeof navigator>"u"||!navigator)return"";o=navigator.userAgent||""}return o.toLowerCase()}function Nn(r,o){try{return new RegExp(r,"g").exec(o)}catch{return null}}function Wa(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;var r=navigator.userAgentData,o=r.brands||r.uaList;return!!(o&&o.length)}function Ga(r,o){var t=Nn("("+r+")((?:\\/|\\s|:)([0-9|\\.|_]+))",o);return t?t[3]:""}function an(r){return r.replace(/_/g,".")}function We(r,o){var t=null,e="-1";return In(r,function(n){var i=Nn("("+n.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",o);return!i||n.brand?!1:(t=n,e=i[3]||"-1",n.versionAlias?e=n.versionAlias:n.versionTest&&(e=Ga(n.versionTest.toLowerCase(),o)||e),e=an(e),!0)}),{preset:t,version:e}}function $e(r,o){var t={brand:"",version:"-1"};return In(r,function(e){var n=Oi(o,e);return n?(t.brand=e.id,t.version=e.versionAlias||n.version,t.version!=="-1"):!1}),t}function Oi(r,o){return Pi(r,function(t){var e=t.brand;return Nn(""+o.test,e.toLowerCase())})}var sn=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],wi=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],ln=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],Ti=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],Si=[{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 Ci(r){return!!We(Ti,r).preset}function Ua(r){var o=xi(r),t=!!/mobi/g.exec(o),e={name:"unknown",version:"-1",majorVersion:-1,webview:Ci(o),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},n={name:"unknown",version:"-1",majorVersion:-1},i=We(sn,o),a=i.preset,s=i.version,c=We(Si,o),u=c.preset,f=c.version,h=We(wi,o);if(e.chromium=!!h.preset,e.chromiumVersion=h.version,!e.chromium){var v=We(ln,o);e.webkit=!!v.preset,e.webkitVersion=v.version}return u&&(n.name=u.id,n.version=f,n.majorVersion=parseInt(f,10)),a&&(e.name=a.id,e.version=s,e.webview&&n.name==="ios"&&e.name!=="safari"&&(e.webview=!1)),e.majorVersion=parseInt(e.version,10),{browser:e,os:n,isMobile:t,isHints:!1}}function Ya(r){var o=navigator.userAgentData,t=(o.uaList||o.brands).slice(),e=r&&r.fullVersionList,n=o.mobile||!1,i=t[0],a=(r&&r.platform||o.platform||navigator.platform).toLowerCase(),s={name:i.brand,version:i.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!$e(Ti,t).brand||Ci(xi())},c={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&In(ln,function(p){return Oi(t,p)});var u=$e(wi,t);if(s.chromium=!!u.brand,s.chromiumVersion=u.version,!s.chromium){var f=$e(ln,t);s.webkit=!!f.brand,s.webkitVersion=f.version}var h=Pi(Si,function(p){return new RegExp(""+p.test,"g").exec(a)});if(c.name=h?h.id:"",r&&(c.version=r.platformVersion),e&&e.length){var v=$e(sn,e);s.name=v.brand||s.name,s.version=v.version||s.version}else{var d=$e(sn,t);s.name=d.brand||s.name,s.version=d.brand&&r?r.uaFullVersion:d.version}return s.webkit&&(c.name=n?"ios":"mac"),c.name==="ios"&&s.webview&&(s.version="-1"),c.version=an(c.version),s.version=an(s.version),c.majorVersion=parseInt(c.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:c,isMobile:n,isHints:!0}}function Xa(r){return typeof r>"u"&&Wa()?Ya():Ua(r)}function Ka(r){return Object.keys(r)}var cn="__observers__",pt="__computed__",Gt=1,Ut="__CFCS_DETECTED_DEPENDENCIES__",un=function(r,o){return un=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},un(r,o)};function Za(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");un(r,o);function t(){this.constructor=r}r.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}function An(){Object[Ut]=Object[Ut]||{};var r=Object[Ut];return r[Gt]=r[Gt]||[],r[Gt]}function Ja(){var r=An();return r[r.length-1]}function Qa(r){var o=An(),t=[],e={host:r,observers:t,push:function(n){r!==n&&t.indexOf(n)===-1&&t.push(n)}};return o.push(e),e}function qa(){var r=An();return r.pop()}var ki=function(){function r(t){this._emitter=new Se,this._current=t}var o=r.prototype;return Object.defineProperty(o,"current",{get:function(){var t=Ja();return t?.push(this),this._current},set:function(t){this._setCurrent(t)},enumerable:!1,configurable:!0}),o.subscribe=function(t){return this.current,this._emitter.on("update",t),this},o.unsubscribe=function(t){return this._emitter.off("update",t),this},o._setCurrent=function(t){var e=this._current,n=t!==e;this._current=t,n&&this._emitter.trigger("update",t,e)},o.toString=function(){return"".concat(this.current)},o.valueOf=function(){return this.current},r}(),es=function(r){Za(o,r);function o(e){var n=r.call(this)||this;return n._computedCallback=e,n._registered=[],n._onCheckUpdate=function(){n._setCurrent(n.current)},n._current=n.current,n}var t=o.prototype;return Object.defineProperty(t,"current",{get:function(){var e=this;Qa(this);var n=this._computedCallback(),i=qa();return this._registered.forEach(function(a){a.unsubscribe(e._onCheckUpdate)}),i.observers.forEach(function(a){a.subscribe(e._onCheckUpdate)}),this._registered=i.observers,n},enumerable:!1,configurable:!0}),o}(ki);function Nr(r,o,t){t===void 0&&(t=o);var e={configurable:!0,get:function(){return Pe(this,t).current},set:function(n){Pe(this,t,n).current=n}};Object.defineProperty(r,o,e),t!==o&&Object.defineProperty(r,t,{configurable:!0,get:function(){return Pe(this,t).current}})}function ts(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length>1?Nr(r[0],r[1]):function(t,e){return Nr(t,e,r[0])}}function ns(r){r.subscribe=function(o,t){this[o],Pe(this,o).subscribe(t)},r.unsubscribe=function(o,t){var e=this;if(!o){Ka(Dn(this)).forEach(function(n){e.unsubscribe(n)});return}o in this&&Pe(this,o).unsubscribe(t)}}function rs(r){var o=r.prototype;ns(o)}function is(r){return new ki(r)}function os(r){return new es(r)}function as(r){var o={};return Object.defineProperty(r,cn,{get:function(){return o}}),o}function Dn(r,o){var t,e;r[cn]||as(r);var n=r[cn];if(!o){var i=(e=(t=r?.constructor)===null||t===void 0?void 0:t.prototype)===null||e===void 0?void 0:e[pt];i&&i.forEach(function(a){!(a in n)&&a in r&&r[a]})}return n}function Pe(r,o,t){var e=Dn(r);return e[o]||(e[o]=is(t)),e[o]}function ss(r,o,t){var e=t.get;function n(){var s=Dn(this,!0);return o in s||(s[o]=os(e.bind(this))),Pe(this,o).current}var i={configurable:!0,get:n};r[pt]||(r[pt]=[]);var a=r[pt];return a.indexOf(o)===-1&&a.push(o),Object.defineProperty(r,o,i),i}/*! *****************************************************************************
|
|
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 fn=function(r,o){return fn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},fn(r,o)};function Ve(r,o){fn(r,o);function t(){this.constructor=r}r.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}var Z=function(){return Z=Object.assign||function(o){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(o[i]=t[i])}return o},Z.apply(this,arguments)};function dn(r,o,t,e){var n=arguments.length,i=n<3?o:e===null?e=Object.getOwnPropertyDescriptor(o,t):e,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,o,t,e);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(n<3?a(i):n>3?a(o,t,i):a(o,t))||i);return n>3&&i&&Object.defineProperty(o,t,i),i}var Q;typeof window>"u"?Q={navigator:{userAgent:""}}:Q=window;var st=1,ls=2,cs=4,ze=6,us=8,fs=16,Be=24,Lt=30,Ot="left",hn="right",vn="middle",Ri={1:Ot,2:vn,3:hn},Ii="any",ds="none",hs="shift",vs="ctrl",ps="alt",gs="meta",ms=16,_s=30,Ar="ontouchstart"in Q&&Xa().browser.name==="safari",ys=function(){if(typeof document>"u")return"";for(var r=(document.head||document.getElementsByTagName("head")[0]).style,o=["transform","webkitTransform","msTransform","mozTransform"],t=0,e=o.length;t<e;t++)if(o[t]in r)return o[t];return""}(),pn={"-webkit-user-select":"none","-ms-user-select":"none","-moz-user-select":"none","user-select":"none","-webkit-user-drag":"none"},Dr=function(r){for(var o=[],t=0,e=r.length;t<e;t++)o.push(r[t]);return o},Ni=function(r,o){o===void 0&&(o=!1);var t;if(typeof r=="string"){var e=r.match(/^<([a-z]+)\s*([^>]*)>/);if(e){var n=document.createElement("div");n.innerHTML=r,t=Dr(n.childNodes)}else t=Dr(document.querySelectorAll(r));o||(t=t.length>=1?t[0]:void 0)}else r===Q?t=r:"value"in r||"current"in r?t=r.value||r.current:r.nodeName&&(r.nodeType===1||r.nodeType===9)?t=r:"jQuery"in Q&&r instanceof jQuery||r.constructor.prototype.jquery?t=o?r.toArray():r.get(0):Array.isArray(r)&&(t=r.map(function(i){return Ni(i)}),o||(t=t.length>=1?t[0]:void 0));return t},Re=Q.requestAnimationFrame||Q.webkitRequestAnimationFrame,Ge=Q.cancelAnimationFrame||Q.webkitCancelAnimationFrame;if(Re&&!Ge){var Yt={},bs=Re;Re=function(r){var o=function(e){Yt[t]&&r(e)},t=bs(o);return Yt[t]=!0,t},Ge=function(r){delete Yt[r]}}else Re&&Ge||(Re=function(r){return Q.setTimeout(function(){r(Q.performance&&Q.performance.now&&Q.performance.now()||new Date().getTime())},16)},Ge=Q.clearTimeout);var Es=function(r){return Re(r)},Ps=function(r){Ge(r)},se=function(r,o){var t={};for(var e in r)e&&(t[e]=o(r[e],e));return t},Ai=function(r,o){var t={};for(var e in r)e&&o(r[e],e)&&(t[e]=r[e]);return t},Mn=function(r,o){for(var t in r)if(t&&!o(r[t],t))return!1;return!0},Ue=function(r,o){return Mn(r,function(t,e){return t===o[e]})},Xt={},Di=function(r,o){return Xt[o]||(Xt[o]=Os(o)),Xt[o](r)},Mr=function(r,o){return!r||!o?r:se(r,function(t,e){return Di(t,typeof o=="number"?o:o[e])})},gt=function(r){if(!isFinite(r))return 0;var o="".concat(r);if(o.indexOf("e")>=0){for(var t=0,e=1;Math.round(r*e)/e!==r;)e*=10,t++;return t}return o.indexOf(".")>=0?o.length-o.indexOf(".")-1:0},xs=function(r){return 1/Math.pow(10,r)},Os=function(r){var o=r<1?Math.pow(10,gt(r)):1;return function(t){return r===0?0:Math.round(Math.round(t/r)*r*o)/o}},ws=function(r,o){return Math.atan2(o,r)*180/Math.PI},Ts=function(r){var o=!0;return Object.keys(pn).forEach(function(t){(!r||r[t]!==pn[t])&&(o=!1)}),o},Ss=function(r,o){return r&&o?Lt:r?ze:o?Be:st},dt=function(r,o,t){return t?!!(o===Lt||o&r&&t&r):!!(o&r)},Cs=function(r,o,t){var e,n=(e={},e[st]="auto",e[Lt]="none",e[Be]="pan-x",e[ze]="pan-y",e),i={};if(r&&r.style){var a=o.touchAction?o.touchAction:n[t],s=Z(Z({},pn),{"touch-action":r.style["touch-action"]==="none"?"none":a});Object.keys(s).forEach(function(c){i[c]=r.style[c],r.style[c]=s[c]})}return i},ks=function(r,o){r&&r.style&&o&&Object.keys(o).forEach(function(t){r.style[t]=o[t]})},Rs=function(){function r(t){this._axes=t,this.holdingCount=0}var o=r.prototype;return o.hold=function(t,e){var n=this._getRoundPos(t).roundPos;this._axes.trigger(new V("hold",{pos:n,input:e.input||null,inputEvent:e.event||null,isTrusted:!0}))},o.triggerRelease=function(t){var e=this._getRoundPos(t.destPos,t.depaPos),n=e.roundPos,i=e.roundDepa;t.destPos=n,t.depaPos=i,t.setTo=this._createUserControll(t.destPos,t.duration),this._axes.trigger(new V("release",Z(Z({},t),{bounceRatio:this._getBounceRatio(n)})))},o.triggerChange=function(t,e,n,i){var a=this;i===void 0&&(i=!1);var s=this.animationManager,c=s.axisManager,u=s.getEventInfo(),f=this._getRoundPos(t,e),h=f.roundPos,v=f.roundDepa,d=c.moveTo(h,v),p=n?.event||u?.event||null,g={pos:d.pos,delta:d.delta,bounceRatio:this._getBounceRatio(d.pos),holding:i,inputEvent:p,isTrusted:!!p,input:n?.input||u?.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&&c.set(g.set().destPos),!m.isCanceled()},o.triggerAnimationStart=function(t){var e=this._getRoundPos(t.destPos,t.depaPos),n=e.roundPos,i=e.roundDepa;t.destPos=n,t.depaPos=i,t.setTo=this._createUserControll(t.destPos,t.duration);var a=new V("animationStart",t);return this._axes.trigger(a),!a.isCanceled()},o.triggerAnimationEnd=function(t){t===void 0&&(t=!1),this._axes.trigger(new V("animationEnd",{isTrusted:t}))},o.triggerFinish=function(t){t===void 0&&(t=!1),this._axes.trigger(new V("finish",{isTrusted:t}))},o.setAnimationManager=function(t){this.animationManager=t},o.destroy=function(){this._axes.off()},o._createUserControll=function(t,e){e===void 0&&(e=0);var n={destPos:Z({},t),duration:e};return function(i,a){return i&&(n.destPos=Z({},i)),a!==void 0&&(n.duration=a),n}},o._getRoundPos=function(t,e){var n=this._axes.options.round;return{roundPos:Mr(t,n),roundDepa:Mr(e,n)}},o._getBounceRatio=function(t){return this._axes.axisManager.map(t,function(e,n){return e<n.range[0]&&n.bounce[0]!==0?(n.range[0]-e)/n.bounce[0]:e>n.range[1]&&n.bounce[1]!==0?(e-n.range[1])/n.bounce[1]:0})},dn([ts],r.prototype,"holdingCount",void 0),r}(),Is=function(){function r(t){this._options=t,this._prevented=!1}var o=r.prototype;return o.isInterrupting=function(){return this._options.interruptable||this._prevented},o.isInterrupted=function(){return!this._options.interruptable&&this._prevented},o.setInterrupt=function(t){this._options.interruptable||(this._prevented=t)},r}(),Mi=function(r,o,t,e){var n=r,i=[t[0]?o[0]:e?o[0]-e[0]:o[0],t[1]?o[1]:e?o[1]+e[1]:o[1]];return n=Math.max(i[0],n),n=Math.min(i[1],n),n},zi=function(r,o){return r<o[0]||r>o[1]},Ns=function(r,o,t,e){return!e[0]&&r===o[0]-t[0]||!e[1]&&r===o[1]+t[1]},As=function(r,o){var t=Math.sqrt(r/o*2);return t<100?0:t},zr=function(r,o,t){return t[1]&&r>o[1]||t[0]&&r<o[0]},it=function(r,o,t){var e=r,n=o[0],i=o[1],a=i-n;return t[1]&&r>i&&(e=(e-i)%a+n),t[0]&&r<n&&(e=(e-n)%a+i),e},Ds=function(){function r(t){var e=this;this._axis=t,this._complementOptions(),this._pos=Object.keys(this._axis).reduce(function(n,i){return n[i]=e._axis[i].startPos,n},{})}var o=r.prototype;return o.getDelta=function(t,e){var n=this.get(t);return se(this.get(e),function(i,a){return i-n[a]})},o.get=function(t){var e=this;return t&&Array.isArray(t)?t.reduce(function(n,i){return i&&i in e._pos&&(n[i]=e._pos[i]),n},{}):Z(Z({},this._pos),t||{})},o.moveTo=function(t,e){e===void 0&&(e=this._pos);var n=se(this._pos,function(i,a){return a in t&&a in e?t[a]-e[a]:0});return this.set(this.map(t,function(i,a){return a?it(i,a.range,a.circular):0})),{pos:Z({},this._pos),delta:n}},o.set=function(t){for(var e in t)e&&e in this._pos&&(this._pos[e]=t[e])},o.every=function(t,e){var n=this._axis;return Mn(t,function(i,a){return e(i,n[a],a)})},o.filter=function(t,e){var n=this._axis;return Ai(t,function(i,a){return e(i,n[a],a)})},o.map=function(t,e){var n=this._axis;return se(t,function(i,a){return e(i,n[a],a)})},o.isOutside=function(t){return!this.every(t?this.get(t):this._pos,function(e,n){return!zi(e,n.range)})},o.getAxisOptions=function(t){return this._axis[t]},o.setAxis=function(t){var e=this;Object.keys(t).forEach(function(n){if(!e._axis[n])throw new Error("Axis ".concat(n," does not exist in Axes instance"));e._axis[n]=Z(Z({},e._axis[n]),t[n])}),this._complementOptions()},o._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(n){var i=t._axis,a=i[e][n];/string|number|boolean/.test(typeof a)&&(i[e][n]=[a,a])})})},r}(),Ms="ontouchstart"in Q,mt="PointerEvent"in Q,zs="MSPointerEvent"in Q,Bs=mt||zs,Ls=function(r,o){return!!(!o||o.indexOf(Ii)>-1||o.indexOf(ds)>-1&&!r.shiftKey&&!r.ctrlKey&&!r.altKey&&!r.metaKey||o.indexOf(hs)>-1&&r.shiftKey||o.indexOf(vs)>-1&&r.ctrlKey||o.indexOf(ps)>-1&&r.altKey||o.indexOf(gs)>-1&&r.metaKey)},Vt=function(){function r(){var t=this;this._stopContextMenu=function(e){e.preventDefault(),Q.removeEventListener("contextmenu",t._stopContextMenu)}}var o=r.prototype;return o.extendEvent=function(t){var e,n=this.prevEvent,i=this._getCenter(t),a=n?this._getMovement(t):{x:0,y:0},s=n?this._getScale(t):1,c=n?ws(i.x-n.center.x,i.y-n.center.y):0,u=n?n.deltaX+a.x:a.x,f=n?n.deltaY+a.y:a.y,h=a.x,v=a.y,d=this._latestInterval,p=Date.now(),g=d?p-d.timestamp:0,m=n?n.velocityX:0,_=n?n.velocityY:0;return(!d||g>=ms)&&(d&&(e=[(u-d.deltaX)/g,(f-d.deltaY)/g],m=e[0],_=e[1]),this._latestInterval={timestamp:p,deltaX:u,deltaY:f}),{srcEvent:t,scale:s,angle:c,center:i,deltaX:u,deltaY:f,offsetX:h,offsetY:v,velocityX:m,velocityY:_,preventSystemEvent:!0}},o._getDistance=function(t,e){var n=e.clientX-t.clientX,i=e.clientY-t.clientY;return Math.sqrt(n*n+i*i)},o._getButton=function(t){var e={1:Ot,2:hn,4:vn},n=this._isTouchEvent(t)?Ot:e[t.buttons];return n||null},o._isTouchEvent=function(t){return t.type&&t.type.indexOf("touch")>-1},o._isValidButton=function(t,e){return e.indexOf(t)>-1},o._isValidEvent=function(t,e,n){return(!e||Ls(t,e))&&(!n||this._isValidButton(this._getButton(t),n))},o._preventMouseButton=function(t,e){e===hn?Q.addEventListener("contextmenu",this._stopContextMenu):e===vn&&t.preventDefault()},r}(),Vs=function(r){Ve(o,r);function o(){var e=r!==null&&r.apply(this,arguments)||this;return e.start=["mousedown"],e.move=["mousemove"],e.end=["mouseup"],e}var t=o.prototype;return t.onEventStart=function(e,n,i){var a=this._getButton(e);return this._isValidEvent(e,n,i)?(this._preventMouseButton(e,a),this.extendEvent(e)):null},t.onEventMove=function(e,n,i){return this._isValidEvent(e,n,i)?this.extendEvent(e):null},t.onEventEnd=function(){},t.onRelease=function(){this.prevEvent=null},t.getTouches=function(e,n){return n&&this._isValidButton(Ri[e.which],n)&&this.end.indexOf(e.type)===-1?1:0},t._getScale=function(){return 1},t._getCenter=function(e){return{x:e.clientX,y:e.clientY}},t._getMovement=function(e){var n=this.prevEvent.srcEvent;return{x:e.clientX-n.clientX,y:e.clientY-n.clientY}},o}(Vt),js=function(r){Ve(o,r);function o(){var e=r!==null&&r.apply(this,arguments)||this;return e.start=["touchstart"],e.move=["touchmove"],e.end=["touchend","touchcancel"],e}var t=o.prototype;return t.onEventStart=function(e,n){return this._baseTouches=e.touches,this._isValidEvent(e,n)?this.extendEvent(e):null},t.onEventMove=function(e,n){return this._isValidEvent(e,n)?this.extendEvent(e):null},t.onEventEnd=function(e){this._baseTouches=e.touches},t.onRelease=function(){this.prevEvent=null,this._baseTouches=null},t.getTouches=function(e){return e.touches.length},t._getScale=function(e){return e.touches.length!==2||this._baseTouches.length<2?null:this._getDistance(e.touches[0],e.touches[1])/this._getDistance(this._baseTouches[0],this._baseTouches[1])},t._getCenter=function(e){return{x:e.touches[0].clientX,y:e.touches[0].clientY}},t._getMovement=function(e){var n=this.prevEvent.srcEvent;return e.touches[0].identifier!==n.touches[0].identifier?{x:0,y:0}:{x:e.touches[0].clientX-n.touches[0].clientX,y:e.touches[0].clientY-n.touches[0].clientY}},o}(Vt),Fs=function(r){Ve(o,r);function o(){var e=r!==null&&r.apply(this,arguments)||this;return e.start=mt?["pointerdown"]:["MSPointerDown"],e.move=mt?["pointermove"]:["MSPointerMove"],e.end=mt?["pointerup","pointercancel"]:["MSPointerUp","MSPointerCancel"],e._firstInputs=[],e._recentInputs=[],e}var t=o.prototype;return t.onEventStart=function(e,n,i){var a=this._getButton(e);return this._isValidEvent(e,n,i)?(this._preventMouseButton(e,a),this._updatePointerEvent(e),this.extendEvent(e)):null},t.onEventMove=function(e,n,i){return this._isValidEvent(e,n,i)?(this._updatePointerEvent(e),this.extendEvent(e)):null},t.onEventEnd=function(e){this._removePointerEvent(e)},t.onRelease=function(){this.prevEvent=null,this._firstInputs=[],this._recentInputs=[]},t.getTouches=function(){return this._recentInputs.length},t._getScale=function(){return this._recentInputs.length!==2?null:this._getDistance(this._recentInputs[0],this._recentInputs[1])/this._getDistance(this._firstInputs[0],this._firstInputs[1])},t._getCenter=function(e){return{x:e.clientX,y:e.clientY}},t._getMovement=function(e){var n=this.prevEvent.srcEvent;return e.pointerId!==n.pointerId?{x:0,y:0}:{x:e.clientX-n.clientX,y:e.clientY-n.clientY}},t._updatePointerEvent=function(e){var n=this,i=!1;this._recentInputs.forEach(function(a,s){a.pointerId===e.pointerId&&(i=!0,n._recentInputs[s]=e)}),i||(this._firstInputs.push(e),this._recentInputs.push(e))},t._removePointerEvent=function(e){this._firstInputs=this._firstInputs.filter(function(n){return n.pointerId!==e.pointerId}),this._recentInputs=this._recentInputs.filter(function(n){return n.pointerId!==e.pointerId})},o}(Vt),$s=function(r){Ve(o,r);function o(){var e=r!==null&&r.apply(this,arguments)||this;return e.start=["mousedown","touchstart"],e.move=["mousemove","touchmove"],e.end=["mouseup","touchend","touchcancel"],e}var t=o.prototype;return t.onEventStart=function(e,n,i){var a=this._getButton(e);return this._isTouchEvent(e)&&(this._baseTouches=e.touches),this._isValidEvent(e,n,i)?(this._preventMouseButton(e,a),this.extendEvent(e)):null},t.onEventMove=function(e,n,i){return this._isValidEvent(e,n,i)?this.extendEvent(e):null},t.onEventEnd=function(e){this._isTouchEvent(e)&&(this._baseTouches=e.touches)},t.onRelease=function(){this.prevEvent=null,this._baseTouches=null},t.getTouches=function(e,n){return this._isTouchEvent(e)?e.touches.length:this._isValidButton(Ri[e.which],n)&&this.end.indexOf(e.type)===-1?1:0},t._getScale=function(e){return this._isTouchEvent(e)?e.touches.length!==2||this._baseTouches.length<2?1:this._getDistance(e.touches[0],e.touches[1])/this._getDistance(this._baseTouches[0],this._baseTouches[1]):this.prevEvent.scale},t._getCenter=function(e){return this._isTouchEvent(e)?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}},t._getMovement=function(e){var n=this,i=this.prevEvent.srcEvent,a=[e,i].map(function(u){return n._isTouchEvent(u)?{id:u.touches[0].identifier,x:u.touches[0].clientX,y:u.touches[0].clientY}:{id:null,x:u.clientX,y:u.clientY}}),s=a[0],c=a[1];return s.id===c.id?{x:s.x-c.x,y:s.y-c.y}:{x:0,y:0}},o}(Vt),Bi=function(r,o){return o.reduce(function(t,e,n){return r[n]&&(t[r[n]]=e),t},{})},Hs=function(r){r===void 0&&(r=[]);var o=!1,t=!1,e=!1;return r.forEach(function(n){switch(n){case"mouse":t=!0;break;case"touch":o=Ms;break;case"pointer":e=Bs}}),e?new Fs:o&&t?new $s:o?new js:t?new Vs:null};function Br(r){return r.indexOf("touch")>-1?{passive:!1}:!1}var Ws=function(){function r(t){var e=t.options,n=t.interruptManager,i=t.eventManager,a=t.axisManager,s=t.animationManager;this._isOutside=!1,this._moveDistance=null,this._isStopped=!1,this.options=e,this._interruptManager=n,this._eventManager=i,this._axisManager=a,this._animationManager=s}var o=r.prototype;return o.get=function(t){return this._axisManager.get(t.axes)},o.hold=function(t,e){if(!(this._interruptManager.isInterrupted()||!t.axes.length)){var n={input:t,event:e};this._isStopped=!1,this._interruptManager.setInterrupt(!0),this._animationManager.stopAnimation(n),++this._eventManager.holdingCount,this._moveDistance||this._eventManager.hold(this._axisManager.get(),n),this._isOutside=this._axisManager.isOutside(t.axes),this._moveDistance=this._axisManager.get(t.axes)}},o.change=function(t,e,n,i){if(!(this._isStopped||!this._interruptManager.isInterrupting()||this._axisManager.every(n,function(v){return v===0}))){var a=e.srcEvent?e.srcEvent:e;if(!a.__childrenAxesAlreadyChanged){var s=this._moveDistance||this._axisManager.get(t.axes),c;c=se(s,function(v,d){return v+(n[d]||0)}),this._moveDistance&&(this._moveDistance=this._axisManager.map(c,function(v,d){var p=d.circular,g=d.range;return p&&(p[0]||p[1])?it(v,g,p):v})),this._isOutside&&this._axisManager.every(s,function(v,d){return!zi(v,d.range)})&&(this._isOutside=!1),s=this._atOutside(s),c=this._atOutside(c),(!this.options.nested||!this._isEndofAxis(n,s,c))&&(a.__childrenAxesAlreadyChanged=!0);var u={input:t,event:e};if(i){var f=this._animationManager.getDuration(c,s);this._animationManager.animateTo(c,f,u)}else{var h=!this._eventManager.triggerChange(c,s,u,!0);h&&(this._isStopped=!0,this._moveDistance=null,this._animationManager.finish(!1))}}}},o.release=function(t,e,n,i){if(!(this._isStopped||!this._interruptManager.isInterrupting()||!this._moveDistance)){var a=e.srcEvent?e.srcEvent:e;a.__childrenAxesAlreadyReleased&&(n=n.map(function(){return 0}));var s=this._axisManager.get(t.axes),c=this._axisManager.get(),u=this._animationManager.getDisplacement(n),f=Bi(t.axes,u),h=this._axisManager.get(this._axisManager.map(f,function(_,y,b){return y.circular&&(y.circular[0]||y.circular[1])?s[b]+_:Mi(s[b]+_,y.range,y.circular,y.bounce)}));a.__childrenAxesAlreadyReleased=!0;var v=this._animationManager.getDuration(h,s,i);v===0&&(h=Z({},c));var d={depaPos:c,destPos:h,duration:v,delta:this._axisManager.getDelta(c,h),inputEvent:e,input:t,isTrusted:!0};--this._eventManager.holdingCount,this._eventManager.triggerRelease(d),this._eventManager.holdingCount===0&&(this._moveDistance=null);var p=this._animationManager.getUserControl(d),g=Ue(p.destPos,c),m={input:t,event:e};g||p.duration===0?(g||this._eventManager.triggerChange(p.destPos,c,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)}},o._atOutside=function(t){var e=this;return this._isOutside?this._axisManager.map(t,function(n,i){var a=i.range[0]-i.bounce[0],s=i.range[1]+i.bounce[1];return n>s?s:n<a?a:n}):this._axisManager.map(t,function(n,i){var a=i.range[0],s=i.range[1],c=i.bounce,u=i.circular;return u[0]&&n<a||u[1]&&n>s?n:n<a?a-e._animationManager.interpolate(a-n,c[0]):n>s?s+e._animationManager.interpolate(n-s,c[1]):n})},o._isEndofAxis=function(t,e,n){return this._axisManager.every(e,function(i,a,s){return t[s]===0||e[s]===n[s]&&Ns(i,a.range,a.bounce,a.circular)})},r}(),Kt=function(r,o,t){return Math.max(Math.min(r,t),o)},Gs=function(){function r(t){var e=t.options,n=t.interruptManager,i=t.eventManager,a=t.axisManager;this._options=e,this.interruptManager=n,this.eventManager=i,this.axisManager=a,this.animationEnd=this.animationEnd.bind(this)}var o=r.prototype;return o.getDuration=function(t,e,n){var i=this,a;if(typeof n<"u")a=n;else{var s=se(e,function(c,u){return As(Math.abs(c-t[u]),i._options.deceleration)});a=Object.keys(s).reduce(function(c,u){return Math.max(c,s[u])},-1/0)}return Kt(a,this._options.minimumDuration,this._options.maximumDuration)},o.getDisplacement=function(t){var e=Math.pow(t.reduce(function(i,a){return i+a*a},0),1/t.length),n=Math.abs(e/-this._options.deceleration);return t.map(function(i){return i/2*n})},o.stopAnimation=function(t){if(this._animateParam){var e=this.axisManager.get(),n=this.axisManager.map(e,function(i,a){return it(i,a.range,a.circular)});Mn(n,function(i,a){return e[a]===i})||this.eventManager.triggerChange(n,e,t,!!t),this._animateParam=null,this._raf&&Ps(this._raf),this._raf=null,this.eventManager.triggerAnimationEnd(!!t?.event)}},o.getEventInfo=function(){return this._animateParam&&this._animateParam.input&&this._animateParam.inputEvent?{input:this._animateParam.input,event:this._animateParam.inputEvent}:null},o.restore=function(t){var e=this.axisManager.get(),n=this.axisManager.map(e,function(i,a){return Math.min(a.range[1],Math.max(a.range[0],i))});this.stopAnimation(),this.animateTo(n,this.getDuration(e,n),t)},o.animationEnd=function(){var t=this.getEventInfo();this._animateParam=null;var e=this.axisManager.filter(this.axisManager.get(),function(n,i){return zr(n,i.range,i.circular)});Object.keys(e).length>0&&this.setTo(this.axisManager.map(e,function(n,i){return it(n,i.range,i.circular)})),this.interruptManager.setInterrupt(!1),this.eventManager.triggerAnimationEnd(!!t),this.axisManager.isOutside()?this.restore(t):this.finish(!!t)},o.finish=function(t){this._animateParam=null,this.interruptManager.setInterrupt(!1),this.eventManager.triggerFinish(t)},o.getUserControl=function(t){var e=t.setTo();return e.destPos=this.axisManager.get(e.destPos),e.duration=Kt(e.duration,this._options.minimumDuration,this._options.maximumDuration),e},o.animateTo=function(t,e,n){var i=this;this.stopAnimation();var a=this._createAnimationParam(t,e,n),s=Z({},a.depaPos),c=this.eventManager.triggerAnimationStart(a),u=this.getUserControl(a);if(!c&&this.axisManager.every(u.destPos,function(h,v){return zr(h,v.range,v.circular)})&&console.warn("You can't stop the 'animation' event when 'circular' is true."),c&&!Ue(u.destPos,s)){var f=n?.event||null;this._animateLoop({depaPos:s,destPos:u.destPos,duration:u.duration,delta:this.axisManager.getDelta(s,u.destPos),isTrusted:!!f,inputEvent:f,input:n?.input||null},function(){return i.animationEnd()})}},o.setTo=function(t,e){e===void 0&&(e=0);var n=Object.keys(t),i=this.axisManager.get(n);if(Ue(t,i))return this;this.interruptManager.setInterrupt(!0);var a=Ai(t,function(s,c){return i[c]!==s});return Object.keys(a).length?(a=this.axisManager.map(a,function(s,c){var u=c.range,f=c.circular;return f&&(f[0]||f[1])?s:Mi(s,u,f)}),Ue(a,i)?this:(e>0?this.animateTo(a,e):(this.stopAnimation(),this.eventManager.triggerChange(a),this.finish(!1)),this)):this},o.setBy=function(t,e){return e===void 0&&(e=0),this.setTo(se(this.axisManager.get(Object.keys(t)),function(n,i){return n+t[i]}),e)},o.setOptions=function(t){this._options=Z(Z({},this._options),t)},o._createAnimationParam=function(t,e,n){var i=this.axisManager.get(),a=t,s=n?.event||null;return{depaPos:i,destPos:a,duration:Kt(e,this._options.minimumDuration,this._options.maximumDuration),delta:this.axisManager.getDelta(i,a),inputEvent:s,input:n?.input||null,isTrusted:!!s,done:this.animationEnd}},o._animateLoop=function(t,e){var n=this;if(t.duration){this._animateParam=Z(Z({},t),{startTime:new Date().getTime()});var i=se(t.destPos,function(c){return c}),a=this._initState(this._animateParam),s=function(){n._raf=null;var c=n._animateParam,u=n._getNextState(a),f=!n.eventManager.triggerChange(u.pos,a.pos);if(a=u,u.finished){c.destPos=n._getFinalPos(c.destPos,i),Ue(c.destPos,n.axisManager.get(Object.keys(c.destPos)))||n.eventManager.triggerChange(c.destPos,u.pos),e();return}else f?n.finish(!1):n._raf=Es(s)};s()}else this.eventManager.triggerChange(t.destPos),e()},o._getFinalPos=function(t,e){var n=this,i=1e-6,a=se(t,function(s,c){if(s>=e[c]-i&&s<=e[c]+i)return e[c];var u=n._getRoundUnit(s,c),f=Di(s,u);return f});return a},o._getRoundUnit=function(t,e){var n=this._options.round,i=null;if(!n){var a=this.axisManager.getAxisOptions(e);i=xs(Math.max(gt(a.range[0]),gt(a.range[1]),gt(t)))}return i||n},r}(),Us=function(r){Ve(o,r);function o(){var e=r!==null&&r.apply(this,arguments)||this;return e._useDuration=!0,e}var t=o.prototype;return t.interpolate=function(e,n){var i=this._easing(1e-5)/1e-5;return this._easing(e/(n*i))*n},t.updateAnimation=function(e){var n,i=this._animateParam;if(i){var a=new Date().getTime()-i.startTime,s=e?.destPos||i.destPos,c=(n=e?.duration)!==null&&n!==void 0?n:i.duration;if(e?.restart||c<=a){this.setTo(s,c-a);return}if(e?.destPos){var u=this.axisManager.get();this._initialEasingPer=this._prevEasingPer,i.delta=this.axisManager.getDelta(u,s),i.destPos=s}if(e?.duration){var f=(a+this._durationOffset)/i.duration;this._durationOffset=f*c-a,i.duration=c}}},t._initState=function(e){return this._initialEasingPer=0,this._prevEasingPer=0,this._durationOffset=0,{pos:e.depaPos,easingPer:0,finished:!1}},t._getNextState=function(e){var n=this,i=this._animateParam,a=e.pos,s=i.destPos,c=se(a,function(d,p){return d<=s[p]?1:-1}),u=new Date().getTime()-i.startTime,f=(u+this._durationOffset)/i.duration,h=this._easing(f),v=this.axisManager.map(a,function(d,p,g){var m=f>=1?s[g]:d+i.delta[g]*(h-n._prevEasingPer)/(1-n._initialEasingPer),_=it(m,p.range,p.circular);if(m!==_){var y=c[g]*(p.range[1]-p.range[0]);s[g]-=y,a[g]-=y}return _});return this._prevEasingPer=h,{pos:v,easingPer:h,finished:h>=1}},t._easing=function(e){return e>1?1:this._options.easing(e)},o}(Gs),Ys=function(r){Ve(o,r);function o(e,n,i){e===void 0&&(e={}),n===void 0&&(n={}),i===void 0&&(i={});var a=r.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},n),Object.keys(i).forEach(function(s){a.axis[s].startPos=i[s]}),a.interruptManager=new Is(a.options),a.axisManager=new Ds(a.axis),a.eventManager=new Rs(a),a.animationManager=new Us(a),a.inputObserver=new Ws(a),a.eventManager.setAnimationManager(a.animationManager),a.eventManager.triggerChange(a.axisManager.get()),a}var t=o.prototype;return Object.defineProperty(t,"holding",{get:function(){return this.eventManager.holdingCount>0},enumerable:!1,configurable:!0}),t.connect=function(e,n){var i;return typeof e=="string"?i=e.split(" "):i=e.concat(),~this._inputs.indexOf(n)&&this.disconnect(n),n.mapAxes(i),n.connect(this.inputObserver),this._inputs.push(n),this},t.disconnect=function(e){if(e){var n=this._inputs.indexOf(e);n>=0&&(this._inputs[n].disconnect(),this._inputs.splice(n,1))}else this._inputs.forEach(function(i){return i.disconnect()}),this._inputs=[];return this},t.get=function(e){return this.axisManager.get(e)},t.setTo=function(e,n){return n===void 0&&(n=0),this.animationManager.setTo(e,n),this},t.setBy=function(e,n){return n===void 0&&(n=0),this.animationManager.setBy(e,n),this},t.setOptions=function(e){return this.options=Z(Z({},this.options),e),this.animationManager.setOptions(e),this},t.setAxis=function(e){return this.axisManager.setAxis(e),this},t.stopAnimation=function(){return this.animationManager.stopAnimation(),this.animationManager.finish(!1),this},t.updateAnimation=function(e){return this.animationManager.updateAnimation(e),this},t.isBounceArea=function(e){return this.axisManager.isOutside(e)},t.destroy=function(){this.disconnect(),this.eventManager.destroy()},o.VERSION="3.9.0",o.TRANSFORM=ys,o.DIRECTION_NONE=st,o.DIRECTION_LEFT=ls,o.DIRECTION_RIGHT=cs,o.DIRECTION_UP=us,o.DIRECTION_DOWN=fs,o.DIRECTION_HORIZONTAL=ze,o.DIRECTION_VERTICAL=Be,o.DIRECTION_ALL=Lt,dn([ss],o.prototype,"holding",null),o=dn([rs],o),o}(Se),Xs=function(r,o){if(o<0||o>90)return st;var t=Math.abs(r);return t>o&&t<180-o?Be:ze},Ks=function(){function r(t,e){var n=this;this.axes=[],this.element=null,this._enabled=!1,this._activeEvent=null,this._atRightEdge=!1,this._rightEdgeTimer=0,this._dragged=!1,this._isOverThreshold=!1,this._preventClickWhenDragged=function(i){n._dragged&&(i.preventDefault(),i.stopPropagation()),n._dragged=!1},this._voidFunction=function(){},this.element=Ni(t),this.options=Z({inputType:["touch","mouse","pointer"],inputKey:[Ii],inputButton:[Ot],scale:[1,1],thresholdAngle:45,threshold:0,preventClickOnDrag:!1,preventDefaultOnDrag:!1,iOSEdgeSwipeThreshold:_s,releaseOnScroll:!1,touchAction:null},e),this._onPanstart=this._onPanstart.bind(this),this._onPanmove=this._onPanmove.bind(this),this._onPanend=this._onPanend.bind(this)}var o=r.prototype;return o.mapAxes=function(t){this._direction=Ss(!!t[0],!!t[1]),this.axes=t},o.connect=function(t){return this._activeEvent&&(this._detachElementEvent(),this._detachWindowEvent(this._activeEvent)),this._attachElementEvent(t),this._originalCssProps=Cs(this.element,this.options,this._direction),this},o.disconnect=function(){return this._detachElementEvent(),this._detachWindowEvent(this._activeEvent),Ts(this._originalCssProps)||ks(this.element,this._originalCssProps),this._direction=st,this},o.destroy=function(){this.disconnect(),this.element=null},o.enable=function(){return this._enabled=!0,this},o.disable=function(){return this._enabled=!1,this},o.isEnabled=function(){return this._enabled},o.release=function(){var t=this._activeEvent,e=t.prevEvent;return t.onRelease(),this._observer.release(this,e,[0,0]),this._detachWindowEvent(t),this},o._onPanstart=function(t){var e=this.options,n=e.inputKey,i=e.inputButton,a=e.preventDefaultOnDrag,s=this._activeEvent,c=s.onEventStart(t,n,i);if(!(!c||!this._enabled||s.getTouches(t,i)>1)&&c.srcEvent.cancelable!==!1){var u=this.options.iOSEdgeSwipeThreshold;this._dragged=!1,this._isOverThreshold=!1,this._observer.hold(this,c),this._atRightEdge=Ar&&c.center.x>window.innerWidth-u,this._attachWindowEvent(s),a&&c.srcEvent.type!=="touchstart"&&c.srcEvent.preventDefault(),s.prevEvent=c}},o._onPanmove=function(t){var e=this,n=this.options,i=n.iOSEdgeSwipeThreshold,a=n.preventClickOnDrag,s=n.releaseOnScroll,c=n.inputKey,u=n.inputButton,f=n.threshold,h=n.thresholdAngle,v=this._activeEvent,d=v.onEventMove(t,c,u),p=v.getTouches(t,u);if(p===0||s&&d&&!d.srcEvent.cancelable){this._onPanend(t);return}if(!(!d||!this._enabled||p>1)){var g=Xs(d.angle,h),m=dt(ze,this._direction,g),_=dt(Be,this._direction,g);if(v.prevEvent&&Ar){var y=d.center.x<0;if(y){this.release();return}else if(this._atRightEdge){clearTimeout(this._rightEdgeTimer);var b=d.deltaX<-i;b?this._atRightEdge=!1:this._rightEdgeTimer=window.setTimeout(function(){return e.release()},100)}}var E=this._getDistance([d.deltaX,d.deltaY],[m,_]),x=this._getOffset([d.offsetX,d.offsetY],[m,_]),C=x.some(function(I){return I!==0});C&&(d.srcEvent.cancelable!==!1&&d.srcEvent.preventDefault(),d.srcEvent.stopPropagation()),d.preventSystemEvent=C,C&&(this._isOverThreshold||E>=f)&&(this._dragged=a,this._isOverThreshold=!0,this._observer.change(this,d,Bi(this.axes,x))),v.prevEvent=d}},o._onPanend=function(t){var e=this.options.inputButton,n=this._activeEvent;if(n.onEventEnd(t),!(!this._enabled||n.getTouches(t,e)!==0)){this._detachWindowEvent(n),clearTimeout(this._rightEdgeTimer);var i=n.prevEvent,a=this._isOverThreshold?this._getOffset([Math.abs(i.velocityX)*(i.offsetX<0?-1:1),Math.abs(i.velocityY)*(i.offsetY<0?-1:1)],[dt(ze,this._direction),dt(Be,this._direction)]):[0,0];n.onRelease(),this._observer.release(this,i,a)}},o._attachWindowEvent=function(t){var e=this;t?.move.forEach(function(n){window.addEventListener(n,e._onPanmove,Br(n))}),t?.end.forEach(function(n){window.addEventListener(n,e._onPanend,Br(n))})},o._detachWindowEvent=function(t){var e=this;t?.move.forEach(function(n){window.removeEventListener(n,e._onPanmove)}),t?.end.forEach(function(n){window.removeEventListener(n,e._onPanend)})},o._getOffset=function(t,e){var n=this.options.scale;return[e[0]?t[0]*n[0]:0,e[1]?t[1]*n[1]:0]},o._getDistance=function(t,e){return Math.sqrt(Number(e[0])*Math.pow(t[0],2)+Number(e[1])*Math.pow(t[1],2))},o._attachElementEvent=function(t){var e=this,n=Hs(this.options.inputType),i=this.element;if(n){if(!i)throw new Error("Element to connect input does not exist.");this._observer=t,this._enabled=!0,this._activeEvent=n,i.addEventListener("click",this._preventClickWhenDragged,!0),n.start.forEach(function(a){i.addEventListener(a,e._onPanstart)}),n.move.forEach(function(a){i.addEventListener(a,e._voidFunction)})}},o._detachElementEvent=function(){var t=this,e=this._activeEvent,n=this.element;n&&(n.removeEventListener("click",this._preventClickWhenDragged,!0),e?.start.forEach(function(i){n.removeEventListener(i,t._onPanstart)}),e?.move.forEach(function(i){n.removeEventListener(i,t._voidFunction)})),this._enabled=!1,this._observer=null},r}();const Zs=Ys;var gn=function(r,o){return gn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},gn(r,o)};function je(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");gn(r,o);function t(){this.constructor=r}r.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}var Le=function(){return Le=Object.assign||function(o){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(o[i]=t[i])}return o},Le.apply(this,arguments)};function Js(){for(var r=0,o=0,t=arguments.length;o<t;o++)r+=arguments[o].length;for(var e=Array(r),n=0,o=0;o<t;o++)for(var i=arguments[o],a=0,s=i.length;a<s;a++,n++)e[n]=i[a];return e}var zn=typeof window<"u",Qs=zn?window.navigator.userAgent:"",qs=zn?"getComputedStyle"in window:!1,el=/MSIE|Trident|Windows Phone|Edge/.test(Qs),tl=zn?"addEventListener"in document:!1,mn="width",Je="height";function _t(r,o){return r.getAttribute(o)||""}function wt(r){return[].slice.call(r)}function nl(r,o){return o===void 0&&(o="data-"),!!r.getAttribute(o+"width")}function Li(r,o){return o===void 0&&(o="data-"),"loading"in r&&r.getAttribute("loading")==="lazy"||!!r.getAttribute(o+"lazy")}function rl(r,o){return o===void 0&&(o="data-"),!!r.getAttribute(o+"skip")}function Vi(r,o,t){tl?r.addEventListener(o,t,!1):r.attachEvent?r.attachEvent("on"+o,t):r["on"+o]=t}function ji(r,o,t){r.removeEventListener?r.removeEventListener(o,t,!1):r.detachEvent?r.detachEvent("on"+o,t):r["on"+o]=null}function il(r){return Fi(r,"Width")}function ol(r){return Fi(r,"Height")}function al(r){return(qs?window.getComputedStyle(r):r.currentStyle)||{}}function Fi(r,o){var t=r["client"+o]||r["offset"+o];return parseFloat(t||al(r)[o.toLowerCase()])||0}function sl(r,o,t){var e=wt(r.querySelectorAll(Js(["["+t+"skip] ["+t+"width]"],o.map(function(n){return["["+t+"skip] "+n,n+"["+t+"skip]","["+t+"width] "+n].join(", ")})).join(", ")));return wt(r.querySelectorAll("["+t+"width], "+o.join(", "))).filter(function(n){return e.indexOf(n)===-1})}var Ae=[];function $i(r,o){!Ae.length&&Vi(window,"resize",Wi),r.__PREFIX__=o,Ae.push(r),Hi(r)}function ll(r,o){var t=Ae.indexOf(r);if(!(t<0)){var e=_t(r,o+"fixed");delete r.__PREFIX__,r.style[e===Je?mn:Je]="",Ae.splice(t,1),!Ae.length&&ji(window,"resize",Wi)}}function Hi(r,o){o===void 0&&(o="data-");var t=r.__PREFIX__||o,e=parseInt(_t(r,""+t+mn),10)||0,n=parseInt(_t(r,""+t+Je),10)||0,i=_t(r,t+"fixed");if(i===Je){var a=ol(r)||n;r.style[mn]=e/n*a+"px"}else{var a=il(r)||e;r.style[Je]=n/e*a+"px"}}function Wi(){Ae.forEach(function(r){Hi(r)})}var Bn=function(r){je(o,r);function o(e,n){n===void 0&&(n={});var i=r.call(this)||this;i.isReady=!1,i.isPreReady=!1,i.hasDataSize=!1,i.hasLoading=!1,i.isSkip=!1,i.onCheck=function(s){if(i.clear(),s&&s.type==="error"&&i.onError(i.element),!(i.hasLoading&&i.checkElement())){var c=!i.hasDataSize&&!i.hasLoading;i.onReady(c)}},i.options=Le({prefix:"data-"},n),i.element=e;var a=i.options.prefix;return i.hasDataSize=nl(e,a),i.isSkip=rl(e,a),i.hasLoading=Li(e,a),i}var t=o.prototype;return t.check=function(){return this.isSkip||!this.checkElement()?(this.onAlreadyReady(!0),!1):(this.hasDataSize&&$i(this.element,this.options.prefix),(this.hasDataSize||this.hasLoading)&&this.onAlreadyPreReady(),!0)},t.addEvents=function(){var e=this,n=this.element;this.constructor.EVENTS.forEach(function(i){Vi(n,i,e.onCheck)})},t.clear=function(){var e=this,n=this.element;this.constructor.EVENTS.forEach(function(i){ji(n,i,e.onCheck)}),this.removeAutoSizer()},t.destroy=function(){this.clear(),this.off()},t.removeAutoSizer=function(){if(this.hasDataSize){var e=this.options.prefix;ll(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 n=this;setTimeout(function(){n.onError(e)})},t.onAlreadyPreReady=function(){var e=this;setTimeout(function(){e.onPreReady()})},t.onAlreadyReady=function(e){var n=this;setTimeout(function(){n.onReady(e)})},o.EVENTS=[],o}(Se),cl=function(r){je(o,r);function o(){return r!==null&&r.apply(this,arguments)||this}var t=o.prototype;return t.setHasLoading=function(e){this.hasLoading=e},t.check=function(){return this.isSkip?(this.onAlreadyReady(!0),!1):(this.hasDataSize?($i(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(){r.prototype.onAlreadyPreReady.call(this),this.trigger("reqeustReadyChildren")},o.EVENTS=[],o}(Bn),ul=function(r){je(o,r);function o(e){e===void 0&&(e={});var n=r.call(this)||this;return n.readyCount=0,n.preReadyCount=0,n.totalCount=0,n.totalErrorCount=0,n.isPreReadyOver=!0,n.elementInfos=[],n.options=Le({loaders:{},prefix:"data-"},e),n}var t=o.prototype;return t.check=function(e){var n=this,i=this.options.prefix;this.clear(),this.elementInfos=wt(e).map(function(s,c){var u=n.getLoader(s,{prefix:i});return u.check(),u.on("error",function(f){n.onError(c,f.target)}).on("preReady",function(f){var h=n.elementInfos[c];h.hasLoading=f.hasLoading,h.isSkip=f.isSkip;var v=n.checkPreReady(c);n.onPreReadyElement(c),v&&n.onPreReady()}).on("ready",function(f){var h=f.withPreReady,v=f.hasLoading,d=f.isSkip,p=n.elementInfos[c];p.hasLoading=v,p.isSkip=d;var g=h&&n.checkPreReady(c),m=n.checkReady(c);h&&n.onPreReadyElement(c),n.onReadyElement(c),g&&n.onPreReady(),m&&n.onReady()}),{loader:u,element:s,hasLoading:!1,hasError:!1,isPreReady:!1,isReady:!1,isSkip:!1}});var a=this.elementInfos.length;return this.totalCount=a,a||setTimeout(function(){n.onPreReady(),n.onReady()}),this},t.getTotalCount=function(){return this.totalCount},t.isPreReady=function(){return this.elementInfos.every(function(e){return e.isPreReady})},t.isReady=function(){return this.elementInfos.every(function(e){return e.isReady})},t.hasError=function(){return this.totalErrorCount>0},t.clear=function(){this.isPreReadyOver=!1,this.totalCount=0,this.preReadyCount=0,this.readyCount=0,this.totalErrorCount=0,this.elementInfos.forEach(function(e){e.loader&&e.loader.destroy()}),this.elementInfos=[]},t.destroy=function(){this.clear(),this.off()},t.getLoader=function(e,n){var i=this,a=e.tagName.toLowerCase(),s=this.options.loaders,c=n.prefix,u=Object.keys(s);if(s[a])return new s[a](e,n);var f=new cl(e,n),h=wt(e.querySelectorAll(u.join(", ")));f.setHasLoading(h.some(function(p){return Li(p,c)}));var v=!1,d=this.clone().on("error",function(p){f.onError(p.target)}).on("ready",function(){f.onReady(v)});return f.on("requestChildren",function(){var p=sl(e,u,i.options.prefix);d.check(p).on("preReady",function(g){v=g.isReady,v||f.onPreReady()})}).on("reqeustReadyChildren",function(){d.check(h)}).on("requestDestroy",function(){d.destroy()}),f},t.clone=function(){return new o(Le({},this.options))},t.checkPreReady=function(e){return this.elementInfos[e].isPreReady=!0,++this.preReadyCount,!(this.preReadyCount<this.totalCount)},t.checkReady=function(e){return this.elementInfos[e].isReady=!0,++this.readyCount,!(this.readyCount<this.totalCount)},t.onError=function(e,n){var i=this.elementInfos[e];i.hasError=!0,this.trigger(new V("error",{element:i.element,index:e,target:n,errorCount:this.getErrorCount(),totalErrorCount:++this.totalErrorCount}))},t.onPreReadyElement=function(e){var n=this.elementInfos[e];this.trigger(new V("preReadyElement",{element:n.element,index:e,preReadyCount:this.preReadyCount,readyCount:this.readyCount,totalCount:this.totalCount,isPreReady:this.isPreReady(),isReady:this.isReady(),hasLoading:n.hasLoading,isSkip:n.isSkip}))},t.onPreReady=function(){this.isPreReadyOver=!0,this.trigger(new V("preReady",{readyCount:this.readyCount,totalCount:this.totalCount,isReady:this.isReady(),hasLoading:this.hasLoading()}))},t.onReadyElement=function(e){var n=this.elementInfos[e];this.trigger(new V("readyElement",{index:e,element:n.element,hasError:n.hasError,errorCount:this.getErrorCount(),totalErrorCount:this.totalErrorCount,preReadyCount:this.preReadyCount,readyCount:this.readyCount,totalCount:this.totalCount,isPreReady:this.isPreReady(),isReady:this.isReady(),hasLoading:n.hasLoading,isPreReadyOver:this.isPreReadyOver,isSkip:n.isSkip}))},t.onReady=function(){this.trigger(new 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})},o}(Se),fl=function(r){je(o,r);function o(){return r!==null&&r.apply(this,arguments)||this}var t=o.prototype;return t.checkElement=function(){var e=this.element,n=e.getAttribute("src");if(e.complete){if(n)return e.naturalWidth||this.onAlreadyError(e),!1;this.onAlreadyPreReady()}return this.addEvents(),el&&e.setAttribute("src",n),!0},o.EVENTS=["load","error"],o}(Bn),dl=function(r){je(o,r);function o(){return r!==null&&r.apply(this,arguments)||this}var t=o.prototype;return t.checkElement=function(){var e=this.element;return e.readyState>=1?!1:e.error?(this.onAlreadyError(e),!1):(this.addEvents(),!0)},o.EVENTS=["loadedmetadata","error"],o}(Bn),hl=function(r){je(o,r);function o(t){return t===void 0&&(t={}),r.call(this,Le({loaders:{img:fl,video:dl}},t))||this}return o}(ul);const vl=hl;/*! *****************************************************************************
|
|
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 _n=function(r,o){return _n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},_n(r,o)};function te(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");_n(r,o);function t(){this.constructor=r}r.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}var ne=function(){return ne=Object.assign||function(o){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(o[i]=t[i])}return o},ne.apply(this,arguments)};function De(r,o,t,e){function n(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(f){try{u(e.next(f))}catch(h){a(h)}}function c(f){try{u(e.throw(f))}catch(h){a(h)}}function u(f){f.done?i(f.value):n(f.value).then(s,c)}u((e=e.apply(r,o||[])).next())})}function Me(r,o){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(f){return c([u,f])}}function c(u){if(e)throw new TypeError("Generator is already executing.");for(;t;)try{if(e=1,n&&(i=u[0]&2?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){t.label=u[1];break}if(u[0]===6&&t.label<i[1]){t.label=i[1],i=u;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(u);break}i[2]&&t.ops.pop(),t.trys.pop();continue}u=o.call(r,t)}catch(f){u=[6,f],n=0}finally{e=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function jt(r){var o=typeof Symbol=="function"&&Symbol.iterator,t=o&&r[o],e=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ln(r,o){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var e=t.call(r),n,i=[],a;try{for(;(o===void 0||o-- >0)&&!(n=e.next()).done;)i.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(t=e.return)&&t.call(e)}finally{if(a)throw a.error}}return i}function J(){for(var r=[],o=0;o<arguments.length;o++)r=r.concat(Ln(arguments[o]));return r}var W={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(r,o){return r+"("+typeof r+") is not a "+o.map(function(t){return'"'+t+'"'}).join(" or ")+"."},ELEMENT_NOT_FOUND:function(r){return'Element with selector "'+r+'" not found.'},VAL_MUST_NOT_NULL:function(r,o){return o+" should be provided. Given: "+r},NOT_ATTACHED_TO_FLICKING:'This module is not attached to the Flicking instance. "init()" should be called first.',WRONG_OPTION:function(r,o){return'Option "'+r+'" is not in correct format, given: '+o},INDEX_OUT_OF_RANGE:function(r,o,t){return'Index "'+r+'" is out of range: should be between '+o+" and "+t+"."},POSITION_NOT_REACHABLE:function(r){return'Position "'+r+'" 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"},ue={PREV:"prev",CENTER:"center",NEXT:"next"},F={PREV:"PREV",NEXT:"NEXT",NONE:null},ke={SNAP:"snap",FREE_SCROLL:"freeScroll",STRICT:"strict"},pl={VERTICAL:"vertical",HIDDEN:"flicking-hidden",DEFAULT_VIRTUAL:"flicking-panel"},Gi={LINEAR:"linear",BOUND:"bound"},Ie={LTR:"ltr",RTL:"rtl"},gl=function(r,o){var t=null;if(we(r)){var e=o||document,n=e.querySelector(r);if(!n)throw new G(U.ELEMENT_NOT_FOUND(r),W.ELEMENT_NOT_FOUND);t=n}else r&&r.nodeType===Node.ELEMENT_NODE&&(t=r);if(!t)throw new G(U.WRONG_TYPE(r,["HTMLElement","string"]),W.WRONG_TYPE);return t},ml=function(r,o){if(r==null)throw new G(U.VAL_MUST_NOT_NULL(r,o),W.VAL_MUST_NOT_NULL)},_e=function(r,o,t){return Math.max(Math.min(r,t),o)},N=function(r){if(!r)throw new G(U.NOT_ATTACHED_TO_FLICKING,W.NOT_ATTACHED_TO_FLICKING);return r},Vn=function(r){return[].slice.call(r)},jn=function(r,o){var t;if(we(r))switch(r){case ue.PREV:t=0;break;case ue.CENTER:t=.5*o;break;case ue.NEXT:t=o;break;default:if(t=yn(r,o),t==null)throw new G(U.WRONG_OPTION("align",r),W.WRONG_OPTION)}else t=r;return t},_l=function(r,o){var t;if(Array.isArray(r))t=r.map(function(n){return yn(n,o)});else{var e=yn(r,o);t=[e,e]}return t.map(function(n){if(n==null)throw new G(U.WRONG_OPTION("bounce",r),W.WRONG_OPTION);return n})},yn=function(r,o){var t=Ui(r);return t==null?null:t.percentage*o+t.absolute},Ui=function(r){var o=/(?:(\+|\-)\s*)?(\d+(?:\.\d+)?(%|px)?)/g;if(typeof r=="number")return{percentage:0,absolute:r};for(var t={percentage:0,absolute:0},e=0,n=o.exec(r);n!=null;){var i=n[1],a=n[2],s=n[3],c=parseFloat(a);if(e<=0&&(i=i||"+"),!i)return null;var u=i==="+"?1:-1;s==="%"?t.percentage+=u*(c/100):t.absolute+=u*c,++e,n=o.exec(r)}return e===0?null:t},Tt=function(r){return typeof r=="object"?r.panel:r},Oe=function(r,o){return r===o?F.NONE:r<o?F.NEXT:F.PREV},Lr=function(r){Array.isArray(r)||(r=[r]);var o=[];return r.forEach(function(t){if(we(t)){var e=document.createElement("div");for(e.innerHTML=t,o.push.apply(o,J(Vn(e.children)));e.firstChild;)e.removeChild(e.firstChild)}else if(t&&t.nodeType===Node.ELEMENT_NODE)o.push(t);else throw new G(U.WRONG_TYPE(t,["HTMLElement","string"]),W.WRONG_TYPE)}),o},St=function(r,o){return r<0?_e(r+o,0,o):_e(r,0,o)},Ct=function(r,o){var t,e;try{for(var n=jt(r),i=n.next();!i.done;i=n.next()){var a=i.value;if(a===o)return!0}}catch(s){t={error:s}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return!1},we=function(r){return typeof r=="string"},Yi=function(r,o,t){var e=t-o;if(r<o){var n=(o-r)%e;r=t-n}else if(r>t){var n=(r-t)%e;r=o+n}return r},yl=function(r,o){var t,e;try{for(var n=jt(r),i=n.next();!i.done;i=n.next()){var a=i.value;if(o(a))return a}}catch(s){t={error:s}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return null},bl=function(r,o){for(var t=0;t<r.length;t++)if(o(r[t]))return t;return-1},kt=function(r,o,t){return(r-o)/(t-o)},Rt=function(r){return window.getComputedStyle(r)||r.currentStyle},Xi=function(r,o){var t=o.width,e=o.height;t!=null&&(we(t)?r.style.width=t:r.style.width=t+"px"),e!=null&&(we(e)?r.style.height=e:r.style.height=e+"px")},Zt=function(r,o,t){return r>=o&&r<=t},Ki=function(r,o){return r>=o?r%o:r<0?St((r+1)%o-1,o):r},ot=function(r){for(var o=new Array(r),t=0;t<r;t++)o[t]=t;return o},Qe=function(r){var o=r.el,t=r.horizontal,e=r.useFractionalSize,n=r.useOffset,i=r.style,a=0;if(e){var s=parseFloat(t?i.width:i.height)||0,c=i.boxSizing==="border-box",u=t?parseFloat(i.borderLeftWidth||"0")+parseFloat(i.borderRightWidth||"0"):parseFloat(i.borderTopWidth||"0")+parseFloat(i.borderBottomWidth||"0");if(c)a=n?s:s-u;else{var f=t?parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"):parseFloat(i.paddingTop||"0")+parseFloat(i.paddingBottom||"0");a=n?s+f+u:s+f}}else{var h=t?"Width":"Height";a=n?o["offset"+h]:o["client"+h]}return Math.max(a,0)},El=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},G=function(r){te(o,r);function o(t,e){var n=r.call(this,t)||this;return El(n,o.prototype),n.name="FlickingError",n.code=e,n}return o}(Error),Pl=function(){function r(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 o=r.prototype;return Object.defineProperty(o,"element",{get:function(){return this._el},enumerable:!1,configurable:!0}),Object.defineProperty(o,"width",{get:function(){return this._width-this._padding.left-this._padding.right},enumerable:!1,configurable:!0}),Object.defineProperty(o,"height",{get:function(){return this._height-this._padding.top-this._padding.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(o,"padding",{get:function(){return this._padding},enumerable:!1,configurable:!0}),o.setSize=function(t){var e=t.width,n=t.height,i=this._el,a=this._padding,s=this._isBorderBoxSizing;if(e!=null)if(we(e))i.style.width=e;else{var c=s?e+a.left+a.right:e;i.style.width=c+"px"}if(n!=null)if(we(n))i.style.height=n;else{var u=s?n+a.top+a.bottom:n;i.style.height=u+"px"}this.resize()},o.resize=function(){var t=this._el,e=Rt(t),n=this._flicking.useFractionalSize;this._width=Qe({el:t,horizontal:!0,useFractionalSize:n,useOffset:!1,style:e}),this._height=Qe({el:t,horizontal:!1,useFractionalSize:n,useOffset:!1,style:e}),this._padding={left:e.paddingLeft?parseFloat(e.paddingLeft):0,right:e.paddingRight?parseFloat(e.paddingRight):0,top:e.paddingTop?parseFloat(e.paddingTop):0,bottom:e.paddingBottom?parseFloat(e.paddingBottom):0},this._isBorderBoxSizing=e.boxSizing==="border-box"},r}(),xl=function(){function r(t){var e=this;this._onResize=function(){var n=e._flicking,i=n.resizeDebounce,a=n.maxResizeDebounce;i<=0?n.resize():(e._maxResizeDebounceTimer<=0&&a>0&&a>=i&&(e._maxResizeDebounceTimer=window.setTimeout(e._doScheduledResize,a)),e._resizeTimer>0&&(clearTimeout(e._resizeTimer),e._resizeTimer=0),e._resizeTimer=window.setTimeout(e._doScheduledResize,i))},this._doScheduledResize=function(){clearTimeout(e._resizeTimer),clearTimeout(e._maxResizeDebounceTimer),e._maxResizeDebounceTimer=-1,e._resizeTimer=-1,e._flicking.resize()},this._skipFirstResize=function(){var n=!0;return function(){if(n){n=!1;return}e._onResize()}}(),this._flicking=t,this._enabled=!1,this._resizeObserver=null,this._resizeTimer=-1,this._maxResizeDebounceTimer=-1}var o=r.prototype;return Object.defineProperty(o,"enabled",{get:function(){return this._enabled},enumerable:!1,configurable:!0}),o.enable=function(){var t=this._flicking,e=t.viewport;if(this._enabled&&this.disable(),t.useResizeObserver&&window.ResizeObserver){var n=e.width!==0||e.height!==0,i=n?new ResizeObserver(this._skipFirstResize):new ResizeObserver(this._onResize);i.observe(t.viewport.element),this._resizeObserver=i}else window.addEventListener("resize",this._onResize);return this._enabled=!0,this},o.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},r}(),Ol=function(){function r(t){this._element=t,this._rendered=!0}var o=r.prototype;return Object.defineProperty(o,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(o,"rendered",{get:function(){return this._rendered},enumerable:!1,configurable:!0}),o.show=function(t){var e=this.element,n=t.camera.element;e.parentElement!==n&&(n.appendChild(e),this._rendered=!0)},o.hide=function(t){var e=this.element,n=t.camera.element;e.parentElement===n&&(n.removeChild(e),this._rendered=!1)},r}(),Vr=function(){function r(t){this._flicking=t}var o=r.prototype;return Object.defineProperty(o,"element",{get:function(){return this._virtualElement.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(o,"rendered",{get:function(){return this._virtualElement.visible},enumerable:!1,configurable:!0}),Object.defineProperty(o,"_virtualElement",{get:function(){var t=this._flicking,e=this._panel.elementIndex,n=t.virtual.elements;return n[e]},enumerable:!1,configurable:!0}),o.init=function(t){this._panel=t},o.show=function(){},o.hide=function(){},r}(),wl=function(){function r(t,e){var n,i,a,s;this._flicking=t,this._renderPanel=(n=e?.renderPanel)!==null&&n!==void 0?n:function(){return""},this._initialPanelCount=(i=e?.initialPanelCount)!==null&&i!==void 0?i:-1,this._cache=(a=e?.cache)!==null&&a!==void 0?a:!1,this._panelClass=(s=e?.panelClass)!==null&&s!==void 0?s:pl.DEFAULT_VIRTUAL,this._elements=[]}var o=r.prototype;return Object.defineProperty(o,"elements",{get:function(){return this._elements},enumerable:!1,configurable:!0}),Object.defineProperty(o,"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(o,"initialPanelCount",{get:function(){return this._initialPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(o,"cache",{get:function(){return this._cache},set:function(t){this._cache=t},enumerable:!1,configurable:!0}),Object.defineProperty(o,"panelClass",{get:function(){return this._panelClass},set:function(t){this._panelClass=t},enumerable:!1,configurable:!0}),o.init=function(){var t=this._flicking;if(t.virtualEnabled){!t.externalRenderer&&!t.renderExternal&&this._initVirtualElements();var e=t.camera.children;this._elements=e.map(function(n){return{nativeElement:n,visible:!0}})}},o.show=function(t){var e=this._elements[t],n=e.nativeElement;e.visible=!0,n.style.display&&(n.style.display="")},o.hide=function(t){var e=this._elements[t],n=e.nativeElement;e.visible=!1,n.style.display="none"},o.append=function(t){t===void 0&&(t=1);var e=this._flicking;return this.insert(e.panels.length,t)},o.prepend=function(t){return t===void 0&&(t=1),this.insert(0,t)},o.insert=function(t,e){if(e===void 0&&(e=1),e<=0)return[];var n=this._flicking;return n.renderer.batchInsert({index:t,elements:ot(e),hasDOMInElements:!1})},o.remove=function(t,e){if(e<=0)return[];var n=this._flicking;return n.renderer.batchRemove({index:t,deleteCount:e,hasDOMInElements:!1})},o._initVirtualElements=function(){var t=this,e=this._flicking,n=e.camera.element,i=e.panelsPerView,a=document.createDocumentFragment(),s=ot(i+1).map(function(c){var u=document.createElement("div");return u.className=t._panelClass,u.dataset.elementIndex=c.toString(),u});s.forEach(function(c){a.appendChild(c)}),n.appendChild(a)},r}(),q={HOLD:"hold",CHANGE:"change",RELEASE:"release",ANIMATION_END:"animationEnd",FINISH:"finish"},K="flick",Y;(function(r){r[r.IDLE=0]="IDLE",r[r.HOLDING=1]="HOLDING",r[r.DRAGGING=2]="DRAGGING",r[r.ANIMATING=3]="ANIMATING",r[r.DISABLED=4]="DISABLED"})(Y||(Y={}));var lt=function(){function r(){this._delta=0,this._targetPanel=null}var o=r.prototype;return Object.defineProperty(o,"delta",{get:function(){return this._delta},enumerable:!1,configurable:!0}),Object.defineProperty(o,"targetPanel",{get:function(){return this._targetPanel},set:function(t){this._targetPanel=t},enumerable:!1,configurable:!0}),o.onEnter=function(t){this._delta=t._delta,this._targetPanel=t._targetPanel},o.onHold=function(t){},o.onChange=function(t){},o.onRelease=function(t){},o.onAnimationEnd=function(t){},o.onFinish=function(t){},o._moveToChangedPosition=function(t){var e=t.flicking,n=t.axesEvent,i=t.transitTo,a=n.delta[K];if(a){this._delta+=a;var s=e.camera,c=s.position,u=n.pos[K],f=e.circularEnabled?Yi(u,s.range.min,s.range.max):u;s.lookAt(f);var h=new V(B.MOVE,{isTrusted:n.isTrusted,holding:this.holding,direction:Oe(0,n.delta[K]),axesEvent:n});e.trigger(h),h.isCanceled()&&(s.lookAt(c),i(Y.DISABLED))}},r}(),jr=function(r){te(o,r);function o(){var e=r!==null&&r.apply(this,arguments)||this;return e.holding=!1,e.animating=!1,e}var t=o.prototype;return t.onEnter=function(){this._delta=0,this._targetPanel=null},t.onHold=function(e){var n=e.flicking,i=e.axesEvent,a=e.transitTo;if(n.renderer.panelCount<=0){a(Y.DISABLED);return}var s=new V(B.HOLD_START,{axesEvent:i});n.trigger(s),s.isCanceled()?a(Y.DISABLED):a(Y.HOLDING)},t.onChange=function(e){var n=e.flicking,i=e.axesEvent,a=e.transitTo,s=n.control.controller,c=s.animatingContext,u=new V(B.MOVE_START,{isTrusted:i.isTrusted,holding:this.holding,direction:Oe(c.start,c.end),axesEvent:i});n.trigger(u),u.isCanceled()?a(Y.DISABLED):a(Y.ANIMATING).onChange(e)},o}(lt),Tl=function(r){te(o,r);function o(){var e=r!==null&&r.apply(this,arguments)||this;return e.holding=!0,e.animating=!1,e._releaseEvent=null,e}var t=o.prototype;return t.onChange=function(e){var n=e.flicking,i=e.axesEvent,a=e.transitTo,s=i.inputEvent,c=n.horizontal?s.offsetX:s.offsetY,u=new V(B.MOVE_START,{isTrusted:i.isTrusted,holding:this.holding,direction:Oe(0,-c),axesEvent:i});n.trigger(u),u.isCanceled()?a(Y.DISABLED):a(Y.DRAGGING).onChange(e)},t.onRelease=function(e){var n=e.flicking,i=e.axesEvent,a=e.transitTo;if(n.trigger(new V(B.HOLD_END,{axesEvent:i})),i.delta.flick!==0){i.setTo({flick:n.camera.position},0),a(Y.IDLE);return}this._releaseEvent=i},t.onFinish=function(e){var n,i,a=e.flicking,s=e.transitTo;if(s(Y.IDLE),!!this._releaseEvent){var c=this._releaseEvent,u=c.inputEvent.srcEvent,f;if(u.type==="touchend"){var h=u,v=h.changedTouches[0];f=document.elementFromPoint(v.clientX,v.clientY)}else f=u.target;var d=a.renderer.panels,p=null;try{for(var g=jt(d),m=g.next();!m.done;m=g.next()){var _=m.value;if(_.contains(f)){p=_;break}}}catch(E){n={error:E}}finally{try{m&&!m.done&&(i=g.return)&&i.call(g)}finally{if(n)throw n.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)}))}}},o}(lt),Sl=function(r){te(o,r);function o(){var e=r!==null&&r.apply(this,arguments)||this;return e.holding=!0,e.animating=!0,e}var t=o.prototype;return t.onChange=function(e){this._moveToChangedPosition(e)},t.onRelease=function(e){var n,i=e.flicking,a=e.axesEvent,s=e.transitTo;if(i.trigger(new V(B.HOLD_END,{axesEvent:a})),i.renderer.panelCount<=0){s(Y.IDLE);return}s(Y.ANIMATING);var c=i.control,u=a.destPos[K],f=Math.max(a.duration,i.duration);try{c.moveToPosition(u,f,a)}catch{s(Y.IDLE),a.setTo((n={},n[K]=i.camera.position,n),0)}},o}(lt),Cl=function(r){te(o,r);function o(){var e=r!==null&&r.apply(this,arguments)||this;return e.holding=!1,e.animating=!0,e}var t=o.prototype;return t.onHold=function(e){var n=e.flicking,i=e.axesEvent,a=e.transitTo,s=this._targetPanel,c=n.control;this._delta=0,n.control.updateInput(),n.changeOnHold&&s&&c.setActive(s,c.activePanel,i.isTrusted);var u=new V(B.HOLD_START,{axesEvent:i});n.trigger(u),u.isCanceled()?a(Y.DISABLED):a(Y.DRAGGING)},t.onChange=function(e){this._moveToChangedPosition(e)},t.onFinish=function(e){var n=e.flicking,i=e.axesEvent,a=e.transitTo,s=n.control,c=s.controller,u=c.animatingContext;a(Y.IDLE),n.trigger(new V(B.MOVE_END,{isTrusted:i.isTrusted,direction:Oe(u.start,u.end),axesEvent:i}));var f=this._targetPanel;f&&s.setActive(f,s.activePanel,i.isTrusted)},o}(lt),kl=function(r){te(o,r);function o(){var e=r!==null&&r.apply(this,arguments)||this;return e.holding=!1,e.animating=!0,e}var t=o.prototype;return t.onAnimationEnd=function(e){var n=e.transitTo;n(Y.IDLE)},t.onChange=function(e){var n=e.axesEvent,i=e.transitTo;n.stop(),i(Y.IDLE)},t.onRelease=function(e){var n=e.axesEvent,i=e.transitTo;n.delta.flick===0&&i(Y.IDLE)},o}(lt),Rl=function(){function r(){var t=this;this.transitTo=function(e){var n;switch(e){case Y.IDLE:n=new jr;break;case Y.HOLDING:n=new Tl;break;case Y.DRAGGING:n=new Sl;break;case Y.ANIMATING:n=new Cl;break;case Y.DISABLED:n=new kl;break}return n.onEnter(t._state),t._state=n,t._state},this._state=new jr}var o=r.prototype;return Object.defineProperty(o,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),o.fire=function(t,e){var n=this._state,i=ne(ne({},e),{transitTo:this.transitTo});switch(t){case q.HOLD:n.onHold(i);break;case q.CHANGE:n.onChange(i);break;case q.RELEASE:n.onRelease(i);break;case q.ANIMATION_END:n.onAnimationEnd(i);break;case q.FINISH:n.onFinish(i);break}},r}(),Il=function(){function r(){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 Rl}var o=r.prototype;return Object.defineProperty(o,"axes",{get:function(){return this._axes},enumerable:!1,configurable:!0}),Object.defineProperty(o,"panInput",{get:function(){return this._panInput},enumerable:!1,configurable:!0}),Object.defineProperty(o,"stateMachine",{get:function(){return this._stateMachine},enumerable:!1,configurable:!0}),Object.defineProperty(o,"state",{get:function(){return this._stateMachine.state},enumerable:!1,configurable:!0}),Object.defineProperty(o,"animatingContext",{get:function(){return this._animatingContext},enumerable:!1,configurable:!0}),Object.defineProperty(o,"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(o,"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(o,"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(o,"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(o,"bounce",{get:function(){var t;return(t=this._axes)===null||t===void 0?void 0:t.axis[K].bounce},enumerable:!1,configurable:!0}),o.init=function(t){var e,n=this;this._flicking=t,this._axes=new Zs((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 Ks(t.viewport.element,{inputType:t.inputType,threshold:1,iOSEdgeSwipeThreshold:t.iOSEdgeSwipeThreshold,preventDefaultOnDrag:t.preventDefaultOnDrag,scale:t.horizontal?[t.camera.panelOrder===Ie.RTL?1:-1,0]:[0,-1],releaseOnScroll:!0});var i=this._axes;i.connect(t.horizontal?[K,""]:["",K],this._panInput);var a=function(c){var u=q[c];i.on(u,function(f){n._stateMachine.fire(u,{flicking:t,axesEvent:f})})};for(var s in q)a(s);return this},o.destroy=function(){var t;this._axes&&(this.removePreventClickHandler(),this._axes.destroy()),(t=this._panInput)===null||t===void 0||t.destroy(),this._resetInternalValues()},o.enable=function(){var t;return(t=this._panInput)===null||t===void 0||t.enable(),this},o.disable=function(){var t;return(t=this._panInput)===null||t===void 0||t.disable(),this},o.release=function(){var t;return(t=this._panInput)===null||t===void 0||t.release(),this},o.updateAnimation=function(t,e){var n,i;return this._animatingContext=ne(ne({},this._animatingContext),{end:t}),(i=this._axes)===null||i===void 0||i.updateAnimation({destPos:(n={},n[K]=t,n),duration:e}),this},o.stopAnimation=function(){var t;return(t=this._axes)===null||t===void 0||t.stopAnimation(),this},o.update=function(t){var e,n=N(this._flicking),i=n.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=_l(n.bounce,i.size),a.axisManager.set((e={},e[K]=t.position,e)),this},o.addPreventClickHandler=function(){var t=N(this._flicking),e=this._axes,n=t.camera.element;return e.on(q.HOLD,this._onAxesHold),e.on(q.CHANGE,this._onAxesChange),n.addEventListener("click",this._preventClickWhenDragged,!0),this},o.removePreventClickHandler=function(){var t=N(this._flicking),e=this._axes,n=t.camera.element;return e.off(q.HOLD,this._onAxesHold),e.off(q.CHANGE,this._onAxesChange),n.removeEventListener("click",this._preventClickWhenDragged,!0),this},o.animateTo=function(t,e,n){var i=this,a,s=this._axes,c=this._stateMachine.state;if(!s)return Promise.reject(new G(U.NOT_ATTACHED_TO_FLICKING,W.NOT_ATTACHED_TO_FLICKING));var u=s.get([K])[K];if(u===t){var f=N(this._flicking);return f.camera.lookAt(t),c.targetPanel&&f.control.setActive(c.targetPanel,f.control.activePanel,(a=n?.isTrusted)!==null&&a!==void 0?a:!1),Promise.resolve()}this._animatingContext={start:u,end:t,offset:0};var h=function(){var v,d,p=function(){i._animatingContext={start:0,end:0,offset:0}};s.once(q.FINISH,p),n?n.setTo((v={},v[K]=t,v),e):s.setTo((d={},d[K]=t,d),e)};return new Promise(function(v,d){var p=function(){s.off(q.HOLD,g),v()},g=function(){s.off(q.FINISH,p),d(new G(U.ANIMATION_INTERRUPTED,W.ANIMATION_INTERRUPTED))};s.once(q.FINISH,p),s.once(q.HOLD,g),h()})},o.updateDirection=function(){var t=N(this._flicking),e=this._axes,n=this._panInput;e.disconnect(n),e.connect(t.horizontal?[K,""]:["",K],n),n.options.scale=t.horizontal?[t.camera.panelOrder===Ie.RTL?1:-1,0]:[0,-1]},o._resetInternalValues=function(){this._flicking=null,this._axes=null,this._panInput=null,this._animatingContext={start:0,end:0,offset:0},this._dragged=!1},r}(),Fn=function(){function r(){this._flicking=null,this._controller=new Il,this._activePanel=null}var o=r.prototype;return Object.defineProperty(o,"controller",{get:function(){return this._controller},enumerable:!1,configurable:!0}),Object.defineProperty(o,"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(o,"activePanel",{get:function(){return this._activePanel},enumerable:!1,configurable:!0}),Object.defineProperty(o,"animating",{get:function(){return this._controller.state.animating},enumerable:!1,configurable:!0}),Object.defineProperty(o,"holding",{get:function(){return this._controller.state.holding},enumerable:!1,configurable:!0}),o.init=function(t){return this._flicking=t,this._controller.init(t),this},o.destroy=function(){this._controller.destroy(),this._flicking=null,this._activePanel=null},o.enable=function(){return this._controller.enable(),this},o.disable=function(){return this._controller.disable(),this},o.release=function(){return this._controller.release(),this},o.updateAnimation=function(t,e,n){var i=this._controller.state,a=this._getPosition(t,n??F.NONE);return i.targetPanel=t,this._controller.updateAnimation(a,e),this},o.stopAnimation=function(){var t=this._controller.state;return t.targetPanel=null,this._controller.stopAnimation(),this},o.updatePosition=function(t){var e=N(this._flicking),n=e.camera,i=this._activePanel;i&&n.lookAt(n.clampToReachablePosition(i.position))},o.updateInput=function(){var t=N(this._flicking),e=t.camera;return this._controller.update(e.controlParams),this},o.resetActive=function(){return this._activePanel=null,this},o.moveToPanel=function(t,e){var n=e.duration,i=e.direction,a=i===void 0?F.NONE:i,s=e.axesEvent;return De(this,void 0,void 0,function(){var c;return Me(this,function(u){return c=this._getPosition(t,a),this._triggerIndexChangeEvent(t,t.position,s),[2,this._animateToPosition({position:c,duration:n,newActivePanel:t,axesEvent:s})]})})},o.setActive=function(t,e,n){var i,a=N(this._flicking);this._activePanel=t,a.camera.updateAdaptiveHeight(),t!==e?a.trigger(new V(B.CHANGED,{index:t.index,panel:t,prevIndex:(i=e?.index)!==null&&i!==void 0?i:-1,prevPanel:e,isTrusted:n,direction:e?Oe(e.position,t.position):F.NONE})):a.trigger(new V(B.RESTORED,{isTrusted:n}))},o.copy=function(t){this._flicking=t._flicking,this._activePanel=t._activePanel,this._controller=t._controller},o._triggerIndexChangeEvent=function(t,e,n){var i,a=N(this._flicking),s=t!==this._activePanel?B.WILL_CHANGE:B.WILL_RESTORE,c=a.camera,u=this._activePanel,f=new V(s,{index:t.index,panel:t,isTrusted:n?.isTrusted||!1,direction:Oe((i=u?.position)!==null&&i!==void 0?i:c.position,e)});if(a.trigger(f),f.isCanceled())throw new G(U.STOP_CALLED_BY_USER,W.STOP_CALLED_BY_USER)},o._animateToPosition=function(t){var e=t.position,n=t.duration,i=t.newActivePanel,a=t.axesEvent;return De(this,void 0,void 0,function(){var s,c,u,f=this;return Me(this,function(h){return s=N(this._flicking),c=function(){return f._controller.animateTo(e,n,a)},u=this._controller.state,u.targetPanel=i,n<=0?[2,c()]:[2,c().then(function(){return De(f,void 0,void 0,function(){return Me(this,function(v){switch(v.label){case 0:return[4,s.renderer.render()];case 1:return v.sent(),[2]}})})}).catch(function(v){if(!(a&&v instanceof G&&v.code===W.ANIMATION_INTERRUPTED))throw v})]})})},o._getPosition=function(t,e){e===void 0&&(e=F.NONE);var n=N(this._flicking),i=n.camera,a=t.position,s=i.findNearestAnchor(a);if(t.removed||!s)throw new G(U.POSITION_NOT_REACHABLE(t.position),W.POSITION_NOT_REACHABLE);if(!i.canReach(t))a=s.position,t=s.panel;else if(n.circularEnabled){var c=this._controller.position,u=i.rangeDiff,f=[a,a+u,a-u].filter(function(h){return e===F.NONE?!0:e===F.PREV?h<=c:h>=c});a=f.reduce(function(h,v){return Math.abs(c-v)<Math.abs(c-h)?v:h},1/0)}return a},r}(),ee=function(){function r(t){var e=t.index,n=t.position,i=t.panel;this._index=e,this._pos=n,this._panel=i}var o=r.prototype;return Object.defineProperty(o,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(o,"position",{get:function(){return this._pos},enumerable:!1,configurable:!0}),Object.defineProperty(o,"panel",{get:function(){return this._panel},enumerable:!1,configurable:!0}),r}(),Nl=function(r){te(o,r);function o(e){var n=(e===void 0?{}:e).count,i=n===void 0?1/0:n,a=r.call(this)||this;return a._count=i,a}var t=o.prototype;return Object.defineProperty(t,"count",{get:function(){return this._count},set:function(e){this._count=e},enumerable:!1,configurable:!0}),t.moveToPosition=function(e,n,i){var a=N(this._flicking),s=a.camera,c=s.findActiveAnchor(),u=s.findNearestAnchor(s.position),f=this._controller.state;if(!c||!u)return Promise.reject(new G(U.POSITION_NOT_REACHABLE(e),W.POSITION_NOT_REACHABLE));var h=this._calcSnapThreshold(e,c),v=a.animating?f.delta:e-s.position,d=Math.abs(v),p=i&&i.delta[K]!==0?Math.abs(i.delta[K]):d,g;if(p>=h&&p>0)g=this._findSnappedAnchor(e,u);else if(d>=a.threshold&&d>0)g=this._findAdjacentAnchor(e,v,u);else return this.moveToPanel(u.panel,{duration:n,axesEvent:i});return this._triggerIndexChangeEvent(g.panel,e,i),this._animateToPosition({position:s.clampToReachablePosition(g.position),duration:n,newActivePanel:g.panel,axesEvent:i})},t._findSnappedAnchor=function(e,n){var i=N(this._flicking),a=i.camera,s=this._count,c=a.position,u=a.clampToReachablePosition(e),f=a.findAnchorIncludePosition(u);if(!n||!f)throw new G(U.POSITION_NOT_REACHABLE(e),W.POSITION_NOT_REACHABLE);if(!isFinite(s))return f;var h=i.panelCount,v=a.anchorPoints,d=Math.sign(e-c)*Math.floor(Math.abs(e-c)/a.rangeDiff);e>c&&f.index<n.index||f.position>n.position&&f.index===n.index?d+=1:(e<c&&f.index>n.index||f.position<n.position&&f.index===n.index)&&(d-=1);var p=d*h,g=f.index+p;if(Math.abs(g-n.index)<=s){var m=v[f.index];return new ee({index:m.index,position:m.position+d*a.rangeDiff,panel:m.panel})}if(i.circularEnabled){var _=v[Ki(n.index+Math.sign(e-c)*s,h)],y=Math.floor(s/h);return e>c&&_.index<n.index?y+=1:e<c&&_.index>n.index&&(y-=1),new ee({index:_.index,position:_.position+y*a.rangeDiff,panel:_.panel})}else return v[_e(n.index+Math.sign(e-c)*s,0,v.length-1)]},t._findAdjacentAnchor=function(e,n,i){var a,s=N(this._flicking),c=s.camera;if(c.circularEnabled){var u=c.findAnchorIncludePosition(e);if(u&&u.position!==i.position)return u}var f=(a=n>0?c.getNextAnchor(i):c.getPrevAnchor(i))!==null&&a!==void 0?a:i;return f},t._calcSnapThreshold=function(e,n){var i=e>n.position,a=n.panel,s=a.size,c=a.alignPosition;return i?s-c+a.margin.next:c+a.margin.prev},o}(Fn),Al=function(r){te(o,r);function o(e){var n=(e===void 0?{}:e).stopAtEdge,i=n===void 0?!0:n,a=r.call(this)||this;return a._stopAtEdge=i,a}var t=o.prototype;return Object.defineProperty(t,"stopAtEdge",{get:function(){return this._stopAtEdge},set:function(e){this._stopAtEdge=e},enumerable:!1,configurable:!0}),t.updatePosition=function(e){var n=N(this._flicking),i=n.camera,a=this._activePanel;if(a){var s=a.range,c=s.min+(s.max-s.min)*e;i.lookAt(i.clampToReachablePosition(c))}},t.moveToPosition=function(e,n,i){var a=N(this._flicking),s=a.camera,c=s.clampToReachablePosition(e),u=s.findAnchorIncludePosition(c);if(!u)return Promise.reject(new G(U.POSITION_NOT_REACHABLE(e),W.POSITION_NOT_REACHABLE));var f=u.panel;return f!==this._activePanel&&this._triggerIndexChangeEvent(f,e,i),this._animateToPosition({position:this._stopAtEdge?c:e,duration:n,newActivePanel:f,axesEvent:i})},o}(Fn),Dl=function(r){te(o,r);function o(e){var n=(e===void 0?{}:e).count,i=n===void 0?1:n,a=r.call(this)||this;return a.setActive=function(s,c,u){r.prototype.setActive.call(a,s,c,u),a.updateInput()},a._count=i,a._resetIndexRange(),a}var t=o.prototype;return Object.defineProperty(t,"count",{get:function(){return this._count},set:function(e){this._count=e},enumerable:!1,configurable:!0}),t.destroy=function(){r.prototype.destroy.call(this),this._resetIndexRange()},t.updateInput=function(){var e,n=N(this._flicking),i=n.camera,a=n.renderer,s=this._controller,c=i.controlParams,u=this._count,f=s.state.animating?(e=i.findNearestAnchor(i.position))===null||e===void 0?void 0:e.panel:this._activePanel;if(!f)return s.update(c),this._resetIndexRange(),this;var h=c.range,v=f.position,d=f.index,p=a.panelCount,g=d-u,m=d+u;g<0&&(g=n.circularEnabled?St((g+1)%p-1,p):_e(g,0,p-1)),m>=p&&(m=n.circularEnabled?m%p:_e(m,0,p-1));var _=a.panels[g],y=a.panels[m],b=Math.max(_.position,h.min),E=Math.min(y.position,h.max);return b>v&&(b-=i.rangeDiff),E<v&&(E+=i.rangeDiff),c.range={min:b,max:E},c.circular&&(c.position<b&&(c.position+=i.rangeDiff),c.position>E&&(c.position-=i.rangeDiff)),c.circular=!1,s.update(c),this._indexRange={min:_.index,max:y.index},this},t.moveToPanel=function(e,n){return De(this,void 0,void 0,function(){var i,a,s;return Me(this,function(c){return i=N(this._flicking),a=i.camera,s=this._controller,s.update(a.controlParams),[2,r.prototype.moveToPanel.call(this,e,n)]})})},t.moveToPosition=function(e,n,i){var a=N(this._flicking),s=a.camera,c=this._activePanel,u=this._controller.range,f=this._indexRange,h=s.range,v=this._controller.state,d=_e(s.clampToReachablePosition(e),u[0],u[1]),p=s.findAnchorIncludePosition(d);if(!p||!c)return Promise.reject(new G(U.POSITION_NOT_REACHABLE(e),W.POSITION_NOT_REACHABLE));var g=c.position,m=a.animating?v.delta:e-s.position,_=Math.abs(m)>=a.threshold,y=e>g?s.getNextAnchor(p):s.getPrevAnchor(p),b,E,x=s.anchorPoints,C=x[0],I=x[x.length-1],O=e<=h.min&&Zt(C.panel.index,f.min,f.max),k=e>=h.max&&Zt(I.panel.index,f.min,f.max),T=y&&(f.min<=f.max?Zt(y.index,f.min,f.max):y.index>=f.min||y.index<=f.max);if(O||k){var D=e<h.min?C:I;E=D.panel,b=D.position}else if(_&&p.position!==c.position)E=p.panel,b=p.position;else if(_&&T)E=y.panel,b=y.position;else{var A=s.findNearestAnchor(s.position);return A?this.moveToPanel(A.panel,{duration:n,axesEvent:i}):Promise.reject(new G(U.POSITION_NOT_REACHABLE(e),W.POSITION_NOT_REACHABLE))}return this._triggerIndexChangeEvent(E,e,i),this._animateToPosition({position:b,duration:n,newActivePanel:E,axesEvent:i})},t._resetIndexRange=function(){this._indexRange={min:0,max:0}},o}(Fn),$n=function(){function r(t){this._flicking=t}var o=r.prototype;return o.getAnchors=function(){var t=this._flicking.renderer.panels;return t.map(function(e,n){return new ee({index:n,position:e.position,panel:e})})},o.findAnchorIncludePosition=function(t){var e=this._flicking.camera.anchorPoints,n=e.filter(function(i){return i.panel.includePosition(t,!0)});return n.reduce(function(i,a){return i&&Math.abs(i.position-t)<Math.abs(a.position-t)?i:a},null)},o.findNearestAnchor=function(t){var e=this._flicking.camera.anchorPoints;if(e.length<=0)return null;for(var n=1/0,i=0;i<e.length;i++){var a=e[i],s=Math.abs(a.position-t);if(s>n)return e[i-1];n=s}return e[e.length-1]},o.clampToReachablePosition=function(t){var e=this._flicking.camera,n=e.range;return _e(t,n.min,n.max)},o.getCircularOffset=function(){return 0},o.canReach=function(t){var e=this._flicking.camera,n=e.range;if(t.removed)return!1;var i=t.position;return i>=n.min&&i<=n.max},o.canSee=function(t){var e=this._flicking.camera,n=e.visibleRange;return t.isVisibleOnRange(n.min,n.max)},r}(),Fr=function(r){te(o,r);function o(){return r!==null&&r.apply(this,arguments)||this}var t=o.prototype;return t.checkAvailability=function(){return!0},t.getRange=function(){var e,n,i=this._flicking.renderer,a=i.getPanel(0),s=i.getPanel(i.panelCount-1);return{min:(e=a?.position)!==null&&e!==void 0?e:0,max:(n=s?.position)!==null&&n!==void 0?n:0}},o}($n),Ml=function(r){te(o,r);function o(){return r!==null&&r.apply(this,arguments)||this}var t=o.prototype;return t.checkAvailability=function(){var e=this._flicking,n=e.renderer,i=n.panels;if(i.length<=0)return!1;var a=i[0],s=i[i.length-1],c=a.range.min-a.margin.prev,u=s.range.max+s.margin.next,f=e.camera.size,h=u-c,v=i.every(function(d){return h-d.size>=f});return v},t.getRange=function(){var e=this._flicking,n=e.renderer.panels;if(n.length<=0)return{min:0,max:0};var i=n[0],a=n[n.length-1],s=i.range.min-i.margin.prev,c=a.range.max+a.margin.next;return{min:s,max:c}},t.getAnchors=function(){var e=this._flicking,n=e.renderer.panels;return n.map(function(i,a){return new ee({index:a,position:i.position,panel:i})})},t.findNearestAnchor=function(e){var n=this._flicking.camera,i=n.anchorPoints;if(i.length<=0)return null;for(var a=n.range,s=1/0,c=-1,u=0;u<i.length;u++){var f=i[u],h=Math.min(Math.abs(f.position-e),Math.abs(f.position-a.min+a.max-e),Math.abs(e-a.min+a.max-f.position));h<s&&(s=h,c=u)}return i[c]},t.findAnchorIncludePosition=function(e){var n=this._flicking.camera,i=n.range,a=n.anchorPoints,s=n.rangeDiff,c=a.length,u=Yi(e,i.min,i.max),f=r.prototype.findAnchorIncludePosition.call(this,u);if(c>0&&(e===i.min||e===i.max)){var h=[f,new ee({index:0,position:a[0].position+s,panel:a[0].panel}),new ee({index:c-1,position:a[c-1].position-s,panel:a[c-1].panel})].filter(function(d){return!!d});f=h.reduce(function(d,p){return d&&Math.abs(d.position-e)<Math.abs(p.position-e)?d:p},null)}if(!f)return null;if(e<i.min){var v=-Math.floor((i.min-e)/s)-1;return new ee({index:f.index,position:f.position+s*v,panel:f.panel})}else if(e>i.max){var v=Math.floor((e-i.max)/s)+1;return new ee({index:f.index,position:f.position+s*v,panel:f.panel})}return f},t.getCircularOffset=function(){var e=this._flicking,n=e.camera;if(!n.circularEnabled)return 0;var i=e.panels.filter(function(c){return c.toggled}),a=i.filter(function(c){return c.toggleDirection===F.PREV}),s=i.filter(function(c){return c.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 n=this._flicking.camera,i=n.range,a=n.rangeDiff,s=n.visibleRange,c=r.prototype.canSee.call(this,e);return s.min<i.min?c||e.isVisibleOnRange(s.min+a,s.max+a):s.max>i.max?c||e.isVisibleOnRange(s.min-a,s.max-a):c},t._calcPanelAreaSum=function(e){return e.reduce(function(n,i){return n+i.sizeIncludingMargin},0)},o}($n),$r=function(r){te(o,r);function o(){return r!==null&&r.apply(this,arguments)||this}var t=o.prototype;return t.checkAvailability=function(){var e=this._flicking,n=e.renderer,i=n.getPanel(0),a=n.getPanel(n.panelCount-1);if(!i||!a)return!1;var s=e.camera.size,c=i.range.min,u=a.range.max,f=u-c,h=s<f;return h},t.getRange=function(){var e=this._flicking,n=e.renderer,i=e.camera.alignPosition,a=n.getPanel(0),s=n.getPanel(n.panelCount-1);if(!a||!s)return{min:0,max:0};var c=e.camera.size,u=a.range.min,f=s.range.max,h=f-u,v=c<h,d=u+i,p=f-c+i;if(v)return{min:d,max:p};var g=e.camera.align,m=typeof g=="object"?g.camera:g,_=d+jn(m,p-d);return{min:_,max:_}},t.getAnchors=function(){var e=this._flicking,n=e.camera,i=e.renderer.panels;if(i.length<=0)return[];var a=e.camera.range,s=i.filter(function(g){return n.canReach(g)});if(s.length>0){var c=s[0].position!==a.min,u=s[s.length-1].position!==a.max,f=c?1:0,h=s.map(function(g,m){return new ee({index:m+f,position:g.position,panel:g})});return c&&h.splice(0,0,new ee({index:0,position:a.min,panel:i[s[0].index-1]})),u&&h.push(new ee({index:h.length,position:a.max,panel:i[s[s.length-1].index+1]})),h}else if(a.min!==a.max){var v=this._findNearestPanel(a.min,i),d=v.index===i.length-1?v.prev():v,p=d.next();return[new ee({index:0,position:a.min,panel:d}),new ee({index:1,position:a.max,panel:p})]}else return[new ee({index:0,position:a.min,panel:this._findNearestPanel(a.min,i)})]},t.findAnchorIncludePosition=function(e){var n=this._flicking.camera,i=n.range,a=n.anchorPoints;return a.length<=0?null:e<=i.min?a[0]:e>=i.max?a[a.length-1]:r.prototype.findAnchorIncludePosition.call(this,e)},t._findNearestPanel=function(e,n){for(var i=1/0,a=0;a<n.length;a++){var s=n[a],c=Math.abs(s.position-e);if(c>i)return n[a-1];i=c}return n[n.length-1]},o}($n),zl=function(){function r(t,e){var n=this,i=(e===void 0?{}:e).align,a=i===void 0?ue.CENTER:i;this._checkTranslateSupport=function(){var s,c,u=["webkitTransform","msTransform","MozTransform","OTransform","transform"],f=document.documentElement.style,h="";try{for(var v=jt(u),d=v.next();!d.done;d=v.next()){var p=d.value;p in f&&(h=p)}}catch(g){s={error:g}}finally{try{d&&!d.done&&(c=v.return)&&c.call(v)}finally{if(s)throw s.error}}if(!h)throw new G(U.TRANSFORM_NOT_SUPPORTED,W.TRANSFORM_NOT_SUPPORTED);n._transform=h},this._flicking=t,this._resetInternalValues(),this._align=a}var o=r.prototype;return Object.defineProperty(o,"element",{get:function(){return this._el},enumerable:!1,configurable:!0}),Object.defineProperty(o,"children",{get:function(){return Vn(this._el.children)},enumerable:!1,configurable:!0}),Object.defineProperty(o,"position",{get:function(){return this._position},enumerable:!1,configurable:!0}),Object.defineProperty(o,"alignPosition",{get:function(){return this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(o,"offset",{get:function(){return this._offset-this._circularOffset},enumerable:!1,configurable:!0}),Object.defineProperty(o,"circularEnabled",{get:function(){return this._circularEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(o,"mode",{get:function(){return this._mode},enumerable:!1,configurable:!0}),Object.defineProperty(o,"range",{get:function(){return this._range},enumerable:!1,configurable:!0}),Object.defineProperty(o,"rangeDiff",{get:function(){return this._range.max-this._range.min},enumerable:!1,configurable:!0}),Object.defineProperty(o,"visiblePanels",{get:function(){return this._visiblePanels},enumerable:!1,configurable:!0}),Object.defineProperty(o,"visibleRange",{get:function(){return{min:this._position-this._alignPos,max:this._position-this._alignPos+this.size}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"anchorPoints",{get:function(){return this._anchors},enumerable:!1,configurable:!0}),Object.defineProperty(o,"controlParams",{get:function(){return{range:this._range,position:this._position,circular:this._circularEnabled}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"atEdge",{get:function(){return this._position<=this._range.min||this._position>=this._range.max},enumerable:!1,configurable:!0}),Object.defineProperty(o,"size",{get:function(){var t=this._flicking;return t?t.horizontal?t.viewport.width:t.viewport.height:0},enumerable:!1,configurable:!0}),Object.defineProperty(o,"progress",{get:function(){var t=this._flicking,e=this._position+this._offset,n=this.findNearestAnchor(this._position);if(!t||!n)return NaN;var i=n.panel,a=i.position+i.offset,s=t.control.controller.bounce,c=this.range,u=c.min,f=c.max,h=this.rangeDiff;if(e===a)return i.index;if(e<a){var v=i.prev(),d=v?v.position+v.offset:u-s[0];return d>a&&(d-=h),i.index-1+kt(e,d,a)}else{var p=i.next(),g=p?p.position+p.offset:f+s[1];return g<a&&(g+=h),i.index+kt(e,a,g)}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"panelOrder",{get:function(){return this._panelOrder},enumerable:!1,configurable:!0}),Object.defineProperty(o,"align",{get:function(){return this._align},set:function(t){this._align=t},enumerable:!1,configurable:!0}),o.init=function(){var t=this._flicking.viewport.element;return ml(t.firstElementChild,"First element child of the viewport element"),this._el=t.firstElementChild,this._checkTranslateSupport(),this._updateMode(),this.updatePanelOrder(),this},o.destroy=function(){return this._resetInternalValues(),this},o.lookAt=function(t){var e=this,n=N(this._flicking),i=this._position;this._position=t;var a=this._togglePanels(i,t);this._refreshVisiblePanels(),this._checkNeedPanel(),this._checkReachEnd(i,t),a?n.renderer.render().then(function(){e.updateOffset()}):this.applyTransform()},o.getPrevAnchor=function(t){if(!this._circularEnabled||t.index!==0)return this._anchors[t.index-1]||null;var e=this._anchors,n=this.rangeDiff,i=e[e.length-1];return new ee({index:i.index,position:i.position-n,panel:i.panel})},o.getNextAnchor=function(t){var e=this._anchors;if(!this._circularEnabled||t.index!==e.length-1)return e[t.index+1]||null;var n=this.rangeDiff,i=e[0];return new ee({index:i.index,position:i.position+n,panel:i.panel})},o.getProgressInPanel=function(t){var e=t.range;return(this._position-e.min)/(e.max-e.min)},o.findAnchorIncludePosition=function(t){return this._mode.findAnchorIncludePosition(t)},o.findNearestAnchor=function(t){return this._mode.findNearestAnchor(t)},o.findActiveAnchor=function(){var t=N(this._flicking),e=t.control.activeIndex;return yl(this._anchors,function(n){return n.panel.index===e})},o.clampToReachablePosition=function(t){return this._mode.clampToReachablePosition(t)},o.canReach=function(t){return this._mode.canReach(t)},o.canSee=function(t){return this._mode.canSee(t)},o.updateRange=function(){var t=N(this._flicking),e=t.renderer,n=e.panels;return this._updateMode(),this._range=this._mode.getRange(),n.forEach(function(i){return i.updateCircularToggleDirection()}),this},o.updateAlignPos=function(){var t=this._align,e=typeof t=="object"?t.camera:t;return this._alignPos=jn(e,this.size),this},o.updateAnchors=function(){return this._anchors=this._mode.getAnchors(),this},o.updateAdaptiveHeight=function(){var t=N(this._flicking),e=t.control.activePanel;!t.horizontal||!t.adaptive||!e||t.viewport.setSize({height:e.height})},o.updateOffset=function(){var t=N(this._flicking),e=this._position,n=t.panels.filter(function(i){return!i.rendered});return this._offset=n.filter(function(i){return i.position+i.offset<e}).reduce(function(i,a){return i+a.sizeIncludingMargin},0),this._circularOffset=this._mode.getCircularOffset(),this.applyTransform(),this},o.updatePanelOrder=function(){var t=N(this._flicking);if(!t.horizontal)return this;var e=this._el,n=Rt(e).direction;return n!==this._panelOrder&&(this._panelOrder=n===Ie.RTL?Ie.RTL:Ie.LTR,t.initialized&&t.control.controller.updateDirection()),this},o.resetNeedPanelHistory=function(){return this._needPanelTriggered={prev:!1,next:!1},this},o.applyTransform=function(){var t=this._el,e=N(this._flicking),n=e.renderer;if(n.rendering||!e.initialized)return this;var i=this._position-this._alignPos-this._offset+this._circularOffset;return t.style[this._transform]=e.horizontal?"translate("+(this._panelOrder===Ie.RTL?i:-i)+"px)":"translate(0, "+-i+"px)",this},o._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}},o._refreshVisiblePanels=function(){var t=this,e=N(this._flicking),n=e.renderer.panels,i=n.filter(function(u){return t.canSee(u)}),a=this._visiblePanels;this._visiblePanels=i;var s=i.filter(function(u){return!Ct(a,u)}),c=a.filter(function(u){return!Ct(i,u)});(s.length>0||c.length>0)&&e.renderer.render().then(function(){e.trigger(new V(B.VISIBLE_CHANGE,{added:s,removed:c,visiblePanels:i}))})},o._checkNeedPanel=function(){var t=this._needPanelTriggered;if(!(t.prev&&t.next)){var e=N(this._flicking),n=e.renderer.panels;if(n.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 i=this._position,a=this.size,s=this._range,c=e.needPanelThreshold,u=i-this._alignPos,f=u+a,h=n[0],v=n[n.length-1];if(!t.prev){var d=h.range.min;(u<=d+c||i<=s.min+c)&&(e.trigger(new V(B.NEED_PANEL,{direction:F.PREV})),t.prev=!0)}if(!t.next){var p=v.range.max;(f>=p-c||i>=s.max-c)&&(e.trigger(new V(B.NEED_PANEL,{direction:F.NEXT})),t.next=!0)}}},o._checkReachEnd=function(t,e){var n=N(this._flicking),i=this._range,a=t>i.min&&t<i.max,s=e>i.min&&e<i.max;if(!(!a||s)){var c=e<=i.min?F.PREV:F.NEXT;n.trigger(new V(B.REACH_EDGE,{direction:c}))}},o._updateMode=function(){var t=N(this._flicking);if(t.circular){var e=new Ml(t),n=e.checkAvailability();if(n)this._mode=e;else{var i=t.circularFallback;this._mode=i===Gi.BOUND?new $r(t):new Fr(t)}this._circularEnabled=n}else this._mode=t.bound?new $r(t):new Fr(t),this._circularEnabled=!1},o._togglePanels=function(t,e){if(e===t)return!1;var n=N(this._flicking),i=n.renderer.panels,a=i.map(function(s){return s.toggle(t,e)});return a.some(function(s){return s})},r}(),Zi=function(){function r(t){var e=t.align,n=e===void 0?ue.CENTER:e,i=t.strategy;this._flicking=null,this._panels=[],this._rendering=!1,this._align=n,this._strategy=i}var o=r.prototype;return Object.defineProperty(o,"panels",{get:function(){return this._panels},enumerable:!1,configurable:!0}),Object.defineProperty(o,"rendering",{get:function(){return this._rendering},enumerable:!1,configurable:!0}),Object.defineProperty(o,"panelCount",{get:function(){return this._panels.length},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strategy",{get:function(){return this._strategy},enumerable:!1,configurable:!0}),Object.defineProperty(o,"align",{get:function(){return this._align},set:function(t){this._align=t;var e=Tt(t);this._panels.forEach(function(n){n.align=e})},enumerable:!1,configurable:!0}),o.init=function(t){return this._flicking=t,this._collectPanels(),this},o.destroy=function(){this._flicking=null,this._panels=[]},o.getPanel=function(t){return this._panels[t]||null},o.forceRenderAllPanels=function(){return this._panels.forEach(function(t){return t.markForShow()}),Promise.resolve()},o.updatePanelSize=function(){var t=N(this._flicking),e=this._panels;if(e.length<=0)return this;if(t.panelsPerView>0){var n=e[0];n.resize(),this._updatePanelSizeByGrid(n,e)}else t.panels.forEach(function(i){return i.resize()});return this},o.batchInsert=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.batchInsertDefer.apply(this,J(t));return n.length<=0?[]:(this.updateAfterPanelChange(n,[]),n)},o.batchInsertDefer=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this._panels,a=N(this._flicking),s=i[0],c=Tt(this._align),u=e.reduce(function(f,h){var v,d=St(h.index,i.length),p=i.slice(d),g=h.elements.map(function(_,y){return t._createPanel(_,{index:d+y,align:c,flicking:a})});if(i.splice.apply(i,J([d,0],g)),h.hasDOMInElements&&t._insertPanelElements(g,(v=p[0])!==null&&v!==void 0?v:null),a.panelsPerView>0){var m=s||g[0].resize();t._updatePanelSizeByGrid(m,g)}else g.forEach(function(_){return _.resize()});return p.forEach(function(_){_.increaseIndex(g.length),_.updatePosition()}),J(f,g)},[]);return u},o.batchRemove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.batchRemoveDefer.apply(this,J(t));return n.length<=0?[]:(this.updateAfterPanelChange([],n),n)},o.batchRemoveDefer=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this._panels,a=N(this._flicking),s=a.control,c=s.activePanel,u=e.reduce(function(f,h){var v=h.index,d=h.deleteCount,p=St(v,i.length),g=i.slice(p+d),m=i.splice(p,d);return m.length<=0?[]:(g.forEach(function(_){_.decreaseIndex(m.length),_.updatePosition()}),h.hasDOMInElements&&t._removePanelElements(m),m.forEach(function(_){return _.destroy()}),Ct(m,c)&&s.resetActive(),J(f,m))},[]);return u},o.updateAfterPanelChange=function(t,e){var n,i=N(this._flicking),a=i.camera,s=i.control,c=this._panels,u=s.activePanel;if(this._updateCameraAndControl(),this.render(),!i.animating)if(!u||u.removed)if(c.length<=0)a.lookAt(0);else{var f=(n=u?.index)!==null&&n!==void 0?n:0;f>c.length-1&&(f=c.length-1),s.moveToPanel(c[f],{duration:0}).catch(function(){})}else s.moveToPanel(u,{duration:0}).catch(function(){});i.camera.updateOffset(),(t.length>0||e.length>0)&&(i.trigger(new V(B.PANEL_CHANGE,{added:t,removed:e})),this.checkPanelContentsReady(J(t,e)))},o.checkPanelContentsReady=function(t){var e=this,n=N(this._flicking),i=n.resizeOnContentsReady,a=this._panels;if(!(!i||n.virtualEnabled)){var s=function(u){return u.element&&!!u.element.querySelector("img, video")};if(t=t.filter(function(u){return s(u)}),!(t.length<=0)){var c=new vl;t.forEach(function(u){u.loading=!0}),c.on("readyElement",function(u){if(!e._flicking){c.destroy();return}var f=t[u.index],h=n.camera,v=n.control,d=v.activePanel?h.getProgressInPanel(v.activePanel):0;f.loading=!1,f.resize(),a.slice(f.index+1).forEach(function(p){return p.updatePosition()}),n.initialized&&(h.updateRange(),h.updateOffset(),h.updateAnchors(),v.animating||(v.updatePosition(d),v.updateInput()))}),c.on("preReady",function(u){e._flicking&&e.render(),u.readyCount===u.totalCount&&c.destroy()}),c.on("ready",function(){e._flicking&&e.render(),c.destroy()}),c.check(t.map(function(u){return u.element}))}}},o._updateCameraAndControl=function(){var t=N(this._flicking),e=t.camera,n=t.control;e.updateRange(),e.updateOffset(),e.updateAnchors(),e.resetNeedPanelHistory(),n.updateInput()},o._showOnlyVisiblePanels=function(t){var e=t.renderer.panels,n=t.camera,i=n.visiblePanels.reduce(function(a,s){return a[s.index]=!0,a},{});e.forEach(function(a){a.index in i||a.loading?a.markForShow():t.holding||a.markForHide()})},o._updatePanelSizeByGrid=function(t,e){var n=N(this._flicking),i=n.panelsPerView;if(i<=0)throw new G(U.WRONG_OPTION("panelsPerView",i),W.WRONG_OPTION);if(!(e.length<=0)){var a=n.camera.size,s=t.margin.prev+t.margin.next,c=(a-s*(i-1))/i,u=n.horizontal?{width:c}:{height:c},f=ne({size:c,margin:t.margin},!n.horizontal&&{height:t.height});n.noPanelStyleOverride||this._strategy.updatePanelSizes(n,u),n.panels.forEach(function(h){return h.resize(f)})}},o._removeAllChildsFromCamera=function(){for(var t=N(this._flicking),e=t.camera.element;e.firstChild;)e.removeChild(e.firstChild)},o._insertPanelElements=function(t,e){e===void 0&&(e=null);var n=N(this._flicking),i=n.camera,a=i.element,s=e?.element||null,c=document.createDocumentFragment();t.forEach(function(u){return c.appendChild(u.element)}),a.insertBefore(c,s)},o._removePanelElements=function(t){var e=N(this._flicking),n=e.camera.element;t.forEach(function(i){n.removeChild(i.element)})},o._afterRender=function(){var t=N(this._flicking);t.camera.applyTransform()},r}(),Bl=function(r){te(o,r);function o(){return r!==null&&r.apply(this,arguments)||this}var t=o.prototype;return t.render=function(){return De(this,void 0,void 0,function(){var e,n;return Me(this,function(i){return e=N(this._flicking),n=this._strategy,n.updateRenderingPanels(e),n.renderPanels(e),this._resetPanelElementOrder(),this._afterRender(),[2]})})},t._collectPanels=function(){var e=N(this._flicking),n=e.camera;this._removeAllTextNodes(),this._panels=this._strategy.collectPanels(e,n.children)},t._createPanel=function(e,n){return this._strategy.createPanel(e,n)},t._resetPanelElementOrder=function(){var e=N(this._flicking),n=e.camera.element,i=this._strategy.getRenderingElementsByOrder(e).reverse();i.forEach(function(a,s){var c=i[s-1]?i[s-1]:null;a.nextElementSibling!==c&&n.insertBefore(a,c)})},t._removeAllTextNodes=function(){var e=N(this._flicking),n=e.camera.element;Vn(n.childNodes).forEach(function(i){i.nodeType===Node.TEXT_NODE&&n.removeChild(i)})},o}(Zi),Ll=function(r){te(o,r);function o(){return r!==null&&r.apply(this,arguments)||this}var t=o.prototype;return t._removePanelElements=function(e){},t._removeAllChildsFromCamera=function(){},o}(Zi),bn=function(){function r(t){var e=t.index,n=t.align,i=t.flicking,a=t.elementProvider;this._index=e,this._flicking=i,this._elProvider=a,this._align=n,this._removed=!1,this._rendered=!0,this._loading=!1,this._resetInternalStates()}var o=r.prototype;return Object.defineProperty(o,"element",{get:function(){return this._elProvider.element},enumerable:!1,configurable:!0}),Object.defineProperty(o,"elementProvider",{get:function(){return this._elProvider},enumerable:!1,configurable:!0}),Object.defineProperty(o,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(o,"position",{get:function(){return this._pos+this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(o,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(o,"sizeIncludingMargin",{get:function(){return this._size+this._margin.prev+this._margin.next},enumerable:!1,configurable:!0}),Object.defineProperty(o,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),Object.defineProperty(o,"margin",{get:function(){return this._margin},enumerable:!1,configurable:!0}),Object.defineProperty(o,"alignPosition",{get:function(){return this._alignPos},enumerable:!1,configurable:!0}),Object.defineProperty(o,"removed",{get:function(){return this._removed},enumerable:!1,configurable:!0}),Object.defineProperty(o,"rendered",{get:function(){return this._rendered},enumerable:!1,configurable:!0}),Object.defineProperty(o,"loading",{get:function(){return this._loading},set:function(t){this._loading=t},enumerable:!1,configurable:!0}),Object.defineProperty(o,"range",{get:function(){return{min:this._pos,max:this._pos+this._size}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"toggled",{get:function(){return this._toggled},enumerable:!1,configurable:!0}),Object.defineProperty(o,"toggleDirection",{get:function(){return this._toggleDirection},enumerable:!1,configurable:!0}),Object.defineProperty(o,"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(o,"progress",{get:function(){var t=this._flicking;return this.index-t.camera.progress},enumerable:!1,configurable:!0}),Object.defineProperty(o,"outsetProgress",{get:function(){var t=this.position+this.offset,e=this._alignPos,n=this._flicking.camera,i=n.position;if(i===t)return 0;if(i<t){var a=t+(n.size-n.alignPosition)+e;return-kt(i,t,a)}else{var s=t-(n.alignPosition+this._size-e);return 1-kt(i,s,t)}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"visibleRatio",{get:function(){var t=this.range,e=this._size,n=this.offset,i=this._flicking.camera.visibleRange,a={min:t.min+n,max:t.max+n};if(a.max<=i.min||a.min>=i.max)return 0;var s=e;return i.min>a.min&&(s-=i.min-a.min),i.max<a.max&&(s-=a.max-i.max),s/e},enumerable:!1,configurable:!0}),Object.defineProperty(o,"align",{get:function(){return this._align},set:function(t){this._align=t,this._updateAlignPos()},enumerable:!1,configurable:!0}),o.markForShow=function(){this._rendered=!0,this._elProvider.show(this._flicking)},o.markForHide=function(){this._rendered=!1,this._elProvider.hide(this._flicking)},o.resize=function(t){var e,n=this.element,i=this._flicking,a=i.horizontal,s=i.useFractionalSize;if(t)this._size=t.size,this._margin=ne({},t.margin),this._height=(e=t.height)!==null&&e!==void 0?e:Qe({el:n,horizontal:!1,useFractionalSize:s,useOffset:!0,style:Rt(n)});else{var c=Rt(n);this._size=Qe({el:n,horizontal:a,useFractionalSize:s,useOffset:!0,style:c}),this._margin=a?{prev:parseFloat(c.marginLeft||"0"),next:parseFloat(c.marginRight||"0")}:{prev:parseFloat(c.marginTop||"0"),next:parseFloat(c.marginBottom||"0")},this._height=a?Qe({el:n,horizontal:!1,useFractionalSize:s,useOffset:!0,style:c}):this._size}return this.updatePosition(),this._updateAlignPos(),this},o.setSize=function(t){return Xi(this.element,t),this},o.contains=function(t){var e;return!!(!((e=this.element)===null||e===void 0)&&e.contains(t))},o.destroy=function(){this._resetInternalStates(),this._removed=!0},o.includePosition=function(t,e){return e===void 0&&(e=!1),this.includeRange(t,t,e)},o.includeRange=function(t,e,n){n===void 0&&(n=!1);var i=this._margin,a=this.range;return n&&(a.min-=i.prev,a.max+=i.next),e>=a.min&&t<=a.max},o.isVisibleOnRange=function(t,e){var n=this.range;return e>n.min&&t<n.max},o.focus=function(t){return this._flicking.moveTo(this._index,t)},o.prev=function(){var t=this._index,e=this._flicking,n=e.renderer,i=n.panelCount;return i===1?null:e.circularEnabled?n.getPanel(t===0?i-1:t-1):n.getPanel(t-1)},o.next=function(){var t=this._index,e=this._flicking,n=e.renderer,i=n.panelCount;return i===1?null:e.circularEnabled?n.getPanel(t===i-1?0:t+1):n.getPanel(t+1)},o.increaseIndex=function(t){return this._index+=Math.max(t,0),this},o.decreaseIndex=function(t){return this._index-=Math.max(t,0),this},o.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},o.toggle=function(t,e){var n=this._toggleDirection,i=this._togglePosition;if(n===F.NONE||e===t)return!1;var a=this._toggled;return e>t?i>=t&&i<=e&&(this._toggled=n===F.NEXT):i<=t&&i>=e&&(this._toggled=n!==F.NEXT),a!==this._toggled},o.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,n=e.range,i=e.alignPosition,a=e.visibleRange,s=a.max-a.min,c=n.min-i,u=n.max-i+s,f=this.includeRange(u-s,u,!1),h=this.includeRange(c,c+s,!1);return this._toggled=!1,f?(this._toggleDirection=F.PREV,this._togglePosition=this.range.max+n.min-n.max+i,this.toggle(1/0,e.position)):h?(this._toggleDirection=F.NEXT,this._togglePosition=this.range.min+n.max-s+i,this.toggle(-1/0,e.position)):(this._toggleDirection=F.NONE,this._togglePosition=0),this},o._updateAlignPos=function(){this._alignPos=jn(this._align,this._size)},o._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},r}(),Ji=function(){function r(t){var e=t.providerCtor;this._providerCtor=e}var o=r.prototype;return o.renderPanels=function(){},o.getRenderingIndexesByOrder=function(t){var e=t.renderer.panels.filter(function(s){return s.rendered}),n=e.filter(function(s){return s.toggled&&s.toggleDirection===F.PREV}),i=e.filter(function(s){return s.toggled&&s.toggleDirection===F.NEXT}),a=e.filter(function(s){return!s.toggled});return J(n,a,i).map(function(s){return s.index})},o.getRenderingElementsByOrder=function(t){var e=t.panels;return this.getRenderingIndexesByOrder(t).map(function(n){return e[n].element})},o.updateRenderingPanels=function(t){t.renderOnlyVisible?this._showOnlyVisiblePanels(t):t.panels.forEach(function(e){return e.markForShow()})},o.collectPanels=function(t,e){var n=this,i=Tt(t.renderer.align);return e.map(function(a,s){return new bn({index:s,elementProvider:new n._providerCtor(a),align:i,flicking:t})})},o.createPanel=function(t,e){return new bn(ne(ne({},e),{elementProvider:new this._providerCtor(t)}))},o.updatePanelSizes=function(t,e){t.panels.forEach(function(n){return n.setSize(e)})},o._showOnlyVisiblePanels=function(t){var e=t.renderer.panels,n=t.camera,i=n.visiblePanels.reduce(function(a,s){return a[s.index]=!0,a},{});e.forEach(function(a){a.index in i||a.loading?a.markForShow():t.holding||a.markForHide()}),n.updateOffset()},r}(),Hr=function(r){te(o,r);function o(e){var n=r.call(this,e)||this;return e.elementProvider.init(n),n._elProvider=e.elementProvider,n._cachedInnerHTML=null,n}var t=o.prototype;return Object.defineProperty(t,"element",{get:function(){return this._elProvider.element},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cachedInnerHTML",{get:function(){return this._cachedInnerHTML},enumerable:!1,configurable:!0}),Object.defineProperty(t,"elementIndex",{get:function(){var e=this._flicking,n=e.panelsPerView+1,i=e.panelCount,a=this._index;return this._toggled&&(a=this._toggleDirection===F.NEXT?a+i:a-i),Ki(a,n)},enumerable:!1,configurable:!0}),t.cacheRenderResult=function(e){this._cachedInnerHTML=e},t.uncacheRenderResult=function(){this._cachedInnerHTML=null},t.render=function(){var e=this._flicking,n=e.virtual,i=n.renderPanel,a=n.cache,s=this._elProvider.element,c=this._cachedInnerHTML||i(this,this._index);c!==s.innerHTML&&(s.innerHTML=c,a&&this.cacheRenderResult(c))},t.increaseIndex=function(e){return this.uncacheRenderResult(),r.prototype.increaseIndex.call(this,e)},t.decreaseIndex=function(e){return this.uncacheRenderResult(),r.prototype.decreaseIndex.call(this,e)},o}(bn),Qi=function(){function r(){}var o=r.prototype;return o.renderPanels=function(t){var e=t.virtual,n=t.visiblePanels,i=ot(t.panelsPerView+1);n.forEach(function(a){var s=a.elementIndex;a.render(),e.show(s),i[s]=-1}),i.filter(function(a){return a>=0}).forEach(function(a){e.hide(a)})},o.getRenderingIndexesByOrder=function(t){var e=t.virtual,n=J(t.visiblePanels).filter(function(s){return s.rendered}).sort(function(s,c){return s.position+s.offset-(c.position+c.offset)});if(n.length<=0)return e.elements.map(function(s,c){return c});var i=n.map(function(s){return s.elementIndex}),a=e.elements.map(function(s,c){return ne(ne({},s),{idx:c})}).filter(function(s){return!s.visible}).map(function(s){return s.idx});return J(i,a)},o.getRenderingElementsByOrder=function(t){var e=t.virtual,n=e.elements;return this.getRenderingIndexesByOrder(t).map(function(i){return n[i].nativeElement})},o.updateRenderingPanels=function(t){var e=t.renderer.panels,n=t.camera,i=n.visiblePanels.reduce(function(a,s){return a[s.index]=!0,a},{});e.forEach(function(a){a.index in i||a.loading?a.markForShow():a.markForHide()}),n.updateOffset()},o.collectPanels=function(t){var e=Tt(t.renderer.align);return ot(t.virtual.initialPanelCount).map(function(n){return new Hr({index:n,elementProvider:new Vr(t),align:e,flicking:t})})},o.createPanel=function(t,e){return new Hr(ne(ne({},e),{elementProvider:new Vr(e.flicking)}))},o.updatePanelSizes=function(t,e){t.virtual.elements.forEach(function(n){Xi(n.nativeElement,e)}),t.panels.forEach(function(n){return n.setSize(e)})},r}(),qi=function(r){te(o,r);function o(e,n){var i=n===void 0?{}:n,a=i.align,s=a===void 0?ue.CENTER:a,c=i.defaultIndex,u=c===void 0?0:c,f=i.horizontal,h=f===void 0?!0:f,v=i.circular,d=v===void 0?!1:v,p=i.circularFallback,g=p===void 0?Gi.LINEAR:p,m=i.bound,_=m===void 0?!1:m,y=i.adaptive,b=y===void 0?!1:y,E=i.panelsPerView,x=E===void 0?-1:E,C=i.noPanelStyleOverride,I=C===void 0?!1:C,O=i.resizeOnContentsReady,k=O===void 0?!1:O,T=i.nested,D=T===void 0?!1:T,A=i.needPanelThreshold,$=A===void 0?0:A,z=i.preventEventsBeforeInit,H=z===void 0?!0:z,w=i.deceleration,P=w===void 0?.0075:w,S=i.duration,X=S===void 0?500:S,M=i.easing,L=M===void 0?function(To){return 1-Math.pow(1-To,3)}:M,ie=i.inputType,Ce=ie===void 0?["mouse","touch"]:ie,ct=i.moveType,so=ct===void 0?"snap":ct,Un=i.threshold,lo=Un===void 0?40:Un,Yn=i.interruptable,co=Yn===void 0?!0:Yn,Xn=i.bounce,uo=Xn===void 0?"20%":Xn,Kn=i.iOSEdgeSwipeThreshold,fo=Kn===void 0?30:Kn,Zn=i.preventClickOnDrag,ho=Zn===void 0?!0:Zn,Jn=i.preventDefaultOnDrag,vo=Jn===void 0?!1:Jn,Qn=i.disableOnInit,po=Qn===void 0?!1:Qn,qn=i.changeOnHold,go=qn===void 0?!1:qn,er=i.renderOnlyVisible,mo=er===void 0?!1:er,tr=i.virtual,nr=tr===void 0?null:tr,rr=i.autoInit,_o=rr===void 0?!0:rr,ir=i.autoResize,yo=ir===void 0?!0:ir,or=i.useResizeObserver,bo=or===void 0?!0:or,ar=i.resizeDebounce,Eo=ar===void 0?0:ar,sr=i.maxResizeDebounce,Po=sr===void 0?100:sr,lr=i.useFractionalSize,xo=lr===void 0?!1:lr,cr=i.externalRenderer,Oo=cr===void 0?null:cr,ur=i.renderExternal,wo=ur===void 0?null:ur,R=r.call(this)||this;return R._initialized=!1,R._plugins=[],R._align=s,R._defaultIndex=u,R._horizontal=h,R._circular=d,R._circularFallback=g,R._bound=_,R._adaptive=b,R._panelsPerView=x,R._noPanelStyleOverride=I,R._resizeOnContentsReady=k,R._nested=D,R._virtual=nr,R._needPanelThreshold=$,R._preventEventsBeforeInit=H,R._deceleration=P,R._duration=X,R._easing=L,R._inputType=Ce,R._moveType=so,R._threshold=lo,R._interruptable=co,R._bounce=uo,R._iOSEdgeSwipeThreshold=fo,R._preventClickOnDrag=ho,R._preventDefaultOnDrag=vo,R._disableOnInit=po,R._changeOnHold=go,R._renderOnlyVisible=mo,R._autoInit=_o,R._autoResize=yo,R._useResizeObserver=bo,R._resizeDebounce=Eo,R._maxResizeDebounce=Po,R._useFractionalSize=xo,R._externalRenderer=Oo,R._renderExternal=wo,R._viewport=new Pl(R,gl(e)),R._autoResizer=new xl(R),R._renderer=R._createRenderer(),R._camera=R._createCamera(),R._control=R._createControl(),R._virtualManager=new wl(R,nr),R._autoInit&&R.init(),R}var t=o.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 n=this._control.controller.axes;n&&(n.options.nested=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"needPanelThreshold",{get:function(){return this._needPanelThreshold},set:function(e){this._needPanelThreshold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventEventsBeforeInit",{get:function(){return this._preventEventsBeforeInit},set:function(e){this._preventEventsBeforeInit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"deceleration",{get:function(){return this._deceleration},set:function(e){this._deceleration=e;var n=this._control.controller.axes;n&&(n.options.deceleration=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"easing",{get:function(){return this._easing},set:function(e){this._easing=e;var n=this._control.controller.axes;n&&(n.options.easing=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"duration",{get:function(){return this._duration},set:function(e){this._duration=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"inputType",{get:function(){return this._inputType},set:function(e){this._inputType=e;var n=this._control.controller.panInput;n&&(n.options.inputType=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"moveType",{get:function(){return this._moveType},set:function(e){this._moveType=e;var n=this._control,i=this._createControl(),a=n.activePanel;i.copy(n);var s=a?this._camera.getProgressInPanel(a):0;this._control=i,this._control.updatePosition(s),this._control.updateInput()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"threshold",{get:function(){return this._threshold},set:function(e){this._threshold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"interruptable",{get:function(){return this._interruptable},set:function(e){this._interruptable=e;var n=this._control.controller.axes;n&&(n.options.interruptable=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"bounce",{get:function(){return this._bounce},set:function(e){this._bounce=e,this._control.updateInput()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"iOSEdgeSwipeThreshold",{get:function(){return this._iOSEdgeSwipeThreshold},set:function(e){this._iOSEdgeSwipeThreshold=e;var n=this._control.controller.panInput;n&&(n.options.iOSEdgeSwipeThreshold=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventClickOnDrag",{get:function(){return this._preventClickOnDrag},set:function(e){var n=this._preventClickOnDrag;if(e!==n){var i=this._control.controller;e?i.addPreventClickHandler():i.removePreventClickHandler(),this._preventClickOnDrag=e}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"preventDefaultOnDrag",{get:function(){return this._preventDefaultOnDrag},set:function(e){this._preventDefaultOnDrag=e;var n=this._control.controller.panInput;n&&(n.options.preventDefaultOnDrag=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"disableOnInit",{get:function(){return this._disableOnInit},set:function(e){this._disableOnInit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"changeOnHold",{get:function(){return this._changeOnHold},set:function(e){this._changeOnHold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"renderOnlyVisible",{get:function(){return this._renderOnlyVisible},set:function(e){this._renderOnlyVisible=e,this._renderer.render()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"virtual",{get:function(){return this._virtualManager},enumerable:!1,configurable:!0}),Object.defineProperty(t,"autoInit",{get:function(){return this._autoInit},enumerable:!1,configurable:!0}),Object.defineProperty(t,"autoResize",{get:function(){return this._autoResize},set:function(e){this._autoResize=e,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 n=this._camera,i=this._renderer,a=this._control,s=this._virtualManager,c=this.trigger,u=this._preventEventsBeforeInit;return n.init(),s.init(),i.init(this),a.init(this),u&&(this.trigger=function(){return e}),this._initialResize(),this._moveToInitialPanel(),this._autoResize&&this._autoResizer.enable(),this._preventClickOnDrag&&a.controller.addPreventClickHandler(),this._disableOnInit&&this.disableInput(),i.checkPanelContentsReady(i.panels),this._initialized=!0,i.render().then(function(){e._plugins.forEach(function(f){return f.init(e)}),u&&(e.trigger=c),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 n,i,a;return e===void 0&&(e=this._duration),this.moveTo((a=(i=(n=this._control.activePanel)===null||n===void 0?void 0:n.prev())===null||i===void 0?void 0:i.index)!==null&&a!==void 0?a:-1,e,F.PREV)},t.next=function(e){var n,i,a;return e===void 0&&(e=this._duration),this.moveTo((a=(i=(n=this._control.activePanel)===null||n===void 0?void 0:n.next())===null||i===void 0?void 0:i.index)!==null&&a!==void 0?a:this._renderer.panelCount,e,F.NEXT)},t.moveTo=function(e,n,i){n===void 0&&(n=this._duration),i===void 0&&(i=F.NONE);var a=this._renderer,s=a.panelCount,c=a.getPanel(e);return c?this._control.animating?Promise.reject(new G(U.ANIMATION_ALREADY_PLAYING,W.ANIMATION_ALREADY_PLAYING)):(this._control.holding&&this._control.controller.release(),this._control.moveToPanel(c,{duration:n,direction:i})):Promise.reject(new G(U.INDEX_OUT_OF_RANGE(e,0,s-1),W.INDEX_OUT_OF_RANGE))},t.updateAnimation=function(e,n,i){if(this._control.animating){var a=this._renderer,s=a.panelCount,c=a.getPanel(e);if(!c)throw new G(U.INDEX_OUT_OF_RANGE(e,0,s-1),W.INDEX_OUT_OF_RANGE);this._control.updateAnimation(c,n,i)}},t.stopAnimation=function(){this._control.animating&&this._control.stopAnimation()},t.getPanel=function(e){return this._renderer.getPanel(e)},t.enableInput=function(){return this._control.enable(),this},t.disableInput=function(){return this._control.disable(),this},t.getStatus=function(e){var n,i,a=e===void 0?{}:e,s=a.index,c=s===void 0?!0:s,u=a.position,f=u===void 0?!0:u,h=a.includePanelHTML,v=h===void 0?!1:h,d=a.visiblePanelsOnly,p=d===void 0?!1:d,g=this._camera,m=p?this.visiblePanels:this.panels,_={panels:m.map(function(E){var x={index:E.index};return v&&(x.html=E.element.outerHTML),x})};if(c&&(_.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=(i=(n=b[0])===null||n===void 0?void 0:n.index)!==null&&i!==void 0?i:0}return _},t.setStatus=function(e){var n;if(!this._initialized)throw new G(U.NOT_INITIALIZED,W.NOT_INITIALIZED);var i=e.index,a=e.position,s=e.visibleOffset,c=e.panels,u=this._renderer,f=this._control;if(!((n=c[0])===null||n===void 0)&&n.html&&!this._renderExternal&&(u.batchRemove({index:0,deleteCount:this.panels.length,hasDOMInElements:!0}),u.batchInsert({index:0,elements:Lr(c.map(function(m){return m.html})),hasDOMInElements:!0})),i!=null){var h=s?i-s:i;this.moveTo(h,0).catch(function(){})}if(a&&this._moveType===ke.FREE_SCROLL){var v=a.panel,d=a.progressInPanel,h=s?v-s:v,p=u.panels[h].range,g=p.min+(p.max-p.min)*d;f.moveToPosition(g,0).catch(function(){})}},t.addPlugins=function(){for(var e,n=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return this._initialized&&i.forEach(function(s){return s.init(n)}),(e=this._plugins).push.apply(e,J(i)),this},t.removePlugins=function(){for(var e=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return n.forEach(function(a){var s=bl(e._plugins,function(c){return c===a});s>=0&&(a.destroy(),e._plugins.splice(s,1))}),this},t.resize=function(){return De(this,void 0,void 0,function(){var e,n,i,a,s,c,u,f,h,v,d;return Me(this,function(p){switch(p.label){case 0:return e=this._viewport,n=this._renderer,i=this._camera,a=this._control,s=a.activePanel,c=e.width,u=e.height,f=s?i.getProgressInPanel(s):0,this.trigger(new V(B.BEFORE_RESIZE,{width:c,height:u,element:e.element})),e.resize(),[4,n.forceRenderAllPanels()];case 1:return p.sent(),n.updatePanelSize(),i.updateAlignPos(),i.updateRange(),i.updateAnchors(),i.updateAdaptiveHeight(),i.updatePanelOrder(),i.updateOffset(),[4,n.render()];case 2:return p.sent(),a.animating||(a.updatePosition(f),a.updateInput()),h=e.width,v=e.height,d=h!==c||v!==u,this.trigger(new V(B.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:c,height:u},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,n){if(this._renderExternal)throw new G(U.NOT_ALLOWED_IN_FRAMEWORK,W.NOT_ALLOWED_IN_FRAMEWORK);return this._renderer.batchInsert({index:e,elements:Lr(n),hasDOMInElements:!0})},t.remove=function(e,n){if(n===void 0&&(n=1),this._renderExternal)throw new G(U.NOT_ALLOWED_IN_FRAMEWORK,W.NOT_ALLOWED_IN_FRAMEWORK);return this._renderer.batchRemove({index:e,deleteCount:n,hasDOMInElements:!0})},t._createControl=function(){var e,n=this._moveType,i=Object.keys(ke).map(function(c){return ke[c]}),a=Array.isArray(n)?n[0]:n,s=Array.isArray(n)?(e=n[1])!==null&&e!==void 0?e:{}:{};if(!Ct(i,a))throw new G(U.WRONG_OPTION("moveType",JSON.stringify(n)),W.WRONG_OPTION);switch(a){case ke.SNAP:return new Nl(s);case ke.FREE_SCROLL:return new Al(s);case ke.STRICT:return new Dl(s)}},t._createCamera=function(){return this._circular&&this._bound&&console.warn('"circular" and "bound" option cannot be used together, ignoring bound.'),new zl(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,n=e.renderer,i=e.rendererOptions;return new n(ne({align:this._align},i))},t._createVanillaRenderer=function(){var e=this.virtualEnabled;return new Bl({align:this._align,strategy:e?new Qi:new Ji({providerCtor:Ol})})},t._moveToInitialPanel=function(){var e=this._renderer,n=this._control,i=this._camera,a=e.getPanel(this._defaultIndex)||e.getPanel(0);if(a){var s=i.findNearestAnchor(a.position),c=s&&a.index!==s.panel.index?s.panel:a;if(n.setActive(c,null,!1),!s)throw new G(U.POSITION_NOT_REACHABLE(c.position),W.POSITION_NOT_REACHABLE);var u=c.position;i.canReach(c)||(u=s.position),i.lookAt(u),n.updateInput(),i.updateOffset()}},t._initialResize=function(){var e=this._viewport,n=this._renderer,i=this._camera,a=this._control;this.trigger(new V(B.BEFORE_RESIZE,{width:0,height:0,element:e.element})),e.resize(),n.updatePanelSize(),i.updateAlignPos(),i.updateRange(),i.updateAnchors(),i.updateOffset(),a.updateInput();var s=e.width,c=e.height,u=s!==0||c!==0;this.trigger(new V(B.AFTER_RESIZE,{width:e.width,height:e.height,prev:{width:0,height:0},sizeChanged:u,element:e.element}))},o.VERSION="4.11.1",o}(Se),Vl=function(r,o){[Se.prototype,qi.prototype].forEach(function(t){Object.getOwnPropertyNames(t).filter(function(e){return!r[e]&&e.indexOf("_")!==0&&e!=="constructor"}).forEach(function(e){var n=Object.getOwnPropertyDescriptor(t,e);if(n.value)Object.defineProperty(r,e,{value:function(){for(var a,s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return(a=n.value).call.apply(a,J([this[o]],s))}});else{var i={};n.get&&(i.get=function(){var a,s=this[o];return s&&((a=n.get)===null||a===void 0?void 0:a.call(s))}),n.set&&(i.set=function(){for(var a,s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return(a=n.set)===null||a===void 0?void 0:a.call.apply(a,J([this[o]],s))}),Object.defineProperty(r,e,i)}})})},jl=function(r,o,t){var e=r.renderer,n=e.panels,i=J(o.prevList),a=[],s=[];if(o.removed.length>0){var c=-1,u=-1;o.removed.forEach(function(d){c<0&&(c=d),u>=0&&d!==u-1&&(s.push.apply(s,J(Gr(e,u,c+1))),c=d),u=d,i.splice(d,1)}),s.push.apply(s,J(Gr(e,u,c+1)))}if(o.ordered.forEach(function(d){var p=Ln(d,2),g=p[0],m=p[1],_=n.splice(g,1)[0];n.splice(m,0,_)}),o.ordered.length>0&&(n.forEach(function(d,p){var g=p-d.index;g>0?d.increaseIndex(g):d.decreaseIndex(-g)}),n.sort(function(d,p){return d.index-p.index}),n.forEach(function(d){d.updatePosition()})),o.added.length>0){var f=-1,h=-1,v=t.slice(i.length);o.added.forEach(function(d,p){f<0&&(f=p),h>=0&&d!==h+1?(a.push.apply(a,J(Wr(e,o,v,f,p+1))),f=-1,h=-1):h=d}),f>=0&&a.push.apply(a,J(Wr(e,o,v,f)))}(o.added.length>0||o.removed.length>0)&&e.updateAfterPanelChange(a,s)},Wr=function(r,o,t,e,n){return r.batchInsertDefer.apply(r,J(o.added.slice(e,n).map(function(i,a){return{index:i,elements:[t[a]],hasDOMInElements:!1}})))},Gr=function(r,o,t){var e=r.panels.slice(o,t);return r.batchRemoveDefer({index:o,deleteCount:e.length,hasDOMInElements:!1})},Fl=function(r,o){var t=o.removed.reduce(function(n,i){return n[i]=!0,n},{}),e=o.maintained.reduce(function(n,i){var a=Ln(i,2),s=a[0],c=a[1];return n[s]=c,n},{});return J(r.panels.filter(function(n){return!t[n.index]}).sort(function(n,i){return n.position+n.offset-(i.position+i.offset)}).map(function(n){return o.list[e[n.index]]}),o.added.map(function(n){return o.list[n]}))},$l=function(r,o,t){r===void 0&&(r=ue.CENTER),o===void 0&&(o=!0);var e=Hl(r),n=Wl(r);if(n==null)return"";var i="calc("+e+" - ("+(t||"0px")+" * "+n.percentage+") - "+n.absolute+"px)";return o?"translate("+i+")":"translate(0, "+i+")"},Hl=function(r){var o=typeof r=="object"?r.camera:r;return eo(o)},Wl=function(r){var o=typeof r=="object"?r.panel:r;return Ui(eo(o))},eo=function(r){if(typeof r=="number")return r+"px";switch(r){case ue.CENTER:return"50%";case ue.NEXT:return"100%";case ue.PREV:return"0%";default:return r}};/*! *****************************************************************************
|
|
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 En=function(r,o){return En=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},En(r,o)};function Gl(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");En(r,o);function t(){this.constructor=r}r.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}var It=function(){return It=Object.assign||function(o){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(o[i]=t[i])}return o},It.apply(this,arguments)};function Ul(r,o){var t={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&o.indexOf(e)<0&&(t[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,e=Object.getOwnPropertySymbols(r);n<e.length;n++)o.indexOf(e[n])<0&&Object.prototype.propertyIsEnumerable.call(r,e[n])&&(t[e[n]]=r[e[n]]);return t}function Ur(r,o,t,e){function n(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(f){try{u(e.next(f))}catch(h){a(h)}}function c(f){try{u(e.throw(f))}catch(h){a(h)}}function u(f){f.done?i(f.value):n(f.value).then(s,c)}u((e=e.apply(r,o||[])).next())})}function Yr(r,o){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,n,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(f){return c([u,f])}}function c(u){if(e)throw new TypeError("Generator is already executing.");for(;t;)try{if(e=1,n&&(i=u[0]&2?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){t.label=u[1];break}if(u[0]===6&&t.label<i[1]){t.label=i[1],i=u;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(u);break}i[2]&&t.ops.pop(),t.trys.pop();continue}u=o.call(r,t)}catch(f){u=[6,f],n=0}finally{e=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Jt(r,o,t){if(t||arguments.length===2)for(var e=0,n=o.length,i;e<n;e++)(i||!(e in o))&&(i||(i=Array.prototype.slice.call(o,0,e)),i[e]=o[e]);return r.concat(i||Array.prototype.slice.call(o))}var Yl={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}},Xl=function(r){Gl(o,r);function o(e){var n=r.call(this,e)||this;return n._vueFlicking=e.vueFlicking,n}var t=o.prototype;return t.render=function(){return Ur(this,void 0,void 0,function(){var e,n,i,a=this;return Yr(this,function(s){return e=N(this._flicking),n=this._vueFlicking,i=this._strategy,i.updateRenderingPanels(e),i.renderPanels(e),[2,new Promise(function(c){n.renderEmitter.once("render",function(){a._afterRender(),c()}),n.$forceUpdate()})]})})},t.forceRenderAllPanels=function(){return Ur(this,void 0,void 0,function(){var e;return Yr(this,function(n){switch(n.label){case 0:return e=this._vueFlicking,[4,r.prototype.forceRenderAllPanels.call(this)];case 1:return n.sent(),[2,new Promise(function(i){e.renderEmitter.once("render",i),e.$forceUpdate()})]}})})},t._collectPanels=function(){var e=N(this._flicking),n=this._vueFlicking,i=n.$refs,a=Object.keys(i).map(function(s){return i[s]});this._panels=this._strategy.collectPanels(e,a)},t._createPanel=function(e,n){return this._strategy.createPanel(e,n)},o}(Ll),Kl=l.defineComponent({data:function(){return{hide:!1}},render:function(){if(!(this.hide||!this.$slots.default))return this.$slots.default()}}),Zl=function(){function r(t){this._el=t}var o=r.prototype;return Object.defineProperty(o,"rendered",{get:function(){return!this._el.hide},enumerable:!1,configurable:!0}),Object.defineProperty(o,"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}),o.show=function(){this._el.hide=!1},o.hide=function(){this._el.hide=!0},r}(),Pn=l.defineComponent({props:Yl,components:{Panel:Kl},data:function(){return{}},created:function(){var r=this;this.vanillaFlicking=null,this.renderEmitter=new Se,this.diffResult=null,this.getPanels=function(){var o=l.getCurrentInstance(),t=o?.ctx,e=r.vanillaFlicking,n=r.getSlots(),i=t?.diffResult,a=i?Fl(e,i):n,s=l.resolveComponent("Panel"),c=a.map(function(u,f){return l.h(s,{key:u.key,ref:f.toString()},function(){return u})});return c},this.getVirtualPanels=function(){var o=r.options,t=o.virtual.panelClass,e=t===void 0?"flicking-panel":t,n=o.panelsPerView,i=r.vanillaFlicking,a=i&&i.initialized,s=a?i.renderer.strategy.getRenderingIndexesByOrder(i):ot(n+1),c=a&&i.panels[0],u=c?i.horizontal?{width:c.size}:{height:c.size}:{};return s.map(function(f){return l.h("div",{key:f,ref:f.toString(),class:e,style:u,"data-element-index":f})})},Vl(this,"vanillaFlicking")},mounted:function(){var r=this,o,t=this.options,e=this.$el,n={vueFlicking:this,align:t.align,strategy:t.virtual&&((o=t.panelsPerView)!==null&&o!==void 0?o:-1)>0?new Qi:new Ji({providerCtor:Zl})},i=new qi(e,It(It({},t),{externalRenderer:new Xl(n)}));this.vanillaFlicking=i,i.once(B.READY,function(){r.$forceUpdate()});var a=this.getSlots();this.slotDiffer=new Ir(a,function(s){return s.key}),this.pluginsDiffer=new Ir,this.bindEvents(),this.checkPlugins(),this.status&&i.setStatus(this.status)},beforeUnmount:function(){var r;(r=this.vanillaFlicking)===null||r===void 0||r.destroy()},beforeMount:function(){this.fillKeys()},beforeUpdate:function(){this.fillKeys(),this.diffResult=this.slotDiffer.update(this.getSlots())},updated:function(){var r=this.vanillaFlicking,o=this.diffResult;if(this.checkPlugins(),this.renderEmitter.trigger("render"),!(!o||!r?.initialized)){var t=this.getChildren();jl(r,o,t),(o.added.length>0||o.removed.length>0)&&this.$forceUpdate(),this.diffResult=void 0}},render:function(){var r,o,t=this.vanillaFlicking,e=this.options,n=t&&t.initialized,i=t?t.horizontal:(o=this.options.horizontal)!==null&&o!==void 0?o:!0,a={class:{"flicking-viewport":!0,vertical:!i,"flicking-hidden":this.hideBeforeInit&&!n}},s={class:(r={"flicking-camera":!0},r[this.cameraClass]=!!this.cameraClass,r),style:!n&&this.firstPanelSize?{transform:$l(this.options.align,this.options.horizontal,this.firstPanelSize)}:{}},c=e.virtual&&e.panelsPerView&&e.panelsPerView>0?this.getVirtualPanels:this.getPanels,u=this.$slots.viewport?this.$slots.viewport():[];return l.h(this.viewportTag,a,Jt([l.h(this.cameraTag,s,{default:c})],u,!0))},methods:{getSlots:function(){var r=this,o=this.$slots.default?this.$slots.default():[];return o.reduce(function(t,e){return Jt(Jt([],t,!0),r.getElementVNodes(e),!0)},[]).filter(function(t){return t.type!==l.Comment&&t.type!==l.Text})},getElementVNodes:function(r,o){var t=this;return o===void 0&&(o=[]),r.type===l.Fragment&&Array.isArray(r.children)?r.children.filter(function(e){return e&&typeof e=="object"}).forEach(function(e){return t.getElementVNodes(e,o)}):o.push(r),o},bindEvents:function(){var r=this,o=this.vanillaFlicking,t=Object.keys(B).map(function(e){return B[e]});t.forEach(function(e){o.on(e,function(n){n.currentTarget=r,r.$emit(e.replace(/([A-Z])/g,"-$1").toLowerCase(),n)})})},checkPlugins:function(){var r,o,t=this.pluginsDiffer.update(this.plugins),e=t.list,n=t.added,i=t.removed,a=t.prevList;(r=this.vanillaFlicking).addPlugins.apply(r,n.map(function(s){return e[s]})),(o=this.vanillaFlicking).removePlugins.apply(o,i.map(function(s){return a[s]}))},fillKeys:function(){var r=this.getSlots();r.forEach(function(o,t){o.key==null&&(o.key="$_".concat(t))})},getChildren:function(){var r=this.$refs;return Object.keys(r).map(function(o){return r[o]})}},watch:{options:{handler:function(r){var o=this.vanillaFlicking;if(o){r.virtual;var t=Ul(r,["virtual"]);for(var e in t)e in o&&o[e]!==t[e]&&(o[e]=t[e])}},deep:!0,immediate:!0}}}),He={TYPE:{CAMERA:"camera",INDEX:"index"}},Jl=function(r,o){if(r)if(r.classList)r.classList.add(o);else{var t=r.className.split(" ");t.indexOf(o)<0&&(r.className=r.className+" "+o)}},Ql=function(r,o){if(r)if(r.classList)r.classList.remove(o);else{var t=new RegExp("( |^)"+o+"( |$)","g");r.className.replace(t," ")}},to=function(){function r(t){var e=this,n=t===void 0?{}:t,i=n.type,a=i===void 0?He.TYPE.CAMERA:i,s=n.synchronizedFlickingOptions,c=s===void 0?[]:s;this._flicking=null,this._addEvents=function(){var u=e._type,f=e._synchronizedFlickingOptions;f.forEach(function(h){var v=h.flicking,d=h.isSlidable,p=h.isClickable;u===He.TYPE.CAMERA&&(v.on(B.MOVE,e._onMove),v.on(B.MOVE_START,e._onMoveStart),v.on(B.MOVE_END,e._onMoveEnd)),u===He.TYPE.INDEX&&d&&(v.on(B.WILL_CHANGE,e._onIndexChange),v.on(B.WILL_RESTORE,e._onIndexChange)),p&&v.on(B.SELECT,e._onSelect)})},this._removeEvents=function(){var u=e._type,f=e._synchronizedFlickingOptions;f.forEach(function(h){var v=h.flicking,d=h.isSlidable,p=h.isClickable;u===He.TYPE.CAMERA&&(v.off(B.MOVE,e._onMove),v.off(B.MOVE_START,e._onMoveStart),v.off(B.MOVE_END,e._onMoveEnd)),u===He.TYPE.INDEX&&d&&(v.off(B.WILL_CHANGE,e._onIndexChange),v.off(B.WILL_RESTORE,e._onIndexChange)),p&&v.off(B.SELECT,e._onSelect)})},this._onIndexChange=function(u){var f=u.currentTarget;f.initialized&&e._synchronizeByIndex(f,u.index)},this._onMove=function(u){var f=u.currentTarget.camera,h=(f.position-f.range.min)/f.rangeDiff;e._synchronizedFlickingOptions.forEach(function(v){var d=v.flicking;if(d!==u.currentTarget){var p=0;f.position<f.range.min?p=f.position:f.position>f.range.max?p=d.camera.range.max+f.position-f.range.max:p=d.camera.range.min+d.camera.rangeDiff*h,d.camera.lookAt(p)}})},this._onMoveStart=function(u){e._synchronizedFlickingOptions.forEach(function(f){var h=f.flicking;h!==u.currentTarget&&h.disableInput()})},this._onMoveEnd=function(u){e._synchronizedFlickingOptions.forEach(function(f){var h=f.flicking;h!==u.currentTarget&&(h.enableInput(),h.control.updateInput())})},this._onSelect=function(u){u.currentTarget.moveTo(u.index).catch(function(){}),e._synchronizeByIndex(u.currentTarget,u.index)},this._synchronizeByIndex=function(u,f){var h=e._synchronizedFlickingOptions;e._preventEvent(function(){h.forEach(function(v){e._updateClass(v,f);var d=v.flicking;if(d!==u){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(u,f){var h=u.flicking,v=u.activeClass;v&&h.panels.forEach(function(d){d.index===f?Jl(d.element,v):Ql(d.element,v)})},this._type=a,this._synchronizedFlickingOptions=c}var o=r.prototype;return Object.defineProperty(o,"type",{get:function(){return this._type},set:function(t){this._type=t},enumerable:!1,configurable:!0}),Object.defineProperty(o,"synchronizedFlickingOptions",{get:function(){return this._synchronizedFlickingOptions},set:function(t){this._synchronizedFlickingOptions=t},enumerable:!1,configurable:!0}),o.init=function(t){var e=this,n=this._synchronizedFlickingOptions;this._flicking&&this.destroy(),this._flicking=t,this._addEvents(),n.forEach(function(i){var a=i.flicking;e._updateClass(i,a.defaultIndex)})},o.destroy=function(){var t=this._flicking;t&&(this._removeEvents(),this._flicking=null)},o.update=function(){var t=this;this._synchronizedFlickingOptions.forEach(function(e){t._updateClass(e,e.flicking.index)})},o._preventEvent=function(t){this._removeEvents(),t(),this._addEvents()},r}(),Qt=null;function ql(r){return Qt||(Qt=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(o){return setTimeout(o,16)}).bind(window)),Qt(r)}var qt=null;function ec(r){qt||(qt=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(o){clearTimeout(o)}).bind(window)),qt(r)}function tc(r){var o=document.createElement("style");return o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),(document.querySelector("head")||document.body).appendChild(o),o}function ht(r,o){o===void 0&&(o={});var t=document.createElement(r);return Object.keys(o).forEach(function(e){t[e]=o[e]}),t}function no(r,o,t){var e=window.getComputedStyle(r,t||null)||{display:"none"};return e[o]}function xn(r){if(!document.documentElement.contains(r))return{detached:!0,rendered:!1};for(var o=r;o!==document;){if(no(o,"display")==="none")return{detached:!1,rendered:!1};o=o.parentNode}return{detached:!1,rendered:!0}}var nc='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',On=0,yt=null;function rc(r,o){r.__resize_mutation_handler__||(r.__resize_mutation_handler__=ac.bind(r));var t=r.__resize_listeners__;if(!t){if(r.__resize_listeners__=[],window.ResizeObserver){var e=r.offsetWidth,n=r.offsetHeight,i=new ResizeObserver(function(){!r.__resize_observer_triggered__&&(r.__resize_observer_triggered__=!0,r.offsetWidth===e&&r.offsetHeight===n)||Nt(r)}),a=xn(r),s=a.detached,c=a.rendered;r.__resize_observer_triggered__=s===!1&&c===!1,r.__resize_observer__=i,i.observe(r)}else if(r.attachEvent&&r.addEventListener)r.__resize_legacy_resize_handler__=function(){Nt(r)},r.attachEvent("onresize",r.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",r.__resize_mutation_handler__);else if(On||(yt=tc(nc)),sc(r),r.__resize_rendered__=xn(r).rendered,window.MutationObserver){var u=new MutationObserver(r.__resize_mutation_handler__);u.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),r.__resize_mutation_observer__=u}}r.__resize_listeners__.push(o),On++}function ic(r,o){var t=r.__resize_listeners__;if(t){if(o&&t.splice(t.indexOf(o),1),!t.length||!o){if(r.detachEvent&&r.removeEventListener){r.detachEvent("onresize",r.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",r.__resize_mutation_handler__);return}r.__resize_observer__?(r.__resize_observer__.unobserve(r),r.__resize_observer__.disconnect(),r.__resize_observer__=null):(r.__resize_mutation_observer__&&(r.__resize_mutation_observer__.disconnect(),r.__resize_mutation_observer__=null),r.removeEventListener("scroll",Hn),r.removeChild(r.__resize_triggers__.triggers),r.__resize_triggers__=null),r.__resize_listeners__=null}!--On&&yt&&yt.parentNode.removeChild(yt)}}function oc(r){var o=r.__resize_last__,t=o.width,e=o.height,n=r.offsetWidth,i=r.offsetHeight;return n!==t||i!==e?{width:n,height:i}:null}function ac(){var r=xn(this),o=r.rendered,t=r.detached;o!==this.__resize_rendered__&&(!t&&this.__resize_triggers__&&(Wn(this),this.addEventListener("scroll",Hn,!0)),this.__resize_rendered__=o,Nt(this))}function Hn(){var r=this;Wn(this),this.__resize_raf__&&ec(this.__resize_raf__),this.__resize_raf__=ql(function(){var o=oc(r);o&&(r.__resize_last__=o,Nt(r))})}function Nt(r){!r||!r.__resize_listeners__||r.__resize_listeners__.forEach(function(o){o.call(r,r)})}function sc(r){var o=no(r,"position");(!o||o==="static")&&(r.style.position="relative"),r.__resize_old_position__=o,r.__resize_last__={};var t=ht("div",{className:"resize-triggers"}),e=ht("div",{className:"resize-expand-trigger"}),n=ht("div"),i=ht("div",{className:"resize-contract-trigger"});e.appendChild(n),t.appendChild(e),t.appendChild(i),r.appendChild(t),r.__resize_triggers__={triggers:t,expand:e,expandChild:n,contract:i},Wn(r),r.addEventListener("scroll",Hn,!0),r.__resize_last__={width:r.offsetWidth,height:r.offsetHeight}}function Wn(r){var o=r.__resize_triggers__,t=o.expand,e=o.expandChild,n=o.contract,i=n.scrollWidth,a=n.scrollHeight,s=t.offsetWidth,c=t.offsetHeight,u=t.scrollWidth,f=t.scrollHeight;n.scrollLeft=i,n.scrollTop=a,e.style.width=s+1+"px",e.style.height=c+1+"px",t.scrollLeft=u,t.scrollTop=f}const lc=["aria-label"];var ro=l.defineComponent({__name:"text-clamp",props:{text:{type:String,required:!0},maxHeight:{type:[String,Number],required:!1},maxLines:{type:Number,required:!1},expanded:{type:Boolean,required:!1,default:!1},location:{type:String,required:!1,default:"end"},ellipsis:{type:String,required:!1,default:"…"},autoResize:{type:Boolean,required:!1,default:!1}},emits:["clamp-change","update:expanded"],setup(r,{emit:o}){const t=r,e=l.ref(null),n=l.ref(null),i=l.ref(null),a=l.reactive({offset:0,localExpanded:!!t.expanded,unregisterResizeCallback:null}),s=l.computed(()=>{if(!a.localExpanded&&t.maxHeight)return typeof t?.maxHeight=="number"?`${t?.maxHeight}px`:t?.maxHeight}),c=()=>{i.value&&(i.value.textContent=x.value)},u=()=>{a.localExpanded||(c(),(v()||E.value)&&p())},f=()=>{t.text&&(a.offset=t.text.length,h(),t.autoResize&&e.value&&(rc(e.value,u),a.unregisterResizeCallback=()=>{e.value&&ic(e.value,u)}),u())},h=()=>{a.unregisterResizeCallback?.()},v=()=>!(!t.maxLines&&!t.maxHeight)&&!!e.value&&(!!(t.maxLines&&d()>t.maxLines)||!!(t.maxHeight&&e.value.scrollHeight>e.value.offsetHeight)),d=()=>n.value?Object.keys(Array.prototype.slice.call(n.value.getClientRects()).reduce((T,{top:D,bottom:A})=>{const $=`${D}/${A}`;return T[$]||(T[$]=!0),T},{})).length:0,p=(...T)=>{const[D=0,A=a.offset]=T;if(A-D<=3)return void m();const $=Math.floor((A+D)/2);g($),v()?p(D,$):p($,A)},g=T=>{a.offset=T,c()},m=()=>{_(),y()},_=()=>{for(;(!v()||d()<2)&&a.offset<t.text.length;)b(1)},y=()=>{for(;v()&&d()>1&&a.offset>0;)b(-1)},b=T=>{g(a.offset+T)},E=l.computed(()=>!!t.text&&a.offset!==t.text.length);l.watch(()=>E.value,T=>{setTimeout(()=>{o("clamp-change",T)},0)},{immediate:!0});const x=l.computed(()=>E.value?C.value:t.text),C=l.computed(()=>{if(t.location==="start")return t.ellipsis+(t.text.slice(-a.offset)||"").trim();if(t.location==="middle"){const T=Math.floor(a.offset/2);return(t.text.slice(0,T)||"").trim()+t.ellipsis+(t.text.slice(-T)||"").trim()}return(t.text.slice(0,a.offset)||"").trim()+t.ellipsis}),I=()=>{a.localExpanded=!0},O=()=>{a.localExpanded=!1},k=()=>{a.localExpanded=!a.localExpanded};return l.watch(()=>t.expanded,T=>{a.localExpanded=T}),l.watch(()=>a.localExpanded,T=>{T?g(t.text.length):u(),t.expanded!==T&&o("update:expanded",T)}),l.watch(()=>[t.maxLines,t.maxHeight,t.ellipsis,t.location,E.value].join(),()=>{l.nextTick(()=>{u()})}),l.watch(()=>[t.text,t.autoResize].join(),()=>{l.nextTick(()=>{f()})}),l.onUnmounted(()=>{h()}),l.onMounted(()=>{f()}),(T,D)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"textClampRef",ref:e,class:"text-clamp",style:l.normalizeStyle({overflow:"hidden",maxHeight:l.unref(s)})},[l.createBaseVNode("span",{ref_key:"contentRef",ref:n},[l.renderSlot(T.$slots,"before",{expand:I,collapse:O,toggle:k,clamped:l.unref(E),expanded:a.localExpanded}),l.createBaseVNode("span",{ref_key:"textRef",ref:i,"aria-label":r.text},null,8,lc),l.renderSlot(T.$slots,"after",{expand:I,collapse:O,toggle:k,clamped:l.unref(E),expanded:a.localExpanded})],512)],4))}});ro.__file="package/text-clamp.vue";const cc=r=>(r.install=function(o){o.component(r.__name,r)},r),uc=cc(ro),fc={key:0,class:"booking-availability-listing-featured"},dc=["src"],hc={class:"booking-availability-listing-content"},vc={class:"booking-availability-listing-details"},pc=["title"],gc={key:0,class:"fresh-booking-listing-sub-title"},mc={key:0},_c={key:1},yc={class:"booking-availability-listing-description"},bc=["onClick"],Ec={key:0},Pc={key:1},xc={key:0,class:"booking-availability-listing-details-facilities"},Oc={class:"booking-availability-listing-action"},wc=l.defineComponent({name:"BaseListing",__name:"Base",props:{name:{},description:{},listingId:{},includesBreakfast:{type:Boolean,default:!1},gallery:{},layout:{default:l.BookingLayout.Selective},pricesFrom:{},trackingEnabled:{type:Boolean,default:!1},facilities:{},hideInfoButton:{type:Boolean,default:!1},callback:{}},setup(r){const{t:o}=l.useI18n(),t=r,{disablePricesFrom:e,currency:n}=l.useUtilityStore(),i=l.ref(!e&&!!t.pricesFrom),a=l.ref(),s=l.ref(),c=l.ref();function u(f){let h="";return f.forEach(({name:v})=>{h+=`<li>${v}</li>`}),`<ul>${h}</ul>`}return l.onMounted(()=>{c.value=[new to({type:"index",synchronizedFlickingOptions:[{flicking:a.value,isSlidable:!0},{flicking:s.value,isClickable:!0,activeClass:"active"}]})]}),(f,h)=>{const v=l.resolveDirective("tooltip");return l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(["booking-availability-listing",{"no-gallery":!f.gallery||f.gallery.length===0},{"only-featured":f.gallery&&f.gallery.length===1}])},[f.gallery?(l.openBlock(),l.createElementBlock("div",fc,[f.gallery.length===1?(l.openBlock(),l.createBlock(l.unref(Rr),{key:0,src:f.gallery[0].medium,zoomSrc:f.gallery[0].large,zoomScale:1,zoomType:"click",width:280,height:153,zoomPreload:!0,fullscreenOnMobile:!1},null,8,["src","zoomSrc"])):f.gallery.length>1?(l.openBlock(),l.createBlock(l.unref(Pn),{ref_key:"slideshow",ref:a,key:f.gallery.length,options:{align:"prev",circular:!0,bounce:30},plugins:c.value},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.gallery,({medium:d,large:p},g)=>(l.openBlock(),l.createElementBlock("div",{key:g,class:"booking-availability-listing-featured-img"},[l.createVNode(l.unref(Rr),{src:d,zoomSrc:p,zoomScale:1,zoomType:"click",width:280,height:153,zoomPreload:!0,fullscreenOnMobile:!1},null,8,["src","zoomSrc"])]))),128))]),_:1},8,["plugins"])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),f.gallery&&f.gallery.length>1?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["booking-availability-listing-gallery",{"small-gallery":f.gallery.length>6}])},[l.createVNode(l.unref(Pn),{ref_key:"thumbnails",ref:s,options:{bounce:30,panelsPerView:3,bound:!0}},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.gallery,(d,p)=>(l.openBlock(),l.createElementBlock("div",{key:p},[l.createBaseVNode("img",{src:d.thumb,width:"88",height:"48"},null,8,dc)]))),128))]),_:1},512)],2)):l.createCommentVNode("",!0),l.createBaseVNode("div",hc,[l.createBaseVNode("div",vc,[l.createBaseVNode("div",{class:l.normalizeClass(["fresh-booking-listing-title",{"has-from-price":i.value}])},[l.createBaseVNode("h3",{title:f.name,class:l.normalizeClass({"no-padding":!(f.description||f.facilities&&f.facilities.length>0)})},[l.createBaseVNode("span",null,l.toDisplayString(f.name),1),f.layout!==l.unref(l.BookingLayout).Event&&(f.description||f.facilities&&f.facilities.length>0)&&!f.hideInfoButton?(l.openBlock(),l.createElementBlock("button",{key:0,class:"booking-availability-listing-read-more",type:"button",onClick:h[0]||(h[0]=l.withModifiers((...d)=>f.callback&&f.callback(...d),["prevent"]))},[l.createVNode(l.Icon,{icon:"info-circle",color:"header"})])):l.createCommentVNode("",!0)],10,pc),i.value||f.includesBreakfast?(l.openBlock(),l.createElementBlock("ul",gc,[i.value?(l.openBlock(),l.createElementBlock("li",mc,[l.createBaseVNode("span",null,l.toDisplayString(`${l.unref(o)("general.pricesFrom")}: ${l.unref(l.showPrice)(f.pricesFrom,l.unref(n))}`),1)])):l.createCommentVNode("",!0),f.includesBreakfast?(l.openBlock(),l.createElementBlock("li",_c,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("general.breakfastIncluded")),1),l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)],2),l.createBaseVNode("div",yc,[l.renderSlot(f.$slots,"description",{},()=>[l.createVNode(l.unref(uc),{text:f.description,"max-lines":5,"auto-resize":!0},{after:l.withCtx(({toggle:d,expanded:p,clamped:g})=>[g||p?(l.openBlock(),l.createElementBlock("button",{key:0,class:"link",onClick:l.withModifiers(m=>d(),["prevent"])},[p?(l.openBlock(),l.createElementBlock("span",Pc,l.toDisplayString(l.unref(o)("general.readLess")),1)):(l.openBlock(),l.createElementBlock("span",Ec,l.toDisplayString(l.unref(o)("general.readMore")),1))],8,bc)):l.createCommentVNode("",!0)]),_:1},8,["text"])])]),f.layout!==l.unref(l.BookingLayout).Event?(l.openBlock(),l.createElementBlock("ul",xc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.facilities,({icon:d,name:p,subFacilities:g})=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[d?l.withDirectives((l.openBlock(),l.createElementBlock("li",{key:p},[l.createVNode(l.Icon,{icon:d,color:"header"},null,8,["icon"])])),[[v,{content:u(g),classes:["tooltip","freshcase-octopus-tooltip"],container:"#fresh-booking-hotel-module",html:!0}]]):l.createCommentVNode("",!0)],64))),256))])):l.createCommentVNode("",!0)]),l.createBaseVNode("div",Oc,[l.renderSlot(f.$slots,"action")]),l.renderSlot(f.$slots,"default")])],2)}}});const Tc=l._export_sfc(wc,[["__scopeId","data-v-da2301b5"]]),Sc={id:"fresh-booking-multi-step-form-navigation"},Cc={key:0,id:"fresh-booking-multi-step-form-overlay"},kc={id:"fresh-booking-multi-step-form-steps-wrapper"},Rc={key:0},Ic={key:1},Nc={class:"fresh-booking-multi-steps"},Ac={style:{fontSize:"18px"}},Dc={id:"fresh-booking-multi-step-form-content"},Mc=l.defineComponent({__name:"MultiStepForm",props:{layout:{default:l.BookingHeaderLayout.Default},title:{},subtitle:{}},emits:["reset"],setup(r,{emit:o}){const t=o,{selectionHasNoAddons:e}=l.storeToRefs(l.useHotelStore()),n=l.ref(0),i=l.ref(),{t:a}=l.useI18n(),s=[{id:"availability",label:a("booking.availability.title"),icon:"search"},{id:"addons",label:a("booking.reservation.title"),icon:"concierge-bell",hidden:e.value},{id:"reservation",label:a("booking.reservation.title"),icon:"concierge-bell"},{id:"payment",hidden:!0},{id:"confirmation",label:a("booking.confirmation.title"),icon:"calendar-check"}],c=l.computed(()=>s.filter(d=>!d.hidden)),u=l.computed(()=>s[n.value].id),f=()=>{i.value!==void 0&&i.value.scrollIntoView({behavior:"smooth"})},h=(d=1)=>{n.value=n.value+d,f()},v=(d=1)=>{n.value=n.value-d,f()};return l.watch(n,()=>{n.value===0&&t("reset")}),(d,p)=>(l.openBlock(),l.createElementBlock("div",{id:"fresh-booking-multi-step-form",ref_key:"multiStepForm",ref:i,class:l.normalizeClass({minimal:d.layout===l.unref(l.BookingHeaderLayout).Minimal})},[l.createBaseVNode("div",null,[l.withDirectives(l.createBaseVNode("header",Sc,[d.layout!==l.unref(l.BookingHeaderLayout).Minimal?(l.openBlock(),l.createElementBlock("div",Cc)):l.createCommentVNode("",!0),l.createBaseVNode("div",kc,[l.createBaseVNode("div",null,[d.title&&d.layout!==l.unref(l.BookingHeaderLayout).Minimal?(l.openBlock(),l.createElementBlock("h2",Rc,[l.createBaseVNode("span",null,l.toDisplayString(d.title),1)])):l.createCommentVNode("",!0),d.subtitle&&d.layout!==l.unref(l.BookingHeaderLayout).Minimal?(l.openBlock(),l.createElementBlock("h5",Ic,[l.createBaseVNode("span",null,l.toDisplayString(d.subtitle),1)])):l.createCommentVNode("",!0),l.createBaseVNode("ul",Nc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.value,g=>(l.openBlock(),l.createElementBlock("li",{key:g.id,class:l.normalizeClass({"is-active":u.value===g.id})},[g.icon?(l.openBlock(),l.createBlock(l.Icon,{key:0,icon:g.icon,type:"fas","icon-color":d.layout!==l.unref(l.BookingHeaderLayout).Minimal?"#fff":void 0,style:{fontSize:"18px"}},null,8,["icon","icon-color"])):l.createCommentVNode("",!0),l.createBaseVNode("b",Ac,l.toDisplayString(g.label),1)],2))),128))])])])],512),[[l.vShow,!1]]),l.createBaseVNode("ul",Dc,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(s,g=>l.createBaseVNode("li",{key:g.id,class:"fresh-booking-multi-step-form-content-tab"},[l.withDirectives(l.createBaseVNode("div",null,[l.renderSlot(d.$slots,g.id,{next:h,prev:v},void 0,!0)],512),[[l.vShow,u.value===g.id]])])),64))])])],2))}});const zc=l._export_sfc(Mc,[["__scopeId","data-v-b7e9cc27"]]);const Bc={class:"fresh-booking-modal-title modal__title"},Lc={class:"modal__content"},Vc=["innerHTML"],io=l.defineComponent({__name:"Base",props:{title:{},description:{}},emits:["confirm"],setup(r,{emit:o}){const t=o;return(e,n)=>(l.openBlock(),l.createBlock(l.unref(l.Do),{class:"modal-container","content-class":"fresh-booking-modal","teleport-to":!1,style:{"z-index":1e6}},{default:l.withCtx(()=>[l.createBaseVNode("h3",Bc,[l.createBaseVNode("span",null,l.toDisplayString(e.title),1)]),l.createBaseVNode("div",Lc,[l.renderSlot(e.$slots,"above-description"),e.description?(l.openBlock(),l.createElementBlock("p",{key:0,class:"fresh-booking-modal-description",innerHTML:e.description},null,8,Vc)):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"default")]),l.createBaseVNode("button",{class:"fresh-booking-modal-close",onClick:n[0]||(n[0]=i=>t("confirm"))},[l.createVNode(l.Icon,{icon:"times",type:"fas"})])]),_:3}))}});const jc=l.defineComponent({__name:"Terms",props:{description:{}},setup(r){const{t:o}=l.useI18n();return(t,e)=>(l.openBlock(),l.createBlock(io,{title:l.unref(o)("general.termsAndConditions"),description:t.description},null,8,["title","description"]))}}),Fc={class:"konnectio-accept-terms"},$c=l.defineComponent({__name:"TermsOfService",setup(r){const{termsOfService:o}=l.storeToRefs(l.useHotelStore()),{t}=l.useI18n(),{open:e,close:n}=l.Uo({component:jc,attrs:{description:o.value,onConfirm(){n()}}});return(i,a)=>(l.openBlock(),l.createElementBlock("div",Fc,[l.createVNode(l.unref(l.Translation),{keypath:"general.termsAndConditionsNotice",tag:"span",scope:"global"},{button:l.withCtx(()=>[l.createBaseVNode("i",null,'"'+l.toDisplayString(l.unref(t)("general.confirmReservation"))+'"',1)]),terms:l.withCtx(()=>[l.createBaseVNode("a",{class:"konnectio-accept-terms-link",target:"_blank",onClick:a[0]||(a[0]=l.withModifiers((...s)=>l.unref(e)&&l.unref(e)(...s),["prevent"]))},[l.createBaseVNode("span",null,l.toDisplayString(l.unref(t)("general.termsAndConditions")),1)])]),_:1})]))}});const Hc=l._export_sfc($c,[["__scopeId","data-v-2eb54e31"]]),Wc={class:"hotel-skeleton-sidebar-inner"},Gc={class:"hotel-skeleton-sidebar-group"},Uc={class:"hotel-skeleton-sidebar-group"},Yc=l.defineComponent({__name:"Sidebar",setup(r){return(o,t)=>(l.openBlock(),l.createElementBlock("div",Wc,[l.createBaseVNode("div",Gc,[l.createVNode(de.Element,{height:"20px"}),l.createVNode(de.Element,{height:"15px"}),l.createVNode(de.Element,{height:"15px"}),l.createVNode(de.Element,{height:"15px"})]),l.createBaseVNode("div",Uc,[l.createVNode(de.Element,{height:"20px"}),l.createVNode(de.Element,{height:"15px"}),l.createVNode(de.Element,{height:"15px"}),l.createVNode(de.Element,{height:"15px"})]),l.createVNode(de.Element,{height:"44px"})]))}});const oo=l._export_sfc(Yc,[["__scopeId","data-v-a1b9bdc5"]]);/**
|
|
55
|
-
* Sticky Sidebar v2 JavaScript Plugin.
|
|
56
|
-
* @version 1.0.1
|
|
57
|
-
* @author Øystein Blixhavn <oystein@blixhavn.no>
|
|
58
|
-
* @license The MIT License (MIT)
|
|
59
|
-
*/const ao=(()=>{const r=".stickySidebar",o={topSpacing:0,bottomSpacing:0,containerSelector:!1,scrollContainer:!1,innerWrapperSelector:".inner-wrapper-sticky",stickyClass:"is-affixed",minWidth:!1};class t{constructor(n,i={}){if(this.options=t.extend(o,i),this.sidebar=typeof n=="string"?document.querySelector(n):n,typeof this.sidebar>"u")throw new Error("There is no specific sidebar element.");this.sidebarInner=!1,this.container=this.sidebar.parentElement,this.affixedType="STATIC",this.direction="down",this.support={transform:!1,transform3d:!1},this._initialized=!1,this._reStyle=!1,this._breakpoint=!1,this.dimensions={translateY:0,maxTranslateY:0,topSpacing:0,lastTopSpacing:0,bottomSpacing:0,lastBottomSpacing:0,sidebarHeight:0,sidebarWidth:0,containerTop:0,containerHeight:0,viewportHeight:0,viewportTop:0,lastViewportTop:0},["handleEvent"].forEach(a=>{this[a]=this[a].bind(this)}),this.initialize()}initialize(){if(this._setSupportFeatures(),this.options.innerWrapperSelector&&(this.sidebarInner=this.sidebar.querySelector(this.options.innerWrapperSelector),this.sidebarInner===null&&(this.sidebarInner=!1)),!this.sidebarInner){let n=document.createElement("div");for(n.setAttribute("class","inner-wrapper-sticky"),this.sidebar.appendChild(n);this.sidebar.firstChild!=n;)n.appendChild(this.sidebar.firstChild);this.sidebarInner=this.sidebar.querySelector(".inner-wrapper-sticky")}if(this.options.containerSelector){let n=document.querySelectorAll(this.options.containerSelector);if(n=Array.prototype.slice.call(n),n.forEach((i,a)=>{i.contains(this.sidebar)&&(this.container=i)}),!n.length)throw new Error("The container does not contains on the sidebar.")}this.scrollContainer=this.options.scrollContainer?document.querySelector(this.options.scrollContainer):void 0,typeof this.options.topSpacing!="function"&&(this.options.topSpacing=parseInt(this.options.topSpacing)||0),typeof this.options.bottomSpacing!="function"&&(this.options.bottomSpacing=parseInt(this.options.bottomSpacing)||0),this._widthBreakpoint(),this.calcDimensions(),this.stickyPosition(),this.bindEvents(),this._initialized=!0}bindEvents(){if(this.eventTarget=this.scrollContainer?this.scrollContainer:window,this.eventTarget.addEventListener("resize",this,{passive:!0,capture:!1}),this.eventTarget.addEventListener("scroll",this,{passive:!0,capture:!1}),this.sidebar.addEventListener("update"+r,this),typeof ResizeObserver<"u"){const n=new ResizeObserver(()=>this.handleEvent());n.observe(this.sidebarInner),n.observe(this.container)}}handleEvent(n){this.updateSticky(n)}calcDimensions(){if(!this._breakpoint){var n=this.dimensions;n.containerTop=t.offsetRelative(this.container).top,n.containerHeight=this.container.clientHeight,n.containerBottom=n.containerTop+n.containerHeight,n.sidebarHeight=this.sidebarInner.offsetHeight,n.sidebarWidth=this.sidebarInner.offsetWidth,n.viewportHeight=window.innerHeight,n.maxTranslateY=n.containerHeight-n.sidebarHeight,this._calcDimensionsWithScroll()}}_calcDimensionsWithScroll(){var n=this.dimensions;n.sidebarLeft=t.offsetRelative(this.sidebar).left,this.scrollContainer?(n.viewportTop=this.scrollContainer.scrollTop,n.viewportLeft=this.scrollContainer.scrollLeft):(n.viewportTop=document.documentElement.scrollTop||document.body.scrollTop,n.viewportLeft=document.documentElement.scrollLeft||document.body.scrollLeft),n.viewportBottom=n.viewportTop+n.viewportHeight,n.topSpacing=this.options.topSpacing,n.bottomSpacing=this.options.bottomSpacing,typeof n.topSpacing=="function"&&(n.topSpacing=parseInt(n.topSpacing(this.sidebar))||0),typeof n.bottomSpacing=="function"&&(n.bottomSpacing=parseInt(n.bottomSpacing(this.sidebar))||0),this.affixedType==="VIEWPORT-TOP"?n.topSpacing<n.lastTopSpacing&&(n.translateY+=n.lastTopSpacing-n.topSpacing,this._reStyle=!0):this.affixedType==="VIEWPORT-BOTTOM"&&n.bottomSpacing<n.lastBottomSpacing&&(n.translateY+=n.lastBottomSpacing-n.bottomSpacing,this._reStyle=!0),n.lastTopSpacing=n.topSpacing,n.lastBottomSpacing=n.bottomSpacing}isSidebarFitsViewport(){return this.dimensions.viewportHeight>=this.dimensions.lastBottomSpacing+this.dimensions.lastTopSpacing+this.dimensions.sidebarHeight}observeScrollDir(){var n=this.dimensions;if(n.lastViewportTop!==n.viewportTop){var i=this.direction==="down"?Math.min:Math.max;n.viewportTop===i(n.viewportTop,n.lastViewportTop)&&(this.direction=this.direction==="down"?"up":"down")}}getAffixType(){this._calcDimensionsWithScroll();var n=this.dimensions,i=n.viewportTop+n.topSpacing,a=this.affixedType;return i<=n.containerTop||n.containerHeight<=n.sidebarHeight?(n.translateY=0,a="STATIC"):a=this.direction==="up"?this._getAffixTypeScrollingUp():this._getAffixTypeScrollingDown(),n.translateY=Math.max(0,n.translateY),n.translateY=Math.min(n.containerHeight,n.translateY),n.translateY=Math.round(n.translateY),n.lastViewportTop=n.viewportTop,a}_getAffixTypeScrollingDown(){var n=this.dimensions,i=n.sidebarHeight+n.containerTop,a=n.viewportTop+n.topSpacing,s=n.viewportBottom-n.bottomSpacing,c=this.affixedType;return this.isSidebarFitsViewport()?n.sidebarHeight+a>=n.containerBottom?(n.translateY=n.containerBottom-i,c="CONTAINER-BOTTOM"):a>=n.containerTop&&(n.translateY=a-n.containerTop,c="VIEWPORT-TOP"):n.containerBottom<=s?(n.translateY=n.containerBottom-i,c="CONTAINER-BOTTOM"):i+n.translateY<=s?(n.translateY=s-i,c="VIEWPORT-BOTTOM"):n.containerTop+n.translateY<=a&&n.translateY!==0&&n.maxTranslateY!==n.translateY&&(c="VIEWPORT-UNBOTTOM"),c}_getAffixTypeScrollingUp(){var n=this.dimensions,i=n.sidebarHeight+n.containerTop,a=n.viewportTop+n.topSpacing,s=n.viewportBottom-n.bottomSpacing,c=this.affixedType;return a<=n.translateY+n.containerTop?(n.translateY=a-n.containerTop,c="VIEWPORT-TOP"):n.containerBottom<=s?(n.translateY=n.containerBottom-i,c="CONTAINER-BOTTOM"):this.isSidebarFitsViewport()||n.containerTop<=a&&n.translateY!==0&&n.maxTranslateY!==n.translateY&&(c="VIEWPORT-UNBOTTOM"),c}_getStyle(n){if(!(typeof n>"u")){var i={inner:{},outer:{}},a=this.dimensions;switch(n){case"VIEWPORT-TOP":i.inner={position:"fixed",top:a.topSpacing,left:a.sidebarLeft-a.viewportLeft,width:a.sidebarWidth};break;case"VIEWPORT-BOTTOM":i.inner={position:"fixed",top:"auto",left:a.sidebarLeft,bottom:a.bottomSpacing,width:a.sidebarWidth};break;case"CONTAINER-BOTTOM":case"VIEWPORT-UNBOTTOM":let s=this._getTranslate(0,a.translateY+"px");s?i.inner={transform:s}:i.inner={position:"absolute",top:a.translateY,width:a.sidebarWidth};break}switch(n){case"VIEWPORT-TOP":case"VIEWPORT-BOTTOM":case"VIEWPORT-UNBOTTOM":case"CONTAINER-BOTTOM":i.outer={height:a.sidebarHeight,position:"relative"};break}return i.outer=t.extend({height:"",position:""},i.outer),i.inner=t.extend({position:"relative",top:"",left:"",bottom:"",width:"",transform:""},i.inner),i}}stickyPosition(n){if(!this._breakpoint){n=this._reStyle||n||!1,this.options.topSpacing,this.options.bottomSpacing;var i=this.getAffixType(),a=this._getStyle(i);if((this.affixedType!=i||n)&&i){let s="affix."+i.toLowerCase().replace("viewport-","")+r;t.eventTrigger(this.sidebar,s),i==="STATIC"?t.removeClass(this.sidebar,this.options.stickyClass):t.addClass(this.sidebar,this.options.stickyClass);for(let u in a.outer){let f=typeof a.outer[u]=="number"?"px":"";this.sidebar.style[u]=a.outer[u]+f}for(let u in a.inner){let f=typeof a.inner[u]=="number"?"px":"";this.sidebarInner.style[u]=a.inner[u]+f}let c="affixed."+i.toLowerCase().replace("viewport-","")+r;t.eventTrigger(this.sidebar,c)}else this._initialized&&(this.sidebarInner.style.left=a.inner.left);this.affixedType=i}}_widthBreakpoint(){window.innerWidth<=this.options.minWidth?(this._breakpoint=!0,this.affixedType="STATIC",this.sidebar.removeAttribute("style"),t.removeClass(this.sidebar,this.options.stickyClass),this.sidebarInner.removeAttribute("style")):this._breakpoint=!1}updateSticky(n={}){this._running||(this._running=!0,(i=>{requestAnimationFrame(()=>{switch(i){case"scroll":this._calcDimensionsWithScroll(),this.observeScrollDir(),this.stickyPosition();break;case"resize":default:this._widthBreakpoint(),this.calcDimensions(),this.stickyPosition(!0);break}this._running=!1})})(n.type))}_setSupportFeatures(){var n=this.support;n.transform=t.supportTransform(),n.transform3d=t.supportTransform(!0)}_getTranslate(n=0,i=0,a=0){return this.support.transform3d?"translate3d("+n+", "+i+", "+a+")":this.support.translate?"translate("+n+", "+i+")":!1}destroy(){window.removeEventListener("resize",this,{capture:!1}),window.removeEventListener("scroll",this,{capture:!1}),this.sidebar.classList.remove(this.options.stickyClass),this.sidebar.style.minHeight="",this.sidebar.removeEventListener("update"+r,this);var n={inner:{},outer:{}};n.inner={position:"",top:"",left:"",bottom:"",width:"",transform:""},n.outer={height:"",position:""};for(let i in n.outer)this.sidebar.style[i]=n.outer[i];for(let i in n.inner)this.sidebarInner.style[i]=n.inner[i];this.options.resizeSensor&&typeof ResizeSensor<"u"&&(ResizeSensor.detach(this.sidebarInner,this.handleEvent),ResizeSensor.detach(this.container,this.handleEvent))}static supportTransform(n){var i=!1,a=n?"perspective":"transform",s=a.charAt(0).toUpperCase()+a.slice(1),c=["Webkit","Moz","O","ms"],u=document.createElement("support"),f=u.style;return(a+" "+c.join(s+" ")+s).split(" ").forEach(function(h,v){if(f[h]!==void 0)return i=h,!1}),i}static eventTrigger(n,i,a){try{var s=new CustomEvent(i,{detail:a})}catch{var s=document.createEvent("CustomEvent");s.initCustomEvent(i,!0,!0,a)}n.dispatchEvent(s)}static extend(n,i){var a={};for(let s in n)typeof i[s]<"u"?a[s]=i[s]:a[s]=n[s];return a}static offsetRelative(n){var i={left:0,top:0};do{let a=n.offsetTop,s=n.offsetLeft;isNaN(a)||(i.top+=a),isNaN(s)||(i.left+=s),n=n.tagName==="BODY"?n.parentElement:n.offsetParent}while(n);return i}static addClass(n,i){t.hasClass(n,i)||(n.classList?n.classList.add(i):n.className+=" "+i)}static removeClass(n,i){t.hasClass(n,i)&&(n.classList?n.classList.remove(i):n.className=n.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," "))}static hasClass(n,i){return n.classList?n.classList.contains(i):new RegExp("(^| )"+i+"( |$)","gi").test(n.className)}static get defaults(){return o}}return t})();window.StickySidebar=ao;const Xc={class:"inner-wrapper-sticky"};var Gn={__name:"vue3-sticky-sidebar",props:{rootClass:{type:String,default:""},topSpacing:{type:[Number,Function],default:0},bottomSpacing:{type:[Number,Function],default:0},containerSelector:{type:[String,Boolean],default:!1},stickyClass:{type:[String,Boolean],default:!1},minWidth:{type:Number,default:0}},setup(r){const o=r,t=l.ref(null);return l.onMounted(()=>{new ao(t.value,{topSpacing:o.topSpacing,bottomSpacing:o.bottomSpacing,containerSelector:o.containerSelector,innerWrapperSelector:o.innerWrapperSelector||".inner-wrapper-sticky",stickyClass:o.stickyClass,minWidth:o.minWidth})}),(e,n)=>(l.openBlock(),l.createElementBlock("div",{ref_key:"stickySidebarRef",ref:t},[l.createBaseVNode("div",Xc,[l.renderSlot(e.$slots,"default")])],512))}};const wn=function(o){wn.installed||(wn.installed=!0,o.component("Vue3StickySidebar",Gn))};Gn.install=wn;const Kc=r=>(l.pushScopeId("data-v-d33bab16"),r=r(),l.popScopeId(),r),Zc={id:"fresh-booking-reservation-layout"},Jc={id:"fresh-booking-reservation-layout-content"},Qc={id:"fresh-booking-reservation-layout-form"},qc={key:0,class:"konnectio-reservation-layout-aside-inner"},eu={class:"fresh-booking-panel"},tu={id:"fresh-booking-reservation-layout-aside-resume"},nu={key:0},ru={key:1},iu={key:2},ou={key:3},au=Kc(()=>l.createBaseVNode("div",{class:"konnectio-divider"},null,-1)),su={key:0,class:"fresh-booking-panel"},lu={id:"fresh-booking-reservation-layout-aside-gift-card"},cu={key:1,class:"fresh-booking-panel"},uu={id:"fresh-booking-reservation-layout-aside-addons"},fu=["innerHTML"],du={key:0,id:"fresh-booking-reservation-layout-recaptcha"},hu=l.defineComponent({__name:"ReservationForm",props:{showTermsNotice:{type:Boolean,default:!1},showGiftCard:{type:Boolean,default:!1},isSidebarLoading:{type:Boolean,default:!1},totalPrice:{},basePrice:{default:0},weekendFee:{default:0},roomUpgrade:{default:0},buttonIconColor:{},notice:{}},setup(r){const{t:o}=l.useI18n(),{disableGiftCardVoucher:t,isRecaptchaEnabled:e,currency:n,enableStickyHeader:i,headerHeight:a}=l.storeToRefs(l.useUtilityStore()),{amount:s,voucher:c}=l.storeToRefs(l.useApplyGiftCardStore()),{apply:u,reset:f}=l.useApplyGiftCardStore(),h=l.useSlots(),v=r,d=l.computed(()=>v.basePrice-v.weekendFee-v.roomUpgrade);return(p,g)=>(l.openBlock(),l.createElementBlock("div",Zc,[l.createBaseVNode("div",Jc,[l.createBaseVNode("div",Qc,[l.createBaseVNode("form",null,[l.renderSlot(p.$slots,"form")])]),l.createBaseVNode("aside",{id:"fresh-booking-reservation-layout-aside",class:l.normalizeClass({"disable-sticky-aside":!l.unref(i)})},[l.createVNode(l.unref(Gn),{"top-spacing":l.unref(a),"sticky-class":"konnectio-sticky-wrapper"},{default:l.withCtx(()=>[p.isSidebarLoading?(l.openBlock(),l.createBlock(oo,{key:1})):(l.openBlock(),l.createElementBlock("div",qc,[l.createBaseVNode("div",eu,[l.createBaseVNode("ul",tu,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("general.reservationSummary")),1)]),l.createBaseVNode("ul",null,[l.renderSlot(p.$slots,"reservation-summary")]),l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("general.priceSummary")),1)]),l.createBaseVNode("ul",null,[l.renderSlot(p.$slots,"price-summary"),d.value>0?(l.openBlock(),l.createElementBlock("li",nu,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("booking.availability.basePrice")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(d.value,l.unref(n))),1)])):l.createCommentVNode("",!0),p.weekendFee>0?(l.openBlock(),l.createElementBlock("li",ru,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("general.weekendFee")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(p.weekendFee,l.unref(n))),1)])):l.createCommentVNode("",!0),p.roomUpgrade>0?(l.openBlock(),l.createElementBlock("li",iu,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("general.roomUpgrade")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(p.roomUpgrade,l.unref(n))),1)])):l.createCommentVNode("",!0),l.renderSlot(p.$slots,"expenses"),l.unref(s)!==0?(l.openBlock(),l.createElementBlock("li",ou,[l.createBaseVNode("span",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("booking.reservation.giftCardDiscount")),1),l.createBaseVNode("a",{class:"resume-item-remove",onClick:g[0]||(g[0]=l.withModifiers(m=>l.unref(f)(),["prevent"]))},[l.createVNode(l.Icon,{icon:"times",type:"fas","icon-color":"#ff0000"})])]),l.createBaseVNode("b",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(l.showPrice)(-l.unref(s),l.unref(n))),1)])])):l.createCommentVNode("",!0),l.createBaseVNode("li",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("booking.reservation.totalPrice")),1),l.createBaseVNode("b",null,[l.createBaseVNode("u",null,l.toDisplayString(l.unref(l.showPrice)(p.totalPrice,l.unref(n))),1)])])]),l.renderSlot(p.$slots,"navigation"),p.showTermsNotice?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[au,l.createVNode(Hc)],64)):l.createCommentVNode("",!0)])]),p.showGiftCard&&l.unref(s)===0&&!l.unref(t)?(l.openBlock(),l.createElementBlock("div",su,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("booking.reservation.giftCardCode")),1)]),l.createBaseVNode("div",lu,[l.createVNode(So.ActionField,{modelValue:l.unref(c),"onUpdate:modelValue":g[1]||(g[1]=m=>l.isRef(c)?c.value=m:null),icon:"gift-card","button-icon":"paper-plane-top","button-icon-color":p.buttonIconColor,placeholder:"XXXXXXXX",action:"success",secondary:!0,onAction:g[2]||(g[2]=m=>l.unref(u)())},null,8,["modelValue","button-icon-color"])])])):l.createCommentVNode("",!0),l.unref(h).addons?(l.openBlock(),l.createElementBlock("div",cu,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("booking.reservation.addons")),1)]),l.createBaseVNode("ul",uu,[l.renderSlot(p.$slots,"addons")])])):l.createCommentVNode("",!0),p.notice?(l.openBlock(),l.createElementBlock("p",{key:2,innerHTML:p.notice,class:"fresh-booking-wysiwyg"},null,8,fu)):l.createCommentVNode("",!0)]))]),_:3},8,["top-spacing"])],2),l.unref(e)?(l.openBlock(),l.createElementBlock("div",du,[l.createVNode(Co._sfc_main)])):l.createCommentVNode("",!0)])]))}});const vu=l._export_sfc(hu,[["__scopeId","data-v-d33bab16"]]),pu={id:"konnectio-confirmation",class:"fresh-booking-panel"},gu={id:"konnectio-confirmation-introduction"},mu={id:"konnectio-confirmation-title"},_u=["innerHTML"],yu={class:"fresh-booking-order-panel"},bu={key:0},Eu={class:"fresh-booking-order-panel"},Pu={class:"fresh-booking-order-lines"},xu={key:0},Ou={key:1},wu={key:0,class:"fresh-booking-order-panel"},Tu={class:"fresh-booking-table with-lines"},Su={class:"fresh-booking-order-lines"},Cu={key:0},ku={key:1},Ru={key:2,class:"highlighted-line"},Iu=l.defineComponent({__name:"ThankYou",props:{message:{}},setup(r){const{t:o}=l.useI18n(),{hasOrderLines:t,orderSummary:e,name:n,email:i,phone:a,adults:s,children:c,offerDate:u,totalPrice:f,totalVAT:h,subTotalPrice:v}=l.storeToRefs(l.usePaymentStore()),{currency:d}=l.storeToRefs(l.useUtilityStore());return(p,g)=>(l.openBlock(),l.createElementBlock("div",pu,[l.createBaseVNode("div",gu,[l.createBaseVNode("h2",mu,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("general.thankYou")),1)]),l.createBaseVNode("div",{id:"konnectio-confirmation-message",innerHTML:p.message},null,8,_u)]),l.createBaseVNode("div",yu,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("general.primaryContact")),1)]),l.createBaseVNode("div",null,l.toDisplayString(l.unref(n)),1),l.createBaseVNode("div",null,l.toDisplayString(l.unref(i)),1),l.unref(a)?(l.openBlock(),l.createElementBlock("div",bu,l.toDisplayString(l.unref(a)),1)):l.createCommentVNode("",!0)]),l.createBaseVNode("div",Eu,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("booking.reservation.detailsTitle")),1)]),l.createBaseVNode("ul",Pu,[l.unref(u)?(l.openBlock(),l.createElementBlock("li",xu,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("general.date")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showDate)(l.unref(u))),1)])):l.createCommentVNode("",!0),l.createBaseVNode("li",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("availability.adults")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(s)),1)]),l.unref(c)&&l.unref(c)>0?(l.openBlock(),l.createElementBlock("li",Ou,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("availability.children")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(c)),1)])):l.createCommentVNode("",!0)])]),l.unref(t)?(l.openBlock(),l.createElementBlock("div",wu,[l.createBaseVNode("h5",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("general.orderDetails")),1)]),l.createBaseVNode("table",Tu,[l.createBaseVNode("thead",null,[l.createBaseVNode("tr",null,[l.createBaseVNode("th",null,l.toDisplayString(l.unref(o)("general.orderItem")),1),l.createBaseVNode("th",null,l.toDisplayString(l.unref(o)("general.quantity")),1),l.createBaseVNode("th",null,l.toDisplayString(l.unref(o)("booking.availability.price")),1),l.createBaseVNode("th",null,l.toDisplayString(l.unref(o)("booking.reservation.totalPrice")),1)])]),l.createBaseVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(e),({productName:m,quantity:_,unitPrice:y,totalPrice:b})=>(l.openBlock(),l.createElementBlock("tr",{key:m},[l.createBaseVNode("td",null,[l.createBaseVNode("span",null,l.toDisplayString(m),1)]),l.createBaseVNode("td",null,[l.createBaseVNode("span",null,l.toDisplayString(_),1)]),l.createBaseVNode("td",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(l.showPrice)(y,l.unref(d))),1)]),l.createBaseVNode("td",null,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(l.showPrice)(b,l.unref(d))),1)])]))),128))])])])):l.createCommentVNode("",!0),l.createBaseVNode("ul",Su,[l.unref(v)?(l.openBlock(),l.createElementBlock("li",Cu,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("general.subTotal")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(l.unref(v),l.unref(d))),1)])):l.createCommentVNode("",!0),l.unref(h)?(l.openBlock(),l.createElementBlock("li",ku,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("general.vat")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(l.unref(h),l.unref(d))),1)])):l.createCommentVNode("",!0),l.unref(f)?(l.openBlock(),l.createElementBlock("li",Ru,[l.createBaseVNode("span",null,l.toDisplayString(l.unref(o)("booking.reservation.totalPrice")),1),l.createBaseVNode("b",null,l.toDisplayString(l.unref(l.showPrice)(l.unref(f),l.unref(d))),1)])):l.createCommentVNode("",!0)])]))}});const Nu=l._export_sfc(Iu,[["__scopeId","data-v-86500fde"]]);exports.Base=Tc;exports.Flicking=Pn;exports.MultiStepForm=zc;exports.ReservationForm=vu;exports.Sidebar=oo;exports.Sync=to;exports.ThankYou=Nu;exports._sfc_main=io;exports.xt=Na;
|