PageSourceSearch

https://www.rentalsatthebeach.com/sites/default/files/advagg_js/js…KZfAu9p3CpWNrEh_86BMXSAC6yn0IR_YdZ0x7nsg.js

js rentalsatthebeach.com collected 2026-09-25 23:35:44 UTC 560,334 bytes, 754 lines download raw bytes

vendor: 93,577 bytes, lines 1-2
1/*! jQuery v1.8.3 jquery.com | jquery.org/license */
2(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,r,!n);t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e))return;var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r<i;r++)v.event.add(t,n,u[n][r])}o.data&&(o.data=v.extend({},o.data))}function Ot(e,t){var n;if(t.nodeType!==1)return;t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase(),n==="object"?(t.parentNode&&(t.outerHTML=e.outerHTML),v.support.html5Clone&&e.innerHTML&&!v.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):n==="input"&&Et.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):n==="option"?t.selected=e.defaultSelected:n==="input"||n==="textarea"?t.defaultValue=e.defaultValue:n==="script"&&t.text!==e.text&&(t.text=e.text),t.removeAttribute(v.expando)}function Mt(e){return typeof e.getElementsByTagName!="undefined"?e.getElementsByTagName("*"):typeof e.querySelectorAll!="undefined"?e.querySelectorAll("*"):[]}function _t(e){Et.test(e.type)&&(e.defaultChecked=e.checked)}function Qt(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Jt.length;while(i--){t=Jt[i]+n;if(t in e)return t}return r}function Gt(e,t){return e=t||e,v.css(e,"display")==="none"||!v.contains(e.ownerDocument,e)}function Yt(e,t){var n,r,i=[],s=0,o=e.length;for(;s<o;s++){n=e[s];if(!n.style)continue;i[s]=v._data(n,"olddisplay"),t?(!i[s]&&n.style.display==="none"&&(n.style.display=""),n.style.display===""&&Gt(n)&&(i[s]=v._data(n,"olddisplay",nn(n.nodeName)))):(r=Dt(n,"display"),!i[s]&&r!=="none"&&v._data(n,"olddisplay",r))}for(s=0;s<o;s++){n=e[s];if(!n.style)continue;if(!t||n.style.display==="none"||n.style.display==="")n.style.display=t?i[s]||"":"none"}return e}function Zt(e,t,n){var r=Rt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function en(e,t,n,r){var i=n===(r?"border":"content")?4:t==="width"?1:0,s=0;for(;i<4;i+=2)n==="margin"&&(s+=v.css(e,n+$t[i],!0)),r?(n==="content"&&(s-=parseFloat(Dt(e,"padding"+$t[i]))||0),n!=="margin"&&(s-=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0)):(s+=parseFloat(Dt(e,"padding"+$t[i]))||0,n!=="padding"&&(s+=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0));return s}function tn(e,t,n){var r=t==="width"?e.offsetWidth:e.offsetHeight,i=!0,s=v.support.boxSizing&&v.css(e,"boxSizing")==="border-box";if(r<=0||r==null){r=Dt(e,t);if(r<0||r==null)r=e.style[t];if(Ut.test(r))return r;i=s&&(v.support.boxSizingReliable||r===e.style[t]),r=parseFloat(r)||0}return r+en(e,t,n||(s?"border":"content"),i)+"px"}function nn(e){if(Wt[e])return Wt[e];var t=v("<"+e+">").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement)Ht=(Pt.contentWindow||Pt.contentDocument).document,Ht.write("<!doctype html><html><body>"),Ht.close();t=Ht.body.appendChild(Ht.createElement(e)),n=Dt(t,"display"),i.body.removeChild(Pt)}return Wt[e]=n,n}function fn(e,t,n,r){var i;if(v.isArray(t))v.each(t,function(t,i){n||sn.test(e)?r(e,i):fn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&v.type(t)==="object")for(i in t)fn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n))for(;u<a;u++)r=o[u],s=/^\+/.test(r),s&&(r=r.substr(1)||"*"),i=e[r]=e[r]||[],i[s?"unshift":"push"](n)}}function kn(e,n,r,i,s,o){s=s||n.dataTypes[0],o=o||{},o[s]=!0;var u,a=e[s],f=0,l=a?a.length:0,c=e===Sn;for(;f<l&&(c||!u);f++)u=a[f](n,r,i),typeof u=="string"&&(!c||o[u]?u=t:(n.dataTypes.unshift(u),u=kn(e,n,r,i,u,o)));return(c||!u)&&!o["*"]&&(u=kn(e,n,r,i,"*",o)),u}function Ln(e,n){var r,i,s=v.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((s[r]?e:i||(i={}))[r]=n[r]);i&&v.extend(!0,e,i)}function An(e,n,r){var i,s,o,u,a=e.contents,f=e.dataTypes,l=e.responseFields;for(s in l)s in r&&(n[l[s]]=r[s]);while(f[0]==="*")f.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("content-type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){f.unshift(s);break}if(f[0]in r)o=f[0];else{for(s in r){if(!f[0]||e.converters[s+" "+f[0]]){o=s;break}u||(u=s)}o=o||u}if(o)return o!==f[0]&&f.unshift(o),r[o]}function On(e,t){var n,r,i,s,o=e.dataTypes.slice(),u=o[0],a={},f=0;e.dataFilter&&(t=e.dataFilter(t,e.dataType));if(o[1])for(n in e.converters)a[n.toLowerCase()]=e.converters[n];for(;i=o[++f];)if(i!=="*"){if(u!=="*"&&u!==i){n=a[u+" "+i]||a["* "+i];if(!n)for(r in a){s=r.split(" ");if(s[1]===i){n=a[u+" "+s[0]]||a["* "+s[0]];if(n){n===!0?n=a[r]:a[r]!==!0&&(i=s[0],o.splice(f--,0,i));break}}}if(n!==!0)if(n&&e["throws"])t=n(t);else try{t=n(t)}catch(l){return{state:"parsererror",error:n?l:"No conversion from "+u+" to "+i}}}u=i}return{state:"success",data:t}}function Fn(){try{return new e.XMLHttpRequest}catch(t){}}function In(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function $n(){return setTimeout(function(){qn=t},0),qn=v.now()}function Jn(e,t){v.each(t,function(t,n){var r=(Vn[t]||[]).concat(Vn["*"]),i=0,s=r.length;for(;i<s;i++)if(r[i].call(e,t,n))return})}function Kn(e,t,n){var r,i=0,s=0,o=Xn.length,u=v.Deferred().always(function(){delete a.elem}),a=function(){var t=qn||$n(),n=Math.max(0,f.startTime+f.duration-t),r=n/f.duration||0,i=1-r,s=0,o=f.tweens.length;for(;s<o;s++)f.tweens[s].run(i);return u.notifyWith(e,[f,i,n]),i<1&&o?n:(u.resolveWith(e,[f]),!1)},f=u.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:qn||$n(),duration:n.duration,tweens:[],createTween:function(t,n,r){var i=v.Tween(e,f.opts,t,n,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(i),i},stop:function(t){var n=0,r=t?f.tweens.length:0;for(;n<r;n++)f.tweens[n].run(1);return t?u.resolveWith(e,[f,t]):u.rejectWith(e,[f,t]),this}}),l=f.props;Qn(l,f.opts.specialEasing);for(;i<o;i++){r=Xn[i].call(f,e,l,f.opts);if(r)return r}return Jn(f,l),v.isFunction(f.opts.start)&&f.opts.start.call(e,f),v.fx.timer(v.extend(a,{anim:f,queue:f.opts.queue,elem:e})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function Qn(e,t){var n,r,i,s,o;for(n in e){r=v.camelCase(n),i=t[r],s=e[n],v.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),o=v.cssHooks[r];if(o&&"expand"in o){s=o.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}}function Gn(e,t,n){var r,i,s,o,u,a,f,l,c,h=this,p=e.style,d={},m=[],g=e.nodeType&&Gt(e);n.queue||(l=v._queueHooks(e,"fx"),l.unqueued==null&&(l.unqueued=0,c=l.empty.fire,l.empty.fire=function(){l.unqueued||c()}),l.unqueued++,h.always(function(){h.always(function(){l.unqueued--,v.queue(e,"fx").length||l.empty.fire()})})),e.nodeType===1&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],v.css(e,"display")==="inline"&&v.css(e,"float")==="none"&&(!v.support.inlineBlockNeedsLayout||nn(e.nodeName)==="inline"?p.display="inline-block":p.zoom=1)),n.overflow&&(p.overflow="hidden",v.support.shrinkWrapBlocks||h.done(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t){s=t[r];if(Un.exec(s)){delete t[r],a=a||s==="toggle";if(s===(g?"hide":"show"))continue;m.push(r)}}o=m.length;if(o){u=v._data(e,"fxshow")||v._data(e,"fxshow",{}),"hidden"in u&&(g=u.hidden),a&&(u.hidden=!g),g?v(e).show():h.done(function(){v(e).hide()}),h.done(function(){var t;v.removeData(e,"fxshow",!0);for(t in d)v.style(e,t,d[t])});for(r=0;r<o;r++)i=m[r],f=h.createTween(i,g?u[i]:0),d[i]=u[i]||v.style(e,i),i in u||(u[i]=f.start,g&&(f.end=f.start,f.start=i==="width"||i==="height"?1:0))}}function Yn(e,t,n,r,i){return new Yn.prototype.init(e,t,n,r,i)}function Zn(e,t){var n,r={height:e},i=0;t=t?1:0;for(;i<4;i+=2-t)n=$t[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function tr(e){return v.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}var n,r,i=e.document,s=e.location,o=e.navigator,u=e.jQuery,a=e.$,f=Array.prototype.push,l=Array.prototype.slice,c=Array.prototype.indexOf,h=Object.prototype.toString,p=Object.prototype.hasOwnProperty,d=String.prototype.trim,v=function(e,t){return new v.fn.init(e,t,n)},m=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,g=/\S/,y=/\s+/,b=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,w=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,T=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,N=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,C=/^-ms-/,k=/-([\da-z])/gi,L=function(e,t){return(t+"").toUpperCase()},A=function(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",A,!1),v.ready()):i.readyState==="complete"&&(i.detachEvent("onreadystatechange",A),v.ready())},O={};v.fn=v.prototype={constructor:v,init:function(e,n,r){var s,o,u,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?s=[null,e,null]:s=w.exec(e);if(s&&(s[1]||!n)){if(s[1])return n=n instanceof v?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:i,e=v.parseHTML(s[1],a,!0),E.test(s[1])&&v.isPlainObject(n)&&this.attr.call(e,n,!0),v.merge(this,e);o=i.getElementById(s[2]);if(o&&o.parentNode){if(o.id!==s[2])return r.find(e);this.length=1,this[0]=o}return this.context=i,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return v.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),v.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=v.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,t==="find"?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return v.each(this,e,t)},ready:function(e){return v.ready.promise().done(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(l.apply(this,arguments),"slice",l.call(arguments).join(","))},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},v.fn.init.prototype=v.fn,v.extend=v.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;typeof u=="boolean"&&(l=u,u=arguments[1]||{},a=2),typeof u!="object"&&!v.isFunction(u)&&(u={}),f===a&&(u=this,--a);for(;a<f;a++)if((e=arguments[a])!=null)for(n in e){r=u[n],i=e[n];if(u===i)continue;l&&i&&(v.isPlainObject(i)||(s=v.isArray(i)))?(s?(s=!1,o=r&&v.isArray(r)?r:[]):o=r&&v.isPlainObject(r)?r:{},u[n]=v.extend(l,o,i)):i!==t&&(u[n]=i)}return u},v.extend({noConflict:function(t){return e.$===v&&(e.$=a),t&&e.jQuery===v&&(e.jQuery=u),v},isReady:!1,readyWait:1,holdReady:function(e){e?v.readyWait++:v.ready(!0)},ready:function(e){if(e===!0?--v.readyWait:v.isReady)return;if(!i.body)return setTimeout(v.ready,1);v.isReady=!0;if(e!==!0&&--v.readyWait>0)return;r.resolveWith(i,[v]),v.fn.trigger&&v(i).trigger("ready").off("ready")},isFunction:function(e){return v.type(e)==="function"},isArray:Array.isArray||function(e){return v.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):O[h.call(e)]||"object"},isPlainObject:function(e){if(!e||v.type(e)!=="object"||e.nodeType||v.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||p.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var r;return!e||typeof e!="string"?null:(typeof t=="boolean"&&(n=t,t=0),t=t||i,(r=E.exec(e))?[t.createElement(r[1])]:(r=v.buildFragment([e],t,n?null:[]),v.merge([],(r.cacheable?v.clone(r.fragment):r.fragment).childNodes)))},parseJSON:function(t){if(!t||typeof t!="string")return null;t=v.trim(t);if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(S.test(t.replace(T,"@").replace(N,"]").replace(x,"")))return(new Function("return "+t))();v.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!="string")return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(s){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&v.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&g.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(C,"ms-").replace(k,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,r){var i,s=0,o=e.length,u=o===t||v.isFunction(e);if(r){if(u){for(i in e)if(n.apply(e[i],r)===!1)break}else for(;s<o;)if(n.apply(e[s++],r)===!1)break}else if(u){for(i in e)if(n.call(e[i],i,e[i])===!1)break}else for(;s<o;)if(n.call(e[s],s,e[s++])===!1)break;return e},trim:d&&!d.call("\ufeff\u00a0")?function(e){return e==null?"":d.call(e)}:function(e){return e==null?"":(e+"").replace(b,"")},makeArray:function(e,t){var n,r=t||[];return e!=null&&(n=v.type(e),e.length==null||n==="string"||n==="function"||n==="regexp"||v.isWindow(e)?f.call(r,e):v.merge(r,e)),r},inArray:function(e,t,n){var r;if(t){if(c)return c.call(t,e,n);r=t.length,n=n?n<0?Math.max(0,r+n):n:0;for(;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,s=0;if(typeof r=="number")for(;s<r;s++)e[i++]=n[s];else while(n[s]!==t)e[i++]=n[s++];return e.length=i,e},grep:function(e,t,n){var r,i=[],s=0,o=e.length;n=!!n;for(;s<o;s++)r=!!t(e[s],s),n!==r&&i.push(e[s]);return i},map:function(e,n,r){var i,s,o=[],u=0,a=e.length,f=e instanceof v||a!==t&&typeof a=="number"&&(a>0&&e[0]&&e[a-1]||a===0||v.isArray(e));if(f)for(;u<a;u++)i=n(e[u],u,r),i!=null&&(o[o.length]=i);else for(s in e)i=n(e[s],s,r),i!=null&&(o[o.length]=i);return o.concat.apply([],o)},guid:1,proxy:function(e,n){var r,i,s;return typeof n=="string"&&(r=e[n],n=e,e=r),v.isFunction(e)?(i=l.call(arguments,2),s=function(){return e.apply(n,i.concat(l.call(arguments)))},s.guid=e.guid=e.guid||v.guid++,s):t},access:function(e,n,r,i,s,o,u){var a,f=r==null,l=0,c=e.length;if(r&&typeof r=="object"){for(l in r)v.access(e,n,l,r[l],1,o,i);s=1}else if(i!==t){a=u===t&&v.isFunction(i),f&&(a?(a=n,n=function(e,t,n){return a.call(v(e),n)}):(n.call(e,i),n=null));if(n)for(;l<c;l++)n(e[l],r,a?i.call(e[l],l,n(e[l],r)):i,u);s=1}return s?e:f?n.call(e):c?n(e[0],r):o},now:function(){return(new Date).getTime()}}),v.ready.promise=function(t){if(!r){r=v.Deferred();if(i.readyState==="complete")setTimeout(v.ready,1);else if(i.addEventListener)i.addEventListener("DOMContentLoaded",A,!1),e.addEventListener("load",v.ready,!1);else{i.attachEvent("onreadystatechange",A),e.attachEvent("onload",v.ready);var n=!1;try{n=e.frameElement==null&&i.documentElement}catch(s){}n&&n.doScroll&&function o(){if(!v.isReady){try{n.doScroll("left")}catch(e){return setTimeout(o,50)}v.ready()}}()}}return r.promise(t)},v.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){O["[object "+t+"]"]=t.toLowerCase()}),n=v(i);var M={};v.Callbacks=function(e){e=typeof e=="string"?M[e]||_(e):v.extend({},e);var n,r,i,s,o,u,a=[],f=!e.once&&[],l=function(t){n=e.memory&&t,r=!0,u=s||0,s=0,o=a.length,i=!0;for(;a&&u<o;u++)if(a[u].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}i=!1,a&&(f?f.length&&l(f.shift()):n?a=[]:c.disable())},c={add:function(){if(a){var t=a.length;(function r(t){v.each(t,function(t,n){var i=v.type(n);i==="function"?(!e.unique||!c.has(n))&&a.push(n):n&&n.length&&i!=="string"&&r(n)})})(arguments),i?o=a.length:n&&(s=t,l(n))}return this},remove:function(){return a&&v.each(arguments,function(e,t){var n;while((n=v.inArray(t,a,n))>-1)a.splice(n,1),i&&(n<=o&&o--,n<=u&&u--)}),this},has:function(e){return v.inArray(e,a)>-1},empty:function(){return a=[],this},disable:function(){return a=f=n=t,this},disabled:function(){return!a},lock:function(){return f=t,n||c.disable(),this},locked:function(){return!f},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],a&&(!r||f)&&(i?f.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()},promise:function(e){return e!=null?v.extend(e,r):r}},i={};return r.pipe=r.then,v.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=o.fire,i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=l.call(arguments),r=n.length,i=r!==1||e&&v.isFunction(e.promise)?r:0,s=i===1?e:v.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?l.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t<r;t++)n[t]&&v.isFunction(n[t].promise)?n[t].promise().done(o(t,f,n)).fail(s.reject).progress(o(t,a,u)):--i}return i||s.resolveWith(f,n),s.promise()}}),v.support=function(){var t,n,r,s,o,u,a,f,l,c,h,p=i.createElement("div");p.setAttribute("className","t"),p.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=p.getElementsByTagName("*"),r=p.getElementsByTagName("a")[0];if(!n||!r||!n.length)return{};s=i.createElement("select"),o=s.appendChild(i.createElement("option")),u=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:u.value==="on",optSelected:o.selected,getSetAttribute:p.className!=="t",enctype:!!i.createElement("form").enctype,html5Clone:i.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",boxModel:i.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},u.checked=!0,t.noCloneChecked=u.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!o.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",h=function(){t.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick"),p.detachEvent("onclick",h)),u=i.createElement("input"),u.value="t",u.setAttribute("type","radio"),t.radioValue=u.value==="t",u.setAttribute("checked","checked"),u.setAttribute("name","t"),p.appendChild(u),a=i.createDocumentFragment(),a.appendChild(p.lastChild),t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=u.checked,a.removeChild(u),a.appendChild(p);if(p.attachEvent)for(l in{submit:!0,change:!0,focusin:!0})f="on"+l,c=f in p,c||(p.setAttribute(f,"return;"),c=typeof p[f]=="function"),t[l+"Bubbles"]=c;return v(function(){var n,r,s,o,u="padding:0;margin:0;border:0;display:block;overflow:hidden;",a=i.getElementsByTagName("body")[0];if(!a)return;n=i.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",a.insertBefore(n,a.firstChild),r=i.createElement("div"),n.appendChild(r),r.innerHTML="<table><tr><td></td><td>t</td></tr></table>",s=r.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",c=s[0].offsetHeight===0,s[0].style.display="",s[1].style.display="none",t.reliableHiddenOffsets=c&&s[0].offsetHeight===0,r.innerHTML="",r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=r.offsetWidth===4,t.doesNotIncludeMarginInBodyOffset=a.offsetTop!==1,e.getComputedStyle&&(t.pixelPosition=(e.getComputedStyle(r,null)||{}).top!=="1%",t.boxSizingReliable=(e.getComputedStyle(r,null)||{width:"4px"}).width==="4px",o=i.createElement("div"),o.style.cssText=r.style.cssText=u,o.style.marginRight=o.style.width="0",r.style.width="1px",r.appendChild(o),t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),typeof r.style.zoom!="undefined"&&(r.innerHTML="",r.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=r.offsetWidth===3,r.style.display="block",r.style.overflow="visible",r.innerHTML="<div></div>",r.firstChild.style.width="5px",t.shrinkWrapBlocks=r.offsetWidth!==3,n.style.zoom=1),a.removeChild(n),n=r=s=o=null}),a.removeChild(p),n=r=s=o=u=a=p=null,t}();var D=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;v.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(v.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?v.cache[e[v.expando]]:e[v.expando],!!e&&!B(e)},data:function(e,n,r,i){if(!v.acceptData(e))return;var s,o,u=v.expando,a=typeof n=="string",f=e.nodeType,l=f?v.cache:e,c=f?e[u]:e[u]&&u;if((!c||!l[c]||!i&&!l[c].data)&&a&&r===t)return;c||(f?e[u]=c=v.deletedIds.pop()||v.guid++:c=u),l[c]||(l[c]={},f||(l[c].toJSON=v.noop));if(typeof n=="object"||typeof n=="function")i?l[c]=v.extend(l[c],n):l[c].data=v.extend(l[c].data,n);return s=l[c],i||(s.data||(s.data={}),s=s.data),r!==t&&(s[v.camelCase(n)]=r),a?(o=s[n],o==null&&(o=s[v.camelCase(n)])):o=s,o},removeData:function(e,t,n){if(!v.acceptData(e))return;var r,i,s,o=e.nodeType,u=o?v.cache:e,a=o?e[v.expando]:v.expando;if(!u[a])return;if(t){r=n?u[a]:u[a].data;if(r){v.isArray(t)||(t in r?t=[t]:(t=v.camelCase(t),t in r?t=[t]:t=t.split(" ")));for(i=0,s=t.length;i<s;i++)delete r[t[i]];if(!(n?B:v.isEmptyObject)(r))return}}if(!n){delete u[a].data;if(!B(u[a]))return}o?v.cleanData([e],!0):v.support.deleteExpando||u!=u.window?delete u[a]:u[a]=null},_data:function(e,t,n){return v.data(e,t,n,!0)},acceptData:function(e){var t=e.nodeName&&v.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),v.fn.extend({data:function(e,n){var r,i,s,o,u,a=this[0],f=0,l=null;if(e===t){if(this.length){l=v.data(a);if(a.nodeType===1&&!v._data(a,"parsedAttrs")){s=a.attributes;for(u=s.length;f<u;f++)o=s[f].name,o.indexOf("data-")||(o=v.camelCase(o.substring(5)),H(a,o,l[o]));v._data(a,"parsedAttrs",!0)}}return l}return typeof e=="object"?this.each(function(){v.data(this,e)}):(r=e.split(".",2),r[1]=r[1]?"."+r[1]:"",i=r[1]+"!",v.access(this,function(n){if(n===t)return l=this.triggerHandler("getData"+i,[r[0]]),l===t&&a&&(l=v.data(a,e),l=H(a,e,l)),l===t&&r[1]?this.data(r[0]):l;r[1]=n,this.each(function(){var t=v(this);t.triggerHandler("setData"+i,r),v.data(this,e,n),t.triggerHandler("changeData"+i,r)})},null,n,arguments.length>1,null,!1))},removeData:function(e){return this.each(function(){v.removeData(this,e)})}}),v.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=v._data(e,t),n&&(!r||v.isArray(n)?r=v._data(e,t,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),s=v._queueHooks(e,t),o=function(){v.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return v._data(e,n)||v._data(e,n,{empty:v.Callbacks("once memory").add(function(){v.removeData(e,t+"queue",!0),v.removeData(e,n,!0)})})}}),v.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length<r?v.queue(this[0],e):n===t?this:this.each(function(){var t=v.queue(this,e,n);v._queueHooks(this,e),e==="fx"&&t[0]!=="inprogress"&&v.dequeue(this,e)})},dequeue:function(e){return this.each(function(){v.dequeue(this,e)})},delay:function(e,t){return e=v.fx?v.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,s=v.Deferred(),o=this,u=this.length,a=function(){--i||s.resolveWith(o,[o])};typeof e!="string"&&(n=e,e=t),e=e||"fx";while(u--)r=v._data(o[u],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(a));return a(),s.promise(n)}});var j,F,I,q=/[\t\r\n]/g,R=/\r/g,U=/^(?:button|input)$/i,z=/^(?:button|input|object|select|textarea)$/i,W=/^a(?:rea|)$/i,X=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,V=v.support.getSetAttribute;v.fn.extend({attr:function(e,t){return v.access(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})},prop:function(e,t){return v.access(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return e=v.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o,u;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,this.className))});if(e&&typeof e=="string"){t=e.split(y);for(n=0,r=this.length;n<r;n++){i=this[n];if(i.nodeType===1)if(!i.className&&t.length===1)i.className=e;else{s=" "+i.className+" ";for(o=0,u=t.length;o<u;o++)s.indexOf(" "+t[o]+" ")<0&&(s+=t[o]+" ");i.className=v.trim(s)}}}return this},removeClass:function(e){var n,r,i,s,o,u,a;if(v.isFunction(e))return this.each(function(t){v(this).removeClass(e.call(this,t,this.className))});if(e&&typeof e=="string"||e===t){n=(e||"").split(y);for(u=0,a=this.length;u<a;u++){i=this[u];if(i.nodeType===1&&i.className){r=(" "+i.className+" ").replace(q," ");for(s=0,o=n.length;s<o;s++)while(r.indexOf(" "+n[s]+" ")>=0)r=r.replace(" "+n[s]+" "," ");i.className=e?v.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t=="boolean";return v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var i,s=0,o=v(this),u=t,a=e.split(y);while(i=a[s++])u=r?u:!o.hasClass(i),o[u?"addClass":"removeClass"](i)}else if(n==="undefined"||n==="boolean")this.className&&v._data(this,"__className__",this.className),this.className=this.className||e===!1?"":v._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n<r;n++)if(this[n].nodeType===1&&(" "+this[n].className+" ").replace(q," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s)return n=v.valHooks[s.type]||v.valHooks[s.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(s,"value"))!==t?r:(r=s.value,typeof r=="string"?r.replace(R,""):r==null?"":r);return}return i=v.isFunction(e),this.each(function(r){var s,o=v(this);if(this.nodeType!==1)return;i?s=e.call(this,r,o.val()):s=e,s==null?s="":typeof s=="number"?s+="":v.isArray(s)&&(s=v.map(s,function(e){return e==null?"":e+""})),n=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,s,"value")===t)this.value=s})}}),v.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a<u;a++){n=r[a];if((n.selected||a===i)&&(v.support.optDisabled?!n.disabled:n.getAttribute("disabled")===null)&&(!n.parentNode.disabled||!v.nodeName(n.parentNode,"optgroup"))){t=v(n).val();if(s)return t;o.push(t)}}return o},set:function(e,t){var n=v.makeArray(t);return v(e).find("option").each(function(){this.selected=v.inArray(v(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2)return;if(i&&v.isFunction(v.fn[n]))return v(e)[n](r);if(typeof e.getAttribute=="undefined")return v.prop(e,n,r);u=a!==1||!v.isXMLDoc(e),u&&(n=n.toLowerCase(),o=v.attrHooks[n]||(X.test(n)?F:j));if(r!==t){if(r===null){v.removeAttr(e,n);return}return o&&"set"in o&&u&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r)}return o&&"get"in o&&u&&(s=o.get(e,n))!==null?s:(s=e.getAttribute(n),s===null?t:s)},removeAttr:function(e,t){var n,r,i,s,o=0;if(t&&e.nodeType===1){r=t.split(y);for(;o<r.length;o++)i=r[o],i&&(n=v.propFix[i]||i,s=X.test(i),s||v.attr(e,i,""),e.removeAttribute(V?i:n),s&&n in e&&(e[n]=!1))}},attrHooks:{type:{set:function(e,t){if(U.test(e.nodeName)&&e.parentNode)v.error("type property can't be changed");else if(!v.support.radioValue&&t==="radio"&&v.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return j&&v.nodeName(e,"button")?j.get(e,t):t in e?e.value:null},set:function(e,t,n){if(j&&v.nodeName(e,"button"))return j.set(e,t,n);e.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,s,o,u=e.nodeType;if(!e||u===3||u===8||u===2)return;return o=u!==1||!v.isXMLDoc(e),o&&(n=v.propFix[n]||n,s=v.propHooks[n]),r!==t?s&&"set"in s&&(i=s.set(e,r,n))!==t?i:e[n]=r:s&&"get"in s&&(i=s.get(e,n))!==null?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):z.test(e.nodeName)||W.test(e.nodeName)&&e.href?0:t}}}}),F={get:function(e,n){var r,i=v.prop(e,n);return i===!0||typeof i!="boolean"&&(r=e.getAttributeNode(n))&&r.nodeValue!==!1?n.toLowerCase():t},set:function(e,t,n){var r;return t===!1?v.removeAttr(e,n):(r=v.propFix[n]||n,r in e&&(e[r]=!0),e.setAttribute(n,n.toLowerCase())),n}},V||(I={name:!0,id:!0,coords:!0},j=v.valHooks.button={get:function(e,n){var r;return r=e.getAttributeNode(n),r&&(I[n]?r.value!=="":r.specified)?r.value:t},set:function(e,t,n){var r=e.getAttributeNode(n);return r||(r=i.createAttribute(n),e.setAttributeNode(r)),r.value=t+""}},v.each(["width","height"],function(e,t){v.attrHooks[t]=v.extend(v.attrHooks[t],{set:function(e,n){if(n==="")return e.setAttribute(t,"auto"),n}})}),v.attrHooks.contenteditable={get:j.get,set:function(e,t,n){t===""&&(t="false"),j.set(e,t,n)}}),v.support.hrefNormalized||v.each(["href","src","width","height"],function(e,n){v.attrHooks[n]=v.extend(v.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return r===null?t:r}})}),v.support.style||(v.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=t+""}}),v.support.optSelected||(v.propHooks.selected=v.extend(v.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),v.support.enctype||(v.propFix.enctype="encoding"),v.support.checkOn||v.each(["radio","checkbox"],function(){v.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]=v.extend(v.valHooks[this],{set:function(e,t){if(v.isArray(t))return e.checked=v.inArray(v(e).val(),t)>=0}})});var $=/^(?:textarea|input|select)$/i,J=/^([^\.]*|)(?:\.(.+)|)$/,K=/(?:^|\s)hover(\.\S+|)\b/,Q=/^key/,G=/^(?:mouse|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=function(e){return v.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};v.event={add:function(e,n,r,i,s){var o,u,a,f,l,c,h,p,d,m,g;if(e.nodeType===3||e.nodeType===8||!n||!r||!(o=v._data(e)))return;r.handler&&(d=r,r=d.handler,s=d.selector),r.guid||(r.guid=v.guid++),a=o.events,a||(o.events=a={}),u=o.handle,u||(o.handle=u=function(e){return typeof v=="undefined"||!!e&&v.event.triggered===e.type?t:v.event.dispatch.apply(u.elem,arguments)},u.elem=e),n=v.trim(Z(n)).split(" ");for(f=0;f<n.length;f++){l=J.exec(n[f])||[],c=l[1],h=(l[2]||"").split(".").sort(),g=v.event.special[c]||{},c=(s?g.delegateType:g.bindType)||c,g=v.event.special[c]||{},p=v.extend({type:c,origType:l[1],data:i,handler:r,guid:r.guid,selector:s,needsContext:s&&v.expr.match.needsContext.test(s),namespace:h.join(".")},d),m=a[c];if(!m){m=a[c]=[],m.delegateCount=0;if(!g.setup||g.setup.call(e,i,h,u)===!1)e.addEventListener?e.addEventListener(c,u,!1):e.attachEvent&&e.attachEvent("on"+c,u)}g.add&&(g.add.call(e,p),p.handler.guid||(p.handler.guid=r.guid)),s?m.splice(m.delegateCount++,0,p):m.push(p),v.event.global[c]=!0}e=null},global:{},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,m,g=v.hasData(e)&&v._data(e);if(!g||!(h=g.events))return;t=v.trim(Z(t||"")).split(" ");for(s=0;s<t.length;s++){o=J.exec(t[s])||[],u=a=o[1],f=o[2];if(!u){for(u in h)v.event.remove(e,u+t[s],n,r,!0);continue}p=v.event.special[u]||{},u=(r?p.delegateType:p.bindType)||u,d=h[u]||[],l=d.length,f=f?new RegExp("(^|\\.)"+f.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null;for(c=0;c<d.length;c++)m=d[c],(i||a===m.origType)&&(!n||n.guid===m.guid)&&(!f||f.test(m.namespace))&&(!r||r===m.selector||r==="**"&&m.selector)&&(d.splice(c--,1),m.selector&&d.delegateCount--,p.remove&&p.remove.call(e,m));d.length===0&&l!==d.length&&((!p.teardown||p.teardown.call(e,f,g.handle)===!1)&&v.removeEvent(e,u,g.handle),delete h[u])}v.isEmptyObject(h)&&(delete g.handle,v.removeData(e,"events",!0))},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,r,s,o){if(!s||s.nodeType!==3&&s.nodeType!==8){var u,a,f,l,c,h,p,d,m,g,y=n.type||n,b=[];if(Y.test(y+v.event.triggered))return;y.indexOf("!")>=0&&(y=y.slice(0,-1),a=!0),y.indexOf(".")>=0&&(b=y.split("."),y=b.shift(),b.sort());if((!s||v.event.customEvent[y])&&!v.event.global[y])return;n=typeof n=="object"?n[v.expando]?n:new v.Event(y,n):new v.Event(y),n.type=y,n.isTrigger=!0,n.exclusive=a,n.namespace=b.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h=y.indexOf(":")<0?"on"+y:"";if(!s){u=v.cache;for(f in u)u[f].events&&u[f].events[y]&&v.event.trigger(n,r,u[f].handle.elem,!0);return}n.result=t,n.target||(n.target=s),r=r!=null?v.makeArray(r):[],r.unshift(n),p=v.event.special[y]||{};if(p.trigger&&p.trigger.apply(s,r)===!1)return;m=[[s,p.bindType||y]];if(!o&&!p.noBubble&&!v.isWindow(s)){g=p.delegateType||y,l=Y.test(g+y)?s:s.parentNode;for(c=s;l;l=l.parentNode)m.push([l,g]),c=l;c===(s.ownerDocument||i)&&m.push([c.defaultView||c.parentWindow||e,g])}for(f=0;f<m.length&&!n.isPropagationStopped();f++)l=m[f][0],n.type=m[f][1],d=(v._data(l,"events")||{})[n.type]&&v._data(l,"handle"),d&&d.apply(l,r),d=h&&l[h],d&&v.acceptData(l)&&d.apply&&d.apply(l,r)===!1&&n.preventDefault();return n.type=y,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(s.ownerDocument,r)===!1)&&(y!=="click"||!v.nodeName(s,"a"))&&v.acceptData(s)&&h&&s[y]&&(y!=="focus"&&y!=="blur"||n.target.offsetWidth!==0)&&!v.isWindow(s)&&(c=s[h],c&&(s[h]=null),v.event.triggered=y,s[y](),v.event.triggered=t,c&&(s[h]=c)),n.result}return},dispatch:function(n){n=v.event.fix(n||e.event);var r,i,s,o,u,a,f,c,h,p,d=(v._data(this,"events")||{})[n.type]||[],m=d.delegateCount,g=l.call(arguments),y=!n.exclusive&&!n.namespace,b=v.event.special[n.type]||{},w=[];g[0]=n,n.delegateTarget=this;if(b.preDispatch&&b.preDispatch.call(this,n)===!1)return;if(m&&(!n.button||n.type!=="click"))for(s=n.target;s!=this;s=s.parentNode||this)if(s.disabled!==!0||n.type!=="click"){u={},f=[];for(r=0;r<m;r++)c=d[r],h=c.selector,u[h]===t&&(u[h]=c.needsContext?v(h,this).index(s)>=0:v.find(h,this,null,[s]).length),u[h]&&f.push(c);f.length&&w.push({elem:s,matches:f})}d.length>m&&w.push({elem:this,matches:d.slice(m)});for(r=0;r<w.length&&!n.isPropagationStopped();r++){a=w[r],n.currentTarget=a.elem;for(i=0;i<a.matches.length&&!n.isImmediatePropagationStopped();i++){c=a.matches[i];if(y||!n.namespace&&!c.namespace||n.namespace_re&&n.namespace_re.test(c.namespace))n.data=c.data,n.handleObj=c,o=((v.event.special[c.origType]||{}).handle||c.handler).apply(a.elem,g),o!==t&&(n.result=o,o===!1&&(n.preventDefault(),n.stopPropagation()))}}return b.postDispatch&&b.postDispatch.call(this,n),n.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return e.which==null&&(e.which=t.charCode!=null?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,s,o,u=n.button,a=n.fromElement;return e.pageX==null&&n.clientX!=null&&(r=e.target.ownerDocument||i,s=r.documentElement,o=r.body,e.pageX=n.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),e.pageY=n.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?n.toElement:a),!e.which&&u!==t&&(e.which=u&1?1:u&2?3:u&4?2:0),e}},fix:function(e){if(e[v.expando])return e;var t,n,r=e,s=v.event.fixHooks[e.type]||{},o=s.props?this.props.concat(s.props):this.props;e=v.Event(r);for(t=o.length;t;)n=o[--t],e[n]=r[n];return e.target||(e.target=r.srcElement||i),e.target.nodeType===3&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,r):e},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,n){v.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,r){var i=v.extend(new v.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?v.event.trigger(i,null,t):v.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},v.event.handle=v.event.dispatch,v.removeEvent=i.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]=="undefined"&&(e[r]=null),e.detachEvent(r,n))},v.Event=function(e,t){if(!(this instanceof v.Event))return new v.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?tt:et):this.type=e,t&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={preventDefault:function(){this.isDefaultPrevented=tt;var e=this.originalEvent;if(!e)return;e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=tt;var e=this.originalEvent;if(!e)return;e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=tt,this.stopPropagation()},isDefaultPrevented:et,isPropagationStopped:et,isImmediatePropagationStopped:et},v.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj,o=s.selector;if(!i||i!==r&&!v.contains(r,i))e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t;return n}}}),v.support.submitBubbles||(v.event.special.submit={setup:function(){if(v.nodeName(this,"form"))return!1;v.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=v.nodeName(n,"input")||v.nodeName(n,"button")?n.form:t;r&&!v._data(r,"_submit_attached")&&(v.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),v._data(r,"_submit_attached",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&v.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(v.nodeName(this,"form"))return!1;v.event.remove(this,"._submit")}}),v.support.changeBubbles||(v.event.special.change={setup:function(){if($.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")v.event.add(this,"propertychange._change",function(e){e.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),v.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),v.event.simulate("change",this,e,!0)});return!1}v.event.add(this,"beforeactivate._change",function(e){var t=e.target;$.test(t.nodeName)&&!v._data(t,"_change_attached")&&(v.event.add(t,"change._change",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&v.event.simulate("change",this.parentNode,e,!0)}),v._data(t,"_change_attached",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return e.handleObj.handler.apply(this,arguments)},teardown:function(){return v.event.remove(this,"._change"),!$.test(this.nodeName)}}),v.support.focusinBubbles||v.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){v.event.simulate(t,e.target,v.event.fix(e),!0)};v.event.special[t]={setup:function(){n++===0&&i.addEventListener(e,r,!0)},teardown:function(){--n===0&&i.removeEventListener(e,r,!0)}}}),v.fn.extend({on:function(e,n,r,i,s){var o,u;if(typeof e=="object"){typeof n!="string"&&(r=r||n,n=t);for(u in e)this.on(u,n,r,e[u],s);return this}r==null&&i==null?(i=n,r=n=t):i==null&&(typeof n=="string"?(i=r,r=t):(i=r,r=n,n=t));if(i===!1)i=et;else if(!i)return this;return s===1&&(o=i,i=function(e){return v().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=v.guid++)),this.each(function(){v.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,s;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,v(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if(typeof e=="object"){for(s in e)this.off(s,n,e[s]);return this}if(n===!1||typeof n=="function")r=n,n=t;return r===!1&&(r=et),this.each(function(){v.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){return v(this.context).on(e,this.selector,t,n),this},die:function(e,t){return v(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){v.event.trigger(e,t,this)})},triggerHandler:function(e,t){if(this[0])return v.event.trigger(e,t,this[0],!0)},toggle:function(e){var t=arguments,n=e.guid||v.guid++,r=0,i=function(n){var i=(v._data(this,"lastToggle"+e.guid)||0)%r;return v._data(this,"lastToggle"+e.guid,i+1),n.preventDefault(),t[i].apply(this,arguments)||!1};i.guid=n;while(r<t.length)t[r++].guid=n;return this.click(i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){v.fn[t]=function(e,n){return n==null&&(n=e,e=null),arguments.length>0?this.on(t,null,e,n):this.trigger(t)},Q.test(t)&&(v.event.fixHooks[t]=v.event.keyHooks),G.test(t)&&(v.event.fixHooks[t]=v.event.mouseHooks)}),function(e,t){function nt(e,t,n,r){n=n||[],t=t||g;var i,s,a,f,l=t.nodeType;if(!e||typeof e!="string")return n;if(l!==1&&l!==9)return[];a=o(t);if(!a&&!r)if(i=R.exec(e))if(f=i[1]){if(l===9){s=t.getElementById(f);if(!s||!s.parentNode)return n;if(s.id===f)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(f))&&u(t,s)&&s.id===f)return n.push(s),n}else{if(i[2])return S.apply(n,x.call(t.getElementsByTagName(e),0)),n;if((f=i[3])&&Z&&t.getElementsByClassName)return S.apply(n,x.call(t.getElementsByClassName(f),0)),n}return vt(e.replace(j,"$1"),t,n,r,a)}function rt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function it(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function st(e){return N(function(t){return t=+t,N(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function ot(e,t,n){if(e===t)return n;var r=e.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}function ut(e,t){var n,r,s,o,u,a,f,l=L[d][e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=i.preFilter;while(u){if(!n||(r=F.exec(u)))r&&(u=u.slice(r[0].length)||u),a.push(s=[]);n=!1;if(r=I.exec(u))s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=r[0].replace(j," ");for(o in i.filter)(r=J[o].exec(u))&&(!f[o]||(r=f[o](r)))&&(s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=o,n.matches=r);if(!n)break}return t?u.length:u?nt.error(e):L(e,a).slice(0)}function at(e,t,r){var i=t.dir,s=r&&t.dir==="parentNode",o=w++;return t.first?function(t,n,r){while(t=t[i])if(s||t.nodeType===1)return e(t,n,r)}:function(t,r,u){if(!u){var a,f=b+" "+o+" ",l=f+n;while(t=t[i])if(s||t.nodeType===1){if((a=t[d])===l)return t.sizset;if(typeof a=="string"&&a.indexOf(f)===0){if(t.sizset)return t}else{t[d]=l;if(e(t,r,u))return t.sizset=!0,t;t.sizset=!1}}}else while(t=t[i])if(s||t.nodeType===1)if(e(t,r,u))return t}}function ft(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function lt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u<a;u++)if(s=e[u])if(!n||n(s,r,i))o.push(s),f&&t.push(u);return o}function ct(e,t,n,r,i,s){return r&&!r[d]&&(r=ct(r)),i&&!i[d]&&(i=ct(i,s)),N(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||dt(t||"*",u.nodeType?[u]:u,[]),m=e&&(s||!t)?lt(v,h,e,u,a):v,g=n?i||(s?e:d||r)?[]:o:m;n&&n(m,g,u,a);if(r){f=lt(g,p),r(f,[],u,a),l=f.length;while(l--)if(c=f[l])g[p[l]]=!(m[p[l]]=c)}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?T.call(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=lt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):S.apply(o,g)})}function ht(e){var t,n,r,s=e.length,o=i.relative[e[0].type],u=o||i.relative[" "],a=o?1:0,f=at(function(e){return e===t},u,!0),l=at(function(e){return T.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==c)||((t=n).nodeType?f(e,n,r):l(e,n,r))}];for(;a<s;a++)if(n=i.relative[e[a].type])h=[at(ft(h),n)];else{n=i.filter[e[a].type].apply(null,e[a].matches);if(n[d]){r=++a;for(;r<s;r++)if(i.relative[e[r].type])break;return ct(a>1&&ft(h),a>1&&e.slice(0,a-1).join("").replace(j,"$1"),n,a<r&&ht(e.slice(a,r)),r<s&&ht(e=e.slice(r)),r<s&&e.join(""))}h.push(n)}return ft(h)}function pt(e,t){var r=t.length>0,s=e.length>0,o=function(u,a,f,l,h){var p,d,v,m=[],y=0,w="0",x=u&&[],T=h!=null,N=c,C=u||s&&i.find.TAG("*",h&&a.parentNode||a),k=b+=N==null?1:Math.E;T&&(c=a!==g&&a,n=o.el);for(;(p=C[w])!=null;w++){if(s&&p){for(d=0;v=e[d];d++)if(v(p,a,f)){l.push(p);break}T&&(b=k,n=++o.el)}r&&((p=!v&&p)&&y--,u&&x.push(p))}y+=w;if(r&&w!==y){for(d=0;v=t[d];d++)v(x,m,a,f);if(u){if(y>0)while(w--)!x[w]&&!m[w]&&(m[w]=E.call(l));m=lt(m)}S.apply(l,m),T&&!u&&m.length>0&&y+t.length>1&&nt.uniqueSort(l)}return T&&(b=k,c=N),x};return o.el=0,r?N(o):o}function dt(e,t,n){var r=0,i=t.length;for(;r<i;r++)nt(e,t[r],n);return n}function vt(e,t,n,r,s){var o,u,f,l,c,h=ut(e),p=h.length;if(!r&&h.length===1){u=h[0]=h[0].slice(0);if(u.length>2&&(f=u[0]).type==="ID"&&t.nodeType===9&&!s&&i.relative[u[1].type]){t=i.find.ID(f.matches[0].replace($,""),t,s)[0];if(!t)return n;e=e.slice(u.shift().length)}for(o=J.POS.test(e)?-1:u.length-1;o>=0;o--){f=u[o];if(i.relative[l=f.type])break;if(c=i.find[l])if(r=c(f.matches[0].replace($,""),z.test(u[0].type)&&t.parentNode||t,s)){u.splice(o,1),e=r.length&&u.join("");if(!e)return S.apply(n,x.call(r,0)),n;break}}}return a(e,h)(r,t,s,n,z.test(e)),n}function mt(){}var n,r,i,s,o,u,a,f,l,c,h=!0,p="undefined",d=("sizcache"+Math.random()).replace(".",""),m=String,g=e.document,y=g.documentElement,b=0,w=0,E=[].pop,S=[].push,x=[].slice,T=[].indexOf||function(e){var t=0,n=this.length;for(;t<n;t++)if(this[t]===e)return t;return-1},N=function(e,t){return e[d]=t==null||t,e},C=function(){var e={},t=[];return N(function(n,r){return t.push(n)>i.cacheLength&&delete e[t.shift()],e[n+" "]=r},e)},k=C(),L=C(),A=C(),O="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",_=M.replace("w","w#"),D="([*^$|!~]?=)",P="\\["+O+"*("+M+")"+O+"*(?:"+D+O+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+_+")|)|)"+O+"*\\]",H=":("+M+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+P+")|[^:]|\\\\.)*|.*))\\)|)",B=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)",j=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),F=new RegExp("^"+O+"*,"+O+"*"),I=new RegExp("^"+O+"*([\\x20\\t\\r\\n\\f>+~])"+O+"*"),q=new RegExp(H),R=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,U=/^:not/,z=/[\x20\t\r\n\f]*[+~]/,W=/:not\($/,X=/h\d/i,V=/input|select|textarea|button/i,$=/\\(?!\\)/g,J={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),NAME:new RegExp("^\\[name=['\"]?("+M+")['\"]?\\]"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+H),POS:new RegExp(B,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),needsContext:new RegExp("^"+O+"*[>+~]|"+B,"i")},K=function(e){var t=g.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},Q=K(function(e){return e.appendChild(g.createComment("")),!e.getElementsByTagName("*").length}),G=K(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==p&&e.firstChild.getAttribute("href")==="#"}),Y=K(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),Z=K(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!e.getElementsByClassName||!e.getElementsByClassName("e").length?!1:(e.lastChild.className="e",e.getElementsByClassName("e").length===2)}),et=K(function(e){e.id=d+0,e.innerHTML="<a name='"+d+"'></a><div name='"+d+"'></div>",y.insertBefore(e,y.firstChild);var t=g.getElementsByName&&g.getElementsByName(d).length===2+g.getElementsByName(d+0).length;return r=!g.getElementById(d),y.removeChild(e),t});try{x.call(y.childNodes,0)[0].nodeType}catch(tt){x=function(e){var t,n=[];for(;t=this[e];e++)n.push(t);return n}}nt.matches=function(e,t){return nt(e,null,null,t)},nt.matchesSelector=function(e,t){return nt(t,null,null,[e]).length>0},s=nt.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(i===3||i===4)return e.nodeValue}else for(;t=e[r];r++)n+=s(t);return n},o=nt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},u=nt.contains=y.contains?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&n.contains&&n.contains(r))}:y.compareDocumentPosition?function(e,t){return t&&!!(e.compareDocumentPosition(t)&16)}:function(e,t){while(t=t.parentNode)if(t===e)return!0;return!1},nt.attr=function(e,t){var n,r=o(e);return r||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):r||Y?e.getAttribute(t):(n=e.getAttributeNode(t),n?typeof e[t]=="boolean"?e[t]?t:null:n.specified?n.value:null:null)},i=nt.selectors={cacheLength:50,createPseudo:N,match:J,attrHandle:G?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:r?function(e,t,n){if(typeof t.getElementById!==p&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==p&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==p&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:Q?function(e,t){if(typeof t.getElementsByTagName!==p)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if(e==="*"){var r,i=[],s=0;for(;r=n[s];s++)r.nodeType===1&&i.push(r);return i}return n},NAME:et&&function(e,t){if(typeof t.getElementsByName!==p)return t.getElementsByName(name)},CLASS:Z&&function(e,t,n){if(typeof t.getElementsByClassName!==p&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,""),e[3]=(e[4]||e[5]||"").replace($,""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1]==="nth"?(e[2]||nt.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd")),e[4]=+(e[6]+e[7]||e[2]==="odd")):e[2]&&nt.error(e[0]),e},PSEUDO:function(e){var t,n;if(J.CHILD.test(e[0]))return null;if(e[3])e[2]=e[3];else if(t=e[4])q.test(t)&&(n=ut(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t;return e.slice(0,3)}},filter:{ID:r?function(e){return e=e.replace($,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace($,""),function(t){var n=typeof t.getAttributeNode!==p&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return e==="*"?function(){return!0}:(e=e.replace($,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[d][e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==p&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r,i){var s=nt.attr(r,e);return s==null?t==="!=":t?(s+="",t==="="?s===n:t==="!="?s!==n:t==="^="?n&&s.indexOf(n)===0:t==="*="?n&&s.indexOf(n)>-1:t==="$="?n&&s.substr(s.length-n.length)===n:t==="~="?(" "+s+" ").indexOf(n)>-1:t==="|="?s===n||s.substr(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r){return e==="nth"?function(e){var t,i,s=e.parentNode;if(n===1&&r===0)return!0;if(s){i=0;for(t=s.firstChild;t;t=t.nextSibling)if(t.nodeType===1){i++;if(e===t)break}}return i-=r,i===n||i%n===0&&i/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling)if(n.nodeType===1)return!1;if(e==="first")return!0;n=t;case"last":while(n=n.nextSibling)if(n.nodeType===1)return!1;return!0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||nt.error("unsupported pseudo: "+e);return r[d]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=T.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:N(function(e){var t=[],n=[],r=a(e.replace(j,"$1"));return r[d]?N(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:N(function(e){return function(t){return nt(e,t).length>0}}),contains:N(function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!i.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||(t=e.nodeType)===3||t===4)return!1;e=e.nextSibling}return!0},header:function(e){return X.test(e.nodeName)},text:function(e){var t,n;return e.nodeName.toLowerCase()==="input"&&(t=e.type)==="text"&&((n=e.getAttribute("type"))==null||n.toLowerCase()===t)},radio:rt("radio"),checkbox:rt("checkbox"),file:rt("file"),password:rt("password"),image:rt("image"),submit:it("submit"),reset:it("reset"),button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},input:function(e){return V.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:st(function(){return[0]}),last:st(function(e,t){return[t-1]}),eq:st(function(e,t,n){return[n<0?n+t:n]}),even:st(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:st(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:st(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:st(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},f=y.compareDocumentPosition?function(e,t){return e===t?(l=!0,0):(!e.compareDocumentPosition||!t.compareDocumentPosition?e.compareDocumentPosition:e.compareDocumentPosition(t)&4)?-1:1}:function(e,t){if(e===t)return l=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,r,i=[],s=[],o=e.parentNode,u=t.parentNode,a=o;if(o===u)return ot(e,t);if(!o)return-1;if(!u)return 1;while(a)i.unshift(a),a=a.parentNode;a=u;while(a)s.unshift(a),a=a.parentNode;n=i.length,r=s.length;for(var f=0;f<n&&f<r;f++)if(i[f]!==s[f])return ot(i[f],s[f]);return f===n?ot(e,s[f],-1):ot(i[f],t,1)},[0,0].sort(f),h=!l,nt.uniqueSort=function(e){var t,n=[],r=1,i=0;l=h,e.sort(f);if(l){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e},nt.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},a=nt.compile=function(e,t){var n,r=[],i=[],s=A[d][e+" "];if(!s){t||(t=ut(e)),n=t.length;while(n--)s=ht(t[n]),s[d]?r.push(s):i.push(s);s=A(e,pt(i,r))}return s},g.querySelectorAll&&function(){var e,t=vt,n=/'|\\/g,r=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,i=[":focus"],s=[":active"],u=y.matchesSelector||y.mozMatchesSelector||y.webkitMatchesSelector||y.oMatchesSelector||y.msMatchesSelector;K(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||i.push("\\["+O+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||i.push(":checked")}),K(function(e){e.innerHTML="<p test=''></p>",e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+O+"*(?:\"\"|'')"),e.innerHTML="<input type='hidden'/>",e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")}),i=new RegExp(i.join("|")),vt=function(e,r,s,o,u){if(!o&&!u&&!i.test(e)){var a,f,l=!0,c=d,h=r,p=r.nodeType===9&&e;if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){a=ut(e),(l=r.getAttribute("id"))?c=l.replace(n,"\\$&"):r.setAttribute("id",c),c="[id='"+c+"'] ",f=a.length;while(f--)a[f]=c+a[f].join("");h=z.test(e)&&r.parentNode||r,p=a.join(",")}if(p)try{return S.apply(s,x.call(h.querySelectorAll(p),0)),s}catch(v){}finally{l||r.removeAttribute("id")}}return t(e,r,s,o,u)},u&&(K(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle"),s.push("!=",H)}catch(n){}}),s=new RegExp(s.join("|")),nt.matchesSelector=function(t,n){n=n.replace(r,"='$1']");if(!o(t)&&!s.test(n)&&!i.test(n))try{var a=u.call(t,n);if(a||e||t.document&&t.document.nodeType!==11)return a}catch(f){}return nt(n,null,null,[t]).length>0})}(),i.pseudos.nth=i.pseudos.eq,i.filters=mt.prototype=i.pseudos,i.setFilters=new mt,nt.attr=v.attr,v.find=nt,v.expr=nt.selectors,v.expr[":"]=v.expr.pseudos,v.unique=nt.uniqueSort,v.text=nt.getText,v.isXMLDoc=nt.isXML,v.contains=nt.contains}(e);var nt=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,it=/^.[^:#\[\.,]*$/,st=v.expr.match.needsContext,ot={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({find:function(e){var t,n,r,i,s,o,u=this;if(typeof e!="string")return v(e).filter(function(){for(t=0,n=u.length;t<n;t++)if(v.contains(u[t],this))return!0});o=this.pushStack("","find",e);for(t=0,n=this.length;t<n;t++){r=o.length,v.find(e,this[t],o);if(t>0)for(i=r;i<o.length;i++)for(s=0;s<r;s++)if(o[s]===o[i]){o.splice(i--,1);break}}return o},has:function(e){var t,n=v(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(v.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e,!1),"not",e)},filter:function(e){return this.pushStack(ft(this,e,!0),"filter",e)},is:function(e){return!!e&&(typeof e=="string"?st.test(e)?v(e,this.context).index(this[0])>=0:v.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,s=[],o=st.test(e)||typeof e!="string"?v(e,t||this.context):0;for(;r<i;r++){n=this[r];while(n&&n.ownerDocument&&n!==t&&n.nodeType!==11){if(o?o.index(n)>-1:v.find.matchesSelector(n,e)){s.push(n);break}n=n.parentNode}}return s=s.length>1?v.unique(s):s,this.pushStack(s,"closest",e)},index:function(e){return e?typeof e=="string"?v.inArray(this[0],v(e)):v.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?v(e,t):v.makeArray(e&&e.nodeType?[e]:e),r=v.merge(this.get(),n);return this.pushStack(ut(n[0])||ut(r[0])?r:v.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),v.fn.andSelf=v.fn.addBack,v.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return v.dir(e,"parentNode")},parentsUntil:function(e,t,n){return v.dir(e,"parentNode",n)},next:function(e){return at(e,"nextSibling")},prev:function(e){return at(e,"previousSibling")},nextAll:function(e){return v.dir(e,"nextSibling")},prevAll:function(e){return v.dir(e,"previousSibling")},nextUntil:function(e,t,n){return v.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return v.dir(e,"previousSibling",n)},siblings:function(e){return v.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return v.sibling(e.firstChild)},contents:function(e){return v.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);return nt.test(e)||(r=n),r&&typeof r=="string"&&(i=v.filter(r,i)),i=this.length>1&&!ot[e]?v.unique(i):i,this.length>1&&rt.test(e)&&(i=i.reverse()),this.pushStack(i,e,l.call(arguments).join(","))}}),v.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),t.length===1?v.find.matchesSelector(t[0],e)?[t[0]]:[]:v.find.matches(e,t)},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!v(s).is(r)))s.nodeType===1&&i.push(s),s=s[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var ct="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ht=/ jQuery\d+="(?:null|\d+)"/g,pt=/^\s+/,dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,mt=/<tbody/i,gt=/<|&#?\w+;/,yt=/<(?:script|style|link)/i,bt=/<(?:script|object|embed|option|style)/i,wt=new RegExp("<(?:"+ct+")[\\s/>]","i"),Et=/^(?:checkbox|radio)$/,St=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/\/(java|ecma)script/i,Tt=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,Nt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Ct=lt(i),kt=Ct.appendChild(i.createElement("div"));Nt.optgroup=Nt.option,Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,v.support.htmlSerialize||(Nt._default=[1,"X<div>","</div>"]),v.fn.extend({text:function(e){return v.access(this,function(e){return e===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(v.isFunction(e))return this.each(function(t){v(this).wrapAll(e.call(this,t))});if(this[0]){var t=v(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(e,this),"before",this.selector)}},after:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(this,e),"after",this.selector)}},remove:function(e,t){var n,r=0;for(;(n=this[r])!=null;r++)if(!e||v.filter(e,[n]).length)!t&&n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),v.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n);return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&v.cleanData(e.getElementsByTagName("*"));while(e.firstChild)e.removeChild(e.firstChild)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return v.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodeType===1?n.innerHTML.replace(ht,""):t;if(typeof e=="string"&&!yt.test(e)&&(v.support.htmlSerialize||!wt.test(e))&&(v.support.leadingWhitespace||!pt.test(e))&&!Nt[(vt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(dt,"<$1></$2>");try{for(;r<i;r++)n=this[r]||{},n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),n.innerHTML=e);n=0}catch(s){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return ut(this[0])?this.length?this.pushStack(v(v.isFunction(e)?e():e),"replaceWith",e):this:v.isFunction(e)?this.each(function(t){var n=v(this),r=n.html();n.replaceWith(e.call(this,t,r))}):(typeof e!="string"&&(e=v(e).detach()),this.each(function(){var t=this.nextSibling,n=this.parentNode;v(this).remove(),t?v(t).before(e):v(n).append(e)}))},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=[].concat.apply([],e);var i,s,o,u,a=0,f=e[0],l=[],c=this.length;if(!v.support.checkClone&&c>1&&typeof f=="string"&&St.test(f))return this.each(function(){v(this).domManip(e,n,r)});if(v.isFunction(f))return this.each(function(i){var s=v(this);e[0]=f.call(this,i,n?s.html():t),s.domManip(e,n,r)});if(this[0]){i=v.buildFragment(e,this,l),o=i.fragment,s=o.firstChild,o.childNodes.length===1&&(o=s);if(s){n=n&&v.nodeName(s,"tr");for(u=i.cacheable||c-1;a<c;a++)r.call(n&&v.nodeName(this[a],"table")?Lt(this[a],"tbody"):this[a],a===u?o:v.clone(o,!0,!0))}o=s=null,l.length&&v.each(l,function(e,t){t.src?v.ajax?v.ajax({url:t.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):v.error("no ajax"):v.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Tt,"")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),v.buildFragment=function(e,n,r){var s,o,u,a=e[0];return n=n||i,n=!n.nodeType&&n[0]||n,n=n.ownerDocument||n,e.length===1&&typeof a=="string"&&a.length<512&&n===i&&a.charAt(0)==="<"&&!bt.test(a)&&(v.support.checkClone||!St.test(a))&&(v.support.html5Clone||!wt.test(a))&&(o=!0,s=v.fragments[a],u=s!==t),s||(s=n.createDocumentFragment(),v.clean(e,n,s,r),o&&(v.fragments[a]=u&&s)),{fragment:s,cacheable:o}},v.fragments={},v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){v.fn[e]=function(n){var r,i=0,s=[],o=v(n),u=o.length,a=this.length===1&&this[0].parentNode;if((a==null||a&&a.nodeType===11&&a.childNodes.length===1)&&u===1)return o[t](this[0]),this;for(;i<u;i++)r=(i>0?this.clone(!0):this).get(),v(o[i])[t](r),s=s.concat(r);return this.pushStack(s,e,o.selector)}}),v.extend({clone:function(e,t,n){var r,i,s,o;v.support.html5Clone||v.isXMLDoc(e)||!wt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(kt.innerHTML=e.outerHTML,kt.removeChild(o=kt.firstChild));if((!v.support.noCloneEvent||!v.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!v.isXMLDoc(e)){Ot(e,o),r=Mt(e),i=Mt(o);for(s=0;r[s];++s)i[s]&&Ot(r[s],i[s])}if(t){At(e,o);if(n){r=Mt(e),i=Mt(o);for(s=0;r[s];++s)At(r[s],i[s])}}return r=i=null,o},clean:function(e,t,n,r){var s,o,u,a,f,l,c,h,p,d,m,g,y=t===i&&Ct,b=[];if(!t||typeof t.createDocumentFragment=="undefined")t=i;for(s=0;(u=e[s])!=null;s++){typeof u=="number"&&(u+="");if(!u)continue;if(typeof u=="string")if(!gt.test(u))u=t.createTextNode(u);else{y=y||lt(t),c=t.createElement("div"),y.appendChild(c),u=u.replace(dt,"<$1></$2>"),a=(vt.exec(u)||["",""])[1].toLowerCase(),f=Nt[a]||Nt._default,l=f[0],c.innerHTML=f[1]+u+f[2];while(l--)c=c.lastChild;if(!v.support.tbody){h=mt.test(u),p=a==="table"&&!h?c.firstChild&&c.firstChild.childNodes:f[1]==="<table>"&&!h?c.childNodes:[];for(o=p.length-1;o>=0;--o)v.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o])}!v.support.leadingWhitespace&&pt.test(u)&&c.insertBefore(t.createTextNode(pt.exec(u)[0]),c.firstChild),u=c.childNodes,c.parentNode.removeChild(c)}u.nodeType?b.push(u):v.merge(b,u)}c&&(u=c=y=null);if(!v.support.appendChecked)for(s=0;(u=b[s])!=null;s++)v.nodeName(u,"input")?_t(u):typeof u.getElementsByTagName!="undefined"&&v.grep(u.getElementsByTagName("input"),_t);if(n){m=function(e){if(!e.type||xt.test(e.type))return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)};for(s=0;(u=b[s])!=null;s++)if(!v.nodeName(u,"script")||!m(u))n.appendChild(u),typeof u.getElementsByTagName!="undefined"&&(g=v.grep(v.merge([],u.getElementsByTagName("script")),m),b.splice.apply(b,[s+1,0].concat(g)),s+=g.length)}return b},cleanData:function(e,t){var n,r,i,s,o=0,u=v.expando,a=v.cache,f=v.support.deleteExpando,l=v.event.special;for(;(i=e[o])!=null;o++)if(t||v.acceptData(i)){r=i[u],n=r&&a[r];if(n){if(n.events)for(s in n.events)l[s]?v.event.remove(i,s):v.removeEvent(i,s,n.handle);a[r]&&(delete a[r],f?delete i[u]:i.removeAttribute?i.removeAttribute(u):i[u]=null,v.deletedIds.push(r))}}}}),function(){var e,t;v.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=v.uaMatch(o.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),v.browser=t,v.sub=function(){function e(t,n){return new e.fn.init(t,n)}v.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(r,i){return i&&i instanceof v&&!(i instanceof e)&&(i=e(i)),v.fn.init.call(this,r,i,t)},e.fn.init.prototype=e.fn;var t=e(i);return e}}();var Dt,Pt,Ht,Bt=/alpha\([^)]*\)/i,jt=/opacity=([^)]*)/,Ft=/^(top|right|bottom|left)$/,It=/^(none|table(?!-c[ea]).+)/,qt=/^margin/,Rt=new RegExp("^("+m+")(.*)$","i"),Ut=new RegExp("^("+m+")(?!px)[a-z%]+$","i"),zt=new RegExp("^([-+])=("+m+")","i"),Wt={BODY:"block"},Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:0,fontWeight:400},$t=["Top","Right","Bottom","Left"],Jt=["Webkit","O","Moz","ms"],Kt=v.fn.toggle;v.fn.extend({css:function(e,n){return v.access(this,function(e,n,r){return r!==t?v.style(e,n,r):v.css(e,n)},e,n,arguments.length>1)},show:function(){return Yt(this,!0)},hide:function(){return Yt(this)},toggle:function(e,t){var n=typeof e=="boolean";return v.isFunction(e)&&v.isFunction(t)?Kt.apply(this,arguments):this.each(function(){(n?e:Gt(this))?v(this).show():v(this).hide()})}}),v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Dt(e,"opacity");return n===""?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":v.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var s,o,u,a=v.camelCase(n),f=e.style;n=v.cssProps[a]||(v.cssProps[a]=Qt(f,a)),u=v.cssHooks[n]||v.cssHooks[a];if(r===t)return u&&"get"in u&&(s=u.get(e,!1,i))!==t?s:f[n];o=typeof r,o==="string"&&(s=zt.exec(r))&&(r=(s[1]+1)*s[2]+parseFloat(v.css(e,n)),o="number");if(r==null||o==="number"&&isNaN(r))return;o==="number"&&!v.cssNumber[a]&&(r+="px");if(!u||!("set"in u)||(r=u.set(e,r,i))!==t)try{f[n]=r}catch(l){}},css:function(e,n,r,i){var s,o,u,a=v.camelCase(n);return n=v.cssProps[a]||(v.cssProps[a]=Qt(e.style,a)),u=v.cssHooks[n]||v.cssHooks[a],u&&"get"in u&&(s=u.get(e,!0,i)),s===t&&(s=Dt(e,n)),s==="normal"&&n in Vt&&(s=Vt[n]),r||i!==t?(o=parseFloat(s),r||v.isNumeric(o)?o||0:s):s},swap:function(e,t,n){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=s[i];return r}}),e.getComputedStyle?Dt=function(t,n){var r,i,s,o,u=e.getComputedStyle(t,null),a=t.style;return u&&(r=u.getPropertyValue(n)||u[n],r===""&&!v.contains(t.ownerDocument,t)&&(r=v.style(t,n)),Ut.test(r)&&qt.test(n)&&(i=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=u.width,a.width=i,a.minWidth=s,a.maxWidth=o)),r}:i.documentElement.currentStyle&&(Dt=function(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],s=e.style;return i==null&&s&&s[t]&&(i=s[t]),Ut.test(i)&&!Ft.test(t)&&(n=s.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),s.left=t==="fontSize"?"1em":i,i=s.pixelLeft+"px",s.left=n,r&&(e.runtimeStyle.left=r)),i===""?"auto":i}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&It.test(Dt(e,"display"))?v.swap(e,Xt,function(){return tn(e,t,r)}):tn(e,t,r)},set:function(e,n,r){return Zt(e,n,r?en(e,t,r,v.support.boxSizing&&v.css(e,"boxSizing")==="border-box"):0)}}}),v.support.opacity||(v.cssHooks.opacity={get:function(e,t){return jt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=v.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if(t>=1&&v.trim(s.replace(Bt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(r&&!r.filter)return}n.filter=Bt.test(s)?s.replace(Bt,i):s+" "+i}}),v(function(){v.support.reliableMarginRight||(v.cssHooks.marginRight={get:function(e,t){return v.swap(e,{display:"inline-block"},function(){if(t)return Dt(e,"marginRight")})}}),!v.support.pixelPosition&&v.fn.position&&v.each(["top","left"],function(e,t){v.cssHooks[t]={get:function(e,n){if(n){var r=Dt(e,t);return Ut.test(r)?v(e).position()[t]+"px":r}}}})}),v.expr&&v.expr.filters&&(v.expr.filters.hidden=function(e){return e.offsetWidth===0&&e.offsetHeight===0||!v.support.reliableHiddenOffsets&&(e.style&&e.style.display||Dt(e,"display"))==="none"},v.expr.filters.visible=function(e){return!v.expr.filters.hidden(e)}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){var r,i=typeof n=="string"?n.split(" "):[n],s={};for(r=0;r<4;r++)s[e+$t[r]+t]=i[r]||i[r-2]||i[0];return s}},qt.test(e)||(v.cssHooks[e+t].set=Zt)});var rn=/%20/g,sn=/\[\]$/,on=/\r?\n/g,un=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,an=/^(?:select|textarea)/i;v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?v.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||an.test(this.nodeName)||un.test(this.type))}).map(function(e,t){var n=v(this).val();return n==null?null:v.isArray(n)?v.map(n,function(e,n){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),v.param=function(e,n){var r,i=[],s=function(e,t){t=v.isFunction(t)?t():t==null?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=v.ajaxSettings&&v.ajaxSettings.traditional);if(v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){s(this.name,this.value)});else for(r in e)fn(r,e[r],n,s);return i.join("&").replace(rn,"+")};var ln,cn,hn=/#.*$/,pn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,vn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/\?/,yn=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bn=/([?&])_=[^&]*/,wn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,En=v.fn.load,Sn={},xn={},Tn=["*/"]+["*"];try{cn=s.href}catch(Nn){cn=i.createElement("a"),cn.href="",cn=cn.href}ln=wn.exec(cn.toLowerCase())||[],v.fn.load=function(e,n,r){if(typeof e!="string"&&En)return En.apply(this,arguments);if(!this.length)return this;var i,s,o,u=this,a=e.indexOf(" ");return a>=0&&(i=e.slice(a,e.length),e=e.slice(0,a)),v.isFunction(n)?(r=n,n=t):n&&typeof n=="object"&&(s="POST"),v.ajax({url:e,type:s,dataType:"html",data:n,complete:function(e,t){r&&u.each(r,o||[e.responseText,t,e])}}).done(function(e){o=arguments,u.html(i?v("<div>").append(e.replace(yn,"")).find(i):e)}),this},v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.each(["get","post"],function(e,n){v[n]=function(e,r,i,s){return v.isFunction(r)&&(s=s||i,i=r,r=t),v.ajax({type:n,url:e,data:r,success:i,dataType:s})}}),v.extend({getScript:function(e,n){return v.get(e,t,n,"script")},getJSON:function(e,t,n){return v.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?Ln(e,v.ajaxSettings):(t=e,e=v.ajaxSettings),Ln(e,t),e},ajaxSettings:{url:cn,isLocal:dn.test(ln[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Tn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Cn(Sn),ajaxTransport:Cn(xn),ajax:function(e,n){function T(e,n,s,a){var l,y,b,w,S,T=n;if(E===2)return;E=2,u&&clearTimeout(u),o=t,i=a||"",x.readyState=e>0?4:0,s&&(w=An(c,x,s));if(e>=200&&e<300||e===304)c.ifModified&&(S=x.getResponseHeader("Last-Modified"),S&&(v.lastModified[r]=S),S=x.getResponseHeader("Etag"),S&&(v.etag[r]=S)),e===304?(T="notmodified",l=!0):(l=On(c,w),T=l.state,y=l.data,b=l.error,l=!b);else{b=T;if(!T||e)T="error",e<0&&(e=0)}x.status=e,x.statusText=(n||T)+"",l?d.resolveWith(h,[y,T,x]):d.rejectWith(h,[x,T,b]),x.statusCode(g),g=t,f&&p.trigger("ajax"+(l?"Success":"Error"),[x,c,l?y:b]),m.fireWith(h,[x,T]),f&&(p.trigger("ajaxComplete",[x,c]),--v.active||v.event.trigger("ajaxStop"))}typeof e=="object"&&(n=e,e=t),n=n||{};var r,i,s,o,u,a,f,l,c=v.ajaxSetup({},n),h=c.context||c,p=h!==c&&(h.nodeType||h instanceof v)?v(h):v.event,d=v.Deferred(),m=v.Callbacks("once memory"),g=c.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!E){var n=e.toLowerCase();e=w[n]=w[n]||e,b[e]=t}return this},getAllResponseHeaders:function(){return E===2?i:null},getResponseHeader:function(e){var n;if(E===2){if(!s){s={};while(n=pn.exec(i))s[n[1].toLowerCase()]=n[2]}n=s[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return E||(c.mimeType=e),this},abort:function(e){return e=e||S,o&&o.abort(e),T(0,e),this}};d.promise(x),x.success=x.done,x.error=x.fail,x.complete=m.add,x.statusCode=function(e){if(e){var t;if(E<2)for(t in e)g[t]=[g[t],e[t]];else t=e[x.status],x.always(t)}return this},c.url=((e||c.url)+"").replace(hn,"").replace(mn,ln[1]+"//"),c.dataTypes=v.trim(c.dataType||"*").toLowerCase().split(y),c.crossDomain==null&&(a=wn.exec(c.url.toLowerCase()),c.crossDomain=!(!a||a[1]===ln[1]&&a[2]===ln[2]&&(a[3]||(a[1]==="http:"?80:443))==(ln[3]||(ln[1]==="http:"?80:443)))),c.data&&c.processData&&typeof c.data!="string"&&(c.data=v.param(c.data,c.traditional)),kn(Sn,c,n,x);if(E===2)return x;f=c.global,c.type=c.type.toUpperCase(),c.hasContent=!vn.test(c.type),f&&v.active++===0&&v.event.trigger("ajaxStart");if(!c.hasContent){c.data&&(c.url+=(gn.test(c.url)?"&":"?")+c.data,delete c.data),r=c.url;if(c.cache===!1){var N=v.now(),C=c.url.replace(bn,"$1_="+N);c.url=C+(C===c.url?(gn.test(c.url)?"&":"?")+"_="+N:"")}}(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentType),c.ifModified&&(r=r||c.url,v.lastModified[r]&&x.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&x.setRequestHeader("If-None-Match",v.etag[r])),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers)x.setRequestHeader(l,c.headers[l]);if(!c.beforeSend||c.beforeSend.call(h,x,c)!==!1&&E!==2){S="abort";for(l in{success:1,error:1,complete:1})x[l](c[l]);o=kn(xn,c,n,x);if(!o)T(-1,"No Transport");else{x.readyState=1,f&&p.trigger("ajaxSend",[x,c]),c.async&&c.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},c.timeout));try{E=1,o.send(b,T)}catch(k){if(!(E<2))throw k;T(-1,k)}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var Mn=[],_n=/\?/,Dn=/(=)\?(?=&|$)|\?\?/,Pn=v.now();v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mn.pop()||v.expando+"_"+Pn++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.data,f=n.url,l=n.jsonp!==!1,c=l&&Dn.test(f),h=l&&!c&&typeof a=="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(a);if(n.dataTypes[0]==="jsonp"||c||h)return s=n.jsonpCallback=v.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,o=e[s],c?n.url=f.replace(Dn,"$1"+s):h?n.data=a.replace(Dn,"$1"+s):l&&(n.url+=(_n.test(f)?"&":"?")+n.jsonp+"="+s),n.converters["script json"]=function(){return u||v.error(s+" was not called"),u[0]},n.dataTypes[0]="json",e[s]=function(){u=arguments},i.always(function(){e[s]=o,n[s]&&(n.jsonpCallback=r.jsonpCallback,Mn.push(s)),u&&v.isFunction(o)&&o(u[0]),u=o=t}),"script"}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),v.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=i.head||i.getElementsByTagName("head")[0]||i.documentElement;return{send:function(s,o){n=i.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){if(i||!n.readyState||/loaded|complete/.test(n.readyState))n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success")},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Hn,Bn=e.ActiveXObject?function(){for(var e in Hn)Hn[e](0,1)}:!1,jn=0;v.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&Fn()||In()}:Fn,function(e){v.extend(v.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(v.ajaxSettings.xhr()),v.support.ajax&&v.ajaxTransport(function(n){if(!n.crossDomain||v.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async);if(n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null),r=function(e,i){var u,f,l,c,h;try{if(r&&(i||a.readyState===4)){r=t,o&&(a.onreadystatechange=v.noop,Bn&&delete Hn[o]);if(i)a.readyState!==4&&a.abort();else{u=a.status,l=a.getAllResponseHeaders(),c={},h=a.responseXML,h&&h.documentElement&&(c.xml=h);try{c.text=a.responseText}catch(p){}try{f=a.statusText}catch(p){f=""}!u&&n.isLocal&&!n.crossDomain?u=c.text?200:404:u===1223&&(u=204)}}}catch(d){i||s(-1,d)}c&&s(u,f,c,l)},n.async?a.readyState===4?setTimeout(r,0):(o=++jn,Bn&&(Hn||(Hn={},v(e).unload(Bn)),Hn[o]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}});var qn,Rn,Un=/^(?:toggle|show|hide)$/,zn=new RegExp("^(?:([-+])=|)("+m+")([a-z%]*)$","i"),Wn=/queueHooks$/,Xn=[Gn],Vn={"*":[function(e,t){var n,r,i=this.createTween(e,t),s=zn.exec(t),o=i.cur(),u=+o||0,a=1,f=20;if(s){n=+s[2],r=s[3]||(v.cssNumber[e]?"":"px");if(r!=="px"&&u){u=v.css(i.elem,e,!0)||n||1;do a=a||".5",u/=a,v.style(i.elem,e,u+r);while(a!==(a=i.cur()/o)&&a!==1&&--f)}i.unit=r,i.start=u,i.end=s[1]?u+(s[1]+1)*n:n}return i}]};v.Animation=v.extend(Kn,{tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r<i;r++)n=e[r],Vn[n]=Vn[n]||[],Vn[n].unshift(t)},prefilter:function(e,t){t?Xn.unshift(e):Xn.push(e)}}),v.Tween=Yn,Yn.prototype={constructor:Yn,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(v.cssNumber[n]?"":"px")},cur:function(){var e=Yn.propHooks[this.prop];return e&&e.get?e.get(this):Yn.propHooks._default.get(this)},run:function(e){var t,n=Yn.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Yn.propHooks._default.set(this),this}},Yn.prototype.init.prototype=Yn.prototype,Yn.propHooks={_default:{get:function(e){var t;return e.elem[e.prop]==null||!!e.elem.style&&e.elem.style[e.prop]!=null?(t=v.css(e.elem,e.prop,!1,""),!t||t==="auto"?0:t):e.elem[e.prop]},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):e.elem.style&&(e.elem.style[v.cssProps[e.prop]]!=null||v.cssHooks[e.prop])?v.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Yn.propHooks.scrollTop=Yn.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.each(["toggle","show","hide"],function(e,t){var n=v.fn[t];v.fn[t]=function(r,i,s){return r==null||typeof r=="boolean"||!e&&v.isFunction(r)&&v.isFunction(i)?n.apply(this,arguments):this.animate(Zn(t,!0),r,i,s)}}),v.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Gt).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=v.isEmptyObject(e),s=v.speed(t,n,r),o=function(){var t=Kn(this,v.extend({},e),s);i&&t.stop(!0)};return i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return typeof e!="string"&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=e!=null&&e+"queueHooks",s=v.timers,o=v._data(this);if(n)o[n]&&o[n].stop&&i(o[n]);else for(n in o)o[n]&&o[n].stop&&Wn.test(n)&&i(o[n]);for(n=s.length;n--;)s[n].elem===this&&(e==null||s[n].queue===e)&&(s[n].anim.stop(r),t=!1,s.splice(n,1));(t||!r)&&v.dequeue(this,e)})}}),v.each({slideDown:Zn("show"),slideUp:Zn("hide"),slideToggle:Zn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){v.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),v.speed=function(e,t,n){var r=e&&typeof e=="object"?v.extend({},e):{complete:n||!n&&t||v.isFunction(e)&&e,duration:e,easing:n&&t||t&&!v.isFunction(t)&&t};r.duration=v.fx.off?0:typeof r.duration=="number"?r.duration:r.duration in v.fx.speeds?v.fx.speeds[r.duration]:v.fx.speeds._default;if(r.queue==null||r.queue===!0)r.queue="fx";return r.old=r.complete,r.complete=function(){v.isFunction(r.old)&&r.old.call(this),r.queue&&v.dequeue(this,r.queue)},r},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},v.timers=[],v.fx=Yn.prototype.init,v.fx.tick=function(){var e,n=v.timers,r=0;qn=v.now();for(;r<n.length;r++)e=n[r],!e()&&n[r]===e&&n.splice(r--,1);n.length||v.fx.stop(),qn=t},v.fx.timer=function(e){e()&&v.timers.push(e)&&!Rn&&(Rn=setInterval(v.fx.tick,v.fx.interval))},v.fx.interval=13,v.fx.stop=function(){clearInterval(Rn),Rn=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fx.step={},v.expr&&v.expr.filters&&(v.expr.filters.animated=function(e){return v.grep(v.timers,function(t){return e===t.elem}).length});var er=/^(?:body|html)$/i;v.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){v.offset.setOffset(this,e,t)});var n,r,i,s,o,u,a,f={top:0,left:0},l=this[0],c=l&&l.ownerDocument;if(!c)return;return(r=c.body)===l?v.offset.bodyOffset(l):(n=c.documentElement,v.contains(n,l)?(typeof l.getBoundingClientRect!="undefined"&&(f=l.getBoundingClientRect()),i=tr(c),s=n.clientTop||r.clientTop||0,o=n.clientLeft||r.clientLeft||0,u=i.pageYOffset||n.scrollTop,a=i.pageXOffset||n.scrollLeft,{top:f.top+u-s,left:f.left+a-o}):f)},v.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return v.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(v.css(e,"marginTop"))||0,n+=parseFloat(v.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var r=v.css(e,"position");r==="static"&&(e.style.position="relative");var i=v(e),s=i.offset(),o=v.css(e,"top"),u=v.css(e,"left"),a=(r==="absolute"||r==="fixed")&&v.inArray("auto",[o,u])>-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),v.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},v.fn.extend({position:function(){if(!this[0])return;var e=this[0],t=this.offsetParent(),n=this.offset(),r=er.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(v.css(e,"marginTop"))||0,n.left-=parseFloat(v.css(e,"marginLeft"))||0,r.top+=parseFloat(v.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(v.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||i.body;while(e&&!er.test(e.nodeName)&&v.css(e,"position")==="static")e=e.offsetParent;return e||i.body})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);v.fn[e]=function(i){return v.access(this,function(e,i,s){var o=tr(e);if(s===t)return o?n in o?o[n]:o.document.documentElement[i]:e[i];o?o.scrollTo(r?v(o).scrollLeft():s,r?s:v(o).scrollTop()):e[i]=s},e,i,arguments.length,null)}}),v.each({Height:"height",Width:"width"},function(e,n){v.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){v.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!="boolean"),u=r||(i===!0||s===!0?"margin":"border");return v.access(this,function(n,r,i){var s;return v.isWindow(n)?n.document.documentElement["client"+e]:n.nodeType===9?(s=n.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])):i===t?v.css(n,r,i,u):v.style(n,r,i,u)},n,o?i:t,o,null)}})}),e.jQuery=e.$=v,typeof define=="function"&&define.amd&&define.amd.
2jQuery&&define("jquery",[],function(){return v})})(window);
3;/*})'"*/
4;/*})'"*/
5(function(e){var n=e.fn.jquery.split('.'),t=parseInt(n[0]),i=parseInt(n[1]),r=parseInt(n[2]),f=(r.toString()!==n[2]);if((t>3)||(t===3&&i>4)||(t===3&&i===4&&r>0)||(t===3&&i===4&&r===0&&!f)){return};e.extend=e.fn.extend=function(){var o,r,f,t,a,s,n=arguments[0]||{},i=1,l=arguments.length,u=!1;if(typeof n==='boolean'){u=n;n=arguments[i]||{};i++};if(typeof n!=='object'&&!e.isFunction(n)){n={}};if(i===l){n=this;i--};for(;i<l;i++){if((o=arguments[i])!=null){for(r in o){t=o[r];if(r==='__proto__'||n===t){continue};if(u&&t&&(e.isPlainObject(t)||(a=e.isArray(t)))){f=n[r];if(a&&!e.isArray(f)){s=[]}
6else if(!a&&!e.isPlainObject(f)){s={}}
7else{s=f};a=!1;n[r]=e.extend(u,s,t)}
8else if(t!==undefined){n[r]=t}}}};return n}})(jQuery);;/*})'"*/
9(function(t){var o=t.fn.jquery.split('.'),e=parseInt(o[0]),r=parseInt(o[1]);if((e>3)||(e===3&&r>=5)){return};var p=['a','abbr','address','article','aside','audio','b','bdi','bdo','blockquote','button','canvas','caption','cite','code','data','datalist','dd','del','details','dfn','div','dl','dt','em','fieldset','figcaption','figure','footer','form','h1','h2','h3','h4','h5','h6','header','hgroup','i','ins','kbd','label','legend','li','main','map','mark','menu','meter','nav','ol','optgroup','option','output','p','picture','pre','progress','q','rp','rt','ruby','s','samp','section','select','small','source','span','strong','sub','summary','sup','table','tbody','td','tfoot','th','thead','time','tr','u','ul','var','video'],i='('+p.join('|')+')',c='[\\x20\\t\\r\\n\\f]',s=new RegExp('<'+i+'\\/>','gi'),b=new RegExp('<'+i+'('+c+'[^>]*)\\/>','gi'),a;if(e<3){a=/<([\w:]+)/}
10else if(r<4){a=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i}
11else{a=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i};var f=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi;t.extend({htmlPrefilter:function(t){var i=(a.exec(t)||['',''])[1].toLowerCase();if((i==='option'||i==='optgroup')&&t.match(/<\/?select/i)){t=''};t=t.replace(s,'<$1></$1>');t=t.replace(b,'<$1$2></$1>');if((e===1&&r<12)||(e===2&&r<2)){var p=t.replace(f,'<$1></$2>');if(p!==t){var n={thead:[1,'<table>','</table>'],col:[2,'<table><colgroup>','</colgroup></table>'],tr:[2,'<table><tbody>','</tbody></table>'],td:[3,'<table><tbody><tr>','</tr></tbody></table>'],};n.tbody=n.tfoot=n.colgroup=n.caption=n.thead;n.th=n.td;var o=function(t){var e=n[i];if(e){t=e[1]+t+e[2]};return t},l=function(t){var e=window.document.implementation.createHTMLDocument('');e.body.innerHTML=t;return e.body?e.body.innerHTML:''},d=l(o(t)),u=l(o(p));if(u===''||d===''||(u!==d)){t=''}}};return t}});if((e===1&&r<12)||(e===2&&r<2)){var u=t.fn.html;t.fn.extend({html:function(e){if(typeof e==='string'){e=t.htmlPrefilter(e)};return u.apply(this,arguments.length?[e]:[])}});var n=/<|&#?\w+;/;if(e===1&&r<9){var d=t.clean;t.extend({'clean':function(e,i,o,l){for(var a=0,r;(r=e[a])!=null;a++){if(typeof r==='string'&&n.test(r)){e[a]=r=t.htmlPrefilter(r)}};return d.call(this,e,i,o,l)}})}
12else{var l=t.buildFragment;t.extend({'buildFragment':function(e,i,o,d){var u=e.length;for(var a=0;a<u;a++){var r=e[a];if(r||r===0){if(t.type(r)!=='object'&&n.test(r)){e[a]=r=t.htmlPrefilter(r)}}};return l.call(this,e,i,o,d)}})}}})(jQuery);;/*})'"*/
13(function(n){var e={},r=0;n.fn.once=function(i,o){if(typeof i!='string'){if(!(i in e)){e[i]=++r};if(!o){o=i};i='jquery-once-'+e[i]};var s=i+'-processed',t=this.not('.'+s).addClass(s);return n.isFunction(o)?t.each(o):t};n.fn.removeOnce=function(e,r){var i=e+'-processed',o=this.filter('.'+i).removeClass(i);return n.isFunction(r)?o.each(r):o}})(jQuery);;/*})'"*/
14;var Drupal=Drupal||{'settings':{},'behaviors':{},'locale':{}};jQuery.noConflict();(function(t){var r=t.fn.init;t.fn.init=function(t,e,a){if(t&&typeof t==='string'){var n=t.indexOf('#');if(n>=0){var o=t.indexOf('<');if(o>n){throw'Syntax error, unrecognized expression: '+t}}};return r.call(this,t,e,a)};t.fn.init.prototype=r.prototype;if(t.ajaxPrefilter){t.ajaxPrefilter(function(t){if(t.crossDomain){t.contents.script=!1}})}
15else if(t.httpData){var e=t.httpData;t.httpData=function(t,r,a){if(!r&&!Drupal.urlIsLocal(a.url)){var n=t.getResponseHeader('content-type')||'';if(n.indexOf('javascript')>=0){r='text'}};return e.call(this,t,r,a)};t.httpData.prototype=e.prototype};Drupal.attachBehaviors=function(e,r){e=e||document;r=r||Drupal.settings;t.each(Drupal.behaviors,function(){if(t.isFunction(this.attach)){this.attach(e,r)}})};Drupal.detachBehaviors=function(e,r,a){e=e||document;r=r||Drupal.settings;a=a||'unload';t.each(Drupal.behaviors,function(){if(t.isFunction(this.detach)){this.detach(e,r,a)}})};Drupal.checkPlain=function(t){var e,a,r={'&':'&amp;','\'':'&#39;','"':'&quot;','<':'&lt;','>':'&gt;'};t=String(t);for(e in r){if(r.hasOwnProperty(e)){a=new RegExp(e,'g');t=t.replace(a,r[e])}};return t};Drupal.formatString=function(t,e){for(var r in e){if(e.hasOwnProperty(r)){switch(r.charAt(0)){case'@':e[r]=Drupal.checkPlain(e[r]);break;case'!':break;default:e[r]=Drupal.theme('placeholder',e[r]);break}}};return Drupal.stringReplace(t,e,null)};Drupal.stringReplace=function(e,r,a){if(e.length===0){return e};if(!t.isArray(a)){a=[];for(var i in r){if(r.hasOwnProperty(i)){a.push(i)}};a.sort(function(t,e){return t.length-e.length})};if(a.length===0){return e};var l=a.pop(),o=e.split(l);
15if(a.length){for(var n=0;n<o.length;n++){o[n]=Drupal.stringReplace(o[n],r,a.slice(0))}};return o.join(r[l])};Drupal.t=function(t,r,e){e=e||{};e.context=e.context||'';if(Drupal.locale.strings&&Drupal.locale.strings[e.context]&&Drupal.locale.strings[e.context][t]){t=Drupal.locale.strings[e.context][t]};if(r){t=Drupal.formatString(t,r)};return t};Drupal.formatPlural=function(t,e,a,r,o){r=r||{};r['@count']=t;var n=Drupal.locale.pluralFormula?Drupal.locale.pluralFormula(r['@count']):((r['@count']==1)?0:1);if(n==0){return Drupal.t(e,r,o)}
16else if(n==1){return Drupal.t(a,r,o)}
17else{r['@count['+n+']']=r['@count'];delete r['@count'];return Drupal.t(a.replace('@count','@count['+n+']'),r,o)}};Drupal.absoluteUrl=function(t){var r=document.createElement('a');try{t=decodeURIComponent(t)}catch(e){};r.setAttribute('href',t);return r.cloneNode(!1).href};Drupal.urlIsLocal=function(t){var e=Drupal.absoluteUrl(t),n=location.protocol;if(n==='http:'&&e.indexOf('https:')===0){n='https:'};var r=n+'//'+location.host+Drupal.settings.basePath.slice(0,-1);try{e=decodeURIComponent(e)}catch(a){};try{r=decodeURIComponent(r)}catch(a){};return e===r||e.indexOf(r+'/')===0};Drupal.sanitizeAjaxUrl=function(t){var e=/\=\?(&|$)/;while(t.match(e)){t=t.replace(e,'')};return t};Drupal.theme=function(t){var e=Array.prototype.slice.apply(arguments,[1]);return(Drupal.theme[t]||Drupal.theme.prototype[t]).apply(this,e)};Drupal.freezeHeight=function(){Drupal.unfreezeHeight();t('<div id="freeze-height"></div>').css({position:'absolute',top:'0px',left:'0px',width:'1px',height:t('body').css('height')}).appendTo('body')};Drupal.unfreezeHeight=function(){t('#freeze-height').remove()};Drupal.encodePath=function(t,e){e=e||location.href;return encodeURIComponent(t).replace(/%2F/g,'/')};Drupal.getSelection=function(t){if(typeof t.selectionStart!='number'&&document.selection){var e=document.selection.createRange(),r=e.duplicate();r.moveToElementText(t);r.setEndPoint('EndToEnd',e);var a=r.text.length-e.text.length,n=a+e.text.length;return{'start':a,'end':n}};
vendor: 12,944 bytes, lines 17-33
17return{'start':t.selectionStart,'end':t.selectionEnd}};Drupal.beforeUnloadCalled=!1;t(window).bind('beforeunload pagehide',function(){Drupal.beforeUnloadCalled=!0});Drupal.displayAjaxError=function(t){if(!Drupal.beforeUnloadCalled){alert(t)}};Drupal.ajaxError=function(e,r,a){var o,i,u,n,p,s;if(e.status){o='\n'+Drupal.t('An AJAX HTTP error occurred.')+'\n'+Drupal.t('HTTP Result Code: !status',{'!status':e.status})}
18else{o='\n'+Drupal.t('An AJAX HTTP request terminated abnormally.')};o+='\n'+Drupal.t('Debugging information follows.');u='\n'+Drupal.t('Path: !uri',{'!uri':r});i='';try{i='\n'+Drupal.t('StatusText: !statusText',{'!statusText':t.trim(e.statusText)})}catch(l){};n='';try{n='\n'+Drupal.t('ResponseText: !responseText',{'!responseText':t.trim(e.responseText)})}catch(l){};n=n.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');n=n.replace(/[\n]+\s+/g,'\n');p=e.status==0?('\n'+Drupal.t('ReadyState: !readyState',{'!readyState':e.readyState})):'';a=a?('\n'+Drupal.t('CustomMessage: !customMessage',{'!customMessage':a})):'';s=o+u+i+a+n+p;return s};t('html').addClass('js');t(function(){if(Drupal.settings.setHasJsCookie===1){document.cookie='has_js=1; path=/; SameSite=Lax'}});t(function(){if(jQuery.support.positionFixed===undefined){var e=t('<div style="position:fixed; top:10px" />').appendTo(document.body);jQuery.support.positionFixed=e[0].offsetTop===10;e.remove()}});t(function(){Drupal.attachBehaviors(document,Drupal.settings)});Drupal.theme.prototype={placeholder:function(t){return'<em class="placeholder">'+Drupal.checkPlain(t)+'</em>'}}})(jQuery);;/*})'"*/
19/*! jQuery UI - v1.10.2 - 2013-03-14
20* http://jqueryui.com
21* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
22(function(e,t){function i(t,i){var a,n,r,o=t.nodeName.toLowerCase();return"area"===o?(a=t.parentNode,n=a.name,t.href&&n&&"map"===a.nodeName.toLowerCase()?(r=e("img[usemap=#"+n+"]")[0],!!r&&s(r)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}var a=0,n=/^ui-id-\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:"1.10.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,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,SPACE:32,TAB:9,UP:38}}),e.fn.extend({focus:function(t){return function(i,s){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),s&&s.call(t)},i)}):t.apply(this,arguments)}}(e.fn.focus),scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var s,a,n=e(this[0]);n.length&&n[0]!==document;){if(s=n.css("position"),("absolute"===s||"relative"===s||"fixed"===s)&&(a=parseInt(n.css("zIndex"),10),!isNaN(a)&&0!==a))return a;n=n.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++a)})},removeUniqueId:function(){return this.each(function(){n.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,s){return!!e.data(t,s[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var s=e.attr(t,"tabindex"),a=isNaN(s);return(a||s>=0)&&i(t,!a)}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(i,s){function a(t,i,s,a){return e.each(n,function(){i-=parseFloat(e.css(t,"padding"+this))||0,s&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),a&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var n="Width"===s?["Left","Right"]:["Top","Bottom"],r=s.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+s]=function(i){return i===t?o["inner"+s].call(this):this.each(function(){e(this).css(r,a(this,i)+"px")})},e.fn["outer"+s]=function(t,i){return"number"!=typeof t?o["outer"+s].call(this,t):this.each(function(){e(this).css(r,a(this,t,!0,i)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart="onselectstart"in document.createElement("div"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,i,s){var a,n=e.ui[t].prototype;for(a in s)n.plugins[a]=n.plugins[a]||[],n.plugins[a].push([i,s[a]])},call:function(e,t,i){var s,a=e.plugins[t];if(a&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(s=0;a.length>s;s++)e.options[a[s][0]]&&a[s][1].apply(e.element,i)}},hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",a=!1;return t[s]>0?!0:(t[s]=1,a=t[s]>0,t[s]=0,a)}})})(jQuery);
23;/*})'"*/
24;/*})'"*/
25/*! jQuery UI - v1.10.2 - 2013-03-14
26* http://jqueryui.com
27* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
28(function(e,t){var i=0,s=Array.prototype.slice,n=e.cleanData;e.cleanData=function(t){for(var i,s=0;null!=(i=t[s]);s++)try{e(i).triggerHandler("remove")}catch(a){}n(t)},e.widget=function(i,s,n){var a,r,o,h,l={},u=i.split(".")[0];i=i.split(".")[1],a=u+"-"+i,n||(n=s,s=e.Widget),e.expr[":"][a.toLowerCase()]=function(t){return!!e.data(t,a)},e[u]=e[u]||{},r=e[u][i],o=e[u][i]=function(e,i){return this._createWidget?(arguments.length&&this._createWidget(e,i),t):new o(e,i)},e.extend(o,r,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),h=new s,h.options=e.widget.extend({},h.options),e.each(n,function(i,n){return e.isFunction(n)?(l[i]=function(){var e=function(){return s.prototype[i].apply(this,arguments)},t=function(e){return s.prototype[i].apply(this,e)};return function(){var i,s=this._super,a=this._superApply;return this._super=e,this._superApply=t,i=n.apply(this,arguments),this._super=s,this._superApply=a,i}}(),t):(l[i]=n,t)}),o.prototype=e.widget.extend(h,{widgetEventPrefix:r?h.widgetEventPrefix:i},l,{constructor:o,namespace:u,widgetName:i,widgetFullName:a}),r?(e.each(r._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete r._childConstructors):s._childConstructors.push(o),e.widget.bridge(i,o)},e.widget.extend=function(i){for(var n,a,r=s.call(arguments,1),o=0,h=r.length;h>o;o++)for(n in r[o])a=r[o][n],r[o].hasOwnProperty(n)&&a!==t&&(i[n]=e.isPlainObject(a)?e.isPlainObject(i[n])?e.widget.extend({},i[n],a):e.widget.extend({},a):a);return i},e.widget.bridge=function(i,n){var a=n.prototype.widgetFullName||i;e.fn[i]=function(r){var o="string"==typeof r,h=s.call(arguments,1),l=this;return r=!o&&h.length?e.widget.extend.apply(null,[r].concat(h)):r,o?this.each(function(){var s,n=e.data(this,a);return n?e.isFunction(n[r])&&"_"!==r.charAt(0)?(s=n[r].apply(n,h),s!==n&&s!==t?(l=s&&s.jquery?l.pushStack(s.get()):s,!1):t):e.error("no such method '"+r+"' for "+i+" widget instance"):e.error("cannot call methods on "+i+" prior to initialization; "+"attempted to call method '"+r+"'")}):this.each(function(){var t=e.data(this,a);t?t.option(r||{})._init():e.data(this,a,new n(r,this))}),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,s){s=e(s||this.defaultElement||this)[0],this.element=e(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),s!==this&&(e.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===s&&this.destroy()}}),this.document=e(s.style?s.ownerDocument:s.document||s),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(i,s){var n,a,r,o=i;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof i)if(o={},n=i.split("."),i=n.shift(),n.length){for(a=o[i]=e.widget.extend({},this.options[i]),r=0;n.length-1>r;r++)a[n[r]]=a[n[r]]||{},a=a[n[r]];if(i=n.pop(),s===t)return a[i]===t?null:a[i];a[i]=s}else{if(s===t)return this.options[i]===t?null:this.options[i];o[i]=s}return this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(i,s,n){var a,r=this;"boolean"!=typeof i&&(n=s,s=i,i=!1),n?(s=a=e(s),this.bindings=this.bindings.add(s)):(n=s,s=this.element,a=this.widget()),e.each(n,function(n,o){function h(){return i||r.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof o?r[o]:o).apply(r,arguments):t}"string"!=typeof o&&(h.guid=o.guid=o.guid||h.guid||e.guid++);var l=n.match(/^(\w+)\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?a.delegate(c,u,h):s.bind(u,h)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){function i(){return("string"==typeof e?s[e]:e).apply(s,arguments)}var s=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,s){var n,a,r=this.options[t];if(s=s||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(n in a)n in i||(i[n]=a[n]);return this.element.trigger(i,s),!(e.isFunction(r)&&r.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(s,n,a){"string"==typeof n&&(n={effect:n});var r,o=n?n===!0||"number"==typeof n?i:n.effect||i:t;n=n||{},"number"==typeof n&&(n={duration:n}),r=!e.isEmptyObject(n),n.complete=a,n.delay&&s.delay(n.delay),r&&e.effects&&e.effects.effect[o]?s[t](n):o!==t&&s[o]?s[o](n.duration,n.easing,a):s.queue(function(i){e(this)[t](),a&&a.call(s[0]),i()})}})})(jQuery);
29;/*})'"*/
30;/*})'"*/
31;if(typeof Object.assign!='function'){Object.assign=function(n){'use strict';if(n==null){throw new TypeError('Cannot convert undefined or null to object')};n=Object(n);for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t!=null){for(var r in t){if(Object.prototype.hasOwnProperty.call(t,r)){n[r]=t[r]}}}};return n}};;/*})'"*/
32/* Riot v2.3.17, @license MIT */
33!function(t,e){"use strict";function n(t,e,n){var r={};return r[t.key]=e,t.pos&&(r[t.pos]=n),r}function r(t,e){for(var n,r=e.length,o=t.length;r>o;)n=e[--r],e.splice(r,1),n.unmount()}
33function o(t,e){Object.keys(t.tags).forEach(function(n){var r=t.tags[n];O(r)?g(r,function(t){N(t,n,e)}):N(r,n,e)})}function i(t,e,n){var r,o=t._root;for(t._virts=[];o;)r=o.nextSibling,n?e.insertBefore(o,n._root):e.appendChild(o),t._virts.push(o),o=r}function u(t,e,n,r){for(var o,i=t._root,u=0;r>u;u++)o=i.nextSibling,e.insertBefore(i,n._root),i=o}function a(t,e,a){m(t,"each");var c,f=typeof b(t,"no-reorder")!==Y||m(t,"no-reorder"),l=S(t),p=Z[l]||{tmpl:t.outerHTML},d=nt.test(l),g=t.parentNode,h=document.createTextNode(""),v=w(t),y="option"===l.toLowerCase(),x=[],_=[],N="VIRTUAL"==t.tagName;a=ut.loopKeys(a),g.insertBefore(h,t),e.one("before-mount",function(){t.parentNode.removeChild(t),g.stub&&(g=e.root)}).on("update",function(){var m=ut(a.val,e),b=document.createDocumentFragment();O(m)||(c=m||!1,m=c?Object.keys(m).map(function(t){return n(a,t,m[t])}):[]);for(var w=0,C=m.length;C>w;w++){var L=m[w],S=f&&L instanceof Object&&!c,T=_.indexOf(L),M=~T&&S?T:w,A=x[M];L=!c&&a.key?n(a,L,w):L,!S&&!A||S&&!~T||!A?(A=new s(p,{parent:e,isLoop:!0,hasImpl:!!Z[l],root:d?g:t.cloneNode(),item:L},t.innerHTML),A.mount(),N&&(A._root=A.root.firstChild),w!=x.length&&x[w]?(N?i(A,g,x[w]):g.insertBefore(A.root,x[w].root),_.splice(w,0,L)):N?i(A,b):b.appendChild(A.root),x.splice(w,0,A),M=w):A.update(L,!0),M!==w&&S&&x[w]&&(N?u(A,g,x[w],t.childNodes.length):g.insertBefore(A.root,x[w].root),a.pos&&(A[a.pos]=w),x.splice(w,0,x.splice(M,1)[0]),_.splice(w,0,_.splice(M,1)[0]),!v&&A.tags&&o(A,w)),A._item=L,E(A,"_parent",e)}if(r(m,x),y){if(g.appendChild(b),g.length){var j,R=g.options;for(g.selectedIndex=j=-1,w=0;w<R.length;w++)(R[w].selected=R[w].__selected)&&0>j&&(g.selectedIndex=j=w)}}else g.insertBefore(b,h);v&&(e.tags[l]=x),_=m.slice()})}function c(t,e,n,r){R(t,function(t){if(1==t.nodeType){if(t.isLoop=t.isLoop||t.parentNode&&t.parentNode.isLoop||b(t,"each")?1:0,n){var o=w(t);o&&!t.isLoop&&n.push(C(o,{root:t,parent:e},t.innerHTML,e))}t.isLoop&&!r||K(t,e,[])}})}function f(t,e,n){function r(t,e,r){ut.hasExpr(e)&&n.push(T({dom:t,expr:e},r))}R(t,function(t){var n,o=t.nodeType;return 3==o&&"STYLE"!=t.parentNode.tagName&&r(t,t.nodeValue),1==o?(n=b(t,"each"))?(a(t,e,n),!1):(g(t.attributes,function(e){var n=e.name,o=n.split("__")[1];return r(t,e.value,{attr:o||n,bool:o}),o?(m(t,n),!1):void 0}),w(t)?!1:void 0):void 0})}function s(t,n,r){function o(){var t=N&&_?p:w||p;g(k.attributes,function(e){var n=e.value;b[y(e.name)]=ut.hasExpr(n)?ut(n,t):n}),g(Object.keys(F),function(e){b[y(e)]=ut(F[e],t)})}function i(t){for(var e in C)typeof p[e]!==tt&&A(p,e)&&(p[e]=t[e])}function u(){p.parent&&_&&g(Object.keys(p.parent),function(t){var e=!M(rt,t)&&M(P,t);(typeof p[t]===tt||e)&&(e||P.push(t),p[t]=p.parent[t])})}function a(t){p.update(t,!0)}function s(t){if(g(R,function(e){e[t?"mount":"unmount"]()}),w){var e=t?"on":"off";_?w[e]("unmount",p.unmount):w[e]("update",a)[e]("unmount",p.unmount)}}var l,p=V.observable(this),b=B(n.opts)||{},w=n.parent,_=n.isLoop,N=n.hasImpl,C=j(n.item),S=[],R=[],k=n.root,H=k.tagName.toLowerCase(),F={},P=[];t.name&&k._tag&&k._tag.unmount(!0),this.isMounted=!1,k.isLoop=_,k._tag=this,E(this,"_riot_id",++z),T(this,{parent:w,root:k,opts:b,tags:{}},C),g(k.attributes,function(t){var e=t.value;ut.hasExpr(e)&&(F[t.name]=e)}),l=at(t.tmpl,r),E(this,"update",function(t,e){return t=j(t),u(),t&&v(C)&&(i(t),C=t),T(p,t),o(),p.trigger("update",t),d(S,p),e&&p.parent?p.parent.one("updated",function(){p.trigger("updated")}):ft(function(){p.trigger("updated")}),this}),E(this,"mixin",function(){return g(arguments,function(t){var e;t=typeof t===Y?V.mixin(t):t,h(t)?(e=new t,t=t.prototype):e=t,g(Object.getOwnPropertyNames(t),function(t){"init"!=t&&(p[t]=h(e[t])?e[t].bind(p):e[t])}),e.init&&e.init.bind(p)()}),this}),E(this,"mount",function(){o();var e=V.mixin(Q);if(e&&p.mixin(e),t.fn&&t.fn.call(p,b),f(l,p,S),s(!0),t.attrs&&$(t.attrs,function(t,e){x(k,t,e)}),(t.attrs||N)&&f(p.root,p,S),p.parent&&!_||p.update(C),p.trigger("before-mount"),_&&!N)k=l.firstChild;else{for(;l.firstChild;)k.appendChild(l.firstChild);k.stub&&(k=w.root)}E(p,"root",k),_&&c(p.root,p.parent,null,!0),!p.parent||p.parent.isMounted?(p.isMounted=!0,p.trigger("mount")):p.parent.one("mount",function(){I(p.root)||(p.parent.isMounted=p.isMounted=!0,p.trigger("mount"))})}),E(this,"unmount",function(t){var n,r=k,o=r.parentNode,i=U.indexOf(p);if(p.trigger("before-unmount"),~i&&U.splice(i,1),this._virts&&g(this._virts,function(t){t.parentNode&&t.parentNode.removeChild(t)}),o){if(w)n=L(w),O(n.tags[H])?g(n.tags[H],function(t,e){t._riot_id==p._riot_id&&n.tags[H].splice(e,1)}):n.tags[H]=e;else for(;r.firstChild;)r.removeChild(r.firstChild);t?m(o,"riot-tag"):o.removeChild(r)}p.trigger("unmount"),s(),p.off("*"),p.isMounted=!1,delete k._tag}),c(l,this,R)}function l(e,n,r,o){r[e]=function(e){var i,u=o._parent,a=o._item;if(!a)for(;u&&!a;)a=u._item,u=u._parent;e=e||t.event,A(e,"currentTarget")&&(e.currentTarget=r),A(e,"target")&&(e.target=e.srcElement),A(e,"which")&&(e.which=e.charCode||e.keyCode),e.item=a,n.call(o,e)===!0||/radio|check/.test(r.type)||(e.preventDefault&&e.preventDefault(),e.returnValue=!1),e.preventUpdate||(i=a?L(u):o,i.update())}}function p(t,e,n){t&&(t.insertBefore(n,e),t.removeChild(e))}function d(t,e){g(t,function(t,n){var r=t.dom,o=t.attr,i=ut(t.expr,e),u=t.dom.parentNode;if(t.bool?(i=!!i,"selected"===o&&(r.__selected=i)):null==i&&(i=""),t.value!==i){if(t.value=i,!o)return i+="",void(u&&("TEXTAREA"===u.tagName?(u.value=i,ot||(r.nodeValue=i)):r.nodeValue=i));if("value"===o)return void(r.value=i);if(m(r,o),h(i))l(o,i,r,e);else if("if"==o){var a=t.stub,c=function(){p(a.parentNode,a,r)},f=function(){p(r.parentNode,r,a)};i?a&&(c(),r.inStub=!1,I(r)||R(r,function(t){t._tag&&!t._tag.isMounted&&(t._tag.isMounted=!!t._tag.trigger("mount"))})):(a=t.stub=a||document.createTextNode(""),r.parentNode?f():(e.parent||e).one("updated",f),r.inStub=!0)}else"show"===o?r.style.display=i?"":"none":"hide"===o?r.style.display=i?"none":"":t.bool?(r[o]=i,i&&x(r,o,o)):(0===i||i&&typeof i!==J)&&(D(o,G)&&o!=W&&(o=o.slice(G.length)),x(r,o,i))}})}function g(t,e){for(var n,r=t?t.length:0,o=0;r>o;o++)n=t[o],null!=n&&e(n,o)===!1&&o--;return t}function h(t){return typeof t===et||!1}function v(t){return t&&typeof t===J}function m(t,e){t.removeAttribute(e)}function y(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})}function b(t,e){return t.getAttribute(e)}function x(t,e,n){t.setAttribute(e,n)}function w(t){return t.tagName&&Z[b(t,X)||b(t,W)||t.tagName.toLowerCase()]}function _(t,e,n){var r=n.tags[e];r?(O(r)||r!==t&&(n.tags[e]=[r]),M(n.tags[e],t)||n.tags[e].push(t)):n.tags[e]=t}function N(t,e,n){var r,o=t.parent;o&&(r=o.tags[e],O(r)?r.splice(n,0,r.splice(r.indexOf(t),1)[0]):_(t,e,o))}function C(t,e,n,r){var o=new s(t,e,n),i=S(e.root),u=L(r);return o.parent=u,o._parent=r,_(o,i,u),u!==r&&_(o,i,r),e.root.innerHTML="",o}function L(t){for(var e=t;!w(e.root)&&e.parent;)e=e.parent;return e}function E(t,e,n,r){return Object.defineProperty(t,e,T({value:n,enumerable:!1,writable:!1,
33configurable:!1},r)),t}function S(t){var e=w(t),n=b(t,"name"),r=n&&!ut.hasExpr(n)?n:e?e.name:t.tagName.toLowerCase();return r}function T(t){for(var e,n=arguments,r=1;r<n.length;++r)if(e=n[r])for(var o in e)A(t,o)&&(t[o]=e[o]);return t}function M(t,e){return~t.indexOf(e)}function O(t){return Array.isArray(t)||t instanceof Array}function A(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return typeof t[e]===tt||n&&n.writable}function j(t){if(!(t instanceof s||t&&typeof t.trigger==et))return t;var e={};for(var n in t)M(rt,n)||(e[n]=t[n]);return e}function R(t,e){if(t){if(e(t)===!1)return;for(t=t.firstChild;t;)R(t,e),t=t.nextSibling}}function $(t,e){for(var n,r=/([-\w]+) ?= ?(?:"([^"]*)|'([^']*)|({[^}]*}))/g;n=r.exec(t);)e(n[1].toLowerCase(),n[2]||n[3]||n[4])}function I(t){for(;t;){if(t.inStub)return!0;t=t.parentNode}return!1}function k(t){return document.createElement(t)}function H(t,e){return(e||document).querySelectorAll(t)}function F(t,e){return(e||document).querySelector(t)}function B(t){function e(){}return e.prototype=t,new e}function P(t){return b(t,"id")||b(t,"name")}function K(t,e,n){var r,o=P(t),i=function(i){M(n,o)||(r=O(i),i?(!r||r&&!M(i,t))&&(r?i.push(t):e[o]=[i,t]):e[o]=t)};o&&(ut.hasExpr(o)?e.one("mount",function(){o=P(t),i(e[o])}):i(e[o]))}function D(t,e){return t.slice(0,e.length)===e}function q(t,e,n){var r=Z[e],o=t._innerHTML=t._innerHTML||t.innerHTML;return t.innerHTML="",r&&t&&(r=new s(r,{root:t,opts:n},o)),r&&r.mount&&(r.mount(),M(U,r)||U.push(r)),r}var V={version:"v2.3.17",settings:{}},z=0,U=[],Z={},Q="__global_mixin",G="riot-",W=G+"tag",X="data-is",Y="string",J="object",tt="undefined",et="function",nt=/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?|opt(?:ion|group))$/,rt=["_item","_id","_parent","update","root","mount","unmount","mixin","isMounted","isLoop","tags","parent","opts","trigger","on","off","one"],ot=0|(t&&t.document||{}).documentMode;V.observable=function(t){t=t||{};var e={},n=Array.prototype.slice,r=function(t,e){t.replace(/\S+/g,e)};return Object.defineProperties(t,{on:{value:function(n,o){return"function"!=typeof o?t:(r(n,function(t,n){(e[t]=e[t]||[]).push(o),o.typed=n>0}),t)},enumerable:!1,writable:!1,configurable:!1},off:{value:function(n,o){return"*"!=n||o?r(n,function(t){if(o)for(var n,r=e[t],i=0;n=r&&r[i];++i)n==o&&r.splice(i--,1);else delete e[t]}):e={},t},enumerable:!1,writable:!1,configurable:!1},one:{value:function(e,n){function r(){t.off(e,r),n.apply(t,arguments)}return t.on(e,r)},enumerable:!1,writable:!1,configurable:!1},trigger:{value:function(o){for(var i,u=arguments.length-1,a=new Array(u),c=0;u>c;c++)a[c]=arguments[c+1];return r(o,function(r){i=n.call(e[r]||[],0);for(var o,u=0;o=i[u];++u){if(o.busy)return;o.busy=1,o.apply(t,o.typed?[r].concat(a):a),i[u]!==o&&u--,o.busy=0}e["*"]&&"*"!=r&&t.trigger.apply(t,["*",r].concat(a))}),t},enumerable:!1,writable:!1,configurable:!1}}),t},function(e){function n(t){return t.split(/[\/?#]/)}function r(t,e){var n=new RegExp("^"+e[C](/\*/g,"([^/?#]+?)")[C](/\.\./,".*")+"$"),r=t.match(n);return r?r.slice(1):void 0}function o(t,e){var n;return function(){clearTimeout(n),n=setTimeout(t,e)}}function i(t){g=o(l,1),M[_](L,g),M[_](E,g),O[_]($,p),t&&l(!0)}function u(){this.$=[],e.observable(this),k.on("stop",this.s.bind(this)),k.on("emit",this.e.bind(this))}function a(t){return t[C](/^\/|\/$/,"")}function c(t){return"string"==typeof t}function f(t){return(t||j.href||"")[C](b,"")}function s(t){return"#"==h[0]?(t||j.href||"").split(h)[1]||"":f(t)[C](h,"")}function l(t){var e=0==B;if(!(B>=T)&&(B++,F.push(function(){var e=s();(t||e!=v)&&(k[S]("emit",e),v=e)}),e)){for(;F.length;)F[0](),F.shift();B=0}}function p(t){if(!(1!=t.which||t.metaKey||t.ctrlKey||t.shiftKey||t.defaultPrevented)){for(var e=t.target;e&&"A"!=e.nodeName;)e=e.parentNode;!e||"A"!=e.nodeName||e[N]("download")||!e[N]("href")||e.target&&"_self"!=e.target||-1==e.href.indexOf(j.href.match(b)[0])||(e.href==j.href||e.href.split("#")[0]!=j.href.split("#")[0]&&("#"==h||0===f(e.href).indexOf(h))&&d(s(e.href),e.title||O.title))&&t.preventDefault()}}function d(t,e,n){return A?(t=h+a(t),e=e||O.title,n?A.replaceState(null,e,t):A.pushState(null,e,t),O.title=e,H=!1,l(),H):k[S]("emit",s(t))}var g,h,v,m,y,b=/^.+?\/+[^\/]+/,x="EventListener",w="remove"+x,_="add"+x,N="hasAttribute",C="replace",L="popstate",E="hashchange",S="trigger",T=3,M="undefined"!=typeof t&&t,O="undefined"!=typeof document&&document,A=M&&history,j=M&&(A.location||M.location),R=u.prototype,$=O&&O.ontouchstart?"touchstart":"click",I=!1,k=e.observable(),H=!1,F=[],B=0;R.m=function(t,e,n){!c(t)||e&&!c(e)?e?this.r(t,e):this.r("@",t):d(t,e,n||!1)},R.s=function(){this.off("*"),this.$=[]},R.e=function(t){this.$.concat("@").some(function(e){var n=("@"==e?m:y)(a(t),a(e));return"undefined"!=typeof n?(this[S].apply(null,[e].concat(n)),H=!0):void 0},this)},R.r=function(t,e){"@"!=t&&(t="/"+a(t),this.$.push(t)),this.on(t,e)};var P=new u,K=P.m.bind(P);K.create=function(){var t=new u;return t.m.stop=t.s.bind(t),t.m.bind(t)},K.base=function(t){h=t||"#",v=s()},K.exec=function(){l(!0)},K.parser=function(t,e){t||e||(m=n,y=r),t&&(m=t),e&&(y=e)},K.query=function(){var t={},e=j.href||v;return e[C](/[?&](.+?)=([^&]*)/g,function(e,n,r){t[n]=r}),t},K.stop=function(){I&&(M&&(M[w](L,g),M[w](E,g),O[w]($,p)),k[S]("stop"),I=!1)},K.start=function(t){I||(M&&("complete"==document.readyState?i(t):M[_]("load",function(){setTimeout(function(){i(t)},1)})),I=!0)},K.base(),K.parser(),e.route=K}(V);var it=function(t){function e(t){return t}function n(t,e){return e||(e=m),new RegExp(t.source.replace(/{/g,e[2]).replace(/}/g,e[3]),t.global?f:"")}function r(t){if(t===g)return h;var e=t.split(" ");if(2!==e.length||/[\x00-\x1F<>a-zA-Z0-9'",;\\]/.test(t))throw new Error('Unsupported brackets "'+t+'"');return e=e.concat(t.replace(/(?=[[\]()*+?.^$|])/g,"\\").split(" ")),e[4]=n(e[1].length>1?/{[\S\s]*?}/:h[4],e),e[5]=n(t.length>3?/\\({|})/g:h[5],e),e[6]=n(h[6],e),e[7]=RegExp("\\\\("+e[3]+")|([[({])|("+e[3]+")|"+p,f),e[8]=t,e}function o(t){return t instanceof RegExp?a(t):m[t]}function i(t){(t||(t=g))!==m[8]&&(m=r(t),a=t===g?e:n,m[9]=a(h[9]),m[10]=a(h[10])),v=t}function u(t){var e;t=t||{},e=t.brackets,Object.defineProperty(t,"brackets",{set:i,get:function(){return v},enumerable:!0}),c=t,i(e)}var a,c,f="g",s=/\/\*[^*]*\*+(?:[^*\/][^*]*\*+)*\//g,l=/"[^"\\]*(?:\\[\S\s][^"\\]*)*"|'[^'\\]*(?:\\[\S\s][^'\\]*)*'/g,p=l.source+"|"+/(?:\breturn\s+|(?:[$\w\)\]]|\+\+|--)\s*(\/)(?![*\/]))/.source+"|"+/\/(?=[^*\/])[^[\/\\]*(?:(?:\[(?:\\.|[^\]\\]*)*\]|\\.)[^[\/\\]*)*?(\/)[gim]*/.source,d={"(":RegExp("([()])|"+p,f),"[":RegExp("([[\\]]
33)|"+p,f),"{":RegExp("([{}])|"+p,f)},g="{ }",h=["{","}","{","}",/{[^}]*}/,/\\([{}])/g,/\\({)|{/g,RegExp("\\\\(})|([[({])|(})|"+p,f),g,/^\s*{\^?\s*([$\w]+)(?:\s*,\s*(\S+))?\s+in\s+(\S.*)\s*}/,/(^|[^\\]){=[\S\s]*?}/],v=t,m=[];return o.split=function(t,e,n){function r(t){e||u?f.push(t&&t.replace(n[5],"$1")):f.push(t)}function o(t,e,n){var r,o=d[e];for(o.lastIndex=n,n=1;(r=o.exec(t))&&(!r[1]||(r[1]===e?++n:--n)););return n?t.length:o.lastIndex}n||(n=m);var i,u,a,c,f=[],s=n[6];for(u=a=s.lastIndex=0;i=s.exec(t);){if(c=i.index,u){if(i[2]){s.lastIndex=o(t,i[2],s.lastIndex);continue}if(!i[3])continue}i[1]||(r(t.slice(a,c)),a=s.lastIndex,s=n[6+(u^=1)],s.lastIndex=a)}return t&&a<t.length&&r(t.slice(a)),f},o.hasExpr=function(t){return m[4].test(t)},o.loopKeys=function(t){var e=t.match(m[9]);return e?{key:e[1],pos:e[2],val:m[0]+e[3].trim()+m[1]}:{val:t.trim()}},o.hasRaw=function(t){return m[10].test(t)},o.array=function(t){return t?r(t):m},Object.defineProperty(o,"settings",{set:u,get:function(){return c}}),o.settings="undefined"!=typeof V&&V.settings||{},o.set=i,o.R_STRINGS=l,o.R_MLCOMMS=s,o.S_QBLOCKS=p,o}(),ut=function(){function e(t,e){return t?(a[t]||(a[t]=r(t))).call(e,n):t}function n(t,n){e.errorHandler&&(t.riotData={tagName:n&&n.root&&n.root.tagName,_riot_id:n&&n._riot_id},e.errorHandler(t))}function r(t){var e=o(t);return"try{return "!==e.slice(0,11)&&(e="return "+e),new Function("E",e+";")}function o(t){var e,n=[],r=it.split(t.replace(/\u2057/g,'"'),1);if(r.length>2||r[0]){var o,u,a=[];for(o=u=0;o<r.length;++o)e=r[o],e&&(e=1&o?i(e,1,n):'"'+e.replace(/\\/g,"\\\\").replace(/\r\n?|\n/g,"\\n").replace(/"/g,'\\"')+'"')&&(a[u++]=e);e=2>u?a[0]:"["+a.join(",")+'].join("")'}else e=i(r[1],0,n);return n[0]&&(e=e.replace(f,function(t,e){return n[e].replace(/\r/g,"\\r").replace(/\n/g,"\\n")})),e}function i(t,e,n){function r(e,n){var r,o=1,i=s[e];for(i.lastIndex=n.lastIndex;r=i.exec(t);)if(r[0]===e)++o;else if(!--o)break;n.lastIndex=o?t.length:i.lastIndex}if("="===t[0]&&(t=t.slice(1)),t=t.replace(c,function(t,e){return t.length>2&&!e?"�"+(n.push(t)-1)+"~":t}).replace(/\s+/g," ").trim().replace(/\ ?([[\({},?\.:])\ ?/g,"$1")){for(var o,i=[],a=0;t&&(o=t.match(l))&&!o.index;){var f,p,d=/,|([[{(])|$/g;for(t=RegExp.rightContext,f=o[2]?n[o[2]].slice(1,-1).trim().replace(/\s+/g," "):o[1];p=(o=d.exec(t))[1];)r(p,d);p=t.slice(0,o.index),t=RegExp.rightContext,i[a++]=u(p,1,f)}t=a?a>1?"["+i.join(",")+'].join(" ").trim()':i[0]:u(t,e)}return t}function u(t,e,n){var r;return t=t.replace(d,function(t,e,n,o,i){return n&&(o=r?0:o+t.length,"this"!==n&&"global"!==n&&"window"!==n?(t=e+'("'+n+p+n,o&&(r="."===(i=i[o])||"("===i||"["===i)):o&&(r=!g.test(i.slice(o)))),t}),r&&(t="try{return "+t+"}catch(e){E(e,this)}"),n?t=(r?"function(){"+t+"}.call(this)":"("+t+")")+'?"'+n+'":""':e&&(t="function(v){"+(r?t.replace("return ","v="):"v=("+t+")")+';return v||v===0?v:""}.call(this)'),t}var a={};e.haveRaw=it.hasRaw,e.hasExpr=it.hasExpr,e.loopKeys=it.loopKeys,e.errorHandler=null;var c=RegExp(it.S_QBLOCKS,"g"),f=/\x01(\d+)~/g,s={"(":/[()]/g,"[":/[[\]]/g,"{":/[{}]/g},l=/^(?:(-?[_A-Za-z\xA0-\xFF][-\w\xA0-\xFF]*)|\x01(\d+)~):/,p='"in this?this:'+("object"!=typeof t?"global":"window")+").",d=/[,{][$\w]+:|(^ *|[^$\w\.])(?!(?:typeof|true|false|null|undefined|in|instanceof|is(?:Finite|NaN)|void|NaN|new|Date|RegExp|Math)(?![$\w]))([$_A-Za-z][$\w]*)/g,g=/^(?=(\.[$\w]+))\1(?:[^.[(]|$)/;return e.parse=function(t){return t},e.version=it.version="v2.3.21",e}(),at=function t(){function t(t,r){var o=t&&t.match(/^\s*<([-\w]+)/),i=o&&o[1].toLowerCase(),u=k("div");return t=n(t,r),c.test(i)?u=e(u,t,i):u.innerHTML=t,u.stub=!0,u}function e(t,e,n){var r="o"===n[0],o=r?"select>":"table>";if(t.innerHTML="<"+o+e.trim()+"</"+o,o=t.firstChild,r)o.selectedIndex=-1;else{var i=a[n];i&&1===o.childElementCount&&(o=F(i,o))}return o}function n(t,e){if(!r.test(t))return t;var n={};return e=e&&e.replace(i,function(t,e,r){return n[e]=n[e]||r,""}).trim(),t.replace(u,function(t,e,r){return n[e]||r||""}).replace(o,function(t,n){return e||n||""})}var r=/<yield\b/i,o=/<yield\s*(?:\/>|>([\S\s]*?)<\/yield\s*>)/gi,i=/<yield\s+to=['"]([^'">]*)['"]\s*>([\S\s]*?)<\/yield\s*>/gi,u=/<yield\s+from=['"]?([-\w]+)['"]?\s*(?:\/>|>([\S\s]*?)<\/yield\s*>)/gi,a={tr:"tbody",th:"tr",td:"tr",col:"colgroup"},c=ot&&10>ot?nt:/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?)$/;return t}(),ct=function(e){if(!t)return{add:function(){},inject:function(){}};var n=function(){var t=k("style");x(t,"type","text/css");var e=F("style[type=riot]");return e?(e.id&&(t.id=e.id),e.parentNode.replaceChild(t,e)):document.getElementsByTagName("head")[0].appendChild(t),t}(),r=n.styleSheet,o="";return Object.defineProperty(e,"styleNode",{value:n,writable:!0}),{add:function(t){o+=t},inject:function(){o&&(r?r.cssText+=o:n.innerHTML+=o,o="")}}}(V),ft=function(t){var e=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame;if(!e||/iP(ad|hone|od).*OS 6/.test(t.navigator.userAgent)){var n=0;e=function(t){var e=Date.now(),r=Math.max(16-(e-n),0);setTimeout(function(){t(n=e+r)},r)}}return e}(t||{});V.util={brackets:it,tmpl:ut},V.mixin=function(){var t={};return function(e,n){return v(e)?(n=e,void(t[Q]=T(t[Q]||{},n))):n?void(t[e]=n):t[e]}}(),V.tag=function(t,e,n,r,o){return h(r)&&(o=r,/^[\w\-]+\s?=/.test(n)?(r=n,n=""):r=""),n&&(h(n)?o=n:ct.add(n)),t=t.toLowerCase(),Z[t]={name:t,tmpl:e,attrs:r,fn:o},t},V.tag2=function(t,e,n,r,o){return n&&ct.add(n),Z[t]={name:t,tmpl:e,attrs:r,fn:o},t},V.mount=function(t,e,n){function r(t){var e="";return g(t,function(t){/[^-\w]/.test(t)||(t=t.trim().toLowerCase(),e+=",["+X+'="'+t+'"],['+W+'="'+t+'"]')}),e}function o(){var t=Object.keys(Z);return t+r(t)}function i(t){if(t.tagName){var r=b(t,X)||b(t,W);e&&r!==e&&(r=e,x(t,X,e));var o=q(t,r||t.tagName.toLowerCase(),n);o&&c.push(o)}else t.length&&g(t,i)}var u,a,c=[];if(ct.inject(),v(e)&&(n=e,e=0),typeof t===Y?("*"===t?t=a=o():t+=r(t.split(/, */)),u=t?H(t):[]):u=t,"*"===e){if(e=a||o(),u.tagName)u=H(e,u);else{var f=[];g(u,function(t){f.push(H(e,t))}),u=f}e=0}return i(u),c}
vendor: 28,774 bytes, lines 33-57
33,V.update=function(){return g(U,function(t){t.update()})},V.Tag=s,typeof exports===J?module.exports=V:typeof define===et&&typeof define.amd!==tt?define(function(){return V}):t.riot=V}("undefined"!=typeof window?window:void 0);
34
35;/*})'"*/
36;/*})'"*/
37/*! jQuery UI - v1.10.2 - 2013-03-14
38* http://jqueryui.com
39* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
40(function(t){var e,i,s,n,a="ui-button ui-widget ui-state-default ui-corner-all",o="ui-state-hover ui-state-active ",r="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",h=function(){var e=t(this).find(":ui-button");setTimeout(function(){e.button("refresh")},1)},l=function(e){var i=e.name,s=e.form,n=t([]);return i&&(i=i.replace(/'/g,"\\'"),n=s?t(s).find("[name='"+i+"']"):t("[name='"+i+"']",e.ownerDocument).filter(function(){return!this.form})),n};t.widget("ui.button",{version:"1.10.2",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,h),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var o=this,r=this.options,c="checkbox"===this.type||"radio"===this.type,u=c?"":"ui-state-active",d="ui-state-focus";null===r.label&&(r.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(a).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){r.disabled||this===e&&t(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){r.disabled||t(this).removeClass(u)}).bind("click"+this.eventNamespace,function(t){r.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),this.element.bind("focus"+this.eventNamespace,function(){o.buttonElement.addClass(d)}).bind("blur"+this.eventNamespace,function(){o.buttonElement.removeClass(d)}),c&&(this.element.bind("change"+this.eventNamespace,function(){n||o.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(t){r.disabled||(n=!1,i=t.pageX,s=t.pageY)}).bind("mouseup"+this.eventNamespace,function(t){r.disabled||(i!==t.pageX||s!==t.pageY)&&(n=!0)})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){return r.disabled||n?!1:undefined}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(r.disabled||n)return!1;t(this).addClass("ui-state-active"),o.buttonElement.attr("aria-pressed","true");var e=o.element[0];l(e).not(e).map(function(){return t(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return r.disabled?!1:(t(this).addClass("ui-state-active"),e=this,o.document.one("mouseup",function(){e=null}),undefined)}).bind("mouseup"+this.eventNamespace,function(){return r.disabled?!1:(t(this).removeClass("ui-state-active"),undefined)}).bind("keydown"+this.eventNamespace,function(e){return r.disabled?!1:((e.keyCode===t.ui.keyCode.SPACE||e.keyCode===t.ui.keyCode.ENTER)&&t(this).addClass("ui-state-active"),undefined)}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&&t(this).click()})),this._setOption("disabled",r.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.type=this.element.is("[type=checkbox]")?"checkbox":this.element.is("[type=radio]")?"radio":this.element.is("input")?"input":"button","checkbox"===this.type||"radio"===this.type?(t=this.element.parents().last(),e="label[for='"+this.element.attr("id")+"']",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible"),i=this.element.is(":checked"),i&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(a+" "+o+" "+r).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){return this._super(t,e),"disabled"===t?(e?this.element.prop("disabled",!0):this.element.prop("disabled",!1),undefined):(this._resetButton(),undefined)},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOption("disabled",e),"radio"===this.type?l(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return this.options.label&&this.element.val(this.options.label),undefined;var e=this.buttonElement.removeClass(r),i=t("<span></span>",this.document[0]).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("<span class='ui-button-icon-primary ui-icon "+s.primary+"'></span>"),s.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+s.secondary+"'></span>"),this.options.text||(a.push(n?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(i)))):a.push("ui-button-text-only"),e.addClass(a.join(" "))}}),t.widget("ui.buttonset",{version:"1.10.2",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,e){"disabled"===t&&this.buttons.button("option",t,e),this._super(t,e)},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")}})})(jQuery);
41;/*})'"*/
42;/*})'"*/
43/*! jQuery UI - v1.10.2 - 2013-03-14
44* http://jqueryui.com
45* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
46(function(e){var t=!1;e(document).mouseup(function(){t=!1}),e.widget("ui.mouse",{version:"1.10.2",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(i){return!0===e.data(i.target,t.widgetName+".preventClickEvent")?(e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):undefined}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var s=this,n=1===i.which,a="string"==typeof this.options.cancel&&i.target.nodeName?e(i.target).closest(this.options.cancel).length:!1;return n&&!a&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){s.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return s._mouseMove(e)},this._mouseUpDelegate=function(e){return s._mouseUp(e)},e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0)):!0}},_mouseMove:function(t){return e.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button?this._mouseUp(t):this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);
47;/*})'"*/
48;/*})'"*/
49/*! jQuery UI - v1.10.2 - 2013-03-14
50* http://jqueryui.com
51* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
52(function(e){e.widget("ui.draggable",e.ui.mouse,{version:"1.10.2",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,drag:null,start:null,stop:null},_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(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(t){var i=this.options;return this.helper||i.disabled||e(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),this.handle?(e(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){e("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(e(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.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},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),i.containment&&this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,i){if(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(this._trigger("drag",t,s)===!1)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"),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i,s=this,n=!1,a=!1;for(e.ui.ddmanager&&!this.options.dropBehaviour&&(a=e.ui.ddmanager.drop(this,t)),this.dropped&&(a=this.dropped,this.dropped=!1),i=this.element[0];i&&(i=i.parentNode);)i===document&&(n=!0);return n||"original"!==this.options.helper?("invalid"===this.options.revert&&!a||"valid"===this.options.revert&&a||this.options.revert===!0||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,a)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){s._trigger("stop",t)!==!1&&s._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1):!1},_mouseUp:function(t){return e("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){return this.options.handle?!!e(t.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(t){var i=this.options,s=e.isFunction(i.helper)?e(i.helper.apply(this.element[0],[t])):"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(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.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 t,i,s,n=this.options;if("parent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.containment=["document"===n.containment?0:e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"===n.containment?0:e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"===n.containment?0:e(window).scrollLeft())+e("document"===n.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"===n.containment?0:e(window).scrollTop())+(e("document"===n.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||n.containment.constructor===Array)n.containment.constructor===Array&&(this.containment=n.containment);else{if(i=e(n.containment),s=i[0],!s)return;t="hidden"!==e(s).css("overflow"),this.containment=[(parseInt(e(s).css("borderLeftWidth"),10)||0)+(parseInt(e(s).css("paddingLeft"),10)||0),(parseInt(e(s).css("borderTopWidth"),10)||0)+(parseInt(e(s).css("paddingTop"),10)||0),(t?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(e(s).css("borderRightWidth"),10)||0)-(parseInt(e(s).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(e(s).css("borderBottomWidth"),10)||0)-(parseInt(e(s).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i}},_convertPositionTo:function(t,i){i||(i=this.position);var s="absolute"===t?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.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-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:n.scrollTop())*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:n.scrollLeft())*s}},_generatePosition:function(t){var i,s,n,a,o=this.options,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=/(html|body)/i.test(r[0].tagName),l=t.pageX,u=t.pageY;return this.originalPosition&&(this.containment&&(this.relative_container?(s=this.relative_container.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(u=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(u=i[3]+this.offset.click.top)),o.grid&&(n=o.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,u=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-o.grid[1]:n+o.grid[1]:n,a=o.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,l=i?a-this.offset.click.left>=i[0]||a-this.offset.click.left>i[2]?a:a-this.offset.click.left>=i[0]?a-o.grid[0]:a+o.grid[0]:a)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():h?0:r.scrollTop()),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():h?0:r.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(t,i,s){return s=s||this._uiHash(),e.ui.plugin.call(this,t,[i,s]),"drag"===t&&(this.positionAbs=this._convertPositionTo("absolute")),e.Widget.prototype._trigger.call(this,t,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i){var s=e(this).data("ui-draggable"),n=s.options,a=e.extend({},i,{item:s.element});s.sortables=[],e(n.connectToSortable).each(function(){var i=e.data(this,"ui-sortable");i&&!i.options.disabled&&(s.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",t,a))})},stop:function(t,i){var s=e(this).data("ui-draggable"),n=e.extend({},i,{item:s.element});e.each(s.sortables,function(){this.instance.isOver?(this.instance.isOver=0,s.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(t),this.instance.options.helper=this.instance.options._helper,"original"===s.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",t,n))})},drag:function(t,i){var s=e(this).data("ui-draggable"),n=this;e.each(s.sortables,function(){var a=!1,o=this;this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(a=!0,e.each(s.sortables,function(){return this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this!==o&&this.instance._intersectsWith(this.instance.containerCache)&&e.contains(o.instance.element[0],this.instance.element[0])&&(a=!1),a})),a?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=e(n).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},t.target=this.instance.currentItem[0],this.instance._mouseCapture(t,!0),this.instance._mouseStart(t,!0,!0),this.instance.offset.click.top=s.offset.click.top,this.instance.offset.click.left=s.offset.click.left,this.instance.offset.parent.left-=s.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=s.offset.parent.top-this.instance.offset.parent.top,s._trigger("toSortable",t),s.dropped=this.instance.element,s.currentItem=s.element,this.instance.fromOutside=s),this.instance.currentItem&&this.instance._mouseDrag(t)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",t,this.instance._uiHash(this.instance)),this.instance._mouseStop(t,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),s._trigger("fromSortable",t),s.dropped=!1)})}}),e.ui.plugin.add("draggable","cursor",{start:function(){var t=e("body"),i=e(this).data("ui-draggable").options;t.css("cursor")&&(i._cursor=t.css("cursor")),t.css("cursor",i.cursor)},stop:function(){var t=e(this).data("ui-draggable").options;t._cursor&&e("body").css("cursor",t._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i){var s=e(i.helper),n=e(this).data("ui-draggable").options;s.css("opacity")&&(n._opacity=s.css("opacity")),s.css("opacity",n.opacity)},stop:function(t,i){var s=e(this).data("ui-draggable").options;s._opacity&&e(i.helper).css("opacity",s._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(){var t=e(this).data("ui-draggable");t.scrollParent[0]!==document&&"HTML"!==t.scrollParent[0].tagName&&(t.overflowOffset=t.scrollParent.offset())},drag:function(t){var i=e(this).data("ui-draggable"),s=i.options,n=!1;i.scrollParent[0]!==document&&"HTML"!==i.scrollParent[0].tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-t.pageY<s.scrollSensitivity?i.scrollParent[0].scrollTop=n=i.scrollParent[0].scrollTop+s.scrollSpeed:t.pageY-i.overflowOffset.top<s.scrollSensitivity&&(i.scrollParent[0].scrollTop=n=i.scrollParent[0].scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-t.pageX<s.scrollSensitivity?i.scrollParent[0].scrollLeft=n=i.scrollParent[0].scrollLeft+s.scrollSpeed:t.pageX-i.overflowOffset.left<s.scrollSensitivity&&(i.scrollParent[0].scrollLeft=n=i.scrollParent[0].scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-e(document).scrollTop()<s.scrollSensitivity?n=e(document).scrollTop(e(document).scrollTop()-s.scrollSpeed):e(window).height()-(t.pageY-e(document).scrollTop())<s.scrollSensitivity&&(n=e(document).scrollTop(e(document).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-e(document).scrollLeft()<s.scrollSensitivity?n=e(document).scrollLeft(e(document).scrollLeft()-s.scrollSpeed):e(window).width()-(t.pageX-e(document).scrollLeft())<s.scrollSensitivity&&(n=e(document).scrollLeft(e(document).scrollLeft()+s.scrollSpeed)))),n!==!1&&e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(i,t)}}),e.ui.plugin.add("draggable","snap",{start:function(){var t=e(this).data("ui-draggable"),i=t.options;t.snapElements=[],e(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var i=e(this),s=i.offset();this!==t.element[0]&&t.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:s.top,left:s.left})})},drag:function(t,i){var s,n,a,o,r,h,l,u,c,d,p=e(this).data("ui-draggable"),f=p.options,m=f.snapTolerance,g=i.offset.left,v=g+p.helperProportions.width,y=i.offset.top,b=y+p.helperProportions.height;for(c=p.snapElements.length-1;c>=0;c--)r=p.snapElements[c].left,h=r+p.snapElements[c].width,l=p.snapElements[c].top,u=l+p.snapElements[c].height,g>r-m&&h+m>g&&y>l-m&&u+m>y||g>r-m&&h+m>g&&b>l-m&&u+m>b||v>r-m&&h+m>v&&y>l-m&&u+m>y||v>r-m&&h+m>v&&b>l-m&&u+m>b?("inner"!==f.snapMode&&(s=m>=Math.abs(l-b),n=m>=Math.abs(u-y),a=m>=Math.abs(r-v),o=m>=Math.abs(h-g),s&&(i.position.top=p._convertPositionTo("relative",{top:l-p.helperProportions.height,left:0}).top-p.margins.top),n&&(i.position.top=p._convertPositionTo("relative",{top:u,left:0}).top-p.margins.top),a&&(i.position.left=p._convertPositionTo("relative",{top:0,left:r-p.helperProportions.width}).left-p.margins.left),o&&(i.position.left=p._convertPositionTo("relative",{top:0,left:h}).left-p.margins.left)),d=s||n||a||o,"outer"!==f.snapMode&&(s=m>=Math.abs(l-y),n=m>=Math.abs(u-b),a=m>=Math.abs(r-g),o=m>=Math.abs(h-v),s&&(i.position.top=p._convertPositionTo("relative",{top:l,left:0}).top-p.margins.top),n&&(i.position.top=p._convertPositionTo("relative",{top:u-p.helperProportions.height,left:0}).top-p.margins.top),a&&(i.position.left=p._convertPositionTo("relative",{top:0,left:r}).left-p.margins.left),o&&(i.position.left=p._convertPositionTo("relative",{top:0,left:h-p.helperProportions.width}).left-p.margins.left)),!p.snapElements[c].snapping&&(s||n||a||o||d)&&p.options.snap.snap&&p.options.snap.snap.call(p.element,t,e.extend(p._uiHash(),{snapItem:p.snapElements[c].item})),p.snapElements[c].snapping=s||n||a||o||d):(p.snapElements[c].snapping&&p.options.snap.release&&p.options.snap.release.call(p.element,t,e.extend(p._uiHash(),{snapItem:p.snapElements[c].item})),p.snapElements[c].snapping=!1)}}),e.ui.plugin.add("draggable","stack",{start:function(){var t,i=this.data("ui-draggable").options,s=e.makeArray(e(i.stack)).sort(function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)});s.length&&(t=parseInt(e(s[0]).css("zIndex"),10)||0,e(s).each(function(i){e(this).css("zIndex",t+i)}),this.css("zIndex",t+s.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i){var s=e(i.helper),n=e(this).data("ui-draggable").options;s.css("zIndex")&&(n._zIndex=s.css("zIndex")),s.css("zIndex",n.zIndex)},stop:function(t,i){var s=e(this).data("ui-draggable").options;s._zIndex&&e(i.helper).css("zIndex",s._zIndex)}})})(jQuery);
53;/*})'"*/
54;/*})'"*/
55/*! jQuery UI - v1.10.2 - 2013-03-14
56* http://jqueryui.com
57* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
vendor: 6,139 bytes, line 58
58(function(t,e){function i(t,e,i){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?i/100:1)]}function s(e,i){return parseInt(t.css(e,i),10)||0}function n(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var a,o=Math.max,r=Math.abs,h=Math.round,l=/left|center|right/,c=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(a!==e)return a;var i,s,n=t("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=n.children()[0];return t("body").append(n),i=o.offsetWidth,n.css("overflow","scroll"),s=o.offsetWidth,i===s&&(s=n[0].clientWidth),n.remove(),a=i-s},getScrollInfo:function(e){var i=e.isWindow?"":e.element.css("overflow-x"),s=e.isWindow?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,a="scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight;return{width:a?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=t.isWindow(i[0]);return{element:i,isWindow:s,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:s?i.width():i.outerWidth(),height:s?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=t.extend({},e);var a,p,m,g,v,_,b=t(e.of),y=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(y),x=(e.collision||"flip").split(" "),k={};return _=n(b),b[0].preventDefault&&(e.at="left top"),p=_.width,m=_.height,g=_.offset,v=t.extend({},g),t.each(["my","at"],function(){var t,i,s=(e[this]||"").split(" ");1===s.length&&(s=l.test(s[0])?s.concat(["center"]):c.test(s[0])?["center"].concat(s):["center","center"]),s[0]=l.test(s[0])?s[0]:"center",s[1]=c.test(s[1])?s[1]:"center",t=u.exec(s[0]),i=u.exec(s[1]),k[this]=[t?t[0]:0,i?i[0]:0],e[this]=[d.exec(s[0])[0],d.exec(s[1])[0]]}),1===x.length&&(x[1]=x[0]),"right"===e.at[0]?v.left+=p:"center"===e.at[0]&&(v.left+=p/2),"bottom"===e.at[1]?v.top+=m:"center"===e.at[1]&&(v.top+=m/2),a=i(k.at,p,m),v.left+=a[0],v.top+=a[1],this.each(function(){var n,l,c=t(this),u=c.outerWidth(),d=c.outerHeight(),f=s(this,"marginLeft"),_=s(this,"marginTop"),D=u+f+s(this,"marginRight")+w.width,T=d+_+s(this,"marginBottom")+w.height,C=t.extend({},v),M=i(k.my,c.outerWidth(),c.outerHeight());"right"===e.my[0]?C.left-=u:"center"===e.my[0]&&(C.left-=u/2),"bottom"===e.my[1]?C.top-=d:"center"===e.my[1]&&(C.top-=d/2),C.left+=M[0],C.top+=M[1],t.support.offsetFractions||(C.left=h(C.left),C.top=h(C.top)),n={marginLeft:f,marginTop:_},t.each(["left","top"],function(i,s){t.ui.position[x[i]]&&t.ui.position[x[i]][s](C,{targetWidth:p,targetHeight:m,elemWidth:u,elemHeight:d,collisionPosition:n,collisionWidth:D,collisionHeight:T,offset:[a[0]+M[0],a[1]+M[1]],my:e.my,at:e.at,within:y,elem:c})}),e.using&&(l=function(t){var i=g.left-C.left,s=i+p-u,n=g.top-C.top,a=n+m-d,h={target:{element:b,left:g.left,top:g.top,width:p,height:m},element:{element:c,left:C.left,top:C.top,width:u,height:d},horizontal:0>s?"left":i>0?"right":"center",vertical:0>a?"top":n>0?"bottom":"middle"};u>p&&p>r(i+s)&&(h.horizontal="center"),d>m&&m>r(n+a)&&(h.vertical="middle"),h.important=o(r(i),r(s))>o(r(n),r(a))?"horizontal":"vertical",e.using.call(this,t,h)}),c.offset(t.extend(C,{using:l}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,h=n-r,l=r+e.collisionWidth-a-n;e.collisionWidth>a?h>0&&0>=l?(i=t.left+h+e.collisionWidth-a-n,t.left+=h-i):t.left=l>0&&0>=h?n:h>l?n+a-e.collisionWidth:n:h>0?t.left+=h:l>0?t.left-=l:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,h=n-r,l=r+e.collisionHeight-a-n;e.collisionHeight>a?h>0&&0>=l?(i=t.top+h+e.collisionHeight-a-n,t.top+=h-i):t.top=l>0&&0>=h?n:h>l?n+a-e.collisionHeight:n:h>0?t.top+=h:l>0?t.top-=l:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,a=n.offset.left+n.scrollLeft,o=n.width,h=n.isWindow?n.scrollLeft:n.offset.left,l=t.left-e.collisionPosition.marginLeft,c=l-h,u=l+e.collisionWidth-o-h,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-o-a,(0>i||r(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-h,(s>0||u>r(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,a=n.offset.top+n.scrollTop,o=n.height,h=n.isWindow?n.scrollTop:n.offset.top,l=t.top-e.collisionPosition.marginTop,c=l-h,u=l+e.collisionHeight-o-h,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,m=-2*e.offset[1];0>c?(s=t.top+p+f+m+e.collisionHeight-o-a,t.top+p+f+m>c&&(0>s||r(c)>s)&&(t.top+=p+f+m)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+m-h,t.top+p+f+m>u&&(i>0||u>r(i))&&(t.top+=p+f+m))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,s,n,a,o=document.getElementsByTagName("body")[0],r=document.createElement("div");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"});for(a in s)e.style[a]=s[a];e.appendChild(r),i=o||document.documentElement,i.insertBefore(e,i.firstChild),r.style.cssText="position: absolute; left: 10.7432222px;",n=t(r).offset().left,t.support.offsetFractions=n>10&&11>n,e.innerHTML="",i.removeChild(e)}()})(jQuery);
58
59;/*})'"*/
60;/*})'"*/
61(function(n){var i=n.ui.version.split('.'),t=parseInt(i[0]),f=parseInt(i[1]);if((t>1)||(t===1&&f>=13)){return};var e=n.fn.position;n.fn.extend({'position':function(i){if(typeof i==='undefined'){return e.call(this)};var t=typeof i.of==='string'?n(document).find(i.of):n(i.of);i.of=(t[0]===undefined)?null:t;return e.call(this,i)}})})(jQuery);;/*})'"*/
62/*! jQuery UI - v1.10.2 - 2013-03-14
63* http://jqueryui.com
64* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
vendor: 17,139 bytes, line 65
65(function(e){function t(e){return parseInt(e,10)||0}function i(e){return!isNaN(parseInt(e,10))}e.widget("ui.resizable",e.ui.mouse,{version:"1.10.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var t,i,s,n,a,o=this,r=this.options;if(this.element.addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!r.aspectRatio,aspectRatio:r.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:r.helper||r.ghost||r.animate?r.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(e("<div class='ui-wrapper' style='overflow: hidden;'></div>").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("ui-resizable",this.element.data("ui-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=r.handles||(e(".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)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),t=this.handles.split(","),this.handles={},i=0;t.length>i;i++)s=e.trim(t[i]),a="ui-resizable-"+s,n=e("<div class='ui-resizable-handle "+a+"'></div>"),n.css({zIndex:r.zIndex}),"se"===s&&n.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[s]=".ui-resizable-"+s,this.element.append(n);this._renderAxis=function(t){var i,s,n,a;t=t||this.element;for(i in this.handles)this.handles[i].constructor===String&&(this.handles[i]=e(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(s=e(this.handles[i],this.element),a=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(n,a),this._proportionallyResize()),e(this.handles[i]).length},this._renderAxis(this.element),this._handles=e(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){o.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=n&&n[1]?n[1]:"se")}),r.autoHide&&(this._handles.hide(),e(this.element).addClass("ui-resizable-autohide").mouseenter(function(){r.disabled||(e(this).removeClass("ui-resizable-autohide"),o._handles.show())}).mouseleave(function(){r.disabled||o.resizing||(e(this).addClass("ui-resizable-autohide"),o._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,i=function(t){e(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(t){var i,s,n=!1;for(i in this.handles)s=e(this.handles[i])[0],(s===t.target||e.contains(s,t.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(i){var s,n,a,o=this.options,r=this.element.position(),h=this.element;return this.resizing=!0,/absolute/.test(h.css("position"))?h.css({position:"absolute",top:h.css("top"),left:h.css("left")}):h.is(".ui-draggable")&&h.css({position:"absolute",top:r.top,left:r.left}),this._renderProxy(),s=t(this.helper.css("left")),n=t(this.helper.css("top")),o.containment&&(s+=e(o.containment).scrollLeft()||0,n+=e(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:s,top:n},this.size=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()},this.originalSize=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()},this.originalPosition={left:s,top:n},this.sizeDiff={width:h.outerWidth()-h.width(),height:h.outerHeight()-h.height()},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,a=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===a?this.axis+"-resize":a),h.addClass("ui-resizable-resizing"),this._propagate("start",i),!0},_mouseDrag:function(t){var i,s=this.helper,n={},a=this.originalMousePosition,o=this.axis,r=this.position.top,h=this.position.left,l=this.size.width,u=this.size.height,c=t.pageX-a.left||0,d=t.pageY-a.top||0,p=this._change[o];return p?(i=p.apply(this,[t,c,d]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),this.position.top!==r&&(n.top=this.position.top+"px"),this.position.left!==h&&(n.left=this.position.left+"px"),this.size.width!==l&&(n.width=this.size.width+"px"),this.size.height!==u&&(n.height=this.size.height+"px"),s.css(n),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(n)||this._trigger("resize",t,this.ui()),!1):!1},_mouseStop:function(t){this.resizing=!1;var i,s,n,a,o,r,h,l=this.options,u=this;return this._helper&&(i=this._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),n=s&&e.ui.hasScroll(i[0],"left")?0:u.sizeDiff.height,a=s?0:u.sizeDiff.width,o={width:u.helper.width()-a,height:u.helper.height()-n},r=parseInt(u.element.css("left"),10)+(u.position.left-u.originalPosition.left)||null,h=parseInt(u.element.css("top"),10)+(u.position.top-u.originalPosition.top)||null,l.animate||this.element.css(e.extend(o,{top:h,left:r})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!l.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(e){var t,s,n,a,o,r=this.options;o={minWidth:i(r.minWidth)?r.minWidth:0,maxWidth:i(r.maxWidth)?r.maxWidth:1/0,minHeight:i(r.minHeight)?r.minHeight:0,maxHeight:i(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||e)&&(t=o.minHeight*this.aspectRatio,n=o.minWidth/this.aspectRatio,s=o.maxHeight*this.aspectRatio,a=o.maxWidth/this.aspectRatio,t>o.minWidth&&(o.minWidth=t),n>o.minHeight&&(o.minHeight=n),o.maxWidth>s&&(o.maxWidth=s),o.maxHeight>a&&(o.maxHeight=a)),this._vBoundaries=o},_updateCache:function(e){this.offset=this.helper.offset(),i(e.left)&&(this.position.left=e.left),i(e.top)&&(this.position.top=e.top),i(e.height)&&(this.size.height=e.height),i(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,s=this.size,n=this.axis;return i(e.height)?e.width=e.height*this.aspectRatio:i(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===n&&(e.left=t.left+(s.width-e.width),e.top=null),"nw"===n&&(e.top=t.top+(s.height-e.height),e.left=t.left+(s.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,s=this.axis,n=i(e.width)&&t.maxWidth&&t.maxWidth<e.width,a=i(e.height)&&t.maxHeight&&t.maxHeight<e.height,o=i(e.width)&&t.minWidth&&t.minWidth>e.width,r=i(e.height)&&t.minHeight&&t.minHeight>e.height,h=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,u=/sw|nw|w/.test(s),c=/nw|ne|n/.test(s);return o&&(e.width=t.minWidth),r&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),a&&(e.height=t.maxHeight),o&&u&&(e.left=h-t.minWidth),n&&u&&(e.left=h-t.maxWidth),r&&c&&(e.top=l-t.minHeight),a&&c&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var e,t,i,s,n,a=this.helper||this.element;for(e=0;this._proportionallyResizeElements.length>e;e++){if(n=this._proportionallyResizeElements[e],!this.borderDif)for(this.borderDif=[],i=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],s=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")],t=0;i.length>t;t++)this.borderDif[t]=(parseInt(i[t],10)||0)+(parseInt(s[t],10)||0);n.css({height:a.height()-this.borderDif[0]-this.borderDif[2]||0,width:a.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize,s=this.originalPosition;return{left:s.left+t,width:i.width-t}},n:function(e,t,i){var s=this.originalSize,n=this.originalPosition;return{top:n.top+i,height:s.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i,s){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,s]))},sw:function(t,i,s){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,s]))},ne:function(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,s]))},nw:function(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,s]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,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}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var i=e(this).data("ui-resizable"),s=i.options,n=i._proportionallyResizeElements,a=n.length&&/textarea/i.test(n[0].nodeName),o=a&&e.ui.hasScroll(n[0],"left")?0:i.sizeDiff.height,r=a?0:i.sizeDiff.width,h={width:i.size.width-r,height:i.size.height-o},l=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,u=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(h,u&&l?{top:u,left:l}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};n&&n.length&&e(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var i,s,n,a,o,r,h,l=e(this).data("ui-resizable"),u=l.options,c=l.element,d=u.containment,p=d instanceof e?d.get(0):/parent/.test(d)?c.parent().get(0):d;p&&(l.containerElement=e(p),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(i=e(p),s=[],e(["Top","Right","Left","Bottom"]).each(function(e,n){s[e]=t(i.css("padding"+n))}),l.containerOffset=i.offset(),l.containerPosition=i.position(),l.containerSize={height:i.innerHeight()-s[3],width:i.innerWidth()-s[1]},n=l.containerOffset,a=l.containerSize.height,o=l.containerSize.width,r=e.ui.hasScroll(p,"left")?p.scrollWidth:o,h=e.ui.hasScroll(p)?p.scrollHeight:a,l.parentData={element:p,left:n.left,top:n.top,width:r,height:h}))},resize:function(t){var i,s,n,a,o=e(this).data("ui-resizable"),r=o.options,h=o.containerOffset,l=o.position,u=o._aspectRatio||t.shiftKey,c={top:0,left:0},d=o.containerElement;d[0]!==document&&/static/.test(d.css("position"))&&(c=h),l.left<(o._helper?h.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-h.left:o.position.left-c.left),u&&(o.size.height=o.size.width/o.aspectRatio),o.position.left=r.helper?h.left:0),l.top<(o._helper?h.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-h.top:o.position.top),u&&(o.size.width=o.size.height*o.aspectRatio),o.position.top=o._helper?h.top:0),o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top,i=Math.abs((o._helper?o.offset.left-c.left:o.offset.left-c.left)+o.sizeDiff.width),s=Math.abs((o._helper?o.offset.top-c.top:o.offset.top-h.top)+o.sizeDiff.height),n=o.containerElement.get(0)===o.element.parent().get(0),a=/relative|absolute/.test(o.containerElement.css("position")),n&&a&&(i-=o.parentData.left),i+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-i,u&&(o.size.height=o.size.width/o.aspectRatio)),s+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-s,u&&(o.size.width=o.size.height*o.aspectRatio))},stop:function(){var t=e(this).data("ui-resizable"),i=t.options,s=t.containerOffset,n=t.containerPosition,a=t.containerElement,o=e(t.helper),r=o.offset(),h=o.outerWidth()-t.sizeDiff.width,l=o.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(a.css("position"))&&e(this).css({left:r.left-n.left-s.left,width:h,height:l}),t._helper&&!i.animate&&/static/.test(a.css("position"))&&e(this).css({left:r.left-n.left-s.left,width:h,height:l})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).data("ui-resizable"),i=t.options,s=function(t){e(t).each(function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})};"object"!=typeof i.alsoResize||i.alsoResize.parentNode?s(i.alsoResize):i.alsoResize.length?(i.alsoResize=i.alsoResize[0],s(i.alsoResize)):e.each(i.alsoResize,function(e){s(e)})},resize:function(t,i){var s=e(this).data("ui-resizable"),n=s.options,a=s.originalSize,o=s.originalPosition,r={height:s.size.height-a.height||0,width:s.size.width-a.width||0,top:s.position.top-o.top||0,left:s.position.left-o.left||0},h=function(t,s){e(t).each(function(){var t=e(this),n=e(this).data("ui-resizable-alsoresize"),a={},o=s&&s.length?s:t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(o,function(e,t){var i=(n[t]||0)+(r[t]||0);i&&i>=0&&(a[t]=i||null)}),t.css(a)})};"object"!=typeof n.alsoResize||n.alsoResize.nodeType?h(n.alsoResize):e.each(n.alsoResize,function(e,t){h(e,t)})},stop:function(){e(this).removeData("resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).data("ui-resizable"),i=t.options,s=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:s.height,width:s.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).data("ui-resizable");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).data("ui-resizable");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t=e(this).data("ui-resizable"),i=t.options,s=t.size,n=t.originalSize,a=t.originalPosition,o=t.axis,r="number"==typeof i.grid?[i.grid,i.grid]:i.grid,h=r[0]||1,l=r[1]||1,u=Math.round((s.width-n.width)/h)*h,c=Math.round((s.height-n.height)/l)*l,d=n.width+u,p=n.height+c,f=i.maxWidth&&d>i.maxWidth,m=i.maxHeight&&p>i.maxHeight,g=i.minWidth&&i.minWidth>d,v=i.minHeight&&i.minHeight>p;i.grid=r,g&&(d+=h),v&&(p+=l),f&&(d-=h),m&&(p-=l),/^(se|s|e)$/.test(o)?(t.size.width=d,t.size.height=p):/^(ne)$/.test(o)?(t.size.width=d,t.size.height=p,t.position.top=a.top-c):/^(sw)$/.test(o)?(t.size.width=d,t.size.height=p,t.position.left=a.left-u):(t.size.width=d,t.size.height=p,t.position.top=a.top-c,t.position.left=a.left-u)}})})(jQuery);
vendor: 10,720 bytes, lines 65-71
65
66;/*})'"*/
67;/*})'"*/
68/*! jQuery UI - v1.10.2 - 2013-03-14
69* http://jqueryui.com
70* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
71(function(t){var e={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},i={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};t.widget("ui.dialog",{version:"1.10.2",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;0>i&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&this._trigger("beforeClose",e)!==!1&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||t(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return i&&!e&&this._trigger("focus",t),i},open:function(){var e=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),undefined):(this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._trigger("open"),undefined)},_focusTabbable:function(){var t=this.element.find("[autofocus]");t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).focus()},_keepFocus:function(e){function i(){var e=this.document[0].activeElement,i=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);i||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),this.close(e),undefined;if(e.keyCode===t.ui.keyCode.TAB){var i=this.uiDialog.find(":tabbable"),s=i.filter(":first"),n=i.filter(":last");e.target!==n[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==s[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(n.focus(1),e.preventDefault()):(s.focus(1),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=t("<button></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title||t.html("&#160;"),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?(this.uiDialog.removeClass("ui-dialog-buttons"),undefined):(t.each(i,function(i,s){var n,a;s=t.isFunction(s)?{click:s,text:i}:s,s=t.extend({type:"button"},s),n=s.click,s.click=function(){n.apply(e.element[0],arguments)},a={icons:s.icons,text:s.showText},delete s.icons,delete s.showText,t("<button></button>",s).button(a).appendTo(e.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),undefined)},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,s=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(s,n){t(this).addClass("ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",s,e(n))},drag:function(t,s){i._trigger("drag",t,e(s))},stop:function(n,a){s.position=[a.position.left-i.document.scrollLeft(),a.position.top-i.document.scrollTop()],t(this).removeClass("ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",n,e(a))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,s=this.options,n=s.resizable,a=this.uiDialog.css("position"),o="string"==typeof n?n:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:s.maxWidth,maxHeight:s.maxHeight,minWidth:s.minWidth,minHeight:this._minHeight(),handles:o,start:function(s,n){t(this).addClass("ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",s,e(n))},resize:function(t,s){i._trigger("resize",t,e(s))},stop:function(n,a){s.height=t(this).height(),s.width=t(this).width(),t(this).removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",n,e(a))}}).css("position",a)},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(s){var n=this,a=!1,o={};t.each(s,function(t,s){n._setOption(t,s),t in e&&(a=!0),t in i&&(o[t]=s)}),a&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",o)},_setOption:function(t,e){var i,s,n=this.uiDialog;"dialogClass"===t&&n.removeClass(this.options.dialogClass).addClass(e),"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:""+e}),"draggable"===t&&(i=n.is(":data(ui-draggable)"),i&&!e&&n.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&(s=n.is(":data(ui-resizable)"),s&&!e&&n.resizable("destroy"),s&&"string"==typeof e&&n.resizable("option","handles",e),s||e===!1||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),e=Math.max(0,s.minHeight-t),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-t):"none","auto"===s.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(".ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=this,i=this.widgetFullName;t.ui.dialog.overlayInstances||this._delay(function(){t.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(s){e._allowInteraction(s)||(s.preventDefault(),t(".ui-dialog:visible:last .ui-dialog-content").data(i)._focusTabbable())})}),this.overlay=t("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),t.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(t.ui.dialog.overlayInstances--,t.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),t.ui.dialog.overlayInstances=0,t.uiBackCompat!==!1&&t.widget("ui.dialog",t.ui.dialog,{_position:function(){var e,i=this.options.position,s=[],n=[0,0];
71i?(("string"==typeof i||"object"==typeof i&&"0"in i)&&(s=i.split?i.split(" "):[i[0],i[1]],1===s.length&&(s[1]=s[0]),t.each(["left","top"],function(t,e){+s[t]===s[t]&&(n[t]=s[t],s[t]=e)}),i={my:s[0]+(0>n[0]?n[0]:"+"+n[0])+" "+s[1]+(0>n[1]?n[1]:"+"+n[1]),at:s.join(" ")}),i=t.extend({},t.ui.dialog.prototype.options.position,i)):i=t.ui.dialog.prototype.options.position,e=this.uiDialog.is(":visible"),e||this.uiDialog.show(),this.uiDialog.position(i),e||this.uiDialog.hide()}})})(jQuery);
72;/*})'"*/
73;/*})'"*/
74(function(t){var i=t.ui.dialog.version.split('.'),e=parseInt(i[0]),o=parseInt(i[1]);if(e===1&&o<13){var p=t.ui.dialog.prototype._setOption,s=t.ui.dialog.prototype._createTitlebar;t.extend(t.ui.dialog.prototype,{_createTitlebar:function(){if(this.options.closeText){this.options.closeText=Drupal.checkPlain(this.options.closeText)};s.apply(this,arguments)},_setOption:function(t,i){if(t==='title'||t=='closeText'){if(i){i=Drupal.checkPlain(i)}};p.apply(this,[t,i])}});if(e===1&&o<10){var a=t.ui.dialog.prototype._create;t.extend(t.ui.dialog.prototype,{_create:function(){if(!this.options.title){var t=this.element.attr('title');if(typeof t!=='string'){t=''};this.options.title=t};this.options.title=Drupal.checkPlain(this.options.title);a.apply(this,arguments)},})}}})(jQuery);;/*})'"*/
75/*! jQuery UI - v1.10.2 - 2013-03-14
76* http://jqueryui.com
77* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
78(function(t,e){function i(){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},t.extend(this._defaults,this.regional[""]),this.dpDiv=s(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function s(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(i,"mouseout",function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",function(){t.datepicker._isDisabledDatepicker(a.inline?e.parent()[0]:a.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))})}function n(e,i){t.extend(e,i);for(var s in i)null==i[s]&&(e[s]=i[s]);return e}t.extend(t.ui,{datepicker:{version:"1.10.2"}});var a,r="datepicker",o=(new Date).getTime()
vendor: 9,455 bytes, line 78
78;t.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return n(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var s,n,a;s=e.nodeName.toLowerCase(),n="div"===s||"span"===s,e.id||(this.uuid+=1,e.id="dp"+this.uuid),a=this._newInst(t(e),n),a.settings=t.extend({},i||{}),"input"===s?this._connectDatepicker(e,a):n&&this._inlineDatepicker(e,a)},_newInst:function(e,i){var n=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:n,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?s(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var s=t(e);i.append=t([]),i.trigger=t([]),s.hasClass(this.markerClassName)||(this._attachments(s,i),s.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,r,i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var s,n,a,r=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=t("<span class='"+this._appendClass+"'>"+r+"</span>"),e[o?"before":"after"](i.append)),e.unbind("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),s=this._get(i,"showOn"),("focus"===s||"both"===s)&&e.focus(this._showDatepicker),("button"===s||"both"===s)&&(n=this._get(i,"buttonText"),a=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:a,alt:n,title:n}):t("<button type='button'></button>").addClass(this._triggerClass).html(a?t("<img/>").attr({src:a,alt:n,title:n}):n)),e[o?"before":"after"](i.trigger),i.trigger.click(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,s,n,a=new Date(2009,11,20),r=this._get(t,"dateFormat");r.match(/[DM]/)&&(e=function(t){for(i=0,s=0,n=0;t.length>n;n++)t[n].length>i&&(i=t[n].length,s=n);return s},a.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),t.input.attr("size",this._formatDate(t,a).length)}},_inlineDatepicker:function(e,i){var s=t(e);s.hasClass(this.markerClassName)||(s.addClass(this.markerClassName).append(i.dpDiv),t.data(e,r,i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,s,a,o){var h,l,c,u,d,p=this._dialogInst;return p||(this.uuid+=1,h="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+h+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),p=this._dialogInst=this._newInst(this._dialogInput,!1),p.settings={},t.data(this._dialogInput[0],r,p)),n(p.settings,a||{}),i=i&&i.constructor===Date?this._formatDate(p,i):i,this._dialogInput.val(i),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,c/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.settings.onSelect=s,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],r,p),this},_destroyDatepicker:function(e){var i,s=t(e),n=t.data(e,r);s.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,r),"input"===i?(n.append.remove(),n.trigger.remove(),s.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===i||"span"===i)&&s.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var i,s,n=t(e),a=t.data(e,r);n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,s,n=t(e),a=t.data(e,r);n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,r)}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(i,s,a){var r,o,h,l,c=this._getInst(i);return 2===arguments.length&&"string"==typeof s?"defaults"===s?t.extend({},t.datepicker._defaults):c?"all"===s?t.extend({},c.settings):this._get(c,s):null:(r=s||{},"string"==typeof s&&(r={},r[s]=a),c&&(this._curInst===c&&this._hideDatepicker(),o=this._getDateDatepicker(i,!0),h=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),n(c.settings,r),null!==h&&r.dateFormat!==e&&r.minDate===e&&(c.settings.minDate=this._formatDate(c,h)),null!==l&&r.dateFormat!==e&&r.maxDate===e&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in r&&(r.disabled?this._disableDatepicker(i):this._enableDatepicker(i)),this._attachments(t(i),c),this._autoSize(c),this._setDate(c,o),this._updateAlternate(c),this._updateDatepicker(c)),e)},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,s,n,a=t.datepicker._getInst(e.target),r=!0,o=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),r=!1;break;case 13:return n=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",a.dpDiv),n[0]&&t.datepicker._selectDay(e.target,a.selectedMonth,a.selectedYear,n[0]),i=t.datepicker._get(a,"onSelect"),i?(s=t.datepicker._formatDate(a),i.apply(a.input?a.input[0]:null,[s,a])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(a,"stepBigMonths"):-t.datepicker._get(a,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(a,"stepBigMonths"):+t.datepicker._get(a,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),r=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),r=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,o?1:-1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(a,"stepBigMonths"):-t.datepicker._get(a,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),r=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,o?-1:1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(a,"stepBigMonths"):+t.datepicker._get(a,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),r=e.ctrlKey||e.metaKey;break;default:r=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):r=!1;r&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(i){var s,n,a=t.datepicker._getInst(i.target);return t.datepicker._get(a,"constrainInput")?(s=t.datepicker._possibleChars(t.datepicker._get(a,"dateFormat")),n=String.fromCharCode(null==i.charCode?i.keyCode:i.charCode),i.ctrlKey||i.metaKey||" ">n||!s||s.indexOf(n)>-1):e},_doKeyUp:function(e){var i,s=t.datepicker._getInst(e.target);if(s.input.val()!==s.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(s,"dateFormat"),s.input?s.input.val():null,t.datepicker._getFormatConfig(s)),i&&(t.datepicker._setDateFromField(s),t.datepicker._updateAlternate(s),t.datepicker._updateDatepicker(s))}catch(n){}return!0}
vendor: 23,617 bytes, lines 78-79
78,_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var i,s,a,r,o,h,l;i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),s=t.datepicker._get(i,"beforeShow"),a=s?s.apply(e,[e,i]):{},a!==!1&&(n(i.settings,a),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),r=!1,t(e).parents().each(function(){return r|="fixed"===t(this).css("position"),!r}),o={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),o=t.datepicker._checkOffset(i,o,r),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":r?"fixed":"absolute",display:"none",left:o.left+"px",top:o.top+"px"}),i.inline||(h=t.datepicker._get(i,"showAnim"),l=t.datepicker._get(i,"duration"),i.dpDiv.zIndex(t(e).zIndex()+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[h]?i.dpDiv.show(h,t.datepicker._get(i,"showOptions"),l):i.dpDiv[h||"show"](h?l:null),i.input.is(":visible")&&!i.input.is(":disabled")&&i.input.focus(),t.datepicker._curInst=i))}},_updateDatepicker:function(e){this.maxRows=4,a=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e),e.dpDiv.find("."+this._dayOverClass+" a").mouseover();var i,s=this._getNumberOfMonths(e),n=s[1],r=17;e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&e.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",r*n+"em"),e.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&e.input[0]!==document.activeElement&&e.input.focus(),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.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(e,i,s){var n=e.dpDiv.outerWidth(),a=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,o=e.input?e.input.outerHeight():0,h=document.documentElement.clientWidth+(s?0:t(document).scrollLeft()),l=document.documentElement.clientHeight+(s?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?n-r:0,i.left-=s&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=s&&i.top===e.input.offset().top+o?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+n>h&&h>n?Math.abs(i.left+n-h):0),i.top-=Math.min(i.top,i.top+a>l&&l>a?Math.abs(a+o):0),i},_findPos:function(e){for(var i,s=this._getInst(e),n=this._get(s,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,s,n,a,o=this._curInst;!o||e&&o!==t.data(e,r)||this._datepickerShowing&&(i=this._get(o,"showAnim"),s=this._get(o,"duration"),n=function(){t.datepicker._tidyDialog(o)},t.effects&&(t.effects.effect[i]||t.effects[i])?o.dpDiv.hide(i,t.datepicker._get(o,"showOptions"),s,n):o.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?s:null,n),i||n(),this._datepickerShowing=!1,a=this._get(o,"onClose"),a&&a.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),s=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&&0===i.parents("#"+t.datepicker._mainDivId).length&&!i.hasClass(t.datepicker.markerClassName)&&!i.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==s)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,s){var n=t(e),a=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(a,i+("M"===s?this._get(a,"showCurrentAtPos"):0),s),this._updateDatepicker(a))},_gotoToday:function(e){var i,s=t(e),n=this._getInst(s[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(i=new Date,n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear()),this._notifyChange(n),this._adjustDate(s)},_selectMonthYear:function(e,i,s){var n=t(e),a=this._getInst(n[0]);a["selected"+("M"===s?"Month":"Year")]=a["draw"+("M"===s?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(n)},_selectDay:function(e,i,s,n){var a,r=t(e);t(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||(a=this._getInst(r[0]),a.selectedDay=a.currentDay=t("a",n).html(),a.selectedMonth=a.currentMonth=i,a.selectedYear=a.currentYear=s,this._selectDate(e,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var s,n=t(e),a=this._getInst(n[0]);i=null!=i?i:this._formatDate(a),a.input&&a.input.val(i),this._updateAlternate(a),s=this._get(a,"onSelect"),s?s.apply(a.input?a.input[0]:null,[i,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var i,s,n,a=this._get(e,"altField");a&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),s=this._getDate(e),n=this.formatDate(i,s,this._getFormatConfig(e)),t(a).each(function(){t(this).val(n)}))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(i,s,n){if(null==i||null==s)throw"Invalid arguments";if(s="object"==typeof s?""+s:s+"",""===s)return null;var a,r,o,h,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),d=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,p=(n?n.dayNames:null)||this._defaults.dayNames,f=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,m=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,v=-1,_=-1,b=-1,y=!1,w=function(t){var e=i.length>a+1&&i.charAt(a+1)===t;return e&&a++,e},k=function(t){var e=w(t),i="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,n=RegExp("^\\d{1,"+i+"}"),a=s.substring(l).match(n);if(!a)throw"Missing number at position "+l;return l+=a[0].length,parseInt(a[0],10)},x=function(i,n,a){var r=-1,o=t.map(w(i)?a:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(o,function(t,i){var n=i[1];return s.substr(l,n.length).toLowerCase()===n.toLowerCase()?(r=i[0],l+=n.length,!1):e}),-1!==r)return r+1;throw"Unknown name at position "+l},D=function(){if(s.charAt(l)!==i.charAt(a))throw"Unexpected literal at position "+l;l++};for(a=0;i.length>a;a++)if(y)"'"!==i.charAt(a)||w("'")?D():y=!1;else switch(i.charAt(a)){case"d":_=k("d");break;case"D":x("D",d,p);break;case"o":b=k("o");break;case"m":v=k("m");break;case"M":v=x("M",f,m);break;case"y":g=k("y");break;case"@":h=new Date(k("@")),g=h.getFullYear(),v=h.getMonth()+1,_=h.getDate();break;case"!":h=new Date((k("!")-this._ticksTo1970)/1e4),g=h.getFullYear(),v=h.getMonth()+1,_=h.getDate();break;case"'":w("'")?D():y=!0;break;default:D()}if(s.length>l&&(o=s.substr(l),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===g?g=(new Date).getFullYear():100>g&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u>=g?0:-100)),b>-1)for(v=1,_=b;;){if(r=this._getDaysInMonth(g,v-1),r>=_)break;v++,_-=r}if(h=this._daylightSavingAdjust(new Date(g,v-1,_)),h.getFullYear()!==g||h.getMonth()+1!==v||h.getDate()!==_)throw"Invalid date";return h},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:1e7*60*60*24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(t,e,i){if(!e)return"";var s,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,h=function(e){var i=t.length>s+1&&t.charAt(s+1)===e;return i&&s++,i},l=function(t,e,i){var s=""+e;if(h(t))for(;i>s.length;)s="0"+s;return s},c=function(t,e,i,s){return h(t)?s[e]:i[e]},u="",d=!1;if(e)for(s=0;t.length>s;s++)if(d)"'"!==t.charAt(s)||h("'")?u+=t.charAt(s):d=!1;else switch(t.charAt(s)){case"d":u+=l("d",e.getDate(),2);break;case"D":u+=c("D",e.getDay(),n,a);break;case"o":u+=l("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=l("m",e.getMonth()+1,2);break;case"M":u+=c("M",e.getMonth(),r,o);break;case"y":u+=h("y")?e.getFullYear():(10>e.getYear()%100?"0":"")+e.getYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*e.getTime()+this._ticksTo1970;break;case"'":h("'")?u+="'":d=!0;break;default:u+=t.charAt(s)}return u},_possibleChars:function(t){var e,i="",s=!1,n=function(i){var s=t.length>e+1&&t.charAt(e+1)===i;return s&&e++,s};for(e=0;t.length>e;e++)if(s)"'"!==t.charAt(e)||n("'")?i+=t.charAt(e):s=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":n("'")?i+="'":s=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,i){return t.settings[i]!==e?t.settings[i]:this._defaults[i]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),a=n,r=this._getFormatConfig(t);try{a=this.parseDate(i,s,r)||n}catch(o){s=e?"":s}t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),t.currentDay=s?a.getDate():0,t.currentMonth=s?a.getMonth():0,t.currentYear=s?a.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,s){var n=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},a=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(s){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,a=n.getFullYear(),r=n.getMonth(),o=n.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=h.exec(i);l;){switch(l[2]||"d"){case"d":case"D":o+=parseInt(l[1],10);break;case"w":case"W":o+=7*parseInt(l[1],10);break;case"m":case"M":r+=parseInt(l[1],10),o=Math.min(o,t.datepicker._getDaysInMonth(a,r));break;case"y":case"Y":a+=parseInt(l[1],10),o=Math.min(o,t.datepicker._getDaysInMonth(a,r))}l=h.exec(i)}return new Date(a,r,o)},r=null==i||""===i?s:"string"==typeof i?a(i):"number"==typeof i?isNaN(i)?s:n(i):new Date(i.getTime());return r=r&&"Invalid Date"==""+r?s:r,r&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?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){var e=!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),s="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){window["DP_jQuery_"+o].datepicker._adjustDate(s,-i,"M")},next:function(){window["DP_jQuery_"+o].datepicker._adjustDate(s,+i,"M")},hide:function(){window["DP_jQuery_"+o].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+o].datepicker._gotoToday(s)},selectDay:function(){return window["DP_jQuery_"+o].datepicker._selectDay(s,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return window["DP_jQuery_"+o].datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){return window["DP_jQuery_"+o].datepicker._selectMonthYear(s,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,n,a,r,o,h,l,c,u,d,p,f,m,g,v,_,b,y,w,k,x,D,T,C,S,M,N,I,P,A,z,H,E,F,O,W,j,R=new Date,L=this._daylightSavingAdjust(new Date(R.getFullYear(),R.getMonth(),R.getDate())),Y=this._get(t,"isRTL"),B=this._get(t,"showButtonPanel"),J=this._get(t,"hideIfNoPrevNext"),Q=this._get(t,"navigationAsDateFormat"),K=this._getNumberOfMonths(t),V=this._get(t,"showCurrentAtPos"),U=this._get(t,"stepMonths"),q=1!==K[0]||1!==K[1],X=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),G=this._getMinMaxDate(t,"min"),$=this._getMinMaxDate(t,"max"),Z=t.drawMonth-V,te=t.drawYear;if(0>Z&&(Z+=12,te--),$)for(e=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth()-K[0]*K[1]+1,$.getDate())),e=G&&G>e?G:e;this._daylightSavingAdjust(new Date(te,Z,1))>e;)Z--,0>Z&&(Z=11,te--);for(t.drawMonth=Z,t.drawYear=te,i=this._get(t,"prevText"),i=Q?this.formatDate(i,this._daylightSavingAdjust(new Date(te,Z-U,1)),this._getFormatConfig(t)):i,s=this._canAdjustMonth(t,-1,te,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>":J?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>",n=this._get(t,"nextText"),n=Q?this.formatDate(n,this._daylightSavingAdjust(new Date(te,Z+U,1)),this._getFormatConfig(t)):n,a=this._canAdjustMonth(t,1,te,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</span></a>":J?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</span></a>",r=this._get(t,"currentText"),o=this._get(t,"gotoCurrent")&&t.currentDay?X:L,r=Q?this.formatDate(r,o,this._getFormatConfig(t)):r,h=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",l=B?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Y?h:"")+(this._isInRange(t,o)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+r+"</button>":"")+(Y?"":h)+"</div>":"",c=parseInt(this._get(t,"firstDay"),10),c=isNaN(c)?0:c,u=this._get(t,"showWeek"),d=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),g=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),_=this._get(t,"selectOtherMonths"),b=this._getDefaultDate(t),y="",k=0;K[0]>k;k++){for(x="",this.maxRows=4,D=0;K[1]>D;D++){if(T=this._daylightSavingAdjust(new Date(te,Z,t.selectedDay)),C=" ui-corner-all",S="",q){if(S+="<div class='ui-datepicker-group",K[1]>1)switch(D){case 0:S+=" ui-datepicker-group-first",C=" ui-corner-"+(Y?"right":"left");break;case K[1]-1:S+=" ui-datepicker-group-last",C=" ui-corner-"+(Y?"left":"right");break;default:S+=" ui-datepicker-group-middle",C=""}S+="'>"}for(S+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+C+"'>"+(/all|left/.test(C)&&0===k?Y?a:s:"")+(/all|right/.test(C)&&0===k?Y?s:a:"")+this._generateMonthYearHeader(t,Z,te,G,$,k>0||D>0,f,m)+"</div><table class='ui-datepicker-calendar'><thead>"+"<tr>",M=u?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;7>w;w++)N=(w+c)%7,M+="<th"+((w+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+">"+"<span title='"+d[N]+"'>"+p[N]+"</span></th>";for(S+=M+"</tr></thead><tbody>",I=this._getDaysInMonth(te,Z),te===t.selectedYear&&Z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,I)),P=(this._getFirstDayOfMonth(te,Z)-c+7)%7,A=Math.ceil((P+I)/7),z=q?this.maxRows>A?this.maxRows:A:A,this.maxRows=z,H=this._daylightSavingAdjust(new Date(te,Z,1-P)),E=0;z>E;E++){for(S+="<tr>",F=u?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(H)+"</td>":"",w=0;7>w;w++)O=g?g.apply(t.input?t.input[0]:null,[H]):[!0,""],W=H.getMonth()!==Z,j=W&&!_||!O[0]||G&&G>H||$&&H>$,F+="<td class='"+((w+c+6)%7>=5?" ui-datepicker-week-end":"")+(W?" ui-datepicker-other-month":"")+(H.getTime()===T.getTime()&&Z===t.selectedMonth&&t._keyEvent||b.getTime()===H.getTime()&&b.getTime()===T.getTime()?" "+this._dayOverClass:"")+(j?" "+this._unselectableClass+" ui-state-disabled":"")+(W&&!v?"":" "+O[1]+(H.getTime()===X.getTime()?" "+this._currentClass:"")+(H.getTime()===L.getTime()?" ui-datepicker-today":""))+"'"+(W&&!v||!O[2]?"":" title='"+O[2].replace(/'/g,"&#39;")+"'")+(j?"":" data-handler='selectDay' data-event='click' data-month='"+H.getMonth()+"' data-year='"+H.getFullYear()+"'")+">"+(W&&!v?"&#xa0;":j?"<span class='ui-state-default'>"+H.getDate()+"</span>":"<a class='ui-state-default"+(H.getTime()===L.getTime()?" ui-state-highlight":"")+(H.getTime()===X.getTime()?" ui-state-active":"")+(W?" ui-priority-secondary":"")+"' href='#'>"+H.getDate()+"</a>")+"</td>",H.setDate(H.getDate()+1),H=this._daylightSavingAdjust(H);S+=F+"</tr>"}Z++,Z>11&&(Z=0,te++),S+="</tbody></table>"+(q?"</div>"+(K[0]>0&&D===K[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),x+=S}y+=x}return y+=l,t._keyEvent=!1,y},_generateMonthYearHeader:function(t,e,i,s,n,a,r,o){var h,l,c,u,d,p,f,m,g=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),_=this._get(t,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",y="";if(a||!g)y+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(h=s&&s.getFullYear()===i,l=n&&n.getFullYear()===i,y+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;12>c;c++)(!h||c>=s.getMonth())&&(!l||n.getMonth()>=c)&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+o[c]+"</option>");
79y+="</select>"}if(_||(b+=y+(!a&&g&&v?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",a||!v)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e},f=p(u[0]),m=Math.max(f,p(u[1]||"")),f=s?Math.max(f,s.getFullYear()):f,m=n?Math.min(m,n.getFullYear()):m,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";m>=f;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),_&&(b+=(!a&&g&&v?"":"&#xa0;")+y),b+="</div>"},_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&&i>e?i:e;return s&&n>s?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+(0>e?e:n[0]*n[1]),1));return 0>e&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(t,a)},_isInRange:function(t,e){var i,s,n=this._getMinMaxDate(t,"min"),a=this._getMinMaxDate(t,"max"),r=null,o=null,h=this._get(t,"yearRange");return h&&(i=h.split(":"),s=(new Date).getFullYear(),r=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=s),i[1].match(/[+\-].*/)&&(o+=s)),(!n||e.getTime()>=n.getTime())&&(!a||e.getTime()<=a.getTime())&&(!r||e.getFullYear()>=r)&&(!o||o>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,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))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.10.2",window["DP_jQuery_"+o]=t})(jQuery);
79
80;/*})'"*/
81;/*})'"*/
82(function(e,t){var r=e.ui.datepicker.version.split('.'),n=parseInt(r[0]),i=parseInt(r[1]);if((n>1)||(n===1&&i>=13)){return};var a=e.datepicker._get;e.extend(e.datepicker,{_get:function(i,n){var r=a.call(this,i,n);if(n==='altField'){r=e(document).find(r)}
83else if(e.inArray(n,['appendText','buttonText','prevText','currentText','nextText','closeText'])!==-1){r=t.checkPlain(r)};return r}})})(jQuery,Drupal);;/*})'"*/
84;jQuery.cookie=function(o,n,e){if(arguments.length>1&&(n===null||typeof n!=='object')){e=jQuery.extend({},e);if(n===null){e.expires=-1};if(typeof e.expires==='number'){var a=e.expires,r=e.expires=new Date();r.setDate(r.getDate()+a)};return(document.cookie=[encodeURIComponent(o),'=',e.raw?String(n):encodeURIComponent(String(n)),e.expires?'; expires='+e.expires.toUTCString():'',e.path?'; path='+e.path:'',e.domain?'; domain='+e.domain:'',e.secure?'; secure':''].join(''))};e=n||{};var t,i=e.raw?function(e){return e}:decodeURIComponent;return(t=new RegExp('(?:^|; )'+encodeURIComponent(o)+'=([^;]*)').exec(document.cookie))?i(t[1]):null};;/*})'"*/
85/*!
86 * jQuery Form Plugin
87 * version: 2.69 (06-APR-2011)
88 * @requires jQuery v1.3.2 or later
89 *
90 * Examples and documentation at: http://malsup.com/jquery/form/
91 * Dual licensed under the MIT and GPL licenses:
92 *   http://www.opensource.org/licenses/mit-license.php
93 *   http://www.gnu.org/licenses/gpl.html
94 */
95(function(a){function b(){if(a.fn.ajaxSubmit.debug){var b="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(b):window.opera&&window.opera.postError&&window.opera.postError(b)}}a.fn.ajaxSubmit=function(c){function r(){function t(){if(!j.aborted){var c=i.contentWindow?i.contentWindow.document:i.contentDocument?i.contentDocument:i.document;if(!c||c.location.href==e.iframeSrc)if(!m)return;i.detachEvent?i.detachEvent("onload",t):i.removeEventListener("load",t,!1);var d=!0;try{if(m)throw"timeout";var f=e.dataType=="xml"||c.XMLDocument||a.isXMLDoc(c);b("isXml="+f);if(!f&&window.opera&&(c.body==null||c.body.innerHTML=="")&&--s){b("requeing onLoad callback, DOM not available"),setTimeout(t,250);return}j.responseText=c.body?c.body.innerHTML:c.documentElement?c.documentElement.innerHTML:null,j.responseXML=c.XMLDocument?c.XMLDocument:c,j.getResponseHeader=function(a){var b={"content-type":e.dataType};return b[a]};var g=/(json|script)/.test(e.dataType);if(g||e.textarea){var l=c.getElementsByTagName("textarea")[0];if(l)j.responseText=l.value;else if(g){var n=c.getElementsByTagName("pre")[0],o=c.getElementsByTagName("body")[0];n?j.responseText=n.textContent:o&&(j.responseText=o.innerHTML)}}else e.dataType=="xml"&&!j.responseXML&&j.responseText!=null&&(j.responseXML=u(j.responseText));q=w(j,e.dataType,e)}catch(p){b("error caught:",p),d=!1,j.error=p,e.error&&e.error.call(e.context,j,"error",p),k&&a.event.trigger("ajaxError",[j,e,p])}j.aborted&&(b("upload aborted"),d=!1),d&&(e.success&&e.success.call(e.context,q,"success",j),k&&a.event.trigger("ajaxSuccess",[j,e])),k&&a.event.trigger("ajaxComplete",[j,e]),k&&!--a.active&&a.event.trigger("ajaxStop"),e.complete&&e.complete.call(e.context,j,d?"success":"error"),setTimeout(function(){h.removeData("form-plugin-onload"),h.remove(),j.responseXML=null},100)}}function p(){var b=l.attr("target"),c=l.attr("action");d.setAttribute("target",f),d.getAttribute("method")!="POST"&&d.setAttribute("method","POST"),d.getAttribute("action")!=e.url&&d.setAttribute("action",e.url),e.skipEncodingOverride||l.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),e.timeout&&setTimeout(function(){m=!0,t()},e.timeout);var g=[];try{if(e.extraData)for(var j in e.extraData)g.push(a('<input type="hidden" name="'+j+'" value="'+e.extraData[j]+'" />').appendTo(d)[0]);h.appendTo("body"),i.attachEvent?i.attachEvent("onload",t):i.addEventListener("load",t,!1),d.submit()}finally{d.setAttribute("action",c),b?d.setAttribute("target",b):l.removeAttr("target"),a(g).remove()}}var d=l[0];if(a(":input[name=submit],:input[id=submit]",d).length)alert('Error: Form elements must not have name or id of "submit".');else{var e=a.extend(!0,{},a.ajaxSettings,c);e.context=e.context||e;var f="jqFormIO"+(new Date).getTime(),g="_"+f,h=a('<iframe id="'+f+'" name="'+f+'" src="'+e.iframeSrc+'" />'),i=h[0];h.css({position:"absolute",top:"-1000px",left:"-1000px"});var j={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){b("aborting upload...");var c="aborted";this.aborted=1,h.attr("src",e.iframeSrc),j.error=c,e.error&&e.error.call(e.context,j,"error",c),k&&a.event.trigger("ajaxError",[j,e,c]),e.complete&&e.complete.call(e.context,j,"error")}},k=e.global;k&&!(a.active++)&&a.event.trigger("ajaxStart"),k&&a.event.trigger("ajaxSend",[j,e]);
95if(e.beforeSend&&e.beforeSend.call(e.context,j,e)===!1){e.global&&a.active--;return}if(j.aborted)return;var m=0,n=d.clk;if(n){var o=n.name;o&&!n.disabled&&(e.extraData=e.extraData||{},e.extraData[o]=n.value,n.type=="image"&&(e.extraData[o+".x"]=d.clk_x,e.extraData[o+".y"]=d.clk_y))}e.forceSync?p():setTimeout(p,10);var q,r,s=50,u=a.parseXML||function(a,b){window.ActiveXObject?(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a)):b=(new DOMParser).parseFromString(a,"text/xml");return b&&b.documentElement&&b.documentElement.nodeName!="parsererror"?b:null},v=a.parseJSON||function(a){return window.eval("("+a+")")},w=function(b,c,d){var e=b.getResponseHeader("content-type")||"",f=c==="xml"||!c&&e.indexOf("xml")>=0,g=f?b.responseXML:b.responseText;f&&g.documentElement.nodeName==="parsererror"&&a.error&&a.error("parsererror"),d&&d.dataFilter&&(g=d.dataFilter(g,c)),typeof g=="string"&&(c==="json"||!c&&e.indexOf("json")>=0?g=v(g):(c==="script"||!c&&e.indexOf("javascript")>=0)&&a.globalEval(g));return g}}}if(!this.length){b("ajaxSubmit: skipping submit process - no element selected");return this}typeof c=="function"&&(c={success:c});var d=this.attr("action"),e=typeof d=="string"?a.trim(d):"";e&&(e=(e.match(/^([^#]+)/)||[])[1]),e=e||window.location.href||"",c=a.extend(!0,{url:e,success:a.ajaxSettings.success,type:this[0].getAttribute("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},c);var f={};this.trigger("form-pre-serialize",[this,c,f]);if(f.veto){b("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(c.beforeSerialize&&c.beforeSerialize(this,c)===!1){b("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var g,h,i=this.formToArray(c.semantic);if(c.data){c.extraData=c.data;for(g in c.data)if(c.data[g]instanceof Array)for(var j in c.data[g])i.push({name:g,value:c.data[g][j]});else h=c.data[g],h=a.isFunction(h)?h():h,i.push({name:g,value:h})}if(c.beforeSubmit&&c.beforeSubmit(i,this,c)===!1){b("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[i,this,c,f]);if(f.veto){b("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var k=a.param(i);c.type.toUpperCase()=="GET"?(c.url+=(c.url.indexOf("?")>=0?"&":"?")+k,c.data=null):c.data=k;var l=this,m=[];c.resetForm&&m.push(function(){l.resetForm()}),c.clearForm&&m.push(function(){l.clearForm()});if(!c.dataType&&c.target){var n=c.success||function(){};m.push(function(b){var d=c.replaceTarget?"replaceWith":"html";a(c.target)[d](b).each(n,arguments)})}else c.success&&m.push(c.success);c.success=function(a,b,d){var e=c.context||c;for(var f=0,g=m.length;f<g;f++)m[f].apply(e,[a,b,d||l,l])};var o=a("input:file",this).length>0,p="multipart/form-data",q=l.attr("enctype")==p||l.attr("encoding")==p;c.iframe!==!1&&(o||c.iframe||q)?c.closeKeepAlive?a.get(c.closeKeepAlive,r):r():a.ajax(c),this.trigger("form-submit-notify",[this,c]);return this},a.fn.ajaxForm=function(c){if(this.length===0){var d={s:this.selector,c:this.context};if(!a.isReady&&d.s){b("DOM not ready, queuing ajaxForm"),a(function(){a(d.s,d.c).ajaxForm(c)});return this}b("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.ajaxFormUnbind().bind("submit.form-plugin",function(b){b.isDefaultPrevented()||(b.preventDefault(),a(this).ajaxSubmit(c))}).bind("click.form-plugin",function(b){var c=b.target,d=a(c);if(!d.is(":submit,input:image")){var e=d.closest(":submit");if(e.length==0)return;c=e[0]}var f=this;f.clk=c;if(c.type=="image")if(b.offsetX!=undefined)f.clk_x=b.offsetX,f.clk_y=b.offsetY;else if(typeof a.fn.offset=="function"){var g=d.offset();f.clk_x=b.pageX-g.left,f.clk_y=b.pageY-g.top}else f.clk_x=b.pageX-c.offsetLeft,f.clk_y=b.pageY-c.offsetTop;setTimeout(function(){f.clk=f.clk_x=f.clk_y=null},100)})},a.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},a.fn.formToArray=function(b){var c=[];if(this.length===0)return c;var d=this[0],e=b?d.getElementsByTagName("*"):d.elements;if(!e)return c;var f,g,h,i,j,k,l;
95for(f=0,k=e.length;f<k;f++){j=e[f],h=j.name;if(!h)continue;if(b&&d.clk&&j.type=="image"){!j.disabled&&d.clk==j&&(c.push({name:h,value:a(j).val()}),c.push({name:h+".x",value:d.clk_x},{name:h+".y",value:d.clk_y}));continue}i=a.fieldValue(j,!0);if(i&&i.constructor==Array)for(g=0,l=i.length;g<l;g++)c.push({name:h,value:i[g]});else i!==null&&typeof i!="undefined"&&c.push({name:h,value:i})}if(!b&&d.clk){var m=a(d.clk),n=m[0];h=n.name,h&&!n.disabled&&n.type=="image"&&(c.push({name:h,value:m.val()}),c.push({name:h+".x",value:d.clk_x},{name:h+".y",value:d.clk_y}))}return c},a.fn.formSerialize=function(b){return a.param(this.formToArray(b))},a.fn.fieldSerialize=function(b){var c=[];this.each(function(){var d=this.name;if(!!d){var e=a.fieldValue(this,b);if(e&&e.constructor==Array)for(var f=0,g=e.length;f<g;f++)c.push({name:d,value:e[f]});else e!==null&&typeof e!="undefined"&&c.push({name:this.name,value:e})}});return a.param(c)},a.fn.fieldValue=function(b){for(var c=[],d=0,e=this.length;d<e;d++){var f=this[d],g=a.fieldValue(f,b);if(g===null||typeof g=="undefined"||g.constructor==Array&&!g.length)continue;
95g.constructor==Array?a.merge(c,g):c.push(g)}return c},a.fieldValue=function(b,c){var d=b.name,e=b.type,f=b.tagName.toLowerCase();c===undefined&&(c=!0);if(c&&(!d||b.disabled||e=="reset"||e=="button"||(e=="checkbox"||e=="radio")&&!b.checked||(e=="submit"||e=="image")&&b.form&&b.form.clk!=b||f=="select"&&b.selectedIndex==-1))return null;if(f=="select"){var g=b.selectedIndex;if(g<0)return null;var h=[],i=b.options,j=e=="select-one",k=j?g+1:i.length;for(var l=j?g:0;l<k;l++){var m=i[l];if(m.selected){var n=m.value;n||(n=m.attributes&&m.attributes.value&&!m.attributes.value.specified?m.text:m.value);if(j)return n;h.push(n)}}return h}return a(b).val()},a.fn.clearForm=function(){return this.each(function(){a("input,select,textarea",this).clearFields()})},a.fn.clearFields=a.fn.clearInputs=function(){return this.each(function(){var a=this.type,b=this.tagName.toLowerCase();a=="text"||a=="password"||b=="textarea"?this.value="":a=="checkbox"||a=="radio"?this.checked=!1:b=="select"&&(this.selectedIndex=-1)})},a.fn.resetForm=function(){return this.each(function(){(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)&&this.reset()})},a.fn.enable=function(a){a===undefined&&(a=!0);return this.each(function(){this.disabled=!a})},a.fn.selected=function(b){b===undefined&&(b=!0);return this.each(function(){var c=this.type;if(c=="checkbox"||c=="radio")this.checked=b;else if(this.tagName.toLowerCase()=="option"){var d=a(this).parent("select");b&&d[0]&&d[0].type=="select-one"&&d.find("option").selected(!1),this.selected=b}})}})(jQuery)
96;/*})'"*/
97;/*})'"*/
98;var RiotTagsUtils={detectIE:function(){var t=window.navigator.userAgent,i=t.indexOf('MSIE ');if(i>0){return parseInt(t.substring(i+5,t.indexOf('.',i)),10)};var r=t.indexOf('Trident/');if(r>0){var e=t.indexOf('rv:');return parseInt(t.substring(e+3,t.indexOf('.',e)),10)};var n=t.indexOf('Edge/');if(n>0){return parseInt(t.substring(n+5,t.indexOf('.',n)),10)};return!1}};var RiotTagsMountIntObs=(typeof IntersectionObserver=='undefined'||RiotTagsUtils.detectIE())?undefined:new IntersectionObserver(function(t){for(ind in t){if(t[ind].isIntersecting){RiotTagsMountIntObs.unobserve(t[ind].target);if(jQuery(t[ind].target).data('riot_options')){riot.mount(t[ind].target,jQuery(t[ind].target).data('riot_options'))}}}},{rootMargin:'80px 0px 80px 0px'});var RiotTagsDispatch={lazyMount:function(t,n){if(typeof RiotTagsMountIntObs!='undefined'){jQuery(t).data('riot_options',n);RiotTagsMountIntObs.observe(t)}
99else{riot.mount(t,n)}}};(function(){riot.observable(RiotTagsDispatch)})();;/*})'"*/
100(function(t){if(typeof define==='function'&&define.amd){define(['jquery'],t)}
101else if(typeof module==='object'&&module.exports){module.exports=function(i,e){if(e===undefined){if(typeof window!=='undefined'){e=require('jquery')}
102else{e=require('jquery')(i)}};t(e);return e}}
103else{t(jQuery)}}(function(t){var r=[].indexOf||function(t){for(var i=0,e=this.length;i<e;i++){if(i in this&&this[i]===t){return i}};return-1},s='notify',i=s+'js',g=s+'!blank',o={t:'top',m:'middle',b:'bottom',l:'left',c:'center',r:'right'};var c=['l','c','r'],u=['t','m','b'],l=['t','b','l','r'],x={t:'b',m:null,b:'t',l:'r',c:null,r:'l'};var M=function(i){var e;e=[];t.each(i.split(/\W+/),function(t,i){var n;n=i.toLowerCase().charAt(0);if(o[n]){return e.push(n)}});return e},a={};var E={name:'core',html:'<div class="'+i+'-wrapper">\n	<div class="'+i+'-arrow"></div>\n	<div class="'+i+'-container"></div>\n</div>',css:'.'+i+'-corner {\n	position: fixed;\n	margin: 5px;\n	z-index: 1050;\n}\n\n.'+i+'-corner .'+i+'-wrapper,\n.'+i+'-corner .'+i+'-container {\n	position: relative;\n	display: block;\n	height: inherit;\n	width: inherit;\n	margin: 3px;\n}\n\n.'+i+'-wrapper {\n	z-index: 1;\n	position: absolute;\n	display: inline-block;\n	height: 0;\n	width: 0;\n}\n\n.'+i+'-container {\n	display: none;\n	z-index: 1;\n	position: absolute;\n}\n\n.'+i+'-hidable {\n	cursor: pointer;\n}\n\n[data-notify-text],[data-notify-html] {\n	position: relative;\n}\n\n.'+i+'-arrow {\n	position: absolute;\n	z-index: 2;\n	width: 0;\n	height: 0;\n}'};var C={'border-radius':['-webkit-','-moz-']};var D=function(t){return a[t]},y=function(e,n){if(!e){throw'Missing Style name'};if(!n){throw'Missing Style definition'};
103if(!n.html){throw'Missing Style HTML'};var h=a[e];if(h&&h.cssElem){if(window.console){console.warn(s+': overwriting style \''+e+'\'')};a[e].cssElem.remove()};n.name=e;a[e]=n;var o='';if(n.classes){t.each(n.classes,function(e,r){o+='.'+i+'-'+n.name+'-'+e+' {\n';t.each(r,function(i,e){if(C[i]){t.each(C[i],function(t,n){return o+='	'+n+i+': '+e+';\n'})};return o+='	'+i+': '+e+';\n'});return o+='}\n'})};if(n.css){o+='/* styles for '+n.name+' */\n'+n.css};if(o){n.cssElem=f(o);n.cssElem.attr('id','notify-'+n.name)};var r={};var l=t(n.html);b('html',l,r);b('text',l,r);n.fields=r},f=function(i){var n,e,o;e=d('style');e.attr('type','text/css');t('head').append(e);try{e.html(i)}catch(r){e[0].styleSheet.cssText=i};return e},b=function(i,e,n){var o;if(i!=='html'){i='text'};o='data-notify-'+i;return v(e,'['+o+']').each(function(){var e;e=t(this).attr(o);if(!e){e=g};n[e]=i})},v=function(t,i){if(t.is(i)){return t}
104else{return t.find(i)}},p={clickToHide:!0,autoHide:!0,autoHideDelay:5000,arrowShow:!0,arrowSize:5,breakNewLines:!0,elementPosition:'bottom',globalPosition:'top right',style:'bootstrap',className:'error',showAnimation:'slideDown',showDuration:400,hideAnimation:'slideUp',hideDuration:200,gap:5};var F=function(i,e){var n;n=function(){};n.prototype=i;return t.extend(!0,new n(),e)},S=function(i){return t.extend(p,i)},d=function(i){return t('<'+i+'></'+i+'>')},m={};var w=function(i){var e;if(i.is('[type=radio]')){e=i.parents('form:first').find('[type=radio]').filter(function(e,n){return t(n).attr('name')===i.attr('name')});i=e.first()};return i},n=function(t,i,e){var n,r;if(typeof e==='string'){e=parseInt(e,10)}
105else if(typeof e!=='number'){return};if(isNaN(e)){return};n=o[x[i.charAt(0)]];r=i;if(t[n]!==undefined){i=o[n.charAt(0)];e=-e};if(t[i]===undefined){t[i]=e}
106else{t[i]+=e};return null},h=function(t,i,e){if(t==='l'||t==='t'){return 0}
107else if(t==='c'||t==='m'){return e/2-i/2}
108else if(t==='r'||t==='b'){return e-i};throw'Invalid alignment'},A=function(t){A.e=A.e||d('div');return A.e.text(t).html()};function e(e,n,o){if(typeof o==='string'){o={className:o}};this.options=F(p,t.isPlainObject(o)?o:{});this.loadHTML();this.wrapper=t(E.html);if(this.options.clickToHide){this.wrapper.addClass(i+'-hidable')};this.wrapper.data(i,this);this.arrow=this.wrapper.find('.'+i+'-arrow');this.container=this.wrapper.find('.'+i+'-container');this.container.append(this.userContainer);if(e&&e.length){this.elementType=e.attr('type');this.originalElement=e;this.elem=w(e);this.elem.data(i,this);this.elem.before(this.wrapper)};this.container.hide();this.run(n)};e.prototype.loadHTML=function(){var i;i=this.getStyle();this.userContainer=t(i.html);this.userFields=i.fields};e.prototype.show=function(t,i){var e,r,s,n,o;r=(function(e){return function(){if(!t&&!e.elem){e.destroy()};if(i){return i()}}})(this);o=this.container.parent().parents(':hidden').length>0;s=this.container.add(this.arrow);e=[];if(o&&t){n='show'}
109else if(o&&!t){n='hide'}
110else if(!o&&t){n=this.options.showAnimation;e.push(this.options.showDuration)}
111else if(!o&&!t){n=this.options.hideAnimation;e.push(this.options.hideDuration)}
112else{return r()};e.push(r);return s[n].apply(s,e)};e.prototype.setGlobalPosition=function(){var s=this.getPosition(),a=s[0],l=s[1],A=o[a],r=o[l],h=a+'|'+l,n=m[h];if(!n){n=m[h]=d('div');var e={};e[A]=0;if(r==='middle'){e.top='45%'}
113else if(r==='center'){e.left='45%'}
114else{e[r]=0};n.css(e).addClass(i+'-corner');t('body').append(n)};return n.prepend(this.wrapper)};e.prototype.setElementPosition=function(){var D,e,s,M,B,H,i,m,Q,k,y,b,R,f,p,U,X,z,v,g,C,a,T,A,d,E,w,F,S;w=this.getPosition();A=w[0];a=w[1];T=w[2];y=this.elem.position();m=this.elem.outerHeight();b=this.elem.outerWidth();
114Q=this.elem.innerHeight();k=this.elem.innerWidth();S=this.wrapper.position();B=this.container.height();H=this.container.width();z=o[A];g=x[A];C=o[g];i={};i[C]=A==='b'?m:A==='r'?b:0;n(i,'top',y.top-S.top);n(i,'left',y.left-S.left);F=['top','left'];for(f=0,U=F.length;f<U;f++){d=F[f];v=parseInt(this.elem.css('margin-'+d),10);if(v){n(i,d,v)}};R=Math.max(0,this.options.gap-(this.options.arrowShow?s:0));n(i,C,R);if(!this.options.arrowShow){this.arrow.hide()}
115else{s=this.options.arrowSize;e=t.extend({},i);D=this.userContainer.css('border-color')||this.userContainer.css('border-top-color')||this.userContainer.css('background-color')||'white';for(p=0,X=l.length;p<X;p++){d=l[p];E=o[d];if(d===g){continue};M=E===z?D:'transparent';e['border-'+E]=s+'px solid '+M};n(i,o[g],s);if(r.call(l,a)>=0){n(e,o[a],s*2)}};if(r.call(u,A)>=0){n(i,'left',h(a,H,b));if(e){n(e,'left',h(a,s,k))}}
116else if(r.call(c,A)>=0){n(i,'top',h(a,B,m));if(e){n(e,'top',h(a,s,Q))}};if(this.container.is(':visible')){i.display='block'};this.container.removeAttr('style').css(i);if(e){return this.arrow.removeAttr('style').css(e)}};e.prototype.getPosition=function(){var t,i,e,n,o,s,a,h;h=this.options.position||(this.elem?this.options.elementPosition:this.options.globalPosition);t=M(h);if(t.length===0){t[0]='b'};if(i=t[0],r.call(l,i)<0){throw'Must be one of ['+l+']'};if(t.length===1||((e=t[0],r.call(u,e)>=0)&&(n=t[1],r.call(c,n)<0))||((o=t[0],r.call(c,o)>=0)&&(s=t[1],r.call(u,s)<0))){t[1]=(a=t[0],r.call(c,a)>=0)?'m':'l'};if(t.length===2){t[2]=t[1]};return t};e.prototype.getStyle=function(t){var i;if(!t){t=this.options.style};if(!t){t='default'};i=a[t];if(!i){throw'Missing style: '+t};return i};e.prototype.updateClasses=function(){var e,n;e=['base'];if(t.isArray(this.options.className)){e=e.concat(this.options.className)}
117else if(this.options.className){e.push(this.options.className)};n=this.getStyle();e=t.map(e,function(t){return i+'-'+n.name+'-'+t}).join(' ');return this.userContainer.attr('class',e)};e.prototype.run=function(i,e){var n,o,r,s,a;if(t.isPlainObject(e)){t.extend(this.options,e)}
118else if(t.type(e)==='string'){this.options.className=e};if(this.container&&!i){this.show(!1);return}
119else if(!this.container&&!i){return};o={};if(t.isPlainObject(i)){o=i}
120else{o[g]=i};for(r in o){n=o[r];s=this.userFields[r];if(!s){continue};if(s==='text'){n=A(n);if(this.options.breakNewLines){n=n.replace(/\n/g,'<br/>')}};a=r===g?'':'='+r;v(this.userContainer,'[data-notify-'+s+a+']').html(n)};this.updateClasses();if(this.elem){this.setElementPosition()}
121else{this.setGlobalPosition()};this.show(!0);if(this.options.autoHide){clearTimeout(this.autohideTimer);this.autohideTimer=setTimeout(this.show.bind(this,!1),this.options.autoHideDelay)}};e.prototype.destroy=function(){this.wrapper.data(i,null);this.wrapper.remove()};t[s]=function(i,n,o){if((i&&i.nodeName)||i.jquery){t(i)[s](n,o)}
122else{o=n;n=i;new e(null,n,o)};return i};t.fn[s]=function(n,o){t(this).each(function(){var r=w(t(this)).data(i);if(r){r.destroy()};var s=new e(t(this),n,o)});return this};t.extend(t[s],{defaults:S,addStyle:y,pluginOptions:p,getStyle:D,insertCSS:f});y('bootstrap',{html:'<div>\n<span data-notify-text></span>\n</div>',classes:{base:{'font-weight':'bold','padding':'8px 15px 8px 14px','text-shadow':'0 1px 0 rgba(255, 255, 255, 0.5)','background-color':'#fcf8e3','border':'1px solid #fbeed5','border-radius':'4px','white-space':'nowrap','padding-left':'25px','background-repeat':'no-repeat','background-position':'3px 7px'},error:{'color':'#B94A48','background-color':'#F2DEDE','border-color':'#EED3D7','background-image':'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAtRJREFUeNqkVc1u00AQHq+dOD+0poIQfkIjalW0SEGqRMuRnHos3DjwAH0ArlyQeANOOSMeAA5VjyBxKBQhgSpVUKKQNGloFdw4cWw2jtfMOna6JOUArDTazXi/b3dm55socPqQhFka++aHBsI8GsopRJERNFlY88FCEk9Yiwf8RhgRyaHFQpPHCDmZG5oX2ui2yilkcTT1AcDsbYC1NMAyOi7zTX2Agx7A9luAl88BauiiQ/cJaZQfIpAlngDcvZZMrl8vFPK5+XktrWlx3/ehZ5r9+t6e+WVnp1pxnNIjgBe4/6dAysQc8dsmHwPcW9C0h3fW1hans1ltwJhy0GxK7XZbUlMp5Ww2eyan6+ft/f2FAqXGK4CvQk5HueFz7D6GOZtIrK+srupdx1GRBBqNBtzc2AiMr7nPplRdKhb1q6q6zjFhrklEFOUutoQ50xcX86ZlqaZpQrfbBdu2R6/G19zX6XSgh6RX5ubyHCM8nqSID6ICrGiZjGYYxojEsiw4PDwMSL5VKsC8Yf4VRYFzMzMaxwjlJSlCyAQ9l0CW44PBADzXhe7xMdi9HtTrdYjFYkDQL0cn4Xdq2/EAE+InCnvADTf2eah4Sx9vExQjkqXT6aAERICMewd/UAp/IeYANM2joxt+q5VI+ieq2i0Wg3l6DNzHwTERPgo1ko7XBXj3vdlsT2F+UuhIhYkp7u7CarkcrFOCtR3H5JiwbAIeImjT/YQKKBtGjRFCU5IUgFRe7fF4cCNVIPMYo3VKqxwjyNAXNepuopyqnld602qVsfRpEkkz+GFL1wPj6ySXBpJtWVa5xlhpcyhBNwpZHmtX8AGgfIExo0ZpzkWVTBGiXCSEaHh62/PoR0p/vHaczxXGnj4bSo+G78lELU80h1uogBwWLf5YlsPmgDEd4M236xjm+8nm4IuE/9u+/PH2JXZfbwz4zw1WbO+SQPpXfwG/BBgAhCNZiSb/pOQAAAAASUVORK5CYII=)'},success:{'color':'#468847','background-color':'#DFF0D8','border-color':'#D6E9C6','background-image':'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAutJREFUeNq0lctPE0Ecx38zu/RFS1EryqtgJFA08YCiMZIAQQ4eRG8eDGdPJiYeTIwHTfwPiAcvXIwXLwoXPaDxkWgQ6islKlJLS
122QWLUraPLTv7Gme32zoF9KSTfLO7v53vZ3d/M7/fIth+IO6INt2jjoA7bjHCJoAlzCRw59YwHYjBnfMPqAKWQYKjGkfCJqAF0xwZjipQtA3MxeSG87VhOOYegVrUCy7UZM9S6TLIdAamySTclZdYhFhRHloGYg7mgZv1Zzztvgud7V1tbQ2twYA34LJmF4p5dXF1KTufnE+SxeJtuCZNsLDCQU0+RyKTF27Unw101l8e6hns3u0PBalORVVVkcaEKBJDgV3+cGM4tKKmI+ohlIGnygKX00rSBfszz/n2uXv81wd6+rt1orsZCHRdr1Imk2F2Kob3hutSxW8thsd8AXNaln9D7CTfA6O+0UgkMuwVvEFFUbbAcrkcTA8+AtOk8E6KiQiDmMFSDqZItAzEVQviRkdDdaFgPp8HSZKAEAL5Qh7Sq2lIJBJwv2scUqkUnKoZgNhcDKhKg5aH+1IkcouCAdFGAQsuWZYhOjwFHQ96oagWgRoUov1T9kRBEODAwxM2QtEUl+Wp+Ln9VRo6BcMw4ErHRYjH4/B26AlQoQQTRdHWwcd9AH57+UAXddvDD37DmrBBV34WfqiXPl61g+vr6xA9zsGeM9gOdsNXkgpEtTwVvwOklXLKm6+/p5ezwk4B+j6droBs2CsGa/gNs6RIxazl4Tc25mpTgw/apPR1LYlNRFAzgsOxkyXYLIM1V8NMwyAkJSctD1eGVKiq5wWjSPdjmeTkiKvVW4f2YPHWl3GAVq6ymcyCTgovM3FzyRiDe2TaKcEKsLpJvNHjZgPNqEtyi6mZIm4SRFyLMUsONSSdkPeFtY1n0mczoY3BHTLhwPRy9/lzcziCw9ACI+yql0VLzcGAZbYSM5CCSZg1/9oc/nn7+i8N9p/8An4JMADxhH+xHfuiKwAAAABJRU5ErkJggg==)'},info:{'color':'#3A87AD','background-color':'#D9EDF7','border-color':'#BCE8F1','background-image':'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QYFAhkSsdes/QAAA8dJREFUOMvVlGtMW2UYx//POaWHXg6lLaW0ypAtw1UCgbniNOLcVOLmAjHZolOYlxmTGXVZdAnRfXQm+7SoU4mXaOaiZsEpC9FkiQs6Z6bdCnNYruM6KNBw6YWewzl9z+sHImEWv+vz7XmT95f/+3/+7wP814v+efDOV3/SoX3lHAA+6ODeUFfMfjOWMADgdk+eEKz0pF7aQdMAcOKLLjrcVMVX3xdWN29/GhYP7SvnP0cWfS8caSkfHZsPE9Fgnt02JNutQ0QYHB2dDz9/pKX8QjjuO9xUxd/66HdxTeCHZ3rojQObGQBcuNjfplkD3b19Y/6MrimSaKgSMmpGU5WevmE/swa6Oy73tQHA0Rdr2Mmv/6A1n9w9suQ7097Z9lM4FlTgTDrzZTu4StXVfpiI48rVcUDM5cmEksrFnHxfpTtU/3BFQzCQF/2bYVoNbH7zmItbSoMj40JSzmMyX5qDvriA7QdrIIpA+3cdsMpu0nXI8cV0MtKXCPZev+gCEM1S2NHPvWfP/hL+7FSr3+0p5RBEyhEN5JCKYr8XnASMT0xBNyzQGQeI8fjsGD39RMPk7se2bd5ZtTyoFYXftF6y37gx7NeUtJJOTFlAHDZLDuILU3j3+H5oOrD3yWbIztugaAzg
122nBKJuBLpGfQrS8wO4FZgV+c1IxaLgWVU0tMLEETCos4xMzEIv9cJXQcyagIwigDGwJgOAtHAwAhisQUjy0ORGERiELgG4iakkzo4MYAxcM5hAMi1WWG1yYCJIcMUaBkVRLdGeSU2995TLWzcUAzONJ7J6FBVBYIggMzmFbvdBV44Corg8vjhzC+EJEl8U1kJtgYrhCzgc/vvTwXKSib1paRFVRVORDAJAsw5FuTaJEhWM2SHB3mOAlhkNxwuLzeJsGwqWzf5TFNdKgtY5qHp6ZFf67Y/sAVadCaVY5YACDDb3Oi4NIjLnWMw2QthCBIsVhsUTU9tvXsjeq9+X1d75/KEs4LNOfcdf/+HthMnvwxOD0wmHaXr7ZItn2wuH2SnBzbZAbPJwpPx+VQuzcm7dgRCB57a1uBzUDRL4bfnI0RE0eaXd9W89mpjqHZnUI5Hh2l2dkZZUhOqpi2qSmpOmZ64Tuu9qlz/SEXo6MEHa3wOip46F1n7633eekV8ds8Wxjn37Wl63VVa+ej5oeEZ/82ZBETJjpJ1Rbij2D3Z/1trXUvLsblCK0XfOx0SX2kMsn9dX+d+7Kf6h8o4AIykuffjT8L20LU+w4AZd5VvEPY+XpWqLV327HR7DzXuDnD8r+ovkBehJ8i+y8YAAAAASUVORK5CYII=)'},warn:{'color':'#C09853','background-color':'#FCF8E3','border-color':'#FBEED5','background-image':'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABJlBMVEXr6eb/2oD/wi7/xjr/0mP/ykf/tQD/vBj/3o7/uQ//vyL/twebhgD/4pzX1K3z8e349vK6tHCilCWbiQymn0jGworr6dXQza3HxcKkn1vWvV/5uRfk4dXZ1bD18+/52YebiAmyr5S9mhCzrWq5t6ufjRH54aLs0oS+qD751XqPhAybhwXsujG3sm+Zk0PTwG6Shg+PhhObhwOPgQL4zV2nlyrf27uLfgCPhRHu7OmLgAafkyiWkD3l49ibiAfTs0C+lgCniwD4sgDJxqOilzDWowWFfAH08uebig6qpFHBvH/aw26FfQTQzsvy8OyEfz20r3jAvaKbhgG9q0nc2LbZxXanoUu/u5WSggCtp1anpJKdmFz/zlX/1nGJiYmuq5Dx7+sAAADoPUZSAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfdBgUBGhh4aah5AAAAlklEQVQY02NgoBIIE8EUcwn1FkIXM1Tj5dDUQhPU502Mi7XXQxGz5uVIjGOJUUUW81HnYEyMi2HVcUOICQZzMMYmxrEyMylJwgUt5BljWRLjmJm4pI1hYp5SQLGYxDgmLnZOVxuooClIDKgXKMbN5ggV1ACLJcaBxNgcoiGCBiZwdWxOETBDrTyEFey0jYJ4eHjMGWgEAIpRFRCUt08qAAAAAElFTkSuQmCC)'}}});t(function(){f(E.css).attr('id','core-notify');t(document).on('click','.'+i+'-hidable',function(i){t(this).trigger('notify-hide')});t(document).on('notify-hide','.'+i+'-wrapper',function(e){var n=t(this).data(i);if(n){n.show(!1)}})})}));;/*})'"*/
123(function(i){var o={RiotNotifyOptions:{clickToHide:!0,autoHide:!0,autoHideDelay:5000,arrowShow:!0,arrowSize:15,style:'bootstrap',className:'success',showAnimation:'slideDown',showDuration:400,hideAnimation:'slideUp',hideDuration:200,gap:2},RiotNotifySend:function(o,t,e){if(!o){return};t=Object.assign({},this.RiotNotifyOptions,t);if(typeof e!='undefined'){i(e).notify(o,t)}
124else{i.notify(o,t)}}};riot.mixin('RiotNotify',o)})(jQuery);;/*})'"*/
125;AjaxSolr=function(){};AjaxSolr.Class=function(e){AjaxSolr.extend(this,e)};AjaxSolr.Class.extend=function(e,t){var r=this,n;if(e&&Object.prototype.hasOwnProperty.call(e,'constructor')){n=e.constructor}
126else{n=function(){return r.apply(this,arguments)}};AjaxSolr.extend(n,r,t);var i=function(){this.constructor=n};i.prototype=r.prototype;n.prototype=new i;if(e)AjaxSolr.extend(n.prototype,e);n.__super__=r.prototype;return n};AjaxSolr.extend=function(e){var t=Array.prototype.slice.call(arguments,1),i=function(t){if(t){for(var n in t){e[n]=t[n]}}};if(t==null)return;if(Array.prototype.forEach&&t.forEach===Array.prototype.forEach){t.forEach(i)}
127else if(t.length===+t.length){for(var n=0,a=t.length;n<a;n++){i.call(undefined,t[n],n,t)}}
128else{for(var r in t){if(Object.prototype.hasOwnProperty.call(t,r)){i.call(undefined,t[r],r,t)}}};return e};AjaxSolr.inArray=function(e,t){if(t){for(var n=0,r=t.length;n<r;n++){if(AjaxSolr.equals(t[n],e)){return n}}};return-1};AjaxSolr.equals=function(e,t){if(AjaxSolr.isArray(e)&&AjaxSolr.isArray(t)){if(e.length!==t.length){return!1};for(var n=0,r=e.length;n<r;n++){if(e[n]!==t[n]){return!1}};return!0}
129else if(AjaxSolr.isRegExp(e)&&AjaxSolr.isString(t)){return t.match(e)}
130else if(AjaxSolr.isRegExp(t)&&AjaxSolr.isString(e)){return e.match(t)}
131else{return e===t}};AjaxSolr.isArray=function(e){return e!=null&&typeof e=='object'&&'splice' in e&&'join' in e};AjaxSolr.isRegExp=function(e){return e!=null&&(typeof e=='object'||typeof e=='function')&&'ignoreCase' in e};AjaxSolr.isString=function(e){return e!=null&&typeof e=='string'};(function(e){if(typeof define==='function'&&define.amd){define(['core/Core'],e)}
132else{e()}}(function(){AjaxSolr.AbstractManager=AjaxSolr.Class.extend({constructor:function(e){AjaxSolr.extend(this,{solrUrl:'http://localhost:8983/solr/',proxyUrl:null,servlet:'select',response:{},widgets:{},store:null,initialized:!1},e)},init:function(){this.initialized=!0;if(this.store===null){this.setStore(new AjaxSolr.ParameterStore())};this.store.load(!1);for(var e in this.widgets){this.widgets[e].init()};
132this.store.init()},setStore:function(e){e.manager=this;this.store=e},addWidget:function(e){e.manager=this;this.widgets[e.id]=e},doRequest:function(e,t){if(this.initialized===!1){this.init()};if(e!==undefined){this.store.get('start').val(e)};if(t===undefined){t=this.servlet};this.store.save();for(var n in this.widgets){this.widgets[n].beforeRequest()};this.executeRequest(t)},executeRequest:function(e,t){throw'Abstract method executeRequest must be overridden in a subclass.'},handleResponse:function(e){this.response=e;for(var t in this.widgets){this.widgets[t].afterRequest()}},handleError:function(e){window.console&&console.log&&console.log(e)}})}));(function(e){if(typeof define==='function'&&define.amd){define(['core/Core','core/Parameter'],e)}
133else{e()}}(function(){AjaxSolr.ParameterStore=AjaxSolr.Class.extend({constructor:function(e){AjaxSolr.extend(this,{exposed:[],params:{},manager:null},e)},init:function(){},isMultiple:function(e){return e.match(/^(?:bf|bq|facet\.date|facet\.date\.other|facet\.date\.include|facet\.field|facet\.pivot|facet\.range|facet\.range\.other|facet\.range\.include|facet\.query|fq|group\.field|group\.func|group\.query|pf|qf)$/)},get:function(e){if(this.params[e]===undefined){var t=new AjaxSolr.Parameter({name:e});if(this.isMultiple(e)){this.params[e]=[t]}
134else{this.params[e]=t}};return this.params[e]},values:function(e){if(this.params[e]!==undefined){if(this.isMultiple(e)){var n=[];for(var t=0,r=this.params[e].length;t<r;t++){n.push(this.params[e][t].val())};return n}
135else{return[this.params[e].val()]}};return[]},add:function(e,t){if(t===undefined){t=new AjaxSolr.Parameter({name:e})};if(this.isMultiple(e)){if(this.params[e]===undefined){this.params[e]=[t]}
136else{if(AjaxSolr.inArray(t.val(),this.values(e))==-1){this.params[e].push(t)}
137else{return!1}}}
138else{this.params[e]=t};return t},remove:function(e,t){if(t===undefined){delete this.params[e]}
139else{this.params[e].splice(t,1);if(this.params[e].length==0){delete this.params[e]}}},find:function(e,t){if(this.params[e]!==undefined){if(this.isMultiple(e)){var r=[];for(var n=0,i=this.params[e].length;n<i;n++){if(AjaxSolr.equals(this.params[e][n].val(),t)){r.push(n)}};return r.length?r:!1}
140else{if(AjaxSolr.equals(this.params[e].val(),t)){return e}}};return!1},addByValue:function(e,t,n){if(n===undefined){n={}};if(this.isMultiple(e)&&AjaxSolr.isArray(t)){var i=[];for(var r=0,a=t.length;r<a;r++){i.push(this.add(e,new AjaxSolr.Parameter({name:e,value:t[r],locals:n})))};return i}
141else{return this.add(e,new AjaxSolr.Parameter({name:e,value:t,locals:n}))}},removeByValue:function(e,t){var n=this.find(e,t);if(n){if(AjaxSolr.isArray(n)){for(var r=n.length-1;r>=0;r--){this.remove(e,n[r])}}
142else{this.remove(n)}};return n},string:function(){var r=[],e;for(var t in this.params){if(this.isMultiple(t)){for(var n=0,i=this.params[t].length;n<i;n++){e=this.params[t][n].string();if(e){r.push(e)}}}
143else{e=this.params[t].string();if(e){r.push(e)}}};return r.join('&')},parseString:function(e){var r=e.split('&');for(var t=0,i=r.length;t<i;t++){if(r[t]){var n=new AjaxSolr.Parameter();n.parseString(r[t]);this.add(n.name,n)}}},exposedString:function(){var r=[],t;for(var e=0,a=this.exposed.length;e<a;e++){if(this.params[this.exposed[e]]!==undefined){if(this.isMultiple(this.exposed[e])){for(var n=0,i=this.params[this.exposed[e]].length;n<i;n++){t=this.params[this.exposed[e]][n].string();if(t){r.push(t)}}}
144else{t=this.params[this.exposed[e]].string();if(t){r.push(t)}}}};return r.join('&')},exposedReset:function(){for(var e=0,t=this.exposed.length;e<t;e++){this.remove(this.exposed[e])}},load:function(e){if(e===undefined){e=!0};if(e){this.exposedReset()};this.parseString(this.storedString())},save:function(){},storedString:function(){return''}})}));(function(e){if(typeof define==='function'&&define.amd){define(['core/Core'],e)}
145else{e()}}(function(){AjaxSolr.Parameter=AjaxSolr.Class.extend({constructor:function(e){AjaxSolr.extend(this,{name:null,value:null,locals:{}},e)},val:function(e){if(e===undefined){return this.value}
146else{this.value=e}},local:function(e,t){if(t===undefined){return this.locals[e]}
147else{this.locals[e]=t}},remove:function(e){delete this.locals[e]},string:function(){var n=[];for(var t in this.locals){if(this.locals[t]){n.push(t+'='+encodeURIComponent(this.locals[t]))}};var e=n.length?'{!'+n.join('%20')+'}':'';if(this.value){return this.name+'='+e+this.valueString(this.value)}
148else if(this.name=='q'&&e){return'q.alt='+e+encodeURIComponent('*:*')}
149else{return''}},parseString:function(e){var t=e.match(/^([^=]+)=(?:\{!([^\}]*)\})?(.*)$/);if(t){var n;while(n=/([^\s=]+)=(\S*)/g.exec(decodeURIComponent(t[2]))){this.locals[n[1]]=decodeURIComponent(n[2]);t[2]=t[2].replace(n[0],'')};if(t[1]=='q.alt'){this.name='q'}
150else{this.name=t[1];this.value=this.parseValueString(t[3])}}},valueString:function(e){e=AjaxSolr.isArray(e)?e.join(','):e;return encodeURIComponent(e)},parseValueString:function(e){e=decodeURIComponent(e);return e.indexOf(',')==-1?e:e.split(',')}});AjaxSolr.Parameter.escapeValue=function(e){if(e.match(/[ :\/"]/)&&!e.match(/[\[\{]\S+ TO \S+[\]\}]/)&&!e.match(/^["\(].*["\)]$/)){return'"'+e.replace(/\\/g,'\\\\').replace(/"/g,'\\"')+'"'};return e}}));(function(e){if(typeof define==='function'&&define.amd){define(['core/Core'],e)}
151else{e()}}(function(){AjaxSolr.AbstractWidget=AjaxSolr.Class.extend({constructor:function(e){AjaxSolr.extend(this,{id:null,target:null,start:undefined,servlet:undefined,manager:null},e)},init:function(){},beforeRequest:function(){},afterRequest:function(){},doRequest:function(e,t){this.manager.doRequest(e||this.start,t||this.servlet)}})}));(function(e){if(typeof define==='function'&&define.amd){define(['core/AbstractWidget','core/Parameter'],e)}
152else{e()}}(function(){AjaxSolr.AbstractFacetWidget=AjaxSolr.AbstractWidget.extend({constructor:function(e){AjaxSolr.AbstractFacetWidget.__super__.constructor.apply(this,arguments);AjaxSolr.extend(this,{start:0,field:null,multivalue:!0},e)}
152,init:function(){this.initStore()},initStore:function(){var e=['facet.prefix','facet.sort','facet.limit','facet.offset','facet.mincount','facet.missing','facet.method','facet.enum.cache.minDf'];this.manager.store.addByValue('facet',!0);if(this['facet.field']!==undefined){this.manager.store.addByValue('facet.field',this.field)}
153else if(this['facet.date']!==undefined){this.manager.store.addByValue('facet.date',this.field);e=e.concat(['facet.date.start','facet.date.end','facet.date.gap','facet.date.hardend','facet.date.other','facet.date.include'])}
154else if(this['facet.range']!==undefined){this.manager.store.addByValue('facet.range',this.field);e=e.concat(['facet.range.start','facet.range.end','facet.range.gap','facet.range.hardend','facet.range.other','facet.range.include'])};for(var t=0,n=e.length;t<n;t++){if(this[e[t]]!==undefined){this.manager.store.addByValue('f.'+this.field+'.'+e[t],this[e[t]])}}},isEmpty:function(){return!this.manager.store.find('fq',new RegExp('^-?'+this.field+':'))},set:function(e){return this.changeSelection(function(){var t=this.manager.store.removeByValue('fq',new RegExp('^-?'+this.field+':')),n=this.manager.store.addByValue('fq',this.fq(e));return t||n})},add:function(e){return this.changeSelection(function(){return this.manager.store.addByValue('fq',this.fq(e))})},remove:function(e){return this.changeSelection(function(){return this.manager.store.removeByValue('fq',this.fq(e))})},clear:function(){return this.changeSelection(function(){return this.manager.store.removeByValue('fq',new RegExp('^-?'+this.field+':'))})},changeSelection:function(e){changed=e.apply(this);if(changed){this.afterChangeSelection()};return changed},afterChangeSelection:function(){},getFacetCounts:function(){var e;if(this['facet.field']!==undefined){e='facet_fields'}
155else if(this['facet.date']!==undefined){e='facet_dates'}
156else if(this['facet.range']!==undefined){e='facet_ranges'};if(e!==undefined){switch(this.manager.store.get('json.nl').val()){case'map':return this.getFacetCountsMap(e);case'arrarr':return this.getFacetCountsArrarr(e);default:return this.getFacetCountsFlat(e)}};throw'Cannot get facet counts unless one of the following properties is set to "true" on widget "'+this.id+'": "facet.field", "facet.date", or "facet.range".'},getFacetCountsMap:function(e){var n=[];for(var t in this.manager.response.facet_counts[e][this.field]){n.push({facet:t,count:parseInt(this.manager.response.facet_counts[e][this.field][t])})};return n},getFacetCountsArrarr:function(e){var n=[];for(var t=0,r=this.manager.response.facet_counts[e][this.field].length;t<r;t++){n.push({facet:this.manager.response.facet_counts[e][this.field][t][0],count:parseInt(this.manager.response.facet_counts[e][this.field][t][1])})};return n},getFacetCountsFlat:function(e){var n=[];for(var t=0,r=this.manager.response.facet_counts[e][this.field].length;t<r;t+=2){n.push({facet:this.manager.response.facet_counts[e][this.field][t],count:parseInt(this.manager.response.facet_counts[e][this.field][t+1])})};return n},clickHandler:function(e){var t=this,n=this.multivalue?'add':'set';return function(){if(t[n].call(t,e)){t.doRequest()};return!1}},unclickHandler:function(e){var t=this;return function(){if(t.remove(e)){t.doRequest()};return!1}},fq:function(e,t){return(t?'-':'')+this.field+':'+AjaxSolr.Parameter.escapeValue(e)}})}));(function(e){if(typeof define==='function'&&define.amd){define(['core/AbstractWidget'],e)}
157else{e()}}(function(){AjaxSolr.AbstractSpatialWidget=AjaxSolr.AbstractWidget.extend({set:function(e){this.manager.store.get('q').local('type','spatial');this.manager.store.get('q').local('lat',e.lat);this.manager.store.get('q').local('long',e.lng);this.manager.store.get('q').local('radius',e.radius);if(e.unit!==undefined){this.manager.store.get('q').local('unit',e.unit)};if(e.calc!==undefined){this.manager.store.get('q').local('calc',e.calc)};if(e.threadCount!==undefined){this.manager.store.get('q').local('threadCount',e.threadCount)}},clear:function(){this.manager.store.get('q').remove('type');this.manager.store.get('q').remove('lat');this.manager.store.get('q').remove('long');this.manager.store.get('q').remove('radius');this.manager.store.get('q').remove('unit');this.manager.store.get('q').remove('calc');this.manager.store.get('q').remove('threadCount')}})}));(function(e){if(typeof define==='function'&&define.amd){define(['core/AbstractWidget'],e)}
158else{e()}}(function(){AjaxSolr.AbstractSpellcheckWidget=AjaxSolr.AbstractWidget.extend({constructor:function(e){AjaxSolr.AbstractSpellcheckWidget.__super__.constructor.apply(this,arguments);AjaxSolr.extend(this,{suggestions:{}},e)},suggestion:function(){var e=this.manager.response.responseHeader.params['spellcheck.q'];for(var t in this.suggestions){e=e.replace(new RegExp(t,'g'),this.suggestions[t][0])};return e},beforeRequest:function(){if(this.manager.store.get('spellcheck').val()&&this.manager.store.get('q').val()){this.manager.store.get('spellcheck.q').val(this.manager.store.get('q').val())}
159else{this.manager.store.remove('spellcheck.q')}},afterRequest:function(){this.suggestions={};if(this.manager.response.spellcheck&&this.manager.response.spellcheck.suggestions){var n=this.manager.response.spellcheck.suggestions,r=!0;for(var e in n){if(e=='collation'||e=='correctlySpelled')continue;this.suggestions[e]=[];for(var t=0,i=n[e].suggestion.length;t<i;t++){if(this.manager.response.responseHeader.params['spellcheck.extendedResults']){this.suggestions[e].push(n[e].suggestion[t].word)}
160else{this.suggestions[e].push(n[e].suggestion[t])}};r=!1};if(!r){this.handleSuggestions(this.manager.response)}}},handleSuggestions:function(){}})}));(function(e){if(typeof define==='function'&&define.amd){define(['core/AbstractWidget'],e)}
161else{e()}}(function(){AjaxSolr.AbstractTextWidget=AjaxSolr.AbstractWidget.extend({constructor:function(e){AjaxSolr.AbstractTextWidget.__super__.constructor.apply(this,arguments);AjaxSolr.extend(this,{start:0},e)},set:function(e){return this.changeSelection(function(){this.manager.store.get('q').val(e)})},clear:function(){return this.changeSelection(function(){this.manager.store.remove('q')})},changeSelection:function(e){var n=this.manager.store.get('q').val();e.apply(this);var t=this.manager.store.get('q').val();if(t!==n){this.afterChangeSelection(t)};return t!==n},afterChangeSelection:function(e){},unclickHandler:function(){var e=this;return function(){if(e.clear()){e.doRequest()};return!1}},clickHandler:function(e){var t=this;return function(){if(t.set(e)){t.doRequest()};return!1}}})}));(function(e){if(typeof define==='function'&&define.amd){define(['core/ParameterStore'],e)}
162else{e()}}(function(){AjaxSolr.ParameterHashStore=AjaxSolr.ParameterStore.extend({constructor:function(e){AjaxSolr.ParameterHashStore.__super__.constructor.apply(this,arguments);AjaxSolr.extend(this,{interval:250,intervalId:null,hash:''},e)},init:function(){if(this.exposed.length){if('onhashchange' in window&&(!document.documentMode||document.documentMode>7)){if(window.addEventListener){window.addEventListener('hashchange',this.intervalFunction(this),!1)}
163else if(window.attachEvent){window.attachEvent('onhashchange',this.intervalFunction(this))}
164else{window.onhashchange=this.intervalFunction(this)}}
165else{this.intervalId=window.setInterval(this.intervalFunction(this),this.interval)}}},save:function(){this.hash=this.exposedString();if(this.storedString()){window.location.hash=this.hash}
166else{window.location.replace(window.location.href.replace('#','')+'#'+this.hash)}},storedString:function(){var e=window.location.href.indexOf('#');if(e==-1){return''}
167else{return window.location.href.substr(e+1)}},intervalFunction:function(e){return function(){var t=e.storedString();if(e.hash!=t&&decodeURIComponent(e.hash)!=decodeURIComponent(t)){e.load();e.manager.doRequest()}}}})}));(function(e){if(typeof define==='function'&&define.amd){define(['core/AbstractManager'],e)}
168else{e()}}(function(){AjaxSolr.Manager=AjaxSolr.AbstractManager.extend({executeRequest:function(e,t,n,i){var a=this,r={dataType:'json'};t=t||this.store.string();n=n||function(e){a.handleResponse(e)};i=i||function(e,t,n){a.handleError(t+', '+n)};if(this.proxyUrl){r.url=this.proxyUrl;r.data={query:t};r.type='POST'}
169else{r.url=this.solrUrl+e+'?'+t+'&wt=json&json.wrf=?'};jQuery.ajax(r).done(n).fail(i)}})}));(function(e){AjaxSolr.AutocompleteTermWidget=AjaxSolr.AbstractTextWidget.extend({constructor:function(e){AjaxSolr.AutocompleteTermWidget.__super__.constructor.apply(this,arguments);AjaxSolr.extend(this,{field:null,tokenized:!0,lowercase:!0,limit:10,minLength:2,
169servlet:null},e)},init:function(){var t=this;if(!this.field){throw'"field" must be set on AutocompleteTermWidget.'};this.servlet=this.servlet||this.manager.servlet;e(this.target).find('input').bind('keydown',function(n){if(n.which==13){var r=e(this).val();if(t.set(r)){t.doRequest()}}});e(this.target).find('input').autocomplete({source:function(n,r){if(n.term.charAt(n.term.length-1).replace(/^ +/,'').replace(/ +$/,'')==''){r();return};var a=n.term,s=a,l='',i=new AjaxSolr.ParameterStore();i.addByValue('fq',t.manager.store.values('fq'));if(t.tokenized){var o=a.lastIndexOf(' ');if(o>-1){l=a.substring(0,o);s=a.substring(o+1);i.addByValue('fq','{!dismax qf='+t.field+'}'+l)}};if(t.lowercase){s=s.toLowerCase()};i.addByValue('facet.field',t.field);i.addByValue('facet.limit',t.limit);i.addByValue('facet.prefix',s);t.manager.executeRequest(t.servlet,'json.nl=arrarr&q=*:*&rows=0&facet=true&facet.mincount=1&'+i.string(),function(n){r(e.map(n.facet_counts.facet_fields[t.field],function(e){var t=(l+' '+e[0]).replace(/^ +/,'').replace(/ +$/,'');return{label:t+' ('+e[1]+')',value:t}}))})},minLength:this.minLength,select:function(e,n){if(t.set(n.item.value)){t.doRequest()}}})}})})(jQuery);(function(e){if(typeof define==='function'&&define.amd){define(['core/AbstractWidget'],e)}
170else{e()}}(function(){(function(e){AjaxSolr.PagerWidget=AjaxSolr.AbstractWidget.extend({constructor:function(e){AjaxSolr.PagerWidget.__super__.constructor.apply(this,arguments);AjaxSolr.extend(this,{innerWindow:4,outerWindow:1,prevLabel:'&laquo; Previous',nextLabel:'Next &raquo;',separator:' ',currentPage:null,totalPages:null},e)},gapMarker:function(){return'<span class="pager-gap">&hellip;</span>'},windowedLinks:function(){var t=[],n=null;visible=this.visiblePageNumbers();for(var e=0,r=visible.length;e<r;e++){if(n&&visible[e]>n+1)t.push(this.gapMarker());t.push(this.pageLinkOrSpan(visible[e],['pager-current']));n=visible[e]};return t},visiblePageNumbers:function(){var t=this.currentPage-this.innerWindow,n=this.currentPage+this.innerWindow;if(n>this.totalPages){t=Math.max(0,t-(n-this.totalPages));n=this.totalPages};if(t<1){n=Math.min(this.totalPages,n+(1-t));t=1};var r=[];r.push(1);for(var e=2;e<=Math.min(1+this.outerWindow,t-1);e++){r.push(e)};if(1+this.outerWindow==t-2){r.push(t-1)};for(var e=Math.max(2,t);e<=Math.min(n,this.totalPages-1);e++){r.push(e)};if(this.totalPages-this.outerWindow==n+2){r.push(n+1)};for(var e=Math.max(this.totalPages-this.outerWindow,n+1);e<this.totalPages;e++){r.push(e)};if(this.totalPages>1){r.push(this.totalPages)};return r},pageLinkOrSpan:function(t,n,r){r=r||t;if(t&&t!=this.currentPage){return e('<a href="#"></a>').html(r).attr('rel',this.relValue(t)).addClass(n[1]).click(this.clickHandler(t))}
171else{return e('<span></span>').html(r).addClass(n.join(' '))}},clickHandler:function(e){var t=this;return function(){t.manager.store.get('start').val((e-1)*t.perPage());t.doRequest();return!1}},relValue:function(e){switch(e){case this.previousPage():return'prev'+(e==1?'start':'');case this.nextPage():return'next';case 1:return'start';default:return''}},previousPage:function(){return this.currentPage>1?(this.currentPage-1):null},nextPage:function(){return this.currentPage<this.totalPages?(this.currentPage+1):null},renderHeader:function(e,t,n){},renderLinks:function(t){if(this.totalPages){t.unshift(this.pageLinkOrSpan(this.previousPage(),['pager-disabled','pager-prev'],this.prevLabel));t.push(this.pageLinkOrSpan(this.nextPage(),['pager-disabled','pager-next'],this.nextLabel));var i=e(this.target);i.empty();for(var n=0,a=t.length;n<a;n++){var r=e('<li></li>');if(this.separator&&n>0){r.append(this.separator)};i.append(r.append(t[n]))}}},perPage:function(){return parseInt(this.manager.response.responseHeader&&this.manager.response.responseHeader.params&&this.manager.response.responseHeader.params.rows||this.manager.store.get('rows').val()||10)},getOffset:function(){return parseInt(this.manager.response.responseHeader&&this.manager.response.responseHeader.params&&this.manager.response.responseHeader.params.start||this.manager.store.get('start').val()||0)},afterRequest:function(){var n=this.perPage(),t=this.getOffset(),r=parseInt(this.manager.response.response.numFound);t=t-t%n;this.currentPage=Math.ceil((t+1)/n);this.totalPages=Math.ceil(r/n);e(this.target).empty();this.renderLinks(this.windowedLinks());this.renderHeader(n,t,r)}})})(jQuery)}));(function(e){AjaxSolr.ParameterHistoryStore=AjaxSolr.ParameterStore.extend({init:function(){if(this.exposed.length){if(!e){throw'ParameterHistoryStore requires History.js'};e.Adapter.bind(window,'statechange',this.stateChangeFunction(this))}},save:function(){this.hash=this.exposedString();e.pushState({params:this.hash},null,'?'+this.hash)},storedString:function(){var t=e.getState();if(t.data&&t.data.params){return t.data.params};var n=t.cleanUrl,r=n.indexOf('?');
171if(r==-1){return''}
172else{return n.substr(r+1)}},stateChangeFunction:function(e){return function(){var t=e.storedString();if(e.hash!=t){e.load();e.manager.doRequest()}}}})})(window.History);AjaxSolr.ParameterYUIStore=AjaxSolr.ParameterStore.extend({constructor:function(e){AjaxSolr.ParameterYUIStore.__super__.constructor.apply(this,arguments);AjaxSolr.extend(this,{module:'q',initialized:!1,loading:!1,saving:!1},e)},init:function(){if(this.exposed.length){var e=this;YAHOO.util.History.register(this.module,YAHOO.util.History.getBookmarkedState(this.module)||this.exposedString(),function(){if(!e.saving){e.loading=!0;e.load();e.manager.doRequest();e.loading=!1}});YAHOO.util.History.onReady(function(){e.initialized=!0;e.load();e.manager.doRequest()});YAHOO.util.History.initialize('yui-history-field','yui-history-iframe')}},save:function(){if(!self.loading){this.saving=!0;YAHOO.util.History.navigate(this.module,this.exposedString());this.saving=!1}},storedString:function(){return this.initialized?YAHOO.util.History.getCurrentState(this.module):this.exposedString()}});;/*})'"*/
173(function(e){var n={};var r={};e.ajaxq=function(t,i){if(typeof i==='undefined'){throw('AjaxQ: queue name is not provided')};var u=e.Deferred(),a=u.promise();a.success=a.done;a.error=a.fail;a.complete=a.always;var o=e.extend(!0,{},i);f(function(){var n=e.ajax.apply(window,[o]);n.done(function(){u.resolve.apply(this,arguments)});n.fail(function(){u.reject.apply(this,arguments)});n.always(s);return n});return a;function f(e){if(!n[t]){n[t]=[];var a=e();r[t]=a}
174else{n[t].push(e)}};function s(){if(!n[t]){return};var e=n[t].shift();if(e){var a=e();r[t]=a}
175else{delete n[t];delete r[t]}}};e.each(['getq','postq'],function(n,r){e[r]=function(n,a,t,i,u){if(e.isFunction(t)){u=u||i;i=t;t=undefined};return e.ajaxq(n,{type:r==='postq'?'post':'get',url:a,data:t,success:i,dataType:u})}});var t=function(e){return n.hasOwnProperty(e)},a=function(){for(var e in n){if(t(e))return!0};return!1};e.ajaxq.isRunning=function(e){if(e)return t(e);else return a()};e.ajaxq.getActiveRequest=function(e){if(!e)throw('AjaxQ: queue name is required');return r[e]};e.ajaxq.abort=function(t){if(!t)throw('AjaxQ: queue name is required');var a=e.ajaxq.getActiveRequest(t);delete n[t];delete r[t];if(a)a.abort()};e.ajaxq.clear=function(e){if(!e){for(var r in n){if(n.hasOwnProperty(r)){n[r]=[]}}}
176else{if(n[e]){n[e]=[]}}}})(jQuery);;/*})'"*/
177;var RiotSolrAppTracker;(function(e){RiotSolrAppTracker={trackEvent:function(t){if(!e.ga){return};e.ga('send','event',this.mapHit(t,'client'));if(e.ga.getByName&&e.ga.getByName('bluetent')){e.ga('bluetent.send','event',this.mapHit(t,'bluetent'))};if(typeof ga4!=='undefined'){ga4.eventName('event',t)}},trackPageView:function(t){if(!e.ga){return};e.ga('send','pageview',this.mapHit(t,'client'));if(typeof ga4!=='undefined'){ga4.eventName('page_view',this.mapHit(t,'client'))};if(e.ga.getByName&&e.ga.getByName('bluetent')){e.ga('bluetent.send','pageview',this.mapHit(t,'bluetent'));if(typeof ga4!=='undefined'){ga4.eventName('page_view',this.mapHit(t,'bluetent'))}}},trackException:function(t,n){if(!e.ga){return};var a={exDescription:t||'unknown error',exFatal:typeof n==='undefined'?!0:n,};e.ga('send','exception',a);if(e.ga.getByName&&e.ga.getByName('bluetent')){e.ga('bluetent.send','exception',a)};if(typeof ga4!=='undefined'){ga4.eventName('exception',a)}},mapHit:function(e,a){var i={};var t=Drupal.settings.riot_solr.gaMappings[a];t.category='eventCategory';t.label='eventLabel';t.action='eventAction';t.value='eventValue';t.title='title';t.location='location';t.page='page';for(var n in e){if(e.hasOwnProperty(n)&&t[n]){i[t[n]]=this.typeHitData(t[n],e[n])}};return i},typeHitData:function(e,t){var n=function(e){return e.indexOf('metric')===0},a=function(e){return e.indexOf('dimension')===0};if(a(e)){return t+''};if(n(e)){if(isNaN(parseInt(t,10))){throw new Error('Attempted to map a non-numeric value to a metric.')};return parseInt(t,10)};return t},};if(e.onerror){return};e.onerror=function(e,t,a,i,r){if(r instanceof Error){var n=r.message;if(t){n+=' ('+t};if(a){n+=' at line '+a};if(i){n+=':'+i};if(t){n+=')'};RiotSolrAppTracker.trackException(n,!0);return!1}}})(window);;/*})'"*/
178;var RiotSolrManagers=[];(function(e){AjaxSolr.Manager=AjaxSolr.AbstractManager.extend({init:function(){var e=this.exposedParams.length?this.exposedParams:[],s=e.length?'ParameterHashStore':'ParameterStore';this.firstRequest=!1;this.initialized=!0;if(this.store===null){this.setStore(new AjaxSolr[s]({exposed:e}))};if(this.store.storedString()!=''){this.store.parseString(this.store.storedString())};this.store.load(!1);for(var t in this.widgets){this.widgets[t].init()};
178this.store.init();this.docCacheMem={};if(typeof this.docCache!='undefined'&&this.docCache>0){this.cache=new CacheInterface.Bucket({defaultLifetime:this.docCache,bucket:'RiotSolrManagerDocCache'})}
179else{this.cache=!1;this.docCacheTS=Date.now();this.docCacheDuration=60*60*1000};if(typeof this.requestCache!='undefined'&&this.requestCache>0){this.requestCache=new CacheInterface.Bucket({defaultLifetime:this.docCache,bucket:'RiotSolrManagerRequestCache'})}
180else{this.requestCache=!1};RiotSolrManagers.push(this)},regexEscape:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\\$&')},setObservable:function(e){this.observable=e},addWidget:function(e){e.manager=this;this.widgets.push(e)},addBoost:function(e,t,s){if(typeof this.boosts=='undefined'){this.boosts=[]};this.boosts[e]=t+':('+s.join(' ')+')'},hasBoost:function(e){if(typeof this.boosts=='undefined'||typeof this.boosts[e]=='undefined'){return!1};return!0},setBoost:function(e){var t=this.store;if(!this.hasBoost(e)){return};t.values('bq').map(function(e,s){t.removeByValue('bq',e)});t.values('sort').map(function(e,s){t.removeByValue('sort',e)});t.add('bq',new AjaxSolr.Parameter({name:'bq',value:this.boosts[e]}));if(t.exposed.indexOf('bq')==-1){t.exposed.push('bq')}},clearBoost:function(){var e=this.store;e.values('bq').map(function(t,s){e.removeByValue('bq',t)})},executeRequest:function(t,s,a,n,o,h){var r=this,i={dataType:'json'},c,f;if(typeof o==='undefined'){o=!1};if(typeof h==='undefined'){h='RiotSolr'};if(typeof this.docCacheMem!='undefined'){var u=Date.now();if(u-this.docCacheTS>this.docCacheDuration){this.docCacheTS=u;this.docCacheMem={}}};s=s||this.store.string()+'&fl=id';a=a||function(e){r.handleResponse(e)};n=n||function(e,t,s){r.handleError(t+', '+s)};if(this.proxyUrl){i.url=this.proxyUrl;i.data=s+'&wt=json&json.wrf=?';i.type='POST';if(typeof this.indexId!='undefined'){i.data+='&fq=index_id:'+AjaxSolr.Parameter.escapeValue(this.indexId)}}
181else{i.url=this.solrUrl+t+'?'+s+'&wt=json&json.wrf=?';if(typeof this.indexId!='undefined'){i.url+='&fq=index_id:'+AjaxSolr.Parameter.escapeValue(this.indexId)}};this.observable.trigger('RiotSolrRequestStart',i);if(this.requestCache&&!o){f=r.observable.opts.id+'_'+btoa(JSON.stringify(i));c=this.requestCache.getItem(f)};if(!this.requestCache||!c){e.ajaxq(h,i).done(function(e){if(r.requestCache&&!o){r.requestCache.setItem(f,e)};a(e)}).fail(function(e){n(e)}).always(function(){r.observable.trigger('RiotSolrRequestStop')})}
182else{a(c);r.observable.trigger('RiotSolrRequestStop')}},triggerEvents:function(e){for(var t in this.widgets){this.widgets[t].afterRequest
182()};if(this.observable){this.observable.trigger('RiotSolrUpdate',{response:e});RiotTagsDispatch.trigger('RiotSolrUpdate',this.observable,{response:e})}},handleResponse:function(e){var t,i=this,s;this.response=e;s=e.response.docs.map(function(e){return e.id});e.getFullDocs=function(){if(!t){t=i.getDocuments(s)};return t};this.triggerEvents(e)},getDocuments:function(t){var i=e.Deferred(),s=[],n=[],r,a,h=this;for(a in t){if(this.cache){r=this.cache.getItem(t[a])}
183else{r=this.docCacheMem[t[a]]};if(r){s.push(r)}
184else{n.push(t[a])}};if(!n.length){i.resolve(s)}
185else{var f='ids='+n.join(','),o;if(this.observable.opts.solr.params){o=this.observable.opts.solr.params;for(var c in o){f+='&'+c+'='+o[c]}};this.executeRequest('select',f,function(e){for(var a in e.response.docs){var r=e.response.docs[a];if(h.cache){h.cache.setItem(r.id,r)}
186else{h.docCacheMem[r.id]=r};s.push(e.response.docs[a])};s.sort(function(e,s){return t.indexOf(e.id)-t.indexOf(s.id)});i.resolve(s)},function(e){i.reject(e)},!0,'fullDocs')};return i},getDocumentsByKeys:function(e){var i=[],t,s;for(t in e){this.siteHash?s=[this.siteHash,this.indexId,e[t]]:s=[this.indexId,e[t]];i.push(s.join('-'))};return this.getDocuments(i)}});AjaxSolr.Parameter=AjaxSolr.Parameter.extend({parseValueString:function(e){return decodeURIComponent(e)},escapeValue:function(e){var t;if(e.match(/[ :\/"]/)&&!e.match(/[\[\{]\S+ TO \S+[\]\}]/)&&!e.match(/^["\(].*["\)]$/)){t='"'+e.replace(/\\/g,'\\\\').replace(/"/g,'\\"')+'"'}
187else{t=e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\\$&')};return AjaxSolr.Manager.regexEscape(t)}});AjaxSolr.ParameterHashStore.prototype.isMultiple=function(e){return e.match(/^(?:bf|bq|stats\.field|facet\.date|facet\.date\.other|facet\.date\.include|facet\.field|facet\.pivot|facet\.range|facet\.range\.other|facet\.range\.include|facet\.query|fq|group\.field|group\.func|group\.query|pf|qf)$/)};AjaxSolr.ParameterStore.prototype.isMultiple=function(e){return e.match(/^(?:bf|bq|stats\.field|facet\.date|facet\.date\.other|facet\.date\.include|facet\.field|facet\.pivot|facet\.range|facet\.range\.other|facet\.range\.include|facet\.query|fq|group\.field|group\.func|group\.query|pf|qf)$/)};AjaxSolr.ParameterHashStore.prototype.exposedString=function(){var i=[],t;for(var e=0,a=this.exposed.length;e<a;e++){if(this.params[this.exposed[e]]!==undefined){if(this.isMultiple(this.exposed[e])){for(var s=0,r=this.params[this.exposed[e]].length;s<r;s++){t=this.params[this.exposed[e]][s].string();if(t&&this.params[this.exposed[e]][s]['private']!==!0){i.push(t)}}}
188else{t=this.params[this.exposed[e]].string();if(t&&this.params[this.exposed[e]]['private']!==!0){i.push(t)}}}};return i.join('&')}})(jQuery);;/*})'"*/
189;var RiotSolrCookieStore,RiotSolrCreateInstance,RiotSolrItemSortHandlers,RiotSolrIntObs=(typeof IntersectionObserver=='undefined'||RiotTagsUtils.detectIE())?undefined:new IntersectionObserver(function(t){for(ind in t){if(t[ind].target._tag){t[ind].target._tag.trigger('RiotSolrIntersect',t[ind])}}},{rootMargin:'80px 0px 80px 0px'});(function(t){var u={init:function(){var e=this;if(!e.opts.solr){return};e.RiotSolrInitManager();if(typeof e.RiotSolrManager!='undefined'){e.RiotSolrManager.observable.on('RiotSolrRequestStart',function(){t(e.root).addClass('pending')});e.RiotSolrManager.observable.on('RiotSolrRequestStop',function(){t(e.root).removeClass('pending')});e.getChildExtraOptions=function(t){return{manager:e.RiotSolrManager,facets:e.RiotSolrFacets,}}};e.on('RiotSolrUpdate',function(){e.RiotSolrManager.firstRequest=!0})},RiotSolrGetFacets:function(t){var o=[],i,e;for(e in t.facets){if(t.facets.hasOwnProperty(e)){i=t.facets[e]['settings']['settings']['widget'];if(this.RiotSolrManager.facetWidgetMap&&typeof this.RiotSolrManager.facetWidgetMap[i]!=='undefined'){o.push({definition:t.facets[e],field:t.fields[e]['solr_field'],label:t.fields[e]['name'],htmlTagName:this.RiotSolrManager.facetWidgetMap[i]['tag'],})}}};return o},RiotSolrInitManager:function(){var e=this,o,i={facet:!0,rows:e.opts.solr.max_rows,'facet.range':[],'facet.mincount':1,'json.nl':'map',},r={observable:e,proxyUrl:e.opts.solr.url,indexId:e.opts.solr.index,bundles:e.opts.solr.bundles,entityType:e.opts.solr.entity_type,docCache:e.opts.solr.doc_cache,requestCache:e.opts.solr.doc_cache,exposedParams:e.opts.solr.exp
189osed_params,siteHash:e.opts.solr.hash,facetWidgetMap:e.opts.facet_widget_map,widgets:[],};if(e.opts.solr.index==='inherit'||typeof e.opts.solr.index=='undefined'){if(typeof e.parent!=='undefined'){e.RiotSolrManager=e.parent.RiotSolrManager}
190else if(typeof e.opts.manager!=='undefined'){e.RiotSolrManager=e.opts.manager}};if(e.RiotSolrManager){if(!e.RiotSolrFacets&&e.opts.facets){e.RiotSolrFacets=e.opts.facets}
191else{e.RiotSolrFacets=[]}}
192else if(e.opts.solr.index!='inherit'&&typeof e.opts.solr.index!='undefined'){e.RiotSolrManager=new AjaxSolr.Manager(r);e.RiotSolrFacets=e.RiotSolrGetFacets(e.opts.solr);e.RiotSolrManager.observable.on('RiotSolrBoot',function(){e.RiotSolrManager.observable.trigger('RiotSolrAddWidgets',e.RiotSolrManager);e.RiotSolrManager.init();e.RiotSolrManager.observable.trigger('RiotSolrInit',e.RiotSolrManager,i);if(e.RiotSolrManager.store.storedString()==''&&e.opts.solr.default_q){i['q']=e.opts.solr.default_q};if(!e.RiotSolrManager.store.get('boost').value&&e.opts.solr.default_boost){if(!e.RiotSolrManager.store.get('bq')||!e.RiotSolrManager.store.get('bq').value){i['boost']=e.opts.solr.default_boost};i['defType']='edismax'};if(e.opts.solr.params){i=t.extend(i,e.opts.solr.params)};for(o in i){e.RiotSolrManager.store.addByValue(o,i[o])};if(e.opts.solr.max_rows>0){e.RiotSolrManager.doRequest()};e.RiotSolrManager.observable.trigger('RiotSolrReady',e.RiotSolrManager);RiotTagsDispatch.trigger('RiotSolrReady',e.RiotSolrManager.observable,e.RiotSolrManager)});e.one('updated',function(){e.RiotSolrManager.observable.trigger('RiotSolrBoot')})}},};riot.mixin('RiotSolrConnection',u);var c={init:function(){var t=this;t.mixin('RiotSolrConnection');t.on(t.opts.widget+'Update',function(e){t.items=this.FacetProcessItems(e);
192t.update()});t.RiotSolrManager.observable.on('RiotSolrAddWidgets',function(e){t.FacetBuildWidget(e)})},FacetGetDefinition:function(){for(var t in this.RiotSolrFacets){if(this.RiotSolrFacets[t].definition.data.field===this.opts.facet_field){return this.RiotSolrFacets[t]}};return!1},FacetClickHandler:function(t){if(t.item.active){this.FacetRemove(t)}
193else{this.FacetAdd(t)}},FacetProcessParams:function(t){return t},FacetFilterChars:function(t){return t.replace(/[\[\]\{\}\(\)\*\+\?\.\\]/g,'')},FacetBuildWidget:function(t){var r=this.FacetGetDefinition(),n,i,e=r.definition,o='';for(var s in r){this.opts[s]=r[s]};if(typeof e=='undefined'){return};if(typeof e.settings.settings['riot_solr']!=='undefined'){i=e.settings.settings['riot_solr']};if(typeof i!=='undefined'&&typeof i.facet_label!=='undefined'&&i.facet_label!==''){o=i.facet_label}
194else{o=e.settings_global.settings['riotjs_label']};this.opts.label=o;n={id:this.opts.widget+'-'+this.opts.field,target:'[data-facetId="'+this.opts.widget+'-'+this.opts.field+'"]',field:this.opts.field,label:o,observable:this,operator:e.settings_global.settings['operator'],'facet.limit':e.settings_global.settings['hard_limit'],'facet.field':this.opts.field,'facet.missing':e.settings_global.settings['facet_missing']>0?'true':'false',multivalue:e.settings_global.settings['limit_active_items']<=0,};if(e.settings_global.settings['facet_mincount']){n['facet.mincount']=e.settings_global.settings['facet_mincount']};this.instance=new AjaxSolr[this.opts.widget](this.FacetProcessParams(n));t.addWidget(this.instance)},FacetProcessItems:function(t){var e=[],o=this,r,i;if(t.field===this.opts.field&&t.widget===this.opts.widget){if(this.opts.definition.settings.settings.exclude){r=new RegExp(o.FacetFilterChars(this.opts.definition.settings.settings.exclude));e=t.items.filter(function(t){return!r.test(o.FacetFilterChars(t.facet))})}
195else{e=t.items};this.trigger('RiotSolrFacetProviderSort',{'items':e,'field':t.field,'sortOptions':this.opts.definition.settings.settings.active_sorts,'results':t,});RiotTagsDispatch.trigger('RiotSolrFacetProviderSort',{'items':e,'field':t.field,'sortOptions':this.opts.definition.settings.settings.active_sorts,'results':t,});for(i in e){(function(t){if(!e.hasOwnProperty(i)){return};e[i]['active']=t.IsActive(e[i].facet)})(this)}};return e},FacetAdd:function(t){var e=this.instance.multivalue?'add':'set';if(this.instance[e].call(this.instance,t.item.facet)){this.instance.doRequest()}},FacetRemove:function(t){this.instance.remove(t.item.facet);this.instance.doRequest()},FacetReset:function(){this.instance.removeAll();this.instance.doRequest()},IsActive:function(t){return this.instance.isActive(t)},};riot.mixin('RiotSolrFacetProvider',c);var g={init:function(){var e=this;this.riotSolrItems=[];this.items=[];e.getChildExtraOptions=function(){return{manager:e.RiotSolrManager,}};var i=e.processChildren;e.processChildren=function(){i.apply(e);for(var t in e.children){if(e.children[t].tag==='riot-solr-no-results'||e.children[t].tag==='riot-solr-alternates'){e.noResultsTag=e.children[t];e.children.splice(t,1)}};if(typeof e.children!='undefined'&&e.children.length>0){e.children[0].mounted=!0}};(e.numvisible=parseInt(e.opts.numvisible)),(e.pagecount=parseInt(e.opts.numvisible));e.RiotSolrManager.observable.on('RiotSolrUpdate',function(t){if(e.opts.solr.return_full_docs&&t.response.getFullDocs){t.response.getFullDocs().done(function(i){t.response.docs=i;e.RiotSolrManager.triggerEvents(t);e.setRiotSolrItems(t.response.docs)})}});e.RiotSolrManager.observable.on('RiotSolrItemsSorted',function(t){e.setRiotSolrItems(t.items)});e.displayitems=[];e.on('RiotSolrItemsUpdated',function(){t.Deferred(function(){e.items=e.getRiotSolrItems();e.numvisible=parseInt(e.opts.numvisible);if(e.numvisible>0){e.displayitems=e.items.slice(0,e.numvisible)}
196else{e.displayitems=e.items};e.update();RiotTagsDispatch.trigger('RiotSolrItemsUpdated',e,e.items);e.RiotSolrManager.observable.trigger('RiotSolrItemsUpdated',e,e.items)})});e.on('RiotSolrItemsSorted',function(i){t.Deferred(function(){e.items=i.items;numvisible=e.opts.numvisible;if(numvisible>0){e.displayitems=e.items.slice(0,e.numvisible)}
197else{e.displayitems=e.items};
197e.update()})});if(e.numvisible>0){(function(t,e){var i=function(t){var i=e.root.querySelector('.result-list');if(i&&i.lastElementChild!==null&&i.lastElementChild.isVisible()&&e.numvisible<e.items.length){e.numvisible+=parseInt(e.pagecount);Array.prototype.push.apply(e.displayitems,e.items.slice(e.displayitems.length,e.numvisible));e.update()}};document.addEventListener('scroll',i)})(jQuery,e)}},setRiotSolrItems:function(t){this.riotSolrItems=t;this.trigger('RiotSolrItemsUpdated',t)},getRiotSolrItems:function(){return this.riotSolrItems},};riot.mixin('RiotSolrItemsContainer',g);var f={RiotSolrLinkedItem:riot.observable(),};riot.mixin('RiotSolrLinkedItem',f);var l={init:function(){this.observeAfterFirstVisible=!0;this.on('mount',function(){this.hasBeenVisible=!1;this.observeInt()});this.on('RiotSolrIntersect',function(t){if(t.isIntersecting){if(!this.hasBeenVisible){this.hasBeenVisible=!0;this.trigger('RiotSolrIntersectFirstVisible',t);if(!this.observeAfterFirstVisible){this.unobserveInt()}}}})},unobserveInt:function(){if(typeof RiotSolrIntObs!='undefined'){RiotSolrIntObs.unobserve(this.root)}},observeInt:function(){if(typeof RiotSolrIntObs!='undefined'){RiotSolrIntObs.observe(this.root)}},canObserveInt:function(){return typeof IntersectionObserver!='undefined'&&!RiotTagsUtils.detectIE()},};riot.mixin('RiotSolrIntersectionObserver',l);var s={init:function(){this.mixin('RiotSolrIntersectionObserver');this.observeAfterFirstVisible=!1;this.on('RiotSolrIntersectFirstVisible',function(t){this.loadImages()})},loadImages:function(){t('img[data-src]:not(.RiotSolrLazyLoaded)',this.root).each(function(){t(this).attr('src',t(this).attr('data-src')).addClass('RiotSolrLazyLoaded')})},};riot.mixin('RiotSolrLazyImage',s);var n={_if:function(t){return t?[t]:[]},};riot.mixin(n);var r={init:function(){var t=this,e=t.getChildExtraOptions;t.getChildExtraOptions=function(i){var o=e.apply(i);o['item']=t.RiotSolrGetItem();o['manager']=t.RiotSolrManager;return o};t.valueOrFirst=function(t){return Array.isArray(t)?t[0]:t};this.one('updated',function(){RiotTagsDispatch.trigger('RiotSolrResultItemMounted',t,t.opts)})},RiotSolrGetItem:function(){return this.item},};riot.mixin('RiotSolrItem',r);var o={init:function(){var t=this,e=t.opts.item;if(t.opts.flag_options){t.RiotSolrFlagOpts=t.opts.flag_options};if(t.RiotSolrFlagOpts.skip_solr&&t.RiotSolrFlagOpts.skip_solr_prefix){t.flagItemID=t.RiotSolrFlagOpts.skip_solr_prefix+t.opts.eid;t.RiotSolrFlagSetFlag()}
198else{if(!e){t.RiotSolrManager.observable.on('RiotSolrReady',function(){t.RiotSolrManager.getDocumentsByKeys([t.opts.eid]).done(function(e){t.RiotSolrFlagSetItem(e[0])})})}
199else{t.one('update',function(){t.RiotSolrFlagSetItem(e)})}};RiotTagsDispatch.on('RiotSolrFlagUpdate',function(e,i){if(e._riot_id!==t._riot_id&&t.RiotSolrFlagOpts.namespace===i&&t.flagItemID===e.flagItemID){t.RiotSolrFlagClass=e.RiotSolrFlagClass;t.RiotSolrFlagText=e.RiotSolrFlagText;t.update()}})},RiotSolrFlagSetItem:function(t){if(t){this.flagItemID=t[this.RiotSolrFlagOpts.key]+'';this.RiotSolrFlagSetFlag()}},RiotSolrFlagSetFlag:function(){this.RiotSolrFlagInitStore();if(this.RiotSolrFlagStore.has(this.flagItemID)){this.RiotSolrFlagText=this.RiotSolrFlagOpts.text.unflag;this.RiotSolrFlagClass=this.RiotSolrFlagOpts.classes.unflag}
200else{this.RiotSolrFlagText=this.RiotSolrFlagOpts.text.flag;this.RiotSolrFlagClass=this.RiotSolrFlagOpts.classes.flag};this.update()},RiotSolrFlagInitStore:function(){this.RiotSolrFlagStore=RiotSolrCreateInstance(this.RiotSolrFlagOpts.store,this.RiotSolrFlagOpts.namespace)},RiotSolrFlagOpts:{text:{flag:'Flag',unflag:'Unflag',},classes:{flag:'rs-flag',unflag:'rs-unflag',},namespace:'riot_solr_flag_items',store:'RiotSolrCookieStore',key:'id',},RiotSolrHandleFlag:function(t){var e=this,i=e.RiotSolrFlagStore;if(i.has(e.flagItemID)){i.remove(e.flagItemID);e.RiotSolrFlagText=e.RiotSolrFlagOpts.text.flag;e.RiotSolrFlagClass=e.RiotSolrFlagOpts.classes.flag}
201else{i.add(e.flagItemID);e.RiotSolrFlagText=e.RiotSolrFlagOpts.text.unflag;e.RiotSolrFlagClass=e.RiotSolrFlagOpts.classes.unflag};RiotTagsDispatch.trigger('RiotSolrFlagUpdate',this,this.RiotSolrFlagOpts.namespace);
201e.update()},};riot.mixin('RiotSolrFlag',o);var i={init:function(){var t=this,e;t.RiotSolrManager.observable.on('RiotSolrInit',function(e){t.RiotSolrManager.setStore(new AjaxSolr.ParameterStore());t.RiotSolrManager.store.load(!1);t.RiotSolrManager.store.init()});if(t.opts.flag_options){t.RiotSolrFlagOpts=t.opts.flag_options};t.showItems=!1;t.RiotSolrFlagStore=RiotSolrCreateInstance(t.opts.flag_options.store,t.opts.flag_options.namespace);e=function(){t.RiotSolrFlagCounterUpdate()};RiotTagsDispatch.on('RiotSolrFlagUpdate',e);t.one('update',function(){t.RiotSolrFlagCount=t.RiotSolrFlagStore.get().length});t.one('updated',function(){t.root.addEventListener('mouseenter',function(){t.showItems=!0;e()});t.root.addEventListener('mouseleave',function(){t.showItems=!1;t.update()})});t.on('unmount',function(){RiotTagsDispatch.off('RiotSolrFlagUpdate',e)})},RiotSolrFlagOpts:{text:{flag:'Flag',unflag:'Unflag',},classes:{flag:'rs-flag',unflag:'rs-unflag',},namespace:'riot_solr_flag_items',store:'RiotSolrCookieStore',key:'id',},RiotSolrFlagHandler:function(t){var e=this.RiotSolrManager,i,o;e.response=t;o=t.response.docs.map(function(t){return t.id});t.getFullDocs=function(){if(!i){i=e.getDocuments(o)};return i};
201e.widgets.map(function(t){t.afterRequest()});this.setRiotSolrItems(t.response.docs);this.update()},RiotSolrFlagCounterUpdate:function(){var t=this.RiotSolrFlagStore.get(),e=this,i='rows='+t.length+'&fq='+e.RiotSolrFlagOpts.key+':('+t.join(' OR ')+')';e.RiotSolrFlagCount=t.length;if(t.length>0){e.RiotSolrManager.executeRequest('select',i,this.RiotSolrFlagHandler)}
202else{e.setRiotSolrItems([])}},RiotSolrFlagCounterViewPage:function(){var e,t,i;if(!this.opts.flag_options.path){return};t=this.RiotSolrFlagStore.get();if(t.length>0){e=this.opts.flag_options.path;i=this.RiotSolrFlagOpts.key+':('+t.join(' OR ')+')';window.location.href=e+'#q='+i}},};riot.mixin('RiotSolrFlagCounter',i);RiotSolrCreateInstance=function(t){var e=Array.prototype.slice.call(arguments,1);return new window[t](e)};RiotSolrCookieStore=function(e){var i=e,o=[],n,r=function(){n=t.cookie(i);o[i]=n?t.parseJSON(n):[]},s=function(){t.cookie(i,JSON.stringify(o[i]),{path:'/'})};this.get=function(){r();return o[i]};this.add=function(t){r();if(o[i].indexOf(t)===-1){o[i].push(t);s()};if(typeof ga4!=='undefined'){ga4.event({event:'add_'+i,value:t,eventCategory:'RiotSolr Flag',eventAction:'Add '+i,eventLabel:t,})};if(typeof ga!=='undefined'){ga('send',{hitType:'event',eventCategory:'RiotSolr Flag',eventAction:'Add '+i,eventLabel:t,nonInteraction:1,})}
203else if(typeof _gaq!=='undefined'){_gaq.push(['_trackEvent','RiotSolr Flag','Add '+i,t,0,!0])}};this.remove=function(t){r();var e=o[i].indexOf(t);if(e!==-1){o[i].splice(e,1);s()};if(typeof ga4!=='undefined'){ga4.event({event:'remove_'+i,value:t,eventCategory:'RiotSolr Flag',eventAction:'Remove '+i,eventLabel:t,})};if(typeof ga!=='undefined'){ga('send',{hitType:'event',eventCategory:'RiotSolr Flag',eventAction:'Remove '+i,eventLabel:t,nonInteraction:1,})}
204else if(typeof _gaq!=='undefined'){_gaq.push(['_trackEvent','RiotSolr Flag','Remove '+i,t,0,!0])}};this.reset=function(){o[i]=[];s()};this.has=function(t){r();return this.indexOf.call(o[i],t)!==-1};this.indexOf=function(t){var e;if(typeof Array.prototype.indexOf==='function'){e=Array.prototype.indexOf}
205else{e=function(t){var e=-1,i=-1;for(e=0;e<this.length;e++){if(this[e]===t){i=e;break}};return i}};return e.call(this,t)}};RiotSolrItemSortHandlers={sortNumeric:{primer:function(t){return parseFloat(t)},callback:function(t,e,i){var o=this,r=!i?1:-1;t.sort(function(t,i){return(t=o.primer(t[e])),(i=o.primer(i[e])),r*((t>i)-(i>t))});return t},},sortLexicographic:{primer:function(t){if(typeof t==='string'){return t.trim()}
206else if(Array.isArray(t)){return t[0].trim()}},callback:function(t,e,i){var o=this;t.sort(function(t,i){return(t=o.primer(t[e])),(i=o.primer(i[e])),t.toLowerCase().localeCompare(i)});if(i){t.reverse()};return t},},sortRandom:{primer:function(){var e=9999,t=1;return Math.floor(Math.random()*(e-t))+t},callback:function(t,e,i){var o=this,r=!i?1:-1;t.sort(function(){return(a=o.primer()),(b=o.primer()),r*((a>b)-(b>a))});return t},},};Element.prototype.isVisible=function(){'use strict';function e(r,n,a,u,l,f,g){var s=r.parentNode,c=2;if(!o(r)){return!1};if(!i(r)){return!1};if(9===s.nodeType){return!0};if('0'===t(r,'opacity')||'none'===t(r,'display')||'hidden'===t(r,'visibility')){return!1};if('undefined'===typeof n||'undefined'===typeof a||'undefined'===typeof u||'undefined'===typeof l||'undefined'===typeof f||'undefined'===typeof g){n=r.offsetTop;l=r.offsetLeft;u=n+r.offsetHeight;a=l+r.offsetWidth;f=r.offsetWidth;g=r.offsetHeight};if(s){if('hidden'===t(s,'overflow')||'scroll'===t(s,'overflow')||'hidden'===t(s,'overflow-y')||'scroll'===t(s,'overflow-y')){if(l+c>s.offsetWidth+s.scrollLeft||l+f-c<s.scrollLeft||n+c>s.offsetHeight+s.scrollTop||n+g-c<s.scrollTop){return!1}};if(r.offsetParent===s){l+=s.offsetLeft;n+=s.offsetTop};return e(s,n,a,u,l,f,g)};return!0};function t(t,e){if(window.getComputedStyle){return document.defaultView.getComputedStyle(t,null)[e]};if(t.currentStyle){return t.currentStyle[e]}};function i(t){while((t=t.parentNode)){if(t==document){return!0}};return!1};function o(t){var e=2,i=t.getBoundingClientRect(),o=i.top-e<=(window.innerHeight||document.documentElement.clientHeight)&&i.bottom>=0-e&&i.left-e<=(window.innerWidth||document.documentElement.clientWidth)&&i.right>=0-e;return o};return e(this)};
206var e={RiotSolrUtils:{debounce:function(t,e,i){var o;return function(){var r=this,n=arguments;clearTimeout(o);o=setTimeout(function(){o=null;if(!i)t.apply(r,n)},e);if(i&&!o)t.apply(r,n)}}}};riot.mixin('RiotSolrUtils',e)})(jQuery);;/*})'"*/
207;riot.tag('subtag','',function(t){var n=t.tag;if(typeof n!='undefined'){(function(e,i){var o={};if(typeof t.options!=='undefined'){o=e.extend(o,t.options)};riot.mount(i.root,n,o)})(jQuery,this)}});;/*})'"*/
208(function(t){Drupal.behaviors.formSingleSubmit={attach:function(){function a(a){var e=t(a.currentTarget),r=e.serialize(),i=e.attr('data-drupal-form-submit-last');if(i===r){a.preventDefault()}
209else{e.attr('data-drupal-form-submit-last',r)}};t('body').once('form-single-submit').delegate('form:not([method~="GET"])','submit.singleSubmit',a)}}})(jQuery);;/*})'"*/
210(function(e){Drupal.ajax=Drupal.ajax||{};Drupal.settings.urlIsAjaxTrusted=Drupal.settings.urlIsAjaxTrusted||{};Drupal.behaviors.AJAX={attach:function(t,s){for(var r in s.ajax){if(!e('#'+r+'.ajax-processed').length){var a=s.ajax[r];if(typeof a.selector=='undefined'){a.selector='#'+r};e(a.selector).each(function(){a.element=this;Drupal.ajax[r]=new Drupal.ajax(r,this,a)});e('#'+r).addClass('ajax-processed')}};e('.use-ajax:not(.ajax-processed)').addClass('ajax-processed').each(function(){var t={};t.progress={'type':'throbber'};if(e(this).attr('href')){t.url=e(this).attr('href');t.event='click'};var s=e(this).attr('id');Drupal.ajax[s]=new Drupal.ajax(s,this,t)});e('.use-ajax-submit:not(.ajax-processed)').addClass('ajax-processed').each(function(){var t={};t.url=e(this.form).attr('action');t.setClick=!0;t.event='click';t.progress={'type':'throbber'};var s=e(this).attr('id');Drupal.ajax[s]=new Drupal.ajax(s,this,t)})}};Drupal.ajax=function(t,s,r){var i={url:'system/ajax',event:'mousedown',keypress:!0,selector:'#'+t,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Please wait...')},submit:{'js':!0}};e.extend(this,i,r);this.element=s;this.element_settings=r;this.url=r.url.replace(/\/nojs(\/|$|\?|&|#)/g,'/ajax$1');if(Drupal.settings.urlIsAjaxTrusted[r.url]){Drupal.settings.urlIsAjaxTrusted[this.url]=!0};this.wrapper='#'+r.wrapper;if(this.element.form){this.form=e(this.element.form)};var a=this;a.options={url:Drupal.sanitizeAjaxUrl(a.url),data:a.submit,beforeSerialize:function(e,t){return a.beforeSerialize(e,t)},beforeSubmit:function(e,t,s){a.ajaxing=!0;return a.beforeSubmit(e,t,s)},beforeSend:function(e,t){a.ajaxing=!0;return a.beforeSend(e,t)},success:function(t,s,r){if(typeof t=='string'){t=e.parseJSON(t)};if(t!==null&&!Drupal.settings.urlIsAjaxTrusted[a.url]){if(r.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){var i=Drupal.t('The response failed verification so will not be processed.');return a.error(r,a.url,i)}};return a.success(t,s)},complete:function(e,t){a.ajaxing=!1;if(t=='error'||t=='parsererror'){return a.error(e,a.url)}},dataType:'json',jsonp:!1,type:'POST'};if(navigator.userAgent.indexOf('MSIE')===-1){a.options.iframeSrc='about:blank'};e(a.element).bind(r.event,function(e){if(!Drupal.settings.urlIsAjaxTrusted[a.url]&&!Drupal.urlIsLocal(a.url)){throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':a.url}))};return a.eventResponse(this,e)});if(r.keypress){e(a.element).keypress(function(e){return a.keypressResponse(this,e)})};if(r.prevent){e(a.element).bind(r.prevent,!1)}};Drupal.ajax.prototype.keypressResponse=function(t,s){var r=this;if(s.which==13||(s.which==32&&t.type!='text'&&t.type!='textarea')){e(r.element_settings.element).trigger(r.element_settings.event);return!1}};Drupal.ajax.prototype.eventResponse=function(t,s){var r=this;if(r.ajaxing){return!1};try{if(r.form){if(r.setClick){t.form.clk=t};r.form.ajaxSubmit(r.options)}
211else{r.beforeSerialize(r.element,r.options);e.ajax(r.options)}}catch(a){r.ajaxing=!1;alert('An error occurred while attempting to process '+r.options.url+': '+a.message)};if(typeof t.type!='undefined'&&(t.type=='checkbox'||t.type=='radio')){return!0}
212else{return!1}};Drupal.ajax.prototype.beforeSerialize=function(s,t){if(this.form){var a=this.settings||Drupal.settings;Drupal.detachBehaviors(this.form,a,'serialize')};t.data['ajax_html_ids[]']=[];e('[id]').each(function(){t.data['ajax_html_ids[]'].push(this.id)});t.data['ajax_page_state[theme]']=Drupal.settings.ajaxPageState.theme;t.data['ajax_page_state[theme_token]']=Drupal.settings.ajaxPageState.theme_token;for(var r in Drupal.settings.ajaxPageState.css){t.data['ajax_page_state[css]['+r+']']=1};for(var r in Drupal.settings.ajaxPageState.js){t.data['ajax_page_state[js]['+r+']']=1}};Drupal.ajax.prototype.beforeSubmit=function(e,t,s){};Drupal.ajax.prototype.beforeSend=function(t,s){if(this.form){s.extraData=s.extraData||{};s.extraData.ajax_iframe_upload='1';var a=e.fieldValue(this.element);if(a!==null){s.extraData[this.element.name]=Drupal.checkPlain(a)}};e(this.element).addClass('progress-disabled').attr('disabled',!0);if(this.progress.type=='bar'){var r=new Drupal.progressBar('ajax-progress-'+this.element.i
212d,e.noop,this.progress.method,e.noop);if(this.progress.message){r.setProgress(-1,this.progress.message)};if(this.progress.url){r.startMonitoring(this.progress.url,this.progress.interval||1500)};this.progress.element=e(r.element).addClass('ajax-progress ajax-progress-bar');this.progress.object=r;e(this.element).after(this.progress.element)}
213else if(this.progress.type=='throbber'){this.progress.element=e('<div class="ajax-progress ajax-progress-throbber"><div class="throbber">&nbsp;</div></div>');if(this.progress.message){e('.throbber',this.progress.element).after('<div class="message">'+this.progress.message+'</div>')};e(this.element).after(this.progress.element)}};Drupal.ajax.prototype.success=function(t,s){if(this.progress.element){e(this.progress.element).remove()};if(this.progress.object){this.progress.object.stopMonitoring()};e(this.element).removeClass('progress-disabled').removeAttr('disabled');Drupal.freezeHeight();for(var r in t){if(t.hasOwnProperty(r)&&t[r]['command']&&this.commands[t[r]['command']]){this.commands[t[r]['command']](this,t[r],s)}};if(this.form){var a=this.settings||Drupal.settings;Drupal.attachBehaviors(this.form,a)};Drupal.unfreezeHeight();this.settings=null};Drupal.ajax.prototype.getEffect=function(e){var s=e.effect||this.effect,r=e.speed||this.speed,t={};if(s=='none'){t.showEffect='show';t.hideEffect='hide';t.showSpeed=''}
214else if(s=='fade'){t.showEffect='fadeIn';t.hideEffect='fadeOut';t.showSpeed=r}
215else{t.showEffect=s+'Toggle';t.hideEffect=s+'Toggle';t.showSpeed=r};return t};Drupal.ajax.prototype.error=function(t,s,r){Drupal.displayAjaxError(Drupal.ajaxError(t,s,r));if(this.progress.element){e(this.progress.element).remove()};if(this.progress.object){this.progress.object.stopMonitoring()};e(this.wrapper).show();e(this.element).removeClass('progress-disabled').removeAttr('disabled');if(this.form){var a=this.settings||Drupal.settings;Drupal.attachBehaviors(this.form,a)}};Drupal.ajax.prototype.commands={insert:function(t,s,r){var n=s.selector?e(s.selector):e(t.wrapper),l=s.method||t.method,i=t.getEffect(s),p=e('<div></div>').html(s.data),a=p.contents();if(a.length!=1||a.get(0).nodeType!=1){a=p};switch(l){case'html':case'replaceWith':case'replaceAll':case'empty':case'remove':var o=s.settings||t.settings||Drupal.settings;Drupal.detachBehaviors(n,o)};n[l](a);if(i.showEffect!='show'){a.hide()};if(e('.ajax-new-content',a).length>0){e('.ajax-new-content',a).hide();a.show();e('.ajax-new-content',a)[i.showEffect](i.showSpeed)}
216else if(i.showEffect!='show'){a[i.showEffect](i.showSpeed)};if(a.parents('html').length>0){var o=s.settings||t.settings||Drupal.settings;Drupal.attachBehaviors(a,o)}},remove:function(t,s,r){var a=s.settings||t.settings||Drupal.settings;Drupal.detachBehaviors(e(s.selector),a);e(s.selector).remove()},changed:function(s,t,r){if(!e(t.selector).hasClass('ajax-changed')){e(t.selector).addClass('ajax-changed');if(t.asterisk){e(t.selector).find(t.asterisk).append(' <span class="ajax-changed">*</span> ')}}},alert:function(e,t,s){alert(t.text,t.title)},css:function(t,s,r){e(s.selector).css(s.argument)},settings:function(t,s,r){if(s.merge){e.extend(!0,Drupal.settings,s.settings)}
217else{t.settings=s.settings}},data:function(t,s,r){e(s.selector).data(s.name,s.value)},invoke:function(t,s,r){var a=e(s.selector);a[s.method].apply(a,s.arguments)},restripe:function(t,s,r){e('> tbody > tr:visible, > tr:visible',e(s.selector)).removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even')},add_css:function(t,s,r){e('head').prepend(s.data);var i,a=/^@import url\("(.*)"\);$/igm;if(document.styleSheets[0].addImport&&a.test(s.data)){a.lastIndex=0;while(i=a.exec(s.data)){document.styleSheets[0].addImport(i[1])}}},updateBuildId:function(t,s,r){e('input[name="form_build_id"][value="'+s['old']+'"]').val(s['new'])}}})(jQuery);;/*})'"*/
218(function(a){var e=a.ajax.prototype.beforeSerialize;a.ajax.prototype.beforeSerialize=function(t,r){e.call(this,t,r);r.data['ajax_page_state[jquery_version]']=a.settings.ajaxPageState.jquery_version}})(Drupal);;/*})'"*/
219(function(t,o){o.behaviors.bt_leads_antibot_workaround={attach:function(e,o){t('body').once(function(){const targetNode=document.getElementsByTagName('body')[0];const config={attributes:!1,childList:!0,subtree:!1};const callback=(mutationList,observer)=>{for(const mutation of mutationList){if(mutation.type==='childList'){let $form=t('body > div.reveal-modal form[id^=bt-leads]');if(!$form.length){return};t.get('/bt-leads-antibot-workaround').done(function(t){if(!o.antibot){return};o.antibot.forms=t;o.antibot.human=!1})}}};const observer=new MutationObserver(callback);observer.observe(targetNode,config)})}}})(jQuery,Drupal);;/*})'"*/
220(function(n){Drupal.behaviors.riotSolrFacetGroupTooltip={attach:function(o,t){const infoIcons=n(".amenity-info-icon",o);if(infoIcons.length){infoIcons.each(function(){const currentIcon=n(this);const categoryId=currentIcon[0].id;const popupElementId="amenity-detail-"+categoryId;n(this).hover(function(){n("div[id='"+popupElementId+"']",o).addClass("open")},function(){n("div[id='"+popupElementId+"']",o).removeClass("open")})})}},}})(jQuery);;/*})'"*/
221(function(t){t(document).bind('insertIntoActiveEditor',function(i,t){if(t['fields']['title']&&Drupal.settings.captionFilter.widgets[t['widgetType']]){t['content']='[caption caption="'+t['fields']['title'].replace(/"/g,'\\"')+'"]'+t['content']+'[/caption]'}});Drupal.captionFilter=Drupal.captionFilter||{};Drupal.captionFilter.toHTML=function(t,i){return t.replace(/(?:<p>)?\[caption([^\]]*)\]([\s\S]+?)\[\/caption\](?:<\/p>)?[\s\u00a0]*/g,function(n,c,e){var p,t,a,o;c=c.replace(/\\?'|\\&#39;|\\&#039;/g,'&#39;').replace(/\\"|\\&quot;/g,'&quot;');e=e.replace(/\\&#39;|\\&#039;/g,'&#39;').replace(/\\&quot;/g,'&quot;');p=c.match(/id=['"]([^'"]+)/i);t=c.match(/align=['"]([^'"]+)/i);ct=c.match(/caption=['"]([^'"]+)/i);a=e.match(/width=['"]([0-9]+)/);p=(p&&p[1])?p[1]:'';t=(t&&t[1])?'caption-'+t[1]:'';ct=(ct&&ct[1])?ct[1].replace(/\\\\"/,'"'):'';a=(a&&a[1])?parseInt(a[1])+'px':'auto';if(i=='tinymce')o=(t=='caption-center')?'mceTemp mceIEcenter':'mceTemp';else if(i=='ckeditor')o=(t=='caption-center')?'mceTemp mceIEcenter':'mceTemp';else o='';if(ct){return'<div class="caption '+t+' '+o+' draggable"><div class="caption-width-container" style="width: '+a+'"><div class="caption-inner">'+e+'<p class="caption-text">'+ct+'</p></div></div></div>'}
222else{return'<div class="caption '+t+' '+o+' draggable"><div class="caption-width-container" style="width: '+a+'"><div class="caption-inner">'+e+'</div></div></div>'}})};Drupal.captionFilter.toTag=function(t){return t.replace(/(<div class="caption [^"]*">)\s*<div[^>]+>\s*<div[^>]+>(.+?)<\/div>\s*<\/div>\s*<\/div>\s*/gi,function(i,a,c){var t;t=a.match(/class=.*?caption-(left|center|right)/i);t=(t&&t[1])?t[1]:'';caption=c.match(/\<p class="caption-text"\>(.*)\<\/p\>/);caption_html=(caption&&caption[0])?caption[0]:'';caption=(caption&&caption[1])?caption[1].replace(/"/g,'\\"'):'';c=c.replace(caption_html,'');return'[caption'+(caption?(' caption="'+caption+'"'):'')+(t?(' align="'+t+'"'):'')+']'+c+'[/caption]'})}})(jQuery);;/*})'"*/
223[].filter||(Array.prototype.filter=function(e,t,a,r,c){a=this;r=[];for(c in a)~~c+''==c&&c>=0&&e.call(t,a[c],+c,a)&&r.push(a[c]);return r});if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(e){'use strict';if(this==null){throw new TypeError()};var r=Object(this),c=r.length>>>0;if(c===0){return-1};var t=c;if(arguments.length>1){t=Number(arguments[1]);if(t!=t){t=0}
224else{if(t!=0&&t!=(1/0)&&t!=-(1/0)){t=(t>0||-1)*Math.floor(Math.abs(t))}}};var a=t>=0?Math.min(t,c-1):c-Math.abs(t);for(;a>=0;a--){if(a in r&&r[a]===e){return a}};return-1}}(function(e){Drupal.rc_ua={trackAddtoCartFunc:function(e,t,a){var r,c,o='rc.ecom.addToCart';if(t.parents('[data-rc-ua-ecommerce-detail]').length>0){c='Details'}
225else{if(t.parents().find('.ui-dialog').length>0){o='rc.ecom.addToCartQuote';c='Detailed Quote'}
226else{var n=t.parents('[data-rc-ua-ecommerce-impression]').data('data-rc-ua-ecommerce-list');c='List: '+n}};if(Drupal.settings.rc_ua.rc_ua_tracking_method=='tm'){r={'event':
226o,'eventCategory':'eCommerce','eventAction':'Add to Cart from '+c,'eventLabel':e.id,'ecommerce':{'add':{'products':[e]}},'eventCallback':a,'callback':a};window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push(r)}
227else{ga('ec:addProduct',e);ga('ec:setAction','add');ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Add to Cart from '+c,'eventLabel':e.id,'eventValue':Math.round(e.price),'hitCallback':a})};ga4.event({event:'add_to_cart',value:Math.round(e.price),eventAction:'Add to Cart from '+c,eventCategory:'eCommerce',eventLabel:e.id,items:[e]})},trackCheckoutStepFunc:function(e,t,a){if(Drupal.settings.rc_ua.rc_ua_tracking_method=='tm'){dlo=Object.assign({},t,{'callback':a,'eventCallback':a,'eventCategory':'eCommerce','eventAction':'Checkout Step','eventLabel':e.step});window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push(dlo)}
228else{ga('ec:addProduct',e.product);ga('ec:setAction','checkout',{'step':e.step});ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Checkout Step','eventLabel':e.step,'eventValue':Math.round(e.product.price),'hitCallback':a})};ga4.event({value:Math.round(e.product.price),items:[e.product],step:e.step,event:'begin_checkout',eventCategory:'eCommerce',eventAction:'Checkout Step',eventLabel:e.step,})}};Drupal.behaviors.rc_ua={initProductClicks:function(t,a){e('[data-rc-ua-ecommerce-click-path]:not([data-rc-ua-ecommerce-click-path=""])',t).once('rc_ua_initProductClicks',function(){var a=e(this).attr('data-rc-ua-ecommerce-click-path'),t=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-impression')),c=this;e('a',this).each(function(){var c=e(this).attr('href');if(c!==undefined&&c.indexOf(a)==0){e(this).click(function(a){a.preventDefault();var c=e(this).attr('href'),r=e(this);if(Drupal.settings.rc_ua.rc_ua_tracking_method=='tm'){obj={'event':'rc.ecom.productClick','eventCategory':'eCommerce','eventAction':'Product Click','eventLabel':t.id,'ecommerce':{'click':{'actionField':{list:t.list,position:t.position},'products':[t]}},'eventCallback':function(){if(r.attr('target')==='_blank'){let anchor=document.createElement('a');anchor.href=c;anchor.target='_blank';anchor.click()}
229else{window.location=c}}};window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push(obj)}
230else{ga('ec:addProduct',t);ga('ec:setAction','click',{list:t.list});ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Product Click','eventLabel':t.id,'eventValue':null,'hitCallback':function(){if(r.attr('target')==='_blank'){let anchor=document.createElement('a');anchor.href=c;anchor.target='_blank';anchor.click()}
231else{window.location=c}}});ga4.event({event:'select_item',eventCategory:'eCommerce',eventAction:'Product Click',eventLabel:t.id,items:[t],});setTimeout(function(){if(r.attr('target')==='_blank'){let anchor=document.createElement('a');anchor.href=c;anchor.target='_blank';anchor.click()}
232else{window.location=c}},2000)}})}})})},initProductLists:function(t,a){if(Drupal.settings.rc_ua.rc_ua_tracking_method!='ua'){return};e('[data-rc-ua-ecommerce-list]:not([data-rc-ua-ecommerce-list=""])',t).once('rc_ua_trackProductLists',function(){var t=e(this).attr('data-rc-ua-ecommerce-list'),a=parseInt(e(this).attr('data-rc-ua-ecommerce-list-start'));e('[data-rc-ua-ecommerce-impression]',this).each(function(c,r){e(this).data('data-rc-ua-ecommerce-list',t);e(this).data('data-rc-ua-ecommerce-list-pos',a+c+1)})})},trackProductImpressions:function(t,a){var u=!1,s=10,o=0,d=e('[data-rc-ua-ecommerce-impression]:not([data-rc-ua-ecommerce-impression=""])',t).length,n=0,r=[],c=[],i=function(e){return e.filter(function(e,t,a){return a.lastIndexOf(e)===t})};e('[data-rc-ua-ecommerce-impression]:not([data-rc-ua-ecommerce-impression=""])',t).once('rc_ua_trackProductImpressions',function(){var t=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-impression')),a=e(this).data('data-rc-ua-ecommerce-list-pos'),d=e(this).data('data-rc-ua-ecommerce-list');if(typeof(d)!='undefined'&&d){t.list=d};if(typeof(a)!='undefined'&&a){t.pos=a};if(Drupal.settings.rc_ua.rc_ua_tracking_method=='tm'){window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push({eventLabel:t.list,eventCategory:'eCommerce',eventAction:'Product Impressions','event':'rc.ecom.impressions','ecommerce':{'impressions':[t]}})}
233else{ga('ec:addImpression',t);o++;r.push(t.list);if((o%s)==0){c=i(r);ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Product Impressions','eventLabel':'Lists: '+c.join(),'eventValue':null,'nonInteraction':1});n=n+o;o=0;r=[]};u=!0};c=i(r);ga4.event({event:'view_item',eventCategory:'eCommerce',eventAction:'Product Impressions',eventLabel:'Lists: '+c.join(),items:[t]})});if(Drupal.settings.rc_ua.rc_ua_tracking_method!='tm'&&u&&n<d){c=i(r);ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Product Impressions','eventLabel':'Lists:'+c.join(),'eventValue':null,'nonInteraction':1})}},trackProductDetails:function(t,a){e('[data-rc-ua-ecommerce-detail]:not([data-rc-ua-ecommerce-detail=""])',t).once('rc_ua_trackProductDetails',function(){var t=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-detail'));if(Drupal.settings.rc_ua.rc_ua_tracking_method==='ua'){ga('ec:addProduct',t);ga('ec:setAction','detail');ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Product Detail View','eventLabel':t.id,'eventValue':Math.round(t.price),'n
233onInteraction':1})}
234else if(Drupal.settings.rc_ua.rc_ua_tracking_method==='tm'){window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push({'event':'rc.ecom.productDetails','eventCategory':'eCommerce','eventAction':'Product Detail View','eventLabel':t.id,'eventValue':Math.round(t.price),'ecommerce':{'detail':{'products':[t]}}})};ga4.event({event:'view_item',value:Math.round(t.price),items:[t],eventCategory:'eCommerce',eventAction:'Product Impressions',eventLabel:t.id})})},trackAddToCart:function(t,a){var c;e('[data-rc-ua-ecommerce-submit-addtocart]:not([data-rc-ua-ecommerce-submit-addtocart=""])',t).once('rc_ua_trackSubmitAddToCart',function(){c=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-submit-addtocart'));e(this).on('submit',function(){var t=this;if(!e(this).hasClass('rc-ua-tracked-item')){var a=function(){e(t).addClass('rc-ua-tracked-item');e('.form-submit',t).click()};Drupal.rc_ua.trackAddtoCartFunc(c,e(this),a)}})});e('[data-rc-ua-ecommerce-click-addtocart]:not([data-rc-ua-ecommerce-click-addtocart=""])',t).once('rc_ua_trackClickAddToCart',function(){c=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-click-addtocart'));e(this).on('click',function(){var t=this;if(!e(this).hasClass('rc-ua-tracked-item')){var a=function(){e(t).addClass('rc-ua-tracked-item');e(t).click()};Drupal.rc_ua.trackAddtoCartFunc(c,e(this),a)}})});e('[data-rc-ua-ecommerce-addtocart]:not([data-rc-ua-ecommerce-addtocart=""])',t).once('rc_ua_trackAddToCart',function(){c=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-addtocart'));Drupal.rc_ua.trackAddtoCartFunc(c,e(this))})},trackCheckoutSteps:function(t,c){var a,r,o;e('[data-rc-ua-ecommerce-submit-checkoutsteps]:not([data-rc-ua-ecommerce-submit-checkoutsteps=""])',t).once('rc_ua_trackSubmitCheckoutSteps',function(){e(this).submit(function(t){var c=this;if(!e(this).hasClass('rc-ua-tracked-item')){o=function(){e(c).addClass('rc-ua-tracked-item');e('.form-submit',c).last().trigger('click')};a=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-submit-checkoutsteps'));r={'event':'rc.ecom.checkout','ecommerce':{'checkout':{'actionField':{'step':a.step},'products':[a.product]}}};Drupal.rc_ua.trackCheckoutStepFunc(a,r,o)}})});e('[data-rc-ua-ecommerce-click-checkoutsteps]:not([data-rc-ua-ecommerce-click-checkoutsteps=""])',t).once('rc_ua_trackClickCheckoutSteps',function(){a=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-click-checkoutsteps'));r={'event':'rc.ecom.checkout','ecommerce':{'checkout':{'actionField':{'step':a.step},'products':[a.product]}}};e(this).on('click',function(){Drupal.rc_ua.trackCheckoutStepFunc(a,r)})});e('[data-rc-ua-ecommerce-checkoutsteps]:not([data-rc-ua-ecommerce-checkoutsteps=""])',t).once('rc_ua_trackCheckoutSteps',function(){a=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-checkoutsteps'));r={'event':'rc.ecom.checkout','ecommerce':{'checkout':{'actionField':{'step':a.step},'products':[a.product]}}};Drupal.rc_ua.trackCheckoutStepFunc(a,r)})},attach:function(e,t){if(Drupal.settings.rc_ua.rc_ua_tracking_method=='ua'&&typeof ga!='undefined'){ga('require','ec')}
234
235else if(Drupal.settings.rc_ua.rc_ua_tracking_method=='tm'){if(typeof(window[Drupal.settings.rc_ua.rc_ua_tm_datalayer])=='undefined'){return}}
236else if(Drupal.settings.rc_ua.rc_ua_tracking_method!='tm'){return};this.initProductClicks(e,t);this.initProductLists(e,t);this.trackProductImpressions(e,t);this.trackProductDetails(e,t);this.trackAddToCart(e,t);this.trackCheckoutSteps(e,t)}}})(jQuery);;/*})'"*/
237(function(t){var d=function(){var t=window.navigator.userAgent,e=t.indexOf('MSIE ');if(e>0){return parseInt(t.substring(e+5,t.indexOf('.',e)),10)};var i=t.indexOf('Trident/');if(i>0){var r=t.indexOf('rv:');return parseInt(t.substring(r+3,t.indexOf('.',r)),10)};var n=t.indexOf('Edge/');if(n>0){return parseInt(t.substring(n+5,t.indexOf('.',n)),10)};return!1},o=!0,e=(typeof IntersectionObserver=='undefined'||d())?undefined:new IntersectionObserver(function(t){for(ind in t){if(t[ind].isIntersecting){a(t[ind].target);e.unobserve(t[ind].target)}}},{rootMargin:'80px 0px 80px 0px'});var n=(typeof IntersectionObserver=='undefined'||d())?undefined:new IntersectionObserver(function(t){for(ind in t){if(t[ind].isIntersecting){i(t[ind].target);n.unobserve(t[ind].target)}}},{rootMargin:'80px 0px 80px 0px'});var a=function(n){var r=t(n),e;if(o){s(r)}
238else{e=r.attr('data-srcset');if(e){e='srcset="'+e+'" '};t('<img src="'+r.attr('data-src')+'" '+e+'/>').on('load',function(){s(r)})}};function s(t){var e=t.attr('data-src'),n=t.attr('data-srcset');t.attr('src',e);t.addClass('bto-lazy-loaded');if(n){t.attr('srcset',n)}};var r=function(r){t('img[data-src].bto-lazy',r).once('btoLazyLoad',function(){if(typeof e!='undefined'){e.observe(this)}
239else{a(this)}});t('div.bto-lazy-jump',r).once('btoLazyLoad',function(){if(typeof n!='undefined'){n.observe(this)}
240else{i(this)}})},i=function(n){t.get(t(n).attr('data-bto-jump-select'),function(e){var r=t(e);t(r).addClass('bto-lazy-loaded');t(n).replaceWith(r);Drupal.attachBehaviors(r,Drupal.settings)})};Drupal.behaviors.btoLazyLoad={attach:function(t){r(t)}};r(document);t(document).ready(function(){o=!1})})(jQuery);;/*})'"*/
vendor: 61,973 bytes, lines 240-242
240
241/*! Select2 4.0.0 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return u.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=s.map,p=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(n=n.slice(0,n.length-1),a=a.split("/"),g=a.length-1,s.nodeIdCompat&&w.test(a[g])&&(a[g]=a[g].replace(w,"")),a=n.concat(a),k=0;k<a.length;k+=1)if(m=a[k],"."===m)a.splice(k,1),k-=1;else if(".."===m){if(1===k&&(".."===a[2]||".."===a[0]))break;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else 0===a.indexOf("./")&&(a=a.substring(2));if((n||p)&&o){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),n)for(l=n.length;l>0;l-=1)if(e=o[n.slice(0,l).join("/")],e&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&p&&p[d]&&(i=p[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){return n.apply(b,v.call(arguments,0).concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){q[a]=b}}function j(a){if(e(r,a)){var c=r[a];delete r[a],t[a]=!0,m.apply(b,c)}if(!e(q,a)&&!e(t,a))throw new Error("No "+a);return q[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return function(){return s&&s.config&&s.config[a]||{}}}var m,n,o,p,q={},r={},s={},t={},u=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;o=function(a,b){var c,d=k(a),e=d[0];return a=d[1],e&&(e=f(e,b),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(b)):f(a,b):(a=f(a,b),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},p={require:function(a){return g(a)},exports:function(a){var b=q[a];return"undefined"!=typeof b?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:l(a)}}},m=function(a,c,d,f){var h,k,l,m,n,s,u=[],v=typeof d;if(f=f||a,"undefined"===v||"function"===v){for(c=!c.length&&d.length?["require","exports","module"]:c,n=0;n<c.length;n+=1)if(m=o(c[n],f),k=m.f,"require"===k)u[n]=p.require(a);else if("exports"===k)u[n]=p.exports(a),s=!0;else if("module"===k)h=u[n]=p.module(a);else if(e(q,k)||e(r,k)||e(t,k))u[n]=j(k);else{if(!m.p)throw new Error(a+" missing "+k);m.p.load(m.n,g(f,!0),i(k),{}),u[n]=q[k]}l=d?d.apply(q[a],u):void 0,a&&(h&&h.exports!==b&&h.exports!==q[a]?q[a]=h.exports:l===b&&s||(q[a]=l))}else a&&(q[a]=d)},a=c=n=function(a,c,d,e,f){if("string"==typeof a)return p[a]?p[a](c):j(o(a,c).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?m(b,a,c,d):setTimeout(function(){m(b,a,c,d)},4),n},n.config=function(a){return n(a)},a._defined=q,d=function(a,b,c){b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){var e=b[d];"function"==typeof e&&"constructor"!==d&&c.push(d)}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){var a=Array.prototype.unshift;return a.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};return d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice;this.listeners=this.listeners||{},a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;d>c;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(var b="",c=0;a>c;c++){var d=Math.floor(36*Math.random());b+=d.toString(36)}return b},c.bind=function(a,b){return function(){a.apply(b,arguments)}},c._convertData=function(a){for(var b in a){var c=b.split("-"),d=a;if(1!==c.length){for(var e=0;e<c.length;e++){var f=c[e];f=f.substring(0,1).toLowerCase()+f.substring(1),f in d||(d[f]={}),e==c.length-1&&(d[f]=a[b]),d=d[f]}delete a[b]}}return a},c.hasScroll=function(b,c){var d=a(c),e=c.style.overflowX,f=c.style.overflowY;return e!==f||"hidden"!==f&&"visible"!==f?"scroll"===e||"scroll"===f?!0:d.innerHeight()<c.scrollHeight||d.innerWidth()<c.scrollWidth:!1},c.escapeMarkup=function(a){var b={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('<li role="treeitem" class="select2-results__option"></li>'),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),this.$results.append(d)},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c<a.results.length;c++){var d=a.results[c],e=this.option(d);b.push(e)}this.$results.append(b)},c.prototype.position=function(a,b){var c=b.find(".select2-results");c.append(a)},c.prototype.sort=function(a){var b=this.options.get("sorter");return b(a)},c.prototype.setClasses=function(){var b=this;this.data.current(function(c){var d=a.map(c,function(a){return a.id.toString()}),e=b.$results.find(".select2-results__option[aria-selected]");e.each(function(){var b=a(this),c=a.data(this,"data"),e=""+c.id;null!=c.element&&c.element.selected||null==c.element&&a.inArray(e,d)>-1?b.attr("aria-selected","true"):b.attr("aria-selected","false")});var f=e.filter("[aria-selected=true]");f.length>0?f.first().trigger("mouseenter"):e.first().trigger("mouseenter")})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(b){var c=document.createElement("li");c.className="select2-results__option";var d={role:"treeitem","aria-selected":"false"};b.disabled&&(delete d["aria-selected"],d["aria-disabled"]="true"),null==b.id&&delete d["aria-selected"],null!=b._resultId&&(c.id=b._resultId),b.title&&(c.title=b.title),b.children&&(d.role="group",d["aria-label"]=b.text,delete d["aria-selected"]);for(var e in d){var f=d[e];c.setAttribute(e,f)}if(b.children){var g=a(c),h=document.createElement("strong");h.className="select2-results__group";{a(h)}this.template(b,h);for(var i=[],j=0;j<b.children.length;j++){var k=b.children[j],l=this.option(k);i.push(l)}var m=a("<ul></ul>",{"class":"select2-results__options select2-results__options--nested"});m.append(i),g.append(h),g.append(m)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b){var c=this,d=b.id+"-results";this.$results.attr("id",d),b.on("results:all",function(a){c.clear(),c.append(a.data),b.isOpen()&&c.setClasses()}),b.on("results:append",function(a){c.append(a.data),b.isOpen()&&c.setClasses()}),b.on("query",function(a){c.showLoading(a)}),b.on("select",function(){b.isOpen()&&c.setClasses()}),b.on("unselect",function(){b.isOpen()&&c.setClasses()}),b.on("open",function(){c.$results.attr("aria-expanded","true"),c.$results.attr("aria-hidden","false"),c.setClasses(),c.ensureHighlightVisible()}),b.on("close",function(){c.$results.attr("aria-expanded","false"),c.$results.attr("aria-hidden","true"),c.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=c.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=c.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("aria-selected")?c.trigger("close"):c.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=c.getHighlightedResults(),b=c.$results.find("[aria-selected]"),d=b.index(a);if(0!==d){var e=d-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=c.$results.offset().top,h=f.offset().top,i=c.$results.scrollTop()+(h-g);0===e?c.$results.scrollTop(0):0>h-g&&c.$results.scrollTop(i)}}),b.on("results:next",function(){var a=c.getHighlightedResults(),b=c.$results.find("[aria-selected]"),d=b.index(a),e=d+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=c.$results.offset().top+c.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=c.$results.scrollTop()+h-g;0===e?c.$results.scrollTop(0):h>g&&c.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),b.on("results:message",function(a){c.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=c.$results.scrollTop(),d=c.$results.get(0).scrollHeight-c.$results.scrollTop()+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&d<=c.$results.height();e?(c.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(c.$results.scrollTop(c.$results.get(0).scrollHeight-c.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(b){var d=a(this),e=d.data("data");return"true"===d.attr("aria-selected")?void(c.options.get("multiple")?c.trigger("unselect",{originalEvent:b,data:e}):c.trigger("close")):void c.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(){var b=a(this).data("data");c.getHighlightedResults().removeClass("select2-results__option--highlighted"),c.trigger("results:focus",{data:b,element:a(this)})})},c.prototype.getHighlightedResults=function(){var a=this.$results.find(".select2-results__option--highlighted");return a},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),2>=c?this.$results.scrollTop(0):(g>this.$results.outerHeight()||0>g)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){var a={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return a}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('<span class="select2-selection" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a){var b=this,d=(a.id+"-container",a.id+"-results");this.container=a,this.$selection.on("focus",function(a){b.trigger("focus",a)}),this.$selection.on("blur",function(a){b.trigger("blur",a)}),this.$selection.on("keydown",function(a){b.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){b.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){b.update(a.data)}),a.on("open",function(){b.$selection.attr("aria-expanded","true"),b.$selection.attr("aria-owns",d),b._attachCloseHandler(a)}),a.on("close",function(){b.$selection.attr("aria-expanded","false"),b.$selection.removeAttr("aria-activedescendant"),b.$selection.removeAttr("aria-owns"),b.$selection.focus(),b._detachCloseHandler(a)}),a.on("enable",function(){b.$selection.attr("tabindex",b._tabindex)}),a.on("disable",function(){b.$selection.attr("tabindex","-1")})},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.select2."+b.id,function(b){var c=a(b.target),d=c.closest(".select2"),e=a(".select2.select2-container--open");e.each(function(){var b=a(this);if(this!=d[0]){var c=b.data("element");c.select2("close")}})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){var c=b.find(".selection");c.append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c){function d(){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),a},d.prototype.bind=function(a){var b=this;d.__super__.bind.apply(this,arguments);var c=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",c),this.$selection.attr("aria-labelledby",c),this.$selection.on("mousedown",function(a){1===a.which&&b.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(){}),this.$selection.on("blur",function(){}),a.on("selection:update",function(a){b.update(a.data)})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a){var b=this.options.get("templateSelection"),c=this.options.get("escapeMarkup");return c(b(a))},d.prototype.selectionContainer=function(){return a("<span></span>")},d.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.display(b),d=this.$selection.find(".select2-selection__rendered");d.empty().append(c),d.prop("title",b.title||b.text)},d}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('<ul class="select2-selection__rendered"></ul>'),a},d.prototype.bind=function(){var b=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){b.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(c){var d=a(this),e=d.parent(),f=e.data("data");b.trigger("unselect",{originalEvent:c,data:f})})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a){var b=this.options.get("templateSelection"),c=this.options.get("escapeMarkup");return c(b(a))},d.prototype.selectionContainer=function(){var b=a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>');return b},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d<a.length;d++){var e=a[d],f=this.display(e),g=this.selectionContainer();g.append(f),g.prop("title",e.title||e.text),g.data("data",e),b.push(g)}var h=this.$selection.find(".select2-selection__rendered");c.appendMany(h,b)}},d}),b.define("select2/selection/placeholder",["../utils"],function(){function a(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}return a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.createPlaceholder=function(a,b){var c=this.selectionContainer();return c.html(this.display(b)),c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),c},a.prototype.update=function(a,b){var c=1==b.length&&b[0].id!=this.placeholder.id,d=b.length>1;if(d||c)return a.call(this,b);this.clear();var e=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(e)},a}),b.define("select2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".select2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e<d.length;e++){var f={data:d[e]};if(this.trigger("unselect",f),f.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle")}}},c.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||(c.which==b.DELETE||c.which==b.BACKSPACE)&&this._handleClear(c)},c.prototype.update=function(b,c){if(b.call(this,c),!(this.$selection.find(".select2-selection__placeholder").length>0||0===c.length)){var d=a('<span class="select2-selection__clear">&times;</span>');d.data("data",c),this.$selection.find(".select2-selection__rendered").prepend(d)}},c}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></li>');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return d},d.prototype.bind=function(a,b,d){var e=this;a.call(this,b,d),b.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus()}),b.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val(""),e.$search.focus()}),b.on("enable",function(){e.$search.prop("disabled",!1)}),b.on("disable",function(){e.$search.prop("disabled",!0)}),this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){e.trigger("blur",a)}),this.$selection.on("keydown",".select2-search--inline",function(a){a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented();var b=a.which;if(b===c.BACKSPACE&&""===e.$search.val()){var d=e.$searchContainer.prev(".select2-selection__choice");if(d.length>0){var f=d.data("data");e.searchRemoveChoice(f),a.preventDefault()}}}),this.$selection.on("input",".select2-search--inline",function(){e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input",".select2-search--inline",function(a){e.handleSearch(a)})},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.trigger("open"),this.$search.val(b.text+" ")},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{var b=this.$search.val().length+1;a=.75*b+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){var a={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return a}),b.define("select2/data/base",["../utils"],function(a){function b(){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),d+=null!=c.id?"-"+c.id.toString():"-"+a.generateChars(4)},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f<a.length;f++){var g=a[f].id;-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("change")}},d.prototype.unselect=function(a){var b=this;if(this.$element.prop("multiple"))return a.selected=!1,c(a.element).is("option")?(a.element.selected=!1,void this.$element.trigger("change")):void this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})},d.prototype.bind=function(a){var b=this;this.container=a,a.on("select",function(a){b.select(a.data)}),a.on("unselect",function(a){b.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){c.removeData(this,"data")})},d.prototype.query=function(a,b){var d=[],e=this,f=this.$element.children();f.each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var b;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void 0!==b.textContent?b.textContent=a.text:b.innerText=a.text),a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);var d=c(b),e=this._normalizeItem(a);return e.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){var b={};
242if(b=c.data(a[0],"data"),null!=b)return b;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(var d=a.children("option"),e=[],f=0;f<d.length;f++){var g=c(d[f]),h=this.item(g);e.push(h)}b.children=e}return b=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){var c=this.options.get("matcher");return c(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=(c.extend(!0,{},l,j),this.option(l));k.replaceWith(m)}else{var n=this.option(j);if(j.children){var o=this.convertToOptions(j.children);b.appendMany(n,o)}h.push(n)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(b,c){this.ajaxOptions=this._applyDefaults(c.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),a.__super__.constructor.call(this,b,c)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return{q:a.term}},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url(a)),"function"==typeof f.data&&(f.data=f.data(a)),this.ajaxOptions.delay&&""!==a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");if(void 0!==f&&(this.createTag=f),b.call(this,c,d),a.isArray(e))for(var g=0;g<e.length;g++){var h=e[g],i=this._normalizeItem(h),j=this.option(i);this.$element.append(j)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0),k=i.text===b.term;if(k||j)return f?!1:(a.data=g,void c(a))}if(f)return!0;var l=e.createTag(b);if(null!=l){var m=e.option(l);m.attr("data-select2-tag",!0),e.addOptions([m]),e.insertTag(g,l)}a.results=g,c(a)}var e=this;return this._removeOldTags(),null==b.term||null!=b.page?void a.call(this,b,c):void a.call(this,b,d)},b.prototype.createTag=function(b,c){var d=a.trim(c.term);return""===d?null:{id:d,text:d}},b.prototype.insertTag=function(a,b,c){b.unshift(c)},b.prototype._removeOldTags=function(){var b=(this._lastTag,this.$element.find("option[data-select2-tag]"));b.each(function(){this.selected||a(this).remove()})},b}),b.define("select2/data/tokenizer",["jquery"],function(a){function b(a,b,c){var d=c.get("tokenizer");void 0!==d&&(this.tokenizer=d),a.call(this,b,c)}return b.prototype.bind=function(a,b,c){a.call(this,b,c),this.$search=b.dropdown.$search||b.selection.$search||c.find(".select2-search__field")},b.prototype.query=function(a,b,c){function d(a){e.select(a)}var e=this;b.term=b.term||"";var f=this.tokenizer(b,this.options,d);f.term!==b.term&&(this.$search.length&&(this.$search.val(f.term),this.$search.focus()),b.term=f.term),a.call(this,b,c)},b.prototype.tokenizer=function(b,c,d,e){for(var f=d.get("tokenSeparators")||[],g=c.term,h=0,i=this.createTag||function(a){return{id:a.term,text:a.term}};h<g.length;){var j=g[h];if(-1!==a.inArray(j,f)){var k=g.substr(0,h),l=a.extend({},c,{term:k}),m=i(l);e(m),g=g.substr(h+1)||"",h=0}else h++}return{term:g}},b}),b.define("select2/data/minimumInputLength",[],function(){function a(a,b,c){this.minimumInputLength=c.get("minimumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",b.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumInputLength",[],function(){function a(a,b,c){this.maximumInputLength=c.get("maximumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",this.maximumInputLength>0&&b.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;return d.maximumSelectionLength>0&&f>=d.maximumSelectionLength?void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}}):void a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<span class="select2-dropdown"><span class="select2-results"></span></span>');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.position=function(){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a){function b(){}return b.prototype.render=function(b){var c=b.call(this),d=a('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val("")}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){var b=e.showSearch(a);b?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}})},b.prototype.handleSearch=function(){if(!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},b.prototype.showSearch=function(){return!0},b}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){var c=e.$results.offset().top+e.$results.outerHeight(!1),d=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1);c+50>=d&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('<li class="option load-more" role="treeitem"></li>'),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(a,b,c){this.$dropdownParent=c.get("dropdownParent")||document.body,a.call(this,b,c)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a("<span></span>"),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c){var d=this,e="scroll.select2."+c.id,f="resize.select2."+c.id,g="orientationchange.select2."+c.id,h=this.$container.parents().filter(b.hasScroll);h.each(function(){a(this).data("select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),h.on(e,function(){var b=a(this).data("select2-scroll-position");a(this).scrollTop(b.y)}),a(window).on(e+" "+f+" "+g,function(){d._positionDropdown(),d._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c){var d="scroll.select2."+c.id,e="resize.select2."+c.id,f="orientationchange.select2."+c.id,g=this.$container.parents().filter(b.hasScroll);g.off(d),a(window).off(d+" "+e+" "+f)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=(this.$container.position(),this.$container.offset());f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.top<f.top-h.height,k=i.bottom>f.bottom+h.height,l={left:f.left,top:g.bottom};c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){this.$dropdownContainer.width();var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d<b.length;d++){var e=b[d];e.children?c+=a(e.children):c++}return c}function b(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return b.prototype.showSearch=function(b,c){return a(c.data.results)<this.minimumResultsForSearch?!1:b.call(this,c)},b}),b.define("select2/dropdown/selectOnClose",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(){d._handleSelectOnClose()})},a.prototype._handleSelectOnClose=function(){var a=this.getHighlightedResults();a.length<1||this.trigger("select",{data:a.data("data")})},a}),b.define("select2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(a){d._selectTriggered(a)}),b.on("unselect",function(a){d._selectTriggered(a)})},a.prototype._selectTriggered=function(a,b){var c=b.originalEvent;c&&c.ctrlKey||this.trigger("close")},a}),b.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var b=a.input.length-a.maximum,c="Please delete "+b+" character";return 1!=b&&(c+="s"),c},inputTooShort:function(a){var b=a.minimum-a.input.length,c="Please enter "+b+" or more characters";return c},loadingMore:function(){return"Loading more results…"},maximumSelected:function(a){var b="You can only select "+a.maximum+" item";return 1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),b.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C){function D(){this.reset()}D.prototype.apply=function(l){if(l=a.extend({},this.defaults,l),null==l.dataAdapter){if(l.dataAdapter=null!=l.ajax?o:null!=l.data?n:m,l.minimumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),(null!=l.tokenSeparators||null!=l.tokenizer)&&(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.selectionAdapter=l.multiple?e:d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L<K.length;L++){var M=K[L],N={};try{N=k.loadPath(M)}catch(O){try{M=this.defaults.amdLanguageBase+M,N=k.loadPath(M)}catch(P){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}J.extend(N)}l.translations=J}else{var Q=k.loadPath(this.defaults.amdLanguageBase+"en"),R=new k(l.language);R.extend(Q),l.translations=R}return l},D.prototype.reset=function(){function b(a){function b(a){return l[a]||a}return a.replace(/[^\u0000-\u007E]/g,b)}function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&e.children.length>0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){var h=e.children[g],i=c(d,h);null==i&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var j=b(e.text).toUpperCase(),k=b(d.term).toUpperCase();return j.indexOf(k)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)};var E=new D;return E}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(this.options.dir=a.prop("dir")?a.prop("dir"):a.closest("[dir]").prop("dir")?a.closest("[dir]").prop("dir"):"ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),a.data("data",a.data("select2Tags")),a.data("tags",!0)),a.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return 0>=e?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;i>h;h+=1){var j=g[h].replace(/\s/g,""),k=j.match(c);if(null!==k&&k.length>=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this._sync=c.bind(this._syncAttributes,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._sync);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._sync)}),this._observer.observe(this.$element[0],{attributes:!0,subtree:!1})):this.$element[0].addEventListener&&this.$element[0].addEventListener("DOMAttrModified",b._sync,!1)},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("focus",function(){a.$container.addClass("select2-container--focus")}),this.on("blur",function(){a.$container.removeClass("select2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open"),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ENTER?(a.trigger("results:select"),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle"),b.preventDefault()):c===d.UP?(a.trigger("results:previous"),b.preventDefault()):c===d.DOWN?(a.trigger("results:next"),b.preventDefault()):(c===d.ESC||c===d.TAB)&&(a.close(),b.preventDefault()):(c===d.ENTER||c===d.SPACE||(c===d.DOWN||c===d.UP)&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable")):this.trigger("enable")},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||(this.trigger("query",{}),this.trigger("open"))},e.prototype.close=function(){this.isOpen()&&this.trigger("close")},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==a||0===a.length)&&(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._sync),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&this.$element[0].removeEventListener("DOMAttrModified",this._sync,!1),this._sync=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},e.prototype.render=function(){var b=a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("
242jquery.select2",["jquery","require","./select2/core","./select2/defaults"],function(a,b,c,d){if(b("jquery.mousewheel"),null==a.fn.select2){var e=["open","close","destroy"];a.fn.select2=function(b){if(b=b||{},"object"==typeof b)return this.each(function(){{var d=a.extend({},b,!0);new c(a(this),d)}}),this;if("string"==typeof b){var d=this.data("select2");null==d&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2.");var f=Array.prototype.slice.call(arguments,1),g=d[b](f);return a.inArray(b,e)>-1?this:g}throw new Error("Invalid arguments for Select2: "+b)}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),b.define("jquery.mousewheel",["jquery"],function(a){return a}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c});
243;/*})'"*/
244;/*})'"*/
245(function(r){Drupal.progressBar=function(t,e,i,s){var a=this;this.id=t;this.method=i||'GET';this.updateCallback=e;this.errorCallback=s;this.element=r('<div class="progress" aria-live="polite"></div>').attr('id',t);this.element.html('<div class="bar"><div class="filled"></div></div><div class="percentage"></div><div class="message">&nbsp;</div>')};Drupal.progressBar.prototype.setProgress=function(t,e){if(t>=0&&t<=100){r('div.filled',this.element).css('width',t+'%');r('div.percentage',this.element).html(t+'%')};r('div.message',this.element).html(e);if(this.updateCallback){this.updateCallback(t,e,this)}};Drupal.progressBar.prototype.startMonitoring=function(r,t){this.delay=t;this.uri=r;this.sendPing()};Drupal.progressBar.prototype.stopMonitoring=function(){clearTimeout(this.timer);this.uri=null};Drupal.progressBar.prototype.sendPing=function(){if(this.timer){clearTimeout(this.timer)};if(this.uri){var t=this;r.ajax({type:this.method,url:this.uri,data:'',dataType:'json',success:function(r){if(r.status==0){t.displayError(r.data);return};t.setProgress(r.percentage,r.message);t.timer=setTimeout(function(){t.sendPing()},t.delay)},error:function(r){t.displayError(Drupal.ajaxError(r,t.uri))}})}};Drupal.progressBar.prototype.displayError=function(t){var e=r('<div class="messages error"></div>').html(t);r(this.element).before(e).hide();if(this.errorCallback){this.errorCallback(this)}}})(jQuery);;/*})'"*/
246(function(o){Drupal.behaviors.CToolsJumpMenu={attach:function(e){o('.ctools-jump-menu-hide').once('ctools-jump-menu').hide();o('.ctools-jump-menu-change').once('ctools-jump-menu').change(function(){var e=o(this).val(),n=e.split('::');if(n[1]){location.href=n[1]}
247else{location.href=e};return!1});o('.ctools-jump-menu-button').once('ctools-jump-menu').click(function(){var t=o(this).parents('form').find('.ctools-jump-menu-select'),e=t.val(),n=e.split('::');if(n[1]){location.href=n[1]}
248else{location.href=e};return!1})}}})(jQuery);;/*})'"*/
249riot.tag2('rc-riot-order', '<div class="tag-content"> <div if="{order}" class="order"> <a if="{opts.mode==\'widget\'}" class="totals trigger" onclick="{triggerClicked}"><i class="fi-shopping-bag"> </i> <span if="{opts.txt.order_label}" class="service-label">{opts.txt.order_label}</span><span class="price sub-total" if="{opts.txt.subtot && (order.tot || order.litot)}">{(order.tot ||                 order.litot).toLocaleString(\'en\', {minimumFractionDigits: 0, maximumFractionDigits: 0, style:                 \'currency\', currency: \'USD\' })} </span><span if="{order.lict> 0}" class="vrweb-collection-block-count">{order.lict}</span></a> <div if="{opts.mode==\'detail\'}" class="order-detail" id="order-detail"> <div class="line-items" if="{order.lis}"> <h5>{opts.txt.summary}</h5> <div class="line-item rc-price" each="{ind, price in order.lis}"> <div if="{typeof parent.docs[price.eid] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.image] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.link] != \'undefined\'}" class="teaser-img"> <a href="{parent.docs[price.eid][parent.opts.link] + \'#\' + jQuery.param({rcav: JSON.stringify(price.qp) })}"><img riot-src="{parent.docs[price.eid][parent.opts.image]}"></a> </div> <div if="{typeof parent.docs[price.eid] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.image] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.link] == \'undefined\'}" class="teaser-img"> <img riot-src="{parent.docs[price.eid][parent.opts.image]}"> </div> <div class="group-summary"> <div if="{price.n != \'\' && typeof parent.docs[price.eid] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.link] != \'undefined\'}" class="name"> <a href="{parent.docs[price.eid][parent.opts.link] + \'#\' + jQuery.param({rcav: JSON.stringify(price.qp) })}">{price.n}</a> </div> <div if="{price.n != \'\' && typeof parent.docs[price.eid] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.link] == \'undefined\'}" class="name"> {price.n} </div> <div class="dates"> <span class="dates" if="{price.bt != price.et}">{parent.RCRiotUtils.formatTimestamp(price.bt)} - {parent.RCRiotUtils.formatTimestamp(price.et, {year: \'numeric\'})}</span> <span class="dates" if="{price.bt == price.et}">{parent.RCRiotUtils.formatTimestamp(price.bt, {year: \'numeric\'})}</span> </div> <span if="{price.dn != \'\'}" class="display-name">{price.dn}</span> <span if="{price.dd != \'\'}" class="display-detail">{price.dd}</span> <span class="trav-wrap"> <span if="{price.qp.rcav.adult > 0}" class="trav adult">{price.qp.rcav.adult} {price.qp.rcav.adult == 1 ? \'Adult\' : \'Adults\'}</span> <span if="{price.qp.rcav.child > 0}" class="trav child">{price.qp.rcav.child} {price.qp.rcav.child == 1 ? \'Child\' : \'Children\'}</span> </span> </div> <div class="details"> <div class="price"> <span if="{!price.force_call_to_book && price.p != \'\'}" class="price">{parent.RCRiotUtils.formatPrice(price, 2)}</span> <button if="{!price.force_call_to_book && parent.opts.txt.buy}" data-ind="{ind}" onclick="{parent.buyClick}">{parent.opts.txt.buy}</button> <button if="{!price.force_call_to_book && parent.opts.txt.quote}" data-price="{price}" onclick="{parent.quoteClicked}" class="quote">{parent.opts.txt.quote}</button> <span if="{price.force_call_to_book}" class="display-name call-to-book force-call-to-book"> <a href="tel: {force_call_to_book_phone} "> <span class="text"> {force_call_to_book_text} </span> <span class="text-extra"> {force_call_to_book_text_extra} </span> </a> </span> </div> </div> <div class="actions"> <button class="remove" data-ind="{ind}" onclick="{parent.removeClick}
249"> Remove </button> </div> </div> </div> <div if="{activities}" class="activities"> <h5>{opts.txt.activities}</h5> <rc-riot-activity-pane each="{ind, act in activities}" category="{act}" form_settings="{parent.form_settings}" trigger_text="+ {act.n}" combine="{true}"></rc-riot-activity-pane> </div> <div class="totals" if="{(order.tot> 0 || order.litot > 0) && opts.txt.subtot}">{opts.txt.subtot} <div class="total-price">{(order.tot || order.litot).toLocaleString(\'en\', {minimumFractionDigits: 2,                     maximumFractionDigits: 2, style: \'currency\', currency: \'USD\' })} <sup>{opts.txt.subtotann}</sup> </div> </div> <div class="actions bottom" if="{order.tot> 0 || order.litot > 0}"> <button if="{opts.txt.checkout}" class="checkout" onclick="{doOrderCheckout}">{opts.txt.checkout}</button> <subtag each="{_if(sharechild)}" tag="rc-riot-share-order" options="{parent.sharechild.options}"> </subtag> </div> <div class="actions accom"> <button class="search-accom" onclick="{searchAccom}"> <i> <?xml version="1.0" encoding="utf-8"?> <svg version="1.1" id="search-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewbox="0 0 80.5 84.8" style="enable-background:new 0 0 80.5 84.8;" xml:space="preserve" preserveaspectratio="xMinYMid"> <path class="st0" d="M3,33.4c0,8.1,3.2,15.8,8.9,21.5s13.4,8.9,21.5,8.9c5,0,9.7-1.2,14-3.4l12.7,13.7c1.6,1.7,3.7,2.6,5.9,2.6 c2,0,4-0.7,5.5-2.1c3.2-3,3.4-8,0.4-11.3L59.1,49.6c3.1-4.8,4.7-10.4,4.7-16.2c0-8.1-3.2-15.8-8.9-21.5S41.5,3,33.4,3 s-15.8,3.2-21.5,8.9C6.1,17.7,3,25.3,3,33.4z M18.7,18.8c3.9-3.9,9.2-6.1,14.7-6.1s10.8,2.2,14.7,6.1c8.1,8.1,8.1,21.3,0,29.4 c-3.9,3.9-9.2,6.1-14.7,6.1c-5.5,0-10.8-2.2-14.7-6.1C10.6,40,10.6,26.8,18.7,18.8z"></path> </svg> </i>{opts.txt.search_accom} <span id="search-link-arrow"> <?xml version="1.0" encoding="utf-8"?> <svg version="1.1" id="link-arrow" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewbox="-272 381.7 30.3 50.8" style="enable-background:new -272 381.7 30.3 50.8;" xml:space="preserve" preserveaspectratio="xMaxYMid"> <g> <path class="st0" d="M-263.6,431.1l20.4-20.4c0,0,0.1,0,0.1-0.1c1-1,1.4-2.2,1.4-3.5c0-1.3-0.5-2.5-1.4-3.5c0,0-0.1,0-0.1-0.1 l-20.4-20.4c-1.9-1.9-5.1-1.9-7,0s-1.9,5.1,0,7l17,17l-17,17c-1.9,1.9-1.9,5.1,0,7C-268.6,433-265.5,433-263.6,431.1z"></path> </g> </svg> </span></button> </div> </div> </div> </div>', '.st0 { fill: #1b76de; } .st0 { fill: #1B76DE; } .st0{fill:#1b76de;} .st0{fill:#1B76DE;} @-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-moz-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-o-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } rc-riot-order,[riot-tag="rc-riot-order"],[data-is="rc-riot-order"]{ display: block; } rc-riot-order .order-detail .md-content,[riot-tag="rc-riot-order"] .order-detail .md-content,[data-is="rc-riot-order"] .order-detail .md-content{ padding-bottom: 50px; } rc-riot-order .actions.accom,[riot-tag="rc-riot-order"] .actions.accom,[data-is="rc-riot-order"] .actions.accom{ padding-top: 10px; } rc-riot-order .search-accom,[riot-tag="rc-riot-order"] .search-accom,[data-is="rc-riot-order"] .search-accom{ background: none; border-radius: none; display: block; color: #ff1e00; position: absolute; margin: auto; top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: 50px; border-radius: 0; text-align: left; border-top: solid 1px #ff1e00; } rc-riot-order .search-accom #search-link-arrow,[riot-tag="rc-riot-order"] .search-accom #search-link-arrow,[data-is="rc-riot-order"] .search-accom #search-link-arrow{ display: inline-block; width: 10px; height: 12px; position: absolute; bottom: 20px; right: 15px; transition: right .15s ease-out; } rc-riot-order .search-accom #search-link-arrow #link-arrow,[riot-tag="rc-riot-order"] .search-accom #search-link-arrow #link-arrow,[data-is="rc-riot-order"] .search-accom #search-link-arrow #link-arrow{ height: 12px; } rc-riot-order .search-accom:hover,[riot-tag="rc-riot-order"] .search-accom:hover,[data-is="rc-riot-order"] .search-accom:hover,rc-riot-order .search-accom:active,[riot-tag="rc-riot-order"] .search-accom:active,[data-is="rc-riot-order"] .search-accom:active{ background: none; color: #111; }
249 rc-riot-order .search-accom:hover .search-link-arrow,[riot-tag="rc-riot-order"] .search-accom:hover .search-link-arrow,[data-is="rc-riot-order"] .search-accom:hover .search-link-arrow,rc-riot-order .search-accom:active .search-link-arrow,[riot-tag="rc-riot-order"] .search-accom:active .search-link-arrow,[data-is="rc-riot-order"] .search-accom:active .search-link-arrow{ right: 25px; } rc-riot-order .search-accom i,[riot-tag="rc-riot-order"] .search-accom i,[data-is="rc-riot-order"] .search-accom i{ display: inline-block; width: 15px; height: 18px; margin-bottom: -3px; margin-right: 6px; } rc-riot-order .line-items > h5,[riot-tag="rc-riot-order"] .line-items > h5,[data-is="rc-riot-order"] .line-items > h5{ color: #111; margin-top: -5px; } rc-riot-order .line-items .line-item,[riot-tag="rc-riot-order"] .line-items .line-item,[data-is="rc-riot-order"] .line-items .line-item{ background: #fff; text-align: left; position: relative; padding: 15px 0; border-top: dotted 1px rgba(17, 17, 17, 0.1); } @media only screen and (min-width: 36.5625em) { rc-riot-order .line-items .line-item:after,[riot-tag="rc-riot-order"] .line-items .line-item:after,[data-is="rc-riot-order"] .line-items .line-item:after{ content: \'\'; display: block; width: 0; height: 0; clear: both; } } rc-riot-order .line-items .line-item .name,[riot-tag="rc-riot-order"] .line-items .line-item .name,[data-is="rc-riot-order"] .line-items .line-item .name{ height: auto; color: #111; font-size: 17px; } @media only screen and (min-width: 36.5625em) { rc-riot-order .line-items .line-item .name,[riot-tag="rc-riot-order"] .line-items .line-item .name,[data-is="rc-riot-order"] .line-items .line-item .name{ padding-right: 75px; } } rc-riot-order .line-items .line-item .name a,[riot-tag="rc-riot-order"] .line-items .line-item .name a,[data-is="rc-riot-order"] .line-items .line-item .name a{ text-decoration: underline; color: #111; } rc-riot-order .line-items .line-item .name a:hover,[riot-tag="rc-riot-order"] .line-items .line-item .name a:hover,[data-is="rc-riot-order"] .line-items .line-item .name a:hover,rc-riot-order .line-items .line-item .name a:active,[riot-tag="rc-riot-order"] .line-items .line-item .name a:active,[data-is="rc-riot-order"] .line-items .line-item .name a:active{ text-decoration: none; } rc-riot-order .line-items .line-item .teaser-img,[riot-tag="rc-riot-order"] .line-items .line-item .teaser-img,[data-is="rc-riot-order"] .line-items .line-item .teaser-img{ width: 100%; background-size: auto 30px; padding: 0; } @media only screen and (min-width: 36.5625em) { rc-riot-order .line-items .line-item .teaser-img,[riot-tag="rc-riot-order"] .line-items .line-item .teaser-img,[data-is="rc-riot-order"] .line-items .line-item .teaser-img{ width: 33.33333%; float: left; padding-left: 15px; padding-right: 15px; position: relative; padding-left: 0; padding-right: 0; } } rc-riot-order .line-items .line-item span.trav-wrap,[riot-tag="rc-riot-order"] .line-items .line-item span.trav-wrap,[data-is="rc-riot-order"] .line-items .line-item span.trav-wrap,rc-riot-order .line-items .line-item div.dates,[riot-tag="rc-riot-order"] .line-items .line-item div.dates,[data-is="rc-riot-order"] .line-items .line-item div.dates{ font-size: 14px; } rc-riot-order .line-items .line-item .actions button,[riot-tag="rc-riot-order"] .line-items .line-item .actions button,[data-is="rc-riot-order"] .line-items .line-item .actions button{ position: absolute; top: 20px; right: 5px; display: block; width: 70px; height: 26px; padding: 0; background-size: auto 15px; padding: 0; overflow: hidden; overflow: hidden; font-size: 11px; text-transform: uppercase; letter-spacing: .075em; border: solid 1px #111; color: #111; background: none; min-height: 0px; background-color: #fff; } rc-riot-order .line-items .line-item .actions button:hover,[riot-tag="rc-riot-order"] .line-items .line-item .actions button:hover,[data-is="rc-riot-order"] .line-items .line-item .actions button:hover,rc-riot-order .line-items .line-item .actions button:active,[riot-tag="rc-riot-order"] .line-items .line-item .actions button:active,[data-is="rc-riot-order"] .line-items .line-item .actions button:active{ background-color: #111; color: #fff; } @media only screen and (min-width: 36.5625em) { rc-riot-order .line-items .line-item .actions button,[riot-tag="rc-riot-order"] .line-items .line-item .actions button,[data-is="rc-riot-order"] .line-items .line-item .actions button{ right: 0px; top: 15px; } } rc-riot-order .line-items .teaser-image,[riot-tag="rc-riot-order"] .line-items .teaser-image,[data-is="rc-riot-order"] .line-items .teaser-image,rc-riot-order .line-items div.dates,[riot-tag="rc-riot-order"] .line-items div.dates,[data-is="rc-riot-order"] .line-items div.dates,rc-riot-order .line-items .name,[riot-tag="rc-riot-order"] .line-items .name,[data-is="rc-riot-order"] .line-items .name,rc-riot-order .line-items div.details,[riot-tag="rc-riot-order"] .line-items div.details,[data-is="rc-riot-order"] .line-items div.details{ color: #111; } @media only screen and (min-width: 36.5625em) { rc-riot-order .line-items .teaser-image,[riot-tag="rc-riot-order"] .line-items .teaser-image,[data-is="rc-riot-order"] .line-items .teaser-image,rc-riot-order .line-items div.dates,[riot-tag="rc-riot-order"] .line-items div.dates,[data-is="rc-riot-order"] .line-items div.dates,rc-riot-order .line-items .name,[riot-tag="rc-riot-order"] .line-items .name,[data-is="rc-riot-order"] .line-items .name,rc-riot-order .line-items div.details,[riot-tag="rc-riot-order"] .line-items div.details,[data-is="rc-riot-order"] .line-items div.details{ width: 66.66667%; float: left; padding-left: 15px; padding-right: 15px; position: relative; float: right; clear: right; } } rc-riot-order .line-items .teaser-image div.price span.price,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price span.price,[data-is="rc-riot-order"] .line-items .teaser-image div.price span.price,rc-riot-order .line-items div.dates div.price span.price,[riot-tag="rc-riot-order"] .line-items div.dates div.price span.price,[data-is="rc-riot-order"] .line-items div.dates div.price span.price,rc-riot-order .line-items .name div.price span.price,[riot-tag="rc-riot-order"] .line-items .name div.price span.price,[data-is="rc-riot-order"] .line-items .name div.price span.price,rc-riot-order .line-items div.details div.price span.price,[riot-tag="rc-riot-order"] .line-items div.details div.price span.price,[data-is="rc-riot-order"] .line-items div.details div.price span.price{ color: #ff1e00; font-size: 18px; font-weight: bold; } rc-riot-order .line-items .teaser-image div.price button,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button,[data-is="rc-riot-order"] .line-items .teaser-image div.price button,rc-riot-order .line-items div.dates div.price button,[riot-tag="rc-riot-order"] .line-items div.dates div.price button,[data-is="rc-riot-order"] .line-items div.dates div.price button,rc-riot-order .line-items .name div.price button,[riot-tag="rc-riot-order"] .line-items .name div.price button,[data-is="rc-riot-order"] .line-items .name div.price button,rc-riot-order .line-items div.details div.price button,[riot-tag="rc-riot-order"] .line-items div.details div.price button,[data-is="rc-riot-order"] .line-items div.details div.price button{ font-size: 13px; text-transform: none; padding: 6px 8px; height: auto; letter-spacing: .03em; margin-bottom: 6px; margin-left: 4px; background: #ff1e00; text-transform: uppercase; min-height: 0; } rc-riot-order .line-items .teaser-image div.price button:hover,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button:hover,[data-is="rc-riot-order"] .line-items .teaser-image div.price button:hover,rc-riot-order .line-items .teaser-image div.price button:active,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button:active,[data-is="rc-riot-order"] .line-items .teaser-image div.price button:active,rc-riot-order .line-items div.dates div.price button:hover,[riot-tag="rc-riot-order"] .line-items div.dates div.price button:hover,[data-is="rc-riot-order"] .line-items div.dates div.price button:hover,rc-riot-order .line-items div.dates div.price button:active,[riot-tag="rc-riot-order"] .line-items div.dates div.price button:active,[data-is="rc-riot-order"] .line-items div.dates div.price button:active,rc-riot-order .line-items .name div.price button:hover,[riot-tag="rc-riot-order"] .line-items .name div.price button:hover,[data-is="rc-riot-order"] .line-items .name div.price button:hover,rc-riot-order .line-items .name div.price button:active,[riot-tag="rc-riot-order"] .line-items .name div.price button:active,[data-is="rc-riot-order"] .line-items .name div.price button:active,rc-riot-order .line-items div.details div.price button:hover,[riot-tag="rc-riot-order"] .line-items div.details div.price button:hover,[data-is="rc-riot-order"] .line-items div.details div.price button:hover,rc-riot-order .line-items div.details div.price button:active,[riot-tag="rc-riot-order"] .line-items div.details div.price button:active,[data-is="rc-riot-order"] .line-items div.details div.price button:active{ background: #111; } rc-riot-order .line-items .teaser-image div.price button.quote,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button.quote,[data-is="rc-riot-order"] .line-items .teaser-image div.price button.quote,rc-riot-order .line-items div.dates div.price button.quote,[riot-tag="rc-riot-order"] .line-items div.dates div.price button.quote,[data-is="rc-riot-order"] .line-items div.dates div.price button.quote,rc-riot-order .line-items .name div.price button.quote,[riot-tag="rc-riot-order"] .line-items .name div.price button.quote,[data-is="rc-riot-order"] .line-items .name div.price button.quote,rc-riot-order .line-items div.details div.price button.quote,[riot-tag="rc-riot-order"] .line-items div.details div.price button.quote,[data-is="rc-riot-order"] .line-items div.details div.price button.quote{ display: inline; background: none; min-height: 0; padding: 0; height: auto; background: none; color: #ff1e00; text-decoration: underline !important; border-radius: 0; text-transform: none; margin: 0; font-weight: 400; display: block; } rc-riot-order .line-items .teaser-image div.price button.quote:hover,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button.quote:hover,[data-is="rc-riot-order"] .line-items .teaser-image div.price button.quote:hover,rc-riot-order .line-items .teaser-image div.price button.quote:active,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button.quote:active,[data-is="rc-riot-order"] .line-items .teaser-image div.price button.quote:active,rc-riot-order .line-items div.dates div.price button.quote:hover,[riot-tag="rc-riot-order"] .line-items div.dates div.price button.quote:hover,[data-is="rc-riot-order"] .line-items div.dates div.price button.quote:hover,rc-riot-order .line-items div.dates div.price button.quote:active,[riot-tag="rc-riot-order"] .line-items div.dates div.price button.quote:active,[data-is="rc-riot-order"] .line-items div.dates div.price button.quote:active,rc-riot-order .line-items .name div.price button.quote:hover,[riot-tag="rc-riot-order"] .line-items .name div.price button.quote:hover,[data-is="rc-riot-order"] .line-items .name div.price button.quote:hover,rc-riot-order .line-items .name div.price button.quote:active,[riot-tag="rc-riot-order"] .line-items .name div.price button.quote:active,[data-is="rc-riot-order"] .line-items .name div.price button.quote:active,rc-riot-order .line-items div.details div.price button.quote:hover,[riot-tag="rc-riot-order"] .line-items div.details div.price button.quote:hover,[data-is="rc-riot-order"] .line-items div.details div.price button.quote:hover,rc-riot-order .line-items div.details div.price button.quote:active,[riot-tag="rc-riot-order"] .line-items div.details div.price button.quote:active,[data-is="rc-riot-order"] .line-items div.details div.price button.quote:active{ background: none; text-decoration: none !important; } rc-riot-order .md-close,[riot-tag="rc-riot-order"] .md-close,[data-is="rc-riot-order"] .md-close{ position: absolute; top: 10px; right: 10px; display: block; width: 30px; height: 30px; background: url("/sites/all/modules/bluetent/riot_solr/images/icon-x-black.svg") center no-repeat; padding: 0; background-size: auto 20px; } rc-riot-order .totals,[riot-tag="rc-riot-order"] .totals,[data-is="rc-riot-order"] .totals{ text-align: center; padding-top: 10px; } rc-riot-order .totals .total-price,[riot-tag="rc-riot-order"] .totals .total-price,[data-is="rc-riot-order"] .totals .total-price{ font-size: 24px; color: #ff1e00; } rc-riot-order .actions.bottom,[riot-tag="rc-riot-order"] .actions.bottom,[data-is="rc-riot-order"] .actions.bottom{ text-align: center; padding-bottom: 10px; } rc-riot-order .actions.bottom button,[riot-tag="rc-riot-order"] .actions.bottom button,[data-is="rc-riot-order"] .actions.bottom button{ background-color: #ff1e00; border-radius: 3px; color: #fff; display: inline-block; text-align: center; border: none; transition-property: background-color, color; transition-timing-function: ease-in-out; transition-duration: .15s; letter-spacing: .03em; font-family: "Helvetica", Helvetica, "Arial", Arial, sans-serif; line-height: 1.3 !important; padding: 10px 12px; font-size: 15px; min-height: 38px; width: auto; font-size: 14px; text-transform: none; padding: 7px 10px; height: auto; letter-spacing: .03em; } rc-riot-order .actions.bottom button:hover,[riot-tag="rc-riot-order"] .actions.bottom button:hover,[data-is="rc-riot-order"] .actions.bottom button:hover,rc-riot-order .actions.bottom button:active,[riot-tag="rc-riot-order"] .actions.bottom button:active,[data-is="rc-riot-order"] .actions.bottom button:active{ background-color: #db1a00; } @media only screen and (min-width: 48em) { rc-riot-order .actions.bottom button,[riot-tag="rc-riot-order"] .actions.bottom button,[data-is="rc-riot-order"] .actions.bottom button{ font-size: 16px; } } .reveal-modal rc-riot-order,.reveal-modal [riot-tag="rc-riot-order"],.reveal-modal [data-is="rc-riot-order"]{ display: block; margin-bottom: 35px; } rc-riot-order .service-label,[riot-tag="rc-riot-order"] .service-label,[data-is="rc-riot-order"] .service-label{ margin-left: .3; }', 'class="mode-{opts.mode}"', function(opts) {
250(function($, tag, Drupal) {
251    tag.on('mount', function(e) {
252
253        tag.force_call_to_book_phone = Drupal?.settings?.vrfusion_site?.force_call_to_book_phone || "555-123-4567";
254        tag.force_call_to_book_text = Drupal?.settings?.vrfusion_site?.force_call_to_book_text || "Call to book";
255        tag.force_call_to_book_text_extra = Drupal?.settings?.vrfusion_site?.force_call_to_book_text_extra || "(Must Book By 4PM)";
256      });
257    })(jQuery, this, Drupal);
258
259        this.mixin('RiotSolrConnection');
260        this.mixin('RiotSolrItemsContainer');
261        this.mixin('RCRiotOrder');
262        this.mixin('RCRiotAvailPricing');
263        this.mixin('RCRiotUtils');
264        this.mixin('RiotTagsChildren');
265        if(typeof RCAddonProvider !== 'undefined') {
266            this.mixin('RCAddonProvider');
267        }
268        this.classes = {
269            'tag-content': true,
270        };
271        (function($, tag) {
272            var pcFunc = tag.processChildren;
273            tag.docs = {};
274            tag.activities = null;
275            tag.orderdocs = {};
276            tag.classes['mode-' + opts.mode] = true;
277            tag.on('update', function() {
278                tag.order = tag.getOrderData();
279            });
280            tag.RCRiotOrder.on('OrderUpdated', function(order) {
281                tag.update();
282            });
283            tag.removeClick = function(e) {
284                tag.removeOrderLineItem(e.item.ind);
285            };
286            tag.buyClick = function(e) {
287                tag.buyOrderLineItem(e.item.ind);
288            };
289            tag.searchAccom = function(e) {
290                tag.doOrderSearch(opts.search_accom_path);
291            };
292            tag.loadShortUrl = function() {
293                tag.getShortUrl().done(function(url) {
294                    tag.orderShortUrl = url;
295                    tag.update();
296                });
297            };
298            tag.fetchOrderDocs = function() {
299                var od = tag.getOrderData(), p = $.Deferred();
300                var pks = [],
301                    self = this;
302                for(ind in od.lis) {
303                    pks.push(od.lis[ind].eid);
304                }
305
306                return tag.RiotSolrManager.getDocumentsByKeys(pks);
307            };
308            tag.triggerClicked = function(e) {
309              var tag = 'rc-riot-order',
310                options = {class: 'rc-riot-riot-reveal-modal'};
311              if (typeof RiotTagsModal.isTagActive == "undefined" || !RiotTagsModal.isTagActive(tag)) {
312                RiotTagsModal.mount(tag, $.extend({}, opts, {mode: 'detail'}), 'medium', options);
313              }
314            };
315            tag.RCRiotOrder.on('RequestShowOrder', function() {
316                if(tag.opts.mode === 'widget') {
317                    tag.triggerClicked();
318                }
319            });
320            tag.processChildren = function() {
321                pcFunc.call(this);
322                if(tag.hasChildByPlugin('RCRiotActivityPane')) {
323                    apchild = tag.getChildByPlugin('RCRiotActivityPane');
324                    apchild.mounted = true;
325                    tag.activities = apchild.options.cats;
326                    tag.form_settings = apchild.options.form_settings;
327                    tag.classes['has-activities'] = true;
328                }
329                if(tag.hasChildByPlugin('RCRiotShareOrder')) {
330                    tag.sharechild = tag.getChildByPlugin('RCRiotShareOrder');
331                    tag.sharechild.mounted = true;
332                }
333            };
334            tag.quoteClicked = function (e) {
335                $(e.target).addClass('pending').prop('disabled', true);
336                tag.showDetailedQuote(e.item.price, opts.txt.buy !== '' ? opts.txt.buy : null).done(function (data) {
337                    RiotTagsModal.show($(data.content), 'tiny')
338                }).always(function () {
339                    $(e.target).removeClass('pending').prop('disabled', false)
340                })
341            };
342
343            if(opts.mode === 'widget') {
344                tag.skip_children = true
345            } else if(typeof tag.opts.eid !== undefined && tag.opts.eid !== '') {
346                tag.RiotSolrManager.observable.on('RiotSolrBoot', function() {
347                    tag.fetchOrderDocs().done(function(docs) {
348                        tag.docs = {};
349                        for(var ind in docs) {
350                            tag.docs[docs[ind][tag.opts.eid]] = docs[ind];
351                        }
352                        tag.update();
353                    });
354                });
355            }
356
357        })(jQuery, this);
358});
359;/*})'"*/
360;/*})'"*/
361(function(e,t){t.behaviors.vrweb_jump_menus={attach:function(n,o){var t=e('select.ctools-jump-menu-select',n);if(t.length){t.css({minWidth:'140 px'}).removeAttr('size').select2({width:'resolve'})};var i=t.closest('form'),a=i.find('.ctools-jump-menu-button');a.hide();t.on('change',function(){var t=e(this).val();if(t.length){var n=t.split('::');if(n[1]){location.href=n[1]}
362else{location.href=t}}})}}})(jQuery,Drupal);;/*})'"*/
363;riot.tag2('rc-riot-avail-pricing','<div class="tag-content"> <div if="{mode==\'summary\'}" class="{\'price-summary\' : true, \'has-package\' : has_package, \'has-coupon\' : has_coupon, \'has-savings\' : has_savings, \'is-alternate\' : is_alternate}"> {pricing_text} <sup if="{opts.txt.annot}"> {opts.txt.annot} </sup> <div class="display-savings" if="{savings_text != \'\'}"> <span>{opts.txt.savings_annot}</span> {savings_text}! </div> <span if="{has_call_to_book}" class="display-name call-to-book"> {parent.parent.opts.txt.call_to_book_text} <a href="tel:{parent.parent.opts.txt.call_to_book_number}"> {parent.parent.opts.txt.call_to_book_number} </a> </span> <a class="trigger" onclick="{triggerClicked}"> {opts.txt.trigger} </a> </div> <div if="{mode==\'detail\'}" id="{\'pricing-detail-\' + eid}" class="{\'pricing-detail\': true, \'full\': true}"> <div each="{ind, og in offer_groups}" class="{\'offer-group\': true, og.offerby: true}"> <h5 if="{og.name !=\'\'}">{og.name}</h5> <div each="{price in og.offers}" class="{\'rc-price\': true, \'has-package\': price.has_package, \'is-alternate\' : price.is_alternate}"> <div if="{price.dn.length}" class="display-name">{price.dn}</div> <div if="{parent.parent.opts.show_quote_detail && price.dd.length}" class="display-detail">{price.dd}</div> <div if="{parent.parent.opts.show_quote_savings && price.has_savings}" class="display-savings"> <span>{parent.parent.opts.txt.savings_annot}</span> {parent.parent.RCRiotUtils.formatSavings(price, precision, parent.parent.opts.display_type)} </div> <div class="price"> <span class="original-price" if="{price.s && parent.parent.opts.show_original_price}"> {parent.parent.RCRiotUtils.formatOriginalPrice(price, precision, parent.parent.opts.display_type)} </span> {parent.parent.RCRiotUtils.formatPrice(price, precision, parent.parent.opts.display_type)} <sup if="{parent.parent.opts.txt.annot}"> {parent.parent.opts.txt.annot} </sup> </div> <span if="{parent.parent.opts.has_call_to_book}" class="display-name call-to-book"> {parent.parent.opts.txt.call_to_book_text} <a href="tel:{parent.parent.opts.txt.call_to_book_number}"> {parent.parent.opts.txt.call_to_book_number} </a> </span> <button if="{!parent.parent.opts.has_call_to_book && parent.parent.opts.show_buy}" data-price="{price}" onclick="{parent.parent.buyClicked}" class="book"> {parent.parent.opts.txt.buy} </button> <button if="{parent.parent.opts.show_add}" data-price="{price}" onclick="{parent.parent.addClicked}" class="add"> {parent.parent.opts.txt.add} </button> <button if="{parent.parent.opts.show_quote_link}" data-price="{price}" onclick="{parent.parent.quoteClicked}" class="quote"> {parent.parent.opts.txt.quote} </button> </div> </div> </div> <div if="{mode==\'alternates\'}" id="{\'pricing-detail-\' + eid}" class="{\'pricing-detail\': true, \'full\': true}"> <div each="{og in primaryOffers()}" class="{\'offer-group\': true, og.offerby: true}"> <h5 if="{og.name !=\'\'}">{og.name}</h5> <div each="{price in og.offers}" class="{\'rc-price\': true, \'has-package\': price.has_package, \'is-alternate\' : price.is_alternate}"> <div if="{price.dn.length}" class="display-name">{price.dn}</div> <div if="{parent.parent.opts.show_quote_detail && price.dd.length}" class="display-detail">{price.dd}</div> <div if="{parent.parent.opts.show_quote_savings && price.has_savings}" class="display-savings"> <span>{parent.parent.opts.txt.savings_annot}</span> {parent.parent.RCRiotUtils.formatSavings(price, precision, parent.parent.opts.display_type)} </div> <div class="price"> <span class="original-price" if="{price.s && parent.parent.opts.show_original_price}"> {parent.parent.RCRiotUtils.formatOriginalPrice(price, precision, parent.parent.opts.display_type)} </span> {parent.parent.RCRiotUtils.formatPrice(price, precision, parent.parent.opts.display_type)} <sup if="{parent.parent.opts.txt.annot}"> {parent.parent.opts.txt.annot} </sup> </div> <span if="{parent.parent.opts.has_call_to_book}" class="display-name call-to-book"> {parent.parent.opts.txt.call_to_book_text} <a href="tel:{parent.parent.opts.txt.call_to_book_number}"> {parent.parent.opts.txt.call_to_book_number} </a> </span> <button if="{!parent.parent.opts.has_call_to_book && parent.parent.opts.show_buy}" data-price="{price}" onclick="{parent.parent.buyClicked}" class="book"> {parent.parent.opts.txt.buy} </button> <button if="{parent.parent.opts.show_add}" data-price="{price}" onclick="{parent.parent.addClicked}" class="add"> {parent.parent.opts.txt.add} </button> <button if="{parent.parent.opts.show_quote_link}" data-price="{price}" onclick="{parent.parent.quoteClicked}" class="quote"> {parent.parent.opts.txt.quote} </button> </div> </div> <div if="{featuredOfferGroups().length < 1}" class="not-available">{opts.txt.not_available} <span if="{search_date}" class="search-date">{search_date}</span> </div> <a class="trigger" onclick="{popModalWith(getAlternatesOpts())}" if="{has_alternates}"> {tokenize(opts.txt.trigger)} </a> <a class="trigger" onclick="{popModalWith(getModalOpts())}" if="{has_modal_options}"> {tokenize(opts.txt.modal_pricing_trigger)} </a> </div> <div if="{mode==\'modal\'}" id="{\'pricing-detail-\' + eid}" class="{\'pricing-detail\': true, \'full\': true}"> <div each="{og in primaryOffers()}" class="{\'offer-group\': true, og.offerby: true}"> <h5 if="{og.name !=\'\'}">{og.name}</h5> <div each="{price in og.offers}" class="{\'rc-price\': true, \'has-package\': price.has_package, \'is-alternate\' : price.is_alternate}"> <div if="{price.dn.length}" class="display-name">{price.dn}</div> <div if="{parent.parent.opts.show_quote_detail && price.dd.length}" class="display-detail">{price.dd}</div> <div if="{parent.parent.opts.show_quote_savings && price.has_savings}" class="display-savings"> <span>{parent.parent.opts.txt.savings_annot}</span> {parent.parent.RCRiotUtils.formatSavings(price, precision, parent.parent.opts.display_type)} </div> <div class="price"> <span class="original-price" if="{price.s && parent.parent.opts.show_original_price}"> {parent.parent.RCRiotUtils.formatOriginalPrice(price, precision, parent.parent.opts.display_type)} </span> {parent.parent.RCRiotUtils.formatPrice(price, precision, parent.parent.opts.display_type)} <sup if="{parent.parent.opts.txt.annot}"> {parent.parent.opts.txt.annot} </sup> </div> <span if="{parent.parent.opts.has_call_to_book}" class="display-name call-to-book"> {parent.parent.opts.txt.call_to_book_text} <a href="tel:{parent.parent.opts.txt.call_to_book_number}"> {parent.parent.opts.txt.call_to_book_number} </a> </span> <button if="{!parent.parent.opts.has_call_to_book && parent.parent.opts.show_buy}" data-price="{price}" onclick="{parent.parent.buyClicked}" class="book"> {parent.parent.opts.txt.buy} </button> <button if="{parent.parent.opts.show_add}" data-price="{price}" onclick="{parent.parent.addClicked}" class="add"> {parent.parent.opts.txt.add} </button> <button if="{parent.parent.opts.show_quote_link}" data-price="{price}" onclick="{parent.parent.quoteClicked}" class="quote"> {parent.parent.opts.txt.quote} </button> </div> </div> <div if="{featuredOfferGroups().length < 1}" class="not-available">{opts.txt.not_available} <span if="{search_date}" class="search-date">{search_date}</span> </div> <a class="trigger" onclick="{popModalWith(getAlternatesOpts())}" if="{has_alternates}"> {tokenize(opts.txt.trigger)} </a> <a class="trigger" onclick="{popModalWith(getModalOpts())}" if="{has_modal_options}"> {tokenize(opts.txt.modal_pricing_trigger)} </a> </div> </div>','@-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-moz-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-o-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } rc-riot-avail-pricing,[riot-tag="rc-riot-avail-pricing"],[data-is="rc-riot-avail-pricing"]{ display: block; } rc-riot-avail-pricing .tag-content .price-summary,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary{ font-weight: bold; color: #ff1e00; font-size: 16px; padding-top: 7px; } rc-riot-avail-pricing .tag-content .price-summary a,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary a,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a{ font-size: 14px; color: #ff1e00; letter-spacing: .03em; padding-top: 3px; } rc-riot-avail-pricing .tag-content .price-summary a:hover,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary a:hover,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a:hover,rc-riot-avail-pricing .tag-content .price-summary a:active,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary a:active,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a:active{ text-decoration: underline; cursor: pointer; } rc-riot-avail-pricing .tag-content .price-summary a i,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary a i,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a i{ width: 18px; height: 18px; margin-left: 5px; display: block; float: right;
363 margin-top: 1px; } rc-riot-avail-pricing .tag-content .price-summary a i #Layer_1,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary a i #Layer_1,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a i #Layer_1{ fill: #ff1e00; } @media only screen and (min-width: 30.0625em) { rc-riot-avail-pricing .tag-content .price-summary,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary{ font-size: 18px; } rc-riot-avail-pricing .tag-content .price-summary a,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary a,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a{ padding-top: 5px; } rc-riot-avail-pricing .tag-content .price-summary a i,[riot-tag="rc-riot-avail-pricing"] .tag-content .price-summary a i,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a i{ width: 22px; margin-top: -1px; } } rc-riot-avail-pricing .tag-content .offer-group > h5,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group > h5,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group > h5{ color: #111; border-bottom: solid 1px rgba(17, 17, 17, 0.1); padding-bottom: 10px; margin-top: -5px; } rc-riot-avail-pricing .tag-content .offer-group .rc-price,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price{ text-align: center; } rc-riot-avail-pricing .tag-content .offer-group .rc-price button,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button{ text-transform: none; height: auto; background: #ff1e00; color: #fff; letter-spacing: .03em; margin-bottom: 5px; background-color: #ff1e00; border-radius: 3px; color: #fff; display: inline-block; text-align: center; border: none; transition-property: background-color, color; transition-timing-function: ease-in-out; transition-duration: .15s; letter-spacing: .03em; font-family: "Helvetica", Helvetica, "Arial", Arial, sans-serif; line-height: 1.3 !important; padding: 7px 10px; font-size: 14px; min-height: 30px; width: auto; } rc-riot-avail-pricing .tag-content .offer-group .rc-price button:hover,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:hover,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:hover,rc-riot-avail-pricing .tag-content .offer-group .rc-price button:active,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:active,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:active{ background-color: #db1a00; } rc-riot-avail-pricing .tag-content .offer-group .rc-price button:hover,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:hover,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:hover,rc-riot-avail-pricing .tag-content .offer-group .rc-price button:active,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:active,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:active{ background: #111; } rc-riot-avail-pricing .tag-content .offer-group div.price,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group div.price,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group div.price{ text-align: center; color: #ff1e00; font-size: 24px; } rc-riot-avail-pricing .tag-content .offer-group div.price .original-price,[riot-tag="rc-riot-avail-pricing"] .tag-content .offer-group div.price .original-price,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group div.price .original-price{ font-size: 0.8em; text-decoration: line-through; } .node-listing.view-mode-full rc-riot-avail-pricing .tag-content .rc-price,.node-listing.view-mode-full [riot-tag="rc-riot-avail-pricing"] .tag-content .rc-price,.node-listing.view-mode-full [data-is="rc-riot-avail-pricing"] .tag-content .rc-price{ text-align: center; } .node-listing.view-mode-full rc-riot-avail-pricing .tag-content button.quote,.node-listing.view-mode-full [riot-tag="rc-riot-avail-pricing"] .tag-content button.quote,.n
363ode-listing.view-mode-full [data-is="rc-riot-avail-pricing"] .tag-content button.quote{ display: block; width: 100%; text-align: center; text-decoration: underline; min-height: 0; padding: 0; margin-top: 12px; background: none; box-shadow: none; color: #111; font-weight: 400; } .node-listing.view-mode-full rc-riot-avail-pricing .tag-content button.quote:hover,.node-listing.view-mode-full [riot-tag="rc-riot-avail-pricing"] .tag-content button.quote:hover,.node-listing.view-mode-full [data-is="rc-riot-avail-pricing"] .tag-content button.quote:hover,.node-listing.view-mode-full rc-riot-avail-pricing .tag-content button.quote:active,.node-listing.view-mode-full [riot-tag="rc-riot-avail-pricing"] .tag-content button.quote:active,.node-listing.view-mode-full [data-is="rc-riot-avail-pricing"] .tag-content button.quote:active{ text-decoration: none; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .display-name,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .display-name,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .display-name{ font-size: 18px; color: #111; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .display-detail,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .display-detail,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .display-detail{ color: rgba(17, 17, 17, 0.9); } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .display-savings,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .display-savings,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .display-savings{ font-size: 18px; font-weight: 700; padding-top: 7px; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content div.price,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content div.price,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content div.price{ font-size: 20px; padding-bottom: 5px; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .display-savings,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .display-savings,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .display-savings,.reveal-modal rc-riot-avail-pricing .tag-content .tag-content div.price,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content div.price,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content div.price{ color: #ff1e00; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.book,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.book,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.book{ background-color: #ff1e00; border-radius: 3px; color: #fff; display: inline-block; text-align: center; border: none; transition-property: background-color, color; transition-timing-function: ease-in-out; transition-duration: .15s; letter-spacing: .03em; font-family: "Helvetica", Helvetica, "Arial", Arial, sans-serif; line-height: 1.3 !important; padding: 10px 12px; font-size: 15px; min-height: 38px; width: auto; min-height: 0; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.book:hover,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.book:hover,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.book:hover,.reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.book:active,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.book:active,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.book:active{ background-color: #db1a00; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.add,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add{ background-color: #ff1e00; border-radius: 3px; color: #fff; display: inline-block; text-align: center; border: none; transition-property: background-color, color; transition-timing-function: ease-in-out; transition-duration: .15s; letter-spacing: .03em; font-family: "Helvetica", Helvetica, "Arial", Arial, sans-serif; line-height: 1.3 !important; padding: 10px 12px; font-size: 15px; min-height: 38px; width: auto; background-color: rgba(255, 255, 255, 0); border: solid 2px #ff1e00; color: #ff1e00; padding: 8px 12px; min-height: 0; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.add:hover,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:hover,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:hover,.reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.add:active,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:active,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:active{ background-color: #db1a00; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.add:hover,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:hover,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:hover,.reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.add:active,.reveal-modal [riot-tag="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:active,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:active{ background-color: #ff1e00; color: #fff; } rc-riot-avail-pricing .tag-content .call-to-book,[riot-tag="rc-riot-avail-pricing"] .tag-content .call-to-book,[data-is="rc-riot-avail-pricing"] .tag-content .call-to-book{ font-weight: bold; }','class="mode-{mode}"',function(t){this.mixin('RCRiotOrder');this.mixin('RiotNotify');this.mixin('RiotTagsChildren');this.mixin('RCRiotAvailPricing');this.mixin('RCRiotAvailPricingGrouper');this.mixin('RCRiotAvailPricingTokenizer');if(typeof RCAddonProvider!=='undefined'){this.mixin('RCAddonProvider')}(function(a,i){i.precision=parseInt(t.precision,10)||0;i.mode=t.mode||'default';i.eid=t.eid||null;i.pricing=t.pricing||i.getItemPricing(i.eid);i.offerby=t.offerby||'default';i.has_call_to_book=t.has_call_to_book||!1;i.show_buy=(t&&t.show_buy)||t.show_buy||!1;i.show_add=(t&&t.show_add)||t.show_add||!1;i.has_package=!1;i.has_coupon=!1;i.has_savings=!1;i.has_alternates=!1;i.has_modal_options=!1;i.item=t.item||null;i.show_in_modal=i.mode==='modal'||i.mode==='alternates';i.classes={};i.classes['mode-'+t.mode]=!0;i.RCRiotAvailPricing.on('PricingChanged',function(t){i.pricing=t.pricing['eid-'+i.eid];i.update()});i.on('update',function(){var t;i.has_alternates=!1;if(i.opts.not_available_date){t=i.getLastSearch();if(typeof t!='undefined'&&typeof t['rcav']!='undefined'){i.search_date=t['rcav']['begin']}};if(typeof i.pricing!='undefined'){i.has_pricing=!0;i.eid=i.pricing.eid;i.pricing_text=i.formatItemPriceRange(i.eid,0,i.opts.display_type);i.savings_text=i.formatItemSavingsRange(i.eid,0,i.opts.display_type)}
364else{i.has_pricing=!1};i.offer_groups=(i.opts.offer_groups)?i.opts.offer_groups:i.processPricing(i.pricing,i);i.buildModalOptions(i.offer_groups);if(i.children&&i.children.length&&i.eid){var a=i.getRcUpliftChild();if(a>=0){i.children[a].options.eid=i.eid}};i.classes['has-package']=i.has_package;i.classes['has-coupon']=i.has_coupon;i.classes['has-savings']=i.has_savings;i.classes['is-alternate']=i.has_alternates});i.getRcUpliftChild=function(){return i.children.findIndex(function(t){if(!t){return!1};return t.plugin==='RCUpliftPayment'})};i.addClicked=function(t){i.addOrderLineItem(t.item.price).done(function(){i.showOrderDetail()})};i.buyClicked=function(t){i.buyNow(t.item.price)};i.quoteClicked=function(r){a(r.target).addClass('pending').prop('disabled',!0);i.showDetailedQuote(r.item.price,t.show_buy&&!t.has_call_to_book?t.txt.buy:null).done(function(i){if(t.has_call_to_book){i.content+='<div class=\'call-to-book\'>'+t.txt.call_to_book_text+'<a href=\'tel:'+t.txt.call_to_book_number+'\'>'+t.txt.call_to_book_number+'</a></div>'};RiotTagsModal.show(a(i.content),'tiny')}).always(function(){a(r.target).removeClass('pending').prop('disabled',!1)})};i.triggerClicked=function(r){if(t.trigger_order&&i.pricing.prices.length==1&&a('rc-riot-order').length>0){i.addOrderLineItem(i.pricing.prices[0]).done(function(){i.showOrderDetail()})}
365else{i.popModal(t)}};i.getAlternatesOpts=function(){var r=a.extend({},t),e;if(!i.offer_groups){return r};r.offer_groups={};for(e in i.offer_groups){if(!i.offer_groups[e].featured){r.offer_groups[e]=i.offer_groups[e];r.offer_groups[e]['offers'].map(function(t,i){if(i>0&&typeof t.show_in_modal!='undefined'&&t.show_in_modal){r.offer_groups[e]['offers'].splice(i)}})}};return r};i.primaryOffers=function(){var a,t=i.featuredOfferGroups(),r=[];for(a in t){if(i.mode==='modal'){r=[i.getBestPricedOffer(t,a)]}
366else{r=t[a]['offers'].filter(function(t){return t.show_in_modal=='undefined'||!t.show_in_modal});if(!r.length){r=[i.getBestPricedOffer(t,a)]}};t[a]['offers']=r};return t};i.buildModalOptions=function(t){var r,e,o,c={},n=!1;if(!i.opts.txt.modal_pricing_trigger||!i.show_in_modal){return};i.modalOptions={};if(!t){i.has_modal_options=n;return};for(r in t){if(t[r].featured){c=i.getBestPricedOffer(t,r);e=t[r]['offers'].filter(function(t){var a=!t.qp.special_data||!this.qp.special_data||t.qp.special_data.special_nid===this.qp.special_data.special_nid;return!a||t.show_in_addition||t.qp.special_data&&i.mode==='modal'},c);if(e.length){n=!0;o=a.extend({},t[r]);o.offers=e;i.modalOptions[r]=o}}};i.has_modal_options=n};i.getBestPricedOffer=function(t,i){return t[i]['offers'].reduce(function(t,i){if(!t){return i}
367else if(typeof i.qp.special_data=='undefined'){return i}
368else if(t.show_in_addition&&!i.show_in_addition){return i}
369else if(t.show_in_addition&&t.qp.special_data&&t.p>i.p){return i}
370else if(!i.show_in_addition&&t.qp.special_data&&t.p>i.p){return i};return t})};i.getModalOpts=function(){var r=a.extend({},t);r.offer_groups=i.modalOptions;return r};
370i.popModal=function(t){RiotTagsModal.mount('rc-riot-avail-pricing',a.extend({},t,{mode:'detail'}),'small')};i.popModalWith=function(t){return function(a){i.popModal(t)}}})(jQuery,this)});;/*})'"*/
371;var LDRCCurrencySymbols={'USD':'$','CAD':'$','EUR':'€'};(function(t){var r={RCRiotUtils:{formatTimestamp:function(t,r){return new Date(t).toLocaleString(window.navigator.language,Object.assign({weekday:'short',day:'numeric',month:'short'},r||{}))},formatSavings:function(t,r,n){var e=parseFloat(t.s);return this.formatHelper(e,t,r,n)},formatOriginalPrice:function(t,r,n){var e=parseFloat(t.p)+parseFloat(t.s);return this.formatHelper(e,t,r,n)},formatPrice:function(t,r,n){var e=parseFloat(t.p);return this.formatHelper(e,t,r,n)},formatHelper:function(t,r,n,o){var e='';switch(parseInt(o)){case 8:t=t/this.nightsBetween(r.bt,r.et);e='/nt';break};return''+this.formatCurrency(t,r.c,n)+e},formatCurrency:function(t,r,n){t=parseFloat(t);if(typeof n==='undefined'){n=0};if(this.toLocaleStringSupportsOptions()){return t.toLocaleString('en',{style:'currency',currencyDisplay:'symbol',currency:r,minimumFractionDigits:n,maximumFractionDigits:n})};t.toFixed(n).replace(/./g,function(t,r,n){return r&&t!=='.'&&((n.length-r)%3===0)?','+t:t});if(typeof LDRCCurrencySymbols[r]!=='undefined'){return LDRCCurrencySymbols[r]+t};return t},toLocaleStringSupportsOptions:function(){return!!(typeof Intl=='object'&&Intl&&typeof Intl.NumberFormat=='function')},parseQueryParams:function(){var e=window.location.search.substring(1),r=e.split('&'),n={};for(var t=0;t<r.length;t++){(function(){var e=r[t].split('=');n[decodeURIComponent(e[0])]=decodeURIComponent(e[1])})()};return n},parseHash:function(){var e=window.location.hash.substring(1),r=e.split('&'),n={};for(var t=0;t<r.length;t++){(function(){var e=r[t].split('=');n[decodeURIComponent(e[0])]=decodeURIComponent(e[1])})()};return n},nightsBetween:function(t,r){var n=Math.round((r-t)/86400/1000);return n},getBuyUrl:function(r){return'/rescms/item/'+r.eid+'/buy?'+t.param(r.qp)}}};riot.mixin('RCRiotUtils',r)})(jQuery);;/*})'"*/
372(function(t){var e=null,r=null,i={RCRiotOrder:riot.observable(),init:function(){this.mixin('RiotNotify');if(!this.RCRiotUtils){this.mixin('RCRiotUtils')};this.orderStorage='local';this.initOrderData()},addOrderLineItem:function(e){var o,n=this,i,a,s=0;if(this.orderStorage=='local'){i=this.getOrderData();while(typeof a=='undefined'){if(i.lis.hasOwnProperty('ind-'+s)){s++}
373else{a='ind-'+s}};i.lis[a]=e;i.lict++;i.litot+=parseFloat(e.p);this.setOrderData(i);o=t.Deferred();o.resolve(i)}
374else{n=this;o=t.Deferred(function(){r=null;n.RCRiotOrder.trigger('UpdateStart');t.getJSON('/rcapi/order/add',e.qp).done(function(t){n.setOrderData(t);o.resolve(t)}).always(function(){n.RCRiotOrder.trigger('UpdateStop')}).fail(function(t){o.reject(t)})})};return o},doOrderCheckout:function(){window.location=this.getOrderCheckoutURL()},getShortUrl:function(e){var s=this,o=this.opts.bitly_access_token,i=t.Deferred(),n=location.protocol+'//'+location.host+'/'+e||this.getOrderSearchURL(),a='https://api-ssl.bitly.com/v3/shorten?access_token='+o+'&longUrl='+encodeURIComponent(e||n+'?rcod='+this.getOrderHash());t.getJSON(a,{}).done(function(t){r=t.data.url;i.resolve(t.data.url)}).fail(function(t){i.reject(t)});return i},getOrderHash:function(){return btoa(JSON.stringify(this.getOrderData()))},doOrderSearch:function(t){window.location=t},removeOrderLineItem:function(e){if(this.orderStorage=='local'){var i=this.getOrderData();i.lict--;i.litot-=i.lis[e].p;delete(i.lis[e]);this.setOrderData(i);return t.Deferred(function(){return i})}
375else{var n=this,o=t.Deferred();this.RCRiotOrder.trigger('UpdateStart');t.getJSON('/rcapi/order/remove',{'index':e}).done(function(t){r=null;n.setOrderData(t);o.resolve(t)}).fail(function(t){o.reject(t)}).always(function(){n.RCRiotOrder.trigger('UpdateStop')});return o}},buyOrderLineItem:function(t){var e=this.getOrderData();this.buyNow(e.lis[t])},getOrderCheckoutURL:function(){return'/rescms/order/checkout'},setOrderData:function(t){localStorage.setItem('rcriotorder',JSON.stringify(t));e=t;this.RCRiotOrder.trigger('OrderUpdated',t)},showDetailedQuote:function(e,i){var r=t.Deferred(function(){var o=e.qp;o.buy_text=i;t.getJSON('/rescms/ajax/item/pricing/quote',e.qp).done(function(t){r.resolve(t)}).fail(function(t){r.reject(t)})});return r}
375,showOrderDetail:function(){var t=this;RiotTagsModal.closeAll().done(function(){t.RCRiotOrder.trigger('RequestShowOrder')})},getOrderData:function(){return e},openTrips:function(t,e){var r;if((typeof e.lict=='undefined'&&e.lict==0)||confirm('This Trips Collection will replace any Trips Collection you may have in progress. Would you like to proceed?')){r=JSON.parse(atob(t));this.setOrderData(r);window.location.hash='';setTimeout(this.showOrderDetail,250)}},initOrderData:function(){if(e!=null)return;var r=this,i=this.RCRiotUtils.parseHash(),o=this.getLocalStorageOrderData();if(i.hasOwnProperty('short-url')){t.get('rescms/order/shorturl/'+i['short-url']).done(function(t){if(t){r.openTrips(t,o)}})}
376else if(i.hasOwnProperty('rcod')){r.openTrips(i['rcod'],o)};if(e==null){if(o.lict){this.setOrderData(o)}
377else if(this.orderStorage=='session'){t.getJSON('/rcapi/order/get').done(function(t){r.setOrderData(t)})}
378else{r.setOrderData({lict:0,lis:{},litot:0})}}},getLocalStorageOrderData:function(){var t={};if(ostr=localStorage.getItem('rcriotorder')){t=JSON.parse(ostr)};return t},buyNow:function(t){window.open(this.RCRiotUtils.getBuyUrl(t)).focus()},getOrderSearchURL:function(){return'/mytrip'},hasOrderLineItems:function(){var t=!1,e=this.getOrderData();if(typeof e.lict!=' undefined'&&parseInt(e.lict)>0){t=!0};return t}};riot.mixin('RCRiotOrder',i)})(jQuery);;/*})'"*/
379;var RCRiotIsSearching;(function(i){var t,r,e={};var n={RCRiotAvailPricing:riot.observable(),init:function(){var i=this;this.mixin('RCRiotUtils');if(typeof t=='undefined'){i.loadLastSearch();i.loadLastPricing()};RiotTagsDispatch.on('BTLeadsShareItems',function(i,t,n){if(n!=='rc_core_item'){return!1};t.items.forEach(function(i,n){if(e['eid-'+i.item_id]){var r=e['eid-'+i.item_id];if(e['eid-'+i.item_id].hasOwnProperty('prices')&&e['eid-'+i.item_id].prices.length){var a=parseFloat(e['eid-'+i.item_id].prices[0].p).toFixed(2);r.prices[0].p=parseFloat(a);t.items[n].prices=r}}})});RiotTagsDispatch.on('RiotSolrCurrentSearchRemoveAll',function(i,e){e.manager.store.remove('rcav')})},formatAvailPrice:function(i,e,t){return!i?'':i.toLocaleString('en',{minimumFractionDigits:e,maximumFractionDigits:e,style:'currency',currency:t||'USD',currencyDisplay:'symbol',useGrouping:!0,})},setAvailPricing:function(i,t){var n={pricing:i,query:t,};e=i;RiotTagsDispatch.trigger('RCRiotPricingChanged',this,n);this.RCRiotAvailPricing.trigger('PricingChanged',n)},getItemPricing:function(i){return this.getAvailPricing()['eid-'+i]},getAvailPricing:function(){return e},storeLastSearch:function(i){localStorage.setItem('rcriotavailpricingparams',JSON.stringify(i))},loadLastSearch:function(){var i=JSON.parse(localStorage.getItem('rcriotavailpricingparams'));t=i;return i},storeLastPricing:function(i){localStorage.setItem('rcriotavailpricingpricing',JSON.stringify(i))},loadLastPricing:function(){var i=JSON.parse(localStorage.getItem('rcriotavailpricingpricing'));r=i;e=i||{};return i},doSearch:function(e,n,a){t=e;var s=this,c={};a=a||'all';RCRiotIsSearching=!0;document.body.classList.add('rcav-loading-indicator');var o=i.Deferred(function(){s.RCRiotAvailPricing.trigger('SearchStart',e);i.getJSON('/rcapi/item/avail/search',e).done(function(t){i(t).each(function(e,t){var n=null,r=null,c=null;if(this.prices.length>1){switch(a){case'first':this.prices=[this.prices[0]];break;case'low':i(this.prices).each(function(){if(c==null||this.p<c.p){c=this}});this.prices=[c];break;case'low_day':var o=function(i){var e={};var n=[];i.forEach(function(i){if(!e.hasOwnProperty(i.bt)||e[i.bt].p>i.p){e[i.bt]=i}});for(var t in e){if(!e.hasOwnProperty(t)){continue};n.push(e[t])};return n};this.prices=o(this.prices);break}};i(this.prices).each(function(){var e=parseInt(this.p,10),t=parseInt(this.qp.rcav.adult,10)+parseInt(this.qp.rcav.child,10);if(this.qp.senior){t+=parseInt(this.qp.rcav.senior,10)};this.ppp=e/t;if(typeof this.b!='undefined'){this.bt=s.parseDate(this.b);this.et=s.parseDate(this.e);this.nt=((this.et-this.bt)/1000)/86400;this.wk=(this.nt)/7;this.ppn=e/this.nt;this.ppw=e/this.wk;this.pppn=(e/this.nt)/t};if(n==null||this.p<n){n=this.p};if(r==null||this.p>r){r=this.p};this['itemBuyURL']=decodeURIComponent(s.RCRiotUtils.getBuyUrl(this));this['itemURLHash']='#'+i.param({rcav:JSON.stringify(this.qp)})});this.range=[n,r]});r=t;i(t).each(function(i,e){c['eid-'+e.eid]=e});if(n){this.storeLastSearch(e);this.storeLastPricing(c)};s.setAvailPricing(c,e);o.resolve({pricing:c,query:e,})}).always(function(){s.RCRiotAvailPricing.trigger('SearchStop');RCRiotIsSearching=!1;document.body.classList.remove('rcav-loading-indicator')})});return o},getLastSearch:function(){return t},setLastSearch:function(i){t=i},getItemPriceRange:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(t==undefined||t.p>this.p){t=this};
379if(n==undefined||n.p<this.p){n=this}})};return[t,n]},getItemPriceRangePerNight:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(t==undefined||t.ppn>this.ppn){t=this};if(n==undefined||n.ppn<this.ppn){n=this}})};return[t,n]},getItemPriceRangePerWeek:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(t==undefined||t.ppw>this.ppw){t=this};if(n==undefined||n.ppw<this.ppw){n=this}})};return[t,n]},getItemPriceRangePerPerson:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(t==undefined||t.ppp>this.ppp){t=this};if(n==undefined||n.ppp<this.ppp){n=this}})};return[t,n]},getItemPriceRangePerPersonPerNight:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(t==undefined||t.pppn>this.pppn){t=this};if(n==undefined||n.pppn<this.pppn){n=this}})};return[t,n]},getItemSavingsRange:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(typeof this.s!='undefined'&&(t==undefined||t.s>this.s)){t=this};if(typeof this.s!='undefined'&&(n==undefined||n.s<this.s)){n=this}})};return[t,n]},formatItemPriceRange:function(i,e,t){e=isNaN(e)?0:e;var n=this.getItemPriceRange(i),r='';if(n[0]&&n[0].p>0){r=this.RCRiotUtils.formatPrice(n[0],e,t);if(n[0].p!=n[1].p){r+=' - '+this.RCRiotUtils.formatPrice(n[1],e,t)}};return r},formatItemSavingsRange:function(i,e,t){e=isNaN(e)?0:e;var n=this.getItemSavingsRange(i),r='';if(n[1]!=null&&typeof n[1].s!='undefined'&&n[1].s>0){r=this.RCRiotUtils.formatHelper(parseFloat(n[1].s),n[1],e,t)};return r},getLastSearchQuery:function(){return t},getItemHasPackage:function(i){var t=!1,e=this.getItemPricing(i),n;if(typeof e!='undefined'&&typeof e.prices!='undefined'){for(n in e.prices){if(this.getPriceHasPackage(e.prices[n])){t=!0;break}}};return t},getPriceIsAlternate:function(i){var e=!0;if(typeof i==undefined||typeof i.qp==undefined){return e};e=i.qp.rcav.begin!==t.rcav.begin;return e},getPriceHasPackage:function(i){var e=!1;if(typeof i==undefined||typeof i.qp==undefined){return e};if(typeof i.qp.rcav.IDs!='undefined'&&typeof i.qp.rcav.IDs[2]!='undefined'){e=!0};return e},getPriceHasCoupon:function(i){var e=!1;if(typeof i==undefined||typeof i.qp==undefined){return e};if(typeof i.qp.rcav.coupon!='undefined'&&i.qp.rcav.coupon!=''){e=!0};return e},getPriceHasSavings:function(i){var e=!1;if(typeof i==undefined||typeof i.qp==undefined){return e};if(typeof i.s!='undefined'&&parseFloat(i.s)>0){e=!0};return e},parseDate:function(i){var t=new Date(0,0,0,0,0,0,0),e=i.split('-');if(e.length==3){t.setFullYear(e[0],e[1]-1,e[2])}
380else{e=i.split('/');if(e.length==3){t.setFullYear(e[2],e[0]-1,e[1])}};return t.getTime()},};riot.mixin('RCRiotAvailPricing',n);i(document).ready(function(){if(typeof RiotSolrItemSortHandlers!=='undefined'){RiotSolrItemSortHandlers['sortPrice']={primer:function(i,e){var t=n.getItemPricing(i);if(t&&t.hasOwnProperty('range')&&Array.isArray(t.range)&&t.range.length>=2){return e?parseFloat(t.range[1]):parseFloat(t.range[0])};return 0},callback:function(i,e,t,n){var r=this,a=!t?1:-1;i.sort(function(i,s){var o=r.primer(i[e],t),f=r.primer(s[e],t),c=a*((o>f)-(f>o));if(!c&&n&&typeof RiotSolrItemSortHandlers.secondarySortOrder==='function'){c=RiotSolrItemSortHandlers.secondarySortOrder(i,s,n)};return c});return i},}}})})(jQuery);;/*})'"*/
381;var RCRiotSpecials={init:function(){(function(e,t,i){t.getApplicableSpecials=function(e,isDetailedQuoteRequest=!1){if(!Drupal||!Drupal.settings||!Drupal.settings.rc_specials||!Drupal.settings.rc_specials.specials){return!1};var g=e.bt,f=e.et,u=Drupal.settings.rc_specials.specials,d=Object.keys(u)[0],t=u[d],v=e.eid.toString();if(!t.units.includes(v)){return!1};if(t.special_type==='2'&&isDetailedQuoteRequest){return!1};var o=Math.floor((g/1000)),p=Math.floor((f/1000));if(o<t.stay_begin||p>
381t.stay_end){return!1};var n=Math.floor((Date.now()/1000));if(n<t.book_begin||n>t.book_end){return!1};var l=e.qp.rcav.adult||1,c=e.qp.rcav.child||0,a=l+c;if(t.max_guests>0&&a>t.max_guests){return!1};if(t.min_guests>0&&a<t.min_guests){return!1};var i=t.max_nights,s=t.min_nights,r=e.nt;if(i>0&&r>i){return!1};if(s>0&&r<s){return!1};return t}})(jQuery,this,this.opts)},};riot.mixin('RCRiotSpecials',RCRiotSpecials);;/*})'"*/
382(function(e){var a=!1,t=!1,n=!1;Drupal.behaviors.rcjs={insuranceCheck:function(t){if(a){return!1};if(typeof Drupal.settings.rcInsuranceStates!='undefined'&&!e.cookie('rcstate')){var i=e('<select><option value="">'+Drupal.settings.rcInsuranceText['sel']+'</option></select>').change(function(){if(e(this).val()!=''){e(this).siblings('button').show()}
383else{e(this).siblings('button').hide()}});for(state in Drupal.settings.rcInsuranceStates){e(i).append(e('<option></option>').attr('value',state).append(Drupal.settings.rcInsuranceStates[state]))};e(i).append(e('<option></option>').attr('value','none').append(Drupal.settings.rcInsuranceText['nl']));var n=e('<div class="rc-insurance-state-select"><span class="copy">'+Drupal.settings.rcInsuranceText['prompt']+'</span></div>');e(n).append(i);e(n).append(e('<button style="display:none;">'+Drupal.settings.rcInsuranceText['button']+'</button>').click(function(){e.cookie('rcstate',e(i).val(),{'path':'/'});e(n).dialog('close').dialog('destroy');e(t).trigger('click')}));e(n).dialog({'modal':1,'title':Drupal.settings.rcInsuranceText['title'],'minWidth':280,'close':function(){a=!1}});a=!0;return!1};if(e(t).is('button')){e(t).parents('form').attr('action',e(t).parents('form').attr('action')+'&province='+e.cookie('rcstate'))}
384else{e(t).attr('href',e(t).attr('href')+'&province='+e.cookie('rcstate'))};return!0},attach:function(a,s){e('.line-item-desc-toggle',a).once('rcjsLineItemDesc',function(){e(this).click(function(){var t=e(this).siblings('.line-item-desc');if(e(t).is(':visible')){e(t).hide(150);e(this).text(e(this).attr('data-show-copy'))}
385else{e(t).show(150);e(this).text(e(this).attr('data-hide-copy'))}})});e('.rcjs-pager',a).once('rcjs-pager-init',function(){e(this).each(function(){e(this).wrapInner('<div class="rcjs-pages"></div>');e('.rcjs-page:gt(0)',this).hide();e('.rcjs-page:eq(0)',this).addClass('active');var t=this,n=function(){var n=e('.rcjs-page.active .rcjs-page-caption',t).filter(':first').html(),a=e('.rcjs-page.active .rcjs-page-caption',t).filter(':last').html();if(n!=a)n=n+' - '+a;e('.rcjs-controls span.title',t).html(n);if(e('.rcjs-page.active',t).prev().length){e('.rcjs-controls .prev',t).removeClass('inactive').get(0).removeAttribute('disabled')}
386else{e('.rcjs-controls .prev',t).attr('disabled','disabled').addClass('inactive')};if(e('.rcjs-page.active',t).next().length){e('.rcjs-controls .next',t).removeClass('inactive').get(0).removeAttribute('disabled')}
387else{e('.rcjs-controls .next',t).attr('disabled','disabled').addClass('inactive')}},a=function(){e('.rcjs-controls button',t).attr('disabled','disabled')},i=e('<div class="rcjs-controls"><span class="title"></span></div>').append(e('<button class="prev"><< Prev</button>').click(function(){if(e('.rcjs-page.active',t).prev().length){e('.rcjs-controls span.title',t).html('&nbsp;');a();e('.rcjs-page.active',t).fadeOut(300,function(){e(this).prev().fadeIn(300,n).addClass('active')}).removeClass('active')}})).append(e('<button class="next">Next >></button>').click(function(){if(e('.rcjs-page.active',t).next().length){e('.rcjs-controls span.title',t).html('&nbsp;');a();e('.rcjs-page.active',t).fadeOut(300,function(){e(this).next().fadeIn(300,n).addClass('active')}).removeClass('active')}}));e(t).prepend(i);if(e('.rcjs-center',this)){e('.rcjs-center',this).parents('.rcjs-page').each(function(){e(this).siblings().hide().removeClass('active');e(this).show().addClass('active')})};n()})});e('.rc-search-alternate',a).click(function(){if(typeof ga4!=='undefined'){ga4.event({event:'click',location:'rescms_search_alternate',label:e(this).attr('data-alternate-label'),count:Math.round(e(this).attr('data-alternate-count')),eventCategory:'ResCMS Search Alternate',eventAction:'Click',eventLabel:e(this).attr('data-alternate-label'),eventValue:Math.round(e(this).attr('data-alternate-count'))})};if(typeof(ga)!==undefined){var t=this,n={'hitType':'event','eventCategory':'ResCMS Search Alternate','eventAction':'Click','eventLabel':e(this).attr('data-alternate-label'),'eventValue':Math.round(e(this).attr('data-alternate-count')),'hitCallback':function(){window.location=e(t).attr('href')}};ga('send',n);return!1}});e('.rc-core-search-alternates',a).each(function(){if(typeof ga4!=='undefined'){ga4.event({event:'offer',location:'rescms_search_alternate',value:Math.round(e(this).find('a').length),eventCategory:'ResCMS Search Alternate',eventAction:'Offer',eventLabel:'Offer',eventValue:Math.round(e(this).find('a').length),})};if(typeof(ga)!==undefined){var t={'hitType':'event','eventCategory':'ResCMS Search Alternate','eventAction':'Offer','eventLabel':'Offer','eventValue':Math.round(e(this).find('a').length),'nonInteraction':1};ga('send',t)}});e('.rc-item-quote-link, .rc-item-price-buy button, .rc-trigger-state').click(function(){var e=this;return Drupal.behaviors.rcjs.insuranceCheck(e)});var r=function(){e(this).parents('.rc-core-item-images').find('.first').attr('src',e(this).attr('rel'));e(this).parents('.rc-core-item-images').find('.first-caption').html(e(this).attr('title'))};e('.rcjs-image-thumb',a).hover(r);e('.rc-country-select',a).change(function(){var t=e(this).val();if(t!=''){e('.rc-state-select[rel='+e(this).attr('rel')+']',e(this).parents('fieldset').first()).each(function(){var n=this;e('option',this).remove();e(this).append('<option value=\'0\'>Loading...</option>');e.getJSON('/rescms/order/provinces/'+t,function(t){e('option',n).remove();e(n).append('<option value=\'0\'>Select...</option>');for(code in t){e(n).append('<option value=\''+code+'\'>'+t[code]+'</option>')}})})}});
387if(typeof Drupal.settings.rcInsuranceTIDecline!='undefined'){e('.insurance-ti',a).once('rcInsuranceTI',function(){var a=this,n=e(a);n.find('input').next('label').on('click',function(t){t.stopPropagation();t.preventDefault();e(this).prev('input').trigger('mousedown')});n.find('input').on('mousedown',function(i){var r=e(this);if(e(a).is('.forced-choice')&&r.attr('value')==1){return!0};if(!t&&((!r.is(':checked')&&n.is('.declinable'))||(r.is(':checked')&&n.is('.acceptable'))||(n.is('.forced-choice')&&r.attr('value')==-1))){var s=this;e('<div>'+Drupal.settings.rcInsuranceTIDecline+'</div>').dialog({resizable:!1,width:280,modal:!0,buttons:[{text:Drupal.settings.rcInsuranceTIText.declineBtn,click:function(){t=!0;e(this).dialog('destroy');e(s).trigger('click');if(typeof ga4!=='undefined'){ga4.event({event:'decline',value:'insurance',eventCategory:'Insurance',eventAction:'Decline'})};if(typeof(ga)!==undefined){ga('send',{'hitType':'event','eventCategory':'Insurance','eventAction':'Decline'})}}},{text:Drupal.settings.rcInsuranceTIText.acceptBtn,click:function(){t=!0;e(this).dialog('destroy');if(e(s).hasClass('form-radio')){e(s).parents('.form-radios').find('input[value=1]').trigger('click')};if(typeof ga4!=='undefined'){ga4.event({event:'purchased',value:'insurance',eventCategory:'Insurance',eventAction:'Purchased'})};if(typeof(ga)!==undefined){ga('send',{'hitType':'event','eventCategory':'Insurance','eventAction':'Purchased'})}}}]})}
388else{return!0};if(!t){i.stopPropagation();i.preventDefault()};return t})})};if(typeof Drupal.settings.rcInsuranceDPDecline!='undefined'){e('.insurance-dp',a).once('rcInsuranceDP',function(){var a=this,t=e(a);t.find('input').next('label').on('click',function(t){t.stopPropagation();t.preventDefault();e(this).prev('input').trigger('mousedown')});t.find('input').on('mousedown',function(i){var r=e(this);if(e(a).is('.forced-choice')&&r.attr('value')==1){return!0};if(!n&&((!r.is(':checked')&&t.is('.declinable'))||(r.is(':checked')&&t.is('.acceptable'))||(t.is('.forced-choice')&&r.attr('value')==-1))){var s=this;e('<div>'+Drupal.settings.rcInsuranceDPDecline+'</div>').dialog({resizable:!1,width:280,modal:!0,buttons:[{text:Drupal.settings.rcInsuranceDPText.declineBtn,click:function(){n=!0;e(this).dialog('destroy');e(s).trigger('click')}},{text:Drupal.settings.rcInsuranceDPText.acceptBtn,click:function(){n=!0;e(this).dialog('destroy');if(e(s).hasClass('form-radio')){e(s).parents('.form-radios').find('input[value=1]').trigger('click')}}}]})}
389else{return!0};if(!n){i.stopPropagation();i.preventDefault()};return n})})};var i=function(){if(e('input[name=\'payment[payment_option]\']:checked').length){var t=e('input[name=\'payment[payment_option]\']:checked').val()}
390else{var t=e('input[name=\'payment[payment_option]\']').val()};e('button[data-later-text]').each(function(){if(t=='cc'||t=='ach'){e(this).text(e(this).attr('data-sps-text'));e('.sps-order-submit-copy').show()}
391else{e(this).text(e(this).attr('data-later-text'));e('.sps-order-submit-copy').hide()}})};e('input[name=\'payment[payment_option]\']').once('rcjs',function(){e(this).on('change',function(){if(e(this).is(':checked')){i()}})});i()}}})(jQuery);;/*})'"*/
392;riot.tag2('rc-riot-share-order','<div if="{hasOrderLineItems}" class="tag-content"> <button onclick="{triggerClicked}">{opts.txt.trigger}</button> </div>','','',function(a){this.mixin('RCRiotOrder');(function(e,t){t.triggerClicked=function(r){e(r.target).addClass('pending').prop('disabled',!0);e.post('/rescms/order/share',{url:a.share_url,hash:t.getOrderHash(),order:JSON.stringify(t.getOrderData())},null,'json').done(function(r){var t=r.form;t='<p class="shorturl">'+(typeof a.bitly_access_token!='undefined'&&a.bitly_access_token.length>1?'':r.url)+'</p>'+t;if(a.txt.sharedesc.length){t='<p>'+a.txt.sharedesc+'</p>'+t};if(a.txt.sharesub.length){t='<h4>'+a.txt.sharesub+'</h4>'+t};if(a.txt.sharehead.length){t='<h3>'+a.txt.sharehead+'</h3>'+t};var s=RiotTagsModal.show(e(t));Drupal.settings.ajax=Drupal.settings.ajax||{};Drupal.settings.ajax['bt-leads-share-submit-rc-core-order-share']=new Drupal.ajax('bt-leads-share-submit-rc-core-order-share',e('.form-submit',s),{url:'/system/ajax',callback:'bt_leads_share_url_form_submit_ajax'});Drupal.attachBehaviors(s);e('p.shorturl',s).append(r.url);if(!window.grecaptcha){if(typeof btLeadsRecaptchaLoader==='function')btLeadsRecaptchaLoader(s,!0)}
393else{if(typeof btLeadsRecaptchaCallback==='function')btLeadsRecaptchaCallback(s)}}).always(function(){e(r.target).removeClass('pending').prop('disabled',!1)})}})(jQuery,this)});;/*})'"*/
394riot.tag2('riot-solr-flag-counter', '<section> <span> <a onclick="{RiotSolrFlagCounterViewPage}" href="{RiotSolrFlagPath}"><i></i><span class="flag-count">{RiotSolrFlagCount}</span><span class="favorites-label">{opts.txt.counter_label}</span></a> </span> <div class="{show-items: showItems, flag-items: true}"> <div class="flag-items-wrapper"> <subtag each="{item in items}" tag="{parent.children[0].tag}" options="{Object.assign({}, parent.children[0].options, { \'item\': item })}"> </subtag> </div> </div> </section>', '@-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-moz-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-o-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } riot-solr-flag-counter,[data-is="riot-solr-flag-counter"]{ display: block; position: relative; }
394 riot-solr-flag-counter .flag-items,[data-is="riot-solr-flag-counter"] .flag-items{ position: absolute; z-index: 93; right: 0; display: none; padding-top: 10px; min-width: 300px; top: 79px; } @media only screen and (max-width: 64em) { riot-solr-flag-counter .flag-items,[data-is="riot-solr-flag-counter"] .flag-items{ display: none !important; } } riot-solr-flag-counter .flag-items .flag-items-wrapper,[data-is="riot-solr-flag-counter"] .flag-items .flag-items-wrapper{ background: white; box-shadow: 0px 1px 3px rgba(17, 17, 17, 0.35); position: relative; } riot-solr-flag-counter .flag-items.show-items,[data-is="riot-solr-flag-counter"] .flag-items.show-items{ display: block; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"],[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"]{ display: block; padding: 10px 15px; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"]:after,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"]:after{ content: \'\'; display: block; width: 0; height: 0; clear: both; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .tag-content:after,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .tag-content:after{ content: \'\'; display: block; width: 0; height: 0; clear: both; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .tag-content a.image-wrap,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .tag-content a.image-wrap{ display: block; width: 33.33333%; float: left; padding-left: 15px; padding-right: 15px; position: relative; padding: 0; background-color: rgba(17, 17, 17, 0.1); } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] img,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] img{ display: block; height: auto; width: 100%; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] h4,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] h4{ width: 66.66667%; float: left; padding-left: 15px; padding-right: 15px; position: relative; padding-right: 0; float: right; margin-top: 2px; font-size: 18px; text-align: left; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] p,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] p{ width: 66.66667%; float: left; padding-left: 15px; padding-right: 15px; position: relative; padding-right: 0; float: right; clear: right; margin: 0; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .more-link,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .more-link{ width: 66.66667%; float: left; padding-left: 15px; padding-right: 15px; position: relative; padding-right: 0; float: right; clear: right; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .more-link a,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .more-link a{ background-color: #ff1e00; border-radius: 3px; color: #fff; display: block; text-align: center; border: none; transition-property: background-color, color; transition-timing-function: ease-in-out; transition-duration: .15s; letter-spacing: .03em; font-family: "Helvetica", Helvetica, "Arial", Arial, sans-serif; line-height: 1.3 !important; padding: 7px 10px; font-size: 14px; min-height: 30px; width: 100%; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .more-link a:hover,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .more-link a:hover,riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .more-link a:active,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .more-link a:active{ background-color: #db1a00; } riot-solr-flag-counter .flag-items riot-solr-result-item:first-of-type:before,[data-is="riot-solr-flag-counter"] .flag-items riot-solr-result-item:first-of-type:before,riot-solr-flag-counter .flag-items [riot-tag="riot-solr-result-item"]:first-of-type:before,[data-is="riot-solr-flag-counter"] .flag-items [riot-tag="riot-solr-result-item"]:first-of-type:before,riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"]:first-of-type:before,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"]:first-of-type:before{ content: \'\'; display: block; width: 0; height: 0; border-style: solid; border-width: 10px; border-color: rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) rgba(17, 17, 17, 0.1) rgba(255, 255, 255, 0); position: absolute; right: 25px; top: -20px; }', '', function(opts) {
395    this.mixin('RiotTagsChildren');
396    this.mixin('RiotSolrConnection');
397    this.mixin('RiotSolrItemsContainer');
398    this.mixin('RiotSolrFlagCounter');
399});
400
401;/*})'"*/
402;/*})'"*/
403(function(i){var t={init:function(){this.one('update',function(){if(!this.skip_children){this.processChildren();this.mountChildren()}});
403this.on('*',this.propagateEvent)},getChildExtraOptions:function(i){return{}},processChildren:function(){this.children=[];if(this.opts&&typeof this.opts.children!='undefined'&&this.opts.children!=null){for(var i in this.opts.children){var t=this.opts.children[i].hasOwnProperty('children')?this.opts.children[i].children:null,n=this.opts.children[i].options;this.children.push({plugin:this.opts.children[i].plugin_id,weight:this.opts.children[i].plugin_weight,options:Object.assign(n,{'children':t},this.getChildExtraOptions(this.opts.children[i])),tag:this.opts.children[i].html_tag})};this.sortChildren()}},hasChildByPlugin:function(i){for(var t in this.children){if(this.children[t].plugin==i){return!0}};return!1},getChildByPlugin:function(i){for(var t in this.children){if(this.children[t].plugin==i){return this.children[t]}};return null},mountChildren:function(){var t=this,n=this.children.length;i(this.children).each(function(){if(!this.mounted){var h=i('<'+this.tag+' />');i(t.root).append(h);riot.mount(h,this.tag,this.options);this.mounted=!0;n--;if(!n){t.trigger('childrenMounted')}};i(t.root).addClass('haschild-'+this.tag)})},sortChildren:function(){this.children.sort(function(i,h){var t=Number(i.weight),n=Number(h.weight);if(t<n){return-1};if(t>n){return 1};return 0})},getChildTags:function(){var t=[];for(var i=0;i<this.root.childNodes.length;i++){if(typeof this.root.childNodes[i]._tag==='object'){t.push(this.root.childNodes[i])}};return t.map(function(i){return i._tag})},propagateEvent:function(){var i=arguments;if(typeof this.getChildTags==='function'){this.getChildTags().map(function(t){t.trigger.apply(t,i)})}}};riot.mixin('RiotTagsChildren',t)})(jQuery);;/*})'"*/
404(function(e){var a,n=!1;if(typeof Drupal.ajax!=='undefined'){a=Drupal.ajax.prototype.beforeSerialize;Drupal.ajax.prototype.beforeSerialize=function(t,c){a.call(this,t,c);e('.bt-leads-fragment',t).val(window.location.hash)}};btLeadsRecaptchaCallback=function(t){e('.bt-leads-recaptcha',t).once('btLeadsRecaptchaCallback',function(){var t=e(this).parents('form'),n=this,r,a=e(this).siblings('button[type="submit"], input[type="submit"]'),i=e(this).attr('data-size'),c=Drupal.settings.ajax?Drupal.settings.ajax[a.attr('id')]:undefined;if(!window.grecaptcha){console.warn('g-recaptcha was not loaded. This means recaptcha won\'t work on the current page.');return};rcid=grecaptcha.render(n,{sitekey:e(n).attr('data-sitekey'),callback:function(n){e(t).addClass('bt-leads-recaptcha-submitted');e('.bt-leads-grecaptcha-response',e(t)).val(n);if(c){a.on('mousedown',r)};if(i==='invisible'){!c?a.click():a.mousedown();if(c){grecaptcha.reset(t.attr('bt-leads-recaptcha-rcid'))}};if(n){console.info('Form submission successful after valid token response.')}
405else{console.error('Form submission failed after returning an empty token response.')}}});t.attr('bt-leads-recaptcha-rcid',rcid);if(c){r=e._data(a.get(0),'events')['mousedown'][0].handler;a.unbind('mousedown');a.on('click',function(a){if(!e(t).hasClass('bt-leads-recaptcha-submitted')){a.preventDefault();grecaptcha.execute(t.attr('bt-leads-recaptcha-rcid'))}});e(t).ajaxComplete(function(a,c,r){if(a.currentTarget.id==e(t).attr('id')){if(e('.g-recaptcha-response',n).val()!=''){e(t).removeClass('bt-leads-recaptcha-submitted')}}})}
406else{a.on('click',function(a){if(!e(t).hasClass('bt-leads-recaptcha-submitted')){a.preventDefault();grecaptcha.execute(t.attr('bt-leads-recaptcha-rcid'))}})}})};Drupal.behaviors.btLeadsPreventAccidentalSubmit={attach:function(t,a){var c=e('form.bt-leads-share-url-form');if(c.length){c.on('keydown','input',function(e){if(e.keyCode===13){e.preventDefault();e.stopPropagation();return!1}})}}};Drupal.behaviors.btLeadsAddShareHashArgs={attach:function(t,a){var c=e('form.bt-leads-share-url-form');c.find('#edit-social').find('a').each(function(){var a=e(this);if(!a.hasClass('btleads-processed')){var t=a.attr('href'),n=a.attr('data-share-query'),c=encodeURIComponent(a.attr('data-share-url'));if(window.location.hash){c+=encodeURIComponent(window.location.hash)};if(t.indexOf('?')===-1){t+='?'}
407else{t+='&'};t+=n+'='+c;a.attr('href',t).addClass('btleads-processed')}})}};Drupal.behaviors.btLeadsOptInRequired={attach:function(t,a){e('.bt-opt-required',t).once('btLeadsOptInRequired',function(){e(this).submit(function(){if(!e('input[name="bt_leads_o
407ptin"]:checked',this).length){alert('Please accept the terms to proceed.');return!1}
408else{return!0}})})}};function t(){const existingRecaptchaScript=document.querySelector('#bt-leads-recaptcha-async-load');if(existingRecaptchaScript){return};if(!Drupal.settings.bt_leads_recaptcha||!Drupal.settings.bt_leads_recaptcha.should_load){return};const recaptchaScript=document.createElement('script');const recaptchaUrl='https://www.google.com/recaptcha/api.js?onload=btLeadsRecaptchaCallback&render=explicit';recaptchaScript.setAttribute('id','bt-leads-recaptcha-async-load');recaptchaScript.setAttribute('src',recaptchaUrl);recaptchaScript.setAttribute('defer',1);recaptchaScript.setAttribute('async',1);document.head.appendChild(recaptchaScript);const newlyMountedRecaptcha=document.querySelector('#bt-leads-recaptcha-async-load');if(newlyMountedRecaptcha){console.info('Successfully added Google\'s ReCaptcha library.');n=!0}
409else{console.error('Something went wrong when mounting Google\'s ReCaptcha library to the page.')}};function c(e){var t=e.getBoundingClientRect();return(t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth))};btLeadsRecaptchaLoader=function(a,shouldLoad=!1){var i=e('.load-async-recaptcha'),r=!1;if(shouldLoad){t()}
410else{document.addEventListener('scroll',function(){i.each(function(e,t){r=c(t)});if(r){t()}});window.onload=function(e){i.each(function(e,t){r=c(t)});if(r){t()}};e('.load-async-recaptcha :input',a).on('focus',function(){t()})}};Drupal.behaviors.btLeadsAsyncLoadRecaptcha={attach:function(e,t){btLeadsRecaptchaLoader(e)}}})(jQuery);;/*})'"*/
411/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
412 * Build: http://modernizr.com/download/#-inlinesvg-svg-svgclippaths-touch-shiv-mq-cssclasses-teststyles-prefixes-ie8compat-load
413 */
414;window.Modernizr=function(a,b,c){function y(a){j.cssText=a}function z(a,b){return y(m.join(a+";")+(b||""))}function A(a,b){return typeof a===b}function B(a,b){return!!~(""+a).indexOf(b)}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:A(f,"function")?f.bind(d||b):f}return!1}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n={svg:"http://www.w3.org/2000/svg"},o={},p={},q={},r=[],s=r.slice,t,u=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["&#173;",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},v=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return u("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},w={}.hasOwnProperty,x;!A(w,"undefined")&&!A(w.call,"undefined")?x=function(a,b){return w.call(a,b)}:x=function(a,b){return b in a&&A(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=s.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(s.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(s.call(arguments)))};return e}),o.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:u(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},o.svg=function(){return!!b.createElementNS&&!!b.createElementNS(n.svg,"svg").createSVGRect},o.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==n.svg},o.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(l.call(b.createElementNS(n.svg,"clipPath")))};for(var D in o)x(o,D)&&(t=D.toLowerCase(),e[t]=o[D](),r.push((e[t]?"":"no-")+t));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)x(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},y(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;
vendor: 6,653 bytes, lines 414-421
414return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=m,e.mq=v,e.testStyles=u,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+r.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},Modernizr.addTest("ie8compat",function(){return!window.addEventListener&&document.documentMode&&document.documentMode===7});
415
416;/*})'"*/
417;/*})'"*/
418;var libFuncName=null;if(typeof jQuery==='undefined'&&typeof Zepto==='undefined'&&typeof $==='function'){libFuncName=$}
419else if(typeof jQuery==='function'){libFuncName=jQuery}
420else if(typeof Zepto==='function'){libFuncName=Zepto}
421else{throw new TypeError()}(function(t,n,e,i){'use strict';n.matchMedia=n.matchMedia||(function(t,n){'use strict';var o,i=t.documentElement,a=i.firstElementChild||i.firstChild,r=t.createElement('body'),e=t.createElement('div');
421e.id='mq-test-1';e.style.cssText='position:absolute;top:-100em';r.style.background='none';r.appendChild(e);return function(t){e.innerHTML='&shy;<style media="'+t+'"> #mq-test-1 { width: 42px; }</style>';i.insertBefore(r,a);o=e.offsetWidth===42;i.removeChild(r);return{matches:o,media:t}}}(e));if(!Array.prototype.filter){Array.prototype.filter=function(t){'use strict';if(this==null){throw new TypeError()};var e=Object(this),a=e.length>>>0;if(typeof t!=='function'){return};var r=[],o=arguments[1];for(var n=0;n<a;n++){if(n in e){var i=e[n];if(t&&t.call(o,i,n,e)){r.push(i)}}};return r}};if(!Function.prototype.bind){Function.prototype.bind=function(t){if(typeof this!=='function'){throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable')};var i=Array.prototype.slice.call(arguments,1),r=this,n=function(){},e=function(){return r.apply(this instanceof n&&t?this:t,i.concat(Array.prototype.slice.call(arguments)))};n.prototype=this.prototype;e.prototype=new n();return e}};if(!Array.prototype.indexOf){Array.prototype.indexOf=function(t){'use strict';if(this==null){throw new TypeError()};var r=Object(this),i=r.length>>>0;if(i===0){return-1};var n=0;if(arguments.length>1){n=Number(arguments[1]);if(n!=n){n=0}
422else if(n!=0&&n!=Infinity&&n!=-Infinity){n=(n>0||-1)*Math.floor(Math.abs(n))}};if(n>=i){return-1};var e=n>=0?n:Math.max(i-Math.abs(n),0);for(;e<i;e++){if(e in r&&r[e]===t){return e}};return-1}};t.fn.stop=t.fn.stop||function(){return this};n.Foundation={name:'Foundation',version:'4.3.1',cache:{},init:function(n,e,a,u,l,r){var o,i=[n,a,u,l],f=[],r=r||!1;if(r)this.nc=r;this.rtl=/rtl/i.test(t('html').attr('dir'));this.scope=n||this.scope;if(e&&typeof e==='string'&&!/reflow/i.test(e)){if(/off/i.test(e))return this.off();o=e.split(' ');if(o.length>0){for(var s=o.length-1;s>=0;s--){f.push(this.init_lib(o[s],i))}}}
423else{if(/reflow/i.test(e))i[1]='reflow';for(var h in this.libs){f.push(this.init_lib(h,i))}};if(typeof e==='function'){i.unshift(e)};return this.response_obj(f,i)},response_obj:function(t,n){for(var e=0,i=n.length;e<i;e++){if(typeof n[e]==='function'){return n[e]({errors:t.filter(function(t){if(typeof t==='string')return t})})}};return t},init_lib:function(t,n){return this.trap(function(){if(this.libs.hasOwnProperty(t)){this.patch(this.libs[t]);return this.libs[t].init.apply(this.libs[t],n)}
424else{return function(){}}}.bind(this),t)},trap:function(t,n){if(!this.nc){try{return t()}catch(e){return this.error({name:n,message:'could not be initialized',more:e.name+' '+e.message})}};return t()},patch:function(t){this.fix_outer(t);t.scope=this.scope;t.rtl=this.rtl},inherit:function(t,n){var i=n.split(' ');for(var e=i.length-1;e>=0;e--){if(this.lib_methods.hasOwnProperty(i[e])){this.libs[t.name][i[e]]=this.lib_methods[i[e]]}}},random_str:function(t){var n='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');if(!t){t=Math.floor(Math.random()*n.length)};var i='';for(var e=0;e<t;e++){i+=n[Math.floor(Math.random()*n.length)]};return i},libs:{},lib_methods:{set_data:function(t,n){var e=[this.name,+new Date(),Foundation.random_str(5)].join('-');Foundation.cache[e]=n;t.attr('data-'+this.name+'-id',e);return n},get_data:function(t){return Foundation.cache[t.attr('data-'+this.name+'-id')]},remove_data:function(n){if(n){delete Foundation.cache[n.attr('data-'+this.name+'-id')];n.attr('data-'+this.name+'-id','')}
425else{t('[data-'+this.name+'-id]').each(function(){delete Foundation.cache[t(this).attr('data-'+this.name+'-id')];t(this).attr('data-'+this.name+'-id','')})}},throttle:function(t,n){var e=null;return function(){var i=this,r=arguments;clearTimeout(e);e=setTimeout(function(){t.apply(i,r)},n)}},data_options:function(n){var r={},i,e,o=(n.attr('data-options')||':').split(';'),s=o.length;function f(t){return!isNaN(t-0)&&t!==null&&t!==''&&t!==!1&&t!==!0};function a(n){if(typeof n==='string')return t.trim(n);return n};for(i=s-1;i>=0;i--){e=o[i].split(':');if(/true/i.test(e[1]))e[1]=!0;if(/false/i.test(e[1]))e[1]=!1;if(f(e[1]))e[1]=parseInt(e[1],10);if(e.length===2&&e[0].length>0){r[a(e[0])]=a(e[1])}};return r},delay:function(t,n){return setTimeout(t,n)},scrollTo:function(e,i,r){if(r<0)return;var a=i-t(n).scrollTop(),o=a/r*10;this.scrollToTimerCache=setTimeout(function(){if(!isNaN(parseInt(o,10))){n.scrollTo(0,t(n).scrollTop()+o);this.scrollTo(e,i,r-10)}}.bind(this),10)},scrollLeft:function(t){if(!t.length)return;return('scrollLeft' in t[0])?t[0].scrollLeft:t[0].pageXOffset},empty:function(t){if(t.length&&t.length>0)return!1;if(t.length&&t.length===0)return!0;for(var n in t){if(hasOwnProperty.call(t,n))return!1};return!0}},fix_outer:function(t){t.outerHeight=function(t,n){if(typeof Zepto==='function'){return t.height()};if(typeof n!=='undefined'){return t.outerHeight(n)};return t.outerHeight()};t.outerWidth=function(t,n){if(typeof Zepto==='function'){return t.width()};if(typeof n!=='undefined'){return t.outerWidth(n)};return t.outerWidth()}},error:function(t){return t.name+' '+t.message+'; '+t.more},off:function(){t(this.scope).off('.fndtn');t(n).off('.fndtn');return!0},zj:t};t.fn.foundation=function(){var t=Array.prototype.slice.call(arguments,0);
425return this.each(function(){Foundation.init.apply(Foundation,[this].concat(t));return this})}}(libFuncName,this,this.document));;/*})'"*/
426(function(t,s,i,e){'use strict';Foundation.libs.alerts={name:'alerts',version:'4.2.2',settings:{speed:300,callback:function(){}},init:function(i,s,e){this.scope=i||this.scope;if(typeof s==='object'){t.extend(!0,this.settings,s)};if(typeof s!=='string'){if(!this.settings.init){this.events()};return this.settings.init}
427else{return this[s].call(this,e)}},events:function(){var s=this;t(this.scope).on('click.fndtn.alerts','[data-alert] a.close',function(i){i.preventDefault();t(this).closest('[data-alert]').fadeOut(s.speed,function(){t(this).remove();s.settings.callback()})});this.settings.init=!0},off:function(){t(this.scope).off('.fndtn.alerts')},reflow:function(){}}}(Foundation.zj,this,this.document));;/*})'"*/
428(function(i,t,e,n){'use strict';Foundation.libs.clearing={name:'clearing',version:'4.3.1',settings:{templates:{viewing:'<a href="#" class="clearing-close">&times;</a><div class="visible-img" style="display: none"><img src="//:0"><p class="clearing-caption"></p><a href="#" class="clearing-main-prev"><span></span></a><a href="#" class="clearing-main-next"><span></span></a></div>'},close_selectors:'.clearing-close',init:!1,locked:!1},init:function(t,e,n){var s=this;Foundation.inherit(this,'set_data get_data remove_data throttle data_options');if(typeof e==='object'){n=i.extend(!0,this.settings,e)};if(typeof e!=='string'){i(this.scope).find('ul[data-clearing]').each(function(){var t=i(this),e=e||{},n=t.find('li'),a=s.get_data(t);if(!a&&n.length>0){e.$parent=t.parent();s.set_data(t,i.extend({},s.settings,e,s.data_options(t)));s.assemble(t.find('li'));if(!s.settings.init){s.events().swipe_events()}}});return this.settings.init}
429else{return this[e].call(this,n)}},events:function(){var e=this;i(this.scope).on('click.fndtn.clearing','ul[data-clearing] li',function(t,n,s){var n=n||i(this),s=s||n,a=n.next('li'),l=e.get_data(n.parent()),r=i(t.target);t.preventDefault();if(!l)e.init();if(s.hasClass('visible')&&n[0]===s[0]&&a.length>0&&e.is_open(n)){s=a;r=s.find('img')};e.open(r,n,s);e.update_paddles(s)}).on('click.fndtn.clearing','.clearing-main-next',function(i){this.nav(i,'next')}.bind(this)).on('click.fndtn.clearing','.clearing-main-prev',function(i){this.nav(i,'prev')}.bind(this)).on('click.fndtn.clearing',this.settings.close_selectors,function(i){Foundation.libs.clearing.close(i,this)}).on('keydown.fndtn.clearing',function(i){this.keydown(i)}.bind(this));i(t).on('resize.fndtn.clearing',function(){this.resize()}.bind(this));this.settings.init=!0;return this},swipe_events:function(){var t=this;i(this.scope).on('touchstart.fndtn.clearing','.visible-img',function(t){if(!t.touches){t=t.originalEvent};var e={start_page_x:t.touches[0].pageX,start_page_y:t.touches[0].pageY,start_time:(new Date()).getTime(),delta_x:0,is_scrolling:n};i(this).data('swipe-transition',e);t.stopPropagation()}).on('touchmove.fndtn.clearing','.visible-img',function(e){if(!e.touches){e=e.originalEvent};if(e.touches.length>1||e.scale&&e.scale!==1)return;var n=i(this).data('swipe-transition');if(typeof n==='undefined'){n={}};n.delta_x=e.touches[0].pageX-n.start_page_x;if(typeof n.is_scrolling==='undefined'){n.is_scrolling=!!(n.is_scrolling||Math.abs(n.delta_x)<Math.abs(e.touches[0].pageY-n.start_page_y))};if(!n.is_scrolling&&!n.active){e.preventDefault();var s=(n.delta_x<0)?'next':'prev';n.active=!0;t.nav(e,s)}}).on('touchend.fndtn.clearing','.visible-img',function(t){i(this).data('swipe-transition',{});t.stopPropagation()})},assemble:function(t){var e=t.parent();e.after('<div id="foundationClearingHolder"></div>');var s=i('#foundationClearingHolder'),a=this.get_data(e),r=e.detach(),n={grid:'<div class="carousel">'+this.outerHTML(r[0])+'</div>',viewing:a.templates.viewing},l='<div class="clearing-assembled"><div>'+n.viewing+n.grid+'</div></div>';return s.after(l).remove()},open:function(i,t,e){var a=e.closest('.clearing-assembled'),r=a.find('div').first(),s=r.find('.visible-img'),n=s.find('img').not(i);if(!this.locked()){n.attr('src',this.load(i)).css('visibility','hidden');this.loaded(n,function(){n.css('visibility','visible');a.addClass('clearing-blackout');r.addClass('clearing-container');s.show();this.fix_height(e).caption(s.find('.clearing-caption'),i).center(n).shift(t,e,function(){e.siblings().removeClass('visible');e.addClass('visible')})}.bind(this))}},close:function(t,e){t.preventDefault();var n=(function(i){if(/blackout/.test(i.selector)){return i}
430else{return i.closest('.clearing-blackout')}}(i(e))),s,a;
430if(e===t.target&&n){s=n.find('div').first();a=s.find('.visible-img');this.settings.prev_index=0;n.find('ul[data-clearing]').attr('style','').closest('.clearing-blackout').removeClass('clearing-blackout');s.removeClass('clearing-container');a.hide()};return!1},is_open:function(i){return i.parent().attr('style').length>0},keydown:function(t){var e=i('.clearing-blackout').find('ul[data-clearing]');if(t.which===39)this.go(e,'next');if(t.which===37)this.go(e,'prev');if(t.which===27)i('a.clearing-close').trigger('click')},nav:function(t,e){var n=i('.clearing-blackout').find('ul[data-clearing]');t.preventDefault();this.go(n,e)},resize:function(){var t=i('.clearing-blackout .visible-img').find('img');if(t.length){this.center(t)}},fix_height:function(t){var e=t.parent().children(),n=this;e.each(function(){var t=i(this),e=t.find('img');if(t.height()>n.outerHeight(e)){t.addClass('fix-height')}}).closest('ul').width(e.length*100+'%');return this},update_paddles:function(i){var t=i.closest('.carousel').siblings('.visible-img');if(i.next().length>0){t.find('.clearing-main-next').removeClass('disabled')}
431else{t.find('.clearing-main-next').addClass('disabled')};if(i.prev().length>0){t.find('.clearing-main-prev').removeClass('disabled')}
432else{t.find('.clearing-main-prev').addClass('disabled')}},center:function(i){if(!this.rtl){i.css({marginLeft:-(this.outerWidth(i)/2),marginTop:-(this.outerHeight(i)/2)})}
433else{i.css({marginRight:-(this.outerWidth(i)/2),marginTop:-(this.outerHeight(i)/2)})};return this},load:function(i){if(i[0].nodeName==='A'){var t=i.attr('href')}
434else{var t=i.parent().attr('href')};this.preload(i);if(t)return t;return i.attr('src')},preload:function(i){this.img(i.closest('li').next()).img(i.closest('li').prev())},loaded:function(i,t){function e(){t()};function n(){this.one('load',e);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var i=this.attr('src'),t=i.match(/\?/)?'&':'?';t+='random='+(new Date()).getTime();this.attr('src',i+t)}};if(!i.attr('src')){e();return};if(i[0].complete||i[0].readyState===4){e()}
435else{n.call(i)}},img:function(i){if(i.length){var t=new Image(),e=i.find('a');if(e.length){t.src=e.attr('href')}
436else{t.src=i.find('img').attr('src')}};return this},caption:function(i,t){var e=t.data('caption');if(e){i.html(e).show()}
437else{i.text('').hide()};return this},go:function(i,t){var n=i.find('.visible'),e=n[t]();if(e.length){e.find('img').trigger('click',[n,e])}},shift:function(i,t,e){var n=t.parent(),o=this.settings.prev_index||t.index(),s=this.direction(n,i,t),l=parseInt(n.css('left'),10),a=this.outerWidth(t),r;if(t.index()!==o&&!/skip/.test(s)){if(/left/.test(s)){this.lock();n.animate({left:l+a},300,this.unlock())}
438else if(/right/.test(s)){this.lock();n.animate({left:l-a},300,this.unlock())}}
439else if(/skip/.test(s)){r=t.index()-this.settings.up_count;this.lock();if(r>0){n.animate({left:-(r*a)},300,this.unlock())}
440else{n.animate({left:0},300,this.unlock())}};e()},direction:function(t,e,n){var r=t.find('li'),o=this.outerWidth(r)+(this.outerWidth(r)/4),l=Math.floor(this.outerWidth(i('.clearing-container'))/o)-1,s=r.index(n),a;this.settings.up_count=l;if(this.adjacent(this.settings.prev_index,s)){if((s>l)&&s>this.settings.prev_index){a='right'}
441else if((s>l-1)&&s<=this.settings.prev_index){a='left'}
442else{a=!1}}
443else{a='skip'};this.settings.prev_index=s;return a},adjacent:function(i,t){for(var e=t+1;e>=t-1;e--){if(e===i)return!0};return!1},lock:function(){this.settings.locked=!0},unlock:function(){this.settings.locked=!1},locked:function(){return this.settings.locked},outerHTML:function(i){return i.outerHTML||new XMLSerializer().serializeToString(i)},off:function(){i(this.scope).off('.fndtn.clearing');i(t).off('.fndtn.clearing');this.remove_data();this.settings.init=!1},reflow:function(){this.init()}}}(Foundation.zj,this,this.document));;/*})'"*/
444(function(e,t,s,n){'use strict';Foundation.libs.forms={name:'forms',version:'4.3.1',cache:{},settings:{disable_class:'no-custom',last_combo:null},init:function(t,s,i){if(typeof s==='object'){e.extend(!0,this.settings,s)};if(typeof s!=='string'){if(!this.settings.init){this.events()};this.assemble();return this.settings.init}
445else{return this[s].call(this,i)}},assemble:function(){e('form.custom input[type="radio"]',e(this.scope)).not('[data-customforms="disabled"]').not('.'+this.settings.disable_class).each(this.append_custom_markup);e('form.custom input[type="checkbox"]',e(this.scope)).not('[data-customforms="disabled"]').not('.'+this.settings.disable_class).each(this.append_custom_markup);e('form.custom select',e(this.scope)).not('[data-customforms="disabled"]').not('.'+this.settings.disable_class).not('[multiple=multiple]').each(this.append_custom_select)}
445,events:function(){var n=this;e(this.scope).on('click.fndtn.forms','form.custom span.custom.checkbox',function(t){t.preventDefault();t.stopPropagation();n.toggle_checkbox(e(this))}).on('click.fndtn.forms','form.custom span.custom.radio',function(t){t.preventDefault();t.stopPropagation();n.toggle_radio(e(this))}).on('change.fndtn.forms','form.custom select',function(t,s){if(e(this).is('[data-customforms="disabled"]'))return;n.refresh_custom_select(e(this),s)}).on('click.fndtn.forms','form.custom label',function(t){if(e(t.target).is('label')){var s=e('#'+n.escape(e(this).attr('for'))).not('[data-customforms="disabled"]'),i,o;if(s.length!==0){if(s.attr('type')==='checkbox'){t.preventDefault();i=e(this).find('span.custom.checkbox');if(i.length===0){i=s.add(this).siblings('span.custom.checkbox').first()};n.toggle_checkbox(i)}
446else if(s.attr('type')==='radio'){t.preventDefault();o=e(this).find('span.custom.radio');if(o.length===0){o=s.add(this).siblings('span.custom.radio').first()};n.toggle_radio(o)}}}}).on('mousedown.fndtn.forms','form.custom div.custom.dropdown',function(){return!1}).on('click.fndtn.forms','form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector',function(t){var o=e(this),s=o.closest('div.custom.dropdown'),a=i(s,'select');if(!s.hasClass('open'))e(n.scope).trigger('click');t.preventDefault();if(!1===a.is(':disabled')){s.toggleClass('open');if(s.hasClass('open')){e(n.scope).on('click.fndtn.forms.customdropdown',function(){s.removeClass('open');e(n.scope).off('.fndtn.forms.customdropdown')})}
447else{e(n.scope).on('.fndtn.forms.customdropdown')};return!1}}).on('click.fndtn.forms touchend.fndtn.forms','form.custom div.custom.dropdown li',function(t){var n=e(this),a=n.closest('div.custom.dropdown'),o=i(a,'select'),c=0;t.preventDefault();t.stopPropagation();if(!e(this).hasClass('disabled')){e('div.dropdown').not(a).removeClass('open');var l=n.closest('ul').find('li.selected');l.removeClass('selected');n.addClass('selected');a.removeClass('open').find('a.current').text(n.text());n.closest('ul').find('li').each(function(e){if(n[0]===this){c=e}});o[0].selectedIndex=c;o.data('prevalue',l.html());if(typeof(s.createEvent)!='undefined'){var d=s.createEvent('HTMLEvents');d.initEvent('change',!0,!0);o[0].dispatchEvent(d)}
448else{o[0].fireEvent('onchange')}}});e(t).on('keydown',function(t){var l=s.activeElement,d=Foundation.libs.forms,o=e('.custom.dropdown.open');if(o.length>0){t.preventDefault();if(t.which===13){o.find('li.selected').trigger('click')};if(t.which===27){o.removeClass('open')};if(t.which>=65&&t.which<=90){var i=d.go_to(o,t.which),n=o.find('li.selected');if(i){n.removeClass('selected');d.scrollTo(i.addClass('selected'),300)}};if(t.which===38){var n=o.find('li.selected'),a=n.prev(':not(.disabled)');if(a.length>0){a.parent()[0].scrollTop=a.parent().scrollTop()-d.outerHeight(a);n.removeClass('selected');a.addClass('selected')}}
449else if(t.which===40){var n=o.find('li.selected'),i=n.next(':not(.disabled)');if(i.length>0){i.parent()[0].scrollTop=i.parent().scrollTop()+d.outerHeight(i);n.removeClass('selected');i.addClass('selected')}}}});this.settings.init=!0},go_to:function(e,t){var i=e.find('li'),n=i.length;if(n>0){for(var s=0;s<n;s++){var o=i.eq(s).text().charAt(0).toLowerCase();if(o===String.fromCharCode(t).toLowerCase())return i.eq(s)}}},scrollTo:function(e,t){if(t<0)return;var s=e.parent(),n=this.outerHeight(e),o=(n*(e.index()))-s.scrollTop(),i=o/t*10;this.scrollToTimerCache=setTimeout(function(){if(!isNaN(parseInt(i,10))){s[0].scrollTop=s.scrollTop()+i;this.scrollTo(e,t-10)}}.bind(this),10)},append_custom_markup:function(t,s){var i=e(s),o=i.attr('type'),n=i.next('span.custom.'+o);if(!i.parent().hasClass('switch')){i.addClass('hidden-field')};if(n.length===0){n=e('<span class="custom '+o+'"></span>').insertAfter(i)};n.toggleClass('checked',i.is(':checked'));n.toggleClass('disabled',i.is(':disabled'))},append_custom_select:function(t,i){var o=Foundation.libs.forms,n=e(i),s=n.next('div.custom.dropdown'),d=s.find('ul'),g=s.find('.current'),u=s.find('.selector'),l=n.find('option'),m=l.filter(':selected'),p=n.attr('class')?n.attr('class').split(' '):[],r=0,c='',a,f=!1;
449if(s.length===0){var h=n.hasClass('small')?'small':n.hasClass('medium')?'medium':n.hasClass('large')?'large':n.hasClass('expand')?'expand':'';s=e('<div class="'+['custom','dropdown',h].concat(p).filter(function(e,t,s){if(e==='')return!1;return s.indexOf(e)===t}).join(' ')+'"><a href="#" class="selector"></a><ul /></div>');u=s.find('.selector');d=s.find('ul');c=l.map(function(){var t=e(this).attr('class')?e(this).attr('class'):'';return'<li class=\''+t+'\'>'+e(this).html()+'</li>'}).get().join('');d.append(c);f=s.prepend('<a href="#" class="current">'+m.html()+'</a>').find('.current');n.after(s).addClass('hidden-field')}
450else{c=l.map(function(){return'<li>'+e(this).html()+'</li>'}).get().join('');d.html('').append(c)};o.assign_id(n,s);s.toggleClass('disabled',n.is(':disabled'));a=d.find('li');o.cache[s.data('id')]=a.length;l.each(function(t){if(this.selected){a.eq(t).addClass('selected');if(f){f.html(e(this).html())}};if(e(this).is(':disabled')){a.eq(t).addClass('disabled')}});if(!s.is('.small, .medium, .large, .expand')){s.addClass('open');var o=Foundation.libs.forms;o.hidden_fix.adjust(d);r=(o.outerWidth(a)>r)?o.outerWidth(a):r;Foundation.libs.forms.hidden_fix.reset();s.removeClass('open')}},assign_id:function(e,t){var s=[+new Date(),Foundation.random_str(5)].join('-');e.attr('data-id',s);t.attr('data-id',s)},refresh_custom_select:function(t,i){var o=this,a=0,s=t.next(),d=t.find('option'),n=s.find('li');if(n.length!==this.cache[s.data('id')]||i){s.find('ul').html('');d.each(function(){var t=e('<li>'+e(this).html()+'</li>');s.find('ul').append(t)});d.each(function(t){if(this.selected){s.find('li').eq(t).addClass('selected');s.find('.current').html(e(this).html())};if(e(this).is(':disabled')){s.find('li').eq(t).addClass('disabled')}});s.removeAttr('style').find('ul').removeAttr('style');s.find('li').each(function(){s.addClass('open');if(o.outerWidth(e(this))>a){a=o.outerWidth(e(this))};s.removeClass('open')});n=s.find('li');this.cache[s.data('id')]=n.length}},toggle_checkbox:function(e){var t=e.prev(),s=t[0];if(!1===t.is(':disabled')){s.checked=((s.checked)?!1:!0);e.toggleClass('checked');t.trigger('change')}},toggle_radio:function(e){var t=e.prev(),s=t.closest('form.custom'),i=t[0];if(!1===t.is(':disabled')){s.find('input[type="radio"][name="'+this.escape(t.attr('name'))+'"]').next().not(e).removeClass('checked');if(!e.hasClass('checked')){e.toggleClass('checked')};i.checked=e.hasClass('checked');t.trigger('change')}},escape:function(e){if(!e)return'';return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,'\\$&')},hidden_fix:{tmp:[],hidden:null,adjust:function(t){var s=this;s.hidden=t.parents();s.hidden=s.hidden.add(t).filter(':hidden');s.hidden.each(function(){var t=e(this);s.tmp.push(t.attr('style'));t.css({'visibility':'hidden','display':'block'})})},reset:function(){var t=this;t.hidden.each(function(s){var i=e(this),o=t.tmp[s];if(o===n)i.removeAttr('style');else i.attr('style',o)});t.tmp=[];t.hidden=null}},off:function(){e(this.scope).off('.fndtn.forms')},reflow:function(){}};var i=function(t,s){var t=t.prev();while(t.length){if(t.is(s))return t;t=t.prev()};return e()}}(Foundation.zj,this,this.document));;/*})'"*/
451(function(a,t,e){var r='placeholder' in t.createElement('input'),i='placeholder' in t.createElement('textarea'),c=e.fn,u=e.valHooks,n,l;if(r&&i){l=c.placeholder=function(){return this};l.input=l.textarea=!0}
452else{l=c.placeholder=function(){var e=this;e.filter((r?'textarea':':input')+'[placeholder]').not('.placeholder').bind({'focus.placeholder':o,'blur.placeholder':d}).data('placeholder-enabled',!0).trigger('blur.placeholder');return e};l.input=r;l.textarea=i;n={'get':function(t){var a=e(t);return a.data('placeholder-enabled')&&a.hasClass('placeholder')?'':t.value},'set':function(a,l){var r=e(a);if(!r.data('placeholder-enabled')){return a.value=l};if(l==''){a.value=l;if(a!=t.activeElement){d.call(a)}}
453else if(r.hasClass('placeholder')){o.call(a,!0,l)||(a.value=l)}
454else{a.value=l};return r}};r||(u.input=n);i||(u.textarea=n);e(function(){e(t).delegate('form','submit.placeholder',function(){var t=e('.placeholder',this).each(o);setTimeout(function(){t.each(d)},10)})});e(a).bind('beforeunload.placeholder',function(){e('.placeholder').each(function(){this.value=''})})};function h(t){var a={},l=/^jQuery\d+$/;e.each(t.attributes,function(t,e){if(e.specified&&!l.test(e.name)){a[e.name]=e.value}});return a};function o(l,r){var o=this,a=e(o);if(o.value==a.attr('placeholder')&&a.hasClass('placeholder')){if(a.data('placeholder-password')){a=a.hide().next().show().attr('id',a.removeAttr('id').data('placeholder-id'));if(l===!0){return a[0].value=r};a.focus()}
455else{o.value='';a.removeClass('placeholder');o==t.activeElement&&o.select()}}};function d(){var a,l=this,t=e(l),i=t,r=this.id;if(l.value==''){if(l.type=='password'){if(!t.data('placeholder-textinput')){try{a=t.clone().attr({'type':'text'})}catch(n){a=e('<input>').attr(e.extend(h(this),{'type':'text'}))};a.removeAttr('name').data({'placeholder-password':!0,'placeholder-id':r}).bind('focus.placeholder',o);t.data({'placeholder-textinput':a,'placeholder-id':r}).before(a)};t=t.removeAttr('id').hide().prev().attr('id',r).show()};t.addClass('placeholder');t[0].value=t.attr('placeholder')}
456else{t.removeClass('placeholder')}}}(this,document,Foundation.zj));(function(e,t,a,l){'use strict';Foundation.libs.placeholder={name:'placeholder',version:'4.2.2',init:function(a,l,r){this.scope=a||this.scope;if(typeof l!=='string'){t.onload=function(){e('input, textarea').placeholder()}}}}}(Foundation.zj,this,this.document));;/*})'"*/
457(function(e,t,s,i){'use strict';Foundation.libs.reveal={name:'reveal',version:'4.2.2',locked:!1,settings:{animation:'fadeAndPop',animationSpeed:250,closeOnBackgroun
457dClick:!0,closeOnEsc:!0,dismissModalClass:'close-reveal-modal',bgClass:'reveal-modal-bg',open:function(){},opened:function(){},close:function(){},closed:function(){},bg:e('.reveal-modal-bg'),css:{open:{'opacity':0,'visibility':'visible','display':'block'},close:{'opacity':1,'visibility':'hidden','display':'none'}}},init:function(t,s,i){Foundation.inherit(this,'data_options delay');if(typeof s==='object'){e.extend(!0,this.settings,s)}
458else if(typeof i!=='undefined'){e.extend(!0,this.settings,i)};if(typeof s!=='string'){this.events();return this.settings.init}
459else{return this[s].call(this,i)}},events:function(){var t=this;e(this.scope).off('.fndtn.reveal').on('click.fndtn.reveal','[data-reveal-id]',function(s){s.preventDefault();if(!t.locked){var i=e(this),n=i.data('reveal-ajax');t.locked=!0;if(typeof n==='undefined'){t.open.call(t,i)}
460else{var o=n===!0?i.attr('href'):n;t.open.call(t,i,{url:o})}}}).on('click.fndtn.reveal',this.close_targets(),function(s){s.preventDefault();if(!t.locked){var i=e.extend({},t.settings,t.data_options(e('.reveal-modal.open')));if(e(s.target)[0]===e('.'+i.bgClass)[0]&&!i.closeOnBackgroundClick){return};t.locked=!0;t.close.call(t,e(this).closest('.reveal-modal'))}}).on('open.fndtn.reveal','.reveal-modal',this.settings.open).on('opened.fndtn.reveal','.reveal-modal',this.settings.opened).on('opened.fndtn.reveal','.reveal-modal',this.open_video).on('close.fndtn.reveal','.reveal-modal',this.settings.close).on('closed.fndtn.reveal','.reveal-modal',this.settings.closed).on('closed.fndtn.reveal','.reveal-modal',this.close_video);e('body').bind('keyup.reveal',function(s){var i=e('.reveal-modal.open'),n=e.extend({},t.settings,t.data_options(i));if(s.which===27&&n.closeOnEsc){i.foundation('reveal','close')}});return!0},open:function(t,i){if(t){if(typeof t.selector!=='undefined'){var s=e('#'+t.data('reveal-id'))}
461else{var s=e(this.scope);i=t}}
462else{var s=e(this.scope)};if(!s.hasClass('open')){var o=e('.reveal-modal.open');if(typeof s.data('css-top')==='undefined'){s.data('css-top',parseInt(s.css('top'),10)).data('offset',this.cache_offset(s))};s.trigger('open');if(o.length<1){this.toggle_bg(s)};if(typeof i==='undefined'||!i.url){this.hide(o,this.settings.css.close);this.show(s,this.settings.css.open)}
463else{var n=this,a=typeof i.success!=='undefined'?i.success:null;e.extend(i,{success:function(t,i,l){if(e.isFunction(a)){a(t,i,l)};s.html(t);e(s).foundation('section','reflow');n.hide(o,n.settings.css.close);n.show(s,n.settings.css.open)}});e.ajax(i)}}},close:function(t){var t=t&&t.length?t:e(this.scope),s=e('.reveal-modal.open');if(s.length>0){this.locked=!0;t.trigger('close');this.toggle_bg(t);this.hide(s,this.settings.css.close)}},close_targets:function(){var e='.'+this.settings.dismissModalClass;if(this.settings.closeOnBackgroundClick){return e+', .'+this.settings.bgClass};return e},toggle_bg:function(t){if(e('.reveal-modal-bg').length===0){this.settings.bg=e('<div />',{'class':this.settings.bgClass}).appendTo('body')};if(this.settings.bg.filter(':visible').length>0){this.hide(this.settings.bg)}
464else{this.show(this.settings.bg)}},show:function(s,i){if(i){if(/pop/i.test(this.settings.animation)){i.top=e(t).scrollTop()-s.data('offset')+'px';var n={top:e(t).scrollTop()+s.data('css-top')+'px',opacity:1};return this.delay(function(){return s.css(i).animate(n,this.settings.animationSpeed,'linear',function(){this.locked=!1;s.trigger('opened')}.bind(this)).addClass('open')}.bind(this),this.settings.animationSpeed/2)};if(/fade/i.test(this.settings.animation)){var n={opacity:1};return this.delay(function(){return s.css(i).animate(n,this.settings.animationSpeed,'linear',function(){this.locked=!1;s.trigger('opened')}.bind(this)).addClass('open')}.bind(this),this.settings.animationSpeed/2)};return s.css(i).show().css({opacity:1}).addClass('open').trigger('opened')};if(/fade/i.test(this.settings.animation)){return s.fadeIn(this.settings.animationSpeed/2)};return s.show()},hide:function(s,i){if(i){if(/pop/i.test(this.settings.animation)){var n={top:-e(t).scrollTop()-s.data('offset')+'px',opacity:0};return this.delay(function(){return s.animate(n,this.settings.animationSpeed,'linear',function(){this.locked=!1;s.css(i).trigger('closed')}.bind(this)).removeClass('open')}.bind(this),this.settings.animationSpeed/2)};if(/fade/i.test(this.settings.animation)){var n={opacity:0}
464;return this.delay(function(){return s.animate(n,this.settings.animationSpeed,'linear',function(){this.locked=!1;s.css(i).trigger('closed')}.bind(this)).removeClass('open')}.bind(this),this.settings.animationSpeed/2)};return s.hide().css(i).removeClass('open').trigger('closed')};if(/fade/i.test(this.settings.animation)){return s.fadeOut(this.settings.animationSpeed/2)};return s.hide()},close_video:function(t){var i=e(this).find('.flex-video'),s=i.find('iframe');if(s.length>0){s.attr('data-src',s[0].src);s.attr('src','about:blank');i.hide()}},open_video:function(t){var n=e(this).find('.flex-video'),s=n.find('iframe');if(s.length>0){var a=s.attr('data-src');if(typeof a==='string'){s[0].src=s.attr('data-src')}
465else{var o=s[0].src;s[0].src=i;s[0].src=o};n.show()}},cache_offset:function(e){var t=e.show().height()+parseInt(e.css('top'),10);e.hide();return t},off:function(){e(this.scope).off('.fndtn.reveal')},reflow:function(){}}}(Foundation.zj,this,this.document));;/*})'"*/
466(function(t,e,s){'use strict';Foundation.libs.section={name:'section',version:'4.3.1',settings:{deep_linking:!1,small_breakpoint:768,one_up:!0,section_selector:'[data-section]',region_selector:'section, .section, [data-section-region]',title_selector:'.title, [data-section-title]',resized_data_attr:'data-section-resized',small_style_data_attr:'data-section-small-style',content_selector:'.content, [data-section-content]',nav_selector:'[data-section="vertical-nav"], [data-section="horizontal-nav"]',active_class:'active',callback:function(){}},init:function(e,s,i){var n=this;Foundation.inherit(this,'throttle data_options position_right offset_right');if(typeof s==='object'){t.extend(!0,n.settings,s)};if(typeof s!=='string'){this.events();return!0}
467else{return this[s].call(this,i)}},events:function(){var i=this,o=[],g=i.settings.section_selector,c=i.settings.region_selector.split(','),l=i.settings.title_selector.split(',');for(var a=0,f=c.length;a<f;a++){var d=c[a];for(var n=0,h=l.length;n<h;n++){var r=g+'>'+d+'>'+l[n];o.push(r+' a');o.push(r)}};t(i.scope).on('click.fndtn.section',o.join(','),function(e){var s=t(this).closest(i.settings.title_selector);i.close_navs(s);if(s.siblings(i.settings.content_selector).length>0){i.toggle_active.call(s[0],e)}});t(e).on('resize.fndtn.section',i.throttle(function(){i.resize()},30)).on('hashchange.fndtn.section',i.set_active_from_hash);t(s).on('click.fndtn.section',function(e){if(e.isPropagationStopped&&e.isPropagationStopped())return;if(e.target===s)return;i.close_navs(t(e.target).closest(i.settings.title_selector))});t(e).triggerHandler('resize.fndtn.section');t(e).triggerHandler('hashchange.fndtn.section')},close_navs:function(e){var s=Foundation.libs.section,n=t(s.settings.nav_selector).filter(function(){return!t.extend({},s.settings,s.data_options(t(this))).one_up});if(e.length>0){var i=e.parent().parent();if(s.is_horizontal_nav(i)||s.is_vertical_nav(i)){n=n.filter(function(){return this!==i[0]})}};n.children(s.settings.region_selector).removeClass(s.settings.active_class)},toggle_active:function(e){var o=t(this),s=Foundation.libs.section,n=o.parent(),r=o.siblings(s.settings.content_selector),i=n.parent(),a=t.extend({},s.settings,s.data_options(i)),c=i.children(s.settings.region_selector).filter('.'+s.settings.active_class);if(!a.deep_linking&&r.length>0){e.preventDefault()};e.stopPropagation();if(!n.hasClass(s.settings.active_class)){c.removeClass(s.settings.active_class);n.addClass(s.settings.active_class);s.resize(n.find(s.settings.section_selector).not('['+s.settings.resized_data_attr+']'),!0)}
468else if(!a.one_up&&(s.small(i)||s.is_vertical_nav(i)||s.is_horizontal_nav(i)||s.is_accordion(i))){n.removeClass(s.settings.active_class)};a.callback(i)},check_resize_timer:null,resize:function(i,n){var e=Foundation.libs.section,a=e.small(t(s)),o=function(t,s){return!e.is_accordion(t)&&!t.is('['+e.settings.resized_data_attr+']')&&(!a||e.is_horizontal_tabs(t))&&s===(t.css('display')==='none'||!t.parent().is(':visible'))};i=i||t(e.settings.section_selector);clearTimeout(e.check_resize_timer);if(!a){i.removeAttr(e.settings.small_style_data_attr)};i.filter(function(){return o(t(this),!1)}).each(function(){var s=t(this),a=s.children(e.settings.region_selector),o=a.children(e.settings.title_selector),l=a.children(e.settings.content_selector),i=0;if(n&&s.children(e.settings.region_selector).filter('.'+e.settings.active_class).length==0){var g=t.extend({},e.settings,e.data_options(s));if(!g.deep_linking&&(g.one_up||!e.is_horizontal_nav(s)&&!e.is_vertical_nav(s)&&!e.is_accordion(s))){a.filter(':visible').first().addClass(e.settings.active_class)}};if(e.is_horizontal_tabs(s)||e.is_auto(s)){var f=0;o.each(function(){var s=t(this);if(s.is(':visible')){s.css(!e.rtl?'left':'right',f);var n=parseInt(s.css('border-'+(e.rtl?'left':'right')+'-width'),10);if(n.toString()==='Nan'){n=0};f+=e.outerWidth(s)-n;i=Math.max(i,e.outerHeight(s))}});o.css('height',i);a.each(function(){var n=t(this),a=n.children(e.settings.content_selector),s=parseInt(a.css('border-top-width'),10);if(s.toString()==='Nan'){s=0};n.css('padding-top',i-s)});s.css('min-height',i)}
469else if(e.is_horizontal_nav(s)){var d=!0;o.each(function(){i=Math.max(i,e.outerHeight(t(this)))});a.each(function(){var i=t(this);i.css('margin-left','-'+(d?s:i.children(e.settings.title_selector)).css('border-left-width'));d=!1});a.css('margin-top','-'+s.css('border-top-width'));o.css('height',i);l.css('top',i);s.css('min-height',i)}
470else if(e.is_vertical_tabs(s)){var c=0;o.each(function(){var s=t(this);if(s.is(':visible')){s.css('top',c);var i=parseInt(s.css('border-top-width'),10);if(i.toString()==='Nan'){i=0};c+=e.outerHeight(s)-i}});l.css('min-height',c+1)}
471else if(e.is_vertical_nav(s)){var r=0,h=!0;o.each(function(){r=Math.max(r,e.outerWidth(t(this)))});a.each(function(){var i=t(this);i.css('margin-top','-'+(h?s:i.children(e.settings.title_selector)).css('border-top-width'));h=!1});o.css('width',r);l.css(!e.rtl?'left':'right',r);s.css('width',r)};s.attr(e.settings.resized_data_attr,!0)});if(t(e.settings.section_selector).filter(function(){return o(t(this),!0)}).length>0)e.check_resize_timer=setTimeout(function(){e.resize(i.filter(function(){return o(t(this),!1)}),!0)},700);if(a){i.attr(e.settings.small_style_data_attr,!0)}},is_vertical_nav:function(t){return/vertical-nav/i.test(t.data('section'))},is_horizontal_nav:function(t){return/horizontal-nav/i.test(t.data('section'))},is_accordion:function(t){return/accordion/i.test(t.data('section'))},is_horizontal_tabs:function(t){return/^tabs$/i.test(t.data('section'))},is_vertical_tabs:function(t){return/vertical-tabs/i.test(t.data('section'))},is_auto:function(t){var e=t.data('section');return e===''||/auto/i.test(e)},set_active_from_hash:function(){var s=Foundation.libs.section,i=e.location.hash.substring(1),n=t(s.settings.section_selector);n.each(function(){var e=t(this),a=t.extend({},s.settings,s.data_options(e)),o=e.children(s.settings.region_selector),r=a.deep_linking&&i.length>0,n=!1;o.each(function(){var e=t(this);if(n){e.removeClass(s.settings.active_class)}
472else if(r){var a=e.children(s.settings.content_selector).data('slug');
472if(a&&new RegExp(a,'i').test(i)){if(!e.hasClass(s.settings.active_class))e.addClass(s.settings.active_class);n=!0}
473else{e.removeClass(s.settings.active_class)}}
474else if(e.hasClass(s.settings.active_class)){n=!0}});if(!n&&!a.deep_linking&&(a.one_up||!s.is_horizontal_nav(e)&&!s.is_vertical_nav(e)&&!s.is_accordion(e)))o.filter(':visible').first().addClass(s.settings.active_class)})},reflow:function(){var e=Foundation.libs.section;t(e.settings.section_selector).removeAttr(e.settings.resized_data_attr);e.throttle(function(){e.resize()},30)()},small:function(e){var s=t.extend({},this.settings,this.data_options(e));if(this.is_horizontal_tabs(e)){return!1};if(e&&this.is_accordion(e)){return!0};if(t('html').hasClass('lt-ie9')){return!0};if(t('html').hasClass('ie8compat')){return!0};return t(this.scope).width()<s.small_breakpoint},off:function(){t(this.scope).off('.fndtn.section');t(e).off('.fndtn.section');t(s).off('.fndtn.section')}};t.fn.reflow_section=function(t){var s=this,e=Foundation.libs.section;s.removeAttr(e.settings.resized_data_attr);e.throttle(function(){e.resize(s,t)},30)();return this}}(Foundation.zj,window,document));;/*})'"*/
475(function(t,i,o,e){'use strict';Foundation.libs.tooltips={name:'tooltips',version:'4.2.2',settings:{selector:'.has-tip',additionalInheritableClasses:[],tooltipClass:'.tooltip',appendTo:'body','disable-for-touch':!1,tipTemplate:function(t,i){return'<span data-selector="'+t+'" class="'+Foundation.libs.tooltips.settings.tooltipClass.substring(1)+'">'+i+'<span class="nub"></span></span>'}},cache:{},init:function(i,o,e){Foundation.inherit(this,'data_options');var s=this;if(typeof o==='object'){t.extend(!0,this.settings,o)}
476else if(typeof e!=='undefined'){t.extend(!0,this.settings,e)};if(typeof o!=='string'){if(Modernizr.touch){t(this.scope).on('click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip','[data-tooltip]',function(i){var o=t.extend({},s.settings,s.data_options(t(this)));if(!o['disable-for-touch']){i.preventDefault();t(o.tooltipClass).hide();s.showOrCreateTip(t(this))}}).on('click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip',this.settings.tooltipClass,function(i){i.preventDefault();t(this).fadeOut(150)})}
477else{t(this.scope).on('mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip','[data-tooltip]',function(i){var o=t(this);if(/enter|over/i.test(i.type)){s.showOrCreateTip(o)}
478else if(i.type==='mouseout'||i.type==='mouseleave'){s.hide(o)}})}}
479else{return this[o].call(this,e)}},showOrCreateTip:function(t){var i=this.getTip(t);if(i&&i.length>0){return this.show(t)};return this.create(t)},getTip:function(i){var e=this.selector(i),o=null;if(e){o=t('span[data-selector="'+e+'"]'+this.settings.tooltipClass)};return(typeof o==='object')?o:!1},selector:function(t){var i=t.attr('id'),o=t.attr('data-tooltip')||t.attr('data-selector');if((i&&i.length<1||!i)&&typeof o!='string'){o='tooltip'+Math.random().toString(36).substring(7);t.attr('data-selector',o)};return(i&&i.length>0)?i:o},create:function(i){var o=t(this.settings.tipTemplate(this.selector(i),t('<div></div>').html(i.attr('title')).html())),e=this.inheritable_classes(i);o.addClass(e).appendTo(this.settings.appendTo);if(Modernizr.touch){o.append('<span class="tap-to-close">tap to close </span>')};i.removeAttr('title').attr('title','');this.show(i)},reposition:function(o,e,s){var a,l,r,h,p,n;e.css('visibility','hidden').show();a=o.data('width');l=e.children('.nub');r=this.outerHeight(l);h=this.outerHeight(l);n=function(t,i,o,e,s,n){return t.css({'top':(i)?i:'auto','bottom':(e)?e:'auto','left':(s)?s:'auto','right':(o)?o:'auto','width':(n)?n:'auto'}).end()};n(e,(o.offset().top+this.outerHeight(o)+10),'auto','auto',o.offset().left,a);if(t(i).width()<767){n(e,(o.offset().top+this.outerHeight(o)+10),'auto','auto',12.5,t(this.scope).width());e.addClass('tip-override');n(l,-r,'auto','auto',o.offset().left)}
480else{var f=o.offset().left;if(Foundation.rtl){f=o.offset().left+o.offset().width-this.outerWidth(e)};n(e,(o.offset().top+this.outerHeight(o)+10),'auto','auto',f,a);e.removeClass('tip-override');if(s&&s.indexOf('tip-top')>-1){n(e,(o.offset().top-this.outerHeight(e)),'auto','auto',f,a).removeClass('tip-override')}
481else if(s&&s.indexOf('tip-left')>
481-1){n(e,(o.offset().top+(this.outerHeight(o)/2)-r*2.5),'auto','auto',(o.offset().left-this.outerWidth(e)-r),a).removeClass('tip-override')}
482else if(s&&s.indexOf('tip-right')>-1){n(e,(o.offset().top+(this.outerHeight(o)/2)-r*2.5),'auto','auto',(o.offset().left+this.outerWidth(o)+r),a).removeClass('tip-override')}};e.css('visibility','visible').hide()},inheritable_classes:function(i){var e=['tip-top','tip-left','tip-bottom','tip-right','noradius'].concat(this.settings.additionalInheritableClasses),o=i.attr('class'),s=o?t.map(o.split(' '),function(i,o){if(t.inArray(i,e)!==-1){return i}}).join(' '):'';return t.trim(s)},show:function(t){var i=this.getTip(t);this.reposition(t,i,t.attr('class'));i.fadeIn(150)},hide:function(t){var i=this.getTip(t);i.fadeOut(150)},reload:function(){var i=t(this);return(i.data('fndtn-tooltips'))?i.foundationTooltips('destroy').foundationTooltips('init'):i.foundationTooltips('init')},off:function(){t(this.scope).off('.fndtn.tooltip');t(this.settings.tooltipClass).each(function(i){t('[data-tooltip]').get(i).attr('title',t(this).text())}).remove()},reflow:function(){}}}(Foundation.zj,this,this.document));;/*})'"*/
483(function(t,e,s,i){'use strict';Foundation.libs.topbar={name:'topbar',version:'4.3.1',settings:{index:0,stickyClass:'sticky',custom_back_text:!0,back_text:'Back',is_hover:!0,mobile_show_parent_link:!0,scrolltop:!0,init:!1},init:function(i,a,n){Foundation.inherit(this,'data_options');var s=this;if(typeof a==='object'){t.extend(!0,this.settings,a)}
484else if(typeof n!=='undefined'){t.extend(!0,this.settings,n)};if(typeof a!=='string'){t('.top-bar, [data-topbar]').each(function(){t.extend(!0,s.settings,s.data_options(t(this)));s.settings.$w=t(e);s.settings.$topbar=t(this);s.settings.$section=s.settings.$topbar.find('section');s.settings.$titlebar=s.settings.$topbar.children('ul').first();s.settings.$topbar.data('index',0);var i=t('<div class=\'top-bar-js-breakpoint\'/>').insertAfter(s.settings.$topbar);s.settings.breakPoint=i.width();i.remove();s.assemble();if(s.settings.is_hover){s.settings.$topbar.find('.has-dropdown').addClass('not-click')};if(s.settings.$topbar.parent().hasClass('fixed')){t('body').css('padding-top',s.outerHeight(s.settings.$topbar))}});if(!s.settings.init){this.events()};return this.settings.init}
485else{return this[a].call(this,n)}},timer:null,events:function(){var s=this,i=this.outerHeight(t('.top-bar, [data-topbar]'));t(this.scope).off('.fndtn.topbar').on('click.fndtn.topbar','.top-bar .toggle-topbar, [data-topbar] .toggle-topbar',function(n){var a=t(this).closest('.top-bar, [data-topbar]'),o=a.find('section, .section'),r=a.children('ul').first();n.preventDefault();if(s.breakpoint()){if(!s.rtl){o.css({left:'0%'});o.find('>.name').css({left:'100%'})}
486else{o.css({right:'0%'});o.find('>.name').css({right:'100%'})};o.find('li.moved').removeClass('moved');a.data('index',0);a.toggleClass('expanded').css('height','')};if(!a.hasClass('expanded')){if(a.hasClass('fixed')){a.parent().addClass('fixed');a.removeClass('fixed');t('body').css('padding-top',i)}}
487else if(a.parent().hasClass('fixed')){a.parent().removeClass('fixed');a.addClass('fixed');t('body').css('padding-top','0');if(s.settings.scrolltop){e.scrollTo(0,0)}}}).on('click.fndtn.topbar','.top-bar li.has-dropdown',function(e){if(s.breakpoint())return;var i=t(this),a=t(e.target),n=i.closest('[data-topbar], .top-bar'),o=n.data('topbar');if(s.settings.is_hover&&!Modernizr.touch)return;e.stopImmediatePropagation();if(a[0].nodeName==='A'&&a.parent().hasClass('has-dropdown')){e.preventDefault()};if(i.hasClass('hover')){i.removeClass('hover').find('li').removeClass('hover')}
488else{i.addClass('hover')}}).on('click.fndtn.topbar','.top-bar .has-dropdown>a, [data-topbar] .has-dropdown>a',function(i){if(s.breakpoint()){i.preventDefault();var a=t(this),e=a.closest('.top-bar, [data-topbar]'),n=e.find('section, .section'),o=e.children('ul').first(),d=a.next('.dropdown').outerHeight(),r=a.closest('li');e.data('index',e.data('index')+1);r.addClass('moved');if(!s.rtl){n.css({left:-(100*e.data('index'))+'%'});n.find('>.name').css({left:100*e.data('index')+'%'})}
489else{n.css({right:-(100*e.data('index'))+'%'});n.find('>.name').css({right:100*e.data('index')+'%'})};e.css('height',s.outerHeight(a.siblings('ul'),!0)+s.height(o))}});t(e).on('resize.fndtn.topbar',function(){if(!s.breakpoint()){t('.top-bar, [data-topbar]').css('height','').removeClass('expanded').find('li').removeClass('hover')}}.bind(this));t('body').on('click.fndtn.topbar',function(e){var s=t(e.target).closest('[data-topbar], .top-bar');if(s.length>0){return};t('.top-bar li, [data-topbar] li').removeClass('hover')});t(this.scope).on('click.fndtn','.top-bar .has-dropdown .back, [data-topbar] .has-dropdown .back',function(i){i.preventDefault();var n=t(this),e=n.closest('.top-bar, [data-topbar]'),r=e.children('ul').first(),a=e.find('section, .section'),o=n.closest('li.moved'),d=o.parent();e.data('index',e.data('index')-1);if(!s.rtl){a.css({left:-(100*e.data('index'))+'%'});a.find('>.name').css({left:100*e.data('index')+'%'})}
490else{a.css({right:-(100*e.data('index'))+'%'});a.find('>.name').css({right:100*e.data('index')+'%'})};if(e.data('index')===0){e.css('height','')}
491else{e.css('height',s.outerHeight(d,!0)+s.height(r))};setTimeout(function(){o.removeClass('moved')},300)})},breakpoint:function(){return t(s).width()<=this.settings.breakPoint||t('html').hasClass('lt-ie9')},assemble:function(){var e=this;this.settings.$section.detach();this.settings.$section.find('.has-dropdown>a').each(function(){var i=t(this),n=i.siblings('.dropdown'),a=i.attr('href');if(e.settings.mobile_show_parent_link&&a&&a.length>1){var s=t('<li class="title back js-generated"><h5><a href="#"></a></h5></li><li><a class="parent-link js-generated" href="'+a+'">'+i.text()+'</a></li>')}
492else{var s=t('<li class="title back js-generated"><h5><a href="#"></a></h5></li>')};if(e.settings.custom_back_text==!0){s.find('h5>a').html('&laquo; '+e.settings.back_text)}
493else{s.find('h5>a').html('&laquo; '+i.html())};n.prepend(s)});this.settings.$section.appendTo(this.settings.$topbar);this.sticky()},height:function(e){var s=0,i=this;e.find('> li').each(function(){s+=i.outerHeight(t(this),!0)});return s},sticky:function(){var s='.'+this.settings.stickyClass;if(t(s).length>0){var i=t(s).length?t(s).offset().top:0,a=t(e),o=this.outerHeight(t('.top-bar')),n;t(e).resize(function(){clearTimeout(n);n=setTimeout(function(){i=t(s).offset().top},105)});a.scroll(function(){if(a.scrollTop()>(i)){t(s).addClass('fixed');t('body').css('padding-top',o)}
494else if(a.scrollTop()<=i){t(s).removeClass('fixed');t('body').css('padding-top','0')}})}},off:function(){t(this.scope).off('.fndtn.topbar');t(e).off('.fndtn.topbar')},reflow:function(){}}}(Foundation.zj,this,this.document));;/*})'"*/
495/*!
496 * jQuery throttle / debounce - v1.1 - 3/7/2010
497 * http://benalman.com/projects/jquery-throttle-debounce-plugin/
498 *
499 * Copyright (c) 2010 "Cowboy" Ben Alman
500 * Dual licensed under the MIT and GPL licenses.
501 * http://benalman.com/about/license/
502 */
503
504// Script: jQuery throttle / debounce: Sometimes, less is more!
505//
506// *Version: 1.1, Last updated: 3/7/2010*
507//
508// Project Home - http://benalman.com/projects/jquery-throttle-debounce-plugin/
509// GitHub       - http://github.com/cowboy/jquery-throttle-debounce/
510// Source       - http://github.com/cowboy/jquery-throttle-debounce/raw/master/jquery.ba-throttle-debounce.js
511// (Minified)   - http://github.com/cowboy/jquery-throttle-debounce/raw/master/jquery.ba-throttle-debounce.min.js (0.7kb)
512//
513// About: License
514//
515// Copyright (c) 2010 "Cowboy" Ben Alman,
516// Dual licensed under the MIT and GPL licenses.
517// http://benalman.com/about/license/
518//
519// About: Examples
520//
521// These working examples, complete with fully commented code, illustrate a few
522// ways in which this plugin can be used.
523//
524// Throttle - http://benalman.com/code/projects/jquery-throttle-debounce/examples/throttle/
525// Debounce - http://benalman.com/code/projects/jquery-throttle-debounce/examples/debounce/
526//
527// About: Support and Testing
528//
529// Information about what version or versions of jQuery this plugin has been
530// tested with, what browsers it has been tested in, and where the unit tests
531// reside (so you can test it yourself).
532//
533// jQuery Versions - none, 1.3.2, 1.4.2
534// Browsers Tested - Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome 4-5, Opera 9.6-10.1.
535// Unit Tests      - http://benalman.com/code/projects/jquery-throttle-debounce/unit/
536//
537// About: Release History
538//
539// 1.1 - (3/7/2010) Fixed a bug in <jQuery.throttle> where trailing callbacks
540//       executed later than they should. Reworked a fair amount of internal
541//       logic as well.
542// 1.0 - (3/6/2010) Initial release as a stand-alone project. Migrated over
543//       from jquery-misc repo v0.4 to jquery-throttle repo v1.0, added the
544//       no_trailing throttle parameter and debounce functionality.
545//
546// Topic: Note for non-jQuery users
547//
548// jQuery isn't actually required for this plugin, because nothing internal
549// uses any jQuery methods or properties. jQuery is just used as a namespace
550// under which these methods can exist.
551//
552// Since jQuery isn't actually required for this plugin, if jQuery doesn't exist
553// when this plugin is loaded, the method described below will be created in
554// the `Cowboy` namespace. Usage will be exactly the same, but instead of
555// $.method() or jQuery.method(), you'll need to use Cowboy.method().
556
557(function(window,undefined){
558  '$:nomunge'; // Used by YUI compressor.
559
560  // Since jQuery really isn't required for this plugin, use `jQuery` as the
561  // namespace only if it already exists, otherwise use the `Cowboy` namespace,
562  // creating it if necessary.
563  var $ = window.jQuery || window.Cowboy || ( window.Cowboy = {} ),
564
565  // Internal method reference.
566    jq_throttle;
567
568  // Method: jQuery.throttle
569  //
570  // Throttle execution of a function. Especially useful for rate limiting
571  // execution of handlers on events like resize and scroll. If you want to
572  // rate-limit execution of a function to a single time, see the
573  // <jQuery.debounce> method.
574  //
575  // In this visualization, | is a throttled-function call and X is the actual
576  // callback execution:
577  //
578  // > Throttled with `no_trailing` specified as false or unspecified:
579  // > ||||||||||||||||||||||||| (pause) |||||||||||||||||||||||||
580  // > X    X    X    X    X    X        X    X    X    X    X    X
581  // >
582  // > Throttled with `no_trailing` specified as true:
583  // > ||||||||||||||||||||||||| (pause) |||||||||||||||||||||||||
584  // > X    X    X    X    X             X    X    X    X    X
585  //
586  // Usage:
587  //
588  // > var throttled = jQuery.throttle( delay, [ no_trailing, ] callback );
589  // >
590  // > jQuery('selector').bind( 'someevent', throttled );
591  // > jQuery('selector').unbind( 'someevent', throttled );
592  //
vendor: 4,180 bytes, lines 593-702
593  // This also works in jQuery 1.4+:
594  //
595  // > jQuery('selector').bind( 'someevent', jQuery.throttle( delay, [ no_trailing, ] callback ) );
596  // > jQuery('selector').unbind( 'someevent', callback );
597  //
598  // Arguments:
599  //
600  //  delay - (Number) A zero-or-greater delay in milliseconds. For event
601  //    callbacks, values around 100 or 250 (or even higher) are most useful.
602  //  no_trailing - (Boolean) Optional, defaults to false. If no_trailing is
603  //    true, callback will only execute every `delay` milliseconds while the
604  //    throttled-function is being called. If no_trailing is false or
605  //    unspecified, callback will be executed one final time after the last
606  //    throttled-function call. (After the throttled-function has not been
607  //    called for `delay` milliseconds, the internal counter is reset)
608  //  callback - (Function) A function to be executed after delay milliseconds.
609  //    The `this` context and all arguments are passed through, as-is, to
610  //    `callback` when the throttled-function is executed.
611  //
612  // Returns:
613  //
614  //  (Function) A new, throttled, function.
615
616  $.throttle = jq_throttle = function( delay, no_trailing, callback, debounce_mode ) {
617    // After wrapper has stopped being called, this timeout ensures that
618    // `callback` is executed at the proper times in `throttle` and `end`
619    // debounce modes.
620    var timeout_id,
621
622    // Keep track of the last time `callback` was executed.
623      last_exec = 0;
624
625    // `no_trailing` defaults to falsy.
626    if ( typeof no_trailing !== 'boolean' ) {
627      debounce_mode = callback;
628      callback = no_trailing;
629      no_trailing = undefined;
630    }
631
632    // The `wrapper` function encapsulates all of the throttling / debouncing
633    // functionality and when executed will limit the rate at which `callback`
634    // is executed.
635    function wrapper() {
636      var that = this,
637        elapsed = +new Date() - last_exec,
638        args = arguments;
639
640      // Execute `callback` and update the `last_exec` timestamp.
641      function exec() {
642        last_exec = +new Date();
643        callback.apply( that, args );
644      };
645
646      // If `debounce_mode` is true (at_begin) this is used to clear the flag
647      // to allow future `callback` executions.
648      function clear() {
649        timeout_id = undefined;
650      };
651
652      if ( debounce_mode && !timeout_id ) {
653        // Since `wrapper` is being called for the first time and
654        // `debounce_mode` is true (at_begin), execute `callback`.
655        exec();
656      }
657
658      // Clear any existing timeout.
659      timeout_id && clearTimeout( timeout_id );
660
661      if ( debounce_mode === undefined && elapsed > delay ) {
662        // In throttle mode, if `delay` time has been exceeded, execute
663        // `callback`.
664        exec();
665
666      } else if ( no_trailing !== true ) {
667        // In trailing throttle mode, since `delay` time has not been
668        // exceeded, schedule `callback` to execute `delay` ms after most
669        // recent execution.
670        //
671        // If `debounce_mode` is true (at_begin), schedule `clear` to execute
672        // after `delay` ms.
673        //
674        // If `debounce_mode` is false (at end), schedule `callback` to
675        // execute after `delay` ms.
676        timeout_id = setTimeout( debounce_mode ? clear : exec, debounce_mode === undefined ? delay - elapsed : delay );
677      }
678    };
679
680    // Set the guid of `wrapper` function to the same of original callback, so
681    // it can be removed in jQuery 1.4+ .unbind or .die by using the original
682    // callback as a reference.
683    if ( $.guid ) {
684      wrapper.guid = callback.guid = callback.guid || $.guid++;
685    }
686
687    // Return the wrapper function.
688    return wrapper;
689  };
690
691  // Method: jQuery.debounce
692  //
693  // Debounce execution of a function. Debouncing, unlike throttling,
694  // guarantees that a function is only executed a single time, either at the
695  // very beginning of a series of calls, or at the very end. If you want to
696  // simply rate-limit execution of a function, see the <jQuery.throttle>
697  // method.
698  //
699  // In this visualization, | is a debounced-function call and X is the actual
700  // callback execution:
701  //
702  // >
702 Debounced with `at_begin` specified as false or unspecified:
703  // > ||||||||||||||||||||||||| (pause) |||||||||||||||||||||||||
704  // >                          X                                 X
705  // >
706  // > Debounced with `at_begin` specified as true:
707  // > ||||||||||||||||||||||||| (pause) |||||||||||||||||||||||||
708  // > X                                 X
709  //
710  // Usage:
711  //
712  // > var debounced = jQuery.debounce( delay, [ at_begin, ] callback );
713  // >
714  // > jQuery('selector').bind( 'someevent', debounced );
715  // > jQuery('selector').unbind( 'someevent', debounced );
716  //
717  // This also works in jQuery 1.4+:
718  //
719  // > jQuery('selector').bind( 'someevent', jQuery.debounce( delay, [ at_begin, ] callback ) );
720  // > jQuery('selector').unbind( 'someevent', callback );
721  //
722  // Arguments:
723  //
724  //  delay - (Number) A zero-or-greater delay in milliseconds. For event
725  //    callbacks, values around 100 or 250 (or even higher) are most useful.
726  //  at_begin - (Boolean) Optional, defaults to false. If at_begin is false or
727  //    unspecified, callback will only be executed `delay` milliseconds after
728  //    the last debounced-function call. If at_begin is true, callback will be
729  //    executed only at the first debounced-function call. (After the
730  //    throttled-function has not been called for `delay` milliseconds, the
731  //    internal counter is reset)
732  //  callback - (Function) A function to be executed after delay milliseconds.
733  //    The `this` context and all arguments are passed through, as-is, to
734  //    `callback` when the debounced-function is executed.
735  //
736  // Returns:
737  //
738  //  (Function) A new, debounced, function.
739
740  $.debounce = function( delay, at_begin, callback ) {
741    return callback === undefined
742      ? jq_throttle( delay, at_begin, false )
743      : jq_throttle( delay, callback, at_begin !== false );
744  };
745
746})(this);
747
748;/*})'"*/
749;/*})'"*/
750!function(a){a.fn.equalHeights=function(){var e=0,n=a(this);return n.each(function(){var n=a(this).innerHeight();n>e&&(e=n)}),n.height(e)},a('[data-equal]').each(function(){var e=a(this),n=e.data('equal');e.find(n).equalHeights()})}(jQuery);;/*})'"*/
751(function(e,t,a,i,s){e(i).foundation();a.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){console.log(Array.prototype.slice.call(arguments))}};var o='onorientationchange' in a,n=o?'orientationchange':'resize';e(a).load(function(){e('.js .royalSlider').css({'visibility':'visible','opacity':1})});e(a).load(function(){var i=0,t=e('.section-container.group-vr-property-information');if(t.length){e(a).on(n,e.throttle(250,function(){if(e(a).width()>i){t.each(function(){var a=t.find('p.title'),i=a.length;if(i){a.each(function(){var t=parseFloat(100/i).toFixed(2),a=e(this),n=t*a.parents('section').index();a.css({'width':t+'%','left':n+'%'})})}})}})).trigger(n)}});t._debounce=function(e,t){var a;return function(){var i=this,n=arguments,o=function(){a=null;e.apply(i,n)};clearTimeout(a);a=setTimeout(o,t)}};e(a).scroll(t._debounce(function(){if(e(i).scrollTop()===0){e('.l-header').removeClass('tiny')}
752else{e('.l-header').addClass('tiny')}},100));t.behaviors.vrweb_foundation_equal_heights={attach:function(t,i){var r=['.view-events.view-display-id-page'],o=e(r.join(','),t);if(o.length){e(a).on(n,e.throttle(250,function(){o.find('article').each(function(){e(this).find('> div.columns').removeAttr('height width').equalHeights()})})).trigger(n)}}};t.behaviors.vrweb_foundation_move_sharelink={attach:function(t,a){var i=['.view .bt-leads-share-url-form-wrapper'],n=e(i.join(','),t);$pagehead=e('#page-title',t);n.appendTo($pagehead)}};t.behaviors.vrweb_foundation_opt_in={attach:function(t,a){if(i.querySelector('body.opt_in-processed')){return};let wrapper=i.createElement('div');wrapper.setAttribute('class','sms-wrapper');var r=i.createElement('input'),n=i.createElement('label');n.setAttribute('style','float: left; margin-top: 1.5px; margin-right: 3px;');n.setAttribute('class','opt-in');n.innerHTML='By providing your phone number, you agree to receive informational text messages from Oak Island Accommodations. Message and data rates may apply. Message frequency varies.';r.type='checkbox';r.required='true';var o=i.getElementsByClassName('form-item-addresses-primary-phone-1');let inter3231=setInterval(function(){if(o[0]){wrapper.appendChild(r);wrapper.appendChild(n);o[0].parentElement.insertBefore(wrapper,o[0].nextSibling)};e('body').addClass('opt_in-processed');clearInterval(inter3231)},500)}};t.behaviors.vrweb_foundation_beds_baths={attach:function(t,a){$bedsbaths=e('.group-beds-baths-wrapper',t);$bedsbaths.appendTo('#page-title')}};t.behaviors.vrweb_foundation_toggle_search={attach:function(t,a){$searchToggle=e('.off-canvas-trigger a');$container=e('#document');$searchToggle.toggle(function(){$container.removeClass('hide-search').addClass('show-search')},function(){$container.removeClass('show-search').addClass('hide-search')})}};t.behaviors.vrweb_foundation_toggle_menu={attach:function(t,a){$menuToggle=e('.toggle-topbar');var n=['#document, nav.top-bar'],i=e(n.join(','),t);$menuToggle.toggle(function(){i.addClass('expanded')},function(){i.removeClass('expanded')})}};t.behaviors.favorites_update={attach:function(t,a){$favoritesLink=e('.favorites-cart .block-vrweb-favorites-my-favorites-link',t);$favoritesContent=e('.favorites-cart .view-favorites .view-filters');$favoritesLabel=e('.favorites-cart .block-vrweb-favorites-my-favorites-link .service-label',t);$favoritesLink.appendTo($favoritesContent);$favoritesLabel.text('Refresh')}};t.behaviors.foundationCollapseHack={attach:function(i,n){if(typeof t.settings.gmap!='undefined'&&e('.view-display-id-block_location_by_nid').length){e(a).load(function(){var a=e('.view-display-id-block_location_by_nid');if(a.parents('.section-container').length>0){a.parents('section').find('p.title').children('a').click(function(){var e=t.gmap.getMap('gmap-auto1map-gmap0'),a=e.vars.latitude,i=e.vars.longitude,n=e.vars.zoom;setTimeout(function(){google.maps.event.trigger(e.map,'resize');e.map.setCenter(new google.maps.LatLng(a,i),n)},0)})}})}}};t.behaviors.ttdevents_move_map={attach:function(i,n){e(a).load(function(){$ttdeventMap=e('.blog-ttd-events-details-page .view-location-by-nid',i);$ttdeventFeatured=e('.blog-ttd-events-details-page #featured-wrapper',i);if($ttdeventMap.length>0){$ttdeventMap.appendTo('#featured-wrapper');$ttdeventFeatured.addClass('has-loc');var a=t.gmap.getMap('gmap-auto1map-gmap0'),n=a.vars.latitude,o=a.vars.longitude,r=a.vars.zoom;setTimeout(function(){google.maps.event.trigger(a.map,'resize');a.map.setCenter(new google.maps.LatLng(n,o),r)},0)}})}};t.behaviors.move_map_search={attach:function(t,i){e(a).load(function(){var i=e('.map-results-page .sidebar-first',t),o=e('.map-results-page .l-main .view',t),r=e('.map-results-page .l-main',t);if(o.length){e(a).on(n,e.throttle(250,function(){if(i.parents(o)&&e(a).width()<768){i.prependTo(r)};if(i.parents(r)&&e(a).width()>767){i.appendTo(o)}})).trigger(n)}})}};t.behaviors.reveal_messages={attach:function(t,a){e('#status-messages.reveal-modal',t).foundation('reveal','open')}};t.behaviors.inquiry_selects={attach:function(t,a){var i=e('select#edit-field-inquiry-properties-und',t);if(i.length){i.removeAttr('width').select2({width:'resolve'})};var n=i.closest('form');i.on('change',function(){var t=e(this).val();if(t.length){var a=t.split('::');if(a[1]){location.href=a[1]}
753else{location.href=t}}})}};t.behaviors.modernizr_tests={attach:function(t,a){if(Modernizr.mq('only screen and (max-width: 767px)')){e(i).foundation('section',{callback:function(){var t,a=e('.group-vr-full-property-info section.active'),i=event;if(i.srcElement.offsetParent.className!=='title'){t=a.offset().top;e('html, body').animate({scrollTop:t},50)}}})}}};t.behaviors.foundationCollapseHack={attach:function(t,a){var i=e('p[data-section-title]',t);if(!i.length){return};i.each(function(){var t=this;e('a',this).on('click',function(){e(t).siblings('.content').find('riot-solr-result-map').each(function(){var e;if(this._tag){e=this._tag;setTimeout(function(){e.fitBounds()},0)}})})})}};t.behaviors.slider_resize_opened={attach:function(t,a){var i=e('.reveal-royalslider');if(!i.length){return};i.each(function(){var i='#'+e(this).data('reveal-id'),t=e(i),a=t.find('.royalSlider');if(!t.length||!a.length){return};t.on('opened',function(){var e=a.data('royalSlider');e.updateSliderSize(!0)})})}};t.behaviors.reviews_form={attach:function(t,a){e('.reveal-modal.open').find('#user-review-form').once(function(){e('html, body').animate({scrollTop:(e('#user-review-form').offset().top-50)},500)})}};t.behaviors.vrweb_foundation_update_search_filter_text={attach:function(a,i){let searchPage=e('.page-riottags-vrw-search');if(!searchPage.length){return};let updateSearchButtonText=function(){let availFilter=e('rc-riot-avail-filter');if(!availFilter.length){return};let submitButton=availFilter.find('.submit-wrap > input:submit');submitButton.val(t.t('Search'));let checkPoint=!1;
753e.each(availFilter.find('input:text'),function(){if(!checkPoint&&e(this).val()){checkPoint=!0}});if(checkPoint){submitButton.val(t.t('Search'))}};updateSearchButtonText();e('rc-riot-avail-filter input.end').on('change',function(){updateSearchButtonText();location.reload()})}};t.behaviors.lazy_load_backgrounds={attach:function(t,i){var n,o=e('.lazy-bg, .front .paragraphs-item-text-block, .front .l-triptych, .footer-middle-wrapper',t);if(!o.length){return};if('IntersectionObserver' in a){n=new IntersectionObserver(function(e,t){e.forEach(function(e){if(e.isIntersecting){r(e.target)}})})};function r(e){e.classList.remove('lazy-bg');e.classList.add('lazy-visible');n.unobserve(e)};o.each(function(){if(n){n.observe(this)}
754else{r(this)}})}};function r(){const element=i.querySelector('#homepageVideo');if(element){const setVideoElementAttributes=function(){if(a.innerWidth>=767){element.setAttribute('autoplay','');element.setAttribute('playsinline','');element.setAttribute('preload','auto')}};a.addEventListener('resize',setVideoElementAttributes);setVideoElementAttributes()}};i.addEventListener('DOMContentLoaded',r)})(jQuery,Drupal,this,this.document);;/*})'"*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.