!function(t, e){ "object"==typeof exports&&"undefined"!=typeof module ? module.exports=e():"function"==typeof define&&define.amd ? define(e):(t="undefined"!=typeof globalThis ? globalThis:t||self).bootstrap=e() }(this,(function (){ "use strict"; const t=new Map, e={ set(e, i, n){ t.has(e)||t.set(e, new Map); const s=t.get(e); s.has(i)||0===s.size ? s.set(i, n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${ Array.from(s.keys())[ 0 ] }.`) }, get:(e, i)=> t.has(e)&&t.get(e).get(i)||null, remove(e, i){ if(!t.has(e)) return; const n=t.get(e); n.delete(i), 0===n.size&&t.delete(e) }}, i="transitionend", n=t =>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(( t, e)=> `#${ CSS.escape(e) }`))), t), s=t => { t.dispatchEvent(new Event(i)) }, o=t => !(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[ 0 ]), void 0!==t.nodeType), r=t => o(t) ? t.jquery ? t[ 0 ]:t : "string"==typeof t&&t.length > 0 ? document.querySelector(n(t)):null, a=t => { if(!o(t)||0===t.getClientRects().length) return !1; const e="visible"===getComputedStyle(t).getPropertyValue("visibility"), i=t.closest("details:not([open])"); if(!i) return e; if(i!==t){ const e=t.closest("summary"); if(e&&e.parentNode!==i) return !1; if(null===e) return !1 } return e }, l=t => !t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled ? t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")), c=t => { if(!document.documentElement.attachShadow) return null; if("function"==typeof t.getRootNode){ const e=t.getRootNode(); return e instanceof ShadowRoot ? e:null } return t instanceof ShadowRoot ? t:t.parentNode ? c(t.parentNode):null }, h=()=> { }, d=t => { t.offsetHeight }, u=()=> window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery") ? window.jQuery:null, f=[], p=()=> "rtl"===document.documentElement.dir, m=t => { var e; e=()=> { const e=u(); if(e){ const i=t.NAME, n=e.fn[ i ]; e.fn[ i ]=t.jQueryInterface, e.fn[ i ].Constructor=t, e.fn[ i ].noConflict=()=>(e.fn[ i ]=n, t.jQueryInterface) }}, "loading"===document.readyState ?(f.length||document.addEventListener("DOMContentLoaded",(()=> { for(const t of f) t() })), f.push(e)):e() }, g=(t, e=[], i=t)=> "function"==typeof t ? t(...e):i, _=(t, e, n = !0)=> { if(!n) return void g(t); const o=(t=> { if(!t) return 0; let { transitionDuration: e, transitionDelay: i }=window.getComputedStyle(t); const n=Number.parseFloat(e), s=Number.parseFloat(i); return n||s ?(e=e.split(",")[ 0 ], i=i.split(",")[ 0 ], 1e3 *(Number.parseFloat(e) + Number.parseFloat(i))):0 })(e) + 5; let r = !1; const a=({ target: n })=> { n===e&&(r = !0, e.removeEventListener(i, a), g(t)) }; e.addEventListener(i, a), setTimeout(( ()=> { r||s(e) }), o) }, b=(t, e, i, n)=> { const s=t.length; let o=t.indexOf(e); return -1===o ? !i&&n ? t[ s - 1 ]:t[ 0 ]:(o +=i ? 1:-1, n&&(o=(o + s) % s), t[ Math.max(0, Math.min(o, s - 1)) ]) }, v=/[^.]*(?=\..*)\.|.*/, y=/\..*/, w=/::\d+$/, A={}; let E=1; const T={ mouseenter: "mouseover", mouseleave: "mouseout" }, C=new Set([ "click", "dblclick", "mouseup", "mousedown", "contextmenu", "mousewheel", "DOMMouseScroll", "mouseover", "mouseout", "mousemove", "selectstart", "selectend", "keydown", "keypress", "keyup", "orientationchange", "touchstart", "touchmove", "touchend", "touchcancel", "pointerdown", "pointermove", "pointerup", "pointerleave", "pointercancel", "gesturestart", "gesturechange", "gestureend", "focus", "blur", "change", "reset", "select", "submit", "focusin", "focusout", "load", "unload", "beforeunload", "resize", "move", "DOMContentLoaded", "readystatechange", "error", "abort", "scroll" ]); function O(t, e){ return e&&`${ e }::${ E++ }`||t.uidEvent||E++ } function x(t){ const e=O(t); return t.uidEvent=e, A[ e ]=A[ e ]||{}, A[ e ] } function k(t, e, i=null){ return Object.values(t).find(( t=> t.callable===e&&t.delegationSelector===i)) } function L(t, e, i){ const n="string"==typeof e, s=n ? i:e||i; let o=I(t); return C.has(o)||(o=t), [ n, s, o ] } function S(t, e, i, n, s){ if("string"!=typeof e||!t) return; let [ o, r, a ]=L(e, i, n); if(e in T){ const t=t => function(e){ if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget)) return t.call(this, e) }; r=t(r) } const l=x(t), c=l[ a ]||(l[ a ]={}), h=k(c, r, o ? i:null); if(h) return void(h.oneOff=h.oneOff&&s); const d=O(r, e.replace(v, "")), u=o ? function(t, e, i){ return function n(s){ const o=t.querySelectorAll(e); for(let { target: r }=s; r&&r!==this; r=r.parentNode)for(const a of o) if(a===r) return P(s, { delegateTarget: r }), n.oneOff&&N.off(t, s.type, e, i), i.apply(r, [ s ]) }}(t, i, r):function(t, e){ return function i(n){ return P(n, { delegateTarget: t }), i.oneOff&&N.off(t, n.type, e), e.apply(t, [ n ]) }}(t, r); u.delegationSelector=o ? i:null, u.callable=r, u.oneOff=s, u.uidEvent=d, c[ d ]=u, t.addEventListener(a, u, o) } function D(t, e, i, n, s){ const o=k(e[ i ], n, s); o&&(t.removeEventListener(i, o, Boolean(s)), delete e[ i ][ o.uidEvent ]) } function $(t, e, i, n){ const s=e[ i ]||{}; for(const [ o, r ] of Object.entries(s)) o.includes(n)&&D(t, e, i, r.callable, r.delegationSelector) } function I(t){ return t=t.replace(y, ""), T[ t ]||t } const N={ on(t, e, i, n){ S(t, e, i, n, !1) }, one(t, e, i, n){ S(t, e, i, n, !0) }, off(t, e, i, n){ if("string"!=typeof e||!t) return; const [ s, o, r ]=L(e, i, n), a=r!==e, l=x(t), c=l[ r ]||{}, h=e.startsWith("."); if(void 0===o){ if(h) for(const i of Object.keys(l)) $(t, l, i, e.slice(1)); for(const [ i, n ] of Object.entries(c)){ const s=i.replace(w, ""); a&&!e.includes(s)||D(t, l, r, n.callable, n.delegationSelector) }}else{ if(!Object.keys(c).length) return; D(t, l, r, o, s ? i:null) }}, trigger(t, e, i){ if("string"!=typeof e||!t) return null; const n=u(); let s=null, o = !0, r = !0, a = !1; e!==I(e)&&n &&(s=n.Event(e, i), n(t).trigger(s), o = !s.isPropagationStopped(), r = !s.isImmediatePropagationStopped(), a=s.isDefaultPrevented()); const l=P(new Event(e, { bubbles: o, cancelable: !0 }), i); return a&&l.preventDefault(), r&&t.dispatchEvent(l), l.defaultPrevented&&s && s.preventDefault(), l }}; function P(t, e={}){ for(const [ i, n ] of Object.entries(e)) try { t[ i ]=n } catch(e){ Object.defineProperty(t, i, { configurable: !0, get: ()=> n }) } return t } function M(t){ if("true"===t) return !0; if("false"===t) return !1; if(t===Number(t).toString()) return Number(t); if(""===t||"null"===t) return null; if("string"!=typeof t) return t; try { return JSON.parse(decodeURIComponent(t)) } catch(e){ return t }} function j(t){ return t.replace(/[A-Z]/g,(t=> `-${ t.toLowerCase() }`)) } const F={ setDataAttribute(t, e, i){ t.setAttribute(`data-bs-${ j(e) }`, i) }, removeDataAttribute(t, e){ t.removeAttribute(`data-bs-${ j(e) }`) }, getDataAttributes(t){ if(!t) return {}; const e={}, i=Object.keys(t.dataset).filter(( t=> t.startsWith("bs")&&!t.startsWith("bsConfig"))); for(const n of i){ let i=n.replace(/^bs/, ""); i=i.charAt(0).toLowerCase() + i.slice(1, i.length), e[ i ]=M(t.dataset[ n ]) } return e }, getDataAttribute:(t, e)=> M(t.getAttribute(`data-bs-${ j(e) }`)) }; class H { static get Default(){ return {}} static get DefaultType(){ return {}} static get NAME(){ throw new Error('You have to implement the static method "NAME", for each component!') } _getConfig(t){ return t=this._mergeConfigObj(t), t=this._configAfterMerge(t), this._typeCheckConfig(t), t } _configAfterMerge(t){ return t } _mergeConfigObj(t, e){ const i=o(e) ? F.getDataAttribute(e, "config"):{}; return { ...this.constructor.Default, ..."object"==typeof i ? i:{}, ...o(e) ? F.getDataAttributes(e):{}, ..."object"==typeof t ? t:{}} } _typeCheckConfig(t, e=this.constructor.DefaultType){ for(const [ n, s ] of Object.entries(e)){ const e=t[ n ], r=o(e) ? "element":null==(i=e) ? `${ i }`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[ 1 ].toLowerCase(); if(!new RegExp(s).test(r)) throw new TypeError(`${ this.constructor.NAME.toUpperCase() }: Option "${ n }" provided type "${ r }" but expected type "${ s }".`) } var i }} class W extends H { constructor(t, i){ super(),(t=r(t))&&(this._element=t, this._config=this._getConfig(i), e.set(this._element, this.constructor.DATA_KEY, this)) } dispose(){ e.remove(this._element, this.constructor.DATA_KEY), N.off(this._element, this.constructor.EVENT_KEY); for(const t of Object.getOwnPropertyNames(this)) this[ t ]=null } _queueCallback(t, e, i = !0){ _(t, e, i) } _getConfig(t){ return t=this._mergeConfigObj(t, this._element), t=this._configAfterMerge(t), this._typeCheckConfig(t), t } static getInstance(t){ return e.get(r(t), this.DATA_KEY) } static getOrCreateInstance(t, e={}){ return this.getInstance(t)||new this(t, "object"==typeof e ? e:null) } static get VERSION(){ return "5.3.2" } static get DATA_KEY(){ return `bs.${ this.NAME }` } static get EVENT_KEY(){ return `.${ this.DATA_KEY }` } static eventName(t){ return `${ t }${ this.EVENT_KEY }` }} const B=t => { let e=t.getAttribute("data-bs-target"); if(!e||"#"===e){ let i=t.getAttribute("href"); if(!i||!i.includes("#")&&!i.startsWith(".")) return null; i.includes("#")&&!i.startsWith("#")&&(i=`#${ i.split("#")[ 1 ] }`), e=i&&"#"!==i ? n(i.trim()):null } return e }, z={ find:(t, e=document.documentElement)=> [].concat(...Element.prototype.querySelectorAll.call(e, t)), findOne:(t, e=document.documentElement)=> Element.prototype.querySelector.call(e, t), children:(t, e)=> [].concat(...t.children).filter(( t=> t.matches(e))), parents(t, e){ const i=[]; let n=t.parentNode.closest(e); for(; n;)i.push(n), n=n.parentNode.closest(e); return i }, prev(t, e){ let i=t.previousElementSibling; for(; i;){ if(i.matches(e)) return [ i ]; i=i.previousElementSibling } return [] }, next(t, e){ let i=t.nextElementSibling; for(; i;){ if(i.matches(e)) return [ i ]; i=i.nextElementSibling } return [] }, focusableChildren(t){ const e=[ "a", "button", "input", "textarea", "select", "details", "[tabindex]", '[contenteditable="true"]' ].map(( t=> `${ t }:not([tabindex^="-"])`)).join(","); return this.find(e, t).filter(( t=> !l(t)&&a(t))) }, getSelectorFromElement(t){ const e=B(t); return e&&z.findOne(e) ? e:null }, getElementFromSelector(t){ const e=B(t); return e ? z.findOne(e):null }, getMultipleElementsFromSelector(t){ const e=B(t); return e ? z.find(e):[] }}, R=(t, e="hide")=> { const i=`click.dismiss${ t.EVENT_KEY }`, n=t.NAME; N.on(document, i, `[data-bs-dismiss="${ n }"]`,(function(i){ if([ "A", "AREA" ].includes(this.tagName)&&i.preventDefault(), l(this)) return; const s=z.getElementFromSelector(this)||this.closest(`.${ n }`); t.getOrCreateInstance(s)[ e ]() })) }, q=".bs.alert", V=`close${ q }`, K=`closed${ q }`; class Q extends W { static get NAME(){ return "alert" } close(){ if(N.trigger(this._element, V).defaultPrevented) return; this._element.classList.remove("show"); const t=this._element.classList.contains("fade"); this._queueCallback(( ()=> this._destroyElement()), this._element, t) } _destroyElement(){ this._element.remove(), N.trigger(this._element, K), this.dispose() } static jQueryInterface(t){ return this.each(( function (){ const e=Q.getOrCreateInstance(this); if("string"==typeof t){ if(void 0===e[ t ]||t.startsWith("_")||"constructor"===t) throw new TypeError(`No method named "${ t }"`); e[ t ](this) }})) }} R(Q, "close"), m(Q); const X='[data-bs-toggle="button"]'; class Y extends W { static get NAME(){ return "button" } toggle(){ this._element.setAttribute("aria-pressed", this._element.classList.toggle("active")) } static jQueryInterface(t){ return this.each(( function (){ const e=Y.getOrCreateInstance(this); "toggle"===t&&e[ t ]() })) }} N.on(document, "click.bs.button.data-api", X,(t=> { t.preventDefault(); const e=t.target.closest(X); Y.getOrCreateInstance(e).toggle() })), m(Y); const U=".bs.swipe", G=`touchstart${ U }`, J=`touchmove${ U }`, Z=`touchend${ U }`, tt=`pointerdown${ U }`, et=`pointerup${ U }`, it={ endCallback: null, leftCallback: null, rightCallback: null }, nt={ endCallback: "(function|null)", leftCallback: "(function|null)", rightCallback: "(function|null)" }; class st extends H { constructor(t, e){ super(), this._element=t, t&&st.isSupported()&&(this._config=this._getConfig(e), this._deltaX=0, this._supportPointerEvents=Boolean(window.PointerEvent), this._initEvents()) } static get Default(){ return it } static get DefaultType(){ return nt } static get NAME(){ return "swipe" } dispose(){ N.off(this._element, U) } _start(t){ this._supportPointerEvents ? this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[ 0 ].clientX } _end(t){ this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX - this._deltaX), this._handleSwipe(), g(this._config.endCallback) } _move(t){ this._deltaX=t.touches&&t.touches.length > 1 ? 0:t.touches[ 0 ].clientX - this._deltaX } _handleSwipe(){ const t=Math.abs(this._deltaX); if(t <=40) return; const e=t / this._deltaX; this._deltaX=0, e&&g(e > 0 ? this._config.rightCallback:this._config.leftCallback) } _initEvents(){ this._supportPointerEvents ?(N.on(this._element, tt,(t=> this._start(t))), N.on(this._element, et,(t=> this._end(t))), this._element.classList.add("pointer-event")):(N.on(this._element, G,(t=> this._start(t))), N.on(this._element, J,(t=> this._move(t))), N.on(this._element, Z,(t=> this._end(t)))) } _eventIsPointerPenTouch(t){ return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType) } static isSupported(){ return "ontouchstart" in document.documentElement||navigator.maxTouchPoints > 0 }} const ot=".bs.carousel", rt=".data-api", at="next", lt="prev", ct="left", ht="right", dt=`slide${ ot }`, ut=`slid${ ot }`, ft=`keydown${ ot }`, pt=`mouseenter${ ot }`, mt=`mouseleave${ ot }`, gt=`dragstart${ ot }`, _t=`load${ ot }${ rt }`, bt=`click${ ot }${ rt }`, vt="carousel", yt="active", wt=".active", At=".carousel-item", Et=wt + At, Tt={ ArrowLeft: ht, ArrowRight: ct }, Ct={ interval: 5e3, keyboard: !0, pause: "hover", ride: !1, touch: !0, wrap: !0 }, Ot={ interval: "(number|boolean)", keyboard: "boolean", pause: "(string|boolean)", ride: "(boolean|string)", touch: "boolean", wrap: "boolean" }; class xt extends W { constructor(t, e){ super(t, e), this._interval=null, this._activeElement=null, this._isSliding = !1, this.touchTimeout=null, this._swipeHelper=null, this._indicatorsElement=z.findOne(".carousel-indicators", this._element), this._addEventListeners(), this._config.ride===vt&&this.cycle() } static get Default(){ return Ct } static get DefaultType(){ return Ot } static get NAME(){ return "carousel" } next(){ this._slide(at) } nextWhenVisible(){ !document.hidden&&a(this._element)&&this.next() } prev(){ this._slide(lt) } pause(){ this._isSliding&&s(this._element), this._clearInterval() } cycle(){ this._clearInterval(), this._updateInterval(), this._interval=setInterval(( ()=> this.nextWhenVisible()), this._config.interval) } _maybeEnableCycle(){ this._config.ride&&(this._isSliding ? N.one(this._element, ut,(()=> this.cycle())):this.cycle()) } to(t){ const e=this._getItems(); if(t > e.length - 1||t < 0) return; if(this._isSliding) return void N.one(this._element, ut,(()=> this.to(t))); const i=this._getItemIndex(this._getActive()); if(i===t) return; const n=t > i ? at:lt; this._slide(n, e[ t ]) } dispose(){ this._swipeHelper&&this._swipeHelper.dispose(), super.dispose() } _configAfterMerge(t){ return t.defaultInterval=t.interval, t } _addEventListeners(){ this._config.keyboard&&N.on(this._element, ft,(t=> this._keydown(t))), "hover"===this._config.pause&&(N.on(this._element, pt,(()=> this.pause())), N.on(this._element, mt,(()=> this._maybeEnableCycle()))), this._config.touch&&st.isSupported()&&this._addTouchEventListeners() } _addTouchEventListeners(){ for(const t of z.find(".carousel-item img", this._element)) N.on(t, gt,(t=> t.preventDefault())); const t={ leftCallback: ()=> this._slide(this._directionToOrder(ct)), rightCallback: ()=> this._slide(this._directionToOrder(ht)), endCallback: ()=> { "hover"===this._config.pause&&(this.pause(), this.touchTimeout&&clearTimeout(this.touchTimeout), this.touchTimeout=setTimeout(( ()=> this._maybeEnableCycle()), 500 + this._config.interval)) }}; this._swipeHelper=new st(this._element, t) } _keydown(t){ if(/input|textarea/i.test(t.target.tagName)) return; const e=Tt[ t.key ]; e&&(t.preventDefault(), this._slide(this._directionToOrder(e))) } _getItemIndex(t){ return this._getItems().indexOf(t) } _setActiveIndicatorElement(t){ if(!this._indicatorsElement) return; const e=z.findOne(wt, this._indicatorsElement); e.classList.remove(yt), e.removeAttribute("aria-current"); const i=z.findOne(`[data-bs-slide-to="${ t }"]`, this._indicatorsElement); i&&(i.classList.add(yt), i.setAttribute("aria-current", "true")) } _updateInterval(){ const t=this._activeElement||this._getActive(); if(!t) return; const e=Number.parseInt(t.getAttribute("data-bs-interval"), 10); this._config.interval=e||this._config.defaultInterval } _slide(t, e=null){ if(this._isSliding) return; const i=this._getActive(), n=t===at, s=e||b(this._getItems(), i, n, this._config.wrap); if(s===i) return; const o=this._getItemIndex(s), r=e => N.trigger(this._element, e, { relatedTarget: s, direction: this._orderToDirection(t), from: this._getItemIndex(i), to: o }); if(r(dt).defaultPrevented) return; if(!i||!s) return; const a=Boolean(this._interval); this.pause(), this._isSliding = !0, this._setActiveIndicatorElement(o), this._activeElement=s; const l=n ? "carousel-item-start":"carousel-item-end", c=n ? "carousel-item-next":"carousel-item-prev"; s.classList.add(c), d(s), i.classList.add(l), s.classList.add(l), this._queueCallback(( ()=> { s.classList.remove(l, c), s.classList.add(yt), i.classList.remove(yt, c, l), this._isSliding = !1, r(ut) }), i, this._isAnimated()), a&&this.cycle() } _isAnimated(){ return this._element.classList.contains("slide") } _getActive(){ return z.findOne(Et, this._element) } _getItems(){ return z.find(At, this._element) } _clearInterval(){ this._interval&&(clearInterval(this._interval), this._interval=null) } _directionToOrder(t){ return p() ? t===ct ? lt:at:t===ct ? at:lt } _orderToDirection(t){ return p() ? t===lt ? ct:ht:t===lt ? ht:ct } static jQueryInterface(t){ return this.each(( function (){ const e=xt.getOrCreateInstance(this, t); if("number"!=typeof t){ if("string"==typeof t){ if(void 0===e[ t ]||t.startsWith("_")||"constructor"===t) throw new TypeError(`No method named "${ t }"`); e[ t ]() }} else e.to(t) })) }} N.on(document, bt, "[data-bs-slide], [data-bs-slide-to]",(function(t){ const e=z.getElementFromSelector(this); if(!e||!e.classList.contains(vt)) return; t.preventDefault(); const i=xt.getOrCreateInstance(e), n=this.getAttribute("data-bs-slide-to"); return n ?(i.to(n), void i._maybeEnableCycle()):"next"===F.getDataAttribute(this, "slide") ?(i.next(), void i._maybeEnableCycle()):(i.prev(), void i._maybeEnableCycle()) })), N.on(window, _t,(()=> { const t=z.find('[data-bs-ride="carousel"]'); for(const e of t) xt.getOrCreateInstance(e) })), m(xt); const kt=".bs.collapse", Lt=`show${ kt }`, St=`shown${ kt }`, Dt=`hide${ kt }`, $t=`hidden${ kt }`, It=`click${ kt }.data-api`, Nt="show", Pt="collapse", Mt="collapsing", jt=`:scope .${ Pt } .${ Pt }`, Ft='[data-bs-toggle="collapse"]', Ht={ parent: null, toggle: !0 }, Wt={ parent: "(null|element)", toggle: "boolean" }; class Bt extends W { constructor(t, e){ super(t, e), this._isTransitioning = !1, this._triggerArray=[]; const i=z.find(Ft); for(const t of i){ const e=z.getSelectorFromElement(t), i=z.find(e).filter(( t=> t===this._element)); null!==e&&i.length&&this._triggerArray.push(t) } this._initializeChildren(), this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray, this._isShown()), this._config.toggle&&this.toggle() } static get Default(){ return Ht } static get DefaultType(){ return Wt } static get NAME(){ return "collapse" } toggle(){ this._isShown() ? this.hide():this.show() } show(){ if(this._isTransitioning||this._isShown()) return; let t=[]; if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(( t=> t!==this._element)).map(( t=> Bt.getOrCreateInstance(t, { toggle: !1 })))), t.length&&t[ 0 ]._isTransitioning) return; if(N.trigger(this._element, Lt).defaultPrevented) return; for(const e of t) e.hide(); const e=this._getDimension(); this._element.classList.remove(Pt), this._element.classList.add(Mt), this._element.style[ e ]=0, this._addAriaAndCollapsedClass(this._triggerArray, !0), this._isTransitioning = !0; const i=`scroll${ e[ 0 ].toUpperCase() + e.slice(1) }`; this._queueCallback(( ()=> { this._isTransitioning = !1, this._element.classList.remove(Mt), this._element.classList.add(Pt, Nt), this._element.style[ e ]="", N.trigger(this._element, St) }), this._element, !0), this._element.style[ e ]=`${ this._element[ i ] }px` } hide(){ if(this._isTransitioning||!this._isShown()) return; if(N.trigger(this._element, Dt).defaultPrevented) return; const t=this._getDimension(); this._element.style[ t ]=`${ this._element.getBoundingClientRect()[ t ] }px`, d(this._element), this._element.classList.add(Mt), this._element.classList.remove(Pt, Nt); for(const t of this._triggerArray){ const e=z.getElementFromSelector(t); e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([ t ], !1) } this._isTransitioning = !0, this._element.style[ t ]="", this._queueCallback(( ()=> { this._isTransitioning = !1, this._element.classList.remove(Mt), this._element.classList.add(Pt), N.trigger(this._element, $t) }), this._element, !0) } _isShown(t=this._element){ return t.classList.contains(Nt) } _configAfterMerge(t){ return t.toggle=Boolean(t.toggle), t.parent=r(t.parent), t } _getDimension(){ return this._element.classList.contains("collapse-horizontal") ? "width":"height" } _initializeChildren(){ if(!this._config.parent) return; const t=this._getFirstLevelChildren(Ft); for(const e of t){ const t=z.getElementFromSelector(e); t&&this._addAriaAndCollapsedClass([ e ], this._isShown(t)) }} _getFirstLevelChildren(t){ const e=z.find(jt, this._config.parent); return z.find(t, this._config.parent).filter(( t=> !e.includes(t))) } _addAriaAndCollapsedClass(t, e){ if(t.length) for(const i of t) i.classList.toggle("collapsed", !e), i.setAttribute("aria-expanded", e) } static jQueryInterface(t){ const e={}; return "string"==typeof t&&/show|hide/.test(t)&&(e.toggle = !1), this.each(( function (){ const i=Bt.getOrCreateInstance(this, e); if("string"==typeof t){ if(void 0===i[ t ]) throw new TypeError(`No method named "${ t }"`); i[ t ]() }})) }} N.on(document, It, Ft,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault(); for(const t of z.getMultipleElementsFromSelector(this)) Bt.getOrCreateInstance(t, { toggle: !1 }).toggle() })), m(Bt); var zt="top", Rt="bottom", qt="right", Vt="left", Kt="auto", Qt=[ zt, Rt, qt, Vt ], Xt="start", Yt="end", Ut="clippingParents", Gt="viewport", Jt="popper", Zt="reference", te=Qt.reduce(( function(t, e){ return t.concat([ e + "-" + Xt, e + "-" + Yt ]) }), []), ee=[].concat(Qt, [ Kt ]).reduce(( function(t, e){ return t.concat([ e, e + "-" + Xt, e + "-" + Yt ]) }), []), ie="beforeRead", ne="read", se="afterRead", oe="beforeMain", re="main", ae="afterMain", le="beforeWrite", ce="write", he="afterWrite", de=[ ie, ne, se, oe, re, ae, le, ce, he ]; function ue(t){ return t ?(t.nodeName||"").toLowerCase():null } function fe(t){ if(null==t) return window; if("[object Window]"!==t.toString()){ var e=t.ownerDocument; return e&&e.defaultView||window } return t } function pe(t){ return t instanceof fe(t).Element||t instanceof Element } function me(t){ return t instanceof fe(t).HTMLElement||t instanceof HTMLElement } function ge(t){ return "undefined"!=typeof ShadowRoot&&(t instanceof fe(t).ShadowRoot||t instanceof ShadowRoot) } const _e={ name: "applyStyles", enabled: !0, phase: "write", fn: function(t){ var e=t.state; Object.keys(e.elements).forEach(( function(t){ var i=e.styles[ t ]||{}, n=e.attributes[ t ]||{}, s=e.elements[ t ]; me(s)&&ue(s)&&(Object.assign(s.style, i), Object.keys(n).forEach(( function(t){ var e=n[ t ]; !1===e ? s.removeAttribute(t):s.setAttribute(t, !0===e ? "":e) }))) })) }, effect: function(t){ var e=t.state, i={ popper: { position: e.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {}}; return Object.assign(e.elements.popper.style, i.popper), e.styles=i, e.elements.arrow&&Object.assign(e.elements.arrow.style, i.arrow), function (){ Object.keys(e.elements).forEach(( function(t){ var n=e.elements[ t ], s=e.attributes[ t ]||{}, o=Object.keys(e.styles.hasOwnProperty(t) ? e.styles[ t ]:i[ t ]).reduce(( function(t, e){ return t[ e ]="", t }), {}); me(n)&&ue(n)&&(Object.assign(n.style, o), Object.keys(s).forEach(( function(t){ n.removeAttribute(t) }))) })) }}, requires: [ "computeStyles" ] }; function be(t){ return t.split("-")[ 0 ] } var ve=Math.max, ye=Math.min, we=Math.round; function Ae(){ var t=navigator.userAgentData; return null!=t&&t.brands&&Array.isArray(t.brands) ? t.brands.map(( function(t){ return t.brand + "/" + t.version })).join(" "):navigator.userAgent } function Ee(){ return !/^((?!chrome|android).)*safari/i.test(Ae()) } function Te(t, e, i){ void 0===e&&(e = !1), void 0===i&&(i = !1); var n=t.getBoundingClientRect(), s=1, o=1; e&&me(t)&&(s=t.offsetWidth > 0&&we(n.width) / t.offsetWidth||1, o=t.offsetHeight > 0&&we(n.height) / t.offsetHeight||1); var r=(pe(t) ? fe(t):window).visualViewport, a = !Ee()&&i, l=(n.left +(a&&r ? r.offsetLeft:0)) / s, c=(n.top +(a&&r ? r.offsetTop:0)) / o, h=n.width / s, d=n.height / o; return { width: h, height: d, top: c, right: l + h, bottom: c + d, left: l, x: l, y: c }} function Ce(t){ var e=Te(t), i=t.offsetWidth, n=t.offsetHeight; return Math.abs(e.width - i) <=1&&(i=e.width), Math.abs(e.height - n) <=1&&(n=e.height), { x: t.offsetLeft, y: t.offsetTop, width: i, height: n }} function Oe(t, e){ var i=e.getRootNode&&e.getRootNode(); if(t.contains(e)) return !0; if(i&&ge(i)){ var n=e; do { if(n&&t.isSameNode(n)) return !0; n=n.parentNode||n.host } while(n) } return !1 } function xe(t){ return fe(t).getComputedStyle(t) } function ke(t){ return [ "table", "td", "th" ].indexOf(ue(t)) >=0 } function Le(t){ return(( pe(t) ? t.ownerDocument:t.document)||window.document).documentElement } function Se(t){ return "html"===ue(t) ? t:t.assignedSlot||t.parentNode||(ge(t) ? t.host:null)||Le(t) } function De(t){ return me(t)&&"fixed"!==xe(t).position ? t.offsetParent:null } function $e(t){ for(var e=fe(t), i=De(t); i&&ke(i)&&"static"===xe(i).position;)i=De(i); return i&&("html"===ue(i)||"body"===ue(i)&&"static"===xe(i).position) ? e:i||function(t){ var e=/firefox/i.test(Ae()); if(/Trident/i.test(Ae())&&me(t)&&"fixed"===xe(t).position) return null; var i=Se(t); for(ge(i)&&(i=i.host); me(i)&&[ "html", "body" ].indexOf(ue(i)) < 0;){ var n=xe(i); if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==[ "transform", "perspective" ].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter) return i; i=i.parentNode } return null }(t)||e } function Ie(t){ return [ "top", "bottom" ].indexOf(t) >=0 ? "x":"y" } function Ne(t, e, i){ return ve(t, ye(e, i)) } function Pe(t){ return Object.assign({}, { top: 0, right: 0, bottom: 0, left: 0 }, t) } function Me(t, e){ return e.reduce(( function(e, i){ return e[ i ]=t, e }), {}) } const je={ name: "arrow", enabled: !0, phase: "main", fn: function(t){ var e, i=t.state, n=t.name, s=t.options, o=i.elements.arrow, r=i.modifiersData.popperOffsets, a=be(i.placement), l=Ie(a), c=[ Vt, qt ].indexOf(a) >=0 ? "height":"width"; if(o&&r){ var h=function(t, e){ return Pe("number"!=typeof(t="function"==typeof t ? t(Object.assign({}, e.rects, { placement: e.placement })):t) ? t:Me(t, Qt)) }(s.padding, i), d=Ce(o), u="y"===l ? zt:Vt, f="y"===l ? Rt:qt, p=i.rects.reference[ c ] + i.rects.reference[ l ] - r[ l ] - i.rects.popper[ c ], m=r[ l ] - i.rects.reference[ l ], g=$e(o), _=g ? "y"===l ? g.clientHeight||0:g.clientWidth||0:0, b=p / 2 - m / 2, v=h[ u ], y=_ - d[ c ] - h[ f ], w=_ / 2 - d[ c ] / 2 + b, A=Ne(v, w, y), E=l; i.modifiersData[ n ]=(( e={})[ E ]=A, e.centerOffset=A - w, e) }}, effect: function(t){ var e=t.state, i=t.options.element, n=void 0===i ? "[data-popper-arrow]":i; null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&Oe(e.elements.popper, n)&&(e.elements.arrow=n) }, requires: [ "popperOffsets" ], requiresIfExists: [ "preventOverflow" ] }; function Fe(t){ return t.split("-")[ 1 ] } var He={ top: "auto", right: "auto", bottom: "auto", left: "auto" }; function We(t){ var e, i=t.popper, n=t.popperRect, s=t.placement, o=t.variation, r=t.offsets, a=t.position, l=t.gpuAcceleration, c=t.adaptive, h=t.roundOffsets, d=t.isFixed, u=r.x, f=void 0===u ? 0:u, p=r.y, m=void 0===p ? 0:p, g="function"==typeof h ? h({ x: f, y: m }):{ x: f, y: m }; f=g.x, m=g.y; var _=r.hasOwnProperty("x"), b=r.hasOwnProperty("y"), v=Vt, y=zt, w=window; if(c){ var A=$e(i), E="clientHeight", T="clientWidth"; A===fe(i)&&"static"!==xe(A=Le(i)).position&&"absolute"===a&&(E="scrollHeight", T="scrollWidth"),(s===zt||(s===Vt||s===qt)&&o===Yt)&&(y=Rt, m -=(d&&A===w&&w.visualViewport ? w.visualViewport.height:A[ E ]) - n.height, m *=l ? 1:-1), s!==Vt&&(s!==zt&&s!==Rt||o!==Yt)||(v=qt, f -=(d&&A===w&&w.visualViewport ? w.visualViewport.width:A[ T ]) - n.width, f *=l ? 1:-1) } var C, O=Object.assign({ position: a }, c&&He), x = !0===h ? function(t, e){ var i=t.x, n=t.y, s=e.devicePixelRatio||1; return { x: we(i * s) / s||0, y: we(n * s) / s||0 }}({ x: f, y: m }, fe(i)):{ x: f, y: m }; return f=x.x, m=x.y, l ? Object.assign({}, O,(( C={})[ y ]=b ? "0":"", C[ v ]=_ ? "0":"", C.transform=(w.devicePixelRatio||1) <=1 ? "translate(" + f + "px, " + m + "px)":"translate3d(" + f + "px, " + m + "px, 0)", C)):Object.assign({}, O,(( e={})[ y ]=b ? m + "px":"", e[ v ]=_ ? f + "px":"", e.transform="", e)) } const Be={ name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: function(t){ var e=t.state, i=t.options, n=i.gpuAcceleration, s=void 0===n||n, o=i.adaptive, r=void 0===o||o, a=i.roundOffsets, l=void 0===a||a, c={ placement: be(e.placement), variation: Fe(e.placement), popper: e.elements.popper, popperRect: e.rects.popper, gpuAcceleration: s, isFixed: "fixed"===e.options.strategy }; null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({}, e.styles.popper, We(Object.assign({}, c, { offsets: e.modifiersData.popperOffsets, position: e.options.strategy, adaptive: r, roundOffsets: l })))), null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({}, e.styles.arrow, We(Object.assign({}, c, { offsets: e.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: l })))), e.attributes.popper=Object.assign({}, e.attributes.popper, { "data-popper-placement": e.placement }) }, data: {}}; var ze={ passive: !0 }; const Re={ name: "eventListeners", enabled: !0, phase: "write", fn: function (){ }, effect: function(t){ var e=t.state, i=t.instance, n=t.options, s=n.scroll, o=void 0===s||s, r=n.resize, a=void 0===r||r, l=fe(e.elements.popper), c=[].concat(e.scrollParents.reference, e.scrollParents.popper); return o&&c.forEach(( function(t){ t.addEventListener("scroll", i.update, ze) })), a&&l.addEventListener("resize", i.update, ze), function (){ o&&c.forEach(( function(t){ t.removeEventListener("scroll", i.update, ze) })), a&&l.removeEventListener("resize", i.update, ze) }}, data: {}}; var qe={ left: "right", right: "left", bottom: "top", top: "bottom" }; function Ve(t){ return t.replace(/left|right|bottom|top/g,(function(t){ return qe[ t ] })) } var Ke={ start: "end", end: "start" }; function Qe(t){ return t.replace(/start|end/g,(function(t){ return Ke[ t ] })) } function Xe(t){ var e=fe(t); return { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset }} function Ye(t){ return Te(Le(t)).left + Xe(t).scrollLeft } function Ue(t){ var e=xe(t), i=e.overflow, n=e.overflowX, s=e.overflowY; return /auto|scroll|overlay|hidden/.test(i + s + n) } function Ge(t){ return [ "html", "body", "#document" ].indexOf(ue(t)) >=0 ? t.ownerDocument.body:me(t)&&Ue(t) ? t:Ge(Se(t)) } function Je(t, e){ var i; void 0===e&&(e=[]); var n=Ge(t), s=n===(null==(i=t.ownerDocument) ? void 0:i.body), o=fe(n), r=s ? [ o ].concat(o.visualViewport||[], Ue(n) ? n:[]):n, a=e.concat(r); return s ? a:a.concat(Je(Se(r))) } function Ze(t){ return Object.assign({}, t, { left: t.x, top: t.y, right: t.x + t.width, bottom: t.y + t.height }) } function ti(t, e, i){ return e===Gt ? Ze(function(t, e){ var i=fe(t), n=Le(t), s=i.visualViewport, o=n.clientWidth, r=n.clientHeight, a=0, l=0; if(s){ o=s.width, r=s.height; var c=Ee();(c||!c&&"fixed"===e)&&(a=s.offsetLeft, l=s.offsetTop) } return { width: o, height: r, x: a + Ye(t), y: l }}(t, i)):pe(e) ? function(t, e){ var i=Te(t, !1, "fixed"===e); return i.top=i.top + t.clientTop, i.left=i.left + t.clientLeft, i.bottom=i.top + t.clientHeight, i.right=i.left + t.clientWidth, i.width=t.clientWidth, i.height=t.clientHeight, i.x=i.left, i.y=i.top, i }(e, i):Ze(function(t){ var e, i=Le(t), n=Xe(t), s=null==(e=t.ownerDocument) ? void 0:e.body, o=ve(i.scrollWidth, i.clientWidth, s ? s.scrollWidth:0, s ? s.clientWidth:0), r=ve(i.scrollHeight, i.clientHeight, s ? s.scrollHeight:0, s ? s.clientHeight:0), a=-n.scrollLeft + Ye(t), l=-n.scrollTop; return "rtl"===xe(s||i).direction&&(a +=ve(i.clientWidth, s ? s.clientWidth:0) - o), { width: o, height: r, x: a, y: l }}(Le(t))) } function ei(t){ var e, i=t.reference, n=t.element, s=t.placement, o=s ? be(s):null, r=s ? Fe(s):null, a=i.x + i.width / 2 - n.width / 2, l=i.y + i.height / 2 - n.height / 2; switch(o){ case zt: e={ x: a, y: i.y - n.height }; break; case Rt: e={ x: a, y: i.y + i.height }; break; case qt: e={ x: i.x + i.width, y: l }; break; case Vt: e={ x: i.x - n.width, y: l }; break; default: e={ x: i.x, y: i.y }}var c=o ? Ie(o):null; if(null!=c){ var h="y"===c ? "height":"width"; switch(r){ case Xt: e[ c ]=e[ c ] -(i[ h ] / 2 - n[ h ] / 2); break; case Yt: e[ c ]=e[ c ] +(i[ h ] / 2 - n[ h ] / 2) }} return e } function ii(t, e){ void 0===e&&(e={}); var i=e, n=i.placement, s=void 0===n ? t.placement:n, o=i.strategy, r=void 0===o ? t.strategy:o, a=i.boundary, l=void 0===a ? Ut:a, c=i.rootBoundary, h=void 0===c ? Gt:c, d=i.elementContext, u=void 0===d ? Jt:d, f=i.altBoundary, p=void 0!==f&&f, m=i.padding, g=void 0===m ? 0:m, _=Pe("number"!=typeof g ? g:Me(g, Qt)), b=u===Jt ? Zt:Jt, v=t.rects.popper, y=t.elements[ p ? b:u ], w=function(t, e, i, n){ var s="clippingParents"===e ? function(t){ var e=Je(Se(t)), i=[ "absolute", "fixed" ].indexOf(xe(t).position) >=0&&me(t) ? $e(t):t; return pe(i) ? e.filter(( function(t){ return pe(t)&&Oe(t, i)&&"body"!==ue(t) })):[] }(t):[].concat(e), o=[].concat(s, [ i ]), r=o[ 0 ], a=o.reduce(( function(e, i){ var s=ti(t, i, n); return e.top=ve(s.top, e.top), e.right=ye(s.right, e.right), e.bottom=ye(s.bottom, e.bottom), e.left=ve(s.left, e.left), e }), ti(t, r, n)); return a.width=a.right - a.left, a.height=a.bottom - a.top, a.x=a.left, a.y=a.top, a }(pe(y) ? y:y.contextElement||Le(t.elements.popper), l, h, r), A=Te(t.elements.reference), E=ei({ reference: A, element: v, strategy: "absolute", placement: s }), T=Ze(Object.assign({}, v, E)), C=u===Jt ? T:A, O={ top: w.top - C.top + _.top, bottom: C.bottom - w.bottom + _.bottom, left: w.left - C.left + _.left, right: C.right - w.right + _.right }, x=t.modifiersData.offset; if(u===Jt&&x){ var k=x[ s ]; Object.keys(O).forEach(( function(t){ var e=[ qt, Rt ].indexOf(t) >=0 ? 1:-1, i=[ zt, Rt ].indexOf(t) >=0 ? "y":"x"; O[ t ] +=k[ i ] * e })) } return O } function ni(t, e){ void 0===e&&(e={}); var i=e, n=i.placement, s=i.boundary, o=i.rootBoundary, r=i.padding, a=i.flipVariations, l=i.allowedAutoPlacements, c=void 0===l ? ee:l, h=Fe(n), d=h ? a ? te:te.filter(( function(t){ return Fe(t)===h })):Qt, u=d.filter(( function(t){ return c.indexOf(t) >=0 })); 0===u.length&&(u=d); var f=u.reduce(( function(e, i){ return e[ i ]=ii(t, { placement: i, boundary: s, rootBoundary: o, padding: r })[ be(i) ], e }), {}); return Object.keys(f).sort(( function(t, e){ return f[ t ] - f[ e ] })) } const si={ name: "flip", enabled: !0, phase: "main", fn: function(t){ var e=t.state, i=t.options, n=t.name; if(!e.modifiersData[ n ]._skip){ for(var s=i.mainAxis, o=void 0===s||s, r=i.altAxis, a=void 0===r||r, l=i.fallbackPlacements, c=i.padding, h=i.boundary, d=i.rootBoundary, u=i.altBoundary, f=i.flipVariations, p=void 0===f||f, m=i.allowedAutoPlacements, g=e.options.placement, _=be(g), b=l||(_!==g&&p ? function(t){ if(be(t)===Kt) return []; var e=Ve(t); return [ Qe(t), e, Qe(e) ] }(g):[ Ve(g) ]), v=[ g ].concat(b).reduce(( function(t, i){ return t.concat(be(i)===Kt ? ni(e, { placement: i, boundary: h, rootBoundary: d, padding: c, flipVariations: p, allowedAutoPlacements: m }):i) }), []), y=e.rects.reference, w=e.rects.popper, A=new Map, E = !0, T=v[ 0 ], C=0; C < v.length; C++){ var O=v[ C ], x=be(O), k=Fe(O)===Xt, L=[ zt, Rt ].indexOf(x) >=0, S=L ? "width":"height", D=ii(e, { placement: O, boundary: h, rootBoundary: d, altBoundary: u, padding: c }), $=L ? k ? qt:Vt:k ? Rt:zt; y[ S ] > w[ S ]&&($=Ve($)); var I=Ve($), N=[]; if(o&&N.push(D[ x ] <=0), a&&N.push(D[ $ ] <=0, D[ I ] <=0), N.every(( function(t){ return t }))){ T=O, E = !1; break } A.set(O, N) } if(E) for(var P=function(t){ var e=v.find(( function(e){ var i=A.get(e); if(i) return i.slice(0, t).every(( function(t){ return t })) })); if(e) return T=e, "break" }, M=p ? 3:1; M > 0&&"break"!==P(M); M--); e.placement!==T&&(e.modifiersData[ n ]._skip = !0, e.placement=T, e.reset = !0) }}, requiresIfExists: [ "offset" ], data: { _skip: !1 }}; function oi(t, e, i){ return void 0===i&&(i={ x: 0, y: 0 }), { top: t.top - e.height - i.y, right: t.right - e.width + i.x, bottom: t.bottom - e.height + i.y, left: t.left - e.width - i.x }} function ri(t){ return [ zt, qt, Rt, Vt ].some(( function(e){ return t[ e ] >=0 })) } const ai={ name: "hide", enabled: !0, phase: "main", requiresIfExists: [ "preventOverflow" ], fn: function(t){ var e=t.state, i=t.name, n=e.rects.reference, s=e.rects.popper, o=e.modifiersData.preventOverflow, r=ii(e, { elementContext: "reference" }), a=ii(e, { altBoundary: !0 }), l=oi(r, n), c=oi(a, s, o), h=ri(l), d=ri(c); e.modifiersData[ i ]={ referenceClippingOffsets: l, popperEscapeOffsets: c, isReferenceHidden: h, hasPopperEscaped: d }, e.attributes.popper=Object.assign({}, e.attributes.popper, { "data-popper-reference-hidden": h, "data-popper-escaped": d }) }}, li={ name: "offset", enabled: !0, phase: "main", requires: [ "popperOffsets" ], fn: function(t){ var e=t.state, i=t.options, n=t.name, s=i.offset, o=void 0===s ? [ 0, 0 ]:s, r=ee.reduce(( function(t, i){ return t[ i ]=function(t, e, i){ var n=be(t), s=[ Vt, zt ].indexOf(n) >=0 ? -1:1, o="function"==typeof i ? i(Object.assign({}, e, { placement: t })):i, r=o[ 0 ], a=o[ 1 ]; return r=r||0, a=(a||0) * s, [ Vt, qt ].indexOf(n) >=0 ? { x: a, y: r }:{ x: r, y: a }}(i, e.rects, o), t }), {}), a=r[ e.placement ], l=a.x, c=a.y; null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x +=l, e.modifiersData.popperOffsets.y +=c), e.modifiersData[ n ]=r }}, ci={ name: "popperOffsets", enabled: !0, phase: "read", fn: function(t){ var e=t.state, i=t.name; e.modifiersData[ i ]=ei({ reference: e.rects.reference, element: e.rects.popper, strategy: "absolute", placement: e.placement }) }, data: {}}, hi={ name: "preventOverflow", enabled: !0, phase: "main", fn: function(t){ var e=t.state, i=t.options, n=t.name, s=i.mainAxis, o=void 0===s||s, r=i.altAxis, a=void 0!==r&&r, l=i.boundary, c=i.rootBoundary, h=i.altBoundary, d=i.padding, u=i.tether, f=void 0===u||u, p=i.tetherOffset, m=void 0===p ? 0:p, g=ii(e, { boundary: l, rootBoundary: c, padding: d, altBoundary: h }), _=be(e.placement), b=Fe(e.placement), v = !b, y=Ie(_), w="x"===y ? "y":"x", A=e.modifiersData.popperOffsets, E=e.rects.reference, T=e.rects.popper, C="function"==typeof m ? m(Object.assign({}, e.rects, { placement: e.placement })):m, O="number"==typeof C ? { mainAxis: C, altAxis: C }:Object.assign({ mainAxis: 0, altAxis: 0 }, C), x=e.modifiersData.offset ? e.modifiersData.offset[ e.placement ]:null, k={ x: 0, y: 0 }; if(A){ if(o){ var L, S="y"===y ? zt:Vt, D="y"===y ? Rt:qt, $="y"===y ? "height":"width", I=A[ y ], N=I + g[ S ], P=I - g[ D ], M=f ? -T[ $ ] / 2:0, j=b===Xt ? E[ $ ]:T[ $ ], F=b===Xt ? -T[ $ ]:-E[ $ ], H=e.elements.arrow, W=f&&H ? Ce(H):{ width: 0, height: 0 }, B=e.modifiersData[ "arrow#persistent" ] ? e.modifiersData[ "arrow#persistent" ].padding:{ top: 0, right: 0, bottom: 0, left: 0 }, z=B[ S ], R=B[ D ], q=Ne(0, E[ $ ], W[ $ ]), V=v ? E[ $ ] / 2 - M - q - z - O.mainAxis:j - q - z - O.mainAxis, K=v ? -E[ $ ] / 2 + M + q + R + O.mainAxis:F + q + R + O.mainAxis, Q=e.elements.arrow&&$e(e.elements.arrow), X=Q ? "y"===y ? Q.clientTop||0:Q.clientLeft||0:0, Y=null!=(L=null==x ? void 0:x[ y ]) ? L:0, U=I + K - Y, G=Ne(f ? ye(N, I + V - Y - X):N, I, f ? ve(P, U):P); A[ y ]=G, k[ y ]=G - I } if(a){ var J, Z="x"===y ? zt:Vt, tt="x"===y ? Rt:qt, et=A[ w ], it="y"===w ? "height":"width", nt=et + g[ Z ], st=et - g[ tt ], ot=-1!==[ zt, Vt ].indexOf(_), rt=null!=(J=null==x ? void 0:x[ w ]) ? J:0, at=ot ? nt:et - E[ it ] - T[ it ] - rt + O.altAxis, lt=ot ? et + E[ it ] + T[ it ] - rt - O.altAxis:st, ct=f&&ot ? function(t, e, i){ var n=Ne(t, e, i); return n > i ? i:n }(at, et, lt):Ne(f ? at:nt, et, f ? lt:st); A[ w ]=ct, k[ w ]=ct - et } e.modifiersData[ n ]=k }}, requiresIfExists: [ "offset" ] }; function di(t, e, i){ void 0===i&&(i = !1); var n, s, o=me(e), r=me(e)&&function(t){ var e=t.getBoundingClientRect(), i=we(e.width) / t.offsetWidth||1, n=we(e.height) / t.offsetHeight||1; return 1!==i||1!==n }(e), a=Le(e), l=Te(t, r, i), c={ scrollLeft: 0, scrollTop: 0 }, h={ x: 0, y: 0 }; return(o||!o&&!i)&&(( "body"!==ue(e)||Ue(a))&&(c=(n=e)!==fe(n)&&me(n) ? { scrollLeft:(s=n).scrollLeft, scrollTop: s.scrollTop }:Xe(n)), me(e) ?(( h=Te(e, !0)).x +=e.clientLeft, h.y +=e.clientTop):a&&(h.x=Ye(a))), { x: l.left + c.scrollLeft - h.x, y: l.top + c.scrollTop - h.y, width: l.width, height: l.height }} function ui(t){ var e=new Map, i=new Set, n=[]; function s(t){ i.add(t.name), [].concat(t.requires||[], t.requiresIfExists||[]).forEach(( function(t){ if(!i.has(t)){ var n=e.get(t); n&&s(n) }})), n.push(t) } return t.forEach(( function(t){ e.set(t.name, t) })), t.forEach(( function(t){ i.has(t.name)||s(t) })), n } var fi={ placement: "bottom", modifiers: [], strategy: "absolute" }; function pi(){ for(var t=arguments.length, e=new Array(t), i=0; i < t; i++)e[ i ]=arguments[ i ]; return !e.some(( function(t){ return !(t&&"function"==typeof t.getBoundingClientRect) })) } function mi(t){ void 0===t&&(t={}); var e=t, i=e.defaultModifiers, n=void 0===i ? []:i, s=e.defaultOptions, o=void 0===s ? fi:s; return function(t, e, i){ void 0===i&&(i=o); var s, r, a={ placement: "bottom", orderedModifiers: [], options: Object.assign({}, fi, o), modifiersData: {}, elements: { reference: t, popper: e }, attributes: {}, styles: {}}, l=[], c = !1, h={ state: a, setOptions: function(i){ var s="function"==typeof i ? i(a.options):i; d(), a.options=Object.assign({}, o, a.options, s), a.scrollParents={ reference: pe(t) ? Je(t):t.contextElement ? Je(t.contextElement):[], popper: Je(e) }; var r, c, u=function(t){ var e=ui(t); return de.reduce(( function(t, i){ return t.concat(e.filter(( function(t){ return t.phase===i }))) }), []) }(( r=[].concat(n, a.options.modifiers), c=r.reduce(( function(t, e){ var i=t[ e.name ]; return t[ e.name ]=i ? Object.assign({}, i, e, { options: Object.assign({}, i.options, e.options), data: Object.assign({}, i.data, e.data) }):e, t }), {}), Object.keys(c).map(( function(t){ return c[ t ] })))); return a.orderedModifiers=u.filter(( function(t){ return t.enabled })), a.orderedModifiers.forEach(( function(t){ var e=t.name, i=t.options, n=void 0===i ? {}:i, s=t.effect; if("function"==typeof s){ var o=s({ state: a, name: e, instance: h, options: n }); l.push(o||function (){ }) }})), h.update() }, forceUpdate: function (){ if(!c){ var t=a.elements, e=t.reference, i=t.popper; if(pi(e, i)){ a.rects={ reference: di(e, $e(i), "fixed"===a.options.strategy), popper: Ce(i) }, a.reset = !1, a.placement=a.options.placement, a.orderedModifiers.forEach(( function(t){ return a.modifiersData[ t.name ]=Object.assign({}, t.data) })); for(var n=0; n < a.orderedModifiers.length; n++)if(!0!==a.reset){ var s=a.orderedModifiers[ n ], o=s.fn, r=s.options, l=void 0===r ? {}:r, d=s.name; "function"==typeof o&&(a=o({ state: a, options: l, name: d, instance: h })||a) } else a.reset = !1, n=-1 }} }, update:(s=function (){ return new Promise(( function(t){ h.forceUpdate(), t(a) })) }, function (){ return r||(r=new Promise(( function(t){ Promise.resolve().then(( function (){ r=void 0, t(s()) })) }))), r }), destroy: function (){ d(), c = !0 }}; if(!pi(t, e)) return h; function d(){ l.forEach(( function(t){ return t() })), l=[] } return h.setOptions(i).then(( function(t){ !c&&i.onFirstUpdate&&i.onFirstUpdate(t) })), h }} var gi=mi(), _i=mi({ defaultModifiers: [ Re, ci, Be, _e ] }), bi=mi({ defaultModifiers: [ Re, ci, Be, _e, li, si, hi, je, ai ] }); const vi=Object.freeze(Object.defineProperty({ __proto__: null, afterMain: ae, afterRead: se, afterWrite: he, applyStyles: _e, arrow: je, auto: Kt, basePlacements: Qt, beforeMain: oe, beforeRead: ie, beforeWrite: le, bottom: Rt, clippingParents: Ut, computeStyles: Be, createPopper: bi, createPopperBase: gi, createPopperLite: _i, detectOverflow: ii, end: Yt, eventListeners: Re, flip: si, hide: ai, left: Vt, main: re, modifierPhases: de, offset: li, placements: ee, popper: Jt, popperGenerator: mi, popperOffsets: ci, preventOverflow: hi, read: ne, reference: Zt, right: qt, start: Xt, top: zt, variationPlacements: te, viewport: Gt, write: ce }, Symbol.toStringTag, { value: "Module" })), yi="dropdown", wi=".bs.dropdown", Ai=".data-api", Ei="ArrowUp", Ti="ArrowDown", Ci=`hide${ wi }`, Oi=`hidden${ wi }`, xi=`show${ wi }`, ki=`shown${ wi }`, Li=`click${ wi }${ Ai }`, Si=`keydown${ wi }${ Ai }`, Di=`keyup${ wi }${ Ai }`, $i="show", Ii='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)', Ni=`${ Ii }.${ $i }`, Pi=".dropdown-menu", Mi=p() ? "top-end":"top-start", ji=p() ? "top-start":"top-end", Fi=p() ? "bottom-end":"bottom-start", Hi=p() ? "bottom-start":"bottom-end", Wi=p() ? "left-start":"right-start", Bi=p() ? "right-start":"left-start", zi={ autoClose: !0, boundary: "clippingParents", display: "dynamic", offset: [ 0, 2 ], popperConfig: null, reference: "toggle" }, Ri={ autoClose: "(boolean|string)", boundary: "(string|element)", display: "string", offset: "(array|string|function)", popperConfig: "(null|object|function)", reference: "(string|element|object)" }; class qi extends W { constructor(t, e){ super(t, e), this._popper=null, this._parent=this._element.parentNode, this._menu=z.next(this._element, Pi)[ 0 ]||z.prev(this._element, Pi)[ 0 ]||z.findOne(Pi, this._parent), this._inNavbar=this._detectNavbar() } static get Default(){ return zi } static get DefaultType(){ return Ri } static get NAME(){ return yi } toggle(){ return this._isShown() ? this.hide():this.show() } show(){ if(l(this._element)||this._isShown()) return; const t={ relatedTarget: this._element }; if(!N.trigger(this._element, xi, t).defaultPrevented){ if(this._createPopper(), "ontouchstart" in document.documentElement&&!this._parent.closest(".navbar-nav")) for(const t of [].concat(...document.body.children)) N.on(t, "mouseover", h); this._element.focus(), this._element.setAttribute("aria-expanded", !0), this._menu.classList.add($i), this._element.classList.add($i), N.trigger(this._element, ki, t) }} hide(){ if(l(this._element)||!this._isShown()) return; const t={ relatedTarget: this._element }; this._completeHide(t) } dispose(){ this._popper&&this._popper.destroy(), super.dispose() } update(){ this._inNavbar=this._detectNavbar(), this._popper&&this._popper.update() } _completeHide(t){ if(!N.trigger(this._element, Ci, t).defaultPrevented){ if("ontouchstart" in document.documentElement) for(const t of [].concat(...document.body.children)) N.off(t, "mouseover", h); this._popper&&this._popper.destroy(), this._menu.classList.remove($i), this._element.classList.remove($i), this._element.setAttribute("aria-expanded", "false"), F.removeDataAttribute(this._menu, "popper"), N.trigger(this._element, Oi, t) }} _getConfig(t){ if("object"==typeof(t=super._getConfig(t)).reference&&!o(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect) throw new TypeError(`${ yi.toUpperCase() }: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`); return t } _createPopper(){ if(void 0===vi) throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)"); let t=this._element; "parent"===this._config.reference ? t=this._parent:o(this._config.reference) ? t=r(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference); const e=this._getPopperConfig(); this._popper=bi(t, this._menu, e) } _isShown(){ return this._menu.classList.contains($i) } _getPlacement(){ const t=this._parent; if(t.classList.contains("dropend")) return Wi; if(t.classList.contains("dropstart")) return Bi; if(t.classList.contains("dropup-center")) return "top"; if(t.classList.contains("dropdown-center")) return "bottom"; const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim(); return t.classList.contains("dropup") ? e ? ji:Mi:e ? Hi:Fi } _detectNavbar(){ return null!==this._element.closest(".navbar") } _getOffset(){ const { offset: t }=this._config; return "string"==typeof t ? t.split(",").map(( t=> Number.parseInt(t, 10))):"function"==typeof t ? e=> t(e, this._element):t } _getPopperConfig(){ const t={ placement: this._getPlacement(), modifiers: [ { name: "preventOverflow", options: { boundary: this._config.boundary }}, { name: "offset", options: { offset: this._getOffset() }} ] }; return(this._inNavbar||"static"===this._config.display)&&(F.setDataAttribute(this._menu, "popper", "static"), t.modifiers=[ { name: "applyStyles", enabled: !1 } ]), { ...t, ...g(this._config.popperConfig, [ t ]) }} _selectMenuItem({ key: t, target: e }){ const i=z.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)", this._menu).filter(( t=> a(t))); i.length&&b(i, e, t===Ti, !i.includes(e)).focus() } static jQueryInterface(t){ return this.each(( function (){ const e=qi.getOrCreateInstance(this, t); if("string"==typeof t){ if(void 0===e[ t ]) throw new TypeError(`No method named "${ t }"`); e[ t ]() }})) } static clearMenus(t){ if(2===t.button||"keyup"===t.type&&"Tab"!==t.key) return; const e=z.find(Ni); for(const i of e){ const e=qi.getInstance(i); if(!e||!1===e._config.autoClose) continue; const n=t.composedPath(), s=n.includes(e._menu); if(n.includes(e._element)||"inside"===e._config.autoClose&&!s||"outside"===e._config.autoClose&&s) continue; if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName))) continue; const o={ relatedTarget: e._element }; "click"===t.type&&(o.clickEvent=t), e._completeHide(o) }} static dataApiKeydownHandler(t){ const e=/input|textarea/i.test(t.target.tagName), i="Escape"===t.key, n=[ Ei, Ti ].includes(t.key); if(!n&&!i) return; if(e&&!i) return; t.preventDefault(); const s=this.matches(Ii) ? this:z.prev(this, Ii)[ 0 ]||z.next(this, Ii)[ 0 ]||z.findOne(Ii, t.delegateTarget.parentNode), o=qi.getOrCreateInstance(s); if(n) return t.stopPropagation(), o.show(), void o._selectMenuItem(t); o._isShown()&&(t.stopPropagation(), o.hide(), s.focus()) }} N.on(document, Si, Ii, qi.dataApiKeydownHandler), N.on(document, Si, Pi, qi.dataApiKeydownHandler), N.on(document, Li, qi.clearMenus), N.on(document, Di, qi.clearMenus), N.on(document, Li, Ii,(function(t){ t.preventDefault(), qi.getOrCreateInstance(this).toggle() })), m(qi); const Vi="backdrop", Ki="show", Qi=`mousedown.bs.${ Vi }`, Xi={ className: "modal-backdrop", clickCallback: null, isAnimated: !1, isVisible: !0, rootElement: "body" }, Yi={ className: "string", clickCallback: "(function|null)", isAnimated: "boolean", isVisible: "boolean", rootElement: "(element|string)" }; class Ui extends H { constructor(t){ super(), this._config=this._getConfig(t), this._isAppended = !1, this._element=null } static get Default(){ return Xi } static get DefaultType(){ return Yi } static get NAME(){ return Vi } show(t){ if(!this._config.isVisible) return void g(t); this._append(); const e=this._getElement(); this._config.isAnimated&&d(e), e.classList.add(Ki), this._emulateAnimation(( ()=> { g(t) })) } hide(t){ this._config.isVisible ?(this._getElement().classList.remove(Ki), this._emulateAnimation(( ()=> { this.dispose(), g(t) }))):g(t) } dispose(){ this._isAppended&&(N.off(this._element, Qi), this._element.remove(), this._isAppended = !1) } _getElement(){ if(!this._element){ const t=document.createElement("div"); t.className=this._config.className, this._config.isAnimated&&t.classList.add("fade"), this._element=t } return this._element } _configAfterMerge(t){ return t.rootElement=r(t.rootElement), t } _append(){ if(this._isAppended) return; const t=this._getElement(); this._config.rootElement.append(t), N.on(t, Qi,(()=> { g(this._config.clickCallback) })), this._isAppended = !0 } _emulateAnimation(t){ _(t, this._getElement(), this._config.isAnimated) }} const Gi=".bs.focustrap", Ji=`focusin${ Gi }`, Zi=`keydown.tab${ Gi }`, tn="backward", en={ autofocus: !0, trapElement: null }, nn={ autofocus: "boolean", trapElement: "element" }; class sn extends H { constructor(t){ super(), this._config=this._getConfig(t), this._isActive = !1, this._lastTabNavDirection=null } static get Default(){ return en } static get DefaultType(){ return nn } static get NAME(){ return "focustrap" } activate(){ this._isActive||(this._config.autofocus&&this._config.trapElement.focus(), N.off(document, Gi), N.on(document, Ji,(t=> this._handleFocusin(t))), N.on(document, Zi,(t=> this._handleKeydown(t))), this._isActive = !0) } deactivate(){ this._isActive&&(this._isActive = !1, N.off(document, Gi)) } _handleFocusin(t){ const { trapElement: e }=this._config; if(t.target===document||t.target===e||e.contains(t.target)) return; const i=z.focusableChildren(e); 0===i.length ? e.focus():this._lastTabNavDirection===tn ? i[ i.length - 1 ].focus():i[ 0 ].focus() } _handleKeydown(t){ "Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey ? tn:"forward") }} const on=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top", rn=".sticky-top", an="padding-right", ln="margin-right"; class cn { constructor(){ this._element=document.body } getWidth(){ const t=document.documentElement.clientWidth; return Math.abs(window.innerWidth - t) } hide(){ const t=this.getWidth(); this._disableOverFlow(), this._setElementAttributes(this._element, an,(e=> e + t)), this._setElementAttributes(on, an,(e=> e + t)), this._setElementAttributes(rn, ln,(e=> e - t)) } reset(){ this._resetElementAttributes(this._element, "overflow"), this._resetElementAttributes(this._element, an), this._resetElementAttributes(on, an), this._resetElementAttributes(rn, ln) } isOverflowing(){ return this.getWidth() > 0 } _disableOverFlow(){ this._saveInitialAttribute(this._element, "overflow"), this._element.style.overflow="hidden" } _setElementAttributes(t, e, i){ const n=this.getWidth(); this._applyManipulationCallback(t,(t=> { if(t!==this._element&&window.innerWidth > t.clientWidth + n) return; this._saveInitialAttribute(t, e); const s=window.getComputedStyle(t).getPropertyValue(e); t.style.setProperty(e, `${ i(Number.parseFloat(s)) }px`) })) } _saveInitialAttribute(t, e){ const i=t.style.getPropertyValue(e); i&&F.setDataAttribute(t, e, i) } _resetElementAttributes(t, e){ this._applyManipulationCallback(t,(t=> { const i=F.getDataAttribute(t, e); null!==i ?(F.removeDataAttribute(t, e), t.style.setProperty(e, i)):t.style.removeProperty(e) })) } _applyManipulationCallback(t, e){ if(o(t)) e(t); else for(const i of z.find(t, this._element)) e(i) }} const hn=".bs.modal", dn=`hide${ hn }`, un=`hidePrevented${ hn }`, fn=`hidden${ hn }`, pn=`show${ hn }`, mn=`shown${ hn }`, gn=`resize${ hn }`, _n=`click.dismiss${ hn }`, bn=`mousedown.dismiss${ hn }`, vn=`keydown.dismiss${ hn }`, yn=`click${ hn }.data-api`, wn="modal-open", An="show", En="modal-static", Tn={ backdrop: !0, focus: !0, keyboard: !0 }, Cn={ backdrop: "(boolean|string)", focus: "boolean", keyboard: "boolean" }; class On extends W { constructor(t, e){ super(t, e), this._dialog=z.findOne(".modal-dialog", this._element), this._backdrop=this._initializeBackDrop(), this._focustrap=this._initializeFocusTrap(), this._isShown = !1, this._isTransitioning = !1, this._scrollBar=new cn, this._addEventListeners() } static get Default(){ return Tn } static get DefaultType(){ return Cn } static get NAME(){ return "modal" } toggle(t){ return this._isShown ? this.hide():this.show(t) } show(t){ this._isShown||this._isTransitioning||N.trigger(this._element, pn, { relatedTarget: t }).defaultPrevented||(this._isShown = !0, this._isTransitioning = !0, this._scrollBar.hide(), document.body.classList.add(wn), this._adjustDialog(), this._backdrop.show(( ()=> this._showElement(t)))) } hide(){ this._isShown&&!this._isTransitioning&&(N.trigger(this._element, dn).defaultPrevented||(this._isShown = !1, this._isTransitioning = !0, this._focustrap.deactivate(), this._element.classList.remove(An), this._queueCallback(( ()=> this._hideModal()), this._element, this._isAnimated()))) } dispose(){ N.off(window, hn), N.off(this._dialog, hn), this._backdrop.dispose(), this._focustrap.deactivate(), super.dispose() } handleUpdate(){ this._adjustDialog() } _initializeBackDrop(){ return new Ui({ isVisible: Boolean(this._config.backdrop), isAnimated: this._isAnimated() }) } _initializeFocusTrap(){ return new sn({ trapElement: this._element }) } _showElement(t){ document.body.contains(this._element)||document.body.append(this._element), this._element.style.display="block", this._element.removeAttribute("aria-hidden"), this._element.setAttribute("aria-modal", !0), this._element.setAttribute("role", "dialog"), this._element.scrollTop=0; const e=z.findOne(".modal-body", this._dialog); e&&(e.scrollTop=0), d(this._element), this._element.classList.add(An), this._queueCallback(( ()=> { this._config.focus&&this._focustrap.activate(), this._isTransitioning = !1, N.trigger(this._element, mn, { relatedTarget: t }) }), this._dialog, this._isAnimated()) } _addEventListeners(){ N.on(this._element, vn,(t=> { "Escape"===t.key&&(this._config.keyboard ? this.hide():this._triggerBackdropTransition()) })), N.on(window, gn,(()=> { this._isShown&&!this._isTransitioning&&this._adjustDialog() })), N.on(this._element, bn,(t=> { N.one(this._element, _n,(e=> { this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop ? this._config.backdrop&&this.hide():this._triggerBackdropTransition()) })) })) } _hideModal(){ this._element.style.display="none", this._element.setAttribute("aria-hidden", !0), this._element.removeAttribute("aria-modal"), this._element.removeAttribute("role"), this._isTransitioning = !1, this._backdrop.hide(( ()=> { document.body.classList.remove(wn), this._resetAdjustments(), this._scrollBar.reset(), N.trigger(this._element, fn) })) } _isAnimated(){ return this._element.classList.contains("fade") } _triggerBackdropTransition(){ if(N.trigger(this._element, un).defaultPrevented) return; const t=this._element.scrollHeight > document.documentElement.clientHeight, e=this._element.style.overflowY; "hidden"===e||this._element.classList.contains(En)||(t||(this._element.style.overflowY="hidden"), this._element.classList.add(En), this._queueCallback(( ()=> { this._element.classList.remove(En), this._queueCallback(( ()=> { this._element.style.overflowY=e }), this._dialog) }), this._dialog), this._element.focus()) } _adjustDialog(){ const t=this._element.scrollHeight > document.documentElement.clientHeight, e=this._scrollBar.getWidth(), i=e > 0; if(i&&!t){ const t=p() ? "paddingLeft":"paddingRight"; this._element.style[ t ]=`${ e }px` } if(!i&&t){ const t=p() ? "paddingRight":"paddingLeft"; this._element.style[ t ]=`${ e }px` }} _resetAdjustments(){ this._element.style.paddingLeft="", this._element.style.paddingRight="" } static jQueryInterface(t, e){ return this.each(( function (){ const i=On.getOrCreateInstance(this, t); if("string"==typeof t){ if(void 0===i[ t ]) throw new TypeError(`No method named "${ t }"`); i[ t ](e) }})) }} N.on(document, yn, '[data-bs-toggle="modal"]',(function(t){ const e=z.getElementFromSelector(this);[ "A", "AREA" ].includes(this.tagName)&&t.preventDefault(), N.one(e, pn,(t=> { t.defaultPrevented||N.one(e, fn,(()=> { a(this)&&this.focus() })) })); const i=z.findOne(".modal.show"); i&&On.getInstance(i).hide(), On.getOrCreateInstance(e).toggle(this) })), R(On), m(On); const xn=".bs.offcanvas", kn=".data-api", Ln=`load${ xn }${ kn }`, Sn="show", Dn="showing", $n="hiding", In=".offcanvas.show", Nn=`show${ xn }`, Pn=`shown${ xn }`, Mn=`hide${ xn }`, jn=`hidePrevented${ xn }`, Fn=`hidden${ xn }`, Hn=`resize${ xn }`, Wn=`click${ xn }${ kn }`, Bn=`keydown.dismiss${ xn }`, zn={ backdrop: !0, keyboard: !0, scroll: !1 }, Rn={ backdrop: "(boolean|string)", keyboard: "boolean", scroll: "boolean" }; class qn extends W { constructor(t, e){ super(t, e), this._isShown = !1, this._backdrop=this._initializeBackDrop(), this._focustrap=this._initializeFocusTrap(), this._addEventListeners() } static get Default(){ return zn } static get DefaultType(){ return Rn } static get NAME(){ return "offcanvas" } toggle(t){ return this._isShown ? this.hide():this.show(t) } show(t){ this._isShown||N.trigger(this._element, Nn, { relatedTarget: t }).defaultPrevented||(this._isShown = !0, this._backdrop.show(), this._config.scroll||(new cn).hide(), this._element.setAttribute("aria-modal", !0), this._element.setAttribute("role", "dialog"), this._element.classList.add(Dn), this._queueCallback(( ()=> { this._config.scroll&&!this._config.backdrop||this._focustrap.activate(), this._element.classList.add(Sn), this._element.classList.remove(Dn), N.trigger(this._element, Pn, { relatedTarget: t }) }), this._element, !0)) } hide(){ this._isShown&&(N.trigger(this._element, Mn).defaultPrevented||(this._focustrap.deactivate(), this._element.blur(), this._isShown = !1, this._element.classList.add($n), this._backdrop.hide(), this._queueCallback(( ()=> { this._element.classList.remove(Sn, $n), this._element.removeAttribute("aria-modal"), this._element.removeAttribute("role"), this._config.scroll||(new cn).reset(), N.trigger(this._element, Fn) }), this._element, !0))) } dispose(){ this._backdrop.dispose(), this._focustrap.deactivate(), super.dispose() } _initializeBackDrop(){ const t=Boolean(this._config.backdrop); return new Ui({ className: "offcanvas-backdrop", isVisible: t, isAnimated: !0, rootElement: this._element.parentNode, clickCallback: t ? ()=> { "static"!==this._config.backdrop ? this.hide():N.trigger(this._element, jn) }:null }) } _initializeFocusTrap(){ return new sn({ trapElement: this._element }) } _addEventListeners(){ N.on(this._element, Bn,(t=> { "Escape"===t.key&&(this._config.keyboard ? this.hide():N.trigger(this._element, jn)) })) } static jQueryInterface(t){ return this.each(( function (){ const e=qn.getOrCreateInstance(this, t); if("string"==typeof t){ if(void 0===e[ t ]||t.startsWith("_")||"constructor"===t) throw new TypeError(`No method named "${ t }"`); e[ t ](this) }})) }} N.on(document, Wn, '[data-bs-toggle="offcanvas"]',(function(t){ const e=z.getElementFromSelector(this); if([ "A", "AREA" ].includes(this.tagName)&&t.preventDefault(), l(this)) return; N.one(e, Fn,(()=> { a(this)&&this.focus() })); const i=z.findOne(In); i&&i!==e&&qn.getInstance(i).hide(), qn.getOrCreateInstance(e).toggle(this) })), N.on(window, Ln,(()=> { for(const t of z.find(In)) qn.getOrCreateInstance(t).show() })), N.on(window, Hn,(()=> { for(const t of z.find("[aria-modal][class*=show][class*=offcanvas-]")) "fixed"!==getComputedStyle(t).position&&qn.getOrCreateInstance(t).hide() })), R(qn), m(qn); const Vn={ "*": [ "class", "dir", "id", "lang", "role", /^aria-[\w-]*$/i ], a: [ "target", "href", "title", "rel" ], area: [], b: [], br: [], col: [], code: [], div: [], em: [], hr: [], h1: [], h2: [], h3: [], h4: [], h5: [], h6: [], i: [], img: [ "src", "srcset", "alt", "title", "width", "height" ], li: [], ol: [], p: [], pre: [], s: [], small: [], span: [], sub: [], sup: [], strong: [], u: [], ul: [] }, Kn=new Set([ "background", "cite", "href", "itemtype", "longdesc", "poster", "src", "xlink:href" ]), Qn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i, Xn=(t, e)=> { const i=t.nodeName.toLowerCase(); return e.includes(i) ? !Kn.has(i)||Boolean(Qn.test(t.nodeValue)):e.filter(( t=> t instanceof RegExp)).some(( t=> t.test(i))) }, Yn={ allowList: Vn, content: {}, extraClass: "", html: !1, sanitize: !0, sanitizeFn: null, template: "<div></div>" }, Un={ allowList: "object", content: "object", extraClass: "(string|function)", html: "boolean", sanitize: "boolean", sanitizeFn: "(null|function)", template: "string" }, Gn={ entry: "(string|element|function|null)", selector: "(string|element)" }; class Jn extends H { constructor(t){ super(), this._config=this._getConfig(t) } static get Default(){ return Yn } static get DefaultType(){ return Un } static get NAME(){ return "TemplateFactory" } getContent(){ return Object.values(this._config.content).map(( t=> this._resolvePossibleFunction(t))).filter(Boolean) } hasContent(){ return this.getContent().length > 0 } changeContent(t){ return this._checkContent(t), this._config.content={ ...this._config.content, ...t }, this } toHtml(){ const t=document.createElement("div"); t.innerHTML=this._maybeSanitize(this._config.template); for(const [ e, i ] of Object.entries(this._config.content)) this._setContent(t, i, e); const e=t.children[ 0 ], i=this._resolvePossibleFunction(this._config.extraClass); return i&&e.classList.add(...i.split(" ")), e } _typeCheckConfig(t){ super._typeCheckConfig(t), this._checkContent(t.content) } _checkContent(t){ for(const [ e, i ] of Object.entries(t)) super._typeCheckConfig({ selector: e, entry: i }, Gn) } _setContent(t, e, i){ const n=z.findOne(i, t); n&&(( e=this._resolvePossibleFunction(e)) ? o(e) ? this._putElementInTemplate(r(e), n):this._config.html ? n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove()) } _maybeSanitize(t){ return this._config.sanitize ? function(t, e, i){ if(!t.length) return t; if(i&&"function"==typeof i) return i(t); const n=(new window.DOMParser).parseFromString(t, "text/html"), s=[].concat(...n.body.querySelectorAll("*")); for(const t of s){ const i=t.nodeName.toLowerCase(); if(!Object.keys(e).includes(i)){ t.remove(); continue } const n=[].concat(...t.attributes), s=[].concat(e[ "*" ]||[], e[ i ]||[]); for(const e of n) Xn(e, s)||t.removeAttribute(e.nodeName) } return n.body.innerHTML }(t, this._config.allowList, this._config.sanitizeFn):t } _resolvePossibleFunction(t){ return g(t, [ this ]) } _putElementInTemplate(t, e){ if(this._config.html) return e.innerHTML="", void e.append(t); e.textContent=t.textContent }} const Zn=new Set([ "sanitize", "allowList", "sanitizeFn" ]), ts="fade", es="show", is=".modal", ns="hide.bs.modal", ss="hover", os="focus", rs={ AUTO: "auto", TOP: "top", RIGHT: p() ? "left":"right", BOTTOM: "bottom", LEFT: p() ? "right":"left" }, as={ allowList: Vn, animation: !0, boundary: "clippingParents", container: !1, customClass: "", delay: 0, fallbackPlacements: [ "top", "right", "bottom", "left" ], html: !1, offset: [ 0, 6 ], placement: "top", popperConfig: null, sanitize: !0, sanitizeFn: null, selector: !1, template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>', title: "", trigger: "hover focus" }, ls={ allowList: "object", animation: "boolean", boundary: "(string|element)", container: "(string|element|boolean)", customClass: "(string|function)", delay: "(number|object)", fallbackPlacements: "array", html: "boolean", offset: "(array|string|function)", placement: "(string|function)", popperConfig: "(null|object|function)", sanitize: "boolean", sanitizeFn: "(null|function)", selector: "(string|boolean)", template: "string", title: "(string|element|function)", trigger: "string" }; class cs extends W { constructor(t, e){ if(void 0===vi) throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)"); super(t, e), this._isEnabled = !0, this._timeout=0, this._isHovered=null, this._activeTrigger={}, this._popper=null, this._templateFactory=null, this._newContent=null, this.tip=null, this._setListeners(), this._config.selector||this._fixTitle() } static get Default(){ return as } static get DefaultType(){ return ls } static get NAME(){ return "tooltip" } enable(){ this._isEnabled = !0 } disable(){ this._isEnabled = !1 } toggleEnabled(){ this._isEnabled = !this._isEnabled } toggle(){ this._isEnabled&&(this._activeTrigger.click = !this._activeTrigger.click, this._isShown() ? this._leave():this._enter()) } dispose(){ clearTimeout(this._timeout), N.off(this._element.closest(is), ns, this._hideModalHandler), this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title", this._element.getAttribute("data-bs-original-title")), this._disposePopper(), super.dispose() } show(){ if("none"===this._element.style.display) throw new Error("Please use show on visible elements"); if(!this._isWithContent()||!this._isEnabled) return; const t=N.trigger(this._element, this.constructor.eventName("show")), e=(c(this._element)||this._element.ownerDocument.documentElement).contains(this._element); if(t.defaultPrevented||!e) return; this._disposePopper(); const i=this._getTipElement(); this._element.setAttribute("aria-describedby", i.getAttribute("id")); const { container: n }=this._config; if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i), N.trigger(this._element, this.constructor.eventName("inserted"))), this._popper=this._createPopper(i), i.classList.add(es), "ontouchstart" in document.documentElement) for(const t of [].concat(...document.body.children)) N.on(t, "mouseover", h); this._queueCallback(( ()=> { N.trigger(this._element, this.constructor.eventName("shown")), !1===this._isHovered&&this._leave(), this._isHovered = !1 }), this.tip, this._isAnimated()) } hide(){ if(this._isShown()&&!N.trigger(this._element, this.constructor.eventName("hide")).defaultPrevented){ if(this._getTipElement().classList.remove(es), "ontouchstart" in document.documentElement) for(const t of [].concat(...document.body.children)) N.off(t, "mouseover", h); this._activeTrigger.click = !1, this._activeTrigger[ os ] = !1, this._activeTrigger[ ss ] = !1, this._isHovered=null, this._queueCallback(( ()=> { this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(), this._element.removeAttribute("aria-describedby"), N.trigger(this._element, this.constructor.eventName("hidden"))) }), this.tip, this._isAnimated()) }} update(){ this._popper&&this._popper.update() } _isWithContent(){ return Boolean(this._getTitle()) } _getTipElement(){ return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())), this.tip } _createTipElement(t){ const e=this._getTemplateFactory(t).toHtml(); if(!e) return null; e.classList.remove(ts, es), e.classList.add(`bs-${ this.constructor.NAME }-auto`); const i=(t=> { do { t +=Math.floor(1e6 * Math.random()) } while(document.getElementById(t)); return t })(this.constructor.NAME).toString(); return e.setAttribute("id", i), this._isAnimated()&&e.classList.add(ts), e } setContent(t){ this._newContent=t, this._isShown()&&(this._disposePopper(), this.show()) } _getTemplateFactory(t){ return this._templateFactory ? this._templateFactory.changeContent(t):this._templateFactory=new Jn({ ...this._config, content: t, extraClass: this._resolvePossibleFunction(this._config.customClass) }), this._templateFactory } _getContentForTemplate(){ return { ".tooltip-inner": this._getTitle() }} _getTitle(){ return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title") } _initializeOnDelegatedTarget(t){ return this.constructor.getOrCreateInstance(t.delegateTarget, this._getDelegateConfig()) } _isAnimated(){ return this._config.animation||this.tip&&this.tip.classList.contains(ts) } _isShown(){ return this.tip&&this.tip.classList.contains(es) } _createPopper(t){ const e=g(this._config.placement, [ this, t, this._element ]), i=rs[ e.toUpperCase() ]; return bi(this._element, t, this._getPopperConfig(i)) } _getOffset(){ const { offset: t }=this._config; return "string"==typeof t ? t.split(",").map(( t=> Number.parseInt(t, 10))):"function"==typeof t ? e=> t(e, this._element):t } _resolvePossibleFunction(t){ return g(t, [ this._element ]) } _getPopperConfig(t){ const e={ placement: t, modifiers: [ { name: "flip", options: { fallbackPlacements: this._config.fallbackPlacements }}, { name: "offset", options: { offset: this._getOffset() }}, { name: "preventOverflow", options: { boundary: this._config.boundary }}, { name: "arrow", options: { element: `.${ this.constructor.NAME }-arrow` }}, { name: "preSetPlacement", enabled: !0, phase: "beforeMain", fn: t=> { this._getTipElement().setAttribute("data-popper-placement", t.state.placement) }} ] }; return { ...e, ...g(this._config.popperConfig, [ e ]) }} _setListeners(){ const t=this._config.trigger.split(" "); for(const e of t) if("click"===e) N.on(this._element, this.constructor.eventName("click"), this._config.selector,(t=> { this._initializeOnDelegatedTarget(t).toggle() })); else if("manual"!==e){ const t=e===ss ? this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"), i=e===ss ? this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout"); N.on(this._element, t, this._config.selector,(t=> { const e=this._initializeOnDelegatedTarget(t); e._activeTrigger[ "focusin"===t.type ? os:ss ] = !0, e._enter() })), N.on(this._element, i, this._config.selector,(t=> { const e=this._initializeOnDelegatedTarget(t); e._activeTrigger[ "focusout"===t.type ? os:ss ]=e._element.contains(t.relatedTarget), e._leave() })) } this._hideModalHandler=()=> { this._element&&this.hide() }, N.on(this._element.closest(is), ns, this._hideModalHandler) } _fixTitle(){ const t=this._element.getAttribute("title"); t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label", t), this._element.setAttribute("data-bs-original-title", t), this._element.removeAttribute("title")) } _enter(){ this._isShown()||this._isHovered ? this._isHovered = !0:(this._isHovered = !0, this._setTimeout(( ()=> { this._isHovered&&this.show() }), this._config.delay.show)) } _leave(){ this._isWithActiveTrigger()||(this._isHovered = !1, this._setTimeout(( ()=> { this._isHovered||this.hide() }), this._config.delay.hide)) } _setTimeout(t, e){ clearTimeout(this._timeout), this._timeout=setTimeout(t, e) } _isWithActiveTrigger(){ return Object.values(this._activeTrigger).includes(!0) } _getConfig(t){ const e=F.getDataAttributes(this._element); for(const t of Object.keys(e)) Zn.has(t)&&delete e[ t ]; return t={ ...e, ..."object"==typeof t&&t ? t:{}}, t=this._mergeConfigObj(t), t=this._configAfterMerge(t), this._typeCheckConfig(t), t } _configAfterMerge(t){ return t.container = !1===t.container ? document.body:r(t.container), "number"==typeof t.delay&&(t.delay={ show: t.delay, hide: t.delay }), "number"==typeof t.title&&(t.title=t.title.toString()), "number"==typeof t.content&&(t.content=t.content.toString()), t } _getDelegateConfig(){ const t={}; for(const [ e, i ] of Object.entries(this._config)) this.constructor.Default[ e ]!==i&&(t[ e ]=i); return t.selector = !1, t.trigger="manual", t } _disposePopper(){ this._popper&&(this._popper.destroy(), this._popper=null), this.tip&&(this.tip.remove(), this.tip=null) } static jQueryInterface(t){ return this.each(( function (){ const e=cs.getOrCreateInstance(this, t); if("string"==typeof t){ if(void 0===e[ t ]) throw new TypeError(`No method named "${ t }"`); e[ t ]() }})) }} m(cs); const hs={ ...cs.Default, content: "", offset: [ 0, 8 ], placement: "right", template: '<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>', trigger: "click" }, ds={ ...cs.DefaultType, content: "(null|string|element|function)" }; class us extends cs { static get Default(){ return hs } static get DefaultType(){ return ds } static get NAME(){ return "popover" } _isWithContent(){ return this._getTitle()||this._getContent() } _getContentForTemplate(){ return { ".popover-header": this._getTitle(), ".popover-body": this._getContent() }} _getContent(){ return this._resolvePossibleFunction(this._config.content) } static jQueryInterface(t){ return this.each(( function (){ const e=us.getOrCreateInstance(this, t); if("string"==typeof t){ if(void 0===e[ t ]) throw new TypeError(`No method named "${ t }"`); e[ t ]() }})) }} m(us); const fs=".bs.scrollspy", ps=`activate${ fs }`, ms=`click${ fs }`, gs=`load${ fs }.data-api`, _s="active", bs="[href]", vs=".nav-link", ys=`${ vs }, .nav-item > ${ vs }, .list-group-item`, ws={ offset: null, rootMargin: "0px 0px -25%", smoothScroll: !1, target: null, threshold: [ .1, .5, 1 ] }, As={ offset: "(number|null)", rootMargin: "string", smoothScroll: "boolean", target: "element", threshold: "array" }; class Es extends W { constructor(t, e){ super(t, e), this._targetLinks=new Map, this._observableSections=new Map, this._rootElement="visible"===getComputedStyle(this._element).overflowY ? null:this._element, this._activeTarget=null, this._observer=null, this._previousScrollData={ visibleEntryTop: 0, parentScrollTop: 0 }, this.refresh() } static get Default(){ return ws } static get DefaultType(){ return As } static get NAME(){ return "scrollspy" } refresh(){ this._initializeTargetsAndObservables(), this._maybeEnableSmoothScroll(), this._observer ? this._observer.disconnect():this._observer=this._getNewObserver(); for(const t of this._observableSections.values()) this._observer.observe(t) } dispose(){ this._observer.disconnect(), super.dispose() } _configAfterMerge(t){ return t.target=r(t.target)||document.body, t.rootMargin=t.offset ? `${ t.offset }px 0px -30%`:t.rootMargin, "string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map(( t=> Number.parseFloat(t)))), t } _maybeEnableSmoothScroll(){ this._config.smoothScroll&&(N.off(this._config.target, ms), N.on(this._config.target, ms, bs,(t=> { const e=this._observableSections.get(t.target.hash); if(e){ t.preventDefault(); const i=this._rootElement||window, n=e.offsetTop - this._element.offsetTop; if(i.scrollTo) return void i.scrollTo({ top: n, behavior: "smooth" }); i.scrollTop=n }}))) } _getNewObserver(){ const t={ root: this._rootElement, threshold: this._config.threshold, rootMargin: this._config.rootMargin }; return new IntersectionObserver(( t=> this._observerCallback(t)), t) } _observerCallback(t){ const e=t => this._targetLinks.get(`#${ t.target.id }`), i=t => { this._previousScrollData.visibleEntryTop=t.target.offsetTop, this._process(e(t)) }, n=(this._rootElement||document.documentElement).scrollTop, s=n >=this._previousScrollData.parentScrollTop; this._previousScrollData.parentScrollTop=n; for(const o of t){ if(!o.isIntersecting){ this._activeTarget=null, this._clearActiveClass(e(o)); continue } const t=o.target.offsetTop >=this._previousScrollData.visibleEntryTop; if(s&&t){ if(i(o), !n) return } else s||t || i(o) }} _initializeTargetsAndObservables(){ this._targetLinks=new Map, this._observableSections=new Map; const t=z.find(bs, this._config.target); for(const e of t){ if(!e.hash||l(e)) continue; const t=z.findOne(decodeURI(e.hash), this._element); a(t)&&(this._targetLinks.set(decodeURI(e.hash), e), this._observableSections.set(e.hash, t)) }} _process(t){ this._activeTarget!==t&&(this._clearActiveClass(this._config.target), this._activeTarget=t, t.classList.add(_s), this._activateParents(t), N.trigger(this._element, ps, { relatedTarget: t })) } _activateParents(t){ if(t.classList.contains("dropdown-item")) z.findOne(".dropdown-toggle", t.closest(".dropdown")).classList.add(_s); else for(const e of z.parents(t, ".nav, .list-group")) for(const t of z.prev(e, ys)) t.classList.add(_s) } _clearActiveClass(t){ t.classList.remove(_s); const e=z.find(`${ bs }.${ _s }`, t); for(const t of e) t.classList.remove(_s) } static jQueryInterface(t){ return this.each(( function (){ const e=Es.getOrCreateInstance(this, t); if("string"==typeof t){ if(void 0===e[ t ]||t.startsWith("_")||"constructor"===t) throw new TypeError(`No method named "${ t }"`); e[ t ]() }})) }} N.on(window, gs,(()=> { for(const t of z.find('[data-bs-spy="scroll"]')) Es.getOrCreateInstance(t) })), m(Es); const Ts=".bs.tab", Cs=`hide${ Ts }`, Os=`hidden${ Ts }`, xs=`show${ Ts }`, ks=`shown${ Ts }`, Ls=`click${ Ts }`, Ss=`keydown${ Ts }`, Ds=`load${ Ts }`, $s="ArrowLeft", Is="ArrowRight", Ns="ArrowUp", Ps="ArrowDown", Ms="Home", js="End", Fs="active", Hs="fade", Ws="show", Bs=".dropdown-toggle", zs=`:not(${ Bs })`, Rs='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]', qs=`.nav-link${ zs }, .list-group-item${ zs }, [role="tab"]${ zs }, ${ Rs }`, Vs=`.${ Fs }[data-bs-toggle="tab"], .${ Fs }[data-bs-toggle="pill"], .${ Fs }[data-bs-toggle="list"]`; class Ks extends W { constructor(t){ super(t), this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'), this._parent&&(this._setInitialAttributes(this._parent, this._getChildren()), N.on(this._element, Ss,(t=> this._keydown(t)))) } static get NAME(){ return "tab" } show(){ const t=this._element; if(this._elemIsActive(t)) return; const e=this._getActiveElem(), i=e ? N.trigger(e, Cs, { relatedTarget: t }):null; N.trigger(t, xs, { relatedTarget: e }).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e, t), this._activate(t, e)) } _activate(t, e){ t&&(t.classList.add(Fs), this._activate(z.getElementFromSelector(t)), this._queueCallback(( ()=> { "tab"===t.getAttribute("role") ?(t.removeAttribute("tabindex"), t.setAttribute("aria-selected", !0), this._toggleDropDown(t, !0), N.trigger(t, ks, { relatedTarget: e })):t.classList.add(Ws) }), t, t.classList.contains(Hs))) } _deactivate(t, e){ t&&(t.classList.remove(Fs), t.blur(), this._deactivate(z.getElementFromSelector(t)), this._queueCallback(( ()=> { "tab"===t.getAttribute("role") ?(t.setAttribute("aria-selected", !1), t.setAttribute("tabindex", "-1"), this._toggleDropDown(t, !1), N.trigger(t, Os, { relatedTarget: e })):t.classList.remove(Ws) }), t, t.classList.contains(Hs))) } _keydown(t){ if(![ $s, Is, Ns, Ps, Ms, js ].includes(t.key)) return; t.stopPropagation(), t.preventDefault(); const e=this._getChildren().filter(( t=> !l(t))); let i; if([ Ms, js ].includes(t.key)) i=e[ t.key===Ms ? 0:e.length - 1 ]; else { const n=[ Is, Ps ].includes(t.key); i=b(e, t.target, n, !0) } i&&(i.focus({ preventScroll: !0 }), Ks.getOrCreateInstance(i).show()) } _getChildren(){ return z.find(qs, this._parent) } _getActiveElem(){ return this._getChildren().find(( t=> this._elemIsActive(t)))||null } _setInitialAttributes(t, e){ this._setAttributeIfNotExists(t, "role", "tablist"); for(const t of e) this._setInitialAttributesOnChild(t) } _setInitialAttributesOnChild(t){ t=this._getInnerElement(t); const e=this._elemIsActive(t), i=this._getOuterElement(t); t.setAttribute("aria-selected", e), i!==t&&this._setAttributeIfNotExists(i, "role", "presentation"), e||t.setAttribute("tabindex", "-1"), this._setAttributeIfNotExists(t, "role", "tab"), this._setInitialAttributesOnTargetPanel(t) } _setInitialAttributesOnTargetPanel(t){ const e=z.getElementFromSelector(t); e&&(this._setAttributeIfNotExists(e, "role", "tabpanel"), t.id&&this._setAttributeIfNotExists(e, "aria-labelledby", `${ t.id }`)) } _toggleDropDown(t, e){ const i=this._getOuterElement(t); if(!i.classList.contains("dropdown")) return; const n=(t, n)=> { const s=z.findOne(t, i); s&&s.classList.toggle(n, e) }; n(Bs, Fs), n(".dropdown-menu", Ws), i.setAttribute("aria-expanded", e) } _setAttributeIfNotExists(t, e, i){ t.hasAttribute(e)||t.setAttribute(e, i) } _elemIsActive(t){ return t.classList.contains(Fs) } _getInnerElement(t){ return t.matches(qs) ? t:z.findOne(qs, t) } _getOuterElement(t){ return t.closest(".nav-item, .list-group-item")||t } static jQueryInterface(t){ return this.each(( function (){ const e=Ks.getOrCreateInstance(this); if("string"==typeof t){ if(void 0===e[ t ]||t.startsWith("_")||"constructor"===t) throw new TypeError(`No method named "${ t }"`); e[ t ]() }})) }} N.on(document, Ls, Rs,(function(t){ [ "A", "AREA" ].includes(this.tagName)&&t.preventDefault(), l(this)||Ks.getOrCreateInstance(this).show() })), N.on(window, Ds,(()=> { for(const t of z.find(Vs)) Ks.getOrCreateInstance(t) })), m(Ks); const Qs=".bs.toast", Xs=`mouseover${ Qs }`, Ys=`mouseout${ Qs }`, Us=`focusin${ Qs }`, Gs=`focusout${ Qs }`, Js=`hide${ Qs }`, Zs=`hidden${ Qs }`, to=`show${ Qs }`, eo=`shown${ Qs }`, io="hide", no="show", so="showing", oo={ animation: "boolean", autohide: "boolean", delay: "number" }, ro={ animation: !0, autohide: !0, delay: 5e3 }; class ao extends W { constructor(t, e){ super(t, e), this._timeout=null, this._hasMouseInteraction = !1, this._hasKeyboardInteraction = !1, this._setListeners() } static get Default(){ return ro } static get DefaultType(){ return oo } static get NAME(){ return "toast" } show(){ N.trigger(this._element, to).defaultPrevented||(this._clearTimeout(), this._config.animation&&this._element.classList.add("fade"), this._element.classList.remove(io), d(this._element), this._element.classList.add(no, so), this._queueCallback(( ()=> { this._element.classList.remove(so), N.trigger(this._element, eo), this._maybeScheduleHide() }), this._element, this._config.animation)) } hide(){ this.isShown()&&(N.trigger(this._element, Js).defaultPrevented||(this._element.classList.add(so), this._queueCallback(( ()=> { this._element.classList.add(io), this._element.classList.remove(so, no), N.trigger(this._element, Zs) }), this._element, this._config.animation))) } dispose(){ this._clearTimeout(), this.isShown()&&this._element.classList.remove(no), super.dispose() } isShown(){ return this._element.classList.contains(no) } _maybeScheduleHide(){ this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(( ()=> { this.hide() }), this._config.delay))) } _onInteraction(t, e){ switch(t.type){ case "mouseover": case "mouseout": this._hasMouseInteraction=e; break; case "focusin": case "focusout": this._hasKeyboardInteraction=e }if(e) return void this._clearTimeout(); const i=t.relatedTarget; this._element===i||this._element.contains(i)||this._maybeScheduleHide() } _setListeners(){ N.on(this._element, Xs,(t=> this._onInteraction(t, !0))), N.on(this._element, Ys,(t=> this._onInteraction(t, !1))), N.on(this._element, Us,(t=> this._onInteraction(t, !0))), N.on(this._element, Gs,(t=> this._onInteraction(t, !1))) } _clearTimeout(){ clearTimeout(this._timeout), this._timeout=null } static jQueryInterface(t){ return this.each(( function (){ const e=ao.getOrCreateInstance(this, t); if("string"==typeof t){ if(void 0===e[ t ]) throw new TypeError(`No method named "${ t }"`); e[ t ](this) }})) }} return R(ao), m(ao), { Alert: Q, Button: Y, Carousel: xt, Collapse: Bt, Dropdown: qi, Modal: On, Offcanvas: qn, Popover: us, ScrollSpy: Es, Tab: Ks, Toast: ao, Tooltip: cs }}));
!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(B){"use strict";B.ui=B.ui||{};B.ui.version="1.13.1";var n,i=0,o=Array.prototype.hasOwnProperty,r=Array.prototype.slice;B.cleanData=(n=B.cleanData,function(t){for(var e,i,s=0;null!=(i=t[s]);s++)(e=B._data(i,"events"))&&e.remove&&B(i).triggerHandler("remove");n(t)}),B.widget=function(t,i,e){var s,n,a,o={},r=t.split(".")[0],l=r+"-"+(t=t.split(".")[1]);return e||(e=i,i=B.Widget),Array.isArray(e)&&(e=B.extend.apply(null,[{}].concat(e))),B.expr.pseudos[l.toLowerCase()]=function(t){return!!B.data(t,l)},B[r]=B[r]||{},s=B[r][t],n=B[r][t]=function(t,e){if(!this||!this._createWidget)return new n(t,e);arguments.length&&this._createWidget(t,e)},B.extend(n,s,{version:e.version,_proto:B.extend({},e),_childConstructors:[]}),(a=new i).options=B.widget.extend({},a.options),B.each(e,function(e,s){function n(){return i.prototype[e].apply(this,arguments)}function a(t){return i.prototype[e].apply(this,t)}o[e]="function"==typeof s?function(){var t,e=this._super,i=this._superApply;return this._super=n,this._superApply=a,t=s.apply(this,arguments),this._super=e,this._superApply=i,t}:s}),n.prototype=B.widget.extend(a,{widgetEventPrefix:s&&a.widgetEventPrefix||t},o,{constructor:n,namespace:r,widgetName:t,widgetFullName:l}),s?(B.each(s._childConstructors,function(t,e){var i=e.prototype;B.widget(i.namespace+"."+i.widgetName,n,e._proto)}),delete s._childConstructors):i._childConstructors.push(n),B.widget.bridge(t,n),n},B.widget.extend=function(t){for(var e,i,s=r.call(arguments,1),n=0,a=s.length;n<a;n++)for(e in s[n])i=s[n][e],o.call(s[n],e)&&void 0!==i&&(B.isPlainObject(i)?t[e]=B.isPlainObject(t[e])?B.widget.extend({},t[e],i):B.widget.extend({},i):t[e]=i);return t},B.widget.bridge=function(a,e){var o=e.prototype.widgetFullName||a;B.fn[a]=function(i){var t="string"==typeof i,s=r.call(arguments,1),n=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=B.data(this,o);return"instance"===i?(n=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?B.error("no such method '"+i+"' for "+a+" widget instance"):(t=e[i].apply(e,s))!==e&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:B.error("cannot call methods on "+a+" prior to initialization; attempted to call method '"+i+"'")}):n=void 0:(s.length&&(i=B.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=B.data(this,o);t?(t.option(i||{}),t._init&&t._init()):B.data(this,o,new e(i,this))})),n}},B.Widget=function(){},B.Widget._childConstructors=[],B.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=B(e||this.defaultElement||this)[0],this.element=B(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=B(),this.hoverable=B(),this.focusable=B(),this.classesElementLookup={},e!==this&&(B.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=B(e.style?e.ownerDocument:e.document||e),this.window=B(this.document[0].defaultView||this.document[0].parentWindow)),this.options=B.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:B.noop,_create:B.noop,_init:B.noop,destroy:function(){var i=this;this._destroy(),B.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:B.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,a=t;if(0===arguments.length)return B.widget.extend({},this.options);if("string"==typeof t)if(a={},t=(i=t.split(".")).shift(),i.length){for(s=a[t]=B.widget.extend({},this.options[t]),n=0;n<i.length-1;n++)s[i[n]]=s[i[n]]||{},s=s[i[n]];if(t=i.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];a[t]=e}return this._setOptions(a),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,s;for(e in t)s=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&s&&s.length&&(i=B(s.get()),this._removeClass(s,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(n){var a=[],o=this;function t(t,e){for(var i,s=0;s<t.length;s++)i=o.classesElementLookup[t[s]]||B(),i=n.add?(function(){var i=[];n.element.each(function(t,e){B.map(o.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),o._on(B(i),{remove:"_untrackClassesElement"})}(),B(B.uniqueSort(i.get().concat(n.element.get())))):B(i.not(n.element).get()),o.classesElementLookup[t[s]]=i,a.push(t[s]),e&&n.classes[t[s]]&&a.push(n.classes[t[s]])}return(n=B.extend({element:this.element,classes:this.options.classes||{}},n)).keys&&t(n.keys.match(/\S+/g)||[],!0),n.extra&&t(n.extra.match(/\S+/g)||[]),a.join(" ")},_untrackClassesElement:function(i){var s=this;B.each(s.classesElementLookup,function(t,e){-1!==B.inArray(i.target,e)&&(s.classesElementLookup[t]=B(e.not(i.target).get()))}),this._off(B(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){var n="string"==typeof t||null===t,i={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s="boolean"==typeof s?s:i};return i.element.toggleClass(this._classes(i),s),this},_on:function(n,a,t){var o,r=this;"boolean"!=typeof n&&(t=a,a=n,n=!1),t?(a=o=B(a),this.bindings=this.bindings.add(a)):(t=a,a=this.element,o=this.widget()),B.each(t,function(t,e){function i(){if(n||!0!==r.options.disabled&&!B(this).hasClass("ui-state-disabled"))return("string"==typeof e?r[e]:e).apply(r,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||B.guid++);var s=t.match(/^([\w:-]*)\s*(.*)$/),t=s[1]+r.eventNamespace,s=s[2];s?o.on(t,s,i):a.on(t,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=B(this.bindings.not(t).get()),this.focusable=B(this.focusable.not(t).get()),this.hoverable=B(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(B(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(B(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(B(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(B(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var s,n,a=this.options[t];if(i=i||{},(e=B.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],n=e.originalEvent)for(s in n)s in e||(e[s]=n[s]);return this.element.trigger(e,i),!("function"==typeof a&&!1===a.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},B.each({show:"fadeIn",hide:"fadeOut"},function(a,o){B.Widget.prototype["_"+a]=function(e,t,i){var s,n=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||o:a;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),s=!B.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),s&&B.effects&&B.effects.effect[n]?e[a](t):n!==a&&e[n]?e[n](t.duration,t.easing,i):e.queue(function(t){B(this)[a](),i&&i.call(e[0]),t()})}});var s,D,w,a,l,h,u,c,C;B.widget;function x(t,e,i){return[parseFloat(t[0])*(c.test(t[0])?e/100:1),parseFloat(t[1])*(c.test(t[1])?i/100:1)]}function M(t,e){return parseInt(B.css(t,e),10)||0}function I(t){return null!=t&&t===t.window}D=Math.max,w=Math.abs,a=/left|center|right/,l=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,u=/^\w+/,c=/%$/,C=B.fn.position,B.position={scrollbarWidth:function(){if(void 0!==s)return s;var t,e=B("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),i=e.children()[0];return B("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?B.position.scrollbarWidth():0,height:e?B.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=B(t||window),i=I(e[0]),s=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:s,offset:!i&&!s?B(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},B.fn.position=function(c){if(!c||!c.of)return C.apply(this,arguments);var d,p,m,f,g,t,_="string"==typeof(c=B.extend({},c)).of?B(document).find(c.of):B(c.of),v=B.position.getWithinInfo(c.within),b=B.position.getScrollInfo(v),y=(c.collision||"flip").split(" "),k={},e=9===(t=(e=_)[0]).nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:I(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()};return _[0].preventDefault&&(c.at="left top"),p=e.width,m=e.height,g=B.extend({},f=e.offset),B.each(["my","at"],function(){var t,e,i=(c[this]||"").split(" ");(i=1===i.length?a.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=a.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=h.exec(i[0]),e=h.exec(i[1]),k[this]=[t?t[0]:0,e?e[0]:0],c[this]=[u.exec(i[0])[0],u.exec(i[1])[0]]}),1===y.length&&(y[1]=y[0]),"right"===c.at[0]?g.left+=p:"center"===c.at[0]&&(g.left+=p/2),"bottom"===c.at[1]?g.top+=m:"center"===c.at[1]&&(g.top+=m/2),d=x(k.at,p,m),g.left+=d[0],g.top+=d[1],this.each(function(){var i,t,o=B(this),r=o.outerWidth(),l=o.outerHeight(),e=M(this,"marginLeft"),s=M(this,"marginTop"),n=r+e+M(this,"marginRight")+b.width,a=l+s+M(this,"marginBottom")+b.height,h=B.extend({},g),u=x(k.my,o.outerWidth(),o.outerHeight());"right"===c.my[0]?h.left-=r:"center"===c.my[0]&&(h.left-=r/2),"bottom"===c.my[1]?h.top-=l:"center"===c.my[1]&&(h.top-=l/2),h.left+=u[0],h.top+=u[1],i={marginLeft:e,marginTop:s},B.each(["left","top"],function(t,e){B.ui.position[y[t]]&&B.ui.position[y[t]][e](h,{targetWidth:p,targetHeight:m,elemWidth:r,elemHeight:l,collisionPosition:i,collisionWidth:n,collisionHeight:a,offset:[d[0]+u[0],d[1]+u[1]],my:c.my,at:c.at,within:v,elem:o})}),c.using&&(t=function(t){var e=f.left-h.left,i=e+p-r,s=f.top-h.top,n=s+m-l,a={target:{element:_,left:f.left,top:f.top,width:p,height:m},element:{element:o,left:h.left,top:h.top,width:r,height:l},horizontal:i<0?"left":0<e?"right":"center",vertical:n<0?"top":0<s?"bottom":"middle"};p<r&&w(e+i)<p&&(a.horizontal="center"),m<l&&w(s+n)<m&&(a.vertical="middle"),D(w(e),w(i))>D(w(s),w(n))?a.important="horizontal":a.important="vertical",c.using.call(this,t,a)}),o.offset(B.extend(h,{using:t}))})},B.ui.position={fit:{left:function(t,e){var i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,n=i.width,a=t.left-e.collisionPosition.marginLeft,o=s-a,r=a+e.collisionWidth-n-s;e.collisionWidth>n?0<o&&r<=0?(i=t.left+o+e.collisionWidth-n-s,t.left+=o-i):t.left=!(0<r&&o<=0)&&r<o?s+n-e.collisionWidth:s:0<o?t.left+=o:0<r?t.left-=r:t.left=D(t.left-a,t.left)},top:function(t,e){var i=e.within,s=i.isWindow?i.scrollTop:i.offset.top,n=e.within.height,a=t.top-e.collisionPosition.marginTop,o=s-a,r=a+e.collisionHeight-n-s;e.collisionHeight>n?0<o&&r<=0?(i=t.top+o+e.collisionHeight-n-s,t.top+=o-i):t.top=!(0<r&&o<=0)&&r<o?s+n-e.collisionHeight:s:0<o?t.top+=o:0<r?t.top-=r:t.top=D(t.top-a,t.top)}},flip:{left:function(t,e){var i=e.within,s=i.offset.left+i.scrollLeft,n=i.width,a=i.isWindow?i.scrollLeft:i.offset.left,o=t.left-e.collisionPosition.marginLeft,r=o-a,l=o+e.collisionWidth-n-a,h="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,i="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,o=-2*e.offset[0];r<0?((s=t.left+h+i+o+e.collisionWidth-n-s)<0||s<w(r))&&(t.left+=h+i+o):0<l&&(0<(a=t.left-e.collisionPosition.marginLeft+h+i+o-a)||w(a)<l)&&(t.left+=h+i+o)},top:function(t,e){var i=e.within,s=i.offset.top+i.scrollTop,n=i.height,a=i.isWindow?i.scrollTop:i.offset.top,o=t.top-e.collisionPosition.marginTop,r=o-a,l=o+e.collisionHeight-n-a,h="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,i="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,o=-2*e.offset[1];r<0?((s=t.top+h+i+o+e.collisionHeight-n-s)<0||s<w(r))&&(t.top+=h+i+o):0<l&&(0<(a=t.top-e.collisionPosition.marginTop+h+i+o-a)||w(a)<l)&&(t.top+=h+i+o)}},flipfit:{left:function(){B.ui.position.flip.left.apply(this,arguments),B.ui.position.fit.left.apply(this,arguments)},top:function(){B.ui.position.flip.top.apply(this,arguments),B.ui.position.fit.top.apply(this,arguments)}}};var t;B.ui.position,B.extend(B.expr.pseudos,{data:B.expr.createPseudo?B.expr.createPseudo(function(e){return function(t){return!!B.data(t,e)}}):function(t,e,i){return!!B.data(t,i[3])}}),B.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});B.ui.focusable=function(t,e){var i,s,n,a,o=t.nodeName.toLowerCase();return"area"===o?(s=(i=t.parentNode).name,!(!t.href||!s||"map"!==i.nodeName.toLowerCase())&&(0<(s=B("img[usemap='#"+s+"']")).length&&s.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(o)?(n=!t.disabled)&&(a=B(t).closest("fieldset")[0])&&(n=!a.disabled):n="a"===o&&t.href||e,n&&B(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(B(t)))},B.extend(B.expr.pseudos,{focusable:function(t){return B.ui.focusable(t,null!=B.attr(t,"tabindex"))}});var e,d;B.ui.focusable,B.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):B(this[0].form)},B.ui.formResetMixin={_formResetHandler:function(){var e=B(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");B.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(B.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}};B.expr.pseudos||(B.expr.pseudos=B.expr[":"]),B.uniqueSort||(B.uniqueSort=B.unique),B.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,d=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},B.escapeSelector=function(t){return(t+"").replace(e,d)}),B.fn.even&&B.fn.odd||B.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}});B.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},B.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+B.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},B.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=B(this);return(!i||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:B(this[0].ownerDocument||document)},B.extend(B.expr.pseudos,{tabbable:function(t){var e=B.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&B.ui.focusable(t,i)}}),B.fn.extend({uniqueId:(p=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++p)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&B(this).removeAttr("id")})}});var p,m=/ui-corner-([a-z]){2,6}/g;B.widget("ui.controlgroup",{version:"1.13.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var a=this,o=[];B.each(this.options.items,function(s,t){var e,n={};if(t)return"controlgroupLabel"===s?((e=a.element.find(t)).each(function(){var t=B(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),a._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),void(o=o.concat(e.get()))):void(B.fn[s]&&(n=a["_"+s+"Options"]?a["_"+s+"Options"]("middle"):{classes:{}},a.element.find(t).each(function(){var t=B(this),e=t[s]("instance"),i=B.widget.extend({},n);"button"===s&&t.parent(".ui-spinner").length||((e=e||t[s]()[s]("instance"))&&(i.classes=a._resolveClassesValues(i.classes,e)),t[s](i),i=t[s]("widget"),B.data(i[0],"ui-controlgroup-data",e||t[s]("instance")),o.push(i[0]))})))}),this.childWidgets=B(B.uniqueSort(o)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=B(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,s={classes:{}};return s.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],s},_spinnerOptions:function(t){t=this._buildSimpleOptions(t,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,s){var n={};return B.each(i,function(t){var e=s.options.classes[t]||"",e=String.prototype.trim.call(e.replace(m,""));n[t]=(e+" "+i[t]).replace(/\s+/g," ")}),n},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var n,a=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),n=this.childWidgets,(n=this.options.onlyVisible?n.filter(":visible"):n).length&&(B.each(["first","last"],function(t,e){var i,s=n[e]().data("ui-controlgroup-data");s&&a["_"+s.widgetName+"Options"]?((i=a["_"+s.widgetName+"Options"](1===n.length?"only":e)).classes=a._resolveClassesValues(i.classes,s),s.element[s.widgetName](i)):a._updateCornerClass(n[e](),e)}),this._callChildMethod("refresh"))}});B.widget("ui.checkboxradio",[B.ui.formResetMixin,{version:"1.13.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,e=this,i=this._super()||{};return this._readType(),t=this.element.labels(),this.label=B(t[t.length-1]),this.label.length||B.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){e.originalLabel+=3===this.nodeType?B(this).text():this.outerHTML}),this.originalLabel&&(i.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(i.disabled=t),i},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||B.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,e="input[name='"+B.escapeSelector(t)+"']";return t?(this.form.length?B(this.form[0].elements).filter(e):B(e).filter(function(){return 0===B(this)._form().length})).not(this.element):B([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each(function(){var t=B(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){if("label"!==t||e){if(this._super(t,e),"disabled"===t)return this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e);this.refresh()}},_updateIcon:function(t){var e="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=B("<span>"),this.iconSpace=B("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(e+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):e+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",e),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),(t=this.iconSpace?t.not(this.iconSpace[0]):t).remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]);var f;B.ui.checkboxradio;B.widget("ui.button",{version:"1.13.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===B.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,e){var i="iconPosition"!==t,s=i?this.options.iconPosition:e,t="top"===s||"bottom"===s;this.icon?i&&this._removeClass(this.icon,null,this.options.icon):(this.icon=B("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),i&&this._addClass(this.icon,null,e),this._attachIcon(s),t?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=B("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(s))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=(void 0===t.showLabel?this.options:t).showLabel,i=(void 0===t.icon?this.options:t).icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),(this.element[0].disabled=e)&&this.element.trigger("blur"))},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==B.uiBackCompat&&(B.widget("ui.button",B.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){"text"!==t?("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",e)}}),B.fn.button=(f=B.fn.button,function(i){var t="string"==typeof i,s=Array.prototype.slice.call(arguments,1),n=this;return t?this.length||"instance"!==i?this.each(function(){var t=B(this).attr("type"),e=B.data(this,"ui-"+("checkbox"!==t&&"radio"!==t?"button":"checkboxradio"));return"instance"===i?(n=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?B.error("no such method '"+i+"' for button widget instance"):(t=e[i].apply(e,s))!==e&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:B.error("cannot call methods on button prior to initialization; attempted to call method '"+i+"'")}):n=void 0:(s.length&&(i=B.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=B(this).attr("type"),e="checkbox"!==t&&"radio"!==t?"button":"checkboxradio",t=B.data(this,"ui-"+e);t?(t.option(i||{}),t._init&&t._init()):"button"!=e?B(this).checkboxradio(B.extend({icon:!1},i)):f.call(B(this),i)})),n}),B.fn.buttonset=function(){return B.ui.controlgroup||B.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});var g;B.ui.button;function _(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},B.extend(this._defaults,this.regional[""]),this.regional.en=B.extend(!0,{},this.regional[""]),this.regional["en-US"]=B.extend(!0,{},this.regional.en),this.dpDiv=v(B("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function v(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){B(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&B(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&B(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,b)}function b(){B.datepicker._isDisabledDatepicker((g.inline?g.dpDiv.parent():g.input)[0])||(B(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),B(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&B(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&B(this).addClass("ui-datepicker-next-hover"))}function y(t,e){for(var i in B.extend(t,e),e)null==e[i]&&(t[i]=e[i]);return t}B.extend(B.ui,{datepicker:{version:"1.13.1"}}),B.extend(_.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return y(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var i,s=t.nodeName.toLowerCase(),n="div"===s||"span"===s;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst(B(t),n)).settings=B.extend({},e||{}),"input"===s?this._connectDatepicker(t,i):n&&this._inlineDatepicker(t,i)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?v(B("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var i=B(t);e.append=B([]),e.trigger=B([]),i.hasClass(this.markerClassName)||(this._attachments(i,e),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),B.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i,s=this._get(e,"appendText"),n=this._get(e,"isRTL");e.append&&e.append.remove(),s&&(e.append=B("<span>").addClass(this._appendClass).text(s),t[n?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(i=this._get(e,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(s=this._get(e,"buttonText"),i=this._get(e,"buttonImage"),this._get(e,"buttonImageOnly")?e.trigger=B("<img>").addClass(this._triggerClass).attr({src:i,alt:s,title:s}):(e.trigger=B("<button type='button'>").addClass(this._triggerClass),i?e.trigger.html(B("<img>").attr({src:i,alt:s,title:s})):e.trigger.text(s)),t[n?"before":"after"](e.trigger),e.trigger.on("click",function(){return B.datepicker._datepickerShowing&&B.datepicker._lastInput===t[0]?B.datepicker._hideDatepicker():(B.datepicker._datepickerShowing&&B.datepicker._lastInput!==t[0]&&B.datepicker._hideDatepicker(),B.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,i,s,n,a,o;this._get(t,"autoSize")&&!t.inline&&(a=new Date(2009,11,20),(o=this._get(t,"dateFormat")).match(/[DM]/)&&(e=function(t){for(n=s=i=0;n<t.length;n++)t[n].length>i&&(i=t[n].length,s=n);return s},a.setMonth(e(this._get(t,o.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(e(this._get(t,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),t.input.attr("size",this._formatDate(t,a).length))},_inlineDatepicker:function(t,e){var i=B(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv),B.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,i,s,n){var a,o=this._dialogInst;return o||(this.uuid+=1,a="dp"+this.uuid,this._dialogInput=B("<input type='text' id='"+a+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),B("body").append(this._dialogInput),(o=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},B.data(this._dialogInput[0],"datepicker",o)),y(o.settings,s||{}),e=e&&e.constructor===Date?this._formatDate(o,e):e,this._dialogInput.val(e),this._pos=n?n.length?n:[n.pageX,n.pageY]:null,this._pos||(a=document.documentElement.clientWidth,s=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,n=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[a/2-100+e,s/2-150+n]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),o.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),B.blockUI&&B.blockUI(this.dpDiv),B.data(this._dialogInput[0],"datepicker",o),this},_destroyDatepicker:function(t){var e,i=B(t),s=B.data(t,"datepicker");i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),B.removeData(t,"datepicker"),"input"===e?(s.append.remove(),s.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||i.removeClass(this.markerClassName).empty(),g===s&&(g=null,this._curInst=null))},_enableDatepicker:function(e){var t,i=B(e),s=B.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=B.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,i=B(e),s=B.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=B.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return B.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var s,n,a=this._getInst(t);if(2===arguments.length&&"string"==typeof e)return"defaults"===e?B.extend({},B.datepicker._defaults):a?"all"===e?B.extend({},a.settings):this._get(a,e):null;s=e||{},"string"==typeof e&&((s={})[e]=i),a&&(this._curInst===a&&this._hideDatepicker(),n=this._getDateDatepicker(t,!0),e=this._getMinMaxDate(a,"min"),i=this._getMinMaxDate(a,"max"),y(a.settings,s),null!==e&&void 0!==s.dateFormat&&void 0===s.minDate&&(a.settings.minDate=this._formatDate(a,e)),null!==i&&void 0!==s.dateFormat&&void 0===s.maxDate&&(a.settings.maxDate=this._formatDate(a,i)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(B(t),a),this._autoSize(a),this._setDate(a,n),this._updateAlternate(a),this._updateDatepicker(a))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){t=this._getInst(t);t&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){t=this._getInst(t);t&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))},_getDateDatepicker:function(t,e){t=this._getInst(t);return t&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(t){var e,i,s=B.datepicker._getInst(t.target),n=!0,a=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,B.datepicker._datepickerShowing)switch(t.keyCode){case 9:B.datepicker._hideDatepicker(),n=!1;break;case 13:return(i=B("td."+B.datepicker._dayOverClass+":not(."+B.datepicker._currentClass+")",s.dpDiv))[0]&&B.datepicker._selectDay(t.target,s.selectedMonth,s.selectedYear,i[0]),(e=B.datepicker._get(s,"onSelect"))?(i=B.datepicker._formatDate(s),e.apply(s.input?s.input[0]:null,[i,s])):B.datepicker._hideDatepicker(),!1;case 27:B.datepicker._hideDatepicker();break;case 33:B.datepicker._adjustDate(t.target,t.ctrlKey?-B.datepicker._get(s,"stepBigMonths"):-B.datepicker._get(s,"stepMonths"),"M");break;case 34:B.datepicker._adjustDate(t.target,t.ctrlKey?+B.datepicker._get(s,"stepBigMonths"):+B.datepicker._get(s,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&B.datepicker._clearDate(t.target),n=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&B.datepicker._gotoToday(t.target),n=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&B.datepicker._adjustDate(t.target,a?1:-1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&B.datepicker._adjustDate(t.target,t.ctrlKey?-B.datepicker._get(s,"stepBigMonths"):-B.datepicker._get(s,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&B.datepicker._adjustDate(t.target,-7,"D"),n=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&B.datepicker._adjustDate(t.target,a?-1:1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&B.datepicker._adjustDate(t.target,t.ctrlKey?+B.datepicker._get(s,"stepBigMonths"):+B.datepicker._get(s,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&B.datepicker._adjustDate(t.target,7,"D"),n=t.ctrlKey||t.metaKey;break;default:n=!1}else 36===t.keyCode&&t.ctrlKey?B.datepicker._showDatepicker(this):n=!1;n&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i=B.datepicker._getInst(t.target);if(B.datepicker._get(i,"constrainInput"))return e=B.datepicker._possibleChars(B.datepicker._get(i,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!e||-1<e.indexOf(i)},_doKeyUp:function(t){t=B.datepicker._getInst(t.target);if(t.input.val()!==t.lastVal)try{B.datepicker.parseDate(B.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,B.datepicker._getFormatConfig(t))&&(B.datepicker._setDateFromField(t),B.datepicker._updateAlternate(t),B.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var e,i,s,n;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=B("input",t.parentNode)[0]),B.datepicker._isDisabledDatepicker(t)||B.datepicker._lastInput===t||(n=B.datepicker._getInst(t),B.datepicker._curInst&&B.datepicker._curInst!==n&&(B.datepicker._curInst.dpDiv.stop(!0,!0),n&&B.datepicker._datepickerShowing&&B.datepicker._hideDatepicker(B.datepicker._curInst.input[0])),!1!==(i=(s=B.datepicker._get(n,"beforeShow"))?s.apply(t,[t,n]):{})&&(y(n.settings,i),n.lastVal=null,B.datepicker._lastInput=t,B.datepicker._setDateFromField(n),B.datepicker._inDialog&&(t.value=""),B.datepicker._pos||(B.datepicker._pos=B.datepicker._findPos(t),B.datepicker._pos[1]+=t.offsetHeight),e=!1,B(t).parents().each(function(){return!(e|="fixed"===B(this).css("position"))}),s={left:B.datepicker._pos[0],top:B.datepicker._pos[1]},B.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),B.datepicker._updateDatepicker(n),s=B.datepicker._checkOffset(n,s,e),n.dpDiv.css({position:B.datepicker._inDialog&&B.blockUI?"static":e?"fixed":"absolute",display:"none",left:s.left+"px",top:s.top+"px"}),n.inline||(i=B.datepicker._get(n,"showAnim"),s=B.datepicker._get(n,"duration"),n.dpDiv.css("z-index",function(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}(B(t))+1),B.datepicker._datepickerShowing=!0,B.effects&&B.effects.effect[i]?n.dpDiv.show(i,B.datepicker._get(n,"showOptions"),s):n.dpDiv[i||"show"](i?s:null),B.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),B.datepicker._curInst=n)))},_updateDatepicker:function(t){this.maxRows=4,(g=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,i=this._getNumberOfMonths(t),s=i[1],n=t.dpDiv.find("."+this._dayOverClass+" a"),a=B.datepicker._get(t,"onUpdateDatepicker");0<n.length&&b.apply(n.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<s&&t.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",17*s+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===B.datepicker._curInst&&B.datepicker._datepickerShowing&&B.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),e=t.yearshtml=null},0)),a&&a.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,i){var s=t.dpDiv.outerWidth(),n=t.dpDiv.outerHeight(),a=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,r=document.documentElement.clientWidth+(i?0:B(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:B(document).scrollTop());return e.left-=this._get(t,"isRTL")?s-a:0,e.left-=i&&e.left===t.input.offset().left?B(document).scrollLeft():0,e.top-=i&&e.top===t.input.offset().top+o?B(document).scrollTop():0,e.left-=Math.min(e.left,e.left+s>r&&s<r?Math.abs(e.left+s-r):0),e.top-=Math.min(e.top,e.top+n>l&&n<l?Math.abs(n+o):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||B.expr.pseudos.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return[(e=B(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,i,s=this._curInst;!s||t&&s!==B.data(t,"datepicker")||this._datepickerShowing&&(e=this._get(s,"showAnim"),i=this._get(s,"duration"),t=function(){B.datepicker._tidyDialog(s)},B.effects&&(B.effects.effect[e]||B.effects[e])?s.dpDiv.hide(e,B.datepicker._get(s,"showOptions"),i,t):s.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?i:null,t),e||t(),this._datepickerShowing=!1,(t=this._get(s,"onClose"))&&t.apply(s.input?s.input[0]:null,[s.input?s.input.val():"",s]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),B.blockUI&&(B.unblockUI(),B("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;B.datepicker._curInst&&(e=B(t.target),t=B.datepicker._getInst(e[0]),(e[0].id===B.datepicker._mainDivId||0!==e.parents("#"+B.datepicker._mainDivId).length||e.hasClass(B.datepicker.markerClassName)||e.closest("."+B.datepicker._triggerClass).length||!B.datepicker._datepickerShowing||B.datepicker._inDialog&&B.blockUI)&&(!e.hasClass(B.datepicker.markerClassName)||B.datepicker._curInst===t)||B.datepicker._hideDatepicker())},_adjustDate:function(t,e,i){var s=B(t),t=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(t,e,i),this._updateDatepicker(t))},_gotoToday:function(t){var e=B(t),i=this._getInst(e[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(t=new Date,i.selectedDay=t.getDate(),i.drawMonth=i.selectedMonth=t.getMonth(),i.drawYear=i.selectedYear=t.getFullYear()),this._notifyChange(i),this._adjustDate(e)},_selectMonthYear:function(t,e,i){var s=B(t),t=this._getInst(s[0]);t["selected"+("M"===i?"Month":"Year")]=t["draw"+("M"===i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(t),this._adjustDate(s)},_selectDay:function(t,e,i,s){var n=B(t);B(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(n[0])||((n=this._getInst(n[0])).selectedDay=n.currentDay=parseInt(B("a",s).attr("data-date")),n.selectedMonth=n.currentMonth=e,n.selectedYear=n.currentYear=i,this._selectDate(t,this._formatDate(n,n.currentDay,n.currentMonth,n.currentYear)))},_clearDate:function(t){t=B(t);this._selectDate(t,"")},_selectDate:function(t,e){var i=B(t),t=this._getInst(i[0]);e=null!=e?e:this._formatDate(t),t.input&&t.input.val(e),this._updateAlternate(t),(i=this._get(t,"onSelect"))?i.apply(t.input?t.input[0]:null,[e,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,i,s=this._get(t,"altField");s&&(e=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),t=this.formatDate(e,i,this._getFormatConfig(t)),B(document).find(s).val(t))},noWeekends:function(t){t=t.getDay();return[0<t&&t<6,""]},iso8601Week:function(t){var e=new Date(t.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(e,n,t){if(null==e||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?n.toString():n+""))return null;for(var i,s,a,o=0,r=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff,r="string"!=typeof r?r:(new Date).getFullYear()%100+parseInt(r,10),l=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,h=(t?t.dayNames:null)||this._defaults.dayNames,u=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,c=(t?t.monthNames:null)||this._defaults.monthNames,d=-1,p=-1,m=-1,f=-1,g=!1,_=function(t){t=k+1<e.length&&e.charAt(k+1)===t;return t&&k++,t},v=function(t){var e=_(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,e=new RegExp("^\\d{"+("y"===t?e:1)+","+e+"}"),e=n.substring(o).match(e);if(!e)throw"Missing number at position "+o;return o+=e[0].length,parseInt(e[0],10)},b=function(t,e,i){var s=-1,e=B.map(_(t)?i:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(B.each(e,function(t,e){var i=e[1];if(n.substr(o,i.length).toLowerCase()===i.toLowerCase())return s=e[0],o+=i.length,!1}),-1!==s)return s+1;throw"Unknown name at position "+o},y=function(){if(n.charAt(o)!==e.charAt(k))throw"Unexpected literal at position "+o;o++},k=0;k<e.length;k++)if(g)"'"!==e.charAt(k)||_("'")?y():g=!1;else switch(e.charAt(k)){case"d":m=v("d");break;case"D":b("D",l,h);break;case"o":f=v("o");break;case"m":p=v("m");break;case"M":p=b("M",u,c);break;case"y":d=v("y");break;case"@":d=(a=new Date(v("@"))).getFullYear(),p=a.getMonth()+1,m=a.getDate();break;case"!":d=(a=new Date((v("!")-this._ticksTo1970)/1e4)).getFullYear(),p=a.getMonth()+1,m=a.getDate();break;case"'":_("'")?y():g=!0;break;default:y()}if(o<n.length&&(s=n.substr(o),!/^\s+/.test(s)))throw"Extra/unparsed characters found in date: "+s;if(-1===d?d=(new Date).getFullYear():d<100&&(d+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d<=r?0:-100)),-1<f)for(p=1,m=f;;){if(m<=(i=this._getDaysInMonth(d,p-1)))break;p++,m-=i}if((a=this._daylightSavingAdjust(new Date(d,p-1,m))).getFullYear()!==d||a.getMonth()+1!==p||a.getDate()!==m)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";function s(t,e,i){var s=""+e;if(u(t))for(;s.length<i;)s="0"+s;return s}function n(t,e,i,s){return(u(t)?s:i)[e]}var a,o=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,r=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,h=(i?i.monthNames:null)||this._defaults.monthNames,u=function(t){t=a+1<e.length&&e.charAt(a+1)===t;return t&&a++,t},c="",d=!1;if(t)for(a=0;a<e.length;a++)if(d)"'"!==e.charAt(a)||u("'")?c+=e.charAt(a):d=!1;else switch(e.charAt(a)){case"d":c+=s("d",t.getDate(),2);break;case"D":c+=n("D",t.getDay(),o,r);break;case"o":c+=s("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":c+=s("m",t.getMonth()+1,2);break;case"M":c+=n("M",t.getMonth(),l,h);break;case"y":c+=u("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":c+=t.getTime();break;case"!":c+=1e4*t.getTime()+this._ticksTo1970;break;case"'":u("'")?c+="'":d=!0;break;default:c+=e.charAt(a)}return c},_possibleChars:function(e){for(var t="",i=!1,s=function(t){t=n+1<e.length&&e.charAt(n+1)===t;return t&&n++,t},n=0;n<e.length;n++)if(i)"'"!==e.charAt(n)||s("'")?t+=e.charAt(n):i=!1;else switch(e.charAt(n)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":s("'")?t+="'":i=!0;break;default:t+=e.charAt(n)}return t},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),a=n,o=this._getFormatConfig(t);try{a=this.parseDate(i,s,o)||n}catch(t){s=e?"":s}t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),t.currentDay=s?a.getDate():0,t.currentMonth=s?a.getMonth():0,t.currentYear=s?a.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(r,t,e){var i,s,t=null==t||""===t?e:"string"==typeof t?function(t){try{return B.datepicker.parseDate(B.datepicker._get(r,"dateFormat"),t,B.datepicker._getFormatConfig(r))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?B.datepicker._getDate(r):null)||new Date,i=e.getFullYear(),s=e.getMonth(),n=e.getDate(),a=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,o=a.exec(t);o;){switch(o[2]||"d"){case"d":case"D":n+=parseInt(o[1],10);break;case"w":case"W":n+=7*parseInt(o[1],10);break;case"m":case"M":s+=parseInt(o[1],10),n=Math.min(n,B.datepicker._getDaysInMonth(i,s));break;case"y":case"Y":i+=parseInt(o[1],10),n=Math.min(n,B.datepicker._getDaysInMonth(i,s))}o=a.exec(t)}return new Date(i,s,n)}(t):"number"==typeof t?isNaN(t)?e:(i=t,(s=new Date).setDate(s.getDate()+i),s):new Date(t.getTime());return(t=t&&"Invalid Date"===t.toString()?e:t)&&(t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0)),this._daylightSavingAdjust(t)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,a=t.selectedYear,e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),n===t.selectedMonth&&a===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){B.datepicker._adjustDate(i,-e,"M")},next:function(){B.datepicker._adjustDate(i,+e,"M")},hide:function(){B.datepicker._hideDatepicker()},today:function(){B.datepicker._gotoToday(i)},selectDay:function(){return B.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return B.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return B.datepicker._selectMonthYear(i,this,"Y"),!1}};B(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,n,a,o,r,l,h,u,c,d,p,m,f,g,_,v,b,y,k,D,w,C,x,M,I,S,T,O,A,N,F=new Date,E=this._daylightSavingAdjust(new Date(F.getFullYear(),F.getMonth(),F.getDate())),W=this._get(t,"isRTL"),L=this._get(t,"showButtonPanel"),Y=this._get(t,"hideIfNoPrevNext"),P=this._get(t,"navigationAsDateFormat"),H=this._getNumberOfMonths(t),j=this._get(t,"showCurrentAtPos"),F=this._get(t,"stepMonths"),R=1!==H[0]||1!==H[1],K=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),V=this._getMinMaxDate(t,"min"),U=this._getMinMaxDate(t,"max"),z=t.drawMonth-j,q=t.drawYear;if(z<0&&(z+=12,q--),U)for(e=this._daylightSavingAdjust(new Date(U.getFullYear(),U.getMonth()-H[0]*H[1]+1,U.getDate())),e=V&&e<V?V:e;this._daylightSavingAdjust(new Date(q,z,1))>e;)--z<0&&(z=11,q--);for(t.drawMonth=z,t.drawYear=q,j=this._get(t,"prevText"),j=P?this.formatDate(j,this._daylightSavingAdjust(new Date(q,z-F,1)),this._getFormatConfig(t)):j,i=this._canAdjustMonth(t,-1,q,z)?B("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:j}).append(B("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(j))[0].outerHTML:Y?"":B("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:j}).append(B("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(j))[0].outerHTML,j=this._get(t,"nextText"),j=P?this.formatDate(j,this._daylightSavingAdjust(new Date(q,z+F,1)),this._getFormatConfig(t)):j,s=this._canAdjustMonth(t,1,q,z)?B("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:j}).append(B("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(j))[0].outerHTML:Y?"":B("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:j}).append(B("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(j))[0].outerHTML,F=this._get(t,"currentText"),Y=this._get(t,"gotoCurrent")&&t.currentDay?K:E,F=P?this.formatDate(F,Y,this._getFormatConfig(t)):F,j="",t.inline||(j=B("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),P="",L&&(P=B("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(W?j:"").append(this._isInRange(t,Y)?B("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(F):"").append(W?"":j)[0].outerHTML),n=parseInt(this._get(t,"firstDay"),10),n=isNaN(n)?0:n,a=this._get(t,"showWeek"),o=this._get(t,"dayNames"),r=this._get(t,"dayNamesMin"),l=this._get(t,"monthNames"),h=this._get(t,"monthNamesShort"),u=this._get(t,"beforeShowDay"),c=this._get(t,"showOtherMonths"),d=this._get(t,"selectOtherMonths"),p=this._getDefaultDate(t),m="",g=0;g<H[0];g++){for(_="",this.maxRows=4,v=0;v<H[1];v++){if(b=this._daylightSavingAdjust(new Date(q,z,t.selectedDay)),y=" ui-corner-all",k="",R){if(k+="<div class='ui-datepicker-group",1<H[1])switch(v){case 0:k+=" ui-datepicker-group-first",y=" ui-corner-"+(W?"right":"left");break;case H[1]-1:k+=" ui-datepicker-group-last",y=" ui-corner-"+(W?"left":"right");break;default:k+=" ui-datepicker-group-middle",y=""}k+="'>"}for(k+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+y+"'>"+(/all|left/.test(y)&&0===g?W?s:i:"")+(/all|right/.test(y)&&0===g?W?i:s:"")+this._generateMonthYearHeader(t,z,q,V,U,0<g||0<v,l,h)+"</div><table class='ui-datepicker-calendar'><thead><tr>",D=a?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",f=0;f<7;f++)D+="<th scope='col'"+(5<=(f+n+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+o[w=(f+n)%7]+"'>"+r[w]+"</span></th>";for(k+=D+"</tr></thead><tbody>",x=this._getDaysInMonth(q,z),q===t.selectedYear&&z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,x)),C=(this._getFirstDayOfMonth(q,z)-n+7)%7,x=Math.ceil((C+x)/7),M=R&&this.maxRows>x?this.maxRows:x,this.maxRows=M,I=this._daylightSavingAdjust(new Date(q,z,1-C)),S=0;S<M;S++){for(k+="<tr>",T=a?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(I)+"</td>":"",f=0;f<7;f++)O=u?u.apply(t.input?t.input[0]:null,[I]):[!0,""],N=(A=I.getMonth()!==z)&&!d||!O[0]||V&&I<V||U&&U<I,T+="<td class='"+(5<=(f+n+6)%7?" ui-datepicker-week-end":"")+(A?" ui-datepicker-other-month":"")+(I.getTime()===b.getTime()&&z===t.selectedMonth&&t._keyEvent||p.getTime()===I.getTime()&&p.getTime()===b.getTime()?" "+this._dayOverClass:"")+(N?" "+this._unselectableClass+" ui-state-disabled":"")+(A&&!c?"":" "+O[1]+(I.getTime()===K.getTime()?" "+this._currentClass:"")+(I.getTime()===E.getTime()?" ui-datepicker-today":""))+"'"+(A&&!c||!O[2]?"":" title='"+O[2].replace(/'/g,"&#39;")+"'")+(N?"":" data-handler='selectDay' data-event='click' data-month='"+I.getMonth()+"' data-year='"+I.getFullYear()+"'")+">"+(A&&!c?"&#xa0;":N?"<span class='ui-state-default'>"+I.getDate()+"</span>":"<a class='ui-state-default"+(I.getTime()===E.getTime()?" ui-state-highlight":"")+(I.getTime()===K.getTime()?" ui-state-active":"")+(A?" ui-priority-secondary":"")+"' href='#' aria-current='"+(I.getTime()===K.getTime()?"true":"false")+"' data-date='"+I.getDate()+"'>"+I.getDate()+"</a>")+"</td>",I.setDate(I.getDate()+1),I=this._daylightSavingAdjust(I);k+=T+"</tr>"}11<++z&&(z=0,q++),_+=k+="</tbody></table>"+(R?"</div>"+(0<H[0]&&v===H[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}m+=_}return m+=P,t._keyEvent=!1,m},_generateMonthYearHeader:function(t,e,i,s,n,a,o,r){var l,h,u,c,d,p,m=this._get(t,"changeMonth"),f=this._get(t,"changeYear"),g=this._get(t,"showMonthAfterYear"),_=this._get(t,"selectMonthLabel"),v=this._get(t,"selectYearLabel"),b="<div class='ui-datepicker-title'>",y="";if(a||!m)y+="<span class='ui-datepicker-month'>"+o[e]+"</span>";else{for(l=s&&s.getFullYear()===i,h=n&&n.getFullYear()===i,y+="<select class='ui-datepicker-month' aria-label='"+_+"' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=s.getMonth())&&(!h||u<=n.getMonth())&&(y+="<option value='"+u+"'"+(u===e?" selected='selected'":"")+">"+r[u]+"</option>");y+="</select>"}if(g||(b+=y+(!a&&m&&f?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",a||!f)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(o=this._get(t,"yearRange").split(":"),c=(new Date).getFullYear(),d=(_=function(t){t=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?c+parseInt(t,10):parseInt(t,10);return isNaN(t)?c:t})(o[0]),p=Math.max(d,_(o[1]||"")),d=s?Math.max(d,s.getFullYear()):d,p=n?Math.min(p,n.getFullYear()):p,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+v+"' data-handler='selectYear' data-event='change'>";d<=p;d++)t.yearshtml+="<option value='"+d+"'"+(d===i?" selected='selected'":"")+">"+d+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),g&&(b+=(!a&&m&&f?"":"&#xa0;")+y),b+="</div>"},_adjustInstDate:function(t,e,i){var s=t.selectedYear+("Y"===i?e:0),n=t.selectedMonth+("M"===i?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"===i?e:0),e=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,e)));t.selectedDay=e.getDate(),t.drawMonth=t.selectedMonth=e.getMonth(),t.drawYear=t.selectedYear=e.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),t=this._getMinMaxDate(t,"max"),e=i&&e<i?i:e;return t&&t<e?t:e},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){t=this._get(t,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,s){var n=this._getNumberOfMonths(t),n=this._daylightSavingAdjust(new Date(i,s+(e<0?e:n[0]*n[1]),1));return e<0&&n.setDate(this._getDaysInMonth(n.getFullYear(),n.getMonth())),this._isInRange(t,n)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),n=null,a=null,o=this._get(t,"yearRange");return o&&(t=o.split(":"),o=(new Date).getFullYear(),n=parseInt(t[0],10),a=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(n+=o),t[1].match(/[+\-].*/)&&(a+=o)),(!i||e.getTime()>=i.getTime())&&(!s||e.getTime()<=s.getTime())&&(!n||e.getFullYear()>=n)&&(!a||e.getFullYear()<=a)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);e=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),e,this._getFormatConfig(t))}}),B.fn.datepicker=function(t){if(!this.length)return this;B.datepicker.initialized||(B(document).on("mousedown",B.datepicker._checkExternalClick),B.datepicker.initialized=!0),0===B("#"+B.datepicker._mainDivId).length&&B("body").append(B.datepicker.dpDiv);var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?B.datepicker["_"+t+"Datepicker"].apply(B.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?B.datepicker["_"+t+"Datepicker"].apply(B.datepicker,[this].concat(e)):B.datepicker._attachDatepicker(this,t)})},B.datepicker=new _,B.datepicker.initialized=!1,B.datepicker.uuid=(new Date).getTime(),B.datepicker.version="1.13.1";B.datepicker,B.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=!(i=i||e.body).nodeName?e.body:i},B.widget("ui.menu",{version:"1.13.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(t){var e=B(t.target),i=B(B.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand (t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(t){this._delay(function(){B.contains(this.element[0],B.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(t){var e,i;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},e=B(t.target).closest(".ui-menu-item"),i=B(t.currentTarget),e[0]===i[0]&&(i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))))},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=B(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,s,n=!0;switch(t.keyCode){case B.ui.keyCode.PAGE_UP:this.previousPage(t);break;case B.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case B.ui.keyCode.HOME:this._move("first","first",t);break;case B.ui.keyCode.END:this._move("last","last",t);break;case B.ui.keyCode.UP:this.previous(t);break;case B.ui.keyCode.DOWN:this.next(t);break;case B.ui.keyCode.LEFT:this.collapse(t);break;case B.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand (t);break;case B.ui.keyCode.ENTER:case B.ui.keyCode.SPACE:this._activate(t);break;case B.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",s=n=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?s=!0:i=e+i,e=this._filterMenuItems(i),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand (t):this.select(t))},refresh:function(){var t,e,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=B(this),e=t.prev(),i=B("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=B(this);s._isDivider(t)&&s._addClass(t,"ui-menu-divider","ui-widget-content")}),i=(e=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(e,"ui-menu-item")._addClass(i,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!B.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s;this._hasScroll()&&(i=parseFloat(B.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(B.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-i-s,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):s<e+t&&this.activeMenu.scrollTop(i+e-s+t))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(t){var e=B.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var t=i?this.element:B(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this._removeClass(t.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=t},i?0:this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!B(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this._menuItems(this.active.children(".ui-menu")).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(t){return(t||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(t,e,i){var s;(s=this.active?"first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").last():this.active[t+"All"](".ui-menu-item").first():s)&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[e]()),this.focus(i,s)},nextPage:function(t){var e,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===B.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(e=B(this)).offset().top-i-s<0}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var e,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===B.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(e=B(this)).offset().top-i+s}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||B(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var t=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),e=new RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return e.test(String.prototype.trim.call(B(this).children(".ui-menu-item-wrapper").text()))})}}),B.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var k=!1;B(document).on("mouseup",function(){k=!1});B.widget("ui.mouse",{version:"1.13.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){if(!0===B.data(t.target,e.widgetName+".preventClickEvent"))return B.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!k){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var e=this,i=1===t.which,s=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&B(t.target).closest(this.options.cancel).length;return i&&!s&&this._mouseCapture(t)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===B.data(t.target,this.widgetName+".preventClickEvent")&&B.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),k=!0)):!0}},_mouseMove:function(t){if(this._mouseMoved){if(B.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&B.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,k=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),B.widget("ui.selectmenu",[B.ui.formResetMixin,{version:"1.13.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=B()},_drawButton:function(){var t,e=this,i=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.trigger("focus"),t.preventDefault()}}),this.element.hide(),this.button=B("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=B("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e._rendered||e._refreshMenu()})},_drawMenu:function(){var i=this;this.menu=B("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=B("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,e){t.preventDefault(),i._setSelection(),i._select(e.item.data("ui-selectmenu-item"),t)},focus:function(t,e){e=e.item.data("ui-selectmenu-item");null!=i.focusIndex&&e.index!==i.focusIndex&&(i._trigger("focus",t,{item:e}),i.isOpen||i._select(e,t)),i.focusIndex=e.index,i.button.attr("aria-activedescendant",i.menuItems.eq(e.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(B.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var e=B("<span>");return this._setText(e,t.label),this._addClass(e,"ui-selectmenu-text"),e},_renderMenu:function(s,t){var n=this,a="";B.each(t,function(t,e){var i;e.optgroup!==a&&(i=B("<li>",{text:e.optgroup}),n._addClass(i,"ui-selectmenu-optgroup","ui-menu-divider"+(e.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),i.appendTo(s),a=e.optgroup),n._renderItemData(s,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(t,e){var i=B("<li>"),s=B("<div>",{title:e.element.attr("title")});return e.disabled&&this._addClass(i,null,"ui-state-disabled"),this._setText(s,e.label),i.append(s).appendTo(t)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var i,s=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.ui-state-disabled)"),(s="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](s).eq(-1):i[t+"All"](s).eq(0)).length&&this.menuInstance.focus(e,s)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){this.isOpen&&(B(t.target).closest(".ui-selectmenu-menu, #"+B.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(t){var e=!0;switch(t.keyCode){case B.ui.keyCode.TAB:case B.ui.keyCode.ESCAPE:this.close(t),e=!1;break;case B.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case B.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case B.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case B.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case B.ui.keyCode.LEFT:this._move("prev",t);break;case B.ui.keyCode.RIGHT:this._move("next",t);break;case B.ui.keyCode.HOME:case B.ui.keyCode.PAGE_UP:this._move("first",t);break;case B.ui.keyCode.END:case B.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),e=!1}e&&t.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){t=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(t,e){var i;"icons"===t&&(i=this.button.find("span.ui-icon"),this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t=!(t=!(t=t&&(t.jquery||t.nodeType?B(t):this.document.find(t).eq(0)))||!t[0]?this.element.closest(".ui-front, dialog"):t).length?this.document[0].body:t},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;!1!==t?(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t)):this.button.css("width","")},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(t){var i=this,s=[];t.each(function(t,e){e.hidden||s.push(i._parseOption(B(e),t))}),this.items=s},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),B.widget("ui.slider",B.ui.mouse,{version:"1.13.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,e=this.options,i=this.element.find(".ui-slider-handle"),s=[],n=e.values&&e.values.length||1;for(i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),t=i.length;t<n;t++)s.push("<span tabindex='0'></span>");this.handles=i.add(B(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){B(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=B("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var i,s,n,a,e,o,r=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),o={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(o),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(i-r.values(t));(e<s||s===e&&(t===r._lastChangedValue||r.values(t)===l.min))&&(s=e,n=B(this),a=t)}),!1!==this._start(t,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(n,null,"ui-state-active"),n.trigger("focus"),e=n.offset(),o=!B(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=o?{left:0,top:0}:{left:t.pageX-e.left-n.width()/2,top:t.pageY-e.top-n.height()/2-(parseInt(n.css("borderTopWidth"),10)||0)-(parseInt(n.css("borderBottomWidth"),10)||0)+(parseInt(n.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,a,i),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},e=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,e),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,t="horizontal"===this.orientation?(e=this.elementSize.width,t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=t/e;return(t=1<t?1:t)<0&&(t=0),"vertical"===this.orientation&&(t=1-t),e=this._valueMax()-this._valueMin(),e=this._valueMin()+t*e,this._trimAlignValue(e)},_uiHash:function(t,e,i){var s={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==e?e:this.values(t),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var s,n=this.value(),a=this.values();this._hasMultipleValues()&&(s=this.values(e?0:1),n=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(s,i):Math.max(s,i)),a[e]=i),i!==n&&!1!==this._trigger("slide",t,this._uiHash(e,i,a))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,e){var i,s,n;if(1<arguments.length)return this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!Array.isArray(t))return this._hasMultipleValues()?this._values(t):this.value();for(i=this.options.values,s=t,n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(s[n]),this._change(null,n);this._refreshValue()},_setOption:function(t,e){var i,s=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(s=this.options.values.length),this._super(t,e),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(e),this.handles.css("horizontal"===e?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=s-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i;if(arguments.length)return t=this.options.values[t],t=this._trimAlignValue(t);if(this._hasMultipleValues()){for(e=this.options.values.slice(),i=0;i<e.length;i+=1)e[i]=this._trimAlignValue(e[i]);return e}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=0<this.options.step?this.options.step:1,i=(t-this._valueMin())%e,t=t-i;return 2*Math.abs(i)>=e&&(t+=0<i?e:-e),parseFloat(t.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=t.toString(),t=e.indexOf(".");return-1===t?0:e.length-t-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,t,s,n,a=this.options.range,o=this.options,r=this,l=!this._animateOff&&o.animate,h={};this._hasMultipleValues()?this.handles.each(function(t){i=(r.values(t)-r._valueMin())/(r._valueMax()-r._valueMin())*100,h["horizontal"===r.orientation?"left":"bottom"]=i+"%",B(this).stop(1,1)[l?"animate":"css"](h,o.animate),!0===r.options.range&&("horizontal"===r.orientation?(0===t&&r.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},o.animate),1===t&&r.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:o.animate})):(0===t&&r.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},o.animate),1===t&&r.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:o.animate}))),e=i}):(t=this.value(),s=this._valueMin(),n=this._valueMax(),i=n!==s?(t-s)/(n-s)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](h,o.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},o.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-i+"%"},o.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},o.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-i+"%"},o.animate))},_handleEvents:{keydown:function(t){var e,i,s,n=B(t.target).data("ui-slider-handle-index");switch(t.keyCode){case B.ui.keyCode.HOME:case B.ui.keyCode.END:case B.ui.keyCode.PAGE_UP:case B.ui.keyCode.PAGE_DOWN:case B.ui.keyCode.UP:case B.ui.keyCode.RIGHT:case B.ui.keyCode.DOWN:case B.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(B(t.target),null,"ui-state-active"),!1===this._start(t,n)))return}switch(s=this.options.step,e=i=this._hasMultipleValues()?this.values(n):this.value(),t.keyCode){case B.ui.keyCode.HOME:i=this._valueMin();break;case B.ui.keyCode.END:i=this._valueMax();break;case B.ui.keyCode.PAGE_UP:i=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/this.numPages);break;case B.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/this.numPages);break;case B.ui.keyCode.UP:case B.ui.keyCode.RIGHT:if(e===this._valueMax())return;i=this._trimAlignValue(e+s);break;case B.ui.keyCode.DOWN:case B.ui.keyCode.LEFT:if(e===this._valueMin())return;i=this._trimAlignValue(e-s)}this._slide(t,n,i)},keyup:function(t){var e=B(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,e),this._change(t,e),this._removeClass(B(t.target),null,"ui-state-active"))}}});function S(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}B.widget("ui.spinner",{version:"1.13.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var s=this._super(),n=this.element;return B.each(["min","max","step"],function(t,e){var i=n.attr(e);null!=i&&i.length&&(s[e]=i)}),s},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(t,e){var i=B.ui.safeActiveElement(this.document[0]);if(this.element[0]===i&&e){if(!this.spinning&&!this._start(t))return!1;this._spin((0<e?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){var e;function i(){this.element[0]===B.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=e,this._delay(function(){this.previous=e}))}e=this.element[0]===B.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),!1!==this._start(t)&&this._repeat(null,B(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(B(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,B(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var e=this.options,i=B.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,e.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-e.page,t),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?"function"==typeof e?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=t.toString(),t=e.indexOf(".");return-1===t?0:e.length-t-1},_adjustValue:function(t){var e=this.options,i=null!==e.min?e.min:0,s=t-i;return t=i+Math.round(s/e.step)*e.step,t=parseFloat(t.toFixed(this._precision())),null!==e.max&&t>e.max?e.max:null!==e.min&&t<e.min?e.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i;if("culture"===t||"numberFormat"===t)return i=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(i));"max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,e.up),i=this.buttons.last().find(".ui-icon"),this._removeClass(i,null,this.options.icons.down),this._addClass(i,null,e.down)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:S(function(t){this._super(t)}),_parse:function(t){return""===(t="string"==typeof t&&""!==t?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t:t)||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:S(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:S(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:S(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:S(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());S(this._value).call(this,t)},widget:function(){return this.uiSpinner}}),!1!==B.uiBackCompat&&B.widget("ui.spinner",B.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}});B.ui.spinner});
!function(i,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):i.Fresco=e(jQuery)}(this,(function($){function baseToString(i){return"string"==typeof i?i:null==i?"":i+""}function Timers(){return this.initialize.apply(this,_slice.call(arguments))}function getURIData(i){var e={type:"image"};return $.each(Types,(function(t,s){var n=s.data(i);n&&((e=n).type=t,e.url=i)})),e}function detectExtension(i){var e=(i||"").replace(/\?.*/g,"").match(/\.([^.]{3,4})$/);return e?e[1].toLowerCase():null}function View(){this.initialize.apply(this,_slice.call(arguments))}function Thumbnail(){this.initialize.apply(this,_slice.call(arguments))}var Fresco={};$.extend(Fresco,{version:"2.3.2"}),Fresco.Skins={fresco:{}};var Bounds={viewport:function(){var i={width:$(window).width()};if(Browser.MobileSafari||Browser.Android&&Browser.Gecko){var e=document.documentElement.clientWidth/window.innerWidth;i.height=window.innerHeight*e}else i.height=$(window).height();return i}},Browser=function(i){function e(e){var t=new RegExp(e+"([\\d.]+)").exec(i);return!t||parseFloat(t[1])}return{IE:!(!window.attachEvent||-1!==i.indexOf("Opera"))&&e("MSIE "),Opera:i.indexOf("Opera")>-1&&(!!window.opera&&opera.version&&parseFloat(opera.version())||7.55),WebKit:i.indexOf("AppleWebKit/")>-1&&e("AppleWebKit/"),Gecko:i.indexOf("Gecko")>-1&&-1===i.indexOf("KHTML")&&e("rv:"),MobileSafari:!!i.match(/Apple.*Mobile.*Safari/),Chrome:i.indexOf("Chrome")>-1&&e("Chrome/"),ChromeMobile:i.indexOf("CrMo")>-1&&e("CrMo/"),Android:i.indexOf("Android")>-1&&e("Android "),IEMobile:i.indexOf("IEMobile")>-1&&e("IEMobile/")}}(navigator.userAgent),_slice=Array.prototype.slice,_={isElement:function(i){return i&&1===i.nodeType},String:{capitalize:function(i){return(i=baseToString(i))&&i.charAt(0).toUpperCase()+i.slice(1)}}};!function(){function i(i){var e;if(i&&i.originalEvent&&(i.originalEvent.wheelDelta?e=i.originalEvent.wheelDelta/120:i.originalEvent.detail&&(e=-i.originalEvent.detail/3),e)){var t=$.Event("fresco:mousewheel");$(i.target).trigger(t,e),t.isPropagationStopped()&&i.stopPropagation(),t.isDefaultPrevented()&&i.preventDefault()}}$(document.documentElement).on("mousewheel DOMMouseScroll",i)}();var Fit={within:function(i,e,t){for(var s=$.extend({height:!0,width:!0},t||{}),n=$.extend({},e),o=1,a=5,h={width:s.width,height:s.height};a>0&&(h.width&&n.width>i.width||h.height&&n.height>i.height);){var r=1,d=1;h.width&&n.width>i.width&&(r=i.width/n.width),h.height&&n.height>i.height&&(d=i.height/n.height),o=Math.min(r,d),n={width:e.width*o,height:e.height*o},a--}return n.width=Math.max(n.width,0),n.height=Math.max(n.height,0),n}};$.extend($.easing,{frescoEaseInCubic:function(i,e,t,s,n){return s*(e/=n)*e*e+t},frescoEaseInSine:function(i,e,t,s,n){return-s*Math.cos(e/n*(Math.PI/2))+s+t},frescoEaseOutSine:function(i,e,t,s,n){return s*Math.sin(e/n*(Math.PI/2))+t}});var Support=function(){function i(i){return t(i,"prefix")}function e(i,e){for(var t in i)if(void 0!==s.style[i[t]])return"prefix"!==e||i[t];return!1}function t(i,t){var s=i.charAt(0).toUpperCase()+i.substr(1),o;return e((i+" "+n.join(s+" ")+s).split(" "),t)}var s=document.createElement("div"),n="Webkit Moz O ms Khtml".split(" "),o;return{canvas:(o=document.createElement("canvas"),!(!o.getContext||!o.getContext("2d"))),css:{animation:t("animation"),transform:t("transform"),prefixed:i},svg:!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,touch:function(){try{return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}catch(i){return!1}}()}}();Support.detectMobileTouch=function(){Support.mobileTouch=Support.touch&&(Browser.MobileSafari||Browser.Android||Browser.IEMobile||Browser.ChromeMobile||!/^(Win|Mac|Linux)/.test(navigator.platform))},Support.detectMobileTouch();var ImageReady=function(){return this.initialize.apply(this,Array.prototype.slice.call(arguments))};$.extend(ImageReady.prototype,{supports:{naturalWidth:"naturalWidth"in new Image},initialize:function(i,e,t,s){this.img=$(i)[0],this.successCallback=e,this.errorCallback=t,this.isLoaded=!1,this.options=$.extend({method:"naturalWidth",pollFallbackAfter:1e3},s||{}),this.supports.naturalWidth&&"onload"!==this.options.method?this.img.complete&&void 0!==this.img.naturalWidth?setTimeout(function(){this.img.naturalWidth>0?this.success():this.error()}.bind(this)):($(this.img).bind("error",function(){setTimeout(function(){this.error()}.bind(this))}.bind(this)),this.intervals=[[1e3,10],[2e3,50],[4e3,100],[2e4,500]],this._ipos=0,this._time=0,this._delay=this.intervals[this._ipos][1],this.poll()):setTimeout(this.fallback.bind(this))},poll:function(){this._polling=setTimeout(function(){if(this.img.naturalWidth>0)this.success();else{if(this._time+=this._delay,this.options.pollFallbackAfter&&this._time>=this.options.pollFallbackAfter&&!this._usedPollFallback&&(this._usedPollFallback=!0,this.fallback()),this._time>this.intervals[this._ipos][0]){if(!this.intervals[this._ipos+1])return void this.error();this._ipos++,this._delay=this.intervals[this._ipos][1]}this.poll()}}.bind(this),this._delay)},fallback:function(){var i=new Image;this._fallbackImg=i,i.onload=function(){i.onload=function(){},this.supports.naturalWidth||(this.img.naturalWidth=i.width,this.img.naturalHeight=i.height),this.success()}.bind(this),i.onerror=this.error.bind(this),i.src=this.img.src},abort:function(){this._fallbackImg&&(this._fallbackImg.onload=function(){}),this._polling&&(clearTimeout(this._polling),this._polling=null)},success:function(){this._calledSuccess||(this._calledSuccess=!0,this.isLoaded=!0,this.successCallback(this))},error:function(){this._calledError||(this._calledError=!0,this.abort(),this.errorCallback&&this.errorCallback(this))}}),$.extend(Timers.prototype,{initialize:function(){this._timers={}},set:function(i,e,t){this._timers[i]=setTimeout(e,t)},get:function(i){return this._timers[i]},clear:function(i){i?this._timers[i]&&(clearTimeout(this._timers[i]),delete this._timers[i]):this.clearAll()},clearAll:function(){$.each(this._timers,(function(i,e){clearTimeout(e)})),this._timers={}}});var Type={isVideo:function(i){return/^(youtube|vimeo)$/.test(i)}},Types={image:{extensions:"bmp gif jpeg jpg png webp",detect:function(i){return $.inArray(detectExtension(i),this.extensions.split(" "))>-1},data:function(i){return!!this.detect()&&{extension:detectExtension(i)}}},vimeo:{detect:function(i){var e=/(vimeo\.com)\/([a-zA-Z0-9-_]+)(?:\S+)?$/i.exec(i);return!(!e||!e[2])&&e[2]},data:function(i){var e=this.detect(i);return!!e&&{id:e}}},youtube:{detect:function(i){var e=/(youtube\.com|youtu\.be)\/watch\?(?=.*vi?=([a-zA-Z0-9-_]+))(?:\S+)?$/.exec(i);return e&&e[2]?e[2]:!(!(e=/(youtube\.com|youtu\.be)\/(vi?\/|u\/|embed\/)?([a-zA-Z0-9-_]+)(?:\S+)?$/i.exec(i))||!e[3])&&e[3]},data:function(i){var e=this.detect(i);return!!e&&{id:e}}}},VimeoThumbnail=function(){var i=function(){return this.initialize.apply(this,_slice.call(arguments))};$.extend(i.prototype,{initialize:function(i,e,t){this.url=i,this.successCallback=e,this.errorCallback=t,this.load()},load:function(){var i=e.get(this.url);if(i)return this.successCallback(i.data.url);var t="http"+(window.location&&"https:"===window.location.protocol?"s":"")+":",s=getURIData(this.url).id;this._xhr=$.getJSON(t+"//vimeo.com/api/oembed.json?url="+t+"//vimeo.com/"+s+"&callback=?",function(i){if(i&&i.thumbnail_url){var t={url:i.thumbnail_url};e.set(this.url,t),this.successCallback(t.url)}else this.errorCallback()}.bind(this))},abort:function(){this._xhr&&(this._xhr.abort(),this._xhr=null)}});var e={cache:[],get:function(i){for(var e=null,t=0;t<this.cache.length;t++)this.cache[t]&&this.cache[t].url===i&&(e=this.cache[t]);return e},set:function(i,e){this.remove(i),this.cache.push({url:i,data:e})},remove:function(i){for(var e=0;e<this.cache.length;e++)this.cache[e]&&this.cache[e].url===i&&delete this.cache[e]}};return i}(),VimeoReady=function(){var i=function(){return this.initialize.apply(this,_slice.call(arguments))};$.extend(i.prototype,{initialize:function(i,e){this.url=i,this.callback=e,this.load()},load:function(){var i=e.get(this.url);if(i)return this.callback(i.data);var t="http"+(window.location&&"https:"===window.location.protocol?"s":"")+":",s=getURIData(this.url).id;this._xhr=$.getJSON(t+"//vimeo.com/api/oembed.json?url="+t+"//vimeo.com/"+s+"&maxwidth=9999999&maxheight=9999999&callback=?",function(i){var t={dimensions:{width:i.width,height:i.height}};e.set(this.url,t),this.callback&&this.callback(t)}.bind(this))},abort:function(){this._xhr&&(this._xhr.abort(),this._xhr=null)}});var e={cache:[],get:function(i){for(var e=null,t=0;t<this.cache.length;t++)this.cache[t]&&this.cache[t].url===i&&(e=this.cache[t]);return e},set:function(i,e){this.remove(i),this.cache.push({url:i,data:e})},remove:function(i){for(var e=0;e<this.cache.length;e++)this.cache[e]&&this.cache[e].url===i&&delete this.cache[e]}};return i}(),Options={defaults:{effects:{content:{show:0,hide:0},spinner:{show:150,hide:150},window:{show:440,hide:300},thumbnail:{show:300,delay:150},thumbnails:{slide:0}},keyboard:{left:!0,right:!0,esc:!0},loadedMethod:"naturalWidth",loop:!1,onClick:"previous-next",overflow:!1,overlay:{close:!0},preload:[1,2],position:!0,skin:"fresco",spinner:!0,spinnerDelay:300,sync:!0,thumbnails:"horizontal",ui:"outside",uiDelay:3e3,vimeo:{autoplay:1,api:1,title:1,byline:1,portrait:0,loop:0},youtube:{autoplay:1,controls:1,enablejsapi:1,hd:1,iv_load_policy:3,loop:0,modestbranding:1,rel:0,vq:"hd1080"},initialTypeOptions:{image:{},vimeo:{width:1280},youtube:{width:1280,height:720}}},create:function(i,e,t){t=t||{},(i=i||{}).skin=i.skin||this.defaults.skin;var s=i.skin?$.extend({},Fresco.Skins[i.skin]||Fresco.Skins[this.defaults.skin]):{},n=$.extend(!0,{},this.defaults,s);n.initialTypeOptions&&(e&&n.initialTypeOptions[e]&&(n=$.extend(!0,{},n.initialTypeOptions[e],n)),delete n.initialTypeOptions);var o=$.extend(!0,{},n,i);if(Support.mobileTouch&&"inside"===o.ui&&(o.ui="outside"),(!o.effects||Browser.IE&&Browser.IE<9)&&(o.effects={},$.each(this.defaults.effects,(function(i,e){$.each(o.effects[i]=$.extend({},e),(function(e){o.effects[i][e]=0}))})),o.spinner=!1),o.keyboard&&("boolean"==typeof o.keyboard&&(o.keyboard={},$.each(this.defaults.keyboard,(function(i,e){o.keyboard[i]=!0}))),"vimeo"!==e&&"youtube"!==e||$.extend(o.keyboard,{left:!1,right:!1})),!o.overflow||Support.mobileTouch?o.overflow={x:!1,y:!1}:"boolean"==typeof o.overflow&&(o.overflow={x:!1,y:!0}),"vimeo"!==e&&"youtube"!==e||(o.overlap=!1),(Browser.IE&&Browser.IE<9||Support.mobileTouch)&&(o.thumbnail=!1,o.thumbnails=!1),"youtube"!==e&&(o.width&&!o.maxWidth&&(o.maxWidth=o.width),o.height&&!o.maxHeight&&(o.maxHeight=o.height)),!o.thumbnail&&"boolean"!=typeof o.thumbnail){var a=!1;switch(e){case"youtube":var h;a="http"+(window.location&&"https:"===window.location.protocol?"s":"")+":"+"//img.youtube.com/vi/"+t.id+"/0.jpg";break;case"image":case"vimeo":a=!0;break}o.thumbnail=a}return o}},Overlay={initialize:function(){this.build(),this.visible=!1},build:function(){this.element=$("<div>").addClass("fr-overlay").hide().append($("<div>").addClass("fr-overlay-background")),this.element.on("click",function(){var i=Pages.page;i&&i.view&&i.view.options.overlay&&!i.view.options.overlay.close||Window.hide()}.bind(this)),Support.mobileTouch&&this.element.addClass("fr-mobile-touch"),this.element.on("fresco:mousewheel",(function(i){i.preventDefault()}))},setSkin:function(i){this.skin&&this.element.removeClass("fr-overlay-skin-"+this.skin),this.element.addClass("fr-overlay-skin-"+i),this.skin=i},attach:function(){$(document.body).append(this.element)},detach:function(){this.element.detach()},show:function(i,e){if(this.visible)i&&i();else{this.visible=!0,this.attach(),this.max();var t=Pages.page&&Pages.page.view.options.effects.window.show||0,s=("number"==typeof e?e:t)||0;this.element.stop(!0).fadeTo(s,1,i)}},hide:function(i,e){if(this.visible){var t=Pages.page&&Pages.page.view.options.effects.window.hide||0,s=("number"==typeof e?e:t)||0;this.element.stop(!0).fadeOut(s||0,function(){this.detach(),this.visible=!1,i&&i()}.bind(this))}else i&&i()},getScrollDimensions:function(){var i={};return $.each(["width","height"],(function(e,t){var s=t.substr(0,1).toUpperCase()+t.substr(1),n=document.documentElement;i[t]=(Browser.IE?Math.max(n["offset"+s],n["scroll"+s]):Browser.WebKit?document.body["scroll"+s]:n["scroll"+s])||0})),i},max:function(){var i;if(Browser.MobileSafari&&Browser.WebKit&&Browser.WebKit<533.18&&(i=this.getScrollDimensions(),this.element.css(i)),Browser.IE&&Browser.IE<9){var e=Bounds.viewport();this.element.css({height:e.height,width:e.width})}Support.mobileTouch&&!i&&this.element.css({height:this.getScrollDimensions().height})}},Window={initialize:function(){this.queues=[],this.queues.hide=$({}),this.pages=[],this._tracking=[],this._first=!0,this.timers=new Timers,this.build(),this.setSkin(Options.defaults.skin)},build:function(){if(this.element=$("<div>").addClass("fr-window fr-measured").hide().append(this._box=$("<div>").addClass("fr-box").append(this._pages=$("<div>").addClass("fr-pages"))).append(this._thumbnails=$("<div>").addClass("fr-thumbnails")),Overlay.initialize(),Pages.initialize(this._pages),Thumbnails.initialize(this._thumbnails),Spinner.initialize(),UI.initialize(),this.element.addClass("fr"+(Support.mobileTouch?"":"-no")+"-mobile-touch"),this.element.addClass("fr"+(Support.svg?"":"-no")+"-svg"),Browser.IE)for(var i=7;i<=9;i++)Browser.IE<i&&this.element.addClass("fr-ltIE"+i);this.element.on("fresco:mousewheel",(function(i){i.preventDefault()}))},attach:function(){this._attached||($(document.body).append(this.element),this._attached=!0)},detach:function(){this._attached&&(this.element.detach(),this._attached=!1)},setSkin:function(i){this._skin&&this.element.removeClass("fr-window-skin-"+this._skin),this.element.addClass("fr-window-skin-"+i),Overlay.setSkin(i),this._skin=i},setShowingType:function(i){this._showingType!==i&&(this._showingType&&(this.element.removeClass("fr-showing-type-"+this._showingType),Type.isVideo(this._showingType)&&this.element.removeClass("fr-showing-type-video")),this.element.addClass("fr-showing-type-"+i),Type.isVideo(i)&&this.element.addClass("fr-showing-type-video"),this._showingType=i)},startObservingResize:function(){this._onWindowResizeHandler||$(window).on("resize orientationchange",this._onWindowResizeHandler=this._onWindowResize.bind(this))},stopObservingResize:function(){this._onWindowResizeHandler&&($(window).off("resize orientationchange",this._onWindowResizeHandler),this._onWindowResizeHandler=null)},_onScroll:function(){Support.mobileTouch&&this.timers.set("scroll",this.adjustToScroll.bind(this),0)},_onWindowResize:function(){var i;(i=Pages.page)&&(Thumbnails.fitToViewport(),this.updateBoxDimensions(),i.fitToBox(),UI.update(),UI.adjustPrevNext(null,0),Spinner.center(),Overlay.max(),UI._onWindowResize(),this._onScroll())},adjustToScroll:function(){Support.mobileTouch&&this.element.css({top:$(window).scrollTop()})},getBoxDimensions:function(){return this._boxDimensions},updateBoxDimensions:function(){var i;if(i=Pages.page){var e=Bounds.viewport(),t=Thumbnails.getDimensions(),s="horizontal"===Thumbnails._orientation;this._boxDimensions={width:s?e.width:e.width-t.width,height:s?e.height-t.height:e.height},this._boxPosition={top:0,left:s?0:t.width},this._box.css($.extend({},this._boxDimensions,this._boxPosition))}},show:function(i,e){if(this.visible)i&&i();else{this.visible=!0,this.opening=!0,this.attach(),this.timers.clear("show-window"),this.timers.clear("hide-overlay"),this.adjustToScroll();var t=("number"==typeof e?e:Pages.page&&Pages.page.view.options.effects.window.show)||0,s=2;Overlay[Pages.page&&Pages.page.view.options.overlay?"show":"hide"]((function(){i&&--s<1&&i()}),t),this.timers.set("show-window",function(){this._show(function(){this.opening=!1,i&&--s<1&&i()}.bind(this),t)}.bind(this),t>1?Math.min(.5*t,50):1)}},_show:function(i,e){var t=("number"==typeof e?e:Pages.page&&Pages.page.view.options.effects.window.show)||0;this.element.stop(!0).fadeTo(t,1,i)},hide:function(i){if(this.view){var e=this.queues.hide;e.queue([]),this.timers.clear("show-window"),this.timers.clear("hide-overlay");var t=Pages.page?Pages.page.view.options.effects.window.hide:0;e.queue(function(i){Pages.stop(),Spinner.hide(),i()}.bind(this)),e.queue(function(i){UI.disable(),UI.hide(null,t),Keyboard.disable(),i()}.bind(this)),e.queue(function(i){var e=2;this._hide((function(){--e<1&&i()}),t),this.timers.set("hide-overlay",function(){Overlay.hide((function(){--e<1&&i()}),t)}.bind(this),t>1?Math.min(.5*t,150):1),this._first=!0}.bind(this)),e.queue(function(i){this._reset(),this.stopObservingResize(),Pages.removeAll(),Thumbnails.clear(),this.timers.clear(),this._position=-1;var e=Pages.page&&Pages.page.view.options.afterHide;"function"==typeof e&&e.call(Fresco),this.view=null,this.opening=!1,this.closing=!1,this.detach(),i()}.bind(this)),"function"==typeof i&&e.queue(function(e){i(),e()}.bind(this))}},_hide:function(i,e){var t=("number"==typeof e?e:Pages.page&&Pages.page.view.options.effects.window.hide)||0;this.element.stop(!0).fadeOut(t,i)},load:function(i,e){this.views=i,this.attach(),Thumbnails.load(i),Pages.load(i),this.startObservingResize(),e&&this.setPosition(e)},setPosition:function(i,e){this._position=i,this.view=this.views[i-1],this.stopHideQueue(),this.page=Pages.show(i,function(){e&&e()}.bind(this))},stopHideQueue:function(){this.queues.hide.queue([])},_reset:function(){this.visible=!1,UI.hide(null,0),UI.reset()},mayPrevious:function(){return this.view&&this.view.options.loop&&this.views&&this.views.length>1||1!==this._position},previous:function(i){var e=this.mayPrevious();(i||e)&&this.setPosition(this.getSurroundingIndexes().previous)},mayNext:function(){var i=this.views&&this.views.length>1;return this.view&&this.view.options.loop&&i||i&&1!==this.getSurroundingIndexes().next},next:function(i){var e=this.mayNext();(i||e)&&this.setPosition(this.getSurroundingIndexes().next)},getSurroundingIndexes:function(){if(!this.views)return{};var i=this._position,e=this.views.length,t,s;return{previous:i<=1?e:i-1,next:i>=e?1:i+1}}},Keyboard={enabled:!1,keyCode:{left:37,right:39,esc:27},enable:function(i){this.disable(),i&&($(document).on("keydown",this._onKeyDownHandler=this.onKeyDown.bind(this)).on("keyup",this._onKeyUpHandler=this.onKeyUp.bind(this)),this.enabled=i)},disable:function(){this.enabled=!1,this._onKeyUpHandler&&($(document).off("keyup",this._onKeyUpHandler).off("keydown",this._onKeyDownHandler),this._onKeyUpHandler=this._onKeyDownHandler=null)},onKeyDown:function(i){if(this.enabled){var e=this.getKeyByKeyCode(i.keyCode);if(e&&(!e||!this.enabled||this.enabled[e]))switch(i.preventDefault(),i.stopPropagation(),e){case"left":Window.previous();break;case"right":Window.next();break}}},onKeyUp:function(i){if(this.enabled){var e=this.getKeyByKeyCode(i.keyCode);if(e&&(!e||!this.enabled||this.enabled[e]))switch(e){case"esc":Window.hide();break}}},getKeyByKeyCode:function(i){for(var e in this.keyCode)if(this.keyCode[e]===i)return e;return null}},Page=function(){function i(){return this.initialize.apply(this,_slice.call(arguments))}var e=0,t={},s=$("<div>").addClass("fr-stroke fr-stroke-top fr-stroke-horizontal").append($("<div>").addClass("fr-stroke-color")).add($("<div>").addClass("fr-stroke fr-stroke-bottom fr-stroke-horizontal").append($("<div>").addClass("fr-stroke-color"))).add($("<div>").addClass("fr-stroke fr-stroke-left fr-stroke-vertical").append($("<div>").addClass("fr-stroke-color"))).add($("<div>").addClass("fr-stroke fr-stroke-right fr-stroke-vertical").append($("<div>").addClass("fr-stroke-color")));return $.extend(i.prototype,{initialize:function(i,t,s){this.view=i,this.dimensions={width:0,height:0},this.uid=e++,this._position=t,this._total=s,this._fullClick=!1,this._visible=!1,this.queues={},this.queues.showhide=$({})},create:function(){if(!this._created){Pages.element.append(this.element=$("<div>").addClass("fr-page").append(this.container=$("<div>").addClass("fr-container")).css({opacity:0}).hide());var i=this.view.options.position&&this._total>1;if(i&&this.element.addClass("fr-has-position"),(this.view.caption||i)&&(this.element.append(this.info=$("<div>").addClass("fr-info").append($("<div>").addClass("fr-info-background")).append(s.clone(!0)).append(this.infoPadder=$("<div>").addClass("fr-info-padder"))),i&&(this.element.addClass("fr-has-position"),this.infoPadder.append(this.pos=$("<div>").addClass("fr-position").append($("<span>").addClass("fr-position-text").html(this._position+" / "+this._total)))),this.view.caption&&this.infoPadder.append(this.caption=$("<div>").addClass("fr-caption").html(this.view.caption))),this.container.append(this.background=$("<div>").addClass("fr-content-background")).append(this.content=$("<div>").addClass("fr-content")),"image"==this.view.type&&(this.content.append(this.image=$("<img>").addClass("fr-content-element").attr({src:this.view.url})),this.content.append(s.clone(!0))),i&&"outside"==this.view.options.ui&&this.container.append(this.positionOutside=$("<div>").addClass("fr-position-outside").append($("<div>").addClass("fr-position-background")).append($("<span>").addClass("fr-position-text").html(this._position+" / "+this._total))),"inside"==this.view.options.ui){this.content.append(this.previousInside=$("<div>").addClass("fr-side fr-side-previous fr-toggle-ui").append($("<div>").addClass("fr-side-button").append($("<div>").addClass("fr-side-button-background")).append($("<div>").addClass("fr-side-button-icon")))).append(this.nextInside=$("<div>").addClass("fr-side fr-side-next fr-toggle-ui").append($("<div>").addClass("fr-side-button").append($("<div>").addClass("fr-side-button-background")).append($("<div>").addClass("fr-side-button-icon")))).append(this.closeInside=$("<div>").addClass("fr-close fr-toggle-ui").append($("<div>").addClass("fr-close-background")).append($("<div>").addClass("fr-close-icon"))),(this.view.caption||i&&this.view.grouped.caption)&&(this.content.append(this.infoInside=$("<div>").addClass("fr-info fr-toggle-ui").append($("<div>").addClass("fr-info-background")).append(s.clone(!0)).append(this.infoPadderInside=$("<div>").addClass("fr-info-padder"))),i&&this.infoPadderInside.append(this.posInside=$("<div>").addClass("fr-position").append($("<span>").addClass("fr-position-text").html(this._position+" / "+this._total))),this.view.caption&&this.infoPadderInside.append(this.captionInside=$("<div>").addClass("fr-caption").html(this.view.caption))),this.view.caption||!i||this.view.grouped.caption||this.content.append(this.positionInside=$("<div>").addClass("fr-position-inside fr-toggle-ui").append($("<div>").addClass("fr-position-background")).append($("<span>").addClass("fr-position-text").html(this._position+" / "+this._total)));var e=this.view.options.loop&&this._total>1||1!=this._position,t=this.view.options.loop&&this._total>1||this._position<this._total;this.previousInside[(e?"remove":"add")+"Class"]("fr-side-disabled"),this.nextInside[(t?"remove":"add")+"Class"]("fr-side-disabled")}$.each(["x","y"],function(i,e){this.view.options.overflow[e]&&this.element.addClass("fr-overflow-"+e)}.bind(this)),this.element.addClass("fr-type-"+this.view.type),Type.isVideo(this.view.type)&&this.element.addClass("fr-type-video"),this._total<2&&this.element.addClass("fr-no-sides"),this._created=!0}},_getSurroundingPages:function(){var i;if(!(i=this.view.options.preload))return[];for(var e=[],t=Math.max(1,this._position-i[0]),s=Math.min(this._position+i[1],this._total),n=this._position,o=n;o<=s;o++){var a;(a=Pages.pages[o-1])._position!=n&&e.push(a)}for(var o=n;o>=t;o--){var a;(a=Pages.pages[o-1])._position!=n&&e.push(a)}return e},preloadSurroundingImages:function(){var i=this._getSurroundingPages();$.each(i,function(i,e){e.preload()}.bind(this))},preload:function(){this.preloading||this.preloaded||"image"!=this.view.type||!this.view.options.preload||this.loaded||(this.create(),this.preloading=!0,this.preloadReady=new ImageReady(this.image[0],function(i){this.loaded=!0,t[this.view.url]=!0,this.preloading=!1,this.preloaded=!0,this.dimensions={width:i.img.naturalWidth,height:i.img.naturalHeight}}.bind(this),null,{method:"naturalWidth"}))},load:function(i,e){if(this.create(),this.loaded)i&&i();else switch(this.abort(),this.loading=!0,this.view.options.spinner&&(this._spinnerDelay=setTimeout(function(){Spinner.show()}.bind(this),this.view.options.spinnerDelay||0)),this.view.type){case"image":if(this.error)return void(i&&i());this.imageReady=new ImageReady(this.image[0],function(e){this._markAsLoaded(),this.setDimensions({width:e.img.naturalWidth,height:e.img.naturalHeight}),i&&i()}.bind(this),function(){this._markAsLoaded(),this.image.hide(),this.content.prepend(this.error=$("<div>").addClass("fr-error fr-content-element").append($("<div>").addClass("fr-error-icon"))),this.element.addClass("fr-has-error"),this.setDimensions({width:this.error.outerWidth(),height:this.error.outerHeight()}),this.error.css({width:"100%",height:"100%"}),i&&i()}.bind(this),{method:this.view.options.loadedMethod});break;case"vimeo":this.vimeoReady=new VimeoReady(this.view.url,function(e){this._markAsLoaded(),this.setDimensions({width:e.dimensions.width,height:e.dimensions.height}),i&&i()}.bind(this));break;case"youtube":this._markAsLoaded(),this.setDimensions({width:this.view.options.width,height:this.view.options.height}),i&&i();break}},setDimensions:function(i){if(this.dimensions=i,this.view.options.maxWidth||this.view.options.maxHeight){var e=this.view.options,t={width:e.maxWidth?e.maxWidth:this.dimensions.width,height:e.maxHeight?e.maxHeight:this.dimensions.height};this.dimensions=Fit.within(t,this.dimensions)}},_markAsLoaded:function(){this._abortSpinnerDelay(),this.loading=!1,this.loaded=!0,t[this.view.url]=!0,Spinner.hide(null,null,this._position)},isVideo:function(){return Type.isVideo(this.view.type)},insertVideo:function(i){if(!this.playerIframe&&this.isVideo()){var e="http"+(window.location&&"https:"===window.location.protocol?"s":"")+":",t=$.extend({},this.view.options[this.view.type]||{}),s=$.param(t),n,o={vimeo:e+"//player.vimeo.com/video/{id}?{queryString}",youtube:e+"//www.youtube.com/embed/{id}?{queryString}"}[this.view.type].replace("{id}",this.view._data.id).replace("{queryString}",s);this.content.prepend(this.playerIframe=$("<iframe webkitAllowFullScreen mozallowfullscreen allowFullScreen>").addClass("fr-content-element").attr({src:o,height:this._contentDimensions.height,width:this._contentDimensions.width,frameborder:0})),i&&i()}else i&&i()},raise:function(){var i=Pages.element[0].lastChild;i&&i===this.element[0]||Pages.element.append(this.element)},show:function(i){var e=this.queues.showhide;e.queue([]),e.queue(function(i){var e=this.view.options.spinner&&!t[this.view.url];Spinner._visible&&!e&&Spinner.hide(),Pages.stopInactive(),i()}.bind(this)),e.queue(function(i){this.updateUI(),UI.set(this._ui),i()}.bind(this)),e.queue(function(i){Keyboard.enable(this.view.options.keyboard),i()}.bind(this)),e.queue(function(i){Spinner.setSkin(this.view.options.skin),this.load(function(){this.preloadSurroundingImages(),i()}.bind(this))}.bind(this)),e.queue(function(i){this.raise(),Window.setSkin(this.view.options.skin),UI.enable(),this.fitToBox(),Window.adjustToScroll(),i()}.bind(this)),this.isVideo()&&e.queue(function(i){this.insertVideo((function(){i()}))}.bind(this)),this.view.options.sync||e.queue(function(i){Pages.hideInactive(i)}.bind(this)),e.queue(function(i){var e=3,t=this.view.options.effects.content.show;Window.setShowingType(this.view.type),Window.visible||(t=this.view.options.effects.window.show,"function"==typeof this.view.options.onShow&&this.view.options.onShow.call(Fresco)),this.view.options.sync&&(e++,Pages.hideInactive((function(){--e<1&&i()}))),Window.show((function(){--e<1&&i()}),this.view.options.effects.window.show),this._show((function(){--e<1&&i()}),t),UI.adjustPrevNext((function(){--e<1&&i()}),Window._first?0:t),Window._first?(UI.show(null,0),Window._first=!1):UI.show(null,0);var s=this.view.options.afterPosition;"function"==typeof s&&s.call(Fresco,this._position)}.bind(this)),e.queue(function(e){this._visible=!0,i&&i(),e()}.bind(this))},_show:function(i,e){var t=Window.visible?"number"==typeof e?e:this.view.options.effects.content.show:0;this.element.stop(!0).show().fadeTo(t||0,1,i)},hide:function(i,e){if(this.element){this.removeVideo(),this.abort();var t="number"==typeof e?e:this.view.options.effects.content.hide;this.isVideo()&&(t=0),this.element.stop(!0).fadeTo(t,0,"frescoEaseInCubic",function(){this.element.hide(),this._visible=!1,Pages.removeTracking(this._position),i&&i()}.bind(this))}else i&&i()},stop:function(){var i;this.queues.showhide.queue([]),this.element&&this.element.stop(!0),this.abort()},removeVideo:function(){this.playerIframe&&(this.playerIframe[0].src="//about:blank",this.playerIframe.remove(),this.playerIframe=null)},remove:function(){this.stop(),this.removeVideo(),this.element&&this.element.remove(),this._track&&(Pages.removeTracking(this._position),this._track=!1),this.preloadReady&&(this.preloadReady.abort(),this.preloadReady=null,this.preloading=null,this.preloaded=null),this._visible=!1,this.removed=!0},abort:function(){this.imageReady&&(this.imageReady.abort(),this.imageReady=null),this.vimeoReady&&(this.vimeoReady.abort(),this.vimeoReady=null),this._abortSpinnerDelay(),this.loading=!1},_abortSpinnerDelay:function(){this._spinnerDelay&&(clearTimeout(this._spinnerDelay),this._spinnerDelay=null)},_getInfoHeight:function(i){var e=this.view.options.position&&this._total>1;switch(this._ui){case"fullclick":case"inside":if(!this.view.caption&&!e)return 0;break;case"outside":if(!this.view.caption)return 0;break}var t="inside"===this._ui?this.infoInside:this.info;"outside"===this._ui&&(i=Math.min(i,Window._boxDimensions.width));var s,n=t[0].style.width;return"inside"!==this._ui&&"fullclick"!==this._ui||(n="100%"),t.css({width:i+"px"}),s=parseFloat(t.outerHeight()),t.css({width:n}),s},_whileVisible:function(i,e){var t=[],s=Window.element.add(this.element);e&&(s=s.add(e)),$.each(s,(function(i,e){var s;$(e).is(":visible")||t.push($(e).show())}));var n=this.element.hasClass("fr-no-caption");this.element.removeClass("fr-no-caption");var o=this.element.hasClass("fr-has-caption");this.element.addClass("fr-has-caption"),Window.element.css({visibility:"hidden"}),i(),Window.element.css({visibility:"visible"}),n&&this.element.addClass("fr-no-caption"),o||this.element.removeClass("fr-has-caption"),$.each(t,(function(i,e){e.hide()}))},updateForced:function(){this.create(),this._fullClick=this.view.options.fullClick,this._noOverflow=!1,parseInt(this.element.css("min-width"))>0&&(this._fullClick=!0),parseInt(this.element.css("min-height"))>0&&(this._noOverflow=!0)},updateUI:function(){this.updateForced();var i=this._fullClick?"fullclick":this.view.options.ui;this._ui&&this.element.removeClass("fr-ui-"+this._ui),this.element.addClass("fr-ui-"+i),this._ui=i},fitToBox:function(){if(this.content){var i=this.element,e=$.extend({},Window.getBoxDimensions()),t=$.extend({},this.dimensions),s=this.container;this.updateUI();var n={left:parseInt(s.css("padding-left")),top:parseInt(s.css("padding-top"))};if("outside"===this._ui&&this._positionOutside){var o=0;this._whileVisible(function(){this._positionOutside.is(":visible")&&(o=this._positionOutside.outerWidth(!0))}.bind(this)),o>n.left&&(n.left=o)}e.width-=2*n.left,e.height-=2*n.top;var a={width:!0,height:!!this._noOverflow||!this.view.options.overflow.y},h=Fit.within(e,t,a),r=$.extend({},h),d=this.content,l=0,u,c="inside"===this._ui,f=c?this.infoInside:this.info,p=c?this.captionInside:this.caption,v=c?this.posInside:this.pos,m=!!p,g;switch(this._ui){case"outside":var _=$.extend({},r);this.caption&&(g=this.caption,this._whileVisible(function(){for(var i=0,t=2;i<2;){l=this._getInfoHeight(r.width)
;var s=e.height-r.height;s<l&&(r=Fit.within({width:r.width,height:Math.max(r.height-(l-s),0)},r,a)),i++}l=this._getInfoHeight(r.width);var n=.5;(!this.view.options.overflow.y&&l+r.height>e.height||f&&"none"===f.css("display")||l>=n*r.height)&&(m=!1,l=0,r=_)}.bind(this),g)),f&&f.css({width:r.width+"px"}),u={width:r.width,height:r.height+l};break;case"inside":this.caption&&(g=p,this._whileVisible(function(){var i=.45;(l=this._getInfoHeight(r.width))>=i*r.height&&(m=!1,l=0)}.bind(this),g)),u=r;break;case"fullclick":var b=[];p&&b.push(p),this._whileVisible(function(){if((p||v)&&f.css({width:"100%"}),l=this._getInfoHeight(Window._boxDimensions.width),p&&l>.5*e.height)if(m=!1,v){var i=this.caption.is(":visible");this.caption.hide(),l=this._getInfoHeight(Window._boxDimensions.width),i&&this.caption.show()}else l=0;r=Fit.within({width:e.width,height:Math.max(0,e.height-l)},r,a),u=r}.bind(this),b),this.content.css({"padding-bottom":0});break}p&&p[m?"show":"hide"](),this.element[(m?"remove":"add")+"Class"]("fr-no-caption"),this.element[(m?"add":"remove")+"Class"]("fr-has-caption"),this.content.css(r),this.background.css(u),this.playerIframe&&this.playerIframe.attr(r),this.overlap={y:u.height+("fullclick"===this._ui?l:0)-Window._boxDimensions.height,x:0},this._track=!this._noOverflow&&this.view.options.overflow.y&&this.overlap.y>0,this._infoHeight=l,this._padding=n,this._contentDimensions=r,this._backgroundDimensions=u,Pages[(this._track?"set":"remove")+"Tracking"](this._position),this.position()}},position:function(){if(this.content){var i=this._contentDimensions,e=this._backgroundDimensions,t={top:.5*Window._boxDimensions.height-.5*e.height,left:.5*Window._boxDimensions.width-.5*e.width},s={top:t.top+i.height,left:t.left},n=0,o="inside"===this._ui?this.infoInside:this.info;switch(this._ui){case"fullclick":t.top=.5*(Window._boxDimensions.height-this._infoHeight)-.5*e.height,s={top:Window._boxDimensions.height-this._infoHeight,left:0,bottom:"auto"},n=this._infoHeight;break;case"inside":s={top:"auto",left:0,bottom:0};break}if(this.overlap.y>0){var a=Pages.getXYP();switch(t.top=0-a.y*this.overlap.y,this._ui){case"outside":case"fullclick":s.top=Window._boxDimensions.height-this._infoHeight;break;case"inside":var h=t.top+i.height-Window._boxDimensions.height,r=-1*t.top;if(s.bottom=h,this.closeInside.css({top:r}),this._total>1){var d=Window.element.is(":visible");d||Window.element.show();var l=this.previousInside.attr("style");this.previousInside.removeAttr("style");var u=parseInt(this.previousInside.css("margin-top"));this.previousInside.attr({style:l}),d||Window.element.hide();var c=this.previousInside.add(this.nextInside),f=.5*this.overlap.y;c.css({"margin-top":u+(r-f)}),this.positionInside&&this.positionInside.css({bottom:h})}break}}else"inside"===this._ui&&this.element.find(".fr-info, .fr-side, .fr-close, .fr-position-inside").removeAttr("style");o&&o.css(s),this.container.css({bottom:n}),this.content.css(t),this.background.css(t)}}}),i}(),Pages={initialize:function(i){this.element=i,this.pages=[],this.uid=1,this._tracking=[]},load:function(i){this.views=i,this.removeAll(),$.each(i,function(i,e){this.pages.push(new Page(e,i+1,this.views.length))}.bind(this))},show:function(i,e){var t=this.pages[i-1];this.page&&this.page.uid===t.uid||(this.page=t,Thumbnails.show(i),Window.updateBoxDimensions(),t.show(function(){e&&e()}.bind(this)))},getPositionInActivePageGroup:function(i){var e=0;return $.each(this.pages,(function(t,s){s.view.element&&s.view.element===i&&(e=t+1)})),e},getLoadingCount:function(){var i=0;return $.each(this.pages,(function(e,t){t.loading&&i++})),i},removeAll:function(){$.each(this.pages,(function(i,e){e.remove()})),this.pages=[]},hideInactive:function(i,e){var t=[];$.each(this.pages,function(i,e){e.uid!==this.page.uid&&t.push(e)}.bind(this));var s=0+t.length;return s<1?i&&i():$.each(t,(function(t,n){n.hide((function(){i&&--s<1&&i()}),e)})),t.length},stopInactive:function(){$.each(this.pages,function(i,e){e.uid!==this.page.uid&&e.stop()}.bind(this))},stop:function(){$.each(this.pages,(function(i,e){e.stop()}))},handleTracking:function(i){Browser.IE&&Browser.IE<9?(this.setXY({x:i.pageX,y:i.pageY}),this.updatePositions()):this._tracking_timer=setTimeout(function(){this.setXY({x:i.pageX,y:i.pageY}),this.updatePositions()}.bind(this),30)},clearTrackingTimer:function(){this._tracking_timer&&(clearTimeout(this._tracking_timer),this._tracking_timer=null)},startTracking:function(){Support.mobileTouch||this._handleTracking||$(document.documentElement).on("mousemove",this._handleTracking=this.handleTracking.bind(this))},stopTracking:function(){!Support.mobileTouch&&this._handleTracking&&($(document.documentElement).off("mousemove",this._handleTracking),this._handleTracking=null,this.clearTrackingTimer())},setTracking:function(i){this.isTracking(i)||(this._tracking.push(this.pages[i-1]),1===this._tracking.length&&this.startTracking())},clearTracking:function(){this._tracking=[]},removeTracking:function(i){this._tracking=$.grep(this._tracking,(function(e){return e._position!==i})),this._tracking.length<1&&this.stopTracking()},isTracking:function(i){var e=!1;return $.each(this._tracking,(function(t,s){if(s._position===i)return e=!0,!1})),e},setXY:function(i){this._xy=i},getXYP:function(){var i=Pages.page,e=$.extend({},Window._boxDimensions),t=$.extend({},this._xy);t.y-=$(window).scrollTop(),i&&("outside"===i._ui||"fullclick"===i._ui)&&i._infoHeight>0&&(e.height-=i._infoHeight),t.y-=Window._boxPosition.top;var s={x:0,y:Math.min(Math.max(t.y/e.height,0),1)},n=20,o={x:"width",y:"height"},a={};return $.each("y".split(" "),function(i,t){a[t]=Math.min(Math.max(n/e[o[t]],0),1),s[t]*=1+2*a[t],s[t]-=a[t],s[t]=Math.min(Math.max(s[t],0),1)}.bind(this)),this.setXYP(s),this._xyp},setXYP:function(i){this._xyp=i},updatePositions:function(){this._tracking.length<1||$.each(this._tracking,(function(i,e){e.position()}))}};$.extend(View.prototype,{initialize:function(object,argument_1){var options=argument_1||{},data={};if("string"==typeof object)object={url:object};else if(object&&1===object.nodeType){var element=$(object);object={element:element[0],url:element.attr("href"),caption:element.attr("data-fresco-caption"),group:element.attr("data-fresco-group"),extension:element.attr("data-fresco-extension"),type:element.attr("data-fresco-type"),options:element.attr("data-fresco-options")&&eval("({"+element.attr("data-fresco-options")+"})")||{}}}return object&&(object.extension||(object.extension=detectExtension(object.url)),object.type||(data=getURIData(object.url),object._data=data,object.type=data.type)),object._data||(object._data=getURIData(object.url)),object&&object.options?object.options=$.extend(!0,$.extend({},options),$.extend({},object.options)):object.options=$.extend({},options),object.options=Options.create(object.options,object.type,object._data),$.extend(this,object),this}});var Spinner={supported:Support.css.transform&&Support.css.animation,initialize:function(i){this.element=$("<div>").addClass("fr-spinner").hide();for(var e=1;e<=12;e++)this.element.append($("<div>").addClass("fr-spin-"+e));this.element.on("click",function(){Window.hide()}.bind(this)),this.element.on("fresco:mousewheel",(function(i){i.preventDefault()}))},setSkin:function(i){this.supported&&(this._skin&&this.element.removeClass("fr-spinner-skin-"+this._skin),this.updateDimensions(),this.element.addClass("fr-spinner-skin-"+i),this._skin=i)},updateDimensions:function(){var i=this._attached;i||this.attach(),this._dimensions={width:this.element.outerWidth(),height:this.element.outerHeight()},i||this.detach()},attach:function(){this._attached||($(document.body).append(this.element),this._attached=!0)},detach:function(){this._attached&&(this.element.detach(),this._attached=!1)},show:function(i,e){this._visible=!0,this.attach(),this.center();var t=Pages.page&&Pages.page.view.options.effects.spinner.show||0,s=("number"==typeof e?e:t)||0;this.element.stop(!0).fadeTo(s,1,i)},hide:function(i,e,t){this._visible=!1;var s=Pages.page&&Pages.page.view.options.effects.spinner.hide||0,n=("number"==typeof e?e:s)||0;this.element.stop(!0).fadeOut(n||0,function(){this.detach(),i&&i()}.bind(this))},center:function(){if(this.supported){this._dimensions||this.updateDimensions();var i=Pages.page,e=0;i&&"fullclick"===i._ui&&i._whileVisible((function(){e=i._getInfoHeight(Window._boxDimensions.width)})),this.element.css({top:Window._boxPosition.top+.5*Window._boxDimensions.height-.5*this._dimensions.height-.5*e,left:Window._boxPosition.left+.5*Window._boxDimensions.width-.5*this._dimensions.width})}}},_Fresco={_disabled:!1,_fallback:!0,initialize:function(){Window.initialize(),this._disabled||this.startDelegating()},startDelegating:function(){this._delegateHandler||$(document.documentElement).on("click",".fresco[href]",this._delegateHandler=this.delegate.bind(this)).on("click",this._setClickXYHandler=this.setClickXY.bind(this))},stopDelegating:function(){this._delegateHandler&&($(document.documentElement).off("click",".fresco[href]",this._delegateHandler).off("click",this._setClickXYHandler),this._setClickXYHandler=null,this._delegateHandler=null)},setClickXY:function(i){Pages.setXY({x:i.pageX,y:i.pageY})},delegate:function(i){if(!this._disabled){i.stopPropagation(),i.preventDefault();var e=i.currentTarget;this.setClickXY(i),_Fresco.show(e)}},show:function(object,argument_1,argument_2){if(this._disabled)this.showFallback.apply(_Fresco,_slice.call(arguments));else{var options=argument_1||{},position=argument_2;argument_1&&"number"==typeof argument_1&&(position=argument_1,options={});var views=[],object_type,isElement=_.isElement(object);switch(object_type=typeof object){case"string":case"object":var view=new View(object,options),_dgo="data-fresco-group-options",groupOptions={};if(view.group){if(isElement){var elements=$('.fresco[data-fresco-group="'+$(object).attr("data-fresco-group")+'"]');elements.filter("["+_dgo+"]").each((function(i,element){$.extend(groupOptions,eval("({"+($(element).attr(_dgo)||"")+"})"))})),elements.each((function(i,e){position||e!==object||(position=i+1),views.push(new View(e,$.extend({},groupOptions,options)))}))}}else isElement&&$(object).is("["+_dgo+"]")&&($.extend(groupOptions,eval("({"+($(object).attr(_dgo)||"")+"})")),view=new View(object,$.extend({},groupOptions,options))),views.push(view);break;case"array":$.each(object,(function(i,e){var t=new View(e,options);views.push(t)}));break}var groupExtend={grouped:{caption:!1}},firstUI=views[0].options.ui,positionInAPG;$.each(views,(function(i,e){e.caption&&(groupExtend.grouped.caption=!0),i>0&&e.options.ui!==firstUI&&(e.options.ui=firstUI)})),$.each(views,(function(i,e){e=$.extend(e,groupExtend)})),(!position||position<1)&&(position=1),position>views.length&&(position=views.length),isElement&&(positionInAPG=Pages.getPositionInActivePageGroup(object))?Window.setPosition(positionInAPG):Window.load(views,position)}},showFallback:function(){function i(e){var t,s=typeof e;return t="string"===s?e:"array"===s&&e[0]?i(e[0]):_.isElement(e)&&$(e).attr("href")?$(e).attr("href"):!!e.url&&e.url}return function(e){if(this._fallback){var t=i(e);t&&(window.location.href=t)}}}()};$.extend(Fresco,{show:function(i){return _Fresco.show.apply(_Fresco,_slice.call(arguments)),this},hide:function(){return Window.hide(),this},disable:function(){return _Fresco.stopDelegating(),_Fresco._disabled=!0,this},enable:function(){return _Fresco._disabled=!1,_Fresco.startDelegating(),this},fallback:function(i){return _Fresco._fallback=i,this},setDefaultSkin:function(i){return Options.defaults.skin=i,this}}),(Browser.IE&&Browser.IE<7||"number"==typeof Browser.Android&&Browser.Android<3||Browser.MobileSafari&&"number"==typeof Browser.WebKit&&Browser.WebKit<533.18)&&(_Fresco.show=_Fresco.showFallback);var Thumbnails={initialize:function(i){this.element=i,this._thumbnails=[],this._orientation="vertical",this._vars={thumbnail:{},thumbnailFrame:{},thumbnails:{}},this.build(),this.startObserving()},build:function(){this.element.append(this.wrapper=$("<div>").addClass("fr-thumbnails-wrapper").append(this._slider=$("<div>").addClass("fr-thumbnails-slider").append(this._previous=$("<div>").addClass("fr-thumbnails-side fr-thumbnails-side-previous").append(this._previous_button=$("<div>").addClass("fr-thumbnails-side-button").append($("<div>").addClass("fr-thumbnails-side-button-background")).append($("<div>").addClass("fr-thumbnails-side-button-icon")))).append(this._thumbs=$("<div>").addClass("fr-thumbnails-thumbs").append(this._slide=$("<div>").addClass("fr-thumbnails-slide"))).append(this._next=$("<div>").addClass("fr-thumbnails-side fr-thumbnails-side-next").append(this._next_button=$("<div>").addClass("fr-thumbnails-side-button").append($("<div>").addClass("fr-thumbnails-side-button-background")).append($("<div>").addClass("fr-thumbnails-side-button-icon"))))))},startObserving:function(){this._slider.delegate(".fr-thumbnail","click",function(i){i.stopPropagation();var e=$(i.target).closest(".fr-thumbnail")[0],t=e&&$(e).data("fr-position");t&&(this.setActive(t),Window.setPosition(t))}.bind(this)),this._slider.bind("click",(function(i){i.stopPropagation()})),this._previous.bind("click",this.previousPage.bind(this)),this._next.bind("click",this.nextPage.bind(this))},load:function(i){this.clear();var e="horizontal",t=!1;$.each(i,function(i,s){"vertical"===s.options.thumbnails&&(e="vertical"),s.options.thumbnails||(t=!0)}.bind(this)),this.setOrientation(e),this._disabledGroup=t,$.each(i,function(i,e){this._thumbnails.push(new Thumbnail(e,i+1))}.bind(this)),this.fitToViewport()},clear:function(){$.each(this._thumbnails,(function(i,e){e.remove()})),this._thumbnails=[],this._position=-1,this._page=-1},setOrientation:function(i){this._orientation&&Window.element.removeClass("fr-thumbnails-"+this._orientation),Window.element.addClass("fr-thumbnails-"+i),this._orientation=i},disable:function(){Window.element.removeClass("fr-thumbnails-enabled").addClass("fr-thumbnails-disabled"),this._disabled=!0},enable:function(){Window.element.removeClass("fr-thumbnails-disabled").addClass("fr-thumbnails-enabled"),this._disabled=!1},enabled:function(){return!this._disabled},disabled:function(){return this._disabled},updateVars:function(){var i=Window.element,e=this._vars,t,s="horizontal"===this._orientation,n=s?"top":"left",o=s?"left":"top",a=s?"bottom":"left",h=s?"top":"right",r=s?"width":"height",d=s?"height":"width",l={left:"right",right:"left",top:"bottom",bottom:"top"};this.element.removeClass("fr-thumbnails-measured");var u=i.is(":visible");if(u||i.show(),this.disabled()&&this.enable(),!this.element.is(":visible")||this._thumbnails.length<2||this._disabledGroup)return this.disable(),$.extend(this._vars.thumbnails,{width:0,height:0}),u||i.hide(),void this.element.addClass("fr-thumbnails-measured");this.enable();var c=this._previous,f=this._next,p=Bounds.viewport(),v=this.element["inner"+_.String.capitalize(d)](),m=parseInt(this._thumbs.css("padding-"+n))||0,g=Math.max(v-2*m,0),b=parseInt(this._thumbs.css("padding-"+o))||0,w=(parseInt(this.element.css("margin-"+a))||0)+(parseInt(this.element.css("margin-"+h))||0);$.extend(e.thumbnails,{height:v+w,width:p[s?"width":"height"],paddingTop:m}),$.extend(e.thumbnail,{height:g,width:g}),$.extend(e.thumbnailFrame,{width:g+2*b,height:v}),e.sides={previous:{width:f["inner"+_.String.capitalize(r)](),marginLeft:parseInt(c.css("margin-"+o))||0,marginRight:parseInt(c.css("margin-"+l[o]))||0},next:{width:f["inner"+_.String.capitalize(r)](),marginLeft:parseInt(f.css("margin-"+o))||0,marginRight:parseInt(f.css("margin-"+l[o]))||0}};var y=p[r],k=e.thumbnailFrame.width,x=this._thumbnails.length;e.thumbnails.width=y,e.sides.enabled=x*k/y>1;var C=y,S=e.sides,W=S.previous,M=S.next,T=W.marginLeft+W.width+W.marginRight+M.marginLeft+M.width+M.marginRight;e.sides.enabled&&(C-=T);var I=x*k;I<(C=Math.floor(C/k)*k)&&(C=I);var P=C+(e.sides.enabled?T:0);e.ipp=Math.round(C/k),this._mode="page",e.ipp<=1&&(C=y,P=y,e.sides.enabled=!1,this._mode="center"),e.pages=Math.ceil(x*k/C),e.wrapper={width:P+1,height:v},e.thumbs={width:C,height:v},e.slide={width:x*k+1,height:v},u||i.hide(),this.element.addClass("fr-thumbnails-measured")},hide:function(){this.disable(),this.thumbnails.hide(),this._visible=!1},getDimensions:function(){var i="horizontal"===this._orientation;return{width:i?this._vars.thumbnails.width:this._vars.thumbnails.height,height:i?this._vars.thumbnails.height:this._vars.thumbnails.width}},fitToViewport:function(){if(this.updateVars(),!this.disabled()){var i=$.extend({},this._vars),e="horizontal"===this._orientation;$.each(this._thumbnails,(function(i,e){e.resize()})),this._previous[i.sides.enabled?"show":"hide"](),this._next[i.sides.enabled?"show":"hide"](),this._thumbs.css({width:i.thumbs[e?"width":"height"],height:i.thumbs[e?"height":"width"]}),this._slide.css({width:i.slide[e?"width":"height"],height:i.slide[e?"height":"width"]});var t={width:i.wrapper[e?"width":"height"],height:i.wrapper[e?"height":"width"]};t["margin-"+(e?"left":"top")]=Math.round(-.5*i.wrapper.width)+"px",t["margin-"+(e?"top":"left")]=0,this.wrapper.css(t),this._position&&this.moveTo(this._position,!0)}},moveToPage:function(i){if(!(i<1||i>this._vars.pages||i===this._page)){var e=this._vars.ipp*(i-1)+1;this.moveTo(e)}},previousPage:function(){this.moveToPage(this._page-1)},nextPage:function(){this.moveToPage(this._page+1)},show:function(i){var e=this._position<0;i<1&&(i=1);var t=this._thumbnails.length;i>t&&(i=t),this._position=i,this.setActive(i),"page"===this._mode&&this._page===Math.ceil(i/this._vars.ipp)||this.moveTo(i,e)},moveTo:function(i,e){if(this.updateVars(),!this.disabled()){var t,s="horizontal"===this._orientation,n,o=.5*Bounds.viewport()[s?"width":"height"],a=this._vars.thumbnailFrame.width,h;if("page"===this._mode){h=Math.ceil(i/this._vars.ipp),this._page=h,t=a*(this._page-1)*this._vars.ipp*-1;var r="fr-thumbnails-side-button-disabled";this._previous_button[(h<2?"add":"remove")+"Class"](r),this._next_button[(h>=this._vars.pages?"add":"remove")+"Class"](r)}else t=o+-1*(a*(i-1)+.5*a);h=Pages.page;var d={},l={};d[s?"top":"left"]=0,l[s?"left":"top"]=t+"px",this._slide.stop(!0).css(d).animate(l,e?0:h&&h.view.options.effects.thumbnails.slide||0,function(){this.loadCurrentPage()}.bind(this))}},loadCurrentPage:function(){var i,e;if(this._position&&this._vars.thumbnailFrame.width&&!(this._thumbnails.length<1)){if("page"===this._mode){if(this._page<1)return;i=(this._page-1)*this._vars.ipp+1,e=Math.min(i-1+this._vars.ipp,this._thumbnails.length)}else{var t=Math.ceil(this._vars.thumbnails.width/this._vars.thumbnailFrame.width);i=Math.max(Math.floor(Math.max(this._position-.5*t,0)),1),e=Math.ceil(Math.min(this._position+.5*t)),this._thumbnails.length<e&&(e=this._thumbnails.length)}for(var s=i;s<=e;s++)this._thumbnails[s-1].load()}},setActive:function(i){this._slide.find(".fr-thumbnail-active").removeClass("fr-thumbnail-active");var e=i&&this._thumbnails[i-1];e&&e.activate()},refresh:function(){this._position&&this.setPosition(this._position)}};$.extend(Thumbnail.prototype,{initialize:function(i,e){this.view=i,this._position=e,this.preBuild()},preBuild:function(){this.thumbnail=$("<div>").addClass("fr-thumbnail").data("fr-position",this._position)},build:function(){if(!this.thumbnailFrame){var i=this.view.options;Thumbnails._slide.append(this.thumbnailFrame=$("<div>").addClass("fr-thumbnail-frame").append(this.thumbnail.append(this.thumbnailWrapper=$("<div>").addClass("fr-thumbnail-wrapper")))),"image"===this.view.type&&this.thumbnail.addClass("fr-load-thumbnail").data("thumbnail",{view:this.view,src:i.thumbnail||this.view.url});var e=i.thumbnail&&i.thumbnail.icon,t;e&&this.thumbnail.append($("<div>").addClass("fr-thumbnail-icon fr-thumbnail-icon-"+e)),this.thumbnail.append(t=$("<div>").addClass("fr-thumbnail-overlay").append($("<div>").addClass("fr-thumbnail-overlay-background")).append(this.loading=$("<div>").addClass("fr-thumbnail-loading").append($("<div>").addClass("fr-thumbnail-loading-background")).append(this.spinner=$("<div>").addClass("fr-thumbnail-spinner").hide().append($("<div>").addClass("fr-thumbnail-spinner-spin")))).append($("<div>").addClass("fr-thumbnail-overlay-border"))),this.thumbnail.append($("<div>").addClass("fr-thumbnail-state")),this.resize()}},remove:function(){this.thumbnailFrame&&(this.thumbnailFrame.remove(),this.thumbnailFrame=null,this.image=null),this.ready&&(this.ready.abort(),this.ready=null),this.vimeoThumbnail&&(this.vimeoThumbnail.abort(),this.vimeoThumbnail=null),this._loading=!1,this._removed=!0,this.view=null,this._clearDelay()},load:function(){if(!(this._loaded||this._loading||this._removed)){this.thumbnailWrapper||this.build(),this._loading=!0;var i=this.view.options.thumbnail,e=i&&"boolean"==typeof i?this.view.url:i||this.view.url;if(this._url=e,e)if("vimeo"===this.view.type)if(e===i)this._url=e,this._load(this._url);else switch(this.view.type){case"vimeo":this.vimeoThumbnail=new VimeoThumbnail(this.view.url,function(i){this._url=i,this._load(i)}.bind(this),function(){this._error()}.bind(this));break}else this._load(this._url)}},activate:function(){this.thumbnail.addClass("fr-thumbnail-active")},_load:function(i){this.thumbnailWrapper.prepend(this.image=$("<img>").addClass("fr-thumbnail-image").attr({src:i}).css({opacity:1e-4})),this.fadeInSpinner(),this.ready=new ImageReady(this.image[0],function(i){var e=i.img;this.thumbnailFrame&&this._loading&&(this._loaded=!0,this._loading=!1,this._dimensions={width:e.naturalWidth,height:e.naturalHeight},this.resize(),this.show())}.bind(this),function(){this._error()}.bind(this),{method:this.view.options.loadedMethod})},_error:function(){this._loaded=!0,this._loading=!1,this.thumbnail.addClass("fr-thumbnail-error"),this.image&&this.image.hide(),this.thumbnailWrapper.append($("<div>").addClass("fr-thumbnail-image")),this.show()},fadeInSpinner:function(){if(Spinner.supported&&this.view.options.spinner){this._clearDelay();var i=this.view.options.effects.thumbnail;this._delay=setTimeout(function(){this.spinner.stop(!0).fadeTo(i.show||0,1)}.bind(this),this.view.options.spinnerDelay||0)}},show:function(){this._clearDelay();var i=this.view.options.effects.thumbnail;this.loading.stop(!0).delay(i.delay).fadeTo(i.show,0)},_clearDelay:function(){this._delay&&(clearTimeout(this._delay),this._delay=null)},resize:function(){if(this.thumbnailFrame){var i="horizontal"===Thumbnails._orientation;if(this.thumbnailFrame.css({width:Thumbnails._vars.thumbnailFrame[i?"width":"height"],height:Thumbnails._vars.thumbnailFrame[i?"height":"width"]}),this.thumbnailFrame.css({top:i?0:Thumbnails._vars.thumbnailFrame.width*(this._position-1),left:i?Thumbnails._vars.thumbnailFrame.width*(this._position-1):0}),this.thumbnailWrapper){var e=Thumbnails._vars.thumbnail;if(this.thumbnail.css({width:e.width,height:e.height,"margin-top":Math.round(-.5*e.height),"margin-left":Math.round(-.5*e.width),"margin-bottom":0,"margin-right":0}),this._dimensions){var t={width:e.width,height:e.height},s=Math.max(t.width,t.height),n,o=$.extend({},this._dimensions);if(o.width>t.width&&o.height>t.height){var a=1,h=1;(n=Fit.within(t,o)).width<t.width&&(a=t.width/n.width),n.height<t.height&&(h=t.height/n.height);var r=Math.max(a,h);r>1&&(n.width*=r,n.height*=r),$.each("width height".split(" "),(function(i,e){n[e]=Math.round(n[e])}))}else n=Fit.within(this._dimensions,o.width<t.width||o.height<t.height?{width:s,height:s}:t);var d=Math.round(.5*t.width-.5*n.width),l=Math.round(.5*t.height-.5*n.height);this.image.removeAttr("style").css($.extend({},n,{top:l,left:d}))}}}}});var UI={_modes:["fullclick","outside","inside"],_ui:!1,_validClickTargetSelector:[".fr-content-element",".fr-content",".fr-content > .fr-stroke",".fr-content > .fr-stroke .fr-stroke-color"].join(", "),initialize:function(i){$.each(this._modes,function(i,e){this[e].initialize()}.bind(this)),Window.element.addClass("fr-ui-inside-hidden fr-ui-fullclick-hidden")},set:function(i){this._ui&&(Window.element.removeClass("fr-window-ui-"+this._ui),Overlay.element.removeClass("fr-overlay-ui-"+this._ui)),Window.element.addClass("fr-window-ui-"+i),Overlay.element.addClass("fr-overlay-ui-"+i),this._enabled&&this._ui&&this._ui!==i&&(this[this._ui].disable(),this[i].enable(),UI[i].show()),this._ui=i},_onWindowResize:function(){Support.mobileTouch&&this.show()},enable:function(){$.each(this._modes,function(i,e){UI[e][e===this._ui?"enable":"disable"]()}.bind(this)),this._enabled=!0},disable:function(){$.each(this._modes,function(i,e){UI[e].disable()}.bind(this)),this._enabled=!1},adjustPrevNext:function(i,e){UI[this._ui].adjustPrevNext(i,e)},show:function(i,e){UI[this._ui].show(i,e)},hide:function(i,e){UI[this._ui].hide(i,e)},reset:function(){$.each(this._modes,function(i,e){UI[e].reset()}.bind(this))},update:function(){var i=Pages.page;i&&this.set(i._ui)}};return UI.fullclick={initialize:function(){this.build(),this._scrollLeft=-1},build:function(){Window._box.append(this._previous=$("<div>").addClass("fr-side fr-side-previous fr-side-previous-fullclick fr-toggle-ui").append($("<div>").addClass("fr-side-button").append($("<div>").addClass("fr-side-button-background")).append($("<div>").addClass("fr-side-button-icon")))).append(this._next=$("<div>").addClass("fr-side fr-side-next fr-side-next-fullclick fr-toggle-ui").append($("<div>").addClass("fr-side-button").append($("<div>").addClass("fr-side-button-background")).append($("<div>").addClass("fr-side-button-icon")))).append(this._close=$("<div>").addClass("fr-close fr-close-fullclick").append($("<div>").addClass("fr-close-background")).append($("<div>").addClass("fr-close-icon"))),Browser.IE&&Browser.IE<=7&&this._previous.add(this._next).add(this._close).hide(),this._close.on("click",function(i){i.preventDefault(),Window.hide()}.bind(this)),this._previous.on("click",function(i){Window.previous(),this._onMouseMove(i)}.bind(this)),this._next.on("click",function(i){Window.next(),this._onMouseMove(i)}.bind(this))},enable:function(){this.bind()},disable:function(){this.unbind()},reset:function(){Window.timers.clear("ui-fullclick"),this._x=-1,this._y=-1,this._scrollLeft=-1,this.resetPrevNext(),this._onMouseLeave()},resetPrevNext:function(){var i;this._previous.add(this._next).stop(!0).removeAttr("style")},bind:function(){this._onMouseUpHandler||(this.unbind(),Window._pages.on("mouseup",".fr-container",this._onMouseUpHandler=this._onMouseUp.bind(this)),Support.mobileTouch||(Window.element.on("mouseenter",this._showHandler=this.show.bind(this)).on("mouseleave",this._hideHandler=this.hide.bind(this)),Window.element.on("mousemove",this._mousemoveHandler=function(i){var e=i.pageX,t=i.pageY;this._hoveringSideButton||t===this._y&&e===this._x||(this._x=e,this._y=t,this.show(),this.startTimer())}.bind(this)),Window._pages.on("mousemove",".fr-container",this._onMouseMoveHandler=this._onMouseMove.bind(this)).on("mouseleave",".fr-container",this._onMouseLeaveHandler=this._onMouseLeave.bind(this)).on("mouseenter",".fr-container",this._onMouseEnterHandler=this._onMouseEnter.bind(this)),Window.element.on("mouseenter",".fr-side",this._onSideMouseEnterHandler=this._onSideMouseEnter.bind(this)).on("mouseleave",".fr-side",this._onSideMouseLeaveHandler=this._onSideMouseLeave.bind(this)),$(window).on("scroll",this._onScrollHandler=this._onScroll.bind(this))))},unbind:function(){this._onMouseUpHandler&&(Window._pages.off("mouseup",".fr-container",this._onMouseUpHandler),this._onMouseUpHandler=null,this._showHandler&&(Window.element.off("mouseenter",this._showHandler).off("mouseleave",this._hideHandler).off("mousemove",this._mousemoveHandler),Window._pages.off("mousemove",".fr-container",this._onMouseMoveHandler).off("mouseleave",".fr-container",this._onMouseLeaveHandler).off("mouseenter",".fr-container",this._onMouseEnterHandler),Window.element.off("mouseenter",".fr-side",this._onSideMouseEnterHandler).off("mouseleave",".fr-side",this._onSideMouseLeaveHandler),$(window).off("scroll",this._onScrollHandler),this._showHandler=null))},adjustPrevNext:function(i,e){var t=Pages.page;if(t){var s=Window.element.is(":visible");s||Window.element.show();var n=this._previous.attr("style");this._previous.removeAttr("style");var o=parseInt(this._previous.css("margin-top"));this._previous.attr({style:n}),s||Window.element.hide();var a=t._infoHeight||0,h=this._previous.add(this._next),r={"margin-top":o-.5*a},d="number"==typeof e?e:Pages.page&&Pages.page.view.options.effects.content.show||0;this.opening&&(d=0),h.stop(!0).animate(r,d,i),this._previous[(Window.mayPrevious()?"remove":"add")+"Class"]("fr-side-disabled"),this._next[(Window.mayNext()?"remove":"add")+"Class"]("fr-side-disabled"),h[(t._total<2?"add":"remove")+"Class"]("fr-side-hidden"),i&&i()}else i&&i()},_onScroll:function(){this._scrollLeft=$(window).scrollLeft()},_onMouseMove:function(i){if(!Support.mobileTouch){var e=this._getEventSide(i),t=_.String.capitalize(e),s=!!e&&Window["may"+t]();if(e!==this._hoveringSide||s!==this._mayClickHoveringSide)switch(this._hoveringSide=e,this._mayClickHoveringSide=s,Window._box[(s?"add":"remove")+"Class"]("fr-hovering-clickable"),e){case"previous":Window._box.addClass("fr-hovering-previous").removeClass("fr-hovering-next");break;case"next":Window._box.addClass("fr-hovering-next").removeClass("fr-hovering-previous");break}}},_onMouseLeave:function(i){Window._box.removeClass("fr-hovering-clickable fr-hovering-previous fr-hovering-next"),this._hoveringSide=!1},_onMouseUp:function(i){if(!(i.which>1))if(1!==Pages.pages.length){var e=this._getEventSide(i);Window[e](),this._onMouseMove(i)}else Window.hide()},_onMouseEnter:function(i){this._onMouseMove(i)},_getEventSide:function(i){var e=this._scrollLeft>-1?this._scrollLeft:this._scrollLeft=$(window).scrollLeft(),t,s;return i.pageX-Window._boxPosition.left-this._scrollLeft<.5*Window._boxDimensions.width?"previous":"next"},_onSideMouseEnter:function(i){this._hoveringSideButton=!0,this._hoveringSide=this._getEventSide(i),this._mayClickHoveringSide=Window["may"+_.String.capitalize(this._hoveringSide)](),this.clearTimer()},_onSideMouseLeave:function(i){this._hoveringSideButton=!1,this._hoveringSide=!1,this._mayClickHoveringSide=!1,this.startTimer()},show:function(i){if(this._visible)return this.startTimer(),void("function"==typeof i&&i());this._visible=!0,this.startTimer(),Window.element.addClass("fr-visible-fullclick-ui").removeClass("fr-hidden-fullclick-ui"),Browser.IE&&Browser.IE<=7&&this._previous.add(this._next).add(this._close).show(),"function"==typeof i&&i()},hide:function(i){var e=Pages.page&&Pages.page.view.type;this._visible&&(!e||"youtube"!==e&&"vimeo"!==e)?(this._visible=!1,Window.element.removeClass("fr-visible-fullclick-ui").addClass("fr-hidden-fullclick-ui"),"function"===$.type(i)&&i()):"function"==typeof i&&i()},clearTimer:function(){Support.mobileTouch||Window.timers.clear("ui-fullclick")},startTimer:function(){Support.mobileTouch||(this.clearTimer(),Window.timers.set("ui-fullclick",function(){this.hide()}.bind(this),Window.view?Window.view.options.uiDelay:0))}},UI.inside={initialize:function(){},enable:function(){this.bind()},disable:function(){this.unbind()},bind:function(){this._onMouseUpHandler||(this.unbind(),Window._pages.on("mouseup",".fr-content",this._onMouseUpHandler=this._onMouseUp.bind(this)),Window._pages.on("click",".fr-content .fr-close",function(i){i.preventDefault(),Window.hide()}.bind(this)).on("click",".fr-content .fr-side-previous",function(i){Window.previous(),this._onMouseMove(i)}.bind(this)).on("click",".fr-content .fr-side-next",function(i){Window.next(),this._onMouseMove(i)}.bind(this)),Window.element.on("click",".fr-container, .fr-thumbnails, .fr-thumbnails-wrapper",this._delegateOverlayCloseHandler=this._delegateOverlayClose.bind(this)),Support.mobileTouch||(Window.element.on("mouseenter",".fr-content",this._showHandler=this.show.bind(this)).on("mouseleave",".fr-content",this._hideHandler=this.hide.bind(this)),
Window.element.on("mousemove",".fr-content",this._mousemoveHandler=function(i){var e=i.pageX,t=i.pageY;this._hoveringSideButton||t===this._y&&e===this._x||(this._x=e,this._y=t,this.show(),this.startTimer())}.bind(this)),Window._pages.on("mousemove",".fr-info, .fr-close",function(i){i.stopPropagation(),this._onMouseLeave(i)}.bind(this)),Window._pages.on("mousemove",".fr-info",function(){this.clearTimer()}.bind(this)),Window._pages.on("mousemove",".fr-content",this._onMouseMoveHandler=this._onMouseMove.bind(this)).on("mouseleave",".fr-content",this._onMouseLeaveHandler=this._onMouseLeave.bind(this)).on("mouseenter",".fr-content",this._onMouseEnterHandler=this._onMouseEnter.bind(this)),Window.element.on("mouseenter",".fr-side",this._onSideMouseEnterHandler=this._onSideMouseEnter.bind(this)).on("mouseleave",".fr-side",this._onSideMouseLeaveHandler=this._onSideMouseLeave.bind(this)),$(window).on("scroll",this._onScrollHandler=this._onScroll.bind(this))))},unbind:function(){this._onMouseUpHandler&&(Window._pages.off("mouseup",".fr-content",this._onMouseUpHandler),this._onMouseUpHandler=null,Window._pages.off("click",".fr-content .fr-close").off("click",".fr-content .fr-side-previous").off("click",".fr-content .fr-side-next"),Window.element.off("click",".fr-container, .fr-thumbnails, .fr-thumbnails-wrapper",this._delegateOverlayCloseHandler),this._showHandler&&(Window.element.off("mouseenter",".fr-content",this._showHandler).off("mouseleave",".fr-content",this._hideHandler).off("mousemove",".fr-content",this._mousemoveHandler),Window._pages.off("mousemove",".fr-info, .fr-close"),Window._pages.off("mousemove",".fr-info"),Window._pages.off("mousemove",".fr-content-element",this._onMouseMoveHandler).off("mouseleave",".fr-content",this._onMouseLeaveHandler).off("mouseenter",".fr-content",this._onMouseEnterHandler),Window.element.off("mouseenter",".fr-side",this._onSideMouseEnterHandler).off("mouseleave",".fr-side",this._onSideMouseLeaveHandler),$(window).off("scroll",this._onScrollHandler),this._showHandler=null))},reset:function(){Window.timers.clear("ui-fullclick"),this._x=-1,this._y=-1,this._scrollLeft=-1,this._hoveringSide=!1,this._onMouseLeave()},adjustPrevNext:function(i){i&&i()},_onScroll:function(){this._scrollLeft=$(window).scrollLeft()},_delegateOverlayClose:function(i){var e=Pages.page;e&&e.view.options.overlay&&!e.view.options.overlay.close||$(i.target).is(".fr-container, .fr-thumbnails, .fr-thumbnails-wrapper")&&(i.preventDefault(),i.stopPropagation(),Window.hide())},_onMouseMove:function(i){if(!Support.mobileTouch){var e=this._getEventSide(i),t=_.String.capitalize(e),s=!!e&&Window["may"+t]();if((1===Pages.pages.length||Pages.page&&"close"===Pages.page.view.options.onClick)&&(e=!1),e!==this._hoveringSide||s!==this._mayClickHoveringSide)if(this._hoveringSide=e,this._mayClickHoveringSide=s,e)switch(Window._box[(s?"add":"remove")+"Class"]("fr-hovering-clickable"),e){case"previous":Window._box.addClass("fr-hovering-previous").removeClass("fr-hovering-next");break;case"next":Window._box.addClass("fr-hovering-next").removeClass("fr-hovering-previous");break}else Window._box.removeClass("fr-hovering-clickable fr-hovering-previous fr-hovering-next")}},_onMouseLeave:function(i){Window._box.removeClass("fr-hovering-clickable fr-hovering-previous fr-hovering-next"),this._hoveringSide=!1},_onMouseUp:function(i){if(!(i.which>1)&&$(i.target).is(UI._validClickTargetSelector))if(1===Pages.pages.length||Pages.page&&"close"===Pages.page.view.options.onClick)Window.hide();else{var e=this._getEventSide(i);Window[e](),this._onMouseMove(i)}},_onMouseEnter:function(i){this._onMouseMove(i)},_getEventSide:function(i){var e=this._scrollLeft>-1?this._scrollLeft:this._scrollLeft=$(window).scrollLeft(),t,s;return i.pageX-Window._boxPosition.left-this._scrollLeft<.5*Window._boxDimensions.width?"previous":"next"},_onSideMouseEnter:function(i){this._hoveringSideButton=!0,this._hoveringSide=this._getEventSide(i),this._mayClickHoveringSide=Window["may"+_.String.capitalize(this._hoveringSide)](),this.clearTimer()},_onSideMouseLeave:function(i){this._hoveringSideButton=!1,this._hoveringSide=!1,this._mayClickHoveringSide=!1,this.startTimer()},show:function(i){if(this._visible)return this.startTimer(),void("function"==typeof i&&i());this._visible=!0,this.startTimer(),Window.element.addClass("fr-visible-inside-ui").removeClass("fr-hidden-inside-ui"),"function"==typeof i&&i()},hide:function(i){this._visible?(this._visible=!1,Window.element.removeClass("fr-visible-inside-ui").addClass("fr-hidden-inside-ui"),"function"==typeof i&&i()):"function"==typeof i&&i()},clearTimer:function(){Support.mobileTouch||Window.timers.clear("ui-inside")},startTimer:function(){Support.mobileTouch||(this.clearTimer(),Window.timers.set("ui-inside",function(){this.hide()}.bind(this),Window.view?Window.view.options.uiDelay:0))}},UI.outside={initialize:function(){this.build(),this._scrollLeft=-1},build:function(){Window._box.append(this._previous=$("<div>").addClass("fr-side fr-side-previous fr-side-previous-outside").append($("<div>").addClass("fr-side-button").append($("<div>").addClass("fr-side-button-background")).append($("<div>").addClass("fr-side-button-icon")))).append(this._next=$("<div>").addClass("fr-side fr-side-next fr-side-next-outside").append($("<div>").addClass("fr-side-button").append($("<div>").addClass("fr-side-button-background")).append($("<div>").addClass("fr-side-button-icon")))).append(this._close=$("<div>").addClass("fr-close fr-close-outside").append($("<div>").addClass("fr-close-background")).append($("<div>").addClass("fr-close-icon"))),Browser.IE&&Browser.IE<=7&&this._previous.add(this._next).add(this._close).hide(),this._close.on("click",function(i){i.preventDefault(),Window.hide()}.bind(this)),this._previous.on("click",function(i){Window.previous(),this._onMouseMove(i)}.bind(this)),this._next.on("click",function(i){Window.next(),this._onMouseMove(i)}.bind(this))},enable:function(){this.bind()},disable:function(){this.unbind()},reset:function(){Window.timers.clear("ui-outside"),this._x=-1,this._y=-1,this._scrollLeft=-1,this._onMouseLeave()},bind:function(){this._onMouseUpHandler||(this.unbind(),Window.element.on("mouseup",".fr-content",this._onMouseUpHandler=this._onMouseUp.bind(this)),Window.element.on("click",".fr-container, .fr-thumbnails, .fr-thumbnails-wrapper",this._delegateOverlayCloseHandler=this._delegateOverlayClose.bind(this)),Support.mobileTouch||(Window._pages.on("mousemove",".fr-content",this._onMouseMoveHandler=this._onMouseMove.bind(this)).on("mouseleave",".fr-content",this._onMouseLeaveHandler=this._onMouseLeave.bind(this)).on("mouseenter",".fr-content",this._onMouseEnterHandler=this._onMouseEnter.bind(this)),Window.element.on("mouseenter",".fr-side",this._onSideMouseEnterHandler=this._onSideMouseEnter.bind(this)).on("mouseleave",".fr-side",this._onSideMouseLeaveHandler=this._onSideMouseLeave.bind(this)),$(window).on("scroll",this._onScrollHandler=this._onScroll.bind(this))))},unbind:function(){this._onMouseUpHandler&&(Window.element.off("mouseup",".fr-content",this._onMouseUpHandler),this._onMouseUpHandler=null,Window.element.off("click",".fr-container, .fr-thumbnails, .fr-thumbnails-wrapper",this._delegateOverlayCloseHandler),this._onMouseMoveHandler&&(Window._pages.off("mousemove",".fr-content",this._onMouseMoveHandler).off("mouseleave",".fr-content",this._onMouseLeaveHandler).off("mouseenter",".fr-content",this._onMouseEnterHandler),Window.element.off("mouseenter",".fr-side",this._onSideMouseEnterHandler).off("mouseleave",".fr-side",this._onSideMouseLeaveHandler),$(window).off("scroll",this._onScrollHandler),this._onMouseMoveHandler=null))},adjustPrevNext:function(i,e){var t=Pages.page;if(t){var s=this._previous.add(this._next);this._previous[(Window.mayPrevious()?"remove":"add")+"Class"]("fr-side-disabled"),this._next[(Window.mayNext()?"remove":"add")+"Class"]("fr-side-disabled"),s[(t._total<2?"add":"remove")+"Class"]("fr-side-hidden"),i&&i()}else i&&i()},_onScroll:function(){this._scrollLeft=$(window).scrollLeft()},_delegateOverlayClose:function(i){var e=Pages.page;e&&e.view.options.overlay&&!e.view.options.overlay.close||$(i.target).is(".fr-container, .fr-thumbnails, .fr-thumbnails-wrapper")&&(i.preventDefault(),i.stopPropagation(),Window.hide())},_onMouseMove:function(i){if(!Support.mobileTouch){var e=this._getEventSide(i),t=_.String.capitalize(e),s=!!e&&Window["may"+t]();if((1===Pages.pages.length||Pages.page&&"close"===Pages.page.view.options.onClick)&&(e=!1),e!==this._hoveringSide||s!==this._mayClickHoveringSide)if(this._hoveringSide=e,this._mayClickHoveringSide=s,e)switch(Window._box[(s?"add":"remove")+"Class"]("fr-hovering-clickable"),e){case"previous":Window._box.addClass("fr-hovering-previous").removeClass("fr-hovering-next");break;case"next":Window._box.addClass("fr-hovering-next").removeClass("fr-hovering-previous");break}else Window._box.removeClass("fr-hovering-clickable fr-hovering-previous fr-hovering-next")}},_onMouseLeave:function(i){Window._box.removeClass("fr-hovering-clickable fr-hovering-previous fr-hovering-next"),this._hoveringSide=!1},_onMouseUp:function(i){if(!(i.which>1)&&$(i.target).is(UI._validClickTargetSelector))if(1===Pages.pages.length||Pages.page&&"close"===Pages.page.view.options.onClick)Window.hide();else{var e=this._getEventSide(i);Window[e](),this._onMouseMove(i)}},_onMouseEnter:function(i){this._onMouseMove(i)},_getEventSide:function(i){var e=this._scrollLeft>-1?this._scrollLeft:this._scrollLeft=$(window).scrollLeft(),t,s;return i.pageX-Window._boxPosition.left-this._scrollLeft<.5*Window._boxDimensions.width?"previous":"next"},show:function(){Browser.IE&&Browser.IE<=7&&this._previous.add(this._next).add(this._close).show()},hide:function(){},_onSideMouseEnter:function(i){this._hoveringSideButton=!0,this._hoveringSide=this._getEventSide(i),this._mayClickHoveringSide=Window["may"+_.String.capitalize(this._hoveringSide)]()},_onSideMouseLeave:function(i){this._hoveringSideButton=!1,this._hoveringSide=!1,this._mayClickHoveringSide=!1},clearTimer:function(){}},$((function(){_Fresco.initialize()})),Fresco}));
!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],(function(n){return t(e,n)})):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(e,require("jquery")):e.lity=t(e,e.jQuery||e.Zepto)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";function n(e){var t=E();return O&&e.length?(e.one(O,t.resolve),setTimeout(t.resolve,500)):t.resolve(),t.promise()}function i(e,n,i){if(1===arguments.length)return t.extend({},e);if("string"==typeof n){if(void 0===i)return void 0===e[n]?null:e[n];e[n]=i}else t.extend(e,n);return this}function r(e){var t=e.indexOf("?");t>-1&&(e=e.substr(t+1));for(var n=decodeURI(e.split("#")[0]).split("&"),i={},r,o=0,a=n.length;o<a;o++)n[o]&&(i[(r=n[o].split("="))[0]]=r[1]);return i}function o(e,n){if(!n)return e;if("string"===t.type(n)&&(n=r(n)),e.indexOf("?")>-1){var i=e.split("?");e=i.shift(),n=t.extend({},r(i[0]),n)}return e+"?"+t.param(n)}function a(e,t){var n=e.indexOf("#");return-1===n?t:(n>0&&(e=e.substr(n)),t+e)}function l(e,t,n,i){return t&&t.element().addClass("lity-iframe"),n&&(e=o(e,n)),i&&(e=a(i,e)),'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen allow="autoplay; fullscreen" src="'+e+'"/></div>'}function s(e){return t('<span class="lity-error"></span>').append(e)}function d(e,n){var i=n.opener()&&n.opener().data("lity-desc")||"Image with no description",r=t('<img src="'+e+'" alt="'+i+'"/>'),o=E(),a=function(){o.reject(s("Failed loading image"))};return r.on("load",(function(){if(0===this.naturalWidth)return a();o.resolve(r)})).on("error",a),o.promise()}function c(e,n){var i,r,o;try{i=t(e)}catch(e){return!1}return!!i.length&&(r=t('<i style="display:none !important"></i>'),o=i.hasClass("lity-hide"),n.element().one("lity:remove",(function(){r.before(i).remove(),o&&!i.closest(".lity-content").length&&i.addClass("lity-hide")})),i.removeClass("lity-hide").after(r))}function u(e,t){return l(e,t)}function f(){return w.documentElement.clientHeight?w.documentElement.clientHeight:Math.round(C.height())}function y(e){var t=v();t&&(27===e.keyCode&&t.options("esc")&&t.close(),9===e.keyCode&&p(e,t))}function p(e,t){var n=t.element().find(D),i=n.index(w.activeElement);e.shiftKey&&i<=0?(n.get(n.length-1).focus(),e.preventDefault()):e.shiftKey||i!==n.length-1||(n.get(0).focus(),e.preventDefault())}function h(){t.each(k,(function(e,t){t.resize()}))}function m(e){1===k.unshift(e)&&(j.addClass("lity-active"),C.on({resize:h,keydown:y}))}function v(){return 0===k.length?null:k[0]}function g(e,n,i,r){var o="inline",a,l=t.extend({},i);return r&&l[r]?(a=l[r](e,n),o=r):(console.log(l),t.each(["inline","iframe"],(function(e,t){delete l[t],l[t]=i[t]})),t.each(l,(function(t,i){return!i||(!(!i.test||i.test(e,n))||(!1!==(a=i(e,n))?(o=t,!1):void 0))}))),{handler:o,content:a||""}}function x(e,r,o,a){function l(e){p=t(e).css("max-height",f()+"px"),y.find(".lity-loader").each((function(){var e=t(this);n(e).always((function(){e.remove()}))})),y.removeClass("lity-loading").find(".lity-content").empty().append(p),c=!0,p.trigger("lity:ready",[s])}var s=this,d,c=!1,u=!1,y,p;r=t.extend({},T,r),y=t(r.template),s.element=function(){return y},s.opener=function(){return o},s.content=function(){return p},s.options=t.proxy(i,s,r),s.handlers=t.proxy(i,s,r.handlers),s.resize=function(){c&&!u&&p.css("max-height",f()+"px").trigger("lity:resize",[s])},s.close=function(){if(c&&!u){u=!0;var e=E();if(a&&(w.activeElement===y[0]||t.contains(y[0],w.activeElement)))try{a.focus()}catch(e){}return p.trigger("lity:close",[s]),y.removeClass("lity-opened lity-iframe").addClass("lity-closed"),n(p.add(y)).always((function(){p.trigger("lity:remove",[s]),y=void 0,e.resolve()})),e.promise()}},d=g(e,s,r.handlers,r.handler),y.addClass("lity-loading lity-opened lity-"+d.handler).removeClass("lity-closed").focus().on("click","[data-lity-close]",(function(e){t(e.target).is("[data-lity-close]")&&s.close()})).trigger("lity:open",[s]),m(s),t.when(d.content).always(l)}function b(e,n,i){e.preventDefault?(e.preventDefault(),e=(i=t(this)).data("lity-target")||i.attr("href")||i.attr("src")):i=t(i);var r=new x(e,t.extend({},i.data("lity-options")||i.data("lity"),n),i,w.activeElement);if(!e.preventDefault)return r}var w=e.document,C=t(e),E=t.Deferred,j=t("html"),k=[],D='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not([tabindex^="-"])',T={esc:!0,handler:null,handlers:{image:d,inline:c,iframe:u},template:".lity"},z=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,O=function(){var e=w.createElement("div"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return t[n];return!1}();return d.test=function(e){return z.test(e)},b.version="@VERSION",b.options=t.proxy(i,b,T),b.handlers=t.proxy(i,b,T.handlers),b.current=v,b.iframe=l,t(w).on("click.lity","[data-lity]",b),b}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t){return"string"==typeof t}function p(t){return"function"==typeof t}function q(t){return"number"==typeof t}function r(t){return void 0===t}function s(t){return"object"==typeof t}function t(t){return!1!==t}function u(){return"undefined"!=typeof window}function v(t){return p(t)||o(t)}function M(t){return(h=mt(t,ot))&&he}function N(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function O(t,e){return!e&&console.warn(t)}function P(t,e){return t&&(ot[t]=e)&&h&&(h[t]=e)||ot}function Q(){return 0}function $(t){var e,r,i=t[0];if(s(i)||p(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=pt.length;r--&&!pt[r].targetTest(i););e=pt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Lt(t[r],e)))||t.splice(r,1);return t}function _(t){return t._gsap||$(xt(t))[0]._gsap}function aa(t,e,i){return(i=t[e])&&p(i)?t[e]():r(i)&&t.getAttribute&&t.getAttribute(e)||i}function ba(t,e){return(t=t.split(",")).forEach(e)||t}function ca(t){return Math.round(1e5*t)/1e5||0}function da(t){return Math.round(1e7*t)/1e7||0}function ea(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+i:"-"===r?t-i:"*"===r?t*i:t/i}function fa(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r}function ga(){var t,e,r=ht.length,i=ht.slice(0);for(lt={},t=ht.length=0;t<r;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function ha(t,e,r,i){ht.length&&ga(),t.render(e,r,i),ht.length&&ga()}function ia(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(at).length<2?e:o(t)?t.trim():t}function ja(t){return t}function ka(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}function na(t,e){for(var r in e)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]=s(e[r])?na(t[r]||(t[r]={}),e[r]):e[r]);return t}function oa(t,e){var r,i={};for(r in t)r in e||(i[r]=t[r]);return i}function pa(e){var r=e.parent||I,i=e.keyframes?function _setKeyframeDefaults(i){return function(t,e){for(var r in e)r in t||"duration"===r&&i||"ease"===r||(t[r]=e[r])}}(J(e.keyframes)):ka;if(t(e.inherit))for(;r;)i(e,r.vars.defaults),r=r.parent||r._dp;return e}function ra(t,e,r,i,n){void 0===r&&(r="_first"),void 0===i&&(i="_last");var a,s=t[i];if(n)for(a=e[n];s&&s[n]>a;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t,e}function sa(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,a=e._next;n?n._next=a:t[r]===e&&(t[r]=a),a?a._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function ta(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function ua(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function xa(t){return t._repeat?gt(t._tTime,t=t.duration()+t._rDelay)*t:0}function za(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function Aa(t){return t._end=da(t._start+(t._tDur/Math.abs(t._ts||t._rts||V)||0))}function Ba(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=da(r._time-(0<t._ts?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Aa(t),r._dirty||ua(r,t)),t}function Ca(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=za(t.rawTime(),e),(!e._dur||bt(0,e.totalDuration(),r)-e._tTime>V)&&e.render(r,!0)),ua(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)0<=r.rawTime()&&r.totalTime(r._tTime),r=r._dp;t._zTime=-V}}function Da(t,e,r,i){return e.parent&&ta(e),e._start=da((q(r)?r:r||t!==I?Tt(t,r,e):t._time)+e._delay),e._end=da(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),ra(t,e,"_first","_last",t._sort?"_start":0),vt(e)||(t._recent=e),i||Ca(t,e),t}function Ea(t,e){return(ot.ScrollTrigger||N("scrollTrigger",e))&&ot.ScrollTrigger.create(e,t)}function Fa(t,e,r,i){return Xt(t,e),t._initted?!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&f!==Dt.frame?(ht.push(t),t._lazy=[e,i],1):void 0:1}function Ka(t,e,r,i){var n=t._repeat,a=da(e)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=a/t._dur),t._dur=a,t._tDur=n?n<0?1e10:da(a*(n+1)+t._rDelay*n):a,0<s&&!i?Ba(t,t._tTime=t._tDur*s):t.parent&&Aa(t),r||ua(t.parent,t),t}function La(t){return t instanceof Ut?ua(t):Ka(t,t._dur)}function Oa(e,r,i){var n,a,s=q(r[1]),o=(s?2:1)+(e<2?0:1),u=r[o];if(s&&(u.duration=r[1]),u.parent=i,e){for(n=u,a=i;a&&!("immediateRender"in n);)n=a.vars.defaults||{},a=t(a.vars.inherit)&&a.parent;u.immediateRender=t(n.immediateRender),e<2?u.runBackwards=1:u.startAt=r[o-1]}return new $t(r[0],u,r[1+o])}function Pa(t,e){return t||0===t?e(t):e}function Ra(t,e){return o(t)&&(e=st.exec(t))?e[1]:""}function Ua(t,e){return t&&s(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&s(t[0]))&&!t.nodeType&&t!==i}function Ya(t){return t.sort(function(){return.5-Math.random()})}function Za(t){if(p(t))return t;var c=s(t)?t:{each:t},m=Bt(c.ease),g=c.from||0,v=parseFloat(c.base)||0,y={},e=0<g&&g<1,T=isNaN(g)||e,b=c.axis,w=g,x=g;return o(g)?w=x={center:.5,edges:.5,end:1}[g]||0:!e&&T&&(w=g[0],x=g[1]),function(t,e,r){var i,n,a,s,o,u,h,l,f,d=(r||c).length,_=y[d];if(!_){if(!(f="auto"===c.grid?0:(c.grid||[1,Y])[1])){for(h=-Y;h<(h=r[f++].getBoundingClientRect().left)&&f<d;);f--}for(_=y[d]=[],i=T?Math.min(f,d)*w-.5:g%f,n=f===Y?0:T?d*x/f-.5:g/f|0,l=Y,u=h=0;u<d;u++)a=u%f-i,s=n-(u/f|0),_[u]=o=b?Math.abs("y"===b?s:a):G(a*a+s*s),h<o&&(h=o),o<l&&(l=o);"random"===g&&Ya(_),_.max=h-l,_.min=l,_.v=d=(parseFloat(c.amount)||parseFloat(c.each)*(d<f?d-1:b?"y"===b?d/f:f:Math.max(f,d/f))||0)*("edges"===g?-1:1),_.b=d<0?v-d:v,_.u=Ra(c.amount||c.each)||0,m=m&&d<0?Ft(m):m}return d=(_[t]-_.min)/_.max||0,da(_.b+(m?m(d):d)*_.v)+_.u}}function $a(r){var i=Math.pow(10,((r+"").split(".")[1]||"").length);return function(t){var e=Math.round(parseFloat(t)/r)*r*i;return(e-e%1)/i+(q(t)?0:Ra(t))}}function _a(u,t){var h,l,e=J(u);return!e&&s(u)&&(h=e=u.radius||Y,u.values?(u=xt(u.values),(l=!q(u[0]))&&(h*=h)):u=$a(u.increment)),Pa(t,e?p(u)?function(t){return l=u(t),Math.abs(l-t)<=h?l:t}:function(t){for(var e,r,i=parseFloat(l?t.x:t),n=parseFloat(l?t.y:0),a=Y,s=0,o=u.length;o--;)(e=l?(e=u[o].x-i)*e+(r=u[o].y-n)*r:Math.abs(u[o]-i))<a&&(a=e,s=o);return s=!h||a<=h?u[s]:t,l||s===t||q(t)?s:s+Ra(t)}:$a(u))}function ab(t,e,r,i){return Pa(J(t)?!e:!0===r?!!(r=0):!i,function(){return J(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*i)/i})}function eb(e,r,t){return Pa(t,function(t){return e[~~r(t)]})}function hb(t){for(var e,r,i,n,a=0,s="";~(e=t.indexOf("random(",a));)i=t.indexOf(")",e),n="["===t.charAt(e+7),r=t.substr(e+7,i-e-7).match(n?at:tt),s+=t.substr(a,e-a)+ab(n?r:+r[0],n?0:+r[1],+r[2]||1e-5),a=i+1;return s+t.substr(a,t.length-a)}function kb(t,e,r){var i,n,a,s=t.labels,o=Y;for(i in s)(n=s[i]-e)<0==!!r&&n&&o>(n=Math.abs(n))&&(a=i,o=n);return a}function mb(t){return ta(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&Ot(t,"onInterrupt"),t}function rb(t,e,r){return(6*(t+=t<0?1:1<t?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*Pt+.5|0}function sb(t,e,r){var i,n,a,s,o,u,h,l,f,d,_=t?q(t)?[t>>16,t>>8&Pt,t&Pt]:0:Mt.black;if(!_){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Mt[t])_=Mt[t];else if("#"===t.charAt(0)){if(t.length<6&&(t="#"+(i=t.charAt(1))+i+(n=t.charAt(2))+n+(a=t.charAt(3))+a+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(_=parseInt(t.substr(1,6),16))>>16,_>>8&Pt,_&Pt,parseInt(t.substr(7),16)/255];_=[(t=parseInt(t.substr(1),16))>>16,t>>8&Pt,t&Pt]}else if("hsl"===t.substr(0,3))if(_=d=t.match(tt),e){if(~t.indexOf("="))return _=t.match(et),r&&_.length<4&&(_[3]=1),_}else s=+_[0]%360/360,o=_[1]/100,i=2*(u=_[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),3<_.length&&(_[3]*=1),_[0]=rb(s+1/3,i,n),_[1]=rb(s,i,n),_[2]=rb(s-1/3,i,n);else _=t.match(tt)||Mt.transparent;_=_.map(Number)}return e&&!d&&(i=_[0]/Pt,n=_[1]/Pt,a=_[2]/Pt,u=((h=Math.max(i,n,a))+(l=Math.min(i,n,a)))/2,h===l?s=o=0:(f=h-l,o=.5<u?f/(2-h-l):f/(h+l),s=h===i?(n-a)/f+(n<a?6:0):h===n?(a-i)/f+2:(i-n)/f+4,s*=60),_[0]=~~(s+.5),_[1]=~~(100*o+.5),_[2]=~~(100*u+.5)),r&&_.length<4&&(_[3]=1),_}function tb(t){var r=[],i=[],n=-1;return t.split(Ct).forEach(function(t){var e=t.match(rt)||[];r.push.apply(r,e),i.push(n+=e.length+1)}),r.c=i,r}function ub(t,e,r){var i,n,a,s,o="",u=(t+o).match(Ct),h=e?"hsla(":"rgba(",l=0;if(!u)return t;if(u=u.map(function(t){return(t=sb(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(a=tb(t),(i=r.c).join(o)!==a.c.join(o)))for(s=(n=t.replace(Ct,"1").split(rt)).length-1;l<s;l++)o+=n[l]+(~i.indexOf(l)?u.shift()||h+"0,0,0,0)":(a.length?a:u.length?u:r).shift());if(!n)for(s=(n=t.split(Ct)).length-1;l<s;l++)o+=n[l]+u[l];return o+n[s]}function xb(t){var e,r=t.join(" ");if(Ct.lastIndex=0,Ct.test(r))return e=At.test(r),t[1]=ub(t[1],e),t[0]=ub(t[0],e,tb(t[1])),!0}function Gb(t){var e=(t+"").split("("),r=zt[e[0]];return r&&1<e.length&&r.config?r.config.apply(null,~t.indexOf("{")?[function _parseObjectInString(t){for(var e,r,i,n={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o<u;o++)r=a[o],e=o!==u-1?r.lastIndexOf(","):r.length,i=r.substr(0,e),n[s]=isNaN(i)?i.replace(Et,"").trim():+i,s=r.substr(e+1).trim();return n}(e[1])]:function _valueInParentheses(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),i=t.indexOf("(",e);return t.substring(e,~i&&i<r?t.indexOf(")",r+1):r)}(t).split(",").map(ia)):zt._CE&&Rt.test(t)?zt._CE("",t):r}function Ib(t,e){for(var r,i=t._first;i;)i instanceof Ut?Ib(i,e):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===e||(i.timeline?Ib(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next}function Kb(t,e,r,i){void 0===r&&(r=function easeOut(t){return 1-e(1-t)}),void 0===i&&(i=function easeInOut(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var n,a={easeIn:e,easeOut:r,easeInOut:i};return ba(t,function(t){for(var e in zt[t]=ot[t]=a,zt[n=t.toLowerCase()]=r,a)zt[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=zt[t+"."+e]=a[e]}),a}function Lb(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function Mb(r,t,e){function em(t){return 1===t?1:i*Math.pow(2,-10*t)*Z((t-a)*n)+1}var i=1<=t?t:1,n=(e||(r?.3:.45))/(t<1?t:1),a=n/X*(Math.asin(1/i)||0),s="out"===r?em:"in"===r?function(t){return 1-em(1-t)}:Lb(em);return n=X/n,s.config=function(t,e){return Mb(r,t,e)},s}function Nb(e,r){function mm(t){return t?--t*t*((r+1)*t+r)+1:0}void 0===r&&(r=1.70158);var t="out"===e?mm:"in"===e?function(t){return 1-mm(1-t)}:Lb(mm);return t.config=function(t){return Nb(e,t)},t}var B,I,i,n,a,h,l,f,d,c,m,g,y,T,b,w,x,k,C,A,D,S,z,R,E,F,U={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},L={duration:.5,overwrite:!1,delay:0},Y=1e8,V=1/Y,X=2*Math.PI,j=X/4,K=0,G=Math.sqrt,W=Math.cos,Z=Math.sin,H="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},J=Array.isArray,tt=/(?:-?\.?\d|\.)+/gi,et=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,rt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,it=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,nt=/[+-]=-?[.\d]+/,at=/[^,'"\[\]\s]+/gi,st=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ot={},ut={},ht=[],lt={},ft={},dt={},_t=30,pt=[],ct="",mt=function _merge(t,e){for(var r in e)t[r]=e[r];return t},gt=function _animationCycle(t,e){var r=Math.floor(t/=e);return t&&r===t?r-1:r},vt=function _isFromOrFromStart(t){var e=t.data;return"isFromStart"===e||"isStart"===e},yt={_start:0,endTime:Q,totalDuration:Q},Tt=function _parsePosition(t,e,r){var i,n,a,s=t.labels,u=t._recent||yt,h=t.duration()>=Y?u.endTime(!1):t._dur;return o(e)&&(isNaN(e)||e in s)?(n=e.charAt(0),a="%"===e.substr(-1),i=e.indexOf("="),"<"===n||">"===n?(0<=i&&(e=e.replace(/=/,"")),("<"===n?u._start:u.endTime(0<=u._repeat))+(parseFloat(e.substr(1))||0)*(a?(i<0?u:r).totalDuration()/100:1)):i<0?(e in s||(s[e]=h),s[e]):(n=parseFloat(e.charAt(i-1)+e.substr(i+1)),a&&r&&(n=n/100*(J(r)?r[0]:r).totalDuration()),1<i?_parsePosition(t,e.substr(0,i-1),r)+n:h+n)):null==e?h:+e},bt=function _clamp(t,e,r){return r<t?t:e<r?e:r},wt=[].slice,xt=function toArray(t,e,r){return!o(t)||r||!n&&St()?J(t)?function _flatten(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){return o(t)&&!e||Ua(t,1)?r.push.apply(r,xt(t)):r.push(t)})||r}(t,r):Ua(t)?wt.call(t,0):t?[t]:[]:wt.call((e||a).querySelectorAll(t),0)},kt=function mapRange(e,t,r,i,n){var a=t-e,s=i-r;return Pa(n,function(t){return r+((t-e)/a*s||0)})},Ot=function _callback(t,e,r){var i,n,a=t.vars,s=a[e];if(s)return i=a[e+"Params"],n=a.callbackScope||t,r&&ht.length&&ga(),i?s.apply(n,i):s.call(n)},Pt=255,Mt={aqua:[0,Pt,Pt],lime:[0,Pt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Pt],navy:[0,0,128],white:[Pt,Pt,Pt],olive:[128,128,0],yellow:[Pt,Pt,0],orange:[Pt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Pt,0,0],pink:[Pt,192,203],cyan:[0,Pt,Pt],transparent:[Pt,Pt,Pt,0]},Ct=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Mt)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),At=/hsl[a]?\(/,Dt=(x=Date.now,k=500,C=33,A=x(),D=A,z=S=1e3/240,T={time:0,frame:0,tick:function tick(){Vk(!0)},deltaRatio:function deltaRatio(t){return b/(1e3/(t||60))},wake:function wake(){l&&(!n&&u()&&(i=n=window,a=i.document||{},ot.gsap=he,(i.gsapVersions||(i.gsapVersions=[])).push(he.version),M(h||i.GreenSockGlobals||!i.gsap&&i||{}),y=i.requestAnimationFrame),m&&T.sleep(),g=y||function(t){return setTimeout(t,z-1e3*T.time+1|0)},c=1,Vk(2))},sleep:function sleep(){(y?i.cancelAnimationFrame:clearTimeout)(m),c=0,g=Q},lagSmoothing:function lagSmoothing(t,e){k=t||1e8,C=Math.min(e,k,0)},fps:function fps(t){S=1e3/(t||240),z=1e3*T.time+S},add:function add(n,t,e){var a=t?function(t,e,r,i){n(t,e,r,i),T.remove(a)}:n;return T.remove(n),R[e?"unshift":"push"](a),St(),a},remove:function remove(t,e){~(e=R.indexOf(t))&&R.splice(e,1)&&e<=w&&w--},_listeners:R=[]}),St=function _wake(){return!c&&Dt.wake()},zt={},Rt=/^[\d.\-M][\d.\-,\s]/,Et=/["']/g,Ft=function _invertEase(e){return function(t){return 1-e(1-t)}},Bt=function _parseEase(t,e){return t&&(p(t)?t:zt[t]||Gb(t))||e};function Vk(t){var e,r,i,n,a=x()-D,s=!0===t;if(k<a&&(A+=a-C),(0<(e=(i=(D+=a)-A)-z)||s)&&(n=++T.frame,b=i-1e3*T.time,T.time=i/=1e3,z+=e+(S<=e?4:S-e),r=1),s||(m=g(Vk)),r)for(w=0;w<R.length;w++)R[w](i,b,n,t)}function Dm(t){return t<F?E*t*t:t<.7272727272727273?E*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?E*(t-=2.25/2.75)*t+.9375:E*Math.pow(t-2.625/2.75,2)+.984375}ba("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Kb(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),zt.Linear.easeNone=zt.none=zt.Linear.easeIn,Kb("Elastic",Mb("in"),Mb("out"),Mb()),E=7.5625,F=1/2.75,Kb("Bounce",function(t){return 1-Dm(1-t)},Dm),Kb("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),Kb("Circ",function(t){return-(G(1-t*t)-1)}),Kb("Sine",function(t){return 1===t?1:1-W(t*j)}),Kb("Back",Nb("in"),Nb("out"),Nb()),zt.SteppedEase=zt.steps=ot.SteppedEase={config:function config(t,e){void 0===t&&(t=1);var r=1/t,i=t+(e?0:1),n=e?1:0;return function(t){return((i*bt(0,.99999999,t)|0)+n)*r}}},L.ease=zt["quad.out"],ba("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return ct+=t+","+t+"Params,"});var It,Lt=function GSCache(t,e){this.id=K++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:aa,this.set=e?e.getSetter:Ht},Nt=((It=Animation.prototype).delay=function delay(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},It.duration=function duration(t){return arguments.length?this.totalDuration(0<this._repeat?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},It.totalDuration=function totalDuration(t){return arguments.length?(this._dirty=0,Ka(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},It.totalTime=function totalTime(t,e){if(St(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Ba(this,t),!r._dp||r.parent||Ca(r,this);r&&r.parent;)r.parent._time!==r._start+(0<=r._ts?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&t<this._tDur||this._ts<0&&0<t||!this._tDur&&!t)&&Da(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===V||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),ha(this,t,e)),this},It.time=function time(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+xa(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},It.totalProgress=function totalProgress(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},It.progress=function progress(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+xa(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},It.iteration=function iteration(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?gt(this._tTime,r)+1:1},It.timeScale=function timeScale(t){if(!arguments.length)return this._rts===-V?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?za(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-V?0:this._rts,this.totalTime(bt(-this._delay,this._tDur,e),!0),Aa(this),function _recacheAncestors(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},It.paused=function paused(t){return arguments.length?(this._ps!==t&&((this._ps=t)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(St(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==V&&(this._tTime-=V)))),this):this._ps},It.startTime=function startTime(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return!e||!e._sort&&this.parent||Da(e,this,t-this._delay),this}return this._start},It.endTime=function endTime(e){return this._start+(t(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},It.rawTime=function rawTime(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?za(e.rawTime(t),this):this._tTime:this._tTime},It.globalTime=function globalTime(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(e._ts||1),e=e._dp;return r},It.repeat=function repeat(t){return arguments.length?(this._repeat=t===1/0?-2:t,La(this)):-2===this._repeat?1/0:this._repeat},It.repeatDelay=function repeatDelay(t){if(arguments.length){var e=this._time;return this._rDelay=t,La(this),e?this.time(e):this}return this._rDelay},It.yoyo=function yoyo(t){return arguments.length?(this._yoyo=t,this):this._yoyo},It.seek=function seek(e,r){return this.totalTime(Tt(this,e),t(r))},It.restart=function restart(e,r){return this.play().totalTime(e?-this._delay:0,t(r))},It.play=function play(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},It.reverse=function reverse(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},It.pause=function pause(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},It.resume=function resume(){return this.paused(!1)},It.reversed=function reversed(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-V:0)),this):this._rts<0},It.invalidate=function invalidate(){return this._initted=this._act=0,this._zTime=-V,this},It.isActive=function isActive(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-V))},It.eventCallback=function eventCallback(t,e,r){var i=this.vars;return 1<arguments.length?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},It.then=function then(t){var i=this;return new Promise(function(e){function Un(){var t=i.then;i.then=null,p(r)&&(r=r(i))&&(r.then||r===i)&&(i.then=t),e(r),i.then=t}var r=p(t)?t:ja;i._initted&&1===i.totalProgress()&&0<=i._ts||!i._tTime&&i._ts<0?Un():i._prom=Un})},It.kill=function kill(){mb(this)},Animation);function Animation(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Ka(this,+t.duration,1,1),this.data=t.data,c||Dt.wake()}ka(Nt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-V,_prom:0,_ps:!1,_rts:1});var Ut=function(n){function Timeline(e,r){var i;return void 0===e&&(e={}),(i=n.call(this,e)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=t(e.sortChildren),I&&Da(e.parent||I,_assertThisInitialized(i),r),e.reversed&&i.reverse(),e.paused&&i.paused(!0),e.scrollTrigger&&Ea(_assertThisInitialized(i),e.scrollTrigger),i}_inheritsLoose(Timeline,n);var e=Timeline.prototype;return e.to=function to(t,e,r){return Oa(0,arguments,this),this},e.from=function from(t,e,r){return Oa(1,arguments,this),this},e.fromTo=function fromTo(t,e,r,i){return Oa(2,arguments,this),this},e.set=function set(t,e,r){return e.duration=0,e.parent=this,pa(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new $t(t,e,Tt(this,r),1),this},e.call=function call(t,e,r){return Da(this,$t.delayedCall(0,t,e),r)},e.staggerTo=function staggerTo(t,e,r,i,n,a,s){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=a,r.onCompleteParams=s,r.parent=this,new $t(t,r,Tt(this,n)),this},e.staggerFrom=function staggerFrom(e,r,i,n,a,s,o){return i.runBackwards=1,pa(i).immediateRender=t(i.immediateRender),this.staggerTo(e,r,i,n,a,s,o)},e.staggerFromTo=function staggerFromTo(e,r,i,n,a,s,o,u){return n.startAt=i,pa(n).immediateRender=t(n.immediateRender),this.staggerTo(e,r,n,a,s,o,u)},e.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,d,_,p,c=this._time,m=this._dirty?this.totalDuration():this._tDur,g=this._dur,v=t<=0?0:da(t),y=this._zTime<0!=t<0&&(this._initted||!g);if(this!==I&&m<v&&0<=t&&(v=m),v!==this._tTime||r||y){if(c!==this._time&&g&&(v+=this._time-c,t+=this._time-c),i=v,f=this._start,u=!(l=this._ts),y&&(g||(c=this._zTime),!t&&e||(this._zTime=t)),this._repeat){if(_=this._yoyo,o=g+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,r);if(i=da(v%o),v===m?(s=this._repeat,i=g):((s=~~(v/o))&&s===v/o&&(i=g,s--),g<i&&(i=g)),d=gt(this._tTime,o),!c&&this._tTime&&d!==s&&(d=s),_&&1&s&&(i=g-i,p=1),s!==d&&!this._lock){var T=_&&1&d,b=T===(_&&1&s);if(s<d&&(T=!T),c=T?0:g,this._lock=1,this.render(c||(p?0:da(s*o)),e,!g)._lock=0,this._tTime=v,!e&&this.parent&&Ot(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),c&&c!==this._time||u!=!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(g=this._dur,m=this._tDur,b&&(this._lock=2,c=T?g:-1e-4,this.render(c,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;Ib(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function _findNextPauseTween(t,e,r){var i;if(e<r)for(i=t._first;i&&i._start<=r;){if("isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start<e)return i;i=i._prev}}(this,da(c),da(i)))&&(v-=i-(i=h._start)),this._tTime=v,this._time=i,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,c=0),!c&&i&&!e&&(Ot(this,"onStart"),this._tTime!==v))return this;if(c<=i&&0<=t)for(n=this._first;n;){if(a=n._next,(n._act||i>=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(i-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(i-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=-V);break}}n=a}else{n=this._last;for(var w=t<0?t:i;n;){if(a=n._prev,(n._act||w<=n._end)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(w-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(w-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=w?-V:V);break}}n=a}}if(h&&!e&&(this.pause(),h.render(c<=i?0:-V)._zTime=c<=i?1:-1,this._ts))return this._start=f,Aa(this),this.render(t,e,r);this._onUpdate&&!e&&Ot(this,"onUpdate",!0),(v===m&&this._tTime>=this.totalDuration()||!v&&c)&&(f!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0<this._ts||!v&&this._ts<0)||ta(this,1),e||t<0&&!c||!v&&!c&&m||(Ot(this,v===m&&0<=t?"onComplete":"onReverseComplete",!0),!this._prom||v<m&&0<this.timeScale()||this._prom())))}return this},e.add=function add(t,e){var r=this;if(q(e)||(e=Tt(this,e,t)),!(t instanceof Nt)){if(J(t))return t.forEach(function(t){return r.add(t,e)}),this;if(o(t))return this.addLabel(t,e);if(!p(t))return this;t=$t.delayedCall(0,t)}return this!==t?Da(this,t,e):this},e.getChildren=function getChildren(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-Y);for(var n=[],a=this._first;a;)a._start>=i&&(a instanceof $t?e&&n.push(a):(r&&n.push(a),t&&n.push.apply(n,a.getChildren(!0,e,r)))),a=a._next;return n},e.getById=function getById(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},e.remove=function remove(t){return o(t)?this.removeLabel(t):p(t)?this.killTweensOf(t):(sa(this,t),t===this._recent&&(this._recent=this._last),ua(this))},e.totalTime=function totalTime(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=da(Dt.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts))),n.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},e.addLabel=function addLabel(t,e){return this.labels[t]=Tt(this,e),this},e.removeLabel=function removeLabel(t){return delete this.labels[t],this},e.addPause=function addPause(t,e,r){var i=$t.delayedCall(0,e||Q,r);return i.data="isPause",this._hasPause=1,Da(this,i,Tt(this,t))},e.removePause=function removePause(t){var e=this._first;for(t=Tt(this,t);e;)e._start===t&&"isPause"===e.data&&ta(e),e=e._next},e.killTweensOf=function killTweensOf(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)Yt!==i[n]&&i[n].kill(t,e);return this},e.getTweensOf=function getTweensOf(t,e){for(var r,i=[],n=xt(t),a=this._first,s=q(e);a;)a instanceof $t?fa(a._targets,n)&&(s?(!Yt||a._initted&&a._ts)&&a.globalTime(0)<=e&&a.globalTime(a.totalDuration())>e:!e||a.isActive())&&i.push(a):(r=a.getTweensOf(n,e)).length&&i.push.apply(i,r),a=a._next;return i},e.tweenTo=function tweenTo(t,e){e=e||{};var r,i=this,n=Tt(i,t),a=e.startAt,s=e.onStart,o=e.onStartParams,u=e.immediateRender,h=$t.to(i,ka({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale())||V,onStart:function onStart(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale());h._dur!==t&&Ka(h,t,0,1).render(h._time,!0,!0),r=1}s&&s.apply(h,o||[])}},e));return u?h.render(0):h},e.tweenFromTo=function tweenFromTo(t,e,r){return this.tweenTo(e,ka({startAt:{time:Tt(this,t)}},r))},e.recent=function recent(){return this._recent},e.nextLabel=function nextLabel(t){return void 0===t&&(t=this._time),kb(this,Tt(this,t))},e.previousLabel=function previousLabel(t){return void 0===t&&(t=this._time),kb(this,Tt(this,t),1)},e.currentLabel=function currentLabel(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+V)},e.shiftChildren=function shiftChildren(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,a=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in a)a[i]>=r&&(a[i]+=t);return ua(this)},e.invalidate=function invalidate(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return n.prototype.invalidate.call(this)},e.clear=function clear(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),ua(this)},e.totalDuration=function totalDuration(t){var e,r,i,n=0,a=this,s=a._last,o=Y;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(i=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),o<(r=s._start)&&a._sort&&s._ts&&!a._lock?(a._lock=1,Da(a,s,r-s._delay,1)._lock=0):o=r,r<0&&s._ts&&(n-=r,(!i&&!a._dp||i&&i.smoothChildTiming)&&(a._start+=r/a._ts,a._time-=r,a._tTime-=r),a.shiftChildren(-r,!1,-Infinity),o=0),s._end>n&&s._ts&&(n=s._end),s=e;Ka(a,a===I&&a._time>n?a._time:n,1,1),a._dirty=0}return a._tDur},Timeline.updateRoot=function updateRoot(t){if(I._ts&&(ha(I,za(t,I)),f=Dt.frame),Dt.frame>=_t){_t+=U.autoSleep||120;var e=I._first;if((!e||!e._ts)&&U.autoSleep&&Dt._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Dt.sleep()}}},Timeline}(Nt);ka(Ut.prototype,{_lock:0,_hasPause:0,_forcing:0});function Ub(t,e,r,i,n,a){var u,h,l,f;if(ft[t]&&!1!==(u=new ft[t]).init(n,u.rawVars?e[t]:function _processVars(t,e,r,i,n){if(p(t)&&(t=Qt(t,n,e,r,i)),!s(t)||t.style&&t.nodeType||J(t)||H(t))return o(t)?Qt(t,n,e,r,i):t;var a,u={};for(a in t)u[a]=Qt(t[a],n,e,r,i);return u}(e[t],i,n,a,r),r,i,a)&&(r._pt=h=new oe(r._pt,n,t,0,1,u.render,u,0,u.priority),r!==d))for(l=r._ptLookup[r._targets.indexOf(n)],f=u._props.length;f--;)l[u._props[f]]=h;return u}function $b(t,r,e,i){var n,a,s=r.ease||i||"power1.inOut";if(J(r))a=e[t]||(e[t]=[]),r.forEach(function(t,e){return a.push({t:e/(r.length-1)*100,v:t,e:s})});else for(n in r)a=e[n]||(e[n]=[]),"ease"===n||a.push({t:parseFloat(t),v:r[n],e:s})}var Yt,qt,Vt=function _addPropTween(t,e,r,i,n,a,s,u,h){p(i)&&(i=i(n||0,t,a));var l,f=t[e],d="get"!==r?r:p(f)?h?t[e.indexOf("set")||!p(t["get"+e.substr(3)])?e:"get"+e.substr(3)](h):t[e]():f,_=p(f)?h?Zt:Wt:Gt;if(o(i)&&(~i.indexOf("random(")&&(i=hb(i)),"="===i.charAt(1)&&(!(l=ea(d,i)+(Ra(d)||0))&&0!==l||(i=l))),d!==i||qt)return isNaN(d*i)||""===i?(f||e in t||N(e,i),function _addComplexStringPropTween(t,e,r,i,n,a,s){var o,u,h,l,f,d,_,p,c=new oe(this._pt,t,e,0,1,ee,null,n),m=0,g=0;for(c.b=r,c.e=i,r+="",(_=~(i+="").indexOf("random("))&&(i=hb(i)),a&&(a(p=[r,i],t,e),r=p[0],i=p[1]),u=r.match(it)||[];o=it.exec(i);)l=o[0],f=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(d=parseFloat(u[g-1])||0,c._pt={_next:c._pt,p:f||1===g?f:",",s:d,c:"="===l.charAt(1)?ea(d,l)-d:parseFloat(l)-d,m:h&&h<4?Math.round:0},m=it.lastIndex);return c.c=m<i.length?i.substring(m,i.length):"",c.fp=s,(nt.test(i)||_)&&(c.e=0),this._pt=c}.call(this,t,e,d,i,_,u||U.stringFilter,h)):(l=new oe(this._pt,t,e,+d||0,i-(d||0),"boolean"==typeof f?te:Jt,0,_),h&&(l.fp=h),s&&l.modifier(s,this,t),this._pt=l)},Xt=function _initTween(e,r){var i,n,a,s,o,u,h,l,f,d,p,c,m,g=e.vars,v=g.ease,y=g.startAt,T=g.immediateRender,b=g.lazy,w=g.onUpdate,x=g.onUpdateParams,k=g.callbackScope,O=g.runBackwards,P=g.yoyoEase,M=g.keyframes,C=g.autoRevert,A=e._dur,D=e._startAt,S=e._targets,z=e.parent,R=z&&"nested"===z.data?z.parent._targets:S,E="auto"===e._overwrite&&!B,F=e.timeline;if(!F||M&&v||(v="none"),e._ease=Bt(v,L.ease),e._yEase=P?Ft(Bt(!0===P?v:P,L.ease)):0,P&&e._yoyo&&!e._repeat&&(P=e._yEase,e._yEase=e._ease,e._ease=P),e._from=!F&&!!g.runBackwards,!F||M&&!g.stagger){if(c=(l=S[0]?_(S[0]).harness:0)&&g[l.prop],i=oa(g,ut),D&&(ta(D.render(-1,!0)),D._lazy=0),y)if(ta(e._startAt=$t.set(S,ka({data:"isStart",overwrite:!1,parent:z,immediateRender:!0,lazy:t(b),startAt:null,delay:0,onUpdate:w,onUpdateParams:x,callbackScope:k,stagger:0},y))),r<0&&!T&&!C&&e._startAt.render(-1,!0),T){if(0<r&&!C&&(e._startAt=0),A&&r<=0)return void(r&&(e._zTime=r))}else!1===C&&(e._startAt=0);else if(O&&A)if(D)C||(e._startAt=0);else if(r&&(T=!1),a=ka({overwrite:!1,data:"isFromStart",lazy:T&&t(b),immediateRender:T,stagger:0,parent:z},i),c&&(a[l.prop]=c),ta(e._startAt=$t.set(S,a)),r<0&&e._startAt.render(-1,!0),e._zTime=r,T){if(!r)return}else _initTween(e._startAt,V);for(e._pt=e._ptCache=0,b=A&&t(b)||b&&!A,n=0;n<S.length;n++){if(h=(o=S[n])._gsap||$(S)[n]._gsap,e._ptLookup[n]=d={},lt[h.id]&&ht.length&&ga(),p=R===S?n:R.indexOf(o),l&&!1!==(f=new l).init(o,c||i,e,p,R)&&(e._pt=s=new oe(e._pt,o,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(t){d[t]=s}),f.priority&&(u=1)),!l||c)for(a in i)ft[a]&&(f=Ub(a,i,e,p,o,R))?f.priority&&(u=1):d[a]=s=Vt.call(e,o,a,"get",i[a],p,R,0,g.stringFilter);e._op&&e._op[n]&&e.kill(o,e._op[n]),E&&e._pt&&(Yt=e,I.killTweensOf(o,d,e.globalTime(r)),m=!e.parent,Yt=0),e._pt&&b&&(lt[h.id]=1)}u&&se(e),e._onInit&&e._onInit(e)}e._onUpdate=w,e._initted=(!e._op||e._pt)&&!m,M&&r<=0&&F.render(Y,!0,!0)},Qt=function _parseFuncOrString(t,e,r,i,n){return p(t)?t.call(e,r,i,n):o(t)&&~t.indexOf("random(")?hb(t):t},jt=ct+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Kt={};ba(jt+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return Kt[t]=1});var $t=function(R){function Tween(e,r,i,n){var a;"number"==typeof r&&(i.duration=r,r=i,i=null);var o,u,h,l,f,d,_,p,c=(a=R.call(this,n?r:pa(r))||this).vars,m=c.duration,g=c.delay,y=c.immediateRender,T=c.stagger,b=c.overwrite,w=c.keyframes,x=c.defaults,k=c.scrollTrigger,P=c.yoyoEase,M=r.parent||I,C=(J(e)||H(e)?q(e[0]):"length"in r)?[e]:xt(e);if(a._targets=C.length?$(C):O("GSAP target "+e+" not found. https://greensock.com",!U.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=b,w||T||v(m)||v(g)){if(r=a.vars,(o=a.timeline=new Ut({data:"nested",defaults:x||{}})).kill(),o.parent=o._dp=_assertThisInitialized(a),o._start=0,T||v(m)||v(g)){if(l=C.length,_=T&&Za(T),s(T))for(f in T)~jt.indexOf(f)&&((p=p||{})[f]=T[f]);for(u=0;u<l;u++)(h=oa(r,Kt)).stagger=0,P&&(h.yoyoEase=P),p&&mt(h,p),d=C[u],h.duration=+Qt(m,_assertThisInitialized(a),u,d,C),h.delay=(+Qt(g,_assertThisInitialized(a),u,d,C)||0)-a._delay,!T&&1===l&&h.delay&&(a._delay=g=h.delay,a._start+=g,h.delay=0),o.to(d,h,_?_(u,d,C):0),o._ease=zt.none;o.duration()?m=g=0:a.timeline=0}else if(w){pa(ka(o.vars.defaults,{ease:"none"})),o._ease=Bt(w.ease||r.ease||"none");var A,D,S,z=0;if(J(w))w.forEach(function(t){return o.to(C,t,">")});else{for(f in h={},w)"ease"===f||"easeEach"===f||$b(f,w[f],h,w.easeEach);for(f in h)for(A=h[f].sort(function(t,e){return t.t-e.t}),u=z=0;u<A.length;u++)(S={ease:(D=A[u]).e,duration:(D.t-(u?A[u-1].t:0))/100*m})[f]=D.v,o.to(C,S,z),z+=S.duration;o.duration()<m&&o.to({},{duration:m-o.duration()})}}m||a.duration(m=o.duration())}else a.timeline=0;return!0!==b||B||(Yt=_assertThisInitialized(a),I.killTweensOf(C),Yt=0),Da(M,_assertThisInitialized(a),i),r.reversed&&a.reverse(),r.paused&&a.paused(!0),(y||!m&&!w&&a._start===da(M._time)&&t(y)&&function _hasNoPausedAncestors(t){return!t||t._ts&&_hasNoPausedAncestors(t.parent)}(_assertThisInitialized(a))&&"nested"!==M.data)&&(a._tTime=-V,a.render(Math.max(0,-g))),k&&Ea(_assertThisInitialized(a),k),a}_inheritsLoose(Tween,R);var e=Tween.prototype;return e.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,d=this._time,_=this._tDur,p=this._dur,c=_-V<t&&0<=t?_:t<V?0:t;if(p){if(c!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=t<0){if(i=c,l=this.timeline,this._repeat){if(s=p+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,r);if(i=da(c%s),c===_?(a=this._repeat,i=p):((a=~~(c/s))&&a===c/s&&(i=p,a--),p<i&&(i=p)),(u=this._yoyo&&1&a)&&(f=this._yEase,i=p-i),o=gt(this._tTime,s),i===d&&!r&&this._initted)return this._tTime=c,this;a!==o&&(l&&this._yEase&&Ib(l,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=r=1,this.render(da(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(Fa(this,t<0?t:i,r,e))return this._tTime=0,this;if(d!==this._time)return this;if(p!==this._dur)return this.render(t,e,r)}if(this._tTime=c,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(f||this._ease)(i/p),this._from&&(this.ratio=h=1-h),i&&!d&&!e&&(Ot(this,"onStart"),this._tTime!==c))return this;for(n=this._pt;n;)n.r(h,n.d),n=n._next;l&&l.render(t<0?t:!i&&u?-V:l._dur*l._ease(i/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,r),Ot(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&Ot(this,"onRepeat"),c!==this._tDur&&c||this._tTime!==c||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),!t&&p||!(c===this._tDur&&0<this._ts||!c&&this._ts<0)||ta(this,1),e||t<0&&!d||!c&&!d||(Ot(this,c===_?"onComplete":"onReverseComplete",!0),!this._prom||c<_&&0<this.timeScale()||this._prom()))}}else!function _renderZeroDurationTween(t,e,r,i){var n,a,s,o=t.ratio,u=e<0||!e&&(!t._start&&function _parentPlayheadIsBeforeStart(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||_parentPlayheadIsBeforeStart(e))}(t)&&(t._initted||!vt(t))||(t._ts<0||t._dp._ts<0)&&!vt(t))?0:1,h=t._rDelay,l=0;if(h&&t._repeat&&(l=bt(0,t._tDur,e),a=gt(l,h),t._yoyo&&1&a&&(u=1-u),a!==gt(t._tTime,h)&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||i||t._zTime===V||!e&&t._zTime){if(!t._initted&&Fa(t,e,i,r))return;for(s=t._zTime,t._zTime=e||(r?V:0),r=r||e&&!s,t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=l,n=t._pt;n;)n.r(u,n.d),n=n._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!r&&Ot(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&&Ot(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&ta(t,1),r||(Ot(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},e.targets=function targets(){return this._targets},e.invalidate=function invalidate(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),R.prototype.invalidate.call(this)},e.resetTo=function resetTo(t,e,r,i){c||Dt.wake(),this._ts||this.play();var n,a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Xt(this,a),n=this._ease(a/this._dur),function _updatePropTweens(t,e,r,i,n,a,s){var o,u,h,l=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!l)for(l=t._ptCache[e]=[],u=t._ptLookup,h=t._targets.length;h--;){if((o=u[h][e])&&o.d&&o.d._pt)for(o=o.d._pt;o&&o.p!==e;)o=o._next;if(!o)return qt=1,t.vars[e]="+=0",Xt(t,s),qt=0,1;l.push(o)}for(h=l.length;h--;)(o=l[h]).s=!i&&0!==i||n?o.s+(i||0)+a*o.c:i,o.c=r-o.s,o.e&&(o.e=ca(r)+Ra(o.e)),o.b&&(o.b=o.s+Ra(o.b))}(this,t,e,r,i,n,a)?this.resetTo(t,e,r,i):(Ba(this,0),this.parent||ra(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function kill(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?mb(this):this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Yt&&!0!==Yt.vars.overwrite)._first||mb(this),this.parent&&r!==this.timeline.totalDuration()&&Ka(this,this._dur*this.timeline._tDur/r,0,1),this}var i,n,a,s,u,h,l,f=this._targets,d=t?xt(t):f,p=this._ptLookup,c=this._pt;if((!e||"all"===e)&&function _arraysMatch(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,d))return"all"===e&&(this._pt=0),mb(this);for(i=this._op=this._op||[],"all"!==e&&(o(e)&&(u={},ba(e,function(t){return u[t]=1}),e=u),e=function _addAliasesToVars(t,e){var r,i,n,a,s=t[0]?_(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(i in r=mt({},e),o)if(i in r)for(n=(a=o[i].split(",")).length;n--;)r[a[n]]=r[i];return r}(f,e)),l=f.length;l--;)if(~d.indexOf(f[l]))for(u in n=p[l],"all"===e?(i[l]=e,s=n,a={}):(a=i[l]=i[l]||{},s=e),s)(h=n&&n[u])&&("kill"in h.d&&!0!==h.d.kill(u)||sa(this,h,"_pt"),delete n[u]),"all"!==a&&(a[u]=1);return this._initted&&!this._pt&&c&&mb(this),this},Tween.to=function to(t,e,r){return new Tween(t,e,r)},Tween.from=function from(t,e){return Oa(1,arguments)},Tween.delayedCall=function delayedCall(t,e,r,i){return new Tween(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},Tween.fromTo=function fromTo(t,e,r){return Oa(2,arguments)},Tween.set=function set(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new Tween(t,e)},Tween.killTweensOf=function killTweensOf(t,e,r){return I.killTweensOf(t,e,r)},Tween}(Nt);ka($t.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ba("staggerTo,staggerFrom,staggerFromTo",function(r){$t[r]=function(){var t=new Ut,e=wt.call(arguments,0);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function gc(t,e,r){return t.setAttribute(e,r)}function oc(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}var Gt=function _setterPlain(t,e,r){return t[e]=r},Wt=function _setterFunc(t,e,r){return t[e](r)},Zt=function _setterFuncWithParam(t,e,r,i){return t[e](i.fp,r)},Ht=function _getSetter(t,e){return p(t[e])?Wt:r(t[e])&&t.setAttribute?gc:Gt},Jt=function _renderPlain(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},te=function _renderBoolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ee=function _renderComplexString(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},re=function _renderPropTweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},ie=function _addPluginModifier(t,e,r,i){for(var n,a=this._pt;a;)n=a._next,a.p===i&&a.modifier(t,e,r),a=n},ne=function _killPropTweensOf(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?sa(this,i,"_pt"):i.dep||(e=1),i=r;return!e},se=function _sortPropTweensByPriority(t){for(var e,r,i,n,a=t._pt;a;){for(e=a._next,r=i;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:n)?a._prev._next=a:i=a,(a._next=r)?r._prev=a:n=a,a=e}t._pt=i},oe=(PropTween.prototype.modifier=function modifier(t,e,r){this.mSet=this.mSet||this.set,this.set=oc,this.m=t,this.mt=r,this.tween=e},PropTween);function PropTween(t,e,r,i,n,a,s,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=a||Jt,this.d=s||this,this.set=o||Gt,this.pr=u||0,(this._next=t)&&(t._prev=this)}ba(ct+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return ut[t]=1}),ot.TweenMax=ot.TweenLite=$t,ot.TimelineLite=ot.TimelineMax=Ut,I=new Ut({sortChildren:!1,defaults:L,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),U.stringFilter=xb;var ue={registerPlugin:function registerPlugin(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){return function _createPlugin(t){var e=(t=!t.name&&t.default||t).name,r=p(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:Q,render:re,add:Vt,kill:ne,modifier:ie,rawVars:0},a={targetTest:0,get:0,getSetter:Ht,aliases:{},register:0};if(St(),t!==i){if(ft[e])return;ka(i,ka(oa(t,n),a)),mt(i.prototype,mt(n,oa(t,a))),ft[i.prop=e]=i,t.targetTest&&(pt.push(i),ut[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}P(e,i),t.register&&t.register(he,i,oe)}(t)})},timeline:function timeline(t){return new Ut(t)},getTweensOf:function getTweensOf(t,e){return I.getTweensOf(t,e)},getProperty:function getProperty(i,t,e,r){o(i)&&(i=xt(i)[0]);var n=_(i||{}).get,a=e?ja:ia;return"native"===e&&(e=""),i?t?a((ft[t]&&ft[t].get||n)(i,t,e,r)):function(t,e,r){return a((ft[t]&&ft[t].get||n)(i,t,e,r))}:i},quickSetter:function quickSetter(r,e,i){if(1<(r=xt(r)).length){var n=r.map(function(t){return he.quickSetter(t,e,i)}),a=n.length;return function(t){for(var e=a;e--;)n[e](t)}}r=r[0]||{};var s=ft[e],o=_(r),u=o.harness&&(o.harness.aliases||{})[e]||e,h=s?function(t){var e=new s;d._pt=0,e.init(r,i?t+i:t,d,0,[r]),e.render(1,e),d._pt&&re(1,d)}:o.set(r,u);return s?h:function(t){return h(r,u,i?t+i:t,o,1)}},quickTo:function quickTo(t,i,e){function iw(t,e,r){return n.resetTo(i,t,e,r)}var r,n=he.to(t,mt(((r={})[i]="+=0.1",r.paused=!0,r),e||{}));return iw.tween=n,iw},isTweening:function isTweening(t){return 0<I.getTweensOf(t,!0).length},defaults:function defaults(t){return t&&t.ease&&(t.ease=Bt(t.ease,L.ease)),na(L,t||{})},config:function config(t){return na(U,t||{})},registerEffect:function registerEffect(t){var i=t.name,n=t.effect,e=t.plugins,a=t.defaults,r=t.extendTimeline;(e||"").split(",").forEach(function(t){return t&&!ft[t]&&!ot[t]&&O(i+" effect requires "+t+" plugin.")}),dt[i]=function(t,e,r){return n(xt(t),ka(e||{},a),r)},r&&(Ut.prototype[i]=function(t,e,r){return this.add(dt[i](t,s(e)?e:(r=e)&&{},this),r)})},registerEase:function registerEase(t,e){zt[t]=Bt(e)},parseEase:function parseEase(t,e){return arguments.length?Bt(t,e):zt},getById:function getById(t){return I.getById(t)},exportRoot:function exportRoot(e,r){void 0===e&&(e={});var i,n,a=new Ut(e);for(a.smoothChildTiming=t(e.smoothChildTiming),I.remove(a),a._dp=0,a._time=a._tTime=I._time,i=I._first;i;)n=i._next,!r&&!i._dur&&i instanceof $t&&i.vars.onComplete===i._targets[0]||Da(a,i,i._start-i._delay),i=n;return Da(I,a,0),a},utils:{wrap:function wrap(e,t,r){var i=t-e;return J(e)?eb(e,wrap(0,e.length),t):Pa(r,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function wrapYoyo(e,t,r){var i=t-e,n=2*i;return J(e)?eb(e,wrapYoyo(0,e.length-1),t):Pa(r,function(t){return e+(i<(t=(n+(t-e)%n)%n||0)?n-t:t)})},distribute:Za,random:ab,snap:_a,normalize:function normalize(t,e,r){return kt(t,e,0,1,r)},getUnit:Ra,clamp:function clamp(e,r,t){return Pa(t,function(t){return bt(e,r,t)})},splitColor:sb,toArray:xt,selector:function selector(r){return r=xt(r)[0]||O("Invalid scope")||{},function(t){var e=r.current||r.nativeElement||r;return xt(t,e.querySelectorAll?e:e===r?O("Invalid scope")||a.createElement("div"):r)}},mapRange:kt,pipe:function pipe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function unitize(e,r){return function(t){return e(parseFloat(t))+(r||Ra(t))}},interpolate:function interpolate(e,r,t,i){var n=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!n){var a,s,u,h,l,f=o(e),d={};if(!0===t&&(i=1)&&(t=null),f)e={p:e},r={p:r};else if(J(e)&&!J(r)){for(u=[],h=e.length,l=h-2,s=1;s<h;s++)u.push(interpolate(e[s-1],e[s]));h--,n=function func(t){t*=h;var e=Math.min(l,~~t);return u[e](t-e)},t=r}else i||(e=mt(J(e)?[]:{},e));if(!u){for(a in r)Vt.call(d,e,a,"get",r[a]);n=function func(t){return re(t,d)||(f?e.p:e)}}}return Pa(t,n)},shuffle:Ya},install:M,effects:dt,ticker:Dt,updateRoot:Ut.updateRoot,plugins:ft,globalTimeline:I,core:{PropTween:oe,globals:P,Tween:$t,Timeline:Ut,Animation:Nt,getCache:_,_removeLinkedListItem:sa,suppressOverwrites:function suppressOverwrites(t){return B=t}}};ba("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return ue[t]=$t[t]}),Dt.add(Ut.updateRoot),d=ue.to({},{duration:0});function sc(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r}function uc(t,n){return{name:t,rawVars:1,init:function init(t,i,e){e._onInit=function(t){var e,r;if(o(i)&&(e={},ba(i,function(t){return e[t]=1}),i=e),n){for(r in e={},i)e[r]=n(i[r]);i=e}!function _addModifiers(t,e){var r,i,n,a=t._targets;for(r in e)for(i=a.length;i--;)(n=(n=t._ptLookup[i][r])&&n.d)&&(n._pt&&(n=sc(n,r)),n&&n.modifier&&n.modifier(e[r],t,a[i],r))}(t,i)}}}}var he=ue.registerPlugin({name:"attr",init:function init(t,e,r,i,n){var a,s;for(a in e)(s=this.add(t,"setAttribute",(t.getAttribute(a)||0)+"",e[a],i,n,0,0,a))&&(s.op=a),this._props.push(a)}},{name:"endArray",init:function init(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r])}},uc("roundProps",$a),uc("modifiers"),uc("snap",_a))||ue;$t.version=Ut.version=he.version="3.10.2",l=1,u()&&St();function dd(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function ed(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function fd(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function gd(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)}function hd(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function id(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function jd(t,e,r){return t.style[e]=r}function kd(t,e,r){return t.style.setProperty(e,r)}function ld(t,e,r){return t._gsap[e]=r}function md(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r}function nd(t,e,r,i,n){var a=t._gsap;a.scaleX=a.scaleY=r,a.renderTransform(n,a)}function od(t,e,r,i,n){var a=t._gsap;a[e]=r,a.renderTransform(n,a)}function sd(t,e){var r=fe.createElementNS?fe.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):fe.createElement(t);return r.style?r:fe.createElement(t)}function td(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(Ne,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&td(t,je(e)||e,1)||""}function wd(){(function _windowExists(){return"undefined"!=typeof window})()&&window.document&&(le=window,fe=le.document,de=fe.documentElement,pe=sd("div")||{style:{}},sd("div"),Ve=je(Ve),Xe=Ve+"Origin",pe.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",me=!!je("perspective"),_e=1)}function xd(t){var e,r=sd("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,a=this.style.cssText;if(de.appendChild(r),r.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=xd}catch(t){}else this._gsapBBox&&(e=this._gsapBBox());return i&&(n?i.insertBefore(this,n):i.appendChild(this)),de.removeChild(r),this.style.cssText=a,e}function yd(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])}function zd(e){var r;try{r=e.getBBox()}catch(t){r=xd.call(e,!0)}return r&&(r.width||r.height)||e.getBBox===xd||(r=xd.call(e,!0)),!r||r.width||r.x||r.y?r:{x:+yd(e,["x","cx","x1"])||0,y:+yd(e,["y","cy","y1"])||0,width:0,height:0}}function Ad(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!zd(t))}function Bd(t,e){if(e){var r=t.style;e in Fe&&e!==Xe&&(e=Ve),r.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty(e.replace(Ne,"-$1").toLowerCase())):r.removeAttribute(e)}}function Cd(t,e,r,i,n,a){var s=new oe(t._pt,e,r,0,1,a?id:hd);return(t._pt=s).b=i,s.e=n,t._props.push(r),s}function Ed(t,e,r,i){var n,a,s,o,u=parseFloat(r)||0,h=(r+"").trim().substr((u+"").length)||"px",l=pe.style,f=Ue.test(e),d="svg"===t.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),c="px"===i,m="%"===i;return i===h||!u||Ke[i]||Ke[h]?u:("px"===h||c||(u=Ed(t,e,r,"px")),o=t.getCTM&&Ad(t),!m&&"%"!==h||!Fe[e]&&!~e.indexOf("adius")?(l[f?"width":"height"]=100+(c?h:i),a=~e.indexOf("adius")||"em"===i&&t.appendChild&&!d?t:t.parentNode,o&&(a=(t.ownerSVGElement||{}).parentNode),a&&a!==fe&&a.appendChild||(a=fe.body),(s=a._gsap)&&m&&s.width&&f&&s.time===Dt.time?ca(u/s.width*100):(!m&&"%"!==h||(l.position=td(t,"position")),a===t&&(l.position="static"),a.appendChild(pe),n=pe[p],a.removeChild(pe),l.position="absolute",f&&m&&((s=_(a)).time=Dt.time,s.width=a[p]),ca(c?n*u/100:n&&u?100/n*u:0))):(n=o?t.getBBox()[f?"width":"height"]:t[p],ca(m?u/n*100:u/100*n)))}function Fd(t,e,r,i){var n;return _e||wd(),e in qe&&"transform"!==e&&~(e=qe[e]).indexOf(",")&&(e=e.split(",")[0]),Fe[e]&&"transform"!==e?(n=He(t,i),n="transformOrigin"!==e?n[e]:n.svg?n.origin:Je(td(t,Xe))+" "+n.zOrigin+"px"):(n=t.style[e])&&"auto"!==n&&!i&&!~(n+"").indexOf("calc(")||(n=Ge[e]&&Ge[e](t,e,r)||td(t,e)||aa(t,e)||("opacity"===e?1:0)),r&&!~(n+"").trim().indexOf(" ")?Ed(t,e,n,r)+r:n}function Gd(t,e,r,i){if(!r||"none"===r){var n=je(e,t,1),a=n&&td(t,n,1);a&&a!==r?(e=n,r=a):"borderColor"===e&&(r=td(t,"borderTopColor"))}var s,o,u,h,l,f,d,_,p,c,m,g=new oe(this._pt,t.style,e,0,1,ee),v=0,y=0;if(g.b=r,g.e=i,r+="","auto"===(i+="")&&(t.style[e]=i,i=td(t,e)||i,t.style[e]=r),xb(s=[r,i]),i=s[1],u=(r=s[0]).match(rt)||[],(i.match(rt)||[]).length){for(;o=rt.exec(i);)d=o[0],p=i.substring(v,o.index),l?l=(l+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(l=1),d!==(f=u[y++]||"")&&(h=parseFloat(f)||0,m=f.substr((h+"").length),"="===d.charAt(1)&&(d=ea(h,d)+m),_=parseFloat(d),c=d.substr((_+"").length),v=rt.lastIndex-c.length,c||(c=c||U.units[e]||m,v===i.length&&(i+=c,g.e+=c)),m!==c&&(h=Ed(t,e,f,c)||0),g._pt={_next:g._pt,p:p||1===y?p:",",s:h,c:_-h,m:l&&l<4||"zIndex"===e?Math.round:0});g.c=v<i.length?i.substring(v,i.length):""}else g.r="display"===e&&"none"===i?id:hd;return nt.test(i)&&(g.e=0),this._pt=g}function Id(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==i&&"right"!==i||(t=r,r=i,i=t),e[0]=$e[r]||r,e[1]=$e[i]||i,e.join(" ")}function Jd(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,i,n,a=e.t,s=a.style,o=e.u,u=a._gsap;if("all"===o||!0===o)s.cssText="",i=1;else for(n=(o=o.split(",")).length;-1<--n;)r=o[n],Fe[r]&&(i=1,r="transformOrigin"===r?Xe:Ve),Bd(a,r);i&&(Bd(a,Ve),u&&(u.svg&&a.removeAttribute("transform"),He(a,1),u.uncache=1))}}function Nd(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function Od(t){var e=td(t,Ve);return Nd(e)?We:e.substr(7).match(et).map(ca)}function Pd(t,e){var r,i,n,a,s=t._gsap||_(t),o=t.style,u=Od(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?We:u:(u!==We||t.offsetParent||t===de||s.svg||(n=o.display,o.display="block",(r=t.parentNode)&&t.offsetParent||(a=1,i=t.nextSibling,de.appendChild(t)),u=Od(t),n?o.display=n:Bd(t,"display"),a&&(i?r.insertBefore(t,i):r?r.appendChild(t):de.removeChild(t))),e&&6<u.length?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)}function Qd(t,e,r,i,n,a){var s,o,u,h=t._gsap,l=n||Pd(t,!0),f=h.xOrigin||0,d=h.yOrigin||0,_=h.xOffset||0,p=h.yOffset||0,c=l[0],m=l[1],g=l[2],v=l[3],y=l[4],T=l[5],b=e.split(" "),w=parseFloat(b[0])||0,x=parseFloat(b[1])||0;r?l!==We&&(o=c*v-m*g)&&(u=w*(-m/o)+x*(c/o)-(c*T-m*y)/o,w=w*(v/o)+x*(-g/o)+(g*T-v*y)/o,x=u):(w=(s=zd(t)).x+(~b[0].indexOf("%")?w/100*s.width:w),x=s.y+(~(b[1]||b[0]).indexOf("%")?x/100*s.height:x)),i||!1!==i&&h.smooth?(y=w-f,T=x-d,h.xOffset=_+(y*c+T*g)-y,h.yOffset=p+(y*m+T*v)-T):h.xOffset=h.yOffset=0,h.xOrigin=w,h.yOrigin=x,h.smooth=!!i,h.origin=e,h.originIsAbsolute=!!r,t.style[Xe]="0px 0px",a&&(Cd(a,h,"xOrigin",f,w),Cd(a,h,"yOrigin",d,x),Cd(a,h,"xOffset",_,h.xOffset),Cd(a,h,"yOffset",p,h.yOffset)),t.setAttribute("data-svg-origin",w+" "+x)}function Td(t,e,r){var i=Ra(e);return ca(parseFloat(e)+parseFloat(Ed(t,"x",r+"px",i)))+i}function $d(t,e,r,i,n){var a,s,u=360,h=o(n),l=parseFloat(n)*(h&&~n.indexOf("rad")?Be:1)-i,f=i+l+"deg";return h&&("short"===(a=n.split("_")[1])&&(l%=u)!==l%180&&(l+=l<0?u:-u),"cw"===a&&l<0?l=(l+36e9)%u-~~(l/u)*u:"ccw"===a&&0<l&&(l=(l-36e9)%u-~~(l/u)*u)),t._pt=s=new oe(t._pt,e,r,i,l,ed),s.e=f,s.u="deg",t._props.push(r),s}function _d(t,e){for(var r in e)t[r]=e[r];return t}function ae(t,e,r){var i,n,a,s,o,u,h,l=_d({},r._gsap),f=r.style;for(n in l.svg?(a=r.getAttribute("transform"),r.setAttribute("transform",""),f[Ve]=e,i=He(r,1),Bd(r,Ve),r.setAttribute("transform",a)):(a=getComputedStyle(r)[Ve],f[Ve]=e,i=He(r,1),f[Ve]=a),Fe)(a=l[n])!==(s=i[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(o=Ra(a)!==(h=Ra(s))?Ed(r,n,a,h):parseFloat(a),u=parseFloat(s),t._pt=new oe(t._pt,i,n,o,u-o,dd),t._pt.u=h||0,t._props.push(n));_d(i,l)}var le,fe,de,_e,pe,ce,me,ge=zt.Power0,ve=zt.Power1,ye=zt.Power2,Te=zt.Power3,be=zt.Power4,we=zt.Linear,xe=zt.Quad,ke=zt.Cubic,Oe=zt.Quart,Pe=zt.Quint,Me=zt.Strong,Ce=zt.Elastic,Ae=zt.Back,De=zt.SteppedEase,Se=zt.Bounce,ze=zt.Sine,Re=zt.Expo,Ee=zt.Circ,Fe={},Be=180/Math.PI,Ie=Math.PI/180,Le=Math.atan2,Ne=/([A-Z])/g,Ue=/(left|right|width|margin|padding|x)/i,Ye=/[\s,\(]\S/,qe={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ve="transform",Xe=Ve+"Origin",Qe="O,Moz,ms,Ms,Webkit".split(","),je=function _checkPropPrefix(t,e,r){var i=(e||pe).style,n=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(Qe[n]+t in i););return n<0?null:(3===n?"ms":0<=n?Qe[n]:"")+t},Ke={deg:1,rad:1,turn:1},$e={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ge={clearProps:function clearProps(t,e,r,i,n){if("isFromStart"!==n.data){var a=t._pt=new oe(t._pt,e,r,0,0,Jd);return a.u=i,a.pr=-10,a.tween=n,t._props.push(r),1}}},We=[1,0,0,1,0,0],Ze={},He=function _parseTransform(t,e){var r=t._gsap||new Lt(t);if("x"in r&&!e&&!r.uncache)return r;var i,n,a,s,o,u,h,l,f,d,_,p,c,m,g,v,y,T,b,w,x,k,O,P,M,C,A,D,S,z,R,E,F=t.style,B=r.scaleX<0,I="deg",L=td(t,Xe)||"0";return i=n=a=u=h=l=f=d=_=0,s=o=1,r.svg=!(!t.getCTM||!Ad(t)),m=Pd(t,r.svg),r.svg&&(P=(!r.uncache||"0px 0px"===L)&&!e&&t.getAttribute("data-svg-origin"),Qd(t,P||L,!!P||r.originIsAbsolute,!1!==r.smooth,m)),p=r.xOrigin||0,c=r.yOrigin||0,m!==We&&(T=m[0],b=m[1],w=m[2],x=m[3],i=k=m[4],n=O=m[5],6===m.length?(s=Math.sqrt(T*T+b*b),o=Math.sqrt(x*x+w*w),u=T||b?Le(b,T)*Be:0,(f=w||x?Le(w,x)*Be+u:0)&&(o*=Math.abs(Math.cos(f*Ie))),r.svg&&(i-=p-(p*T+c*w),n-=c-(p*b+c*x))):(E=m[6],z=m[7],A=m[8],D=m[9],S=m[10],R=m[11],i=m[12],n=m[13],a=m[14],h=(g=Le(E,S))*Be,g&&(P=k*(v=Math.cos(-g))+A*(y=Math.sin(-g)),M=O*v+D*y,C=E*v+S*y,A=k*-y+A*v,D=O*-y+D*v,S=E*-y+S*v,R=z*-y+R*v,k=P,O=M,E=C),l=(g=Le(-w,S))*Be,g&&(v=Math.cos(-g),R=x*(y=Math.sin(-g))+R*v,T=P=T*v-A*y,b=M=b*v-D*y,w=C=w*v-S*y),u=(g=Le(b,T))*Be,g&&(P=T*(v=Math.cos(g))+b*(y=Math.sin(g)),M=k*v+O*y,b=b*v-T*y,O=O*v-k*y,T=P,k=M),h&&359.9<Math.abs(h)+Math.abs(u)&&(h=u=0,l=180-l),s=ca(Math.sqrt(T*T+b*b+w*w)),o=ca(Math.sqrt(O*O+E*E)),g=Le(k,O),f=2e-4<Math.abs(g)?g*Be:0,_=R?1/(R<0?-R:R):0),r.svg&&(P=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Nd(td(t,Ve)),P&&t.setAttribute("transform",P))),90<Math.abs(f)&&Math.abs(f)<270&&(B?(s*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),e=e||r.uncache,r.x=i-((r.xPercent=i&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+"px",r.y=n-((r.yPercent=n&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+"px",r.z=a+"px",r.scaleX=ca(s),r.scaleY=ca(o),r.rotation=ca(u)+I,r.rotationX=ca(h)+I,r.rotationY=ca(l)+I,r.skewX=f+I,r.skewY=d+I,r.transformPerspective=_+"px",(r.zOrigin=parseFloat(L.split(" ")[2])||0)&&(F[Xe]=Je(L)),r.xOffset=r.yOffset=0,r.force3D=U.force3D,r.renderTransform=r.svg?ar:me?nr:tr,r.uncache=0,r},Je=function _firstTwoOnly(t){return(t=t.split(" "))[0]+" "+t[1]},tr=function _renderNon3DTransforms(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,nr(t,e)},er="0deg",rr="0px",ir=") ",nr=function _renderCSSTransforms(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,a=r.x,s=r.y,o=r.z,u=r.rotation,h=r.rotationY,l=r.rotationX,f=r.skewX,d=r.skewY,_=r.scaleX,p=r.scaleY,c=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y="",T="auto"===m&&t&&1!==t||!0===m;if(v&&(l!==er||h!==er)){var b,w=parseFloat(h)*Ie,x=Math.sin(w),k=Math.cos(w);w=parseFloat(l)*Ie,b=Math.cos(w),a=Td(g,a,x*b*-v),s=Td(g,s,-Math.sin(w)*-v),o=Td(g,o,k*b*-v+v)}c!==rr&&(y+="perspective("+c+ir),(i||n)&&(y+="translate("+i+"%, "+n+"%) "),!T&&a===rr&&s===rr&&o===rr||(y+=o!==rr||T?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+ir),u!==er&&(y+="rotate("+u+ir),h!==er&&(y+="rotateY("+h+ir),l!==er&&(y+="rotateX("+l+ir),f===er&&d===er||(y+="skew("+f+", "+d+ir),1===_&&1===p||(y+="scale("+_+", "+p+ir),g.style[Ve]=y||"translate(0, 0)"},ar=function _renderSVGTransforms(t,e){var r,i,n,a,s,o=e||this,u=o.xPercent,h=o.yPercent,l=o.x,f=o.y,d=o.rotation,_=o.skewX,p=o.skewY,c=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,T=o.xOffset,b=o.yOffset,w=o.forceCSS,x=parseFloat(l),k=parseFloat(f);d=parseFloat(d),_=parseFloat(_),(p=parseFloat(p))&&(_+=p=parseFloat(p),d+=p),d||_?(d*=Ie,_*=Ie,r=Math.cos(d)*c,i=Math.sin(d)*c,n=Math.sin(d-_)*-m,a=Math.cos(d-_)*m,_&&(p*=Ie,s=Math.tan(_-p),n*=s=Math.sqrt(1+s*s),a*=s,p&&(s=Math.tan(p),r*=s=Math.sqrt(1+s*s),i*=s)),r=ca(r),i=ca(i),n=ca(n),a=ca(a)):(r=c,a=m,i=n=0),(x&&!~(l+"").indexOf("px")||k&&!~(f+"").indexOf("px"))&&(x=Ed(g,"x",l,"px"),k=Ed(g,"y",f,"px")),(v||y||T||b)&&(x=ca(x+v-(v*r+y*n)+T),k=ca(k+y-(v*i+y*a)+b)),(u||h)&&(s=g.getBBox(),x=ca(x+u/100*s.width),k=ca(k+h/100*s.height)),s="matrix("+r+","+i+","+n+","+a+","+x+","+k+")",g.setAttribute("transform",s),w&&(g.style[Ve]=s)};ba("padding,margin,Width,Radius",function(e,r){var t="Right",i="Bottom",n="Left",o=(r<3?["Top",t,i,n]:["Top"+n,"Top"+t,i+t,i+n]).map(function(t){return r<2?e+t:"border"+t+e});Ge[1<r?"border"+e:e]=function(e,t,r,i,n){var a,s;if(arguments.length<4)return a=o.map(function(t){return Fd(e,t,r)}),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(i+"").split(" "),s={},o.forEach(function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]}),e.init(t,s,n)}});var sr,or,ur,hr={name:"css",register:wd,targetTest:function targetTest(t){return t.style&&t.nodeType},init:function init(t,e,r,i,n){var a,s,u,h,l,f,d,_,p,c,m,g,v,y,T,b=this._props,w=t.style,x=r.vars.startAt;for(d in _e||wd(),e)if("autoRound"!==d&&(s=e[d],!ft[d]||!Ub(d,e,r,i,t,n)))if(l=typeof s,f=Ge[d],"function"===l&&(l=typeof(s=s.call(r,i,t,n))),"string"===l&&~s.indexOf("random(")&&(s=hb(s)),f)f(this,t,d,s,r)&&(T=1);else if("--"===d.substr(0,2))a=(getComputedStyle(t).getPropertyValue(d)+"").trim(),s+="",Ct.lastIndex=0,Ct.test(a)||(_=Ra(a),p=Ra(s)),p?_!==p&&(a=Ed(t,d,a,p)+p):_&&(s+=_),this.add(w,"setProperty",a,s,i,n,0,0,d),b.push(d);else if("undefined"!==l){if(x&&d in x?(a="function"==typeof x[d]?x[d].call(r,i,t,n):x[d],o(a)&&~a.indexOf("random(")&&(a=hb(a)),Ra(a+"")||(a+=U.units[d]||Ra(Fd(t,d))||""),"="===(a+"").charAt(1)&&(a=Fd(t,d))):a=Fd(t,d),h=parseFloat(a),(c="string"===l&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),u=parseFloat(s),d in qe&&("autoAlpha"===d&&(1===h&&"hidden"===Fd(t,"visibility")&&u&&(h=0),Cd(this,w,"visibility",h?"inherit":"hidden",u?"inherit":"hidden",!u)),"scale"!==d&&"transform"!==d&&~(d=qe[d]).indexOf(",")&&(d=d.split(",")[0])),m=d in Fe)if(g||((v=t._gsap).renderTransform&&!e.parseTransform||He(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new oe(this._pt,w,Ve,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===d)this._pt=new oe(this._pt,v,"scaleY",v.scaleY,(c?ea(v.scaleY,c+u):u)-v.scaleY||0),b.push("scaleY",d),d+="X";else{if("transformOrigin"===d){s=Id(s),v.svg?Qd(t,s,0,y,0,this):((p=parseFloat(s.split(" ")[2])||0)!==v.zOrigin&&Cd(this,v,"zOrigin",v.zOrigin,p),Cd(this,w,d,Je(a),Je(s)));continue}if("svgOrigin"===d){Qd(t,s,1,y,0,this);continue}if(d in Ze){$d(this,v,d,h,c?ea(h,c+s):s);continue}if("smoothOrigin"===d){Cd(this,v,"smooth",v.smooth,s);continue}if("force3D"===d){v[d]=s;continue}if("transform"===d){ae(this,s,t);continue}}else d in w||(d=je(d)||d);if(m||(u||0===u)&&(h||0===h)&&!Ye.test(s)&&d in w)u=u||0,(_=(a+"").substr((h+"").length))!==(p=Ra(s)||(d in U.units?U.units[d]:_))&&(h=Ed(t,d,a,p)),this._pt=new oe(this._pt,m?v:w,d,h,(c?ea(h,c+u):u)-h,m||"px"!==p&&"zIndex"!==d||!1===e.autoRound?dd:gd),this._pt.u=p||0,_!==p&&"%"!==p&&(this._pt.b=a,this._pt.r=fd);else if(d in w)Gd.call(this,t,d,a,c?c+s:s);else{if(!(d in t)){N(d,s);continue}this.add(t,d,a||t[d],c?c+s:s,i,n)}b.push(d)}T&&se(this)},get:Fd,aliases:qe,getSetter:function getSetter(t,e,i){var n=qe[e];return n&&n.indexOf(",")<0&&(e=n),e in Fe&&e!==Xe&&(t._gsap.x||Fd(t,"x"))?i&&ce===i?"scale"===e?md:ld:(ce=i||{})&&("scale"===e?nd:od):t.style&&!r(t.style[e])?jd:~e.indexOf("-")?kd:Ht(t,e)},core:{_removeProperty:Bd,_getMatrix:Pd}};he.utils.checkPrefix=je,ur=ba((sr="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(or="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Fe[t]=1}),ba(or,function(t){U.units[t]="deg",Ze[t]=1}),qe[ur[13]]=sr+","+or,ba("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");qe[e[1]]=ur[e[0]]}),ba("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){U.units[t]="px"}),he.registerPlugin(hr);var lr=he.registerPlugin(hr)||he,fr=lr.core.Tween;e.Back=Ae,e.Bounce=Se,e.CSSPlugin=hr,e.Circ=Ee,e.Cubic=ke,e.Elastic=Ce,e.Expo=Re,e.Linear=we,e.Power0=ge,e.Power1=ve,e.Power2=ye,e.Power3=Te,e.Power4=be,e.Quad=xe,e.Quart=Oe,e.Quint=Pe,e.Sine=ze,e.SteppedEase=De,e.Strong=Me,e.TimelineLite=Ut,e.TimelineMax=Ut,e.TweenLite=$t,e.TweenMax=fr,e.default=lr,e.gsap=lr;if(typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})}else{delete e.default}});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function m(e){return Math.round(1e5*e)/1e5||0}var b=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,w=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,Y=Math.PI/180,k=Math.sin,B=Math.cos,F=Math.abs,J=Math.sqrt;function arcToSegment(e,t,n,s,a,r,i,o,h){if(e!==o||t!==h){n=F(n),s=F(s);var u=a%360*Y,f=B(u),c=k(u),l=Math.PI,g=2*l,x=(e-o)/2,d=(t-h)/2,m=f*x+c*d,p=-c*x+f*d,y=m*m,M=p*p,v=y/(n*n)+M/(s*s);1<v&&(n=J(v)*n,s=J(v)*s);var C=n*n,E=s*s,b=(C*E-C*M-E*y)/(C*M+E*y);b<0&&(b=0);var w=(r===i?-1:1)*J(b),P=n*p/s*w,S=-s*m/n*w,N=f*P-c*S+(e+o)/2,D=c*P+f*S+(t+h)/2,T=(m-P)/n,V=(p-S)/s,_=(-m-P)/n,q=(-p-S)/s,A=T*T+V*V,R=(V<0?-1:1)*Math.acos(T/J(A)),G=(T*q-V*_<0?-1:1)*Math.acos((T*_+V*q)/J(A*(_*_+q*q)));isNaN(G)&&(G=l),!i&&0<G?G-=g:i&&G<0&&(G+=g),R%=g,G%=g;var L,O=Math.ceil(F(G)/(g/4)),j=[],z=G/O,I=4/3*k(z/2)/(1+B(z/2)),H=f*n,Q=c*n,Z=c*-s,U=f*s;for(L=0;L<O;L++)m=B(a=R+L*z),p=k(a),T=B(a+=z),V=k(a),j.push(m-I*p,p+I*m,T+I*V,V-I*T,T,V);for(L=0;L<j.length;L+=2)m=j[L],p=j[L+1],j[L]=m*H+p*Z+N,j[L+1]=m*Q+p*U+D;return j[L-2]=o,j[L-1]=h,j}}function stringToRawPath(e){function db(e,t,n,s){f=(n-e)/3,c=(s-t)/3,o.push(e+f,t+c,n-f,s-c,n,s)}var t,n,s,a,r,i,o,h,u,f,c,l,g,x,d,m=(e+"").replace(w,function(e){var t=+e;return t<1e-4&&-1e-4<t?0:t}).match(b)||[],p=[],y=0,M=0,v=m.length,C=0,E="ERROR: malformed path: "+e;if(!e||!isNaN(m[0])||isNaN(m[1]))return console.log(E),p;for(t=0;t<v;t++)if(g=r,isNaN(m[t])?i=(r=m[t].toUpperCase())!==m[t]:t--,s=+m[t+1],a=+m[t+2],i&&(s+=y,a+=M),t||(h=s,u=a),"M"===r)o&&(o.length<8?--p.length:C+=o.length),y=h=s,M=u=a,o=[s,a],p.push(o),t+=2,r="L";else if("C"===r)i||(y=M=0),(o=o||[0,0]).push(s,a,y+1*m[t+3],M+1*m[t+4],y+=1*m[t+5],M+=1*m[t+6]),t+=6;else if("S"===r)f=y,c=M,"C"!==g&&"S"!==g||(f+=y-o[o.length-4],c+=M-o[o.length-3]),i||(y=M=0),o.push(f,c,s,a,y+=1*m[t+3],M+=1*m[t+4]),t+=4;else if("Q"===r)f=y+2/3*(s-y),c=M+2/3*(a-M),i||(y=M=0),y+=1*m[t+3],M+=1*m[t+4],o.push(f,c,y+2/3*(s-y),M+2/3*(a-M),y,M),t+=4;else if("T"===r)f=y-o[o.length-4],c=M-o[o.length-3],o.push(y+f,M+c,s+2/3*(y+1.5*f-s),a+2/3*(M+1.5*c-a),y=s,M=a),t+=2;else if("H"===r)db(y,M,y=s,M),t+=1;else if("V"===r)db(y,M,y,M=s+(i?M-y:0)),t+=1;else if("L"===r||"Z"===r)"Z"===r&&(s=h,a=u,o.closed=!0),("L"===r||.5<F(y-s)||.5<F(M-a))&&(db(y,M,s,a),"L"===r&&(t+=2)),y=s,M=a;else if("A"===r){if(x=m[t+4],d=m[t+5],f=m[t+6],c=m[t+7],n=7,1<x.length&&(x.length<3?(c=f,f=d,n--):(c=d,f=x.substr(2),n-=2),d=x.charAt(1),x=x.charAt(0)),l=arcToSegment(y,M,+m[t+1],+m[t+2],+m[t+3],+x,+d,(i?y:0)+1*f,(i?M:0)+1*c),t+=n,l)for(n=0;n<l.length;n++)o.push(l[n]);y=o[o.length-2],M=o[o.length-1]}else console.log(E);return(t=o.length)<6?(p.pop(),t=0):o[0]===o[t-2]&&o[1]===o[t-1]&&(o.closed=!0),p.totalPoints=C+t,p}function p(){return M||"undefined"!=typeof window&&(M=window.gsap)&&M.registerPlugin&&M}function q(){(M=p())?(M.registerEase("_CE",n.create),a=1):console.warn("Please gsap.registerPlugin(CustomEase)")}function s(e){return~~(1e3*e+(e<0?-.5:.5))/1e3}function x(e,t,n,s,a,r,i,o,h,u,f){var c,l=(e+n)/2,g=(t+s)/2,d=(n+a)/2,m=(s+r)/2,p=(a+i)/2,y=(r+o)/2,M=(l+d)/2,v=(g+m)/2,C=(d+p)/2,E=(m+y)/2,b=(M+C)/2,w=(v+E)/2,P=i-e,S=o-t,N=Math.abs((n-i)*S-(s-o)*P),D=Math.abs((a-i)*S-(r-o)*P);return u||(u=[{x:e,y:t},{x:i,y:o}],f=1),u.splice(f||u.length-1,0,{x:b,y:w}),h*(P*P+S*S)<(N+D)*(N+D)&&(c=u.length,x(e,t,l,g,M,v,b,w,h,u,f),x(b,w,C,E,p,y,i,o,h,u,f+1+(u.length-c))),u}var M,a,t,y=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,v=/[cLlsSaAhHvVtTqQ]/g,n=((t=CustomEase.prototype).setData=function setData(e,t){t=t||{};var n,s,a,r,i,o,h,u,f,c=(e=e||"0,0,1,1").match(y),l=1,g=[],d=[],m=t.precision||1,p=m<=1;if(this.data=e,(v.test(e)||~e.indexOf("M")&&e.indexOf("C")<0)&&(c=stringToRawPath(e)[0]),4===(n=c.length))c.unshift(0,0),c.push(1,1),n=8;else if((n-2)%6)throw"Invalid CustomEase";for(0==+c[0]&&1==+c[n-2]||function _normalize(e,t,n){n||0===n||(n=Math.max(+e[e.length-1],+e[1]));var s,a=-1*e[0],r=-n,i=e.length,o=1/(+e[i-2]+a),h=-t||(Math.abs(e[i-1]-e[1])<.01*(e[i-2]-e[0])?function _findMinimum(e){var t,n=e.length,s=1e20;for(t=1;t<n;t+=6)+e[t]<s&&(s=+e[t]);return s}(e)+r:+e[i-1]+r);for(h=h?1/h:-o,s=0;s<i;s+=2)e[s]=(+e[s]+a)*o,e[s+1]=(+e[s+1]+r)*h}(c,t.height,t.originY),this.segment=c,r=2;r<n;r+=6)s={x:+c[r-2],y:+c[r-1]},a={x:+c[r+4],y:+c[r+5]},g.push(s,a),x(s.x,s.y,+c[r],+c[r+1],+c[r+2],+c[r+3],a.x,a.y,1/(2e5*m),g,g.length-1);for(n=g.length,r=0;r<n;r++)h=g[r],u=g[r-1]||h,(h.x>u.x||u.y!==h.y&&u.x===h.x||h===u)&&h.x<=1?(u.cx=h.x-u.x,u.cy=h.y-u.y,u.n=h,u.nx=h.x,p&&1<r&&2<Math.abs(u.cy/u.cx-g[r-2].cy/g[r-2].cx)&&(p=0),u.cx<l&&(u.cx?l=u.cx:(u.cx=.001,r===n-1&&(u.x-=.001,l=Math.min(l,.001),p=0)))):(g.splice(r--,1),n--);if(i=1/(n=1/l+1|0),h=g[o=0],p){for(r=0;r<n;r++)f=r*i,h.nx<f&&(h=g[++o]),s=h.y+(f-h.x)/h.cx*h.cy,d[r]={x:f,cx:i,y:s,cy:0,nx:9},r&&(d[r-1].cy=s-d[r-1].y);d[n-1].cy=g[g.length-1].y-s}else{for(r=0;r<n;r++)h.nx<r*i&&(h=g[++o]),d[r]=h;o<g.length-1&&(d[r-1]=g[g.length-2])}return this.ease=function(e){var t=d[e*n|0]||d[n-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},(this.ease.custom=this).id&&M&&M.registerEase(this.id,this.ease),this},t.getSVGData=function getSVGData(e){return CustomEase.getSVGData(this,e)},CustomEase.create=function create(e,t,n){return new CustomEase(e,t,n).ease},CustomEase.register=function register(e){M=e,q()},CustomEase.get=function get(e){return M.parseEase(e)},CustomEase.getSVGData=function getSVGData(e,t){var n,a,r,i,o,h,u,f,c,l,g=(t=t||{}).width||100,x=t.height||100,d=t.x||0,p=(t.y||0)+x,y=M.utils.toArray(t.path)[0];if(t.invert&&(x=-x,p=0),"string"==typeof e&&(e=M.parseEase(e)),e.custom&&(e=e.custom),e instanceof CustomEase)n=function rawPathToString(e){!function _isNumber(e){return"number"==typeof e}(e[0])||(e=[e]);var t,n,s,a,r="",i=e.length;for(n=0;n<i;n++){for(a=e[n],r+="M"+m(a[0])+","+m(a[1])+" C",t=a.length,s=2;s<t;s++)r+=m(a[s++])+","+m(a[s++])+" "+m(a[s++])+","+m(a[s++])+" "+m(a[s++])+","+m(a[s])+" ";a.closed&&(r+="z")}return r}(function transformRawPath(e,t,n,s,a,r,i){for(var o,h,u,f,c,l=e.length;-1<--l;)for(h=(o=e[l]).length,u=0;u<h;u+=2)f=o[u],c=o[u+1],o[u]=f*t+c*s+r,o[u+1]=f*n+c*a+i;return e._dirty=1,e}([e.segment],g,0,0,-x,d,p));else{for(n=[d,p],i=1/(u=Math.max(5,200*(t.precision||1))),f=5/(u+=2),c=s(d+i*g),a=((l=s(p+e(i)*-x))-p)/(c-d),r=2;r<u;r++)o=s(d+r*i*g),h=s(p+e(r*i)*-x),(Math.abs((h-l)/(o-c)-a)>f||r===u-1)&&(n.push(c,l),a=(h-l)/(o-c)),c=o,l=h;n="M"+n.join(",")}return y&&y.setAttribute("d",n),n},CustomEase);function CustomEase(e,t,n){a||q(),this.id=e,this.setData(t,n)}p()&&M.registerPlugin(n),n.version="3.8.0",e.CustomEase=n,e.default=n;if(typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})}else{delete e.default}});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function i(){return"undefined"!=typeof window}function j(){return a||i()&&(a=window.gsap)&&a.registerPlugin&&a}function m(e){return Math.round(1e4*e)/1e4}function n(e){return parseFloat(e)||0}function o(e,t){var r=n(e);return~e.indexOf("%")?r/100*t:r}function p(e,t){return n(e.getAttribute(t))}function r(e,t,r,i,s,o){return P(Math.pow((n(r)-n(e))*s,2)+Math.pow((n(i)-n(t))*o,2))}function s(e){return console.warn(e)}function t(e){return"non-scaling-stroke"===e.getAttribute("vector-effect")}function w(e){if(!(e=v(e)[0]))return 0;var n,i,o,a,f,h,d,l=e.tagName.toLowerCase(),u=e.style,c=1,g=1;t(e)&&(g=e.getScreenCTM(),c=P(g.a*g.a+g.b*g.b),g=P(g.d*g.d+g.c*g.c));try{i=e.getBBox()}catch(e){s("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var _=i||{x:0,y:0,width:0,height:0},y=_.x,w=_.y,x=_.width,m=_.height;if(i&&(x||m)||!k[l]||(x=p(e,k[l][0]),m=p(e,k[l][1]),"rect"!==l&&"line"!==l&&(x*=2,m*=2),"line"===l&&(y=p(e,"x1"),w=p(e,"y1"),x=Math.abs(x-y),m=Math.abs(m-w))),"path"===l)a=u.strokeDasharray,u.strokeDasharray="none",n=e.getTotalLength()||0,c!==g&&s("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),n*=(c+g)/2,u.strokeDasharray=a;else if("rect"===l)n=2*x*c+2*m*g;else if("line"===l)n=r(y,w,y+x,w+m,c,g);else if("polyline"===l||"polygon"===l)for(o=e.getAttribute("points").match(b)||[],"polygon"===l&&o.push(o[0],o[1]),n=0,f=2;f<o.length;f+=2)n+=r(o[f-2],o[f-1],o[f],o[f+1],c,g)||0;else"circle"!==l&&"ellipse"!==l||(h=x/2*c,d=m/2*g,n=Math.PI*(3*(h+d)-P((3*h+d)*(h+3*d))));return n||0}function x(e,t){if(!(e=v(e)[0]))return[0,0];t=t||w(e)+1;var r=h.getComputedStyle(e),i=r.strokeDasharray||"",s=n(r.strokeDashoffset),o=i.indexOf(",");return o<0&&(o=i.indexOf(" ")),t<(i=o<0?t:n(i.substr(0,o)))&&(i=t),[-s||0,i-s||0]}function y(){i()&&(h=window,l=a=j(),v=a.utils.toArray,d=-1!==((h.navigator||{}).userAgent||"").indexOf("Edge"))}var a,v,h,d,l,b=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,k={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},P=Math.sqrt,f={version:"3.6.1",name:"drawSVG",register:function register(e){a=e,y()},init:function init(e,r){if(!e.getBBox)return!1;l||y();var i,s,a,f=w(e);return this._style=e.style,this._target=e,r+""=="true"?r="0 100%":r?-1===(r+"").indexOf(" ")&&(r="0 "+r):r="0 0",s=function _parse(e,t,n){var r,i,s=e.indexOf(" ");return i=s<0?(r=void 0!==n?n+"":e,e):(r=e.substr(0,s),e.substr(s+1)),r=o(r,t),(i=o(i,t))<r?[i,r]:[r,i]}(r,f,(i=x(e,f))[0]),this._length=m(f),this._dash=m(i[1]-i[0]),this._offset=m(-i[0]),this._dashPT=this.add(this,"_dash",this._dash,m(s[1]-s[0])),this._offsetPT=this.add(this,"_offset",this._offset,m(-s[0])),d&&(a=h.getComputedStyle(e)).strokeLinecap!==a.strokeLinejoin&&(s=n(a.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",s,s+.01)),this._live=t(e)||~(r+"").indexOf("live"),this._nowrap=~(r+"").indexOf("nowrap"),this._props.push("drawSVG"),1},render:function render(e,t){var n,r,i,s,o=t._pt,a=t._style;if(o){for(t._live&&(n=w(t._target))!==t._length&&(r=n/t._length,t._length=n,t._offsetPT&&(t._offsetPT.s*=r,t._offsetPT.c*=r),t._dashPT?(t._dashPT.s*=r,t._dashPT.c*=r):t._dash*=r);o;)o.r(e,o.d),o=o._next;i=t._dash||e&&1!==e&&1e-4||0,n=t._length-i+.1,s=t._offset,i&&s&&i+Math.abs(s%t._length)>t._length-.2&&(s+=s<0?.1:-.1)&&(n+=.1),a.strokeDashoffset=i?s:s+.001,a.strokeDasharray=n<.2?"none":i?i+"px,"+(t._nowrap?999999:n)+"px":"0px, 999999px"}},getLength:w,getPosition:x};j()&&a.registerPlugin(f),e.DrawSVGPlugin=f,e.default=f;if(typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})}else{delete e.default}});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(){return he||"undefined"!=typeof window&&(he=window.gsap)&&he.registerPlugin&&he}function x(e,t){return~Ye.indexOf(e)&&Ye[Ye.indexOf(e)+1][t]}function y(e){return!!~t.indexOf(e)}function z(e,t,r,n){return e.addEventListener(t,r,{passive:!n})}function A(e,t,r){return e.removeEventListener(t,r)}function D(){return Pe&&Pe.isPressed||ze.cache++}function E(t){return function(e){return e||0===e?(r&&(ve.history.scrollRestoration="manual"),t(e),t.v=e,t.c=ze.cache,Pe&&Pe.isPressed&&Re("ss",e)):ze.cache===t.c&&!Re("ref")||(t.c=ze.cache,t.v=t()),t.v}}function H(e){return he.utils.toArray(e)[0]||("string"==typeof e&&!1!==he.config().nullTargetWarn?console.warn("Element not found:",e):null)}function I(t,e){var r=e.s,n=e.sc,i=ze.indexOf(t),o=n===Xe.sc?1:2;return~i||(i=ze.push(t)-1),ze[i+o]||(ze[i+o]=x(t,r)||(y(t)?n:function(e){return arguments.length?t[r]=e:t[r]}))}function J(e,t,i){function _c(e,t){var r=u();t||n<r-s?(a=o,o=e,l=s,s=r):i?o+=e:o=a+(e-a)/(r-l)*(s-l)}var o=e,a=e,s=u(),l=s,n=t||50,c=Math.max(500,3*n);return{update:_c,reset:function reset(){a=o=i?0:o,l=s=0},getVelocity:function getVelocity(e){var t=l,r=a,n=u();return!e&&0!==e||e===o||_c(e),s===l||c<n-l?0:(o+(i?r:-r))/((i?n:s)-t)*1e3}}}function K(e,t){return t&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e}function L(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r}function M(e){return(he=e||p())&&!be&&"undefined"!=typeof document&&document.body&&(ve=window,Se=(me=document).documentElement,_e=me.body,t=[ve,me,Se,_e],he.utils.clamp,ke="onpointerenter"in _e?"pointer":"mouse",Te=w.isTouch=ve.matchMedia&&ve.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in ve||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,setTimeout(function(){return r=0},500),be=1),be}var he,be,ve,me,Se,_e,Te,ke,Me,t,Pe,r=1,Oe=[],ze=[],Ye=[],u=Date.now,Re=function _bridge(e,t){return t},n="scrollLeft",i="scrollTop",Le={s:n,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:E(function(e){return arguments.length?ve.scrollTo(e,Xe.sc()):ve.pageXOffset||me[n]||Se[n]||_e[n]||0})},Xe={s:i,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Le,sc:E(function(e){return arguments.length?ve.scrollTo(Le.sc(),e):ve.pageYOffset||me[i]||Se[i]||_e[i]||0})};Le.op=Xe,ze.cache=0;var w=(Observer.prototype.init=function init(e){be||M(he)||console.warn("Please gsap.registerPlugin(Observer)"),Me||(Me=he.core.globals().ScrollTrigger)&&Me.core&&function _integrate(){var e=Me.core,r=e.bridge||{},t=e._scrollers,n=e._proxies;t.push.apply(t,ze),n.push.apply(n,Ye),ze=t,Ye=n,Re=function _bridge(e,t){return r[e](t)}}();var i=e.tolerance,a=e.dragMinimum,t=e.type,r=e.target,n=e.lineHeight,o=e.debounce,s=e.preventDefault,l=e.onStop,c=e.onStopDelay,u=e.ignore,f=e.wheelSpeed,d=e.event,p=e.onDragStart,g=e.onDragEnd,h=e.onDrag,b=e.onPress,v=e.onRelease,m=e.onRight,x=e.onLeft,w=e.onUp,S=e.onDown,_=e.onChangeX,T=e.onChangeY,k=e.onChange,E=e.onToggleX,C=e.onToggleY,P=e.onHover,O=e.onHoverEnd,F=e.onMove,Y=e.ignoreCheck,R=e.isNormalizer,B=e.onGestureStart,X=e.onGestureEnd,j=e.onWheel,V=e.onEnable,G=e.onDisable,N=e.onClick,W=e.scrollSpeed;function ue(e,t){return(ee.event=e)&&u&&~u.indexOf(e.target)||t&&le&&"touch"!==e.pointerType||Y&&Y(e)}function we(){var e=ee.deltaX=L(de),t=ee.deltaY=L(pe),r=Math.abs(e)>=i,n=Math.abs(t)>=i;k&&(r||n)&&k(ee,e,t,de,pe),r&&(m&&0<ee.deltaX&&m(ee),x&&ee.deltaX<0&&x(ee),_&&_(ee),E&&ee.deltaX<0!=te<0&&E(ee),te=ee.deltaX,de[0]=de[1]=de[2]=0),n&&(S&&0<ee.deltaY&&S(ee),w&&ee.deltaY<0&&w(ee),T&&T(ee),C&&ee.deltaY<0!=re<0&&C(ee),re=ee.deltaY,pe[0]=pe[1]=pe[2]=0),$&&(F(ee),$=!1),Z&&(h(ee),Z=!1),Q&&(j(ee),Q=!1),q=0}function xe(e,t,r){de[r]+=e,pe[r]+=t,ee._vx.update(e,2===r),ee._vy.update(t,2===r),o?q=q||requestAnimationFrame(we):we()}function ye(e){if(!ue(e,1)){var t=(e=K(e,s)).clientX,r=e.clientY,n=t-ee.x,i=r-ee.y,o=ee.isDragging;ee.x=t,ee.y=r,(o||Math.abs(ee.startX-t)>=a||Math.abs(ee.startY-r)>=a)&&(h&&(Z=!0),o||(ee.isDragging=!0),xe(n,i,2),o||p&&p(ee))}}function Ae(e){if(!ue(e,1)){A(R?r:fe,se[1],ye);var t=ee.isDragging;t||(ee._vx.reset(),ee._vy.reset()),ee.isDragging=ee.isGesturing=ee.isPressed=!1,l&&!R&&U.restart(!0),g&&t&&g(ee),v&&v(ee,t)}}function Be(e){return e.touches&&1<e.touches.length&&(ee.isGesturing=!0)&&B(e,ee.isDragging)}function Ce(){return(ee.isGesturing=!1)||X(ee)}function De(e){if(!ue(e)){var t=ne(),r=ie();xe((t-oe)*W,(r-ae)*W,1),oe=t,ae=r,l&&U.restart(!0)}}function Ee(e){if(!ue(e)){e=K(e,s),j&&(Q=!0);var t=(1===e.deltaMode?n:2===e.deltaMode?ve.innerHeight:1)*f;xe(e.deltaX*t,e.deltaY*t,0),l&&!R&&U.restart(!0)}}function Fe(e){if(!ue(e)){var t=e.clientX,r=e.clientY,n=t-ee.x,i=r-ee.y;ee.x=t,ee.y=r,F&&($=!0),(n||i)&&xe(n,i,2)}}function Ge(e){ee.event=e,P(ee)}function He(e){ee.event=e,O(ee)}function Ie(e){return ue(e)||K(e,s)&&N(ee)}this.target=r=H(r)||Se,this.vars=e,u=u&&he.utils.toArray(u),i=i||0,a=a||0,f=f||1,W=W||1,t=t||"wheel,touch,pointer",o=!1!==o,n=n||parseFloat(ve.getComputedStyle(_e).lineHeight)||22;var q,U,Z,$,Q,ee=this,te=0,re=0,ne=I(r,Le),ie=I(r,Xe),oe=ne(),ae=ie(),se=("ontouchstart"in Se?"touchstart,touchmove,touchcancel,touchend":0<=t.indexOf("pointer")&&!("onpointerdown"in Se)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),le=~t.indexOf("touch")&&!~t.indexOf("pointer")&&"pointerdown"===se[0],ce=y(r),fe=r.ownerDocument||me,de=[0,0,0],pe=[0,0,0],ge=ee.onPress=function(e){ue(e,1)||(U.pause(),ee.isPressed=!0,e=K(e,s),te=re=0,ee.startX=ee.x=e.clientX,ee.startY=ee.y=e.clientY,ee._vx.reset(),ee._vy.reset(),z(R?r:fe,se[1],ye,s),ee.deltaX=ee.deltaY=0,b&&b(ee))};U=ee._dc=he.delayedCall(c||.25,function onStopFunc(){ee._vx.reset(),ee._vy.reset(),U.pause(),l&&l(ee)}).pause(),ee.deltaX=ee.deltaY=0,ee._vx=J(0,50,!0),ee._vy=J(0,50,!0),ee.scrollX=ne,ee.scrollY=ie,ee.isDragging=ee.isGesturing=ee.isPressed=!1,ee.enable=function(e){return ee.isEnabled||(z(ce?fe:r,"scroll",D),0<=t.indexOf("scroll")&&z(ce?fe:r,"scroll",De,s),0<=t.indexOf("wheel")&&z(r,"wheel",Ee,s),(0<=t.indexOf("touch")&&Te||0<=t.indexOf("pointer"))&&(z(r,se[0],ge,s),z(fe,se[2],Ae),z(fe,se[3],Ae),N&&z(r,"click",Ie),B&&z(fe,"gesturestart",Be),X&&z(fe,"gestureend",Ce),P&&z(r,ke+"enter",Ge),O&&z(r,ke+"leave",He),F&&z(r,ke+"move",Fe)),ee.isEnabled=!0,e&&e.type&&ge(e),V&&V(ee)),ee},ee.disable=function(){ee.isEnabled&&(Oe.filter(function(e){return e!==ee&&y(e.target)}).length||A(ce?fe:r,"scroll",D),A(ce?fe:r,"scroll",De),A(r,"wheel",Ee),A(r,se[0],ge),A(fe,se[2],Ae),A(fe,se[3],Ae),A(r,"click",Ie),A(fe,"gesturestart",Be),A(fe,"gestureend",Ce),A(r,ke+"enter",Ge),A(r,ke+"leave",He),A(r,ke+"move",Fe),ee.isEnabled=!1,G&&G(ee))},ee.kill=function(){ee.disable();var e=Oe.indexOf(ee);0<=e&&Oe.splice(e,1),Pe===ee&&(Pe=0)},Oe.push(ee),R&&(Pe=ee),ee.enable(d)},function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}(Observer,[{key:"velocityX",get:function get(){return this._vx.getVelocity()}},{key:"velocityY",get:function get(){return this._vy.getVelocity()}}]),Observer);function Observer(e){this.init(e)}w.version="3.10.2",w.create=function(e){return new w(e)},w.register=M,w.getAll=function(){return Oe.slice()},w.getById=function(t){return Oe.filter(function(e){return e.vars.id===t})[0]},p()&&he.registerPlugin(w);function sa(){return $e=1}function ta(){return $e=0}function ua(e){return e}function va(e){return Math.round(1e5*e)/1e5||0}function wa(){return"undefined"!=typeof window}function xa(){return je||wa()&&(je=window.gsap)&&je.registerPlugin&&je}function ya(e){return!!~a.indexOf(e)}function za(e){return x(e,"getBoundingClientRect")||(ya(e)?function(){return Mt.width=Ve.innerWidth,Mt.height=Ve.innerHeight,Mt}:function(){return wt(e)})}function Ca(e,t){var r=t.s,n=t.d2,i=t.d,o=t.a;return(r="scroll"+n)&&(o=x(e,r))?o()-za(e)()[i]:ya(e)?(Ke[r]||We[r])-(Ve["inner"+n]||Ke["client"+n]||We["client"+n]):e[r]-e["offset"+n]}function Da(e,t){for(var r=0;r<g.length;r+=3)t&&!~t.indexOf(g[r+1])||e(g[r],g[r+1],g[r+2])}function Ea(e){return"string"==typeof e}function Fa(e){return"function"==typeof e}function Ga(e){return"number"==typeof e}function Ha(e){return"object"==typeof e}function Ia(e){return Fa(e)&&e()}function Ja(r,n){return function(){var e=Ia(r),t=Ia(n);return function(){Ia(e),Ia(t)}}}function Ka(e,t,r){return e&&e.progress(t?0:1)&&r&&e.pause()}function La(e,t){if(e.enabled){var r=t(e);r&&r.totalTime&&(e.callbackAnimation=r)}}function ab(e){return Ve.getComputedStyle(e)}function cb(e,t){for(var r in t)r in e||(e[r]=t[r]);return e}function eb(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0}function fb(e){var t,r=[],n=e.labels,i=e.duration();for(t in n)r.push(n[t]/i);return r}function hb(i){var o=je.utils.snap(i),a=Array.isArray(i)&&i.slice(0).sort(function(e,t){return e-t});return a?function(e,t,r){var n;if(void 0===r&&(r=.001),!t)return o(e);if(0<t){for(e-=r,n=0;n<a.length;n++)if(a[n]>=e)return a[n];return a[n-1]}for(n=a.length,e+=r;n--;)if(a[n]<=e)return a[n];return a[0]}:function(e,t,r){void 0===r&&(r=.001);var n=o(e);return!t||Math.abs(n-e)<r||n-e<0==t<0?n:o(t<0?e-i:e+i)}}function jb(t,r,e,n){return e.split(",").forEach(function(e){return t(r,e,n)})}function kb(e,t,r,n){return e.addEventListener(t,r,{passive:!n})}function lb(e,t,r){return e.removeEventListener(t,r)}function mb(e,t,r){return r&&r.wheelHandler&&e(t,"wheel",r)}function qb(e,t){if(Ea(e)){var r=e.indexOf("="),n=~r?(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in F?F[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function rb(e,t,r,n,i,o,a,s){var l=i.startColor,c=i.endColor,u=i.fontSize,f=i.indent,d=i.fontWeight,p=Ne.createElement("div"),g=ya(r)||"fixed"===x(r,"pinType"),h=-1!==e.indexOf("scroller"),b=g?We:r,v=-1!==e.indexOf("start"),m=v?l:c,y="border-color:"+m+";font-size:"+u+";color:"+m+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((h||s)&&g?"fixed;":"absolute;"),!h&&!s&&g||(y+=(n===Xe?C:P)+":"+(o+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=v,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=y,p.innerText=t||0===t?e+"-"+t:e,b.children[0]?b.insertBefore(p,b.children[0]):b.appendChild(p),p._offset=p["offset"+n.op.d2],Y(p,0,n,v),p}function wb(){return 34<st()-lt&&Z()}function xb(){b&&b.isPressed||(ze.cache++,_=_||requestAnimationFrame(Z),lt||j("scrollStart"),lt=st())}function yb(){ze.cache++,Ze||h||Ne.fullscreenElement||v&&S===Ve.innerWidth&&!(Math.abs(Ve.innerHeight-m)>.25*Ve.innerHeight)||s.restart(!0)}function Eb(e){var t,r=je.ticker.frame,n=[],i=0;if(T!==r||at){for(N();i<X.length;i+=4)(t=Ve.matchMedia(X[i]).matches)!==X[i+3]&&((X[i+3]=t)?n.push(i):N(1,X[i])||Fa(X[i+2])&&X[i+2]());for(G(),i=0;i<n.length;i++)t=n[i],nt=X[t],X[t+2]=X[t+1](e);nt=0,o&&q(0,1),T=r,j("matchMedia")}}function Fb(){return lb(re,"scrollEnd",Fb)||q(!0)}function Kb(){return ze.cache++&&ze.forEach(function(e){return"function"==typeof e&&(e.rec=0)})}function Vb(e,t,r,n){if(e.parentNode!==t){for(var i,o=$.length,a=t.style,s=e.style;o--;)a[i=$[o]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),s[P]=s[C]=a.flexBasis="auto",a.overflow="visible",a.boxSizing="border-box",a[ft]=eb(e,Le)+xt,a[dt]=eb(e,Xe)+xt,a[vt]=s[mt]=s.top=s.left="0",Ct(n),s[ft]=s.maxWidth=r[ft],s[dt]=s.maxHeight=r[dt],s[vt]=r[vt],e.parentNode.insertBefore(t,e),t.appendChild(e)}}function Yb(e){for(var t=Q.length,r=e.style,n=[],i=0;i<t;i++)n.push(Q[i],r[Q[i]]);return n.t=e,n}function _b(e,t,r,n,i,o,a,s,l,c,u,f,d){Fa(e)&&(e=e(s)),Ea(e)&&"max"===e.substr(0,3)&&(e=f+("="===e.charAt(4)?qb("0"+e.substr(3),r):0));var p,g,h,b=d?d.time():0;if(d&&d.seek(0),Ga(e))a&&Y(a,r,n,!0);else{Fa(t)&&(t=t(s));var v,m,y,x,w=e.split(" ");h=H(t)||We,(v=wt(h)||{})&&(v.left||v.top)||"none"!==ab(h).display||(x=h.style.display,h.style.display="block",v=wt(h),x?h.style.display=x:h.style.removeProperty("display")),m=qb(w[0],v[n.d]),y=qb(w[1]||"0",r),e=v[n.p]-l[n.p]-c+m+i-y,a&&Y(a,y,n,r-y<20||a._isStart&&20<y),r-=r-y}if(o){var S=e+r,_=o._isStart;p="scroll"+n.d2,Y(o,S,n,_&&20<S||!_&&(u?Math.max(We[p],Ke[p]):o.parentNode[p])<=S+1),u&&(l=wt(a),u&&(o.style[n.op.p]=l[n.op.p]-n.op.m-o._offset+xt))}return d&&h&&(p=wt(h),d.seek(f),g=wt(h),d._caScrollDist=p[n.p]-g[n.p],e=e/d._caScrollDist*f),d&&d.seek(b),d?e:Math.round(e)}function bc(e,t,r,n){if(e.parentNode!==t){var i,o,a=e.style;if(t===We){for(i in e._stOrig=a.cssText,o=ab(e))+i||te.test(i)||!o[i]||"string"!=typeof a[i]||"0"===i||(a[i]=o[i]);a.top=r,a.left=n}else a.cssText=e._stOrig;je.core.getCache(e).uncache=1,t.appendChild(e)}}function cc(l,e){function nj(e,t,r,n,i){var o=nj.tween,a=t.onComplete,s={};return r=r||f(),i=n&&i||0,n=n||e-r,o&&o.kill(),c=Math.round(r),t[d]=e,(t.modifiers=s)[d]=function(e){return(e=va(f()))!==c&&e!==u&&2<Math.abs(e-c)&&2<Math.abs(e-u)?(o.kill(),nj.tween=0):e=r+n*o.ratio+i*o.ratio*o.ratio,u=c,c=va(e)},t.onComplete=function(){nj.tween=0,a&&a.call(o)},o=nj.tween=je.to(l,t)}var c,u,f=I(l,e),d="_scroll"+e.p2;return(l[d]=f).wheelHandler=function(){return nj.tween&&nj.tween.kill()&&(nj.tween=0)},kb(l,"wheel",f.wheelHandler),nj}var je,o,Ve,Ne,Ke,We,a,s,qe,Je,Ue,l,Ze,$e,c,Qe,f,d,g,et,tt,h,b,v,m,S,rt,_,nt,T,it,ot,at=1,st=Date.now,k=st(),lt=0,ct=0,ut=Math.abs,C="right",P="bottom",ft="width",dt="height",pt="Right",gt="Left",ht="Top",bt="Bottom",vt="padding",mt="margin",yt="Width",O="Height",xt="px",wt=function _getBounds(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==ab(e)[c]&&je.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect();return r&&r.progress(0).kill(),n},St={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},_t={toggleActions:"play",anticipatePin:0},F={top:0,left:0,center:.5,bottom:1,right:1},Y=function _positionMarker(e,t,r,n){var i={display:"block"},o=r[n?"os2":"p2"],a=r[n?"p2":"os2"];e._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+o+yt]=1,i["border"+a+yt]=0,i[r.p]=t+"px",je.set(e,i)},Tt=[],kt={},R={},B=[],X=[],j=function _dispatch(e){return R[e]&&R[e].map(function(e){return e()})||B},V=[],G=function _revertRecorded(e){for(var t=0;t<V.length;t+=5)e&&V[t+4]!==e||(V[t].style.cssText=V[t+1],V[t].getBBox&&V[t].setAttribute("transform",V[t+2]||""),V[t+3].uncache=1)},N=function _revertAll(e,t){var r;for(Qe=0;Qe<Tt.length;Qe++)r=Tt[Qe],t&&r.media!==t||(e?r.kill(1):r.revert());t&&G(t),t||j("revert")},W=0,q=function _refreshAll(e,t){if(!lt||e){it=!0;var r=j("refreshInit");et&&re.sort(),t||N(),Tt.slice(0).forEach(function(e){return e.refresh()}),Tt.forEach(function(e){return"max"===e.vars.end&&e.setPositions(e.start,Ca(e.scroller,e._dir))}),r.forEach(function(e){return e&&e.render&&e.render(-1)}),Kb(),s.pause(),W++,it=!1,j("refresh")}else kb(re,"scrollEnd",Fb)},U=0,Et=1,Z=function _updateAll(){if(!it){ot&&ot.update(0),re.isUpdating=!0;var e=Tt.length,t=st(),r=50<=t-k,n=e&&Tt[0].scroll();if(Et=n<U?-1:1,U=n,r&&(lt&&!$e&&200<t-lt&&(lt=0,j("scrollEnd")),Ue=k,k=t),Et<0){for(Qe=e;0<Qe--;)Tt[Qe]&&Tt[Qe].update(0,r);Et=1}else for(Qe=0;Qe<e;Qe++)Tt[Qe]&&Tt[Qe].update(0,r);re.isUpdating=!1}_=0},$=["left","top",P,C,mt+bt,mt+pt,mt+ht,mt+gt,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Q=$.concat([ft,dt,"boxSizing","max"+yt,"max"+O,"position",mt,vt,vt+ht,vt+pt,vt+bt,vt+gt]),ee=/([A-Z])/g,Ct=function _setState(e){if(e){var t,r,n=e.t.style,i=e.length,o=0;for((e.t._gsap||je.core.getCache(e.t)).uncache=1;o<i;o+=2)r=e[o+1],t=e[o],r?n[t]=r:n[t]&&n.removeProperty(t.replace(ee,"-$1").toLowerCase())}},Mt={left:0,top:0},te=/(webkit|moz|length|cssText|inset)/i,re=(ScrollTrigger.prototype.init=function init(_,T){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),ct){var v,n,f,k,E,C,M,P,O,A,D,e,z,F,Y,R,L,t,B,m,X,j,y,V,w,S,r,G,N,K,i,d,W,q,J,U,Z,o,$=(_=cb(Ea(_)||Ga(_)||_.nodeType?{trigger:_}:_,_t)).onUpdate,Q=_.toggleClass,a=_.id,ee=_.onToggle,te=_.onRefresh,re=_.scrub,ne=_.trigger,ie=_.pin,oe=_.pinSpacing,ae=_.invalidateOnRefresh,se=_.anticipatePin,s=_.onScrubComplete,p=_.onSnapComplete,le=_.once,ce=_.snap,ue=_.pinReparent,l=_.pinSpacer,fe=_.containerAnimation,de=_.fastScrollEnd,pe=_.preventOverlaps,ge=_.horizontal||_.containerAnimation&&!1!==_.horizontal?Le:Xe,he=!re&&0!==re,be=H(_.scroller||Ve),c=je.core.getCache(be),ve=ya(be),me="fixed"===("pinType"in _?_.pinType:x(be,"pinType")||ve&&"fixed"),ye=[_.onEnter,_.onLeave,_.onEnterBack,_.onLeaveBack],xe=he&&_.toggleActions.split(" "),u="markers"in _?_.markers:_t.markers,we=ve?0:parseFloat(ab(be)["border"+ge.p2+yt])||0,Se=this,_e=_.onRefreshInit&&function(){return _.onRefreshInit(Se)},Te=function _getSizeFunc(e,t,r){var n=r.d,i=r.d2,o=r.a;return(o=x(e,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(t?Ve["inner"+i]:e["client"+i])||0}}(be,ve,ge),ke=function _getOffsetsFunc(e,t){return!t||~Ye.indexOf(e)?za(e):function(){return Mt}}(be,ve),g=0,Ee=I(be,ge);if(Se.media=nt,Se._dir=ge,se*=45,Se.scroller=be,Se.scroll=fe?fe.time.bind(fe):Ee,k=Ee(),Se.vars=_,T=T||_.animation,"refreshPriority"in _&&(et=1,-9999===_.refreshPriority&&(ot=Se)),c.tweenScroll=c.tweenScroll||{top:cc(be,Xe),left:cc(be,Le)},Se.tweenTo=v=c.tweenScroll[ge.p],Se.scrubDuration=function(e){(i=Ga(e)&&e)?K?K.duration(e):K=je.to(T,{ease:"expo",totalProgress:"+=0.001",duration:i,paused:!0,onComplete:function onComplete(){return s&&s(Se)}}):(K&&K.progress(1).kill(),K=0)},T&&(T.vars.lazy=!1,T._initted||!1!==T.vars.immediateRender&&!1!==_.immediateRender&&T.render(0,!0,!0),Se.animation=T.pause(),(T.scrollTrigger=Se).scrubDuration(re),G=0,a=a||T.vars.id),Tt.push(Se),ce&&(Ha(ce)&&!ce.push||(ce={snapTo:ce}),"scrollBehavior"in We.style&&je.set(ve?[We,Ke]:be,{scrollBehavior:"auto"}),f=Fa(ce.snapTo)?ce.snapTo:"labels"===ce.snapTo?function _getClosestLabel(t){return function(e){return je.utils.snap(fb(t),e)}}(T):"labelsDirectional"===ce.snapTo?function _getLabelAtDirection(r){return function(e,t){return hb(fb(r))(e,t.direction)}}(T):!1!==ce.directional?function(e,t){return hb(ce.snapTo)(e,Ze?0:t.direction)}:je.utils.snap(ce.snapTo),d=ce.duration||{min:.1,max:2},d=Ha(d)?Je(d.min,d.max):Je(d,d),W=je.delayedCall(ce.delay||i/2||.1,function(){if(Math.abs(Se.getVelocity())<10&&!$e&&g!==Ee()){var e=T&&!he?T.totalProgress():Se.progress,t=(e-N)/(st()-Ue)*1e3||0,r=je.utils.clamp(-Se.progress,1-Se.progress,ut(t/2)*t/.185),n=Se.progress+(!1===ce.inertia?0:r),i=Je(0,1,f(n,Se)),o=Ee(),a=Math.round(C+i*z),s=ce.onStart,l=ce.onInterrupt,c=ce.onComplete,u=v.tween;if(o<=M&&C<=o&&a!==o){if(u&&!u._initted&&u.data<=ut(a-o))return;!1===ce.inertia&&(r=i-Se.progress),v(a,{duration:d(ut(.185*Math.max(ut(n-e),ut(i-e))/t/.05||0)),ease:ce.ease||"power3",data:ut(a-o),onInterrupt:function onInterrupt(){return W.restart(!0)&&l&&l(Se)},onComplete:function onComplete(){Se.update(),g=Ee(),G=N=T&&!he?T.totalProgress():Se.progress,p&&p(Se),c&&c(Se)}},o,r*z,a-o-r*z),s&&s(Se,v.tween)}}else Se.isActive&&W.restart(!0)}).pause()),a&&(kt[a]=Se),o=(o=(ne=Se.trigger=H(ne||ie))&&ne._gsap&&ne._gsap.stRevert)&&o(Se),ie=!0===ie?ne:H(ie),Ea(Q)&&(Q={targets:ne,className:Q}),ie&&(!1===oe||oe===mt||(oe=!(!oe&&"flex"===ab(ie.parentNode).display)&&vt),Se.pin=ie,!1!==_.force3D&&je.set(ie,{force3D:!0}),(n=je.core.getCache(ie)).spacer?F=n.pinState:(l&&((l=H(l))&&!l.nodeType&&(l=l.current||l.nativeElement),n.spacerIsNative=!!l,l&&(n.spacerState=Yb(l))),n.spacer=L=l||Ne.createElement("div"),L.classList.add("pin-spacer"),a&&L.classList.add("pin-spacer-"+a),n.pinState=F=Yb(ie)),Se.spacer=L=n.spacer,r=ab(ie),y=r[oe+ge.os2],B=je.getProperty(ie),m=je.quickSetter(ie,ge.a,xt),Vb(ie,L,r),R=Yb(ie)),u){e=Ha(u)?cb(u,St):St,A=rb("scroller-start",a,be,ge,e,0),D=rb("scroller-end",a,be,ge,e,0,A),t=A["offset"+ge.op.d2];var h=H(x(be,"content")||be);P=this.markerStart=rb("start",a,h,ge,e,t,0,fe),O=this.markerEnd=rb("end",a,h,ge,e,t,0,fe),fe&&(Z=je.quickSetter([P,O],ge.a,xt)),me||Ye.length&&!0===x(be,"fixedMarkers")||(function _makePositionable(e){var t=ab(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"}(ve?We:be),je.set([A,D],{force3D:!0}),w=je.quickSetter(A,ge.a,xt),S=je.quickSetter(D,ge.a,xt))}if(fe){var b=fe.vars.onUpdate,Ce=fe.vars.onUpdateParams;fe.eventCallback("onUpdate",function(){Se.update(0,0,1),b&&b.apply(Ce||[])})}Se.previous=function(){return Tt[Tt.indexOf(Se)-1]},Se.next=function(){return Tt[Tt.indexOf(Se)+1]},Se.revert=function(e){var t=!1!==e||!Se.enabled,r=Ze;t!==Se.isReverted&&(t&&(!Se.scroll.rec&&Ze&&it&&(Se.scroll.rec=Ee()),J=Math.max(Ee(),Se.scroll.rec||0),q=Se.progress,U=T&&T.progress()),P&&[P,O,A,D].forEach(function(e){return e.style.display=t?"none":"block"}),t&&(Ze=1),Se.update(t),Ze=r,ie&&(t?function _swapPinOut(e,t,r){Ct(r);var n=e._gsap;if(n.spacerIsNative)Ct(n.spacerState);else if(e.parentNode===t){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}}(ie,L,F):ue&&Se.isActive||Vb(ie,L,ab(ie),V)),Se.isReverted=t)},Se.refresh=function(e,t){if(!Ze&&Se.enabled||t)if(ie&&e&&lt)kb(ScrollTrigger,"scrollEnd",Fb);else{!it&&_e&&_e(Se),Ze=1,K&&K.pause(),ae&&T&&T.time(-.01,!0).invalidate(),Se.isReverted||Se.revert();for(var r,n,i,o,a,s,l,c,u,f,d=Te(),p=ke(),g=fe?fe.duration():Ca(be,ge),h=0,b=0,v=_.end,m=_.endTrigger||ne,y=_.start||(0!==_.start&&ne?ie?"0 0":"0 100%":0),x=Se.pinnedContainer=_.pinnedContainer&&H(_.pinnedContainer),w=ne&&Math.max(0,Tt.indexOf(Se))||0,S=w;S--;)(s=Tt[S]).end||s.refresh(0,1)||(Ze=1),!(l=s.pin)||l!==ne&&l!==ie||s.isReverted||((f=f||[]).unshift(s),s.revert()),s!==Tt[S]&&(w--,S--);for(Fa(y)&&(y=y(Se)),C=_b(y,ne,d,ge,Ee(),P,A,Se,p,we,me,g,fe)||(ie?-.001:0),Fa(v)&&(v=v(Se)),Ea(v)&&!v.indexOf("+=")&&(~v.indexOf(" ")?v=(Ea(y)?y.split(" ")[0]:"")+v:(h=qb(v.substr(2),d),v=Ea(y)?y:C+h,m=ne)),M=Math.max(C,_b(v||(m?"100% 0":g),m,d,ge,Ee()+h,O,D,Se,p,we,me,g,fe))||-.001,z=M-C||(C-=.01)&&.001,h=0,S=w;S--;)(l=(s=Tt[S]).pin)&&s.start-s._pinPush<C&&!fe&&0<s.end&&(r=s.end-s.start,l!==ne&&l!==x||Ga(y)||(h+=r*(1-s.progress)),l===ie&&(b+=r));if(C+=h,M+=h,Se._pinPush=b,P&&h&&((r={})[ge.a]="+="+h,x&&(r[ge.p]="-="+Ee()),je.set([P,O],r)),ie)r=ab(ie),o=ge===Xe,i=Ee(),X=parseFloat(B(ge.a))+b,!g&&1<M&&((ve?We:be).style["overflow-"+ge.a]="scroll"),Vb(ie,L,r),R=Yb(ie),n=wt(ie,!0),c=me&&I(be,o?Le:Xe)(),oe&&((V=[oe+ge.os2,z+b+xt]).t=L,(S=oe===vt?eb(ie,ge)+z+b:0)&&V.push(ge.d,S+xt),Ct(V),me&&Ee(J)),me&&((a={top:n.top+(o?i-C:c)+xt,left:n.left+(o?c:i-C)+xt,boxSizing:"border-box",position:"fixed"})[ft]=a.maxWidth=Math.ceil(n.width)+xt,a[dt]=a.maxHeight=Math.ceil(n.height)+xt,a[mt]=a[mt+ht]=a[mt+pt]=a[mt+bt]=a[mt+gt]="0",a[vt]=r[vt],a[vt+ht]=r[vt+ht],a[vt+pt]=r[vt+pt],a[vt+bt]=r[vt+bt],a[vt+gt]=r[vt+gt],Y=function _copyState(e,t,r){for(var n,i=[],o=e.length,a=r?8:0;a<o;a+=2)n=e[a],i.push(n,n in t?t[n]:e[a+1]);return i.t=e.t,i}(F,a,ue)),T?(u=T._initted,tt(1),T.render(T.duration(),!0,!0),j=B(ge.a)-X+z+b,z!==j&&Y.splice(Y.length-2,2),T.render(0,!0,!0),u||T.invalidate(),tt(0)):j=z;else if(ne&&Ee()&&!fe)for(n=ne.parentNode;n&&n!==We;)n._pinOffset&&(C-=n._pinOffset,M-=n._pinOffset),n=n.parentNode;f&&f.forEach(function(e){return e.revert(!1)}),Se.start=C,Se.end=M,k=E=Ee(),fe||(k<J&&Ee(J),Se.scroll.rec=0),Se.revert(!1),W&&Se.isActive&&Ee(C+z*q),Ze=0,T&&he&&(T._initted||U)&&T.progress()!==U&&T.progress(U,!0).render(T.time(),!0,!0),q===Se.progress&&!fe||(T&&!he&&T.totalProgress(q,!0),Se.progress=q,Se.update(0,0,1)),ie&&oe&&(L._pinOffset=Math.round(Se.progress*j)),te&&te(Se)}},Se.getVelocity=function(){return(Ee()-E)/(st()-Ue)*1e3||0},Se.endAnimation=function(){Ka(Se.callbackAnimation),T&&(K?K.progress(1):T.paused()?he||Ka(T,Se.direction<0,1):Ka(T,T.reversed()))},Se.labelToScroll=function(e){return T&&T.labels&&(C||Se.refresh()||C)+T.labels[e]/T.duration()*z||0},Se.getTrailing=function(t){var e=Tt.indexOf(Se),r=0<Se.direction?Tt.slice(0,e).reverse():Tt.slice(e+1);return(Ea(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r).filter(function(e){return 0<Se.direction?e.end<=C:e.start>=M})},Se.update=function(e,t,r){if(!fe||r||e){var n,i,o,a,s,l,c,u=Se.scroll(),f=e?0:(u-C)/z,d=f<0?0:1<f?1:f||0,p=Se.progress;if(t&&(E=k,k=fe?Ee():u,ce&&(N=G,G=T&&!he?T.totalProgress():d)),se&&!d&&ie&&!Ze&&!at&&lt&&C<u+(u-E)/(st()-Ue)*se&&(d=1e-4),d!==p&&Se.enabled){if(a=(s=(n=Se.isActive=!!d&&d<1)!=(!!p&&p<1))||!!d!=!!p,Se.direction=p<d?1:-1,Se.progress=d,a&&!Ze&&(i=d&&!p?0:1===d?1:1===p?2:3,he&&(o=!s&&"none"!==xe[i+1]&&xe[i+1]||xe[i],c=T&&("complete"===o||"reset"===o||o in T))),pe&&(s||c)&&(c||re||!T)&&(Fa(pe)?pe(Se):Se.getTrailing(pe).forEach(function(e){return e.endAnimation()})),he||(!K||Ze||at?T&&T.totalProgress(d,!!Ze):((fe||ot&&ot!==Se)&&K.render(K._dp._time-K._start),K.resetTo?K.resetTo("totalProgress",d,T._tTime/T._tDur):(K.vars.totalProgress=d,K.invalidate().restart()))),ie)if(e&&oe&&(L.style[oe+ge.os2]=y),me){if(a){if(l=!e&&p<d&&u<M+1&&u+1>=Ca(be,ge),ue)if(e||!n&&!l)bc(ie,L);else{var g=wt(ie,!0),h=u-C;bc(ie,We,g.top+(ge===Xe?h:0)+xt,g.left+(ge===Xe?0:h)+xt)}Ct(n||l?Y:R),j!==z&&d<1&&n||m(X+(1!==d||l?0:j))}}else m(va(X+j*d));!ce||v.tween||Ze||at||W.restart(!0),Q&&(s||le&&d&&(d<1||!rt))&&qe(Q.targets).forEach(function(e){return e.classList[n||le?"add":"remove"](Q.className)}),!$||he||e||$(Se),a&&!Ze?(he&&(c&&("complete"===o?T.pause().totalProgress(1):"reset"===o?T.restart(!0).pause():"restart"===o?T.restart(!0):T[o]()),$&&$(Se)),!s&&rt||(ee&&s&&La(Se,ee),ye[i]&&La(Se,ye[i]),le&&(1===d?Se.kill(!1,1):ye[i]=0),s||ye[i=1===d?1:3]&&La(Se,ye[i])),de&&!n&&Math.abs(Se.getVelocity())>(Ga(de)?de:2500)&&(Ka(Se.callbackAnimation),K?K.progress(1):Ka(T,!d,1))):he&&$&&!Ze&&$(Se)}if(S){var b=fe?u/fe.duration()*(fe._caScrollDist||0):u;w(b+(A._isFlipped?1:0)),S(b)}Z&&Z(-u/fe.duration()*(fe._caScrollDist||0))}},Se.enable=function(e,t){Se.enabled||(Se.enabled=!0,kb(be,"resize",yb),kb(ve?Ne:be,"scroll",xb),_e&&kb(ScrollTrigger,"refreshInit",_e),!1!==e&&(Se.progress=q=0,k=E=g=Ee()),!1!==t&&Se.refresh())},Se.getTween=function(e){return e&&v?v.tween:K},Se.setPositions=function(e,t){ie&&(X+=e-C,j+=t-e-z),Se.start=C=e,Se.end=M=t,z=t-e,Se.update()},Se.disable=function(e,t){if(Se.enabled&&(!1!==e&&Se.revert(),Se.enabled=Se.isActive=!1,t||K&&K.pause(),J=0,n&&(n.uncache=1),_e&&lb(ScrollTrigger,"refreshInit",_e),W&&(W.pause(),v.tween&&v.tween.kill()&&(v.tween=0)),!ve)){for(var r=Tt.length;r--;)if(Tt[r].scroller===be&&Tt[r]!==Se)return;lb(be,"resize",yb),lb(be,"scroll",xb)}},Se.kill=function(e,t){Se.disable(e,t),K&&!t&&K.kill(),a&&delete kt[a];var r=Tt.indexOf(Se);0<=r&&Tt.splice(r,1),r===Qe&&0<Et&&Qe--,r=0,Tt.forEach(function(e){return e.scroller===Se.scroller&&(r=1)}),r||(Se.scroll.rec=0),T&&(T.scrollTrigger=null,e&&T.render(-1),t||T.kill()),P&&[P,O,A,D].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),ie&&(n&&(n.uncache=1),r=0,Tt.forEach(function(e){return e.pin===ie&&r++}),r||(n.spacer=0)),_.onKill&&_.onKill(Se)},Se.enable(!1,!1),o&&o(Se),T&&T.add&&!z?je.delayedCall(.01,function(){return C||M||Se.refresh()})&&(z=.01)&&(C=M=0):Se.refresh()}else this.update=this.refresh=this.kill=ua},ScrollTrigger.register=function register(e){return o||(je=e||xa(),wa()&&window.document&&ScrollTrigger.enable(),o=ct),o},ScrollTrigger.defaults=function defaults(e){if(e)for(var t in e)_t[t]=e[t];return _t},ScrollTrigger.disable=function disable(t,r){ct=0,Tt.forEach(function(e){return e[r?"kill":"disable"](t)}),lb(Ve,"wheel",xb),lb(Ne,"scroll",xb),clearInterval(l),lb(Ne,"touchcancel",ua),lb(We,"touchstart",ua),jb(lb,Ne,"pointerdown,touchstart,mousedown",sa),jb(lb,Ne,"pointerup,touchend,mouseup",ta),s.kill(),Da(lb);for(var e=0;e<ze.length;e+=3)mb(lb,ze[e],ze[e+1]),mb(lb,ze[e],ze[e+2])},ScrollTrigger.enable=function enable(){if(Ve=window,Ne=document,Ke=Ne.documentElement,We=Ne.body,je&&(qe=je.utils.toArray,Je=je.utils.clamp,tt=je.core.suppressOverwrites||ua,je.core.globals("ScrollTrigger",ScrollTrigger),We)){ct=1,ScrollTrigger.isTouch=Ve.matchMedia&&Ve.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Ve||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,a=[Ve,Ne,Ke,We],m=Ve.innerHeight,S=Ve.innerWidth,w.register(je),kb(Ne,"scroll",xb);var e,t,r=We.style,n=r.borderTopStyle;for(r.borderTopStyle="solid",e=wt(We),Xe.m=Math.round(e.top+Xe.sc())||0,Le.m=Math.round(e.left+Le.sc())||0,n?r.borderTopStyle=n:r.removeProperty("border-top-style"),l=setInterval(wb,250),je.delayedCall(.5,function(){return at=0}),kb(Ne,"touchcancel",ua),kb(We,"touchstart",ua),jb(kb,Ne,"pointerdown,touchstart,mousedown",sa),jb(kb,Ne,"pointerup,touchend,mouseup",ta),c=je.utils.checkPrefix("transform"),Q.push(c),o=st(),s=je.delayedCall(.2,q).pause(),g=[Ne,"visibilitychange",function(){var e=Ve.innerWidth,t=Ve.innerHeight;Ne.hidden?(f=e,d=t):f===e&&d===t||yb()},Ne,"DOMContentLoaded",q,Ve,"load",q,Ve,"resize",yb],Da(kb),Tt.forEach(function(e){return e.enable(0,1)}),t=0;t<ze.length;t+=3)mb(lb,ze[t],ze[t+1]),mb(lb,ze[t],ze[t+2])}},ScrollTrigger.config=function config(e){"limitCallbacks"in e&&(rt=!!e.limitCallbacks);var t=e.syncInterval;t&&clearInterval(l)||(l=t)&&setInterval(wb,t),"ignoreMobileResize"in e&&(v=1===ScrollTrigger.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Da(lb)||Da(kb,e.autoRefreshEvents||"none"),h=-1===(e.autoRefreshEvents+"").indexOf("resize"))},ScrollTrigger.scrollerProxy=function scrollerProxy(e,t){var r=H(e),n=ze.indexOf(r),i=ya(r);~n&&ze.splice(n,i?6:2),t&&(i?Ye.unshift(Ve,t,We,t,Ke,t):Ye.unshift(r,t))},ScrollTrigger.matchMedia=function matchMedia(e){var t,r,n,i,o;for(r in e)n=X.indexOf(r),i=e[r],"all"===(nt=r)?i():(t=Ve.matchMedia(r))&&(t.matches&&(o=i()),~n?(X[n+1]=Ja(X[n+1],i),X[n+2]=Ja(X[n+2],o)):(n=X.length,X.push(r,i,o),t.addListener?t.addListener(Eb):t.addEventListener("change",Eb)),X[n+3]=t.matches),nt=0;return X},ScrollTrigger.clearMatchMedia=function clearMatchMedia(e){e||(X.length=0),0<=(e=X.indexOf(e))&&X.splice(e,4)},ScrollTrigger.isInViewport=function isInViewport(e,t,r){var n=(Ea(e)?H(e):e).getBoundingClientRect(),i=n[r?ft:dt]*t||0;return r?0<n.right-i&&n.left+i<Ve.innerWidth:0<n.bottom-i&&n.top+i<Ve.innerHeight},ScrollTrigger.positionInViewport=function positionInViewport(e,t,r){Ea(e)&&(e=H(e));var n=e.getBoundingClientRect(),i=n[r?ft:dt],o=null==t?i/2:t in F?F[t]*i:~t.indexOf("%")?parseFloat(t)*i/100:parseFloat(t)||0;return r?(n.left+o)/Ve.innerWidth:(n.top+o)/Ve.innerHeight},ScrollTrigger);function ScrollTrigger(e,t){o||ScrollTrigger.register(je)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,t)}re.version="3.10.2",re.saveStyles=function(e){return e?qe(e).forEach(function(e){if(e&&e.style){var t=V.indexOf(e);0<=t&&V.splice(t,5),V.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),je.core.getCache(e),nt)}}):V},re.revert=function(e,t){return N(!e,t)},re.create=function(e,t){return new re(e,t)},re.refresh=function(e){return e?yb():(o||re.register())&&q(!0)},re.update=Z,re.clearScrollMemory=Kb,re.maxScroll=function(e,t){return Ca(e,t?Le:Xe)},re.getScrollFunc=function(e,t){return I(H(e),t?Le:Xe)},re.getById=function(e){return kt[e]},re.getAll=function(){return Tt.filter(function(e){return"ScrollSmoother"!==e.vars.id})},re.isScrolling=function(){return!!lt},re.snapDirectional=hb,re.addEventListener=function(e,t){var r=R[e]||(R[e]=[]);~r.indexOf(t)||r.push(t)},re.removeEventListener=function(e,t){var r=R[e],n=r&&r.indexOf(t);0<=n&&r.splice(n,1)},re.batch=function(e,t){function On(e,t){var r=[],n=[],i=je.delayedCall(o,function(){t(r,n),r=[],n=[]}).pause();return function(e){r.length||i.restart(!0),r.push(e.trigger),n.push(e),a<=r.length&&i.progress(1)}}var r,n=[],i={},o=t.interval||.016,a=t.batchMax||1e9;for(r in t)i[r]="on"===r.substr(0,2)&&Fa(t[r])&&"onRefreshInit"!==r?On(0,t[r]):t[r];return Fa(a)&&(a=a(),kb(re,"refresh",function(){return a=t.batchMax()})),qe(e).forEach(function(e){var t={};for(r in i)t[r]=i[r];t.trigger=e,n.push(re.create(t))}),n};function ec(e,t,r,n){return n<t?e(n):t<0&&e(0),n<r?(n-t)/(r-t):r<0?t/(t-r):1}function fc(e){!0===e?(We.style.removeProperty("touch-action"),Ke.style.removeProperty("touch-action")):We.style.touchAction=Ke.style.touchAction=e?"pan-"+e:"none"}function gc(e){function po(){return d=st()}function qo(){return n=!1}function to(){r=Ca(Ke,Xe),m=Je(0,r),f&&(v=Je(0,Ca(Ke,Le))),o=W}function Bo(){to(),s.isActive()&&s.vars.scrollY>r&&s.resetTo("scrollY",Ca(Ke,Xe))}Ha(e)||(e={}),e.preventDefault=e.isNormalizer=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,r,n,o,s,a,l,c,u,f=e.normalizeScrollX,i=e.momentum,d=0,p=I(Ke,Xe),g=I(Ke,Le),h=1,b=Fa(i)?function(){return i(t)}:function(){return i||2.8},v=ua,m=ua,y=re.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent);return e.ignoreCheck=function(e){return y&&"touchmove"===e.type&&function ignoreDrag(){if(n)return requestAnimationFrame(qo),!0;n=!0}()||1<h||t.isGesturing||e.touches&&1<e.touches.length},e.onPress=function(){var e=h;h=Ve.visualViewport&&Ve.visualViewport.scale||1,s.pause(),e!==h&&fc(1<h||!f&&"x"),n=!1,a=g(),l=p(),to(),o=W},e.onRelease=e.onGestureStart=function(e,t){var r=e.event,n=r.changedTouches?r.changedTouches[0]:r;if(!t||Math.abs(e.x-e.startX)<=3&&Math.abs(e.y-e.startY)<=3)je.delayedCall(.05,function(){if(300<st()-d&&!r.defaultPrevented)if(r.target.click)r.target.click();else if(c.createEvent){var e=c.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,Ve,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),r.target.dispatchEvent(e)}}),u.restart(!0);else{var i,o,a=b();f&&(o=(i=g())+.05*a*-e.velocityX/.227/h,a*=ec(g,i,o,Ca(Ke,Le)),s.vars.scrollX=v(o)),o=(i=p())+.05*a*-e.velocityY/.227/h,a*=ec(p,i,o,Ca(Ke,Xe)),s.vars.scrollY=m(o),s.invalidate().duration(a).play(.01)}},e.onWheel=function(){return s._ts&&s.pause()},e.onChange=function(e,t,r,n,i){W!==o&&to(),t&&f&&g(v(n[2]===t?a+(e.startX-e.x)/h:g()+t-n[1])),r&&p(m(i[2]===r?l+(e.startY-e.y)/h:p()+r-i[1])),Z()},e.onEnable=function(e){fc(!f&&"x"),kb(Ve,"resize",Bo),e.target.addEventListener("click",po,{capture:!0})},e.onDisable=function(e){fc(!0),lb(Ve,"resize",Bo),lb(e.target,"click",po)},t=new w(e),c=t.target.ownerDocument||Ne,u=t._dc,s=je.to(t,{ease:"power4",paused:!0,scrollX:f?"+=0.1":"+=0",scrollY:"+=0.1",onComplete:u.vars.onComplete}),t}re.sort=function(e){return Tt.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0))})},re.observe=function(e){return new w(e)},re.normalizeScroll=function(e){if(void 0===e)return b;if(!0===e&&b)return b.enable();var t=e instanceof w;return b&&(!1===e||t&&e!==b)&&b.kill(),e&&!t&&(e=gc(e)),b=e&&e.enable()},re.core={_getVelocityProp:J,_scrollers:ze,_proxies:Ye,bridge:{ss:function ss(){lt||j("scrollStart"),lt=st()},ref:function ref(){return Ze}}},xa()&&je.registerPlugin(re),e.ScrollTrigger=re,e.default=re;if(typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})}else{delete e.default}});
!function($){"use strict";const t="liquidDrawShape";let e={drawSVG:"0% 0%",duration:5,stagger:1,delay:0,start:"top bottom",end:"center center",scrub:!0,ease:"linear"};class i{constructor(i,s){this._defaults=e,this._name=t,this.options={...e,...s},this.DOM={},this.DOM.element=i,this.DOM.SVGEl=this.DOM.element.querySelector("svg"),this.DOM.SVGEl&&(this.buildTimeline(),this.buildScrollTrigger())}buildTimeline(){const{drawSVG:t,duration:e,stagger:i,delay:s,ease:r}=this.options;this.timeline=gsap.from(this.DOM.SVGEl.querySelectorAll(":scope > *"),{drawSVG:t,duration:e,delay:s,stagger:i,ease:r})}buildScrollTrigger(){const{start:t,end:e,scrub:i}=this.options,{timeline:s}=this,{element:r}=this.DOM;ScrollTrigger.create({trigger:r,animation:s,start:t,end:e,scrub:i})}}$.fn[t]=function(e){return this.each((function(){const s={...$(this).data("draw-shape-options"),...e};$.data(this,"plugin_"+t)||$.data(this,"plugin_"+t,new i(this,s))}))}}(jQuery),jQuery(document).ready((function($){$("[data-lqd-draw-shape]").liquidDrawShape()}));
!function($){"use strict";const t="liquidAnimatedBlob";let e={id:"lqd-blob-"+100*Math.random().toFixed(2),width:512,height:512,radius:120,speed:1,amplitude:2,anchorPoints:4,gradientType:"linear",colors:["#50F6C2","#80FFF2"]};class n{constructor(n,i){this._defaults=e,this._name=t,this.options={...e,...i},this.DOM={},this.DOM.element=n,this.DOM.svg=this.DOM.element.querySelector("svg"),this.DOM.svg&&(this.gradientPath=`lqd-blob-gradient-${this.options.id}`,fastdomPromised.mutate((()=>{this.init()})))}init(){const{width:t,height:e,amplitude:n,radius:i,anchorPoints:a}=this.options,s="http://www.w3.org/2000/svg",o=this.DOM.svg,h=undefined,r=undefined,d=t/2-.95*i,c=e/2-1.5*i,l=i/Math.max(Math.min(a,7),4)*n,u=document.createElementNS(s,"defs");o.appendChild(u),u.appendChild(this.createGradient(s));const p=document.createElementNS(s,"g");o.appendChild(p);const m=document.createElementNS(s,"path");m.setAttributeNS(null,"fill",`url(${window.location.href}#${this.gradientPath})`),p.appendChild(m);const x=o&&a*i===o.hash&&o.nodes||this.createNodes(i,d,c,l),b=o&&a*i===o.hash&&o.controlPoints||this.createControlPoints(x,i,d,c);this.drawBlobPath(x,b,m),o.nodes=x,o.controlPoints=b,o.hash=a*i,this.update(x,b,l),this.drawBlobPath(x,b,m)}createGradient(t){const{colors:e}=this.options,n=document.createElementNS(t,`${this.options.gradientType}Gradient`);return n.setAttributeNS(null,"id",this.gradientPath),e.forEach(((i,a)=>{const s=document.createElementNS(t,"stop");s.setAttributeNS(null,"offset",a/(e.length-1)*100+"%"),s.setAttributeNS(null,"stop-color",i),n.appendChild(s)})),n}createNodes(t,e,n){let i=this.options.anchorPoints,a=[],s=2*t,o=2*t,h,r,d;for(let o=0;o<i;o++)h=o/(i/2)*Math.PI,r=t*Math.cos(h)+s/2,d=t*Math.sin(h)+s/2,a.push({id:o,x:r+e,y:d+n,prevX:r+e,prevY:d+n,nextX:r+e,nextY:d+n,baseX:r+e,baseY:d+n,angle:h});return a}createControlPoints(t,e,n,i){const a=4/3*Math.tan(Math.PI/(2*this.options.anchorPoints))*e,s={c1x:t[0].x,c1y:t[0].y-a,c2x:t[0].x,c2y:t[0].y+a};return t.map(((t,a)=>{if(0===a)return s;{const a=-t.angle,o=this.rotate(e+n,e+i,s.c1x,s.c1y,a),h=this.rotate(e+n,e+i,s.c2x,s.c2y,a);return{c1x:o[0],c1y:o[1],c2x:h[0],c2y:h[1]}}}))}update(t,e,n){t.forEach(((i,a)=>{if(Math.abs(t[a].nextX-t[a].x)<10){const e=(~~(5*Math.random())-2)*Math.random()*n/2;t[a].prevX=t[a].x,t[a].nextX=t[a].baseX+e}if(Math.abs(t[a].nextY-t[a].y)<10){const e=(~~(5*Math.random())-2)*Math.random()*n/2;t[a].prevY=t[a].y,t[a].nextY=t[a].baseY+e}const s=t[a].nextX-t[a].prevX,o=t[a].nextY-t[a].prevY,h=undefined,r=undefined;let d=1-(t[a].nextX-t[a].x)/s,c=1-(t[a].nextY-t[a].y)/o;const l=this.ease(d>0?d:.2)*s,u=this.ease(c>0?c:.2)*o;t[a].x+=l,t[a].y+=u,e[a].c1x+=l,e[a].c1y+=u,e[a].c2x+=l,e[a].c2y+=u})),this.updateAF=requestAnimationFrame(this.update.bind(this,t,e,n))}drawBlobPath(t,e,n){n.setAttributeNS(null,"d",`\n\t\t\t\tM${t[t.length-1].x} ${t[t.length-1].y}\n\t\t\t\t${t.map(((t,n)=>`\n\t\t\t\tC ${0===n?e[e.length-1].c2x:e[n-1].c2x} ${0===n?e[e.length-1].c2y:e[n-1].c2y}, ${e[n].c1x} ${e[n].c1y}, ${t.x} ${t.y}\n\t\t\t\t`)).join("")}\n\t\t\t\tZ\n\t\t\t`),this.drawBlobPathAF=requestAnimationFrame(this.drawBlobPath.bind(this,t,e,n))}ease(t){return-(Math.cos(Math.PI/2*t*5)-2)/256*this.options.speed}rotate(t,e,n,i,a){const s=Math.cos(a),o=Math.sin(a),h=undefined,r=undefined;return[s*(n-t)+o*(i-e)+t,s*(i-e)-o*(n-t)+e]}destroy(){this.updateAF&&cancelAnimationFrame(this.updateAF),this.drawBlobPathAF&&cancelAnimationFrame(this.drawBlobPathAF)}}$.fn[t]=function(e){return this.each((function(){const i={...$(this).data("blob-options"),...e};$.data(this,"plugin_"+t)||$.data(this,"plugin_"+t,new n(this,i))}))}}(jQuery),jQuery(document).ready((function($){$("[data-lqd-animated-blob]").liquidAnimatedBlob()}));
(function(){'use strict';var f,g=[];function l(a){g.push(a);1==g.length&&f()}function m(){for(;g.length;)g[0](),g.shift()}f=function(){setTimeout(m)};function n(a){this.a=p;this.b=void 0;this.f=[];var b=this;try{a(function(a){q(b,a)},function(a){r(b,a)})}catch(c){r(b,c)}}var p=2;function t(a){return new n(function(b,c){c(a)})}function u(a){return new n(function(b){b(a)})}function q(a,b){if(a.a==p){if(b==a)throw new TypeError;var c=!1;try{var d=b&&b.then;if(null!=b&&"object"==typeof b&&"function"==typeof d){d.call(b,function(b){c||q(a,b);c=!0},function(b){c||r(a,b);c=!0});return}}catch(e){c||r(a,e);return}a.a=0;a.b=b;v(a)}}
function r(a,b){if(a.a==p){if(b==a)throw new TypeError;a.a=1;a.b=b;v(a)}}function v(a){l(function(){if(a.a!=p)for(;a.f.length;){var b=a.f.shift(),c=b[0],d=b[1],e=b[2],b=b[3];try{0==a.a?"function"==typeof c?e(c.call(void 0,a.b)):e(a.b):1==a.a&&("function"==typeof d?e(d.call(void 0,a.b)):b(a.b))}catch(h){b(h)}}})}n.prototype.g=function(a){return this.c(void 0,a)};n.prototype.c=function(a,b){var c=this;return new n(function(d,e){c.f.push([a,b,d,e]);v(c)})};
function w(a){return new n(function(b,c){function d(c){return function(d){h[c]=d;e+=1;e==a.length&&b(h)}}var e=0,h=[];0==a.length&&b(h);for(var k=0;k<a.length;k+=1)u(a[k]).c(d(k),c)})}function x(a){return new n(function(b,c){for(var d=0;d<a.length;d+=1)u(a[d]).c(b,c)})};window.Promise||(window.Promise=n,window.Promise.resolve=u,window.Promise.reject=t,window.Promise.race=x,window.Promise.all=w,window.Promise.prototype.then=n.prototype.c,window.Promise.prototype["catch"]=n.prototype.g);}());
(function(){function l(a,b){document.addEventListener?a.addEventListener("scroll",b,!1):a.attachEvent("scroll",b)}function m(a){document.body?a():document.addEventListener?document.addEventListener("DOMContentLoaded",function c(){document.removeEventListener("DOMContentLoaded",c);a()}):document.attachEvent("onreadystatechange",function k(){if("interactive"==document.readyState||"complete"==document.readyState)document.detachEvent("onreadystatechange",k),a()})};function r(a){this.a=document.createElement("div");this.a.setAttribute("aria-hidden","true");this.a.appendChild(document.createTextNode(a));this.b=document.createElement("span");this.c=document.createElement("span");this.h=document.createElement("span");this.f=document.createElement("span");this.g=-1;this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;";this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;";
this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;";this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;";this.b.appendChild(this.h);this.c.appendChild(this.f);this.a.appendChild(this.b);this.a.appendChild(this.c)}
function t(a,b){a.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+b+";"}function y(a){var b=a.a.offsetWidth,c=b+100;a.f.style.width=c+"px";a.c.scrollLeft=c;a.b.scrollLeft=a.b.scrollWidth+100;return a.g!==b?(a.g=b,!0):!1}function z(a,b){function c(){var a=k;y(a)&&a.a.parentNode&&b(a.g)}var k=a;l(a.b,c);l(a.c,c);y(a)};function A(a,b){var c=b||{};this.family=a;this.style=c.style||"normal";this.weight=c.weight||"normal";this.stretch=c.stretch||"normal"}var B=null,C=null,E=null,F=null;function G(){if(null===C)if(J()&&/Apple/.test(window.navigator.vendor)){var a=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);C=!!a&&603>parseInt(a[1],10)}else C=!1;return C}function J(){null===F&&(F=!!document.fonts);return F}
function K(){if(null===E){var a=document.createElement("div");try{a.style.font="condensed 100px sans-serif"}catch(b){}E=""!==a.style.font}return E}function L(a,b){return[a.style,a.weight,K()?a.stretch:"","100px",b].join(" ")}
A.prototype.load=function(a,b){var c=this,k=a||"BESbswy",q=0,D=b||3E3,H=(new Date).getTime();return new Promise(function(a,b){if(J()&&!G()){var M=new Promise(function(a,b){function e(){(new Date).getTime()-H>=D?b():document.fonts.load(L(c,'"'+c.family+'"'),k).then(function(c){1<=c.length?a():setTimeout(e,25)},function(){b()})}e()}),N=new Promise(function(a,c){q=setTimeout(c,D)});Promise.race([N,M]).then(function(){clearTimeout(q);a(c)},function(){b(c)})}else m(function(){function u(){var b;if(b=-1!=f&&-1!=g||-1!=f&&-1!=h||-1!=g&&-1!=h)(b=f!=g&&f!=h&&g!=h)||(null===B&&(b=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),B=!!b&&(536>parseInt(b[1],10)||536===parseInt(b[1],10)&&11>=parseInt(b[2],10))),b=B&&(f==v&&g==v&&h==v||f==w&&g==w&&h==w||f==x&&g==x&&h==x)),b=!b;b&&(d.parentNode&&d.parentNode.removeChild(d),clearTimeout(q),a(c))}function I(){if((new Date).getTime()-H>=D)d.parentNode&&d.parentNode.removeChild(d),b(c);else{var a=document.hidden;if(!0===a||void 0===a)f=e.a.offsetWidth,
g=n.a.offsetWidth,h=p.a.offsetWidth,u();q=setTimeout(I,50)}}var e=new r(k),n=new r(k),p=new r(k),f=-1,g=-1,h=-1,v=-1,w=-1,x=-1,d=document.createElement("div");d.dir="ltr";t(e,L(c,"sans-serif"));t(n,L(c,"serif"));t(p,L(c,"monospace"));d.appendChild(e.a);d.appendChild(n.a);d.appendChild(p.a);document.body.appendChild(d);v=e.a.offsetWidth;w=n.a.offsetWidth;x=p.a.offsetWidth;I();z(e,function(a){f=a;u()});t(e,L(c,'"'+c.family+'",sans-serif'));z(n,function(a){g=a;u()});t(n,L(c,'"'+c.family+'",serif'));
z(p,function(a){h=a;u()});t(p,L(c,'"'+c.family+'",monospace'))})})};"object"===typeof module?module.exports=A:(window.FontFaceObserver=A,window.FontFaceObserver.prototype.load=A.prototype.load);}());
!function(t,e){"use strict";function n(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?i/n:this.isIntersecting?1:0}function o(t,e){var n=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=r(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function i(){return t.performance&&performance.now&&performance.now()}function r(t,e){var n=null;return function(){n||(n=setTimeout(function(){t(),n=null},e))}}function s(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function h(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function c(t,e){var n=Math.max(t.top,e.top),o=Math.min(t.bottom,e.bottom),i=Math.max(t.left,e.left),r=Math.min(t.right,e.right),s=r-i,h=o-n;return s>=0&&h>=0&&{top:n,bottom:o,left:i,right:r,width:s,height:h}}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(t,e){for(var n=e;n;){if(n==t)return!0;n=l(n)}return!1}function l(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e}if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var p=[];o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},o.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},o.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},o.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},o.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},o.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,h(t,"resize",this._checkForIntersections,!0),h(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},o.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(o){var r=o.element,s=u(r),h=this._rootContainsTarget(r),c=o.entry,a=t&&h&&this._computeTargetAndRootIntersection(r,e),l=o.entry=new n({time:i(),target:r,boundingClientRect:s,rootBounds:e,intersectionRect:a});c?t&&h?this._hasCrossedThreshold(c,l)&&this._queuedEntries.push(l):c&&c.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},o.prototype._computeTargetAndRootIntersection=function(n,o){if("none"!=t.getComputedStyle(n).display){for(var i=u(n),r=l(n),s=!1;!s;){var h=null,a=1==r.nodeType?t.getComputedStyle(r):{};if("none"==a.display)return;if(r==this.root||r==e?(s=!0,h=o):r!=e.body&&r!=e.documentElement&&"visible"!=a.overflow&&(h=u(r)),h&&!(i=c(h,i)))break;r=l(r)}return i}},o.prototype._getRootRect=function(){var t;if(this.root)t=u(this.root);else{var n=e.documentElement,o=e.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==n||r==o||r<n!=r<o)return!0}},o.prototype._rootIsInDom=function(){return!this.root||a(e,this.root)},o.prototype._rootContainsTarget=function(t){return a(this.root||e,t)},o.prototype._registerInstance=function(){p.indexOf(this)<0&&p.push(this)},o.prototype._unregisterInstance=function(){var t=p.indexOf(this);-1!=t&&p.splice(t,1)},t.IntersectionObserver=o,t.IntersectionObserverEntry=n}}(window,document);
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n="undefined"!=typeof globalThis?globalThis:n||self).LazyLoad=t()}(this,(function(){"use strict";function n(){return n=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},n.apply(this,arguments)}var t="undefined"!=typeof window,e=t&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),o=t&&"IntersectionObserver"in window,i=t&&"classList"in document.createElement("p"),a=t&&window.devicePixelRatio>1,r={elements_selector:".lazy",container:e||t?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_bg_set:"bg-set",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1,restore_on_error:!1},c=function(t){return n({},r,t)},u=function(n,t){var e,o="LazyLoad::Initialized",i=new n(t);try{e=new CustomEvent(o,{detail:{instance:i}})}catch(n){(e=document.createEvent("CustomEvent")).initCustomEvent(o,!1,!1,{instance:i})}window.dispatchEvent(e)},l="src",s="srcset",f="sizes",d="poster",_="llOriginalAttrs",g="data",v="loading",b="loaded",p="applied",m="error",h="native",E="data-",I="ll-status",y=function(n,t){return n.getAttribute(E+t)},k=function(n){return y(n,I)},A=function(n,t){return function(n,t,e){var o="data-ll-status";null!==e?n.setAttribute(o,e):n.removeAttribute(o)}(n,0,t)},w=function(n){return A(n,null)},L=function(n){return null===k(n)},O=function(n){return k(n)===h},x=[v,b,p,m],C=function(n,t,e,o){n&&(void 0===o?void 0===e?n(t):n(t,e):n(t,e,o))},N=function(n,t){i?n.classList.add(t):n.className+=(n.className?" ":"")+t},M=function(n,t){i?n.classList.remove(t):n.className=n.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},z=function(n){return n.llTempImage},T=function(n,t){if(t){var e=t._observer;e&&e.unobserve(n)}},R=function(n,t){n&&(n.loadingCount+=t)},G=function(n,t){n&&(n.toLoadCount=t)},j=function(n){for(var t,e=[],o=0;t=n.children[o];o+=1)"SOURCE"===t.tagName&&e.push(t);return e},D=function(n,t){var e=n.parentNode;e&&"PICTURE"===e.tagName&&j(e).forEach(t)},V=function(n,t){j(n).forEach(t)},F=[l],B=[l,d],J=[l,s,f],P=[g],S=function(n){return!!n[_]},U=function(n){return n[_]},$=function(n){return delete n[_]},q=function(n,t){if(!S(n)){var e={};t.forEach((function(t){e[t]=n.getAttribute(t)})),n[_]=e}},H=function(n,t){if(S(n)){var e=U(n);t.forEach((function(t){!function(n,t,e){e?n.setAttribute(t,e):n.removeAttribute(t)}(n,t,e[t])}))}},K=function(n,t,e){N(n,t.class_applied),A(n,p),e&&(t.unobserve_completed&&T(n,t),C(t.callback_applied,n,e))},Q=function(n,t,e){N(n,t.class_loading),A(n,v),e&&(R(e,1),C(t.callback_loading,n,e))},W=function(n,t,e){e&&n.setAttribute(t,e)},X=function(n,t){W(n,f,y(n,t.data_sizes)),W(n,s,y(n,t.data_srcset)),W(n,l,y(n,t.data_src))},Y={IMG:function(n,t){D(n,(function(n){q(n,J),X(n,t)})),q(n,J),X(n,t)},IFRAME:function(n,t){q(n,F),W(n,l,y(n,t.data_src))},VIDEO:function(n,t){V(n,(function(n){q(n,F),W(n,l,y(n,t.data_src))})),q(n,B),W(n,d,y(n,t.data_poster)),W(n,l,y(n,t.data_src)),n.load()},OBJECT:function(n,t){q(n,P),W(n,g,y(n,t.data_src))}},Z=["IMG","IFRAME","VIDEO","OBJECT"],nn=function(n,t){!t||function(n){return n.loadingCount>0}(t)||function(n){return n.toLoadCount>0}(t)||C(n.callback_finish,t)},tn=function(n,t,e){n.addEventListener(t,e),n.llEvLisnrs[t]=e},en=function(n,t,e){n.removeEventListener(t,e)},on=function(n){return!!n.llEvLisnrs},an=function(n){if(on(n)){var t=n.llEvLisnrs;for(var e in t){var o=t[e];en(n,e,o)}delete n.llEvLisnrs}},rn=function(n,t,e){!function(n){delete n.llTempImage}(n),R(e,-1),function(n){n&&(n.toLoadCount-=1)}(e),M(n,t.class_loading),t.unobserve_completed&&T(n,e)},cn=function(n,t,e){var o=z(n)||n;on(o)||function(n,t,e){on(n)||(n.llEvLisnrs={});var o="VIDEO"===n.tagName?"loadeddata":"load";tn(n,o,t),tn(n,"error",e)}(o,(function(i){!function(n,t,e,o){var i=O(t);rn(t,e,o),N(t,e.class_loaded),A(t,b),C(e.callback_loaded,t,o),i||nn(e,o)}(0,n,t,e),an(o)}),(function(i){!function(n,t,e,o){var i=O(t);rn(t,e,o),N(t,e.class_error),A(t,m),C(e.callback_error,t,o),e.restore_on_error&&H(t,J),i||nn(e,o)}(0,n,t,e),an(o)}))},un=function(n,t,e){!function(n){return Z.indexOf(n.tagName)>-1}(n)?function(n,t,e){!function(n){n.llTempImage=document.createElement("IMG")}(n),cn(n,t,e),function(n){S(n)||(n[_]={backgroundImage:n.style.backgroundImage})}(n),function(n,t,e){var o=y(n,t.data_bg),i=y(n,t.data_bg_hidpi),r=a&&i?i:o;r&&(n.style.backgroundImage='url("'.concat(r,'")'),z(n).setAttribute(l,r),Q(n,t,e))}(n,t,e),function(n,t,e){var o=y(n,t.data_bg_multi),i=y(n,t.data_bg_multi_hidpi),r=a&&i?i:o;r&&(n.style.backgroundImage=r,K(n,t,e))}(n,t,e),function(n,t,e){var o=y(n,t.data_bg_set);if(o){var i=o.split("|"),a=i.map((function(n){return"image-set(".concat(n,")")}));n.style.backgroundImage=a.join(),""===n.style.backgroundImage&&(a=i.map((function(n){return"-webkit-image-set(".concat(n,")")})),n.style.backgroundImage=a.join()),K(n,t,e)}}(n,t,e)}(n,t,e):function(n,t,e){cn(n,t,e),function(n,t,e){var o=Y[n.tagName];o&&(o(n,t),Q(n,t,e))}(n,t,e)}(n,t,e)},ln=function(n){n.removeAttribute(l),n.removeAttribute(s),n.removeAttribute(f)},sn=function(n){D(n,(function(n){H(n,J)})),H(n,J)},fn={IMG:sn,IFRAME:function(n){H(n,F)},VIDEO:function(n){V(n,(function(n){H(n,F)})),H(n,B),n.load()},OBJECT:function(n){H(n,P)}},dn=function(n,t){(function(n){var t=fn[n.tagName];t?t(n):function(n){if(S(n)){var t=U(n);n.style.backgroundImage=t.backgroundImage}}(n)})(n),function(n,t){L(n)||O(n)||(M(n,t.class_entered),M(n,t.class_exited),M(n,t.class_applied),M(n,t.class_loading),M(n,t.class_loaded),M(n,t.class_error))}(n,t),w(n),$(n)},_n=["IMG","IFRAME","VIDEO"],gn=function(n){return n.use_native&&"loading"in HTMLImageElement.prototype},vn=function(n,t,e){n.forEach((function(n){return function(n){return n.isIntersecting||n.intersectionRatio>0}(n)?function(n,t,e,o){var i=function(n){return x.indexOf(k(n))>=0}(n);A(n,"entered"),N(n,e.class_entered),M(n,e.class_exited),function(n,t,e){t.unobserve_entered&&T(n,e)}(n,e,o),C(e.callback_enter,n,t,o),i||un(n,e,o)}(n.target,n,t,e):function(n,t,e,o){L(n)||(N(n,e.class_exited),function(n,t,e,o){e.cancel_on_exit&&function(n){return k(n)===v}(n)&&"IMG"===n.tagName&&(an(n),function(n){D(n,(function(n){ln(n)})),ln(n)}(n),sn(n),M(n,e.class_loading),R(o,-1),w(n),C(e.callback_cancel,n,t,o))}(n,t,e,o),C(e.callback_exit,n,t,o))}(n.target,n,t,e)}))},bn=function(n){return Array.prototype.slice.call(n)},pn=function(n){return n.container.querySelectorAll(n.elements_selector)},mn=function(n){return function(n){return k(n)===m}(n)},hn=function(n,t){return function(n){return bn(n).filter(L)}(n||pn(t))},En=function(n,e){var i=c(n);this._settings=i,this.loadingCount=0,function(n,t){o&&!gn(n)&&(t._observer=new IntersectionObserver((function(e){vn(e,n,t)}),function(n){return{root:n.container===document?null:n.container,rootMargin:n.thresholds||n.threshold+"px"}}(n)))}(i,this),function(n,e){t&&window.addEventListener("online",(function(){!function(n,t){var e;(e=pn(n),bn(e).filter(mn)).forEach((function(t){M(t,n.class_error),w(t)})),t.update()}(n,e)}))}(i,this),this.update(e)};return En.prototype={update:function(n){var t,i,a=this._settings,r=hn(n,a);G(this,r.length),!e&&o?gn(a)?function(n,t,e){n.forEach((function(n){-1!==_n.indexOf(n.tagName)&&function(n,t,e){n.setAttribute("loading","lazy"),cn(n,t,e),function(n,t){var e=Y[n.tagName];e&&e(n,t)}(n,t),A(n,h)}(n,t,e)})),G(e,0)}(r,a,this):(i=r,function(n){n.disconnect()}(t=this._observer),function(n,t){t.forEach((function(t){n.observe(t)}))}(t,i)):this.loadAll(r)},destroy:function(){this._observer&&this._observer.disconnect(),pn(this._settings).forEach((function(n){$(n)})),delete this._observer,delete this._settings,delete this.loadingCount,delete this.toLoadCount},loadAll:function(n){var t=this,e=this._settings;hn(n,e).forEach((function(n){T(n,t),un(n,e,t)}))},restoreAll:function(){var n=this._settings;pn(n).forEach((function(t){dn(t,n)}))}},En.load=function(n,t){var e=c(t);un(n,e)},En.resetStatus=function(n){w(n)},t&&function(n,t){if(t)if(t.length)for(var e,o=0;e=t[o];o+=1)u(n,e);else u(n,t)}(En,window.lazyLoadOptions),En}));
!function(t){function e(t,n){if(t=t?t:"",n=n||{},t instanceof e)return t;if(!(this instanceof e))return new e(t,n);var a=r(t);this._originalInput=t,this._r=a.r,this._g=a.g,this._b=a.b,this._a=a.a,this._roundA=$(100*this._a)/100,this._format=n.format||a.format,this._gradientType=n.gradientType,this._r<1&&(this._r=$(this._r)),this._g<1&&(this._g=$(this._g)),this._b<1&&(this._b=$(this._b)),this._ok=a.ok,this._tc_id=P++}function r(t){var e={r:0,g:0,b:0},r=1,a=null,s=null,f=null,h=!1,l=!1;return"string"==typeof t&&(t=E(t)),"object"==typeof t&&(z(t.r)&&z(t.g)&&z(t.b)?(e=n(t.r,t.g,t.b),h=!0,l="%"===String(t.r).substr(-1)?"prgb":"rgb"):z(t.h)&&z(t.s)&&z(t.v)?(a=I(t.s),s=I(t.v),e=o(t.h,a,s),h=!0,l="hsv"):z(t.h)&&z(t.s)&&z(t.l)&&(a=I(t.s),f=I(t.l),e=i(t.h,a,f),h=!0,l="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=S(r),{ok:h,format:t.format||l,r:D(255,U(e.r,0)),g:D(255,U(e.g,0)),b:D(255,U(e.b,0)),a:r}}function n(t,e,r){return{r:255*H(t,255),g:255*H(e,255),b:255*H(r,255)}}function a(t,e,r){t=H(t,255),e=H(e,255),r=H(r,255);var n,a,i=U(t,e,r),s=D(t,e,r),o=(i+s)/2;if(i==s)n=a=0;else{var f=i-s;switch(a=o>.5?f/(2-i-s):f/(i+s),i){case t:n=(e-r)/f+(r>e?6:0);break;case e:n=(r-t)/f+2;break;case r:n=(t-e)/f+4}n/=6}return{h:n,s:a,l:o}}function i(t,e,r){function n(t,e,r){return 0>r&&(r+=1),r>1&&(r-=1),1/6>r?t+6*(e-t)*r:.5>r?e:2/3>r?t+(e-t)*(2/3-r)*6:t}var a,i,s;if(t=H(t,360),e=H(e,100),r=H(r,100),0===e)a=i=s=r;else{var o=.5>r?r*(1+e):r+e-r*e,f=2*r-o;a=n(f,o,t+1/3),i=n(f,o,t),s=n(f,o,t-1/3)}return{r:255*a,g:255*i,b:255*s}}function s(t,e,r){t=H(t,255),e=H(e,255),r=H(r,255);var n,a,i=U(t,e,r),s=D(t,e,r),o=i,f=i-s;if(a=0===i?0:f/i,i==s)n=0;else{switch(i){case t:n=(e-r)/f+(r>e?6:0);break;case e:n=(r-t)/f+2;break;case r:n=(t-e)/f+4}n/=6}return{h:n,s:a,v:o}}function o(e,r,n){e=6*H(e,360),r=H(r,100),n=H(n,100);var a=t.floor(e),i=e-a,s=n*(1-r),o=n*(1-i*r),f=n*(1-(1-i)*r),h=a%6,l=[n,o,s,s,f,n][h],u=[f,n,n,o,s,s][h],c=[s,s,f,n,n,o][h];return{r:255*l,g:255*u,b:255*c}}function f(t,e,r,n){var a=[M($(t).toString(16)),M($(e).toString(16)),M($(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function h(t,e,r,n,a){var i=[M($(t).toString(16)),M($(e).toString(16)),M($(r).toString(16)),M(L(n))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function l(t,e,r,n){var a=[M(L(n)),M($(t).toString(16)),M($(e).toString(16)),M($(r).toString(16))];return a.join("")}function u(t,r){r=0===r?0:r||10;var n=e(t).toHsl();return n.s-=r/100,n.s=R(n.s),e(n)}function c(t,r){r=0===r?0:r||10;var n=e(t).toHsl();return n.s+=r/100,n.s=R(n.s),e(n)}function g(t){return e(t).desaturate(100)}function b(t,r){r=0===r?0:r||10;var n=e(t).toHsl();return n.l+=r/100,n.l=R(n.l),e(n)}function d(t,r){r=0===r?0:r||10;var n=e(t).toRgb();return n.r=U(0,D(255,n.r-$(255*-(r/100)))),n.g=U(0,D(255,n.g-$(255*-(r/100)))),n.b=U(0,D(255,n.b-$(255*-(r/100)))),e(n)}function _(t,r){r=0===r?0:r||10;var n=e(t).toHsl();return n.l-=r/100,n.l=R(n.l),e(n)}function p(t,r){var n=e(t).toHsl(),a=(n.h+r)%360;return n.h=0>a?360+a:a,e(n)}function m(t){var r=e(t).toHsl();return r.h=(r.h+180)%360,e(r)}function v(t){var r=e(t).toHsl(),n=r.h;return[e(t),e({h:(n+120)%360,s:r.s,l:r.l}),e({h:(n+240)%360,s:r.s,l:r.l})]}function y(t){var r=e(t).toHsl(),n=r.h;return[e(t),e({h:(n+90)%360,s:r.s,l:r.l}),e({h:(n+180)%360,s:r.s,l:r.l}),e({h:(n+270)%360,s:r.s,l:r.l})]}function A(t){var r=e(t).toHsl(),n=r.h;return[e(t),e({h:(n+72)%360,s:r.s,l:r.l}),e({h:(n+216)%360,s:r.s,l:r.l})]}function x(t,r,n){r=r||6,n=n||30;var a=e(t).toHsl(),i=360/n,s=[e(t)];for(a.h=(a.h-(i*r>>1)+720)%360;--r;)a.h=(a.h+i)%360,s.push(e(a));return s}function k(t,r){r=r||6;for(var n=e(t).toHsv(),a=n.h,i=n.s,s=n.v,o=[],f=1/r;r--;)o.push(e({h:a,s:i,v:s})),s=(s+f)%1;return o}function w(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function S(t){return t=parseFloat(t),(isNaN(t)||0>t||t>1)&&(t=1),t}function H(e,r){C(e)&&(e="100%");var n=q(e);return e=D(r,U(0,parseFloat(e))),n&&(e=parseInt(e*r,10)/100),t.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function R(t){return D(1,U(0,t))}function F(t){return parseInt(t,16)}function C(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)}function q(t){return"string"==typeof t&&-1!=t.indexOf("%")}function M(t){return 1==t.length?"0"+t:""+t}function I(t){return 1>=t&&(t=100*t+"%"),t}function L(e){return t.round(255*parseFloat(e)).toString(16)}function N(t){return F(t)/255}function z(t){return!!X.CSS_UNIT.exec(t)}function E(t){t=t.replace(j,"").replace(O,"").toLowerCase();var e=!1;if(G[t])t=G[t],e=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=X.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=X.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=X.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=X.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=X.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=X.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=X.hex8.exec(t))?{r:F(r[1]),g:F(r[2]),b:F(r[3]),a:N(r[4]),format:e?"name":"hex8"}:(r=X.hex6.exec(t))?{r:F(r[1]),g:F(r[2]),b:F(r[3]),format:e?"name":"hex"}:(r=X.hex4.exec(t))?{r:F(r[1]+""+r[1]),g:F(r[2]+""+r[2]),b:F(r[3]+""+r[3]),a:N(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=X.hex3.exec(t))?{r:F(r[1]+""+r[1]),g:F(r[2]+""+r[2]),b:F(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function T(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA"),"small"!==r&&"large"!==r&&(r="small"),{level:e,size:r}}var j=/^\s+/,O=/\s+$/,P=0,$=t.round,D=t.min,U=t.max,B=t.random;e.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,r,n,a,i,s,o=this.toRgb();return e=o.r/255,r=o.g/255,n=o.b/255,a=.03928>=e?e/12.92:t.pow((e+.055)/1.055,2.4),i=.03928>=r?r/12.92:t.pow((r+.055)/1.055,2.4),s=.03928>=n?n/12.92:t.pow((n+.055)/1.055,2.4),.2126*a+.7152*i+.0722*s},setAlpha:function(t){return this._a=S(t),this._roundA=$(100*this._a)/100,this},toHsv:function(){var t=s(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=s(this._r,this._g,this._b),e=$(360*t.h),r=$(100*t.s),n=$(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=a(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=a(this._r,this._g,this._b),e=$(360*t.h),r=$(100*t.s),n=$(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return f(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return h(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:$(this._r),g:$(this._g),b:$(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+$(this._r)+", "+$(this._g)+", "+$(this._b)+")":"rgba("+$(this._r)+", "+$(this._g)+", "+$(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:$(100*H(this._r,255))+"%",g:$(100*H(this._g,255))+"%",b:$(100*H(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+$(100*H(this._r,255))+"%, "+$(100*H(this._g,255))+"%, "+$(100*H(this._b,255))+"%)":"rgba("+$(100*H(this._r,255))+"%, "+$(100*H(this._g,255))+"%, "+$(100*H(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":this._a<1?!1:V[f(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+l(this._r,this._g,this._b,this._a),n=r,a=this._gradientType?"GradientType=1, ":"";if(t){var i=e(t);n="#"+l(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0,a=!e&&n&&("hex"===t||"hex6"===t||"hex3"===t||"hex4"===t||"hex8"===t||"name"===t);return a?"name"===t&&0===this._a?this.toName():this.toRgbString():("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return e(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(d,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(x,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(v,arguments)},tetrad:function(){return this._applyCombination(y,arguments)}},e.fromRatio=function(t,r){if("object"==typeof t){var n={};for(var a in t)t.hasOwnProperty(a)&&("a"===a?n[a]=t[a]:n[a]=I(t[a]));t=n}return e(t,r)},e.equals=function(t,r){return t&&r?e(t).toRgbString()==e(r).toRgbString():!1},e.random=function(){return e.fromRatio({r:B(),g:B(),b:B()})},e.mix=function(t,r,n){n=0===n?0:n||50;var a=e(t).toRgb(),i=e(r).toRgb(),s=n/100,o={r:(i.r-a.r)*s+a.r,g:(i.g-a.g)*s+a.g,b:(i.b-a.b)*s+a.b,a:(i.a-a.a)*s+a.a};return e(o)},e.readability=function(r,n){var a=e(r),i=e(n);return(t.max(a.getLuminance(),i.getLuminance())+.05)/(t.min(a.getLuminance(),i.getLuminance())+.05)},e.isReadable=function(t,r,n){var a,i,s=e.readability(t,r);switch(i=!1,a=T(n),a.level+a.size){case"AAsmall":case"AAAlarge":i=s>=4.5;break;case"AAlarge":i=s>=3;break;case"AAAsmall":i=s>=7}return i},e.mostReadable=function(t,r,n){var a,i,s,o,f=null,h=0;n=n||{},i=n.includeFallbackColors,s=n.level,o=n.size;for(var l=0;l<r.length;l++)a=e.readability(t,r[l]),a>h&&(h=a,f=e(r[l]));return e.isReadable(t,f,{level:s,size:o})||!i?f:(n.includeFallbackColors=!1,e.mostReadable(t,["#fff","#000"],n))};var G=e.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},V=e.hexNames=w(G),X=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();"undefined"!=typeof module&&module.exports?module.exports=e:"function"==typeof define&&define.amd?define(function(){return e}):window.tinycolor=e}(Math);
(function(e,i){if(typeof define=="function"&&define.amd){define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("jquery"))}else{e.jQueryBridget=i(e,e.jQuery)}})(window,function t(e,r){"use strict";var o=Array.prototype.slice;var i=e.console;var u=typeof i=="undefined"?function(){}:function(t){i.error(t)};function n(h,s,c){c=c||r||e.jQuery;if(!c){return}if(!s.prototype.option){s.prototype.option=function(t){if(!c.isPlainObject(t)){return}this.options=c.extend(true,this.options,t)}}c.fn[h]=function(t){if(typeof t=="string"){var e=o.call(arguments,1);return i(this,t,e)}n(this,t);return this};function i(t,r,o){var a;var l="$()."+h+'("'+r+'")';t.each(function(t,e){var i=c.data(e,h);if(!i){u(h+" not initialized. Cannot call methods, i.e. "+l);return}var n=i[r];if(!n||r.charAt(0)=="_"){u(l+" is not a valid method");return}var s=n.apply(i,o);a=a===undefined?s:a});return a!==undefined?a:t}function n(t,n){t.each(function(t,e){var i=c.data(e,h);if(i){i.option(n);i._init()}else{i=new s(e,n);c.data(e,h,i)}})}a(c)}function a(t){if(!t||t&&t.bridget){return}t.bridget=n}a(r||e.jQuery);return n});(function(t,e){if(typeof define=="function"&&define.amd){define("ev-emitter/ev-emitter",e)}else if(typeof module=="object"&&module.exports){module.exports=e()}else{t.EvEmitter=e()}})(typeof window!="undefined"?window:this,function(){function t(){}var e=t.prototype;e.on=function(t,e){if(!t||!e){return}var i=this._events=this._events||{};var n=i[t]=i[t]||[];if(n.indexOf(e)==-1){n.push(e)}return this};e.once=function(t,e){if(!t||!e){return}this.on(t,e);var i=this._onceEvents=this._onceEvents||{};var n=i[t]=i[t]||{};n[e]=true;return this};e.off=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length){return}var n=i.indexOf(e);if(n!=-1){i.splice(n,1)}return this};e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length){return}i=i.slice(0);e=e||[];var n=this._onceEvents&&this._onceEvents[t];for(var s=0;s<i.length;s++){var r=i[s];var o=n&&n[r];if(o){this.off(t,r);delete n[r]}r.apply(this,e)}return this};e.allOff=function(){delete this._events;delete this._onceEvents};return t});
(function(t,e){if(typeof define=="function"&&define.amd){define("get-size/get-size",e)}else if(typeof module=="object"&&module.exports){module.exports=e()}else{t.getSize=e()}})(window,function t(){"use strict";function m(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}var i=typeof console=="undefined"?e:function(t){console.error(t)};var y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];var b=y.length;function E(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<b;e++){var i=y[e];t[i]=0}return t}function S(t){var e=getComputedStyle(t);if(!e){i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See https://bit.ly/getsizebug1")}return e}var n=false;var C;function x(){if(n){return}n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=S(t);C=Math.round(m(i.width))==200;s.isBoxSizeOuter=C;e.removeChild(t)}function s(t){x();if(typeof t=="string"){t=document.querySelector(t)}if(!t||typeof t!="object"||!t.nodeType){return}var e=S(t);if(e.display=="none"){return E()}var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var s=0;s<b;s++){var r=y[s];var o=e[r];var a=parseFloat(o);i[r]=!isNaN(a)?a:0}var l=i.paddingLeft+i.paddingRight;var h=i.paddingTop+i.paddingBottom;var c=i.marginLeft+i.marginRight;var u=i.marginTop+i.marginBottom;var d=i.borderLeftWidth+i.borderRightWidth;var f=i.borderTopWidth+i.borderBottomWidth;var p=n&&C;var v=m(e.width);if(v!==false){i.width=v+(p?0:l+d)}var g=m(e.height);if(g!==false){i.height=g+(p?0:h+f)}i.innerWidth=i.width-(l+d);i.innerHeight=i.height-(h+f);i.outerWidth=i.width+c;i.outerHeight=i.height+u;return i}return s});(function(t,e){"use strict";if(typeof define=="function"&&define.amd){define("desandro-matches-selector/matches-selector",e)}else if(typeof module=="object"&&module.exports){module.exports=e()}else{t.matchesSelector=e()}})(window,function t(){"use strict";var n=function(){var t=window.Element.prototype;if(t.matches){return"matches"}if(t.matchesSelector){return"matchesSelector"}var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var s=n+"MatchesSelector";if(t[s]){return s}}}();return function t(e,i){return e[n](i)}});(function(e,i){if(typeof define=="function"&&define.amd){define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("desandro-matches-selector"))}else{e.fizzyUIUtils=i(e,e.matchesSelector)}})(window,function t(h,r){var c={};c.extend=function(t,e){for(var i in e){t[i]=e[i]}return t};c.modulo=function(t,e){return(t%e+e)%e};var i=Array.prototype.slice;c.makeArray=function(t){if(Array.isArray(t)){return t}if(t===null||t===undefined){return[]}var e=typeof t=="object"&&typeof t.length=="number";if(e){return i.call(t)}return[t]};c.removeFrom=function(t,e){var i=t.indexOf(e);if(i!=-1){t.splice(i,1)}};c.getParent=function(t,e){while(t.parentNode&&t!=document.body){t=t.parentNode;if(r(t,e)){return t}}};c.getQueryElement=function(t){if(typeof t=="string"){return document.querySelector(t)}return t};c.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}};c.filterFindElements=function(t,n){t=c.makeArray(t);var s=[];t.forEach(function(t){if(!(t instanceof HTMLElement)){return}if(!n){s.push(t);return}if(r(t,n)){s.push(t)}var e=t.querySelectorAll(n);for(var i=0;i<e.length;i++){s.push(e[i])}});return s};c.debounceMethod=function(t,e,n){n=n||100;var s=t.prototype[e];var r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments;var i=this;this[r]=setTimeout(function(){s.apply(i,e);delete i[r]},n)}};c.docReady=function(t){var e=document.readyState;if(e=="complete"||e=="interactive"){setTimeout(t)}else{document.addEventListener("DOMContentLoaded",t)}};c.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var u=h.console;c.htmlInit=function(a,l){c.docReady(function(){var t=c.toDashed(l);var s="data-"+t;var e=document.querySelectorAll("["+s+"]");var i=document.querySelectorAll(".js-"+t);var n=c.makeArray(e).concat(c.makeArray(i));var r=s+"-options";var o=h.jQuery;n.forEach(function(e){var t=e.getAttribute(s)||e.getAttribute(r);var i;try{i=t&&JSON.parse(t)}catch(t){if(u){u.error("Error parsing "+s+" on "+e.className+": "+t)}return}var n=new a(e,i);if(o){o.data(e,l,n)}})})};return c});(function(e,i){if(typeof define=="function"&&define.amd){define("flickity/js/cell",["get-size/get-size"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("get-size"))}else{e.Flickity=e.Flickity||{};e.Flickity.Cell=i(e,e.getSize)}})(window,function t(e,i){function n(t,e){this.element=t;this.parent=e;this.create()}var s=n.prototype;s.create=function(){this.element.setAttribute("aria-hidden","true");this.x=0;this.shift=0;this.element.style.position="absolute";this.element.style[this.parent.originSide]=0};s.destroy=function(){this.unselect();this.element.removeAttribute("aria-hidden");var t=this.parent.originSide;this.element.style.position="";this.element.style[t]="";this.element.style.transform=""};s.getSize=function(){this.size=i(this.element)};s.setPosition=function(t){this.x=t;this.renderPosition(t)};s.renderPosition=function(t){var e=this.parent.originSide==="left"?1:-1;var i=this.parent.options.percentPosition?t*e*(this.parent.size.innerWidth/this.size.width):t*e;this.element.style.transform="translateX("+this.parent.getPositionValue(i)+")"};s.select=function(){this.element.classList.add("is-selected");this.element.removeAttribute("aria-hidden")};s.unselect=function(){this.element.classList.remove("is-selected");this.element.setAttribute("aria-hidden","true")};s.wrapShift=function(t){this.shift=t;this.renderPosition(this.x+this.parent.slideableWidth*t)};s.remove=function(){this.element.parentNode.removeChild(this.element)};return n});(function(t,e){if(typeof define=="function"&&define.amd){define("flickity/js/slide",e)}else if(typeof module=="object"&&module.exports){module.exports=e()}else{t.Flickity=t.Flickity||{};t.Flickity.Slide=e()}})(window,function t(){"use strict";function e(t){this.parent=t;this.isOriginLeft=t.originSide=="left";this.cells=[];this.outerWidth=0;this.height=0}var i=e.prototype;i.addCell=function(t){this.cells.push(t);this.outerWidth+=t.size.outerWidth;this.height=Math.max(t.size.outerHeight,this.height);if(this.cells.length==1){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}};i.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft";var e=this.getLastCell();var i=e?e.size[t]:0;var n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign};i.getLastCell=function(){return this.cells[this.cells.length-1]};i.select=function(){this.cells.forEach(function(t){t.select()})};i.unselect=function(){this.cells.forEach(function(t){t.unselect()})};i.getCellElements=function(){return this.cells.map(function(t){return t.element})};return e});(function(e,i){if(typeof define=="function"&&define.amd){define("flickity/js/animate",["fizzy-ui-utils/utils"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("fizzy-ui-utils"))}else{e.Flickity=e.Flickity||{};e.Flickity.animatePrototype=i(e,e.fizzyUIUtils)}})(window,function t(e,i){var n={};n.startAnimation=function(){if(this.isAnimating){return}this.isAnimating=true;this.restingFrames=0;this.animate()};n.animate=function(){this.applyDragForce();this.applySelectedAttraction();var t=this.x;this.integratePhysics();this.positionSlider();this.settle(t);if(this.isAnimating){var e=this;requestAnimationFrame(function t(){e.animate()})}};n.positionSlider=function(){var t=this.x;if(this.options.wrapAround&&this.cells.length>1){t=i.modulo(t,this.slideableWidth);t-=this.slideableWidth;this.shiftWrapCells(t)}this.setTranslateX(t,this.isAnimating);this.dispatchScrollEvent()};n.setTranslateX=function(t,e){t+=this.cursorPosition;t=this.options.rightToLeft?-t:t;var i=this.getPositionValue(t);this.slider.style.transform=e?"translate3d("+i+",0,0)":"translateX("+i+")"};n.dispatchScrollEvent=function(){var t=this.slides[0];if(!t){return}var e=-this.x-t.target;var i=e/this.slidesWidth;this.dispatchEvent("scroll",null,[i,e])};n.positionSliderAtSelected=function(){if(!this.cells.length){return}this.x=-this.selectedSlide.target;this.velocity=0;this.positionSlider()};n.getPositionValue=function(t){if(this.options.percentPosition){return Math.round(t/this.size.innerWidth*1e4)*.01+"%"}else{return Math.round(t)+"px"}};n.settle=function(t){var e=!this.isPointerDown&&Math.round(this.x*100)==Math.round(t*100);if(e){this.restingFrames++}if(this.restingFrames>2){this.isAnimating=false;delete this.isFreeScrolling;this.positionSlider();this.dispatchEvent("settle",null,[this.selectedIndex])}};n.shiftWrapCells=function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)};n._shiftCells=function(t,e,i){for(var n=0;n<t.length;n++){var s=t[n];var r=e>0?i:0;s.wrapShift(r);e-=s.size.outerWidth}};n._unshiftCells=function(t){if(!t||!t.length){return}for(var e=0;e<t.length;e++){t[e].wrapShift(0)}};n.integratePhysics=function(){this.x+=this.velocity;this.velocity*=this.getFrictionFactor()};n.applyForce=function(t){this.velocity+=t};n.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]};n.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())};n.applyDragForce=function(){if(!this.isDraggable||!this.isPointerDown){return}var t=this.dragX-this.x;var e=t-this.velocity;this.applyForce(e)};n.applySelectedAttraction=function(){var t=this.isDraggable&&this.isPointerDown;if(t||this.isFreeScrolling||!this.slides.length){return}var e=this.selectedSlide.target*-1-this.x;var i=e*this.options.selectedAttraction;this.applyForce(i)};return n});(function(o,a){if(typeof define=="function"&&define.amd){define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(t,e,i,n,s,r){return a(o,t,e,i,n,s,r)})}else if(typeof module=="object"&&module.exports){module.exports=a(o,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./slide"),require("./animate"))}else{var t=o.Flickity;o.Flickity=a(o,o.EvEmitter,o.getSize,o.fizzyUIUtils,t.Cell,t.Slide,t.animatePrototype)}})(window,function t(n,e,i,a,s,o,r){var l=n.jQuery;var h=n.getComputedStyle;var c=n.console;function u(t,e){t=a.makeArray(t);while(t.length){e.appendChild(t.shift())}}var d=0;var f={};function p(t,e){var i=a.getQueryElement(t);if(!i){if(c){c.error("Bad element for Flickity: "+(i||t))}return}this.element=i;if(this.element.flickityGUID){var n=f[this.element.flickityGUID];n.option(e);return n}this.existingViewportEl=this.element.querySelector(".flickity-viewport");this.existingSliderEl=this.element.querySelector(".flickity-slider");if(l){this.$element=l(this.element)}this.options=a.extend({},this.constructor.defaults);this.option(e);this._create()}p.defaults={accessibility:true,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:true,percentPosition:true,resize:true,selectedAttraction:.025,setGallerySize:true};p.createMethods=[];var v=p.prototype;a.extend(v,e.prototype);v._create=function(){var t=this.guid=++d;this.element.flickityGUID=t;f[t]=this;this.selectedIndex=0;this.restingFrames=0;this.x=0;this.velocity=0;this.originSide=this.options.rightToLeft?"right":"left";if(!this.existingViewportEl){this.viewport=document.createElement("div");this.viewport.className="flickity-viewport pos-rel w-100 h-100 overflow-hidden"}else{this.viewport=this.existingViewportEl}this._createSlider();if(this.options.resize||this.options.watchCSS){n.addEventListener("resize",this)}for(var e in this.options.on){var i=this.options.on[e];this.on(e,i)}p.createMethods.forEach(function(t){this[t]()},this);if(this.options.watchCSS){this.watchCSS()}else{this.activate()}};v.option=function(t){a.extend(this.options,t)};v.activate=function(){if(this.isActive){return}this.isActive=true;this.element.classList.add("flickity-enabled");if(this.options.rightToLeft){this.element.classList.add("flickity-rtl")}this.getSize();if(!this.existingSliderEl){var t=this.element.children;var e=this._filterFindCellElements(t);u(e,this.slider);this.viewport.appendChild(this.slider);this.element.appendChild(this.viewport)}this.reloadCells();if(this.options.accessibility){this.element.tabIndex=0;this.element.addEventListener("keydown",this)}this.emitEvent("activate");this.selectInitialIndex();this.isInitActivated=true;this.dispatchEvent("ready")};v._createSlider=function(){if(!this.existingSliderEl){var t=document.createElement("div");t.className="flickity-slider d-flex w-100 h-100 pos-rel"}else{t=this.existingSliderEl}this.slider=t};v._filterFindCellElements=function(t){t=a.makeArray(t);var n=[];var s=this.options;t.forEach(function(t){if(!s.bypassCheck&&!(t instanceof HTMLElement)){return}if(!s.cellSelector){n.push(t);return}if(matchesSelector(t,s.cellSelector)){n.push(t)}var e=t.querySelectorAll(s.cellSelector);for(var i=0;i<e.length;i++){n.push(e[i])}});return n};v.reloadCells=function(){this.cells=this._makeCells(this.slider.children);this.positionCells();this._getWrapShiftCells();this.setGallerySize()};v._makeCells=function(t){var e=this._filterFindCellElements(t);var i=e.map(function(t){return new s(t,this)},this);return i};v.getLastCell=function(){return this.cells[this.cells.length-1]};v.getLastSlide=function(){return this.slides[this.slides.length-1]};v.positionCells=function(){this._sizeCells(this.cells);this._positionCells(0)};v._positionCells=function(t){t=t||0;this.maxCellHeight=t?this.maxCellHeight||0:0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}var n=this.cells.length;for(var s=t;s<n;s++){var r=this.cells[s];r.setPosition(e);e+=r.size.outerWidth;this.maxCellHeight=Math.max(r.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e;this.updateSlides();this._containSlides();this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0};v._sizeCells=function(t){t.forEach(function(t){t.getSize()})};v.updateSlides=function(){this.slides=[];if(!this.cells.length){return}var n=new o(this);this.slides.push(n);var t=this.originSide=="left";var s=t?"marginRight":"marginLeft";var r=this._getCanCellFit();this.cells.forEach(function(t,e){if(!n.cells.length){n.addCell(t);return}var i=n.outerWidth-n.firstMargin+(t.size.outerWidth-t.size[s]);if(r.call(this,e,i)){n.addCell(t)}else{n.updateTarget();n=new o(this);this.slides.push(n);n.addCell(t)}},this);n.updateTarget();this.updateSelectedSlide()};v._getCanCellFit=function(){var t=this.options.groupCells;if(!t){return function(){return false}}else if(typeof t=="number"){var e=parseInt(t,10);return function(t){return t%e!==0}}var i=typeof t=="string"&&t.match(/^(\d+)%$/);var n=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*n}};v._init=v.reposition=function(){this.positionCells();this.positionSliderAtSelected()};v.getSize=function(){this.size=i(this.element);this.setCellAlign();this.cursorPosition=this.size.innerWidth*this.cellAlign};var g={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};v.setCellAlign=function(){var t=g[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign};v.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}};v._getWrapShiftCells=function(){if(!this.options.wrapAround){return}this._unshiftCells(this.beforeShiftCells);this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition;var e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1);t=this.size.innerWidth-this.cursorPosition;this.afterShiftCells=this._getGapCells(t,0,1)};v._getGapCells=function(t,e,i){var n=[];while(t>0){var s=this.cells[e];if(!s){break}n.push(s);e+=i;t-=s.size.outerWidth}return n};v._containSlides=function(){if(!this.options.contain||this.options.wrapAround||!this.cells.length){return}var t=this.options.rightToLeft;var e=t?"marginRight":"marginLeft";var i=t?"marginLeft":"marginRight";var n=this.slideableWidth-this.getLastCell().size[i];var s=n<this.size.innerWidth;var r=this.cursorPosition+this.cells[0].size[e];var o=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){if(s){t.target=n*this.cellAlign}else{t.target=Math.max(t.target,r);t.target=Math.min(t.target,o)}},this)};v.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n);if(l&&this.$element){t+=this.options.namespaceJQueryEvents?".flickity":"";var s=t;if(e){var r=new l.Event(e);r.type=t;s=r}this.$element.trigger(s,i)}};v.select=function(t,e,i){if(!this.isActive){return}t=parseInt(t,10);this._wrapSelect(t);if(this.options.wrapAround||e){t=a.modulo(t,this.slides.length)}if(!this.slides[t]){return}var n=this.selectedIndex;this.selectedIndex=t;this.updateSelectedSlide();if(i){this.positionSliderAtSelected()}else{this.startAnimation()}if(this.options.adaptiveHeight){this.setGallerySize()}this.dispatchEvent("select",null,[t]);if(t!=n){this.dispatchEvent("change",null,[t])}this.dispatchEvent("cellSelect")};v._wrapSelect=function(t){var e=this.slides.length;var i=this.options.wrapAround&&e>1;if(!i){return t}var n=a.modulo(t,e);var s=Math.abs(n-this.selectedIndex);var r=Math.abs(n+e-this.selectedIndex);var o=Math.abs(n-e-this.selectedIndex);if(!this.isDragSelect&&r<s){t+=e}else if(!this.isDragSelect&&o<s){t-=e}if(t<0){this.x-=this.slideableWidth}else if(t>=e){this.x+=this.slideableWidth}};v.previous=function(t,e){this.select(this.selectedIndex-1,t,e)};v.next=function(t,e){this.select(this.selectedIndex+1,t,e)};v.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];if(!t){return}this.unselectSelectedSlide();this.selectedSlide=t;t.select();this.selectedCells=t.cells;this.selectedElements=t.getCellElements();this.selectedCell=t.cells[0];this.selectedElement=this.selectedElements[0]};v.unselectSelectedSlide=function(){if(this.selectedSlide){this.selectedSlide.unselect()}};v.selectInitialIndex=function(){var t=this.options.initialIndex;if(this.isInitActivated){this.select(this.selectedIndex,false,true);return}if(t&&typeof t=="string"){var e=this.queryCell(t);if(e){this.selectCell(t,false,true);return}}var i=0;if(t&&this.slides[t]){i=t}this.select(i,false,true)};v.selectCell=function(t,e,i){var n=this.queryCell(t);if(!n){return}var s=this.getCellSlideIndex(n);this.select(s,e,i)};v.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++){var i=this.slides[e];var n=i.cells.indexOf(t);if(n!=-1){return e}}};v.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t){return i}}};v.getCells=function(t){t=a.makeArray(t);var i=[];t.forEach(function(t){var e=this.getCell(t);if(e){i.push(e)}},this);return i};v.getCellElements=function(){return this.cells.map(function(t){return t.element})};v.getParentCell=function(t){var e=this.getCell(t);if(e){return e}t=a.getParent(t,".flickity-slider > *");return this.getCell(t)};v.getAdjacentCellElements=function(t,e){if(!t){return this.selectedSlide.getCellElements()}e=e===undefined?this.selectedIndex:e;var i=this.slides.length;if(1+t*2>=i){return this.getCellElements()}var n=[];for(var s=e-t;s<=e+t;s++){var r=this.options.wrapAround?a.modulo(s,i):s;var o=this.slides[r];if(o){n=n.concat(o.getCellElements())}}return n};v.queryCell=function(t){if(typeof t=="number"){return this.cells[t]}if(typeof t=="string"){if(t.match(/^[#.]?[\d/]/)){return}t=this.element.querySelector(t)}return this.getCell(t)};v.uiChange=function(){this.emitEvent("uiChange")};v.childUIPointerDown=function(t){if(t.type!="touchstart"){t.preventDefault()}this.focus()};v.onresize=function(){this.watchCSS();this.resize()};a.debounceMethod(p,"onresize",150);v.resize=function(){if(!this.isActive||this.isAnimating||this.isDragging){return}this.getSize();if(this.options.wrapAround){this.x=a.modulo(this.x,this.slideableWidth)}this.positionCells();this._getWrapShiftCells();this.setGallerySize();this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,false,true)};v.watchCSS=function(){var t=this.options.watchCSS;if(!t){return}var e=h(this.element,":after").content;if(e.indexOf("flickity")!=-1){this.activate()}else{this.deactivate()}};v.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(!this.options.accessibility||e){return}var i=p.keyboardHandlers[t.keyCode];if(i){i.call(this)}};p.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange();this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange();this[t]()}};v.focus=function(){var t=n.pageYOffset;this.element.focus({preventScroll:true});if(n.pageYOffset!=t){n.scrollTo(n.pageXOffset,t)}};v.deactivate=function(){if(!this.isActive){return}this.element.classList.remove("flickity-enabled");this.element.classList.remove("flickity-rtl");this.unselectSelectedSlide();this.cells.forEach(function(t){t.destroy()});this.element.removeChild(this.viewport);u(this.slider.children,this.element);if(this.options.accessibility){this.element.removeAttribute("tabIndex");this.element.removeEventListener("keydown",this)}this.isActive=false;this.emitEvent("deactivate")};v.destroy=function(){this.deactivate();n.removeEventListener("resize",this);this.allOff();this.emitEvent("destroy");if(l&&this.$element){l.removeData(this.element,"flickity")}delete this.element.flickityGUID;delete f[this.guid]};a.extend(v,r);p.data=function(t){t=a.getQueryElement(t);var e=t&&t.flickityGUID;return e&&f[e]};a.htmlInit(p,"flickity");if(l&&l.bridget){l.bridget("flickity",p)}p.setJQuery=function(t){l=t};p.Cell=s;p.Slide=o;return p});
(function(e,i){if(typeof define=="function"&&define.amd){define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("ev-emitter"))}else{e.Unipointer=i(e,e.EvEmitter)}})(window,function t(s,e){function i(){}function n(){}var r=n.prototype=Object.create(e.prototype);r.bindStartEvent=function(t){this._bindStartEvent(t,true)};r.unbindStartEvent=function(t){this._bindStartEvent(t,false)};r._bindStartEvent=function(t,e){e=e===undefined?true:e;var i=e?"addEventListener":"removeEventListener";var n="mousedown";if("ontouchstart"in s){n="touchstart"}else if(s.PointerEvent){n="pointerdown"}t[i](n,this)};r.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}};r.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier){return i}}};r.onmousedown=function(t){var e=t.button;if(e&&(e!==0&&e!==1)){return}this._pointerDown(t,t)};r.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])};r.onpointerdown=function(t){this._pointerDown(t,t)};r._pointerDown=function(t,e){if(t.button||this.isPointerDown){return}this.isPointerDown=true;this.pointerIdentifier=e.pointerId!==undefined?e.pointerId:e.identifier;this.pointerDown(t,e)};r.pointerDown=function(t,e){this._bindPostStartEvents(t);this.emitEvent("pointerDown",[t,e])};var o={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};r._bindPostStartEvents=function(t){if(!t){return}var e=o[t.type];e.forEach(function(t){s.addEventListener(t,this)},this);this._boundPointerEvents=e};r._unbindPostStartEvents=function(){if(!this._boundPointerEvents){return}this._boundPointerEvents.forEach(function(t){s.removeEventListener(t,this)},this);delete this._boundPointerEvents};r.onmousemove=function(t){this._pointerMove(t,t)};r.onpointermove=function(t){if(t.pointerId==this.pointerIdentifier){this._pointerMove(t,t)}};r.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);if(e){this._pointerMove(t,e)}};r._pointerMove=function(t,e){this.pointerMove(t,e)};r.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])};r.onmouseup=function(t){this._pointerUp(t,t)};r.onpointerup=function(t){if(t.pointerId==this.pointerIdentifier){this._pointerUp(t,t)}};r.ontouchend=function(t){var e=this.getTouch(t.changedTouches);if(e){this._pointerUp(t,e)}};r._pointerUp=function(t,e){this._pointerDone();this.pointerUp(t,e)};r.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])};r._pointerDone=function(){this._pointerReset();this._unbindPostStartEvents();this.pointerDone()};r._pointerReset=function(){this.isPointerDown=false;delete this.pointerIdentifier};r.pointerDone=i;r.onpointercancel=function(t){if(t.pointerId==this.pointerIdentifier){this._pointerCancel(t,t)}};r.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);if(e){this._pointerCancel(t,e)}};r._pointerCancel=function(t,e){this._pointerDone();this.pointerCancel(t,e)};r.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])};n.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}};return n});
(function(e,i){if(typeof define=="function"&&define.amd){define("unidragger/unidragger",["unipointer/unipointer"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("unipointer"))}else{e.Unidragger=i(e,e.Unipointer)}})(window,function t(r,e){function i(){}var n=i.prototype=Object.create(e.prototype);n.bindHandles=function(){this._bindHandles(true)};n.unbindHandles=function(){this._bindHandles(false)};n._bindHandles=function(t){t=t===undefined?true:t;var e=t?"addEventListener":"removeEventListener";var i=t?this._touchActionValue:"";for(var n=0;n<this.handles.length;n++){var s=this.handles[n];this._bindStartEvent(s,t);s[e]("click",this);if(r.PointerEvent){s.style.touchAction=i}}};n._touchActionValue="none";n.pointerDown=function(t,e){var i=this.okayPointerDown(t);if(!i){return}this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY};t.preventDefault();this.pointerDownBlur();this._bindPostStartEvents(t);this.emitEvent("pointerDown",[t,e])};var s={TEXTAREA:true,INPUT:true,SELECT:true,OPTION:true};var o={radio:true,checkbox:true,button:true,submit:true,image:true,file:true};n.okayPointerDown=function(t){var e=s[t.target.nodeName];var i=o[t.target.type];var n=!e||i;if(!n){this._pointerReset()}return n};n.pointerDownBlur=function(){var t=document.activeElement;var e=t&&t.blur&&t!=document.body;if(e){t.blur()}};n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]);this._dragMove(t,e,i)};n._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};if(!this.isDragging&&this.hasDragStarted(i)){this._dragStart(t,e)}return i};n.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3};n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]);this._dragPointerUp(t,e)};n._dragPointerUp=function(t,e){if(this.isDragging){this._dragEnd(t,e)}else{this._staticClick(t,e)}};n._dragStart=function(t,e){this.isDragging=true;this.isPreventingClicks=true;this.dragStart(t,e)};n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])};n._dragMove=function(t,e,i){if(!this.isDragging){return}this.dragMove(t,e,i)};n.dragMove=function(t,e,i){t.preventDefault();this.emitEvent("dragMove",[t,e,i])};n._dragEnd=function(t,e){this.isDragging=false;setTimeout(function(){delete this.isPreventingClicks}.bind(this));this.dragEnd(t,e)};n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])};n.onclick=function(t){if(this.isPreventingClicks){t.preventDefault()}};n._staticClick=function(t,e){if(this.isIgnoringMouseUp&&t.type=="mouseup"){return}this.staticClick(t,e);if(t.type!="mouseup"){this.isIgnoringMouseUp=true;setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)}};n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])};i.getPointerPoint=e.getPointerPoint;return i});(function(n,s){if(typeof define=="function"&&define.amd){define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(t,e,i){return s(n,t,e,i)})}else if(typeof module=="object"&&module.exports){module.exports=s(n,require("./flickity"),require("unidragger"),require("fizzy-ui-utils"))}else{n.Flickity=s(n,n.Flickity,n.Unidragger,n.fizzyUIUtils)}})(window,function t(n,e,i,a){a.extend(e.defaults,{draggable:">1",dragThreshold:3});e.createMethods.push("_createDrag");var s=e.prototype;a.extend(s,i.prototype);s._touchActionValue="pan-y";s._createDrag=function(){this.on("activate",this.onActivateDrag);this.on("uiChange",this._uiChangeDrag);this.on("deactivate",this.onDeactivateDrag);this.on("cellChange",this.updateDraggable)};s.onActivateDrag=function(){this.handles=[this.viewport];this.bindHandles();this.updateDraggable()};s.onDeactivateDrag=function(){this.unbindHandles();this.element.classList.remove("is-draggable")};s.updateDraggable=function(){if(this.options.draggable==">1"){this.isDraggable=this.slides.length>1}else{this.isDraggable=this.options.draggable}if(this.isDraggable){this.element.classList.add("is-draggable")}else{this.element.classList.remove("is-draggable")}};s.bindDrag=function(){this.options.draggable=true;this.updateDraggable()};s.unbindDrag=function(){this.options.draggable=false;this.updateDraggable()};s._uiChangeDrag=function(){delete this.isFreeScrolling};s.pointerDown=function(t,e){if(!this.isDraggable){this._pointerDownDefault(t,e);return}var i=this.okayPointerDown(t);if(!i){return}this._pointerDownPreventDefault(t);this.pointerDownFocus(t);if(document.activeElement!=this.element){this.pointerDownBlur()}this.dragX=this.x;this.viewport.classList.add("is-pointer-down");this.pointerDownScroll=o();n.addEventListener("scroll",this);this._pointerDownDefault(t,e)};s._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY};this._bindPostStartEvents(t);this.dispatchEvent("pointerDown",t,[e])};var r={INPUT:true,TEXTAREA:true,SELECT:true};s.pointerDownFocus=function(t){var e=r[t.target.nodeName];if(!e){this.focus()}};s._pointerDownPreventDefault=function(t){var e=t.type=="touchstart";var i=t.pointerType=="touch";var n=r[t.target.nodeName];if(!e&&!i&&!n){t.preventDefault()}};s.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold};s.pointerUp=function(t,e){delete this.isTouchScrolling;this.viewport.classList.remove("is-pointer-down");this.dispatchEvent("pointerUp",t,[e]);this._dragPointerUp(t,e)};s.pointerDone=function(){n.removeEventListener("scroll",this);delete this.pointerDownScroll};s.dragStart=function(t,e){if(!this.isDraggable){return}this.dragStartPosition=this.x;this.startAnimation();n.removeEventListener("scroll",this);this.dispatchEvent("dragStart",t,[e])};s.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]);this._dragMove(t,e,i)};s.dragMove=function(t,e,i){if(!this.isDraggable){return}t.preventDefault();this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1;if(this.options.wrapAround){i.x%=this.slideableWidth}var s=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var r=Math.max(-this.slides[0].target,this.dragStartPosition);s=s>r?(s+r)*.5:s;var o=Math.min(-this.getLastSlide().target,this.dragStartPosition);s=s<o?(s+o)*.5:s}this.dragX=s;this.dragMoveTime=new Date;this.dispatchEvent("dragMove",t,[e,i])};s.dragEnd=function(t,e){if(!this.isDraggable){return}if(this.options.freeScroll){this.isFreeScrolling=true}var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var n=this.getRestingPosition();this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target}else if(!this.options.freeScroll&&i==this.selectedIndex){i+=this.dragEndBoostSelect()}delete this.previousDragX;this.isDragSelect=this.options.wrapAround;this.select(i);delete this.isDragSelect;this.dispatchEvent("dragEnd",t,[e])};s.dragEndRestingSelect=function(){var t=this.getRestingPosition();var e=Math.abs(this.getSlideDistance(-t,this.selectedIndex));var i=this._getClosestResting(t,e,1);var n=this._getClosestResting(t,e,-1);var s=i.distance<n.distance?i.index:n.index;return s};s._getClosestResting=function(t,e,i){var n=this.selectedIndex;var s=Infinity;var r=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};while(r(e,s)){n+=i;s=e;e=this.getSlideDistance(-t,n);if(e===null){break}e=Math.abs(e)}return{distance:s,index:n-i}};s.getSlideDistance=function(t,e){var i=this.slides.length;var n=this.options.wrapAround&&i>1;var s=n?a.modulo(e,i):e;var r=this.slides[s];if(!r){return null}var o=n?this.slideableWidth*Math.floor(e/i):0;return t-(r.target+o)};s.dragEndBoostSelect=function(){if(this.previousDragX===undefined||!this.dragMoveTime||new Date-this.dragMoveTime>100){return 0}var t=this.getSlideDistance(-this.dragX,this.selectedIndex);var e=this.previousDragX-this.dragX;if(t>0&&e>0){return 1}else if(t<0&&e<0){return-1}return 0};s.staticClick=function(t,e){var i=this.getParentCell(t.target);var n=i&&i.element;var s=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,s])};s.onscroll=function(){var t=o();var e=this.pointerDownScroll.x-t.x;var i=this.pointerDownScroll.y-t.y;if(Math.abs(e)>3||Math.abs(i)>3){this._pointerDone()}};function o(){return{x:n.pageXOffset,y:n.pageYOffset}}return e});(function(n,s){if(typeof define=="function"&&define.amd){define("flickity/js/prev-next-button",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,i){return s(n,t,e,i)})}else if(typeof module=="object"&&module.exports){module.exports=s(n,require("./flickity"),require("unipointer"),require("fizzy-ui-utils"))}else{s(n,n.Flickity,n.Unipointer,n.fizzyUIUtils)}})(window,function t(e,i,n,s){"use strict";var r="http://www.w3.org/2000/svg";function o(t,e){this.direction=t;this.parent=e;this._create()}o.prototype=Object.create(n.prototype);o.prototype._create=function(){this.isEnabled=true;this.isPrevious=this.direction==-1;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button";e.className+=this.isPrevious?" previous":" next";e.setAttribute("type","button");this.disable();e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i);this.parent.on("select",this.update.bind(this));this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))};o.prototype.activate=function(){this.bindStartEvent(this.element);this.element.addEventListener("click",this);this.parent.element.appendChild(this.element)};o.prototype.deactivate=function(){this.parent.element.removeChild(this.element);this.unbindStartEvent(this.element);this.element.removeEventListener("click",this)};o.prototype.createSVG=function(){var t=document.createElementNS(r,"svg");t.setAttribute("class","flickity-button-icon");t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(r,"path");var i=a(this.parent.options.arrowShape);e.setAttribute("d",i);e.setAttribute("class","arrow");if(!this.isLeft){e.setAttribute("transform","translate(100, 100) rotate(180) ")}t.appendChild(e);return t};function a(t){if(typeof t=="string"){return t}return"M "+t.x0+",50"+" L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50 "+" L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}o.prototype.handleEvent=s.handleEvent;o.prototype.onclick=function(){if(!this.isEnabled){return}this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()};o.prototype.enable=function(){if(this.isEnabled){return}this.element.disabled=false;this.isEnabled=true};o.prototype.disable=function(){if(!this.isEnabled){return}this.element.disabled=true;this.isEnabled=false};o.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1){this.enable();return}var e=t.length?t.length-1:0;var i=this.isPrevious?0:e;var n=this.parent.selectedIndex==i?"disable":"enable";this[n]()};o.prototype.destroy=function(){this.deactivate();this.allOff()};s.extend(i.defaults,{prevNextButtons:true,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}});i.createMethods.push("_createPrevNextButtons");var l=i.prototype;l._createPrevNextButtons=function(){if(!this.options.prevNextButtons){return}this.prevButton=new o(-1,this);this.nextButton=new o(1,this);this.on("activate",this.activatePrevNextButtons)};l.activatePrevNextButtons=function(){this.prevButton.activate();this.nextButton.activate();this.on("deactivate",this.deactivatePrevNextButtons)};l.deactivatePrevNextButtons=function(){this.prevButton.deactivate();this.nextButton.deactivate();this.off("deactivate",this.deactivatePrevNextButtons)};i.PrevNextButton=o;return i});(function(n,s){if(typeof define=="function"&&define.amd){define("flickity/js/page-dots",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,i){return s(n,t,e,i)})}else if(typeof module=="object"&&module.exports){module.exports=s(n,require("./flickity"),require("unipointer"),require("fizzy-ui-utils"))}else{s(n,n.Flickity,n.Unipointer,n.fizzyUIUtils)}})(window,function t(e,i,n,s){function r(t){this.parent=t;this._create()}r.prototype=Object.create(n.prototype);r.prototype._create=function(){this.holder=document.createElement("ol");this.holder.className="flickity-page-dots";this.dots=[];this.handleClick=this.onClick.bind(this);this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))};r.prototype.activate=function(){this.setDots();this.holder.addEventListener("click",this.handleClick);this.bindStartEvent(this.holder);this.parent.element.appendChild(this.holder)};r.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick);this.unbindStartEvent(this.holder);this.parent.element.removeChild(this.holder)};r.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;if(t>0){this.addDots(t)}else if(t<0){this.removeDots(-t)}};r.prototype.addDots=function(t){var e=document.createDocumentFragment();var i=[];var n=this.dots.length;var s=n+t;for(var r=n;r<s;r++){var o=document.createElement("li");o.className="dot";o.setAttribute("aria-label","Page dot "+(r+1));e.appendChild(o);i.push(o)}this.holder.appendChild(e);this.dots=this.dots.concat(i)};r.prototype.removeDots=function(t){var e=this.dots.splice(this.dots.length-t,t);e.forEach(function(t){this.holder.removeChild(t)},this)};r.prototype.updateSelected=function(){if(this.selectedDot){this.selectedDot.className="dot";this.selectedDot.removeAttribute("aria-current")}if(!this.dots.length){return}this.selectedDot=this.dots[this.parent.selectedIndex];this.selectedDot.className="dot is-selected";this.selectedDot.setAttribute("aria-current","step")};r.prototype.onTap=r.prototype.onClick=function(t){var e=t.target;if(e.nodeName!="LI"){return}this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)};r.prototype.destroy=function(){this.deactivate();this.allOff()};i.PageDots=r;s.extend(i.defaults,{pageDots:true});i.createMethods.push("_createPageDots");var o=i.prototype;o._createPageDots=function(){if(!this.options.pageDots){return}this.pageDots=new r(this);this.on("activate",this.activatePageDots);this.on("select",this.updateSelectedPageDots);this.on("cellChange",this.updatePageDots);this.on("resize",this.updatePageDots);this.on("deactivate",this.deactivatePageDots)};o.activatePageDots=function(){this.pageDots.activate()};o.updateSelectedPageDots=function(){this.pageDots.updateSelected()};o.updatePageDots=function(){this.pageDots.setDots()};o.deactivatePageDots=function(){this.pageDots.deactivate()};i.PageDots=r;return i});(function(t,n){if(typeof define=="function"&&define.amd){define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(t,e,i){return n(t,e,i)})}else if(typeof module=="object"&&module.exports){module.exports=n(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity"))}else{n(t.EvEmitter,t.fizzyUIUtils,t.Flickity)}})(window,function t(e,i,n){function s(t){this.parent=t;this.state="stopped";this.onVisibilityChange=this.visibilityChange.bind(this);this.onVisibilityPlay=this.visibilityPlay.bind(this)}s.prototype=Object.create(e.prototype);s.prototype.play=function(){if(this.state=="playing"){return}var t=document.hidden;if(t){document.addEventListener("visibilitychange",this.onVisibilityPlay);return}this.state="playing";document.addEventListener("visibilitychange",this.onVisibilityChange);this.tick()};s.prototype.tick=function(){if(this.state!="playing"){return}var t=this.parent.options.autoPlay;t=typeof t=="number"?t:3e3;var e=this;this.clear();this.timeout=setTimeout(function(){e.parent.next(true);e.tick()},t)};s.prototype.stop=function(){this.state="stopped";this.clear();document.removeEventListener("visibilitychange",this.onVisibilityChange)};s.prototype.clear=function(){clearTimeout(this.timeout)};s.prototype.pause=function(){if(this.state=="playing"){this.state="paused";this.clear()}};s.prototype.unpause=function(){if(this.state=="paused"){this.play()}};s.prototype.visibilityChange=function(){var t=document.hidden;this[t?"pause":"unpause"]()};s.prototype.visibilityPlay=function(){this.play();document.removeEventListener("visibilitychange",this.onVisibilityPlay)};i.extend(n.defaults,{pauseAutoPlayOnHover:true});n.createMethods.push("_createPlayer");var r=n.prototype;r._createPlayer=function(){this.player=new s(this);this.on("activate",this.activatePlayer);this.on("uiChange",this.stopPlayer);this.on("pointerDown",this.stopPlayer);this.on("deactivate",this.deactivatePlayer)};r.activatePlayer=function(){if(!this.options.autoPlay){return}this.player.play();this.element.addEventListener("mouseenter",this)};r.playPlayer=function(){this.player.play()};r.stopPlayer=function(){this.player.stop()};r.pausePlayer=function(){this.player.pause()};r.unpausePlayer=function(){this.player.unpause()};r.deactivatePlayer=function(){this.player.stop();this.element.removeEventListener("mouseenter",this)};r.onmouseenter=function(){if(!this.options.pauseAutoPlayOnHover){return}this.player.pause();this.element.addEventListener("mouseleave",this)};r.onmouseleave=function(){this.player.unpause();this.element.removeEventListener("mouseleave",this)};n.Player=s;return n});(function(i,n){if(typeof define=="function"&&define.amd){define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(t,e){return n(i,t,e)})}else if(typeof module=="object"&&module.exports){module.exports=n(i,require("./flickity"),require("fizzy-ui-utils"))}else{n(i,i.Flickity,i.fizzyUIUtils)}})(window,function t(e,i,n){function l(t){var e=document.createDocumentFragment();t.forEach(function(t){e.appendChild(t.element)});return e}var s=i.prototype;s.insert=function(t,e){var i=this._makeCells(t);if(!i||!i.length){return}var n=this.cells.length;e=e===undefined?n:e;var s=l(i);var r=e==n;if(r){this.slider.appendChild(s)}else{var o=this.cells[e].element;this.slider.insertBefore(s,o)}if(e===0){this.cells=i.concat(this.cells)}else if(r){this.cells=this.cells.concat(i)}else{var a=this.cells.splice(e,n-e);this.cells=this.cells.concat(i).concat(a)}this._sizeCells(i);this.cellChange(e,true)};s.append=function(t){this.insert(t,this.cells.length,this.options.bypassCheck)};s.prepend=function(t){this.insert(t,0,this.options.bypassCheck)};s.remove=function(t){var e=this.getCells(t);if(!e||!e.length){return}var i=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);i=Math.min(e,i);n.removeFrom(this.cells,t)},this);this.cellChange(i,true)};s.cellSizeChange=function(t){var e=this.getCell(t);if(!e){return}e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)};s.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t);this._getWrapShiftCells();this.setGallerySize();var n=this.getCell(i);if(n){this.selectedIndex=this.getCellSlideIndex(n)}this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex);this.emitEvent("cellChange",[t]);this.select(this.selectedIndex);if(e){this.positionSliderAtSelected()}};return i});(function(i,n){if(typeof define=="function"&&define.amd){define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(t,e){return n(i,t,e)})}else if(typeof module=="object"&&module.exports){module.exports=n(i,require("./flickity"),require("fizzy-ui-utils"))}else{n(i,i.Flickity,i.fizzyUIUtils)}})(window,function t(e,i,o){"use strict";i.createMethods.push("_createLazyload");var n=i.prototype;n._createLazyload=function(){this.on("select",this.lazyLoad)};n.lazyLoad=function(){var t=this.options.lazyLoad;if(!t){return}var e=typeof t=="number"?t:0;var i=this.getAdjacentCellElements(e);var n=[];i.forEach(function(t){var e=s(t);n=n.concat(e)});n.forEach(function(t){new r(t,this)},this)};function s(t){if(t.nodeName=="IMG"){var e=t.getAttribute("data-flickity-lazyload");var i=t.getAttribute("data-flickity-lazyload-src");var n=t.getAttribute("data-flickity-lazyload-srcset");if(e||i||n){return[t]}}var s="img[data-flickity-lazyload], "+"img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]";var r=t.querySelectorAll(s);return o.makeArray(r)}function r(t,e){this.img=t;this.flickity=e;this.load()}r.prototype.handleEvent=o.handleEvent;r.prototype.load=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src");var e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t;if(e){this.img.setAttribute("srcset",e)}this.img.removeAttribute("data-flickity-lazyload");this.img.removeAttribute("data-flickity-lazyload-src");this.img.removeAttribute("data-flickity-lazyload-srcset")};r.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")};r.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")};r.prototype.complete=function(t,e){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img);var n=i&&i.element;this.flickity.cellSizeChange(n);this.img.classList.add(e);this.flickity.dispatchEvent("lazyLoad",t,n)};i.LazyLoader=r;return i});
(function(t,e){if(typeof define=="function"&&define.amd){define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],e)}else if(typeof module=="object"&&module.exports){module.exports=e(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload"))}})(window,function t(e){return e});
(function(t,e){if(typeof define=="function"&&define.amd){define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],e)}else if(typeof module=="object"&&module.exports){module.exports=e(require("flickity"),require("fizzy-ui-utils"))}else{t.Flickity=e(t.Flickity,t.fizzyUIUtils)}})(window,function t(n,s){n.createMethods.push("_createAsNavFor");var e=n.prototype;e._createAsNavFor=function(){this.on("activate",this.activateAsNavFor);this.on("deactivate",this.deactivateAsNavFor);this.on("destroy",this.destroyAsNavFor);var e=this.options.asNavFor;if(!e){return}var i=this;setTimeout(function t(){i.setNavCompanion(e)})};e.setNavCompanion=function(t){t=s.getQueryElement(t);var e=n.data(t);if(!e||e==this){return}this.navCompanion=e;var i=this;this.onNavCompanionSelect=function(){i.navCompanionSelect()};e.on("select",this.onNavCompanionSelect);this.on("staticClick",this.onNavStaticClick);this.navCompanionSelect(true)};e.navCompanionSelect=function(t){if(!this.navCompanion){return}var e=this.navCompanion.selectedCells[0];var i=this.navCompanion.cells.indexOf(e);var n=i+this.navCompanion.selectedCells.length-1;var s=Math.floor(o(i,n,this.navCompanion.cellAlign));this.selectCell(s,false,t);this.removeNavSelectedElements();if(s>=this.cells.length){return}var r=this.cells.slice(i,n+1);this.navSelectedElements=r.map(function(t){return t.element});this.changeNavSelectedClass("add")};function o(t,e,i){return(e-t)*i+t}e.changeNavSelectedClass=function(e){this.navSelectedElements.forEach(function(t){t.classList[e]("is-nav-selected")})};e.activateAsNavFor=function(){this.navCompanionSelect(true)};e.removeNavSelectedElements=function(){if(!this.navSelectedElements){return}this.changeNavSelectedClass("remove");delete this.navSelectedElements};e.onNavStaticClick=function(t,e,i,n){if(typeof n=="number"){this.navCompanion.selectCell(n)}};e.deactivateAsNavFor=function(){this.removeNavSelectedElements()};e.destroyAsNavFor=function(){if(!this.navCompanion){return}this.navCompanion.off("select",this.onNavCompanionSelect);this.off("staticClick",this.onNavStaticClick);delete this.navCompanion};return n});
(function(e,i){"use strict";if(typeof define=="function"&&define.amd){define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("ev-emitter"))}else{e.imagesLoaded=i(e,e.EvEmitter)}})(typeof window!=="undefined"?window:this,function t(e,i){var n=e.jQuery;var s=e.console;function r(t,e){for(var i in e){t[i]=e[i]}return t}function o(t){var e=[];if(Array.isArray(t)){e=t}else if(typeof t.length=="number"){for(var i=0;i<t.length;i++){e.push(t[i])}}else{e.push(t)}return e}function a(t,e,i){if(!(this instanceof a)){return new a(t,e,i)}if(typeof t=="string"){t=document.querySelectorAll(t)}this.elements=o(t);this.options=r({},this.options);if(typeof e=="function"){i=e}else{r(this.options,e)}if(i){this.on("always",i)}this.getImages();if(n){this.jqDeferred=new n.Deferred}setTimeout(function(){this.check()}.bind(this))}a.prototype=Object.create(i.prototype);a.prototype.options={};a.prototype.getImages=function(){this.images=[];this.elements.forEach(this.addElementImages,this)};a.prototype.addElementImages=function(t){if(t.nodeName=="IMG"){this.addImage(t)}if(this.options.background===true){this.addElementBackgroundImages(t)}var e=t.nodeType;if(!e||!l[e]){return}var i=t.querySelectorAll("img");for(var n=0;n<i.length;n++){var s=i[n];this.addImage(s)}if(typeof this.options.background=="string"){var r=t.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var o=r[n];this.addElementBackgroundImages(o)}}};var l={1:true,9:true,11:true};a.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(!e){return}var i=/url\((['"])?(.*?)\1\)/gi;var n=i.exec(e.backgroundImage);while(n!==null){var s=n&&n[2];if(s){this.addBackground(s,t)}n=i.exec(e.backgroundImage)}};a.prototype.addImage=function(t){var e=new h(t);this.images.push(e)};a.prototype.addBackground=function(t,e){var i=new c(t,e);this.images.push(i)};a.prototype.check=function(){var n=this;this.progressedCount=0;this.hasAnyBroken=false;if(!this.images.length){this.complete();return}function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}this.images.forEach(function(t){t.once("progress",e);t.check()})};a.prototype.progress=function(t,e,i){this.progressedCount++;this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;this.emitEvent("progress",[this,t,e]);if(this.jqDeferred&&this.jqDeferred.notify){this.jqDeferred.notify(this,t)}if(this.progressedCount==this.images.length){this.complete()}if(this.options.debug&&s){s.log("progress: "+i,t,e)}};a.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=true;this.emitEvent(t,[this]);this.emitEvent("always",[this]);if(this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}};function h(t){this.img=t}h.prototype=Object.create(i.prototype);h.prototype.check=function(){var t=this.getIsImageComplete();if(t){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image;this.proxyImage.addEventListener("load",this);this.proxyImage.addEventListener("error",this);this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.proxyImage.src=this.img.src};h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth!==undefined};h.prototype.confirm=function(t,e){this.isLoaded=t;this.emitEvent("progress",[this,this.img,e])};h.prototype.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}};h.prototype.onload=function(){this.confirm(true,"onload");this.unbindEvents()};h.prototype.onerror=function(){this.confirm(false,"onerror");this.unbindEvents()};h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this);this.proxyImage.removeEventListener("error",this);this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)};function c(t,e){this.url=t;this.element=e;this.img=new Image}c.prototype=Object.create(h.prototype);c.prototype.check=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.img.src=this.url;var t=this.getIsImageComplete();if(t){this.confirm(this.img.naturalWidth!==0,"naturalWidth");this.unbindEvents()}};c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)};c.prototype.confirm=function(t,e){this.isLoaded=t;this.emitEvent("progress",[this,this.element,e])};a.makeJQueryPlugin=function(t){t=t||e.jQuery;if(!t){return}n=t;n.fn.imagesLoaded=function(t,e){var i=new a(this,t,e);return i.jqDeferred.promise(n(this))}};a.makeJQueryPlugin();return a});
(function(i,n){if(typeof define=="function"&&define.amd){define(["flickity/js/index","imagesloaded/imagesloaded"],function(t,e){return n(i,t,e)})}else if(typeof module=="object"&&module.exports){module.exports=n(i,require("flickity"),require("imagesloaded"))}else{i.Flickity=n(i,i.Flickity,i.imagesLoaded)}})(window,function t(e,i,s){"use strict";i.createMethods.push("_createImagesLoaded");var n=i.prototype;n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)};n.imagesLoaded=function(){if(!this.options.imagesLoaded){return}var n=this;function t(t,e){var i=n.getParentCell(e.img);n.cellSizeChange(i&&i.element);if(!n.options.freeScroll){n.positionSliderAtSelected()}}s(this.slider).on("progress",t)};return i});
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var _=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function k(D){return e.getComputedStyle(D)}function n(D,u){var e;return i(D)?D:"string"==(e=typeof D)&&!u&&D?E.call(X.querySelectorAll(D),0):D&&"object"==e&&"length"in D?E.call(D,0):D?[D]:[]}function o(D){return"absolute"===D.position||!0===D.absolute}function p(D,u){for(var e,t=u.length;-1<--t;)if(e=u[t],D.substr(0,e.length)===e)return e.length}function r(D,u){void 0===D&&(D="");var e=~D.indexOf("++"),t=1;return e&&(D=D.split("++").join("")),function(){return"<"+u+" style='position:relative;display:inline-block;'"+(D?" class='"+D+(e?t++:"")+"'>":">")}}function s(D,u,e){var t=D.nodeType;if(1===t||9===t||11===t)for(D=D.firstChild;D;D=D.nextSibling)s(D,u,e);else 3!==t&&4!==t||(D.nodeValue=D.nodeValue.split(u).join(e))}function t(D,u){for(var e=u.length;-1<--e;)D.push(u[e])}function u(D,u,e){for(var t;D&&D!==u;){if(t=D._next||D.nextSibling)return t.textContent.charAt(0)===e;D=D.parentNode||D._parent}}function v(D){var u,e,t=n(D.childNodes),F=t.length;for(u=0;u<F;u++)(e=t[u])._isSplit?v(e):u&&e.previousSibling&&3===e.previousSibling.nodeType?(e.previousSibling.nodeValue+=3===e.nodeType?e.nodeValue:e.firstChild.nodeValue,D.removeChild(e)):3!==e.nodeType&&(D.insertBefore(e.firstChild,e),D.removeChild(e))}function w(D,u){return parseFloat(u[D])||0}function x(D,e,F,C,i,n,E){var r,l,p,d,a,h,B,f,A,c,x,g,y=k(D),_=w("paddingLeft",y),b=-999,S=w("borderBottomWidth",y)+w("borderTopWidth",y),T=w("borderLeftWidth",y)+w("borderRightWidth",y),m=w("paddingTop",y)+w("paddingBottom",y),N=w("paddingLeft",y)+w("paddingRight",y),L=w("fontSize",y)*(e.lineThreshold||.2),W=y.textAlign,H=[],O=[],V=[],j=e.wordDelimiter||" ",M=e.tag?e.tag:e.span?"span":"div",R=e.type||e.split||"chars,words,lines",z=i&&~R.indexOf("lines")?[]:null,P=~R.indexOf("words"),q=~R.indexOf("chars"),G=o(e),I=e.linesClass,J=~(I||"").indexOf("++"),K=[],Q="flex"===y.display,U=D.style.display;for(J&&(I=I.split("++").join("")),Q&&(D.style.display="block"),p=(l=D.getElementsByTagName("*")).length,a=[],r=0;r<p;r++)a[r]=l[r];if(z||G)for(r=0;r<p;r++)((h=(d=a[r]).parentNode===D)||G||q&&!P)&&(g=d.offsetTop,z&&h&&Math.abs(g-b)>L&&("BR"!==d.nodeName||0===r)&&(B=[],z.push(B),b=g),G&&(d._x=d.offsetLeft,d._y=g,d._w=d.offsetWidth,d._h=d.offsetHeight),z&&((d._isSplit&&h||!q&&h||P&&h||!P&&d.parentNode.parentNode===D&&!d.parentNode._isSplit)&&(B.push(d),d._x-=_,u(d,D,j)&&(d._wordEnd=!0)),"BR"===d.nodeName&&(d.nextSibling&&"BR"===d.nextSibling.nodeName||0===r)&&z.push([])));for(r=0;r<p;r++)if(h=(d=a[r]).parentNode===D,"BR"!==d.nodeName)if(G&&(A=d.style,P||h||(d._x+=d.parentNode._x,d._y+=d.parentNode._y),A.left=d._x+"px",A.top=d._y+"px",A.position="absolute",A.display="block",A.width=d._w+1+"px",A.height=d._h+"px"),!P&&q)if(d._isSplit)for(d._next=l=d.nextSibling,d.parentNode.appendChild(d);l&&3===l.nodeType&&" "===l.textContent;)d._next=l.nextSibling,d.parentNode.appendChild(l),l=l.nextSibling;else d.parentNode._isSplit?(d._parent=d.parentNode,!d.previousSibling&&d.firstChild&&(d.firstChild._isFirst=!0),d.nextSibling&&" "===d.nextSibling.textContent&&!d.nextSibling.nextSibling&&K.push(d.nextSibling),d._next=d.nextSibling&&d.nextSibling._isFirst?null:d.nextSibling,d.parentNode.removeChild(d),a.splice(r--,1),p--):h||(g=!d.nextSibling&&u(d.parentNode,D,j),d.parentNode._parent&&d.parentNode._parent.appendChild(d),g&&d.parentNode.appendChild(X.createTextNode(" ")),"span"===M&&(d.style.display="inline"),H.push(d));else d.parentNode._isSplit&&!d._isSplit&&""!==d.innerHTML?O.push(d):q&&!d._isSplit&&("span"===M&&(d.style.display="inline"),H.push(d));else z||G?(d.parentNode&&d.parentNode.removeChild(d),a.splice(r--,1),p--):P||D.appendChild(d);for(r=K.length;-1<--r;)K[r].parentNode.removeChild(K[r]);if(z){for(G&&(c=X.createElement(M),D.appendChild(c),x=c.offsetWidth+"px",g=c.offsetParent===D?0:D.offsetLeft,D.removeChild(c)),A=D.style.cssText,D.style.cssText="display:none;";D.firstChild;)D.removeChild(D.firstChild);for(f=" "===j&&(!G||!P&&!q),r=0;r<z.length;r++){for(B=z[r],(c=X.createElement(M)).style.cssText="display:block;text-align:"+W+";position:"+(G?"absolute;":"relative;"),I&&(c.className=I+(J?r+1:"")),V.push(c),p=B.length,l=0;l<p;l++)"BR"!==B[l].nodeName&&(d=B[l],c.appendChild(d),f&&d._wordEnd&&c.appendChild(X.createTextNode(" ")),G&&(0===l&&(c.style.top=d._y+"px",c.style.left=_+g+"px"),d.style.top="0px",g&&(d.style.left=d._x-g+"px")));0===p?c.innerHTML="&nbsp;":P||q||(v(c),s(c,String.fromCharCode(160)," ")),G&&(c.style.width=x,c.style.height=d._h+"px"),D.appendChild(c)}D.style.cssText=A}G&&(E>D.clientHeight&&(D.style.height=E-m+"px",D.clientHeight<E&&(D.style.height=E+S+"px")),n>D.clientWidth&&(D.style.width=n-N+"px",D.clientWidth<n&&(D.style.width=n+T+"px"))),Q&&(U?D.style.display=U:D.style.removeProperty("display")),t(F,H),P&&t(C,O),t(i,V)}function y(D,u,e,t){var F,C,i,n,E,r,l,d,a=u.tag?u.tag:u.span?"span":"div",h=~(u.type||u.split||"chars,words,lines").indexOf("chars"),B=o(u),f=u.wordDelimiter||" ",A=" "!==f?"":B?"&#173; ":" ",c="</"+a+">",x=1,g=u.specialChars?"function"==typeof u.specialChars?u.specialChars:p:null,y=X.createElement("div"),v=D.parentNode;for(v.insertBefore(y,D),y.textContent=D.nodeValue,v.removeChild(D),l=-1!==(F=function getText(D){var u=D.nodeType,e="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)e+=getText(D)}else if(3===u||4===u)return D.nodeValue;return e}(D=y)).indexOf("<"),!1!==u.reduceWhiteSpace&&(F=F.replace(S," ").replace(b,"")),l&&(F=F.split("<").join("{{LT}}")),E=F.length,C=(" "===F.charAt(0)?A:"")+e(),i=0;i<E;i++)if(r=F.charAt(i),g&&(d=g(F.substr(i),u.specialChars)))r=F.substr(i,d||1),C+=h&&" "!==r?t()+r+"</"+a+">":r,i+=d-1;else if(r===f&&F.charAt(i-1)!==f&&i){for(C+=x?c:"",x=0;F.charAt(i+1)===f;)C+=A,i++;i===E-1?C+=A:")"!==F.charAt(i+1)&&(C+=A+e(),x=1)}else"{"===r&&"{{LT}}"===F.substr(i,6)?(C+=h?t()+"{{LT}}</"+a+">":"{{LT}}",i+=5):55296<=r.charCodeAt(0)&&r.charCodeAt(0)<=56319||65024<=F.charCodeAt(i+1)&&F.charCodeAt(i+1)<=65039?(n=((F.substr(i,12).split(_)||[])[1]||"").length||2,C+=h&&" "!==r?t()+F.substr(i,n)+"</"+a+">":F.substr(i,n),i+=n-1):C+=h&&" "!==r?t()+r+"</"+a+">":r;D.outerHTML=C+(x?c:""),l&&s(v,"{{LT}}","<")}function z(D,u,e,t){var F,C,i=n(D.childNodes),E=i.length,s=o(u);if(3!==D.nodeType||1<E){for(u.absolute=!1,F=0;F<E;F++)(C=i[F])._next=C._isFirst=C._parent=C._wordEnd=null,3===C.nodeType&&!/\S+/.test(C.nodeValue)||(s&&3!==C.nodeType&&"inline"===k(C).display&&(C.style.display="inline-block",C.style.position="relative"),C._isSplit=!0,z(C,u,e,t));return u.absolute=s,void(D._isSplit=!0)}y(D,u,e,t)}var X,e,F,C,b=/(?:\r|\n|\t\t)/g,S=/(?:\s\s+)/g,i=Array.isArray,E=[].slice,l=((C=SplitText.prototype).split=function split(D){this.isSplit&&this.revert(),this.vars=D=D||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var u,e,t,F=this.elements.length,C=D.tag?D.tag:D.span?"span":"div",i=r(D.wordsClass,C),n=r(D.charsClass,C);-1<--F;)t=this.elements[F],this._originals[F]=t.innerHTML,u=t.clientHeight,e=t.clientWidth,z(t,D,i,n),x(t,D,this.chars,this.words,this.lines,e,u);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},C.revert=function revert(){var e=this._originals;if(!e)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(D,u){return D.innerHTML=e[u]}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},SplitText.create=function create(D,u){return new SplitText(D,u)},SplitText);function SplitText(D,u){F||function _initCore(){X=document,e=window,F=1}(),this.elements=n(D),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=u||{},this.split(u)}l.version="3.6.1",D.SplitText=l,D.default=l;if(typeof(window)==="undefined"||window!==D){Object.defineProperty(D,"__esModule",{value:!0})}else{delete D.default}});