Files
2026-02-22 21:59:33 +01:00

51 lines
258 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(){function ad(){return"ckeditor";}function d(j){return j.elementMode==3;}function w(j){return j.name.replace(/\[/,"_").replace(/\]/,"_");}function f(j){return j.container.$;}function b(j){return j.document.$;}function F(j){return j.getSnapshot();}function J(aw,j){aw.loadSnapshot(j);}function Q(aw){if(aw.getSelection()==null){return null;}var j=aw.getSelection().getStartElement();if(j&&j.$){return j.$;}return null;}function N(){return CKEDITOR.basePath;}function an(){return e("jsplus_bootstrap_gallery");}function e(j){return CKEDITOR.plugins.getPath(j);}function E(){return CKEDITOR.version.charAt(0)=="3"?3:4;}function p(ax,aw){if(E()==3){var j=(aw.indexOf("jsplus_bootstrap_gallery_")==-1)?("jsplus_bootstrap_gallery_"+aw):aw;if(typeof(ax.lang[j])!=="undefined"){return ax.lang[j];}else{console.log("(v3) editor.lang['jsplus_bootstrap_gallery'] not defined");}}else{if(typeof(ax.lang["jsplus_bootstrap_gallery"])!=="undefined"){if(typeof(ax.lang["jsplus_bootstrap_gallery"][aw])!=="undefined"){return ax.lang["jsplus_bootstrap_gallery"][aw];}else{console.log("editor.lang['jsplus_bootstrap_gallery']['"+aw+"'] not defined");}}else{console.log("editor.lang['jsplus_bootstrap_gallery'] not defined");}}return"";}function O(aw,j){return L(aw,"jsplus_bootstrap_gallery_"+j);}function L(aw,j){var ax=aw.config[j];return ax;}function o(j,aw){P("jsplus_bootstrap_gallery_"+j,aw);}function P(j,aw){CKEDITOR.config[j]=aw;}function aj(ax,aw){var j=CKEDITOR.dom.element.createFromHtml(aw);ax.insertElement(j);}function l(){return"";}var K=0;var z=1;var D=2;function i(j,ay,aw){var ax=null;if(aw==K){ax=CKEDITOR.TRISTATE_DISABLED;}else{if(aw==z){ax=CKEDITOR.TRISTATE_OFF;}else{if(aw==D){ax=CKEDITOR.TRISTATE_ON;}}}if(ax!=null&&j.ui&&j.ui.get(ay)){j.ui.get(ay).setState(ax);}}function G(j,aw){j.on("selectionChange",function(ax){aw(ax.editor);});}function y(aw,j,ax){if(j=="beforeGetOutputHTML"){aw.on("toDataFormat",function(ay){return ax(aw,ay.data.dataValue);},null,null,4);return;}aw.on(j,(function(){var ay=aw;return function(){ax(ay);};})());}function q(ax,j,aA,ay,az,aw){ax.addCommand(j,{exec:az});ax.ui.addButton(j,{title:p(ax,ay.replace(/^jsplus_/,"")),label:p(ax,ay.replace(/^jsplus_/,"")),icon:an()+"icons/"+aA+".png",command:aA});}function k(j){return j.mode=="wysiwyg";}function Y(aw,j,ax){CKEDITOR.plugins.add(aw,{icons:aw,lang:j,init:function(ay){ax(ay);}});}function c(){JSDialog.Config.skin=null;JSDialog.Config.templateDialog='<div class="jsdialog_plugin_jsplus_bootstrap_gallery jsdialog_dlg cke_dialog cke_ltr">'+'<div class="cke_dialog_body">'+'<div class="jsdialog_title cke_dialog_title">'+'<div class="jsdialog_title_text"></div>'+'<a class="jsdialog_x cke_dialog_close_button" href="javascript:void(0)" style="-webkit-user-select: none;">'+'<span class="cke_label">X</span>'+"</a>"+"</div>"+'<div class="jsdialog_content_wrap cke_dialog_contents">'+'<div class="jsdialog_content"></div>'+"</div>"+'<div class="cke_dialog_footer">'+'<div class="jsdialog_buttons cke_dialog_footer_buttons"></div>'+"</div>"+"</div>"+"</div>";JSDialog.Config.templateButton='<a><span class="cke_dialog_ui_button"></span></a>';JSDialog.Config.templateBg='<div class="jsdialog_plugin_jsplus_bootstrap_gallery jsdialog_bg"></div>';JSDialog.Config.classButton="cke_dialog_ui_button";JSDialog.Config.classButtonOk="cke_dialog_ui_button_ok";JSDialog.Config.contentBorders=[3,1,15,1,65];CKEDITOR.skin.loadPart("dialog");t(document,".jsdialog_plugin_jsplus_bootstrap_gallery.jsdialog_bg { background-color: white; opacity: 0.5; position: fixed; left: 0; top: 0; width: 100%; height: 3000px; z-index: 11111; display: none; }"+".jsdialog_plugin_jsplus_bootstrap_gallery.jsdialog_dlg { font-family: Arial; padding: 0; position: fixed; z-index: 11112; background-color: white; border-radius: 5px; overflow:hidden; display: none; }"+".jsdialog_plugin_jsplus_bootstrap_gallery.jsdialog_show { display: block; }"+".jsdialog_plugin_jsplus_bootstrap_gallery .jsdialog_message_contents { font-size: 16px; padding: 10px 0 10px 7px; display: table; overflow: hidden; }"+".jsdialog_plugin_jsplus_bootstrap_gallery .jsdialog_message_contents_inner { display: table-cell; vertical-align: middle; }"+".jsdialog_plugin_jsplus_bootstrap_gallery .jsdialog_message_icon { padding-left: 100px; min-height: 64px; background-position: 10px 10px; background-repeat: no-repeat; box-sizing: content-box; }"+".jsdialog_plugin_jsplus_bootstrap_gallery .jsdialog_message_icon_info { background-image: url(img/info.png); }"+".jsdialog_plugin_jsplus_bootstrap_gallery .jsdialog_message_icon_warning { background-image: url(img/warning.png); }"+".jsdialog_plugin_jsplus_bootstrap_gallery .jsdialog_message_icon_error { background-image: url(img/error.png); }"+".jsdialog_plugin_jsplus_bootstrap_gallery .jsdialog_message_icon_confirm { background-image: url(img/confirm.png); }"+".jsdialog_plugin_jsplus_bootstrap_gallery .cke_dialog_contents { margin-top: 0; border-top: none; }"+".jsdialog_plugin_jsplus_bootstrap_gallery .cke_dialog_footer div { outline: none; }"+".jsdialog_plugin_jsplus_bootstrap_gallery .cke_dialog_footer_buttons > .cke_dialog_ui_button { margin-right: 5px; }"+".jsdialog_plugin_jsplus_bootstrap_gallery .cke_dialog_footer_buttons > .cke_dialog_ui_button:last-child { margin-right: 0; }"+".jsdialog_plugin_jsplus_bootstrap_gallery .cke_dialog_title { cursor: default; }"+".jsdialog_plugin_jsplus_bootstrap_gallery .cke_dialog_contents { padding: 0; }");
}(function(aw,j){if(typeof module==="object"&&typeof module.exports==="object"){module.exports=aw.document?j(aw,true):function(ax){if(!ax.document){throw new Error("jQuery requires a window with a document");}return j(ax);};}else{j(aw);}})(typeof window!=="undefined"?window:this,function(cc,bR){function ca(bn){var j=bn.length,bt=b8.type(bn);if(bt==="function"||b8.isWindow(bn)){return false;}if(bn.nodeType===1&&j){return true;}return bt==="array"||j===0||typeof j==="number"&&j>0&&j-1 in bn;}function cv(bn,j,bt){if(b8.isFunction(j)){return b8.grep(bn,function(ct,cn){return !!j.call(ct,cn,ct)!==bt;});}if(j.nodeType){return b8.grep(bn,function(cn){return cn===j!==bt;});}if(typeof j==="string"){if(cR.test(j)){return b8.filter(j,bn,bt);}j=b8.filter(j,bn);}return b8.grep(bn,function(cn){return b8.inArray(cn,j)>=0!==bt;});}function cW(bn,j){do{bn=bn[j];}while(bn&&bn.nodeType!==1);return bn;}function cj(bn){var j=cG[bn]={};b8.each(bn.match(cB)||[],function(bt,cn){j[cn]=true;});return j;}function cA(){if(cs.addEventListener){cs.removeEventListener("DOMContentLoaded",cN,false);cc.removeEventListener("load",cN,false);}else{cs.detachEvent("onreadystatechange",cN);cc.detachEvent("onload",cN);}}function cN(){if(cs.addEventListener||event.type==="load"||cs.readyState==="complete"){cA();b8.ready();}}function bV(cn,bn,ct){if(ct===undefined&&cn.nodeType===1){var bt="data-"+bn.replace(cL,"-$1").toLowerCase();ct=cn.getAttribute(bt);if(typeof ct==="string"){try{ct=ct==="true"?true:ct==="false"?false:ct==="null"?null:+ct+""===ct?+ct:cP.test(ct)?b8.parseJSON(ct):ct;}catch(j){}b8.data(cn,bn,ct);}else{ct=undefined;}}return ct;}function cx(bn){var j;for(j in bn){if(j==="data"&&b8.isEmptyObject(bn[j])){continue;}if(j!=="toJSON"){return false;}}return true;}function cr(di,dl,j,cn){if(!b8.acceptData(di)){return;}var dm,bn,dk=b8.expando,dj=di.nodeType,ct=dj?b8.cache:di,bt=dj?di[dk]:di[dk]&&dk;if((!bt||!ct[bt]||!cn&&!ct[bt].data)&&j===undefined&&typeof dl==="string"){return;}if(!bt){if(dj){bt=di[dk]=bZ.pop()||b8.guid++;}else{bt=dk;}}if(!ct[bt]){ct[bt]=dj?{}:{toJSON:b8.noop};}if(typeof dl==="object"||typeof dl==="function"){if(cn){ct[bt]=b8.extend(ct[bt],dl);}else{ct[bt].data=b8.extend(ct[bt].data,dl);}}bn=ct[bt];if(!cn){if(!bn.data){bn.data={};}bn=bn.data;}if(j!==undefined){bn[b8.camelCase(dl)]=j;}if(typeof dl==="string"){dm=bn[dl];if(dm==null){dm=bn[b8.camelCase(dl)];}}else{dm=bn;}return dm;}function bK(di,bt,dk){if(!b8.acceptData(di)){return;}var ct,bn,cn=di.nodeType,dj=cn?b8.cache:di,j=cn?di[b8.expando]:b8.expando;if(!dj[j]){return;}if(bt){ct=dk?dj[j]:dj[j].data;if(ct){if(!b8.isArray(bt)){if(bt in ct){bt=[bt];}else{bt=b8.camelCase(bt);if(bt in ct){bt=[bt];}else{bt=bt.split(" ");}}}else{bt=bt.concat(b8.map(bt,b8.camelCase));}bn=bt.length;while(bn--){delete ct[bt[bn]];}if(dk?!cx(ct):!b8.isEmptyObject(ct)){return;}}}if(!dk){delete dj[j].data;if(!cx(dj[j])){return;}}if(cn){b8.cleanData([di],true);}else{if(b3.deleteExpando||dj!=dj.window){delete dj[j];}else{dj[j]=null;}}}function bs(){return true;}function a1(){return false;}function cC(){try{return cs.activeElement;}catch(j){}}function bl(bn){var j=aP.split("|"),bt=bn.createDocumentFragment();if(bt.createElement){while(j.length){bt.createElement(j.pop());}}return bt;}function aD(ct,bn){var di,cn,j=0,bt=typeof ct.getElementsByTagName!==cV?ct.getElementsByTagName(bn||"*"):typeof ct.querySelectorAll!==cV?ct.querySelectorAll(bn||"*"):undefined;if(!bt){for(bt=[],di=ct.childNodes||ct;(cn=di[j])!=null;j++){if(!bn||b8.nodeName(cn,bn)){bt.push(cn);}else{b8.merge(bt,aD(cn,bn));}}}return bn===undefined||bn&&b8.nodeName(ct,bn)?b8.merge([ct],bt):bt;}function aG(j){if(cK.test(j.type)){j.defaultChecked=j.checked;}}function de(bn,j){return b8.nodeName(bn,"table")&&b8.nodeName(j.nodeType!==11?j:j.firstChild,"tr")?bn.getElementsByTagName("tbody")[0]||bn.appendChild(bn.ownerDocument.createElement("tbody")):bn;}function df(j){j.type=(b8.find.attr(j,"type")!==null)+"/"+j.type;return j;}function c5(bn){var j=aL.exec(bn.type);if(j){bn.type=j[1];}else{bn.removeAttribute("type");}return bn;}function a9(bt,j){var cn,bn=0;for(;(cn=bt[bn])!=null;bn++){b8._data(cn,"globalEval",!j||b8._data(j[bn],"globalEval"));}}function aW(di,bt){if(bt.nodeType!==1||!b8.hasData(di)){return;}var dk,ct,bn,cn=b8._data(di),dj=b8._data(bt,cn),j=cn.events;if(j){delete dj.handle;dj.events={};for(dk in j){for(ct=0,bn=j[dk].length;ct<bn;ct++){b8.event.add(bt,dk,j[dk][ct]);}}}if(dj.data){dj.data=b8.extend({},dj.data);}}function az(cn,bn){var ct,bt,j;if(bn.nodeType!==1){return;}ct=bn.nodeName.toLowerCase();if(!b3.noCloneEvent&&bn[b8.expando]){j=b8._data(bn);for(bt in j.events){b8.removeEvent(bn,bt,j.handle);}bn.removeAttribute(b8.expando);}if(ct==="script"&&bn.text!==cn.text){df(bn).text=cn.text;c5(bn);}else{if(ct==="object"){if(bn.parentNode){bn.outerHTML=cn.outerHTML;}if(b3.html5Clone&&cn.innerHTML&&!b8.trim(bn.innerHTML)){bn.innerHTML=cn.innerHTML;}}else{if(ct==="input"&&cK.test(cn.type)){bn.defaultChecked=bn.checked=cn.checked;if(bn.value!==cn.value){bn.value=cn.value;
}}else{if(ct==="option"){bn.defaultSelected=bn.selected=cn.defaultSelected;}else{if(ct==="input"||ct==="textarea"){bn.defaultValue=cn.defaultValue;}}}}}}function a0(bn,ct){var cn,j=b8(ct.createElement(bn)).appendTo(ct.body),bt=cc.getDefaultComputedStyle&&(cn=cc.getDefaultComputedStyle(j[0]))?cn.display:b8.css(j[0],"display");j.detach();return bt;}function bk(bn){var j=cs,bt=bg[bn];if(!bt){bt=a0(bn,j);if(bt==="none"||!bt){bw=(bw||b8("<iframe frameborder='0' width='0' height='0'/>")).appendTo(j.documentElement);j=(bw[0].contentWindow||bw[0].contentDocument).document;j.write();j.close();bt=a0(bn,j);bw.detach();}bg[bn]=bt;}return bt;}function aH(bn,j){return{get:function(){var bt=bn();if(bt==null){return;}if(bt){delete this.get;return;}return(this.get=j).apply(this,arguments);}};}function cd(cn,bn){if(bn in cn){return bn;}var ct=bn.charAt(0).toUpperCase()+bn.slice(1),bt=bn,j=bA.length;while(j--){bn=bA[j]+ct;if(bn in cn){return bn;}}return bt;}function cw(di,bt){var dk,ct,bn,cn=[],dj=0,j=di.length;for(;dj<j;dj++){ct=di[dj];if(!ct.style){continue;}cn[dj]=b8._data(ct,"olddisplay");dk=ct.style.display;if(bt){if(!cn[dj]&&dk==="none"){ct.style.display="";}if(ct.style.display===""&&cq(ct)){cn[dj]=b8._data(ct,"olddisplay",bk(ct.nodeName));}}else{bn=cq(ct);if(dk&&dk!=="none"||!bn){b8._data(ct,"olddisplay",bn?dk:b8.css(ct,"display"));}}}for(dj=0;dj<j;dj++){ct=di[dj];if(!ct.style){continue;}if(!bt||ct.style.display==="none"||ct.style.display===""){ct.style.display=bt?cn[dj]||"":"none";}}return di;}function bX(bt,j,cn){var bn=aC.exec(j);return bn?Math.max(0,bn[1]-(cn||0))+(bn[2]||"px"):j;}function bE(ct,bn,dj,cn,j){var bt=dj===(cn?"border":"content")?4:bn==="width"?1:0,di=0;for(;bt<4;bt+=2){if(dj==="margin"){di+=b8.css(ct,dj+co[bt],true,j);}if(cn){if(dj==="content"){di-=b8.css(ct,"padding"+co[bt],true,j);}if(dj!=="margin"){di-=b8.css(ct,"border"+co[bt]+"Width",true,j);}}else{di+=b8.css(ct,"padding"+co[bt],true,j);if(dj!=="padding"){di+=b8.css(ct,"border"+co[bt]+"Width",true,j);}}}return di;}function aK(ct,bn,dj){var cn=true,j=bn==="width"?ct.offsetWidth:ct.offsetHeight,bt=aS(ct),di=b3.boxSizing&&b8.css(ct,"boxSizing",false,bt)==="border-box";if(j<=0||j==null){j=c1(ct,bn,bt);if(j<0||j==null){j=ct.style[bn];}if(aO.test(j)){return j;}cn=di&&(b3.boxSizingReliable()||j===ct.style[bn]);j=parseFloat(j)||0;}return j+bE(ct,bn,dj||(di?"border":"content"),cn,bt)+"px";}function da(cn,bn,ct,bt,j){return new da.prototype.init(cn,bn,ct,bt,j);}function b9(){setTimeout(function(){bq=undefined;});return bq=b8.now();}function aV(cn,bn){var ct,bt={height:cn},j=0;bn=bn?1:0;for(;j<4;j+=2-bn){ct=co[j];bt["margin"+ct]=bt["padding"+ct]=cn;}if(bn){bt.opacity=bt.width=cn;}return bt;}function c0(ct,bn,dj){var cn,j=(bd[bn]||[]).concat(bd["*"]),bt=0,di=j.length;for(;bt<di;bt++){if(cn=j[bt].call(dj,bn,ct)){return cn;}}}function bj(dl,ds,cn){var j,di,dt,bt,dr,dp,dk,dn,bn=this,dm={},dq=dl.style,ct=dl.nodeType&&cq(dl),dj=b8._data(dl,"fxshow");if(!cn.queue){dr=b8._queueHooks(dl,"fx");if(dr.unqueued==null){dr.unqueued=0;dp=dr.empty.fire;dr.empty.fire=function(){if(!dr.unqueued){dp();}};}dr.unqueued++;bn.always(function(){bn.always(function(){dr.unqueued--;if(!b8.queue(dl,"fx").length){dr.empty.fire();}});});}if(dl.nodeType===1&&("height" in ds||"width" in ds)){cn.overflow=[dq.overflow,dq.overflowX,dq.overflowY];dk=b8.css(dl,"display");dn=dk==="none"?b8._data(dl,"olddisplay")||bk(dl.nodeName):dk;if(dn==="inline"&&b8.css(dl,"float")==="none"){if(!b3.inlineBlockNeedsLayout||bk(dl.nodeName)==="inline"){dq.display="inline-block";}else{dq.zoom=1;}}}if(cn.overflow){dq.overflow="hidden";if(!b3.shrinkWrapBlocks()){bn.always(function(){dq.overflow=cn.overflow[0];dq.overflowX=cn.overflow[1];dq.overflowY=cn.overflow[2];});}}for(j in ds){di=ds[j];if(bv.exec(di)){delete ds[j];dt=dt||di==="toggle";if(di===(ct?"hide":"show")){if(di==="show"&&dj&&dj[j]!==undefined){ct=true;}else{continue;}}dm[j]=dj&&dj[j]||b8.style(dl,j);}else{dk=undefined;}}if(!b8.isEmptyObject(dm)){if(dj){if("hidden" in dj){ct=dj.hidden;}}else{dj=b8._data(dl,"fxshow",{});}if(dt){dj.hidden=!ct;}if(ct){b8(dl).show();}else{bn.done(function(){b8(dl).hide();});}bn.done(function(){var du;b8._removeData(dl,"fxshow");for(du in dm){b8.style(dl,du,dm[du]);}});for(j in dm){bt=c0(ct?dj[j]:0,j,bn);if(!(j in dj)){dj[j]=bt.start;if(ct){bt.end=bt.start;bt.start=j==="width"||j==="height"?1:0;}}}}else{if((dk==="none"?bk(dl.nodeName):dk)==="inline"){dq.display=dk;}}}function dd(ct,bn){var dj,cn,j,bt,di;for(dj in ct){cn=b8.camelCase(dj);j=bn[cn];bt=ct[dj];if(b8.isArray(bt)){j=bt[1];bt=ct[dj]=bt[0];}if(dj!==cn){ct[cn]=bt;delete ct[dj];}di=b8.cssHooks[cn];if(di&&"expand" in di){bt=di.expand(bt);delete ct[cn];for(dj in bt){if(!(dj in ct)){ct[dj]=bt[dj];bn[dj]=j;}}}else{bn[cn]=j;}}}function bT(dj,dm,bt){var j,ct,dn=0,bn=bp.length,dl=b8.Deferred().always(function(){delete dk.elem;}),dk=function(){if(ct){return false;}var dq=bq||b9(),du=Math.max(0,di.startTime+di.duration-dq),ds=du/di.duration||0,dr=1-ds,dt=0,dp=di.tweens.length;for(;
dt<dp;dt++){di.tweens[dt].run(dr);}dl.notifyWith(dj,[di,dr,du]);if(dr<1&&dp){return du;}else{dl.resolveWith(dj,[di]);return false;}},di=dl.promise({elem:dj,props:b8.extend({},dm),opts:b8.extend(true,{specialEasing:{}},bt),originalProperties:dm,originalOptions:bt,startTime:bq||b9(),duration:bt.duration,tweens:[],createTween:function(dp,dr){var dq=b8.Tween(dj,di.opts,dp,dr,di.opts.specialEasing[dp]||di.opts.easing);di.tweens.push(dq);return dq;},stop:function(dp){var dr=0,dq=dp?di.tweens.length:0;if(ct){return this;}ct=true;for(;dr<dq;dr++){di.tweens[dr].run(1);}if(dp){dl.resolveWith(dj,[di,dp]);}else{dl.rejectWith(dj,[di,dp]);}return this;}}),cn=di.props;dd(cn,di.opts.specialEasing);for(;dn<bn;dn++){j=bp[dn].call(di,dj,cn,di.opts);if(j){return j;}}b8.map(cn,c0,di);if(b8.isFunction(di.opts.start)){di.opts.start.call(dj,di);}b8.fx.timer(b8.extend(dk,{elem:dj,anim:di,queue:di.opts.queue}));return di.progress(di.opts.progress).done(di.opts.done,di.opts.complete).fail(di.opts.fail).always(di.opts.always);}function aA(j){return function(bt,di){if(typeof bt!=="string"){di=bt;bt="*";}var ct,bn=0,cn=bt.toLowerCase().match(cB)||[];if(b8.isFunction(di)){while(ct=cn[bn++]){if(ct.charAt(0)==="+"){ct=ct.slice(1)||"*";(j[ct]=j[ct]||[]).unshift(di);}else{(j[ct]=j[ct]||[]).push(di);}}}};}function cJ(ct,bn,dj,cn){function di(dl){var dk;j[dl]=true;b8.each(ct[dl]||[],function(dp,dm){var dn=dm(bn,dj,cn);if(typeof dn==="string"&&!bt&&!j[dn]){bn.dataTypes.unshift(dn);di(dn);return false;}else{if(bt){return !(dk=dn);}}});return dk;}var j={},bt=ct===c3;return di(bn.dataTypes[0])||!j["*"]&&di("*");}function bz(cn,bn){var ct,bt,j=b8.ajaxSettings.flatOptions||{};for(bt in bn){if(bn[bt]!==undefined){(j[bt]?cn:ct||(ct={}))[bt]=bn[bt];}}if(ct){b8.extend(true,cn,ct);}return cn;}function aE(ct,dk,bt){var j,cn,dl,bn,dj=ct.contents,di=ct.dataTypes;while(di[0]==="*"){di.shift();if(cn===undefined){cn=ct.mimeType||dk.getResponseHeader("Content-Type");}}if(cn){for(bn in dj){if(dj[bn]&&dj[bn].test(cn)){di.unshift(bn);break;}}}if(di[0] in bt){dl=di[0];}else{for(bn in bt){if(!di[0]||ct.converters[bn+" "+di[0]]){dl=bn;break;}if(!j){j=bn;}}dl=dl||j;}if(dl){if(dl!==di[0]){di.unshift(dl);}return bt[dl];}}function cX(dj,dn,bt,j){var ct,dp,bn,dm,dl,di={},cn=dj.dataTypes.slice();if(cn[1]){for(bn in dj.converters){di[bn.toLowerCase()]=dj.converters[bn];}}dp=cn.shift();while(dp){if(dj.responseFields[dp]){bt[dj.responseFields[dp]]=dn;}if(!dl&&j&&dj.dataFilter){dn=dj.dataFilter(dn,dj.dataType);}dl=dp;dp=cn.shift();if(dp){if(dp==="*"){dp=dl;}else{if(dl!=="*"&&dl!==dp){bn=di[dl+" "+dp]||di["* "+dp];if(!bn){for(ct in di){dm=ct.split(" ");if(dm[1]===dp){bn=di[dl+" "+dm[0]]||di["* "+dm[0]];if(bn){if(bn===true){bn=di[ct];}else{if(di[ct]!==true){dp=dm[0];cn.unshift(dm[1]);}}break;}}}}if(bn!==true){if(bn&&dj["throws"]){dn=bn(dn);}else{try{dn=bn(dn);}catch(dk){return{state:"parsererror",error:bn?dk:"No conversion from "+dl+" to "+dp};}}}}}}}return{state:"success",data:dn};}function b6(cn,bn,ct,bt){var j;if(b8.isArray(bn)){b8.each(bn,function(dj,di){if(ct||bJ.test(cn)){bt(cn,di);}else{b6(cn+"["+(typeof di==="object"?dj:"")+"]",di,ct,bt);}});}else{if(!ct&&b8.type(bn)==="object"){for(j in bn){b6(cn+"["+j+"]",bn[j],ct,bt);}}else{bt(cn,bn);}}}function br(){try{return new cc.XMLHttpRequest;}catch(j){}}function bf(){try{return new cc.ActiveXObject("Microsoft.XMLHTTP");}catch(j){}}function aQ(j){return b8.isWindow(j)?j:j.nodeType===9?j.defaultView||j.parentWindow:false;}var bZ=[];var bU=bZ.slice;var b7=bZ.concat;var bS=bZ.push;var bY=bZ.indexOf;var bQ={};var ch=bQ.toString;var cb=bQ.hasOwnProperty;var b3={};var cf="1.11.1",b8=function(bn,j){return new b8.fn.init(bn,j);},bW=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ce=/^-ms-/,bP=/-([\da-z])/gi,b1=function(bn,j){return j.toUpperCase();};b8.fn=b8.prototype={jquery:cf,constructor:b8,selector:"",length:0,toArray:function(){return bU.call(this);},get:function(j){return j!=null?j<0?this[j+this.length]:this[j]:bU.call(this);},pushStack:function(bn){var j=b8.merge(this.constructor(),bn);j.prevObject=this;j.context=this.context;return j;},each:function(bn,j){return b8.each(this,bn,j);},map:function(j){return this.pushStack(b8.map(this,function(bn,bt){return j.call(bn,bt,bn);}));},slice:function(){return this.pushStack(bU.apply(this,arguments));},first:function(){return this.eq(0);},last:function(){return this.eq(-1);},eq:function(bn){var j=this.length,bt=+bn+(bn<0?j:0);return this.pushStack(bt>=0&&bt<j?[this[bt]]:[]);},end:function(){return this.prevObject||this.constructor(null);},push:bS,sort:bZ.sort,splice:bZ.splice};b8.extend=b8.fn.extend=function(){var di,dl,bt,j,cn,dm,bn=arguments[0]||{},dk=1,dj=arguments.length,ct=false;if(typeof bn==="boolean"){ct=bn;bn=arguments[dk]||{};dk++;}if(typeof bn!=="object"&&!b8.isFunction(bn)){bn={};}if(dk===dj){bn=this;dk--;}for(;dk<dj;dk++){if((cn=arguments[dk])!=null){for(j in cn){di=bn[j];bt=cn[j];if(bn===bt){continue;}if(ct&&bt&&(b8.isPlainObject(bt)||(dl=b8.isArray(bt)))){if(dl){dl=false;dm=di&&b8.isArray(di)?di:[];
}else{dm=di&&b8.isPlainObject(di)?di:{};}bn[j]=b8.extend(ct,dm,bt);}else{if(bt!==undefined){bn[j]=bt;}}}}}return bn;};b8.extend({expando:"jQuery"+(cf+Math.random()).replace(/\D/g,""),isReady:true,error:function(j){throw new Error(j);},noop:function(){},isFunction:function(j){return b8.type(j)==="function";},isArray:Array.isArray||function(j){return b8.type(j)==="array";},isWindow:function(j){return j!=null&&j==j.window;},isNumeric:function(j){return !b8.isArray(j)&&j-parseFloat(j)>=0;},isEmptyObject:function(bn){var j;for(j in bn){return false;}return true;},isPlainObject:function(bn){var j;if(!bn||b8.type(bn)!=="object"||bn.nodeType||b8.isWindow(bn)){return false;}try{if(bn.constructor&&!cb.call(bn,"constructor")&&!cb.call(bn.constructor.prototype,"isPrototypeOf")){return false;}}catch(bt){return false;}if(b3.ownLast){for(j in bn){return cb.call(bn,j);}}for(j in bn){}return j===undefined||cb.call(bn,j);},type:function(j){if(j==null){return j+"";}return typeof j==="object"||typeof j==="function"?bQ[ch.call(j)]||"object":typeof j;},globalEval:function(j){if(j&&b8.trim(j)){(cc.execScript||function(bn){cc["eval"].call(cc,bn);})(j);}},camelCase:function(j){return j.replace(ce,"ms-").replace(bP,b1);},nodeName:function(bn,j){return bn.nodeName&&bn.nodeName.toLowerCase()===j.toLowerCase();},each:function(ct,bn,dj){var cn,j=0,bt=ct.length,di=ca(ct);if(dj){if(di){for(;j<bt;j++){cn=bn.apply(ct[j],dj);if(cn===false){break;}}}else{for(j in ct){cn=bn.apply(ct[j],dj);if(cn===false){break;}}}}else{if(di){for(;j<bt;j++){cn=bn.call(ct[j],j,ct[j]);if(cn===false){break;}}}else{for(j in ct){cn=bn.call(ct[j],j,ct[j]);if(cn===false){break;}}}}return ct;},trim:function(j){return j==null?"":(j+"").replace(bW,"");},makeArray:function(bn,j){var bt=j||[];if(bn!=null){if(ca(Object(bn))){b8.merge(bt,typeof bn==="string"?[bn]:bn);}else{bS.call(bt,bn);}}return bt;},inArray:function(bt,j,cn){var bn;if(j){if(bY){return bY.call(j,bt,cn);}bn=j.length;cn=cn?cn<0?Math.max(0,bn+cn):cn:0;for(;cn<bn;cn++){if(cn in j&&j[cn]===bt){return cn;}}}return -1;},merge:function(cn,bn){var ct=+bn.length,bt=0,j=cn.length;while(bt<ct){cn[j++]=bn[bt++];}if(ct!==ct){while(bn[bt]!==undefined){cn[j++]=bn[bt++];}}cn.length=j;return cn;},grep:function(di,bt,dk){var ct,bn=[],cn=0,dj=di.length,j=!dk;for(;cn<dj;cn++){ct=!bt(di[cn],cn);if(ct!==j){bn.push(di[cn]);}}return bn;},map:function(di,bt,dk){var ct,cn=0,dj=di.length,bn=ca(di),j=[];if(bn){for(;cn<dj;cn++){ct=bt(di[cn],cn,dk);if(ct!=null){j.push(ct);}}}else{for(cn in di){ct=bt(di[cn],cn,dk);if(ct!=null){j.push(ct);}}}return b7.apply([],j);},guid:1,proxy:function(cn,bn){var ct,j,bt;if(typeof bn==="string"){bt=cn[bn];bn=cn;cn=bt;}if(!b8.isFunction(cn)){return undefined;}ct=bU.call(arguments,2);j=function(){return cn.apply(bn||this,ct.concat(bU.call(arguments)));};j.guid=cn.guid=cn.guid||b8.guid++;return j;},now:function(){return +(new Date);},support:b3});b8.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(bn,j){bQ["[object "+j+"]"]=j.toLowerCase();});var bL=function(dM){function ep(eB,eH,j,et){var eI,eG,eA,bt,eD,eC,ez,eE,dt,eF;if((eH?eH.ownerDocument||eH:eh)!==dB){dJ(eH);}eH=eH||dB;j=j||[];if(!eB||typeof eB!=="string"){return j;}if((bt=eH.nodeType)!==1&&bt!==9){return[];}if(du&&!et){if(eI=dU.exec(eB)){if(eA=eI[1]){if(bt===9){eG=eH.getElementById(eA);if(eG&&eG.parentNode){if(eG.id===eA){j.push(eG);return j;}}else{return j;}}else{if(eH.ownerDocument&&(eG=eH.ownerDocument.getElementById(eA))&&dP(eH,eG)&&eG.id===eA){j.push(eG);return j;}}}else{if(eI[2]){d6.apply(j,eH.getElementsByTagName(eB));return j;}else{if((eA=eI[3])&&dD.getElementsByClassName&&eH.getElementsByClassName){d6.apply(j,eH.getElementsByClassName(eA));return j;}}}}if(dD.qsa&&(!dE||!dE.test(eB))){eE=ez=dr;dt=eH;eF=bt===9&&eB;if(bt===1&&eH.nodeName.toLowerCase()!=="object"){eC=dC(eB);if(ez=eH.getAttribute("id")){eE=ez.replace(d2,"\\$&");}else{eH.setAttribute("id",eE);}eE="[id='"+eE+"'] ";eD=eC.length;while(eD--){eC[eD]=eE+eo(eC[eD]);}dt=ey.test(eB)&&cn(eH.parentNode)||eH;eF=eC.join(",");}if(eF){try{d6.apply(j,dt.querySelectorAll(eF));return j;}catch(ct){}finally{if(!ez){eH.removeAttribute("id");}}}}}return dR(eB.replace(dn,"$1"),eH,j,et);}function ds(){function j(dt,ct){if(bt.push(dt+" ")>dy.cacheLength){delete j[bt.shift()];}return j[dt+" "]=ct;}var bt=[];return j;}function dz(j){j[dr]=true;return j;}function ek(bt){var j=dB.createElement("div");try{return !!bt(j);}catch(ct){return false;}finally{if(j.parentNode){j.parentNode.removeChild(j);}j=null;}}function es(ct,bt){var dt=ct.split("|"),j=ct.length;while(j--){dy.attrHandle[dt[j]]=bt;}}function eu(ct,j){var dt=j&&ct,bt=dt&&ct.nodeType===1&&j.nodeType===1&&(~j.sourceIndex||em)-(~ct.sourceIndex||em);if(bt){return bt;}if(dt){while(dt=dt.nextSibling){if(dt===j){return -1;}}}return ct?1:-1;}function dl(j){return function(bt){var ct=bt.nodeName.toLowerCase();return ct==="input"&&bt.type===j;};}function dT(j){return function(bt){var ct=bt.nodeName.toLowerCase();return(ct==="input"||ct==="button")&&bt.type===j;
};}function dj(j){return dz(function(bt){bt=+bt;return dz(function(eA,et){var ct,dt=j([],eA.length,bt),ez=dt.length;while(ez--){if(eA[ct=dt[ez]]){eA[ct]=!(et[ct]=eA[ct]);}}});});}function cn(j){return j&&typeof j.getElementsByTagName!==ea&&j;}function dk(){}function eo(ct){var j=0,dt=ct.length,bt="";for(;j<dt;j++){bt+=ct[j].value;}return bt;}function en(et,bt,ez){var dt=bt.dir,j=ez&&dt==="parentNode",ct=dq++;return bt.first?function(eA,eC,eB){while(eA=eA[dt]){if(eA.nodeType===1||j){return et(eA,eC,eB);}}}:function(eC,eF,eE){var eB,eA,eD=[d3,ct];if(eE){while(eC=eC[dt]){if(eC.nodeType===1||j){if(et(eC,eF,eE)){return true;}}}}else{while(eC=eC[dt]){if(eC.nodeType===1||j){eA=eC[dr]||(eC[dr]={});if((eB=eA[dt])&&eB[0]===d3&&eB[1]===ct){return eD[2]=eB[2];}else{eA[dt]=eD;if(eD[2]=et(eC,eF,eE)){return true;}}}}}};}function eq(j){return j.length>1?function(ct,et,dt){var bt=j.length;while(bt--){if(!j[bt](ct,et,dt)){return false;}}return true;}:j[0];}function dQ(dt,bt,et){var ct=0,j=bt.length;for(;ct<j;ct++){ep(dt,bt[ct],et);}return et;}function bn(ez,eC,ct,j,dt){var eD,bt=[],eB=0,eA=ez.length,et=eC!=null;for(;eB<eA;eB++){if(eD=ez[eB]){if(!ct||ct(eD,j,dt)){bt.push(eD);if(et){eC.push(eB);}}}}return bt;}function di(et,bt,ez,dt,j,ct){if(dt&&!dt[dr]){dt=di(dt);}if(j&&!j[dr]){j=di(j,ct);}return dz(function(eM,eB,eL,eJ){var eG,eD,eI,eE=[],eA=[],eH=eB.length,eK=eM||dQ(bt||"*",eL.nodeType?[eL]:eL,[]),eC=et&&(eM||!bt)?bn(eK,eE,et,eL,eJ):eK,eF=ez?j||(eM?et:eH||dt)?[]:eB:eC;if(ez){ez(eC,eF,eL,eJ);}if(dt){eG=bn(eF,eA);dt(eG,[],eL,eJ);eD=eG.length;while(eD--){if(eI=eG[eD]){eF[eA[eD]]=!(eC[eA[eD]]=eI);}}}if(eM){if(j||et){if(j){eG=[];eD=eF.length;while(eD--){if(eI=eF[eD]){eG.push(eC[eD]=eI);}}j(null,eF=[],eG,eJ);}eD=eF.length;while(eD--){if((eI=eF[eD])&&(eG=j?el.call(eM,eI):eE[eD])>-1){eM[eG]=!(eB[eG]=eI);}}}}else{eF=bn(eF===eB?eF.splice(eH,eF.length):eF);if(j){j(null,eB,eF,eJ);}else{d6.apply(eB,eF);}}});}function ex(ez){var eD,bt,dt,eE=ez.length,j=dy.relative[ez[0].type],eC=j||dy.relative[" "],eB=j?1:0,ct=en(function(eF){return eF===eD;},eC,true),eA=en(function(eF){return el.call(eD,eF)>-1;},eC,true),et=[function(eG,eH,eF){return !j&&(eF||eH!==dL)||((eD=eH).nodeType?ct(eG,eH,eF):eA(eG,eH,eF));}];for(;eB<eE;eB++){if(bt=dy.relative[ez[eB].type]){et=[en(eq(et),bt)];}else{bt=dy.filter[ez[eB].type].apply(null,ez[eB].matches);if(bt[dr]){dt=++eB;for(;dt<eE;dt++){if(dy.relative[ez[dt].type]){break;}}return di(eB>1&&eq(et),eB>1&&eo(ez.slice(0,eB-1).concat({value:ez[eB-2].type===" "?"*":""})).replace(dn,"$1"),bt,eB<dt&&ex(ez.slice(eB,dt)),dt<eE&&ex(ez=ez.slice(dt)),dt<eE&&eo(ez));}et.push(bt);}}return eq(et);}function ew(dt,bt){var et=bt.length>0,j=dt.length>0,ct=function(eO,ez,eM,eJ,eB){var eF,eC,eE,eL=0,eA="0",eD=eO&&[],eH=[],eG=dL,eK=eO||j&&dy.find["TAG"]("*",eB),eN=d3+=eG==null?1:Math.random()||0.1,eI=eK.length;if(eB){dL=ez!==dB&&ez;}for(;eA!==eI&&(eF=eK[eA])!=null;eA++){if(j&&eF){eC=0;while(eE=dt[eC++]){if(eE(eF,ez,eM)){eJ.push(eF);break;}}if(eB){d3=eN;}}if(et){if(eF=!eE&&eF){eL--;}if(eO){eD.push(eF);}}}eL+=eA;if(et&&eA!==eL){eC=0;while(eE=bt[eC++]){eE(eD,eH,ez,eM);}if(eO){if(eL>0){while(eA--){if(!(eD[eA]||eH[eA])){eH[eA]=dS.call(eJ);}}}eH=bn(eH);}d6.apply(eJ,eH);if(eB&&!eO&&eH.length>0&&eL+bt.length>1){ep.uniqueSort(eJ);}}if(eB){d3=eN;dL=eG;}return eD;};return et?dz(ct):ct;}var dw,dD,dy,dI,dx,dC,dv,dR,dL,dF,dO,dJ,dB,dN,du,dE,dK,dp,dP,dr="sizzle"+-(new Date),eh=dM.document,d3=0,dq=0,d1=ds(),d8=ds(),ej=ds(),dG=function(bt,j){if(bt===j){dO=true;}return 0;},ea=typeof undefined,em=1<<31,d7={}.hasOwnProperty,d9=[],dS=d9.pop,ei=d9.push,d6=d9.push,ee=d9.slice,el=d9.indexOf||function(bt){var j=0,ct=this.length;for(;j<ct;j++){if(this[j]===bt){return j;}}return -1;},dH="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",eg="[\\x20\\t\\r\\n\\f]",ed="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",dA=ed.replace("w","w#"),d4="\\["+eg+"*("+ed+")(?:"+eg+"*([*^$|!~]?=)"+eg+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+dA+"))|)"+eg+"*\\]",d0=":("+ed+")(?:\\(("+"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+"((?:\\\\.|[^\\\\()[\\]]|"+d4+")*)|"+".*"+")\\)|)",dn=new RegExp("^"+eg+"+|((?:^|[^\\\\])(?:\\\\.)*)"+eg+"+$","g"),dY=new RegExp("^"+eg+"*,"+eg+"*"),dX=new RegExp("^"+eg+"*([>+~]|"+eg+")"+eg+"*"),dZ=new RegExp("="+eg+"*([^\\]'\"]*?)"+eg+"*\\]","g"),er=new RegExp(d0),ec=new RegExp("^"+dA+"$"),eb={ID:new RegExp("^#("+ed+")"),CLASS:new RegExp("^\\.("+ed+")"),TAG:new RegExp("^("+ed.replace("w","w*")+")"),ATTR:new RegExp("^"+d4),PSEUDO:new RegExp("^"+d0),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+eg+"*(even|odd|(([+-]|)(\\d*)n|)"+eg+"*(?:([+-]|)"+eg+"*(\\d+)|))"+eg+"*\\)|)","i"),bool:new RegExp("^(?:"+dH+")$","i"),needsContext:new RegExp("^"+eg+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+eg+"*((?:-\\d)?\\d*)"+eg+"*\\)|)(?=[^-]|$)","i")},d5=/^(?:input|select|textarea|button)$/i,ef=/^h\d$/i,dV=/^[^{]+\{\s*\[native \w/,dU=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ey=/[+~]/,d2=/'|\\/g,dW=new RegExp("\\\\([\\da-f]{1,6}"+eg+"?|("+eg+")|.)","ig"),ev=function(ct,j,dt){var bt="0x"+j-65536;
return bt!==bt||dt?j:bt<0?String.fromCharCode(bt+65536):String.fromCharCode(bt>>10|55296,bt&1023|56320);};try{d6.apply(d9=ee.call(eh.childNodes),eh.childNodes);d9[eh.childNodes.length].nodeType;}catch(dm){d6={apply:d9.length?function(bt,j){ei.apply(bt,ee.call(j));}:function(ct,j){var dt=ct.length,bt=0;while(ct[dt++]=j[bt++]){}ct.length=dt-1;}};}dD=ep.support={};dx=ep.isXML=function(bt){var j=bt&&(bt.ownerDocument||bt).documentElement;return j?j.nodeName!=="HTML":false;};dJ=ep.setDocument=function(ct){var bt,j=ct?ct.ownerDocument||ct:eh,dt=j.defaultView;if(j===dB||j.nodeType!==9||!j.documentElement){return dB;}dB=j;dN=j.documentElement;du=!dx(j);if(dt&&dt!==dt.top){if(dt.addEventListener){dt.addEventListener("unload",function(){dJ();},false);}else{if(dt.attachEvent){dt.attachEvent("onunload",function(){dJ();});}}}dD.attributes=ek(function(et){et.className="i";return !et.getAttribute("className");});dD.getElementsByTagName=ek(function(et){et.appendChild(j.createComment(""));return !et.getElementsByTagName("*").length;});dD.getElementsByClassName=dV.test(j.getElementsByClassName)&&ek(function(et){et.innerHTML="<div class='a'></div><div class='a i'></div>";et.firstChild.className="i";return et.getElementsByClassName("i").length===2;});dD.getById=ek(function(et){dN.appendChild(et).id=dr;return !j.getElementsByName||!j.getElementsByName(dr).length;});if(dD.getById){dy.find["ID"]=function(ez,et){if(typeof et.getElementById!==ea&&du){var eA=et.getElementById(ez);return eA&&eA.parentNode?[eA]:[];}};dy.filter["ID"]=function(ez){var et=ez.replace(dW,ev);return function(eA){return eA.getAttribute("id")===et;};};}else{delete dy.find["ID"];dy.filter["ID"]=function(ez){var et=ez.replace(dW,ev);return function(eA){var eB=typeof eA.getAttributeNode!==ea&&eA.getAttributeNode("id");return eB&&eB.value===et;};};}dy.find["TAG"]=dD.getElementsByTagName?function(ez,et){if(typeof et.getElementsByTagName!==ea){return et.getElementsByTagName(ez);}}:function(eC,ez){var eD,eB=[],et=0,eA=ez.getElementsByTagName(eC);if(eC==="*"){while(eD=eA[et++]){if(eD.nodeType===1){eB.push(eD);}}return eB;}return eA;};dy.find["CLASS"]=dD.getElementsByClassName&&function(ez,et){if(typeof et.getElementsByClassName!==ea&&du){return et.getElementsByClassName(ez);}};dK=[];dE=[];if(dD.qsa=dV.test(j.querySelectorAll)){ek(function(et){et.innerHTML="<select msallowclip=''><option selected=''></option></select>";if(et.querySelectorAll("[msallowclip^='']").length){dE.push("[*^$]="+eg+"*(?:''|\"\")");}if(!et.querySelectorAll("[selected]").length){dE.push("\\["+eg+"*(?:value|"+dH+")");}if(!et.querySelectorAll(":checked").length){dE.push(":checked");}});ek(function(ez){var et=j.createElement("input");et.setAttribute("type","hidden");ez.appendChild(et).setAttribute("name","D");if(ez.querySelectorAll("[name=d]").length){dE.push("name"+eg+"*[*^$|!~]?=");}if(!ez.querySelectorAll(":enabled").length){dE.push(":enabled",":disabled");}ez.querySelectorAll("*,:x");dE.push(",.*:");});}if(dD.matchesSelector=dV.test(dp=dN.matches||dN.webkitMatchesSelector||dN.mozMatchesSelector||dN.oMatchesSelector||dN.msMatchesSelector)){ek(function(et){dD.disconnectedMatch=dp.call(et,"div");dp.call(et,"[s!='']:x");dK.push("!=",d0);});}dE=dE.length&&new RegExp(dE.join("|"));dK=dK.length&&new RegExp(dK.join("|"));bt=dV.test(dN.compareDocumentPosition);dP=bt||dV.test(dN.contains)?function(eA,et){var eB=eA.nodeType===9?eA.documentElement:eA,ez=et&&et.parentNode;return eA===ez||!!(ez&&ez.nodeType===1&&(eB.contains?eB.contains(ez):eA.compareDocumentPosition&&eA.compareDocumentPosition(ez)&16));}:function(ez,et){if(et){while(et=et.parentNode){if(et===ez){return true;}}}return false;};dG=bt?function(eA,et){if(eA===et){dO=true;return 0;}var ez=!eA.compareDocumentPosition-!et.compareDocumentPosition;if(ez){return ez;}ez=(eA.ownerDocument||eA)===(et.ownerDocument||et)?eA.compareDocumentPosition(et):1;if(ez&1||!dD.sortDetached&&et.compareDocumentPosition(eA)===ez){if(eA===j||eA.ownerDocument===eh&&dP(eh,eA)){return -1;}if(et===j||et.ownerDocument===eh&&dP(eh,et)){return 1;}return dF?el.call(dF,eA)-el.call(dF,et):0;}return ez&4?-1:1;}:function(eD,eA){if(eD===eA){dO=true;return 0;}var eF,eC=0,eB=eD.parentNode,eE=eA.parentNode,ez=[eD],et=[eA];if(!eB||!eE){return eD===j?-1:eA===j?1:eB?-1:eE?1:dF?el.call(dF,eD)-el.call(dF,eA):0;}else{if(eB===eE){return eu(eD,eA);}}eF=eD;while(eF=eF.parentNode){ez.unshift(eF);}eF=eA;while(eF=eF.parentNode){et.unshift(eF);}while(ez[eC]===et[eC]){eC++;}return eC?eu(ez[eC],et[eC]):ez[eC]===eh?-1:et[eC]===eh?1:0;};return j;};ep.matches=function(bt,j){return ep(bt,null,null,j);};ep.matchesSelector=function(dt,bt){if((dt.ownerDocument||dt)!==dB){dJ(dt);}bt=bt.replace(dZ,"='$1']");if(dD.matchesSelector&&du&&(!dK||!dK.test(bt))&&(!dE||!dE.test(bt))){try{var ct=dp.call(dt,bt);if(ct||dD.disconnectedMatch||dt.document&&dt.document.nodeType!==11){return ct;}}catch(j){}}return ep(bt,dB,null,[dt]).length>0;};ep.contains=function(bt,j){if((bt.ownerDocument||bt)!==dB){dJ(bt);}return dP(bt,j);};
ep.attr=function(dt,bt){if((dt.ownerDocument||dt)!==dB){dJ(dt);}var j=dy.attrHandle[bt.toLowerCase()],ct=j&&d7.call(dy.attrHandle,bt.toLowerCase())?j(dt,bt,!du):undefined;return ct!==undefined?ct:dD.attributes||!du?dt.getAttribute(bt):(ct=dt.getAttributeNode(bt))&&ct.specified?ct.value:null;};ep.error=function(j){throw new Error("Syntax error, unrecognized expression: "+j);};ep.uniqueSort=function(et){var bt,dt=[],j=0,ct=0;dO=!dD.detectDuplicates;dF=!dD.sortStable&&et.slice(0);et.sort(dG);if(dO){while(bt=et[ct++]){if(bt===et[ct]){j=dt.push(ct);}}while(j--){et.splice(dt[j],1);}}dF=null;return et;};dI=ep.getText=function(dt){var j,et="",ct=0,bt=dt.nodeType;if(!bt){while(j=dt[ct++]){et+=dI(j);}}else{if(bt===1||bt===9||bt===11){if(typeof dt.textContent==="string"){return dt.textContent;}else{for(dt=dt.firstChild;dt;dt=dt.nextSibling){et+=dI(dt);}}}else{if(bt===3||bt===4){return dt.nodeValue;}}}return et;};dy=ep.selectors={cacheLength:50,createPseudo:dz,match:eb,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(j){j[1]=j[1].replace(dW,ev);j[3]=(j[3]||j[4]||j[5]||"").replace(dW,ev);if(j[2]==="~="){j[3]=" "+j[3]+" ";}return j.slice(0,4);},CHILD:function(j){j[1]=j[1].toLowerCase();if(j[1].slice(0,3)==="nth"){if(!j[3]){ep.error(j[0]);}j[4]=+(j[4]?j[5]+(j[6]||1):2*(j[3]==="even"||j[3]==="odd"));j[5]=+(j[7]+j[8]||j[3]==="odd");}else{if(j[3]){ep.error(j[0]);}}return j;},PSEUDO:function(bt){var j,ct=!bt[6]&&bt[2];if(eb["CHILD"].test(bt[0])){return null;}if(bt[3]){bt[2]=bt[4]||bt[5]||"";}else{if(ct&&er.test(ct)&&(j=dC(ct,true))&&(j=ct.indexOf(")",ct.length-j)-ct.length)){bt[0]=bt[0].slice(0,j);bt[2]=ct.slice(0,j);}}return bt.slice(0,3);}},filter:{TAG:function(bt){var j=bt.replace(dW,ev).toLowerCase();return bt==="*"?function(){return true;}:function(ct){return ct.nodeName&&ct.nodeName.toLowerCase()===j;};},CLASS:function(bt){var j=d1[bt+" "];return j||(j=new RegExp("(^|"+eg+")"+bt+"("+eg+"|$)"))&&d1(bt,function(ct){return j.test(typeof ct.className==="string"&&ct.className||typeof ct.getAttribute!==ea&&ct.getAttribute("class")||"");});},ATTR:function(bt,j,ct){return function(et){var dt=ep.attr(et,bt);if(dt==null){return j==="!=";}if(!j){return true;}dt+="";return j==="="?dt===ct:j==="!="?dt!==ct:j==="^="?ct&&dt.indexOf(ct)===0:j==="*="?ct&&dt.indexOf(ct)>-1:j==="$="?ct&&dt.slice(-ct.length)===ct:j==="~="?(" "+dt+" ").indexOf(ct)>-1:j==="|="?dt===ct||dt.slice(0,ct.length+1)===ct+"-":false;};},CHILD:function(ez,ct,eB,et,bt){var dt=ez.slice(0,3)!=="nth",eA=ez.slice(-4)!=="last",j=ct==="of-type";return et===1&&bt===0?function(eC){return !!eC.parentNode;}:function(eO,eD,eM){var eI,eF,eK,eG,eC,eJ,eN=dt!==eA?"nextSibling":"previousSibling",eE=eO.parentNode,eH=j&&eO.nodeName.toLowerCase(),eL=!eM&&!j;if(eE){if(dt){while(eN){eK=eO;while(eK=eK[eN]){if(j?eK.nodeName.toLowerCase()===eH:eK.nodeType===1){return false;}}eJ=eN=ez==="only"&&!eJ&&"nextSibling";}return true;}eJ=[eA?eE.firstChild:eE.lastChild];if(eA&&eL){eF=eE[dr]||(eE[dr]={});eI=eF[ez]||[];eC=eI[0]===d3&&eI[1];eG=eI[0]===d3&&eI[2];eK=eC&&eE.childNodes[eC];while(eK=++eC&&eK&&eK[eN]||(eG=eC=0)||eJ.pop()){if(eK.nodeType===1&&++eG&&eK===eO){eF[ez]=[d3,eC,eG];break;}}}else{if(eL&&(eI=(eO[dr]||(eO[dr]={}))[ez])&&eI[0]===d3){eG=eI[1];}else{while(eK=++eC&&eK&&eK[eN]||(eG=eC=0)||eJ.pop()){if((j?eK.nodeName.toLowerCase()===eH:eK.nodeType===1)&&++eG){if(eL){(eK[dr]||(eK[dr]={}))[ez]=[d3,eG];}if(eK===eO){break;}}}}}eG-=bt;return eG===et||eG%et===0&&eG/et>=0;}};},PSEUDO:function(ct,bt){var dt,j=dy.pseudos[ct]||dy.setFilters[ct.toLowerCase()]||ep.error("unsupported pseudo: "+ct);if(j[dr]){return j(bt);}if(j.length>1){dt=[ct,ct,"",bt];return dy.setFilters.hasOwnProperty(ct.toLowerCase())?dz(function(eA,eC){var ez,et=j(eA,bt),eB=et.length;while(eB--){ez=el.call(eA,et[eB]);eA[ez]=!(eC[ez]=et[eB]);}}):function(et){return j(et,0,dt);};}return j;}},pseudos:{not:dz(function(ct){var j=[],dt=[],bt=dv(ct.replace(dn,"$1"));return bt[dr]?dz(function(eC,eA,eE,ez){var eB,eD=bt(eC,null,ez,[]),et=eC.length;while(et--){if(eB=eD[et]){eC[et]=!(eA[et]=eB);}}}):function(eA,et,ez){j[0]=eA;bt(j,null,ez,dt);return !dt.pop();};}),has:dz(function(j){return function(bt){return ep(j,bt).length>0;};}),contains:dz(function(j){return function(bt){return(bt.textContent||bt.innerText||dI(bt)).indexOf(j)>-1;};}),lang:dz(function(j){if(!ec.test(j||"")){ep.error("unsupported lang: "+j);}j=j.replace(dW,ev).toLowerCase();return function(bt){var ct;do{if(ct=du?bt.lang:bt.getAttribute("xml:lang")||bt.getAttribute("lang")){ct=ct.toLowerCase();return ct===j||ct.indexOf(j+"-")===0;}}while((bt=bt.parentNode)&&bt.nodeType===1);return false;};}),target:function(j){var bt=dM.location&&dM.location.hash;return bt&&bt.slice(1)===j.id;},root:function(j){return j===dN;},focus:function(j){return j===dB.activeElement&&(!dB.hasFocus||dB.hasFocus())&&!!(j.type||j.href||~j.tabIndex);},enabled:function(j){return j.disabled===false;
},disabled:function(j){return j.disabled===true;},checked:function(bt){var j=bt.nodeName.toLowerCase();return j==="input"&&!!bt.checked||j==="option"&&!!bt.selected;},selected:function(j){if(j.parentNode){j.parentNode.selectedIndex;}return j.selected===true;},empty:function(j){for(j=j.firstChild;j;j=j.nextSibling){if(j.nodeType<6){return false;}}return true;},parent:function(j){return !dy.pseudos["empty"](j);},header:function(j){return ef.test(j.nodeName);},input:function(j){return d5.test(j.nodeName);},button:function(bt){var j=bt.nodeName.toLowerCase();return j==="input"&&bt.type==="button"||j==="button";},text:function(bt){var j;return bt.nodeName.toLowerCase()==="input"&&bt.type==="text"&&((j=bt.getAttribute("type"))==null||j.toLowerCase()==="text");},first:dj(function(){return[0];}),last:dj(function(bt,j){return[j-1];}),eq:dj(function(bt,j,ct){return[ct<0?ct+j:ct];}),even:dj(function(bt,j){var ct=0;for(;ct<j;ct+=2){bt.push(ct);}return bt;}),odd:dj(function(bt,j){var ct=1;for(;ct<j;ct+=2){bt.push(ct);}return bt;}),lt:dj(function(ct,j,dt){var bt=dt<0?dt+j:dt;for(;--bt>=0;){ct.push(bt);}return ct;}),gt:dj(function(ct,j,dt){var bt=dt<0?dt+j:dt;for(;++bt<j;){ct.push(bt);}return ct;})}};dy.pseudos["nth"]=dy.pseudos["eq"];for(dw in {radio:true,checkbox:true,file:true,password:true,image:true}){dy.pseudos[dw]=dl(dw);}for(dw in {submit:true,reset:true}){dy.pseudos[dw]=dT(dw);}dk.prototype=dy.filters=dy.pseudos;dy.setFilters=new dk;dC=ep.tokenize=function(ez,eC){var bt,dt,eD,j,eB,eA,et,ct=d8[ez+" "];if(ct){return eC?0:ct.slice(0);}eB=ez;eA=[];et=dy.preFilter;while(eB){if(!bt||(dt=dY.exec(eB))){if(dt){eB=eB.slice(dt[0].length)||eB;}eA.push(eD=[]);}bt=false;if(dt=dX.exec(eB)){bt=dt.shift();eD.push({value:bt,type:dt[0].replace(dn," ")});eB=eB.slice(bt.length);}for(j in dy.filter){if((dt=eb[j].exec(eB))&&(!et[j]||(dt=et[j](dt)))){bt=dt.shift();eD.push({value:bt,type:j,matches:dt});eB=eB.slice(bt.length);}}if(!bt){break;}}return eC?eB.length:eB?ep.error(ez):d8(ez,eA).slice(0);};dv=ep.compile=function(et,bt){var ez,dt=[],j=[],ct=ej[et+" "];if(!ct){if(!bt){bt=dC(et);}ez=bt.length;while(ez--){ct=ex(bt[ez]);if(ct[dr]){dt.push(ct);}else{j.push(ct);}}ct=ej(et,ew(j,dt));ct.selector=et;}return ct;};dR=ep.select=function(ez,eD,ct,eE){var eC,et,bt,eB,dt,j=typeof ez==="function"&&ez,eA=!eE&&dC(ez=j.selector||ez);ct=ct||[];if(eA.length===1){et=eA[0]=eA[0].slice(0);if(et.length>2&&(bt=et[0]).type==="ID"&&dD.getById&&eD.nodeType===9&&du&&dy.relative[et[1].type]){eD=(dy.find["ID"](bt.matches[0].replace(dW,ev),eD)||[])[0];if(!eD){return ct;}else{if(j){eD=eD.parentNode;}}ez=ez.slice(et.shift().value.length);}eC=eb["needsContext"].test(ez)?0:et.length;while(eC--){bt=et[eC];if(dy.relative[eB=bt.type]){break;}if(dt=dy.find[eB]){if(eE=dt(bt.matches[0].replace(dW,ev),ey.test(et[0].type)&&cn(eD.parentNode)||eD)){et.splice(eC,1);ez=eE.length&&eo(et);if(!ez){d6.apply(ct,eE);return ct;}break;}}}}(j||dv(ez,eA))(eE,eD,!du,ct,ey.test(ez)&&cn(eD.parentNode)||eD);return ct;};dD.sortStable=dr.split("").sort(dG).join("")===dr;dD.detectDuplicates=!!dO;dJ();dD.sortDetached=ek(function(j){return j.compareDocumentPosition(dB.createElement("div"))&1;});if(!ek(function(j){j.innerHTML="<a href='#'></a>";return j.firstChild.getAttribute("href")==="#";})){es("type|href|height|width",function(bt,j,ct){if(!ct){return bt.getAttribute(j,j.toLowerCase()==="type"?1:2);}});}if(!dD.attributes||!ek(function(j){j.innerHTML="<input/>";j.firstChild.setAttribute("value","");return j.firstChild.getAttribute("value")==="";})){es("value",function(bt,j,ct){if(!ct&&bt.nodeName.toLowerCase()==="input"){return bt.defaultValue;}});}if(!ek(function(j){return j.getAttribute("disabled")==null;})){es(dH,function(ct,j,dt){var bt;if(!dt){return ct[j]===true?j.toLowerCase():(bt=ct.getAttributeNode(j))&&bt.specified?bt.value:null;}});}return ep;}(cc);b8.find=bL;b8.expr=bL.selectors;b8.expr[":"]=b8.expr.pseudos;b8.unique=bL.uniqueSort;b8.text=bL.getText;b8.isXMLDoc=bL.isXML;b8.contains=bL.contains;var cg=b8.expr.match.needsContext;var bO=/^<(\w+)\s*\/?>(?:<\/\1>|)$/;var cR=/^.[^:#\[\.,]*$/;b8.filter=function(bt,j,cn){var bn=j[0];if(cn){bt=":not("+bt+")";}return j.length===1&&bn.nodeType===1?b8.find.matchesSelector(bn,bt)?[bn]:[]:b8.find.matches(bt,b8.grep(j,function(ct){return ct.nodeType===1;}));};b8.fn.extend({find:function(cn){var bn,ct=[],bt=this,j=bt.length;if(typeof cn!=="string"){return this.pushStack(b8(cn).filter(function(){for(bn=0;bn<j;bn++){if(b8.contains(bt[bn],this)){return true;}}}));}for(bn=0;bn<j;bn++){b8.find(cn,bt[bn],ct);}ct=this.pushStack(j>1?b8.unique(ct):ct);ct.selector=this.selector?this.selector+" "+cn:cn;return ct;},filter:function(j){return this.pushStack(cv(this,j||[],false));},not:function(j){return this.pushStack(cv(this,j||[],true));},is:function(j){return !!cv(this,typeof j==="string"&&cg.test(j)?b8(j):j||[],false).length;}});var bN,cs=cc.document,cD=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,cU=b8.fn.init=function(bt,j){var cn,bn;if(!bt){return this;}if(typeof bt==="string"){if(bt.charAt(0)==="<"&&bt.charAt(bt.length-1)===">"&&bt.length>=3){cn=[null,bt,null];
}else{cn=cD.exec(bt);}if(cn&&(cn[1]||!j)){if(cn[1]){j=j instanceof b8?j[0]:j;b8.merge(this,b8.parseHTML(cn[1],j&&j.nodeType?j.ownerDocument||j:cs,true));if(bO.test(cn[1])&&b8.isPlainObject(j)){for(cn in j){if(b8.isFunction(this[cn])){this[cn](j[cn]);}else{this.attr(cn,j[cn]);}}}return this;}else{bn=cs.getElementById(cn[2]);if(bn&&bn.parentNode){if(bn.id!==cn[2]){return bN.find(bt);}this.length=1;this[0]=bn;}this.context=cs;this.selector=bt;return this;}}else{if(!j||j.jquery){return(j||bN).find(bt);}else{return this.constructor(j).find(bt);}}}else{if(bt.nodeType){this.context=this[0]=bt;this.length=1;return this;}else{if(b8.isFunction(bt)){return typeof bN.ready!=="undefined"?bN.ready(bt):bt(b8);}}}if(bt.selector!==undefined){this.selector=bt.selector;this.context=bt.context;}return b8.makeArray(bt,this);};cU.prototype=b8.fn;bN=b8(cs);var b4=/^(?:parents|prev(?:Until|All))/,cH={children:true,contents:true,next:true,prev:true};b8.extend({dir:function(cn,bn,ct){var bt=[],j=cn[bn];while(j&&j.nodeType!==9&&(ct===undefined||j.nodeType!==1||!b8(j).is(ct))){if(j.nodeType===1){bt.push(j);}j=j[bn];}return bt;},sibling:function(bn,j){var bt=[];for(;bn;bn=bn.nextSibling){if(bn.nodeType===1&&bn!==j){bt.push(bn);}}return bt;}});b8.fn.extend({has:function(bt){var j,cn=b8(bt,this),bn=cn.length;return this.filter(function(){for(j=0;j<bn;j++){if(b8.contains(this,cn[j])){return true;}}});},closest:function(ct,bn){var dj,cn=0,j=this.length,bt=[],di=cg.test(ct)||typeof ct!=="string"?b8(ct,bn||this.context):0;for(;cn<j;cn++){for(dj=this[cn];dj&&dj!==bn;dj=dj.parentNode){if(dj.nodeType<11&&(di?di.index(dj)>-1:dj.nodeType===1&&b8.find.matchesSelector(dj,ct))){bt.push(dj);break;}}}return this.pushStack(bt.length>1?b8.unique(bt):bt);},index:function(j){if(!j){return this[0]&&this[0].parentNode?this.first().prevAll().length:-1;}if(typeof j==="string"){return b8.inArray(this[0],b8(j));}return b8.inArray(j.jquery?j[0]:j,this);},add:function(bn,j){return this.pushStack(b8.unique(b8.merge(this.get(),b8(bn,j))));},addBack:function(j){return this.add(j==null?this.prevObject:this.prevObject.filter(j));}});b8.each({parent:function(bn){var j=bn.parentNode;return j&&j.nodeType!==11?j:null;},parents:function(j){return b8.dir(j,"parentNode");},parentsUntil:function(bn,j,bt){return b8.dir(bn,"parentNode",bt);},next:function(j){return cW(j,"nextSibling");},prev:function(j){return cW(j,"previousSibling");},nextAll:function(j){return b8.dir(j,"nextSibling");},prevAll:function(j){return b8.dir(j,"previousSibling");},nextUntil:function(bn,j,bt){return b8.dir(bn,"nextSibling",bt);},prevUntil:function(bn,j,bt){return b8.dir(bn,"previousSibling",bt);},siblings:function(j){return b8.sibling((j.parentNode||{}).firstChild,j);},children:function(j){return b8.sibling(j.firstChild);},contents:function(j){return b8.nodeName(j,"iframe")?j.contentDocument||j.contentWindow.document:b8.merge([],j.childNodes);}},function(bn,j){b8.fn[bn]=function(ct,cn){var bt=b8.map(this,j,ct);if(bn.slice(-5)!=="Until"){cn=ct;}if(cn&&typeof cn==="string"){bt=b8.filter(cn,bt);}if(this.length>1){if(!cH[bn]){bt=b8.unique(bt);}if(b4.test(bn)){bt=bt.reverse();}}return this.pushStack(bt);};});var cB=/\S+/g;var cG={};b8.Callbacks=function(dj){dj=typeof dj==="string"?cG[dj]||cj(dj):b8.extend({},dj);var dm,bt,j,ct,dn,bn,dl=[],dk=!dj.once&&[],di=function(dp){bt=dj.memory&&dp;j=true;dn=bn||0;bn=0;ct=dl.length;dm=true;for(;dl&&dn<ct;dn++){if(dl[dn].apply(dp[0],dp[1])===false&&dj.stopOnFalse){bt=false;break;}}dm=false;if(dl){if(dk){if(dk.length){di(dk.shift());}}else{if(bt){dl=[];}else{cn.disable();}}}},cn={add:function(){if(dl){var dq=dl.length;(function dp(dr){b8.each(dr,function(ds,du){var dt=b8.type(du);if(dt==="function"){if(!dj.unique||!cn.has(du)){dl.push(du);}}else{if(du&&du.length&&dt!=="string"){dp(du);}}});})(arguments);if(dm){ct=dl.length;}else{if(bt){bn=dq;di(bt);}}}return this;},remove:function(){if(dl){b8.each(arguments,function(dq,dr){var dp;while((dp=b8.inArray(dr,dl,dp))>-1){dl.splice(dp,1);if(dm){if(dp<=ct){ct--;}if(dp<=dn){dn--;}}}});}return this;},has:function(dp){return dp?b8.inArray(dp,dl)>-1:!!(dl&&dl.length);},empty:function(){dl=[];ct=0;return this;},disable:function(){dl=dk=bt=undefined;return this;},disabled:function(){return !dl;},lock:function(){dk=undefined;if(!bt){cn.disable();}return this;},locked:function(){return !dk;},fireWith:function(dp,dq){if(dl&&(!j||dk)){dq=dq||[];dq=[dp,dq.slice?dq.slice():dq];if(dm){dk.push(dq);}else{di(dq);}}return this;},fire:function(){cn.fireWith(this,arguments);return this;},fired:function(){return !!j;}};return cn;};b8.extend({Deferred:function(cn){var bn=[["resolve","done",b8.Callbacks("once memory"),"resolved"],["reject","fail",b8.Callbacks("once memory"),"rejected"],["notify","progress",b8.Callbacks("memory")]],ct="pending",bt={state:function(){return ct;},always:function(){j.done(arguments).fail(arguments);return this;},then:function(){var di=arguments;return b8.Deferred(function(dj){b8.each(bn,function(dk,dl){var dm=b8.isFunction(di[dk])&&di[dk];
j[dl[1]](function(){var dn=dm&&dm.apply(this,arguments);if(dn&&b8.isFunction(dn.promise)){dn.promise().done(dj.resolve).fail(dj.reject).progress(dj.notify);}else{dj[dl[0]+"With"](this===bt?dj.promise():this,dm?[dn]:arguments);}});});di=null;}).promise();},promise:function(di){return di!=null?b8.extend(di,bt):bt;}},j={};bt.pipe=bt.then;b8.each(bn,function(dk,dj){var dl=dj[2],di=dj[3];bt[dj[1]]=dl.add;if(di){dl.add(function(){ct=di;},bn[dk^1][2].disable,bn[2][2].lock);}j[dj[0]]=function(){j[dj[0]+"With"](this===j?bt:this,arguments);return this;};j[dj[0]+"With"]=dl.fireWith;});bt.promise(j);if(cn){cn.call(j,j);}return j;},when:function(di){var dl=0,bn=bU.call(arguments),cn=bn.length,dm=cn!==1||di&&b8.isFunction(di.promise)?cn:0,j=dm===1?di:b8.Deferred(),dk=function(dp,dn,dq){return function(dr){dn[dp]=this;dq[dp]=arguments.length>1?bU.call(arguments):dr;if(dq===dj){j.notifyWith(dn,dq);}else{if(!--dm){j.resolveWith(dn,dq);}}};},dj,ct,bt;if(cn>1){dj=new Array(cn);ct=new Array(cn);bt=new Array(cn);for(;dl<cn;dl++){if(bn[dl]&&b8.isFunction(bn[dl].promise)){bn[dl].promise().done(dk(dl,bt,bn)).fail(j.reject).progress(dk(dl,ct,dj));}else{--dm;}}}if(!dm){j.resolveWith(bt,bn);}return j.promise();}});var cS;b8.fn.ready=function(j){b8.ready.promise().done(j);return this;};b8.extend({isReady:false,readyWait:1,holdReady:function(j){if(j){b8.readyWait++;}else{b8.ready(true);}},ready:function(j){if(j===true?--b8.readyWait:b8.isReady){return;}if(!cs.body){return setTimeout(b8.ready);}b8.isReady=true;if(j!==true&&--b8.readyWait>0){return;}cS.resolveWith(cs,[b8]);if(b8.fn.triggerHandler){b8(cs).triggerHandler("ready");b8(cs).off("ready");}}});b8.ready.promise=function(bn){if(!cS){cS=b8.Deferred();if(cs.readyState==="complete"){setTimeout(b8.ready);}else{if(cs.addEventListener){cs.addEventListener("DOMContentLoaded",cN,false);cc.addEventListener("load",cN,false);}else{cs.attachEvent("onreadystatechange",cN);cc.attachEvent("onload",cN);var cn=false;try{cn=cc.frameElement==null&&cs.documentElement;}catch(bt){}if(cn&&cn.doScroll){(function j(){if(!b8.isReady){try{cn.doScroll("left");}catch(ct){return setTimeout(j,50);}cA();b8.ready();}})();}}}}return cS.promise(bn);};var cV=typeof undefined;var b5;for(b5 in b8(b3)){break;}b3.ownLast=b5!=="0";b3.inlineBlockNeedsLayout=false;b8(function(){var bt,j,cn,bn;cn=cs.getElementsByTagName("body")[0];if(!cn||!cn.style){return;}j=cs.createElement("div");bn=cs.createElement("div");bn.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px";cn.appendChild(bn).appendChild(j);if(typeof j.style.zoom!==cV){j.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1";b3.inlineBlockNeedsLayout=bt=j.offsetWidth===3;if(bt){cn.style.zoom=1;}}cn.removeChild(bn);});(function(){var bn=cs.createElement("div");if(b3.deleteExpando==null){b3.deleteExpando=true;try{delete bn.test;}catch(j){b3.deleteExpando=false;}}bn=null;})();b8.acceptData=function(bn){var j=b8.noData[(bn.nodeName+" ").toLowerCase()],bt=+bn.nodeType||1;return bt!==1&&bt!==9?false:!j||j!==true&&bn.getAttribute("classid")===j;};var cP=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,cL=/([A-Z])/g;b8.extend({cache:{},noData:{"applet ":true,"embed ":true,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(j){j=j.nodeType?b8.cache[j[b8.expando]]:j[b8.expando];return !!j&&!cx(j);},data:function(bn,j,bt){return cr(bn,j,bt);},removeData:function(bn,j){return bK(bn,j);},_data:function(bn,j,bt){return cr(bn,j,bt,true);},_removeData:function(bn,j){return bK(bn,j,true);}});b8.fn.extend({data:function(ct,bn){var dj,cn,j,bt=this[0],di=bt&&bt.attributes;if(ct===undefined){if(this.length){j=b8.data(bt);if(bt.nodeType===1&&!b8._data(bt,"parsedAttrs")){dj=di.length;while(dj--){if(di[dj]){cn=di[dj].name;if(cn.indexOf("data-")===0){cn=b8.camelCase(cn.slice(5));bV(bt,cn,j[cn]);}}}b8._data(bt,"parsedAttrs",true);}}return j;}if(typeof ct==="object"){return this.each(function(){b8.data(this,ct);});}return arguments.length>1?this.each(function(){b8.data(this,ct,bn);}):bt?bV(bt,ct,b8.data(bt,ct)):undefined;},removeData:function(j){return this.each(function(){b8.removeData(this,j);});}});b8.extend({queue:function(bt,j,cn){var bn;if(bt){j=(j||"fx")+"queue";bn=b8._data(bt,j);if(cn){if(!bn||b8.isArray(cn)){bn=b8._data(bt,j,b8.makeArray(cn));}else{bn.push(cn);}}return bn||[];}},dequeue:function(ct,bn){bn=bn||"fx";var dj=b8.queue(ct,bn),cn=dj.length,j=dj.shift(),bt=b8._queueHooks(ct,bn),di=function(){b8.dequeue(ct,bn);};if(j==="inprogress"){j=dj.shift();cn--;}if(j){if(bn==="fx"){dj.unshift("inprogress");}delete bt.stop;j.call(ct,di,bt);}if(!cn&&bt){bt.empty.fire();}},_queueHooks:function(bn,j){var bt=j+"queueHooks";return b8._data(bn,bt)||b8._data(bn,bt,{empty:b8.Callbacks("once memory").add(function(){b8._removeData(bn,j+"queue");b8._removeData(bn,bt);})});}});b8.fn.extend({queue:function(bn,j){var bt=2;if(typeof bn!=="string"){j=bn;bn="fx";bt--;}if(arguments.length<bt){return b8.queue(this[0],bn);}return j===undefined?this:this.each(function(){var cn=b8.queue(this,bn,j);
b8._queueHooks(this,bn);if(bn==="fx"&&cn[0]!=="inprogress"){b8.dequeue(this,bn);}});},dequeue:function(j){return this.each(function(){b8.dequeue(this,j);});},clearQueue:function(j){return this.queue(j||"fx",[]);},promise:function(di,bt){var dk,ct=1,bn=b8.Deferred(),cn=this,dj=this.length,j=function(){if(!--ct){bn.resolveWith(cn,[cn]);}};if(typeof di!=="string"){bt=di;di=undefined;}di=di||"fx";while(dj--){dk=b8._data(cn[dj],di+"queueHooks");if(dk&&dk.empty){ct++;dk.empty.add(j);}}j();return bn.promise(bt);}});var cp=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;var co=["Top","Right","Bottom","Left"];var cq=function(bn,j){bn=j||bn;return b8.css(bn,"display")==="none"||!b8.contains(bn.ownerDocument,bn);};var c7=b8.access=function(di,dl,bt,j,cn,dm,bn){var dk=0,dj=di.length,ct=bt==null;if(b8.type(bt)==="object"){cn=true;for(dk in bt){b8.access(di,dl,dk,bt[dk],true,dm,bn);}}else{if(j!==undefined){cn=true;if(!b8.isFunction(j)){bn=true;}if(ct){if(bn){dl.call(di,j);dl=null;}else{ct=dl;dl=function(dp,dn,dq){return ct.call(b8(dp),dq);};}}if(dl){for(;dk<dj;dk++){dl(di[dk],bt,bn?j:j.call(di[dk],dk,dl(di[dk],bt)));}}}}return cn?di:ct?dl.call(di):dj?dl(di[0],bt):dm;};var cK=/^(?:checkbox|radio)$/i;(function(){var bt=cs.createElement("input"),j=cs.createElement("div"),cn=cs.createDocumentFragment();j.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";b3.leadingWhitespace=j.firstChild.nodeType===3;b3.tbody=!j.getElementsByTagName("tbody").length;b3.htmlSerialize=!!j.getElementsByTagName("link").length;b3.html5Clone=cs.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>";bt.type="checkbox";bt.checked=true;cn.appendChild(bt);b3.appendChecked=bt.checked;j.innerHTML="<textarea>x</textarea>";b3.noCloneChecked=!!j.cloneNode(true).lastChild.defaultValue;cn.appendChild(j);j.innerHTML="<input type='radio' checked='checked' name='t'/>";b3.checkClone=j.cloneNode(true).cloneNode(true).lastChild.checked;b3.noCloneEvent=true;if(j.attachEvent){j.attachEvent("onclick",function(){b3.noCloneEvent=false;});j.cloneNode(true).click();}if(b3.deleteExpando==null){b3.deleteExpando=true;try{delete j.test;}catch(bn){b3.deleteExpando=false;}}})();(function(){var j,bt,bn=cs.createElement("div");for(j in {submit:true,change:true,focusin:true}){bt="on"+j;if(!(b3[j+"Bubbles"]=bt in cc)){bn.setAttribute(bt,"t");b3[j+"Bubbles"]=bn.attributes[bt].expando===false;}}bn=null;})();var cI=/^(?:input|select|textarea)$/i,cy=/^key/,cO=/^(?:mouse|pointer|contextmenu)|click/,cm=/^(?:focusinfocus|focusoutblur)$/,ck=/^([^.]*)(?:\.(.+)|)$/;b8.event={global:{},add:function(dm,dt,cn,j,dj){var du,bt,ds,dq,dl,di,dp,bn,dn,dr,ct,dk=b8._data(dm);if(!dk){return;}if(cn.handler){dq=cn;cn=dq.handler;dj=dq.selector;}if(!cn.guid){cn.guid=b8.guid++;}if(!(bt=dk.events)){bt=dk.events={};}if(!(di=dk.handle)){di=dk.handle=function(dv){return typeof b8!==cV&&(!dv||b8.event.triggered!==dv.type)?b8.event.dispatch.apply(di.elem,arguments):undefined;};di.elem=dm;}dt=(dt||"").match(cB)||[""];ds=dt.length;while(ds--){du=ck.exec(dt[ds])||[];dn=ct=du[1];dr=(du[2]||"").split(".").sort();if(!dn){continue;}dl=b8.event.special[dn]||{};dn=(dj?dl.delegateType:dl.bindType)||dn;dl=b8.event.special[dn]||{};dp=b8.extend({type:dn,origType:ct,data:j,handler:cn,guid:cn.guid,selector:dj,needsContext:dj&&b8.expr.match.needsContext.test(dj),namespace:dr.join(".")},dq);if(!(bn=bt[dn])){bn=bt[dn]=[];bn.delegateCount=0;if(!dl.setup||dl.setup.call(dm,j,dr,di)===false){if(dm.addEventListener){dm.addEventListener(dn,di,false);}else{if(dm.attachEvent){dm.attachEvent("on"+dn,di);}}}}if(dl.add){dl.add.call(dm,dp);if(!dp.handler.guid){dp.handler.guid=cn.guid;}}if(dj){bn.splice(bn.delegateCount++,0,dp);}else{bn.push(dp);}b8.event.global[dn]=true;}dm=null;},remove:function(dm,dt,cn,j,dj){var du,bt,ds,dq,dl,di,dp,bn,dn,dr,ct,dk=b8.hasData(dm)&&b8._data(dm);if(!dk||!(di=dk.events)){return;}dt=(dt||"").match(cB)||[""];dl=dt.length;while(dl--){ds=ck.exec(dt[dl])||[];dn=ct=ds[1];dr=(ds[2]||"").split(".").sort();if(!dn){for(dn in di){b8.event.remove(dm,dn+dt[dl],cn,j,true);}continue;}dp=b8.event.special[dn]||{};dn=(j?dp.delegateType:dp.bindType)||dn;bn=di[dn]||[];ds=ds[2]&&new RegExp("(^|\\.)"+dr.join("\\.(?:.*\\.|)")+"(\\.|$)");dq=du=bn.length;while(du--){bt=bn[du];if((dj||ct===bt.origType)&&(!cn||cn.guid===bt.guid)&&(!ds||ds.test(bt.namespace))&&(!j||j===bt.selector||j==="**"&&bt.selector)){bn.splice(du,1);if(bt.selector){bn.delegateCount--;}if(dp.remove){dp.remove.call(dm,bt);}}}if(dq&&!bn.length){if(!dp.teardown||dp.teardown.call(dm,dr,dk.handle)===false){b8.removeEvent(dm,dn,dk.handle);}delete di[dn];}}if(b8.isEmptyObject(di)){delete dk.handle;b8._removeData(dm,"events");}},trigger:function(dr,cn,j,dj){var ds,bt,dq,dn,di,dm,bn,dl=[j||cs],dp=cb.call(dr,"type")?dr.type:dr,ct=cb.call(dr,"namespace")?dr.namespace.split("."):[];dq=dm=j=j||cs;if(j.nodeType===3||j.nodeType===8){return;}if(cm.test(dp+b8.event.triggered)){return;}if(dp.indexOf(".")>=0){ct=dp.split(".");dp=ct.shift();ct.sort();}bt=dp.indexOf(":")<0&&"on"+dp;
dr=dr[b8.expando]?dr:new b8.Event(dp,typeof dr==="object"&&dr);dr.isTrigger=dj?2:3;dr.namespace=ct.join(".");dr.namespace_re=dr.namespace?new RegExp("(^|\\.)"+ct.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;dr.result=undefined;if(!dr.target){dr.target=j;}cn=cn==null?[dr]:b8.makeArray(cn,[dr]);di=b8.event.special[dp]||{};if(!dj&&di.trigger&&di.trigger.apply(j,cn)===false){return;}if(!dj&&!di.noBubble&&!b8.isWindow(j)){dn=di.delegateType||dp;if(!cm.test(dn+dp)){dq=dq.parentNode;}for(;dq;dq=dq.parentNode){dl.push(dq);dm=dq;}if(dm===(j.ownerDocument||cs)){dl.push(dm.defaultView||dm.parentWindow||cc);}}bn=0;while((dq=dl[bn++])&&!dr.isPropagationStopped()){dr.type=bn>1?dn:di.bindType||dp;ds=(b8._data(dq,"events")||{})[dr.type]&&b8._data(dq,"handle");if(ds){ds.apply(dq,cn);}ds=bt&&dq[bt];if(ds&&ds.apply&&b8.acceptData(dq)){dr.result=ds.apply(dq,cn);if(dr.result===false){dr.preventDefault();}}}dr.type=dp;if(!dj&&!dr.isDefaultPrevented()){if((!di._default||di._default.apply(dl.pop(),cn)===false)&&b8.acceptData(j)){if(bt&&j[dp]&&!b8.isWindow(j)){dm=j[bt];if(dm){j[bt]=null;}b8.event.triggered=dp;try{j[dp]();}catch(dk){}b8.event.triggered=undefined;if(dm){j[bt]=dm;}}}}return dr.result;},dispatch:function(di){di=b8.event.fix(di);var dl,bn,cn,dm,j,dk=[],dj=bU.call(arguments),ct=(b8._data(this,"events")||{})[di.type]||[],bt=b8.event.special[di.type]||{};dj[0]=di;di.delegateTarget=this;if(bt.preDispatch&&bt.preDispatch.call(this,di)===false){return;}dk=b8.event.handlers.call(this,di,ct);dl=0;while((dm=dk[dl++])&&!di.isPropagationStopped()){di.currentTarget=dm.elem;j=0;while((cn=dm.handlers[j++])&&!di.isImmediatePropagationStopped()){if(!di.namespace_re||di.namespace_re.test(cn.namespace)){di.handleObj=cn;di.data=cn.data;bn=((b8.event.special[cn.origType]||{}).handle||cn.handler).apply(dm.elem,dj);if(bn!==undefined){if((di.result=bn)===false){di.preventDefault();di.stopPropagation();}}}}}if(bt.postDispatch){bt.postDispatch.call(this,di);}return di.result;},handlers:function(ct,dk){var bt,j,cn,dl,bn=[],dj=dk.delegateCount,di=ct.target;if(dj&&di.nodeType&&(!ct.button||ct.type!=="click")){for(;di!=this;di=di.parentNode||this){if(di.nodeType===1&&(di.disabled!==true||ct.type!=="click")){cn=[];for(dl=0;dl<dj;dl++){j=dk[dl];bt=j.selector+" ";if(cn[bt]===undefined){cn[bt]=j.needsContext?b8(bt,this).index(di)>=0:b8.find(bt,this,null,[di]).length;}if(cn[bt]){cn.push(j);}}if(cn.length){bn.push({elem:di,handlers:cn});}}}}if(dj<dk.length){bn.push({elem:this,handlers:dk.slice(dj)});}return bn;},fix:function(ct){if(ct[b8.expando]){return ct;}var bn,dj,cn,j=ct.type,bt=ct,di=this.fixHooks[j];if(!di){this.fixHooks[j]=di=cO.test(j)?this.mouseHooks:cy.test(j)?this.keyHooks:{};}cn=di.props?this.props.concat(di.props):this.props;ct=new b8.Event(bt);bn=cn.length;while(bn--){dj=cn[bn];ct[dj]=bt[dj];}if(!ct.target){ct.target=bt.srcElement||cs;}if(ct.target.nodeType===3){ct.target=ct.target.parentNode;}ct.metaKey=!!ct.metaKey;return di.filter?di.filter(ct,bt):ct;},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(bn,j){if(bn.which==null){bn.which=j.charCode!=null?j.charCode:j.keyCode;}return bn;}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(ct,bn){var dj,cn,j,bt=bn.button,di=bn.fromElement;if(ct.pageX==null&&bn.clientX!=null){cn=ct.target.ownerDocument||cs;j=cn.documentElement;dj=cn.body;ct.pageX=bn.clientX+(j&&j.scrollLeft||dj&&dj.scrollLeft||0)-(j&&j.clientLeft||dj&&dj.clientLeft||0);ct.pageY=bn.clientY+(j&&j.scrollTop||dj&&dj.scrollTop||0)-(j&&j.clientTop||dj&&dj.clientTop||0);}if(!ct.relatedTarget&&di){ct.relatedTarget=di===ct.target?bn.toElement:di;}if(!ct.which&&bt!==undefined){ct.which=bt&1?1:bt&2?3:bt&4?2:0;}return ct;}},special:{load:{noBubble:true},focus:{trigger:function(){if(this!==cC()&&this.focus){try{this.focus();return false;}catch(j){}}},delegateType:"focusin"},blur:{trigger:function(){if(this===cC()&&this.blur){this.blur();return false;}},delegateType:"focusout"},click:{trigger:function(){if(b8.nodeName(this,"input")&&this.type==="checkbox"&&this.click){this.click();return false;}},_default:function(j){return b8.nodeName(j.target,"a");}},beforeunload:{postDispatch:function(j){if(j.result!==undefined&&j.originalEvent){j.originalEvent.returnValue=j.result;}}}},simulate:function(cn,bn,ct,bt){var j=b8.extend(new b8.Event,ct,{type:cn,isSimulated:true,originalEvent:{}});if(bt){b8.event.trigger(j,null,bn);}else{b8.event.dispatch.call(bn,j);}if(j.isDefaultPrevented()){ct.preventDefault();}}};b8.removeEvent=cs.removeEventListener?function(bn,j,bt){if(bn.removeEventListener){bn.removeEventListener(j,bt,false);}}:function(bt,j,cn){var bn="on"+j;if(bt.detachEvent){if(typeof bt[bn]===cV){bt[bn]=null;}bt.detachEvent(bn,cn);}};b8.Event=function(bn,j){if(!(this instanceof b8.Event)){return new b8.Event(bn,j);
}if(bn&&bn.type){this.originalEvent=bn;this.type=bn.type;this.isDefaultPrevented=bn.defaultPrevented||bn.defaultPrevented===undefined&&bn.returnValue===false?bs:a1;}else{this.type=bn;}if(j){b8.extend(this,j);}this.timeStamp=bn&&bn.timeStamp||b8.now();this[b8.expando]=true;};b8.Event.prototype={isDefaultPrevented:a1,isPropagationStopped:a1,isImmediatePropagationStopped:a1,preventDefault:function(){var j=this.originalEvent;this.isDefaultPrevented=bs;if(!j){return;}if(j.preventDefault){j.preventDefault();}else{j.returnValue=false;}},stopPropagation:function(){var j=this.originalEvent;this.isPropagationStopped=bs;if(!j){return;}if(j.stopPropagation){j.stopPropagation();}j.cancelBubble=true;},stopImmediatePropagation:function(){var j=this.originalEvent;this.isImmediatePropagationStopped=bs;if(j&&j.stopImmediatePropagation){j.stopImmediatePropagation();}this.stopPropagation();}};b8.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(bn,j){b8.event.special[bn]={delegateType:j,bindType:j,handle:function(di){var dj,ct=this,bt=di.relatedTarget,cn=di.handleObj;if(!bt||bt!==ct&&!b8.contains(ct,bt)){di.type=cn.origType;dj=cn.handler.apply(this,arguments);di.type=j;}return dj;}};});if(!b3.submitBubbles){b8.event.special.submit={setup:function(){if(b8.nodeName(this,"form")){return false;}b8.event.add(this,"click._submit keypress._submit",function(bn){var j=bn.target,bt=b8.nodeName(j,"input")||b8.nodeName(j,"button")?j.form:undefined;if(bt&&!b8._data(bt,"submitBubbles")){b8.event.add(bt,"submit._submit",function(cn){cn._submit_bubble=true;});b8._data(bt,"submitBubbles",true);}});},postDispatch:function(j){if(j._submit_bubble){delete j._submit_bubble;if(this.parentNode&&!j.isTrigger){b8.event.simulate("submit",this.parentNode,j,true);}}},teardown:function(){if(b8.nodeName(this,"form")){return false;}b8.event.remove(this,"._submit");}};}if(!b3.changeBubbles){b8.event.special.change={setup:function(){if(cI.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){b8.event.add(this,"propertychange._change",function(j){if(j.originalEvent.propertyName==="checked"){this._just_changed=true;}});b8.event.add(this,"click._change",function(j){if(this._just_changed&&!j.isTrigger){this._just_changed=false;}b8.event.simulate("change",this,j,true);});}return false;}b8.event.add(this,"beforeactivate._change",function(bn){var j=bn.target;if(cI.test(j.nodeName)&&!b8._data(j,"changeBubbles")){b8.event.add(j,"change._change",function(bt){if(this.parentNode&&!bt.isSimulated&&!bt.isTrigger){b8.event.simulate("change",this.parentNode,bt,true);}});b8._data(j,"changeBubbles",true);}});},handle:function(bn){var j=bn.target;if(this!==j||bn.isSimulated||bn.isTrigger||j.type!=="radio"&&j.type!=="checkbox"){return bn.handleObj.handler.apply(this,arguments);}},teardown:function(){b8.event.remove(this,"._change");return !cI.test(this.nodeName);}};}if(!b3.focusinBubbles){b8.each({focus:"focusin",blur:"focusout"},function(bn,j){var bt=function(cn){b8.event.simulate(j,cn.target,b8.event.fix(cn),true);};b8.event.special[j]={setup:function(){var ct=this.ownerDocument||this,cn=b8._data(ct,j);if(!cn){ct.addEventListener(bn,bt,true);}b8._data(ct,j,(cn||0)+1);},teardown:function(){var ct=this.ownerDocument||this,cn=b8._data(ct,j)-1;if(!cn){ct.removeEventListener(bn,bt,true);b8._removeData(ct,j);}else{b8._data(ct,j,cn);}}};});}b8.fn.extend({on:function(ct,bn,dj,cn,j){var bt,di;if(typeof ct==="object"){if(typeof bn!=="string"){dj=dj||bn;bn=undefined;}for(bt in ct){this.on(bt,bn,dj,ct[bt],j);}return this;}if(dj==null&&cn==null){cn=bn;dj=bn=undefined;}else{if(cn==null){if(typeof bn==="string"){cn=dj;dj=undefined;}else{cn=dj;dj=bn;bn=undefined;}}}if(cn===false){cn=a1;}else{if(!cn){return this;}}if(j===1){di=cn;cn=function(dk){b8().off(dk);return di.apply(this,arguments);};cn.guid=di.guid||(di.guid=b8.guid++);}return this.each(function(){b8.event.add(this,ct,cn,dj,bn);});},one:function(bt,j,cn,bn){return this.on(bt,j,cn,bn,1);},off:function(cn,bn,ct){var bt,j;if(cn&&cn.preventDefault&&cn.handleObj){bt=cn.handleObj;b8(cn.delegateTarget).off(bt.namespace?bt.origType+"."+bt.namespace:bt.origType,bt.selector,bt.handler);return this;}if(typeof cn==="object"){for(j in cn){this.off(j,bn,cn[j]);}return this;}if(bn===false||typeof bn==="function"){ct=bn;bn=undefined;}if(ct===false){ct=a1;}return this.each(function(){b8.event.remove(this,cn,ct,bn);});},trigger:function(bn,j){return this.each(function(){b8.event.trigger(bn,j,this);});},triggerHandler:function(bn,j){var bt=this[0];if(bt){return b8.event.trigger(bn,j,bt,true);}}});var aP="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|"+"header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ba=/ jQuery\d+="(?:null|\d+)"/g,b0=new RegExp("<(?:"+aP+")[\\s/>]","i"),aT=/^\s+/,cZ=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bh=/<([\w:]+)/,db=/<tbody/i,bM=/<|&#?\w+;/,aX=/<(?:script|style|link)/i,bF=/checked\s*(?:[^=]|=\s*.checked.)/i,bC=/^$|\/(?:java|ecma)script/i,aL=/^true\/(.*)/,c2=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,a6={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:b3.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},c6=bl(cs),cl=c6.appendChild(cs.createElement("div"));
a6.optgroup=a6.option;a6.tbody=a6.tfoot=a6.colgroup=a6.caption=a6.thead;a6.th=a6.td;b8.extend({clone:function(ct,dk,bt){var j,cn,dl,bn,dj,di=b8.contains(ct.ownerDocument,ct);if(b3.html5Clone||b8.isXMLDoc(ct)||!b0.test("<"+ct.nodeName+">")){dl=ct.cloneNode(true);}else{cl.innerHTML=ct.outerHTML;cl.removeChild(dl=cl.firstChild);}if((!b3.noCloneEvent||!b3.noCloneChecked)&&(ct.nodeType===1||ct.nodeType===11)&&!b8.isXMLDoc(ct)){j=aD(dl);dj=aD(ct);for(bn=0;(cn=dj[bn])!=null;++bn){if(j[bn]){az(cn,j[bn]);}}}if(dk){if(bt){dj=dj||aD(ct);j=j||aD(dl);for(bn=0;(cn=dj[bn])!=null;bn++){aW(cn,j[bn]);}}else{aW(ct,dl);}}j=aD(dl,"script");if(j.length>0){a9(j,!di&&aD(ct,"script"));}j=dj=cn=null;return dl;},buildFragment:function(dk,dr,cn,j){var di,ds,bt,dq,dn,dj,dm,bn=dk.length,dl=bl(dr),dp=[],ct=0;for(;ct<bn;ct++){ds=dk[ct];if(ds||ds===0){if(b8.type(ds)==="object"){b8.merge(dp,ds.nodeType?[ds]:ds);}else{if(!bM.test(ds)){dp.push(dr.createTextNode(ds));}else{dq=dq||dl.appendChild(dr.createElement("div"));dn=(bh.exec(ds)||["",""])[1].toLowerCase();dm=a6[dn]||a6._default;dq.innerHTML=dm[1]+ds.replace(cZ,"<$1></$2>")+dm[2];di=dm[0];while(di--){dq=dq.lastChild;}if(!b3.leadingWhitespace&&aT.test(ds)){dp.push(dr.createTextNode(aT.exec(ds)[0]));}if(!b3.tbody){ds=dn==="table"&&!db.test(ds)?dq.firstChild:dm[1]==="<table>"&&!db.test(ds)?dq:0;di=ds&&ds.childNodes.length;while(di--){if(b8.nodeName(dj=ds.childNodes[di],"tbody")&&!dj.childNodes.length){ds.removeChild(dj);}}}b8.merge(dp,dq.childNodes);dq.textContent="";while(dq.firstChild){dq.removeChild(dq.firstChild);}dq=dl.lastChild;}}}}if(dq){dl.removeChild(dq);}if(!b3.appendChecked){b8.grep(aD(dp,"input"),aG);}ct=0;while(ds=dp[ct++]){if(j&&b8.inArray(ds,j)!==-1){continue;}bt=b8.contains(ds.ownerDocument,ds);dq=aD(dl.appendChild(ds),"script");if(bt){a9(dq);}if(cn){di=0;while(ds=dq[di++]){if(bC.test(ds.type||"")){cn.push(ds);}}}}dq=null;return dl;},cleanData:function(di,dm){var j,cn,dn,bt,dl=0,dk=b8.expando,ct=b8.cache,dj=b3.deleteExpando,bn=b8.event.special;for(;(j=di[dl])!=null;dl++){if(dm||b8.acceptData(j)){dn=j[dk];bt=dn&&ct[dn];if(bt){if(bt.events){for(cn in bt.events){if(bn[cn]){b8.event.remove(j,cn);}else{b8.removeEvent(j,cn,bt.handle);}}}if(ct[dn]){delete ct[dn];if(dj){delete j[dk];}else{if(typeof j.removeAttribute!==cV){j.removeAttribute(dk);}else{j[dk]=null;}}bZ.push(dn);}}}}}});b8.fn.extend({text:function(j){return c7(this,function(bn){return bn===undefined?b8.text(this):this.empty().append((this[0]&&this[0].ownerDocument||cs).createTextNode(bn));},null,j,arguments.length);},append:function(){return this.domManip(arguments,function(bn){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var j=de(this,bn);j.appendChild(bn);}});},prepend:function(){return this.domManip(arguments,function(bn){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var j=de(this,bn);j.insertBefore(bn,j.firstChild);}});},before:function(){return this.domManip(arguments,function(j){if(this.parentNode){this.parentNode.insertBefore(j,this);}});},after:function(){return this.domManip(arguments,function(j){if(this.parentNode){this.parentNode.insertBefore(j,this.nextSibling);}});},remove:function(cn,bn){var ct,bt=cn?b8.filter(cn,this):this,j=0;for(;(ct=bt[j])!=null;j++){if(!bn&&ct.nodeType===1){b8.cleanData(aD(ct));}if(ct.parentNode){if(bn&&b8.contains(ct.ownerDocument,ct)){a9(aD(ct,"script"));}ct.parentNode.removeChild(ct);}}return this;},empty:function(){var bn,j=0;for(;(bn=this[j])!=null;j++){if(bn.nodeType===1){b8.cleanData(aD(bn,false));}while(bn.firstChild){bn.removeChild(bn.firstChild);}if(bn.options&&b8.nodeName(bn,"select")){bn.options.length=0;}}return this;},clone:function(bn,j){bn=bn==null?false:bn;j=j==null?bn:j;return this.map(function(){return b8.clone(this,bn,j);});},html:function(j){return c7(this,function(ct){var bt=this[0]||{},di=0,cn=this.length;if(ct===undefined){return bt.nodeType===1?bt.innerHTML.replace(ba,""):undefined;}if(typeof ct==="string"&&!aX.test(ct)&&(b3.htmlSerialize||!b0.test(ct))&&(b3.leadingWhitespace||!aT.test(ct))&&!a6[(bh.exec(ct)||["",""])[1].toLowerCase()]){ct=ct.replace(cZ,"<$1></$2>");try{for(;di<cn;di++){bt=this[di]||{};if(bt.nodeType===1){b8.cleanData(aD(bt,false));bt.innerHTML=ct;}}bt=0;}catch(bn){}}if(bt){this.empty().append(ct);}},null,j,arguments.length);},replaceWith:function(){var j=arguments[0];this.domManip(arguments,function(bn){j=this.parentNode;b8.cleanData(aD(this));if(j){j.replaceChild(bn,this);}});return j&&(j.length||j.nodeType)?this:this.remove();},detach:function(j){return this.remove(j,true);},domManip:function(dj,dq){dj=b7.apply([],dj);var cn,j,dr,bt,dp,dm,di=0,dl=this.length,bn=this,dk=dl-1,dn=dj[0],ct=b8.isFunction(dn);if(ct||dl>1&&typeof dn==="string"&&!b3.checkClone&&bF.test(dn)){return this.each(function(dt){var ds=bn.eq(dt);if(ct){dj[0]=dn.call(this,dt,ds.html());}ds.domManip(dj,dq);});}if(dl){dm=b8.buildFragment(dj,this[0].ownerDocument,false,this);cn=dm.firstChild;if(dm.childNodes.length===1){dm=cn;}if(cn){bt=b8.map(aD(dm,"script"),df);
dr=bt.length;for(;di<dl;di++){j=dm;if(di!==dk){j=b8.clone(j,true,true);if(dr){b8.merge(bt,aD(j,"script"));}}dq.call(this[di],j,di);}if(dr){dp=bt[bt.length-1].ownerDocument;b8.map(bt,c5);for(di=0;di<dr;di++){j=bt[di];if(bC.test(j.type||"")&&!b8._data(j,"globalEval")&&b8.contains(dp,j)){if(j.src){if(b8._evalUrl){b8._evalUrl(j.src);}}else{b8.globalEval((j.text||j.textContent||j.innerHTML||"").replace(c2,""));}}}}dm=cn=null;}}return this;}});b8.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(bn,j){b8.fn[bn]=function(di){var dk,ct=0,cn=[],dj=b8(di),bt=dj.length-1;for(;ct<=bt;ct++){dk=ct===bt?this:this.clone(true);b8(dj[ct])[j](dk);bS.apply(cn,dk.get());}return this.pushStack(cn);};});var bw,bg={};(function(){var j;b3.shrinkWrapBlocks=function(){if(j!=null){return j;}j=false;var bn,cn,bt;cn=cs.getElementsByTagName("body")[0];if(!cn||!cn.style){return;}bn=cs.createElement("div");bt=cs.createElement("div");bt.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px";cn.appendChild(bt).appendChild(bn);if(typeof bn.style.zoom!==cV){bn.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;"+"box-sizing:content-box;display:block;margin:0;border:0;"+"padding:1px;width:1px;zoom:1";bn.appendChild(cs.createElement("div")).style.width="5px";j=bn.offsetWidth!==3;}cn.removeChild(bt);return j;};})();var aw=/^margin/;var aO=new RegExp("^("+cp+")(?!px)[a-z%]+$","i");var aS,c1,a5=/^(top|right|bottom|left)$/;if(cc.getComputedStyle){aS=function(j){return j.ownerDocument.defaultView.getComputedStyle(j,null);};c1=function(di,bt,dk){var ct,bn,cn,dj,j=di.style;dk=dk||aS(di);dj=dk?dk.getPropertyValue(bt)||dk[bt]:undefined;if(dk){if(dj===""&&!b8.contains(di.ownerDocument,di)){dj=b8.style(di,bt);}if(aO.test(dj)&&aw.test(bt)){ct=j.width;bn=j.minWidth;cn=j.maxWidth;j.minWidth=j.maxWidth=j.width=dj;dj=dk.width;j.width=ct;j.minWidth=bn;j.maxWidth=cn;}}return dj===undefined?dj:dj+"";};}else{if(cs.documentElement.currentStyle){aS=function(j){return j.currentStyle;};c1=function(di,bt,dk){var ct,bn,cn,dj,j=di.style;dk=dk||aS(di);dj=dk?dk[bt]:undefined;if(dj==null&&j&&j[bt]){dj=j[bt];}if(aO.test(dj)&&!a5.test(bt)){ct=j.left;bn=di.runtimeStyle;cn=bn&&bn.left;if(cn){bn.left=di.currentStyle.left;}j.left=bt==="fontSize"?"1em":dj;dj=j.pixelLeft+"px";j.left=ct;if(cn){bn.left=cn;}}return dj===undefined?dj:dj+""||"auto";};}}(function(){function j(){var dm,dp,dn,dl;dp=cs.getElementsByTagName("body")[0];if(!dp||!dp.style){return;}dm=cs.createElement("div");dn=cs.createElement("div");dn.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px";dp.appendChild(dn).appendChild(dm);dm.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;"+"box-sizing:border-box;display:block;margin-top:1%;top:1%;"+"border:1px;padding:1px;width:4px;position:absolute";bt=ct=false;bn=true;if(cc.getComputedStyle){bt=(cc.getComputedStyle(dm,null)||{}).top!=="1%";ct=(cc.getComputedStyle(dm,null)||{width:"4px"}).width==="4px";dl=dm.appendChild(cs.createElement("div"));dl.style.cssText=dm.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;"+"box-sizing:content-box;display:block;margin:0;border:0;padding:0";dl.style.marginRight=dl.style.width="0";dm.style.width="1px";bn=!parseFloat((cc.getComputedStyle(dl,null)||{}).marginRight);}dm.innerHTML="<table><tr><td></td><td>t</td></tr></table>";dl=dm.getElementsByTagName("td");dl[0].style.cssText="margin:0;border:0;padding:0;display:none";dj=dl[0].offsetHeight===0;if(dj){dl[0].style.display="";dl[1].style.display="none";dj=dl[0].offsetHeight===0;}dp.removeChild(dn);}var cn,dk,di,bt,ct,dj,bn;cn=cs.createElement("div");cn.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";di=cn.getElementsByTagName("a")[0];dk=di&&di.style;if(!dk){return;}dk.cssText="float:left;opacity:.5";b3.opacity=dk.opacity==="0.5";b3.cssFloat=!!dk.cssFloat;cn.style.backgroundClip="content-box";cn.cloneNode(true).style.backgroundClip="";b3.clearCloneStyle=cn.style.backgroundClip==="content-box";b3.boxSizing=dk.boxSizing===""||dk.MozBoxSizing===""||dk.WebkitBoxSizing==="";b8.extend(b3,{reliableHiddenOffsets:function(){if(dj==null){j();}return dj;},boxSizingReliable:function(){if(ct==null){j();}return ct;},pixelPosition:function(){if(bt==null){j();}return bt;},reliableMarginRight:function(){if(bn==null){j();}return bn;}});})();b8.swap=function(ct,bn,dj,cn){var j,bt,di={};for(bt in bn){di[bt]=ct.style[bt];ct.style[bt]=bn[bt];}j=dj.apply(ct,cn||[]);for(bt in bn){ct.style[bt]=di[bt];}return j;};var ay=/alpha\([^)]*\)/i,cz=/opacity\s*=\s*([^)]*)/,bx=/^(none|table(?!-c[ea]).+)/,aC=new RegExp("^("+cp+")(.*)$","i"),cQ=new RegExp("^([+-])=("+cp+")","i"),cT={position:"absolute",visibility:"hidden",display:"block"},bI={letterSpacing:"0",fontWeight:"400"},bA=["Webkit","O","Moz","ms"];b8.extend({cssHooks:{opacity:{get:function(bn,j){if(j){var bt=c1(bn,"opacity");return bt===""?"1":bt;}}}},cssNumber:{columnCount:true,fillOpacity:true,flexGrow:true,flexShrink:true,fontWeight:true,lineHeight:true,opacity:true,order:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":b3.cssFloat?"cssFloat":"styleFloat"},style:function(di,dl,bt,j){if(!di||di.nodeType===3||di.nodeType===8||!di.style){return;
}var cn,dm,bn,dk=b8.camelCase(dl),dj=di.style;dl=b8.cssProps[dk]||(b8.cssProps[dk]=cd(dj,dk));bn=b8.cssHooks[dl]||b8.cssHooks[dk];if(bt!==undefined){dm=typeof bt;if(dm==="string"&&(cn=cQ.exec(bt))){bt=(cn[1]+1)*cn[2]+parseFloat(b8.css(di,dl));dm="number";}if(bt==null||bt!==bt){return;}if(dm==="number"&&!b8.cssNumber[dk]){bt+="px";}if(!b3.clearCloneStyle&&bt===""&&dl.indexOf("background")===0){dj[dl]="inherit";}if(!bn||!("set" in bn)||(bt=bn.set(di,bt,j))!==undefined){try{dj[dl]=bt;}catch(ct){}}}else{if(bn&&"get" in bn&&(cn=bn.get(di,false,j))!==undefined){return cn;}return dj[dl];}},css:function(di,bt,dk,ct){var bn,cn,dj,j=b8.camelCase(bt);bt=b8.cssProps[j]||(b8.cssProps[j]=cd(di.style,j));dj=b8.cssHooks[bt]||b8.cssHooks[j];if(dj&&"get" in dj){cn=dj.get(di,true,dk);}if(cn===undefined){cn=c1(di,bt,ct);}if(cn==="normal"&&bt in bI){cn=bI[bt];}if(dk===""||dk){bn=parseFloat(cn);return dk===true||b8.isNumeric(bn)?bn||0:cn;}return cn;}});b8.each(["height","width"],function(bn,j){b8.cssHooks[j]={get:function(cn,ct,bt){if(ct){return bx.test(b8.css(cn,"display"))&&cn.offsetWidth===0?b8.swap(cn,cT,function(){return aK(cn,j,bt);}):aK(cn,j,bt);}},set:function(ct,di,cn){var bt=cn&&aS(ct);return bX(ct,di,cn?bE(ct,j,cn,b3.boxSizing&&b8.css(ct,"boxSizing",false,bt)==="border-box",bt):0);}};});if(!b3.opacity){b8.cssHooks.opacity={get:function(bn,j){return cz.test((j&&bn.currentStyle?bn.currentStyle.filter:bn.style.filter)||"")?0.01*parseFloat(RegExp.$1)+"":j?"1":"";},set:function(ct,bn){var di=ct.style,cn=ct.currentStyle,j=b8.isNumeric(bn)?"alpha(opacity="+bn*100+")":"",bt=cn&&cn.filter||di.filter||"";di.zoom=1;if((bn>=1||bn==="")&&b8.trim(bt.replace(ay,""))===""&&di.removeAttribute){di.removeAttribute("filter");if(bn===""||cn&&!cn.filter){return;}}di.filter=ay.test(bt)?bt.replace(ay,j):bt+" "+j;}};}b8.cssHooks.marginRight=aH(b3.reliableMarginRight,function(bn,j){if(j){return b8.swap(bn,{display:"inline-block"},c1,[bn,"marginRight"]);}});b8.each({margin:"",padding:"",border:"Width"},function(bn,j){b8.cssHooks[bn+j]={expand:function(di){var ct=0,bt={},cn=typeof di==="string"?di.split(" "):[di];for(;ct<4;ct++){bt[bn+co[ct]+j]=cn[ct]||cn[ct-2]||cn[0];}return bt;}};if(!aw.test(bn)){b8.cssHooks[bn+j].set=bX;}});b8.fn.extend({css:function(bn,j){return c7(this,function(dj,cn,dl){var di,bt,ct={},dk=0;if(b8.isArray(cn)){di=aS(dj);bt=cn.length;for(;dk<bt;dk++){ct[cn[dk]]=b8.css(dj,cn[dk],false,di);}return ct;}return dl!==undefined?b8.style(dj,cn,dl):b8.css(dj,cn);},bn,j,arguments.length>1);},show:function(){return cw(this,true);},hide:function(){return cw(this);},toggle:function(j){if(typeof j==="boolean"){return j?this.show():this.hide();}return this.each(function(){if(cq(this)){b8(this).show();}else{b8(this).hide();}});}});b8.Tween=da;da.prototype={constructor:da,init:function(ct,bn,di,cn,j,bt){this.elem=ct;this.prop=di;this.easing=j||"swing";this.options=bn;this.start=this.now=this.cur();this.end=cn;this.unit=bt||(b8.cssNumber[di]?"":"px");},cur:function(){var j=da.propHooks[this.prop];return j&&j.get?j.get(this):da.propHooks._default.get(this);},run:function(bn){var j,bt=da.propHooks[this.prop];if(this.options.duration){this.pos=j=b8.easing[this.easing](bn,this.options.duration*bn,0,1,this.options.duration);}else{this.pos=j=bn;}this.now=(this.end-this.start)*j+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this);}if(bt&&bt.set){bt.set(this);}else{da.propHooks._default.set(this);}return this;}};da.prototype.init.prototype=da.prototype;da.propHooks={_default:{get:function(bn){var j;if(bn.elem[bn.prop]!=null&&(!bn.elem.style||bn.elem.style[bn.prop]==null)){return bn.elem[bn.prop];}j=b8.css(bn.elem,bn.prop,"");return !j||j==="auto"?0:j;},set:function(j){if(b8.fx.step[j.prop]){b8.fx.step[j.prop](j);}else{if(j.elem.style&&(j.elem.style[b8.cssProps[j.prop]]!=null||b8.cssHooks[j.prop])){b8.style(j.elem,j.prop,j.now+j.unit);}else{j.elem[j.prop]=j.now;}}}}};da.propHooks.scrollTop=da.propHooks.scrollLeft={set:function(j){if(j.elem.nodeType&&j.elem.parentNode){j.elem[j.prop]=j.now;}}};b8.easing={linear:function(j){return j;},swing:function(j){return 0.5-Math.cos(j*Math.PI)/2;}};b8.fx=da.prototype.init;b8.fx.step={};var bq,be,bv=/^(?:toggle|show|hide)$/,a4=new RegExp("^(?:([+-])=|)("+cp+")([a-z%]*)$","i"),cM=/queueHooks$/,bp=[bj],bd={"*":[function(ct,dk){var bt=this.createTween(ct,dk),j=bt.cur(),cn=a4.exec(dk),dl=cn&&cn[3]||(b8.cssNumber[ct]?"":"px"),bn=(b8.cssNumber[ct]||dl!=="px"&&+j)&&a4.exec(b8.css(bt.elem,ct)),dj=1,di=20;if(bn&&bn[3]!==dl){dl=dl||bn[3];cn=cn||[];bn=+j||1;do{dj=dj||".5";bn=bn/dj;b8.style(bt.elem,ct,bn+dl);}while(dj!==(dj=bt.cur()/j)&&dj!==1&&--di);}if(cn){bn=bt.start=+bn||+j||0;bt.unit=dl;bt.end=cn[1]?bn+(cn[1]+1)*cn[2]:+cn[2];}return bt;}]};b8.Animation=b8.extend(bT,{tweener:function(cn,bn){if(b8.isFunction(cn)){bn=cn;cn=["*"];}else{cn=cn.split(" ");}var ct,bt=0,j=cn.length;for(;bt<j;bt++){ct=cn[bt];bd[ct]=bd[ct]||[];bd[ct].unshift(bn);}},prefilter:function(bn,j){if(j){bp.unshift(bn);}else{bp.push(bn);
}}});b8.speed=function(bt,j,cn){var bn=bt&&typeof bt==="object"?b8.extend({},bt):{complete:cn||!cn&&j||b8.isFunction(bt)&&bt,duration:bt,easing:cn&&j||j&&!b8.isFunction(j)&&j};bn.duration=b8.fx.off?0:typeof bn.duration==="number"?bn.duration:bn.duration in b8.fx.speeds?b8.fx.speeds[bn.duration]:b8.fx.speeds._default;if(bn.queue==null||bn.queue===true){bn.queue="fx";}bn.old=bn.complete;bn.complete=function(){if(b8.isFunction(bn.old)){bn.old.call(this);}if(bn.queue){b8.dequeue(this,bn.queue);}};return bn;};b8.fn.extend({fadeTo:function(bt,j,cn,bn){return this.filter(cq).css("opacity",0).show().end().animate({opacity:j},bt,cn,bn);},animate:function(ct,bn,dj,cn){var j=b8.isEmptyObject(ct),bt=b8.speed(bn,dj,cn),di=function(){var dk=bT(this,b8.extend({},ct),bt);if(j||b8._data(this,"finish")){dk.stop(true);}};di.finish=di;return j||bt.queue===false?this.each(di):this.queue(bt.queue,di);},stop:function(bt,j,cn){var bn=function(di){var ct=di.stop;delete di.stop;ct(cn);};if(typeof bt!=="string"){cn=j;j=bt;bt=undefined;}if(j&&bt!==false){this.queue(bt||"fx",[]);}return this.each(function(){var di=true,ct=bt!=null&&bt+"queueHooks",dj=b8.timers,dk=b8._data(this);if(ct){if(dk[ct]&&dk[ct].stop){bn(dk[ct]);}}else{for(ct in dk){if(dk[ct]&&dk[ct].stop&&cM.test(ct)){bn(dk[ct]);}}}for(ct=dj.length;ct--;){if(dj[ct].elem===this&&(bt==null||dj[ct].queue===bt)){dj[ct].anim.stop(cn);di=false;dj.splice(ct,1);}}if(di||!cn){b8.dequeue(this,bt);}});},finish:function(j){if(j!==false){j=j||"fx";}return this.each(function(){var bt,dj=b8._data(this),ct=dj[j+"queue"],bn=dj[j+"queueHooks"],cn=b8.timers,di=ct?ct.length:0;dj.finish=true;b8.queue(this,j,[]);if(bn&&bn.stop){bn.stop.call(this,true);}for(bt=cn.length;bt--;){if(cn[bt].elem===this&&cn[bt].queue===j){cn[bt].anim.stop(true);cn.splice(bt,1);}}for(bt=0;bt<di;bt++){if(ct[bt]&&ct[bt].finish){ct[bt].finish.call(this);}}delete dj.finish;});}});b8.each(["toggle","show","hide"],function(bn,j){var bt=b8.fn[j];b8.fn[j]=function(di,ct,cn){return di==null||typeof di==="boolean"?bt.apply(this,arguments):this.animate(aV(j,true),di,ct,cn);};});b8.each({slideDown:aV("show"),slideUp:aV("hide"),slideToggle:aV("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(bn,j){b8.fn[bn]=function(cn,ct,bt){return this.animate(j,cn,ct,bt);};});b8.timers=[];b8.fx.tick=function(){var bn,j=b8.timers,bt=0;bq=b8.now();for(;bt<j.length;bt++){bn=j[bt];if(!bn()&&j[bt]===bn){j.splice(bt--,1);}}if(!j.length){b8.fx.stop();}bq=undefined;};b8.fx.timer=function(j){b8.timers.push(j);if(j()){b8.fx.start();}else{b8.timers.pop();}};b8.fx.interval=13;b8.fx.start=function(){if(!be){be=setInterval(b8.fx.tick,b8.fx.interval);}};b8.fx.stop=function(){clearInterval(be);be=null;};b8.fx.speeds={slow:600,fast:200,_default:400};b8.fn.delay=function(bn,j){bn=b8.fx?b8.fx.speeds[bn]||bn:bn;j=j||"fx";return this.queue(j,function(bt,ct){var cn=setTimeout(bt,bn);ct.stop=function(){clearTimeout(cn);};});};(function(){var cn,bn,ct,bt,j;bn=cs.createElement("div");bn.setAttribute("className","t");bn.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";bt=bn.getElementsByTagName("a")[0];ct=cs.createElement("select");j=ct.appendChild(cs.createElement("option"));cn=bn.getElementsByTagName("input")[0];bt.style.cssText="top:1px";b3.getSetAttribute=bn.className!=="t";b3.style=/top/.test(bt.getAttribute("style"));b3.hrefNormalized=bt.getAttribute("href")==="/a";b3.checkOn=!!cn.value;b3.optSelected=j.selected;b3.enctype=!!cs.createElement("form").enctype;ct.disabled=true;b3.optDisabled=!j.disabled;cn=cs.createElement("input");cn.setAttribute("value","");b3.input=cn.getAttribute("value")==="";cn.value="t";cn.setAttribute("type","radio");b3.radioValue=cn.value==="t";})();var aZ=/\r/g;b8.fn.extend({val:function(cn){var bn,ct,bt,j=this[0];if(!arguments.length){if(j){bn=b8.valHooks[j.type]||b8.valHooks[j.nodeName.toLowerCase()];if(bn&&"get" in bn&&(ct=bn.get(j,"value"))!==undefined){return ct;}ct=j.value;return typeof ct==="string"?ct.replace(aZ,""):ct==null?"":ct;}return;}bt=b8.isFunction(cn);return this.each(function(dj){var di;if(this.nodeType!==1){return;}if(bt){di=cn.call(this,dj,b8(this).val());}else{di=cn;}if(di==null){di="";}else{if(typeof di==="number"){di+="";}else{if(b8.isArray(di)){di=b8.map(di,function(dk){return dk==null?"":dk+"";});}}}bn=b8.valHooks[this.type]||b8.valHooks[this.nodeName.toLowerCase()];if(!bn||!("set" in bn)||bn.set(this,di,"value")===undefined){this.value=di;}});}});b8.extend({valHooks:{option:{get:function(bn){var j=b8.find.attr(bn,"value");return j!=null?j:b8.trim(b8.text(bn));}},select:{get:function(ct){var dk,bt,j=ct.options,cn=ct.selectedIndex,dl=ct.type==="select-one"||cn<0,bn=dl?null:[],dj=dl?cn+1:j.length,di=cn<0?dj:dl?cn:0;for(;di<dj;di++){bt=j[di];if((bt.selected||di===cn)&&(b3.optDisabled?!bt.disabled:bt.getAttribute("disabled")===null)&&(!bt.parentNode.disabled||!b8.nodeName(bt.parentNode,"optgroup"))){dk=b8(bt).val();if(dl){return dk;}bn.push(dk);}}return bn;
},set:function(di,bt){var dk,ct,bn=di.options,cn=b8.makeArray(bt),dj=bn.length;while(dj--){ct=bn[dj];if(b8.inArray(b8.valHooks.option.get(ct),cn)>=0){try{ct.selected=dk=true;}catch(j){ct.scrollHeight;}}else{ct.selected=false;}}if(!dk){di.selectedIndex=-1;}return bn;}}}});b8.each(["radio","checkbox"],function(){b8.valHooks[this]={set:function(bn,j){if(b8.isArray(j)){return bn.checked=b8.inArray(b8(bn).val(),j)>=0;}}};if(!b3.checkOn){b8.valHooks[this].get=function(j){return j.getAttribute("value")===null?"on":j.value;};}});var bH,bD,aN=b8.expr.attrHandle,c4=/^(?:checked|selected)$/i,a8=b3.getSetAttribute,c9=b3.input;b8.fn.extend({attr:function(bn,j){return c7(this,b8.attr,bn,j,arguments.length>1);},removeAttr:function(j){return this.each(function(){b8.removeAttr(this,j);});}});b8.extend({attr:function(ct,bn,di){var cn,j,bt=ct.nodeType;if(!ct||bt===3||bt===8||bt===2){return;}if(typeof ct.getAttribute===cV){return b8.prop(ct,bn,di);}if(bt!==1||!b8.isXMLDoc(ct)){bn=bn.toLowerCase();cn=b8.attrHooks[bn]||(b8.expr.match.bool.test(bn)?bD:bH);}if(di!==undefined){if(di===null){b8.removeAttr(ct,bn);}else{if(cn&&"set" in cn&&(j=cn.set(ct,di,bn))!==undefined){return j;}else{ct.setAttribute(bn,di+"");return di;}}}else{if(cn&&"get" in cn&&(j=cn.get(ct,bn))!==null){return j;}else{j=b8.find.attr(ct,bn);return j==null?undefined:j;}}},removeAttr:function(ct,bn){var di,cn,j=0,bt=bn&&bn.match(cB);if(bt&&ct.nodeType===1){while(di=bt[j++]){cn=b8.propFix[di]||di;if(b8.expr.match.bool.test(di)){if(c9&&a8||!c4.test(di)){ct[cn]=false;}else{ct[b8.camelCase("default-"+di)]=ct[cn]=false;}}else{b8.attr(ct,di,"");}ct.removeAttribute(a8?di:cn);}}},attrHooks:{type:{set:function(bn,j){if(!b3.radioValue&&j==="radio"&&b8.nodeName(bn,"input")){var bt=bn.value;bn.setAttribute("type",j);if(bt){bn.value=bt;}return j;}}}}});bD={set:function(bn,j,bt){if(j===false){b8.removeAttr(bn,bt);}else{if(c9&&a8||!c4.test(bt)){bn.setAttribute(!a8&&b8.propFix[bt]||bt,bt);}else{bn[b8.camelCase("default-"+bt)]=bn[bt]=true;}}return bt;}};b8.each(b8.expr.match.bool.source.match(/\w+/g),function(bn,j){var bt=aN[j]||b8.find.attr;aN[j]=c9&&a8||!c4.test(j)?function(dk,ct,dj){var cn,di;if(!dj){di=aN[ct];aN[ct]=cn;cn=bt(dk,ct,dj)!=null?ct.toLowerCase():null;aN[ct]=di;}return cn;}:function(ct,cn,di){if(!di){return ct[b8.camelCase("default-"+cn)]?cn.toLowerCase():null;}};});if(!c9||!a8){b8.attrHooks.value={set:function(bn,j,bt){if(b8.nodeName(bn,"input")){bn.defaultValue=j;}else{return bH&&bH.set(bn,j,bt);}}};}if(!a8){bH={set:function(bt,j,cn){var bn=bt.getAttributeNode(cn);if(!bn){bt.setAttributeNode(bn=bt.ownerDocument.createAttribute(cn));}bn.value=j+="";if(cn==="value"||j===bt.getAttribute(cn)){return j;}}};aN.id=aN.name=aN.coords=function(bt,j,cn){var bn;if(!cn){return(bn=bt.getAttributeNode(j))&&bn.value!==""?bn.value:null;}};b8.valHooks.button={get:function(bn,j){var bt=bn.getAttributeNode(j);if(bt&&bt.specified){return bt.value;}},set:bH.set};b8.attrHooks.contenteditable={set:function(bn,j,bt){bH.set(bn,j===""?false:j,bt);}};b8.each(["width","height"],function(bn,j){b8.attrHooks[j]={set:function(bt,cn){if(cn===""){bt.setAttribute(j,"auto");return cn;}}};});}if(!b3.style){b8.attrHooks.style={get:function(j){return j.style.cssText||undefined;},set:function(bn,j){return bn.style.cssText=j+"";}};}var cu=/^(?:input|select|textarea|button|object)$/i,aF=/^(?:a|area)$/i;b8.fn.extend({prop:function(bn,j){return c7(this,b8.prop,bn,j,arguments.length>1);},removeProp:function(j){j=b8.propFix[j]||j;return this.each(function(){try{this[j]=undefined;delete this[j];}catch(bn){}});}});b8.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(ct,bn,dj){var cn,j,bt,di=ct.nodeType;if(!ct||di===3||di===8||di===2){return;}bt=di!==1||!b8.isXMLDoc(ct);if(bt){bn=b8.propFix[bn]||bn;j=b8.propHooks[bn];}if(dj!==undefined){return j&&"set" in j&&(cn=j.set(ct,dj,bn))!==undefined?cn:ct[bn]=dj;}else{return j&&"get" in j&&(cn=j.get(ct,bn))!==null?cn:ct[bn];}},propHooks:{tabIndex:{get:function(bn){var j=b8.find.attr(bn,"tabindex");return j?parseInt(j,10):cu.test(bn.nodeName)||aF.test(bn.nodeName)&&bn.href?0:-1;}}}});if(!b3.hrefNormalized){b8.each(["href","src"],function(bn,j){b8.propHooks[j]={get:function(bt){return bt.getAttribute(j,4);}};});}if(!b3.optSelected){b8.propHooks.selected={get:function(bn){var j=bn.parentNode;if(j){j.selectedIndex;if(j.parentNode){j.parentNode.selectedIndex;}}return null;}};}b8.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){b8.propFix[this.toLowerCase()]=this;});if(!b3.enctype){b8.propFix.enctype="encoding";}var aI=/[\t\r\n\f]/g;b8.fn.extend({addClass:function(di){var dl,bt,j,cn,dm,bn,dk=0,dj=this.length,ct=typeof di==="string"&&di;if(b8.isFunction(di)){return this.each(function(dn){b8(this).addClass(di.call(this,dn,this.className));});}if(ct){dl=(di||"").match(cB)||[];for(;dk<dj;dk++){bt=this[dk];j=bt.nodeType===1&&(bt.className?(" "+bt.className+" ").replace(aI," "):" ");
if(j){dm=0;while(cn=dl[dm++]){if(j.indexOf(" "+cn+" ")<0){j+=cn+" ";}}bn=b8.trim(j);if(bt.className!==bn){bt.className=bn;}}}}return this;},removeClass:function(di){var dl,bt,j,cn,dm,bn,dk=0,dj=this.length,ct=arguments.length===0||typeof di==="string"&&di;if(b8.isFunction(di)){return this.each(function(dn){b8(this).removeClass(di.call(this,dn,this.className));});}if(ct){dl=(di||"").match(cB)||[];for(;dk<dj;dk++){bt=this[dk];j=bt.nodeType===1&&(bt.className?(" "+bt.className+" ").replace(aI," "):"");if(j){dm=0;while(cn=dl[dm++]){while(j.indexOf(" "+cn+" ")>=0){j=j.replace(" "+cn+" "," ");}}bn=di?b8.trim(j):"";if(bt.className!==bn){bt.className=bn;}}}}return this;},toggleClass:function(bn,j){var bt=typeof bn;if(typeof j==="boolean"&&bt==="string"){return j?this.addClass(bn):this.removeClass(bn);}if(b8.isFunction(bn)){return this.each(function(cn){b8(this).toggleClass(bn.call(this,cn,this.className,j),j);});}return this.each(function(){if(bt==="string"){var ct,dj=0,cn=b8(this),di=bn.match(cB)||[];while(ct=di[dj++]){if(cn.hasClass(ct)){cn.removeClass(ct);}else{cn.addClass(ct);}}}else{if(bt===cV||bt==="boolean"){if(this.className){b8._data(this,"__className__",this.className);}this.className=this.className||bn===false?"":b8._data(this,"__className__")||"";}}});},hasClass:function(bt){var j=" "+bt+" ",cn=0,bn=this.length;for(;cn<bn;cn++){if(this[cn].nodeType===1&&(" "+this[cn].className+" ").replace(aI," ").indexOf(j)>=0){return true;}}return false;}});b8.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(bn,j){b8.fn[j]=function(bt,cn){return arguments.length>0?this.on(j,null,bt,cn):this.trigger(j);};});b8.fn.extend({hover:function(bn,j){return this.mouseenter(bn).mouseleave(j||bn);},bind:function(bn,j,bt){return this.on(bn,null,j,bt);},unbind:function(bn,j){return this.off(bn,null,j);},delegate:function(bt,j,cn,bn){return this.on(j,bt,cn,bn);},undelegate:function(bn,j,bt){return arguments.length===1?this.off(bn,"**"):this.off(j,bn||"**",bt);}});var dg=b8.now();var dh=/\?/;var c8=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;b8.parseJSON=function(bn){if(cc.JSON&&cc.JSON.parse){return cc.JSON.parse(bn+"");}var cn,bt=null,j=b8.trim(bn+"");return j&&!b8.trim(j.replace(c8,function(dk,di,ct,dj){if(cn&&di){bt=0;}if(bt===0){return dk;}cn=ct||di;bt+=!dj-!ct;return"";}))?Function("return "+j)():b8.error("Invalid JSON: "+bn);};b8.parseXML=function(bn){var cn,bt;if(!bn||typeof bn!=="string"){return null;}try{if(cc.DOMParser){bt=new DOMParser;cn=bt.parseFromString(bn,"text/xml");}else{cn=new ActiveXObject("Microsoft.XMLDOM");cn.async="false";cn.loadXML(bn);}}catch(j){cn=undefined;}if(!cn||!cn.documentElement||cn.getElementsByTagName("parsererror").length){b8.error("Invalid XML: "+bn);}return cn;};var bc,aY,aB=/#.*$/,by=/([?&])_=[^&]*/,bi=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,a3=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,bo=/^(?:GET|HEAD)$/,ax=/^\/\//,aR=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,aU={},c3={},a7="*/".concat("*");try{aY=location.href;}catch(aJ){aY=cs.createElement("a");aY.href="";aY=aY.href;}bc=aR.exec(aY.toLowerCase())||[];b8.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:aY,type:"GET",isLocal:a3.test(bc[1]),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":a7,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":true,"text json":b8.parseJSON,"text xml":b8.parseXML},flatOptions:{url:true,context:true}},ajaxSetup:function(bn,j){return j?bz(bz(bn,b8.ajaxSettings),j):bz(b8.ajaxSettings,bn);},ajaxPrefilter:aA(aU),ajaxTransport:aA(c3),ajax:function(dw,dk){function bt(dG,dK,dC,dB){var dF,dE,dH,dJ,dD,dI=dK;if(dz===2){return;}dz=2;if(dp){clearTimeout(dp);}dA=undefined;dl=dB||"";dj.readyState=dG>0?4:0;dF=dG>=200&&dG<300||dG===304;if(dC){dJ=aE(ds,dj,dC);}dJ=cX(ds,dJ,dj,dF);if(dF){if(ds.ifModified){dD=dj.getResponseHeader("Last-Modified");if(dD){b8.lastModified[dt]=dD;}dD=dj.getResponseHeader("etag");if(dD){b8.etag[dt]=dD;}}if(dG===204||ds.type==="HEAD"){dI="nocontent";}else{if(dG===304){dI="notmodified";}else{dI=dJ.state;dE=dJ.data;dH=dJ.error;dF=!dH;}}}else{dH=dI;if(dG||!dI){dI="error";if(dG<0){dG=0;}}}dj.status=dG;dj.statusText=(dK||dI)+"";if(dF){dx.resolveWith(dy,[dE,dI,dj]);}else{dx.rejectWith(dy,[dj,dI,dH]);}dj.statusCode(dr);dr=undefined;if(di){dn.trigger(dF?"ajaxSuccess":"ajaxError",[dj,ds,dF?dE:dH]);}ct.fireWith(dy,[dj,dI]);if(di){dn.trigger("ajaxComplete",[dj,ds]);if(!--b8.active){b8.event.trigger("ajaxStop");}}}if(typeof dw==="object"){dk=dw;
dw=undefined;}dk=dk||{};var dq,dm,dt,dl,dp,di,dA,dv,ds=b8.ajaxSetup({},dk),dy=ds.context||ds,dn=ds.context&&(dy.nodeType||dy.jquery)?b8(dy):b8.event,dx=b8.Deferred(),ct=b8.Callbacks("once memory"),dr=ds.statusCode||{},du={},bn={},dz=0,cn="canceled",dj={readyState:0,getResponseHeader:function(dC){var dB;if(dz===2){if(!dv){dv={};while(dB=bi.exec(dl)){dv[dB[1].toLowerCase()]=dB[2];}}dB=dv[dC.toLowerCase()];}return dB==null?null:dB;},getAllResponseHeaders:function(){return dz===2?dl:null;},setRequestHeader:function(dC,dB){var dD=dC.toLowerCase();if(!dz){dC=bn[dD]=bn[dD]||dC;du[dC]=dB;}return this;},overrideMimeType:function(dB){if(!dz){ds.mimeType=dB;}return this;},statusCode:function(dC){var dB;if(dC){if(dz<2){for(dB in dC){dr[dB]=[dr[dB],dC[dB]];}}else{dj.always(dC[dj.status]);}}return this;},abort:function(dC){var dB=dC||cn;if(dA){dA.abort(dB);}bt(0,dB);return this;}};dx.promise(dj).complete=ct.add;dj.success=dj.done;dj.error=dj.fail;ds.url=((dw||ds.url||aY)+"").replace(aB,"").replace(ax,bc[1]+"//");ds.type=dk.method||dk.type||ds.method||ds.type;ds.dataTypes=b8.trim(ds.dataType||"*").toLowerCase().match(cB)||[""];if(ds.crossDomain==null){dq=aR.exec(ds.url.toLowerCase());ds.crossDomain=!!(dq&&(dq[1]!==bc[1]||dq[2]!==bc[2]||(dq[3]||(dq[1]==="http:"?"80":"443"))!==(bc[3]||(bc[1]==="http:"?"80":"443"))));}if(ds.data&&ds.processData&&typeof ds.data!=="string"){ds.data=b8.param(ds.data,ds.traditional);}cJ(aU,ds,dk,dj);if(dz===2){return dj;}di=ds.global;if(di&&b8.active++===0){b8.event.trigger("ajaxStart");}ds.type=ds.type.toUpperCase();ds.hasContent=!bo.test(ds.type);dt=ds.url;if(!ds.hasContent){if(ds.data){dt=ds.url+=(dh.test(dt)?"&":"?")+ds.data;delete ds.data;}if(ds.cache===false){ds.url=by.test(dt)?dt.replace(by,"$1_="+dg++):dt+(dh.test(dt)?"&":"?")+"_="+dg++;}}if(ds.ifModified){if(b8.lastModified[dt]){dj.setRequestHeader("If-Modified-Since",b8.lastModified[dt]);}if(b8.etag[dt]){dj.setRequestHeader("If-None-Match",b8.etag[dt]);}}if(ds.data&&ds.hasContent&&ds.contentType!==false||dk.contentType){dj.setRequestHeader("Content-Type",ds.contentType);}dj.setRequestHeader("Accept",ds.dataTypes[0]&&ds.accepts[ds.dataTypes[0]]?ds.accepts[ds.dataTypes[0]]+(ds.dataTypes[0]!=="*"?", "+a7+"; q=0.01":""):ds.accepts["*"]);for(dm in ds.headers){dj.setRequestHeader(dm,ds.headers[dm]);}if(ds.beforeSend&&(ds.beforeSend.call(dy,dj,ds)===false||dz===2)){return dj.abort();}cn="abort";for(dm in {success:1,error:1,complete:1}){dj[dm](ds[dm]);}dA=cJ(c3,ds,dk,dj);if(!dA){bt(-1,"No Transport");}else{dj.readyState=1;if(di){dn.trigger("ajaxSend",[dj,ds]);}if(ds.async&&ds.timeout>0){dp=setTimeout(function(){dj.abort("timeout");},ds.timeout);}try{dz=1;dA.send(du,bt);}catch(j){if(dz<2){bt(-1,j);}else{throw j;}}}return dj;},getJSON:function(bn,j,bt){return b8.get(bn,j,bt,"json");},getScript:function(bn,j){return b8.get(bn,undefined,j,"script");}});b8.each(["get","post"],function(bn,j){b8[j]=function(ct,di,cn,bt){if(b8.isFunction(di)){bt=bt||cn;cn=di;di=undefined;}return b8.ajax({url:ct,type:j,dataType:bt,data:di,success:cn});};});b8.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(bn,j){b8.fn[j]=function(bt){return this.on(j,bt);};});b8._evalUrl=function(j){return b8.ajax({url:j,type:"GET",dataType:"script",async:false,global:false,"throws":true});};b8.fn.extend({wrapAll:function(bn){if(b8.isFunction(bn)){return this.each(function(bt){b8(this).wrapAll(bn.call(this,bt));});}if(this[0]){var j=b8(bn,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){j.insertBefore(this[0]);}j.map(function(){var bt=this;while(bt.firstChild&&bt.firstChild.nodeType===1){bt=bt.firstChild;}return bt;}).append(this);}return this;},wrapInner:function(j){if(b8.isFunction(j)){return this.each(function(bn){b8(this).wrapInner(j.call(this,bn));});}return this.each(function(){var bn=b8(this),bt=bn.contents();if(bt.length){bt.wrapAll(j);}else{bn.append(j);}});},wrap:function(bn){var j=b8.isFunction(bn);return this.each(function(bt){b8(this).wrapAll(j?bn.call(this,bt):bn);});},unwrap:function(){return this.parent().each(function(){if(!b8.nodeName(this,"body")){b8(this).replaceWith(this.childNodes);}}).end();}});b8.expr.filters.hidden=function(j){return j.offsetWidth<=0&&j.offsetHeight<=0||!b3.reliableHiddenOffsets()&&(j.style&&j.style.display||b8.css(j,"display"))==="none";};b8.expr.filters.visible=function(j){return !b8.expr.filters.hidden(j);};var cY=/%20/g,bJ=/\[\]$/,bB=/\r?\n/g,ci=/^(?:submit|button|image|reset|file)$/i,cF=/^(?:input|select|textarea|keygen)/i;b8.param=function(cn,bn){var ct,bt=[],j=function(dj,di){di=b8.isFunction(di)?di():di==null?"":di;bt[bt.length]=encodeURIComponent(dj)+"="+encodeURIComponent(di);};if(bn===undefined){bn=b8.ajaxSettings&&b8.ajaxSettings.traditional;}if(b8.isArray(cn)||cn.jquery&&!b8.isPlainObject(cn)){b8.each(cn,function(){j(this.name,this.value);});}else{for(ct in cn){b6(ct,cn[ct],bn,j);}}return bt.join("&").replace(cY,"+");};b8.fn.extend({serialize:function(){return b8.param(this.serializeArray());
},serializeArray:function(){return this.map(function(){var j=b8.prop(this,"elements");return j?b8.makeArray(j):this;}).filter(function(){var j=this.type;return this.name&&!b8(this).is(":disabled")&&cF.test(this.nodeName)&&!ci.test(j)&&(this.checked||!cK.test(j));}).map(function(bn,j){var bt=b8(this).val();return bt==null?null:b8.isArray(bt)?b8.map(bt,function(cn){return{name:j.name,value:cn.replace(bB,"\r\n")};}):{name:j.name,value:bt.replace(bB,"\r\n")};}).get();}});b8.ajaxSettings.xhr=cc.ActiveXObject!==undefined?function(){return !this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&br()||bf();}:br;var bG=0,aM={},dc=b8.ajaxSettings.xhr();if(cc.ActiveXObject){b8(cc).on("unload",function(){for(var j in aM){aM[j](undefined,true);}});}b3.cors=!!dc&&"withCredentials" in dc;dc=b3.ajax=!!dc;if(dc){b8.ajaxTransport(function(bn){if(!bn.crossDomain||b3.cors){var j;return{send:function(dj,ct){var bt,cn=bn.xhr(),di=++bG;cn.open(bn.type,bn.url,bn.async,bn.username,bn.password);if(bn.xhrFields){for(bt in bn.xhrFields){cn[bt]=bn.xhrFields[bt];}}if(bn.mimeType&&cn.overrideMimeType){cn.overrideMimeType(bn.mimeType);}if(!bn.crossDomain&&!dj["X-Requested-With"]){dj["X-Requested-With"]="XMLHttpRequest";}for(bt in dj){if(dj[bt]!==undefined){cn.setRequestHeader(bt,dj[bt]+"");}}cn.send(bn.hasContent&&bn.data||null);j=function(dq,dn){var dm,dl,dp;if(j&&(dn||cn.readyState===4)){delete aM[di];j=undefined;cn.onreadystatechange=b8.noop;if(dn){if(cn.readyState!==4){cn.abort();}}else{dp={};dm=cn.status;if(typeof cn.responseText==="string"){dp.text=cn.responseText;}try{dl=cn.statusText;}catch(dk){dl="";}if(!dm&&bn.isLocal&&!bn.crossDomain){dm=dp.text?200:404;}else{if(dm===1223){dm=204;}}}}if(dp){ct(dm,dl,dp,cn.getAllResponseHeaders());}};if(!bn.async){j();}else{if(cn.readyState===4){setTimeout(j);}else{cn.onreadystatechange=aM[di]=j;}}},abort:function(){if(j){j(undefined,true);}}};}});}b8.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(j){b8.globalEval(j);return j;}}});b8.ajaxPrefilter("script",function(j){if(j.cache===undefined){j.cache=false;}if(j.crossDomain){j.type="GET";j.global=false;}});b8.ajaxTransport("script",function(bn){if(bn.crossDomain){var j,bt=cs.head||b8("head")[0]||cs.documentElement;return{send:function(ct,cn){j=cs.createElement("script");j.async=true;if(bn.scriptCharset){j.charset=bn.scriptCharset;}j.src=bn.url;j.onload=j.onreadystatechange=function(di,dj){if(dj||!j.readyState||/loaded|complete/.test(j.readyState)){j.onload=j.onreadystatechange=null;if(j.parentNode){j.parentNode.removeChild(j);}j=null;if(!dj){cn(200,"success");}}};bt.insertBefore(j,bt.firstChild);},abort:function(){if(j){j.onload(undefined,true);}}};}});var bu=[],a2=/(=)\?(?=&|$)|\?\?/;b8.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var j=bu.pop()||b8.expando+"_"+dg++;this[j]=true;return j;}});b8.ajaxPrefilter("json jsonp",function(bt,dj,ct){var bn,cn,di,j=bt.jsonp!==false&&(a2.test(bt.url)?"url":typeof bt.data==="string"&&!(bt.contentType||"").indexOf("application/x-www-form-urlencoded")&&a2.test(bt.data)&&"data");if(j||bt.dataTypes[0]==="jsonp"){bn=bt.jsonpCallback=b8.isFunction(bt.jsonpCallback)?bt.jsonpCallback():bt.jsonpCallback;if(j){bt[j]=bt[j].replace(a2,"$1"+bn);}else{if(bt.jsonp!==false){bt.url+=(dh.test(bt.url)?"&":"?")+bt.jsonp+"="+bn;}}bt.converters["script json"]=function(){if(!di){b8.error(bn+" was not called");}return di[0];};bt.dataTypes[0]="json";cn=cc[bn];cc[bn]=function(){di=arguments;};ct.always(function(){cc[bn]=cn;if(bt[bn]){bt.jsonpCallback=dj.jsonpCallback;bu.push(bn);}if(di&&b8.isFunction(cn)){cn(di[0]);}di=cn=undefined;});return"script";}});b8.parseHTML=function(cn,bn,ct){if(!cn||typeof cn!=="string"){return null;}if(typeof bn==="boolean"){ct=bn;bn=false;}bn=bn||cs;var bt=bO.exec(cn),j=!ct&&[];if(bt){return[bn.createElement(bt[1])];}bt=b8.buildFragment([cn],bn,j);if(j&&j.length){b8(j).remove();}return b8.merge([],bt.childNodes);};var cE=b8.fn.load;b8.fn.load=function(di,bt,dk){if(typeof di!=="string"&&cE){return cE.apply(this,arguments);}var ct,bn,cn,dj=this,j=di.indexOf(" ");if(j>=0){ct=b8.trim(di.slice(j,di.length));di=di.slice(0,j);}if(b8.isFunction(bt)){dk=bt;bt=undefined;}else{if(bt&&typeof bt==="object"){cn="POST";}}if(dj.length>0){b8.ajax({url:di,type:cn,dataType:"html",data:bt}).done(function(dl){bn=arguments;dj.html(ct?b8("<div>").append(b8.parseHTML(dl)).find(ct):dl);}).complete(dk&&function(dm,dl){dj.each(dk,bn||[dm.responseText,dl,dm]);});}return this;};b8.expr.filters.animated=function(j){return b8.grep(b8.timers,function(bn){return j===bn.elem;}).length;};var bm=cc.document.documentElement;b8.offset={setOffset:function(dk,dp,cn){var j,di,dq,bt,dn,dm,dj,ct=b8.css(dk,"position"),dl=b8(dk),bn={};if(ct==="static"){dk.style.position="relative";}dn=dl.offset();dq=b8.css(dk,"top");dm=b8.css(dk,"left");dj=(ct==="absolute"||ct==="fixed")&&b8.inArray("auto",[dq,dm])>-1;
if(dj){j=dl.position();bt=j.top;di=j.left;}else{bt=parseFloat(dq)||0;di=parseFloat(dm)||0;}if(b8.isFunction(dp)){dp=dp.call(dk,cn,dn);}if(dp.top!=null){bn.top=dp.top-dn.top+bt;}if(dp.left!=null){bn.left=dp.left-dn.left+di;}if("using" in dp){dp.using.call(dk,bn);}else{dl.css(bn);}}};b8.fn.extend({offset:function(ct){if(arguments.length){return ct===undefined?this:this.each(function(dj){b8.offset.setOffset(this,ct,dj);});}var bn,di,cn={top:0,left:0},j=this[0],bt=j&&j.ownerDocument;if(!bt){return;}bn=bt.documentElement;if(!b8.contains(bn,j)){return cn;}if(typeof j.getBoundingClientRect!==cV){cn=j.getBoundingClientRect();}di=aQ(bt);return{top:cn.top+(di.pageYOffset||bn.scrollTop)-(bn.clientTop||0),left:cn.left+(di.pageXOffset||bn.scrollLeft)-(bn.clientLeft||0)};},position:function(){if(!this[0]){return;}var bt,j,cn={top:0,left:0},bn=this[0];if(b8.css(bn,"position")==="fixed"){j=bn.getBoundingClientRect();}else{bt=this.offsetParent();j=this.offset();if(!b8.nodeName(bt[0],"html")){cn=bt.offset();}cn.top+=b8.css(bt[0],"borderTopWidth",true);cn.left+=b8.css(bt[0],"borderLeftWidth",true);}return{top:j.top-cn.top-b8.css(bn,"marginTop",true),left:j.left-cn.left-b8.css(bn,"marginLeft",true)};},offsetParent:function(){return this.map(function(){var j=this.offsetParent||bm;while(j&&!b8.nodeName(j,"html")&&b8.css(j,"position")==="static"){j=j.offsetParent;}return j||bm;});}});b8.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(bn,j){var bt=/Y/.test(j);b8.fn[bn]=function(cn){return c7(this,function(dk,dj,ct){var di=aQ(dk);if(ct===undefined){return di?j in di?di[j]:di.document.documentElement[dj]:dk[dj];}if(di){di.scrollTo(!bt?ct:b8(di).scrollLeft(),bt?ct:b8(di).scrollTop());}else{dk[dj]=ct;}},bn,cn,arguments.length,null);};});b8.each(["top","left"],function(bn,j){b8.cssHooks[j]=aH(b3.pixelPosition,function(bt,cn){if(cn){cn=c1(bt,j);return aO.test(cn)?b8(bt).position()[j]+"px":cn;}});});b8.each({Height:"height",Width:"width"},function(bn,j){b8.each({padding:"inner"+bn,content:j,"":"outer"+bn},function(cn,bt){b8.fn[bt]=function(dj,ct){var di=arguments.length&&(cn||typeof dj!=="boolean"),dk=cn||(dj===true||ct===true?"margin":"border");return c7(this,function(dm,dp,dn){var dl;if(b8.isWindow(dm)){return dm.document.documentElement["client"+bn];}if(dm.nodeType===9){dl=dm.documentElement;return Math.max(dm.body["scroll"+bn],dl["scroll"+bn],dm.body["offset"+bn],dl["offset"+bn],dl["client"+bn]);}return dn===undefined?b8.css(dm,dp,dk):b8.style(dm,dp,dn,dk);},j,di?dj:undefined,di,null);};});});b8.fn.size=function(){return this.length;};b8.fn.andSelf=b8.fn.addBack;if(typeof define==="function"&&define.amd){define("jquery",[],function(){return b8;});}var bb=cc.jQuery,b2=cc.$;b8.noConflict=function(j){if(cc.$===b8){cc.$=b2;}if(j&&cc.jQuery===b8){cc.jQuery=bb;}return b8;};if(typeof bR===cV){cc.jQuery=cc.$=b8;}return b8;});var H=jQuery.noConflict();!function(bv,bd){function bk(bD,bB){for(var bE,j=[],bC=0;bC<bD.length;++bC){if(bE=be[bD[bC]]||bj(bD[bC]),!bE){throw"module definition dependecy not found: "+bD[bC];}j.push(bE);}bB.apply(null,j);}function bq(bC,j,bB){if("string"!=typeof bC){throw"invalid module definition, module id must be defined and be a string";}if(j===bd){throw"invalid module definition, dependencies must be specified";}if(bB===bd){throw"invalid module definition, definition function must be specified";}bk(j,function(){be[bC]=bB.apply(null,arguments);});}function bf(j){return !!be[j];}function bj(bB){for(var bD=bv,j=bB.split(/[.\/]/),bC=0;bC<j.length;++bC){if(!bD[j[bC]]){return;}bD=bD[j[bC]];}return bD;}function bz(bF){for(var bC=0;bC<bF.length;bC++){for(var bD=bv,bE=bF[bC],j=bE.split(/[.\/]/),bB=0;bB<j.length-1;++bB){bD[j[bB]]===bd&&(bD[j[bB]]={}),bD=bD[j[bB]];}bD[j[j.length-1]]=be[bE];}}var be={},bc="moxie/core/utils/Basic",bx="moxie/core/I18n",bm="moxie/core/utils/Mime",bw="moxie/core/utils/Env",bu="moxie/core/utils/Dom",br="moxie/core/Exceptions",bi="moxie/core/EventTarget",bl="moxie/core/utils/Encode",bs="moxie/runtime/Runtime",bb="moxie/runtime/RuntimeClient",a8="moxie/file/Blob",ba="moxie/file/File",aU="moxie/file/FileInput",bA="moxie/file/FileDrop",a9="moxie/runtime/RuntimeTarget",by="moxie/file/FileReader",aF="moxie/core/utils/Url",aC="moxie/file/FileReaderSync",aY="moxie/xhr/FormData",aE="moxie/xhr/XMLHttpRequest",aJ="moxie/runtime/Transporter",aP="moxie/image/Image",aV="moxie/runtime/html5/Runtime",aK="moxie/runtime/html5/file/Blob",aM="moxie/core/utils/Events",aL="moxie/runtime/html5/file/FileInput",aW="moxie/runtime/html5/file/FileDrop",aT="moxie/runtime/html5/file/FileReader",aQ="moxie/runtime/html5/xhr/XMLHttpRequest",aI="moxie/runtime/html5/utils/BinaryReader",bn="moxie/runtime/html5/image/JPEGHeaders",aB="moxie/runtime/html5/image/ExifParser",aX="moxie/runtime/html5/image/JPEG",a7="moxie/runtime/html5/image/PNG",aS="moxie/runtime/html5/image/ImageInfo",bg="moxie/runtime/html5/image/MegaPixel",ay="moxie/runtime/html5/image/Image",bp="moxie/runtime/flash/Runtime",aA="moxie/runtime/flash/file/Blob",az="moxie/runtime/flash/file/FileInput",ax="moxie/runtime/flash/file/FileReader",a6="moxie/runtime/flash/file/FileReaderSync",aO="moxie/runtime/flash/xhr/XMLHttpRequest",aw="moxie/runtime/flash/runtime/Transporter",aN="moxie/runtime/flash/image/Image",aH="moxie/runtime/silverlight/Runtime",bh="moxie/runtime/silverlight/file/Blob",bt="moxie/runtime/silverlight/file/FileInput",bo="moxie/runtime/silverlight/file/FileDrop",a1="moxie/runtime/silverlight/file/FileReader",a4="moxie/runtime/silverlight/file/FileReaderSync",a3="moxie/runtime/silverlight/xhr/XMLHttpRequest",aD="moxie/runtime/silverlight/runtime/Transporter",aR="moxie/runtime/silverlight/image/Image",a5="moxie/runtime/html4/Runtime",aZ="moxie/runtime/html4/file/FileInput",a2="moxie/runtime/html4/file/FileReader",aG="moxie/runtime/html4/xhr/XMLHttpRequest",a0="moxie/runtime/html4/image/Image";
bq(bc,[],function(){var bG=function(bO){var bN;return bO===bN?"undefined":null===bO?"null":bO.nodeType?"node":{}.toString.call(bO).match(/\s([a-z|A-Z]+)/)[1].toLowerCase();},bL=function(bN){var bO;return bC(arguments,function(bQ,bP){bP>0&&bC(bQ,function(bS,bR){bS!==bO&&(bG(bN[bR])===bG(bS)&&~bJ(bG(bS),["array","object"])?bL(bN[bR],bS):bN[bR]=bS);});}),bN;},bC=function(bR,bP){var bT,bO,bQ,bS;if(bR){try{bT=bR.length;}catch(bN){bT=bS;}if(bT===bS){for(bO in bR){if(bR.hasOwnProperty(bO)&&bP(bR[bO],bO)===!1){return;}}}else{for(bQ=0;bT>bQ;bQ++){if(bP(bR[bQ],bQ)===!1){return;}}}}},bE=function(bN){var bO;if(!bN||"object"!==bG(bN)){return !0;}for(bO in bN){return !1;}return !0;},j=function(bO,bR){function bN(bS){"function"===bG(bO[bS])&&bO[bS](function(bT){++bS<bQ&&!bT?bN(bS):bR(bT);});}var bP=0,bQ=bO.length;"function"!==bG(bR)&&(bR=function(){}),bO&&bO.length||bR(),bN(bP);},bB=function(bQ,bO){var bN=0,bP=bQ.length,bR=new Array(bP);bC(bQ,function(bS,bT){bS(function(bV){if(bV){return bO(bV);}var bU=[].slice.call(arguments);bU.shift(),bR[bT]=bU,bN++,bN===bP&&(bR.unshift(null),bO.apply(this,bR));});});},bJ=function(bP,bO){if(bO){if(Array.prototype.indexOf){return Array.prototype.indexOf.call(bO,bP);}for(var bQ=0,bN=bO.length;bN>bQ;bQ++){if(bO[bQ]===bP){return bQ;}}}return -1;},bM=function(bO,bQ){var bN=[];"array"!==bG(bO)&&(bO=[bO]),"array"!==bG(bQ)&&(bQ=[bQ]);for(var bP in bO){-1===bJ(bO[bP],bQ)&&bN.push(bO[bP]);}return bN.length?bN:!1;},bK=function(bP,bO){var bN=[];return bC(bP,function(bQ){-1!==bJ(bQ,bO)&&bN.push(bQ);}),bN.length?bN:null;},bI=function(bO){var bN,bP=[];for(bN=0;bN<bO.length;bN++){bP[bN]=bO[bN];}return bP;},bD=function(){var bN=0;return function(bP){var bQ=(new Date).getTime().toString(32),bO;for(bO=0;5>bO;bO++){bQ+=Math.floor(65535*Math.random()).toString(32);}return(bP||"o_")+bQ+(bN++).toString(32);};}(),bH=function(bN){return bN?String.prototype.trim?String.prototype.trim.call(bN):bN.toString().replace(/^\s*/,"").replace(/\s*$/,""):bN;},bF=function(bO){if("string"!=typeof bO){return bO;}var bN={t:1099511627776,g:1073741824,m:1048576,k:1024},bP;return bO=/^([0-9]+)([mgk]?)$/.exec(bO.toLowerCase().replace(/[^0-9mkg]/g,"")),bP=bO[2],bO=+bO[1],bN.hasOwnProperty(bP)&&(bO*=bN[bP]),bO;};return{guid:bD,typeOf:bG,extend:bL,each:bC,isEmptyObj:bE,inSeries:j,inParallel:bB,inArray:bJ,arrayDiff:bM,arrayIntersect:bK,toArray:bI,trim:bH,parseSizeStr:bF};}),bq(bx,[bc],function(bB){var j={};return{addI18n:function(bC){return bB.extend(j,bC);},translate:function(bC){return j[bC]||bC;},_:function(bC){return this.translate(bC);},sprintf:function(bC){var bD=[].slice.call(arguments,1);return bC.replace(/%[a-z]/g,function(){var bE=bD.shift();return"undefined"!==bB.typeOf(bE)?bE:"";});}};}),bq(bm,[bc,bx],function(bC,bB){var bD="application/msword,doc dot,application/pdf,pdf,application/pgp-signature,pgp,application/postscript,ps ai eps,application/rtf,rtf,application/vnd.ms-excel,xls xlb,application/vnd.ms-powerpoint,ppt pps pot,application/zip,zip,application/x-shockwave-flash,swf swfl,application/vnd.openxmlformats-officedocument.wordprocessingml.document,docx,application/vnd.openxmlformats-officedocument.wordprocessingml.template,dotx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,xlsx,application/vnd.openxmlformats-officedocument.presentationml.presentation,pptx,application/vnd.openxmlformats-officedocument.presentationml.template,potx,application/vnd.openxmlformats-officedocument.presentationml.slideshow,ppsx,application/x-javascript,js,application/json,json,audio/mpeg,mp3 mpga mpega mp2,audio/x-wav,wav,audio/x-m4a,m4a,audio/ogg,oga ogg,audio/aiff,aiff aif,audio/flac,flac,audio/aac,aac,audio/ac3,ac3,audio/x-ms-wma,wma,image/bmp,bmp,image/gif,gif,image/jpeg,jpg jpeg jpe,image/photoshop,psd,image/png,png,image/svg+xml,svg svgz,image/tiff,tiff tif,text/plain,asc txt text diff log,text/html,htm html xhtml,text/css,css,text/csv,csv,text/rtf,rtf,video/mpeg,mpeg mpg mpe m2v,video/quicktime,qt mov,video/mp4,mp4,video/x-m4v,m4v,video/x-flv,flv,video/x-ms-wmv,wmv,video/avi,avi,video/webm,webm,video/3gpp,3gpp 3gp,video/3gpp2,3g2,video/vnd.rn-realvideo,rv,video/ogg,ogv,video/x-matroska,mkv,application/vnd.oasis.opendocument.formula-template,otf,application/octet-stream,exe",j={mimes:{},extensions:{},addMimeType:function(bH){var bF=bH.split(/,/),bI,bE,bG;for(bI=0;bI<bF.length;bI+=2){for(bG=bF[bI+1].split(/ /),bE=0;bE<bG.length;bE++){this.mimes[bG[bE]]=bF[bI];}this.extensions[bF[bI]]=bG;}},extList2mimes:function(bH,bL){var bG=this,bJ,bK,bE,bI,bF=[];for(bK=0;bK<bH.length;bK++){for(bJ=bH[bK].extensions.split(/\s*,\s*/),bE=0;bE<bJ.length;bE++){if("*"===bJ[bE]){return[];}if(bI=bG.mimes[bJ[bE]]){-1===bC.inArray(bI,bF)&&bF.push(bI);}else{if(!bL||!/^\w+$/.test(bJ[bE])){return[];}bF.push("."+bJ[bE]);}}}return bF;},mimes2exts:function(bF){var bG=this,bE=[];return bC.each(bF,function(bH){if("*"===bH){return bE=[],!1;}var bI=bH.match(/^(\w+)\/(\*|\w+)$/);bI&&("*"===bI[2]?bC.each(bG.extensions,function(bK,bJ){new RegExp("^"+bI[1]+"/").test(bJ)&&[].push.apply(bE,bG.extensions[bJ]);
}):bG.extensions[bH]&&[].push.apply(bE,bG.extensions[bH]));}),bE;},mimes2extList:function(bG){var bE=[],bF=[];return"string"===bC.typeOf(bG)&&(bG=bC.trim(bG).split(/\s*,\s*/)),bF=this.mimes2exts(bG),bE.push({title:bB.translate("Files"),extensions:bF.length?bF.join(","):"*"}),bE.mimes=bG,bE;},getFileExtension:function(bF){var bE=bF&&bF.match(/\.([^.]+)$/);return bE?bE[1].toLowerCase():"";},getFileMime:function(bE){return this.mimes[this.getFileExtension(bE)]||"";}};return j.addMimeType(bD),j;}),bq(bw,[bc],function(bD){function bB(bJ,bM,bH){var bI=0,bF=0,bG=0,bK={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},bN=function(bO){return bO=(""+bO).replace(/[_\-+]/g,"."),bO=bO.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,"."),bO.length?bO.split("."):[-8];},bL=function(bO){return bO?isNaN(bO)?bK[bO]||-7:parseInt(bO,10):0;};for(bJ=bN(bJ),bM=bN(bM),bF=Math.max(bJ.length,bM.length),bI=0;bF>bI;bI++){if(bJ[bI]!=bM[bI]){if(bJ[bI]=bL(bJ[bI]),bM[bI]=bL(bM[bI]),bJ[bI]<bM[bI]){bG=-1;break;}if(bJ[bI]>bM[bI]){bG=1;break;}}}if(!bH){return bG;}switch(bH){case">":case"gt":return bG>0;case">=":case"ge":return bG>=0;case"<=":case"le":return 0>=bG;case"==":case"=":case"eq":return 0===bG;case"<>":case"!=":case"ne":return 0!==bG;case"":case"<":case"lt":return 0>bG;default:return null;}}var bE=function(bW){var bK="",bP="?",bS="function",bM="undefined",bO="object",bZ="major",bL="model",bI="name",bY="type",bR="vendor",bX="version",bV="architecture",bT="console",bN="mobile",bQ="tablet",bU={has:function(b1,b0){return -1!==b0.toLowerCase().indexOf(b1.toLowerCase());},lowerize:function(b0){return b0.toLowerCase();}},bH={rgx:function(){for(var b9,b1=0,b7,ca,b8,b6,b2,b5,b4=arguments;b1<b4.length;b1+=2){var b3=b4[b1],b0=b4[b1+1];if(typeof b9===bM){b9={};for(b8 in b0){b6=b0[b8],typeof b6===bO?b9[b6[0]]=bW:b9[b6]=bW;}}for(b7=ca=0;b7<b3.length;b7++){if(b2=b3[b7].exec(this.getUA())){for(b8=0;b8<b0.length;b8++){b5=b2[++ca],b6=b0[b8],typeof b6===bO&&b6.length>0?2==b6.length?b9[b6[0]]=typeof b6[1]==bS?b6[1].call(this,b5):b6[1]:3==b6.length?b9[b6[0]]=typeof b6[1]!==bS||b6[1].exec&&b6[1].test?b5?b5.replace(b6[1],b6[2]):bW:b5?b6[1].call(this,b5,b6[2]):bW:4==b6.length&&(b9[b6[0]]=b5?b6[3].call(this,b5.replace(b6[1],b6[2])):bW):b9[b6]=b5?b5:bW;}break;}}if(b2){break;}}return b9;},str:function(b2,b1){for(var b3 in b1){if(typeof b1[b3]===bO&&b1[b3].length>0){for(var b0=0;b0<b1[b3].length;b0++){if(bU.has(b1[b3][b0],b2)){return b3===bP?bW:b3;}}}else{if(bU.has(b1[b3],b2)){return b3===bP?bW:b3;}}}return b2;}},bF={browser:{oldsafari:{major:{1:["/8","/1","/3"],2:"/4","?":"/"},version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2000:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",RT:"ARM"}}}},bG={browser:[[/(opera\smini)\/((\d+)?[\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/((\d+)?[\w\.-]+)/i,/(opera).+version\/((\d+)?[\w\.]+)/i,/(opera)[\/\s]+((\d+)?[\w\.]+)/i],[bI,bX,bZ],[/\s(opr)\/((\d+)?[\w\.]+)/i],[[bI,"Opera"],bX,bZ],[/(kindle)\/((\d+)?[\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?((\d+)?[\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?((\d+)?[\w\.]*)/i,/(?:ms|\()(ie)\s((\d+)?[\w\.]+)/i,/(rekonq)((?:\/)[\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron)\/((\d+)?[\w\.-]+)/i],[bI,bX,bZ],[/(trident).+rv[:\s]((\d+)?[\w\.]+).+like\sgecko/i],[[bI,"IE"],bX,bZ],[/(yabrowser)\/((\d+)?[\w\.]+)/i],[[bI,"Yandex"],bX,bZ],[/(comodo_dragon)\/((\d+)?[\w\.]+)/i],[[bI,/_/g," "],bX,bZ],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?((\d+)?[\w\.]+)/i],[bI,bX,bZ],[/(dolfin)\/((\d+)?[\w\.]+)/i],[[bI,"Dolphin"],bX,bZ],[/((?:android.+)crmo|crios)\/((\d+)?[\w\.]+)/i],[[bI,"Chrome"],bX,bZ],[/((?:android.+))version\/((\d+)?[\w\.]+)\smobile\ssafari/i],[[bI,"Android Browser"],bX,bZ],[/version\/((\d+)?[\w\.]+).+?mobile\/\w+\s(safari)/i],[bX,bZ,[bI,"Mobile Safari"]],[/version\/((\d+)?[\w\.]+).+?(mobile\s?safari|safari)/i],[bX,bZ,bI],[/webkit.+?(mobile\s?safari|safari)((\/[\w\.]+))/i],[bI,[bZ,bH.str,bF.browser.oldsafari.major],[bX,bH.str,bF.browser.oldsafari.version]],[/(konqueror)\/((\d+)?[\w\.]+)/i,/(webkit|khtml)\/((\d+)?[\w\.]+)/i],[bI,bX,bZ],[/(navigator|netscape)\/((\d+)?[\w\.-]+)/i],[[bI,"Netscape"],bX,bZ],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?((\d+)?[\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/((\d+)?[\w\.-]+)/i,/(mozilla)\/((\d+)?[\w\.]+).+rv\:.+gecko\/\d+/i,/(uc\s?browser|polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|qqbrowser)[\/\s]?((\d+)?[\w\.]+)/i,/(links)\s\(((\d+)?[\w\.]+)/i,/(gobrowser)\/?((\d+)?[\w\.]+)*/i,/(ice\s?browser)\/v?((\d+)?[\w\._]+)/i,/(mosaic)[\/\s]((\d+)?[\w\.]+)/i],[bI,bX,bZ]],engine:[[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[bI,bX],[/rv\:([\w\.]+).*(gecko)/i],[bX,bI]],os:[[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[bI,[bX,bH.str,bF.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[bI,"Windows"],[bX,bH.str,bF.os.windows.version]],[/\((bb)(10);/i],[[bI,"BlackBerry"],bX],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)\/([\w\.]+)/i,/(android|webos|palm\os|qnx|bada|rim\stablet\sos|meego)[\/\s-]?([\w\.]+)*/i],[bI,bX],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[bI,"Symbian"],bX],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[bI,"Firefox OS"],bX],[/(nintendo|playstation)\s([wids3portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)[\/\s-]?([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[bI,bX],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[bI,"Chromium OS"],bX],[/(sunos)\s?([\w\.]+\d)*/i],[[bI,"Solaris"],bX],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[bI,bX],[/(ip[honead]+)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i],[[bI,"iOS"],[bX,/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i],[bI,[bX,/_/g,"."]],[/(haiku)\s(\w+)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(macintosh|mac(?=_powerpc)|plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos)/i,/(unix)\s?([\w\.]+)*/i],[bI,bX]]},bJ=function(b0){var b1=b0||(window&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:bK);
this.getBrowser=function(){return bH.rgx.apply(this,bG.browser);},this.getEngine=function(){return bH.rgx.apply(this,bG.engine);},this.getOS=function(){return bH.rgx.apply(this,bG.os);},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS()};},this.getUA=function(){return b1;},this.setUA=function(b2){return b1=b2,this;},this.setUA(b1);};return(new bJ).getResult();}(),j=function(){var bF={define_property:function(){return !1;}(),create_canvas:function(){var bG=document.createElement("canvas");return !(!bG.getContext||!bG.getContext("2d"));}(),return_response_type:function(bH){try{if(-1!==bD.inArray(bH,["","text","document"])){return !0;}if(window.XMLHttpRequest){var bI=new XMLHttpRequest;if(bI.open("get","/"),"responseType" in bI){return bI.responseType=bH,bI.responseType!==bH?!1:!0;}}}catch(bG){}return !1;},use_data_uri:function(){var bG=new Image;return bG.onload=function(){bF.use_data_uri=1===bG.width&&1===bG.height;},setTimeout(function(){bG.src="data:image/gif;base64,R0lGODlhAQABAIAAAP8AAAAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";},1),!1;}(),use_data_uri_over32kb:function(){return bF.use_data_uri&&("IE"!==bC.browser||bC.version>=9);},use_data_uri_of:function(bG){return bF.use_data_uri&&33000>bG||bF.use_data_uri_over32kb();},use_fileinput:function(){var bG=document.createElement("input");return bG.setAttribute("type","file"),!bG.disabled;}};return function(bH){var bG=[].slice.call(arguments);return bG.shift(),"function"===bD.typeOf(bF[bH])?bF[bH].apply(this,bG):!!bF[bH];};}(),bC={can:j,browser:bE.browser.name,version:parseFloat(bE.browser.major),os:bE.os.name,osVersion:bE.os.version,verComp:bB,swf_url:"../flash/Moxie.swf",xap_url:"../silverlight/Moxie.xap",global_event_dispatcher:"moxie.core.EventTarget.instance.dispatchEvent"};return bC.OS=bC.os,bC;}),bq(bu,[bw],function(bF){var bC=function(bI){return"string"!=typeof bI?bI:document.getElementById(bI);},bH=function(bJ,bI){if(!bJ.className){return !1;}var bK=new RegExp("(^|\\s+)"+bI+"(\\s+|$)");return bK.test(bJ.className);},bB=function(bJ,bI){bH(bJ,bI)||(bJ.className=bJ.className?bJ.className.replace(/\s+$/,"")+" "+bI:bI);},bE=function(bJ,bI){if(bJ.className){var bK=new RegExp("(^|\\s+)"+bI+"(\\s+|$)");bJ.className=bJ.className.replace(bK,function(bM,bL,bN){return" "===bL&&" "===bN?" ":"";});}},bG=function(bJ,bI){return bJ.currentStyle?bJ.currentStyle[bI]:window.getComputedStyle?window.getComputedStyle(bJ,null)[bI]:void 0;},j=function(bP,bK){function bL(bU){var bS,bV,bR=0,bT=0;return bU&&(bV=bU.getBoundingClientRect(),bS="CSS1Compat"===bQ.compatMode?bQ.documentElement:bQ.body,bR=bV.left+bS.scrollLeft,bT=bV.top+bS.scrollTop),{x:bR,y:bT};}var bI=0,bJ=0,bN,bQ=document,bO,bM;if(bP=bP,bK=bK||bQ.body,bP&&bP.getBoundingClientRect&&"IE"===bF.browser&&(!bQ.documentMode||bQ.documentMode<8)){return bO=bL(bP),bM=bL(bK),{x:bO.x-bM.x,y:bO.y-bM.y};}for(bN=bP;bN&&bN!=bK&&bN.nodeType;){bI+=bN.offsetLeft||0,bJ+=bN.offsetTop||0,bN=bN.offsetParent;}for(bN=bP.parentNode;bN&&bN!=bK&&bN.nodeType;){bI-=bN.scrollLeft||0,bJ-=bN.scrollTop||0,bN=bN.parentNode;}return{x:bI,y:bJ};},bD=function(bI){return{w:bI.offsetWidth||bI.clientWidth,h:bI.offsetHeight||bI.clientHeight};};return{get:bC,hasClass:bH,addClass:bB,removeClass:bE,getStyle:bG,getPos:j,getSize:bD};}),bq(br,[bc],function(bB){function j(bD,bC){var bE;for(bE in bD){if(bD[bE]===bC){return bE;}}return null;}return{RuntimeError:function(){function bD(bE){this.code=bE,this.name=j(bC,bE),this.message=this.name+": RuntimeError "+this.code;}var bC={NOT_INIT_ERR:1,NOT_SUPPORTED_ERR:9,JS_ERR:4};return bB.extend(bD,bC),bD.prototype=Error.prototype,bD;}(),OperationNotAllowedException:function(){function bC(bD){this.code=bD,this.name="OperationNotAllowedException";}return bB.extend(bC,{NOT_ALLOWED_ERR:1}),bC.prototype=Error.prototype,bC;}(),ImageError:function(){function bD(bE){this.code=bE,this.name=j(bC,bE),this.message=this.name+": ImageError "+this.code;}var bC={WRONG_FORMAT:1,MAX_RESOLUTION_ERR:2};return bB.extend(bD,bC),bD.prototype=Error.prototype,bD;}(),FileException:function(){function bD(bE){this.code=bE,this.name=j(bC,bE),this.message=this.name+": FileException "+this.code;}var bC={NOT_FOUND_ERR:1,SECURITY_ERR:2,ABORT_ERR:3,NOT_READABLE_ERR:4,ENCODING_ERR:5,NO_MODIFICATION_ALLOWED_ERR:6,INVALID_STATE_ERR:7,SYNTAX_ERR:8};return bB.extend(bD,bC),bD.prototype=Error.prototype,bD;}(),DOMException:function(){function bD(bE){this.code=bE,this.name=j(bC,bE),this.message=this.name+": DOMException "+this.code;}var bC={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25};
return bB.extend(bD,bC),bD.prototype=Error.prototype,bD;}(),EventException:function(){function bC(bD){this.code=bD,this.name="EventException";}return bB.extend(bC,{UNSPECIFIED_EVENT_TYPE_ERR:0}),bC.prototype=Error.prototype,bC;}()};}),bq(bi,[br,bc],function(bB,j){function bC(){var bD={};j.extend(this,{uid:null,init:function(){this.uid||(this.uid=j.guid("uid_"));},addEventListener:function(bI,bF,bH,bJ){var bE=this,bG;return bI=j.trim(bI),/\s/.test(bI)?void j.each(bI.split(/\s+/),function(bK){bE.addEventListener(bK,bF,bH,bJ);}):(bI=bI.toLowerCase(),bH=parseInt(bH,10)||0,bG=bD[this.uid]&&bD[this.uid][bI]||[],bG.push({fn:bF,priority:bH,scope:bJ||this}),bD[this.uid]||(bD[this.uid]={}),void (bD[this.uid][bI]=bG));},hasEventListener:function(bE){return bE?!(!bD[this.uid]||!bD[this.uid][bE]):!!bD[this.uid];},removeEventListener:function(bG,bE){bG=bG.toLowerCase();var bF=bD[this.uid]&&bD[this.uid][bG],bH;if(bF){if(bE){for(bH=bF.length-1;bH>=0;bH--){if(bF[bH].fn===bE){bF.splice(bH,1);break;}}}else{bF=[];}bF.length||(delete bD[this.uid][bG],j.isEmptyObj(bD[this.uid])&&delete bD[this.uid]);}},removeAllEventListeners:function(){bD[this.uid]&&delete bD[this.uid];},dispatchEvent:function(bH){var bE,bF,bK,bM,bL={},bJ=!0,bG;if("string"!==j.typeOf(bH)){if(bM=bH,"string"!==j.typeOf(bM.type)){throw new bB.EventException(bB.EventException.UNSPECIFIED_EVENT_TYPE_ERR);}bH=bM.type,bM.total!==bG&&bM.loaded!==bG&&(bL.total=bM.total,bL.loaded=bM.loaded),bL.async=bM.async||!1;}if(-1!==bH.indexOf("::")?!function(bN){bE=bN[0],bH=bN[1];}(bH.split("::")):bE=this.uid,bH=bH.toLowerCase(),bF=bD[bE]&&bD[bE][bH]){bF.sort(function(bO,bN){return bN.priority-bO.priority;}),bK=[].slice.call(arguments),bK.shift(),bL.type=bH,bK.unshift(bL);var bI=[];j.each(bF,function(bN){bK[0].target=bN.scope,bI.push(bL.async?function(bO){setTimeout(function(){bO(bN.fn.apply(bN.scope,bK)===!1);},1);}:function(bO){bO(bN.fn.apply(bN.scope,bK)===!1);});}),bI.length&&j.inSeries(bI,function(bN){bJ=!bN;});}return bJ;},bind:function(){this.addEventListener.apply(this,arguments);},unbind:function(){this.removeEventListener.apply(this,arguments);},unbindAll:function(){this.removeAllEventListeners.apply(this,arguments);},trigger:function(){return this.dispatchEvent.apply(this,arguments);},convertEventPropsToHandlers:function(bF){var bG;"array"!==j.typeOf(bF)&&(bF=[bF]);for(var bE=0;bE<bF.length;bE++){bG="on"+bF[bE],"function"===j.typeOf(this[bG])?this.addEventListener(bF[bE],this[bG]):"undefined"===j.typeOf(this[bG])&&(this[bG]=null);}}});}return bC.instance=new bC,bC;}),bq(bl,[],function(){var bC=function(bE){return unescape(encodeURIComponent(bE));},bB=function(bE){return decodeURIComponent(escape(bE));},bD=function(bN,bH){if("function"==typeof window.atob){return bH?bB(window.atob(bN)):window.atob(bN);}var bK="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bE,bG,bQ,bS,bR,bP,bJ,bO,bM=0,bL=0,bF="",bI=[];if(!bN){return bN;}bN+="";do{bS=bK.indexOf(bN.charAt(bM++)),bR=bK.indexOf(bN.charAt(bM++)),bP=bK.indexOf(bN.charAt(bM++)),bJ=bK.indexOf(bN.charAt(bM++)),bO=bS<<18|bR<<12|bP<<6|bJ,bE=bO>>16&255,bG=bO>>8&255,bQ=255&bO,bI[bL++]=64==bP?String.fromCharCode(bE):64==bJ?String.fromCharCode(bE,bG):String.fromCharCode(bE,bG,bQ);}while(bM<bN.length);return bF=bI.join(""),bH?bB(bF):bF;},j=function(bS,bH){if(bH&&bC(bS),"function"==typeof window.btoa){return window.btoa(bS);}var bK="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bE,bG,bQ,bT,bR,bP,bJ,bO,bN=0,bL=0,bF="",bI=[];if(!bS){return bS;}do{bE=bS.charCodeAt(bN++),bG=bS.charCodeAt(bN++),bQ=bS.charCodeAt(bN++),bO=bE<<16|bG<<8|bQ,bT=bO>>18&63,bR=bO>>12&63,bP=bO>>6&63,bJ=63&bO,bI[bL++]=bK.charAt(bT)+bK.charAt(bR)+bK.charAt(bP)+bK.charAt(bJ);}while(bN<bS.length);bF=bI.join("");var bM=bS.length%3;return(bM?bF.slice(0,bM-3):bF)+"===".slice(bM||3);};return{utf8_encode:bC,utf8_decode:bB,atob:bD,btoa:j};}),bq(bs,[bc,bu,bi],function(bD,bB,bF){function j(bH,bG,bM,bO,bN){var bL=this,bI,bK=bD.guid(bG+"_"),bJ=bN||"browser";bH=bH||{},bE[bK]=this,bM=bD.extend({access_binary:!1,access_image_binary:!1,display_media:!1,do_cors:!1,drag_and_drop:!1,filter_by_extension:!0,resize_image:!1,report_upload_progress:!1,return_response_headers:!1,return_response_type:!1,return_status_code:!0,send_custom_headers:!1,select_file:!1,select_folder:!1,select_multiple:!0,send_binary_string:!1,send_browser_cookies:!0,send_multipart:!0,slice_blob:!1,stream_upload:!1,summon_file_dialog:!1,upload_filesize:!0,use_http_method:!0},bM),bH.preferred_caps&&(bJ=j.getMode(bO,bH.preferred_caps,bJ)),bI=function(){var bP={};return{exec:function(bS,bT,bQ,bR){return bI[bT]&&(bP[bS]||(bP[bS]={context:this,instance:new bI[bT]}),bP[bS].instance[bQ])?bP[bS].instance[bQ].apply(this,bR):void 0;},removeInstance:function(bQ){delete bP[bQ];},removeAllInstances:function(){var bQ=this;bD.each(bP,function(bS,bR){"function"===bD.typeOf(bS.instance.destroy)&&bS.instance.destroy.call(bS.context),bQ.removeInstance(bR);});}};}(),bD.extend(this,{initialized:!1,uid:bK,type:bG,mode:j.getMode(bO,bH.required_caps,bJ),shimid:bK+"_container",clients:0,options:bH,can:function(bP,bS){var bQ=arguments[2]||bM;
if("string"===bD.typeOf(bP)&&"undefined"===bD.typeOf(bS)&&(bP=j.parseCaps(bP)),"object"===bD.typeOf(bP)){for(var bR in bP){if(!this.can(bR,bP[bR],bQ)){return !1;}}return !0;}return"function"===bD.typeOf(bQ[bP])?bQ[bP].call(this,bS):bS===bQ[bP];},getShimContainer:function(){var bQ,bP=bB.get(this.shimid);return bP||(bQ=this.options.container?bB.get(this.options.container):document.body,bP=document.createElement("div"),bP.id=this.shimid,bP.className="moxie-shim moxie-shim-"+this.type,bD.extend(bP.style,{position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),bQ.appendChild(bP),bQ=null),bP;},getShim:function(){return bI;},shimExec:function(bQ,bP){var bR=[].slice.call(arguments,2);return bL.getShim().exec.call(this,this.uid,bQ,bP,bR);},exec:function(bQ,bP){var bR=[].slice.call(arguments,2);return bL[bQ]&&bL[bQ][bP]?bL[bQ][bP].apply(this,bR):bL.shimExec.apply(this,arguments);},destroy:function(){if(bL){var bP=bB.get(this.shimid);bP&&bP.parentNode.removeChild(bP),bI&&bI.removeAllInstances(),this.unbindAll(),delete bE[this.uid],this.uid=null,bK=bL=bI=bP=null;}}}),this.mode&&bH.required_caps&&!this.can(bH.required_caps)&&(this.mode=!1);}var bC={},bE={};return j.order="html5,flash,silverlight,html4",j.getRuntime=function(bG){return bE[bG]?bE[bG]:!1;},j.addConstructor=function(bH,bG){bG.prototype=bF.instance,bC[bH]=bG;},j.getConstructor=function(bG){return bC[bG]||null;},j.getInfo=function(bH){var bG=j.getRuntime(bH);return bG?{uid:bG.uid,type:bG.type,mode:bG.mode,can:function(){return bG.can.apply(bG,arguments);}}:null;},j.parseCaps=function(bG){var bH={};return"string"!==bD.typeOf(bG)?bG||{}:(bD.each(bG.split(","),function(bI){bH[bI]=!0;}),bH);},j.can=function(bI,bG){var bK,bH=j.getConstructor(bI),bJ;return bH?(bK=new bH({required_caps:bG}),bJ=bK.mode,bK.destroy(),!!bJ):!1;},j.thatCan=function(bI,bG){var bJ=(bG||j.order).split(/\s*,\s*/);for(var bH in bJ){if(j.can(bJ[bH],bI)){return bJ[bH];}}return null;},j.getMode=function(bH,bJ,bG){var bI=null;if("undefined"===bD.typeOf(bG)&&(bG="browser"),bJ&&!bD.isEmptyObj(bH)){if(bD.each(bJ,function(bM,bK){if(bH.hasOwnProperty(bK)){var bL=bH[bK](bM);if("string"==typeof bL&&(bL=[bL]),bI){if(!(bI=bD.arrayIntersect(bI,bL))){return bI=!1;}}else{bI=bL;}}}),bI){return -1!==bD.inArray(bG,bI)?bG:bI[0];}if(bI===!1){return !1;}}return bG;},j.capTrue=function(){return !0;},j.capFalse=function(){return !1;},j.capTest=function(bG){return function(){return !!bG;};},j;}),bq(bb,[br,bc,bs],function(bC,bB,bD){return function j(){var bE;bB.extend(this,{connectRuntime:function(bH){function bI(bK){var bL,bJ;return bK.length?(bL=bK.shift(),(bJ=bD.getConstructor(bL))?(bE=new bJ(bH),bE.bind("Init",function(){bE.initialized=!0,setTimeout(function(){bE.clients++,bF.trigger("RuntimeInit",bE);},1);}),bE.bind("Error",function(){bE.destroy(),bI(bK);}),bE.mode?void bE.init():void bE.trigger("Error")):void bI(bK)):(bF.trigger("RuntimeError",new bC.RuntimeError(bC.RuntimeError.NOT_INIT_ERR)),void (bE=null));}var bF=this,bG;if("string"===bB.typeOf(bH)?bG=bH:"string"===bB.typeOf(bH.ruid)&&(bG=bH.ruid),bG){if(bE=bD.getRuntime(bG)){return bE.clients++,bE;}throw new bC.RuntimeError(bC.RuntimeError.NOT_INIT_ERR);}bI((bH.runtime_order||bD.order).split(/\s*,\s*/));},getRuntime:function(){return bE&&bE.uid?bE:(bE=null,null);},disconnectRuntime:function(){bE&&--bE.clients<=0&&(bE.destroy(),bE=null);}});};}),bq(a8,[bc,bl,bb],function(bD,bB,bE){function j(bH,bF){function bG(bJ,bM,bL){var bI,bK=bC[this.uid];return"string"===bD.typeOf(bK)&&bK.length?(bI=new j(null,{type:bL,size:bM-bJ}),bI.detach(bK.substr(bJ,bI.size)),bI):null;}bE.call(this),bH&&this.connectRuntime(bH),bF?"string"===bD.typeOf(bF)&&(bF={data:bF}):bF={},bD.extend(this,{uid:bF.uid||bD.guid("uid_"),ruid:bH,size:bF.size||0,type:bF.type||"",slice:function(bJ,bI,bK){return this.isDetached()?bG.apply(this,arguments):this.getRuntime().exec.call(this,"Blob","slice",this.getSource(),bJ,bI,bK);},getSource:function(){return bC[this.uid]?bC[this.uid]:null;},detach:function(bI){this.ruid&&(this.getRuntime().exec.call(this,"Blob","destroy"),this.disconnectRuntime(),this.ruid=null),bI=bI||"";var bJ=bI.match(/^data:([^;]*);base64,/);bJ&&(this.type=bJ[1],bI=bB.atob(bI.substring(bI.indexOf("base64,")+7))),this.size=bI.length,bC[this.uid]=bI;},isDetached:function(){return !this.ruid&&"string"===bD.typeOf(bC[this.uid]);},destroy:function(){this.detach(),delete bC[this.uid];}}),bF.data?this.detach(bF.data):bC[this.uid]=bF;}var bC={};return j;}),bq(ba,[bc,bm,a8],function(bC,bB,bD){function j(bF,bH){var bI,bE;if(bH||(bH={}),bE=bH.type&&""!==bH.type?bH.type:bB.getFileMime(bH.name),bH.name){bI=bH.name.replace(/\\/g,"/"),bI=bI.substr(bI.lastIndexOf("/")+1);}else{var bG=bE.split("/")[0];bI=bC.guid((""!==bG?bG:"file")+"_"),bB.extensions[bE]&&(bI+="."+bB.extensions[bE][0]);}bD.apply(this,arguments),bC.extend(this,{type:bE||"",name:bI||bC.guid("file_"),lastModifiedDate:bH.lastModifiedDate||(new Date).toLocaleString()});}return j.prototype=bD.prototype,j;}),bq(aU,[bc,bm,bu,br,bi,bx,ba,bs,bb],function(bF,bJ,bC,bE,j,bB,bH,bK,bI){function bG(bM){var bP=this,bO,bN,bL;
if(-1!==bF.inArray(bF.typeOf(bM),["string","node"])&&(bM={browse_button:bM}),bN=bC.get(bM.browse_button),!bN){throw new bE.DOMException(bE.DOMException.NOT_FOUND_ERR);}bL={accept:[{title:bB.translate("All Files"),extensions:"*"}],name:"file",multiple:!1,required_caps:!1,container:bN.parentNode||document.body},bM=bF.extend({},bL,bM),"string"==typeof bM.required_caps&&(bM.required_caps=bK.parseCaps(bM.required_caps)),"string"==typeof bM.accept&&(bM.accept=bJ.mimes2extList(bM.accept)),bO=bC.get(bM.container),bO||(bO=document.body),"static"===bC.getStyle(bO,"position")&&(bO.style.position="relative"),bO=bN=null,bI.call(bP),bF.extend(bP,{uid:bF.guid("uid_"),ruid:null,shimid:null,files:null,init:function(){bP.convertEventPropsToHandlers(bD),bP.bind("RuntimeInit",function(bR,bQ){bP.ruid=bQ.uid,bP.shimid=bQ.shimid,bP.bind("Ready",function(){bP.trigger("Refresh");},999),bP.bind("Change",function(){var bS=bQ.exec.call(bP,"FileInput","getFiles");bP.files=[],bF.each(bS,function(bT){return 0===bT.size?!0:void bP.files.push(new bH(bP.ruid,bT));});},999),bP.bind("Refresh",function(){var bT,bV,bS,bU;bS=bC.get(bM.browse_button),bU=bC.get(bQ.shimid),bS&&(bT=bC.getPos(bS,bC.get(bM.container)),bV=bC.getSize(bS),bU&&bF.extend(bU.style,{top:bT.y+"px",left:bT.x+"px",width:bV.w+"px",height:bV.h+"px"})),bU=bS=null;}),bQ.exec.call(bP,"FileInput","init",bM);}),bP.connectRuntime(bF.extend({},bM,{required_caps:{select_file:!0}}));},disable:function(bQ){var bR=this.getRuntime();bR&&bR.exec.call(this,"FileInput","disable","undefined"===bF.typeOf(bQ)?!0:bQ);},refresh:function(){bP.trigger("Refresh");},destroy:function(){var bQ=this.getRuntime();bQ&&(bQ.exec.call(this,"FileInput","destroy"),this.disconnectRuntime()),"array"===bF.typeOf(this.files)&&bF.each(this.files,function(bR){bR.destroy();}),this.files=null;}});}var bD=["ready","change","cancel","mouseenter","mouseleave","mousedown","mouseup"];return bG.prototype=j.instance,bG;}),bq(bA,[bx,bu,br,bc,ba,bb,bi,bm],function(bE,bI,bC,bD,j,bB,bG,bJ){function bH(bM){var bK=this,bL;"string"==typeof bM&&(bM={drop_zone:bM}),bL={accept:[{title:bE.translate("All Files"),extensions:"*"}],required_caps:{drag_and_drop:!0}},bM="object"==typeof bM?bD.extend({},bL,bM):bL,bM.container=bI.get(bM.drop_zone)||document.body,"static"===bI.getStyle(bM.container,"position")&&(bM.container.style.position="relative"),"string"==typeof bM.accept&&(bM.accept=bJ.mimes2extList(bM.accept)),bB.call(bK),bD.extend(bK,{uid:bD.guid("uid_"),ruid:null,files:null,init:function(){bK.convertEventPropsToHandlers(bF),bK.bind("RuntimeInit",function(bO,bN){bK.ruid=bN.uid,bK.bind("Drop",function(){var bP=bN.exec.call(bK,"FileDrop","getFiles");bK.files=[],bD.each(bP,function(bQ){bK.files.push(new j(bK.ruid,bQ));});},999),bN.exec.call(bK,"FileDrop","init",bM),bK.dispatchEvent("ready");}),bK.connectRuntime(bM);},destroy:function(){var bN=this.getRuntime();bN&&(bN.exec.call(this,"FileDrop","destroy"),this.disconnectRuntime()),this.files=null;}});}var bF=["ready","dragenter","dragleave","drop","error"];return bH.prototype=bG.instance,bH;}),bq(a9,[bc,bb,bi],function(bC,bB,bD){function j(){this.uid=bC.guid("uid_"),bB.call(this),this.destroy=function(){this.disconnectRuntime(),this.unbindAll();};}return j.prototype=bD.instance,j;}),bq(by,[bc,bl,br,bi,a8,ba,a9],function(bE,bH,bC,bD,j,bB,bF){function bI(){function bJ(bQ,bN){function bM(bS){bK.readyState=bI.DONE,bK.error=bS,bK.trigger("error"),bR();}function bR(){bL.destroy(),bL=null,bK.trigger("loadend");}function bP(bS){bL.bind("Error",function(bU,bT){bM(bT);}),bL.bind("Progress",function(bT){bK.result=bS.exec.call(bL,"FileReader","getResult"),bK.trigger(bT);}),bL.bind("Load",function(bT){bK.readyState=bI.DONE,bK.result=bS.exec.call(bL,"FileReader","getResult"),bK.trigger(bT),bR();}),bS.exec.call(bL,"FileReader","read",bQ,bN);}if(bL=new bF,this.convertEventPropsToHandlers(bG),this.readyState===bI.LOADING){return bM(new bC.DOMException(bC.DOMException.INVALID_STATE_ERR));}if(this.readyState=bI.LOADING,this.trigger("loadstart"),bN instanceof j){if(bN.isDetached()){var bO=bN.getSource();switch(bQ){case"readAsText":case"readAsBinaryString":this.result=bO;break;case"readAsDataURL":this.result="data:"+bN.type+";base64,"+bH.btoa(bO);}this.readyState=bI.DONE,this.trigger("load"),bR();}else{bP(bL.connectRuntime(bN.ruid));}}else{bM(new bC.DOMException(bC.DOMException.NOT_FOUND_ERR));}}var bK=this,bL;bE.extend(this,{uid:bE.guid("uid_"),readyState:bI.EMPTY,result:null,error:null,readAsBinaryString:function(bM){bJ.call(this,"readAsBinaryString",bM);},readAsDataURL:function(bM){bJ.call(this,"readAsDataURL",bM);},readAsText:function(bM){bJ.call(this,"readAsText",bM);},abort:function(){this.result=null,-1===bE.inArray(this.readyState,[bI.EMPTY,bI.DONE])&&(this.readyState===bI.LOADING&&(this.readyState=bI.DONE),bL&&bL.getRuntime().exec.call(this,"FileReader","abort"),this.trigger("abort"),this.trigger("loadend"));},destroy:function(){this.abort(),bL&&(bL.getRuntime().exec.call(this,"FileReader","destroy"),bL.disconnectRuntime()),bK=bL=null;
}});}var bG=["loadstart","progress","load","abort","error","loadend"];return bI.EMPTY=0,bI.LOADING=1,bI.DONE=2,bI.prototype=bD.instance,bI;}),bq(aF,[],function(){var bB=function(bK,bF){for(var bG=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],bD=bG.length,bE={http:80,https:443},bI={},bL=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\\?([^#]*))?(?:#(.*))?)/,bJ=bL.exec(bK||"");bD--;){bJ[bD]&&(bI[bG[bD]]=bJ[bD]);}if(!bI.scheme){bF&&"string"!=typeof bF||(bF=bB(bF||document.location.href)),bI.scheme=bF.scheme,bI.host=bF.host,bI.port=bF.port;var bH="";/^[^\/]/.test(bI.path)&&(bH=bF.path,/(\/|\/[^\.]+)$/.test(bH)?bH+="/":bH=bH.replace(/\/[^\/]+$/,"/")),bI.path=bH+(bI.path||"");}return bI.port||(bI.port=bE[bI.scheme]||80),bI.port=parseInt(bI.port,10),bI.path||(bI.path="/"),delete bI.source,bI;},j=function(bE){var bF={http:80,https:443},bD=bB(bE);return bD.scheme+"://"+bD.host+(bD.port!==bF[bD.scheme]?":"+bD.port:"")+bD.path+(bD.query?bD.query:"");},bC=function(bD){function bE(bF){return[bF.scheme,bF.host,bF.port].join("/");}return"string"==typeof bD&&(bD=bB(bD)),bE(bB())===bE(bD);};return{parseUrl:bB,resolveUrl:j,hasSameOrigin:bC};}),bq(aC,[bc,bb,bl],function(bB,j,bC){return function(){function bD(bJ,bG){if(!bG.isDetached()){var bF=this.connectRuntime(bG.ruid).exec.call(this,"FileReaderSync","read",bJ,bG);return this.disconnectRuntime(),bF;}var bI=bG.getSource();switch(bJ){case"readAsBinaryString":return bI;case"readAsDataURL":return"data:"+bG.type+";base64,"+bC.btoa(bI);case"readAsText":for(var bK="",bE=0,bH=bI.length;bH>bE;bE++){bK+=String.fromCharCode(bI[bE]);}return bK;}}j.call(this),bB.extend(this,{uid:bB.guid("uid_"),readAsBinaryString:function(bE){return bD.call(this,"readAsBinaryString",bE);},readAsDataURL:function(bE){return bD.call(this,"readAsDataURL",bE);},readAsText:function(bE){return bD.call(this,"readAsText",bE);}});};}),bq(aY,[br,bc,a8],function(bC,bB,bD){function j(){var bF,bE=[];bB.extend(this,{append:function(bI,bJ){var bG=this,bH=bB.typeOf(bJ);bJ instanceof bD?bF={name:bI,value:bJ}:"array"===bH?(bI+="[]",bB.each(bJ,function(bK){bG.append(bI,bK);})):"object"===bH?bB.each(bJ,function(bL,bK){bG.append(bI+"["+bK+"]",bL);}):"null"===bH||"undefined"===bH||"number"===bH&&isNaN(bJ)?bG.append(bI,"false"):bE.push({name:bI,value:bJ.toString()});},hasBlob:function(){return !!this.getBlob();},getBlob:function(){return bF&&bF.value||null;},getBlobName:function(){return bF&&bF.name||null;},each:function(bG){bB.each(bE,function(bH){bG(bH.value,bH.name);}),bF&&bG(bF.value,bF.name);},destroy:function(){bF=null,bE=[];}});}return j;}),bq(aE,[bc,br,bi,bl,aF,bs,a9,a8,aC,aY,bw,bm],function(bO,bC,bH,bK,bE,bG,bR,bD,bB,bQ,bJ,bP){function bN(){this.uid=bO.guid("uid_");}function bL(){function ce(ck,cj){return b1.hasOwnProperty(ck)?1===arguments.length?bJ.can("define_property")?b1[ck]:b6[ck]:void (bJ.can("define_property")?b1[ck]=cj:b6[ck]=cj):void 0;}function b8(ck){function cj(){cf&&(cf.destroy(),cf=null),cl.dispatchEvent("loadend"),cl=null;}function cm(cn){cf.bind("LoadStart",function(co){ce("readyState",bL.LOADING),cl.dispatchEvent("readystatechange"),cl.dispatchEvent(co),b2&&cl.upload.dispatchEvent(co);}),cf.bind("Progress",function(co){ce("readyState")!==bL.LOADING&&(ce("readyState",bL.LOADING),cl.dispatchEvent("readystatechange")),cl.dispatchEvent(co);}),cf.bind("UploadProgress",function(co){b2&&cl.upload.dispatchEvent({type:"progress",lengthComputable:!1,total:co.total,loaded:co.loaded});}),cf.bind("Load",function(co){ce("readyState",bL.DONE),ce("status",Number(cn.exec.call(cf,"XMLHttpRequest","getStatus")||0)),ce("statusText",bF[ce("status")]||""),ce("response",cn.exec.call(cf,"XMLHttpRequest","getResponse",ce("responseType"))),~bO.inArray(ce("responseType"),["text",""])?ce("responseText",ce("response")):"document"===ce("responseType")&&ce("responseXML",ce("response")),bS=cn.exec.call(cf,"XMLHttpRequest","getAllResponseHeaders"),cl.dispatchEvent("readystatechange"),ce("status")>0?(b2&&cl.upload.dispatchEvent(co),cl.dispatchEvent(co)):(bY=!0,cl.dispatchEvent("error")),cj();}),cf.bind("Abort",function(co){cl.dispatchEvent(co),cj();}),cf.bind("Error",function(co){bY=!0,ce("readyState",bL.DONE),cl.dispatchEvent("readystatechange"),ca=!0,cl.dispatchEvent(co),cj();}),cn.exec.call(cf,"XMLHttpRequest","send",{url:b9,method:ci,async:b5,user:ch,password:bV,headers:b3,mimeType:cd,encoding:bT,responseType:cl.responseType,withCredentials:cl.withCredentials,options:bW},ck);}var cl=this;bZ=(new Date).getTime(),cf=new bR,"string"==typeof bW.required_caps&&(bW.required_caps=bG.parseCaps(bW.required_caps)),bW.required_caps=bO.extend({},bW.required_caps,{return_response_type:cl.responseType}),ck instanceof bQ&&(bW.required_caps.send_multipart=!0),b0||(bW.required_caps.do_cors=!0),bW.ruid?cm(cf.connectRuntime(bW)):(cf.bind("RuntimeInit",function(co,cn){cm(cn);}),cf.bind("RuntimeError",function(co,cn){cl.dispatchEvent("RuntimeError",cn);
}),cf.connectRuntime(bW));}function cg(){ce("responseText",""),ce("responseXML",null),ce("response",null),ce("status",0),ce("statusText",""),bZ=cb=null;}var b6=this,b1={timeout:0,readyState:bL.UNSENT,withCredentials:!1,status:0,statusText:"",responseType:"",responseXML:null,responseText:null,response:null},b5=!0,b9,ci,b3={},ch,bV,bT=null,cd=null,bU=!1,bX=!1,b2=!1,ca=!1,bY=!1,b0=!1,bZ,cb,b7=null,b4=null,bW={},cf,bS="",cc;bO.extend(this,b1,{uid:bO.guid("uid_"),upload:new bN,open:function(cn,ck,cm,cl,co){var cj;if(!cn||!ck){throw new bC.DOMException(bC.DOMException.SYNTAX_ERR);}if(/[\u0100-\uffff]/.test(cn)||bK.utf8_encode(cn)!==cn){throw new bC.DOMException(bC.DOMException.SYNTAX_ERR);}if(~bO.inArray(cn.toUpperCase(),["CONNECT","DELETE","GET","HEAD","OPTIONS","POST","PUT","TRACE","TRACK"])&&(ci=cn.toUpperCase()),~bO.inArray(ci,["CONNECT","TRACE","TRACK"])){throw new bC.DOMException(bC.DOMException.SECURITY_ERR);}if(ck=bK.utf8_encode(ck),cj=bE.parseUrl(ck),b0=bE.hasSameOrigin(cj),b9=bE.resolveUrl(ck),(cl||co)&&!b0){throw new bC.DOMException(bC.DOMException.INVALID_ACCESS_ERR);}if(ch=cl||cj.user,bV=co||cj.pass,b5=cm||!0,b5===!1&&(ce("timeout")||ce("withCredentials")||""!==ce("responseType"))){throw new bC.DOMException(bC.DOMException.INVALID_ACCESS_ERR);}bU=!b5,bX=!1,b3={},cg.call(this),ce("readyState",bL.OPENED),this.convertEventPropsToHandlers(["readystatechange"]),this.dispatchEvent("readystatechange");},setRequestHeader:function(ck,cl){var cj=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","content-transfer-encoding","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"];if(ce("readyState")!==bL.OPENED||bX){throw new bC.DOMException(bC.DOMException.INVALID_STATE_ERR);}if(/[\u0100-\uffff]/.test(ck)||bK.utf8_encode(ck)!==ck){throw new bC.DOMException(bC.DOMException.SYNTAX_ERR);}return ck=bO.trim(ck).toLowerCase(),~bO.inArray(ck,cj)||/^(proxy\-|sec\-)/.test(ck)?!1:(b3[ck]?b3[ck]+=", "+cl:b3[ck]=cl,!0);},getAllResponseHeaders:function(){return bS||"";},getResponseHeader:function(cj){return cj=cj.toLowerCase(),bY||~bO.inArray(cj,["set-cookie","set-cookie2"])?null:bS&&""!==bS&&(cc||(cc={},bO.each(bS.split(/\r\n/),function(ck){var cl=ck.split(/:\s+/);2===cl.length&&(cl[0]=bO.trim(cl[0]),cc[cl[0].toLowerCase()]={header:cl[0],value:bO.trim(cl[1])});})),cc.hasOwnProperty(cj))?cc[cj].header+": "+cc[cj].value:null;},overrideMimeType:function(cj){var ck,cl;if(~bO.inArray(ce("readyState"),[bL.LOADING,bL.DONE])){throw new bC.DOMException(bC.DOMException.INVALID_STATE_ERR);}if(cj=bO.trim(cj.toLowerCase()),/;/.test(cj)&&(ck=cj.match(/^([^;]+)(?:;\scharset\=)?(.*)$/))&&(cj=ck[1],ck[2]&&(cl=ck[2])),!bP.mimes[cj]){throw new bC.DOMException(bC.DOMException.SYNTAX_ERR);}b7=cj,b4=cl;},send:function(cl,cj){if(bW="string"===bO.typeOf(cj)?{ruid:cj}:cj?cj:{},this.convertEventPropsToHandlers(bI),this.upload.convertEventPropsToHandlers(bI),this.readyState!==bL.OPENED||bX){throw new bC.DOMException(bC.DOMException.INVALID_STATE_ERR);}if(cl instanceof bD){bW.ruid=cl.ruid,cd=cl.type||"application/octet-stream";}else{if(cl instanceof bQ){if(cl.hasBlob()){var ck=cl.getBlob();bW.ruid=ck.ruid,cd=ck.type||"application/octet-stream";}}else{"string"==typeof cl&&(bT="UTF-8",cd="text/plain;charset=UTF-8",cl=bK.utf8_encode(cl));}}this.withCredentials||(this.withCredentials=bW.required_caps&&bW.required_caps.send_browser_cookies&&!b0),b2=!bU&&this.upload.hasEventListener(),bY=!1,ca=!cl,bU||(bX=!0),b8.call(this,cl);},abort:function(){if(bY=!0,bU=!1,~bO.inArray(ce("readyState"),[bL.UNSENT,bL.OPENED,bL.DONE])){ce("readyState",bL.UNSENT);}else{if(ce("readyState",bL.DONE),bX=!1,!cf){throw new bC.DOMException(bC.DOMException.INVALID_STATE_ERR);}cf.getRuntime().exec.call(cf,"XMLHttpRequest","abort",ca),ca=!0;}},destroy:function(){cf&&("function"===bO.typeOf(cf.destroy)&&cf.destroy(),cf=null),this.unbindAll(),this.upload&&(this.upload.unbindAll(),this.upload=null);}});}var bF={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"Reserved",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",426:"Upgrade Required",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",510:"Not Extended"};
bN.prototype=bH.instance;var bI=["loadstart","progress","abort","error","load","timeout","loadend"],bM=1,j=2;return bL.UNSENT=0,bL.OPENED=1,bL.HEADERS_RECEIVED=2,bL.LOADING=3,bL.DONE=4,bL.prototype=bH.instance,bL;}),bq(aJ,[bc,bl,bb,bi],function(bD,bB,bE,j){function bC(){function bH(){bG=bJ=0,bK=this.result=null;}function bF(bP,bQ){var bO=this;bM=bQ,bO.bind("TransportingProgress",function(bR){bJ=bR.loaded,bG>bJ&&-1===bD.inArray(bO.state,[bC.IDLE,bC.DONE])&&bL.call(bO);},999),bO.bind("TransportingComplete",function(){bJ=bG,bO.state=bC.DONE,bK=null,bO.result=bM.exec.call(bO,"Transporter","getAsBlob",bP||"");},999),bO.state=bC.BUSY,bO.trigger("TransportingStarted"),bL.call(bO);}function bL(){var bP=this,bQ,bO=bG-bJ;bI>bO&&(bI=bO),bQ=bB.btoa(bK.substr(bJ,bI)),bM.exec.call(bP,"Transporter","receive",bQ,bG);}var bN,bM,bK,bG,bJ,bI;bE.call(this),bD.extend(this,{uid:bD.guid("uid_"),state:bC.IDLE,result:null,transport:function(bQ,bS,bR){var bO=this;if(bR=bD.extend({chunk_size:204798},bR),(bN=bR.chunk_size%3)&&(bR.chunk_size+=3-bN),bI=bR.chunk_size,bH.call(this),bK=bQ,bG=bQ.length,"string"===bD.typeOf(bR)||bR.ruid){bF.call(bO,bS,this.connectRuntime(bR));}else{var bP=function(bU,bT){bO.unbind("RuntimeInit",bP),bF.call(bO,bS,bT);};this.bind("RuntimeInit",bP),this.connectRuntime(bR);}},abort:function(){var bO=this;bO.state=bC.IDLE,bM&&(bM.exec.call(bO,"Transporter","clear"),bO.trigger("TransportingAborted")),bH.call(bO);},destroy:function(){this.unbindAll(),bM=null,this.disconnectRuntime(),bH.call(this);}});}return bC.IDLE=0,bC.BUSY=1,bC.DONE=2,bC.prototype=j.instance,bC;}),bq(aP,[bc,bu,br,aC,aE,bs,bb,aJ,bw,bi,a8,ba,bl],function(bI,bN,bD,bF,j,bC,bL,bO,bM,bK,bE,bJ,bH){function bG(){function bR(bU){bU||(bU=this.getRuntime().exec.call(this,"Image","getInfo")),this.size=bU.size,this.width=bU.width,this.height=bU.height,this.type=bU.type,this.meta=bU.meta,""===this.name&&(this.name=bU.name);}function bT(bV){var bU=bI.typeOf(bV);try{if(bV instanceof bG){if(!bV.size){throw new bD.DOMException(bD.DOMException.INVALID_STATE_ERR);}bP.apply(this,arguments);}else{if(bV instanceof bE){if(!~bI.inArray(bV.type,["image/jpeg","image/png"])){throw new bD.ImageError(bD.ImageError.WRONG_FORMAT);}bS.apply(this,arguments);}else{if(-1!==bI.inArray(bU,["blob","file"])){bT.call(this,new bJ(null,bV),arguments[1]);}else{if("string"===bU){/^data:[^;]*;base64,/.test(bV)?bT.call(this,new bE(null,{data:bV}),arguments[1]):bQ.apply(this,arguments);}else{if("node"!==bU||"img"!==bV.nodeName.toLowerCase()){throw new bD.DOMException(bD.DOMException.TYPE_MISMATCH_ERR);}bT.call(this,bV.src,arguments[1]);}}}}}catch(bW){this.trigger("error",bW.code);}}function bP(bV,bW){var bU=this.connectRuntime(bV.ruid);this.ruid=bU.uid,bU.exec.call(this,"Image","loadFromImage",bV,"undefined"===bI.typeOf(bW)?!0:bW);}function bS(bV,bX){function bU(bY){bW.ruid=bY.uid,bY.exec.call(bW,"Image","loadFromBlob",bV);}var bW=this;bW.name=bV.name||"",bV.isDetached()?(this.bind("RuntimeInit",function(bZ,bY){bU(bY);}),bX&&"string"==typeof bX.required_caps&&(bX.required_caps=bC.parseCaps(bX.required_caps)),this.connectRuntime(bI.extend({required_caps:{access_image_binary:!0,resize_image:!0}},bX))):bU(this.connectRuntime(bV.ruid));}function bQ(bW,bV){var bX=this,bU;bU=new j,bU.open("get",bW),bU.responseType="blob",bU.onprogress=function(bY){bX.trigger(bY);},bU.onload=function(){bS.call(bX,bU.response,!0);},bU.onerror=function(bY){bX.trigger(bY);},bU.onloadend=function(){bU.destroy();},bU.bind("RuntimeError",function(bZ,bY){bX.trigger("RuntimeError",bY);}),bU.send(null,bV);}bL.call(this),bI.extend(this,{uid:bI.guid("uid_"),ruid:null,name:"",size:0,width:0,height:0,type:"",meta:{},clone:function(){this.load.apply(this,arguments);},load:function(){this.bind("Load Resize",function(){bR.call(this);},999),this.convertEventPropsToHandlers(bB),bT.apply(this,arguments);},downsize:function(bV){var bU={width:this.width,height:this.height,crop:!1,preserveHeaders:!0};bV="object"==typeof bV?bI.extend(bU,bV):bI.extend(bU,{width:arguments[0],height:arguments[1],crop:arguments[2],preserveHeaders:arguments[3]});try{if(!this.size){throw new bD.DOMException(bD.DOMException.INVALID_STATE_ERR);}if(this.width>bG.MAX_RESIZE_WIDTH||this.height>bG.MAX_RESIZE_HEIGHT){throw new bD.ImageError(bD.ImageError.MAX_RESOLUTION_ERR);}this.getRuntime().exec.call(this,"Image","downsize",bV.width,bV.height,bV.crop,bV.preserveHeaders);}catch(bW){this.trigger("error",bW.code);}},crop:function(bV,bU,bW){this.downsize(bV,bU,!0,bW);},getAsCanvas:function(){if(!bM.can("create_canvas")){throw new bD.RuntimeError(bD.RuntimeError.NOT_SUPPORTED_ERR);}var bU=this.connectRuntime(this.ruid);return bU.exec.call(this,"Image","getAsCanvas");},getAsBlob:function(bV,bU){if(!this.size){throw new bD.DOMException(bD.DOMException.INVALID_STATE_ERR);}return bV||(bV="image/jpeg"),"image/jpeg"!==bV||bU||(bU=90),this.getRuntime().exec.call(this,"Image","getAsBlob",bV,bU);},getAsDataURL:function(bV,bU){if(!this.size){throw new bD.DOMException(bD.DOMException.INVALID_STATE_ERR);
}return this.getRuntime().exec.call(this,"Image","getAsDataURL",bV,bU);},getAsBinaryString:function(bV,bU){var bW=this.getAsDataURL(bV,bU);return bH.atob(bW.substring(bW.indexOf("base64,")+7));},embed:function(bZ){function bU(){if(bM.can("create_canvas")){var b7=b4.getAsCanvas();if(b7){return bZ.appendChild(b7),b7=null,b4.destroy(),void bW.trigger("embedded");}}var b8=b4.getAsDataURL(b2,bY);if(!b8){throw new bD.ImageError(bD.ImageError.WRONG_FORMAT);}if(bM.can("use_data_uri_of",b8.length)){bZ.innerHTML='<img src="'+b8+'" width="'+b4.width+'" height="'+b4.height+'" />',b4.destroy(),bW.trigger("embedded");}else{var b9=new bO;b9.bind("TransportingComplete",function(){b6=bW.connectRuntime(this.result.ruid),bW.bind("Embedded",function(){bI.extend(b6.getShimContainer().style,{top:"0px",left:"0px",width:b4.width+"px",height:b4.height+"px"}),b6=null;},999),b6.exec.call(bW,"ImageView","display",this.result.uid,bX,b0),b4.destroy();}),b9.transport(bH.atob(b8.substring(b8.indexOf("base64,")+7)),b2,bI.extend({},bV,{required_caps:{display_media:!0},runtime_order:"flash,silverlight",container:bZ}));}}var bW=this,b4,b2,bY,b1,bV=arguments[1]||{},bX=this.width,b0=this.height,b6;try{if(!(bZ=bN.get(bZ))){throw new bD.DOMException(bD.DOMException.INVALID_NODE_TYPE_ERR);}if(!this.size){throw new bD.DOMException(bD.DOMException.INVALID_STATE_ERR);}if(this.width>bG.MAX_RESIZE_WIDTH||this.height>bG.MAX_RESIZE_HEIGHT){throw new bD.ImageError(bD.ImageError.MAX_RESOLUTION_ERR);}if(b2=bV.type||this.type||"image/jpeg",bY=bV.quality||90,b1="undefined"!==bI.typeOf(bV.crop)?bV.crop:!1,bV.width){bX=bV.width,b0=bV.height||bX;}else{var b3=bN.getSize(bZ);b3.w&&b3.h&&(bX=b3.w,b0=b3.h);}return b4=new bG,b4.bind("Resize",function(){bU.call(bW);}),b4.bind("Load",function(){b4.downsize(bX,b0,b1,!1);}),b4.clone(this,!1),b4;}catch(b5){this.trigger("error",b5.code);}},destroy:function(){this.ruid&&(this.getRuntime().exec.call(this,"Image","destroy"),this.disconnectRuntime()),this.unbindAll();}});}var bB=["progress","load","error","resize","embedded"];return bG.MAX_RESIZE_WIDTH=6500,bG.MAX_RESIZE_HEIGHT=6500,bG.prototype=bK.instance,bG;}),bq(aV,[bc,br,bs,bw],function(bE,bC,bG,bB){function bD(bI){var bK=this,bJ=bG.capTest,bH=bG.capTrue,bL=bE.extend({access_binary:bJ(window.FileReader||window.File&&window.File.getAsDataURL),access_image_binary:function(){return bK.can("access_binary")&&!!j.Image;},display_media:bJ(bB.can("create_canvas")||bB.can("use_data_uri_over32kb")),do_cors:bJ(window.XMLHttpRequest&&"withCredentials" in new XMLHttpRequest),drag_and_drop:bJ(function(){var bM=document.createElement("div");return("draggable" in bM||"ondragstart" in bM&&"ondrop" in bM)&&("IE"!==bB.browser||bB.version>9);}()),filter_by_extension:bJ(function(){return"Chrome"===bB.browser&&bB.version>=28||"IE"===bB.browser&&bB.version>=10;}()),return_response_headers:bH,return_response_type:function(bM){return"json"===bM&&window.JSON?!0:bB.can("return_response_type",bM);},return_status_code:bH,report_upload_progress:bJ(window.XMLHttpRequest&&(new XMLHttpRequest).upload),resize_image:function(){return bK.can("access_binary")&&bB.can("create_canvas");},select_file:function(){return bB.can("use_fileinput")&&window.File;},select_folder:function(){return bK.can("select_file")&&"Chrome"===bB.browser&&bB.version>=21;},select_multiple:function(){return !(!bK.can("select_file")||"Safari"===bB.browser&&"Windows"===bB.os||"iOS"===bB.os&&bB.verComp(bB.osVersion,"7.0.4","<"));},send_binary_string:bJ(window.XMLHttpRequest&&((new XMLHttpRequest).sendAsBinary||window.Uint8Array&&window.ArrayBuffer)),send_custom_headers:bJ(window.XMLHttpRequest),send_multipart:function(){return !!(window.XMLHttpRequest&&(new XMLHttpRequest).upload&&window.FormData)||bK.can("send_binary_string");},slice_blob:bJ(window.File&&(File.prototype.mozSlice||File.prototype.webkitSlice||File.prototype.slice)),stream_upload:function(){return bK.can("slice_blob")&&bK.can("send_multipart");},summon_file_dialog:bJ(function(){return"Firefox"===bB.browser&&bB.version>=4||"Opera"===bB.browser&&bB.version>=12||"IE"===bB.browser&&bB.version>=10||!!~bE.inArray(bB.browser,["Chrome","Safari"]);}()),upload_filesize:bH},arguments[2]);bG.call(this,bI,arguments[1]||bF,bL),bE.extend(this,{init:function(){this.trigger("Init");},destroy:function(bM){return function(){bM.call(bK),bM=bK=null;};}(this.destroy)}),bE.extend(this.getShim(),j);}var bF="html5",j={};return bG.addConstructor(bF,bD),j;}),bq(aK,[aV,a8],function(bB,j){function bC(){function bD(bH,bF,bI){var bE;if(!window.File.prototype.slice){return(bE=window.File.prototype.webkitSlice||window.File.prototype.mozSlice)?bE.call(bH,bF,bI):null;}try{return bH.slice(),bH.slice(bF,bI);}catch(bG){return bH.slice(bF,bI-bF);}}this.slice=function(){return new j(this.getRuntime().uid,bD.apply(this,arguments));};}return bB.Blob=bC;}),bq(aM,[bc],function(bF){function bC(){this.returnValue=!1;}function bH(){this.cancelBubble=!0;}var bB={},bE="moxie_"+bF.guid(),bG=function(bM,bJ,bL,bK){var bN,bI;bJ=bJ.toLowerCase(),bM.addEventListener?(bN=bL,bM.addEventListener(bJ,bN,!1)):bM.attachEvent&&(bN=function(){var bO=window.event;
bO.target||(bO.target=bO.srcElement),bO.preventDefault=bC,bO.stopPropagation=bH,bL(bO);},bM.attachEvent("on"+bJ,bN)),bM[bE]||(bM[bE]=bF.guid()),bB.hasOwnProperty(bM[bE])||(bB[bM[bE]]={}),bI=bB[bM[bE]],bI.hasOwnProperty(bJ)||(bI[bJ]=[]),bI[bJ].push({func:bN,orig:bL,key:bK});},j=function(bK,bO,bM){var bI,bL;if(bO=bO.toLowerCase(),bK[bE]&&bB[bK[bE]]&&bB[bK[bE]][bO]){bI=bB[bK[bE]][bO];for(var bJ=bI.length-1;bJ>=0&&(bI[bJ].orig!==bM&&bI[bJ].key!==bM||(bK.removeEventListener?bK.removeEventListener(bO,bI[bJ].func,!1):bK.detachEvent&&bK.detachEvent("on"+bO,bI[bJ].func),bI[bJ].orig=null,bI[bJ].func=null,bI.splice(bJ,1),bM===bL));bJ--){}if(bI.length||delete bB[bK[bE]][bO],bF.isEmptyObj(bB[bK[bE]])){delete bB[bK[bE]];try{delete bK[bE];}catch(bN){bK[bE]=bL;}}}},bD=function(bI,bJ){bI&&bI[bE]&&bF.each(bB[bI[bE]],function(bL,bK){j(bI,bK,bJ);});};return{addEvent:bG,removeEvent:j,removeAllEvents:bD};}),bq(aL,[aV,bc,bu,aM,bm,bw],function(bE,bC,bG,bB,bD,bF){function j(){var bI=[],bH;bC.extend(this,{init:function(bS){var bR=this,bQ=bR.getRuntime(),bL,bP,bO,bM,bJ,bK;bH=bS,bI=[],bO=bH.accept.mimes||bD.extList2mimes(bH.accept,bQ.can("filter_by_extension")),bP=bQ.getShimContainer(),bP.innerHTML='<input id="'+bQ.uid+'" type="file" style="font-size:999px;opacity:0;"'+(bH.multiple&&bQ.can("select_multiple")?"multiple":"")+(bH.directory&&bQ.can("select_folder")?"webkitdirectory directory":"")+(bO?' accept="'+bO.join(",")+'"':"")+" />",bL=bG.get(bQ.uid),bC.extend(bL.style,{position:"absolute",top:0,left:0,width:"100%",height:"100%"}),bM=bG.get(bH.browse_button),bQ.can("summon_file_dialog")&&("static"===bG.getStyle(bM,"position")&&(bM.style.position="relative"),bJ=parseInt(bG.getStyle(bM,"z-index"),10)||1,bM.style.zIndex=bJ,bP.style.zIndex=bJ-1,bB.addEvent(bM,"click",function(bU){var bT=bG.get(bQ.uid);bT&&!bT.disabled&&bT.click(),bU.preventDefault();},bR.uid)),bK=bQ.can("summon_file_dialog")?bM:bP,bB.addEvent(bK,"mouseover",function(){bR.trigger("mouseenter");},bR.uid),bB.addEvent(bK,"mouseout",function(){bR.trigger("mouseleave");},bR.uid),bB.addEvent(bK,"mousedown",function(){bR.trigger("mousedown");},bR.uid),bB.addEvent(bG.get(bH.container),"mouseup",function(){bR.trigger("mouseup");},bR.uid),bL.onchange=function bN(){if(bI=[],bH.directory?bC.each(this.files,function(bU){"."!==bU.name&&bI.push(bU);}):bI=[].slice.call(this.files),"IE"!==bF.browser&&"IEMobile"!==bF.browser){this.value="";}else{var bT=this.cloneNode(!0);this.parentNode.replaceChild(bT,this),bT.onchange=bN;}bR.trigger("change");},bR.trigger({type:"ready",async:!0}),bP=null;},getFiles:function(){return bI;},disable:function(bL){var bK=this.getRuntime(),bJ;(bJ=bG.get(bK.uid))&&(bJ.disabled=!!bL);},destroy:function(){var bJ=this.getRuntime(),bK=bJ.getShim(),bL=bJ.getShimContainer();bB.removeAllEvents(bL,this.uid),bB.removeAllEvents(bH&&bG.get(bH.container),this.uid),bB.removeAllEvents(bH&&bG.get(bH.browse_button),this.uid),bL&&(bL.innerHTML=""),bK.removeInstance(this.uid),bI=bH=bL=bK=null;}});}return bE.FileInput=j;}),bq(aW,[aV,bc,bu,aM,bm],function(bD,bB,bF,j,bC){function bE(){function bK(bQ){if(!bQ.dataTransfer||!bQ.dataTransfer.types){return !1;}var bR=bB.toArray(bQ.dataTransfer.types||[]);return -1!==bB.inArray("Files",bR)||-1!==bB.inArray("public.file-url",bR)||-1!==bB.inArray("application/x-moz-file",bR);}function bG(bR){for(var bS=[],bQ=0;bQ<bR.length;bQ++){[].push.apply(bS,bR[bQ].extensions.split(/\s*,\s*/));}return -1===bB.inArray("*",bS)?bS:[];}function bN(bQ){if(!bJ.length){return !0;}var bR=bC.getFileExtension(bQ.name);return !bR||-1!==bB.inArray(bR,bJ);}function bP(bR,bS){var bQ=[];bB.each(bR,function(bU){var bT=bU.webkitGetAsEntry();if(bT){if(bT.isFile){var bV=bU.getAsFile();bN(bV)&&bL.push(bV);}else{bQ.push(bT);}}}),bQ.length?bO(bQ,bS):bS();}function bO(bR,bS){var bQ=[];bB.each(bR,function(bT){bQ.push(function(bU){bM(bT,bU);});}),bB.inSeries(bQ,function(){bS();});}function bM(bR,bQ){bR.isFile?bR.file(function(bS){bN(bS)&&bL.push(bS),bQ();},function(){bQ();}):bR.isDirectory?bH(bR,bQ):bQ();}function bH(bT,bR){function bU(bV){bS.readEntries(function(bW){bW.length?([].push.apply(bQ,bW),bU(bV)):bV();},bV);}var bQ=[],bS=bT.createReader();bU(function(){bO(bQ,bR);});}var bL=[],bJ=[],bI;bB.extend(this,{init:function(bS){var bR=this,bQ;bI=bS,bJ=bG(bI.accept),bQ=bI.container,j.addEvent(bQ,"dragover",function(bT){bK(bT)&&(bT.preventDefault(),bT.dataTransfer.dropEffect="copy");},bR.uid),j.addEvent(bQ,"drop",function(bT){bK(bT)&&(bT.preventDefault(),bL=[],bT.dataTransfer.items&&bT.dataTransfer.items[0].webkitGetAsEntry?bP(bT.dataTransfer.items,function(){bR.trigger("drop");}):(bB.each(bT.dataTransfer.files,function(bU){bN(bU)&&bL.push(bU);}),bR.trigger("drop")));},bR.uid),j.addEvent(bQ,"dragenter",function(bT){bR.trigger("dragenter");},bR.uid),j.addEvent(bQ,"dragleave",function(bT){bR.trigger("dragleave");},bR.uid);},getFiles:function(){return bL;},destroy:function(){j.removeAllEvents(bI&&bF.get(bI.container),this.uid),bL=bJ=bI=null;}});}return bD.FileDrop=bE;}),bq(aT,[aV,bl,bc],function(bC,bB,bD){function j(){function bG(bH){return bB.atob(bH.substring(bH.indexOf("base64,")+7));
}var bE,bF=!1;bD.extend(this,{read:function(bI,bH){var bJ=this;bE=new window.FileReader,bE.addEventListener("progress",function(bK){bJ.trigger(bK);}),bE.addEventListener("load",function(bK){bJ.trigger(bK);}),bE.addEventListener("error",function(bK){bJ.trigger(bK,bE.error);}),bE.addEventListener("loadend",function(){bE=null;}),"function"===bD.typeOf(bE[bI])?(bF=!1,bE[bI](bH.getSource())):"readAsBinaryString"===bI&&(bF=!0,bE.readAsDataURL(bH.getSource()));},getResult:function(){return bE&&bE.result?bF?bG(bE.result):bE.result:null;},abort:function(){bE&&bE.abort();},destroy:function(){bE=null;}});}return bC.FileReader=j;}),bq(aQ,[aV,bc,bm,aF,ba,a8,aY,br,bw],function(bE,bI,bC,bD,j,bB,bG,bJ,bH){function bF(){function bO(bU,bS){var bV=this,bR,bT;bR=bS.getBlob().getSource(),bT=new window.FileReader,bT.onload=function(){bS.append(bS.getBlobName(),new bB(null,{type:bR.type,data:bT.result})),bM.send.call(bV,bU,bS);},bT.readAsBinaryString(bR);}function bQ(){return !window.XMLHttpRequest||"IE"===bH.browser&&bH.version<8?function(){for(var bS=["Msxml2.XMLHTTP.6.0","Microsoft.XMLHTTP"],bR=0;bR<bS.length;bR++){try{return new ActiveXObject(bS[bR]);}catch(bT){}}}():new window.XMLHttpRequest;}function bK(bS){var bR=bS.responseXML,bT=bS.responseText;return"IE"===bH.browser&&bT&&bR&&!bR.documentElement&&/[^\/]+\/[^\+]+\+xml/.test(bS.getResponseHeader("Content-Type"))&&(bR=new window.ActiveXObject("Microsoft.XMLDOM"),bR.async=!1,bR.validateOnParse=!1,bR.loadXML(bT)),bR&&("IE"===bH.browser&&0!==bR.parseError||!bR.documentElement||"parsererror"===bR.documentElement.tagName)?null:bR;}function bP(bV){var bT="----moxieboundary"+(new Date).getTime(),bW="--",bS="\r\n",bU="",bR=this.getRuntime();if(!bR.can("send_binary_string")){throw new bJ.RuntimeError(bJ.RuntimeError.NOT_SUPPORTED_ERR);}return bL.setRequestHeader("Content-Type","multipart/form-data; boundary="+bT),bV.each(function(bY,bX){bU+=bY instanceof bB?bW+bT+bS+'Content-Disposition: form-data; name="'+bX+'"; filename="'+unescape(encodeURIComponent(bY.name||"blob"))+'"'+bS+"Content-Type: "+(bY.type||"application/octet-stream")+bS+bS+bY.getSource()+bS:bW+bT+bS+'Content-Disposition: form-data; name="'+bX+'"'+bS+bS+unescape(encodeURIComponent(bY))+bS;}),bU+=bW+bT+bW+bS;}var bM=this,bL,bN;bI.extend(this,{send:function(bY,bW){var bU=this,bS="Mozilla"===bH.browser&&bH.version>=4&&bH.version<7,bX="Android Browser"===bH.browser,bR=!1;if(bN=bY.url.replace(/^.+?\/([\w\-\.]+)$/,"$1").toLowerCase(),bL=bQ(),bL.open(bY.method,bY.url,bY.async,bY.user,bY.password),bW instanceof bB){bW.isDetached()&&(bR=!0),bW=bW.getSource();}else{if(bW instanceof bG){if(bW.hasBlob()){if(bW.getBlob().isDetached()){bW=bP.call(bU,bW),bR=!0;}else{if((bS||bX)&&"blob"===bI.typeOf(bW.getBlob().getSource())&&window.FileReader){return void bO.call(bU,bY,bW);}}}if(bW instanceof bG){var bV=new window.FormData;bW.each(function(b0,bZ){b0 instanceof bB?bV.append(bZ,b0.getSource()):bV.append(bZ,b0);}),bW=bV;}}}bL.upload?(bY.withCredentials&&(bL.withCredentials=!0),bL.addEventListener("load",function(bZ){bU.trigger(bZ);}),bL.addEventListener("error",function(bZ){bU.trigger(bZ);}),bL.addEventListener("progress",function(bZ){bU.trigger(bZ);}),bL.upload.addEventListener("progress",function(bZ){bU.trigger({type:"UploadProgress",loaded:bZ.loaded,total:bZ.total});})):bL.onreadystatechange=function bT(){switch(bL.readyState){case 1:break;case 2:break;case 3:var b1,bZ;try{bD.hasSameOrigin(bY.url)&&(b1=bL.getResponseHeader("Content-Length")||0),bL.responseText&&(bZ=bL.responseText.length);}catch(b0){b1=bZ=0;}bU.trigger({type:"progress",lengthComputable:!!b1,total:parseInt(b1,10),loaded:bZ});break;case 4:bL.onreadystatechange=function(){},bU.trigger(0===bL.status?"error":"load");}},bI.isEmptyObj(bY.headers)||bI.each(bY.headers,function(b0,bZ){bL.setRequestHeader(bZ,b0);}),""!==bY.responseType&&"responseType" in bL&&(bL.responseType="json"!==bY.responseType||bH.can("return_response_type","json")?bY.responseType:"text"),bR?bL.sendAsBinary?bL.sendAsBinary(bW):!function(){for(var b0=new Uint8Array(bW.length),bZ=0;bZ<bW.length;bZ++){b0[bZ]=255&bW.charCodeAt(bZ);}bL.send(b0.buffer);}():bL.send(bW),bU.trigger("loadstart");},getStatus:function(){try{if(bL){return bL.status;}}catch(bR){}return 0;},getResponse:function(bV){var bT=this.getRuntime();try{switch(bV){case"blob":var bS=new j(bT.uid,bL.response),bW=bL.getResponseHeader("Content-Disposition");if(bW){var bR=bW.match(/filename=([\'\"'])([^\1]+)\1/);bR&&(bN=bR[2]);}return bS.name=bN,bS.type||(bS.type=bC.getFileMime(bN)),bS;case"json":return bH.can("return_response_type","json")?bL.response:200===bL.status&&window.JSON?JSON.parse(bL.responseText):null;case"document":return bK(bL);default:return""!==bL.responseText?bL.responseText:null;}}catch(bU){return null;}},getAllResponseHeaders:function(){try{return bL.getAllResponseHeaders();}catch(bR){}return"";},abort:function(){bL&&bL.abort();},destroy:function(){bM=bN=null;}});}return bE.XMLHttpRequest=bF;}),bq(aI,[],function(){return function(){function bC(bI,bH){var bJ=bB?0:-8*(bH-1),bG=0,bF;
for(bF=0;bH>bF;bF++){bG|=bD.charCodeAt(bI+bF)<<Math.abs(bJ+8*bF);}return bG;}function bE(bG,bF,bH){bH=3===arguments.length?bH:bD.length-bF-1,bD=bD.substr(0,bF)+bG+bD.substr(bH+bF);}function j(bJ,bH,bG){var bK="",bF=bB?0:-8*(bG-1),bI;for(bI=0;bG>bI;bI++){bK+=String.fromCharCode(bH>>Math.abs(bF+8*bI)&255);}bE(bK,bJ,bG);}var bB=!1,bD;return{II:function(bF){return bF===bd?bB:void (bB=bF);},init:function(bF){bB=!1,bD=bF;},SEGMENT:function(bH,bG,bF){switch(arguments.length){case 1:return bD.substr(bH,bD.length-bH-1);case 2:return bD.substr(bH,bG);case 3:bE(bF,bH,bG);break;default:return bD;}},BYTE:function(bF){return bC(bF,1);},SHORT:function(bF){return bC(bF,2);},LONG:function(bG,bF){return bF===bd?bC(bG,4):void j(bG,bF,4);},SLONG:function(bF){var bG=bC(bF,4);return bG>2147483647?bG-4294967296:bG;},STRING:function(bG,bH){var bF="";for(bH+=bG;bH>bG;bG++){bF+=String.fromCharCode(bC(bG,1));}return bF;}};};}),bq(bn,[aI],function(bB){return function j(bH){var bD=[],bF,bG,bC,bE=0;if(bF=new bB,bF.init(bH),65496===bF.SHORT(0)){for(bG=2;bG<=bH.length;){if(bC=bF.SHORT(bG),bC>=65488&&65495>=bC){bG+=2;}else{if(65498===bC||65497===bC){break;}bE=bF.SHORT(bG+2)+2,bC>=65505&&65519>=bC&&bD.push({hex:bC,name:"APP"+(15&bC),start:bG,length:bE,segment:bF.SEGMENT(bG,bE)}),bG+=bE;}}return bF.init(null),{headers:bD,restore:function(bJ){var bI,bK;for(bF.init(bJ),bG=65504==bF.SHORT(2)?4+bF.SHORT(4):2,bK=0,bI=bD.length;bI>bK;bK++){bF.SEGMENT(bG,0,bD[bK].segment),bG+=bD[bK].length;}return bJ=bF.SEGMENT(),bF.init(null),bJ;},strip:function(bJ){var bL,bI,bK;for(bI=new j(bJ),bL=bI.headers,bI.purge(),bF.init(bJ),bK=bL.length;bK--;){bF.SEGMENT(bL[bK].start,bL[bK].length,"");}return bJ=bF.SEGMENT(),bF.init(null),bJ;},get:function(bK){for(var bI=[],bL=0,bJ=bD.length;bJ>bL;bL++){bD[bL].name===bK.toUpperCase()&&bI.push(bD[bL].segment);}return bI;},set:function(bL,bJ){var bN=[],bK,bM,bI;for("string"==typeof bJ?bN.push(bJ):bN=bJ,bK=bM=0,bI=bD.length;bI>bK&&(bD[bK].name===bL.toUpperCase()&&(bD[bK].segment=bN[bM],bD[bK].length=bN[bM].length,bM++),!(bM>=bN.length));bK++){}},purge:function(){bD=[],bF.init(null),bF=null;}};}};}),bq(aB,[bc,aI],function(bB,bC){return function j(){function bG(bU,bO){var bQ=bE.SHORT(bU),bL,bN,bX,bW,bV,bT,bR,bM,bP=[],bS={};for(bL=0;bQ>bL;bL++){if(bR=bT=bU+12*bL+2,bX=bO[bE.SHORT(bR)],bX!==bd){switch(bW=bE.SHORT(bR+=2),bV=bE.LONG(bR+=2),bR+=4,bP=[],bW){case 1:case 7:for(bV>4&&(bR=bE.LONG(bR)+bK.tiffHeader),bN=0;bV>bN;bN++){bP[bN]=bE.BYTE(bR+bN);}break;case 2:bV>4&&(bR=bE.LONG(bR)+bK.tiffHeader),bS[bX]=bE.STRING(bR,bV-1);continue;case 3:for(bV>2&&(bR=bE.LONG(bR)+bK.tiffHeader),bN=0;bV>bN;bN++){bP[bN]=bE.SHORT(bR+2*bN);}break;case 4:for(bV>1&&(bR=bE.LONG(bR)+bK.tiffHeader),bN=0;bV>bN;bN++){bP[bN]=bE.LONG(bR+4*bN);}break;case 5:for(bR=bE.LONG(bR)+bK.tiffHeader,bN=0;bV>bN;bN++){bP[bN]=bE.LONG(bR+4*bN)/bE.LONG(bR+4*bN+4);}break;case 9:for(bR=bE.LONG(bR)+bK.tiffHeader,bN=0;bV>bN;bN++){bP[bN]=bE.SLONG(bR+4*bN);}break;case 10:for(bR=bE.LONG(bR)+bK.tiffHeader,bN=0;bV>bN;bN++){bP[bN]=bE.SLONG(bR+4*bN)/bE.SLONG(bR+4*bN+4);}break;default:continue;}bM=1==bV?bP[0]:bP,bS[bX]=bD.hasOwnProperty(bX)&&"object"!=typeof bM?bD[bX][bM]:bM;}}return bS;}function bI(){var bL=bK.tiffHeader;return bE.II(18761==bE.SHORT(bL)),42!==bE.SHORT(bL+=2)?!1:(bK.IFD0=bK.tiffHeader+bE.LONG(bL+=2),bF=bG(bK.IFD0,bH.tiff),"ExifIFDPointer" in bF&&(bK.exifIFD=bK.tiffHeader+bF.ExifIFDPointer,delete bF.ExifIFDPointer),"GPSInfoIFDPointer" in bF&&(bK.gpsIFD=bK.tiffHeader+bF.GPSInfoIFDPointer,delete bF.GPSInfoIFDPointer),!0);}function bJ(bR,bU,bN){var bP,bL,bM,bT=0;if("string"==typeof bU){var bO=bH[bR.toLowerCase()];for(var bS in bO){if(bO[bS]===bU){bU=bS;break;}}}bP=bK[bR.toLowerCase()+"IFD"],bL=bE.SHORT(bP);for(var bQ=0;bL>bQ;bQ++){if(bM=bP+12*bQ+2,bE.SHORT(bM)==bU){bT=bM+8;break;}}return bT?(bE.LONG(bT,bN),!0):!1;}var bE,bH,bF,bK={},bD;return bE=new bC,bH={tiff:{274:"Orientation",270:"ImageDescription",271:"Make",272:"Model",305:"Software",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer"},exif:{36864:"ExifVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",36867:"DateTimeOriginal",33434:"ExposureTime",33437:"FNumber",34855:"ISOSpeedRatings",37377:"ShutterSpeedValue",37378:"ApertureValue",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37386:"FocalLength",41986:"ExposureMode",41987:"WhiteBalance",41990:"SceneCaptureType",41988:"DigitalZoomRatio",41992:"Contrast",41993:"Saturation",41994:"Sharpness"},gps:{0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude"}},bD={ColorSpace:{1:"sRGB",0:"Uncalibrated"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{1:"Daylight",2:"Fliorescent",3:"Tungsten",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 -5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire.",1:"Flash fired.",5:"Strobe return light not detected.",7:"Strobe return light detected.",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},ExposureMode:{0:"Auto exposure",1:"Manual exposure",2:"Auto bracket"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},GPSLatitudeRef:{N:"North latitude",S:"South latitude"},GPSLongitudeRef:{E:"East longitude",W:"West longitude"}},{init:function(bL){return bK={tiffHeader:10},bL!==bd&&bL.length?(bE.init(bL),65505===bE.SHORT(0)&&"EXIF\x00"===bE.STRING(4,5).toUpperCase()?bI():!1):!1;
},TIFF:function(){return bF;},EXIF:function(){var bL;if(bL=bG(bK.exifIFD,bH.exif),bL.ExifVersion&&"array"===bB.typeOf(bL.ExifVersion)){for(var bN=0,bM="";bN<bL.ExifVersion.length;bN++){bM+=String.fromCharCode(bL.ExifVersion[bN]);}bL.ExifVersion=bM;}return bL;},GPS:function(){var bL;return bL=bG(bK.gpsIFD,bH.gps),bL.GPSVersionID&&"array"===bB.typeOf(bL.GPSVersionID)&&(bL.GPSVersionID=bL.GPSVersionID.join(".")),bL;},setExif:function(bM,bL){return"PixelXDimension"!==bM&&"PixelYDimension"!==bM?!1:bJ("exif",bM,bL);},getBinary:function(){return bE.SEGMENT();},purge:function(){bE.init(null),bE=bF=null,bK={};}};};}),bq(aX,[bc,br,bn,aI,aB],function(bD,bB,bF,j,bC){function bE(bG){function bM(){for(var bQ=0,bP,bR;bQ<=bN.length;){if(bP=bL.SHORT(bQ+=2),bP>=65472&&65475>=bP){return bQ+=5,{height:bL.SHORT(bQ),width:bL.SHORT(bQ+=2)};}bR=bL.SHORT(bQ+=2),bQ+=bR-2;}return null;}function bO(){bK&&bH&&bL&&(bK.purge(),bH.purge(),bL.init(null),bN=bJ=bH=bK=bL=null);}var bN,bL,bH,bK,bJ,bI;if(bN=bG,bL=new j,bL.init(bN),65496!==bL.SHORT(0)){throw new bB.ImageError(bB.ImageError.WRONG_FORMAT);}bH=new bF(bG),bK=new bC,bI=!!bK.init(bH.get("app1")[0]),bJ=bM.call(this),bD.extend(this,{type:"image/jpeg",size:bN.length,width:bJ&&bJ.width||0,height:bJ&&bJ.height||0,setExif:function(bP,bQ){return bI?("object"===bD.typeOf(bP)?bD.each(bP,function(bS,bR){bK.setExif(bR,bS);}):bK.setExif(bP,bQ),void bH.set("app1",bK.getBinary())):!1;},writeHeaders:function(){return arguments.length?bH.restore(arguments[0]):bN=bH.restore(bN);},stripHeaders:function(bP){return bH.strip(bP);},purge:function(){bO.call(this);}}),bI&&(this.meta={tiff:bK.TIFF(),exif:bK.EXIF(),gps:bK.GPS()});}return bE;}),bq(a7,[br,bc,aI],function(bC,bB,bD){function j(bH){function bE(){var bO,bN;return bO=bK.call(this,8),"IHDR"==bO.type?(bN=bO.start,{width:bL.LONG(bN),height:bL.LONG(bN+=4)}):null;}function bF(){bL&&(bL.init(null),bM=bI=bJ=bG=bL=null);}function bK(bQ){var bO,bR,bN,bP;return bO=bL.LONG(bQ),bR=bL.STRING(bQ+=4,4),bN=bQ+=4,bP=bL.LONG(bQ+bO),{length:bO,type:bR,start:bN,CRC:bP};}var bM,bL,bJ,bG,bI;bM=bH,bL=new bD,bL.init(bM),function(){var bO=0,bP=0,bN=[35152,20039,3338,6666];for(bP=0;bP<bN.length;bP++,bO+=2){if(bN[bP]!=bL.SHORT(bO)){throw new bC.ImageError(bC.ImageError.WRONG_FORMAT);}}}(),bI=bE.call(this),bB.extend(this,{type:"image/png",size:bM.length,width:bI.width,height:bI.height,purge:function(){bF.call(this);}}),bF.call(this);}return j;}),bq(aS,[bc,br,aX,a7],function(bC,bB,bD,j){return function(bF){var bG=[bD,j],bE;bE=function(){for(var bH=0;bH<bG.length;bH++){try{return new bG[bH](bF);}catch(bI){}}throw new bB.ImageError(bB.ImageError.WRONG_FORMAT);}(),bC.extend(this,{type:"",size:0,width:0,height:0,setExif:function(){},writeHeaders:function(bH){return bH;},stripHeaders:function(bH){return bH;},purge:function(){}}),bC.extend(this,bE),this.purge=function(){bE.purge(),bE=null;};};}),bq(bg,[],function(){function bB(bT,bP,bK){var bM=bT.naturalWidth,bX=bT.naturalHeight,bJ=bK.width,bH=bK.height,bV=bK.x||0,bO=bK.y||0,bU=bP.getContext("2d");j(bT)&&(bM/=2,bX/=2);var bS=1024,bQ=document.createElement("canvas");bQ.width=bQ.height=bS;for(var bL=bQ.getContext("2d"),bN=bC(bT,bM,bX),bR=0;bX>bR;){for(var bG=bR+bS>bX?bX-bR:bS,bD=0;bM>bD;){var bF=bD+bS>bM?bM-bD:bS;bL.clearRect(0,0,bS,bS),bL.drawImage(bT,-bD,-bR);var bI=bD*bJ/bM+bV<<0,bY=Math.ceil(bF*bJ/bM),bE=bR*bH/bX/bN+bO<<0,bW=Math.ceil(bG*bH/bX/bN);bU.drawImage(bQ,0,0,bF,bG,bI,bE,bY,bW),bD+=bS;}bR+=bS;}bQ=bL=null;}function j(bG){var bE=bG.naturalWidth,bH=bG.naturalHeight;if(bE*bH>1048576){var bD=document.createElement("canvas");bD.width=bD.height=1;var bF=bD.getContext("2d");return bF.drawImage(bG,-bE+1,0),0===bF.getImageData(0,0,1,1).data[3];}return !1;}function bC(bI,bM,bF){var bH=document.createElement("canvas");bH.width=1,bH.height=bF;var bD=bH.getContext("2d");bD.drawImage(bI,0,0);for(var bE=bD.getImageData(0,0,1,bF).data,bK=0,bN=bF,bL=bF;bL>bK;){var bJ=bE[4*(bL-1)+3];0===bJ?bN=bL:bK=bL,bL=bN+bK>>1;}bH=null;var bG=bL/bF;return 0===bG?1:bG;}return{isSubsampled:j,renderTo:bB};}),bq(ay,[aV,bc,br,bl,ba,aS,bg,bm,bw],function(bE,bI,bC,bD,j,bB,bG,bJ,bH){function bF(){function bR(){if(!b0&&!bV){throw new bC.ImageError(bC.DOMException.INVALID_STATE_ERR);}return b0||bV;}function bT(b1){return bD.atob(b1.substring(b1.indexOf("base64,")+7));}function bM(b2,b1){return"data:"+(b1||"")+";base64,"+bD.btoa(b2);}function bS(b2){var b1=this;bV=new Image,bV.onerror=function(){bP.call(this),b1.trigger("error",bC.ImageError.WRONG_FORMAT);},bV.onload=function(){b1.trigger("load");},bV.src=/^data:[^;]*;base64,/.test(b2)?b2:bM(b2,bW.type);}function bQ(b4,b2){var b1=this,b3;return window.FileReader?(b3=new FileReader,b3.onload=function(){b2(this.result);},b3.onerror=function(){b1.trigger("error",bC.ImageError.WRONG_FORMAT);},b3.readAsDataURL(b4),void 0):b2(b4.getAsDataURL());}function bO(b3,b5,b1,b2){var cb=this,ce,cd,ca=0,b4=0,b9,b8,b6,b7;if(bN=b2,b7=this.meta&&this.meta.tiff&&this.meta.tiff.Orientation||1,-1!==bI.inArray(b7,[5,6,7,8])){var cc=b3;b3=b5,b5=cc;
}return b9=bR(),b1?(b3=Math.min(b3,b9.width),b5=Math.min(b5,b9.height),ce=Math.max(b3/b9.width,b5/b9.height)):ce=Math.min(b3/b9.width,b5/b9.height),ce>1&&!b1&&b2?void this.trigger("Resize"):(b0||(b0=document.createElement("canvas")),b8=Math.round(b9.width*ce),b6=Math.round(b9.height*ce),b1?(b0.width=b3,b0.height=b5,b8>b3&&(ca=Math.round((b8-b3)/2)),b6>b5&&(b4=Math.round((b6-b5)/2))):(b0.width=b8,b0.height=b6),bN||bL(b0.width,b0.height,b7),bK.call(this,b9,b0,-ca,-b4,b8,b6),this.width=b0.width,this.height=b0.height,bU=!0,void cb.trigger("Resize"));}function bK(b5,b2,b7,b1,b4,b6){if("iOS"===bH.OS){bG.renderTo(b5,b2,{width:b4,height:b6,x:b7,y:b1});}else{var b3=b2.getContext("2d");b3.drawImage(b5,b7,b1,b4,b6);}}function bL(b3,b2,b4){switch(b4){case 5:case 6:case 7:case 8:b0.width=b2,b0.height=b3;break;default:b0.width=b3,b0.height=b2;}var b1=b0.getContext("2d");switch(b4){case 2:b1.translate(b3,0),b1.scale(-1,1);break;case 3:b1.translate(b3,b2),b1.rotate(Math.PI);break;case 4:b1.translate(0,b2),b1.scale(1,-1);break;case 5:b1.rotate(0.5*Math.PI),b1.scale(1,-1);break;case 6:b1.rotate(0.5*Math.PI),b1.translate(0,-b2);break;case 7:b1.rotate(0.5*Math.PI),b1.translate(b3,-b2),b1.scale(-1,1);break;case 8:b1.rotate(-0.5*Math.PI),b1.translate(-b3,0);}}function bP(){bX&&(bX.purge(),bX=null),bY=bV=b0=bW=null,bU=!1;}var bZ=this,bV,bX,b0,bY,bW,bU=!1,bN=!0;bI.extend(this,{loadFromBlob:function(b4){var b2=this,b1=b2.getRuntime(),b3=arguments.length>1?arguments[1]:!0;if(!b1.can("access_binary")){throw new bC.RuntimeError(bC.RuntimeError.NOT_SUPPORTED_ERR);}return bW=b4,b4.isDetached()?(bY=b4.getSource(),void bS.call(this,bY)):void bQ.call(this,b4.getSource(),function(b5){b3&&(bY=bT(b5)),bS.call(b2,b5);});},loadFromImage:function(b2,b1){this.meta=b2.meta,bW=new j(null,{name:b2.name,size:b2.size,type:b2.type}),bS.call(this,b1?bY=b2.getAsBinaryString():b2.getAsDataURL());},getInfo:function(){var b1=this.getRuntime(),b2;return !bX&&bY&&b1.can("access_image_binary")&&(bX=new bB(bY)),b2={width:bR().width||0,height:bR().height||0,type:bW.type||bJ.getFileMime(bW.name),size:bY&&bY.length||bW.size||0,name:bW.name||"",meta:bX&&bX.meta||this.meta||{}};},downsize:function(){bO.apply(this,arguments);},getAsCanvas:function(){return b0&&(b0.id=this.uid+"_canvas"),b0;},getAsBlob:function(b2,b1){return b2!==this.type&&bO.call(this,this.width,this.height,!1),new j(null,{name:bW.name||"",type:b2,data:bZ.getAsBinaryString.call(this,b2,b1)});},getAsDataURL:function(b2){var b1=arguments[1]||90;if(!bU){return bV.src;}if("image/jpeg"!==b2){return b0.toDataURL("image/png");}try{return b0.toDataURL("image/jpeg",b1/100);}catch(b3){return b0.toDataURL("image/jpeg");}},getAsBinaryString:function(b3,b2){if(!bU){return bY||(bY=bT(bZ.getAsDataURL(b3,b2))),bY;}if("image/jpeg"!==b3){bY=bT(bZ.getAsDataURL(b3,b2));}else{var b4;b2||(b2=90);try{b4=b0.toDataURL("image/jpeg",b2/100);}catch(b1){b4=b0.toDataURL("image/jpeg");}bY=bT(b4),bX&&(bY=bX.stripHeaders(bY),bN&&(bX.meta&&bX.meta.exif&&bX.setExif({PixelXDimension:this.width,PixelYDimension:this.height}),bY=bX.writeHeaders(bY)),bX.purge(),bX=null);}return bU=!1,bY;},destroy:function(){bZ=null,bP.call(this),this.getRuntime().getShim().removeInstance(this.uid);}});}return bE.Image=bF;}),bq(bp,[bc,bw,bu,br,bs],function(bE,bH,bC,bD,j){function bB(){var bK;try{bK=navigator.plugins["Shockwave Flash"],bK=bK.description;}catch(bJ){try{bK=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version");}catch(bL){bK="0.0";}}return bK=bK.match(/\d+/g),parseFloat(bK[0]+"."+bK[1]);}function bF(bK){var bL=this,bJ;bK=bE.extend({swf_url:bH.swf_url},bK),j.call(this,bK,bI,{access_binary:function(bM){return bM&&"browser"===bL.mode;},access_image_binary:function(bM){return bM&&"browser"===bL.mode;},display_media:j.capTrue,do_cors:j.capTrue,drag_and_drop:!1,report_upload_progress:function(){return"client"===bL.mode;},resize_image:j.capTrue,return_response_headers:!1,return_response_type:function(bM){return"json"===bM&&window.JSON?!0:!bE.arrayDiff(bM,["","text","document"])||"browser"===bL.mode;},return_status_code:function(bM){return"browser"===bL.mode||!bE.arrayDiff(bM,[200,404]);},select_file:j.capTrue,select_multiple:j.capTrue,send_binary_string:function(bM){return bM&&"browser"===bL.mode;},send_browser_cookies:function(bM){return bM&&"browser"===bL.mode;},send_custom_headers:function(bM){return bM&&"browser"===bL.mode;},send_multipart:j.capTrue,slice_blob:function(bM){return bM&&"browser"===bL.mode;},stream_upload:function(bM){return bM&&"browser"===bL.mode;},summon_file_dialog:!1,upload_filesize:function(bM){return bE.parseSizeStr(bM)<=2097152||"client"===bL.mode;},use_http_method:function(bM){return !bE.arrayDiff(bM,["GET","POST"]);}},{access_binary:function(bM){return bM?"browser":"client";},access_image_binary:function(bM){return bM?"browser":"client";},report_upload_progress:function(bM){return bM?"browser":"client";},return_response_type:function(bM){return bE.arrayDiff(bM,["","text","json","document"])?"browser":["client","browser"];
},return_status_code:function(bM){return bE.arrayDiff(bM,[200,404])?"browser":["client","browser"];},send_binary_string:function(bM){return bM?"browser":"client";},send_browser_cookies:function(bM){return bM?"browser":"client";},send_custom_headers:function(bM){return bM?"browser":"client";},stream_upload:function(bM){return bM?"client":"browser";},upload_filesize:function(bM){return bE.parseSizeStr(bM)>=2097152?"client":"browser";}},"client"),bB()<10&&(this.mode=!1),bE.extend(this,{getShim:function(){return bC.get(this.uid);},shimExec:function(bN,bM){var bO=[].slice.call(arguments,2);return bL.getShim().exec(this.uid,bN,bM,bO);},init:function(){var bO,bM,bN;bN=this.getShimContainer(),bE.extend(bN.style,{position:"absolute",top:"-8px",left:"-8px",width:"9px",height:"9px",overflow:"hidden"}),bO='<object id="'+this.uid+'" type="application/x-shockwave-flash" data="'+bK.swf_url+'" ',"IE"===bH.browser&&(bO+='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '),bO+='width="100%" height="100%" style="outline:0"><param name="movie" value="'+bK.swf_url+'" /><param name="flashvars" value="uid='+escape(this.uid)+"&target="+bH.global_event_dispatcher+'" /><param name="wmode" value="transparent" /><param name="allowscriptaccess" value="always" /></object>',"IE"===bH.browser?(bM=document.createElement("div"),bN.appendChild(bM),bM.outerHTML=bO,bM=bN=null):bN.innerHTML=bO,bJ=setTimeout(function(){bL&&!bL.initialized&&bL.trigger("Error",new bD.RuntimeError(bD.RuntimeError.NOT_INIT_ERR));},5000);},destroy:function(bM){return function(){bM.call(bL),clearTimeout(bJ),bK=bJ=bM=bL=null;};}(this.destroy)},bG);}var bI="flash",bG={};return j.addConstructor(bI,bF),bG;}),bq(aA,[bp,a8],function(bB,j){var bC={slice:function(bF,bH,bD,bE){var bG=this.getRuntime();return 0>bH?bH=Math.max(bF.size+bH,0):bH>0&&(bH=Math.min(bH,bF.size)),0>bD?bD=Math.max(bF.size+bD,0):bD>0&&(bD=Math.min(bD,bF.size)),bF=bG.shimExec.call(this,"Blob","slice",bH,bD,bE||""),bF&&(bF=new j(bG.uid,bF)),bF;}};return bB.Blob=bC;}),bq(az,[bp],function(bB){var j={init:function(bC){this.getRuntime().shimExec.call(this,"FileInput","init",{name:bC.name,accept:bC.accept,multiple:bC.multiple}),this.trigger("ready");}};return bB.FileInput=j;}),bq(ax,[bp,bl],function(bD,bB){function bE(bF,bG){switch(bG){case"readAsText":return bB.atob(bF,"utf8");case"readAsBinaryString":return bB.atob(bF);case"readAsDataURL":return bF;}return null;}var j="",bC={read:function(bH,bF){var bG=this,bI=bG.getRuntime();return"readAsDataURL"===bH&&(j="data:"+(bF.type||"")+";base64,"),bG.bind("Progress",function(bJ,bK){bK&&(j+=bE(bK,bH));}),bI.shimExec.call(this,"FileReader","readAsBase64",bF.uid);},getResult:function(){return j;},destroy:function(){j=null;}};return bD.FileReader=bC;}),bq(a6,[bp,bl],function(bC,bB){function bD(bE,bF){switch(bF){case"readAsText":return bB.atob(bE,"utf8");case"readAsBinaryString":return bB.atob(bE);case"readAsDataURL":return bE;}return null;}var j={read:function(bH,bF){var bE,bG=this.getRuntime();return(bE=bG.shimExec.call(this,"FileReaderSync","readAsBase64",bF.uid))?("readAsDataURL"===bH&&(bE="data:"+(bF.type||"")+";base64,"+bE),bD(bE,bH,bF.type)):null;}};return bC.FileReaderSync=j;}),bq(aO,[bp,bc,a8,ba,aC,aY,aJ],function(bF,bC,bH,bB,bE,bG,j){var bD={send:function(bM,bK){function bI(){bM.transport=bJ.mode,bJ.shimExec.call(bO,"XMLHttpRequest","send",bM,bK);}function bQ(bS,bR){bJ.shimExec.call(bO,"XMLHttpRequest","appendBlob",bS,bR.uid),bK=null,bI();}function bP(bS,bR){var bT=new j;bT.bind("TransportingComplete",function(){bR(this.result);}),bT.transport(bS.getSource(),bS.type,{ruid:bJ.uid});}var bO=this,bJ=bO.getRuntime();if(bC.isEmptyObj(bM.headers)||bC.each(bM.headers,function(bS,bR){bJ.shimExec.call(bO,"XMLHttpRequest","setRequestHeader",bR,bS.toString());}),bK instanceof bG){var bN;if(bK.each(function(bS,bR){bS instanceof bH?bN=bR:bJ.shimExec.call(bO,"XMLHttpRequest","append",bR,bS);}),bK.hasBlob()){var bL=bK.getBlob();bL.isDetached()?bP(bL,function(bR){bL.destroy(),bQ(bN,bR);}):bQ(bN,bL);}else{bK=null,bI();}}else{bK instanceof bH?bK.isDetached()?bP(bK,function(bR){bK.destroy(),bK=bR.uid,bI();}):(bK=bK.uid,bI()):bI();}},getResponse:function(bJ){var bL,bK,bI=this.getRuntime();if(bK=bI.shimExec.call(this,"XMLHttpRequest","getResponseAsBlob")){if(bK=new bB(bI.uid,bK),"blob"===bJ){return bK;}try{if(bL=new bE,~bC.inArray(bJ,["","text"])){return bL.readAsText(bK);}if("json"===bJ&&window.JSON){return JSON.parse(bL.readAsText(bK));}}finally{bK.destroy();}}return null;},abort:function(bJ){var bI=this.getRuntime();bI.shimExec.call(this,"XMLHttpRequest","abort"),this.dispatchEvent("readystatechange"),this.dispatchEvent("abort");}};return bF.XMLHttpRequest=bD;}),bq(aw,[bp,a8],function(bB,j){var bC={getAsBlob:function(bE){var bF=this.getRuntime(),bD=bF.shimExec.call(this,"Transporter","getAsBlob",bE);return bD?new j(bF.uid,bD):null;}};return bB.Transporter=bC;}),bq(aN,[bp,bc,aJ,a8,aC],function(bD,bB,bF,j,bC){var bE={loadFromBlob:function(bJ){function bH(bL){bI.shimExec.call(bG,"Image","loadFromBlob",bL.uid),bG=bI=null;
}var bG=this,bI=bG.getRuntime();if(bJ.isDetached()){var bK=new bF;bK.bind("TransportingComplete",function(){bH(bK.result.getSource());}),bK.transport(bJ.getSource(),bJ.type,{ruid:bI.uid});}else{bH(bJ.getSource());}},loadFromImage:function(bH){var bG=this.getRuntime();return bG.shimExec.call(this,"Image","loadFromImage",bH.uid);},getAsBlob:function(bI,bG){var bJ=this.getRuntime(),bH=bJ.shimExec.call(this,"Image","getAsBlob",bI,bG);return bH?new j(bJ.uid,bH):null;},getAsDataURL:function(){var bH=this.getRuntime(),bG=bH.Image.getAsBlob.apply(this,arguments),bI;return bG?(bI=new bC,bI.readAsDataURL(bG)):null;}};return bD.Image=bE;}),bq(aH,[bc,bw,bu,br,bs],function(bE,bH,bC,bD,j){function bB(bO){var bT=!1,bL=null,bN,bJ,bK,bR,bU,bS=0;try{try{bL=new ActiveXObject("AgControl.AgControl"),bL.IsVersionSupported(bO)&&(bT=!0),bL=null;}catch(bQ){var bM=navigator.plugins["Silverlight Plug-In"];if(bM){for(bN=bM.description,"1.0.30226.2"===bN&&(bN="2.0.30226.2"),bJ=bN.split(".");bJ.length>3;){bJ.pop();}for(;bJ.length<4;){bJ.push(0);}for(bK=bO.split(".");bK.length>4;){bK.pop();}do{bR=parseInt(bK[bS],10),bU=parseInt(bJ[bS],10),bS++;}while(bS<bK.length&&bR===bU);bU>=bR&&!isNaN(bR)&&(bT=!0);}}}catch(bP){bT=!1;}return bT;}function bF(bK){var bL=this,bJ;bK=bE.extend({xap_url:bH.xap_url},bK),j.call(this,bK,bI,{access_binary:j.capTrue,access_image_binary:j.capTrue,display_media:j.capTrue,do_cors:j.capTrue,drag_and_drop:!1,report_upload_progress:j.capTrue,resize_image:j.capTrue,return_response_headers:function(bM){return bM&&"client"===bL.mode;},return_response_type:function(bM){return"json"!==bM?!0:!!window.JSON;},return_status_code:function(bM){return"client"===bL.mode||!bE.arrayDiff(bM,[200,404]);},select_file:j.capTrue,select_multiple:j.capTrue,send_binary_string:j.capTrue,send_browser_cookies:function(bM){return bM&&"browser"===bL.mode;},send_custom_headers:function(bM){return bM&&"client"===bL.mode;},send_multipart:j.capTrue,slice_blob:j.capTrue,stream_upload:!0,summon_file_dialog:!1,upload_filesize:j.capTrue,use_http_method:function(bM){return"client"===bL.mode||!bE.arrayDiff(bM,["GET","POST"]);}},{return_response_headers:function(bM){return bM?"client":"browser";},return_status_code:function(bM){return bE.arrayDiff(bM,[200,404])?"client":["client","browser"];},send_browser_cookies:function(bM){return bM?"browser":"client";},send_custom_headers:function(bM){return bM?"client":"browser";},use_http_method:function(bM){return bE.arrayDiff(bM,["GET","POST"])?"client":["client","browser"];}}),bB("2.0.31005.0")&&"Opera"!==bH.browser||(this.mode=!1),bE.extend(this,{getShim:function(){return bC.get(this.uid).content.Moxie;},shimExec:function(bN,bM){var bO=[].slice.call(arguments,2);return bL.getShim().exec(this.uid,bN,bM,bO);},init:function(){var bM;bM=this.getShimContainer(),bM.innerHTML='<object id="'+this.uid+'" data="data:application/x-silverlight," type="application/x-silverlight-2" width="100%" height="100%" style="outline:none;"><param name="source" value="'+bK.xap_url+'"/><param name="background" value="Transparent"/><param name="windowless" value="true"/><param name="enablehtmlaccess" value="true"/><param name="initParams" value="uid='+this.uid+",target="+bH.global_event_dispatcher+'"/></object>',bJ=setTimeout(function(){bL&&!bL.initialized&&bL.trigger("Error",new bD.RuntimeError(bD.RuntimeError.NOT_INIT_ERR));},"Windows"!==bH.OS?10000:5000);},destroy:function(bM){return function(){bM.call(bL),clearTimeout(bJ),bK=bJ=bM=bL=null;};}(this.destroy)},bG);}var bI="silverlight",bG={};return j.addConstructor(bI,bF),bG;}),bq(bh,[aH,bc,aA],function(bB,j,bC){return bB.Blob=j.extend({},bC);}),bq(bt,[aH],function(bB){var j={init:function(bD){function bC(bF){for(var bE="",bG=0;bG<bF.length;bG++){bE+=(""!==bE?"|":"")+bF[bG].title+" | *."+bF[bG].extensions.replace(/,/g,";*.");}return bE;}this.getRuntime().shimExec.call(this,"FileInput","init",bC(bD.accept),bD.name,bD.multiple),this.trigger("ready");}};return bB.FileInput=j;}),bq(bo,[aH,bu,aM],function(bC,bB,bD){var j={init:function(){var bG=this,bE=bG.getRuntime(),bF;return bF=bE.getShimContainer(),bD.addEvent(bF,"dragover",function(bH){bH.preventDefault(),bH.stopPropagation(),bH.dataTransfer.dropEffect="copy";},bG.uid),bD.addEvent(bF,"dragenter",function(bH){bH.preventDefault();var bI=bB.get(bE.uid).dragEnter(bH);bI&&bH.stopPropagation();},bG.uid),bD.addEvent(bF,"drop",function(bH){bH.preventDefault();var bI=bB.get(bE.uid).dragDrop(bH);bI&&bH.stopPropagation();},bG.uid),bE.shimExec.call(this,"FileDrop","init");}};return bC.FileDrop=j;}),bq(a1,[aH,bc,ax],function(bB,j,bC){return bB.FileReader=j.extend({},bC);}),bq(a4,[aH,bc,a6],function(bB,j,bC){return bB.FileReaderSync=j.extend({},bC);}),bq(a3,[aH,bc,aO],function(bB,j,bC){return bB.XMLHttpRequest=j.extend({},bC);}),bq(aD,[aH,bc,aw],function(bB,j,bC){return bB.Transporter=j.extend({},bC);}),bq(aR,[aH,bc,aN],function(bB,j,bC){return bB.Image=j.extend({},bC,{getInfo:function(){var bF=this.getRuntime(),bG=["tiff","exif","gps"],bD={meta:{}},bE=bF.shimExec.call(this,"Image","getInfo");
return bE.meta&&j.each(bG,function(bK){var bI=bE.meta[bK],bM,bL,bH,bJ;if(bI&&bI.keys){for(bD.meta[bK]={},bL=0,bH=bI.keys.length;bH>bL;bL++){bM=bI.keys[bL],bJ=bI[bM],bJ&&(/^(\d|[1-9]\d+)$/.test(bJ)?bJ=parseInt(bJ,10):/^\d*\.\d+$/.test(bJ)&&(bJ=parseFloat(bJ)),bD.meta[bK][bM]=bJ);}}}),bD.width=parseInt(bE.width,10),bD.height=parseInt(bE.height,10),bD.size=parseInt(bE.size,10),bD.type=bE.type,bD.name=bE.name,bD;}});}),bq(a5,[bc,br,bs,bw],function(bE,bC,bG,bB){function bD(bI){var bK=this,bJ=bG.capTest,bH=bG.capTrue;bG.call(this,bI,bF,{access_binary:bJ(window.FileReader||window.File&&File.getAsDataURL),access_image_binary:!1,display_media:bJ(j.Image&&(bB.can("create_canvas")||bB.can("use_data_uri_over32kb"))),do_cors:!1,drag_and_drop:!1,filter_by_extension:bJ(function(){return"Chrome"===bB.browser&&bB.version>=28||"IE"===bB.browser&&bB.version>=10;}()),resize_image:function(){return j.Image&&bK.can("access_binary")&&bB.can("create_canvas");},report_upload_progress:!1,return_response_headers:!1,return_response_type:function(bL){return"json"===bL&&window.JSON?!0:!!~bE.inArray(bL,["text","document",""]);},return_status_code:function(bL){return !bE.arrayDiff(bL,[200,404]);},select_file:function(){return bB.can("use_fileinput");},select_multiple:!1,send_binary_string:!1,send_custom_headers:!1,send_multipart:!0,slice_blob:!1,stream_upload:function(){return bK.can("select_file");},summon_file_dialog:bJ(function(){return"Firefox"===bB.browser&&bB.version>=4||"Opera"===bB.browser&&bB.version>=12||!!~bE.inArray(bB.browser,["Chrome","Safari"]);}()),upload_filesize:bH,use_http_method:function(bL){return !bE.arrayDiff(bL,["GET","POST"]);}}),bE.extend(this,{init:function(){this.trigger("Init");},destroy:function(bL){return function(){bL.call(bK),bL=bK=null;};}(this.destroy)}),bE.extend(this.getShim(),j);}var bF="html4",j={};return bG.addConstructor(bF,bD),j;}),bq(aZ,[a5,bc,bu,aM,bm,bw],function(bE,bC,bG,bB,bD,bF){function j(){function bK(){var bQ=this,bN=bQ.getRuntime(),bT,bR,bO,bS,bM,bP;bP=bC.guid("uid_"),bT=bN.getShimContainer(),bH&&(bO=bG.get(bH+"_form"),bO&&bC.extend(bO.style,{top:"100%"})),bS=document.createElement("form"),bS.setAttribute("id",bP+"_form"),bS.setAttribute("method","post"),bS.setAttribute("enctype","multipart/form-data"),bS.setAttribute("encoding","multipart/form-data"),bC.extend(bS.style,{overflow:"hidden",position:"absolute",top:0,left:0,width:"100%",height:"100%"}),bM=document.createElement("input"),bM.setAttribute("id",bP),bM.setAttribute("type","file"),bM.setAttribute("name",bL.name||"Filedata"),bM.setAttribute("accept",bI.join(",")),bC.extend(bM.style,{fontSize:"999px",opacity:0}),bS.appendChild(bM),bT.appendChild(bS),bC.extend(bM.style,{position:"absolute",top:0,left:0,width:"100%",height:"100%"}),"IE"===bF.browser&&bF.version<10&&bC.extend(bM.style,{filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=0)"}),bM.onchange=function(){var bV;this.value&&(bV=this.files?this.files[0]:{name:this.value},bJ=[bV],this.onchange=function(){},bK.call(bQ),bQ.bind("change",function bU(){var bX=bG.get(bP),bW=bG.get(bP+"_form"),bY;bQ.unbind("change",bU),bQ.files.length&&bX&&bW&&(bY=bQ.files[0],bX.setAttribute("id",bY.uid),bW.setAttribute("id",bY.uid+"_form"),bW.setAttribute("target",bY.uid+"_iframe")),bX=bW=null;},998),bM=bS=null,bQ.trigger("change"));},bN.can("summon_file_dialog")&&(bR=bG.get(bL.browse_button),bB.removeEvent(bR,"click",bQ.uid),bB.addEvent(bR,"click",function(bU){bM&&!bM.disabled&&bM.click(),bU.preventDefault();},bQ.uid)),bH=bP,bT=bO=bR=null;}var bH,bJ=[],bI=[],bL;bC.extend(this,{init:function(bN){var bP=this,bM=bP.getRuntime(),bO;bL=bN,bI=bN.accept.mimes||bD.extList2mimes(bN.accept,bM.can("filter_by_extension")),bO=bM.getShimContainer(),function(){var bS,bR,bQ;bS=bG.get(bN.browse_button),bM.can("summon_file_dialog")&&("static"===bG.getStyle(bS,"position")&&(bS.style.position="relative"),bR=parseInt(bG.getStyle(bS,"z-index"),10)||1,bS.style.zIndex=bR,bO.style.zIndex=bR-1),bQ=bM.can("summon_file_dialog")?bS:bO,bB.addEvent(bQ,"mouseover",function(){bP.trigger("mouseenter");},bP.uid),bB.addEvent(bQ,"mouseout",function(){bP.trigger("mouseleave");},bP.uid),bB.addEvent(bQ,"mousedown",function(){bP.trigger("mousedown");},bP.uid),bB.addEvent(bG.get(bN.container),"mouseup",function(){bP.trigger("mouseup");},bP.uid),bS=null;}(),bK.call(this),bO=null,bP.trigger({type:"ready",async:!0});},getFiles:function(){return bJ;},disable:function(bN){var bM;(bM=bG.get(bH))&&(bM.disabled=!!bN);},destroy:function(){var bO=this.getRuntime(),bM=bO.getShim(),bN=bO.getShimContainer();bB.removeAllEvents(bN,this.uid),bB.removeAllEvents(bL&&bG.get(bL.container),this.uid),bB.removeAllEvents(bL&&bG.get(bL.browse_button),this.uid),bN&&(bN.innerHTML=""),bM.removeInstance(this.uid),bH=bJ=bI=bL=bN=bM=null;}});}return bE.FileInput=j;}),bq(a2,[a5,aT],function(bB,j){return bB.FileReader=j;}),bq(aG,[a5,bc,bu,aF,br,aM,a8,aY],function(bE,bH,bC,bD,j,bB,bF,bI){function bG(){function bL(bT){var bQ=this,bP,bS,bN,bR,bO=!1;if(bJ){if(bP=bJ.id.replace(/_iframe$/,""),bS=bC.get(bP+"_form")){for(bN=bS.getElementsByTagName("input"),bR=bN.length;
bR--;){switch(bN[bR].getAttribute("type")){case"hidden":bN[bR].parentNode.removeChild(bN[bR]);break;case"file":bO=!0;}}bN=[],bO||bS.parentNode.removeChild(bS),bS=null;}setTimeout(function(){bB.removeEvent(bJ,"load",bQ.uid),bJ.parentNode&&bJ.parentNode.removeChild(bJ);var bU=bQ.getRuntime().getShimContainer();bU.children.length||bU.parentNode.removeChild(bU),bU=bJ=null,bT();},1);}}var bK,bM,bJ;bH.extend(this,{send:function(bS,bR){function bP(){var bX=bO.getShimContainer()||document.body,bW=document.createElement("div");bW.innerHTML='<iframe id="'+bQ+'_iframe" name="'+bQ+'_iframe" src="javascript:&quot;&quot;" style="display:none"></iframe>',bJ=bW.firstChild,bX.appendChild(bJ),bB.addEvent(bJ,"load",function(){var bZ;try{bZ=bJ.contentWindow.document||bJ.contentDocument||window.frames[bJ.id].document,/^4(0[0-9]|1[0-7]|2[2346])\s/.test(bZ.title)?bK=bZ.title.replace(/^(\d+).*$/,"$1"):(bK=200,bM=bH.trim(bZ.body.innerHTML),bN.trigger({type:"progress",loaded:bM.length,total:bM.length}),bU&&bN.trigger({type:"uploadprogress",loaded:bU.size||1025,total:bU.size||1025}));}catch(bY){if(!bD.hasSameOrigin(bS.url)){return void bL.call(bN,function(){bN.trigger("error");});}bK=404;}bL.call(bN,function(){bN.trigger("load");});},bN.uid);}var bN=this,bO=bN.getRuntime(),bQ,bV,bT,bU;if(bK=bM=null,bR instanceof bI&&bR.hasBlob()){if(bU=bR.getBlob(),bQ=bU.uid,bT=bC.get(bQ),bV=bC.get(bQ+"_form"),!bV){throw new j.DOMException(j.DOMException.NOT_FOUND_ERR);}}else{bQ=bH.guid("uid_"),bV=document.createElement("form"),bV.setAttribute("id",bQ+"_form"),bV.setAttribute("method",bS.method),bV.setAttribute("enctype","multipart/form-data"),bV.setAttribute("encoding","multipart/form-data"),bV.setAttribute("target",bQ+"_iframe"),bO.getShimContainer().appendChild(bV);}bR instanceof bI&&bR.each(function(bX,bY){if(bX instanceof bF){bT&&bT.setAttribute("name",bY);}else{var bW=document.createElement("input");bH.extend(bW,{type:"hidden",name:bY,value:bX}),bT?bV.insertBefore(bW,bT):bV.appendChild(bW);}}),bV.setAttribute("action",bS.url),bP(),bV.submit(),bN.trigger("loadstart");},getStatus:function(){return bK;},getResponse:function(bN){if("json"===bN&&"string"===bH.typeOf(bM)&&window.JSON){try{return JSON.parse(bM.replace(/^\s*<pre[^>]*>/,"").replace(/<\/pre>\s*$/,""));}catch(bO){return null;}}return bM;},abort:function(){var bN=this;bJ&&bJ.contentWindow&&(bJ.contentWindow.stop?bJ.contentWindow.stop():bJ.contentWindow.document.execCommand?bJ.contentWindow.document.execCommand("Stop"):bJ.src="about:blank"),bL.call(this,function(){bN.dispatchEvent("abort");});}});}return bE.XMLHttpRequest=bG;}),bq(a0,[a5,ay],function(bB,j){return bB.Image=j;}),bz([bc,bx,bm,bw,bu,br,bi,bl,bs,bb,a8,ba,aU,bA,a9,by,aF,aC,aY,aE,aJ,aP,aM]);}(this);(function(ax){var j={},ay=ax.moxie.core.utils.Basic.inArray;return function aw(aB){var az,aA;for(az in aB){aA=typeof aB[az],aA==="object"&&!~ay(az,["Exceptions","Env","Mime"])?aw(aB[az]):aA==="function"&&(j[az]=aB[az]);}}(ax.moxie),j.Env=ax.moxie.core.utils.Env,j.Mime=ax.moxie.core.utils.Mime,j.Exceptions=ax.moxie.core.Exceptions,ax.mOxie=j,ax.o||(ax.o=j),j;})(this);(function(az,aw,aB){function ax(aE){function aD(aJ,aH,aI){var aG={chunks:"slice_blob",jpgresize:"send_binary_string",pngresize:"send_binary_string",progress:"report_upload_progress",multi_selection:"select_multiple",dragdrop:"drag_and_drop",drop_element:"drag_and_drop",headers:"send_custom_headers",urlstream_upload:"send_binary_string",canSendBinary:"send_binary",triggerDialog:"summon_file_dialog"};aG[aJ]?aF[aG[aJ]]=aH:aI||(aF[aJ]=aH);}var aC=aE.required_features,aF={};if(typeof aC=="string"){aA.each(aC.split(/\s*,\s*/),function(aG){aD(aG,!0);});}else{if(typeof aC=="object"){aA.each(aC,function(aH,aG){aD(aG,aH);});}else{if(aC===!0){aE.chunk_size>0&&(aF.slice_blob=!0);if(aE.resize.enabled||!aE.multipart){aF.send_binary_string=!0;}aA.each(aE,function(aH,aG){aD(aG,!!aH,!0);});}}}return aF;}var ay=az.setTimeout,j={},aA={VERSION:"2.1.2",STOPPED:1,STARTED:2,QUEUED:1,UPLOADING:2,FAILED:4,DONE:5,GENERIC_ERROR:-100,HTTP_ERROR:-200,IO_ERROR:-300,SECURITY_ERROR:-400,INIT_ERROR:-500,FILE_SIZE_ERROR:-600,FILE_EXTENSION_ERROR:-601,FILE_DUPLICATE_ERROR:-602,IMAGE_FORMAT_ERROR:-700,MEMORY_ERROR:-701,IMAGE_DIMENSIONS_ERROR:-702,mimeTypes:aw.mimes,ua:aw.ua,typeOf:aw.typeOf,extend:aw.extend,guid:aw.guid,get:function(aF){var aE=[],aC;aw.typeOf(aF)!=="array"&&(aF=[aF]);var aD=aF.length;while(aD--){aC=aw.get(aF[aD]),aC&&aE.push(aC);}return aE.length?aE:null;},each:aw.each,getPos:aw.getPos,getSize:aw.getSize,xmlEncode:function(aD){var aC={"<":"lt",">":"gt","&":"amp",'"':"quot","'":"#39"},aE=/[<>&\"\']/g;return aD?(""+aD).replace(aE,function(aF){return aC[aF]?"&"+aC[aF]+";":aF;}):aD;},toArray:aw.toArray,inArray:aw.inArray,addI18n:aw.addI18n,translate:aw.translate,isEmptyObj:aw.isEmptyObj,hasClass:aw.hasClass,addClass:aw.addClass,removeClass:aw.removeClass,getStyle:aw.getStyle,addEvent:aw.addEvent,removeEvent:aw.removeEvent,removeAllEvents:aw.removeAllEvents,cleanName:function(aD){var aC,aE;aE=[/[\300-\306]/g,"A",/[\340-\346]/g,"a",/\307/g,"C",/\347/g,"c",/[\310-\313]/g,"E",/[\350-\353]/g,"e",/[\314-\317]/g,"I",/[\354-\357]/g,"i",/\321/g,"N",/\361/g,"n",/[\322-\330]/g,"O",/[\362-\370]/g,"o",/[\331-\334]/g,"U",/[\371-\374]/g,"u"];
for(aC=0;aC<aE.length;aC+=2){aD=aD.replace(aE[aC],aE[aC+1]);}return aD=aD.replace(/\s+/g,"_"),aD=aD.replace(/[^a-z0-9_\-\.]+/gi,""),aD;},buildUrl:function(aD,aC){var aE="";return aA.each(aC,function(aG,aF){aE+=(aE?"&":"")+encodeURIComponent(aF)+"="+encodeURIComponent(aG);}),aE&&(aD+=(aD.indexOf("?")>0?"&":"?")+aE),aD;},formatSize:function(aE){function aC(aG,aF){return Math.round(aG*Math.pow(10,aF))/Math.pow(10,aF);}if(aE===aB||/\D/.test(aE)){return aA.translate("N/A");}var aD=Math.pow(1024,4);return aE>aD?aC(aE/aD,1)+" "+aA.translate("tb"):aE>(aD/=1024)?aC(aE/aD,1)+" "+aA.translate("gb"):aE>(aD/=1024)?aC(aE/aD,1)+" "+aA.translate("mb"):aE>1024?Math.round(aE/1024)+" "+aA.translate("kb"):aE+" "+aA.translate("b");},parseSize:aw.parseSizeStr,predictRuntime:function(aE,aF){var aD,aC;return aD=new aA.Uploader(aE),aC=aw.Runtime.thatCan(aD.getOption().required_features,aF||aE.runtimes),aD.destroy(),aC;},addFileFilter:function(aD,aC){j[aD]=aC;}};aA.addFileFilter("mime_types",function(aD,aC,aE){aD.length&&!aD.regexp.test(aC.name)?(this.trigger("Error",{code:aA.FILE_EXTENSION_ERROR,message:aA.translate("File extension error."),file:aC}),aE(!1)):aE(!0);}),aA.addFileFilter("max_file_size",function(aE,aC,aF){var aD;aE=aA.parseSize(aE),aC.size!==aD&&aE&&aC.size>aE?(this.trigger("Error",{code:aA.FILE_SIZE_ERROR,message:aA.translate("File size error."),file:aC}),aF(!1)):aF(!0);}),aA.addFileFilter("prevent_duplicates",function(aE,aC,aF){if(aE){var aD=this.files.length;while(aD--){if(aC.name===this.files[aD].name&&aC.size===this.files[aD].size){this.trigger("Error",{code:aA.FILE_DUPLICATE_ERROR,message:aA.translate("Duplicate file error."),file:aC}),aF(!1);return;}}}aF(!0);}),aA.Uploader=function(aY){function aW(){var a5,a4=0,a6;if(this.state==aA.STARTED){for(a6=0;a6<aX.length;a6++){!a5&&aX[a6].status==aA.QUEUED?(a5=aX[a6],this.trigger("BeforeUpload",a5)&&(a5.status=aA.UPLOADING,this.trigger("UploadFile",a5))):a4++;}a4==aX.length&&(this.state!==aA.STOPPED&&(this.state=aA.STOPPED,this.trigger("StateChanged")),this.trigger("UploadComplete",aX));}}function aI(a4){a4.percent=a4.size>0?Math.ceil(a4.loaded/a4.size*100):100,a1();}function a1(){var a5,a4;aZ.reset();for(a5=0;a5<aX.length;a5++){a4=aX[a5],a4.size!==aB?(aZ.size+=a4.origSize,aZ.loaded+=a4.loaded*a4.origSize/a4.size):aZ.size=aB,a4.status==aA.DONE?aZ.uploaded++:a4.status==aA.FAILED?aZ.failed++:aZ.queued++;}aZ.size===aB?aZ.percent=aX.length>0?Math.ceil(aZ.uploaded/aX.length*100):0:(aZ.bytesPerSec=Math.ceil(aZ.loaded/((+(new Date)-aQ||1)/1000)),aZ.percent=aZ.size>0?Math.ceil(aZ.loaded/aZ.size*100):0);}function aK(){var a4=a0[0]||aV[0];return a4?a4.getRuntime().uid:!1;}function aN(a5,a6){if(a5.ruid){var a4=aw.Runtime.getInfo(a5.ruid);if(a4){return a4.can(a6);}}return !1;}function aD(){this.bind("FilesAdded FilesRemoved",function(a4){a4.trigger("QueueChanged"),a4.refresh();}),this.bind("CancelUpload",aE),this.bind("BeforeUpload",aP),this.bind("UploadFile",aU),this.bind("UploadProgress",aH),this.bind("StateChanged",aR),this.bind("QueueChanged",a1),this.bind("Error",a3),this.bind("FileUploaded",aG),this.bind("Destroy",aO);}function aJ(a8,a9){var a7=this,a5=0,a6=[],a4={runtime_order:a8.runtimes,required_caps:a8.required_features,preferred_caps:aT,swf_url:a8.flash_swf_url,xap_url:a8.silverlight_xap_url};aA.each(a8.runtimes.split(/\s*,\s*/),function(ba){a8[ba]&&(a4[ba]=a8[ba]);}),a8.browse_button&&aA.each(a8.browse_button,function(ba){a6.push(function(bc){var bb=new aw.FileInput(aA.extend({},a4,{accept:a8.filters.mime_types,name:a8.file_data_name,multiple:a8.multi_selection,container:a8.container,browse_button:ba}));bb.onready=function(){var bd=aw.Runtime.getInfo(this.ruid);aw.extend(a7.features,{chunks:bd.can("slice_blob"),multipart:bd.can("send_multipart"),multi_selection:bd.can("select_multiple")}),a5++,a0.push(this),bc();},bb.onchange=function(){a7.addFile(this.files);},bb.bind("mouseenter mouseleave mousedown mouseup",function(bd){aL||(a8.browse_button_hover&&("mouseenter"===bd.type?aw.addClass(ba,a8.browse_button_hover):"mouseleave"===bd.type&&aw.removeClass(ba,a8.browse_button_hover)),a8.browse_button_active&&("mousedown"===bd.type?aw.addClass(ba,a8.browse_button_active):"mouseup"===bd.type&&aw.removeClass(ba,a8.browse_button_active)));}),bb.bind("mousedown",function(){a7.trigger("Browse");}),bb.bind("error runtimeerror",function(){bb=null,bc();}),bb.init();});}),a8.drop_element&&aA.each(a8.drop_element,function(ba){a6.push(function(bc){var bb=new aw.FileDrop(aA.extend({},a4,{drop_zone:ba}));bb.onready=function(){var bd=aw.Runtime.getInfo(this.ruid);a7.features.dragdrop=bd.can("drag_and_drop"),a5++,aV.push(this),bc();},bb.ondrop=function(){a7.addFile(this.files);},bb.bind("error runtimeerror",function(){bb=null,bc();}),bb.init();});}),aw.inSeries(a6,function(){typeof a9=="function"&&a9(a5);});}function aC(a7,a6,a4){var a5=new aw.Image;try{a5.onload=function(){if(a6.width>this.width&&a6.height>this.height&&a6.quality===aB&&a6.preserve_headers&&!a6.crop){return this.destroy(),a4(a7);
}a5.downsize(a6.width,a6.height,a6.crop,a6.preserve_headers);},a5.onresize=function(){a4(this.getAsBlob(a7.type,a6.quality)),this.destroy();},a5.onerror=function(){a4(a7);},a5.load(a7);}catch(a8){a4(a7);}}function aF(a8,a9,a6){function a7(bc,ba,bd){var bb=a2[bc];switch(bc){case"max_file_size":bc==="max_file_size"&&(a2.max_file_size=a2.filters.max_file_size=ba);break;case"chunk_size":if(ba=aA.parseSize(ba)){a2[bc]=ba,a2.send_file_name=!0;}break;case"multipart":a2[bc]=ba,ba||(a2.send_file_name=!0);break;case"unique_names":a2[bc]=ba,ba&&(a2.send_file_name=!0);break;case"filters":aA.typeOf(ba)==="array"&&(ba={mime_types:ba}),bd?aA.extend(a2.filters,ba):a2.filters=ba,ba.mime_types&&(a2.filters.mime_types.regexp=function(bf){var be=[];return aA.each(bf,function(bg){aA.each(bg.extensions.split(/,/),function(bh){/^\s*\*\s*$/.test(bh)?be.push("\\.*"):be.push("\\."+bh.replace(new RegExp("["+"/^$.*+?|()[]{}\\".replace(/./g,"\\$&")+"]","g"),"\\$&"));});}),new RegExp("("+be.join("|")+")$","i");}(a2.filters.mime_types));break;case"resize":bd?aA.extend(a2.resize,ba,{enabled:!0}):a2.resize=ba;break;case"prevent_duplicates":a2.prevent_duplicates=a2.filters.prevent_duplicates=!!ba;break;case"browse_button":case"drop_element":ba=aA.get(ba);case"container":case"runtimes":case"multi_selection":case"flash_swf_url":case"silverlight_xap_url":a2[bc]=ba,bd||(a4=!0);break;default:a2[bc]=ba;}bd||a5.trigger("OptionChanged",bc,ba,bb);}var a5=this,a4=!1;typeof a8=="object"?aA.each(a8,function(bb,ba){a7(ba,bb,a6);}):a7(a8,a9,a6),a6?(a2.required_features=ax(aA.extend({},a2)),aT=ax(aA.extend({},a2,{required_features:!0}))):a4&&(a5.trigger("Destroy"),aJ.call(a5,a2,function(ba){ba?(a5.runtime=aw.Runtime.getInfo(aK()).type,a5.trigger("Init",{runtime:a5.runtime}),a5.trigger("PostInit")):a5.trigger("Error",{code:aA.INIT_ERROR,message:aA.translate("Init error.")});}));}function aP(a6,a4){if(a6.settings.unique_names){var a7=a4.name.match(/\.([^.]+)$/),a5="part";a7&&(a5=a7[1]),a4.target_name=a4.id+"."+a5;}}function aU(a9,a5){function a7(){bc-->0?ay(a4,1000):(a5.loaded=a8,a9.trigger("Error",{code:aA.HTTP_ERROR,message:aA.translate("HTTP Error."),file:a5,response:aS.responseText,status:aS.status,responseHeaders:aS.getAllResponseHeaders()}));}function a4(){var bg,be,bf={},bh;if(a5.status!==aA.UPLOADING||a9.state===aA.STOPPED){return;}a9.settings.send_file_name&&(bf.name=a5.target_name||a5.name),bd&&bb.chunks&&ba.size>bd?(bh=Math.min(bd,ba.size-a8),bg=ba.slice(a8,a8+bh)):(bh=ba.size,bg=ba),bd&&bb.chunks&&(a9.settings.send_chunk_number?(bf.chunk=Math.ceil(a8/bd),bf.chunks=Math.ceil(ba.size/bd)):(bf.offset=a8,bf.total=ba.size)),aS=new aw.XMLHttpRequest,aS.upload&&(aS.upload.onprogress=function(bi){a5.loaded=Math.min(a5.size,a8+bi.loaded),a9.trigger("UploadProgress",a5);}),aS.onload=function(){if(aS.status>=400){a7();return;}bc=a9.settings.max_retries,bh<ba.size?(bg.destroy(),a8+=bh,a5.loaded=Math.min(a8,ba.size),a9.trigger("ChunkUploaded",a5,{offset:a5.loaded,total:ba.size,response:aS.responseText,status:aS.status,responseHeaders:aS.getAllResponseHeaders()}),aw.Env.browser==="Android Browser"&&a9.trigger("UploadProgress",a5)):a5.loaded=a5.size,bg=be=null,!a8||a8>=ba.size?(a5.size!=a5.origSize&&(ba.destroy(),ba=null),a9.trigger("UploadProgress",a5),a5.status=aA.DONE,a9.trigger("FileUploaded",a5,{response:aS.responseText,status:aS.status,responseHeaders:aS.getAllResponseHeaders()})):ay(a4,1);},aS.onerror=function(){a7();},aS.onloadend=function(){this.destroy(),aS=null;},a9.settings.multipart&&bb.multipart?(aS.open("post",a6,!0),aA.each(a9.settings.headers,function(bj,bi){aS.setRequestHeader(bi,bj);}),be=new aw.FormData,aA.each(aA.extend(bf,a9.settings.multipart_params),function(bj,bi){be.append(bi,bj);}),be.append(a9.settings.file_data_name,bg),aS.send(be,{runtime_order:a9.settings.runtimes,required_caps:a9.settings.required_features,preferred_caps:aT,swf_url:a9.settings.flash_swf_url,xap_url:a9.settings.silverlight_xap_url})):(a6=aA.buildUrl(a9.settings.url,aA.extend(bf,a9.settings.multipart_params)),aS.open("post",a6,!0),aS.setRequestHeader("Content-Type","application/octet-stream"),aA.each(a9.settings.headers,function(bj,bi){aS.setRequestHeader(bi,bj);}),aS.send(bg,{runtime_order:a9.settings.runtimes,required_caps:a9.settings.required_features,preferred_caps:aT,swf_url:a9.settings.flash_swf_url,xap_url:a9.settings.silverlight_xap_url}));}var a6=a9.settings.url,bd=a9.settings.chunk_size,bc=a9.settings.max_retries,bb=a9.features,a8=0,ba;a5.loaded&&(a8=a5.loaded=bd?bd*Math.floor(a5.loaded/bd):0),ba=a5.getSource(),a9.settings.resize.enabled&&aN(ba,"send_binary_string")&&!!~aw.inArray(ba.type,["image/jpeg","image/png"])?aC.call(this,ba,a9.settings.resize,function(be){ba=be,a5.size=be.size,a4();}):a4();}function aH(a5,a4){aI(a4);}function aR(a5){if(a5.state==aA.STARTED){aQ=+(new Date);}else{if(a5.state==aA.STOPPED){for(var a4=a5.files.length-1;a4>=0;a4--){a5.files[a4].status==aA.UPLOADING&&(a5.files[a4].status=aA.QUEUED,a1());}}}}function aE(){aS&&aS.abort();}function aG(a4){a1(),ay(function(){aW.call(a4);
},1);}function a3(a5,a4){a4.code===aA.INIT_ERROR?a5.destroy():a4.file&&(a4.file.status=aA.FAILED,aI(a4.file),a5.state==aA.STARTED&&(a5.trigger("CancelUpload"),ay(function(){aW.call(a5);},1)));}function aO(a4){a4.stop(),aA.each(aX,function(a5){a5.destroy();}),aX=[],a0.length&&(aA.each(a0,function(a5){a5.destroy();}),a0=[]),aV.length&&(aA.each(aV,function(a5){a5.destroy();}),aV=[]),aT={},aL=!1,aQ=aS=null,aZ.reset();}var aM=aA.guid(),a2,aX=[],aT={},a0=[],aV=[],aQ,aZ,aL=!1,aS;a2={runtimes:aw.Runtime.order,max_retries:0,chunk_size:0,multipart:!0,multi_selection:!0,file_data_name:"file",flash_swf_url:"js/Moxie.swf",silverlight_xap_url:"js/Moxie.xap",filters:{mime_types:[],prevent_duplicates:!1,max_file_size:0},resize:{enabled:!1,preserve_headers:!0,crop:!1},send_file_name:!0,send_chunk_number:!0},aF.call(this,aY,null,!0),aZ=new aA.QueueProgress,aA.extend(this,{id:aM,uid:aM,state:aA.STOPPED,features:{},runtime:null,files:aX,settings:a2,total:aZ,init:function(){var a4=this;typeof a2.preinit=="function"?a2.preinit(a4):aA.each(a2.preinit,function(a5,a6){a4.bind(a6,a5);}),aD.call(this);if(!a2.browse_button||!a2.url){this.trigger("Error",{code:aA.INIT_ERROR,message:aA.translate("Init error.")});return;}aJ.call(this,a2,function(a5){typeof a2.init=="function"?a2.init(a4):aA.each(a2.init,function(a6,a7){a4.bind(a7,a6);}),a5?(a4.runtime=aw.Runtime.getInfo(aK()).type,a4.trigger("Init",{runtime:a4.runtime}),a4.trigger("PostInit")):a4.trigger("Error",{code:aA.INIT_ERROR,message:aA.translate("Init error.")});});},setOption:function(a5,a4){aF.call(this,a5,a4,!this.runtime);},getOption:function(a4){return a4?a2[a4]:a2;},refresh:function(){a0.length&&aA.each(a0,function(a4){a4.trigger("Refresh");}),this.trigger("Refresh");},start:function(){this.state!=aA.STARTED&&(this.state=aA.STARTED,this.trigger("StateChanged"),aW.call(this));},stop:function(){this.state!=aA.STOPPED&&(this.state=aA.STOPPED,this.trigger("StateChanged"),this.trigger("CancelUpload"));},disableBrowse:function(){aL=arguments[0]!==aB?arguments[0]:!0,a0.length&&aA.each(a0,function(a4){a4.disable(aL);}),this.trigger("DisableBrowse",aL);},getFile:function(a5){var a4;for(a4=aX.length-1;a4>=0;a4--){if(aX[a4].id===a5){return aX[a4];}}},addFile:function(a9,bb){function ba(bd,be){var bc=[];aw.each(a7.settings.filters,function(bf,bg){j[bg]&&bc.push(function(bh){j[bg].call(a7,bf,bd,function(bi){bh(!bi);});});}),aw.inSeries(bc,be);}function a8(bd){var bc=aw.typeOf(bd);if(bd instanceof aw.File){if(!bd.ruid&&!bd.isDetached()){if(!a4){return !1;}bd.ruid=a4,bd.connectRuntime(a4);}a8(new aA.File(bd));}else{bd instanceof aw.Blob?(a8(bd.getSource()),bd.destroy()):bd instanceof aA.File?(bb&&(bd.name=bb),a6.push(function(be){ba(bd,function(bf){bf||(aX.push(bd),a5.push(bd),a7.trigger("FileFiltered",bd)),ay(be,1);});})):aw.inArray(bc,["file","blob"])!==-1?a8(new aw.File(null,bd)):bc==="node"&&aw.typeOf(bd.files)==="filelist"?aw.each(bd.files,a8):bc==="array"&&(bb=null,aw.each(bd,a8));}}var a7=this,a6=[],a5=[],a4;a4=aK(),a8(a9),a6.length&&aw.inSeries(a6,function(){a5.length&&a7.trigger("FilesAdded",a5);});},removeFile:function(a5){var a4=typeof a5=="string"?a5:a5.id;for(var a6=aX.length-1;a6>=0;a6--){if(aX[a6].id===a4){return this.splice(a6,1)[0];}}},splice:function(a7,a5){var a6=aX.splice(a7===aB?0:a7,a5===aB?aX.length:a5),a4=!1;return this.state==aA.STARTED&&(aA.each(a6,function(a8){if(a8.status===aA.UPLOADING){return a4=!0,!1;}}),a4&&this.stop()),this.trigger("FilesRemoved",a6),aA.each(a6,function(a8){a8.destroy();}),a4&&this.start(),a6;},bind:function(a6,a4,a7){var a5=this;aA.Uploader.prototype.bind.call(this,a6,function(){var a8=[].slice.call(arguments);return a8.splice(0,1,a5),a4.apply(this,a8);},0,a7);},destroy:function(){this.trigger("Destroy"),a2=aZ=null,this.unbindAll();}});},aA.Uploader.prototype=aw.EventTarget.instance,aA.File=function(){function aD(aE){aA.extend(this,{id:aA.guid(),name:aE.name||aE.fileName,type:aE.type||"",size:aE.size||aE.fileSize,origSize:aE.size||aE.fileSize,loaded:0,percent:0,status:aA.QUEUED,lastModifiedDate:aE.lastModifiedDate||(new Date).toLocaleString(),getNative:function(){var aF=this.getSource().getSource();return aw.inArray(aw.typeOf(aF),["blob","file"])!==-1?aF:null;},getSource:function(){return aC[this.id]?aC[this.id]:null;},destroy:function(){var aF=this.getSource();aF&&(aF.destroy(),delete aC[this.id]);}}),aC[this.id]=aE;}var aC={};return aD;}(),aA.QueueProgress=function(){var aC=this;aC.size=0,aC.loaded=0,aC.uploaded=0,aC.failed=0,aC.queued=0,aC.percent=0,aC.bytesPerSec=0,aC.reset=function(){aC.size=aC.loaded=aC.uploaded=aC.failed=aC.queued=aC.percent=aC.bytesPerSec=0;};},az.plupload=aA;})(window,mOxie);(function(ay,aw){function ax(aA){return plupload.translate(aA)||aA;}function j(aA,aB){aB.contents().each(function(aC,aD){aD=ay(aD),aD.is(".plupload")||aD.remove();}),aB.prepend('<div class="plupload_wrapper plupload_scroll"><div id="'+aA+'_container" class="plupload_container">'+'<div class="plupload">'+'<div class="plupload_header">'+'<div class="plupload_header_content">'+'<div class="plupload_header_title">'+ax("Select files")+"</div>"+'<div class="plupload_header_text">'+ax("Add files to the upload queue and click the start button.")+"</div>"+"</div>"+"</div>"+'<div class="plupload_content">'+'<div class="plupload_filelist_header">'+'<div class="plupload_file_name">'+ax("Filename")+"</div>"+'<div class="plupload_file_action">&nbsp;</div>'+'<div class="plupload_file_status"><span>'+ax("Status")+"</span></div>"+'<div class="plupload_file_size">'+ax("Size")+"</div>"+'<div class="plupload_clearer">&nbsp;</div>'+"</div>"+'<ul id="'+aA+'_filelist" class="plupload_filelist"></ul>'+'<div class="plupload_filelist_footer">'+'<div class="plupload_file_name">'+'<div class="plupload_buttons">'+'<a href="#" class="plupload_button plupload_add" id="'+aA+'_browse">'+ax("Add Files")+"</a>"+'<a href="#" class="plupload_button plupload_start">'+ax("Start Upload")+"</a>"+"</div>"+'<span class="plupload_upload_status"></span>'+"</div>"+'<div class="plupload_file_action"></div>'+'<div class="plupload_file_status"><span class="plupload_total_status">0%</span></div>'+'<div class="plupload_file_size"><span class="plupload_total_file_size">0 b</span></div>'+'<div class="plupload_progress">'+'<div class="plupload_progress_container">'+'<div class="plupload_progress_bar"></div>'+"</div>"+"</div>"+'<div class="plupload_clearer">&nbsp;</div>'+"</div>"+"</div>"+"</div>"+"</div>"+'<input type="hidden" id="'+aA+'_count" name="'+aA+'_count" value="0" />'+"</div>");
}var az={};ay.fn.pluploadQueue=function(aA){return aA?(this.each(function(){function aI(aJ){var aL;aJ.status==plupload.DONE&&(aL="plupload_done"),aJ.status==plupload.FAILED&&(aL="plupload_failed"),aJ.status==plupload.QUEUED&&(aL="plupload_delete"),aJ.status==plupload.UPLOADING&&(aL="plupload_uploading");var aK=ay("#"+aJ.id).attr("class",aL).find("a").css("display","block");aJ.hint&&aK.attr("title",aJ.hint);}function aE(){ay("span.plupload_total_status",aC).html(aD.total.percent+"%"),ay("div.plupload_progress_bar",aC).css("width",aD.total.percent+"%"),ay("span.plupload_upload_status",aC).html(aw.sprintf(ax("Uploaded %d/%d files"),aD.total.uploaded,aD.files.length));}function aG(){var aL=ay("ul.plupload_filelist",aC).html(""),aJ=0,aK;ay.each(aD.files,function(aM,aN){aK="",aN.status==plupload.DONE&&(aN.target_name&&(aK+='<input type="hidden" name="'+aF+"_"+aJ+'_tmpname" value="'+plupload.xmlEncode(aN.target_name)+'" />'),aK+='<input type="hidden" name="'+aF+"_"+aJ+'_name" value="'+plupload.xmlEncode(aN.name)+'" />',aK+='<input type="hidden" name="'+aF+"_"+aJ+'_status" value="'+(aN.status==plupload.DONE?"done":"failed")+'" />',aJ++,ay("#"+aF+"_count").val(aJ)),aL.append('<li id="'+aN.id+'">'+'<div class="plupload_file_name"><span>'+aN.name+"</span></div>"+'<div class="plupload_file_action"><a href="#"></a></div>'+'<div class="plupload_file_status">'+aN.percent+"%</div>"+'<div class="plupload_file_size">'+plupload.formatSize(aN.size)+"</div>"+'<div class="plupload_clearer">&nbsp;</div>'+aK+"</li>"),aI(aN),ay("#"+aN.id+".plupload_delete a").click(function(aO){ay("#"+aN.id).remove(),aD.removeFile(aN),aO.preventDefault();});}),ay("span.plupload_total_file_size",aC).html(plupload.formatSize(aD.total.size)),aD.total.queued===0?ay("span.plupload_add_text",aC).html(ax("Add Files")):ay("span.plupload_add_text",aC).html(aw.sprintf(ax("%d files queued"),aD.total.queued)),ay("a.plupload_start",aC).toggleClass("plupload_disabled",aD.files.length==aD.total.uploaded+aD.total.failed),aL[0].scrollTop=aL[0].scrollHeight,aE(),!aD.files.length&&aD.features.dragdrop&&aD.settings.dragdrop&&ay("#"+aF+"_filelist").append('<li class="plupload_droptext">'+ax("Drag files here.")+"</li>");}function aH(){delete az[aF],aD.destroy(),aC.html(aB),aD=aC=aB=null;}var aD,aC,aF,aB;aC=ay(this),aF=aC.attr("id"),aF||(aF=plupload.guid(),aC.attr("id",aF)),aB=aC.html(),j(aF,aC),aA=ay.extend({dragdrop:!0,browse_button:aF+"_browse",container:aF},aA),aA.dragdrop&&(aA.drop_element=aF+"_filelist"),aD=new plupload.Uploader(aA),az[aF]=aD,aD.bind("UploadFile",function(aJ,aK){ay("#"+aK.id).addClass("plupload_current_file");}),aD.bind("Init",function(aJ,aK){!aA.unique_names&&aA.rename&&aC.on("click","#"+aF+"_filelist div.plupload_file_name span",function(aQ){var aO=ay(aQ.target),aM,aN,aP,aL="";aM=aJ.getFile(aO.parents("li")[0].id),aP=aM.name,aN=/^(.+)(\.[^.]+)$/.exec(aP),aN&&(aP=aN[1],aL=aN[2]),aO.hide().after('<input type="text" />'),aO.next().val(aP).focus().blur(function(){aO.show().next().remove();}).keydown(function(aR){var aS=ay(this);aR.keyCode==13&&(aR.preventDefault(),aM.name=aS.val()+aL,aO.html(aM.name),aS.blur());});}),ay("#"+aF+"_container").attr("title","Using runtime: "+aK.runtime),ay("a.plupload_start",aC).click(function(aL){ay(this).hasClass("plupload_disabled")||aD.start(),aL.preventDefault();}),ay("a.plupload_stop",aC).click(function(aL){aL.preventDefault(),aD.stop();}),ay("a.plupload_start",aC).addClass("plupload_disabled");}),aD.bind("Error",function(aK,aM){var aJ=aM.file,aL;aJ&&(aL=aM.message,aM.details&&(aL+=" ("+aM.details+")"),aM.code==plupload.FILE_SIZE_ERROR&&alert(ax("Error: File too large:")+" "+aJ.name),aM.code==plupload.FILE_EXTENSION_ERROR&&alert(ax("Error: Invalid file extension:")+" "+aJ.name),aJ.hint=aL,ay("#"+aJ.id).attr("class","plupload_failed").find("a").css("display","block").attr("title",aL)),aM.code===plupload.INIT_ERROR&&setTimeout(function(){aH();},1);}),aD.bind("PostInit",function(aJ){aJ.settings.dragdrop&&aJ.features.dragdrop&&ay("#"+aF+"_filelist").append('<li class="plupload_droptext">'+ax("Drag files here.")+"</li>");}),aD.init(),aD.bind("StateChanged",function(){aD.state===plupload.STARTED?(ay("li.plupload_delete a,div.plupload_buttons",aC).hide(),aD.disableBrowse(!0),ay("span.plupload_upload_status,div.plupload_progress,a.plupload_stop",aC).css("display","block"),ay("span.plupload_upload_status",aC).html("Uploaded "+aD.total.uploaded+"/"+aD.files.length+" files"),aA.multiple_queues&&ay("span.plupload_total_status,span.plupload_total_file_size",aC).show()):(aG(),ay("a.plupload_stop,div.plupload_progress",aC).hide(),ay("a.plupload_delete",aC).css("display","block"),aA.multiple_queues&&aD.total.uploaded+aD.total.failed==aD.files.length&&(ay(".plupload_buttons,.plupload_upload_status",aC).css("display","inline"),aD.disableBrowse(!1),ay(".plupload_start",aC).addClass("plupload_disabled"),ay("span.plupload_total_status,span.plupload_total_file_size",aC).hide()));}),aD.bind("FilesAdded",aG),aD.bind("FilesRemoved",function(){var aJ=ay("#"+aF+"_filelist").scrollTop();
aG(),ay("#"+aF+"_filelist").scrollTop(aJ);}),aD.bind("FileUploaded",function(aK,aJ){aI(aJ);}),aD.bind("UploadProgress",function(aJ,aK){ay("#"+aK.id+" div.plupload_file_status",aC).html(aK.percent+"%"),aI(aK),aE();}),aA.setup&&aA.setup(aD);}),this):az[ay(this[0]).attr("id")];};})(H,mOxie);function C(j,az,ax){if(typeof az=="undefined"){az=true;}if(typeof ax=="undefined"){ax=" ";}if(typeof(j)=="undefined"){return"";}var aA=1000;if(j<aA){return j+ax+(az?"b":"");}var aw=["K","M","G","T","P","E","Z","Y"];var ay=-1;do{j/=aA;++ay;}while(j>=aA);return j.toFixed(1)+ax+aw[ay]+(az?"b":"");}function W(j){return j.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");}function al(j){return j.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");}function ac(j){var aw=document.createElement("div");aw.innerHTML=j;return aw.childNodes;}function ah(j){return j.getElementsByTagName("head")[0];}function af(j){return j.getElementsByTagName("body")[0];}function ap(ax,az){var j=ax.getElementsByTagName("link");var ay=false;for(var aw=j.length-1;aw>=0;aw--){if(j[aw].href==az){j[aw].parentNode.removeChild(j[aw]);}}}function U(ay,aA){if(!ay){return;}var j=ay.getElementsByTagName("link");var az=false;for(var aw=0;aw<j.length;aw++){if(j[aw].href.indexOf(aA)!=-1){az=true;}}if(!az){var ax=ay.createElement("link");ax.href=aA;ax.type="text/css";ax.rel="stylesheet";ah(ay).appendChild(ax);}}function g(ay,aA){if(!ay){return;}var j=ay.getElementsByTagName("script");var az=false;for(var ax=0;ax<j.length;ax++){if(j[ax].src.indexOf(aA)!=-1){az=true;}}if(!az){var aw=ay.createElement("script");aw.src=aA;aw.type="text/javascript";ah(ay).appendChild(aw);}}function ar(j,ax,aw){U(b(j),ax);if(document!=b(j)&&aw){U(document,ax);}}function X(j,ax,aw){g(b(j),ax);if(document!=b(j)&&aw){g(document,ax);}}function ae(aw,j){var ax=b(aw);t(ax,j);}function t(ax,j){var aw=ax.createElement("style");ah(ax).appendChild(aw);aw.innerHTML=j;}function ak(aw,j){if(av(aw,j)){return;}aw.className=aw.className.length==0?j:aw.className+" "+j;}function ao(ax,j){var aw=a(ax);while(aw.indexOf(j)>-1){aw.splice(aw.indexOf(j),1);}var ay=aw.join(" ").trim();if(ay.length>0){ax.className=ay;}else{if(ax.hasAttribute("class")){ax.removeAttribute("class");}}}function a(j){if(typeof(j.className)==="undefined"||j.className==null){return[];}return j.className.split(/\s+/);}function av(ay,j){var ax=a(ay);for(var aw=0;aw<ax.length;aw++){if(ax[aw].toLowerCase()==j.toLowerCase()){return true;}}return false;}function au(ax,ay){var aw=a(ax);for(var j=0;j<aw.length;j++){if(aw[j].indexOf(ay)===0){return true;}}return false;}function R(ax){if(typeof(ax.getAttribute("style"))==="undefined"||ax.getAttribute("style")==null||ax.getAttribute("style").trim().length==0){return{};}var az={};var ay=ax.getAttribute("style").split(/;/);for(var aw=0;aw<ay.length;aw++){var aA=ay[aw].trim();var j=aA.indexOf(":");if(j>-1){az[aA.substr(0,j).trim()]=aA.substr(j+1);}else{az[aA]="";}}return az;}function aa(ax,aw){var ay=R(ax);for(var j in ay){var az=ay[j];if(j==aw){return az;}}return null;}function V(ay,ax,j){var az=R(ay);for(var aw in az){var aA=az[aw];if(aw==ax&&aA==j){return true;}}return false;}function v(ax,aw,j){var ay=R(ax);ay[aw]=j;m(ax,ay);}function T(aw,j){var ax=R(aw);delete ax[j];m(aw,ax);}function m(aw,ay){var ax=[];for(var j in ay){ax.push(j+":"+ay[j]);}if(ax.length>0){aw.setAttribute("style",ax.join(";"));}else{if(aw.hasAttribute("style")){aw.removeAttribute("style");}}}function s(az,aw){var ax;if(Object.prototype.toString.call(aw)==="[object Array]"){ax=aw;}else{ax=[aw];}for(var ay=0;ay<ax.length;ay++){ax[ay]=ax[ay].toLowerCase();}var j=[];for(var ay=0;ay<az.childNodes.length;ay++){if(az.childNodes[ay].nodeType==1&&ax.indexOf(az.childNodes[ay].tagName.toLowerCase())>-1){j.push(az.childNodes[ay]);}}return j;}var h=1;P("jsplus_uploader_url",e("jsplus_uploader")+"uploader.php");o("runtimes","html5,flash,html4,silverlight,browserplus,gears");o("auto_upload",true);if(h==101||h==102||h==104||h==1||h==2){o("allowed_ext","jpg,jpeg,gif,png,bmp,tif,tiff");}else{if(h==103){o("allowed_ext","*");}}if(h==101||h==102||h==104||h==1||h==2){o("default_img_resize",true);o("default_img_resize_width",800);o("default_img_resize_height",600);o("default_img_resize_enlarge",false);o("img_resize_show",true);}if(h==102||h==104||h==1||h==2){o("default_thumb_resize_width",200);o("default_thumb_resize_height",200);o("default_thumb_resize_enlarge",false);o("thumb_resize_show",true);}if(h==1||h==2){o("default_col_count",3);o("col_count_show",true);}if(h==101){o("template","<img src='{IMAGE}'/>");}else{if(h==102){o("template","<a class='jsplus_preview_href' rel='lightbox' href='{IMAGE}'><img src='{PREVIEW}'/></a>");}else{if(h==103){o("template","<div style='display:inline-block'>"+'<img src="{PLUGIN_PATH}img/download.png" style="width:24px;height:24px;margin-right:5px;margin-top:-4px;vertical-align: middle"/>'+"<a class='jsplus_easy_file' style=\"font-size:16px;margin-right:15px;\" href='{FILE}'>Download file</a>"+"</div>");
}else{if(h==104){o("template","<div class='jsplus_gallery_item' style='height: {PREVIEW_HEIGHT}px; width: {PREVIEW_WIDTH}px; border: 1px solid silver; white-space: nowrap; padding: 10px; display: inline-block; text-align: center; margin: 5px;'>"+"<a rel='lightbox' href='{IMAGE}' data-lightbox='{SET_ID}'>"+"<span style='display: inline-block; height: 100%; vertical-align: middle;'></span>"+"<img src='{PREVIEW}' style='vertical-align: middle; max-height: {PREVIEW_HEIGHT}px; max-width: {PREVIEW_WIDTH}px'/>"+"</a>"+"</div>");o("template_wrap","<div class='jsplus_bootstrap_gallery' data-lightbox-id='{SET_ID}' style='padding:10px;border:1px solid #DFDFDF; display: table'>{ITEMS}</div>");}else{if(h==1){o("template","<div class='col-xs-{COL_WIDTH}' style='white-space: nowrap; padding: 5px; text-align: center'>"+"<div style='border: 1px solid silver; padding: 10px'>"+"<a rel='lightbox' href='{IMAGE}' data-lightbox='{SET_ID}'>"+"<span style='display: inline-block; height: 100%; vertical-align: middle;'></span>"+"<img src='{PREVIEW}' style='vertical-align: middle; max-height: {PREVIEW_HEIGHT}px; max-width: {PREVIEW_WIDTH}px'/>"+"</a>"+"</div>"+"</div>");o("template_wrap","<div class='row jsplus_bootstrap_gallery'>{ITEMS}</div>");}else{if(h==2){o("template","<div class='small-{COL_WIDTH} columns' style='white-space: nowrap; padding: 5px; text-align: center'>"+"<div style='border: 1px solid silver; padding: 10px'>"+"<a rel='lightbox' href='{IMAGE}' data-lightbox='{SET_ID}'>"+"<span style='display: inline-block; height: 100%; vertical-align: middle;'></span>"+"<img src='{PREVIEW}' style='vertical-align: middle; max-height: {PREVIEW_HEIGHT}px; max-width: {PREVIEW_WIDTH}px'/>"+"</a>"+"</div>"+"</div>");o("template_wrap","<div class='row jsplus_bootstrap_gallery'>{ITEMS}</div>");}}}}}}var I=[];var Z=false;var aq=null;var U=function(ay,aA){var j=ay.getElementsByTagName("link");var az=false;for(var aw=0;aw<j.length;aw++){if(j[aw].href.indexOf(aA)!=-1){az=true;}}if(!az){var ax=ay.createElement("link");ax.href=aA;ax.type="text/css";ax.rel="stylesheet";ay.getElementsByTagName("head")[0].appendChild(ax);}};var x=null;function M(aC,aw){var j=aw.substring(aw.lastIndexOf("/")+1);var aE=O(aC,"template");if(h==101){aE=aE.replace(/\{IMAGE\}/g,aw);aE=aE.replace(/\{FILENAME\}/g,j);}else{if(h==102){aE=aE.replace(/\{IMAGE\}/g,aw);aE=aE.replace(/\{FILENAME\}/g,j);var aA=aw.split(".");aA[aA.length-2]+="_small";aw=aA.join(".");j=aw.substring(aw.lastIndexOf("/")+1);aE=aE.replace(/\{PREVIEW\}/g,aw);aE=aE.replace(/\{FILENAME\}/g,j);}else{if(h==103){aE=aE.replace(/\{FILE\}/g,aw);aE=aE.replace(/\{FILENAME\}/g,j);aE=aE.replace(/\{PLUGIN_PATH\}/g,an());}else{if(h==104||h==1||h==2){if(!x){x=Math.random().toString(36).substr(2,5);}aE=aE.replace(/\{SET_ID\}/g,x);aE=aE.replace(/\{IMAGE\}/g,aw);aE=aE.replace(/\{FILENAME\}/g,j);var aA=aw.split(".");aA[aA.length-2]+="_small";aw=aA.join(".");j=aw.substring(aw.lastIndexOf("/")+1);aE=aE.replace(/\{PREVIEW\}/g,aw);aE=aE.replace(/\{FILENAME\}/g,j);if(h==1||h==2){var aD=parseInt(H("#jsplus_bootstrap_gallery-col-count-"+w(aC)).val());var az=3;if(aD==1){az=12;}if(aD==2){az=6;}if(aD==3){az=4;}if(aD==4){az=3;}if(aD==6){az=2;}if(aD==12){az=1;}aE=aE.replace(/\{COL_WIDTH\}/g,az);}var ax=parseInt(H("#jsplus_bootstrap_gallery-thumb-resize-width-"+w(aC)).val());var aB=parseInt(H("#jsplus_bootstrap_gallery-thumb-resize-height-"+w(aC)).val());var aF=function(){if(aB==0){return ax;}if(ax==0){return aB;}return aB>ax?aB:ax;};var ay=function(){if(aB==0){return ax;}if(ax==0){return aB;}return aB<ax?aB:ax;};aE=aE.replace(/\{PREVIEW_WIDTH\}\s*\+\s*(\d+)/g,function(aJ,aI,aH,aG){return ax+parseInt(aI);});aE=aE.replace(/\{PREVIEW_HEIGHT\}\s*\+\s*(\d+)/g,function(aJ,aI,aH,aG){return aB+parseInt(aI);});aE=aE.replace(/\{PREVIEW_MIN_WIDTH_OR_HEIGHT\}\s*\+\s*(\d+)/g,function(aJ,aI,aH,aG){return aF()+parseInt(aI);});aE=aE.replace(/\{PREVIEW_MAX_WIDTH_OR_HEIGHT\}\s*\+\s*(\d+)/g,function(aJ,aI,aH,aG){return ay()+parseInt(aI);});aE=aE.replace(/\{PREVIEW_WIDTH\}/g,ax);aE=aE.replace(/\{PREVIEW_HEIGHT\}/g,aB);aE=aE.replace(/\{PREVIEW_MIN_WIDTH_OR_HEIGHT\}/g,aF());aE=aE.replace(/\{PREVIEW_MAX_WIDTH_OR_HEIGHT\}/g,ay());}}}}return aE;}function S(j){return'<div class="jsplus_bootstrap_gallery-plupload2-'+w(j)+'" style="height:258px;font-size:12px;background-color:#DFDFDF !important">'+"</div>"+B(j);}function B(aw){if(h==103){return"";}var j="";if(h==1||h==2){var j='<style type="text/css" media="all">'+"#jsplus_bootstrap_gallery-panel-col-count-"+w(aw)+" { padding: 4px 0; line-height: 16px; }"+"#jsplus_bootstrap_gallery-panel-col-count-"+w(aw)+" select { background-color: white; width:66px;border:1px solid #AAA;padding:2px;margin:0 4px 0 4px;font-size:12px; }"+"#jsplus_bootstrap_gallery-panel-col-count-"+w(aw)+" .jsplus_bootstrap_gallery-label-"+w(aw)+" { display: inline-block; padding-left: 15px; text-indent: -15px; width: 80px; font-size: 12px; vertical-align: baseline; padding-right: 10px;}"+(O(aw,"col_count_show")?"":"#jsplus_bootstrap_gallery-panel-col-count-"+w(aw)+" { display: none !important; }")+"</style>"+'<div id="jsplus_bootstrap_gallery-panel-col-count-'+w(aw)+'" class="enabled">'+'<div style="display:inline-block">'+'<div class="jsplus_bootstrap_gallery-label-'+w(aw)+'" style="color:black">'+p(aw,"jsplus_bootstrap_gallery_col_count")+"</div>"+'<select style="box-sizing:content-box;width:60px;padding:2px;margin:0 4px;color:black;height:inherit" id="jsplus_bootstrap_gallery-col-count-'+w(aw)+'">'+'<option value="1" '+(O(aw,"default_col_count")==1?"selected":"")+">1</option>"+'<option value="2"'+(O(aw,"default_col_count")==2?"selected":"")+">2</option>"+'<option value="3"'+(O(aw,"default_col_count")==3?"selected":"")+">3</option>"+'<option value="4"'+(O(aw,"default_col_count")==4?"selected":"")+">4</option>"+'<option value="6"'+(O(aw,"default_col_count")==6?"selected":"")+">6</option>"+'<option value="12"'+(O(aw,"default_col_count")==12?"selected":"")+">12</option>"+"</select>"+"</div>"+"</div>";
}var ax="";if(h==102||h==104||h==1||h==2){var ax='<style type="text/css" media="all">'+"#jsplus_bootstrap_gallery-panel-thumb-resize-"+w(aw)+" #jsplus_bootstrap_gallery-thumb-resize-up-"+w(aw)+' { background-color: white; background-image: url("'+an()+'img/resize_up_disabled.png"); background-repeat: no-repeat; background-position: top left; width:19px; height:19px; display: inline-block; margin-left: 5px; font-size:15px; border: 1px solid #aaa; border-radius: 2px; }'+"#jsplus_bootstrap_gallery-panel-thumb-resize-"+w(aw)+".enabled #jsplus_bootstrap_gallery-thumb-resize-up-"+w(aw)+' { background-image: url("'+an()+'img/resize_up.png"); cursor: pointer; } '+"#jsplus_bootstrap_gallery-panel-thumb-resize-"+w(aw)+".enabled #jsplus_bootstrap_gallery-thumb-resize-up-"+w(aw)+':hover { background-image: url("'+an()+'img/resize_up_hover.png"); }'+"#jsplus_bootstrap_gallery-panel-thumb-resize-"+w(aw)+".enabled #jsplus_bootstrap_gallery-thumb-resize-up-"+w(aw)+'.jsplus_bootstrap_gallery-checked { background-image: url("'+an()+'img/resize_up_checked.png"); }'+"#jsplus_bootstrap_gallery-panel-thumb-resize-"+w(aw)+".enabled #jsplus_bootstrap_gallery-thumb-resize-up-"+w(aw)+'.jsplus_bootstrap_gallery-checked:hover { background-image: url("'+an()+'img/resize_up_checked_hover.png"); }'+"#jsplus_bootstrap_gallery-panel-thumb-resize-"+w(aw)+" { padding: 4px 0; line-height: 16px;}"+"#jsplus_bootstrap_gallery-panel-thumb-resize-"+w(aw)+' input[type="text"] {background-color: rgb(238, 238, 238); width:60px;border:1px solid #AAA;padding:2px;margin:0 4px 0 4px;font-size:12px; }'+"#jsplus_bootstrap_gallery-panel-thumb-resize-"+w(aw)+'.enabled input[type="text"] {background-color: white; }'+"#jsplus_bootstrap_gallery-panel-thumb-resize-"+w(aw)+" .jsplus_bootstrap_gallery-label-"+w(aw)+" { display: inline-block; padding-left: 15px; text-indent: -15px; width: 80px; font-size: 12px; vertical-align: baseline; padding-right:10px;}"+(O(aw,"thumb_resize_show")?"":"#jsplus_bootstrap_gallery-panel-thumb-resize-"+w(aw)+" { display: none !important; }")+"</style>"+'<div id="jsplus_bootstrap_gallery-panel-thumb-resize-'+w(aw)+'" class="enabled">'+'<div style="display:inline-block">'+'<div class="jsplus_bootstrap_gallery-label-'+w(aw)+'" style="color:black">'+p(aw,"resize_thumb")+"</div>"+'<input style="width:60px;padding:2px;margin:0 4px;display:inline-block;height:inherit;color:black;box-sizing:content-box" type="text" id="jsplus_bootstrap_gallery-thumb-resize-width-'+w(aw)+'" value="'+O(aw,"default_thumb_resize_width")+'"/>'+"&nbsp;×&nbsp;"+'<input style="width:60px;padding:2px;margin:0 4px;display:inline-block;height:inherit;color:black;box-sizing:content-box" type="text" id="jsplus_bootstrap_gallery-thumb-resize-height-'+w(aw)+'" value="'+O(aw,"default_thumb_resize_height")+'"/>'+"</div>"+'<div alt="'+p(aw,"resize_up")+'" title="'+p(aw,"resize_up")+'"'+(O(aw,"default_thumb_resize_enlarge")?' class="jsplus_bootstrap_gallery-checked"':"")+' id="jsplus_bootstrap_gallery-thumb-resize-up-'+w(aw)+'" style="box-sizing: content-box;">&nbsp;</div>'+"</div>";}var aA="";if(h==101||h==102||h==104||h==1||h==2){var aA='<style type="text/css" media="all">'+"#jsplus_bootstrap_gallery-panel-img-resize-"+w(aw)+" #jsplus_bootstrap_gallery-img-resize-up-"+w(aw)+' { background-color: white; background-image: url("'+an()+'img/resize_up_disabled.png"); background-repeat: no-repeat; background-position: top left; width:19px; height:19px; display: inline-block; margin-left: 5px; font-size:15px; border: 1px solid #aaa; border-radius: 2px; }'+"#jsplus_bootstrap_gallery-panel-img-resize-"+w(aw)+".enabled #jsplus_bootstrap_gallery-img-resize-up-"+w(aw)+' { background-image: url("'+an()+'img/resize_up.png"); cursor: pointer; } '+"#jsplus_bootstrap_gallery-panel-img-resize-"+w(aw)+".enabled #jsplus_bootstrap_gallery-img-resize-up-"+w(aw)+':hover { background-image: url("'+an()+'img/resize_up_hover.png"); }'+"#jsplus_bootstrap_gallery-panel-img-resize-"+w(aw)+".enabled #jsplus_bootstrap_gallery-img-resize-up-"+w(aw)+'.jsplus_bootstrap_gallery-checked { background-image: url("'+an()+'img/resize_up_checked.png"); }'+"#jsplus_bootstrap_gallery-panel-img-resize-"+w(aw)+".enabled #jsplus_bootstrap_gallery-img-resize-up-"+w(aw)+'.jsplus_bootstrap_gallery-checked:hover { background-image: url("'+an()+'img/resize_up_checked_hover.png"); }'+"#jsplus_bootstrap_gallery-img-resize-"+w(aw)+" { width: 13px; height: 13px; padding: 0; margin:0; vertical-align: bottom; position: relative; top: -1px; *overflow: hidden;}"+"#jsplus_bootstrap_gallery-panel-img-resize-"+w(aw)+" { padding: 4px 0; line-height: 16px;}"+"#jsplus_bootstrap_gallery-panel-img-resize-"+w(aw)+' input[type="text"] {background-color: rgb(238, 238, 238); width:60px;border:1px solid #AAA;padding:2px;margin:0 4px 0 4px;font-size:12px; }'+"#jsplus_bootstrap_gallery-panel-img-resize-"+w(aw)+'.enabled input[type="text"] {background-color: white; }'+"#jsplus_bootstrap_gallery-panel-img-resize-"+w(aw)+" .jsplus_bootstrap_gallery-label-"+w(aw)+" { display: inline-block; padding-left: 15px; text-indent: -15px; width: 80px; font-size: 12px; vertical-align: baseline;padding-right:10px;}"+(O(aw,"img_resize_show")?"":"#jsplus_bootstrap_gallery-panel-img-resize-"+w(aw)+" { display: none !important; }")+"</style>"+'<div id="jsplus_bootstrap_gallery-panel-img-resize-'+w(aw)+'"'+(O(aw,"default_img_resize")?' class="enabled"':"")+">"+'<div style="display:inline-block">'+'<label class="jsplus_bootstrap_gallery-label-'+w(aw)+'" style="color:black !important;font-weight:normal">'+'<input id="jsplus_bootstrap_gallery-img-resize-'+w(aw)+'" type="checkbox"'+(O(aw,"default_img_resize")?' checked="checked"':"")+"/>"+"&nbsp; "+p(aw,"resize")+"</label>"+'<input style="width:60px;padding:2px;margin:0 4px;display:inline-block;height:inherit;color:black;box-sizing:content-box" type="text" id="jsplus_bootstrap_gallery-img-resize-width-'+w(aw)+'" value="'+O(aw,"default_img_resize_width")+'" '+(O(aw,"default_img_resize")?"":'disabled="disabled"')+"/>"+"&nbsp;×&nbsp;"+'<input style="width:60px;padding:2px;margin:0 4px;display:inline-block;height:inherit;color:black;box-sizing:content-box" type="text" id="jsplus_bootstrap_gallery-img-resize-height-'+w(aw)+'" value="'+O(aw,"default_img_resize_height")+'"'+(O(aw,"default_img_resize")?"":'disabled="disabled"')+"/>"+"</div>"+'<div alt="'+p(aw,"resize_up")+'" title="'+p(aw,"resize_up")+'"'+(O(aw,"default_img_resize_enlarge")?' class="jsplus_bootstrap_gallery-checked"':"")+' id="jsplus_bootstrap_gallery-img-resize-up-'+w(aw)+'" style="box-sizing: content-box;">&nbsp;</div>'+"</div>";
}var az="";if(ax.length>0||aA.length>0||j.length>0){var ay=(O(aw,"img_resize_show")||O(aw,"thumb_resize_show")||O(aw,"col_count_show"))?10:0;az='<div style="border-top: 1px solid #aaa;width:100%;padding:'+ay+'px; background-color: #DFDFDF;margin:0;">'+ax+aA+j+"</div>";}return az;}function ai(ay,ax){if(typeof(window["jsplus_bootstrap_gallery_insert_range"])!="undefined"&&window["jsplus_bootstrap_gallery_insert_range"]!=null){var j=window["jsplus_bootstrap_gallery_insert_range"];window["jsplus_bootstrap_gallery_insert_range"]=null;var aB;if(j.startContainer){aB=j.startContainer;if(aB.nodeType==document.TEXT_NODE){aB=aB.parentNode;}else{if(j.startOffset<aB.childNodes.length){aB=aB.childNodes[j.startOffset];}}}else{aB=j.parentElement();}var aA=window["jsplus_bootstrap_gallery_event_target"];if(!aB||aA.nodeName.toLowerCase()=="img"){aB=aA;}var az=ac(ax);for(var aw=0;aw<az.count;aw++){aB.appendChild(az[aw]);}}else{aj(ay,ax);}}function am(aw,j){if(!Z){at(aw,j);U(document,an()+"lib/css/jquery.plupload.queue.css");Z=true;}else{I=[];n();}aq=ag(aw,j);}function ab(ay,aw){if(I.length==0){var az=aq.pluploadQueue();if(O(ay,"auto_upload")&&az.files.length>0){az.start();return false;}else{alert(p(ay,"select_files_first"));}return false;}if(h==101||h==102||h==103){for(var j=0;j<I.length;j++){var ax=M(ay,I[j]);ai(ay,ax);}}else{if(h==104||h==1||h==2){A(ay);}}return true;}function u(ax){var ay="";for(var aw=0;aw<I.length;aw++){ay+=M(ax,I[aw]);}var j=O(ax,"template_wrap");j=j.replace("{SET_ID}",x);j=j.replace("{ITEMS}",ay);return j;}function ag(ay,ax){if(h==101||h==102||h==104||h==1||h==2){H("#jsplus_bootstrap_gallery-img-resize-up-"+w(ay)).unbind("click");H("#jsplus_bootstrap_gallery-img-resize-up-"+w(ay)).click(function(){if(H("#jsplus_bootstrap_gallery-img-resize-"+w(ay)).is(":checked")){if(H(this).hasClass("jsplus_bootstrap_gallery-checked")){H(this).removeClass("jsplus_bootstrap_gallery-checked");}else{H(this).addClass("jsplus_bootstrap_gallery-checked");}}});H("#jsplus_bootstrap_gallery-img-resize-"+w(ay)).unbind("change");H("#jsplus_bootstrap_gallery-img-resize-"+w(ay)).change(function(){if(H("#jsplus_bootstrap_gallery-img-resize-"+w(ay)).is(":checked")){H("#jsplus_bootstrap_gallery-panel-img-resize-"+w(ay)).addClass("enabled");H("#jsplus_bootstrap_gallery-panel-img-resize-"+w(ay)+' input[type="text"]').removeAttr("disabled");}else{H("#jsplus_bootstrap_gallery-panel-img-resize-"+w(ay)).removeClass("enabled");H("#jsplus_bootstrap_gallery-panel-img-resize-"+w(ay)+' input[type="text"]').attr("disabled","disabled");}});}if(h==102||h==104||h==1||h==2){H("#jsplus_bootstrap_gallery-thumb-resize-up-"+w(ay)).unbind("click");H("#jsplus_bootstrap_gallery-thumb-resize-up-"+w(ay)).click(function(){if(H(this).hasClass("jsplus_bootstrap_gallery-checked")){H(this).removeClass("jsplus_bootstrap_gallery-checked");}else{H(this).addClass("jsplus_bootstrap_gallery-checked");}});}var az={};if(O(ay,"allowed_ext")!="*"){az={mime_types:[{title:p(ay,"file_filter_name"),extensions:O(ay,"allowed_ext")}]};}var aw=L(ay,"jsplus_uploader_url");if(aw.indexOf("?")>=0){aw+="&";}else{aw+="?";}aw+="client=plupload&";if(h==101){aw+="type=Images";}else{if(h==102||h==104||h==1||h==2){aw+="type=Images&makeThumb=true";}else{if(h==103){aw+="type=Files";}}}var j=H(".jsplus_bootstrap_gallery-plupload2-"+w(ay)).pluploadQueue({runtimes:O(ay,"runtimes"),url:aw,unique_names:true,filters:az,flash_swf_url:an()+"lib/uploader.swf",silverlight_xap_url:an()+"lib/uploader.xap",preinit:{Init:function(aC,aB){if(O(ay,"auto_upload")){H(".plupload_button.plupload_start").remove();}if(typeof(window["jsplus_bootstrap_gallery_upload_dropped_files_value"])!=="undefined"&&window["jsplus_bootstrap_gallery_upload_dropped_files_value"]!=null){var aA=window["jsplus_bootstrap_gallery_upload_dropped_files_value"];for(var aD=0;aD<aA.length;aD++){plupload.pluploadQueue().addFile(aA[aD]);}window["jsplus_bootstrap_gallery_upload_dropped_files_value"]=null;}}},init:{BeforeUpload:function(aE,aC){if(h==101||h==102||h==104||h==1||h==2){var aD="";if(H("#jsplus_bootstrap_gallery-img-resize-"+w(ay)).is(":checked")){var aA;var aB;aA=H("#jsplus_bootstrap_gallery-img-resize-width-"+w(ay)).val();aB=aA.match(/^\d+$/);if(aB!=null&&aB.length==1&&aA>0){aD+="&iw="+aA;}aA=H("#jsplus_bootstrap_gallery-img-resize-height-"+w(ay)).val();aB=aA.match(/^\d+$/);if(aB!=null&&aB.length==1&&aA>0){aD+="&ih="+aA;}if(H("#jsplus_bootstrap_gallery-img-resize-up-"+w(ay)).hasClass("jsplus_bootstrap_gallery-checked")){aD+="&ie=1";}}}if(h==102||h==104||h==1||h==2){aA=H("#jsplus_bootstrap_gallery-thumb-resize-width-"+w(ay)).val();aB=aA.match(/^\d+$/);if(aB!=null&&aB.length==1&&aA>0){aD+="&tw="+aA;}aA=H("#jsplus_bootstrap_gallery-thumb-resize-height-"+w(ay)).val();aB=aA.match(/^\d+$/);if(aB!=null&&aB.length==1&&aA>0){aD+="&th="+aA;}if(H("#jsplus_bootstrap_gallery-thumb-resize-up-"+w(ay)).hasClass("jsplus_bootstrap_gallery-checked")){aD+="&te=1";}}if(h==101||h==102||h==104||h==1||h==2){if(aD.length>0){aE.settings.url=aw+aD;}}},FileUploaded:function(aD,aB,aA){if(aA.response.substr(0,1)=="!"){aD.trigger("Error",{code:500,message:aA.response.substr(1),details:"",file:aB});
}else{var aC=aA.response;aC=aC.replace(/^<pre>(.*?)<\/pre>$/i,"$1");if(I[I.length-1]!=aC){I.push(aC.trim());}}},Error:function(aB,aA){var aC=aA.message;if(aC.toLowerCase().substr("exten")>-1){aC+="\nAllowed file exntesions: "+allowedExt.replace(",",", ");}alert(aC);},UploadComplete:function(aA){if(O(ay,"auto_upload")){if(I.length>0){r(ax);}else{aA.destroy();ag(ay,ax);}}}}});return j;}function n(){aq.pluploadQueue().destroy();}function r(j){j.getButton("ok").click();}function at(ax,j){var aw=j.getElement().getFirst();aw.setAttribute("class",aw.getAttribute("class")+" dlg_jsplus_plupload");}function A(aB){var j=false;var aC=aB.getSelection().getStartElement().$;do{if(aC.className!=null){var ay=aC.className.split(" ");if(ay.indexOf("jsplus_bootstrap_gallery")!==-1){j=true;break;}}if(aC.parentElement!=null&&aC.parentElement.tagName.toLowerCase()!="body"&&aC.parentElement!==b(aB)){aC=aC.parentElement;}else{break;}}while(true);if(j){for(var ax=0;ax<I.length;ax++){var aA=M(aB,I[ax]);var az=CKEDITOR.dom.element.createFromHtml(aA);aC.appendChild(az.$);}}else{var aw=u(aB);ai(aB,aw);}}CKEDITOR.plugins.add("jsplus_bootstrap_gallery",{lang:["en","ru","es"],init:function(j){var aw=j.addCommand("jsplus_bootstrap_gallery",new CKEDITOR.dialogCommand("jsplus_bootstrap_gallery-"+w(j)));aw.modes={wysiwyg:1,source:0};aw.canUndo=true;if(E(j)==3){j.ui.addButton("jsplus_bootstrap_gallery",{label:p(j,"jsplus_bootstrap_gallery_title"),command:"jsplus_bootstrap_gallery",icon:this.path+"icons/jsplus_bootstrap_gallery_3.png"});}else{j.ui.addButton("jsplus_bootstrap_gallery",{label:p(j,"jsplus_bootstrap_gallery_title"),command:"jsplus_bootstrap_gallery",icon:this.path+"icons/jsplus_bootstrap_gallery.png"});}CKEDITOR.dialog.add("jsplus_bootstrap_gallery-"+w(j),function(ax){CKEDITOR.dtd.$removeEmpty["span"]=false;return{title:p(ax,"jsplus_bootstrap_gallery_title"),width:440,minWidth:440,height:250,minHeight:250,resizable:false,onShow:function(ay){var az=ay.sender;am(ax,az);},onOk:function(ay){var az=ay.sender;return ab(ax,az);},contents:[{id:"tab1",label:"tab1",title:"tab1",accessKey:"Q",elements:[{type:"html",html:'<div style="width:100%;margin:0;padding:0;overflow:hidden">'+S(ax)+"</div>"}]}]};});window["jsplus_bootstrap_gallery_upload_dropped_files"]=function(az,ay,ax,aA){window["jsplus_bootstrap_gallery_upload_dropped_files_value"]=az;window["jsplus_bootstrap_gallery_insert_range"]=ax;window["jsplus_bootstrap_gallery_event_target"]=aA;ay.openDialog("jsplus_bootstrap_gallery-"+w(ay));};}});})();