Vergleich jscripts/jquery.plugins.min.js - 1.8.9 - 1.8.36

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1Zeile 1
!function(t){t.jGrowl=function(e,i){0===t("#jGrowl").length&&t('<div id="jGrowl"></div>').addClass(i&&i.position?i.position:t.jGrowl.defaults.position).appendTo(i&&i.appendTo?i.appendTo:t.jGrowl.defaults.appendTo),t("#jGrowl").jGrowl(e,i)},t.fn.jGrowl=function(e,i){if(void 0===i&&t.isPlainObject(e)&&(i=e,e=i.message),t.isFunction(this.each)){var o=arguments;return this.each(function(){void 0===t(this).data("jGrowl.instance")&&(t(this).data("jGrowl.instance",t.extend(new t.fn.jGrowl,{notifications:[],element:null,interval:null})),t(this).data("jGrowl.instance").startup(this)),t.isFunction(t(this).data("jGrowl.instance")[e])?t(this).data("jGrowl.instance")[e].apply(t(this).data("jGrowl.instance"),t.makeArray(o).slice(1)):t(this).data("jGrowl.instance").create(e,i)})}},t.extend(t.fn.jGrowl.prototype,{defaults:{pool:0,header:"",group:"",sticky:!1,position:"top-right",appendTo:"body",glue:"after",theme:"default",themeState:"highlight",corners:"10px",check:250,life:3e3,closeDuration:"normal",openDuration:"normal",easing:"swing",closer:!0,closeTemplate:"&times;",closerTemplate:"<div>[ close all ]</div>",log:function(){},beforeOpen:function(){},afterOpen:function(){},open:function(){},beforeClose:function(){},close:function(){},click:function(){},animateOpen:{opacity:"show"},animateClose:{opacity:"hide"}},notifications:[],element:null,interval:null,create:function(e,i){var o=t.extend({},this.defaults,i);"undefined"!=typeof o.speed&&(o.openDuration=o.speed,o.closeDuration=o.speed),this.notifications.push({message:e,options:o}),o.log.apply(this.element,[this.element,e,o])},render:function(e){var i=this,o=e.message,n=e.options;n.themeState=""===n.themeState?"":"ui-state-"+n.themeState;var s=t("<div/>").addClass("jGrowl-notification alert "+n.themeState+" ui-corner-all"+(void 0!==n.group&&""!==n.group?" "+n.group:"")).append(t("<button/>").addClass("jGrowl-close").html(n.closeTemplate)).append(t("<div/>").addClass("jGrowl-header").html(n.header)).append(t("<div/>").addClass("jGrowl-message").html(o)).data("jGrowl",n).addClass(n.theme).children(".jGrowl-close").bind("click.jGrowl",function(){return t(this).parent().trigger("jGrowl.beforeClose"),!1}).parent();t(s).bind("mouseover.jGrowl",function(){t(".jGrowl-notification",i.element).data("jGrowl.pause",!0)}).bind("mouseout.jGrowl",function(){t(".jGrowl-notification",i.element).data("jGrowl.pause",!1)}).bind("jGrowl.beforeOpen",function(){n.beforeOpen.apply(s,[s,o,n,i.element])!==!1&&t(this).trigger("jGrowl.open")}).bind("jGrowl.open",function(){n.open.apply(s,[s,o,n,i.element])!==!1&&("after"==n.glue?t(".jGrowl-notification:last",i.element).after(s):t(".jGrowl-notification:first",i.element).before(s),t(this).animate(n.animateOpen,n.openDuration,n.easing,function(){t.support.opacity===!1&&this.style.removeAttribute("filter"),null!==t(this).data("jGrowl")&&"undefined"!=typeof t(this).data("jGrowl")&&(t(this).data("jGrowl").created=new Date),t(this).trigger("jGrowl.afterOpen")}))}).bind("jGrowl.afterOpen",function(){n.afterOpen.apply(s,[s,o,n,i.element])}).bind("click",function(){n.click.apply(s,[s.message,n,i.element])}).bind("jGrowl.beforeClose",function(){n.beforeClose.apply(s,[s,o,n,i.element])!==!1&&t(this).trigger("jGrowl.close")}).bind("jGrowl.close",function(){t(this).data("jGrowl.pause",!0),t(this).animate(n.animateClose,n.closeDuration,n.easing,function(){t.isFunction(n.close)?n.close.apply(s,[s,o,n,i.element])!==!1&&t(this).remove():t(this).remove()})}).trigger("jGrowl.beforeOpen"),""!==n.corners&&void 0!==t.fn.corner&&t(s).corner(n.corners),t(".jGrowl-notification:parent",i.element).length>1&&0===t(".jGrowl-closer",i.element).length&&this.defaults.closer!==!1&&t(this.defaults.closerTemplate).addClass("jGrowl-closer "+this.defaults.themeState+" ui-corner-all").addClass(this.defaults.theme).appendTo(i.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){t(this).siblings().trigger("jGrowl.beforeClose"),t.isFunction(i.defaults.closer)&&i.defaults.closer.apply(t(this).parent()[0],[t(this).parent()[0]])})},update:function(){t(this.element).find(".jGrowl-notification:parent").each(function(){void 0!==t(this).data("jGrowl")&&void 0!==t(this).data("jGrowl").created&&t(this).data("jGrowl").created.getTime()+parseInt(t(this).data("jGrowl").life,10)<(new Date).getTime()&&t(this).data("jGrowl").sticky!==!0&&(void 0===t(this).data("jGrowl.pause")||t(this).data("jGrowl.pause")!==!0)&&t(this).trigger("jGrowl.beforeClose")}),this.notifications.length>0&&(0===this.defaults.pool||t(this.element).find(".jGrowl-notification:parent").length<this.defaults.pool)&&this.render(this.notifications.shift()),t(this.element).find(".jGrowl-notification:parent").length<2&&t(this.element).find(".jGrowl-closer").animate(this.defaults.animateClose,this.defaults.speed,this.defaults.easing,function(){t(this).remove()})},startup:function(e){this.element=t(e).addClass("jGrowl").append('<div class="jGrowl-notification"></div>'),this.interval=setInterval(function(){var i=t(e).data("jGrowl.instance");void 0!==i&&i.update()},parseInt(this.defaults.check,10))},shutdown:function(){t(this.element).removeClass("jGrowl").find(".jGrowl-notification").trigger("jGrowl.close").parent().empty(),clearInterval(this.interval)},close:function(){t(this.element).find(".jGrowl-notification").each(function(){t(this).trigger("jGrowl.beforeClose")})}}),t.jGrowl.defaults=t.fn.jGrowl.prototype.defaults}(jQuery),function(t){var e=null;t.modal=function(i,o){t.modal.close();var n,s;if(this.$body=t("body"),this.options=t.extend({},t.modal.defaults,o),this.options.doFade=!isNaN(parseInt(this.options.fadeDuration,10)),i.is("a"))if(s=i.attr("href"),/^#/.test(s)){if(this.$elm=t(s),1!==this.$elm.length)return null;this.open()}else this.$elm=t("<div>"),this.$body.append(this.$elm),n=function(t,e){e.elm.remove()},this.showSpinner(),i.trigger(t.modal.AJAX_SEND),t.get(s).done(function(o){e&&(i.trigger(t.modal.AJAX_SUCCESS),e.$elm.empty().append(o).on(t.modal.CLOSE,n),e.hideSpinner(),e.open(),i.trigger(t.modal.AJAX_COMPLETE))}).fail(function(){i.trigger(t.modal.AJAX_FAIL),e.hideSpinner(),i.trigger(t.modal.AJAX_COMPLETE)});else this.$elm=i,this.$body.append(this.$elm),this.open()},t.modal.prototype={constructor:t.modal,open:function(){var e=this;this.options.doFade?(this.block(),setTimeout(function(){e.show()},this.options.fadeDuration*this.options.fadeDelay)):(this.block(),this.show()),this.options.escapeClose&&t(document).on("keydown.modal",function(e){27==e.which&&t.modal.close()}),this.options.clickClose&&this.blocker.click(t.modal.close)},close:function(){this.unblock(),this.hide(),t(document).off("keydown.modal")},block:function(){var e=this.options.doFade?0:this.options.opacity;this.$elm.trigger(t.modal.BEFORE_BLOCK,[this._ctx()]),this.blocker=t('<div class="jquery-modal blocker"></div>').css({top:0,right:0,bottom:0,left:0,width:"100%",height:"100%",position:"fixed",zIndex:this.options.zIndex,background:this.options.overlay,opacity:e}),this.$body.append(this.blocker),this.options.doFade&&this.blocker.animate({opacity:this.options.opacity},this.options.fadeDuration),this.$elm.trigger(t.modal.BLOCK,[this._ctx()])},unblock:function(){this.options.doFade?this.blocker.fadeOut(this.options.fadeDuration,function(){t(this).remove()}):this.blocker.remove()},show:function(){this.$elm.trigger(t.modal.BEFORE_OPEN,[this._ctx()]),this.options.showClose&&(this.closeButton=t('<a href="#close-modal" rel="modal:close" class="close-modal '+this.options.closeClass+'">'+this.options.closeText+"</a>"),this.$elm.append(this.closeButton)),this.$elm.addClass(this.options.modalClass+" current"),this.center(),this.options.doFade?this.$elm.fadeIn(this.options.fadeDuration):this.$elm.show(),this.$elm.trigger(t.modal.OPEN,[this._ctx()])},hide:function(){this.$elm.trigger(t.modal.BEFORE_CLOSE,[this._ctx()]),this.closeButton&&this.closeButton.remove(),this.$elm.removeClass("current"),this.options.doFade?this.$elm.fadeOut(this.options.fadeDuration):this.$elm.hide(),this.$elm.trigger(t.modal.CLOSE,[this._ctx()])},showSpinner:function(){this.options.showSpinner&&(this.spinner=this.spinner||t('<div class="'+this.options.modalClass+'-spinner"></div>').append(this.options.spinnerHtml),this.$body.append(this.spinner),this.spinner.show())},hideSpinner:function(){this.spinner&&this.spinner.remove()},center:function(){this.$elm.css({position:"fixed",top:"50%",left:"50%",marginTop:-(this.$elm.outerHeight()/2),marginLeft:-(this.$elm.outerWidth()/2),zIndex:this.options.zIndex+1})},_ctx:function(){return{elm:this.$elm,blocker:this.blocker,options:this.options}}},t.modal.prototype.resize=t.modal.prototype.center,t.modal.close=function(t){if(e){t&&t.preventDefault(),e.close();var i=e.$elm;return e=null,i}},t.modal.resize=function(){e&&e.resize()},t.modal.isActive=function(){return e?!0:!1},t.modal.defaults={overlay:"#000",opacity:.75,zIndex:1,escapeClose:!0,clickClose:!0,closeText:"Close",closeClass:"",modalClass:"modal",spinnerHtml:null,showSpinner:!0,showClose:!0,fadeDuration:null,fadeDelay:1},t.modal.BEFORE_BLOCK="modal:before-block",t.modal.BLOCK="modal:block",t.modal.BEFORE_OPEN="modal:before-open",t.modal.OPEN="modal:open",t.modal.BEFORE_CLOSE="modal:before-close",t.modal.CLOSE="modal:close",t.modal.AJAX_SEND="modal:ajax:send",t.modal.AJAX_SUCCESS="modal:ajax:success",t.modal.AJAX_FAIL="modal:ajax:fail",t.modal.AJAX_COMPLETE="modal:ajax:complete",t.fn.modal=function(i){return 1===this.length&&(e=new t.modal(this,i)),this},t(document).on("click.modal",'a[rel="modal:close"]',t.modal.close),t(document).on("click.modal",'a[rel="modal:open"]',function(e){e.preventDefault(),t(this).modal()})}(jQuery),function(t){var e=function(e,i){var e=t(e),o=this,n=t("#"+e.attr("id")+"_popup");if("undefined"==typeof i)var i=!0;this.open=function(s){if(s.preventDefault(),n.is(":visible"))return void o.close();var a=e.offset();if(a.top+=e.outerHeight(),e.offset().left+n.outerWidth()>t(window).width())var r=n.outerWidth()-e.outerWidth();else var r=0;n.css({position:"absolute",top:a.top,left:a.left-r}),n.show(),t("body, .popup_item").bind("click.close_popup",function(n){i?0==t(n.target).closest("#"+e.attr("id")).length&&o.close():0==t(n.target).closest("#"+e.attr("id")).length&&0==t(n.target).closest("#"+e.attr("id")+"_popup").length&&o.close()})},this.close=function(){n.hide()}};t.fn.popupMenu=function(i){return this.each(function(){var o=new e(this,i);t(this).click(o.open)})}}(jQuery),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):e(t.jQuery)}(this,function(t){"use strict";var e=function(t,i){var o=this;return o.id=e.count++,e.lifo.push(o),t&&o.open(t,i),o};e.defaults={prefix:"jqi",classes:{box:"",fade:"",prompt:"",form:"",close:"",title:"",message:"",buttons:"",button:"",defaultButton:""},title:"",closeText:"&times;",buttons:{Ok:!0},buttonTimeout:1e3,loaded:function(){},submit:function(){},close:function(){},statechanging:function(){},statechanged:function(){},opacity:.6,zIndex:999,overlayspeed:"slow",promptspeed:"fast",show:"fadeIn",hide:"fadeOut",focus:0,defaultButton:0,useiframe:!1,top:"15%",position:{container:null,x:null,y:null,arrow:null,width:null},persistent:!0,timeout:0,states:{},initialState:0,state:{name:null,title:"",html:"",buttons:{Ok:!0},focus:0,defaultButton:0,position:{container:null,x:null,y:null,arrow:null,width:null},submit:function(){return!0}}},e.setDefaults=function(i){e.defaults=t.extend({},e.defaults,i)},e.setStateDefaults=function(i){e.defaults.state=t.extend({},e.defaults.state,i)},e.count=0,e.lifo=[],e.getLast=function(){var t=e.lifo.length;return t>0?e.lifo[t-1]:!1},e.removeFromStack=function(t){for(var i=e.lifo.length-1;i>=0;i--)if(e.lifo[i].id===t)return e.lifo.splice(i,1)[0]},e.prototype={id:null,open:function(i,o){var n=this;n.options=t.extend({},e.defaults,o),n.timeout&&clearTimeout(n.timeout),n.timeout=!1;var s=n.options,a=t(document.body),r=t(window),l='<div class="'+s.prefix+"box "+s.classes.box+'">';l+=s.useiframe&&t("object, applet").length>0?'<iframe src="javascript:false;" class="'+s.prefix+"fade "+s.classes.fade+'"></iframe>':'<div class="'+s.prefix+"fade "+s.classes.fade+'"></div>',l+='<div class="'+s.prefix+" "+s.classes.prompt+'"><form action="#" class="'+s.prefix+"form "+s.classes.form+'"><div class="'+s.prefix+"close "+s.classes.close+'">'+s.closeText+'</div><div class="'+s.prefix+'states"></div></form></div></div>',n.jqib=t(l).appendTo(a),n.jqi=n.jqib.children("."+s.prefix),n.jqif=n.jqib.children("."+s.prefix+"fade"),i.constructor===String&&(i={state0:{title:s.title,html:i,buttons:s.buttons,position:s.position,focus:s.focus,defaultButton:s.defaultButton,submit:s.submit}}),n.options.states={};var d,u;for(d in i)u=t.extend({},e.defaults.state,{name:d},i[d]),n.addState(u.name,u),""===n.currentStateName&&(n.currentStateName=u.name);n.jqi.on("click","."+s.prefix+"buttons button",function(){var e=t(this),i=e.parents("."+s.prefix+"state"),o=i.data("jqi-name"),a=n.options.states[o],r=i.children("."+s.prefix+"message"),l=a.buttons[e.text()]||a.buttons[e.html()],d={};if(n.options.buttonTimeout>0&&(n.disableStateButtons(o),setTimeout(function(){n.enableStateButtons(o)},n.options.buttonTimeout)),void 0===l)for(var u in a.buttons)(a.buttons[u].title===e.text()||a.buttons[u].title===e.html())&&(l=a.buttons[u].value);t.each(n.jqi.children("form").serializeArray(),function(t,e){void 0===d[e.name]?d[e.name]=e.value:typeof d[e.name]===Array||"object"==typeof d[e.name]?d[e.name].push(e.value):d[e.name]=[d[e.name],e.value]});var c=new t.Event("impromptu:submit");c.stateName=a.name,c.state=i,i.trigger(c,[l,r,d]),c.isDefaultPrevented()||n.close(!0,l,r,d)});var c=function(){if(s.persistent){var e=s.top.toString().indexOf("%")>=0?r.height()*(parseInt(s.top,10)/100):parseInt(s.top,10),i=parseInt(n.jqi.css("top").replace("px",""),10)-e;t("html,body").animate({scrollTop:i},"fast",function(){var t=0;n.jqib.addClass(s.prefix+"warning");var e=setInterval(function(){n.jqib.toggleClass(s.prefix+"warning"),t++>1&&(clearInterval(e),n.jqib.removeClass(s.prefix+"warning"))},100)})}else n.close(!0)},p=function(e){var i=window.event?event.keyCode:e.keyCode;if(27===i&&c(),13===i){var o=n.getCurrentState().find("."+s.prefix+"defaultbutton"),a=t(e.target);a.is("textarea,."+s.prefix+"button")===!1&&o.length>0&&(e.preventDefault(),o.click())}if(9===i){var r=t("input,select,textarea,button",n.getCurrentState()),l=!e.shiftKey&&e.target===r[r.length-1],d=e.shiftKey&&e.target===r[0];if(l||d)return setTimeout(function(){if(r){var t=r[d===!0?r.length-1:0];t&&t.focus()}},10),!1}};return n.position(),n.style(),n._windowResize=function(t){n.position(t)},r.resize({animate:!1},n._windowResize),n.jqif.click(c),n.jqi.find("."+s.prefix+"close").click(function(){n.close()}),n.jqi.find("."+s.prefix+"form").submit(function(){return!1}),n.jqib.on("keydown",p).on("impromptu:loaded",s.loaded).on("impromptu:close",s.close).on("impromptu:statechanging",s.statechanging).on("impromptu:statechanged",s.statechanged),n.jqif[s.show](s.overlayspeed),n.jqi[s.show](s.promptspeed,function(){n.goToState(isNaN(s.initialState)?s.initialState:n.jqi.find("."+s.prefix+"states ."+s.prefix+"state").eq(s.initialState).data("jqi-name")),n.jqib.trigger("impromptu:loaded")}),s.timeout>0&&(n.timeout=setTimeout(function(){n.close(!0)},s.timeout)),n},close:function(i,o,n,s){var a=this;return e.removeFromStack(a.id),a.timeout&&(clearTimeout(a.timeout),a.timeout=!1),a.jqib&&a.jqib[a.options.hide]("fast",function(){a.jqib.trigger("impromptu:close",[o,n,s]),a.jqib.remove(),t(window).off("resize",a._windowResize),"function"==typeof i&&i()}),a.currentStateName="",a},addState:function(i,o,n){var s,a,r,l,d,u=this,c="",p=null,f="",h="",m=u.options,g=u.jqi.find("."+m.prefix+"states"),v=[],w=0;if(o=t.extend({},e.defaults.state,{name:i},o),null!==o.position.arrow&&(f='<div class="'+m.prefix+"arrow "+m.prefix+"arrow"+o.position.arrow+'"></div>'),o.title&&""!==o.title&&(h='<div class="lead '+m.prefix+"title "+m.classes.title+'">'+o.title+"</div>"),s=o.html,"function"==typeof o.html&&(s="Error: html function must return text"),c+='<div class="'+m.prefix+'state" data-jqi-name="'+i+'">'+f+h+'<div class="'+m.prefix+"message "+m.classes.message+'">'+s+'</div><div class="'+m.prefix+"buttons"+(t.isEmptyObject(o.buttons)?"hide ":" ")+m.classes.buttons+'">',t.isArray(o.buttons))v=o.buttons;else if(t.isPlainObject(o.buttons))for(r in o.buttons)o.buttons.hasOwnProperty(r)&&v.push({title:r,value:o.buttons[r]});for(w=0,d=v.length;d>w;w++)l=v[w],a=o.focus===w||isNaN(o.focus)&&o.defaultButton===w?m.prefix+"defaultbutton "+m.classes.defaultButton:"",c+='<button class="'+m.classes.button+" "+m.prefix+"button "+a,"undefined"!=typeof l.classes&&(c+=" "+(t.isArray(l.classes)?l.classes.join(" "):l.classes)+" "),c+='" name="'+m.prefix+"_"+i+"_button"+l.title.replace(/[^a-z0-9]+/gi,"")+'" value="'+l.value+'">'+l.title+"</button>";return c+="</div></div>",p=t(c).css({display:"none"}),p.on("impromptu:submit",o.submit),void 0!==n?u.getState(n).after(p):g.append(p),u.options.states[i]=o,p},removeState:function(t,e){var i=this,o=i.getState(t),n=function(){o.remove()};return 0===o.length?!1:("none"!==o.css("display")?void 0!==e&&i.getState(e).length>0?i.goToState(e,!1,n):o.next().length>0?i.nextState(n):o.prev().length>0?i.prevState(n):i.close():o.slideUp("slow",n),!0)},getApi:function(){return this},getBox:function(){return this.jqib},getPrompt:function(){return this.jqi},getState:function(t){return this.jqi.find('[data-jqi-name="'+t+'"]')},getCurrentState:function(){return this.getState(this.getCurrentStateName())},getCurrentStateName:function(){return this.currentStateName},disableStateButtons:function(e,i,o){var n=this;t.isArray(e)&&(i=e,e=null),n.getState(e||n.getCurrentStateName()).find("."+n.options.prefix+"button").each(function(e,n){(void 0===i||-1!==t.inArray(n.value,i))&&(n.disabled=!o)})},enableStateButtons:function(t,e){this.disableStateButtons(t,e,!0)},position:function(e){var i=this,o=t.fx.off,n=i.getCurrentState(),s=i.options.states[n.data("jqi-name")],a=s?s.position:void 0,r=t(window),l=document.body.scrollHeight,d=t(window).height(),u=(t(document).height(),l>d?l:d),c=parseInt(r.scrollTop(),10),p=c+(i.options.top.toString().indexOf("%")>=0?d*(parseInt(i.options.top,10)/100):parseInt(i.options.top,10));if(void 0!==e&&e.data.animate===!1&&(t.fx.off=!0),i.jqib.css({position:"absolute",height:u,width:"100%",top:0,left:0,right:0,bottom:0}),i.jqif.css({position:"fixed",height:u,width:"100%",top:0,left:0,right:0,bottom:0}),a&&a.container){var f=t(a.container).offset(),h=!1;t.isPlainObject(f)&&void 0!==f.top&&(p=f.top+a.y-(i.options.top.toString().indexOf("%")>=0?d*(parseInt(i.options.top,10)/100):parseInt(i.options.top,10)),i.jqi.css({position:"absolute"}),i.jqi.animate({top:f.top+a.y,left:f.left+a.x,marginLeft:0,width:void 0!==a.width?a.width:null},function(){!h&&f.top+a.y+i.jqi.outerHeight(!0)>c+d&&(t("html,body").animate({scrollTop:p},"slow","swing",function(){}),h=!0)}),(c>p||p>c+d)&&(t("html,body").animate({scrollTop:p},"slow","swing",function(){}),h=!0))}else a&&a.width?(i.jqi.css({position:"absolute",left:"50%"}),i.jqi.animate({top:a.y||p,left:a.x||"50%",marginLeft:a.width/2*-1,width:a.width})):i.jqi.css({position:"absolute",top:p,left:"50%",marginLeft:i.jqi.outerWidth(!1)/2*-1});void 0!==e&&e.data.animate===!1&&(t.fx.off=o)},style:function(){var t=this;t.jqif.css({zIndex:t.options.zIndex,display:"none",opacity:t.options.opacity}),t.jqi.css({zIndex:t.options.zIndex+1,display:"none"}),t.jqib.css({zIndex:t.options.zIndex})},goToState:function(e,i,o){var n=this,s=(n.jqi,n.options),a=n.getState(e),r=s.states[a.data("jqi-name")],l=new t.Event("impromptu:statechanging"),d=n.options;if(void 0!==r){if("function"==typeof r.html){var u=r.html;a.find("."+d.prefix+"message ").html(u())}"function"==typeof i&&(o=i,i=!1),n.jqib.trigger(l,[n.getCurrentStateName(),e]),!l.isDefaultPrevented()&&a.length>0&&(n.jqi.find("."+d.prefix+"parentstate").removeClass(d.prefix+"parentstate"),i?(n.jqi.find("."+d.prefix+"substate").not(a).slideUp(s.promptspeed).removeClass("."+d.prefix+"substate").find("."+d.prefix+"arrow").hide(),n.jqi.find("."+d.prefix+"state:visible").addClass(d.prefix+"parentstate"),a.addClass(d.prefix+"substate")):n.jqi.find("."+d.prefix+"state").not(a).slideUp(s.promptspeed).find("."+d.prefix+"arrow").hide(),n.currentStateName=r.name,a.slideDown(s.promptspeed,function(){var i=t(this);n.enableStateButtons(),"string"==typeof r.focus?i.find(r.focus).eq(0).focus():i.find("."+d.prefix+"defaultbutton").focus(),i.find("."+d.prefix+"arrow").show(s.promptspeed),"function"==typeof o&&n.jqib.on("impromptu:statechanged",o),n.jqib.trigger("impromptu:statechanged",[e]),"function"==typeof o&&n.jqib.off("impromptu:statechanged",o)}),i||n.position())}return a},nextState:function(t){var e=this,i=e.getCurrentState().next();return i.length>0&&e.goToState(i.data("jqi-name"),t),i},prevState:function(t){var e=this,i=e.getCurrentState().prev();return i.length>0&&e.goToState(i.data("jqi-name"),t),i}},t.prompt=function(t,i){var o=new e(t,i);return o.jqi},t.each(e,function(e,i){t.prompt[e]=i}),t.each(e.prototype,function(i){t.prompt[i]=function(){var t=e.getLast();return t&&"function"==typeof t[i]?t[i].apply(t,arguments):void 0}}),t.fn.prompt=function(e){void 0===e&&(e={}),void 0===e.withDataAndEvents&&(e.withDataAndEvents=!1),t.prompt(t(this).clone(e.withDataAndEvents).html(),e)},window.Impromptu=e}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t){function e(t){return r.raw?t:encodeURIComponent(t)}function i(t){return r.raw?t:decodeURIComponent(t)}function o(t){return e(r.json?JSON.stringify(t):String(t))}function n(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t=decodeURIComponent(t.replace(a," ")),r.json?JSON.parse(t):t}catch(e){}}function s(e,i){var o=r.raw?e:n(e);return t.isFunction(i)?i(o):o}var a=/\+/g,r=t.cookie=function(n,a,l){if(void 0!==a&&!t.isFunction(a)){if(l=t.extend({},r.defaults,l),"number"==typeof l.expires){var d=l.expires,u=l.expires=new Date;u.setTime(+u+864e5*d)}return document.cookie=[e(n),"=",o(a),l.expires?"; expires="+l.expires.toUTCString():"",l.path?"; path="+l.path:"",l.domain?"; domain="+l.domain:"",l.secure?"; secure":""].join("")}for(var c=n?void 0:{},p=document.cookie?document.cookie.split("; "):[],f=0,h=p.length;h>f;f++){var m=p[f].split("="),g=i(m.shift()),v=m.join("=");if(n&&n===g){c=s(v,a);break}n||void 0===(v=s(v))||(c[g]=v)}return c};r.defaults={},t.removeCookie=function(e,i){return void 0===t.cookie(e)?!1:(t.cookie(e,"",t.extend({},i,{expires:-1})),!t.cookie(e))}});

(function($){$.jGrowl=function(m,o){if($("#jGrowl").length===0)$('<div id="jGrowl"></div>').addClass(o&&o.position?o.position:$.jGrowl.defaults.position).appendTo(o&&o.appendTo?o.appendTo:$.jGrowl.defaults.appendTo);$("#jGrowl").jGrowl(m,o)};$.fn.jGrowl=function(m,o){if(o===undefined&&$.isPlainObject(m)){o=m;m=o.message}if($.isFunction(this.each)){var args=arguments;return this.each(function(){if($(this).data("jGrowl.instance")===undefined){$(this).data("jGrowl.instance",$.extend(new $.fn.jGrowl,{notifications:[],element:null,interval:null}));$(this).data("jGrowl.instance").startup(this)}if($.isFunction($(this).data("jGrowl.instance")[m])){$(this).data("jGrowl.instance")[m].apply($(this).data("jGrowl.instance"),$.makeArray(args).slice(1))}else{$(this).data("jGrowl.instance").create(m,o)}})}};$.extend($.fn.jGrowl.prototype,{defaults:{pool:0,header:"",group:"",sticky:false,position:"top-right",appendTo:"body",glue:"after",theme:"default",themeState:"highlight",corners:"10px",check:250,life:3e3,closeDuration:"normal",openDuration:"normal",easing:"swing",closer:true,closeTemplate:"&times;",closerTemplate:"<div>[ close all ]</div>",log:function(){},beforeOpen:function(){},afterOpen:function(){},open:function(){},beforeClose:function(){},close:function(){},click:function(){},animateOpen:{opacity:"show"},animateClose:{opacity:"hide"}},notifications:[],element:null,interval:null,create:function(message,options){var o=$.extend({},this.defaults,options);if(typeof o.speed!=="undefined"){o.openDuration=o.speed;o.closeDuration=o.speed}this.notifications.push({message:message,options:o});o.log.apply(this.element,[this.element,message,o])},render:function(n){var self=this;var message=n.message;var o=n.options;o.themeState=o.themeState===""?"":"ui-state-"+o.themeState;var notification=$("<div/>").addClass("jGrowl-notification alert "+o.themeState+" ui-corner-all"+(o.group!==undefined&&o.group!==""?" "+o.group:"")).append($("<button/>").addClass("jGrowl-close").html(o.closeTemplate)).append($("<div/>").addClass("jGrowl-header").html(o.header)).append($("<div/>").addClass("jGrowl-message").html(message)).data("jGrowl",o).addClass(o.theme).children(".jGrowl-close").bind("click.jGrowl",function(){$(this).parent().trigger("jGrowl.beforeClose");return false}).parent();$(notification).bind("mouseover.jGrowl",function(){$(".jGrowl-notification",self.element).data("jGrowl.pause",true)}).bind("mouseout.jGrowl",function(){$(".jGrowl-notification",self.element).data("jGrowl.pause",false)}).bind("jGrowl.beforeOpen",function(){if(o.beforeOpen.apply(notification,[notification,message,o,self.element])!==false){$(this).trigger("jGrowl.open")}}).bind("jGrowl.open",function(){if(o.open.apply(notification,[notification,message,o,self.element])!==false){if(o.glue=="after"){$(".jGrowl-notification:last",self.element).after(notification)}else{$(".jGrowl-notification:first",self.element).before(notification)}$(this).animate(o.animateOpen,o.openDuration,o.easing,function(){if($.support.opacity===false)this.style.removeAttribute("filter");if($(this).data("jGrowl")!==null&&typeof $(this).data("jGrowl")!=="undefined")$(this).data("jGrowl").created=new Date;$(this).trigger("jGrowl.afterOpen")})}}).bind("jGrowl.afterOpen",function(){o.afterOpen.apply(notification,[notification,message,o,self.element])}).bind("click",function(){o.click.apply(notification,[notification,message,o,self.element])}).bind("jGrowl.beforeClose",function(){if(o.beforeClose.apply(notification,[notification,message,o,self.element])!==false)$(this).trigger("jGrowl.close")}).bind("jGrowl.close",function(){$(this).data("jGrowl.pause",true);$(this).animate(o.animateClose,o.closeDuration,o.easing,function(){if($.isFunction(o.close)){if(o.close.apply(notification,[notification,message,o,self.element])!==false)$(this).remove()}else{$(this).remove()}})}).trigger("jGrowl.beforeOpen");if(o.corners!==""&&$.fn.corner!==undefined)$(notification).corner(o.corners);if($(".jGrowl-notification:parent",self.element).length>1&&$(".jGrowl-closer",self.element).length===0&&this.defaults.closer!==false){$(this.defaults.closerTemplate).addClass("jGrowl-closer "+this.defaults.themeState+" ui-corner-all").addClass(this.defaults.theme).appendTo(self.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){$(this).siblings().trigger("jGrowl.beforeClose");if($.isFunction(self.defaults.closer)){self.defaults.closer.apply($(this).parent()[0],[$(this).parent()[0]])}})}},update:function(){$(this.element).find(".jGrowl-notification:parent").each(function(){if($(this).data("jGrowl")!==undefined&&$(this).data("jGrowl").created!==undefined&&$(this).data("jGrowl").created.getTime()+parseInt($(this).data("jGrowl").life,10)<(new Date).getTime()&&$(this).data("jGrowl").sticky!==true&&($(this).data("jGrowl.pause")===undefined||$(this).data("jGrowl.pause")!==true)){$(this).trigger("jGrowl.beforeClose")}});if(this.notifications.length>0&&(this.defaults.pool===0||$(this.element).find(".jGrowl-notification:parent").length<this.defaults.pool))this.render(this.notifications.shift());if($(this.element).find(".jGrowl-notification:parent").length<2){$(this.element).find(".jGrowl-closer").animate(this.defaults.animateClose,this.defaults.speed,this.defaults.easing,function(){$(this).remove()})}},startup:function(e){this.element=$(e).addClass("jGrowl").append('<div class="jGrowl-notification"></div>');this.interval=setInterval(function(){var instance=$(e).data("jGrowl.instance");if(undefined!==instance){instance.update()}},parseInt(this.defaults.check,10))},shutdown:function(){$(this.element).removeClass("jGrowl").find(".jGrowl-notification").trigger("jGrowl.close").parent().empty();clearInterval(this.interval)},close:function(){$(this.element).find(".jGrowl-notification").each(function(){$(this).trigger("jGrowl.beforeClose")})}});$.jGrowl.defaults=$.fn.jGrowl.prototype.defaults})(jQuery);(function(factory){if(typeof module==="object"&&typeof module.exports==="object"){factory(require("jquery"),window,document)}else{factory(jQuery,window,document)}})(function($,window,document,undefined){var modals=[],getCurrent=function(){return modals.length?modals[modals.length-1]:null},selectCurrent=function(){var i,selected=false;for(i=modals.length-1;i>=0;i--){if(modals[i].$blocker){modals[i].$blocker.toggleClass("current",!selected).toggleClass("behind",selected);selected=true}}};$.modal=function(el,options){var remove,target;this.$body=$("body");this.options=$.extend({},$.modal.defaults,options);this.options.doFade=!isNaN(parseInt(this.options.fadeDuration,10));this.$blocker=null;if(this.options.closeExisting)while($.modal.isActive())$.modal.close();modals.push(this);if(el.is("a")){target=el.attr("href");if(/^#/.test(target)){this.$elm=$(target);if(this.$elm.length!==1)return null;this.$body.append(this.$elm);this.open()}else{this.$elm=$("<div>");this.$body.append(this.$elm);remove=function(event,modal){modal.elm.remove()};this.showSpinner();el.trigger($.modal.AJAX_SEND);$.get(target).done(function(html){if(!$.modal.isActive())return;el.trigger($.modal.AJAX_SUCCESS);var current=getCurrent();current.$elm.empty().append(html).on($.modal.CLOSE,remove);current.hideSpinner();current.open();el.trigger($.modal.AJAX_COMPLETE)}).fail(function(){el.trigger($.modal.AJAX_FAIL);var current=getCurrent();current.hideSpinner();modals.pop();el.trigger($.modal.AJAX_COMPLETE)})}}else{this.$elm=el;this.$body.append(this.$elm);this.open()}};$.modal.prototype={constructor:$.modal,open:function(){var m=this;this.block();if(this.options.doFade){setTimeout(function(){m.show()},this.options.fadeDuration*this.options.fadeDelay)}else{this.show()}$(document).off("keydown.modal").on("keydown.modal",function(event){var current=getCurrent();if(event.which==27&&current.options.escapeClose)current.close()});if(this.options.clickClose)this.$blocker.on('click',function(e){if(e.target==this)$.modal.close()})},close:function(){modals.pop();this.unblock();this.hide();if(!$.modal.isActive())$(document).off("keydown.modal")},block:function(){this.$elm.trigger($.modal.BEFORE_BLOCK,[this._ctx()]);this.$body.css("overflow","hidden");this.$blocker=$('<div class="jquery-modal blocker current"></div>').appendTo(this.$body);selectCurrent();if(this.options.doFade){this.$blocker.css("opacity",0).animate({opacity:1},this.options.fadeDuration)}this.$elm.trigger($.modal.BLOCK,[this._ctx()])},unblock:function(now){if(!now&&this.options.doFade)this.$blocker.fadeOut(this.options.fadeDuration,this.unblock.bind(this,true));else{this.$blocker.children().appendTo(this.$body);this.$blocker.remove();this.$blocker=null;selectCurrent();if(!$.modal.isActive())this.$body.css("overflow","")}},show:function(){this.$elm.trigger($.modal.BEFORE_OPEN,[this._ctx()]);if(this.options.showClose){this.closeButton=$('<a href="#close-modal" rel="modal:close" class="close-modal '+this.options.closeClass+'">'+this.options.closeText+"</a>");this.$elm.append(this.closeButton)}this.$elm.addClass(this.options.modalClass).appendTo(this.$blocker);if(this.options.doFade){this.$elm.css("opacity",0).show().animate({opacity:1},this.options.fadeDuration)}else{this.$elm.show()}this.$elm.trigger($.modal.OPEN,[this._ctx()])},hide:function(){this.$elm.trigger($.modal.BEFORE_CLOSE,[this._ctx()]);if(this.closeButton)this.closeButton.remove();var _this=this;if(this.options.doFade){this.$elm.fadeOut(this.options.fadeDuration,function(){_this.$elm.trigger($.modal.AFTER_CLOSE,[_this._ctx()])})}else{this.$elm.hide(0,function(){_this.$elm.trigger($.modal.AFTER_CLOSE,[_this._ctx()])})}this.$elm.trigger($.modal.CLOSE,[this._ctx()])},showSpinner:function(){if(!this.options.showSpinner)return;this.spinner=this.spinner||$('<div class="'+this.options.modalClass+'-spinner"></div>').append(this.options.spinnerHtml);this.$body.append(this.spinner);this.spinner.show()},hideSpinner:function(){if(this.spinner)this.spinner.remove()},_ctx:function(){return{elm:this.$elm,$blocker:this.$blocker,options:this.options}}};$.modal.close=function(event){if(!$.modal.isActive())return;if(event)event.preventDefault();var current=getCurrent();current.close();return current.$elm};$.modal.isActive=function(){return modals.length>0};$.modal.getCurrent=getCurrent;$.modal.defaults={closeExisting:true,escapeClose:true,clickClose:true,closeText:"Close",closeClass:"",modalClass:"modal",spinnerHtml:null,showSpinner:true,showClose:true,fadeDuration:null,fadeDelay:1};$.modal.BEFORE_BLOCK="modal:before-block";$.modal.BLOCK="modal:block";$.modal.BEFORE_OPEN="modal:before-open";$.modal.OPEN="modal:open";$.modal.BEFORE_CLOSE="modal:before-close";$.modal.CLOSE="modal:close";$.modal.AFTER_CLOSE="modal:after-close";$.modal.AJAX_SEND="modal:ajax:send";$.modal.AJAX_SUCCESS="modal:ajax:success";$.modal.AJAX_FAIL="modal:ajax:fail";$.modal.AJAX_COMPLETE="modal:ajax:complete";$.fn.modal=function(options){if(this.length===1){new $.modal(this,options)}return this};$(document).on("click.modal",'a[rel="modal:close"]',$.modal.close);$(document).on("click.modal",'a[rel="modal:open"]',function(event){event.preventDefault();$(this).modal()})});(function($){var current_popup="";var PopupMenu=function(el,close_in_popupmenu){var el=$(el);var popup=this;var popup_menu=$("#"+el.attr("id")+"_popup");if(typeof close_in_popupmenu=="undefined"){var close_in_popupmenu=true}this.open=function(e){e.preventDefault();if(popup_menu.is(":visible")){popup.close();return}var offset=el.offset();offset.top+=el.outerHeight();if(el.offset().left+popup_menu.outerWidth()>$(window).width())var adjust=popup_menu.outerWidth()-el.outerWidth();else var adjust=0;popup_menu.css({position:"absolute",top:offset.top,left:offset.left-adjust});popup_menu.show();$("body, .popup_item").bind("click.close_popup",function(e){if(close_in_popupmenu){if($(e.target).closest("#"+el.attr("id")).length==0){popup.close()}}else{if($(e.target).closest("#"+el.attr("id")).length==0&&$(e.target).closest("#"+el.attr("id")+"_popup").length==0){popup.close()}}})};this.close=function(e){popup_menu.hide()}};$.fn.popupMenu=function(close_in_popupmenu){return this.each(function(){var popup=new PopupMenu(this,close_in_popupmenu);$(this).on('click',popup.open)})}})(jQuery);(function(factory){var registeredInModuleLoader=false;if(typeof define==="function"&&define.amd){define(factory);registeredInModuleLoader=true}if(typeof exports==="object"){module.exports=factory();registeredInModuleLoader=true}if(!registeredInModuleLoader){var OldCookies=window.Cookies;var api=window.Cookies=factory();api.noConflict=function(){window.Cookies=OldCookies;return api}}})(function(){function extend(){var i=0;var result={};for(;i<arguments.length;i++){var attributes=arguments[i];for(var key in attributes){result[key]=attributes[key]}}return result}function init(converter){function api(key,value,attributes){var result;if(typeof document==="undefined"){return}if(arguments.length>1){attributes=extend({path:"/"},api.defaults,attributes);if(typeof attributes.expires==="number"){var expires=new Date;expires.setMilliseconds(expires.getMilliseconds()+attributes.expires*864e5);attributes.expires=expires}attributes.expires=attributes.expires?attributes.expires.toUTCString():"";try{result=JSON.stringify(value);if(/^[\{\[]/.test(result)){value=result}}catch(e){}if(!converter.write){value=encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)}else{value=converter.write(value,key)}key=encodeURIComponent(String(key));key=key.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent);key=key.replace(/[\(\)]/g,escape);var stringifiedAttributes="";for(var attributeName in attributes){if(!attributes[attributeName]){continue}stringifiedAttributes+="; "+attributeName;if(attributes[attributeName]===true){continue}stringifiedAttributes+="="+attributes[attributeName]}return document.cookie=key+"="+value+stringifiedAttributes}if(!key){result={}}var cookies=document.cookie?document.cookie.split("; "):[];var rdecode=/(%[0-9A-Z]{2})+/g;var i=0;for(;i<cookies.length;i++){var parts=cookies[i].split("=");var cookie=parts.slice(1).join("=");if(cookie.charAt(0)==='"'){cookie=cookie.slice(1,-1)}try{var name=parts[0].replace(rdecode,decodeURIComponent);cookie=converter.read?converter.read(cookie,name):converter(cookie,name)||cookie.replace(rdecode,decodeURIComponent);if(this.json){try{cookie=JSON.parse(cookie)}catch(e){}}if(key===name){result=cookie;break}if(!key){result[name]=cookie}}catch(e){}}return result}api.set=api;api.get=function(key){return api.call(api,key)};api.getJSON=function(){return api.apply({json:true},[].slice.call(arguments))};api.defaults={};api.remove=function(key,attributes){api(key,"",extend(attributes,{expires:-1}))};api.withConverter=init;return api}return init(function(){})});