/*! * Bootstrap v5.2.2 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ !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";let t=1e6,e=1e3,i="transitionend",s=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),n=e=>{do e+=Math.floor(Math.random()*t);while(document.getElementById(e));return e},a=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?i.trim():null}return e},r=t=>{let e=a(t);return e&&document.querySelector(e)?e:null},o=t=>{let e=a(t);return e?document.querySelector(e):null},l=t=>{if(!t)return 0;let{transitionDuration:i,transitionDelay:s}=window.getComputedStyle(t),n=Number.parseFloat(i),a=Number.parseFloat(s);return n||a?(i=i.split(",")[0],s=s.split(",")[0],(Number.parseFloat(i)+Number.parseFloat(s))*e):0},h=t=>{t.dispatchEvent(new Event(i))},c=t=>!!t&&"object"==typeof t&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),d=t=>c(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,u=t=>{if(!c(t)||0===t.getClientRects().length)return!1;let e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){let s=t.closest("summary");if(s&&s.parentNode!==i||null===s)return!1}return e},f=t=>!!(!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled"))||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),p=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){let e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?p(t.parentNode):null},m=()=>{},g=t=>{t.offsetHeight},v=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,$=[],b=t=>{"loading"===document.readyState?($.length||document.addEventListener("DOMContentLoaded",()=>{for(let t of $)t()}),$.push(t)):t()},y=()=>"rtl"===document.documentElement.dir,w=t=>{b(()=>{let e=v();if(e){let i=t.NAME,s=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=s,t.jQueryInterface)}})},_=t=>{"function"==typeof t&&t()},k=(t,e,s=!0)=>{if(!s){_(t);return}let n=5,a=l(e)+n,r=!1,o=({target:s})=>{s===e&&(r=!0,e.removeEventListener(i,o),_(t))};e.addEventListener(i,o),setTimeout(()=>{r||h(e)},a)},D=(t,e,i,s)=>{let n=t.length,a=t.indexOf(e);return -1===a?!i&&s?t[n-1]:t[0]:(a+=i?1:-1,s&&(a=(a+n)%n),t[Math.max(0,Math.min(a,n-1))])},C=/[^.]*(?=\..*)\.|.*/,x=/\..*/,S=/::\d+$/,P={},T=1,M={mouseenter:"mouseover",mouseleave:"mouseout"},A=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 E(t,e){return e&&`${e}::${T++}`||t.uidEvent||T++}function I(t){let e=E(t);return t.uidEvent=e,P[e]=P[e]||{},P[e]}function O(t,e){return function i(s){return j(s,{delegateTarget:t}),i.oneOff&&R.off(t,s.type,e),e.apply(t,[s])}}function F(t,e,i){return function s(n){let a=t.querySelectorAll(e);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(let o of a)if(o===r)return j(n,{delegateTarget:r}),s.oneOff&&R.off(t,n.type,e,i),i.apply(r,[n])}}function Y(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function L(t,e,i){let s="string"==typeof e,n=s?i:e||i,a=N(t);return A.has(a)||(a=t),[s,n,a]}function z(t,e,i,s,n){if("string"!=typeof e||!t)return;let[a,r,o]=L(e,i,s);if(e in M){let l=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=l(r)}let h=I(t),c=h[o]||(h[o]={}),d=Y(c,r,a?i:null);if(d){d.oneOff=d.oneOff&&n;return}let u=E(r,e.replace(C,"")),f=a?F(t,i,r):O(t,r);f.delegationSelector=a?i:null,f.callable=r,f.oneOff=n,f.uidEvent=u,c[u]=f,t.addEventListener(o,f,a)}function H(t,e,i,s,n){let a=Y(e[i],s,n);a&&(t.removeEventListener(i,a,Boolean(n)),delete e[i][a.uidEvent])}function W(t,e,i,s){let n=e[i]||{};for(let a of Object.keys(n))if(a.includes(s)){let r=n[a];H(t,e,i,r.callable,r.delegationSelector)}}function N(t){return M[t=t.replace(x,"")]||t}let R={on(t,e,i,s){z(t,e,i,s,!1)},one(t,e,i,s){z(t,e,i,s,!0)},off(t,e,i,s){if("string"!=typeof e||!t)return;let[n,a,r]=L(e,i,s),o=r!==e,l=I(t),h=l[r]||{},c=e.startsWith(".");if(void 0!==a){if(!Object.keys(h).length)return;H(t,l,r,a,n?i:null);return}if(c)for(let d of Object.keys(l))W(t,l,d,e.slice(1));for(let u of Object.keys(h)){let f=u.replace(S,"");if(!o||e.includes(f)){let p=h[u];H(t,l,r,p.callable,p.delegationSelector)}}},trigger(t,e,i){if("string"!=typeof e||!t)return null;let s=v(),n=N(e),a=e!==n,r=null,o=!0,l=!0,h=!1;a&&s&&(r=s.Event(e,i),s(t).trigger(r),o=!r.isPropagationStopped(),l=!r.isImmediatePropagationStopped(),h=r.isDefaultPrevented());let c=new Event(e,{bubbles:o,cancelable:!0});return c=j(c,i),h&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&r&&r.preventDefault(),c}};function j(t,e){for(let[i,s]of Object.entries(e||{}))try{t[i]=s}catch(n){Object.defineProperty(t,i,{configurable:!0,get:()=>s})}return t}let B=new Map,q={set(t,e,i){B.has(t)||B.set(t,new Map);let s=B.get(t);if(!s.has(e)&&0!==s.size){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`);return}s.set(e,i)},get:(t,e)=>B.has(t)&&B.get(t).get(e)||null,remove(t,e){if(!B.has(t))return;let i=B.get(t);i.delete(e),0===i.size&&B.delete(t)}};function V(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 U(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}let K={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${U(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${U(e)}`)},getDataAttributes(t){if(!t)return{};let e={},i=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(let s of i){let n=s.replace(/^bs/,"");e[n=n.charAt(0).toLowerCase()+n.slice(1,n.length)]=V(t.dataset[s])}return e},getDataAttribute:(t,e)=>V(t.getAttribute(`data-bs-${U(e)}`))};class G{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw 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){let i=c(e)?K.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...c(e)?K.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(let i of Object.keys(e)){let n=e[i],a=t[i],r=c(a)?"element":s(a);if(!RegExp(n).test(r))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${r}" but expected type "${n}".`)}}}let X="5.2.2";class Z extends G{constructor(t,e){if(super(),!(t=d(t)))return;this._element=t,this._config=this._getConfig(e),q.set(this._element,this.constructor.DATA_KEY,this)}dispose(){for(let t of(q.remove(this._element,this.constructor.DATA_KEY),R.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this)))this[t]=null}_queueCallback(t,e,i=!0){k(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return q.get(d(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return X}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}let Q=(t,e="hide")=>{let i=`click.dismiss${t.EVENT_KEY}`,s=t.NAME;R.on(document,i,`[data-bs-dismiss="${s}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),f(this))return;let n=o(this)||this.closest(`.${s}`),a=t.getOrCreateInstance(n);a[e]()})},J="alert",tt="bs.alert",te=`.${tt}`,ti=`close${te}`,ts=`closed${te}`,tn="fade",ta="show";class tr extends Z{static get NAME(){return J}close(){let t=R.trigger(this._element,ti);if(t.defaultPrevented)return;this._element.classList.remove(ta);let e=this._element.classList.contains(tn);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),R.trigger(this._element,ts),this.dispose()}static jQueryInterface(t){return this.each(function(){let e=tr.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw TypeError(`No method named "${t}"`);e[t](this)}})}}Q(tr,"close"),w(tr);let to="button",tl="bs.button",th=`.${tl}`,tc=".data-api",td="active",tu='[data-bs-toggle="button"]',tf=`click${th}${tc}`;class tp extends Z{static get NAME(){return to}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(td))}static jQueryInterface(t){return this.each(function(){let e=tp.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}R.on(document,tf,tu,t=>{t.preventDefault();let e=t.target.closest(tu),i=tp.getOrCreateInstance(e);i.toggle()}),w(tp);let tm={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){let i=[],s=t.parentNode.closest(e);for(;s;)i.push(s),s=s.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){let e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(t=>!f(t)&&u(t))}},tg="swipe",tv=".bs.swipe",t8=`touchstart${tv}`,t$=`touchmove${tv}`,tb=`touchend${tv}`,ty=`pointerdown${tv}`,tw=`pointerup${tv}`,t_="touch",tk="pen",tD="pointer-event",tC=40,tx={endCallback:null,leftCallback:null,rightCallback:null},tS={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class tP extends G{constructor(t,e){if(super(),this._element=t,!t||!tP.isSupported())return;this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents()}static get Default(){return tx}static get DefaultType(){return tS}static get NAME(){return tg}dispose(){R.off(this._element,tv)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),_(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){let t=Math.abs(this._deltaX);if(t<=tC)return;let e=t/this._deltaX;this._deltaX=0,e&&_(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(R.on(this._element,ty,t=>this._start(t)),R.on(this._element,tw,t=>this._end(t)),this._element.classList.add(tD)):(R.on(this._element,t8,t=>this._start(t)),R.on(this._element,t$,t=>this._move(t)),R.on(this._element,tb,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===tk||t.pointerType===t_)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}let tT="carousel",tM="bs.carousel",tA=`.${tM}`,tE=".data-api",tI="ArrowLeft",tO="ArrowRight",tF=500,t0="next",tY="prev",tL="left",tz="right",tH=`slide${tA}`,tW=`slid${tA}`,tN=`keydown${tA}`,tR=`mouseenter${tA}`,t9=`mouseleave${tA}`,t3=`dragstart${tA}`,tj=`load${tA}${tE}`,tB=`click${tA}${tE}`,tq="carousel",t1="active",tV="slide",t2="carousel-item-end",t7="carousel-item-start",tU="carousel-item-next",t5="carousel-item-prev",t4=".active",t6=".carousel-item",tK=t4+t6,tG=".carousel-item img",tX=".carousel-indicators",tZ="[data-bs-slide], [data-bs-slide-to]",tQ='[data-bs-ride="carousel"]',tJ={[tI]:tz,[tO]:tL},et={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ee={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ei extends Z{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=tm.findOne(tX,this._element),this._addEventListeners(),this._config.ride===tq&&this.cycle()}static get Default(){return et}static get DefaultType(){return ee}static get NAME(){return tT}next(){this._slide(t0)}nextWhenVisible(){!document.hidden&&u(this._element)&&this.next()}prev(){this._slide(tY)}pause(){this._isSliding&&h(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){R.one(this._element,tW,()=>this.cycle());return}this.cycle()}}to(t){let e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){R.one(this._element,tW,()=>this.to(t));return}let i=this._getItemIndex(this._getActive());if(i===t)return;let s=t>i?t0:tY;this._slide(s,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&R.on(this._element,tN,t=>this._keydown(t)),"hover"===this._config.pause&&(R.on(this._element,tR,()=>this.pause()),R.on(this._element,t9,()=>this._maybeEnableCycle())),this._config.touch&&tP.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let t of tm.find(tG,this._element))R.on(t,t3,t=>t.preventDefault());let e=()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),tF+this._config.interval))},i={leftCallback:()=>this._slide(this._directionToOrder(tL)),rightCallback:()=>this._slide(this._directionToOrder(tz)),endCallback:e};this._swipeHelper=new tP(this._element,i)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;let e=tJ[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;let e=tm.findOne(t4,this._indicatorsElement);e.classList.remove(t1),e.removeAttribute("aria-current");let i=tm.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(t1),i.setAttribute("aria-current","true"))}_updateInterval(){let t=this._activeElement||this._getActive();if(!t)return;let e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;let i=this._getActive(),s=t===t0,n=e||D(this._getItems(),i,s,this._config.wrap);if(n===i)return;let a=this._getItemIndex(n),r=e=>R.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:a}),o=r(tH);if(o.defaultPrevented||!i||!n)return;let l=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=n;let h=s?t7:t2,c=s?tU:t5;n.classList.add(c),g(n),i.classList.add(h),n.classList.add(h);let d=()=>{n.classList.remove(h,c),n.classList.add(t1),i.classList.remove(t1,c,h),this._isSliding=!1,r(tW)};this._queueCallback(d,i,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(tV)}_getActive(){return tm.findOne(tK,this._element)}_getItems(){return tm.find(t6,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return y()?t===tL?tY:t0:t===tL?t0:tY}_orderToDirection(t){return y()?t===tY?tL:tz:t===tY?tz:tL}static jQueryInterface(t){return this.each(function(){let e=ei.getOrCreateInstance(this,t);if("number"==typeof t){e.to(t);return}if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw TypeError(`No method named "${t}"`);e[t]()}})}}R.on(document,tB,tZ,function(t){let e=o(this);if(!e||!e.classList.contains(tq))return;t.preventDefault();let i=ei.getOrCreateInstance(e),s=this.getAttribute("data-bs-slide-to");if(s){i.to(s),i._maybeEnableCycle();return}if("next"===K.getDataAttribute(this,"slide")){i.next(),i._maybeEnableCycle();return}i.prev(),i._maybeEnableCycle()}),R.on(window,tj,()=>{let t=tm.find(tQ);for(let e of t)ei.getOrCreateInstance(e)}),w(ei);let es="collapse",en="bs.collapse",ea=`.${en}`,er=".data-api",eo=`show${ea}`,el=`shown${ea}`,eh=`hide${ea}`,ec=`hidden${ea}`,ed=`click${ea}${er}`,eu="show",ef="collapse",ep="collapsing",em="collapsed",eg=`:scope .${ef} .${ef}`,ev="collapse-horizontal",e8="width",e$="height",eb=".collapse.show, .collapse.collapsing",ey='[data-bs-toggle="collapse"]',ew={parent:null,toggle:!0},e_={parent:"(null|element)",toggle:"boolean"};class ek extends Z{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];let i=tm.find(ey);for(let s of i){let n=r(s),a=tm.find(n).filter(t=>t===this._element);null!==n&&a.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ew}static get DefaultType(){return e_}static get NAME(){return es}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(eb).filter(t=>t!==this._element).map(t=>ek.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;let e=R.trigger(this._element,eo);if(e.defaultPrevented)return;for(let i of t)i.hide();let s=this._getDimension();this._element.classList.remove(ef),this._element.classList.add(ep),this._element.style[s]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let n=()=>{this._isTransitioning=!1,this._element.classList.remove(ep),this._element.classList.add(ef,eu),this._element.style[s]="",R.trigger(this._element,el)},a=s[0].toUpperCase()+s.slice(1),r=`scroll${a}`;this._queueCallback(n,this._element,!0),this._element.style[s]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown())return;let t=R.trigger(this._element,eh);if(t.defaultPrevented)return;let e=this._getDimension();for(let i of(this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,g(this._element),this._element.classList.add(ep),this._element.classList.remove(ef,eu),this._triggerArray)){let s=o(i);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;let n=()=>{this._isTransitioning=!1,this._element.classList.remove(ep),this._element.classList.add(ef),R.trigger(this._element,ec)};this._element.style[e]="",this._queueCallback(n,this._element,!0)}_isShown(t=this._element){return t.classList.contains(eu)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=d(t.parent),t}_getDimension(){return this._element.classList.contains(ev)?e8:e$}_initializeChildren(){if(!this._config.parent)return;let t=this._getFirstLevelChildren(ey);for(let e of t){let i=o(e);i&&this._addAriaAndCollapsedClass([e],this._isShown(i))}}_getFirstLevelChildren(t){let e=tm.find(eg,this._config.parent);return tm.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(let i of t)i.classList.toggle(em,!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){let e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){let i=ek.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw TypeError(`No method named "${t}"`);i[t]()}})}}R.on(document,ed,ey,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();let e=r(this),i=tm.find(e);for(let s of i)ek.getOrCreateInstance(s,{toggle:!1}).toggle()}),w(ek);var eD="top",eC="bottom",ex="right",eS="left",eP="auto",eT=[eD,eC,ex,eS],eM="start",eA="end",eE="clippingParents",eI="viewport",eO="popper",eF="reference",e0=eT.reduce(function(t,e){return t.concat([e+"-"+eM,e+"-"+eA])},[]),eY=[].concat(eT,[eP]).reduce(function(t,e){return t.concat([e,e+"-"+eM,e+"-"+eA])},[]),eL="beforeRead",ez="read",eH="afterRead",eW="beforeMain",eN="main",eR="afterMain",e9="beforeWrite",e3="write",ej="afterWrite",eB=[eL,ez,eH,eW,eN,eR,e9,e3,ej];function eq(t){return t?(t.nodeName||"").toLowerCase():null}function e1(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function eV(t){var e=e1(t).Element;return t instanceof e||t instanceof Element}function e2(t){var e=e1(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function e7(t){if("undefined"==typeof ShadowRoot)return!1;var e=e1(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function eU(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},s=e.attributes[t]||{},n=e.elements[t];e2(n)&&eq(n)&&(Object.assign(n.style,i),Object.keys(s).forEach(function(t){var e=s[t];!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)}))})}function e5(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 s=e.elements[t],n=e.attributes[t]||{},a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce(function(t,e){return t[e]="",t},{});e2(s)&&eq(s)&&(Object.assign(s.style,a),Object.keys(n).forEach(function(t){s.removeAttribute(t)}))})}}let e4={name:"applyStyles",enabled:!0,phase:"write",fn:eU,effect:e5,requires:["computeStyles"]};function e6(t){return t.split("-")[0]}var eK=Math.max,eG=Math.min,eX=Math.round;function eZ(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function eQ(){return!/^((?!chrome|android).)*safari/i.test(eZ())}function eJ(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var s=t.getBoundingClientRect(),n=1,a=1;e&&e2(t)&&(n=t.offsetWidth>0&&eX(s.width)/t.offsetWidth||1,a=t.offsetHeight>0&&eX(s.height)/t.offsetHeight||1);var r=(eV(t)?e1(t):window).visualViewport,o=!eQ()&&i,l=(s.left+(o&&r?r.offsetLeft:0))/n,h=(s.top+(o&&r?r.offsetTop:0))/a,c=s.width/n,d=s.height/a;return{width:c,height:d,top:h,right:l+c,bottom:h+d,left:l,x:l,y:h}}function it(t){var e=eJ(t),i=t.offsetWidth,s=t.offsetHeight;return 1>=Math.abs(e.width-i)&&(i=e.width),1>=Math.abs(e.height-s)&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:s}}function ie(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&e7(i)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function ii(t){return e1(t).getComputedStyle(t)}function is(t){return["table","td","th"].indexOf(eq(t))>=0}function ia(t){return((eV(t)?t.ownerDocument:t.document)||window.document).documentElement}function ir(t){return"html"===eq(t)?t:t.assignedSlot||t.parentNode||(e7(t)?t.host:null)||ia(t)}function io(t){return e2(t)&&"fixed"!==ii(t).position?t.offsetParent:null}function il(t){var e=/firefox/i.test(eZ());if(/Trident/i.test(eZ())&&e2(t)&&"fixed"===ii(t).position)return null;var i=ir(t);for(e7(i)&&(i=i.host);e2(i)&&0>["html","body"].indexOf(eq(i));){var s=ii(i);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||e&&"filter"===s.willChange||e&&s.filter&&"none"!==s.filter)return i;i=i.parentNode}return null}function ih(t){for(var e=e1(t),i=io(t);i&&is(i)&&"static"===ii(i).position;)i=io(i);return i&&("html"===eq(i)||"body"===eq(i)&&"static"===ii(i).position)?e:i||il(t)||e}function ic(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function id(t,e,i){return eK(t,eG(e,i))}function iu(t,e,i){var s=id(t,e,i);return s>i?i:s}function ip(){return{top:0,right:0,bottom:0,left:0}}function im(t){return Object.assign({},ip(),t)}function ig(t,e){return e.reduce(function(e,i){return e[i]=t,e},{})}var iv=function t(e,i){return im("number"!=typeof(e="function"==typeof e?e(Object.assign({},i.rects,{placement:i.placement})):e)?e:ig(e,eT))};function i8(t){var e,i=t.state,s=t.name,n=t.options,a=i.elements.arrow,r=i.modifiersData.popperOffsets,o=e6(i.placement),l=ic(o),h=[eS,ex].indexOf(o)>=0?"height":"width";if(a&&r){var c=iv(n.padding,i),d=it(a),u="y"===l?eD:eS,f="y"===l?eC:ex,p=i.rects.reference[h]+i.rects.reference[l]-r[l]-i.rects.popper[h],m=r[l]-i.rects.reference[l],g=ih(a),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,$=p/2-m/2,b=c[u],y=v-d[h]-c[f],w=v/2-d[h]/2+$,_=id(b,w,y),k=l;i.modifiersData[s]=((e={})[k]=_,e.centerOffset=_-w,e)}}function i$(t){var e=t.state,i=t.options.element,s=void 0===i?"[data-popper-arrow]":i;null!=s&&("string"!=typeof s||(s=e.elements.popper.querySelector(s)))&&ie(e.elements.popper,s)&&(e.elements.arrow=s)}let ib={name:"arrow",enabled:!0,phase:"main",fn:i8,effect:i$,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function iy(t){return t.split("-")[1]}var iw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i_(t){var e=t.x,i=t.y,s=window.devicePixelRatio||1;return{x:eX(e*s)/s||0,y:eX(i*s)/s||0}}function ik(t){var e,i,s=t.popper,n=t.popperRect,a=t.placement,r=t.variation,o=t.offsets,l=t.position,h=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,f=o.x,p=void 0===f?0:f,m=o.y,g=void 0===m?0:m,v="function"==typeof d?d({x:p,y:g}):{x:p,y:g};p=v.x,g=v.y;var $=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),y=eS,w=eD,_=window;if(c){var k=ih(s),D="clientHeight",C="clientWidth";k===e1(s)&&(k=ia(s),"static"!==ii(k).position&&"absolute"===l&&(D="scrollHeight",C="scrollWidth")),(a===eD||(a===eS||a===ex)&&r===eA)&&(w=eC,g-=(u&&k===_&&_.visualViewport?_.visualViewport.height:k[D])-n.height,g*=h?1:-1),(a===eS||(a===eD||a===eC)&&r===eA)&&(y=ex,p-=(u&&k===_&&_.visualViewport?_.visualViewport.width:k[C])-n.width,p*=h?1:-1)}var x=Object.assign({position:l},c&&iw),S=!0===d?i_({x:p,y:g}):{x:p,y:g};return(p=S.x,g=S.y,h)?Object.assign({},x,((i={})[w]=b?"0":"",i[y]=$?"0":"",i.transform=1>=(_.devicePixelRatio||1)?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",i)):Object.assign({},x,((e={})[w]=b?g+"px":"",e[y]=$?p+"px":"",e.transform="",e))}function iD(t){var e=t.state,i=t.options,s=i.gpuAcceleration,n=void 0===s||s,a=i.adaptive,r=void 0===a||a,o=i.roundOffsets,l=void 0===o||o,h={placement:e6(e.placement),variation:iy(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ik(Object.assign({},h,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ik(Object.assign({},h,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}let iC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iD,data:{}};var ix={passive:!0};function iS(t){var e=t.state,i=t.instance,s=t.options,n=s.scroll,a=void 0===n||n,r=s.resize,o=void 0===r||r,l=e1(e.elements.popper),h=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&h.forEach(function(t){t.addEventListener("scroll",i.update,ix)}),o&&l.addEventListener("resize",i.update,ix),function(){a&&h.forEach(function(t){t.removeEventListener("scroll",i.update,ix)}),o&&l.removeEventListener("resize",i.update,ix)}}let iP={name:"eventListeners",enabled:!0,phase:"write",fn:function t(){},effect:iS,data:{}};var iT={left:"right",right:"left",bottom:"top",top:"bottom"};function iM(t){return t.replace(/left|right|bottom|top/g,function(t){return iT[t]})}var iA={start:"end",end:"start"};function iE(t){return t.replace(/start|end/g,function(t){return iA[t]})}function iI(t){var e,i=e1(t);return{scrollLeft:i.pageXOffset,scrollTop:i.pageYOffset}}function iO(t){return eJ(ia(t)).left+iI(t).scrollLeft}function iF(t,e){var i=e1(t),s=ia(t),n=i.visualViewport,a=s.clientWidth,r=s.clientHeight,o=0,l=0;if(n){a=n.width,r=n.height;var h=eQ();(h||!h&&"fixed"===e)&&(o=n.offsetLeft,l=n.offsetTop)}return{width:a,height:r,x:o+iO(t),y:l}}function i0(t){var e,i=ia(t),s=iI(t),n=null==(e=t.ownerDocument)?void 0:e.body,a=eK(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=eK(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),o=-s.scrollLeft+iO(t),l=-s.scrollTop;return"rtl"===ii(n||i).direction&&(o+=eK(i.clientWidth,n?n.clientWidth:0)-a),{width:a,height:r,x:o,y:l}}function iY(t){var e=ii(t),i=e.overflow,s=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+s)}function iL(t){return["html","body","#document"].indexOf(eq(t))>=0?t.ownerDocument.body:e2(t)&&iY(t)?t:iL(ir(t))}function iz(t,e){void 0===e&&(e=[]);var i,s=iL(t),n=s===(null==(i=t.ownerDocument)?void 0:i.body),a=e1(s),r=n?[a].concat(a.visualViewport||[],iY(s)?s:[]):s,o=e.concat(r);return n?o:o.concat(iz(ir(r)))}function iH(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function iW(t,e){var i=eJ(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}function iN(t,e,i){return e===eI?iH(iF(t,i)):eV(e)?iW(e,i):iH(i0(ia(t)))}function iR(t){var e=iz(ir(t)),i=["absolute","fixed"].indexOf(ii(t).position)>=0&&e2(t)?ih(t):t;return eV(i)?e.filter(function(t){return eV(t)&&ie(t,i)&&"body"!==eq(t)}):[]}function i9(t,e,i,s){var n=[].concat("clippingParents"===e?iR(t):[].concat(e),[i]),a=n[0],r=n.reduce(function(e,i){var n=iN(t,i,s);return e.top=eK(n.top,e.top),e.right=eG(n.right,e.right),e.bottom=eG(n.bottom,e.bottom),e.left=eK(n.left,e.left),e},iN(t,a,s));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function i3(t){var e,i=t.reference,s=t.element,n=t.placement,a=n?e6(n):null,r=n?iy(n):null,o=i.x+i.width/2-s.width/2,l=i.y+i.height/2-s.height/2;switch(a){case eD:e={x:o,y:i.y-s.height};break;case eC:e={x:o,y:i.y+i.height};break;case ex:e={x:i.x+i.width,y:l};break;case eS:e={x:i.x-s.width,y:l};break;default:e={x:i.x,y:i.y}}var h=a?ic(a):null;if(null!=h){var c="y"===h?"height":"width";switch(r){case eM:e[h]=e[h]-(i[c]/2-s[c]/2);break;case eA:e[h]=e[h]+(i[c]/2-s[c]/2)}}return e}function ij(t,e){void 0===e&&(e={});var i=e,s=i.placement,n=void 0===s?t.placement:s,a=i.strategy,r=void 0===a?t.strategy:a,o=i.boundary,l=void 0===o?eE:o,h=i.rootBoundary,c=void 0===h?eI:h,d=i.elementContext,u=void 0===d?eO:d,f=i.altBoundary,p=void 0!==f&&f,m=i.padding,g=void 0===m?0:m,v=im("number"!=typeof g?g:ig(g,eT)),$=u===eO?eF:eO,b=t.rects.popper,y=t.elements[p?$:u],w=i9(eV(y)?y:y.contextElement||ia(t.elements.popper),l,c,r),_=eJ(t.elements.reference),k=i3({reference:_,element:b,strategy:"absolute",placement:n}),D=iH(Object.assign({},b,k)),C=u===eO?D:_,x={top:w.top-C.top+v.top,bottom:C.bottom-w.bottom+v.bottom,left:w.left-C.left+v.left,right:C.right-w.right+v.right},S=t.modifiersData.offset;if(u===eO&&S){var P=S[n];Object.keys(x).forEach(function(t){var e=[ex,eC].indexOf(t)>=0?1:-1,i=[eD,eC].indexOf(t)>=0?"y":"x";x[t]+=P[i]*e})}return x}function iB(t,e){void 0===e&&(e={});var i=e,s=i.placement,n=i.boundary,a=i.rootBoundary,r=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,h=void 0===l?eY:l,c=iy(s),d=c?o?e0:e0.filter(function(t){return iy(t)===c}):eT,u=d.filter(function(t){return h.indexOf(t)>=0});0===u.length&&(u=d);var f=u.reduce(function(e,i){return e[i]=ij(t,{placement:i,boundary:n,rootBoundary:a,padding:r})[e6(i)],e},{});return Object.keys(f).sort(function(t,e){return f[t]-f[e]})}function iq(t){if(e6(t)===eP)return[];var e=iM(t);return[iE(t),e,iE(e)]}function i1(t){var e=t.state,i=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var n,a,r=i.mainAxis,o=void 0===r||r,l=i.altAxis,h=void 0===l||l,c=i.fallbackPlacements,d=i.padding,u=i.boundary,f=i.rootBoundary,p=i.altBoundary,m=i.flipVariations,g=void 0===m||m,v=i.allowedAutoPlacements,$=e.options.placement,b=e6($)===$,y=[$].concat(c||(b||!g?[iM($)]:iq($))).reduce(function(t,i){return t.concat(e6(i)===eP?iB(e,{placement:i,boundary:u,rootBoundary:f,padding:d,flipVariations:g,allowedAutoPlacements:v}):i)},[]),w=e.rects.reference,_=e.rects.popper,k=new Map,D=!0,C=y[0],x=0;x=0,A=M?"width":"height",E=ij(e,{placement:S,boundary:u,rootBoundary:f,altBoundary:p,padding:d}),I=M?T?ex:eS:T?eC:eD;w[A]>_[A]&&(I=iM(I));var O=iM(I),F=[];if(o&&F.push(E[P]<=0),h&&F.push(E[I]<=0,E[O]<=0),F.every(function(t){return t})){C=S,D=!1;break}k.set(S,F)}if(D)for(var Y=g?3:1,L=function t(e){var i=y.find(function(t){var i=k.get(t);if(i)return i.slice(0,e).every(function(t){return t})});if(i)return C=i,"break"},z=Y;z>0&&"break"!==L(z);z--);e.placement!==C&&(e.modifiersData[s]._skip=!0,e.placement=C,e.reset=!0)}}let iV={name:"flip",enabled:!0,phase:"main",fn:i1,requiresIfExists:["offset"],data:{_skip:!1}};function i2(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 i7(t){return[eD,ex,eC,eS].some(function(e){return t[e]>=0})}function iU(t){var e=t.state,i=t.name,s=e.rects.reference,n=e.rects.popper,a=e.modifiersData.preventOverflow,r=ij(e,{elementContext:"reference"}),o=ij(e,{altBoundary:!0}),l=i2(r,s),h=i2(o,n,a),c=i7(l),d=i7(h);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:h,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}let i5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:iU};function i4(t,e,i){var s=e6(t),n=[eS,eD].indexOf(s)>=0?-1:1,a="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=a[0],o=a[1];return r=r||0,o=(o||0)*n,[eS,ex].indexOf(s)>=0?{x:o,y:r}:{x:r,y:o}}function i6(t){var e=t.state,i=t.options,s=t.name,n=i.offset,a=void 0===n?[0,0]:n,r=eY.reduce(function(t,i){return t[i]=i4(i,e.rects,a),t},{}),o=r[e.placement],l=o.x,h=o.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=h),e.modifiersData[s]=r}let iK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:i6};function iG(t){var e=t.state,i=t.name;e.modifiersData[i]=i3({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}let iX={name:"popperOffsets",enabled:!0,phase:"read",fn:iG,data:{}};function iZ(t){return"x"===t?"y":"x"}function iQ(t){var e=t.state,i=t.options,s=t.name,n=i.mainAxis,a=void 0===n||n,r=i.altAxis,o=void 0!==r&&r,l=i.boundary,h=i.rootBoundary,c=i.altBoundary,d=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,m=void 0===p?0:p,g=ij(e,{boundary:l,rootBoundary:h,padding:d,altBoundary:c}),v=e6(e.placement),$=iy(e.placement),b=!$,y=ic(v),w=iZ(y),_=e.modifiersData.popperOffsets,k=e.rects.reference,D=e.rects.popper,C="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,x="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),S=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(_){if(a){var T,M="y"===y?eD:eS,A="y"===y?eC:ex,E="y"===y?"height":"width",I=_[y],O=I+g[M],F=I-g[A],Y=f?-D[E]/2:0,L=$===eM?k[E]:D[E],z=$===eM?-D[E]:-k[E],H=e.elements.arrow,W=f&&H?it(H):{width:0,height:0},N=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ip(),R=N[M],j=N[A],B=id(0,k[E],W[E]),q=b?k[E]/2-Y-B-R-x.mainAxis:L-B-R-x.mainAxis,V=b?-k[E]/2+Y+B+j+x.mainAxis:z+B+j+x.mainAxis,U=e.elements.arrow&&ih(e.elements.arrow),K=U?"y"===y?U.clientTop||0:U.clientLeft||0:0,G=null!=(T=null==S?void 0:S[y])?T:0,X=I+q-G-K,Z=I+V-G,Q=id(f?eG(O,X):O,I,f?eK(F,Z):F);_[y]=Q,P[y]=Q-I}if(o){var J,tt="x"===y?eD:eS,te="x"===y?eC:ex,ti=_[w],ts="y"===w?"height":"width",tn=ti+g[tt],ta=ti-g[te],tr=-1!==[eD,eS].indexOf(v),to=null!=(J=null==S?void 0:S[w])?J:0,tl=tr?tn:ti-k[ts]-D[ts]-to+x.altAxis,th=tr?ti+k[ts]+D[ts]-to-x.altAxis:ta,tc=f&&tr?iu(tl,ti,th):id(f?tl:tn,ti,f?th:ta);_[w]=tc,P[w]=tc-ti}e.modifiersData[s]=P}}let iJ={name:"preventOverflow",enabled:!0,phase:"main",fn:iQ,requiresIfExists:["offset"]};function st(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function se(t){return t!==e1(t)&&e2(t)?st(t):iI(t)}function si(t){var e=t.getBoundingClientRect(),i=eX(e.width)/t.offsetWidth||1,s=eX(e.height)/t.offsetHeight||1;return 1!==i||1!==s}function ss(t,e,i){void 0===i&&(i=!1);var s=e2(e),n=e2(e)&&si(e),a=ia(e),r=eJ(t,n,i),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!i)&&(("body"!==eq(e)||iY(a))&&(o=se(e)),e2(e)?(l=eJ(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):a&&(l.x=iO(a))),{x:r.left+o.scrollLeft-l.x,y:r.top+o.scrollTop-l.y,width:r.width,height:r.height}}function sn(t){var e=new Map,i=new Set,s=[];function n(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!i.has(t)){var s=e.get(t);s&&n(s)}}),s.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){i.has(t.name)||n(t)}),s}function sa(t){var e=sn(t);return eB.reduce(function(t,i){return t.concat(e.filter(function(t){return t.phase===i}))},[])}function sr(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function so(t){var e=t.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},{});return Object.keys(e).map(function(t){return e[t]})}var sl={placement:"bottom",modifiers:[],strategy:"absolute"};function sh(){for(var t=arguments.length,e=Array(t),i=0;iNumber.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){let 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)&&(K.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){let i=tm.find(sR,this._menu).filter(t=>u(t));i.length&&D(i,e,t===sk,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){let e=s5.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===sD||"keyup"===t.type&&t.key!==sw)return;let e=tm.find(sz);for(let i of e){let s=s5.getInstance(i);if(!s||!1===s._config.autoClose)continue;let n=t.composedPath(),a=n.includes(s._menu);if(n.includes(s._element)||"inside"===s._config.autoClose&&!a||"outside"===s._config.autoClose&&a||s._menu.contains(t.target)&&("keyup"===t.type&&t.key===sw||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let r={relatedTarget:s._element};"click"===t.type&&(r.clickEvent=t),s._completeHide(r)}}static dataApiKeydownHandler(t){let e=/input|textarea/i.test(t.target.tagName),i=t.key===sy,s=[s_,sk].includes(t.key);if(!s&&!i||e&&!i)return;t.preventDefault();let n=this.matches(sL)?this:tm.prev(this,sL)[0]||tm.next(this,sL)[0]||tm.findOne(sL,t.delegateTarget.parentNode),a=s5.getOrCreateInstance(n);if(s){t.stopPropagation(),a.show(),a._selectMenuItem(t);return}a._isShown()&&(t.stopPropagation(),a.hide(),n.focus())}}R.on(document,sM,sL,s5.dataApiKeydownHandler),R.on(document,sM,sH,s5.dataApiKeydownHandler),R.on(document,sT,s5.clearMenus),R.on(document,sA,s5.clearMenus),R.on(document,sT,sL,function(t){t.preventDefault(),s5.getOrCreateInstance(this).toggle()}),w(s5);let s4=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",s6=".sticky-top",sK="padding-right",sG="margin-right";class sX{constructor(){this._element=document.body}getWidth(){let t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){let t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,sK,e=>e+t),this._setElementAttributes(s4,sK,e=>e+t),this._setElementAttributes(s6,sG,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,sK),this._resetElementAttributes(s4,sK),this._resetElementAttributes(s6,sG)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){let s=this.getWidth(),n=t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+s)return;this._saveInitialAttribute(t,e);let n=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(n))}px`)};this._applyManipulationCallback(t,n)}_saveInitialAttribute(t,e){let i=t.style.getPropertyValue(e);i&&K.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){let i=t=>{let i=K.getDataAttribute(t,e);if(null===i){t.style.removeProperty(e);return}K.removeDataAttribute(t,e),t.style.setProperty(e,i)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(t,e){if(c(t)){e(t);return}for(let i of tm.find(t,this._element))e(i)}}let sZ="backdrop",sQ="fade",sJ="show",nt=`mousedown.bs.${sZ}`,ne={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ni={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ns extends G{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return ne}static get DefaultType(){return ni}static get NAME(){return sZ}show(t){if(!this._config.isVisible){_(t);return}this._append();let e=this._getElement();this._config.isAnimated&&g(e),e.classList.add(sJ),this._emulateAnimation(()=>{_(t)})}hide(t){if(!this._config.isVisible){_(t);return}this._getElement().classList.remove(sJ),this._emulateAnimation(()=>{this.dispose(),_(t)})}dispose(){this._isAppended&&(R.off(this._element,nt),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){let t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(sQ),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=d(t.rootElement),t}_append(){if(this._isAppended)return;let t=this._getElement();this._config.rootElement.append(t),R.on(t,nt,()=>{_(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){k(t,this._getElement(),this._config.isAnimated)}}let nn="focustrap",na="bs.focustrap",nr=`.${na}`,no=`focusin${nr}`,nl=`keydown.tab${nr}`,nh="Tab",nc="forward",nd="backward",nu={autofocus:!0,trapElement:null},nf={autofocus:"boolean",trapElement:"element"};class np extends G{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return nu}static get DefaultType(){return nf}static get NAME(){return nn}activate(){!this._isActive&&(this._config.autofocus&&this._config.trapElement.focus(),R.off(document,nr),R.on(document,no,t=>this._handleFocusin(t)),R.on(document,nl,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,R.off(document,nr))}_handleFocusin(t){let{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;let i=tm.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===nd?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){t.key===nh&&(this._lastTabNavDirection=t.shiftKey?nd:nc)}}let nm="modal",ng="bs.modal",nv=`.${ng}`,n8=".data-api",n$="Escape",nb=`hide${nv}`,ny=`hidePrevented${nv}`,nw=`hidden${nv}`,n_=`show${nv}`,nk=`shown${nv}`,nD=`resize${nv}`,nC=`click.dismiss${nv}`,nx=`mousedown.dismiss${nv}`,nS=`keydown.dismiss${nv}`,nP=`click${nv}${n8}`,nT="modal-open",nM="fade",nA="show",nE="modal-static",nI=".modal.show",nO=".modal-dialog",nF=".modal-body",n0='[data-bs-toggle="modal"]',nY={backdrop:!0,focus:!0,keyboard:!0},nL={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class nz extends Z{constructor(t,e){super(t,e),this._dialog=tm.findOne(nO,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new sX,this._addEventListeners()}static get Default(){return nY}static get DefaultType(){return nL}static get NAME(){return nm}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;let e=R.trigger(this._element,n_,{relatedTarget:t});!e.defaultPrevented&&(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(nT),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning)return;let t=R.trigger(this._element,nb);!t.defaultPrevented&&(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(nA),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){for(let t of[window,this._dialog])R.off(t,nv);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ns({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new np({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;let e=tm.findOne(nF,this._dialog);e&&(e.scrollTop=0),g(this._element),this._element.classList.add(nA);let i=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,R.trigger(this._element,nk,{relatedTarget:t})};this._queueCallback(i,this._dialog,this._isAnimated())}_addEventListeners(){R.on(this._element,nS,t=>{if(t.key===n$){if(this._config.keyboard){t.preventDefault(),this.hide();return}this._triggerBackdropTransition()}}),R.on(window,nD,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),R.on(this._element,nx,t=>{R.one(this._element,nC,e=>{if(this._element===t.target&&this._element===e.target){if("static"===this._config.backdrop){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_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(nT),this._resetAdjustments(),this._scrollBar.reset(),R.trigger(this._element,nw)})}_isAnimated(){return this._element.classList.contains(nM)}_triggerBackdropTransition(){let t=R.trigger(this._element,ny);if(t.defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;!("hidden"===i||this._element.classList.contains(nE))&&(e||(this._element.style.overflowY="hidden"),this._element.classList.add(nE),this._queueCallback(()=>{this._element.classList.remove(nE),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){let s=y()?"paddingLeft":"paddingRight";this._element.style[s]=`${e}px`}if(!i&&t){let n=y()?"paddingRight":"paddingLeft";this._element.style[n]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){let i=nz.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw TypeError(`No method named "${t}"`);i[t](e)}})}}R.on(document,nP,n0,function(t){let e=o(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),R.one(e,n_,t=>{!t.defaultPrevented&&R.one(e,nw,()=>{u(this)&&this.focus()})});let i=tm.findOne(nI);i&&nz.getInstance(i).hide();let s=nz.getOrCreateInstance(e);s.toggle(this)}),Q(nz),w(nz);let nH="offcanvas",nW="bs.offcanvas",nN=`.${nW}`,nR=".data-api",n9=`load${nN}${nR}`,n3="Escape",nj="show",nB="showing",nq="hiding",n1="offcanvas-backdrop",nV=".offcanvas.show",n2=`show${nN}`,n7=`shown${nN}`,nU=`hide${nN}`,n5=`hidePrevented${nN}`,n4=`hidden${nN}`,n6=`resize${nN}`,nK=`click${nN}${nR}`,nG=`keydown.dismiss${nN}`,nX='[data-bs-toggle="offcanvas"]',nZ={backdrop:!0,keyboard:!0,scroll:!1},nQ={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class nJ extends Z{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return nZ}static get DefaultType(){return nQ}static get NAME(){return nH}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;let e=R.trigger(this._element,n2,{relatedTarget:t});if(e.defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new sX().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(nB);let i=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(nj),this._element.classList.remove(nB),R.trigger(this._element,n7,{relatedTarget:t})};this._queueCallback(i,this._element,!0)}hide(){if(!this._isShown)return;let t=R.trigger(this._element,nU);if(t.defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(nq),this._backdrop.hide();let e=()=>{this._element.classList.remove(nj,nq),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new sX().reset(),R.trigger(this._element,n4)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let t=()=>{if("static"===this._config.backdrop){R.trigger(this._element,n5);return}this.hide()},e=Boolean(this._config.backdrop);return new ns({className:n1,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new np({trapElement:this._element})}_addEventListeners(){R.on(this._element,nG,t=>{if(t.key===n3){if(!this._config.keyboard){R.trigger(this._element,n5);return}this.hide()}})}static jQueryInterface(t){return this.each(function(){let e=nJ.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw TypeError(`No method named "${t}"`);e[t](this)}})}}R.on(document,nK,nX,function(t){let e=o(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),f(this))return;R.one(e,n4,()=>{u(this)&&this.focus()});let i=tm.findOne(nV);i&&i!==e&&nJ.getInstance(i).hide();let s=nJ.getOrCreateInstance(e);s.toggle(this)}),R.on(window,n9,()=>{for(let t of tm.find(nV))nJ.getOrCreateInstance(t).show()}),R.on(window,n6,()=>{for(let t of tm.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&nJ.getOrCreateInstance(t).hide()}),Q(nJ),w(nJ);let at=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ae=/^aria-[\w-]*$/i,ai=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,as=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,an=(t,e)=>{let i=t.nodeName.toLowerCase();return e.includes(i)?!at.has(i)||Boolean(ai.test(t.nodeValue)||as.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(i))},aa={"*":["class","dir","id","lang","role",ae],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:[]};function ar(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);let s=new window.DOMParser,n=s.parseFromString(t,"text/html"),a=[].concat(...n.body.querySelectorAll("*"));for(let r of a){let o=r.nodeName.toLowerCase();if(!Object.keys(e).includes(o)){r.remove();continue}let l=[].concat(...r.attributes),h=[].concat(e["*"]||[],e[o]||[]);for(let c of l)an(c,h)||r.removeAttribute(c.nodeName)}return n.body.innerHTML}let ao="TemplateFactory",al={allowList:aa,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},ah={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ac={entry:"(string|element|function|null)",selector:"(string|element)"};class ad extends G{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return al}static get DefaultType(){return ah}static get NAME(){return ao}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(){let t=document.createElement("div");for(let[e,i]of(t.innerHTML=this._maybeSanitize(this._config.template),Object.entries(this._config.content)))this._setContent(t,i,e);let s=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&s.classList.add(...n.split(" ")),s}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(let[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},ac)}_setContent(t,e,i){let s=tm.findOne(i,t);if(s){if(!(e=this._resolvePossibleFunction(e))){s.remove();return}if(c(e)){this._putElementInTemplate(d(e),s);return}if(this._config.html){s.innerHTML=this._maybeSanitize(e);return}s.textContent=e}}_maybeSanitize(t){return this._config.sanitize?ar(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return"function"==typeof t?t(this):t}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent}}let au="tooltip",af=new Set(["sanitize","allowList","sanitizeFn"]),ap="fade",am="modal",ag="show",av=".tooltip-inner",a8=`.${am}`,a$="hide.bs.modal",ab="hover",ay="focus",aw="click",a_="manual",ak="hide",aD="hidden",aC="show",ax="shown",aS="inserted",aP="click",aT="focusin",aM="focusout",aA="mouseenter",aE="mouseleave",aI={AUTO:"auto",TOP:"top",RIGHT:y()?"left":"right",BOTTOM:"bottom",LEFT:y()?"right":"left"},aO={allowList:aa,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},aF={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 a0 extends Z{constructor(t,e){if(void 0===sg)throw 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 aO}static get DefaultType(){return aF}static get NAME(){return au}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),R.off(this._element.closest(a8),a$,this._hideModalHandler),this.tip&&this.tip.remove(),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 Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;let t=R.trigger(this._element,this.constructor.eventName(aC)),e=p(this._element),i=(e||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!i)return;this.tip&&(this.tip.remove(),this.tip=null);let s=this._getTipElement();this._element.setAttribute("aria-describedby",s.getAttribute("id"));let{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(s),R.trigger(this._element,this.constructor.eventName(aS))),this._popper?this._popper.update():this._popper=this._createPopper(s),s.classList.add(ag),"ontouchstart"in document.documentElement)for(let a of[].concat(...document.body.children))R.on(a,"mouseover",m);let r=()=>{R.trigger(this._element,this.constructor.eventName(ax)),!1===this._isHovered&&this._leave(),this._isHovered=!1};this._queueCallback(r,this.tip,this._isAnimated())}hide(){if(!this._isShown())return;let t=R.trigger(this._element,this.constructor.eventName(ak));if(t.defaultPrevented)return;let e=this._getTipElement();if(e.classList.remove(ag),"ontouchstart"in document.documentElement)for(let i of[].concat(...document.body.children))R.off(i,"mouseover",m);this._activeTrigger[aw]=!1,this._activeTrigger[ay]=!1,this._activeTrigger[ab]=!1,this._isHovered=null;let s=()=>{!this._isWithActiveTrigger()&&(this._isHovered||e.remove(),this._element.removeAttribute("aria-describedby"),R.trigger(this._element,this.constructor.eventName(aD)),this._disposePopper())};this._queueCallback(s,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){let e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(ap,ag),e.classList.add(`bs-${this.constructor.NAME}-auto`);let i=n(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(ap),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new ad({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[av]: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(ap)}_isShown(){return this.tip&&this.tip.classList.contains(ag)}_createPopper(t){let e="function"==typeof this._config.placement?this._config.placement.call(this,t,this._element):this._config.placement,i=aI[e.toUpperCase()];return sm(this._element,t,this._getPopperConfig(i))}_getOffset(){let{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"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){let 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,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_setListeners(){let t=this._config.trigger.split(" ");for(let e of t)if("click"===e)R.on(this._element,this.constructor.eventName(aP),this._config.selector,t=>{let e=this._initializeOnDelegatedTarget(t);e.toggle()});else if(e!==a_){let i=e===ab?this.constructor.eventName(aA):this.constructor.eventName(aT),s=e===ab?this.constructor.eventName(aE):this.constructor.eventName(aM);R.on(this._element,i,this._config.selector,t=>{let e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?ay:ab]=!0,e._enter()}),R.on(this._element,s,this._config.selector,t=>{let e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?ay:ab]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},R.on(this._element.closest(a8),a$,this._hideModalHandler)}_fixTitle(){let 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(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}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){let e=K.getDataAttributes(this._element);for(let i of Object.keys(e))af.has(i)&&delete e[i];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:d(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(){let t={};for(let e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each(function(){let e=a0.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw TypeError(`No method named "${t}"`);e[t]()}})}}w(a0);let aY="popover",aL=".popover-header",az=".popover-body",aH={...a0.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},aW={...a0.DefaultType,content:"(null|string|element|function)"};class aN extends a0{static get Default(){return aH}static get DefaultType(){return aW}static get NAME(){return aY}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[aL]:this._getTitle(),[az]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let e=aN.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw TypeError(`No method named "${t}"`);e[t]()}})}}w(aN);let aR="scrollspy",a9="bs.scrollspy",a3=`.${a9}`,aj=".data-api",aB=`activate${a3}`,aq=`click${a3}`,a1=`load${a3}${aj}`,aV="dropdown-item",a2="active",a7='[data-bs-spy="scroll"]',aU="[href]",a5=".nav, .list-group",a4=".nav-link",a6=".nav-item",aK=".list-group-item",aG=`${a4}, ${a6} > ${a4}, ${aK}`,aX=".dropdown",aZ=".dropdown-toggle",aQ={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},aJ={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class rt extends Z{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 aQ}static get DefaultType(){return aJ}static get NAME(){return aR}refresh(){for(let t of(this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver(),this._observableSections.values()))this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=d(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&&(R.off(this._config.target,aq),R.on(this._config.target,aq,aU,t=>{let e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();let i=this._rootElement||window,s=e.offsetTop-this._element.offsetTop;if(i.scrollTo){i.scrollTo({top:s,behavior:"smooth"});return}i.scrollTop=s}}))}_getNewObserver(){let t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){let e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},s=(this._rootElement||document.documentElement).scrollTop,n=s>=this._previousScrollData.parentScrollTop;for(let a of(this._previousScrollData.parentScrollTop=s,t)){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(a));continue}let r=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&r){if(i(a),!s)return;continue}n||r||i(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let t=tm.find(aU,this._config.target);for(let e of t){if(!e.hash||f(e))continue;let i=tm.findOne(e.hash,this._element);u(i)&&(this._targetLinks.set(e.hash,e),this._observableSections.set(e.hash,i))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(a2),this._activateParents(t),R.trigger(this._element,aB,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(aV)){tm.findOne(aZ,t.closest(aX)).classList.add(a2);return}for(let e of tm.parents(t,a5))for(let i of tm.prev(e,aG))i.classList.add(a2)}_clearActiveClass(t){t.classList.remove(a2);let e=tm.find(`${aU}.${a2}`,t);for(let i of e)i.classList.remove(a2)}static jQueryInterface(t){return this.each(function(){let e=rt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw TypeError(`No method named "${t}"`);e[t]()}})}}R.on(window,a1,()=>{for(let t of tm.find(a7))rt.getOrCreateInstance(t)}),w(rt);let re="tab",ri="bs.tab",rs=`.${ri}`,rn=`hide${rs}`,ra=`hidden${rs}`,rr=`show${rs}`,ro=`shown${rs}`,rl=`click${rs}`,rh=`keydown${rs}`,rc=`load${rs}`,rd="ArrowLeft",ru="ArrowRight",rf="ArrowUp",rp="ArrowDown",rm="active",rg="fade",rv="show",r8="dropdown",r$=".dropdown-toggle",rb=".dropdown-menu",ry=":not(.dropdown-toggle)",rw='.list-group, .nav, [role="tablist"]',r_=".nav-item, .list-group-item",rk=`.nav-link${ry}, .list-group-item${ry}, [role="tab"]${ry}`,rD='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',rC=`${rk}, ${rD}`,rx=`.${rm}[data-bs-toggle="tab"], .${rm}[data-bs-toggle="pill"], .${rm}[data-bs-toggle="list"]`;class rS extends Z{constructor(t){if(super(t),this._parent=this._element.closest(rw),!this._parent)return;this._setInitialAttributes(this._parent,this._getChildren()),R.on(this._element,rh,t=>this._keydown(t))}static get NAME(){return re}show(){let t=this._element;if(this._elemIsActive(t))return;let e=this._getActiveElem(),i=e?R.trigger(e,rn,{relatedTarget:t}):null,s=R.trigger(t,rr,{relatedTarget:e});!s.defaultPrevented&&(!i||!i.defaultPrevented)&&(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(rm),this._activate(o(t));let i=()=>{if("tab"!==t.getAttribute("role")){t.classList.add(rv);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),R.trigger(t,ro,{relatedTarget:e})};this._queueCallback(i,t,t.classList.contains(rg))}_deactivate(t,e){if(!t)return;t.classList.remove(rm),t.blur(),this._deactivate(o(t));let i=()=>{if("tab"!==t.getAttribute("role")){t.classList.remove(rv);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),R.trigger(t,ra,{relatedTarget:e})};this._queueCallback(i,t,t.classList.contains(rg))}_keydown(t){if(![rd,ru,rf,rp].includes(t.key))return;t.stopPropagation(),t.preventDefault();let e=[ru,rp].includes(t.key),i=D(this._getChildren().filter(t=>!f(t)),t.target,e,!0);i&&(i.focus({preventScroll:!0}),rS.getOrCreateInstance(i).show())}_getChildren(){return tm.find(rC,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){for(let i of(this._setAttributeIfNotExists(t,"role","tablist"),e))this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);let 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){let e=o(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`#${t.id}`))}_toggleDropDown(t,e){let i=this._getOuterElement(t);if(!i.classList.contains(r8))return;let s=(t,s)=>{let n=tm.findOne(t,i);n&&n.classList.toggle(s,e)};s(r$,rm),s(rb,rv),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(rm)}_getInnerElement(t){return t.matches(rC)?t:tm.findOne(rC,t)}_getOuterElement(t){return t.closest(r_)||t}static jQueryInterface(t){return this.each(function(){let e=rS.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw TypeError(`No method named "${t}"`);e[t]()}})}}R.on(document,rl,rD,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!f(this)&&rS.getOrCreateInstance(this).show()}),R.on(window,rc,()=>{for(let t of tm.find(rx))rS.getOrCreateInstance(t)}),w(rS);let rP="toast",rT="bs.toast",rM=`.${rT}`,rA=`mouseover${rM}`,rE=`mouseout${rM}`,rI=`focusin${rM}`,rO=`focusout${rM}`,rF=`hide${rM}`,r0=`hidden${rM}`,rY=`show${rM}`,rL=`shown${rM}`,rz="fade",rH="hide",rW="show",rN="showing",rR={animation:"boolean",autohide:"boolean",delay:"number"},r9={animation:!0,autohide:!0,delay:5e3};class r3 extends Z{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return r9}static get DefaultType(){return rR}static get NAME(){return rP}show(){let t=R.trigger(this._element,rY);if(t.defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(rz);let e=()=>{this._element.classList.remove(rN),R.trigger(this._element,rL),this._maybeScheduleHide()};this._element.classList.remove(rH),g(this._element),this._element.classList.add(rW,rN),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown())return;let t=R.trigger(this._element,rF);if(t.defaultPrevented)return;let e=()=>{this._element.classList.add(rH),this._element.classList.remove(rN,rW),R.trigger(this._element,r0)};this._element.classList.add(rN),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(rW),super.dispose()}isShown(){return this._element.classList.contains(rW)}_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){this._clearTimeout();return}let i=t.relatedTarget;!(this._element===i||this._element.contains(i))&&this._maybeScheduleHide()}_setListeners(){R.on(this._element,rA,t=>this._onInteraction(t,!0)),R.on(this._element,rE,t=>this._onInteraction(t,!1)),R.on(this._element,rI,t=>this._onInteraction(t,!0)),R.on(this._element,rO,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let e=r3.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw TypeError(`No method named "${t}"`);e[t](this)}})}}Q(r3),w(r3);let rj={Alert:tr,Button:tp,Carousel:ei,Collapse:ek,Dropdown:s5,Modal:nz,Offcanvas:nJ,Popover:aN,ScrollSpy:rt,Tab:rS,Toast:r3,Tooltip:a0};return rj}),/*! jQuery UI - v1.8.22 - 2012-07-24 * https://github.com/jquery/jquery-ui * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.effects.core.js, jquery.effects.blind.js, jquery.effects.bounce.js, jquery.effects.clip.js, jquery.effects.drop.js, jquery.effects.explode.js, jquery.effects.fade.js, jquery.effects.fold.js, jquery.effects.highlight.js, jquery.effects.pulsate.js, jquery.effects.scale.js, jquery.effects.shake.js, jquery.effects.slide.js, jquery.effects.transfer.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.tabs.js * Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ function(t,e){function i(e,i){var n=e.nodeName.toLowerCase();if("area"===n){var a,r=e.parentNode,o=r.name;return!!e.href&&!!o&&"map"===r.nodeName.toLowerCase()&&!!(a=t("img[usemap=#"+o+"]")[0])&&s(a)}return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"==n&&e.href||i)&&s(e)}function s(e){return!t(e).parents().andSelf().filter(function(){return"hidden"===t.curCSS(this,"visibility")||t.expr.filters.hidden(this)}).length}t.ui=t.ui||{},t.ui.version||(t.extend(t.ui,{version:"1.8.22",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),t.fn.extend({propAttr:t.fn.prop||t.fn.attr,_focus:t.fn.focus,focus:function(e,i){return"number"==typeof e?this.each(function(){var s=this;setTimeout(function(){t(s).focus(),i&&i.call(s)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;return e=t.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.curCSS(this,"position",1))&&/(auto|scroll)/.test(t.curCSS(this,"overflow",1)+t.curCSS(this,"overflow-y",1)+t.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.curCSS(this,"overflow",1)+t.curCSS(this,"overflow-y",1)+t.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var s,n,a=t(this[0]);a.length&&a[0]!==document;){if(("absolute"===(s=a.css("position"))||"relative"===s||"fixed"===s)&&(n=parseInt(a.css("zIndex"),10),!isNaN(n)&&0!==n))return n;a=a.parent()}return 0},disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t("").outerWidth(1).jquery||t.each(["Width","Height"],function(i,s){function n(e,i,s,n){return t.each(a,function(){i-=parseFloat(t.curCSS(e,"padding"+this,!0))||0,s&&(i-=parseFloat(t.curCSS(e,"border"+this+"Width",!0))||0),n&&(i-=parseFloat(t.curCSS(e,"margin"+this,!0))||0)}),i}var a="Width"===s?["Left","Right"]:["Top","Bottom"],r=s.toLowerCase(),o={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+s]=function(i){return i===e?o["inner"+s].call(this):this.each(function(){t(this).css(r,n(this,i)+"px")})},t.fn["outer"+s]=function(e,i){return"number"!=typeof e?o["outer"+s].call(this,e):this.each(function(){t(this).css(r,n(this,e,!0,i)+"px")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,s){return!!t.data(e,s[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var s=t.attr(e,"tabindex"),n=isNaN(s);return(n||s>=0)&&i(e,!n)}}),t(function(){var e=document.body,i=e.appendChild(i=document.createElement("div"));i.offsetHeight,t.extend(i.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),t.support.minHeight=100===i.offsetHeight,t.support.selectstart="onselectstart"in i,e.removeChild(i).style.display="none"}),t.curCSS||(t.curCSS=t.css),t.extend(t.ui,{plugin:{add:function(e,i,s){var n=t.ui[e].prototype;for(var a in s)n.plugins[a]=n.plugins[a]||[],n.plugins[a].push([i,s[a]])},call:function(t,e,i){var s=t.plugins[e];if(s&&t.element[0].parentNode)for(var n=0;n0||(e[s]=1,n=e[s]>0,e[s]=0,n)},isOverAxis:function(t,e,i){return t>e&&t=9||e.button?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target==this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_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(t){return this.mouseDelayMet},_mouseStart:function(t){},_mouseDrag:function(t){},_mouseStop:function(t){},_mouseCapture:function(t){return!0}})}(jQuery),function(t,e){t.widget("ui.draggable",t.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){"original"!=this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},destroy:function(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).is(".ui-resizable-handle"))&&(this.handle=this._getHandle(e),!!this.handle&&(i.iframeFix&&t(!0===i.iframeFix?"iframe":i.iframeFix).each(function(){t('
').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0))},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),i.containment&&this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(!1===this._trigger("drag",e,s))return this._mouseUp({}),!1;this.position=s.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=!1;t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1);for(var s=this.element[0],n=!1;s&&(s=s.parentNode);)s==document&&(n=!0);if(!n&&"original"===this.options.helper)return!1;if("invalid"==this.options.revert&&!i||"valid"==this.options.revert&&i||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)){var a=this;t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==a._trigger("stop",e)&&a._clear()})}else!1!==this._trigger("stop",e)&&this._clear();return!1},_mouseUp:function(e){return!0===this.options.iframeFix&&t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){var i=!this.options.handle||!t(this.options.handle,this.element).length;return t(this.options.handle,this.element).find("*").andSelf().each(function(){this==e.target&&(i=!0)}),i},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"==i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"==i.appendTo?this.element[0].parentNode:i.appendTo),s[0]==this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&t.browser.msie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if("parent"==e.containment&&(e.containment=this.helper[0].parentNode),("document"==e.containment||"window"==e.containment)&&(this.containment=["document"==e.containment?0:t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==e.containment?0:t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==e.containment?0:t(window).scrollLeft())+t("document"==e.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==e.containment?0:t(window).scrollTop())+(t("document"==e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(e.containment)||e.containment.constructor==Array)e.containment.constructor==Array&&(this.containment=e.containment);else{var i=t(e.containment),s=i[0];if(!s)return;i.offset();var n="hidden"!=t(s).css("overflow");this.containment=[(parseInt(t(s).css("borderLeftWidth"),10)||0)+(parseInt(t(s).css("paddingLeft"),10)||0),(parseInt(t(s).css("borderTopWidth"),10)||0)+(parseInt(t(s).css("paddingTop"),10)||0),(n?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(t(s).css("borderLeftWidth"),10)||0)-(parseInt(t(s).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(n?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(t(s).css("borderTopWidth"),10)||0)-(parseInt(t(s).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i}},_convertPositionTo:function(e,i){i||(i=this.position);var s="absolute"==e?1:-1,n=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),a=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():a?0:n.scrollTop())*s),left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():a?0:n.scrollLeft())*s)}},_generatePosition:function(e){var i,s=this.options,n="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(n[0].tagName),r=e.pageX,o=e.pageY;if(this.originalPosition){if(this.containment){if(this.relative_container){var l=this.relative_container.offset();i=[this.containment[0]+l.left,this.containment[1]+l.top,this.containment[2]+l.left,this.containment[3]+l.top]}else i=this.containment;e.pageX-this.offset.click.lefti[2]&&(r=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(o=i[3]+this.offset.click.top)}if(s.grid){var h=s.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY;o=i&&(h-this.offset.click.topi[3])?h-this.offset.click.topi[2])?c-this.offset.click.left=0;c--){var d=s.snapElements[c].left,u=d+s.snapElements[c].width,f=s.snapElements[c].top,p=f+s.snapElements[c].height;if(!(d-a=c&&r<=d||o>=c&&o<=d||rd)&&(n>=l&&n<=h||a>=l&&a<=h||nh);default:return!1}},t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var s=t.ui.ddmanager.droppables[e.options.scope]||[],n=i?i.type:null,a=(e.currentItem||e.element).find(":data(droppable)").andSelf();g:for(var r=0;r').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=i.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor==String){"all"==this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw");var s=this.handles.split(",");this.handles={};for(var n=0;n');r.css({zIndex:i.zIndex}),"se"==a&&r.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[a]=".ui-resizable-"+a,this.element.append(r)}}this._renderAxis=function(e){for(var i in e=e||this.element,this.handles){if(this.handles[i].constructor==String&&(this.handles[i]=t(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var s=t(this.handles[i],this.element),n=0;n=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth();var a=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");e.css(a,n),this._proportionallyResize()}if(!t(this.handles[i]).length)continue}},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){if(!e.resizing){if(this.className)var t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);e.axis=t&&t[1]?t[1]:"se"}}),i.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").hover(function(){i.disabled||(t(this).removeClass("ui-resizable-autohide"),e._handles.show())},function(){!i.disabled&&(e.resizing||(t(this).addClass("ui-resizable-autohide"),e._handles.hide()))})),this._mouseInit()},destroy:function(){this._mouseDestroy();var e=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){e(this.element);var i=this.element;i.after(this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")})).remove()}return this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_mouseCapture:function(e){var i=!1;for(var s in this.handles)t(this.handles[s])[0]==e.target&&(i=!0);return!this.options.disabled&&i},_mouseStart:function(e){var s=this.options,n=this.element.position(),a=this.element;this.resizing=!0,this.documentScroll={top:t(document).scrollTop(),left:t(document).scrollLeft()},(a.is(".ui-draggable")||/absolute/.test(a.css("position")))&&a.css({position:"absolute",top:n.top,left:n.left}),this._renderProxy();var r=i(this.helper.css("left")),o=i(this.helper.css("top"));s.containment&&(r+=t(s.containment).scrollLeft()||0,o+=t(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:r,top:o},this.size=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.originalPosition={left:r,top:o},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1;var l=t(".ui-resizable-"+this.axis).css("cursor");return t("body").css("cursor","auto"==l?this.axis+"-resize":l),a.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i=this.helper,s=(this.options,this.originalMousePosition),n=this.axis,a=e.pageX-s.left||0,r=e.pageY-s.top||0,o=this._change[n];if(!o)return!1;var l=o.apply(this,[e,a,r]);return t.browser.msie&&t.browser.version,this.sizeDiff,this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(l=this._updateRatio(l,e)),l=this._respectSize(l,e),this._propagate("resize",e),i.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(l),this._trigger("resize",e,this.ui()),!1},_mouseStop:function(e){this.resizing=!1;var i=this.options,s=this;if(this._helper){var n=this._proportionallyResizeElements,a=n.length&&/textarea/i.test(n[0].nodeName),r=a&&t.ui.hasScroll(n[0],"left")?0:s.sizeDiff.height,o=a?0:s.sizeDiff.width,l={width:s.helper.width()-o,height:s.helper.height()-r},h=parseInt(s.element.css("left"),10)+(s.position.left-s.originalPosition.left)||null,c=parseInt(s.element.css("top"),10)+(s.position.top-s.originalPosition.top)||null;i.animate||this.element.css(t.extend(l,{top:c,left:h})),s.helper.height(s.size.height),s.helper.width(s.size.width),this._helper&&!i.animate&&this._proportionallyResize()}return t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,i,n,a,r,o=this.options;r={minWidth:s(o.minWidth)?o.minWidth:0,maxWidth:s(o.maxWidth)?o.maxWidth:1/0,minHeight:s(o.minHeight)?o.minHeight:0,maxHeight:s(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||t)&&(e=r.minHeight*this.aspectRatio,n=r.minWidth/this.aspectRatio,i=r.maxHeight*this.aspectRatio,a=r.maxWidth/this.aspectRatio,e>r.minWidth&&(r.minWidth=e),n>r.minHeight&&(r.minHeight=n),it.width,l=s(t.height)&&i.minHeight&&i.minHeight>t.height;o&&(t.width=i.minWidth),l&&(t.height=i.minHeight),a&&(t.width=i.maxWidth),r&&(t.height=i.maxHeight);var h=this.originalPosition.left+this.originalSize.width,c=this.position.top+this.size.height,d=/sw|nw|w/.test(n),u=/nw|ne|n/.test(n);o&&d&&(t.left=h-i.minWidth),a&&d&&(t.left=h-i.maxWidth),l&&u&&(t.top=c-i.minHeight),r&&u&&(t.top=c-i.maxHeight);var f=!t.width&&!t.height;return f&&!t.left&&t.top?t.top=null:f&&!t.top&&t.left&&(t.left=null),t},_proportionallyResize:function(){if(this.options,this._proportionallyResizeElements.length)for(var e=this.helper||this.element,i=0;i');var s=t.browser.msie&&t.browser.version<7,n=s?1:0,a=s?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-n+"px",top:this.elementOffset.top-n+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(t,e,i){return{width:this.originalSize.width+e}},w:function(t,e,i){this.options;var s=this.originalSize;return{left:this.originalPosition.left+e,width:s.width-e}},n:function(t,e,i){this.options;var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!=e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.extend(t.ui.resizable,{version:"1.8.22"}),t.ui.plugin.add("resizable","alsoResize",{start:function(e,i){var s=t(this).data("resizable").options,n=function(e){t(e).each(function(){var e=t(this);e.data("resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})};"object"!=typeof s.alsoResize||s.alsoResize.parentNode?n(s.alsoResize):s.alsoResize.length?(s.alsoResize=s.alsoResize[0],n(s.alsoResize)):t.each(s.alsoResize,function(t){n(t)})},resize:function(e,i){var s=t(this).data("resizable"),n=s.options,a=s.originalSize,r=s.originalPosition,o={height:s.size.height-a.height||0,width:s.size.width-a.width||0,top:s.position.top-r.top||0,left:s.position.left-r.left||0},l=function(e,s){t(e).each(function(){var e=t(this),n=t(this).data("resizable-alsoresize"),a={},r=s&&s.length?s:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(r,function(t,e){var i=(n[e]||0)+(o[e]||0);i&&i>=0&&(a[e]=i||null)}),e.css(a)})};"object"!=typeof n.alsoResize||n.alsoResize.nodeType?l(n.alsoResize):t.each(n.alsoResize,function(t,e){l(t,e)})},stop:function(e,i){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","animate",{stop:function(e,i){var s=t(this).data("resizable"),n=s.options,a=s._proportionallyResizeElements,r=a.length&&/textarea/i.test(a[0].nodeName),o=r&&t.ui.hasScroll(a[0],"left")?0:s.sizeDiff.height,l=r?0:s.sizeDiff.width,h={width:s.size.width-l,height:s.size.height-o},c=parseInt(s.element.css("left"),10)+(s.position.left-s.originalPosition.left)||null,d=parseInt(s.element.css("top"),10)+(s.position.top-s.originalPosition.top)||null;s.element.animate(t.extend(h,d&&c?{top:d,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var i={width:parseInt(s.element.css("width"),10),height:parseInt(s.element.css("height"),10),top:parseInt(s.element.css("top"),10),left:parseInt(s.element.css("left"),10)};a&&a.length&&t(a[0]).css({width:i.width,height:i.height}),s._updateCache(i),s._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(e,s){var n=t(this).data("resizable"),a=n.options,r=n.element,o=a.containment,l=o instanceof t?o.get(0):/parent/.test(o)?r.parent().get(0):o;if(l){if(n.containerElement=t(l),/document/.test(o)||o==document)n.containerOffset={left:0,top:0},n.containerPosition={left:0,top:0},n.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight};else{var h=t(l),c=[];t(["Top","Right","Left","Bottom"]).each(function(t,e){c[t]=i(h.css("padding"+e))}),n.containerOffset=h.offset(),n.containerPosition=h.position(),n.containerSize={height:h.innerHeight()-c[3],width:h.innerWidth()-c[1]};var d=n.containerOffset,u=n.containerSize.height,f=n.containerSize.width,p=t.ui.hasScroll(l,"left")?l.scrollWidth:f,m=t.ui.hasScroll(l)?l.scrollHeight:u;n.parentData={element:l,left:d.left,top:d.top,width:p,height:m}}}},resize:function(e,i){var s=t(this).data("resizable"),n=s.options,a=(s.containerSize,s.containerOffset),r=(s.size,s.position),o=s._aspectRatio||e.shiftKey,l={top:0,left:0},h=s.containerElement;h[0]!=document&&/static/.test(h.css("position"))&&(l=a),r.left<(s._helper?a.left:0)&&(s.size.width=s.size.width+(s._helper?s.position.left-a.left:s.position.left-l.left),o&&(s.size.height=s.size.width/s.aspectRatio),s.position.left=n.helper?a.left:0),r.top<(s._helper?a.top:0)&&(s.size.height=s.size.height+(s._helper?s.position.top-a.top:s.position.top),o&&(s.size.width=s.size.height*s.aspectRatio),s.position.top=s._helper?a.top:0),s.offset.left=s.parentData.left+s.position.left,s.offset.top=s.parentData.top+s.position.top;var c=Math.abs((s._helper,s.offset.left-l.left+s.sizeDiff.width)),d=Math.abs((s._helper?s.offset.top-l.top:s.offset.top-a.top)+s.sizeDiff.height),u=s.containerElement.get(0)==s.element.parent().get(0),f=/relative|absolute/.test(s.containerElement.css("position"));u&&f&&(c-=s.parentData.left),c+s.size.width>=s.parentData.width&&(s.size.width=s.parentData.width-c,o&&(s.size.height=s.size.width/s.aspectRatio)),d+s.size.height>=s.parentData.height&&(s.size.height=s.parentData.height-d,o&&(s.size.width=s.size.height*s.aspectRatio))},stop:function(e,i){var s=t(this).data("resizable"),n=s.options,a=(s.position,s.containerOffset),r=s.containerPosition,o=s.containerElement,l=t(s.helper),h=l.offset(),c=l.outerWidth()-s.sizeDiff.width,d=l.outerHeight()-s.sizeDiff.height;s._helper&&!n.animate&&/relative/.test(o.css("position"))&&t(this).css({left:h.left-r.left-a.left,width:c,height:d}),s._helper&&!n.animate&&/static/.test(o.css("position"))&&t(this).css({left:h.left-r.left-a.left,width:c,height:d})}}),t.ui.plugin.add("resizable","ghost",{start:function(e,i){var s=t(this).data("resizable"),n=s.options,a=s.size;s.ghost=s.originalElement.clone(),s.ghost.css({opacity:.25,display:"block",position:"relative",height:a.height,width:a.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof n.ghost?n.ghost:""),s.ghost.appendTo(s.helper)},resize:function(e,i){var s=t(this).data("resizable");s.options,s.ghost&&s.ghost.css({position:"relative",height:s.size.height,width:s.size.width})},stop:function(e,i){var s=t(this).data("resizable");s.options,s.ghost&&s.helper&&s.helper.get(0).removeChild(s.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(e,i){var s=t(this).data("resizable"),n=s.options,a=s.size,r=s.originalSize,o=s.originalPosition,l=s.axis;n._aspectRatio||e.shiftKey,n.grid="number"==typeof n.grid?[n.grid,n.grid]:n.grid;var h=Math.round((a.width-r.width)/(n.grid[0]||1))*(n.grid[0]||1),c=Math.round((a.height-r.height)/(n.grid[1]||1))*(n.grid[1]||1);/^(se|s|e)$/.test(l)?(s.size.width=r.width+h,s.size.height=r.height+c):/^(ne)$/.test(l)?(s.size.width=r.width+h,s.size.height=r.height+c,s.position.top=o.top-c):/^(sw)$/.test(l)?(s.size.width=r.width+h,s.size.height=r.height+c,s.position.left=o.left-h):(s.size.width=r.width+h,s.size.height=r.height+c,s.position.top=o.top-c,s.position.left=o.left-h)}});var i=function(t){return parseInt(t,10)||0},s=function(t){return!isNaN(parseInt(t,10))}}(jQuery),function(t,e){t.widget("ui.selectable",t.ui.mouse,{options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var e,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(e=t(i.options.filter,i.element[0])).addClass("ui-selectee"),e.each(function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("
")},destroy:function(){return this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable"),this._mouseDestroy(),this},_mouseStart:function(e){var i=this;if(this.opos=[e.pageX,e.pageY],!this.options.disabled){var s=this.options;this.selectees=t(s.filter,this.element[0]),this._trigger("start",e),t(s.appendTo).append(this.helper),this.helper.css({left:e.clientX,top:e.clientY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var s=t.data(this,"selectable-item");s.startselected=!0,e.metaKey||e.ctrlKey||(s.$element.removeClass("ui-selected"),s.selected=!1,s.$element.addClass("ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",e,{unselecting:s.element}))}),t(e.target).parents().andSelf().each(function(){var s=t.data(this,"selectable-item");if(s){var n=!e.metaKey&&!e.ctrlKey||!s.$element.hasClass("ui-selected");return s.$element.removeClass(n?"ui-unselecting":"ui-selected").addClass(n?"ui-selecting":"ui-unselecting"),s.unselecting=!n,s.selecting=n,s.selected=n,n?i._trigger("selecting",e,{selecting:s.element}):i._trigger("unselecting",e,{unselecting:s.element}),!1}})}},_mouseDrag:function(e){var i=this;if(this.dragged=!0,!this.options.disabled){var s=this.options,n=this.opos[0],a=this.opos[1],r=e.pageX,o=e.pageY;if(n>r){var l=r;r=n,n=l}if(a>o){var l=o;o=a,a=l}return this.helper.css({left:n,top:a,width:r-n,height:o-a}),this.selectees.each(function(){var l=t.data(this,"selectable-item");if(l&&l.element!=i.element[0]){var h=!1;"touch"==s.tolerance?h=!(l.left>r||l.righto||l.bottomn&&l.righta&&l.bottom *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===t.axis||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display"))),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},destroy:function(){t.Widget.prototype.destroy.call(this),this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget()[i?"addClass":"removeClass"]("ui-sortable-disabled")):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var s=this;if(this.reverting||this.options.disabled||"static"==this.options.type)return!1;this._refreshItems(e);var n=null,a=this;if(t(e.target).parents().each(function(){if(t.data(this,s.widgetName+"-item")==a)return n=t(this),!1}),t.data(e.target,s.widgetName+"-item")==a&&(n=t(e.target)),!n)return!1;if(this.options.handle&&!i){var r=!1;if(t(this.options.handle,n).find("*").andSelf().each(function(){this==e.target&&(r=!0)}),!r)return!1}return this.currentItem=n,this._removeCurrentsFromItems(),!0},_mouseStart:function(e,i,s){var n=this.options,a=this;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),n.containment&&this._setContainment(),n.cursor&&(t("body").css("cursor")&&(this._storedCursor=t("body").css("cursor")),t("body").css("cursor",n.cursor)),n.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",n.opacity)),n.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",n.zIndex)),this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(var r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,a._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll){var i=this.options,s=!1;this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY=0;n--){var a=this.items[n],r=a.item[0],o=this._intersectsWithPointer(a);if(o&&r!=this.currentItem[0]&&this.placeholder[1==o?"next":"prev"]()[0]!=r&&!t.ui.contains(this.placeholder[0],r)&&("semi-dynamic"!=this.options.type||!t.ui.contains(this.element[0],r))){if(this.direction=1==o?"down":"up","pointer"==this.options.tolerance||this._intersectsWithSides(a))this._rearrange(e,a);else break;this._trigger("change",e,this._uiHash());break}}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var s=this,n=s.placeholder.offset();s.reverting=!0,t(this.helper).animate({left:n.left-this.offset.parent.left-s.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:n.top-this.offset.parent.top-s.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){s._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){var e=this;if(this.dragging){this._mouseUp({target:null}),"original"==this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var i=this.containers.length-1;i>=0;i--)this.containers[i]._trigger("deactivate",null,e._uiHash(this)),this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",null,e._uiHash(this)),this.containers[i].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!=this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[-=_](.+)/);i&&s.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!s.length&&e.key&&s.push(e.key+"="),s.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},i.each(function(){s.push(t(e.item||this).attr(e.attribute||"id")||"")}),s},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,a=t.left,r=a+t.width,o=t.top,l=o+t.height,h=this.offset.click.top,c=this.offset.click.left,d=s+h>o&&s+ha&&e+ct[this.floating?"width":"height"]?d:a0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor==String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i=[],s=[],n=this._connectWith();if(n&&e)for(var a=n.length-1;a>=0;a--)for(var r=t(n[a]),o=r.length-1;o>=0;o--){var l=t.data(r[o],this.widgetName);l&&l!=this&&!l.options.disabled&&s.push([t.isFunction(l.options.items)?l.options.items.call(l.element):t(l.options.items,l.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),l])}s.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(var a=s.length-1;a>=0;a--)s[a][0].each(function(){i.push(this)});return t(i)},_removeCurrentsFromItems:function(){for(var t=this.currentItem.find(":data("+this.widgetName+"-item)"),e=0;e=0;a--)for(var r=t(n[a]),o=r.length-1;o>=0;o--){var l=t.data(r[o],this.widgetName);l&&l!=this&&!l.options.disabled&&(s.push([t.isFunction(l.options.items)?l.options.items.call(l.element[0],e,{item:this.currentItem}):t(l.options.items,l.element),l]),this.containers.push(l))}for(var a=s.length-1;a>=0;a--)for(var h=s[a][1],c=s[a][0],o=0,d=c.length;o=0;i--){var s=this.items[i];if(s.instance==this.currentContainer||!this.currentContainer||s.item[0]==this.currentItem[0]){var n=this.options.toleranceElement?t(this.options.toleranceElement,s.item):s.item;e||(s.width=n.outerWidth(),s.height=n.outerHeight());var a=n.offset();s.left=a.left,s.top=a.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(var i=this.containers.length-1;i>=0;i--){var a=this.containers[i].element.offset();this.containers[i].containerCache.left=a.left,this.containers[i].containerCache.top=a.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight()}return this},_createPlaceholder:function(e){var i=e||this,s=i.options;if(!s.placeholder||s.placeholder.constructor==String){var n=s.placeholder;s.placeholder={element:function(){var e=t(document.createElement(i.currentItem[0].nodeName)).addClass(n||i.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return n||(e.style.visibility="hidden"),e},update:function(t,e){(!n||s.forcePlaceholderSize)&&(e.height()||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10)))}}}i.placeholder=t(s.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),s.placeholder.update(i,i.placeholder)},_contactContainers:function(e){for(var i=null,s=null,n=this.containers.length-1;n>=0;n--)if(!t.ui.contains(this.currentItem[0],this.containers[n].element[0])){if(this._intersectsWith(this.containers[n].containerCache)){if(i&&t.ui.contains(this.containers[n].element[0],i.element[0]))continue;i=this.containers[n],s=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",e,this._uiHash(this)),this.containers[n].containerCache.over=0)}if(i){if(1===this.containers.length)this.containers[s]._trigger("over",e,this._uiHash(this)),this.containers[s].containerCache.over=1;else if(this.currentContainer!=this.containers[s]){for(var a=1e4,r=null,o=this.positionAbs[this.containers[s].floating?"left":"top"],l=this.items.length-1;l>=0;l--)if(t.ui.contains(this.containers[s].element[0],this.items[l].item[0])){var h=this.containers[s].floating?this.items[l].item.offset().left:this.items[l].item.offset().top;Math.abs(h-o)0?"down":"up")}if(!r&&!this.options.dropOnEmpty)return;this.currentContainer=this.containers[s],r?this._rearrange(e,r,null,!0):this._rearrange(e,null,this.containers[s].element,!0),this._trigger("change",e,this._uiHash()),this.containers[s]._trigger("change",e,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[s]._trigger("over",e,this._uiHash(this)),this.containers[s].containerCache.over=1}}},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"==i.helper?this.currentItem.clone():this.currentItem;return s.parents("body").length||t("parent"!=i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(s[0]),s[0]==this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(""==s[0].style.width||i.forceHelperSize)&&s.width(this.currentItem.width()),(""==s[0].style.height||i.forceHelperSize)&&s.height(this.currentItem.height()),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&t.browser.msie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if("parent"==e.containment&&(e.containment=this.helper[0].parentNode),("document"==e.containment||"window"==e.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"==e.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"==e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),!/^(document|window|parent)$/.test(e.containment)){var i=t(e.containment)[0],s=t(e.containment).offset(),n="hidden"!=t(i).css("overflow");this.containment=[s.left+(parseInt(t(i).css("borderLeftWidth"),10)||0)+(parseInt(t(i).css("paddingLeft"),10)||0)-this.margins.left,s.top+(parseInt(t(i).css("borderTopWidth"),10)||0)+(parseInt(t(i).css("paddingTop"),10)||0)-this.margins.top,s.left+(n?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t(i).css("borderLeftWidth"),10)||0)-(parseInt(t(i).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,s.top+(n?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t(i).css("borderTopWidth"),10)||0)-(parseInt(t(i).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(e,i){i||(i=this.position);var s="absolute"==e?1:-1,n=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),a=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-(t.browser.safari&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():a?0:n.scrollTop())*s),left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-(t.browser.safari&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():a?0:n.scrollLeft())*s)}},_generatePosition:function(e){var i=this.options,s="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,n=/(html|body)/i.test(s[0].tagName);"relative"==this.cssPosition&&(this.scrollParent[0]==document||this.scrollParent[0]==this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset());var a=e.pageX,r=e.pageY;if(this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.leftthis.containment[2]&&(a=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),i.grid)){var o=this.originalPageY+Math.round((r-this.originalPageY)/i.grid[1])*i.grid[1];r=this.containment&&(o-this.offset.click.topthis.containment[3])?o-this.offset.click.topthis.containment[2])?l-this.offset.click.left=0;n--)t.ui.contains(this.containers[n].element[0],this.currentItem[0])&&!i&&(s.push((function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}).call(this,this.containers[n])),s.push((function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}).call(this,this.containers[n])))}for(var n=this.containers.length-1;n>=0;n--)i||s.push((function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}).call(this,this.containers[n])),this.containers[n].containerCache.over&&(s.push((function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}).call(this,this.containers[n])),this.containers[n].containerCache.over=0);if(this._storedCursor&&t("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"==this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!i){this._trigger("beforeStop",e,this._uiHash());for(var n=0;n").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n=document.activeElement;try{n.id}catch(a){n=document.body}return e.wrap(s),(e[0]===n||t.contains(e[0],n))&&t(n).focus(),s=e.parent(),"static"==e.css("position")?(s.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,s){i[s]=e.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),s.css(i).show()},removeWrapper:function(e){var i,s=document.activeElement;return e.parent().is(".ui-effects-wrapper")?(i=e.parent().replaceWith(e),(e[0]===s||t.contains(e[0],s))&&t(s).focus(),i):e},setTransition:function(e,i,s,n){return n=n||{},t.each(i,function(t,i){var a=e.cssUnit(i);a[0]>0&&(n[i]=a[0]*s+a[1])}),n}}),t.fn.extend({effect:function(e,i,s,n){var a=o.apply(this,arguments),r={options:a[1],duration:a[2],callback:a[3]},l=r.options.mode,h=t.effects[e];return t.fx.off||!h?l?this[l](r.duration,r.callback):this.each(function(){r.callback&&r.callback.call(this)}):h.call(this,r)},_show:t.fn.show,show:function(t){if(l(t))return this._show.apply(this,arguments);var e=o.apply(this,arguments);return e[1].mode="show",this.effect.apply(this,e)},_hide:t.fn.hide,hide:function(t){if(l(t))return this._hide.apply(this,arguments);var e=o.apply(this,arguments);return e[1].mode="hide",this.effect.apply(this,e)},__toggle:t.fn.toggle,toggle:function(e){if(l(e)||"boolean"==typeof e||t.isFunction(e))return this.__toggle.apply(this,arguments);var i=o.apply(this,arguments);return i[1].mode="toggle",this.effect.apply(this,i)},cssUnit:function(e){var i=this.css(e),s=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(s=[parseFloat(i),e])}),s}}),t.easing.jswing=t.easing.swing,t.extend(t.easing,{def:"easeOutQuad",swing:function(e,i,s,n,a){return t.easing[t.easing.def](e,i,s,n,a)},easeInQuad:function(t,e,i,s,n){return s*(e/=n)*e+i},easeOutQuad:function(t,e,i,s,n){return-s*(e/=n)*(e-2)+i},easeInOutQuad:function(t,e,i,s,n){return(e/=n/2)<1?s/2*e*e+i:-s/2*(--e*(e-2)-1)+i},easeInCubic:function(t,e,i,s,n){return s*(e/=n)*e*e+i},easeOutCubic:function(t,e,i,s,n){return s*((e=e/n-1)*e*e+1)+i},easeInOutCubic:function(t,e,i,s,n){return(e/=n/2)<1?s/2*e*e*e+i:s/2*((e-=2)*e*e+2)+i},easeInQuart:function(t,e,i,s,n){return s*(e/=n)*e*e*e+i},easeOutQuart:function(t,e,i,s,n){return-s*((e=e/n-1)*e*e*e-1)+i},easeInOutQuart:function(t,e,i,s,n){return(e/=n/2)<1?s/2*e*e*e*e+i:-s/2*((e-=2)*e*e*e-2)+i},easeInQuint:function(t,e,i,s,n){return s*(e/=n)*e*e*e*e+i},easeOutQuint:function(t,e,i,s,n){return s*((e=e/n-1)*e*e*e*e+1)+i},easeInOutQuint:function(t,e,i,s,n){return(e/=n/2)<1?s/2*e*e*e*e*e+i:s/2*((e-=2)*e*e*e*e+2)+i},easeInSine:function(t,e,i,s,n){return-s*Math.cos(e/n*(Math.PI/2))+s+i},easeOutSine:function(t,e,i,s,n){return s*Math.sin(e/n*(Math.PI/2))+i},easeInOutSine:function(t,e,i,s,n){return-s/2*(Math.cos(Math.PI*e/n)-1)+i},easeInExpo:function(t,e,i,s,n){return 0==e?i:s*Math.pow(2,10*(e/n-1))+i},easeOutExpo:function(t,e,i,s,n){return e==n?i+s:s*(-Math.pow(2,-10*e/n)+1)+i},easeInOutExpo:function(t,e,i,s,n){return 0==e?i:e==n?i+s:(e/=n/2)<1?s/2*Math.pow(2,10*(e-1))+i:s/2*(-Math.pow(2,-10*--e)+2)+i},easeInCirc:function(t,e,i,s,n){return-s*(Math.sqrt(1-(e/=n)*e)-1)+i},easeOutCirc:function(t,e,i,s,n){return s*Math.sqrt(1-(e=e/n-1)*e)+i},easeInOutCirc:function(t,e,i,s,n){return(e/=n/2)<1?-s/2*(Math.sqrt(1-e*e)-1)+i:s/2*(Math.sqrt(1-(e-=2)*e)+1)+i},easeInElastic:function(t,e,i,s,n){var a=1.70158,r=0,o=s;if(0==e)return i;if(1==(e/=n))return i+s;if(r||(r=.3*n),o").css({position:"absolute",visibility:"visible",left:-h*(r/s),top:-l*(o/i)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:r/s,height:o/i,left:a.left+h*(r/s)+("show"==e.options.mode?(h-Math.floor(s/2))*(r/s):0),top:a.top+l*(o/i)+("show"==e.options.mode?(l-Math.floor(i/2))*(o/i):0),opacity:"show"==e.options.mode?0:1}).animate({left:a.left+h*(r/s)+("show"==e.options.mode?0:(h-Math.floor(s/2))*(r/s)),top:a.top+l*(o/i)+("show"==e.options.mode?0:(l-Math.floor(i/2))*(o/i)),opacity:"show"==e.options.mode?1:0},e.duration||500);setTimeout(function(){"show"==e.options.mode?n.css({visibility:"visible"}):n.css({visibility:"visible"}).hide(),e.callback&&e.callback.apply(n[0]),n.dequeue(),t("div.ui-effects-explode").remove()},e.duration||500)})}}(jQuery),function(t,e){t.effects.fade=function(e){return this.queue(function(){var i=t(this),s=t.effects.setMode(i,e.options.mode||"hide");i.animate({opacity:s},{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){e.callback&&e.callback.apply(this,arguments),i.dequeue()}})})}}(jQuery),function(t,e){t.effects.fold=function(e){return this.queue(function(){var i=t(this),s=["position","top","bottom","left","right"],n=t.effects.setMode(i,e.options.mode||"hide"),a=e.options.size||15,r=!!e.options.horizFirst,o=e.duration?e.duration/2:t.fx.speeds._default/2;t.effects.save(i,s),i.show();var l=t.effects.createWrapper(i).css({overflow:"hidden"}),h="show"==n!=r,c=h?["width","height"]:["height","width"],d=h?[l.width(),l.height()]:[l.height(),l.width()],u=/([0-9]+)%/.exec(a);u&&(a=parseInt(u[1],10)/100*d["hide"==n?0:1]),"show"==n&&l.css(r?{height:0,width:a}:{height:a,width:0});var f={},p={};f[c[0]]="show"==n?d[0]:a,p[c[1]]="show"==n?d[1]:0,l.animate(f,o,e.options.easing).animate(p,o,e.options.easing,function(){"hide"==n&&i.hide(),t.effects.restore(i,s),t.effects.removeWrapper(i),e.callback&&e.callback.apply(i[0],arguments),i.dequeue()})})}}(jQuery),function(t,e){t.effects.highlight=function(e){return this.queue(function(){var i=t(this),s=["backgroundImage","backgroundColor","opacity"],n=t.effects.setMode(i,e.options.mode||"show"),a={backgroundColor:i.css("backgroundColor")};"hide"==n&&(a.opacity=0),t.effects.save(i,s),i.show().css({backgroundImage:"none",backgroundColor:e.options.color||"#ffff99"}).animate(a,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){"hide"==n&&i.hide(),t.effects.restore(i,s),"show"!=n||t.support.opacity||this.style.removeAttribute("filter"),e.callback&&e.callback.apply(this,arguments),i.dequeue()}})})}}(jQuery),function(t,e){t.effects.pulsate=function(e){return this.queue(function(){var i=t(this),s=t.effects.setMode(i,e.options.mode||"show"),n=2*(e.options.times||5)-1,a=e.duration?e.duration/2:t.fx.speeds._default/2,r=i.is(":visible"),o=0;r||(i.css("opacity",0).show(),o=1),("hide"==s&&r||"show"==s&&!r)&&n--;for(var l=0;l').appendTo(document.body).addClass(e.options.className).css({top:r.top,left:r.left,height:i.innerHeight(),width:i.innerWidth(),position:"absolute"}).animate(a,e.duration,e.options.easing,function(){o.remove(),e.callback&&e.callback.apply(i[0],arguments),i.dequeue()})})}}(jQuery),function(t,e){t.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:!0,clearStyle:!1,collapsible:!1,event:"click",fillSpace:!1,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var e=this,i=e.options;if(e.running=0,e.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"),e.headers=e.element.find(i.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){i.disabled||t(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){i.disabled||t(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){i.disabled||t(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){i.disabled||t(this).removeClass("ui-state-focus")}),e.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"),i.navigation){var s=e.element.find("a").filter(i.navigationFilter).eq(0);if(s.length){var n=s.closest(".ui-accordion-header");n.length?e.active=n:e.active=s.closest(".ui-accordion-content").prev()}}e.active=e._findActive(e.active||i.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top"),e.active.next().addClass("ui-accordion-content-active"),e._createIcons(),e.resize(),e.element.attr("role","tablist"),e.headers.attr("role","tab").bind("keydown.accordion",function(t){return e._keydown(t)}).next().attr("role","tabpanel"),e.headers.not(e.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide(),e.active.length?e.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):e.headers.eq(0).attr("tabIndex",0),t.browser.safari||e.headers.find("a").attr("tabIndex",-1),i.event&&e.headers.bind(i.event.split(" ").join(".accordion ")+".accordion",function(t){e._clickHandler.call(e,t,this),t.preventDefault()})},_createIcons:function(){var e=this.options;e.icons&&(t("").addClass("ui-icon "+e.icons.header).prependTo(this.headers),this.active.children(".ui-icon").toggleClass(e.icons.header).toggleClass(e.icons.headerSelected),this.element.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.children(".ui-icon").remove(),this.element.removeClass("ui-accordion-icons")},destroy:function(){var e=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex"),this.headers.find("a").removeAttr("tabIndex"),this._destroyIcons();var i=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");return(e.autoHeight||e.fillHeight)&&i.css("height",""),t.Widget.prototype.destroy.call(this)},_setOption:function(e,i){t.Widget.prototype._setOption.apply(this,arguments),"active"==e&&this.activate(i),"icons"==e&&(this._destroyIcons(),i&&this._createIcons()),"disabled"==e&&this.headers.add(this.headers.next())[i?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(e){if(!this.options.disabled&&!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,s=this.headers.length,n=this.headers.index(e.target),a=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:a=this.headers[(n+1)%s];break;case i.LEFT:case i.UP:a=this.headers[(n-1+s)%s];break;case i.SPACE:case i.ENTER:this._clickHandler({target:e.target},e.target),e.preventDefault()}return!a||(t(e.target).attr("tabIndex",-1),t(a).attr("tabIndex",0),a.focus(),!1)}},resize:function(){var e,i=this.options;if(i.fillSpace){if(t.browser.msie){var s=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}e=this.element.parent().height(),t.browser.msie&&this.element.parent().css("overflow",s),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")}else i.autoHeight&&(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).height("").height())}).height(e));return this},activate:function(t){this.options.active=t;var e=this._findActive(t)[0];return this._clickHandler({target:e},e),this},_findActive:function(e){return e?"number"==typeof e?this.headers.filter(":eq("+e+")"):this.headers.not(this.headers.not(e)):!1===e?t([]):this.headers.filter(":eq(0)")},_clickHandler:function(e,i){var s=this.options;if(!s.disabled){if(!e.target){if(!s.collapsible)return;this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(s.icons.headerSelected).addClass(s.icons.header),this.active.next().addClass("ui-accordion-content-active");var n=this.active.next(),a={options:s,newHeader:t([]),oldHeader:s.active,newContent:t([]),oldContent:n},r=this.active=t([]);this._toggle(r,n,a);return}var o=t(e.currentTarget||i),l=o[0]===this.active[0];if(s.active=(!s.collapsible||!l)&&this.headers.index(o),!this.running&&(s.collapsible||!l)){var h=this.active,r=o.next(),n=this.active.next(),a={options:s,newHeader:l&&s.collapsible?t([]):o,oldHeader:this.active,newContent:l&&s.collapsible?t([]):r,oldContent:n},c=this.headers.index(this.active[0])>this.headers.index(o[0]);this.active=l?t([]):o,this._toggle(r,n,a,l,c),h.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(s.icons.headerSelected).addClass(s.icons.header),l||(o.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(s.icons.header).addClass(s.icons.headerSelected),o.next().addClass("ui-accordion-content-active"))}}},_toggle:function(e,i,s,n,a){var r=this,o=r.options;r.toShow=e,r.toHide=i,r.data=s;var l=function(){if(r)return r._completed.apply(r,arguments)};if(r._trigger("changestart",null,r.data),r.running=0===i.size()?e.size():i.size(),o.animated){var h={};h=o.collapsible&&n?{toShow:t([]),toHide:i,complete:l,down:a,autoHeight:o.autoHeight||o.fillSpace}:{toShow:e,toHide:i,complete:l,down:a,autoHeight:o.autoHeight||o.fillSpace},o.proxied||(o.proxied=o.animated),o.proxiedDuration||(o.proxiedDuration=o.duration),o.animated=t.isFunction(o.proxied)?o.proxied(h):o.proxied,o.duration=t.isFunction(o.proxiedDuration)?o.proxiedDuration(h):o.proxiedDuration;var c=t.ui.accordion.animations,d=o.duration,u=o.animated;!u||c[u]||t.easing[u]||(u="slide"),c[u]||(c[u]=function(t){this.slide(t,{easing:u,duration:d||700})}),c[u](h)}else o.collapsible&&n?e.toggle():(i.hide(),e.show()),l(!0);i.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur(),e.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(t){this.running=t?0:--this.running,this.running||(this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""}),this.toHide.removeClass("ui-accordion-content-active"),this.toHide.length&&(this.toHide.parent()[0].className=this.toHide.parent()[0].className),this._trigger("change",null,this.data))}}),t.extend(t.ui.accordion,{version:"1.8.22",animations:{slide:function(e,i){if(!(e=t.extend({easing:"swing",duration:300},e,i)).toHide.size()){e.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},e);return}if(!e.toShow.size()){e.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},e);return}var s,n=e.toShow.css("overflow"),a=0,r={},o={},l=["height","paddingTop","paddingBottom"],h=e.toShow;s=h[0].style.width,h.width(h.parent().width()-parseFloat(h.css("paddingLeft"))-parseFloat(h.css("paddingRight"))-(parseFloat(h.css("borderLeftWidth"))||0)-(parseFloat(h.css("borderRightWidth"))||0)),t.each(l,function(i,s){o[s]="hide";var n=(""+t.css(e.toShow[0],s)).match(/^([\d+-.]+)(.*)$/);r[s]={value:n[1],unit:n[2]||"px"}}),e.toShow.css({height:0,overflow:"hidden"}).show(),e.toHide.filter(":hidden").each(e.complete).end().filter(":visible").animate(o,{step:function(t,i){"height"==i.prop&&(a=i.end-i.start==0?0:(i.now-i.start)/(i.end-i.start)),e.toShow[0].style[i.prop]=a*r[i.prop].value+r[i.prop].unit},duration:e.duration,easing:e.easing,complete:function(){e.autoHeight||e.toShow.css("height",""),e.toShow.css({width:s,overflow:n}),e.complete()}})},bounceslide:function(t){this.slide(t,{easing:t.down?"easeOutBounce":"swing",duration:t.down?1e3:200})}}})}(jQuery),function(t,e){var i=0;t.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var e,i=this,s=this.element[0].ownerDocument;this.isMultiLine=this.element.is("textarea"),this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(s){if(!(i.options.disabled||i.element.propAttr("readOnly"))){e=!1;var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:i._move("previousPage",s);break;case n.PAGE_DOWN:i._move("nextPage",s);break;case n.UP:i._keyEvent("previous",s);break;case n.DOWN:i._keyEvent("next",s);break;case n.ENTER:case n.NUMPAD_ENTER:i.menu.active&&(e=!0,s.preventDefault());case n.TAB:if(!i.menu.active)return;i.menu.select(s);break;case n.ESCAPE:i.element.val(i.term),i.close(s);break;default:clearTimeout(i.searching),i.searching=setTimeout(function(){i.term!=i.element.val()&&(i.selectedItem=null,i.search(null,s))},i.options.delay)}}}).bind("keypress.autocomplete",function(t){e&&(e=!1,t.preventDefault())}).bind("focus.autocomplete",function(){i.options.disabled||(i.selectedItem=null,i.previous=i.element.val())}).bind("blur.autocomplete",function(t){i.options.disabled||(clearTimeout(i.searching),i.closing=setTimeout(function(){i.close(t),i._change(t)},150))}),this._initSource(),this.menu=t("
    ").addClass("ui-autocomplete").appendTo(t(this.options.appendTo||"body",s)[0]).mousedown(function(e){var s=i.menu.element[0];t(e.target).closest(".ui-menu-item").length||setTimeout(function(){t(document).one("mousedown",function(e){e.target===i.element[0]||e.target===s||t.ui.contains(s,e.target)||i.close()})},1),setTimeout(function(){clearTimeout(i.closing)},13)}).menu({focus:function(t,e){var s=e.item.data("item.autocomplete");!1!==i._trigger("focus",t,{item:s})&&/^key/.test(t.originalEvent.type)&&i.element.val(s.value)},selected:function(t,e){var n=e.item.data("item.autocomplete"),a=i.previous;i.element[0]!==s.activeElement&&(i.element.focus(),i.previous=a,setTimeout(function(){i.previous=a,i.selectedItem=n},1)),!1!==i._trigger("select",t,{item:n})&&i.element.val(n.value),i.term=i.element.val(),i.close(t),i.selectedItem=n},blur:function(t,e){i.menu.element.is(":visible")&&i.element.val()!==i.term&&i.element.val(i.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"),t.fn.bgiframe&&this.menu.element.bgiframe(),i.beforeunloadHandler=function(){i.element.removeAttr("autocomplete")},t(window).bind("beforeunload",i.beforeunloadHandler)},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"),this.menu.element.remove(),t(window).unbind("beforeunload",this.beforeunloadHandler),t.Widget.prototype.destroy.call(this)},_setOption:function(e,i){t.Widget.prototype._setOption.apply(this,arguments),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(t(i||"body",this.element[0].ownerDocument)[0]),"disabled"===e&&i&&this.xhr&&this.xhr.abort()},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t,e){n(t)},error:function(){n([])}})}):this.source=this.options.source},search:function(t,e){return(t=null!=t?t:this.element.val(),this.term=this.element.val(),t.length").data("item.autocomplete",i).append(t("
    ").text(i.label)).appendTo(e)},_move:function(t,e){if(!this.menu.element.is(":visible")){this.search(null,e);return}if(this.menu.first()&&/^previous/.test(t)||this.menu.last()&&/^next/.test(t)){this.element.val(this.term),this.menu.deactivate();return}this.menu[t](e)},widget:function(){return this.menu.element},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}})}(jQuery),function(t){t.widget("ui.menu",{_create:function(){var e=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(i){t(i.target).closest(".ui-menu-item a").length&&(i.preventDefault(),e.select(i))}),this.refresh()},refresh:function(){var e=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(i){e.activate(i,t(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(t,e){if(this.deactivate(),this.hasScroll()){var i=e.offset().top-this.element.offset().top,s=this.element.scrollTop(),n=this.element.height();i<0?this.element.scrollTop(s+i):i>=n&&this.element.scrollTop(s+i-n+e.height())}this.active=e.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end(),this._trigger("focus",t,{item:e})},deactivate:function(){this.active&&(this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),this._trigger("blur"),this.active=null)},next:function(t){this.move("next",".ui-menu-item:first",t)},previous:function(t){this.move("prev",".ui-menu-item:last",t)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(t,e,i){if(!this.active){this.activate(i,this.element.children(e));return}var s=this.active[t+"All"](".ui-menu-item").eq(0);s.length?this.activate(i,s):this.activate(i,this.element.children(e))},nextPage:function(e){if(this.hasScroll()){if(!this.active||this.last()){this.activate(e,this.element.children(".ui-menu-item:first"));return}var i=this.active.offset().top,s=this.element.height(),n=this.element.children(".ui-menu-item").filter(function(){var e=t(this).offset().top-i-s+t(this).height();return e<10&&e>-10});n.length||(n=this.element.children(".ui-menu-item:last")),this.activate(e,n)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(e){if(this.hasScroll()){if(!this.active||this.first()){this.activate(e,this.element.children(".ui-menu-item:last"));return}var i=this.active.offset().top,s=this.element.height(),n=this.element.children(".ui-menu-item").filter(function(){var e=t(this).offset().top-i+s-t(this).height();return e<10&&e>-10});n.length||(n=this.element.children(".ui-menu-item:first")),this.activate(e,n)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()",this.element[0].ownerDocument).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),s=this.options.icons,n=s.primary&&s.secondary,a=[];s.primary||s.secondary?(this.options.text&&a.push("ui-button-text-icon"+(n?"s":s.primary?"-primary":"-secondary")),s.primary&&e.prepend(""),s.secondary&&e.append(""),this.options.text||(a.push(n?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",i))):a.push("ui-button-text-only"),e.addClass(a.join(" "))}}),t.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(e,i){"disabled"===e&&this.buttons.button("option",e,i),t.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var e="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy"),t.Widget.prototype.destroy.call(this)}})}(jQuery),function($,undefined){function Datepicker(){this.debug=!1,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:""},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,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},$.extend(this._defaults,this.regional[""]),this.dpDiv=bindHover($('
    '))}function bindHover(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.bind("mouseout",function(t){var i=$(t.target).closest(e);i.length&&i.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(i){var s=$(i.target).closest(e);!$.datepicker._isDisabledDatepicker(instActive.inline?t.parent()[0]:instActive.input[0])&&s.length&&(s.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),s.addClass("ui-state-hover"),s.hasClass("ui-datepicker-prev")&&s.addClass("ui-datepicker-prev-hover"),s.hasClass("ui-datepicker-next")&&s.addClass("ui-datepicker-next-hover"))})}function extendRemove(t,e){for(var i in $.extend(t,e),e)(null==e[i]||undefined==e[i])&&(t[i]=e[i]);return t}function isArray(t){return t&&($.browser.safari&&"object"==typeof t&&t.length||t.constructor&&t.constructor.toString().match(/\Array\(\)/))}$.extend($.ui,{datepicker:{version:"1.8.22"}});var instActive,PROP_NAME="datepicker",dpuuid=(new Date).getTime();$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return extendRemove(this._defaults,t||{}),this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline="div"==nodeName||"span"==nodeName;target.id||(this.uuid+=1,target.id="dp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),"input"==nodeName?this._connectDatepicker(target,inst):inline&&this._inlineDatepicker(target,inst)},_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?bindHover($('
    ')):this.dpDiv}},_connectDatepicker:function(t,e){var i=$(t);e.append=$([]),e.trigger=$([]),!i.hasClass(this.markerClassName)&&(this._attachments(i,e),i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(t,i,s){e.settings[i]=s}).bind("getData.datepicker",function(t,i){return this._get(e,i)}),this._autoSize(e),$.data(t,PROP_NAME,e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i=this._get(e,"appendText"),s=this._get(e,"isRTL");e.append&&e.append.remove(),i&&(e.append=$(''+i+""),t[s?"before":"after"](e.append)),t.unbind("focus",this._showDatepicker),e.trigger&&e.trigger.remove();var n=this._get(e,"showOn");if(("focus"==n||"both"==n)&&t.focus(this._showDatepicker),"button"==n||"both"==n){var a=this._get(e,"buttonText"),r=this._get(e,"buttonImage");e.trigger=$(this._get(e,"buttonImageOnly")?$("").addClass(this._triggerClass).attr({src:r,alt:a,title:a}):$('').addClass(this._triggerClass).html(""==r?a:$("").attr({src:r,alt:a,title:a}))),t[s?"before":"after"](e.trigger),e.trigger.click(function(){return $.datepicker._datepickerShowing&&$.datepicker._lastInput==t[0]?$.datepicker._hideDatepicker():($.datepicker._datepickerShowing&&$.datepicker._lastInput!=t[0]&&$.datepicker._hideDatepicker(),$.datepicker._showDatepicker(t[0])),!1})}},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e=new Date(2009,11,20),i=this._get(t,"dateFormat");if(i.match(/[DM]/)){var s=function(t){for(var e=0,i=0,s=0;se&&(e=t[s].length,i=s);return i};e.setMonth(s(this._get(t,i.match(/MM/)?"monthNames":"monthNamesShort"))),e.setDate(s(this._get(t,i.match(/DD/)?"dayNames":"dayNamesShort"))+20-e.getDay())}t.input.attr("size",this._formatDate(t,e).length)}},_inlineDatepicker:function(t,e){var i=$(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv).bind("setData.datepicker",function(t,i,s){e.settings[i]=s}).bind("getData.datepicker",function(t,i){return this._get(e,i)}),$.data(t,PROP_NAME,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=this._dialogInst;if(!a){this.uuid+=1;var r="dp"+this.uuid;this._dialogInput=$(''),this._dialogInput.keydown(this._doKeyDown),$("body").append(this._dialogInput),(a=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},$.data(this._dialogInput[0],PROP_NAME,a)}if(extendRemove(a.settings,s||{}),e=e&&e.constructor==Date?this._formatDate(a,e):e,this._dialogInput.val(e),this._pos=n?n.length?n:[n.pageX,n.pageY]:null,!this._pos){var o=document.documentElement.clientWidth,l=document.documentElement.clientHeight,h=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[o/2-100+h,l/2-150+c]}return this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),a.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),$.blockUI&&$.blockUI(this.dpDiv),$.data(this._dialogInput[0],PROP_NAME,a),this},_destroyDatepicker:function(t){var e=$(t),i=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var s=t.nodeName.toLowerCase();$.removeData(t,PROP_NAME),"input"==s?(i.append.remove(),i.trigger.remove(),e.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"==s||"span"==s)&&e.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(t){var e=$(t),i=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var s=t.nodeName.toLowerCase();if("input"==s)t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if("div"==s||"span"==s){var n=e.children("."+this._inlineClass);n.children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=$.map(this._disabledInputs,function(e){return e==t?null:e})}},_disableDatepicker:function(t){var e=$(t),i=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var s=t.nodeName.toLowerCase();if("input"==s)t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if("div"==s||"span"==s){var n=e.children("."+this._inlineClass);n.children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledInputs=$.map(this._disabledInputs,function(e){return e==t?null:e}),this._disabledInputs[this._disabledInputs.length]=t}},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e-1}},_doKeyUp:function(t){var e=$.datepicker._getInst(t.target);if(e.input.val()!=e.lastVal)try{$.datepicker.parseDate($.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,$.datepicker._getFormatConfig(e))&&($.datepicker._setDateFromField(e),$.datepicker._updateAlternate(e),$.datepicker._updateDatepicker(e))}catch(i){$.datepicker.log(i)}return!0},_showDatepicker:function(t){if("input"!=(t=t.target||t).nodeName.toLowerCase()&&(t=$("input",t.parentNode)[0]),!$.datepicker._isDisabledDatepicker(t)&&$.datepicker._lastInput!=t){var e=$.datepicker._getInst(t);$.datepicker._curInst&&$.datepicker._curInst!=e&&($.datepicker._curInst.dpDiv.stop(!0,!0),e&&$.datepicker._datepickerShowing&&$.datepicker._hideDatepicker($.datepicker._curInst.input[0]));var i=$.datepicker._get(e,"beforeShow"),s=i?i.apply(t,[t,e]):{};if(!1!==s){extendRemove(e.settings,s),e.lastVal=null,$.datepicker._lastInput=t,$.datepicker._setDateFromField(e),$.datepicker._inDialog&&(t.value=""),$.datepicker._pos||($.datepicker._pos=$.datepicker._findPos(t),$.datepicker._pos[1]+=t.offsetHeight);var n=!1;$(t).parents().each(function(){return!(n|="fixed"==$(this).css("position"))}),n&&$.browser.opera&&($.datepicker._pos[0]-=document.documentElement.scrollLeft,$.datepicker._pos[1]-=document.documentElement.scrollTop);var a={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};if($.datepicker._pos=null,e.dpDiv.empty(),e.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.datepicker._updateDatepicker(e),a=$.datepicker._checkOffset(e,a,n),e.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?"static":n?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),!e.inline){var r=$.datepicker._get(e,"showAnim"),o=$.datepicker._get(e,"duration"),l=function(){var t=e.dpDiv.find("iframe.ui-datepicker-cover");if(t.length){var i=$.datepicker._getBorders(e.dpDiv);t.css({left:-i[0],top:-i[1],width:e.dpDiv.outerWidth(),height:e.dpDiv.outerHeight()})}};e.dpDiv.zIndex($(t).zIndex()+1),$.datepicker._datepickerShowing=!0,$.effects&&$.effects[r]?e.dpDiv.show(r,$.datepicker._get(e,"showOptions"),o,l):e.dpDiv[r||"show"](r?o:null,l),r&&o||l(),e.input.is(":visible")&&!e.input.is(":disabled")&&e.input.focus(),$.datepicker._curInst=e}}}},_updateDatepicker:function(t){var e=this;e.maxRows=4;var i=$.datepicker._getBorders(t.dpDiv);instActive=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var s=t.dpDiv.find("iframe.ui-datepicker-cover");s.length&&s.css({left:-i[0],top:-i[1],width:t.dpDiv.outerWidth(),height:t.dpDiv.outerHeight()}),t.dpDiv.find("."+this._dayOverClass+" a").mouseover();var n=this._getNumberOfMonths(t),a=n[1],r=17;if(t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),a>1&&t.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",r*a+"em"),t.dpDiv[(1!=n[0]||1!=n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t==$.datepicker._curInst&&$.datepicker._datepickerShowing&&t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&t.input[0]!=document.activeElement&&t.input.focus(),t.yearshtml){var o=t.yearshtml;setTimeout(function(){o===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),o=t.yearshtml=null},0)}},_getBorders:function(t){var e=function(t){return({thin:1,medium:2,thick:3})[t]||t};return[parseFloat(e(t.css("border-left-width"))),parseFloat(e(t.css("border-top-width")))]},_checkOffset:function(t,e,i){var s=t.dpDiv.outerWidth(),n=t.dpDiv.outerHeight(),a=t.input?t.input.outerWidth():0,r=t.input?t.input.outerHeight():0,o=document.documentElement.clientWidth+(i?0:$(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:$(document).scrollTop());return e.left-=this._get(t,"isRTL")?s-a:0,e.left-=i&&e.left==t.input.offset().left?$(document).scrollLeft():0,e.top-=i&&e.top==t.input.offset().top+r?$(document).scrollTop():0,e.left-=Math.min(e.left,e.left+s>o&&o>s?Math.abs(e.left+s-o):0),e.top-=Math.min(e.top,e.top+n>l&&l>n?Math.abs(n+r):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"==t.type||1!=t.nodeType||$.expr.filters.hidden(t));)t=t[i?"previousSibling":"nextSibling"];var s=$(t).offset();return[s.left,s.top]},_hideDatepicker:function(t){var e=this._curInst;if(e&&(!t||e==$.data(t,PROP_NAME))&&this._datepickerShowing){var i=this._get(e,"showAnim"),s=this._get(e,"duration"),n=function(){$.datepicker._tidyDialog(e)};$.effects&&$.effects[i]?e.dpDiv.hide(i,$.datepicker._get(e,"showOptions"),s,n):e.dpDiv["slideDown"==i?"slideUp":"fadeIn"==i?"fadeOut":"hide"](i?s:null,n),i||n(),this._datepickerShowing=!1;var a=this._get(e,"onClose");a&&a.apply(e.input?e.input[0]:null,[e.input?e.input.val():"",e]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.dpDiv))),this._inDialog=!1}},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if($.datepicker._curInst){var e=$(t.target),i=$.datepicker._getInst(e[0]);(e[0].id!=$.datepicker._mainDivId&&0==e.parents("#"+$.datepicker._mainDivId).length&&!e.hasClass($.datepicker.markerClassName)&&!e.closest("."+$.datepicker._triggerClass).length&&$.datepicker._datepickerShowing&&(!$.datepicker._inDialog||!$.blockUI)||e.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!=i)&&$.datepicker._hideDatepicker()}},_adjustDate:function(t,e,i){var s=$(t),n=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(n,e+("M"==i?this._get(n,"showCurrentAtPos"):0),i),this._updateDatepicker(n))},_gotoToday:function(t){var e=$(t),i=this._getInst(e[0]);if(this._get(i,"gotoCurrent")&&i.currentDay)i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear;else{var s=new Date;i.selectedDay=s.getDate(),i.drawMonth=i.selectedMonth=s.getMonth(),i.drawYear=i.selectedYear=s.getFullYear()}this._notifyChange(i),this._adjustDate(e)},_selectMonthYear:function(t,e,i){var s=$(t),n=this._getInst(s[0]);n["selected"+("M"==i?"Month":"Year")]=n["draw"+("M"==i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(n),this._adjustDate(s)},_selectDay:function(t,e,i,s){var n=$(t);if(!($(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(n[0]))){var a=this._getInst(n[0]);a.selectedDay=a.currentDay=$("a",s).html(),a.selectedMonth=a.currentMonth=e,a.selectedYear=a.currentYear=i,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear))}},_clearDate:function(t){var e=$(t);this._getInst(e[0]),this._selectDate(e,"")},_selectDate:function(t,e){var i=$(t),s=this._getInst(i[0]);e=null!=e?e:this._formatDate(s),s.input&&s.input.val(e),this._updateAlternate(s);var n=this._get(s,"onSelect");n?n.apply(s.input?s.input[0]:null,[e,s]):s.input&&s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&&s.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var e=this._get(t,"altField");if(e){var i=this._get(t,"altFormat")||this._get(t,"dateFormat"),s=this._getDate(t),n=this.formatDate(i,s,this._getFormatConfig(t));$(e).each(function(){$(this).val(n)})}},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e=new Date(t.getTime());e.setDate(e.getDate()+4-(e.getDay()||7));var i=e.getTime();return e.setMonth(0),e.setDate(1),Math.floor(Math.round((i-e)/864e5)/7)+1},parseDate:function(t,e,i){if(null==t||null==e)throw"Invalid arguments";if(""==(e="object"==typeof e?e.toString():e+""))return null;var s=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff;s="string"!=typeof s?s:(new Date).getFullYear()%100+parseInt(s,10);for(var n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,l=-1,h=-1,c=-1,d=-1,u=!1,f=function(e){var i=b+1-1)for(h=1,c=d;;){var w=this._getDaysInMonth(l,h-1);if(c<=w)break;h++,c-=w}var y=this._daylightSavingAdjust(new Date(l,h-1,c));if(y.getFullYear()!=l||y.getMonth()+1!=h||y.getDate()!=c)throw"Invalid date";return y},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:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*864e9,formatDate:function(t,e,i){if(!e)return"";var s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,n=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,o=function(e){var i=u+112?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,a=t.selectedYear,r=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=r.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=r.getMonth(),t.drawYear=t.selectedYear=t.currentYear=r.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;t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(i,-e,"M")},next:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(i,+e,"M")},hide:function(){window["DP_jQuery_"+dpuuid].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+dpuuid].datepicker._gotoToday(i)},selectDay:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(i,this,"Y"),!1}};$(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e=new Date;e=this._daylightSavingAdjust(new Date(e.getFullYear(),e.getMonth(),e.getDate()));var i=this._get(t,"isRTL"),s=this._get(t,"showButtonPanel"),n=this._get(t,"hideIfNoPrevNext"),a=this._get(t,"navigationAsDateFormat"),r=this._getNumberOfMonths(t),o=this._get(t,"showCurrentAtPos"),l=this._get(t,"stepMonths"),h=1!=r[0]||1!=r[1],c=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),d=this._getMinMaxDate(t,"min"),u=this._getMinMaxDate(t,"max"),f=t.drawMonth-o,p=t.drawYear;if(f<0&&(f+=12,p--),u){var m=this._daylightSavingAdjust(new Date(u.getFullYear(),u.getMonth()-r[0]*r[1]+1,u.getDate()));for(m=d&&mm;)--f<0&&(f=11,p--)}t.drawMonth=f,t.drawYear=p;var g=this._get(t,"prevText");g=a?this.formatDate(g,this._daylightSavingAdjust(new Date(p,f-l,1)),this._getFormatConfig(t)):g;var v=this._canAdjustMonth(t,-1,p,f)?''+g+"":n?"":''+g+"",b=this._get(t,"nextText");b=a?this.formatDate(b,this._daylightSavingAdjust(new Date(p,f+l,1)),this._getFormatConfig(t)):b;var y=this._canAdjustMonth(t,1,p,f)?''+b+"":n?"":''+b+"",w=this._get(t,"currentText"),_=this._get(t,"gotoCurrent")&&t.currentDay?c:e;w=a?this.formatDate(w,_,this._getFormatConfig(t)):w;var k=t.inline?"":'",D=s?'
    '+(i?k:"")+(this._isInRange(t,_)?'":"")+(i?"":k)+"
    ":"",C=parseInt(this._get(t,"firstDay"),10);C=isNaN(C)?0:C;for(var x=this._get(t,"showWeek"),S=this._get(t,"dayNames"),P=(this._get(t,"dayNamesShort"),this._get(t,"dayNamesMin")),T=this._get(t,"monthNames"),M=this._get(t,"monthNamesShort"),A=this._get(t,"beforeShowDay"),E=this._get(t,"showOtherMonths"),I=this._get(t,"selectOtherMonths"),O=(this._get(t,"calculateWeek")||this.iso8601Week,this._getDefaultDate(t)),F="",Y=0;Y1)switch(z){case 0:N+=" ui-datepicker-group-first",W=" ui-corner-"+(i?"right":"left");break;case r[1]-1:N+=" ui-datepicker-group-last",W=" ui-corner-"+(i?"left":"right");break;default:N+=" ui-datepicker-group-middle",W=""}N+='">'}N+='
    '+(/all|left/.test(W)&&0==Y?i?y:v:"")+(/all|right/.test(W)&&0==Y?i?v:y:"")+this._generateMonthYearHeader(t,f,p,d,u,Y>0||z>0,T,M)+'
    ';for(var R=x?'":"",j=0;j<7;j++){var B=(j+C)%7;R+="=5?' class="ui-datepicker-week-end"':"")+'>'+P[B]+""}N+=R+"";var q=this._getDaysInMonth(p,f);p==t.selectedYear&&f==t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,q));var V=(this._getFirstDayOfMonth(p,f)-C+7)%7,U=Math.ceil((V+q)/7),K=h&&this.maxRows>U?this.maxRows:U;this.maxRows=K;for(var G=this._daylightSavingAdjust(new Date(p,f,1-V)),X=0;X";for(var Z=x?'":"",j=0;j<7;j++){var Q=A?A.apply(t.input?t.input[0]:null,[G]):[!0,""],J=G.getMonth()!=f,tt=J&&!I||!Q[0]||d&&Gu;Z+='",G.setDate(G.getDate()+1),G=this._daylightSavingAdjust(G)}N+=Z+""}++f>11&&(f=0,p++),N+="
    '+this._get(t,"weekHeader")+"
    '+this._get(t,"calculateWeek")(G)+""+(J&&!E?" ":tt?''+G.getDate()+"":''+G.getDate()+"")+"
    "+(h?""+(r[0]>0&&z==r[1]-1?'
    ':""):""),L+=N}F+=L}return F+=D+($.browser.msie&&7>parseInt($.browser.version,10)&&!t.inline?'':""),t._keyEvent=!1,F},_generateMonthYearHeader:function(t,e,i,s,n,a,r,o){var l=this._get(t,"changeMonth"),h=this._get(t,"changeYear"),c=this._get(t,"showMonthAfterYear"),d='
    ',u="";if(a||!l)u+=''+r[e]+"";else{var f=s&&s.getFullYear()==i,p=n&&n.getFullYear()==i;u+='"}if(c||(d+=u+(!a&&l&&h?"":" ")),!t.yearshtml){if(t.yearshtml="",a||!h)d+=''+i+"";else{var g=this._get(t,"yearRange").split(":"),v=(new Date).getFullYear(),$=function(t){var e=t.match(/c[+-].*/)?i+parseInt(t.substring(1),10):t.match(/[+-].*/)?v+parseInt(t,10):parseInt(t,10);return isNaN(e)?v:e},b=$(g[0]),y=Math.max(b,$(g[1]||""));for(b=s?Math.max(b,s.getFullYear()):b,y=n?Math.min(y,n.getFullYear()):y,t.yearshtml+='",d+=t.yearshtml,t.yearshtml=null}}return d+=this._get(t,"yearSuffix"),c&&(d+=(!a&&l&&h?"":" ")+u),d+="
    "},_adjustInstDate:function(t,e,i){var s=t.drawYear+("Y"==i?e:0),n=t.drawMonth+("M"==i?e:0),a=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"==i?e:0),r=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,a)));t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),("M"==i||"Y"==i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),n=i&&es?s:n},_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){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_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),a=this._daylightSavingAdjust(new Date(i,s+(e<0?e:n[0]*n[1]),1));return e<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(t,a)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max");return(!i||e.getTime()>=i.getTime())&&(!s||e.getTime()<=s.getTime())},_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);var n=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"),n,this._getFormatConfig(t))}}),$.fn.datepicker=function(t){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv),$.datepicker.initialized=!0);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]?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this].concat(e)):$.datepicker._attachDatepicker(this,t)}):$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(e))},$.datepicker=new Datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="1.8.22",window["DP_jQuery_"+dpuuid]=$}(jQuery),function(t,e){var i="ui-dialog ui-widget ui-widget-content ui-corner-all ",s={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},n={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},a=t.attrFn||{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0,click:!0};t.widget("ui.dialog",{options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",collision:"fit",using:function(e){var i=t(this).css(e).offset().top;i<0&&t(this).css("top",e.top-i)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1e3},_create:function(){this.originalTitle=this.element.attr("title"),"string"!=typeof this.originalTitle&&(this.originalTitle=""),this.options.title=this.options.title||this.originalTitle;var e=this,s=e.options,n=s.title||" ",a=t.ui.dialog.getTitleId(e.element),r=(e.uiDialog=t("
    ")).appendTo(document.body).hide().addClass(i+s.dialogClass).css({zIndex:s.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){s.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===t.ui.keyCode.ESCAPE&&(e.close(i),i.preventDefault())}).attr({role:"dialog","aria-labelledby":a}).mousedown(function(t){e.moveToTop(!1,t)}),o=(e.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(r),(e.uiDialogTitlebar=t("
    ")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(r)),l=t('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){l.addClass("ui-state-hover")},function(){l.removeClass("ui-state-hover")}).focus(function(){l.addClass("ui-state-focus")}).blur(function(){l.removeClass("ui-state-focus")}).click(function(t){return e.close(t),!1}).appendTo(o);(e.uiDialogTitlebarCloseText=t("")).addClass("ui-icon ui-icon-closethick").text(s.closeText).appendTo(l),t("").addClass("ui-dialog-title").attr("id",a).html(n).prependTo(o),t.isFunction(s.beforeclose)&&!t.isFunction(s.beforeClose)&&(s.beforeClose=s.beforeclose),o.find("*").add(o).disableSelection(),s.draggable&&t.fn.draggable&&e._makeDraggable(),s.resizable&&t.fn.resizable&&e._makeResizable(),e._createButtons(s.buttons),e._isOpen=!1,t.fn.bgiframe&&r.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var t=this;return t.overlay&&t.overlay.destroy(),t.uiDialog.hide(),t.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),t.uiDialog.remove(),t.originalTitle&&t.element.attr("title",t.originalTitle),t},widget:function(){return this.uiDialog},close:function(e){var i,s,n=this;if(!1!==n._trigger("beforeClose",e))return n.overlay&&n.overlay.destroy(),n.uiDialog.unbind("keypress.ui-dialog"),n._isOpen=!1,n.options.hide?n.uiDialog.hide(n.options.hide,function(){n._trigger("close",e)}):(n.uiDialog.hide(),n._trigger("close",e)),t.ui.dialog.overlay.resize(),n.options.modal&&(i=0,t(".ui-dialog").each(function(){this!==n.uiDialog[0]&&(s=t(this).css("z-index"),isNaN(s)||(i=Math.max(i,s)))}),t.ui.dialog.maxZ=i),n},isOpen:function(){return this._isOpen},moveToTop:function(e,i){var s,n=this,a=n.options;return(!a.modal||e)&&(a.stack||a.modal)?(a.zIndex>t.ui.dialog.maxZ&&(t.ui.dialog.maxZ=a.zIndex),n.overlay&&(t.ui.dialog.maxZ+=1,n.overlay.$el.css("z-index",t.ui.dialog.overlay.maxZ=t.ui.dialog.maxZ)),s={scrollTop:n.element.scrollTop(),scrollLeft:n.element.scrollLeft()},t.ui.dialog.maxZ+=1,n.uiDialog.css("z-index",t.ui.dialog.maxZ),n.element.attr(s),n._trigger("focus",i),n):n._trigger("focus",i)},open:function(){if(!this._isOpen){var e=this,i=e.options,s=e.uiDialog;return e.overlay=i.modal?new t.ui.dialog.overlay(e):null,e._size(),e._position(i.position),s.show(i.show),e.moveToTop(!0),i.modal&&s.bind("keydown.ui-dialog",function(e){if(e.keyCode===t.ui.keyCode.TAB){var i=t(":tabbable",this),s=i.filter(":first"),n=i.filter(":last");if(e.target===n[0]&&!e.shiftKey)return s.focus(1),!1;if(e.target===s[0]&&e.shiftKey)return n.focus(1),!1}}),t(e.element.find(":tabbable").get().concat(s.find(".ui-dialog-buttonpane :tabbable").get().concat(s.get()))).eq(0).focus(),e._isOpen=!0,e._trigger("open"),e}},_createButtons:function(e){var i=this,s=!1,n=t("
    ").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),r=t("
    ").addClass("ui-dialog-buttonset").appendTo(n);i.uiDialog.find(".ui-dialog-buttonpane").remove(),"object"==typeof e&&null!==e&&t.each(e,function(){return s=!0,!1}),s&&(t.each(e,function(e,s){s=t.isFunction(s)?{click:s,text:e}:s;var n=t('').click(function(){s.click.apply(i.element[0],arguments)}).appendTo(r);t.each(s,function(t,e){"click"!==t&&(t in a?n[t](e):n.attr(t,e))}),t.fn.button&&n.button()}),n.appendTo(i.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i,s=this,n=s.options,a=t(document);s.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(a,r){i="auto"===n.height?"auto":t(this).height(),t(this).height(t(this).height()).addClass("ui-dialog-dragging"),s._trigger("dragStart",a,e(r))},drag:function(t,i){s._trigger("drag",t,e(i))},stop:function(r,o){n.position=[o.position.left-a.scrollLeft(),o.position.top-a.scrollTop()],t(this).removeClass("ui-dialog-dragging").height(i),s._trigger("dragStop",r,e(o)),t.ui.dialog.overlay.resize()}})},_makeResizable:function(e){function i(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}e=void 0===e?this.options.resizable:e;var s=this,n=s.options,a=s.uiDialog.css("position"),r="string"==typeof e?e:"n,e,s,w,se,sw,ne,nw";s.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:s.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:s._minHeight(),handles:r,start:function(e,n){t(this).addClass("ui-dialog-resizing"),s._trigger("resizeStart",e,i(n))},resize:function(t,e){s._trigger("resize",t,i(e))},stop:function(e,a){t(this).removeClass("ui-dialog-resizing"),n.height=t(this).height(),n.width=t(this).width(),s._trigger("resizeStop",e,i(a)),t.ui.dialog.overlay.resize()}}).css("position",a).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(e){var i,s=[],n=[0,0];e?(("string"==typeof e||"object"==typeof e&&"0"in e)&&(1===(s=e.split?e.split(" "):[e[0],e[1]]).length&&(s[1]=s[0]),t.each(["left","top"],function(t,e){+s[t]===s[t]&&(n[t]=s[t],s[t]=e)}),e={my:s.join(" "),at:s.join(" "),offset:n.join(" ")}),e=t.extend({},t.ui.dialog.prototype.options.position,e)):e=t.ui.dialog.prototype.options.position,(i=this.uiDialog.is(":visible"))||this.uiDialog.show(),this.uiDialog.css({top:0,left:0}).position(t.extend({of:window},e)),i||this.uiDialog.hide()},_setOptions:function(e){var i=this,a={},r=!1;t.each(e,function(t,e){i._setOption(t,e),t in s&&(r=!0),t in n&&(a[t]=e)}),r&&this._size(),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",a)},_setOption:function(e,s){var n=this,a=n.uiDialog;switch(e){case"beforeclose":e="beforeClose";break;case"buttons":n._createButtons(s);break;case"closeText":n.uiDialogTitlebarCloseText.text(""+s);break;case"dialogClass":a.removeClass(n.options.dialogClass).addClass(i+s);break;case"disabled":s?a.addClass("ui-dialog-disabled"):a.removeClass("ui-dialog-disabled");break;case"draggable":var r=a.is(":data(draggable)");r&&!s&&a.draggable("destroy"),!r&&s&&n._makeDraggable();break;case"position":n._position(s);break;case"resizable":var o=a.is(":data(resizable)");o&&!s&&a.resizable("destroy"),o&&"string"==typeof s&&a.resizable("option","handles",s),o||!1===s||n._makeResizable(s);break;case"title":t(".ui-dialog-title",n.uiDialogTitlebar).html(""+(s||" "))}t.Widget.prototype._setOption.apply(n,arguments)},_size:function(){var e,i,s=this.options,n=this.uiDialog.is(":visible");if(this.element.show().css({width:"auto",minHeight:0,height:0}),s.minWidth>s.width&&(s.width=s.minWidth),e=this.uiDialog.css({height:"auto",width:s.width}).height(),i=Math.max(0,s.minHeight-e),"auto"===s.height){if(t.support.minHeight)this.element.css({minHeight:i,height:"auto"});else{this.uiDialog.show();var a=this.element.css("height","auto").height();n||this.uiDialog.hide(),this.element.height(Math.max(a,i))}}else this.element.height(Math.max(s.height-e,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}}),t.extend(t.ui.dialog,{version:"1.8.22",uuid:0,maxZ:0,getTitleId:function(t){var e=t.attr("id");return e||(this.uuid+=1,e=this.uuid),"ui-dialog-title-"+e},overlay:function(e){this.$el=t.ui.dialog.overlay.create(e)}}),t.extend(t.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:t.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(t){return t+".dialog-overlay"}).join(" "),create:function(e){0===this.instances.length&&(setTimeout(function(){t.ui.dialog.overlay.instances.length&&t(document).bind(t.ui.dialog.overlay.events,function(e){if(t(e.target).zIndex()").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});return t.fn.bgiframe&&i.bgiframe(),this.instances.push(i),i},destroy:function(e){var i=t.inArray(e,this.instances);-1!=i&&this.oldInstances.push(this.instances.splice(i,1)[0]),0===this.instances.length&&t([document,window]).unbind(".dialog-overlay"),e.remove();var s=0;t.each(this.instances,function(){s=Math.max(s,this.css("z-index"))}),this.maxZ=s},height:function(){var e,i;return t.browser.msie&&t.browser.version<7?(e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight))<(i=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight))?t(window).height()+"px":e+"px":t(document).height()+"px"},width:function(){var e,i;return t.browser.msie?(e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth))<(i=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth))?t(window).width()+"px":e+"px":t(document).width()+"px"},resize:function(){var e=t([]);t.each(t.ui.dialog.overlay.instances,function(){e=e.add(this)}),e.css({width:0,height:0}).css({width:t.ui.dialog.overlay.width(),height:t.ui.dialog.overlay.height()})}}),t.extend(t.ui.dialog.overlay.prototype,{destroy:function(){t.ui.dialog.overlay.destroy(this.$el)}})}(jQuery),function(t,e){t.ui=t.ui||{};var i=/left|center|right/,s=/top|center|bottom/,n="center",a={},r=t.fn.position,o=t.fn.offset;t.fn.position=function(e){if(!e||!e.of)return r.apply(this,arguments);e=t.extend({},e);var o,l,h,c=t(e.of),d=c[0],u=(e.collision||"flip").split(" "),f=e.offset?e.offset.split(" "):[0,0];return 9===d.nodeType?(o=c.width(),l=c.height(),h={top:0,left:0}):d.setTimeout?(o=c.width(),l=c.height(),h={top:c.scrollTop(),left:c.scrollLeft()}):d.preventDefault?(e.at="left top",o=l=0,h={top:e.of.pageY,left:e.of.pageX}):(o=c.outerWidth(),l=c.outerHeight(),h=c.offset()),t.each(["my","at"],function(){var t=(e[this]||"").split(" ");1===t.length&&(t=i.test(t[0])?t.concat([n]):s.test(t[0])?[n].concat(t):[n,n]),t[0]=i.test(t[0])?t[0]:n,t[1]=s.test(t[1])?t[1]:n,e[this]=t}),1===u.length&&(u[1]=u[0]),f[0]=parseInt(f[0],10)||0,1===f.length&&(f[1]=f[0]),f[1]=parseInt(f[1],10)||0,"right"===e.at[0]?h.left+=o:e.at[0]===n&&(h.left+=o/2),"bottom"===e.at[1]?h.top+=l:e.at[1]===n&&(h.top+=l/2),h.left+=f[0],h.top+=f[1],this.each(function(){var i,s=t(this),r=s.outerWidth(),c=s.outerHeight(),d=parseInt(t.curCSS(this,"marginLeft",!0))||0,p=parseInt(t.curCSS(this,"marginTop",!0))||0,m=r+d+(parseInt(t.curCSS(this,"marginRight",!0))||0),g=c+p+(parseInt(t.curCSS(this,"marginBottom",!0))||0),v=t.extend({},h);"right"===e.my[0]?v.left-=r:e.my[0]===n&&(v.left-=r/2),"bottom"===e.my[1]?v.top-=c:e.my[1]===n&&(v.top-=c/2),a.fractions||(v.left=Math.round(v.left),v.top=Math.round(v.top)),i={left:v.left-d,top:v.top-p},t.each(["left","top"],function(s,n){t.ui.position[u[s]]&&t.ui.position[u[s]][n](v,{targetWidth:o,targetHeight:l,elemWidth:r,elemHeight:c,collisionPosition:i,collisionWidth:m,collisionHeight:g,offset:f,my:e.my,at:e.at})}),t.fn.bgiframe&&s.bgiframe(),s.offset(t.extend(v,{using:e.using}))})},t.ui.position={fit:{left:function(e,i){var s=t(window),n=i.collisionPosition.left+i.collisionWidth-s.width()-s.scrollLeft();e.left=n>0?e.left-n:Math.max(e.left-i.collisionPosition.left,e.left)},top:function(e,i){var s=t(window),n=i.collisionPosition.top+i.collisionHeight-s.height()-s.scrollTop();e.top=n>0?e.top-n:Math.max(e.top-i.collisionPosition.top,e.top)}},flip:{left:function(e,i){if(i.at[0]!==n){var s=t(window),a=i.collisionPosition.left+i.collisionWidth-s.width()-s.scrollLeft(),r="left"===i.my[0]?-i.elemWidth:"right"===i.my[0]?i.elemWidth:0,o="left"===i.at[0]?i.targetWidth:-i.targetWidth,l=-2*i.offset[0];e.left+=i.collisionPosition.left<0?r+o+l:a>0?r+o+l:0}},top:function(e,i){if(i.at[1]!==n){var s=t(window),a=i.collisionPosition.top+i.collisionHeight-s.height()-s.scrollTop(),r="top"===i.my[1]?-i.elemHeight:"bottom"===i.my[1]?i.elemHeight:0,o="top"===i.at[1]?i.targetHeight:-i.targetHeight,l=-2*i.offset[1];e.top+=i.collisionPosition.top<0?r+o+l:a>0?r+o+l:0}}}},t.offset.setOffset||(t.offset.setOffset=function(e,i){/static/.test(t.curCSS(e,"position"))&&(e.style.position="relative");var s=t(e),n=s.offset(),a=parseInt(t.curCSS(e,"top",!0),10)||0,r=parseInt(t.curCSS(e,"left",!0),10)||0,o={top:i.top-n.top+a,left:i.left-n.left+r};"using"in i?i.using.call(e,o):s.css(o)},t.fn.offset=function(e){var i=this[0];return i&&i.ownerDocument?e?t.isFunction(e)?this.each(function(i){t(this).offset(e.call(this,i,t(this).offset()))}):this.each(function(){t.offset.setOffset(this,e)}):o.call(this):null}),function(){var e,i,s,n,r,o=document.getElementsByTagName("body")[0],l=document.createElement("div");for(var h in e=document.createElement(o?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},o&&t.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"}),s)e.style[h]=s[h];e.appendChild(l),(i=o||document.documentElement).insertBefore(e,i.firstChild),l.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;",n=t(l).offset(function(t,e){return e}).offset(),e.innerHTML="",i.removeChild(e),r=n.top+n.left+(o?2e3:0),a.fractions=r>21&&r<22}()}(jQuery),function(t,e){t.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()}),this.valueDiv=t("
    ").appendTo(this.element),this.oldValue=this._value(),this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove(),t.Widget.prototype.destroy.apply(this,arguments)},value:function(t){return void 0===t?this._value():(this._setOption("value",t),this)},_setOption:function(e,i){"value"===e&&(this.options.value=i,this._refreshValue(),this._value()===this.options.max&&this._trigger("complete")),t.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var t=this.options.value;return"number"!=typeof t&&(t=0),Math.min(this.options.max,Math.max(this.min,t))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var t=this.value(),e=this._percentage();this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),this.valueDiv.toggle(t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(e.toFixed(0)+"%"),this.element.attr("aria-valuenow",t)}}),t.extend(t.ui.progressbar,{version:"1.8.22"})}(jQuery),function(t,e){var i=5;t.widget("ui.slider",t.ui.mouse,{widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var e=this,s=this.options,n=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),a="",r=s.values&&s.values.length||1,o=[];this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(s.disabled?" ui-slider-disabled ui-disabled":"")),this.range=t([]),s.range&&(!0===s.range&&(s.values||(s.values=[this._valueMin(),this._valueMin()]),s.values.length&&2!==s.values.length&&(s.values=[s.values[0],s.values[0]])),this.range=t("
    ").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===s.range||"max"===s.range?" ui-slider-range-"+s.range:"")));for(var l=n.length;li&&(n=i,a=t(this),o=e)}),!0===d.range&&this.values(1)===d.min&&(o+=1,a=t(this.handles[o])),!1!==(l=this._start(e,o))&&(this._mouseSliding=!0,r._handleIndex=o,a.addClass("ui-state-active").focus(),h=a.offset(),c=!t(e.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:e.pageX-h.left-a.width()/2,top:e.pageY-h.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,o,s),this._animateOff=!0,!0))},_mouseStart:function(t){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("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,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,s,n,a;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(s=i/e)>1&&(s=1),s<0&&(s=0),"vertical"===this.orientation&&(s=1-s),n=this._valueMax()-this._valueMin(),a=this._valueMin()+s*n,this._trimAlignValue(a)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var s,n,a;this.options.values&&this.options.values.length?(s=this.values(e?0:1),2===this.options.values.length&&!0===this.options.range&&(0===e&&i>s||1===e&&i1){this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),this._change(null,e);return}if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(s=this.options.values,n=arguments[0],a=0;a=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,s=t-i;return 2*Math.abs(i)>=e&&(s+=i>0?e:-e),parseFloat(s.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,s,n,a,r=this.options.range,o=this.options,l=this,h=!this._animateOff&&o.animate,c={};this.options.values&&this.options.values.length?this.handles.each(function(s,n){e=(l.values(s)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c["horizontal"===l.orientation?"left":"bottom"]=e+"%",t(this).stop(1,1)[h?"animate":"css"](c,o.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===s&&l.range.stop(1,1)[h?"animate":"css"]({left:e+"%"},o.animate),1===s&&l.range[h?"animate":"css"]({width:e-i+"%"},{queue:!1,duration:o.animate})):(0===s&&l.range.stop(1,1)[h?"animate":"css"]({bottom:e+"%"},o.animate),1===s&&l.range[h?"animate":"css"]({height:e-i+"%"},{queue:!1,duration:o.animate}))),i=e}):(s=this.value(),n=this._valueMin(),e=(a=this._valueMax())!==n?(s-n)/(a-n)*100:0,c["horizontal"===l.orientation?"left":"bottom"]=e+"%",this.handle.stop(1,1)[h?"animate":"css"](c,o.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({width:e+"%"},o.animate),"max"===r&&"horizontal"===this.orientation&&this.range[h?"animate":"css"]({width:100-e+"%"},{queue:!1,duration:o.animate}),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({height:e+"%"},o.animate),"max"===r&&"vertical"===this.orientation&&this.range[h?"animate":"css"]({height:100-e+"%"},{queue:!1,duration:o.animate}))}}),t.extend(t.ui.slider,{version:"1.8.22"})}(jQuery),function(t,e){function i(){return++n}function s(){return++a}var n=0,a=0;t.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:!1,cookie:null,collapsible:!1,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"
    ",remove:null,select:null,show:null,spinner:"Loading…",tabTemplate:"
  • #{label}
  • "},_create:function(){this._tabify(!0)},_setOption:function(t,e){"selected"==t?this.options.collapsible&&e==this.options.selected||this.select(e):(this.options[t]=e,this._tabify())},_tabId:function(t){return t.title&&t.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+i()},_sanitizeSelector:function(t){return t.replace(/:/g,"\\:")},_cookie:function(){var e=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+s());return t.cookie.apply(null,[e].concat(t.makeArray(arguments)))},_ui:function(t,e){return{tab:t,panel:e,index:this.anchors.index(t)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var e=t(this);e.html(e.data("label.tabs")).removeData("label.tabs")})},_tabify:function(i){function s(e,i){e.css("display",""),!t.support.opacity&&i.opacity&&e[0].style.removeAttribute("filter")}var n,a,r=this,o=this.options,l=/^#.+/;this.list=this.element.find("ol,ul").eq(0),this.lis=t(" > li:has(a[href])",this.list),this.anchors=this.lis.map(function(){return t("a",this)[0]}),this.panels=t([]),this.anchors.each(function(e,i){var s,n=t(i).attr("href"),a=n.split("#")[0];if(a&&(a===location.toString().split("#")[0]||(s=t("base")[0])&&a===s.href)&&(n=i.hash,i.href=n),l.test(n))r.panels=r.panels.add(r.element.find(r._sanitizeSelector(n)));else if(n&&"#"!==n){t.data(i,"href.tabs",n),t.data(i,"load.tabs",n.replace(/#.*$/,""));var h=r._tabId(i);i.href="#"+h;var c=r.element.find("#"+h);c.length||(c=t(o.panelTemplate).attr("id",h).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(r.panels[e-1]||r.list)).data("destroy.tabs",!0),r.panels=r.panels.add(c)}else o.disabled.push(e)}),i?(this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"),this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.lis.addClass("ui-state-default ui-corner-top"),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom"),o.selected===e?(location.hash&&this.anchors.each(function(t,e){if(e.hash==location.hash)return o.selected=t,!1}),"number"!=typeof o.selected&&o.cookie&&(o.selected=parseInt(r._cookie(),10)),"number"!=typeof o.selected&&this.lis.filter(".ui-tabs-selected").length&&(o.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))),o.selected=o.selected||(this.lis.length?0:-1)):null===o.selected&&(o.selected=-1),o.selected=o.selected>=0&&this.anchors[o.selected]||o.selected<0?o.selected:0,o.disabled=t.unique(o.disabled.concat(t.map(this.lis.filter(".ui-state-disabled"),function(t,e){return r.lis.index(t)}))).sort(),-1!=t.inArray(o.selected,o.disabled)&&o.disabled.splice(t.inArray(o.selected,o.disabled),1),this.panels.addClass("ui-tabs-hide"),this.lis.removeClass("ui-tabs-selected ui-state-active"),o.selected>=0&&this.anchors.length&&(r.element.find(r._sanitizeSelector(r.anchors[o.selected].hash)).removeClass("ui-tabs-hide"),this.lis.eq(o.selected).addClass("ui-tabs-selected ui-state-active"),r.element.queue("tabs",function(){r._trigger("show",null,r._ui(r.anchors[o.selected],r.element.find(r._sanitizeSelector(r.anchors[o.selected].hash))[0]))}),this.load(o.selected)),t(window).bind("unload",function(){r.lis.add(r.anchors).unbind(".tabs"),r.lis=r.anchors=r.panels=null})):o.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")),this.element[o.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible"),o.cookie&&this._cookie(o.selected,o.cookie);for(var h,c=0;h=this.lis[c];c++)t(h)[-1==t.inArray(c,o.disabled)||t(h).hasClass("ui-tabs-selected")?"removeClass":"addClass"]("ui-state-disabled");if(!1===o.cache&&this.anchors.removeData("cache.tabs"),this.lis.add(this.anchors).unbind(".tabs"),"mouseover"!==o.event){var d=function(t,e){e.is(":not(.ui-state-disabled)")&&e.addClass("ui-state-"+t)},u=function(t,e){e.removeClass("ui-state-"+t)};this.lis.bind("mouseover.tabs",function(){d("hover",t(this))}),this.lis.bind("mouseout.tabs",function(){u("hover",t(this))}),this.anchors.bind("focus.tabs",function(){d("focus",t(this).closest("li"))}),this.anchors.bind("blur.tabs",function(){u("focus",t(this).closest("li"))})}o.fx&&(t.isArray(o.fx)?(n=o.fx[0],a=o.fx[1]):n=a=o.fx);var f=a?function(e,i){t(e).closest("li").addClass("ui-tabs-selected ui-state-active"),i.hide().removeClass("ui-tabs-hide").animate(a,a.duration||"normal",function(){s(i,a),r._trigger("show",null,r._ui(e,i[0]))})}:function(e,i){t(e).closest("li").addClass("ui-tabs-selected ui-state-active"),i.removeClass("ui-tabs-hide"),r._trigger("show",null,r._ui(e,i[0]))},p=n?function(t,e){e.animate(n,n.duration||"normal",function(){r.lis.removeClass("ui-tabs-selected ui-state-active"),e.addClass("ui-tabs-hide"),s(e,n),r.element.dequeue("tabs")})}:function(t,e,i){r.lis.removeClass("ui-tabs-selected ui-state-active"),e.addClass("ui-tabs-hide"),r.element.dequeue("tabs")};this.anchors.bind(o.event+".tabs",function(){var e=this,i=t(e).closest("li"),s=r.panels.filter(":not(.ui-tabs-hide)"),n=r.element.find(r._sanitizeSelector(e.hash));if(i.hasClass("ui-tabs-selected")&&!o.collapsible||i.hasClass("ui-state-disabled")||i.hasClass("ui-state-processing")||r.panels.filter(":animated").length||!1===r._trigger("select",null,r._ui(this,n[0])))return this.blur(),!1;if(o.selected=r.anchors.index(this),r.abort(),o.collapsible){if(i.hasClass("ui-tabs-selected"))return o.selected=-1,o.cookie&&r._cookie(o.selected,o.cookie),r.element.queue("tabs",function(){p(e,s)}).dequeue("tabs"),this.blur(),!1;if(!s.length)return o.cookie&&r._cookie(o.selected,o.cookie),r.element.queue("tabs",function(){f(e,n)}),r.load(r.anchors.index(this)),this.blur(),!1}if(o.cookie&&r._cookie(o.selected,o.cookie),n.length)s.length&&r.element.queue("tabs",function(){p(e,s)}),r.element.queue("tabs",function(){f(e,n)}),r.load(r.anchors.index(this));else throw"jQuery UI Tabs: Mismatching fragment identifier.";t.browser.msie&&this.blur()}),this.anchors.bind("click.tabs",function(){return!1})},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},destroy:function(){var e=this.options;return this.abort(),this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs"),this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.anchors.each(function(){var e=t.data(this,"href.tabs");e&&(this.href=e);var i=t(this).unbind(".tabs");t.each(["href","load","cache"],function(t,e){i.removeData(e+".tabs")})}),this.lis.unbind(".tabs").add(this.panels).each(function(){t.data(this,"destroy.tabs")?t(this).remove():t(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")}),e.cookie&&this._cookie(null,e.cookie),this},add:function(i,s,n){n===e&&(n=this.anchors.length);var a=this,r=this.options,o=t(r.tabTemplate.replace(/#\{href\}/g,i).replace(/#\{label\}/g,s)),l=i.indexOf("#")?this._tabId(t("a",o)[0]):i.replace("#","");o.addClass("ui-state-default ui-corner-top").data("destroy.tabs",!0);var h=a.element.find("#"+l);return h.length||(h=t(r.panelTemplate).attr("id",l).data("destroy.tabs",!0)),h.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"),n>=this.lis.length?(o.appendTo(this.list),h.appendTo(this.list[0].parentNode)):(o.insertBefore(this.lis[n]),h.insertBefore(this.panels[n])),r.disabled=t.map(r.disabled,function(t,e){return t>=n?++t:t}),this._tabify(),1==this.anchors.length&&(r.selected=0,o.addClass("ui-tabs-selected ui-state-active"),h.removeClass("ui-tabs-hide"),this.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[0],a.panels[0]))}),this.load(0)),this._trigger("add",null,this._ui(this.anchors[n],this.panels[n])),this},remove:function(e){e=this._getIndex(e);var i=this.options,s=this.lis.eq(e).remove(),n=this.panels.eq(e).remove();return s.hasClass("ui-tabs-selected")&&this.anchors.length>1&&this.select(e+(e+1=e?--t:t}),this._tabify(),this._trigger("remove",null,this._ui(s.find("a")[0],n[0])),this},enable:function(e){e=this._getIndex(e);var i=this.options;if(-1!=t.inArray(e,i.disabled))return this.lis.eq(e).removeClass("ui-state-disabled"),i.disabled=t.grep(i.disabled,function(t,i){return t!=e}),this._trigger("enable",null,this._ui(this.anchors[e],this.panels[e])),this},disable:function(t){t=this._getIndex(t);var e=this.options;return t!=e.selected&&(this.lis.eq(t).addClass("ui-state-disabled"),e.disabled.push(t),e.disabled.sort(),this._trigger("disable",null,this._ui(this.anchors[t],this.panels[t]))),this},select:function(t){if(-1==(t=this._getIndex(t))){if(!this.options.collapsible||-1==this.options.selected)return this;t=this.options.selected}return this.anchors.eq(t).trigger(this.options.event+".tabs"),this},load:function(e){e=this._getIndex(e);var i=this,s=this.options,n=this.anchors.eq(e)[0],a=t.data(n,"load.tabs");if(this.abort(),!a||0!==this.element.queue("tabs").length&&t.data(n,"cache.tabs")){this.element.dequeue("tabs");return}if(this.lis.eq(e).addClass("ui-state-processing"),s.spinner){var r=t("span",n);r.data("label.tabs",r.html()).html(s.spinner)}return this.xhr=t.ajax(t.extend({},s.ajaxOptions,{url:a,success:function(a,r){i.element.find(i._sanitizeSelector(n.hash)).html(a),i._cleanup(),s.cache&&t.data(n,"cache.tabs",!0),i._trigger("load",null,i._ui(i.anchors[e],i.panels[e]));try{s.ajaxOptions.success(a,r)}catch(o){}},error:function(t,a,r){i._cleanup(),i._trigger("load",null,i._ui(i.anchors[e],i.panels[e]));try{s.ajaxOptions.error(t,a,e,n)}catch(o){}}})),i.element.dequeue("tabs"),this},abort:function(){return this.element.queue([]),this.panels.stop(!1,!0),this.element.queue("tabs",this.element.queue("tabs").splice(-2,2)),this.xhr&&(this.xhr.abort(),delete this.xhr),this._cleanup(),this},url:function(t,e){return this.anchors.eq(t).removeData("cache.tabs").data("load.tabs",e),this},length:function(){return this.anchors.length}}),t.extend(t.ui.tabs,{version:"1.8.22"}),t.extend(t.ui.tabs.prototype,{rotation:null,rotate:function(t,e){var i=this,s=this.options,n=i._rotate||(i._rotate=function(e){clearTimeout(i.rotation),i.rotation=setTimeout(function(){var t=s.selected;i.select(++t=0)throw Error('[_fastForward]: Recursion detected on step "'+h+'"');l.push(o),o===r._lastStepIndex||(s?++a:o)===i?n.call(r,o,l):e()})}()},_find:function(e,i,s){var n,a,o,l,h,c=[],d=i instanceof jQuery?i:t(i);function m(t,e){if(e===l)return n=e,!1}if(null!==e&&d.length)for(a=0,o=(e=r(e)).length;a0?o._fastForward(i,n,h):r.call(o,l.stepsActivated[Math.max(0,i+(l.stepsActivated.length-1))]):-1!==(i=o.stepIndex(i,s))&&(i>l.stepIndex?o._fastForward(i,h):h.call(o,i))},_state:function(e,i){if(!this.isValidStepIndex(e))return null;this.options;var n=t.extend(!0,{},this._currentState);i=r(i||e),n.step=this.elements.steps.eq(e),n.branch=n.step.parent(),n.branchStepCount=n.branch.children(s.step).length,n.isMovingForward=e>n.stepIndex,n.stepIndexInBranch=n.branch.children(s.step).index(n.step);for(var a,o,l,h=0,c=i.length;ht.inArray(e,n.stepsActivated)&&(n.stepsActivated.push(e),0>t.inArray(a,n.branchesActivated)&&n.branchesActivated.push(a)):n.stepIndex>e&&(o=t.inArray(a,n.branchesActivated)+1,l=t.inArray(e,n.stepsActivated)+1,o>0&&n.branchesActivated.splice(o,n.branchesActivated.length-1),l>0&&n.stepsActivated.splice(l,n.stepsActivated.length-1)),n.stepIndex=e,n.branchLabel=a;return n.stepsComplete=Math.max(0,this._find(n.stepsActivated,this.elements.steps).filter(this._excludesFilter).length-1),n.stepsPossible=Math.max(0,this._find(n.branchesActivated,this.elements.branches).children(s.step).filter(this._excludesFilter).length-1),t.extend(n,{branchLabel:this._branchLabels[e],isFirstStep:0===e,isFirstStepInBranch:0===n.stepIndexInBranch,isLastStep:e===this._lastStepIndex,isLastStepInBranch:n.stepIndexInBranch===n.branchStepCount-1,percentComplete:100*n.stepsComplete/n.stepsPossible,stepsRemaining:n.stepsPossible-n.stepsComplete}),n},_transition:function(i,s,n){var o=this;t.isFunction(i)?(n=i,i=o._currentState.stepIndex,s=e):t.isFunction(s)&&(n=s,s=e);var l,h=o.options,c=o.step(i,s),u=c.attr(h.stateAttribute),f=u?h.transitions[u]:h.transitions[d];return e!==(l=t.isFunction(f)?f.call(o,c,function(){return n.apply(o,a.call(arguments))}):u)&&!1!==l&&n.apply(o,r(l)),l},_update:function(e,i){var s=this._currentState,n=this.options;if(s.step){if(n.disabled||!i||i.stepIndex===s.stepIndex||!this._trigger(k,e,i)||i.isMovingForward&&!this._trigger(_,e,i)||!i.isMovingForward&&!this._trigger(y,e,i))return;s.step.removeClass(n.stepClasses.current).animate(n.animations.hide.properties,t.extend({},n.animations.hide.options))}this._currentState=i,i.step.addClass(n.stepClasses.current).animate(n.animations.show.properties,t.extend({},n.animations.show.options)),i.isFirstStep||n.unidirectional||i.step.hasClass(n.stepClasses.unidirectional)?this.elements.backward.attr(h,!0):this.elements.backward.removeAttr(h),i.isLastStepInBranch&&!i.step.attr(n.stateAttribute)||i.step.hasClass(n.stepClasses.stop)?this.elements.forward.attr(h,!0):this.elements.forward.removeAttr(h),n.enableSubmit||i.step.hasClass(n.stepClasses.submit)?this.elements.submit.removeAttr(h):this.elements.submit.attr(h,!0),s.step&&(this._trigger(b,e,i),this._trigger(i.isMovingForward?$:g,e,i))},backward:function(t,i){typeof t===u&&(i=t,t=e),i===e&&(i=1),!this._currentState.isFirstStep&&typeof i===u&&this._move(-i,!0,!1,function(e,i){this._update(t,this._state(e,i))})},branch:function(t){return arguments.length?this._find(t,this.elements.branches):this._currentState.branch},branches:function(t){return arguments.length?this.branch(t).children(s.branch):this.elements.branches},branchesActivated:function(){return this._find(this._currentState.branchesActivated,this.elements.branches)},destroy:function(){var e=this.elements;this._trigger(w,null,this.state())&&(this.element.removeClass(c),e.form.removeClass(n.form),e.header.removeClass(n.header),e.steps.show().removeClass(n.step),e.stepsWrapper.removeClass(n.wrapper),e.branches.removeClass(n.branch),t.Widget.prototype.destroy.call(this),this._trigger(v))},form:function(){return this.elements.form},forward:function(t,i,s){typeof t===u&&(s=i,i=t,t=e),i===e&&(i=1),!this._currentState.isLastStep&&typeof i===u&&this._move(i,!0,s,function(e,i){this._update(t,this._state(e,i))})},isValidStep:function(t,e){return this.isValidStepIndex(this.stepIndex(t,e))},isValidStepIndex:function(t){return typeof t===u&&t>=0&&t<=this._lastStepIndex},stepCount:function(){return this._stepCount},select:function(i,s,n,a,r){i instanceof t.Event||(r=a,a=n,n=s,s=i,i=e),s!==e&&(t.isArray(s)?(r=a,a=n,n=s[1],s=s[0]):typeof n===m?(r=a,a=n,n=e):t.isArray(n)&&(r=n,n=e),this._move(s,n,a,r,function(t,e){this._update(i,this._state(t,e))}))},state:function(i,s,n){return arguments.length?(t.isArray(i)?(n=s,s=i[1],i=i[0]):t.isArray(s)&&(n=s,s=e),this._state(this.stepIndex(i,s),n)):this._currentState},step:function(i,s){var a;return arguments.length?(t.isArray(i)&&(s=i[1],i=i[0]),typeof i===u?a=this._find(i,s!==e?this.steps(s):this.elements.steps):(a=this._find(i,this.elements.steps.add(this.elements.branches)))&&a.hasClass(n.branch)&&(a=this._find(s||0,this.steps(a))),a):this._currentState.step},stepIndex:function(i,n,a){var r;return arguments.length?(t.isArray(i)?(a=n,n=i[1],i=i[0]):typeof n===m&&(a=n,n=e),(r=this.step(i,n))?(a?r.siblings(s.step).andSelf():this.elements.steps).index(r):-1):this._currentState.stepIndex},steps:function(t){return arguments.length?this.branch(t).children(s.step):this.elements.steps},stepsActivated:function(){return this._find(this._currentState.stepsActivated,this.elements.steps)},submit:function(){this.elements.form.submit()}})}(jQuery),function(t){t.extend(t.fn,{validate:function(e){if(!this.length){e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.");return}var i=t.data(this[0],"validator");return i||(this.attr("novalidate","novalidate"),i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(e){i.settings.submitHandler&&(i.submitButton=e.target),t(e.target).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==t(e.target).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.submit(function(e){function s(){var s;return!i.settings.submitHandler||(i.submitButton&&(s=t("").attr("name",i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)),i.settings.submitHandler.call(i,i.currentForm,e),i.submitButton&&s.remove(),!1)}return(i.settings.debug&&e.preventDefault(),i.cancelSubmit)?(i.cancelSubmit=!1,s()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):s():(i.focusInvalid(),!1)}))),i},valid:function(){if(t(this[0]).is("form"))return this.validate().form();var e=!0,i=t(this[0].form).validate();return this.each(function(){e=e&&i.element(this)}),e},removeAttrs:function(e){var i={},s=this;return t.each(e.split(/\s/),function(t,e){i[e]=s.attr(e),s.removeAttr(e)}),i},rules:function(e,i){var s=this[0];if(e){var n=t.data(s.form,"validator").settings,a=n.rules,r=t.validator.staticRules(s);switch(e){case"add":t.extend(r,t.validator.normalizeRule(i)),delete r.messages,a[s.name]=r,i.messages&&(n.messages[s.name]=t.extend(n.messages[s.name],i.messages));break;case"remove":if(!i)return delete a[s.name],r;var o={};return t.each(i.split(/\s/),function(t,e){o[e]=r[e],delete r[e]}),o}}var l=t.validator.normalizeRules(t.extend({},t.validator.classRules(s),t.validator.attributeRules(s),t.validator.dataRules(s),t.validator.staticRules(s)),s);if(l.required){var h=l.required;delete l.required,l=t.extend({required:h},l)}return l}}),t.extend(t.expr[":"],{blank:function(e){return!t.trim(""+t(e).val())},filled:function(e){return!!t.trim(""+t(e).val())},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1===arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,function(t,i){e=e.replace(RegExp("\\{"+t+"\\}","g"),function(){return i})}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"span",focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t,e){this.lastActive=t,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(t)).hide())},onfocusout:function(t,e){!this.checkable(t)&&(t.name in this.submitted||!this.optional(t))&&this.element(t)},onkeyup:function(t,e){(9!==e.which||""!==this.elementValue(t))&&(t.name in this.submitted||t===this.lastElement)&&this.element(t)},onclick:function(t,e){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(s):t(e).addClass(i).removeClass(s)},unhighlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(s):t(e).removeClass(i).addClass(s)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"Required",remote:"Please fix this field.",email:"Wrong email.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var e=this.groups={};t.each(this.settings.groups,function(i,s){"string"==typeof s&&(s=s.split(/\s/)),t.each(s,function(t,s){e[s]=i})});var i=this.settings.rules;function s(e){var i=t.data(this[0].form,"validator"),s="on"+e.type.replace(/^validate/,"");i&&i.settings[s]&&i.settings[s].call(i,this[0],e)}t.each(i,function(e,s){i[e]=t.validator.normalizeRule(s)}),t(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",s).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",s),this.settings.invalidHandler&&t(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){e=this.validationTargetFor(this.clean(e)),this.lastElement=e,this.prepareElement(e),this.currentElements=t(e);var i=!1!==this.check(e);return i?delete this.invalid[e.name]:this.invalid[e.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(e){if(e){for(var i in t.extend(this.errorMap,e),this.errorList=[],e)this.errorList.push({message:e[i],element:this.findByName(i)[0]});this.successList=t.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e=0;for(var i in t)e++;return e},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,i={};return t(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),!(this.name in i)&&!!e.objectLength(t(this).rules())&&(i[this.name]=!0,!0)})},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.replace(" ",".");return t(this.settings.errorElement+"."+e,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([]),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var i=t(e).attr("type"),s=t(e).val();return"radio"===i||"checkbox"===i?t("input[name='"+t(e).attr("name")+"']:checked").val():"string"==typeof s?s.replace(/\r/g,""):s},check:function(e){e=this.validationTargetFor(this.clean(e));var i,s=t(e).rules(),n=!1,a=this.elementValue(e);for(var r in s){var o={method:r,parameters:s[r]};try{if(i=t.validator.methods[r].call(this,a,e,o.parameters),"dependency-mismatch"===i){n=!0;continue}if(n=!1,"pending"===i){this.toHide=this.toHide.not(this.errorsFor(e));return}if(!i)return this.formatAndAdd(e,o),!1}catch(l){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+o.method+"' method.",l),l}}if(!n)return this.objectLength(s)&&this.successList.push(e),!0},customDataMessage:function(e,i){return t(e).data("msg-"+i.toLowerCase())||e.attributes&&t(e).attr("data-msg-"+i.toLowerCase())},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor===String?i:i[e])},findDefined:function(){for(var t=0;tWarning: No message defined for "+e.name+"")},formatAndAdd:function(e,i){var s=this.defaultMessage(e,i.method),n=/\$?\{(\d+)\}/g;"function"==typeof s?s=s.call(this,i.parameters,e):n.test(s)&&(s=t.validator.format(s.replace(n,"{$1}"),i.parameters)),this.errorList.push({message:s,element:e}),this.errorMap[e.name]=s,this.submitted[e.name]=s},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e;for(t=0;this.errorList[t];t++){var i=this.errorList[t];this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map(function(){return this.element})},showLabel:function(e,i){var s=this.errorsFor(e);s.length?(s.removeClass(this.settings.validClass).addClass(this.settings.errorClass),s.html(i)):(s=t("<"+this.settings.errorElement+">").attr("for",this.idOrName(e)).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(s=s.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(s).length||(this.settings.errorPlacement?this.settings.errorPlacement(s,t(e)):s.insertAfter(e))),!i&&this.settings.success&&(s.text(""),"string"==typeof this.settings.success?s.addClass(this.settings.success):this.settings.success(s,e)),this.toShow=this.toShow.add(s)},errorsFor:function(e){var i=this.idOrName(e);return this.errors().filter(function(){return t(this).attr("for")===i})},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name).not(this.settings.ignore)[0]),t},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+e+"']")},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":return t("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return e.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{boolean:function(t,e){return t},string:function(e,i){return!!t(e,i.form).length},function:function(t,e){return t(e)}},optional:function(e){var i=this.elementValue(e);return!t.validator.methods.required.call(this,i,e)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,this.pending[t.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e){return t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor===String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){var i={},s=t(e).attr("class");return s&&t.each(s.split(" "),function(){this in t.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])}),i},attributeRules:function(e){var i,s={},n=t(e),a=n[0].getAttribute("type");for(var r in t.validator.methods)"required"===r?(""===(i=n.get(0).getAttribute(r))&&(i=!0),i=!!i):i=n.attr(r),/min|max/.test(r)&&(null===a||/number|range|text/.test(a))&&(i=Number(i)),i?s[r]=i:a===r&&"range"!==a&&(s[r]=!0);return s.maxlength&&/-1|2147483647|524288/.test(s.maxlength)&&delete s.maxlength,s},dataRules:function(e){var i,s,n={},a=t(e);for(i in t.validator.methods)void 0!==(s=a.data("rule-"+i.toLowerCase()))&&(n[i]=s);return n},staticRules:function(e){var i={},s=t.data(e.form,"validator");return s.settings.rules&&(i=t.validator.normalizeRule(s.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){return t.each(e,function(s,n){if(!1===n){delete e[s];return}if(n.param||n.depends){var a=!0;switch(typeof n.depends){case"string":a=!!t(n.depends,i.form).length;break;case"function":a=n.depends.call(i,i)}a?e[s]=void 0===n.param||n.param:delete e[s]}}),t.each(e,function(s,n){e[s]=t.isFunction(n)?n(i):n}),t.each(["minlength","maxlength"],function(){e[this]&&(e[this]=Number(e[this]))}),t.each(["rangelength","range"],function(){var i;e[this]&&(t.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(i=e[this].split(/[\s,]+/),e[this]=[Number(i[0]),Number(i[1])]))}),t.validator.autoCreateRanges&&(e.min&&e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),e.minlength&&e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var i={};t.each(e.split(/\s/),function(){i[this]=!0}),e=i}return e},addMethod:function(e,i,s){t.validator.methods[e]=i,t.validator.messages[e]=void 0!==s?s:t.validator.messages[e],i.length<3&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,s){if(!this.depend(s,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var n=t(i).val();return n&&n.length>0}return this.checkable(i)?this.getLength(e,i)>0:t.trim(e).length>0},email:function(t,e){return this.optional(e)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(t)},url:function(t,e){return this.optional(e)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(new Date(t).toString())},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(t)},number:function(t,e){return this.optional(e)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},creditcard:function(t,e){if(this.optional(e))return"dependency-mismatch";if(/[^0-9 \-]+/.test(t))return!1;var i=0,s=0,n=!1;t=t.replace(/\D/g,"");for(var a=t.length-1;a>=0;a--)s=parseInt(t.charAt(a),10),n&&(s*=2)>9&&(s-=9),i+=s,n=!n;return i%10==0},minlength:function(e,i,s){var n=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||n>=s},maxlength:function(e,i,s){var n=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||n<=s},rangelength:function(e,i,s){var n=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||n>=s[0]&&n<=s[1]},min:function(t,e,i){return this.optional(e)||t>=i},max:function(t,e,i){return this.optional(e)||t<=i},range:function(t,e,i){return this.optional(e)||t>=i[0]&&t<=i[1]},equalTo:function(e,i,s){var n=t(s);return this.settings.onfocusout&&n.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){t(i).valid()}),e===n.val()},remote:function(e,i,s){if(this.optional(i))return"dependency-mismatch";var n=this.previousValue(i);if(this.settings.messages[i.name]||(this.settings.messages[i.name]={}),n.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=n.message,s="string"==typeof s&&{url:s}||s,n.old===e)return n.valid;n.old=e;var a=this;this.startRequest(i);var r={};return r[i.name]=e,t.ajax(t.extend(!0,{url:s,mode:"abort",port:"validate"+i.name,dataType:"json",data:r,success:function(s){a.settings.messages[i.name].remote=n.originalMessage;var r=!0===s||"true"===s;if(r){var o=a.formSubmitted;a.prepareElement(i),a.formSubmitted=o,a.successList.push(i),delete a.invalid[i.name],a.showErrors()}else{var l={},h=s||a.defaultMessage(i,"remote");l[i.name]=n.message=t.isFunction(h)?h(e):h,a.invalid[i.name]=!0,a.showErrors(l)}n.valid=r,a.stopRequest(i,r)}},s)),"pending"}}}),t.format=t.validator.format}(jQuery),function(t){var e={};if(t.ajaxPrefilter)t.ajaxPrefilter(function(t,i,s){var n=t.port;"abort"===t.mode&&(e[n]&&e[n].abort(),e[n]=s)});else{var i=t.ajax;t.ajax=function(s){var n=("mode"in s?s:t.ajaxSettings).mode,a=("port"in s?s:t.ajaxSettings).port;return"abort"===n?(e[a]&&e[a].abort(),e[a]=i.apply(this,arguments),e[a]):i.apply(this,arguments)}}}(jQuery),function(t){t.extend(t.fn,{validateDelegate:function(e,i,s){return this.bind(i,function(i){var n=t(i.target);if(n.is(e))return s.apply(n,arguments)})}})}(jQuery),function(t){t.fn.niceSelect=function(e){if("string"==typeof e)return"update"==e?this.each(function(){var e=t(this),s=t(this).next(".nice-select"),n=s.hasClass("open");s.length&&(s.remove(),i(e),n&&e.next().trigger("click"))}):"destroy"==e?(this.each(function(){var e=t(this),i=t(this).next(".nice-select");i.length&&(i.remove(),e.css("display",""))}),0==t(".nice-select").length&&t(document).off(".nice_select")):console.log('Method "'+e+'" does not exist.'),this;function i(e){e.after(t("
    ").addClass("nice-select").addClass(e.attr("class")||"").addClass(e.attr("disabled")?"disabled":"").attr("tabindex",e.attr("disabled")?null:"0").html('
      '));var i=e.next(),s=e.find("option"),n=e.find("option:selected");i.find(".current").html(n.data("display")||n.text()),s.each(function(e){var s=t(this),n=s.data("display");i.find("ul").append(t("
    • ").attr("data-value",s.val()).attr("data-display",n||null).addClass("option"+(s.is(":selected")?" selected":"")+(s.is(":disabled")?" disabled":"")).html(s.text()))})}this.hide(),this.each(function(){var e=t(this);e.next().hasClass("nice-select")||i(e)}),t(document).off(".nice_select"),t(document).on("click.nice_select",".nice-select",function(e){var i=t(this);t(".nice-select").not(i).removeClass("open"),i.toggleClass("open"),i.hasClass("open")?(i.find(".option"),i.find(".focus").removeClass("focus"),i.find(".selected").addClass("focus")):i.focus()}),t(document).on("click.nice_select",function(e){0===t(e.target).closest(".nice-select").length&&t(".nice-select").removeClass("open").find(".option")}),t(document).on("click.nice_select",".nice-select .option:not(.disabled)",function(e){var i=t(this),s=i.closest(".nice-select");s.find(".selected").removeClass("selected"),i.addClass("selected");var n=i.data("display")||i.text();s.find(".current").text(n),s.prev("select").val(i.data("value")).trigger("change")}),t(document).on("keydown.nice_select",".nice-select",function(e){var i=t(this),s=t(i.find(".focus")||i.find(".list .option.selected"));if(32==e.keyCode||13==e.keyCode)return i.hasClass("open")?s.trigger("click"):i.trigger("click"),!1;if(40==e.keyCode){if(i.hasClass("open")){var n=s.nextAll(".option:not(.disabled)").first();n.length>0&&(i.find(".focus").removeClass("focus"),n.addClass("focus"))}else i.trigger("click");return!1}if(38==e.keyCode){if(i.hasClass("open")){var a=s.prevAll(".option:not(.disabled)").first();a.length>0&&(i.find(".focus").removeClass("focus"),a.addClass("focus"))}else i.trigger("click");return!1}if(27==e.keyCode)i.hasClass("open")&&i.trigger("click");else if(9==e.keyCode&&i.hasClass("open"))return!1});var s=document.createElement("a").style;return s.cssText="pointer-events:auto","auto"!==s.pointerEvents&&t("html").addClass("no-csspointerevents"),this}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t,e){var i="plugin_hideShowPassword",s=["show","innerToggle"],n=32,a=13,r={show:"infer",innerToggle:!1,enable:function(){var t=document.body,e=document.createElement("input"),i=!0;t||(t=document.createElement("body")),e=t.appendChild(e);try{e.setAttribute("type","text")}catch(s){i=!1}return t.removeChild(e),i}(),triggerOnToggle:!1,className:"hideShowPassword-field",initEvent:"hideShowPasswordInit",changeEvent:"passwordVisibilityChange",props:{autocapitalize:"off",autocomplete:"off",autocorrect:"off",spellcheck:"false"},toggle:{element:'