afterwriting-fork-rickschubert
Version:
Screewriting tools
90 lines (72 loc) • 2.97 MB
JavaScript
/*
RequireJS 2.1.14 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
Available via the MIT or new BSD license.
see: http://github.com/jrburke/requirejs for details
*/
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
/*! jQuery-Impromptu - v6.0.0 - 2014-12-27
* http://trentrichardson.com/Impromptu
* Copyright (c) 2014 Trent Richardson; Licensed MIT */
/*! jsTree - v3.0.9 - 2015-01-05 - (MIT) */
/*!
* jQuery Cookie Plugin v1.4.1
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2013 Klaus Hartl
* Released under the MIT license
*/
/*! jQuery UI - v1.10.3 - 2013-12-25
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.autocomplete.js, jquery.ui.menu.js, jquery.ui.effect.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
/**
* Source: https://gist.github.com/Munawwar/6e6362dbdf77c7865a99
*
* jQuery 2.1.3's parseHTML (without scripts options).
* Unlike jQuery, this returns a DocumentFragment, which is more convenient to insert into DOM.
* MIT license.
*
* If you only support Edge 13+ then try this:
function parseHTML(html, context) {
var t = (context || document).createElement('template');
t.innerHTML = html;
return t.content.cloneNode(true);
}
*/
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
/**
* @license text 2.0.16 Copyright jQuery Foundation and other contributors.
* Released under MIT license, http://github.com/requirejs/text/LICENSE
*/
/**!
@license
handlebars v4.6.0
Copyright (C) 2011-2019 by Yehuda Katz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
var requirejs,require,define;!function(ba){function G(A){return"[object Function]"===K.call(A)}function H(A){return"[object Array]"===K.call(A)}function v(A,e){if(A){var t;for(t=0;t<A.length&&(!A[t]||!e(A[t],t,A));t+=1);}}function T(A,e){if(A){var t;for(t=A.length-1;-1<t&&(!A[t]||!e(A[t],t,A));t-=1);}}function t(A,e){return fa.call(A,e)}function m(A,e){return t(A,e)&&A[e]}function B(A,e){for(var n in A)if(t(A,n)&&e(A[n],n))break}function U(A,e,n,i){return e&&B(e,function(e,r){!n&&t(A,r)||(!i||"object"!=typeof e||!e||H(e)||G(e)||e instanceof RegExp?A[r]=e:(A[r]||(A[r]={}),U(A[r],e,n,i)))}),A}function u(A,e){return function(){return e.apply(A,arguments)}}function ca(A){throw A}function da(A){if(!A)return A;var e=ba;return v(A.split("."),function(A){e=e[A]}),e}function C(A,e,t,n){return e=Error(e+"\nhttp://requirejs.org/docs/errors.html#"+A),e.requireType=A,e.requireModules=n,t&&(e.originalError=t),e}function ga(A){function e(A,e,t){var n,i,r,o,s,a,l,c,e=e&&e.split("/"),u=k.map,g=u&&u["*"];if(A){for(A=A.split("/"),i=A.length-1,k.nodeIdCompat&&Q.test(A[i])&&(A[i]=A[i].replace(Q,"")),"."===A[0].charAt(0)&&e&&(i=e.slice(0,e.length-1),A=i.concat(A)),i=A,r=0;r<i.length;r++)"."===(o=i[r])?(i.splice(r,1),r-=1):".."===o&&0!==r&&(1!=r||".."!==i[2])&&".."!==i[r-1]&&0<r&&(i.splice(r-1,2),r-=2);A=A.join("/")}if(t&&u&&(e||g)){i=A.split("/"),r=i.length;A:for(;0<r;r-=1){if(s=i.slice(0,r).join("/"),e)for(o=e.length;0<o;o-=1)if((t=m(u,e.slice(0,o).join("/")))&&(t=m(t,s))){n=t,a=r;break A}!l&&g&&m(g,s)&&(l=m(g,s),c=r)}!n&&l&&(n=l,a=c),n&&(i.splice(0,a,n),A=i.join("/"))}return(n=m(k.pkgs,A))?n:A}function n(A){z&&v(document.getElementsByTagName("script"),function(e){if(e.getAttribute("data-requiremodule")===A&&e.getAttribute("data-requirecontext")===y.contextName)return e.parentNode.removeChild(e),!0})}function i(A){var e=m(k.paths,A);if(e&&H(e)&&1<e.length)return e.shift(),y.require.undef(A),y.makeRequire(null,{skipMap:!0})([A]),!0}function r(A){var e,t=A?A.indexOf("!"):-1;return-1<t&&(e=A.substring(0,t),A=A.substring(t+1,A.length)),[e,A]}function o(A,t,n,i){var o,s,a=null,l=t?t.name:null,c=A,u=!0,g="";return A||(u=!1,A="_@r"+(O+=1)),A=r(A),a=A[0],A=A[1],a&&(a=e(a,l,i),s=m(J,a)),A&&(a?g=s&&s.normalize?s.normalize(A,function(A){return e(A,l,i)}):-1===A.indexOf("!")?e(A,l,i):A:(g=e(A,l,i),A=r(g),a=A[0],g=A[1],n=!0,o=y.nameToUrl(g))),n=!a||s||n?"":"_unnormalized"+(V+=1),{prefix:a,name:g,parentMap:t,unnormalized:!!n,url:o,originalName:c,isDefine:u,id:(a?a+"!"+g:g)+n}}function s(A){var e=A.id,t=m(L,e);return t||(t=L[e]=new y.Module(A)),t}function a(A,e,n){var i=A.id,r=m(L,i);!t(J,i)||r&&!r.defineEmitComplete?(r=s(A),r.error&&"error"===e?n(r.error):r.on(e,n)):"defined"===e&&n(J[i])}function l(A,e){var t=A.requireModules,n=!1;e?e(A):(v(t,function(e){(e=m(L,e))&&(e.error=A,e.events.error&&(n=!0,e.emit("error",A)))}),n||g.onError(A))}function c(){R.length&&(ha.apply(j,[j.length,0].concat(R)),R=[])}function h(A){delete L[A],delete x[A]}function d(A,e,t){var n=A.map.id;A.error?A.emit("error",A.error):(e[n]=!0,v(A.depMaps,function(n,i){var r=n.id,o=m(L,r);o&&!A.depMatched[i]&&!t[r]&&(m(e,r)?(A.defineDep(i,J[r]),A.check()):d(o,e,t))}),t[n]=!0)}function p(){var A,e,t=(A=1e3*k.waitSeconds)&&y.startTime+A<(new Date).getTime(),r=[],o=[],s=!1,a=!0;if(!I){if(I=!0,B(x,function(A){var l=A.map,c=l.id;if(A.enabled&&(l.isDefine||o.push(A),!A.error))if(!A.inited&&t)i(c)?s=e=!0:(r.push(c),n(c));else if(!A.inited&&A.fetched&&l.isDefine&&(s=!0,!l.prefix))return a=!1}),t&&r.length)return A=C("timeout","Load timeout for modules: "+r,null,r),A.contextName=y.contextName,l(A);a&&v(o,function(A){d(A,{},{})}),t&&!e||!s||!z&&!ea||F||(F=setTimeout(function(){F=0,p()},50)),I=!1}}function E(A){t(J,A[0])||s(o(A[0],null,!0)).init(A[1],A[2])}function f(A){var A=A.currentTarget||A.srcElement,e=y.onScriptLoad;return A.detachEvent&&!Y?A.detachEvent("onreadystatechange",e):A.removeEventListener("load",e,!1),e=y.onScriptError,(!A.detachEvent||Y)&&A.removeEventListener("error",e,!1),{node:A,id:A&&A.getAttribute("data-requiremodule")}}function w(){var A;for(c();j.length;){if(A=j.shift(),null===A[0])return l(C("mismatch","Mismatched anonymous define() module: "+A[A.length-1]));E(A)}}var I,b,y,D,F,k={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},L={},x={},S={},j=[],J={},_={},P={},O=1,V=1;return D={require:function(A){return A.require?A.require:A.require=y.makeRequire(A.map)},exports:function(A){if(A.usingExports=!0,A.map.isDefine)return A.exports?J[A.map.id]=A.exports:A.exports=J[A.map.id]={}},module:function(A){return A.module?A.module:A.module={id:A.map.id,uri:A.map.url,config:function(){return m(k.config,A.map.id)||{}},exports:A.exports||(A.exports={})}}},b=function(A){this.events=m(S,A.id)||{},this.map=A,this.shim=m(k.shim,A.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},b.prototype={init:function(A,e,t,n){n=n||{},this.inited||(this.factory=e,t?this.on("error",t):this.events.error&&(t=u(this,function(A){this.emit("error",A)})),this.depMaps=A&&A.slice(0),this.errback=t,this.inited=!0,this.ignore=n.ignore,n.enabled||this.enabled?this.enable():this.check())},defineDep:function(A,e){this.depMatched[A]||(this.depMatched[A]=!0,this.depCount-=1,this.depExports[A]=e)},fetch:function(){if(!this.fetched){this.fetched=!0,y.startTime=(new Date).getTime();var A=this.map;if(!this.shim)return A.prefix?this.callPlugin():this.load();y.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],u(this,function(){return A.prefix?this.callPlugin():this.load()}))}},load:function(){var A=this.map.url;_[A]||(_[A]=!0,y.load(this.map.id,A))},check:function(){if(this.enabled&&!this.enabling){var A,e,t=this.map.id;e=this.depExports;var n=this.exports,i=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,1>this.depCount&&!this.defined){if(G(i)){if(this.events.error&&this.map.isDefine||g.onError!==ca)try{n=y.execCb(t,i,e,n)}catch(e){A=e}else n=y.execCb(t,i,e,n);if(this.map.isDefine&&void 0===n&&((e=this.module)?n=e.exports:this.usingExports&&(n=this.exports)),A)return A.requireMap=this.map,A.requireModules=this.map.isDefine?[this.map.id]:null,A.requireType=this.map.isDefine?"define":"require",l(this.error=A)}else n=i;this.exports=n,this.map.isDefine&&!this.ignore&&(J[t]=n,g.onResourceLoad)&&g.onResourceLoad(y,this.map,this.depMaps),h(t),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var A=this.map,n=A.id,i=o(A.prefix);this.depMaps.push(i),a(i,"defined",u(this,function(i){var r,c;c=m(P,this.map.id);var d=this.map.name,p=this.map.parentMap?this.map.parentMap.name:null,Q=y.makeRequire(A.parentMap,{enableBuildCallback:!0});this.map.unnormalized?(i.normalize&&(d=i.normalize(d,function(A){return e(A,p,!0)})||""),i=o(A.prefix+"!"+d,this.map.parentMap),a(i,"defined",u(this,function(A){this.init([],function(){return A},null,{enabled:!0,ignore:!0})})),(c=m(L,i.id))&&(this.depMaps.push(i),this.events.error&&c.on("error",u(this,function(A){this.emit("error",A)})),c.enable())):c?(this.map.url=y.nameToUrl(c),this.load()):(r=u(this,function(A){this.init([],function(){return A},null,{enabled:!0})}),r.error=u(this,function(A){this.inited=!0,this.error=A,A.requireModules=[n],B(L,function(A){0===A.map.id.indexOf(n+"_unnormalized")&&h(A.map.id)}),l(A)}),r.fromText=u(this,function(e,i){var a=A.name,c=o(a),u=M;i&&(e=i),u&&(M=!1),s(c),t(k.config,n)&&(k.config[a]=k.config[n]);try{g.exec(e)}catch(A){return l(C("fromtexteval","fromText eval for "+n+" failed: "+A,A,[n]))}u&&(M=!0),this.depMaps.push(c),y.completeLoad(a),Q([a],r)}),i.load(A.name,Q,r,k))})),y.enable(i,this),this.pluginMaps[i.id]=i},enable:function(){x[this.map.id]=this,this.enabling=this.enabled=!0,v(this.depMaps,u(this,function(A,e){var n,i;if("string"==typeof A){if(A=o(A,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[e]=A,n=m(D,A.id))return void(this.depExports[e]=n(this));this.depCount+=1,a(A,"defined",u(this,function(A){this.defineDep(e,A),this.check()})),this.errback&&a(A,"error",u(this,this.errback))}n=A.id,i=L[n],!t(D,n)&&i&&!i.enabled&&y.enable(A,this)})),B(this.pluginMaps,u(this,function(A){var e=m(L,A.id);e&&!e.enabled&&y.enable(A,this)})),this.enabling=!1,this.check()},on:function(A,e){var t=this.events[A];t||(t=this.events[A]=[]),t.push(e)},emit:function(A,e){v(this.events[A],function(A){A(e)}),"error"===A&&delete this.events[A]}},y={config:k,contextName:A,registry:L,defined:J,urlFetched:_,defQueue:j,Module:b,makeModuleMap:o,nextTick:g.nextTick,onError:l,configure:function(A){A.baseUrl&&"/"!==A.baseUrl.charAt(A.baseUrl.length-1)&&(A.baseUrl+="/");var e=k.shim,t={paths:!0,bundles:!0,config:!0,map:!0};B(A,function(A,e){t[e]?(k[e]||(k[e]={}),U(k[e],A,!0,!0)):k[e]=A}),A.bundles&&B(A.bundles,function(A,e){v(A,function(A){A!==e&&(P[A]=e)})}),A.shim&&(B(A.shim,function(A,t){H(A)&&(A={deps:A}),!A.exports&&!A.init||A.exportsFn||(A.exportsFn=y.makeShimExports(A)),e[t]=A}),k.shim=e),A.packages&&v(A.packages,function(A){var e,A="string"==typeof A?{name:A}:A;e=A.name,A.location&&(k.paths[e]=A.location),k.pkgs[e]=A.name+"/"+(A.main||"main").replace(ia,"").replace(Q,"")}),B(L,function(A,e){!A.inited&&!A.map.unnormalized&&(A.map=o(e))}),(A.deps||A.callback)&&y.require(A.deps||[],A.callback)},makeShimExports:function(A){return function(){var e;return A.init&&(e=A.init.apply(ba,arguments)),e||A.exports&&da(A.exports)}},makeRequire:function(i,r){function a(e,n,c){var u,h;return r.enableBuildCallback&&n&&G(n)&&(n.__requireJsBuild=!0),"string"==typeof e?G(n)?l(C("requireargs","Invalid require call"),c):i&&t(D,e)?D[e](L[i.id]):g.get?g.get(y,e,i,a):(u=o(e,i,!1,!0),u=u.id,t(J,u)?J[u]:l(C("notloaded",'Module name "'+u+'" has not been loaded yet for context: '+A+(i?"":". Use require([])")))):(w(),y.nextTick(function(){w(),h=s(o(null,i)),h.skipMap=r.skipMap,h.init(e,n,c,{enabled:!0}),p()}),a)}return r=r||{},U(a,{isBrowser:z,toUrl:function(A){var t,n=A.lastIndexOf("."),r=A.split("/")[0];return-1!==n&&("."!==r&&".."!==r||1<n)&&(t=A.substring(n,A.length),A=A.substring(0,n)),y.nameToUrl(e(A,i&&i.id,!0),t,!0)},defined:function(A){return t(J,o(A,i,!1,!0).id)},specified:function(A){return A=o(A,i,!1,!0).id,t(J,A)||t(L,A)}}),i||(a.undef=function(A){c();var e=o(A,i,!0),t=m(L,A);n(A),delete J[A],delete _[e.url],delete S[A],T(j,function(e,t){e[0]===A&&j.splice(t,1)}),t&&(t.events.defined&&(S[A]=t.events),h(A))}),a},enable:function(A){m(L,A.id)&&s(A).enable()},completeLoad:function(A){var e,n,r=m(k.shim,A)||{},o=r.exports;for(c();j.length;){if(n=j.shift(),null===n[0]){if(n[0]=A,e)break;e=!0}else n[0]===A&&(e=!0);E(n)}if(n=m(L,A),!e&&!t(J,A)&&n&&!n.inited){if(k.enforceDefine&&(!o||!da(o)))return i(A)?void 0:l(C("nodefine","No define call for "+A,null,[A]));E([A,r.deps||[],r.exportsFn])}p()},nameToUrl:function(A,e,t){var n,i,r;if((n=m(k.pkgs,A))&&(A=n),n=m(P,A))return y.nameToUrl(n,e,t);if(g.jsExtRegExp.test(A))n=A+(e||"");else{for(n=k.paths,A=A.split("/"),i=A.length;0<i;i-=1)if(r=A.slice(0,i).join("/"),r=m(n,r)){H(r)&&(r=r[0]),A.splice(0,i,r);break}n=A.join("/"),n+=e||(/^data\:|\?/.test(n)||t?"":".js"),n=("/"===n.charAt(0)||n.match(/^[\w\+\.\-]+:/)?"":k.baseUrl)+n}return k.urlArgs?n+(-1===n.indexOf("?")?"?":"&")+k.urlArgs:n},load:function(A,e){g.load(y,A,e)},execCb:function(A,e,t,n){return e.apply(n,t)},onScriptLoad:function(A){("load"===A.type||ja.test((A.currentTarget||A.srcElement).readyState))&&(N=null,A=f(A),y.completeLoad(A.id))},onScriptError:function(A){var e=f(A);if(!i(e.id))return l(C("scripterror","Script error for: "+e.id,A,[e.id]))}},y.require=y.makeRequire(),y}var g,x,y,D,I,E,N,J,s,O,ka=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,la=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,Q=/\.js$/,ia=/^\.\//;x=Object.prototype;var K=x.toString,fa=x.hasOwnProperty,ha=Array.prototype.splice,z=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),ea=!z&&"undefined"!=typeof importScripts,ja=z&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,Y="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),F={},q={},R=[],M=!1;if(void 0===define){if(void 0!==requirejs){if(G(requirejs))return;q=requirejs,requirejs=void 0}void 0!==require&&!G(require)&&(q=require,require=void 0),g=requirejs=function(A,e,t,n){var i,r="_";return!H(A)&&"string"!=typeof A&&(i=A,H(e)?(A=e,e=t,t=n):A=[]),i&&i.context&&(r=i.context),(n=m(F,r))||(n=F[r]=g.s.newContext(r)),i&&n.configure(i),n.require(A,e,t)},g.config=function(A){return g(A)},g.nextTick="undefined"!=typeof setTimeout?function(A){setTimeout(A,4)}:function(A){A()},require||(require=g),g.version="2.1.14",g.jsExtRegExp=/^\/|:|\?|\.js$/,g.isBrowser=z,x=g.s={contexts:F,newContext:ga},g({}),v(["toUrl","undef","defined","specified"],function(A){g[A]=function(){var e=F._;return e.require[A].apply(e,arguments)}}),z&&(y=x.head=document.getElementsByTagName("head")[0],D=document.getElementsByTagName("base")[0])&&(y=x.head=D.parentNode),g.onError=ca,g.createNode=function(A){var e=A.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return e.type=A.scriptType||"text/javascript",e.charset="utf-8",e.async=!0,e},g.load=function(A,e,t){var n=A&&A.config||{};if(z)return n=g.createNode(n,e,t),n.setAttribute("data-requirecontext",A.contextName),n.setAttribute("data-requiremodule",e),!n.attachEvent||n.attachEvent.toString&&0>n.attachEvent.toString().indexOf("[native code")||Y?(n.addEventListener("load",A.onScriptLoad,!1),n.addEventListener("error",A.onScriptError,!1)):(M=!0,n.attachEvent("onreadystatechange",A.onScriptLoad)),n.src=t,J=n,D?y.insertBefore(n,D):y.appendChild(n),J=null,n;if(ea)try{importScripts(t),A.completeLoad(e)}catch(n){A.onError(C("importscripts","importScripts failed for "+e+" at "+t,n,[e]))}},z&&!q.skipDataMain&&T(document.getElementsByTagName("script"),function(A){if(y||(y=A.parentNode),I=A.getAttribute("data-main"))return s=I,q.baseUrl||(E=s.split("/"),s=E.pop(),O=E.length?E.join("/")+"/":"./",q.baseUrl=O),s=s.replace(Q,""),g.jsExtRegExp.test(s)&&(s=I),q.deps=q.deps?q.deps.concat(s):[s],!0}),define=function(A,e,t){var n,i;"string"!=typeof A&&(t=e,e=A,A=null),H(e)||(t=e,e=null),!e&&G(t)&&(e=[],t.length&&(t.toString().replace(ka,"").replace(la,function(A,t){e.push(t)}),e=(1===t.length?["require"]:["require","exports","module"]).concat(e))),M&&((n=J)||(N&&"interactive"===N.readyState||T(document.getElementsByTagName("script"),function(A){if("interactive"===A.readyState)return N=A}),n=N),n&&(A||(A=n.getAttribute("data-requiremodule")),i=F[n.getAttribute("data-requirecontext")])),(i?i.defQueue:R).push([A,e,t])},define.amd={jQuery:!0},g.exec=function(b){return eval(b)},g(q)}}(this),define("libs/require",function(){}),function(A,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=A.document?e(A,!0):function(A){if(!A.document)throw new Error("jQuery requires a window with a document");return e(A)}:e(A)}("undefined"!=typeof window?window:this,function(A,e){function t(A){var e=A.length,t=iA.type(A);return"function"!==t&&!iA.isWindow(A)&&(!(1!==A.nodeType||!e)||("array"===t||0===e||"number"==typeof e&&e>0&&e-1 in A))}function n(A,e,t){if(iA.isFunction(e))return iA.grep(A,function(A,n){return!!e.call(A,n,A)!==t});if(e.nodeType)return iA.grep(A,function(A){return A===e!==t});if("string"==typeof e){if(gA.test(e))return iA.filter(e,A,t);e=iA.filter(e,A)}return iA.grep(A,function(A){return iA.inArray(A,e)>=0!==t})}function i(A,e){do{A=A[e]}while(A&&1!==A.nodeType);return A}function r(A){var e=fA[A]={};return iA.each(A.match(EA)||[],function(A,t){e[t]=!0}),e}function o(){BA.addEventListener?(BA.removeEventListener("DOMContentLoaded",s,!1),A.removeEventListener("load",s,!1)):(BA.detachEvent("onreadystatechange",s),A.detachEvent("onload",s))}function s(){(BA.addEventListener||"load"===event.type||"complete"===BA.readyState)&&(o(),iA.ready())}function a(A,e,t){if(void 0===t&&1===A.nodeType){var n="data-"+e.replace(MA,"-$1").toLowerCase();if("string"==typeof(t=A.getAttribute(n))){try{t="true"===t||"false"!==t&&("null"===t?null:+t+""===t?+t:mA.test(t)?iA.parseJSON(t):t)}catch(A){}iA.data(A,e,t)}else t=void 0}return t}function l(A){var e;for(e in A)if(("data"!==e||!iA.isEmptyObject(A[e]))&&"toJSON"!==e)return!1;return!0}function c(A,e,t,n){if(iA.acceptData(A)){var i,r,o=iA.expando,s=A.nodeType,a=s?iA.cache:A,l=s?A[o]:A[o]&&o;if(l&&a[l]&&(n||a[l].data)||void 0!==t||"string"!=typeof e)return l||(l=s?A[o]=K.pop()||iA.guid++:o),a[l]||(a[l]=s?{}:{toJSON:iA.noop}),("object"==typeof e||"function"==typeof e)&&(n?a[l]=iA.extend(a[l],e):a[l].data=iA.extend(a[l].data,e)),r=a[l],n||(r.data||(r.data={}),r=r.data),void 0!==t&&(r[iA.camelCase(e)]=t),"string"==typeof e?null==(i=r[e])&&(i=r[iA.camelCase(e)]):i=r,i}}function u(A,e,t){if(iA.acceptData(A)){var n,i,r=A.nodeType,o=r?iA.cache:A,s=r?A[iA.expando]:iA.expando;if(o[s]){if(e&&(n=t?o[s]:o[s].data)){iA.isArray(e)?e=e.concat(iA.map(e,iA.camelCase)):e in n?e=[e]:(e=iA.camelCase(e),e=e in n?[e]:e.split(" ")),i=e.length;for(;i--;)delete n[e[i]];if(t?!l(n):!iA.isEmptyObject(n))return}(t||(delete o[s].data,l(o[s])))&&(r?iA.cleanData([A],!0):tA.deleteExpando||o!=o.window?delete o[s]:o[s]=null)}}}function g(){return!0}function h(){return!1}function B(){try{return BA.activeElement}catch(A){}}function d(A){var e=RA.split("|"),t=A.createDocumentFragment();if(t.createElement)for(;e.length;)t.createElement(e.pop());return t}function p(A,e){var t,n,i=0,r=typeof A.getElementsByTagName!==IA?A.getElementsByTagName(e||"*"):typeof A.querySelectorAll!==IA?A.querySelectorAll(e||"*"):void 0;if(!r)for(r=[],t=A.childNodes||A;null!=(n=t[i]);i++)!e||iA.nodeName(n,e)?r.push(n):iA.merge(r,p(n,e));return void 0===e||e&&iA.nodeName(A,e)?iA.merge([A],r):r}function Q(A){GA.test(A.type)&&(A.defaultChecked=A.checked)}function E(A,e){return iA.nodeName(A,"table")&&iA.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?A.getElementsByTagName("tbody")[0]||A.appendChild(A.ownerDocument.createElement("tbody")):A}function f(A){return A.type=(null!==iA.find.attr(A,"type"))+"/"+A.type,A}function C(A){var e=VA.exec(A.type);return e?A.type=e[1]:A.removeAttribute("type"),A}function w(A,e){for(var t,n=0;null!=(t=A[n]);n++)iA._data(t,"globalEval",!e||iA._data(e[n],"globalEval"))}function I(A,e){if(1===e.nodeType&&iA.hasData(A)){var t,n,i,r=iA._data(A),o=iA._data(e,r),s=r.events;if(s){delete o.handle,o.events={};for(t in s)for(n=0,i=s[t].length;i>n;n++)iA.event.add(e,t,s[t][n])}o.data&&(o.data=iA.extend({},o.data))}}function m(A,e){var t,n,i;if(1===e.nodeType){if(t=e.nodeName.toLowerCase(),!tA.noCloneEvent&&e[iA.expando]){i=iA._data(e);for(n in i.events)iA.removeEvent(e,n,i.handle);e.removeAttribute(iA.expando)}"script"===t&&e.text!==A.text?(f(e).text=A.text,C(e)):"object"===t?(e.parentNode&&(e.outerHTML=A.outerHTML),tA.html5Clone&&A.innerHTML&&!iA.trim(e.innerHTML)&&(e.innerHTML=A.innerHTML)):"input"===t&&GA.test(A.type)?(e.defaultChecked=e.checked=A.checked,e.value!==A.value&&(e.value=A.value)):"option"===t?e.defaultSelected=e.selected=A.defaultSelected:("input"===t||"textarea"===t)&&(e.defaultValue=A.defaultValue)}}function M(e,t){var n,i=iA(t.createElement(e)).appendTo(t.body),r=A.getDefaultComputedStyle&&(n=A.getDefaultComputedStyle(i[0]))?n.display:iA.css(i[0],"display");return i.detach(),r}function b(A){var e=BA,t=qA[A];return t||(t=M(A,e),"none"!==t&&t||(XA=(XA||iA("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=(XA[0].contentWindow||XA[0].contentDocument).document,e.write(),e.close(),t=M(A,e),XA.detach()),qA[A]=t),t}function v(A,e){return{get:function(){var t=A();if(null!=t)return t?void delete this.get:(this.get=e).apply(this,arguments)}}}function y(A,e){if(e in A)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=e,i=ue.length;i--;)if((e=ue[i]+t)in A)return e;return n}function D(A,e){for(var t,n,i,r=[],o=0,s=A.length;s>o;o++)n=A[o],n.style&&(r[o]=iA._data(n,"olddisplay"),t=n.style.display,e?(r[o]||"none"!==t||(n.style.display=""),""===n.style.display&&yA(n)&&(r[o]=iA._data(n,"olddisplay",b(n.nodeName)))):(i=yA(n),(t&&"none"!==t||!i)&&iA._data(n,"olddisplay",i?t:iA.css(n,"display"))));for(o=0;s>o;o++)n=A[o],n.style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?r[o]||"":"none"));return A}function G(A,e,t){var n=se.exec(e);return n?Math.max(0,n[1]-(t||0))+(n[2]||"px"):e}function F(A,e,t,n,i){for(var r=t===(n?"border":"content")?4:"width"===e?1:0,o=0;4>r;r+=2)"margin"===t&&(o+=iA.css(A,t+vA[r],!0,i)),n?("content"===t&&(o-=iA.css(A,"padding"+vA[r],!0,i)),"margin"!==t&&(o-=iA.css(A,"border"+vA[r]+"Width",!0,i))):(o+=iA.css(A,"padding"+vA[r],!0,i),"padding"!==t&&(o+=iA.css(A,"border"+vA[r]+"Width",!0,i)));return o}function Y(A,e,t){var n=!0,i="width"===e?A.offsetWidth:A.offsetHeight,r=$A(A),o=tA.boxSizing&&"border-box"===iA.css(A,"boxSizing",!1,r);if(0>=i||null==i){if(i=Ae(A,e,r),(0>i||null==i)&&(i=A.style[e]),te.test(i))return i;n=o&&(tA.boxSizingReliable()||i===A.style[e]),i=parseFloat(i)||0}return i+F(A,e,t||(o?"border":"content"),n,r)+"px"}function k(A,e,t,n,i){return new k.prototype.init(A,e,t,n,i)}function H(){return setTimeout(function(){ge=void 0}),ge=iA.now()}function L(A,e){var t,n={height:A},i=0;for(e=e?1:0;4>i;i+=2-e)t=vA[i],n["margin"+t]=n["padding"+t]=A;return e&&(n.opacity=n.width=A),n}function R(A,e,t){for(var n,i=(Ee[e]||[]).concat(Ee["*"]),r=0,o=i.length;o>r;r++)if(n=i[r].call(t,e,A))return n}function U(A,e,t){var n,i,r,o,s,a,l,c=this,u={},g=A.style,h=A.nodeType&&yA(A),B=iA._data(A,"fxshow");t.queue||(s=iA._queueHooks(A,"fx"),null==s.unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,iA.queue(A,"fx").length||s.empty.fire()})})),1===A.nodeType&&("height"in e||"width"in e)&&(t.overflow=[g.overflow,g.overflowX,g.overflowY],l=iA.css(A,"display"),"inline"===("none"===l?iA._data(A,"olddisplay")||b(A.nodeName):l)&&"none"===iA.css(A,"float")&&(tA.inlineBlockNeedsLayout&&"inline"!==b(A.nodeName)?g.zoom=1:g.display="inline-block")),t.overflow&&(g.overflow="hidden",tA.shrinkWrapBlocks()||c.always(function(){g.overflow=t.overflow[0],g.overflowX=t.overflow[1],g.overflowY=t.overflow[2]}));for(n in e)if(i=e[n],Be.exec(i)){if(delete e[n],r=r||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!B||void 0===B[n])continue;h=!0}u[n]=B&&B[n]||iA.style(A,n)}else l=void 0;if(iA.isEmptyObject(u))"inline"===("none"===l?b(A.nodeName):l)&&(g.display=l);else{B?"hidden"in B&&(h=B.hidden):B=iA._data(A,"fxshow",{}),r&&(B.hidden=!h),h?iA(A).show():c.done(function(){iA(A).hide()}),c.done(function(){var e;iA._removeData(A,"fxshow");for(e in u)iA.style(A,e,u[e])});for(n in u)o=R(h?B[n]:0,n,c),n in B||(B[n]=o.start,h&&(o.end=o.start,o.start="width"===n||"height"===n?1:0))}}function x(A,e){var t,n,i,r,o;for(t in A)if(n=iA.camelCase(t),i=e[n],r=A[t],iA.isArray(r)&&(i=r[1],r=A[t]=r[0]),t!==n&&(A[n]=r,delete A[t]),(o=iA.cssHooks[n])&&"expand"in o){r=o.expand(r),delete A[n];for(t in r)t in A||(A[t]=r[t],e[t]=i)}else e[n]=i}function S(A,e,t){var n,i,r=0,o=Qe.length,s=iA.Deferred().always(function(){delete a.elem}),a=function(){if(i)return!1;for(var e=ge||H(),t=Math.max(0,l.startTime+l.duration-e),n=t/l.duration||0,r=1-n,o=0,a=l.tweens.length;a>o;o++)l.tweens[o].run(r);return s.notifyWith(A,[l,r,t]),1>r&&a?t:(s.resolveWith(A,[l]),!1)},l=s.promise({elem:A,props:iA.extend({},e),opts:iA.extend(!0,{specialEasing:{}},t),originalProperties:e,originalOptions:t,startTime:ge||H(),duration:t.duration,tweens:[],createTween:function(e,t){var n=iA.Tween(A,l.opts,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(i)return this;for(i=!0;n>t;t++)l.tweens[t].run(1);return e?s.resolveWith(A,[l,e]):s.rejectWith(A,[l,e]),this}}),c=l.props;for(x(c,l.opts.specialEasing);o>r;r++)if(n=Qe[r].call(l,A,c,l.opts))return n;return iA.map(c,R,l),iA.isFunction(l.opts.start)&&l.opts.start.call(A,l),iA.fx.timer(iA.extend(a,{elem:A,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)}function T(A){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,r=e.toLowerCase().match(EA)||[];if(iA.isFunction(t))for(;n=r[i++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(A[n]=A[n]||[]).unshift(t)):(A[n]=A[n]||[]).push(t)}}function N(A,e,t,n){function i(s){var a;return r[s]=!0,iA.each(A[s]||[],function(A,s){var l=s(e,t,n);return"string"!=typeof l||o||r[l]?o?!(a=l):void 0:(e.dataTypes.unshift(l),i(l),!1)}),a}var r={},o=A===Je;return i(e.dataTypes[0])||!r["*"]&&i("*")}function j(A,e){var t,n,i=iA.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?A:t||(t={}))[n]=e[n]);return t&&iA.extend(!0,A,t),A}function J(A,e,t){for(var n,i,r,o,s=A.contents,a=A.dataTypes;"*"===a[0];)a.shift(),void 0===i&&(i=A.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in s)if(s[o]&&s[o].test(i)){a.unshift(o);break}if(a[0]in t)r=a[0];else{for(o in t){if(!a[0]||A.converters[o+" "+a[0]]){r=o;break}n||(n=o)}r=r||n}return r?(r!==a[0]&&a.unshift(r),t[r]):void 0}function _(A,e,t,n){var i,r,o,s,a,l={},c=A.dataTypes.slice();if(c[1])for(o in A.converters)l[o.toLowerCase()]=A.converters[o];for(r=c.shift();r;)if(A.responseFields[r]&&(t[A.responseFields[r]]=e),!a&&n&&A.dataFilter&&(e=A.dataFilter(e,A.dataType)),a=r,r=c.shift())if("*"===r)r=a;else if("*"!==a&&a!==r){if(!(o=l[a+" "+r]||l["* "+r]))for(i in l)if(s=i.split(" "),s[1]===r&&(o=l[a+" "+s[0]]||l["* "+s[0]])){!0===o?o=l[i]:!0!==l[i]&&(r=s[0],c.unshift(s[1]));break}if(!0!==o)if(o&&A.throws)e=o(e);else try{e=o(e)}catch(A){return{state:"parsererror",error:o?A:"No conversion from "+a+" to "+r}}}return{state:"success",data:e}}function P(A,e,t,n){var i;if(iA.isArray(e))iA.each(e,function(e,i){t||Oe.test(A)?n(A,i):P(A+"["+("object"==typeof i?e:"")+"]",i,t,n)});else if(t||"object"!==iA.type(e))n(A,e);else for(i in e)P(A+"["+i+"]",e[i],t,n)}function O(){try{return new A.XMLHttpRequest}catch(A){}}function V(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(A){}}function W(A){return iA.isWindow(A)?A:9===A.nodeType&&(A.defaultView||A.parentWindow)}var K=[],z=K.slice,Z=K.concat,X=K.push,q=K.indexOf,$={},AA=$.toString,eA=$.hasOwnProperty,tA={},nA="1.11.1",iA=function(A,e){return new iA.fn.init(A,e)},rA=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,oA=/^-ms-/,sA=/-([\da-z])/gi,aA=function(A,e){return e.toUpperCase()};iA.fn=iA.prototype={jquery:nA,constructor:iA,selector:"",length:0,toArray:function(){return z.call(this)},get:function(A){return null!=A?0>A?this[A+this.length]:this[A]:z.call(this)},pushStack:function(A){var e=iA.merge(this.constructor(),A);return e.prevObject=this,e.context=this.context,e},each:function(A,e){return iA.each(this,A,e)},map:function(A){return this.pushStack(iA.map(this,function(e,t){return A.call(e,t,e)}))},slice:function(){return this.pushStack(z.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(A){var e=this.length,t=+A+(0>A?e:0);return this.pushStack(t>=0&&e>t?[this[t]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:X,sort:K.sort,splice:K.splice},iA.extend=iA.fn.extend=function(){var A,e,t,n,i,r,o=arguments[0]||{},s=1,a=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[s]||{},s++),"object"==typeof o||iA.isFunction(o)||(o={}),s===a&&(o=this,s--);a>s;s++)if(null!=(i=arguments[s]))for(n in i)A=o[n],t=i[n],o!==t&&(l&&t&&(iA.isPlainObject(t)||(e=iA.isArray(t)))?(e?(e=!1,r=A&&iA.isArray(A)?A:[]):r=A&&iA.isPlainObject(A)?A:{},o[n]=iA.extend(l,r,t)):void 0!==t&&(o[n]=t));return o},iA.extend({expando:"jQuery"+(nA+Math.random()).replace(/\D/g,""),isReady:!0,error:function(A){throw new Error(A)},noop:function(){},isFunction:function(A){return"function"===iA.type(A)},isArray:Array.isArray||function(A){return"array"===iA.type(A)},isWindow:function(A){return null!=A&&A==A.window},isNumeric:function(A){return!iA.isArray(A)&&A-parseFloat(A)>=0},isEmptyObject:function(A){var e;for(e in A)return!1;return!0},isPlainObject:function(A){var e;if(!A||"object"!==iA.type(A)||A.nodeType||iA.isWindow(A))return!1;try{if(A.constructor&&!eA.call(A,"constructor")&&!eA.call(A.constructor.prototype,"isPrototypeOf"))return!1}catch(A){return!1}if(tA.ownLast)for(e in A)return eA.call(A,e);for(e in A);return void 0===e||eA.call(A,e)},type:function(A){return null==A?A+"":"object"==typeof A||"function"==typeof A?$[AA.call(A)]||"object":typeof A},globalEval:function(e){e&&iA.trim(e)&&(A.execScript||function(e){A.eval.call(A,e)})(e)},camelCase:function(A){return A.replace(oA,"ms-").replace(sA,aA)},nodeName:function(A,e){return A.nodeName&&A.nodeName.toLowerCase()===e.toLowerCase()},each:function(A,e,n){var i=0,r=A.length,o=t(A);if(n){if(o)for(;r>i&&!1!==e.apply(A[i],n);i++);else for(i in A)if(!1===e.apply(A[i],n))break}else if(o)for(;r>i&&!1!==e.call(A[i],i,A[i]);i++);else for(i in A)if(!1===e.call(A[i],i,A[i]))break;return A},trim:function(A){return null==A?"":(A+"").replace(rA,"")},makeArray:function(A,e){var n=e||[];return null!=A&&(t(Object(A))?iA.merge(n,"string"==typeof A?[A]:A):X.call(n,A)),n},inArray:function(A,e,t){var n;if(e){if(q)return q.call(e,A,t);for(n=e.length,t=t?0>t?Math.max(0,n+t):t:0;n>t;t++)if(t in e&&e[t]===A)return t}return-1},merge:function(A,e){for(var t=+e.length,n=0,i=A.length;t>n;)A[i++]=e[n++];if(t!==t)for(;void 0!==e[n];)A[i++]=e[n++];return A.length=i,A},grep:function(A,e,t){for(var n=[],i=0,r=A.length,o=!t;r>i;i++)!e(A[i],i)!==o&&n.push(A[i]);return n},map:function(A,e,n){var i,r=0,o=A.length,s=t(A),a=[];if(s)for(;o>r;r++)null!=(i=e(A[r],r,n))&&a.push(i);else for(r in A)null!=(i=e(A[r],r,n))&&a.push(i);return Z.apply([],a)},guid:1,proxy:function(A,e){var t,n,i;return"string"==typeof e&&(i=A[e],e=A,A=i),iA.isFunction(A)?(t=z.call(arguments,2),n=function(){return A.apply(e||this,t.concat(z.call(arguments)))},n.guid=A.guid=A.guid||iA.guid++,n):void 0},now:function(){return+new Date},support:tA}),iA.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(A,e){$["[object "+e+"]"]=e.toLowerCase()});var lA=function(A){function e(A,e,t,n){var i,r,o,s,l,u,g,h,B,d;if((e?e.ownerDocument||e:S)!==F&&G(e),e=e||F,t=t||[],!A||"string"!=typeof A)return t;if(1!==(s=e.nodeType)&&9!==s)return[];if(k&&!n){if(i=pA.exec(A))if(o=i[1]){if(9===s){if(!(r=e.getElementById(o))||!r.parentNode)return t;if(r.id===o)return t.push(r),t}else if(e.ownerDocument&&(r=e.ownerDocument.getElementById(o))&&U(e,r)&&r.id===o)return t.push(r),t}else{if(i[2])return X.apply(t,e.getElementsByTagName(A)),t;if((o=i[3])&&f.getElementsByClassName&&e.getElementsByClassName)return X.apply(t,e.getElementsByClassName(o)),t}if(f.qsa&&(!H||!H.test(A))){if(h=g=x,B=e,d=9===s&&A,1===s&&"object"!==e.nodeName.toLowerCase()){for(u=m(A),(g=e.getAttribute("id"))?h=g.replace(EA,"\\$&"):e.setAttribute("id",h),h="[id='"+h+"'] ",l=u.length;l--;)u[l]=h+c(u[l]);B=QA.test(A)&&a(e.parentNode)||e,d=u.join(",")}if(d)try{return X.apply(t,B.querySelectorAll(d)),t}catch(A){}finally{g||e.removeAttribute("id")}}}return b(A.replace(oA,"$1"),e,t,n)}function t(){function A(t,n){return e.push(t+" ")>C.cacheLength&&delete A[e.shift()],A[t+" "]=n}var e=[];return A}function n(A){return A[x]=!0,A}function i(A){var e=F.createElement("div");try{return!!A(e)}catch(A){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function r(A,e){for(var t=A.split("|"),n=A.length;n--;)C.attrHandle[t[n]]=e}function o(A,e){var t=e&&A,n=t&&1===A.nodeType&&1===e.nodeType&&(~e.sourceIndex||V)-(~A.sourceIndex||V);if(n)return n;if(t)for(;t=t.nextSibling;)if(t===e)return-1;return A?1:-1}function s(A){return n(function(e){return e=+e,n(function(t,n){for(var i,r=A([],t.length,e),o=r.length;o--;)t[i=r[o]]&&(t[i]=!(n[i]=t[i]))})})}function a(A){return A&&typeof A.getElementsByTagName!==O&&A}function l(){}
function c(A){for(var e=0,t=A.length,n="";t>e;e++)n+=A[e].value;return n}function u(A,e,t){var n=e.dir,i=t&&"parentNode"===n,r=N++;return e.first?function(e,t,r){for(;e=e[n];)if(1===e.nodeType||i)return A(e,t,r)}:function(e,t,o){var s,a,l=[T,r];if(o){for(;e=e[n];)if((1===e.nodeType||i)&&A(e,t,o))return!0}else for(;e=e[n];)if(1===e.nodeType||i){if(a=e[x]||(e[x]={}),(s=a[n])&&s[0]===T&&s[1]===r)return l[2]=s[2];if(a[n]=l,l[2]=A(e,t,o))return!0}}}function g(A){return A.length>1?function(e,t,n){for(var i=A.length;i--;)if(!A[i](e,t,n))return!1;return!0}:A[0]}function h(A,t,n){for(var i=0,r=t.length;r>i;i++)e(A,t[i],n);return n}function B(A,e,t,n,i){for(var r,o=[],s=0,a=A.length,l=null!=e;a>s;s++)(r=A[s])&&(!t||t(r,n,i))&&(o.push(r),l&&e.push(s));return o}function d(A,e,t,i,r,o){return i&&!i[x]&&(i=d(i)),r&&!r[x]&&(r=d(r,o)),n(function(n,o,s,a){var l,c,u,g=[],d=[],p=o.length,Q=n||h(e||"*",s.nodeType?[s]:s,[]),E=!A||!n&&e?Q:B(Q,g,A,s,a),f=t?r||(n?A:p||i)?[]:o:E;if(t&&t(E,f,s,a),i)for(l=B(f,d),i(l,[],s,a),c=l.length;c--;)(u=l[c])&&(f[d[c]]=!(E[d[c]]=u));if(n){if(r||A){if(r){for(l=[],c=f.length;c--;)(u=f[c])&&l.push(E[c]=u);r(null,f=[],l,a)}for(c=f.length;c--;)(u=f[c])&&(l=r?$.call(n,u):g[c])>-1&&(n[l]=!(o[l]=u))}}else f=B(f===o?f.splice(p,f.length):f),r?r(null,o,f,a):X.apply(o,f)})}function p(A){for(var e,t,n,i=A.length,r=C.relative[A[0].type],o=r||C.relative[" "],s=r?1:0,a=u(function(A){return A===e},o,!0),l=u(function(A){return $.call(e,A)>-1},o,!0),h=[function(A,t,n){return!r&&(n||t!==v)||((e=t).nodeType?a(A,t,n):l(A,t,n))}];i>s;s++)if(t=C.relative[A[s].type])h=[u(g(h),t)];else{if(t=C.filter[A[s].type].apply(null,A[s].matches),t[x]){for(n=++s;i>n&&!C.relative[A[n].type];n++);return d(s>1&&g(h),s>1&&c(A.slice(0,s-1).concat({value:" "===A[s-2].type?"*":""})).replace(oA,"$1"),t,n>s&&p(A.slice(s,n)),i>n&&p(A=A.slice(n)),i>n&&c(A))}h.push(t)}return g(h)}function Q(A,t){var i=t.length>0,r=A.length>0,o=function(n,o,s,a,l){var c,u,g,h=0,d="0",p=n&&[],Q=[],E=v,f=n||r&&C.find.TAG("*",l),w=T+=null==E?1:Math.random()||.1,I=f.length;for(l&&(v=o!==F&&o);d!==I&&null!=(c=f[d]);d++){if(r&&c){for(u=0;g=A[u++];)if(g(c,o,s)){a.push(c);break}l&&(T=w)}i&&((c=!g&&c)&&h--,n&&p.push(c))}if(h+=d,i&&d!==h){for(u=0;g=t[u++];)g(p,Q,o,s);if(n){if(h>0)for(;d--;)p[d]||Q[d]||(Q[d]=z.call(a));Q=B(Q)}X.apply(a,Q),l&&!n&&Q.length>0&&h+t.length>1&&e.uniqueSort(a)}return l&&(T=w,v=E),p};return i?n(o):o}var E,f,C,w,I,m,M,b,v,y,D,G,F,Y,k,H,L,R,U,x="sizzle"+-new Date,S=A.document,T=0,N=0,j=t(),J=t(),_=t(),P=function(A,e){return A===e&&(D=!0),0},O="undefined",V=1<<31,W={}.hasOwnProperty,K=[],z=K.pop,Z=K.push,X=K.push,q=K.slice,$=K.indexOf||function(A){for(var e=0,t=this.length;t>e;e++)if(this[e]===A)return e;return-1},AA="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",eA="[\\x20\\t\\r\\n\\f]",tA="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",nA=tA.replace("w","w#"),iA="\\["+eA+"*("+tA+")(?:"+eA+"*([*^$|!~]?=)"+eA+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+nA+"))|)"+eA+"*\\]",rA=":("+tA+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+iA+")*)|.*)\\)|)",oA=new RegExp("^"+eA+"+|((?:^|[^\\\\])(?:\\\\.)*)"+eA+"+$","g"),sA=new RegExp("^"+eA+"*,"+eA+"*"),aA=new RegExp("^"+eA+"*([>+~]|"+eA+")"+eA+"*"),lA=new RegExp("="+eA+"*([^\\]'\"]*?)"+eA+"*\\]","g"),cA=new RegExp(rA),uA=new RegExp("^"+nA+"$"),gA={ID:new RegExp("^#("+tA+")"),CLASS:new RegExp("^\\.("+tA+")"),TAG:new RegExp("^("+tA.replace("w","w*")+")"),ATTR:new RegExp("^"+iA),PSEUDO:new RegExp("^"+rA),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+eA+"*(even|odd|(([+-]|)(\\d*)n|)"+eA+"*(?:([+-]|)"+eA+"*(\\d+)|))"+eA+"*\\)|)","i"),bool:new RegExp("^(?:"+AA+")$","i"),needsContext:new RegExp("^"+eA+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+eA+"*((?:-\\d)?\\d*)"+eA+"*\\)|)(?=[^-]|$)","i")},hA=/^(?:input|select|textarea|button)$/i,BA=/^h\d$/i,dA=/^[^{]+\{\s*\[native \w/,pA=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,QA=/[+~]/,EA=/'|\\/g,fA=new RegExp("\\\\([\\da-f]{1,6}"+eA+"?|("+eA+")|.)","ig"),CA=function(A,e,t){var n="0x"+e-65536;return n!==n||t?e:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)};try{X.apply(K=q.call(S.childNodes),S.childNodes),K[S.childNodes.length].nodeType}catch(A){X={apply:K.length?function(A,e){Z.apply(A,q.call(e))}:function(A,e){for(var t=A.length,n=0;A[t++]=e[n++];);A.length=t-1}}}f=e.support={},I=e.isXML=function(A){var e=A&&(A.ownerDocument||A).documentElement;return!!e&&"HTML"!==e.nodeName},G=e.setDocument=function(A){var e,t=A?A.ownerDocument||A:S,n=t.defaultView;return t!==F&&9===t.nodeType&&t.documentElement?(F=t,Y=t.documentElement,k=!I(t),n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",function(){G()},!1):n.attachEvent&&n.attachEvent("onunload",function(){G()})),f.attributes=i(function(A){return A.className="i",!A.getAttribute("className")}),f.getElementsByTagName=i(function(A){return A.appendChild(t.createComment("")),!A.getElementsByTagName("*").length}),f.getElementsByClassName=dA.test(t.getElementsByClassName)&&i(function(A){return A.innerHTML="<div class='a'></div><div class='a i'></div>",A.firstChild.className="i",2===A.getElementsByClassName("i").length}),f.getById=i(function(A){return Y.appendChild(A).id=x,!t.getElementsByName||!t.getElementsByName(x).length}),f.getById?(C.find.ID=function(A,e){if(typeof e.getElementById!==O&&k){var t=e.getElementById(A);return t&&t.parentNode?[t]:[]}},C.filter.ID=function(A){var e=A.replace(fA,CA);return function(A){return A.getAttribute("id")===e}}):(delete C.find.ID,C.filter.ID=function(A){var e=A.replace(fA,CA);return function(A){var t=typeof A.getAttributeNode!==O&&A.getAttributeNode("id");return t&&t.value===e}}),C.find.TAG=f.getElementsByTagName?function(A,e){return typeof e.getElementsByTagName!==O?e.getElementsByTagName(A):void 0}:function(A,e){var t,n=[],i=0,r=e.getElementsByTagName(A);if("*"===A){for(;t=r[i++];)1===t.nodeType&&n.push(t);return n}return r},C.find.CLASS=f.getElementsByClassName&&function(A,e){return typeof e.getElementsByClassName!==O&&k?e.getElementsByClassName(A):void 0},L=[],H=[],(f.qsa=dA.test(t.querySelectorAll))&&(i(function(A){A.innerHTML="<select msallowclip=''><option selected=''></option></select>",A.querySelectorAll("[msallowclip^='']").length&&H.push("[*^$]="+eA+"*(?:''|\"\")"),A.querySelectorAll("[selected]").length||H.push("\\["+eA+"*(?:value|"+AA+")"),A.querySelectorAll(":checked").length||H.push(":checked")}),i(function(A){var e=t.createElement("input");e.setAttribute("type","hidden"),A.appendChild(e).setAttribute("name","D"),A.querySelectorAll("[name=d]").length&&H.push("name"+eA+"*[*^$|!~]?="),A.querySelectorAll(":enabled").length||H.push(":enabled",":disabled"),A.querySelectorAll("*,:x"),H.push(",.*:")})),(f.matchesSelector=dA.test(R=Y.matches||Y.webkitMatchesSelector||Y.mozMatchesSelector||Y.oMatchesSelector||Y.msMatchesSelector))&&i(function(A){f.disconnectedMatch=R.call(A,"div"),R.call(A,"[s!='']:x"),L.push("!=",rA)}),H=H.length&&new RegExp(H.join("|")),L=L.length&&new RegExp(L.join("|")),e=dA.test(Y.compareDocumentPosition),U=e||dA.test(Y.contains)?function(A,e){var t=9===A.nodeType?A.documentElement:A,n=e&&e.parentNode;return A===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):A.compareDocumentPosition&&16&A.compareDocumentPosition(n)))}:function(A,e){if(e)for(;e=e.parentNode;)if(e===A)return!0;return!1},P=e?function(A,e){if(A===e)return D=!0,0;var n=!A.compareDocumentPosition-!e.compareDocumentPosition;return n||(n=(A.ownerDocument||A)===(e.ownerDocument||e)?A.compareDocumentPosition(e):1,1&n||!f.sortDetached&&e.compareDocumentPosition(A)===n?A===t||A.ownerDocument===S&&U(S,A)?-1:e===t||e.ownerDocument===S&&U(S,e)?1:y?$.call(y,A)-$.call(y,e):0:4&n?-1:1)}:function(A,e){if(A===e)return D=!0,0;var n,i=0,r=A.parentNode,s=e.parentNode,a=[A],l=[e];if(!r||!s)return A===t?-1:e===t?1:r?-1:s?1:y?$.call(y,A)-$.call(y,e):0;if(r===s)return o(A,e);for(n=A;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;a[i]===l[i];)i++;return i?o(a[i],l[i]):a[i]===S?-1:l[i]===S?1:0},t):F},e.matches=function(A,t){return e(A,null,null,t)},e.matchesSelector=function(A,t){if((A.ownerDocument||A)!==F&&G(A),t=t.replace(lA,"='$1']"),!(!f.matchesSelector||!k||L&&L.test(t)||H&&H.test(t)))try{var n=R.call(A,t);if(n||f.disconnectedMatch||A.document&&11!==A.document.nodeType)return n}catch(A){}return e(t,F,null,[A]).length>0},e.contains=function(A,e){return(A.ownerDocument||A)!==F&&G(A),U(A,e)},e.attr=function(A,e){(A.ownerDocument||A)!==F&&G(A);var t=C.attrHandle[e.toLowerCase()],n=t&&W.call(C.attrHandle,e.toLowerCase())?t(A,e,!k):void 0;return void 0!==n?n:f.attributes||!k?A.getAttribute(e):(n=A.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(A){throw new Error("Syntax error, unrecognized expression: "+A)},e.uniqueSort=function(A){var e,t=[],n=0,i=0;if(D=!f.detectDuplicates,y=!f.sortStable&&A.slice(0),A.sort(P),D){for(;e=A[i++];)e===A[i]&&(n=t.push(i));for(;n--;)A.splice(t[n],1)}return y=null,A},w=e.getText=function(A){var e,t="",n=0,i=A.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof A.textContent)return A.textContent;for(A=A.firstChild;A;A=A.nextSibling)t+=w(A)}else if(3===i||4===i)return A.nodeValue}else for(;e=A[n++];)t+=w(e);return t},C=e.selectors={cacheLength:50,createPseudo:n,match:gA,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(A){return A[1]=A[1].replace(fA,CA),A[3]=(A[3]||A[4]||A[5]||"").replace(fA,CA),"~="===A[2]&&(A[3]=" "+A[3]+" "),A.slice(0,4)},CHILD:function(A){return A[1]=A[1].toLowerCase(),"nth"===A[1].slice(0,3)?(A[3]||e.error(A[0]),A[4]=+(A[4]?A[5]+(A[6]||1):2*("even"===A[3]||"odd"===A[3])),A[5]=+(A[7]+A[8]||"odd"===A[3])):A[3]&&e.error(A[0]),A},PSEUDO:function(A){var e,t=!A[6]&&A[2];return gA.CHILD.test(A[0])?null:(A[3]?A[2]=A[4]||A[5]||"":t&&cA.test(t)&&(e=m(t,!0))&&(e=t.indexOf(")",t.length-e)-t.length)&&(A[0]=A[0].slice(0,e),A[2]=t.slice(0,e)),A.slice(0,3))}},filter:{TAG:function(A){var e=A.replace(fA,CA).toLowerCase();return"*"===A?function(){return!0}:function(A){return A.nodeName&&A.nodeName.toLowerCase()===e}},CLASS:function(A){var e=j[A+" "];return e||(e=new RegExp("(^|"+eA+")"+A+"("+eA+"|$)"))&&j(A,function(A){return e.test("string"==typeof A.className&&A.className||typeof A.getAttribute!==O&&A.getAttribute("class")||"")})},ATTR:function(A,t,n){return function(i){var r=e.attr(i,A);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(A,e,t,n,i){var r="nth"!==A.slice(0,3),o="last"!==A.slice(-4),s="of-type"===e;return 1===n&&0===i?function(A){return!!A.parentNode}:function(e,t,a){var l,c,u,g,h,B,d=r!==o?"nextSibling":"previousSibling",p=e.parentNode,Q=s&&e.nodeName.toLowerCase(),E=!a&&!s;if(p){if(r){for(;d;){for(u=e;u=u[d];)if(s?u.nodeName.toLowerCase()===Q:1===u.nodeType)return!1;B=d="only"===A&&!B&&"nextSibling"}return!0}if(B=[o?p.firstChild:p.lastChild],o&&E){for(c=p[x]||(p[x]={}),l=c[A]||[],h=l[0]===T&&l[1],g=l[0]===T&&l[2],u=h&&p.childNodes[h];u=++h&&u&&u[d]||(g=h=0)||B.pop();)if(1===u.nodeType&&++g&&u===e){c[A]=[T,h,g];break}}else if(E&&(l=(e[x]||(e[x]={}))[A])&&l[0]===T)g=l[1];else for(;(u=++h&&u&&u[d]||(g=h=0)||B.pop())&&((s?u.nodeName.toLowerCase()!==Q:1!==u.nodeType)||!++g||(E&&((u[x]||(u[x]={}))[A]=[T,g]),u!==e)););return(g-=i)===n||g%n==0&&g/n>=0}}},PSEUDO:function(A,t){var i,r=C.pseudos[A]||C.setFilters[A.toLowerCase()]||e.error("unsupported pseudo: "+A);return r[x]?r(t):r.length>1?(i=[A,A,"",t],C.setFilters.hasOwnProperty(A.toLowerCase())?n(function(A,e){for(var n,i=r(A,t),o=i.length;o--;)n=$.call(A,i[o]),A[n]=!(e[n]=i[o])}):function(A){return r(A,0,i)}):r}},pseudos:{not:n(function(A){var e=[],t=[],i=M(A.replace(oA,"$1"));return i[x]?n(function(A,e,t,n){for(var r,o=i(A,null,n,[]),s=A.length;s--;)(r=o[s])&&(A[s]=!(e[s]=r))}):function(A,n,r){return e[0]=A,i(e,null,r,t),!t.pop()}}),has:n(function(A){return function(t){return e(A,t).length>0}}),contains:n(function(A){return function(e){return(e.textContent||e.innerText||w(e)).indexOf(A)>-1}}),lang:n(function(A){return uA.test(A||"")||e.error("unsupported lang: "+A),A=A.replace(fA,CA).toLowerCase(),function(e){var t;do{if(t=k?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===A||0===t.indexOf(A+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=A.location&&A.location.hash;return t&&t.slice(1)===e.id},root:function(A){return A===Y},focus:function(A){return A===F.activeElement&&(!F.hasFocus||F.hasFocus())&&!!(A.type||A.href||~A.tabIndex)},enabled:function(A){return!1===A.disabled},disabled:function(A){return!0===A.disabled},checked:function(A){var e=A.nodeName.toLowerCase();return"input"===e&&!!A.checked||"option"===e&&!!A.selected},selected:function(A){return A.parentNode&&A.parentNode.selectedIndex,!0===A.selected},empty:function(A){for(A=A.firstChild;A;A=A.nextSibling)if(A.nodeType<6)return!1;return!0},parent:function(A){return!C.pseudos.empty(A)},header:function(A){return BA.test(A.nodeName)},input:function(A){return hA.test(A.nodeName)},button:function(A){var e=A.nodeName.toLowerCase();return"input"===e&&"button"===A.type||"button"===e},text:function(A){var e;return"input"===A.nodeName.toLowerCase()&&"text"===A.type&&(null==(e=A.getAttribute("type"))||"text"===e.toLowerCase())},first:s(function(){return[0]}),last:s(function(A,e){return[e-1]}),eq:s(function(A,e,t){return[0>t?t+e:t]}),even:s(function(A,e){for(var t=0;e>t;t+=2)A.push(t);return A}),odd:s(function(A,e){for(var t=1;e>t;t+=2)A.push(t);return A}),lt:s(function(A,e,t){for(var n=0>t?t+e:t;--n>=0;)A.push(n);return A}),gt:s(function(A,e,t){for(var n=0>t?t+e:t;++n<e;)A.push(n);return A})}},C.pseudos.nth=C.pseudos.eq;for(E in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[E]=function(A){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===A}}(E);for(E in{submit:!0,reset:!0})C.pseudos[E]=function(A){return function(e){var t=e.nodeName.toLow