/*! Copyright (c) Epic Systems Corporation 2016 */
var $afe={},dangerou$={};!function jqWrapInit(){$afe.renderTemplate=function wp$jq$renderTemplate(e,t,r){var n;return e?"function"!=typeof e?($$WP.Debug.logError("template must be a real template function."),$()):((r=r||{}).allowProtoPropertiesByDefault=!0,r.allowProtoMethodsByDefault=!0,n=e.call(e,t,r),dangerou$.parseHtml(n.trim())):($$WP.Debug.logError("template is empty."),$())},$afe.jq=function wp$jq$jq(e){return"string"===$.type(e)||"function"==typeof e?($$WP.Debug.logError("content cannot be a string or a function."),$()):$(e)};var e=function wp$jq$validateSelector(e){return"string"!==$.type(e)?($$WP.Debug.logError("Selector "+i+" is not a string."),!1):-1!==e.indexOf("<")?($$WP.Debug.logError("Selector "+i+" appears to contain markup (contains <)."),!1):"#"!==e};$afe.select=function wp$jq$select(){var t;return arguments&&0!==arguments.length?e(arguments[0])?arguments.length>1&&!((t=arguments[1])instanceof jQuery||"object"==typeof t||e(t))?($$WP.Debug.logError("Context is not a jQuery object nor an Element."),$()):$.apply(this,arguments):$():($$WP.Debug.logError("selector is empty."),$())},$afe.onDocumentReady=function wp$jq$onDocReady(e){e?"function"==typeof e?$(e):$$WP.Debug.logError("callbackFn must be a function."):$$WP.Debug.logError("callbackFn is empty.")},dangerou$.parseHtml=function wp$jq$parseHtml(e){return e?"string"!==$.type(e)?($$WP.Debug.logError("htmlString must be a string."),$()):-1===e.indexOf("<")?($$WP.Debug.logError("htmlString must be HTML (expected to contain <)."),$()):$($.parseHTML(e)):($$WP.Debug.logError("htmlString is empty."),$())},dangerou$.setHtml=function wp$jq$setHtml(e,t){return e?"string"==typeof e?($$WP.Debug.logError("Wrong parameter type: string instead of element or JQ collection."),!1):(t||$$WP.Debug.log("htmlString is empty or undefined. Consider using jQuery.empty() instead.",!0),e instanceof jQuery?e.html(t):e.innerHTML=t,!0):($$WP.Debug.logError("element was not supplied."),!1)};var t=/<|&#?\w+;/,_argumentsAreSafe=function(){var e,r;if(r=!0,arguments)if("function"==typeof arguments[0])$$WP.Debug.logError("Cannot use a function as an argument to this function."),r=!1;else for(e=0;e<arguments.length&&!0===r;e++)"string"==typeof arguments[e]&&t.test(arguments[e])&&($$WP.Debug.logError("Cannot use markup as an argument to this function."),r=!1);return r},r=/^on[^\s]+/i,n=/content\s*:/i;jQuery.fn.extend({safeAttr:function(){var e=arguments[0],t=arguments[1];if(e){if(r.test(e))return $$WP.Debug.logError("Do not use safeAttr for attaching event handlers. Use $().on instead."),this;if(t&&n.test(t))return $$WP.Debug.logError("Do not use the content style."),this;if("style"===e&&void 0!==t)return jQuery.fn.css.apply(this,["cssText",t])}return jQuery.fn.attr.apply(this,arguments)},safeRemoveStyle:function(){return jQuery.fn.css.apply(this,["cssText",""])},safeAfter:function(){return _argumentsAreSafe.apply(this,arguments)?jQuery.fn.after.apply(this,arguments):this},safeBefore:function(){return _argumentsAreSafe.apply(this,arguments)?jQuery.fn.before.apply(this,arguments):this},safeInsertAfter:function(){return _argumentsAreSafe.apply(this,arguments)?jQuery.fn.insertAfter.apply(this,arguments):this},safeInsertBefore:function(){return _argumentsAreSafe.apply(this,arguments)?jQuery.fn.insertBefore.apply(this,arguments):this},safeAppend:function(){return _argumentsAreSafe.apply(this,arguments)?jQuery.fn.append.apply(this,arguments):this},safePrepend:function(){return _argumentsAreSafe.apply(this,arguments)?jQuery.fn.prepend.apply(this,arguments):this},safeAppendTo:function(){return _argumentsAreSafe.apply(this,arguments)?jQuery.fn.appendTo.apply(this,arguments):this},safePrependTo:function(){return _argumentsAreSafe.apply(this,arguments)?jQuery.fn.prependTo.apply(this,arguments):this},safeReplaceWith:function(){return _argumentsAreSafe.apply(this,arguments)?jQuery.fn.replaceWith.apply(this,arguments):this},safeWrap:function(){return _argumentsAreSafe.apply(this,arguments)?jQuery.fn.wrap.apply(this,arguments):this},safeWrapAll:function(){return _argumentsAreSafe.apply(this,arguments)?jQuery.fn.wrapAll.apply(this,arguments):this},safeWrapInner:function(){return _argumentsAreSafe.apply(this,arguments)?jQuery.fn.wrapInner.apply(this,arguments):this}})}();