(function(factory){"use strict";if(typeof define==="function"&&define.amd){define(["jquery"],function(jQuery){return factory(jQuery,window);});}else if(typeof module==="object"&&module.exports){module.exports=factory(require("jquery"),window);}else{factory(jQuery,window);}})(function(jQuery,window){"use strict";jQuery.migrateVersion="4.0.1";function compareVersions(v1,v2){var i,rVersionParts=/^(\d+)\.(\d+)\.(\d+)/,v1p=rVersionParts.exec(v1)||[],v2p=rVersionParts.exec(v2)||[];for(i=1;i<=3;i++){if(+v1p[i]>+v2p[i]){return 1;}
if(+v1p[i]<+v2p[i]){return-1;}}
return 0;}
function jQueryVersionSince(version){return compareVersions(jQuery.fn.jquery,version)>=0;}
var disabledPatches=Object.create(null);jQuery.migrateDisablePatches=function(){var i;for(i=0;i<arguments.length;i++){disabledPatches[arguments[i]]=true;}};jQuery.migrateEnablePatches=function(){var i;for(i=0;i<arguments.length;i++){delete disabledPatches[arguments[i]];}};jQuery.migrateIsPatchEnabled=function(patchCode){return!disabledPatches[patchCode];};(function(){if(!jQuery||!jQueryVersionSince("4.0.0")||jQueryVersionSince("5.0.0")){window.console.log("JQMIGRATE: jQuery 4.x REQUIRED");}
if(jQuery.migrateMessages){window.console.log("JQMIGRATE: Migrate plugin loaded multiple times");}
window.console.log("JQMIGRATE: Migrate is installed"+
(jQuery.migrateMute?"":" with logging active")+", version "+jQuery.migrateVersion);})();var messagesLogged=Object.create(null);jQuery.migrateMessages=[];if(jQuery.migrateDeduplicateMessages===undefined){jQuery.migrateDeduplicateMessages=true;}
if(jQuery.migrateTrace===undefined){jQuery.migrateTrace=true;}
jQuery.migrateReset=function(){messagesLogged=Object.create(null);jQuery.migrateMessages.length=0;};function migrateMessageInternal(code,msg,consoleMethod){var console=window.console;if(jQuery.migrateIsPatchEnabled(code)&&(!jQuery.migrateDeduplicateMessages||!messagesLogged[msg])){messagesLogged[msg]=true;jQuery.migrateMessages.push(consoleMethod.toUpperCase()+": "+
msg+" ["+code+"]");if(console[consoleMethod]&&!jQuery.migrateMute){console[consoleMethod]("JQMIGRATE: "+msg);if(jQuery.migrateTrace){console.trace("JQMIGRATE: "+msg);}}}}
function migrateWarn(code,msg){migrateMessageInternal(code,msg,"warn");}
function migrateInfo(code,msg){migrateMessageInternal(code,msg,"info");}
function migratePatchPropInternal(obj,prop,value,code,msg,migrateMessageFn){var orig=obj[prop];Object.defineProperty(obj,prop,{configurable:true,enumerable:true,get:function(){if(jQuery.migrateIsPatchEnabled(code)){if(msg){migrateMessageFn(code,msg);}
return value;}
return orig;},set:function(newValue){if(jQuery.migrateIsPatchEnabled(code)){if(msg){migrateMessageFn(code,msg);}}
orig=value=newValue;}});}
function migrateWarnProp(obj,prop,value,code,msg){migratePatchPropInternal(obj,prop,value,code,msg,migrateWarn);}
function migrateInfoProp(obj,prop,value,code,msg){if(!msg){throw new Error("No warning message provided");}
migratePatchPropInternal(obj,prop,value,code,msg,migrateInfo);}
function migratePatchProp(obj,prop,value,code){migratePatchPropInternal(obj,prop,value,code);}
function migratePatchFuncInternal(obj,prop,newFunc,code,msg,migrateMessageFn){function wrappedNewFunc(){if(msg){migrateMessageFn(code,msg);}
return newFunc.apply(this,arguments);}
migratePatchPropInternal(obj,prop,wrappedNewFunc,code);}
function migratePatchAndWarnFunc(obj,prop,newFunc,code,msg){if(!msg){throw new Error("No warning message provided");}
return migratePatchFuncInternal(obj,prop,newFunc,code,msg,migrateWarn);}
function migratePatchAndInfoFunc(obj,prop,newFunc,code,msg){if(!msg){throw new Error("No info message provided");}
return migratePatchFuncInternal(obj,prop,newFunc,code,msg,migrateInfo);}
function migratePatchFunc(obj,prop,newFunc,code){return migratePatchFuncInternal(obj,prop,newFunc,code);}
if(window.document.compatMode==="BackCompat"){migrateWarn("quirks","jQuery is not compatible with Quirks Mode");}
var arr=[],push=arr.push,sort=arr.sort,splice=arr.splice,class2type={},rmsPrefix=/^-ms-/,rdashAlpha=/-([a-z])/g,rtrim=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;migratePatchAndWarnFunc(jQuery,"parseJSON",function(){return JSON.parse.apply(null,arguments);},"parseJSON","jQuery.parseJSON is removed; use JSON.parse");migratePatchAndInfoFunc(jQuery,"holdReady",jQuery.holdReady,"holdReady","jQuery.holdReady() is deprecated");migratePatchAndWarnFunc(jQuery,"unique",jQuery.uniqueSort,"unique","jQuery.unique() is removed; use jQuery.uniqueSort()");migratePatchAndWarnFunc(jQuery,"trim",function(text){return text==null?"":(text+"").replace(rtrim,"$1");},"trim","jQuery.trim() is removed; use String.prototype.trim");migratePatchAndWarnFunc(jQuery,"nodeName",function(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase();},"nodeName","jQuery.nodeName() is removed");migratePatchAndWarnFunc(jQuery,"isArray",Array.isArray,"isArray","jQuery.isArray() is removed; use Array.isArray()");migratePatchAndWarnFunc(jQuery,"isNumeric",function(obj){var type=typeof obj;return(type==="number"||type==="string")&&!isNaN(obj-parseFloat(obj));},"isNumeric","jQuery.isNumeric() is removed");jQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(_,name){class2type["[object "+name+"]"]=name.toLowerCase();});migratePatchAndWarnFunc(jQuery,"type",function(obj){if(obj==null){return obj+"";}
return typeof obj==="object"?class2type[Object.prototype.toString.call(obj)]||"object":typeof obj;},"type","jQuery.type() is removed");migratePatchAndWarnFunc(jQuery,"isFunction",function(obj){return typeof obj==="function";},"isFunction","jQuery.isFunction() is removed");migratePatchAndWarnFunc(jQuery,"isWindow",function(obj){return obj!=null&&obj===obj.window;},"isWindow","jQuery.isWindow() is removed");migratePatchAndWarnFunc(jQuery,"now",Date.now,"now","jQuery.now() is removed; use Date.now()");function fcamelCase(_all,letter){return letter.toUpperCase();}
migratePatchAndWarnFunc(jQuery,"camelCase",function(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase);},"camelCase","jQuery.camelCase() is removed");migratePatchAndInfoFunc(jQuery,"proxy",jQuery.proxy,"proxy","jQuery.proxy() is deprecated");migratePatchAndWarnFunc(jQuery.fn,"push",push,"push","jQuery.fn.push() is removed; use .add() or convert to an array");migratePatchAndWarnFunc(jQuery.fn,"sort",sort,"sort","jQuery.fn.sort() is removed; convert to an array before sorting");migratePatchAndWarnFunc(jQuery.fn,"splice",splice,"splice","jQuery.fn.splice() is removed; use .slice() or .not() with .eq()");migrateInfoProp(jQuery.expr,"filters",jQuery.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos");migrateInfoProp(jQuery.expr,":",jQuery.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos");function markFunction(fn){fn[jQuery.expando]=true;return fn;}
migratePatchFunc(jQuery.expr.filter,"PSEUDO",function(pseudo,argument){var args,fn=jQuery.expr.pseudos[pseudo]||jQuery.expr.setFilters[pseudo.toLowerCase()]||jQuery.error("Syntax error, unrecognized expression: unsupported pseudo: "+
pseudo);if(fn[jQuery.expando]){return fn(argument);}
if(fn.length>1){migrateInfo("legacy-custom-pseudos","Pseudos with multiple arguments are deprecated; "+"use jQuery.expr.createPseudo()");args=[pseudo,pseudo,"",argument];return jQuery.expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction(function(seed,matches){var idx,matched=fn(seed,argument),i=matched.length;while(i--){idx=Array.prototype.indexOf.call(seed,matched[i]);seed[idx]=!(matches[idx]=matched[i]);}}):function(elem){return fn(elem,0,args);};}
return fn;},"legacy-custom-pseudos");if(typeof Proxy!=="undefined"){jQuery.each(["pseudos","setFilters"],function(_,api){jQuery.expr[api]=new Proxy(jQuery.expr[api],{set:function(_target,_prop,fn){if(typeof fn==="function"&&!fn[jQuery.expando]&&fn.length>1){migrateInfo("legacy-custom-pseudos","Pseudos with multiple arguments are deprecated; "+"use jQuery.expr.createPseudo()");}
return Reflect.set.apply(this,arguments);}});});}
if(jQuery.ajax){var oldCallbacks=[],guid="migrate-"+Date.now(),origJsonpCallback=jQuery.ajaxSettings.jsonpCallback,rjsonp=/(=)\?(?=&|$)|\?\?/,rquery=/\?/;jQuery.ajaxSetup({jsonpCallback:function(){if(jQuery.migrateIsPatchEnabled("jsonp-promotion")){var callback=oldCallbacks.pop()||(jQuery.expando+"_"+(guid++));this[callback]=true;return callback;}else{return origJsonpCallback.apply(this,arguments);}}});jQuery.ajaxPrefilter("+json",function(s,originalSettings,jqXHR){if(!jQuery.migrateIsPatchEnabled("jsonp-promotion")){return;}
var callbackName,overwritten,responseContainer,jsonProp=s.jsonp!==false&&(rjsonp.test(s.url)?"url":typeof s.data==="string"&&(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&rjsonp.test(s.data)&&"data");if(jsonProp||s.dataTypes[0]==="jsonp"){migrateWarn("jsonp-promotion","JSON-to-JSONP auto-promotion is removed");callbackName=s.jsonpCallback=typeof s.jsonpCallback==="function"?s.jsonpCallback():s.jsonpCallback;if(jsonProp){s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName);}else if(s.jsonp!==false){s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName;}
s.converters["script json"]=function(){if(!responseContainer){jQuery.error(callbackName+" was not called");}
return responseContainer[0];};s.dataTypes[0]="json";overwritten=window[callbackName];window[callbackName]=function(){responseContainer=arguments;};jqXHR.always(function(){if(overwritten===undefined){jQuery(window).removeProp(callbackName);}else{window[callbackName]=overwritten;}
if(s[callbackName]){s.jsonpCallback=originalSettings.jsonpCallback;oldCallbacks.push(callbackName);}
if(responseContainer&&typeof overwritten==="function"){overwritten(responseContainer[0]);}
responseContainer=overwritten=undefined;});return"script";}});jQuery.migrateDisablePatches("jsonp-promotion");}
var oldJQueryAttr=jQuery.attr,oldToggleClass=jQuery.fn.toggleClass,booleans="checked|selected|async|autofocus|autoplay|controls|defer|"+"disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",rbooleans=new RegExp("^(?:"+booleans+")$","i"),extraBoolAttrValues={hidden:["until-found"]};jQuery.each(booleans.split("|"),function(_i,name){var origAttrHooks=jQuery.attrHooks[name]||{};jQuery.attrHooks[name]={get:origAttrHooks.get||function(elem){var attrValue;if(jQuery.migrateIsPatchEnabled("boolean-attributes")){attrValue=elem.getAttribute(name);if(attrValue!==name&&attrValue!=null&&(extraBoolAttrValues[name]||[]).indexOf(String(attrValue).toLowerCase())===-1){migrateWarn("boolean-attributes","Boolean attribute '"+name+"' value is different from its lowercased name");return name.toLowerCase();}}
return null;},set:origAttrHooks.set||function(elem,value,name){if(jQuery.migrateIsPatchEnabled("boolean-attributes")){if(value!==name&&(extraBoolAttrValues[name]||[]).indexOf(String(value).toLowerCase())===-1){if(value!==false){migrateWarn("boolean-attributes","Boolean attribute '"+name+"' is not set to its lowercased name");}
if(value===false){jQuery.removeAttr(elem,name);}else{elem.setAttribute(name,name);}
return name;}}}};});migratePatchFunc(jQuery,"attr",function(elem,name,value){var nType=elem.nodeType;if(nType===3||nType===8||nType===2||typeof elem.getAttribute==="undefined"){return oldJQueryAttr.apply(this,arguments);}
if(value===false&&name.toLowerCase().indexOf("aria-")!==0&&!rbooleans.test(name)){migrateWarn("attr-false","Setting the non-ARIA non-boolean attribute '"+name+"' to false");jQuery.attr(elem,name,"false");return;}
return oldJQueryAttr.apply(this,arguments);},"attr-false");migratePatchFunc(jQuery.fn,"toggleClass",function(state){if(state!==undefined&&typeof state!=="boolean"){return oldToggleClass.apply(this,arguments);}
migrateWarn("toggleClass-bool","jQuery.fn.toggleClass( [ boolean ] ) is removed");return this.each(function(){var className=this.getAttribute&&this.getAttribute("class")||"";if(className){jQuery.data(this,"__className__",className);}
if(this.setAttribute){this.setAttribute("class",className||state===false?"":jQuery.data(this,"__className__")||"");}});},"toggleClass-bool");function camelCase(string){return string.replace(/-([a-z])/g,function(_,letter){return letter.toUpperCase();});}
function patchProto(object,options){var i,warningId=options.warningId,apiName=options.apiName,objProtoKeys=["__proto__","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],intermediateObj=Object.create(null);for(i=0;i<objProtoKeys.length;i++){(function(key){Object.defineProperty(intermediateObj,key,{get:function(){migrateWarn(warningId,"Accessing properties from "+apiName+" inherited from Object.prototype is removed");return(key+"__cache")in intermediateObj?intermediateObj[key+"__cache"]:Object.prototype[key];},set:function(value){migrateWarn(warningId,"Setting properties from "+apiName+" inherited from Object.prototype is removed");intermediateObj[key+"__cache"]=value;}});})(objProtoKeys[i]);}
Object.setPrototypeOf(intermediateObj,Object.prototype);Object.setPrototypeOf(object,intermediateObj);return object;}
var origFnCss,internalCssNumber,ralphaStart=/^[a-z]/,rautoPx=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;if(typeof Proxy!=="undefined"){jQuery.cssProps=new Proxy(jQuery.cssProps||{},{set:function(){migrateWarn("cssProps","jQuery.cssProps is removed");return Reflect.set.apply(this,arguments);}});}
internalCssNumber={animationIterationCount:true,aspectRatio:true,borderImageSlice:true,columnCount:true,flexGrow:true,flexShrink:true,fontWeight:true,gridArea:true,gridColumn:true,gridColumnEnd:true,gridColumnStart:true,gridRow:true,gridRowEnd:true,gridRowStart:true,lineHeight:true,opacity:true,order:true,orphans:true,scale:true,widows:true,zIndex:true,zoom:true,fillOpacity:true,floodOpacity:true,stopOpacity:true,strokeMiterlimit:true,strokeOpacity:true};if(typeof Proxy!=="undefined"){jQuery.cssNumber=new Proxy(internalCssNumber,{get:function(){migrateWarn("css-number","jQuery.cssNumber is deprecated");return Reflect.get.apply(this,arguments);},set:function(){migrateWarn("css-number","jQuery.cssNumber is deprecated");return Reflect.set.apply(this,arguments);}});}else{jQuery.cssNumber=internalCssNumber;}
function isAutoPx(prop){return ralphaStart.test(prop)&&rautoPx.test(prop[0].toUpperCase()+prop.slice(1));}
origFnCss=jQuery.fn.css;migratePatchFunc(jQuery.fn,"css",function(name,value){var camelName,origThis=this;if(name&&typeof name==="object"&&!Array.isArray(name)){jQuery.each(name,function(n,v){jQuery.fn.css.call(origThis,n,v);});return this;}
if(typeof value==="number"){camelName=camelCase(name);if(!isAutoPx(camelName)&&!internalCssNumber[camelName]){migrateWarn("css-number","Auto-appending 'px' to number-typed values "+"for jQuery.fn.css( \""+name+"\", value ) is removed");}}
return origFnCss.apply(this,arguments);},"css-number");function patchDataProto(original,options){var warningId=options.warningId,apiName=options.apiName,isInstanceMethod=options.isInstanceMethod;return function apiWithProtoPatched(){var result=original.apply(this,arguments);if(arguments.length!==(isInstanceMethod?0:1)||result===undefined){return result;}
patchProto(result,{warningId:warningId,apiName:apiName});return result;};}
migratePatchFunc(jQuery,"data",patchDataProto(jQuery.data,{warningId:"data-null-proto",apiName:"jQuery.data()",isInstanceMethod:false}),"data-null-proto");migratePatchFunc(jQuery,"_data",patchDataProto(jQuery._data,{warningId:"data-null-proto",apiName:"jQuery._data()",isInstanceMethod:false}),"data-null-proto");migratePatchFunc(jQuery.fn,"data",patchDataProto(jQuery.fn.data,{warningId:"data-null-proto",apiName:"jQuery.fn.data()",isInstanceMethod:true}),"data-null-proto");if(jQuery.fx){var intervalValue=jQuery.fx.interval,intervalMsg="jQuery.fx.interval is removed";Object.defineProperty(jQuery.fx,"interval",{configurable:true,enumerable:true,get:function(){if(!window.document.hidden){migrateWarn("fx-interval",intervalMsg);}
if(!jQuery.migrateIsPatchEnabled("fx-interval")){return intervalValue;}
return intervalValue===undefined?13:intervalValue;},set:function(newValue){migrateWarn("fx-interval",intervalMsg);intervalValue=newValue;}});}
var oldEventAdd=jQuery.event.add;jQuery.event.props=[];jQuery.event.fixHooks={};migratePatchFunc(jQuery.event,"add",function(elem,types){if(elem===window&&types==="load"&&window.document.readyState==="complete"){migrateWarn("load-after-event","jQuery(window).on('load'...) called after load event occurred");}
return oldEventAdd.apply(this,arguments);},"load-after-event");jQuery.each(("blur focus focusin focusout resize scroll click dblclick "+"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+"change select submit keydown keypress keyup contextmenu").split(" "),function(_i,name){migratePatchAndInfoFunc(jQuery.fn,name,jQuery.fn[name],"shorthand-deprecated-v3","jQuery.fn."+name+"() event shorthand is deprecated");});migratePatchAndInfoFunc(jQuery.fn,"bind",jQuery.fn.bind,"pre-on-methods","jQuery.fn.bind() is deprecated");migratePatchAndInfoFunc(jQuery.fn,"unbind",jQuery.fn.unbind,"pre-on-methods","jQuery.fn.unbind() is deprecated");migratePatchAndInfoFunc(jQuery.fn,"delegate",jQuery.fn.delegate,"pre-on-methods","jQuery.fn.delegate() is deprecated");migratePatchAndInfoFunc(jQuery.fn,"undelegate",jQuery.fn.undelegate,"pre-on-methods","jQuery.fn.undelegate() is deprecated");migratePatchAndInfoFunc(jQuery.fn,"hover",jQuery.fn.hover,"hover","jQuery.fn.hover() is deprecated");migrateWarnProp(jQuery.event,"global",{},"event-global","jQuery.event.global is removed");migratePatchProp(jQuery.event,"special",patchProto(jQuery.extend(Object.create(null),jQuery.event.special),{warningId:"event-special-null-proto",apiName:"jQuery.event.special"}),"event-special-null-proto");var rxhtmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,makeMarkup=function(html){var doc=window.document.implementation.createHTMLDocument("");doc.body.innerHTML=html;return doc.body&&doc.body.innerHTML;},warnIfChanged=function(html){var changed=html.replace(rxhtmlTag,"<$1></$2>");if(changed!==html&&makeMarkup(html)!==makeMarkup(changed)){migrateWarn("self-closed-tags","HTML tags must be properly nested and closed: "+html);}};migratePatchFunc(jQuery,"htmlPrefilter",function(html){warnIfChanged(html);return html.replace(rxhtmlTag,"<$1></$2>");},"self-closed-tags");jQuery.migrateDisablePatches("self-closed-tags");if(jQuery.Deferred){var unpatchedGetStackHookValue,oldDeferred=jQuery.Deferred;migratePatchFunc(jQuery,"Deferred",function(func){var deferred=oldDeferred(),promise=deferred.promise();migratePatchAndInfoFunc(deferred,"pipe",deferred.pipe,"deferred-pipe","deferred.pipe() is deprecated");migratePatchAndInfoFunc(promise,"pipe",promise.pipe,"deferred-pipe","deferred.pipe() is deprecated");if(func){func.call(deferred,deferred);}
return deferred;},"deferred-pipe");jQuery.Deferred.exceptionHook=oldDeferred.exceptionHook;jQuery.Deferred.getErrorHook=oldDeferred.getErrorHook;Object.defineProperty(jQuery.Deferred,"getStackHook",{configurable:true,enumerable:true,get:function(){if(jQuery.migrateIsPatchEnabled("deferred-getStackHook")){migrateWarn("deferred-getStackHook","jQuery.Deferred.getStackHook is removed; use jQuery.Deferred.getErrorHook");return jQuery.Deferred.getErrorHook;}else{return unpatchedGetStackHookValue;}},set:function(newValue){if(jQuery.migrateIsPatchEnabled("deferred-getStackHook")){if(jQuery.Deferred.getErrorHook!==newValue){migrateWarn("deferred-getStackHook","jQuery.Deferred.getStackHook is removed; use jQuery.Deferred.getErrorHook");jQuery.Deferred.getErrorHook=newValue;}}else{unpatchedGetStackHookValue=newValue;}}});}
return jQuery;});