rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 15
136k
|
---|---|---|
if (mail.currentAccount.server.type == "rss") util.copyToClipboard(this._getRSSUrl(), true); else util.copyToClipboard(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor, true); | let subject = gDBView.hdrForFirstSelectedMessage.mime2DecodedSubject; util.copyToClipboard(subject, true); | function () { try { if (mail.currentAccount.server.type == "rss") util.copyToClipboard(this._getRSSUrl(), true); else util.copyToClipboard(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor, true); } catch (e) { liberator.beep(); } }); |
s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[];x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn); | for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr';var A=x.config;A.contentsLangDirection=='ui'&&(A.contentsLangDirection=x.lang.dir);s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[]; x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn);if(q.index)k.button._.instances[q.index]=null;}}}if(r.contextMenu)e.removeFunction(r.contextMenu._.functionId);if(r._.filebrowserFn)e.removeFunction(r._.filebrowserFn);r.fire('destroy');a.remove(r);a.fire('instanceDestroyed',null,r);},execCommand:function(l,m){var n=this.getCommand(l),o={name:l,commandData:m,command:n}; | s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[];x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn); |
messenger.launchExternalURL(this._getRSSUrl()); | util.copyToClipboard(this._getRSSUrl(), true); else util.copyToClipboard(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor, true); | function () { try { if (mail.currentAccount.server.type == "rss") messenger.launchExternalURL(this._getRSSUrl()); // TODO: what to do for non-rss message? } catch (e) { liberator.beep(); } }); |
util.copyToClipboard(this._getRSSUrl(), true); | util.copyToClipboard(mail._getRSSUrl(), true); | function () { try { if (mail.currentAccount.server.type == "rss") util.copyToClipboard(this._getRSSUrl(), true); else util.copyToClipboard(gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor, true); } catch (e) { liberator.beep(); } }); |
let server = mail.smtpServers.filter(function (s) s.key == value)[0]; | function () { try { if (mail.currentAccount.server.type == "rss") messenger.launchExternalURL(this._getRSSUrl()); } catch (e) { liberator.beep(); } }); | let server = mail.smtpServers.filter(function (s) s.key == value)[0]; |
messenger.launchExternalURL(this._getRSSUrl()); | messenger.launchExternalURL(mail._getRSSUrl()); | function () { try { if (mail.currentAccount.server.type == "rss") messenger.launchExternalURL(this._getRSSUrl()); // TODO: what to do for non-rss message? } catch (e) { liberator.beep(); } }); |
if(q.index)k.button._.instances[q.index]=null;}}}if(r.contextMenu)e.removeFunction(r.contextMenu._.functionId);if(r._.filebrowserFn)e.removeFunction(r._.filebrowserFn);r.fire('destroy');a.remove(r);a.fire('instanceDestroyed',null,r);},execCommand:function(l,m){var n=this.getCommand(l),o={name:l,commandData:m,command:n};if(n&&n.state!=0)if(this.fire('beforeCommandExec',o)!==true){o.returnValue=n.exec(o.commandData);if(!n.async&&this.fire('afterCommandExec',o)!==true)return o.returnValue;}return false;},getCommand:function(l){return this._.commands[l];},getData:function(){var n=this;n.fire('beforeGetData');var l=n._.data;if(typeof l!='string'){var m=n.element;if(m&&n.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();else l='';}l={dataValue:l};n.fire('getData',l);return l.dataValue;},getSnapshot:function(){var l=this.fire('getSnapshot');if(typeof l!='string'){var m=this.element;if(m&&this.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();}return l;},loadSnapshot:function(l){this.fire('loadSnapshot',l);},setData:function(l,m){if(m)this.on('dataReady',function(o){o.removeListener();m.call(o.editor);});var n={dataValue:l};this.fire('setData',n);this._.data=n.dataValue;this.fire('afterSetData',n);},insertHtml:function(l){this.fire('insertHtml',l);},insertElement:function(l){this.fire('insertElement',l);},checkDirty:function(){return this.mayBeDirty&&this._.previousValue!==this.getSnapshot();},resetDirty:function(){if(this.mayBeDirty)this._.previousValue=this.getSnapshot();},updateElement:function(){var n=this;var l=n.element;if(l&&n.elementMode==1){var m=n.getData();if(n.config.htmlEncodeOutput)m=e.htmlEncode(m);if(l.is('textarea'))l.setValue(m);else l.setHtml(m);}}});a.on('loaded',function(){var l=a.editor._pending;if(l){delete a.editor._pending;for(var m=0;m<l.length;m++)l[m]._init();}});a.htmlParser=function(){this._={htmlPartsRegex:new RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^\"'>]+)|(?:\"[^\"]*\")|(?:'[^']*'))*)\\/?>))",'g')};};(function(){var l=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,m={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};a.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(n){var A=this;var o,p,q=0,r;while(o=A._.htmlPartsRegex.exec(n)){var s=o.index;if(s>q){var t=n.substring(q,s); | for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr';var A=x.config;A.contentsLangDirection=='ui'&&(A.contentsLangDirection=x.lang.dir);s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[]; | if(q.index)k.button._.instances[q.index]=null;}}}if(r.contextMenu)e.removeFunction(r.contextMenu._.functionId);if(r._.filebrowserFn)e.removeFunction(r._.filebrowserFn);r.fire('destroy');a.remove(r);a.fire('instanceDestroyed',null,r);},execCommand:function(l,m){var n=this.getCommand(l),o={name:l,commandData:m,command:n};if(n&&n.state!=0)if(this.fire('beforeCommandExec',o)!==true){o.returnValue=n.exec(o.commandData);if(!n.async&&this.fire('afterCommandExec',o)!==true)return o.returnValue;}return false;},getCommand:function(l){return this._.commands[l];},getData:function(){var n=this;n.fire('beforeGetData');var l=n._.data;if(typeof l!='string'){var m=n.element;if(m&&n.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();else l='';}l={dataValue:l};n.fire('getData',l);return l.dataValue;},getSnapshot:function(){var l=this.fire('getSnapshot');if(typeof l!='string'){var m=this.element;if(m&&this.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();}return l;},loadSnapshot:function(l){this.fire('loadSnapshot',l);},setData:function(l,m){if(m)this.on('dataReady',function(o){o.removeListener();m.call(o.editor);});var n={dataValue:l};this.fire('setData',n);this._.data=n.dataValue;this.fire('afterSetData',n);},insertHtml:function(l){this.fire('insertHtml',l);},insertElement:function(l){this.fire('insertElement',l);},checkDirty:function(){return this.mayBeDirty&&this._.previousValue!==this.getSnapshot();},resetDirty:function(){if(this.mayBeDirty)this._.previousValue=this.getSnapshot();},updateElement:function(){var n=this;var l=n.element;if(l&&n.elementMode==1){var m=n.getData();if(n.config.htmlEncodeOutput)m=e.htmlEncode(m);if(l.is('textarea'))l.setValue(m);else l.setHtml(m);}}});a.on('loaded',function(){var l=a.editor._pending;if(l){delete a.editor._pending;for(var m=0;m<l.length;m++)l[m]._init();}});a.htmlParser=function(){this._={htmlPartsRegex:new RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^\"'>]+)|(?:\"[^\"]*\")|(?:'[^']*'))*)\\/?>))",'g')};};(function(){var l=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,m={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};a.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(n){var A=this;var o,p,q=0,r;while(o=A._.htmlPartsRegex.exec(n)){var s=o.index;if(s>q){var t=n.substring(q,s); |
if(q.index)k.button._.instances[q.index]=null;}}}if(r.contextMenu)e.removeFunction(r.contextMenu._.functionId);if(r._.filebrowserFn)e.removeFunction(r._.filebrowserFn);r.fire('destroy');a.remove(r);a.fire('instanceDestroyed',null,r);},execCommand:function(l,m){var n=this.getCommand(l),o={name:l,commandData:m,command:n};if(n&&n.state!=0)if(this.fire('beforeCommandExec',o)!==true){o.returnValue=n.exec(o.commandData);if(!n.async&&this.fire('afterCommandExec',o)!==true)return o.returnValue;}return false;},getCommand:function(l){return this._.commands[l];},getData:function(){var n=this;n.fire('beforeGetData');var l=n._.data;if(typeof l!='string'){var m=n.element;if(m&&n.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();else l='';}l={dataValue:l};n.fire('getData',l);return l.dataValue;},getSnapshot:function(){var l=this.fire('getSnapshot');if(typeof l!='string'){var m=this.element;if(m&&this.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();}return l;},loadSnapshot:function(l){this.fire('loadSnapshot',l);},setData:function(l,m){if(m)this.on('dataReady',function(o){o.removeListener();m.call(o.editor);});var n={dataValue:l};this.fire('setData',n);this._.data=n.dataValue;this.fire('afterSetData',n);},insertHtml:function(l){this.fire('insertHtml',l);},insertElement:function(l){this.fire('insertElement',l);},checkDirty:function(){return this.mayBeDirty&&this._.previousValue!==this.getSnapshot();},resetDirty:function(){if(this.mayBeDirty)this._.previousValue=this.getSnapshot();},updateElement:function(){var n=this;var l=n.element;if(l&&n.elementMode==1){var m=n.getData();if(n.config.htmlEncodeOutput)m=e.htmlEncode(m);if(l.is('textarea'))l.setValue(m);else l.setHtml(m);}}});a.on('loaded',function(){var l=a.editor._pending;if(l){delete a.editor._pending;for(var m=0;m<l.length;m++)l[m]._init();}});a.htmlParser=function(){this._={htmlPartsRegex:new RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^\"'>]+)|(?:\"[^\"]*\")|(?:'[^']*'))*)\\/?>))",'g')};};(function(){var l=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,m={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};a.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(n){var A=this;var o,p,q=0,r;while(o=A._.htmlPartsRegex.exec(n)){var s=o.index;if(s>q){var t=n.substring(q,s); | for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr';var A=x.config;A.contentsLangDirection=='ui'&&(A.contentsLangDirection=x.lang.dir);s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[]; x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn);if(q.index)k.button._.instances[q.index]=null;}}}if(r.contextMenu)e.removeFunction(r.contextMenu._.functionId);if(r._.filebrowserFn)e.removeFunction(r._.filebrowserFn);r.fire('destroy');a.remove(r);a.fire('instanceDestroyed',null,r);},execCommand:function(l,m){var n=this.getCommand(l),o={name:l,commandData:m,command:n}; | if(q.index)k.button._.instances[q.index]=null;}}}if(r.contextMenu)e.removeFunction(r.contextMenu._.functionId);if(r._.filebrowserFn)e.removeFunction(r._.filebrowserFn);r.fire('destroy');a.remove(r);a.fire('instanceDestroyed',null,r);},execCommand:function(l,m){var n=this.getCommand(l),o={name:l,commandData:m,command:n};if(n&&n.state!=0)if(this.fire('beforeCommandExec',o)!==true){o.returnValue=n.exec(o.commandData);if(!n.async&&this.fire('afterCommandExec',o)!==true)return o.returnValue;}return false;},getCommand:function(l){return this._.commands[l];},getData:function(){var n=this;n.fire('beforeGetData');var l=n._.data;if(typeof l!='string'){var m=n.element;if(m&&n.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();else l='';}l={dataValue:l};n.fire('getData',l);return l.dataValue;},getSnapshot:function(){var l=this.fire('getSnapshot');if(typeof l!='string'){var m=this.element;if(m&&this.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();}return l;},loadSnapshot:function(l){this.fire('loadSnapshot',l);},setData:function(l,m){if(m)this.on('dataReady',function(o){o.removeListener();m.call(o.editor);});var n={dataValue:l};this.fire('setData',n);this._.data=n.dataValue;this.fire('afterSetData',n);},insertHtml:function(l){this.fire('insertHtml',l);},insertElement:function(l){this.fire('insertElement',l);},checkDirty:function(){return this.mayBeDirty&&this._.previousValue!==this.getSnapshot();},resetDirty:function(){if(this.mayBeDirty)this._.previousValue=this.getSnapshot();},updateElement:function(){var n=this;var l=n.element;if(l&&n.elementMode==1){var m=n.getData();if(n.config.htmlEncodeOutput)m=e.htmlEncode(m);if(l.is('textarea'))l.setValue(m);else l.setHtml(m);}}});a.on('loaded',function(){var l=a.editor._pending;if(l){delete a.editor._pending;for(var m=0;m<l.length;m++)l[m]._init();}});a.htmlParser=function(){this._={htmlPartsRegex:new RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^\"'>]+)|(?:\"[^\"]*\")|(?:'[^']*'))*)\\/?>))",'g')};};(function(){var l=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,m={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};a.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(n){var A=this;var o,p,q=0,r;while(o=A._.htmlPartsRegex.exec(n)){var s=o.index;if(s>q){var t=n.substring(q,s); |
if(q.index)k.button._.instances[q.index]=null;}}}if(r.contextMenu)e.removeFunction(r.contextMenu._.functionId);if(r._.filebrowserFn)e.removeFunction(r._.filebrowserFn);r.fire('destroy');a.remove(r);a.fire('instanceDestroyed',null,r);},execCommand:function(l,m){var n=this.getCommand(l),o={name:l,commandData:m,command:n};if(n&&n.state!=0)if(this.fire('beforeCommandExec',o)!==true){o.returnValue=n.exec(o.commandData);if(!n.async&&this.fire('afterCommandExec',o)!==true)return o.returnValue;}return false;},getCommand:function(l){return this._.commands[l];},getData:function(){var n=this;n.fire('beforeGetData');var l=n._.data;if(typeof l!='string'){var m=n.element;if(m&&n.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();else l='';}l={dataValue:l};n.fire('getData',l);return l.dataValue;},getSnapshot:function(){var l=this.fire('getSnapshot');if(typeof l!='string'){var m=this.element;if(m&&this.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();}return l;},loadSnapshot:function(l){this.fire('loadSnapshot',l);},setData:function(l,m){if(m)this.on('dataReady',function(o){o.removeListener();m.call(o.editor);});var n={dataValue:l};this.fire('setData',n);this._.data=n.dataValue;this.fire('afterSetData',n);},insertHtml:function(l){this.fire('insertHtml',l);},insertElement:function(l){this.fire('insertElement',l);},checkDirty:function(){return this.mayBeDirty&&this._.previousValue!==this.getSnapshot();},resetDirty:function(){if(this.mayBeDirty)this._.previousValue=this.getSnapshot();},updateElement:function(){var n=this;var l=n.element;if(l&&n.elementMode==1){var m=n.getData();if(n.config.htmlEncodeOutput)m=e.htmlEncode(m);if(l.is('textarea'))l.setValue(m);else l.setHtml(m);}}});a.on('loaded',function(){var l=a.editor._pending;if(l){delete a.editor._pending;for(var m=0;m<l.length;m++)l[m]._init();}});a.htmlParser=function(){this._={htmlPartsRegex:new RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^\"'>]+)|(?:\"[^\"]*\")|(?:'[^']*'))*)\\/?>))",'g')};};(function(){var l=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,m={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};a.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(n){var A=this;var o,p,q=0,r;while(o=A._.htmlPartsRegex.exec(n)){var s=o.index;if(s>q){var t=n.substring(q,s); if(r)r.push(t);else A.onText(t);}q=A._.htmlPartsRegex.lastIndex;if(p=o[1]){p=p.toLowerCase();if(r&&f.$cdata[p]){A.onCDATA(r.join(''));r=null;}if(!r){A.onTagClose(p);continue;}}if(r){r.push(o[0]);continue;}if(p=o[3]){p=p.toLowerCase();var u={},v,w=o[4],x=!!(w&&w.charAt(w.length-1)=='/');if(w)while(v=l.exec(w)){var y=v[1].toLowerCase(),z=v[2]||v[3]||v[4]||'';if(!z&&m[y])u[y]=y;else u[y]=z;}A.onTagOpen(p,u,x);if(!r&&f.$cdata[p])r=[];continue;}if(p=o[2])A.onComment(p);}if(n.length>q)A.onText(n.substring(q,n.length));}};})();a.htmlParser.comment=function(l){this.value=l;this._={isBlockLike:false};};a.htmlParser.comment.prototype={type:8,writeHtml:function(l,m){var n=this.value;if(m){if(!(n=m.onComment(n,this)))return;if(typeof n!='string'){n.parent=this.parent;n.writeHtml(l,m);return;}}l.comment(n);}};(function(){var l=/[\t\r\n ]{2,}|[\t\r\n]/g;a.htmlParser.text=function(m){this.value=m;this._={isBlockLike:false};};a.htmlParser.text.prototype={type:3,writeHtml:function(m,n){var o=this.value;if(n&&!(o=n.onText(o,this)))return;m.text(o);}};})();(function(){a.htmlParser.cdata=function(l){this.value=l;};a.htmlParser.cdata.prototype={type:3,writeHtml:function(l){l.write(this.value);}};})();a.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false};};(function(){var l={colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1},m=e.extend({table:1,ul:1,ol:1,dl:1},f.table,f.ul,f.ol,f.dl),n=f.$list,o=f.$listItem;a.htmlParser.fragment.fromHtml=function(p,q){var r=new a.htmlParser(),s=[],t=new a.htmlParser.fragment(),u=[],v=[],w=t,x=false,y;function z(E){var F;if(u.length>0)for(var G=0;G<u.length;G++){var H=u[G],I=H.name,J=f[I],K=w.name&&f[w.name];if((!K||K[I])&&(!E||!J||J[E]||!f[E])){if(!F){A();F=1;}H=H.clone();H.parent=w;w=H;u.splice(G,1);G--;}}};function A(){while(v.length)w.add(v.shift());};function B(E,F,G){F=F||w||t;if(q&&!F.type){var H,I;if(E.attributes&&(I=E.attributes._cke_real_element_type))H=I;else H=E.name;if(H&&!(H in f.$body)&&!(H in f.$nonBodyContent)){var J=w;w=F;r.onTagOpen(q,{});F=w;if(G)w=J;}}if(E._.isBlockLike&&E.name!='pre'){var K=E.children.length,L=E.children[K-1],M;if(L&&L.type==3)if(!(M=e.rtrim(L.value)))E.children.length=K-1;else L.value=M;}F.add(E);if(E.returnPoint){w=E.returnPoint;delete E.returnPoint;}};r.onTagOpen=function(E,F,G){var H=new a.htmlParser.element(E,F);if(H.isUnknown&&G)H.isEmpty=true;if(f.$removeEmpty[E]){u.push(H);return;}else if(E=='pre')x=true;else if(E=='br'&&x){w.add(new a.htmlParser.text('\n')); | x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn);if(q.index)k.button._.instances[q.index]=null;}}}if(r.contextMenu)e.removeFunction(r.contextMenu._.functionId);if(r._.filebrowserFn)e.removeFunction(r._.filebrowserFn);r.fire('destroy');a.remove(r);a.fire('instanceDestroyed',null,r);},execCommand:function(l,m){var n=this.getCommand(l),o={name:l,commandData:m,command:n}; | if(q.index)k.button._.instances[q.index]=null;}}}if(r.contextMenu)e.removeFunction(r.contextMenu._.functionId);if(r._.filebrowserFn)e.removeFunction(r._.filebrowserFn);r.fire('destroy');a.remove(r);a.fire('instanceDestroyed',null,r);},execCommand:function(l,m){var n=this.getCommand(l),o={name:l,commandData:m,command:n};if(n&&n.state!=0)if(this.fire('beforeCommandExec',o)!==true){o.returnValue=n.exec(o.commandData);if(!n.async&&this.fire('afterCommandExec',o)!==true)return o.returnValue;}return false;},getCommand:function(l){return this._.commands[l];},getData:function(){var n=this;n.fire('beforeGetData');var l=n._.data;if(typeof l!='string'){var m=n.element;if(m&&n.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();else l='';}l={dataValue:l};n.fire('getData',l);return l.dataValue;},getSnapshot:function(){var l=this.fire('getSnapshot');if(typeof l!='string'){var m=this.element;if(m&&this.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();}return l;},loadSnapshot:function(l){this.fire('loadSnapshot',l);},setData:function(l,m){if(m)this.on('dataReady',function(o){o.removeListener();m.call(o.editor);});var n={dataValue:l};this.fire('setData',n);this._.data=n.dataValue;this.fire('afterSetData',n);},insertHtml:function(l){this.fire('insertHtml',l);},insertElement:function(l){this.fire('insertElement',l);},checkDirty:function(){return this.mayBeDirty&&this._.previousValue!==this.getSnapshot();},resetDirty:function(){if(this.mayBeDirty)this._.previousValue=this.getSnapshot();},updateElement:function(){var n=this;var l=n.element;if(l&&n.elementMode==1){var m=n.getData();if(n.config.htmlEncodeOutput)m=e.htmlEncode(m);if(l.is('textarea'))l.setValue(m);else l.setHtml(m);}}});a.on('loaded',function(){var l=a.editor._pending;if(l){delete a.editor._pending;for(var m=0;m<l.length;m++)l[m]._init();}});a.htmlParser=function(){this._={htmlPartsRegex:new RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^\"'>]+)|(?:\"[^\"]*\")|(?:'[^']*'))*)\\/?>))",'g')};};(function(){var l=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,m={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};a.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(n){var A=this;var o,p,q=0,r;while(o=A._.htmlPartsRegex.exec(n)){var s=o.index;if(s>q){var t=n.substring(q,s);if(r)r.push(t);else A.onText(t);}q=A._.htmlPartsRegex.lastIndex;if(p=o[1]){p=p.toLowerCase();if(r&&f.$cdata[p]){A.onCDATA(r.join(''));r=null;}if(!r){A.onTagClose(p);continue;}}if(r){r.push(o[0]);continue;}if(p=o[3]){p=p.toLowerCase();var u={},v,w=o[4],x=!!(w&&w.charAt(w.length-1)=='/');if(w)while(v=l.exec(w)){var y=v[1].toLowerCase(),z=v[2]||v[3]||v[4]||'';if(!z&&m[y])u[y]=y;else u[y]=z;}A.onTagOpen(p,u,x);if(!r&&f.$cdata[p])r=[];continue;}if(p=o[2])A.onComment(p);}if(n.length>q)A.onText(n.substring(q,n.length));}};})();a.htmlParser.comment=function(l){this.value=l;this._={isBlockLike:false};};a.htmlParser.comment.prototype={type:8,writeHtml:function(l,m){var n=this.value;if(m){if(!(n=m.onComment(n,this)))return;if(typeof n!='string'){n.parent=this.parent;n.writeHtml(l,m);return;}}l.comment(n);}};(function(){var l=/[\t\r\n ]{2,}|[\t\r\n]/g;a.htmlParser.text=function(m){this.value=m;this._={isBlockLike:false};};a.htmlParser.text.prototype={type:3,writeHtml:function(m,n){var o=this.value;if(n&&!(o=n.onText(o,this)))return;m.text(o);}};})();(function(){a.htmlParser.cdata=function(l){this.value=l;};a.htmlParser.cdata.prototype={type:3,writeHtml:function(l){l.write(this.value);}};})();a.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false};};(function(){var l={colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1},m=e.extend({table:1,ul:1,ol:1,dl:1},f.table,f.ul,f.ol,f.dl),n=f.$list,o=f.$listItem;a.htmlParser.fragment.fromHtml=function(p,q){var r=new a.htmlParser(),s=[],t=new a.htmlParser.fragment(),u=[],v=[],w=t,x=false,y;function z(E){var F;if(u.length>0)for(var G=0;G<u.length;G++){var H=u[G],I=H.name,J=f[I],K=w.name&&f[w.name];if((!K||K[I])&&(!E||!J||J[E]||!f[E])){if(!F){A();F=1;}H=H.clone();H.parent=w;w=H;u.splice(G,1);G--;}}};function A(){while(v.length)w.add(v.shift());};function B(E,F,G){F=F||w||t;if(q&&!F.type){var H,I;if(E.attributes&&(I=E.attributes._cke_real_element_type))H=I;else H=E.name;if(H&&!(H in f.$body)&&!(H in f.$nonBodyContent)){var J=w;w=F;r.onTagOpen(q,{});F=w;if(G)w=J;}}if(E._.isBlockLike&&E.name!='pre'){var K=E.children.length,L=E.children[K-1],M;if(L&&L.type==3)if(!(M=e.rtrim(L.value)))E.children.length=K-1;else L.value=M;}F.add(E);if(E.returnPoint){w=E.returnPoint;delete E.returnPoint;}};r.onTagOpen=function(E,F,G){var H=new a.htmlParser.element(E,F);if(H.isUnknown&&G)H.isEmpty=true;if(f.$removeEmpty[E]){u.push(H);return;}else if(E=='pre')x=true;else if(E=='br'&&x){w.add(new a.htmlParser.text('\n')); |
if(r)r.push(t);else A.onText(t);}q=A._.htmlPartsRegex.lastIndex;if(p=o[1]){p=p.toLowerCase();if(r&&f.$cdata[p]){A.onCDATA(r.join(''));r=null;}if(!r){A.onTagClose(p);continue;}}if(r){r.push(o[0]);continue;}if(p=o[3]){p=p.toLowerCase();var u={},v,w=o[4],x=!!(w&&w.charAt(w.length-1)=='/');if(w)while(v=l.exec(w)){var y=v[1].toLowerCase(),z=v[2]||v[3]||v[4]||'';if(!z&&m[y])u[y]=y;else u[y]=z;}A.onTagOpen(p,u,x);if(!r&&f.$cdata[p])r=[];continue;}if(p=o[2])A.onComment(p);}if(n.length>q)A.onText(n.substring(q,n.length));}};})();a.htmlParser.comment=function(l){this.value=l;this._={isBlockLike:false};};a.htmlParser.comment.prototype={type:8,writeHtml:function(l,m){var n=this.value;if(m){if(!(n=m.onComment(n,this)))return;if(typeof n!='string'){n.parent=this.parent;n.writeHtml(l,m);return;}}l.comment(n);}};(function(){var l=/[\t\r\n ]{2,}|[\t\r\n]/g;a.htmlParser.text=function(m){this.value=m;this._={isBlockLike:false};};a.htmlParser.text.prototype={type:3,writeHtml:function(m,n){var o=this.value;if(n&&!(o=n.onText(o,this)))return;m.text(o);}};})();(function(){a.htmlParser.cdata=function(l){this.value=l;};a.htmlParser.cdata.prototype={type:3,writeHtml:function(l){l.write(this.value);}};})();a.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false};};(function(){var l={colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1},m=e.extend({table:1,ul:1,ol:1,dl:1},f.table,f.ul,f.ol,f.dl),n=f.$list,o=f.$listItem;a.htmlParser.fragment.fromHtml=function(p,q){var r=new a.htmlParser(),s=[],t=new a.htmlParser.fragment(),u=[],v=[],w=t,x=false,y;function z(E){var F;if(u.length>0)for(var G=0;G<u.length;G++){var H=u[G],I=H.name,J=f[I],K=w.name&&f[w.name];if((!K||K[I])&&(!E||!J||J[E]||!f[E])){if(!F){A();F=1;}H=H.clone();H.parent=w;w=H;u.splice(G,1);G--;}}};function A(){while(v.length)w.add(v.shift());};function B(E,F,G){F=F||w||t;if(q&&!F.type){var H,I;if(E.attributes&&(I=E.attributes._cke_real_element_type))H=I;else H=E.name;if(H&&!(H in f.$body)&&!(H in f.$nonBodyContent)){var J=w;w=F;r.onTagOpen(q,{});F=w;if(G)w=J;}}if(E._.isBlockLike&&E.name!='pre'){var K=E.children.length,L=E.children[K-1],M;if(L&&L.type==3)if(!(M=e.rtrim(L.value)))E.children.length=K-1;else L.value=M;}F.add(E);if(E.returnPoint){w=E.returnPoint;delete E.returnPoint;}};r.onTagOpen=function(E,F,G){var H=new a.htmlParser.element(E,F);if(H.isUnknown&&G)H.isEmpty=true;if(f.$removeEmpty[E]){u.push(H);return;}else if(E=='pre')x=true;else if(E=='br'&&x){w.add(new a.htmlParser.text('\n')); | x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn);if(q.index)k.button._.instances[q.index]=null;}}}if(r.contextMenu)e.removeFunction(r.contextMenu._.functionId);if(r._.filebrowserFn)e.removeFunction(r._.filebrowserFn);r.fire('destroy');a.remove(r);a.fire('instanceDestroyed',null,r);},execCommand:function(l,m){var n=this.getCommand(l),o={name:l,commandData:m,command:n}; | if(r)r.push(t);else A.onText(t);}q=A._.htmlPartsRegex.lastIndex;if(p=o[1]){p=p.toLowerCase();if(r&&f.$cdata[p]){A.onCDATA(r.join(''));r=null;}if(!r){A.onTagClose(p);continue;}}if(r){r.push(o[0]);continue;}if(p=o[3]){p=p.toLowerCase();var u={},v,w=o[4],x=!!(w&&w.charAt(w.length-1)=='/');if(w)while(v=l.exec(w)){var y=v[1].toLowerCase(),z=v[2]||v[3]||v[4]||'';if(!z&&m[y])u[y]=y;else u[y]=z;}A.onTagOpen(p,u,x);if(!r&&f.$cdata[p])r=[];continue;}if(p=o[2])A.onComment(p);}if(n.length>q)A.onText(n.substring(q,n.length));}};})();a.htmlParser.comment=function(l){this.value=l;this._={isBlockLike:false};};a.htmlParser.comment.prototype={type:8,writeHtml:function(l,m){var n=this.value;if(m){if(!(n=m.onComment(n,this)))return;if(typeof n!='string'){n.parent=this.parent;n.writeHtml(l,m);return;}}l.comment(n);}};(function(){var l=/[\t\r\n ]{2,}|[\t\r\n]/g;a.htmlParser.text=function(m){this.value=m;this._={isBlockLike:false};};a.htmlParser.text.prototype={type:3,writeHtml:function(m,n){var o=this.value;if(n&&!(o=n.onText(o,this)))return;m.text(o);}};})();(function(){a.htmlParser.cdata=function(l){this.value=l;};a.htmlParser.cdata.prototype={type:3,writeHtml:function(l){l.write(this.value);}};})();a.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false};};(function(){var l={colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1},m=e.extend({table:1,ul:1,ol:1,dl:1},f.table,f.ul,f.ol,f.dl),n=f.$list,o=f.$listItem;a.htmlParser.fragment.fromHtml=function(p,q){var r=new a.htmlParser(),s=[],t=new a.htmlParser.fragment(),u=[],v=[],w=t,x=false,y;function z(E){var F;if(u.length>0)for(var G=0;G<u.length;G++){var H=u[G],I=H.name,J=f[I],K=w.name&&f[w.name];if((!K||K[I])&&(!E||!J||J[E]||!f[E])){if(!F){A();F=1;}H=H.clone();H.parent=w;w=H;u.splice(G,1);G--;}}};function A(){while(v.length)w.add(v.shift());};function B(E,F,G){F=F||w||t;if(q&&!F.type){var H,I;if(E.attributes&&(I=E.attributes._cke_real_element_type))H=I;else H=E.name;if(H&&!(H in f.$body)&&!(H in f.$nonBodyContent)){var J=w;w=F;r.onTagOpen(q,{});F=w;if(G)w=J;}}if(E._.isBlockLike&&E.name!='pre'){var K=E.children.length,L=E.children[K-1],M;if(L&&L.type==3)if(!(M=e.rtrim(L.value)))E.children.length=K-1;else L.value=M;}F.add(E);if(E.returnPoint){w=E.returnPoint;delete E.returnPoint;}};r.onTagOpen=function(E,F,G){var H=new a.htmlParser.element(E,F);if(H.isUnknown&&G)H.isEmpty=true;if(f.$removeEmpty[E]){u.push(H);return;}else if(E=='pre')x=true;else if(E=='br'&&x){w.add(new a.htmlParser.text('\n')); |
function (stylesheet) /^(screen|all|)$/i.test(stylesheet.media.mediaText) && !/^\s*$/.test(stylesheet.title) ); | setTimeout(function () { statusline.updateBufferPosition(); }, 500); | function (stylesheet) /^(screen|all|)$/i.test(stylesheet.media.mediaText) && !/^\s*$/.test(stylesheet.title) ); |
if (featureMembers.length != 0) { | if (featureMembers.length !== 0) { | GDownloadUrl(sStationDataUrl, function(xmlData, pResponseCode) { var xmlDoc = GXml.parse(xmlData); if (g_IsIE) xmlDoc.setProperty("SelectionLanguage", "XPath"); var rootNode = xmlDoc.documentElement; if (!rootNode) { return; } var geodesyMarker = oGeodesyMarker; var monthChkId = "month_chk_" + station + "_" + year + "_" + month; var monthChkObj = document.getElementById(monthChkId); // The checked state of the month should be propogated to all the dates belonging to the month var checkedState = false; if (monthChkObj) { checkedState = monthChkObj.checked; } // Parse the XML for "featureMembers" var featureMembers = rootNode.selectNodes(".//*[local-name() = 'featureMember']"); if (featureMembers.length != 0) { // Each of these contain updateCSWRecords "geodesy:date" and "geodesy:url" child node. for(var i=0; i < featureMembers.length; i++) { var fullDate = GXml.value(featureMembers[i].selectSingleNode(".//*[local-name() = 'date']")); var url = GXml.value(featureMembers[i].selectSingleNode(".//*[local-name() = 'url']")); if (fullDate=="" || url=="") { continue; } else { // Get the date out of the geodesy:date tag var adate = fullDate.split("-"); var date = parseInt(adate[2], 10); // Add the url associated with the date to the array maStationDataForDate // This array maintains the list of all station data urls for updateCSWRecords given // station+year+month+date combo. var numRenixFiles = geodesyMarker.maStationDataForDate[year][month][date].length; geodesyMarker.maStationDataForDate[year][month][date][numRenixFiles] = url; // Propogate the checked state of the month to the checkbox associated with this date. geodesyMarker.maDataCheckedStateForDate[year][month][date][numRenixFiles] = checkedState; } } } // Now that all the requird arrays are populated, // make the calendar for this month now. oGeodesyMarker.makeCalendarForMonth(year, month); // This flag keeps tab of whether this month has already been queried. oGeodesyMarker.maYearMonthWfsUrlQueried[year][month] = true; }); |
if (fullDate=="" || url=="") { | if (fullDate==="" || url==="") { | GDownloadUrl(sStationDataUrl, function(xmlData, pResponseCode) { var xmlDoc = GXml.parse(xmlData); if (g_IsIE) xmlDoc.setProperty("SelectionLanguage", "XPath"); var rootNode = xmlDoc.documentElement; if (!rootNode) { return; } var geodesyMarker = oGeodesyMarker; var monthChkId = "month_chk_" + station + "_" + year + "_" + month; var monthChkObj = document.getElementById(monthChkId); // The checked state of the month should be propogated to all the dates belonging to the month var checkedState = false; if (monthChkObj) { checkedState = monthChkObj.checked; } // Parse the XML for "featureMembers" var featureMembers = rootNode.selectNodes(".//*[local-name() = 'featureMember']"); if (featureMembers.length != 0) { // Each of these contain updateCSWRecords "geodesy:date" and "geodesy:url" child node. for(var i=0; i < featureMembers.length; i++) { var fullDate = GXml.value(featureMembers[i].selectSingleNode(".//*[local-name() = 'date']")); var url = GXml.value(featureMembers[i].selectSingleNode(".//*[local-name() = 'url']")); if (fullDate=="" || url=="") { continue; } else { // Get the date out of the geodesy:date tag var adate = fullDate.split("-"); var date = parseInt(adate[2], 10); // Add the url associated with the date to the array maStationDataForDate // This array maintains the list of all station data urls for updateCSWRecords given // station+year+month+date combo. var numRenixFiles = geodesyMarker.maStationDataForDate[year][month][date].length; geodesyMarker.maStationDataForDate[year][month][date][numRenixFiles] = url; // Propogate the checked state of the month to the checkbox associated with this date. geodesyMarker.maDataCheckedStateForDate[year][month][date][numRenixFiles] = checkedState; } } } // Now that all the requird arrays are populated, // make the calendar for this month now. oGeodesyMarker.makeCalendarForMonth(year, month); // This flag keeps tab of whether this month has already been queried. oGeodesyMarker.maYearMonthWfsUrlQueried[year][month] = true; }); |
e.type = "onBeforeSlide"; fire.trigger(e); if (e.isDefaultPrevented()) { return false; } init(); | var fireEvent = e.target != handle[0]; | root.click(function(e) { if (input.is(":disabled")) { return false; } e.type = "onBeforeSlide"; fire.trigger(e); if (e.isDefaultPrevented()) { return false; } init(); var fix = handle.width() / 2; seek(conf.vertical ? origo - e.pageY + fix : e.pageX - origo - fix, e); e.type = "onSlideEnd"; fire.trigger(e); }); |
var fix = handle.width() / 2; | if (fireEvent) { e.type = "onBeforeSlide"; fire.trigger(e); if (e.isDefaultPrevented()) { return false; } } | root.click(function(e) { if (input.is(":disabled")) { return false; } e.type = "onBeforeSlide"; fire.trigger(e); if (e.isDefaultPrevented()) { return false; } init(); var fix = handle.width() / 2; seek(conf.vertical ? origo - e.pageY + fix : e.pageX - origo - fix, e); e.type = "onSlideEnd"; fire.trigger(e); }); |
e.type = "onSlideEnd"; fire.trigger(e); | if (fireEvent) { e.type = "onSlideEnd"; fire.trigger(e); } | root.click(function(e) { if (input.is(":disabled")) { return false; } e.type = "onBeforeSlide"; fire.trigger(e); if (e.isDefaultPrevented()) { return false; } init(); var fix = handle.width() / 2; seek(conf.vertical ? origo - e.pageY + fix : e.pageX - origo - fix, e); e.type = "onSlideEnd"; fire.trigger(e); }); |
context.completions = folders.map(function (folder) [folder.server.prettyName + ": " + folder.name, "Unread: " + folder.getNumUnread(false)]); | function (args) mail.getNewMessages(!args.bang), | context.completions = folders.map(function (folder) [folder.server.prettyName + ": " + folder.name, "Unread: " + folder.getNumUnread(false)]); |
yearSelector.unbind("change").change(function() { self.setDate($(this).val(), monthSelector.val()); | monthSelector.unbind("change").change(function() { self.setDate(yearSelector.val(), $(this).val()); | yearSelector.unbind("change").change(function() { self.setDate($(this).val(), monthSelector.val()); }); |
return this.getBool("orderTabsAuto", false); | return this.getBool("editRememberCurrentPos", false); | function() { return this.getBool("orderTabsAuto", false);}); |
if (plotImage != null) { | if (plotImage !== null) { | GDownloadUrl(sScalarsPlotUrl, function(pData, pResponseCode) { if(pResponseCode == 200) { // Display the image if (plotImage != null) { plotImage.src = sScalarsPlotUrl; plotImage.style.width = imgWidth; } // Save the image src in the global array msPlotImageSrc // This is used later to redisplay the image oNVCLMarker.msPlotImageSrc = sScalarsPlotUrl; // Once the image is downloaded, // activate the link "Open in updateCSWRecords new window" var plotImageHref = document.getElementById("a_new_window"); if (plotImageHref != null) { gPlottedImageSrc = sScalarsPlotUrl; plotImageHref.href = "/plotted_images.html?" + sParamsList; plotImageHref.target = "_blank"; plotImageHref.style.display = ""; } // Set the message that the images have loaded and the user can check results if (oMessagesDiv != null) { oMessagesDiv.style.color = "blue"; oMessagesDiv.innerHTML = '<div style="color:red; font-size:12px"> Plots loaded. </div>'; oMessagesDiv.innerHTML += 'Please select the "Plots" tab to check results.'; } } else if(responseCode == -1) { myMask.hide(); alert("Data request timed out. Please try later."); } else if ((responseCode >= 400) & (responseCode <= 500)){ myMask.hide(); alert('Request not found, bad request or similar problem. Error code is: ' + responseCode); } else if ((responseCode >= 500) & (responseCode < 506)){ myMask.hide(); alert('Remote server: requested service not available, not implemented or internal service error. Error code is: ' + responseCode); } else { myMask.hide(); alert('Remote server returned error code: ' + responseCode); } }); |
if (plotImageHref != null) { | if (plotImageHref !== null) { | GDownloadUrl(sScalarsPlotUrl, function(pData, pResponseCode) { if(pResponseCode == 200) { // Display the image if (plotImage != null) { plotImage.src = sScalarsPlotUrl; plotImage.style.width = imgWidth; } // Save the image src in the global array msPlotImageSrc // This is used later to redisplay the image oNVCLMarker.msPlotImageSrc = sScalarsPlotUrl; // Once the image is downloaded, // activate the link "Open in updateCSWRecords new window" var plotImageHref = document.getElementById("a_new_window"); if (plotImageHref != null) { gPlottedImageSrc = sScalarsPlotUrl; plotImageHref.href = "/plotted_images.html?" + sParamsList; plotImageHref.target = "_blank"; plotImageHref.style.display = ""; } // Set the message that the images have loaded and the user can check results if (oMessagesDiv != null) { oMessagesDiv.style.color = "blue"; oMessagesDiv.innerHTML = '<div style="color:red; font-size:12px"> Plots loaded. </div>'; oMessagesDiv.innerHTML += 'Please select the "Plots" tab to check results.'; } } else if(responseCode == -1) { myMask.hide(); alert("Data request timed out. Please try later."); } else if ((responseCode >= 400) & (responseCode <= 500)){ myMask.hide(); alert('Request not found, bad request or similar problem. Error code is: ' + responseCode); } else if ((responseCode >= 500) & (responseCode < 506)){ myMask.hide(); alert('Remote server: requested service not available, not implemented or internal service error. Error code is: ' + responseCode); } else { myMask.hide(); alert('Remote server returned error code: ' + responseCode); } }); |
if (oMessagesDiv != null) { | if (oMessagesDiv !== null) { | GDownloadUrl(sScalarsPlotUrl, function(pData, pResponseCode) { if(pResponseCode == 200) { // Display the image if (plotImage != null) { plotImage.src = sScalarsPlotUrl; plotImage.style.width = imgWidth; } // Save the image src in the global array msPlotImageSrc // This is used later to redisplay the image oNVCLMarker.msPlotImageSrc = sScalarsPlotUrl; // Once the image is downloaded, // activate the link "Open in updateCSWRecords new window" var plotImageHref = document.getElementById("a_new_window"); if (plotImageHref != null) { gPlottedImageSrc = sScalarsPlotUrl; plotImageHref.href = "/plotted_images.html?" + sParamsList; plotImageHref.target = "_blank"; plotImageHref.style.display = ""; } // Set the message that the images have loaded and the user can check results if (oMessagesDiv != null) { oMessagesDiv.style.color = "blue"; oMessagesDiv.innerHTML = '<div style="color:red; font-size:12px"> Plots loaded. </div>'; oMessagesDiv.innerHTML += 'Please select the "Plots" tab to check results.'; } } else if(responseCode == -1) { myMask.hide(); alert("Data request timed out. Please try later."); } else if ((responseCode >= 400) & (responseCode <= 500)){ myMask.hide(); alert('Request not found, bad request or similar problem. Error code is: ' + responseCode); } else if ((responseCode >= 500) & (responseCode < 506)){ myMask.hide(); alert('Remote server: requested service not available, not implemented or internal service error. Error code is: ' + responseCode); } else { myMask.hide(); alert('Remote server returned error code: ' + responseCode); } }); |
$(this).hover(function() { | $('.icons, .fg-button').livequery(function() { $(this).each(function() { $(this).hover(function() { | $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { |
$(this).removeClass('ui-state-hover'); }); }); }); | $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { |
|
$.getJSON('cgi-bin/time.cgi', function(data) { $("#clock-server").jclock( { utc : true, utcOffset : parseInt(data.tz) }); }); | $("#loading").ajaxStop(function() { $(this).hide(); $('.sortable').sortable(); $('#graph-view').trigger('change'); }); | $.getJSON('cgi-bin/time.cgi', function(data) { $("#clock-server").jclock( { utc : true, utcOffset : parseInt(data.tz) }); }); |
monthSelector.unbind("change").change(function() { self.setDate(yearSelector.val(), $(this).val()); | yearSelector.unbind("change").change(function() { self.setDate($(this).val(), monthSelector.val()); | monthSelector.unbind("change").change(function() { self.setDate(yearSelector.val(), $(this).val()); }); |
setTimeout(update_verse_range_delayed, lookup_range_speed); | window.setTimeout(update_verse_range_delayed, lookup_range_speed); | return function () { /// Is it not already looking for the verse range? if (!looking_up_verse_range) { looking_up_verse_range = true; /// Run this function after a brief delay. setTimeout(update_verse_range_delayed, lookup_range_speed); } }; |
pollRequest = new ServerReq('poll.php', function(response) { if(response.messages) { if(response.lastlid) nextLid = response.lastlid + 1; MBchat.updateables.poller.pollResponse(response.messages); } if (fullPoll == 2) { pollRequest.transmit.delay(2000,pollRequest,{'lid':nextLid}); } else { fullPoll = 0; } }); | var presenceReq = new ServerReq('presence.php', function(r) {}); | pollRequest = new ServerReq('poll.php', function(response) { if(response.messages) { if(response.lastlid) nextLid = response.lastlid + 1; // MBchat.updateables.poller.pollResponse(response.messages); //only process valid messages } if (fullPoll == 2) { pollRequest.transmit.delay(2000,pollRequest,{'lid':nextLid}); } else { fullPoll = 0; //If stop was pending, it has now finished } }); |
return function () | update_verse_range = (function () { function update_verse_range_delayed() { var new_title, ref_range, verse1, verse2; verse1 = get_verse_at_position(window.pageYOffset + topLoader.offsetHeight + 8, true, page); if (verse1 === false) { looking_up_verse_range = false; return; } verse2 = get_verse_at_position(window.pageYOffset + doc_docEl.clientHeight - 14, false, page); if (verse2 === false) { looking_up_verse_range = false; return; } verse1.v = verse1.v === 0 ? BF.lang.title : verse1.v; verse2.v = verse2.v === 0 ? BF.lang.title : verse2.v; if (verse1.b == verse2.b) { verse1.b = verse1.b == 19 ? BF.lang.psalm : BF.lang.books_short[verse1.b]; if (verse1.c == verse2.c) { if (verse1.v == verse2.v) { ref_range = verse1.b + " " + verse1.c + ":" + verse1.v; } else { ref_range = verse1.b + " " + verse1.c + ":" + verse1.v + "\u2013" + verse2.v; } } else { ref_range = verse1.b + " " + verse1.c + ":" + verse1.v + "\u2013" + verse2.c + ":" + verse2.v; } } else { verse1.b = verse1.b == 19 ? BF.lang.psalm : BF.lang.books_short[verse1.b]; verse2.b = verse2.b == 19 ? BF.lang.psalm : BF.lang.books_short[verse2.b]; ref_range = verse1.b + " " + verse1.c + ":" + verse1.v + "\u2013" + verse2.b + " " + verse2.c + ":" + verse2.v; } if (last_type == verse_lookup) { new_title = ref_range + " - " + BF.lang.app_name; } else { new_title = last_search + " (" + ref_range + ") - " + BF.lang.app_name; } if (document.title != new_title) { document.title = new_title; if (last_type == verse_lookup) { infoBar.innerHTML = ""; infoBar.appendChild(document.createTextNode(ref_range)); } } looking_up_verse_range = false; } return function () | return function () { /// Is it not already looking for the verse range? if (!looking_up_verse_range) { looking_up_verse_range = true; /// Run update_verse_range_delayed() after a brief delay. window.setTimeout(update_verse_range_delayed, lookup_range_speed); } }; |
}()); | return function () { /// Is it not already looking for the verse range? if (!looking_up_verse_range) { looking_up_verse_range = true; /// Run update_verse_range_delayed() after a brief delay. window.setTimeout(update_verse_range_delayed, lookup_range_speed); } }; |
|
Array.forEach(document.getElementById("liberator-commandline").childNodes, function (node) { node.style.opacity = this._quiet || this._silent ? "0" : ""; | this.registerCallback("complete", modes.PROMPT, function (context) { if (self._input.complete) context.fork("input", 0, commandline, self._input.complete); | Array.forEach(document.getElementById("liberator-commandline").childNodes, function (node) { node.style.opacity = this._quiet || this._silent ? "0" : ""; }); |
$('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); | return this.each(function() { $(this).html('<span>'+ $(this).html() +'</span><span style="display: none;" class="inlineEditTooltip">'+ options.tooltip +'</span>'); var element = $($(this).find('span')[0]); element.bind('click focus', createElement); $(this).hover(function() { $(this).addClass('inlineEditHover'); $($(this).find('span')[1]).show(); }, function() { $(this).removeClass('inlineEditHover'); $($(this).find('span')[1]).hide(); }); function createElement() { options.current.value = element.html(); if($(this).parent().attr('rel') != '') options.current.extraParams = eval('('+ $(this).parent().attr('rel') +')'); element.addClass('inlineEditing'); element.unbind('click').unbind('focus'); element.html('<input type="text" class="'+ options.inputClasses +'" value="'+ options.current.value +'" />'); options.current.element = $(element.find('input')[0]); options.current.element.select(); options.current.element.bind('blur', saveElement); options.current.element.keyup(function(evt) { if(evt.which == 27) { options.current.element.val(options.current.value); destroyElement(); | $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } }); |
} function destroyElement() { var parent = options.current.element.parent(); parent.html(options.current.element.val()) .bind('click focus', createElement); parent.removeClass('inlineEditing'); } function saveElement() { if(!options.allowEmpty && options.current.element.val() == '') { options.current.element.val(options.current.value); } if(options.current.element.val() != options.current.value) { options.current.extraParams['value'] = options.current.element.val(); $.ajax({ url: options.saveUrl, data: options.current.extraParams, success: function(data, textStatus) { destroyElement(); }, }); } else destroyElement() } }); | $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } }); |
|
editing = false; | return this.each(function() { // add wrapper and tooltip $(this).html('<span>'+ $(this).html() +'</span><span style="display: none;" class="inlineEditTooltip">'+ options.tooltip +'</span>'); // grab element var element = $($(this).find('span')[0]); // bind events element.bind('click focus', createElement); $(this).hover(function() { $(this).addClass('inlineEditHover'); $($(this).find('span')[1]).show(); }, function() { $(this).removeClass('inlineEditHover'); $($(this).find('span')[1]).hide(); }); // create an element function createElement() { // grab current value options.current.value = element.html(); // grab extra params if($(this).parent().attr('rel') != '') options.current.extraParams = eval('('+ $(this).parent().attr('rel') +')'); // add class element.addClass('inlineEditing'); // remove events element.unbind('click').unbind('focus'); // set html element.html('<input type="text" class="'+ options.inputClasses +'" value="'+ options.current.value +'" />'); // store element options.current.element = $(element.find('input')[0]); // set focus options.current.element.select(); // bind events options.current.element.bind('blur', saveElement); options.current.element.keyup(function(evt) { // handle escape if(evt.which == 27) { // reset options.current.element.val(options.current.value); // destroy destroyElement(); } // save when someone presses enter if(evt.which == 13) saveElement(); }); } // destroy the element function destroyElement() { // get parent var parent = options.current.element.parent(); // set HTML and rebind events parent.html(options.current.element.val()) .bind('click focus', createElement); // add class parent.removeClass('inlineEditing'); } // save the element function saveElement() { // if the new value is empty and that isn't allowed, we restore // the original value if(!options.allowEmpty && options.current.element.val() == '') { options.current.element.val(options.current.value); } // is the value different from the original value if(options.current.element.val() != options.current.value) { // add element to the params options.current.extraParams['value'] = options.current.element.val(); // make the call $.ajax({ url: options.saveUrl, data: options.current.extraParams, success: function(data, textStatus) { // destroy the element destroyElement(); } }); } // destroy the element else destroyElement(); } }); |
|
0)if(d==1){d=Math.min(12E4,Math.exp(X)*500);Q=setTimeout(function(){v()},d)}else v()}}function s(){K.abort();L=K=null;P||v()}function z(d,c,e,j){m.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!K){_$_$endif_$_();var n={},i=A.length;n.object=d;n.signal=c;n.event=e;n.feedback=j;A[i]=B(n,i);x();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function x(){if(K!=null&&L!=null){clearTimeout(L);K.abort();K=null}if(K==null)if(Q==null){Q=setTimeout(function(){v()},m.updateDelay); | j.description)}_$_$endif_$_();e&&k(e)}else A=da.concat(A);da=[];if(L){clearTimeout(L);L=null}K=null;if(d>0)++Y;else Y=0;if(!P)if(ha||A.length>0)if(d==1){d=Math.min(12E4,Math.exp(Y)*500);Q=setTimeout(function(){w()},d)}else w()}}function s(){K.abort();L=K=null;P||w()}function z(d,c,e,j){m.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!K){_$_$endif_$_();var n={},i=A.length;n.object=d;n.signal=c;n.event=e;n.feedback=j;A[i]=B(n,i);y();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()} | 0)if(d==1){d=Math.min(12E4,Math.exp(X)*500);Q=setTimeout(function(){v()},d)}else v()}}function s(){K.abort();L=K=null;P||v()}function z(d,c,e,j){m.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!K){_$_$endif_$_();var n={},i=A.length;n.object=d;n.signal=c;n.event=e;n.feedback=j;A[i]=B(n,i);x();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function x(){if(K!=null&&L!=null){clearTimeout(L);K.abort();K=null}if(K==null)if(Q==null){Q=setTimeout(function(){v()},m.updateDelay); |
if (multilineVars.is_in_history) { if (line[1] === ':') { multilineVars.is_in_history = false; parseLine(line); } else tune.addMetaText("history", tokenizer.translateString(tokenizer.stripComment(line))); } else if (multilineVars.inTextBlock) { if (line.startsWith("%%endtext")) { tune.addMetaText("textBlock", multilineVars.textBlock); multilineVars.inTextBlock = false; } else multilineVars.textBlock += ' ' + line; | if (multilineVars.is_in_history) { if (line[1] === ':') { multilineVars.is_in_history = false; parseLine(line); | lines.each( function(line) { if (multilineVars.is_in_history) { if (line[1] === ':') { multilineVars.is_in_history = false; parseLine(line); } else tune.addMetaText("history", tokenizer.translateString(tokenizer.stripComment(line))); } else if (multilineVars.inTextBlock) { if (line.startsWith("%%endtext")) { tune.addMetaText("textBlock", multilineVars.textBlock); multilineVars.inTextBlock = false; } else multilineVars.textBlock += ' ' + line; } else parseLine(line); multilineVars.iChar += line.length + 1; }); |
parseLine(line); multilineVars.iChar += line.length + 1; }); | tune.addMetaText("history", tokenizer.translateString(tokenizer.stripComment(line))); } else if (multilineVars.inTextBlock) { if (line.startsWith("%%endtext")) { tune.addMetaText("textBlock", multilineVars.textBlock); multilineVars.inTextBlock = false; } else multilineVars.textBlock += ' ' + line; } else parseLine(line); multilineVars.iChar += line.length + 1; }); | lines.each( function(line) { if (multilineVars.is_in_history) { if (line[1] === ':') { multilineVars.is_in_history = false; parseLine(line); } else tune.addMetaText("history", tokenizer.translateString(tokenizer.stripComment(line))); } else if (multilineVars.inTextBlock) { if (line.startsWith("%%endtext")) { tune.addMetaText("textBlock", multilineVars.textBlock); multilineVars.inTextBlock = false; } else multilineVars.textBlock += ' ' + line; } else parseLine(line); multilineVars.iChar += line.length + 1; }); |
d}function j(d){if(d){d="(function() {"+d+"})();";window.execScript?window.execScript(d):window.eval(d)}E._p_.autoJavaScript()}function l(d,c,f){if(!R){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();j(c);_$_$ifnot_DEBUG_$_()}catch(k){alert("Wt internal error: "+k+", code: "+k.code+", description: "+k.description)}_$_$endif_$_();f&&a(f)}else z=da.concat(z);da=[];if(N){clearTimeout(N);N=null}K=null;if(d>0)++Y;else Y=0;if(!R)if(ha||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(Y)*500);S=setTimeout(function(){s()}, | d}function j(d){if(d){d="(function() {"+d+"})();";window.execScript?window.execScript(d):window.eval(d)}E._p_.autoJavaScript()}function l(d,c,f){if(!R){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();j(c);_$_$ifnot_DEBUG_$_()}catch(k){alert("Wt internal error: "+k+", code: "+k.code+", description: "+k.description)}_$_$endif_$_();f&&a(f)}else z=da.concat(z);da=[];if(N){clearTimeout(N);N=null}J=null;if(d>0)++Y;else Y=0;if(!R)if(ha||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(Y)*500);S=setTimeout(function(){s()}, | d}function j(d){if(d){d="(function() {"+d+"})();";window.execScript?window.execScript(d):window.eval(d)}E._p_.autoJavaScript()}function l(d,c,f){if(!R){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();j(c);_$_$ifnot_DEBUG_$_()}catch(k){alert("Wt internal error: "+k+", code: "+k.code+", description: "+k.description)}_$_$endif_$_();f&&a(f)}else z=da.concat(z);da=[];if(N){clearTimeout(N);N=null}K=null;if(d>0)++Y;else Y=0;if(!R)if(ha||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(Y)*500);S=setTimeout(function(){s()}, |
V.concat(v);V=[];if(K){clearTimeout(K);K=null}C=null;if(c>0)++R;else R=0;if(ca||v.length>0)if(c==1){c=Math.min(12E4,Math.exp(R)*500);S=setTimeout(function(){p()},c)}else p()}}function y(){C.abort();K=C=null;p()}function J(c,d,e,g){H&&c==H&&e.type=="mouseup"&&f(null);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!C){_$_$endif_$_();var h={},i=v.length;h.object=c;h.signal=d;h.event=e;h.feedback=g;v[i]=r(h,i);j();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function j(){if(C!=null&&K!=null){clearTimeout(K); | V.concat(v);V=[];if(K){clearTimeout(K);K=null}C=null;if(c>0)++S;else S=0;if(ca||v.length>0)if(c==1){c=Math.min(12E4,Math.exp(S)*500);M=setTimeout(function(){p()},c)}else p()}}function y(){C.abort();K=C=null;p()}function J(c,d,e,g){H&&c==H&&e.type=="mouseup"&&f(null);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!C){_$_$endif_$_();var h={},i=v.length;h.object=c;h.signal=d;h.event=e;h.feedback=g;v[i]=r(h,i);j();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function j(){if(C!=null&&K!=null){clearTimeout(K); | V.concat(v);V=[];if(K){clearTimeout(K);K=null}C=null;if(c>0)++R;else R=0;if(ca||v.length>0)if(c==1){c=Math.min(12E4,Math.exp(R)*500);S=setTimeout(function(){p()},c)}else p()}}function y(){C.abort();K=C=null;p()}function J(c,d,e,g){H&&c==H&&e.type=="mouseup"&&f(null);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!C){_$_$endif_$_();var h={},i=v.length;h.object=c;h.signal=d;h.event=e;h.feedback=g;v[i]=r(h,i);j();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function j(){if(C!=null&&K!=null){clearTimeout(K); |
function o(c,d,e){if(!R){if(c==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();n(d);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();e&&b(e)}else y=ga.concat(y);ga=[];if(O){clearTimeout(O);O=null}F=null;if(c>0)++ba;else ba=0;if(!R)if(ka||y.length>0)if(c==1){c=Math.min(12E4,Math.exp(ba)*500);S=setTimeout(function(){r()},c)}else r()}}function L(){F.abort();O=F=null;R||r()}function u(c,d,e,j){h.checkReleaseCapture(c,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_(); | c+"})();";window.execScript?window.execScript(c):window.eval(c)}k._p_.autoJavaScript()}function o(c,d,e){if(!R){if(c==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();n(d);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();e&&b(e)}else y=ga.concat(y);ga=[];if(P){clearTimeout(P);P=null}F=null;if(c>0)++ba;else ba=0;if(!R)if(ka||y.length>0)if(c==1){c=Math.min(12E4,Math.exp(ba)*500);S=setTimeout(function(){r()},c)}else r()}}function L(){F.abort(); | function o(c,d,e){if(!R){if(c==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();n(d);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();e&&b(e)}else y=ga.concat(y);ga=[];if(O){clearTimeout(O);O=null}F=null;if(c>0)++ba;else ba=0;if(!R)if(ka||y.length>0)if(c==1){c=Math.min(12E4,Math.exp(ba)*500);S=setTimeout(function(){r()},c)}else r()}}function L(){F.abort();O=F=null;R||r()}function u(c,d,e,j){h.checkReleaseCapture(c,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_(); |
return DONE(result); | return DONE(); | function(result ) {// BigInteger.log( "stepping_millerRabin:No1" ); n1 = self.subtract( BigInteger.ONE ); k = n1.getLowestSetBit(); if ( k <= 0) { // return false; result.prime = false return DONE(result); } r = n1.shiftRight(k); t = (t+1) >> 1; if ( t > lowprimes.length ) t = lowprimes.length; a = new BigInteger(); }, |
$$('bbsmile_smilies').each(function(el) { | $$('.bbsmile_smilies').each(function(el) { | $$('bbsmile_smilies').each(function(el) { el.removeClassName('bbsmile_smilies'); }); |
next = root.parent().find(conf.next).click(function() { self.next(); }); | next = find(root, conf.next).click(function() { self.next(); }); | next = root.parent().find(conf.next).click(function() { self.next(); }); |
$(document).find("link").filter(function(){ return $(this).attr("rel").toLowerCase() == "stylesheet"; }).each(function(){ | $("textarea", $element).each(function () { var value = $(this).attr('value'); if ($.browser.mozilla && this.firstChild) this.firstChild.textContent = value; else this.innerHTML = value; }); | $(document).find("link").filter(function(){ return $(this).attr("rel").toLowerCase() == "stylesheet"; }).each(function(){ |
O=null}J=null;if(d>0)++W;else W=0;if(!Q)if(ga||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(W)*500);R=setTimeout(function(){G()},d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},g=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[g]=T(m,g);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J== | d}function q(d){if(d)window.execScript?window.execScript(d):window.eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function C(d,c,f){if(!P){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();q(c);_$_$ifnot_DEBUG_$_()}catch(k){alert("Wt internal error: "+k+", code: "+k.code+", description: "+k.description)}_$_$endif_$_();f&&n(f)}else y=ba.concat(y);ba=[];if(N){clearTimeout(N);N=null}I=null;if(d>0)++W;else W=0;if(!P)if(ga||y.length>0)if(d==1){d=Math.min(12E4,Math.exp(W)*500);Q=setTimeout(function(){F()}, | O=null}J=null;if(d>0)++W;else W=0;if(!Q)if(ga||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(W)*500);R=setTimeout(function(){G()},d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},g=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[g]=T(m,g);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J== |
if (!arg) | if (!arg) { | function (args) { let arg = args.literalArg; if (!arg) arg = "~"; else if (arg == "-") { liberator.assert(io._oldcwd, "E186: No previous directory"); arg = io._oldcwd.path; } arg = File.expandPath(arg); // go directly to an absolute path or look for a relative path // match in 'cdpath' // TODO: handle ../ and ./ paths if (File.isAbsolutePath(arg)) { if (io.setCurrentDirectory(arg)) liberator.echomsg(io.getCurrentDirectory().path); } else { let dirs = File.getPathsFromPathList(options["cdpath"]); let found = false; for (let [, dir] in Iterator(dirs)) { dir = File.joinPaths(dir, arg); if (dir.exists() && dir.isDirectory() && dir.isReadable()) { io.setCurrentDirectory(dir.path); liberator.echomsg(io.getCurrentDirectory().path); found = true; break; } } if (!found) { liberator.echoerr("E344: Can't find directory " + arg.quote() + " in cdpath\n" + "E472: Command failed"); } } }, { |
else if (arg == "-") { | } else if (arg == "-") { | function (args) { let arg = args.literalArg; if (!arg) arg = "~"; else if (arg == "-") { liberator.assert(io._oldcwd, "E186: No previous directory"); arg = io._oldcwd.path; } arg = File.expandPath(arg); // go directly to an absolute path or look for a relative path // match in 'cdpath' // TODO: handle ../ and ./ paths if (File.isAbsolutePath(arg)) { if (io.setCurrentDirectory(arg)) liberator.echomsg(io.getCurrentDirectory().path); } else { let dirs = File.getPathsFromPathList(options["cdpath"]); let found = false; for (let [, dir] in Iterator(dirs)) { dir = File.joinPaths(dir, arg); if (dir.exists() && dir.isDirectory() && dir.isReadable()) { io.setCurrentDirectory(dir.path); liberator.echomsg(io.getCurrentDirectory().path); found = true; break; } } if (!found) { liberator.echoerr("E344: Can't find directory " + arg.quote() + " in cdpath\n" + "E472: Command failed"); } } }, { |
GEvent.addListener(map, "click", function(overlay, latlng) { gMapClickController(map, overlay, latlng, activeLayersStore); | GEvent.addListener(map, "mousemove", function(latlng){ var latStr = "<b>Long:</b> " + latlng.lng().toFixed(6) + "    " + "<b>Lat:</b> " + latlng.lat().toFixed(6); document.getElementById("latlng").innerHTML = latStr; | GEvent.addListener(map, "click", function(overlay, latlng) { gMapClickController(map, overlay, latlng, activeLayersStore); }); |
function($){$.fn.printElement=function(options){var mainOptions=$.extend({},$.fn.printElement.defaults,options);if(mainOptions.printMode=='iframe'){if($.browser.opera||(/chrome/.test(navigator.userAgent.toLowerCase())))mainOptions.printMode='popup';}$("[id^='printElement_']").remove();return this.each(function(){var opts=$.meta?$.extend({},mainOptions,$this.data()):mainOptions;_printElement($(this),opts);});};$.fn.printElement.defaults={printMode:'iframe',pageTitle:'',overrideElementCSS:null,printBodyOptions:{styleToAdd:'padding:10px;margin:10px;',classNameToAdd:''},leaveOpen:false,iframeElementOptions:{styleToAdd:'border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;',classNameToAdd:''}};$.fn.printElement.cssElement={href:'',media:''};function _printElement(element,opts){var html=_getMarkup(element,opts);var popupOrIframe=null;var documentToWriteTo=null;if(opts.printMode.toLowerCase()=='popup'){popupOrIframe=window.open('about:blank','printElementWindow','width=650,height=440,scrollbars=yes');documentToWriteTo=popupOrIframe.document;}else{var printElementID="printElement_"+(Math.round(Math.random()*99999)).toString();var iframe=document.createElement('IFRAME');$(iframe).attr({style:opts.iframeElementOptions.styleToAdd,id:printElementID,className:opts.iframeElementOptions.classNameToAdd,frameBorder:0,scrolling:'no',src:'about:blank'});document.body.appendChild(iframe);documentToWriteTo=(iframe.contentWindow||iframe.contentDocument);if(documentToWriteTo.document)documentToWriteTo=documentToWriteTo.document;iframe=document.frames?document.frames[printElementID]:document.getElementById(printElementID);popupOrIframe=iframe.contentWindow||iframe;}focus();documentToWriteTo.open();documentToWriteTo.write(html);documentToWriteTo.close();_callPrint(popupOrIframe);};function _callPrint(element){if(element&&element.printPage)element.printPage();else setTimeout(function(){_callPrint(element);},50);}function _getElementHTMLIncludingFormElements(element){var $element=$(element);$(":checked",$element).each(function(){this.setAttribute('checked','checked');});$("input[type='text']",$element).each(function(){this.setAttribute('value',$(this).val());});$("select",$element).each(function(){var $select=$(this);$("option",$select).each(function(){if($select.val()==$(this).val())this.setAttribute('selected','selected');});});$("textarea",$element).each(function(){var value=$(this).attr('value');if($.browser.mozilla)this.firstChild.textContent=value;else this.innerHTML=value;});var elementHtml=$('<div></div>').append($element.clone()).html();return elementHtml;}function _getBaseHref(){return window.location.protocol+" | "stylesheet"}).each(function(){d.push('<link type="text/css" rel="stylesheet" href="'+a(this).attr("href")+'" media="'+a(this).attr("media")+'" >')});d.push('<base href="'+(g.location.protocol+" | function($){$.fn.printElement=function(options){var mainOptions=$.extend({},$.fn.printElement.defaults,options);if(mainOptions.printMode=='iframe'){if($.browser.opera||(/chrome/.test(navigator.userAgent.toLowerCase())))mainOptions.printMode='popup';}$("[id^='printElement_']").remove();return this.each(function(){var opts=$.meta?$.extend({},mainOptions,$this.data()):mainOptions;_printElement($(this),opts);});};$.fn.printElement.defaults={printMode:'iframe',pageTitle:'',overrideElementCSS:null,printBodyOptions:{styleToAdd:'padding:10px;margin:10px;',classNameToAdd:''},leaveOpen:false,iframeElementOptions:{styleToAdd:'border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;',classNameToAdd:''}};$.fn.printElement.cssElement={href:'',media:''};function _printElement(element,opts){var html=_getMarkup(element,opts);var popupOrIframe=null;var documentToWriteTo=null;if(opts.printMode.toLowerCase()=='popup'){popupOrIframe=window.open('about:blank','printElementWindow','width=650,height=440,scrollbars=yes');documentToWriteTo=popupOrIframe.document;}else{var printElementID="printElement_"+(Math.round(Math.random()*99999)).toString();var iframe=document.createElement('IFRAME');$(iframe).attr({style:opts.iframeElementOptions.styleToAdd,id:printElementID,className:opts.iframeElementOptions.classNameToAdd,frameBorder:0,scrolling:'no',src:'about:blank'});document.body.appendChild(iframe);documentToWriteTo=(iframe.contentWindow||iframe.contentDocument);if(documentToWriteTo.document)documentToWriteTo=documentToWriteTo.document;iframe=document.frames?document.frames[printElementID]:document.getElementById(printElementID);popupOrIframe=iframe.contentWindow||iframe;}focus();documentToWriteTo.open();documentToWriteTo.write(html);documentToWriteTo.close();_callPrint(popupOrIframe);};function _callPrint(element){if(element&&element.printPage)element.printPage();else setTimeout(function(){_callPrint(element);},50);}function _getElementHTMLIncludingFormElements(element){var $element=$(element);$(":checked",$element).each(function(){this.setAttribute('checked','checked');});$("input[type='text']",$element).each(function(){this.setAttribute('value',$(this).val());});$("select",$element).each(function(){var $select=$(this);$("option",$select).each(function(){if($select.val()==$(this).val())this.setAttribute('selected','selected');});});$("textarea",$element).each(function(){var value=$(this).attr('value');if($.browser.mozilla)this.firstChild.textContent=value;else this.innerHTML=value;});var elementHtml=$('<div></div>').append($element.clone()).html();return elementHtml;}function _getBaseHref(){return window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname;}function _getMarkup(element,opts){var $element=$(element);var elementHtml=_getElementHTMLIncludingFormElements(element);var html=new Array();html.push('<html><head><title>'+opts.pageTitle+'</title>');if(opts.overrideElementCSS){if(opts.overrideElementCSS.length>0){for(var x=0;x<opts.overrideElementCSS.length;x++){var current=opts.overrideElementCSS[x];if(typeof(current)=='string')html.push('<link type="text/css" rel="stylesheet" href="'+current+'" >');else html.push('<link type="text/css" rel="stylesheet" href="'+current.href+'" media="'+current.media+'" >');}}}else{$(document).find("link").filter(function(){return $(this).attr("rel").toLowerCase()=="stylesheet";}).each(function(){html.push('<link type="text/css" rel="stylesheet" href="'+$(this).attr("href")+'" media="'+$(this).attr('media')+'" >');});}html.push('<base href="'+_getBaseHref()+'" />');html.push('</head><body style="'+opts.printBodyOptions.styleToAdd+'" class="'+opts.printBodyOptions.classNameToAdd+'">');html.push('<div class="'+$element.attr('class')+'">'+elementHtml+'</div>');html.push('<script type="text/javascript">function printPage(){focus();print();'+((!$.browser.opera&&!opts.leaveOpen&&opts.printMode.toLowerCase()=='popup')?'close();':'')+'}</script>');html.push('</body></html>');return html.join('');};})(jQuery); |
function(result ) { | function() { | function(result ) {// BigInteger.log( "stepping_millerRabin:No1" ); n1 = self.subtract( BigInteger.ONE ); k = n1.getLowestSetBit(); if ( k <= 0) { // return false; result.prime = false return DONE(); } r = n1.shiftRight(k); t = (t+1) >> 1; if ( t > lowprimes.length ) t = lowprimes.length; a = new BigInteger(); }, |
result.prime = false return DONE(); | return DONE(false); | function(result ) {// BigInteger.log( "stepping_millerRabin:No1" ); n1 = self.subtract( BigInteger.ONE ); k = n1.getLowestSetBit(); if ( k <= 0) { // return false; result.prime = false return DONE(); } r = n1.shiftRight(k); t = (t+1) >> 1; if ( t > lowprimes.length ) t = lowprimes.length; a = new BigInteger(); }, |
c,e){if(!P){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();E(c);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();e&&h(e)}else A=da.concat(A);da=[];if(L){clearTimeout(L);L=null}K=null;if(d>0)++X;else X=0;if(!P)if(ha||A.length>0)if(d==1){d=Math.min(12E4,Math.exp(X)*500);Q=setTimeout(function(){v()},d)}else v()}}function r(){K.abort();L=K=null;P||v()}function y(d,c,e,j){n.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_(); | d+"})();";window.execScript?window.execScript(d):window.eval(d)}q._p_.autoJavaScript()}function u(d,c,e){if(!P){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();E(c);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();e&&h(e)}else A=da.concat(A);da=[];if(L){clearTimeout(L);L=null}K=null;if(d>0)++X;else X=0;if(!P)if(ha||A.length>0)if(d==1){d=Math.min(12E4,Math.exp(X)*500);Q=setTimeout(function(){v()},d)}else v()}}function r(){K.abort(); | c,e){if(!P){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();E(c);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();e&&h(e)}else A=da.concat(A);da=[];if(L){clearTimeout(L);L=null}K=null;if(d>0)++X;else X=0;if(!P)if(ha||A.length>0)if(d==1){d=Math.min(12E4,Math.exp(X)*500);Q=setTimeout(function(){v()},d)}else v()}}function r(){K.abort();L=K=null;P||v()}function y(d,c,e,j){n.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_(); |
slide(e, conf.vertical ? y : x); | slide(e, vertical ? y : x); | }).bind("drag", function(e, y, x) { if (input.is(":disabled")) { return false; } slide(e, conf.vertical ? y : x); }).bind("dragEnd", function(e) { |
L=null}J=null;if(d>0)++U;else U=0;if(ea||x.length>0)if(d==1){d=Math.min(12E4,Math.exp(U)*500);N=setTimeout(function(){A()},d)}else A()}}function K(){J.abort();L=J=null;A()}function H(d,c,e,h){n.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var i={},j=x.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;x[j]=b(i,j);E();C();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function E(){if(J!=null&&L!=null){clearTimeout(L);J.abort();J=null}if(J==null)if(N== | function E(d){ea=d}function q(d){if(d)if(window.execScript)window.execScript(d);else with(window)eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function u(d,c,e){if(!ba){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();q(c);_$_$ifnot_DEBUG_$_()}catch(h){alert("Wt internal error: "+h+", code: "+h.code+", description: "+h.description)}_$_$endif_$_();e&&l(e)}else z=Z.concat(z);Z=[];if(M){clearTimeout(M);M=null}G=null;if(d>0)++T;else T=0;if(ea||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(T)*500);P=setTimeout(function(){w()}, | L=null}J=null;if(d>0)++U;else U=0;if(ea||x.length>0)if(d==1){d=Math.min(12E4,Math.exp(U)*500);N=setTimeout(function(){A()},d)}else A()}}function K(){J.abort();L=J=null;A()}function H(d,c,e,h){n.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var i={},j=x.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;x[j]=b(i,j);E();C();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function E(){if(J!=null&&L!=null){clearTimeout(L);J.abort();J=null}if(J==null)if(N== |
}).bind("drag", function(e, y, x) { | handle.drag({drag: false}).bind("dragStart", function() { fireOnSlide = hasEvent($(self)) || hasEvent(input); | }).bind("drag", function(e, y, x) { if (input.is(":disabled")) { return false; } slide(e, vertical ? y : x); }).bind("dragEnd", function(e) { |
if (input.is(":disabled")) { return false; } slide(e, vertical ? y : x); }).bind("dragEnd", function(e) { | }).bind("drag", function(e, y, x) { | }).bind("drag", function(e, y, x) { if (input.is(":disabled")) { return false; } slide(e, vertical ? y : x); }).bind("dragEnd", function(e) { |
V.concat(v);V=[];if(K){clearTimeout(K);K=null}C=null;if(c>0)++S;else S=0;if(ca||v.length>0)if(c==1){c=Math.min(12E4,Math.exp(S)*500);M=setTimeout(function(){q()},c)}else q()}}function y(){C.abort();K=C=null;q()}function I(c,d,e,g){J&&c==J&&e.type=="mouseup"&&f(null);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!C){_$_$endif_$_();var h={},i=v.length;h.object=c;h.signal=d;h.event=e;h.feedback=g;v[i]=r(h,i);j();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function j(){if(C!=null&&K!=null){clearTimeout(K); | g.description)}_$_$endif_$_();e&&H(e)}else v=V.concat(v);V=[];if(K){clearTimeout(K);K=null}C=null;if(c>0)++S;else S=0;if(ca||v.length>0)if(c==1){c=Math.min(12E4,Math.exp(S)*500);M=setTimeout(function(){q()},c)}else q()}}function y(){C.abort();K=C=null;q()}function I(c,d,e,g){J&&c==J&&e.type=="mouseup"&&f(null);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!C){_$_$endif_$_();var h={},i=v.length;h.object=c;h.signal=d;h.event=e;h.feedback=g;v[i]=r(h,i);j();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()} | V.concat(v);V=[];if(K){clearTimeout(K);K=null}C=null;if(c>0)++S;else S=0;if(ca||v.length>0)if(c==1){c=Math.min(12E4,Math.exp(S)*500);M=setTimeout(function(){q()},c)}else q()}}function y(){C.abort();K=C=null;q()}function I(c,d,e,g){J&&c==J&&e.type=="mouseup"&&f(null);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!C){_$_$endif_$_();var h={},i=v.length;h.object=c;h.signal=d;h.event=e;h.feedback=g;v[i]=r(h,i);j();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function j(){if(C!=null&&K!=null){clearTimeout(K); |
$(document).bind('keydown', 'right', function(){ DeckViewerUI.next(); return false; }); | $(document).bind('keydown', 'left', function(){ DeckViewerUI.previous(); return false; }); | $(document).bind('keydown', 'right', function(){ DeckViewerUI.next(); return false; }); |
fx.start(obj); | if(!(Browser.Engine.trident && Browser.Engine.version == 5)) { fx.start(obj); } | door.addEvent('mouseleave', function(e){ var obj = {}; rooms.each(function(other, j){ obj[j] = {'width': [other.getStyle('width').toInt(), 105]}; }); fx.start(obj); if(room.rid == 0 ) { MBchat.updateables.online.show(0); } }); |
"undefined"&&this.length)return d.data(this[0]);else if(typeof a==="object")return this.each(function(){d.data(this,a)});var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(b===v){var g=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(g===v&&this.length)g=d.data(this[0],a);return g===v&&e[1]?this.data(e[0]):g}else return this.trigger("setData"+e[1]+"!",[e[0],b]).each(function(){d.data(this,a,b)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});(function(){function a(c){for(var f= "",i,j=0;c[j];j++){i=c[j];if(i.nodeType===3||i.nodeType===4)f+=i.nodeValue;else if(i.nodeType!==8)f+=a(i.childNodes)}return f}function b(c,f,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[c];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset];break}if(s.nodeType===1&&!m){s.sizcache=i;s.sizset=n}if(s.nodeName.toLowerCase()===f){u=s;break}s=s[c]}j[n]=u}}}function e(c,f,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[c];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset]; break}if(s.nodeType===1){if(!m){s.sizcache=i;s.sizset=n}if(typeof f!=="string"){if(s===f){u=true;break}}else if(p.filter(f,[s]).length>0){u=s;break}}s=s[c]}j[n]=u}}}var g=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,h=0,k=Object.prototype.toString,l=false,q=true;[0,0].sort(function(){q=false;return 0});var p=function(c,f,i,j){i=i||[];var n=f=f||r;if(f.nodeType!==1&&f.nodeType!==9)return[];if(!c||typeof c!=="string")return i; for(var m=[],t,s,u,J,C=true,F=P(f),D=c;(g.exec(""),t=g.exec(D))!==null;){D=t[3];m.push(t[1]);if(t[2]){J=t[3];break}}if(m.length>1&&w.exec(c))if(m.length===2&&o.relative[m[0]])s=ea(m[0]+m[1],f);else for(s=o.relative[m[0]]?[f]:p(m.shift(),f);m.length;){c=m.shift();if(o.relative[c])c+=m.shift();s=ea(c,s)}else{if(!j&&m.length>1&&f.nodeType===9&&!F&&o.match.ID.test(m[0])&&!o.match.ID.test(m[m.length-1])){t=p.find(m.shift(),f,F);f=t.expr?p.filter(t.expr,t.set)[0]:t.set[0]}if(f){t=j?{expr:m.pop(),set:K(j)}: p.find(m.pop(),m.length===1&&(m[0]==="~"||m[0]==="+")&&f.parentNode?f.parentNode:f,F);s=t.expr?p.filter(t.expr,t.set):t.set;if(m.length>0)u=K(s);else C=false;for(;m.length;){var z=m.pop();t=z;if(o.relative[z])t=m.pop();else z="";if(t==null)t=f;o.relative[z](u,t,F)}}else u=[]}u||(u=s);if(!u)throw"Syntax error, unrecognized expression: "+(z||c);if(k.call(u)==="[object Array]")if(C)if(f&&f.nodeType===1)for(c=0;u[c]!=null;c++){if(u[c]&&(u[c]===true||u[c].nodeType===1&&fa(f,u[c])))i.push(s[c])}else for(c= 0;u[c]!=null;c++)u[c]&&u[c].nodeType===1&&i.push(s[c]);else i.push.apply(i,u);else K(u,i);if(J){p(J,n,i,j);p.uniqueSort(i)}return i};p.uniqueSort=function(c){if(L){l=q;c.sort(L);if(l)for(var f=1;f<c.length;f++)c[f]===c[f-1]&&c.splice(f--,1)}return c};p.matches=function(c,f){return p(c,null,null,f)};p.find=function(c,f,i){var j,n;if(!c)return[];for(var m=0,t=o.order.length;m<t;m++){var s=o.order[m];if(n=o.leftMatch[s].exec(c)){var u=n[1];n.splice(1,1);if(u.substr(u.length-1)!=="\\"){n[1]=(n[1]||"").replace(/\\/g, "");j=o.find[s](n,f,i);if(j!=null){c=c.replace(o.match[s],"");break}}}}j||(j=f.getElementsByTagName("*"));return{set:j,expr:c}};p.filter=function(c,f,i,j){for(var n=c,m=[],t=f,s,u,J=f&&f[0]&&P(f[0]);c&&f.length;){for(var C in o.filter)if((s=o.match[C].exec(c))!=null){var F=o.filter[C],D,z;u=false;if(t===m)m=[];if(o.preFilter[C])if(s=o.preFilter[C](s,t,i,m,j,J)){if(s===true)continue}else u=D=true;if(s)for(var Q=0;(z=t[Q])!=null;Q++)if(z){D=F(z,s,Q,t);var ga=j^!!D;if(i&&D!=null)if(ga)u=true;else t[Q]= false;else if(ga){m.push(z);u=true}}if(D!==v){i||(t=m);c=c.replace(o.match[C],"");if(!u)return[];break}}if(c===n)if(u==null)throw"Syntax error, unrecognized expression: "+c;else break;n=c}return t};var o=p.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/, POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(c){return c.getAttribute("href")}},relative:{"+":function(c,f){var i=typeof f==="string",j=i&&!/\W/.test(f);i=i&&!j;if(j)f=f.toLowerCase();j=0;for(var n=c.length,m;j<n;j++)if(m=c[j]){for(;(m=m.previousSibling)&&m.nodeType!==1;);c[j]=i||m&&m.nodeName.toLowerCase()=== f?m||false:m===f}i&&p.filter(f,c,true)},">":function(c,f){var i=typeof f==="string";if(i&&!/\W/.test(f)){f=f.toLowerCase();for(var j=0,n=c.length;j<n;j++){var m=c[j];if(m){i=m.parentNode;c[j]=i.nodeName.toLowerCase()===f?i:false}}}else{j=0;for(n=c.length;j<n;j++)if(m=c[j])c[j]=i?m.parentNode:m.parentNode===f;i&&p.filter(f,c,true)}},"":function(c,f,i){var j=h++,n=e;if(typeof f==="string"&&!/\W/.test(f)){var m=f=f.toLowerCase();n=b}n("parentNode",f,j,c,m,i)},"~":function(c,f,i){var j=h++,n=e;if(typeof f=== "string"&&!/\W/.test(f)){var m=f=f.toLowerCase();n=b}n("previousSibling",f,j,c,m,i)}},find:{ID:function(c,f,i){if(typeof f.getElementById!=="undefined"&&!i)return(c=f.getElementById(c[1]))?[c]:[]},NAME:function(c,f){if(typeof f.getElementsByName!=="undefined"){var i=[];f=f.getElementsByName(c[1]);for(var j=0,n=f.length;j<n;j++)f[j].getAttribute("name")===c[1]&&i.push(f[j]);return i.length===0?null:i}},TAG:function(c,f){return f.getElementsByTagName(c[1])}},preFilter:{CLASS:function(c,f,i,j,n,m){c= " "+c[1].replace(/\\/g,"")+" ";if(m)return c;m=0;for(var t;(t=f[m])!=null;m++)if(t)if(n^(t.className&&(" "+t.className+" ").replace(/[\t\n]/g," ").indexOf(c)>=0))i||j.push(t);else if(i)f[m]=false;return false},ID:function(c){return c[1].replace(/\\/g,"")},TAG:function(c){return c[1].toLowerCase()},CHILD:function(c){if(c[1]==="nth"){var f=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(c[2]==="even"&&"2n"||c[2]==="odd"&&"2n+1"||!/\D/.test(c[2])&&"0n+"+c[2]||c[2]);c[2]=f[1]+(f[2]||1)-0;c[3]=f[3]-0}c[0]=h++;return c}, ATTR:function(c,f,i,j,n,m){f=c[1].replace(/\\/g,"");if(!m&&o.attrMap[f])c[1]=o.attrMap[f];if(c[2]==="~=")c[4]=" "+c[4]+" ";return c},PSEUDO:function(c,f,i,j,n){if(c[1]==="not")if((g.exec(c[3])||"").length>1||/^\w/.test(c[3]))c[3]=p(c[3],null,null,f);else{c=p.filter(c[3],f,i,true^n);i||j.push.apply(j,c);return false}else if(o.match.POS.test(c[0])||o.match.CHILD.test(c[0]))return true;return c},POS:function(c){c.unshift(true);return c}},filters:{enabled:function(c){return c.disabled===false&&c.type!== "hidden"},disabled:function(c){return c.disabled===true},checked:function(c){return c.checked===true},selected:function(c){return c.selected===true},parent:function(c){return!!c.firstChild},empty:function(c){return!c.firstChild},has:function(c,f,i){return!!p(i[3],c).length},header:function(c){return/h\d/i.test(c.nodeName)},text:function(c){return"text"===c.type},radio:function(c){return"radio"===c.type},checkbox:function(c){return"checkbox"===c.type},file:function(c){return"file"===c.type},password:function(c){return"password"=== c.type},submit:function(c){return"submit"===c.type},image:function(c){return"image"===c.type},reset:function(c){return"reset"===c.type},button:function(c){return"button"===c.type||c.nodeName.toLowerCase()==="button"},input:function(c){return/input|select|textarea|button/i.test(c.nodeName)}},setFilters:{first:function(c,f){return f===0},last:function(c,f,i,j){return f===j.length-1},even:function(c,f){return f%2===0},odd:function(c,f){return f%2===1},lt:function(c,f,i){return f<i[3]-0},gt:function(c, f,i){return f>i[3]-0},nth:function(c,f,i){return i[3]-0===f},eq:function(c,f,i){return i[3]-0===f}},filter:{PSEUDO:function(c,f,i,j){var n=f[1],m=o.filters[n];if(m)return m(c,i,f,j);else if(n==="contains")return(c.textContent||c.innerText||a([c])||"").indexOf(f[3])>=0;else if(n==="not"){f=f[3];i=0;for(j=f.length;i<j;i++)if(f[i]===c)return false;return true}else throw"Syntax error, unrecognized expression: "+n;},CHILD:function(c,f){var i=f[1],j=c;switch(i){case "only":case "first":for(;j=j.previousSibling;)if(j.nodeType=== 1)return false;if(i==="first")return true;j=c;case "last":for(;j=j.nextSibling;)if(j.nodeType===1)return false;return true;case "nth":i=f[2];var n=f[3];if(i===1&&n===0)return true;f=f[0];var m=c.parentNode;if(m&&(m.sizcache!==f||!c.nodeIndex)){var t=0;for(j=m.firstChild;j;j=j.nextSibling)if(j.nodeType===1)j.nodeIndex=++t;m.sizcache=f}c=c.nodeIndex-n;return i===0?c===0:c%i===0&&c/i>=0}},ID:function(c,f){return c.nodeType===1&&c.getAttribute("id")===f},TAG:function(c,f){return f==="*"&&c.nodeType=== 1||c.nodeName.toLowerCase()===f},CLASS:function(c,f){return(" "+(c.className||c.getAttribute("class"))+" ").indexOf(f)>-1},ATTR:function(c,f){var i=f[1];c=o.attrHandle[i]?o.attrHandle[i](c):c[i]!=null?c[i]:c.getAttribute(i);i=c+"";var j=f[2];f=f[4];return c==null?j==="!=":j==="="?i===f:j==="*="?i.indexOf(f)>=0:j==="~="?(" "+i+" ").indexOf(f)>=0:!f?i&&c!==false:j==="!="?i!==f:j==="^="?i.indexOf(f)===0:j==="$="?i.substr(i.length-f.length)===f:j==="|="?i===f||i.substr(0,f.length+1)===f+"-":false},POS:function(c, f,i,j){var n=o.setFilters[f[2]];if(n)return n(c,i,f,j)}}},w=o.match.POS;for(var A in o.match){o.match[A]=new RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source)}var K=function(c,f){c=Array.prototype.slice.call(c,0);if(f){f.push.apply(f,c);return f}return c};try{Array.prototype.slice.call(r.documentElement.childNodes,0)}catch(Wa){K=function(c,f){f=f||[];if(k.call(c)==="[object Array]")Array.prototype.push.apply(f,c);else if(typeof c.length=== "number")for(var i=0,j=c.length;i<j;i++)f.push(c[i]);else for(i=0;c[i];i++)f.push(c[i]);return f}}var L;if(r.documentElement.compareDocumentPosition)L=function(c,f){if(!c.compareDocumentPosition||!f.compareDocumentPosition){if(c==f)l=true;return c.compareDocumentPosition?-1:1}c=c.compareDocumentPosition(f)&4?-1:c===f?0:1;if(c===0)l=true;return c};else if("sourceIndex"in r.documentElement)L=function(c,f){if(!c.sourceIndex||!f.sourceIndex){if(c==f)l=true;return c.sourceIndex?-1:1}c=c.sourceIndex-f.sourceIndex; if(c===0)l=true;return c};else if(r.createRange)L=function(c,f){if(!c.ownerDocument||!f.ownerDocument){if(c==f)l=true;return c.ownerDocument?-1:1}var i=c.ownerDocument.createRange(),j=f.ownerDocument.createRange();i.setStart(c,0);i.setEnd(c,0);j.setStart(f,0);j.setEnd(f,0);c=i.compareBoundaryPoints(Range.START_TO_END,j);if(c===0)l=true;return c};(function(){var c=r.createElement("div"),f="script"+(new Date).getTime();c.innerHTML="<a name='"+f+"'/>";var i=r.documentElement;i.insertBefore(c,i.firstChild); if(r.getElementById(f)){o.find.ID=function(j,n,m){if(typeof n.getElementById!=="undefined"&&!m)return(n=n.getElementById(j[1]))?n.id===j[1]||typeof n.getAttributeNode!=="undefined"&&n.getAttributeNode("id").nodeValue===j[1]?[n]:v:[]};o.filter.ID=function(j,n){var m=typeof j.getAttributeNode!=="undefined"&&j.getAttributeNode("id");return j.nodeType===1&&m&&m.nodeValue===n}}i.removeChild(c);i=c=null})();(function(){var c=r.createElement("div");c.appendChild(r.createComment(""));if(c.getElementsByTagName("*").length> 0)o.find.TAG=function(f,i){i=i.getElementsByTagName(f[1]);if(f[1]==="*"){f=[];for(var j=0;i[j];j++)i[j].nodeType===1&&f.push(i[j]);i=f}return i};c.innerHTML="<a href='#'></a>";if(c.firstChild&&typeof c.firstChild.getAttribute!=="undefined"&&c.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(f){return f.getAttribute("href",2)};c=null})();r.querySelectorAll&&function(){var c=p,f=r.createElement("div");f.innerHTML="<p class='TEST'></p>";if(!(f.querySelectorAll&&f.querySelectorAll(".TEST").length=== 0)){p=function(j,n,m,t){n=n||r;if(!t&&n.nodeType===9&&!P(n))try{return K(n.querySelectorAll(j),m)}catch(s){}return c(j,n,m,t)};for(var i in c)p[i]=c[i];f=null}}();(function(){var c=r.createElement("div");c.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!c.getElementsByClassName||c.getElementsByClassName("e").length===0)){c.lastChild.className="e";if(c.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(f,i,j){if(typeof i.getElementsByClassName!== "undefined"&&!j)return i.getElementsByClassName(f[1])};c=null}}})();var fa=r.compareDocumentPosition?function(c,f){return c.compareDocumentPosition(f)&16}:function(c,f){return c!==f&&(c.contains?c.contains(f):true)},P=function(c){return(c=(c?c.ownerDocument||c:0).documentElement)?c.nodeName!=="HTML":false},ea=function(c,f){var i=[],j="",n;for(f=f.nodeType?[f]:f;n=o.match.PSEUDO.exec(c);){j+=n[0];c=c.replace(o.match.PSEUDO,"")}c=o.relative[c]?c+"*":c;n=0;for(var m=f.length;n<m;n++)p(c,f[n],i);return p.filter(j, i)};d.find=p;d.expr=p.selectors;d.expr[":"]=d.expr.filters;d.unique=p.uniqueSort;d.getText=a;d.isXMLDoc=P;d.contains=fa})();var Ba=/Until$/,Ca=/^(?:parents|prevUntil|prevAll)/,Da=/,/;I=Array.prototype.slice;var ha=function(a,b,e){if(d.isFunction(b))return d.grep(a,function(h,k){return!!b.call(h,k,h)===e});else if(b.nodeType)return d.grep(a,function(h){return h===b===e});else if(typeof b==="string"){var g=d.grep(a,function(h){return h.nodeType===1});if(va.test(b))return d.filter(b,g,!e);else b=d.filter(b, | "undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(b===v){var f=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(f===v&&this.length)f=c.data(this[0],a);return f===v&&e[1]?this.data(e[0]):f}else return this.trigger("setData"+e[1]+"!",[e[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});(function(){function a(d){for(var g= "",i,j=0;d[j];j++){i=d[j];if(i.nodeType===3||i.nodeType===4)g+=i.nodeValue;else if(i.nodeType!==8)g+=a(i.childNodes)}return g}function b(d,g,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[d];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset];break}if(s.nodeType===1&&!m){s.sizcache=i;s.sizset=n}if(s.nodeName.toLowerCase()===g){u=s;break}s=s[d]}j[n]=u}}}function e(d,g,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[d];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset]; break}if(s.nodeType===1){if(!m){s.sizcache=i;s.sizset=n}if(typeof g!=="string"){if(s===g){u=true;break}}else if(p.filter(g,[s]).length>0){u=s;break}}s=s[d]}j[n]=u}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,h=0,k=Object.prototype.toString,l=false,q=true;[0,0].sort(function(){q=false;return 0});var p=function(d,g,i,j){i=i||[];var n=g=g||r;if(g.nodeType!==1&&g.nodeType!==9)return[];if(!d||typeof d!=="string")return i; for(var m=[],t,s,u,J,C=true,F=P(g),D=d;(f.exec(""),t=f.exec(D))!==null;){D=t[3];m.push(t[1]);if(t[2]){J=t[3];break}}if(m.length>1&&w.exec(d))if(m.length===2&&o.relative[m[0]])s=ea(m[0]+m[1],g);else for(s=o.relative[m[0]]?[g]:p(m.shift(),g);m.length;){d=m.shift();if(o.relative[d])d+=m.shift();s=ea(d,s)}else{if(!j&&m.length>1&&g.nodeType===9&&!F&&o.match.ID.test(m[0])&&!o.match.ID.test(m[m.length-1])){t=p.find(m.shift(),g,F);g=t.expr?p.filter(t.expr,t.set)[0]:t.set[0]}if(g){t=j?{expr:m.pop(),set:K(j)}: p.find(m.pop(),m.length===1&&(m[0]==="~"||m[0]==="+")&&g.parentNode?g.parentNode:g,F);s=t.expr?p.filter(t.expr,t.set):t.set;if(m.length>0)u=K(s);else C=false;for(;m.length;){var y=m.pop();t=y;if(o.relative[y])t=m.pop();else y="";if(t==null)t=g;o.relative[y](u,t,F)}}else u=[]}u||(u=s);if(!u)throw"Syntax error, unrecognized expression: "+(y||d);if(k.call(u)==="[object Array]")if(C)if(g&&g.nodeType===1)for(d=0;u[d]!=null;d++){if(u[d]&&(u[d]===true||u[d].nodeType===1&&fa(g,u[d])))i.push(s[d])}else for(d= 0;u[d]!=null;d++)u[d]&&u[d].nodeType===1&&i.push(s[d]);else i.push.apply(i,u);else K(u,i);if(J){p(J,n,i,j);p.uniqueSort(i)}return i};p.uniqueSort=function(d){if(L){l=q;d.sort(L);if(l)for(var g=1;g<d.length;g++)d[g]===d[g-1]&&d.splice(g--,1)}return d};p.matches=function(d,g){return p(d,null,null,g)};p.find=function(d,g,i){var j,n;if(!d)return[];for(var m=0,t=o.order.length;m<t;m++){var s=o.order[m];if(n=o.leftMatch[s].exec(d)){var u=n[1];n.splice(1,1);if(u.substr(u.length-1)!=="\\"){n[1]=(n[1]||"").replace(/\\/g, "");j=o.find[s](n,g,i);if(j!=null){d=d.replace(o.match[s],"");break}}}}j||(j=g.getElementsByTagName("*"));return{set:j,expr:d}};p.filter=function(d,g,i,j){for(var n=d,m=[],t=g,s,u,J=g&&g[0]&&P(g[0]);d&&g.length;){for(var C in o.filter)if((s=o.leftMatch[C].exec(d))!=null&&s[2]){var F=o.filter[C],D,y;y=s[1];u=false;s.splice(1,1);if(y.substr(y.length-1)!=="\\"){if(t===m)m=[];if(o.preFilter[C])if(s=o.preFilter[C](s,t,i,m,j,J)){if(s===true)continue}else u=D=true;if(s)for(var Q=0;(y=t[Q])!=null;Q++)if(y){D= F(y,s,Q,t);var ga=j^!!D;if(i&&D!=null)if(ga)u=true;else t[Q]=false;else if(ga){m.push(y);u=true}}if(D!==v){i||(t=m);d=d.replace(o.match[C],"");if(!u)return[];break}}}if(d===n)if(u==null)throw"Syntax error, unrecognized expression: "+d;else break;n=d}return t};var o=p.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/, TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(d){return d.getAttribute("href")}},relative:{"+":function(d,g){var i=typeof g==="string",j=i&&!/\W/.test(g);i=i&&!j;if(j)g=g.toLowerCase();j=0;for(var n=d.length, m;j<n;j++)if(m=d[j]){for(;(m=m.previousSibling)&&m.nodeType!==1;);d[j]=i||m&&m.nodeName.toLowerCase()===g?m||false:m===g}i&&p.filter(g,d,true)},">":function(d,g){var i=typeof g==="string";if(i&&!/\W/.test(g)){g=g.toLowerCase();for(var j=0,n=d.length;j<n;j++){var m=d[j];if(m){i=m.parentNode;d[j]=i.nodeName.toLowerCase()===g?i:false}}}else{j=0;for(n=d.length;j<n;j++)if(m=d[j])d[j]=i?m.parentNode:m.parentNode===g;i&&p.filter(g,d,true)}},"":function(d,g,i){var j=h++,n=e;if(typeof g==="string"&&!/\W/.test(g)){var m= g=g.toLowerCase();n=b}n("parentNode",g,j,d,m,i)},"~":function(d,g,i){var j=h++,n=e;if(typeof g==="string"&&!/\W/.test(g)){var m=g=g.toLowerCase();n=b}n("previousSibling",g,j,d,m,i)}},find:{ID:function(d,g,i){if(typeof g.getElementById!=="undefined"&&!i)return(d=g.getElementById(d[1]))?[d]:[]},NAME:function(d,g){if(typeof g.getElementsByName!=="undefined"){var i=[];g=g.getElementsByName(d[1]);for(var j=0,n=g.length;j<n;j++)g[j].getAttribute("name")===d[1]&&i.push(g[j]);return i.length===0?null:i}}, TAG:function(d,g){return g.getElementsByTagName(d[1])}},preFilter:{CLASS:function(d,g,i,j,n,m){d=" "+d[1].replace(/\\/g,"")+" ";if(m)return d;m=0;for(var t;(t=g[m])!=null;m++)if(t)if(n^(t.className&&(" "+t.className+" ").replace(/[\t\n]/g," ").indexOf(d)>=0))i||j.push(t);else if(i)g[m]=false;return false},ID:function(d){return d[1].replace(/\\/g,"")},TAG:function(d){return d[1].toLowerCase()},CHILD:function(d){if(d[1]==="nth"){var g=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(d[2]==="even"&&"2n"||d[2]==="odd"&& "2n+1"||!/\D/.test(d[2])&&"0n+"+d[2]||d[2]);d[2]=g[1]+(g[2]||1)-0;d[3]=g[3]-0}d[0]=h++;return d},ATTR:function(d,g,i,j,n,m){g=d[1].replace(/\\/g,"");if(!m&&o.attrMap[g])d[1]=o.attrMap[g];if(d[2]==="~=")d[4]=" "+d[4]+" ";return d},PSEUDO:function(d,g,i,j,n){if(d[1]==="not")if((f.exec(d[3])||"").length>1||/^\w/.test(d[3]))d[3]=p(d[3],null,null,g);else{d=p.filter(d[3],g,i,true^n);i||j.push.apply(j,d);return false}else if(o.match.POS.test(d[0])||o.match.CHILD.test(d[0]))return true;return d},POS:function(d){d.unshift(true); return d}},filters:{enabled:function(d){return d.disabled===false&&d.type!=="hidden"},disabled:function(d){return d.disabled===true},checked:function(d){return d.checked===true},selected:function(d){return d.selected===true},parent:function(d){return!!d.firstChild},empty:function(d){return!d.firstChild},has:function(d,g,i){return!!p(i[3],d).length},header:function(d){return/h\d/i.test(d.nodeName)},text:function(d){return"text"===d.type},radio:function(d){return"radio"===d.type},checkbox:function(d){return"checkbox"=== d.type},file:function(d){return"file"===d.type},password:function(d){return"password"===d.type},submit:function(d){return"submit"===d.type},image:function(d){return"image"===d.type},reset:function(d){return"reset"===d.type},button:function(d){return"button"===d.type||d.nodeName.toLowerCase()==="button"},input:function(d){return/input|select|textarea|button/i.test(d.nodeName)}},setFilters:{first:function(d,g){return g===0},last:function(d,g,i,j){return g===j.length-1},even:function(d,g){return g%2=== 0},odd:function(d,g){return g%2===1},lt:function(d,g,i){return g<i[3]-0},gt:function(d,g,i){return g>i[3]-0},nth:function(d,g,i){return i[3]-0===g},eq:function(d,g,i){return i[3]-0===g}},filter:{PSEUDO:function(d,g,i,j){var n=g[1],m=o.filters[n];if(m)return m(d,i,g,j);else if(n==="contains")return(d.textContent||d.innerText||a([d])||"").indexOf(g[3])>=0;else if(n==="not"){g=g[3];i=0;for(j=g.length;i<j;i++)if(g[i]===d)return false;return true}else throw"Syntax error, unrecognized expression: "+n;}, CHILD:function(d,g){var i=g[1],j=d;switch(i){case "only":case "first":for(;j=j.previousSibling;)if(j.nodeType===1)return false;if(i==="first")return true;j=d;case "last":for(;j=j.nextSibling;)if(j.nodeType===1)return false;return true;case "nth":i=g[2];var n=g[3];if(i===1&&n===0)return true;g=g[0];var m=d.parentNode;if(m&&(m.sizcache!==g||!d.nodeIndex)){var t=0;for(j=m.firstChild;j;j=j.nextSibling)if(j.nodeType===1)j.nodeIndex=++t;m.sizcache=g}d=d.nodeIndex-n;return i===0?d===0:d%i===0&&d/i>=0}}, ID:function(d,g){return d.nodeType===1&&d.getAttribute("id")===g},TAG:function(d,g){return g==="*"&&d.nodeType===1||d.nodeName.toLowerCase()===g},CLASS:function(d,g){return(" "+(d.className||d.getAttribute("class"))+" ").indexOf(g)>-1},ATTR:function(d,g){var i=g[1];d=o.attrHandle[i]?o.attrHandle[i](d):d[i]!=null?d[i]:d.getAttribute(i);i=d+"";var j=g[2];g=g[4];return d==null?j==="!=":j==="="?i===g:j==="*="?i.indexOf(g)>=0:j==="~="?(" "+i+" ").indexOf(g)>=0:!g?i&&d!==false:j==="!="?i!==g:j==="^="?i.indexOf(g)=== 0:j==="$="?i.substr(i.length-g.length)===g:j==="|="?i===g||i.substr(0,g.length+1)===g+"-":false},POS:function(d,g,i,j){var n=o.setFilters[g[2]];if(n)return n(d,i,g,j)}}},w=o.match.POS;for(var A in o.match){o.match[A]=new RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source.replace(/\\(\d+)/g,function(d,g){return"\\"+(g-0+1)}))}var K=function(d,g){d=Array.prototype.slice.call(d,0);if(g){g.push.apply(g,d);return g}return d}; try{Array.prototype.slice.call(r.documentElement.childNodes,0)}catch(Wa){K=function(d,g){g=g||[];if(k.call(d)==="[object Array]")Array.prototype.push.apply(g,d);else if(typeof d.length==="number")for(var i=0,j=d.length;i<j;i++)g.push(d[i]);else for(i=0;d[i];i++)g.push(d[i]);return g}}var L;if(r.documentElement.compareDocumentPosition)L=function(d,g){if(!d.compareDocumentPosition||!g.compareDocumentPosition){if(d==g)l=true;return d.compareDocumentPosition?-1:1}d=d.compareDocumentPosition(g)&4?-1:d=== g?0:1;if(d===0)l=true;return d};else if("sourceIndex"in r.documentElement)L=function(d,g){if(!d.sourceIndex||!g.sourceIndex){if(d==g)l=true;return d.sourceIndex?-1:1}d=d.sourceIndex-g.sourceIndex;if(d===0)l=true;return d};else if(r.createRange)L=function(d,g){if(!d.ownerDocument||!g.ownerDocument){if(d==g)l=true;return d.ownerDocument?-1:1}var i=d.ownerDocument.createRange(),j=g.ownerDocument.createRange();i.setStart(d,0);i.setEnd(d,0);j.setStart(g,0);j.setEnd(g,0);d=i.compareBoundaryPoints(Range.START_TO_END, j);if(d===0)l=true;return d};(function(){var d=r.createElement("div"),g="script"+(new Date).getTime();d.innerHTML="<a name='"+g+"'/>";var i=r.documentElement;i.insertBefore(d,i.firstChild);if(r.getElementById(g)){o.find.ID=function(j,n,m){if(typeof n.getElementById!=="undefined"&&!m)return(n=n.getElementById(j[1]))?n.id===j[1]||typeof n.getAttributeNode!=="undefined"&&n.getAttributeNode("id").nodeValue===j[1]?[n]:v:[]};o.filter.ID=function(j,n){var m=typeof j.getAttributeNode!=="undefined"&&j.getAttributeNode("id"); return j.nodeType===1&&m&&m.nodeValue===n}}i.removeChild(d);i=d=null})();(function(){var d=r.createElement("div");d.appendChild(r.createComment(""));if(d.getElementsByTagName("*").length>0)o.find.TAG=function(g,i){i=i.getElementsByTagName(g[1]);if(g[1]==="*"){g=[];for(var j=0;i[j];j++)i[j].nodeType===1&&g.push(i[j]);i=g}return i};d.innerHTML="<a href='#'></a>";if(d.firstChild&&typeof d.firstChild.getAttribute!=="undefined"&&d.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(g){return g.getAttribute("href", 2)};d=null})();r.querySelectorAll&&function(){var d=p,g=r.createElement("div");g.innerHTML="<p class='TEST'></p>";if(!(g.querySelectorAll&&g.querySelectorAll(".TEST").length===0)){p=function(j,n,m,t){n=n||r;if(!t&&n.nodeType===9&&!P(n))try{return K(n.querySelectorAll(j),m)}catch(s){}return d(j,n,m,t)};for(var i in d)p[i]=d[i];g=null}}();(function(){var d=r.createElement("div");d.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!d.getElementsByClassName||d.getElementsByClassName("e").length=== 0)){d.lastChild.className="e";if(d.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(g,i,j){if(typeof i.getElementsByClassName!=="undefined"&&!j)return i.getElementsByClassName(g[1])};d=null}}})();var fa=r.compareDocumentPosition?function(d,g){return d.compareDocumentPosition(g)&16}:function(d,g){return d!==g&&(d.contains?d.contains(g):true)},P=function(d){return(d=(d?d.ownerDocument||d:0).documentElement)?d.nodeName!=="HTML":false},ea=function(d,g){var i=[], j="",n;for(g=g.nodeType?[g]:g;n=o.match.PSEUDO.exec(d);){j+=n[0];d=d.replace(o.match.PSEUDO,"")}d=o.relative[d]?d+"*":d;n=0;for(var m=g.length;n<m;n++)p(d,g[n],i);return p.filter(j,i)};c.find=p;c.expr=p.selectors;c.expr[":"]=c.expr.filters;c.unique=p.uniqueSort;c.getText=a;c.isXMLDoc=P;c.contains=fa})();var Ba=/Until$/,Ca=/^(?:parents|prevUntil|prevAll)/,Da=/,/;I=Array.prototype.slice;var ha=function(a,b,e){if(c.isFunction(b))return c.grep(a,function(h,k){return!!b.call(h,k,h)===e});else if(b.nodeType)return c.grep(a, | "undefined"&&this.length)return d.data(this[0]);else if(typeof a==="object")return this.each(function(){d.data(this,a)});var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(b===v){var g=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(g===v&&this.length)g=d.data(this[0],a);return g===v&&e[1]?this.data(e[0]):g}else return this.trigger("setData"+e[1]+"!",[e[0],b]).each(function(){d.data(this,a,b)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});(function(){function a(c){for(var f="",i,j=0;c[j];j++){i=c[j];if(i.nodeType===3||i.nodeType===4)f+=i.nodeValue;else if(i.nodeType!==8)f+=a(i.childNodes)}return f}function b(c,f,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[c];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset];break}if(s.nodeType===1&&!m){s.sizcache=i;s.sizset=n}if(s.nodeName.toLowerCase()===f){u=s;break}s=s[c]}j[n]=u}}}function e(c,f,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[c];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset];break}if(s.nodeType===1){if(!m){s.sizcache=i;s.sizset=n}if(typeof f!=="string"){if(s===f){u=true;break}}else if(p.filter(f,[s]).length>0){u=s;break}}s=s[c]}j[n]=u}}}var g=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,h=0,k=Object.prototype.toString,l=false,q=true;[0,0].sort(function(){q=false;return 0});var p=function(c,f,i,j){i=i||[];var n=f=f||r;if(f.nodeType!==1&&f.nodeType!==9)return[];if(!c||typeof c!=="string")return i;for(var m=[],t,s,u,J,C=true,F=P(f),D=c;(g.exec(""),t=g.exec(D))!==null;){D=t[3];m.push(t[1]);if(t[2]){J=t[3];break}}if(m.length>1&&w.exec(c))if(m.length===2&&o.relative[m[0]])s=ea(m[0]+m[1],f);else for(s=o.relative[m[0]]?[f]:p(m.shift(),f);m.length;){c=m.shift();if(o.relative[c])c+=m.shift();s=ea(c,s)}else{if(!j&&m.length>1&&f.nodeType===9&&!F&&o.match.ID.test(m[0])&&!o.match.ID.test(m[m.length-1])){t=p.find(m.shift(),f,F);f=t.expr?p.filter(t.expr,t.set)[0]:t.set[0]}if(f){t=j?{expr:m.pop(),set:K(j)}:p.find(m.pop(),m.length===1&&(m[0]==="~"||m[0]==="+")&&f.parentNode?f.parentNode:f,F);s=t.expr?p.filter(t.expr,t.set):t.set;if(m.length>0)u=K(s);else C=false;for(;m.length;){var z=m.pop();t=z;if(o.relative[z])t=m.pop();else z="";if(t==null)t=f;o.relative[z](u,t,F)}}else u=[]}u||(u=s);if(!u)throw"Syntax error, unrecognized expression: "+(z||c);if(k.call(u)==="[object Array]")if(C)if(f&&f.nodeType===1)for(c=0;u[c]!=null;c++){if(u[c]&&(u[c]===true||u[c].nodeType===1&&fa(f,u[c])))i.push(s[c])}else for(c=0;u[c]!=null;c++)u[c]&&u[c].nodeType===1&&i.push(s[c]);else i.push.apply(i,u);else K(u,i);if(J){p(J,n,i,j);p.uniqueSort(i)}return i};p.uniqueSort=function(c){if(L){l=q;c.sort(L);if(l)for(var f=1;f<c.length;f++)c[f]===c[f-1]&&c.splice(f--,1)}return c};p.matches=function(c,f){return p(c,null,null,f)};p.find=function(c,f,i){var j,n;if(!c)return[];for(var m=0,t=o.order.length;m<t;m++){var s=o.order[m];if(n=o.leftMatch[s].exec(c)){var u=n[1];n.splice(1,1);if(u.substr(u.length-1)!=="\\"){n[1]=(n[1]||"").replace(/\\/g,"");j=o.find[s](n,f,i);if(j!=null){c=c.replace(o.match[s],"");break}}}}j||(j=f.getElementsByTagName("*"));return{set:j,expr:c}};p.filter=function(c,f,i,j){for(var n=c,m=[],t=f,s,u,J=f&&f[0]&&P(f[0]);c&&f.length;){for(var C in o.filter)if((s=o.match[C].exec(c))!=null){var F=o.filter[C],D,z;u=false;if(t===m)m=[];if(o.preFilter[C])if(s=o.preFilter[C](s,t,i,m,j,J)){if(s===true)continue}else u=D=true;if(s)for(var Q=0;(z=t[Q])!=null;Q++)if(z){D=F(z,s,Q,t);var ga=j^!!D;if(i&&D!=null)if(ga)u=true;else t[Q]=false;else if(ga){m.push(z);u=true}}if(D!==v){i||(t=m);c=c.replace(o.match[C],"");if(!u)return[];break}}if(c===n)if(u==null)throw"Syntax error, unrecognized expression: "+c;else break;n=c}return t};var o=p.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(c){return c.getAttribute("href")}},relative:{"+":function(c,f){var i=typeof f==="string",j=i&&!/\W/.test(f);i=i&&!j;if(j)f=f.toLowerCase();j=0;for(var n=c.length,m;j<n;j++)if(m=c[j]){for(;(m=m.previousSibling)&&m.nodeType!==1;);c[j]=i||m&&m.nodeName.toLowerCase()===f?m||false:m===f}i&&p.filter(f,c,true)},">":function(c,f){var i=typeof f==="string";if(i&&!/\W/.test(f)){f=f.toLowerCase();for(var j=0,n=c.length;j<n;j++){var m=c[j];if(m){i=m.parentNode;c[j]=i.nodeName.toLowerCase()===f?i:false}}}else{j=0;for(n=c.length;j<n;j++)if(m=c[j])c[j]=i?m.parentNode:m.parentNode===f;i&&p.filter(f,c,true)}},"":function(c,f,i){var j=h++,n=e;if(typeof f==="string"&&!/\W/.test(f)){var m=f=f.toLowerCase();n=b}n("parentNode",f,j,c,m,i)},"~":function(c,f,i){var j=h++,n=e;if(typeof f==="string"&&!/\W/.test(f)){var m=f=f.toLowerCase();n=b}n("previousSibling",f,j,c,m,i)}},find:{ID:function(c,f,i){if(typeof f.getElementById!=="undefined"&&!i)return(c=f.getElementById(c[1]))?[c]:[]},NAME:function(c,f){if(typeof f.getElementsByName!=="undefined"){var i=[];f=f.getElementsByName(c[1]);for(var j=0,n=f.length;j<n;j++)f[j].getAttribute("name")===c[1]&&i.push(f[j]);return i.length===0?null:i}},TAG:function(c,f){return f.getElementsByTagName(c[1])}},preFilter:{CLASS:function(c,f,i,j,n,m){c=" "+c[1].replace(/\\/g,"")+" ";if(m)return c;m=0;for(var t;(t=f[m])!=null;m++)if(t)if(n^(t.className&&(" "+t.className+" ").replace(/[\t\n]/g," ").indexOf(c)>=0))i||j.push(t);else if(i)f[m]=false;return false},ID:function(c){return c[1].replace(/\\/g,"")},TAG:function(c){return c[1].toLowerCase()},CHILD:function(c){if(c[1]==="nth"){var f=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(c[2]==="even"&&"2n"||c[2]==="odd"&&"2n+1"||!/\D/.test(c[2])&&"0n+"+c[2]||c[2]);c[2]=f[1]+(f[2]||1)-0;c[3]=f[3]-0}c[0]=h++;return c},ATTR:function(c,f,i,j,n,m){f=c[1].replace(/\\/g,"");if(!m&&o.attrMap[f])c[1]=o.attrMap[f];if(c[2]==="~=")c[4]=" "+c[4]+" ";return c},PSEUDO:function(c,f,i,j,n){if(c[1]==="not")if((g.exec(c[3])||"").length>1||/^\w/.test(c[3]))c[3]=p(c[3],null,null,f);else{c=p.filter(c[3],f,i,true^n);i||j.push.apply(j,c);return false}else if(o.match.POS.test(c[0])||o.match.CHILD.test(c[0]))return true;return c},POS:function(c){c.unshift(true);return c}},filters:{enabled:function(c){return c.disabled===false&&c.type!=="hidden"},disabled:function(c){return c.disabled===true},checked:function(c){return c.checked===true},selected:function(c){return c.selected===true},parent:function(c){return!!c.firstChild},empty:function(c){return!c.firstChild},has:function(c,f,i){return!!p(i[3],c).length},header:function(c){return/h\d/i.test(c.nodeName)},text:function(c){return"text"===c.type},radio:function(c){return"radio"===c.type},checkbox:function(c){return"checkbox"===c.type},file:function(c){return"file"===c.type},password:function(c){return"password"===c.type},submit:function(c){return"submit"===c.type},image:function(c){return"image"===c.type},reset:function(c){return"reset"===c.type},button:function(c){return"button"===c.type||c.nodeName.toLowerCase()==="button"},input:function(c){return/input|select|textarea|button/i.test(c.nodeName)}},setFilters:{first:function(c,f){return f===0},last:function(c,f,i,j){return f===j.length-1},even:function(c,f){return f%2===0},odd:function(c,f){return f%2===1},lt:function(c,f,i){return f<i[3]-0},gt:function(c,f,i){return f>i[3]-0},nth:function(c,f,i){return i[3]-0===f},eq:function(c,f,i){return i[3]-0===f}},filter:{PSEUDO:function(c,f,i,j){var n=f[1],m=o.filters[n];if(m)return m(c,i,f,j);else if(n==="contains")return(c.textContent||c.innerText||a([c])||"").indexOf(f[3])>=0;else if(n==="not"){f=f[3];i=0;for(j=f.length;i<j;i++)if(f[i]===c)return false;return true}else throw"Syntax error, unrecognized expression: "+n;},CHILD:function(c,f){var i=f[1],j=c;switch(i){case "only":case "first":for(;j=j.previousSibling;)if(j.nodeType===1)return false;if(i==="first")return true;j=c;case "last":for(;j=j.nextSibling;)if(j.nodeType===1)return false;return true;case "nth":i=f[2];var n=f[3];if(i===1&&n===0)return true;f=f[0];var m=c.parentNode;if(m&&(m.sizcache!==f||!c.nodeIndex)){var t=0;for(j=m.firstChild;j;j=j.nextSibling)if(j.nodeType===1)j.nodeIndex=++t;m.sizcache=f}c=c.nodeIndex-n;return i===0?c===0:c%i===0&&c/i>=0}},ID:function(c,f){return c.nodeType===1&&c.getAttribute("id")===f},TAG:function(c,f){return f==="*"&&c.nodeType===1||c.nodeName.toLowerCase()===f},CLASS:function(c,f){return(" "+(c.className||c.getAttribute("class"))+" ").indexOf(f)>-1},ATTR:function(c,f){var i=f[1];c=o.attrHandle[i]?o.attrHandle[i](c):c[i]!=null?c[i]:c.getAttribute(i);i=c+"";var j=f[2];f=f[4];return c==null?j==="!=":j==="="?i===f:j==="*="?i.indexOf(f)>=0:j==="~="?(" "+i+" ").indexOf(f)>=0:!f?i&&c!==false:j==="!="?i!==f:j==="^="?i.indexOf(f)===0:j==="$="?i.substr(i.length-f.length)===f:j==="|="?i===f||i.substr(0,f.length+1)===f+"-":false},POS:function(c,f,i,j){var n=o.setFilters[f[2]];if(n)return n(c,i,f,j)}}},w=o.match.POS;for(var A in o.match){o.match[A]=new RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source)}var K=function(c,f){c=Array.prototype.slice.call(c,0);if(f){f.push.apply(f,c);return f}return c};try{Array.prototype.slice.call(r.documentElement.childNodes,0)}catch(Wa){K=function(c,f){f=f||[];if(k.call(c)==="[object Array]")Array.prototype.push.apply(f,c);else if(typeof c.length==="number")for(var i=0,j=c.length;i<j;i++)f.push(c[i]);else for(i=0;c[i];i++)f.push(c[i]);return f}}var L;if(r.documentElement.compareDocumentPosition)L=function(c,f){if(!c.compareDocumentPosition||!f.compareDocumentPosition){if(c==f)l=true;return c.compareDocumentPosition?-1:1}c=c.compareDocumentPosition(f)&4?-1:c===f?0:1;if(c===0)l=true;return c};else if("sourceIndex"in r.documentElement)L=function(c,f){if(!c.sourceIndex||!f.sourceIndex){if(c==f)l=true;return c.sourceIndex?-1:1}c=c.sourceIndex-f.sourceIndex;if(c===0)l=true;return c};else if(r.createRange)L=function(c,f){if(!c.ownerDocument||!f.ownerDocument){if(c==f)l=true;return c.ownerDocument?-1:1}var i=c.ownerDocument.createRange(),j=f.ownerDocument.createRange();i.setStart(c,0);i.setEnd(c,0);j.setStart(f,0);j.setEnd(f,0);c=i.compareBoundaryPoints(Range.START_TO_END,j);if(c===0)l=true;return c};(function(){var c=r.createElement("div"),f="script"+(new Date).getTime();c.innerHTML="<a name='"+f+"'/>";var i=r.documentElement;i.insertBefore(c,i.firstChild);if(r.getElementById(f)){o.find.ID=function(j,n,m){if(typeof n.getElementById!=="undefined"&&!m)return(n=n.getElementById(j[1]))?n.id===j[1]||typeof n.getAttributeNode!=="undefined"&&n.getAttributeNode("id").nodeValue===j[1]?[n]:v:[]};o.filter.ID=function(j,n){var m=typeof j.getAttributeNode!=="undefined"&&j.getAttributeNode("id");return j.nodeType===1&&m&&m.nodeValue===n}}i.removeChild(c);i=c=null})();(function(){var c=r.createElement("div");c.appendChild(r.createComment(""));if(c.getElementsByTagName("*").length>0)o.find.TAG=function(f,i){i=i.getElementsByTagName(f[1]);if(f[1]==="*"){f=[];for(var j=0;i[j];j++)i[j].nodeType===1&&f.push(i[j]);i=f}return i};c.innerHTML="<a href='#'></a>";if(c.firstChild&&typeof c.firstChild.getAttribute!=="undefined"&&c.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(f){return f.getAttribute("href",2)};c=null})();r.querySelectorAll&&function(){var c=p,f=r.createElement("div");f.innerHTML="<p class='TEST'></p>";if(!(f.querySelectorAll&&f.querySelectorAll(".TEST").length===0)){p=function(j,n,m,t){n=n||r;if(!t&&n.nodeType===9&&!P(n))try{return K(n.querySelectorAll(j),m)}catch(s){}return c(j,n,m,t)};for(var i in c)p[i]=c[i];f=null}}();(function(){var c=r.createElement("div");c.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!c.getElementsByClassName||c.getElementsByClassName("e").length===0)){c.lastChild.className="e";if(c.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(f,i,j){if(typeof i.getElementsByClassName!=="undefined"&&!j)return i.getElementsByClassName(f[1])};c=null}}})();var fa=r.compareDocumentPosition?function(c,f){return c.compareDocumentPosition(f)&16}:function(c,f){return c!==f&&(c.contains?c.contains(f):true)},P=function(c){return(c=(c?c.ownerDocument||c:0).documentElement)?c.nodeName!=="HTML":false},ea=function(c,f){var i=[],j="",n;for(f=f.nodeType?[f]:f;n=o.match.PSEUDO.exec(c);){j+=n[0];c=c.replace(o.match.PSEUDO,"")}c=o.relative[c]?c+"*":c;n=0;for(var m=f.length;n<m;n++)p(c,f[n],i);return p.filter(j,i)};d.find=p;d.expr=p.selectors;d.expr[":"]=d.expr.filters;d.unique=p.uniqueSort;d.getText=a;d.isXMLDoc=P;d.contains=fa})();var Ba=/Until$/,Ca=/^(?:parents|prevUntil|prevAll)/,Da=/,/;I=Array.prototype.slice;var ha=function(a,b,e){if(d.isFunction(b))return d.grep(a,function(h,k){return!!b.call(h,k,h)===e});else if(b.nodeType)return d.grep(a,function(h){return h===b===e});else if(typeof b==="string"){var g=d.grep(a,function(h){return h.nodeType===1});if(va.test(b))return d.filter(b,g,!e);else b=d.filter(b, |
if(r)r.push(t);else A.onText(t);}q=A._.htmlPartsRegex.lastIndex;if(p=o[1]){p=p.toLowerCase();if(r&&f.$cdata[p]){A.onCDATA(r.join(''));r=null;}if(!r){A.onTagClose(p);continue;}}if(r){r.push(o[0]);continue;}if(p=o[3]){p=p.toLowerCase();var u={},v,w=o[4],x=!!(w&&w.charAt(w.length-1)=='/');if(w)while(v=l.exec(w)){var y=v[1].toLowerCase(),z=v[2]||v[3]||v[4]||'';if(!z&&m[y])u[y]=y;else u[y]=z;}A.onTagOpen(p,u,x);if(!r&&f.$cdata[p])r=[];continue;}if(p=o[2])A.onComment(p);}if(n.length>q)A.onText(n.substring(q,n.length));}};})();a.htmlParser.comment=function(l){this.value=l;this._={isBlockLike:false};};a.htmlParser.comment.prototype={type:8,writeHtml:function(l,m){var n=this.value;if(m){if(!(n=m.onComment(n,this)))return;if(typeof n!='string'){n.parent=this.parent;n.writeHtml(l,m);return;}}l.comment(n);}};(function(){var l=/[\t\r\n ]{2,}|[\t\r\n]/g;a.htmlParser.text=function(m){this.value=m;this._={isBlockLike:false};};a.htmlParser.text.prototype={type:3,writeHtml:function(m,n){var o=this.value;if(n&&!(o=n.onText(o,this)))return;m.text(o);}};})();(function(){a.htmlParser.cdata=function(l){this.value=l;};a.htmlParser.cdata.prototype={type:3,writeHtml:function(l){l.write(this.value);}};})();a.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false};};(function(){var l={colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1},m=e.extend({table:1,ul:1,ol:1,dl:1},f.table,f.ul,f.ol,f.dl),n=f.$list,o=f.$listItem;a.htmlParser.fragment.fromHtml=function(p,q){var r=new a.htmlParser(),s=[],t=new a.htmlParser.fragment(),u=[],v=[],w=t,x=false,y;function z(E){var F;if(u.length>0)for(var G=0;G<u.length;G++){var H=u[G],I=H.name,J=f[I],K=w.name&&f[w.name];if((!K||K[I])&&(!E||!J||J[E]||!f[E])){if(!F){A();F=1;}H=H.clone();H.parent=w;w=H;u.splice(G,1);G--;}}};function A(){while(v.length)w.add(v.shift());};function B(E,F,G){F=F||w||t;if(q&&!F.type){var H,I;if(E.attributes&&(I=E.attributes._cke_real_element_type))H=I;else H=E.name;if(H&&!(H in f.$body)&&!(H in f.$nonBodyContent)){var J=w;w=F;r.onTagOpen(q,{});F=w;if(G)w=J;}}if(E._.isBlockLike&&E.name!='pre'){var K=E.children.length,L=E.children[K-1],M;if(L&&L.type==3)if(!(M=e.rtrim(L.value)))E.children.length=K-1;else L.value=M;}F.add(E);if(E.returnPoint){w=E.returnPoint;delete E.returnPoint;}};r.onTagOpen=function(E,F,G){var H=new a.htmlParser.element(E,F);if(H.isUnknown&&G)H.isEmpty=true;if(f.$removeEmpty[E]){u.push(H);return;}else if(E=='pre')x=true;else if(E=='br'&&x){w.add(new a.htmlParser.text('\n')); return;}if(E=='br'){v.push(H);return;}var I=w.name,J=I&&(f[I]||(w._.isBlockLike?f.div:f.span));if(J&&!H.isUnknown&&!w.isUnknown&&!J[E]){var K=false,L;if(E in n&&I in n){var M=w.children,N=M[M.length-1];if(!(N&&N.name in o))B(N=new a.htmlParser.element('li'),w);y=w,L=N;}else if(E==I)B(w,w.parent);else{if(m[I]){if(!y)y=w;}else{B(w,w.parent,true);if(!l[I])u.unshift(w);}K=true;}if(L)w=L;else w=w.returnPoint||w.parent;if(K){r.onTagOpen.apply(this,arguments);return;}}z(E);A();H.parent=w;H.returnPoint=y;y=0;if(H.isEmpty)B(H);else w=H;};r.onTagClose=function(E){for(var F=u.length-1;F>=0;F--){if(E==u[F].name){u.splice(F,1);return;}}var G=[],H=[],I=w;while(I.type&&I.name!=E){if(!I._.isBlockLike)H.unshift(I);G.push(I);I=I.parent;}if(I.type){for(F=0;F<G.length;F++){var J=G[F];B(J,J.parent);}w=I;if(w.name=='pre')x=false;if(I._.isBlockLike)A();B(I,I.parent);if(I==w)w=w.parent;u=u.concat(H);}if(E=='body')q=false;};r.onText=function(E){if(!w._.hasInlineStarted&&!x){E=e.ltrim(E);if(E.length===0)return;}A();z();if(q&&(!w.type||w.name=='body')&&e.trim(E))this.onTagOpen(q,{});if(!x)E=E.replace(/[\t\r\n ]{2,}|[\t\r\n]/g,' ');w.add(new a.htmlParser.text(E));};r.onCDATA=function(E){w.add(new a.htmlParser.cdata(E));};r.onComment=function(E){w.add(new a.htmlParser.comment(E));};r.parse(p);A();while(w.type){var C=w.parent,D=w;if(q&&(!C.type||C.name=='body')&&!f.$body[D.name]){w=C;r.onTagOpen(q,{});C=w;}C.add(D);w=C;}return t;};a.htmlParser.fragment.prototype={add:function(p){var s=this;var q=s.children.length,r=q>0&&s.children[q-1]||null;if(r){if(p._.isBlockLike&&r.type==3){r.value=e.rtrim(r.value);if(r.value.length===0){s.children.pop();s.add(p);return;}}r.next=p;}p.previous=r;p.parent=s;s.children.push(p);s._.hasInlineStarted=p.type==3||p.type==1&&!p._.isBlockLike;},writeHtml:function(p,q){var r;this.filterChildren=function(){var s=new a.htmlParser.basicWriter();this.writeChildrenHtml.call(this,s,q,true);var t=s.getHtml();this.children=new a.htmlParser.fragment.fromHtml(t).children;r=1;};!this.name&&q&&q.onFragment(this);this.writeChildrenHtml(p,r?null:q);},writeChildrenHtml:function(p,q){for(var r=0;r<this.children.length;r++)this.children[r].writeHtml(p,q);}};})();a.htmlParser.element=function(l,m){var r=this;r.name=l;r.attributes=m||(m={});r.children=[];var n=m._cke_real_element_type||l,o=f,p=!!(o.$nonBodyContent[n]||o.$block[n]||o.$listItem[n]||o.$tableContent[n]||o.$nonEditable[n]||n=='br'),q=!!o.$empty[l];r.isEmpty=q;r.isUnknown=!o[l];r._={isBlockLike:p,hasInlineStarted:q||!p}; | x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn);if(q.index)k.button._.instances[q.index]=null;}}}if(r.contextMenu)e.removeFunction(r.contextMenu._.functionId);if(r._.filebrowserFn)e.removeFunction(r._.filebrowserFn);r.fire('destroy');a.remove(r);a.fire('instanceDestroyed',null,r);},execCommand:function(l,m){var n=this.getCommand(l),o={name:l,commandData:m,command:n}; | if(r)r.push(t);else A.onText(t);}q=A._.htmlPartsRegex.lastIndex;if(p=o[1]){p=p.toLowerCase();if(r&&f.$cdata[p]){A.onCDATA(r.join(''));r=null;}if(!r){A.onTagClose(p);continue;}}if(r){r.push(o[0]);continue;}if(p=o[3]){p=p.toLowerCase();var u={},v,w=o[4],x=!!(w&&w.charAt(w.length-1)=='/');if(w)while(v=l.exec(w)){var y=v[1].toLowerCase(),z=v[2]||v[3]||v[4]||'';if(!z&&m[y])u[y]=y;else u[y]=z;}A.onTagOpen(p,u,x);if(!r&&f.$cdata[p])r=[];continue;}if(p=o[2])A.onComment(p);}if(n.length>q)A.onText(n.substring(q,n.length));}};})();a.htmlParser.comment=function(l){this.value=l;this._={isBlockLike:false};};a.htmlParser.comment.prototype={type:8,writeHtml:function(l,m){var n=this.value;if(m){if(!(n=m.onComment(n,this)))return;if(typeof n!='string'){n.parent=this.parent;n.writeHtml(l,m);return;}}l.comment(n);}};(function(){var l=/[\t\r\n ]{2,}|[\t\r\n]/g;a.htmlParser.text=function(m){this.value=m;this._={isBlockLike:false};};a.htmlParser.text.prototype={type:3,writeHtml:function(m,n){var o=this.value;if(n&&!(o=n.onText(o,this)))return;m.text(o);}};})();(function(){a.htmlParser.cdata=function(l){this.value=l;};a.htmlParser.cdata.prototype={type:3,writeHtml:function(l){l.write(this.value);}};})();a.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false};};(function(){var l={colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1},m=e.extend({table:1,ul:1,ol:1,dl:1},f.table,f.ul,f.ol,f.dl),n=f.$list,o=f.$listItem;a.htmlParser.fragment.fromHtml=function(p,q){var r=new a.htmlParser(),s=[],t=new a.htmlParser.fragment(),u=[],v=[],w=t,x=false,y;function z(E){var F;if(u.length>0)for(var G=0;G<u.length;G++){var H=u[G],I=H.name,J=f[I],K=w.name&&f[w.name];if((!K||K[I])&&(!E||!J||J[E]||!f[E])){if(!F){A();F=1;}H=H.clone();H.parent=w;w=H;u.splice(G,1);G--;}}};function A(){while(v.length)w.add(v.shift());};function B(E,F,G){F=F||w||t;if(q&&!F.type){var H,I;if(E.attributes&&(I=E.attributes._cke_real_element_type))H=I;else H=E.name;if(H&&!(H in f.$body)&&!(H in f.$nonBodyContent)){var J=w;w=F;r.onTagOpen(q,{});F=w;if(G)w=J;}}if(E._.isBlockLike&&E.name!='pre'){var K=E.children.length,L=E.children[K-1],M;if(L&&L.type==3)if(!(M=e.rtrim(L.value)))E.children.length=K-1;else L.value=M;}F.add(E);if(E.returnPoint){w=E.returnPoint;delete E.returnPoint;}};r.onTagOpen=function(E,F,G){var H=new a.htmlParser.element(E,F);if(H.isUnknown&&G)H.isEmpty=true;if(f.$removeEmpty[E]){u.push(H);return;}else if(E=='pre')x=true;else if(E=='br'&&x){w.add(new a.htmlParser.text('\n'));return;}if(E=='br'){v.push(H);return;}var I=w.name,J=I&&(f[I]||(w._.isBlockLike?f.div:f.span));if(J&&!H.isUnknown&&!w.isUnknown&&!J[E]){var K=false,L;if(E in n&&I in n){var M=w.children,N=M[M.length-1];if(!(N&&N.name in o))B(N=new a.htmlParser.element('li'),w);y=w,L=N;}else if(E==I)B(w,w.parent);else{if(m[I]){if(!y)y=w;}else{B(w,w.parent,true);if(!l[I])u.unshift(w);}K=true;}if(L)w=L;else w=w.returnPoint||w.parent;if(K){r.onTagOpen.apply(this,arguments);return;}}z(E);A();H.parent=w;H.returnPoint=y;y=0;if(H.isEmpty)B(H);else w=H;};r.onTagClose=function(E){for(var F=u.length-1;F>=0;F--){if(E==u[F].name){u.splice(F,1);return;}}var G=[],H=[],I=w;while(I.type&&I.name!=E){if(!I._.isBlockLike)H.unshift(I);G.push(I);I=I.parent;}if(I.type){for(F=0;F<G.length;F++){var J=G[F];B(J,J.parent);}w=I;if(w.name=='pre')x=false;if(I._.isBlockLike)A();B(I,I.parent);if(I==w)w=w.parent;u=u.concat(H);}if(E=='body')q=false;};r.onText=function(E){if(!w._.hasInlineStarted&&!x){E=e.ltrim(E);if(E.length===0)return;}A();z();if(q&&(!w.type||w.name=='body')&&e.trim(E))this.onTagOpen(q,{});if(!x)E=E.replace(/[\t\r\n ]{2,}|[\t\r\n]/g,' ');w.add(new a.htmlParser.text(E));};r.onCDATA=function(E){w.add(new a.htmlParser.cdata(E));};r.onComment=function(E){w.add(new a.htmlParser.comment(E));};r.parse(p);A();while(w.type){var C=w.parent,D=w;if(q&&(!C.type||C.name=='body')&&!f.$body[D.name]){w=C;r.onTagOpen(q,{});C=w;}C.add(D);w=C;}return t;};a.htmlParser.fragment.prototype={add:function(p){var s=this;var q=s.children.length,r=q>0&&s.children[q-1]||null;if(r){if(p._.isBlockLike&&r.type==3){r.value=e.rtrim(r.value);if(r.value.length===0){s.children.pop();s.add(p);return;}}r.next=p;}p.previous=r;p.parent=s;s.children.push(p);s._.hasInlineStarted=p.type==3||p.type==1&&!p._.isBlockLike;},writeHtml:function(p,q){var r;this.filterChildren=function(){var s=new a.htmlParser.basicWriter();this.writeChildrenHtml.call(this,s,q,true);var t=s.getHtml();this.children=new a.htmlParser.fragment.fromHtml(t).children;r=1;};!this.name&&q&&q.onFragment(this);this.writeChildrenHtml(p,r?null:q);},writeChildrenHtml:function(p,q){for(var r=0;r<this.children.length;r++)this.children[r].writeHtml(p,q);}};})();a.htmlParser.element=function(l,m){var r=this;r.name=l;r.attributes=m||(m={});r.children=[];var n=m._cke_real_element_type||l,o=f,p=!!(o.$nonBodyContent[n]||o.$block[n]||o.$listItem[n]||o.$tableContent[n]||o.$nonEditable[n]||n=='br'),q=!!o.$empty[l];r.isEmpty=q;r.isUnknown=!o[l];r._={isBlockLike:p,hasInlineStarted:q||!p}; |
};(function(){var l=function(m,n){m=m[0];n=n[0];return m<n?-1:m>n?1:0;};a.htmlParser.element.prototype={type:1,add:a.htmlParser.fragment.prototype.add,clone:function(){return new a.htmlParser.element(this.name,this.attributes);},writeHtml:function(m,n){var o=this.attributes,p=this,q=p.name,r,s,t,u;p.filterChildren=function(){if(!u){var z=new a.htmlParser.basicWriter();a.htmlParser.fragment.prototype.writeChildrenHtml.call(p,z,n);p.children=new a.htmlParser.fragment.fromHtml(z.getHtml()).children;u=1;}};if(n){for(;;){if(!(q=n.onElementName(q)))return;p.name=q;if(!(p=n.onElement(p)))return;p.parent=this.parent;if(p.name==q)break;if(p.type!=1){p.writeHtml(m,n);return;}q=p.name;if(!q){this.writeChildrenHtml.call(p,m,u?null:n);return;}}o=p.attributes;}m.openTag(q,o);var v=[];for(var w=0;w<2;w++)for(r in o){s=r;t=o[r];if(w==1)v.push([r,t]);else if(n){for(;;){if(!(s=n.onAttributeName(r))){delete o[r];break;}else if(s!=r){delete o[r];r=s;continue;}else break;}if(s)if((t=n.onAttribute(p,s,t))===false)delete o[s];else o[s]=t;}}if(m.sortAttributes)v.sort(l);var x=v.length;for(w=0;w<x;w++){var y=v[w];m.attribute(y[0],y[1]);}m.openTagClose(q,p.isEmpty);if(!p.isEmpty){this.writeChildrenHtml.call(p,m,u?null:n);m.closeTag(q);}},writeChildrenHtml:function(m,n){a.htmlParser.fragment.prototype.writeChildrenHtml.apply(this,arguments);}};})();(function(){a.htmlParser.filter=e.createClass({$:function(q){this._={elementNames:[],attributeNames:[],elements:{$length:0},attributes:{$length:0}};if(q)this.addRules(q,10);},proto:{addRules:function(q,r){var s=this;if(typeof r!='number')r=10;m(s._.elementNames,q.elementNames,r);m(s._.attributeNames,q.attributeNames,r);n(s._.elements,q.elements,r);n(s._.attributes,q.attributes,r);s._.text=o(s._.text,q.text,r)||s._.text;s._.comment=o(s._.comment,q.comment,r)||s._.comment;s._.root=o(s._.root,q.root,r)||s._.root;},onElementName:function(q){return l(q,this._.elementNames);},onAttributeName:function(q){return l(q,this._.attributeNames);},onText:function(q){var r=this._.text;return r?r.filter(q):q;},onComment:function(q,r){var s=this._.comment;return s?s.filter(q,r):q;},onFragment:function(q){var r=this._.root;return r?r.filter(q):q;},onElement:function(q){var v=this;var r=[v._.elements['^'],v._.elements[q.name],v._.elements.$],s,t;for(var u=0;u<3;u++){s=r[u];if(s){t=s.filter(q,v);if(t===false)return null;if(t&&t!=q)return v.onNode(t);if(q.parent&&!q.name)break;}}return q;},onNode:function(q){var r=q.type;return r==1?this.onElement(q):r==3?new a.htmlParser.text(this.onText(q.value)):r==8?new a.htmlParser.comment(this.onComment(q.value)):null; | x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn);if(q.index)k.button._.instances[q.index]=null;}}}if(r.contextMenu)e.removeFunction(r.contextMenu._.functionId);if(r._.filebrowserFn)e.removeFunction(r._.filebrowserFn);r.fire('destroy');a.remove(r);a.fire('instanceDestroyed',null,r);},execCommand:function(l,m){var n=this.getCommand(l),o={name:l,commandData:m,command:n}; | };(function(){var l=function(m,n){m=m[0];n=n[0];return m<n?-1:m>n?1:0;};a.htmlParser.element.prototype={type:1,add:a.htmlParser.fragment.prototype.add,clone:function(){return new a.htmlParser.element(this.name,this.attributes);},writeHtml:function(m,n){var o=this.attributes,p=this,q=p.name,r,s,t,u;p.filterChildren=function(){if(!u){var z=new a.htmlParser.basicWriter();a.htmlParser.fragment.prototype.writeChildrenHtml.call(p,z,n);p.children=new a.htmlParser.fragment.fromHtml(z.getHtml()).children;u=1;}};if(n){for(;;){if(!(q=n.onElementName(q)))return;p.name=q;if(!(p=n.onElement(p)))return;p.parent=this.parent;if(p.name==q)break;if(p.type!=1){p.writeHtml(m,n);return;}q=p.name;if(!q){this.writeChildrenHtml.call(p,m,u?null:n);return;}}o=p.attributes;}m.openTag(q,o);var v=[];for(var w=0;w<2;w++)for(r in o){s=r;t=o[r];if(w==1)v.push([r,t]);else if(n){for(;;){if(!(s=n.onAttributeName(r))){delete o[r];break;}else if(s!=r){delete o[r];r=s;continue;}else break;}if(s)if((t=n.onAttribute(p,s,t))===false)delete o[s];else o[s]=t;}}if(m.sortAttributes)v.sort(l);var x=v.length;for(w=0;w<x;w++){var y=v[w];m.attribute(y[0],y[1]);}m.openTagClose(q,p.isEmpty);if(!p.isEmpty){this.writeChildrenHtml.call(p,m,u?null:n);m.closeTag(q);}},writeChildrenHtml:function(m,n){a.htmlParser.fragment.prototype.writeChildrenHtml.apply(this,arguments);}};})();(function(){a.htmlParser.filter=e.createClass({$:function(q){this._={elementNames:[],attributeNames:[],elements:{$length:0},attributes:{$length:0}};if(q)this.addRules(q,10);},proto:{addRules:function(q,r){var s=this;if(typeof r!='number')r=10;m(s._.elementNames,q.elementNames,r);m(s._.attributeNames,q.attributeNames,r);n(s._.elements,q.elements,r);n(s._.attributes,q.attributes,r);s._.text=o(s._.text,q.text,r)||s._.text;s._.comment=o(s._.comment,q.comment,r)||s._.comment;s._.root=o(s._.root,q.root,r)||s._.root;},onElementName:function(q){return l(q,this._.elementNames);},onAttributeName:function(q){return l(q,this._.attributeNames);},onText:function(q){var r=this._.text;return r?r.filter(q):q;},onComment:function(q,r){var s=this._.comment;return s?s.filter(q,r):q;},onFragment:function(q){var r=this._.root;return r?r.filter(q):q;},onElement:function(q){var v=this;var r=[v._.elements['^'],v._.elements[q.name],v._.elements.$],s,t;for(var u=0;u<3;u++){s=r[u];if(s){t=s.filter(q,v);if(t===false)return null;if(t&&t!=q)return v.onNode(t);if(q.parent&&!q.name)break;}}return q;},onNode:function(q){var r=q.type;return r==1?this.onElement(q):r==3?new a.htmlParser.text(this.onText(q.value)):r==8?new a.htmlParser.comment(this.onComment(q.value)):null; |
};(function(){var l=function(m,n){m=m[0];n=n[0];return m<n?-1:m>n?1:0;};a.htmlParser.element.prototype={type:1,add:a.htmlParser.fragment.prototype.add,clone:function(){return new a.htmlParser.element(this.name,this.attributes);},writeHtml:function(m,n){var o=this.attributes,p=this,q=p.name,r,s,t,u;p.filterChildren=function(){if(!u){var z=new a.htmlParser.basicWriter();a.htmlParser.fragment.prototype.writeChildrenHtml.call(p,z,n);p.children=new a.htmlParser.fragment.fromHtml(z.getHtml()).children;u=1;}};if(n){for(;;){if(!(q=n.onElementName(q)))return;p.name=q;if(!(p=n.onElement(p)))return;p.parent=this.parent;if(p.name==q)break;if(p.type!=1){p.writeHtml(m,n);return;}q=p.name;if(!q){this.writeChildrenHtml.call(p,m,u?null:n);return;}}o=p.attributes;}m.openTag(q,o);var v=[];for(var w=0;w<2;w++)for(r in o){s=r;t=o[r];if(w==1)v.push([r,t]);else if(n){for(;;){if(!(s=n.onAttributeName(r))){delete o[r];break;}else if(s!=r){delete o[r];r=s;continue;}else break;}if(s)if((t=n.onAttribute(p,s,t))===false)delete o[s];else o[s]=t;}}if(m.sortAttributes)v.sort(l);var x=v.length;for(w=0;w<x;w++){var y=v[w];m.attribute(y[0],y[1]);}m.openTagClose(q,p.isEmpty);if(!p.isEmpty){this.writeChildrenHtml.call(p,m,u?null:n);m.closeTag(q);}},writeChildrenHtml:function(m,n){a.htmlParser.fragment.prototype.writeChildrenHtml.apply(this,arguments);}};})();(function(){a.htmlParser.filter=e.createClass({$:function(q){this._={elementNames:[],attributeNames:[],elements:{$length:0},attributes:{$length:0}};if(q)this.addRules(q,10);},proto:{addRules:function(q,r){var s=this;if(typeof r!='number')r=10;m(s._.elementNames,q.elementNames,r);m(s._.attributeNames,q.attributeNames,r);n(s._.elements,q.elements,r);n(s._.attributes,q.attributes,r);s._.text=o(s._.text,q.text,r)||s._.text;s._.comment=o(s._.comment,q.comment,r)||s._.comment;s._.root=o(s._.root,q.root,r)||s._.root;},onElementName:function(q){return l(q,this._.elementNames);},onAttributeName:function(q){return l(q,this._.attributeNames);},onText:function(q){var r=this._.text;return r?r.filter(q):q;},onComment:function(q,r){var s=this._.comment;return s?s.filter(q,r):q;},onFragment:function(q){var r=this._.root;return r?r.filter(q):q;},onElement:function(q){var v=this;var r=[v._.elements['^'],v._.elements[q.name],v._.elements.$],s,t;for(var u=0;u<3;u++){s=r[u];if(s){t=s.filter(q,v);if(t===false)return null;if(t&&t!=q)return v.onNode(t);if(q.parent&&!q.name)break;}}return q;},onNode:function(q){var r=q.type;return r==1?this.onElement(q):r==3?new a.htmlParser.text(this.onText(q.value)):r==8?new a.htmlParser.comment(this.onComment(q.value)):null; },onAttribute:function(q,r,s){var t=this._.attributes[r];if(t){var u=t.filter(s,q,this);if(u===false)return false;if(typeof u!='undefined')return u;}return s;}}});function l(q,r){for(var s=0;q&&s<r.length;s++){var t=r[s];q=q.replace(t[0],t[1]);}return q;};function m(q,r,s){if(typeof r=='function')r=[r];var t,u,v=q.length,w=r&&r.length;if(w){for(t=0;t<v&&q[t].pri<s;t++){}for(u=w-1;u>=0;u--){var x=r[u];if(x){x.pri=s;q.splice(t,0,x);}}}};function n(q,r,s){if(r)for(var t in r){var u=q[t];q[t]=o(u,r[t],s);if(!u)q.$length++;}};function o(q,r,s){if(r){r.pri=s;if(q){if(!q.splice){if(q.pri>s)q=[r,q];else q=[q,r];q.filter=p;}else m(q,r,s);return q;}else{r.filter=r;return r;}}};function p(q){var r=typeof q=='object';for(var s=0;s<this.length;s++){var t=this[s],u=t.apply(window,arguments);if(typeof u!='undefined'){if(u===false)return false;if(r&&u!=q)return u;}}return null;};})();a.htmlParser.basicWriter=e.createClass({$:function(){this._={output:[]};},proto:{openTag:function(l,m){this._.output.push('<',l);},openTagClose:function(l,m){if(m)this._.output.push(' />');else this._.output.push('>');},attribute:function(l,m){if(typeof m=='string')m=e.htmlEncodeAttr(m);this._.output.push(' ',l,'="',m,'"');},closeTag:function(l){this._.output.push('</',l,'>');},text:function(l){this._.output.push(l);},comment:function(l){this._.output.push('<!--',l,'-->');},write:function(l){this._.output.push(l);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(l){var m=this._.output.join('');if(l)this.reset();return m;}}});delete a.loadFullCore;a.instances={};a.document=new g(document);a.add=function(l){a.instances[l.name]=l;l.on('focus',function(){if(a.currentInstance!=l){a.currentInstance=l;a.fire('currentInstance');}});l.on('blur',function(){if(a.currentInstance==l){a.currentInstance=null;a.fire('currentInstance');}});};a.remove=function(l){delete a.instances[l.name];};a.TRISTATE_ON=1;a.TRISTATE_OFF=2;a.TRISTATE_DISABLED=0;d.comment=e.createClass({base:d.node,$:function(l,m){if(typeof l=='string')l=(m?m.$:document).createComment(l);this.base(l);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var l={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1},m={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},n=function(o){var p=o.getChildren();for(var q=0,r=p.count();q<r;q++){var s=p.getItem(q);if(s.type==1&&f.$block[s.getName()])return true;}return false;};d.elementPath=function(o){var u=this; | x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn);if(q.index)k.button._.instances[q.index]=null;}}}if(r.contextMenu)e.removeFunction(r.contextMenu._.functionId);if(r._.filebrowserFn)e.removeFunction(r._.filebrowserFn);r.fire('destroy');a.remove(r);a.fire('instanceDestroyed',null,r);},execCommand:function(l,m){var n=this.getCommand(l),o={name:l,commandData:m,command:n}; | };(function(){var l=function(m,n){m=m[0];n=n[0];return m<n?-1:m>n?1:0;};a.htmlParser.element.prototype={type:1,add:a.htmlParser.fragment.prototype.add,clone:function(){return new a.htmlParser.element(this.name,this.attributes);},writeHtml:function(m,n){var o=this.attributes,p=this,q=p.name,r,s,t,u;p.filterChildren=function(){if(!u){var z=new a.htmlParser.basicWriter();a.htmlParser.fragment.prototype.writeChildrenHtml.call(p,z,n);p.children=new a.htmlParser.fragment.fromHtml(z.getHtml()).children;u=1;}};if(n){for(;;){if(!(q=n.onElementName(q)))return;p.name=q;if(!(p=n.onElement(p)))return;p.parent=this.parent;if(p.name==q)break;if(p.type!=1){p.writeHtml(m,n);return;}q=p.name;if(!q){this.writeChildrenHtml.call(p,m,u?null:n);return;}}o=p.attributes;}m.openTag(q,o);var v=[];for(var w=0;w<2;w++)for(r in o){s=r;t=o[r];if(w==1)v.push([r,t]);else if(n){for(;;){if(!(s=n.onAttributeName(r))){delete o[r];break;}else if(s!=r){delete o[r];r=s;continue;}else break;}if(s)if((t=n.onAttribute(p,s,t))===false)delete o[s];else o[s]=t;}}if(m.sortAttributes)v.sort(l);var x=v.length;for(w=0;w<x;w++){var y=v[w];m.attribute(y[0],y[1]);}m.openTagClose(q,p.isEmpty);if(!p.isEmpty){this.writeChildrenHtml.call(p,m,u?null:n);m.closeTag(q);}},writeChildrenHtml:function(m,n){a.htmlParser.fragment.prototype.writeChildrenHtml.apply(this,arguments);}};})();(function(){a.htmlParser.filter=e.createClass({$:function(q){this._={elementNames:[],attributeNames:[],elements:{$length:0},attributes:{$length:0}};if(q)this.addRules(q,10);},proto:{addRules:function(q,r){var s=this;if(typeof r!='number')r=10;m(s._.elementNames,q.elementNames,r);m(s._.attributeNames,q.attributeNames,r);n(s._.elements,q.elements,r);n(s._.attributes,q.attributes,r);s._.text=o(s._.text,q.text,r)||s._.text;s._.comment=o(s._.comment,q.comment,r)||s._.comment;s._.root=o(s._.root,q.root,r)||s._.root;},onElementName:function(q){return l(q,this._.elementNames);},onAttributeName:function(q){return l(q,this._.attributeNames);},onText:function(q){var r=this._.text;return r?r.filter(q):q;},onComment:function(q,r){var s=this._.comment;return s?s.filter(q,r):q;},onFragment:function(q){var r=this._.root;return r?r.filter(q):q;},onElement:function(q){var v=this;var r=[v._.elements['^'],v._.elements[q.name],v._.elements.$],s,t;for(var u=0;u<3;u++){s=r[u];if(s){t=s.filter(q,v);if(t===false)return null;if(t&&t!=q)return v.onNode(t);if(q.parent&&!q.name)break;}}return q;},onNode:function(q){var r=q.type;return r==1?this.onElement(q):r==3?new a.htmlParser.text(this.onText(q.value)):r==8?new a.htmlParser.comment(this.onComment(q.value)):null;},onAttribute:function(q,r,s){var t=this._.attributes[r];if(t){var u=t.filter(s,q,this);if(u===false)return false;if(typeof u!='undefined')return u;}return s;}}});function l(q,r){for(var s=0;q&&s<r.length;s++){var t=r[s];q=q.replace(t[0],t[1]);}return q;};function m(q,r,s){if(typeof r=='function')r=[r];var t,u,v=q.length,w=r&&r.length;if(w){for(t=0;t<v&&q[t].pri<s;t++){}for(u=w-1;u>=0;u--){var x=r[u];if(x){x.pri=s;q.splice(t,0,x);}}}};function n(q,r,s){if(r)for(var t in r){var u=q[t];q[t]=o(u,r[t],s);if(!u)q.$length++;}};function o(q,r,s){if(r){r.pri=s;if(q){if(!q.splice){if(q.pri>s)q=[r,q];else q=[q,r];q.filter=p;}else m(q,r,s);return q;}else{r.filter=r;return r;}}};function p(q){var r=typeof q=='object';for(var s=0;s<this.length;s++){var t=this[s],u=t.apply(window,arguments);if(typeof u!='undefined'){if(u===false)return false;if(r&&u!=q)return u;}}return null;};})();a.htmlParser.basicWriter=e.createClass({$:function(){this._={output:[]};},proto:{openTag:function(l,m){this._.output.push('<',l);},openTagClose:function(l,m){if(m)this._.output.push(' />');else this._.output.push('>');},attribute:function(l,m){if(typeof m=='string')m=e.htmlEncodeAttr(m);this._.output.push(' ',l,'="',m,'"');},closeTag:function(l){this._.output.push('</',l,'>');},text:function(l){this._.output.push(l);},comment:function(l){this._.output.push('<!--',l,'-->');},write:function(l){this._.output.push(l);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(l){var m=this._.output.join('');if(l)this.reset();return m;}}});delete a.loadFullCore;a.instances={};a.document=new g(document);a.add=function(l){a.instances[l.name]=l;l.on('focus',function(){if(a.currentInstance!=l){a.currentInstance=l;a.fire('currentInstance');}});l.on('blur',function(){if(a.currentInstance==l){a.currentInstance=null;a.fire('currentInstance');}});};a.remove=function(l){delete a.instances[l.name];};a.TRISTATE_ON=1;a.TRISTATE_OFF=2;a.TRISTATE_DISABLED=0;d.comment=e.createClass({base:d.node,$:function(l,m){if(typeof l=='string')l=(m?m.$:document).createComment(l);this.base(l);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var l={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1},m={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},n=function(o){var p=o.getChildren();for(var q=0,r=p.count();q<r;q++){var s=p.getItem(q);if(s.type==1&&f.$block[s.getName()])return true;}return false;};d.elementPath=function(o){var u=this; |
},onAttribute:function(q,r,s){var t=this._.attributes[r];if(t){var u=t.filter(s,q,this);if(u===false)return false;if(typeof u!='undefined')return u;}return s;}}});function l(q,r){for(var s=0;q&&s<r.length;s++){var t=r[s];q=q.replace(t[0],t[1]);}return q;};function m(q,r,s){if(typeof r=='function')r=[r];var t,u,v=q.length,w=r&&r.length;if(w){for(t=0;t<v&&q[t].pri<s;t++){}for(u=w-1;u>=0;u--){var x=r[u];if(x){x.pri=s;q.splice(t,0,x);}}}};function n(q,r,s){if(r)for(var t in r){var u=q[t];q[t]=o(u,r[t],s);if(!u)q.$length++;}};function o(q,r,s){if(r){r.pri=s;if(q){if(!q.splice){if(q.pri>s)q=[r,q];else q=[q,r];q.filter=p;}else m(q,r,s);return q;}else{r.filter=r;return r;}}};function p(q){var r=typeof q=='object';for(var s=0;s<this.length;s++){var t=this[s],u=t.apply(window,arguments);if(typeof u!='undefined'){if(u===false)return false;if(r&&u!=q)return u;}}return null;};})();a.htmlParser.basicWriter=e.createClass({$:function(){this._={output:[]};},proto:{openTag:function(l,m){this._.output.push('<',l);},openTagClose:function(l,m){if(m)this._.output.push(' />');else this._.output.push('>');},attribute:function(l,m){if(typeof m=='string')m=e.htmlEncodeAttr(m);this._.output.push(' ',l,'="',m,'"');},closeTag:function(l){this._.output.push('</',l,'>');},text:function(l){this._.output.push(l);},comment:function(l){this._.output.push('<!--',l,'-->');},write:function(l){this._.output.push(l);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(l){var m=this._.output.join('');if(l)this.reset();return m;}}});delete a.loadFullCore;a.instances={};a.document=new g(document);a.add=function(l){a.instances[l.name]=l;l.on('focus',function(){if(a.currentInstance!=l){a.currentInstance=l;a.fire('currentInstance');}});l.on('blur',function(){if(a.currentInstance==l){a.currentInstance=null;a.fire('currentInstance');}});};a.remove=function(l){delete a.instances[l.name];};a.TRISTATE_ON=1;a.TRISTATE_OFF=2;a.TRISTATE_DISABLED=0;d.comment=e.createClass({base:d.node,$:function(l,m){if(typeof l=='string')l=(m?m.$:document).createComment(l);this.base(l);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var l={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1},m={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},n=function(o){var p=o.getChildren();for(var q=0,r=p.count();q<r;q++){var s=p.getItem(q);if(s.type==1&&f.$block[s.getName()])return true;}return false;};d.elementPath=function(o){var u=this; | if(n&&n.state!=0)if(this.fire('beforeCommandExec',o)!==true){o.returnValue=n.exec(o.commandData);if(!n.async&&this.fire('afterCommandExec',o)!==true)return o.returnValue;}return false;},getCommand:function(l){return this._.commands[l];},getData:function(){var n=this;n.fire('beforeGetData');var l=n._.data;if(typeof l!='string'){var m=n.element;if(m&&n.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();else l='';}l={dataValue:l};n.fire('getData',l);return l.dataValue;},getSnapshot:function(){var l=this.fire('getSnapshot');if(typeof l!='string'){var m=this.element;if(m&&this.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();}return l;},loadSnapshot:function(l){this.fire('loadSnapshot',l);},setData:function(l,m){if(m)this.on('dataReady',function(o){o.removeListener();m.call(o.editor);});var n={dataValue:l};this.fire('setData',n);this._.data=n.dataValue;this.fire('afterSetData',n);},insertHtml:function(l){this.fire('insertHtml',l);},insertElement:function(l){this.fire('insertElement',l);},checkDirty:function(){return this.mayBeDirty&&this._.previousValue!==this.getSnapshot();},resetDirty:function(){if(this.mayBeDirty)this._.previousValue=this.getSnapshot();},updateElement:function(){var n=this;var l=n.element;if(l&&n.elementMode==1){var m=n.getData();if(n.config.htmlEncodeOutput)m=e.htmlEncode(m);if(l.is('textarea'))l.setValue(m);else l.setHtml(m);}}});a.on('loaded',function(){var l=a.editor._pending;if(l){delete a.editor._pending;for(var m=0;m<l.length;m++)l[m]._init();}});a.htmlParser=function(){this._={htmlPartsRegex:new RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^\"'>]+)|(?:\"[^\"]*\")|(?:'[^']*'))*)\\/?>))",'g')};};(function(){var l=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,m={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};a.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(n){var A=this;var o,p,q=0,r;while(o=A._.htmlPartsRegex.exec(n)){var s=o.index;if(s>q){var t=n.substring(q,s);if(r)r.push(t);else A.onText(t);}q=A._.htmlPartsRegex.lastIndex;if(p=o[1]){p=p.toLowerCase();if(r&&f.$cdata[p]){A.onCDATA(r.join(''));r=null;}if(!r){A.onTagClose(p);continue;}}if(r){r.push(o[0]);continue;}if(p=o[3]){p=p.toLowerCase();if(/="/.test(p))continue;var u={},v,w=o[4],x=!!(w&&w.charAt(w.length-1)=='/');if(w)while(v=l.exec(w)){var y=v[1].toLowerCase(),z=v[2]||v[3]||v[4]||''; | },onAttribute:function(q,r,s){var t=this._.attributes[r];if(t){var u=t.filter(s,q,this);if(u===false)return false;if(typeof u!='undefined')return u;}return s;}}});function l(q,r){for(var s=0;q&&s<r.length;s++){var t=r[s];q=q.replace(t[0],t[1]);}return q;};function m(q,r,s){if(typeof r=='function')r=[r];var t,u,v=q.length,w=r&&r.length;if(w){for(t=0;t<v&&q[t].pri<s;t++){}for(u=w-1;u>=0;u--){var x=r[u];if(x){x.pri=s;q.splice(t,0,x);}}}};function n(q,r,s){if(r)for(var t in r){var u=q[t];q[t]=o(u,r[t],s);if(!u)q.$length++;}};function o(q,r,s){if(r){r.pri=s;if(q){if(!q.splice){if(q.pri>s)q=[r,q];else q=[q,r];q.filter=p;}else m(q,r,s);return q;}else{r.filter=r;return r;}}};function p(q){var r=typeof q=='object';for(var s=0;s<this.length;s++){var t=this[s],u=t.apply(window,arguments);if(typeof u!='undefined'){if(u===false)return false;if(r&&u!=q)return u;}}return null;};})();a.htmlParser.basicWriter=e.createClass({$:function(){this._={output:[]};},proto:{openTag:function(l,m){this._.output.push('<',l);},openTagClose:function(l,m){if(m)this._.output.push(' />');else this._.output.push('>');},attribute:function(l,m){if(typeof m=='string')m=e.htmlEncodeAttr(m);this._.output.push(' ',l,'="',m,'"');},closeTag:function(l){this._.output.push('</',l,'>');},text:function(l){this._.output.push(l);},comment:function(l){this._.output.push('<!--',l,'-->');},write:function(l){this._.output.push(l);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(l){var m=this._.output.join('');if(l)this.reset();return m;}}});delete a.loadFullCore;a.instances={};a.document=new g(document);a.add=function(l){a.instances[l.name]=l;l.on('focus',function(){if(a.currentInstance!=l){a.currentInstance=l;a.fire('currentInstance');}});l.on('blur',function(){if(a.currentInstance==l){a.currentInstance=null;a.fire('currentInstance');}});};a.remove=function(l){delete a.instances[l.name];};a.TRISTATE_ON=1;a.TRISTATE_OFF=2;a.TRISTATE_DISABLED=0;d.comment=e.createClass({base:d.node,$:function(l,m){if(typeof l=='string')l=(m?m.$:document).createComment(l);this.base(l);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var l={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1},m={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},n=function(o){var p=o.getChildren();for(var q=0,r=p.count();q<r;q++){var s=p.getItem(q);if(s.type==1&&f.$block[s.getName()])return true;}return false;};d.elementPath=function(o){var u=this; |
},onAttribute:function(q,r,s){var t=this._.attributes[r];if(t){var u=t.filter(s,q,this);if(u===false)return false;if(typeof u!='undefined')return u;}return s;}}});function l(q,r){for(var s=0;q&&s<r.length;s++){var t=r[s];q=q.replace(t[0],t[1]);}return q;};function m(q,r,s){if(typeof r=='function')r=[r];var t,u,v=q.length,w=r&&r.length;if(w){for(t=0;t<v&&q[t].pri<s;t++){}for(u=w-1;u>=0;u--){var x=r[u];if(x){x.pri=s;q.splice(t,0,x);}}}};function n(q,r,s){if(r)for(var t in r){var u=q[t];q[t]=o(u,r[t],s);if(!u)q.$length++;}};function o(q,r,s){if(r){r.pri=s;if(q){if(!q.splice){if(q.pri>s)q=[r,q];else q=[q,r];q.filter=p;}else m(q,r,s);return q;}else{r.filter=r;return r;}}};function p(q){var r=typeof q=='object';for(var s=0;s<this.length;s++){var t=this[s],u=t.apply(window,arguments);if(typeof u!='undefined'){if(u===false)return false;if(r&&u!=q)return u;}}return null;};})();a.htmlParser.basicWriter=e.createClass({$:function(){this._={output:[]};},proto:{openTag:function(l,m){this._.output.push('<',l);},openTagClose:function(l,m){if(m)this._.output.push(' />');else this._.output.push('>');},attribute:function(l,m){if(typeof m=='string')m=e.htmlEncodeAttr(m);this._.output.push(' ',l,'="',m,'"');},closeTag:function(l){this._.output.push('</',l,'>');},text:function(l){this._.output.push(l);},comment:function(l){this._.output.push('<!--',l,'-->');},write:function(l){this._.output.push(l);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(l){var m=this._.output.join('');if(l)this.reset();return m;}}});delete a.loadFullCore;a.instances={};a.document=new g(document);a.add=function(l){a.instances[l.name]=l;l.on('focus',function(){if(a.currentInstance!=l){a.currentInstance=l;a.fire('currentInstance');}});l.on('blur',function(){if(a.currentInstance==l){a.currentInstance=null;a.fire('currentInstance');}});};a.remove=function(l){delete a.instances[l.name];};a.TRISTATE_ON=1;a.TRISTATE_OFF=2;a.TRISTATE_DISABLED=0;d.comment=e.createClass({base:d.node,$:function(l,m){if(typeof l=='string')l=(m?m.$:document).createComment(l);this.base(l);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var l={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1},m={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},n=function(o){var p=o.getChildren();for(var q=0,r=p.count();q<r;q++){var s=p.getItem(q);if(s.type==1&&f.$block[s.getName()])return true;}return false;};d.elementPath=function(o){var u=this; var p=null,q=null,r=[],s=o;while(s){if(s.type==1){if(!u.lastElement)u.lastElement=s;var t=s.getName();if(c&&s.$.scopeName!='HTML')t=s.$.scopeName.toLowerCase()+':'+t;if(!q){if(!p&&l[t])p=s;if(m[t])if(!p&&t=='div'&&!n(s))p=s;else q=s;}r.push(s);if(t=='body')break;}s=s.getParent();}u.block=p;u.blockLimit=q;u.elements=r;};})();d.elementPath.prototype={compare:function(l){var m=this.elements,n=l&&l.elements;if(!n||m.length!=n.length)return false;for(var o=0;o<m.length;o++){if(!m[o].equals(n[o]))return false;}return true;}};d.text=function(l,m){if(typeof l=='string')l=(m?m.$:document).createTextNode(l);this.$=l;};d.text.prototype=new d.node();e.extend(d.text.prototype,{type:3,getLength:function(){return this.$.nodeValue.length;},getText:function(){return this.$.nodeValue;},split:function(l){var q=this;if(c&&l==q.getLength()){var m=q.getDocument().createText('');m.insertAfter(q);return m;}var n=q.getDocument(),o=new d.text(q.$.splitText(l),n);if(b.ie8){var p=new d.text('',n);p.insertAfter(o);p.remove();}return o;},substring:function(l,m){if(typeof m!='number')return this.$.nodeValue.substr(l);else return this.$.nodeValue.substring(l,m);}});d.documentFragment=function(l){l=l||a.document;this.$=l.$.createDocumentFragment();};e.extend(d.documentFragment.prototype,h.prototype,{type:11,insertAfterNode:function(l){l=l.$;l.parentNode.insertBefore(this.$,l.nextSibling);}},true,{append:1,appendBogus:1,getFirst:1,getLast:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1});(function(){function l(t,u){if(this._.end)return null;var v,w=this.range,x,y=this.guard,z=this.type,A=t?'getPreviousSourceNode':'getNextSourceNode';if(!this._.start){this._.start=1;w.trim();if(w.collapsed){this.end();return null;}}if(!t&&!this._.guardLTR){var B=w.endContainer,C=B.getChild(w.endOffset);this._.guardLTR=function(G,H){return(!H||!B.equals(G))&&(!C||!G.equals(C))&&(G.type!=1||!H||G.getName()!='body');};}if(t&&!this._.guardRTL){var D=w.startContainer,E=w.startOffset>0&&D.getChild(w.startOffset-1);this._.guardRTL=function(G,H){return(!H||!D.equals(G))&&(!E||!G.equals(E))&&(G.type!=1||!H||G.getName()!='body');};}var F=t?this._.guardRTL:this._.guardLTR;if(y)x=function(G,H){if(F(G,H)===false)return false;return y(G,H);};else x=F;if(this.current)v=this.current[A](false,z,x);else if(t){v=w.endContainer;if(w.endOffset>0){v=v.getChild(w.endOffset-1);if(x(v)===false)v=null;}else v=x(v,true)===false?null:v.getPreviousSourceNode(true,z,x); | if(n&&n.state!=0)if(this.fire('beforeCommandExec',o)!==true){o.returnValue=n.exec(o.commandData);if(!n.async&&this.fire('afterCommandExec',o)!==true)return o.returnValue;}return false;},getCommand:function(l){return this._.commands[l];},getData:function(){var n=this;n.fire('beforeGetData');var l=n._.data;if(typeof l!='string'){var m=n.element;if(m&&n.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();else l='';}l={dataValue:l};n.fire('getData',l);return l.dataValue;},getSnapshot:function(){var l=this.fire('getSnapshot');if(typeof l!='string'){var m=this.element;if(m&&this.elementMode==1)l=m.is('textarea')?m.getValue():m.getHtml();}return l;},loadSnapshot:function(l){this.fire('loadSnapshot',l);},setData:function(l,m){if(m)this.on('dataReady',function(o){o.removeListener();m.call(o.editor);});var n={dataValue:l};this.fire('setData',n);this._.data=n.dataValue;this.fire('afterSetData',n);},insertHtml:function(l){this.fire('insertHtml',l);},insertElement:function(l){this.fire('insertElement',l);},checkDirty:function(){return this.mayBeDirty&&this._.previousValue!==this.getSnapshot();},resetDirty:function(){if(this.mayBeDirty)this._.previousValue=this.getSnapshot();},updateElement:function(){var n=this;var l=n.element;if(l&&n.elementMode==1){var m=n.getData();if(n.config.htmlEncodeOutput)m=e.htmlEncode(m);if(l.is('textarea'))l.setValue(m);else l.setHtml(m);}}});a.on('loaded',function(){var l=a.editor._pending;if(l){delete a.editor._pending;for(var m=0;m<l.length;m++)l[m]._init();}});a.htmlParser=function(){this._={htmlPartsRegex:new RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:(?:[^\"'>]+)|(?:\"[^\"]*\")|(?:'[^']*'))*)\\/?>))",'g')};};(function(){var l=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,m={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};a.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(n){var A=this;var o,p,q=0,r;while(o=A._.htmlPartsRegex.exec(n)){var s=o.index;if(s>q){var t=n.substring(q,s);if(r)r.push(t);else A.onText(t);}q=A._.htmlPartsRegex.lastIndex;if(p=o[1]){p=p.toLowerCase();if(r&&f.$cdata[p]){A.onCDATA(r.join(''));r=null;}if(!r){A.onTagClose(p);continue;}}if(r){r.push(o[0]);continue;}if(p=o[3]){p=p.toLowerCase();if(/="/.test(p))continue;var u={},v,w=o[4],x=!!(w&&w.charAt(w.length-1)=='/');if(w)while(v=l.exec(w)){var y=v[1].toLowerCase(),z=v[2]||v[3]||v[4]||''; if(!z&&m[y])u[y]=y;else u[y]=z;}A.onTagOpen(p,u,x);if(!r&&f.$cdata[p])r=[];continue;}if(p=o[2])A.onComment(p);}if(n.length>q)A.onText(n.substring(q,n.length));}};})();a.htmlParser.comment=function(l){this.value=l;this._={isBlockLike:false};};a.htmlParser.comment.prototype={type:8,writeHtml:function(l,m){var n=this.value;if(m){if(!(n=m.onComment(n,this)))return;if(typeof n!='string'){n.parent=this.parent;n.writeHtml(l,m);return;}}l.comment(n);}};(function(){var l=/[\t\r\n ]{2,}|[\t\r\n]/g;a.htmlParser.text=function(m){this.value=m;this._={isBlockLike:false};};a.htmlParser.text.prototype={type:3,writeHtml:function(m,n){var o=this.value;if(n&&!(o=n.onText(o,this)))return;m.text(o);}};})();(function(){a.htmlParser.cdata=function(l){this.value=l;};a.htmlParser.cdata.prototype={type:3,writeHtml:function(l){l.write(this.value);}};})();a.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false};};(function(){var l={colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1},m=e.extend({table:1,ul:1,ol:1,dl:1},f.table,f.ul,f.ol,f.dl),n=f.$list,o=f.$listItem;a.htmlParser.fragment.fromHtml=function(p,q){var r=new a.htmlParser(),s=[],t=new a.htmlParser.fragment(),u=[],v=[],w=t,x=false,y;function z(E){var F;if(u.length>0)for(var G=0;G<u.length;G++){var H=u[G],I=H.name,J=f[I],K=w.name&&f[w.name];if((!K||K[I])&&(!E||!J||J[E]||!f[E])){if(!F){A();F=1;}H=H.clone();H.parent=w;w=H;u.splice(G,1);G--;}}};function A(E){while(v.length-(E||0)>0)w.add(v.shift());};function B(E,F,G){F=F||w||t;if(q&&!F.type){var H,I;if(E.attributes&&(I=E.attributes._cke_real_element_type))H=I;else H=E.name;if(H&&!(H in f.$body)&&!(H in f.$nonBodyContent)){var J=w;w=F;r.onTagOpen(q,{});F=w;if(G)w=J;}}if(E._.isBlockLike&&E.name!='pre'){var K=E.children.length,L=E.children[K-1],M;if(L&&L.type==3)if(!(M=e.rtrim(L.value)))E.children.length=K-1;else L.value=M;}F.add(E);if(E.returnPoint){w=E.returnPoint;delete E.returnPoint;}};r.onTagOpen=function(E,F,G){var H=new a.htmlParser.element(E,F);if(H.isUnknown&&G)H.isEmpty=true;if(f.$removeEmpty[E]){u.push(H);return;}else if(E=='pre')x=true;else if(E=='br'&&x){w.add(new a.htmlParser.text('\n'));return;}if(E=='br'){v.push(H);return;}var I=w.name,J=I&&(f[I]||(w._.isBlockLike?f.div:f.span));if(J&&!H.isUnknown&&!w.isUnknown&&!J[E]){var K=false,L;if(E in n&&I in n){var M=w.children,N=M[M.length-1];if(!(N&&N.name in o))B(N=new a.htmlParser.element('li'),w);y=w,L=N;}else if(E==I)B(w,w.parent);else{if(m[I]){if(!y)y=w; | },onAttribute:function(q,r,s){var t=this._.attributes[r];if(t){var u=t.filter(s,q,this);if(u===false)return false;if(typeof u!='undefined')return u;}return s;}}});function l(q,r){for(var s=0;q&&s<r.length;s++){var t=r[s];q=q.replace(t[0],t[1]);}return q;};function m(q,r,s){if(typeof r=='function')r=[r];var t,u,v=q.length,w=r&&r.length;if(w){for(t=0;t<v&&q[t].pri<s;t++){}for(u=w-1;u>=0;u--){var x=r[u];if(x){x.pri=s;q.splice(t,0,x);}}}};function n(q,r,s){if(r)for(var t in r){var u=q[t];q[t]=o(u,r[t],s);if(!u)q.$length++;}};function o(q,r,s){if(r){r.pri=s;if(q){if(!q.splice){if(q.pri>s)q=[r,q];else q=[q,r];q.filter=p;}else m(q,r,s);return q;}else{r.filter=r;return r;}}};function p(q){var r=typeof q=='object';for(var s=0;s<this.length;s++){var t=this[s],u=t.apply(window,arguments);if(typeof u!='undefined'){if(u===false)return false;if(r&&u!=q)return u;}}return null;};})();a.htmlParser.basicWriter=e.createClass({$:function(){this._={output:[]};},proto:{openTag:function(l,m){this._.output.push('<',l);},openTagClose:function(l,m){if(m)this._.output.push(' />');else this._.output.push('>');},attribute:function(l,m){if(typeof m=='string')m=e.htmlEncodeAttr(m);this._.output.push(' ',l,'="',m,'"');},closeTag:function(l){this._.output.push('</',l,'>');},text:function(l){this._.output.push(l);},comment:function(l){this._.output.push('<!--',l,'-->');},write:function(l){this._.output.push(l);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(l){var m=this._.output.join('');if(l)this.reset();return m;}}});delete a.loadFullCore;a.instances={};a.document=new g(document);a.add=function(l){a.instances[l.name]=l;l.on('focus',function(){if(a.currentInstance!=l){a.currentInstance=l;a.fire('currentInstance');}});l.on('blur',function(){if(a.currentInstance==l){a.currentInstance=null;a.fire('currentInstance');}});};a.remove=function(l){delete a.instances[l.name];};a.TRISTATE_ON=1;a.TRISTATE_OFF=2;a.TRISTATE_DISABLED=0;d.comment=e.createClass({base:d.node,$:function(l,m){if(typeof l=='string')l=(m?m.$:document).createComment(l);this.base(l);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var l={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1},m={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},n=function(o){var p=o.getChildren();for(var q=0,r=p.count();q<r;q++){var s=p.getItem(q);if(s.type==1&&f.$block[s.getName()])return true;}return false;};d.elementPath=function(o){var u=this;var p=null,q=null,r=[],s=o;while(s){if(s.type==1){if(!u.lastElement)u.lastElement=s;var t=s.getName();if(c&&s.$.scopeName!='HTML')t=s.$.scopeName.toLowerCase()+':'+t;if(!q){if(!p&&l[t])p=s;if(m[t])if(!p&&t=='div'&&!n(s))p=s;else q=s;}r.push(s);if(t=='body')break;}s=s.getParent();}u.block=p;u.blockLimit=q;u.elements=r;};})();d.elementPath.prototype={compare:function(l){var m=this.elements,n=l&&l.elements;if(!n||m.length!=n.length)return false;for(var o=0;o<m.length;o++){if(!m[o].equals(n[o]))return false;}return true;}};d.text=function(l,m){if(typeof l=='string')l=(m?m.$:document).createTextNode(l);this.$=l;};d.text.prototype=new d.node();e.extend(d.text.prototype,{type:3,getLength:function(){return this.$.nodeValue.length;},getText:function(){return this.$.nodeValue;},split:function(l){var q=this;if(c&&l==q.getLength()){var m=q.getDocument().createText('');m.insertAfter(q);return m;}var n=q.getDocument(),o=new d.text(q.$.splitText(l),n);if(b.ie8){var p=new d.text('',n);p.insertAfter(o);p.remove();}return o;},substring:function(l,m){if(typeof m!='number')return this.$.nodeValue.substr(l);else return this.$.nodeValue.substring(l,m);}});d.documentFragment=function(l){l=l||a.document;this.$=l.$.createDocumentFragment();};e.extend(d.documentFragment.prototype,h.prototype,{type:11,insertAfterNode:function(l){l=l.$;l.parentNode.insertBefore(this.$,l.nextSibling);}},true,{append:1,appendBogus:1,getFirst:1,getLast:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1});(function(){function l(t,u){if(this._.end)return null;var v,w=this.range,x,y=this.guard,z=this.type,A=t?'getPreviousSourceNode':'getNextSourceNode';if(!this._.start){this._.start=1;w.trim();if(w.collapsed){this.end();return null;}}if(!t&&!this._.guardLTR){var B=w.endContainer,C=B.getChild(w.endOffset);this._.guardLTR=function(G,H){return(!H||!B.equals(G))&&(!C||!G.equals(C))&&(G.type!=1||!H||G.getName()!='body');};}if(t&&!this._.guardRTL){var D=w.startContainer,E=w.startOffset>0&&D.getChild(w.startOffset-1);this._.guardRTL=function(G,H){return(!H||!D.equals(G))&&(!E||!G.equals(E))&&(G.type!=1||!H||G.getName()!='body');};}var F=t?this._.guardRTL:this._.guardLTR;if(y)x=function(G,H){if(F(G,H)===false)return false;return y(G,H);};else x=F;if(this.current)v=this.current[A](false,z,x);else if(t){v=w.endContainer;if(w.endOffset>0){v=v.getChild(w.endOffset-1);if(x(v)===false)v=null;}else v=x(v,true)===false?null:v.getPreviousSourceNode(true,z,x); |
(function(e){e.effects.bounce=function(b){return this.queue(function(){var a=e(this),l=["position","top","left"],h=e.effects.setMode(a,b.options.mode||"effect"),d=b.options.direction||"up",c=b.options.distance||20,m=b.options.times||5,i=b.duration||250;/show|hide/.test(h)&&l.push("opacity");e.effects.save(a,l);a.show();e.effects.createWrapper(a);var f=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";c=b.options.distance||(f=="top"?a.outerHeight({margin:true})/3:a.outerWidth({margin:true})/ 3);if(h=="show")a.css("opacity",0).css(f,d=="pos"?-c:c);if(h=="hide")c/=m*2;h!="hide"&&m--;if(h=="show"){var g={opacity:1};g[f]=(d=="pos"?"+=":"-=")+c;a.animate(g,i/2,b.options.easing);c/=2;m--}for(g=0;g<m;g++){var j={},k={};j[f]=(d=="pos"?"-=":"+=")+c;k[f]=(d=="pos"?"+=":"-=")+c;a.animate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing);c=h=="hide"?c*2:c/2}if(h=="hide"){g={opacity:0};g[f]=(d=="pos"?"-=":"+=")+c;a.animate(g,i/2,b.options.easing,function(){a.hide();e.effects.restore(a,l);e.effects.removeWrapper(a); b.callback&&b.callback.apply(this,arguments)})}else{j={};k={};j[f]=(d=="pos"?"-=":"+=")+c;k[f]=(d=="pos"?"+=":"-=")+c;a.animate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing,function(){e.effects.restore(a,l);e.effects.removeWrapper(a);b.callback&&b.callback.apply(this,arguments)})}a.queue("fx",function(){a.dequeue()});a.dequeue()})}})(jQuery); | a.preventDefault()}if(g){c(a.target).attr("tabIndex",-1);c(g).attr("tabIndex",0);g.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,b-c(this).innerHeight()+ | (function(e){e.effects.bounce=function(b){return this.queue(function(){var a=e(this),l=["position","top","left"],h=e.effects.setMode(a,b.options.mode||"effect"),d=b.options.direction||"up",c=b.options.distance||20,m=b.options.times||5,i=b.duration||250;/show|hide/.test(h)&&l.push("opacity");e.effects.save(a,l);a.show();e.effects.createWrapper(a);var f=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";c=b.options.distance||(f=="top"?a.outerHeight({margin:true})/3:a.outerWidth({margin:true})/3);if(h=="show")a.css("opacity",0).css(f,d=="pos"?-c:c);if(h=="hide")c/=m*2;h!="hide"&&m--;if(h=="show"){var g={opacity:1};g[f]=(d=="pos"?"+=":"-=")+c;a.animate(g,i/2,b.options.easing);c/=2;m--}for(g=0;g<m;g++){var j={},k={};j[f]=(d=="pos"?"-=":"+=")+c;k[f]=(d=="pos"?"+=":"-=")+c;a.animate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing);c=h=="hide"?c*2:c/2}if(h=="hide"){g={opacity:0};g[f]=(d=="pos"?"-=":"+=")+c;a.animate(g,i/2,b.options.easing,function(){a.hide();e.effects.restore(a,l);e.effects.removeWrapper(a);b.callback&&b.callback.apply(this,arguments)})}else{j={};k={};j[f]=(d=="pos"?"-=":"+=")+c;k[f]=(d=="pos"?"+=":"-=")+c;a.animate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing,function(){e.effects.restore(a,l);e.effects.removeWrapper(a);b.callback&&b.callback.apply(this,arguments)})}a.queue("fx",function(){a.dequeue()});a.dequeue()})}})(jQuery); |
var p=null,q=null,r=[],s=o;while(s){if(s.type==1){if(!u.lastElement)u.lastElement=s;var t=s.getName();if(c&&s.$.scopeName!='HTML')t=s.$.scopeName.toLowerCase()+':'+t;if(!q){if(!p&&l[t])p=s;if(m[t])if(!p&&t=='div'&&!n(s))p=s;else q=s;}r.push(s);if(t=='body')break;}s=s.getParent();}u.block=p;u.blockLimit=q;u.elements=r;};})();d.elementPath.prototype={compare:function(l){var m=this.elements,n=l&&l.elements;if(!n||m.length!=n.length)return false;for(var o=0;o<m.length;o++){if(!m[o].equals(n[o]))return false;}return true;}};d.text=function(l,m){if(typeof l=='string')l=(m?m.$:document).createTextNode(l);this.$=l;};d.text.prototype=new d.node();e.extend(d.text.prototype,{type:3,getLength:function(){return this.$.nodeValue.length;},getText:function(){return this.$.nodeValue;},split:function(l){var q=this;if(c&&l==q.getLength()){var m=q.getDocument().createText('');m.insertAfter(q);return m;}var n=q.getDocument(),o=new d.text(q.$.splitText(l),n);if(b.ie8){var p=new d.text('',n);p.insertAfter(o);p.remove();}return o;},substring:function(l,m){if(typeof m!='number')return this.$.nodeValue.substr(l);else return this.$.nodeValue.substring(l,m);}});d.documentFragment=function(l){l=l||a.document;this.$=l.$.createDocumentFragment();};e.extend(d.documentFragment.prototype,h.prototype,{type:11,insertAfterNode:function(l){l=l.$;l.parentNode.insertBefore(this.$,l.nextSibling);}},true,{append:1,appendBogus:1,getFirst:1,getLast:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1});(function(){function l(t,u){if(this._.end)return null;var v,w=this.range,x,y=this.guard,z=this.type,A=t?'getPreviousSourceNode':'getNextSourceNode';if(!this._.start){this._.start=1;w.trim();if(w.collapsed){this.end();return null;}}if(!t&&!this._.guardLTR){var B=w.endContainer,C=B.getChild(w.endOffset);this._.guardLTR=function(G,H){return(!H||!B.equals(G))&&(!C||!G.equals(C))&&(G.type!=1||!H||G.getName()!='body');};}if(t&&!this._.guardRTL){var D=w.startContainer,E=w.startOffset>0&&D.getChild(w.startOffset-1);this._.guardRTL=function(G,H){return(!H||!D.equals(G))&&(!E||!G.equals(E))&&(G.type!=1||!H||G.getName()!='body');};}var F=t?this._.guardRTL:this._.guardLTR;if(y)x=function(G,H){if(F(G,H)===false)return false;return y(G,H);};else x=F;if(this.current)v=this.current[A](false,z,x);else if(t){v=w.endContainer;if(w.endOffset>0){v=v.getChild(w.endOffset-1);if(x(v)===false)v=null;}else v=x(v,true)===false?null:v.getPreviousSourceNode(true,z,x); }else{v=w.startContainer;v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmarkContents=function(t){},d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_fck_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?: |\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B; | if(!z&&m[y])u[y]=y;else u[y]=z;}A.onTagOpen(p,u,x);if(!r&&f.$cdata[p])r=[];continue;}if(p=o[2])A.onComment(p);}if(n.length>q)A.onText(n.substring(q,n.length));}};})();a.htmlParser.comment=function(l){this.value=l;this._={isBlockLike:false};};a.htmlParser.comment.prototype={type:8,writeHtml:function(l,m){var n=this.value;if(m){if(!(n=m.onComment(n,this)))return;if(typeof n!='string'){n.parent=this.parent;n.writeHtml(l,m);return;}}l.comment(n);}};(function(){var l=/[\t\r\n ]{2,}|[\t\r\n]/g;a.htmlParser.text=function(m){this.value=m;this._={isBlockLike:false};};a.htmlParser.text.prototype={type:3,writeHtml:function(m,n){var o=this.value;if(n&&!(o=n.onText(o,this)))return;m.text(o);}};})();(function(){a.htmlParser.cdata=function(l){this.value=l;};a.htmlParser.cdata.prototype={type:3,writeHtml:function(l){l.write(this.value);}};})();a.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false};};(function(){var l={colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1},m=e.extend({table:1,ul:1,ol:1,dl:1},f.table,f.ul,f.ol,f.dl),n=f.$list,o=f.$listItem;a.htmlParser.fragment.fromHtml=function(p,q){var r=new a.htmlParser(),s=[],t=new a.htmlParser.fragment(),u=[],v=[],w=t,x=false,y;function z(E){var F;if(u.length>0)for(var G=0;G<u.length;G++){var H=u[G],I=H.name,J=f[I],K=w.name&&f[w.name];if((!K||K[I])&&(!E||!J||J[E]||!f[E])){if(!F){A();F=1;}H=H.clone();H.parent=w;w=H;u.splice(G,1);G--;}}};function A(E){while(v.length-(E||0)>0)w.add(v.shift());};function B(E,F,G){F=F||w||t;if(q&&!F.type){var H,I;if(E.attributes&&(I=E.attributes._cke_real_element_type))H=I;else H=E.name;if(H&&!(H in f.$body)&&!(H in f.$nonBodyContent)){var J=w;w=F;r.onTagOpen(q,{});F=w;if(G)w=J;}}if(E._.isBlockLike&&E.name!='pre'){var K=E.children.length,L=E.children[K-1],M;if(L&&L.type==3)if(!(M=e.rtrim(L.value)))E.children.length=K-1;else L.value=M;}F.add(E);if(E.returnPoint){w=E.returnPoint;delete E.returnPoint;}};r.onTagOpen=function(E,F,G){var H=new a.htmlParser.element(E,F);if(H.isUnknown&&G)H.isEmpty=true;if(f.$removeEmpty[E]){u.push(H);return;}else if(E=='pre')x=true;else if(E=='br'&&x){w.add(new a.htmlParser.text('\n'));return;}if(E=='br'){v.push(H);return;}var I=w.name,J=I&&(f[I]||(w._.isBlockLike?f.div:f.span));if(J&&!H.isUnknown&&!w.isUnknown&&!J[E]){var K=false,L;if(E in n&&I in n){var M=w.children,N=M[M.length-1];if(!(N&&N.name in o))B(N=new a.htmlParser.element('li'),w);y=w,L=N;}else if(E==I)B(w,w.parent);else{if(m[I]){if(!y)y=w; | var p=null,q=null,r=[],s=o;while(s){if(s.type==1){if(!u.lastElement)u.lastElement=s;var t=s.getName();if(c&&s.$.scopeName!='HTML')t=s.$.scopeName.toLowerCase()+':'+t;if(!q){if(!p&&l[t])p=s;if(m[t])if(!p&&t=='div'&&!n(s))p=s;else q=s;}r.push(s);if(t=='body')break;}s=s.getParent();}u.block=p;u.blockLimit=q;u.elements=r;};})();d.elementPath.prototype={compare:function(l){var m=this.elements,n=l&&l.elements;if(!n||m.length!=n.length)return false;for(var o=0;o<m.length;o++){if(!m[o].equals(n[o]))return false;}return true;}};d.text=function(l,m){if(typeof l=='string')l=(m?m.$:document).createTextNode(l);this.$=l;};d.text.prototype=new d.node();e.extend(d.text.prototype,{type:3,getLength:function(){return this.$.nodeValue.length;},getText:function(){return this.$.nodeValue;},split:function(l){var q=this;if(c&&l==q.getLength()){var m=q.getDocument().createText('');m.insertAfter(q);return m;}var n=q.getDocument(),o=new d.text(q.$.splitText(l),n);if(b.ie8){var p=new d.text('',n);p.insertAfter(o);p.remove();}return o;},substring:function(l,m){if(typeof m!='number')return this.$.nodeValue.substr(l);else return this.$.nodeValue.substring(l,m);}});d.documentFragment=function(l){l=l||a.document;this.$=l.$.createDocumentFragment();};e.extend(d.documentFragment.prototype,h.prototype,{type:11,insertAfterNode:function(l){l=l.$;l.parentNode.insertBefore(this.$,l.nextSibling);}},true,{append:1,appendBogus:1,getFirst:1,getLast:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1});(function(){function l(t,u){if(this._.end)return null;var v,w=this.range,x,y=this.guard,z=this.type,A=t?'getPreviousSourceNode':'getNextSourceNode';if(!this._.start){this._.start=1;w.trim();if(w.collapsed){this.end();return null;}}if(!t&&!this._.guardLTR){var B=w.endContainer,C=B.getChild(w.endOffset);this._.guardLTR=function(G,H){return(!H||!B.equals(G))&&(!C||!G.equals(C))&&(G.type!=1||!H||G.getName()!='body');};}if(t&&!this._.guardRTL){var D=w.startContainer,E=w.startOffset>0&&D.getChild(w.startOffset-1);this._.guardRTL=function(G,H){return(!H||!D.equals(G))&&(!E||!G.equals(E))&&(G.type!=1||!H||G.getName()!='body');};}var F=t?this._.guardRTL:this._.guardLTR;if(y)x=function(G,H){if(F(G,H)===false)return false;return y(G,H);};else x=F;if(this.current)v=this.current[A](false,z,x);else if(t){v=w.endContainer;if(w.endOffset>0){v=v.getChild(w.endOffset-1);if(x(v)===false)v=null;}else v=x(v,true)===false?null:v.getPreviousSourceNode(true,z,x);}else{v=w.startContainer;v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmarkContents=function(t){},d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_fck_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?: |\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B; |
}else{v=w.startContainer;v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmarkContents=function(t){},d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_fck_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?: |\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B; | if(!z&&m[y])u[y]=y;else u[y]=z;}A.onTagOpen(p,u,x);if(!r&&f.$cdata[p])r=[];continue;}if(p=o[2])A.onComment(p);}if(n.length>q)A.onText(n.substring(q,n.length));}};})();a.htmlParser.comment=function(l){this.value=l;this._={isBlockLike:false};};a.htmlParser.comment.prototype={type:8,writeHtml:function(l,m){var n=this.value;if(m){if(!(n=m.onComment(n,this)))return;if(typeof n!='string'){n.parent=this.parent;n.writeHtml(l,m);return;}}l.comment(n);}};(function(){var l=/[\t\r\n ]{2,}|[\t\r\n]/g;a.htmlParser.text=function(m){this.value=m;this._={isBlockLike:false};};a.htmlParser.text.prototype={type:3,writeHtml:function(m,n){var o=this.value;if(n&&!(o=n.onText(o,this)))return;m.text(o);}};})();(function(){a.htmlParser.cdata=function(l){this.value=l;};a.htmlParser.cdata.prototype={type:3,writeHtml:function(l){l.write(this.value);}};})();a.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false};};(function(){var l={colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1},m=e.extend({table:1,ul:1,ol:1,dl:1},f.table,f.ul,f.ol,f.dl),n=f.$list,o=f.$listItem;a.htmlParser.fragment.fromHtml=function(p,q){var r=new a.htmlParser(),s=[],t=new a.htmlParser.fragment(),u=[],v=[],w=t,x=false,y;function z(E){var F;if(u.length>0)for(var G=0;G<u.length;G++){var H=u[G],I=H.name,J=f[I],K=w.name&&f[w.name];if((!K||K[I])&&(!E||!J||J[E]||!f[E])){if(!F){A();F=1;}H=H.clone();H.parent=w;w=H;u.splice(G,1);G--;}}};function A(E){while(v.length-(E||0)>0)w.add(v.shift());};function B(E,F,G){F=F||w||t;if(q&&!F.type){var H,I;if(E.attributes&&(I=E.attributes._cke_real_element_type))H=I;else H=E.name;if(H&&!(H in f.$body)&&!(H in f.$nonBodyContent)){var J=w;w=F;r.onTagOpen(q,{});F=w;if(G)w=J;}}if(E._.isBlockLike&&E.name!='pre'){var K=E.children.length,L=E.children[K-1],M;if(L&&L.type==3)if(!(M=e.rtrim(L.value)))E.children.length=K-1;else L.value=M;}F.add(E);if(E.returnPoint){w=E.returnPoint;delete E.returnPoint;}};r.onTagOpen=function(E,F,G){var H=new a.htmlParser.element(E,F);if(H.isUnknown&&G)H.isEmpty=true;if(f.$removeEmpty[E]){u.push(H);return;}else if(E=='pre')x=true;else if(E=='br'&&x){w.add(new a.htmlParser.text('\n'));return;}if(E=='br'){v.push(H);return;}var I=w.name,J=I&&(f[I]||(w._.isBlockLike?f.div:f.span));if(J&&!H.isUnknown&&!w.isUnknown&&!J[E]){var K=false,L;if(E in n&&I in n){var M=w.children,N=M[M.length-1];if(!(N&&N.name in o))B(N=new a.htmlParser.element('li'),w);y=w,L=N;}else if(E==I)B(w,w.parent);else{if(m[I]){if(!y)y=w; | }else{v=w.startContainer;v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmarkContents=function(t){},d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_fck_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?: |\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B; |
}else{v=w.startContainer;v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmarkContents=function(t){},d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_fck_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?: |\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B; | if(!z&&m[y])u[y]=y;else u[y]=z;}A.onTagOpen(p,u,x);if(!r&&f.$cdata[p])r=[];continue;}if(p=o[2])A.onComment(p);}if(n.length>q)A.onText(n.substring(q,n.length));}};})();a.htmlParser.comment=function(l){this.value=l;this._={isBlockLike:false};};a.htmlParser.comment.prototype={type:8,writeHtml:function(l,m){var n=this.value;if(m){if(!(n=m.onComment(n,this)))return;if(typeof n!='string'){n.parent=this.parent;n.writeHtml(l,m);return;}}l.comment(n);}};(function(){var l=/[\t\r\n ]{2,}|[\t\r\n]/g;a.htmlParser.text=function(m){this.value=m;this._={isBlockLike:false};};a.htmlParser.text.prototype={type:3,writeHtml:function(m,n){var o=this.value;if(n&&!(o=n.onText(o,this)))return;m.text(o);}};})();(function(){a.htmlParser.cdata=function(l){this.value=l;};a.htmlParser.cdata.prototype={type:3,writeHtml:function(l){l.write(this.value);}};})();a.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false};};(function(){var l={colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1},m=e.extend({table:1,ul:1,ol:1,dl:1},f.table,f.ul,f.ol,f.dl),n=f.$list,o=f.$listItem;a.htmlParser.fragment.fromHtml=function(p,q){var r=new a.htmlParser(),s=[],t=new a.htmlParser.fragment(),u=[],v=[],w=t,x=false,y;function z(E){var F;if(u.length>0)for(var G=0;G<u.length;G++){var H=u[G],I=H.name,J=f[I],K=w.name&&f[w.name];if((!K||K[I])&&(!E||!J||J[E]||!f[E])){if(!F){A();F=1;}H=H.clone();H.parent=w;w=H;u.splice(G,1);G--;}}};function A(E){while(v.length-(E||0)>0)w.add(v.shift());};function B(E,F,G){F=F||w||t;if(q&&!F.type){var H,I;if(E.attributes&&(I=E.attributes._cke_real_element_type))H=I;else H=E.name;if(H&&!(H in f.$body)&&!(H in f.$nonBodyContent)){var J=w;w=F;r.onTagOpen(q,{});F=w;if(G)w=J;}}if(E._.isBlockLike&&E.name!='pre'){var K=E.children.length,L=E.children[K-1],M;if(L&&L.type==3)if(!(M=e.rtrim(L.value)))E.children.length=K-1;else L.value=M;}F.add(E);if(E.returnPoint){w=E.returnPoint;delete E.returnPoint;}};r.onTagOpen=function(E,F,G){var H=new a.htmlParser.element(E,F);if(H.isUnknown&&G)H.isEmpty=true;if(f.$removeEmpty[E]){u.push(H);return;}else if(E=='pre')x=true;else if(E=='br'&&x){w.add(new a.htmlParser.text('\n'));return;}if(E=='br'){v.push(H);return;}var I=w.name,J=I&&(f[I]||(w._.isBlockLike?f.div:f.span));if(J&&!H.isUnknown&&!w.isUnknown&&!J[E]){var K=false,L;if(E in n&&I in n){var M=w.children,N=M[M.length-1];if(!(N&&N.name in o))B(N=new a.htmlParser.element('li'),w);y=w,L=N;}else if(E==I)B(w,w.parent);else{if(m[I]){if(!y)y=w; }else{B(w,w.parent,true);if(!l[I])u.unshift(w);}K=true;}if(L)w=L;else w=w.returnPoint||w.parent;if(K){r.onTagOpen.apply(this,arguments);return;}}z(E);A();H.parent=w;H.returnPoint=y;y=0;if(H.isEmpty)B(H);else w=H;};r.onTagClose=function(E){for(var F=u.length-1;F>=0;F--){if(E==u[F].name){u.splice(F,1);return;}}var G=[],H=[],I=w;while(I.type&&I.name!=E){if(!I._.isBlockLike)H.unshift(I);G.push(I);I=I.parent;}if(I.type){for(F=0;F<G.length;F++){var J=G[F];B(J,J.parent);}w=I;if(w.name=='pre')x=false;if(I._.isBlockLike)A();B(I,I.parent);if(I==w)w=w.parent;u=u.concat(H);}if(E=='body')q=false;};r.onText=function(E){if(!w._.hasInlineStarted&&!x){E=e.ltrim(E);if(E.length===0)return;}A();z();if(q&&(!w.type||w.name=='body')&&e.trim(E))this.onTagOpen(q,{});if(!x)E=E.replace(/[\t\r\n ]{2,}|[\t\r\n]/g,' ');w.add(new a.htmlParser.text(E));};r.onCDATA=function(E){w.add(new a.htmlParser.cdata(E));};r.onComment=function(E){w.add(new a.htmlParser.comment(E));};r.parse(p);A(!c&&1);while(w.type){var C=w.parent,D=w;if(q&&(!C.type||C.name=='body')&&!f.$body[D.name]){w=C;r.onTagOpen(q,{});C=w;}C.add(D);w=C;}return t;};a.htmlParser.fragment.prototype={add:function(p){var s=this;var q=s.children.length,r=q>0&&s.children[q-1]||null;if(r){if(p._.isBlockLike&&r.type==3){r.value=e.rtrim(r.value);if(r.value.length===0){s.children.pop();s.add(p);return;}}r.next=p;}p.previous=r;p.parent=s;s.children.push(p);s._.hasInlineStarted=p.type==3||p.type==1&&!p._.isBlockLike;},writeHtml:function(p,q){var r;this.filterChildren=function(){var s=new a.htmlParser.basicWriter();this.writeChildrenHtml.call(this,s,q,true);var t=s.getHtml();this.children=new a.htmlParser.fragment.fromHtml(t).children;r=1;};!this.name&&q&&q.onFragment(this);this.writeChildrenHtml(p,r?null:q);},writeChildrenHtml:function(p,q){for(var r=0;r<this.children.length;r++)this.children[r].writeHtml(p,q);}};})();a.htmlParser.element=function(l,m){var r=this;r.name=l;r.attributes=m||(m={});r.children=[];var n=m._cke_real_element_type||l,o=f,p=!!(o.$nonBodyContent[n]||o.$block[n]||o.$listItem[n]||o.$tableContent[n]||o.$nonEditable[n]||n=='br'),q=!!o.$empty[l];r.isEmpty=q;r.isUnknown=!o[l];r._={isBlockLike:p,hasInlineStarted:q||!p};};(function(){var l=function(m,n){m=m[0];n=n[0];return m<n?-1:m>n?1:0;};a.htmlParser.element.prototype={type:1,add:a.htmlParser.fragment.prototype.add,clone:function(){return new a.htmlParser.element(this.name,this.attributes);},writeHtml:function(m,n){var o=this.attributes,p=this,q=p.name,r,s,t,u;p.filterChildren=function(){if(!u){var z=new a.htmlParser.basicWriter(); | }else{v=w.startContainer;v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmarkContents=function(t){},d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_fck_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?: |\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B; |
var xhr; | var xhr, handlerCalled = false, handler = function(){ handlerCalled = true; switch (xhr.readyState){ case 0: options.aborted(xhr); break; case 4: if (xhr.status===200){ options.complete(xhr); } else { options.error( Xmla.Exception._newError( "HTTP_ERROR", "_ajax", options ) ); } break; } }; | function _ajax(options){/* This is not a general ajax function, just something that is good enough for Xmla.*/ var xhr; if (_useAX) { xhr = new ActiveXObject("MSXML2.XMLHTTP.3.0"); } else { xhr = new XMLHttpRequest(); } xhr.open("POST", options.url, options.async); var handlerCalled = false; var handler = function(){ handlerCalled = true; switch (xhr.readyState){ case 0: options.aborted(xhr); break; case 4: if (xhr.status===200){ options.complete(xhr); } else { options.error( Xmla.Exception._newError( "HTTP_ERROR", "_ajax", options ) ); } break; } }; xhr.onreadystatechange = handler; xhr.setRequestHeader("Content-Type", "text/xml"); xhr.send(options.data); if (!options.async && !handlerCalled){ handler.call(xhr); } return xhr;} |
var handlerCalled = false; var handler = function(){ handlerCalled = true; switch (xhr.readyState){ case 0: options.aborted(xhr); break; case 4: if (xhr.status===200){ options.complete(xhr); } else { options.error( Xmla.Exception._newError( "HTTP_ERROR", "_ajax", options ) ); } break; } }; | function _ajax(options){/* This is not a general ajax function, just something that is good enough for Xmla.*/ var xhr; if (_useAX) { xhr = new ActiveXObject("MSXML2.XMLHTTP.3.0"); } else { xhr = new XMLHttpRequest(); } xhr.open("POST", options.url, options.async); var handlerCalled = false; var handler = function(){ handlerCalled = true; switch (xhr.readyState){ case 0: options.aborted(xhr); break; case 4: if (xhr.status===200){ options.complete(xhr); } else { options.error( Xmla.Exception._newError( "HTTP_ERROR", "_ajax", options ) ); } break; } }; xhr.onreadystatechange = handler; xhr.setRequestHeader("Content-Type", "text/xml"); xhr.send(options.data); if (!options.async && !handlerCalled){ handler.call(xhr); } return xhr;} |
|
xhr.open("POST", options.url, options.async); | if (options.username && options.password) { xhr.open( "POST", options.url, options.async, options.username, options.password ); } else { xhr.open("POST", options.url, options.async); } | function _ajax(options){/* This is not a general ajax function, just something that is good enough for Xmla.*/ var xhr, handlerCalled = false, handler = function(){ handlerCalled = true; switch (xhr.readyState){ case 0: options.aborted(xhr); break; case 4: if (xhr.status===200){ options.complete(xhr); } else { options.error( Xmla.Exception._newError( "HTTP_ERROR", "_ajax", options ) ); } break; } }; if (_useAX) { xhr = new ActiveXObject("MSXML2.XMLHTTP.3.0"); } else { xhr = new XMLHttpRequest(); } xhr.open("POST", options.url, options.async); xhr.onreadystatechange = handler; xhr.setRequestHeader("Content-Type", "text/xml"); xhr.send(options.data); if (!options.async && !handlerCalled){ handler.call(xhr); } return xhr;} |
for (i = 0; i < this.URLs.length; i++) | for (i = 0; i < URLs.length; i++) | _allURLsMatch : function (URLs, ignoreURIPathsAndSchemes, ignoreURIPaths, keeFoxILM) { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow("navigator:browser"); //window.keefox_org.Logger.debug("aa"); if (this.URLs.length != URLs.length) return false; //window.keefox_org.Logger.debug("ab"); for (i = 0; i < this.URLs.length; i++) { var url1 = URLs[i]; var url2 = this.URLs[i]; //window.keefox_org.Logger.debug("ac:"+url1+":"+url2); if (!ignoreURIPathsAndSchemes && keeFoxILM._getURISchemeHostAndPort(url1) != keeFoxILM._getURISchemeHostAndPort(url2)) return false; else if (ignoreURIPathsAndSchemes && !ignoreURIPaths && keeFoxILM._getURIHostAndPort(url1) != keeFoxILM._getURIHostAndPort(url2)) return false; else if (!ignoreURIPathsAndSchemes && !ignoreURIPaths && url1 != url2) //TODO: remove query strings! return false; } return true; }, |
var url2 = this.URLs[i]; if (!ignoreURIPathsAndSchemes && keeFoxILM._getURISchemeHostAndPort(url1) != keeFoxILM._getURISchemeHostAndPort(url2)) return false; else if (ignoreURIPathsAndSchemes && !ignoreURIPaths && keeFoxILM._getURIHostAndPort(url1) != keeFoxILM._getURIHostAndPort(url2)) return false; else if (!ignoreURIPathsAndSchemes && !ignoreURIPaths && url1 != url2) return false; | for (j = 0; j < this.URLs.length; j++) { var url2 = this.URLs[j]; if (!ignoreURIPathsAndSchemes && keeFoxILM._getURISchemeHostAndPort(url1) != keeFoxILM._getURISchemeHostAndPort(url2)) return false; else if (ignoreURIPathsAndSchemes && !ignoreURIPaths && keeFoxILM._getURIHostAndPort(url1) != keeFoxILM._getURIHostAndPort(url2)) return false; else if (!ignoreURIPathsAndSchemes && !ignoreURIPaths && keeFoxILM._getURIExcludingQS(url1) != keeFoxILM._getURIExcludingQS(url2)) return false; } | _allURLsMatch : function (URLs, ignoreURIPathsAndSchemes, ignoreURIPaths, keeFoxILM) { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow("navigator:browser"); //window.keefox_org.Logger.debug("aa"); if (this.URLs.length != URLs.length) return false; //window.keefox_org.Logger.debug("ab"); for (i = 0; i < this.URLs.length; i++) { var url1 = URLs[i]; var url2 = this.URLs[i]; //window.keefox_org.Logger.debug("ac:"+url1+":"+url2); if (!ignoreURIPathsAndSchemes && keeFoxILM._getURISchemeHostAndPort(url1) != keeFoxILM._getURISchemeHostAndPort(url2)) return false; else if (ignoreURIPathsAndSchemes && !ignoreURIPaths && keeFoxILM._getURIHostAndPort(url1) != keeFoxILM._getURIHostAndPort(url2)) return false; else if (!ignoreURIPathsAndSchemes && !ignoreURIPaths && url1 != url2) //TODO: remove query strings! return false; } return true; }, |
{ | { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow("navigator:browser"); | _allURLsMatch : function (URLs, ignoreURIPathsAndSchemes, ignoreURIPaths, keeFoxILM) { if (this.URLs.length != URLs.length) return false; for (i = 0; i < this.URLs.length; i++) { var url1 = URLs[i]; var url2 = this.URLs[i]; if (ignoreURIPathsAndSchemes && keeFoxILM._getURISchemeHostAndPort(url1) != keeFoxILM._getURISchemeHostAndPort(url2)) return false; else if (!ignoreURIPathsAndSchemes && ignoreURIPaths && keeFoxILM._getURIHostAndPort(url1) != keeFoxILM._getURIHostAndPort(url2)) return false; else if (!ignoreURIPathsAndSchemes && !ignoreURIPaths && url1 != url2) return false; } return true; }, |
if (ignoreURIPathsAndSchemes && keeFoxILM._getURISchemeHostAndPort(url1) != keeFoxILM._getURISchemeHostAndPort(url2)) | if (!ignoreURIPathsAndSchemes && keeFoxILM._getURISchemeHostAndPort(url1) != keeFoxILM._getURISchemeHostAndPort(url2)) | _allURLsMatch : function (URLs, ignoreURIPathsAndSchemes, ignoreURIPaths, keeFoxILM) { if (this.URLs.length != URLs.length) return false; for (i = 0; i < this.URLs.length; i++) { var url1 = URLs[i]; var url2 = this.URLs[i]; if (ignoreURIPathsAndSchemes && keeFoxILM._getURISchemeHostAndPort(url1) != keeFoxILM._getURISchemeHostAndPort(url2)) return false; else if (!ignoreURIPathsAndSchemes && ignoreURIPaths && keeFoxILM._getURIHostAndPort(url1) != keeFoxILM._getURIHostAndPort(url2)) return false; else if (!ignoreURIPathsAndSchemes && !ignoreURIPaths && url1 != url2) return false; } return true; }, |
else if (!ignoreURIPathsAndSchemes && ignoreURIPaths && keeFoxILM._getURIHostAndPort(url1) != keeFoxILM._getURIHostAndPort(url2)) | else if (ignoreURIPathsAndSchemes && !ignoreURIPaths && keeFoxILM._getURIHostAndPort(url1) != keeFoxILM._getURIHostAndPort(url2)) | _allURLsMatch : function (URLs, ignoreURIPathsAndSchemes, ignoreURIPaths, keeFoxILM) { if (this.URLs.length != URLs.length) return false; for (i = 0; i < this.URLs.length; i++) { var url1 = URLs[i]; var url2 = this.URLs[i]; if (ignoreURIPathsAndSchemes && keeFoxILM._getURISchemeHostAndPort(url1) != keeFoxILM._getURISchemeHostAndPort(url2)) return false; else if (!ignoreURIPathsAndSchemes && ignoreURIPaths && keeFoxILM._getURIHostAndPort(url1) != keeFoxILM._getURIHostAndPort(url2)) return false; else if (!ignoreURIPathsAndSchemes && !ignoreURIPaths && url1 != url2) return false; } return true; }, |
for (var i=0; i<numNodes; i++){ | for (var i=0; i<numNodes; i += 1){ | _arrayConverter: function(nodes, valueConverter){ var arr = [], numNodes = nodes.length, node ; for (var i=0; i<numNodes; i++){ node = nodes.item(i); arr.push(valueConverter(this._elementText(node))); } return arr; }, |
c)};this.fieldOrder.push(e)}}}else Xmla.Exception._newError("ERROR_PARSING_RESPONSE","Xmla.Rowset",a)._throw()},_boolConverter:function(a){return a==="true"?true:false},_intConverter:function(a){return parseInt(a,10)},_floatConverter:function(a){return parseFloat(a,10)},_textConverter:function(a){return a},_restrictionsConverter:function(a){return a},_arrayConverter:function(a,b){for(var d=[],c=a.length,e,f=0;f<c;f++){e=a.item(f);d.push(b(this._elementText(e)))}return d},_elementText:function(a){if(a.innerText)return a.innerText; | f,c)};this.fieldOrder.push(e)}}}else Xmla.Exception._newError("ERROR_PARSING_RESPONSE","Xmla.Rowset",a)._throw()},_boolConverter:function(a){return a==="true"?true:false},_intConverter:function(a){return parseInt(a,10)},_floatConverter:function(a){return parseFloat(a,10)},_textConverter:function(a){return a},_restrictionsConverter:function(a){return a},_arrayConverter:function(a,b){for(var d=[],c=a.length,e,h=0;h<c;h+=1){e=a.item(h);d.push(b(this._elementText(e)))}return d},_elementText:function(a){if(a.innerText)return a.innerText; | c)};this.fieldOrder.push(e)}}}else Xmla.Exception._newError("ERROR_PARSING_RESPONSE","Xmla.Rowset",a)._throw()},_boolConverter:function(a){return a==="true"?true:false},_intConverter:function(a){return parseInt(a,10)},_floatConverter:function(a){return parseFloat(a,10)},_textConverter:function(a){return a},_restrictionsConverter:function(a){return a},_arrayConverter:function(a,b){for(var d=[],c=a.length,e,f=0;f<c;f++){e=a.item(f);d.push(b(this._elementText(e)))}return d},_elementText:function(a){if(a.innerText)return a.innerText; |
if (login.priority > 0) return (1000000 - login.priority); | _calculateRelevanceScore : function (login, form, usernameIndex, passwordFields, currentTabPage) { var score = 0; var actionURL = this._getActionOrigin(form); var URL = form.baseURI; // NB: action url on 2nd page will not match. This is probably OK but will review if required. if (actionURL == login.formActionURL) score += 20; if (this._getURIExcludingQS(actionURL) == this._getURIExcludingQS(login.formActionURL)) score += 15; if (this._getURISchemeHostAndPort(actionURL) == this._getURISchemeHostAndPort(login.formActionURL)) score += 10; if (this._getURIHostAndPort(actionURL) == this._getURIHostAndPort(login.formActionURL)) score += 8; var maxURLscore = 0; for (i = 0; i < login.URLs.length; i++) { var URLscore=0; // Unfortunately the container is declared to have elements // that are generic nsIMutableArray. So, we must QI... var loginURL = login.URLs.queryElementAt(i,Components.interfaces.kfIURL); if (KFLog.logSensitiveData) KFLog.debug(loginURL.URL); if (URL == loginURL.URL) URLscore = 22; else if (this._getURIExcludingQS(URL) == this._getURIExcludingQS(loginURL.URL)) URLscore = 15; else if (this._getURISchemeHostAndPort(URL) == this._getURISchemeHostAndPort(loginURL.URL)) URLscore = 9; else if (this._getURIHostAndPort(URL) == this._getURIHostAndPort(loginURL.URL)) URLscore = 4; if (URLscore > maxURLscore) maxURLscore = URLscore; } score += maxURLscore; // TODO: username and password field test unlikely to help much but shouldn't harm either so will leave it in for testing for a bit //TODO: disabled until see need to modify for new index based username data //if (login.username != null && usernameField.name == login.username.name) // score += 3; // TODO: password test currently disabled - re-enable by making it work with multi-passwords. //if (passwordField == login.passwordField) // score += 2; KFLog.info("Relevance for " + login.uniqueID + " is: "+score); return score; }, |
|
function _callPrint(element){ if (element && element.printPage) element.printPage(); else setTimeout(function(){ | function _callPrint(element) { if (element && element["printPage"]) element["printPage"](); else setTimeout(function () { | function _callPrint(element){ if (element && element.printPage) element.printPage(); else setTimeout(function(){ _callPrint(element); }, 50); } |
if (Application.extensions.has("chris.tomlinson@keefox")) { var em = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); em.uninstallItem("chris.tomlinson@keefox"); var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow("navigator:browser"); | _checkForConflictingExtensions: function() { // {22119944-ED35-4ab1-910B-E619EA06A115} - roboform if (Application.extensions.has("chris.tomlinson@keefox")) { // uninstall the old version of KeeFox (never published on AMO) var em = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); em.uninstallItem("chris.tomlinson@keefox"); var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow("navigator:browser"); // get a reference to the prompt service component. var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); promptService.alert("Old KeeFox found! An old version of KeeFox has been detected and automatically uninstalled. You must restart your browser again before the new version will work."); return false; } // also prevent startup if this version is too old if ((new Date()).getMonth() > 6 || (new Date()).getFullYear > 2010) return false; return true; }, |
|
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); promptService.alert("Old KeeFox found! An old version of KeeFox has been detected and automatically uninstalled. You must restart your browser again before the new version will work."); return false; } | _checkForConflictingExtensions: function() { // {22119944-ED35-4ab1-910B-E619EA06A115} - roboform if (Application.extensions.has("chris.tomlinson@keefox")) { // uninstall the old version of KeeFox (never published on AMO) var em = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); em.uninstallItem("chris.tomlinson@keefox"); var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow("navigator:browser"); // get a reference to the prompt service component. var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); promptService.alert("Old KeeFox found! An old version of KeeFox has been detected and automatically uninstalled. You must restart your browser again before the new version will work."); return false; } // also prevent startup if this version is too old if ((new Date()).getMonth() > 6 || (new Date()).getFullYear > 2010) return false; return true; }, |
|
if ((new Date()).getMonth() > 6 || (new Date()).getFullYear > 2010) return false; | _checkForConflictingExtensions: function() { // {22119944-ED35-4ab1-910B-E619EA06A115} - roboform if (Application.extensions.has("chris.tomlinson@keefox")) { // uninstall the old version of KeeFox (never published on AMO) var em = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); em.uninstallItem("chris.tomlinson@keefox"); var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow("navigator:browser"); // get a reference to the prompt service component. var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); promptService.alert("Old KeeFox found! An old version of KeeFox has been detected and automatically uninstalled. You must restart your browser again before the new version will work."); return false; } // also prevent startup if this version is too old if ((new Date()).getMonth() > 6 || (new Date()).getFullYear > 2010) return false; return true; }, |
|
if ((new Date()).getMonth() > 6 || (new Date()).getFullYear > 2010) return false; | _checkForConflictingExtensions: function() { // {22119944-ED35-4ab1-910B-E619EA06A115} - roboform if (Application.extensions.has("{ec8030f7-c20a-464f-9b0e-13a3a9e97384}")) { // uninstall the old version of KeeFox (never published on AMO) var em = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); em.uninstallItem("{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"); var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow("navigator:browser"); // get a reference to the prompt service component. var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); promptService.alert("Old KeeFox found! An old version of KeeFox has been detected and automatically uninstalled. You must restart your browser again before the new version will work."); return false; } return true; }, |
|
if (Application.extensions.has("{ec8030f7-c20a-464f-9b0e-13a3a9e97384}")) | if (Application.extensions.has("chris.tomlinson@keefox")) | _checkForConflictingExtensions: function() { // {22119944-ED35-4ab1-910B-E619EA06A115} - roboform if (Application.extensions.has("{ec8030f7-c20a-464f-9b0e-13a3a9e97384}")) { // uninstall the old version of KeeFox (never published on AMO) var em = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); em.uninstallItem("{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"); var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow("navigator:browser"); // get a reference to the prompt service component. var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); promptService.alert("Old KeeFox found! An old version of KeeFox has been detected and automatically uninstalled. You must restart your browser again before the new version will work."); return false; } // also prevent startup if this version is too old if ((new Date()).getMonth() > 6 || (new Date()).getFullYear > 2010) return false; return true; }, |
em.uninstallItem("{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"); | em.uninstallItem("chris.tomlinson@keefox"); | _checkForConflictingExtensions: function() { // {22119944-ED35-4ab1-910B-E619EA06A115} - roboform if (Application.extensions.has("{ec8030f7-c20a-464f-9b0e-13a3a9e97384}")) { // uninstall the old version of KeeFox (never published on AMO) var em = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); em.uninstallItem("{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"); var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow("navigator:browser"); // get a reference to the prompt service component. var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); promptService.alert("Old KeeFox found! An old version of KeeFox has been detected and automatically uninstalled. You must restart your browser again before the new version will work."); return false; } // also prevent startup if this version is too old if ((new Date()).getMonth() > 6 || (new Date()).getFullYear > 2010) return false; return true; }, |
this._KFLog.debug("Looking for the KeePass EXE in " + keePassLocation); | if (this._KFLog.logSensitiveData) this._KFLog.debug("Looking for the KeePass EXE in " + keePassLocation); else this._KFLog.debug("Looking for the KeePass EXE."); | _confirmKeePassInstallLocation: function(keePassLocation) { var KeePassEXEfound; KeePassEXEfound = false; this._KFLog.debug("Looking for the KeePass EXE in " + keePassLocation); var file = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); try { file.initWithPath(keePassLocation); if (file.isDirectory()) { file.append("KeePass.exe"); if (file.isFile()) { KeePassEXEfound = true; this._KFLog.info("KeePass EXE found in correct location."); } } } catch (ex) { /* no need to do anything */ } return KeePassEXEfound; }, |
this._intConverter;b.jsType="number";break;case "xsd:string":b.func=this._textConverter;b.jsType="string";break;case "Restrictions":b.func=this._restrictionsConverter;b.jsType="object";break;default:b.func=this._textConverter;b.jsType="object";break}return b},_createFieldGetter:function(a,b,d,c){if(d===null)d="1";if(c===null)c="1";var e=this,f;if(c==="1")if(d==="1")f=function(){var g=m(this.row,r,null,a);return b(e._elementText(g.item(0)))};else{if(d==="0")f=function(){var g=m(this.row,r,null,a); return g.length?b(e._elementText(g.item(0))):null}}else if(d==="1")f=function(){var g=m(this.row,r,null,a);return e._arrayConverter(g,b)};else if(d==="0")f=function(){var g=m(this.row,r,null,a);return g.length?e._arrayConverter(g,b):null};return f},getType:function(){return this._type},getFields:function(){for(var a=[],b=this._fieldCount,d=this.fieldOrder,c=0;c<b;c++)a[c]=this.fieldDef(d[c]);return a},getFieldNames:function(){for(var a=[],b=0,d=this.fieldCount();b<d;b++)a[b]=this.fieldOrder[b];return a}, | this._intConverter;b.jsType="number";break;case "xsd:string":b.func=this._textConverter;b.jsType="string";break;case "Restrictions":b.func=this._restrictionsConverter;b.jsType="object";break;default:b.func=this._textConverter;b.jsType="object";break}return b},_createFieldGetter:function(a,b,d,c){if(d===null)d="1";if(c===null)c="1";var e=this,h;if(c==="1")if(d==="1")h=function(){var f=o(this.row,s,null,a);return b(e._elementText(f.item(0)))};else{if(d==="0")h=function(){var f=o(this.row,s,null,a); return f.length?b(e._elementText(f.item(0))):null}}else if(d==="1")h=function(){var f=o(this.row,s,null,a);return e._arrayConverter(f,b)};else if(d==="0")h=function(){var f=o(this.row,s,null,a);return f.length?e._arrayConverter(f,b):null};return h},getType:function(){return this._type},getFields:function(){for(var a=[],b=this._fieldCount,d=this.fieldOrder,c=0;c<b;c+=1)a[c]=this.fieldDef(d[c]);return a},getFieldNames:function(){for(var a=[],b=0,d=this.fieldCount();b<d;b+=1)a[b]=this.fieldOrder[b]; | this._intConverter;b.jsType="number";break;case "xsd:string":b.func=this._textConverter;b.jsType="string";break;case "Restrictions":b.func=this._restrictionsConverter;b.jsType="object";break;default:b.func=this._textConverter;b.jsType="object";break}return b},_createFieldGetter:function(a,b,d,c){if(d===null)d="1";if(c===null)c="1";var e=this,f;if(c==="1")if(d==="1")f=function(){var g=m(this.row,r,null,a);return b(e._elementText(g.item(0)))};else{if(d==="0")f=function(){var g=m(this.row,r,null,a);return g.length?b(e._elementText(g.item(0))):null}}else if(d==="1")f=function(){var g=m(this.row,r,null,a);return e._arrayConverter(g,b)};else if(d==="0")f=function(){var g=m(this.row,r,null,a);return g.length?e._arrayConverter(g,b):null};return f},getType:function(){return this._type},getFields:function(){for(var a=[],b=this._fieldCount,d=this.fieldOrder,c=0;c<b;c++)a[c]=this.fieldDef(d[c]);return a},getFieldNames:function(){for(var a=[],b=0,d=this.fieldCount();b<d;b++)a[b]=this.fieldOrder[b];return a}, |
for (var i=0; i<numChildNodes; i++){ | for (var i=0; i<numChildNodes; i += 1){ | _elementText: function(el){ if (el.innerText) { //ie return el.innerText; } else if (el.textContent) { //ff return el.textContent; } else { //generic var text = "", childNodes = el.childNodes, numChildNodes = childNodes.length ; for (var i=0; i<numChildNodes; i++){ text += childNodes.item(i).data; } return text; } }, |
c)};this.fieldOrder.push(e)}}}else Xmla.Exception._newError("ERROR_PARSING_RESPONSE","Xmla.Rowset",a)._throw()},_boolConverter:function(a){return a==="true"?true:false},_intConverter:function(a){return parseInt(a,10)},_floatConverter:function(a){return parseFloat(a,10)},_textConverter:function(a){return a},_restrictionsConverter:function(a){return a},_arrayConverter:function(a,b){for(var d=[],c=a.length,e,f=0;f<c;f++){e=a.item(f);d.push(b(this._elementText(e)))}return d},_elementText:function(a){if(a.innerText)return a.innerText; else if(a.textContent)return a.textContent;else{var b="";a=a.childNodes;for(var d=a.length,c=0;c<d;c++)b+=a.item(c).data;return b}},_getValueConverter:function(a){var b={};switch(a){case "xsd:boolean":b.func=this._boolConverter;b.jsType="boolean";break;case "xsd:decimal":case "xsd:double":case "xsd:float":b.func=this._floatConverter;b.jsType="number";break;case "xsd:int":case "xsd:integer":case "xsd:nonPositiveInteger":case "xsd:negativeInteger":case "xsd:nonNegativeInteger":case "xsd:positiveInteger":case "xsd:short":case "xsd:byte":case "xsd:long":case "xsd:unsignedLong":case "xsd:unsignedInt":case "xsd:unsignedShort":case "xsd:unsignedByte":b.func= | f,c)};this.fieldOrder.push(e)}}}else Xmla.Exception._newError("ERROR_PARSING_RESPONSE","Xmla.Rowset",a)._throw()},_boolConverter:function(a){return a==="true"?true:false},_intConverter:function(a){return parseInt(a,10)},_floatConverter:function(a){return parseFloat(a,10)},_textConverter:function(a){return a},_restrictionsConverter:function(a){return a},_arrayConverter:function(a,b){for(var d=[],c=a.length,e,h=0;h<c;h+=1){e=a.item(h);d.push(b(this._elementText(e)))}return d},_elementText:function(a){if(a.innerText)return a.innerText; else if(a.textContent)return a.textContent;else{var b="";a=a.childNodes;for(var d=a.length,c=0;c<d;c+=1)b+=a.item(c).data;return b}},_getValueConverter:function(a){var b={};switch(a){case "xsd:boolean":b.func=this._boolConverter;b.jsType="boolean";break;case "xsd:decimal":case "xsd:double":case "xsd:float":b.func=this._floatConverter;b.jsType="number";break;case "xsd:int":case "xsd:integer":case "xsd:nonPositiveInteger":case "xsd:negativeInteger":case "xsd:nonNegativeInteger":case "xsd:positiveInteger":case "xsd:short":case "xsd:byte":case "xsd:long":case "xsd:unsignedLong":case "xsd:unsignedInt":case "xsd:unsignedShort":case "xsd:unsignedByte":b.func= | c)};this.fieldOrder.push(e)}}}else Xmla.Exception._newError("ERROR_PARSING_RESPONSE","Xmla.Rowset",a)._throw()},_boolConverter:function(a){return a==="true"?true:false},_intConverter:function(a){return parseInt(a,10)},_floatConverter:function(a){return parseFloat(a,10)},_textConverter:function(a){return a},_restrictionsConverter:function(a){return a},_arrayConverter:function(a,b){for(var d=[],c=a.length,e,f=0;f<c;f++){e=a.item(f);d.push(b(this._elementText(e)))}return d},_elementText:function(a){if(a.innerText)return a.innerText;else if(a.textContent)return a.textContent;else{var b="";a=a.childNodes;for(var d=a.length,c=0;c<d;c++)b+=a.item(c).data;return b}},_getValueConverter:function(a){var b={};switch(a){case "xsd:boolean":b.func=this._boolConverter;b.jsType="boolean";break;case "xsd:decimal":case "xsd:double":case "xsd:float":b.func=this._floatConverter;b.jsType="number";break;case "xsd:int":case "xsd:integer":case "xsd:nonPositiveInteger":case "xsd:negativeInteger":case "xsd:nonNegativeInteger":case "xsd:positiveInteger":case "xsd:short":case "xsd:byte":case "xsd:long":case "xsd:unsignedLong":case "xsd:unsignedInt":case "xsd:unsignedShort":case "xsd:unsignedByte":b.func= |
KFLog.debug("_fillAllFrames start"); | KFILM.prototype._fillAllFrames = function (window, initialPageLoad){ this._fillDocument(window.document,false); if (window.frames.length > 0) { KFLog.debug("Filling " + window.frames.length + " sub frames"); var frames = window.frames; for (var i = 0; i < frames.length; i++) this._fillAllFrames (frames[i], initialPageLoad); } }; |
|
for (var i=0; i<numListeners; i++){ | for (var i=0; i<numListeners; i += 1){ | _fireEvent: function(eventName, eventData, cancelable){ var listeners = this.listeners[eventName]; if (!listeners) { Xmla.Exception._newError( "UNKNOWN_EVENT", "Xmla._fireEvent", eventName )._throw(); } var numListeners = listeners.length; var outcome = true; if (numListeners) { var listener, listenerResult; for (var i=0; i<numListeners; i++){ listener = listeners[i]; listenerResult = listener.handler.call( listener.scope, eventName, eventData, this ); if (cancelable && listenerResult===false){ outcome = false; break; } } } else if (eventName==="error") { eventData.exception._throw(); } return outcome; }, |
"Xmla.addListener",a)._throw();for(var d=b.length,c,e=0;e<d;e++){c=b[e].replace(/\s+/g,"");(c=this.listeners[c])||Xmla.Exception._newError("UNKNOWN_EVENT","Xmla.addListener",a)._throw();if(t(a.handler)){if(!P(a.scope))a.scope=window;c.push(a)}else Xmla.Exception._newError("INVALID_EVENT_HANDLER","Xmla.addListener",a)._throw()}},_fireEvent:function(a,b,d){var c=this.listeners[a];c||Xmla.Exception._newError("UNKNOWN_EVENT","Xmla._fireEvent",a)._throw();var e=c.length,f=true;if(e)for(var g,i=0;i<e;i++){g= c[i];g=g.handler.call(g.scope,a,b,this);if(d&&g===false){f=false;break}}else a==="error"&&b.exception._throw();return f},request:function(a){var b=this;this.response&&this.response.close();this.responseXml=this.responseText=this.response=null;a.url=j(a.url)?this.options.url:a.url;if(j(a.url)){ex=Xmla.Exception._newError("MISSING_URL","Xmla.request",a);ex._throw()}a.properties=h(a.properties,this.options.properties,false);a.restrictions=h(a.restrictions,this.options.restrictions,false);a.async=j(a.async)? | Array||Xmla.Exception._newError("WRONG_EVENTS_FORMAT","Xmla.addListener",a)._throw();for(var d=b.length,c,e=0;e<d;e+=1){c=b[e].replace(/\s+/g,"");(c=this.listeners[c])||Xmla.Exception._newError("UNKNOWN_EVENT","Xmla.addListener",a)._throw();if(M(a.handler)){if(!P(a.scope))a.scope=window;c.push(a)}else Xmla.Exception._newError("INVALID_EVENT_HANDLER","Xmla.addListener",a)._throw()}},_fireEvent:function(a,b,d){var c=this.listeners[a];c||Xmla.Exception._newError("UNKNOWN_EVENT","Xmla._fireEvent",a)._throw(); var e=c.length,h=true;if(e)for(var f,i=0;i<e;i+=1){f=c[i];f=f.handler.call(f.scope,a,b,this);if(d&&f===false){h=false;break}}else a==="error"&&b.exception._throw();return h},request:function(a){var b,d=this;this.response&&this.response.close();this.responseXml=this.responseText=this.response=null;a.url=j(a.url)?this.options.url:a.url;if(j(a.url)){b=Xmla.Exception._newError("MISSING_URL","Xmla.request",a);b._throw()}a.properties=g(a.properties,this.options.properties,false);a.restrictions=g(a.restrictions, | "Xmla.addListener",a)._throw();for(var d=b.length,c,e=0;e<d;e++){c=b[e].replace(/\s+/g,"");(c=this.listeners[c])||Xmla.Exception._newError("UNKNOWN_EVENT","Xmla.addListener",a)._throw();if(t(a.handler)){if(!P(a.scope))a.scope=window;c.push(a)}else Xmla.Exception._newError("INVALID_EVENT_HANDLER","Xmla.addListener",a)._throw()}},_fireEvent:function(a,b,d){var c=this.listeners[a];c||Xmla.Exception._newError("UNKNOWN_EVENT","Xmla._fireEvent",a)._throw();var e=c.length,f=true;if(e)for(var g,i=0;i<e;i++){g=c[i];g=g.handler.call(g.scope,a,b,this);if(d&&g===false){f=false;break}}else a==="error"&&b.exception._throw();return f},request:function(a){var b=this;this.response&&this.response.close();this.responseXml=this.responseText=this.response=null;a.url=j(a.url)?this.options.url:a.url;if(j(a.url)){ex=Xmla.Exception._newError("MISSING_URL","Xmla.request",a);ex._throw()}a.properties=h(a.properties,this.options.properties,false);a.restrictions=h(a.restrictions,this.options.restrictions,false);a.async=j(a.async)? |
if (computedStyle.getPropertyValue('float') != 'none' | if (computedStyle && computedStyle.getPropertyValue('float') != 'none' | _generate: function (win) { if (!win) win = config.browser.contentWindow; let doc = win.document; let [offsetX, offsetY] = this._getContainerOffsets(doc); let baseNodeAbsolute = util.xmlToDom(<span highlight="Hint"/>, doc); let res = util.evaluateXPath(this._hintMode.tags(), doc, null, true); let fragment = util.xmlToDom(<div highlight="hints"/>, doc); let start = this._pageHints.length; let elem; let that = this; function makeHint (elem) { let rect = elem.getClientRects()[0]; let hint = { elem: elem, showText: false }; if (elem instanceof HTMLInputElement || elem instanceof HTMLSelectElement || elem instanceof HTMLTextAreaElement) [hint.text, hint.showText] = that._getInputHint(elem, doc); else hint.text = elem.textContent.toLowerCase(); hint.span = baseNodeAbsolute.cloneNode(true); let leftPos = Math.max((rect.left + offsetX), offsetX); let topPos = Math.max((rect.top + offsetY), offsetY); if (elem instanceof HTMLAreaElement) [leftPos, topPos] = that._getAreaOffset(elem, leftPos, topPos); hint.span.style.left = leftPos + "px"; hint.span.style.top = topPos + "px"; fragment.appendChild(hint.span); that._pageHints.push(hint); } while (elem = res.iterateNext()) { let rect = elem.getBoundingClientRect(); // If the rect has a zero dimension, it may contain // floated children. In that case, the children's rects // are most probably where the hints should be at. if (rect.width == 0 || rect.height == 0) { let hasFloatChild = false; for (let i = 0; i < elem.childNodes.length; i++) { if (elem.childNodes[i].nodeType != 1) // nodeType 1: elem_NODE continue; let computedStyle = doc.defaultView.getComputedStyle(elem.childNodes[i], null); if (computedStyle.getPropertyValue('float') != 'none' && this._isVisible(elem.childNodes[i], win)) { makeHint(elem.childNodes[i]); hasFloatChild = true; break; } } if (hasFloatChild) continue; } if (this._isVisible(elem, win)) makeHint(elem); } let body = doc.body || util.evaluateXPath(["body"], doc).snapshotItem(0); if (body) { body.appendChild(fragment); this._docs.push({ doc: doc, start: start, end: this._pageHints.length - 1 }); } // also _generate hints for frames Array.forEach(win.frames, this.closure._generate); return true; }, |
var port = (window.location.port) ? ':' + +window.location.port : ''; | var port = (window.location.port) ? ':' + window.location.port : ''; | function _getBaseHref() { var port = (window.location.port) ? ':' + +window.location.port : ''; return window.location.protocol + '//' + window.location.hostname + port + window.location.pathname; } |
if ($.browser.mozilla) | if ($.browser.mozilla && this.firstChild) | function _getElementHTMLIncludingFormElements(element){ var $element = $(element); //Radiobuttons and checkboxes $(":checked", $element).each(function(){ this.setAttribute('checked', 'checked'); }); //simple text inputs $("input[type='text']", $element).each(function(){ this.setAttribute('value', $(this).val()); }); $("select", $element).each(function(){ var $select = $(this); $("option", $select).each(function(){ if ($select.val() == $(this).val()) this.setAttribute('selected', 'selected'); }); }); $("textarea", $element).each(function(){ //Thanks http://blog.ekini.net/2009/02/24/jquery-getting-the-latest-textvalue-inside-a-textarea/ var value = $(this).attr('value'); if ($.browser.mozilla) this.firstChild.textContent = value; else this.innerHTML = value; }); //http://dbj.org/dbj/?p=91 var elementHtml = $('<div></div>').append($element.clone()).html(); return elementHtml; } |
function _getMarkup(element, opts) { var $elementToPrint = $(element); | function _getMarkup(element, opts){ var $element = $(element); var elementHtml = _getElementHTMLIncludingFormElements(element); | function _getMarkup(element, opts) { var $elementToPrint = $(element); var html = new Array(); html.push('<html><head><title>' + opts.pageTitle + '</title>'); if (opts.overrideElementCSS && opts.overrideElementCSS.length > 0) { for (var x = 0; x < opts.overrideElementCSS.length; x++) { html.push('<link type="text/css" rel="stylesheet" href="' + opts.overrideElementCSS[x] + '" >'); } } else { $(document).find("link ") .filter(function() { return $(this).attr("rel").toLowerCase() == "stylesheet"; }) .each(function() { html.push('<link type="text/css" rel="stylesheet" href="' + $(this).attr("href") + '" >'); }); } html.push('</head><body onload="printPage();" style="' + opts.printBodyOptions.styleToAdd + '" class="' + opts.printBodyOptions.classNameToAdd + '">'); html.push('<div class="' + $elementToPrint.attr("class") + '">' + $elementToPrint.html() + '</div>'); html.push('<script type="text/javascript">function printPage() { focus();print();' + (opts.leaveOpen ? '' : 'close();') + '}</script></body></html>'); return html.join(''); }; |
if (opts.overrideElementCSS && opts.overrideElementCSS.length > 0) { for (var x = 0; x < opts.overrideElementCSS.length; x++) { html.push('<link type="text/css" rel="stylesheet" href="' + opts.overrideElementCSS[x] + '" >'); | if (opts.overrideElementCSS) { if (opts.overrideElementCSS.length > 0) { for (var x = 0; x < opts.overrideElementCSS.length; x++) { var current = opts.overrideElementCSS[x]; if (typeof(current) == 'string') html.push('<link type="text/css" rel="stylesheet" href="' + current + '" >'); else html.push('<link type="text/css" rel="stylesheet" href="' + current.href + '" media="' + current.media + '" >'); } | function _getMarkup(element, opts) { var $elementToPrint = $(element); var html = new Array(); html.push('<html><head><title>' + opts.pageTitle + '</title>'); if (opts.overrideElementCSS && opts.overrideElementCSS.length > 0) { for (var x = 0; x < opts.overrideElementCSS.length; x++) { html.push('<link type="text/css" rel="stylesheet" href="' + opts.overrideElementCSS[x] + '" >'); } } else { $(document).find("link ") .filter(function() { return $(this).attr("rel").toLowerCase() == "stylesheet"; }) .each(function() { html.push('<link type="text/css" rel="stylesheet" href="' + $(this).attr("href") + '" >'); }); } html.push('</head><body onload="printPage();" style="' + opts.printBodyOptions.styleToAdd + '" class="' + opts.printBodyOptions.classNameToAdd + '">'); html.push('<div class="' + $elementToPrint.attr("class") + '">' + $elementToPrint.html() + '</div>'); html.push('<script type="text/javascript">function printPage() { focus();print();' + (opts.leaveOpen ? '' : 'close();') + '}</script></body></html>'); return html.join(''); }; |
$(document).find("link ") .filter(function() { return $(this).attr("rel").toLowerCase() == "stylesheet"; }) .each(function() { html.push('<link type="text/css" rel="stylesheet" href="' + $(this).attr("href") + '" >'); }); | $(document).find("link").filter(function(){ return $(this).attr("rel").toLowerCase() == "stylesheet"; }).each(function(){ html.push('<link type="text/css" rel="stylesheet" href="' + $(this).attr("href") + '" media="' + $(this).attr('media') + '" >'); }); | function _getMarkup(element, opts) { var $elementToPrint = $(element); var html = new Array(); html.push('<html><head><title>' + opts.pageTitle + '</title>'); if (opts.overrideElementCSS && opts.overrideElementCSS.length > 0) { for (var x = 0; x < opts.overrideElementCSS.length; x++) { html.push('<link type="text/css" rel="stylesheet" href="' + opts.overrideElementCSS[x] + '" >'); } } else { $(document).find("link ") .filter(function() { return $(this).attr("rel").toLowerCase() == "stylesheet"; }) .each(function() { html.push('<link type="text/css" rel="stylesheet" href="' + $(this).attr("href") + '" >'); }); } html.push('</head><body onload="printPage();" style="' + opts.printBodyOptions.styleToAdd + '" class="' + opts.printBodyOptions.classNameToAdd + '">'); html.push('<div class="' + $elementToPrint.attr("class") + '">' + $elementToPrint.html() + '</div>'); html.push('<script type="text/javascript">function printPage() { focus();print();' + (opts.leaveOpen ? '' : 'close();') + '}</script></body></html>'); return html.join(''); }; |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.