vendor: 30,046 bytes, line 1
1function Matrix(){}!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(k,e){var t=[],E=k.document,c=t.slice,g=t.concat,s=t.push,r=t.indexOf,n={},i=n.toString,f=n.hasOwnProperty,m={},o="2.2.4",D=function(e,t){return new D.fn.init(e,t)},a=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,u=/^-ms-/,l=/-([\da-z])/gi,d=function(e,t){return t.toUpperCase()};function h(e){var t=!!e&&"length"in e&&e.length,n=D.type(e);return"function"!==n&&!D.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}D.fn=D.prototype={jquery:o,constructor:D,selector:"",length:0,toArray:function(){return c.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:c.call(this)},pushStack:function(e){var t=D.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return D.each(this,e)},map:function(n){return this.pushStack(D.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:t.sort,splice:t.splice},D.extend=D.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||D.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(i=e[t])&&(l&&i&&(D.isPlainObject(i)||(r=D.isArray(i)))?(o=r?(r=!1,n&&D.isArray(n)?n:[]):n&&D.isPlainObject(n)?n:{},a[t]=D.extend(l,o,i)):void 0!==i&&(a[t]=i));return a},D.extend({expando:"jQuery"+(o+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===D.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!D.isArray(e)&&0<=t-parseFloat(t)+1},isPlainObject:function(e){var t;if("object"!==D.type(e)||e.nodeType||D.isWindow(e))return!1;if(e.constructor&&!f.call(e,"constructor")&&!f.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||f.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=D.trim(e))&&(1===e.indexOf("use strict")?((t=E.createElement("script")).text=e,E.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(u,"ms-").replace(l,d)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(h(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(a,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(h(Object(e))?D.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:r.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,a=!n;r<o;r++)!t(e[r],r)!==a&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,a=[];if(h(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&a.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&a.push(r);return g.apply([],a)},guid:1,proxy:function(e,t){var n,i,r;return"string"==typeof t&&(n=e[t],t=e,e=n),D.isFunction(e)?(i=c.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(c.call(arguments)))}).guid=e.guid=e.guid||D.guid++,r):void 0},now:Date.now,support:m}),"function"==typeof Symbol&&(D.fn[Symbol.iterator]=t[Symbol.iterator]),D.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var p=function(n){var e,f,w,o,r,g,d,m,x,u,l,_,k,a,E,v,s,c,y,D="sizzle"+1*new Date,b=n.document,C=0,i=0,h=re(),p=re(),S=re(),T=function(e,t){return e===t&&(l=!0),0},F={}.hasOwnProperty,t=[],I=t.pop,P=t.push,M=t.push,A=t.slice,N=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},O="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",j="\\["+L+"*("+R+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+L+"*\\]",z=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",H=new RegExp(L+"+","g"),$=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),B=new RegExp("^"+L+"*,"+L+"*"),q=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),W=new RegExp(z),Y=new RegExp("^"+R+"$"),Q={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Z=/'|\\/g,ee=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),te=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ne=function(){_()};try{M.apply(t=A.call(b.childNodes),b.childNodes),t[b.childNodes.length].nodeType}catch(e){M={apply:t.length?function(e,t){P.apply(e,A.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ie(e,t,n,i){var r,o,a,s,u,l,c,d,h=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!i&&((t?t.ownerDocument||t:b)!==k&&_(t),t=t||k,E)){if(11!==p&&(l=K.exec(e)))if(r=l[1]){if(9===p){if(!(a=t.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(h&&(a=h.getElementById(r))&&y(t,a)&&a.id===r)return n.push(a),n}else{if(l[2])return M.apply(n,t.getElementsByTagName(e)),n;if((r=l[3])&&f.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(r)),n}if(f.qsa&&!S[e+" "]&&(!v||!v.test(e))){if(1!==p)h=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(Z,"\\$&"):t.setAttribute("id",s=D),o=(c=g(e)).length,u=Y.test(s)?"#"+s:"[id='"+s+"']";o--;)c[o]=u+" "+fe(c[o]);d=c.join(","),h=J.test(e)&&he(t.parentNode)||t}if(d)try{return M.apply(n,h.querySelectorAll(d)),n}catch(e){}finally{s===D&&t.removeAttribute("id")}}}return m(e.replace($,"$1"),t,n,i)}function re(){var i=[];return function e(t,n){return i.push(t+" ")>w.cacheLength&&delete e[i.shift()],e[t+" "]=n}}function oe(e){return e[D]=!0,e}function ae(e){var t=k.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function se(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function ue(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function le(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ce(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function de(a){return oe(function(o){return o=+o,oe(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function he(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=ie.support={},r=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},_=ie.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:b;return i!==k&&9===i.nodeType&&i.documentElement&&(a=(k=i).documentElement,E=!r(k),(n=k.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",ne,!1):n.attachEvent&&n.attachEvent("onunload",ne)),f.attributes=ae(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=ae(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=X.test(k.getElementsByClassName),f.getById=ae(function(e){return a.appendChild(e).id=D,!k.getElementsByName||!k.getElementsByName(D).length}),f.getById?(w.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}},w.filter.ID=function(e){var t=e.replace(ee,te);return function(e){return e.getAttribute("id")===t}}):(delete w.find.ID,w.filter.ID=function(e){var n=e.replace(ee,te);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}}),w.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=f.getElementsByClassName&&function(e,t){return void 0!==t.getElementsByClassName&&E?t.getElementsByClassName(e):void 0},s=[],v=[],(f.qsa=X.test(k.querySelectorAll))&&(ae(function(e){a.appendChild(e).innerHTML="<a id='"+D+"'></a><select id='"+D+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+L+"*(?:value|"+O+")"),e.querySelectorAll("[id~="+D+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+D+"+*").length||v.push(".#.+[+~]")}),ae(function(e){var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+L+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(f.matchesSelector=X.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ae(function(e){f.disconnectedMatch=c.call(e,"div"),c.call(e,"[s!='']:x"),s.push("!=",z)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=X.test(a.compareDocumentPosition),y=t||X.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===k||e.ownerDocument===b&&y(b,e)?-1:t===k||t.ownerDocument===b&&y(b,t)?1:u?N(u,e)-N(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e===k?-1:t===k?1:r?-1:o?1:u?N(u,e)-N(u,t):0;if(r===o)return ue(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ue(a[i],s[i]):a[i]===b?-1:s[i]===b?1:0}),k},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==k&&_(e),t=t.replace(U,"='$1']"),f.matchesSelector&&E&&!S[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<ie(t,k,null,[e]).length},ie.contains=function(e,t){return(e.ownerDocument||e)!==k&&_(e),y(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==k&&_(e);var n=w.attrHandle[t.toLowerCase()],i=n&&F.call(w.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==i?i:f.attributes||!E?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,n=[],i=0,r=0;if(l=!f.detectDuplicates,u=!f.sortStable&&e.slice(0),e.sort(T),l){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return u=null,e},o=ie.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(w=ie.selectors={cacheLength:50,createPseudo:oe,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ee,te),e[3]=(e[3]||e[4]||e[5]||"").replace(ee,te),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=g(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ee,te).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=h[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&h(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=ie.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1<t.indexOf(r):"$="===i?r&&t.slice(-r.length)===r:"~="===i?-1<(" "+t.replace(H," ")+" ").indexOf(r):"|="===i&&(t===r||t.slice(0,r.length+1)===r+"-"))}},CHILD:function(f,e,t,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,u,l=v!==y?"nextSibling":"previousSibling",c=e.parentNode,d=b&&e.nodeName.toLowerCase(),h=!n&&!b,p=!1;if(c){if(v){for(;l;){for(a=e;a=a[l];)if(b?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;u=l="only"===f&&!u&&"nextSibling"}return!0}if(u=[y?c.firstChild:c.lastChild],y&&h){for(p=(s=(i=(r=(o=(a=c)[D]||(a[D]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===C&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[l]||(p=s=0)||u.pop();)if(1===a.nodeType&&++p&&a===e){r[f]=[C,s,p];break}}else if(h&&(p=s=(i=(r=(o=(a=e)[D]||(a[D]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===C&&i[1]),!1===p)for(;(a=++s&&a&&a[l]||(p=s=0)||u.pop())&&((b?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++p||(h&&((r=(o=a[D]||(a[D]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[C,p]),a!==e)););return(p-=m)===g||p%g==0&&0<=p/g}}},PSEUDO:function(e,o){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return a[D]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?oe(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=N(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:oe(function(e){var i=[],r=[],s=d(e.replace($,"$1"));return s[D]?oe(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:oe(function(t){return function(e){return 0<ie(t,e).length}}),contains:oe(function(t){return t=t.replace(ee,te),function(e){return-1<(e.textContent||e.innerText||o(e)).indexOf(t)}}),lang:oe(function(n){return Y.test(n||"")||ie.error("unsupported lang: "+n),n=n.replace(ee,te).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:de(function(){return[0]}),last:de(function(e,t){return[t-1]}),eq:de(function(e,t,n){return[n<0?n+t:n]}),even:de(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:de(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:de(function(e,t,n){for(var i=n<0?n+t:n;0<=--i;)e.push(i);return e}),gt:de(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[e]=le(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=ce(e);function pe(){}function fe(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function ge(s,e,t){var u=e.dir,l=t&&"parentNode"===u,c=i++;return e.first?function(e,t,n){for(;e=e[u];)if(1===e.nodeType||l)return s(e,t,n)}:function(e,t,n){var i,r,o,a=[C,c];if(n){for(;e=e[u];)if((1===e.nodeType||l)&&s(e,t,n))return!0}else for(;e=e[u];)if(1===e.nodeType||l){if((i=(r=(o=e[D]||(e[D]={}))[e.uniqueID]||(o[e.uniqueID]={}))[u])&&i[0]===C&&i[1]===c)return a[2]=i[2];if((r[u]=a)[2]=s(e,t,n))return!0}}}function me(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function ve(e,t,n,i,r){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),l&&t.push(s)));return a}function ye(p,f,g,m,v,e){return m&&!m[D]&&(m=ye(m)),v&&!v[D]&&(v=ye(v,e)),oe(function(e,t,n,i){var r,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)ie(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),d=!p||!e&&f?c:ve(c,s,p,n,i),h=g?v||(e?p:l||m)?[]:t:d;if(g&&g(d,h,n,i),m)for(r=ve(h,u),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(h[u[o]]=!(d[u[o]]=a));if(e){if(v||p){if(v){for(r=[],o=h.length;o--;)(a=h[o])&&r.push(d[o]=a);v(null,h=[],r,i)}for(o=h.length;o--;)(a=h[o])&&-1<(r=v?N(e,a):s[o])&&(e[r]=!(t[r]=a))}}else h=ve(h===t?h.splice(l,h.length):h),v?v(null,t,h,i):M.apply(t,h)})}function be(e){for(var r,t,n,i=e.length,o=w.relative[e[0].type],a=o||w.relative[" "],s=o?1:0,u=ge(function(e){return e===r},a,!0),l=ge(function(e){return-1<N(r,e)},a,!0),c=[function(e,t,n){var i=!o&&(n||t!==x)||((r=t).nodeType?u(e,t,n):l(e,t,n));return r=null,i}];s<i;s++)if(t=w.relative[e[s].type])c=[ge(me(c),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[D]){for(n=++s;n<i&&!w.relative[e[n].type];n++);return ye(1<s&&me(c),1<s&&fe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&be(e.slice(s,n)),n<i&&be(e=e.slice(n)),n<i&&fe(e))}c.push(t)}return me(c)}return pe.prototype=w.filters=w.pseudos,w.setFilters=new pe,g=ie.tokenize=function(e,t){var n,i,r,o,a,s,u,l=p[e+" "];if(l)return t?0:l.slice(0);for(a=e,s=[],u=w.preFilter;a;){for(o in n&&!(i=B.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=q.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace($," ")}),a=a.slice(n.length)),w.filter)!(i=Q[o].exec(a))||u[o]&&!(i=u[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ie.error(e):p(e,s).slice(0)},d=ie.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=S[e+" "];if(!a){for(t||(t=g(e)),n=t.length;n--;)(a=be(t[n]))[D]?r.push(a):o.push(a);(a=S(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,u=0,l="0",c=e&&[],d=[],h=x,p=e||b&&w.find.TAG("*",r),f=C+=null==h?1:Math.random()||.1,g=p.length;for(r&&(x=t===k||t||r);l!==g&&null!=(o=p[l]);l++){if(b&&o){for(a=0,t||o.ownerDocument===k||(_(o),n=!E);s=m[a++];)if(s(o,t||k,n)){i.push(o);break}r&&(C=f)}y&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,y&&l!==u){for(a=0;s=v[a++];)s(c,d,t,n);if(e){if(0<u)for(;l--;)c[l]||d[l]||(d[l]=I.call(i));d=ve(d)}M.apply(i,d),r&&!e&&0<d.length&&1<u+v.length&&ie.uniqueSort(i)}return r&&(C=f,x=h),c},y?oe(i):i))).selector=e}return a},m=ie.select=function(e,t,n,i){var r,o,a,s,u,l="function"==typeof e&&e,c=!i&&g(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&f.getById&&9===t.nodeType&&E&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(ee,te),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Q.needsContext.test(e)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((u=w.find[s])&&(i=u(a.matches[0].replace(ee,te),J.test(o[0].type)&&he(t.parentNode)||t))){if(o.splice(r,1),!(e=i.length&&fe(o)))return M.apply(n,i),n;break}}return(l||d(e,c))(i,t,!E,n,!t||J.test(e)&&he(t.parentNode)||t),n},f.sortStable=D.split("").sort(T).join("")===D,f.detectDuplicates=!!l,_(),f.sortDetached=ae(function(e){return 1&e.compareDocumentPosition(k.createElement("div"))}),ae(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||se("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&ae(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||se("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),ae(function(e){return null==e.getAttribute("disabled")})||se(O,function(e,t,n){var i;return n?void 0:!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),ie}(k);D.find=p,D.expr=p.selectors,D.expr[":"]=D.expr.pseudos,D.uniqueSort=D.unique=p.uniqueSort,D.text=p.getText,D.isXMLDoc=p.isXML,D.contains=p.contains;var v=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&D(e).is(n))break;i.push(e)}return i},y=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=D.expr.match.needsContext,w=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;function _(e,n,i){if(D.isFunction(n))return D.grep(e,function(e,t){return!!n.call(e,t,e)!==i});if(n.nodeType)return D.grep(e,function(e){return e===n!==i});if("string"==typeof n){if(x.test(n))return D.filter(n,e,i);n=D.filter(n,e)}return D.grep(e,function(e){return-1<r.call(n,e)!==i})}D.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?D.find.matchesSelector(i,e)?[i]:[]:D.find.matches(e,D.grep(t,function(e){return 1===e.nodeType}))},D.fn.extend({find:function(e){var t,n=this.length,i=[],r=this;if("string"!=typeof e)return this.pushStack(D(e).filter(function(){for(t=0;t<n;t++)if(D.contains(r[t],this))return!0}));for(t=0;t<n;t++)D.find(e,r[t],i);return(i=this.pushStack(1<n?D.unique(i):i)).selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(_(this,e||[],!1))},not:function(e){return this.pushStack(_(this,e||[],!0))},is:function(e){return!!_(this,"string"==typeof e&&b.test(e)?D(e):e||[],!1).length}});var C,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(D.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||C,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):D.isFunction(e)?void 0!==n.ready?n.ready(e):e(D):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),D.makeArray(e,this));if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof D?t[0]:t,D.merge(this,D.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),w.test(i[1])&&D.isPlainObject(t))for(i in t)D.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=E.getElementById(i[2]))&&r.parentNode&&(this.length=1,this[0]=r),this.context=E,this.selector=e,this}).prototype=D.fn,C=D(E);var T=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function I(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}D.fn.extend({has:function(e){var t=D(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(D.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,i=0,r=this.length,o=[],a=b.test(e)||"string"!=typeof e?D(e,t||this.context):0;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&D.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?D.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?r.call(D(e),this[0]):r.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(D.uniqueSort(D.merge(this.get(),D(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),D.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return v(e,"parentNode")},parentsUntil:function(e,t,n){return v(e,"parentNode",n)},next:function(e){return I(e,"nextSibling")},prev:function(e){return I(e,"previousSibling")},nextAll:function(e){return v(e,"nextSibling")},prevAll:function(e){return v(e,"previousSibling")},nextUntil:function(e,t,n){return v(e,"nextSibling",n)},prevUntil:function(e,t,n){return v(e,"previousSibling",n)},siblings:function(e){return y((e.parentNode||{}).firstChild,e)},children:function(e){return y(e.firstChild)},contents:function(e){return e.contentDocument||D.merge([],e.childNodes)}},function(i,r){D.fn[i]=function(e,t){var n=D.map(this,r,e);return"Until"!==i.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=D.filter(t,n)),1<this.length&&(F[i]||D.uniqueSort(n),T.test(i)&&n.reverse()),this.pushStack(n)}});var P,M=/\S+/g;function A(){E.removeEventListener("DOMContentLoaded",A),k.removeEventListener("load",A),D.ready()}D.Callbacks=function(i){var e,n;i="string"==typeof i?(e=i,n={},D.each(e.match(M)||[],function(e,t){n[t]=!0}),n):D.extend({},i);var r,t,o,a,s=[],u=[],l=-1,c=function(){for(a=i.once,o=r=!0;u.length;l=-1)for(t=u.shift();++l<s.length;)!1===s[l].apply(t[0],t[1])&&i.stopOnFalse&&(l=s.length,t=!1);i.memory||(t=!1),r=!1,a&&(s=t?[]:"")},d={add:function(){return s&&(t&&!r&&(l=s.length-1,u.push(t)),function n(e){D.each(e,function(e,t){D.isFunction(t)?i.unique&&d.has(t)||s.push(t):t&&t.length&&"string"!==D.type(t)&&n(t)})}(arguments),t&&!r&&c()),this},remove:function(){return D.each(arguments,function(e,t){for(var n;-1<(n=D.inArray(t,s,n));)s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<D.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),r||c()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},D.extend({Deferred:function(e){var o=[["resolve","done",D.Callbacks("once memory"),"resolved"],["reject","fail",D.Callbacks("once memory"),"rejected"],["notify","progress",D.Callbacks("memory")]],r="pending",a={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var r=arguments;return D.Deferred(function(i){D.each(o,function(e,t){var n=D.isFunction(r[e])&&r[e];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&D.isFunction(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this===a?i.promise():this,n?[e]:arguments)})}),r=null}).promise()},promise:function(e){return null!=e?D.extend(e,a):a}},s={};return a.pipe=a.then,D.each(o,function(e,t){var n=t[2],i=t[3];a[t[1]]=n.add,i&&n.add(function(){r=i},o[1^e][2].disable,o[2][2].lock),s[t[0]]=function(){return s[t[0]+"With"](this===s?a:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var r,t,n,i=0,o=c.call(arguments),a=o.length,s=1!==a||e&&D.isFunction(e.promise)?a:0,u=1===s?e:D.Deferred(),l=function(t,n,i){return function(e){n[t]=this,i[t]=1<arguments.length?c.call(arguments):e,i===r?u.notifyWith(n,i):--s||u.resolveWith(n,i)}};if(1<a)for(r=new Array(a),t=new Array(a),n=new Array(a);i<a;i++)o[i]&&D.isFunction(o[i].promise)?o[i].promise().progress(l(i,t,r)).done(l(i,n,o)).fail(u.reject):--s;return s||u.resolveWith(n,o),u.promise()}}),D.fn.ready=function(e){return D.ready.promise().done(e),this},D.extend({isReady:!1,readyWait:1,holdReady:function(e){e?D.readyWait++:D.ready(!0)},ready:function(e){(!0===e?--D.readyWait:D.isReady)||((D.isReady=!0)!==e&&0<--D.readyWait||(P.resolveWith(E,[D]),D.fn.triggerHandler&&(D(E).triggerHandler("ready"),D(E).off("ready"))))}}),D.ready.promise=function(e){return P||(P=D.Deferred(),"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?k.setTimeout(D.ready):(E.addEventListener("DOMContentLoaded",A),k.addEventListener("load",A))),P.promise(e)},D.ready.promise();var N=function(e,t,n,i,r,o,a){var s=0,u=e.length,l=null==n;
1if("object"===D.type(n))for(s in r=!0,n)N(e,t,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,D.isFunction(i)||(a=!0),l&&(t=a?(t.call(e,i),null):(l=t,function(e,t,n){return l.call(D(e),n)})),t))for(;s<u;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:l?t.call(e):u?t(e[0],n):o},O=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function L(){this.expando=D.expando+L.uid++}L.uid=1,L.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!O(e))return{};var t=e[this.expando];return t||(t={},O(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[t]=n;else for(i in t)r[i]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var i;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(i=this.get(e,t))?i:this.get(e,D.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i,r,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{n=(i=D.isArray(t)?t.concat(t.map(D.camelCase)):(r=D.camelCase(t),t in o?[t,r]:(i=r)in o?[i]:i.match(M)||[])).length;for(;n--;)delete o[i[n]]}(void 0===t||D.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!D.isEmptyObject(t)}};var R=new L,j=new L,z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,H=/[A-Z]/g;function $(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(H,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:z.test(n)?D.parseJSON(n):n)}catch(e){}j.set(e,t,n)}else n=void 0;return n}D.extend({hasData:function(e){return j.hasData(e)||R.hasData(e)},data:function(e,t,n){return j.access(e,t,n)},removeData:function(e,t){j.remove(e,t)},_data:function(e,t,n){return R.access(e,t,n)},_removeData:function(e,t){R.remove(e,t)}}),D.fn.extend({data:function(i,e){var t,n,r,o=this[0],a=o&&o.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){j.set(this,i)}):N(this,function(t){var e,n;if(o&&void 0===t){if(void 0!==(e=j.get(o,i)||j.get(o,i.replace(H,"-$&").toLowerCase())))return e;if(n=D.camelCase(i),void 0!==(e=j.get(o,n)))return e;if(void 0!==(e=$(o,n,void 0)))return e}else n=D.camelCase(i),this.each(function(){var e=j.get(this,n);j.set(this,n,t),-1<i.indexOf("-")&&void 0!==e&&j.set(this,i,t)})},null,e,1<arguments.length,null,!0);if(this.length&&(r=j.get(o),1===o.nodeType&&!R.get(o,"hasDataAttrs"))){for(t=a.length;t--;)a[t]&&(0===(n=a[t].name).indexOf("data-")&&(n=D.camelCase(n.slice(5)),$(o,n,r[n])));R.set(o,"hasDataAttrs",!0)}return r},removeData:function(e){return this.each(function(){j.remove(this,e)})}}),D.extend({queue:function(e,t,n){var i;return e?(t=(t||"fx")+"queue",i=R.get(e,t),n&&(!i||D.isArray(n)?i=R.access(e,t,D.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=D.queue(e,t),i=n.length,r=n.shift(),o=D._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){D.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return R.get(e,n)||R.access(e,n,{empty:D.Callbacks("once memory").add(function(){R.remove(e,[t+"queue",n])})})}}),D.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?D.queue(this[0],t):void 0===n?this:this.each(function(){var e=D.queue(this,t,n);D._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&D.dequeue(this,t)})},dequeue:function(e){return this.each(function(){D.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=D.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=R.get(o[a],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}});var B=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,q=new RegExp("^(?:([+-])=|)("+B+")([a-z%]*)$","i"),U=["Top","Right","Bottom","Left"],W=function(e,t){return e=t||e,"none"===D.css(e,"display")||!D.contains(e.ownerDocument,e)};function Y(e,t,n,i){var r,o=1,a=20,s=i?function(){return i.cur()}:function(){return D.css(e,t,"")},u=s(),l=n&&n[3]||(D.cssNumber[t]?"":"px"),c=(D.cssNumber[t]||"px"!==l&&+u)&&q.exec(D.css(e,t));if(c&&c[3]!==l)for(l=l||c[3],n=n||[],c=+u||1;c/=o=o||".5",D.style(e,t,c+l),o!==(o=s()/u)&&1!==o&&--a;);return n&&(c=+c||+u||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=c,i.end=r)),r}var Q=/^(?:checkbox|radio)$/i,V=/<([\w:-]+)/,G=/^$|\/(?:java|ecma)script/i,X={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function K(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];
vendor: 16,466 bytes, line 1
1return void 0===t||t&&D.nodeName(e,t)?D.merge([e],n):n}function J(e,t){for(var n=0,i=e.length;n<i;n++)R.set(e[n],"globalEval",!t||R.get(t[n],"globalEval"))}X.optgroup=X.option,X.tbody=X.tfoot=X.colgroup=X.caption=X.thead,X.th=X.td;var Z,ee,te=/<|&#?\w+;/;function ne(e,t,n,i,r){for(var o,a,s,u,l,c,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((o=e[p])||0===o)if("object"===D.type(o))D.merge(h,o.nodeType?[o]:o);else if(te.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(V.exec(o)||["",""])[1].toLowerCase(),u=X[s]||X._default,a.innerHTML=u[1]+D.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;D.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",p=0;o=h[p++];)if(i&&-1<D.inArray(o,i))r&&r.push(o);else if(l=D.contains(o.ownerDocument,o),a=K(d.appendChild(o),"script"),l&&J(a),n)for(c=0;o=a[c++];)G.test(o.type||"")&&n.push(o);return d}Z=E.createDocumentFragment().appendChild(E.createElement("div")),(ee=E.createElement("input")).setAttribute("type","radio"),ee.setAttribute("checked","checked"),ee.setAttribute("name","t"),Z.appendChild(ee),m.checkClone=Z.cloneNode(!0).cloneNode(!0).lastChild.checked,Z.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!Z.cloneNode(!0).lastChild.defaultValue;var ie=/^key/,re=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,oe=/^([^.]*)(?:\.(.+)|)/;function ae(){return!0}function se(){return!1}function ue(){try{return E.activeElement}catch(e){}}function le(e,t,n,i,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)le(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=se;else if(!r)return e;return 1===o&&(a=r,(r=function(e){return D().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=D.guid++)),e.each(function(){D.event.add(this,t,r,i,n)})}D.event={global:{},add:function(t,e,n,i,r){var o,a,s,u,l,c,d,h,p,f,g,m=R.get(t);if(m)for(n.handler&&(n=(o=n).handler,r=o.selector),n.guid||(n.guid=D.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(e){return void 0!==D&&D.event.triggered!==e.type?D.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(M)||[""]).length;l--;)p=g=(s=oe.exec(e[l])||[])[1],f=(s[2]||"").split(".").sort(),p&&(d=D.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=D.event.special[p]||{},c=D.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&D.expr.match.needsContext.test(r),namespace:f.join(".")},o),(h=u[p])||((h=u[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,f,a)||t.addEventListener&&t.addEventListener(p,a)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),D.event.global[p]=!0)},remove:function(e,t,n,i,r){var o,a,s,u,l,c,d,h,p,f,g,m=R.hasData(e)&&R.get(e);if(m&&(u=m.events)){for(l=(t=(t||"").match(M)||[""]).length;l--;)if(p=g=(s=oe.exec(t[l])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=D.event.special[p]||{},h=u[p=(i?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!r&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,m.handle)||D.removeEvent(e,p,m.handle),delete u[p])}else for(p in u)D.event.remove(e,p+t[l],n,i,!0);D.isEmptyObject(u)&&R.remove(e,"handle events")}},dispatch:function(e){e=D.event.fix(e);var t,n,i,r,o,a=[],s=c.call(arguments),u=(R.get(this,"events")||{})[e.type]||[],l=D.event.special[e.type]||{};if((s[0]=e).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(a=D.event.handlers.call(this,e,u),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(i=((D.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==e.type)){for(i=[],n=0;n<s;n++)void 0===i[r=(o=t[n]).selector+" "]&&(i[r]=o.needsContext?-1<D(r,this).index(u):D.find(r,this,null,[u]).length),i[r]&&i.push(o);i.length&&a.push({elem:u,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r,o=t.button;return null==e.pageX&&null!=t.clientX&&(i=(n=e.target.ownerDocument||E).documentElement,r=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[D.expando])return e;var t,n,i,r=e.type,o=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=re.test(r)?this.mouseHooks:ie.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new D.Event(o),t=i.length;t--;)e[n=i[t]]=o[n];return e.target||(e.target=E),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==ue()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===ue()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&D.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return D.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},D.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},D.Event=function(e,t){return this instanceof D.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ae:se):this.type=e,t&&D.extend(this,t),this.timeStamp=e&&e.timeStamp||D.now(),void(this[D.expando]=!0)):new D.Event(e,t)},D.Event.prototype={constructor:D.Event,isDefaultPrevented:se,isPropagationStopped:se,isImmediatePropagationStopped:se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},D.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){D.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||D.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=r),t}}}),D.fn.extend({on:function(e,t,n,i){return le(this,e,t,n,i)},one:function(e,t,n,i){return le(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,D(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=se),this.each(function(){D.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r]);return this}});var ce=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,de=/<script|<style|<link/i,he=/checked\s*(?:[^=]|=\s*.checked.)/i,pe=/^true\/(.*)/,fe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function ge(e,t){return D.nodeName(e,"table")&&D.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function me(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ve(e){var t=pe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function ye(e,t){var n,i,r,o,a,s,u,l;if(1===t.nodeType){if(R.hasData(e)&&(o=R.access(e),a=R.set(t,o),l=o.events))for(r in delete a.handle,a.events={},l)for(n=0,i=l[r].length;n<i;n++)D.event.add(t,r,l[r][n]);j.hasData(e)&&(s=j.access(e),u=D.extend({},s),j.set(t,u))}}function be(n,i,r,o){i=g.apply([],i);var e,t,a,s,u,l,c=0,d=n.length,h=d-1,p=i[0],f=D.isFunction(p);if(f||1<d&&"string"==typeof p&&!m.checkClone&&he.test(p))return n.each(function(e){var t=n.eq(e);f&&(i[0]=p.call(this,e,t.html())),be(t,i,r,o)});if(d&&(t=(e=ne(i,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=D.map(K(e,"script"),me)).length;c<d;c++)u=e,c!==h&&(u=D.clone(u,!0,!0),s&&D.merge(a,K(u,"script"))),r.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,D.map(a,ve),c=0;c<s;c++)u=a[c],G.test(u.type||"")&&!R.access(u,"globalEval")&&D.contains(l,u)&&(u.src?D._evalUrl&&D._evalUrl(u.src):D.globalEval(u.textContent.replace(fe,"")))}return n}function we(e,t,n){for(var i,r=t?D.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||D.cleanData(K(i)),i.parentNode&&(n&&D.contains(i.ownerDocument,i)&&J(K(i,"script")),i.parentNode.removeChild(i));return e}D.extend({htmlPrefilter:function(e){return e.replace(ce,"<$1></$2>")},clone:function(e,t,n){var i,r,o,a,s,u,l,c=e.cloneNode(!0),d=D.contains(e.ownerDocument,e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||D.isXMLDoc(e)))for(a=K(c),i=0,r=(o=K(e)).length;i<r;i++)s=o[i],u=a[i],void 0,"input"===(l=u.nodeName.toLowerCase())&&Q.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||K(e),a=a||K(c),i=0,r=o.length;i<r;i++)ye(o[i],a[i]);else ye(e,c);return 0<(a=K(c,"script")).length&&J(a,!d&&K(e,"script")),c},cleanData:function(e){for(var t,n,i,r=D.event.special,o=0;void 0!==(n=e[o]);o++)if(O(n)){if(t=n[R.expando]){if(t.events)for(i in t.events)r[i]?D.event.remove(n,i):D.removeEvent(n,i,t.handle);n[R.expando]=void 0}n[j.expando]&&(n[j.expando]=void 0)}}}),D.fn.extend({domManip:be,detach:function(e){return we(this,e,!0)},remove:function(e){return we(this,e)},text:function(e){return N(this,function(e){return void 0===e?D.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return be(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ge(this,e).appendChild(e)})},prepend:function(){return be(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ge(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return be(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return be(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(D.cleanData(K(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return D.clone(this,e,t)})},html:function(e){return N(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!de.test(e)&&!X[(V.exec(e)||["",""])[1].toLowerCase()]){e=D.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(D.cleanData(K(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return be(this,arguments,function(e){var t=this.parentNode;D.inArray(this,n)<0&&(D.cleanData(K(this)),t&&t.replaceChild(e,this))},n)}}),D.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){D.fn[e]=function(e){for(var t,n=[],i=D(e),r=i.length-1,o=0;o<=r;o++)t=o===r?this:this.clone(!0),D(i[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var xe,_e={HTML:"block",BODY:"block"};function ke(e,t){var n=D(t.createElement(e)).appendTo(t.body),i=D.css(n[0],"display");return n.detach(),i}function Ee(e){var t=E,n=_e[e];return n||("none"!==(n=ke(e,t))&&n||((t=(xe=(xe||D("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=ke(e,t),xe.detach()),_e[e]=n),n}var De=/^margin/,Ce=new RegExp("^("+B+")(?!px)[a-z%]+$","i"),Se=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=k),t.getComputedStyle(e)},Te=function(e,t,n,i){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in r=n.apply(e,i||[]),t)e.style[o]=a[o];return r},Fe=E.documentElement;function Ie(e,t,n){var i,r,o,a,s=e.style;return""!==(a=(n=n||Se(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==a||D.contains(e.ownerDocument,e)||(a=D.style(e,t)),n&&!m.pixelMarginRight()&&Ce.test(a)&&De.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o),void 0!==a?a+"":a}function Pe(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){var t,n,i,r,o=E.createElement("div"),a=E.createElement("div");if(a.style){function e(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Fe.appendChild(o);var e=k.getComputedStyle(a);t="1%"!==e.top,r="2px"===e.marginLeft,n="4px"===e.width,a.style.marginRight="50%",i="4px"===e.marginRight,Fe.removeChild(o)}a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(a),D.extend(m,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return null==n&&e(),n},pixelMarginRight:function(){return null==n&&e(),i},reliableMarginLeft:function(){return null==n&&e(),r},reliableMarginRight:function(){var e,t=a.appendChild(E.createElement("div"));return t.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",a.style.width="1px",Fe.appendChild(o),e=!parseFloat(k.getComputedStyle(t).marginRight),Fe.removeChild(o),a.removeChild(t),e}})}}();var Me=/^(none|table(?!-c[ea]).+)/,Ae={position:"absolute",visibility:"hidden",display:"block"},Ne={letterSpacing:"0",fontWeight:"400"},Oe=["Webkit","O","Moz","ms"],Le=E.createElement("div").style;function Re(e){if(e in Le)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Oe.length;n--;)if((e=Oe[n]+t)in Le)return e}function je(e,t,n){var i=q.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ze(e,t,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=D.css(e,n+U[o],!0,r)),i?("content"===n&&(a-=D.css(e,"padding"+U[o],!0,r)),"margin"!==n&&(a-=D.css(e,"border"+U[o]+"Width",!0,r))):(a+=D.css(e,"padding"+U[o],!0,r),"padding"!==n&&(a+=D.css(e,"border"+U[o]+"Width",!0,r)));return a}function He(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=Se(e),a="border-box"===D.css(e,"boxSizing",!1,o);if(r<=0||null==r){if(((r=Ie(e,t,o))<0||null==r)&&(r=e.style[t]),Ce.test(r))return r;i=a&&(m.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+ze(e,t,n||(a?"border":"content"),i,o)+"px"}function $e(e,t){for(var n,i,r,o=[],a=0,s=e.length;a<s;a++)(i=e[a]).style&&(o[a]=R.get(i,"olddisplay"),n=i.style.display,t?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&W(i)&&(o[a]=R.access(i,"olddisplay",Ee(i.nodeName)))):(r=W(i),"none"===n&&r||R.set(i,"olddisplay",r?n:D.css(i,"dis
1play"))));for(a=0;a<s;a++)(i=e[a]).style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[a]||"":"none"));return e}function Be(e,t,n,i,r){return new Be.prototype.init(e,t,n,i,r)}D.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ie(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=D.camelCase(t),u=e.style;return t=D.cssProps[s]||(D.cssProps[s]=Re(s)||s),a=D.cssHooks[t]||D.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:u[t]:("string"===(o=typeof n)&&(r=q.exec(n))&&r[1]&&(n=Y(e,t,r),o="number"),void(null!=n&&n==n&&("number"===o&&(n+=r&&r[3]||(D.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(u[t]=n))))}},css:function(e,t,n,i){var r,o,a,s=D.camelCase(t);return t=D.cssProps[s]||(D.cssProps[s]=Re(s)||s),(a=D.cssHooks[t]||D.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=Ie(e,t,i)),"normal"===r&&t in Ne&&(r=Ne[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),D.each(["height","width"],function(e,a){D.cssHooks[a]={get:function(e,t,n){return t?Me.test(D.css(e,"display"))&&0===e.offsetWidth?Te(e,Ae,function(){return He(e,a,n)}):He(e,a,n):void 0},set:function(e,t,n){var i,r=n&&Se(e),o=n&&ze(e,a,n,"border-box"===D.css(e,"boxSizing",!1,r),r);return o&&(i=q.exec(t))&&"px"!==(i[3]||"px")&&(e.style[a]=t,t=D.css(e,a)),je(0,t,o)}}}),D.cssHooks.marginLeft=Pe(m.reliableMarginLeft,function(e,t){return t?(parseFloat(Ie(e,"marginLeft"))||e.getBoundingClientRect().left-Te(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),D.cssHooks.marginRight=Pe(m.reliableMarginRight,function(e,t){return t?Te(e,{display:"inline-block"},Ie,[e,"marginRight"]):void 0}),D.each({margin:"",padding:"",border:"Width"},function(r,o){D.cssHooks[r+o]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+U[t]+o]=i[t]||i[t-2]||i[0];return n}},De.test(r)||(D.cssHooks[r+o].set=je)}),D.fn.extend({css:function(e,t){return N(this,function(e,t,n){var i,r,o={},a=0;if(D.isArray(t)){for(i=Se(e),r=t.length;a<r;a++)o[t[a]]=D.css(e,t[a],!1,i);return o}return void 0!==n?D.style(e,t,n):D.css(e,t)},e,t,1<arguments.length)},show:function(){return $e(this,!0)},hide:function(){return $e(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){W(this)?D(this).show():D(this).hide()})}}),((D.Tween=Be).prototype={constructor:Be,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||D.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(D.cssNumber[n]?"":"px")},cur:function(){var e=Be.propHooks[this.prop];return e&&e.get?e.get(this):Be.propHooks._default.get(this)},run:function(e){var t,n=Be.propHooks[this.prop];return this.options.duration?this.pos=t=D.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):Be.propHooks._default.set(this),this}}).init.prototype=Be.prototype,(Be.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=D.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){D.fx.step[e.prop]?D.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[D.cssProps[e.prop]]&&!D.cssHooks[e.prop]?e.elem[e.prop]=e.now:D.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Be.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},D.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},D.fx=Be.prototype.init,D.fx.step={};var qe,Ue,We,Ye,Qe,Ve=/^(?:toggle|show|hide)$/,Ge=/queueHooks$/;function Xe(){return k.setTimeout(function(){qe=void 0}),qe=D.now()}function Ke(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=U[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function Je(e,t,n){for(var i,r=(Ze.tweeners[t]||[]).concat(Ze.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function Ze(o,e,t){var n,a,i=0,r=Ze.prefilters.length,s=D.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=qe||Xe(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),i=0,r=l.tweens.length;i<r;i++)l.tweens[i].run(n);return s.notifyWith(o,[l,n,t]),n<1&&r?t:(s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:D.extend({},e),opts:D.extend(!0,{specialEasing:{},easing:D.easing._default},t),originalProperties:e,originalOptions:t,startTime:qe||Xe(),duration:t.duration,tweens:[],createTween:function(e,t){var n=D.Tween(o,l.o
vendor: 23,420 bytes, line 1
1pts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(function(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=D.camelCase(n)],o=e[n],D.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=D.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(c,l.opts.specialEasing);i<r;i++)if(n=Ze.prefilters[i].call(l,o,c,l.opts))return D.isFunction(n.stop)&&(D._queueHooks(l.elem,l.opts.queue).stop=D.proxy(n.stop,n)),n;return D.map(c,Je,l),D.isFunction(l.opts.start)&&l.opts.start.call(o,l),D.fx.timer(D.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}D.Animation=D.extend(Ze,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Y(n.elem,e,q.exec(t),n),n}]},tweener:function(e,t){for(var n,i=0,r=(e=D.isFunction(e)?(t=e,["*"]):e.match(M)).length;i<r;i++)n=e[i],Ze.tweeners[n]=Ze.tweeners[n]||[],Ze.tweeners[n].unshift(t)},prefilters:[function(t,e,n){var i,r,o,a,s,u,l,c=this,d={},h=t.style,p=t.nodeType&&W(t),f=R.get(t,"fxshow");for(i in n.queue||(null==(s=D._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,D.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(l=D.css(t,"display"))?R.get(t,"olddisplay")||Ee(t.nodeName):l)&&"none"===D.css(t,"float")&&(h.display="inline-block")),n.overflow&&(h.overflow="hidden",c.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),e)if(r=e[i],Ve.exec(r)){if(delete e[i],o=o||"toggle"===r,r===(p?"hide":"show")){if("show"!==r||!f||void 0===f[i])continue;p=!0}d[i]=f&&f[i]||D.style(t,i)}else l=void 0;if(D.isEmptyObject(d))"inline"===("none"===l?Ee(t.nodeName):l)&&(h.display=l);else for(i in f?"hidden"in f&&(p=f.hidden):f=R.access(t,"fxshow",{}),o&&(f.hidden=!p),p?D(t).show():c.done(function(){D(t).hide()}),c.done(function(){var e;for(e in R.remove(t,"fxshow"),d)D.style(t,e,d[e])}),d)a=Je(p?f[i]:0,i,c),i in f||(f[i]=a.start,p&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}],prefilter:function(e,t){t?Ze.prefilters.unshift(e):Ze.prefilters.push(e)}}),D.speed=function(e,t,n){var i=e&&"object"==typeof e?D.extend({},e):{complete:n||!n&&t||D.isFunction(e)&&e,duration:e,easing:n&&t||t&&!D.isFunction(t)&&t};return i.duration=D.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in D.fx.speeds?D.fx.speeds[i.duration]:D.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){D.isFunction(i.old)&&i.old.call(this),i.queue&&D.dequeue(this,i.queue)},i},D.fn.extend({fadeTo:function(e,t,n,i){return this.filter(W).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){var r=D.isEmptyObject(t),o=D.speed(e,n,i),a=function(){var e=Ze(this,D.extend({},t),o);(r||R.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(r,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof r&&(o=e,e=r,r=void 0),e&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=D.timers,i=R.get(this);if(t)i[t]&&i[t].stop&&a(i[t]);else for(t in i)i[t]&&i[t].stop&&Ge.test(t)&&a(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||D.dequeue(this,r)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=R.get(this),n=t[a+"queue"],i=t[a+"queueHooks"],r=D.timers,o=n?n.length:0;for(t.finish=!0,D.queue(this,a,[]),i&&i.stop&&i.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===a&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),D.each(["toggle","show","hide"],function(e,i){var r=D.fn[i];D.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(Ke(i,!0),e,t,n)}}),D.each({slideDown:Ke("show"),slideUp:Ke("hide"),slideToggle:Ke("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){D.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),D.timers=[],D.fx.tick=function(){var e,t=0,n=D.timers;for(qe=D.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||D.fx.stop(),qe=void 0},D.fx.timer=function(e){D.timers.push(e),e()?D.fx.start():D.timers.pop()},D.fx.interval=13,D.fx.start=function(){Ue||(Ue=k.setInterval(D.fx.tick,D.fx.interval))},D.fx.stop=function(){k.clearInterval(Ue),Ue=null},D.fx.speeds={slow:600,fast:200,_default:400},D.fn.delay=function(i,e){return i=D.fx&&D.fx.speeds[i]||i,e=e||"fx",this.queue(e,function(e,t){var n=k.setTimeout(e,i);t.stop=function(){k.clearTimeout(n)}})},We=E.createElement("input"),Ye=E.createElement("select"),Qe=Ye.appendChild(E.createElement("option")),We.type="checkbox",m.checkOn=""!==We.value,m.optSelected=Qe.selected,Ye.disabled=!0,m.optDisabled=!Qe.disabled,(We=E.createElement("input")).value="t",We.type="radio",m.radioValue="t"===We.value;var et,tt=D.expr.attrHandle;D.fn.extend({attr:function(e,t){return N(this,D.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){D.removeAttr(this,e)})}}),D.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?D.prop(e,t,n):(1===o&&D.isXMLDoc(e)||(t=t.toLowerCase(),r=D.attrHooks[t]||(D.expr.match.bool.test(t)?et:void 0)),void 0!==n?null===n?void D.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=D.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&D.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,r=0,o=t&&t.match(M);if(o&&1===e.nodeType)for(;n=o[r++];)i=D.propFix[n]||n,D.expr.match.bool.test(n)&&(e[i]=!1),e.removeAttribute(n)}}),et={set:function(e,t,n){return!1===t?D.removeAttr(e,n):e.setAttribute(n,n),n}},D.each(D.expr.match.bool.source.match(/\w+/g),function(e,t){var o=tt[t]||D.find.attr;tt[t]=function(e,t,n){var i,r;return n||(r=tt[t],tt[t]=i,i=null!=o(e,t,n)?t.toLowerCase():null,tt[t]=r),i}});var nt=/^(?:input|select|textarea|button)$/i,it=/^(?:a|area)$/i;D.fn.extend({prop:function(e,t){return N(this,D.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[D.propFix[e]||e]})}}),D.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&D.isXMLDoc(e)||(t=D.propFix[t]||t,r=D.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=D.find.attr(e,"tabindex");return t?parseInt(t,10):nt.test(e.nodeName)||it.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(D.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),D.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){D.propFix[this.toLowerCase()]=this});var rt=/[\t\r\n\f]/g;function ot(e){return e.getAttribute&&e.getAttribute("class")||""}D.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,u=0;if(D.isFunction(t))return this.each(function(e){D(this).addClass(t.call(this,e,ot(this)))});if("string"==typeof t&&t)for(e=t.match(M)||[];n=this[u++];)if(r=ot(n),i=1===n.nodeType&&(" "+r+" ").replace(rt," ")){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=D.trim(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,u=0;if(D.isFunction(t))return this.each(function(e){D(this).removeClass(t.call(this,e,ot(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(M)||[];n=this[u++];)if(r=ot(n),i=1===n.nodeType&&(" "+r+" ").replace(rt," ")){for(a=0;o=e[a++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");r!==(s=D.trim(i))&&n.setAttribute("class",s)}return this},toggleClass:function(r,t){var o=typeof r;return"boolean"==typeof t&&"string"===o?t?this.addClass(r):this.removeClass(r):D.isFunction(r)?this.each(function(e){D(this).toggleClass(r.call(this,e,ot(this),t),t)}):this.each(function(){var e,t,n,i;if("string"===o)for(t=0,n=D(this),i=r.match(M)||[];e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==r&&"boolean"!==o||((e=ot(this))&&R.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===r?"":R.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+ot(n)+" ").replace(rt," ").indexOf(t))return!0;return!1}});var at=/\r/g,st=/[\x20\t\r\n\f]+/g;D.fn.extend({val:function(n){var i,e,r,t=this[0];return arguments.length?(r=D.isFunction(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=r?n.call(this,e,D(this).val()):n)?t="":"number"==typeof t?t+="":D.isArray(t)&&(t=D.map(t,function(e){return null==e?"":e+""})),(i=D.valHooks[this.type]||D.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,t,"value")||(this.value=t))})):t?(i=D.valHooks[t.type]||D.valHooks[t.nodeName.toLowerCase()])&&"get"in i&&void 0!==(e=i.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(at,""):null==e?"":e:void 0}}),D.extend({valHooks:{option:{get:function(e){var t=D.find.attr(e,"value");return null!=t?t:D.trim(D.text(e)).replace(st," ")}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type||r<0,a=o?null:[],s=o?r+1:i.length,u=r<0?s:o?r:0;u<s;u++)if(((n=i[u]).selected||u===r)&&(m.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!D.nodeName(n.parentNode,"optgroup"))){if(t=D(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=D.makeArray(t),a=r.length;a--;)((i=r[a]).selected=-1<D.inArray(D.valHooks.option.get(i),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),D.each(["radio","checkbox"],function(){D.valHooks[this]={set:function(e,t){return D.isArray(t)?e.checked=-1<D.inArray(D(e).val(),t):void 0}},m.checkOn||(D.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ut=/^(?:focusinfocus|focusoutblur)$/;D.extend(D.event,{trigger:function(e,t,n,i){var r,o,a,s,u,l,c,d=[n||E],h=f.call(e,"type")?e.type:e,p=f.call(e,"namespace")?e.namespace.split("."):[];if(o=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!ut.test(h+D.event.triggered)&&(-1<h.indexOf(".")&&(h=(p=h.split(".")).shift(),p.sort()),u=h.indexOf(":")<0&&"on"+h,(e=e[D.expando]?e:new D.Event(h,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:D.makeArray(t,[e]),c=D.event.special[h]||{},i||!c.trigger||!1!==c.trigger.apply(n,t))){if(!i&&!c.noBubble&&!D.isWindow(n)){for(s=c.delegateType||h,ut.test(s+h)||(o=o.parentNode);o;o=o.parentNode)d.push(o),a=o;a===(n.ownerDocument||E)&&d.push(a.defaultView||a.parentWindow||k)}for(r=0;(o=d[r++])&&!e.isPropagationStopped();)e.type=1<r?s:c.bindType||h,(l=(R.get(o,"events")||{})[e.type]&&R.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&O(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=h,i||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(d.pop(),t)||!O(n)||u&&D.isFunction(n[h])&&!D.isWindow(n)&&((a=n[u])&&(n[u]=null),n[D.event.triggered=h](),D.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var i=D.extend(new D.Event,n,{type:e,isSimulated:!0});D.event.trigger(i,null,t)}}),D.fn.extend({trigger:function(e,t){return this.each(function(){D.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?D.event.trigger(e,t,n,!0):void 0}}),D.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,n){D.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),D.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),m.focusin="onfocusin"in k,m.focusin||D.each({focus:"focusin",blur:"focusout"},function(n,i){var r=function(e){D.event.simulate(i,e.target,D.event.fix(e))};D.event.special[i]={setup:function(){var e=this.ownerDocument||this,t=R.access(e,i);t||e.addEventListener(n,r,!0),R.access(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=R.access(e,i)-1;t?R.access(e,i,t):(e.removeEventListener(n,r,!0),R.remove(e,i))}}});var lt=k.location,ct=D.now(),dt=/\?/;D.parseJSON=function(e){return JSON.parse(e+"")},D.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new k.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||D.error("Invalid XML: "+e),t};var ht=/#.*$/,pt=/([?&])_=[^&]*/,ft=/^(.*?):[ \t]*([^\r\n]*)$/gm,gt=/^(?:GET|HEAD)$/,mt=/^\/\//,vt={},yt={},bt="*/".concat("*"),wt=E.createElement("a");function xt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,r=e.toLowerCase().match(M)||[];if(D.isFunction(t))for(;n=r[i++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function _t(t,r,o,a){var s={},u=t===yt;function l(e){var i;return s[e]=!0,D.each(t[e]||[],function(e,t){var n=t(r,o,a);return"string"!=typeof n||u||s[n]?u?!(i=n):void 0:(r.dataTypes.unshift(n),l(n),!1)}),i}return l(r.dataTypes[0])||!s["*"]&&l("*")}function kt(e,t){var n,i,r=D.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&D.extend(!0,e,i),e}wt.href=lt.href,D.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:lt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(lt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":bt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":D.parseJSON,"text xml":D.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?kt(kt(e,D.ajaxSettings),t):kt(D.ajaxSettings,e)},ajaxPrefilter:xt(vt),ajaxTransport:xt(yt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,d,h,n,p,i,f,r,g=D.ajaxSetup({},t),m=g.context||g,v=g.context&&(m.nodeType||m.jquery)?D(m):D.event,y=D.Deferred(),b=D.Callbacks("once memory"),w=g.statusCode||{},o={},a={},x=0,s="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!n)for(n={};t=ft.exec(h);)n[t[1].toLowerCase()]=t[2];t=n[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?h:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=a[n]=a[n]||e,o[e]=t),this},overrideMimeType:function(e){return x||(g.mimeType=e),this},statusCode:function(e){var t;if(e)if(x<2)for(t in e)w[t]=[w[t],e[t]];else _.always(e[_.status]);return this},abort:function(e){var t=e||s;return c&&c.abort(t),u(0,t),this}};if(y.promise(_).complete=b.add,_.success=_.done,_.error=_.fail,g.url=((e||g.url||lt.href)+"").replace(ht,"").replace(mt,lt.protocol+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=D.trim(g.dataType||"*").toLowerCase().match(M)||[""],null==g.crossDomain){i=E.createElement("a");try{i.href=g.url,i.href=i.href,g.crossDomain=wt.protocol+"//"+wt.host!=i.protocol+"//"+i.host}catch(e){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=D.param(g.data,g.traditional)),_t(vt,g,t,_),2===x)return _;for(r in(f=D.event&&g.global)&&0==D.active++&&D.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!gt.test(g.type),d=g.url,g.hasContent||(g.data&&(d=g.url+=(dt.test(d)?"&":"?")+g.data,delete g.data),!1===g.cache&&(g.url=pt.test(d)?d.replace(pt,"$1_="+ct++):d+(dt.test(d)?"&":"?")+"_="+ct++)),g.ifModified&&(D.lastModified[d]&&_.setRequestHeader("If-Modified-Since",D.lastModified[d]),D.etag[d]&&_.setRequestHeader("If-None-Match",D.etag[d])),(g.data&&g.hasContent&&!1!==g.contentType||t.contentType)&&_.setRequestHeader("Content-Type",g.contentType),_.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+bt+"; q=0.01":""):g.accepts["*"]),g.headers)_.setRequestHeader(r,g.headers[r]);if(g.beforeSend&&(!1===g.beforeSend.call(m,_,g)||2===x))return _.abort();for(r in s="abort",{success:1,error:1,complete:1})_[r](g[r]);if(c=_t(yt,g,t,_)){if(_.readyState=1,f&&v.trigger("ajaxSend",[_,g]),2===x)return _;g.async&&0<g.timeout&&(p=k.setTimeout(function(){_.abort("timeout")},g.timeout));try{x=1,c.send(o,u)}catch(e){if(!(x<2))throw e;u(-1,e)}}else u(-1,"No Transport");function u(e,t,n,i){var r,o,a,s,u,l=t;2!==x&&(x=2,p&&k.clearTimeout(p),c=void 0,h=i||"",_.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(s=function(e,t,n){for(var i,r,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){u.unshift(r);break}if(u[0]in n)o=u[0];else{for(r in n){if(!u[0]||e.converters[r+" "+u[0]]){o=r;break}a||(a=r)}o=o||a}return o?(o!==u[0]&&u.unshift(o),n[o]):void 0}(g,_,n)),s=function(e,t,n,i){var r,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(r in l)if((s=r.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[r]:!0!==l[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(g,s,_,r),r?(g.ifModified&&((u=_.getResponseHeader("Last-Modified"))&&(D.lastModified[d]=u),(u=_.getResponseHeader("etag"))&&(D.etag[d]=u)),204===e||"HEAD"===g.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,r=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),_.status=e,_.statusText=(t||l)+"",r?y.resolveWith(m,[o,l,_]):y.rejectWith(m,[_,l,a]),_.statusCode(w),w=void 0,f&&v.trigger(r?"ajaxSuccess":"ajaxError",[_,g,r?o:a]),b.fireWith(m,[_,l]),f&&(v.trigger("ajaxComplete",[_,g]),--D.active||D.event.trigger("ajaxStop")))}return _},getJSON:function(e,t,n){return D.get(e,t,n,"json")},getScript:function(e,t){return D.get(e,void 0,t,"script")}}),D.each(["get","post"],function(e,r){D[r]=function(e,t,n,i){return D.isFunction(t)&&(i=i||n,n=t,t=void 0),D.ajax(D.extend({url:e,type:r,dataType:i,data:t,success:n},D.isPlainObject(e)&&e))}}),D._evalUrl=function(e){return D.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},D.fn.extend({wrapAll:function(t){var e;return D.isFunction(t)?this.each(function(e){D(this).wrapAll(t.call(this,e))}):(this[0]&&(e=D(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(n){return D.isFunction(n)?this.each(function(e){D(this).wrapInner(n.call(this,e))}):this.each(function(){var e=D(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=D.isFunction(t);return this.each(function(e){D(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){D.nodeName(this,"body")||D(this).replaceWith(this.childNodes)}).end()}}),D.expr.filters.hidden=function(e){return!D.expr.filters.visible(e)},D.expr.filters.visible=function(e){return 0<e.offsetWidth||0<e.offsetHeight||0<e.getClientRects().length};var Et=/%20/g,Dt=/\[\]$/,Ct=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,Tt=/^(?:input|select|textarea|keygen)/i;function Ft(n,e,i,r){var t;if(D.isArray(e))D.each(e,function(e,t){i||Dt.test(n)?r(n,t):Ft(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,i,r)});else if(i||"object"!==D.type(e))r(n,e);else for(t in e)Ft(n+"["+t+"]",e[t],i,r)}D.param=function(e,t){var n,i=[],r=function(e,t){t=D.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=D.ajaxSettings&&D.ajaxSettings.traditional),D.isArray(e)||e.jquery&&!D.isPlainObject(e))D.each(e,function(){r(this.name,this.value)});else for(n in e)Ft(n,e[n],t,r);return i.join("&").replace(Et,"+")},D.fn.extend({serialize:function(){return D.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=D.prop(this,"elements");return e?D.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!D(this).is(":disabled")&&Tt.test(this.nodeName)&&!St.test(e)&&(this.checked||!Q.test(e))}).map(function(e,t){var n=D(this).val();return null==n?null:D.isArray(n)?D.map(n,function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}}):{name:t.name,value:n.replace(Ct,"\r\n")}}).get()}}),D.ajaxSettings.xhr=function(){try{return new k.XMLHttpRequest}catch(e){}};var It={0:200,1223:204},Pt=D.ajaxSettings.xhr();m.cors=!!Pt&&"withCredentials"in Pt,m.ajax=Pt=!!Pt,D.ajaxTransport(function(r){var o,a;return m.cors||Pt&&!r.crossDomain?{send:function(e,t){var n,i=r.xhr();if(i.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(n in r.xhrFields)i[n]=r.xhrFields[n];for(n in r.mimeType&&i.overrideMimeType&&i.overrideMimeType(r.mimeType),r.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)i.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=i.onload=i.onerror=i.onabort=i.onreadystatechange=null,"abort"===e?i.abort():"error"===e?"number"!=typeof i.status?t(0,"error"):t(i.status,i.statusText):t(It[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=o(),a=i.onerror=o("error"),void 0!==i.onabort?i.onabort=a:i.onreadystatechange=function(){4===i.readyState&&k.setTimeout(function(){o&&a()})},o=o("abort");try{i.send(r.hasContent&&r.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}:void 0}),D.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return D.globalEval(e),e}}}),D.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),D.ajaxTransport("script",function(n){var i,r;if(n.crossDomain)return{send:function(e,t){i=D("<script>
1").prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){i.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(i[0])},abort:function(){r&&r()}}});var Mt=[],At=/(=)\?(?=&|$)|\?\?/;D.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mt.pop()||D.expando+"_"+ct++;return this[e]=!0,e}}),D.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,a=!1!==e.jsonp&&(At.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&At.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=D.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(At,"$1"+i):!1!==e.jsonp&&(e.url+=(dt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||D.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=k[i],k[i]=function(){o=arguments},n.always(function(){void 0===r?D(k).removeProp(i):k[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,Mt.push(i)),o&&D.isFunction(r)&&r(o[0]),o=r=void 0}),"script"):void 0}),D.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||E;var i=w.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=ne([e],t,r),r&&r.length&&D(r).remove(),D.merge([],i.childNodes))};var Nt=D.fn.load;function Ot(e){return D.isWindow(e)?e:9===e.nodeType&&e.defaultView}D.fn.load=function(e,t,n){if("string"!=typeof e&&Nt)return Nt.apply(this,arguments);var i,r,o,a=this,s=e.indexOf(" ");return-1<s&&(i=D.trim(e.slice(s)),e=e.slice(0,s)),D.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<a.length&&D.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?D("<div>").append(D.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},D.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){D.fn[t]=function(e){return this.on(t,e)}}),D.expr.filters.animated=function(t){return D.grep(D.timers,function(e){return t===e.elem}).length},D.offset={setOffset:function(e,t,n){var i,r,o,a,s,u,l=D.css(e,"position"),c=D(e),d={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=D.css(e,"to
1p"),u=D.css(e,"left"),r=("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(i=c.position()).top,i.left):(a=parseFloat(o)||0,parseFloat(u)||0),D.isFunction(t)&&(t=t.call(e,n,D.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):c.css(d)}},D.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){D.offset.setOffset(this,t,e)});var e,n,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;return o?(e=o.documentElement,D.contains(e,i)?(r=i.getBoundingClientRect(),n=Ot(o),{top:r.top+n.pageYOffset-e.clientTop,left:r.left+n.pageXOffset-e.clientLeft}):r):void 0},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===D.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),D.nodeName(e[0],"html")||(i=e.offset()),i.top+=D.css(e[0],"borderTopWidth",!0),i.left+=D.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-D.css(n,"marginTop",!0),left:t.left-i.left-D.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===D.css(e,"position");)e=e.offsetParent;return e||Fe})}}),D.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;D.fn[t]=function(e){return N(this,function(e,t,n){var i=Ot(e);return void 0===n?i?i[r]:e[t]:void(i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):e[t]=n)},t,e,arguments.length)}}),D.each(["top","left"],function(e,n){D.cssHooks[n]=Pe(m.pixelPosition,function(e,t){return t?(t=Ie(e,n),Ce.test(t)?D(e).position()[n]+"px":t):void 0})}),D.each({Height:"height",Width:"width"},function(o,a){D.each({padding:"inner"+o,content:a,"":"outer"+o},function(i,e){D.fn[e]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return N(this,function(e,t,n){var i;return D.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+o],i["scroll"+o],e.body["offset"+o],i["offset"+o],i["client"+o])):void 0===n?D.css(e,t,r):D.style(e,t,n,r)},a,n?e:void 0,n,null)}})}),D.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),D.fn.andSelf=D.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return D});var Lt=k.jQuery,Rt=k.$;return D.noConflict=function(e){return k.$===D&&(k.$=Rt),e&&k.jQuery===D&&(k.jQuery=Lt),D},e||(k.jQuery=k.$=D),D}),function(l,n,a){l.migrateVersion="1.4.1";var i={};function c(e){var t=n.console;i[e]||(i[e]=!0,l.migrateWarnings.push(e),t&&t.warn&&!l.migrateMute&&(t.warn("JQMIGRATE: "+e),l.migrateTrace&&t.trace&&t.trace()))}function e(e,t,n,i){if(Object.defineProperty)try{return void Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return c(i),n},set:function(e){c(i),n=e}})}catch(e){}l._definePropertyBroken=!0,e[t]=n}l.migrateWarnings=[],l.migrateMute=!0,n.console&&n.console.log&&n.console.log("JQMIGRATE: Migrate is installed"+(l.migrateMute?"":" with logging active")+", version "+l.migrateVersion),l.migrateTrace===a&&(l.migrateTrace=!0),l.migrateReset=function(){i={},l.migrateWarnings.length=0},"BackCompat"===document.compatMode&&c("jQuery is not compatible with Quirks Mode");var s=l("<input/>",{size:1}).attr("size")&&l.attrFn,u=l.attr,r=l.attrHooks.value&&l.attrHooks.value.get||function(){return null},o=l.attrHooks.value&&l.attrHooks.value.set||function(){return a},d=/^(?:input|button)$/i,h=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;e(l,"attrFn",s||{},"jQuery.attrFn is deprecated"),l.attr=function(e,t,n,i){var r=t.toLowerCase(),o=e&&e.nodeType;return i&&(u.length<4&&c("jQuery.fn.attr( props, pass ) is deprecated"),e&&!h.test(o)&&(s?t in s:l.isFunction(l.fn[t])))?l(e)[t](n):("type"===t&&n!==a&&d.test(e.nodeName)&&e.parentNode&&c("Can't change the 'type' of an input or button in IE 6/7/8"),!l.attrHooks[r]&&p.test(r)&&(l.attrHooks[r]={get:function(e,t){var n,i=l.prop(e,t);return!0===i||"boolean"!=typeof i&&(n=e.getAttributeNode(t))&&!1!==n.nodeValue?t.toLowerCase():a},set:function(e,t,n){var i;return!1===t?l.removeAttr(e,n):((i=l.propFix[n]||n)in e&&(e[i]=!0),e.setAttribute(n,n.toLowerCase())),n}},f.test(r)&&c("jQuery.fn.attr('"+r+"') might use property instead of attribute")),u.call(l,e,t,n))},l.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?r.apply(this,arguments):("input"!==n&&"option"!==n&&c("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var n=(e.nodeName||"").toLowerCase();if("button"===n)return o.apply(this,arguments);"input"!==n&&"option"!==n&&c("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t}};var t,g,m,v=l.fn.init,y=l.find,b=l.parseJSON,w=/^\s*</,x=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,_=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,k=/^([^<]*)(<[\w\W]+>)([^>]*)$/;for(m in l.fn.init=function(e,t,n){var i,r;return e&&"string"==typeof e&&!l.isPlainObject(t)&&(i=k.exec(l.trim(e)))&&i[0]&&(w.test(e)||c("$(html) HTML strings must start with '<' character"),i[3]&&c("$(html) HTML text after last tag is ignored"),"#"===i[0].charAt(0)&&(c("HTML string cannot start with a '#' character"),l.error("JQMIGRATE: Invalid selector string (XSS)")),t&&t.context&&t.context.nodeType&&(t=t.context),l.parseHTML)?v.call(this,l.parseHTML(i[2],t&&t.ownerDocument||t||document,!0),t,n):(r=v.apply(this,arguments),e&&e.selector!==a?(r.selector=e.selector,r.context=e.context):(r.selector="string"==typeof e?e:"",e&&(r.context=e.nodeType?e:t||document)),r)},l.fn.init.prototype=l.fn,l.find=function(t){var n=Array.prototype.slice.call(arguments);if("string"==typeof t&&x.test(t))try{document.querySelector(t)}catch(e){t=t.replace(_,function(e,t,n,i){return"["+t+n+'"'+i+'"]'});try{document.querySelector(t),c("Attribute selector with '#' must be quoted: "+n[0]),n[0]=t}catch(e){c("Attribute selector with '#' was not fixed: "+n[0])}}return y.apply(this,n)},y)Object.prototype.hasOwnProperty.call(y,m)&&(l.find[m]=y[m]);l.parseJSON=function(e){return e?b.apply(this,arguments):(c("jQuery.parseJSON requires a valid JSON string"),null)},l.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"}},l.browser||(g={},(t=l.uaMatch(navigator.userAgent)).browser&&(g[t.browser]=!0,g.version=t.version),g.chrome?g.webkit=!0:g.webkit&&(g.safari=!0),l.browser=g),e(l,"browser",l.browser,"jQuery.browser is deprecated"),l.boxModel=l.support.boxModel="CSS1Compat"===document.compatMode,e(l,"boxModel",l.boxModel,"jQuery.boxModel is deprecated"),e(l.support,"boxModel",l.supp
1ort.boxModel,"jQuery.support.boxModel is deprecated"),l.sub=function(){function i(e,t){return new i.fn.init(e,t)}l.extend(!0,i,this),i.superclass=this,((i.fn=i.prototype=this()).constructor=i).sub=this.sub,i.fn.init=function(e,t){var n=l.fn.init.call(this,e,t,r);return n instanceof i?n:i(n)},i.fn.init.prototype=i.fn;var r=i(document);return c("jQuery.sub() is deprecated"),i};var E=!(l.fn.size=function(){return c("jQuery.fn.size() is deprecated; use the .length property"),this.length});l.swap&&l.each(["height","width","reliableMarginRight"],function(e,t){var n=l.cssHooks[t]&&l.cssHooks[t].get;n&&(l.cssHooks[t].get=function(){var e;return E=!0,e=n.apply(this,arguments),E=!1,e})}),l.swap=function(e,t,n,i){var r,o,a={};for(o in E||c("jQuery.swap() is undocumented and deprecated"),t)a[o]=e.style[o],e.style[o]=t[o];for(o in r=n.apply(e,i||[]),t)e.style[o]=a[o];return r},l.ajaxSetup({converters:{"text json":l.parseJSON}});var D=l.fn.data;l.fn.data=function(e){var t,n,i=this[0];return!i||"events"!==e||1!==arguments.length||(t=l.data(i,e),n=l._data(i,e),t!==a&&t!==n||n===a)?D.apply(this,arguments):(c("Use of jQuery.fn.data('events') is deprecated"),n)};
1var C=/\/(java|ecma)script/i;l.clean||(l.clean=function(e,t,n,i){t=(t=!(t=t||document).nodeType&&t[0]||t).ownerDocument||t,c("jQuery.clean() is deprecated");var r,o,a,s,u=[];if(l.merge(u,l.buildFragment(e,t).childNodes),n)for(a=function(e){if(!e.type||C.test(e.type))return i?i.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)},r=0;null!=(o=u[r]);r++)l.nodeName(o,"script")&&a(o)||(n.appendChild(o),void 0!==o.getElementsByTagName&&(s=l.grep(l.merge([],o.getElementsByTagName("script")),a),u.splice.apply(u,[r+1,0].concat(s)),r+=s.length));return u});var S=l.event.add,T=l.event.remove,F=l.event.trigger,I=l.fn.toggle,P=l.fn.live,M=l.fn.die,A=l.fn.load,N="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",O=new RegExp("\\b(?:"+N+")\\b"),L=/(?:^|\s)hover(\.\S+|)\b/,R=function(e){return"string"!=typeof e||l.event.special.hover?e:(L.test(e)&&c("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),e&&e.replace(L,"mouseenter$1 mouseleave$1"))};l.event.props&&"attrChange"!==l.event.props[0]&&l.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),l.event.dispatch&&e(l.event,"handle",l.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),l.event.add=function(e,t,n,i,r){e!==document&&O.test(t)&&c("AJAX events should be attached to document: "+t),S.call(this,e,R(t||""),n,i,r)},l.event.remove=function(e,t,n,i,r){T.call(this,e,R(t)||"",n,i,r)},l.each(["load","unload","error"],function(e,t){l.fn[t]=function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?A.apply(this,e):(c("jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this))}}),l.fn.toggle=function(n,e){if(!l.isFunction(n)||!l.isFunction(e))return I.apply(this,arguments);c("jQuery.fn.toggle(handler, handler...) is deprecated");var i=arguments,t=n.guid||l.guid++,r=0,o=function(e){var t=(l._data(this,"lastToggle"+n.guid)||0)%r;return l._data(this,"lastToggle"+n.guid,t+1),e.preventDefault(),i[t].apply(this,arguments)||!1};for(o.guid=t;r<i.length;)i[r++].guid=t;return this.click(o)},l.fn.live=function(e,t,n){return c("jQuery.fn.live() is deprecated"),P?P.apply(this,arguments):(l(this.context).on(e,this.selector,t,n),this)},l.fn.die=function(e,t){return c("jQuery.fn.die() is deprecated"),M?M.apply(this,arguments):(l(this.context).off(e,this.selector||"**",t),this)},l.event.trigger=function(e,t,n,i){return n||O.test(e)||c("Global events are undocumented and deprecated"),F.call(this,e,t,n||document,i)},l.each(N.split("|"),function(e,t){l.event.special[t]={setup:function(){var e=this;return e!==document&&(l.event.add(document,t+"."+l.guid,function(){l.event.trigger(t,Array.prototype.slice.call(arguments,1),e,!0)}),l._data(this,t,l.guid++)),!1},teardown:function(){return this!==document&&l.event.remove(document,t+"."+l._data(this,t)),!1}}}),l.event.special.ready={setup:function(){this===document&&c("'ready' event is deprecated")}};var j=l.fn.andSelf||l.fn.addBack,z=l.fn.find;if(l.fn.andSelf=function(){return c("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),j.apply(this,arguments)},l.fn.find=function(e){var t=z.apply(this,arguments);return t.context=this.context,t.selector=this.selector?this.selector+" "+e:e,t},l.Callbacks){var H=l.Deferred,$=[["resolve","done",l.Callbacks("once memory"),l.Callbacks("once memory"),"resolved"],["reject","fail",l.Callbacks("once memory"),l.Callbacks("once memory"),"rejected"],["notify","progress",l.Callbacks("memory"),l.Callbacks("memory")]];l.Deferred=function(e){var o=H(),a=o.promise();return o.pipe=a.pipe=function(){var r=arguments;return c("deferred.pipe() is deprecated"),l.Deferred(function(i){l.each($,function(e,t){var n=l.isFunction(r[e])&&r[e];o[t[1]](function(){var e=n&&n.apply(this,arguments);e&&l.isFunction(e.promise)?e.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[t[0]+"With"](this===a?i.promise():this,n?[e]:arguments)})}),r=null}).promise()},o.isResolved=function(){return c("deferred.isResolved is deprecated"),"resolved"===o.state()},o.isRejected=function(){return c("deferred.isRejected is deprecated"),"rejected"===o.state()},e&&e.call(o,o),o}}}(jQuery,window),function(){"use strict";function e(e,t,n){return"nl"==RequestSettings.CurrentLanguage.toLowerCase()?n?e.format(n):e:n?t.format(n):t}function r(e,t){return"/"+RequestSettings.CurrentLanguage.toLowerCase()+("/"!=e[0]?"/":"")+e}window._t=e,window._u=function(e,t,n){n=n||{};var i=$.trim(r(e));return t&&(i+="?"!=i[i.length-1]?"?":"",i+=$.param(t)),n.absolute&&(i=Url.makeAbsolute(i)),i}}(),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,n,i,r){return jQuery.easing[jQuery.easing.def](e,t,n,i,r)},easeInQuad:function(e,t,n,i,r){return i*(t/=r)*t+n},easeOutQuad:function(e,t,n,i,r){return-i*(t/=r)*(t-2)+n},easeInOutQuad:function(e,t,n,i,r){return(t/=r/2)<1?i/2*t*t+n:-i/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,i,r){return i*(t/=r)*t*t+n},easeOutCubic:function(e,t,n,i,r){return i*((t=t/r-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,i,r){return(t/=r/2)<1?i/2*t*t*t+n:i/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,i,r){return i*(t/=r)*t*t*t+n},easeOutQuart:function(e,t,n,i,r){return-i*((t=t/r-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,i,r){return(t/=r/2)<1?i/2*t*t*t*t+n:-i/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,i,r){return i*(t/=r)*t*t*t*t+n},easeOutQuint:function(e,t,n,i,r){return i*((t=t/r-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,i,r){return(t/=r/2)<1?i/2*t*t*t*t*t+n:i/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,i,r){return-i*Math.cos(t/r*(Math.PI/2))+i+n},easeOutSine:function(e,t,n,i,r){return i*Math.sin(t/r*(Math.PI/2))+n},easeInOutSine:function(e,t,n,i,r){return-i/2*(Math.cos(Math.PI*t/r)-1)+n},easeInExpo:function(e,t,n,i,r){return 0==t?n:i*Math.pow(2,10*(t/r-1))+n},easeOutExpo:function(e,t,n,i,r){return t==r?n+i:i*(1-Math.pow(2,-10*t/r))+n},easeInOutExpo:function(e,t,n,i,r){return 0==t?n:t==r?n+i:(t/=r/2)<1?i/2*Math.pow(2,10*(t-1))+n:i/2*(2-Math.pow(2,-10*--t))+n},easeInCirc:function(e,t,n,i,r){return-i*(Math.sqrt(1-(t/=r)*t)-1)+n},easeOutCirc:function(e,t,n,i,r){return i*Math.sqrt(1-(t=t/r-1)*t)+n},easeInOutCirc:function(e,t,n,i,r){return(t/=r/2)<1?-i/2*(Math.sqrt(1-t*t)-1)+n:i/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,i,r){var o=1.70158,a=0,s=i;if(0==t)return n;if(1==(t/=r))return n+i;if(a||(a=.3*r),s<Math.abs(i)){s=i;o=a/4}else o=a/(2*Math.PI)*Math.asin(i/s);return-s*Math.pow(2,10*(t-=1))*Math.sin((t*r-o)*(2*Math.PI)/a)+n},easeOutElastic:function(e,t,n,i,r){var o=1.70158,a=0,s=i;if(0==t)return n;if(1==(t/=r))return n+i;if(a||(a=.3*r),s<Math.abs(i)){s=i;o=a/4}else o=a/(2*Math.PI)*Math.asin(i/s);return s*Math.pow(2,-10*t)*Math.sin((t*r-o)*(2*Math.PI)/a)+i+n},easeInOutElastic:function(e,t,n,i,r){var o=1.70158,a=0,s=i;if(0==t)return n;if(2==(t/=r/2))return n+i;if(a||(a=r*(.3*1.5)),s<Math.abs(i)){s=i;o=a/4}else o=a/(2*Math.PI)*Math.asin(i/s);return t<1?s*Math.pow(2,10*(t-=1))*Math.sin((t*r-o)*(2*Math.PI)/a)*-.5+n:s*Math.pow(2,-10*(t-=1))*Math.sin((t*r-o)*(2*Math.PI)/a)*.5+i+n},easeInBack:function(e,t,n,i,r,o){return null==o&&(o=1.70158),i*(t/=r)*t*((o+1)*t-o)+n},easeOutBack:function(e,t,n,i,r,o){return null==o&&(o=1.70158),i*((t=t/r-1)*t*((o+1)*t+o)+1)+n},easeInOutBack:function(e,t,n,i,r,o){return null==o&&(o=1.70158),(t/=r/2)<1?i/2*(t*t*((1+(o*=1.525))*t-o))+n:i/2*((t-=2)*t*((1+(o*=1.525))*t+o)+2)+n},easeInBounce:function(e,t,n,i,r){return i-jQuery.easing.easeOutBounce(e,r-t,0,i,r)+n},easeOutBounce:function(e,t,n,i,r){return(t/=r)<1/2.75?i*(7.5625*t*t)+n:t<2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+n:i*(7.5625*(t-=2.625/2.75)*t+.984375)+n},easeInOutBounce:function(e,t,n,i,r){return t<r/2?.5*jQuery.easing.easeInBounce(e,2*t,0,i,r)+n:.5*jQuery.easing.easeOutBounce(e,2*t-r,0,i,r)+.5*i+n}}),function(){var e=this,t=e._,a={},r=Array.prototype,n=Object.prototype,i=Function.prototype,o=r.push,s=r.slice,u=r.concat,d=n.toString,l=n.hasOwnProperty,c=r.forEach,h=r.map,p=r.reduce,f=r.reduceRight,g=r.filter,m=r.every,v=r.some,y=r.indexOf,b=r.lastIndexOf,w=Array.isArray,x=Object.keys,_=i.bind,k=function(e){return e instanceof k?e:this instanceof k?void(this._wrapped=e):new k(e)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=k),exports._=k):e._=k,k.VERSION="1.5.2";var E=k.each=k.forEach=function(e,t,n){if(null!=e)if(c&&e.forEach===c)e.forEach(t,n);else if(e.length===+e.length){for(var i=0,r=e.length;i<r;i++)if(t.call(n,e[i],i,e)===a)return}else{var o=k.keys(e);for(i=0,r=o.length;i<r;i++)if(t.call(n,e[o[i]],o[i],e)===a)return}};k.map=k.collect=function(e,i,r){var o=[];return null==e?o:h&&e.map===h?e.map(i,r):(E(e,function(e,t,n){o.push(i.call(r,e,t,n))}),o)};
1var D="Reduce of empty array with no initial value";k.reduce=k.foldl=k.inject=function(e,i,r,o){var a=2<arguments.length;if(null==e&&(e=[]),p&&e.reduce===p)return o&&(i=k.bind(i,o)),a?e.reduce(i,r):e.reduce(i);if(E(e,function(e,t,n){a?r=i.call(o,r,e,t,n):(r=e,a=!0)}),!a)throw new TypeError(D);return r},k.reduceRight=k.foldr=function(i,r,o,a){var s=2<arguments.length;if(null==i&&(i=[]),f&&i.reduceRight===f)return a&&(r=k.bind(r,a)),s?i.reduceRight(r,o):i.reduceRight(r);var u=i.length;if(u!==+u){var l=k.keys(i);u=l.length}if(E(i,function(e,t,n){t=l?l[--u]:--u,s?o=r.call(a,o,i[t],t,n):(o=i[t],s=!0)}),!s)throw new TypeError(D);return o},k.find=k.detect=function(e,i,r){var o;return C(e,function(e,t,n){return i.call(r,e,t,n)?(o=e,!0):void 0}),o},k.filter=k.select=function(e,i,r){var o=[];return null==e?o:g&&e.filter===g?e.filter(i,r):(E(e,function(e,t,n){i.call(r,e,t,n)&&o.push(e)}),o)},k.reject=function(e,i,r){return k.filter(e,function(e,t,n){return!i.call(r,e,t,n)},r)},k.every=k.all=function(e,i,r){i||(i=k.identity);var o=!0;return null==e?o:m&&e.every===m?e.every(i,r):(E(e,function(e,t,n){return(o=o&&i.call(r,e,t,n))?void 0:a}),!!o)};var C=k.some=k.any=function(e,i,r){i||(i=k.identity);var o=!1;return null==e?o:v&&e.some===v?e.some(i,r):(E(e,function(e,t,n){return o||(o=i.call(r,e,t,n))?a:void 0}),!!o)};k.contains=k.include=function(e,t){return null!=e&&(y&&e.indexOf===y?-1!=e.indexOf(t):C(e,function(e){return e===t}))},k.invoke=function(e,t){var n=s.call(arguments,2),i=k.isFunction(t);return k.map(e,function(e){return(i?t:e[t]).apply(e,n)})},k.pluck=function(e,t){return k.map(e,function(e){return e[t]})},k.where=function(e,n,t){return k.isEmpty(n)?t?void 0:[]:k[t?"find":"filter"](e,function(e){for(var t in n)if(n[t]!==e[t])return!1;return!0})},k.findWhere=function(e,t){return k.where(e,t,!0)},k.max=function(e,r,o){if(!r&&k.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.max.apply(Math,e);if(!r&&k.isEmpty(e))return-1/0;var a={computed:-1/0,value:-1/0};return E(e,function(e,t,n){var i=r?r.call(o,e,t,n):e;i>a.computed&&(a={value:e,computed:i})}),a.value},k.min=function(e,r,o){if(!r&&k.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.min.apply(Math,e);if(!r&&k.isEmpty(e))return 1/0;var a={computed:1/0,value:1/0};return E(e,function(e,t,n){var i=r?r.call(o,e,t,n):e;i<a.computed&&(a={value:e,computed:i})}),a.value},k.shuffle=function(e){var t,n=0,i=[];return E(e,function(e){t=k.random(n++),i[n-1]=i[t],i[t]=e}),i},k.sample=function(e,t,n){return arguments.length<2||n?e[k.random(e.length-1)]:k.shuffle(e).slice(0,Math.max(0,t))};var S=function(t){return k.isFunction(t)?t:function(e){return e[t]}};k.sortBy=function(e,t,i){var r=S(t);return k.pluck(k.map(e,function(e,t,n){return{value:e,index:t,criteria:r.call(i,e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")};var T=function(s){return function(i,e,r){var o={},a=null==e?k.identity:S(e);return E(i,function(e,t){var n=a.call(r,e,t,i);s(o,n,e)}),o}};k.groupBy=T(function(e,t,n){(k.has(e,t)?e[t]:e[t]=[]).push(n)}),k.indexBy=T(function(e,t,n){e[t]=n}),k.countBy=T(function(e,t){k.has(e,t)?e[t]++:e[t]=1}),k.sortedIndex=function(e,t,n,i){for(var r=(n=null==n?k.identity:S(n)).call(i,t),o=0,a=e.length;o<a;){var s=o+a>>>1;n.call(i,e[s])<r?o=s+1:a=s}return o},k.toArray=function(e){return e?k.isArray(e)?s.call(e):e.length===+e.length?k.map(e,k.identity):k.values(e):[]},k.size=function(e){return null==e?0:e.length===+e.length?e.length:k.keys(e).length},k.first=k.head=k.take=function(e,t,n){return null==e?void 0:null==t||n?e[0]:s.call(e,0,t)},k.initial=function(e,t,n){return s.call(e,0,e.length-(null==t||n?1:t))},k.last=function(e,t,n){return null==e?void 0:null==t||n?e[e.length-1]:s.call(e,Math.max(e.length-t,0))},k.rest=k.tail=k.drop=function(e,t,n){return s.call(e,null==t||n?1:t)},k.compact=function(e){return k.filter(e,k.identity)};var F=function(e,t,n){return t&&k.every(e,k.isArray)?u.apply(n,e):(E(e,function(e){k.isArray(e)||k.isArguments(e)?t?o.apply(n,e):F(e,t,n):n.push(e)}),n)};k.flatten=function(e,t){return F(e,t,[])}
1,k.without=function(e){return k.difference(e,s.call(arguments,1))},k.uniq=k.unique=function(n,i,e,t){k.isFunction(i)&&(t=e,e=i,i=!1);var r=e?k.map(n,e,t):n,o=[],a=[];return E(r,function(e,t){(i?t&&a[a.length-1]===e:k.contains(a,e))||(a.push(e),o.push(n[t]))}),o},k.union=function(){return k.uniq(k.flatten(arguments,!0))},k.intersection=function(e){var n=s.call(arguments,1);return k.filter(k.uniq(e),function(t){return k.every(n,function(e){return 0<=k.indexOf(e,t)})})},k.difference=function(e){var t=u.apply(r,s.call(arguments,1));return k.filter(e,function(e){return!k.contains(t,e)})},k.zip=function(){for(var e=k.max(k.pluck(arguments,"length").concat(0)),t=new Array(e),n=0;n<e;n++)t[n]=k.pluck(arguments,""+n);return t},k.object=function(e,t){if(null==e)return{};for(var n={},i=0,r=e.length;i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},k.indexOf=function(e,t,n){if(null==e)return-1;var i=0,r=e.length;if(n){if("number"!=typeof n)return e[i=k.sortedIndex(e,t)]===t?i:-1;i=n<0?Math.max(0,r+n):n}if(y&&e.indexOf===y)return e.indexOf(t,n);for(;i<r;i++)if(e[i]===t)return i;return-1},k.lastIndexOf=function(e,t,n){if(null==e)return-1;var i=null!=n;if(b&&e.lastIndexOf===b)return i?e.lastIndexOf(t,n):e.lastIndexOf(t);for(var r=i?n:e.length;r--;)if(e[r]===t)return r;return-1},k.range=function(e,t,n){arguments.length<=1&&(t=e||0,e=0),n=n||1;for(var i=Math.max(Math.ceil((t-e)/n),0),r=0,o=new Array(i);r<i;)o[r++]=e,e+=n;return o};var I=function(){};k.bind=function(n,i){var r,o;if(_&&n.bind===_)return _.apply(n,s.call(arguments,1));if(!k.isFunction(n))throw new TypeError;return r=s.call(arguments,2),o=function(){if(!(this instanceof o))return n.apply(i,r.concat(s.call(arguments)));I.prototype=n.prototype;var e=new I;I.prototype=null;var t=n.apply(e,r.concat(s.call(arguments)));return Object(t)===t?t:e}},k.partial=function(e){var t=s.call(arguments,1);return function(){return e.apply(this,t.concat(s.call(arguments)))}},k.bindAll=function(t){var e=s.call(arguments,1);if(0===e.length)throw new Error("bindAll must be passed function names");return E(e,function(e){t[e]=k.bind(t[e],t)}),t},k.memoize=function(t,n){var i={};return n||(n=k.identity),function(){var e=n.apply(this,arguments);return k.has(i,e)?i[e]:i[e]=t.apply(this,arguments)}},k.delay=function(e,t){var n=s.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},k.defer=function(e){return k.delay.apply(k,[e,1].concat(s.call(arguments,1)))},k.throttle=function(n,i,r){var o,a,s,u=null,l=0;r||(r={});var c=function(){l=!1===r.leading?0:new Date,u=null,s=n.apply(o,a)};return function(){var e=new Date;l||!1!==r.leading||(l=e);var t=i-(e-l);return o=this,a=arguments,t<=0?(clearTimeout(u),u=null,l=e,s=n.apply(o,a)):u||!1===r.trailing||(u=setTimeout(c,t)),s}},k.debounce=function(n,i,r){var o,a,s,u,l;return function(){s=this,a=arguments,u=new Date;var t=function(){var e=new Date-u;e<i?o=setTimeout(t,i-e):(o=null,r||(l=n.apply(s,a)))},e=r&&!o;return o||(o=setTimeout(t,i)),e&&(l=n.apply(s,a)),l}},k.once=function(e){var t,n=!1;return function(){return n||(n=!0,t=e.apply(this,arguments),e=null),t}},k.wrap=function(t,n){return function(){var e=[t];return o.apply(e,arguments),n.apply(this,e)}},k.compose=function(){var n=arguments;return function(){for(var e=arguments,t=n.length-1;0<=t;t--)e=[n[t].apply(this,e)];return e[0]}},k.after=function(e,t){return function(){return--e<1?t.apply(this,arguments):void 0}},k.keys=x||function(e){if(e!==Object(e))throw new TypeError("Invalid object");var t=[];for(var n in e)k.has(e,n)&&t.push(n);return t},k.values=function(e){for(var t=k.keys(e),n=t.length,i=new Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i},k.pairs=function(e){for(var t=k.keys(e),n=t.length,i=new Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},k.invert=function(e){for(var t={},n=k.keys(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t},k.functions=k.methods=function(e){var t=[];for(var n in e)k.isFunction(e[n])&&t.push(n);return t.sort()},k.extend=function(n){return E(s.call(arguments,1),function(e){if(e)for(var t in e)n[t]=e[t]}),n},k.pick=function(t){var n={}
1,e=u.apply(r,s.call(arguments,1));return E(e,function(e){e in t&&(n[e]=t[e])}),n},k.omit=function(e){var t={},n=u.apply(r,s.call(arguments,1));for(var i in e)k.contains(n,i)||(t[i]=e[i]);return t},k.defaults=function(n){return E(s.call(arguments,1),function(e){if(e)for(var t in e)void 0===n[t]&&(n[t]=e[t])}),n},k.clone=function(e){return k.isObject(e)?k.isArray(e)?e.slice():k.extend({},e):e},k.tap=function(e,t){return t(e),e};var P=function(e,t,n,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;e instanceof k&&(e=e._wrapped),t instanceof k&&(t=t._wrapped);var r=d.call(e);if(r!=d.call(t))return!1;switch(r){case"[object String]":return e==String(t);case"[object Number]":return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object RegExp]":return e.source==t.source&&e.global==t.global&&e.multiline==t.multiline&&e.ignoreCase==t.ignoreCase}if("object"!=typeof e||"object"!=typeof t)return!1;for(var o=n.length;o--;)if(n[o]==e)return i[o]==t;var a=e.constructor,s=t.constructor;if(a!==s&&!(k.isFunction(a)&&a instanceof a&&k.isFunction(s)&&s instanceof s))return!1;n.push(e),i.push(t);var u=0,l=!0;if("[object Array]"==r){if(l=(u=e.length)==t.length)for(;u--&&(l=P(e[u],t[u],n,i)););}else{for(var c in e)if(k.has(e,c)&&(u++,!(l=k.has(t,c)&&P(e[c],t[c],n,i))))break;if(l){for(c in t)if(k.has(t,c)&&!u--)break;l=!u}}return n.pop(),i.pop(),l};k.isEqual=function(e,t){return P(e,t,[],[])},k.isEmpty=function(e){if(null==e)return!0;if(k.isArray(e)||k.isString(e))return 0===e.length;for(var t in e)if(k.has(e,t))return!1;return!0},k.isElement=function(e){return!(!e||1!==e.nodeType)},k.isArray=w||function(e){return"[object Array]"==d.call(e)},k.isObject=function(e){return e===Object(e)},E(["Arguments","Function","String","Number","Date","RegExp"],function(t){k["is"+t]=function(e){return d.call(e)=="[object "+t+"]"}}),k.isArguments(arguments)||(k.isArguments=function(e){return!(!e||!k.has(e,"callee"))}),"function"!=typeof/./&&(k.isFunction=function(e){return"function"==typeof e}),k.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},k.isNaN=function(e){return k.isNumber(e)&&e!=+e},k.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"==d.call(e)},k.isNull=function(e){return null===e},k.isUndefined=function(e){return void 0===e},k.has=function(e,t){return l.call(e,t)},k.noConflict=function(){return e._=t,this},k.identity=function(e){return e},k.times=function(e,t,n){for(var i=Array(Math.max(0,e)),r=0;r<e;r++)i[r]=t.call(n,r);return i},k.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))};var M={escape:{"&":"&","<":"<",">":">",'"':""","'":"'"}};M.unescape=k.invert(M.escape);var A={escape:new RegExp("["+k.keys(M.escape).join("")+"]","g"),unescape:new RegExp("("+k.keys(M.unescape).join("|")+")","g")};k.each(["escape","unescape"],function(t){k[t]=function(e){return null==e?"":(""+e).replace(A[t],function(e){return M[t][e]})}}),k.result=function(e,t){if(null!=e){var n=e[t];return k.isFunction(n)?n.call(e):n}},k.mixin=function(n){E(k.functions(n),function(e){var t=k[e]=n[e];k.prototype[e]=function(){var e=[this._wrapped];return o.apply(e,arguments),j.call(this,t.apply(k,e))}})};var N=0;k.uniqueId=function(e){var t=++N+"";return e?e+t:t},k.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var O=/(.)^/,L={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},R=/\\|'|\r|\n|\t|\u2028|\u2029/g;k.template=function(o,e,t){var n;t=k.defaults({},t,k.templateSettings);var i=new RegExp([(t.escape||O).source,(t.interpolate||O).source,(t.evaluate||O).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(i,function(e,t,n,i,r){return s+=o.slice(a,r).replace(R,function(e){return"\\"+L[e]}),t&&(s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'"),n&&(s+="'+\n((__t=("+n+"))==null?'':__t)+\n'"),i&&(s+="';\n"+i+"\n__p+='"),a=r+e.length,e}),s+="';\n",t.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{n=new Function(t.variable||"obj","_",s)}catch(e){throw e.source=s,e}if(e)return n(e,k);var r=function(e){return n.call(this,e,k)};return r.source="function("+(t.variable||"obj")+"){\n"+s+"}",r},k.chain=function(e){return k(e).chain()};var j=function(e){return this._chain?k(e).chain():e};k.mixin(k),E(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=r[t];k.prototype[t]=function(){var e=this._wrapped;return n.apply(e,arguments),"shift"!=t&&"splice"!=t||0!==e.length||delete e[0],j.call(this,e)}}),E(["concat","join","slice"],function(e){var t=r[e];k.prototype[e]=function(){return j.call(this,t.apply(this._wrapped,arguments))}}),k.extend(k.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}.call(this),function(u,l,c){l.infinitescroll=function(e,t,n){this.element=l(n),this._create(e,t)||(this.failed=!0)},l.infinitescroll.defaults={loading:{finished:c,finishedMsg:"<em>Congratulations, you've reached the end of the internet.</em>",img:"http://www.infinite-scroll.com/loading.gif",msg:null,msgText:"<em>Loading the next set of posts...</em>",selector:null,speed:"fast",start:c},state:{isDuringAjax:!1,isInvalidPage:!1,isDestroyed:!1,isDone:!1,isPaused:!1,currPage:1},callback:c,debug:!1,behavior:c,binder:l(u),nextSelector:"div.navigation a:first",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",animate:!1,pathParse:c,dataType:"html",appendCallback:!0,bufferPx:40,errorCallback:function(){},infid:0,pixelsFromNavToBottom:c,path:c},l.infinitescroll.prototype={_binding:function(e){var t=this,n=t.options;if(n.v="2.0b2.111027",n.behavior&&this["_binding_"+n.behavior]!==c)this["_binding_"+n.behavior].call(this);else{if("bind"!==e&&"unbind"!==e)return this._debug("Binding value "+e+" not valid"),!1;"unbind"==e?this.options.binder.unbind("smartscroll.infscr."+t.options.infid):this.options.binder[e]("smartscroll.infscr."+t.options.infid,function(){t.scroll()}),this._debug("Binding",e)}},_create:function(e,n){var i=l.extend(!0,{},l.infinitescroll.defaults,e);
1if(!this._validate(e))return!1;this.options=i;var t=l(i.nextSelector).attr("href");return t?(i.path=this._determinepath(t),i.contentSelector=i.contentSelector||this.element,i.loading.selector=i.loading.selector||i.contentSelector,i.loading.msg=i.loading.msg||l('<div id="infscr-loading"><img alt="Loading..." src="'+i.loading.img+'" /><div>'+i.loading.msgText+"</div></div>"),(new Image).src=i.loading.img,i.pixelsFromNavToBottom=l(document).height()-l(i.navSelector).offset().top,i.loading.start=i.loading.start||function(){l(i.navSelector).hide(),i.loading.msg.appendTo(i.loading.selector).show(),beginAjax(i)},i.loading.finished=i.loading.finished||function(){i.loading.msg.hide()},i.callback=function(e,t){i.behavior&&e["_callback_"+i.behavior]!==c&&e["_callback_"+i.behavior].call(l(i.contentSelector)[0],t),n&&n.call(l(i.contentSelector)[0],t,i)},this._setup(),!0):(this._debug("Navigation selector not found"),!1)},_debug:function(){if(this.options&&this.options.debug)return u.console&&console.log&&console.log.call&&console.log.call(console,arguments)},_determinepath:function(e){var t=this.options;if(!t.behavior||this["_determinepath_"+t.behavior]===c){if(t.pathParse)return this._debug("pathParse manual"),t.pathParse(e,this.options.state.currPage+1);if(e.match(/^(.*?)\b2\b(.*?$)/))e=e.match(/^(.*?)\b2\b(.*?$)/).slice(1);else if(e.match(/^(.*?)2(.*?$)/)){if(e.match(/^(.*?page=)2(\/.*|$)/))return e=e.match(/^(.*?page=)2(\/.*|$)/).slice(1);e=e.match(/^(.*?)2(.*?$)/).slice(1)}else{if(e.match(/^(.*?page=)1(\/.*|$)/))return e=e.match(/^(.*?page=)1(\/.*|$)/).slice(1);this._debug("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com."),t.state.isInvalidPage=!0}return this._debug("determinePath",e),e}this["_determinepath_"+t.behavior].call(this,e)},_error:function(e){var t=this.options;t.behavior&&this["_error_"+t.behavior]!==c?this["_error_"+t.behavior].call(this,e):("destroy"!==e&&"end"!==e&&(e="unknown"),this._debug("Error",e),"end"==e&&this._showdonemsg(),t.state.isDone=!0,t.state.currPage=1,t.state.isPau
1sed=!1,this._binding("unbind"))},_loadcallback:function(e,t){var n,i=this.options,r=this.options.callback,o=i.state.isDone?"done":i.appendCallback?"append":"no-append";if(i.behavior&&this["_loadcallback_"+i.behavior]!==c)this["_loadcallback_"+i.behavior].call(this,e,t);else{switch(o){case"done":return this._showdonemsg(),!1;case"no-append":"html"==i.dataType&&(t=l(t="<div>"+t+"</div>").find(i.itemSelector));break;case"append":var a=e.children();if(0==a.length)return this._error("end");for(n=document.createDocumentFragment();e[0].firstChild;)n.appendChild(e[0].firstChild);this._debug("contentSelector",l(i.contentSelector)[0]),l(i.contentSelector)[0].appendChild(n),t=a.get()}if(i.loading.finished.call(l(i.contentSelector)[0],i),i.animate){var s=l(u).scrollTop()+l("#infscr-loading").height()+i.extraScrollPx+"px";l("html,body").animate({scrollTop:s},800,function(){i.state.isDuringAjax=!1})}i.animate||(i.state.isDuringAjax=!1),r(this,t)}},_nearbottom:function(){var e=this.options,t=0+l(document).height()-e.binder.scrollTop()-l(u).height();return e.behavior&&this["_nearbottom_"+e.behavior]!==c?this["_nearbottom_"+e.behavior].call(this):(this._debug("math:",t,e.pixelsFromNavToBottom),t-e.bufferPx<e.pixelsFromNavToBottom)},_pausing:function(e){var t=this.options;if(!t.behavior||this["_pausing_"+t.behavior]===c){switch("pause"!==e&&"resume"!==e&&null!==e&&this._debug("Invalid argument. Toggling pause value instead"),e=!e||"pause"!=e&&"resume"!=e?"toggle":e){case"pause":t.state.isPau
1sed=!0;break;case"resume":t.state.isPaused=!1;break;case"toggle":t.state.isPaused=!t.state.isPaused}return this._debug("Paused",t.state.isPaused),!1}this["_pausing_"+t.behavior].call(this,e)},_setup:function(){var e=this.options;if(!e.behavior||this["_setup_"+e.behavior]===c)return this._binding("bind"),!1;this["_setup_"+e.behavior].call(this)},_showdonemsg:function(){var e=this.options;e.behavior&&this["_showdonemsg_"+e.behavior]!==c?this["_showdonemsg_"+e.behavior].call(this):(e.loading.msg.find("img").hide().parent().find("div").html(e.loading.finishedMsg).animate({opacity:1},2e3,function(){l(this).parent().fadeOut("normal")}),e.errorCallback.call(l(e.contentSelector)[0],"done"))},_validate:function(e){for(var t in e)if(t.indexOf&&-1<t.indexOf("Selector")&&0===l(e[t]).length)return this._debug("Your "+t+" found no elements."),!1;return!0},bind:function(){this._binding("bind")},destroy:function(){return this.options.state.isDestroyed=!0,this._error("destroy")},pause:function(){this._pausing("pause")},resume:function(){this._pausing("resume")},retrieve:function(e){var o,t,n,a,s=this,i=s.options,u=i.path;(e=e||null)||i.state.currPage;if(beginAjax=function(r){switch(r.state.currPage++,s._debug("heading into ajax",u),o=l(r.contentSelector).is("table")?l("<tbody/>"):l("<div/>"),t=u.join(r.state.currPage),n="html"==r.dataType||"json"==r.dataType?r.dataType:"html+callback",r.appendCallback&&"html"==r.dataType&&(n+="+callback"),n){case"html+callback":s._debug("Using HTML via .load() method"),o.load(t+" "+r.itemSelector,function(e){s._loadcallback(o,e)});break;case"html":s._debug("Using "+n.toUpperCase()+" via $.ajax() method"),l.ajax({type:"GET",url:t,dataType:r.dataType,complete:function(e,t){(a=void 0!==e.isResolved?e.isResolved():"success"===t||"notmodified"===t)?s._loadcallback(o,e.responseText):s._error("end")}});break;case"json":s._debug("Using "+n.toUpperCase()+" via $.ajax() method"),l.ajax({dataType:"json",type:"GET",url:t,success:function(e,t,n){if(a=void 0!==n.isResolved?n.isResolved():"success"===t||"notmodified"===t,r.appendCallback)if(r.template!=c){var i=r.template(e);o.append(i),a?s._loadcallback(o,i):s._error("end")}else s._debug("template must be defined."),s._error("end");else a?s._loadcallback(o,e):s._error("end")},error:function(e,t,n){s._debug("JSON ajax request failed."),s._error("end")}})}},i.behavior&&this["retrieve_"+i.behavior]!==c)this["retrieve_"+i.behavior].call(this,e);else{if(i.state.isDestroyed)return this._debug("Instance is destroyed"),!1;i.state.isDuringAjax=!0,i.loading.start.call(l(i.contentSelector)[0],i)}},scroll:function(){var e=this.options,t=e.state;e.behavior&&this["scroll_"+e.behavior]!==c?this["scroll_"+e.behavior].call(this):t.isDuringAjax||t.isInvalidPage||t.isDone||t.isDestroyed||t.isPaused||this._nearbottom()&&this.retrieve()},toggle:function(){this._pausing()},unbind:function(){this._binding("unbind")},update:function(e){l.isPlainObject(e)&&(this.options=l.extend(!0,this.options,e))}},l.fn.infinitescroll=function(t,n){switch(typeof t){case"string":var i=Array.prototype.slice.call(arguments,1);this.each(function(){var e=l.data(this,"infinitescroll");return!!e&&(!(!l.isFunction(e[t])||"_"===t.charAt(0))&&void e[t].apply(e,i))});break;case"object":this.each(function(){var e=l.data(this,"infinitescroll");e?e.update(t):(e=new l.infinitescroll(t,n,this)).failed||l.data(this,"infinitescroll",e)})}return this};var r,e=l.event;e.special.smartscroll={setup:function(){l(this).bind("scroll",e.special.smartscroll.handler)},teardown:function(){l(this).unbind("scroll",e.special.smartscroll.handler)},handler:function(e,t){var n=this,i=arguments;e.type="smartscroll",r&&clearTimeout(r),r=setTimeout(function(){l.event.handle.apply(n,i)},"execAsap"===t?0:100)}},l.fn.smartscroll=function(e){return e?this.bind("smartscroll",e):this.trigger("smartscroll",["execAsap"])}}(window,jQuery),function(e,c){var i,t=e.jQuery||e.Cowboy||(e.Cowboy={});t.throttle=i=function(r,o,a,s){var u,l=0;function e(){var e=this,t=+new Date-l,n=arguments;function i(){l=+new Date,a.apply(e,n)}s&&!u&&i(),u&&clearTimeout(u),s===c&&r<t?i():!0!==o&&(u=setTimeout(s?function(){u=c}:i,s===c?r-t:r))}return"boolean"!=typeof o&&(s=a,a=o,o=c),t.guid&&(e.guid=a.guid=a.guid||t.guid++),e},t.debounce=function(e,t,n){return n===c?i(e,t,!1):i(e,n,!1!==t)}}(this);var Sylvester={version:"0.1.3",precision:1e-6};Matrix.prototype={e:function(e,t){return e<1||e>this.elements.length||t<1||t>this.elements[0].length?null:this.elements[e-1][t-1]},map:function(e){var t,n,i,r=[],o=this.elements.length,a=o,s=this.elements[0].length;do{for(n=s,r[t=a-o]=[];i=s-n,r[t][i]=e(this.elements[t][i],t+1,i+1),--n;);}while(--o);return Matrix.create(r)},multiply:function(t){if(!t.elements)return this.map(function(e){return e*t});var e=!!t.modulus;if(void 0===(p=t.elements||t)[0][0]&&(p=Matrix.create(p).elements),!this.canMultiplyFromLeft(p)
1)return null;var n,i,r,o,a,s,u=this.elements.length,l=u,c=p[0].length,d=this.elements[0].length,h=[];do{h[n=l-u]=[],i=c;do{for(r=c-i,o=0,a=d;s=d-a,o+=this.elements[n][s]*p[s][r],--a;);h[n][r]=o}while(--i)}while(--u);var p=Matrix.create(h);return e?p.col(1):p},x:function(e){return this.multiply(e)},canMultiplyFromLeft:function(e){var t=e.elements||e;return void 0===t[0][0]&&(t=Matrix.create(t).elements),this.elements[0].length==t.length},setElements:function(e){var t,n=e.elements||e;if(void 0!==n[0][0]){var i,r,o,a=n.length,s=a;this.elements=[];do{for(r=i=n[t=s-a].length,this.elements[t]=[];o=r-i,this.elements[t][o]=n[t][o],--i;);}while(--a);return this}var u=n.length,l=u;for(this.elements=[];t=l-u,this.elements.push([n[t]]),--u;);return this}},Matrix.create=function(e){return(new Matrix).setElements(e)},$M=Matrix.create,function(o){if(!o.cssHooks)throw"jQuery 1.4.3+ is needed for this plugin to work";var e,t,a,u,l,n="transform",i=n.charAt(0).toUpperCase()+n.slice(1),r=["Moz","Webkit","O","MS"],c=document.createElement("div");if(n in c.style)t=n,a=void 0!==c.style.perspective;else for(var d=0;d<r.length;d++)if((e=r[d]+i)in c.style){t=e,r[d]+"Perspective"in c.style?a=!0:u=!0;break}t||(l="filter"in c.style,t="filter"),c=null;var h=o.support[n]=t,p={rotateX:{defaultValue:0,matrix:function(e){return a?$M([[1,0,0,0],[0,Math.cos(e),Math.sin(-e),0],[0,Math.sin(e),Math.cos(e),0],[0,0,0,1]]):$M([[1,0,0],[0,1,0],[0,0,1]])}},rotateY:{defaultValue:0,matrix:function(e){return a?$M([[Math.cos(e),0,Math.sin(e),0],[0,1,0,0],[Math.sin(-e),0,Math.cos(e),0],[0,0,0,1]]):$M([[1,0,0],[0,1,0],[0,0,1]])}},rotateZ:{defaultValue:0,matrix:function(e){return a?$M([[Math.cos(e),Math.sin(-e),0,0],[Math.sin(e),Math.cos(e),0,0],[0,0,1,0],[0,0,0,1]]):$M([[Math.cos(e),Math.sin(-e),0],[Math.sin(e),Math.cos(e),0],[0,0,1]])}},scale:{defaultValue:1,matrix:function(e){return a?$M([[e,0,0,0],[0,e,0,0],[0,0,e,0],[0,0,0,1]]):$M([[e,0,0],[0,e,0],[0,0,1]])}},translateX:{defaultValue:0,matrix:function(e){return a?$M([[1,0,0,0],[0,1,0,0],[0,0,1,0],[e,0,0,1]]):$M([[1,0,0],[0,1,0],[e,0,1]])}},translateY:{defaultValue:0,matrix:function(e){return a?$M([[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,e,0,1]]):$M([[1,0,0],[0,1,0],[0,e,1]])}},translateZ:{defaultValue:0,matrix:function(e){return a?$M([[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,e,1]]):$M([[1,0,0],[0,1,0],[0,0,1]])}}},f=function(r){return o.fx.step[r]=function(e){o.cssHooks[r].set(e.elem,e.now+e.unit)},{get:function(e,t,n){var i=o(e).data("transforms");return void 0===i&&(i={},o(e).data("transforms",i)),i[r]||p[r].defaultValue},set:function(e,t){var n=o(e).data("transforms");void 0===n&&(n={});var i=p[r];"function"==typeof i.apply?n[r]=i.apply(n[r]||i.defaultValue,t):n[r]=t,o(e).data("transforms",n),function(e){var t,n=o(e).data("transforms");for(var i in t=a?$M([[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]):$M([[1,0,0],[0,1,0],[0,0,1]]),p)t=t.x(p[i].matrix(n[i]||p[i].defaultValue));a?(s="matrix3d(",s+=t.e(1,1).toFixed(10)+","+t.e(1,2).toFixed(10)+","+t.e(1,3).toFixed(10)+","+t.e(1,4).toFixed(10)+",",s+=t.e(2,1).toFixed(10)+","+t.e(2,2).toFixed(10)+","+t.e(2,3).toFixed(10)+","+t.e(2,4).toFixed(10)+",",s+=t.e(3,1).toFixed(10)+","+t.e(3,2).toFixed(10)+","+t.e(3,3).toFixed(10)+","+t.e(3,4).toFixed(10)+",",s+=t.e(4,1).toFixed(10)+","+t.e(4,2).toFixed(10)+","+t.e(4,3).toFixed(10)+","+t.e(4,4).toFixed(10),s+=")"):u?(s="matrix(",s+=t.e(1,1).toFixed(10)+","+t.e(1,2).toFixed(10)+",",s+=t.e(2,1).toFixed(10)+","+t.e(2,2).toFixed(10)+",",s+=t.e(3,1).toFixed(10)+"px,"+t.e(3,2).toFixed(10)+"px",s+=")"):l&&(s="progid:DXImageTransform.Microsoft.",s+="Matrix(",s+="M11="+t.e(1,1).toFixed(10)+",",s+="M12="+t.e(1,2).toFixed(10)+",",s+="M21="+t.e(2,1).toFixed(10)+",",s+="M22="+t.e(2,2).toFixed(10)+",",s+="SizingMethod='auto expand'",s+=")",e.style.top=t.e(3,1),e.style.left=t.e(3,2)),e.style[h]=s}(e)}}};if(h)for(var g in p)o.cssHooks[g]=f(g),o.cssNumber[g]=!0}(jQuery);var QueryParams=function(e){"use strict";0<(e+="").length&&"?"==e.substring(0,1)&&(e=e.substring(1));var t=[],n={},i=/\+/g;if(e.length)for(var r in t=e.split("&")){var o=t[r].split("=")[0];if(o.length){void 0===n[o]&&(n[o]=[]);var a=t[r].split("=")[1];n[o].push(decodeURIComponent(a.replace(i," ")))}}function s(){return"?"+$.map(n,function(e,n){return $.map(e,function(e,t){return encodeURIComponent(n)+"="+encodeURIComponent(e)})}).join("&")}return{get:function(e){var t=n[e];return void 0===t?null:1==t.length?t[0]:t},keys:function(){return n},clone:function(){return new QueryParams(s())},set:function(e,t){n[e]=[t]},unset:function(e){delete n[e]},setMultiple:function(e,t){n[e]=t},toString:s}},QueryString=new QueryParams(window.location.search);!function(r){var o=r.c_||{};r.publish=function(e,t){for(var n=o[e],i=n?n.length:0;i--;)n[i].apply(r,t||[])},r.subscribe=function(e,t){return o[e]||(o[e]=[]),o[e].push(t),[e,t]},r.unsubscribe=function(e,t){for(var n=o[t?e:e[0]],i=(t=t||e[1],n?n.length:0);i--;)n[i]===t&&n.splice(i,1)}}(this),function(e){var t={VERSION:"0.7.4"};function a(e,t,n,i,r){this._listener=t,this._isOnce=n,this.context=i,this._signal=e,this._priority=r||0}function i(e,t){if("function"!=typeof e)throw new Error("listener is a required param of {fn}() and should be a Function.".replace("{fn}",t))}a.prototype={active:!0,params:null,execute:function(e){var t,n;return this.active&&this._listener&&(n=this.params?this.params.concat(e):e,t=this._listener.apply(this.context,n),this._isOnce&&this.detach()),t},detach:function(){return this.isBound()?this._signal.remove(this._listener,this.context):null},isBound:function(){return!!this._signal&&!!this._listener},getListener:function(){return this._listener},_destroy:function(){delete this._signal,delete this._listener,delete this.context},isOnce:function(){return this._isOnce},toString:function(){return"[SignalBinding isOnce:"+this._isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}},t.Signal=function(){this._bindings=[],this._prevParams=null},t.Signal.prototype={memorize:!1,_shouldPropagate:!0,active:!0,_registerListener:function(e,t,n,i){var r,o=this._indexOfListener(e,n);if(-1!==o){if((r=this._bindings[o]).isOnce()!==t)throw new Error("You cannot add"+(t?"":"Once")+"() then add"+(t?"Once":"")+"() the same listener without remov
1ing the relationship first.")}else r=new a(this,e,t,n,i),this._addBinding(r);return this.memorize&&this._prevParams&&r.execute(this._prevParams),r},_addBinding:function(e){for(var t=this._bindings.length;--t,this._bindings[t]&&e._priority<=this._bindings[t]._priority;);this._bindings.splice(t+1,0,e)},_indexOfListener:function(e,t){for(var n,i=this._bindings.length;i--;)if((n=this._bindings[i])._listener===e&&n.context===t)return i;return-1},has:function(e,t){return-1!==this._indexOfListener(e,t)},add:function(e,t,n){return i(e,"add"),this._registerListener(e,!1,t,n)},addOnce:function(e,t,n){return i(e,"addOnce"),this._registerListener(e,!0,t,n)},remove:function(e,t){i(e,"remove");var n=this._indexOfListener(e,t);return-1!==n&&(this._bindings[n]._destroy(),this._bindings.splice(n,1)),e},removeAll:function(){for(var e=this._bindings.length;e--;)this._bindings[e]._destroy();this._bindings.length=0},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(e){if(this.active){var t,n=Array.prototype.slice.call(arguments),i=this._bindings.length;if(this.memorize&&(this._prevParams=n),i)for(t=this._bindings.slice(),this._shouldPropagate=!0;t[--i]&&this._shouldPropagate&&!1!==t[i].execute(n););}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}},"function"==typeof define&&define.amd?define(t):"undefined"!=typeof module&&module.exports?module.exports=t:e.signals=t}(this),("function"==typeof define&&define.amd?define:function(e,t,n){window[e]=n(window[t[0]])})("hasher",["signals"],function(m){return function(i){i.document;var r,o,a,s,u,t=i.location,e=(i.history,m.Signal),n=/#(.*)$/,l=/(\?.*)|(\#.*)/,c=/^\#/,d="onhashchange"in i;function h(e){if(!e)return"";var t=new RegExp("^\\"+r.prependHash+"|\\"+r.appendHash+"$","g");return e.replace(t,"")}function p(){var e=n.exec(r.getURL());return e&&e[1]?decodeURIComponent(e[1]):""}function f(e,t){if(e=decodeURIComponent(e),o!==e){var n=o;o=e,r.changed.dispatch(h(e),h(n))}}function g(e){var t=(e=Array.prototype.slice.call(arguments)).join(r.separator);return t=t?r.prependHash+t.replace(c,"")+r.appendHash:t}return t.protocol,u=function(){var e=p();e!==o&&f(e)},(r={VERSION:"1.1.0",appendHash:"",prependHash:"/",separator:"/",changed:new e,stopped:new e,initialized:new e,init:function(){var e,t,n;s||(o=p(),d?(t="hashchange",n=u,(e=i).addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)):a=setInterval(u,25),s=!0,r.initialized.dispatch(h(o)))},stop:function(){var e,t,n;s&&(d?(t="hashchange",n=u,(e=i).removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)):(clearInterval(a),a=null),s=!1,r.stopped.dispatch(h(o)))},isActive:function(){return s},getURL:function(){return t.href},getBaseURL:function(){return r.getURL().replace(l,"")},setHash:function(e){(e=g.apply(null,arguments))!==o&&(f(e),t.hash="#"+encodeURI(e))},replaceHash:function(e){(e=g.apply(null,arguments))!==o&&(f(e),t.replace("#"+encodeURI(e)))},getHash:function(){return h(o)},getHashAsArray:function(){return r.getHash().split(r.separator)},dispose:function(){r.stop(),r.initialized.dispose(),r.stopped.dispose(),r.changed.dispose(),r=i.hasher=null},makePath:function(e){return g.apply(null,arguments)},toString:function(){return'[hasher version="'+r.VERSION+'" hash="'+r.getHash()+'"]'}}).initialized.memorize=!0,r}(window)}),function(){var h,a,n=0,p=[],t={},o={},i={"<":"lt",">":"gt","&":"amp",'"':"quot","'":"#39"},r=/[<>&\"\']/g,f=window.setTimeout,s={};function u(){this.returnValue=!1}function l(){this.cancelBubble=!0}!function(e){var t,n,i,r="application/msword,doc dot,application/pdf,pdf,application/pgp-signature,pgp,application/postscript,ps ai eps,application/rtf,rtf,application/vnd.ms-excel,xls xlb,application/vnd.ms-powerpoint,ppt pps pot,application/zip,zip,application/x-shockwave-flash,swf swfl,application/vnd.openxmlformats-officedocument.wordprocessingml.document,docx,application/vnd.openxmlformats-officedocument.wordprocessingml.template,dotx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,xlsx,application/vnd.openxmlformats-officedocument.presentationml.presentation,pptx,application/vnd.openxmlformats-officedocument.presentationml.template,potx,application/vnd.openxmlformats-officedocument.presentationml.slideshow,ppsx,application/x-javascript,js,application/json,json,audio/mpeg,mpga mpega mp2 mp3,audio/x-wav,wav,audio/mp4,m4a,image/bmp,bmp,image/gif,gif,image/jpeg,jpeg jpg jpe,image/photoshop,psd,image/png,png,image/svg+xml,svg svgz,image/tiff,tiff tif,text/plain,asc txt text diff log,text/html,htm html xhtml,text/css,css,text/csv,csv,text/rtf,rtf,video/mpeg,mpeg mpg mpe,video/quicktime,qt mov,video/mp4,mp4,video/x-m4v,m4v,video/x-flv,flv,video/x-ms-wmv,wmv,video/avi,avi,video/webm,webm,video/vnd.rn-realvideo,rv,application/vnd.oasis.opendocument.formula-template,otf,application/octet-stream,exe".split(/,/);for(t=0;t<r.length;t+=2)for(i=r[t+1].split(/ /),n=0;n<i.length;n++)o[i[n]]=r[t]}();var e,c,d,g,m,v,y={VERSION:"1.5.4",STOPPED:1,STARTED:2,QUEUED:1,UPLOADING:2,FAILED:4,DONE:5,GENERIC_ERROR:-100,HTTP_ERROR:-200,IO_ERROR:-300,SECURITY_ERROR:-400,INIT_ERROR:-500,FILE_SIZE_ERROR:-600,FILE_EXTENSION_ERROR:-601,IMAGE_FORMAT_ERROR:-700,IMAGE_MEMORY_ERROR:-701,IMAGE_DIMENSIONS_ERROR:-702,mimeTypes:o,ua:(g=navigator,m=g.userAgent,v=g.vendor,d=(e=/WebKit/.test(m))&&-1!==v.indexOf("Apple"),c=window.opera&&window.opera.buildNumber,{windows:-1!==navigator.platform.indexOf("Win"),ie:!e&&!c&&/MSIE/gi.test(m)&&/Explorer/gi.test(g.appName),webkit:e,gecko:!e&&/Gecko/.test(m),safari:d,opera:!!c}),typeOf:function(e){return{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1].toLowerCase()},extend:function(n){return y.each(arguments,function(e,t){0<t&&y.each(e,function(e,t){n[t]=e})}),n},cleanName:function(e){var t,n;for(n=[/[\300-\306]/g,"A",/[\340-\346]/g,"a",/\307/g,"C",/\347/g,"c",/[\310-\313]/g,"E",/[\350-\353]/g,"e",/[\314-\317]/g,"I",/[\354-\357]/g,"i",/\321/g,"N",/\361/g,"n",/[\322-\330]/g,"O",/[\362-\370]/g,"o",/[\331-\334]/g,"U",/[\371-\374]/g,"u"],t=0;t<n.length;t+=2)e=e.replace(n[t],n[t+1]);return e=(e=e.replace(/\s+/g,"_")).replace(/[^a-z0-9_\-\.]+/gi,"")},addRuntime:function(e,t){return t.name=e,p[e]=t,p.push(t),t},guid:function(){var e,t=(new Date).getTime().toString(32);for(e=0;e<5;e++)t+=Math.floor(65535*Math.random()).toString(32);return(y.guidPrefix||"p")+t+(n++).toString(32)},buildUrl:function(e,t){var n="";return y.each(t,function(e,t){n+=(n?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(e)}),n&&(e+=(0<e.indexOf("?")?"&":"?")+n),e},each:function(e,t){var n,i,r;if(e)if((n=e.length)===h){for(i in e)if(e.hasOwnProperty(i)&&!1===t(e[i],i))return}else for(r=0;r<n;r++)if(!1===t(e[r],r))return},formatSize:function(e){return e===h||/\D/.test(e)?y.translate("N/A"):1073741824<e?Math.round(e/1073741824,1)+" GB":1048576<e?Math.round(e/1048576,1)+" MB":1024<e?Math.round(e/1024,1)+" KB":e+" b"},getPos:function(e,t){var n,i,r,o=0,a=0,s=document;function u(e){var t,n,i=0,r=0;return e&&(n=e.getBoundingClientRect(),t="CSS1Compat"===s.compatMode?s.documentElement:s.body,i=n.left+t.scrollLeft,r=n.top+t.scrollTop),{x:i,y:r}}if(e=e,t=t||s.body,e&&e.getBoundingClientRect&&0<navigator.userAgent.indexOf("MSIE")&&s.documentMode<8)return i=u(e),r=u(t),{x:i.x-r.x,y:i.y-r.y};for(n=e;n&&n!=t&&n.nodeType;)o+=n.offsetLeft||0,a+=n.offsetTop||0,n=n.offsetParent;for(n=e.parentNode;n&&n!=t&&n.nodeType;)o-=n.scrollLeft||0,a-=n.scrollTop||0,n=n.parentNode;return{x:o,y:a}},getSize:function(e){return{w:e.offsetWidth||e.clientWidth,h:e.offsetHeight||e.clientHeight}},parseSize:function(e){var t;return"string"==typeof e&&(t=(e=/^([0-9]+)([mgk]?)$/.exec(e.toLowerCase().replace(/[^0-9mkg]/g,"")))[2],e=+e[1],"g"==t&&(e*=1073741824),"m"==t&&(e*=1048576),"k"==t&&(e*=1024)),e},xmlEncode:function(e){return e?(""+e).replace(r,function(e){return i[e]?"&"+i[e]+";":e}):e},toArray:function(e){var t,n=[];for(t=0;t<e.length;t++)n[t]=e[t];return n},inArray:function(e,t){if(t){if(Array.prototype.indexOf)return Array.prototype.indexOf.call(t,e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1},addI18n:function(e){return y.extend(t,e)},translate:function(e){return t[e]||e},isEmptyObj:function(e){if(e===h)return!0;for(var t in e)return!1;return!0},hasClass:function(e,t){return""!=e.className&&new RegExp("(^|\\s+)"+t+"(\\s+|$)").test(e.className)},addClass:function(e,t){y.hasClass(e,t)||(e.className=""==e.className?t:e.className.replace(/\s+$/,"")+" "+t)},removeClass:function(e,t){var n=new RegExp("(^|\\s+)"+t+"(\\s+|$)");e.className=e.className.replace(n,function(e,t,n){return" "===t&&" "===n?" ":""})},getStyle:function(e,t){return e.currentStyle?e.currentStyle[t]:window.getComputedStyle?window.getComputedStyle(e,null)[t]:void 0},addEvent:function(e,t,n){var i,r,o;
1o=arguments[3],t=t.toLowerCase(),a===h&&(a="Plupload_"+y.guid()),e.addEventListener?(i=n,e.addEventListener(t,i,!1)):e.attachEvent&&(i=function(){var e=window.event;e.target||(e.target=e.srcElement),e.preventDefault=u,e.stopPropagation=l,n(e)},e.attachEvent("on"+t,i)),e[a]===h&&(e[a]=y.guid()),s.hasOwnProperty(e[a])||(s[e[a]]={}),(r=s[e[a]]).hasOwnProperty(t)||(r[t]=[]),r[t].push({func:i,orig:n,key:o})},removeEvent:function(t,e){var n,i,r;if("function"==typeof arguments[2]?i=arguments[2]:r=arguments[2],e=e.toLowerCase(),t[a]&&s[t[a]]&&s[t[a]][e]){for(var o=(n=s[t[a]][e]).length-1;0<=o&&(n[o].key!==r&&n[o].orig!==i||(t.removeEventListener?t.removeEventListener(e,n[o].func,!1):t.detachEvent&&t.detachEvent("on"+e,n[o].func),n[o].orig=null,n[o].func=null,n.splice(o,1),i===h));o--);if(n.length||delete s[t[a]][e],y.isEmptyObj(s[t[a]])){delete s[t[a]];try{delete t[a]}catch(e){t[a]=h}}}},removeAllEvents:function(n){var i=arguments[1];n[a]!==h&&n[a]&&y.each(s[n[a]],function(e,t){y.removeEvent(n,t,i)})}};y.Uploader=function(u){var n,i,r={},l=[],e=!1;function c(){var e,t,n=0;if(this.state==y.STARTED){for(t=0;t<l.length;t++)e||l[t].status!=y.QUEUED?n++:((e=l[t]).status=y.UPLOADING,this.trigger("BeforeUpload",e)&&this.trigger("UploadFile",e));n==l.length&&(this.stop(),this.trigger("UploadComplete",l))}}function d(){var e,t;for(n.reset(),e=0;e<l.length;e++)(t=l[e]).size!==h?(n.size+=t.size,n.loaded+=t.loaded):n.size=h,t.status==y.DONE?n.uploaded++:t.status==y.FAILED?n.failed++:n.queued++;n.size===h?n.percent=0<l.length?Math.ceil(n.uploaded/l.length*100):0:(n.bytesPerSec=Math.ceil(n.loaded/((+new Date-i||1)/1e3)),n.percent=0<n.size?Math.ceil(n.loaded/n.size*100):0)}n=new y.QueueProgress,u=y.extend({chunk_size:0,multipart:!0,multi_selection:!0,file_data_name:"file",filters:[]},u),y.extend(this,{state:y.STOPPED,runtime:"",features:{},files:l,settings:u,total:n,id:y.guid(),init:function(){var t,o,e,s=this,a=0;if("function"==typeof u.preinit?u.preinit(s):y.each(u.preinit,function(e,t){s.bind(t,e)}),u.page_url=u.page_url||document.location.pathname.replace(/\/[^\/]+$/g,"/"),/^(\w+:\/\/|\/)/.test(u.url)||(u.url=u.page_url+u.url),u.chunk_size=y.parseSize(u.chunk_size),u.max_file_size=y.parseSize(u.max_file_size),s.bind("FilesAdded",function(e,t){var n,i,r,o=0,a=u.filters;for(a&&a.length&&(r=[],y.each(a,function(e){y.each(e.extensions.split(/,/),function(e){/^\s*\*\s*$/.test(e)?r.push("\\.*"):r.push("\\."+e.replace(new RegExp("["+"/^$.*+?|()[]{}\\".replace(/./g,"\\$&")+"]","g"),"\\$&"))})}),r=new RegExp(r.join("|")+"$","i")),n=0;n<t.length;n++)(i=t[n]).loaded=0,i.percent=0,i.status=y.QUEUED,!r||r.test(i.name)?i.size!==h&&i.size>u.max_file_size?e.trigger("Error",{code:y.FILE_SIZE_ERROR,message:y.translate("File size error."),file:i}):(l.push(i),o++):e.trigger("Error",{code:y.FILE_EXTENSION_ERROR,message:y.translate("File extension error."),file:i});if(!o)return!1;f(function(){s.trigger("QueueChanged"),s.refresh()},1)}),u.unique_names&&s.bind("UploadFile",function(e,t){var n=t.name.match(/\.([^.]+)$/),i="tmp";n&&(i=n[1]),t.target_name=t.id+"."+i}),s.bind("UploadProgress",function(e,t){t.percent=0<t.size?Math.ceil(t.loaded/t.size*100):100,d()}),s.bind("StateChanged",function(e){if(e.state==y.STARTED)i=+new Date;else if(e.state==y.STOPPED)for(t=e.files.length-1;0<=t;t--)e.files[t].status==y.UPLOADING&&(e.files[t].status=y.QUEUED,d())}),s.bind("QueueChanged",d),s.bind("Error",function(e,t){t.file&&(t.file.status=y.FAILED,d(),e.state==y.STARTED&&f(function(){c.call(s)},1))}),s.bind("FileUploaded",function(e,t){t.status=y.DONE,t.loaded=t.size,e.trigger("UploadProgress",t),f(function(){c.call(s)},1)}),u.runtimes)for(o=[],e=u.runtimes.split(/\s?,\s?/),t=0;t<e.length;t++)p[e[t]]&&o.push(p[e[t]]);else o=p;!function t(){var n,e,i,r=o[a++];if(r){if(n=r.getFeatures(),e=s.settings.required_features)for(e=e.split(","),i=0;i<e.length;i++)if(!n[e[i]])return void t();r.init(s,function(e){e&&e.success?(s.features=n,s.runtime=r.name,s.trigger("Init",{runtime:r.name}),s.trigger("PostInit"),s.refresh()):t()})}else s.trigger("Error",{code:y.INIT_ERROR,message:y.translate("Init error.")})}(),"function"==typeof u.init?u.init(s):y.each(u.init,function(e,t){s.bind(t,e)})},refresh:function(){this.trigger("Refresh")},start:function(){l.length&&this.state!=y.STARTED&&(this.state=y.STARTED,this.trigger("StateChanged"),c.call(this))},stop:function(){this.state!=y.STOPPED&&(this.state=y.STOPPED,this.trigger("CancelUpload"),this.trigger("StateChanged"))},disableBrowse:function(){e=arguments[0]===h||arguments[0],this.trigger("DisableBrowse",e)},getFile:function(e){var t;for(t=l.length-1;0<=t;t--)if(l[t].id===e)return l[t]},removeFile:function(e){var t;for(t=l.length-1;0<=t;t--)if(l[t].id===e.id)return this.splice(t,1)[0]},splice:function(e,t){var n;return n=l.splice(e===h?0:e,t===h?l.length:t),this.trigger("FilesRemoved",n),this.trigger("QueueChanged"),n},trigger:function(e){var t,n,i=r[e.toLowerCase()];if(i)for((n=Array.prototype.slice.call(arguments))[0]=this,t=0;t<i.length;t++)if(!1===i[t].func.apply(i[t].scope,n))return!1;return!0},hasEventListener:function(e){return!!r[e.toLowerCase()]},bind:function(e,t,n){var i;e=e.toLowerCase(),(i=r[e]||[]).push({func:t,scope:n||this}),r[e]=i},unbind:function(e){e=e.toLowerCase();var t,n=r[e],i=arguments[1];if(n){if(i!==h){for(t=n.length-1;0<=t;t--)if(n[t].func===i){n.splice(t,1);break}}else n=[];n.length||delete r[e]}},unbindAll:function(){var n=this;y.each(r,function(e,t){n.unbind(t)})},destroy:function(){this.stop(),this.trigger("Destroy"),this.unbindAll()}})},y.File=function(e,t,n){var i=this;i.id=e,i.name=t,i.size=n,i.loaded=0,i.percent=0,i.status=0},y.Runtime=function(){this.getFeatures=function(){},this.init=function(e,t){}},y.QueueProgress=function(){var e=this;e.size=0,e.loaded=0,e.uploaded=0,e.failed=0,e.queued=0,e.percent=0,e.bytesPerSec=0,e.reset=function(){e.size=e.loaded=e.uploaded=e.failed=e.queued=e.percent=e.bytesPerSec=0}},y.runtimes={},window.plupload=y}(),function(){if(!window.google||!google.gears){var t=null;if("undefined"!=typeof GearsFactory)t=new GearsFactory;else try{-1!=(t=new ActiveXObject("Gears.Factory")).getBuildInfo().indexOf("ie_mobile")&&t.privateSetGlobalObject(this)}catch(e){void 0!==navigator.mimeTypes&&navigator.mimeTypes["application/x-googlegears"]&&((t=document.createElement("object")).style.display="none",t.width=0,t.height=0,t.type="application/x-googlegears",document.documentElement.appendChild(t))}t&&(window.google||(window.google={}),google.gears||(google.gears={factory:t}))}}(),function(e,r,w,t){var x={};w.runtimes.Gears=w.addRuntime("gears",{getFeatures:function(){return{dragdrop:!0,jpgresize:!0,pngresize:!0,chunks:!0,progress:!0,multipart:!0,multi_selection:!0}
1},init:function(a,t){var s,b,u=!1;if(!e.google||!google.gears)return t({success:!1});try{s=google.gears.factory.create("beta.desktop")}catch(e){return t({success:!1})}function l(e){var t,n,i,r=[];for(n=0;n<e.length;n++)t=e[n],i=w.guid(),x[i]=t.blob,r.push(new w.File(i,t.name,t.blob.length));a.trigger("FilesAdded",r)}a.bind("PostInit",function(){var o=a.settings,e=r.getElementById(o.drop_element);e&&(w.addEvent(e,"dragover",function(e){s.setDropEffect(e,"copy"),e.preventDefault()},a.id),w.addEvent(e,"drop",function(e){var t=s.getDragData(e,"application/x-gears-files");t&&l(t.files),e.preventDefault()},a.id),e=0),w.addEvent(r.getElementById(o.browse_button),"click",function(e){var t,n,i,r=[];if(e.preventDefault(),!u){e:for(t=0;t<o.filters.length;t++)for(i=o.filters[t].extensions.split(","),n=0;n<i.length;n++){if("*"===i[n]){r=[];break e}r.push("."+i[n])}s.openFiles(l,{singleFile:!o.multi_selection,filter:r})}},a.id)}),a.bind("CancelUpload",function(){b.abort&&b.abort()}),a.bind("UploadFile",function(h,p){var f,g,m,v=0,y=0,e=h.settings.resize;e&&/\.(png|jpg|jpeg)$/i.test(p.name)&&(x[p.id]=function(e,t,n){var i,r;i=google.gears.factory.create("beta.canvas");try{if(i.decode(e),t.width||(t.width=i.width),t.height||(t.height=i.height),(r=Math.min(width/i.width,height/i.height))<1||1===r&&"image/jpeg"===n)return i.resize(Math.round(i.width*r),Math.round(i.height*r)),t.quality?i.encode(n,{quality:t.quality/100}):i.encode(n)}catch(e){}return e}(x[p.id],e,/\.png$/i.test(p.name)?"image/png":"image/jpeg")),p.size=x[p.id].length,g=h.settings.chunk_size,m=0<g,f=Math.ceil(p.size/g),m||(g=p.size,f=1),function t(){var n,e,i,r,o,a,s,u=h.settings.multipart,l=0,c={name:p.target_name||p.name},d=h.settings.url;p.status!=w.DONE&&p.status!=w.FAILED&&h.state!=w.STOPPED&&(m&&(c.chunk=v,c.chunks=f),n=Math.min(g,p.size-v*g),u||(d=w.buildUrl(h.settings.url,c)),(b=google.gears.factory.create("beta.httprequest")).open("POST",d),u||(b.setRequestHeader("Content-Disposition",'attachment; filename="'+p.name+'"'),b.setRequestHeader("Content-Type","application/octet-stream")),w.each(h.settings.headers,function(e,t){b.setRequestHeader(t,e)}),b.upload.onprogress=function(e){p.loaded=y+e.loaded-l,h.trigger("UploadProgress",p)},b.onreadystatechange=function(){var e;if(4==b.readyState&&h.state!==w.STOPPED)if(200==b.status){if(e={chunk:v,chunks:f,response:b.responseText,status:b.status},h.trigger("ChunkUploaded",p,e),e.cancelled)return void(p.status=w.FAILED);y+=n,++v>=f?(p.status=w.DONE,h.trigger("FileUploaded",p,{response:b.responseText,status:b.status})):t()}else h.trigger("Error",{code:w.HTTP_ERROR,message:w.translate("HTTP Error."),file:p,chunk:v,chunks:f,status:b.status})},v<f&&(e=x[p.id].slice(v*g,n),a="----pluploadboundary"+w.guid(),s="\r\n",u&&(b.setRequestHeader("Content-Type","multipart/form-data; boundary="+a),i=google.gears.factory.create("beta.blobbuilder"),w.each(w.extend(c,h.settings.multipart_params),function(e,t){i.append("--"+a+s+'Content-Disposition: form-data; name="'+t+'"'+s+s),i.append(e+s)}),o=w.mimeTypes[p.name.replace(/^.+\.([^.]+)/,"$1").toLowerCase()]||"application/octet-stream",i.append("--"+a+s+'Content-Disposition: form-data; name="'+h.settings.file_data_name+'"; filename="'+p.name+'"'+s+"Content-Type: "+o+s+s),i.append(e),i.append(s+"--"+a+"--"+s),r=i.getAsBlob(),l=r.length-e.length,e=r),b.send(e)))}()}),a.bind("DisableBrowse",function(e,t){u=t}),a.bind("Destroy",function(e){var t,n,i={browseButton:e.settings.browse_button,dropElm:e.settings.drop_element};for(t in i)(n=r.getElementById(i[t]))&&w.removeAllEvents(n,e.id)}),t({success:!0})}})}(window,document,plupload),function(o,c,d,h){var p={},f={};d.silverlight={trigger:function(e,t){var n,i=p[e];i&&((n=d.toArray(arguments).slice(1))[0]="Silverlight:"+t,setTimeout(function(){i.trigger.apply(i,n)},0))}},d.runtimes.Silverlight=d.addRuntime("silverlight",{getFeatures:function(){return{jpgresize:!0,pngresize:!0,chunks:!0,progress:!0,multipart:!0,multi_selection:!0}
1},init:function(a,e){var t,n,i="",r=a.settings.filters,u=c.body;if(!function(t){var n,i,r,o,a,s=!1,u=0;try{try{new ActiveXObject("AgControl.AgControl").IsVersionSupported(t)&&(s=!0)}catch(e){var l=navigator.plugins["Silverlight Plug-In"];if(l){for("1.0.30226.2"===(n=l.description)&&(n="2.0.30226.2"),i=n.split(".");3<i.length;)i.pop();for(;i.length<4;)i.push(0);for(r=t.split(".");4<r.length;)r.pop();for(;o=parseInt(r[u],10),a=parseInt(i[u],10),++u<r.length&&o===a;);o<=a&&!isNaN(o)&&(s=!0)}}}catch(e){s=!1}return s}("2.0.31005.0")||o.opera&&o.opera.buildNumber)e({success:!1});else{for(f[a.id]=!1,p[a.id]=a,(t=c.createElement("div")).id=a.id+"_silverlight_container",d.extend(t.style,{position:"absolute",top:"0px",background:a.settings.shim_bgcolor||"transparent",zIndex:99999,width:"100px",height:"100px",overflow:"hidden",opacity:a.settings.shim_bgcolor||8<c.documentMode?"":.01}),t.className="plupload silverlight",a.settings.container&&(u=c.getElementById(a.settings.container),"static"===d.getStyle(u,"position")&&(u.style.position="relative")),u.appendChild(t),n=0;n<r.length;n++)i+=(""!=i?"|":"")+r[n].title+" | *."+r[n].extensions.replace(/,/g,";*.");t.innerHTML='<object id="'+a.id+'_silverlight" data="data:application/x-silverlight," type="application/x-silverlight-2" style="outline:none;" width="1024" height="1024"><param name="source" value="'+a.settings.silverlight_xap_url+'"/><param name="background" value="Transparent"/><param name="windowless" value="true"/><param name="enablehtmlaccess" value="true"/><param name="initParams" value="id='+a.id+",filter="+i+",multiselect="+a.settings.multi_selection+'"/></object>',a.bind("Silverlight:Init",function(){var o,s={};f[a.id]||(f[a.id]=!0,a.bind("Silverlight:StartSelectFiles",function(e){o=[]}),a.bind("Silverlight:SelectFile",function(e,t,n,i){var r;r=d.guid(),s[r]=t,s[t]=r,o.push(new d.File(r,n,i))}),a.bind("Silverlight:SelectSuccessful",function(){o.length&&a.trigger("FilesAdded",o)}),a.bind("Silverlight:UploadChunkError",function(e,t,n,i,r){a.trigger("Error",{code:d.IO_ERROR,message:"IO Error.",details:r,file:e.getFile(s[t])})}),a.bind("Silverlight:UploadFileProgress",function(e,t,n,i){var r=e.getFile(s[t]);r.status!=d.FAILED&&(r.size=i,r.loaded=n,e.trigger("UploadProgress",r))}),a.bind("Refresh",function(e){var t,n,i;(t=c.getElementById(e.settings.browse_button))&&(n=d.getPos(t,c.getElementById(e.settings.container)),i=d.getSize(t),d.extend(c.getElementById(e.id+"_silverlight_container").style,{top:n.y+"px",left:n.x+"px",width:i.w+"px",height:i.h+"px"}))}),a.bind("Silverlight:UploadChunkSuccessful",function(e,t,n,i,r){var o,a=e.getFile(s[t]);o={chunk:n,chunks:i,response:r},e.trigger("ChunkUploaded",a,o),a.status!=d.FAILED&&e.state!==d.STOPPED&&l().UploadNextChunk(),n==i-1&&(a.status=d.DONE,e.trigger("FileUploaded",a,{response:r}))}),a.bind("Silverlight:UploadSuccessful",function(e,t,n){var i=e.getFile(s[t]);i.status=d.DONE,e.trigger("FileUploaded",i,{response:n})}),a.bind("FilesRemoved",function(e,t){var n;for(n=0;n<t.length;n++)l().RemoveFile(s[t[n].id])}),a.bind("UploadFile",function(e,t){var n=e.settings,i=n.resize||{};l().UploadFile(s[t.id],e.settings.url,function e(t){var i,n,r,o,a=typeof t;if(t===h||null===t)return"null";if("string"===a)return i="\bb\tt\nn\ff\rr\"\"''\\\\",'"'+t.replace(/([\u0080-\uFFFF\x00-\x1f\"])/g,function(e,t){var n=i.indexOf(t);return n+1?"\\"+i.charAt(n+1):(e=t.charCodeAt().toString(16),"\\u"+"0000".substring(e.length)+e)})+'"';if("object"!=a)return""+t;if(n=t.length!==h,i="",n){for(r=0;r<t.length;r++)i&&(i+=","),i+=e(t[r]);i="["+i+"]"}else{for(o in t)t.hasOwnProperty(o)&&(i&&(i+=","),i+=e(o)+":"+e(t[o]));i="{"+i+"}"}return i}({name:t.target_name||t.name,mime:d.mimeTypes[t.name.replace(/^.+\.([^.]+)/,"$1").toLowerCase()]||"application/octet-stream",chunk_size:n.chunk_size,image_width:i.width,image_height:i.height,image_quality:i.quality||90,multipart:!!n.multipart,multipart_params:n.multipart_params||{},file_data_name:n.file_data_name,headers:n.headers}))}),a.bind("CancelUpload",function(){l().CancelUpload()}),a.bind("Silverlight:MouseEnter",function(e){var t,n;t=c.getElementById(a.settings.browse_button),n=e.settings.browse_button_hover,t&&n&&d.addClass(t,n)}),a.bind("Silverlight:MouseLeave",function(e){var t,n;t=c.getElementById(a.settings.browse_button),n=e.settings.browse_button_hover,t&&n&&d.removeClass(t,n)}),a.bind("Silverlight:MouseLeftButtonDown",function(e){var t,n;t=c.getElementById(a.settings.browse_button),n=e.settings.browse_button_active,t&&n&&(d.addClass(t,n),d.addEvent(c.body,"mouseup",function(){d.removeClass(t,n)}))}),a.bind("Sliverlight:StartSelectFiles",function(e){var t,n;t=c.getElementById(a.settings.browse_button),n=e.settings.browse_button_active,t&&n&&d.removeClass(t,n)}),a.bind("DisableBrowse",function(e,t){l().DisableBrowse(t)}),a.bind("Destroy",function(e){var t;d.removeAllEvents(c.body,e.id),delete f[e.id],delete p[e.id],(t=c.getElementById(e.id+"_silverlight_container"))&&u.removeChild(t)}),e({success:!0}))})}
1function l(){return c.getElementById(a.id+"_silverlight").content.Upload}}})}(window,document,plupload),function(e,l,c,t){var a={},d={};c.flash={trigger:function(t,n,i){setTimeout(function(){var e=a[t];e&&e.trigger("Flash:"+n,i)},0)}},c.runtimes.Flash=c.addRuntime("flash",{getFeatures:function(){return{jpgresize:!0,pngresize:!0,maxWidth:8091,maxHeight:8091,chunks:!0,progress:!0,multipart:!0,multi_selection:!0}},init:function(s,t){var e,n,i,r=0,o=l.body;(function(){var t;try{t=(t=navigator.plugins["Shockwave Flash"]).description}catch(e){try{t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")}catch(e){t="0.0"}}return t=t.match(/\d+/g),parseFloat(t[0]+"."+t[1])})()<10?t({success:!1}):(d[s.id]=!1,a[s.id]=s,l.getElementById(s.settings.browse_button),(e=l.createElement("div")).id=s.id+"_flash_container",c.extend(e.style,{position:"absolute",top:"0px",background:s.settings.shim_bgcolor||"transparent",zIndex:99999,width:"100%",height:"100%"}),e.className="plupload flash",s.settings.container&&(o=l.getElementById(s.settings.container),"static"===c.getStyle(o,"position")&&(o.style.position="relative")),o.appendChild(e),n='<object id="'+s.id+'_flash" type="application/x-shockwave-flash" data="'+s.settings.flash_swf_url+'" ',c.ua.ie&&(n+='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '),n+='width="100%" height="100%" style="outline:0"><param name="movie" value="'+s.settings.flash_swf_url+'" /><param name="flashvars" value="id='+escape(s.id)+'" /><param name="wmode" value="transparent" /><param name="allowscriptaccess" value="always" /></object>',c.ua.ie?(i=l.createElement("div"),e.appendChild(i),i.outerHTML=n,i=null):e.innerHTML=n,function e(){5e3<r++?t({success:!1}):!1===d[s.id]&&setTimeout(e,1)}(),e=null,s.bind("Destroy",function(e){var t;c.removeAllEvents(l.body,e.id),delete d[e.id],delete a[e.id],(t=l.getElementById(e.id+"_flash_container"))&&o.removeChild(t)}),s.bind("Flash:Init",function(){var a={};try{u().setFileFilters(s.settings.filters,s.settings.multi_selection)}catch(e){return void t({success:!1})}d[s.id]||(d[s.id]=!0,s.bind("UploadFile",function(e,t){var n=e.settings,i=s.settings.resize||{};u().uploadFile(a[t.id],n.url,{name:t.target_name||t.name,mime:c.mimeTypes[t.name.replace(/^.+\.([^.]+)/,"$1").toLowerCase()]||"application/octet-stream",chunk_size:n.chunk_size,width:i.width,height:i.height,quality:i.quality,multipart:n.multipart,multipart_params:n.multipart_params||{},file_data_name:n.file_data_name,format:/\.(jpg|jpeg)$/i.test(t.name)?"jpg":"png",headers:n.headers,urlstream_upload:n.urlstream_upload})}),s.bind("CancelUpload",function(){u().cancelUpload()}),s.bind("Flash:UploadProcess",function(e,t){var n=e.getFile(a[t.id]);n.status!=c.FAILED&&(n.loaded=t.loaded,n.size=t.size,e.trigger("UploadProgress",n))}),s.bind("Flash:UploadChunkComplete",function(e,t){var n,i=e.getFile(a[t.id]);n={chunk:t.chunk,chunks:t.chunks,response:t.text},e.trigger("ChunkUploaded",i,n),i.status!==c.FAILED&&e.state!==c.STOPPED&&u().uploadNextChunk(),t.chunk==t.chunks-1&&(i.status=c.DONE,e.trigger("FileUploaded",i,{response:t.text}))}),s.bind("Flash:SelectFiles",function(e,t){var n,i,r,o=[];for(i=0;i<t.length;i++)n=t[i],r=c.guid(),a[r]=n.id,a[n.id]=r,o.push(new c.File(r,n.name,n.size));o.length&&s.trigger("FilesAdded",o)}),s.bind("Flash:SecurityError",function(e,t){s.trigger("Error",{code:c.SECURITY_ERROR,message:c.translate("Security error."),details:t.message,file:s.getFile(a[t.id])})}),s.bind("Flash:GenericError",function(e,t){s.trigger("Error",{code:c.GENERIC_ERROR,message:c.translate("Generic error."),details:t.message,file:s.getFile(a[t.id])})}),s.bind("Flash:IOError",function(e,t){s.trigger("Error",{code:c.IO_ERROR,message:c.translate("IO error."),details:t.message,file:s.getFile(a[t.id])})}),s.bind("Flash:ImageError",function(e,t){s.trigger("Error",{code:parseInt(t.code,10),message:c.translate("Image error."),file:s.getFile(a[t.id])})}),s.bind("Flash:StageEvent:rollOver",function(e){var t,n;t=l.getElementById(s.settings.browse_button),n=e.settings.browse_button_hover,t&&n&&c.addClass(t,n)}),s.bind("Flash:StageEvent:rollOut",function(e){var t,n;t=l.getElementById(s.settings.browse_button),n=e.settings.browse_button_hover,t&&n&&c.removeClass(t,n)}),s.bind("Flash:StageEvent:mouseDown",function(e){var t,n;t=l.getElementById(s.settings.browse_button),n=e.settings.browse_button_active,t&&n&&(c.addClass(t,n),c.addEvent(l.body,"mouseup",function(){c.removeClass(t,n)},e.id))}),s.bind("Flash:StageEvent:mouseUp",function(e){var t,n;t=l.getElementById(s.settings.browse_button),n=e.settings.browse_button_active,t&&n&&c.removeClass(t,n)}),s.bind("Flash:ExifData",function(e,t){s.trigger("ExifData",s.getFile(a[t.id]),t.data)}
1),s.bind("Flash:GpsData",function(e,t){s.trigger("GpsData",s.getFile(a[t.id]),t.data)}),s.bind("QueueChanged",function(e){s.refresh()}),s.bind("FilesRemoved",function(e,t){var n;for(n=0;n<t.length;n++)u().removeFile(a[t[n].id])}),s.bind("StateChanged",function(e){s.refresh()}),s.bind("Refresh",function(e){var t,n,i;u().setFileFilters(s.settings.filters,s.settings.multi_selection),(t=l.getElementById(e.settings.browse_button))&&(n=c.getPos(t,l.getElementById(e.settings.container)),i=c.getSize(t),c.extend(l.getElementById(e.id+"_flash_container").style,{top:n.y+"px",left:n.x+"px",width:i.w+"px",height:i.h+"px"}))}),s.bind("DisableBrowse",function(e,t){u().disableBrowse(t)}),t({success:!0}))}));function u(){return l.getElementById(s.id+"_flash")}}})}(window,document,plupload),function(p){p.runtimes.BrowserPlus=p.addRuntime("browserplus",{getFeatures:function(){return{dragdrop:!0,jpgresize:!0,pngresize:!0,chunks:!0,progress:!0,multipart:!0,multi_selection:!0}},init:function(o,n){var d=window.BrowserPlus,h={},u=o.settings,i=u.resize;function l(e){var t,n,i,r=[];for(t=0;t<e.length;t++)n=e[t],i=p.guid(),h[i]=n,r.push(new p.File(i,n.name,n.size));t&&o.trigger("FilesAdded",r)}d?d.init(function(e){var t=[{service:"Uploader",version:"3"},{service:"DragAndDrop",version:"1"},{service:"FileBrowse",version:"1"},{service:"FileAccess",version:"2"}];i&&t.push({service:"ImageAlter",version:"4"}),e.success?d.require({services:t},function(e){var s;e.success?(s=!1,o.bind("PostInit",function(){var e,i=u.drop_element,r=o.id+"_droptarget",t=document.getElementById(i);function n(t,n){d.DragAndDrop.AddDropTarget({id:t},function(e){d.DragAndDrop.AttachCallbacks({id:t,hover:function(e){!e&&n&&n()},drop:function(e){n&&n(),l(e)}},function(){})})}t&&(document.attachEvent&&/MSIE/gi.test(navigator.userAgent)?((e=document.createElement("div")).setAttribute("id",r),p.extend(e.style,{position:"absolute",top:"-1000px",background:"red",filter:"alpha(opacity=0)",opacity:0}),document.body.appendChild(e),p.addEvent(t,"dragenter",function(e){var t,n;t=document.getElementById(i),n=p.getPos(t),p.extend(document.getElementById(r).style,{top:n.y+"px",left:n.x+"px",width:t.offsetWidth+"px",height:t.offsetHeight+"px"})}),n(r,function(){document.getElementById(r).style.top="-1000px"})):n(i)),p.addEvent(document.getElementById(u.browse_button),"click",function(e){var t,n,i,r,o=[],a=u.filters;if(e.preventDefault(),!s){e:for(t=0;t<a.length;t++)for(i=a[t].extensions.split(","),n=0;n<i.length;n++){if("*"===i[n]){o=[];break e}(r=p.mimeTypes[i[n]])&&-1===p.inArray(r,o)&&o.push(p.mimeTypes[i[n]])}d.FileBrowse.OpenBrowseDialog({mimeTypes:o},function(e){e.success&&l(e.value)})}}),t=e=null}),o.bind("CancelUpload",function(){d.Uploader.cancel({},function(){})}),o.bind("DisableBrowse",function(e,t){s=t}),o.bind("UploadFile",function(o,a){var s,e=h[a.id],t={},u=o.settings.chunk_size,l=[];function c(i,n){var r;a.status!=p.FAILED&&(t.name=a.target_name||a.name,u&&(t.chunk=""+i,t.chunks=""+n),r=l.shift(),d.Uploader.upload({url:o.settings.url,files:{file:r},cookies:document.cookies,postvars:p.extend(t,o.settings.multipart_params),progressCallback:function(e){var t,n=0;for(s[i]=parseInt(e.filePercent*r.size/100,10),t=0;t<s.length;t++)n+=s[t];a.loaded=n,o.trigger("UploadProgress",a)}},function(e){var t;e.success?(t=e.value.statusCode,u&&o.trigger("ChunkUploaded",a,{chunk:i,chunks:n,response:e.value.body,status:t}),0<l.length?c(++i,n):(a.status=p.DONE,o.trigger("FileUploaded",a,{response:e.value.body,status:t}),400<=t&&o.trigger("Error",{code:p.HTTP_ERROR,message:p.translate("HTTP Error."),file:a,status:t}))):o.trigger("Error",{code:p.GENERIC_ERROR,message:p.translate("Generic Error."),file:a,details:e.error})}))}function n(e){a.size=e.size,u?d.FileAccess.chunk({file:e,chunkSize:u},function(e){if(e.success){var t=e.value,n=t.length;s=Array(n);for(var i=0;i<n;i++)s[i]=0,l.push(t[i]);c(0,n)}}):(s=Array(1),l.push(e),c(0,1))}i&&/\.(png|jpg|jpeg)$/i.test(a.name)?BrowserPlus.ImageAlter.transform({file:e,quality:i.quality||90,actions:[{scale:{maxwidth:i.width,maxheight:i.height}}]},function(e){e.success&&n(e.value.file)}):n(e)}),n({success:!0})):n()}):n()}):n()}})}(plupload),function(_,m,k,g){var s,v={};function r(e,t){var n;if(!("FileReader"in _))return t(e.getAsBinary());(n=new FileReader).readAsBinaryString(e),n.onload=function(){t(n.result)}}function o(o,a,s,u){var l,c,d,h,p=this;!function(e,t){var n;if(!("FileReader"in _))return t(e.getAsDataURL());(n=new FileReader).readAsDataURL(e),n.onload=function(){t(n.result)}}(v[o.id],function(r){(l=m.createElement("canvas")).style.display="none",m.body.appendChild(l),c=l.getContext("2d"),(d=new Image).onerror=d.onabort=function(){u({success:!1})},d.onload=function(){var e,t,n,i;if(a.width||(a.width=d.width),a.height||(a.height=d.height),(h=Math.min(a.width/d.width,a.height/d.height))<1||1===h&&"image/jpeg"===s){if(e=Math.round(d.width*h),t=Math.round(d.height*h),l.width=e,l.height=t,c.drawImage(d,0,0,e,t),"image/jpeg"===s){if((n=new f(atob(r.substring(r.indexOf("base64,")+7)))).headers&&n.headers.length&&(i=new y).init(n.get("exif")[0])&&(i.setExif("PixelXDimension",e),i.setExif("PixelYDimension",t),n.set("exif",i.getBinary()),p.hasEventListener("ExifData")&&p.trigger("ExifData",o,i.EXIF()),p.hasEventListener("GpsData")&&p.trigger("GpsData",o,i.GPS())),a.quality)try{r=l.toDataURL(s,a.quality/100)}catch(e){r=l.toDataURL(s)}}else r=l.toDataURL(s);r=r.substring(r.indexOf("base64,")+7),r=atob(r),n&&n.headers&&n.headers.length&&(r=n.restore(r),n.purge()),l.parentNode.removeChild(l),u({success:!0,data:r})}else u({success:!1})},d.src=r})}function u(){var o,a=!1;function i(e,t){var n,i=a?0:-8*(t-1),r=0;for(n=0;n<t;
1n++)r|=o.charCodeAt(e+n)<<Math.abs(i+8*n);return r}function s(e,t,n){n=3===arguments.length?n:o.length-t-1;o=o.substr(0,t)+e+o.substr(n+t)}return{II:function(e){if(e===g)return a;a=e},init:function(e){a=!1,o=e},SEGMENT:function(e,t,n){switch(arguments.length){case 1:return o.substr(e,o.length-e-1);case 2:return o.substr(e,t);case 3:s(n,e,t);break;default:return o}},BYTE:function(e){return i(e,1)},SHORT:function(e){return i(e,2)},LONG:function(e,t){if(t===g)return i(e,4);!function(e,t,n){var i,r="",o=a?0:-8*(n-1);for(i=0;i<n;i++)r+=String.fromCharCode(t>>Math.abs(o+8*i)&255);s(r,e,n)}(e,t,4)},SLONG:function(e){var t=i(e,4);return 2147483647<t?t-4294967296:t},STRING:function(e,t){var n="";for(t+=e;e<t;e++)n+=String.fromCharCode(i(e,1));return n}}}function f(e){var o,a,t,n={65505:{app:"EXIF",name:"APP1",signature:"Exif\0"},65506:{app:"ICC",name:"APP2",signature:"ICC_PROFILE\0"},65517:{app:"IPTC",name:"APP13",signature:"Photoshop 3.0\0"}},s=[],i=g,r=0;if((o=new u).init(e),65496===o.SHORT(0)){for(a=2,t=Math.min(1048576,e.length);a<=t;)if(65488<=(i=o.SHORT(a))&&i<=65495)a+=2;else{if(65498===i||65497===i)break;r=o.SHORT(a+2)+2,n[i]&&o.STRING(a+4,n[i].signature.length)===n[i].signature&&s.push({hex:i,app:n[i].app.toUpperCase(),name:n[i].name.toUpperCase(),start:a,length:r,segment:o.SEGMENT(a,r)}),a+=r}return o.init(null),{headers:s,restore:function(e){o.init(e);var t=new f(e);if(!t.headers)return!1;for(var n=t.headers.length;0<n;n--){var i=t.headers[n-1];o.SEGMENT(i.start,i.length,"")}t.purge(),a=65504==o.SHORT(2)?4+o.SHORT(4):2;n=0;for(var r=s.length;n<r;n++)o.SEGMENT(a,0,s[n].segment),a+=s[n].length;return o.SEGMENT()},get:function(e){for(var t=[],n=0,i=s.length;n<i;n++)s[n].app===e.toUpperCase()&&t.push(s[n].segment);return t},set:function(e,t){var n=[];"string"==typeof t?n.push(t):n=t;for(var i=ii=0,r=s.length;i<r&&(s[i].app===e.toUpperCase()&&(s[i].segment=n[ii],s[i].length=n[ii].length,ii++),!(ii>=n.length));i++);},purge:function(){s=[],o.init(null)}}}}function y(){var h,l,p,f={};function r(e,t){var n,i,r,o,a,s,u,l=h.SHORT(e),c=[],d={};for(n=0;n<l;n++)if(s=e+12*n+2,(r=t[h.SHORT(s)])!==g){switch(o=h.SHORT(s+=2),a=h.LONG(s+=2),s+=4,c=[],o){case 1:case 7:for(4<a&&(s=h.LONG(s)+f.tiffHeader),i=0;i<a;i++)c[i]=h.BYTE(s+i);break;case 2:4<a&&(s=h.LONG(s)+f.tiffHeader),d[r]=h.STRING(s,a-1);continue;case 3:for(2<a&&(s=h.LONG(s)+f.tiffHeader),i=0;i<a;i++)c[i]=h.SHORT(s+2*i);break;case 4:for(1<a&&(s=h.LONG(s)+f.tiffHeader),i=0;i<a;i++)c[i]=h.LONG(s+4*i);break;case 5:for(s=h.LONG(s)+f.tiffHeader,i=0;i<a;i++)c[i]=h.LONG(s+4*i)/h.LONG(s+4*i+4);break;case 9:for(s=h.LONG(s)+f.tiffHeader,i=0;i<a;i++)c[i]=h.SLONG(s+4*i);break;case 10:for(s=h.LONG(s)+f.tiffHeader,i=0;i<a;i++)c[i]=h.SLONG(s+4*i)/h.SLONG(s+4*i+4);break;default:continue}u=1==a?c[0]:c,p.hasOwnProperty(r)&&"object"!=typeof u?d[r]=p[r][u]:d[r]=u}return d}return h=new u,l={tiff:{274:"Orientation",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer"},exif:{36864:"ExifVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",36867:"DateTimeOriginal",33434:"ExposureTime",33437:"FNumber",34855:"ISOSpeedRatings",37377:"ShutterSpeedValue",37378:"ApertureValue",37383:"MeteringMode",37384:"LightSource",37385:"Flash",41986:"ExposureMode",41987:"WhiteBalance",41990:"SceneCaptureType",41988:"DigitalZoomRatio",41992:"Contrast",41993:"Saturation",41994:"Sharpness"},gps:{0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude"}},p={ColorSpace:{1:"sRGB",0:"Uncalibrated"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{1:"Daylight",2:"Fliorescent",3:"Tungsten",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 -5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire.",1:"Flash fired.",5:"Strobe return light not detected.",7:"Strobe return light detected.",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flas
1h fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},ExposureMode:{0:"Auto exposure",1:"Manual exposure",2:"Auto bracket"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},GPSLatitudeRef:{N:"North latitude",S:"South latitude"},GPSLongitudeRef:{E:"East longitude",W:"West longitude"}},{init:function(e){return f={tiffHeader:10},!(e===g||!e.length)&&(h.init(e),65505===h.SHORT(0)&&"EXIF\0"===h.STRING(4,5).toUpperCase()&&(n=f.tiffHeader,h.II(18761==h.SHORT(n)),42===h.SHORT(n+=2)&&(f.IFD0=f.tiffHeader+h.LONG(n+=2),t=r(f.IFD0,l.tiff),f.exifIFD="ExifIFDPointer"in t?f.tiffHeader+t.ExifIFDPointer:g,f.gpsIFD="GPSInfoIFDPointer"in t?f.tiffHeader+t.GPSInfoIFDPointer:g,!0)));var t,n},EXIF:function(){var e;if((e=r(f.exifIFD,l.exif)).ExifVersion&&"array"===k.typeOf(e.ExifVersion)){for(var t=0,n="";t<e.ExifVersion.length;t++)n+=String.fromCharCode(e.ExifVersion[t]);e.ExifVersion=n}return e},GPS:function(){var e;return(e=r(f.gpsIFD,l.gps)).GPSVersionID&&(e.GPSVersionID=e.GPSVersionID.join(".")),e},setExif:function(e,t){return("PixelXDimension"===e||"PixelYDimension"===e)&&function(e,t,n){var r,o,a,s=0;if("string"==typeof t){var u=l[e.toLowerCase()];for(hex in u)if(u[hex]===t){t=hex;break}}for(r=f[e.toLowerCase()+"IFD"],o=h.SHORT(r),i=0;i<o;i++)if(a=r+12*i+2,h.SHORT(a)==t){s=a+8;break}return!!s&&(h.LONG(s,n),!0)}("exif",e,t)},getBinary:function(){return h.SEGMENT()}}}k.runtimes.Html5=k.addRuntime("html5",{getFeatures:function(){var e,t,n,i,r,o,a;return t=n=r=o=!1,_.XMLHttpRequest&&(n=!!(e=new XMLHttpRequest).upload,t=!(!e.sendAsBinary&&!e.upload)),t&&(i=!!(e.sendAsBinary||_.Uint8Array&&_.ArrayBuffer),r=!(!File||!File.prototype.getAsDataURL&&!_.FileReader||!i),o=!(!File||!(File.prototype.mozSlice||File.prototype.webkitSlice||File.prototype.slice))),s=k.ua.safari&&k.ua.windows,{html5:t,dragdrop:(a=m.createElement("div"),"draggable"in a||"ondragstart"in a&&"ondrop"in a),jpgresize:r,pngresize:r,multipart:r||!!_.FileReader||!!_.FormData,canSendBinary:i,cantSendBlobInFormData:!(!(k.ua.gecko&&_.FormData&&_.FileReader)||FileReader.prototype.readAsArrayBuffer),progress:n,chunks:o,multi_selection:!(k.ua.safari&&k.ua.windows),triggerDialog:k.ua.gecko&&_.FormData||k.ua.webkit}},init:function(f,e){var w,x;function g(e){var t,n,i,r=[],o={};for(n=0;n<e.length;n++)o[(t=e[n]).name]||(o[t.name]=!0,i=k.guid(),v[i]=t,r.push(new k.File(i,t.fileName||t.name,t.fileSize||t.size)));r.length&&f.trigger("FilesAdded",r)}(w=this.getFeatures()).html5?(f.bind("Init",function(n){var e,t,i,r,o,a,s,u=[],l=n.settings.filters,c=m.body;(e=m.createElement("div")).id=n.id+"_html5_container",k.extend(e.style,{position:"absolute",background:f.settings.shim_bgcolor||"transparent",width:"100px",height:"100px",overflow:"hidden",zIndex:99999,opacity:f.settings.shim_bgcolor?"":0}),e.className="plupload html5",f.settings.container&&(c=m.getElementById(f.settings.container),"static"===k.getStyle(c,"position")&&(c.style.position="relative")),c.appendChild(e);e:for(i=0;i<l.length;i++)for(o=l[i].extensions.split(/,/),r=0;r<o.length;r++){if("*"===o[r]){u=[];break e}(a=k.mimeTypes[o[r]])&&-1===k.inArray(a,u)&&u.push(a)}if(e.innerHTML='<input id="'+f.id+'_html5" style="font-size:999px" type="file" accept="'+u.join(",")+'" '+(f.settings.multi_selection&&f.features.multi_selection?'multiple="multiple"':"")+" />
1",e.scrollTop=100,s=m.getElementById(f.id+"_html5"),n.features.triggerDialog?k.extend(s.style,{position:"absolute",width:"100%",height:"100%"}):k.extend(s.style,{cssFloat:"right",styleFloat:"right"}),s.onchange=function(){g(this.files),this.value=""},t=m.getElementById(n.settings.browse_button)){var d=n.settings.browse_button_hover,h=n.settings.browse_button_active,p=n.features.triggerDialog?t:e;d&&(k.addEvent(p,"mouseover",function(){k.addClass(t,d)},n.id),k.addEvent(p,"mouseout",function(){k.removeClass(t,d)},n.id)),h&&(k.addEvent(p,"mousedown",function(){k.addClass(t,h)},n.id),k.addEvent(m.body,"mouseup",function(){k.removeClass(t,h)},n.id)),n.features.triggerDialog&&k.addEvent(t,"click",function(e){var t=m.getElementById(n.id+"_html5");t&&!t.disabled&&t.click(),e.preventDefault()},n.id)}}),f.bind("PostInit",function(){var i=m.getElementById(f.settings.drop_element);if(i){if(s)return void k.addEvent(i,"dragenter",function(e){var t,n;(t=m.getElementById(f.id+"_drop"))||((t=m.createElement("input")).setAttribute("type","file"),t.setAttribute("id",f.id+"_drop"),t.setAttribute("multiple","multiple"),k.addEvent(t,"change",function(){g(this.files),k.removeEvent(t,"change",f.id),t.parentNode.removeChild(t)},f.id),i.appendChild(t)),k.getPos(i,m.getElementById(f.settings.container)),n=k.getSize(i),"static"===k.getStyle(i,"position")&&k.extend(i.style,{position:"relative"}),k.extend(t.style,{position:"absolute",display:"block",top:0,left:0,width:n.w+"px",height:n.h+"px",opacity:0})},f.id);k.addEvent(i,"dragover",function(e){e.preventDefault()},f.id),k.addEvent(i,"drop",function(e){var t=e.dataTransfer;t&&t.files&&g(t.files),e.preventDefault()},f.id)}}),f.bind("Refresh",function(e){var t,n,i,r,o;(t=m.getElementById(f.settings.browse_button))&&(n=k.getPos(t,m.getElementById(e.settings.container)),i=k.getSize(t),r=m.getElementById(f.id+"_html5_container"),k.extend(r.style,{top:n.y+"px",left:n.x+"px",width:i.w+"px",height:i.h+"px"}),f.features.triggerDialog&&("static"===k.getStyle(t,"position")&&k.extend(t.style,{position:"relative"}),o=parseInt(k.getStyle(t,"z-index"),10),isNaN(o)&&(o=0),k.extend(t.style,{zIndex:o}),k.extend(r.style,{zIndex:o-1})))}),f.bind("DisableBrowse",function(e,t){var n=m.getElementById(e.id+"_html5");n&&(n.disabled=t)}),f.bind("CancelUpload",function(){x&&x.abort&&x.abort()}),f.bind("UploadFile",function(y,b){var t,i=y.settings;function n(t){var m=0,v=0,n="FileReader"in _?new FileReader:null;!function u(){var l,c,d,h,p,f,g=y.settings.url;function e(n){var i,t=0,r="----pluploadboundary"+k.guid(),o="\r\n",a="";if((x=new XMLHttpRequest).upload&&(x.upload.onprogress=function(e){b.loaded=Math.min(b.size,v+e.loaded-t),y.trigger("UploadProgress",b)}),x.onreadystatechange=function(){var t,e;if(4==x.readyState&&y.state!==k.STOPPED){try{t=x.status}catch(e){t=0}if(400<=t)y.trigger("Error",{code:k.HTTP_ERROR,message:k.translate("HTTP Error."),file:b,status:t});else{if(c){if(e={chunk:m,chunks:c,response:x.responseText,status:t},y.trigger("ChunkUploaded",b,e),v+=p,e.cancelled)return void(b.status=k.FAILED);b.loaded=Math.min(b.size,(m+1)*h)}else b.loaded=b.size;y.trigger("UploadProgress",b),n=l=i=a=null,!c||++m>=c?(b.status=k.DONE,y.trigger("FileUploaded",b,{response:x.responseText,status:t})):u()}}},y.settings.multipart&&w.multipart){if(d.name=b.target_name||b.name,x.open("post",g,!0),k.each(y.settings.headers,function(e,t){x.setRequestHeader(t,e)}),"string"!=typeof n&&_.FormData)return i=new FormData,k.each(k.extend(d,y.settings.multipart_params),function(e,t){i.append(t,e)}),i.append(y.settings.file_data_name,n),void x.send(i);if("string"==typeof n){if(x.setRequestHeader("Content-Type","multipart/form-data; boundary="+r),k.each(k.extend(d,y.settings.multipart_params),function(e,t){a+="--"+r+o+'Content-Disposition: form-data; name="'+t+'"'+o+o,a+=unescape(encodeURIComponent(e))+o}),f=k.mimeTypes[b.name.replace(/^.+\.([^.]+)/,"$1").toLowerCase()]||"application/octet-stream",a+="--"+r+o+'Content-Disposition: form-data; name="'+y.settings.file_data_name+'"; filename="'+unescape(encodeURIComponent(b.name))+'"'+o+"Content-Type: "+f+o+o+n+o+"--"+r+"--"+o,t=a.length-n.length,n=a,x.sendAsBinary)x.sendAsBinary(n);else if(w.canSendBinary){for(var e=new Uint8Array(n.length),s=0;s<n.length;
1s++)e[s]=255&n.charCodeAt(s);x.send(e.buffer)}return}}g=k.buildUrl(y.settings.url,k.extend(d,y.settings.multipart_params)),x.open("post",g,!0),x.setRequestHeader("Content-Type","application/octet-stream"),k.each(y.settings.headers,function(e,t){x.setRequestHeader(t,e)}),x.send(n)}b.status!=k.DONE&&b.status!=k.FAILED&&y.state!=k.STOPPED&&(d={name:b.target_name||b.name},i.chunk_size&&b.size>i.chunk_size&&(w.chunks||"string"==typeof t)?(h=i.chunk_size,c=Math.ceil(b.size/h),p=Math.min(h,b.size-m*h),l="string"==typeof t?t.substring(m*h,m*h+p):function(t,n,i){var e;if(!File.prototype.slice)return(e=File.prototype.webkitSlice||File.prototype.mozSlice)?e.call(t,n,i):null;try{return t.slice(),t.slice(n,i)}catch(e){return t.slice(n,i-n)}}(t,m*h,m*h+p),d.chunk=m,d.chunks=c):(p=b.size,l=t),y.settings.multipart&&w.multipart&&"string"!=typeof l&&n&&w.cantSendBlobInFormData&&w.chunks&&y.settings.chunk_size?(n.onload=function(){e(n.result)},n.readAsBinaryString(l)):e(l))}()}t=v[b.id],w.jpgresize&&y.settings.resize&&/\.(png|jpg|jpeg)$/i.test(b.name)?o.call(y,b,y.settings.resize,/\.png$/i.test(b.name)?"image/png":"image/jpeg",function(e){e.success?(b.size=e.data.length,n(e.data)):w.chunks?n(t):r(t,n)}):!w.chunks&&w.jpgresize?r(t,n):n(t)}),f.bind("Destroy",function(e){var t,n,i=m.body,r={inputContainer:e.id+"_html5_container",inputFile:e.id+"_html5",browseButton:e.settings.browse_button,dropElm:e.settings.drop_element};for(t in r)(n=m.getElementById(r[t]))&&k.removeAllEvents(n,e.id);k.removeAllEvents(m.body,e.id),e.settings.container&&(i=m.getElementById(e.settings.container)),i.removeChild(m.getElementById(r.inputContainer))}),e({success:!0})):e({success:!1})}})}(window,document,plupload),function(s,g,m,e){function v(e){return g.getElementById(e)}m.runtimes.Html4=m.addRuntime("html4",{getFeatures:function(){return{multipart:!0,triggerDialog:m.ua.gecko&&s.FormData||m.ua.webkit}},init:function(f,e){f.bind("Init",function(u){var n,r,l,e,t,i,o,c=g.body,d=[],h=/MSIE/.test(navigator.userAgent),p=[],a=u.settings.filters;e:for(e=0;e<a.length;e++)for(t=a[e].extensions.split(/,/),o=0;o<t.length;o++){if("*"===t[o]){p=[];break e}(i=m.mimeTypes[t[o]])&&-1===m.inArray(i,p)&&p.push(i)}p=p.join(","),u.settings.container&&(c=v(u.settings.container),"static"===m.getStyle(c,"position")&&(c.style.position="relative")),u.bind("UploadFile",function(e,t){var i;t.status!=m.DONE&&t.status!=m.FAILED&&e.state!=m.STOPPED&&(i=v("form_"+t.id),v("input_"+t.id).setAttribute("name",e.settings.file_data_name),i.setAttribute("action",e.settings.url),m.each(m.extend({name:t.target_name||t.name},e.settings.multipart_params),function(e,t){var n=g.createElement("input");m.extend(n,{type:"hidden",name:t,value:e}),i.insertBefore(n,i.firstChild)}),r=t,v("form_"+l).style.top="-1048575px",i.submit())}),u.bind("FileUploaded",function(e){e.refresh()}),u.bind("StateChanged",function(e){var t;e.state==m.STARTED?((t=g.createElement("div")).innerHTML='<iframe id="'+u.id+'_iframe" name="'+u.id+'_iframe" src="javascript:""" style="display:none"></iframe>',n=t.firstChild,c.appendChild(n),m.addEvent(n,"load",function(e){var t,n,i=e.target;if(r){try{t=i.contentWindow.document||i.contentDocument||s.frames[i.id].document}catch(e){return void u.trigger("Error",{code:m.SECURITY_ERROR,message:m.translate("Security error."),file:r})}(n=t.body.innerHTML)&&(r.status=m.DONE,r.loaded=1025,r.percent=100,u.trigger("UploadProgress",r),u.trigger("FileUploaded",r,{response:n}))}},u.id)):e.state==m.STOPPED&&s.setTimeout(function(){m.removeEvent(n,"load",e.id),n.parentNode&&n.parentNode.removeChild(n)},0),m.each(e.files,function(e,t){if(e.status===m.DONE||e.status===m.FAILED){var n=v("form_"+e.id);n&&n.parentNode.removeChild(n)}})}),u.bind("Refresh",function(e){var t,n,i,r,o,a,s,u;(t=v(e.settings.browse_button))&&(o=m.getPos(t,v(e.settings.container)),a=m.getSize(t),s=v("form_"+l),v("input_"+l),m.extend(s.style,{top:o.y+"px",left:o.x+"px",width:a.w+"px",height:a.h+"px"}),e.features.triggerDialog&&("static"===m.getStyle(t,"position")&&m.extend(t.style,{position:"relative"}),u=parseInt(t.style.zIndex,10),isNaN(u)&&(u=0),m.extend(t.style,{zIndex:u}),m.extend(s.style,{zIndex:u-1})),i=e.settings.browse_button_hover,r=e.settings.browse_button_active,n=e.features.triggerDialog?t:s,i&&(m.addEvent(n,"mouseover",function(){m.addClass(t,i)},e.id),m.addEvent(n,"mouseout",function(){m.removeClass(t,i)},e.id)),r&&(m.addEvent(n,"mousedown",function(){m.addClass(t,r)}
1,e.id),m.addEvent(g.body,"mouseup",function(){m.removeClass(t,r)},e.id)))}),f.bind("FilesRemoved",function(e,t){var n,i;for(n=0;n<t.length;n++)(i=v("form_"+t[n].id))&&i.parentNode.removeChild(i)}),f.bind("DisableBrowse",function(e,t){var n=g.getElementById("input_"+l);n&&(n.disabled=t)}),f.bind("Destroy",function(e){var t,n,i,r={inputContainer:"form_"+l,inputFile:"input_"+l,browseButton:e.settings.browse_button};for(t in r)(n=v(r[t]))&&m.removeAllEvents(n,e.id);m.removeAllEvents(g.body,e.id),m.each(d,function(e,t){(i=v("form_"+e))&&c.removeChild(i)})}),function r(){var o,a,e,s;l=m.guid(),d.push(l),(o=g.createElement("form")).setAttribute("id","form_"+l),o.setAttribute("method","post"),o.setAttribute("enctype","multipart/form-data"),o.setAttribute("encoding","multipart/form-data"),o.setAttribute("target",u.id+"_iframe"),o.style.position="absolute",(a=g.createElement("input")).setAttribute("id","input_"+l),a.setAttribute("type","file"),a.setAttribute("accept",p),a.setAttribute("size",1),s=v(u.settings.browse_button),u.features.triggerDialog&&s&&m.addEvent(v(u.settings.browse_button),"click",function(e){a.disabled||a.click(),e.preventDefault()},u.id),m.extend(a.style,{width:"100%",height:"100%",opacity:0,fontSize:"99px",cursor:"pointer"}),m.extend(o.style,{overflow:"hidden"}),(e=u.settings.shim_bgcolor)&&(o.style.background=e),h&&m.extend(a.style,{filter:"alpha(opacity=0)"}),m.addEvent(a,"change",function(e){var t,n=e.target,i=[];n.value&&(v("form_"+l).style.top="-1048575px",t=(t=n.value.replace(/\\/g,"/")).substring(t.length,t.lastIndexOf("/")+1),i.push(new m.File(l,t)),u.features.triggerDialog?m.removeEvent(s,"click",u.id):m.removeAllEvents(o,u.id),m.removeEvent(a,"change",u.id),r(),i.length&&f.trigger("FilesAdded",i))},u.id),o.appendChild(a),c.appendChild(o),u.refresh()}()}),e({success:!0})}})}(window,document,plupload),function(ie){ie.Jcrop=function(e,t){function g(e){return e+"px"}function m(e){return D.baseClass+"-"+e}function u(e){var t=ie(e).offset();return[t.left,t.top]}function l(e){return[e.pageX-E[0],e.pageY-E[1]]}function n(e){"object"!=typeof e&&(e={}),D=ie.extend(D,e),ie.each(["onChange","onSelect","onRelease","onDblClick"],function(e,t){"function"!=typeof D[t]&&(D[t]=function(){})})}function i(e,t){if(E=u(P),ee.setCursor("move"===e?e:e+"-resize"),"move"===e)return ee.activateHandlers((n=t,te.watchKeys(),function(e){K.moveOffset([e[0]-n[0],e[1]-n[1]]),n=e,Z.update()}),d);var n,i,r,o=K.getFixed(),a=c(e),s=K.getCorner(c(a));K.setPressed(K.getCorner(a)),K.setCurrent(s),ee.activateHandlers((i=e,r=o,function(e){if(D.aspectRatio)switch(i){case"e":case"w":e[1]=r.y+1;break;case"n":e[0]=r.x+1;break;case"s":e[0]=r.x+1}else switch(i){case"e":case"w":e[1]=r.y2;break;case"n":e[0]=r.x2;break;case"s":e[0]=r.x2}K.setCurrent(e),Z.update()}),d)}function c(e){switch(e){case"n":return"sw";case"s":case"e":return"nw";case"w":return"ne";case"ne":return"sw";case"nw":return"se";case"se":return"nw";case"sw":return"ne"}}function v(t){return function(e){return D.disabled||("move"!==t||D.allowMove)&&(E=u(P),W=!0,i(t,l(e)),e.stopPropagation(),e.preventDefault()),!1}}function s(e,t,n){var i=e.width(),r=e.height();t<i&&0<t&&(r=(i=t)/e.width()*e.height()),n<r&&0<n&&(i=(r=n)/e.height()*e.width()),q=e.width()/i,U=e.height()/r,e.width(i).height(r)}function b(e){return{x:e.x*q,y:e.y*U,x2:e.x2*q,y2:e.y2*U,w:e.w*q,h:e.h*U}}function d(e){var t=K.getFixed();t.w>D.minSelect[0]&&t.h>D.minSelect[1]?(Z.enableHandles(),Z.done()):Z.release(),ee.setCursor(D.allowSelect?"crosshair":"default")}function r(e){if(D.disabled)return!1;if(!D.allowSelect)return!1;W=!0,E=u(P),Z.disableHandles(),ee.setCursor("crosshair");var t=l(e);return K.setPressed(t),Z.update(),ee.activateHandlers(o,d),te.watchKeys(),e.stopPropagation(),e.preventDefault(),!1}function o(e){K.setCurrent(e),Z.update()}function w(){var e=ie("<div></div>").addClass(m("tracker"));return ie.browser.msie&&e.css({opacity:0,backgroundColor:"white"}),e}function a(e){_([e[0]/q,e[1]/U,e[2]/q,e[3]/U]),D.onSelect.call(ne,b(K.getFixed())),Z.enableHandles()}function _(e){K.setPressed([e[0],e[1]]),K.setCurrent([e[2],e[3]]),Z.update()}function h(){D.disabled=!0,Z.disableHandles(),Z.setCursor("default"),ee.setCursor("default")}function p(){D.disabled=!1,k()}function f(e,t,n){var i=t||D.bgColor;D.bgFade&&ie.fx.step.hasOwnProperty("backgroundColor")&&D.fadeTime&&!n?e.animate({backgroundColor:i},{queue:!1,duration:D.fadeTime}):e.css("backgroundColor",i)}function k(e){D.allowResize?e?Z.enableOnly():Z.enableHandles():Z.disableHandles(),ee.setCursor(D.allowSelect?"crosshair":"default"),Z.setCursor(D.allowMove?"move":"default"),D.hasOwnProperty("trueSize")&&(q=D.trueSize[0]/M,U=D.trueSize[1]/A),D.hasOwnProperty("setSelect")&&(a(D.setSelect),Z.done(),delete D.setSelect),J.refresh(),D.bgColor!=V&&(f(D.shade?J.getShades():N,D.shade&&D.shadeColor||D.bgColor),V=D.bgColor),G!=D.bgOpacity&&(G=D.bgOpacity,D.shade?J.refresh():Z.setBgOpacity(G)),z=D.maxSize[0]||0,H=D.maxSize[1]||0,$=D.minSize[0]||0,B=D.minSize[1]||0,D.hasOwnProperty("outerImage")&&(P.attr("src",D.outerImage),delete D.outerImage),Z.refresh()}var E,D=ie.extend({},ie.Jcrop.defaults),C=!1;ie.browser.msie&&"6"===ie.browser.version.split(".")[0]&&(C=!0),"object"!=typeof e&&(e=ie(e)[0]),"object"!=typeof t&&(t={}),n(t);var S={border:"none",visibility:"visible",margin:0,padding:0,position:"absolute",top:0,left:0},T=ie(e),F=!0;if("IMG"==e.tagName){if(0!=T[0].width&&0!=T[0].height)T.width(T[0].width),T.height(T[0].height);else{var I=new Image;I.src=T[0].src,T.width(I.width),T.height(I.height)}var P=T.clone().removeAttr("id").css(S).show();P.width(T.width()),P.height(T.height()),T.after(P).hide()}else P=T.css(S).show(),F=!1,null===D.shade&&(D.shade=!0);s(P,D.boxWidth,D.boxHeight);var M=P.width(),A=P.height(),N=ie("<div />").width(M).height(A).addClass(m("holder")).css({position:"relative",backgroundColor:D.bgColor}).insertAfter(T).append(P);D.addClass&&N.addClass(D.addClass);var O=ie("<div />"),L=ie("<div />").width("100%").height("100%").css({zIndex:310,position:"absolute",overflow:"hidden"}),R=ie("<div />").width("100%").height("100%").css("zIndex",320),j=ie("<div />").css({position:"absolute",zIndex:600}).dblclick(function(){var e=K.getFixed();D.onDblClick.call(ne,e)}).insertBefore(P).append(L,R);F&&(O=ie("<img />").attr("src",P.attr("src")).css(S).width(M).height(A),L.append(O)),C&&j.css({overflowY:"hidden"});var z,H,$,B,q,U,W,Y=D.boundary,Q=w().width(M+2*Y).height(A+2*Y).css({position:"absolute",top:g(-Y),left:g(-Y),zIndex:290}).mousedown(r),V=D.bgColor,G=D.bgOpacity;E=u(P);var X=function(){function e(){var e,t={},n=["touchstart","touchmove","touchend"],i=document.createElement("div");try{for(e=0;e<n.length;e++){var r=n[e],o=(r="on"+r)in i;o||(i.setAttribute(r,"return;"),o="function"==typeof i[r]),t[n[e]]=o}return t.touchstart&&t.touchend&&t.touchmove}catch(e){return!1}}return{createDragger:function(t){return function(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,D.disabled||("move"!==t||D.allowMove)&&(W=!0,i(t,l(e)),e.stopPropagation(),e.preventDefault()),!1}},newSelection:function(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,r(e)},isSupported:e,support:!0===D.touchSupport||!1===D.touchSupport?D.touchSupport:e()}}(),K=function(){function n(){if(!D.aspectRatio)return t=b-v,n=w-y,z&&Math.abs(t)>z&&(b=0<t?v+z:v-z),H&&Math.abs(n)>H&&(w=0<n?y+H:y-H),B/U&&Math.abs(n)<B/U&&(w=0<n?y+B/U:y-B/U),$/q&&Math.abs(t)<$/q&&(b=0<t?v+$/q:v-$/q),v<0&&(b-=v,v-=v),y<0&&(w-=y,y-=y),b<0&&(v-=b,b-=b),w<0&&(y-=w,w-=w),M<b&&(v-=e=b-M,b-=e),A<w&&(y-=e=w-A,w-=e),M<v&&(w-=e=v-A,y-=e),A<y&&(w-=e
1=y-A,y-=e),m(g(v,y,b,w));var e,t,n,i,r,o,a,s=D.aspectRatio,u=D.minSize[0]/q,l=D.maxSize[0]/q,c=D.maxSize[1]/U,d=b-v,h=w-y,p=Math.abs(d),f=Math.abs(h);return 0===l&&(l=10*M),0===c&&(c=10*A),p/f<s?(r=w,o=f*s,(i=d<0?v-o:o+v)<0?(i=0,a=Math.abs((i-v)/s),r=h<0?y-a:a+y):M<i&&(i=M,a=Math.abs((i-v)/s),r=h<0?y-a:a+y)):(i=b,a=p/s,(r=h<0?y-a:y+a)<0?(r=0,o=Math.abs((r-y)*s),i=d<0?v-o:o+v):A<r&&(r=A,o=Math.abs(r-y)*s,i=d<0?v-o:o+v)),v<i?(i-v<u?i=v+u:l<i-v&&(i=v+l),r=y<r?y+(i-v)/s:y-(i-v)/s):i<v&&(v-i<u?i=v-u:l<v-i&&(i=v-l),r=y<r?y+(v-i)/s:y-(v-i)/s),i<0?(v-=i,i=0):M<i&&(v-=i-M,i=M),r<0?(y-=r,r=0):A<r&&(y-=r-A,r=A),m(g(v,y,i,r))}function t(e){return e[0]<0&&(e[0]=0),e[1]<0&&(e[1]=0),e[0]>M&&(e[0]=M),e[1]>A&&(e[1]=A),[e[0],e[1]]}function g(e,t,n,i){var r=e,o=n,a=t,s=i;return n<e&&(r=n,o=e),i<t&&(a=i,s=t),[r,a,o,s]}function m(e){return{x:e[0],y:e[1],x2:e[2],y2:e[3],w:e[2]-e[0],h:e[3]-e[1]}}var i,r,v=0,y=0,b=0,w=0;return{flipCoords:g,setPressed:function(e){e=t(e),b=v=e[0],w=y=e[1]},setCurrent:function(e){e=t(e),i=e[0]-b,r=e[1]-w,b=e[0],w=e[1]},getOffset:function(){return[i,r]},moveOffset:function(e){var t=e[0],n=e[1];v+t<0&&(t-=t+v),y+n<0&&(n-=n+y),A<w+n&&(n+=A-(w+n)),M<b+t&&(t+=M-(b+t)),v+=t,b+=t,y+=n,w+=n},getCorner:function(e){var t=n();switch(e){case"ne":return[t.x2,t.y];case"nw":return[t.x,t.y];case"se":return[t.x2,t.y2];case"sw":return[t.x,t.y2]}},getFixed:n}}(),J=function(){function e(){return t(K.getFixed())}function t(e){c.top.css({left:g(e.x),width:g(e.w),height:g(e.y)}),c.bottom.css({top:g(e.y2),left:g(e.x),width:g(e.w),height:g(A-e.y2)}),c.right.css({left:g(e.x2),width:g(M-e.x2)}),c.left.css({width:g(e.x)})}function n(){return ie("<div />").css({position:"absolute",backgroundColor:D.shadeColor||D.bgColor}).appendTo(l)}function i(){u||(u=!0,l.insertBefore(P),e(),Z.setBgOpacity(1,0,1),O.hide(),r(D.shadeColor||D.bgColor,1),Z.isAwake()?a(D.bgOpacity,1):a(1,1))}function r(e,t){f(s(),e,t)}function o(){u&&(l.remove(),O.show(),u=!1,Z.isAwake()?Z.setBgOpacity(D.bgOpacity,1,1):(Z.setBgOpacity(1,1,1),Z.disableHandles()),f(N,0,1))}function a(e,t){u&&(D.bgFade&&!t?l.animate({opacity:1-e},{queue:!1,duration:D.fadeTime}):l.css({opacity:1-e}))}function s(){return l.children()}var u=!1,l=ie("<div />").css({position:"absolute",zIndex:240,opacity:0}),c={top:n(),left:n().height(A),right:n().height(A),bottom:n()};return{update:e,updateRaw:t,getShades:s,setBgColor:r,enable:i,disable:o,resize:function(e,t){c.left.css({height:g(t)}),c.right.css({height:g(t)})},refresh:function(){D.shade?i():o(),Z.isAwake()&&a(D.bgOpacity)},opacity:a}}(),Z=function(){function r(e,t){var n=ie("<div />").mousedown(v(e)).css({cursor:e+"-resize",position:"absolute",zIndex:t}).addClass("ord-"+e);return X.support&&n.bind("touchstart.jcrop",X.createDragger(e)),R.append(n),n}function e(){var e=K.getFixed();K.setPressed([e.x,e.y]),K.setCurrent([e.x2,e.y2]),t()}function t(e){if(u)return n(e)}function n(e){var t,n,i,r,o=K.getFixed();i=o.w,r=o.h,j.width(i).height(r),t=o.x,n=o.y,D.shade||O.css({top:g(-n),left:g(-t)}),j.css({top:g(n),left:g(t)}),D.shade&&J.updateRaw(o),u||(j.show(),D.shade?J.opacity(G):a(G,!0),u=!0),e?D.onSelect.call(ne,b(o)):D.onChange.call(ne,b(o))}function a(e,t,n){(u||t)&&(D.bgFade&&!n?P.animate({opacity:e},{queue:!1,duration:D.fadeTime}):P.css("opacity",e))}function i(){if(p=!0,D.allowResize)return R.show(),!0}function o(){p=!1,R.hide()}function s(e){void 0===e?o():i()}var u,l=370,c={},d={},h={},p=!1;D.dragEdges&&ie.isArray(D.createDragbars)&&function(e){var t;for(t=0;t<e.length;t++)h[e[t]]=r(e[t],l++).addClass("jcrop-dragbar")}(D.createDragbars),ie.isArray(D.createHandles)&&function(e){var t,n,i;for(t=0;t<e.length;t++)d[e[t]]=(n=e[t],i=D.handleSize,r(n,l++).css({opacity:D.handleOpacity}).width(i).height(i).addClass(m("handle")))}(D.createHandles),D.drawBorders&&ie.isArray(D.createBorders)&&function(e){var t,n,i,r;for(n=0;n<e.length;n++){switch(e[n]){case"n":t="hline";break;case"s":t="hline bottom";break;case"e":t="vline right";break;case"w":t="vline"}c[e[n]]=(i=t,r=ie("<div />").css({position:"absolute",opacity:D.borderOpacity}).addClass(m(i)),L.append(r),r)}}(D.createBorders),ie(document).bind("touchstart.jcrop-ios",function(e){ie(e.currentTarget).hasClass("jcrop-tracker")&&e.stopPropagation()});var f=w().mousedown(v("move")).css({cursor:"move",position:"absolute",zIndex:360});return X.support&&f.bind("touchstart.jcrop",X.createDragger("move")),L.append(f),o(),{updateVisible:t,update:n,release:function(){o(),j.hide(),D.shade?J.opacity(1):a(1),u=!1,D.onRelease.call(ne)},refresh:e,isAwake:function(){return u},setCursor:function(e){f.css("cursor",e)},enableHandles:i,enableOnly:function(){p=!0},showHandles:function(){p&&R.show()},disableHandles:o,animMode:s,setBgOpacity:a,done:function(){s(!1),e()}}}(),ee=function(){function n(e){return a(l(e)),!1}function i(e){return e.preventDefault(),e.stopPropagation(),W&&(W=!1,s(l(e)),Z.isAwake()&&D.onSelect.call(ne,b(K.getFixed())),Q.css({zIndex:290}),ie(document).unbind(".jcrop"),a=function(){},s=function(){}),!1}function r(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,n(e)}function o(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,
1i(e)}var a=function(){},s=function(){},u=D.trackDocument;return u||Q.mousemove(n).mouseup(i).mouseout(i),P.before(Q),{activateHandlers:function(e,t){return W=!0,a=e,s=t,Q.css({zIndex:450}),X.support&&ie(document).bind("touchmove.jcrop",r).bind("touchend.jcrop",o),u&&ie(document).bind("mousemove.jcrop",n).bind("mouseup.jcrop",i),!1},setCursor:function(e){Q.css("cursor",e)}}}(),te=function(){function n(e,t,n){D.allowMove&&(K.moveOffset([t,n]),Z.updateVisible(!0)),e.preventDefault(),e.stopPropagation()}var t=ie('<input type="radio" />').css({position:"fixed",left:"-120px",width:"12px"}),e=ie("<div />").css({position:"absolute",overflow:"hidden"}).append(t);return D.keySupport&&(t.keydown(function(e){if(e.ctrlKey||e.metaKey)return!0;var t=!!e.shiftKey?10:1;switch(e.keyCode){case 37:n(e,-t,0);break;case 39:n(e,t,0);break;case 38:n(e,0,-t);break;case 40:n(e,0,t);break;case 27:D.allowSelect&&Z.release();break;case 9:return!0}return!1}).blur(function(e){t.hide()}),C||!D.fixedSupport?(t.css({position:"absolute",left:"-20px"}),e.append(t).insertBefore(P)):t.insertBefore(P)),{watchKeys:function(){D.keySupport&&(t.show(),t.focus())}}}();X.support&&Q.bind("touchstart.jcrop",X.newSelection),R.hide(),k(!0);var ne={setImage:function(r,o){Z.release(),h();var a=new Image;a.onload=function(){var e=a.width,t=a.height,n=D.boxWidth,i=D.boxHeight;P.width(e).height(t),P.attr("src",r),O.attr("src",r),s(P,n,i),M=P.width(),A=P.height(),O.width(M).height(A),Q.width(M+2*Y).height(A+2*Y),N.width(M).height(A),J.resize(M,A),p(),"function"==typeof o&&o.call(ne)},a.src=r},animateTo:function(e,t){function n(){window.setTimeout(b,d)}var i=e[0]/q,r=e[1]/U,o=e[2]/q,a=e[3]/U,s=K.flipCoords(i,r,o,a),u=K.getFixed(),l=[u.x,u.y,u.x2,u.y2],c=l,d=D.animationDelay,h=s[0]-l[0],p=s[1]-l[1],f=s[2]-l[2],g=s[3]-l[3],m=0,v=D.swingSpeed;x=c[0],y=c[1],o=c[2],a=c[3],Z.animMode(!0);var b=function(){m+=(100-m)/v,c[0]=x+m/100*h,c[1]=y+m/100*p,c[2]=o+m/100*f,c[3]=a+m/100*g,99.8<=m&&(m=100),m<100?(_(c),n()):(Z.done(),"function"==typeof t&&t.call(ne))};n()},setSelect:a,setOptions:function(e){n(e),k()},tellSelect:function(){return b(K.getFixed())},tellScaled:function(){return K.getFixed()},setClass:function(e){N.removeClass().addClass(m("holder")).addClass(e)},disable:h,enable:p,cancel:function(){Z.done(),ee.activateHandlers(null,null)},release:Z.release,destroy:function(){N.remove(),T.show(),ie(e).removeData("Jcrop")},focus:te.watchKeys,getBounds:function(){return[M*q,A*U]},getWidgetSize:function(){return[M,A]},getScaleFactor:function(){return[q,U]},getOptions:function(){return D},ui:{holder:N,selection:j}};return ie.browser.msie&&N.bind("selectstart",function(){return!1}),T.data("Jcrop",ne),ne},ie.fn.Jcrop=function(e,t){var n;return this.each(function(){if(ie(this).data("Jcrop")){if("api"===e)return ie(this).data("Jcrop");ie(this).data("Jcrop").setOptions(e)}else"IMG"==this.tagName?ie.Jcrop.Loader(this,function(){ie(this).css({display:"block",visibility:"hidden"}),n=ie.Jcrop(this,e),ie.isFunction(t)&&t.call(n)}):(ie(this).css({display:"block",visibility:"hidden"}),n=ie.Jcrop(this,e),ie.isFunction(t)&&t.call(n))}),this},ie.Jcrop.Loader=function(e,t,n){var i=ie(e),r=i[0];i.bind("load.jcloader",function e(){r.complete?(i.unbind(".jcloader"),ie.isFunction(t)&&t.call(r)):window.setTimeout(e,50)}).bind("error.jcloader",function(e){i.unbind(".jcloader"),ie.isFunction(n)&&n.call(r)}),r.complete&&ie.isFunction(t)&&(i.unbind(".jcloader"),t.call(r))},ie.Jcrop.defaults={allowSelect:!0,allowMove:!0,allowResize:!0,trackDocument:!0,baseClass:"jcrop",addClass:null,bgColor:"black",bgOpacity:.6,bgFade:!1,borderOpacity:.4,handleOpacity:.5,handleSize:7,aspectRatio:0,keySupport:!0,createHandles:["n","s","e","w","nw","ne","se","sw"],createDragbars:["n","s","e","w"],createBorders:["n","s","e","w"],drawBorders:!0,dragEdges:!0,fixedSupport:!0,touchSupport:null,shade:null,boxWidth:0,boxHeight:0,boundary:2,fadeTime:400,animationDelay:20,swingSpeed:3,minSelect:[0,0],maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){},onDblClick:function(){},onRelease:function(){}}}(jQuery),function(L){var i={method:"GET",contentType:"json",queryParam:"q",searchDelay:300,minChars:1,propertyToSearch:"name",placeholder:_t("Type om te zoeken","Type to search"),jsonContainer:null,hintText:_t("Begin met typen om te zoeken","Type in a search term"),noResultsText:_t("Geen resultaten","No results"),searchingText:_t("Zoeken...","Searching..."),deleteText:"×",animateDropdown:!0,hasDropdown:!1,tokenLimit:null,tokenDelimiter:",",preventDuplicates:!1,tokenValue:"id",prePopulate:null,processPrePopulate:!1,idPrefix:"token-input-",resultsFormatter:function(e){return"<li>"+e[this.propertyToSearch]+"</li>"},tokenFormatter:function(e){return"<li><p>"+e[this.propertyToSearch]+"</p></li>"},onResult:null,onAdd:null,onDelete:null,onReady:null},R={tokenList:"token-input-list input-text-like full-width margin-top-halfx",token:"link-remove inline-left link-reset-all token-input-token",tokenDelete:"button-like button-icon button-remove-sm bg-light",selectedToken:"token-input-selected-token",highlightedToken:"token-input-highlighted-token",dropdown:"advanced-search-dropdown box four-tenths-page bg-lightest",dropdownUl:"list-roomy list-links",dropdownItem:"",dropdownItem2:"",selectedDropdownItem:"",inputToken:"token-input-input-token"},j=0,z=1,H=2,$=8,B=9,q=13,U=16,W=17,Y=18,Q=27,V=37,G=38,X=39,K=40,J=108,Z=188,t={init:function(e,t){var n=L.extend({},i,t||{});return this.each(function(){L(this).data("tokenInputObject",new L.TokenList(this,e,n))})},clear:function(){return this.data("tokenInputObject").clear(),this},add:function(e){return this.data("tokenInputObject").add(e),this},remove:function(e){return this.data("tokenInputObject").remove(e),this},get:function(){return this.data("tokenInputObject").getTokens()}};
1L.fn.tokenInput=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):t.init.apply(this,arguments)},L.TokenList=function(e,t,u){if(u||(u={}),"string"===L.type(t)||"function"===L.type(t)){u.url=t;var n=O();void 0===u.crossDomain&&(-1===n.indexOf("://")?u.crossDomain=!1:u.crossDomain=location.href.split(/\/+/g)[1]!==n.split(/\/+/g)[1])}else"object"==typeof t&&(u.local_data=t);u.classes?u.classes=L.extend({},R,u.classes):u.theme?(u.classes={},L.each(R,function(e,t){u.classes[e]=t+"-"+u.theme})):u.classes=R;var i,r,o,a=[],s=0,l=new L.TokenList.Cache,c=L('<input type="text" autocomplete="off">').css({outline:"none",width:"75%"}).attr({placeholder:u.placeholder,id:u.idPrefix+e.id}).focus(function(){null!==u.tokenLimit&&u.tokenLimit===s||L(this).val().length<u.minChars||N()}).blur(function(){o||Modernizr.touch||(F(),L(this).val(""))}).bind("keyup keydown blur update",function(){if(r===(r=c.val()))return;var e=r.replace(/&/g,"&").replace(/\s/g," ").replace(/</g,"<").replace(/>/g,">");w.html(e);var t=c.width();c.width(Math.max(t,w.width()))}).keydown(function(e){var t,n;switch(e.keyCode){case V:case X:t=y.prev(),n=y.next(),t.length&&t.get(0)===h||n.length&&n.get(0)===h?e.keyCode===V||e.keyCode===G?C(L(h),j):C(L(h),z):e.keyCode!==V&&e.keyCode!==G||!t.length?e.keyCode!==X&&e.keyCode!==K||!n.length||D(L(n.get(0))):D(L(t.get(0)));break;case G:case K:var i=null;if((i=e.keyCode===K||e.keyCode===X?L(f).next():L(f).prev()).length){A(i);var r=b.find("ul"),o=r.scrollTop(),a=i.position().top;r.scrollTop(a+o)}else N(!0);return!1;case $:if(t=y.prev(),!L(this).val().length)return h?(S(L(h)),d.change()):t.length&&D(L(t.get(0))),!1;setTimeout(function(){N()},5);break;case B:case q:case J:case Z:if(f)return E(L(f).data("tokeninput")),d.change(),!1;break;case Q:return F(),!0;case U:case W:case Y:break;default:String.fromCharCode(e.which)&&setTimeout(function(){N()},5)}}),d=L(e).hide().val("").focus(function(){c.focus()}).blur(function(){c.blur()}),h=null,p=0,f=null,g=L("<ul />").addClass(u.classes.tokenList).click(function(e){var t=L(e.target).closest("li");t&&t.get(0)&&L.data(t.get(0),"tokeninput")?function(e){var t=h;h&&C(L(h),H);t===e.get(0)?C(e,H):D(e)}(t):(h&&C(L(h),H),c.focus())}).mouseover(function(e){var t=L(e.target).closest("li");t&&h!==this&&t.addClass(u.classes.highlightedToken)}).mouseout(function(e){var t=L(e.target).closest("li");t&&h!==this&&t.removeClass(u.classes.highlightedToken)}).insertBefore(d),m=L(d).parent().prev();0<m.length&&m.attr("for",u.idPrefix+e.id);var v=c;u.hasDropdown&&(v=L("<div class='block full-width'><a name='dropdown' class='button-like button-fold-out button-icon button-transparent block-right' style='zoom: 1;'></a><div").append(c));var y=L("<li />").addClass(u.classes.inputToken).appendTo(g).append(v);v.find("a").click(function(){N(!0)});var b=L("<div>").addClass(u.classes.dropdown).css({width:y.width()}).appendTo("body").hide().mouseover(function(){o=!0}).mouseout(function(){o=!1}),w=L("<tester/>").insertAfter(c).css({position:"absolute",top:-9999,left:-9999,width:"auto",fontSize:c.css("fontSize"),fontFamily:c.css("fontFamily"),fontWeight:c.css("fontWeight"),letterSpacing:c.css("letterSpacing"),whiteSpace:"nowrap"});d.val("");var x=u.prePopulate||d.data("pre");function _(){if(null!==u.tokenLimit&&s>=u.tokenLimit)return c.hide(),void F()}function k(e){var t=u.tokenFormatter(e);t=L(t).addClass(u.classes.token).insertBefore(g),L("<span>"+u.deleteText+"</span>").addClass(u.classes.tokenDelete).appendTo(t).click(function(){return S(L(this).parent()),d.change(),!1});var n={id:e.id};return n[u.propertyToSearch]=e[u.propertyToSearch],L.data(t.get(0),"tokeninput",e),a=a.slice(0,p).concat([n]).concat(a.slice(p)),p++,T(a,d),s+=1,null!==u.tokenLimit&&s>=u.tokenLimit&&(c.hide(),F()),t}function E(n){var e=u.onAdd;if(0<s&&u.preventDuplicates){var i=null;if(g.children().each(function(){var e=L(this),t=L.data(e.get(0),"tokeninput");if(t&&t.id===n.id)return i=e,!1}),i)return D(i),y.insertAfter(i),void c.focus()}(null==u.tokenLimit||s<u.tokenLimit)&&(k(n),_()),c.val(""),F(),L.isFunction(e)&&e.call(d,n)}function D(e){e.addClass(u.classes.selectedToken),h=e.get(0),c.val(""),F()}function C(e,t){e.removeClass(u.classes.selectedToken),h=null,t===j?(y.insertBefore(e),p--):t===z?(y.insertAfter(e),p++):(y.appendTo(g),p=s),c.focus()}function S(e){var t=L.data(e.get(0),"tokeninput"),n=u.onDelete,i=e.prevAll().length;p<i&&i--,e.remove(),h=null,c.focus(),a=a.slice(0,i).concat(a.slice(i+1)),i<p&&p--,T(a,d),s-=1,null!==u.tokenLimit&&c.show().val("").focus(),L.isFunction(n)&&n.call(d,t)}function T(e,t){var n=L.map(e,function(e){return e[u.tokenValue]});t.val(n.join(u.tokenDelimiter))}function F(){b.hide().empty(),f=null}function I(){b.css({position:"absolute",top:L(g).offset().top+L(g).outerHeight(),left
1:L(g).offset().left,zindex:999}).show(),b.unbind("click.tokeninput").bind("click.tokeninput",function(e){e.stopPropagation()}),L("html").unbind("click.tokeninput").bind("click.tokeninput",function(){F()})}function P(e,t,n){return t&&n?e.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+t+")(?![^<>]*>)(?![^&;]+;)","g"),(i=n,t.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+i+")(?![^<>]*>)(?![^&;]+;)","gi"),"<b>$1</b>"))):e;var i}function M(i,e){if(e&&e.length){b.empty();var r=L("<ul>").appendTo(b).addClass(u.classes.dropdownUl).mouseover(function(e){A(L(e.target).closest("li"))}).hide();L.each(e,function(e,t){var n=u.resultsFormatter(t);n=P(n,t[u.propertyToSearch],i),n=L(n).appendTo(r),e%2?n.addClass(u.classes.dropdownItem):n.addClass(u.classes.dropdownItem2),0===e&&A(n),L.data(n.get(0),"tokeninput",t)}),r.find("a").on("click",function(e){e.preventDefault(),E(L(e.currentTarget).parent("li").data("tokeninput")),d.change()}),I(),u.animateDropdown?r.slideDown("fast"):r.show()}else u.noResultsText&&(b.html("<p>"+u.noResultsText+"</p>"),I())}function A(e){e&&(f&&(L(f).removeClass(u.classes.selectedDropdownItem),f=null),e.addClass(u.classes.selectedDropdownItem),f=e.get(0))}function N(e){var t=c.val().toLowerCase();h&&C(L(h),z),e||t.length>=u.minChars?(u.searchingText&&(b.html("<p>"+u.searchingText+"</p>"),I()),clearTimeout(i),i=setTimeout(function(){!function(t){var n=t+O(),e=l.get(n);if(e)M(t,e);else if(u.url){var i=O(),r={},o=new QueryParams("?");if(-1<i.indexOf("?")){var a=i.split("?");r.url=a[0],o=new QueryParams(a[1])}else r.url=i;o.set(u.queryParam,t),r.url+=o.toString(),r.type=u.method,r.dataType=u.contentType,u.crossDomain&&(r.dataType="jsonp"),r.success=function(e){L.isFunction(u.onResult)&&(e=u.onResult.call(d,e)),l.add(n,u.jsonContainer?e[u.jsonContainer]:e),c.val().toLowerCase()===t&&M(t,u.jsonContainer?e[u.jsonContainer]:e)},L.ajax(r)}else if(u.local_data){var s=L.grep(u.local_data,function(e){return-1<e[u.propertyToSearch].toLowerCase().indexOf(t.toLowerCase())});L.isFunction(u.onResult)&&(s=u.onResult.call(d,s)),l.add(n,s),M(t,s)}}(t)},u.searchDelay)):F()}function O(){var e=u.url;return"function"==typeof u.url&&(e=u.url.call()),e}u.processPrePopulate&&L.isFunction(u.onResult)&&(x=u.onResult.call(d,x)),x&&x.length&&L.each(x,function(e,t){k(t),_()}),L.isFunction(u.onReady)&&u.onReady.call(),this.clear=function(){g.children("li").each(function(){0===L(this).children("input").length&&S(L(this))})},this.add=function(e){E(e)},this.remove=function(i){g.children("li").each(function(){if(0===L(this).children("input").length){var e=L(this).data("tokeninput"),t=!0;for(var n in i)if(i[n]!==e[n]){t=!1;break}t&&S(L(this))}})},this.getTokens=function(){return a}},L.TokenList.Cache=function(e){var n=L.extend({max_size:500},e),i={},r=0;this.add=function(e,t){r>n.max_size&&(i={},r=0),i[e]||(r+=1),i[e]=t},this.get=function(e){return i[e]}}}(jQuery),window.format=function(e,t){"use strict";if(!e||isNaN(+t))return t;var n=(t="-"==e.charAt(0)?-t:+t)<0?t=-t:0,i=e.match(/[^\d\-\+#]/g),r=i&&i[i.length-1]||".",o=i&&i[1]&&i[0]||",";e=e.split(r);t=+(t=t.toFixed(e[1]&&e[1].length))+"";var a=e[1]&&e[1].lastIndexOf("0"),s=t.split(".");(!s[1]||s[1]&&s[1].length<=a)&&(t=(+t).toFixed(a+1));var u=e[0].split(o);e[0]=u.join("");var l=e[0]&&e[0].indexOf("0");if(-1<l)for(;s[0].length<e[0].length-l;)s[0]="0"+s[0];else 0==+s[0]&&(s[0]="");(t=t.split("."))[0]=s[0];var c=u[1]&&u[u.length-1].length;if(c){for(var d=t[0],h="",p=d.length%c,f=0,g=d.length;f<g;f++)h+=d.charAt(f),!((f-p+1)%c)&&f<g-c&&(h+=o);t[0]=h}return t[1]=e[1]&&t[1]?r+t[1]:"",(n?"-":"")+t[0]+t[1]},function(l,c,e){var t=/\+/g;function d(e){return e}function h(e){return decodeURIComponent(e.replace(t," "))}l.cookie=function(e,t,n){if(void 0!==t&&!/Object/.test(Object.prototype.toString.call(t))){if(n=l.extend({},l.cookie.defaults,n),null===t&&(n.expires=-1),"number"==typeof n.expires){var i=n.expires,r=n.expires=new Date;r.setDate(r.getDate()+i)}return t=String(t),c.cookie=[encodeURIComponent(e),"=",n.raw?t:encodeURIComponent(t),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("")}for(var o,a=(n=t||l.cookie.defaults||{}).raw?d:h,s=c.cookie.split("; "),u=0;o=s[u]&&s[u].split("=");u++)if(a(o.shift())===e)return a(o.join("="));return null},l.cookie.defaults={},l.removeCookie=function(e,t){return null!==l.cookie(e,t)&&(l.cookie(e,null,t),!0)}}(jQuery,document),function(h,e){var p="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";h.fn.imagesLoaded=function(n){function i(){var e=h(c),t=h(d);a&&(d.length?a.reject(u,e,t):a.resolve(u)),h.isFunction(n)&&n.call(o,u,e,t)}function r(e,t){e.src===p||-1!==h.inArray(e,l)||(l.push(e),t?d.push(e):c.push(e),h.data(e,"imagesLoaded",{isBroken:t,src:e.src}),s&&a.notifyWith(h(e),[t,u,h(c),h(d)]),u.length===l.length&&(setTimeout(i),u.unbind(".imagesLoaded")))}var o=this,a=h.isFunction(h.Deferred)?h.Deferred():0,s=h.isFunction(a.notify),u=o.find("img").add(o.filter("img")),l=[],c=[],d=[];return h.isPlainObject(n)&&h.each(n,function(e,t){"callback"===e?n=t:a&&a[e](t)}),u.length?u.bind("load.imagesLoaded error.imagesLoaded",function(e){r(e.target,"error"===e.type)}).each(function(e,t){var n=t.src,i=h.data(t,"imagesLoaded");
1i&&i.src===n?r(t,i.isBroken):t.complete&&void 0!==t.naturalWidth?r(t,0===t.naturalWidth||0===t.naturalHeight):(t.readyState||t.complete)&&(t.src=p,t.src=n)}):i(),a?a.promise(o):o}}(jQuery),function(d,e,t,h,n){var i=d("<div>")[0],r=/url\(["']?(.*?)["']?\)/,a=[],s={top:0,left:0,bottom:1,right:1,center:.5};if(!("backgroundSize"in i.style)||d.debugBGS){d.cssHooks.backgroundSize={set:function(e,t){var n,i,r,o=!d.data(e,"bgsImg");d.data(e,"bgsValue",t),o?(a.push(e),d.refreshBackgroundDimensions(e,!0),i=d("<div>").css({position:"absolute",zIndex:-1,top:0,right:0,left:0,bottom:0,overflow:"hidden"}),r=d("<img>").css({position:"absolute"}).appendTo(i),i.prependTo(e),d.data(e,"bgsImg",r[0]),n=(d.css(e,"backgroundPosition")||d.css(e,"backgroundPositionX")+" "+d.css(e,"backgroundPositionY")).split(" "),d.data(e,"bgsPos",[s[n[0]]||parseFloat(n[0])/100,s[n[1]]||parseFloat(n[1])/100]),"auto"==d.css(e,"zIndex")&&(e.style.zIndex=0),"static"==d.css(e,"position")&&(e.style.position="relative"),d.refreshBackgroundImage(e)):d.refreshBackground(e)},get:function(e){return d.data(e,"bgsValue")||""}},d.cssHooks.backgroundImage={set:function(e,t){return d.data(e,"bgsImg")?d.refreshBackgroundImage(e,t):t}},d.refreshBackgroundDimensions=function(e,t){var n=d(e),i={width:n.innerWidth(),height:n.innerHeight()},r=d.data(e,"bgsDim"),o=!r||i.width!=r.width||i.height!=r.height;d.data(e,"bgsDim",i),o&&!t&&d.refreshBackground(e)},d.refreshBackgroundImage=function(t,e){var n=d.data(t,"bgsImg"),i=(r.exec(e||d.css(t,"backgroundImage"))||[])[1];i!=(n&&n.src)&&(n.style.height=n.style.width="auto",n.onload=function(){var e={width:n.width,height:n.height};1==e.width&&1==e.height||(d.data(t,"bgsImgDim",e),d.data(t,"bgsConstrain",!1),d.refreshBackground(t),n.style.visibility="visible",n.onload=null)},n.style.visibility="hidden",n.src=i,(n.readyState||n.complete)&&(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",n.src=i),t.style.backgroundImage="none")},d.refreshBackground=function(e){var t,n,i=d.data(e,"bgsValue"),r=d.data(e,"bgsDim"),o=d.data(e,"bgsImgDim"),a=d(d.data(e,"bgsImg")),s=d.data(e,"bgsPos"),u=d.data(e,"bgsConstrain"),l=r.width/r.height,c=o.width/o.height;"contain"==i?l<c?(d.data(e,"bgsConstrain",t="width"),n=h.floor((r.height-r.width/c)*s[1]),a.css({top:n}),t!=u&&a.css({width:"100%",height:"auto",left:0})):(d.data(e,"bgsConstrain",t="height"),n=h.floor((r.width-r.height*c)*s[0]),a.css({left:n}),t!=u&&a.css({height:"100%",width:"auto",top:0})):"cover"==i&&(l<c?(d.data(e,"bgsConstrain",t="height"),n=h.floor((r.height*c-r.width)*s[0]),a.css({left:-n}),t!=u&&a.css({height:"100%",width:"auto",top:0})):(d.data(e,"bgsConstrain",t="width"),n=h.floor((r.width/c-r.height)*s[1]),a.css({top:-n}),t!=u&&a.css({width:"100%",height:"auto",left:0})))};var o,u,l,c=d.event,p={_:0},f=0;o=c.special.throttledresize={setup:function(){d(this).on("resize",o.handler)},teardown:function(){d(this).off("resize",o.handler)},handler:function(e,t){var n=this,i=arguments;u=!0,l||(d(p).animate(p,{duration:1/0,step:function(){(++f>o.threshold&&u||t)&&(e.type="throttledresize",c.dispatch.apply(n,i),u=!1,f=0),9<f&&(d(p).stop(),l=!1,f=0)}}),l=!0)},threshold:1},d(e).on("throttledresize",function(){d(a).each(function(){d.refreshBackgroundDimensions(this)})})}}(jQuery,window,document,Math),function(){function R(e){throw e}var j=null;function z(e){return function(){return e}}var H=window,$=document,B=navigator,q=window.jQuery,U=void 0;function e(e){function _(e,t,n,i,r){var o=[];return e=E.j(function(){var e=t(n,r)||[];0<o.length&&(E.a.Ya(k(o),e),i&&E.r.K(i,j,[n,e,r])),o.splice(0,o.length),E.a.P(o,e)},j,{W:e,Ka:function(){return 0==o.length||!E.a.X(o[0])}}),{M:o,j:e.pa()?e:U}}function k(e){for(;e.length&&!E.a.X(e[0]);)e.splice(0,1);if(1<e.length){for(var t=e[0],n=e[e.length-1],i=[t];t!==n;){if(!(t=t.nextSibling))return;i.push(t)}Array.prototype.splice.apply(e,[0,e.length].concat(i))}return e}function i(e,t,n,i,r){var o,a,s,u,l,c,d=Math.min,h=Math.max,p=[],f=e.length,g=t.length,m=g-f||1,v=f+g+1;for(o=0;o<=f;o++)for(u=s,p.push(s=[]),l=d(g,o+m),a=h(0,o-1);a<=l;a++)s[a]=a?o?e[o-1]===t[a-1]?u[a-1]:d(u[a]||v,s[a-1]||v)+1:a+1:o+1;for(d=[],h=[],m=[],o=f,a=g;o||a;)g=p[o][a]-1,a&&g===p[o][a-1]?h.push(d[d.length]={status:n,value:t[--a],index:a}):o&&g===p[o-1][a]?m.push(d[d.length]={status:i,value:e[--o],index:o}):(d.push({status:"retained",value:t[--a]}),--o);if(h.length&&m.length)for(e=10*f,t=n=0;(r||t<e)&&(c=h[n]);n++){for(i=0;p=m[i];i++)if(c.value===p.value){c.moved=p.index,p.moved=c.index,m.splice(i,1),t=i=0;break}t+=i}return d.reverse()}function l(e,t,n,i,r){r=r||{};var o=(o=e&&u(e))&&o.ownerDocument,a=r.templateEngine||N;switch(E.za.vb(n,a,o),("number"!=typeof(n=a.renderTemplate(n,i,r,o)).length||0<n.length&&"number"!=typeof n[0].nodeType)&&R(Error("Template engine must return an array of DOM nodes")),o=!1,t){case"replaceChildren":E.e.N(e,n),o=!0;break;case"replaceNode":E.a.Ya(e,n),o=!0;break;case"ignoreTargetNode":break;default:R(Error("Unknown renderMode: "+t))}
1return o&&(c(n,i),r.afterRender&&E.r.K(r.afterRender,j,[n,i.$data])),n}function u(e){return e.nodeType?e:0<e.length?e[0]:j}function c(e,t){if(e.length){var n=e[0],i=e[e.length-1];r(n,i,function(e){E.Da(t,e)}),r(n,i,function(e){E.s.ib(e,[t])})}}function r(e,t,n){var i;for(t=E.e.nextSibling(t);e&&(i=e)!==t;)e=E.e.nextSibling(i),(1===i.nodeType||8===i.nodeType)&&n(i)}function d(e,t,n){e=E.g.aa(e);for(var i=E.g.Q,r=0;r<e.length;r++){var o=e[r].key;if(i.hasOwnProperty(o)){var a=i[o];"function"==typeof a?(o=a(e[r].value))&&R(Error(o)):a||R(Error("This template engine does not support the '"+o+"' binding within its templates"))}}return e="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+E.g.ba(e)+" } })()})",n.createJavaScriptEvaluatorBlock(e)+t}function o(r,o,a,s){function u(e){return function(){return c[e]}}function l(){return c}var c,d,h=0;return E.j(function(){var e=a&&a instanceof E.z?a:new E.z(E.a.d(a)),t=e.$data;if(s&&E.eb(r,e),c=("function"==typeof o?o(e,r):o)||E.J.instance.getBindings(r,e)){if(0===h){for(var n in h=1,c){var i=E.c[n];i&&8===r.nodeType&&!E.e.I[n]&&R(Error("The binding '"+n+"' cannot be used with virtual elements")),i&&"function"==typeof i.init&&(i=(0,i.init)(r,u(n),l,t,e))&&i.controlsDescendantBindings&&(d!==U&&R(Error("Multiple bindings ("+d+" and "+n+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.")),d=n)}h=2}if(2===h)for(n in c)(i=E.c[n])&&"function"==typeof i.update&&(0,i.update)(r,u(n),l,t,e)}},j,{W:r}),{Nb:d===U}}function a(e,t,n){var i=!0,r=1===t.nodeType;r&&E.e.Ta(t),(r&&n||E.J.instance.nodeHasBindings(t))&&(i=o(t,j,e,n).Nb),i&&s(e,t,!r)}function s(e,t,n){for(var i=E.e.firstChild(t);t=i;)i=E.e.nextSibling(t),a(e,t,n)}function h(e,t){var n=p(e,t);return n?0<n.length?n[n.length-1].nextSibling:e.nextSibling:j}function p(e,t){for(var n=e,i=1,r=[];n=n.nextSibling;){if(f(n)&&0===--i)return r;r.push(n),g(n)&&i++}return t||R(Error("Cannot find closing comment tag to match: "+e.nodeValue)),j}function f(e){return 8==e.nodeType&&(T?e.text:e.nodeValue).match(I)}function g(e){return 8==e.nodeType&&(T?e.text:e.nodeValue).match(F)}function m(e,n){for(var t=j;e!=t;)e=(t=e).replace(D,function(e,t){return n[t]});return e}function v(){var i=[],r=[];this.save=function(e,t){var n=E.a.i(i,e);0<=n?r[n]=t:(i.push(e),r.push(t))},this.get=function(e){return 0<=(e=E.a.i(i,e))?r[e]:U}}function t(e,a,s,u){E.c[e]={init:function(e){return E.a.f.set(e,A,{}),{controlsDescendantBindings:!0}},update:function(e,t,n,i,r){n=E.a.f.get(e,A),t=E.a.d(t()),i=!s!=!t;var o=!n.Za;(o||a||i!==n.qb)&&(o&&(n.Za=E.a.Ia(E.e.childNodes(e),!0)),i?(o||E.e.N(e,E.a.Ia(n.Za)),E.Ea(u?u(r,t):r,e)):E.e.Y(e),n.qb=i)}},E.g.Q[e]=!1,E.e.I[e]=!0}function y(e,t,n){n&&t!==E.k.q(e)&&E.k.T(e,t),t!==E.k.q(e)&&E.r.K(E.a.Ba,j,[e,"change"])}var E=void 0!==e?e:{};E.b=function(e,t){for(var n=e.split("."),i=E,r=0;r<n.length-1;r++)i=i[n[r]];i[n[n.length-1]]=t},E.p=function(e,t,n){e[t]=n}
1,E.version="2.2.1",E.b("version",E.version),E.a=new function(){function o(e,t){if("input"!==E.a.u(e)||!e.type||"click"!=t.toLowerCase())return!1;var n=e.type;return"checkbox"==n||"radio"==n}var t=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,e={},i={};for(var n in e[/Firefox\/2/i.test(B.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],e.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),e){var r=e[n];if(r.length)for(var a=0,s=r.length;a<s;a++)i[r[a]]=n}var u,l={propertychange:!0};e=3;for(r=(n=$.createElement("div")).getElementsByTagName("i");n.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e",r[0];);return{Na:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],o:function(e,t){for(var n=0,i=e.length;n<i;n++)t(e[n])},i:function(e,t){if("function"==typeof Array.prototype.indexOf)return Array.prototype.indexOf.call(e,t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},lb:function(e,t,n){for(var i=0,r=e.length;i<r;i++)if(t.call(n,e[i]))return e[i];return j},ga:function(e,t){var n=E.a.i(e,t);0<=n&&e.splice(n,1)},Ga:function(e){for(var t=[],n=0,i=(e=e||[]).length;n<i;n++)E.a.i(t,e[n])<0&&t.push(e[n]);return t},V:function(e,t){for(var n=[],i=0,r=(e=e||[]).length;i<r;i++)n.push(t(e[i]));return n},fa:function(e,t){for(var n=[],i=0,r=(e=e||[]).length;i<r;i++)t(e[i])&&n.push(e[i]);return n},P:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var n=0,i=t.length;n<i;n++)e.push(t[n]);return e},extend:function(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},ka:function(e){for(;e.firstChild;)E.removeNode(e.firstChild)},Hb:function(e){e=E.a.L(e);for(var t=$.createElement("div"),n=0,i=e.length;n<i;n++)t.appendChild(E.A(e[n]));return t},Ia:function(e,t){for(var n=0,i=e.length,r=[];n<i;n++){var o=e[n].cloneNode(!0);r.push(t?E.A(o):o)}return r},N:function(e,t){if(E.a.ka(e),t)for(var n=0,i=t.length;n<i;n++)e.appendChild(t[n])},Ya:function(e,t){var n=e.nodeType?[e]:e;if(0<n.length){for(var i=n[0],r=i.parentNode,o=0,a=t.length;o<a;o++)r.insertBefore(t[o],i);for(o=0,a=n.length;o<a;o++)E.removeNode(n[o])}},bb:function(e,t){u<7?e.setAttribute("selected",t):e.selected=t},D:function(e){return(e||"").replace(t,"")},Rb:function(e,t){for(var n=[],i=(e||"").split(t),r=0,o=i.length;r<o;r++){var a=E.a.D(i[r]);""!==a&&n.push(a)}return n},Ob:function(e,t){return e=e||"",!(t.length>e.length)&&e.substring(0,t.length)===t},tb:function(e,t){if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e!=j;){if(e==t)return!0;e=e.parentNode}return!1},X:function(e){return E.a.tb(e,e.ownerDocument)},u:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},n:function(t,e,n){var i=u&&l[e];if(i||void 0===q)i||"function"!=typeof t.addEventListener?void 0!==t.attachEvent?t.attachEvent("on"+e,function(e){n.call(t,e)}):R(Error("Browser doesn't support addEventListener or attachEvent")):t.addEventListener(e,n,!1);else{if(o(t,e)){var r=n;n=function(e,t){var n=this.checked;t&&(this.checked=!0!==t.nb),r.call(this,e),this.checked=n}}q(t).bind(e,n)}},Ba:function(e,t){if((!e||!e.nodeType)&&R(Error("element must be a DOM node when calling triggerEvent")),void 0!==q){var n=[];o(e,t)&&n.push({nb:e.checked}),q(e).trigger(t,n)}else"function"==typeof $.createEvent?"function"==typeof e.dispatchEvent?((n=$.createEvent(i[t]||"HTMLEvents")).initEvent(t,!0,!0,H,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(n)):R(Error("The supplied element doesn't support dispatchEvent")):void 0!==e.fireEvent?(o(e,t)&&(e.checked=!0!==e.checked),e.fireEvent("on"+t)):R(Error("Browser doesn't support triggering events"))},d:function(e){return E.$(e)?e():e},ua:function(e){return E.$(e)?e.t():e},da:function(e,t,n){if(t){var i=/[\w-]+/g,r=e.className.match(i)||[];E.a.o(t.match(i),function(e){var t=E.a.i(r,e);0<=t?n||r.splice(t,1):n&&r.push(e)}),e.className=r.join(" ")}},cb:function(e,t){var n=E.a.d(t);if(n!==j&&n!==U||(n=""),3===e.nodeType)e.data=n;else{var i=E.e.firstChild(e);!i||3!=i.nodeType||E.e.nextSibling(i)?E.e.N(e,[$.createTextNode(n)]):i.data=n,E.a.wb(e)}},ab:function(e,t){if(e.name=t,u<=7)try{e.mergeAttributes($.createElement("<input name='"+e.name+"'/>"),!1)}catch(e){}},wb:function(e){9<=u&&((e=1==e.nodeType?e:e.parentNode).style&&(e.style.zoom=e.style.zoom))},ub:function(e){if(9<=u){var t=e.style.width;e.style.width=0,e.style.width=t}},Lb:function(e,t){e=E.a.d(e),t=E.a.d(t);for(var n=[],i=e;i<=t;i++)n.push(i);return n},L:function(e){for(var t=[],n=0,i=e.length;n<i;n++)t.push(e[n]);return t},Pb:6===(u=4<e?e:U),Qb:7===u,Z:u,Oa:function(e,t){for(var n=E.a.L(e.getElementsByTagName("input")).concat(E.a.L(e.getElementsByTagName("textarea"))),i="string"==typeof t?function(e){return e.name===t}:function(e){return t.test(e.name)}
1,r=[],o=n.length-1;0<=o;o--)i(n[o])&&r.push(n[o]);return r},Ib:function(e){return"string"==typeof e&&(e=E.a.D(e))?H.JSON&&H.JSON.parse?H.JSON.parse(e):new Function("return "+e)():j},xa:function(e,t,n){return("undefined"==typeof JSON||void 0===JSON.stringify)&&R(Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js")),JSON.stringify(E.a.d(e),t,n)},Jb:function(e,t,n){var i=(n=n||{}).params||{},r=n.includeFields||this.Na,o=e;if("object"==typeof e&&"form"===E.a.u(e)){o=e.action;for(var a=r.length-1;0<=a;a--)for(var s=E.a.Oa(e,r[a]),u=s.length-1;0<=u;u--)i[s[u].name]=s[u].value}t=E.a.d(t);var l=$.createElement("form");for(var c in l.style.display="none",l.action=o,l.method="post",t)(e=$.createElement("input")).name=c,e.value=E.a.xa(E.a.d(t[c])),l.appendChild(e);for(c in i)(e=$.createElement("input")).name=c,e.value=i[c],l.appendChild(e);$.body.appendChild(l),n.submitter?n.submitter(l):l.submit(),setTimeout(function(){l.parentNode.removeChild(l)},0)}}},E.b("utils",E.a),E.b("utils.arrayForEach",E.a.o),E.b("utils.arrayFirst",E.a.lb),E.b("utils.arrayFilter",E.a.fa),E.b("utils.arrayGetDistinctValues",E.a.Ga),E.b("utils.arrayIndexOf",E.a.i),E.b("utils.arrayMap",E.a.V),E.b("utils.arrayPushAll",E.a.P),E.b("utils.arrayRemoveItem",E.a.ga),E.b("utils.extend",E.a.extend),E.b("utils.fieldsIncludedWithJsonPost",E.a.Na),E.b("utils.getFormFields",E.a.Oa),E.b("utils.peekObservable",E.a.ua),E.b("utils.postJson",E.a.Jb),E.b("utils.parseJson",E.a.Ib),E.b("utils.registerEventHandler",E.a.n),E.b("utils.stringifyJson",E.a.xa),E.b("utils.range",E.a.Lb),E.b("utils.toggleDomNodeCssClass",E.a.da),E.b("utils.triggerEvent",E.a.Ba),E.b("utils.unwrapObservable",E.a.d),Function.prototype.bind||(Function.prototype.bind=function(e){var t=this,n=Array.prototype.slice.call(arguments);return e=n.shift(),function(){return t.apply(e,n.concat(Array.prototype.slice.call(arguments)))}}),E.a.f=new function(){var i=0,r="__ko__"+(new Date).getTime(),o={};return{get:function(e,t){var n=E.a.f.la(e,!1);return n===U?U:n[t]},set:function(e,t,n){n===U&&E.a.f.la(e,!1)===U||(E.a.f.la(e,!0)[t]=n)},la:function(e,t){var n=e[r];if(!n||"null"===n||!o[n]){if(!t)return U;n=e[r]="ko"+i++,o[n]={}}return o[n]},clear:function(e){var t=e[r];return!!t&&(delete o[t],!(e[r]=j))}}},E.b("utils.domData",E.a.f),E.b("utils.domData.clear",E.a.f.clear),E.a.F=new function(){function i(e,t){var n=E.a.f.get(e,o);return n===U&&t&&(n=[],E.a.f.set(e,o,n)),n}function r(e){if(t=i(e,!1))for(var t=t.slice(0),n=0;n<t.length;n++)t[n](e);if(E.a.f.clear(e),"function"==typeof q&&"function"==typeof q.cleanData&&q.cleanData([e]),s[e.nodeType])for(t=e.firstChild;e=t;)t=e.nextSibling,8===e.nodeType&&r(e)}var o="__ko_domNodeDisposal__"+(new Date).getTime(),a={1:!0,8:!0,9:!0},s={1:!0,9:!0};return{Ca:function(e,t){"function"!=typeof t&&R(Error("Callback must be a function")),i(e,!0).push(t)},Xa:function(e,t){var n=i(e,!1);n&&(E.a.ga(n,t),0==n.length&&E.a.f.set(e,o,U))},A:function(e){if(a[e.nodeType]&&(r(e),s[e.nodeType])){var t=[];E.a.P(t,e.getElementsByTagName("*"));for(var n=0,i=t.length;n<i;n++)r(t[n])}return e},removeNode:function(e){E.A(e),e.parentNode&&e.parentNode.removeChild(e)}}},E.A=E.a.F.A,E.removeNode=E.a.F.removeNode,E.b("cleanNode",E.A),E.b("removeNode",E.removeNode),E.b("utils.domNodeDisposal",E.a.F),E.b("utils.domNodeDisposal.addDisposeCallback",E.a.F.Ca),E.b("utils.domNodeDisposal.removeDisposeCallback",E.a.F.Xa),E.a.ta=function(e){var t;if(void 0!==q){if(q.parseHTML)t=q.parseHTML(e);else if((t=q.clean([e]))&&t[0]){for(e=t[0];e.parentNode&&11!==e.parentNode.nodeType;)e=e.parentNode;e.parentNode&&e.parentNode.removeChild(e)}}else{var n=E.a.D(e).toLowerCase();for(t=$.createElement("div"),e="ignored<div>"+(n=n.match(/^<(thead|tbody|tfoot)/)&&[1,"<table>","</table>"]||!n.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!n.indexOf("<td")||!n.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||[0,"",""])[1]+e+n[2]+"</div>","function"==typeof H.innerShiv?t.appendChild(H.innerShiv(e)):t.innerHTML=e;n[0]--;)t=t.lastChild;t=E.a.L(t.lastChild.childNodes)}return t},E.a.ca=function(e,t){if(E.a.ka(e),(t=E.a.d(t))!==j&&t!==U)if("string"!=typeof t&&(t=t.toString()),void 0!==q)q(e).html(t);else for(var n=E.a.ta(t),i=0;i<n.length;i++)e.appendChild(n[i])},E.b("utils.parseHtmlFragment",E.a.ta),E.b("utils.setHtml",E.a.ca);var b={};E.s={ra:function(e){"function"!=typeof e&&R(Error("You can only pass a function to ko.memoization.memoize()"));var t=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return b[t]=e,"\x3c!--[ko_memo:"+t+"]--\x3e"},hb:function(e,t){var n=b[e];n===U&&R(Error("Couldn't find any memo with ID "+e+". Perhaps it's already been unmemoized."));try{return n.apply(j,t||[]),!0}finally{delete b[e]}},ib:function(e,t){var n=[];!function e(t,n){if(t)if(8==t.nodeType)(i=E.s.Ua(t.nodeValue))!=j&&n.push({sb:t,Fb:i});else if(1==t.nodeType)for(var i=0,r=t.childNodes,o=r.length;i<o;i++)e(r[i],n)}
1(e,n);for(var i=0,r=n.length;i<r;i++){var o=n[i].sb,a=[o];t&&E.a.P(a,t),E.s.hb(n[i].Fb,a),o.nodeValue="",o.parentNode&&o.parentNode.removeChild(o)}},Ua:function(e){return(e=e.match(/^\[ko_memo\:(.*?)\]$/))?e[1]:j}},E.b("memoization",E.s),E.b("memoization.memoize",E.s.ra),E.b("memoization.unmemoize",E.s.hb),E.b("memoization.parseMemoText",E.s.Ua),E.b("memoization.unmemoizeDomNodeAndDescendants",E.s.ib),E.Ma={throttle:function(t,n){t.throttleEvaluation=n;var i=j;return E.j({read:t,write:function(e){clearTimeout(i),i=setTimeout(function(){t(e)},n)}})},notify:function(e,t){return e.equalityComparer="always"==t?z(!1):E.m.fn.equalityComparer,e}},E.b("extenders",E.Ma),E.fb=function(e,t,n){this.target=e,this.ha=t,this.rb=n,E.p(this,"dispose",this.B)},E.fb.prototype.B=function(){this.Cb=!0,this.rb()},E.S=function(){this.w={},E.a.extend(this,E.S.fn),E.p(this,"subscribe",this.ya),E.p(this,"extend",this.extend),E.p(this,"getSubscriptionsCount",this.yb)},E.S.fn={ya:function(e,t,n){n=n||"change";var i=new E.fb(this,t?e.bind(t):e,function(){E.a.ga(this.w[n],i)}.bind(this));return this.w[n]||(this.w[n]=[]),this.w[n].push(i),i},notifySubscribers:function(t,e){e=e||"change",this.w[e]&&E.r.K(function(){E.a.o(this.w[e].slice(0),function(e){e&&!0!==e.Cb&&e.ha(t)})},this)},yb:function(){var e,t=0;for(e in this.w)this.w.hasOwnProperty(e)&&(t+=this.w[e].length);return t},extend:function(e){var t=this;if(e)for(var n in e){var i=E.Ma[n];"function"==typeof i&&(t=i(t,e[n]))}return t}},E.Qa=function(e){return"function"==typeof e.ya&&"function"==typeof e.notifySubscribers},E.b("subscribable",E.S),E.b("isSubscribable",E.Qa);var w=[];E.r={mb:function(e){w.push({ha:e,La:[]})},end:function(){w.pop()},Wa:function(e){if(E.Qa(e)||R(Error("Only subscribable things can act as dependencies")),0<w.length){var t=w[w.length-1];t&&!(0<=E.a.i(t.La,e))&&(t.La.push(e),t.ha(e))}},K:function(e,t,n){try{return w.push(j),e.apply(t,n||[])}finally{w.pop()}}};var n={undefined:!0,boolean:!0,number:!0,string:!0};E.m=function(e){function t(){return 0<arguments.length?(t.equalityComparer&&t.equalityComparer(n,arguments[0])||(t.H(),n=arguments[0],t.G()),this):(E.r.Wa(t),n)}var n=e;return E.S.call(t),t.t=function(){return n},t.G=function(){t.notifySubscribers(n)},t.H=function(){t.notifySubscribers(n,"beforeChange")},E.a.extend(t,E.m.fn),E.p(t,"peek",t.t),E.p(t,"valueHasMutated",t.G),E.p(t,"valueWillMutate",t.H),t},E.m.fn={equalityComparer:function(e,t){return(e===j||typeof e in n)&&e===t}};var x=E.m.Kb="__ko_proto__";E.m.fn[x]=E.m,E.ma=function(e,t){return e!==j&&e!==U&&e[x]!==U&&(e[x]===t||E.ma(e[x],t))},E.$=function(e){return E.ma(e,E.m)},E.Ra=function(e){return!!("function"==typeof e&&e[x]===E.m||"function"==typeof e&&e[x]===E.j&&e.zb)},E.b("observable",E.m),E.b("isObservable",E.$),E.b("isWriteableObservable",E.Ra),E.R=function(e){0==arguments.length&&(e=[]),e!==j&&e!==U&&!("length"in e)&&R(Error("The argument passed when initializing an observable array must be an array, or null, or undefined."));var t=E.m(e);return E.a.extend(t,E.R.fn),t},E.R.fn={remove:function(t){for(var e=this.t(),n=[],i="function"==typeof t?t:function(e){return e===t},r=0;r<e.length;r++){var o=e[r];i(o)&&(0===n.length&&this.H(),n.push(o),e.splice(r,1),r--)}return n.length&&this.G(),n},removeAll:function(t){if(t!==U)return t?this.remove(function(e){return 0<=E.a.i(t,e)}):[];var e=this.t(),n=e.slice(0);return this.H(),e.splice(0,e.length),this.G(),n},destroy:function(t){var e=this.t(),n="function"==typeof t?t:function(e){return e===t};this.H();for(var i=e.length-1;0<=i;i--)n(e[i])&&(e[i]._destroy=!0);this.G()},destroyAll:function(t){return t===U?this.destroy(z(!0)):t?this.destroy(function(e){return 0<=E.a.i(t,e)}):[]},indexOf:function(e){var t=this();return E.a.i(t,e)},replace:function(e,t){var n=this.indexOf(e);0<=n&&(this.H(),this.t()[n]=t,this.G())}},E.a.o("pop push reverse shift sort splice unshift".split(" "),function(t){E.R.fn[t]=function(){var e=this.t();return this.H(),e=e[t].apply(e,arguments),this.G(),e}}),E.a.o(["slice"],function(t){E.R.fn[t]=function(){var e=this();return e[t].apply(e,arguments)}}),E.b("observableArray",E.R),E.j=function(e,i,t){function n(){E.a.o(m,function(e){e.B()}),m=[]}function r(){var e=a.throttleEvaluation;
1e&&0<=e?(clearTimeout(v),v=setTimeout(o,e)):o()}function o(){if(!c)if(l&&f())g();else{c=!0;try{var n=E.a.V(m,function(e){return e.target});E.r.mb(function(e){var t;0<=(t=E.a.i(n,e))?n[t]=U:m.push(e.ya(r))});for(var e=d.call(i),t=n.length-1;0<=t;t--)n[t]&&m.splice(t,1)[0].B();l=!0,a.notifySubscribers(u,"beforeChange"),u=e}finally{E.r.end()}a.notifySubscribers(u),c=!1,m.length||g()}}function a(){return 0<arguments.length?("function"==typeof h?h.apply(i,arguments):R(Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.")),this):(l||o(),E.r.Wa(a),u)}function s(){return!l||0<m.length}var u,l=!1,c=!1,d=e;d&&"object"==typeof d?d=(t=d).read:(t=t||{},d||(d=t.read)),"function"!=typeof d&&R(Error("Pass a function that returns the value of the ko.computed"));var h=t.write,p=t.disposeWhenNodeIsRemoved||t.W||j,f=t.disposeWhen||t.Ka||z(!1),g=n,m=[],v=j;if(i||(i=t.owner),a.t=function(){return l||o(),u},a.xb=function(){return m.length},a.zb="function"==typeof t.write,a.B=function(){g()},a.pa=s,E.S.call(a),E.a.extend(a,E.j.fn),E.p(a,"peek",a.t),E.p(a,"dispose",a.B),E.p(a,"isActive",a.pa),E.p(a,"getDependenciesCount",a.xb),!0!==t.deferEvaluation&&o(),p&&s()){g=function(){E.a.F.Xa(p,arguments.callee),n()},E.a.F.Ca(p,g);var y=f;f=function(){return!E.a.X(p)||y()}}return a},E.Bb=function(e){return E.ma(e,E.j)},e=E.m.Kb,E.j[e]=E.m,E.j.fn={},E.j.fn[e]=E.j,E.b("dependentObservable",E.j),E.b("computed",E.j),E.b("isComputed",E.Bb),E.gb=function(e){return 0==arguments.length&&R(Error("When calling ko.toJS, pass the object you want to convert.")),function i(r,o,a){function e(e){var t=o(r[e]);switch(typeof t){case"boolean":case"number":case"string":case"function":s[e]=t;break;case"object":case"undefined":var n=a.get(t);s[e]=n!==U?n:i(t,o,a)}}if(a=a||new v,"object"!=typeof(r=o(r))||r===j||r===U||r instanceof Date)return r;var s=r instanceof Array?[]:{};a.save(r,s);var t=r;if(t instanceof Array){for(var n=0;n<t.length;n++)e(n);"function"==typeof t.toJSON&&e("toJSON")}else for(n in t)e(n);return s}(e,function(e){for(var t=0;E.$(e)&&t<10;t++)e=e();return e})},E.toJSON=function(e,t,n){return e=E.gb(e),E.a.xa(e,t,n)},E.b("toJS",E.gb),E.b("toJSON",E.toJSON),E.k={q:function(e){switch(E.a.u(e)){case"option":return!0===e.__ko__hasDomDataOptionValue__?E.a.f.get(e,E.c.options.sa):E.a.Z<=7?e.getAttributeNode("value").specified?e.value:e.text:e.value;case"select":return 0<=e.selectedIndex?E.k.q(e.options[e.selectedIndex]):U;default:return e.value}},T:function(e,t){switch(E.a.u(e)){case"option":switch(typeof t){case"string":E.a.f.set(e,E.c.options.sa,U),"__ko__hasDomDataOptionValue__"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=t;break;default:E.a.f.set(e,E.c.options.sa,t),e.__ko__hasDomDataOptionValue__=!0,e.value="number"==typeof t?t:""}break;case"select":for(var n=e.options.length-1;0<=n;n--)if(E.k.q(e.options[n])==t){e.selectedIndex=n;break}break;default:t!==j&&t!==U||(t=""),e.value=t}}},E.b("selectExtensions",E.k),E.b("selectExtensions.readValue",E.k.q),E.b("selectExtensions.writeValue",E.k.T);var D=/\@ko_token_(\d+)\@/g,C=["true","false"],S=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i;E.g={Q:[],aa:function(e){if((a=E.a.D(e)).length<3)return[];"{"===a.charAt(0)&&(a=a.substring(1,a.length-1)),e=[];for(var t,n=j,i=0;i<a.length;i++){var r=a.charAt(i);if(n===j)switch(r){case'"':case"'":case"/":n=i,t=r}else if(r==t&&"\\"!==a.charAt(i-1)){r=a.substring(n,i+1),e.push(r);var o="@ko_token_"+(e.length-1)+"@",a=a.substring(0,n)+o+a.substring(i+1);i=i-(r.length-o.length),n=j}}t=n=j;var s=0,u=j;for(i=0;i<a.length;i++){if(r=a.charAt(i),n===j)switch(r){case"{":n=i,u=r,t="}";break;case"(":n=i,u=r,t=")";break;case"[":n=i,u=r,t="]"}r===u?s++:r===t&&(0===--s&&(r=a.substring(n,i+1),e.push(r),o="@ko_token_"+(e.length-1)+"@",a=a.substring(0,n)+o+a.substring(i+1),i-=r.length-o.length,n=j))}for(t=[],n=0,i=(a=a.split(",")).length;n<i;n++)0<(u=(s=a[n]).indexOf(":"))&&u<s.length-1?(r=s.substring(u+1),t.push({key:m(s.substring(0,u),e),value:m(r,e)})):t.push({unknown:m(s,e)});return t},ba:function(e){var t="string"==typeof e?E.g.aa(e):e,n=[];e=[];for(var i,r=0;i=t[r];r++)if(0<n.length&&n.push(","),i.key){var o;e:{o=i.key;var a=E.a.D(o);switch(a.length&&a.charAt(0)){case"'":case'"':break e;default:o="'"+a+"'"}}
1i=i.value,n.push(o),n.push(":"),n.push(i),i=E.a.D(i),(i=!(0<=E.a.i(C,E.a.D(i).toLowerCase()))&&((a=i.match(S))!==j&&(a[1]?"Object("+a[1]+")"+a[2]:i)))&&(0<e.length&&e.push(", "),e.push(o+" : function(__ko_value) { "+i+" = __ko_value; }"))}else i.unknown&&n.push(i.unknown);return t=n.join(""),0<e.length&&(t=t+", '_ko_property_writers' : { "+e.join("")+" } "),t},Eb:function(e,t){for(var n=0;n<e.length;n++)if(E.a.D(e[n].key)==t)return!0;return!1},ea:function(e,t,n,i,r){e&&E.Ra(e)?(!r||e.t()!==i)&&e(i):(e=t()._ko_property_writers)&&e[n]&&e[n](i)}},E.b("expressionRewriting",E.g),E.b("expressionRewriting.bindingRewriteValidators",E.g.Q),E.b("expressionRewriting.parseObjectLiteral",E.g.aa),E.b("expressionRewriting.preProcessBindings",E.g.ba),E.b("jsonExpressionRewriting",E.g),E.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",E.g.ba);var T="\x3c!--test--\x3e"===$.createComment("test").text,F=T?/^\x3c!--\s*ko(?:\s+(.+\s*\:[\s\S]*))?\s*--\x3e$/:/^\s*ko(?:\s+(.+\s*\:[\s\S]*))?\s*$/,I=T?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,P={ul:!0,ol:!0};E.e={I:{},childNodes:function(e){return g(e)?p(e):e.childNodes},Y:function(e){if(g(e))for(var t=0,n=(e=E.e.childNodes(e)).length;t<n;t++)E.removeNode(e[t]);else E.a.ka(e)},N:function(e,t){if(g(e)){E.e.Y(e);for(var n=e.nextSibling,i=0,r=t.length;i<r;i++)n.parentNode.insertBefore(t[i],n)}else E.a.N(e,t)},Va:function(e,t){g(e)?e.parentNode.insertBefore(t,e.nextSibling):e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},Pa:function(e,t,n){n?g(e)?e.parentNode.insertBefore(t,n.nextSibling):n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):E.e.Va(e,t)},firstChild:function(e){return g(e)?!e.nextSibling||f(e.nextSibling)?j:e.nextSibling:e.firstChild},nextSibling:function(e){return g(e)&&(e=h(e)),e.nextSibling&&f(e.nextSibling)?j:e.nextSibling},jb:function(e){return(e=g(e))?e[1]:j},Ta:function(e){if(P[E.a.u(e)]){var t=e.firstChild;if(t)do{if(1===t.nodeType){var n;n=t.firstChild;var i=j;if(n)do{if(i)i.push(n);else if(g(n)){var r=h(n,!0);r?n=r:i=[n]}else f(n)&&(i=[n])}while(n=n.nextSibling);if(n=i)for(i=t.nextSibling,r=0;r<n.length;r++)i?e.insertBefore(n[r],i):e.appendChild(n[r])}}while(t=t.nextSibling)}}},E.b("virtualElements",E.e),E.b("virtualElements.allowedBindings",E.e.I),E.b("virtualElements.emptyNode",E.e.Y),E.b("virtualElements.insertAfter",E.e.Pa),E.b("virtualElements.prepend",E.e.Va),E.b("virtualElements.setDomNodeChildren",E.e.N),E.J=function(){this.Ha={}},E.a.extend(E.J.prototype,{nodeHasBindings:function(e){switch(e.nodeType){case 1:return e.getAttribute("data-bind")!=j;case 8:return E.e.jb(e)!=j;default:return!1}},getBindings:function(e,t){var n=this.getBindingsString(e,t);return n?this.parseBindingsString(n,t,e):j},getBindingsString:function(e){switch(e.nodeType){case 1:return e.getAttribute("data-bind");case 8:return E.e.jb(e);default:return j}},parseBindingsString:function(t,e,n){try{var i;if(!(i=this.Ha[t])){var r,o=this.Ha,a="with($context){with($data||{}){return{"+E.g.ba(t)+"}}}";r=new Function("$context","$element",a),i=o[t]=r}return i(e,n)}catch(e){R(Error("Unable to parse bindings.\nMessage: "+e+";\nBindings value: "+t))}}}),E.J.instance=new E.J,E.b("bindingProvider",E.J),E.c={},E.z=function(e,t,n){t?(E.a.extend(this,t),this.$parentContext=t,this.$parent=t.$data,this.$parents=(t.$parents||[]).slice(0),this.$parents.unshift(this.$parent)):(this.$parents=[],this.$root=e,this.ko=E),this.$data=e,n&&(this[n]=e)},E.z.prototype.createChildContext=function(e,t){return new E.z(e,this,t)},E.z.prototype.extend=function(e){var t=E.a.extend(new E.z,this);return E.a.extend(t,e)},E.eb=function(e,t){if(2!=arguments.length)return E.a.f.get(e,"__ko_bindingContext__");E.a.f.set(e,"__ko_bindingContext__",t)},E.Fa=function(e,t,n){return 1===e.nodeType&&E.e.Ta(e),o(e,t,n,!0)},E.Ea=function(e,t){(1===t.nodeType||8===t.nodeType)&&s(e,t,!0)},E.Da=function(e,t){t&&1!==t.nodeType&&8!==t.nodeType&&R(Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node")),a(e,t=t||H.document.body,!0)},E.ja=function(e){switch(e.nodeType){case 1:case 8:var t=E.eb(e);if(t)return t;if(e.parentNode)return E.ja(e.parentNode)}return U},E.pb=function(e){return(e=E.ja(e))?e.$data:U},E.b("bindingHandlers",E.c),E.b("applyBindings",E.Da),E.b("applyBindingsToDescendants",E.Ea),E.b("applyBindingsToNode",E.Fa),E.b("contextFor",E.ja),E.b("dataFor",E.pb);var M={class:"className",for:"htmlFor"};E.c.attr={update:function(e,t){var n,i=E.a.d(t())||{};for(n in i)if("string"==typeof n){var r=E.a.d(i[n]),o=!1===r||r===j||r===U;o&&e.removeAttribute(n),E.a.Z<=8&&n in M?(n=M[n],o?e.removeAttribute(n):e[n]=r):o||e.setAttribute(n,r.toString()),"name"===n&&E.a.ab(e,o?"":r.toString())}}},E.c.checked={init:function(i,r,o){E.a.n(i,"click",function(){var e;if("checkbox"==i.type)e=i.checked;else{if("radio"!=i.type||!i.checked)return;e=i.value}var t=r(),n=E.a.d(t);"checkbox"==i.type&&n instanceof Array?(e=E.a.i(n,i.value),i.checked&&e<0?t.push(i.value):!i.checked&&0<=e&&t.splice(e,1)):E.g.ea(t,o,"checked",e,!0)}),"radio"==i.type&&!i.name&&E.c.uniqueName.init(i,z(!0))},update:function(e,t){var n=E.a.d(t());"checkbox"==e.type?e.checked=n instanceof Array?0<=E.a.i(n,e.value):n:"radio"==e.type&&(e.checked=e.value==n)}},E.c.css={update:function(e,t){var n=E.a.d(t());if("object"==typeof n)for(var i in n){var r=E.a.d(n[i]);E.a.da(e,i,r)}else n=String(n||""),E.a.da(e,e.__ko__cssValue,!1),e.__ko__cssValue=n,E.a.da(e,n,!0)}},E.c.enable={update:function(e,t){var n=E.a.d(t());n&&e.disabled?e.removeAttribute("disabled"):!n&&!e.disabled&&(e.disabled=!0)}},E.c.disable={update:function(e,t){E.c.enable.update(e,function(){return!E.a.d(t())})}},E.c.event={init:function(e,a,s,u){var t,n=a()||{};for(t in n)!function(){var o=t;"string"==typeof o&&E.a.n(e,o,function(e){var t,n=a()[o];if(n){var i=s();try{var r=E.a.L(arguments);r.unshift(u),t=n.apply(u,r)}finally{!0!==t&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===i[o+"Bubble"]&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}})}()}},E.c.foreach={Sa:function(n){return function(){var e=n(),t=E.a.ua(e);return t&&"number"!=typeof t.length?(E.a.d(e),{foreach:t.data,as:t.as,includeDestroyed:t.includeDestroyed,afterAdd:t.afterAdd,beforeRemove:t.beforeRemove,afterRe
1nder:t.afterRender,beforeMove:t.beforeMove,afterMove:t.afterMove,templateEngine:E.C.oa}):{foreach:e,templateEngine:E.C.oa}}},init:function(e,t){return E.c.template.init(e,E.c.foreach.Sa(t))},update:function(e,t,n,i,r){return E.c.template.update(e,E.c.foreach.Sa(t),n,i,r)}},E.g.Q.foreach=!1,E.e.I.foreach=!0,E.c.hasfocus={init:function(n,i,r){function e(e){n.__ko_hasfocusUpdating=!0;var t=n.ownerDocument;"activeElement"in t&&(e=t.activeElement===n),t=i(),E.g.ea(t,r,"hasfocus",e,!0),n.__ko_hasfocusUpdating=!1}var t=e.bind(j,!0),o=e.bind(j,!1);E.a.n(n,"focus",t),E.a.n(n,"focusin",t),E.a.n(n,"blur",o),E.a.n(n,"focusout",o)},update:function(e,t){var n=E.a.d(t());e.__ko_hasfocusUpdating||(n?e.focus():e.blur(),E.r.K(E.a.Ba,j,[e,n?"focusin":"focusout"]))}},E.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){E.a.ca(e,t())}};var A="__ko_withIfBindingData";t("if"),t("ifnot",!1,!0),t("with",!0,!1,function(e,t){return e.createChildContext(t)}),E.c.options={update:function(e,t,n){"select"!==E.a.u(e)&&R(Error("options binding applies only to SELECT elements"));for(var i=0==e.length,r=E.a.V(E.a.fa(e.childNodes,function(e){return e.tagName&&"option"===E.a.u(e)&&e.selected}),function(e){return E.k.q(e)||e.innerText||e.textContent}),o=e.scrollTop,a=E.a.d(t());0<e.length;)E.A(e.options[0]),e.remove(0);if(a){var s=(n=n()).optionsIncludeDestroyed;if("number"!=typeof a.length&&(a=[a]),n.optionsCaption){var u=$.createElement("option");E.a.ca(u,n.optionsCaption),E.k.T(u,U),e.appendChild(u)}t=0;for(var l=a.length;t<l;t++){var c=a[t];if(!c||!c._destroy||s){u=$.createElement("option");var d=function(e,t,n){var i=typeof t;return"function"==i?t(e):"string"==i?e[t]:n},h=d(c,n.optionsValue,c);E.k.T(u,E.a.d(h)),c=d(c,n.optionsText,h),E.a.cb(u,c),e.appendChild(u)}}for(t=s=0,l=(a=e.getElementsByTagName("option")).length;t<l;t++)0<=E.a.i(r,E.k.q(a[t]))&&(E.a.bb(a[t],!0),s++);e.scrollTop=o,i&&"value"in n&&y(e,E.a.ua(n.value),!0),E.a.ub(e)}}},E.c.options.sa="__ko.optionValueDomData__",E.c.selectedOptions={init:function(n,i,r){E.a.n(n,"change",function(){var e=i(),t=[];E.a.o(n.getElementsByTagName("option"),function(e){e.selected&&t.push(E.k.q(e))}),E.g.ea(e,r,"value",t)})},update:function(e,t){"select"!=E.a.u(e)&&R(Error("values binding applies only to SELECT elements"));var n=E.a.d(t());n&&"number"==typeof n.length&&E.a.o(e.getElementsByTagName("option"),function(e){var t=0<=E.a.i(n,E.k.q(e));E.a.bb(e,t)})}},E.c.style={update:function(e,t){var n,i=E.a.d(t()||{});for(n in i)if("string"==typeof n){var r=E.a.d(i[n]);e.style[n]=r||""}}},E.c.submit={init:function(i,r,e,o){"function"!=typeof r()&&R(Error("The value for a submit binding must be a function")),E.a.n(i,"submit",function(e){var t,n=r();try{t=n.call(o,i)}finally{!0!==t&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}})}},E.c.text={update:function(e,t){E.a.cb(e,t())}},E.e.I.text=!0,E.c.uniqueName={init:function(e,t){if(t()){var n="ko_unique_"+ ++E.c.uniqueName.ob;E.a.ab(e,n)}}},E.c.uniqueName.ob=0,E.c.value={init:function(n,i,r){function o(){a=!1;var e=i(),t=E.k.q(n);E.g.ea(e,r,"value",t)}var e=["change"],t=r().valueUpdate,a=!1;t&&("string"==typeof t&&(t=[t]),E.a.P(e,t),e=E.a.Ga(e)),!E.a.Z||"input"!=n.tagName.toLowerCase()||"text"!=n.type||"off"==n.autocomplete||n.form&&"off"==n.form.autocomplete||-1!=E.a.i(e,"propertychange")||(E.a.n(n,"propertychange",function(){a=!0}),E.a.n(n,"blur",function(){a&&o()})),E.a.o(e,function(e){var t=o;E.a.Ob(e,"after")&&(t=function(){setTimeout(o,0)},e=e.substring(5)),E.a.n(n,e,t)})},update:function(e,t){var n="select"===E.a.u(e),i=E.a.d(t()),r=E.k.q(e),o=i!=r;0===i&&0!==r&&"0"!==r&&(o=!0),o&&((r=function(){E.k.T(e,i)})(),n&&setTimeout(r,0)),n&&0<e.length&&y(e,i,!1)}},E.c.visible={update:function(e,t){var n=E.a.d(t()),i="none"!=e.style.display;n&&!i?e.style.display="":!n&&i&&(e.style.display="none")}},E.c.click={init:function(e,t,n,i){return E.c.event.init.call(this,e,function(){var e={};return e.click=t(),e},n,i)}},E.v=function(){},E.v.prototype.renderTemplateSource=function(){R(Error("Override renderTemplateSource"))},E.v.prototype.createJavaScriptEvaluatorBlock=function(){R(Error("Override createJavaScriptEvaluatorBlock"))},E.v.prototype.makeTemplateSource=function(e,t){if("string"==typeof e){var n=(t=t||$).getElementById(e);return n||R(Error("Cannot find template with ID "+e)),new E.l.h(n)}if(1==e.nodeType||8==e.nodeType)return new E.l.O(e);R(Error("Unknown template type: "+e))},E.v.prototype.renderTemplate=function(e,t,n,i){return e=this.makeTemplateSource(e,i),this.renderTemplateSource(e,t,n)},E.v.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,t).data("isRewritten")},E.v.prototype.rewriteTemplate=function(e,t,n){t=t((e=this.makeTemplateSource(e,n)).text()),e.text(t),e.data("isRewritten",!0)},E.b("templateEngine",E.v);var N,O=/(<[a-z]+\d*(\s+(?!data-bind=)[a-z0-9\-]+(=(\"[^\"]*\"|\'[^\']*\'))?)*\s+)data-bind=(["'])([\
1s\S]*?)\5/gi,L=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;E.za={vb:function(e,t,n){t.isTemplateRewritten(e,n)||t.rewriteTemplate(e,function(e){return E.za.Gb(e,t)},n)},Gb:function(e,s){return e.replace(O,function(e,t,n,i,r,o,a){return d(a,t,s)}).replace(L,function(e,t){return d(t,"\x3c!-- ko --\x3e",s)})},kb:function(n){return E.s.ra(function(e,t){e.nextSibling&&E.Fa(e.nextSibling,n,t)})}},E.b("__tr_ambtns",E.za.kb),E.l={},E.l.h=function(e){this.h=e},E.l.h.prototype.text=function(){var e="script"===(e=E.a.u(this.h))?"text":"textarea"===e?"value":"innerHTML";if(0==arguments.length)return this.h[e];var t=arguments[0];"innerHTML"===e?E.a.ca(this.h,t):this.h[e]=t},E.l.h.prototype.data=function(e){if(1===arguments.length)return E.a.f.get(this.h,"templateSourceData_"+e);E.a.f.set(this.h,"templateSourceData_"+e,arguments[1])},E.l.O=function(e){this.h=e},E.l.O.prototype=new E.l.h,E.l.O.prototype.text=function(){if(0==arguments.length){var e=E.a.f.get(this.h,"__ko_anon_template__")||{};return e.Aa===U&&e.ia&&(e.Aa=e.ia.innerHTML),e.Aa}E.a.f.set(this.h,"__ko_anon_template__",{Aa:arguments[0]})},E.l.h.prototype.nodes=function(){if(0==arguments.length)return(E.a.f.get(this.h,"__ko_anon_template__")||{}).ia;E.a.f.set(this.h,"__ko_anon_template__",{ia:arguments[0]})},E.b("templateSources",E.l),E.b("templateSources.domElement",E.l.h),E.b("templateSources.anonymousTemplate",E.l.O),E.wa=function(e){e!=U&&!(e instanceof E.v)&&R(Error("templateEngine must inherit from ko.templateEngine")),N=e},E.va=function(n,i,r,o,a){if(((r=r||{}).templateEngine||N)==U&&R(Error("Set a template engine before calling renderTemplate")),a=a||"replaceChildren",o){var s=u(o);return E.j(function(){var e=i&&i instanceof E.z?i:new E.z(E.a.d(i)),t="function"==typeof n?n(e.$data,e):n;e=l(o,a,t,e,r);"replaceNode"==a&&(s=u(o=e))},j,{Ka:function(){return!s||!E.a.X(s)},W:s&&"replaceNode"==a?s.parentNode:s})}return E.s.ra(function(e){E.va(n,i,r,e,"replaceNode")})},E.Mb=function(i,t,r,n,o){function a(e,t){c(t,u),r.afterRender&&r.afterRender(t,e)}function s(e,t){(u=o.createChildContext(E.a.d(e),r.as)).$index=t;var n="function"==typeof i?i(e,u):i;return l(j,"ignoreTargetNode",n,u,r)}var u;return E.j(function(){var e=E.a.d(t)||[];void 0===e.length&&(e=[e]),e=E.a.fa(e,function(e){return r.includeDestroyed||e===U||e===j||!E.a.d(e._destroy)}),E.r.K(E.a.$a,j,[n,e,s,r,a])},j,{W:n})},E.c.template={init:function(e,t){var n=E.a.d(t());return"string"==typeof n||n.name||1!=e.nodeType&&8!=e.nodeType||(n=1==e.nodeType?e.childNodes:E.e.childNodes(e),n=E.a.Hb(n),new E.l.O(e).nodes(n)),{controlsDescendantBindings:!0}},update:function(e,t,n,i,r){t=E.a.d(t()),n={},i=!0;var o,a=j;"string"!=typeof t&&(t=(n=t).name,"if"in n&&(i=E.a.d(n.if)),i&&"ifnot"in n&&(i=!E.a.d(n.ifnot)),o=E.a.d(n.data)),"foreach"in n?a=E.Mb(t||e,i&&n.foreach||[],n,e,r):i?(r="data"in n?r.createChildContext(o,n.as):r,a=E.va(t||e,r,n,e)):E.e.Y(e),r=a,(o=E.a.f.get(e,"__ko__templateComputedDomDataKey__"))&&"function"==typeof o.B&&o.B(),E.a.f.set(e,"__ko__templateComputedDomDataKey__",r&&r.pa()?r:U)}},E.g.Q.template=function(e){return 1==(e=E.g.aa(e)).length&&e[0].unknown||E.g.Eb(e,"name")?j:"This template engine does not support anonymous templates nested within its templates"},E.e.I.template=!0,E.b("setTemplateEngine",E.wa),E.b("renderTemplate",E.va),E.a.Ja=function(e,t,n){return t=t||[],(e=e||[]).length<=t.length?i(e,t,"added","deleted",n):i(t,e,"deleted","added",n)},E.b("utils.compareArrays",E.a.Ja),E.a.$a=function(e,t,n,i,r){function o(e,t){m=u[t],p!==t&&(b[e]=m),m.na(p++),k(m.M),d.push(m),g.push(m)}function a(t,n){if(t)for(var i=0,e=n.length;i<e;i++)n[i]&&E.a.o(n[i].M,function(e){t(e,i,n[i].U)})}t=t||[],i=i||{};var s=E.a.f.get(e,"setDomNodeChildrenFromArrayMapping_lastMappingResult")===U,u=E.a.f.get(e,"setDomNodeChildrenFromArrayMapping_lastMappingResult")||[],l=E.a.V(u,function(e){return e.U}),c=E.a.Ja(l,t),d=[],h=0,p=0,f=[],g=[];t=[];for(var m,v,y,b=[],w=(l=[],0);v=c[w];w++)switch(y=v.moved,v.status){case"deleted":y===U&&((m=u[h]).j&&m.j.B(),f.push.apply(f,k(m.M)),i.beforeRemove&&(t[w]=m,g.push(m))),h++;break;case"retained":o(w,h++);break;case"added":y!==U?o(w,y):(m={U:v.value,na:E.m(p++)},d.push(m),g.push(m),s||(l[w]=m))}a(i.beforeMove,b),E.a.o(f,i.beforeRemove?E.A:E.removeNode);var x;for(w=0,s=E.e.firstChild(e);m=g[w];w++){for(m.M||E.a.extend(m,_(e,n,m.U,r,m.na)),h=0;c=m.M[h];s=c.nextSibling,x=c,h++)c!==s&&E.e.Pa(e,c,x);!m.Ab&&r&&(r(m.U,m.M,m.na),m.Ab=!0)}a(i.beforeRemove,t),a(i.afterMove,b),a(i.afterAdd,l),E.a.f.set(e,"setDomNodeChildrenFromArrayMapping_lastMappingResult",d)},E.b("utils.setDomNodeChildrenFromArrayMapping",E.a.$a),E.C=function(){this.allowTemplateRewriting=!1},E.C.prototype=new E.v,E.C.prototype.renderTemplateSource=function(e){var t=E.a.Z<9||!e.nodes?j:e.nodes();return t?E.a.L(t.cloneNode(!0).childNodes):(e=e.text(),E.a.ta(e))},E.C.oa=new E.C,E.wa(E.C.oa),E.b("nativeTemplateEngine",E.C),E.qa=function(){var r=this.Db=function(){if(void 0===q||!q.tmpl)return 0;try{if(0<=q.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(e,t,n){n=n||{},r<2&&R(Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later."));var i=e.data("precompiled");
1return i||(i=e.text()||"",i=q.template(j,"{{ko_with $item.koBindingContext}}"+i+"{{/ko_with}}"),e.data("precompiled",i)),e=[t.$data],t=q.extend({koBindingContext:t},n.templateOptions),(t=q.tmpl(i,e,t)).appendTo($.createElement("div")),q.fragments={},t},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,t){$.write("<script type='text/html' id='"+e+"'>"+t+"<\/script>")},0<r&&(q.tmpl.tag.ko_code={open:"__.push($1 || '');"},q.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},E.qa.prototype=new E.v,0<(e=new E.qa).Db&&E.wa(e),E.b("jqueryTmplTemplateEngine",E.qa)}"function"==typeof require&&"object"==typeof exports&&"object"==typeof module?e(module.exports||exports):"function"==typeof define&&define.amd?define(["exports"],e):e(H.ko={})}(),function(){function k(e,t){0<=navigator.userAgent.indexOf("MSIE 6")?e.setAttribute("selected",t):e.selected=t}ko.bindingHandlers.groupedOptions={update:function(e,t,n){if("SELECT"!=e.tagName)throw new Error("groupedOptions binding applies only to SELECT elements");for(var i=[],r=0;r<e.childNodes.length;r++){var o=e.childNodes[r];if("OPTGROUP"==o.tagName){if(null!=o.childNodes)for(var a=0;a<o.childNodes.length;a++){var s=o.childNodes[a];s.tagName&&s.tagName&&"OPTION"==s.tagName&&s.selected&&i.push(ko.selectExtensions.readValue(s))}}else o.tagName&&"OPTION"==o.tagName&&o.selected&&i.push(ko.selectExtensions.readValue(o))}var u=e.scrollTop,l=ko.utils.unwrapObservable(t());if(e.innerHTML="",l){var c=n();if("number"!=typeof l.length&&(l=[l]),c.optionsCaption)(y=document.createElement("OPTION")).innerHTML=c.optionsCaption,ko.selectExtensions.writeValue(y,void 0),e.appendChild(y);c.optionsGroupNames;for(var d=[],h=c.optionsGroup,p=(r=0,l.length);r<p;r++){var f=null;void 0===d[f="function"==typeof h?h(l[r]):"string"==typeof h?l[r][h]:""]&&(d[f]=[]),d[f].push(l[r])}for(var g in d){var m=null;""!=g&&((m=document.createElement("OPTGROUP")).label=g,e.appendChild(m));for(r=0,p=d[g].length;r<p;r++){var v=d[g],y=document.createElement("OPTION"),b="string"==typeof c.optionsValue?v[r][c.optionsValue]:v[g][r],w=c.optionsText;optionText="function"==typeof w?w(v[r]):"string"==typeof w?v[r][w]:b,b=ko.utils.unwrapObservable(b),optionText=ko.utils.unwrapObservable(optionText),ko.selectExtensions.writeValue(y,b),y.innerHTML=optionText.toString(),null!=m?m.appendChild(y):e.appendChild(y)}}var x=e.getElementsByTagName("OPTION");for(r=0,p=x.length;r<p;r++)0<=ko.utils.arrayIndexOf(i,ko.selectExtensions.readValue(x[r]))&&(k(x[r],!0),0);u&&(e.scrollTop=u)}}},ko.bindingHandlers.selectedOptions={getSelectedValuesFromSelectNode:function(e){for(var t=[],n=e.childNodes,i=0,r=n.length;i<r;i++){var o=n[i];if("OPTGROUP"==o.tagName&&null!=o.childNodes)for(var a=this.getSelectedValuesFromSelectNode(o),s=0;s<a.length;s++)t.push(a[s]);else"OPTION"==o.tagName&&o.selected&&t.push(ko.selectExtensions.readValue(o))}return t},setSelectedValuesFromSelectNode:function(e,t){for(var n=e.childNodes,i=0;i<n.length;i++){var r=n[i];if("OPTION"==r.tagName)k(r,0<=ko.utils.arrayIndexOf(t,ko.selectExtensions.readValue(r)));else if("OPTGROUP"==r.tagName)for(var o=0;o<r.childNodes.length;o++){var a=r.childNodes[o];a.tagName&&"OPTION"==a.tagName&&k(a,0<=ko.utils.arrayIndexOf(t,ko.selectExtensions.readValue(a)))}}},init:function(e,n,i){ko.utils.registerEventHandler(e,"change",function(){var e=n();if(ko.isWriteableObservable(e))e(ko.bindingHandlers.selectedOptions.getSelectedValuesFromSelectNode(this));else{var t=i();t._ko_property_writers&&t._ko_property_writers.value&&t._ko_property_writers.value(ko.bindingHandlers.selectedOptions.getSelectedValuesFromSelectNode(this))}})},update:function(e,t){if("SELECT"!=e.tagName)throw new Error("values binding applies only to SELECT elements");var n=ko.utils.unwrapObservable(t());n&&"number"==typeof n.length&&ko.bindingHandlers.selectedOptions.setSelectedValuesFromSelectNode(e,n)}},ko.bindingHandlers.draggable={update:function(e,t,n,i){var r=t();r.start&&(r.start=_.bind(r.start,i)),r.drag&&(r.drag=_.bind(r.drag,i)),r.stop&&(r.stop=_.bind(r.stop,i)),$(e).draggable(r).data("dragdata",r.dragdata)}},ko.bindingHandlers.droppable={update:function(e,t,n,i){var r=t();
1if(r.drop){var o=r.drop;r.drop=function(e,t){var n=t.draggable.data("dragdata");_.bind.apply(_,[o,i].concat(n||[]))()}}$(e).droppable(r)}},ko.bindingHandlers.rotate={update:function(e,t){if(!Modernizr.csstransforms3d)return!1;var n=ko.utils.unwrapObservable(t());$(e).css("-webkit-transform","rotateZ("+n+"deg)").css("-moz-transform","rotateZ("+n+"deg)").css("-ms-transform","rotateZ("+n+"deg)").css("-o-transform","rotateZ("+n+"deg)").css("transform","rotateZ("+n+"deg)")}},ko.bindingHandlers.selectedText={init:function(e,t){var n=t();$(e).change(function(){var e=$("option:selected",this),t=e.text();e.val()||(t=null),n(t)})},update:function(e,t){var n=ko.utils.unwrapObservable(t());$("option",e).filter(function(e){return $(e).text()===n}).prop("selected","selected")}},ko.bindingHandlers.dateString={update:function(e,t,n,i){var r=t(),o=n(),a=ko.utils.unwrapObservable(r),s=o.datePattern||"dd MM yy",u=(o.dateLocale,$.datepicker.formatDate(s,a));$(e).is(":input")?$(e).val(u):$(e).text(u)}},ko.bindingHandlers.openSecondaryPicture={init:function(t,e,n,i){var r=ko.utils.unwrapObservable(e());ko.bindingHandlers.click.init(t,function(){return function(){if(!i.openSecondaryPicture)return!0;if(!r.force&&1<$.findByRole("figures-container").closest(".chapter").height())return!0;var e={title:$(t).data("title"),micrioId:$(t).data("micrio-id"),offset:$(t).data("offset"),caption:$(t).data("caption")};i.openSecondaryPicture(e)}},n,i)}},ko.bindingHandlers.setActivePicture={init:function(t,e,n,i){ko.bindingHandlers.click.init(t,function(){return function(){var e=$
1(t).data("micrio-id");i.setActivePicture(e),window.innerWidth<=800&&(location.hash="#"+e)}},n,i)}},ko.bindingHandlers.setMicrioElement={update:function(e,t,n,i,r){i.setMicrioElement(e)}},ko.bindingHandlers.openFootnote={init:function(i,r,e,o){ko.bindingHandlers.click.init(i,function(){return function(){if(!o.openFootnote)return!0;if(1<$.findByRole("footnotes-container").closest(".chapter").height())return!0;var e=ko.utils.unwrapObservable(r()),t=$(i),n={top:t.offset().top,left:t.offset().left};o.openFootnote(e,n)}},e,o)}},ko.bindingHandlers.stopBinding={init:function(){return{controlsDescendantBindings:!0}}},ko.virtualElements.allowedBindings.stopBinding=!0}(),function(s,e){var t,n,i=0,r=/^ui-id-\d+$/;(s.ui=s.ui||{},s.ui.version)||(s.extend(s.ui,{version:"1.9.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}}),s.fn.extend({_focus:s.fn.focus,focus:function(t,n){return"number"==typeof t?this.each(function(){var e=this;setTimeout(function(){s(e).focus(),n&&n.call(e)},t)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;return e=s.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(s.css(this,"position"))&&/(auto|scroll)/.test(s.css(this,"overflow")+s.css(this,"overflow-y")+s.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(s.css(this,"overflow")+s.css(this,"overflow-y")+s.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?s(document):e},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var t,n,i=s(this[0]);i.length&&i[0]!==document;){if(("absolute"===(t=i.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(i.css("zIndex"),10),!isNaN(n)&&0!==n))return n;i=i.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++i)})},removeUniqueId:function(){return this.each(function(){r.test(this.id)&&s(this).removeAttr("id")})}}),s.extend(s.expr[":"],{data:s.expr.createPseudo?s.expr.createPseudo(function(t){return function(e){return!!s.data(e,t)}}):function(e,t,n){return!!s.data(e,n[3])},focusable:function(e){return o(e,!isNaN(s.attr(e,"tabindex")))},tabbable:function(e){var t=s.attr(e,"tabindex"),n=isNaN(t);return(n||0<=t)&&o(e,!n)}}),s(function(){var e=document.body,t=e.appendChild(t=document.createElement("div"));t.offsetHeight,s.extend(t.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),s.support.minHeight=100===t.offsetHeight,s.support.selectstart="onselectstart"in t,e.removeChild(t).style.display="none"}),s("<a>").outerWidth(1).jquery||s.each(["Width","Height"],function(e,n){var r="Width"===n?["Left","Right"]:["Top","Bottom"],i=n.toLowerCase(),o={innerWidth:s.fn.innerWidth,innerHeight:s.fn.innerHeight,outerWidth:s.fn.outerWidth,outerHeight:s.fn.outerHeight};function a(e,t,n,i){return s.each(r,function(){t-=parseFloat(s.css(e,"padding"+this))||0,n&&(t-=parseFloat(s.css(e,"border"+this+"Width"))||0),i&&(t-=parseFloat(s.css(e,"margin"+this))||0)}),t}s.fn["inner"+n]=function(e){return void 0===e?o["inner"+n].call(this):this.each(function(){s(this).css(i,a(this,e)+"px")})},s.fn["outer"+n]=function(e,t){return"number"!=typeof e?o["outer"+n].call(this,e):this.each(function(){s(this).css(i,a(this,e,!0,t)+"px")})}}),s("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(s.fn.removeData=(t=s.fn.removeData,function(e){return arguments.length?t.call(this,s.camelCase(e)):t.call(this)})),n=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[],s.ui.ie=!!n.length,s.ui.ie6=6===parseFloat(n[1],10),s.fn.extend({disableSelection:function(){return this.bind((s.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),s.extend(s.ui,{plugin:{add:function(e,t,n){var i,r=s.ui[e].prototype;for(i in n)r.plugins[i]=r.plugins[i]||[],r.plugins[i].push([t,n[i]])},call:function(e,t,n){var i,r=e.plugins[t];if(r&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(i=0;i<r.length;i++)e.options[r[i][0]]&&r[i][1].apply(e.element,n)}},contains:s.contains,hasScroll:function(e,t){if("hidden"===s(e).css("overflow"))return!1;var n,i=t&&"left"===t?"scrollLeft":"scrollTop";return 0<e[i]||(e[i]=1,n=0<e[i],e[i]=0,n)},isOverAxis:function(e,t,n){return t<e&&e<t+n},isOver:function(e,t,n,i,r,o){return s.ui.isOverAxis(e,n,r)&&s.ui.isOverAxis(t,i,o)}}));function o(e,t){var n,i,r,o=e.nodeName.toLowerCase();return"area"===o?(i=(n=e.parentNode).name,!(!e.href||!i||"map"!==n.nodeName.toLowerCase())&&(!!(r=s("img[usemap=#"+i+"]")[0])&&a(r))):(/input|select|textarea|button|object/.test(o)?!e.disabled:"a"===o&&e.href||t)&&a(e)}function a(e){return s.expr.filters.visible(e)&&!s(e).parents().andSelf().filter(function(){return"hidden"===s.css(this,"visibility")}).length}}(jQuery),function(c,s){var n=0,u=Array.prototype.slice,i=c.cleanData;c.cleanData=function(e){for(var t,n=0;null!=(t=e[n]);n++)try{c(t).triggerHandler("remove")}catch(e){}i(e)},c.widget=function(e,n,a){var t,i,r,o,s=e.split(".")[0];e=e.split(".")[1],t=s+"-"+e,a||(a=n,n=c.Widget),c.expr[":"][t.toLowerCase()]=function(e){return!!c.data(e,t)},c[s]=c[s]||{},i=c[s][e],r=c[s][e]=function(e,t){if(!this._createWidget)return new r(e,t);arguments.length&&this._createWidget(e,t)},c.extend(r,i,{version:a.version,_proto:c.extend({},a),_childConstructors:[]}),(o=new n).options=c.widget.extend({},o.options),c.each(a,function(t,i){var r,o;c.isFunction(i)&&(a[t]=(r=function(){return n.prototype[t].apply(this,arguments)},o=function(e){return n.prototype[t].apply(this,e)},function(){var e,t=this._super,n=this._superApply;return this._super=r,this._superApply=o,e=i.apply(this,arguments),this._super=t,this._superApply=n,e}))}),r.prototype=c.widget.extend(o,{widgetEventPrefix:i?o.widgetEventPrefix:e},a,{constructor:r,namespace:s,widgetName:e,widgetBaseClass:t,widgetFullName:t}),i?(c.each(i._childConstructors,function(e,t){var n=t.prototype;c.widget(n.namespace+"."+n.widgetName,r,t._proto)}),delete i._childConstructors):n._childConstructors.push(r),c.widget.bridge(e,r)}
vendor: 8,118 bytes, line 1
1,c.widget.extend=function(e){for(var t,n,i=u.call(arguments,1),r=0,o=i.length;r<o;r++)for(t in i[r])n=i[r][t],i[r].hasOwnProperty(t)&&n!==s&&(c.isPlainObject(n)?e[t]=c.isPlainObject(e[t])?c.widget.extend({},e[t],n):c.widget.extend({},n):e[t]=n);return e},c.widget.bridge=function(o,t){var a=t.prototype.widgetFullName||o;c.fn[o]=function(n){var e="string"==typeof n,i=u.call(arguments,1),r=this;return n=!e&&i.length?c.widget.extend.apply(null,[n].concat(i)):n,e?this.each(function(){var e,t=c.data(this,a);return t?c.isFunction(t[n])&&"_"!==n.charAt(0)?(e=t[n].apply(t,i))!==t&&e!==s?(r=e&&e.jquery?r.pushStack(e.get()):e,!1):void 0:c.error("no such method '"+n+"' for "+o+" widget instance"):c.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+n+"'")}):this.each(function(){var e=c.data(this,a);e?e.option(n||{})._init():c.data(this,a,new t(n,this))}),r}},c.Widget=function(){},c.Widget._childConstructors=[],c.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,t){t=c(t||this.defaultElement||this)[0],this.element=c(t),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=c.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=c(),this.hoverable=c(),this.focusable=c(),t!==this&&(c.data(t,this.widgetName,this),c.data(t,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===t&&this.destroy()}}),this.document=c(t.style?t.ownerDocument:t.document||t),this.window=c(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:c.noop,_getCreateEventData:c.noop,_create:c.noop,_init:c.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(c.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:c.noop,widget:function(){return this.element},option:function(e,t){var n,i,r,o=e;if(0===arguments.length)return c.widget.extend({},this.options);if("string"==typeof e)if(o={},e=(n=e.split(".")).shift(),n.length){for(i=o[e]=c.widget.extend({},this.options[e]),r=0;r<n.length-1;r++)i[n[r]]=i[n[r]]||{},i=i[n[r]];if(e=n.pop(),t===s)return i[e]===s?null:i[e];i[e]=t}else{if(t===s)return this.options[e]===s?null:this.options[e];o[e]=t}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(a,s,e){var u,l=this;"boolean"!=typeof a&&(e=s,s=a,a=!1),e?(s=u=c(s),this.bindings=this.bindings.add(s)):(e=s,s=this.element,u=this.widget()),c.each(e,function(e,t){function n(){if(a||!0!==l.options.disabled&&!c(this).hasClass("ui-state-disabled"))return("string"==typeof t?l[t]:t).apply(l,arguments)}"string"!=typeof t&&(n.guid=t.guid=t.guid||n.guid||c.guid++);var i=e.match(/^(\w+)\s*(.*)$/),r=i[1]+l.eventNamespace,o=i[2];o?u.delegate(o,r,n):s.bind(r,n)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){var n=this;return setTimeout(function(){return("string"==typeof e?n[e]:e).apply(n,arguments)},t||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){c(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){c(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){c(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){c(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,t,n){var i,r,o=this.options[e];if(n=n||{},(t=c.Event(t)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),t.target=this.element[0],r=t.originalEvent)for(i in r)i in t||(t[i]=r[i]);return this.element.trigger(t,n),!(c.isFunction(o)&&!1===o.apply(this.element[0],[t].concat(n))||t.isDefaultPrevented())}},c.each({show:"fadeIn",hide:"fadeOut"},function(o,a){c.Widget.prototype["_"+o]=function(t,e,n){"string"==typeof e&&(e={effect:e});var i,r=e?!0===e||"number"==typeof e?a:e.effect||a:o;"number"==typeof(e=e||{})&&(e={duration:e}),i=!c.isEmptyObject(e),e.complete=n,e.delay&&t.delay(e.delay),i&&c.effects&&(c.effects.effect[r]||!1!==c.uiBackCompat&&c.effects[r])?t[o](e):r!==o&&t[r]?t[r](e.duration,e.easing,n):t.queue(function(e){c(this)[o](),n&&n.call(t[0]),e()})}}),!1!==c.uiBackCompat&&(c.Widget.prototype._getCreateOptions=function(){return c.metadata&&c.metadata.get(this.element[0])[this.widgetName]})}(jQuery),function(r,e){var o=!1;r(document).mouseup(function(e){o=!1}),r.widget("ui.mouse",{version:"1.9.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(e){if(!0===r.data(e.target,t.widgetName+".preventClickEvent"))return r.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&r(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!o){this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var t=this,n=1===e.which,i=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&r(e.target).closest(this.options.cancel).length;return!(n&&!i&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===r.data(e.target,this.widgetName+".preventClickEvent")&&r.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},r(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),o=!0))}},_mouseMove:function(e){return!r.ui.ie||9<=document.documentMode||e.button?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return r(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&r.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!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(e){return this.mouseDelayMet},_mouseStart:function(e){},_mouseDrag:function(e){},_mouseStop:function(e){},_mouseCapture:function(e){return!0}})}(jQuery),function(b,e){b.widget("ui.draggable",b.ui.mouse,{version:"1.9.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,
1containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){"original"!=this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(e){var t=this.options;return!(this.helper||t.disabled||b(e.target).is(".ui-resizable-handle"))&&(this.handle=this._getHandle(e),!!this.handle&&(b(!0===t.iframeFix?"iframe":t.iframeFix).each(function(){b('<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(b(this).offset()).appendTo("body")}),!0))},_mouseStart:function(e){var t=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),b.ui.ddmanager&&(b.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},b.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,t.cursorAt&&this._adjustOffsetFromHelper(t.cursorAt),t.containment&&this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),b.ui.ddmanager&&!t.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),b.ui.ddmanager&&b.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,t){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!t){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp({}),!1;this.position=n.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"),b.ui.ddmanager&&b.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var t=!1;b.ui.ddmanager&&!this.options.dropBehaviour&&(t=b.ui.ddmanager.drop(this,e)),this.dropped&&(t=this.dropped,this.dropped=!1);for(var n=this.element[0],i=!1;n&&(n=n.parentNode);)n==document&&(i=!0);if(!i&&"original"===this.options.helper)return!1;if("invalid"==this.options.revert&&!t||"valid"==this.options.revert&&t||!0===this.options.revert||b.isFunction(this.options.revert)&&this.options.revert.call(this.element,t)){var r=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==r._trigger("stop",e)&&r._clear()})}else!1!==this._trigger("stop",e)&&this._clear();return!1},_mouseUp:function(e){return b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),b.ui.ddmanager&&b.ui.ddmanager.dragStop(this,e),b.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){var t=!this.options.handle||!b(this.options.handle,this.element).length;return b(this.options.handle,this.element).find("*").andSelf().each(function(){this==e.target&&(t=!0)}),t},_createHelper:function(e){var t=this.options,n=b.isFunction(t.helper)?b(t.helper.apply(this.element[0],[e])):"clone"==t.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"==t.appendTo?this.element[0].parentNode:t.appendTo),n[0]==this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),b.isArray(e)&&(e={left:+e[0],top:+e[1]||0}
1),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&b.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&b.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!=this.cssPosition)return{top:0,left:0};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()}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if("parent"==e.containment&&(e.containment=this.helper[0].parentNode),"document"!=e.containment&&"window"!=e.containment||(this.containment=["document"==e.containment?0:b(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==e.containment?0:b(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==e.containment?0:b(window).scrollLeft())+b("document"==e.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==e.containment?0:b(window).scrollTop())+(b("document"==e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(e.containment)||e.containment.constructor==Array)e.containment.constructor==Array&&(this.containment=e.containment);else{var t=b(e.containment),n=t[0];if(!n)return;t.offset();var i="hidden"!=b(n).css("overflow");this.containment=[(parseInt(b(n).css("borderLeftWidth"),10)||0)+(parseInt(b(n).css("paddingLeft"),10)||0),(parseInt(b(n).css("borderTopWidth"),10)||0)+(parseInt(b(n).css("paddingTop"),10)||0),(i?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(b(n).css("borderLeftWidth"),10)||0)-(parseInt(b(n).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(i?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(b(n).css("borderTopWidth"),10)||0)-(parseInt(b(n).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=t}},_convertPositionTo:function(e,t){t||(t=this.position);var n="absolute"==e?1:-1,i=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&b.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),r=/(html|body)/i.test(i[0].tagName);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"==this.cssPosition?-this.scrollParent.scrollTop():r?0:i.scrollTop())*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():r?0:i.scrollLeft())*n}},_generatePosition:function(e){var t=this.options,n="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&b.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(n[0].tagName),r=e.pageX,o=e.pageY;if(this.originalPosition){var a;if(this.containment){if(this.relative_container){var s=this.relative_container.offset();a=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]}else a=this.containment;e.pageX-this.offset.click.left<a[0]&&(r=a[0]+this.offset.click.left),e.pageY-this.offset.click.top<a[1]&&(o=a[1]+this.offset.click.top),e.pageX-this.offset.click.left>a[2]&&(r=a[2]+this.offset.click.left),e.pageY-this.offset.click.top>a[3]&&(o=a[3]+this.offset.click.top)}if(t.grid){var u=t.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/t.grid[1])*t.grid[1]:this.originalPageY;o=a&&(u-this.offset.click.top<a[1]||u-this.offset.click.top>a[3])?u-this.offset.click.top<a[1]?u+t.grid[1]:u-t.grid[1]:u;var l=t.grid[0]?this.originalPageX+Math.round((r-this.originalPageX)
1/t.grid[0])*t.grid[0]:this.originalPageX;r=a&&(l-this.offset.click.left<a[0]||l-this.offset.click.left>a[2])?l-this.offset.click.left<a[0]?l+t.grid[0]:l-t.grid[0]:l}}return{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"==this.cssPosition?-this.scrollParent.scrollTop():i?0:n.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():i?0:n.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(e,t,n){return n=n||this._uiHash(),b.ui.plugin.call(this,e,[t,n]),"drag"==e&&(this.positionAbs=this._convertPositionTo("absolute")),b.Widget.prototype._trigger.call(this,e,t,n)},plugins:{},_uiHash:function(e){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),b.ui.plugin.add("draggable","connectToSortable",{start:function(t,e){var n=b(this).data("draggable"),i=n.options,r=b.extend({},e,{item:n.element});n.sortables=[],b(i.connectToSortable).each(function(){var e=b.data(this,"sortable");e&&!e.options.disabled&&(n.sortables.push({instance:e,shouldRevert:e.options.revert}),e.refreshPositions(),e._trigger("activate",t,r))})},stop:function(e,t){var n=b(this).data("draggable"),i=b.extend({},t,{item:n.element});b.each(n.sortables,function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"==n.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,i))})},drag:function(i,r){var o=b(this).data("draggable"),a=this;b.each(o.sortables,function(e){var t=!1,n=this;this.instance.positionAbs=o.positionAbs,this.instance.helperProportions=o.helperProportions,this.instance.offset.click=o.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(t=!0,b.each(o.sortables,function(){return this.instance.positionAbs=o.positionAbs,this.instance.helperProportions=o.helperProportions,this.instance.offset.click=o.offset.click,this!=n&&this.instance._intersectsWith(this.instance.containerCache)&&b.ui.contains(n.instance.element[0],this.instance.element[0])&&(t=!1),t})),t?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=b(a).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return r.helper[0]},i.target=this.instance.currentItem[0],this.instance._mouseCapture(i,!0),this.instance._mouseStart(i,!0,!0),this.instance.offset.click.top=o.offset.click.top,this.instance.offset.click.left=o.offset.click.left,this.instance.offset.parent.left-=o.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=o.offset.parent.top-this.instance.offset.parent.top,o._trigger("toSortable",i),o.dropped=this.instance.element,o.currentItem=o.element,this.instance.fromOutside=o),this.instance.currentItem&&this.instance._mouseDrag(i)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",i,this.instance._uiHash(this.instance)),this.instance._mouseStop(i,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),o._trigger("fromSortable",i),o.dropped=!1)})}}),b.ui.plugin.add("draggable","cursor",{start:function(e,t){var n=b("body"),i=b(this).data("draggable").options;n.css("cursor")&&(i._cursor=n.css("cursor")),n.css("cursor",i.cursor)},stop:function(e,t){var n=b(this).data("draggable").options;n._cursor&&b("body").css("cursor",n._cursor)}}),b.ui.plugin.add("draggable","opacity",{start:function(e,t){var n=b(t.helper),i=b(this).data("draggable").options;n.css("opacity")&&(i._opacity=n.css("opacity")),n.css("opacity",i.opacity)},stop:function(e,t){var n=b(this).data("draggable").options;n._opacity&&b(t.helper).css("opacity",n._opacity)}}),b.ui.plugin.add("draggable","scroll",{start:function(e,t){var n=b(this).data("draggable");n.scrollParent[0]!=document&&"HTML"!=n.scrollParent[0].tagName&&(n.overflowOffset=n.scrollParent.offset())},drag:function(e,t){var n=b(this).data("draggable"),i=n.options,r=!1;n.scrollParent[0]!=document&&"HTML"!=n.scrollParent[0].tagName?(i.axis&&"x"==i.axis||(n.overflowOffset.top+n.scrollParent[0].offsetHeight-e.pageY<i.scrollSensitivity?n.scrollParent[0].scrollTop=r=n.scrollParent[0].scrollTop+i.scrollSpeed:e.pageY-n.overflowOffset.top<i.scrollSensitivity&&(n.scrollParent[0].scrollTop=r=n.scrollParent[0].scrollTop-i.scrollSpeed)),i.axis&&"y"==i.axis||(n.overflowOffset.left+n.scrollParent[0].offsetWidth-e.pageX<i.scrollSensitivity?n.scrollParent[0].scrollLeft=r=n.scrollParent[0].scrollLeft+i.scrollSpeed:e.pageX-n.overflowOffset.left<i.scrollSensitivity&&(n.scrollParent[0].scrollLeft=r=n.scrollParent[0].scrollLeft-i.scrollSpeed))):(i.axis&&"x"==i.axis||(e.pageY-b(document).scrollTop()<i.scrollSensitivity?r=b(document).scrollTop(b(document).scrollTop()-i.scrollSpeed):b(window).height()-(e.pageY-b(document).scrollTop())<i.scrollSensitivity&&(r=b(document).scrollTop(b(document).scrollTop()+i.scrollSpeed))),i.axis&&"y"==i.axis||(e.pageX-b(document).scrollLeft()<i.scrollSensitivity?r=b(document).scrollLeft(b(document).scrollLeft()-i.scrollSpeed):b(window).width()-(e.pageX-b(document).scrollLeft())<i.scrollSensitivity&&(r=b(document).scrollLeft(b(document).scrollLeft()+i.scrollSpeed)))),!1!==r&&b.ui.ddmanager&&!i.dropBehaviour&&b.ui.ddmanager.prepareOffsets(n,e)}}),b.ui.plugin.add("draggable","snap",{start:function(e,t){var n=b(this).data("draggable"),i=n.options;n.snapElements=[],b(i.snap.constructor!=String?i.snap.items||":data(draggable)":i.snap).each(function(){var e=b(this),t=e.offset();this!=n.element[0]&&n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:t.top,left
1:t.left})})},drag:function(e,t){for(var n=b(this).data("draggable"),i=n.options,r=i.snapTolerance,o=t.offset.left,a=o+n.helperProportions.width,s=t.offset.top,u=s+n.helperProportions.height,l=n.snapElements.length-1;0<=l;l--){var c=n.snapElements[l].left,d=c+n.snapElements[l].width,h=n.snapElements[l].top,p=h+n.snapElements[l].height;if(c-r<o&&o<d+r&&h-r<s&&s<p+r||c-r<o&&o<d+r&&h-r<u&&u<p+r||c-r<a&&a<d+r&&h-r<s&&s<p+r||c-r<a&&a<d+r&&h-r<u&&u<p+r){if("inner"!=i.snapMode){var f=Math.abs(h-u)<=r,g=Math.abs(p-s)<=r,m=Math.abs(c-a)<=r,v=Math.abs(d-o)<=r;f&&(t.position.top=n._convertPositionTo("relative",{top:h-n.helperProportions.height,left:0}).top-n.margins.top),g&&(t.position.top=n._convertPositionTo("relative",{top:p,left:0}).top-n.margins.top),m&&(t.position.left=n._convertPositionTo("relative",{top:0,left:c-n.helperProportions.width}).left-n.margins.left),v&&(t.position.left=n._convertPositionTo("relative",{top:0,left:d}).left-n.margins.left)}var y=f||g||m||v;if("outer"!=i.snapMode){f=Math.abs(h-s)<=r,g=Math.abs(p-u)<=r,m=Math.abs(c-o)<=r,v=Math.abs(d-a)<=r;f&&(t.position.top=n._convertPositionTo("relative",{top:h,left:0}).top-n.margins.top),g&&(t.position.top=n._convertPositionTo("relative",{top:p-n.helperProportions.height,left:0}).top-n.margins.top),m&&(t.position.left=n._convertPositionTo("relative",{top:0,left:c}).left-n.margins.left),v&&(t.position.left=n._convertPositionTo("relative",{top:0,left:d-n.helperProportions.width}).left-n.margins.left)}!n.snapElements[l].snapping&&(f||g||m||v||y)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,b.extend(n._uiHash(),{snapItem:n.snapElements[l].item})),n.snapElements[l].snapping=f||g||m||v||y}else n.snapElements[l].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,b.extend(n._uiHash(),{snapItem:n.snapElements[l].item})),n.snapElements[l].snapping=!1}}}),b.ui.plugin.add("draggable","stack",{start:function(e,t){var n=b(this).data("draggable").options,i=b.makeArray(b(n.stack)).sort(function(e,t){return(parseInt(b(e).css("zIndex"),10)||0)-(parseInt(b(t).css("zIndex"),10)||0)});if(i.length){var r=parseInt(i[0].style.zIndex)||0;b(i).each(function(e){this.style.zIndex=r+e}),this[0].style.zIndex=r+i.length}}}),b.ui.plugin.add("draggable","zIndex",{start:function(e,t){var n=b(t.helper),i=b(this).data("draggable").options;n.css("zIndex")&&(i._zIndex=n.css("zIndex")),n.css("zIndex",i.zIndex)},stop:function(e,t){var n=b(this).data("draggable").options;n._zIndex&&b(t.helper).css("zIndex",n._zIndex)}})}(jQuery),function(p,e){p.widget("ui.droppable",{version:"1.9.2",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect"},_create:function(){var e=this.options,t=e.accept;this.isover=0,this.isout=1,this.accept=p.isFunction(t)?t:function(e){return e.is(t)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},p.ui.ddmanager.droppables[e.scope]=p.ui.ddmanager.droppables[e.scope]||[],p.ui.ddmanager.droppables[e.scope].push(this),e.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var e=p.ui.ddmanager.droppables[this.options.scope],t=0;t<e.length;t++)e[t]==this&&e.splice(t,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,t){"accept"==e&&(this.accept=p.isFunction(t)?t:function(e){return e.is(t)}),p.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var t=p.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),t&&this._trigger("activate",e,this.ui(t))},_deactivate:function(e){var t=p.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),t&&this._trigger("deactivate",e,this.ui(t))},_over:function(e){var t=p.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!=this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(t)))},_out:function(e){var t=p.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!=this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(t)))},_drop:function(e,t){var n=t||p.ui.ddmanager.current;if(!n||(n.currentItem||n.element)[0]==this.element[0])return!1;var i=!1;return this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var e=p.data(this,"droppable");if(e.options.greedy&&!e.options.disabled&&e.options.scope==n.options.scope&&e.accept.call(e.element[0],n.currentItem||n.element)&&p.ui.intersect(n,p.extend(e,{offset:e.element.offset()}),e.options.tolerance))return!(i=!0)}),!i&&(!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(n)),this.element))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}}}),p.ui.intersect=function(e,t,n){if(!t.offset)return!1;var i=(e.positionAbs||e.position.absolute).left,r=i+e.helperProportions.width,o=(e.positionAbs||e.position.absolute).top,a=o+e.helperProportions.height,s=t.offset.left,u=s+t.proportions.width,l=t.offset.top,c=l+t.proportions.height;switch(n){case"fit":return s<=i&&r<=u&&l<=o&&a<=c;case"intersect":return s<i+e.helperProportions.width/2&&r-e.helperProportions.width/2<u&&l<o+e.helperProportions.height/2&&a-e.helperProportions.height/2<c;case"pointer":var d=(e.positionAbs||e.position.absolute).left+(e.clickOffset||e.offset.click).left,h=(e.positionAbs||e.position.absolute).top+(e.clickOffset||e.offset.click).top;return p.ui.isOver(h,d,l,s,t.proportions.height,t.proportions.width);case"touch":return(l<=o&&o<=c||l<=a&&a<=c||o<l&&c<a)&&(s<=i&&i<=u||s<=r&&r<=u||i<s&&u<r);default:return!1}},p.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,t){var n=p.ui.ddmanager.droppables[e.options.scope]||[],i=t?t.type:null,r=(e.currentItem||e.element).find(":data(droppable)").andSelf();e:for(var o=0;o<n.length;o++)if(!(n[o].options.disabled||e&&!n[o].accept.call(n[o].element[0],e.currentItem||e.element))){for(var a=0;a<r.length;a++)if(r[a]==n[o].element[0]){n[o].proportions.height=0;continue e}n[o].visible="none"!=n[o].element.css("display"),n[o].visible&&("mousedown"==i&&n[o]._activate.call(n[o],t),n[o].offset=n[o].element.offset(),n[o].proportions={width:n[o].element[0].offsetWidth,height:n[o].element[0].offsetHeight})}},drop:function(e,t){var n=!1;return p.each(p.ui.ddmanager.droppables[e.options.scope]||[],function(){this.options&&(!this.options.disabled&&this.visible&&p.ui.intersect(e,this,this.options.tolerance)&&(n=this._drop.call(this,t)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=1,this.isover=0,this._deactivate.call(this,t)))}),n},dragStart:function(e,t){e.element.parentsUntil("body").bind("scroll.droppable",function(){e.options.refreshPositions||p.ui.ddmanager.prepareOffsets(e,t)})},drag:function(o,a){o.options.refreshPositions&&p.ui.ddmanager.prepareOffsets(o,a),p.each(p.ui.ddmanager.droppables[o.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var e=p.ui.intersect(o,this,this.options.tolerance),t=e||1!=this.isover?e&&0==this.isover?"isover":null:"isout";if(t){var n;if(this.options.greedy){var i=this.options.scope,r=this.element.parents(":data(droppable)").filter(function(){return p.data(this,"droppable").options.scope===i});r.length&&((n=p.data(r[0],"droppable")).greedyChild="isover"==t?1:0)}n&&"isover"==t&&(n.isover=0,n.isout=1,n._out.call(n,a)),this[t]=1,this["isout"==t?"isover":"isout"]=0,this["isover"==t?"_over":"_out"].call(this,a),n&&"isout"==t&&(n.isout=0,n.isover=1,n._over.call(n,a))}}})},dragStop:function(e,t){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||p.ui.ddmanager.prepareOffsets(e,t)}}}(jQuery),function($,undefined){$.extend($.ui,{datepicker:{version:"1.9.2"}});var PROP_NAME="datepicker",dpuuid=(new Date).getTime(),instActive;function Datepicker(){this.debug=!1,this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},$.extend(this._defaults,this.regional[""]),this.dpDiv=bindHover($('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function bindHover(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(t,"mouseout",function(){$(this).removeClass("ui-state-hover"),-1!=this.className.indexOf("ui-datepicker-prev")&&$(this).removeClass("ui-datepicker-prev-hover"),-1!=this.className.indexOf("ui-datepicker-next")&&$(this).removeClass("ui-datepicker-next-hover")}).delegate(t,"mouseover",function(){$.datepicker._isDisabledDatepicker(instActive.inline?e.parent()[0]:instActive.input[0])||($(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),$(this).addClass("ui-state-hover"),-1!=this.className.indexOf("ui-datepicker-prev")&&$(this).addClass("ui-datepicker-prev-hover"),-1!=this.className.indexOf("ui-datepicker-next")&&$(this).addClass("ui-datepicker-next-hover"))})}function extendRemove(e,t){for(var n in $.extend(e,t),t)null!=t[n]&&t[n]!=undefined||(e[n]=t[n]);return e}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return extendRemove(this._defaults,e||{}),this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(e){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline="div"==nodeName||"span"==nodeName;target.id||(this.uuid+=1,target.id="dp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),"input"==nodeName?this._connectDatepicker(target,inst):inline&&this._inlineDatepicker(target,inst)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?bindHover($('<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 t=$(e);i.append=$([]),i.trigger=$([]),t.hasClass(this.markerClassName)||(this._attachments(t,i),t.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,t,n){i.settings[t]=n}).bind("getData.datepicker",function(e,t){return this._get(i,t)}),this._autoSize(i),$.data(e,PROP_NAME,i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var n=this._get(t,"appendText"),i=this._get(t,"isRTL");t.append&&t.append.remove(),n&&(t.append=$('<span class="'+this._appendClass+'">'+n+"</span>"),e[i?"before":"after"](t.append)),e.unbind("focus",this._showDatepicker),t.trigger&&t.trigger.remove();var r=this._get(t,"showOn");if("focus"!=r&&"both"!=r||e.focus(this._showDatepicker),"button"==r||"both"==r){var o=this._get(t,"buttonText"),a=this._get(t,"buttonImage");t.trigger=$(this._get(t,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:a,alt:o,title:o}):$('<button type="button"></button>').addClass(this._triggerClass).html(""==a?o:$("<img/>").attr({src:a,alt:o,title:o}))),e[i?"before":"after"](t.trigger),t.trigger.click(function(){return $.datepicker._datepickerShowing&&$.datepicker._lastInput==e[0]?$.datepicker._hideDatepicker():($.datepicker._datepickerShowing&&$.datepicker._lastInput!=e[0]&&$.datepicker._hideDatepicker(),$.datepicker._showDatepicker(e[0])),!1})}},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t=new Date(2009,11,20),n=this._get(e,"dateFormat");if(n.match(/[DM]/)){var i=function(e){for(var t=0,n=0,i=0;i<e.length;i++)e[i].length>t&&(t=e[i].length,n=i);return n};t.setMonth(i(this._get(e,n.match(/MM/)?"monthNames":"monthNamesShort"))),t.setDate(i(this._get(e,n.match(/DD/)?"dayNames":"dayNamesShort"))+20-t.getDay())}e.input.attr("size",this._formatDate(e,t).length)}},_inlineDatepicker:function(e,i){var t=$(e);t.hasClass(this.markerClassName)||(t.addClass(this.markerClassName).append(i.dpDiv).bind("setData.datepicker",function(e,t,n){i.settings[t]=n}).bind("getData.datepicker",function(e,t){return this._get(i,t)}),$.data(e,PROP_NAME,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,t,n,i,r){var o=this._dialogInst;if(!o){this.uuid+=1;var a="dp"+this.uuid;this._dialogInput=$('<input type="text" id="'+a+'" style="position: absolute; top: -100px; width: 0px;"/>'),this._dialogInput.keydown(this._doKeyDown),$("body").append(this._dialogInput),(o=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},$.data(this._dialogInput[0],PROP_NAME,o)}if(extendRemove(o.settings,i||{}),t=t&&t.constructor==Date?this._formatDate(o,t):t,this._dialogInput.val(t),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,!this._pos){var s=document.documentElement.clientWidth,u=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[s/2-100+l,u/2-150+c]}return this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),o.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),$.blockUI&&$.blockUI(this.dpDiv),$.data(this._dialogInput[0],PROP_NAME,o),this},_destroyDatepicker:function(e){var t=$(e),n=$.data(e,PROP_NAME);if(t.hasClass(this.markerClassName)){var i=e.nodeName.toLowerCase();$.removeData(e,PROP_NAME),"input"==i?(n.append.remove(),n.trigger.remove(),t.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("
1keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!=i&&"span"!=i||t.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(t){var e=$(t),n=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var i=t.nodeName.toLowerCase();if("input"==i)t.disabled=!1,n.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if("div"==i||"span"==i){var r=e.children("."+this._inlineClass);r.children().removeClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)}this._disabledInputs=$.map(this._disabledInputs,function(e){return e==t?null:e})}},_disableDatepicker:function(t){var e=$(t),n=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var i=t.nodeName.toLowerCase();if("input"==i)t.disabled=!0,n.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if("div"==i||"span"==i){var r=e.children("."+this._inlineClass);r.children().addClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)}this._disabledInputs=$.map(this._disabledInputs,function(e){return e==t?null:e}),this._disabledInputs[this._disabledInputs.length]=t}},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]==e)return!0;return!1},_getInst:function(e){try{return $.data(e,PROP_NAME)}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,n){var i=this._getInst(e);if(2==arguments.length&&"string"==typeof t)return"defaults"==t?$.extend({},$.datepicker._defaults):i?"all"==t?$.extend({},i.settings):this._get(i,t):null;var r=t||{};if("string"==typeof t&&((r={})[t]=n),i){this._curInst==i&&this._hideDatepicker();var o=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(i,"min"),s=this._getMinMaxDate(i,"max");extendRemove(i.settings,r),null!==a&&r.dateFormat!==undefined&&r.minDate===undefined&&(i.settings.minDate=this._formatDate(i,a)),null!==s&&r.dateFormat!==undefined&&r.maxDate===undefined&&(i.settings.maxDate=this._formatDate(i,s)),this._attachments($(e),i),this._autoSize(i),this._setDate(i,o),this._updateAlternate(i),this._updateDatepicker(i)}},_changeDatepicker:function(e,t,n){this._optionDatepicker(e,t,n)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var n=this._getInst(e);n&&(this._setDate(n,t),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(e,t){var n=this._getInst(e);return n&&!n.inline&&this._setDateFromField(n,t),n?this._getDate(n):null},_doKeyDown:function(e){var t=$.datepicker._getInst(e.target),n=!0,i=t.dpDiv.is(".ui-datepicker-rtl");if(t._keyEvent=!0,$.datepicker._datepickerShowing)switch(e.keyCode){case 9:$.datepicker._hideDatepicker(),n=!1;break;case 13:var r=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",t.dpDiv);r[0]&&$.datepicker._selectDay(e.target,t.selectedMonth,t.selectedYear,r[0]);var o=$.datepicker._get(t,"onSelect");if(o){var a=$.datepicker._formatDate(t);o.apply(t.input?t.input[0]:null,[a,t])}else $.datepicker._hideDatepicker();return!1;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(e.target,e.ctrlKey?-$.datepicker._get(t,"stepBigMonths"):-$.datepicker._get(t,"stepMonths"),"M");break;case 34:$.datepicker._adjustDate(e.target,e.ctrlKey?+$.datepicker._get(t,"stepBigMonths"):+$.datepicker._get(t,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&$.datepicker._clearDate(e.target),n=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&$.datepicker._gotoToday(e.target),n=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&$.datepicker._adjustDate(e.target,i?1:-1,"D"),n=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&$.datepicker._adjustDate(e.target,e.ctrlKey?-$.datepicker._get(t,"stepBigMonths"):-$.datepicker._get(t,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&$.datepicker._adjustDate(e.target,-7,"D"),n=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&$.datepicker._adjustDate(e.target,i?
1-1:1,"D"),n=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&$.datepicker._adjustDate(e.target,e.ctrlKey?+$.datepicker._get(t,"stepBigMonths"):+$.datepicker._get(t,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&$.datepicker._adjustDate(e.target,7,"D"),n=e.ctrlKey||e.metaKey;break;default:n=!1}else 36==e.keyCode&&e.ctrlKey?$.datepicker._showDatepicker(this):n=!1;n&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t=$.datepicker._getInst(e.target);if($.datepicker._get(t,"constrainInput")){var n=$.datepicker._possibleChars($.datepicker._get(t,"dateFormat")),i=String.fromCharCode(e.charCode==undefined?e.keyCode:e.charCode);return e.ctrlKey||e.metaKey||i<" "||!n||-1<n.indexOf(i)}},_doKeyUp:function(e){var t=$.datepicker._getInst(e.target);if(t.input.val()!=t.lastVal)try{$.datepicker.parseDate($.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,$.datepicker._getFormatConfig(t))&&($.datepicker._setDateFromField(t),$.datepicker._updateAlternate(t),$.datepicker._updateDatepicker(t))}catch(e){$.datepicker.log(e)}return!0},_showDatepicker:function(e){if("input"!=(e=e.target||e).nodeName.toLowerCase()&&(e=$("input",e.parentNode)[0]),!$.datepicker._isDisabledDatepicker(e)&&$.datepicker._lastInput!=e){var n=$.datepicker._getInst(e);$.datepicker._curInst&&$.datepicker._curInst!=n&&($.datepicker._curInst.dpDiv.stop(!0,!0),n&&$.datepicker._datepickerShowing&&$.datepicker._hideDatepicker($.datepicker._curInst.input[0]));var t=$.datepicker._get(n,"beforeShow"),i=t?t.apply(e,[e,n]):{};if(!1!==i){extendRemove(n.settings,i),n.lastVal=null,$.datepicker._lastInput=e,$.datepicker._setDateFromField(n),$.datepicker._inDialog&&(e.value=""),$.datepicker._pos||($.datepicker._pos=$.datepicker._findPos(e),$.datepicker._pos[1]+=e.offsetHeight);var r=!1;$(e).parents().each(function(){return!(r|="fixed"==$(this).css("position"))});var o={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};if($.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.datepicker._updateDatepicker(n),o=$.datepicker._checkOffset(n,o,r),n.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?"static":r?"fixed":"absolute",display:"none",left:o.left+"px",top:o.top+"px"}),!n.inline){var a=$.datepicker._get(n,"showAnim"),s=$.datepicker._get(n,"duration"),u=function(){var e=n.dpDiv.find("iframe.ui-datepicker-cover");if(e.length){var t=$.datepicker._getBorders(n.dpDiv);e.css({left:-t[0],top:-t[1],width:n.dpDiv.outerWidth(),height:n.dpDiv.outerHeight()})}};n.dpDiv.zIndex($(e).zIndex()+1),$.datepicker._datepickerShowing=!0,$.effects&&($.effects.effect[a]||$.effects[a])?n.dpDiv.show(a,$.datepicker._get(n,"showOptions"),s,u):n.dpDiv[a||"show"](a?s:null,u),a&&s||u(),n.input.is(":visible")&&!n.input.is(":disabled")&&n.input.focus(),$.datepicker._curInst=n}}}},_updateDatepicker:function(e){this.maxRows=4;var t=$.datepicker._getBorders(e.dpDiv);(instActive=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var n=e.dpDiv.find("iframe.ui-datepicker-cover");n.length&&n.css({left:-t[0],top:-t[1],width:e.dpDiv.outerWidth(),height:e.dpDiv.outerHeight()}),e.dpDiv.find("."+this._dayOverClass+" a").mouseover();var i=this._getNumberOfMonths(e),r=i[1];if(e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<r&&e.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",17*r+"em"),e.dpDiv[(1!=i[0]||1!=i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e==$.datepicker._curInst&&$.datepicker._datepickerShowing&&e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&e.input[0]!=document.activeElement&&e.input.focus(),e.yearshtml){var o=e.yearshtml;setTimeout(function(){o===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),o=e.yearshtml=null},0)}},_getBorders:function(e){var t=function(e){return{thin:1,medium:2,thick:3}[e]||e};return[parseFloat(t(e.css("border-left-width"))),parseFloat(t(e.css("border-top-width")))]},_checkOffset:function(e,t,n){var i=e.dpDiv.outerWidth(),r=e.dpDiv.outerHeight(),o=e.input?e.input.outerWidth():0,a=e.input?e.input.outerHeight():0,s=document.documentElement.clientWidth+(n?0:$(document).scrollLeft()),u=document.documentElement.clientHeight+(n?0:$(document).scrollTop());return t.left-=this._get(e,"isRTL")?i-o:0,t.left-=n&&t.left==e.input.offset().left?$(document).scrollLeft():0,t.top-=n&&t.top==e.input.offset().top+a?$(document).scrollTop():0,t.left-=Math.min(t.left,t.left+i>s&&i<s?Math.abs(t.left+i-s):0),t.top-=Math.min(t.top,t.top+r>u&&r<u?Math.abs(r+a):0),t},_findPos:function(e){for(var t=this._getInst(e),n=this._get(t,"isRTL");e&&("hidden"==e.type||1!=e.nodeType||$.expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];var i=$(e).offset();return[i.left,i.top]},_hideDatepicker:function(e){var t=this._curInst;if(t&&(!e||t==$.data(e,PROP_NAME))&&this._datepickerShowing){var n=this._get(t,"showAnim"),i=this._get(t,"duration"),r=function(){$.datepicker._tidyDialog(t)}
1;$.effects&&($.effects.effect[n]||$.effects[n])?t.dpDiv.hide(n,$.datepicker._get(t,"showOptions"),i,r):t.dpDiv["slideDown"==n?"slideUp":"fadeIn"==n?"fadeOut":"hide"](n?i:null,r),n||r(),this._datepickerShowing=!1;var o=this._get(t,"onClose");o&&o.apply(t.input?t.input[0]:null,[t.input?t.input.val():"",t]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.dpDiv))),this._inDialog=!1}},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if($.datepicker._curInst){var t=$(e.target),n=$.datepicker._getInst(t[0]);(t[0].id==$.datepicker._mainDivId||0!=t.parents("#"+$.datepicker._mainDivId).length||t.hasClass($.datepicker.markerClassName)||t.closest("."+$.datepicker._triggerClass).length||!$.datepicker._datepickerShowing||$.datepicker._inDialog&&$.blockUI)&&(!t.hasClass($.datepicker.markerClassName)||$.datepicker._curInst==n)||$.datepicker._hideDatepicker()}},_adjustDate:function(e,t,n){var i=$(e),r=this._getInst(i[0]);this._isDisabledDatepicker(i[0])||(this._adjustInstDate(r,t+("M"==n?this._get(r,"showCurrentAtPos"):0),n),this._updateDatepicker(r))},_gotoToday:function(e){var t=$(e),n=this._getInst(t[0]);if(this._get(n,"gotoCurrent")&&n.currentDay)n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear;else{var i=new Date;n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear()}this._notifyChange(n),this._adjustDate(t)},_selectMonthYear:function(e,t,n){var i=$(e),r=this._getInst(i[0]);r["selected"+("M"==n?"Month":"Year")]=r["draw"+("M"==n?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(r),this._adjustDate(i)},_selectDay:function(e,t,n,i){var r=$(e);if(!$(i).hasClass(this._unselectableClass)&&!this._isDisabledDatepicker(r[0])){var o=this._getInst(r[0]);o.selectedDay=o.currentDay=$("a",i).html(),o.selectedMonth=o.currentMonth=t,o.selectedYear=o.currentYear=n,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear))}},_clearDate:function(e){var t=$(e);this._getInst(t[0]);this._selectDate(t,"")},_selectDate:function(e,t){var n=$(e),i=this._getInst(n[0]);t=null!=t?t:this._formatDate(i),i.input&&i.input.val(t),this._updateAlternate(i);var r=this._get(i,"onSelect");r?r.apply(i.input?i.input[0]:null,[t,i]):i.input&&i.input.trigger("change"),i.inline?this._updateDatepicker(i):(this._hideDatepicker(),this._lastInput=i.input[0],"object"!=typeof i.input[0]&&i.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var t=this._get(e,"altField");if(t){var n=this._get(e,"altFormat")||this._get(e,"dateFormat"),i=this._getDate(e),r=this.formatDate(n,i,this._getFormatConfig(e));$(t).each(function(){$(this).val(r)})}},noWeekends:function(e){var t=e.getDay();return[0<t&&t<6,""]},iso8601Week:function(e){var t=new Date(e.getTime());t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1},parseDate:function(n,o,e){if(null==n||null==o)throw"Invalid arguments";if(""==(o="object"==typeof o?o.toString():o+""))return null;var t=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff;t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10);for(var i=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,r=(e?e.dayNames:null)||this._defaults.dayNames,a=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,s=(e?e.monthNames:null)||this._defaults.monthNames,u=-1,l=-1,c=-1,d=-1,h=!1,p=function(e){var t=y+1<n.length&&n.charAt(y+1)==e;return t&&y++,t},f=function(e){var t=p(e),n=new RegExp("^\\d{1,"+("@"==e?14:"!"==e?20:"y"==e&&t?4:"o"==e?3:2)+"}"),i=o.substring(v).match(n);if(!i)throw"Missing number at position "+v;return v+=i[0].length,parseInt(i[0],10)},g=function(e,t,n){var i=$.map(p(e)?n:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)}),r=-1;if($.each(i,function(e,t){var n=t[1];if(o.substr(v,n.length).toLowerCase()==n.toLowerCase())return r=t[0],v+=n.length,!1}),-1!=r)return r+1;throw"Unknown name at position "+v},m=function(){if(o.charAt(v)!=n.charAt(y))throw"Unexpected literal at position "+v;v++},v=0,y=0;y<n.length;y++)if(h)"'"!=n.charAt(y)||p("'")?m():h=!1;else switch(n.charAt(y)){case"d":c=f("d");break;case"D":g("D",i,r);break;case"o":d=f("o");break;case"m":l=f("m");break;case"M":l=g("M",a,s);break;case"y":u=f("y");break;case"@":u=(b=new Date(f("@"))).getFullYear(),l=b.getMonth()+1,c=b.getDate();break;case"!":var b;u=(b=new Date((f("!")-this._ticksTo1970)/1e4)).getFullYear(),l=b.getMonth()+1,c=b.getDate();break;case"'":p("'")?m():h=!0;break;default:m()}if(v<o.length){var w=o.substr(v);if(!/^\s+/.test(w))throw"Extra/unparsed characters found in date: "+w}if(-1==u?u=(new Date).getFullYear():u<100&&(u+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u<=t?0:-100)),-1<d)for(l=1,c=d;;){var x=this._getDaysInMonth(u,l-1);if(c<=x)break;l++,c-=x}if((b=this._daylightSavingAdjust(new Date(u,l-1,c))).getFullYear()!=u||b.getMonth()+1!=l||b.getDate()!=c)throw"Invalid date";return b},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(n,e,t){if(!e)return"";var i=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,r=(t?t.dayNames:null)||this._defaults.dayNames,o=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,a=(t?t.monthNames:null)||this._defaults.monthNames,s=function(e){var t=h+1<n.length&&n.charAt(h+1)==e;return t&&h++,t},u=function(e,t,n){var i=""+t;if(s(e))for(;i.length<n;)i="0"+i;return i},l=function(e,t,n,i){return s(e)?i[t]:n[t]},c="",d=!1;if(e)for(var h=0;h<n.length;h++)if(d)"'"!=n.charAt(h)||s("'")?c+=n.charAt(h):d=!1;else switch(n.charAt(h)){case"d":c+=u("d",e.getDate(),2);break;case"D":c+=l("D",e.getDay(),i,r);break;case"o":c+=u("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":c+=u("m",e.getMonth()+1,2);break;case"M":c+=l("M",e.getMonth(),o,a);break;case"y":c+=s("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case"@":c+=e.getTime();break;case"!":c+=1e4*e.getTime()+this._ticksTo1970;break;
1case"'":s("'")?c+="'":d=!0;break;default:c+=n.charAt(h)}return c},_possibleChars:function(n){for(var e="",t=!1,i=function(e){var t=r+1<n.length&&n.charAt(r+1)==e;return t&&r++,t},r=0;r<n.length;r++)if(t)"'"!=n.charAt(r)||i("'")?e+=n.charAt(r):t=!1;else switch(n.charAt(r)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":i("'")?e+="'":t=!0;break;default:e+=n.charAt(r)}return e},_get:function(e,t){return e.settings[t]!==undefined?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!=e.lastVal){var n,i,r=this._get(e,"dateFormat"),o=e.lastVal=e.input?e.input.val():null;n=i=this._getDefaultDate(e);var a=this._getFormatConfig(e);try{n=this.parseDate(r,o,a)||i}catch(e){this.log(e),o=t?"":o}e.selectedDay=n.getDate(),e.drawMonth=e.selectedMonth=n.getMonth(),e.drawYear=e.selectedYear=n.getFullYear(),e.currentDay=o?n.getDate():0,e.currentMonth=o?n.getMonth():0,e.currentYear=o?n.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(s,e,t){var n,i,r=null==e||""===e?t:"string"==typeof e?function(e){try{return $.datepicker.parseDate($.datepicker._get(s,"dateFormat"),e,$.datepicker._getFormatConfig(s))}catch(e){}for(var t=(e.toLowerCase().match(/^c/)?$.datepicker._getDate(s):null)||new Date,n=t.getFullYear(),i=t.getMonth(),r=t.getDate(),o=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,a=o.exec(e);a;){switch(a[2]||"d"){case"d":case"D":r+=parseInt(a[1],10);break;case"w":case"W":r+=7*parseInt(a[1],10);break;case"m":case"M":i+=parseInt(a[1],10),r=Math.min(r,$.datepicker._getDaysInMonth(n,i));break;case"y":case"Y":n+=parseInt(a[1],10),r=Math.min(r,$.datepicker._getDaysInMonth(n,i))}a=o.exec(e)}return new Date(n,i,r)}(e):"number"==typeof e?isNaN(e)?t:(n=e,(i=new Date).setDate(i.getDate()+n),i):new Date(e.getTime());return(r=r&&"Invalid Date"==r.toString()?t:r)&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,n){var i=!t,r=e.selectedMonth,o=e.selectedYear,a=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=a.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=a.getMonth(),e.drawYear=e.selectedYear=e.currentYear=a.getFullYear(),r==e.selectedMonth&&o==e.selectedYear||n||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""==e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(n,-t,"M")},next:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(n,+t,"M")},hide:function(){window["DP_jQuery_"+dpuuid].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+dpuuid].datepicker._gotoToday(n)},selectDay:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(n,this,"Y"),!1}};$(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t=new Date;t=this._daylightSavingAdjust(new Date(t.getFullYear(),t.getMonth(),t.getDate()));var n=this._get(e,"isRTL"),i=this._get(e,"showButtonPanel"),r=this._get(e,"hideIfNoPrevNext"),o=this._get(e,"navigationAsDateFormat"),a=this._getNumberOfMonths(e),s=this._get(e,"showCurrentAtPos"),u=this._get(e,"stepMonths"),l=1!=a[0]||1!=a[1],c=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),d=this._getMinMaxDate(e,"min"),h=this._getMinMaxDate(e,"max"),p=e.drawMonth-s,f=e.drawYear;if(p<0&&(p+=12,f--),h){var g=this._daylightSavingAdjust(new Date(h.getFullYear(),h.getMonth()-a[0]*a[1]+1,h.getDate()));for(g=d&&g<d?d:g;this._daylightSavingAdjust(new Date(f,p,1))>g;)--p<0&&(p=11,f--)}e.drawMonth=p,e.drawYear=f;var m=this._get(e,"prevText");m=o?this.formatDate(m,this._daylightSavingAdjust(new Date(f,p-u,1)),this._getFormatConfig(e)):m;var v=this._canAdjustMonth(e,-1,f,p)?'<a class="ui-datepicker-prev ui-corner-all" data-handler="prev" data-event="click" title="'+m+'"><span class="ui-icon ui-icon-circle-triangle-'+(n?"e":"w")+'">'+m+"</span></a>":r?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+m+'"><span class="ui-icon ui-icon-circle-triangle-'+(n?"e":"w")+'">'+m+"</span></a>",y=this._get(e,"nextText");y=o?this.formatDate(y,this._daylightSavingAdjust(new Date(f,p+u,1)),this._getFormatConfig(e)):y;var b=this._canAdjustMonth(e,1,f,p)?'<a class="ui-datepicker-next ui-corner-all" data-handler="next" data-event="click" title="'+y+'"><span class="ui-icon ui-icon-circle-triangle-'+(n?"w":"e")+'">'+y+"</span></a>":r?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+y+'"><span class="ui-icon ui-icon-circle-triangle-'+(n?"w":"e")+'">'+y+"</span></a>",w=this._get(e,"currentText"),x=this._get(e,"gotoCurrent")&&e.currentDay?c:t;w=o?this.formatDate(w,x,this._getFormatConfig(e)):w;var _=e.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(e,"closeText")+"</button>",k=i?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(n?_:"")+(this._isInRange(e,x)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" data-handler="today" data-event="click">'+w+"</button>":"")+(n?"":_)+"</div>":"",E=parseInt(this._get(e,"firstDay"),10);E=isNaN(E)?0:E;for(var D=this._get(e,"showWeek"),C=this._get(e,"dayNames"),S=(this._get(e,"dayNamesShort"),this._get(e,"dayNamesMin")),T=this._get(e,"monthNames"),F=this._get(e,"monthNamesShort"),I=this._get(e,"beforeShowDay"),P=this._get(e,"showOtherMonths"),M=this._get(e,"selectOtherMonths"),A=(this._get(e,"calculateWeek")||this.iso8601Week,this._getDefaultDate(e)),N="",O=0;O<a[0];O++){var L="";this.maxRows=4;for(var R=0;R<a[1];R++){var j=this._daylightSavingAdjust(new Date(f,p,e.selectedDay)),z=" ui-corner-all",H="";if(l){if(H+='<div class="ui-datepicker-group',1<a[1])switch(R){case 0:H+=" ui-datepicker-group-first",z=" ui-corner-"+(n?"right":"left");break;case a[1]-1:H+=" ui-datepicker-group-last",z=" ui-corner-"+(n?"left":"right");break;default:H+=" ui-datepicker-group-middle",z=""}H+='">'}H+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+z+'">'+(/all|left/.test(z)&&0==O?n?b:v:"")+(/all|right/.test(z)&&0==O?n?v:b:"")+this._generateMonthYearHeader(e,p,f,d,h,0<O||0<R,T,F)+'</div><table class="ui-datepicker-calendar"><thead><tr>';for(var B=D?'<th class="ui-datepicker-week-col">'+this._get(e,"weekHeader")+"</th>":"",q=0;q<7;q++){var U=(q+E)%7;B+="<th"+(5<=(q+E+6)%7?' class="ui-datepicker-week-end"':"")+'><span title="'+C[U]+'">'+S[U]+"</span></th>"}H+=B+"</tr></thead><tbody>";var W=this._getDaysInMonth(f,p);f==e.selectedYear&&p==e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,W));var Y=(this._getFirstDayOfMonth(f,p)-E+7)%7,Q=Math.ceil((Y+W)/7),V=l&&this.maxRows>Q?this.maxRows:Q;this.maxRows=V;for(var G=this._daylightSavingAdjust(new Date(f,p,1-Y)),X=0;X<V;X++){H+="<tr>";var K=D?'<td class="ui-datepicker-week-col">'+this._get(e,"calculateWeek")(G)+"</td>":"";for(q=0;q<7;q++){var J=I?I.apply(e.input?e.input[0]:null,[G]):[!0,""],Z=G.getMonth()!=p,ee=Z&&!M||!J[0]||d&&G<d||h&&h<G;K+='<td class="'+(5<=(q+E+6)%7?" ui-datepicker-week-end":"")+(Z?" ui-datepicker-other-month":"")+(G.getTime()==j.getTime()&&p==e.selectedMonth&&e._keyEvent||A.getTime()==G.getTime()&&A.getTime()==j.getTime()?" "+this._dayOverClass:"")+(ee?" "+this._unselectableClass+" ui-state-disabled":"")+(Z&&!P?"":" "+J[1]+(G.getTime()==c.getTime()?" "+this._currentClass:"")+(G.getTime()==t.getTime()?" ui-datepicker-today":""))+'"'+(Z&&!P||!J[2]?"":' title="'+J[2]+'"')+(ee?"":' data-handler="selectDay" data-event="click" data-month="'+G.getMonth()+'" data-year="'+G.getFullYear()+'"')+">"+(Z&&!P?" ":ee?'<span class="ui-state-default">'+G.getDate()+"</span>":'<a class="ui-state-default'+(G.getTime()==t.getTime()?" ui-state-highlight":"")+(G.getTime()==c.getTime()?" ui-state-active":"")+(Z?" ui-priority-secondary":"")+'" href="#">'+G.getDate()+"</a>")+"</td>",G.setDate(G.getDate()+1),G=this._daylightSavingAdjust(G)}H+=K+"</tr>"}11<++p&&(p=0,f++),L+=H+="</tbody></table>"+(l?"</div>"+(0<a[0]&&R==a[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"")}N+=L}return N+=k+($.ui.ie6&&!e.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':""),e._keyEvent=!1,N},_generateMonthYearHeader:function(e,t,n,i,r,o,a,s){var u=this._get(e,"changeMonth"),l=this._get(e,"changeYear"),c=this._get(e,"showMonthAfterYear"),d='<div class="ui-datepicker-title">',h="";if(o||!u)h+='<span class="ui-datepicker-month">'+a[t]+"</span>";else{var p=i&&i.getFullYear()==n,f=r&&r.getFullYear()==n;h+='<select class="ui-datepicker-month" data-handler="selectMonth" data-event="change">';
1for(var g=0;g<12;g++)(!p||g>=i.getMonth())&&(!f||g<=r.getMonth())&&(h+='<option value="'+g+'"'+(g==t?' selected="selected"':"")+">"+s[g]+"</option>");h+="</select>"}if(c||(d+=h+(!o&&u&&l?"":" ")),!e.yearshtml)if(e.yearshtml="",o||!l)d+='<span class="ui-datepicker-year">'+n+"</span>";else{var m=this._get(e,"yearRange").split(":"),v=(new Date).getFullYear(),y=function(e){var t=e.match(/c[+-].*/)?n+parseInt(e.substring(1),10):e.match(/[+-].*/)?v+parseInt(e,10):parseInt(e,10);return isNaN(t)?v:t},b=y(m[0]),w=Math.max(b,y(m[1]||""));for(b=i?Math.max(b,i.getFullYear()):b,w=r?Math.min(w,r.getFullYear()):w,e.yearshtml+='<select class="ui-datepicker-year" data-handler="selectYear" data-event="change">';b<=w;b++)e.yearshtml+='<option value="'+b+'"'+(b==n?' selected="selected"':"")+">"+b+"</option>";e.yearshtml+="</select>",d+=e.yearshtml,e.yearshtml=null}return d+=this._get(e,"yearSuffix"),c&&(d+=(!o&&u&&l?"":" ")+h),d+="</div>"},_adjustInstDate:function(e,t,n){var i=e.drawYear+("Y"==n?t:0),r=e.drawMonth+("M"==n?t:0),o=Math.min(e.selectedDay,this._getDaysInMonth(i,r))+("D"==n?t:0),a=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,r,o)));e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),"M"!=n&&"Y"!=n||this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),i=this._getMinMaxDate(e,"max"),r=n&&t<n?n:t;return r=i&&i<r?i:r},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,n,i){var r=this._getNumberOfMonths(e),o=this._daylightSavingAdjust(new Date(n,i+(t<0?t:r[0]*r[1]),1));return t<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(e,o)},_isInRange:function(e,t){var n=this._getMinMaxDate(e,"min"),i=this._getMinMaxDate(e,"max");return(!n||t.getTime()>=n.getTime())&&(!i||t.getTime()<=i.getTime())},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var r=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),r,this._getFormatConfig(e))}}),$.fn.datepicker=function(e){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkExternalClick).find(document.body).append($.datepicker.dpDiv),$.datepicker.initialized=!0);var t=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]?$.datepicker["_"+e+"Datepicker"].apply($.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?$.datepicker["_"+e+"Datepicker"].apply($.datepicker,[this].concat(t)):$.datepicker._attachDatepicker(this,e)}):$.datepicker["_"+e+"Datepicker"].apply($.datepicker,[this[0]].concat(t))},$.datepicker=new Datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="1.9.2",window["DP_jQuery_"+dpuuid]=$}(jQuery),function(e){e.ui.draggable.prototype._getRelativeOffset=function(){if("absolute"==this.cssPosition)return{top:0-e("body").scrollTop(),left:0}}}(jQuery),function(l){l.extend(l.fn,{validate:function(e){if(this.length){var n=l.data(this[0],"validator");return n||(this.attr("novalidate","novalidate"),n=new l.validator(e,this[0]),l.data(this[0],"validator",n),n.settings.onsubmit&&(this.validateDelegate(":submit","click",function(e){n.settings.submitHandler&&(n.submitButton=e.target),l(e.target).hasClass("cancel")&&(n.cancelSubmit=!0),void 0!==l(e.target).attr("formnovalidate")&&(n.cancelSubmit=!0)}),this.submit(function(t){function e(){var e;return!n.settings.submitHandler||(n.submitButton&&(e=l("<input type='hidden'/>").attr("name",n.submitButton.name).val(l(n.submitButton).val()).appendTo(n.currentForm)),n.settings.submitHandler.call(n,n.currentForm,t),n.submitButton&&e.remove(),!1)}return n.settings.debug&&t.preventDefault(),n.cancelSubmit?(n.cancelSubmit=!1,e()):n.form()?n.pendingRequest?!(n.formSubmitted=!0):e():(n.focusInvalid(),!1)})),n)}e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){if(l(this[0]).is("form"))return this.validate().form();var e=!0,t=l(this[0].form).validate();return this.each(function(){e=e&&t.element(this)}),e},removeAttrs:function(e){var n={},i=this;return l.each(e.split(/\s/),function(e,t){n[t]=i.attr(t),i.removeAttr(t)}),n},rules:function(e,t){var n=this[0];if(e){var i=l.data(n.form,"validator").settings,r=i.rules,o=l.validator.staticRules(n);switch(e){case"add":l.extend(o,l.validator.normalizeRule(t)),delete o.messages,r[n.name]=o,t.messages&&(i.messages[n.name]=l.extend(i.messages[n.name],t.messages));break;case"remove":if(!t)return delete r[n.name],o;var a={};return l.each(t.split(/\s/),function(e,t){a[t]=o[t],delete o[t]}),a}}var s=l.validator.normalizeRules(l.extend({},l.validator.classRules(n),l.validator.attributeRules(n),l.validator.dataRules(n),l.validator.staticRules(n)),n);if(s.required){var u=s.required;delete s.required,s=l.extend({required:u},s)}return s}}),l.extend(l.expr[":"],{blank:function(e){return!l.trim(""+l(e).val())},filled:function(e){return!!l.trim(""+l(e).val())},unchecked:function(e){return!l(e).prop("checked")}}),l.validator=function(e,t){this.settings=l.extend(!0,{},l.validator.defaults,e),this.currentForm=t,this.init()},l.validator.format=function(n,e){return 1===arguments.length?function(){var e=l.makeArray(arguments);return e.unshift(n),l.validator.format.apply(this,e)}:(2<arguments.length&&e.constructor!==Array&&(e=l.makeArray(arguments).slice(1)),e.constructor!==Array&&(e=[e]),l.each(e,function(e,t){n=n.replace(new RegExp("\\{"+e+"\\}","g"),function(){return t})}),n)},l.extend(l.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:l([]),errorLabelContainer:l([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(e,t){this.lastActive=e,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.val
1idClass),this.addWrapper(this.errorsFor(e)).hide())},onfocusout:function(e,t){this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)||this.element(e)},onkeyup:function(e,t){9===t.which&&""===this.elementValue(e)||(e.name in this.submitted||e===this.lastElement)&&this.element(e)},onclick:function(e,t){e.name in this.submitted?this.element(e):e.parentNode.name in this.submitted&&this.element(e.parentNode)},highlight:function(e,t,n){"radio"===e.type?this.findByName(e.name).addClass(t).removeClass(n):l(e).addClass(t).removeClass(n)},unhighlight:function(e,t,n){"radio"===e.type?this.findByName(e.name).removeClass(t).addClass(n):l(e).removeClass(t).addClass(n)}},setDefaults:function(e){l.extend(l.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:l.validator.format("Please enter no more than {0} characters."),minlength:l.validator.format("Please enter at least {0} characters."),rangelength:l.validator.format("Please enter a value between {0} and {1} characters long."),range:l.validator.format("Please enter a value between {0} and {1}."),max:l.validator.format("Please enter a value less than or equal to {0}."),min:l.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=l(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||l(this.currentForm),this.containers=l(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i=this.groups={};l.each(this.settings.groups,function(n,e){"string"==typeof e&&(e=e.split(/\s/)),l.each(e,function(e,t){i[t]=n})});var n=this.settings.rules;function e(e){var t=l.data(this[0].form,"validator"),n="on"+e.type.replace(/^validate/,"");t.settings[n]&&t.settings[n].call(t,this[0],e)}l.each(n,function(e,t){n[e]=l.validator.normalizeRule(t)}),l(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",e).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",e),this.settings.invalidHandler&&l(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),l.extend(this.submitted,this.errorMap),this.invalid=l.extend({},this.errorMap),this.valid()||l(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var e=0,t=this.currentElements=this.elements();t[e];e++)this.check(t[e]);return this.valid()},element:function(e){e=this.validationTargetFor(this.clean(e)),this.lastElement=e,this.prepareElement(e),this.currentElements=l(e);var t=!1!==this.check(e);return t?delete this.invalid[e.name]:this.invalid[e.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),t},showErrors:function(t){if(t){for(var e in l.extend(this.errorMap,t),this.errorList=[],t)this.errorList.push({message:t[e],element:this.findByName(e)[0]});this.successList=l.grep(this.successList,function(e){return!(e.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){l.fn.resetForm&&l(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var t=0;for(var n in e)t++;return t},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length}
1,focusInvalid:function(){if(this.settings.focusInvalid)try{l(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var t=this.lastActive;return t&&1===l.grep(this.errorList,function(e){return e.element.name===t.name}).length&&t},elements:function(){var e=this,t={};return l(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),!(this.name in t||!e.objectLength(l(this).rules()))&&(t[this.name]=!0)})},clean:function(e){return l(e)[0]},errors:function(){var e=this.settings.errorClass.replace(" ",".");return l(this.settings.errorElement+"."+e,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=l([]),this.toHide=l([]),this.currentElements=l([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(e){this.reset(),this.toHide=this.errorsFor(e)},elementValue:function(e){var t=l(e).attr("type"),n=l(e).val();return"radio"===t||"checkbox"===t?l("input[name='"+l(e).attr("name")+"']:checked").val():"string"==typeof n?n.replace(/\r/g,""):n},check:function(t){t=this.validationTargetFor(this.clean(t));var e,n=l(t).rules(),i=!1,r=this.elementValue(t);for(var o in n){var a={method:o,parameters:n[o]};try{if("dependency-mismatch"===(e=l.validator.methods[o].call(this,r,t,a.parameters))){i=!0;continue}if(i=!1,"pending"===e)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!e)return this.formatAndAdd(t,a),!1}catch(e){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+a.method+"' method.",e),e}}if(!i)return this.objectLength(n)&&this.successList.push(t),!0},customDataMessage:function(e,t){return l(e).data("msg-"+t.toLowerCase())||e.attributes&&l(e).attr("data-msg-"+t.toLowerCase())},customMessage:function(e,t){var n=this.settings.messages[e];return n&&(n.constructor===String?n:n[t])},findDefined:function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]},defaultMessage:function(e,t){return this.findDefined(this.customMessage(e.name,t),this.customDataMessage(e,t),!this.settings.ignoreTitle&&e.title||void 0,l.validator.messages[t],"<strong>Warning: No message defined for "+e.name+"</strong>")},formatAndAdd:function(e,t){var n=this.defaultMessage(e,t.method),i=/\$?\{(\d+)\}/g;"function"==typeof n?n=n.call(this,t.parameters,e):i.test(n)&&(n=l.validator.format(n.replace(i,"{$1}"),t.parameters)),this.errorList.push({message:n,element:e}),this.errorMap[e.name]=n,this.submitted[e.name]=n},addWrapper:function(e){return this.settings.wrapper&&(e=e.add(e.parent(this.settings.wrapper))),e},defaultShowErrors:function(){var e,t;for(e=0;this.errorList[e];e++){var n=this.errorList[e];this.settings.highlight&&this.settings.highlight.call(this,n.element,this.settings.errorClass,this.settings.validClass),this.showLabel(n.element,n.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(e=0;this.successList[e];e++)this.showLabel(this.successList[e]);if(this.settings.unhighlight)for(e=0,t=this.validElements();t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return l(this.errorList).map(function(){return this.element})},showLabel:function(e,t){var n=this.errorsFor(e);n.length?(n.removeClass(this.settings.validClass).addClass(this.settings.errorClass),n.html(t)):(n=l("<"+this.settings.errorElement+">").attr("for",this.idOrName(e)).addClass(this.settings.errorClass).html(t||""),this.settings.wrapper&&(n=n.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(n).length||(this.settings.errorPlacement?this.settings.errorPlacement(n,l(e)):n.insertAfter(e))),!t&&this.settings.success&&(n.text(""),"string"==typeof this.settings.success?n.addClass(this.settings.success):this.settings.success(n,e)),this.toShow=this.toShow.add(n)},errorsFor:function(e){var t=this.idOrName(e);return this.errors().filter(function(){return l(this).attr("for")===t})},idOrName:function(e){return this.groups[e.name]||(this.checkable(e)?e.name:e.id||e.name)}
1,validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name).not(this.settings.ignore)[0]),e},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(e){return l(this.currentForm).find("[name='"+e+"']")},getLength:function(e,t){switch(t.nodeName.toLowerCase()){case"select":return l("option:selected",t).length;case"input":if(this.checkable(t))return this.findByName(t.name).filter(":checked").length}return e.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{boolean:function(e,t){return e},string:function(e,t){return!!l(e,t.form).length},function:function(e,t){return e(t)}},optional:function(e){var t=this.elementValue(e);return!l.validator.methods.required.call(this,t,e)&&"dependency-mismatch"},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,this.pending[e.name]=!0)},stopRequest:function(e,t){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],t&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(l(this.currentForm).submit(),this.formSubmitted=!1):!t&&0===this.pendingRequest&&this.formSubmitted&&(l(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e){return l.data(e,"previousValue")||l.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,t){e.constructor===String?this.classRuleSettings[e]=t:l.extend(this.classRuleSettings,e)},classRules:function(e){var t={},n=l(e).attr("class");return n&&l.each(n.split(" "),function(){this in l.validator.classRuleSettings&&l.extend(t,l.validator.classRuleSettings[this])}),t},attributeRules:function(e){var t={},n=l(e),i=n[0].getAttribute("type");for(var r in l.validator.methods){var o;o="required"===r?(""===(o=n.get(0).getAttribute(r))&&(o=!0),!!o):n.attr(r),/min|max/.test(r)&&(null===i||/number|range|text/.test(i))&&(o=Number(o)),o?t[r]=o:i===r&&"range"!==i&&(t[r]=!0)}return t.maxlength&&/-1|2147483647|524288/.test(t.maxlength)&&delete t.maxlength,t},dataRules:function(e){var t,n,i={},r=l(e);for(t in l.validator.methods)void 0!==(n=r.data("rule-"+t.toLowerCase()))&&(i[t]=n);return i},staticRules:function(e){var t={},n=l.data(e.form,"validator");return n.settings.rules&&(t=l.validator.normalizeRule(n.settings.rules[e.name])||{}),t},normalizeRules:function(i,r){return l.each(i,function(e,t){if(!1!==t){if(t.param||t.depends){var n=!0;switch(typeof t.depends){case"string":n=!!l(t.depends,r.form).length;break;case"function":n=t.depends.call(r,r)}n?i[e]=void 0===t.param||t.param:delete i[e]}}else delete i[e]}),l.each(i,function(e,t){i[e]=l.isFunction(t)?t(r):t}),l.each(["minlength","maxlength"],function(){i[this]&&(i[this]=Number(i[this]))}),l.each(["rangelength","range"],function(){var e;i[this]&&(l.isArray(i[this])?i[this]=[Number(i[this][0]),Number(i[this][1])]:"string"==typeof i[this]&&(e=i[this].split(/[\s,]+/),i[this]=[Number(e[0]),Number(e[1])]))}),l.validator.autoCreateRanges&&(i.min&&i.max&&(i.range=[i.min,i.max],delete i.min,delete i.max),i.minlength&&i.maxlength&&(i.rangelength=[i.minlength,i.maxlength],delete i.minlength,delete i.maxlength)),i},normalizeRule:function(e){if("string"==typeof e){var t={};l.each(e.split(/\s/),function(){t[this]=!0}),e=t}return e},addMethod:function(e,t,n){l.validator.methods[e]=t,l.validator.messages[e]=void 0!==n?n:l.validator.messages[e],t.length<3&&l.validator.addClassRules(e,l.validator.normalizeRule(e))},methods:{required:function(e,t,n){if(!this.depend(n,t))return"dependency-mismatch";if("select"!==t.nodeName.toLowerCase())return this.checkable(t)?0<this.getLength(e,t):0<l.trim(e).length;var i=l(t).val();return i&&0<i.length},email:function(e,t){return this.optional(t)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(e)},url:function(e,t){return this.optional(t)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(e)},date:function(e,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(e).toString())},dateISO:function(e,t){return this.optional(t)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(e)},number:function(e,t){return this.optional(t)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e,t){return this.optional(t)||/^\d+$/.test(e)},creditcard:function(e,t){if(this.optional(t))return"dependency-mismatch";if(/[^0-9 \-]+/.test(e))return!1;for(var n=0,i=0,r=!1,o=(e=e.replace(/\D/g,"")).length-1;0<=o;o--){var a=e.charAt(o);i=parseInt(a,10),r&&9<(i*=2)&&(i-=9),n+=i,r=!r}return n%10==0},minlength:function(e,t,n){var i=l.isArray(e)?e.length:this.getLength(l.trim(e),t);return this.optional(t)||n<=i},maxlength:function(e,t,n){var i=l.isArray(e)?e.length:this.getLength(l.trim(e),t);return this.optional(t)||i<=n},rangelength:function(e,t,n){var i=l.isArray(e)?e.length:this.getLength(l.trim(e),t);return this.optional(t)||i>=n[0]&&i<=n[1]},min:function(e,t,n){return this.optional(t)||n<=e},max:function(e,t,n){return this.optional(t)||e<=n},range:function(e,t,n){return this.optional(t)||e>=n[0]&&e<=n[1]},equalTo:function(e,t,n){var i=l(n);return this.settings.onfocusout&&i.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){l(t).valid()}),e===i.val()},remote:function(o,a,e){if(this.optional(a))return"dependency-mismatch";var s=this.previousValue(a);if(this.settings.messages[a.name]||(this.settings.messages[a.name]={}),s.originalMessage=this.settings.messages[a.name].remote,this.settings.messages[a.name].remote=s.message,e="string"==typeof e&&{url:e}||e,s.old===o)return s.valid;s.old=o;var u=this;
1this.startRequest(a);var t={};return t[a.name]=o,l.ajax(l.extend(!0,{url:e,mode:"abort",port:"validate"+a.name,dataType:"json",data:t,success:function(e){u.settings.messages[a.name].remote=s.originalMessage;var t=!0===e||"true"===e;if(t){var n=u.formSubmitted;u.prepareElement(a),u.formSubmitted=n,u.successList.push(a),delete u.invalid[a.name],u.showErrors()}else{var i={},r=e||u.defaultMessage(a,"remote");i[a.name]=s.message=l.isFunction(r)?r(o):r,u.invalid[a.name]=!0,u.showErrors(i)}s.valid=t,u.stopRequest(a,t)}},e)),"pending"}}}),l.format=l.validator.format}(jQuery),function(i){var r={};if(i.ajaxPrefilter)i.ajaxPrefilter(function(e,t,n){var i=e.port;"abort"===e.mode&&(r[i]&&r[i].abort(),r[i]=n)});else{var o=i.ajax;i.ajax=function(e){var t=("mode"in e?e:i.ajaxSettings).mode,n=("port"in e?e:i.ajaxSettings).port;return"abort"===t?(r[n]&&r[n].abort(),r[n]=o.apply(this,arguments),r[n]):o.apply(this,arguments)}}}(jQuery),function(r){r.extend(r.fn,{validateDelegate:function(n,e,i){return this.bind(e,function(e){var t=r(e.target);if(t.is(n))return i.apply(t,arguments)})}})}(jQuery),function(u){var e,t=u.validator,i="unobtrusiveValidation";function a(e,t,n){e.rules[t]=n,e.message&&(e.messages[t]=e.message)}function s(e){return e.substr(0,e.lastIndexOf(".")+1)}function l(e,t){return 0===e.indexOf("*.")&&(e=e.replace("*.",t)),e}function r(e,t){var n=u(this).find("[data-valmsg-for='"+t[0].name+"']"),i=!1!==u.parseJSON(n.attr("data-valmsg-replace"));n.removeClass("field-validation-valid").addClass("field-validation-error"),e.data("unobtrusiveContainer",n),i?(n.empty(),e.removeClass("input-validation-error").appendTo(n)):e.hide()}function o(e,t){var n=u(this).find("[data-valmsg-summary=true]"),i=n.find("ul");i&&i.length&&t.errorList.length&&(i.empty(),n.addClass("validation-summary-errors").removeClass("validation-summary-valid"),u.each(t.errorList,function(){u("<li />").html(this.message).appendTo(i)}))}function c(e){var t=e.data("unobtrusiveContainer"),n=u.parseJSON(t.attr("data-valmsg-replace"));t&&(t.addClass("field-validation-valid").removeClass("field-validation-error"),e.removeData("unobtrusiveContainer"),n&&t.empty())}function n(e){var t=u(e),n=t.data(i);return n||(n={options:{errorClass:"input-validation-error",errorElement:"span",errorPlacement:u.proxy(r,e),invalidHandler:u.proxy(o,e),messages:{},rules:{},success:u.proxy(c,e)},attachValidation:function(){t.validate(this.options)},validate:function(){return t.validate(),t.valid()}},t.data(i,n)),n}t.unobtrusive={adapters:[],parseElement:function(i,e){var t,r,o,a=u(i),s=a.parents("form")[0];s&&((t=n(s)).options.rules[i.name]=r={},t.options.messages[i.name]=o={},u.each(this.adapters,function(){var e="data-val-"+this.name,t=a.attr(e),n={};void 0!==t&&(e+="-",u.each(this.params,function(){n[this]=a.attr(e+this)}),this.adapt({element:i,form:s,message:t,params:n,rules:r,messages:o}))}),jQuery.extend(r,{__dummy__:!0}),e||t.attachValidation())},parse:function(e){u(e).find(":input[data-val=true]").each(function(){t.unobtrusive.parseElement(this,!0)}),u("form").each(function(){var e=n(this);e&&e.attachValidation()})}},(e=t.unobtrusive.adapters).add=function(e,t,n){return n||(n=t,t=[]),this.push({name:e,params:t,adapt:n}),this},e.addBool=function(t,n){return this.add(t,function(e){a(e,n||t,!0)})},e.addMinMax=function(e,i,r,o,t,n){return this.add(e,[t||"min",n||"max"],function(e){var t=e.params.min,n=e.params.max;t&&n?a(e,o,[t,n]):t?a(e,i,t):n&&a(e,r,n)})},e.addSingleVal=function(t,n,i){return this.add(t,[n||"val"],function(e){a(e,i||t,e.params[n])})},t.addMethod("__dummy__",function(e,t,n){return!0}),t.addMethod("regex",function(e,t,n){var i;return!!this.optional(t)||(i=new RegExp(n).exec(e))&&0===i.index&&i[0].length===e.length}),e.addSingleVal("accept","exts").addSingleVal("regex","pattern"),e.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),e.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),e.add("equalto",["other"],function(e){var t=s(e.element.name),n=l(e.params.other,t);a(e,"equalTo",u(e.form).find(":input[name="+n+"]")[0])}),e.add("required",function(e){"INPUT"===e.element.tagName.toUpperCase()&&"CHECKBOX"===e.element.type.toUpperCase()||a(e,"required",!0)}),e.add("remote",["url","type","additionalfields"],function(i){var r={url:i.params.url,type:i.params.type||"GET",data:{}},o=s(i.element.name);u.each((i.params.additionalfields||i.element.name).replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g),function(e,t){var n=l(t,o);r.data[n]=function(){return u(i.form).find(":input[name='"+n+"']").val()}}),a(i,"remote",r)}),u(function(){t.unobtrusive.parse(document)})}(jQuery),function(c){c.transit={version:"0.9.9",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:!0,useTransitionEnd:!1};var o=document.createElement("div"),d={};function e(e){if(e in o.style)return e;var t=["Moz","Webkit","O","ms"],n=e.charAt(0).toUpperCase()+e.substr(1);if(e in o.style)return e;for(var i=0;i<t.length;++i){var r=t[i]+n;if(r in o.style)return r}}var i=-1<navigator.userAgent.toLowerCase().indexOf("chrome");d.transition=e("transition"),d.transitionDelay=e("transitionDelay"),d.transform=e("transform"),d.transformOrigin=e("transformOrigin"),d.transform3d=(o.style[d.transform]="",o.style[d.transform]="rotateY(90deg)",""!==o.style[d.transform]);var h=d.transitionEnd={transition:"transitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"}[d.transition]||null;for(var t in d)d.hasOwnProperty(t)&&void 0===c.support[t]&&(c.support[t]=d[t]);function r(e){return"string"==typeof e&&this.parse(e),this}function p(e,t,n){!0===t?e.queue(n):t?e.queue(t,n):n()}function f(e,t,n,i){var r,o,a=(r=e,o=[],c.each(r,function(e){e=c.camelCase(e),e=(e=c.transit.propertyMap[e]||c.cssProps[e]||e).replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}),-1===c.inArray(e,o)&&o.push(e)}),o);c.cssEase[n]&&(n=c.cssEase[n]);var s=g(t)+" "+n;0<parseInt(i,10)&&(s+=" "+g(i));var u=[];return c.each(a,function(e,t){u.push(t+" "+s)}),u.join(", ")}function n(i,e){e||(c.cssNumber[i]=!0),c.transit.propertyMap[i]=d.transform,c.cssHooks[i]={get:function(e){return c(e).css("transit:transform").get(i)},set:function(e,t){var n=c(e).css("transit:transform");n.setFromString(i,t),c(e).css({"transit:transform":n})}}}function a(e,t){return"string"!=typeof e||e.match(/^[\-0-9\.]+$/)?""+e+t:e}function g(e){var t=e;return c.fx.speeds[t]&&(t=c.fx.speeds[t]),a(t,"ms")}o=null,c.cssEase={_default:"ease",in:"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1
1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"},c.cssHooks["transit:transform"]={get:function(e){return c(e).data("transform")||new r},set:function(e,t){var n=t;n instanceof r||(n=new r(n)),"WebkitTransform"!==d.transform||i?e.style[d.transform]=n.toString():e.style[d.transform]=n.toString(!0),c(e).data("transform",n)}},c.cssHooks.transform={set:c.cssHooks["transit:transform"].set},c.fn.jquery<"1.8"&&(c.cssHooks.transformOrigin={get:function(e){return e.style[d.transformOrigin]},set:function(e,t){e.style[d.transformOrigin]=t}},c.cssHooks.transition={get:function(e){return e.style[d.transition]},set:function(e,t){e.style[d.transition]=t}}),n("scale"),n("translate"),n("rotate"),n("rotateX"),n("rotateY"),n("rotate3d"),n("perspective"),n("skewX"),n("skewY"),n("x",!0),n("y",!0),r.prototype={setFromString:function(e,t){var n="string"==typeof t?t.split(","):t.constructor===Array?t:[t];n.unshift(e),r.prototype.set.apply(this,n)},set:function(e){var t=Array.prototype.slice.apply(arguments,[1]);this.setter[e]?this.setter[e].apply(this,t):this[e]=t.join(",")},get:function(e){return this.getter[e]?this.getter[e].apply(this):this[e]||0},setter:{rotate:function(e){this.rotate=a(e,"deg")},rotateX:function(e){this.rotateX=a(e,"deg")},rotateY:function(e){this.rotateY=a(e,"deg")},scale:function(e,t){void 0===t&&(t=e),this.scale=e+","+t},skewX:function(e){this.skewX=a(e,"deg")},skewY:function(e){this.skewY=a(e,"deg")},perspective:function(e){this.perspective=a(e,"px")},x:function(e){this.set("translate",e,null)},y:function(e){this.set("translate",null,e)},translate:function(e,t){void 0===this._translateX&&(this._translateX=0),void 0===this._translateY&&(this._translateY=0),null!=e&&(this._translateX=a(e,"px")),null!=t&&(this._translateY=a(t,"px")),this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var e=(this.scale||"1,1").split(",");return e[0]&&(e[0]=parseFloat(e[0])),e[1]&&(e[1]=parseFloat(e[1])),e[0]===e[1]?e[0]:e},rotate3d:function(){for(var e=(this.rotate3d||"0,0,0,0deg").split(","),t=0;t<=3;++t)e[t]&&(e[t]=parseFloat(e[t]));return e[3]&&(e[3]=a(e[3],"deg")),e}},parse:function(e){var i=this;e.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(e,t,n){i.setFromString(t,n)})},toString:function(e){var t=[];for(var n in this)if(this.hasOwnProperty(n)){if(!d.transform3d&&("rotateX"===n||"rotateY"===n||"perspective"===n||"transformOrigin"===n))continue;"_"!==n[0]&&(e&&"scale"===n?t.push(n+"3d("+this[n]+",1)"):e&&"translate"===n?t.push(n+"3d("+this[n]+",0)"):t.push(n+"("+this[n]+")"))}return t.join(" ")}},c.fn.transition=c.fn.transit=function(r,e,t,o){var a=this,n=0,i=!0;"function"==typeof e&&(o=e,e=void 0),"function"==typeof t&&(o=t,t=void 0),void 0!==r.easing&&(t=r.easing,delete r.easing),void 0!==r.duration&&(e=r.duration,delete r.duration),void 0!==r.complete&&(o=r.complete,delete r.complete),void 0!==r.queue&&(i=r.queue,delete r.queue),void 0!==r.delay&&(n=r.delay,delete r.delay),void 0===e&&(e=c.fx.speeds._default),void 0===t&&(t=c.cssEase._default),e=g(e);var s=f(r,e,t,n),u=c.transit.enabled&&d.transition?parseInt(e,10)+parseInt(n,10):0;if(0===u){return p(a,i,function(e){a.css(r),o&&o.apply(a),e&&e()}),a}var l={};return p(a,i,function(e){var t,n,i;this.offsetWidth,t=e,n=!1,i=function(){n&&a.unbind(h,i),0<u&&a.each(function(){this.style[d.transition]=l[this]||null}),"function"==typeof o&&o.apply(a),"function"==typeof t&&t()},0<u&&h&&c.transit.useTransitionEnd?(n=!0,a.bind(h,i)):window.setTimeout(i,u),a.each(function(){0<u&&(this.style[d.transition]=s),c(this).css(r)})}),this},c.transit.getTransitionValue=f}(jQuery),function(u){u.belowthefold=function(e,t){return u(window).height()+u(window).scrollTop()<=u(e).offset().top-t.threshold},u.abovethetop=function(e,t){return u(window).scrollTop()>=u(e).offset().top+u(e).height()-t.threshold},u.rightofscreen=function(e,t){return u(window).width()+u(window).scrollLeft()<=u(e).offset().left-t.threshold},u.leftofscreen=function(e,t){return u(window).scrollLeft()>=u(e).offset().left+u(e).width()-t.threshold},u.inviewport=function(e,t){var n=u(e),i=n.offset(),r=u(window),o=r.scrollTop(),a=t.threshold;if(i.top-a<o){if(!(i.top+n.height()+a>=o))return!1}else if(!(i.top-a<=o+r.height()))return!1;var s=r.scrollLeft();if(i.left-a<s){if(!(i.left+n.width()+a>=s))return!1}else if(!(i.left-a<=s+r.width()))return!1;return!0},u.extend(u.expr[":"],{"below-the-fold":function(e,t,n){return u.belowthefold(e,{threshold:0})},"above-the-top":function(e,t,n){return u.abovethetop(e,{threshold:0})},"left-of-screen":function(e,t,n){return u.leftofscreen(e,{threshold:0})},"right-of-screen":function(e,t,n){return u.rightofscreen(e,{threshold:0})},"in-viewport":function(e,t,n){return u.inviewport(e,{threshold:0})}})}(jQuery),function(e,i,a){var t,n,r="placeholder"in i.createElement("input"),o="placeholder"in i.createElement("textarea"),s=a.fn,u=a.valHooks;function l(e,t){var n=a(this);if(this.value==n.attr("placeholder")&&n.hasClass("placeholder"))if(n.data("placeholder-password")){if(n=n.hide().next().show().attr("id",n.removeAttr("id").data("placeholder-id")),!0===e)return n[0].value=t;n.focus()}else this.value="",n.removeClass("placeholder"),this==i.activeElement&&this.select()}function c(){var t,n,i,r,e=a(this),o=this.id;if(""==this.value){if("password"==this.type){if(!e.data("placeholder-textinput")){try{t=e.clone().attr({type:"text"})}catch(e){t=a("<input>").attr(a.extend((n=this,i={},r=/^jQuery\d+$/,a.each(n.attributes,function(e,t){t.specified&&!r.test(t.name)&&(i[t.name]=t.value)}),i),{type:"text"}))}t.removeAttr("name").data({"placeholder-password":!0,"placeholder-id":o}).bind("focus.placeholder",l),e.data({"placeholder-textinput":t,"placeholder-id":o}).before(t)}e=e.removeAttr("id").hide().prev().attr("id",o).show()}e.addClass("placeholder"),e[0].value=e.attr("placeholder")}else e.removeClass("placeholder")}r&&o?(n=s.placeholder=function(){return this}).input=n.textarea=!0:((n=s.placeholder=function(){return this.filter((r?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":l,"blur.placeholder":c}).data("placeholder-enabled",!0).trigger("blur.placeholder"),this}
1).input=r,n.textarea=o,t={get:function(e){var t=a(e);return t.data("placeholder-enabled")&&t.hasClass("placeholder")?"":e.value},set:function(e,t){var n=a(e);return n.data("placeholder-enabled")?(""==t?(e.value=t,e!=i.activeElement&&c.call(e)):n.hasClass("placeholder")&&l.call(e,!0,t)||(e.value=t),n):e.value=t}},r||(u.input=t),o||(u.textarea=t),a(function(){a(i).delegate("form","submit.placeholder",function(){var e=a(".placeholder",this).each(l);setTimeout(function(){e.each(c)},10)})}),a(e).bind("beforeunload.placeholder",function(){a(".placeholder").each(function(){this.value=""})}))}(this,document,jQuery),function(e,n,i,t,r,o){e.fn.append=function(){var e=this.parent().children().last(),t=n.apply(this,arguments);return this.trigger("add",arguments[0]),this.trigger("mod",arguments[0]),this.trigger("append",arguments[0]),this.trigger("modLast",arguments[0]),0<e.length&&e.trigger("after",arguments[0]),t},e.fn.prepend=function(){var e=this.parent().children().first(),t=i.apply(this,arguments);return this.trigger("add",arguments[0]),this.trigger("mod",arguments[0]),this.trigger("prepend",arguments[0]),this.trigger("modFirst",arguments[0]),0<e.length&&e.trigger("before",arguments[0]),t},e.fn.after=function(){var e=t.apply(this,arguments);return this.parent().trigger("add",arguments[0]),this.parent().trigger("mod",arguments[0]),this.trigger("after",arguments[0]),this.next().next().trigger("before",arguments[0]),0<this.parent().length&&this.parent().children().last().is(this)&&(this.parent().trigger("append",arguments[0]),this.parent().trigger("modLast",arguments[0])),e},e.fn.before=function(){var e=r.apply(this,arguments);return this.parent().trigger("add",arguments[0]),this.parent().trigger("mod",arguments[0]),this.trigger("before",arguments[0]),this.prev().prev().trigger("after",arguments[0]),0<this.parent().length&&this.parent().children().first().is(this)&&(this.parent().trigger("prepend",arguments[0]),this.parent().trigger("modFirst",arguments[0])),e},e.fn.remove=function(){var e=this.prev(),t=this.next(),n=this.parent(),i=o.apply(this,arguments);return n.trigger("rm",arguments[0]),n.trigger("mod",arguments[0]),0<e.length?e.trigger("after",arguments[0]):(n.trigger("rmFirst",arguments[0]),n.trigger("modFirst",arguments[0])),0<t.length?t.trigger("before",arguments[0]):(n.trigger("rmLast",arguments[0]),n.trigger("modLast",arguments[0])),i}}(jQuery,jQuery.fn.append,jQuery.fn.prepend,jQuery.fn.after,jQuery.fn.before,jQuery.fn.remove),function(){function e(){}var t=e.prototype,n=this,i=n.EventEmitter;function o(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function r(e){return function(){return this[e].apply(this,arguments)}}t.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e)for(n in t={},i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n]);else t=i[e]||(i[e]=[]);return t},t.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},t.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&((t={})[e]=n),t||n},t.addListener=function(e,t){var n,i=this.getListenersAsObject(e),r="object"==typeof t;for(n in i)i.hasOwnProperty(n)&&-1===o(i[n],t)&&i[n].push(r?t:{listener:t,once:!1});return this},t.on=r("addListener"),t.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},t.once=r("addOnceListener"),t.defineEvent=function(e){return this.getListeners(e),this},t.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},t.removeListener=function(e,t){var n,i,r=this.getListenersAsObject(e);for(i in r)r.hasOwnProperty(i)&&-1!==(n=o(r[i],t))&&r[i].splice(n,1);return this},t.off=r("removeListener"),t.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},t.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},t.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,a=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):a.call(this,i,r));return this},t.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},t.removeAllListeners=r("removeEvent"),t.emitEvent=function(e,t){var n,i,r,o=this.getListenersAsObject(e);for(r in o)if(o.hasOwnProperty(r))for(i=o[r].length;i--;)!0===(n=o[r][i]).once&&this.removeListener(e,n.listener),n.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},t.trigger=r("emitEvent"),t.emit=function(e){var t=Array.prototype.slice.call(arguments,1
1);return this.emitEvent(e,t)},t.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},t._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},t._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return n.EventEmitter=i,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}.call(this),function(i){var e=document.documentElement,t=function(){};e.addEventListener?t=function(e,t,n){e.addEventListener(t,n,!1)}:e.attachEvent&&(t=function(t,e,n){t[e+n]=n.handleEvent?function(){var e=i.event;e.target=e.target||e.srcElement,n.handleEvent.call(n,e)}:function(){var e=i.event;e.target=e.target||e.srcElement,n.call(t,e)},t.attachEvent("on"+e,t[e+n])});var n=function(){};e.removeEventListener?n=function(e,t,n){e.removeEventListener(t,n,!1)}:e.detachEvent&&(n=function(t,n,i){t.detachEvent("on"+n,t[n+i]);try{delete t[n+i]}catch(e){t[n+i]=void 0}});var r={bind:t,unbind:n};"function"==typeof define&&define.amd?define("eventie/eventie",r):i.eventie=r}(this),function(e){var a=e.jQuery,s=e.console,u=void 0!==s;function l(e,t){for(var n in t)e[n]=t[n];return e}var o=Object.prototype.toString;function c(e){var t,n=[];if(t=e,"[object Array]"===o.call(t))n=e;else if("number"==typeof e.length)for(var i=0,r=e.length;i<r;i++)n.push(e[i]);else n.push(e);return n}function t(e,t){function r(e,t,n){if(!(this instanceof r))return new r(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=c(e),this.options=l({},this.options),"function"==typeof t?n=t:l(this.options,t),n&&this.on("always",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var i=this;setTimeout(function(){i.check()})}function n(e){this.img=e}(r.prototype=new e).options={},r.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;e<t;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);for(var i=n.querySelectorAll("img"),r=0,o=i.length;r<o;r++){var a=i[r];this.addImage(a)}}},r.prototype.addImage=function(e){var t=new n(e);this.images.push(t)},r.prototype.check=function(){var n=this,i=0,r=this.images.length;if(this.hasAnyBroken=!1,r)for(var e=0;e<r;e++){var t=this.images[e];t.on("confirm",o),t.check()}else this.complete();function o(e,t){return n.options.debug&&u&&s.log("confirm",e,t),n.progress(e),++i===r&&n.complete(),!0}},r.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify(t,e)})},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var n=this;setTimeout(function(){if(n.emit(t,n),n.emit("always",n),n.jqDeferred){var e=n.hasAnyBroken?"reject":"resolve";n.jqDeferred[e](n)}})},a&&(a.fn.imagesLoaded=function(e,t){return new r(this,e,t).jqDeferred.promise(a(this))}),(n.prototype=new e).check=function(){var e=i[this.img.src]||new o(this.img.src);if(e.isConfirmed)this.confirm(e.isLoaded,"cached was confirmed");else if(this.img.complete&&void 0!==this.img.naturalWidth)this.confirm(0!==this.img.naturalWidth,"naturalWidth");else{var n=this;e.on("confirm",function(e,t){return n.confirm(e.isLoaded,t),!0}),e.check()}},n.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var i={};function o(e){this.src=e,i[e]=this}return(o.prototype=new e).check=function(){if(!this.isChecked){var e=new Image;t.bind(e,"load",this),t.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},o.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},o.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},o.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},o.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},o.prototype.unbindProxyEvents=function(e){t.unbind(e.target,"load",this),t.unbind(e.target,"error",this)},r}"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],t):e.imagesLoaded=t(e.EventEmitter,e.eventie)}(window),function(f){var g,e={className:"autosizejs",id:"autosizejs",append:"\n",callback:!1,resizeDelay:10,placeholder:!0},m=["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","textTransform","wordSpacing","textIndent","whiteSpace"],v=f('<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; padding: 0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden; transition:none; -webkit-transition:none; -moz-transition:none;"/>').data("autosize",!0)[0];(v.style.lineHeight="99px")===f(v).css("lineHeight")&&m.push("lineHeight"),v.style.lineHeight="",f.fn.autosize=function(p){return this.length?(p=f.extend({},e,p||{}),v.parentNode!==document.body&&f(document.body).append(v),this.each(function(){var i,n,e,r=this,o=f(r),a=0,s=f.isFunction(p.callback),t={height:r.style.height,overflow:r.style.overflow,overflowY:r.style.overflowY,wordWrap:r.style.wordWrap,resize:r.style.resize},u=o.width(),l=o.css("resize");function c(){var n,i=!!window.getComputedStyle&&window.getComputedStyle(r,null);i?(0!==(n=r.getBoundingClientRect().width)&&"number"==typeof n||(n=parseInt(i.width,10)),f.each(["paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],function(e,t){n-=parseInt(i[t],10)})):n=o.width(),v.style.width=Math.max(n,0)+"px"}function d(){var e,t;g!==r?function(){var n={};if(g=r,v.className=p.className,v.id=p.id,i=parseInt(o.css("maxHeight"),10),f.each(m,function(e,t){n[t]=o.css(t)}),f(v).css(n).attr("wrap",o.attr("wrap")),c(),window.chrome){var e=r.style.width;r.style.width="0px",r.offsetWidth,r.style.width=e}}():c(),!r.value&&p.placeholder?v.value=o.attr("placeholder")||"":v.value=r.value,v.value+=p.append||"",v.style.overflowY=r.style.overflowY,t=parseInt(r.style.height,10),v.scrollTop=0,v.scrollTop=9e4,e=v.scrollTop,i&&i<e?(r.style.overflowY="scroll",e=i):(r.style.overflowY="hidden",e<n&&(e=n)),t!==(e+=a)&&(r.style.height=e+"px",s&&p.
1callback.call(r,r),o.trigger("autosize.resized"))}function h(){clearTimeout(e),e=setTimeout(function(){var e=o.width();e!==u&&(u=e,d())},parseInt(p.resizeDelay,10))}o.data("autosize")||(o.data("autosize",!0),"border-box"!==o.css("box-sizing")&&"border-box"!==o.css("-moz-box-sizing")&&"border-box"!==o.css("-webkit-box-sizing")||(a=o.outerHeight()-o.height()),n=Math.max(parseInt(o.css("minHeight"),10)-a||0,o.height()),o.css({overflow:"hidden",overflowY:"hidden",wordWrap:"break-word"}),"vertical"===l?o.css("resize","none"):"both"===l&&o.css("resize","horizontal"),"onpropertychange"in r?"oninput"in r?o.on("input.autosize keyup.autosize",d):o.on("propertychange.autosize",function(){"value"===event.propertyName&&d()}):o.on("input.autosize",d),!1!==p.resizeDelay&&f(window).on("resize.autosize",h),o.on("autosize.resize",d),o.on("autosize.resizeIncludeStyle",function(){g=null,d()}),o.on("autosize.destroy",function(){g=null,clearTimeout(e),f(window).off("resize",h),o.off("autosize").off(".autosize").css(t).removeData("autosize")}),d())})):this}}(jQuery||$),function(e){function t(){}function n(l){if(l){var c="undefined"==typeof console?t:function(e){console.error(e)};return l.bridget=function(e,t){var s,u,n;(n=t).prototype.option||(n.prototype.option=function(e){l.isPlainObject(e)&&(this.options=l.extend(!0,this.options,e))}),s=e,u=t,l.fn[s]=function(t){if("string"!=typeof t)return this.each(function(){var e=l.data(this,s);e?(e.option(t),e._init()):(e=new u(this,t),l.data(this,s,e))});for(var e=d.call(arguments,1),n=0,i=this.length;n<i;n++){var r=this[n],o=l.data(r,s);if(o)if(l.isFunction(o[t])&&"_"!==t.charAt(0)){var a=o[t].apply(o,e);if(void 0!==a)return a}else c("no such method '"+t+"' for "+s+" instance");else c("cannot call methods on "+s+" prior to initialization; attempted to call '"+t+"'")}return this}},l.bridget}}var d=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],n):n("object"==typeof exports?require("jquery"):e.jQuery)}(window),function(e){function n(e){return new RegExp("(^|\\s+)"+e+"(\\s+|$)")}function t(e,t){(i(e,t)?o:r)(e,t)}var i,r,o;o="classList"in document.documentElement?(i=function(e,t){return e.classList.contains(t)},r=function(e,t){e.classList.add(t)},function(e,t){e.classList.remove(t)}):(i=function(e,t){return n(t).test(e.className)},r=function(e,t){i(e,t)||(e.className=e.className+" "+t)},function(e,t){e.className=e.className.replace(n(t)," ")});var a={hasClass:i,addClass:r,removeClass:o,toggleClass:t,has:i,add:r,remove:o,toggle:t};"function"==typeof define&&define.amd?define("classie/classie",a):"object"==typeof exports?module.exports=a:e.classie=a}(window),function(e){function t(e){if(e){if("string"==typeof o[e])return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var t,n=0,i=r.length;n<i;n++)if(t=r[n]+e,"string"==typeof o[t])return t}}var r="Webkit Moz ms Ms O".split(" "),o=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return t}):"object"==typeof exports?module.exports=t:e.getStyleProperty=t}(window),function(E,e){function D(e){var t=parseFloat(e);return-1===e.indexOf("%")&&!isNaN(t)&&t}function t(y){function b(e,t){if(E.getComputedStyle||-1===t.indexOf("%"))return t;var n=e.style,i=n.left,r=e.runtimeStyle,o=r&&r.left;return o&&(r.left=e.currentStyle.left),n.left=t,t=n.pixelLeft,n.left=i,o&&(r.left=o),t}var w,x,_,k=!1;return function(e){if(function(){if(!k){k=!0;var t=E.getComputedStyle;if(r=t?function(e){return t(e,null)}:function(e){return e.currentStyle},w=function(e){var t=r(e);return t||C("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),t},x=y("boxSizing")){var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style[x]="border-box";var n=document.body||document.documentElement;n.appendChild(e);var i=w(e);_=200===D(i.width),n.removeChild(e)}}var r}(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var t=w(e);if("none"===t.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0,n=S.length;t<n;t++)e[S[t]]=0;return e}();var n={};n.width=e.offsetWidth,n.height=e.offsetHeight;for(var i=n.isBorderBox=!(!x||!t[x]||"border-box"!==t[x]),r=0,o=S.length;r<o;r++){var a=S[r],s=t[a];s=b(e,s);var u=parseFloat(s);n[a]=isNaN(u)?0:u}var l=n.paddingLeft+n.paddingRight,c=n.paddingTop+n.paddingBottom,d=n.marginLeft+n.marginRight,h=n.marginTop+n.marginBottom,p=n.borderLeftWidth+n.borderRightWidth,f=n.borderTopWidth+n.borderBottomWidth,g=i&&_,m=D(t.width);!1!==m&&(n.width=m+(g?0:l+p));var v=D(t.height);return!1!==v&&(n.height=v+(g?0:c+f)),n.innerWidth=n.width-(l+p),n.innerHeight=n.height-(c+f),n.outerWidth=n.width+d,n.outerHeight=n.height+h,n}}}var C="undefined"==typeof console?function(){}:function(e){console.error(e)},S=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],t):"object"==typeof exports?module.exports=t(require("desandro-get-style-property")):E.getSize=t(E.getStyleProperty)}(window),function(n){function i(e){var t=n.event;return t.target=t.target||t.srcElement||e,t}var e=document.documentElement,t=function(){};e.addEventListener?t=function(e,t,n){e.addEventListener(t,n,!1)}:e.attachEvent&&(t=function(t,e,n){t[e+n]=n.handleEvent?function(){var e=i(t);n.handleEvent.call(n,e)}:function(){var e=i(t);n.call(t,e)},t.attachEvent("on"+e,t[e+n])});var r=function(){};e.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:e.detachEvent&&(r=function(t,n,i){t.detachEvent("on"+n,t[n+i]);try{delete t[n+i]}catch(e){t[n+i]=void 0}});var o={bind:t,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):"object"==typeof exports?module.exports=o:n.eventie=o}(window),function(){function e(){}function o(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function t(e){return function(){return this[e].apply(this,arguments)}}var n=e.prototype,i=this,r=i.EventEmitter;n.getListeners=function(e){var t,n,i=this._getEvents();if(e instanceof RegExp)for(n in t={},i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n]);else t=i[e]||(i[e]=[]);return t},n.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},n.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&((t={})[e]=n),t||n},n.addListener=function(e,t){var n,i=this.getListenersAsObject(e),r="object"==typeof t;for(n in i)i.hasOwnProperty(n)&&-1===o(i[n],t)&&i[n].push(r?t:{listener:t,once:!1});return this},n.on=t("addListener"),n.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},n.once=t("addOnceListener"),n.defineEvent=function(e){return this.getListeners(e),this},n.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},n.removeListener=function(e,t){var n,i,r=this.getListenersAsObject(e);for(i in r)r.hasOwnProperty(i)&&(-1!==(n=o(r[i],t))&&r[i].splice(n,1));return this},n.off=t("removeListener"),n.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},n.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},n.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,a=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):a.call(this,i,r));return this},n.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if(e instanceof RegExp)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},n.removeAllListeners=t("removeEvent"),n.emitEvent=function(e,t){var n,i,r,o=this.getListenersAsObject(e);for(r in o)if(o.hasOwnProperty(r))for(i=o[r].length;i--;)!0===(n=o[r][i]).once&&this.removeListener(e,n.listener),n.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},n.trigger=t("emitEvent"),n.emit=function(e){var t=Array.prototype.slice.call(arguments,1
1);return this.emitEvent(e,t)},n.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},n._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},n._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return i.EventEmitter=r,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:i.EventEmitter=e}.call(this),function(t){function n(e){"function"==typeof e&&(n.isReady?e():a.push(e))}function i(e){var t="readystatechange"===e.type&&"complete"!==o.readyState;n.isReady||t||r()}function r(){n.isReady=!0;for(var e=0,t=a.length;e<t;e++){(0,a[e])()}}function e(e){return"complete"===o.readyState?r():(e.bind(o,"DOMContentLoaded",i),e.bind(o,"readystatechange",i),e.bind(t,"load",i)),n}var o=t.document,a=[];n.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],e):"object"==typeof exports?module.exports=e(require("eventie")):t.docReady=e(t.eventie)}(window),function(r){function n(e,t){return e[i](t)}function o(e){e.parentNode||document.createDocumentFragment().appendChild(e)}var e,i=function(){if(r.matches)return"matches";if(r.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],t=0,n=e.length;t<n;t++){var i=e[t]+"MatchesSelector";if(r[i])return i}}();if(i){var t=n(document.createElement("div"),"div");e=t?n:function(e,t){return o(e),n(e,t)}}else e=function(e,t){o(e);for(var n=e.parentNode.querySelectorAll(t),i=0,r=n.length;i<r;i++)if(n[i]===e)return!0;return!1};"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return e}):"object"==typeof exports?module.exports=e:window.matchesSelector=e}(Element.prototype),function(n,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(e,t){return i(n,e,t)}):"object"==typeof exports?module.exports=i(n,require("doc-ready"),require("desandro-matches-selector")):n.fizzyUIUtils=i(n,n.docReady,n.matchesSelector)}(window,function(h,e,l){var n,p={extend:function(e,t){for(var n in t)e[n]=t[n];return e},modulo:function(e,t){return(e%t+t)%t}},t=Object.prototype.toString;p.isArray=function(e){return"[object Array]"==t.call(e)},p.makeArray=function(e){var t=[];if(p.isArray(e))t=e;else if(e&&"number"==typeof e.length)for(var n=0,i=e.length;n<i;n++)t.push(e[n]);else t.push(e);return t},p.indexOf=Array.prototype.indexOf?function(e,t){return e.indexOf(t)}:function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},p.removeFrom=function(e,t){var n=p.indexOf(e,t);-1!=n&&e.splice(n,1)},p.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(e){return e instanceof HTMLElement}:function(e){return e&&"object"==typeof e&&1==e.nodeType&&"string"==typeof e.nodeName},p.setText=function(e,t){e[n=n||(void 0!==document.documentElement.textContent?"textContent":"innerText")]=t},p.getParent=function(e,t){for(;e!=document.body;)if(e=e.parentNode,l(e,t))return e},p.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},p.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},p.filterFindElements=function(e,t){for(var n=[],i=0,r=(e=p.makeArray(e)).length;i<r;i++){var o=e[i];if(p.isElement(o))if(t){l(o,t)&&n.push(o);for(var a=o.querySelectorAll(t),s=0,u=a.length;s<u;s++)n.push(a[s])}else n.push(o)}return n},p.debounceMethod=function(e,t,i){var r=e.prototype[t],o=t+"Timeout";e.prototype[t]=function(){var e=this[o];e&&clearTimeout(e);var t=arguments,n=this;this[o]=setTimeout(function(){r.apply(n,t),delete n[o]},i||100)}},p.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(e,t,n){return t+"-"+n}).toLowerCase()};var f=h.console;return p.htmlInit=function(c,d){e(function(){for(var e=p.toDashed(d),t=document.querySelectorAll(".js-"+e),n="data-"+e+"-options",i=0,r=t.length;i<r;i++){var o,a=t[i],s=a.getAttribute(n);try{o=s&&JSON.parse(s)}catch(e){f&&f.error("Error parsing "+n+" on "+a.nodeName.toLowerCase()+(a.id?"#"+a.id:"")+": "+e);continue}var u=new c(a,o),l=h.jQuery;l&&l.data(a,d,u)}})},p}),function(r,o){"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(e,t,n,i){return o(r,e,t,n,i)}):"object"==typeof exports?module.exports=o(r,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(r.Outlayer={},r.Outlayer.Item=o(r,r.EventEmitter,r.getSize,r.getStyleProperty,r.fizzyUIUtils))}(window,function(e,t,n,o,i){function r(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var a=e.getComputedStyle,l=a?function(e){return a(e,null)}:function(e){return e.currentStyle},s=o("transition"),u=o("transform"),c=s&&u,d=!!o("perspective"),h={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[s],p=["transform","transition","transitionDuration","transitionProperty"],f=function(){for(var e={},t=0,n=p.length;t<n;t++){var i=p[t],r=o(i);r&&r!==i&&(e[i]=r)}return e}();i.extend(r.prototype,t.prototype),r.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.getSize=function(){this.size=n(this.element)},r.prototype.css=function(e){var t=this.element.style;for(var n in e){t[f[n]||n]=e[n]}},r.prototype.getPosition=function(){var e=l(this.element),t=this.layout.options,n=t.isOriginLeft,i=t.isOriginTop,r=e[n?"left":"right"],o=e[i?"top":"bottom"],a=this.layout.size,s=-1!=r.indexOf("%")?parseFloat(r)/100*a.width:parseInt(r,10),u=-1!=o.indexOf("%")?parseFloat(o)/100*a.height:parseInt(o,10);s=isNaN(s)?0:s,u=isNaN(u)?0:u,s-=n?a.paddingLeft:a.paddingRight,u-=i?a.paddingTop:a.paddingBottom,this.position.x=s,this.position.y=u},r.prototype.layoutPosition=function(){var e=this.layout.size,t=this.layout.options,n={},i=t.isOriginLeft?"paddingLeft":"paddingRight",r=t.isOriginLeft?"left"
1:"right",o=t.isOriginLeft?"right":"left",a=this.position.x+e[i];n[r]=this.getXValue(a),n[o]="";var s=t.isOriginTop?"paddingTop":"paddingBottom",u=t.isOriginTop?"top":"bottom",l=t.isOriginTop?"bottom":"top",c=this.position.y+e[s];n[u]=this.getYValue(c),n[l]="",this.css(n),this.emitEvent("layout",[this])},r.prototype.getXValue=function(e){var t=this.layout.options;return t.percentPosition&&!t.isHorizontal?e/this.layout.size.width*100+"%":e+"px"},r.prototype.getYValue=function(e){var t=this.layout.options;return t.percentPosition&&t.isHorizontal?e/this.layout.size.height*100+"%":e+"px"},r.prototype._transitionTo=function(e,t){this.getPosition();var n=this.position.x,i=this.position.y,r=parseInt(e,10),o=parseInt(t,10),a=r===this.position.x&&o===this.position.y;if(this.setPosition(e,t),!a||this.isTransitioning){var s=e-n,u=t-i,l={};l.transform=this.getTranslate(s,u),this.transition({to:l,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},r.prototype.getTranslate=function(e,t){var n=this.layout.options;return e=n.isOriginLeft?e:-e,t=n.isOriginTop?t:-t,d?"translate3d("+e+"px, "+t+"px, 0)":"translate("+e+"px, "+t+"px)"},r.prototype.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},r.prototype.moveTo=c?r.prototype._transitionTo:r.prototype.goTo,r.prototype.setPosition=function(e,t){this.position.x=parseInt(e,10),this.position.y=parseInt(t,10)},r.prototype._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},r.prototype._transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var n in e.onTransitionEnd)t.onEnd[n]=e.onTransitionEnd[n];for(n in e.to)t.ingProperties[n]=!0,e.isCleaning&&(t.clean[n]=!0);if(e.from){this.css(e.from);this.element.offsetHeight;null}this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var g="opacity,"+(f.transform||"transform").replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()});r.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:g,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(h,this,!1))},r.prototype.transition=r.prototype[s?"_transition":"_nonTransition"],r.prototype.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},r.prototype.onotransitionend=function(e){this.ontransitionend(e)};var m={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};r.prototype.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,n=m[e.propertyName]||e.propertyName;if(delete t.ingProperties[n],function(e){for(var t in e)return!1;return!0}(t.ingProperties)&&this.disableTransition(),n in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[n]),n in t.onEnd)t.onEnd[n].call(this),delete t.onEnd[n];this.emitEvent("transitionEnd",[this])}},r.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(h,this,!1),this.isTransitioning=!1},r.prototype._removeStyles=function(e){var t={};for(var n in e)t[n]="";this.css(t)};var v={transitionProperty:"",transitionDuration:""};return r.prototype.removeTransitionStyles=function(){this.css(v)},r.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},r.prototype.remove=function(){if(s&&parseFloat(this.layout.options.transitionDuration)){var e=this;this.once("transitionEnd",function(){e.removeElem()}),this.hide()}else this.removeElem()},r.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},r.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},r.prototype.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var n in t)return n},r.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},r.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},r.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},r}),function(o,a){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(e,t,n,i,r){return a(o,e,t,n,i,r)}):"object"==typeof exports?module.exports=a(o,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):o.Outlayer=a(o,o.eventie,o.EventEmitter,o.getSize,o.fizzyUIUtils,o.Outlayer.Item)}(window,function(e,t,n,r,a,i){function o(e,t){var n=a.getQueryElement(e);
1if(n){this.element=n,u&&(this.$element=u(this.element)),this.options=a.extend({},this.constructor.defaults),this.option(t);var i=++c;this.element.outlayerGUID=i,(d[i]=this)._create(),this.options.isInitLayout&&this.layout()}else s&&s.error("Bad element for "+this.constructor.namespace+": "+(n||e))}var s=e.console,u=e.jQuery,l=function(){},c=0,d={};return o.namespace="outlayer",o.Item=i,o.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},a.extend(o.prototype,n.prototype),o.prototype.option=function(e){a.extend(this.options,e)},o.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),a.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},o.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},o.prototype._itemize=function(e){for(var t=this._filterFindItemElements(e),n=this.constructor.Item,i=[],r=0,o=t.length;r<o;r++){var a=new n(t[r],this);i.push(a)}return i},o.prototype._filterFindItemElements=function(e){return a.filterFindElements(e,this.options.itemSelector)},o.prototype.getItemElements=function(){for(var e=[],t=0,n=this.items.length;t<n;t++)e.push(this.items[t].element);return e},o.prototype._init=o.prototype.layout=function(){this._resetLayout(),this._manageStamps();var e=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},o.prototype._resetLayout=function(){this.getSize()},o.prototype.getSize=function(){this.size=r(this.element)},o.prototype._getMeasurement=function(e,t){var n,i=this.options[e];i?("string"==typeof i?n=this.element.querySelector(i):a.isElement(i)&&(n=i),this[e]=n?r(n)[t]:i):this[e]=0},o.prototype.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},o.prototype._getItemsForLayout=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var r=e[n];r.isIgnored||t.push(r)}return t},o.prototype._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){for(var n=[],i=0,r=e.length;i<r;i++){var o=e[i],a=this._getItemLayoutPosition(o);a.item=o,a.isInstant=t||o.isLayoutInstant,n.push(a)}this._processLayoutQueue(n)}},o.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},o.prototype._processLayoutQueue=function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];this._positionItem(i.item,i.x,i.y,i.isInstant)}},o.prototype._positionItem=function(e,t,n,i){i?e.goTo(t,n):e.moveTo(t,n)},o.prototype._postLayout=function(){this.resizeContainer()},o.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},o.prototype._getContainerSize=l,o.prototype._setContainerMeasure=function(e,t){if(void 0!==e){var n=this.size;n.isBorderBox&&(e+=t?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},o.prototype._emitCompleteOnItems=function(e,t){function n(){r.dispatchEvent(e+"Complete",null,[t])}function i(){++a===o&&n()}var r=this,o=t.length;if(t&&o)for(var a=0,s=0,u=t.length;s<u;s++){t[s].once(e,i)}else n()},o.prototype.dispatchEvent=function(e,t,n){var i=t?[t].concat(n):n;if(this.emitEvent(e,i),u)if(this.$element=this.$element||u(this.element),t){var r=u.Event(t);r.type=e,this.$element.trigger(r,n)}else this.$element.trigger(e,n)},o.prototype.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},o.prototype.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},o.prototype.stamp=function(e){if(e=this._find(e)){this.stamps=this.stamps.concat(e);for(var t=0,n=e.length;t<n;t++){var i=e[t];this.ignore(i)}}},o.prototype.unstamp=function(e){if(e=this._find(e))for(var t=0,n=e.length;t<n;t++){var i=e[t];a.removeFrom(this.stamps,i),this.unignore(i)}},o.prototype._find=function(e){return e?("string"==typeof e&&(e=this.element.querySelectorAll(e)),e=a.makeArray(e)):void 0},o.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect
1();for(var e=0,t=this.stamps.length;e<t;e++){var n=this.stamps[e];this._manageStamp(n)}}},o.prototype._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},o.prototype._manageStamp=l,o.prototype._getElementOffset=function(e){var t=e.getBoundingClientRect(),n=this._boundingRect,i=r(e);return{left:t.left-n.left-i.marginLeft,top:t.top-n.top-i.marginTop,right:n.right-t.right-i.marginRight,bottom:n.bottom-t.bottom-i.marginBottom}},o.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},o.prototype.bindResize=function(){this.isResizeBound||(t.bind(e,"resize",this),this.isResizeBound=!0)},o.prototype.unbindResize=function(){this.isResizeBound&&t.unbind(e,"resize",this),this.isResizeBound=!1},o.prototype.onresize=function(){this.resizeTimeout&&clearTimeout(this.resizeTimeout);var e=this;this.resizeTimeout=setTimeout(function(){e.resize(),delete e.resizeTimeout},100)},o.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},o.prototype.needsResizeLayout=function(){var e=r(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},o.prototype.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},o.prototype.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},o.prototype.prepended=function(e){var t=this._itemize(e);if(t.length){var n=this.items.slice(0);this.items=t.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(n)}},o.prototype.reveal=function(e){this._emitCompleteOnItems("reveal",e);for(var t=e&&e.length,n=0;t&&n<t;n++){e[n].reveal()}},o.prototype.hide=function(e){this._emitCompleteOnItems("hide",e);for(var t=e&&e.length,n=0;t&&n<t;n++){e[n].hide()}},o.prototype.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},o.prototype.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},o.prototype.getItem=function(e){for(var t=0,n=this.items.length;t<n;t++){var i=this.items[t];if(i.element===e)return i}},o.prototype.getItems=function(e){for(var t=[],n=0,i=(e=a.makeArray(e)).length;n<i;n++){var r=e[n],o=this.getItem(r);o&&t.push(o)}return t},o.prototype.remove=function(e){var t=this.getItems(e);if(this._emitCompleteOnItems("remove",t),t&&t.length)for(var n=0,i=t.length;n<i;n++){var r=t[n];r.remove(),a.removeFrom(this.items,r)}},o.prototype.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="";for(var t=0,n=this.items.length;t<n;t++){this.items[t].destroy()}this.unbindResize();var i=this.element.outlayerGUID;delete d[i],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},o.data=function(e){var t=(e=a.getQueryElement(e))&&e.outlayerGUID;return t&&d[t]},o.create=function(e,t){function n(){o.apply(this,arguments)}return Object.create?n.prototype=Object.create(o.prototype):a.extend(n.prototype,o.prototype),(n.prototype.constructor=n).defaults=a.extend({},o.defaults),a.extend(n.defaults,t),n.prototype.settings={},n.namespace=e,n.data=o.data,(n.Item=function(){i.apply(this,arguments)}).prototype=new i,a.htmlInit(n,e),u&&u.bridget&&u.bridget(e,n),n},o.Item=i,o}),function(e,t){"function"==typeof define&&define.amd?define("packery/js/rect",t):"object"==typeof exports?module.exports=t():(e.Packery=e.Packery||{},e.Packery.Rect=t())}(window,function(){function s(e){for(var t in s.defaults)this[t]=s.defaults[t];for(t in e)this[t]=e[t]}return((window.Packery=function(){}).Rect=s).defaults={x:0,y:0,width:0,height:0},s.prototype.contains=function(e){var t=e.width||0,n=e.height||0;return this.x<=e.x&&this.y<=e.y&&this.x+this.width>=e.x+t&&this.y+this.height>=e.y+n},s.prototype.overlaps=function(e){var t=this.x+this.width,n=this.y+this.height,i=e.x+e.width,r=e.y+e.height;return this.x<i&&t>e.x&&this.y<r&&n>e.y},s.prototype.getMaximalFreeRects=function(e){if(!this.overlaps(e))return!1;var t,n=[],i=this.x+this.width,r=this.y+this.height,o=e.x+e.width,a=e.y+e.height;
1return this.y<e.y&&(t=new s({x:this.x,y:this.y,width:this.width,height:e.y-this.y}),n.push(t)),o<i&&(t=new s({x:o,y:this.y,width:i-o,height:this.height}),n.push(t)),a<r&&(t=new s({x:this.x,y:a,width:this.width,height:r-a}),n.push(t)),this.x<e.x&&(t=new s({x:this.x,y:this.y,width:e.x-this.x,height:this.height}),n.push(t)),n},s.prototype.canFit=function(e){return this.width>=e.width&&this.height>=e.height},s}),function(e,t){if("function"==typeof define&&define.amd)define("packery/js/packer",["./rect"],t);else if("object"==typeof exports)module.exports=t(require("./rect"));else{var n=e.Packery=e.Packery||{};n.Packer=t(n.Rect)}}(window,function(t){function e(e,t,n){this.width=e||0,this.height=t||0,this.sortDirection=n||"downwardLeftToRight",this.reset()}e.prototype.reset=function(){this.spaces=[],this.newSpaces=[];var e=new t({x:0,y:0,width:this.width,height:this.height});this.spaces.push(e),this.sorter=n[this.sortDirection]||n.downwardLeftToRight},e.prototype.pack=function(e){for(var t=0,n=this.spaces.length;t<n;t++){var i=this.spaces[t];if(i.canFit(e)){this.placeInSpace(e,i);break}}},e.prototype.placeInSpace=function(e,t){e.x=t.x,e.y=t.y,this.placed(e)},e.prototype.placed=function(e){for(var t=[],n=0,i=this.spaces.length;n<i;n++){var r=this.spaces[n],o=r.getMaximalFreeRects(e);o?t.push.apply(t,o):t.push(r)}this.spaces=t,this.mergeSortSpaces()},e.prototype.mergeSortSpaces=function(){e.mergeRects(this.spaces),this.spaces.sort(this.sorter)},e.prototype.addSpace=function(e){this.spaces.push(e),this.mergeSortSpaces()},e.mergeRects=function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];if(i){var r=e.slice(0);r.splice(t,1);for(var o=0,a=0,s=r.length;a<s;a++){var u=r[a],l=a<t?0:1;i.contains(u)&&(e.splice(a+l-o,1),o++)}}}return e};var n={downwardLeftToRight:function(e,t){return e.y-t.y||e.x-t.x},rightwardTopToBottom:function(e,t){return e.x-t.x||e.y-t.y}};return e}),function(e,t){"function"==typeof define&&define.amd?define("packery/js/item",["get-style-property/get-style-property","outlayer/outlayer","./rect"],t):"object"==typeof exports?module.exports=t(require("desandro-get-style-property"),require("outlayer"),require("./rect")):e.Packery.Item=t(e.getStyleProperty,e.Outlayer,e.Packery.Rect)}(window,function(e,t,n){var i=e("transform"),r=function(){t.Item.apply(this,arguments)},o=(r.prototype=new t.Item)._create;return r.prototype._create=function(){o.call(this),this.rect=new n,this.placeRect=new n},r.prototype.dragStart=function(){this.getPosition(),this.removeTransitionStyles(),this.isTransitioning&&i&&(this.element.style[i]="none"),this.getSize(),this.isPlacing=!0,this.needsPositioning=!1,this.positionPlaceRect(this.position.x,this.position.y),this.isTransitioning=!1,this.didDrag=!1},r.prototype.dragMove=function(e,t){this.didDrag=!0;var n=this.layout.size;e-=n.paddingLeft,t-=n.paddingTop,this.positionPlaceRect(e,t)},r.prototype.dragStop=function(){this.getPosition();var e=this.position.x!=this.placeRect.x,t=this.position.y!=this.placeRect.y;this.needsPositioning=e||t,this.didDrag=!1},r.prototype.positionPlaceRect=function(e,t,n){this.placeRect.x=this.getPlaceRectCoord(e,!0),this.placeRect.y=this.getPlaceRectCoord(t,!1,n)},r.prototype.getPlaceRectCoord=function(e,t,n){var i,r=t?"Width":"Height",o=this.size["outer"+r],a=this.layout[t?"columnWidth":"rowHeight"],s=this.layout.size["inner"+r];if(t||(s=Math.max(s,this.layout.maxY),this.layout.rowHeight||(s-=this.layout.gutter)),a){var u;
1a+=this.layout.gutter,s+=t?this.layout.gutter:0,e=Math.round(e/a),u=this.layout.options.isHorizontal?t?"ceil":"floor":t?"floor":"ceil";var l=Math[u](s/a);i=l-=Math.ceil(o/a)}else i=s-o;return e=n?e:Math.min(e,i),e*=a||1,Math.max(0,e)},r.prototype.copyPlaceRectPosition=function(){this.rect.x=this.placeRect.x,this.rect.y=this.placeRect.y},r.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},r}),function(e,t){"function"==typeof define&&define.amd?define(["classie/classie","get-size/get-size","outlayer/outlayer","packery/js/rect","packery/js/packer","packery/js/item"],t):"object"==typeof exports?module.exports=t(require("desandro-classie"),require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):e.Packery=t(e.classie,e.getSize,e.Outlayer,e.Packery.Rect,e.Packery.Packer,e.Packery.Item)}(window,function(a,o,e,r,t,n){function i(e,t){return e.position.y-t.position.y||e.position.x-t.position.x}function s(e,t){return e.position.x-t.position.x||e.position.y-t.position.y}r.prototype.canFit=function(e){return this.width>=e.width-1&&this.height>=e.height-1};var u=e.create("packery");return u.Item=n,u.prototype._create=function(){e.prototype._create.call(this),this.packer=new t,this.stamp(this.options.stamped);var n=this;this.handleDraggabilly={dragStart:function(){n.itemDragStart(this.element)},dragMove:function(){n.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){n.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(e,t){t&&n.itemDragStart(e.currentTarget)},drag:function(e,t){t&&n.itemDragMove(e.currentTarget,t.position.left,t.position.top)},stop:function(e,t){t&&n.itemDragEnd(e.currentTarget)}}},u.prototype._resetLayout=function(){this.getSize(),this._getMeasurements();var e=this.packer;this.options.isHorizontal?(e.width=Number.POSITIVE_INFINITY,e.height=this.size.innerHeight+this.gutter,e.sortDirection="rightwardTopToBottom"):(e.width=this.size.innerWidth+this.gutter,e.height=Number.POSITIVE_INFINITY,e.sortDirection="downwardLeftToRight"),e.reset(),this.maxY=0,this.maxX=0},u.prototype._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},u.prototype._getItemLayoutPosition=function(e){return this._packItem(e),e.rect},u.prototype._packItem=function(e){this._setRectSize(e.element,e.rect),this.packer.pack(e.rect),this._setMaxXY(e.rect)},u.prototype._setMaxXY=function(e){this.maxX=Math.max(e.x+e.width,this.maxX),this.maxY=Math.max(e.y+e.height,this.maxY)},u.prototype._setRectSize=function(e,t){var n=o(e),i=n.outerWidth,r=n.outerHeight;(i||r)&&(i=this._applyGridGutter(i,this.columnWidth),r=this._applyGridGutter(r,this.rowHeight)),t.width=Math.min(i,this.packer.width),t.height=Math.min(r,this.packer.height)},u.prototype._applyGridGutter=function(e,t){if(!t)return e+this.gutter;var n=e%(t+=this.gutter);return Math[n&&n<1?"round":"ceil"](e/t)*t},u.prototype._getContainerSize=function(){return this.options.isHorizontal?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},u.prototype._manageStamp=function(e){var t,n=this.getItem(e);if(n&&n.isPlacing)t=n.placeRect;else{var i=this._getElementOffset(e);t=new r({x:this.options.isOriginLeft?i.left:i.right,y:this.options.isOriginTop?i.top:i.bottom})}this._setRectSize(e,t),this.packer.placed(t),this._setMaxXY(t)},u.prototype.sortItemsByPosition=function(){var e=this.options.isHorizontal?s:i;this.items.sort(e)},u.prototype.fit=function(e,t,n){var i=this.getItem(e);i&&(this._getMeasurements(),this.stamp(i.element),i.getSize(),i.isPlacing=!0,t=void 0===t?i.rect.x:t,n=void 0===n?i.rect.y:n,i.positionPlaceRect(t,n,!0),this._bindFitEvents(i),i.moveTo(i.placeRect.x,i.placeRect.y),this.layout(),this.unstamp(i.element),this.sortItemsByPosition(),i.isPlacing=!1,i.copyPlaceRectPosition())},u.prototype._bindFitEvents=function(e){function t(){2==++i&&n.dispatchEvent("fitComplete",null,[e])}var n=this,i=0;e.on("layout",function(){return t(),!0}),this.on("layoutComplete",function(){return t(),!0})},u.prototype.resize=function(){var e=o(this.element),t=this.size&&e,n=this.options.isHorizontal?"innerHe
1ight":"innerWidth";t&&e[n]==this.size[n]||this.layout()},u.prototype.itemDragStart=function(e){this.stamp(e);var t=this.getItem(e);t&&t.dragStart()},u.prototype.itemDragMove=function(e,t,n){var i=this.getItem(e);i&&i.dragMove(t,n);var r=this;this.clearDragTimeout(),this.dragTimeout=setTimeout(function(){r.layout(),delete r.dragTimeout},40)},u.prototype.clearDragTimeout=function(){this.dragTimeout&&clearTimeout(this.dragTimeout)},u.prototype.itemDragEnd=function(e){var t,n=this.getItem(e);if(n&&(t=n.didDrag,n.dragStop()),n&&(t||n.needsPositioning)){a.add(n.element,"is-positioning-post-drag");var i=this._getDragEndLayoutComplete(e,n);n.needsPositioning?(n.on("layout",i),n.moveTo(n.placeRect.x,n.placeRect.y)):n&&n.copyPlaceRectPosition(),this.clearDragTimeout(),this.on("layoutComplete",i),this.layout()}else this.unstamp(e)},u.prototype._getDragEndLayoutComplete=function(e,t){var n=t&&t.needsPositioning,i=0,r=n?2:1,o=this;return function(){return++i!=r||(t&&(a.remove(t.element,"is-positioning-post-drag"),t.isPlacing=!1,t.copyPlaceRectPosition()),o.unstamp(e),o.sortItemsByPosition(),n&&o.dispatchEvent("dragItemPositioned",null,[t])),!0}},u.prototype.bindDraggabillyEvents=function(e){e.on("dragStart",this.handleDraggabilly.dragStart),e.on("dragMove",this.handleDraggabilly.dragMove),e.on("dragEnd",this.handleDraggabilly.dragEnd)},u.prototype.bindUIDraggableEvents=function(e){e.on("dragstart",this.handleUIDraggable.start).on("drag",this.handleUIDraggable.drag).on("dragstop",this.handleUIDraggable.stop)},u.Rect=r,u.Packer=t,u}),function(t,n){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(e){n(t,e)}):"object"==typeof module&&module.exports?module.exports=n(t,require("jquery")):t.jQueryBridget=n(t,t.jQuery)}(window,function(e,t){var d=Array.prototype.slice,n=e.console,h=void 0===n?function(){}:function(e){n.error(e)};function i(l,r,c){(c=c||t||e.jQuery)&&(r.prototype.option||(r.prototype.option=function(e){c.isPlainObject(e)&&(this.options=c.extend(!0,this.options,e))}),c.fn[l]=function(e){if("string"!=typeof e)return i=e,this.each(function(e,t){var n=c.data(t,l);n?(n.option(i),n._init()):(n=new r(t,i),c.data(t,l,n))}),this;var t,o,a,s,u,i,n=d.call(arguments,1);return a=n,u="$()."+l+'("'+(o=e)+'")',(t=this).each(function(e,t){var n=c.data(t,l);if(n){var i=n[o];if(i&&"_"!=o.charAt(0)){var r=i.apply(n,a);s=void 0===s?r:s}else h(u+" is not a valid method")}else h(l+" not initialized. Cannot call methods, i.e. "+u)}),void 0!==s?s:t},o(c))}function o(e){!e||e&&e.bridget||(e.bridget=i)}return o(t||e.jQuery),i}),function(e,t){"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return t()}):"object"==typeof module&&module.exports?module.exports=t():e.getSize=t()}(window,function(){function v(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var n="undefined"==typeof console?function(){}:function(e){console.error(e)},y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],b=y.length;function w(e){var t=getComputedStyle(e);return t||n("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),t}var x,_=!1;function k(e){if(function(){if(!_){_=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var t=document.body||document.documentElement;t.appendChild(e);var n=w(e);k.isBoxSizeOuter=x=200==v(n.width),t.removeChild(e)}}(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var t=w(e);if("none"==t.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<b;t++)e[y[t]]=0;return e}();var n={};n.width=e.offsetWidth,n.height=e.offsetHeight;for(var i=n.isBorderBox="border-box"==t.boxSizing,r=0;r<b;r++){var o=y[r],a=t[o],s=parseFloat(a);n[o]=isNaN(s)?0:s}var u=n.paddingLeft+n.paddingRight,l=n.paddingTop+n.paddingBottom,c=n.marginLeft+n.marginRight,d=n.marginTop+n.marginBottom,h=n.borderLeftWidth+n.borderRightWidth,p=n.borderTopWidth+n.borderBottomWidth,f=i&&x,g=v(t.width);!1!==g&&(n.width=g+(f?0:u+h));var m=v(t.height);return!1!==m&&(n.height=m+(f?0:l+p)),n.innerWidth=n.width-(u+h),n.innerHeight=n.height-(l+p),n.outerWidth=n.width+c,n.outerHeight=n.height+d,n}}return k}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}(this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},i=n[e]=n[e]||[];return-1==i.indexOf(t)&&i.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||[])[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var i=n.indexOf(t);return-1!=i&&n.splice(i,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var i=0,r=n[i];
1t=t||[];for(var o=this._onceEvents&&this._onceEvents[e];r;){var a=o&&o[r];a&&(this.off(e,r),delete o[r]),r.apply(this,t),r=n[i+=a?0:1]}return this}},e}),function(t,n){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(e){return n(t,e)}):"object"==typeof module&&module.exports?module.exports=n(t,require("ev-emitter")):t.Unipointer=n(t,t.EvEmitter)}(window,function(i,e){function t(){}var n=t.prototype=Object.create(e.prototype);n.bindStartEvent=function(e){this._bindStartEvent(e,!0)},n.unbindStartEvent=function(e){this._bindStartEvent(e,!1)},n._bindStartEvent=function(e,t){var n=(t=void 0===t||!!t)?"addEventListener":"removeEventListener";i.navigator.pointerEnabled?e[n]("pointerdown",this):i.navigator.msPointerEnabled?e[n]("MSPointerDown",this):(e[n]("mousedown",this),e[n]("touchstart",this))},n.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.getTouch=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.identifier==this.pointerIdentifier)return n}},n.onmousedown=function(e){var t=e.button;t&&0!==t&&1!==t||this._pointerDown(e,e)},n.ontouchstart=function(e){this._pointerDown(e,e.changedTouches[0])},n.onMSPointerDown=n.onpointerdown=function(e){this._pointerDown(e,e)},n._pointerDown=function(e,t){this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==t.pointerId?t.pointerId:t.identifier,this.pointerDown(e,t))},n.pointerDown=function(e,t){this._bindPostStartEvents(e),this.emitEvent("pointerDown",[e,t])};var r={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"],MSPointerDown:["MSPointerMove","MSPointerUp","MSPointerCancel"]};return n._bindPostStartEvents=function(e){if(e){var t=r[e.type];t.forEach(function(e){i.addEventListener(e,this)},this),this._boundPointerEvents=t}},n._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(e){i.removeEventListener(e,this)},this),delete this._boundPointerEvents)},n.onmousemove=function(e){this._pointerMove(e,e)},n.onMSPointerMove=n.onpointermove=function(e){e.pointerId==this.pointerIdentifier&&this._pointerMove(e,e)},n.ontouchmove=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerMove(e,t)},n._pointerMove=function(e,t){this.pointerMove(e,t)},n.pointerMove=function(e,t){this.emitEvent("pointerMove",[e,t])},n.onmouseup=function(e){this._pointerUp(e,e)},n.onMSPointerUp=n.onpointerup=function(e){e.pointerId==this.pointerIdentifier&&this._pointerUp(e,e)},n.ontouchend=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerUp(e,t)},n._pointerUp=function(e,t){this._pointerDone(),this.pointerUp(e,t)},n.pointerUp=function(e,t){this.emitEvent("pointerUp",[e,t])},n._pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this._unbindPostStartEvents(),this.pointerDone()},n.pointerDone=function(){},n.onMSPointerCancel=n.onpointercancel=function(e){e.pointerId==this.pointerIdentifier&&this._pointerCancel(e,e)},n.ontouchcancel=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerCancel(e,t)},n._pointerCancel=function(e,t){this._pointerDone(),this.pointerCancel(e,t)},n.pointerCancel=function(e,t){this.emitEvent("pointerCancel",[e,t])},t.getPointerPoint=function(e){return{x:e.pageX,y:e.pageY}},t}),function(t,n){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(e){return n(t,e)}):"object"==typeof module&&module.exports?module.exports=n(t,require("unipointer")):t.Unidragger=n(t,t.Unipointer)}(window,function(e,r){function o(){}function t(){}var n=t.prototype=Object.create(r.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)};var a=e.navigator;return n._bindHandles=function(t){var e;t=void 0===t||!!t,e=a.pointerEnabled?function(e){e.style.touchAction=t?"none":""}:a.msPointerEnabled?function(e){e.style.msTouchAction=t?"none":""}:o;for(var n=t?"addEventListener":"removeEventListener",i=0;i<this.handles.length;i++){var r=this.handles[i];this._bindStartEvent(r,t),e(r),r[n]("click",this)}},n.pointerDown=function(e,t){if("INPUT"==e.target.nodeName&&"range"==e.target.type)return this.isPointerDown=!1,void delete this.pointerIdentifier;this._dragPointerDown(e,t);var n=document.activeElement;n&&n.blur&&n.blur(),this._bindPostStartEvents(e),this.emitEvent("pointerDown",[e,t])},n._dragPointerDown=function(e,t){this.pointerDownPoint=r.getPointerPoint(t),this.canPreventDefaultOnPointerDown(e,t)&&e.preventDefault()},n.canPreventDefaultOnPointerDown=function(e){return"SELECT"!=e.target.nodeName},n.pointerMove=function(e,t){var n=this._dragPointerMove(e,t);this.emitEvent("pointerMove",[e,t,n]),this._dragMove(e,t,n)},n._dragPointerMove=function(e,t){var n=r.getPointerPoint(t),i={x:n.x-this.pointerDownPoint.x,y:n.y-this.pointerDownPoint.y};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(e,t),i},n.hasDragStarted=function(e){return 3<Math.abs(e.x)||3<Math.abs(e.y)},n.pointerUp=function(e,t){this.emitEvent("pointerUp",[e,t]),this._dragPointerUp(e,t)},n._dragPointerUp=function(e,t){this.isDragging?this._dragEnd(e,t):this._staticClick(e,t)},n._dragStart=function(e,t){this.isDragging=!0,this.dragStartPoint=r.getPointerPoint(t),this.isPreventing
1Clicks=!0,this.dragStart(e,t)},n.dragStart=function(e,t){this.emitEvent("dragStart",[e,t])},n._dragMove=function(e,t,n){this.isDragging&&this.dragMove(e,t,n)},n.dragMove=function(e,t,n){e.preventDefault(),this.emitEvent("dragMove",[e,t,n])},n._dragEnd=function(e,t){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(e,t)},n.dragEnd=function(e,t){this.emitEvent("dragEnd",[e,t])},n.onclick=function(e){this.isPreventingClicks&&e.preventDefault()},n._staticClick=function(e,t){if(!this.isIgnoringMouseUp||"mouseup"!=e.type){var n=e.target.nodeName;"INPUT"!=n&&"TEXTAREA"!=n||e.target.focus(),this.staticClick(e,t),"mouseup"!=e.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400))}},n.staticClick=function(e,t){this.emitEvent("staticClick",[e,t])},t.getPointerPoint=r.getPointerPoint,t}),function(n,i){"function"==typeof define&&define.amd?define(["get-size/get-size","unidragger/unidragger"],function(e,t){return i(n,e,t)}):"object"==typeof module&&module.exports?module.exports=i(n,require("get-size"),require("unidragger")):n.Draggabilly=i(n,n.getSize,n.Unidragger)}(window,function(a,l,e){var c=a.document;function n(e,t){for(var n in t)e[n]=t[n];return e}var t=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame,r=0;t||(t=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-r)),i=setTimeout(e,n);return r=t+n,i});var s="string"==typeof c.documentElement.style.transform?"transform":"WebkitTransform",i=a.jQuery;function o(e,t){this.element="string"==typeof e?c.querySelector(e):e,i&&(this.$element=i(this.element)),this.options=n({},this.constructor.defaults),this.option(t),this._create()}var u=o.prototype=Object.create(e.prototype);function d(e,t,n){return n=n||"round",t?Math[n](e/t)*t:e}return o.defaults={},u.option=function(e){n(this.options,e)},u._create=function(){this.position={},this._getPosition(),this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.startPosition=n({},this.position);var e=getComputedStyle(this.element);"relative"!=e.position&&"absolute"!=e.position&&(this.element.style.position="relative"),this.enable(),this.setHandles()},u.setHandles=function(){this.handles=this.options.handle?this.element.querySelectorAll(this.options.handle):[this.element],this.bindHandles()},u.dispatchEvent=function(e,t,n){var i=[t].concat(n);this.emitEvent(e,i);var r=a.jQuery;if(r&&this.$element)if(t){var o=r.Event(t);o.type=e,this.$element.trigger(o,n)}else this.$element.trigger(e,n)},o.prototype._getPosition=function(){var e=getComputedStyle(this.element),t=this._getPositionCoord(e.left,"width"),n=this._getPositionCoord(e.top,"height");this.position.x=isNaN(t)?0:t,this.position.y=isNaN(n)?0:n,this._addTransformPosition(e)},o.prototype._getPositionCoord=function(e,t){if(-1==e.indexOf("%"))return parseInt(e,10);var n=l(this.element.parentNode);return parseFloat(e)/100*n[t]},u._addTransformPosition=function(e){var t=e[s];if(0===t.indexOf("matrix")){var n=t.split(","),i=0===t.indexOf("matrix3d")?12:4,r=parseInt(n[i],10),o=parseInt(n[i+1],10);this.position.x+=r,this.position.y+=o}},u.pointerDown=function(e,t){this._dragPointerDown(e,t);var n=c.activeElement;n&&n.blur&&n!=c.body&&n.blur(),this._bindPostStartEvents(e),this.element.classList.add("is-pointer-down"),this.dispatchEvent("pointerDown",e,[t])},u.pointerMove=function(e,t){var n=this._dragPointerMove(e,t);this.dispatchEvent("pointerMove",e,[t,n]),this._dragMove(e,t,n)},u.dragStart=function(e,t){this.isEnabled&&(this._getPosition(),this.measureContainment(),this.startPosition.x=this.position.x,this.startPosition.y=this.position.y,this.setLeftTop(),this.dragPoint.x=0,this.dragPoint.y=0,this.element.classList.add("is-dragging"),this.dispatchEvent("dragStart",e,[t]),this.animate())},u.measureContainment=function(){var e=this.options.containment;if(e){var t=e instanceof HTMLElement?e:"string"==typeof e?c.querySelector(e):this.element.parentNode,n=l(this.element),i=l(t),r=this.element.getBoundingClientRect(),o=t.getBoundingClientRect(),a=i.borderLeftWidth+i.borderRightWidth,s=i.borderTopWidth+i.borderBottomWidth,u=this.relativeStartPosition={x:r.left-(o.left+i.borderLeftWidth),y:r.top-(o.top+i.borderTopWidth)};this.containSize={width:i.width-a-u.x-n.width,height:i.height-s-u.y-n.height}}},u.dragMove=function(e,t,n){if(this.isEnabled){var i=n.x,r=n.y,o=this.options.grid,a=o&&o[0],s=o&&o[1];i=d(i,a),r=d(r,s),i=this.containDrag("x",i,a),r=this.containDrag("y",r,s),i="y"==this.options.axis?0:i,r="x"==this.options.axis?0:r,this.position.x=this.startPosition.x+i,this.position.y=this.startPosition.y+r,this.dragPoint.x=i,this.dragPoint.y=r,this.dispatchEvent("dragMove",e,[t,n])}},u.containDrag=function(e,t,n){if(!this.options.containment)return t;var i="x"==e?"width":"height",r=d(-this.relativeStartPosition[e],n,"ceil"),o=this.containSize[i];return o=d(o,n,"floor"),Math.min(o,Math.max(r,t))},u.pointerUp=function(e,t){this.element.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",e,[t]),this._dragPointerUp(e,t)},u.dragEnd=function(e,t){this.isEnabled&&(s&&(this.element.style[s]="",this.setLeftTop()),this.element.classList.remove("is-dragging"),this.dispatchEvent("dragEnd",e,[t]))},u.animate=function(){if(this.isDragging){this.positionDrag();var e=this;t(function(){e.animate()})}},u.setLeftTop=function(){this.element.style.left=this.position.x+"px",this.element.style.top=this.position.y+"px"},u.positionDrag=function(){this.element.style[s]="translate3d( "+this.dragPoint.x+"px, "+this.dragPoint.y+"px, 0)"},u.staticClick=function(e,t){this.dispatchEvent("staticClick",e,[t])},u.enable=function(){this.isEnabled=!0},u.disable=function(){this.isEnabled=!1,this.isDragging&&this.dragEnd()},u.destroy=function(){this.disable(),this.element.style[s]="",this.element.style.left="",this.element.style.top="",this.element.style.position="",this.unbindHandles(),this.$element&&this.$element.removeData("draggabilly")},u._init=function(){},i&&i.bridget&&i.bridget("draggabilly",o),o}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Clipboard=e()}}(function(){return function o(a,s,u){function l(n,e){if(!s[n]){if(!a[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(c)return c(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}
1var r=s[n]={exports:{}};a[n][0].call(r.exports,function(e){var t=a[n][1][e];return l(t||e)},r,r.exports,o,a,s,u)}return s[n].exports}for(var c="function"==typeof require&&require,e=0;e<u.length;e++)l(u[e]);return l}({1:[function(e,t,n){var r=e("matches-selector");t.exports=function(e,t,n){for(var i=n?e:e.parentNode;i&&i!==document;){if(r(i,t))return i;i=i.parentNode}}},{"matches-selector":5}],2:[function(e,t,n){var a=e("closest");t.exports=function(e,t,n,i,r){var o=function(t,n,e,i){return function(e){e.delegateTarget=a(e.target,n,!0),e.delegateTarget&&i.call(t,e)}}.apply(this,arguments);return e.addEventListener(n,o,r),{destroy:function(){e.removeEventListener(n,o,r)}}}},{closest:1}],3:[function(e,t,n){n.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},n.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeof e||e instanceof String},n.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},{}],4:[function(e,t,n){var h=e("./is"),p=e("delegate");t.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");
1if(!h.string(t))throw new TypeError("Second argument must be a String");if(!h.fn(n))throw new TypeError("Third argument must be a Function");if(h.node(e))return r=t,o=n,(i=e).addEventListener(r,o),{destroy:function(){i.removeEventListener(r,o)}};var i,r,o,a,s,u,l,c,d;if(h.nodeList(e))return a=e,s=t,u=n,Array.prototype.forEach.call(a,function(e){e.addEventListener(s,u)}),{destroy:function(){Array.prototype.forEach.call(a,function(e){e.removeEventListener(s,u)})}};if(h.string(e))return l=e,c=t,d=n,p(document.body,l,c,d);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},{"./is":3,delegate:2}],5:[function(e,t,n){var i=Element.prototype,r=i.matchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector;t.exports=function(e,t){if(r)return r.call(e,t);for(var n=e.parentNode.querySelectorAll(t),i=0;i<n.length;++i)if(n[i]==e)return!0;return!1}},{}],6:[function(e,t,n){t.exports=function(e){var t;if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)e.focus(),e.setSelectionRange(0,e.value.length),t=e.value;else{e.hasAttribute("contenteditable")&&e.focus();var n=window.getSelection(),i=document.createRange();i.selectNodeContents(e),n.removeAllRanges(),n.addRange(i),t=n.toString()}return t}},{}],7:[function(e,t,n){function i(){}i.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function i(){r.off(e,i),t.apply(n,arguments)}var r=this;return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],r=[];if(i&&t)for(var o=0,a=i.length;o<a;o++)i[o].fn!==t&&i[o].fn._!==t&&r.push(i[o]);return r.length?n[e]=r:delete n[e],this}},t.exports=i},{}],8:[function(i,r,o){!function(e,t){if(void 0!==o)t(r,i("select"));else{var n={exports:{}};t(n,e.select),e.clipboardAction=n.exports}}(this,function(e,t){"use strict";var n,i=(n=t)&&n.__esModule?n:{default:n},r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}(),a=function(){function t(e){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),this.resolveOptions(e),this.initSelection()}return t.prototype.resolveOptions=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.action=e.action,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""},t.prototype.initSelection=function(){this.text?this.selectFake():this.target&&this.selectTarget()},t.prototype.selectFake=function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=document.body.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px",this.fakeElem.style.top=(window.pageYOffset||document.documentElement.scrollTop)+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,document.body.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()},t.prototype.removeFake=function(){this.fakeHandler&&(document.body.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)},t.prototype.selectTarget=function(){this.selectedText=(0,i.default)(this.target),this.copyText()},t.prototype.copyText=function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)},t.prototype.handleResult=function(e){e?this.emitter.emit("success",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)}):this.emitter.emit("error",{action:this.action,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})},t.prototype.clearSelection=function(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()},t.prototype.destroy=function(){this.removeFake()},o(t,[{key:"action",set:function(){var e=arguments.length<=0||void 0===arguments[0]?"copy":arguments[0];if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),t}();e.exports=a})},{select:6}],9:[function(i,r,o){!function(e,t){if(void 0!==o)t(r,i("./clipboard-action"),i("tiny-emitter"),i("good-listener"));
1else{var n={exports:{}};t(n,e.clipboardAction,e.tinyEmitter,e.goodListener),e.clipboard=n.exports}}(this,function(e,t,n,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}var a=r(t),s=r(n),u=r(i),l=function(i){function r(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this));return n.resolveOptions(t),n.listenClick(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,i),r.prototype.resolveOptions=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText},r.prototype.listenClick=function(e){var t=this;this.listener=(0,u.default)(e,"click",function(e){return t.onClick(e)})},r.prototype.onClick=function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(t),target:this.target(t),text:this.text(t),trigger:t,emitter:this})},r.prototype.defaultAction=function(e){return o("action",e)},r.prototype.defaultTarget=function(e){var t=o("target",e);return t?document.querySelector(t):void 0},r.prototype.defaultText=function(e){return o("text",e)},r.prototype.destroy=function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)},r}(s.default);e.exports=l})},{"./clipboard-action":8,"good-listener":4,"tiny-emitter":7}]},{},[9])(9)}); 2//# sourceMappingURL=rijksmuseum-web-lib.map
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.