{"version":3,"names":[],"mappings":"","sources":["bundle-icon-navigation.js"],"sourcesContent":["(()=>{var $t=Object.create;var q=Object.defineProperty,Ot=Object.defineProperties,Xt=Object.getOwnPropertyDescriptor,Yt=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertyNames,st=Object.getOwnPropertySymbols,Rt=Object.getPrototypeOf,ct=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable;var at=(o,t,e)=>t in o?q(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,lt=(o,t)=>{for(var e in t||(t={}))ct.call(t,e)&&at(o,e,t[e]);if(st)for(var e of st(t))Ht.call(t,e)&&at(o,e,t[e]);return o},ht=(o,t)=>Ot(o,Yt(t));var zt=(o,t)=>()=>(t||o((t={exports:{}}).exports,t),t.exports);var _t=(o,t,e,i)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let n of Ft(t))!ct.call(o,n)&&n!==e&&q(o,n,{get:()=>t[n],enumerable:!(i=Xt(t,n))||i.enumerable});return o};var W=(o,t,e)=>(e=o!=null?$t(Rt(o)):{},_t(t||!o||!o.__esModule?q(e,\"default\",{value:o,enumerable:!0}):e,o));var m=(o,t,e)=>new Promise((i,n)=>{var r=l=>{try{a(e.next(l))}catch(c){n(c)}},s=l=>{try{a(e.throw(l))}catch(c){n(c)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,s);a((e=e.apply(o,t)).next())});var N=zt((it,ot)=>{(function(o){\"use strict\";var t=function(){},e=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||o.msRequestAnimationFrame||function(c){return setTimeout(c,16)};function i(){var c=this;c.reads=[],c.writes=[],c.raf=e.bind(o),t(\"initialized\",c)}i.prototype={constructor:i,runTasks:function(c){t(\"run tasks\");for(var h;h=c.shift();)h()},measure:function(c,h){t(\"measure\");var u=h?c.bind(h):c;return this.reads.push(u),n(this),u},mutate:function(c,h){t(\"mutate\");var u=h?c.bind(h):c;return this.writes.push(u),n(this),u},clear:function(c){return t(\"clear\",c),s(this.reads,c)||s(this.writes,c)},extend:function(c){if(t(\"extend\",c),typeof c!=\"object\")throw new Error(\"expected object\");var h=Object.create(this);return a(h,c),h.fastdom=this,h.initialize&&h.initialize(),h},catch:null};function n(c){c.scheduled||(c.scheduled=!0,c.raf(r.bind(null,c)),t(\"flush scheduled\"))}function r(c){t(\"flush\");var h=c.writes,u=c.reads,f;try{t(\"flushing reads\",u.length),c.runTasks(u),t(\"flushing writes\",h.length),c.runTasks(h)}catch(g){f=g}if(c.scheduled=!1,(u.length||h.length)&&n(c),f)if(t(\"task errored\",f.message),c.catch)c.catch(f);else throw f}function s(c,h){var u=c.indexOf(h);return!!~u&&!!c.splice(u,1)}function a(c,h){for(var u in h)h.hasOwnProperty(u)&&(c[u]=h[u])}var l=o.fastdom=o.fastdom||new i;typeof define==\"function\"?define(function(){return l}):typeof ot==\"object\"&&(ot.exports=l)})(typeof window!=\"undefined\"?window:typeof it!=\"undefined\"?it:globalThis)});var Q=function(o,t){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},Q(o,t)};function H(o,t){Q(o,t);function e(){this.constructor=o}o.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var B=function(){return B=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},B.apply(this,arguments)};function Tt(){for(var o=0,t=0,e=arguments.length;t<e;t++)o+=arguments[t].length;for(var i=Array(o),n=0,t=0;t<e;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,n++)i[n]=r[s];return i}var Nt=[{sourceKey:\"scroller.scrollBehaviorX.currentPos\",key:\"x\"},{sourceKey:\"scroller.scrollBehaviorY.currentPos\",key:\"y\"},{sourceKey:\"scroller.scrollBehaviorX.hasScroll\",key:\"hasHorizontalScroll\"},{sourceKey:\"scroller.scrollBehaviorY.hasScroll\",key:\"hasVerticalScroll\"},{sourceKey:\"scroller.scrollBehaviorX.contentSize\",key:\"scrollerWidth\"},{sourceKey:\"scroller.scrollBehaviorY.contentSize\",key:\"scrollerHeight\"},{sourceKey:\"scroller.scrollBehaviorX.maxScrollPos\",key:\"maxScrollX\"},{sourceKey:\"scroller.scrollBehaviorY.maxScrollPos\",key:\"maxScrollY\"},{sourceKey:\"scroller.scrollBehaviorX.minScrollPos\",key:\"minScrollX\"},{sourceKey:\"scroller.scrollBehaviorY.minScrollPos\",key:\"minScrollY\"},{sourceKey:\"scroller.scrollBehaviorX.movingDirection\",key:\"movingDirectionX\"},{sourceKey:\"scroller.scrollBehaviorY.movingDirection\",key:\"movingDirectionY\"},{sourceKey:\"scroller.scrollBehaviorX.direction\",key:\"directionX\"},{sourceKey:\"scroller.scrollBehaviorY.direction\",key:\"directionY\"},{sourceKey:\"scroller.actions.enabled\",key:\"enabled\"},{sourceKey:\"scroller.animater.pending\",key:\"pending\"},{sourceKey:\"scroller.animater.stop\",key:\"stop\"},{sourceKey:\"scroller.scrollTo\",key:\"scrollTo\"},{sourceKey:\"scroller.scrollBy\",key:\"scrollBy\"},{sourceKey:\"scroller.scrollToElement\",key:\"scrollToElement\"},{sourceKey:\"scroller.resetPosition\",key:\"resetPosition\"}];function F(o){console.error(\"[BScroll warn]: \"+o)}var y=typeof window!=\"undefined\",L=y&&navigator.userAgent.toLowerCase(),Kt=!!(L&&/wechatdevtools/.test(L)),qt=L&&L.indexOf(\"android\")>0,Wt=function(){if(typeof L==\"string\"){var o=/os (\\d\\d?_\\d(_\\d)?)/,t=o.exec(L);if(!t)return!1;var e=t[1].split(\"_\").map(function(i){return parseInt(i,10)});return e[0]===13&&e[1]>=4}return!1}(),wt=!1;if(y){ut=\"test-passive\";try{j={},Object.defineProperty(j,\"passive\",{get:function(){wt=!0}}),window.addEventListener(ut,function(){},j)}catch(o){}}var ut,j;function P(){return window.performance&&window.performance.now&&window.performance.timing?window.performance.now()+window.performance.timing.navigationStart:+new Date}var Z=function(o,t){for(var e in t)o[e]=t[e];return o};function J(o){return o==null}function pt(o,t,e){return o<t?t:o>e?e:o}var et=y&&document.createElement(\"div\").style,C=function(){if(!y)return!1;for(var o=[{key:\"standard\",value:\"transform\"},{key:\"webkit\",value:\"webkitTransform\"},{key:\"Moz\",value:\"MozTransform\"},{key:\"O\",value:\"OTransform\"},{key:\"ms\",value:\"msTransform\"}],t=0,e=o;t<e.length;t++){var i=e[t];if(et[i.value]!==void 0)return i.key}return!1}();function b(o){return C===!1?o:C===\"standard\"?o===\"transitionEnd\"?\"transitionend\":o:C+o.charAt(0).toUpperCase()+o.substr(1)}function St(o){return typeof o==\"string\"?document.querySelector(o):o}function jt(o,t,e,i){var n=wt?{passive:!1,capture:!!i}:!!i;o.addEventListener(t,e,n)}function Ut(o,t,e,i){o.removeEventListener(t,e,{capture:!!i})}function Et(o){o.cancelable&&o.preventDefault()}function ft(o){for(var t=0,e=0;o;)t-=o.offsetLeft,e-=o.offsetTop,o=o.offsetParent;return{left:t,top:e}}C&&C!==\"standard\"&&\"\"+C.toLowerCase();var Vt=b(\"transform\"),Pt=b(\"transition\"),Gt=y&&b(\"perspective\")in et,dt=y&&(\"ontouchstart\"in window||Kt),Qt=y&&Pt in et,E={transform:Vt,transition:Pt,transitionTimingFunction:b(\"transitionTimingFunction\"),transitionDuration:b(\"transitionDuration\"),transitionDelay:b(\"transitionDelay\"),transformOrigin:b(\"transformOrigin\"),transitionEnd:b(\"transitionEnd\"),transitionProperty:b(\"transitionProperty\")},U={touchstart:1,touchmove:1,touchend:1,touchcancel:1,mousedown:2,mousemove:2,mouseup:2};function vt(o){if(o instanceof window.SVGElement){var t=o.getBoundingClientRect();return{top:t.top,left:t.left,width:t.width,height:t.height}}else return{top:o.offsetTop,left:o.offsetLeft,width:o.offsetWidth,height:o.offsetHeight}}function M(o,t){for(var e in t)if(t[e].test(o[e]))return!0;return!1}var Zt=M;function Jt(o,t){var e=document.createEvent(\"Event\");e.initEvent(t,!0,!0),e.pageX=o.pageX,e.pageY=o.pageY,o.target.dispatchEvent(e)}function xt(o,t){t===void 0&&(t=\"click\");var e;o.type===\"mouseup\"?e=o:(o.type===\"touchend\"||o.type===\"touchcancel\")&&(e=o.changedTouches[0]);var i={};e&&(i.screenX=e.screenX||0,i.screenY=e.screenY||0,i.clientX=e.clientX||0,i.clientY=e.clientY||0);var n,r=!0,s=!0,a=o.ctrlKey,l=o.shiftKey,c=o.altKey,h=o.metaKey,u={ctrlKey:a,shiftKey:l,altKey:c,metaKey:h};if(typeof MouseEvent!=\"undefined\")try{n=new MouseEvent(t,Z(B({bubbles:r,cancelable:s},u),i))}catch(g){f()}else f();function f(){n=document.createEvent(\"Event\"),n.initEvent(t,r,s),Z(n,i)}n.forwardedTouchEvent=!0,n._constructed=!0,o.target.dispatchEvent(n)}function te(o){xt(o,\"dblclick\")}var S={swipe:{style:\"cubic-bezier(0.23, 1, 0.32, 1)\",fn:function(o){return 1+--o*o*o*o*o}},swipeBounce:{style:\"cubic-bezier(0.25, 0.46, 0.45, 0.94)\",fn:function(o){return o*(2-o)}},bounce:{style:\"cubic-bezier(0.165, 0.84, 0.44, 1)\",fn:function(o){return 1- --o*o*o*o}}},ee=1e3/60,T=y&&window;function Ct(){}var Lt=function(){return y?T.requestAnimationFrame||T.webkitRequestAnimationFrame||T.mozRequestAnimationFrame||T.oRequestAnimationFrame||function(o){return window.setTimeout(o,o.interval||ee)}:Ct}(),x=function(){return y?T.cancelAnimationFrame||T.webkitCancelAnimationFrame||T.mozCancelAnimationFrame||T.oCancelAnimationFrame||function(o){window.clearTimeout(o)}:Ct}(),mt=function(o){},V={enumerable:!0,configurable:!0,get:mt,set:mt},ie=function(o,t){for(var e=t.split(\".\"),i=0;i<e.length-1;i++)if(o=o[e[i]],typeof o!=\"object\"||!o)return;var n=e.pop();return typeof o[n]==\"function\"?function(){return o[n].apply(o,arguments)}:o[n]},oe=function(o,t,e){for(var i=t.split(\".\"),n,r=0;r<i.length-1;r++)n=i[r],o[n]||(o[n]={}),o=o[n];o[i.pop()]=e};function ne(o,t,e){V.get=function(){return ie(this,t)},V.set=function(n){oe(this,t,n)},Object.defineProperty(o,e,V)}var w=function(){function o(t){this.events={},this.eventTypes={},this.registerType(t)}return o.prototype.on=function(t,e,i){return i===void 0&&(i=this),this.hasType(t),this.events[t]||(this.events[t]=[]),this.events[t].push([e,i]),this},o.prototype.once=function(t,e,i){var n=this;i===void 0&&(i=this),this.hasType(t);var r=function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];n.off(t,r);var l=e.apply(i,s);if(l===!0)return l};return r.fn=e,this.on(t,r),this},o.prototype.off=function(t,e){if(!t&&!e)return this.events={},this;if(t){if(this.hasType(t),!e)return this.events[t]=[],this;var i=this.events[t];if(!i)return this;for(var n=i.length;n--;)(i[n][0]===e||i[n][0]&&i[n][0].fn===e)&&i.splice(n,1);return this}},o.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];this.hasType(t);var n=this.events[t];if(n)for(var r=n.length,s=Tt(n),a,l=0;l<r;l++){var c=s[l],h=c[0],u=c[1];if(h&&(a=h.apply(u,e),a===!0))return a}},o.prototype.registerType=function(t){var e=this;t.forEach(function(i){e.eventTypes[i]=i})},o.prototype.destroy=function(){this.events={},this.eventTypes={}},o.prototype.hasType=function(t){var e=this.eventTypes,i=e[t]===t;i||F('EventEmitter has used unknown event type: \"'+t+'\", should be oneof ['+(\"\"+Object.keys(e).map(function(n){return JSON.stringify(n)}))+\"]\")},o}(),R=function(){function o(t,e){this.wrapper=t,this.events=e,this.addDOMEvents()}return o.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},o.prototype.addDOMEvents=function(){this.handleDOMEvents(jt)},o.prototype.removeDOMEvents=function(){this.handleDOMEvents(Ut)},o.prototype.handleDOMEvents=function(t){var e=this,i=this.wrapper;this.events.forEach(function(n){t(i,n.name,e,!!n.capture)})},o.prototype.handleEvent=function(t){var e=t.type;this.events.some(function(i){return i.name===e?(i.handler(t),!0):!1})},o}(),re=function(){function o(){}return o}(),se=function(o){H(t,o);function t(){var e=o.call(this)||this;return e.startX=0,e.startY=0,e.scrollX=!1,e.scrollY=!0,e.freeScroll=!1,e.directionLockThreshold=0,e.eventPassthrough=\"\",e.click=!1,e.dblclick=!1,e.tap=\"\",e.bounce={top:!0,bottom:!0,left:!0,right:!0},e.bounceTime=800,e.momentum=!0,e.momentumLimitTime=300,e.momentumLimitDistance=15,e.swipeTime=2500,e.swipeBounceTime=500,e.deceleration=.0015,e.flickLimitTime=200,e.flickLimitDistance=100,e.resizePolling=60,e.probeType=0,e.stopPropagation=!1,e.preventDefault=!0,e.preventDefaultException={tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},e.tagException={tagName:/^TEXTAREA$/},e.HWCompositing=!0,e.useTransition=!0,e.bindToWrapper=!1,e.bindToTarget=!1,e.disableMouse=dt,e.disableTouch=!dt,e.autoBlur=!0,e.autoEndDistance=5,e.outOfBoundaryDampingFactor=1/3,e.specifiedIndexAsContent=0,e.quadrant=1,e}return t.prototype.merge=function(e){if(!e)return this;for(var i in e){if(i===\"bounce\"){this.bounce=this.resolveBounce(e[i]);continue}this[i]=e[i]}return this},t.prototype.process=function(){return this.translateZ=this.HWCompositing&&Gt?\" translateZ(1px)\":\"\",this.useTransition=this.useTransition&&Qt,this.preventDefault=!this.eventPassthrough&&this.preventDefault,this.scrollX=this.eventPassthrough===\"horizontal\"?!1:this.scrollX,this.scrollY=this.eventPassthrough===\"vertical\"?!1:this.scrollY,this.freeScroll=this.freeScroll&&!this.eventPassthrough,this.scrollX=this.freeScroll?!0:this.scrollX,this.scrollY=this.freeScroll?!0:this.scrollY,this.directionLockThreshold=this.eventPassthrough?0:this.directionLockThreshold,this},t.prototype.resolveBounce=function(e){var i={top:!0,right:!0,bottom:!0,left:!0},n={top:!1,right:!1,bottom:!1,left:!1},r;return typeof e==\"object\"?r=Z(i,e):r=e?i:n,r},t}(re),ae=function(){function o(t,e){this.wrapper=t,this.options=e,this.hooks=new w([\"beforeStart\",\"start\",\"move\",\"end\",\"click\"]),this.handleDOMEvents()}return o.prototype.handleDOMEvents=function(){var t=this.options,e=t.bindToWrapper,i=t.disableMouse,n=t.disableTouch,r=t.click,s=this.wrapper,a=e?s:window,l=[],c=[],h=!n,u=!i;r&&l.push({name:\"click\",handler:this.click.bind(this),capture:!0}),h&&(l.push({name:\"touchstart\",handler:this.start.bind(this)}),c.push({name:\"touchmove\",handler:this.move.bind(this)},{name:\"touchend\",handler:this.end.bind(this)},{name:\"touchcancel\",handler:this.end.bind(this)})),u&&(l.push({name:\"mousedown\",handler:this.start.bind(this)}),c.push({name:\"mousemove\",handler:this.move.bind(this)},{name:\"mouseup\",handler:this.end.bind(this)})),this.wrapperEventRegister=new R(s,l),this.targetEventRegister=new R(a,c)},o.prototype.beforeHandler=function(t,e){var i=this.options,n=i.preventDefault,r=i.stopPropagation,s=i.preventDefaultException,a={start:function(){return n&&!M(t.target,s)},end:function(){return n&&!M(t.target,s)},move:function(){return n}};a[e]()&&t.preventDefault(),r&&t.stopPropagation()},o.prototype.setInitiated=function(t){t===void 0&&(t=0),this.initiated=t},o.prototype.start=function(t){var e=U[t.type];if(!(this.initiated&&this.initiated!==e)){if(this.setInitiated(e),Zt(t.target,this.options.tagException)){this.setInitiated();return}if(!(e===2&&t.button!==0)&&!this.hooks.trigger(this.hooks.eventTypes.beforeStart,t)){this.beforeHandler(t,\"start\");var i=t.touches?t.touches[0]:t;this.pointX=i.pageX,this.pointY=i.pageY,this.hooks.trigger(this.hooks.eventTypes.start,t)}}},o.prototype.move=function(t){if(U[t.type]===this.initiated){this.beforeHandler(t,\"move\");var e=t.touches?t.touches[0]:t,i=e.pageX-this.pointX,n=e.pageY-this.pointY;if(this.pointX=e.pageX,this.pointY=e.pageY,!this.hooks.trigger(this.hooks.eventTypes.move,{deltaX:i,deltaY:n,e:t})){var r=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,s=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,a=this.pointX-r,l=this.pointY-s,c=this.options.autoEndDistance;(a>document.documentElement.clientWidth-c||l>document.documentElement.clientHeight-c||a<c||l<c)&&this.end(t)}}},o.prototype.end=function(t){U[t.type]===this.initiated&&(this.setInitiated(),this.beforeHandler(t,\"end\"),this.hooks.trigger(this.hooks.eventTypes.end,t))},o.prototype.click=function(t){this.hooks.trigger(this.hooks.eventTypes.click,t)},o.prototype.setContent=function(t){t!==this.wrapper&&(this.wrapper=t,this.rebindDOMEvents())},o.prototype.rebindDOMEvents=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.handleDOMEvents()},o.prototype.destroy=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.hooks.destroy()},o}(),G={x:[\"translateX\",\"px\"],y:[\"translateY\",\"px\"]},ce=function(){function o(t){this.setContent(t),this.hooks=new w([\"beforeTranslate\",\"translate\"])}return o.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.content,null),e=t[E.transform].split(\")\")[0].split(\", \"),i=+(e[12]||e[4])||0,n=+(e[13]||e[5])||0;return{x:i,y:n}},o.prototype.translate=function(t){var e=[];Object.keys(t).forEach(function(i){if(G[i]){var n=G[i][0];if(n){var r=G[i][1],s=t[i];e.push(n+\"(\"+s+r+\")\")}}}),this.hooks.trigger(this.hooks.eventTypes.beforeTranslate,e,t),this.style[E.transform]=e.join(\" \"),this.hooks.trigger(this.hooks.eventTypes.translate,t)},o.prototype.setContent=function(t){this.content!==t&&(this.content=t,this.style=t.style)},o.prototype.destroy=function(){this.hooks.destroy()},o}(),Dt=function(){function o(t,e,i){this.translater=e,this.options=i,this.timer=0,this.hooks=new w([\"move\",\"end\",\"beforeForceStop\",\"forceStop\",\"callStop\",\"time\",\"timeFunction\"]),this.setContent(t)}return o.prototype.translate=function(t){this.translater.translate(t)},o.prototype.setPending=function(t){this.pending=t},o.prototype.setForceStopped=function(t){this.forceStopped=t},o.prototype.setCallStop=function(t){this.callStopWhenPending=t},o.prototype.setContent=function(t){this.content!==t&&(this.content=t,this.style=t.style,this.stop())},o.prototype.clearTimer=function(){this.timer&&(x(this.timer),this.timer=0)},o.prototype.destroy=function(){this.hooks.destroy(),x(this.timer)},o}(),le=function(o,t,e,i){var n=function(c,h){var u=c-h,f=u>0?-1:u<0?1:0;return f},r=n(t.x,o.x),s=n(t.y,o.y),a=e.x-i.x,l=e.y-i.y;return r*a<=0&&s*l<=0},he=function(o){H(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.startProbe=function(e,i){var n=this,r=e,s=function(){var a=n.translater.getComputedPosition();le(e,i,a,r)&&n.hooks.trigger(n.hooks.eventTypes.move,a),n.pending||(n.callStopWhenPending?n.callStopWhenPending=!1:n.hooks.trigger(n.hooks.eventTypes.end,a)),r=a,n.pending&&(n.timer=Lt(s))};this.callStopWhenPending&&this.setCallStop(!1),x(this.timer),s()},t.prototype.transitionTime=function(e){e===void 0&&(e=0),this.style[E.transitionDuration]=e+\"ms\",this.hooks.trigger(this.hooks.eventTypes.time,e)},t.prototype.transitionTimingFunction=function(e){this.style[E.transitionTimingFunction]=e,this.hooks.trigger(this.hooks.eventTypes.timeFunction,e)},t.prototype.transitionProperty=function(){this.style[E.transitionProperty]=E.transform},t.prototype.move=function(e,i,n,r){this.setPending(n>0),this.transitionTimingFunction(r),this.transitionProperty(),this.transitionTime(n),this.translate(i);var s=this.options.probeType===3;n&&s&&this.startProbe(e,i),n||(this._reflow=this.content.offsetHeight,s&&this.hooks.trigger(this.hooks.eventTypes.move,i),this.hooks.trigger(this.hooks.eventTypes.end,i))},t.prototype.doStop=function(){var e=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),e){this.setPending(!1),x(this.timer);var i=this.translater.getComputedPosition(),n=i.x,r=i.y;this.transitionTime(),this.translate({x:n,y:r}),this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,{x:n,y:r})}return e},t.prototype.stop=function(){var e=this.doStop();e&&this.hooks.trigger(this.hooks.eventTypes.callStop)},t}(Dt),ue=function(o){H(t,o);function t(){return o!==null&&o.apply(this,arguments)||this}return t.prototype.move=function(e,i,n,r){if(!n){this.translate(i),this.options.probeType===3&&this.hooks.trigger(this.hooks.eventTypes.move,i),this.hooks.trigger(this.hooks.eventTypes.end,i);return}this.animate(e,i,n,r)},t.prototype.animate=function(e,i,n,r){var s=this,a=P(),l=a+n,c=this.options.probeType===3,h=function(){var u=P();if(u>=l){s.translate(i),c&&s.hooks.trigger(s.hooks.eventTypes.move,i),s.hooks.trigger(s.hooks.eventTypes.end,i);return}u=(u-a)/n;var f=r(u),g={};Object.keys(i).forEach(function(d){var rt=e[d],It=i[d];g[d]=(It-rt)*f+rt}),s.translate(g),c&&s.hooks.trigger(s.hooks.eventTypes.move,g),s.pending&&(s.timer=Lt(h)),s.pending||(s.callStopWhenPending?s.callStopWhenPending=!1:s.hooks.trigger(s.hooks.eventTypes.end,i))};this.setPending(!0),this.callStopWhenPending&&this.setCallStop(!1),x(this.timer),h()},t.prototype.doStop=function(){var e=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),e){this.setPending(!1),x(this.timer);var i=this.translater.getComputedPosition();this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,i)}return e},t.prototype.stop=function(){var e=this.doStop();e&&this.hooks.trigger(this.hooks.eventTypes.callStop)},t}(Dt);function pe(o,t,e){var i=e.useTransition,n={};return Object.defineProperty(n,\"probeType\",{enumerable:!0,configurable:!1,get:function(){return e.probeType}}),i?new he(o,t,n):new ue(o,t,n)}var gt=function(){function o(t,e,i){this.wrapper=t,this.options=i,this.hooks=new w([\"beforeComputeBoundary\",\"computeBoundary\",\"momentum\",\"end\",\"ignoreHasScroll\"]),this.refresh(e)}return o.prototype.start=function(){this.dist=0,this.setMovingDirection(0),this.setDirection(0)},o.prototype.move=function(t){return t=this.hasScroll?t:0,this.setMovingDirection(t),this.performDampingAlgorithm(t,this.options.outOfBoundaryDampingFactor)},o.prototype.setMovingDirection=function(t){this.movingDirection=t>0?-1:t<0?1:0},o.prototype.setDirection=function(t){this.direction=t>0?-1:t<0?1:0},o.prototype.performDampingAlgorithm=function(t,e){var i=this.currentPos+t;return(i>this.minScrollPos||i<this.maxScrollPos)&&(i>this.minScrollPos&&this.options.bounces[0]||i<this.maxScrollPos&&this.options.bounces[1]?i=this.currentPos+t*e:i=i>this.minScrollPos?this.minScrollPos:this.maxScrollPos),i},o.prototype.end=function(t){var e={duration:0},i=Math.abs(this.currentPos-this.startPos);if(this.options.momentum&&t<this.options.momentumLimitTime&&i>this.options.momentumLimitDistance){var n=this.direction===-1&&this.options.bounces[0]||this.direction===1&&this.options.bounces[1]?this.wrapperSize:0;e=this.hasScroll?this.momentum(this.currentPos,this.startPos,t,this.maxScrollPos,this.minScrollPos,n,this.options):{destination:this.currentPos,duration:0}}else this.hooks.trigger(this.hooks.eventTypes.end,e);return e},o.prototype.momentum=function(t,e,i,n,r,s,a){a===void 0&&(a=this.options);var l=t-e,c=Math.abs(l)/i,h=a.deceleration,u=a.swipeBounceTime,f=a.swipeTime,g=Math.min(f,c*2/h),d={destination:t+c*c/h*(l<0?-1:1),duration:g,rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,d,l),d.destination<n?(d.destination=s?Math.max(n-s/4,n-s/d.rate*c):n,d.duration=u):d.destination>r&&(d.destination=s?Math.min(r+s/4,r+s/d.rate*c):r,d.duration=u),d.destination=Math.round(d.destination),d},o.prototype.updateDirection=function(){var t=this.currentPos-this.absStartPos;this.setDirection(t)},o.prototype.refresh=function(t){var e=this.options.rect,i=e.size,n=e.position,r=window.getComputedStyle(this.wrapper,null).position===\"static\",s=vt(this.wrapper);this.wrapperSize=this.wrapper[i===\"width\"?\"clientWidth\":\"clientHeight\"],this.setContent(t);var a=vt(this.content);this.contentSize=a[i],this.relativeOffset=a[n],r&&(this.relativeOffset-=s[n]),this.computeBoundary(),this.setDirection(0)},o.prototype.setContent=function(t){t!==this.content&&(this.content=t,this.resetState())},o.prototype.resetState=function(){this.currentPos=0,this.startPos=0,this.dist=0,this.setDirection(0),this.setMovingDirection(0),this.resetStartPos()},o.prototype.computeBoundary=function(){this.hooks.trigger(this.hooks.eventTypes.beforeComputeBoundary);var t={minScrollPos:0,maxScrollPos:this.wrapperSize-this.contentSize};t.maxScrollPos<0&&(t.maxScrollPos-=this.relativeOffset,this.options.specifiedIndexAsContent===0&&(t.minScrollPos=-this.relativeOffset)),this.hooks.trigger(this.hooks.eventTypes.computeBoundary,t),this.minScrollPos=t.minScrollPos,this.maxScrollPos=t.maxScrollPos,this.hasScroll=this.options.scrollable&&this.maxScrollPos<this.minScrollPos,!this.hasScroll&&this.minScrollPos<this.maxScrollPos&&(this.maxScrollPos=this.minScrollPos,this.contentSize=this.wrapperSize)},o.prototype.updatePosition=function(t){this.currentPos=t},o.prototype.getCurrentPos=function(){return this.currentPos},o.prototype.checkInBoundary=function(){var t=this.adjustPosition(this.currentPos),e=t===this.getCurrentPos();return{position:t,inBoundary:e}},o.prototype.adjustPosition=function(t){return!this.hasScroll&&!this.hooks.trigger(this.hooks.eventTypes.ignoreHasScroll)?t=this.minScrollPos:t>this.minScrollPos?t=this.minScrollPos:t<this.maxScrollPos&&(t=this.maxScrollPos),t},o.prototype.updateStartPos=function(){this.startPos=this.currentPos},o.prototype.updateAbsStartPos=function(){this.absStartPos=this.currentPos},o.prototype.resetStartPos=function(){this.updateStartPos(),this.updateAbsStartPos()},o.prototype.getAbsDist=function(t){return this.dist+=t,Math.abs(this.dist)},o.prototype.destroy=function(){this.hooks.destroy()},o}(),I,O,X,Y,yt=(I={},I.yes=function(o){return!0},I.no=function(o){return Et(o),!1},I),fe=(O={},O.horizontal=(X={},X.yes=\"horizontal\",X.no=\"vertical\",X),O.vertical=(Y={},Y.yes=\"vertical\",Y.no=\"horizontal\",Y),O),de=function(){function o(t,e,i){this.directionLockThreshold=t,this.freeScroll=e,this.eventPassthrough=i,this.reset()}return o.prototype.reset=function(){this.directionLocked=\"\"},o.prototype.checkMovingDirection=function(t,e,i){return this.computeDirectionLock(t,e),this.handleEventPassthrough(i)},o.prototype.adjustDelta=function(t,e){return this.directionLocked===\"horizontal\"?e=0:this.directionLocked===\"vertical\"&&(t=0),{deltaX:t,deltaY:e}},o.prototype.computeDirectionLock=function(t,e){this.directionLocked===\"\"&&!this.freeScroll&&(t>e+this.directionLockThreshold?this.directionLocked=\"horizontal\":e>=t+this.directionLockThreshold?this.directionLocked=\"vertical\":this.directionLocked=\"none\")},o.prototype.handleEventPassthrough=function(t){var e=fe[this.directionLocked];if(e){if(this.eventPassthrough===e.yes)return yt.yes(t);if(this.eventPassthrough===e.no)return yt.no(t)}return!1},o}(),ve=function(o,t,e){return e===2?[t,-o]:e===3?[-o,-t]:e===4?[-t,o]:[o,t]},me=function(){function o(t,e,i,n,r){this.hooks=new w([\"start\",\"beforeMove\",\"scrollStart\",\"scroll\",\"beforeEnd\",\"end\",\"scrollEnd\",\"contentNotMoved\",\"detectMovingDirection\",\"coordinateTransformation\"]),this.scrollBehaviorX=t,this.scrollBehaviorY=e,this.actionsHandler=i,this.animater=n,this.options=r,this.directionLockAction=new de(r.directionLockThreshold,r.freeScroll,r.eventPassthrough),this.enabled=!0,this.bindActionsHandler()}return o.prototype.bindActionsHandler=function(){var t=this;this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start,function(e){return t.enabled?t.handleStart(e):!0}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move,function(e){var i=e.deltaX,n=e.deltaY,r=e.e;if(!t.enabled)return!0;var s=ve(i,n,t.options.quadrant),a=s[0],l=s[1],c={deltaX:a,deltaY:l};return t.hooks.trigger(t.hooks.eventTypes.coordinateTransformation,c),t.handleMove(c.deltaX,c.deltaY,r)}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end,function(e){return t.enabled?t.handleEnd(e):!0}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click,function(e){t.enabled&&!e._constructed&&t.handleClick(e)})},o.prototype.handleStart=function(t){var e=P();this.fingerMoved=!1,this.contentMoved=!1,this.startTime=e,this.directionLockAction.reset(),this.scrollBehaviorX.start(),this.scrollBehaviorY.start(),this.animater.doStop(),this.scrollBehaviorX.resetStartPos(),this.scrollBehaviorY.resetStartPos(),this.hooks.trigger(this.hooks.eventTypes.start,t)},o.prototype.handleMove=function(t,e,i){if(!this.hooks.trigger(this.hooks.eventTypes.beforeMove,i)){var n=this.scrollBehaviorX.getAbsDist(t),r=this.scrollBehaviorY.getAbsDist(e),s=P();if(this.checkMomentum(n,r,s))return!0;if(this.directionLockAction.checkMovingDirection(n,r,i))return this.actionsHandler.setInitiated(),!0;var a=this.directionLockAction.adjustDelta(t,e),l=this.scrollBehaviorX.getCurrentPos(),c=this.scrollBehaviorX.move(a.deltaX),h=this.scrollBehaviorY.getCurrentPos(),u=this.scrollBehaviorY.move(a.deltaY);if(!this.hooks.trigger(this.hooks.eventTypes.detectMovingDirection)){this.fingerMoved||(this.fingerMoved=!0);var f=c!==l||u!==h;!this.contentMoved&&!f&&this.hooks.trigger(this.hooks.eventTypes.contentNotMoved),!this.contentMoved&&f&&(this.contentMoved=!0,this.hooks.trigger(this.hooks.eventTypes.scrollStart)),this.contentMoved&&f&&(this.animater.translate({x:c,y:u}),this.dispatchScroll(s))}}},o.prototype.dispatchScroll=function(t){t-this.startTime>this.options.momentumLimitTime&&(this.startTime=t,this.scrollBehaviorX.updateStartPos(),this.scrollBehaviorY.updateStartPos(),this.options.probeType===1&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())),this.options.probeType>1&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())},o.prototype.checkMomentum=function(t,e,i){return i-this.endTime>this.options.momentumLimitTime&&e<this.options.momentumLimitDistance&&t<this.options.momentumLimitDistance},o.prototype.handleEnd=function(t){if(!this.hooks.trigger(this.hooks.eventTypes.beforeEnd,t)){var e=this.getCurrentPos();if(this.scrollBehaviorX.updateDirection(),this.scrollBehaviorY.updateDirection(),this.hooks.trigger(this.hooks.eventTypes.end,t,e))return!0;e=this.ensureIntegerPos(e),this.animater.translate(e),this.endTime=P();var i=this.endTime-this.startTime;this.hooks.trigger(this.hooks.eventTypes.scrollEnd,e,i)}},o.prototype.ensureIntegerPos=function(t){this.ensuringInteger=!0;var e=t.x,i=t.y,n=this.scrollBehaviorX,r=n.minScrollPos,s=n.maxScrollPos,a=this.scrollBehaviorY,l=a.minScrollPos,c=a.maxScrollPos;return e=e>0?Math.ceil(e):Math.floor(e),i=i>0?Math.ceil(i):Math.floor(i),e=pt(e,s,r),i=pt(i,c,l),{x:e,y:i}},o.prototype.handleClick=function(t){M(t.target,this.options.preventDefaultException)||(Et(t),t.stopPropagation())},o.prototype.getCurrentPos=function(){return{x:this.scrollBehaviorX.getCurrentPos(),y:this.scrollBehaviorY.getCurrentPos()}},o.prototype.refresh=function(){this.endTime=0},o.prototype.destroy=function(){this.hooks.destroy()},o}();function ge(o){var t=[\"click\",\"bindToWrapper\",\"disableMouse\",\"disableTouch\",\"preventDefault\",\"stopPropagation\",\"tagException\",\"preventDefaultException\",\"autoEndDistance\"].reduce(function(e,i){return e[i]=o[i],e},{});return t}function kt(o,t,e,i){var n=[\"momentum\",\"momentumLimitTime\",\"momentumLimitDistance\",\"deceleration\",\"swipeBounceTime\",\"swipeTime\",\"outOfBoundaryDampingFactor\",\"specifiedIndexAsContent\"].reduce(function(r,s){return r[s]=o[s],r},{});return n.scrollable=!!o[t],n.bounces=e,n.rect=i,n}function tt(o,t,e){e.forEach(function(i){var n,r;typeof i==\"string\"?n=r=i:(n=i.source,r=i.target),o.on(n,function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return t.trigger.apply(t,Tt([r],s))})})}function ye(o,t){for(var e=Object.keys(o),i=0,n=e;i<n.length;i++){var r=n[i];if(o[r]!==t[r])return!1}return!0}var bt=1,ke=function(){function o(t,e,i){this.wrapper=t,this.content=e,this.resizeTimeout=0,this.hooks=new w([\"beforeStart\",\"beforeMove\",\"beforeScrollStart\",\"scrollStart\",\"scroll\",\"beforeEnd\",\"scrollEnd\",\"resize\",\"touchEnd\",\"end\",\"flick\",\"scrollCancel\",\"momentum\",\"scrollTo\",\"minDistanceScroll\",\"scrollToElement\",\"beforeRefresh\"]),this.options=i;var n=this.options.bounce,r=n.left,s=n.right,a=n.top,l=n.bottom;this.scrollBehaviorX=new gt(t,e,kt(i,\"scrollX\",[r,s],{size:\"width\",position:\"left\"})),this.scrollBehaviorY=new gt(t,e,kt(i,\"scrollY\",[a,l],{size:\"height\",position:\"top\"})),this.translater=new ce(this.content),this.animater=pe(this.content,this.translater,this.options),this.actionsHandler=new ae(this.options.bindToTarget?this.content:t,ge(this.options)),this.actions=new me(this.scrollBehaviorX,this.scrollBehaviorY,this.actionsHandler,this.animater,this.options);var c=this.resize.bind(this);this.resizeRegister=new R(window,[{name:\"orientationchange\",handler:c},{name:\"resize\",handler:c}]),this.registerTransitionEnd(),this.init()}return o.prototype.init=function(){var t=this;this.bindTranslater(),this.bindAnimater(),this.bindActions(),this.hooks.on(this.hooks.eventTypes.scrollEnd,function(){t.togglePointerEvents(!0)})},o.prototype.registerTransitionEnd=function(){this.transitionEndRegister=new R(this.content,[{name:E.transitionEnd,handler:this.transitionEnd.bind(this)}])},o.prototype.bindTranslater=function(){var t=this,e=this.translater.hooks;e.on(e.eventTypes.beforeTranslate,function(i){t.options.translateZ&&i.push(t.options.translateZ)}),e.on(e.eventTypes.translate,function(i){var n=t.getCurrentPos();if(t.updatePositions(i),t.actions.ensuringInteger===!0){t.actions.ensuringInteger=!1;return}(i.x!==n.x||i.y!==n.y)&&t.togglePointerEvents(!1)})},o.prototype.bindAnimater=function(){var t=this;this.animater.hooks.on(this.animater.hooks.eventTypes.end,function(e){t.resetPosition(t.options.bounceTime)||(t.animater.setPending(!1),t.hooks.trigger(t.hooks.eventTypes.scrollEnd,e))}),tt(this.animater.hooks,this.hooks,[{source:this.animater.hooks.eventTypes.move,target:this.hooks.eventTypes.scroll},{source:this.animater.hooks.eventTypes.forceStop,target:this.hooks.eventTypes.scrollEnd}])},o.prototype.bindActions=function(){var t=this,e=this.actions;tt(e.hooks,this.hooks,[{source:e.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeStart},{source:e.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeScrollStart},{source:e.hooks.eventTypes.beforeMove,target:this.hooks.eventTypes.beforeMove},{source:e.hooks.eventTypes.scrollStart,target:this.hooks.eventTypes.scrollStart},{source:e.hooks.eventTypes.scroll,target:this.hooks.eventTypes.scroll},{source:e.hooks.eventTypes.beforeEnd,target:this.hooks.eventTypes.beforeEnd}]),e.hooks.on(e.hooks.eventTypes.end,function(i,n){if(t.hooks.trigger(t.hooks.eventTypes.touchEnd,n),t.hooks.trigger(t.hooks.eventTypes.end,n)||!e.fingerMoved&&(t.hooks.trigger(t.hooks.eventTypes.scrollCancel),t.checkClick(i)))return!0;if(t.resetPosition(t.options.bounceTime,S.bounce))return t.animater.setForceStopped(!1),!0}),e.hooks.on(e.hooks.eventTypes.scrollEnd,function(i,n){var r=Math.abs(i.x-t.scrollBehaviorX.startPos),s=Math.abs(i.y-t.scrollBehaviorY.startPos);if(t.checkFlick(n,r,s)){t.animater.setForceStopped(!1),t.hooks.trigger(t.hooks.eventTypes.flick);return}if(t.momentum(i,n)){t.animater.setForceStopped(!1);return}e.contentMoved&&t.hooks.trigger(t.hooks.eventTypes.scrollEnd,i),t.animater.forceStopped&&t.animater.setForceStopped(!1)})},o.prototype.checkFlick=function(t,e,i){var n=1;if(this.hooks.events.flick.length>1&&t<this.options.flickLimitTime&&e<this.options.flickLimitDistance&&i<this.options.flickLimitDistance&&(i>n||e>n))return!0},o.prototype.momentum=function(t,e){var i={time:0,easing:S.swiper,newX:t.x,newY:t.y},n=this.scrollBehaviorX.end(e),r=this.scrollBehaviorY.end(e);if(i.newX=J(n.destination)?i.newX:n.destination,i.newY=J(r.destination)?i.newY:r.destination,i.time=Math.max(n.duration,r.duration),this.hooks.trigger(this.hooks.eventTypes.momentum,i,this),i.newX!==t.x||i.newY!==t.y)return(i.newX>this.scrollBehaviorX.minScrollPos||i.newX<this.scrollBehaviorX.maxScrollPos||i.newY>this.scrollBehaviorY.minScrollPos||i.newY<this.scrollBehaviorY.maxScrollPos)&&(i.easing=S.swipeBounce),this.scrollTo(i.newX,i.newY,i.time,i.easing),!0},o.prototype.checkClick=function(t){var e={preventClick:this.animater.forceStopped};if(this.hooks.trigger(this.hooks.eventTypes.checkClick))return this.animater.setForceStopped(!1),!0;if(!e.preventClick){var i=this.options.dblclick,n=!1;if(i&&this.lastClickTime){var r=i.delay,s=r===void 0?300:r;P()-this.lastClickTime<s&&(n=!0,te(t))}return this.options.tap&&Jt(t,this.options.tap),this.options.click&&!M(t.target,this.options.preventDefaultException)&&xt(t),this.lastClickTime=n?null:P(),!0}return!1},o.prototype.resize=function(){var t=this;this.actions.enabled&&(qt&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(function(){t.hooks.trigger(t.hooks.eventTypes.resize)},this.options.resizePolling))},o.prototype.transitionEnd=function(t){if(!(t.target!==this.content||!this.animater.pending)){var e=this.animater;e.transitionTime(),this.resetPosition(this.options.bounceTime,S.bounce)||(this.animater.setPending(!1),this.options.probeType!==3&&this.hooks.trigger(this.hooks.eventTypes.scrollEnd,this.getCurrentPos()))}},o.prototype.togglePointerEvents=function(t){t===void 0&&(t=!0);for(var e=this.content.children.length?this.content.children:[this.content],i=t?\"auto\":\"none\",n=0;n<e.length;n++){var r=e[n];r.isBScrollContainer||(r.style.pointerEvents=i)}},o.prototype.refresh=function(t){var e=this.setContent(t);this.hooks.trigger(this.hooks.eventTypes.beforeRefresh),this.scrollBehaviorX.refresh(t),this.scrollBehaviorY.refresh(t),e&&(this.translater.setContent(t),this.animater.setContent(t),this.transitionEndRegister.destroy(),this.registerTransitionEnd(),this.options.bindToTarget&&this.actionsHandler.setContent(t)),this.actions.refresh(),this.wrapperOffset=ft(this.wrapper)},o.prototype.setContent=function(t){var e=t!==this.content;return e&&(this.content=t),e},o.prototype.scrollBy=function(t,e,i,n){i===void 0&&(i=0);var r=this.getCurrentPos(),s=r.x,a=r.y;n=n||S.bounce,t+=s,e+=a,this.scrollTo(t,e,i,n)},o.prototype.scrollTo=function(t,e,i,n,r){i===void 0&&(i=0),n===void 0&&(n=S.bounce),r===void 0&&(r={start:{},end:{}});var s=this.options.useTransition?n.style:n.fn,a=this.getCurrentPos(),l=B({x:a.x,y:a.y},r.start),c=B({x:t,y:e},r.end);if(this.hooks.trigger(this.hooks.eventTypes.scrollTo,c),!ye(l,c)){var h=Math.abs(c.x-l.x),u=Math.abs(c.y-l.y);h<bt&&u<bt&&(i=0,this.hooks.trigger(this.hooks.eventTypes.minDistanceScroll)),this.animater.move(l,c,i,s)}},o.prototype.scrollToElement=function(t,e,i,n,r){var s=St(t),a=ft(s),l=function(h,u,f){return typeof h==\"number\"?h:h?Math.round(u/2-f/2):0};i=l(i,s.offsetWidth,this.wrapper.offsetWidth),n=l(n,s.offsetHeight,this.wrapper.offsetHeight);var c=function(h,u,f,g){return h-=u,h=g.adjustPosition(h-f),h};a.left=c(a.left,this.wrapperOffset.left,i,this.scrollBehaviorX),a.top=c(a.top,this.wrapperOffset.top,n,this.scrollBehaviorY),!this.hooks.trigger(this.hooks.eventTypes.scrollToElement,s,a)&&this.scrollTo(a.left,a.top,e,r)},o.prototype.resetPosition=function(t,e){t===void 0&&(t=0),e===void 0&&(e=S.bounce);var i=this.scrollBehaviorX.checkInBoundary(),n=i.position,r=i.inBoundary,s=this.scrollBehaviorY.checkInBoundary(),a=s.position,l=s.inBoundary;return r&&l?!1:(Wt&&this.reflow(),this.scrollTo(n,a,t,e),!0)},o.prototype.reflow=function(){this._reflow=this.content.offsetHeight},o.prototype.updatePositions=function(t){this.scrollBehaviorX.updatePosition(t.x),this.scrollBehaviorY.updatePosition(t.y)},o.prototype.getCurrentPos=function(){return this.actions.getCurrentPos()},o.prototype.enable=function(){this.actions.enabled=!0},o.prototype.disable=function(){x(this.animater.timer),this.actions.enabled=!1},o.prototype.destroy=function(){var t=this,e=[\"resizeRegister\",\"transitionEndRegister\",\"actionsHandler\",\"actions\",\"hooks\",\"animater\",\"translater\",\"scrollBehaviorX\",\"scrollBehaviorY\"];e.forEach(function(i){return t[i].destroy()})},o}(),z=function(o){H(t,o);function t(e,i){var n=o.call(this,[\"refresh\",\"contentChanged\",\"enable\",\"disable\",\"beforeScrollStart\",\"scrollStart\",\"scroll\",\"scrollEnd\",\"scrollCancel\",\"touchEnd\",\"flick\",\"destroy\"])||this,r=St(e);return r?(n.plugins={},n.options=new se().merge(i).process(),n.setContent(r).valid&&(n.hooks=new w([\"refresh\",\"enable\",\"disable\",\"destroy\",\"beforeInitialScrollTo\",\"contentChanged\"]),n.init(r)),n):(F(\"Can not resolve the wrapper DOM.\"),n)}return t.use=function(e){var i=e.pluginName,n=t.plugins.some(function(r){return e===r.ctor});return n?t:J(i)?(F(\"Plugin Class must specify plugin's name in static property by 'pluginName' field.\"),t):(t.pluginsMap[i]=!0,t.plugins.push({name:i,applyOrder:e.applyOrder,ctor:e}),t)},t.prototype.setContent=function(e){var i=!1,n=!0,r=e.children[this.options.specifiedIndexAsContent];return r?(i=this.content!==r,i&&(this.content=r)):(F(\"The wrapper need at least one child element to be content element to scroll.\"),n=!1),{valid:n,contentChanged:i}},t.prototype.init=function(e){var i=this;this.wrapper=e,e.isBScrollContainer=!0,this.scroller=new ke(e,this.content,this.options),this.scroller.hooks.on(this.scroller.hooks.eventTypes.resize,function(){i.refresh()}),this.eventBubbling(),this.handleAutoBlur(),this.enable(),this.proxy(Nt),this.applyPlugins(),this.refreshWithoutReset(this.content);var n=this.options,r=n.startX,s=n.startY,a={x:r,y:s};this.hooks.trigger(this.hooks.eventTypes.beforeInitialScrollTo,a)||this.scroller.scrollTo(a.x,a.y)},t.prototype.applyPlugins=function(){var e=this,i=this.options;t.plugins.sort(function(n,r){var s,a=(s={},s.pre=-1,s.post=1,s),l=n.applyOrder?a[n.applyOrder]:0,c=r.applyOrder?a[r.applyOrder]:0;return l-c}).forEach(function(n){var r=n.ctor;i[n.name]&&typeof r==\"function\"&&(e.plugins[n.name]=new r(e))})},t.prototype.handleAutoBlur=function(){this.options.autoBlur&&this.on(this.eventTypes.beforeScrollStart,function(){var e=document.activeElement;e&&(e.tagName===\"INPUT\"||e.tagName===\"TEXTAREA\")&&e.blur()})},t.prototype.eventBubbling=function(){tt(this.scroller.hooks,this,[this.eventTypes.beforeScrollStart,this.eventTypes.scrollStart,this.eventTypes.scroll,this.eventTypes.scrollEnd,this.eventTypes.scrollCancel,this.eventTypes.touchEnd,this.eventTypes.flick])},t.prototype.refreshWithoutReset=function(e){this.scroller.refresh(e),this.hooks.trigger(this.hooks.eventTypes.refresh,e),this.trigger(this.eventTypes.refresh,e)},t.prototype.proxy=function(e){var i=this;e.forEach(function(n){var r=n.key,s=n.sourceKey;ne(i,s,r)})},t.prototype.refresh=function(){var e=this.setContent(this.wrapper),i=e.contentChanged,n=e.valid;if(n){var r=this.content;this.refreshWithoutReset(r),i&&(this.hooks.trigger(this.hooks.eventTypes.contentChanged,r),this.trigger(this.eventTypes.contentChanged,r)),this.scroller.resetPosition()}},t.prototype.enable=function(){this.scroller.enable(),this.hooks.trigger(this.hooks.eventTypes.enable),this.trigger(this.eventTypes.enable)},t.prototype.disable=function(){this.scroller.disable(),this.hooks.trigger(this.hooks.eventTypes.disable),this.trigger(this.eventTypes.disable)},t.prototype.destroy=function(){this.hooks.trigger(this.hooks.eventTypes.destroy),this.trigger(this.eventTypes.destroy),this.scroller.destroy()},t.prototype.eventRegister=function(e){this.registerType(e)},t.plugins=[],t.pluginsMap={},t}(w);function _(o,t){var e=new z(o,t);return e}_.use=z.use;_.plugins=z.plugins;_.pluginsMap=z.pluginsMap;var Bt=_;var D=class{static trackException(t){v.deferTask(()=>{typeof appInsights!=\"undefined\"&&appInsights.trackException(t)})}static trackEvent(t,e){v.deferTask(()=>{typeof appInsights!=\"undefined\"&&appInsights.trackEvent(t,e)})}};window.Logger=D;var K=W(N());var v=class o{constructor(){this.detectTouch(),this.detectKeyboard()}detectTouch(){window.addEventListener(\"touchstart\",t=>{document.getElementsByTagName(\"html\")[0].classList.add(\"user-has-touched\")})}static isTouch(){return document.documentElement.classList.contains(\"touch\")}detectKeyboard(){let t=document.getElementsByTagName(\"html\")[0],e=\"using-keyboard\";document.addEventListener(\"keydown\",()=>{K.default.mutate(()=>{t.classList.add(e)})}),document.addEventListener(\"mousedown\",()=>{K.default.mutate(()=>{t.classList.remove(e)})}),document.addEventListener(\"touchstart\",()=>{K.default.mutate(()=>{t.classList.remove(e)})})}static isUsingKeyboard(){return document.getElementsByTagName(\"html\")[0].classList.contains(\"using-keyboard\")}static hasUserTouched(){return document.getElementsByTagName(\"html\")[0].classList.contains(\"user-has-touched\")}static createEventForDispatch(t){let e;return typeof Event==\"function\"?e=new Event(t):(e=document.createEvent(\"Event\"),e.initEvent(t,!0,!0)),e}static createCustomEventForDispatch(t,e={}){let i;return window.CustomEvent&&typeof window.CustomEvent==\"function\"?i=new CustomEvent(t,{detail:e}):(i=document.createEvent(\"CustomEvent\"),i.initCustomEvent(t,!0,!0,e)),i}static getOffset(t){var e=t.getBoundingClientRect(),i=window.pageXOffset||document.documentElement.scrollLeft,n=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+n,left:e.left+i}}static debounce(t,e){let i=null;e=e||300;let n=function(){let r=this,s=arguments;clearTimeout(i),i=setTimeout(function(){t.apply(r,s)},e)};return n.cancel=function(){clearTimeout(i)},n}static getKeypressed(t){let e=t.key;if(e!==void 0)return e;let i=t.keyCode;if(i!==void 0)return i}static hash(t){let e=0;if(t.length)for(let i=0;i<t.length;i++)e=(e<<5)-e+t.charCodeAt(i++)|0;return e.toString()}static scopedLoop(t,e,i){for(var n=0,r=t.length;n<r;n++)(function(s){e(t[s],s,i)}).call(this,n)}static serialize(t,e=!1){let i=[],n=t.querySelectorAll(\"input,select,textarea\");for(var r=0;r<n.length;r++){let a=n[r];if(!(!a.name||a.disabled||a.type===\"file\"||a.type===\"reset\"||a.type===\"submit\"||a.type===\"button\"))if(a.type===\"select-multiple\")for(var s=0;s<a.options.length;s++)a.options[s].selected&&(e?i.push({name:encodeURIComponent(a.name),value:encodeURIComponent(a.options[s].value)}):i.push(encodeURIComponent(a.name)+\"=\"+encodeURIComponent(a.options[s].value)));else(a.type!==\"checkbox\"&&a.type!==\"radio\"||a.checked)&&(e?i.push({name:encodeURIComponent(a.name),value:encodeURIComponent(a.value)}):i.push(encodeURIComponent(a.name)+\"=\"+encodeURIComponent(a.value)))}return e?i:i.join(\"&\")}static isNumber(t){return new RegExp(\"^[0-9]+$\").test(t)}static scrollTo(t=0,e=750){let i=window.scrollY||window.pageYOffset,n=t-i,r=20,s=0,a=()=>{s+=r;let l=o.easeInOutQuad(s,i,n,e);window.scrollTo(0,l),s<e&&setTimeout(a,r)};a()}static easeInOutQuad(t,e,i,n){return t/=n/2,t<1?i/2*t*t+e:(t--,-i/2*(t*(t-2)-1)+e)}static removeElement(t){t&&t.parentNode&&t.parentNode.removeChild(t)}static loadHtml(t,e){return fetch(t,{method:\"GET\",headers:{\"Content-Type\":\"text/html\"}}).then(function(i){return i.text()}).then(function(i){return new DOMParser().parseFromString(i,\"text/html\").getElementById(e)})}static getParameter(t,e){t=t.replace(/[\\[]/,\"\\\\[\").replace(/[\\]]/,\"\\\\]\"),e||(e=location.search);let n=new RegExp(\"[\\\\?&]\"+t+\"=([^&#]*)\").exec(e);return n===null?\"\":decodeURIComponent(n[1].replace(/\\+/g,\" \"))}static updateQueryStringParameter(t,e,i){let n=t.indexOf(\"#\"),r=n===-1?\"\":t.substr(n);t=n===-1?t:t.substr(0,n);let s=new RegExp(\"([?&])\"+e+\"=.*?(&|$)\",\"i\"),a=t.indexOf(\"?\")!==-1?\"&\":\"?\";return t.match(s)?t=t.replace(s,\"$1\"+e+\"=\"+i+\"$2\"):t=t+a+e+\"=\"+i,t+r}static guid(){return\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,function(t){var e=Math.random()*16|0,i=t==\"x\"?e:e&3|8;return i.toString(16)})}static preloadImage(t){return new Promise(function(e,i){if(document.querySelector('img[src=\"'+t+'\"]'))e();else{var n=new Image;n.onload=()=>e(),n.onerror=()=>i(),n.src=t,n.style.opacity=\"0.0001\",n.style.position=\"fixed\",n.style.pointerEvents=\"none\",n.style.top=\"0px\",n.style.left=navigator.userAgent.toLowerCase().indexOf(\"firefox\")>-1?\"0px\":\"calc(100% - 1px)\",n.style.zIndex=\"100\",document.body.appendChild(n);var r='<link rel=\"preload\" href=\"'+t+'\" as=\"image\">';document.getElementsByTagName(\"head\")[0].insertAdjacentHTML(\"beforeend\",r)}})}static empty(t){for(;t.firstChild;)t.removeChild(t.firstChild)}static fadeOut(t,e){t.style.opacity=1,function i(){(t.style.opacity-=.1)<0?(t.style.display=\"none\",e()):requestAnimationFrame(i)}()}static fadeIn(t,e=\"block\",i){t.style.opacity=0,t.style.display=e||\"block\",function n(){var r=parseFloat(t.style.opacity);(r+=.1)>1?i():(t.style.opacity=r,requestAnimationFrame(n))}()}static pagination(t,e,i){let n=Math.ceil(t/e);return{currentPage:Math.ceil(i/e+1),totalPages:n}}static truncateText(t,e,i=\"...\"){let n=t.trim();if(t.length>n.length){let r=t.substr(0,e);r=r.substr(0,Math.min(r.length,r.lastIndexOf(\" \"))),n=r+i}return n}static isHidden(t){return t?t.offsetParent===null:!0}static getBrowser(){var t=navigator.userAgent,e,i=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\\/))\\/?\\s*(\\d+)/i)||[];return/trident/i.test(i[1])?(e=/\\brv[ :]+(\\d+)/g.exec(t)||[],{name:\"IE\",version:e[1]||\"\"}):i[1]===\"Chrome\"&&(e=t.match(/\\bOPR|Edge\\/(\\d+)/),e!=null)?{name:\"Opera\",version:e[1]}:(i=i[2]?[i[1],i[2]]:[navigator.appName,navigator.appVersion,\"-?\"],(e=t.match(/version\\/(\\d+)/i))!=null&&i.splice(1,1,e[1]),{name:i[0],version:i[1]})}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isWholeElementInViewport(t){let e=t.offsetTop,i=t.offsetLeft,n=t.offsetWidth,r=t.offsetHeight;for(;t.offsetParent;)t=t.offsetParent,e+=t.offsetTop,i+=t.offsetLeft;return e>=window.pageYOffset&&i>=window.pageXOffset&&e+r<=window.pageYOffset+window.innerHeight&&i+n<=window.pageXOffset+window.innerWidth}static clamp(t,e,i){return t>i?i:t<e?e:t}static escapeHtml(t){return t.replace(/&/g,\"&\").replace(/</g,\"<\").replace(/>/g,\">\").replace(/\"/g,\""\").replace(/'/g,\"'\")}static getPageTemplate(){let t=document.body.getAttribute(\"data-page-template\");return t||null}static fetchWithTimeout(n){return m(this,arguments,function*(t,e={},i=5e3){let r=new AbortController,{signal:s}=r,a=fetch(t,ht(lt({},e),{signal:s})),l=setTimeout(()=>r.abort(),i);try{let c=yield a;return clearTimeout(l),c}catch(c){throw clearTimeout(l),c}})}static objectsAreTheSame(t,e){try{return JSON.stringify(t)===JSON.stringify(e)}catch(i){return D.trackException(i),!1}}static deferTask(t,e=250){requestIdleCallback(()=>{t()},{timeout:e})}static getElementIndex(t){return!t||!t.parentNode?-1:Array.prototype.slice.call(t.parentNode.children).indexOf(t)}static roundToTwoDecimals(t){return Math.round((t+Number.EPSILON)*100)/100}static searchDataLayer(t){for(let e=0;e<dataLayer.length;e++)if(dataLayer[e][t])return dataLayer[e][t];return\"\"}};window.Helpers=v;new v;var k=W(N()),p={doc:$(document),win:$(window),body:$(\"body\"),html:$(\"html\"),transitionSpeed:300,touchFlag:!1,activeSiteSetting:document.body.getAttribute(\"data-active-site-setting\"),modernizrIsTouch:function(){return\"ontouchstart\"in document||window.DocumentTouch&&document instanceof DocumentTouch},detectTouch:function(){var o=p.modernizrIsTouch(),t=typeof navigator.maxTouchPoints!=\"undefined\"?navigator.maxTouchPoints:!1;p.touchFlag=!!(o||t),k.default.mutate(()=>{p.html.addClass(o?\"touch\":\"no-touch\")})},preInit:function(){p.detectTouch(),p.standalone(),p.userNav(),p.detectNoHover(),p.detectDefaultFontSize(),p.detectInteractionMediaQuerySupport(),p.detectGridSupport(),p.instantPageLinks(),p.openLiveChat(),p.disableFooterNewsletterInput(),p.init()},init:function(){p.smoothScroll(),p.forms.init(),p.cms.init()},debugFontWeight:function(){for(var o=document.querySelectorAll(\"*\"),t=0;t<o.length;t++){var e=window.getComputedStyle(o[t]),i=e.getPropertyValue(\"font-weight\");i!==\"400\"&&(o[t].classList.add(\"u-debug\"),console.log(o[t],i))}},standalone:function(){if(\"standalone\"in window.navigator&&window.navigator.standalone){var o,t=!1;document.addEventListener(\"click\",function(e){for(o=e.target;o.nodeName!==\"A\"&&o.nodeName!==\"HTML\";)o=o.parentNode;\"href\"in o&&o.href.indexOf(\"http\")!==-1&&(o.href.indexOf(document.location.host)!==-1||t)&&(e.preventDefault(),document.location.href=o.href)},!1)}},userNav:function(){var o=$(\".js-header-utils\"),t=$(\".js-header-utils-item\"),e=\"c-header__utils__item--hovering\",i=\"(min-width:980px)\";o.length&&(t.hover(function(){!p.modernizrIsTouch()&&window.matchMedia(i).matches&&k.default.mutate(()=>{$(this).addClass(e)})},function(){!p.modernizrIsTouch()&&window.matchMedia(i).matches&&k.default.mutate(()=>{$(this).removeClass(e)})}),t.find(\"a\").on(\"click\",function(){var n=$(this).parent();if(p.modernizrIsTouch()&&window.matchMedia(i).matches)return k.default.mutate(()=>{n.toggleClass(e)}),!1}),$(window).on(\"resize\",function(){k.default.mutate(()=>{t.removeClass(e)})}))},smoothScroll:function(){$('a[href*=\"#\"]:not(.scrollDone):not(.js-tooltip-trigger):not(.js-ignore-scroll):not(.js-print):not(.js-skip-link)').each(function(){var o=$(this);o.on(\"click\",function(){if(location.pathname.replace(/^\\//,\"\")==this.pathname.replace(/^\\//,\"\")&&location.hostname==this.hostname){var t=$(this.hash);if(t=t.length<=1&&t||$(\"[name=\"+this.hash.slice(1)+\"]\"),t.length){var e=t.offset().top;return $(window).scrollTop!=e&&$(\"html, body\").animate({scrollTop:e},p.transitionSpeed*2),!1}}}),o.addClass(\"scrollDone\")})},forms:{init:function(){p.forms.adapters(),p.forms.disabled(),p.forms.submit(),p.forms.autocomplete.init(),p.forms.maxlength(),p.forms.rating(),p.forms.showIf(),p.forms.captcha(),p.forms.scrollToFormMessages()},adapters:function(){$.validator.unobtrusive.adapters.addBool(\"mandatory\",\"required\"),$.validator.addMethod(\"filesize\",function(o,t,e){for(var i=parseInt(t.getAttribute(\"data-max-upload-size\")),n=!0,r=0,s=0;s<t.files.length;s++){var a=t.files[s];r+=a.size}return r>i&&(n=!1),this.optional(t)||n},function(o,t){var e=parseInt(t.getAttribute(\"data-max-upload-size\")),i=(e/(1024*1024)).toFixed(2);return\"Total file size must be less than \"+i+\"MB\"}),$.validator.unobtrusive.adapters.add(\"requiredif\",[\"dependentproperty\",\"dependentvalue\",\"pattern\"],function(o){o.rules.requiredif=o.params,o.message&&(o.messages.requiredif=o.message)}),$.validator.addMethod(\"requiredif\",function(o,t,e){var i=e.dependentproperty;t.closest(\".js-address-lookup\")&&(i=\"AddressViewModel.\"+e.dependentproperty);var n=$(t).closest(\"form\").find('[name=\"'+i+'\"]').val();if(n==e.dependentvalue){var r=new RegExp(e.pattern.replaceAll(\"^(?i)\",\"^\"),\"i\");return $(t).attr(\"name\").toLowerCase().indexOf(\"postcode\")>-1?r=new RegExp(e.pattern.replaceAll(\"^(?i)\",\"^\"),\"i\"):r=new RegExp(e.pattern),r.test(o)}return!0})},disabled:function(){$(\"a.disabled, button.disabled, input.disabled\").off(\"click.site.disabled\").on(\"click.site.disabled\",function(){return!1})},submit:function(){$(\"form:not(.formDone)\").each(function(){var o=$(this),t=$(window);o.on(\"submit\",function(){o.removeData(\"validator\"),o.removeData(\"unobtrusiveValidation\"),$.validator.setDefaults({ignore:\":hidden:not(select)\"}),$.validator.unobtrusive.parse(o),p.forms.addFilesizeRule()}),o.addClass(\"formDone\")}),$('form[data-autosubmit=\"true\"]:not(.formAutoDone)').each(function(){var o=$(this);o.find('[data-autosubmit=\"true\"]').on(\"change\",function(){o.submit()}),o.addClass(\"formAutoDone\")})},autocomplete:{init:function(){p.forms.autocomplete.simple(),p.forms.autocomplete.products()},simple:function(){$(\"div#autocomplete\").length<1&&$(\"body\").append('<div id=\"autocomplete\" />'),$(\"input[data-autocomplete]:not(.autocompleteDone,.addressLookup)\").each(function(){var o=$(this),t=o.attr(\"data-autocomplete\");o.autocomplete({minLength:2,source:t,appendTo:\"#autocomplete\",open:function(){p.win.width()<1420&&$(\"#autocomplete .ui-menu\").width(340)},select:function(e,i){window.location.href=i.item.Url},create:function(){$(this).data(\"ui-autocomplete\")._renderItem=function(e,i){return $(\"<li>\").append(\"<a>\"+i.DisplayName+\"</a>\").appendTo(e)}}}).attr(\"autocomplete\",\"off\"),p.win.resize(function(){o.autocomplete(\"close\")}),o.addClass(\"autocompleteDone\")})},products:function(){$(\"div#autocompleteProducts\").length<1&&$(\"body\").append('<div id=\"autocompleteProducts\" />'),$(\"input[data-autocomplete-products]:not(.autocompleteProductsDone)\").each(function(){var o=$(this),t=o.attr(\"data-autocomplete-products\");o.autocomplete({minLength:3,source:t,position:{at:\"left-120px top+100%\"},appendTo:\"#autocompleteProducts\",select:function(e,i){return location.href=i.item.Url,!1}}).attr(\"autocomplete\",\"off\").data(\"ui-autocomplete\")._renderItem=function(e,i){e.addClass(\"autocomplete-products\");var n=$(i.Template).html();return Mustache.parse(n),$(Mustache.render(n,i)).data(\"item.autocomplete\",i).appendTo(e)},p.win.resize(function(){o.autocomplete(\"close\")}),o.addClass(\"autocompleteProductsDone\")})}},maxlength:function(){$(\"input[data-maxlength]:not(.maxlengthDone), textarea[data-maxlength]:not(.maxlengthDone)\").each(function(){var o=$(this),t=o.parent().find(\".count\"),e=parseInt(o.attr(\"data-maxlength\"),10);o.on(\"keyup click blur\",function(){var i=e-o.val().length;i<=0&&(o.val(o.val().substr(0,e)),i=0),t.text(i)}).blur(),o.addClass(\"maxlengthDone\")})},addFilesizeRule:function(){$(\"[data-max-upload-size]\").length&&$(\"[data-max-upload-size]\").rules(\"add\",{filesize:!0})},rating:function(){$(\".formRadiosRating:not(.ratingDone)\").each(function(){var o=$(this),t=o.find('input[type=\"radio\"]'),e=t.filter(\":checked\").val();function i(n){typeof n==\"undefined\"&&(n=0),n=parseInt(n,10),(isNaN(n)||n<1||n>5)&&(n=0),t.each(function(){var r=$(this),s=r.closest(\"label\");s.removeClass(\"hover\"),r.val()<=n&&s.addClass(\"hover\")})}i(e),t.closest(\"label\").hover(function(){var n=$(this).find('input[type=\"radio\"]');i(n.val())},function(){i(e)}),t.on(\"change\",function(){e=parseInt($(this).val(),10)}),o.addClass(\"ratingDone\")})},showIf:function(){$(\".formChecks[data-show-if] input[data-show-if]:checkbox:not(.showIfDone)\").each(function(){var t=$(this),e=t.attr(\"data-reverse\")==\"true\",i=t.attr(\"data-show-if\").split(\",\");function n(){if(!t.is(\":checked\")&&e)for(var r=0;r<i.length;r++)$(i[r]).show();else if(t.is(\":checked\")&&e)for(var r=0;r<i.length;r++)$(i[r]).hide();else if(t.is(\":checked\"))for(var r=0;r<i.length;r++)$(i[r]).show();else for(var r=0;r<i.length;r++)$(i[r]).hide()}t.on(\"change\",function(){n()}),n(),t.addClass(\"showIfDone\")});function o(){if(typeof v!=\"undefined\"){var t=v.createCustomEventForDispatch(\"dataShowRadioChange\");document.dispatchEvent(t)}}$(\".formRadios[data-show-if]:not(.showIfDone)\").each(function(){var t=$(this);t.find(\"input\").each(function(){var e=$(this),i=e.attr(\"name\");if(e.on(\"change\",function(){$('input[name=\"'+i+'\"][data-show-if]:not(:checked)').each(function(){for(var a=$(this),l=a.attr(\"data-show-if\").split(\",\"),c=0;c<l.length;c++)$(l[c]).hide(),$(l[c]).find(\"input, select\").attr(\"disabled\",\"disabled\")}),$('input[name=\"'+i+'\"][data-show-if]:checked').each(function(){for(var a=$(this),l=a.attr(\"data-show-if\").split(\",\"),c=0;c<l.length;c++)$(l[c]).show(),$(l[c]).find(\"input, select\").removeAttr(\"disabled\"),$(l[c]).find(\"input, select\").each(function(){$(this).attr(\"checked\")===\"checked\"&&$(this).prop(\"checked\",!0)})}),o()}),e.is(\"[data-show-if]:checked\")){for(var n=$(this),r=n.attr(\"data-show-if\").split(\",\"),s=0;s<r.length;s++)$(r[s]).show(),$(r[s]).find(\"input, select\").removeAttr(\"disabled\");o()}if(e.is(\"[data-show-if]:not(:checked)\")){for(var n=$(this),r=n.attr(\"data-show-if\").split(\",\"),s=0;s<r.length;s++)$(r[s]).hide(),$(r[s]).find(\"input, select\").attr(\"disabled\",\"disabled\");o()}}),t.addClass(\"showIfDone\")}),$(\"select[data-show-if]:not(.showIfDone)\").each(function(){var t=$(this);t.on(\"change\",function(){t.find(\"option[data-show-if]:not(:selected)\").each(function(){for(var i=$(this),n=i.attr(\"data-show-if\").split(\",\"),r=0;r<n.length;r++)$(n[r]).hide()});var e=t.find(\"option[data-show-if]:selected\");e.each(function(){for(var i=$(this),n=i.attr(\"data-show-if\").split(\",\"),r=0;r<n.length;r++)$(n[r]).show()})}),t.find(\"option[data-show-if]:selected\").each(function(){for(var e=$(this),i=e.attr(\"data-show-if\").split(\",\"),n=0;n<i.length;n++)$(i[n]).show()}),t.addClass(\"showIfDone\")})},captcha:function(){$(\".formCaptcha:not(.recaptchaDone)\").each(function(){})},scrollToFormMessages:function(){$(\".js-scroll-to-form-messages\").find(\".formError\").is(\":visible\")&&window.scrollTo(0,$(\".js-scroll-to-form-messages\").offset().top)}},cms:{init:function(){p.cms.images(),p.cms.tables()},images:function(){$(\".cms img:not(.cmsImgDone)\").each(function(){var o=$(this);o.removeAttr(\"style\",\"width\",\"height\"),o.addClass(\"cmsImgDone\")})},tables:function(){$(\"table tr.clickRow:not(.clickRowDone)\").each(function(){var o=$(this),t=o.attr(\"data-link\");o.find(\"*\").on(\"click\",function(){typeof t!=\"undefined\"&&t!=\"\"&&(window.location.href=t)}),o.addClass(\"clickRowDone\")}),$(\".cms table:not(.cmsTableDone):not(.blank)\").each(function(){var o=$(this);o.wrap('<div class=\"tableWrapper\" />'),o.addClass(\"cmsTableDone\")})}},detectNoHover:function(){matchMedia(\"(hover: none)\").matches&&k.default.mutate(()=>{p.html.addClass(\"matchmedia-no-hover\")})},detectDefaultFontSize:function(){var o=document.getElementsByTagName(\"html\")[0],t=Number(window.getComputedStyle(o).getPropertyValue(\"font-size\").match(/\\d+/)[0]);t>16&&(o.classList.add(\"has-scaled-up-text\"),t>23&&o.classList.add(\"has-scaled-up-text-large\"))},detectInteractionMediaQuerySupport:function(){!matchMedia(\"(hover)\").matches&&!matchMedia(\"(hover: none)\").matches&&k.default.mutate(()=>{p.html.addClass(\"interaction-media-query-not-supported\")})},detectGridSupport:function(){var o=document.createElement(\"div\"),t=typeof o.style.grid==\"string\";t||k.default.mutate(()=>{p.html.addClass(\"grid-not-supported\")})},getKeyPressed:function(o){if(o.key!==void 0)return o.key;if(o.keyIdentifier!==void 0)return o.keyIdentifier;if(o.keyCode!==void 0)return o.keyCode},debounce:function(o,t,e){var i;return function(){var n=this,r=arguments,s=function(){i=null,e||o.apply(n,r)},a=e&&!i;clearTimeout(i),i=setTimeout(s,t),a&&o.apply(n,r)}},instantPageLinks:function(){let o=document.querySelectorAll(\".js-instant-page-links a\");v.scopedLoop(o,(t,e,i)=>{k.default.mutate(()=>{t.setAttribute(\"data-instant\",\"\")})},this)},openLiveChat:function(){for(var o=document.querySelectorAll(\".js-open-live-chat\"),t=0;t<o.length;t++)o[t].addEventListener(\"click\",function(e){typeof LC_API!=\"undefined\"&&(e.preventDefault(),LC_API.open_chat_window())})},disableFooterNewsletterInput:function(){let o=document.querySelector(\".js-newsletter-signup__input\");o&&(o.setAttribute(\"disabled\",\"true\"),setTimeout(()=>{o.removeAttribute(\"disabled\")},500))}},nt=p;var Mt=W(N());var A=class{constructor(t){this.scrollLinkTriggered=!1;this.hideLeftClass=\"c-icon-navigation--hide-left-arrow\";this.hideRightClass=\"c-icon-navigation--hide-right-arrow\";this.container=t,this.scrollInner=this.container.querySelector(\".js-icon-navigation-inner\"),this.scrollLinks=this.container.querySelectorAll(\".js-icon-navigation-link\"),this.scrollList=this.container.querySelector(\".js-icon-navigation-list\"),this.scrollItemActive=this.container.querySelector(\".js-icon-navigation-item-active\"),this.setup();let e=this,i=nt.debounce(e.constrainAndAlign.bind(e),150,null);window.addEventListener(\"resize\",i)}setup(){this.scrollInner.style.height=this.scrollList.offsetHeight+\"px\",this.scrollInstance=new Bt(this.scrollInner,{scrollX:!0,scrollY:!1,eventPassthrough:\"vertical\",scrollbars:!1,tap:!0,click:!0,bounce:!0}),this.scrollInstance.on(\"scrollEnd\",()=>m(this,null,function*(){return this.setState()})),this.scrollInstance.on(\"scrollStart\",()=>m(this,null,function*(){return this.setState()})),this.links(),this.arrows(),this.constrainAndAlign()}setState(){return m(this,null,function*(){let t=yield this.currentX(),e=yield this.maxScroll();Mt.default.mutate(()=>{t===0?this.container.classList.add(this.hideLeftClass):this.container.classList.remove(this.hideLeftClass),t===e?this.container.classList.add(this.hideRightClass):this.container.classList.remove(this.hideRightClass)})})}currentX(t=3,e=100){return m(this,null,function*(){let i=Math.abs(this.scrollInstance.x);return t>0&&i===0?new Promise(n=>{setTimeout(()=>m(this,null,function*(){n(yield this.currentX(i,t-1))}),e)}):i>0?i:0})}maxScroll(t=3,e=1e3){return m(this,null,function*(){let i=Math.abs(this.scrollInstance.maxScrollX);return t>0&&i===0?new Promise(n=>{setTimeout(()=>m(this,null,function*(){n(yield this.maxScroll(i,t-1))}),e)}):i>0?i:0})}links(){if(this.scrollLinks.length)for(let t=0;t<this.scrollLinks.length;t++)this.scrollLinks[t].addEventListener(\"keydown\",e=>{let i=nt.getKeyPressed(e);(i===\"Enter\"||i===13)&&this.triggerLink(this.scrollLinks[t])}),this.scrollLinks[t].addEventListener(\"tap\",()=>{this.triggerLink(this.scrollLinks[t])},!1),this.scrollLinks[t].addEventListener(\"focus\",e=>{setTimeout(function(){this.scrollInstance&&!this.scrollLinkTriggered&&this.scrollInstance.scrollToElement(e.target,100,!0,!0)},100)})}createArrow(t,e){let i=document.createElement(\"button\");for(let n=0;n<t.length;n++)i.classList.add(t[n]);return i.setAttribute(\"type\",\"button\"),i.setAttribute(\"aria-label\",e),i.setAttribute(\"tabindex\",\"-1\"),i.innerHTML=e,i}arrows(){let t=this.createArrow([\"c-icon-navigation__arrow\",\"c-icon-navigation__arrow--left\",\"js-icon-navigation-left\"],\"Scroll left\"),e=this.createArrow([\"c-icon-navigation__arrow\",\"c-icon-navigation__arrow--right\",\"js-icon-navigation-right\"],\"Scroll right\");this.scrollInner.appendChild(t),this.scrollInner.appendChild(e),this.scrollArrowLeft=this.container.querySelector(\".js-icon-navigation-left\"),this.scrollArrowRight=this.container.querySelector(\".js-icon-navigation-right\"),this.scrollArrowLeft.addEventListener(\"click\",i=>{this.scrollInstance&&this.scrollInstance.scrollBy(this.scrollBy(!1),0,250)}),this.scrollArrowRight.addEventListener(\"click\",i=>{this.scrollInstance&&this.scrollInstance.scrollBy(this.scrollBy(!0),0,250)})}constrainAndAlign(){return m(this,null,function*(){!this.scrollInner||!this.scrollList||(this.scrollInner.style.height=this.scrollList.offsetHeight+\"px\",this.container.classList.remove(\"c-icon-navigation--can-navigate\"),this.scrollList.offsetWidth>this.scrollInner.offsetWidth&&(this.container.classList.add(\"c-icon-navigation--can-navigate\"),this.scrollToActive()),this.scrollInstance&&setTimeout(()=>this.scrollInstance.refresh(),0),this.container.classList.add(\"c-icon-navigation--show\"),yield this.setState())})}scrollToActive(){!this.scrollItemActive||!this.scrollInstance||setTimeout(()=>this.scrollInstance.scrollToElement(this.scrollItemActive,100,!0,!0),100)}isLarge(){return window.matchMedia(\"(min-width: 980px)\").matches}scrollBy(t){let e=this.isLarge()?160:90;return t&&(e=-Math.abs(e)),e}triggerLink(t){this.scrollLinkTriggered=!0;let e=t.getAttribute(\"href\");window.location.href=e}};var At=document.querySelectorAll(\".js-icon-navigation\");for(let o=0;o<At.length;o++)new A(At[o]);})();\n/*! Bundled license information:\n\n@better-scroll/core/dist/core.esm.js:\n (*!\n * better-scroll / core\n * (c) 2016-2023 ustbhuangyi\n * Released under the MIT License.\n *)\n (*! *****************************************************************************\n Copyright (c) Microsoft Corporation.\n \n Permission to use, copy, modify, and/or distribute this software for any\n purpose with or without fee is hereby granted.\n \n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n PERFORMANCE OF THIS SOFTWARE.\n ***************************************************************************** *)\n*/\n"],"file":"bundle-icon-navigation-3f57e67786.js"}