(function(module,exports){sumo={skipDataMain:!0},function(){if(!sumo||!sumo.requirejs){sumo?require=sumo:sumo={};var requirejs,require,define;(function(global){function isFunction(e){return ostring.call(e)==="[object Function]"}function isArray(e){return ostring.call(e)==="[object Array]"}function each(e,t){if(e){var n;for(n=0;n-1;n-=1)if(e[n]&&t(e[n],n,e))break}}function hasProp(e,t){return hasOwn.call(e,t)}function getOwn(e,t){return hasProp(e,t)&&e[t]}function eachProp(e,t){var n;for(n in e)if(hasProp(e,n)&&t(e[n],n))break}function mixin(e,t,n,r){return t&&eachProp(t,function(t,i){if(n||!hasProp(e,i))r&&typeof t=="object"&&t&&!isArray(t)&&!isFunction(t)&&!(t instanceof RegExp)?(e[i]||(e[i]={}),mixin(e[i],t,n,r)):e[i]=t}),e}function bind(e,t){return function(){return t.apply(e,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(e){throw e}function getGlobal(e){if(!e)return e;var t=global;return each(e.split("."),function(e){t=t[e]}),t}function makeError(e,t,n,r){var i=new Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e);return i.requireType=e,i.requireModules=r,n&&(i.originalError=n),i}function newContext(e){function m(e){var t,n,r=e.length;for(t=0;t0&&(e.splice(t-1,2),t-=2)}}}function g(e,t,n){var r,i,s,u,a,f,l,c,h,p,d,v=t&&t.split("/"),g=v,y=o.map,b=y&&y["*"];e&&e.charAt(0)==="."&&(t?(g=v.slice(0,v.length-1),e=e.split("/"),l=e.length-1,o.nodeIdCompat&&jsSuffixRegExp.test(e[l])&&(e[l]=e[l].replace(jsSuffixRegExp,"")),e=g.concat(e),m(e),e=e.join("/")):e.indexOf("./")===0&&(e=e.substring(2)));if(n&&y&&(v||b)){s=e.split("/");e:for(u=s.length;u>0;u-=1){f=s.slice(0,u).join("/");if(v)for(a=v.length;a>0;a-=1){i=getOwn(y,v.slice(0,a).join("/"));if(i){i=getOwn(i,f);if(i){c=i,h=u;break e}}}!p&&b&&getOwn(b,f)&&(p=getOwn(b,f),d=u)}!c&&p&&(c=p,h=d),c&&(s.splice(0,h,c),e=s.join("/"))}return r=getOwn(o.pkgs,e),r?r:e}function y(e){isBrowser&&each(scripts(),function(t){if(t.getAttribute("data-requiremodule")===e&&t.getAttribute("data-requirecontext")===r.contextName)return t.parentNode.removeChild(t),!0})}function b(e){var t=getOwn(o.paths,e);if(t&&isArray(t)&&t.length>1)return t.shift(),r.require.undef(e),r.require([e]),!0}function w(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function E(e,t,n,i){var s,o,u,a,f=null,l=t?t.name:null,h=e,p=!0,m="";return e||(p=!1,e="_@r"+(d+=1)),a=w(e),f=a[0],e=a[1],f&&(f=g(f,l,i),o=getOwn(c,f)),e&&(f?o&&o.normalize?m=o.normalize(e,function(e){return g(e,l,i)}):m=g(e,l,i):(m=g(e,l,i),a=w(m),f=a[0],m=a[1],n=!0,s=r.nameToUrl(m))),u=f&&!o&&!n?"_unnormalized"+(v+=1):"",{prefix:f,name:m,parentMap:t,unnormalized:!!u,url:s,originalName:h,isDefine:p,id:(f?f+"!"+m:m)+u}}function S(e){var t=e.id,n=getOwn(u,t);return n||(n=u[t]=new r.Module(e)),n}function x(e,t,n){var r=e.id,i=getOwn(u,r);hasProp(c,r)&&(!i||i.defineEmitComplete)?t==="defined"&&n(c[r]):(i=S(e),i.error&&t==="error"?n(i.error):i.on(t,n))}function T(e,t){var n=e.requireModules,r=!1;t?t(e):(each(n,function(t){var n=getOwn(u,t);n&&(n.error=e,n.events.error&&(r=!0,n.emit("error",e)))}),r||req.onError(e))}function N(){globalDefQueue.length&&(apsp.apply(l,[l.length,0].concat(globalDefQueue)),globalDefQueue=[])}function C(e){delete u[e],delete a[e]}function k(e,t,n){var r=e.map.id;e.error?e.emit("error",e.error):(t[r]=!0,each(e.depMaps,function(r,i){var s=r.id,o=getOwn(u,s);o&&!e.depMatched[i]&&!n[s]&&(getOwn(t,s)?(e.defineDep(i,c[s]),e.check()):k(o,t,n))}),n[r]=!0)}function L(){var e,n,i=o.waitSeconds*1e3,u=i&&r.startTime+i<(new Date).getTime(),f=[],l=[],c=!1,h=!0;if(t)return;t=!0,eachProp(a,function(e){var t=e.map,r=t.id;if(!e.enabled)return;t.isDefine||l.push(e);if(!e.error)if(!e.inited&&u)b(r)?(n=!0,c=!0):(f.push(r),y(r));else if(!e.inited&&e.fetched&&t.isDefine){c=!0;if(!t.prefix)return h=!1}});if(u&&f.length)return e=makeError("timeout","Load timeout for modules: "+f,null,f),e.contextName=r.contextName,T(e);h&&each(l,function(e){k(e,{},{})}),(!u||n)&&c&&(isBrowser||isWebWorker)&&!s&&(s=setTimeout(function(){s=0,L()},50)),t=!1}function A(e){hasProp(c,e[0])||S(E(e[0],null,!0)).init(e[1],e[2])}function O(e,t,n,r){e.detachEvent&&!isOpera?r&&e.detachEvent(r,t):e.removeEventListener(n,t,!1)}function M(e){var t=e.currentTarget||e.srcElement;return O(t,r.onScriptLoad,"load","onreadystatechange"),O(t,r.onScriptError,"error"),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function _(){var e;N();while(l.length){e=l.shift();if(e[0]===null)return T(makeError("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));A(e)}}var t,n,r,i,s,o={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},u={},a={},f={},l=[],c={},h={},p={},d=1,v=1;return i={require:function(e){return e.require?e.require:e.require=r.makeRequire(e.map)},exports:function(e){e.usingExports=!0;if(e.map.isDefine)return e.exports?e.exports:e.exports=c[e.map.id]={}},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){return getOwn(o.config,e.map.id)||{}},exports:i.exports(e)}}},n=function(e){this.events=getOwn(f,e.id)||{},this.map=e,this.shim=getOwn(o.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},n.prototype={init:function(e,t,n,r){r=r||{};if(this.inited)return;this.factory=t,n?this.on("error",n):this.events.error&&(n=bind(this,function(e){this.emit("error",e)})),this.depMaps=e&&e.slice(0),this.errback=n,this.inited=!0,this.ignore=r.ignore,r.enabled||this.enabled?this.enable():this.check()},defineDep:function(e,t){this.depMatched[e]||(this.depMatched[e]=!0,this.depCount-=1,this.depExports[e]=t)},fetch:function(){if(this.fetched)return;this.fetched=!0,r.startTime=(new Date).getTime();var e=this.map;if(!this.shim)return e.prefix?this.callPlugin():this.load();r.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return e.prefix?this.callPlugin():this.load()}))},load:function(){var e=this.map.url;h[e]||(h[e]=!0,r.load(this.map.id,e))},check:function(){if(!this.enabled||this.enabling)return;var e,t,n=this.map.id,i=this.depExports,s=this.exports,o=this.factory;if(!this.inited)this.fetch();else if(this.error)this.emit("error",this.error);else if(!this.defining){this.defining=!0;if(this.depCount<1&&!this.defined){if(isFunction(o)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{s=r.execCb(n,o,i,s)}catch(u){e=u}else s=r.execCb(n,o,i,s);this.map.isDefine&&s===undefined&&(t=this.module,t?s=t.exports:this.usingExports&&(s=this.exports));if(e)return e.requireMap=this.map,e.requireModules=this.map.isDefine?[this.map.id]:null,e.requireType=this.map.isDefine?"define":"require",T(this.error=e)}else s=o;this.exports=s,this.map.isDefine&&!this.ignore&&(c[n]=s,req.onResourceLoad&&req.onResourceLoad(r,this.map,this.depMaps)),C(n),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}},callPlugin:function(){var e=this.map,t=e.id,n=E(e.prefix);this.depMaps.push(n),x(n,"defined",bind(this,function(n){var i,s,a,f=getOwn(p,this.map.id),l=this.map.name,c=this.map.parentMap?this.map.parentMap.name:null,h=r.makeRequire(e.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){n.normalize&&(l=n.normalize(l,function(e){return g(e,c,!0)})||""),s=E(e.prefix+"!"+l,this.map.parentMap),x(s,"defined",bind(this,function(e){this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),a=getOwn(u,s.id),a&&(this.depMaps.push(s),this.events.error&&a.on("error",bind(this,function(e){this.emit("error",e)})),a.enable());return}if(f){this.map.url=r.nameToUrl(f),this.load();return}i=bind(this,function(e){this.init([],function(){return e},null,{enabled:!0})}),i.error=bind(this,function(e){this.inited=!0,this.error=e,e.requireModules=[t],eachProp(u,function(e){e.map.id.indexOf(t+"_unnormalized")===0&&C(e.map.id)}),T(e)}),i.fromText=bind(this,function(n,s){var u=e.name,a=E(u),f=useInteractive;s&&(n=s),f&&(useInteractive=!1),S(a),hasProp(o.config,t)&&(o.config[u]=o.config[t]);try{req.exec(n)}catch(l){return T(makeError("fromtexteval","fromText eval for "+t+" failed: "+l,l,[t]))}f&&(useInteractive=!0),this.depMaps.push(a),r.completeLoad(u),h([u],i)}),n.load(e.name,h,i,o)})),r.enable(n,this),this.pluginMaps[n.id]=n},enable:function(){a[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(e,t){var n,s,o;if(typeof e=="string"){e=E(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[t]=e,o=getOwn(i,e.id);if(o){this.depExports[t]=o(this);return}this.depCount+=1,x(e,"defined",bind(this,function(e){this.defineDep(t,e),this.check()})),this.errback&&x(e,"error",bind(this,this.errback))}n=e.id,s=u[n],!hasProp(i,n)&&s&&!s.enabled&&r.enable(e,this)})),eachProp(this.pluginMaps,bind(this,function(e){var t=getOwn(u,e.id);t&&!t.enabled&&r.enable(e,this)})),this.enabling=!1,this.check()},on:function(e,t){var n=this.events[e];n||(n=this.events[e]=[]),n.push(t)},emit:function(e,t){each(this.events[e],function(e){e(t)}),e==="error"&&delete this.events[e]}},r={config:o,contextName:e,registry:u,defined:c,urlFetched:h,defQueue:l,Module:n,makeModuleMap:E,nextTick:req.nextTick,onError:T,configure:function(e){e.baseUrl&&e.baseUrl.charAt(e.baseUrl.length-1)!=="/"&&(e.baseUrl+="/");var t=o.shim,n={paths:!0,bundles:!0,config:!0,map:!0};eachProp(e,function(e,t){n[t]?(o[t]||(o[t]={}),mixin(o[t],e,!0,!0)):o[t]=e}),e.bundles&&eachProp(e.bundles,function(e,t){each(e,function(e){e!==t&&(p[e]=t)})}),e.shim&&(eachProp(e.shim,function(e,n){isArray(e)&&(e={deps:e}),(e.exports||e.init)&&!e.exportsFn&&(e.exportsFn=r.makeShimExports(e)),t[n]=e}),o.shim=t),e.packages&&each(e.packages,function(e){var t,n;e=typeof e=="string"?{name:e}:e,n=e.name,t=e.location,t&&(o.paths[n]=e.location),o.pkgs[n]=e.name+"/"+(e.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}),eachProp(u,function(e,t){!e.inited&&!e.map.unnormalized&&(e.map=E(t))}),(e.deps||e.callback)&&r.require(e.deps||[],e.callback)},makeShimExports:function(e){function t(){var t;return e.init&&(t=e.init.apply(global,arguments)),t||e.exports&&getGlobal(e.exports)}return t},makeRequire:function(t,n){function s(o,a,f){var l,h,p;return n.enableBuildCallback&&a&&isFunction(a)&&(a.__requireJsBuild=!0),typeof o=="string"?isFunction(a)?T(makeError("requireargs","Invalid require call"),f):t&&hasProp(i,o)?i[o](u[t.id]):req.get?req.get(r,o,t,s):(h=E(o,t,!1,!0),l=h.id,hasProp(c,l)?c[l]:T(makeError("notloaded",'Module name "'+l+'" has not been loaded yet for context: '+e+(t?"":". Use require([])")))):(_(),r.nextTick(function(){_(),p=S(E(null,t)),p.skipMap=n.skipMap,p.init(o,a,f,{enabled:!0}),L()}),s)}return n=n||{},mixin(s,{isBrowser:isBrowser,toUrl:function(e){var n,i=e.lastIndexOf("."),s=e.split("/")[0],o=s==="."||s==="..";return i!==-1&&(!o||i>1)&&(n=e.substring(i,e.length),e=e.substring(0,i)),r.nameToUrl(g(e,t&&t.id,!0),n,!0)},defined:function(e){return hasProp(c,E(e,t,!1,!0).id)},specified:function(e){return e=E(e,t,!1,!0).id,hasProp(c,e)||hasProp(u,e)}}),t||(s.undef=function(e){N();var n=E(e,t,!0),r=getOwn(u,e);y(e),delete c[e],delete h[n.url],delete f[e],eachReverse(l,function(t,n){t[0]===e&&l.splice(n,1)}),r&&(r.events.defined&&(f[e]=r.events),C(e))}),s},enable:function(e){var t=getOwn(u,e.id);t&&S(e).enable()},completeLoad:function(e){var t,n,r,i=getOwn(o.shim,e)||{},s=i.exports;N();while(l.length){n=l.shift();if(n[0]===null){n[0]=e;if(t)break;t=!0}else n[0]===e&&(t=!0);A(n)}r=getOwn(u,e);if(!t&&!hasProp(c,e)&&r&&!r.inited){if(o.enforceDefine&&(!s||!getGlobal(s))){if(b(e))return;return T(makeError("nodefine","No define call for "+e,null,[e]))}A([e,i.deps||[],i.exportsFn])}L()},nameToUrl:function(e,t,n){function d(e){arr=e.split("/");while(!!~arr.indexOf(".."))arr.splice(arr.indexOf("..")-1,2);return arr.join("/")}var i,s,u,a,f,l,c,h=getOwn(o.pkgs,e);h&&(e=h),c=getOwn(p,e);if(c)return r.nameToUrl(c,t,n);if(req.jsExtRegExp.test(e))f=e+(t||"");else{i=o.paths,s=e.split("/");for(u=s.length;u>0;u-=1){a=s.slice(0,u).join("/"),l=getOwn(i,a);if(l){isArray(l)&&(l=l[0]),s.splice(0,u,l);break}}f=s.join("/"),f+=t||(/^data\:|\?/.test(f)||n?"":".js"),f=(f.charAt(0)==="/"||f.match(/^[\w\+\.\-]+:/)?"":o.baseUrl)+f}var v=d(f),m=o.baseUrl;m.substr(-3)=="js/"&&(m=m.substr(0,m.length-3)),v.indexOf(m)==0&&(v=v.substr(m.length));if(v in sumoSigs){var g=sumoSigs[v];f=f.replace("/static/"+sumoCommitVersion,"/virtual/"+g)}return o.urlArgs?f+((f.indexOf("?")===-1?"?":"&")+o.urlArgs):f},load:function(e,t){req.load(r,e,t)},execCb:function(e,t,n,r){return t.apply(r,n)},onScriptLoad:function(e){if(e.type==="load"||readyRegExp.test((e.currentTarget||e.srcElement).readyState)){interactiveScript=null;var t=M(e);r.completeLoad(t.id)}},onScriptError:function(e){var t=M(e);if(!b(t.id))return T(makeError("scripterror","Script error for: "+t.id,e,[t.id]))}},r.require=r.makeRequire(),r}function getInteractiveScript(){return interactiveScript&&interactiveScript.readyState==="interactive"?interactiveScript:(eachReverse(scripts(),function(e){if(e.readyState==="interactive")return interactiveScript=e}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.1.10",commentRegExp=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,ap=Array.prototype,apsp=ap.splice,isBrowser=typeof window!="undefined"&&typeof navigator!="undefined"&&!!window.document,isWebWorker=!isBrowser&&typeof importScripts!="undefined",readyRegExp=isBrowser&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera=typeof opera!="undefined"&&opera.toString()==="[object Opera]",contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if(typeof define!="undefined")return;if(typeof requirejs!="undefined"){if(isFunction(requirejs))return;cfg=requirejs,requirejs=undefined}typeof require!="undefined"&&!isFunction(require)&&(cfg=require,require=undefined),req=requirejs=function(e,t,n,r){var i,s,o=defContextName;return!isArray(e)&&typeof e!="string"&&(s=e,isArray(t)?(e=t,t=n,n=r):e=[]),s&&s.context&&(o=s.context),i=getOwn(contexts,o),i||(i=contexts[o]=req.s.newContext(o)),s&&i.configure(s),i.require(e,t,n)},req.config=function(e){return req(e)},req.nextTick=typeof setTimeout!="undefined"?function(e){setTimeout(e,4)}:function(e){e()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(e){req[e]=function(){var t=contexts[defContextName];return t.require[e].apply(t,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],baseElement=document.getElementsByTagName("base")[0],baseElement&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(e,t,n){var r=e.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return r.type=e.scriptType||"text/javascript",r.charset="utf-8",r.async=!0,r},req.load=function(e,t,n){var r=e&&e.config||{},i;if(isBrowser)return i=req.createNode(r,t,n),i.setAttribute("data-requirecontext",e.contextName),i.setAttribute("data-requiremodule",t),i.attachEvent&&!(i.attachEvent.toString&&i.attachEvent.toString().indexOf("[native code")<0)&&!isOpera?(useInteractive=!0,i.attachEvent("onreadystatechange",e.onScriptLoad)):(i.addEventListener("load",e.onScriptLoad,!1),i.addEventListener("error",e.onScriptError,!1)),i.src=n,currentlyAddingScript=i,baseElement?head.insertBefore(i,baseElement):head.appendChild(i),currentlyAddingScript=null,i;if(isWebWorker)try{importScripts(n),e.completeLoad(t)}catch(s){e.onError(makeError("importscripts","importScripts failed for "+t+" at "+n,s,[t]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(e){head||(head=e.parentNode),dataMain=e.getAttribute("data-main");if(dataMain)return mainScript=dataMain,cfg.baseUrl||(src=mainScript.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0}),define=function(e,t,n){var r,i;typeof e!="string"&&(n=t,t=e,e=null),isArray(t)||(n=t,t=null),!t&&isFunction(n)&&(t=[],n.length&&(n.toString().replace(commentRegExp,"").replace(cjsRequireRegExp,function(e,n){t.push(n)}),t=(n.length===1?["require"]:["require","exports","module"]).concat(t))),useInteractive&&(r=currentlyAddingScript||getInteractiveScript(),r&&(e||(e=r.getAttribute("data-requiremodule")),i=contexts[r.getAttribute("data-requirecontext")])),(i?i.defQueue:globalDefQueue).push([e,t,n])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)})(this),sumo.requirejs=requirejs,sumo.require=require,sumo.define=define}}(),sumo.define("requireLib",function(){}),function(){function e(e){return typeof e=="function"||typeof e=="object"&&e!==null}function t(e){return typeof e=="function"}function n(e){return typeof e=="object"&&e!==null}function f(e){u=e}function l(e){a=e}function m(){return function(){process.nextTick(S)}}function g(){return function(){o(S)}}function y(){var e=0,t=new p(S),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function b(){var e=new MessageChannel;return e.port1.onmessage=S,function(){e.port2.postMessage(0)}}function w(){return function(){setTimeout(S,1)}}function S(){for(var e=0;e0&&t-1 in e)}function q(e){var t=I[e]={};return x.each(e.match(N)||[],function(e,n){t[n]=!0}),t}function z(e,n,r,i){if(!x.acceptData(e))return;var s,o,u=x.expando,a=e.nodeType,f=a?x.cache:e,l=a?e[u]:e[u]&&u;if((!l||!f[l]||!i&&!f[l].data)&&r===t&&typeof n=="string")return;l||(a?l=e[u]=d.pop()||x.guid++:l=u),f[l]||(f[l]=a?{}:{toJSON:x.noop});if(typeof n=="object"||typeof n=="function")i?f[l]=x.extend(f[l],n):f[l].data=x.extend(f[l].data,n);return o=f[l],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[x.camelCase(n)]=r),typeof n=="string"?(s=o[n],s==null&&(s=o[x.camelCase(n)])):s=o,s}function W(e,t,n){if(!x.acceptData(e))return;var r,i,s=e.nodeType,o=s?x.cache:e,u=s?e[x.expando]:x.expando;if(!o[u])return;if(t){r=n?o[u]:o[u].data;if(r){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in r?t=[t]:(t=x.camelCase(t),t in r?t=[t]:t=t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!V(r):!x.isEmptyObject(r))return}}if(!n){delete o[u].data;if(!V(o[u]))return}s?x.cleanData([e],!0):x.support.deleteExpando||o!=o.window?delete o[u]:o[u]=null}function X(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(U,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:R.test(r)?x.parseJSON(r):r}catch(s){}x.data(e,n,r)}else r=t}return r}function V(e){var t;for(t in e){if(t==="data"&&x.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function ut(){return!0}function at(){return!1}function ft(){try{return f.activeElement}catch(e){}}function dt(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function vt(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if(typeof t=="string"){if(lt.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return x.inArray(e,t)>=0!==n})}function mt(e){var t=gt.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Pt(e,t){return x.nodeName(e,"table")&&x.nodeName(t.nodeType===1?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ht(e){return e.type=(x.find.attr(e,"type")!==null)+"/"+e.type,e}function Bt(e){var t=At.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function jt(e,t){var n,r=0;for(;(n=e[r])!=null;r++)x._data(n,"globalEval",!t||x._data(t[r],"globalEval"))}function Ft(e,t){if(t.nodeType!==1||!x.hasData(e))return;var n,r,i,s=x._data(e),o=x._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Ut[0].contentWindow||Ut[0].contentDocument).document,t.write(""),t.close(),n=hn(e,t),Ut.detach();Zt[e]=n}return n}function hn(e,t){var n=x(t.createElement(e)).appendTo(t.body),r=x.css(n[0],"display");return n.remove(),r}function yn(e,t,n,r){var i;if(x.isArray(t))x.each(t,function(t,i){n||dn.test(e)?r(e,i):yn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&x.type(t)==="object")for(i in t)yn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Pn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i=0,s=t.toLowerCase().match(N)||[];if(x.isFunction(n))while(r=s[i++])r[0]==="+"?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Hn(e,t,n,r){function o(u){var a;return i[u]=!0,x.each(e[u]||[],function(e,u){var f=u(t,n,r);if(typeof f=="string"&&!s&&!i[f])return t.dataTypes.unshift(f),o(f),!1;if(s)return!(a=f)}),a}var i={},s=e===_n;return o(t.dataTypes[0])||!i["*"]&&o("*")}function Bn(e,n){var r,i,s=x.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((s[i]?e:r||(r={}))[i]=n[i]);return r&&x.extend(!0,e,r),e}function jn(e,n,r){var i,s,o,u,a=e.contents,f=e.dataTypes;while(f[0]==="*")f.shift(),s===t&&(s=e.mimeType||n.getResponseHeader("Content-Type"));if(s)for(u in a)if(a[u]&&a[u].test(s)){f.unshift(u);break}if(f[0]in r)o=f[0];else{for(u in r){if(!f[0]||e.converters[u+" "+f[0]]){o=u;break}i||(i=u)}o=o||i}if(o)return o!==f[0]&&f.unshift(o),r[o]}function Fn(e,t,n,r){var i,s,o,u,a,f={},l=e.dataTypes.slice();if(l[1])for(o in e.converters)f[o.toLowerCase()]=e.converters[o];s=l.shift();while(s){e.responseFields[s]&&(n[e.responseFields[s]]=t),!a&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),a=s,s=l.shift();if(s)if(s==="*")s=a;else if(a!=="*"&&a!==s){o=f[a+" "+s]||f["* "+s];if(!o)for(i in f){u=i.split(" ");if(u[1]===s){o=f[a+" "+u[0]]||f["* "+u[0]];if(o){o===!0?o=f[i]:f[i]!==!0&&(s=u[0],l.unshift(u[1]));break}}}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(c){return{state:"parsererror",error:o?c:"No conversion from "+a+" to "+s}}}}return{state:"success",data:t}}function Xn(){try{return new e.XMLHttpRequest}catch(t){}}function Vn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function er(){return setTimeout(function(){$n=t}),$n=x.now()}function tr(e,t,n){var r,i=(Zn[t]||[]).concat(Zn["*"]),s=0,o=i.length;for(;s)[^>]*|#([\w-]*))$/,L=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,A=/^[\],:{}\s]*$/,O=/(?:^|:|,)(?:\s*\[)+/g,M=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,_=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,P=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},B=function(e){if(f.addEventListener||e.type==="load"||f.readyState==="complete")j(),x.ready()},j=function(){f.addEventListener?(f.removeEventListener("DOMContentLoaded",B,!1),e.removeEventListener("load",B,!1)):(f.detachEvent("onreadystatechange",B),e.detachEvent("onload",B))};x.fn=x.prototype={jquery:v,constructor:x,init:function(e,n,r){var i,s;if(!e)return this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?i=[null,e,null]:i=k.exec(e);if(i&&(i[1]||!n)){if(i[1]){n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:f,!0));if(L.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}s=f.getElementById(i[2]);if(s&&s.parentNode){if(s.id!==i[2])return r.find(e);this.length=1,this[0]=s}return this.context=f,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return y.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(y.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(n>=0&&n0)return;s.resolveWith(f,[x]),x.fn.trigger&&x(f).trigger("ready").off("ready")},isFunction:function(e){return x.type(e)==="function"},isArray:Array.isArray||function(e){return x.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):typeof e=="object"||typeof e=="function"?p[w.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||x.type(e)!=="object"||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!E.call(e,"constructor")&&!E.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return E.call(e,n);for(n in e);return n===t||E.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(n=t,t=!1),t=t||f;var r=L.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(t===null)return t;if(typeof t=="string"){t=x.trim(t);if(t&&A.test(t.replace(M,"@").replace(_,"]").replace(O,"")))return(new Function("return "+t))()}x.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!="string")return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(s){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(P,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,s=e.length,o=F(e);if(n)if(o)for(;is.cacheLength&&delete t[e.shift()],t[n]=r}var e=[];return t}function at(e){return e[b]=!0,e}function ft(e){var t=h.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function lt(e,t){var n=e.split("|"),r=e.length;while(r--)s.attrHandle[n[r]]=t}function ct(e,t){var n=t&&e,r=n&&e.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||O)-(~e.sourceIndex||O);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ht(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function pt(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function dt(e){return at(function(t){return t=+t,at(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function vt(){}function mt(e,t){var n,r,i,o,u,a,f,l=N[e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=s.preFilter;while(u){if(!n||(r=X.exec(u)))r&&(u=u.slice(r[0].length)||u),a.push(i=[]);n=!1;if(r=V.exec(u))n=r.shift(),i.push({value:n,type:r[0].replace(W," ")}),u=u.slice(n.length);for(o in s.filter)(r=G[o].exec(u))&&(!f[o]||(r=f[o](r)))&&(n=r.shift(),i.push({value:n,type:o,matches:r}),u=u.slice(n.length));if(!n)break}return t?u.length:u?ot.error(e):N(e,a).slice(0)}function gt(e){var t=0,n=e.length,r="";for(;t1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function wt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u-1&&(s[f]=!(o[f]=c))}}else g=wt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):H.apply(o,g)})}function St(e){var t,n,r,i=e.length,o=s.relative[e[0].type],u=o||s.relative[" "],a=o?1:0,l=yt(function(e){return e===t},u,!0),c=yt(function(e){return j.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==f)||((t=n).nodeType?l(e,n,r):c(e,n,r))}];for(;a1&&bt(h),a>1&>(e.slice(0,a-1).concat({value:e[a-2].type===" "?"*":""})).replace(W,"$1"),n,a0,o=e.length>0,u=function(u,a,l,c,p){var d,v,m,g=[],y=0,b="0",w=u&&[],S=p!=null,x=f,T=u||o&&s.find.TAG("*",p&&a.parentNode||a),N=E+=x==null?1:Math.random()||.1;S&&(f=a!==h&&a,i=n);for(;(d=T[b])!=null;b++){if(o&&d){v=0;while(m=e[v++])if(m(d,a,l)){c.push(d);break}S&&(E=N,i=++n)}r&&((d=!m&&d)&&y--,u&&w.push(d))}y+=b;if(r&&b!==y){v=0;while(m=t[v++])m(w,g,a,l);if(u){if(y>0)while(b--)!w[b]&&!g[b]&&(g[b]=D.call(c));g=wt(g)}H.apply(c,g),S&&!u&&g.length>0&&y+t.length>1&&ot.uniqueSort(c)}return S&&(E=N,f=x),w};return r?at(u):u}function Tt(e,t,n){var r=0,i=t.length;for(;r2&&(f=u[0]).type==="ID"&&r.getById&&t.nodeType===9&&d&&s.relative[u[1].type]){t=(s.find.ID(f.matches[0].replace(rt,it),t)||[])[0];if(!t)return n;e=e.slice(u.shift().value.length)}o=G.needsContext.test(e)?0:u.length;while(o--){f=u[o];if(s.relative[l=f.type])break;if(c=s.find[l])if(i=c(f.matches[0].replace(rt,it),$.test(u[0].type)&&t.parentNode||t)){u.splice(o,1),e=i.length&>(u);if(!e)return H.apply(n,i),n;break}}}return a(e,h)(i,t,!d,n,$.test(e)),n}var n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b="sizzle"+ -(new Date),w=e.document,E=0,S=0,T=ut(),N=ut(),C=ut(),k=!1,L=function(e,t){return e===t?(k=!0,0):0},A=typeof t,O=1<<31,M={}.hasOwnProperty,_=[],D=_.pop,P=_.push,H=_.push,B=_.slice,j=_.indexOf||function(e){var t=0,n=this.length;for(;t+~]|"+I+")"+I+"*"),$=new RegExp(I+"*[+~]"),J=new RegExp("="+I+"*([^\\]'\"]*)"+I+"*\\]","g"),K=new RegExp(z),Q=new RegExp("^"+R+"$"),G={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q.replace("w","w*")+")"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)};try{H.apply(_=B.call(w.childNodes),w.childNodes),_[w.childNodes.length].nodeType}catch(st){H={apply:_.length?function(e,t){P.apply(e,B.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}u=ot.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},r=ot.support={},c=ot.setDocument=function(e){var t=e?e.ownerDocument||e:w,n=t.defaultView;if(t===h||t.nodeType!==9||!t.documentElement)return h;h=t,p=t.documentElement,d=!u(t),n&&n.attachEvent&&n!==n.top&&n.attachEvent("onbeforeunload",function(){c()}),r.attributes=ft(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ft(function(e){return e.appendChild(t.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ft(function(e){return e.innerHTML="
",e.firstChild.className="i",e.getElementsByClassName("i").length===2}),r.getById=ft(function(e){return p.appendChild(e).id=b,!t.getElementsByName||!t.getElementsByName(b).length}),r.getById?(s.find.ID=function(e,t){if(typeof t.getElementById!==A&&d){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},s.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete s.find.ID,s.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==A&&e.getAttributeNode("id");return n&&n.value===t}}),s.find.TAG=r.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==A)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if(e==="*"){while(n=s[i++])n.nodeType===1&&r.push(n);return r}return s},s.find.CLASS=r.getElementsByClassName&&function(e,t){if(typeof t.getElementsByClassName!==A&&d)return t.getElementsByClassName(e)},m=[],v=[];if(r.qsa=Y.test(t.sumoQuerySelectorAll))ft(function(e){e.innerHTML="",e.sumoQuerySelectorAll("[selected]").length||v.push("\\["+I+"*(?:value|"+F+")"),e.sumoQuerySelectorAll(":checked").length||v.push(":checked")}),ft(function(e){var n=t.createElement("input");n.setAttribute("type","hidden"),e.appendChild(n).setAttribute("t",""),e.sumoQuerySelectorAll("[t^='']").length&&v.push("[*^$]="+I+"*(?:''|\"\")"),e.sumoQuerySelectorAll(":enabled").length||v.push(":enabled",":disabled"),e.sumoQuerySelectorAll("*,:x"),v.push(",.*:")});return(r.matchesSelector=Y.test(g=p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ft(function(e){r.disconnectedMatch=g.call(e,"div"),g.call(e,"[s!='']:x"),m.push("!=",z)}),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),y=Y.test(p.contains)||p.compareDocumentPosition?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!r&&r.nodeType===1&&!!(n.contains?n.contains(r):e.compareDocumentPosition&&e.compareDocumentPosition(r)&16)}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},L=p.compareDocumentPosition?function(e,n){if(e===n)return k=!0,0;var i=n.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(n);if(i)return i&1||!r.sortDetached&&n.compareDocumentPosition(e)===i?e===t||y(w,e)?-1:n===t||y(w,n)?1:l?j.call(l,e)-j.call(l,n):0:i&4?-1:1;return e.compareDocumentPosition?-1:1}:function(e,n){var r,i=0,s=e.parentNode,o=n.parentNode,u=[e],a=[n];if(e===n)return k=!0,0;if(!s||!o)return e===t?-1:n===t?1:s?-1:o?1:l?j.call(l,e)-j.call(l,n):0;if(s===o)return ct(e,n);r=e;while(r=r.parentNode)u.unshift(r);r=n;while(r=r.parentNode)a.unshift(r);while(u[i]===a[i])i++;return i?ct(u[i],a[i]):u[i]===w?-1:a[i]===w?1:0},t},ot.matches=function(e,t){return ot(e,null,null,t)},ot.matchesSelector=function(e,t){(e.ownerDocument||e)!==h&&c(e),t=t.replace(J,"='$1']");if(r.matchesSelector&&d&&(!m||!m.test(t))&&(!v||!v.test(t)))try{var n=g.call(e,t);if(n||r.disconnectedMatch||e.document&&e.document.nodeType!==11)return n}catch(i){}return ot(t,h,null,[e]).length>0},ot.contains=function(e,t){return(e.ownerDocument||e)!==h&&c(e),y(e,t)},ot.attr=function(e,n){(e.ownerDocument||e)!==h&&c(e);var i=s.attrHandle[n.toLowerCase()],o=i&&M.call(s.attrHandle,n.toLowerCase())?i(e,n,!d):t;return o===t?r.attributes||!d?e.getAttribute(n):(o=e.getAttributeNode(n))&&o.specified?o.value:null:o},ot.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ot.uniqueSort=function(e){var t,n=[],i=0,s=0;k=!r.detectDuplicates,l=!r.sortStable&&e.slice(0),e.sort(L);if(k){while(t=e[s++])t===e[s]&&(i=n.push(s));while(i--)e.splice(n[i],1)}return e},o=ot.getText=function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r];r++)n+=o(t);else if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(i===3||i===4)return e.nodeValue;return n},s=ot.selectors={cacheLength:50,createPseudo:at,match:G,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(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)==="nth"?(e[3]||ot.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd")),e[5]=+(e[7]+e[8]||e[3]==="odd")):e[3]&&ot.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return G.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&K.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return e==="*"?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&T(e,function(e){return t.test(typeof e.className=="string"&&e.className||typeof e.getAttribute!==A&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ot.attr(r,e);return i==null?t==="!=":t?(i+="",t==="="?i===n:t==="!="?i!==n:t==="^="?n&&i.indexOf(n)===0:t==="*="?n&&i.indexOf(n)>-1:t==="$="?n&&i.slice(-n.length)===n:t==="~="?(" "+i+" ").indexOf(n)>-1:t==="|="?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var s=e.slice(0,3)!=="nth",o=e.slice(-4)!=="last",u=t==="of-type";return r===1&&i===0?function(e){return!!e.parentNode}:function(t,n,a){var f,l,c,h,p,d,v=s!==o?"nextSibling":"previousSibling",m=t.parentNode,g=u&&t.nodeName.toLowerCase(),y=!a&&!u;if(m){if(s){while(v){c=t;while(c=c[v])if(u?c.nodeName.toLowerCase()===g:c.nodeType===1)return!1;d=v=e==="only"&&!d&&"nextSibling"}return!0}d=[o?m.firstChild:m.lastChild];if(o&&y){l=m[b]||(m[b]={}),f=l[e]||[],p=f[0]===E&&f[1],h=f[0]===E&&f[2],c=p&&m.childNodes[p];while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if(c.nodeType===1&&++h&&c===t){l[e]=[E,p,h];break}}else if(y&&(f=(t[b]||(t[b]={}))[e])&&f[0]===E)h=f[1];else while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if((u?c.nodeName.toLowerCase()===g:c.nodeType===1)&&++h){y&&((c[b]||(c[b]={}))[e]=[E,h]);if(c===t)break}return h-=i,h===r||h%r===0&&h/r>=0}}},PSEUDO:function(e,t){var n,r=s.pseudos[e]||s.setFilters[e.toLowerCase()]||ot.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],s.setFilters.hasOwnProperty(e.toLowerCase())?at(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=j.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:at(function(e){var t=[],n=[],r=a(e.replace(W,"$1"));return r[b]?at(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:at(function(e){return function(t){return ot(e,t).length>0}}),contains:at(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:at(function(e){return Q.test(e||"")||ot.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||n.indexOf(e+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||e.nodeType===3||e.nodeType===4)return!1;return!0},parent:function(e){return!s.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},text:function(e){var t;return e.nodeName.toLowerCase()==="input"&&e.type==="text"&&((t=e.getAttribute("type"))==null||t.toLowerCase()===e.type)},first:dt(function(){return[0]}),last:dt(function(e,t){return[t-1]}),eq:dt(function(e,t,n){return[n<0?n+t:n]}),even:dt(function(e,t){var n=0;for(;n=0;)e.push(r);return e}),gt:dt(function(e,t,n){var r=n<0?n+t:n;for(;++r-1)a.splice(r,1),n&&(r<=s&&s--,r<=o&&o--)}),this},has:function(e){return e?x.inArray(e,a)>-1:!!a&&!!a.length},empty:function(){return a=[],s=0,this},disable:function(){return a=f=r=t,this},disabled:function(){return!a},lock:function(){return f=t,r||c.disable(),this},locked:function(){return!f},fireWith:function(e,t){return a&&(!i||f)&&(t=t||[],t=[e,t.slice?t.slice():t],n?f.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,s){var o=s[0],u=x.isFunction(e[t])&&e[t];i[s[1]](function(){var e=u&&u.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o+"With"](this===r?n.promise():this,u?[e]:arguments)})}),e=null}).promise()},promise:function(e){return e!=null?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=function(){return i[s[0]+"With"](this===i?r:this,arguments),this},i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=y.call(arguments),r=n.length,i=r!==1||e&&x.isFunction(e.promise)?r:0,s=i===1?e:x.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?y.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t
a",n=p.getElementsByTagName("*")||[],r=p.getElementsByTagName("a")[0];if(!r||!r.style||!n.length)return t;s=f.createElement("select"),a=s.appendChild(f.createElement("option")),i=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute=p.className!=="t",t.leadingWhitespace=p.firstChild.nodeType===3,t.tbody=!p.getElementsByTagName("tbody").length,t.htmlSerialize=!!p.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized=r.getAttribute("href")==="/a",t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!i.value,t.optSelected=a.selected,t.enctype=!!f.createElement("form").enctype,t.html5Clone=f.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,i.checked=!0,t.noCloneChecked=i.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!a.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}i=f.createElement("input"),i.setAttribute("value",""),t.input=i.getAttribute("value")==="",i.value="t",i.setAttribute("type","radio"),t.radioValue=i.value==="t",i.setAttribute("checked","t"),i.setAttribute("name","t"),o=f.createDocumentFragment(),o.appendChild(i),t.appendChecked=i.checked,t.checkClone=o.cloneNode(!0).cloneNode(!0).lastChild.checked,p.attachEvent&&(p.attachEvent("onclick",function(){t.noCloneEvent=!1}),p.cloneNode(!0).click());for(h in{submit:!0,change:!0,focusin:!0})p.setAttribute(l="on"+h,"t"),t[h+"Bubbles"]=l in e||p.attributes[l].expando===!1;p.style.backgroundClip="content-box",p.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle=p.style.backgroundClip==="content-box";for(h in x(t))break;return t.ownLast=h!=="0",x(function(){var n,r,i,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",o=f.getElementsByTagName("body")[0];if(!o)return;n=f.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",o.appendChild(n).appendChild(p),p.innerHTML="
t
",i=p.getElementsByTagName("td"),i[0].style.cssText="padding:0;margin:0;border:0;display:none",c=i[0].offsetHeight===0,i[0].style.display="",i[1].style.display="none",t.reliableHiddenOffsets=c&&i[0].offsetHeight===0,p.innerHTML="",p.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",x.swap(o,o.style.zoom!=null?{zoom:1}:{},function(){t.boxSizing=p.offsetWidth===4}),e.getComputedStyle&&(t.pixelPosition=(e.getComputedStyle(p,null)||{}).top!=="1%",t.boxSizingReliable=(e.getComputedStyle(p,null)||{width:"4px"}).width==="4px",r=p.appendChild(f.createElement("div")),r.style.cssText=p.style.cssText=s,r.style.marginRight=r.style.width="0",p.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof p.style.zoom!==u&&(p.innerHTML="",p.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.innerHTML="
",p.firstChild.style.width="5px",t.shrinkWrapBlocks=p.offsetWidth!==3,t.inlineBlockNeedsLayout&&(o.style.zoom=1)),o.removeChild(n),n=p=i=r=null}),n=s=o=a=r=i=null,t}({});var R=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,U=/([A-Z])/g;x.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!V(e)},data:function(e,t,n){return z(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return z(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)},acceptData:function(e){if(e.nodeType&&e.nodeType!==1&&e.nodeType!==9)return!1;var t=e.nodeName&&x.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),x.fn.extend({data:function(e,n){var r,i,s=null,o=0,u=this[0];if(e===t){if(this.length){s=x.data(u);if(u.nodeType===1&&!x._data(u,"parsedAttrs")){r=u.attributes;for(;o1?this.each(function(){x.data(this,e,n)}):u?X(u,e,x.data(u,e)):null},removeData:function(e){return this.each(function(){x.removeData(this,e)})}}),x.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=x._data(e,t),n&&(!r||x.isArray(n)?r=x._data(e,t,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),s=x._queueHooks(e,t),o=function(){x.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o=0,u=this.length,a=typeof e=="string"&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(a){t=(e||"").match(N)||[];for(;o=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e;return typeof t=="boolean"&&n==="string"?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var t,r=0,i=x(this),s=e.match(N)||[];while(t=s[r++])i.hasClass(t)?i.removeClass(t):i.addClass(t)}else if(n===u||n==="boolean")this.className&&x._data(this,"__className__",this.className),this.className=this.className||e===!1?"":x._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s)return r=x.valHooks[s.type]||x.valHooks[s.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(s,"value"))!==t?n:(n=s.value,typeof n=="string"?n.replace(Q,""):n==null?"":n);return}return i=x.isFunction(e),this.each(function(n){var s;if(this.nodeType!==1)return;i?s=e.call(this,n,x(this).val()):s=e,s==null?s="":typeof s=="number"?s+="":x.isArray(s)&&(s=x.map(s,function(e){return e==null?"":e+""})),r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()];if(!r||!("set"in r)||r.set(this,s,"value")===t)this.value=s})}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return t!=null?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a=0)n=!0}return n||(e.selectedIndex=-1),s}}},attr:function(e,n,r){var i,s,o=e.nodeType;if(!e||o===3||o===8||o===2)return;if(typeof e.getAttribute===u)return x.prop(e,n,r);if(o!==1||!x.isXMLDoc(e))n=n.toLowerCase(),i=x.attrHooks[n]||(x.expr.match.bool.test(n)?J:$);if(r===t)return i&&"get"in i&&(s=i.get(e,n))!==null?s:(s=x.find.attr(e,n),s==null?t:s);if(r!==null)return i&&"set"in i&&(s=i.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r);x.removeAttr(e,n)},removeAttr:function(e,t){var n,r,i=0,s=t&&t.match(N);if(s&&e.nodeType===1)while(n=s[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)?tt&&et||!Z.test(n)?e[r]=!1:e[x.camelCase("default-"+n)]=e[r]=!1:x.attr(e,n,""),e.removeAttribute(et?n:r)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&t==="radio"&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,s,o,u=e.nodeType;if(!e||u===3||u===8||u===2)return;return o=u!==1||!x.isXMLDoc(e),o&&(n=x.propFix[n]||n,s=x.propHooks[n]),r!==t?s&&"set"in s&&(i=s.set(e,r,n))!==t?i:e[n]=r:s&&"get"in s&&(i=s.get(e,n))!==null?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):G.test(e.nodeName)||Y.test(e.nodeName)&&e.href?0:-1}}}}),J={set:function(e,t,n){return t===!1?x.removeAttr(e,n):tt&&et||!Z.test(n)?e.setAttribute(!et&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var r=x.expr.attrHandle[n]||x.find.attr;x.expr.attrHandle[n]=tt&&et||!Z.test(n)?function(e,n,i){var s=x.expr.attrHandle[n],o=i?t:(x.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return x.expr.attrHandle[n]=s,o}:function(e,n,r){return r?t:e[x.camelCase("default-"+n)]?n.toLowerCase():null}});if(!tt||!et)x.attrHooks.value={set:function(e,t,n){if(!x.nodeName(e,"input"))return $&&$.set(e,t,n);e.defaultValue=t}};et||($={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="",r==="value"||n===e.getAttribute(r)?n:t}},x.expr.attrHandle.id=x.expr.attrHandle.name=x.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.value!==""?i.value:null},x.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:$.set},x.attrHooks.contenteditable={set:function(e,t,n){$.set(e,t===""?!1:t,n)}},x.each(["width","height"],function(e,t){x.attrHooks[t]={set:function(e,n){if(n==="")return e.setAttribute(t,"auto"),n}}})),x.support.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),x.support.style||(x.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.support.enctype||(x.propFix.enctype="encoding"),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){if(x.isArray(t))return e.checked=x.inArray(x(e).val(),t)>=0}},x.support.checkOn||(x.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var nt=/^(?:input|select|textarea)$/i,rt=/^key/,it=/^(?:mouse|contextmenu)|click/,st=/^(?:focusinfocus|focusoutblur)$/,ot=/^([^.]*)(?:\.(.+)|)$/;x.event={global:{},add:function(e,n,r,i,s){var o,a,f,l,c,h,p,d,v,m,g,y=x._data(e);if(!y)return;r.handler&&(l=r,r=l.handler,s=l.selector),r.guid||(r.guid=x.guid++),(a=y.events)||(a=y.events={}),(h=y.handle)||(h=y.handle=function(e){return typeof x===u||!!e&&x.event.triggered===e.type?t:x.event.dispatch.apply(h.elem,arguments)},h.elem=e),n=(n||"").match(N)||[""],f=n.length;while(f--){o=ot.exec(n[f])||[],v=g=o[1],m=(o[2]||"").split(".").sort();if(!v)continue;c=x.event.special[v]||{},v=(s?c.delegateType:c.bindType)||v,c=x.event.special[v]||{},p=x.extend({type:v,origType:g,data:i,handler:r,guid:r.guid,selector:s,needsContext:s&&x.expr.match.needsContext.test(s),namespace:m.join(".")},l);if(!(d=a[v])){d=a[v]=[],d.delegateCount=0;if(!c.setup||c.setup.call(e,i,m,h)===!1)e.addEventListener?e.addEventListener(v,h,!1):e.attachEvent&&e.attachEvent("on"+v,h)}c.add&&(c.add.call(e,p),p.handler.guid||(p.handler.guid=r.guid)),s?d.splice(d.delegateCount++,0,p):d.push(p),x.event.global[v]=!0}e=null},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,v,m=x.hasData(e)&&x._data(e);if(!m||!(l=m.events))return;t=(t||"").match(N)||[""],f=t.length;while(f--){u=ot.exec(t[f])||[],p=v=u[1],d=(u[2]||"").split(".").sort();if(!p){for(p in l)x.event.remove(e,p+t[f],n,r,!0);continue}c=x.event.special[p]||{},p=(r?c.delegateType:c.bindType)||p,h=l[p]||[],u=u[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=h.length;while(s--)o=h[s],(i||v===o.origType)&&(!n||n.guid===o.guid)&&(!u||u.test(o.namespace))&&(!r||r===o.selector||r==="**"&&o.selector)&&(h.splice(s,1),o.selector&&h.delegateCount--,c.remove&&c.remove.call(e,o));a&&!h.length&&((!c.teardown||c.teardown.call(e,d,m.handle)===!1)&&x.removeEvent(e,p,m.handle),delete l[p])}x.isEmptyObject(l)&&(delete m.handle,x._removeData(e,"events"))},trigger:function(n,r,i,s){var o,u,a,l,c,h,p,d=[i||f],v=E.call(n,"type")?n.type:n,m=E.call(n,"namespace")?n.namespace.split("."):[];a=h=i=i||f;if(i.nodeType===3||i.nodeType===8)return;if(st.test(v+x.event.triggered))return;v.indexOf(".")>=0&&(m=v.split("."),v=m.shift(),m.sort()),u=v.indexOf(":")<0&&"on"+v,n=n[x.expando]?n:new x.Event(v,typeof n=="object"&&n),n.isTrigger=s?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=r==null?[n]:x.makeArray(r,[n]),c=x.event.special[v]||{};if(!s&&c.trigger&&c.trigger.apply(i,r)===!1)return;if(!s&&!c.noBubble&&!x.isWindow(i)){l=c.delegateType||v,st.test(l+v)||(a=a.parentNode);for(;a;a=a.parentNode)d.push(a),h=a;h===(i.ownerDocument||f)&&d.push(h.defaultView||h.parentWindow||e)}p=0;while((a=d[p++])&&!n.isPropagationStopped())n.type=p>1?l:c.bindType||v,o=(x._data(a,"events")||{})[n.type]&&x._data(a,"handle"),o&&o.apply(a,r),o=u&&a[u],o&&x.acceptData(a)&&o.apply&&o.apply(a,r)===!1&&n.preventDefault();n.type=v;if(!s&&!n.isDefaultPrevented()&&(!c._default||c._default.apply(d.pop(),r)===!1)&&x.acceptData(i)&&u&&i[v]&&!x.isWindow(i)){h=i[u],h&&(i[u]=null),x.event.triggered=v;try{i[v]()}catch(g){}x.event.triggered=t,h&&(i[u]=h)}return n.result},dispatch:function(e){e=x.event.fix(e);var n,r,i,s,o,u=[],a=y.call(arguments),f=(x._data(this,"events")||{})[e.type]||[],l=x.event.special[e.type]||{};a[0]=e,e.delegateTarget=this;if(l.preDispatch&&l.preDispatch.call(this,e)===!1)return;u=x.event.handlers.call(this,e,f),n=0;while((s=u[n++])&&!e.isPropagationStopped()){e.currentTarget=s.elem,o=0;while((i=s.handlers[o++])&&!e.isImmediatePropagationStopped())if(!e.namespace_re||e.namespace_re.test(i.namespace))e.handleObj=i,e.data=i.data,r=((x.event.special[i.origType]||{}).handle||i.handler).apply(s.elem,a),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation())}return l.postDispatch&&l.postDispatch.call(this,e),e.result},handlers:function(e,n){var r,i,s,o,u=[],a=n.delegateCount,f=e.target;if(a&&f.nodeType&&(!e.button||e.type!=="click"))for(;f!=this;f=f.parentNode||this)if(f.nodeType===1&&(f.disabled!==!0||e.type!=="click")){s=[];for(o=0;o=0:x.find(r,this,null,[f]).length),s[r]&&s.push(i);s.length&&u.push({elem:f,handlers:s})}return a1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=x(e,this),r=n.length;return this.filter(function(){for(t=0;t-1:n.nodeType===1&&x.find.matchesSelector(n,e))){n=s.push(n);break}return this.pushStack(s.length>1?x.unique(s):s)},index:function(e){return e?typeof e=="string"?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return dt(e,"nextSibling")},prev:function(e){return dt(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return e.slice(-5)!=="Until"&&(r=n),r&&typeof r=="string"&&(i=x.filter(r,i)),this.length>1&&(pt[e]||(i=x.unique(i)),ct.test(e)&&(i=i.reverse())),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),t.length===1&&r.nodeType===1?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return e.nodeType===1}))},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!x(s).is(r)))s.nodeType===1&&i.push(s),s=s[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var gt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",yt=/ jQuery\d+="(?:null|\d+)"/g,bt=new RegExp("<(?:"+gt+")[\\s/>]","i"),wt=/^\s+/,Et=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,St=/<([\w:]+)/,xt=/\s*$/g,Mt={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:x.support.htmlSerialize?[0,"",""]:[1,"X
","
"]},_t=mt(f),Dt=_t.appendChild(f.createElement("div"));Mt.optgroup=Mt.option,Mt.tbody=Mt.tfoot=Mt.colgroup=Mt.caption=Mt.thead,Mt.th=Mt.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||f).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Pt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Pt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;(n=r[i])!=null;i++)!t&&n.nodeType===1&&x.cleanData(qt(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&jt(qt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&x.cleanData(qt(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodeType===1?n.innerHTML.replace(yt,""):t;if(typeof e=="string"&&!Nt.test(e)&&(x.support.htmlSerialize||!bt.test(e))&&(x.support.leadingWhitespace||!wt.test(e))&&!Mt[(St.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Et,"<$1>");try{for(;r")?s=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(s=Dt.firstChild));if((!x.support.noCloneEvent||!x.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!x.isXMLDoc(e)){r=qt(s),u=qt(e);for(o=0;(i=u[o])!=null;++o)r[o]&&It(i,r[o])}if(t)if(n){u=u||qt(e),r=r||qt(s);for(o=0;(i=u[o])!=null;o++)Ft(i,r[o])}else Ft(e,s);return r=qt(s,"script"),r.length>0&&jt(r,!a&&qt(e,"script")),r=u=i=null,s},buildFragment:function(e,t,n,r){var i,s,o,u,a,f,l,c=e.length,h=mt(t),p=[],d=0;for(;d")+l[2],i=l[0];while(i--)u=u.lastChild;!x.support.leadingWhitespace&&wt.test(s)&&p.push(t.createTextNode(wt.exec(s)[0]));if(!x.support.tbody){s=a==="table"&&!xt.test(s)?u.firstChild:l[1]===""&&!xt.test(s)?u:0,i=s&&s.childNodes.length;while(i--)x.nodeName(f=s.childNodes[i],"tbody")&&!f.childNodes.length&&s.removeChild(f)}x.merge(p,u.childNodes),u.textContent="";while(u.firstChild)u.removeChild(u.firstChild);u=h.lastChild}}u&&h.removeChild(u),x.support.appendChecked||x.grep(qt(p,"input"),Rt),d=0;while(s=p[d++]){if(r&&x.inArray(s,r)!==-1)continue;o=x.contains(s.ownerDocument,s),u=qt(h.appendChild(s),"script"),o&&jt(u);if(n){i=0;while(s=u[i++])Lt.test(s.type||"")&&n.push(s)}}return u=null,h},cleanData:function(e,t){var n,r,i,s,o=0,a=x.expando,f=x.cache,l=x.support.deleteExpando,c=x.event.special;for(;(n=e[o])!=null;o++)if(t||x.acceptData(n)){i=n[a],s=i&&f[i];if(s){if(s.events)for(r in s.events)c[r]?x.event.remove(n,r):x.removeEvent(n,r,s.handle);f[i]&&(delete f[i],l?delete n[a]:typeof n.removeAttribute!==u?n.removeAttribute(a):n[a]=null,d.push(i))}}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),x.fn.extend({wrapAll:function(e){if(x.isFunction(e))return this.each(function(t){x(this).wrapAll(e.call(this,t))});if(this[0]){var t=x(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var Ut,zt,Wt,Xt=/alpha\([^)]*\)/i,Vt=/opacity\s*=\s*([^)]*)/,$t=/^(top|right|bottom|left)$/,Jt=/^(none|table(?!-c[ea]).+)/,Kt=/^margin/,Qt=new RegExp("^("+T+")(.*)$","i"),Gt=new RegExp("^("+T+")(?!px)[a-z%]+$","i"),Yt=new RegExp("^([+-])=("+T+")","i"),Zt={BODY:"block"},en={position:"absolute",visibility:"hidden",display:"block"},tn={letterSpacing:0,fontWeight:400},nn=["Top","Right","Bottom","Left"],rn=["Webkit","O","Moz","ms"];x.fn.extend({css:function(e,n){return x.access(this,function(e,n,r){var i,s,o={},u=0;if(x.isArray(n)){s=zt(e),i=n.length;for(;u1)},show:function(){return un(this,!0)},hide:function(){return un(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){on(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return n===""?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":x.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var s,o,u,a=x.camelCase(n),f=e.style;n=x.cssProps[a]||(x.cssProps[a]=sn(f,a)),u=x.cssHooks[n]||x.cssHooks[a];if(r===t)return u&&"get"in u&&(s=u.get(e,!1,i))!==t?s:f[n];o=typeof r,o==="string"&&(s=Yt.exec(r))&&(r=(s[1]+1)*s[2]+parseFloat(x.css(e,n)),o="number");if(r==null||o==="number"&&isNaN(r))return;o==="number"&&!x.cssNumber[a]&&(r+="px"),!x.support.clearCloneStyle&&r===""&&n.indexOf("background")===0&&(f[n]="inherit");if(!u||!("set"in u)||(r=u.set(e,r,i))!==t)try{f[n]=r}catch(l){}},css:function(e,n,r,i){var s,o,u,a=x.camelCase(n);return n=x.cssProps[a]||(x.cssProps[a]=sn(e.style,a)),u=x.cssHooks[n]||x.cssHooks[a],u&&"get"in u&&(o=u.get(e,!0,r)),o===t&&(o=Wt(e,n,i)),o==="normal"&&n in tn&&(o=tn[n]),r===""||r?(s=parseFloat(o),r===!0||x.isNumeric(s)?s||0:o):o}}),e.getComputedStyle?(zt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,s,o,u=r||zt(e),a=u?u.getPropertyValue(n)||u[n]:t,f=e.style;return u&&(a===""&&!x.contains(e.ownerDocument,e)&&(a=x.style(e,n)),Gt.test(a)&&Kt.test(n)&&(i=f.width,s=f.minWidth,o=f.maxWidth,f.minWidth=f.maxWidth=f.width=a,a=u.width,f.width=i,f.minWidth=s,f.maxWidth=o)),a}):f.documentElement.currentStyle&&(zt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,s,o,u=r||zt(e),a=u?u[n]:t,f=e.style;return a==null&&f&&f[n]&&(a=f[n]),Gt.test(a)&&!$t.test(n)&&(i=f.left,s=e.runtimeStyle,o=s&&s.left,o&&(s.left=e.currentStyle.left),f.left=n==="fontSize"?"1em":a,a=f.pixelLeft+"px",f.left=i,o&&(s.left=o)),a===""?"auto":a}),x.each(["height","width"],function(e,t){x.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&Jt.test(x.css(e,"display"))?x.swap(e,en,function(){return ln(e,t,r)}):ln(e,t,r)},set:function(e,n,r){var i=r&&zt(e);return an(e,n,r?fn(e,t,r,x.support.boxSizing&&x.css(e,"boxSizing",!1,i)==="border-box",i):0)}}}),x.support.opacity||(x.cssHooks.opacity={get:function(e,t){return Vt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=x.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if((t>=1||t==="")&&x.trim(s.replace(Xt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(t===""||r&&!r.filter)return}n.filter=Xt.test(s)?s.replace(Xt,i):s+" "+i}}),x(function(){x.support.reliableMarginRight||(x.cssHooks.marginRight={get:function(e,t){if(t)return x.swap(e,{display:"inline-block"},Wt,[e,"marginRight"])}}),!x.support.pixelPosition&&x.fn.position&&x.each(["top","left"],function(e,t){x.cssHooks[t]={get:function(e,n){if(n)return n=Wt(e,t),Gt.test(n)?x(e).position()[t]+"px":n}}})}),x.expr&&x.expr.filters&&(x.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!x.support.reliableHiddenOffsets&&(e.style&&e.style.display||x.css(e,"display"))==="none"},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){var r=0,i={},s=typeof n=="string"?n.split(" "):[n];for(;r<4;r++)i[e+nn[r]+t]=s[r]||s[r-2]||s[0];return i}},Kt.test(e)||(x.cssHooks[e+t].set=an)});var pn=/%20/g,dn=/\[\]$/,vn=/\r?\n/g,mn=/^(?:submit|button|image|reset|file)$/i,gn=/^(?:input|select|textarea|keygen)/i;x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&gn.test(this.nodeName)&&!mn.test(e)&&(this.checked||!Ct.test(e))}).map(function(e,t){var n=x(this).val();return n==null?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(vn,"\r\n")}}):{name:t.name,value:n.replace(vn,"\r\n")}}).get()}}),x.param=function(e,n){var r,i=[],s=function(e,t){t=x.isFunction(t)?t():t==null?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=x.ajaxSettings&&x.ajaxSettings.traditional);if(x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){s(this.name,this.value)});else for(r in e)yn(r,e[r],n,s);return i.join("&").replace(pn,"+")},x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},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,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)}});var bn,wn,En=x.now(),Sn=/\?/,xn=/#.*$/,Tn=/([?&])_=[^&]*/,Nn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Cn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,kn=/^(?:GET|HEAD)$/,Ln=/^\/\//,An=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,On=x.fn.load,Mn={},_n={},Dn="*/".concat("*");try{wn=a.href}catch(i){wn=f.createElement("a"),wn.href="",wn=wn.href}bn=An.exec(wn.toLowerCase())||[],x.fn.load=function(e,n,r){if(typeof e!="string"&&On)return On.apply(this,arguments);var i,s,o,u=this,a=e.indexOf(" ");return a>=0&&(i=e.slice(a,e.length),e=e.slice(0,a)),x.isFunction(n)?(r=n,n=t):n&&typeof n=="object"&&(o="POST"),u.length>0&&x.ajax({url:e,type:o,dataType:"html",data:n}).done(function(e){s=arguments,u.html(i?x("
").append(x.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){u.each(r,s||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wn,type:"GET",isLocal:Cn.test(bn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Bn(Bn(e,x.ajaxSettings),t):Bn(x.ajaxSettings,e)},ajaxPrefilter:Pn(Mn),ajaxTransport:Pn(_n),ajax:function(e,n){function T(e,n,r,i){var l,g,y,w,S,T=n;if(b===2)return;b=2,u&&clearTimeout(u),f=t,o=i||"",E.readyState=e>0?4:0,l=e>=200&&e<300||e===304,r&&(w=jn(c,E,r)),w=Fn(c,w,E,l);if(l)c.ifModified&&(S=E.getResponseHeader("Last-Modified"),S&&(x.lastModified[s]=S),S=E.getResponseHeader("etag"),S&&(x.etag[s]=S)),e===204||c.type==="HEAD"?T="nocontent":e===304?T="notmodified":(T=w.state,g=w.data,y=w.error,l=!y);else{y=T;if(e||!T)T="error",e<0&&(e=0)}E.status=e,E.statusText=(n||T)+"",l?d.resolveWith(h,[g,T,E]):d.rejectWith(h,[E,T,y]),E.statusCode(m),m=t,a&&p.trigger(l?"ajaxSuccess":"ajaxError",[E,c,l?g:y]),v.fireWith(h,[E,T]),a&&(p.trigger("ajaxComplete",[E,c]),--x.active||x.event.trigger("ajaxStop"))}typeof e=="object"&&(n=e,e=t),n=n||{};var r,i,s,o,u,a,f,l,c=x.ajaxSetup({},n),h=c.context||c,p=c.context&&(h.nodeType||h.jquery)?x(h):x.event,d=x.Deferred(),v=x.Callbacks("once memory"),m=c.statusCode||{},g={},y={},b=0,w="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(b===2){if(!l){l={};while(t=Nn.exec(o))l[t[1].toLowerCase()]=t[2]}t=l[e.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return b===2?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,g[e]=t),this},overrideMimeType:function(e){return b||(c.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)m[t]=[m[t],e[t]];else E.always(e[E.status]);return this},abort:function(e){var t=e||w;return f&&f.abort(t),T(0,t),this}};d.promise(E).complete=v.add,E.success=E.done,E.error=E.fail,c.url=((e||c.url||wn)+"").replace(xn,"").replace(Ln,bn[1]+"//"),c.type=n.method||n.type||c.method||c.type,c.dataTypes=x.trim(c.dataType||"*").toLowerCase().match(N)||[""],c.crossDomain==null&&(r=An.exec(c.url.toLowerCase()),c.crossDomain=!(!r||r[1]===bn[1]&&r[2]===bn[2]&&(r[3]||(r[1]==="http:"?"80":"443"))===(bn[3]||(bn[1]==="http:"?"80":"443")))),c.data&&c.processData&&typeof c.data!="string"&&(c.data=x.param(c.data,c.traditional)),Hn(Mn,c,n,E);if(b===2)return E;a=c.global,a&&x.active++===0&&x.event.trigger("ajaxStart"),c.type=c.type.toUpperCase(),c.hasContent=!kn.test(c.type),s=c.url,c.hasContent||(c.data&&(s=c.url+=(Sn.test(s)?"&":"?")+c.data,delete c.data),c.cache===!1&&(c.url=Tn.test(s)?s.replace(Tn,"$1_="+En++):s+(Sn.test(s)?"&":"?")+"_="+En++)),c.ifModified&&(x.lastModified[s]&&E.setRequestHeader("If-Modified-Since",x.lastModified[s]),x.etag[s]&&E.setRequestHeader("If-None-Match",x.etag[s])),(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&E.setRequestHeader("Content-Type",c.contentType),E.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Dn+"; q=0.01":""):c.accepts["*"]);for(i in c.headers)E.setRequestHeader(i,c.headers[i]);if(!c.beforeSend||c.beforeSend.call(h,E,c)!==!1&&b!==2){w="abort";for(i in{success:1,error:1,complete:1})E[i](c[i]);f=Hn(_n,c,n,E);if(!f)T(-1,"No Transport");else{E.readyState=1,a&&p.trigger("ajaxSend",[E,c]),c.async&&c.timeout>0&&(u=setTimeout(function(){E.abort("timeout")},c.timeout));try{b=1,f.send(g,T)}catch(S){if(!(b<2))throw S;T(-1,S)}}return E}return E.abort()},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,n){return x.get(e,t,n,"script")}}),x.each(["get","post"],function(e,n){x[n]=function(e,r,i,s){return x.isFunction(r)&&(s=s||i,i=r,r=t),x.ajax({url:e,type:n,dataType:s,data:r,success:i})}}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),x.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=f.head||x("head")[0]||f.documentElement;return{send:function(t,i){n=f.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){if(t||!n.readyState||/loaded|complete/.test(n.readyState))n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success")},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var In=[],qn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=In.pop()||x.expando+"_"+En++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.jsonp!==!1&&(qn.test(n.url)?"url":typeof n.data=="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&qn.test(n.data)&&"data");if(a||n.dataTypes[0]==="jsonp")return s=n.jsonpCallback=x.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,a?n[a]=n[a].replace(qn,"$1"+s):n.jsonp!==!1&&(n.url+=(Sn.test(n.url)?"&":"?")+n.jsonp+"="+s),n.converters["script json"]=function(){return u||x.error(s+" was not called"),u[0]},n.dataTypes[0]="json",o=e[s],e[s]=function(){u=arguments},i.always(function(){e[s]=o,n[s]&&(n.jsonpCallback=r.jsonpCallback,In.push(s)),u&&x.isFunction(o)&&o(u[0]),u=o=t}),"script"});var Rn,Un,zn=0,Wn=e.ActiveXObject&&function(){var e;for(e in Rn)Rn[e](t,!0)};x.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&Xn()||Vn()}:Xn,Un=x.ajaxSettings.xhr(),x.support.cors=!!Un&&"withCredentials"in Un,Un=x.support.ajax=!!Un,Un&&x.ajaxTransport(function(n){if(!n.crossDomain||x.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async);if(n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null),r=function(e,i){var u,f,l,c;try{if(r&&(i||a.readyState===4)){r=t,o&&(a.onreadystatechange=x.noop,Wn&&delete Rn[o]);if(i)a.readyState!==4&&a.abort();else{c={},u=a.status,f=a.getAllResponseHeaders(),typeof a.responseText=="string"&&(c.text=a.responseText);try{l=a.statusText}catch(h){l=""}!u&&n.isLocal&&!n.crossDomain?u=c.text?200:404:u===1223&&(u=204)}}}catch(p){i||s(-1,p)}c&&s(u,l,c,f)},n.async?a.readyState===4?setTimeout(r):(o=++zn,Wn&&(Rn||(Rn={},x(e).unload(Wn)),Rn[o]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var $n,Jn,Kn=/^(?:toggle|show|hide)$/,Qn=new RegExp("^(?:([+-])=|)("+T+")([a-z%]*)$","i"),Gn=/queueHooks$/,Yn=[ir],Zn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Qn.exec(t),s=i&&i[3]||(x.cssNumber[e]?"":"px"),o=(x.cssNumber[e]||s!=="px"&&+r)&&Qn.exec(x.css(n.elem,e)),u=1,a=20;if(o&&o[3]!==s){s=s||o[3],i=i||[],o=+r||1;do u=u||".5",o/=u,x.style(n.elem,e,o+s);while(u!==(u=n.cur()/r)&&u!==1&&--a)}return i&&(o=n.start=+o||+r||0,n.unit=s,n.end=i[1]?o+(i[1]+1)*i[2]:+i[2]),n}]};x.Animation=x.extend(nr,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),x.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},x.fn.extend({position:function(){if(!this[0])return;var e,t,n={top:0,left:0},r=this[0];return x.css(r,"position")==="fixed"?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(n=e.offset()),n.top+=x.css(e[0],"borderTopWidth",!0),n.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-x.css(r,"marginTop",!0),left:t.left-n.left-x.css(r,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||l;while(e&&!x.nodeName(e,"html")&&x.css(e,"position")==="static")e=e.offsetParent;return e||l})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);x.fn[e]=function(i){return x.access(this,function(e,i,s){var o=ur(e);if(s===t)return o?n in o?o[n]:o.document.documentElement[i]:e[i];o?o.scrollTo(r?x(o).scrollLeft():s,r?s:x(o).scrollTop()):e[i]=s},e,i,arguments.length,null)}}),x.each({Height:"height",Width:"width"},function(e,n){x.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){x.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!="boolean"),u=r||(i===!0||s===!0?"margin":"border");return x.access(this,function(n,r,i){var s;return x.isWindow(n)?n.document.documentElement["client"+e]:n.nodeType===9?(s=n.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])):i===t?x.css(n,r,u):x.style(n,r,i,u)},n,o?i:t,o,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,typeof module=="object"&&module&&typeof module.exports=="object"?module.exports=x:typeof sumo.define=="function"&&sumo.define.amd&&sumo.define("jquery",[],function(){return x})}(window),function(){var e,t,n,r,i,s,o,u,a,f,l,c,h=[].slice;o=/function[^(]*\(([^)]*)\)/,r=/([^\s,]+)/g,u=function(e){var t;return((e!=null?(t=e.toString().match(o))!=null?t[1]:void 0:void 0)||"").match(r)||[]},a=function(e,t,n){var r,i,s,o,u,a,f,l,c;e==null&&(e=[]),t==null&&(t=function(){}),r=e.length,u=[];if(r===0)return t(null,u);i=[],s=!1,c=[];for(o=f=0,l=e.length;f-1&&(a[o]=c.length<2?c[0]:c);if(++o>=r)return s?t(i,a):t(null,a);try{return e[o](u)}catch(p){return f=p,u(f)}},u())},l=function(e,t){var n,r;return n=-1,e.length===0?t():(r=function(){var i,s;return i=arguments[0],s=2<=arguments.length?h.call(arguments,1):[],i!=null?t(i):++n>=e.length?t.apply(null,[null].concat(h.call(s))):e[n].apply(e,h.call(s).concat([r]))},r())},s=function(e,t,n,r){var i,s;return e==null&&(e=[]),s=function(){var n,r,s;s=[];for(n=0,r=e.length;n=t}},t=function(){function e(e,t){this.cascadeChannels=t!=null?t:!1,this.channels={},e instanceof Object?this.installTo(e):e===!0&&(this.cascadeChannels=!0)}return e.prototype.on=function(t,n,r){var i,s,o,u,a,f,l,c,h,p;r==null&&(r=this),(f=this.channels)[t]==null&&(f[t]=[]),u=this;if(t instanceof Array){h=[];for(l=0,c=t.length;l1&&this.emit(r.slice(0,-1).join("/"),t,n),this)},e.prototype.installTo=function(e){var t,n;if(typeof e=="object")for(t in this)n=this[t],e[t]==null&&(e[t]=n);return this},e._rm=function(e,t,n,r){var i;if(e.channels[t]==null)return;return e.channels[t]=function(){var s,o,u,a;u=e.channels[t],a=[];for(s=0,o=u.length;s0&&(s=function(){var t,r,s;s=[];for(i=t=0,r=n.length;t0)for(u=0;u=8)?window.onhashchange=e:setInterval(e,50),location.hash!==""&&t.dispatch(location.hash)},core:{route:function(e){this.path=e,this.action=null,this.do_enter=[],this.do_exit=null,this.params={},t.routes.defined[e]=this}},routes:{current:null,root:null,rescue:null,previous:null,defined:{}}};t.core.route.prototype={to:function(e){return this.action=e,this},enter:function(e){return e instanceof Array?this.do_enter=this.do_enter.concat(e):this.do_enter.push(e),this},exit:function(e){return this.do_exit=e,this},partition:function(){var e=[],t=[],n=/\(([^}]+?)\)/g,r,i;while(r=n.exec(this.path))e.push(r[1]);t.push(this.path.split("(")[0]);for(i=0;i0)for(n=0;n=n*.9?e(r):t}return e(t("body").children(":visible"))}function n(){}o=!0,t.fn.area=function(){var e=this.innerWidth(),t=this.innerHeight();return e*t},t.fn.aspect=function(){var e=this.innerWidth(),t=this.innerHeight();return t>e?e/t:t/e},t.fn.largest=function(){var e=null,n=0;return t(this).each(function(){var r=t(this).aspect(),i=t(this).area()*r;i>n&&(n=i,e=t(this))}),e},t.Path.map("#/sumome/~/:page").to(function(){var e=this.params.page||"index",n=t("body").children(":visible").largest();n.html("

"+e+"

")}).enter(n),t.Path.map("#/sumome/app/:app_id").to(function(){var e=this.params.app_id||"control";e==="login"?w.user?T.emit("startApp","launcher"):(t(".sumome-badge-hint").remove(),T.emit("startApp","login")):e==="register"?w.user?T.emit("startApp","launcher"):(t(".sumome-badge-hint").remove(),T.emit("startApp",{app:"login",opts:{view:"register"}})):"apps"in w&&w.apps.indexOf(e)>=0?T.emit("startApp",e):T.emit("startApp","app_store")}),t.Path.map("#/sumome/app/:app_id/:path(/:query)").to(function(){var e=this.params.app_id||"control",n=this.params.path||null,r=this.params.query||null,i=null;if(n&&n.indexOf("pid")>=0){var s=n.split("pid");n=s[0].length?s[0]:null,i=s[1]}e==="login"?w.user?T.emit("startApp","launcher"):(t(".sumome-badge-hint").remove(),T.emit("startApp",{app:"login",opts:{view:n,query:r?decodeURIComponent(r):null}})):"apps"in w&&w.apps.indexOf(e)>=0||["control","app_store"].indexOf(e)>=0?(T.on(e+"/app/started",function(t){T.off(e+"/app/started"),T.emit(e+"/app/route",n)}),T.emit("startApp",e)):(i&&T.on("app_store/app/started",function(e){T.off("app_store/app/started"),T.emit("app_store/app/route",i)}),T.emit("startApp","app_store"))}),t(window).on("resize",function(e){T.emit("resize")}),window.addEventListener&&window.addEventListener("sumome",function(e){e&&"detail"in e&&e.detail&&"type"in e.detail&&e.detail.type&&e.detail.type==="launch"&&(c?(d=!0,c.triggerHandler("click")):T.emit("startApp","launcher"))}),t("body").keydown(function(e){var t=[83,85,77,79,77,69,38];e.which===t[v.length]?(v.push(e.which),v.length===t.length&&(v=[],c?(d=!0,c.triggerHandler("click")):T.emit("startApp","launcher"))):v=[]}),"location"in window&&"search"in window.location&&window.location.search.indexOf("smdebug")>=0&&(window.__smDebug=!0,window.__sm$=t),t.support.cors=!0;var r={href:window.location.href||null,ref:document.referrer||null};if(u)r.site_id=u;else{var i=t("script[data-weebly-site-id]").data("weebly-site-id");i&&(r.weebly_id=i)}a&&(r.mode=a),t.ajax({type:"POST",dataType:"json",beforeSend:function(e){var n=t.cookie("__smToken");n&&e.setRequestHeader("X-Sumo-Auth",n);var r=E("sumotoken");r&&e.setRequestHeader("X-Sumo-Token",r)},xhrFields:{withCredentials:!0},crossDomain:!0,url:sumoUrl+"/api/load/",data:r,error:function(e){},success:function(e){var n=!1;"hint"in e&&(n=e.hint),"siteId"in e&&e.siteId&&(u=e.siteId,w.siteId=u,t("script[data-weebly-site-id]").attr("data-sumo-site-id",u)),"siteCreated"in e&&e.siteCreated&&t("body").append(t('')),"siteRegistered"in e&&(w.siteRegistered=e.siteRegistered),"badgeLocation"in e&&(w.badgeLocation=e.badgeLocation),"unreadNotificationCount"in e&&(w.unreadNotificationCount=e.unreadNotificationCount),w.newStore="ns"in e?e.ns:!1,w.tierProductIds="tierProductIds"in e?e.tierProductIds:[],"access"in e&&(w.access=e.access),"geoLocation"in e&&(w.geoLocation=e.geoLocation),"views"in e&&(w.views=parseInt(e.views)),"tours"in e&&(w.tours=e.tours);if(e.success){e&&"token"in e&&e.token&&(w.sessionId=e.token,t.cookie("__smToken",e.token,{expires:36500,path:"/"})),e&&"user"in e&&e.user?(w.user=e.user,a==="manage"||"login"in e&&e.login||e.unreadNotificationCount>0?(T.emit("login"),T.emit("startApp",a==="manage"?"launcher":"control")):(p=!0,S())):S(),e&&"apps"in e&&(w.apps=e.apps);var r;for(r=0;r=k&&document.body)return N()}catch(n){}setTimeout(L,10)}try{document.compatMode!=="CSS1Compat"&&(t.fn.oldHeightFunction=t.fn.height,t.fn.height=function(){return this.is(t(window))?this.oldHeightFunction()');switch(w.badgeLocation){case"tl":c.css({top:"40px",left:"-40px"});break;case"tr":c.css({top:"40px",right:"-40px"});break;case"bl":c.css({bottom:"40px",left:"-40px"});break;case"br":c.css({bottom:"40px",right:"-40px"});break;case"hidden":p?c.css({top:"40px",right:"-40px"}):c.style("display","none","important")}t("body").append(c),e&&c.append(''),c.click(function(e){if(!d)return;if(l==="login")T.emit("stop",l+"/app",function(){T.emit("startApp","login")});else if(p){t.ajax({type:"POST",dataType:"json",beforeSend:function(e){var n=t.cookie("__smToken");n&&e.setRequestHeader("X-Sumo-Auth",n)},xhrFields:{withCredentials:!1},crossDomain:!0,url:sumoUrl+"/api/softlogin",data:{site_id:u},success:t.proxy(function(e){},this)}),T.emit("login"),T.emit("startApp","launcher");for(var n=0;n0){var t=m.shift();T.emit("startApp",t)}})})}),T.on("setProperties",function(e){for(var t in e)w[t]=e[t]}),T.on("event",function(e){var n=t.param({site_id:u,app_id:e.appId,event:e.event,href:e.href||window.location.href||null,ref:document.referrer||null,cache:Math.random()}),r=sumoUrl+"/api/event/?"+n,i=t("").attr("src",r).attr("alt","").hide();t(document.body).append(i)}),T.on("restartApp",function(e){l===e.split("/")[0]&&(l=null),T.stop(e+"/app",function(t){t?alert("Error: "+t):(e==="control"&&(g=!1),T.emit("startApp",e))})}),T.on("stop",function(e){l===e.split("/")[0]&&(l=null),T.stop(e,function(t){t?alert("Error: "+t):e==="control/app"&&(g=!1)})}),T.on("purchase",function(e){if(w.newStore&&w.tierProductIds&&w.tierProductIds.length&&w.tierProductIds.indexOf(e.productId)<0)T.emit("startApp","app_store");else{var n=e.cartId,r=e.productId,i=e.expiresAt||null,s=e.iSrc||t.cookie("__smIRef")||null,o=e.src||t.cookie("__smSrc")||null,u=e.done,a=e.onWindowClose,f=400,l=550,c=window.screenLeft!==undefined?window.screenLeft:screen.left,h=window.screenTop!==undefined?window.screenTop:screen.top,p=!1,d=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,v=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height,m=d/2-f/2+c,g=v/2-l/2+h,y=window.open(w.secureSumoUrl+"/preparecart/"+n,"_blank","width="+f+", height="+l+", top="+g+", left="+m);window.focus&&y.focus();if(a){var b,E;b=window.setInterval(function(){y.closed!==!1&&!p?(p=!0,window.clearInterval(b),window.clearInterval(E),a({cartId:n,productId:r,expiresAt:i})):p&&(window.clearInterval(b),window.clearInterval(E))},500),E=window.setInterval(function(){t.ajax({type:"POST",dataType:"json",beforeSend:function(e){e.setRequestHeader("X-Sumo-Auth",t.cookie("__smToken"))},xhrFields:{withCredentials:!1},crossDomain:!0,url:w.sumoUrl+"/api/cart/checkcart",data:{site_id:w.siteId,cart_id:n},success:t.proxy(function(e){e.done&&!p?(p=!0,window.clearInterval(b),window.clearInterval(E),a({cartId:n,productId:r})):p&&(window.clearInterval(b),window.clearInterval(E))},this)})},2e4),setTimeout(function(){window.clearInterval(b),window.clearInterval(E)},12e5)}t.ajax({type:"POST",dataType:"json",beforeSend:function(e){e.setRequestHeader("X-Sumo-Auth",t.cookie("__smToken"))},xhrFields:{withCredentials:!1},crossDomain:!0,url:w.secureSumoUrl+"/api/app_store/purchase",data:{site_id:w.siteId,cart_id:n,product_id:r,src:o,i_src:s},success:t.proxy(function(e){u&&u(e)},this)})}}),T.on("login",function(){c&&(c.style("display","none","important"),c.off("click"),c.remove(),c=null)}),T.on("logout",function(e){e!==!1&&(e=!0),l&&T.emit("stop",l+"/app"),T.emit("stop","control/app"),p=e,e||(t.removeCookie("__smToken",{path:"/"}),T.emit("setProperties",{user:null,sessionId:null,access:null})),t.ajax({type:"POST",dataType:"json",beforeSend:function(e){var n=t.cookie("__smToken");n&&e.setRequestHeader("X-Sumo-Auth",n)},xhrFields:{withCredentials:!1},data:{site_id:u,soft:e},crossDomain:!0,url:sumoUrl+"/api/logout"}),S()});var C=new Date,k=3e3;t(document).ready(function(){o||N()}),L()}),sumo.define("sumome",function(){}),sumo.require.config({baseUrl:baseUrl+"js",skipDataMain:!0,waitSeconds:30,paths:{scaleApp:"sumome","control/app":"sumome-control","app_store/app":"sumome-appstore","login/app":"sumome-control"}}),sumo.requirejs.onError=function(e){if(e.requireType!=="timeout")throw e;console.log(e)},sumo.require(["sumome"])})(undefined,undefined);