PrimeFacesExt={isExtensionMapping:function(){if(!PrimeFacesExt.IS_EXTENSION_MAPPING){var a=PrimeFacesExt.getResourceScriptURI(),b=PrimeFacesExt.getResourceScriptName(a);PrimeFacesExt.IS_EXTENSION_MAPPING="."===a.charAt(a.indexOf(b)+b.length)}return PrimeFacesExt.IS_EXTENSION_MAPPING},getResourceUrlExtension:function(){if(!PrimeFacesExt.RESOURCE_URL_EXTENSION){var a=PrimeFacesExt.getResourceScriptURI(),b=PrimeFacesExt.getResourceScriptName(a);PrimeFacesExt.RESOURCE_URL_EXTENSION=RegExp(b+".([^?]*)").exec(a)[1]}return PrimeFacesExt.RESOURCE_URL_EXTENSION}, getResourceScriptName:function(a){PrimeFacesExt.SCRIPT_NAME||(PrimeFacesExt.SCRIPT_NAME=(new RegExp("/?"+PrimeFaces.RESOURCE_IDENTIFIER+"(/|\x3d)(.*?).js")).exec(a)[2]+".js");return PrimeFacesExt.SCRIPT_NAME},getResourceScriptURI:function(){PrimeFacesExt.SCRIPT_URI||(PrimeFacesExt.SCRIPT_URI=$('script[src*\x3d"/'+PrimeFaces.RESOURCE_IDENTIFIER+'/"]').first().attr("src"),PrimeFacesExt.SCRIPT_URI||(PrimeFacesExt.SCRIPT_URI=$('script[src*\x3d"'+PrimeFaces.RESOURCE_IDENTIFIER+'\x3d"]').first().attr("src"))); return PrimeFacesExt.SCRIPT_URI},configureLocale:function(a,b){if(PrimeFacesExt.locales&&PrimeFacesExt.locales[a]&&b.locale&&(a=PrimeFacesExt.locales[a][b.locale]))for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b},getScript:function(a,b){$.ajax({type:"GET",url:a,success:b,dataType:"script",cache:!0,async:!0,scriptAttrs:{nonce:PrimeFaces.csp.NONCE_VALUE}})},changeTheme:function(a){$(document).trigger("PrimeFacesExt.themeChanged",a)},getTheme:function(){var a=$('link[href*\x3d"'+PrimeFaces.RESOURCE_IDENTIFIER+ '/theme.css"]');0===a.length&&(a=$('link[href*\x3d"'+PrimeFaces.RESOURCE_IDENTIFIER+'\x3dtheme.css"]'));return 0===a.length?"":a.attr("href").split("\x26")[0].split("ln\x3dprimefaces-")[1]},isPrimeIconTheme:function(a){a=PrimeFacesExt.getTheme();switch(a){case "nova-light":case "nova-dark":case "nova-colored":case "luna-blue":case "luna-amber":case "luna-green":case "luna-pink":return!0;default:return!1}},RESOURCE_LIBRARY:"primefaces-extensions",VERSION:"8.0.4",behavior:{},widget:{},locales:{}}; PrimeFacesExt.locales.TimeAgo={};PrimeFacesExt.locales.TimePicker={};PrimeFacesExt.behavior.Javascript=function(a,b){var c=null;b&&(c=b.params);return a.execute.call(this,a.source,a.event,c,b)};(function(a){var b=PrimeFaces.changeTheme;PrimeFaces.changeTheme=function(a){b(a);PrimeFacesExt.changeTheme(a)}})(window); CKEDITOR_GETURL=function(a){PrimeFaces.env.isIE()&&!String.prototype.startsWith&&(String.prototype.startsWith=function(a,b){b=b||0;return this.indexOf(a,b)===b});if(-1!==a.indexOf("?resolve\x3dfalse"))a=a.replace("?resolve\x3dfalse","");else{var b="v\x3d"+PrimeFacesExt.VERSION,c=a.indexOf(b);if(-1!==c){if(b=a.substring(c+b.length),0=a||96<=a&&111>=a||186<=a&&222>=a)&&(this.checkChange(),this.checkDirty())},this));this.scrollListener&&(this.scrollListener.removeListener(),this.scrollListener= void 0);"source"===this.instance.mode?this.scrollListener=a.attachListener(a,"scroll",$.proxy(function(){this.saveScrollPosition()},this)):a.getDocument()&&(this.scrollListener=a.attachListener(a.getDocument(),"scroll",$.proxy(function(){this.saveScrollPosition()},this)))}},isDirty:function(){return this.instance?this.instance.checkDirty():!1},setReadOnly:function(a){this.instance.setReadOnly(!1!==a)},isReadOnly:function(){return this.instance.readOnly},hasFocus:function(){return this.instance.focusManager.hasFocus}, getEditorInstance:function(){return this.instance}}); PrimeFaces.widget.ExtDynaForm=PrimeFaces.widget.BaseWidget.extend({init:function(a){this._super(a);a.isPostback||(this.toggledExtended=!1);if(a.autoSubmit&&!PF(a.widgetVar))this.submitForm();else if(a.isPostback&&this.toggledExtended&&this.uuid==a.uuid){var b=this.jq.find("tr.pe-dynaform-extendedrow");0=this.degree-a?360- -1*(this.degree-a):this.degree-a;this.redrawImage(!1,!0)},rotateRight:function(a){this.initializeLazy();this.degree=360<=this.degree+a?this.degree+a-360:this.degree+a;this.redrawImage(!1,!0)},resize:function(a,b){this.initializeLazy();this.newImageWidth=a;this.newImageHeight=b;this.redrawImage(!0,!1)},scale:function(a){this.initializeLazy(); this.newImageWidth*=a;this.newImageHeight*=a;this.redrawImage(!0,!1)},restoreDefaults:function(){this.initializeLazy();this.newImageWidth=this.imageWidth;this.newImageHeight=this.imageHeight;this.degree=0;this.redrawImage(!0,!0)},redrawImage:function(a,b){var c=0<=this.degree?Math.PI*this.degree/180:Math.PI*(360+this.degree)/180;var d=Math.cos(c),h=Math.sin(c),f=document.createElement("canvas"),e=new Image;e.onload=$.proxy(function(){f.style.width=f.width=Math.abs(d*e.width)+Math.abs(h*e.height); f.style.height=f.height=Math.abs(d*e.height)+Math.abs(h*e.width);var g=f.getContext("2d");g.save();c<=Math.PI/2?g.translate(h*e.height,0):c<=Math.PI?g.translate(f.width,-1*d*e.height):c<=1.5*Math.PI?g.translate(-1*d*e.width,f.height):g.translate(0,-1*h*e.width);g.rotate(c);g.drawImage(e,0,0,e.width,e.height);g.restore();f.id=this.target.id;f.src=this.target.src;this.target.parentNode.replaceChild(f,this.target);this.target=f;a&&this.fireResizeEvent();b&&this.fireRotateEvent()},this);e.src=this.imageSrc; e.width=this.newImageWidth;e.height=this.newImageHeight},fireRotateEvent:function(){this.callBehavior("rotate",{params:[{name:this.id+"_degree",value:this.degree}]})},fireResizeEvent:function(){this.callBehavior("resize",{params:[{name:this.id+"_width",value:this.newImageWidth},{name:this.id+"_height",value:this.newImageHeight}]})}}); PrimeFaces.widget.ExtTriStateManyCheckbox=PrimeFaces.widget.BaseWidget.extend({init:function(a){this._super(a);this.outputs=this.jq.find(".ui-chkbox-box:not(.ui-state-disabled)");this.inputs=this.jq.find(":text:not(:disabled)");this.labels=this.jq.find("label:not(.ui-state-disabled)");this.fixedMod=function(a,b){return(a%b+b)%b};var b=this;this.outputs.mouseover(function(){$(this).addClass("ui-state-hover")}).mouseout(function(){$(this).removeClass("ui-state-hover")}).click(function(a){b.toggle($(this), 1);a.preventDefault?a.preventDefault():a.returnValue=!1});this.labels.click(function(a){var b=$(this);$(PrimeFaces.escapeClientId(b.attr("for"))).parent().next().click();a.preventDefault?a.preventDefault():a.returnValue=!1});this.outputs.on("keydown",function(a){switch(a.keyCode){case 38:b.toggle($(this),1);a.preventDefault?a.preventDefault():a.returnValue=!1;break;case 40:b.toggle($(this),-1);a.preventDefault?a.preventDefault():a.returnValue=!1;break;case 39:b.toggle($(this),1);a.preventDefault? a.preventDefault():a.returnValue=!1;break;case 37:b.toggle($(this),-1);a.preventDefault?a.preventDefault():a.returnValue=!1;break;case 32:b.toggle($(this),1),a.preventDefault?a.preventDefault():a.returnValue=!1}});this.cfg.behaviors&&PrimeFaces.attachBehaviors(this.inputs,this.cfg.behaviors);this.inputs.data(PrimeFaces.CLIENT_ID_DATA,this.id)},toggle:function(a,b){var c=a.prev().find(":input");if(!a.hasClass("ui-state-disabled")){var d=parseInt(c.val());b=this.fixedMod(d+b,3);c.val(b);0==b?a.removeClass("ui-state-active"): a.addClass("ui-state-active");var h=a.data("iconstates");a.children().removeClass(h[d]).addClass(h[b]);d=a.data("titlestates");null!=d&&0