wnd_st = 0;wnd_y = 0;wnd_x = 0;doc_x = 0;doc_y = 0;/*! jQuery UI - v1.12.1 - 2021-08-16* http://jqueryui.com* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js* Copyright jQuery Foundation and other contributors; Licensed MIT */!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(_){_.ui=_.ui||{};_.ui.version="1.12.1";var o,i=0,a=Array.prototype.slice;_.cleanData=(o=_.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)try{(e=_._data(i,"events"))&&e.remove&&_(i).triggerHandler("remove")}catch(t){}o(t)}),_.widget=function(t,i,e){var n,o,s,r={},a=t.split(".")[0],c=a+"-"+(t=t.split(".")[1]);return e||(e=i,i=_.Widget),_.isArray(e)&&(e=_.extend.apply(null,[{}].concat(e))),_.expr[":"][c.toLowerCase()]=function(t){return!!_.data(t,c)},_[a]=_[a]||{},n=_[a][t],o=_[a][t]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},_.extend(o,n,{version:e.version,_proto:_.extend({},e),_childConstructors:[]}),(s=new i).options=_.widget.extend({},s.options),_.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}_.isFunction(n)?r[e]=function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}:r[e]=n}),o.prototype=_.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:a,widgetName:t,widgetFullName:c}),n?(_.each(n._childConstructors,function(t,e){var i=e.prototype;_.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),_.widget.bridge(t,o),o},_.widget.extend=function(t){for(var e,i,n=a.call(arguments,1),o=0,s=n.length;o",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=_(e||this.defaultElement||this)[0],this.element=_(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=_(),this.hoverable=_(),this.focusable=_(),this.classesElementLookup={},e!==this&&(_.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=_(e.style?e.ownerDocument:e.document||e),this.window=_(this.document[0].defaultView||this.document[0].parentWindow)),this.options=_.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:_.noop,_create:_.noop,_init:_.noop,destroy:function(){var i=this;this._destroy(),_.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:_.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return _.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=_.widget.extend({},this.options[t]),o=0;o
"),i=e.children()[0];return _("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthC(W(n),W(o))?s.important="horizontal":s.important="vertical",h.using.call(this,t,s)}),r.offset(_.extend(f,{using:t}))})},_.ui.position={fit:{left:function(t,e){var i=e.within,n=i.isWindow?i.scrollLeft:i.offset.left,o=i.width,s=t.left-e.collisionPosition.marginLeft,r=n-s,a=s+e.collisionWidth-o-n;e.collisionWidth>o?0o?0?@[\]^`{|}~])/g,function(t){return t.replace(e,"\\$1")}),_.fn.labels=function(){var t,e,i;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+_.ui.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e))},_.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=_(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:_(this[0].ownerDocument||document)},_.extend(_.expr[":"],{tabbable:function(t){var e=_.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&_.ui.focusable(t,i)}}),_.fn.extend({uniqueId:(h=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++h)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&_(this).removeAttr("id")})}});var e,h,u,d,p,g,m,v,b,y,w,x,E,P,S,L,q,D,B,N,F,O,I="ui-effects-",M="ui-effects-style",R="ui-effects-animated",j=_;function A(t,e,i){var n=y[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:t<0?0:n.max")[0],x=u.each,K.style.cssText="background-color:rgba(1,1,1,.5)",w.rgba=-1s.mod/2?n+=s.mod:n-o>s.mod/2&&(n-=s.mod)),c[i]=A((o-n)*r+n,e)))}),this[e](c)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),n=v(t)._rgba;return v(u.map(e,function(t,e){return(1-i)*n[e]+i*t}))},toRgbaString:function(){var t="rgba(",e=u.map(this._rgba,function(t,e){return null==t?2").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return i.wrap(t),i[0]!==o&&!_.contains(i[0],o)||_(o).trigger("focus"),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(_.extend(n,{position:i.css("position"),zIndex:i.css("z-index")}),_.each(["top","left","bottom","right"],function(t,e){n[e]=i.css(e),isNaN(parseInt(n[e],10))&&(n[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(n).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!_.contains(t[0],e)||_(e).trigger("focus")),t}}),_.extend(_.effects,{version:"1.12.1",define:function(t,e,i){return i||(i=e,e="effect"),_.effects.effect[t]=i,_.effects.effect[t].mode=e,i},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(e||100)/100:1,e="vertical"!==i?(e||100)/100:1;return{height:t.height()*e,width:t.width()*n,outerHeight:t.outerHeight()*e,outerWidth:t.outerWidth()*n}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var n=t.queue();1").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(I+"placeholder",e)),t.css({position:i,left:n.left,top:n.top}),e},removePlaceholder:function(t){var e=I+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(t){_.effects.restoreStyle(t),_.effects.removePlaceholder(t)},setTransition:function(n,t,o,s){return s=s||{},_.each(t,function(t,e){var i=n.cssUnit(e);0").appendTo("body").addClass(t.className).css({top:n.top-r,left:n.left-a,height:i.innerHeight(),width:i.innerWidth(),position:o?"fixed":"absolute"}).animate(s,t.duration,t.easing,function(){c.remove(),_.isFunction(e)&&e()})}}),_.fx.step.clip=function(t){t.clipInit||(t.start=_(t.elem).cssClip(),"string"==typeof t.end&&(t.end=V(t.end,t.elem)),t.clipInit=!0),_(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},O={},_.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){O[t]=function(t){return Math.pow(t,e+2)}}),_.extend(O,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),_.each(O,function(t,e){_.easing["easeIn"+t]=e,_.easing["easeOut"+t]=function(t){return 1-e(1-t)},_.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});var K=_.effects;_.effects.define("blind","hide",function(t,e){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=_(this),o=t.direction||"up",s=n.cssClip(),r={clip:_.extend({},s)},a=_.effects.createPlaceholder(n);r.clip[i[o][0]]=r.clip[i[o][1]],"show"===t.mode&&(n.cssClip(r.clip),a&&a.css(_.effects.clipToBox(r)),r.clip=s),a&&a.animate(_.effects.clipToBox(r),t.duration,t.easing),n.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),_.effects.define("bounce",function(t,e){var i,n,o=_(this),s=t.mode,r="hide"===s,a="show"===s,c=t.direction||"up",f=t.distance,l=t.times||5,s=2*l+(a||r?1:0),h=t.duration/s,u=t.easing,d="up"===c||"down"===c?"top":"left",p="up"===c||"left"===c,g=0,t=o.queue().length;for(_.effects.createPlaceholder(o),c=o.css(d),f=f||o["top"==d?"outerHeight":"outerWidth"]()/3,a&&((n={opacity:1})[d]=c,o.css("opacity",0).css(d,p?2*-f:2*f).animate(n,h,u)),r&&(f/=Math.pow(2,l-1)),(n={})[d]=c;g").css({position:"absolute",visibility:"visible",left:-n*d,top:-i*p}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:d,height:p,left:o+(h?r*d:0),top:s+(h?a*p:0),opacity:h?0:1}).animate({left:o+(h?0:r*d),top:s+(h?0:a*p),opacity:h?1:0},t.duration||500,t.easing,m)}),_.effects.define("fade","toggle",function(t,e){var i="show"===t.mode;_(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),_.effects.define("fold","hide",function(e,t){var i=_(this),n=e.mode,o="show"===n,s="hide"===n,r=e.size||15,a=/([0-9]+)%/.exec(r),c=!!e.horizFirst?["right","bottom"]:["bottom","right"],f=e.duration/2,l=_.effects.createPlaceholder(i),h=i.cssClip(),u={clip:_.extend({},h)},d={clip:_.extend({},h)},p=[h[c[0]],h[c[1]]],n=i.queue().length;a&&(r=parseInt(a[1],10)/100*p[s?0:1]),u.clip[c[0]]=r,d.clip[c[0]]=r,d.clip[c[1]]=0,o&&(i.cssClip(d.clip),l&&l.css(_.effects.clipToBox(d)),d.clip=h),i.queue(function(t){l&&l.animate(_.effects.clipToBox(u),f,e.easing).animate(_.effects.clipToBox(d),f,e.easing),t()}).animate(u,f,e.easing).animate(d,f,e.easing).queue(t),_.effects.unshift(i,n,4)}),_.effects.define("highlight","show",function(t,e){var i=_(this),n={backgroundColor:i.css("backgroundColor")};"hide"===t.mode&&(n.opacity=0),_.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(n,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),_.effects.define("size",function(n,e){var o,i=_(this),t=["fontSize"],s=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],r=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],a=n.mode,c="effect"!==a,f=n.scale||"both",l=n.origin||["middle","center"],h=i.css("position"),u=i.position(),d=_.effects.scaledDimensions(i),p=n.from||d,g=n.to||_.effects.scaledDimensions(i,0);_.effects.createPlaceholder(i),"show"===a&&(a=p,p=g,g=a),o={from:{y:p.height/d.height,x:p.width/d.width},to:{y:g.height/d.height,x:g.width/d.width}},"box"!==f&&"both"!==f||(o.from.y!==o.to.y&&(p=_.effects.setTransition(i,s,o.from.y,p),g=_.effects.setTransition(i,s,o.to.y,g)),o.from.x!==o.to.x&&(p=_.effects.setTransition(i,r,o.from.x,p),g=_.effects.setTransition(i,r,o.to.x,g))),"content"!==f&&"both"!==f||o.from.y!==o.to.y&&(p=_.effects.setTransition(i,t,o.from.y,p),g=_.effects.setTransition(i,t,o.to.y,g)),l&&(l=_.effects.getBaseline(l,d),p.top=(d.outerHeight-p.outerHeight)*l.y+u.top,p.left=(d.outerWidth-p.outerWidth)*l.x+u.left,g.top=(d.outerHeight-g.outerHeight)*l.y+u.top,g.left=(d.outerWidth-g.outerWidth)*l.x+u.left),i.css(p),"content"!==f&&"both"!==f||(s=s.concat(["marginTop","marginBottom"]).concat(t),r=r.concat(["marginLeft","marginRight"]),i.find("*[width]").each(function(){var t=_(this),e=_.effects.scaledDimensions(t),i={height:e.height*o.from.y,width:e.width*o.from.x,outerHeight:e.outerHeight*o.from.y,outerWidth:e.outerWidth*o.from.x},e={height:e.height*o.to.y,width:e.width*o.to.x,outerHeight:e.height*o.to.y,outerWidth:e.width*o.to.x};o.from.y!==o.to.y&&(i=_.effects.setTransition(t,s,o.from.y,i),e=_.effects.setTransition(t,s,o.to.y,e)),o.from.x!==o.to.x&&(i=_.effects.setTransition(t,r,o.from.x,i),e=_.effects.setTransition(t,r,o.to.x,e)),c&&_.effects.saveStyle(t),t.css(i),t.animate(e,n.duration,n.easing,function(){c&&_.effects.restoreStyle(t)})})),i.animate(g,{queue:!1,duration:n.duration,easing:n.easing,complete:function(){var t=i.offset();0===g.opacity&&i.css("opacity",p.opacity),c||(i.css("position","static"===h?"relative":h).offset(t),_.effects.saveStyle(i)),e()}})}),_.effects.define("scale",function(t,e){var i=_(this),n=t.mode,n=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==n?0:100),n=_.extend(!0,{from:_.effects.scaledDimensions(i),to:_.effects.scaledDimensions(i,n,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(n.from.opacity=1,n.to.opacity=0),_.effects.effect.size.call(this,n,e)}),_.effects.define("puff","hide",function(t,e){t=_.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});_.effects.effect.scale.call(this,t,e)}),_.effects.define("pulsate","show",function(t,e){var i=_(this),n=t.mode,o="show"===n,s=2*(t.times||5)+(o||"hide"===n?1:0),r=t.duration/s,a=0,c=1,n=i.queue().length;for(!o&&i.is(":visible")||(i.css("opacity",0).show(),a=1);c= 1){return (o-1) <= 0 ? t : (o-1);}else{return t;}}else{if(o < t) {return (o+1);}else{return 1;}}}function upi_log_io(io, p, j) {j_d = {'cmt_wnd':0};if(typeof j=="object"){j_d=jQuery.extend(j_d,j)}jQuery.ajax({type: 'POST', cache: false,url: '/accounts/logio',data: p,dataType: 'json',success: function(d) {if(io == 'i') {var msg = d.msg ? d.msg : 'unable to login';jQuery('.dialog').html(msg);if(d.loggedin) {if(d.hdr) {jQuery('#account_hc').html(d.hdr);}if(j_d.redir) {window.location = '/accounts';} else {upi_ol.close();}}}else{if(d.hdr) {jQuery('#account_hc').html(d.hdr);}}}});}var upi_ol = {go: function(url, op) {upi_ol.ol_shown = 1;var cont_div = jQuery('#upi_ol_div').find('.content');jQuery('#upi_ol_div').css({width: '200px', height: '40px'});cont_div.css({width: '200px', height: '40px'});cont_div.empty().html('
');upi_ol.xy_opac(1);jQuery('#upi_ol_div').fadeIn('fast');var ol_x = op.x ? op.x : 500;var ol_y = op.y ? op.y : 500;if(ol_x >= wnd_x) {ol_x = wnd_x - 100;}if(ol_y >= wnd_y) {ol_y = wnd_y - 100;}if(op.iframe) {cont_div.css({overflow: 'hidden'});cont_div.append('