// source --> https://masonnatural.pe/wp-content/themes/mason-natural/build/js/app.2634c74c6f.js 
(modules=>{var installedModules={};function __webpack_require__(moduleId){var module;return(installedModules[moduleId]||(module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}},modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module)).exports}__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.t=function(value,mode){if(1&mode&&(value=__webpack_require__(value)),8&mode)return value;if(4&mode&&"object"==typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value:value}),2&mode&&"string"!=typeof value)for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="/",__webpack_require__(__webpack_require__.s=60)})([,,,function(module,exports,__webpack_require__){__webpack_require__=__webpack_require__(13)();module.exports=__webpack_require__;try{regeneratorRuntime=__webpack_require__}catch(accidentalStrictMode){"object"==typeof globalThis?globalThis.regeneratorRuntime=__webpack_require__:Function("r","regeneratorRuntime = r")(__webpack_require__)}},,,function(module,exports){function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}module.exports=function(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)})}},module.exports.__esModule=!0,module.exports.default=module.exports},,,function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__,global,factory;global="undefined"!=typeof window?window:this,factory=function(window,noGlobal){function isFunction(obj){return"function"==typeof obj&&"number"!=typeof obj.nodeType&&"function"!=typeof obj.item}function isWindow(obj){return null!=obj&&obj===obj.window}var arr=[],getProto=Object.getPrototypeOf,slice=arr.slice,flat=arr.flat?function(array){return arr.flat.call(array)}:function(array){return arr.concat.apply([],array)},push=arr.push,indexOf=arr.indexOf,class2type={},toString=class2type.toString,hasOwn=class2type.hasOwnProperty,fnToString=hasOwn.toString,ObjectFunctionString=fnToString.call(Object),support={},document=window.document,preservedScriptAttributes={type:!0,src:!0,nonce:!0,noModule:!0};function DOMEval(code,node,doc){var i,val,script=(doc=doc||document).createElement("script");if(script.text=code,node)for(i in preservedScriptAttributes)(val=node[i]||node.getAttribute&&node.getAttribute(i))&&script.setAttribute(i,val);doc.head.appendChild(script).parentNode.removeChild(script)}function toType(obj){return null==obj?obj+"":"object"==typeof obj||"function"==typeof obj?class2type[toString.call(obj)]||"object":typeof obj}var rhtmlSuffix=/HTML$/i,jQuery=function(selector,context){return new jQuery.fn.init(selector,context)};function isArrayLike(obj){var length=!!obj&&"length"in obj&&obj.length,type=toType(obj);return!isFunction(obj)&&!isWindow(obj)&&("array"===type||0===length||"number"==typeof length&&0<length&&length-1 in obj)}function nodeName(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase()}jQuery.fn=jQuery.prototype={jquery:"3.7.1",constructor:jQuery,length:0,toArray:function(){return slice.call(this)},get:function(num){return null==num?slice.call(this):num<0?this[num+this.length]:this[num]},pushStack:function(elems){elems=jQuery.merge(this.constructor(),elems);return elems.prevObject=this,elems},each:function(callback){return jQuery.each(this,callback)},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},slice:function(){return this.pushStack(slice.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(jQuery.grep(this,function(_elem,i){return(i+1)%2}))},odd:function(){return this.pushStack(jQuery.grep(this,function(_elem,i){return i%2}))},eq:function(i){var len=this.length,i=+i+(i<0?len:0);return this.pushStack(0<=i&&i<len?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:push,sort:arr.sort,splice:arr.splice},jQuery.extend=jQuery.fn.extend=function(){var options,name,copy,copyIsArray,src,target=arguments[0]||{},i=1,length=arguments.length,deep=!1;for("boolean"==typeof target&&(deep=target,target=arguments[i]||{},i++),"object"==typeof target||isFunction(target)||(target={}),i===length&&(target=this,i--);i<length;i++)if(null!=(options=arguments[i]))for(name in options)copy=options[name],"__proto__"!==name&&target!==copy&&(deep&&copy&&(jQuery.isPlainObject(copy)||(copyIsArray=Array.isArray(copy)))?(src=target[name],src=copyIsArray&&!Array.isArray(src)?[]:copyIsArray||jQuery.isPlainObject(src)?src:{},copyIsArray=!1,target[name]=jQuery.extend(deep,src,copy)):void 0!==copy&&(target[name]=copy));return target},jQuery.extend({expando:"jQuery"+("3.7.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(msg){throw new Error(msg)},noop:function(){},isPlainObject:function(obj){return!(!obj||"[object Object]"!==toString.call(obj)||(obj=getProto(obj))&&("function"!=typeof(obj=hasOwn.call(obj,"constructor")&&obj.constructor)||fnToString.call(obj)!==ObjectFunctionString))},isEmptyObject:function(obj){for(var name in obj)return!1;return!0},globalEval:function(code,options,doc){DOMEval(code,{nonce:options&&options.nonce},doc)},each:function(obj,callback){var length,i=0;if(isArrayLike(obj))for(length=obj.length;i<length&&!1!==callback.call(obj[i],i,obj[i]);i++);else for(i in obj)if(!1===callback.call(obj[i],i,obj[i]))break;return obj},text:function(elem){var node,ret="",i=0,nodeType=elem.nodeType;if(!nodeType)for(;node=elem[i++];)ret+=jQuery.text(node);return 1===nodeType||11===nodeType?elem.textContent:9===nodeType?elem.documentElement.textContent:3===nodeType||4===nodeType?elem.nodeValue:ret},makeArray:function(arr,results){results=results||[];return null!=arr&&(isArrayLike(Object(arr))?jQuery.merge(results,"string"==typeof arr?[arr]:arr):push.call(results,arr)),results},inArray:function(elem,arr,i){return null==arr?-1:indexOf.call(arr,elem,i)},isXMLDoc:function(elem){var namespace=elem&&elem.namespaceURI,elem=elem&&(elem.ownerDocument||elem).documentElement;return!rhtmlSuffix.test(namespace||elem&&elem.nodeName||"HTML")},merge:function(first,second){for(var len=+second.length,j=0,i=first.length;j<len;j++)first[i++]=second[j];return first.length=i,first},grep:function(elems,callback,invert){for(var matches=[],i=0,length=elems.length,callbackExpect=!invert;i<length;i++)!callback(elems[i],i)!=callbackExpect&&matches.push(elems[i]);return matches},map:function(elems,callback,arg){var length,value,i=0,ret=[];if(isArrayLike(elems))for(length=elems.length;i<length;i++)null!=(value=callback(elems[i],i,arg))&&ret.push(value);else for(i in elems)null!=(value=callback(elems[i],i,arg))&&ret.push(value);return flat(ret)},guid:1,support:support}),"function"==typeof Symbol&&(jQuery.fn[Symbol.iterator]=arr[Symbol.iterator]),jQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(_i,name){class2type["[object "+name+"]"]=name.toLowerCase()});var pop=arr.pop,sort=arr.sort,splice=arr.splice,whitespace="[\\x20\\t\\r\\n\\f]",rtrimCSS=new RegExp("^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$","g"),rcssescape=(jQuery.contains=function(a,b){b=b&&b.parentNode;return a===b||!(!b||1!==b.nodeType||!(a.contains?a.contains(b):a.compareDocumentPosition&&16&a.compareDocumentPosition(b)))},/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g);function fcssescape(ch,asCodePoint){return asCodePoint?"\0"===ch?"�":ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" ":"\\"+ch}jQuery.escapeSelector=function(sel){return(sel+"").replace(rcssescape,fcssescape)};function dir(elem,dir,until){for(var matched=[],truncate=void 0!==until;(elem=elem[dir])&&9!==elem.nodeType;)if(1===elem.nodeType){if(truncate&&jQuery(elem).is(until))break;matched.push(elem)}return matched}function siblings(n,elem){for(var matched=[];n;n=n.nextSibling)1===n.nodeType&&n!==elem&&matched.push(n);return matched}var preferredDoc=document,pushNative=push,rneedsContext=((()=>{var i,Expr,outermostContext,sortInput,hasDuplicate,document,documentElement,documentIsHTML,rbuggyQSA,matches,push=pushNative,expando=jQuery.expando,dirruns=0,done=0,classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),nonnativeSelectorCache=createCache(),sortOrder=function(a,b){return a===b&&(hasDuplicate=!0),0},booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",identifier="(?:\\\\[\\da-fA-F]{1,6}"+whitespace+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",attributes="\\["+whitespace+"*("+identifier+")(?:"+whitespace+"*([*^$|!~]?=)"+whitespace+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+identifier+"))|)"+whitespace+"*\\]",pseudos=":("+identifier+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+attributes+")*)|.*)\\)|)",rwhitespace=new RegExp(whitespace+"+","g"),rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),rleadingCombinator=new RegExp("^"+whitespace+"*([>+~]|"+whitespace+")"+whitespace+"*"),rdescend=new RegExp(whitespace+"|>"),rpseudo=new RegExp(pseudos),ridentifier=new RegExp("^"+identifier+"$"),matchExpr={ID:new RegExp("^#("+identifier+")"),CLASS:new RegExp("^\\.("+identifier+")"),TAG:new RegExp("^("+identifier+"|[*])"),ATTR:new RegExp("^"+attributes),PSEUDO:new RegExp("^"+pseudos),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),bool:new RegExp("^(?:"+booleans+")$","i"),needsContext:new RegExp("^"+whitespace+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i")},rinputs=/^(?:input|select|textarea|button)$/i,rheader=/^h\d$/i,rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rsibling=/[+~]/,runescape=new RegExp("\\\\[\\da-fA-F]{1,6}"+whitespace+"?|\\\\([^\\r\\n\\f])","g"),funescape=function(escape,nonHex){escape="0x"+escape.slice(1)-65536;return nonHex||(escape<0?String.fromCharCode(65536+escape):String.fromCharCode(escape>>10|55296,1023&escape|56320))},unloadHandler=function(){setDocument()},inDisabledFieldset=addCombinator(function(elem){return!0===elem.disabled&&nodeName(elem,"fieldset")},{dir:"parentNode",next:"legend"});try{push.apply(arr=slice.call(preferredDoc.childNodes),preferredDoc.childNodes),arr[preferredDoc.childNodes.length].nodeType}catch(e){push={apply:function(target,els){pushNative.apply(target,slice.call(els))},call:function(target){pushNative.apply(target,slice.call(arguments,1))}}}function find(selector,context,results,seed){var m,i,nid,match,groups,elem,newContext=context&&context.ownerDocument,nodeType=context?context.nodeType:9;if(results=results||[],"string"!=typeof selector||!selector||1!==nodeType&&9!==nodeType&&11!==nodeType)return results;if(!seed&&(setDocument(context),context=context||document,documentIsHTML)){if(11!==nodeType&&(match=rquickExpr.exec(selector)))if(m=match[1]){if(9===nodeType){if(!(elem=context.getElementById(m)))return results;if(elem.id===m)return push.call(results,elem),results}else if(newContext&&(elem=newContext.getElementById(m))&&find.contains(context,elem)&&elem.id===m)return push.call(results,elem),results}else{if(match[2])return push.apply(results,context.getElementsByTagName(selector)),results;if((m=match[3])&&context.getElementsByClassName)return push.apply(results,context.getElementsByClassName(m)),results}if(!(nonnativeSelectorCache[selector+" "]||rbuggyQSA&&rbuggyQSA.test(selector))){if(elem=selector,newContext=context,1===nodeType&&(rdescend.test(selector)||rleadingCombinator.test(selector))){for((newContext=rsibling.test(selector)&&testContext(context.parentNode)||context)==context&&support.scope||((nid=context.getAttribute("id"))?nid=jQuery.escapeSelector(nid):context.setAttribute("id",nid=expando)),i=(groups=tokenize(selector)).length;i--;)groups[i]=(nid?"#"+nid:":scope")+" "+toSelector(groups[i]);elem=groups.join(",")}try{return push.apply(results,newContext.querySelectorAll(elem)),results}catch(qsaError){nonnativeSelectorCache(selector,!0)}finally{nid===expando&&context.removeAttribute("id")}}}return select(selector.replace(rtrimCSS,"$1"),context,results,seed)}function createCache(){var keys=[];function cache(key,value){return keys.push(key+" ")>Expr.cacheLength&&delete cache[keys.shift()],cache[key+" "]=value}return cache}function markFunction(fn){return fn[expando]=!0,fn}function assert(fn){var el=document.createElement("fieldset");try{return!!fn(el)}catch(e){return!1}finally{el.parentNode&&el.parentNode.removeChild(el)}}function createDisabledPseudo(disabled){return function(elem){return"form"in elem?elem.parentNode&&!1===elem.disabled?"label"in elem?"label"in elem.parentNode?elem.parentNode.disabled===disabled:elem.disabled===disabled:elem.isDisabled===disabled||elem.isDisabled!==!disabled&&inDisabledFieldset(elem)===disabled:elem.disabled===disabled:"label"in elem&&elem.disabled===disabled}}function createPositionalPseudo(fn){return markFunction(function(argument){return argument=+argument,markFunction(function(seed,matches){for(var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;i--;)seed[j=matchIndexes[i]]&&(seed[j]=!(matches[j]=seed[j]))})})}function testContext(context){return context&&void 0!==context.getElementsByTagName&&context}function setDocument(node){var node=node?node.ownerDocument||node:preferredDoc;return node!=document&&9===node.nodeType&&node.documentElement&&(documentElement=(document=node).documentElement,documentIsHTML=!jQuery.isXMLDoc(document),matches=documentElement.matches||documentElement.webkitMatchesSelector||documentElement.msMatchesSelector,documentElement.msMatchesSelector&&preferredDoc!=document&&(node=document.defaultView)&&node.top!==node&&node.addEventListener("unload",unloadHandler),support.getById=assert(function(el){return documentElement.appendChild(el).id=jQuery.expando,!document.getElementsByName||!document.getElementsByName(jQuery.expando).length}),support.disconnectedMatch=assert(function(el){return matches.call(el,"*")}),support.scope=assert(function(){return document.querySelectorAll(":scope")}),support.cssHas=assert(function(){try{document.querySelector(":has(*,:jqfake)")}catch(e){return 1}}),support.getById?(Expr.filter.ID=function(id){var attrId=id.replace(runescape,funescape);return function(elem){return elem.getAttribute("id")===attrId}},Expr.find.ID=function(id,context){if(void 0!==context.getElementById&&documentIsHTML)return(context=context.getElementById(id))?[context]:[]}):(Expr.filter.ID=function(id){var attrId=id.replace(runescape,funescape);return function(elem){elem=void 0!==elem.getAttributeNode&&elem.getAttributeNode("id");return elem&&elem.value===attrId}},Expr.find.ID=function(id,context){if(void 0!==context.getElementById&&documentIsHTML){var node,i,elems,elem=context.getElementById(id);if(elem){if((node=elem.getAttributeNode("id"))&&node.value===id)return[elem];for(elems=context.getElementsByName(id),i=0;elem=elems[i++];)if((node=elem.getAttributeNode("id"))&&node.value===id)return[elem]}return[]}}),Expr.find.TAG=function(tag,context){return void 0!==context.getElementsByTagName?context.getElementsByTagName(tag):context.querySelectorAll(tag)},Expr.find.CLASS=function(className,context){if(void 0!==context.getElementsByClassName&&documentIsHTML)return context.getElementsByClassName(className)},rbuggyQSA=[],assert(function(el){var input;documentElement.appendChild(el).innerHTML="<a id='"+expando+"' href='' disabled='disabled'></a><select id='"+expando+"-\r\\' disabled='disabled'><option selected=''></option></select>",el.querySelectorAll("[selected]").length||rbuggyQSA.push("\\["+whitespace+"*(?:value|"+booleans+")"),el.querySelectorAll("[id~="+expando+"-]").length||rbuggyQSA.push("~="),el.querySelectorAll("a#"+expando+"+*").length||rbuggyQSA.push(".#.+[+~]"),el.querySelectorAll(":checked").length||rbuggyQSA.push(":checked"),(input=document.createElement("input")).setAttribute("type","hidden"),el.appendChild(input).setAttribute("name","D"),documentElement.appendChild(el).disabled=!0,2!==el.querySelectorAll(":disabled").length&&rbuggyQSA.push(":enabled",":disabled"),(input=document.createElement("input")).setAttribute("name",""),el.appendChild(input),el.querySelectorAll("[name='']").length||rbuggyQSA.push("\\["+whitespace+"*name"+whitespace+"*="+whitespace+"*(?:''|\"\")")}),support.cssHas||rbuggyQSA.push(":has"),rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|")),sortOrder=function(a,b){var compare;return a===b?(hasDuplicate=!0,0):(compare=!a.compareDocumentPosition-!b.compareDocumentPosition)||(1&(compare=(a.ownerDocument||a)==(b.ownerDocument||b)?a.compareDocumentPosition(b):1)||!support.sortDetached&&b.compareDocumentPosition(a)===compare?a===document||a.ownerDocument==preferredDoc&&find.contains(preferredDoc,a)?-1:b===document||b.ownerDocument==preferredDoc&&find.contains(preferredDoc,b)?1:sortInput?indexOf.call(sortInput,a)-indexOf.call(sortInput,b):0:4&compare?-1:1)}),document}for(i in find.matches=function(expr,elements){return find(expr,null,null,elements)},find.matchesSelector=function(elem,expr){if(setDocument(elem),documentIsHTML&&!nonnativeSelectorCache[expr+" "]&&(!rbuggyQSA||!rbuggyQSA.test(expr)))try{var ret=matches.call(elem,expr);if(ret||support.disconnectedMatch||elem.document&&11!==elem.document.nodeType)return ret}catch(e){nonnativeSelectorCache(expr,!0)}return 0<find(expr,document,null,[elem]).length},find.contains=function(context,elem){return(context.ownerDocument||context)!=document&&setDocument(context),jQuery.contains(context,elem)},find.attr=function(elem,name){(elem.ownerDocument||elem)!=document&&setDocument(elem);var fn=Expr.attrHandle[name.toLowerCase()],fn=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())?fn(elem,name,!documentIsHTML):void 0;return void 0!==fn?fn:elem.getAttribute(name)},find.error=function(msg){throw new Error("Syntax error, unrecognized expression: "+msg)},jQuery.uniqueSort=function(results){var elem,duplicates=[],j=0,i=0;if(hasDuplicate=!support.sortStable,sortInput=!support.sortStable&&slice.call(results,0),sort.call(results,sortOrder),hasDuplicate){for(;elem=results[i++];)elem===results[i]&&(j=duplicates.push(i));for(;j--;)splice.call(results,duplicates[j],1)}return sortInput=null,results},jQuery.fn.uniqueSort=function(){return this.pushStack(jQuery.uniqueSort(slice.apply(this)))},(Expr=jQuery.expr={cacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(match){return match[1]=match[1].replace(runescape,funescape),match[3]=(match[3]||match[4]||match[5]||"").replace(runescape,funescape),"~="===match[2]&&(match[3]=" "+match[3]+" "),match.slice(0,4)},CHILD:function(match){return match[1]=match[1].toLowerCase(),"nth"===match[1].slice(0,3)?(match[3]||find.error(match[0]),match[4]=+(match[4]?match[5]+(match[6]||1):2*("even"===match[3]||"odd"===match[3])),match[5]=+(match[7]+match[8]||"odd"===match[3])):match[3]&&find.error(match[0]),match},PSEUDO:function(match){var excess,unquoted=!match[6]&&match[2];return matchExpr.CHILD.test(match[0])?null:(match[3]?match[2]=match[4]||match[5]||"":unquoted&&rpseudo.test(unquoted)&&(excess=(excess=tokenize(unquoted,!0))&&unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)&&(match[0]=match[0].slice(0,excess),match[2]=unquoted.slice(0,excess)),match.slice(0,3))}},filter:{TAG:function(nodeNameSelector){var expectedNodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase();return"*"===nodeNameSelector?function(){return!0}:function(elem){return nodeName(elem,expectedNodeName)}},CLASS:function(className){var pattern=classCache[className+" "];return pattern||(pattern=new RegExp("(^|"+whitespace+")"+className+"("+whitespace+"|$)"))&&classCache(className,function(elem){return pattern.test("string"==typeof elem.className&&elem.className||void 0!==elem.getAttribute&&elem.getAttribute("class")||"")})},ATTR:function(name,operator,check){return function(elem){elem=find.attr(elem,name);return null==elem?"!="===operator:!operator||(elem+="","="===operator?elem===check:"!="===operator?elem!==check:"^="===operator?check&&0===elem.indexOf(check):"*="===operator?check&&-1<elem.indexOf(check):"$="===operator?check&&elem.slice(-check.length)===check:"~="===operator?-1<(" "+elem.replace(rwhitespace," ")+" ").indexOf(check):"|="===operator&&(elem===check||elem.slice(0,check.length+1)===check+"-"))}},CHILD:function(type,what,_argument,first,last){var simple="nth"!==type.slice(0,3),forward="last"!==type.slice(-4),ofType="of-type"===what;return 1===first&&0===last?function(elem){return!!elem.parentNode}:function(elem,_context,xml){var cache,outerCache,node,nodeIndex,start,dir=simple!=forward?"nextSibling":"previousSibling",parent=elem.parentNode,name=ofType&&elem.nodeName.toLowerCase(),useCache=!xml&&!ofType,diff=!1;if(parent){if(simple){for(;dir;){for(node=elem;node=node[dir];)if(ofType?nodeName(node,name):1===node.nodeType)return!1;start=dir="only"===type&&!start&&"nextSibling"}return!0}if(start=[forward?parent.firstChild:parent.lastChild],forward&&useCache){for(diff=(nodeIndex=(cache=(outerCache=parent[expando]||(parent[expando]={}))[type]||[])[0]===dirruns&&cache[1])&&cache[2],node=nodeIndex&&parent.childNodes[nodeIndex];node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0,start.pop());)if(1===node.nodeType&&++diff&&node===elem){outerCache[type]=[dirruns,nodeIndex,diff];break}}else if(!1===(diff=useCache?nodeIndex=(cache=(outerCache=elem[expando]||(elem[expando]={}))[type]||[])[0]===dirruns&&cache[1]:diff))for(;(node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0,start.pop()))&&((ofType?!nodeName(node,name):1!==node.nodeType)||!++diff||(useCache&&((outerCache=node[expando]||(node[expando]={}))[type]=[dirruns,diff]),node!==elem)););return(diff-=last)===first||diff%first==0&&0<=diff/first}}},PSEUDO:function(pseudo,argument){var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||find.error("unsupported pseudo: "+pseudo);return fn[expando]?fn(argument):1<fn.length?(args=[pseudo,pseudo,"",argument],Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction(function(seed,matches){for(var idx,matched=fn(seed,argument),i=matched.length;i--;)seed[idx=indexOf.call(seed,matched[i])]=!(matches[idx]=matched[i])}):function(elem){return fn(elem,0,args)}):fn}},pseudos:{not:markFunction(function(selector){var input=[],results=[],matcher=compile(selector.replace(rtrimCSS,"$1"));return matcher[expando]?markFunction(function(seed,matches,_context,xml){for(var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;i--;)(elem=unmatched[i])&&(seed[i]=!(matches[i]=elem))}):function(elem,_context,xml){return input[0]=elem,matcher(input,null,xml,results),input[0]=null,!results.pop()}}),has:markFunction(function(selector){return function(elem){return 0<find(selector,elem).length}}),contains:markFunction(function(text){return text=text.replace(runescape,funescape),function(elem){return-1<(elem.textContent||jQuery.text(elem)).indexOf(text)}}),lang:markFunction(function(lang){return ridentifier.test(lang||"")||find.error("unsupported lang: "+lang),lang=lang.replace(runescape,funescape).toLowerCase(),function(elem){var elemLang;do{if(elemLang=documentIsHTML?elem.lang:elem.getAttribute("xml:lang")||elem.getAttribute("lang"))return(elemLang=elemLang.toLowerCase())===lang||0===elemLang.indexOf(lang+"-")}while((elem=elem.parentNode)&&1===elem.nodeType);return!1}}),target:function(elem){var hash=window.location&&window.location.hash;return hash&&hash.slice(1)===elem.id},root:function(elem){return elem===documentElement},focus:function(elem){return elem===(()=>{try{return document.activeElement}catch(err){}})()&&document.hasFocus()&&!!(elem.type||elem.href||~elem.tabIndex)},enabled:createDisabledPseudo(!1),disabled:createDisabledPseudo(!0),checked:function(elem){return nodeName(elem,"input")&&!!elem.checked||nodeName(elem,"option")&&!!elem.selected},selected:function(elem){return elem.parentNode&&elem.parentNode.selectedIndex,!0===elem.selected},empty:function(elem){for(elem=elem.firstChild;elem;elem=elem.nextSibling)if(elem.nodeType<6)return!1;return!0},parent:function(elem){return!Expr.pseudos.empty(elem)},header:function(elem){return rheader.test(elem.nodeName)},input:function(elem){return rinputs.test(elem.nodeName)},button:function(elem){return nodeName(elem,"input")&&"button"===elem.type||nodeName(elem,"button")},text:function(elem){return nodeName(elem,"input")&&"text"===elem.type&&(null==(elem=elem.getAttribute("type"))||"text"===elem.toLowerCase())},first:createPositionalPseudo(function(){return[0]}),last:createPositionalPseudo(function(_matchIndexes,length){return[length-1]}),eq:createPositionalPseudo(function(_matchIndexes,length,argument){return[argument<0?argument+length:argument]}),even:createPositionalPseudo(function(matchIndexes,length){for(var i=0;i<length;i+=2)matchIndexes.push(i);return matchIndexes}),odd:createPositionalPseudo(function(matchIndexes,length){for(var i=1;i<length;i+=2)matchIndexes.push(i);return matchIndexes}),lt:createPositionalPseudo(function(matchIndexes,length,argument){for(var i=argument<0?argument+length:length<argument?length:argument;0<=--i;)matchIndexes.push(i);return matchIndexes}),gt:createPositionalPseudo(function(matchIndexes,length,argument){for(var i=argument<0?argument+length:argument;++i<length;)matchIndexes.push(i);return matchIndexes})}}).pseudos.nth=Expr.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Expr.pseudos[i]=(type=>function(elem){return nodeName(elem,"input")&&elem.type===type})(i);for(i in{submit:!0,reset:!0})Expr.pseudos[i]=(type=>function(elem){return(nodeName(elem,"input")||nodeName(elem,"button"))&&elem.type===type})(i);function setFilters(){}function tokenize(selector,parseOnly){var matched,match,tokens,type,soFar,groups,preFilters,cached=tokenCache[selector+" "];if(cached)return parseOnly?0:cached.slice(0);for(soFar=selector,groups=[],preFilters=Expr.preFilter;soFar;){for(type in matched&&!(match=rcomma.exec(soFar))||(match&&(soFar=soFar.slice(match[0].length)||soFar),groups.push(tokens=[])),matched=!1,(match=rleadingCombinator.exec(soFar))&&(matched=match.shift(),tokens.push({value:matched,type:match[0].replace(rtrimCSS," ")}),soFar=soFar.slice(matched.length)),Expr.filter)!(match=matchExpr[type].exec(soFar))||preFilters[type]&&!(match=preFilters[type](match))||(matched=match.shift(),tokens.push({value:matched,type:type,matches:match}),soFar=soFar.slice(matched.length));if(!matched)break}return parseOnly?soFar.length:soFar?find.error(selector):tokenCache(selector,groups).slice(0)}function toSelector(tokens){for(var i=0,len=tokens.length,selector="";i<len;i++)selector+=tokens[i].value;return selector}function addCombinator(matcher,combinator,base){var dir=combinator.dir,skip=combinator.next,key=skip||dir,checkNonElements=base&&"parentNode"===key,doneName=done++;return combinator.first?function(elem,context,xml){for(;elem=elem[dir];)if(1===elem.nodeType||checkNonElements)return matcher(elem,context,xml);return!1}:function(elem,context,xml){var oldCache,outerCache,newCache=[dirruns,doneName];if(xml){for(;elem=elem[dir];)if((1===elem.nodeType||checkNonElements)&&matcher(elem,context,xml))return!0}else for(;elem=elem[dir];)if(1===elem.nodeType||checkNonElements)if(outerCache=elem[expando]||(elem[expando]={}),skip&&nodeName(elem,skip))elem=elem[dir]||elem;else{if((oldCache=outerCache[key])&&oldCache[0]===dirruns&&oldCache[1]===doneName)return newCache[2]=oldCache[2];if((outerCache[key]=newCache)[2]=matcher(elem,context,xml))return!0}return!1}}function elementMatcher(matchers){return 1<matchers.length?function(elem,context,xml){for(var i=matchers.length;i--;)if(!matchers[i](elem,context,xml))return!1;return!0}:matchers[0]}function condense(unmatched,map,filter,context,xml){for(var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=null!=map;i<len;i++)!(elem=unmatched[i])||filter&&!filter(elem,context,xml)||(newUnmatched.push(elem),mapped&&map.push(i));return newUnmatched}function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){return postFilter&&!postFilter[expando]&&(postFilter=setMatcher(postFilter)),postFinder&&!postFinder[expando]&&(postFinder=setMatcher(postFinder,postSelector)),markFunction(function(seed,results,context,xml){var temp,i,elem,matcherOut,preMap=[],postMap=[],preexisting=results.length,elems=seed||((selector,contexts,results)=>{for(var i=0,len=contexts.length;i<len;i++)find(selector,contexts[i],results);return results})(selector||"*",context.nodeType?[context]:context,[]),matcherIn=!preFilter||!seed&&selector?elems:condense(elems,preMap,preFilter,context,xml);if(matcher?matcher(matcherIn,matcherOut=postFinder||(seed?preFilter:preexisting||postFilter)?[]:results,context,xml):matcherOut=matcherIn,postFilter)for(temp=condense(matcherOut,postMap),postFilter(temp,[],context,xml),i=temp.length;i--;)(elem=temp[i])&&(matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem));if(seed){if(postFinder||preFilter){if(postFinder){for(temp=[],i=matcherOut.length;i--;)(elem=matcherOut[i])&&temp.push(matcherIn[i]=elem);postFinder(null,matcherOut=[],temp,xml)}for(i=matcherOut.length;i--;)(elem=matcherOut[i])&&-1<(temp=postFinder?indexOf.call(seed,elem):preMap[i])&&(seed[temp]=!(results[temp]=elem))}}else matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut),postFinder?postFinder(null,results,matcherOut,xml):push.apply(results,matcherOut)})}function matcherFromGroupMatchers(elementMatchers,setMatchers){function superMatcher(seed,context,xml,results,outermost){var elem,j,matcher,matchedCount=0,i="0",unmatched=seed&&[],setMatched=[],contextBackup=outermostContext,elems=seed||byElement&&Expr.find.TAG("*",outermost),dirrunsUnique=dirruns+=null==contextBackup?1:Math.random()||.1,len=elems.length;for(outermost&&(outermostContext=context==document||context||outermost);i!==len&&null!=(elem=elems[i]);i++){if(byElement&&elem){for(j=0,context||elem.ownerDocument==document||(setDocument(elem),xml=!documentIsHTML);matcher=elementMatchers[j++];)if(matcher(elem,context||document,xml)){push.call(results,elem);break}outermost&&(dirruns=dirrunsUnique)}bySet&&((elem=!matcher&&elem)&&matchedCount--,seed)&&unmatched.push(elem)}if(matchedCount+=i,bySet&&i!==matchedCount){for(j=0;matcher=setMatchers[j++];)matcher(unmatched,setMatched,context,xml);if(seed){if(0<matchedCount)for(;i--;)unmatched[i]||setMatched[i]||(setMatched[i]=pop.call(results));setMatched=condense(setMatched)}push.apply(results,setMatched),outermost&&!seed&&0<setMatched.length&&1<matchedCount+setMatchers.length&&jQuery.uniqueSort(results)}return outermost&&(dirruns=dirrunsUnique,outermostContext=contextBackup),unmatched}var bySet=0<setMatchers.length,byElement=0<elementMatchers.length;return bySet?markFunction(superMatcher):superMatcher}function compile(selector,match){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[selector+" "];if(!cached){for(i=(match=match||tokenize(selector)).length;i--;)((cached=function matcherFromTokens(tokens){for(var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRelative?1:0,matchContext=addCombinator(function(elem){return elem===checkContext},implicitRelative,!0),matchAnyContext=addCombinator(function(elem){return-1<indexOf.call(checkContext,elem)},implicitRelative,!0),matchers=[function(elem,context,xml){return elem=!leadingRelative&&(xml||context!=outermostContext)||((checkContext=context).nodeType?matchContext:matchAnyContext)(elem,context,xml),checkContext=null,elem}];i<len;i++)if(matcher=Expr.relative[tokens[i].type])matchers=[addCombinator(elementMatcher(matchers),matcher)];else{if((matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches))[expando]){for(j=++i;j<len&&!Expr.relative[tokens[j].type];j++);return setMatcher(1<i&&elementMatcher(matchers),1<i&&toSelector(tokens.slice(0,i-1).concat({value:" "===tokens[i-2].type?"*":""})).replace(rtrimCSS,"$1"),matcher,i<j&&matcherFromTokens(tokens.slice(i,j)),j<len&&matcherFromTokens(tokens=tokens.slice(j)),j<len&&toSelector(tokens))}matchers.push(matcher)}return elementMatcher(matchers)}(match[i]))[expando]?setMatchers:elementMatchers).push(cached);(cached=compilerCache(selector,matcherFromGroupMatchers(elementMatchers,setMatchers))).selector=selector}return cached}function select(selector,context,results,seed){var i,tokens,token,type,find,compiled="function"==typeof selector&&selector,match=!seed&&tokenize(selector=compiled.selector||selector);if(results=results||[],1===match.length){if(2<(tokens=match[0]=match[0].slice(0)).length&&"ID"===(token=tokens[0]).type&&9===context.nodeType&&documentIsHTML&&Expr.relative[tokens[1].type]){if(!(context=(Expr.find.ID(token.matches[0].replace(runescape,funescape),context)||[])[0]))return results;compiled&&(context=context.parentNode),selector=selector.slice(tokens.shift().value.length)}for(i=matchExpr.needsContext.test(selector)?0:tokens.length;i--&&(token=tokens[i],!Expr.relative[type=token.type]);)if((find=Expr.find[type])&&(seed=find(token.matches[0].replace(runescape,funescape),rsibling.test(tokens[0].type)&&testContext(context.parentNode)||context))){if(tokens.splice(i,1),selector=seed.length&&toSelector(tokens))break;return push.apply(results,seed),results}}return(compiled||compile(selector,match))(seed,context,!documentIsHTML,results,!context||rsibling.test(selector)&&testContext(context.parentNode)||context),results}setFilters.prototype=Expr.filters=Expr.pseudos,Expr.setFilters=new setFilters,support.sortStable=expando.split("").sort(sortOrder).join("")===expando,setDocument(),support.sortDetached=assert(function(el){return 1&el.compareDocumentPosition(document.createElement("fieldset"))}),jQuery.find=find,jQuery.expr[":"]=jQuery.expr.pseudos,jQuery.unique=jQuery.uniqueSort,find.compile=compile,find.select=select,find.setDocument=setDocument,find.tokenize=tokenize,find.escape=jQuery.escapeSelector,find.getText=jQuery.text,find.isXML=jQuery.isXMLDoc,find.selectors=jQuery.expr,find.support=jQuery.support,find.uniqueSort=jQuery.uniqueSort})(),jQuery.expr.match.needsContext),rsingleTag=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function winnow(elements,qualifier,not){return isFunction(qualifier)?jQuery.grep(elements,function(elem,i){return!!qualifier.call(elem,i,elem)!==not}):qualifier.nodeType?jQuery.grep(elements,function(elem){return elem===qualifier!==not}):"string"!=typeof qualifier?jQuery.grep(elements,function(elem){return-1<indexOf.call(qualifier,elem)!==not}):jQuery.filter(qualifier,elements,not)}jQuery.filter=function(expr,elems,not){var elem=elems[0];return not&&(expr=":not("+expr+")"),1===elems.length&&1===elem.nodeType?jQuery.find.matchesSelector(elem,expr)?[elem]:[]:jQuery.find.matches(expr,jQuery.grep(elems,function(elem){return 1===elem.nodeType}))},jQuery.fn.extend({find:function(selector){var i,ret,len=this.length,self=this;if("string"!=typeof selector)return this.pushStack(jQuery(selector).filter(function(){for(i=0;i<len;i++)if(jQuery.contains(self[i],this))return!0}));for(ret=this.pushStack([]),i=0;i<len;i++)jQuery.find(selector,self[i],ret);return 1<len?jQuery.uniqueSort(ret):ret},filter:function(selector){return this.pushStack(winnow(this,selector||[],!1))},not:function(selector){return this.pushStack(winnow(this,selector||[],!0))},is:function(selector){return!!winnow(this,"string"==typeof selector&&rneedsContext.test(selector)?jQuery(selector):selector||[],!1).length}});var rootjQuery,rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,rparentsprev=((jQuery.fn.init=function(selector,context,root){if(selector){if(root=root||rootjQuery,"string"!=typeof selector)return selector.nodeType?(this[0]=selector,this.length=1,this):isFunction(selector)?void 0!==root.ready?root.ready(selector):selector(jQuery):jQuery.makeArray(selector,this);if(!(match="<"===selector[0]&&">"===selector[selector.length-1]&&3<=selector.length?[null,selector,null]:rquickExpr.exec(selector))||!match[1]&&context)return(!context||context.jquery?context||root:this.constructor(context)).find(selector);if(match[1]){if(context=context instanceof jQuery?context[0]:context,jQuery.merge(this,jQuery.parseHTML(match[1],context&&context.nodeType?context.ownerDocument||context:document,!0)),rsingleTag.test(match[1])&&jQuery.isPlainObject(context))for(var match in context)isFunction(this[match])?this[match](context[match]):this.attr(match,context[match])}else(root=document.getElementById(match[2]))&&(this[0]=root,this.length=1)}return this}).prototype=jQuery.fn,rootjQuery=jQuery(document),/^(?:parents|prev(?:Until|All))/),guaranteedUnique={children:!0,contents:!0,next:!0,prev:!0};function sibling(cur,dir){for(;(cur=cur[dir])&&1!==cur.nodeType;);return cur}jQuery.fn.extend({has:function(target){var targets=jQuery(target,this),l=targets.length;return this.filter(function(){for(var i=0;i<l;i++)if(jQuery.contains(this,targets[i]))return!0})},closest:function(selectors,context){var cur,i=0,l=this.length,matched=[],targets="string"!=typeof selectors&&jQuery(selectors);if(!rneedsContext.test(selectors))for(;i<l;i++)for(cur=this[i];cur&&cur!==context;cur=cur.parentNode)if(cur.nodeType<11&&(targets?-1<targets.index(cur):1===cur.nodeType&&jQuery.find.matchesSelector(cur,selectors))){matched.push(cur);break}return this.pushStack(1<matched.length?jQuery.uniqueSort(matched):matched)},index:function(elem){return elem?"string"==typeof elem?indexOf.call(jQuery(elem),this[0]):indexOf.call(this,elem.jquery?elem[0]:elem):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(selector,context){return this.pushStack(jQuery.uniqueSort(jQuery.merge(this.get(),jQuery(selector,context))))},addBack:function(selector){return this.add(null==selector?this.prevObject:this.prevObject.filter(selector))}}),jQuery.each({parent:function(elem){elem=elem.parentNode;return elem&&11!==elem.nodeType?elem:null},parents:function(elem){return dir(elem,"parentNode")},parentsUntil:function(elem,_i,until){return dir(elem,"parentNode",until)},next:function(elem){return sibling(elem,"nextSibling")},prev:function(elem){return sibling(elem,"previousSibling")},nextAll:function(elem){return dir(elem,"nextSibling")},prevAll:function(elem){return dir(elem,"previousSibling")},nextUntil:function(elem,_i,until){return dir(elem,"nextSibling",until)},prevUntil:function(elem,_i,until){return dir(elem,"previousSibling",until)},siblings:function(elem){return siblings((elem.parentNode||{}).firstChild,elem)},children:function(elem){return siblings(elem.firstChild)},contents:function(elem){return null!=elem.contentDocument&&getProto(elem.contentDocument)?elem.contentDocument:(nodeName(elem,"template")&&(elem=elem.content||elem),jQuery.merge([],elem.childNodes))}},function(name,fn){jQuery.fn[name]=function(until,selector){var matched=jQuery.map(this,fn,until);return(selector="Until"!==name.slice(-5)?until:selector)&&"string"==typeof selector&&(matched=jQuery.filter(selector,matched)),1<this.length&&(guaranteedUnique[name]||jQuery.uniqueSort(matched),rparentsprev.test(name))&&matched.reverse(),this.pushStack(matched)}});var rnothtmlwhite=/[^\x20\t\r\n\f]+/g;function Identity(v){return v}function Thrower(ex){throw ex}function adoptValue(value,resolve,reject,noValue){var method;try{value&&isFunction(method=value.promise)?method.call(value).done(resolve).fail(reject):value&&isFunction(method=value.then)?method.call(value,resolve,reject):resolve.apply(void 0,[value].slice(noValue))}catch(value){reject.apply(void 0,[value])}}jQuery.Callbacks=function(options){options="string"==typeof options?(options=>{var object={};return jQuery.each(options.match(rnothtmlwhite)||[],function(_,flag){object[flag]=!0}),object})(options):jQuery.extend({},options);function fire(){for(locked=locked||options.once,fired=firing=!0;queue.length;firingIndex=-1)for(memory=queue.shift();++firingIndex<list.length;)!1===list[firingIndex].apply(memory[0],memory[1])&&options.stopOnFalse&&(firingIndex=list.length,memory=!1);options.memory||(memory=!1),firing=!1,locked&&(list=memory?[]:"")}var firing,memory,fired,locked,list=[],queue=[],firingIndex=-1,self={add:function(){return list&&(memory&&!firing&&(firingIndex=list.length-1,queue.push(memory)),function add(args){jQuery.each(args,function(_,arg){isFunction(arg)?options.unique&&self.has(arg)||list.push(arg):arg&&arg.length&&"string"!==toType(arg)&&add(arg)})}(arguments),memory)&&!firing&&fire(),this},remove:function(){return jQuery.each(arguments,function(_,arg){for(var index;-1<(index=jQuery.inArray(arg,list,index));)list.splice(index,1),index<=firingIndex&&firingIndex--}),this},has:function(fn){return fn?-1<jQuery.inArray(fn,list):0<list.length},empty:function(){return list=list&&[],this},disable:function(){return locked=queue=[],list=memory="",this},disabled:function(){return!list},lock:function(){return locked=queue=[],memory||firing||(list=memory=""),this},locked:function(){return!!locked},fireWith:function(context,args){return locked||(args=[context,(args=args||[]).slice?args.slice():args],queue.push(args),firing)||fire(),this},fire:function(){return self.fireWith(this,arguments),this},fired:function(){return!!fired}};return self},jQuery.extend({Deferred:function(func){var tuples=[["notify","progress",jQuery.Callbacks("memory"),jQuery.Callbacks("memory"),2],["resolve","done",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),0,"resolved"],["reject","fail",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),1,"rejected"]],state="pending",promise={state:function(){return state},always:function(){return deferred.done(arguments).fail(arguments),this},catch:function(fn){return promise.then(null,fn)},pipe:function(){var fns=arguments;return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(_i,tuple){var fn=isFunction(fns[tuple[4]])&&fns[tuple[4]];deferred[tuple[1]](function(){var returned=fn&&fn.apply(this,arguments);returned&&isFunction(returned.promise)?returned.promise().progress(newDefer.notify).done(newDefer.resolve).fail(newDefer.reject):newDefer[tuple[0]+"With"](this,fn?[returned]:arguments)})}),fns=null}).promise()},then:function(onFulfilled,onRejected,onProgress){var maxDepth=0;function resolve(depth,deferred,handler,special){return function(){function mightThrow(){var returned,then;if(!(depth<maxDepth)){if((returned=handler.apply(that,args))===deferred.promise())throw new TypeError("Thenable self-resolution");then=returned&&("object"==typeof returned||"function"==typeof returned)&&returned.then,isFunction(then)?special?then.call(returned,resolve(maxDepth,deferred,Identity,special),resolve(maxDepth,deferred,Thrower,special)):(maxDepth++,then.call(returned,resolve(maxDepth,deferred,Identity,special),resolve(maxDepth,deferred,Thrower,special),resolve(maxDepth,deferred,Identity,deferred.notifyWith))):(handler!==Identity&&(that=void 0,args=[returned]),(special||deferred.resolveWith)(that,args))}}var that=this,args=arguments,process=special?mightThrow:function(){try{mightThrow()}catch(e){jQuery.Deferred.exceptionHook&&jQuery.Deferred.exceptionHook(e,process.error),maxDepth<=depth+1&&(handler!==Thrower&&(that=void 0,args=[e]),deferred.rejectWith(that,args))}};depth?process():(jQuery.Deferred.getErrorHook?process.error=jQuery.Deferred.getErrorHook():jQuery.Deferred.getStackHook&&(process.error=jQuery.Deferred.getStackHook()),window.setTimeout(process))}}return jQuery.Deferred(function(newDefer){tuples[0][3].add(resolve(0,newDefer,isFunction(onProgress)?onProgress:Identity,newDefer.notifyWith)),tuples[1][3].add(resolve(0,newDefer,isFunction(onFulfilled)?onFulfilled:Identity)),tuples[2][3].add(resolve(0,newDefer,isFunction(onRejected)?onRejected:Thrower))}).promise()},promise:function(obj){return null!=obj?jQuery.extend(obj,promise):promise}},deferred={};return jQuery.each(tuples,function(i,tuple){var list=tuple[2],stateString=tuple[5];promise[tuple[1]]=list.add,stateString&&list.add(function(){state=stateString},tuples[3-i][2].disable,tuples[3-i][3].disable,tuples[0][2].lock,tuples[0][3].lock),list.add(tuple[3].fire),deferred[tuple[0]]=function(){return deferred[tuple[0]+"With"](this===deferred?void 0:this,arguments),this},deferred[tuple[0]+"With"]=list.fireWith}),promise.promise(deferred),func&&func.call(deferred,deferred),deferred},when:function(singleValue){function updateFunc(i){return function(value){resolveContexts[i]=this,resolveValues[i]=1<arguments.length?slice.call(arguments):value,--remaining||primary.resolveWith(resolveContexts,resolveValues)}}var remaining=arguments.length,i=remaining,resolveContexts=Array(i),resolveValues=slice.call(arguments),primary=jQuery.Deferred();if(remaining<=1&&(adoptValue(singleValue,primary.done(updateFunc(i)).resolve,primary.reject,!remaining),"pending"===primary.state()||isFunction(resolveValues[i]&&resolveValues[i].then)))return primary.then();for(;i--;)adoptValue(resolveValues[i],updateFunc(i),primary.reject);return primary.promise()}});var rerrorNames=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,readyList=(jQuery.Deferred.exceptionHook=function(error,asyncError){window.console&&window.console.warn&&error&&rerrorNames.test(error.name)&&window.console.warn("jQuery.Deferred exception: "+error.message,error.stack,asyncError)},jQuery.readyException=function(error){window.setTimeout(function(){throw error})},jQuery.Deferred());function completed(){document.removeEventListener("DOMContentLoaded",completed),window.removeEventListener("load",completed),jQuery.ready()}jQuery.fn.ready=function(fn){return readyList.then(fn).catch(function(error){jQuery.readyException(error)}),this},jQuery.extend({isReady:!1,readyWait:1,ready:function(wait){(!0===wait?--jQuery.readyWait:jQuery.isReady)||(jQuery.isReady=!0)!==wait&&0<--jQuery.readyWait||readyList.resolveWith(document,[jQuery])}}),jQuery.ready.then=readyList.then,"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(jQuery.ready):(document.addEventListener("DOMContentLoaded",completed),window.addEventListener("load",completed));function access(elems,fn,key,value,chainable,emptyGet,raw){var i=0,len=elems.length,bulk=null==key;if("object"===toType(key))for(i in chainable=!0,key)access(elems,fn,i,key[i],!0,emptyGet,raw);else if(void 0!==value&&(chainable=!0,isFunction(value)||(raw=!0),fn=bulk?raw?(fn.call(elems,value),null):(bulk=fn,function(elem,_key,value){return bulk.call(jQuery(elem),value)}):fn))for(;i<len;i++)fn(elems[i],key,raw?value:value.call(elems[i],i,fn(elems[i],key)));return chainable?elems:bulk?fn.call(elems):len?fn(elems[0],key):emptyGet}var rmsPrefix=/^-ms-/,rdashAlpha=/-([a-z])/g;function fcamelCase(_all,letter){return letter.toUpperCase()}function camelCase(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase)}function acceptData(owner){return 1===owner.nodeType||9===owner.nodeType||!+owner.nodeType}function Data(){this.expando=jQuery.expando+Data.uid++}Data.uid=1,Data.prototype={cache:function(owner){var value=owner[this.expando];return value||(value={},acceptData(owner)&&(owner.nodeType?owner[this.expando]=value:Object.defineProperty(owner,this.expando,{value:value,configurable:!0}))),value},set:function(owner,data,value){var prop,cache=this.cache(owner);if("string"==typeof data)cache[camelCase(data)]=value;else for(prop in data)cache[camelCase(prop)]=data[prop];return cache},get:function(owner,key){return void 0===key?this.cache(owner):owner[this.expando]&&owner[this.expando][camelCase(key)]},access:function(owner,key,value){return void 0===key||key&&"string"==typeof key&&void 0===value?this.get(owner,key):(this.set(owner,key,value),void 0!==value?value:key)},remove:function(owner,key){var i,cache=owner[this.expando];if(void 0!==cache){if(void 0!==key){i=(key=Array.isArray(key)?key.map(camelCase):(key=camelCase(key))in cache?[key]:key.match(rnothtmlwhite)||[]).length;for(;i--;)delete cache[key[i]]}void 0!==key&&!jQuery.isEmptyObject(cache)||(owner.nodeType?owner[this.expando]=void 0:delete owner[this.expando])}},hasData:function(owner){owner=owner[this.expando];return void 0!==owner&&!jQuery.isEmptyObject(owner)}};var dataPriv=new Data,dataUser=new Data,rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,rmultiDash=/[A-Z]/g;function dataAttr(elem,key,data){var name;if(void 0===data&&1===elem.nodeType)if(name="data-"+key.replace(rmultiDash,"-$&").toLowerCase(),"string"==typeof(data=elem.getAttribute(name))){try{data=(data=>"true"===data||"false"!==data&&("null"===data?null:data===+data+""?+data:rbrace.test(data)?JSON.parse(data):data))(data)}catch(e){}dataUser.set(elem,key,data)}else data=void 0;return data}jQuery.extend({hasData:function(elem){return dataUser.hasData(elem)||dataPriv.hasData(elem)},data:function(elem,name,data){return dataUser.access(elem,name,data)},removeData:function(elem,name){dataUser.remove(elem,name)},_data:function(elem,name,data){return dataPriv.access(elem,name,data)},_removeData:function(elem,name){dataPriv.remove(elem,name)}}),jQuery.fn.extend({data:function(key,value){var i,name,data,elem=this[0],attrs=elem&&elem.attributes;if(void 0!==key)return"object"==typeof key?this.each(function(){dataUser.set(this,key)}):access(this,function(value){var data;if(elem&&void 0===value)return void 0!==(data=dataUser.get(elem,key))||void 0!==(data=dataAttr(elem,key))?data:void 0;this.each(function(){dataUser.set(this,key,value)})},null,value,1<arguments.length,null,!0);if(this.length&&(data=dataUser.get(elem),1===elem.nodeType)&&!dataPriv.get(elem,"hasDataAttrs")){for(i=attrs.length;i--;)attrs[i]&&0===(name=attrs[i].name).indexOf("data-")&&(name=camelCase(name.slice(5)),dataAttr(elem,name,data[name]));dataPriv.set(elem,"hasDataAttrs",!0)}return data},removeData:function(key){return this.each(function(){dataUser.remove(this,key)})}}),jQuery.extend({queue:function(elem,type,data){var queue;if(elem)return queue=dataPriv.get(elem,type=(type||"fx")+"queue"),data&&(!queue||Array.isArray(data)?queue=dataPriv.access(elem,type,jQuery.makeArray(data)):queue.push(data)),queue||[]},dequeue:function(elem,type){type=type||"fx";var queue=jQuery.queue(elem,type),startLength=queue.length,fn=queue.shift(),hooks=jQuery._queueHooks(elem,type);"inprogress"===fn&&(fn=queue.shift(),startLength--),fn&&("fx"===type&&queue.unshift("inprogress"),delete hooks.stop,fn.call(elem,function(){jQuery.dequeue(elem,type)},hooks)),!startLength&&hooks&&hooks.empty.fire()},_queueHooks:function(elem,type){var key=type+"queueHooks";return dataPriv.get(elem,key)||dataPriv.access(elem,key,{empty:jQuery.Callbacks("once memory").add(function(){dataPriv.remove(elem,[type+"queue",key])})})}}),jQuery.fn.extend({queue:function(type,data){var setter=2;return"string"!=typeof type&&(data=type,type="fx",setter--),arguments.length<setter?jQuery.queue(this[0],type):void 0===data?this:this.each(function(){var queue=jQuery.queue(this,type,data);jQuery._queueHooks(this,type),"fx"===type&&"inprogress"!==queue[0]&&jQuery.dequeue(this,type)})},dequeue:function(type){return this.each(function(){jQuery.dequeue(this,type)})},clearQueue:function(type){return this.queue(type||"fx",[])},promise:function(type,obj){function resolve(){--count||defer.resolveWith(elements,[elements])}var tmp,count=1,defer=jQuery.Deferred(),elements=this,i=this.length;for("string"!=typeof type&&(obj=type,type=void 0),type=type||"fx";i--;)(tmp=dataPriv.get(elements[i],type+"queueHooks"))&&tmp.empty&&(count++,tmp.empty.add(resolve));return resolve(),defer.promise(obj)}});function isHiddenWithinTree(elem,el){return"none"===(elem=el||elem).style.display||""===elem.style.display&&isAttached(elem)&&"none"===jQuery.css(elem,"display")}var pnum=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rcssNum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i"),cssExpand=["Top","Right","Bottom","Left"],documentElement=document.documentElement,isAttached=function(elem){return jQuery.contains(elem.ownerDocument,elem)},composed={composed:!0};documentElement.getRootNode&&(isAttached=function(elem){return jQuery.contains(elem.ownerDocument,elem)||elem.getRootNode(composed)===elem.ownerDocument});function adjustCSS(elem,prop,valueParts,tween){var adjusted,scale,maxIterations=20,currentValue=tween?function(){return tween.cur()}:function(){return jQuery.css(elem,prop,"")},initial=currentValue(),unit=valueParts&&valueParts[3]||(jQuery.cssNumber[prop]?"":"px"),initialInUnit=elem.nodeType&&(jQuery.cssNumber[prop]||"px"!==unit&&+initial)&&rcssNum.exec(jQuery.css(elem,prop));if(initialInUnit&&initialInUnit[3]!==unit){for(unit=unit||initialInUnit[3],initialInUnit=+(initial/=2)||1;maxIterations--;)jQuery.style(elem,prop,initialInUnit+unit),(1-scale)*(1-(scale=currentValue()/initial||.5))<=0&&(maxIterations=0),initialInUnit/=scale;jQuery.style(elem,prop,(initialInUnit*=2)+unit),valueParts=valueParts||[]}return valueParts&&(initialInUnit=+initialInUnit||+initial||0,adjusted=valueParts[1]?initialInUnit+(valueParts[1]+1)*valueParts[2]:+valueParts[2],tween)&&(tween.unit=unit,tween.start=initialInUnit,tween.end=adjusted),adjusted}var defaultDisplayMap={};function showHide(elements,show){for(var display,elem,values=[],index=0,length=elements.length;index<length;index++)(elem=elements[index]).style&&(display=elem.style.display,show?("none"===display&&(values[index]=dataPriv.get(elem,"display")||null,values[index]||(elem.style.display="")),""===elem.style.display&&isHiddenWithinTree(elem)&&(values[index]=(elem=>{var doc=elem.ownerDocument,display=defaultDisplayMap[elem=elem.nodeName];return display||(doc=doc.body.appendChild(doc.createElement(elem)),display=jQuery.css(doc,"display"),doc.parentNode.removeChild(doc),defaultDisplayMap[elem]=display="none"===display?"block":display),display})(elem))):"none"!==display&&(values[index]="none",dataPriv.set(elem,"display",display)));for(index=0;index<length;index++)null!=values[index]&&(elements[index].style.display=values[index]);return elements}jQuery.fn.extend({show:function(){return showHide(this,!0)},hide:function(){return showHide(this)},toggle:function(state){return"boolean"==typeof state?state?this.show():this.hide():this.each(function(){isHiddenWithinTree(this)?jQuery(this).show():jQuery(this).hide()})}});var div,rcheckableType=/^(?:checkbox|radio)$/i,rtagName=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,rscriptType=/^$|^module$|\/(?:java|ecma)script/i,wrapMap=(div=document.createDocumentFragment().appendChild(document.createElement("div")),(input=document.createElement("input")).setAttribute("type","radio"),input.setAttribute("checked","checked"),input.setAttribute("name","t"),div.appendChild(input),support.checkClone=div.cloneNode(!0).cloneNode(!0).lastChild.checked,div.innerHTML="<textarea>x</textarea>",support.noCloneChecked=!!div.cloneNode(!0).lastChild.defaultValue,div.innerHTML="<option></option>",support.option=!!div.lastChild,{thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]});function getAll(context,tag){var ret=void 0!==context.getElementsByTagName?context.getElementsByTagName(tag||"*"):void 0!==context.querySelectorAll?context.querySelectorAll(tag||"*"):[];return void 0===tag||tag&&nodeName(context,tag)?jQuery.merge([context],ret):ret}function setGlobalEval(elems,refElements){for(var i=0,l=elems.length;i<l;i++)dataPriv.set(elems[i],"globalEval",!refElements||dataPriv.get(refElements[i],"globalEval"))}wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead,wrapMap.th=wrapMap.td,support.option||(wrapMap.optgroup=wrapMap.option=[1,"<select multiple='multiple'>","</select>"]);var rhtml=/<|&#?\w+;/;function buildFragment(elems,context,scripts,selection,ignored){for(var elem,tmp,tag,attached,j,fragment=context.createDocumentFragment(),nodes=[],i=0,l=elems.length;i<l;i++)if((elem=elems[i])||0===elem)if("object"===toType(elem))jQuery.merge(nodes,elem.nodeType?[elem]:elem);else if(rhtml.test(elem)){for(tmp=tmp||fragment.appendChild(context.createElement("div")),tag=(rtagName.exec(elem)||["",""])[1].toLowerCase(),tag=wrapMap[tag]||wrapMap._default,tmp.innerHTML=tag[1]+jQuery.htmlPrefilter(elem)+tag[2],j=tag[0];j--;)tmp=tmp.lastChild;jQuery.merge(nodes,tmp.childNodes),(tmp=fragment.firstChild).textContent=""}else nodes.push(context.createTextNode(elem));for(fragment.textContent="",i=0;elem=nodes[i++];)if(selection&&-1<jQuery.inArray(elem,selection))ignored&&ignored.push(elem);else if(attached=isAttached(elem),tmp=getAll(fragment.appendChild(elem),"script"),attached&&setGlobalEval(tmp),scripts)for(j=0;elem=tmp[j++];)rscriptType.test(elem.type||"")&&scripts.push(elem);return fragment}var rtypenamespace=/^([^.]*)(?:\.(.+)|)/;function returnTrue(){return!0}function returnFalse(){return!1}function on(elem,types,selector,data,fn,one){var origFn,type;if("object"==typeof types){for(type in"string"!=typeof selector&&(data=data||selector,selector=void 0),types)on(elem,type,selector,data,types[type],one);return elem}if(null==data&&null==fn?(fn=selector,data=selector=void 0):null==fn&&("string"==typeof selector?(fn=data,data=void 0):(fn=data,data=selector,selector=void 0)),!1===fn)fn=returnFalse;else if(!fn)return elem;return 1===one&&(origFn=fn,(fn=function(event){return jQuery().off(event),origFn.apply(this,arguments)}).guid=origFn.guid||(origFn.guid=jQuery.guid++)),elem.each(function(){jQuery.event.add(this,types,fn,data,selector)})}function leverageNative(el,type,isSetup){isSetup?(dataPriv.set(el,type,!1),jQuery.event.add(el,type,{namespace:!1,handler:function(event){var result,saved=dataPriv.get(this,type);if(1&event.isTrigger&&this[type]){if(saved)(jQuery.event.special[type]||{}).delegateType&&event.stopPropagation();else if(saved=slice.call(arguments),dataPriv.set(this,type,saved),this[type](),result=dataPriv.get(this,type),dataPriv.set(this,type,!1),saved!==result)return event.stopImmediatePropagation(),event.preventDefault(),result}else saved&&(dataPriv.set(this,type,jQuery.event.trigger(saved[0],saved.slice(1),this)),event.stopPropagation(),event.isImmediatePropagationStopped=returnTrue)}})):void 0===dataPriv.get(el,type)&&jQuery.event.add(el,type,returnTrue)}jQuery.event={global:{},add:function(elem,types,handler,data,selector){var handleObjIn,eventHandle,events,t,special,handlers,type,tmp,origType,elemData=dataPriv.get(elem);if(acceptData(elem))for(handler.handler&&(handler=(handleObjIn=handler).handler,selector=handleObjIn.selector),selector&&jQuery.find.matchesSelector(documentElement,selector),handler.guid||(handler.guid=jQuery.guid++),events=(events=elemData.events)||(elemData.events=Object.create(null)),eventHandle=(eventHandle=elemData.handle)||(elemData.handle=function(e){return void 0!==jQuery&&jQuery.event.triggered!==e.type?jQuery.event.dispatch.apply(elem,arguments):void 0}),t=(types=(types||"").match(rnothtmlwhite)||[""]).length;t--;)type=origType=(tmp=rtypenamespace.exec(types[t])||[])[1],tmp=(tmp[2]||"").split(".").sort(),type&&(special=jQuery.event.special[type]||{},type=(selector?special.delegateType:special.bindType)||type,special=jQuery.event.special[type]||{},origType=jQuery.extend({type:type,origType:origType,data:data,handler:handler,guid:handler.guid,selector:selector,needsContext:selector&&jQuery.expr.match.needsContext.test(selector),namespace:tmp.join(".")},handleObjIn),(handlers=events[type])||((handlers=events[type]=[]).delegateCount=0,special.setup&&!1!==special.setup.call(elem,data,tmp,eventHandle))||elem.addEventListener&&elem.addEventListener(type,eventHandle),special.add&&(special.add.call(elem,origType),origType.handler.guid||(origType.handler.guid=handler.guid)),selector?handlers.splice(handlers.delegateCount++,0,origType):handlers.push(origType),jQuery.event.global[type]=!0)},remove:function(elem,types,handler,selector,mappedTypes){var j,origCount,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.hasData(elem)&&dataPriv.get(elem);if(elemData&&(events=elemData.events)){for(t=(types=(types||"").match(rnothtmlwhite)||[""]).length;t--;)if(type=origType=(tmp=rtypenamespace.exec(types[t])||[])[1],namespaces=(tmp[2]||"").split(".").sort(),type){for(special=jQuery.event.special[type]||{},handlers=events[type=(selector?special.delegateType:special.bindType)||type]||[],tmp=tmp[2]&&new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"),origCount=j=handlers.length;j--;)handleObj=handlers[j],!mappedTypes&&origType!==handleObj.origType||handler&&handler.guid!==handleObj.guid||tmp&&!tmp.test(handleObj.namespace)||selector&&selector!==handleObj.selector&&("**"!==selector||!handleObj.selector)||(handlers.splice(j,1),handleObj.selector&&handlers.delegateCount--,special.remove&&special.remove.call(elem,handleObj));origCount&&!handlers.length&&(special.teardown&&!1!==special.teardown.call(elem,namespaces,elemData.handle)||jQuery.removeEvent(elem,type,elemData.handle),delete events[type])}else for(type in events)jQuery.event.remove(elem,type+types[t],handler,selector,!0);jQuery.isEmptyObject(events)&&dataPriv.remove(elem,"handle events")}},dispatch:function(nativeEvent){var i,j,matched,handleObj,handlerQueue,args=new Array(arguments.length),event=jQuery.event.fix(nativeEvent),nativeEvent=(dataPriv.get(this,"events")||Object.create(null))[event.type]||[],special=jQuery.event.special[event.type]||{};for(args[0]=event,i=1;i<arguments.length;i++)args[i]=arguments[i];if(event.delegateTarget=this,!special.preDispatch||!1!==special.preDispatch.call(this,event)){for(handlerQueue=jQuery.event.handlers.call(this,event,nativeEvent),i=0;(matched=handlerQueue[i++])&&!event.isPropagationStopped();)for(event.currentTarget=matched.elem,j=0;(handleObj=matched.handlers[j++])&&!event.isImmediatePropagationStopped();)event.rnamespace&&!1!==handleObj.namespace&&!event.rnamespace.test(handleObj.namespace)||(event.handleObj=handleObj,event.data=handleObj.data,void 0!==(handleObj=((jQuery.event.special[handleObj.origType]||{}).handle||handleObj.handler).apply(matched.elem,args))&&!1===(event.result=handleObj)&&(event.preventDefault(),event.stopPropagation()));return special.postDispatch&&special.postDispatch.call(this,event),event.result}},handlers:function(event,handlers){var i,handleObj,sel,matchedHandlers,matchedSelectors,handlerQueue=[],delegateCount=handlers.delegateCount,cur=event.target;if(delegateCount&&cur.nodeType&&!("click"===event.type&&1<=event.button))for(;cur!==this;cur=cur.parentNode||this)if(1===cur.nodeType&&("click"!==event.type||!0!==cur.disabled)){for(matchedHandlers=[],matchedSelectors={},i=0;i<delegateCount;i++)void 0===matchedSelectors[sel=(handleObj=handlers[i]).selector+" "]&&(matchedSelectors[sel]=handleObj.needsContext?-1<jQuery(sel,this).index(cur):jQuery.find(sel,this,null,[cur]).length),matchedSelectors[sel]&&matchedHandlers.push(handleObj);matchedHandlers.length&&handlerQueue.push({elem:cur,handlers:matchedHandlers})}return cur=this,delegateCount<handlers.length&&handlerQueue.push({elem:cur,handlers:handlers.slice(delegateCount)}),handlerQueue},addProp:function(name,hook){Object.defineProperty(jQuery.Event.prototype,name,{enumerable:!0,configurable:!0,get:isFunction(hook)?function(){if(this.originalEvent)return hook(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[name]},set:function(value){Object.defineProperty(this,name,{enumerable:!0,configurable:!0,writable:!0,value:value})}})},fix:function(originalEvent){return originalEvent[jQuery.expando]?originalEvent:new jQuery.Event(originalEvent)},special:{load:{noBubble:!0},click:{setup:function(data){data=this||data;return rcheckableType.test(data.type)&&data.click&&nodeName(data,"input")&&leverageNative(data,"click",!0),!1},trigger:function(data){data=this||data;return rcheckableType.test(data.type)&&data.click&&nodeName(data,"input")&&leverageNative(data,"click"),!0},_default:function(event){event=event.target;return rcheckableType.test(event.type)&&event.click&&nodeName(event,"input")&&dataPriv.get(event,"click")||nodeName(event,"a")}},beforeunload:{postDispatch:function(event){void 0!==event.result&&event.originalEvent&&(event.originalEvent.returnValue=event.result)}}}},jQuery.removeEvent=function(elem,type,handle){elem.removeEventListener&&elem.removeEventListener(type,handle)},jQuery.Event=function(src,props){if(!(this instanceof jQuery.Event))return new jQuery.Event(src,props);src&&src.type?(this.originalEvent=src,this.type=src.type,this.isDefaultPrevented=src.defaultPrevented||void 0===src.defaultPrevented&&!1===src.returnValue?returnTrue:returnFalse,this.target=src.target&&3===src.target.nodeType?src.target.parentNode:src.target,this.currentTarget=src.currentTarget,this.relatedTarget=src.relatedTarget):this.type=src,props&&jQuery.extend(this,props),this.timeStamp=src&&src.timeStamp||Date.now(),this[jQuery.expando]=!0},jQuery.Event.prototype={constructor:jQuery.Event,isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=returnTrue,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=returnTrue,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=returnTrue,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},jQuery.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},jQuery.event.addProp),jQuery.each({focus:"focusin",blur:"focusout"},function(type,delegateType){function focusMappedHandler(nativeEvent){var handle,event;document.documentMode?(handle=dataPriv.get(this,"handle"),(event=jQuery.event.fix(nativeEvent)).type="focusin"===nativeEvent.type?"focus":"blur",event.isSimulated=!0,handle(nativeEvent),event.target===event.currentTarget&&handle(event)):jQuery.event.simulate(delegateType,nativeEvent.target,jQuery.event.fix(nativeEvent))}jQuery.event.special[type]={setup:function(){var attaches;if(leverageNative(this,type,!0),!document.documentMode)return!1;(attaches=dataPriv.get(this,delegateType))||this.addEventListener(delegateType,focusMappedHandler),dataPriv.set(this,delegateType,(attaches||0)+1)},trigger:function(){return leverageNative(this,type),!0},teardown:function(){var attaches;if(!document.documentMode)return!1;(attaches=dataPriv.get(this,delegateType)-1)?dataPriv.set(this,delegateType,attaches):(this.removeEventListener(delegateType,focusMappedHandler),dataPriv.remove(this,delegateType))},_default:function(event){return dataPriv.get(event.target,type)},delegateType:delegateType},jQuery.event.special[delegateType]={setup:function(){var doc=this.ownerDocument||this.document||this,dataHolder=document.documentMode?this:doc,attaches=dataPriv.get(dataHolder,delegateType);attaches||(document.documentMode?this.addEventListener(delegateType,focusMappedHandler):doc.addEventListener(type,focusMappedHandler,!0)),dataPriv.set(dataHolder,delegateType,(attaches||0)+1)},teardown:function(){var doc=this.ownerDocument||this.document||this,dataHolder=document.documentMode?this:doc,attaches=dataPriv.get(dataHolder,delegateType)-1;attaches?dataPriv.set(dataHolder,delegateType,attaches):(document.documentMode?this.removeEventListener(delegateType,focusMappedHandler):doc.removeEventListener(type,focusMappedHandler,!0),dataPriv.remove(dataHolder,delegateType))}}}),jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(orig,fix){jQuery.event.special[orig]={delegateType:fix,bindType:fix,handle:function(event){var ret,related=event.relatedTarget,handleObj=event.handleObj;return related&&(related===this||jQuery.contains(this,related))||(event.type=handleObj.origType,ret=handleObj.handler.apply(this,arguments),event.type=fix),ret}}}),jQuery.fn.extend({on:function(types,selector,data,fn){return on(this,types,selector,data,fn)},one:function(types,selector,data,fn){return on(this,types,selector,data,fn,1)},off:function(types,selector,fn){var handleObj,type;if(types&&types.preventDefault&&types.handleObj)handleObj=types.handleObj,jQuery(types.delegateTarget).off(handleObj.namespace?handleObj.origType+"."+handleObj.namespace:handleObj.origType,handleObj.selector,handleObj.handler);else{if("object"!=typeof types)return!1!==selector&&"function"!=typeof selector||(fn=selector,selector=void 0),!1===fn&&(fn=returnFalse),this.each(function(){jQuery.event.remove(this,types,fn,selector)});for(type in types)this.off(type,selector,types[type])}return this}});var rnoInnerhtml=/<script|<style|<link/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rcleanScript=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function manipulationTarget(elem,content){return nodeName(elem,"table")&&nodeName(11!==content.nodeType?content:content.firstChild,"tr")&&jQuery(elem).children("tbody")[0]||elem}function disableScript(elem){return elem.type=(null!==elem.getAttribute("type"))+"/"+elem.type,elem}function restoreScript(elem){return"true/"===(elem.type||"").slice(0,5)?elem.type=elem.type.slice(5):elem.removeAttribute("type"),elem}function cloneCopyEvent(src,dest){var i,l,type,events;if(1===dest.nodeType){if(dataPriv.hasData(src)&&(events=dataPriv.get(src).events))for(type in dataPriv.remove(dest,"handle events"),events)for(i=0,l=events[type].length;i<l;i++)jQuery.event.add(dest,type,events[type][i]);dataUser.hasData(src)&&(src=dataUser.access(src),src=jQuery.extend({},src),dataUser.set(dest,src))}}function domManip(collection,args,callback,ignored){args=flat(args);var fragment,first,scripts,hasScripts,node,doc,i=0,l=collection.length,iNoClone=l-1,value=args[0],valueIsFunction=isFunction(value);if(valueIsFunction||1<l&&"string"==typeof value&&!support.checkClone&&rchecked.test(value))return collection.each(function(index){var self=collection.eq(index);valueIsFunction&&(args[0]=value.call(this,index,self.html())),domManip(self,args,callback,ignored)});if(l&&(first=(fragment=buildFragment(args,collection[0].ownerDocument,!1,collection,ignored)).firstChild,1===fragment.childNodes.length&&(fragment=first),first||ignored)){for(hasScripts=(scripts=jQuery.map(getAll(fragment,"script"),disableScript)).length;i<l;i++)node=fragment,i!==iNoClone&&(node=jQuery.clone(node,!0,!0),hasScripts)&&jQuery.merge(scripts,getAll(node,"script")),callback.call(collection[i],node,i);if(hasScripts)for(doc=scripts[scripts.length-1].ownerDocument,jQuery.map(scripts,restoreScript),i=0;i<hasScripts;i++)node=scripts[i],rscriptType.test(node.type||"")&&!dataPriv.access(node,"globalEval")&&jQuery.contains(doc,node)&&(node.src&&"module"!==(node.type||"").toLowerCase()?jQuery._evalUrl&&!node.noModule&&jQuery._evalUrl(node.src,{nonce:node.nonce||node.getAttribute("nonce")},doc):DOMEval(node.textContent.replace(rcleanScript,""),node,doc))}return collection}function remove(elem,selector,keepData){for(var node,nodes=selector?jQuery.filter(selector,elem):elem,i=0;null!=(node=nodes[i]);i++)keepData||1!==node.nodeType||jQuery.cleanData(getAll(node)),node.parentNode&&(keepData&&isAttached(node)&&setGlobalEval(getAll(node,"script")),node.parentNode.removeChild(node));return elem}jQuery.extend({htmlPrefilter:function(html){return html},clone:function(elem,dataAndEvents,deepDataAndEvents){var i,l,srcElements,destElements,src,dest,nodeName,clone=elem.cloneNode(!0),inPage=isAttached(elem);if(!(support.noCloneChecked||1!==elem.nodeType&&11!==elem.nodeType||jQuery.isXMLDoc(elem)))for(destElements=getAll(clone),i=0,l=(srcElements=getAll(elem)).length;i<l;i++)src=srcElements[i],dest=destElements[i],nodeName=void 0,"input"===(nodeName=dest.nodeName.toLowerCase())&&rcheckableType.test(src.type)?dest.checked=src.checked:"input"!==nodeName&&"textarea"!==nodeName||(dest.defaultValue=src.defaultValue);if(dataAndEvents)if(deepDataAndEvents)for(srcElements=srcElements||getAll(elem),destElements=destElements||getAll(clone),i=0,l=srcElements.length;i<l;i++)cloneCopyEvent(srcElements[i],destElements[i]);else cloneCopyEvent(elem,clone);return 0<(destElements=getAll(clone,"script")).length&&setGlobalEval(destElements,!inPage&&getAll(elem,"script")),clone},cleanData:function(elems){for(var data,elem,type,special=jQuery.event.special,i=0;void 0!==(elem=elems[i]);i++)if(acceptData(elem)){if(data=elem[dataPriv.expando]){if(data.events)for(type in data.events)special[type]?jQuery.event.remove(elem,type):jQuery.removeEvent(elem,type,data.handle);elem[dataPriv.expando]=void 0}elem[dataUser.expando]&&(elem[dataUser.expando]=void 0)}}}),jQuery.fn.extend({detach:function(selector){return remove(this,selector,!0)},remove:function(selector){return remove(this,selector)},text:function(value){return access(this,function(value){return void 0===value?jQuery.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=value)})},null,value,arguments.length)},append:function(){return domManip(this,arguments,function(elem){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||manipulationTarget(this,elem).appendChild(elem)})},prepend:function(){return domManip(this,arguments,function(elem){var target;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(target=manipulationTarget(this,elem)).insertBefore(elem,target.firstChild)})},before:function(){return domManip(this,arguments,function(elem){this.parentNode&&this.parentNode.insertBefore(elem,this)})},after:function(){return domManip(this,arguments,function(elem){this.parentNode&&this.parentNode.insertBefore(elem,this.nextSibling)})},empty:function(){for(var elem,i=0;null!=(elem=this[i]);i++)1===elem.nodeType&&(jQuery.cleanData(getAll(elem,!1)),elem.textContent="");return this},clone:function(dataAndEvents,deepDataAndEvents){return dataAndEvents=null!=dataAndEvents&&dataAndEvents,deepDataAndEvents=null==deepDataAndEvents?dataAndEvents:deepDataAndEvents,this.map(function(){return jQuery.clone(this,dataAndEvents,deepDataAndEvents)})},html:function(value){return access(this,function(value){var elem=this[0]||{},i=0,l=this.length;if(void 0===value&&1===elem.nodeType)return elem.innerHTML;if("string"==typeof value&&!rnoInnerhtml.test(value)&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=jQuery.htmlPrefilter(value);try{for(;i<l;i++)1===(elem=this[i]||{}).nodeType&&(jQuery.cleanData(getAll(elem,!1)),elem.innerHTML=value);elem=0}catch(e){}}elem&&this.empty().append(value)},null,value,arguments.length)},replaceWith:function(){var ignored=[];return domManip(this,arguments,function(elem){var parent=this.parentNode;jQuery.inArray(this,ignored)<0&&(jQuery.cleanData(getAll(this)),parent)&&parent.replaceChild(elem,this)},ignored)}}),jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){for(var elems,ret=[],insert=jQuery(selector),last=insert.length-1,i=0;i<=last;i++)elems=i===last?this:this.clone(!0),jQuery(insert[i])[original](elems),push.apply(ret,elems.get());return this.pushStack(ret)}});function getStyles(elem){var view=elem.ownerDocument.defaultView;return(view=view&&view.opener?view:window).getComputedStyle(elem)}function swap(elem,options,callback){var name,old={};for(name in options)old[name]=elem.style[name],elem.style[name]=options[name];for(name in callback=callback.call(elem),options)elem.style[name]=old[name];return callback}var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i"),rcustomProp=/^--/,rboxStyle=new RegExp(cssExpand.join("|"),"i");function curCSS(elem,name,computed){var ret,isCustomProp=rcustomProp.test(name),style=elem.style;return(computed=computed||getStyles(elem))&&(ret=computed.getPropertyValue(name)||computed[name],""!==(ret=isCustomProp?ret&&(ret.replace(rtrimCSS,"$1")||void 0):ret)||isAttached(elem)||(ret=jQuery.style(elem,name)),!support.pixelBoxStyles())&&rnumnonpx.test(ret)&&rboxStyle.test(name)&&(isCustomProp=style.width,elem=style.minWidth,name=style.maxWidth,style.minWidth=style.maxWidth=style.width=ret,ret=computed.width,style.width=isCustomProp,style.minWidth=elem,style.maxWidth=name),void 0!==ret?ret+"":ret}function addGetHookIf(conditionFn,hookFn){return{get:function(){if(!conditionFn())return(this.get=hookFn).apply(this,arguments);delete this.get}}}(()=>{function computeStyleTests(){var divStyle;div&&(container.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",div.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",documentElement.appendChild(container).appendChild(div),divStyle=window.getComputedStyle(div),pixelPositionVal="1%"!==divStyle.top,reliableMarginLeftVal=12===roundPixelMeasures(divStyle.marginLeft),div.style.right="60%",pixelBoxStylesVal=36===roundPixelMeasures(divStyle.right),boxSizingReliableVal=36===roundPixelMeasures(divStyle.width),div.style.position="absolute",scrollboxSizeVal=12===roundPixelMeasures(div.offsetWidth/3),documentElement.removeChild(container),div=null)}function roundPixelMeasures(measure){return Math.round(parseFloat(measure))}var pixelPositionVal,boxSizingReliableVal,scrollboxSizeVal,pixelBoxStylesVal,reliableTrDimensionsVal,reliableMarginLeftVal,container=document.createElement("div"),div=document.createElement("div");div.style&&(div.style.backgroundClip="content-box",div.cloneNode(!0).style.backgroundClip="",support.clearCloneStyle="content-box"===div.style.backgroundClip,jQuery.extend(support,{boxSizingReliable:function(){return computeStyleTests(),boxSizingReliableVal},pixelBoxStyles:function(){return computeStyleTests(),pixelBoxStylesVal},pixelPosition:function(){return computeStyleTests(),pixelPositionVal},reliableMarginLeft:function(){return computeStyleTests(),reliableMarginLeftVal},scrollboxSize:function(){return computeStyleTests(),scrollboxSizeVal},reliableTrDimensions:function(){var table,tr,trChild;return null==reliableTrDimensionsVal&&(table=document.createElement("table"),tr=document.createElement("tr"),trChild=document.createElement("div"),table.style.cssText="position:absolute;left:-11111px;border-collapse:separate",tr.style.cssText="box-sizing:content-box;border:1px solid",tr.style.height="1px",trChild.style.height="9px",trChild.style.display="block",documentElement.appendChild(table).appendChild(tr).appendChild(trChild),trChild=window.getComputedStyle(tr),reliableTrDimensionsVal=parseInt(trChild.height,10)+parseInt(trChild.borderTopWidth,10)+parseInt(trChild.borderBottomWidth,10)===tr.offsetHeight,documentElement.removeChild(table)),reliableTrDimensionsVal}}))})();var cssPrefixes=["Webkit","Moz","ms"],emptyStyle=document.createElement("div").style,vendorProps={};function finalPropName(name){var final=jQuery.cssProps[name]||vendorProps[name];return final||(name in emptyStyle?name:vendorProps[name]=(name=>{for(var capName=name[0].toUpperCase()+name.slice(1),i=cssPrefixes.length;i--;)if((name=cssPrefixes[i]+capName)in emptyStyle)return name})(name)||name)}var rdisplayswap=/^(none|table(?!-c[ea]).+)/,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:"0",fontWeight:"400"};function setPositiveNumber(_elem,value,subtract){var matches=rcssNum.exec(value);return matches?Math.max(0,matches[2]-(subtract||0))+(matches[3]||"px"):value}function boxModelAdjustment(elem,dimension,box,isBorderBox,styles,computedVal){var i="width"===dimension?1:0,extra=0,delta=0,marginDelta=0;if(box===(isBorderBox?"border":"content"))return 0;for(;i<4;i+=2)"margin"===box&&(marginDelta+=jQuery.css(elem,box+cssExpand[i],!0,styles)),isBorderBox?("content"===box&&(delta-=jQuery.css(elem,"padding"+cssExpand[i],!0,styles)),"margin"!==box&&(delta-=jQuery.css(elem,"border"+cssExpand[i]+"Width",!0,styles))):(delta+=jQuery.css(elem,"padding"+cssExpand[i],!0,styles),"padding"!==box?delta+=jQuery.css(elem,"border"+cssExpand[i]+"Width",!0,styles):extra+=jQuery.css(elem,"border"+cssExpand[i]+"Width",!0,styles));return!isBorderBox&&0<=computedVal&&(delta+=Math.max(0,Math.ceil(elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-computedVal-delta-extra-.5))||0),delta+marginDelta}function getWidthOrHeight(elem,dimension,extra){var styles=getStyles(elem),isBorderBox=(!support.boxSizingReliable()||extra)&&"border-box"===jQuery.css(elem,"boxSizing",!1,styles),valueIsBorderBox=isBorderBox,val=curCSS(elem,dimension,styles),offsetProp="offset"+dimension[0].toUpperCase()+dimension.slice(1);if(rnumnonpx.test(val)){if(!extra)return val;val="auto"}return(!support.boxSizingReliable()&&isBorderBox||!support.reliableTrDimensions()&&nodeName(elem,"tr")||"auto"===val||!parseFloat(val)&&"inline"===jQuery.css(elem,"display",!1,styles))&&elem.getClientRects().length&&(isBorderBox="border-box"===jQuery.css(elem,"boxSizing",!1,styles),valueIsBorderBox=offsetProp in elem)&&(val=elem[offsetProp]),(val=parseFloat(val)||0)+boxModelAdjustment(elem,dimension,extra||(isBorderBox?"border":"content"),valueIsBorderBox,styles,val)+"px"}function Tween(elem,options,prop,end,easing){return new Tween.prototype.init(elem,options,prop,end,easing)}jQuery.extend({cssHooks:{opacity:{get:function(elem,computed){if(computed)return""===(computed=curCSS(elem,"opacity"))?"1":computed}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(elem,name,value,extra){if(elem&&3!==elem.nodeType&&8!==elem.nodeType&&elem.style){var ret,type,hooks,origName=camelCase(name),isCustomProp=rcustomProp.test(name),style=elem.style;if(isCustomProp||(name=finalPropName(origName)),hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName],void 0===value)return hooks&&"get"in hooks&&void 0!==(ret=hooks.get(elem,!1,extra))?ret:style[name];"string"===(type=typeof value)&&(ret=rcssNum.exec(value))&&ret[1]&&(value=adjustCSS(elem,name,ret),type="number"),null==value||value!=value||("number"!==type||isCustomProp||(value+=ret&&ret[3]||(jQuery.cssNumber[origName]?"":"px")),support.clearCloneStyle||""!==value||0!==name.indexOf("background")||(style[name]="inherit"),hooks&&"set"in hooks&&void 0===(value=hooks.set(elem,value,extra)))||(isCustomProp?style.setProperty(name,value):style[name]=value)}},css:function(elem,name,extra,styles){var val,origName=camelCase(name);return rcustomProp.test(name)||(name=finalPropName(origName)),"normal"===(val=void 0===(val=(origName=jQuery.cssHooks[name]||jQuery.cssHooks[origName])&&"get"in origName?origName.get(elem,!0,extra):val)?curCSS(elem,name,styles):val)&&name in cssNormalTransform&&(val=cssNormalTransform[name]),(""===extra||extra)&&(origName=parseFloat(val),!0===extra||isFinite(origName))?origName||0:val}}),jQuery.each(["height","width"],function(_i,dimension){jQuery.cssHooks[dimension]={get:function(elem,computed,extra){if(computed)return!rdisplayswap.test(jQuery.css(elem,"display"))||elem.getClientRects().length&&elem.getBoundingClientRect().width?getWidthOrHeight(elem,dimension,extra):swap(elem,cssShow,function(){return getWidthOrHeight(elem,dimension,extra)})},set:function(elem,value,extra){var styles=getStyles(elem),scrollboxSizeBuggy=!support.scrollboxSize()&&"absolute"===styles.position,isBorderBox=(scrollboxSizeBuggy||extra)&&"border-box"===jQuery.css(elem,"boxSizing",!1,styles),extra=extra?boxModelAdjustment(elem,dimension,extra,isBorderBox,styles):0;return isBorderBox&&scrollboxSizeBuggy&&(extra-=Math.ceil(elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-parseFloat(styles[dimension])-boxModelAdjustment(elem,dimension,"border",!1,styles)-.5)),extra&&(isBorderBox=rcssNum.exec(value))&&"px"!==(isBorderBox[3]||"px")&&(elem.style[dimension]=value,value=jQuery.css(elem,dimension)),setPositiveNumber(0,value,extra)}}}),jQuery.cssHooks.marginLeft=addGetHookIf(support.reliableMarginLeft,function(elem,computed){if(computed)return(parseFloat(curCSS(elem,"marginLeft"))||elem.getBoundingClientRect().left-swap(elem,{marginLeft:0},function(){return elem.getBoundingClientRect().left}))+"px"}),jQuery.each({margin:"",padding:"",border:"Width"},function(prefix,suffix){jQuery.cssHooks[prefix+suffix]={expand:function(value){for(var i=0,expanded={},parts="string"==typeof value?value.split(" "):[value];i<4;i++)expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0];return expanded}},"margin"!==prefix&&(jQuery.cssHooks[prefix+suffix].set=setPositiveNumber)}),jQuery.fn.extend({css:function(name,value){return access(this,function(elem,name,value){var styles,len,map={},i=0;if(Array.isArray(name)){for(styles=getStyles(elem),len=name.length;i<len;i++)map[name[i]]=jQuery.css(elem,name[i],!1,styles);return map}return void 0!==value?jQuery.style(elem,name,value):jQuery.css(elem,name)},name,value,1<arguments.length)}}),((jQuery.Tween=Tween).prototype={constructor:Tween,init:function(elem,options,prop,end,easing,unit){this.elem=elem,this.prop=prop,this.easing=easing||jQuery.easing._default,this.options=options,this.start=this.now=this.cur(),this.end=end,this.unit=unit||(jQuery.cssNumber[prop]?"":"px")},cur:function(){var hooks=Tween.propHooks[this.prop];return(hooks&&hooks.get?hooks:Tween.propHooks._default).get(this)},run:function(percent){var eased,hooks=Tween.propHooks[this.prop];return this.options.duration?this.pos=eased=jQuery.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration):this.pos=eased=percent,this.now=(this.end-this.start)*eased+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(hooks&&hooks.set?hooks:Tween.propHooks._default).set(this),this}}).init.prototype=Tween.prototype,(Tween.propHooks={_default:{get:function(tween){return 1!==tween.elem.nodeType||null!=tween.elem[tween.prop]&&null==tween.elem.style[tween.prop]?tween.elem[tween.prop]:(tween=jQuery.css(tween.elem,tween.prop,""))&&"auto"!==tween?tween:0},set:function(tween){jQuery.fx.step[tween.prop]?jQuery.fx.step[tween.prop](tween):1!==tween.elem.nodeType||!jQuery.cssHooks[tween.prop]&&null==tween.elem.style[finalPropName(tween.prop)]?tween.elem[tween.prop]=tween.now:jQuery.style(tween.elem,tween.prop,tween.now+tween.unit)}}}).scrollTop=Tween.propHooks.scrollLeft={set:function(tween){tween.elem.nodeType&&tween.elem.parentNode&&(tween.elem[tween.prop]=tween.now)}},jQuery.easing={linear:function(p){return p},swing:function(p){return.5-Math.cos(p*Math.PI)/2},_default:"swing"},jQuery.fx=Tween.prototype.init,jQuery.fx.step={};var fxNow,inProgress,rfxtypes=/^(?:toggle|show|hide)$/,rrun=/queueHooks$/;function schedule(){inProgress&&(!1===document.hidden&&window.requestAnimationFrame?window.requestAnimationFrame(schedule):window.setTimeout(schedule,jQuery.fx.interval),jQuery.fx.tick())}function createFxNow(){return window.setTimeout(function(){fxNow=void 0}),fxNow=Date.now()}function genFx(type,includeWidth){var which,i=0,attrs={height:type};for(includeWidth=includeWidth?1:0;i<4;i+=2-includeWidth)attrs["margin"+(which=cssExpand[i])]=attrs["padding"+which]=type;return includeWidth&&(attrs.opacity=attrs.width=type),attrs}function createTween(value,prop,animation){for(var tween,collection=(Animation.tweeners[prop]||[]).concat(Animation.tweeners["*"]),index=0,length=collection.length;index<length;index++)if(tween=collection[index].call(animation,prop,value))return tween}function Animation(elem,properties,options){var result,stopped,index=0,length=Animation.prefilters.length,deferred=jQuery.Deferred().always(function(){delete tick.elem}),tick=function(){if(!stopped){for(var currentTime=fxNow||createFxNow(),currentTime=Math.max(0,animation.startTime+animation.duration-currentTime),percent=1-(currentTime/animation.duration||0),index=0,length=animation.tweens.length;index<length;index++)animation.tweens[index].run(percent);if(deferred.notifyWith(elem,[animation,percent,currentTime]),percent<1&&length)return currentTime;length||deferred.notifyWith(elem,[animation,1,0]),deferred.resolveWith(elem,[animation])}return!1},animation=deferred.promise({elem:elem,props:jQuery.extend({},properties),opts:jQuery.extend(!0,{specialEasing:{},easing:jQuery.easing._default},options),originalProperties:properties,originalOptions:options,startTime:fxNow||createFxNow(),duration:options.duration,tweens:[],createTween:function(prop,end){end=jQuery.Tween(elem,animation.opts,prop,end,animation.opts.specialEasing[prop]||animation.opts.easing);return animation.tweens.push(end),end},stop:function(gotoEnd){var index=0,length=gotoEnd?animation.tweens.length:0;if(!stopped){for(stopped=!0;index<length;index++)animation.tweens[index].run(1);gotoEnd?(deferred.notifyWith(elem,[animation,1,0]),deferred.resolveWith(elem,[animation,gotoEnd])):deferred.rejectWith(elem,[animation,gotoEnd])}return this}}),props=animation.props;for(((props,specialEasing)=>{var index,name,easing,value,hooks;for(index in props)if(easing=specialEasing[name=camelCase(index)],value=props[index],Array.isArray(value)&&(easing=value[1],value=props[index]=value[0]),index!==name&&(props[name]=value,delete props[index]),(hooks=jQuery.cssHooks[name])&&"expand"in hooks)for(index in value=hooks.expand(value),delete props[name],value)index in props||(props[index]=value[index],specialEasing[index]=easing);else specialEasing[name]=easing})(props,animation.opts.specialEasing);index<length;index++)if(result=Animation.prefilters[index].call(animation,elem,props,animation.opts))return isFunction(result.stop)&&(jQuery._queueHooks(animation.elem,animation.opts.queue).stop=result.stop.bind(result)),result;return jQuery.map(props,createTween,animation),isFunction(animation.opts.start)&&animation.opts.start.call(elem,animation),animation.progress(animation.opts.progress).done(animation.opts.done,animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always),jQuery.fx.timer(jQuery.extend(tick,{elem:elem,anim:animation,queue:animation.opts.queue})),animation}jQuery.Animation=jQuery.extend(Animation,{tweeners:{"*":[function(prop,value){var tween=this.createTween(prop,value);return adjustCSS(tween.elem,prop,rcssNum.exec(value),tween),tween}]},tweener:function(props,callback){for(var prop,index=0,length=(props=isFunction(props)?(callback=props,["*"]):props.match(rnothtmlwhite)).length;index<length;index++)prop=props[index],Animation.tweeners[prop]=Animation.tweeners[prop]||[],Animation.tweeners[prop].unshift(callback)},prefilters:[function(elem,props,opts){var prop,value,toggle,hooks,oldfire,propTween,restoreDisplay,isBox="width"in props||"height"in props,anim=this,orig={},style=elem.style,hidden=elem.nodeType&&isHiddenWithinTree(elem),dataShow=dataPriv.get(elem,"fxshow");for(prop in opts.queue||(null==(hooks=jQuery._queueHooks(elem,"fx")).unqueued&&(hooks.unqueued=0,oldfire=hooks.empty.fire,hooks.empty.fire=function(){hooks.unqueued||oldfire()}),hooks.unqueued++,anim.always(function(){anim.always(function(){hooks.unqueued--,jQuery.queue(elem,"fx").length||hooks.empty.fire()})})),props)if(value=props[prop],rfxtypes.test(value)){if(delete props[prop],toggle=toggle||"toggle"===value,value===(hidden?"hide":"show")){if("show"!==value||!dataShow||void 0===dataShow[prop])continue;hidden=!0}orig[prop]=dataShow&&dataShow[prop]||jQuery.style(elem,prop)}if((propTween=!jQuery.isEmptyObject(props))||!jQuery.isEmptyObject(orig))for(prop in isBox&&1===elem.nodeType&&(opts.overflow=[style.overflow,style.overflowX,style.overflowY],null==(restoreDisplay=dataShow&&dataShow.display)&&(restoreDisplay=dataPriv.get(elem,"display")),"none"===(isBox=jQuery.css(elem,"display"))&&(restoreDisplay?isBox=restoreDisplay:(showHide([elem],!0),restoreDisplay=elem.style.display||restoreDisplay,isBox=jQuery.css(elem,"display"),showHide([elem]))),"inline"===isBox||"inline-block"===isBox&&null!=restoreDisplay)&&"none"===jQuery.css(elem,"float")&&(propTween||(anim.done(function(){style.display=restoreDisplay}),null==restoreDisplay&&(isBox=style.display,restoreDisplay="none"===isBox?"":isBox)),style.display="inline-block"),opts.overflow&&(style.overflow="hidden",anim.always(function(){style.overflow=opts.overflow[0],style.overflowX=opts.overflow[1],style.overflowY=opts.overflow[2]})),propTween=!1,orig)propTween||(dataShow?"hidden"in dataShow&&(hidden=dataShow.hidden):dataShow=dataPriv.access(elem,"fxshow",{display:restoreDisplay}),toggle&&(dataShow.hidden=!hidden),hidden&&showHide([elem],!0),anim.done(function(){for(prop in hidden||showHide([elem]),dataPriv.remove(elem,"fxshow"),orig)jQuery.style(elem,prop,orig[prop])})),propTween=createTween(hidden?dataShow[prop]:0,prop,anim),prop in dataShow||(dataShow[prop]=propTween.start,hidden&&(propTween.end=propTween.start,propTween.start=0))}],prefilter:function(callback,prepend){prepend?Animation.prefilters.unshift(callback):Animation.prefilters.push(callback)}}),jQuery.speed=function(speed,easing,fn){var opt=speed&&"object"==typeof speed?jQuery.extend({},speed):{complete:fn||!fn&&easing||isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!isFunction(easing)&&easing};return jQuery.fx.off?opt.duration=0:"number"!=typeof opt.duration&&(opt.duration in jQuery.fx.speeds?opt.duration=jQuery.fx.speeds[opt.duration]:opt.duration=jQuery.fx.speeds._default),null!=opt.queue&&!0!==opt.queue||(opt.queue="fx"),opt.old=opt.complete,opt.complete=function(){isFunction(opt.old)&&opt.old.call(this),opt.queue&&jQuery.dequeue(this,opt.queue)},opt},jQuery.fn.extend({fadeTo:function(speed,to,easing,callback){return this.filter(isHiddenWithinTree).css("opacity",0).show().end().animate({opacity:to},speed,easing,callback)},animate:function(prop,speed,easing,callback){function doAnimation(){var anim=Animation(this,jQuery.extend({},prop),optall);(empty||dataPriv.get(this,"finish"))&&anim.stop(!0)}var empty=jQuery.isEmptyObject(prop),optall=jQuery.speed(speed,easing,callback);return doAnimation.finish=doAnimation,empty||!1===optall.queue?this.each(doAnimation):this.queue(optall.queue,doAnimation)},stop:function(type,clearQueue,gotoEnd){function stopQueue(hooks){var stop=hooks.stop;delete hooks.stop,stop(gotoEnd)}return"string"!=typeof type&&(gotoEnd=clearQueue,clearQueue=type,type=void 0),clearQueue&&this.queue(type||"fx",[]),this.each(function(){var dequeue=!0,index=null!=type&&type+"queueHooks",timers=jQuery.timers,data=dataPriv.get(this);if(index)data[index]&&data[index].stop&&stopQueue(data[index]);else for(index in data)data[index]&&data[index].stop&&rrun.test(index)&&stopQueue(data[index]);for(index=timers.length;index--;)timers[index].elem!==this||null!=type&&timers[index].queue!==type||(timers[index].anim.stop(gotoEnd),dequeue=!1,timers.splice(index,1));!dequeue&&gotoEnd||jQuery.dequeue(this,type)})},finish:function(type){return!1!==type&&(type=type||"fx"),this.each(function(){var index,data=dataPriv.get(this),queue=data[type+"queue"],hooks=data[type+"queueHooks"],timers=jQuery.timers,length=queue?queue.length:0;for(data.finish=!0,jQuery.queue(this,type,[]),hooks&&hooks.stop&&hooks.stop.call(this,!0),index=timers.length;index--;)timers[index].elem===this&&timers[index].queue===type&&(timers[index].anim.stop(!0),timers.splice(index,1));for(index=0;index<length;index++)queue[index]&&queue[index].finish&&queue[index].finish.call(this);delete data.finish})}}),jQuery.each(["toggle","show","hide"],function(_i,name){var cssFn=jQuery.fn[name];jQuery.fn[name]=function(speed,easing,callback){return null==speed||"boolean"==typeof speed?cssFn.apply(this,arguments):this.animate(genFx(name,!0),speed,easing,callback)}}),jQuery.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(name,props){jQuery.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback)}}),jQuery.timers=[],jQuery.fx.tick=function(){var timer,i=0,timers=jQuery.timers;for(fxNow=Date.now();i<timers.length;i++)(timer=timers[i])()||timers[i]!==timer||timers.splice(i--,1);timers.length||jQuery.fx.stop(),fxNow=void 0},jQuery.fx.timer=function(timer){jQuery.timers.push(timer),jQuery.fx.start()},jQuery.fx.interval=13,jQuery.fx.start=function(){inProgress||(inProgress=!0,schedule())},jQuery.fx.stop=function(){inProgress=null},jQuery.fx.speeds={slow:600,fast:200,_default:400},jQuery.fn.delay=function(time,type){return time=jQuery.fx&&jQuery.fx.speeds[time]||time,this.queue(type=type||"fx",function(next,hooks){var timeout=window.setTimeout(next,time);hooks.stop=function(){window.clearTimeout(timeout)}})},(()=>{var input=document.createElement("input"),opt=document.createElement("select").appendChild(document.createElement("option"));input.type="checkbox",support.checkOn=""!==input.value,support.optSelected=opt.selected,(input=document.createElement("input")).value="t",input.type="radio",support.radioValue="t"===input.value})();var boolHook,attrHandle=jQuery.expr.attrHandle,rfocusable=(jQuery.fn.extend({attr:function(name,value){return access(this,jQuery.attr,name,value,1<arguments.length)},removeAttr:function(name){return this.each(function(){jQuery.removeAttr(this,name)})}}),jQuery.extend({attr:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(3!==nType&&8!==nType&&2!==nType)return void 0===elem.getAttribute?jQuery.prop(elem,name,value):(1===nType&&jQuery.isXMLDoc(elem)||(hooks=jQuery.attrHooks[name.toLowerCase()]||(jQuery.expr.match.bool.test(name)?boolHook:void 0)),void 0!==value?null===value?void jQuery.removeAttr(elem,name):hooks&&"set"in hooks&&void 0!==(ret=hooks.set(elem,value,name))?ret:(elem.setAttribute(name,value+""),value):!(hooks&&"get"in hooks&&null!==(ret=hooks.get(elem,name)))&&null==(ret=jQuery.find.attr(elem,name))?void 0:ret)},attrHooks:{type:{set:function(elem,value){var val;if(!support.radioValue&&"radio"===value&&nodeName(elem,"input"))return val=elem.value,elem.setAttribute("type",value),val&&(elem.value=val),value}}},removeAttr:function(elem,value){var name,i=0,attrNames=value&&value.match(rnothtmlwhite);if(attrNames&&1===elem.nodeType)for(;name=attrNames[i++];)elem.removeAttribute(name)}}),boolHook={set:function(elem,value,name){return!1===value?jQuery.removeAttr(elem,name):elem.setAttribute(name,name),name}},jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),function(_i,name){var getter=attrHandle[name]||jQuery.find.attr;attrHandle[name]=function(elem,name,isXML){var ret,handle,lowercaseName=name.toLowerCase();return isXML||(handle=attrHandle[lowercaseName],attrHandle[lowercaseName]=ret,ret=null!=getter(elem,name,isXML)?lowercaseName:null,attrHandle[lowercaseName]=handle),ret}}),/^(?:input|select|textarea|button)$/i),rclickable=/^(?:a|area)$/i;function stripAndCollapse(value){return(value.match(rnothtmlwhite)||[]).join(" ")}function getClass(elem){return elem.getAttribute&&elem.getAttribute("class")||""}function classesToArray(value){return Array.isArray(value)?value:"string"==typeof value&&value.match(rnothtmlwhite)||[]}jQuery.fn.extend({prop:function(name,value){return access(this,jQuery.prop,name,value,1<arguments.length)},removeProp:function(name){return this.each(function(){delete this[jQuery.propFix[name]||name]})}}),jQuery.extend({prop:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(3!==nType&&8!==nType&&2!==nType)return 1===nType&&jQuery.isXMLDoc(elem)||(name=jQuery.propFix[name]||name,hooks=jQuery.propHooks[name]),void 0!==value?hooks&&"set"in hooks&&void 0!==(ret=hooks.set(elem,value,name))?ret:elem[name]=value:hooks&&"get"in hooks&&null!==(ret=hooks.get(elem,name))?ret:elem[name]},propHooks:{tabIndex:{get:function(elem){var tabindex=jQuery.find.attr(elem,"tabindex");return tabindex?parseInt(tabindex,10):rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),support.optSelected||(jQuery.propHooks.selected={get:function(elem){elem=elem.parentNode;return elem&&elem.parentNode&&elem.parentNode.selectedIndex,null},set:function(elem){elem=elem.parentNode;elem&&(elem.selectedIndex,elem.parentNode)&&elem.parentNode.selectedIndex}}),jQuery.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){jQuery.propFix[this.toLowerCase()]=this}),jQuery.fn.extend({addClass:function(value){var classNames,cur,curValue,className,i,finalValue;return isFunction(value)?this.each(function(j){jQuery(this).addClass(value.call(this,j,getClass(this)))}):(classNames=classesToArray(value)).length?this.each(function(){if(curValue=getClass(this),cur=1===this.nodeType&&" "+stripAndCollapse(curValue)+" "){for(i=0;i<classNames.length;i++)className=classNames[i],cur.indexOf(" "+className+" ")<0&&(cur+=className+" ");finalValue=stripAndCollapse(cur),curValue!==finalValue&&this.setAttribute("class",finalValue)}}):this},removeClass:function(value){var classNames,cur,curValue,className,i,finalValue;return isFunction(value)?this.each(function(j){jQuery(this).removeClass(value.call(this,j,getClass(this)))}):arguments.length?(classNames=classesToArray(value)).length?this.each(function(){if(curValue=getClass(this),cur=1===this.nodeType&&" "+stripAndCollapse(curValue)+" "){for(i=0;i<classNames.length;i++)for(className=classNames[i];-1<cur.indexOf(" "+className+" ");)cur=cur.replace(" "+className+" "," ");finalValue=stripAndCollapse(cur),curValue!==finalValue&&this.setAttribute("class",finalValue)}}):this:this.attr("class","")},toggleClass:function(value,stateVal){var classNames,className,i,self,type=typeof value,isValidValue="string"==type||Array.isArray(value);return isFunction(value)?this.each(function(i){jQuery(this).toggleClass(value.call(this,i,getClass(this),stateVal),stateVal)}):"boolean"==typeof stateVal&&isValidValue?stateVal?this.addClass(value):this.removeClass(value):(classNames=classesToArray(value),this.each(function(){if(isValidValue)for(self=jQuery(this),i=0;i<classNames.length;i++)className=classNames[i],self.hasClass(className)?self.removeClass(className):self.addClass(className);else void 0!==value&&"boolean"!=type||((className=getClass(this))&&dataPriv.set(this,"__className__",className),this.setAttribute&&this.setAttribute("class",!className&&!1!==value&&dataPriv.get(this,"__className__")||""))}))},hasClass:function(selector){for(var elem,i=0,className=" "+selector+" ";elem=this[i++];)if(1===elem.nodeType&&-1<(" "+stripAndCollapse(getClass(elem))+" ").indexOf(className))return!0;return!1}});function stopPropagationCallback(e){e.stopPropagation()}var rreturn=/\r/g,location=(jQuery.fn.extend({val:function(value){var hooks,ret,valueIsFunction,elem=this[0];return arguments.length?(valueIsFunction=isFunction(value),this.each(function(i){1!==this.nodeType||(null==(i=valueIsFunction?value.call(this,i,jQuery(this).val()):value)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=jQuery.map(i,function(value){return null==value?"":value+""})),(hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()])&&"set"in hooks&&void 0!==hooks.set(this,i,"value"))||(this.value=i)})):elem?(hooks=jQuery.valHooks[elem.type]||jQuery.valHooks[elem.nodeName.toLowerCase()])&&"get"in hooks&&void 0!==(ret=hooks.get(elem,"value"))?ret:"string"==typeof(ret=elem.value)?ret.replace(rreturn,""):null==ret?"":ret:void 0}}),jQuery.extend({valHooks:{option:{get:function(elem){var val=jQuery.find.attr(elem,"value");return null!=val?val:stripAndCollapse(jQuery.text(elem))}},select:{get:function(elem){for(var option,options=elem.options,index=elem.selectedIndex,one="select-one"===elem.type,values=one?null:[],max=one?index+1:options.length,i=index<0?max:one?index:0;i<max;i++)if(((option=options[i]).selected||i===index)&&!option.disabled&&(!option.parentNode.disabled||!nodeName(option.parentNode,"optgroup"))){if(option=jQuery(option).val(),one)return option;values.push(option)}return values},set:function(elem,value){for(var optionSet,option,options=elem.options,values=jQuery.makeArray(value),i=options.length;i--;)((option=options[i]).selected=-1<jQuery.inArray(jQuery.valHooks.option.get(option),values))&&(optionSet=!0);return optionSet||(elem.selectedIndex=-1),values}}}}),jQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]={set:function(elem,value){if(Array.isArray(value))return elem.checked=-1<jQuery.inArray(jQuery(elem).val(),value)}},support.checkOn||(jQuery.valHooks[this].get=function(elem){return null===elem.getAttribute("value")?"on":elem.value})}),window.location),nonce={guid:Date.now()},rquery=/\?/,rfocusMorph=(jQuery.parseXML=function(data){var xml,parserErrorElem;if(!data||"string"!=typeof data)return null;try{xml=(new window.DOMParser).parseFromString(data,"text/xml")}catch(e){}return parserErrorElem=xml&&xml.getElementsByTagName("parsererror")[0],xml&&!parserErrorElem||jQuery.error("Invalid XML: "+(parserErrorElem?jQuery.map(parserErrorElem.childNodes,function(el){return el.textContent}).join("\n"):data)),xml},/^(?:focusinfocus|focusoutblur)$/),rbracket=(jQuery.extend(jQuery.event,{trigger:function(event,data,elem,onlyHandlers){var i,tmp,bubbleType,ontype,handle,special,lastElement,eventPath=[elem||document],type=hasOwn.call(event,"type")?event.type:event,namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[],cur=lastElement=tmp=elem=elem||document;if(3!==elem.nodeType&&8!==elem.nodeType&&!rfocusMorph.test(type+jQuery.event.triggered)&&(-1<type.indexOf(".")&&(type=(namespaces=type.split(".")).shift(),namespaces.sort()),ontype=type.indexOf(":")<0&&"on"+type,(event=event[jQuery.expando]?event:new jQuery.Event(type,"object"==typeof event&&event)).isTrigger=onlyHandlers?2:3,event.namespace=namespaces.join("."),event.rnamespace=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,event.result=void 0,event.target||(event.target=elem),data=null==data?[event]:jQuery.makeArray(data,[event]),special=jQuery.event.special[type]||{},onlyHandlers||!special.trigger||!1!==special.trigger.apply(elem,data))){if(!onlyHandlers&&!special.noBubble&&!isWindow(elem)){for(bubbleType=special.delegateType||type,rfocusMorph.test(bubbleType+type)||(cur=cur.parentNode);cur;cur=cur.parentNode)eventPath.push(cur),tmp=cur;tmp===(elem.ownerDocument||document)&&eventPath.push(tmp.defaultView||tmp.parentWindow||window)}for(i=0;(cur=eventPath[i++])&&!event.isPropagationStopped();)lastElement=cur,event.type=1<i?bubbleType:special.bindType||type,(handle=(dataPriv.get(cur,"events")||Object.create(null))[event.type]&&dataPriv.get(cur,"handle"))&&handle.apply(cur,data),(handle=ontype&&cur[ontype])&&handle.apply&&acceptData(cur)&&(event.result=handle.apply(cur,data),!1===event.result)&&event.preventDefault();return event.type=type,onlyHandlers||event.isDefaultPrevented()||special._default&&!1!==special._default.apply(eventPath.pop(),data)||!acceptData(elem)||ontype&&isFunction(elem[type])&&!isWindow(elem)&&((tmp=elem[ontype])&&(elem[ontype]=null),jQuery.event.triggered=type,event.isPropagationStopped()&&lastElement.addEventListener(type,stopPropagationCallback),elem[type](),event.isPropagationStopped()&&lastElement.removeEventListener(type,stopPropagationCallback),jQuery.event.triggered=void 0,tmp)&&(elem[ontype]=tmp),event.result}},simulate:function(type,elem,event){event=jQuery.extend(new jQuery.Event,event,{type:type,isSimulated:!0});jQuery.event.trigger(event,null,elem)}}),jQuery.fn.extend({trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this)})},triggerHandler:function(type,data){var elem=this[0];if(elem)return jQuery.event.trigger(type,data,elem,!0)}}),/\[\]$/),rCRLF=/\r?\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;jQuery.param=function(a,traditional){function add(key,valueOrFunction){valueOrFunction=isFunction(valueOrFunction)?valueOrFunction():valueOrFunction,s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(null==valueOrFunction?"":valueOrFunction)}var prefix,s=[];if(null==a)return"";if(Array.isArray(a)||a.jquery&&!jQuery.isPlainObject(a))jQuery.each(a,function(){add(this.name,this.value)});else for(prefix in a)!function buildParams(prefix,obj,traditional,add){if(Array.isArray(obj))jQuery.each(obj,function(i,v){traditional||rbracket.test(prefix)?add(prefix,v):buildParams(prefix+"["+("object"==typeof v&&null!=v?i:"")+"]",v,traditional,add)});else if(traditional||"object"!==toType(obj))add(prefix,obj);else for(var name in obj)buildParams(prefix+"["+name+"]",obj[name],traditional,add)}(prefix,a[prefix],traditional,add);return s.join("&")},jQuery.fn.extend({serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var elements=jQuery.prop(this,"elements");return elements?jQuery.makeArray(elements):this}).filter(function(){var type=this.type;return this.name&&!jQuery(this).is(":disabled")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&(this.checked||!rcheckableType.test(type))}).map(function(_i,elem){var val=jQuery(this).val();return null==val?null:Array.isArray(val)?jQuery.map(val,function(val){return{name:elem.name,value:val.replace(rCRLF,"\r\n")}}):{name:elem.name,value:val.replace(rCRLF,"\r\n")}}).get()}});var r20=/%20/g,rhash=/#.*$/,rantiCache=/([?&])_=[^&]*/,rheaders=/^(.*?):[ \t]*([^\r\n]*)$/gm,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,prefilters={},transports={},allTypes="*/".concat("*"),originAnchor=document.createElement("a");function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){"string"!=typeof dataTypeExpression&&(func=dataTypeExpression,dataTypeExpression="*");var dataType,i=0,dataTypes=dataTypeExpression.toLowerCase().match(rnothtmlwhite)||[];if(isFunction(func))for(;dataType=dataTypes[i++];)"+"===dataType[0]?(dataType=dataType.slice(1)||"*",(structure[dataType]=structure[dataType]||[]).unshift(func)):(structure[dataType]=structure[dataType]||[]).push(func)}}function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){var inspected={},seekingTransport=structure===transports;function inspect(dataType){var selected;return inspected[dataType]=!0,jQuery.each(structure[dataType]||[],function(_,prefilterOrFactory){prefilterOrFactory=prefilterOrFactory(options,originalOptions,jqXHR);return"string"!=typeof prefilterOrFactory||seekingTransport||inspected[prefilterOrFactory]?seekingTransport?!(selected=prefilterOrFactory):void 0:(options.dataTypes.unshift(prefilterOrFactory),inspect(prefilterOrFactory),!1)}),selected}return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*")}function ajaxExtend(target,src){var key,deep,flatOptions=jQuery.ajaxSettings.flatOptions||{};for(key in src)void 0!==src[key]&&((flatOptions[key]?target:deep=deep||{})[key]=src[key]);return deep&&jQuery.extend(!0,target,deep),target}originAnchor.href=location.href,jQuery.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:location.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(location.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":allTypes,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":jQuery.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(target,settings){return settings?ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings):ajaxExtend(jQuery.ajaxSettings,target)},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(url,options){"object"==typeof url&&(options=url,url=void 0);var transport,cacheURL,responseHeadersString,responseHeaders,timeoutTimer,completed,fireGlobals,i,s=jQuery.ajaxSetup({},options=options||{}),callbackContext=s.context||s,globalEventContext=s.context&&(callbackContext.nodeType||callbackContext.jquery)?jQuery(callbackContext):jQuery.event,deferred=jQuery.Deferred(),completeDeferred=jQuery.Callbacks("once memory"),statusCode=s.statusCode||{},requestHeaders={},requestHeadersNames={},strAbort="canceled",jqXHR={readyState:0,getResponseHeader:function(key){var match;if(completed){if(!responseHeaders)for(responseHeaders={};match=rheaders.exec(responseHeadersString);)responseHeaders[match[1].toLowerCase()+" "]=(responseHeaders[match[1].toLowerCase()+" "]||[]).concat(match[2]);match=responseHeaders[key.toLowerCase()+" "]}return null==match?null:match.join(", ")},getAllResponseHeaders:function(){return completed?responseHeadersString:null},setRequestHeader:function(name,value){return null==completed&&(name=requestHeadersNames[name.toLowerCase()]=requestHeadersNames[name.toLowerCase()]||name,requestHeaders[name]=value),this},overrideMimeType:function(type){return null==completed&&(s.mimeType=type),this},statusCode:function(map){if(map)if(completed)jqXHR.always(map[jqXHR.status]);else for(var code in map)statusCode[code]=[statusCode[code],map[code]];return this},abort:function(statusText){statusText=statusText||strAbort;return transport&&transport.abort(statusText),done(0,statusText),this}};if(deferred.promise(jqXHR),s.url=((url||s.url||location.href)+"").replace(rprotocol,location.protocol+"//"),s.type=options.method||options.type||s.method||s.type,s.dataTypes=(s.dataType||"*").toLowerCase().match(rnothtmlwhite)||[""],null==s.crossDomain){url=document.createElement("a");try{url.href=s.url,url.href=url.href,s.crossDomain=originAnchor.protocol+"//"+originAnchor.host!=url.protocol+"//"+url.host}catch(e){s.crossDomain=!0}}if(s.data&&s.processData&&"string"!=typeof s.data&&(s.data=jQuery.param(s.data,s.traditional)),inspectPrefiltersOrTransports(prefilters,s,options,jqXHR),!completed){for(i in(fireGlobals=jQuery.event&&s.global)&&0==jQuery.active++&&jQuery.event.trigger("ajaxStart"),s.type=s.type.toUpperCase(),s.hasContent=!rnoContent.test(s.type),cacheURL=s.url.replace(rhash,""),s.hasContent?s.data&&s.processData&&0===(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&(s.data=s.data.replace(r20,"+")):(url=s.url.slice(cacheURL.length),s.data&&(s.processData||"string"==typeof s.data)&&(cacheURL+=(rquery.test(cacheURL)?"&":"?")+s.data,delete s.data),!1===s.cache&&(cacheURL=cacheURL.replace(rantiCache,"$1"),url=(rquery.test(cacheURL)?"&":"?")+"_="+nonce.guid+++url),s.url=cacheURL+url),s.ifModified&&(jQuery.lastModified[cacheURL]&&jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL]),jQuery.etag[cacheURL])&&jqXHR.setRequestHeader("If-None-Match",jQuery.etag[cacheURL]),(s.data&&s.hasContent&&!1!==s.contentType||options.contentType)&&jqXHR.setRequestHeader("Content-Type",s.contentType),jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+("*"!==s.dataTypes[0]?", "+allTypes+"; q=0.01":""):s.accepts["*"]),s.headers)jqXHR.setRequestHeader(i,s.headers[i]);if(s.beforeSend&&(!1===s.beforeSend.call(callbackContext,jqXHR,s)||completed))return jqXHR.abort();if(strAbort="abort",completeDeferred.add(s.complete),jqXHR.done(s.success),jqXHR.fail(s.error),transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR)){if(jqXHR.readyState=1,fireGlobals&&globalEventContext.trigger("ajaxSend",[jqXHR,s]),completed)return jqXHR;s.async&&0<s.timeout&&(timeoutTimer=window.setTimeout(function(){jqXHR.abort("timeout")},s.timeout));try{completed=!1,transport.send(requestHeaders,done)}catch(e){if(completed)throw e;done(-1,e)}}else done(-1,"No Transport")}return jqXHR;function done(status,nativeStatusText,responses,headers){var success,error,response,statusText=nativeStatusText;completed||(completed=!0,timeoutTimer&&window.clearTimeout(timeoutTimer),transport=void 0,responseHeadersString=headers||"",jqXHR.readyState=0<status?4:0,headers=200<=status&&status<300||304===status,responses&&(response=((s,jqXHR,responses)=>{for(var ct,type,finalDataType,firstDataType,contents=s.contents,dataTypes=s.dataTypes;"*"===dataTypes[0];)dataTypes.shift(),void 0===ct&&(ct=s.mimeType||jqXHR.getResponseHeader("Content-Type"));if(ct)for(type in contents)if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break}if(dataTypes[0]in responses)finalDataType=dataTypes[0];else{for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break}firstDataType=firstDataType||type}finalDataType=finalDataType||firstDataType}if(finalDataType)return finalDataType!==dataTypes[0]&&dataTypes.unshift(finalDataType),responses[finalDataType]})(s,jqXHR,responses)),!headers&&-1<jQuery.inArray("script",s.dataTypes)&&jQuery.inArray("json",s.dataTypes)<0&&(s.converters["text script"]=function(){}),response=((s,response,jqXHR,isSuccess)=>{var conv2,current,conv,tmp,prev,converters={},dataTypes=s.dataTypes.slice();if(dataTypes[1])for(conv in s.converters)converters[conv.toLowerCase()]=s.converters[conv];for(current=dataTypes.shift();current;)if(s.responseFields[current]&&(jqXHR[s.responseFields[current]]=response),!prev&&isSuccess&&s.dataFilter&&(response=s.dataFilter(response,s.dataType)),prev=current,current=dataTypes.shift())if("*"===current)current=prev;else if("*"!==prev&&prev!==current){if(!(conv=converters[prev+" "+current]||converters["* "+current]))for(conv2 in converters)if((tmp=conv2.split(" "))[1]===current&&(conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]])){!0===conv?conv=converters[conv2]:!0!==converters[conv2]&&(current=tmp[0],dataTypes.unshift(tmp[1]));break}if(!0!==conv)if(conv&&s.throws)response=conv(response);else try{response=conv(response)}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current}}}return{state:"success",data:response}})(s,response,jqXHR,headers),headers?(s.ifModified&&((responses=jqXHR.getResponseHeader("Last-Modified"))&&(jQuery.lastModified[cacheURL]=responses),responses=jqXHR.getResponseHeader("etag"))&&(jQuery.etag[cacheURL]=responses),204===status||"HEAD"===s.type?statusText="nocontent":304===status?statusText="notmodified":(statusText=response.state,success=response.data,headers=!(error=response.error))):(error=statusText,!status&&statusText||(statusText="error",status<0&&(status=0))),jqXHR.status=status,jqXHR.statusText=(nativeStatusText||statusText)+"",headers?deferred.resolveWith(callbackContext,[success,statusText,jqXHR]):deferred.rejectWith(callbackContext,[jqXHR,statusText,error]),jqXHR.statusCode(statusCode),statusCode=void 0,fireGlobals&&globalEventContext.trigger(headers?"ajaxSuccess":"ajaxError",[jqXHR,s,headers?success:error]),completeDeferred.fireWith(callbackContext,[jqXHR,statusText]),fireGlobals&&(globalEventContext.trigger("ajaxComplete",[jqXHR,s]),--jQuery.active||jQuery.event.trigger("ajaxStop")))}},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},getScript:function(url,callback){return jQuery.get(url,void 0,callback,"script")}}),jQuery.each(["get","post"],function(_i,method){jQuery[method]=function(url,data,callback,type){return isFunction(data)&&(type=type||callback,callback=data,data=void 0),jQuery.ajax(jQuery.extend({url:url,type:method,dataType:type,data:data,success:callback},jQuery.isPlainObject(url)&&url))}}),jQuery.ajaxPrefilter(function(s){for(var i in s.headers)"content-type"===i.toLowerCase()&&(s.contentType=s.headers[i]||"")}),jQuery._evalUrl=function(url,options,doc){return jQuery.ajax({url:url,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(response){jQuery.globalEval(response,options,doc)}})},jQuery.fn.extend({wrapAll:function(html){return this[0]&&(isFunction(html)&&(html=html.call(this[0])),html=jQuery(html,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&html.insertBefore(this[0]),html.map(function(){for(var elem=this;elem.firstElementChild;)elem=elem.firstElementChild;return elem}).append(this)),this},wrapInner:function(html){return isFunction(html)?this.each(function(i){jQuery(this).wrapInner(html.call(this,i))}):this.each(function(){var self=jQuery(this),contents=self.contents();contents.length?contents.wrapAll(html):self.append(html)})},wrap:function(html){var htmlIsFunction=isFunction(html);return this.each(function(i){jQuery(this).wrapAll(htmlIsFunction?html.call(this,i):html)})},unwrap:function(selector){return this.parent(selector).not("body").each(function(){jQuery(this).replaceWith(this.childNodes)}),this}}),jQuery.expr.pseudos.hidden=function(elem){return!jQuery.expr.pseudos.visible(elem)},jQuery.expr.pseudos.visible=function(elem){return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length)},jQuery.ajaxSettings.xhr=function(){try{return new window.XMLHttpRequest}catch(e){}};var input,xhrSuccessStatus={0:200,1223:204},xhrSupported=jQuery.ajaxSettings.xhr(),oldCallbacks=(support.cors=!!xhrSupported&&"withCredentials"in xhrSupported,support.ajax=xhrSupported=!!xhrSupported,jQuery.ajaxTransport(function(options){var callback,errorCallback;if(support.cors||xhrSupported&&!options.crossDomain)return{send:function(headers,complete){var i,xhr=options.xhr();if(xhr.open(options.type,options.url,options.async,options.username,options.password),options.xhrFields)for(i in options.xhrFields)xhr[i]=options.xhrFields[i];for(i in options.mimeType&&xhr.overrideMimeType&&xhr.overrideMimeType(options.mimeType),options.crossDomain||headers["X-Requested-With"]||(headers["X-Requested-With"]="XMLHttpRequest"),headers)xhr.setRequestHeader(i,headers[i]);callback=function(type){return function(){callback&&(callback=errorCallback=xhr.onload=xhr.onerror=xhr.onabort=xhr.ontimeout=xhr.onreadystatechange=null,"abort"===type?xhr.abort():"error"===type?"number"!=typeof xhr.status?complete(0,"error"):complete(xhr.status,xhr.statusText):complete(xhrSuccessStatus[xhr.status]||xhr.status,xhr.statusText,"text"!==(xhr.responseType||"text")||"string"!=typeof xhr.responseText?{binary:xhr.response}:{text:xhr.responseText},xhr.getAllResponseHeaders()))}},xhr.onload=callback(),errorCallback=xhr.onerror=xhr.ontimeout=callback("error"),void 0!==xhr.onabort?xhr.onabort=errorCallback:xhr.onreadystatechange=function(){4===xhr.readyState&&window.setTimeout(function(){callback&&errorCallback()})},callback=callback("abort");try{xhr.send(options.hasContent&&options.data||null)}catch(e){if(callback)throw e}},abort:function(){callback&&callback()}}}),jQuery.ajaxPrefilter(function(s){s.crossDomain&&(s.contents.script=!1)}),jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(text){return jQuery.globalEval(text),text}}}),jQuery.ajaxPrefilter("script",function(s){void 0===s.cache&&(s.cache=!1),s.crossDomain&&(s.type="GET")}),jQuery.ajaxTransport("script",function(s){var script,callback;if(s.crossDomain||s.scriptAttrs)return{send:function(_,complete){script=jQuery("<script>").attr(s.scriptAttrs||{}).prop({charset:s.scriptCharset,src:s.url}).on("load error",callback=function(evt){script.remove(),callback=null,evt&&complete("error"===evt.type?404:200,evt.type)}),document.head.appendChild(script[0])},abort:function(){callback&&callback()}}}),[]),rjsonp=/(=)\?(?=&|$)|\?\?/,rtrim=(jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var callback=oldCallbacks.pop()||jQuery.expando+"_"+nonce.guid++;return this[callback]=!0,callback}}),jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,jsonProp=!1!==s.jsonp&&(rjsonp.test(s.url)?"url":"string"==typeof s.data&&0===(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&rjsonp.test(s.data)&&"data");if(jsonProp||"jsonp"===s.dataTypes[0])return callbackName=s.jsonpCallback=isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback,jsonProp?s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName):!1!==s.jsonp&&(s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName),s.converters["script json"]=function(){return responseContainer||jQuery.error(callbackName+" was not called"),responseContainer[0]},s.dataTypes[0]="json",overwritten=window[callbackName],window[callbackName]=function(){responseContainer=arguments},jqXHR.always(function(){void 0===overwritten?jQuery(window).removeProp(callbackName):window[callbackName]=overwritten,s[callbackName]&&(s.jsonpCallback=originalSettings.jsonpCallback,oldCallbacks.push(callbackName)),responseContainer&&isFunction(overwritten)&&overwritten(responseContainer[0]),responseContainer=overwritten=void 0}),"script"}),support.createHTMLDocument=((input=document.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===input.childNodes.length),jQuery.parseHTML=function(data,context,keepScripts){var base;return"string"!=typeof data?[]:("boolean"==typeof context&&(keepScripts=context,context=!1),context||(support.createHTMLDocument?((base=(context=document.implementation.createHTMLDocument("")).createElement("base")).href=document.location.href,context.head.appendChild(base)):context=document),base=!keepScripts&&[],(keepScripts=rsingleTag.exec(data))?[context.createElement(keepScripts[1])]:(keepScripts=buildFragment([data],context,base),base&&base.length&&jQuery(base).remove(),jQuery.merge([],keepScripts.childNodes)))},jQuery.fn.load=function(url,params,callback){var selector,type,response,self=this,off=url.indexOf(" ");return-1<off&&(selector=stripAndCollapse(url.slice(off)),url=url.slice(0,off)),isFunction(params)?(callback=params,params=void 0):params&&"object"==typeof params&&(type="POST"),0<self.length&&jQuery.ajax({url:url,type:type||"GET",dataType:"html",data:params}).done(function(responseText){response=arguments,self.html(selector?jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector):responseText)}).always(callback&&function(jqXHR,status){self.each(function(){callback.apply(this,response||[jqXHR.responseText,status,jqXHR])})}),this},jQuery.expr.pseudos.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem}).length},jQuery.offset={setOffset:function(elem,options,i){var curCSSTop,curTop,curOffset,curCSSLeft,position=jQuery.css(elem,"position"),curElem=jQuery(elem),props={};"static"===position&&(elem.style.position="relative"),curOffset=curElem.offset(),curCSSTop=jQuery.css(elem,"top"),curCSSLeft=jQuery.css(elem,"left"),position=("absolute"===position||"fixed"===position)&&-1<(curCSSTop+curCSSLeft).indexOf("auto")?(curTop=(position=curElem.position()).top,position.left):(curTop=parseFloat(curCSSTop)||0,parseFloat(curCSSLeft)||0),null!=(options=isFunction(options)?options.call(elem,i,jQuery.extend({},curOffset)):options).top&&(props.top=options.top-curOffset.top+curTop),null!=options.left&&(props.left=options.left-curOffset.left+position),"using"in options?options.using.call(elem,props):curElem.css(props)}},jQuery.fn.extend({offset:function(options){var rect,elem;return arguments.length?void 0===options?this:this.each(function(i){jQuery.offset.setOffset(this,options,i)}):(elem=this[0])?elem.getClientRects().length?(rect=elem.getBoundingClientRect(),elem=elem.ownerDocument.defaultView,{top:rect.top+elem.pageYOffset,left:rect.left+elem.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var offsetParent,offset,doc,elem=this[0],parentOffset={top:0,left:0};if("fixed"===jQuery.css(elem,"position"))offset=elem.getBoundingClientRect();else{for(offset=this.offset(),doc=elem.ownerDocument,offsetParent=elem.offsetParent||doc.documentElement;offsetParent&&(offsetParent===doc.body||offsetParent===doc.documentElement)&&"static"===jQuery.css(offsetParent,"position");)offsetParent=offsetParent.parentNode;offsetParent&&offsetParent!==elem&&1===offsetParent.nodeType&&((parentOffset=jQuery(offsetParent).offset()).top+=jQuery.css(offsetParent,"borderTopWidth",!0),parentOffset.left+=jQuery.css(offsetParent,"borderLeftWidth",!0))}return{top:offset.top-parentOffset.top-jQuery.css(elem,"marginTop",!0),left:offset.left-parentOffset.left-jQuery.css(elem,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var offsetParent=this.offsetParent;offsetParent&&"static"===jQuery.css(offsetParent,"position");)offsetParent=offsetParent.offsetParent;return offsetParent||documentElement})}}),jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){var top="pageYOffset"===prop;jQuery.fn[method]=function(val){return access(this,function(elem,method,val){var win;if(isWindow(elem)?win=elem:9===elem.nodeType&&(win=elem.defaultView),void 0===val)return win?win[prop]:elem[method];win?win.scrollTo(top?win.pageXOffset:val,top?val:win.pageYOffset):elem[method]=val},method,val,arguments.length)}}),jQuery.each(["top","left"],function(_i,prop){jQuery.cssHooks[prop]=addGetHookIf(support.pixelPosition,function(elem,computed){if(computed)return computed=curCSS(elem,prop),rnumnonpx.test(computed)?jQuery(elem).position()[prop]+"px":computed})}),jQuery.each({Height:"height",Width:"width"},function(name,type){jQuery.each({padding:"inner"+name,content:type,"":"outer"+name},function(defaultExtra,funcName){jQuery.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||"boolean"!=typeof margin),extra=defaultExtra||(!0===margin||!0===value?"margin":"border");return access(this,function(elem,type,value){var doc;return isWindow(elem)?0===funcName.indexOf("outer")?elem["inner"+name]:elem.document.documentElement["client"+name]:9===elem.nodeType?(doc=elem.documentElement,Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name])):void 0===value?jQuery.css(elem,type,extra):jQuery.style(elem,type,value,extra)},type,chainable?margin:void 0,chainable)}})}),jQuery.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(_i,type){jQuery.fn[type]=function(fn){return this.on(type,fn)}}),jQuery.fn.extend({bind:function(types,data,fn){return this.on(types,null,data,fn)},unbind:function(types,fn){return this.off(types,null,fn)},delegate:function(selector,types,data,fn){return this.on(types,selector,data,fn)},undelegate:function(selector,types,fn){return 1===arguments.length?this.off(selector,"**"):this.off(types,selector||"**",fn)},hover:function(fnOver,fnOut){return this.on("mouseenter",fnOver).on("mouseleave",fnOut||fnOver)}}),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){jQuery.fn[name]=function(data,fn){return 0<arguments.length?this.on(name,null,data,fn):this.trigger(name)}}),/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g),_jQuery=(jQuery.proxy=function(fn,context){var args,tmp;if("string"==typeof context&&(tmp=fn[context],context=fn,fn=tmp),isFunction(fn))return args=slice.call(arguments,2),(tmp=function(){return fn.apply(context||this,args.concat(slice.call(arguments)))}).guid=fn.guid=fn.guid||jQuery.guid++,tmp},jQuery.holdReady=function(hold){hold?jQuery.readyWait++:jQuery.ready(!0)},jQuery.isArray=Array.isArray,jQuery.parseJSON=JSON.parse,jQuery.nodeName=nodeName,jQuery.isFunction=isFunction,jQuery.isWindow=isWindow,jQuery.camelCase=camelCase,jQuery.type=toType,jQuery.now=Date.now,jQuery.isNumeric=function(obj){var type=jQuery.type(obj);return("number"===type||"string"===type)&&!isNaN(obj-parseFloat(obj))},jQuery.trim=function(text){return null==text?"":(text+"").replace(rtrim,"$1")},void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return jQuery}.apply(exports,[]))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),window.jQuery),_$=window.$;return jQuery.noConflict=function(deep){return window.$===jQuery&&(window.$=_$),deep&&window.jQuery===jQuery&&(window.jQuery=_jQuery),jQuery},void 0===noGlobal&&(window.jQuery=window.$=jQuery),jQuery},"object"==typeof module.exports?module.exports=global.document?factory(global,!0):function(w){if(w.document)return factory(w);throw new Error("jQuery requires a window with a document")}:factory(global)},,,,function(module,exports,__webpack_require__){var _typeof=__webpack_require__(14).default;function _regeneratorRuntime(){module.exports=function(){return e},module.exports.__esModule=!0,module.exports.default=module.exports;var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function(t,e,r){return t[e]=r}}function wrap(t,e,r,n){e=e&&e.prototype instanceof Generator?e:Generator,e=Object.create(e.prototype),n=new Context(n||[]);return o(e,"_invoke",{value:makeInvokeMethod(t,r,n)}),e}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var i={},d=(define(i,a,function(){return this}),Object.getPrototypeOf),d=d&&d(d(values([]))),g=(d&&d!==r&&n.call(d,a)&&(i=d),GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(i));function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t)})})}function AsyncIterator(t,e){function invoke(r,o,i,a){var u,r=tryCatch(t[r],t,o);if("throw"!==r.type)return(o=(u=r.arg).value)&&"object"==_typeof(o)&&n.call(o,"__await")?e.resolve(o.__await).then(function(t){invoke("next",t,i,a)},function(t){invoke("throw",t,i,a)}):e.resolve(o).then(function(t){u.value=t,i(u)},function(t){return invoke("throw",t,i,a)});a(r.arg)}var r;o(this,"_invoke",{value:function(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r)})}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){c=function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;n=tryCatch(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,y;o=n.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}(c,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;c=tryCatch(e,r,n);if("normal"===c.type){if(o=n.done?s:l,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=s,n.method="throw",n.arg=c.arg)}}}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var o,r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return o=-1,(r=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next}).next=r}throw new TypeError(_typeof(e)+" is not iterable")}return o(g,"constructor",{value:GeneratorFunction.prototype=GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===GeneratorFunction||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this}),define(g,"toString",function(){return"[object Generator]"}),e.keys=function(t){var n,e=Object(t),r=[];for(n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;0<=o;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,o,r=this.tryEntries[e];if(r.tryLoc===t)return"throw"===(n=r.completion).type&&(o=n.arg,resetTryEntry(r)),o}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}module.exports=_regeneratorRuntime,module.exports.__esModule=!0,module.exports.default=module.exports},function(module,exports){function _typeof(o){return module.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},module.exports.__esModule=!0,module.exports.default=module.exports,_typeof(o)}module.exports=_typeof,module.exports.__esModule=!0,module.exports.default=module.exports},,,,,function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__;__webpack_require__=[__webpack_require__(9)],void 0!==(exports="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=function($){$.extend($.fn,{validate:function(options){if(!this.length){if(options&&options.debug&&window.console)console.warn("Nothing selected, can't validate, returning nothing.");return}var validator=$.data(this[0],"validator");if(validator)return validator;this.attr("novalidate","novalidate");validator=new $.validator(options,this[0]);$.data(this[0],"validator",validator);if(validator.settings.onsubmit){this.on("click.validate",":submit",function(event){validator.submitButton=event.currentTarget;if($(this).hasClass("cancel"))validator.cancelSubmit=true;if($(this).attr("formnovalidate")!==undefined)validator.cancelSubmit=true});this.on("submit.validate",function(event){if(validator.settings.debug)event.preventDefault();function handle(){var hidden,result;if(validator.submitButton&&(validator.settings.submitHandler||validator.formSubmitted))hidden=$("<input type='hidden'/>").attr("name",validator.submitButton.name).val($(validator.submitButton).val()).appendTo(validator.currentForm);if(validator.settings.submitHandler&&!validator.settings.debug){result=validator.settings.submitHandler.call(validator,validator.currentForm,event);if(hidden)hidden.remove();if(result!==undefined)return result;return false}return true}if(validator.cancelSubmit){validator.cancelSubmit=false;return handle()}if(validator.form()){if(validator.pendingRequest){validator.formSubmitted=true;return false}return handle()}else{validator.focusInvalid();return false}})}return validator},valid:function(){var valid,validator,errorList;if($(this[0]).is("form"))valid=this.validate().form();else{errorList=[];valid=true;validator=$(this[0].form).validate();this.each(function(){valid=validator.element(this)&&valid;if(!valid)errorList=errorList.concat(validator.errorList)});validator.errorList=errorList}return valid},rules:function(command,argument){var element=this[0],isContentEditable=typeof this.attr("contenteditable")!=="undefined"&&this.attr("contenteditable")!=="false",settings,staticRules,existingRules,data,param,filtered;if(element==null)return;if(!element.form&&isContentEditable){element.form=this.closest("form")[0];element.name=this.attr("name")}if(element.form==null)return;if(command){settings=$.data(element.form,"validator").settings;staticRules=settings.rules;existingRules=$.validator.staticRules(element);switch(command){case"add":$.extend(existingRules,$.validator.normalizeRule(argument));delete existingRules.messages;staticRules[element.name]=existingRules;if(argument.messages)settings.messages[element.name]=$.extend(settings.messages[element.name],argument.messages);break;case"remove":if(!argument){delete staticRules[element.name];return existingRules}filtered={};$.each(argument.split(/\s/),function(index,method){filtered[method]=existingRules[method];delete existingRules[method]});return filtered}}data=$.validator.normalizeRules($.extend({},$.validator.classRules(element),$.validator.attributeRules(element),$.validator.dataRules(element),$.validator.staticRules(element)),element);if(data.required){param=data.required;delete data.required;data=$.extend({required:param},data)}if(data.remote){param=data.remote;delete data.remote;data=$.extend(data,{remote:param})}return data}});var trim=function(str){return str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},pendingRequests=($.extend($.expr.pseudos||$.expr[":"],{blank:function(a){return!trim(""+$(a).val())},filled:function(a){var val=$(a).val();return val!==null&&!!trim(""+val)},unchecked:function(a){return!$(a).prop("checked")}}),$.validator=function(options,form){this.settings=$.extend(true,{},$.validator.defaults,options);this.currentForm=form;this.init()},$.validator.format=function(source,params){if(arguments.length===1)return function(){var args=$.makeArray(arguments);args.unshift(source);return $.validator.format.apply(this,args)};if(params===undefined)return source;if(arguments.length>2&&params.constructor!==Array)params=$.makeArray(arguments).slice(1);if(params.constructor!==Array)params=[params];$.each(params,function(i,n){source=source.replace(new RegExp("\\{"+i+"\\}","g"),function(){return n})});return source},$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:false,focusInvalid:true,errorContainer:$([]),errorLabelContainer:$([]),onsubmit:true,ignore:":hidden",ignoreTitle:false,customElements:[],onfocusin:function(element){this.lastActive=element;if(this.settings.focusCleanup){if(this.settings.unhighlight)this.settings.unhighlight.call(this,element,this.settings.errorClass,this.settings.validClass);this.hideThese(this.errorsFor(element))}},onfocusout:function(element){if(!this.checkable(element)&&(element.name in this.submitted||!this.optional(element)))this.element(element)},onkeyup:function(element,event){var excludedKeys=[16,17,18,20,35,36,37,38,39,40,45,144,225];if(event.which===9&&this.elementValue(element)===""||$.inArray(event.keyCode,excludedKeys)!==-1)return;else if(element.name in this.submitted||element.name in this.invalid)this.element(element)},onclick:function(element){if(element.name in this.submitted)this.element(element);else if(element.parentNode.name in this.submitted)this.element(element.parentNode)},highlight:function(element,errorClass,validClass){if(element.type==="radio")this.findByName(element.name).addClass(errorClass).removeClass(validClass);else $(element).addClass(errorClass).removeClass(validClass)},unhighlight:function(element,errorClass,validClass){if(element.type==="radio")this.findByName(element.name).removeClass(errorClass).addClass(validClass);else $(element).removeClass(errorClass).addClass(validClass)}},setDefaults:function(settings){$.extend($.validator.defaults,settings)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:$.validator.format("Please enter no more than {0} characters."),minlength:$.validator.format("Please enter at least {0} characters."),rangelength:$.validator.format("Please enter a value between {0} and {1} characters long."),range:$.validator.format("Please enter a value between {0} and {1}."),max:$.validator.format("Please enter a value less than or equal to {0}."),min:$.validator.format("Please enter a value greater than or equal to {0}."),step:$.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=$(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||$(this.currentForm);this.containers=$(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var currentForm=this.currentForm,groups=this.groups={},rules;$.each(this.settings.groups,function(key,value){if(typeof value==="string")value=value.split(/\s/);$.each(value,function(index,name){groups[name]=key})});rules=this.settings.rules;$.each(rules,function(key,value){rules[key]=$.validator.normalizeRule(value)});function delegate(event){var isContentEditable=typeof $(this).attr("contenteditable")!=="undefined"&&$(this).attr("contenteditable")!=="false";if(!this.form&&isContentEditable){this.form=$(this).closest("form")[0];this.name=$(this).attr("name")}if(currentForm!==this.form)return;var validator=$.data(this.form,"validator"),eventType="on"+event.type.replace(/^validate/,""),settings=validator.settings;if(settings[eventType]&&!$(this).is(settings.ignore))settings[eventType].call(validator,this,event)}var focusListeners=[":text","[type='password']","[type='file']","select","textarea","[type='number']","[type='search']","[type='tel']","[type='url']","[type='email']","[type='datetime']","[type='date']","[type='month']","[type='week']","[type='time']","[type='datetime-local']","[type='range']","[type='color']","[type='radio']","[type='checkbox']","[contenteditable]","[type='button']"];var clickListeners=["select","option","[type='radio']","[type='checkbox']"];$(this.currentForm).on("focusin.validate focusout.validate keyup.validate",focusListeners.concat(this.settings.customElements).join(", "),delegate).on("click.validate",clickListeners.concat(this.settings.customElements).join(", "),delegate);if(this.settings.invalidHandler)$(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){this.checkForm();$.extend(this.submitted,this.errorMap);this.invalid=$.extend({},this.errorMap);if(!this.valid())$(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var i=0,elements=this.currentElements=this.elements();elements[i];i++)this.check(elements[i]);return this.valid()},element:function(element){var cleanElement=this.clean(element),checkElement=this.validationTargetFor(cleanElement),v=this,result=true,rs,group;if(checkElement===undefined)delete this.invalid[cleanElement.name];else{this.prepareElement(checkElement);this.currentElements=$(checkElement);group=this.groups[checkElement.name];if(group)$.each(this.groups,function(name,testgroup){if(testgroup===group&&name!==checkElement.name){cleanElement=v.validationTargetFor(v.clean(v.findByName(name)));if(cleanElement&&cleanElement.name in v.invalid){v.currentElements.push(cleanElement);result=v.check(cleanElement)&&result}}});rs=this.check(checkElement)!==false;result=result&&rs;if(rs)this.invalid[checkElement.name]=false;else this.invalid[checkElement.name]=true;if(!this.numberOfInvalids())this.toHide=this.toHide.add(this.containers);this.showErrors();$(element).attr("aria-invalid",!rs)}return result},showErrors:function(errors){if(errors){var validator=this;$.extend(this.errorMap,errors);this.errorList=$.map(this.errorMap,function(message,name){return{message:message,element:validator.findByName(name)[0]}});this.successList=$.grep(this.successList,function(element){return!(element.name in errors)})}if(this.settings.showErrors)this.settings.showErrors.call(this,this.errorMap,this.errorList);else this.defaultShowErrors()},resetForm:function(){if($.fn.resetForm)$(this.currentForm).resetForm();this.invalid={};this.submitted={};this.prepareForm();this.hideErrors();var elements=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(elements)},resetElements:function(elements){var i;if(this.settings.unhighlight)for(i=0;elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,"");this.findByName(elements[i].name).removeClass(this.settings.validClass)}else elements.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(obj){var count=0,i;for(i in obj)if(obj[i]!==undefined&&obj[i]!==null&&obj[i]!==false)count++;return count},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(errors){errors.not(this.containers).text("");this.addWrapper(errors).hide()},valid:function(){return this.size()===0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{$(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch(e){}},findLastActive:function(){var lastActive=this.lastActive;return lastActive&&$.grep(this.errorList,function(n){return n.element.name===lastActive.name}).length===1&&lastActive},elements:function(){var validator=this,rulesCache={},selectors=["input","select","textarea","[contenteditable]"];return $(this.currentForm).find(selectors.concat(this.settings.customElements).join(", ")).not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var name=this.name||$(this).attr("name");var isContentEditable=typeof $(this).attr("contenteditable")!=="undefined"&&$(this).attr("contenteditable")!=="false";if(!name&&validator.settings.debug&&window.console)console.error("%o has no name assigned",this);if(isContentEditable){this.form=$(this).closest("form")[0];this.name=name}if(this.form!==validator.currentForm)return false;if(name in rulesCache||!validator.objectLength($(this).rules()))return false;rulesCache[name]=true;return true})},clean:function(selector){return $(selector)[0]},errors:function(){var errorClass=this.settings.errorClass.split(" ").join(".");return $(this.settings.errorElement+"."+errorClass,this.errorContext)},resetInternals:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=$([]);this.toHide=$([])},reset:function(){this.resetInternals();this.currentElements=$([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(element){this.reset();this.toHide=this.errorsFor(element)},elementValue:function(element){var $element=$(element),type=element.type,isContentEditable=typeof $element.attr("contenteditable")!=="undefined"&&$element.attr("contenteditable")!=="false",val,idx;if(type==="radio"||type==="checkbox")return this.findByName(element.name).filter(":checked").val();else if(type==="number"&&typeof element.validity!=="undefined")return element.validity.badInput?"NaN":$element.val();if(isContentEditable)val=$element.text();else val=$element.val();if(type==="file"){if(val.substr(0,12)==="C:\\fakepath\\")return val.substr(12);idx=val.lastIndexOf("/");if(idx>=0)return val.substr(idx+1);idx=val.lastIndexOf("\\");if(idx>=0)return val.substr(idx+1);return val}if(typeof val==="string")return val.replace(/\r/g,"");return val},check:function(element){element=this.validationTargetFor(this.clean(element));var rules=$(element).rules(),rulesCount=$.map(rules,function(n,i){return i}).length,dependencyMismatch=false,val=this.elementValue(element),result,method,rule,normalizer;this.abortRequest(element);if(typeof rules.normalizer==="function")normalizer=rules.normalizer;else if(typeof this.settings.normalizer==="function")normalizer=this.settings.normalizer;if(normalizer){val=normalizer.call(element,val);delete rules.normalizer}for(method in rules){rule={method:method,parameters:rules[method]};try{result=$.validator.methods[method].call(this,val,element,rule.parameters);if(result==="dependency-mismatch"&&rulesCount===1){dependencyMismatch=true;continue}dependencyMismatch=false;if(result==="pending"){this.toHide=this.toHide.not(this.errorsFor(element));return}if(!result){this.formatAndAdd(element,rule);return false}}catch(e){if(this.settings.debug&&window.console)console.log("Exception occurred when checking element "+element.id+", check the '"+rule.method+"' method.",e);if(e instanceof TypeError)e.message+=".  Exception occurred when checking element "+element.id+", check the '"+rule.method+"' method.";throw e}}if(dependencyMismatch)return;if(this.objectLength(rules))this.successList.push(element);return true},customDataMessage:function(element,method){return $(element).data("msg"+method.charAt(0).toUpperCase()+method.substring(1).toLowerCase())||$(element).data("msg")},customMessage:function(name,method){var m=this.settings.messages[name];return m&&(m.constructor===String?m:m[method])},findDefined:function(){for(var i=0;i<arguments.length;i++)if(arguments[i]!==undefined)return arguments[i];return undefined},defaultMessage:function(element,rule){if(typeof rule==="string")rule={method:rule};var message=this.findDefined(this.customMessage(element.name,rule.method),this.customDataMessage(element,rule.method),!this.settings.ignoreTitle&&element.title||undefined,$.validator.messages[rule.method],"<strong>Warning: No message defined for "+element.name+"</strong>"),theregex=/\$?\{(\d+)\}/g;if(typeof message==="function")message=message.call(this,rule.parameters,element);else if(theregex.test(message))message=$.validator.format(message.replace(theregex,"{$1}"),rule.parameters);return message},formatAndAdd:function(element,rule){var message=this.defaultMessage(element,rule);this.errorList.push({message:message,element:element,method:rule.method});this.errorMap[element.name]=message;this.submitted[element.name]=message},addWrapper:function(toToggle){if(this.settings.wrapper)toToggle=toToggle.add(toToggle.parent(this.settings.wrapper));return toToggle},defaultShowErrors:function(){var i,elements,error;for(i=0;this.errorList[i];i++){error=this.errorList[i];if(this.settings.highlight)this.settings.highlight.call(this,error.element,this.settings.errorClass,this.settings.validClass);this.showLabel(error.element,error.message)}if(this.errorList.length)this.toShow=this.toShow.add(this.containers);if(this.settings.success)for(i=0;this.successList[i];i++)this.showLabel(this.successList[i]);if(this.settings.unhighlight)for(i=0,elements=this.validElements();elements[i];i++)this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return $(this.errorList).map(function(){return this.element})},showLabel:function(element,message){var place,group,errorID,v,error=this.errorsFor(element),elementID=this.idOrName(element),describedBy=$(element).attr("aria-describedby");if(error.length){error.removeClass(this.settings.validClass).addClass(this.settings.errorClass);if(this.settings&&this.settings.escapeHtml)error.text(message||"");else error.html(message||"")}else{error=$("<"+this.settings.errorElement+">").attr("id",elementID+"-error").addClass(this.settings.errorClass);if(this.settings&&this.settings.escapeHtml)error.text(message||"");else error.html(message||"");place=error;if(this.settings.wrapper)place=error.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();if(this.labelContainer.length)this.labelContainer.append(place);else if(this.settings.errorPlacement)this.settings.errorPlacement.call(this,place,$(element));else place.insertAfter(element);if(error.is("label"))error.attr("for",elementID);else if(error.parents("label[for='"+this.escapeCssMeta(elementID)+"']").length===0){errorID=error.attr("id");if(!describedBy)describedBy=errorID;else if(!describedBy.match(new RegExp("\\b"+this.escapeCssMeta(errorID)+"\\b")))describedBy+=" "+errorID;$(element).attr("aria-describedby",describedBy);group=this.groups[element.name];if(group){v=this;$.each(v.groups,function(name,testgroup){if(testgroup===group)$("[name='"+v.escapeCssMeta(name)+"']",v.currentForm).attr("aria-describedby",error.attr("id"))})}}}if(!message&&this.settings.success){error.text("");if(typeof this.settings.success==="string")error.addClass(this.settings.success);else this.settings.success(error,element)}this.toShow=this.toShow.add(error)},errorsFor:function(element){var name=this.escapeCssMeta(this.idOrName(element)),describer=$(element).attr("aria-describedby"),selector="label[for='"+name+"'], label[for='"+name+"'] *";if(describer)selector=selector+", #"+this.escapeCssMeta(describer).replace(/\s+/g,", #");return this.errors().filter(selector)},escapeCssMeta:function(string){if(string===undefined)return"";return string.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(element){return this.groups[element.name]||(this.checkable(element)?element.name:element.id||element.name)},validationTargetFor:function(element){if(this.checkable(element))element=this.findByName(element.name);return $(element).not(this.settings.ignore)[0]},checkable:function(element){return/radio|checkbox/i.test(element.type)},findByName:function(name){return $(this.currentForm).find("[name='"+this.escapeCssMeta(name)+"']")},getLength:function(value,element){switch(element.nodeName.toLowerCase()){case"select":return $("option:selected",element).length;case"input":if(this.checkable(element))return this.findByName(element.name).filter(":checked").length}return value.length},depend:function(param,element){return this.dependTypes[typeof param]?this.dependTypes[typeof param](param,element):true},dependTypes:{boolean:function(param){return param},string:function(param,element){return!!$(param,element.form).length},function:function(param,element){return param(element)}},optional:function(element){var val=this.elementValue(element);return!$.validator.methods.required.call(this,val,element)&&"dependency-mismatch"},elementAjaxPort:function(element){return"validate"+element.name},startRequest:function(element){if(!this.pending[element.name]){this.pendingRequest++;$(element).addClass(this.settings.pendingClass);this.pending[element.name]=true}},stopRequest:function(element,valid){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[element.name];$(element).removeClass(this.settings.pendingClass);if(valid&&this.pendingRequest===0&&this.formSubmitted&&this.form()&&this.pendingRequest===0){$(this.currentForm).trigger("submit");if(this.submitButton)$("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove();this.formSubmitted=false}else if(!valid&&this.pendingRequest===0&&this.formSubmitted){$(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false}},abortRequest:function(element){var port;if(this.pending[element.name]){port=this.elementAjaxPort(element);$.ajaxAbort(port);this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[element.name];$(element).removeClass(this.settings.pendingClass)}},previousValue:function(element,method){method=typeof method==="string"&&method||"remote";return $.data(element,"previousValue")||$.data(element,"previousValue",{old:null,valid:true,message:this.defaultMessage(element,{method:method})})},destroy:function(){this.resetForm();$(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},number:{number:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(className,rules){if(className.constructor===String)this.classRuleSettings[className]=rules;else $.extend(this.classRuleSettings,className)},classRules:function(element){var rules={},classes=$(element).attr("class");if(classes)$.each(classes.split(" "),function(){if(this in $.validator.classRuleSettings)$.extend(rules,$.validator.classRuleSettings[this])});return rules},normalizeAttributeRule:function(rules,type,method,value){if(/min|max|step/.test(method)&&(type===null||/number|range|text/.test(type))){value=Number(value);if(isNaN(value))value=undefined}if(value||value===0)rules[method]=value;else if(type===method&&type!=="range")rules[type==="date"?"dateISO":method]=true},attributeRules:function(element){var rules={},$element=$(element),type=element.getAttribute("type"),method,value;for(method in $.validator.methods){if(method==="required"){value=element.getAttribute(method);if(value==="")value=true;value=!!value}else value=$element.attr(method);this.normalizeAttributeRule(rules,type,method,value)}if(rules.maxlength&&/-1|2147483647|524288/.test(rules.maxlength))delete rules.maxlength;return rules},dataRules:function(element){var rules={},$element=$(element),type=element.getAttribute("type"),method,value;for(method in $.validator.methods){value=$element.data("rule"+method.charAt(0).toUpperCase()+method.substring(1).toLowerCase());if(value==="")value=true;this.normalizeAttributeRule(rules,type,method,value)}return rules},staticRules:function(element){var rules={},validator=$.data(element.form,"validator");if(validator.settings.rules)rules=$.validator.normalizeRule(validator.settings.rules[element.name])||{};return rules},normalizeRules:function(rules,element){$.each(rules,function(prop,val){if(val===false){delete rules[prop];return}if(val.param||val.depends){var keepRule=true;switch(typeof val.depends){case"string":keepRule=!!$(val.depends,element.form).length;break;case"function":keepRule=val.depends.call(element,element);break}if(keepRule)rules[prop]=val.param!==undefined?val.param:true;else{$.data(element.form,"validator").resetElements($(element));delete rules[prop]}}});$.each(rules,function(rule,parameter){rules[rule]=typeof parameter==="function"&&rule!=="normalizer"?parameter(element):parameter});$.each(["minlength","maxlength"],function(){if(rules[this])rules[this]=Number(rules[this])});$.each(["rangelength","range"],function(){var parts;if(rules[this])if(Array.isArray(rules[this]))rules[this]=[Number(rules[this][0]),Number(rules[this][1])];else if(typeof rules[this]==="string"){parts=rules[this].replace(/[\[\]]/g,"").split(/[\s,]+/);rules[this]=[Number(parts[0]),Number(parts[1])]}});if($.validator.autoCreateRanges){if(rules.min!=null&&rules.max!=null){rules.range=[rules.min,rules.max];delete rules.min;delete rules.max}if(rules.minlength!=null&&rules.maxlength!=null){rules.rangelength=[rules.minlength,rules.maxlength];delete rules.minlength;delete rules.maxlength}}return rules},normalizeRule:function(data){if(typeof data==="string"){var transformed={};$.each(data.split(/\s/),function(){transformed[this]=true});data=transformed}return data},addMethod:function(name,method,message){$.validator.methods[name]=method;$.validator.messages[name]=message!==undefined?message:$.validator.messages[name];if(method.length<3)$.validator.addClassRules(name,$.validator.normalizeRule(name))},methods:{required:function(value,element,param){if(!this.depend(param,element))return"dependency-mismatch";if(element.nodeName.toLowerCase()==="select"){var val=$(element).val();return val&&val.length>0}if(this.checkable(element))return this.getLength(value,element)>0;return value!==undefined&&value!==null&&value.length>0},email:function(value,element){return this.optional(element)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(value)},url:function(value,element){return this.optional(element)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(value)},date:function(){var called=false;return function(value,element){if(!called){called=true;if(this.settings.debug&&window.console)console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\n"+"Please don't use it, since it relies on the Date constructor, which\n"+"behaves very differently across browsers and locales. Use `dateISO`\n"+"instead or one of the locale specific methods in `localizations/`\n"+"and `additional-methods.js`.")}return this.optional(element)||!/Invalid|NaN/.test(new Date(value).toString())}}(),dateISO:function(value,element){return this.optional(element)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value)},number:function(value,element){return this.optional(element)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:-?\.\d+)?$/.test(value)},digits:function(value,element){return this.optional(element)||/^\d+$/.test(value)},minlength:function(value,element,param){var length=Array.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||length>=param},maxlength:function(value,element,param){var length=Array.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||length<=param},rangelength:function(value,element,param){var length=Array.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||length>=param[0]&&length<=param[1]},min:function(value,element,param){return this.optional(element)||value>=param},max:function(value,element,param){return this.optional(element)||value<=param},range:function(value,element,param){return this.optional(element)||value>=param[0]&&value<=param[1]},step:function(value,element,param){var type=$(element).attr("type"),errorMessage="Step attribute on input type "+type+" is not supported.",supportedTypes=["text","number","range"],re=new RegExp("\\b"+type+"\\b"),notSupported=type&&!re.test(supportedTypes.join()),decimalPlaces=function(num){var match=(""+num).match(/(?:\.(\d+))?$/);if(!match)return 0;return match[1]?match[1].length:0},toInt=function(num){return Math.round(num*Math.pow(10,decimals))},valid=true,decimals;if(notSupported)throw new Error(errorMessage);decimals=decimalPlaces(param);if(decimalPlaces(value)>decimals||toInt(value)%toInt(param)!==0)valid=false;return this.optional(element)||valid},equalTo:function(value,element,param){var target=$(param);if(this.settings.onfocusout&&target.not(".validate-equalTo-blur").length)target.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){$(element).valid()});return value===target.val()},remote:function(value,element,param,method){if(this.optional(element))return"dependency-mismatch";method=typeof method==="string"&&method||"remote";var previous=this.previousValue(element,method),validator,data,optionDataString;if(!this.settings.messages[element.name])this.settings.messages[element.name]={};previous.originalMessage=previous.originalMessage||this.settings.messages[element.name][method];this.settings.messages[element.name][method]=previous.message;param=typeof param==="string"&&{url:param}||param;optionDataString=$.param($.extend({data:value},param.data));if(previous.valid!==null&&previous.old===optionDataString)return previous.valid;previous.old=optionDataString;previous.valid=null;validator=this;this.startRequest(element);data={};data[element.name]=value;$.ajax($.extend(true,{mode:"abort",port:this.elementAjaxPort(element),dataType:"json",data:data,context:validator.currentForm,success:function(response){var valid=response===true||response==="true",errors,message,submitted;validator.settings.messages[element.name][method]=previous.originalMessage;if(valid){submitted=validator.formSubmitted;validator.toHide=validator.errorsFor(element);validator.formSubmitted=submitted;validator.successList.push(element);validator.invalid[element.name]=false;validator.showErrors()}else{errors={};message=response||validator.defaultMessage(element,{method:method,parameters:value});errors[element.name]=previous.message=message;validator.invalid[element.name]=true;validator.showErrors(errors)}previous.valid=valid;validator.stopRequest(element,valid)}},param));return"pending"}}}),{}),ajax;if($.ajaxPrefilter)$.ajaxPrefilter(function(settings,_,xhr){var port=settings.port;if(settings.mode==="abort"){$.ajaxAbort(port);pendingRequests[port]=xhr}});else{ajax=$.ajax;$.ajax=function(settings){var mode=("mode"in settings?settings:$.ajaxSettings).mode,port=("port"in settings?settings:$.ajaxSettings).port;if(mode==="abort"){$.ajaxAbort(port);pendingRequests[port]=ajax.apply(this,arguments);return pendingRequests[port]}return ajax.apply(this,arguments)}}return $.ajaxAbort=function(port){if(pendingRequests[port]){pendingRequests[port].abort();delete pendingRequests[port]}},$})?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__webpack_require__):__WEBPACK_AMD_DEFINE_FACTORY__)&&(module.exports=exports)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(module,__webpack_exports__,__webpack_require__){!function($){__webpack_require__.d(__webpack_exports__,"a",function(){return initDropdownPanel});__webpack_require__(74);function initDropdownPanel(){$(document).on("click",".x-dropdown-panel .x-dropdown-panel-head button",function(e){e.preventDefault(),$(this).parents(".x-dropdown-panel").find(".x-dropdown-panel-body").slideToggle(300,function(){$(this).parents(".x-dropdown-panel .x-dropdown-panel-body").removeClass("active"),$("#sidebar")&&$("#sidebar").getNiceScroll().resize()}),$(this).toggleClass("active"),$(this).parents(".x-dropdown-panel").toggleClass("active"),$(this).parents(".x-dropdown-panel .x-dropdown-panel-body").toggleClass("active")})}}.call(this,__webpack_require__(9))},function(module,__webpack_exports__,__webpack_require__){function setScreenParams(){var element=0<arguments.length&&void 0!==arguments[0]&&arguments[0],offset=1<arguments.length&&void 0!==arguments[1]?arguments[1]:50,onResize=2<arguments.length&&void 0!==arguments[2]&&arguments[2],elements=document.querySelectorAll(element||".x-fullscreen-mbl"),offsetY=offset,loadWidth=window.innerWidth;function onInit(){switch(event.type){case"load":var _window=window,innerWidth=_window.innerWidth;setStyles(elements,innerWidth,_window.innerHeight);break;case"resize":innerWidth=window,_window=innerWidth.innerWidth,innerWidth=innerWidth.innerHeight;_window!==loadWidth&&setStyles(elements,loadWidth=_window,innerWidth),onResize&&setStyles(elements,_window,innerWidth)}}function setStyles(e,w,h){[].forEach.call(e,function(element){w<=1024?(element.style.width="".concat(w,"px"),element.style.height="".concat(h-offsetY,"px")):(element.style.width="",element.style.height="")})}[].forEach.call(["load","resize"],function(event){window.addEventListener(event,onInit,!1)})}__webpack_require__.d(__webpack_exports__,"a",function(){return setScreenParams})},function(module,__webpack_exports__,__webpack_require__){!function($){__webpack_require__.d(__webpack_exports__,"a",function(){return initSelect2});__webpack_require__(75);function initSelect2(){$(".mn__select2").select2({minimumResultsForSearch:-1,dropdownCssClass:"mn__select2__options",language:"es"})}}.call(this,__webpack_require__(9))},,,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__(61)},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),function(jQuery,$){__webpack_require__(62),__webpack_require__(63);var _functions_init_dropdown_panel__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(53),_functions_set_screen_params__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(54),_functions_init_select2__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(55),_functions_set_screen_params__WEBPACK_IMPORTED_MODULE_3__=(Object(_functions_set_screen_params__WEBPACK_IMPORTED_MODULE_3__.a)(),Object(_functions_init_dropdown_panel__WEBPACK_IMPORTED_MODULE_2__.a)(),Object(_functions_init_select2__WEBPACK_IMPORTED_MODULE_4__.a)(),document.addEventListener("DOMContentLoaded",function(){for(var cssFileToCheck="".concat(jsVars.themePath,"/fonts/fonts.css"),styleSheets=document.styleSheets,i=0,max=styleSheets.length;i<max;i++)if(styleSheets[i].href===cssFileToCheck)return;var link=document.createElement("link");link.rel="stylesheet",link.href=cssFileToCheck,document.getElementsByTagName("head")[0].appendChild(link)}),.01*window.innerHeight);document.documentElement.style.setProperty("--vh","".concat(_functions_set_screen_params__WEBPACK_IMPORTED_MODULE_3__,"px")),window.addEventListener("resize",function(){var vh=.01*window.innerHeight;document.documentElement.style.setProperty("--vh","".concat(vh,"px"))}),$.loadScript=function(url,async,callback){$.ajax({url:url,dataType:"script",success:callback,async:async})},document.addEventListener("mousemove",function(){0})}.call(this,__webpack_require__(9),__webpack_require__(9))},function(module,exports,__webpack_require__){},function(module,__webpack_exports__,__webpack_require__){__webpack_require__(64),__webpack_require__(66),__webpack_require__(68),__webpack_require__(70),__webpack_require__(72)},function(module,__webpack_exports__,__webpack_require__){!function(jQuery){var $,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6),_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3),_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);__webpack_require__(19),__webpack_require__(65);($=jQuery)(function(){function _searchProductsByAjax(form,container){var data=new FormData(form);data.append("action","mason_search_products_ajax"),ajaxRequest&&ajaxRequest.abort(),ajaxRequest=$.ajax({url:jsVars.ajaxUrl,data:data,processData:!1,contentType:!1,type:"POST",beforeSend:function(){_searchPrintProducts("")},success:function(result){""!==$(form).find('[name="search_products"]').val().trim()&&(768<=$(window).width()&&(_body.find(".js-search-submit").hide(),_body.find(".js-search-reset").show()),_searchPrintProducts(result)),_body.addClass("no-scroll").find(".js-search-header-container").addClass("active")},complete:function(){ajaxRequest=null}})}var _submitHandler,_submitHandler2,isKeyboardOpen,cookie,_body=$("body"),_formSearchProducts=_body.find(".js-ajax-search-products"),_formSearchProductsMobile=_body.find(".js-ajax-search-products-mobile"),_menuBtnMobile=_body.find(".mn__header__hamburguer"),_menuBottom=_body.find(".mn__header__bottom"),_menuClose=_body.find(".mn__header__bottom__close"),_menuSubItems=_body.find(".mn__header__menu > .menu-item-has-children > a"),_menuCloseSearch=_body.find(".mn__header__search__close"),_menuSearch=_body.find(".mn__header__search"),ajaxRequest=(_menuBtnMobile.on("click",function(e){e.preventDefault(),_body.addClass("no-scroll"),_menuBottom.addClass("active")}),_menuClose.on("click",function(e){e.preventDefault(),_body.removeClass("no-scroll"),_menuBottom.removeClass("active"),_menuSubItems.each(function(item,elem){elem=$(elem).parent();elem.parent().parent().parent().removeClass("no-scroll"),elem.removeClass("active")})}),_menuCloseSearch.on("click",function(e){e.preventDefault(),_body.removeClass("no-scroll"),_menuSearch.removeClass("active"),_formSearchProductsMobile.find('[name="search_products"').val(""),_formSearchProducts.find('[name="search_products"').val("")}),_menuSubItems.on("click",function(e){window.innerWidth<=768&&(e.preventDefault(),(e=$(this).parent()).parent().parent().parent().addClass("no-scroll"),e.addClass("active"),document.querySelector(".mn__header__bottom__mb").scrollIntoView())}),null),_searchPrintProducts=function(products){var _html="";0<products.length&&products.map(function(product,index){var _discount="",_tags="",_priceClub="",_discount=product.discount?'<div class="mn__product__desc"><strong>'+product.discount+"</strong><span>DSCTO</span></div>":'<div class="mn__product__desc desc-trans"><strong>&nbsp;</strong><span>&nbsp;</span></div>';product.tags&&(_tags+='<ul class="mn__product__categories ds-flex align-center justify-center flex-wrap">',product.tags.map(function(tag){_tags+='<li><a href="'+tag.link+'">'+tag.title+"</a></li>"}),_tags+="</ul>"),product.price_club&&(_priceClub='<div class="mn__product__price-club ds-flex align-center justify-center" style="font-size: 14px;">Club Mason: '+product.price_club+"</div>"),_html+='<div class="mn__product">\n                            <div class="mn__product__top">\n                                <div class="ds-flex align-center justify-space-between">'+_discount+'</div>\n                                <a href="'+product.link+'" class="mn__product__image image-search">\n                                    <img loading="lazy" src="'+product.image+'" alt="product">\n                                </a>\n                                <div class="mn__product__info">\n                                    <h2><a href="'+product.link+'">'+product.title+"</a></h2>\n                                    "+_tags+'                                </div>\n                            </div>\n                            <div class="mn__product__bottom">\n                                <div class="mn__product__price ds-flex align-center justify-center">'+product.price+"</div>\n                                    "+_priceClub+"                            </div>\n                        </div>"}),_body.find(".js-container-products-search").html(_html)};_formSearchProducts.validate({errorPlacement:function(error,element){},rules:{search_products:{required:!0}},submitHandler:(_submitHandler=_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(form,event){return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:event.preventDefault();case 1:case"end":return _context.stop()}},_callee)})),function(_x,_x2){return _submitHandler.apply(this,arguments)})}),_formSearchProductsMobile.validate({errorPlacement:function(error,element){},rules:{search_products:{required:!0}},submitHandler:(_submitHandler2=_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee2(form,event){return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:event.preventDefault();case 1:case"end":return _context2.stop()}},_callee2)})),function(_x3,_x4){return _submitHandler2.apply(this,arguments)})}),_formSearchProducts.find('[name="search_products"]').on("keydown",function(){var isMobile=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent);setTimeout(function($e){var _val=$e.val().trim(),$e=$e.data("length");_val.length>=$e?(_searchProductsByAjax(_formSearchProducts[0]),isMobile&&_formSearchProductsMobile.find('[name="search_products"').focus().val(_val)):(_formSearchProductsMobile.find('[name="search_products"').val(""),_searchPrintProducts(""),_body.removeClass("no-scroll").find(".js-search-header-container").removeClass("active"))},200,$(this))}),_formSearchProductsMobile.find('[name="search_products"').on("keydown",function(){setTimeout(function($e){var _val=$e.val().trim(),$e=$e.data("length");_val.length>=$e?_searchProductsByAjax(_formSearchProductsMobile[0]):(_formSearchProducts.find('[name="search_products"').val(""),_searchPrintProducts(""))},200,$(this))}),_body.find(".js-search-reset").on("click",function(){768<=$(window).width()&&(_formSearchProducts.find('[name="search_products"').val("").focus(),_formSearchProductsMobile.find('[name="search_products"').val(""),_searchPrintProducts(""),_body.removeClass("no-scroll").find(".js-search-header-container").removeClass("active"),_body.find(".js-search-submit").show(),_body.find(".js-search-reset").hide())}),_body.on("click",".js-mini-cart-close",function(){_body.find(".js-mini-cart").addClass("hide-active"),setTimeout(function(){_body.find(".js-mini-cart").removeClass("hide-active")},3e3)}),isKeyboardOpen=!1,$(document).on("focusin","input",function(){}),$(document).on("focusout","input",function(){}),$(window).on("resize",function(){isKeyboardOpen&&window.innerHeight===window.screen.height&&(isKeyboardOpen=!1)}),_body.on("click",".woosw-btn-added",function(e){e.preventDefault(),e.stopPropagation();var $storage=!0;try{$storage="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("woosw","test"),window.sessionStorage.removeItem("woosw")}catch(err){$storage=!1}var $this=$(this),product_id=$this.attr("data-id"),e={action:"wishlist_remove",product_id:product_id,nonce:woosw_vars.nonce};$this.addClass("woosw-removing"),$.post(jsVars.ajaxUrl,e,function(response){$this.removeClass("woosw-removing"),$this.removeClass("woosw-btn-added woosw-added");var icon=(icon=$this.find(".woo-wishlist-icon").attr("src")).replace("-active","");$this.find(".woo-wishlist-icon").attr("src",icon),$storage&&response.data&&sessionStorage.setItem("woosw_data_"+response.data.key,JSON.stringify(response.data)),response.data.fragments&&$.each(response.data.fragments,function(key,value){$(key).replaceWith(value)}),response.data.ids&&response.data.ids,$(document.body).trigger("woosw_remove",[product_id])})});"hide"===(_menuBtnMobile="promotion",cookie={},document.cookie.split(";").forEach(function(el){el=el.split("=");cookie[el[0].trim()]=el.slice(1).join("=")}),cookie[_menuBtnMobile])&&_body.find(".mn__header__promo").addClass("hide"),_body.on("click",".js-promo-close",function(e){var name,value;$(this).parent().parent().addClass("hide"),name="promotion",value="hide",document.cookie=name+"="+(value||"")})})}.call(this,__webpack_require__(9))},function(module,exports,__webpack_require__){},function(module,__webpack_exports__,__webpack_require__){!function(jQuery){var $;__webpack_require__(67);($=jQuery)(function(){function addPlusLessQuantityReducer(elem,type){var _input=(elem=$(elem.currentTarget)).parent().find("input"),_value=parseInt(_input.val());(type="less"===type?_value-1:_value+1)<=0||99<type||(_input.val(type),(_value=$(elem[0])).hasClass("js-add-cart-lazy")&&_wcAddToCart(_value.data("id"),type,!0),$('.woocommerce-cart-form :input[name="update_cart"]').prop("disabled",!1).attr("aria-disabled",!1))}var _body=$("body"),_btnAddContainer=_body.find(".js-add-cart-container"),updateMiniCart=(_body.on("click",".btn-less",function(e){addPlusLessQuantityReducer(e,"less")}),_body.on("click",".btn-plus",function(e){addPlusLessQuantityReducer(e,"plus")}),function(cart){var products,qty;cart&&(products=(cart=$(cart["div.widget_shopping_cart_content"])).find(".mini_cart_item"),_body.find(".mn__cart__overlay").html(cart),qty=0,products.map(function(index,item){qty+=parseInt($(item).find("input").val())}),_body.find(".mn__header__cart__count").html(qty))}),_wcAddToCart=function(_productId,_quantity){var _update=2<arguments.length&&void 0!==arguments[2]&&arguments[2];$.ajax({url:_update?jsVars.ajaxUrl:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","add_to_cart"),data:{product_id:_productId,quantity:_quantity,action:_update?"mason_remove_item_from_cart":""},type:"POST",success:function(response){response&&(response.error&&response.product_url?window.location=response.product_url:"yes"===wc_add_to_cart_params.cart_redirect_after_add?window.location=wc_add_to_cart_params.cart_url:($(document.body).trigger("added_to_cart",[response.fragments,response.cart_hash]),updateMiniCart(response.fragments)))}})};_btnAddContainer.on("click",".js-add-cart",function(elem){if("undefined"==typeof wc_add_to_cart_params)return!1;elem=$(elem.currentTarget);_wcAddToCart(elem.data("id"),elem.parent().find("input").val()),_body.find(".js-mini-cart").addClass("view-active"),setTimeout(function(){_body.find(".mn__cart__overlay").removeClass("view-active")},2e3)})})}.call(this,__webpack_require__(9))},function(module,exports,__webpack_require__){},function(module,__webpack_exports__,__webpack_require__){!function(jQuery){var $,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6),_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3),_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);__webpack_require__(69),__webpack_require__(19);($=jQuery)(function(){var _submitHandler,formSubscription=$("body").find(".js-subscription-register");$.validator.addMethod("email_custom",function(value,element){return""===value?this.optional(element):/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(value)},"Please enter a valid file.");formSubscription.validate({errorPlacement:function(error,element){},rules:{subscription_status:{required:!0},subscription_email:{required:!0,email_custom:!0}},submitHandler:(_submitHandler=_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(form,event){var data;return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:event.preventDefault(),(data=new FormData(form)).append("action","set_register_subscription"),$.ajax({url:jsVars.ajaxUrl,data:data,processData:!1,contentType:!1,type:"POST",beforeSend:function(){formSubscription.find('[type="submit"]').attr("disabled","disabled").html("Enviando...")},success:function(result){var _label=formSubscription.find('[type="submit"]').data("label");formSubscription.find('[type="submit"]').removeAttr("disabled").html(_label),result.success?formSubscription[0].reset():formSubscription.find('[name="subscription_email"]').addClass("error")}});case 4:case"end":return _context.stop()}},_callee)})),function(_x,_x2){return _submitHandler.apply(this,arguments)})})})}.call(this,__webpack_require__(9))},function(module,exports,__webpack_require__){},function(module,__webpack_exports__,__webpack_require__){!function(jQuery){__webpack_require__(71)}.call(this,__webpack_require__(9))},function(module,exports,__webpack_require__){},function(module,__webpack_exports__,__webpack_require__){!function(jQuery){__webpack_require__(73)}.call(this,__webpack_require__(9))},function(module,exports,__webpack_require__){},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__;__webpack_require__=[__webpack_require__(9)],void 0!==(exports="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=function(jQuery){"use strict";var domfocus=false,mousefocus=false,tabindexcounter=0,ascrailcounter=2e3,globalmaxzindex=0,$=jQuery,_doc=document,_win=window,$window=$(_win),delegatevents=[];function getScriptPath(){var scripts=_doc.currentScript||function(){var s=_doc.getElementsByTagName("script");return s.length?s[s.length-1]:false}();var path=scripts?scripts.src.split("?")[0]:"";return path.split("/").length>0?path.split("/").slice(0,-1).join("/")+"/":""}var setAnimationFrame=_win.requestAnimationFrame||_win.webkitRequestAnimationFrame||_win.mozRequestAnimationFrame||false,clearAnimationFrame=_win.cancelAnimationFrame||_win.webkitCancelAnimationFrame||_win.mozCancelAnimationFrame||false;if(!setAnimationFrame){var anilasttime=0;setAnimationFrame=function(callback,element){var currTime=(new Date).getTime();var timeToCall=Math.max(0,16-(currTime-anilasttime));var id=_win.setTimeout(function(){callback(currTime+timeToCall)},timeToCall);anilasttime=currTime+timeToCall;return id};clearAnimationFrame=function(id){_win.clearTimeout(id)}}else if(!_win.cancelAnimationFrame)clearAnimationFrame=function(id){};var ClsMutationObserver=_win.MutationObserver||_win.WebKitMutationObserver||false,now=Date.now||function(){return(new Date).getTime()},_globaloptions={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"6px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:40,mousescrollstep:9*3,touchbehavior:false,emulatetouch:false,hwacceleration:true,usetransition:true,boxzoom:false,dblclickzoom:true,gesturezoom:true,grabcursorenabled:true,autohidemode:true,background:"",iframeautoresize:true,cursorminheight:32,preservenativescrolling:true,railoffset:false,railhoffset:false,bouncescroll:true,spacebarenabled:true,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:true,horizrailenabled:true,railalign:"right",railvalign:"bottom",enabletranslate3d:true,enablemousewheel:true,enablekeyboard:true,smoothscroll:true,sensitiverail:true,enablemouselockapi:true,cursorfixedheight:false,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:true,enablescrollonselection:true,overflowx:true,overflowy:true,cursordragspeed:.3,rtlmode:"auto",cursordragontouch:false,oneaxismousemode:"auto",scriptpath:getScriptPath(),preventmultitouchscrolling:true,disablemutationobserver:false,enableobserver:true,scrollbarid:false},browserdetected=false,getBrowserDetection=function(){if(browserdetected)return browserdetected;var _el=_doc.createElement("DIV"),_style=_el.style,_agent=navigator.userAgent,_platform=navigator.platform,d={};d.haspointerlock="pointerLockElement"in _doc||"webkitPointerLockElement"in _doc||"mozPointerLockElement"in _doc;d.isopera="opera"in _win;d.isopera12=d.isopera&&"getUserMedia"in navigator;d.isoperamini=Object.prototype.toString.call(_win.operamini)==="[object OperaMini]";d.isie="all"in _doc&&"attachEvent"in _el&&!d.isopera;d.isieold=d.isie&&!("msInterpolationMode"in _style);d.isie7=d.isie&&!d.isieold&&(!("documentMode"in _doc)||_doc.documentMode===7);d.isie8=d.isie&&"documentMode"in _doc&&_doc.documentMode===8;d.isie9=d.isie&&"performance"in _win&&_doc.documentMode===9;d.isie10=d.isie&&"performance"in _win&&_doc.documentMode===10;d.isie11="msRequestFullscreen"in _el&&_doc.documentMode>=11;d.ismsedge="msCredentials"in _win;d.ismozilla="MozAppearance"in _style;d.iswebkit=!d.ismsedge&&"WebkitAppearance"in _style;d.ischrome=d.iswebkit&&"chrome"in _win;d.ischrome38=d.ischrome&&"touchAction"in _style;d.ischrome22=!d.ischrome38&&(d.ischrome&&d.haspointerlock);d.ischrome26=!d.ischrome38&&(d.ischrome&&"transition"in _style);d.cantouch="ontouchstart"in _doc.documentElement||"ontouchstart"in _win;d.hasw3ctouch=(_win.PointerEvent||false)&&(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);d.hasmstouch=!d.hasw3ctouch&&(_win.MSPointerEvent||false);d.ismac=/^mac$/i.test(_platform);d.isios=d.cantouch&&/iphone|ipad|ipod/i.test(_platform);d.isios4=d.isios&&!("seal"in Object);d.isios7=d.isios&&"webkitHidden"in _doc;d.isios8=d.isios&&"hidden"in _doc;d.isios10=d.isios&&_win.Proxy;d.isandroid=/android/i.test(_agent);d.haseventlistener="addEventListener"in _el;d.trstyle=false;d.hastransform=false;d.hastranslate3d=false;d.transitionstyle=false;d.hastransition=false;d.transitionend=false;d.trstyle="transform";d.hastransform="transform"in _style||function(){var check=["msTransform","webkitTransform","MozTransform","OTransform"];for(var a=0,c=check.length;a<c;a++)if(_style[check[a]]!==undefined){d.trstyle=check[a];break}d.hastransform=!!d.trstyle}();if(d.hastransform){_style[d.trstyle]="translate3d(1px,2px,3px)";d.hastranslate3d=/translate3d/.test(_style[d.trstyle])}d.transitionstyle="transition";d.prefixstyle="";d.transitionend="transitionend";d.hastransition="transition"in _style||function(){d.transitionend=false;var check=["webkitTransition","msTransition","MozTransition","OTransition","OTransition","KhtmlTransition"];var prefix=["-webkit-","-ms-","-moz-","-o-","-o","-khtml-"];var evs=["webkitTransitionEnd","msTransitionEnd","transitionend","otransitionend","oTransitionEnd","KhtmlTransitionEnd"];for(var a=0,c=check.length;a<c;a++)if(check[a]in _style){d.transitionstyle=check[a];d.prefixstyle=prefix[a];d.transitionend=evs[a];break}if(d.ischrome26)d.prefixstyle=prefix[1];d.hastransition=d.transitionstyle}();function detectCursorGrab(){var lst=["grab","-webkit-grab","-moz-grab"];if(d.ischrome&&!d.ischrome38||d.isie)lst=[];for(var a=0,l=lst.length;a<l;a++){var p=lst[a];_style.cursor=p;if(_style.cursor==p)return p}return"url(https://cdnjs.cloudflare.com/ajax/libs/slider-pro/1.3.0/css/images/openhand.cur),n-resize"}d.cursorgrabvalue=detectCursorGrab();d.hasmousecapture="setCapture"in _el;d.hasMutationObserver=ClsMutationObserver!==false;_el=null;browserdetected=d;return d},NiceScrollClass=function(myopt,me){var self=this;this.version="3.7.6";this.name="nicescroll";this.me=me;var $body=$("body");var opt=this.opt={doc:$body,win:false};$.extend(opt,_globaloptions);opt.snapbackspeed=80;if(myopt||false)for(var a in opt)if(myopt[a]!==undefined)opt[a]=myopt[a];if(opt.disablemutationobserver)ClsMutationObserver=false;this.doc=opt.doc;this.iddoc=this.doc&&this.doc[0]?this.doc[0].id||"":"";this.ispage=/^BODY|HTML/.test(opt.win?opt.win[0].nodeName:this.doc[0].nodeName);this.haswrapper=opt.win!==false;this.win=opt.win||(this.ispage?$window:this.doc);this.docscroll=this.ispage&&!this.haswrapper?$window:this.win;this.body=$body;this.viewport=false;this.isfixed=false;this.iframe=false;this.isiframe=this.doc[0].nodeName=="IFRAME"&&this.win[0].nodeName=="IFRAME";this.istextarea=this.win[0].nodeName=="TEXTAREA";this.forcescreen=false;this.canshowonmouseevent=opt.autohidemode!="scroll";this.onmousedown=false;this.onmouseup=false;this.onmousemove=false;this.onmousewheel=false;this.onkeypress=false;this.ongesturezoom=false;this.onclick=false;this.onscrollstart=false;this.onscrollend=false;this.onscrollcancel=false;this.onzoomin=false;this.onzoomout=false;this.view=false;this.page=false;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;if(opt.rtlmode=="auto"){var target=this.win[0]==_win?this.body:this.win;var writingMode=target.css("writing-mode")||target.css("-webkit-writing-mode")||target.css("-ms-writing-mode")||target.css("-moz-writing-mode");if(writingMode=="horizontal-tb"||writingMode=="lr-tb"||writingMode===""){this.isrtlmode=target.css("direction")=="rtl";this.isvertical=false}else{this.isrtlmode=writingMode=="vertical-rl"||writingMode=="tb"||writingMode=="tb-rl"||writingMode=="rl-tb";this.isvertical=writingMode=="vertical-rl"||writingMode=="tb"||writingMode=="tb-rl"}}else{this.isrtlmode=opt.rtlmode===true;this.isvertical=false}this.scrollrunning=false;this.scrollmom=false;this.observer=false;this.observerremover=false;this.observerbody=false;if(opt.scrollbarid!==false)this.id=opt.scrollbarid;else do{this.id="ascrail"+ascrailcounter++}while(_doc.getElementById(this.id));this.rail=false;this.cursor=false;this.cursorfreezed=false;this.selectiondrag=false;this.zoom=false;this.zoomactive=false;this.hasfocus=false;this.hasmousefocus=false;this.railslocked=false;this.locked=false;this.hidden=false;this.cursoractive=true;this.wheelprevented=false;this.overflowx=opt.overflowx;this.overflowy=opt.overflowy;this.nativescrollingarea=false;this.checkarea=0;this.events=[];this.saved={};this.delaylist={};this.synclist={};this.lastdeltax=0;this.lastdeltay=0;this.detected=getBrowserDetection();var cap=$.extend({},this.detected);this.canhwscroll=cap.hastransform&&opt.hwacceleration;this.ishwscroll=this.canhwscroll&&self.haswrapper;if(!this.isrtlmode)this.hasreversehr=false;else if(this.isvertical)this.hasreversehr=!(cap.iswebkit||cap.isie||cap.isie11);else this.hasreversehr=!(cap.iswebkit||cap.isie&&!cap.isie10&&!cap.isie11);this.istouchcapable=false;if(!cap.cantouch&&(cap.hasw3ctouch||cap.hasmstouch))this.istouchcapable=true;else if(cap.cantouch&&!cap.isios&&!cap.isandroid&&(cap.iswebkit||cap.ismozilla))this.istouchcapable=true;if(!opt.enablemouselockapi){cap.hasmousecapture=false;cap.haspointerlock=false}this.debounced=function(name,fn,tm){if(!self)return;var dd=self.delaylist[name]||false;if(!dd){self.delaylist[name]={h:setAnimationFrame(function(){self.delaylist[name].fn.call(self);self.delaylist[name]=false},tm)};fn.call(self)}self.delaylist[name].fn=fn};this.synched=function(name,fn){if(self.synclist[name])self.synclist[name]=fn;else{self.synclist[name]=fn;setAnimationFrame(function(){if(!self)return;self.synclist[name]&&self.synclist[name].call(self);self.synclist[name]=null})}};this.unsynched=function(name){if(self.synclist[name])self.synclist[name]=false};this.css=function(el,pars){for(var n in pars){self.saved.css.push([el,n,el.css(n)]);el.css(n,pars[n])}};this.scrollTop=function(val){return val===undefined?self.getScrollTop():self.setScrollTop(val)};this.scrollLeft=function(val){return val===undefined?self.getScrollLeft():self.setScrollLeft(val)};var BezierClass=function(st,ed,spd,p1,p2,p3,p4){this.st=st;this.ed=ed;this.spd=spd;this.p1=p1||0;this.p2=p2||1;this.p3=p3||0;this.p4=p4||1;this.ts=now();this.df=ed-st};BezierClass.prototype={B2:function(t){return 3*(1-t)*(1-t)*t},B3:function(t){return 3*(1-t)*t*t},B4:function(t){return t*t*t},getPos:function(){return(now()-this.ts)/this.spd},getNow:function(){var pc=(now()-this.ts)/this.spd;var bz=this.B2(pc)+this.B3(pc)+this.B4(pc);return pc>=1?this.ed:this.st+this.df*bz|0},update:function(ed,spd){this.st=this.getNow();this.ed=ed;this.spd=spd;this.ts=now();this.df=this.ed-this.st;return this}};function getMatrixValues(){var tr=self.doc.css(cap.trstyle);if(tr&&tr.substr(0,6)=="matrix")return tr.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/);return false}if(this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"};if(cap.hastranslate3d&&cap.isios)this.doc.css("-webkit-backface-visibility","hidden");this.getScrollTop=function(last){if(!last){var mtx=getMatrixValues();if(mtx)return mtx.length==16?-mtx[13]:-mtx[5];if(self.timerscroll&&self.timerscroll.bz)return self.timerscroll.bz.getNow()}return self.doc.translate.y};this.getScrollLeft=function(last){if(!last){var mtx=getMatrixValues();if(mtx)return mtx.length==16?-mtx[12]:-mtx[4];if(self.timerscroll&&self.timerscroll.bh)return self.timerscroll.bh.getNow()}return self.doc.translate.x};this.notifyScrollEvent=function(el){var e=_doc.createEvent("UIEvents");e.initUIEvent("scroll",false,false,_win,1);e.niceevent=true;el.dispatchEvent(e)};var cxscrollleft=this.isrtlmode?1:-1;if(cap.hastranslate3d&&opt.enabletranslate3d){this.setScrollTop=function(val,silent){self.doc.translate.y=val;self.doc.translate.ty=val*-1+"px";self.doc.css(cap.trstyle,"translate3d("+self.doc.translate.tx+","+self.doc.translate.ty+",0)");if(!silent)self.notifyScrollEvent(self.win[0])};this.setScrollLeft=function(val,silent){self.doc.translate.x=val;self.doc.translate.tx=val*cxscrollleft+"px";self.doc.css(cap.trstyle,"translate3d("+self.doc.translate.tx+","+self.doc.translate.ty+",0)");if(!silent)self.notifyScrollEvent(self.win[0])}}else{this.setScrollTop=function(val,silent){self.doc.translate.y=val;self.doc.translate.ty=val*-1+"px";self.doc.css(cap.trstyle,"translate("+self.doc.translate.tx+","+self.doc.translate.ty+")");if(!silent)self.notifyScrollEvent(self.win[0])};this.setScrollLeft=function(val,silent){self.doc.translate.x=val;self.doc.translate.tx=val*cxscrollleft+"px";self.doc.css(cap.trstyle,"translate("+self.doc.translate.tx+","+self.doc.translate.ty+")");if(!silent)self.notifyScrollEvent(self.win[0])}}}else{this.getScrollTop=function(){return self.docscroll.scrollTop()};this.setScrollTop=function(val){self.docscroll.scrollTop(val)};this.getScrollLeft=function(){var val;if(!self.hasreversehr)val=self.docscroll.scrollLeft();else if(self.detected.ismozilla)val=self.page.maxw-Math.abs(self.docscroll.scrollLeft());else val=self.page.maxw-self.docscroll.scrollLeft();return val};this.setScrollLeft=function(val){return setTimeout(function(){if(!self)return;if(self.hasreversehr)if(self.detected.ismozilla)val=-(self.page.maxw-val);else val=self.page.maxw-val;return self.docscroll.scrollLeft(val)},1)}}this.getTarget=function(e){if(!e)return false;if(e.target)return e.target;if(e.srcElement)return e.srcElement;return false};this.hasParent=function(e,id){if(!e)return false;var el=e.target||e.srcElement||e||false;while(el&&el.id!=id)el=el.parentNode||false;return el!==false};function getZIndex(){var dom=self.win;if("zIndex"in dom)return dom.zIndex();while(dom.length>0){if(dom[0].nodeType==9)return false;var zi=dom.css("zIndex");if(!isNaN(zi)&&zi!==0)return parseInt(zi);dom=dom.parent()}return false}var _convertBorderWidth={thin:1,medium:3,thick:5};function getWidthToPixel(dom,prop,chkheight){var wd=dom.css(prop);var px=parseFloat(wd);if(isNaN(px)){px=_convertBorderWidth[wd]||0;var brd=px==3?chkheight?self.win.outerHeight()-self.win.innerHeight():self.win.outerWidth()-self.win.innerWidth():1;if(self.isie8&&px)px+=1;return brd?px:0}return px}this.getDocumentScrollOffset=function(){return{top:_win.pageYOffset||_doc.documentElement.scrollTop,left:_win.pageXOffset||_doc.documentElement.scrollLeft}};this.getOffset=function(){if(self.isfixed){var ofs=self.win.offset();var scrl=self.getDocumentScrollOffset();ofs.top-=scrl.top;ofs.left-=scrl.left;return ofs}var ww=self.win.offset();if(!self.viewport)return ww;var vp=self.viewport.offset();return{top:ww.top-vp.top,left:ww.left-vp.left}};this.updateScrollBar=function(len){var pos,off;if(self.ishwscroll){self.rail.css({height:self.win.innerHeight()-(opt.railpadding.top+opt.railpadding.bottom)});if(self.railh)self.railh.css({width:self.win.innerWidth()-(opt.railpadding.left+opt.railpadding.right)})}else{var wpos=self.getOffset();pos={top:wpos.top,left:wpos.left-(opt.railpadding.left+opt.railpadding.right)};pos.top+=getWidthToPixel(self.win,"border-top-width",true);pos.left+=self.rail.align?self.win.outerWidth()-getWidthToPixel(self.win,"border-right-width")-self.rail.width:getWidthToPixel(self.win,"border-left-width");off=opt.railoffset;if(off){if(off.top)pos.top+=off.top;if(off.left)pos.left+=off.left}if(!self.railslocked)self.rail.css({top:pos.top,left:pos.left,height:(len?len.h:self.win.innerHeight())-(opt.railpadding.top+opt.railpadding.bottom)});if(self.zoom)self.zoom.css({top:pos.top+1,left:self.rail.align==1?pos.left-20:pos.left+self.rail.width+4});if(self.railh&&!self.railslocked){pos={top:wpos.top,left:wpos.left};off=opt.railhoffset;if(off){if(off.top)pos.top+=off.top;if(off.left)pos.left+=off.left}var y=self.railh.align?pos.top+getWidthToPixel(self.win,"border-top-width",true)+self.win.innerHeight()-self.railh.height:pos.top+getWidthToPixel(self.win,"border-top-width",true);var x=pos.left+getWidthToPixel(self.win,"border-left-width");self.railh.css({top:y-(opt.railpadding.top+opt.railpadding.bottom),left:x,width:self.railh.width})}}};this.doRailClick=function(e,dbl,hr){var fn,pg,cur,pos;if(self.railslocked)return;self.cancelEvent(e);if(!("pageY"in e)){e.pageX=e.clientX+_doc.documentElement.scrollLeft;e.pageY=e.clientY+_doc.documentElement.scrollTop}if(dbl){fn=hr?self.doScrollLeft:self.doScrollTop;cur=hr?(e.pageX-self.railh.offset().left-self.cursorwidth/2)*self.scrollratio.x:(e.pageY-self.rail.offset().top-self.cursorheight/2)*self.scrollratio.y;self.unsynched("relativexy");fn(cur|0)}else{fn=hr?self.doScrollLeftBy:self.doScrollBy;cur=hr?self.scroll.x:self.scroll.y;pos=hr?e.pageX-self.railh.offset().left:e.pageY-self.rail.offset().top;pg=hr?self.view.w:self.view.h;fn(cur>=pos?pg:-pg)}};self.newscrolly=self.newscrollx=0;self.hasanimationframe="requestAnimationFrame"in _win;self.hascancelanimationframe="cancelAnimationFrame"in _win;self.hasborderbox=false;this.init=function(){self.saved.css=[];if(cap.isoperamini)return true;if(cap.isandroid&&!("hidden"in _doc))return true;opt.emulatetouch=opt.emulatetouch||opt.touchbehavior;self.hasborderbox=_win.getComputedStyle&&_win.getComputedStyle(_doc.body)["box-sizing"]==="border-box";var _scrollyhidden={"overflow-y":"hidden"};if(cap.isie11||cap.isie10)_scrollyhidden["-ms-overflow-style"]="none";if(self.ishwscroll){this.doc.css(cap.transitionstyle,cap.prefixstyle+"transform 0ms ease-out");if(cap.transitionend)self.bind(self.doc,cap.transitionend,self.onScrollTransitionEnd,false)}self.zindex="auto";if(!self.ispage&&opt.zindex=="auto")self.zindex=getZIndex()||"auto";else self.zindex=opt.zindex;if(!self.ispage&&self.zindex!="auto"&&self.zindex>globalmaxzindex)globalmaxzindex=self.zindex;if(self.isie&&self.zindex===0&&opt.zindex=="auto")self.zindex="auto";if(!self.ispage||!cap.isieold){var cont=self.docscroll;if(self.ispage)cont=self.haswrapper?self.win:self.doc;self.css(cont,_scrollyhidden);if(self.ispage&&(cap.isie11||cap.isie))self.css($("html"),_scrollyhidden);if(cap.isios&&!self.ispage&&!self.haswrapper)self.css($body,{"-webkit-overflow-scrolling":"touch"});var cursor=$(_doc.createElement("div"));cursor.css({position:"relative",top:0,float:"right",width:opt.cursorwidth,height:0,"background-color":opt.cursorcolor,border:opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":opt.cursorborderradius,"-moz-border-radius":opt.cursorborderradius,"border-radius":opt.cursorborderradius});cursor.addClass("nicescroll-cursors");self.cursor=cursor;var rail=$(_doc.createElement("div"));rail.attr("id",self.id);rail.addClass("nicescroll-rails nicescroll-rails-vr");var v,a,kp=["left","right","top","bottom"];for(var n in kp){a=kp[n];v=opt.railpadding[a]||0;v&&rail.css("padding-"+a,v+"px")}rail.append(cursor);rail.width=Math.max(parseFloat(opt.cursorwidth),cursor.outerWidth());rail.css({width:rail.width+"px",zIndex:self.zindex,background:opt.background,cursor:"default"});rail.visibility=true;rail.scrollable=true;rail.align=opt.railalign=="left"?0:1;self.rail=rail;self.rail.drag=false;var zoom=false;if(opt.boxzoom&&!self.ispage&&!cap.isieold){zoom=_doc.createElement("div");self.bind(zoom,"click",self.doZoom);self.bind(zoom,"mouseenter",function(){self.zoom.css("opacity",opt.cursoropacitymax)});self.bind(zoom,"mouseleave",function(){self.zoom.css("opacity",opt.cursoropacitymin)});self.zoom=$(zoom);self.zoom.css({cursor:"pointer",zIndex:self.zindex,backgroundImage:"url("+opt.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0 0"});if(opt.dblclickzoom)self.bind(self.win,"dblclick",self.doZoom);if(cap.cantouch&&opt.gesturezoom){self.ongesturezoom=function(e){if(e.scale>1.5)self.doZoomIn(e);if(e.scale<.8)self.doZoomOut(e);return self.cancelEvent(e)};self.bind(self.win,"gestureend",self.ongesturezoom)}}self.railh=false;var railh;if(opt.horizrailenabled){self.css(cont,{overflowX:"hidden"});cursor=$(_doc.createElement("div"));cursor.css({position:"absolute",top:0,height:opt.cursorwidth,width:0,backgroundColor:opt.cursorcolor,border:opt.cursorborder,backgroundClip:"padding-box","-webkit-border-radius":opt.cursorborderradius,"-moz-border-radius":opt.cursorborderradius,"border-radius":opt.cursorborderradius});if(cap.isieold)cursor.css("overflow","hidden");cursor.addClass("nicescroll-cursors");self.cursorh=cursor;railh=$(_doc.createElement("div"));railh.attr("id",self.id+"-hr");railh.addClass("nicescroll-rails nicescroll-rails-hr");railh.height=Math.max(parseFloat(opt.cursorwidth),cursor.outerHeight());railh.css({height:railh.height+"px",zIndex:self.zindex,background:opt.background});railh.append(cursor);railh.visibility=true;railh.scrollable=true;railh.align=opt.railvalign=="top"?0:1;self.railh=railh;self.railh.drag=false}if(self.ispage){rail.css({position:"fixed",top:0,height:"100%"});rail.css(rail.align?{right:0}:{left:0});self.body.append(rail);if(self.railh){railh.css({position:"fixed",left:0,width:"100%"});railh.css(railh.align?{bottom:0}:{top:0});self.body.append(railh)}}else{if(self.ishwscroll){if(self.win.css("position")=="static")self.css(self.win,{position:"relative"});var bd=self.win[0].nodeName=="HTML"?self.body:self.win;$(bd).scrollTop(0).scrollLeft(0);if(self.zoom){self.zoom.css({position:"absolute",top:1,right:0,"margin-right":rail.width+4});bd.append(self.zoom)}rail.css({position:"absolute",top:0});rail.css(rail.align?{right:0}:{left:0});bd.append(rail);if(railh){railh.css({position:"absolute",left:0,bottom:0});railh.css(railh.align?{bottom:0}:{top:0});bd.append(railh)}}else{self.isfixed=self.win.css("position")=="fixed";var rlpos=self.isfixed?"fixed":"absolute";if(!self.isfixed)self.viewport=self.getViewport(self.win[0]);if(self.viewport){self.body=self.viewport;if(!/fixed|absolute/.test(self.viewport.css("position")))self.css(self.viewport,{position:"relative"})}rail.css({position:rlpos});if(self.zoom)self.zoom.css({position:rlpos});self.updateScrollBar();self.body.append(rail);if(self.zoom)self.body.append(self.zoom);if(self.railh){railh.css({position:rlpos});self.body.append(railh)}}if(cap.isios)self.css(self.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"});if(opt.disableoutline){if(cap.isie)self.win.attr("hideFocus","true");if(cap.iswebkit)self.win.css("outline","none")}}if(opt.autohidemode===false){self.autohidedom=false;self.rail.css({opacity:opt.cursoropacitymax});if(self.railh)self.railh.css({opacity:opt.cursoropacitymax})}else if(opt.autohidemode===true||opt.autohidemode==="leave"){self.autohidedom=$().add(self.rail);if(cap.isie8)self.autohidedom=self.autohidedom.add(self.cursor);if(self.railh)self.autohidedom=self.autohidedom.add(self.railh);if(self.railh&&cap.isie8)self.autohidedom=self.autohidedom.add(self.cursorh)}else if(opt.autohidemode=="scroll"){self.autohidedom=$().add(self.rail);if(self.railh)self.autohidedom=self.autohidedom.add(self.railh)}else if(opt.autohidemode=="cursor"){self.autohidedom=$().add(self.cursor);if(self.railh)self.autohidedom=self.autohidedom.add(self.cursorh)}else if(opt.autohidemode=="hidden"){self.autohidedom=false;self.hide();self.railslocked=false}if(cap.cantouch||self.istouchcapable||opt.emulatetouch||cap.hasmstouch){self.scrollmom=new ScrollMomentumClass2D(self);var delayedclick=null;self.ontouchstart=function(e){if(self.locked)return false;if(e.pointerType&&(e.pointerType==="mouse"||e.pointerType===e.MSPOINTER_TYPE_MOUSE))return false;self.hasmoving=false;if(self.scrollmom.timer){self.triggerScrollEnd();self.scrollmom.stop()}if(!self.railslocked){var tg=self.getTarget(e);if(tg){var skp=/INPUT/i.test(tg.nodeName)&&/range/i.test(tg.type);if(skp)return self.stopPropagation(e)}var ismouse=e.type==="mousedown";if(!("clientX"in e)&&"changedTouches"in e){e.clientX=e.changedTouches[0].clientX;e.clientY=e.changedTouches[0].clientY}if(self.forcescreen){var le=e;e={original:e.original?e.original:e};e.clientX=le.screenX;e.clientY=le.screenY}self.rail.drag={x:e.clientX,y:e.clientY,sx:self.scroll.x,sy:self.scroll.y,st:self.getScrollTop(),sl:self.getScrollLeft(),pt:2,dl:false,tg:tg};if(self.ispage||!opt.directionlockdeadzone)self.rail.drag.dl="f";else{var view={w:$window.width(),h:$window.height()};var page=self.getContentSize();var maxh=page.h-view.h;var maxw=page.w-view.w;if(self.rail.scrollable&&!self.railh.scrollable)self.rail.drag.ck=maxh>0?"v":false;else if(!self.rail.scrollable&&self.railh.scrollable)self.rail.drag.ck=maxw>0?"h":false;else self.rail.drag.ck=false}if(opt.emulatetouch&&self.isiframe&&cap.isie){var wp=self.win.position();self.rail.drag.x+=wp.left;self.rail.drag.y+=wp.top}self.hasmoving=false;self.lastmouseup=false;self.scrollmom.reset(e.clientX,e.clientY);if(tg&&ismouse){var ip=/INPUT|SELECT|BUTTON|TEXTAREA/i.test(tg.nodeName);if(!ip){if(cap.hasmousecapture)tg.setCapture();if(opt.emulatetouch){if(tg.onclick&&!(tg._onclick||false)){tg._onclick=tg.onclick;tg.onclick=function(e){if(self.hasmoving)return false;tg._onclick.call(this,e)}}return self.cancelEvent(e)}return self.stopPropagation(e)}if(/SUBMIT|CANCEL|BUTTON/i.test($(tg).attr("type")))self.preventclick={tg:tg,click:false}}}};self.ontouchend=function(e){if(!self.rail.drag)return true;if(self.rail.drag.pt==2){if(e.pointerType&&(e.pointerType==="mouse"||e.pointerType===e.MSPOINTER_TYPE_MOUSE))return false;self.rail.drag=false;var ismouse=e.type==="mouseup";if(self.hasmoving){self.scrollmom.doMomentum();self.lastmouseup=true;self.hideCursor();if(cap.hasmousecapture)_doc.releaseCapture();if(ismouse)return self.cancelEvent(e)}}else if(self.rail.drag.pt==1)return self.onmouseup(e)};var moveneedoffset=opt.emulatetouch&&self.isiframe&&!cap.hasmousecapture;var locktollerance=opt.directionlockdeadzone*.3|0;self.ontouchmove=function(e,byiframe){if(!self.rail.drag)return true;if(e.targetTouches&&opt.preventmultitouchscrolling)if(e.targetTouches.length>1)return true;if(e.pointerType&&(e.pointerType==="mouse"||e.pointerType===e.MSPOINTER_TYPE_MOUSE))return true;if(self.rail.drag.pt==2){if("changedTouches"in e){e.clientX=e.changedTouches[0].clientX;e.clientY=e.changedTouches[0].clientY}var ofy,ofx;ofx=ofy=0;if(moveneedoffset&&!byiframe){var wp=self.win.position();ofx=-wp.left;ofy=-wp.top}var fy=e.clientY+ofy;var my=fy-self.rail.drag.y;var fx=e.clientX+ofx;var mx=fx-self.rail.drag.x;var ny=self.rail.drag.st-my;if(self.ishwscroll&&opt.bouncescroll){if(ny<0)ny=Math.round(ny/2);else if(ny>self.page.maxh)ny=self.page.maxh+Math.round((ny-self.page.maxh)/2)}else{if(ny<0){ny=0;fy=0}else if(ny>self.page.maxh){ny=self.page.maxh;fy=0}if(fy===0&&!self.hasmoving){if(!self.ispage)self.rail.drag=false;return true}}var nx=self.getScrollLeft();if(self.railh&&self.railh.scrollable){nx=self.isrtlmode?mx-self.rail.drag.sl:self.rail.drag.sl-mx;if(self.ishwscroll&&opt.bouncescroll){if(nx<0)nx=Math.round(nx/2);else if(nx>self.page.maxw)nx=self.page.maxw+Math.round((nx-self.page.maxw)/2)}else{if(nx<0){nx=0;fx=0}if(nx>self.page.maxw){nx=self.page.maxw;fx=0}}}if(!self.hasmoving){if(self.rail.drag.y===e.clientY&&self.rail.drag.x===e.clientX)return self.cancelEvent(e);var ay=Math.abs(my);var ax=Math.abs(mx);var dz=opt.directionlockdeadzone;if(!self.rail.drag.ck){if(ay>dz&&ax>dz)self.rail.drag.dl="f";else if(ay>dz)self.rail.drag.dl=ax>locktollerance?"f":"v";else if(ax>dz)self.rail.drag.dl=ay>locktollerance?"f":"h"}else if(self.rail.drag.ck=="v"){if(ax>dz&&ay<=locktollerance)self.rail.drag=false;else if(ay>dz)self.rail.drag.dl="v"}else if(self.rail.drag.ck=="h")if(ay>dz&&ax<=locktollerance)self.rail.drag=false;else if(ax>dz)self.rail.drag.dl="h";if(!self.rail.drag.dl)return self.cancelEvent(e);self.triggerScrollStart(e.clientX,e.clientY,0,0,0);self.hasmoving=true}if(self.preventclick&&!self.preventclick.click){self.preventclick.click=self.preventclick.tg.onclick||false;self.preventclick.tg.onclick=self.onpreventclick}if(self.rail.drag.dl)if(self.rail.drag.dl=="v")nx=self.rail.drag.sl;else if(self.rail.drag.dl=="h")ny=self.rail.drag.st;self.synched("touchmove",function(){if(self.rail.drag&&self.rail.drag.pt==2){if(self.prepareTransition)self.resetTransition();if(self.rail.scrollable)self.setScrollTop(ny);self.scrollmom.update(fx,fy);if(self.railh&&self.railh.scrollable){self.setScrollLeft(nx);self.showCursor(ny,nx)}else self.showCursor(ny);if(cap.isie10)_doc.selection.clear()}});return self.cancelEvent(e)}else if(self.rail.drag.pt==1)return self.onmousemove(e)};self.ontouchstartCursor=function(e,hronly){if(self.rail.drag&&self.rail.drag.pt!=3)return;if(self.locked)return self.cancelEvent(e);self.cancelScroll();self.rail.drag={x:e.touches[0].clientX,y:e.touches[0].clientY,sx:self.scroll.x,sy:self.scroll.y,pt:3,hr:!!hronly};var tg=self.getTarget(e);if(!self.ispage&&cap.hasmousecapture)tg.setCapture();if(self.isiframe&&!cap.hasmousecapture){self.saved.csspointerevents=self.doc.css("pointer-events");self.css(self.doc,{"pointer-events":"none"})}return self.cancelEvent(e)};self.ontouchendCursor=function(e){if(self.rail.drag){if(cap.hasmousecapture)_doc.releaseCapture();if(self.isiframe&&!cap.hasmousecapture)self.doc.css("pointer-events",self.saved.csspointerevents);if(self.rail.drag.pt!=3)return;self.rail.drag=false;return self.cancelEvent(e)}};self.ontouchmoveCursor=function(e){if(self.rail.drag){if(self.rail.drag.pt!=3)return;self.cursorfreezed=true;if(self.rail.drag.hr){self.scroll.x=self.rail.drag.sx+(e.touches[0].clientX-self.rail.drag.x);if(self.scroll.x<0)self.scroll.x=0;var mw=self.scrollvaluemaxw;if(self.scroll.x>mw)self.scroll.x=mw}else{self.scroll.y=self.rail.drag.sy+(e.touches[0].clientY-self.rail.drag.y);if(self.scroll.y<0)self.scroll.y=0;var my=self.scrollvaluemax;if(self.scroll.y>my)self.scroll.y=my}self.synched("touchmove",function(){if(self.rail.drag&&self.rail.drag.pt==3){self.showCursor();if(self.rail.drag.hr)self.doScrollLeft(Math.round(self.scroll.x*self.scrollratio.x),opt.cursordragspeed);else self.doScrollTop(Math.round(self.scroll.y*self.scrollratio.y),opt.cursordragspeed)}});return self.cancelEvent(e)}}}self.onmousedown=function(e,hronly){if(self.rail.drag&&self.rail.drag.pt!=1)return;if(self.railslocked)return self.cancelEvent(e);self.cancelScroll();self.rail.drag={x:e.clientX,y:e.clientY,sx:self.scroll.x,sy:self.scroll.y,pt:1,hr:hronly||false};var tg=self.getTarget(e);if(cap.hasmousecapture)tg.setCapture();if(self.isiframe&&!cap.hasmousecapture){self.saved.csspointerevents=self.doc.css("pointer-events");self.css(self.doc,{"pointer-events":"none"})}self.hasmoving=false;return self.cancelEvent(e)};self.onmouseup=function(e){if(self.rail.drag){if(self.rail.drag.pt!=1)return true;if(cap.hasmousecapture)_doc.releaseCapture();if(self.isiframe&&!cap.hasmousecapture)self.doc.css("pointer-events",self.saved.csspointerevents);self.rail.drag=false;self.cursorfreezed=false;if(self.hasmoving)self.triggerScrollEnd();return self.cancelEvent(e)}};self.onmousemove=function(e){if(self.rail.drag){if(self.rail.drag.pt!==1)return;if(cap.ischrome&&e.which===0)return self.onmouseup(e);self.cursorfreezed=true;if(!self.hasmoving)self.triggerScrollStart(e.clientX,e.clientY,0,0,0);self.hasmoving=true;if(self.rail.drag.hr){self.scroll.x=self.rail.drag.sx+(e.clientX-self.rail.drag.x);if(self.scroll.x<0)self.scroll.x=0;var mw=self.scrollvaluemaxw;if(self.scroll.x>mw)self.scroll.x=mw}else{self.scroll.y=self.rail.drag.sy+(e.clientY-self.rail.drag.y);if(self.scroll.y<0)self.scroll.y=0;var my=self.scrollvaluemax;if(self.scroll.y>my)self.scroll.y=my}self.synched("mousemove",function(){if(self.cursorfreezed){self.showCursor();if(self.rail.drag.hr)self.scrollLeft(Math.round(self.scroll.x*self.scrollratio.x));else self.scrollTop(Math.round(self.scroll.y*self.scrollratio.y))}});return self.cancelEvent(e)}else self.checkarea=0};if(cap.cantouch||opt.emulatetouch){self.onpreventclick=function(e){if(self.preventclick){self.preventclick.tg.onclick=self.preventclick.click;self.preventclick=false;return self.cancelEvent(e)}};self.onclick=cap.isios?false:function(e){if(self.lastmouseup){self.lastmouseup=false;return self.cancelEvent(e)}else return true};if(opt.grabcursorenabled&&cap.cursorgrabvalue){self.css(self.ispage?self.doc:self.win,{cursor:cap.cursorgrabvalue});self.css(self.rail,{cursor:cap.cursorgrabvalue})}}else{var checkSelectionScroll=function(e){if(!self.selectiondrag)return;if(e){var ww=self.win.outerHeight();var df=e.pageY-self.selectiondrag.top;if(df>0&&df<ww)df=0;if(df>=ww)df-=ww;self.selectiondrag.df=df}if(self.selectiondrag.df===0)return;var rt=-(self.selectiondrag.df*2/6)|0;self.doScrollBy(rt);self.debounced("doselectionscroll",function(){checkSelectionScroll()},50)};if("getSelection"in _doc)self.hasTextSelected=function(){return _doc.getSelection().rangeCount>0};else if("selection"in _doc)self.hasTextSelected=function(){return _doc.selection.type!="None"};else self.hasTextSelected=function(){return false};self.onselectionstart=function(e){if(self.ispage)return;self.selectiondrag=self.win.offset()};self.onselectionend=function(e){self.selectiondrag=false};self.onselectiondrag=function(e){if(!self.selectiondrag)return;if(self.hasTextSelected())self.debounced("selectionscroll",function(){checkSelectionScroll(e)},250)}}if(cap.hasw3ctouch){self.css(self.ispage?$("html"):self.win,{"touch-action":"none"});self.css(self.rail,{"touch-action":"none"});self.css(self.cursor,{"touch-action":"none"});self.bind(self.win,"pointerdown",self.ontouchstart);self.bind(_doc,"pointerup",self.ontouchend);self.delegate(_doc,"pointermove",self.ontouchmove)}else if(cap.hasmstouch){self.css(self.ispage?$("html"):self.win,{"-ms-touch-action":"none"});self.css(self.rail,{"-ms-touch-action":"none"});self.css(self.cursor,{"-ms-touch-action":"none"});self.bind(self.win,"MSPointerDown",self.ontouchstart);self.bind(_doc,"MSPointerUp",self.ontouchend);self.delegate(_doc,"MSPointerMove",self.ontouchmove);self.bind(self.cursor,"MSGestureHold",function(e){e.preventDefault()});self.bind(self.cursor,"contextmenu",function(e){e.preventDefault()})}else if(cap.cantouch){self.bind(self.win,"touchstart",self.ontouchstart,false,true);self.bind(_doc,"touchend",self.ontouchend,false,true);self.bind(_doc,"touchcancel",self.ontouchend,false,true);self.delegate(_doc,"touchmove",self.ontouchmove,false,true)}if(opt.emulatetouch){self.bind(self.win,"mousedown",self.ontouchstart,false,true);self.bind(_doc,"mouseup",self.ontouchend,false,true);self.bind(_doc,"mousemove",self.ontouchmove,false,true)}if(opt.cursordragontouch||!cap.cantouch&&!opt.emulatetouch){self.rail.css({cursor:"default"});self.railh&&self.railh.css({cursor:"default"});self.jqbind(self.rail,"mouseenter",function(){if(!self.ispage&&!self.win.is(":visible"))return false;if(self.canshowonmouseevent)self.showCursor();self.rail.active=true});self.jqbind(self.rail,"mouseleave",function(){self.rail.active=false;if(!self.rail.drag)self.hideCursor()});if(opt.sensitiverail){self.bind(self.rail,"click",function(e){self.doRailClick(e,false,false)});self.bind(self.rail,"dblclick",function(e){self.doRailClick(e,true,false)});self.bind(self.cursor,"click",function(e){self.cancelEvent(e)});self.bind(self.cursor,"dblclick",function(e){self.cancelEvent(e)})}if(self.railh){self.jqbind(self.railh,"mouseenter",function(){if(!self.ispage&&!self.win.is(":visible"))return false;if(self.canshowonmouseevent)self.showCursor();self.rail.active=true});self.jqbind(self.railh,"mouseleave",function(){self.rail.active=false;if(!self.rail.drag)self.hideCursor()});if(opt.sensitiverail){self.bind(self.railh,"click",function(e){self.doRailClick(e,false,true)});self.bind(self.railh,"dblclick",function(e){self.doRailClick(e,true,true)});self.bind(self.cursorh,"click",function(e){self.cancelEvent(e)});self.bind(self.cursorh,"dblclick",function(e){self.cancelEvent(e)})}}}if(opt.cursordragontouch&&(this.istouchcapable||cap.cantouch)){self.bind(self.cursor,"touchstart",self.ontouchstartCursor);self.bind(self.cursor,"touchmove",self.ontouchmoveCursor);self.bind(self.cursor,"touchend",self.ontouchendCursor);self.cursorh&&self.bind(self.cursorh,"touchstart",function(e){self.ontouchstartCursor(e,true)});self.cursorh&&self.bind(self.cursorh,"touchmove",self.ontouchmoveCursor);self.cursorh&&self.bind(self.cursorh,"touchend",self.ontouchendCursor)}if(!opt.emulatetouch&&!cap.isandroid&&!cap.isios){self.bind(cap.hasmousecapture?self.win:_doc,"mouseup",self.onmouseup);self.bind(_doc,"mousemove",self.onmousemove);if(self.onclick)self.bind(_doc,"click",self.onclick);self.bind(self.cursor,"mousedown",self.onmousedown);self.bind(self.cursor,"mouseup",self.onmouseup);if(self.railh){self.bind(self.cursorh,"mousedown",function(e){self.onmousedown(e,true)});self.bind(self.cursorh,"mouseup",self.onmouseup)}if(!self.ispage&&opt.enablescrollonselection){self.bind(self.win[0],"mousedown",self.onselectionstart);self.bind(_doc,"mouseup",self.onselectionend);self.bind(self.cursor,"mouseup",self.onselectionend);if(self.cursorh)self.bind(self.cursorh,"mouseup",self.onselectionend);self.bind(_doc,"mousemove",self.onselectiondrag)}if(self.zoom){self.jqbind(self.zoom,"mouseenter",function(){if(self.canshowonmouseevent)self.showCursor();self.rail.active=true});self.jqbind(self.zoom,"mouseleave",function(){self.rail.active=false;if(!self.rail.drag)self.hideCursor()})}}else{self.bind(cap.hasmousecapture?self.win:_doc,"mouseup",self.ontouchend);if(self.onclick)self.bind(_doc,"click",self.onclick);if(opt.cursordragontouch){self.bind(self.cursor,"mousedown",self.onmousedown);self.bind(self.cursor,"mouseup",self.onmouseup);self.cursorh&&self.bind(self.cursorh,"mousedown",function(e){self.onmousedown(e,true)});self.cursorh&&self.bind(self.cursorh,"mouseup",self.onmouseup)}else{self.bind(self.rail,"mousedown",function(e){e.preventDefault()});self.railh&&self.bind(self.railh,"mousedown",function(e){e.preventDefault()})}}if(opt.enablemousewheel){if(!self.isiframe)self.mousewheel(cap.isie&&self.ispage?_doc:self.win,self.onmousewheel);self.mousewheel(self.rail,self.onmousewheel);if(self.railh)self.mousewheel(self.railh,self.onmousewheelhr)}if(!self.ispage&&!cap.cantouch&&!/HTML|^BODY/.test(self.win[0].nodeName)){if(!self.win.attr("tabindex"))self.win.attr({tabindex:++tabindexcounter});self.bind(self.win,"focus",function(e){domfocus=self.getTarget(e).id||self.getTarget(e)||false;self.hasfocus=true;if(self.canshowonmouseevent)self.noticeCursor()});self.bind(self.win,"blur",function(e){domfocus=false;self.hasfocus=false});self.bind(self.win,"mouseenter",function(e){mousefocus=self.getTarget(e).id||self.getTarget(e)||false;self.hasmousefocus=true;if(self.canshowonmouseevent)self.noticeCursor()});self.bind(self.win,"mouseleave",function(e){mousefocus=false;self.hasmousefocus=false;if(!self.rail.drag)self.hideCursor()})}self.onkeypress=function(e){if(self.railslocked&&self.page.maxh===0)return true;e=e||_win.event;var tg=self.getTarget(e);if(tg&&/INPUT|TEXTAREA|SELECT|OPTION/.test(tg.nodeName)){var tp=tg.getAttribute("type")||tg.type||false;if(!tp||!/submit|button|cancel/i.tp)return true}if($(tg).attr("contenteditable"))return true;if(self.hasfocus||self.hasmousefocus&&!domfocus||self.ispage&&!domfocus&&!mousefocus){var key=e.keyCode;if(self.railslocked&&key!=27)return self.cancelEvent(e);var ctrl=e.ctrlKey||false;var shift=e.shiftKey||false;var ret=false;switch(key){case 38:case 63233:self.doScrollBy(24*3);ret=true;break;case 40:case 63235:self.doScrollBy(-24*3);ret=true;break;case 37:case 63232:if(self.railh){ctrl?self.doScrollLeft(0):self.doScrollLeftBy(24*3);ret=true}break;case 39:case 63234:if(self.railh){ctrl?self.doScrollLeft(self.page.maxw):self.doScrollLeftBy(-24*3);ret=true}break;case 33:case 63276:self.doScrollBy(self.view.h);ret=true;break;case 34:case 63277:self.doScrollBy(-self.view.h);ret=true;break;case 36:case 63273:self.railh&&ctrl?self.doScrollPos(0,0):self.doScrollTo(0);ret=true;break;case 35:case 63275:self.railh&&ctrl?self.doScrollPos(self.page.maxw,self.page.maxh):self.doScrollTo(self.page.maxh);ret=true;break;case 32:if(opt.spacebarenabled){shift?self.doScrollBy(self.view.h):self.doScrollBy(-self.view.h);ret=true}break;case 27:if(self.zoomactive){self.doZoom();ret=true}break}if(ret)return self.cancelEvent(e)}};if(opt.enablekeyboard)self.bind(_doc,cap.isopera&&!cap.isopera12?"keypress":"keydown",self.onkeypress);self.bind(_doc,"keydown",function(e){var ctrl=e.ctrlKey||false;if(ctrl)self.wheelprevented=true});self.bind(_doc,"keyup",function(e){var ctrl=e.ctrlKey||false;if(!ctrl)self.wheelprevented=false});self.bind(_win,"blur",function(e){self.wheelprevented=false});self.bind(_win,"resize",self.onscreenresize);self.bind(_win,"orientationchange",self.onscreenresize);self.bind(_win,"load",self.lazyResize);if(cap.ischrome&&!self.ispage&&!self.haswrapper){var tmp=self.win.attr("style");var ww=parseFloat(self.win.css("width"))+1;self.win.css("width",ww);self.synched("chromefix",function(){self.win.attr("style",tmp)})}self.onAttributeChange=function(e){self.lazyResize(self.isieold?250:30)};if(opt.enableobserver){if(!self.isie11&&ClsMutationObserver!==false){self.observerbody=new ClsMutationObserver(function(mutations){mutations.forEach(function(mut){if(mut.type=="attributes")return $body.hasClass("modal-open")&&$body.hasClass("modal-dialog")&&!$.contains($(".modal-dialog")[0],self.doc[0])?self.hide():self.show()});if(self.me.clientWidth!=self.page.width||self.me.clientHeight!=self.page.height)return self.lazyResize(30)});self.observerbody.observe(_doc.body,{childList:true,subtree:true,characterData:false,attributes:true,attributeFilter:["class"]})}if(!self.ispage&&!self.haswrapper){var _dom=self.win[0];if(ClsMutationObserver!==false){self.observer=new ClsMutationObserver(function(mutations){mutations.forEach(self.onAttributeChange)});self.observer.observe(_dom,{childList:true,characterData:false,attributes:true,subtree:false});self.observerremover=new ClsMutationObserver(function(mutations){mutations.forEach(function(mo){if(mo.removedNodes.length>0)for(var dd in mo.removedNodes)if(!!self&&mo.removedNodes[dd]===_dom)return self.remove()})});self.observerremover.observe(_dom.parentNode,{childList:true,characterData:false,attributes:false,subtree:false})}else{self.bind(_dom,cap.isie&&!cap.isie9?"propertychange":"DOMAttrModified",self.onAttributeChange);if(cap.isie9)_dom.attachEvent("onpropertychange",self.onAttributeChange);self.bind(_dom,"DOMNodeRemoved",function(e){if(e.target===_dom)self.remove()})}}}if(!self.ispage&&opt.boxzoom)self.bind(_win,"resize",self.resizeZoom);if(self.istextarea){self.bind(self.win,"keydown",self.lazyResize);self.bind(self.win,"mouseup",self.lazyResize)}self.lazyResize(30)}if(this.doc[0].nodeName=="IFRAME"){var oniframeload=function(){self.iframexd=false;var doc;try{doc="contentDocument"in this?this.contentDocument:this.contentWindow._doc;var a=doc.domain}catch(e){self.iframexd=true;doc=false}if(self.iframexd){if("console"in _win)console.log("NiceScroll error: policy restriced iframe");return true}self.forcescreen=true;if(self.isiframe){self.iframe={doc:$(doc),html:self.doc.contents().find("html")[0],body:self.doc.contents().find("body")[0]};self.getContentSize=function(){return{w:Math.max(self.iframe.html.scrollWidth,self.iframe.body.scrollWidth),h:Math.max(self.iframe.html.scrollHeight,self.iframe.body.scrollHeight)}};self.docscroll=$(self.iframe.body)}if(!cap.isios&&opt.iframeautoresize&&!self.isiframe){self.win.scrollTop(0);self.doc.height("");var hh=Math.max(doc.getElementsByTagName("html")[0].scrollHeight,doc.body.scrollHeight);self.doc.height(hh)}self.lazyResize(30);self.css($(self.iframe.body),_scrollyhidden);if(cap.isios&&self.haswrapper)self.css($(doc.body),{"-webkit-transform":"translate3d(0,0,0)"});if("contentWindow"in this)self.bind(this.contentWindow,"scroll",self.onscroll);else self.bind(doc,"scroll",self.onscroll);if(opt.enablemousewheel)self.mousewheel(doc,self.onmousewheel);if(opt.enablekeyboard)self.bind(doc,cap.isopera?"keypress":"keydown",self.onkeypress);if(cap.cantouch){self.bind(doc,"touchstart",self.ontouchstart);self.bind(doc,"touchmove",self.ontouchmove)}else if(opt.emulatetouch){self.bind(doc,"mousedown",self.ontouchstart);self.bind(doc,"mousemove",function(e){return self.ontouchmove(e,true)});if(opt.grabcursorenabled&&cap.cursorgrabvalue)self.css($(doc.body),{cursor:cap.cursorgrabvalue})}self.bind(doc,"mouseup",self.ontouchend);if(self.zoom){if(opt.dblclickzoom)self.bind(doc,"dblclick",self.doZoom);if(self.ongesturezoom)self.bind(doc,"gestureend",self.ongesturezoom)}};if(this.doc[0].readyState&&this.doc[0].readyState==="complete")setTimeout(function(){oniframeload.call(self.doc[0],false)},500);self.bind(this.doc,"load",oniframeload)}};this.showCursor=function(py,px){if(self.cursortimeout){clearTimeout(self.cursortimeout);self.cursortimeout=0}if(!self.rail)return;if(self.autohidedom){self.autohidedom.stop().css({opacity:opt.cursoropacitymax});self.cursoractive=true}if(!self.rail.drag||self.rail.drag.pt!=1){if(py!==undefined&&py!==false)self.scroll.y=py/self.scrollratio.y|0;if(px!==undefined)self.scroll.x=px/self.scrollratio.x|0}self.cursor.css({height:self.cursorheight,top:self.scroll.y});if(self.cursorh){var lx=self.hasreversehr?self.scrollvaluemaxw-self.scroll.x:self.scroll.x;self.cursorh.css({width:self.cursorwidth,left:!self.rail.align&&self.rail.visibility?lx+self.rail.width:lx});self.cursoractive=true}if(self.zoom)self.zoom.stop().css({opacity:opt.cursoropacitymax})};this.hideCursor=function(tm){if(self.cursortimeout)return;if(!self.rail)return;if(!self.autohidedom)return;if(self.hasmousefocus&&opt.autohidemode==="leave")return;self.cursortimeout=setTimeout(function(){if(!self.rail.active||!self.showonmouseevent){self.autohidedom.stop().animate({opacity:opt.cursoropacitymin});if(self.zoom)self.zoom.stop().animate({opacity:opt.cursoropacitymin});self.cursoractive=false}self.cursortimeout=0},tm||opt.hidecursordelay)};this.noticeCursor=function(tm,py,px){self.showCursor(py,px);if(!self.rail.active)self.hideCursor(tm)};this.getContentSize=self.ispage?function(){return{w:Math.max(_doc.body.scrollWidth,_doc.documentElement.scrollWidth),h:Math.max(_doc.body.scrollHeight,_doc.documentElement.scrollHeight)}}:self.haswrapper?function(){return{w:self.doc[0].offsetWidth,h:self.doc[0].offsetHeight}}:function(){return{w:self.docscroll[0].scrollWidth,h:self.docscroll[0].scrollHeight}};this.onResize=function(e,page){if(!self||!self.win)return false;var premaxh=self.page.maxh,premaxw=self.page.maxw,previewh=self.view.h,previeww=self.view.w;self.view={w:self.ispage?self.win.width():self.win[0].clientWidth,h:self.ispage?self.win.height():self.win[0].clientHeight};self.page=page?page:self.getContentSize();self.page.maxh=Math.max(0,self.page.h-self.view.h);self.page.maxw=Math.max(0,self.page.w-self.view.w);if(self.page.maxh==premaxh&&self.page.maxw==premaxw&&self.view.w==previeww&&self.view.h==previewh)if(!self.ispage){var pos=self.win.offset();if(self.lastposition){var lst=self.lastposition;if(lst.top==pos.top&&lst.left==pos.left)return self}self.lastposition=pos}else return self;if(self.page.maxh===0){self.hideRail();self.scrollvaluemax=0;self.scroll.y=0;self.scrollratio.y=0;self.cursorheight=0;self.setScrollTop(0);if(self.rail)self.rail.scrollable=false}else{self.page.maxh-=opt.railpadding.top+opt.railpadding.bottom;self.rail.scrollable=true}if(self.page.maxw===0){self.hideRailHr();self.scrollvaluemaxw=0;self.scroll.x=0;self.scrollratio.x=0;self.cursorwidth=0;self.setScrollLeft(0);if(self.railh)self.railh.scrollable=false}else{self.page.maxw-=opt.railpadding.left+opt.railpadding.right;if(self.railh)self.railh.scrollable=opt.horizrailenabled}self.railslocked=self.locked||self.page.maxh===0&&self.page.maxw===0;if(self.railslocked){if(!self.ispage)self.updateScrollBar(self.view);return false}if(!self.hidden){if(!self.rail.visibility)self.showRail();if(self.railh&&!self.railh.visibility)self.showRailHr()}if(self.istextarea&&self.win.css("resize")&&self.win.css("resize")!="none")self.view.h-=20;self.cursorheight=Math.min(self.view.h,Math.round(self.view.h*(self.view.h/self.page.h)));self.cursorheight=opt.cursorfixedheight?opt.cursorfixedheight:Math.max(opt.cursorminheight,self.cursorheight);self.cursorwidth=Math.min(self.view.w,Math.round(self.view.w*(self.view.w/self.page.w)));self.cursorwidth=opt.cursorfixedheight?opt.cursorfixedheight:Math.max(opt.cursorminheight,self.cursorwidth);self.scrollvaluemax=self.view.h-self.cursorheight-(opt.railpadding.top+opt.railpadding.bottom);if(!self.hasborderbox)self.scrollvaluemax-=self.cursor[0].offsetHeight-self.cursor[0].clientHeight;if(self.railh){self.railh.width=self.page.maxh>0?self.view.w-self.rail.width:self.view.w;self.scrollvaluemaxw=self.railh.width-self.cursorwidth-(opt.railpadding.left+opt.railpadding.right)}if(!self.ispage)self.updateScrollBar(self.view);self.scrollratio={x:self.page.maxw/self.scrollvaluemaxw,y:self.page.maxh/self.scrollvaluemax};var sy=self.getScrollTop();if(sy>self.page.maxh)self.doScrollTop(self.page.maxh);else{self.scroll.y=self.getScrollTop()/self.scrollratio.y|0;self.scroll.x=self.getScrollLeft()/self.scrollratio.x|0;if(self.cursoractive)self.noticeCursor()}if(self.scroll.y&&self.getScrollTop()===0)self.doScrollTo(self.scroll.y*self.scrollratio.y|0);return self};this.resize=self.onResize;var hlazyresize=0;this.onscreenresize=function(e){clearTimeout(hlazyresize);var hiderails=!self.ispage&&!self.haswrapper;if(hiderails)self.hideRails();hlazyresize=setTimeout(function(){if(self){if(hiderails)self.showRails();self.resize()}hlazyresize=0},120)};this.lazyResize=function(tm){clearTimeout(hlazyresize);tm=isNaN(tm)?240:tm;hlazyresize=setTimeout(function(){self&&self.resize();hlazyresize=0},tm);return self};function _modernWheelEvent(dom,name,fn,bubble){self._bind(dom,name,function(e){e=e||_win.event;var event={original:e,target:e.target||e.srcElement,type:"wheel",deltaMode:e.type=="MozMousePixelScroll"?0:1,deltaX:0,deltaZ:0,preventDefault:function(){e.preventDefault?e.preventDefault():e.returnValue=false;return false},stopImmediatePropagation:function(){e.stopImmediatePropagation?e.stopImmediatePropagation():e.cancelBubble=true}};if(name=="mousewheel"){e.wheelDeltaX&&(event.deltaX=-1/40*e.wheelDeltaX);e.wheelDeltaY&&(event.deltaY=-1/40*e.wheelDeltaY);!event.deltaY&&!event.deltaX&&(event.deltaY=-1/40*e.wheelDelta)}else event.deltaY=e.detail;return fn.call(dom,event)},bubble)}this.jqbind=function(dom,name,fn){self.events.push({e:dom,n:name,f:fn,q:true});$(dom).on(name,fn)};this.mousewheel=function(dom,fn,bubble){var el="jquery"in dom?dom[0]:dom;if("onwheel"in _doc.createElement("div"))self._bind(el,"wheel",fn,bubble||false);else{var wname=_doc.onmousewheel!==undefined?"mousewheel":"DOMMouseScroll";_modernWheelEvent(el,wname,fn,bubble||false);if(wname=="DOMMouseScroll")_modernWheelEvent(el,"MozMousePixelScroll",fn,bubble||false)}};var passiveSupported=false;if(cap.haseventlistener){try{var options=Object.defineProperty({},"passive",{get:function(){passiveSupported=!0}});_win.addEventListener("test",null,options)}catch(err){}this.stopPropagation=function(e){if(!e)return false;e=e.original?e.original:e;e.stopPropagation();return false};this.cancelEvent=function(e){if(e.cancelable)e.preventDefault();e.stopImmediatePropagation();if(e.preventManipulation)e.preventManipulation();return false}}else{Event.prototype.preventDefault=function(){this.returnValue=false};Event.prototype.stopPropagation=function(){this.cancelBubble=true};_win.constructor.prototype.addEventListener=_doc.constructor.prototype.addEventListener=Element.prototype.addEventListener=function(type,listener,useCapture){this.attachEvent("on"+type,listener)};_win.constructor.prototype.removeEventListener=_doc.constructor.prototype.removeEventListener=Element.prototype.removeEventListener=function(type,listener,useCapture){this.detachEvent("on"+type,listener)};this.cancelEvent=function(e){e=e||_win.event;if(e){e.cancelBubble=true;e.cancel=true;e.returnValue=false}return false};this.stopPropagation=function(e){e=e||_win.event;if(e)e.cancelBubble=true;return false}}this.delegate=function(dom,name,fn,bubble,active){var de=delegatevents[name]||false;if(!de){de={a:[],l:[],f:function(e){var lst=de.l,l=lst.length-1;var r=false;for(var a=l;a>=0;a--){r=lst[a].call(e.target,e);if(r===false)return false}return r}};self.bind(dom,name,de.f,bubble,active);delegatevents[name]=de}if(self.ispage){de.a=[self.id].concat(de.a);de.l=[fn].concat(de.l)}else{de.a.push(self.id);de.l.push(fn)}};this.undelegate=function(dom,name,fn,bubble,active){var de=delegatevents[name]||false;if(de&&de.l)for(var a=0,l=de.l.length;a<l;a++)if(de.a[a]===self.id){de.a.splice(a);de.l.splice(a);if(de.a.length===0){self._unbind(dom,name,de.l.f);delegatevents[name]=null}}};this.bind=function(dom,name,fn,bubble,active){var el="jquery"in dom?dom[0]:dom;self._bind(el,name,fn,bubble||false,active||false)};this._bind=function(el,name,fn,bubble,active){self.events.push({e:el,n:name,f:fn,b:bubble,q:false});passiveSupported&&active?el.addEventListener(name,fn,{passive:false,capture:bubble}):el.addEventListener(name,fn,bubble||false)};this._unbind=function(el,name,fn,bub){if(delegatevents[name])self.undelegate(el,name,fn,bub);else el.removeEventListener(name,fn,bub)};this.unbindAll=function(){for(var a=0;a<self.events.length;a++){var r=self.events[a];r.q?r.e.unbind(r.n,r.f):self._unbind(r.e,r.n,r.f,r.b)}};this.showRails=function(){return self.showRail().showRailHr()};this.showRail=function(){if(self.page.maxh!==0&&(self.ispage||self.win.css("display")!="none")){self.rail.visibility=true;self.rail.css("display","block")}return self};this.showRailHr=function(){if(self.railh)if(self.page.maxw!==0&&(self.ispage||self.win.css("display")!="none")){self.railh.visibility=true;self.railh.css("display","block")}return self};this.hideRails=function(){return self.hideRail().hideRailHr()};this.hideRail=function(){self.rail.visibility=false;self.rail.css("display","none");return self};this.hideRailHr=function(){if(self.railh){self.railh.visibility=false;self.railh.css("display","none")}return self};this.show=function(){self.hidden=false;self.railslocked=false;return self.showRails()};this.hide=function(){self.hidden=true;self.railslocked=true;return self.hideRails()};this.toggle=function(){return self.hidden?self.show():self.hide()};this.remove=function(){self.stop();if(self.cursortimeout)clearTimeout(self.cursortimeout);for(var n in self.delaylist)if(self.delaylist[n])clearAnimationFrame(self.delaylist[n].h);self.doZoomOut();self.unbindAll();if(cap.isie9)self.win[0].detachEvent("onpropertychange",self.onAttributeChange);if(self.observer!==false)self.observer.disconnect();if(self.observerremover!==false)self.observerremover.disconnect();if(self.observerbody!==false)self.observerbody.disconnect();self.events=null;if(self.cursor)self.cursor.remove();if(self.cursorh)self.cursorh.remove();if(self.rail)self.rail.remove();if(self.railh)self.railh.remove();if(self.zoom)self.zoom.remove();for(var a=0;a<self.saved.css.length;a++){var d=self.saved.css[a];d[0].css(d[1],d[2]===undefined?"":d[2])}self.saved=false;self.me.data("__nicescroll","");var lst=$.nicescroll;lst.each(function(i){if(!this)return;if(this.id===self.id){delete lst[i];for(var b=++i;b<lst.length;b++,i++)lst[i]=lst[b];lst.length--;if(lst.length)delete lst[lst.length]}});for(var i in self){self[i]=null;delete self[i]}self=null};this.scrollstart=function(fn){this.onscrollstart=fn;return self};this.scrollend=function(fn){this.onscrollend=fn;return self};this.scrollcancel=function(fn){this.onscrollcancel=fn;return self};this.zoomin=function(fn){this.onzoomin=fn;return self};this.zoomout=function(fn){this.onzoomout=fn;return self};this.isScrollable=function(e){var dom=e.target?e.target:e;if(dom.nodeName=="OPTION")return true;while(dom&&dom.nodeType==1&&dom!==this.me[0]&&!/^BODY|HTML/.test(dom.nodeName)){var dd=$(dom);var ov=dd.css("overflowY")||dd.css("overflowX")||dd.css("overflow")||"";if(/scroll|auto/.test(ov))return dom.clientHeight!=dom.scrollHeight;dom=dom.parentNode?dom.parentNode:false}return false};this.getViewport=function(me){var dom=me&&me.parentNode?me.parentNode:false;while(dom&&dom.nodeType==1&&!/^BODY|HTML/.test(dom.nodeName)){var dd=$(dom);if(/fixed|absolute/.test(dd.css("position")))return dd;var ov=dd.css("overflowY")||dd.css("overflowX")||dd.css("overflow")||"";if(/scroll|auto/.test(ov)&&dom.clientHeight!=dom.scrollHeight)return dd;if(dd.getNiceScroll().length>0)return dd;dom=dom.parentNode?dom.parentNode:false}return false};this.triggerScrollStart=function(cx,cy,rx,ry,ms){if(self.onscrollstart){var info={type:"scrollstart",current:{x:cx,y:cy},request:{x:rx,y:ry},end:{x:self.newscrollx,y:self.newscrolly},speed:ms};self.onscrollstart.call(self,info)}};this.triggerScrollEnd=function(){if(self.onscrollend){var px=self.getScrollLeft();var py=self.getScrollTop();var info={type:"scrollend",current:{x:px,y:py},end:{x:px,y:py}};self.onscrollend.call(self,info)}};var scrolldiry=0,scrolldirx=0,scrolltmr=0,scrollspd=1;function doScrollRelative(px,py,chkscroll,iswheel){if(!self.scrollrunning){self.newscrolly=self.getScrollTop();self.newscrollx=self.getScrollLeft();scrolltmr=now()}var gap=now()-scrolltmr;scrolltmr=now();if(gap>350)scrollspd=1;else scrollspd+=(2-scrollspd)/10;px=px*scrollspd|0;py=py*scrollspd|0;if(px){if(iswheel)if(px<0){if(self.getScrollLeft()>=self.page.maxw)return true}else if(self.getScrollLeft()<=0)return true;var dx=px>0?1:-1;if(scrolldirx!==dx){if(self.scrollmom)self.scrollmom.stop();self.newscrollx=self.getScrollLeft();scrolldirx=dx}self.lastdeltax-=px}if(py){var chk=function(){var top=self.getScrollTop();if(py<0){if(top>=self.page.maxh)return true}else if(top<=0)return true}();if(chk){if(opt.nativeparentscrolling&&chkscroll&&!self.ispage&&!self.zoomactive)return true;var ny=self.view.h>>1;if(self.newscrolly<-ny){self.newscrolly=-ny;py=-1}else if(self.newscrolly>self.page.maxh+ny){self.newscrolly=self.page.maxh+ny;py=1}else py=0}var dy=py>0?1:-1;if(scrolldiry!==dy){if(self.scrollmom)self.scrollmom.stop();self.newscrolly=self.getScrollTop();scrolldiry=dy}self.lastdeltay-=py}if(py||px)self.synched("relativexy",function(){var dty=self.lastdeltay+self.newscrolly;self.lastdeltay=0;var dtx=self.lastdeltax+self.newscrollx;self.lastdeltax=0;if(!self.rail.drag)self.doScrollPos(dtx,dty)})}var hasparentscrollingphase=false;function execScrollWheel(e,hr,chkscroll){var px,py;if(!chkscroll&&hasparentscrollingphase)return true;if(e.deltaMode===0){px=-(e.deltaX*(opt.mousescrollstep/(18*3)))|0;py=-(e.deltaY*(opt.mousescrollstep/(18*3)))|0}else if(e.deltaMode===1){px=-(e.deltaX*opt.mousescrollstep*50/80)|0;py=-(e.deltaY*opt.mousescrollstep*50/80)|0}if(hr&&opt.oneaxismousemode&&px===0&&py){px=py;py=0;if(chkscroll){var hrend=px<0?self.getScrollLeft()>=self.page.maxw:self.getScrollLeft()<=0;if(hrend){py=px;px=0}}}if(self.isrtlmode)px=-px;var chk=doScrollRelative(px,py,chkscroll,true);if(chk){if(chkscroll)hasparentscrollingphase=true}else{hasparentscrollingphase=false;e.stopImmediatePropagation();return e.preventDefault()}}this.onmousewheel=function(e){if(self.wheelprevented||self.locked)return false;if(self.railslocked){self.debounced("checkunlock",self.resize,250);return false}if(self.rail.drag)return self.cancelEvent(e);if(opt.oneaxismousemode==="auto"&&e.deltaX!==0)opt.oneaxismousemode=false;if(opt.oneaxismousemode&&e.deltaX===0)if(!self.rail.scrollable)if(self.railh&&self.railh.scrollable)return self.onmousewheelhr(e);else return true;var nw=now();var chk=false;if(opt.preservenativescrolling&&self.checkarea+600<nw){self.nativescrollingarea=self.isScrollable(e);chk=true}self.checkarea=nw;if(self.nativescrollingarea)return true;var ret=execScrollWheel(e,false,chk);if(ret)self.checkarea=0;return ret};this.onmousewheelhr=function(e){if(self.wheelprevented)return;if(self.railslocked||!self.railh.scrollable)return true;if(self.rail.drag)return self.cancelEvent(e);var nw=now();var chk=false;if(opt.preservenativescrolling&&self.checkarea+600<nw){self.nativescrollingarea=self.isScrollable(e);chk=true}self.checkarea=nw;if(self.nativescrollingarea)return true;if(self.railslocked)return self.cancelEvent(e);return execScrollWheel(e,true,chk)};this.stop=function(){self.cancelScroll();if(self.scrollmon)self.scrollmon.stop();self.cursorfreezed=false;self.scroll.y=Math.round(self.getScrollTop()*(1/self.scrollratio.y));self.noticeCursor();return self};this.getTransitionSpeed=function(dif){return 80+dif/72*opt.scrollspeed|0};if(!opt.smoothscroll){this.doScrollLeft=function(x,spd){var y=self.getScrollTop();self.doScrollPos(x,y,spd)};this.doScrollTop=function(y,spd){var x=self.getScrollLeft();self.doScrollPos(x,y,spd)};this.doScrollPos=function(x,y,spd){var nx=x>self.page.maxw?self.page.maxw:x;if(nx<0)nx=0;var ny=y>self.page.maxh?self.page.maxh:y;if(ny<0)ny=0;self.synched("scroll",function(){self.setScrollTop(ny);self.setScrollLeft(nx)})};this.cancelScroll=function(){}}else if(self.ishwscroll&&cap.hastransition&&opt.usetransition&&!!opt.smoothscroll){var lasttransitionstyle="";this.resetTransition=function(){lasttransitionstyle="";self.doc.css(cap.prefixstyle+"transition-duration","0ms")};this.prepareTransition=function(dif,istime){var ex=istime?dif:self.getTransitionSpeed(dif);var trans=ex+"ms";if(lasttransitionstyle!==trans){lasttransitionstyle=trans;self.doc.css(cap.prefixstyle+"transition-duration",trans)}return ex};this.doScrollLeft=function(x,spd){var y=self.scrollrunning?self.newscrolly:self.getScrollTop();self.doScrollPos(x,y,spd)};this.doScrollTop=function(y,spd){var x=self.scrollrunning?self.newscrollx:self.getScrollLeft();self.doScrollPos(x,y,spd)};this.cursorupdate={running:false,start:function(){var m=this;if(m.running)return;m.running=true;var loop=function(){if(m.running)setAnimationFrame(loop);self.showCursor(self.getScrollTop(),self.getScrollLeft());self.notifyScrollEvent(self.win[0])};setAnimationFrame(loop)},stop:function(){this.running=false}};this.doScrollPos=function(x,y,spd){var py=self.getScrollTop();var px=self.getScrollLeft();if((self.newscrolly-py)*(y-py)<0||(self.newscrollx-px)*(x-px)<0)self.cancelScroll();if(!opt.bouncescroll){if(y<0)y=0;else if(y>self.page.maxh)y=self.page.maxh;if(x<0)x=0;else if(x>self.page.maxw)x=self.page.maxw}else{if(y<0)y=y/2|0;else if(y>self.page.maxh)y=self.page.maxh+(y-self.page.maxh)/2|0;if(x<0)x=x/2|0;else if(x>self.page.maxw)x=self.page.maxw+(x-self.page.maxw)/2|0}if(self.scrollrunning&&x==self.newscrollx&&y==self.newscrolly)return false;self.newscrolly=y;self.newscrollx=x;var top=self.getScrollTop();var lft=self.getScrollLeft();var dst={};dst.x=x-lft;dst.y=y-top;var dd=Math.sqrt(dst.x*dst.x+dst.y*dst.y)|0;var ms=self.prepareTransition(dd);if(!self.scrollrunning){self.scrollrunning=true;self.triggerScrollStart(lft,top,x,y,ms);self.cursorupdate.start()}self.scrollendtrapped=true;if(!cap.transitionend){if(self.scrollendtrapped)clearTimeout(self.scrollendtrapped);self.scrollendtrapped=setTimeout(self.onScrollTransitionEnd,ms)}self.setScrollTop(self.newscrolly);self.setScrollLeft(self.newscrollx)};this.cancelScroll=function(){if(!self.scrollendtrapped)return true;var py=self.getScrollTop();var px=self.getScrollLeft();self.scrollrunning=false;if(!cap.transitionend)clearTimeout(cap.transitionend);self.scrollendtrapped=false;self.resetTransition();self.setScrollTop(py);if(self.railh)self.setScrollLeft(px);if(self.timerscroll&&self.timerscroll.tm)clearInterval(self.timerscroll.tm);self.timerscroll=false;self.cursorfreezed=false;self.cursorupdate.stop();self.showCursor(py,px);return self};this.onScrollTransitionEnd=function(){if(!self.scrollendtrapped)return;var py=self.getScrollTop();var px=self.getScrollLeft();if(py<0)py=0;else if(py>self.page.maxh)py=self.page.maxh;if(px<0)px=0;else if(px>self.page.maxw)px=self.page.maxw;if(py!=self.newscrolly||px!=self.newscrollx)return self.doScrollPos(px,py,opt.snapbackspeed);if(self.scrollrunning)self.triggerScrollEnd();self.scrollrunning=false;self.scrollendtrapped=false;self.resetTransition();self.timerscroll=false;self.setScrollTop(py);if(self.railh)self.setScrollLeft(px);self.cursorupdate.stop();self.noticeCursor(false,py,px);self.cursorfreezed=false}}else{this.doScrollLeft=function(x,spd){var y=self.scrollrunning?self.newscrolly:self.getScrollTop();self.doScrollPos(x,y,spd)};this.doScrollTop=function(y,spd){var x=self.scrollrunning?self.newscrollx:self.getScrollLeft();self.doScrollPos(x,y,spd)};this.doScrollPos=function(x,y,spd){var py=self.getScrollTop();var px=self.getScrollLeft();if((self.newscrolly-py)*(y-py)<0||(self.newscrollx-px)*(x-px)<0)self.cancelScroll();var clipped=false;if(!self.bouncescroll||!self.rail.visibility)if(y<0){y=0;clipped=true}else if(y>self.page.maxh){y=self.page.maxh;clipped=true}if(!self.bouncescroll||!self.railh.visibility)if(x<0){x=0;clipped=true}else if(x>self.page.maxw){x=self.page.maxw;clipped=true}if(self.scrollrunning&&self.newscrolly===y&&self.newscrollx===x)return true;self.newscrolly=y;self.newscrollx=x;self.dst={};self.dst.x=x-px;self.dst.y=y-py;self.dst.px=px;self.dst.py=py;var dd=Math.sqrt(self.dst.x*self.dst.x+self.dst.y*self.dst.y)|0;var ms=self.getTransitionSpeed(dd);self.bzscroll={};var p3=clipped?1:.58;self.bzscroll.x=new BezierClass(px,self.newscrollx,ms,0,0,p3,1);self.bzscroll.y=new BezierClass(py,self.newscrolly,ms,0,0,p3,1);var loopid=now();var loop=function(){if(!self.scrollrunning)return;var x=self.bzscroll.y.getPos();self.setScrollLeft(self.bzscroll.x.getNow());self.setScrollTop(self.bzscroll.y.getNow());if(x<=1)self.timer=setAnimationFrame(loop);else{self.scrollrunning=false;self.timer=0;self.triggerScrollEnd()}};if(!self.scrollrunning){self.triggerScrollStart(px,py,x,y,ms);self.scrollrunning=true;self.timer=setAnimationFrame(loop)}};this.cancelScroll=function(){if(self.timer)clearAnimationFrame(self.timer);self.timer=0;self.bzscroll=false;self.scrollrunning=false;return self}}this.doScrollBy=function(stp,relative){doScrollRelative(0,stp)};this.doScrollLeftBy=function(stp,relative){doScrollRelative(stp,0)};this.doScrollTo=function(pos,relative){var ny=relative?Math.round(pos*self.scrollratio.y):pos;if(ny<0)ny=0;else if(ny>self.page.maxh)ny=self.page.maxh;self.cursorfreezed=false;self.doScrollTop(pos)};this.checkContentSize=function(){var pg=self.getContentSize();if(pg.h!=self.page.h||pg.w!=self.page.w)self.resize(false,pg)};self.onscroll=function(e){if(self.rail.drag)return;if(!self.cursorfreezed)self.synched("scroll",function(){self.scroll.y=Math.round(self.getScrollTop()/self.scrollratio.y);if(self.railh)self.scroll.x=Math.round(self.getScrollLeft()/self.scrollratio.x);self.noticeCursor()})};self.bind(self.docscroll,"scroll",self.onscroll);this.doZoomIn=function(e){if(self.zoomactive)return;self.zoomactive=true;self.zoomrestore={style:{}};var lst=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"];var win=self.win[0].style;for(var a in lst){var pp=lst[a];self.zoomrestore.style[pp]=win[pp]!==undefined?win[pp]:""}self.zoomrestore.style.width=self.win.css("width");self.zoomrestore.style.height=self.win.css("height");self.zoomrestore.padding={w:self.win.outerWidth()-self.win.width(),h:self.win.outerHeight()-self.win.height()};if(cap.isios4){self.zoomrestore.scrollTop=$window.scrollTop();$window.scrollTop(0)}self.win.css({position:cap.isios4?"absolute":"fixed",top:0,left:0,zIndex:globalmaxzindex+100,margin:0});var bkg=self.win.css("backgroundColor");if(""===bkg||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(bkg))self.win.css("backgroundColor","#fff");self.rail.css({zIndex:globalmaxzindex+101});self.zoom.css({zIndex:globalmaxzindex+102});self.zoom.css("backgroundPosition","0 -18px");self.resizeZoom();if(self.onzoomin)self.onzoomin.call(self);return self.cancelEvent(e)};this.doZoomOut=function(e){if(!self.zoomactive)return;self.zoomactive=false;self.win.css("margin","");self.win.css(self.zoomrestore.style);if(cap.isios4)$window.scrollTop(self.zoomrestore.scrollTop);self.rail.css({"z-index":self.zindex});self.zoom.css({"z-index":self.zindex});self.zoomrestore=false;self.zoom.css("backgroundPosition","0 0");self.onResize();if(self.onzoomout)self.onzoomout.call(self);return self.cancelEvent(e)};this.doZoom=function(e){return self.zoomactive?self.doZoomOut(e):self.doZoomIn(e)};this.resizeZoom=function(){if(!self.zoomactive)return;var py=self.getScrollTop();self.win.css({width:$window.width()-self.zoomrestore.padding.w+"px",height:$window.height()-self.zoomrestore.padding.h+"px"});self.onResize();self.setScrollTop(Math.min(self.page.maxh,py))};this.init();$.nicescroll.push(this)},ScrollMomentumClass2D=function(nc){var self=this;this.nc=nc;this.lastx=0;this.lasty=0;this.speedx=0;this.speedy=0;this.lasttime=0;this.steptime=0;this.snapx=false;this.snapy=false;this.demulx=0;this.demuly=0;this.lastscrollx=-1;this.lastscrolly=-1;this.chkx=0;this.chky=0;this.timer=0;this.reset=function(px,py){self.stop();self.steptime=0;self.lasttime=now();self.speedx=0;self.speedy=0;self.lastx=px;self.lasty=py;self.lastscrollx=-1;self.lastscrolly=-1};this.update=function(px,py){var tm=now();self.steptime=tm-self.lasttime;self.lasttime=tm;var dy=py-self.lasty;var dx=px-self.lastx;var sy=self.nc.getScrollTop();var sx=self.nc.getScrollLeft();var newy=sy+dy;var newx=sx+dx;self.snapx=newx<0||newx>self.nc.page.maxw;self.snapy=newy<0||newy>self.nc.page.maxh;self.speedx=dx;self.speedy=dy;self.lastx=px;self.lasty=py};this.stop=function(){self.nc.unsynched("domomentum2d");if(self.timer)clearTimeout(self.timer);self.timer=0;self.lastscrollx=-1;self.lastscrolly=-1};this.doSnapy=function(nx,ny){var snap=false;if(ny<0){ny=0;snap=true}else if(ny>self.nc.page.maxh){ny=self.nc.page.maxh;snap=true}if(nx<0){nx=0;snap=true}else if(nx>self.nc.page.maxw){nx=self.nc.page.maxw;snap=true}snap?self.nc.doScrollPos(nx,ny,self.nc.opt.snapbackspeed):self.nc.triggerScrollEnd()};this.doMomentum=function(gp){var t=now();var l=gp?t+gp:self.lasttime;var sl=self.nc.getScrollLeft();var st=self.nc.getScrollTop();var pageh=self.nc.page.maxh;var pagew=self.nc.page.maxw;self.speedx=pagew>0?Math.min(60,self.speedx):0;self.speedy=pageh>0?Math.min(60,self.speedy):0;var chk=l&&t-l<=60;if(st<0||st>pageh||sl<0||sl>pagew)chk=false;var sy=self.speedy&&chk?self.speedy:false;var sx=self.speedx&&chk?self.speedx:false;if(sy||sx){var tm=Math.max(16,self.steptime);if(tm>50){var xm=tm/50;self.speedx*=xm;self.speedy*=xm;tm=50}self.demulxy=0;self.lastscrollx=self.nc.getScrollLeft();self.chkx=self.lastscrollx;self.lastscrolly=self.nc.getScrollTop();self.chky=self.lastscrolly;var nx=self.lastscrollx;var ny=self.lastscrolly;var onscroll=function(){var df=now()-t>600?.04:.02;if(self.speedx){nx=Math.floor(self.lastscrollx-self.speedx*(1-self.demulxy));self.lastscrollx=nx;if(nx<0||nx>pagew)df=.1}if(self.speedy){ny=Math.floor(self.lastscrolly-self.speedy*(1-self.demulxy));self.lastscrolly=ny;if(ny<0||ny>pageh)df=.1}self.demulxy=Math.min(1,self.demulxy+df);self.nc.synched("domomentum2d",function(){if(self.speedx){var scx=self.nc.getScrollLeft();self.chkx=nx;self.nc.setScrollLeft(nx)}if(self.speedy){var scy=self.nc.getScrollTop();self.chky=ny;self.nc.setScrollTop(ny)}if(!self.timer){self.nc.hideCursor();self.doSnapy(nx,ny)}});if(self.demulxy<1)self.timer=setTimeout(onscroll,tm);else{self.stop();self.nc.hideCursor();self.doSnapy(nx,ny)}};onscroll()}else self.doSnapy(self.nc.getScrollLeft(),self.nc.getScrollTop())}},_scrollTop=jQuery.fn.scrollTop,_scrollLeft=(jQuery.cssHooks.pageYOffset={get:function(elem,computed,extra){var nice=$.data(elem,"__nicescroll")||false;return nice&&nice.ishwscroll?nice.getScrollTop():_scrollTop.call(elem)},set:function(elem,value){var nice=$.data(elem,"__nicescroll")||false;nice&&nice.ishwscroll?nice.setScrollTop(parseInt(value)):_scrollTop.call(elem,value);return this}},jQuery.fn.scrollTop=function(value){if(value===undefined){var nice=this[0]?$.data(this[0],"__nicescroll")||false:false;return nice&&nice.ishwscroll?nice.getScrollTop():_scrollTop.call(this)}else return this.each(function(){var nice=$.data(this,"__nicescroll")||false;nice&&nice.ishwscroll?nice.setScrollTop(parseInt(value)):_scrollTop.call($(this),value)})},jQuery.fn.scrollLeft),NiceScrollArray=($.cssHooks.pageXOffset={get:function(elem,computed,extra){var nice=$.data(elem,"__nicescroll")||false;return nice&&nice.ishwscroll?nice.getScrollLeft():_scrollLeft.call(elem)},set:function(elem,value){var nice=$.data(elem,"__nicescroll")||false;nice&&nice.ishwscroll?nice.setScrollLeft(parseInt(value)):_scrollLeft.call(elem,value);return this}},jQuery.fn.scrollLeft=function(value){if(value===undefined){var nice=this[0]?$.data(this[0],"__nicescroll")||false:false;return nice&&nice.ishwscroll?nice.getScrollLeft():_scrollLeft.call(this)}else return this.each(function(){var nice=$.data(this,"__nicescroll")||false;nice&&nice.ishwscroll?nice.setScrollLeft(parseInt(value)):_scrollLeft.call($(this),value)})},function(doms){var self=this;this.length=0;this.name="nicescrollarray";this.each=function(fn){$.each(self,fn);return self};this.push=function(nice){self[self.length]=nice;self.length++};this.eq=function(idx){return self[idx]};if(doms)for(var a=0;a<doms.length;a++){var nice=$.data(doms[a],"__nicescroll")||false;if(nice){this[this.length]=nice;this.length++}}return this}),pseudos;function mplex(el,lst,fn){for(var a=0,l=lst.length;a<l;a++)fn(el,lst[a])}if(mplex(NiceScrollArray.prototype,["show","hide","toggle","onResize","resize","remove","stop","doScrollPos"],function(e,n){e[n]=function(){var args=arguments;return this.each(function(){this[n].apply(this,args)})}}),jQuery.fn.getNiceScroll=function(index){if(index===undefined)return new NiceScrollArray(this);else return this[index]&&$.data(this[index],"__nicescroll")||false},(jQuery.expr.pseudos||jQuery.expr[":"]).nicescroll=function(a){return $.data(a,"__nicescroll")!==undefined},$.fn.niceScroll=function(wrapper,_opt){if(_opt===undefined&&typeof wrapper=="object"&&!("jquery"in wrapper)){_opt=wrapper;wrapper=false}var ret=new NiceScrollArray;this.each(function(){var $this=$(this);var opt=$.extend({},_opt);if(wrapper||false){var wrp=$(wrapper);opt.doc=wrp.length>1?$(wrapper,$this):wrp;opt.win=$this}var docundef=!("doc"in opt);if(!docundef&&!("win"in opt))opt.win=$this;var nice=$this.data("__nicescroll")||false;if(!nice){opt.doc=opt.doc||$this;nice=new NiceScrollClass(opt,$this);$this.data("__nicescroll",nice)}ret.push(nice)});return ret.length===1?ret[0]:ret},_win.NiceScroll={getjQuery:function(){return jQuery}},!$.nicescroll){$.nicescroll=new NiceScrollArray;$.nicescroll.options=_globaloptions}})?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__webpack_require__):__WEBPACK_AMD_DEFINE_FACTORY__)&&(module.exports=exports)},function(module,exports,__webpack_require__){!function($){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(9)],void 0!==(__WEBPACK_AMD_DEFINE_ARRAY__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=function(jQuery){var S2=function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var S2=jQuery.fn.select2.amd;var S2;(function(){if(!S2||!S2.requirejs){if(!S2)S2={};else require=S2;var requirejs,require,define;(function(undef){var main,req,makeMap,handlers,defined={},waiting={},config={},defining={},hasOwn=Object.prototype.hasOwnProperty,aps=[].slice,jsSuffixRegExp=/\.js$/;function hasProp(obj,prop){return hasOwn.call(obj,prop)}function normalize(name,baseName){var nameParts,nameSegment,mapValue,foundMap,lastIndex,foundI,foundStarMap,starI,i,j,part,normalizedBaseParts,baseParts=baseName&&baseName.split("/"),map=config.map,starMap=map&&map["*"]||{};if(name){name=name.split("/");lastIndex=name.length-1;if(config.nodeIdCompat&&jsSuffixRegExp.test(name[lastIndex]))name[lastIndex]=name[lastIndex].replace(jsSuffixRegExp,"");if(name[0].charAt(0)==="."&&baseParts){normalizedBaseParts=baseParts.slice(0,baseParts.length-1);name=normalizedBaseParts.concat(name)}for(i=0;i<name.length;i++){part=name[i];if(part==="."){name.splice(i,1);i-=1}else if(part==="..")if(i===0||i===1&&name[2]===".."||name[i-1]==="..")continue;else if(i>0){name.splice(i-1,2);i-=2}}name=name.join("/")}if((baseParts||starMap)&&map){nameParts=name.split("/");for(i=nameParts.length;i>0;i-=1){nameSegment=nameParts.slice(0,i).join("/");if(baseParts)for(j=baseParts.length;j>0;j-=1){mapValue=map[baseParts.slice(0,j).join("/")];if(mapValue){mapValue=mapValue[nameSegment];if(mapValue){foundMap=mapValue;foundI=i;break}}}if(foundMap)break;if(!foundStarMap&&starMap&&starMap[nameSegment]){foundStarMap=starMap[nameSegment];starI=i}}if(!foundMap&&foundStarMap){foundMap=foundStarMap;foundI=starI}if(foundMap){nameParts.splice(0,foundI,foundMap);name=nameParts.join("/")}}return name}function makeRequire(relName,forceSync){return function(){var args=aps.call(arguments,0);if(typeof args[0]!=="string"&&args.length===1)args.push(null);return req.apply(undef,args.concat([relName,forceSync]))}}function makeNormalize(relName){return function(name){return normalize(name,relName)}}function makeLoad(depName){return function(value){defined[depName]=value}}function callDep(name){if(hasProp(waiting,name)){var args=waiting[name];delete waiting[name];defining[name]=true;main.apply(undef,args)}if(!hasProp(defined,name)&&!hasProp(defining,name))throw new Error("No "+name);return defined[name]}function splitPrefix(name){var prefix,index=name?name.indexOf("!"):-1;if(index>-1){prefix=name.substring(0,index);name=name.substring(index+1,name.length)}return[prefix,name]}function makeRelParts(relName){return relName?splitPrefix(relName):[]}makeMap=function(name,relParts){var plugin,parts=splitPrefix(name),prefix=parts[0],relResourceName=relParts[1];name=parts[1];if(prefix){prefix=normalize(prefix,relResourceName);plugin=callDep(prefix)}if(prefix)if(plugin&&plugin.normalize)name=plugin.normalize(name,makeNormalize(relResourceName));else name=normalize(name,relResourceName);else{name=normalize(name,relResourceName);parts=splitPrefix(name);prefix=parts[0];name=parts[1];if(prefix)plugin=callDep(prefix)}return{f:prefix?prefix+"!"+name:name,n:name,pr:prefix,p:plugin}};function makeConfig(name){return function(){return config&&config.config&&config.config[name]||{}}}handlers={require:function(name){return makeRequire(name)},exports:function(name){var e=defined[name];if(typeof e!=="undefined")return e;else return defined[name]={}},module:function(name){return{id:name,uri:"",exports:defined[name],config:makeConfig(name)}}};main=function(name,deps,callback,relName){var cjsModule,depName,ret,map,i,relParts,args=[],callbackType=typeof callback,usingExports;relName=relName||name;relParts=makeRelParts(relName);if(callbackType==="undefined"||callbackType==="function"){deps=!deps.length&&callback.length?["require","exports","module"]:deps;for(i=0;i<deps.length;i+=1){map=makeMap(deps[i],relParts);depName=map.f;if(depName==="require")args[i]=handlers.require(name);else if(depName==="exports"){args[i]=handlers.exports(name);usingExports=true}else if(depName==="module")cjsModule=args[i]=handlers.module(name);else if(hasProp(defined,depName)||hasProp(waiting,depName)||hasProp(defining,depName))args[i]=callDep(depName);else if(map.p){map.p.load(map.n,makeRequire(relName,true),makeLoad(depName),{});args[i]=defined[depName]}else throw new Error(name+" missing "+depName)}ret=callback?callback.apply(defined[name],args):undefined;if(name)if(cjsModule&&cjsModule.exports!==undef&&cjsModule.exports!==defined[name])defined[name]=cjsModule.exports;else if(ret!==undef||!usingExports)defined[name]=ret}else if(name)defined[name]=callback};requirejs=require=req=function(deps,callback,relName,forceSync,alt){if(typeof deps==="string"){if(handlers[deps])return handlers[deps](callback);return callDep(makeMap(deps,makeRelParts(callback)).f)}else if(!deps.splice){config=deps;if(config.deps)req(config.deps,config.callback);if(!callback)return;if(callback.splice){deps=callback;callback=relName;relName=null}else deps=undef}callback=callback||function(){};if(typeof relName==="function"){relName=forceSync;forceSync=alt}if(forceSync)main(undef,deps,callback,relName);else setTimeout(function(){main(undef,deps,callback,relName)},4);return req};req.config=function(cfg){return req(cfg)};requirejs._defined=defined;define=function(name,deps,callback){if(typeof name!=="string")throw new Error("See almond README: incorrect module build, no module name");if(!deps.splice){callback=deps;deps=[]}if(!hasProp(defined,name)&&!hasProp(waiting,name))waiting[name]=[name,deps,callback]};define.amd={jQuery:true}})();S2.requirejs=requirejs;S2.require=require;S2.define=define}})();S2.define("almond",function(){});S2.define("jquery",[],function(){var _$=jQuery||$;if(_$==null&&console&&console.error)console.error("Select2: An instance of jQuery or a jQuery-compatible library was not "+"found. Make sure that you are including jQuery before Select2 on your "+"web page.");return _$});S2.define("select2/utils",["jquery"],function($){var Utils={};Utils.Extend=function(ChildClass,SuperClass){var __hasProp={}.hasOwnProperty;function BaseConstructor(){this.constructor=ChildClass}for(var key in SuperClass)if(__hasProp.call(SuperClass,key))ChildClass[key]=SuperClass[key];BaseConstructor.prototype=SuperClass.prototype;ChildClass.prototype=new BaseConstructor;ChildClass.__super__=SuperClass.prototype;return ChildClass};function getMethods(theClass){var proto=theClass.prototype;var methods=[];for(var methodName in proto){var m=proto[methodName];if(typeof m!=="function")continue;if(methodName==="constructor")continue;methods.push(methodName)}return methods}Utils.Decorate=function(SuperClass,DecoratorClass){var decoratedMethods=getMethods(DecoratorClass);var superMethods=getMethods(SuperClass);function DecoratedClass(){var unshift=Array.prototype.unshift;var argCount=DecoratorClass.prototype.constructor.length;var calledConstructor=SuperClass.prototype.constructor;if(argCount>0){unshift.call(arguments,SuperClass.prototype.constructor);calledConstructor=DecoratorClass.prototype.constructor}calledConstructor.apply(this,arguments)}DecoratorClass.displayName=SuperClass.displayName;function ctr(){this.constructor=DecoratedClass}DecoratedClass.prototype=new ctr;for(var m=0;m<superMethods.length;m++){var superMethod=superMethods[m];DecoratedClass.prototype[superMethod]=SuperClass.prototype[superMethod]}var calledMethod=function(methodName){var originalMethod=function(){};if(methodName in DecoratedClass.prototype)originalMethod=DecoratedClass.prototype[methodName];var decoratedMethod=DecoratorClass.prototype[methodName];return function(){var unshift=Array.prototype.unshift;unshift.call(arguments,originalMethod);return decoratedMethod.apply(this,arguments)}};for(var d=0;d<decoratedMethods.length;d++){var decoratedMethod=decoratedMethods[d];DecoratedClass.prototype[decoratedMethod]=calledMethod(decoratedMethod)}return DecoratedClass};var Observable=function(){this.listeners={}};Observable.prototype.on=function(event,callback){this.listeners=this.listeners||{};if(event in this.listeners)this.listeners[event].push(callback);else this.listeners[event]=[callback]};Observable.prototype.trigger=function(event){var slice=Array.prototype.slice;var params=slice.call(arguments,1);this.listeners=this.listeners||{};if(params==null)params=[];if(params.length===0)params.push({});params[0]._type=event;if(event in this.listeners)this.invoke(this.listeners[event],slice.call(arguments,1));if("*"in this.listeners)this.invoke(this.listeners["*"],arguments)};Observable.prototype.invoke=function(listeners,params){for(var i=0,len=listeners.length;i<len;i++)listeners[i].apply(this,params)};Utils.Observable=Observable;Utils.generateChars=function(length){var chars="";for(var i=0;i<length;i++){var randomChar=Math.floor(Math.random()*36);chars+=randomChar.toString(36)}return chars};Utils.bind=function(func,context){return function(){func.apply(context,arguments)}};Utils._convertData=function(data){for(var originalKey in data){var keys=originalKey.split("-");var dataLevel=data;if(keys.length===1)continue;for(var k=0;k<keys.length;k++){var key=keys[k];key=key.substring(0,1).toLowerCase()+key.substring(1);if(!(key in dataLevel))dataLevel[key]={};if(k==keys.length-1)dataLevel[key]=data[originalKey];dataLevel=dataLevel[key]}delete data[originalKey]}return data};Utils.hasScroll=function(index,el){var $el=$(el);var overflowX=el.style.overflowX;var overflowY=el.style.overflowY;if(overflowX===overflowY&&(overflowY==="hidden"||overflowY==="visible"))return false;if(overflowX==="scroll"||overflowY==="scroll")return true;return $el.innerHeight()<el.scrollHeight||$el.innerWidth()<el.scrollWidth};Utils.escapeMarkup=function(markup){var replaceMap={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};if(typeof markup!=="string")return markup;return String(markup).replace(/[&<>"'\/\\]/g,function(match){return replaceMap[match]})};Utils.__cache={};var id=0;Utils.GetUniqueElementId=function(element){var select2Id=element.getAttribute("data-select2-id");if(select2Id!=null)return select2Id;if(element.id)select2Id="select2-data-"+element.id;else select2Id="select2-data-"+(++id).toString()+"-"+Utils.generateChars(4);element.setAttribute("data-select2-id",select2Id);return select2Id};Utils.StoreData=function(element,name,value){var id=Utils.GetUniqueElementId(element);if(!Utils.__cache[id])Utils.__cache[id]={};Utils.__cache[id][name]=value};Utils.GetData=function(element,name){var id=Utils.GetUniqueElementId(element);if(name){if(Utils.__cache[id]){if(Utils.__cache[id][name]!=null)return Utils.__cache[id][name];return $(element).data(name)}return $(element).data(name)}else return Utils.__cache[id]};Utils.RemoveData=function(element){var id=Utils.GetUniqueElementId(element);if(Utils.__cache[id]!=null)delete Utils.__cache[id];element.removeAttribute("data-select2-id")};Utils.copyNonInternalCssClasses=function(dest,src){var classes;var destinationClasses=dest.getAttribute("class").trim().split(/\s+/);destinationClasses=destinationClasses.filter(function(clazz){return clazz.indexOf("select2-")===0});var sourceClasses=src.getAttribute("class").trim().split(/\s+/);sourceClasses=sourceClasses.filter(function(clazz){return clazz.indexOf("select2-")!==0});var replacements=destinationClasses.concat(sourceClasses);dest.setAttribute("class",replacements.join(" "))};return Utils});S2.define("select2/results",["jquery","./utils"],function($,Utils){function Results($element,options,dataAdapter){this.$element=$element;this.data=dataAdapter;this.options=options;Results.__super__.constructor.call(this)}Utils.Extend(Results,Utils.Observable);Results.prototype.render=function(){var $results=$('<ul class="select2-results__options" role="listbox"></ul>');if(this.options.get("multiple"))$results.attr("aria-multiselectable","true");this.$results=$results;return $results};Results.prototype.clear=function(){this.$results.empty()};Results.prototype.displayMessage=function(params){var escapeMarkup=this.options.get("escapeMarkup");this.clear();this.hideLoading();var $message=$('<li role="alert" aria-live="assertive"'+' class="select2-results__option"></li>');var message=this.options.get("translations").get(params.message);$message.append(escapeMarkup(message(params.args)));$message[0].className+=" select2-results__message";this.$results.append($message)};Results.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()};Results.prototype.append=function(data){this.hideLoading();var $options=[];if(data.results==null||data.results.length===0){if(this.$results.children().length===0)this.trigger("results:message",{message:"noResults"});return}data.results=this.sort(data.results);for(var d=0;d<data.results.length;d++){var item=data.results[d];var $option=this.option(item);$options.push($option)}this.$results.append($options)};Results.prototype.position=function($results,$dropdown){var $resultsContainer=$dropdown.find(".select2-results");$resultsContainer.append($results)};Results.prototype.sort=function(data){var sorter=this.options.get("sorter");return sorter(data)};Results.prototype.highlightFirstItem=function(){var $options=this.$results.find(".select2-results__option--selectable");var $selected=$options.filter(".select2-results__option--selected");if($selected.length>0)$selected.first().trigger("mouseenter");else $options.first().trigger("mouseenter");this.ensureHighlightVisible()};Results.prototype.setClasses=function(){var self=this;this.data.current(function(selected){var selectedIds=selected.map(function(s){return s.id.toString()});var $options=self.$results.find(".select2-results__option--selectable");$options.each(function(){var $option=$(this);var item=Utils.GetData(this,"data");var id=""+item.id;if(item.element!=null&&item.element.selected||item.element==null&&selectedIds.indexOf(id)>-1){this.classList.add("select2-results__option--selected");$option.attr("aria-selected","true")}else{this.classList.remove("select2-results__option--selected");$option.attr("aria-selected","false")}})})};Results.prototype.showLoading=function(params){this.hideLoading();var loadingMore=this.options.get("translations").get("searching");var loading={disabled:true,loading:true,text:loadingMore(params)};var $loading=this.option(loading);$loading.className+=" loading-results";this.$results.prepend($loading)};Results.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()};Results.prototype.option=function(data){var option=document.createElement("li");option.classList.add("select2-results__option");option.classList.add("select2-results__option--selectable");var attrs={role:"option"};var matches=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;if(data.element!=null&&matches.call(data.element,":disabled")||data.element==null&&data.disabled){attrs["aria-disabled"]="true";option.classList.remove("select2-results__option--selectable");option.classList.add("select2-results__option--disabled")}if(data.id==null)option.classList.remove("select2-results__option--selectable");if(data._resultId!=null)option.id=data._resultId;if(data.title)option.title=data.title;if(data.children){attrs.role="group";attrs["aria-label"]=data.text;option.classList.remove("select2-results__option--selectable");option.classList.add("select2-results__option--group")}for(var attr in attrs){var val=attrs[attr];option.setAttribute(attr,val)}if(data.children){var $option=$(option);var label=document.createElement("strong");label.className="select2-results__group";this.template(data,label);var $children=[];for(var c=0;c<data.children.length;c++){var child=data.children[c];var $child=this.option(child);$children.push($child)}var $childrenContainer=$("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});$childrenContainer.append($children);$option.append(label);$option.append($childrenContainer)}else this.template(data,option);Utils.StoreData(option,"data",data);return option};Results.prototype.bind=function(container,$container){var self=this;var id=container.id+"-results";this.$results.attr("id",id);container.on("results:all",function(params){self.clear();self.append(params.data);if(container.isOpen()){self.setClasses();self.highlightFirstItem()}});container.on("results:append",function(params){self.append(params.data);if(container.isOpen())self.setClasses()});container.on("query",function(params){self.hideMessages();self.showLoading(params)});container.on("select",function(){if(!container.isOpen())return;self.setClasses();if(self.options.get("scrollAfterSelect"))self.highlightFirstItem()});container.on("unselect",function(){if(!container.isOpen())return;self.setClasses();if(self.options.get("scrollAfterSelect"))self.highlightFirstItem()});container.on("open",function(){self.$results.attr("aria-expanded","true");self.$results.attr("aria-hidden","false");self.setClasses();self.ensureHighlightVisible()});container.on("close",function(){self.$results.attr("aria-expanded","false");self.$results.attr("aria-hidden","true");self.$results.removeAttr("aria-activedescendant")});container.on("results:toggle",function(){var $highlighted=self.getHighlightedResults();if($highlighted.length===0)return;$highlighted.trigger("mouseup")});container.on("results:select",function(){var $highlighted=self.getHighlightedResults();if($highlighted.length===0)return;var data=Utils.GetData($highlighted[0],"data");if($highlighted.hasClass("select2-results__option--selected"))self.trigger("close",{});else self.trigger("select",{data:data})});container.on("results:previous",function(){var $highlighted=self.getHighlightedResults();var $options=self.$results.find(".select2-results__option--selectable");var currentIndex=$options.index($highlighted);if(currentIndex<=0)return;var nextIndex=currentIndex-1;if($highlighted.length===0)nextIndex=0;var $next=$options.eq(nextIndex);$next.trigger("mouseenter");var currentOffset=self.$results.offset().top;var nextTop=$next.offset().top;var nextOffset=self.$results.scrollTop()+(nextTop-currentOffset);if(nextIndex===0)self.$results.scrollTop(0);else if(nextTop-currentOffset<0)self.$results.scrollTop(nextOffset)});container.on("results:next",function(){var $highlighted=self.getHighlightedResults();var $options=self.$results.find(".select2-results__option--selectable");var currentIndex=$options.index($highlighted);var nextIndex=currentIndex+1;if(nextIndex>=$options.length)return;var $next=$options.eq(nextIndex);$next.trigger("mouseenter");var currentOffset=self.$results.offset().top+self.$results.outerHeight(false);var nextBottom=$next.offset().top+$next.outerHeight(false);var nextOffset=self.$results.scrollTop()+nextBottom-currentOffset;if(nextIndex===0)self.$results.scrollTop(0);else if(nextBottom>currentOffset)self.$results.scrollTop(nextOffset)});container.on("results:focus",function(params){params.element[0].classList.add("select2-results__option--highlighted");params.element[0].setAttribute("aria-selected","true")});container.on("results:message",function(params){self.displayMessage(params)});if($.fn.mousewheel)this.$results.on("mousewheel",function(e){var top=self.$results.scrollTop();var bottom=self.$results.get(0).scrollHeight-top+e.deltaY;var isAtTop=e.deltaY>0&&top-e.deltaY<=0;var isAtBottom=e.deltaY<0&&bottom<=self.$results.height();if(isAtTop){self.$results.scrollTop(0);e.preventDefault();e.stopPropagation()}else if(isAtBottom){self.$results.scrollTop(self.$results.get(0).scrollHeight-self.$results.height());e.preventDefault();e.stopPropagation()}});this.$results.on("mouseup",".select2-results__option--selectable",function(evt){var $this=$(this);var data=Utils.GetData(this,"data");if($this.hasClass("select2-results__option--selected")){if(self.options.get("multiple"))self.trigger("unselect",{originalEvent:evt,data:data});else self.trigger("close",{});return}self.trigger("select",{originalEvent:evt,data:data})});this.$results.on("mouseenter",".select2-results__option--selectable",function(evt){var data=Utils.GetData(this,"data");self.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false");self.trigger("results:focus",{data:data,element:$(this)})})};Results.prototype.getHighlightedResults=function(){var $highlighted=this.$results.find(".select2-results__option--highlighted");return $highlighted};Results.prototype.destroy=function(){this.$results.remove()};Results.prototype.ensureHighlightVisible=function(){var $highlighted=this.getHighlightedResults();if($highlighted.length===0)return;var $options=this.$results.find(".select2-results__option--selectable");var currentIndex=$options.index($highlighted);var currentOffset=this.$results.offset().top;var nextTop=$highlighted.offset().top;var nextOffset=this.$results.scrollTop()+(nextTop-currentOffset);var offsetDelta=nextTop-currentOffset;nextOffset-=$highlighted.outerHeight(false)*2;if(currentIndex<=2)this.$results.scrollTop(0);else if(offsetDelta>this.$results.outerHeight()||offsetDelta<0)this.$results.scrollTop(nextOffset)};Results.prototype.template=function(result,container){var template=this.options.get("templateResult");var escapeMarkup=this.options.get("escapeMarkup");var content=template(result,container);if(content==null)container.style.display="none";else if(typeof content==="string")container.innerHTML=escapeMarkup(content);else $(container).append(content)};return Results});S2.define("select2/keys",[],function(){var KEYS={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return KEYS});S2.define("select2/selection/base",["jquery","../utils","../keys"],function($,Utils,KEYS){function BaseSelection($element,options){this.$element=$element;this.options=options;BaseSelection.__super__.constructor.call(this)}Utils.Extend(BaseSelection,Utils.Observable);BaseSelection.prototype.render=function(){var $selection=$('<span class="select2-selection" role="combobox" '+' aria-haspopup="true" aria-expanded="false">'+"</span>");this._tabindex=0;if(Utils.GetData(this.$element[0],"old-tabindex")!=null)this._tabindex=Utils.GetData(this.$element[0],"old-tabindex");else if(this.$element.attr("tabindex")!=null)this._tabindex=this.$element.attr("tabindex");$selection.attr("title",this.$element.attr("title"));$selection.attr("tabindex",this._tabindex);$selection.attr("aria-disabled","false");this.$selection=$selection;return $selection};BaseSelection.prototype.bind=function(container,$container){var self=this;var resultsId=container.id+"-results";this.container=container;this.$selection.on("focus",function(evt){self.trigger("focus",evt)});this.$selection.on("blur",function(evt){self._handleBlur(evt)});this.$selection.on("keydown",function(evt){self.trigger("keypress",evt);if(evt.which===KEYS.SPACE)evt.preventDefault()});container.on("results:focus",function(params){self.$selection.attr("aria-activedescendant",params.data._resultId)});container.on("selection:update",function(params){self.update(params.data)});container.on("open",function(){self.$selection.attr("aria-expanded","true");self.$selection.attr("aria-owns",resultsId);self._attachCloseHandler(container)});container.on("close",function(){self.$selection.attr("aria-expanded","false");self.$selection.removeAttr("aria-activedescendant");self.$selection.removeAttr("aria-owns");self.$selection.trigger("focus");self._detachCloseHandler(container)});container.on("enable",function(){self.$selection.attr("tabindex",self._tabindex);self.$selection.attr("aria-disabled","false")});container.on("disable",function(){self.$selection.attr("tabindex","-1");self.$selection.attr("aria-disabled","true")})};BaseSelection.prototype._handleBlur=function(evt){var self=this;window.setTimeout(function(){if(document.activeElement==self.$selection[0]||$.contains(self.$selection[0],document.activeElement))return;self.trigger("blur",evt)},1)};BaseSelection.prototype._attachCloseHandler=function(container){$(document.body).on("mousedown.select2."+container.id,function(e){var $target=$(e.target);var $select=$target.closest(".select2");var $all=$(".select2.select2-container--open");$all.each(function(){if(this==$select[0])return;var $element=Utils.GetData(this,"element");$element.select2("close")})})};BaseSelection.prototype._detachCloseHandler=function(container){$(document.body).off("mousedown.select2."+container.id)};BaseSelection.prototype.position=function($selection,$container){var $selectionContainer=$container.find(".selection");$selectionContainer.append($selection)};BaseSelection.prototype.destroy=function(){this._detachCloseHandler(this.container)};BaseSelection.prototype.update=function(data){throw new Error("The `update` method must be defined in child classes.")};BaseSelection.prototype.isEnabled=function(){return!this.isDisabled()};BaseSelection.prototype.isDisabled=function(){return this.options.get("disabled")};return BaseSelection});S2.define("select2/selection/single",["jquery","./base","../utils","../keys"],function($,BaseSelection,Utils,KEYS){function SingleSelection(){SingleSelection.__super__.constructor.apply(this,arguments)}Utils.Extend(SingleSelection,BaseSelection);SingleSelection.prototype.render=function(){var $selection=SingleSelection.__super__.render.call(this);$selection[0].classList.add("select2-selection--single");$selection.html('<span class="select2-selection__rendered"></span>'+'<span class="select2-selection__arrow" role="presentation">'+'<b role="presentation"></b>'+"</span>");return $selection};SingleSelection.prototype.bind=function(container,$container){var self=this;SingleSelection.__super__.bind.apply(this,arguments);var id=container.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",id).attr("role","textbox").attr("aria-readonly","true");this.$selection.attr("aria-labelledby",id);this.$selection.attr("aria-controls",id);this.$selection.on("mousedown",function(evt){if(evt.which!==1)return;self.trigger("toggle",{originalEvent:evt})});this.$selection.on("focus",function(evt){});this.$selection.on("blur",function(evt){});container.on("focus",function(evt){if(!container.isOpen())self.$selection.trigger("focus")})};SingleSelection.prototype.clear=function(){var $rendered=this.$selection.find(".select2-selection__rendered");$rendered.empty();$rendered.removeAttr("title")};SingleSelection.prototype.display=function(data,container){var template=this.options.get("templateSelection");var escapeMarkup=this.options.get("escapeMarkup");return escapeMarkup(template(data,container))};SingleSelection.prototype.selectionContainer=function(){return $("<span></span>")};SingleSelection.prototype.update=function(data){if(data.length===0){this.clear();return}var selection=data[0];var $rendered=this.$selection.find(".select2-selection__rendered");var formatted=this.display(selection,$rendered);$rendered.empty().append(formatted);var title=selection.title||selection.text;if(title)$rendered.attr("title",title);else $rendered.removeAttr("title")};return SingleSelection});S2.define("select2/selection/multiple",["jquery","./base","../utils"],function($,BaseSelection,Utils){function MultipleSelection($element,options){MultipleSelection.__super__.constructor.apply(this,arguments)}Utils.Extend(MultipleSelection,BaseSelection);MultipleSelection.prototype.render=function(){var $selection=MultipleSelection.__super__.render.call(this);$selection[0].classList.add("select2-selection--multiple");$selection.html('<ul class="select2-selection__rendered"></ul>');return $selection};MultipleSelection.prototype.bind=function(container,$container){var self=this;MultipleSelection.__super__.bind.apply(this,arguments);var id=container.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",id);this.$selection.on("click",function(evt){self.trigger("toggle",{originalEvent:evt})});this.$selection.on("click",".select2-selection__choice__remove",function(evt){if(self.isDisabled())return;var $remove=$(this);var $selection=$remove.parent();var data=Utils.GetData($selection[0],"data");self.trigger("unselect",{originalEvent:evt,data:data})});this.$selection.on("keydown",".select2-selection__choice__remove",function(evt){if(self.isDisabled())return;evt.stopPropagation()})};MultipleSelection.prototype.clear=function(){var $rendered=this.$selection.find(".select2-selection__rendered");$rendered.empty();$rendered.removeAttr("title")};MultipleSelection.prototype.display=function(data,container){var template=this.options.get("templateSelection");var escapeMarkup=this.options.get("escapeMarkup");return escapeMarkup(template(data,container))};MultipleSelection.prototype.selectionContainer=function(){var $container=$('<li class="select2-selection__choice">'+'<button type="button" class="select2-selection__choice__remove" '+'tabindex="-1">'+'<span aria-hidden="true">&times;</span>'+"</button>"+'<span class="select2-selection__choice__display"></span>'+"</li>");return $container};MultipleSelection.prototype.update=function(data){this.clear();if(data.length===0)return;var $selections=[];var selectionIdPrefix=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-";for(var d=0;d<data.length;d++){var selection=data[d];var $selection=this.selectionContainer();var formatted=this.display(selection,$selection);var selectionId=selectionIdPrefix+Utils.generateChars(4)+"-";if(selection.id)selectionId+=selection.id;else selectionId+=Utils.generateChars(4);$selection.find(".select2-selection__choice__display").append(formatted).attr("id",selectionId);var title=selection.title||selection.text;if(title)$selection.attr("title",title);var removeItem=this.options.get("translations").get("removeItem");var $remove=$selection.find(".select2-selection__choice__remove");$remove.attr("title",removeItem());$remove.attr("aria-label",removeItem());$remove.attr("aria-describedby",selectionId);Utils.StoreData($selection[0],"data",selection);$selections.push($selection)}var $rendered=this.$selection.find(".select2-selection__rendered");$rendered.append($selections)};return MultipleSelection});S2.define("select2/selection/placeholder",[],function(){function Placeholder(decorated,$element,options){this.placeholder=this.normalizePlaceholder(options.get("placeholder"));decorated.call(this,$element,options)}Placeholder.prototype.normalizePlaceholder=function(_,placeholder){if(typeof placeholder==="string")placeholder={id:"",text:placeholder};return placeholder};Placeholder.prototype.createPlaceholder=function(decorated,placeholder){var $placeholder=this.selectionContainer();$placeholder.html(this.display(placeholder));$placeholder[0].classList.add("select2-selection__placeholder");$placeholder[0].classList.remove("select2-selection__choice");var placeholderTitle=placeholder.title||placeholder.text||$placeholder.text();this.$selection.find(".select2-selection__rendered").attr("title",placeholderTitle);return $placeholder};Placeholder.prototype.update=function(decorated,data){var singlePlaceholder=data.length==1&&data[0].id!=this.placeholder.id;var multipleSelections=data.length>1;if(multipleSelections||singlePlaceholder)return decorated.call(this,data);this.clear();var $placeholder=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append($placeholder)};return Placeholder});S2.define("select2/selection/allowClear",["jquery","../keys","../utils"],function($,KEYS,Utils){function AllowClear(){}AllowClear.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);if(this.placeholder==null)if(this.options.get("debug")&&window.console&&console.error)console.error("Select2: The `allowClear` option should be used in combination "+"with the `placeholder` option.");this.$selection.on("mousedown",".select2-selection__clear",function(evt){self._handleClear(evt)});container.on("keypress",function(evt){self._handleKeyboardClear(evt,container)})};AllowClear.prototype._handleClear=function(_,evt){if(this.isDisabled())return;var $clear=this.$selection.find(".select2-selection__clear");if($clear.length===0)return;evt.stopPropagation();var data=Utils.GetData($clear[0],"data");var previousVal=this.$element.val();this.$element.val(this.placeholder.id);var unselectData={data:data};this.trigger("clear",unselectData);if(unselectData.prevented){this.$element.val(previousVal);return}for(var d=0;d<data.length;d++){unselectData={data:data[d]};this.trigger("unselect",unselectData);if(unselectData.prevented){this.$element.val(previousVal);return}}this.$element.trigger("input").trigger("change");this.trigger("toggle",{})};AllowClear.prototype._handleKeyboardClear=function(_,evt,container){if(container.isOpen())return;if(evt.which==KEYS.DELETE||evt.which==KEYS.BACKSPACE)this._handleClear(evt)};AllowClear.prototype.update=function(decorated,data){decorated.call(this,data);this.$selection.find(".select2-selection__clear").remove();this.$selection[0].classList.remove("select2-selection--clearable");if(this.$selection.find(".select2-selection__placeholder").length>0||data.length===0)return;var selectionId=this.$selection.find(".select2-selection__rendered").attr("id");var removeAll=this.options.get("translations").get("removeAllItems");var $remove=$('<button type="button" class="select2-selection__clear" tabindex="-1">'+'<span aria-hidden="true">&times;</span>'+"</button>");$remove.attr("title",removeAll());$remove.attr("aria-label",removeAll());$remove.attr("aria-describedby",selectionId);Utils.StoreData($remove[0],"data",data);this.$selection.prepend($remove);this.$selection[0].classList.add("select2-selection--clearable")};return AllowClear});S2.define("select2/selection/search",["jquery","../utils","../keys"],function($,Utils,KEYS){function Search(decorated,$element,options){decorated.call(this,$element,options)}Search.prototype.render=function(decorated){var searchLabel=this.options.get("translations").get("search");var $search=$('<span class="select2-search select2-search--inline">'+'<textarea class="select2-search__field"'+' type="search" tabindex="-1"'+' autocorrect="off" autocapitalize="none"'+' spellcheck="false" role="searchbox" aria-autocomplete="list" >'+"</textarea>"+"</span>");this.$searchContainer=$search;this.$search=$search.find("textarea");this.$search.prop("autocomplete",this.options.get("autocomplete"));this.$search.attr("aria-label",searchLabel());var $rendered=decorated.call(this);this._transferTabIndex();$rendered.append(this.$searchContainer);return $rendered};Search.prototype.bind=function(decorated,container,$container){var self=this;var resultsId=container.id+"-results";var selectionId=container.id+"-container";decorated.call(this,container,$container);self.$search.attr("aria-describedby",selectionId);container.on("open",function(){self.$search.attr("aria-controls",resultsId);self.$search.trigger("focus")});container.on("close",function(){self.$search.val("");self.resizeSearch();self.$search.removeAttr("aria-controls");self.$search.removeAttr("aria-activedescendant");self.$search.trigger("focus")});container.on("enable",function(){self.$search.prop("disabled",false);self._transferTabIndex()});container.on("disable",function(){self.$search.prop("disabled",true)});container.on("focus",function(evt){self.$search.trigger("focus")});container.on("results:focus",function(params){if(params.data._resultId)self.$search.attr("aria-activedescendant",params.data._resultId);else self.$search.removeAttr("aria-activedescendant")});this.$selection.on("focusin",".select2-search--inline",function(evt){self.trigger("focus",evt)});this.$selection.on("focusout",".select2-search--inline",function(evt){self._handleBlur(evt)});this.$selection.on("keydown",".select2-search--inline",function(evt){evt.stopPropagation();self.trigger("keypress",evt);self._keyUpPrevented=evt.isDefaultPrevented();var key=evt.which;if(key===KEYS.BACKSPACE&&self.$search.val()===""){var $previousChoice=self.$selection.find(".select2-selection__choice").last();if($previousChoice.length>0){var item=Utils.GetData($previousChoice[0],"data");self.searchRemoveChoice(item);evt.preventDefault()}}});this.$selection.on("click",".select2-search--inline",function(evt){if(self.$search.val())evt.stopPropagation()});var msie=document.documentMode;var disableInputEvents=msie&&msie<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(evt){if(disableInputEvents){self.$selection.off("input.search input.searchcheck");return}self.$selection.off("keyup.search")});this.$selection.on("keyup.search input.search",".select2-search--inline",function(evt){if(disableInputEvents&&evt.type==="input"){self.$selection.off("input.search input.searchcheck");return}var key=evt.which;if(key==KEYS.SHIFT||key==KEYS.CTRL||key==KEYS.ALT)return;if(key==KEYS.TAB)return;self.handleSearch(evt)})};Search.prototype._transferTabIndex=function(decorated){this.$search.attr("tabindex",this.$selection.attr("tabindex"));this.$selection.attr("tabindex","-1")};Search.prototype.createPlaceholder=function(decorated,placeholder){this.$search.attr("placeholder",placeholder.text)};Search.prototype.update=function(decorated,data){var searchHadFocus=this.$search[0]==document.activeElement;this.$search.attr("placeholder","");decorated.call(this,data);this.resizeSearch();if(searchHadFocus)this.$search.trigger("focus")};Search.prototype.handleSearch=function(){this.resizeSearch();if(!this._keyUpPrevented){var input=this.$search.val();this.trigger("query",{term:input})}this._keyUpPrevented=false};Search.prototype.searchRemoveChoice=function(decorated,item){this.trigger("unselect",{data:item});this.$search.val(item.text);this.handleSearch()};Search.prototype.resizeSearch=function(){this.$search.css("width","25px");var width="100%";if(this.$search.attr("placeholder")===""){var minimumWidth=this.$search.val().length+1;width=minimumWidth*.75+"em"}this.$search.css("width",width)};return Search});S2.define("select2/selection/selectionCss",["../utils"],function(Utils){function SelectionCSS(){}SelectionCSS.prototype.render=function(decorated){var $selection=decorated.call(this);var selectionCssClass=this.options.get("selectionCssClass")||"";if(selectionCssClass.indexOf(":all:")!==-1){selectionCssClass=selectionCssClass.replace(":all:","");Utils.copyNonInternalCssClasses($selection[0],this.$element[0])}$selection.addClass(selectionCssClass);return $selection};return SelectionCSS});S2.define("select2/selection/eventRelay",["jquery"],function($){function EventRelay(){}EventRelay.prototype.bind=function(decorated,container,$container){var self=this;var relayEvents=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"];var preventableEvents=["opening","closing","selecting","unselecting","clearing"];decorated.call(this,container,$container);container.on("*",function(name,params){if(relayEvents.indexOf(name)===-1)return;params=params||{};var evt=$.Event("select2:"+name,{params:params});self.$element.trigger(evt);if(preventableEvents.indexOf(name)===-1)return;params.prevented=evt.isDefaultPrevented()})};return EventRelay});S2.define("select2/translation",["jquery","require"],function($,require){function Translation(dict){this.dict=dict||{}}Translation.prototype.all=function(){return this.dict};Translation.prototype.get=function(key){return this.dict[key]};Translation.prototype.extend=function(translation){this.dict=$.extend({},translation.all(),this.dict)};Translation._cache={};Translation.loadPath=function(path){if(!(path in Translation._cache)){var translations=require(path);Translation._cache[path]=translations}return new Translation(Translation._cache[path])};return Translation});S2.define("select2/diacritics",[],function(){var diacritics={"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"};return diacritics});S2.define("select2/data/base",["../utils"],function(Utils){function BaseAdapter($element,options){BaseAdapter.__super__.constructor.call(this)}Utils.Extend(BaseAdapter,Utils.Observable);BaseAdapter.prototype.current=function(callback){throw new Error("The `current` method must be defined in child classes.")};BaseAdapter.prototype.query=function(params,callback){throw new Error("The `query` method must be defined in child classes.")};BaseAdapter.prototype.bind=function(container,$container){};BaseAdapter.prototype.destroy=function(){};BaseAdapter.prototype.generateResultId=function(container,data){var id=container.id+"-result-";id+=Utils.generateChars(4);if(data.id!=null)id+="-"+data.id.toString();else id+="-"+Utils.generateChars(4);return id};return BaseAdapter});S2.define("select2/data/select",["./base","../utils","jquery"],function(BaseAdapter,Utils,$){function SelectAdapter($element,options){this.$element=$element;this.options=options;SelectAdapter.__super__.constructor.call(this)}Utils.Extend(SelectAdapter,BaseAdapter);SelectAdapter.prototype.current=function(callback){var self=this;var data=Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(selectedElement){return self.item($(selectedElement))});callback(data)};SelectAdapter.prototype.select=function(data){var self=this;data.selected=true;if(data.element!=null&&data.element.tagName.toLowerCase()==="option"){data.element.selected=true;this.$element.trigger("input").trigger("change");return}if(this.$element.prop("multiple"))this.current(function(currentData){var val=[];data=[data];data.push.apply(data,currentData);for(var d=0;d<data.length;d++){var id=data[d].id;if(val.indexOf(id)===-1)val.push(id)}self.$element.val(val);self.$element.trigger("input").trigger("change")});else{var val=data.id;this.$element.val(val);this.$element.trigger("input").trigger("change")}};SelectAdapter.prototype.unselect=function(data){var self=this;if(!this.$element.prop("multiple"))return;data.selected=false;if(data.element!=null&&data.element.tagName.toLowerCase()==="option"){data.element.selected=false;this.$element.trigger("input").trigger("change");return}this.current(function(currentData){var val=[];for(var d=0;d<currentData.length;d++){var id=currentData[d].id;if(id!==data.id&&val.indexOf(id)===-1)val.push(id)}self.$element.val(val);self.$element.trigger("input").trigger("change")})};SelectAdapter.prototype.bind=function(container,$container){var self=this;this.container=container;container.on("select",function(params){self.select(params.data)});container.on("unselect",function(params){self.unselect(params.data)})};SelectAdapter.prototype.destroy=function(){this.$element.find("*").each(function(){Utils.RemoveData(this)})};SelectAdapter.prototype.query=function(params,callback){var data=[];var self=this;var $options=this.$element.children();$options.each(function(){if(this.tagName.toLowerCase()!=="option"&&this.tagName.toLowerCase()!=="optgroup")return;var $option=$(this);var option=self.item($option);var matches=self.matches(params,option);if(matches!==null)data.push(matches)});callback({results:data})};SelectAdapter.prototype.addOptions=function($options){this.$element.append($options)};SelectAdapter.prototype.option=function(data){var option;if(data.children){option=document.createElement("optgroup");option.label=data.text}else{option=document.createElement("option");if(option.textContent!==undefined)option.textContent=data.text;else option.innerText=data.text}if(data.id!==undefined)option.value=data.id;if(data.disabled)option.disabled=true;if(data.selected)option.selected=true;if(data.title)option.title=data.title;var normalizedData=this._normalizeItem(data);normalizedData.element=option;Utils.StoreData(option,"data",normalizedData);return $(option)};SelectAdapter.prototype.item=function($option){var data={};data=Utils.GetData($option[0],"data");if(data!=null)return data;var option=$option[0];if(option.tagName.toLowerCase()==="option")data={id:$option.val(),text:$option.text(),disabled:$option.prop("disabled"),selected:$option.prop("selected"),title:$option.prop("title")};else if(option.tagName.toLowerCase()==="optgroup"){data={text:$option.prop("label"),children:[],title:$option.prop("title")};var $children=$option.children("option");var children=[];for(var c=0;c<$children.length;c++){var $child=$($children[c]);var child=this.item($child);children.push(child)}data.children=children}data=this._normalizeItem(data);data.element=$option[0];Utils.StoreData($option[0],"data",data);return data};SelectAdapter.prototype._normalizeItem=function(item){if(item!==Object(item))item={id:item,text:item};item=$.extend({},{text:""},item);var defaults={selected:false,disabled:false};if(item.id!=null)item.id=item.id.toString();if(item.text!=null)item.text=item.text.toString();if(item._resultId==null&&item.id&&this.container!=null)item._resultId=this.generateResultId(this.container,item);return $.extend({},defaults,item)};SelectAdapter.prototype.matches=function(params,data){var matcher=this.options.get("matcher");return matcher(params,data)};return SelectAdapter});S2.define("select2/data/array",["./select","../utils","jquery"],function(SelectAdapter,Utils,$){function ArrayAdapter($element,options){this._dataToConvert=options.get("data")||[];ArrayAdapter.__super__.constructor.call(this,$element,options)}Utils.Extend(ArrayAdapter,SelectAdapter);ArrayAdapter.prototype.bind=function(container,$container){ArrayAdapter.__super__.bind.call(this,container,$container);this.addOptions(this.convertToOptions(this._dataToConvert))};ArrayAdapter.prototype.select=function(data){var $option=this.$element.find("option").filter(function(i,elm){return elm.value==data.id.toString()});if($option.length===0){$option=this.option(data);this.addOptions($option)}ArrayAdapter.__super__.select.call(this,data)};ArrayAdapter.prototype.convertToOptions=function(data){var self=this;var $existing=this.$element.find("option");var existingIds=$existing.map(function(){return self.item($(this)).id}).get();var $options=[];function onlyItem(item){return function(){return $(this).val()==item.id}}for(var d=0;d<data.length;d++){var item=this._normalizeItem(data[d]);if(existingIds.indexOf(item.id)>=0){var $existingOption=$existing.filter(onlyItem(item));var existingData=this.item($existingOption);var newData=$.extend(true,{},item,existingData);var $newOption=this.option(newData);$existingOption.replaceWith($newOption);continue}var $option=this.option(item);if(item.children){var $children=this.convertToOptions(item.children);$option.append($children)}$options.push($option)}return $options};return ArrayAdapter});S2.define("select2/data/ajax",["./array","../utils","jquery"],function(ArrayAdapter,Utils,$){function AjaxAdapter($element,options){this.ajaxOptions=this._applyDefaults(options.get("ajax"));if(this.ajaxOptions.processResults!=null)this.processResults=this.ajaxOptions.processResults;AjaxAdapter.__super__.constructor.call(this,$element,options)}Utils.Extend(AjaxAdapter,ArrayAdapter);AjaxAdapter.prototype._applyDefaults=function(options){var defaults={data:function(params){return $.extend({},params,{q:params.term})},transport:function(params,success,failure){var $request=$.ajax(params);$request.then(success);$request.fail(failure);return $request}};return $.extend({},defaults,options,true)};AjaxAdapter.prototype.processResults=function(results){return results};AjaxAdapter.prototype.query=function(params,callback){var matches=[];var self=this;if(this._request!=null){if(typeof this._request.abort==="function")this._request.abort();this._request=null}var options=$.extend({type:"GET"},this.ajaxOptions);if(typeof options.url==="function")options.url=options.url.call(this.$element,params);if(typeof options.data==="function")options.data=options.data.call(this.$element,params);function request(){var $request=options.transport(options,function(data){var results=self.processResults(data,params);if(self.options.get("debug")&&window.console&&console.error)if(!results||!results.results||!Array.isArray(results.results))console.error("Select2: The AJAX results did not return an array in the "+"`results` key of the response.");callback(results)},function(){if("status"in $request&&($request.status===0||$request.status==="0"))return;self.trigger("results:message",{message:"errorLoading"})});self._request=$request}if(this.ajaxOptions.delay&&params.term!=null){if(this._queryTimeout)window.clearTimeout(this._queryTimeout);this._queryTimeout=window.setTimeout(request,this.ajaxOptions.delay)}else request()};return AjaxAdapter});S2.define("select2/data/tags",["jquery"],function($){function Tags(decorated,$element,options){var tags=options.get("tags");var createTag=options.get("createTag");if(createTag!==undefined)this.createTag=createTag;var insertTag=options.get("insertTag");if(insertTag!==undefined)this.insertTag=insertTag;decorated.call(this,$element,options);if(Array.isArray(tags))for(var t=0;t<tags.length;t++){var tag=tags[t];var item=this._normalizeItem(tag);var $option=this.option(item);this.$element.append($option)}}Tags.prototype.query=function(decorated,params,callback){var self=this;this._removeOldTags();if(params.term==null||params.page!=null){decorated.call(this,params,callback);return}function wrapper(obj,child){var data=obj.results;for(var i=0;i<data.length;i++){var option=data[i];var checkChildren=option.children!=null&&!wrapper({results:option.children},true);var optionText=(option.text||"").toUpperCase();var paramsTerm=(params.term||"").toUpperCase();var checkText=optionText===paramsTerm;if(checkText||checkChildren){if(child)return false;obj.data=data;callback(obj);return}}if(child)return true;var tag=self.createTag(params);if(tag!=null){var $option=self.option(tag);$option.attr("data-select2-tag","true");self.addOptions([$option]);self.insertTag(data,tag)}obj.results=data;callback(obj)}decorated.call(this,params,wrapper)};Tags.prototype.createTag=function(decorated,params){if(params.term==null)return null;var term=params.term.trim();if(term==="")return null;return{id:term,text:term}};Tags.prototype.insertTag=function(_,data,tag){data.unshift(tag)};Tags.prototype._removeOldTags=function(_){var $options=this.$element.find("option[data-select2-tag]");$options.each(function(){if(this.selected)return;$(this).remove()})};return Tags});S2.define("select2/data/tokenizer",["jquery"],function($){function Tokenizer(decorated,$element,options){var tokenizer=options.get("tokenizer");if(tokenizer!==undefined)this.tokenizer=tokenizer;decorated.call(this,$element,options)}Tokenizer.prototype.bind=function(decorated,container,$container){decorated.call(this,container,$container);this.$search=container.dropdown.$search||container.selection.$search||$container.find(".select2-search__field")};Tokenizer.prototype.query=function(decorated,params,callback){var self=this;function createAndSelect(data){var item=self._normalizeItem(data);var $existingOptions=self.$element.find("option").filter(function(){return $(this).val()===item.id});if(!$existingOptions.length){var $option=self.option(item);$option.attr("data-select2-tag",true);self._removeOldTags();self.addOptions([$option])}select(item)}function select(data){self.trigger("select",{data:data})}params.term=params.term||"";var tokenData=this.tokenizer(params,this.options,createAndSelect);if(tokenData.term!==params.term){if(this.$search.length){this.$search.val(tokenData.term);this.$search.trigger("focus")}params.term=tokenData.term}decorated.call(this,params,callback)};Tokenizer.prototype.tokenizer=function(_,params,options,callback){var separators=options.get("tokenSeparators")||[];var term=params.term;var i=0;var createTag=this.createTag||function(params){return{id:params.term,text:params.term}};while(i<term.length){var termChar=term[i];if(separators.indexOf(termChar)===-1){i++;continue}var part=term.substr(0,i);var partParams=$.extend({},params,{term:part});var data=createTag(partParams);if(data==null){i++;continue}callback(data);term=term.substr(i+1)||"";i=0}return{term:term}};return Tokenizer});S2.define("select2/data/minimumInputLength",[],function(){function MinimumInputLength(decorated,$e,options){this.minimumInputLength=options.get("minimumInputLength");decorated.call(this,$e,options)}MinimumInputLength.prototype.query=function(decorated,params,callback){params.term=params.term||"";if(params.term.length<this.minimumInputLength){this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:params.term,params:params}});return}decorated.call(this,params,callback)};return MinimumInputLength});S2.define("select2/data/maximumInputLength",[],function(){function MaximumInputLength(decorated,$e,options){this.maximumInputLength=options.get("maximumInputLength");decorated.call(this,$e,options)}MaximumInputLength.prototype.query=function(decorated,params,callback){params.term=params.term||"";if(this.maximumInputLength>0&&params.term.length>this.maximumInputLength){this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:params.term,params:params}});return}decorated.call(this,params,callback)};return MaximumInputLength});S2.define("select2/data/maximumSelectionLength",[],function(){function MaximumSelectionLength(decorated,$e,options){this.maximumSelectionLength=options.get("maximumSelectionLength");decorated.call(this,$e,options)}MaximumSelectionLength.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on("select",function(){self._checkIfMaximumSelected()})};MaximumSelectionLength.prototype.query=function(decorated,params,callback){var self=this;this._checkIfMaximumSelected(function(){decorated.call(self,params,callback)})};MaximumSelectionLength.prototype._checkIfMaximumSelected=function(_,successCallback){var self=this;this.current(function(currentData){var count=currentData!=null?currentData.length:0;if(self.maximumSelectionLength>0&&count>=self.maximumSelectionLength){self.trigger("results:message",{message:"maximumSelected",args:{maximum:self.maximumSelectionLength}});return}if(successCallback)successCallback()})};return MaximumSelectionLength});S2.define("select2/dropdown",["jquery","./utils"],function($,Utils){function Dropdown($element,options){this.$element=$element;this.options=options;Dropdown.__super__.constructor.call(this)}Utils.Extend(Dropdown,Utils.Observable);Dropdown.prototype.render=function(){var $dropdown=$('<span class="select2-dropdown">'+'<span class="select2-results"></span>'+"</span>");$dropdown.attr("dir",this.options.get("dir"));this.$dropdown=$dropdown;return $dropdown};Dropdown.prototype.bind=function(){};Dropdown.prototype.position=function($dropdown,$container){};Dropdown.prototype.destroy=function(){this.$dropdown.remove()};return Dropdown});S2.define("select2/dropdown/search",["jquery"],function($){function Search(){}Search.prototype.render=function(decorated){var $rendered=decorated.call(this);var searchLabel=this.options.get("translations").get("search");var $search=$('<span class="select2-search select2-search--dropdown">'+'<input class="select2-search__field" type="search" tabindex="-1"'+' autocorrect="off" autocapitalize="none"'+' spellcheck="false" role="searchbox" aria-autocomplete="list" />'+"</span>");this.$searchContainer=$search;this.$search=$search.find("input");this.$search.prop("autocomplete",this.options.get("autocomplete"));this.$search.attr("aria-label",searchLabel());$rendered.prepend($search);return $rendered};Search.prototype.bind=function(decorated,container,$container){var self=this;var resultsId=container.id+"-results";decorated.call(this,container,$container);this.$search.on("keydown",function(evt){self.trigger("keypress",evt);self._keyUpPrevented=evt.isDefaultPrevented()});this.$search.on("input",function(evt){$(this).off("keyup")});this.$search.on("keyup input",function(evt){self.handleSearch(evt)});container.on("open",function(){self.$search.attr("tabindex",0);self.$search.attr("aria-controls",resultsId);self.$search.trigger("focus");window.setTimeout(function(){self.$search.trigger("focus")},0)});container.on("close",function(){self.$search.attr("tabindex",-1);self.$search.removeAttr("aria-controls");self.$search.removeAttr("aria-activedescendant");self.$search.val("");self.$search.trigger("blur")});container.on("focus",function(){if(!container.isOpen())self.$search.trigger("focus")});container.on("results:all",function(params){if(params.query.term==null||params.query.term===""){var showSearch=self.showSearch(params);if(showSearch)self.$searchContainer[0].classList.remove("select2-search--hide");else self.$searchContainer[0].classList.add("select2-search--hide")}});container.on("results:focus",function(params){if(params.data._resultId)self.$search.attr("aria-activedescendant",params.data._resultId);else self.$search.removeAttr("aria-activedescendant")})};Search.prototype.handleSearch=function(evt){if(!this._keyUpPrevented){var input=this.$search.val();this.trigger("query",{term:input})}this._keyUpPrevented=false};Search.prototype.showSearch=function(_,params){return true};return Search});S2.define("select2/dropdown/hidePlaceholder",[],function(){function HidePlaceholder(decorated,$element,options,dataAdapter){this.placeholder=this.normalizePlaceholder(options.get("placeholder"));decorated.call(this,$element,options,dataAdapter)}HidePlaceholder.prototype.append=function(decorated,data){data.results=this.removePlaceholder(data.results);decorated.call(this,data)};HidePlaceholder.prototype.normalizePlaceholder=function(_,placeholder){if(typeof placeholder==="string")placeholder={id:"",text:placeholder};return placeholder};HidePlaceholder.prototype.removePlaceholder=function(_,data){var modifiedData=data.slice(0);for(var d=data.length-1;d>=0;d--){var item=data[d];if(this.placeholder.id===item.id)modifiedData.splice(d,1)}return modifiedData};return HidePlaceholder});S2.define("select2/dropdown/infiniteScroll",["jquery"],function($){function InfiniteScroll(decorated,$element,options,dataAdapter){this.lastParams={};decorated.call(this,$element,options,dataAdapter);this.$loadingMore=this.createLoadingMore();this.loading=false}InfiniteScroll.prototype.append=function(decorated,data){this.$loadingMore.remove();this.loading=false;decorated.call(this,data);if(this.showLoadingMore(data)){this.$results.append(this.$loadingMore);this.loadMoreIfNeeded()}};InfiniteScroll.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on("query",function(params){self.lastParams=params;self.loading=true});container.on("query:append",function(params){self.lastParams=params;self.loading=true});this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))};InfiniteScroll.prototype.loadMoreIfNeeded=function(){var isLoadMoreVisible=$.contains(document.documentElement,this.$loadingMore[0]);if(this.loading||!isLoadMoreVisible)return;var currentOffset=this.$results.offset().top+this.$results.outerHeight(false);var loadingMoreOffset=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(false);if(currentOffset+50>=loadingMoreOffset)this.loadMore()};InfiniteScroll.prototype.loadMore=function(){this.loading=true;var params=$.extend({},{page:1},this.lastParams);params.page++;this.trigger("query:append",params)};InfiniteScroll.prototype.showLoadingMore=function(_,data){return data.pagination&&data.pagination.more};InfiniteScroll.prototype.createLoadingMore=function(){var $option=$("<li "+'class="select2-results__option select2-results__option--load-more"'+'role="option" aria-disabled="true"></li>');var message=this.options.get("translations").get("loadingMore");$option.html(message(this.lastParams));return $option};return InfiniteScroll});S2.define("select2/dropdown/attachBody",["jquery","../utils"],function($,Utils){function AttachBody(decorated,$element,options){this.$dropdownParent=$(options.get("dropdownParent")||document.body);decorated.call(this,$element,options)}AttachBody.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on("open",function(){self._showDropdown();self._attachPositioningHandler(container);self._bindContainerResultHandlers(container)});container.on("close",function(){self._hideDropdown();self._detachPositioningHandler(container)});this.$dropdownContainer.on("mousedown",function(evt){evt.stopPropagation()})};AttachBody.prototype.destroy=function(decorated){decorated.call(this);this.$dropdownContainer.remove()};AttachBody.prototype.position=function(decorated,$dropdown,$container){$dropdown.attr("class",$container.attr("class"));$dropdown[0].classList.remove("select2");$dropdown[0].classList.add("select2-container--open");$dropdown.css({position:"absolute",top:-999999});this.$container=$container};AttachBody.prototype.render=function(decorated){var $container=$("<span></span>");var $dropdown=decorated.call(this);$container.append($dropdown);this.$dropdownContainer=$container;return $container};AttachBody.prototype._hideDropdown=function(decorated){this.$dropdownContainer.detach()};AttachBody.prototype._bindContainerResultHandlers=function(decorated,container){if(this._containerResultsHandlersBound)return;var self=this;container.on("results:all",function(){self._positionDropdown();self._resizeDropdown()});container.on("results:append",function(){self._positionDropdown();self._resizeDropdown()});container.on("results:message",function(){self._positionDropdown();self._resizeDropdown()});container.on("select",function(){self._positionDropdown();self._resizeDropdown()});container.on("unselect",function(){self._positionDropdown();self._resizeDropdown()});this._containerResultsHandlersBound=true};AttachBody.prototype._attachPositioningHandler=function(decorated,container){var self=this;var scrollEvent="scroll.select2."+container.id;var resizeEvent="resize.select2."+container.id;var orientationEvent="orientationchange.select2."+container.id;var $watchers=this.$container.parents().filter(Utils.hasScroll);$watchers.each(function(){Utils.StoreData(this,"select2-scroll-position",{x:$(this).scrollLeft(),y:$(this).scrollTop()})});$watchers.on(scrollEvent,function(ev){var position=Utils.GetData(this,"select2-scroll-position");$(this).scrollTop(position.y)});$(window).on(scrollEvent+" "+resizeEvent+" "+orientationEvent,function(e){self._positionDropdown();self._resizeDropdown()})};AttachBody.prototype._detachPositioningHandler=function(decorated,container){var scrollEvent="scroll.select2."+container.id;var resizeEvent="resize.select2."+container.id;var orientationEvent="orientationchange.select2."+container.id;var $watchers=this.$container.parents().filter(Utils.hasScroll);$watchers.off(scrollEvent);$(window).off(scrollEvent+" "+resizeEvent+" "+orientationEvent)};AttachBody.prototype._positionDropdown=function(){var $window=$(window);var isCurrentlyAbove=this.$dropdown[0].classList.contains("select2-dropdown--above");var isCurrentlyBelow=this.$dropdown[0].classList.contains("select2-dropdown--below");var newDirection=null;var offset=this.$container.offset();offset.bottom=offset.top+this.$container.outerHeight(false);var container={height:this.$container.outerHeight(false)};container.top=offset.top;container.bottom=offset.top+container.height;var dropdown={height:this.$dropdown.outerHeight(false)};var viewport={top:$window.scrollTop(),bottom:$window.scrollTop()+$window.height()};var enoughRoomAbove=viewport.top<offset.top-dropdown.height;var enoughRoomBelow=viewport.bottom>offset.bottom+dropdown.height;var css={left:offset.left,top:container.bottom};var $offsetParent=this.$dropdownParent;if($offsetParent.css("position")==="static")$offsetParent=$offsetParent.offsetParent();var parentOffset={top:0,left:0};if($.contains(document.body,$offsetParent[0])||$offsetParent[0].isConnected)parentOffset=$offsetParent.offset();css.top-=parentOffset.top;css.left-=parentOffset.left;if(!isCurrentlyAbove&&!isCurrentlyBelow)newDirection="below";if(!enoughRoomBelow&&enoughRoomAbove&&!isCurrentlyAbove)newDirection="above";else if(!enoughRoomAbove&&enoughRoomBelow&&isCurrentlyAbove)newDirection="below";if(newDirection=="above"||isCurrentlyAbove&&newDirection!=="below")css.top=container.top-parentOffset.top-dropdown.height;if(newDirection!=null){this.$dropdown[0].classList.remove("select2-dropdown--below");this.$dropdown[0].classList.remove("select2-dropdown--above");this.$dropdown[0].classList.add("select2-dropdown--"+newDirection);this.$container[0].classList.remove("select2-container--below");this.$container[0].classList.remove("select2-container--above");this.$container[0].classList.add("select2-container--"+newDirection)}this.$dropdownContainer.css(css)};AttachBody.prototype._resizeDropdown=function(){var css={width:this.$container.outerWidth(false)+"px"};if(this.options.get("dropdownAutoWidth")){css.minWidth=css.width;css.position="relative";css.width="auto"}this.$dropdown.css(css)};AttachBody.prototype._showDropdown=function(decorated){this.$dropdownContainer.appendTo(this.$dropdownParent);this._positionDropdown();this._resizeDropdown()};return AttachBody});S2.define("select2/dropdown/minimumResultsForSearch",[],function(){function countResults(data){var count=0;for(var d=0;d<data.length;d++){var item=data[d];if(item.children)count+=countResults(item.children);else count++}return count}function MinimumResultsForSearch(decorated,$element,options,dataAdapter){this.minimumResultsForSearch=options.get("minimumResultsForSearch");if(this.minimumResultsForSearch<0)this.minimumResultsForSearch=Infinity;decorated.call(this,$element,options,dataAdapter)}MinimumResultsForSearch.prototype.showSearch=function(decorated,params){if(countResults(params.data.results)<this.minimumResultsForSearch)return false;return decorated.call(this,params)};return MinimumResultsForSearch});S2.define("select2/dropdown/selectOnClose",["../utils"],function(Utils){function SelectOnClose(){}SelectOnClose.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on("close",function(params){self._handleSelectOnClose(params)})};SelectOnClose.prototype._handleSelectOnClose=function(_,params){if(params&&params.originalSelect2Event!=null){var event=params.originalSelect2Event;if(event._type==="select"||event._type==="unselect")return}var $highlightedResults=this.getHighlightedResults();if($highlightedResults.length<1)return;var data=Utils.GetData($highlightedResults[0],"data");if(data.element!=null&&data.element.selected||data.element==null&&data.selected)return;this.trigger("select",{data:data})};return SelectOnClose});S2.define("select2/dropdown/closeOnSelect",[],function(){function CloseOnSelect(){}CloseOnSelect.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on("select",function(evt){self._selectTriggered(evt)});container.on("unselect",function(evt){self._selectTriggered(evt)})};CloseOnSelect.prototype._selectTriggered=function(_,evt){var originalEvent=evt.originalEvent;if(originalEvent&&(originalEvent.ctrlKey||originalEvent.metaKey))return;this.trigger("close",{originalEvent:originalEvent,originalSelect2Event:evt})};return CloseOnSelect});S2.define("select2/dropdown/dropdownCss",["../utils"],function(Utils){function DropdownCSS(){}DropdownCSS.prototype.render=function(decorated){var $dropdown=decorated.call(this);var dropdownCssClass=this.options.get("dropdownCssClass")||"";if(dropdownCssClass.indexOf(":all:")!==-1){dropdownCssClass=dropdownCssClass.replace(":all:","");Utils.copyNonInternalCssClasses($dropdown[0],this.$element[0])}$dropdown.addClass(dropdownCssClass);return $dropdown};return DropdownCSS});S2.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(Utils){function TagsSearchHighlight(){}TagsSearchHighlight.prototype.highlightFirstItem=function(decorated){var $options=this.$results.find(".select2-results__option--selectable"+":not(.select2-results__option--selected)");if($options.length>0){var $firstOption=$options.first();var data=Utils.GetData($firstOption[0],"data");var firstElement=data.element;if(firstElement&&firstElement.getAttribute)if(firstElement.getAttribute("data-select2-tag")==="true"){$firstOption.trigger("mouseenter");return}}decorated.call(this)};return TagsSearchHighlight});S2.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(args){var overChars=args.input.length-args.maximum;var message="Please delete "+overChars+" character";if(overChars!=1)message+="s";return message},inputTooShort:function(args){var remainingChars=args.minimum-args.input.length;var message="Please enter "+remainingChars+" or more characters";return message},loadingMore:function(){return"Loading more results…"},maximumSelected:function(args){var message="You can only select "+args.maximum+" item";if(args.maximum!=1)message+="s";return message},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}});S2.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function($,ResultsList,SingleSelection,MultipleSelection,Placeholder,AllowClear,SelectionSearch,SelectionCSS,EventRelay,Utils,Translation,DIACRITICS,SelectData,ArrayData,AjaxData,Tags,Tokenizer,MinimumInputLength,MaximumInputLength,MaximumSelectionLength,Dropdown,DropdownSearch,HidePlaceholder,InfiniteScroll,AttachBody,MinimumResultsForSearch,SelectOnClose,CloseOnSelect,DropdownCSS,TagsSearchHighlight,EnglishTranslation){function Defaults(){this.reset()}Defaults.prototype.apply=function(options){options=$.extend(true,{},this.defaults,options);if(options.dataAdapter==null){if(options.ajax!=null)options.dataAdapter=AjaxData;else if(options.data!=null)options.dataAdapter=ArrayData;else options.dataAdapter=SelectData;if(options.minimumInputLength>0)options.dataAdapter=Utils.Decorate(options.dataAdapter,MinimumInputLength);if(options.maximumInputLength>0)options.dataAdapter=Utils.Decorate(options.dataAdapter,MaximumInputLength);if(options.maximumSelectionLength>0)options.dataAdapter=Utils.Decorate(options.dataAdapter,MaximumSelectionLength);if(options.tags)options.dataAdapter=Utils.Decorate(options.dataAdapter,Tags);if(options.tokenSeparators!=null||options.tokenizer!=null)options.dataAdapter=Utils.Decorate(options.dataAdapter,Tokenizer)}if(options.resultsAdapter==null){options.resultsAdapter=ResultsList;if(options.ajax!=null)options.resultsAdapter=Utils.Decorate(options.resultsAdapter,InfiniteScroll);if(options.placeholder!=null)options.resultsAdapter=Utils.Decorate(options.resultsAdapter,HidePlaceholder);if(options.selectOnClose)options.resultsAdapter=Utils.Decorate(options.resultsAdapter,SelectOnClose);if(options.tags)options.resultsAdapter=Utils.Decorate(options.resultsAdapter,TagsSearchHighlight)}if(options.dropdownAdapter==null){if(options.multiple)options.dropdownAdapter=Dropdown;else{var SearchableDropdown=Utils.Decorate(Dropdown,DropdownSearch);options.dropdownAdapter=SearchableDropdown}if(options.minimumResultsForSearch!==0)options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,MinimumResultsForSearch);if(options.closeOnSelect)options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,CloseOnSelect);if(options.dropdownCssClass!=null)options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,DropdownCSS);options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,AttachBody)}if(options.selectionAdapter==null){if(options.multiple)options.selectionAdapter=MultipleSelection;else options.selectionAdapter=SingleSelection;if(options.placeholder!=null)options.selectionAdapter=Utils.Decorate(options.selectionAdapter,Placeholder);if(options.allowClear)options.selectionAdapter=Utils.Decorate(options.selectionAdapter,AllowClear);if(options.multiple)options.selectionAdapter=Utils.Decorate(options.selectionAdapter,SelectionSearch);if(options.selectionCssClass!=null)options.selectionAdapter=Utils.Decorate(options.selectionAdapter,SelectionCSS);options.selectionAdapter=Utils.Decorate(options.selectionAdapter,EventRelay)}options.language=this._resolveLanguage(options.language);options.language.push("en");var uniqueLanguages=[];for(var l=0;l<options.language.length;l++){var language=options.language[l];if(uniqueLanguages.indexOf(language)===-1)uniqueLanguages.push(language)}options.language=uniqueLanguages;options.translations=this._processTranslations(options.language,options.debug);return options};Defaults.prototype.reset=function(){function stripDiacritics(text){function match(a){return DIACRITICS[a]||a}return text.replace(/[^\u0000-\u007E]/g,match)}function matcher(params,data){if(params.term==null||params.term.trim()==="")return data;if(data.children&&data.children.length>0){var match=$.extend(true,{},data);for(var c=data.children.length-1;c>=0;c--){var child=data.children[c];var matches=matcher(params,child);if(matches==null)match.children.splice(c,1)}if(match.children.length>0)return match;return matcher(params,match)}var original=stripDiacritics(data.text).toUpperCase();var term=stripDiacritics(params.term).toUpperCase();if(original.indexOf(term)>-1)return data;return null}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:true,debug:false,dropdownAutoWidth:false,escapeMarkup:Utils.escapeMarkup,language:{},matcher:matcher,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:false,scrollAfterSelect:false,sorter:function(data){return data},templateResult:function(result){return result.text},templateSelection:function(selection){return selection.text},theme:"default",width:"resolve"}};Defaults.prototype.applyFromElement=function(options,$element){var optionLanguage=options.language;var defaultLanguage=this.defaults.language;var elementLanguage=$element.prop("lang");var parentLanguage=$element.closest("[lang]").prop("lang");var languages=Array.prototype.concat.call(this._resolveLanguage(elementLanguage),this._resolveLanguage(optionLanguage),this._resolveLanguage(defaultLanguage),this._resolveLanguage(parentLanguage));options.language=languages;return options};Defaults.prototype._resolveLanguage=function(language){if(!language)return[];if($.isEmptyObject(language))return[];if($.isPlainObject(language))return[language];var languages;if(!Array.isArray(language))languages=[language];else languages=language;var resolvedLanguages=[];for(var l=0;l<languages.length;l++){resolvedLanguages.push(languages[l]);if(typeof languages[l]==="string"&&languages[l].indexOf("-")>0){var languageParts=languages[l].split("-");var baseLanguage=languageParts[0];resolvedLanguages.push(baseLanguage)}}return resolvedLanguages};Defaults.prototype._processTranslations=function(languages,debug){var translations=new Translation;for(var l=0;l<languages.length;l++){var languageData=new Translation;var language=languages[l];if(typeof language==="string")try{languageData=Translation.loadPath(language)}catch(e){try{language=this.defaults.amdLanguageBase+language;languageData=Translation.loadPath(language)}catch(ex){if(debug&&window.console&&console.warn)console.warn('Select2: The language file for "'+language+'" could '+"not be automatically loaded. A fallback will be used instead.")}}else if($.isPlainObject(language))languageData=new Translation(language);else languageData=language;translations.extend(languageData)}return translations};Defaults.prototype.set=function(key,value){var camelKey=$.camelCase(key);var data={};data[camelKey]=value;var convertedData=Utils._convertData(data);$.extend(true,this.defaults,convertedData)};var defaults=new Defaults;return defaults});S2.define("select2/options",["jquery","./defaults","./utils"],function($,Defaults,Utils){function Options(options,$element){this.options=options;if($element!=null)this.fromElement($element);if($element!=null)this.options=Defaults.applyFromElement(this.options,$element);this.options=Defaults.apply(this.options)}Options.prototype.fromElement=function($e){var excludedData=["select2"];if(this.options.multiple==null)this.options.multiple=$e.prop("multiple");if(this.options.disabled==null)this.options.disabled=$e.prop("disabled");if(this.options.autocomplete==null&&$e.prop("autocomplete"))this.options.autocomplete=$e.prop("autocomplete");if(this.options.dir==null)if($e.prop("dir"))this.options.dir=$e.prop("dir");else if($e.closest("[dir]").prop("dir"))this.options.dir=$e.closest("[dir]").prop("dir");else this.options.dir="ltr";$e.prop("disabled",this.options.disabled);$e.prop("multiple",this.options.multiple);if(Utils.GetData($e[0],"select2Tags")){if(this.options.debug&&window.console&&console.warn)console.warn("Select2: The `data-select2-tags` attribute has been changed to "+'use the `data-data` and `data-tags="true"` attributes and will be '+"removed in future versions of Select2.");Utils.StoreData($e[0],"data",Utils.GetData($e[0],"select2Tags"));Utils.StoreData($e[0],"tags",true)}if(Utils.GetData($e[0],"ajaxUrl")){if(this.options.debug&&window.console&&console.warn)console.warn("Select2: The `data-ajax-url` attribute has been changed to "+"`data-ajax--url` and support for the old attribute will be removed"+" in future versions of Select2.");$e.attr("ajax--url",Utils.GetData($e[0],"ajaxUrl"));Utils.StoreData($e[0],"ajax-Url",Utils.GetData($e[0],"ajaxUrl"))}var dataset={};function upperCaseLetter(_,letter){return letter.toUpperCase()}for(var attr=0;attr<$e[0].attributes.length;attr++){var attributeName=$e[0].attributes[attr].name;var prefix="data-";if(attributeName.substr(0,prefix.length)==prefix){var dataName=attributeName.substring(prefix.length);var dataValue=Utils.GetData($e[0],dataName);var camelDataName=dataName.replace(/-([a-z])/g,upperCaseLetter);dataset[camelDataName]=dataValue}}if($.fn.jquery&&$.fn.jquery.substr(0,2)=="1."&&$e[0].dataset)dataset=$.extend(true,{},$e[0].dataset,dataset);var data=$.extend(true,{},Utils.GetData($e[0]),dataset);data=Utils._convertData(data);for(var key in data){if(excludedData.indexOf(key)>-1)continue;if($.isPlainObject(this.options[key]))$.extend(this.options[key],data[key]);else this.options[key]=data[key]}return this};Options.prototype.get=function(key){return this.options[key]};Options.prototype.set=function(key,val){this.options[key]=val};return Options});S2.define("select2/core",["jquery","./options","./utils","./keys"],function($,Options,Utils,KEYS){var Select2=function($element,options){if(Utils.GetData($element[0],"select2")!=null)Utils.GetData($element[0],"select2").destroy();this.$element=$element;this.id=this._generateId($element);options=options||{};this.options=new Options(options,$element);Select2.__super__.constructor.call(this);var tabindex=$element.attr("tabindex")||0;Utils.StoreData($element[0],"old-tabindex",tabindex);$element.attr("tabindex","-1");var DataAdapter=this.options.get("dataAdapter");this.dataAdapter=new DataAdapter($element,this.options);var $container=this.render();this._placeContainer($container);var SelectionAdapter=this.options.get("selectionAdapter");this.selection=new SelectionAdapter($element,this.options);this.$selection=this.selection.render();this.selection.position(this.$selection,$container);var DropdownAdapter=this.options.get("dropdownAdapter");this.dropdown=new DropdownAdapter($element,this.options);this.$dropdown=this.dropdown.render();this.dropdown.position(this.$dropdown,$container);var ResultsAdapter=this.options.get("resultsAdapter");this.results=new ResultsAdapter($element,this.options,this.dataAdapter);this.$results=this.results.render();this.results.position(this.$results,this.$dropdown);var self=this;this._bindAdapters();this._registerDomEvents();this._registerDataEvents();this._registerSelectionEvents();this._registerDropdownEvents();this._registerResultsEvents();this._registerEvents();this.dataAdapter.current(function(initialData){self.trigger("selection:update",{data:initialData})});$element[0].classList.add("select2-hidden-accessible");$element.attr("aria-hidden","true");this._syncAttributes();Utils.StoreData($element[0],"select2",this);$element.data("select2",this)};Utils.Extend(Select2,Utils.Observable);Select2.prototype._generateId=function($element){var id="";if($element.attr("id")!=null)id=$element.attr("id");else if($element.attr("name")!=null)id=$element.attr("name")+"-"+Utils.generateChars(2);else id=Utils.generateChars(4);id=id.replace(/(:|\.|\[|\]|,)/g,"");id="select2-"+id;return id};Select2.prototype._placeContainer=function($container){$container.insertAfter(this.$element);var width=this._resolveWidth(this.$element,this.options.get("width"));if(width!=null)$container.css("width",width)};Select2.prototype._resolveWidth=function($element,method){var WIDTH=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if(method=="resolve"){var styleWidth=this._resolveWidth($element,"style");if(styleWidth!=null)return styleWidth;return this._resolveWidth($element,"element")}if(method=="element"){var elementWidth=$element.outerWidth(false);if(elementWidth<=0)return"auto";return elementWidth+"px"}if(method=="style"){var style=$element.attr("style");if(typeof style!=="string")return null;var attrs=style.split(";");for(var i=0,l=attrs.length;i<l;i=i+1){var attr=attrs[i].replace(/\s/g,"");var matches=attr.match(WIDTH);if(matches!==null&&matches.length>=1)return matches[1]}return null}if(method=="computedstyle"){var computedStyle=window.getComputedStyle($element[0]);return computedStyle.width}return method};Select2.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container);this.selection.bind(this,this.$container);this.dropdown.bind(this,this.$container);this.results.bind(this,this.$container)};Select2.prototype._registerDomEvents=function(){var self=this;this.$element.on("change.select2",function(){self.dataAdapter.current(function(data){self.trigger("selection:update",{data:data})})});this.$element.on("focus.select2",function(evt){self.trigger("focus",evt)});this._syncA=Utils.bind(this._syncAttributes,this);this._syncS=Utils.bind(this._syncSubtree,this);this._observer=new window.MutationObserver(function(mutations){self._syncA();self._syncS(mutations)});this._observer.observe(this.$element[0],{attributes:true,childList:true,subtree:false})};Select2.prototype._registerDataEvents=function(){var self=this;this.dataAdapter.on("*",function(name,params){self.trigger(name,params)})};Select2.prototype._registerSelectionEvents=function(){var self=this;var nonRelayEvents=["toggle","focus"];this.selection.on("toggle",function(){self.toggleDropdown()});this.selection.on("focus",function(params){self.focus(params)});this.selection.on("*",function(name,params){if(nonRelayEvents.indexOf(name)!==-1)return;self.trigger(name,params)})};Select2.prototype._registerDropdownEvents=function(){var self=this;this.dropdown.on("*",function(name,params){self.trigger(name,params)})};Select2.prototype._registerResultsEvents=function(){var self=this;this.results.on("*",function(name,params){self.trigger(name,params)})};Select2.prototype._registerEvents=function(){var self=this;this.on("open",function(){self.$container[0].classList.add("select2-container--open")});this.on("close",function(){self.$container[0].classList.remove("select2-container--open")});this.on("enable",function(){self.$container[0].classList.remove("select2-container--disabled")});this.on("disable",function(){self.$container[0].classList.add("select2-container--disabled")});this.on("blur",function(){self.$container[0].classList.remove("select2-container--focus")});this.on("query",function(params){if(!self.isOpen())self.trigger("open",{});this.dataAdapter.query(params,function(data){self.trigger("results:all",{data:data,query:params})})});this.on("query:append",function(params){this.dataAdapter.query(params,function(data){self.trigger("results:append",{data:data,query:params})})});this.on("keypress",function(evt){var key=evt.which;if(self.isOpen()){if(key===KEYS.ESC||key===KEYS.UP&&evt.altKey){self.close(evt);evt.preventDefault()}else if(key===KEYS.ENTER||key===KEYS.TAB){self.trigger("results:select",{});evt.preventDefault()}else if(key===KEYS.SPACE&&evt.ctrlKey){self.trigger("results:toggle",{});evt.preventDefault()}else if(key===KEYS.UP){self.trigger("results:previous",{});evt.preventDefault()}else if(key===KEYS.DOWN){self.trigger("results:next",{});evt.preventDefault()}}else if(key===KEYS.ENTER||key===KEYS.SPACE||key===KEYS.DOWN&&evt.altKey){self.open();evt.preventDefault()}})};Select2.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled"));if(this.isDisabled()){if(this.isOpen())this.close();this.trigger("disable",{})}else this.trigger("enable",{})};Select2.prototype._isChangeMutation=function(mutations){var self=this;if(mutations.addedNodes&&mutations.addedNodes.length>0)for(var n=0;n<mutations.addedNodes.length;n++){var node=mutations.addedNodes[n];if(node.selected)return true}else if(mutations.removedNodes&&mutations.removedNodes.length>0)return true;else if(Array.isArray(mutations))return mutations.some(function(mutation){return self._isChangeMutation(mutation)});return false};Select2.prototype._syncSubtree=function(mutations){var changed=this._isChangeMutation(mutations);var self=this;if(changed)this.dataAdapter.current(function(currentData){self.trigger("selection:update",{data:currentData})})};Select2.prototype.trigger=function(name,args){var actualTrigger=Select2.__super__.trigger;var preTriggerMap={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(args===undefined)args={};if(name in preTriggerMap){var preTriggerName=preTriggerMap[name];var preTriggerArgs={prevented:false,name:name,args:args};actualTrigger.call(this,preTriggerName,preTriggerArgs);if(preTriggerArgs.prevented){args.prevented=true;return}}actualTrigger.call(this,name,args)};Select2.prototype.toggleDropdown=function(){if(this.isDisabled())return;if(this.isOpen())this.close();else this.open()};Select2.prototype.open=function(){if(this.isOpen())return;if(this.isDisabled())return;this.trigger("query",{})};Select2.prototype.close=function(evt){if(!this.isOpen())return;this.trigger("close",{originalEvent:evt})};Select2.prototype.isEnabled=function(){return!this.isDisabled()};Select2.prototype.isDisabled=function(){return this.options.get("disabled")};Select2.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")};Select2.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")};Select2.prototype.focus=function(data){if(this.hasFocus())return;this.$container[0].classList.add("select2-container--focus");this.trigger("focus",{})};Select2.prototype.enable=function(args){if(this.options.get("debug")&&window.console&&console.warn)console.warn('Select2: The `select2("enable")` method has been deprecated and will'+' be removed in later Select2 versions. Use $element.prop("disabled")'+" instead.");if(args==null||args.length===0)args=[true];var disabled=!args[0];this.$element.prop("disabled",disabled)};Select2.prototype.data=function(){if(this.options.get("debug")&&arguments.length>0&&window.console&&console.warn)console.warn('Select2: Data can no longer be set using `select2("data")`. You '+"should consider setting the value instead using `$element.val()`.");var data=[];this.dataAdapter.current(function(currentData){data=currentData});return data};Select2.prototype.val=function(args){if(this.options.get("debug")&&window.console&&console.warn)console.warn('Select2: The `select2("val")` method has been deprecated and will be'+" removed in later Select2 versions. Use $element.val() instead.");if(args==null||args.length===0)return this.$element.val();var newVal=args[0];if(Array.isArray(newVal))newVal=newVal.map(function(obj){return obj.toString()});this.$element.val(newVal).trigger("input").trigger("change")};Select2.prototype.destroy=function(){Utils.RemoveData(this.$container[0]);this.$container.remove();this._observer.disconnect();this._observer=null;this._syncA=null;this._syncS=null;this.$element.off(".select2");this.$element.attr("tabindex",Utils.GetData(this.$element[0],"old-tabindex"));this.$element[0].classList.remove("select2-hidden-accessible");this.$element.attr("aria-hidden","false");Utils.RemoveData(this.$element[0]);this.$element.removeData("select2");this.dataAdapter.destroy();this.selection.destroy();this.dropdown.destroy();this.results.destroy();this.dataAdapter=null;this.selection=null;this.dropdown=null;this.results=null};Select2.prototype.render=function(){var $container=$('<span class="select2 select2-container">'+'<span class="selection"></span>'+'<span class="dropdown-wrapper" aria-hidden="true"></span>'+"</span>");$container.attr("dir",this.options.get("dir"));this.$container=$container;this.$container[0].classList.add("select2-container--"+this.options.get("theme"));Utils.StoreData($container[0],"element",this.$element);return $container};return Select2});S2.define("jquery-mousewheel",["jquery"],function($){return $});S2.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function($,_,Select2,Defaults,Utils){if($.fn.select2==null){var thisMethods=["open","close","destroy"];$.fn.select2=function(options){options=options||{};if(typeof options==="object"){this.each(function(){var instanceOptions=$.extend(true,{},options);var instance=new Select2($(this),instanceOptions)});return this}else if(typeof options==="string"){var ret;var args=Array.prototype.slice.call(arguments,1);this.each(function(){var instance=Utils.GetData(this,"select2");if(instance==null&&window.console&&console.error)console.error("The select2('"+options+"') method was called on an "+"element that is not using Select2.");ret=instance[options].apply(instance,args)});if(thisMethods.indexOf(options)>-1)return this;return ret}else throw new Error("Invalid arguments for Select2: "+options)}}if($.fn.select2.defaults==null)$.fn.select2.defaults=Defaults;return Select2});return{define:S2.define,require:S2.require}}(),select2=S2.require("jquery.select2");return jQuery.fn.select2.amd=S2,select2})?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)&&(module.exports=__WEBPACK_AMD_DEFINE_ARRAY__)}.call(this,__webpack_require__(9))}]);
function updateMargin() {
  document.querySelector(".mn__main").style.setProperty("padding-top", jQuery(".mn__header").outerHeight() + "px", "important");
  //console.log("updateMargin");
}
jQuery(document).ready(updateMargin);
jQuery(window).resize(updateMargin);
// source --> https://masonnatural.pe/wp-content/themes/mason-natural/build/js/book.4296f57cf7.js 
(modules=>{var installedModules={};function __webpack_require__(moduleId){var module;return(installedModules[moduleId]||(module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}},modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module)).exports}__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.t=function(value,mode){if(1&mode&&(value=__webpack_require__(value)),8&mode)return value;if(4&mode&&"object"==typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value:value}),2&mode&&"string"!=typeof value)for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="/",__webpack_require__(__webpack_require__.s=96)})({0:function(__webpack_module__,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return elementParents}),__webpack_require__.d(__webpack_exports__,"b",function(){return elementOffset}),__webpack_require__.d(__webpack_exports__,"c",function(){return createElement}),__webpack_require__.d(__webpack_exports__,"d",function(){return now}),__webpack_require__.d(__webpack_exports__,"e",function(){return elementChildren}),__webpack_require__.d(__webpack_exports__,"f",function(){return elementOuterSize}),__webpack_require__.d(__webpack_exports__,"g",function(){return elementIndex}),__webpack_require__.d(__webpack_exports__,"h",function(){return getTranslate}),__webpack_require__.d(__webpack_exports__,"i",function(){return elementTransitionEnd}),__webpack_require__.d(__webpack_exports__,"j",function(){return isObject}),__webpack_require__.d(__webpack_exports__,"k",function(){return getSlideTransformEl}),__webpack_require__.d(__webpack_exports__,"l",function(){return elementStyle}),__webpack_require__.d(__webpack_exports__,"m",function(){return elementNextAll}),__webpack_require__.d(__webpack_exports__,"n",function(){return nextTick}),__webpack_require__.d(__webpack_exports__,"o",function(){return elementPrevAll}),__webpack_require__.d(__webpack_exports__,"p",function(){return animateCSSModeScroll}),__webpack_require__.d(__webpack_exports__,"q",function(){return extend}),__webpack_require__.d(__webpack_exports__,"r",function(){return deleteProps}),__webpack_require__.d(__webpack_exports__,"s",function(){return setCSSProperty});var _ssr_window_esm_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1);function _toConsumableArray(r){return(r=>{if(Array.isArray(r))return _arrayLikeToArray(r)})(r)||(r=>{if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)})(r)||((r,a)=>{var t;if(r)return"string"==typeof r?_arrayLikeToArray(r,a):"Map"===(t="Object"===(t={}.toString.call(r).slice(8,-1))&&r.constructor?r.constructor.name:t)||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0})(r)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _defineProperty(e,r,t){return(r=(t=>(t=((t,r)=>{if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0===e)return("string"===r?String:Number)(t);if("object"!=_typeof(e=e.call(t,r||"default")))return e;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==_typeof(t)?t:t+""))(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _typeof(o){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}function deleteProps(obj){var object=obj;Object.keys(object).forEach(function(key){try{object[key]=null}catch(e){}try{delete object[key]}catch(e){}})}function nextTick(callback,delay){return void 0===delay&&(delay=0),setTimeout(callback,delay)}function now(){return Date.now()}function getTranslate(el,axis){void 0===axis&&(axis="x");var matrix,curTransform,transformMatrix,window=Object(_ssr_window_esm_mjs__WEBPACK_IMPORTED_MODULE_0__.a)(),el=(el=>{var style,window=Object(_ssr_window_esm_mjs__WEBPACK_IMPORTED_MODULE_0__.a)();return style=(style=!(style=window.getComputedStyle?window.getComputedStyle(el,null):style)&&el.currentStyle?el.currentStyle:style)||el.style})(el);return window.WebKitCSSMatrix?(6<(curTransform=el.transform||el.webkitTransform).split(",").length&&(curTransform=curTransform.split(", ").map(function(a){return a.replace(",",".")}).join(", ")),transformMatrix=new window.WebKitCSSMatrix("none"===curTransform?"":curTransform)):matrix=(transformMatrix=el.MozTransform||el.OTransform||el.MsTransform||el.msTransform||el.transform||el.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===axis&&(curTransform=window.WebKitCSSMatrix?transformMatrix.m41:16===matrix.length?parseFloat(matrix[12]):parseFloat(matrix[4])),(curTransform="y"===axis?window.WebKitCSSMatrix?transformMatrix.m42:16===matrix.length?parseFloat(matrix[13]):parseFloat(matrix[5]):curTransform)||0}function isObject(o){return"object"===_typeof(o)&&null!==o&&o.constructor&&"Object"===Object.prototype.toString.call(o).slice(8,-1)}function extend(){for(var node,to=Object(arguments.length<=0?void 0:arguments[0]),noExtend=["__proto__","constructor","prototype"],i=1;i<arguments.length;i+=1){var nextSource=i<0||arguments.length<=i?void 0:arguments[i];if(null!=nextSource&&(node=nextSource,!("undefined"!=typeof window&&void 0!==window.HTMLElement?node instanceof HTMLElement:node&&(1===node.nodeType||11===node.nodeType))))for(var keysArray=Object.keys(Object(nextSource)).filter(function(key){return noExtend.indexOf(key)<0}),nextIndex=0,len=keysArray.length;nextIndex<len;nextIndex+=1){var nextKey=keysArray[nextIndex],desc=Object.getOwnPropertyDescriptor(nextSource,nextKey);void 0!==desc&&desc.enumerable&&(isObject(to[nextKey])&&isObject(nextSource[nextKey])?nextSource[nextKey].__swiper__?to[nextKey]=nextSource[nextKey]:extend(to[nextKey],nextSource[nextKey]):isObject(to[nextKey])||!isObject(nextSource[nextKey])||(to[nextKey]={},nextSource[nextKey].__swiper__)?to[nextKey]=nextSource[nextKey]:extend(to[nextKey],nextSource[nextKey]))}}return to}function setCSSProperty(el,varName,varValue){el.style.setProperty(varName,varValue)}function animateCSSModeScroll(_ref){function isOutOfBound(current,target){return"next"===dir&&target<=current||"prev"===dir&&current<=target}function _animate(){time=(new Date).getTime(),null===startTime&&(startTime=time);var progress=Math.max(Math.min((time-startTime)/duration,1),0),progress=.5-Math.cos(progress*Math.PI)/2,currentPosition=startPosition+progress*(targetPosition-startPosition);isOutOfBound(currentPosition,targetPosition)&&(currentPosition=targetPosition),swiper.wrapperEl.scrollTo(_defineProperty({},side,currentPosition)),isOutOfBound(currentPosition,targetPosition)?(swiper.wrapperEl.style.overflow="hidden",swiper.wrapperEl.style.scrollSnapType="",setTimeout(function(){swiper.wrapperEl.style.overflow="",swiper.wrapperEl.scrollTo(_defineProperty({},side,currentPosition))}),window.cancelAnimationFrame(swiper.cssModeFrameID)):swiper.cssModeFrameID=window.requestAnimationFrame(_animate)}var time,swiper=_ref.swiper,targetPosition=_ref.targetPosition,side=_ref.side,window=Object(_ssr_window_esm_mjs__WEBPACK_IMPORTED_MODULE_0__.a)(),startPosition=-swiper.translate,startTime=null,duration=swiper.params.speed,dir=(swiper.wrapperEl.style.scrollSnapType="none",window.cancelAnimationFrame(swiper.cssModeFrameID),startPosition<targetPosition?"next":"prev");_animate()}function getSlideTransformEl(slideEl){return slideEl.querySelector(".swiper-slide-transform")||slideEl.shadowRoot&&slideEl.shadowRoot.querySelector(".swiper-slide-transform")||slideEl}function elementChildren(element,selector){return void 0===selector&&(selector=""),_toConsumableArray(element.children).filter(function(el){return el.matches(selector)})}function createElement(tag,classes){void 0===classes&&(classes=[]);var _el$classList,tag=document.createElement(tag);return(_el$classList=tag.classList).add.apply(_el$classList,_toConsumableArray(Array.isArray(classes)?classes:[classes])),tag}function elementOffset(el){var window=Object(_ssr_window_esm_mjs__WEBPACK_IMPORTED_MODULE_0__.a)(),document=Object(_ssr_window_esm_mjs__WEBPACK_IMPORTED_MODULE_0__.b)(),box=el.getBoundingClientRect(),document=document.body,clientTop=el.clientTop||document.clientTop||0,document=el.clientLeft||document.clientLeft||0,scrollTop=el===window?window.scrollY:el.scrollTop,window=el===window?window.scrollX:el.scrollLeft;return{top:box.top+scrollTop-clientTop,left:box.left+window-document}}function elementPrevAll(el,selector){for(var prevEls=[];el.previousElementSibling;){var prev=el.previousElementSibling;(!selector||prev.matches(selector))&&prevEls.push(prev),el=prev}return prevEls}function elementNextAll(el,selector){for(var nextEls=[];el.nextElementSibling;){var next=el.nextElementSibling;(!selector||next.matches(selector))&&nextEls.push(next),el=next}return nextEls}function elementStyle(el,prop){return Object(_ssr_window_esm_mjs__WEBPACK_IMPORTED_MODULE_0__.a)().getComputedStyle(el,null).getPropertyValue(prop)}function elementIndex(el){var i,child=el;if(child){for(i=0;null!==(child=child.previousSibling);)1===child.nodeType&&(i+=1);return i}}function elementParents(el,selector){for(var parents=[],parent=el.parentElement;parent;)selector&&!parent.matches(selector)||parents.push(parent),parent=parent.parentElement;return parents}function elementTransitionEnd(el,callback){callback&&el.addEventListener("transitionend",function fireCallBack(e){e.target===el&&(callback.call(el,e),el.removeEventListener("transitionend",fireCallBack))})}function elementOuterSize(el,size,includeMargins){var window=Object(_ssr_window_esm_mjs__WEBPACK_IMPORTED_MODULE_0__.a)();return includeMargins?el["width"===size?"offsetWidth":"offsetHeight"]+parseFloat(window.getComputedStyle(el,null).getPropertyValue("width"===size?"margin-right":"margin-top"))+parseFloat(window.getComputedStyle(el,null).getPropertyValue("width"===size?"margin-left":"margin-bottom")):el.offsetWidth}},1:function(__webpack_module__,__webpack_exports__,__webpack_require__){function _typeof(o){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}function isObject(obj){return null!==obj&&"object"===_typeof(obj)&&"constructor"in obj&&obj.constructor===Object}function extend(target,src){void 0===target&&(target={}),void 0===src&&(src={}),Object.keys(src).forEach(function(key){void 0===target[key]?target[key]=src[key]:isObject(src[key])&&isObject(target[key])&&0<Object.keys(src[key]).length&&extend(target[key],src[key])})}__webpack_require__.d(__webpack_exports__,"a",function(){return getWindow}),__webpack_require__.d(__webpack_exports__,"b",function(){return getDocument});var ssrDocument={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){var doc="undefined"!=typeof document?document:{};return extend(doc,ssrDocument),doc}var ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(callback){return"undefined"==typeof setTimeout?(callback(),null):setTimeout(callback,0)},cancelAnimationFrame:function(id){"undefined"!=typeof setTimeout&&clearTimeout(id)}};function getWindow(){var win="undefined"!=typeof window?window:{};return extend(win,ssrWindow),win}},13:function(module,exports,__webpack_require__){var _typeof=__webpack_require__(14).default;function _regeneratorRuntime(){module.exports=function(){return e},module.exports.__esModule=!0,module.exports.default=module.exports;var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function(t,e,r){return t[e]=r}}function wrap(t,e,r,n){e=e&&e.prototype instanceof Generator?e:Generator,e=Object.create(e.prototype),n=new Context(n||[]);return o(e,"_invoke",{value:makeInvokeMethod(t,r,n)}),e}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var i={},d=(define(i,a,function(){return this}),Object.getPrototypeOf),d=d&&d(d(values([]))),g=(d&&d!==r&&n.call(d,a)&&(i=d),GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(i));function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t)})})}function AsyncIterator(t,e){function invoke(r,o,i,a){var u,r=tryCatch(t[r],t,o);if("throw"!==r.type)return(o=(u=r.arg).value)&&"object"==_typeof(o)&&n.call(o,"__await")?e.resolve(o.__await).then(function(t){invoke("next",t,i,a)},function(t){invoke("throw",t,i,a)}):e.resolve(o).then(function(t){u.value=t,i(u)},function(t){return invoke("throw",t,i,a)});a(r.arg)}var r;o(this,"_invoke",{value:function(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r)})}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){c=function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;n=tryCatch(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,y;o=n.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}(c,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;c=tryCatch(e,r,n);if("normal"===c.type){if(o=n.done?s:l,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=s,n.method="throw",n.arg=c.arg)}}}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var o,r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return o=-1,(r=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next}).next=r}throw new TypeError(_typeof(e)+" is not iterable")}return o(g,"constructor",{value:GeneratorFunction.prototype=GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===GeneratorFunction||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this}),define(g,"toString",function(){return"[object Generator]"}),e.keys=function(t){var n,e=Object(t),r=[];for(n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;0<=o;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,o,r=this.tryEntries[e];if(r.tryLoc===t)return"throw"===(n=r.completion).type&&(o=n.arg,resetTryEntry(r)),o}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}module.exports=_regeneratorRuntime,module.exports.__esModule=!0,module.exports.default=module.exports},14:function(module,exports){function _typeof(o){return module.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},module.exports.__esModule=!0,module.exports.default=module.exports,_typeof(o)}module.exports=_typeof,module.exports.__esModule=!0,module.exports.default=module.exports},15:function(module,__webpack_exports__,__webpack_require__){__webpack_require__(16)},16:function(module,exports,__webpack_require__){},17:function(module,__webpack_exports__,__webpack_require__){__webpack_require__(18);var swiper__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8),swiper_modules__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(7);window.addEventListener("load",function(){new swiper__WEBPACK_IMPORTED_MODULE_1__.a(".mn__tmw .swiper",{modules:[swiper_modules__WEBPACK_IMPORTED_MODULE_2__.a,swiper_modules__WEBPACK_IMPORTED_MODULE_2__.c],slidesPerView:"auto",spaceBetween:30,autoplay:{delay:4e3,disableOnInteraction:!1},navigation:{nextEl:".swiper-tmw-button-next",prevEl:".swiper-tmw-button-prev"}})})},18:function(module,exports,__webpack_require__){},19:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__;__webpack_require__=[__webpack_require__(9)],void 0!==(exports="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=function($){$.extend($.fn,{validate:function(options){if(!this.length){if(options&&options.debug&&window.console)console.warn("Nothing selected, can't validate, returning nothing.");return}var validator=$.data(this[0],"validator");if(validator)return validator;this.attr("novalidate","novalidate");validator=new $.validator(options,this[0]);$.data(this[0],"validator",validator);if(validator.settings.onsubmit){this.on("click.validate",":submit",function(event){validator.submitButton=event.currentTarget;if($(this).hasClass("cancel"))validator.cancelSubmit=true;if($(this).attr("formnovalidate")!==undefined)validator.cancelSubmit=true});this.on("submit.validate",function(event){if(validator.settings.debug)event.preventDefault();function handle(){var hidden,result;if(validator.submitButton&&(validator.settings.submitHandler||validator.formSubmitted))hidden=$("<input type='hidden'/>").attr("name",validator.submitButton.name).val($(validator.submitButton).val()).appendTo(validator.currentForm);if(validator.settings.submitHandler&&!validator.settings.debug){result=validator.settings.submitHandler.call(validator,validator.currentForm,event);if(hidden)hidden.remove();if(result!==undefined)return result;return false}return true}if(validator.cancelSubmit){validator.cancelSubmit=false;return handle()}if(validator.form()){if(validator.pendingRequest){validator.formSubmitted=true;return false}return handle()}else{validator.focusInvalid();return false}})}return validator},valid:function(){var valid,validator,errorList;if($(this[0]).is("form"))valid=this.validate().form();else{errorList=[];valid=true;validator=$(this[0].form).validate();this.each(function(){valid=validator.element(this)&&valid;if(!valid)errorList=errorList.concat(validator.errorList)});validator.errorList=errorList}return valid},rules:function(command,argument){var element=this[0],isContentEditable=typeof this.attr("contenteditable")!=="undefined"&&this.attr("contenteditable")!=="false",settings,staticRules,existingRules,data,param,filtered;if(element==null)return;if(!element.form&&isContentEditable){element.form=this.closest("form")[0];element.name=this.attr("name")}if(element.form==null)return;if(command){settings=$.data(element.form,"validator").settings;staticRules=settings.rules;existingRules=$.validator.staticRules(element);switch(command){case"add":$.extend(existingRules,$.validator.normalizeRule(argument));delete existingRules.messages;staticRules[element.name]=existingRules;if(argument.messages)settings.messages[element.name]=$.extend(settings.messages[element.name],argument.messages);break;case"remove":if(!argument){delete staticRules[element.name];return existingRules}filtered={};$.each(argument.split(/\s/),function(index,method){filtered[method]=existingRules[method];delete existingRules[method]});return filtered}}data=$.validator.normalizeRules($.extend({},$.validator.classRules(element),$.validator.attributeRules(element),$.validator.dataRules(element),$.validator.staticRules(element)),element);if(data.required){param=data.required;delete data.required;data=$.extend({required:param},data)}if(data.remote){param=data.remote;delete data.remote;data=$.extend(data,{remote:param})}return data}});var trim=function(str){return str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},pendingRequests=($.extend($.expr.pseudos||$.expr[":"],{blank:function(a){return!trim(""+$(a).val())},filled:function(a){var val=$(a).val();return val!==null&&!!trim(""+val)},unchecked:function(a){return!$(a).prop("checked")}}),$.validator=function(options,form){this.settings=$.extend(true,{},$.validator.defaults,options);this.currentForm=form;this.init()},$.validator.format=function(source,params){if(arguments.length===1)return function(){var args=$.makeArray(arguments);args.unshift(source);return $.validator.format.apply(this,args)};if(params===undefined)return source;if(arguments.length>2&&params.constructor!==Array)params=$.makeArray(arguments).slice(1);if(params.constructor!==Array)params=[params];$.each(params,function(i,n){source=source.replace(new RegExp("\\{"+i+"\\}","g"),function(){return n})});return source},$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:false,focusInvalid:true,errorContainer:$([]),errorLabelContainer:$([]),onsubmit:true,ignore:":hidden",ignoreTitle:false,customElements:[],onfocusin:function(element){this.lastActive=element;if(this.settings.focusCleanup){if(this.settings.unhighlight)this.settings.unhighlight.call(this,element,this.settings.errorClass,this.settings.validClass);this.hideThese(this.errorsFor(element))}},onfocusout:function(element){if(!this.checkable(element)&&(element.name in this.submitted||!this.optional(element)))this.element(element)},onkeyup:function(element,event){var excludedKeys=[16,17,18,20,35,36,37,38,39,40,45,144,225];if(event.which===9&&this.elementValue(element)===""||$.inArray(event.keyCode,excludedKeys)!==-1)return;else if(element.name in this.submitted||element.name in this.invalid)this.element(element)},onclick:function(element){if(element.name in this.submitted)this.element(element);else if(element.parentNode.name in this.submitted)this.element(element.parentNode)},highlight:function(element,errorClass,validClass){if(element.type==="radio")this.findByName(element.name).addClass(errorClass).removeClass(validClass);else $(element).addClass(errorClass).removeClass(validClass)},unhighlight:function(element,errorClass,validClass){if(element.type==="radio")this.findByName(element.name).removeClass(errorClass).addClass(validClass);else $(element).removeClass(errorClass).addClass(validClass)}},setDefaults:function(settings){$.extend($.validator.defaults,settings)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:$.validator.format("Please enter no more than {0} characters."),minlength:$.validator.format("Please enter at least {0} characters."),rangelength:$.validator.format("Please enter a value between {0} and {1} characters long."),range:$.validator.format("Please enter a value between {0} and {1}."),max:$.validator.format("Please enter a value less than or equal to {0}."),min:$.validator.format("Please enter a value greater than or equal to {0}."),step:$.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=$(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||$(this.currentForm);this.containers=$(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var currentForm=this.currentForm,groups=this.groups={},rules;$.each(this.settings.groups,function(key,value){if(typeof value==="string")value=value.split(/\s/);$.each(value,function(index,name){groups[name]=key})});rules=this.settings.rules;$.each(rules,function(key,value){rules[key]=$.validator.normalizeRule(value)});function delegate(event){var isContentEditable=typeof $(this).attr("contenteditable")!=="undefined"&&$(this).attr("contenteditable")!=="false";if(!this.form&&isContentEditable){this.form=$(this).closest("form")[0];this.name=$(this).attr("name")}if(currentForm!==this.form)return;var validator=$.data(this.form,"validator"),eventType="on"+event.type.replace(/^validate/,""),settings=validator.settings;if(settings[eventType]&&!$(this).is(settings.ignore))settings[eventType].call(validator,this,event)}var focusListeners=[":text","[type='password']","[type='file']","select","textarea","[type='number']","[type='search']","[type='tel']","[type='url']","[type='email']","[type='datetime']","[type='date']","[type='month']","[type='week']","[type='time']","[type='datetime-local']","[type='range']","[type='color']","[type='radio']","[type='checkbox']","[contenteditable]","[type='button']"];var clickListeners=["select","option","[type='radio']","[type='checkbox']"];$(this.currentForm).on("focusin.validate focusout.validate keyup.validate",focusListeners.concat(this.settings.customElements).join(", "),delegate).on("click.validate",clickListeners.concat(this.settings.customElements).join(", "),delegate);if(this.settings.invalidHandler)$(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){this.checkForm();$.extend(this.submitted,this.errorMap);this.invalid=$.extend({},this.errorMap);if(!this.valid())$(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var i=0,elements=this.currentElements=this.elements();elements[i];i++)this.check(elements[i]);return this.valid()},element:function(element){var cleanElement=this.clean(element),checkElement=this.validationTargetFor(cleanElement),v=this,result=true,rs,group;if(checkElement===undefined)delete this.invalid[cleanElement.name];else{this.prepareElement(checkElement);this.currentElements=$(checkElement);group=this.groups[checkElement.name];if(group)$.each(this.groups,function(name,testgroup){if(testgroup===group&&name!==checkElement.name){cleanElement=v.validationTargetFor(v.clean(v.findByName(name)));if(cleanElement&&cleanElement.name in v.invalid){v.currentElements.push(cleanElement);result=v.check(cleanElement)&&result}}});rs=this.check(checkElement)!==false;result=result&&rs;if(rs)this.invalid[checkElement.name]=false;else this.invalid[checkElement.name]=true;if(!this.numberOfInvalids())this.toHide=this.toHide.add(this.containers);this.showErrors();$(element).attr("aria-invalid",!rs)}return result},showErrors:function(errors){if(errors){var validator=this;$.extend(this.errorMap,errors);this.errorList=$.map(this.errorMap,function(message,name){return{message:message,element:validator.findByName(name)[0]}});this.successList=$.grep(this.successList,function(element){return!(element.name in errors)})}if(this.settings.showErrors)this.settings.showErrors.call(this,this.errorMap,this.errorList);else this.defaultShowErrors()},resetForm:function(){if($.fn.resetForm)$(this.currentForm).resetForm();this.invalid={};this.submitted={};this.prepareForm();this.hideErrors();var elements=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(elements)},resetElements:function(elements){var i;if(this.settings.unhighlight)for(i=0;elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,"");this.findByName(elements[i].name).removeClass(this.settings.validClass)}else elements.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(obj){var count=0,i;for(i in obj)if(obj[i]!==undefined&&obj[i]!==null&&obj[i]!==false)count++;return count},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(errors){errors.not(this.containers).text("");this.addWrapper(errors).hide()},valid:function(){return this.size()===0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{$(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch(e){}},findLastActive:function(){var lastActive=this.lastActive;return lastActive&&$.grep(this.errorList,function(n){return n.element.name===lastActive.name}).length===1&&lastActive},elements:function(){var validator=this,rulesCache={},selectors=["input","select","textarea","[contenteditable]"];return $(this.currentForm).find(selectors.concat(this.settings.customElements).join(", ")).not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var name=this.name||$(this).attr("name");var isContentEditable=typeof $(this).attr("contenteditable")!=="undefined"&&$(this).attr("contenteditable")!=="false";if(!name&&validator.settings.debug&&window.console)console.error("%o has no name assigned",this);if(isContentEditable){this.form=$(this).closest("form")[0];this.name=name}if(this.form!==validator.currentForm)return false;if(name in rulesCache||!validator.objectLength($(this).rules()))return false;rulesCache[name]=true;return true})},clean:function(selector){return $(selector)[0]},errors:function(){var errorClass=this.settings.errorClass.split(" ").join(".");return $(this.settings.errorElement+"."+errorClass,this.errorContext)},resetInternals:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=$([]);this.toHide=$([])},reset:function(){this.resetInternals();this.currentElements=$([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(element){this.reset();this.toHide=this.errorsFor(element)},elementValue:function(element){var $element=$(element),type=element.type,isContentEditable=typeof $element.attr("contenteditable")!=="undefined"&&$element.attr("contenteditable")!=="false",val,idx;if(type==="radio"||type==="checkbox")return this.findByName(element.name).filter(":checked").val();else if(type==="number"&&typeof element.validity!=="undefined")return element.validity.badInput?"NaN":$element.val();if(isContentEditable)val=$element.text();else val=$element.val();if(type==="file"){if(val.substr(0,12)==="C:\\fakepath\\")return val.substr(12);idx=val.lastIndexOf("/");if(idx>=0)return val.substr(idx+1);idx=val.lastIndexOf("\\");if(idx>=0)return val.substr(idx+1);return val}if(typeof val==="string")return val.replace(/\r/g,"");return val},check:function(element){element=this.validationTargetFor(this.clean(element));var rules=$(element).rules(),rulesCount=$.map(rules,function(n,i){return i}).length,dependencyMismatch=false,val=this.elementValue(element),result,method,rule,normalizer;this.abortRequest(element);if(typeof rules.normalizer==="function")normalizer=rules.normalizer;else if(typeof this.settings.normalizer==="function")normalizer=this.settings.normalizer;if(normalizer){val=normalizer.call(element,val);delete rules.normalizer}for(method in rules){rule={method:method,parameters:rules[method]};try{result=$.validator.methods[method].call(this,val,element,rule.parameters);if(result==="dependency-mismatch"&&rulesCount===1){dependencyMismatch=true;continue}dependencyMismatch=false;if(result==="pending"){this.toHide=this.toHide.not(this.errorsFor(element));return}if(!result){this.formatAndAdd(element,rule);return false}}catch(e){if(this.settings.debug&&window.console)console.log("Exception occurred when checking element "+element.id+", check the '"+rule.method+"' method.",e);if(e instanceof TypeError)e.message+=".  Exception occurred when checking element "+element.id+", check the '"+rule.method+"' method.";throw e}}if(dependencyMismatch)return;if(this.objectLength(rules))this.successList.push(element);return true},customDataMessage:function(element,method){return $(element).data("msg"+method.charAt(0).toUpperCase()+method.substring(1).toLowerCase())||$(element).data("msg")},customMessage:function(name,method){var m=this.settings.messages[name];return m&&(m.constructor===String?m:m[method])},findDefined:function(){for(var i=0;i<arguments.length;i++)if(arguments[i]!==undefined)return arguments[i];return undefined},defaultMessage:function(element,rule){if(typeof rule==="string")rule={method:rule};var message=this.findDefined(this.customMessage(element.name,rule.method),this.customDataMessage(element,rule.method),!this.settings.ignoreTitle&&element.title||undefined,$.validator.messages[rule.method],"<strong>Warning: No message defined for "+element.name+"</strong>"),theregex=/\$?\{(\d+)\}/g;if(typeof message==="function")message=message.call(this,rule.parameters,element);else if(theregex.test(message))message=$.validator.format(message.replace(theregex,"{$1}"),rule.parameters);return message},formatAndAdd:function(element,rule){var message=this.defaultMessage(element,rule);this.errorList.push({message:message,element:element,method:rule.method});this.errorMap[element.name]=message;this.submitted[element.name]=message},addWrapper:function(toToggle){if(this.settings.wrapper)toToggle=toToggle.add(toToggle.parent(this.settings.wrapper));return toToggle},defaultShowErrors:function(){var i,elements,error;for(i=0;this.errorList[i];i++){error=this.errorList[i];if(this.settings.highlight)this.settings.highlight.call(this,error.element,this.settings.errorClass,this.settings.validClass);this.showLabel(error.element,error.message)}if(this.errorList.length)this.toShow=this.toShow.add(this.containers);if(this.settings.success)for(i=0;this.successList[i];i++)this.showLabel(this.successList[i]);if(this.settings.unhighlight)for(i=0,elements=this.validElements();elements[i];i++)this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return $(this.errorList).map(function(){return this.element})},showLabel:function(element,message){var place,group,errorID,v,error=this.errorsFor(element),elementID=this.idOrName(element),describedBy=$(element).attr("aria-describedby");if(error.length){error.removeClass(this.settings.validClass).addClass(this.settings.errorClass);if(this.settings&&this.settings.escapeHtml)error.text(message||"");else error.html(message||"")}else{error=$("<"+this.settings.errorElement+">").attr("id",elementID+"-error").addClass(this.settings.errorClass);if(this.settings&&this.settings.escapeHtml)error.text(message||"");else error.html(message||"");place=error;if(this.settings.wrapper)place=error.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();if(this.labelContainer.length)this.labelContainer.append(place);else if(this.settings.errorPlacement)this.settings.errorPlacement.call(this,place,$(element));else place.insertAfter(element);if(error.is("label"))error.attr("for",elementID);else if(error.parents("label[for='"+this.escapeCssMeta(elementID)+"']").length===0){errorID=error.attr("id");if(!describedBy)describedBy=errorID;else if(!describedBy.match(new RegExp("\\b"+this.escapeCssMeta(errorID)+"\\b")))describedBy+=" "+errorID;$(element).attr("aria-describedby",describedBy);group=this.groups[element.name];if(group){v=this;$.each(v.groups,function(name,testgroup){if(testgroup===group)$("[name='"+v.escapeCssMeta(name)+"']",v.currentForm).attr("aria-describedby",error.attr("id"))})}}}if(!message&&this.settings.success){error.text("");if(typeof this.settings.success==="string")error.addClass(this.settings.success);else this.settings.success(error,element)}this.toShow=this.toShow.add(error)},errorsFor:function(element){var name=this.escapeCssMeta(this.idOrName(element)),describer=$(element).attr("aria-describedby"),selector="label[for='"+name+"'], label[for='"+name+"'] *";if(describer)selector=selector+", #"+this.escapeCssMeta(describer).replace(/\s+/g,", #");return this.errors().filter(selector)},escapeCssMeta:function(string){if(string===undefined)return"";return string.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(element){return this.groups[element.name]||(this.checkable(element)?element.name:element.id||element.name)},validationTargetFor:function(element){if(this.checkable(element))element=this.findByName(element.name);return $(element).not(this.settings.ignore)[0]},checkable:function(element){return/radio|checkbox/i.test(element.type)},findByName:function(name){return $(this.currentForm).find("[name='"+this.escapeCssMeta(name)+"']")},getLength:function(value,element){switch(element.nodeName.toLowerCase()){case"select":return $("option:selected",element).length;case"input":if(this.checkable(element))return this.findByName(element.name).filter(":checked").length}return value.length},depend:function(param,element){return this.dependTypes[typeof param]?this.dependTypes[typeof param](param,element):true},dependTypes:{boolean:function(param){return param},string:function(param,element){return!!$(param,element.form).length},function:function(param,element){return param(element)}},optional:function(element){var val=this.elementValue(element);return!$.validator.methods.required.call(this,val,element)&&"dependency-mismatch"},elementAjaxPort:function(element){return"validate"+element.name},startRequest:function(element){if(!this.pending[element.name]){this.pendingRequest++;$(element).addClass(this.settings.pendingClass);this.pending[element.name]=true}},stopRequest:function(element,valid){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[element.name];$(element).removeClass(this.settings.pendingClass);if(valid&&this.pendingRequest===0&&this.formSubmitted&&this.form()&&this.pendingRequest===0){$(this.currentForm).trigger("submit");if(this.submitButton)$("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove();this.formSubmitted=false}else if(!valid&&this.pendingRequest===0&&this.formSubmitted){$(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false}},abortRequest:function(element){var port;if(this.pending[element.name]){port=this.elementAjaxPort(element);$.ajaxAbort(port);this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[element.name];$(element).removeClass(this.settings.pendingClass)}},previousValue:function(element,method){method=typeof method==="string"&&method||"remote";return $.data(element,"previousValue")||$.data(element,"previousValue",{old:null,valid:true,message:this.defaultMessage(element,{method:method})})},destroy:function(){this.resetForm();$(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},number:{number:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(className,rules){if(className.constructor===String)this.classRuleSettings[className]=rules;else $.extend(this.classRuleSettings,className)},classRules:function(element){var rules={},classes=$(element).attr("class");if(classes)$.each(classes.split(" "),function(){if(this in $.validator.classRuleSettings)$.extend(rules,$.validator.classRuleSettings[this])});return rules},normalizeAttributeRule:function(rules,type,method,value){if(/min|max|step/.test(method)&&(type===null||/number|range|text/.test(type))){value=Number(value);if(isNaN(value))value=undefined}if(value||value===0)rules[method]=value;else if(type===method&&type!=="range")rules[type==="date"?"dateISO":method]=true},attributeRules:function(element){var rules={},$element=$(element),type=element.getAttribute("type"),method,value;for(method in $.validator.methods){if(method==="required"){value=element.getAttribute(method);if(value==="")value=true;value=!!value}else value=$element.attr(method);this.normalizeAttributeRule(rules,type,method,value)}if(rules.maxlength&&/-1|2147483647|524288/.test(rules.maxlength))delete rules.maxlength;return rules},dataRules:function(element){var rules={},$element=$(element),type=element.getAttribute("type"),method,value;for(method in $.validator.methods){value=$element.data("rule"+method.charAt(0).toUpperCase()+method.substring(1).toLowerCase());if(value==="")value=true;this.normalizeAttributeRule(rules,type,method,value)}return rules},staticRules:function(element){var rules={},validator=$.data(element.form,"validator");if(validator.settings.rules)rules=$.validator.normalizeRule(validator.settings.rules[element.name])||{};return rules},normalizeRules:function(rules,element){$.each(rules,function(prop,val){if(val===false){delete rules[prop];return}if(val.param||val.depends){var keepRule=true;switch(typeof val.depends){case"string":keepRule=!!$(val.depends,element.form).length;break;case"function":keepRule=val.depends.call(element,element);break}if(keepRule)rules[prop]=val.param!==undefined?val.param:true;else{$.data(element.form,"validator").resetElements($(element));delete rules[prop]}}});$.each(rules,function(rule,parameter){rules[rule]=typeof parameter==="function"&&rule!=="normalizer"?parameter(element):parameter});$.each(["minlength","maxlength"],function(){if(rules[this])rules[this]=Number(rules[this])});$.each(["rangelength","range"],function(){var parts;if(rules[this])if(Array.isArray(rules[this]))rules[this]=[Number(rules[this][0]),Number(rules[this][1])];else if(typeof rules[this]==="string"){parts=rules[this].replace(/[\[\]]/g,"").split(/[\s,]+/);rules[this]=[Number(parts[0]),Number(parts[1])]}});if($.validator.autoCreateRanges){if(rules.min!=null&&rules.max!=null){rules.range=[rules.min,rules.max];delete rules.min;delete rules.max}if(rules.minlength!=null&&rules.maxlength!=null){rules.rangelength=[rules.minlength,rules.maxlength];delete rules.minlength;delete rules.maxlength}}return rules},normalizeRule:function(data){if(typeof data==="string"){var transformed={};$.each(data.split(/\s/),function(){transformed[this]=true});data=transformed}return data},addMethod:function(name,method,message){$.validator.methods[name]=method;$.validator.messages[name]=message!==undefined?message:$.validator.messages[name];if(method.length<3)$.validator.addClassRules(name,$.validator.normalizeRule(name))},methods:{required:function(value,element,param){if(!this.depend(param,element))return"dependency-mismatch";if(element.nodeName.toLowerCase()==="select"){var val=$(element).val();return val&&val.length>0}if(this.checkable(element))return this.getLength(value,element)>0;return value!==undefined&&value!==null&&value.length>0},email:function(value,element){return this.optional(element)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(value)},url:function(value,element){return this.optional(element)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(value)},date:function(){var called=false;return function(value,element){if(!called){called=true;if(this.settings.debug&&window.console)console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\n"+"Please don't use it, since it relies on the Date constructor, which\n"+"behaves very differently across browsers and locales. Use `dateISO`\n"+"instead or one of the locale specific methods in `localizations/`\n"+"and `additional-methods.js`.")}return this.optional(element)||!/Invalid|NaN/.test(new Date(value).toString())}}(),dateISO:function(value,element){return this.optional(element)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value)},number:function(value,element){return this.optional(element)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:-?\.\d+)?$/.test(value)},digits:function(value,element){return this.optional(element)||/^\d+$/.test(value)},minlength:function(value,element,param){var length=Array.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||length>=param},maxlength:function(value,element,param){var length=Array.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||length<=param},rangelength:function(value,element,param){var length=Array.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||length>=param[0]&&length<=param[1]},min:function(value,element,param){return this.optional(element)||value>=param},max:function(value,element,param){return this.optional(element)||value<=param},range:function(value,element,param){return this.optional(element)||value>=param[0]&&value<=param[1]},step:function(value,element,param){var type=$(element).attr("type"),errorMessage="Step attribute on input type "+type+" is not supported.",supportedTypes=["text","number","range"],re=new RegExp("\\b"+type+"\\b"),notSupported=type&&!re.test(supportedTypes.join()),decimalPlaces=function(num){var match=(""+num).match(/(?:\.(\d+))?$/);if(!match)return 0;return match[1]?match[1].length:0},toInt=function(num){return Math.round(num*Math.pow(10,decimals))},valid=true,decimals;if(notSupported)throw new Error(errorMessage);decimals=decimalPlaces(param);if(decimalPlaces(value)>decimals||toInt(value)%toInt(param)!==0)valid=false;return this.optional(element)||valid},equalTo:function(value,element,param){var target=$(param);if(this.settings.onfocusout&&target.not(".validate-equalTo-blur").length)target.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){$(element).valid()});return value===target.val()},remote:function(value,element,param,method){if(this.optional(element))return"dependency-mismatch";method=typeof method==="string"&&method||"remote";var previous=this.previousValue(element,method),validator,data,optionDataString;if(!this.settings.messages[element.name])this.settings.messages[element.name]={};previous.originalMessage=previous.originalMessage||this.settings.messages[element.name][method];this.settings.messages[element.name][method]=previous.message;param=typeof param==="string"&&{url:param}||param;optionDataString=$.param($.extend({data:value},param.data));if(previous.valid!==null&&previous.old===optionDataString)return previous.valid;previous.old=optionDataString;previous.valid=null;validator=this;this.startRequest(element);data={};data[element.name]=value;$.ajax($.extend(true,{mode:"abort",port:this.elementAjaxPort(element),dataType:"json",data:data,context:validator.currentForm,success:function(response){var valid=response===true||response==="true",errors,message,submitted;validator.settings.messages[element.name][method]=previous.originalMessage;if(valid){submitted=validator.formSubmitted;validator.toHide=validator.errorsFor(element);validator.formSubmitted=submitted;validator.successList.push(element);validator.invalid[element.name]=false;validator.showErrors()}else{errors={};message=response||validator.defaultMessage(element,{method:method,parameters:value});errors[element.name]=previous.message=message;validator.invalid[element.name]=true;validator.showErrors(errors)}previous.valid=valid;validator.stopRequest(element,valid)}},param));return"pending"}}}),{}),ajax;if($.ajaxPrefilter)$.ajaxPrefilter(function(settings,_,xhr){var port=settings.port;if(settings.mode==="abort"){$.ajaxAbort(port);pendingRequests[port]=xhr}});else{ajax=$.ajax;$.ajax=function(settings){var mode=("mode"in settings?settings:$.ajaxSettings).mode,port=("port"in settings?settings:$.ajaxSettings).port;if(mode==="abort"){$.ajaxAbort(port);pendingRequests[port]=ajax.apply(this,arguments);return pendingRequests[port]}return ajax.apply(this,arguments)}}return $.ajaxAbort=function(port){if(pendingRequests[port]){pendingRequests[port].abort();delete pendingRequests[port]}},$})?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__webpack_require__):__WEBPACK_AMD_DEFINE_FACTORY__)&&(module.exports=exports)},3:function(module,exports,__webpack_require__){__webpack_require__=__webpack_require__(13)();module.exports=__webpack_require__;try{regeneratorRuntime=__webpack_require__}catch(accidentalStrictMode){"object"==typeof globalThis?globalThis.regeneratorRuntime=__webpack_require__:Function("r","regeneratorRuntime = r")(__webpack_require__)}},6:function(module,exports){function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}module.exports=function(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)})}},module.exports.__esModule=!0,module.exports.default=module.exports},7:function(__webpack_module__,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"c",function(){return Navigation}),__webpack_require__.d(__webpack_exports__,"d",function(){return Pagination}),__webpack_require__.d(__webpack_exports__,"a",function(){return Autoplay}),__webpack_require__.d(__webpack_exports__,"e",function(){return Thumb}),__webpack_require__.d(__webpack_exports__,"b",function(){return Grid});var ssr_window_esm=__webpack_require__(1),utils=__webpack_require__(0);function createElementIfNotDefined(swiper,originalParams,params,checkProps){return swiper.params.createElements&&Object.keys(checkProps).forEach(function(key){var element;params[key]||!0!==params.auto||((element=Object(utils.e)(swiper.el,".".concat(checkProps[key]))[0])||((element=Object(utils.c)("div",checkProps[key])).className=checkProps[key],swiper.el.append(element)),params[key]=element,originalParams[key]=element)}),params}function navigation_toConsumableArray(r){return(r=>{if(Array.isArray(r))return navigation_arrayLikeToArray(r)})(r)||(r=>{if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)})(r)||((r,a)=>{var t;if(r)return"string"==typeof r?navigation_arrayLikeToArray(r,a):"Map"===(t="Object"===(t={}.toString.call(r).slice(8,-1))&&r.constructor?r.constructor.name:t)||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?navigation_arrayLikeToArray(r,a):void 0})(r)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function navigation_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function Navigation(_ref){var swiper=_ref.swiper,extendParams=_ref.extendParams,on=_ref.on,emit=_ref.emit,makeElementsArray=(extendParams({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),swiper.navigation={nextEl:null,prevEl:null},function(el){return(Array.isArray(el)?el:[el]).filter(function(e){return!!e})});function getEl(el){var res;return!(el&&"string"==typeof el&&swiper.isElement&&(res=swiper.el.querySelector(el)))&&(el&&("string"==typeof el&&(res=navigation_toConsumableArray(document.querySelectorAll(el))),swiper.params.uniqueNavElements)&&"string"==typeof el&&1<res.length&&1===swiper.el.querySelectorAll(el).length&&(res=swiper.el.querySelector(el)),el)&&!res?el:res}function toggleEl(el,disabled){var params=swiper.params.navigation;(el=makeElementsArray(el)).forEach(function(subEl){var _subEl$classList;subEl&&((_subEl$classList=subEl.classList)[disabled?"add":"remove"].apply(_subEl$classList,navigation_toConsumableArray(params.disabledClass.split(" "))),"BUTTON"===subEl.tagName&&(subEl.disabled=disabled),swiper.params.watchOverflow)&&swiper.enabled&&subEl.classList[swiper.isLocked?"add":"remove"](params.lockClass)})}function update(){var _swiper$navigation=swiper.navigation,nextEl=_swiper$navigation.nextEl,_swiper$navigation=_swiper$navigation.prevEl;swiper.params.loop?(toggleEl(_swiper$navigation,!1),toggleEl(nextEl,!1)):(toggleEl(_swiper$navigation,swiper.isBeginning&&!swiper.params.rewind),toggleEl(nextEl,swiper.isEnd&&!swiper.params.rewind))}function onPrevClick(e){e.preventDefault(),swiper.isBeginning&&!swiper.params.loop&&!swiper.params.rewind||(swiper.slidePrev(),emit("navigationPrev"))}function onNextClick(e){e.preventDefault(),swiper.isEnd&&!swiper.params.loop&&!swiper.params.rewind||(swiper.slideNext(),emit("navigationNext"))}function init(){var nextEl,prevEl,initButton,params=swiper.params.navigation;swiper.params.navigation=createElementIfNotDefined(swiper,swiper.originalParams.navigation,swiper.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),(params.nextEl||params.prevEl)&&(nextEl=getEl(params.nextEl),prevEl=getEl(params.prevEl),Object.assign(swiper.navigation,{nextEl:nextEl,prevEl:prevEl}),nextEl=makeElementsArray(nextEl),prevEl=makeElementsArray(prevEl),initButton=function(el,dir){el&&el.addEventListener("click","next"===dir?onNextClick:onPrevClick),!swiper.enabled&&el&&(dir=el.classList).add.apply(dir,navigation_toConsumableArray(params.lockClass.split(" ")))},nextEl.forEach(function(el){return initButton(el,"next")}),prevEl.forEach(function(el){return initButton(el,"prev")}))}function destroy(){function destroyButton(el,dir){el.removeEventListener("click","next"===dir?onNextClick:onPrevClick),(dir=el.classList).remove.apply(dir,navigation_toConsumableArray(swiper.params.navigation.disabledClass.split(" ")))}var _swiper$navigation2=swiper.navigation,nextEl=_swiper$navigation2.nextEl,_swiper$navigation2=_swiper$navigation2.prevEl,nextEl=makeElementsArray(nextEl),_swiper$navigation2=makeElementsArray(_swiper$navigation2);nextEl.forEach(function(el){return destroyButton(el,"next")}),_swiper$navigation2.forEach(function(el){return destroyButton(el,"prev")})}on("init",function(){(!1===swiper.params.navigation.enabled?disable:(init(),update))()}),on("toEdge fromEdge lock unlock",function(){update()}),on("destroy",function(){destroy()}),on("enable disable",function(){var _swiper$navigation3=swiper.navigation,nextEl=_swiper$navigation3.nextEl,_swiper$navigation3=_swiper$navigation3.prevEl,nextEl=makeElementsArray(nextEl),_swiper$navigation3=makeElementsArray(_swiper$navigation3);swiper.enabled?update():[].concat(navigation_toConsumableArray(nextEl),navigation_toConsumableArray(_swiper$navigation3)).filter(function(el){return!!el}).forEach(function(el){return el.classList.add(swiper.params.navigation.lockClass)})}),on("click",function(_s,e){var isHidden,_swiper$navigation4=swiper.navigation,nextEl=_swiper$navigation4.nextEl,_swiper$navigation4=_swiper$navigation4.prevEl,nextEl=makeElementsArray(nextEl),_swiper$navigation4=makeElementsArray(_swiper$navigation4),e=e.target;!swiper.params.navigation.hideOnClick||_swiper$navigation4.includes(e)||nextEl.includes(e)||swiper.pagination&&swiper.params.pagination&&swiper.params.pagination.clickable&&(swiper.pagination.el===e||swiper.pagination.el.contains(e))||(nextEl.length?isHidden=nextEl[0].classList.contains(swiper.params.navigation.hiddenClass):_swiper$navigation4.length&&(isHidden=_swiper$navigation4[0].classList.contains(swiper.params.navigation.hiddenClass)),emit(!0===isHidden?"navigationShow":"navigationHide"),[].concat(navigation_toConsumableArray(nextEl),navigation_toConsumableArray(_swiper$navigation4)).filter(function(el){return!!el}).forEach(function(el){return el.classList.toggle(swiper.params.navigation.hiddenClass)}))});var disable=function(){var _swiper$el$classList2;(_swiper$el$classList2=swiper.el.classList).add.apply(_swiper$el$classList2,navigation_toConsumableArray(swiper.params.navigation.navigationDisabledClass.split(" "))),destroy()};Object.assign(swiper.navigation,{enable:function(){var _swiper$el$classList;(_swiper$el$classList=swiper.el.classList).remove.apply(_swiper$el$classList,navigation_toConsumableArray(swiper.params.navigation.navigationDisabledClass.split(" "))),init(),update()},disable:disable,update:update,init:init,destroy:destroy})}function classesToSelector(classes){return".".concat((classes=void 0===classes?"":classes).trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,"."))}function pagination_toConsumableArray(r){return(r=>{if(Array.isArray(r))return pagination_arrayLikeToArray(r)})(r)||(r=>{if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)})(r)||((r,a)=>{var t;if(r)return"string"==typeof r?pagination_arrayLikeToArray(r,a):"Map"===(t="Object"===(t={}.toString.call(r).slice(8,-1))&&r.constructor?r.constructor.name:t)||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?pagination_arrayLikeToArray(r,a):void 0})(r)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function pagination_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function Pagination(_ref){function makeElementsArray(el){return(Array.isArray(el)?el:[el]).filter(function(e){return!!e})}var bulletSize,swiper=_ref.swiper,extendParams=_ref.extendParams,on=_ref.on,emit=_ref.emit,_ref="swiper-pagination",dynamicBulletIndex=(extendParams({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(number){return number},formatFractionTotal:function(number){return number},bulletClass:"".concat(_ref,"-bullet"),bulletActiveClass:"".concat(_ref,"-bullet-active"),modifierClass:"".concat(_ref,"-"),currentClass:"".concat(_ref,"-current"),totalClass:"".concat(_ref,"-total"),hiddenClass:"".concat(_ref,"-hidden"),progressbarFillClass:"".concat(_ref,"-progressbar-fill"),progressbarOppositeClass:"".concat(_ref,"-progressbar-opposite"),clickableClass:"".concat(_ref,"-clickable"),lockClass:"".concat(_ref,"-lock"),horizontalClass:"".concat(_ref,"-horizontal"),verticalClass:"".concat(_ref,"-vertical"),paginationDisabledClass:"".concat(_ref,"-disabled")}}),swiper.pagination={el:null,bullets:[]},0);function isPaginationDisabled(){return!swiper.params.pagination.el||!swiper.pagination.el||Array.isArray(swiper.pagination.el)&&0===swiper.pagination.el.length}function setSideBullets(bulletEl,position){var bulletActiveClass=swiper.params.pagination.bulletActiveClass;(bulletEl=bulletEl&&bulletEl["".concat("prev"===position?"previous":"next","ElementSibling")])&&(bulletEl.classList.add("".concat(bulletActiveClass,"-").concat(position)),bulletEl=bulletEl["".concat("prev"===position?"previous":"next","ElementSibling")])&&bulletEl.classList.add("".concat(bulletActiveClass,"-").concat(position,"-").concat(position))}function onBulletClick(e){var realIndex,newSlideIndex,loopFix,bulletEl=e.target.closest(classesToSelector(swiper.params.pagination.bulletClass));bulletEl&&(e.preventDefault(),e=Object(utils.g)(bulletEl)*swiper.params.slidesPerGroup,swiper.params.loop?swiper.realIndex!==e&&(realIndex=swiper.realIndex,newSlideIndex=swiper.getSlideIndexByData(e),bulletEl=swiper.getSlideIndexByData(swiper.realIndex),loopFix=function(dir){var indexBeforeLoopFix=swiper.activeIndex;swiper.loopFix({direction:dir,activeSlideIndex:newSlideIndex,slideTo:!1}),indexBeforeLoopFix===swiper.activeIndex&&swiper.slideToLoop(realIndex,0,!1,!0)},newSlideIndex>swiper.slides.length-swiper.loopedSlides?loopFix(bulletEl<newSlideIndex?"next":"prev"):swiper.params.centeredSlides&&(bulletEl="auto"===swiper.params.slidesPerView?swiper.slidesPerViewDynamic():Math.ceil(parseFloat(swiper.params.slidesPerView,10)),newSlideIndex<Math.floor(bulletEl/2))&&loopFix("prev"),swiper.slideToLoop(e)):swiper.slideTo(e))}function update(){var rtl=swiper.rtl,params=swiper.params.pagination;if(!isPaginationDisabled()){var current,el=swiper.pagination.el,el=makeElementsArray(el),slidesLength=(swiper.virtual&&swiper.params.virtual.enabled?swiper.virtual:swiper).slides.length,total=swiper.params.loop?Math.ceil(slidesLength/swiper.params.slidesPerGroup):swiper.snapGrid.length;if(swiper.params.loop?(previousIndex=swiper.previousRealIndex||0,current=1<swiper.params.slidesPerGroup?Math.floor(swiper.realIndex/swiper.params.slidesPerGroup):swiper.realIndex):void 0!==swiper.snapIndex?(current=swiper.snapIndex,previousIndex=swiper.previousSnapIndex):(previousIndex=swiper.previousIndex||0,current=swiper.activeIndex||0),"bullets"===params.type&&swiper.pagination.bullets&&0<swiper.pagination.bullets.length){var firstIndex,lastIndex,midIndex,bulletsOffset,offsetProp,bullets=swiper.pagination.bullets;if(params.dynamicBullets&&(bulletSize=Object(utils.f)(bullets[0],swiper.isHorizontal()?"width":"height",!0),el.forEach(function(subEl){subEl.style[swiper.isHorizontal()?"width":"height"]="".concat(bulletSize*(params.dynamicMainBullets+4),"px")}),1<params.dynamicMainBullets&&void 0!==previousIndex&&((dynamicBulletIndex+=current-(previousIndex||0))>params.dynamicMainBullets-1?dynamicBulletIndex=params.dynamicMainBullets-1:dynamicBulletIndex<0&&(dynamicBulletIndex=0)),firstIndex=Math.max(current-dynamicBulletIndex,0),midIndex=((lastIndex=firstIndex+(Math.min(bullets.length,params.dynamicMainBullets)-1))+firstIndex)/2),bullets.forEach(function(bulletEl){var classesToRemove=pagination_toConsumableArray(["","-next","-next-next","-prev","-prev-prev","-main"].map(function(suffix){return"".concat(params.bulletActiveClass).concat(suffix)})).map(function(s){return"string"==typeof s&&s.includes(" ")?s.split(" "):s}).flat();(bulletEl=bulletEl.classList).remove.apply(bulletEl,pagination_toConsumableArray(classesToRemove))}),1<el.length)bullets.forEach(function(bullet){var _bullet$classList,bulletIndex=Object(utils.g)(bullet);bulletIndex===current?(_bullet$classList=bullet.classList).add.apply(_bullet$classList,pagination_toConsumableArray(params.bulletActiveClass.split(" "))):swiper.isElement&&bullet.setAttribute("part","bullet"),params.dynamicBullets&&(firstIndex<=bulletIndex&&bulletIndex<=lastIndex&&(_bullet$classList=bullet.classList).add.apply(_bullet$classList,pagination_toConsumableArray("".concat(params.bulletActiveClass,"-main").split(" "))),bulletIndex===firstIndex&&setSideBullets(bullet,"prev"),bulletIndex===lastIndex)&&setSideBullets(bullet,"next")});else{var slidesLength=bullets[current];if(slidesLength&&(previousIndex=slidesLength.classList).add.apply(previousIndex,pagination_toConsumableArray(params.bulletActiveClass.split(" "))),swiper.isElement&&bullets.forEach(function(bulletEl,bulletIndex){bulletEl.setAttribute("part",bulletIndex===current?"bullet-active":"bullet")}),params.dynamicBullets){for(var _bullets$i$classList,slidesLength=bullets[firstIndex],previousIndex=bullets[lastIndex],i=firstIndex;i<=lastIndex;i+=1)bullets[i]&&(_bullets$i$classList=bullets[i].classList).add.apply(_bullets$i$classList,pagination_toConsumableArray("".concat(params.bulletActiveClass,"-main").split(" ")));setSideBullets(slidesLength,"prev"),setSideBullets(previousIndex,"next")}}params.dynamicBullets&&(slidesLength=Math.min(bullets.length,params.dynamicMainBullets+4),bulletsOffset=(bulletSize*slidesLength-bulletSize)/2-midIndex*bulletSize,offsetProp=rtl?"right":"left",bullets.forEach(function(bullet){bullet.style[swiper.isHorizontal()?offsetProp:"top"]="".concat(bulletsOffset,"px")}))}el.forEach(function(subEl,subElIndex){var progressbarDirection,scale,scaleX,scaleY;"fraction"===params.type&&(subEl.querySelectorAll(classesToSelector(params.currentClass)).forEach(function(fractionEl){fractionEl.textContent=params.formatFractionCurrent(current+1)}),subEl.querySelectorAll(classesToSelector(params.totalClass)).forEach(function(totalEl){totalEl.textContent=params.formatFractionTotal(total)})),"progressbar"===params.type&&(progressbarDirection=params.progressbarOpposite?swiper.isHorizontal()?"vertical":"horizontal":swiper.isHorizontal()?"horizontal":"vertical",scale=(current+1)/total,scaleY=scaleX=1,"horizontal"===progressbarDirection?scaleX=scale:scaleY=scale,subEl.querySelectorAll(classesToSelector(params.progressbarFillClass)).forEach(function(progressEl){progressEl.style.transform="translate3d(0,0,0) scaleX(".concat(scaleX,") scaleY(").concat(scaleY,")"),progressEl.style.transitionDuration="".concat(swiper.params.speed,"ms")})),"custom"===params.type&&params.renderCustom?(subEl.innerHTML=params.renderCustom(swiper,current+1,total),0===subElIndex&&emit("paginationRender",subEl)):(0===subElIndex&&emit("paginationRender",subEl),emit("paginationUpdate",subEl)),swiper.params.watchOverflow&&swiper.enabled&&subEl.classList[swiper.isLocked?"add":"remove"](params.lockClass)})}}function render(){var params=swiper.params.pagination;if(!isPaginationDisabled()){var slidesLength=(swiper.virtual&&swiper.params.virtual.enabled?swiper.virtual:swiper).slides.length,el=swiper.pagination.el,el=makeElementsArray(el),paginationHTML="";if("bullets"===params.type){var numberOfBullets=swiper.params.loop?Math.ceil(slidesLength/swiper.params.slidesPerGroup):swiper.snapGrid.length;swiper.params.freeMode&&swiper.params.freeMode.enabled&&slidesLength<numberOfBullets&&(numberOfBullets=slidesLength);for(var i=0;i<numberOfBullets;i+=1)params.renderBullet?paginationHTML+=params.renderBullet.call(swiper,i,params.bulletClass):paginationHTML+="<".concat(params.bulletElement," ").concat(swiper.isElement?'part="bullet"':"",' class="').concat(params.bulletClass,'"></').concat(params.bulletElement,">")}"fraction"===params.type&&(paginationHTML=params.renderFraction?params.renderFraction.call(swiper,params.currentClass,params.totalClass):'<span class="'.concat(params.currentClass,'"></span>')+" / "+'<span class="'.concat(params.totalClass,'"></span>')),"progressbar"===params.type&&(paginationHTML=params.renderProgressbar?params.renderProgressbar.call(swiper,params.progressbarFillClass):'<span class="'.concat(params.progressbarFillClass,'"></span>')),swiper.pagination.bullets=[],el.forEach(function(subEl){var _swiper$pagination$bu;"custom"!==params.type&&(subEl.innerHTML=paginationHTML||""),"bullets"===params.type&&(_swiper$pagination$bu=swiper.pagination.bullets).push.apply(_swiper$pagination$bu,pagination_toConsumableArray(subEl.querySelectorAll(classesToSelector(params.bulletClass))))}),"custom"!==params.type&&emit("paginationRender",el[0])}}function init(){swiper.params.pagination=createElementIfNotDefined(swiper,swiper.originalParams.pagination,swiper.params.pagination,{el:"swiper-pagination"});var el,params=swiper.params.pagination;params.el&&(el=(el=(el="string"==typeof params.el&&swiper.isElement?swiper.el.querySelector(params.el):el)||"string"!=typeof params.el?el:pagination_toConsumableArray(document.querySelectorAll(params.el)))||params.el)&&0!==el.length&&(swiper.params.uniqueNavElements&&"string"==typeof params.el&&Array.isArray(el)&&1<el.length&&1<(el=pagination_toConsumableArray(swiper.el.querySelectorAll(params.el))).length&&(el=el.filter(function(subEl){return Object(utils.a)(subEl,".swiper")[0]===swiper.el})[0]),Array.isArray(el)&&1===el.length&&(el=el[0]),Object.assign(swiper.pagination,{el:el}),(el=makeElementsArray(el)).forEach(function(subEl){var _subEl$classList;"bullets"===params.type&&params.clickable&&(_subEl$classList=subEl.classList).add.apply(_subEl$classList,pagination_toConsumableArray((params.clickableClass||"").split(" "))),subEl.classList.add(params.modifierClass+params.type),subEl.classList.add(swiper.isHorizontal()?params.horizontalClass:params.verticalClass),"bullets"===params.type&&params.dynamicBullets&&(subEl.classList.add("".concat(params.modifierClass).concat(params.type,"-dynamic")),dynamicBulletIndex=0,params.dynamicMainBullets<1)&&(params.dynamicMainBullets=1),"progressbar"===params.type&&params.progressbarOpposite&&subEl.classList.add(params.progressbarOppositeClass),params.clickable&&subEl.addEventListener("click",onBulletClick),swiper.enabled||subEl.classList.add(params.lockClass)}))}function destroy(){var el,params=swiper.params.pagination;isPaginationDisabled()||((el=swiper.pagination.el)&&(el=makeElementsArray(el)).forEach(function(subEl){var _subEl$classList2;subEl.classList.remove(params.hiddenClass),subEl.classList.remove(params.modifierClass+params.type),subEl.classList.remove(swiper.isHorizontal()?params.horizontalClass:params.verticalClass),params.clickable&&((_subEl$classList2=subEl.classList).remove.apply(_subEl$classList2,pagination_toConsumableArray((params.clickableClass||"").split(" "))),subEl.removeEventListener("click",onBulletClick))}),swiper.pagination.bullets&&swiper.pagination.bullets.forEach(function(subEl){return(subEl=subEl.classList).remove.apply(subEl,pagination_toConsumableArray(params.bulletActiveClass.split(" ")))}))}on("changeDirection",function(){var params,el;swiper.pagination&&swiper.pagination.el&&(params=swiper.params.pagination,el=swiper.pagination.el,(el=makeElementsArray(el)).forEach(function(subEl){subEl.classList.remove(params.horizontalClass,params.verticalClass),subEl.classList.add(swiper.isHorizontal()?params.horizontalClass:params.verticalClass)}))}),on("init",function(){(!1===swiper.params.pagination.enabled?disable:(init(),render(),update))()}),on("activeIndexChange",function(){void 0===swiper.snapIndex&&update()}),on("snapIndexChange",function(){update()}),on("snapGridLengthChange",function(){render(),update()}),on("destroy",function(){destroy()}),on("enable disable",function(){var el=swiper.pagination.el;el&&(el=makeElementsArray(el)).forEach(function(subEl){return subEl.classList[swiper.enabled?"remove":"add"](swiper.params.pagination.lockClass)})}),on("lock unlock",function(){update()}),on("click",function(_s,e){var e=e.target,el=makeElementsArray(swiper.pagination.el);swiper.params.pagination.el&&swiper.params.pagination.hideOnClick&&el&&0<el.length&&!e.classList.contains(swiper.params.pagination.bulletClass)&&(swiper.navigation&&(swiper.navigation.nextEl&&e===swiper.navigation.nextEl||swiper.navigation.prevEl&&e===swiper.navigation.prevEl)||(e=el[0].classList.contains(swiper.params.pagination.hiddenClass),emit(!0===e?"paginationShow":"paginationHide"),el.forEach(function(subEl){return subEl.classList.toggle(swiper.params.pagination.hiddenClass)})))});var disable=function(){swiper.el.classList.add(swiper.params.pagination.paginationDisabledClass);var el=swiper.pagination.el;el&&(el=makeElementsArray(el)).forEach(function(subEl){return subEl.classList.add(swiper.params.pagination.paginationDisabledClass)}),destroy()};Object.assign(swiper.pagination,{enable:function(){swiper.el.classList.remove(swiper.params.pagination.paginationDisabledClass);var el=swiper.pagination.el;el&&(el=makeElementsArray(el)).forEach(function(subEl){return subEl.classList.remove(swiper.params.pagination.paginationDisabledClass)}),init(),render(),update()},disable:disable,render:render,update:update,init:init,destroy:destroy})}function Autoplay(_ref){var timeout,raf,autoplayTimeLeft,wasPaused,isTouched,pausedByTouch,touchStartTimeout,slideChanged,pausedByInteraction,swiper=_ref.swiper,extendParams=_ref.extendParams,on=_ref.on,emit=_ref.emit,_ref=_ref.params,autoplayDelayTotal=(extendParams({autoplay:{enabled:!(swiper.autoplay={running:!1,paused:!1,timeLeft:0}),delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),_ref&&_ref.autoplay?_ref.autoplay.delay:3e3),autoplayDelayCurrent=_ref&&_ref.autoplay?_ref.autoplay.delay:3e3,autoplayStartTime=(new Date).getTime;function onTransitionEnd(e){swiper&&!swiper.destroyed&&swiper.wrapperEl&&e.target===swiper.wrapperEl&&(swiper.wrapperEl.removeEventListener("transitionend",onTransitionEnd),resume())}function start(){swiper.autoplay.running=!0,_run(),emit("autoplayStart")}function stop(){swiper.autoplay.running=!1,clearTimeout(timeout),cancelAnimationFrame(raf),emit("autoplayStop")}function onVisibilityChange(){var document;!swiper.destroyed&&swiper.autoplay.running&&("hidden"===(document=Object(ssr_window_esm.b)()).visibilityState&&pause(pausedByInteraction=!0),"visible"===document.visibilityState)&&resume()}function onPointerEnter(e){"mouse"!==e.pointerType||(pausedByInteraction=!0,swiper.animating)||swiper.autoplay.paused||pause(!0)}function onPointerLeave(e){"mouse"===e.pointerType&&swiper.autoplay.paused&&resume()}var _calcTimeLeft=function(){var timeLeft;!swiper.destroyed&&swiper.autoplay.running&&(swiper.autoplay.paused?wasPaused=!0:wasPaused&&(autoplayDelayCurrent=autoplayTimeLeft,wasPaused=!1),timeLeft=swiper.autoplay.paused?autoplayTimeLeft:autoplayStartTime+autoplayDelayCurrent-(new Date).getTime(),swiper.autoplay.timeLeft=timeLeft,emit("autoplayTimeLeft",timeLeft,timeLeft/autoplayDelayTotal),raf=requestAnimationFrame(function(){_calcTimeLeft()}))},getSlideDelay=function(){var activeSlideEl=swiper.virtual&&swiper.params.virtual.enabled?swiper.slides.filter(function(slideEl){return slideEl.classList.contains("swiper-slide-active")})[0]:swiper.slides[swiper.activeIndex];if(activeSlideEl)return parseInt(activeSlideEl.getAttribute("data-swiper-autoplay"),10)},_run=function(delayForce){var delay,currentSlideDelay,speed,proceed;if(!swiper.destroyed&&swiper.autoplay.running)return cancelAnimationFrame(raf),_calcTimeLeft(),delay=void 0===delayForce?swiper.params.autoplay.delay:delayForce,autoplayDelayTotal=swiper.params.autoplay.delay,autoplayDelayCurrent=swiper.params.autoplay.delay,currentSlideDelay=getSlideDelay(),!Number.isNaN(currentSlideDelay)&&0<currentSlideDelay&&void 0===delayForce&&(autoplayDelayCurrent=autoplayDelayTotal=delay=currentSlideDelay),autoplayTimeLeft=delay,speed=swiper.params.speed,proceed=function(){swiper&&!swiper.destroyed&&(swiper.params.autoplay.reverseDirection?!swiper.isBeginning||swiper.params.loop||swiper.params.rewind?(swiper.slidePrev(speed,!0,!0),emit("autoplay")):swiper.params.autoplay.stopOnLastSlide||(swiper.slideTo(swiper.slides.length-1,speed,!0,!0),emit("autoplay")):!swiper.isEnd||swiper.params.loop||swiper.params.rewind?(swiper.slideNext(speed,!0,!0),emit("autoplay")):swiper.params.autoplay.stopOnLastSlide||(swiper.slideTo(0,speed,!0,!0),emit("autoplay")),swiper.params.cssMode)&&(autoplayStartTime=(new Date).getTime(),requestAnimationFrame(function(){_run()}))},0<delay?(clearTimeout(timeout),timeout=setTimeout(function(){proceed()},delay)):requestAnimationFrame(function(){proceed()}),delay},pause=function(internal,reset){!swiper.destroyed&&swiper.autoplay.running&&(clearTimeout(timeout),internal||(pausedByInteraction=!0),internal=function(){emit("autoplayPause"),swiper.params.autoplay.waitForTransition?swiper.wrapperEl.addEventListener("transitionend",onTransitionEnd):resume()},swiper.autoplay.paused=!0,reset?(slideChanged&&(autoplayTimeLeft=swiper.params.autoplay.delay),slideChanged=!1,internal()):(reset=autoplayTimeLeft||swiper.params.autoplay.delay,autoplayTimeLeft=reset-((new Date).getTime()-autoplayStartTime),swiper.isEnd&&autoplayTimeLeft<0&&!swiper.params.loop||(autoplayTimeLeft<0&&(autoplayTimeLeft=0),internal())))},resume=function(){swiper.isEnd&&autoplayTimeLeft<0&&!swiper.params.loop||swiper.destroyed||!swiper.autoplay.running||(autoplayStartTime=(new Date).getTime(),pausedByInteraction?(pausedByInteraction=!1,_run(autoplayTimeLeft)):_run(),swiper.autoplay.paused=!1,emit("autoplayResume"))};on("init",function(){swiper.params.autoplay.enabled&&(swiper.params.autoplay.pauseOnMouseEnter&&(swiper.el.addEventListener("pointerenter",onPointerEnter),swiper.el.addEventListener("pointerleave",onPointerLeave)),Object(ssr_window_esm.b)().addEventListener("visibilitychange",onVisibilityChange),autoplayStartTime=(new Date).getTime(),start())}),on("destroy",function(){swiper.el.removeEventListener("pointerenter",onPointerEnter),swiper.el.removeEventListener("pointerleave",onPointerLeave),Object(ssr_window_esm.b)().removeEventListener("visibilitychange",onVisibilityChange),swiper.autoplay.running&&stop()}),on("beforeTransitionStart",function(_s,speed,internal){!swiper.destroyed&&swiper.autoplay.running&&(internal||!swiper.params.autoplay.disableOnInteraction?pause(!0,!0):stop())}),on("sliderFirstMove",function(){!swiper.destroyed&&swiper.autoplay.running&&(swiper.params.autoplay.disableOnInteraction?stop():(pausedByInteraction=pausedByTouch=!(isTouched=!0),touchStartTimeout=setTimeout(function(){pause(pausedByTouch=pausedByInteraction=!0)},200)))}),on("touchEnd",function(){!swiper.destroyed&&swiper.autoplay.running&&isTouched&&(clearTimeout(touchStartTimeout),clearTimeout(timeout),isTouched=pausedByTouch=(swiper.params.autoplay.disableOnInteraction||pausedByTouch&&swiper.params.cssMode&&resume(),!1))}),on("slideChange",function(){!swiper.destroyed&&swiper.autoplay.running&&(slideChanged=!0)}),Object.assign(swiper.autoplay,{start:start,stop:stop,pause:pause,resume:resume})}function Thumb(_ref){var swiper=_ref.swiper,extendParams=_ref.extendParams,_ref=_ref.on,initialized=(extendParams({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}}),!1),swiperCreated=!1;function onThumbClick(){var clickedIndex,clickedSlide,thumbsSwiper=swiper.thumbs.swiper;!thumbsSwiper||thumbsSwiper.destroyed||(clickedIndex=thumbsSwiper.clickedIndex,(clickedSlide=thumbsSwiper.clickedSlide)&&clickedSlide.classList.contains(swiper.params.thumbs.slideThumbActiveClass))||null!=clickedIndex&&(clickedSlide=thumbsSwiper.params.loop?parseInt(thumbsSwiper.clickedSlide.getAttribute("data-swiper-slide-index"),10):clickedIndex,swiper.params.loop?swiper.slideToLoop(clickedSlide):swiper.slideTo(clickedSlide))}function init(){var thumbsParams=swiper.params.thumbs;if(initialized)return!1;initialized=!0;var SwiperClass=swiper.constructor;return thumbsParams.swiper instanceof SwiperClass?(swiper.thumbs.swiper=thumbsParams.swiper,Object.assign(swiper.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(swiper.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),swiper.thumbs.swiper.update()):Object(utils.j)(thumbsParams.swiper)&&(thumbsParams=Object.assign({},thumbsParams.swiper),Object.assign(thumbsParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),swiper.thumbs.swiper=new SwiperClass(thumbsParams),swiperCreated=!0),swiper.thumbs.swiper.el.classList.add(swiper.params.thumbs.thumbsContainerClass),swiper.thumbs.swiper.on("tap",onThumbClick),!0}function update(initial){var thumbsSwiper=swiper.thumbs.swiper;if(thumbsSwiper&&!thumbsSwiper.destroyed){var slidesPerView="auto"===thumbsSwiper.params.slidesPerView?thumbsSwiper.slidesPerViewDynamic():thumbsSwiper.params.slidesPerView,thumbsToActivate=1,thumbActiveClass=swiper.params.thumbs.slideThumbActiveClass;if(1<swiper.params.slidesPerView&&!swiper.params.centeredSlides&&(thumbsToActivate=swiper.params.slidesPerView),swiper.params.thumbs.multipleActiveThumbs||(thumbsToActivate=1),thumbsToActivate=Math.floor(thumbsToActivate),thumbsSwiper.slides.forEach(function(slideEl){return slideEl.classList.remove(thumbActiveClass)}),thumbsSwiper.params.loop||thumbsSwiper.params.virtual&&thumbsSwiper.params.virtual.enabled)for(var i=0;i<thumbsToActivate;i+=1)Object(utils.e)(thumbsSwiper.slidesEl,'[data-swiper-slide-index="'.concat(swiper.realIndex+i,'"]')).forEach(function(slideEl){slideEl.classList.add(thumbActiveClass)});else for(var _i=0;_i<thumbsToActivate;_i+=1)thumbsSwiper.slides[swiper.realIndex+_i]&&thumbsSwiper.slides[swiper.realIndex+_i].classList.add(thumbActiveClass);var currentThumbsIndex,newThumbsSlide,direction,autoScrollOffset=swiper.params.thumbs.autoScrollOffset,useOffset=autoScrollOffset&&!thumbsSwiper.params.loop;(swiper.realIndex!==thumbsSwiper.realIndex||useOffset)&&(currentThumbsIndex=thumbsSwiper.activeIndex,direction=thumbsSwiper.params.loop?(newThumbsSlide=thumbsSwiper.slides.filter(function(slideEl){return slideEl.getAttribute("data-swiper-slide-index")==="".concat(swiper.realIndex)})[0],newThumbsSlide=thumbsSwiper.slides.indexOf(newThumbsSlide),swiper.activeIndex>swiper.previousIndex?"next":"prev"):(newThumbsSlide=swiper.realIndex)>swiper.previousIndex?"next":"prev",useOffset&&(newThumbsSlide+="next"===direction?autoScrollOffset:-1*autoScrollOffset),thumbsSwiper.visibleSlidesIndexes)&&thumbsSwiper.visibleSlidesIndexes.indexOf(newThumbsSlide)<0&&(thumbsSwiper.params.centeredSlides?newThumbsSlide=currentThumbsIndex<newThumbsSlide?newThumbsSlide-Math.floor(slidesPerView/2)+1:newThumbsSlide+Math.floor(slidesPerView/2)-1:currentThumbsIndex<newThumbsSlide&&thumbsSwiper.params.slidesPerGroup,thumbsSwiper.slideTo(newThumbsSlide,initial?0:void 0))}}swiper.thumbs={swiper:null},_ref("beforeInit",function(){var document,getThumbsElementAndInit,_watchForThumbsToAppear,thumbs=swiper.params.thumbs;thumbs&&thumbs.swiper&&("string"==typeof thumbs.swiper||thumbs.swiper instanceof HTMLElement?(document=Object(ssr_window_esm.b)(),getThumbsElementAndInit=function(){var _onThumbsSwiper,thumbsElement="string"==typeof thumbs.swiper?document.querySelector(thumbs.swiper):thumbs.swiper;return thumbsElement&&thumbsElement.swiper?(thumbs.swiper=thumbsElement.swiper,init(),update(!0)):thumbsElement&&thumbsElement.addEventListener("init",_onThumbsSwiper=function(e){thumbs.swiper=e.detail[0],thumbsElement.removeEventListener("init",_onThumbsSwiper),init(),update(!0),thumbs.swiper.update(),swiper.update()}),thumbsElement},_watchForThumbsToAppear=function(){swiper.destroyed||getThumbsElementAndInit()||requestAnimationFrame(_watchForThumbsToAppear)},requestAnimationFrame(_watchForThumbsToAppear)):(init(),update(!0)))}),_ref("slideChange update resize observerUpdate",function(){update()}),_ref("setTransition",function(_s,duration){var thumbsSwiper=swiper.thumbs.swiper;thumbsSwiper&&!thumbsSwiper.destroyed&&thumbsSwiper.setTransition(duration)}),_ref("beforeDestroy",function(){var thumbsSwiper=swiper.thumbs.swiper;thumbsSwiper&&!thumbsSwiper.destroyed&&swiperCreated&&thumbsSwiper.destroy()}),Object.assign(swiper.thumbs,{init:init,update:update})}function Grid(_ref){function getSpaceBetween(){var spaceBetween=swiper.params.spaceBetween;return"string"==typeof spaceBetween&&0<=spaceBetween.indexOf("%")?spaceBetween=parseFloat(spaceBetween.replace("%",""))/100*swiper.size:"string"==typeof spaceBetween&&(spaceBetween=parseFloat(spaceBetween)),spaceBetween}var slidesNumberEvenToRows,slidesPerRow,numFullColumns,wasMultiRow,swiper=_ref.swiper,extendParams=_ref.extendParams,_ref=_ref.on;extendParams({grid:{rows:1,fill:"column"}});_ref("init",function(){wasMultiRow=swiper.params.grid&&1<swiper.params.grid.rows}),_ref("update",function(){var params=swiper.params,el=swiper.el,isMultiRow=params.grid&&1<params.grid.rows;wasMultiRow&&!isMultiRow?(el.classList.remove("".concat(params.containerModifierClass,"grid"),"".concat(params.containerModifierClass,"grid-column")),numFullColumns=1,swiper.emitContainerClasses()):!wasMultiRow&&isMultiRow&&(el.classList.add("".concat(params.containerModifierClass,"grid")),"column"===params.grid.fill&&el.classList.add("".concat(params.containerModifierClass,"grid-column")),swiper.emitContainerClasses()),wasMultiRow=isMultiRow}),swiper.grid={initSlides:function(slidesLength){var slidesPerView=swiper.params.slidesPerView,_swiper$params$grid=swiper.params.grid,rows=_swiper$params$grid.rows,_swiper$params$grid=_swiper$params$grid.fill;numFullColumns=Math.floor(slidesLength/rows),slidesNumberEvenToRows=Math.floor(slidesLength/rows)===slidesLength/rows?slidesLength:Math.ceil(slidesLength/rows)*rows,"auto"!==slidesPerView&&"row"===_swiper$params$grid&&(slidesNumberEvenToRows=Math.max(slidesNumberEvenToRows,slidesPerView*rows)),slidesPerRow=slidesNumberEvenToRows/rows},updateSlide:function(i,slide,slidesLength,getDirectionLabel){var slideIndexInGroup,groupIndex,slidesPerGroup=swiper.params.slidesPerGroup,spaceBetween=getSpaceBetween(),_swiper$params$grid2=swiper.params.grid,rows=_swiper$params$grid2.rows,_swiper$params$grid2=_swiper$params$grid2.fill;"row"===_swiper$params$grid2&&1<slidesPerGroup?(slideIndexInGroup=i-rows*slidesPerGroup*(groupIndex=Math.floor(i/(slidesPerGroup*rows))),slidesLength=0===groupIndex?slidesPerGroup:Math.min(Math.ceil((slidesLength-groupIndex*rows*slidesPerGroup)/rows),slidesPerGroup),slidesLength=(groupIndex=slideIndexInGroup-(slideIndexInGroup=Math.floor(slideIndexInGroup/slidesLength))*slidesLength+groupIndex*slidesPerGroup)+slideIndexInGroup*slidesNumberEvenToRows/rows,slide.style.order=slidesLength):"column"===_swiper$params$grid2?(slideIndexInGroup=i-(groupIndex=Math.floor(i/rows))*rows,(numFullColumns<groupIndex||groupIndex===numFullColumns&&slideIndexInGroup===rows-1)&&rows<=(slideIndexInGroup+=1)&&(slideIndexInGroup=0,groupIndex+=1)):groupIndex=i-(slideIndexInGroup=Math.floor(i/slidesPerRow))*slidesPerRow,slide.row=slideIndexInGroup,slide.column=groupIndex,slide.style[getDirectionLabel("margin-top")]=0!==slideIndexInGroup?spaceBetween&&"".concat(spaceBetween,"px"):""},updateWrapperSize:function(slideSize,snapGrid,getDirectionLabel){var _swiper$params=swiper.params,centeredSlides=_swiper$params.centeredSlides,roundLengths=_swiper$params.roundLengths,_swiper$params=getSpaceBetween(),rows=swiper.params.grid.rows;if(swiper.virtualSize=(slideSize+_swiper$params)*slidesNumberEvenToRows,swiper.virtualSize=Math.ceil(swiper.virtualSize/rows)-_swiper$params,swiper.wrapperEl.style[getDirectionLabel("width")]="".concat(swiper.virtualSize+_swiper$params,"px"),centeredSlides){for(var newSlidesGrid=[],i=0;i<snapGrid.length;i+=1){var slidesGridItem=snapGrid[i];roundLengths&&(slidesGridItem=Math.floor(slidesGridItem)),snapGrid[i]<swiper.virtualSize+snapGrid[0]&&newSlidesGrid.push(slidesGridItem)}snapGrid.splice(0,snapGrid.length),snapGrid.push.apply(snapGrid,newSlidesGrid)}}}}},8:function(__webpack_module__,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return swiper_core_Swiper});var swiper_core_support,deviceCached,browser,ssr_window_esm=__webpack_require__(1),utils=__webpack_require__(0);function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _typeof(o){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}function ownKeys(e,r){var o,t=Object.keys(e);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(e),r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)),t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){t=((t,r)=>{if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0===e)return("string"===r?String:Number)(t);if("object"!=_typeof(e=e.call(t,r||"default")))return e;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string");return"symbol"==_typeof(t)?t:t+""}function _toConsumableArray(r){return(r=>{if(Array.isArray(r))return _arrayLikeToArray(r)})(r)||(r=>{if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)})(r)||_unsupportedIterableToArray(r)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function _slicedToArray(r,e){return(r=>{if(Array.isArray(r))return r})(r)||((r,l)=>{var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}})(r,e)||_unsupportedIterableToArray(r,e)||(()=>{throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function _unsupportedIterableToArray(r,a){var t;if(r)return"string"==typeof r?_arrayLikeToArray(r,a):"Map"===(t="Object"===(t={}.toString.call(r).slice(8,-1))&&r.constructor?r.constructor.name:t)||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function getSupport(){var window,document;return swiper_core_support||(window=Object(ssr_window_esm.a)(),document=Object(ssr_window_esm.b)(),swiper_core_support={smoothScroll:document.documentElement&&document.documentElement.style&&"scrollBehavior"in document.documentElement.style,touch:!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch)}),swiper_core_support}function getDevice(overrides){var support,platform,device,screenWidth,window,android,ipad,ipod,iphone,windows;return void 0===overrides&&(overrides={}),deviceCached||(overrides=(void 0===(overrides=overrides)?{}:overrides).userAgent,support=getSupport(),platform=(window=Object(ssr_window_esm.a)()).navigator.platform,overrides=overrides||window.navigator.userAgent,device={ios:!1,android:!1},screenWidth=window.screen.width,window=window.screen.height,android=overrides.match(/(Android);?[\s\/]+([\d.]+)?/),ipad=overrides.match(/(iPad).*OS\s([\d_]+)/),ipod=overrides.match(/(iPod)(.*OS\s([\d_]+))?/),iphone=!ipad&&overrides.match(/(iPhone\sOS|iOS)\s([\d_]+)/),windows="Win32"===platform,platform="MacIntel"===platform,!ipad&&platform&&support.touch&&0<=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf("".concat(screenWidth,"x").concat(window))&&(ipad=(ipad=overrides.match(/(Version)\/([\d.]+)/))||[0,1,"13_0_0"]),android&&!windows&&(device.os="android",device.android=!0),(ipad||iphone||ipod)&&(device.os="ios",device.ios=!0),deviceCached=device),deviceCached}function getBrowser(){function isSafari(){var ua=window.navigator.userAgent.toLowerCase();return 0<=ua.indexOf("safari")&&ua.indexOf("chrome")<0&&ua.indexOf("android")<0}var ua,major,window,needPerspectiveFix;return browser||(window=Object(ssr_window_esm.a)(),needPerspectiveFix=!1,browser={isSafari:(needPerspectiveFix=isSafari()&&(ua=String(window.navigator.userAgent)).includes("Version/")?(major=(ua=_slicedToArray(ua.split("Version/")[1].split(" ")[0].split(".").map(function(num){return Number(num)}),2))[0])<16||16===major&&ua[1]<2:needPerspectiveFix)||isSafari(),needPerspectiveFix:needPerspectiveFix,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent)}),browser}function preload(swiper){if(swiper&&!swiper.destroyed&&swiper.params){var amount=swiper.params.lazyPreloadPrevNext,len=swiper.slides.length;if(len&&amount&&!(amount<0)){var activeColumn,preloadColumns,amount=Math.min(amount,len),slidesPerView="auto"===swiper.params.slidesPerView?swiper.slidesPerViewDynamic():Math.ceil(swiper.params.slidesPerView),activeIndex=swiper.activeIndex;if(swiper.params.grid&&1<swiper.params.grid.rows)(preloadColumns=[(activeColumn=activeIndex)-amount]).push.apply(preloadColumns,_toConsumableArray(Array.from({length:amount}).map(function(_,i){return activeColumn+slidesPerView+i}))),swiper.slides.forEach(function(slideEl,i){preloadColumns.includes(slideEl.column)&&unlazy(swiper,i)});else{var slideIndexLastInView=activeIndex+slidesPerView-1;if(swiper.params.rewind||swiper.params.loop)for(var i=activeIndex-amount;i<=slideIndexLastInView+amount;i+=1){var realIndex=(i%len+len)%len;(realIndex<activeIndex||slideIndexLastInView<realIndex)&&unlazy(swiper,realIndex)}else for(var _i4=Math.max(activeIndex-amount,0);_i4<=Math.min(slideIndexLastInView+amount,len-1);_i4+=1)_i4!==activeIndex&&(slideIndexLastInView<_i4||_i4<activeIndex)&&unlazy(swiper,_i4)}}}}var processLazyPreloader=function(swiper,imageEl){var slideEl,lazyEl;swiper&&!swiper.destroyed&&swiper.params&&(slideEl=imageEl.closest(swiper.isElement?"swiper-slide":".".concat(swiper.params.slideClass)))&&(!(lazyEl=slideEl.querySelector(".".concat(swiper.params.lazyPreloaderClass)))&&swiper.isElement&&(slideEl.shadowRoot?lazyEl=slideEl.shadowRoot.querySelector(".".concat(swiper.params.lazyPreloaderClass)):requestAnimationFrame(function(){slideEl.shadowRoot&&(lazyEl=slideEl.shadowRoot.querySelector(".".concat(swiper.params.lazyPreloaderClass)))&&lazyEl.remove()})),lazyEl)&&lazyEl.remove()},unlazy=function(swiper,index){swiper.slides[index]&&(swiper=swiper.slides[index].querySelector('[loading="lazy"]'))&&swiper.removeAttribute("loading")};function transitionEmit(_ref){var swiper=_ref.swiper,runCallbacks=_ref.runCallbacks,step=_ref.step,activeIndex=swiper.activeIndex,previousIndex=swiper.previousIndex,_ref=(_ref=_ref.direction)||(previousIndex<activeIndex?"next":activeIndex<previousIndex?"prev":"reset");swiper.emit("transition".concat(step)),runCallbacks&&activeIndex!==previousIndex&&("reset"===_ref?swiper.emit("slideResetTransition".concat(step)):(swiper.emit("slideChangeTransition".concat(step)),"next"===_ref?swiper.emit("slideNextTransition".concat(step)):swiper.emit("slidePrevTransition".concat(step))))}function closestElement(selector,base){return function __closestFrom(el){var found;return el&&el!==Object(ssr_window_esm.b)()&&el!==Object(ssr_window_esm.a)()&&((found=(el=el.assignedSlot||el).closest(selector))||el.getRootNode)?found||__closestFrom(el.getRootNode().host):null}(base=void 0===base?this:base)}function onResize(){var allowSlidePrev,snapGrid,isVirtual,isVirtualLoop,swiper=this,params=swiper.params,el=swiper.el;el&&0===el.offsetWidth||(params.breakpoints&&swiper.setBreakpoint(),el=swiper.allowSlideNext,allowSlidePrev=swiper.allowSlidePrev,snapGrid=swiper.snapGrid,isVirtual=swiper.virtual&&swiper.params.virtual.enabled,swiper.allowSlideNext=!0,swiper.allowSlidePrev=!0,swiper.updateSize(),swiper.updateSlides(),swiper.updateSlidesClasses(),isVirtualLoop=isVirtual&&params.loop,!("auto"===params.slidesPerView||1<params.slidesPerView)||!swiper.isEnd||swiper.isBeginning||swiper.params.centeredSlides||isVirtualLoop?swiper.params.loop&&!isVirtual?swiper.slideToLoop(swiper.realIndex,0,!1,!0):swiper.slideTo(swiper.activeIndex,0,!1,!0):swiper.slideTo(swiper.slides.length-1,0,!1,!0),swiper.autoplay&&swiper.autoplay.running&&swiper.autoplay.paused&&(clearTimeout(swiper.autoplay.resizeTimeout),swiper.autoplay.resizeTimeout=setTimeout(function(){swiper.autoplay&&swiper.autoplay.running&&swiper.autoplay.paused&&swiper.autoplay.resume()},500)),swiper.allowSlidePrev=allowSlidePrev,swiper.allowSlideNext=el,swiper.params.watchOverflow&&snapGrid!==swiper.snapGrid&&swiper.checkOverflow())}var dummyEventAttached=!1;function dummyEventListener(){}function swiper_core_events(swiper,method){var document=Object(ssr_window_esm.b)(),params=swiper.params,el=swiper.el,wrapperEl=swiper.wrapperEl,device=swiper.device,capture=!!params.nested,domMethod="on"===method?"addEventListener":"removeEventListener";el[domMethod]("pointerdown",swiper.onTouchStart,{passive:!1}),document[domMethod]("pointermove",swiper.onTouchMove,{passive:!1,capture:capture}),document[domMethod]("pointerup",swiper.onTouchEnd,{passive:!0}),document[domMethod]("pointercancel",swiper.onTouchEnd,{passive:!0}),document[domMethod]("pointerout",swiper.onTouchEnd,{passive:!0}),document[domMethod]("pointerleave",swiper.onTouchEnd,{passive:!0}),document[domMethod]("contextmenu",swiper.onTouchEnd,{passive:!0}),(params.preventClicks||params.preventClicksPropagation)&&el[domMethod]("click",swiper.onClick,!0),params.cssMode&&wrapperEl[domMethod]("scroll",swiper.onScroll),params.updateOnWindowResize?swiper[method](device.ios||device.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,!0):swiper[method]("observerUpdate",onResize,!0),el[domMethod]("load",swiper.onLoad,{capture:!0})}function isGridEnabled(swiper,params){return swiper.grid&&params.grid&&1<params.grid.rows}var defaults={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};var prototypes={eventsEmitter:{on:function(events,handler,priority){var method,self=this;return self.eventsListeners&&!self.destroyed&&"function"==typeof handler&&(method=priority?"unshift":"push",events.split(" ").forEach(function(event){self.eventsListeners[event]||(self.eventsListeners[event]=[]),self.eventsListeners[event][method](handler)})),self},once:function(events,handler,priority){var self=this;return!self.eventsListeners||self.destroyed||"function"!=typeof handler?self:(onceHandler.__emitterProxy=handler,self.on(events,onceHandler,priority));function onceHandler(){self.off(events,onceHandler),onceHandler.__emitterProxy&&delete onceHandler.__emitterProxy;for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];handler.apply(self,args)}},onAny:function(handler,priority){return this.eventsListeners&&!this.destroyed&&"function"==typeof handler&&(priority=priority?"unshift":"push",this.eventsAnyListeners.indexOf(handler)<0)&&this.eventsAnyListeners[priority](handler),this},offAny:function(handler){return this.eventsListeners&&!this.destroyed&&this.eventsAnyListeners&&0<=(handler=this.eventsAnyListeners.indexOf(handler))&&this.eventsAnyListeners.splice(handler,1),this},off:function(events,handler){var self=this;return self.eventsListeners&&!self.destroyed&&self.eventsListeners&&events.split(" ").forEach(function(event){void 0===handler?self.eventsListeners[event]=[]:self.eventsListeners[event]&&self.eventsListeners[event].forEach(function(eventHandler,index){(eventHandler===handler||eventHandler.__emitterProxy&&eventHandler.__emitterProxy===handler)&&self.eventsListeners[event].splice(index,1)})}),self},emit:function(){var self=this;if(self.eventsListeners&&!self.destroyed&&self.eventsListeners){for(var events,data,context,_len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];context="string"==typeof args[0]||Array.isArray(args[0])?(events=args[0],data=args.slice(1,args.length),self):(events=args[0].events,data=args[0].data,args[0].context||self),data.unshift(context),(Array.isArray(events)?events:events.split(" ")).forEach(function(event){self.eventsAnyListeners&&self.eventsAnyListeners.length&&self.eventsAnyListeners.forEach(function(eventHandler){eventHandler.apply(context,[event].concat(_toConsumableArray(data)))}),self.eventsListeners&&self.eventsListeners[event]&&self.eventsListeners[event].forEach(function(eventHandler){eventHandler.apply(context,data)})})}return self}},update:{updateSize:function(){var el=this.el,width=null!=this.params.width?this.params.width:el.clientWidth,height=null!=this.params.height?this.params.height:el.clientHeight;0===width&&this.isHorizontal()||0===height&&this.isVertical()||(width=width-parseInt(Object(utils.l)(el,"padding-left")||0,10)-parseInt(Object(utils.l)(el,"padding-right")||0,10),height=height-parseInt(Object(utils.l)(el,"padding-top")||0,10)-parseInt(Object(utils.l)(el,"padding-bottom")||0,10),Number.isNaN(width)&&(width=0),Number.isNaN(height)&&(height=0),Object.assign(this,{width:width,height:height,size:this.isHorizontal()?width:height}))},updateSlides:function(){var swiper=this;function getDirectionLabel(property){return swiper.isHorizontal()?property:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[property]}function getDirectionPropertyValue(node,label){return parseFloat(node.getPropertyValue(getDirectionLabel(label))||0)}var params=swiper.params,wrapperEl=swiper.wrapperEl,slidesEl=swiper.slidesEl,swiperSize=swiper.size,rtl=swiper.rtlTranslate,wrongRTL=swiper.wrongRTL,isVirtual=swiper.virtual&&params.virtual.enabled,previousSlidesLength=(isVirtual?swiper.virtual:swiper).slides.length,slides=Object(utils.e)(slidesEl,".".concat(swiper.params.slideClass,", swiper-slide")),slidesLength=(isVirtual?swiper.virtual.slides:slides).length,snapGrid=[],slidesGrid=[],slidesSizesGrid=[],offsetBefore=params.slidesOffsetBefore,offsetAfter=("function"==typeof offsetBefore&&(offsetBefore=params.slidesOffsetBefore.call(swiper)),params.slidesOffsetAfter),slidesEl=("function"==typeof offsetAfter&&(offsetAfter=params.slidesOffsetAfter.call(swiper)),swiper.snapGrid.length),previousSlidesGridLength=swiper.slidesGrid.length,spaceBetween=params.spaceBetween,slidePosition=-offsetBefore,prevSlideSize=0,index=0;if(void 0!==swiperSize){"string"==typeof spaceBetween&&0<=spaceBetween.indexOf("%")?spaceBetween=parseFloat(spaceBetween.replace("%",""))/100*swiperSize:"string"==typeof spaceBetween&&(spaceBetween=parseFloat(spaceBetween)),swiper.virtualSize=-spaceBetween,slides.forEach(function(slideEl){rtl?slideEl.style.marginLeft="":slideEl.style.marginRight="",slideEl.style.marginBottom="",slideEl.style.marginTop=""}),params.centeredSlides&&params.cssMode&&(Object(utils.s)(wrapperEl,"--swiper-centered-offset-before",""),Object(utils.s)(wrapperEl,"--swiper-centered-offset-after",""));for(var key,allSlidesSize,maxSnap,_allSlidesSize,allSlidesOffset,addToSnapGrid,addToSlidesGrid,gridEnabled=params.grid&&1<params.grid.rows&&swiper.grid,shouldResetSlideSize=(gridEnabled&&swiper.grid.initSlides(slidesLength),"auto"===params.slidesPerView&&params.breakpoints&&0<Object.keys(params.breakpoints).filter(function(key){return void 0!==params.breakpoints[key].slidesPerView}).length),i=0;i<slidesLength;i+=1){var currentTransform,currentWebKitTransform,width,paddingLeft,paddingRight,marginLeft,marginRight,slideStyles,clientWidth,slideSize,_slide=void(slideSize=0);slides[i]&&(_slide=slides[i]),gridEnabled&&swiper.grid.updateSlide(i,_slide,slidesLength,getDirectionLabel),slides[i]&&"none"===Object(utils.l)(_slide,"display")||("auto"===params.slidesPerView?(shouldResetSlideSize&&(slides[i].style[getDirectionLabel("width")]=""),slideStyles=getComputedStyle(_slide),currentTransform=_slide.style.transform,currentWebKitTransform=_slide.style.webkitTransform,currentTransform&&(_slide.style.transform="none"),currentWebKitTransform&&(_slide.style.webkitTransform="none"),slideSize=params.roundLengths?swiper.isHorizontal()?Object(utils.f)(_slide,"width",!0):Object(utils.f)(_slide,"height",!0):(width=getDirectionPropertyValue(slideStyles,"width"),paddingLeft=getDirectionPropertyValue(slideStyles,"padding-left"),paddingRight=getDirectionPropertyValue(slideStyles,"padding-right"),marginLeft=getDirectionPropertyValue(slideStyles,"margin-left"),marginRight=getDirectionPropertyValue(slideStyles,"margin-right"),(slideStyles=slideStyles.getPropertyValue("box-sizing"))&&"border-box"===slideStyles?width+marginLeft+marginRight:(clientWidth=(slideStyles=_slide).clientWidth,width+paddingLeft+paddingRight+marginLeft+marginRight+(slideStyles.offsetWidth-clientWidth))),currentTransform&&(_slide.style.transform=currentTransform),currentWebKitTransform&&(_slide.style.webkitTransform=currentWebKitTransform),params.roundLengths&&(slideSize=Math.floor(slideSize))):(slideSize=(swiperSize-(params.slidesPerView-1)*spaceBetween)/params.slidesPerView,params.roundLengths&&(slideSize=Math.floor(slideSize)),slides[i]&&(slides[i].style[getDirectionLabel("width")]="".concat(slideSize,"px"))),slides[i]&&(slides[i].swiperSlideSize=slideSize),slidesSizesGrid.push(slideSize),params.centeredSlides?(slidePosition=slidePosition+slideSize/2+prevSlideSize/2+spaceBetween,0===prevSlideSize&&0!==i&&(slidePosition=slidePosition-swiperSize/2-spaceBetween),0===i&&(slidePosition=slidePosition-swiperSize/2-spaceBetween),Math.abs(slidePosition)<.001&&(slidePosition=0),params.roundLengths&&(slidePosition=Math.floor(slidePosition)),index%params.slidesPerGroup==0&&snapGrid.push(slidePosition),slidesGrid.push(slidePosition)):(params.roundLengths&&(slidePosition=Math.floor(slidePosition)),(index-Math.min(swiper.params.slidesPerGroupSkip,index))%swiper.params.slidesPerGroup==0&&snapGrid.push(slidePosition),slidesGrid.push(slidePosition),slidePosition=slidePosition+slideSize+spaceBetween),swiper.virtualSize+=slideSize+spaceBetween,prevSlideSize=slideSize,index+=1)}if(swiper.virtualSize=Math.max(swiper.virtualSize,swiperSize)+offsetAfter,rtl&&wrongRTL&&("slide"===params.effect||"coverflow"===params.effect)&&(wrapperEl.style.width="".concat(swiper.virtualSize+spaceBetween,"px")),params.setWrapperSize&&(wrapperEl.style[getDirectionLabel("width")]="".concat(swiper.virtualSize+spaceBetween,"px")),gridEnabled&&swiper.grid.updateWrapperSize(slideSize,snapGrid,getDirectionLabel),!params.centeredSlides){for(var newSlidesGrid=[],_i=0;_i<snapGrid.length;_i+=1){var slidesGridItem=snapGrid[_i];params.roundLengths&&(slidesGridItem=Math.floor(slidesGridItem)),snapGrid[_i]<=swiper.virtualSize-swiperSize&&newSlidesGrid.push(slidesGridItem)}snapGrid=newSlidesGrid,1<Math.floor(swiper.virtualSize-swiperSize)-Math.floor(snapGrid[snapGrid.length-1])&&snapGrid.push(swiper.virtualSize-swiperSize)}if(isVirtual&&params.loop){var size=slidesSizesGrid[0]+spaceBetween;if(1<params.slidesPerGroup)for(var groups=Math.ceil((swiper.virtual.slidesBefore+swiper.virtual.slidesAfter)/params.slidesPerGroup),groupSize=size*params.slidesPerGroup,_i2=0;_i2<groups;_i2+=1)snapGrid.push(snapGrid[snapGrid.length-1]+groupSize);for(var _i3=0;_i3<swiper.virtual.slidesBefore+swiper.virtual.slidesAfter;_i3+=1)1===params.slidesPerGroup&&snapGrid.push(snapGrid[snapGrid.length-1]+size),slidesGrid.push(slidesGrid[slidesGrid.length-1]+size),swiper.virtualSize+=size}0===snapGrid.length&&(snapGrid=[0]),0!==spaceBetween&&(key=swiper.isHorizontal()&&rtl?"marginLeft":getDirectionLabel("marginRight"),slides.filter(function(_,slideIndex){return!(params.cssMode&&!params.loop)||slideIndex!==slides.length-1}).forEach(function(slideEl){slideEl.style[key]="".concat(spaceBetween,"px")})),params.centeredSlides&&params.centeredSlidesBounds&&(allSlidesSize=0,slidesSizesGrid.forEach(function(slideSizeValue){allSlidesSize+=slideSizeValue+(spaceBetween||0)}),maxSnap=(allSlidesSize-=spaceBetween)-swiperSize,snapGrid=snapGrid.map(function(snap){return snap<=0?-offsetBefore:maxSnap<snap?maxSnap+offsetAfter:snap})),params.centerInsufficientSlides&&(_allSlidesSize=0,slidesSizesGrid.forEach(function(slideSizeValue){_allSlidesSize+=slideSizeValue+(spaceBetween||0)}),(_allSlidesSize-=spaceBetween)<swiperSize)&&(allSlidesOffset=(swiperSize-_allSlidesSize)/2,snapGrid.forEach(function(snap,snapIndex){snapGrid[snapIndex]=snap-allSlidesOffset}),slidesGrid.forEach(function(snap,snapIndex){slidesGrid[snapIndex]=snap+allSlidesOffset})),Object.assign(swiper,{slides:slides,snapGrid:snapGrid,slidesGrid:slidesGrid,slidesSizesGrid:slidesSizesGrid}),params.centeredSlides&&params.cssMode&&!params.centeredSlidesBounds&&(Object(utils.s)(wrapperEl,"--swiper-centered-offset-before","".concat(-snapGrid[0],"px")),Object(utils.s)(wrapperEl,"--swiper-centered-offset-after","".concat(swiper.size/2-slidesSizesGrid[slidesSizesGrid.length-1]/2,"px")),addToSnapGrid=-swiper.snapGrid[0],addToSlidesGrid=-swiper.slidesGrid[0],swiper.snapGrid=swiper.snapGrid.map(function(v){return v+addToSnapGrid}),swiper.slidesGrid=swiper.slidesGrid.map(function(v){return v+addToSlidesGrid})),slidesLength!==previousSlidesLength&&swiper.emit("slidesLengthChange"),snapGrid.length!==slidesEl&&(swiper.params.watchOverflow&&swiper.checkOverflow(),swiper.emit("snapGridLengthChange")),slidesGrid.length!==previousSlidesGridLength&&swiper.emit("slidesGridLengthChange"),params.watchSlidesProgress&&swiper.updateSlidesOffset(),isVirtual||params.cssMode||"slide"!==params.effect&&"fade"!==params.effect||(wrongRTL="".concat(params.containerModifierClass,"backface-hidden"),wrapperEl=swiper.el.classList.contains(wrongRTL),slidesLength<=params.maxBackfaceHiddenSlides?wrapperEl||swiper.el.classList.add(wrongRTL):wrapperEl&&swiper.el.classList.remove(wrongRTL))}},updateAutoHeight:function(speed){function getSlideByIndex(index){return isVirtual?swiper.slides[swiper.getSlideIndexByData(index)]:swiper.slides[index]}var i,height,swiper=this,activeSlides=[],isVirtual=swiper.virtual&&swiper.params.virtual.enabled,newHeight=0;if("number"==typeof speed?swiper.setTransition(speed):!0===speed&&swiper.setTransition(swiper.params.speed),"auto"!==swiper.params.slidesPerView&&1<swiper.params.slidesPerView)if(swiper.params.centeredSlides)(swiper.visibleSlides||[]).forEach(function(slide){activeSlides.push(slide)});else for(i=0;i<Math.ceil(swiper.params.slidesPerView);i+=1){var index=swiper.activeIndex+i;if(index>swiper.slides.length&&!isVirtual)break;activeSlides.push(getSlideByIndex(index))}else activeSlides.push(getSlideByIndex(swiper.activeIndex));for(i=0;i<activeSlides.length;i+=1)void 0!==activeSlides[i]&&(newHeight=newHeight<(height=activeSlides[i].offsetHeight)?height:newHeight);!newHeight&&0!==newHeight||(swiper.wrapperEl.style.height="".concat(newHeight,"px"))},updateSlidesOffset:function(){for(var slides=this.slides,minusOffset=this.isElement?this.isHorizontal()?this.wrapperEl.offsetLeft:this.wrapperEl.offsetTop:0,i=0;i<slides.length;i+=1)slides[i].swiperSlideOffset=(this.isHorizontal()?slides[i].offsetLeft:slides[i].offsetTop)-minusOffset-this.cssOverflowAdjustment()},updateSlidesProgress:function(translate){void 0===translate&&(translate=this&&this.translate||0);var params=this.params,slides=this.slides,rtl=this.rtlTranslate,snapGrid=this.snapGrid;if(0!==slides.length){void 0===slides[0].swiperSlideOffset&&this.updateSlidesOffset();var offsetCenter=rtl?translate:-translate,spaceBetween=(slides.forEach(function(slideEl){slideEl.classList.remove(params.slideVisibleClass)}),this.visibleSlidesIndexes=[],this.visibleSlides=[],params.spaceBetween);"string"==typeof spaceBetween&&0<=spaceBetween.indexOf("%")?spaceBetween=parseFloat(spaceBetween.replace("%",""))/100*this.size:"string"==typeof spaceBetween&&(spaceBetween=parseFloat(spaceBetween));for(var i=0;i<slides.length;i+=1){var _slide3=slides[i],slideOffset=_slide3.swiperSlideOffset,slideProgress=(params.cssMode&&params.centeredSlides&&(slideOffset-=slides[0].swiperSlideOffset),(offsetCenter+(params.centeredSlides?this.minTranslate():0)-slideOffset)/(_slide3.swiperSlideSize+spaceBetween)),originalSlideProgress=(offsetCenter-snapGrid[0]+(params.centeredSlides?this.minTranslate():0)-slideOffset)/(_slide3.swiperSlideSize+spaceBetween),slideOffset=-(offsetCenter-slideOffset),slideAfter=slideOffset+this.slidesSizesGrid[i];(0<=slideOffset&&slideOffset<this.size-1||1<slideAfter&&slideAfter<=this.size||slideOffset<=0&&slideAfter>=this.size)&&(this.visibleSlides.push(_slide3),this.visibleSlidesIndexes.push(i),slides[i].classList.add(params.slideVisibleClass)),_slide3.progress=rtl?-slideProgress:slideProgress,_slide3.originalProgress=rtl?-originalSlideProgress:originalSlideProgress}}},updateProgress:function(translate){void 0===translate&&(multiplier=this.rtlTranslate?-1:1,translate=this&&this.translate&&this.translate*multiplier||0);var isEndRounded,translateMax,translateAbs,multiplier=this.params,translatesDiff=this.maxTranslate()-this.minTranslate(),progress=this.progress,isBeginning=this.isBeginning,isEnd=this.isEnd,progressLoop=this.progressLoop,wasBeginning=isBeginning,wasEnd=isEnd;0==translatesDiff?isEnd=isBeginning=!(progress=0):(progress=(translate-this.minTranslate())/translatesDiff,isBeginning=(translatesDiff=Math.abs(translate-this.minTranslate())<1)||progress<=0,isEnd=(isEndRounded=Math.abs(translate-this.maxTranslate())<1)||1<=progress,translatesDiff&&(progress=0),isEndRounded&&(progress=1)),multiplier.loop&&(translatesDiff=this.getSlideIndexByData(0),isEndRounded=this.getSlideIndexByData(this.slides.length-1),translatesDiff=this.slidesGrid[translatesDiff],isEndRounded=this.slidesGrid[isEndRounded],translateMax=this.slidesGrid[this.slidesGrid.length-1],1<(progressLoop=translatesDiff<=(translateAbs=Math.abs(translate))?(translateAbs-translatesDiff)/translateMax:(translateAbs+translateMax-isEndRounded)/translateMax))&&--progressLoop,Object.assign(this,{progress:progress,progressLoop:progressLoop,isBeginning:isBeginning,isEnd:isEnd}),(multiplier.watchSlidesProgress||multiplier.centeredSlides&&multiplier.autoHeight)&&this.updateSlidesProgress(translate),isBeginning&&!wasBeginning&&this.emit("reachBeginning toEdge"),isEnd&&!wasEnd&&this.emit("reachEnd toEdge"),(wasBeginning&&!isBeginning||wasEnd&&!isEnd)&&this.emit("fromEdge"),this.emit("progress",progress)},updateSlidesClasses:function(){function getFilteredSlide(selector){return Object(utils.e)(slidesEl,".".concat(params.slideClass).concat(selector,", swiper-slide").concat(selector))[0]}var slides=this.slides,params=this.params,slidesEl=this.slidesEl,activeIndex=this.activeIndex,isVirtual=this.virtual&&params.virtual.enabled;slides.forEach(function(slideEl){slideEl.classList.remove(params.slideActiveClass,params.slideNextClass,params.slidePrevClass)}),(isVirtual=isVirtual?params.loop?((isVirtual=(isVirtual=activeIndex-this.virtual.slidesBefore)<0?this.virtual.slides.length+isVirtual:isVirtual)>=this.virtual.slides.length&&(isVirtual-=this.virtual.slides.length),getFilteredSlide('[data-swiper-slide-index="'.concat(isVirtual,'"]'))):getFilteredSlide('[data-swiper-slide-index="'.concat(activeIndex,'"]')):slides[activeIndex])&&(isVirtual.classList.add(params.slideActiveClass),activeIndex=Object(utils.m)(isVirtual,".".concat(params.slideClass,", swiper-slide"))[0],(activeIndex=params.loop&&!activeIndex?slides[0]:activeIndex)&&activeIndex.classList.add(params.slideNextClass),activeIndex=Object(utils.o)(isVirtual,".".concat(params.slideClass,", swiper-slide"))[0],activeIndex=params.loop&&0===!activeIndex?slides[slides.length-1]:activeIndex)&&activeIndex.classList.add(params.slidePrevClass),this.emitSlidesClasses()},updateActiveIndex:function(newActiveIndex){function getVirtualRealIndex(aIndex){return(aIndex=(aIndex-=swiper.virtual.slidesBefore)<0?swiper.virtual.slides.length+aIndex:aIndex)>=swiper.virtual.slides.length&&(aIndex-=swiper.virtual.slides.length),aIndex}var swiper=this,translate=swiper.rtlTranslate?swiper.translate:-swiper.translate,snapGrid=swiper.snapGrid,params=swiper.params,previousIndex=swiper.activeIndex,previousRealIndex=swiper.realIndex,previousSnapIndex=swiper.snapIndex;void 0===newActiveIndex&&(newActiveIndex=(swiper=>{for(var activeIndex,slidesGrid=swiper.slidesGrid,params=swiper.params,translate=swiper.rtlTranslate?swiper.translate:-swiper.translate,i=0;i<slidesGrid.length;i+=1)void 0!==slidesGrid[i+1]?translate>=slidesGrid[i]&&translate<slidesGrid[i+1]-(slidesGrid[i+1]-slidesGrid[i])/2?activeIndex=i:translate>=slidesGrid[i]&&translate<slidesGrid[i+1]&&(activeIndex=i+1):translate>=slidesGrid[i]&&(activeIndex=i);return activeIndex=params.normalizeSlideIndex&&(activeIndex<0||void 0===activeIndex)?0:activeIndex})(swiper)),(translate=0<=snapGrid.indexOf(translate)?snapGrid.indexOf(translate):(translate=Math.min(params.slidesPerGroupSkip,newActiveIndex))+Math.floor((newActiveIndex-translate)/params.slidesPerGroup))>=snapGrid.length&&(translate=snapGrid.length-1),newActiveIndex===previousIndex?(translate!==previousSnapIndex&&(swiper.snapIndex=translate,swiper.emit("snapIndexChange")),swiper.params.loop&&swiper.virtual&&swiper.params.virtual.enabled&&(swiper.realIndex=getVirtualRealIndex(newActiveIndex))):(snapGrid=swiper.virtual&&params.virtual.enabled&&params.loop?getVirtualRealIndex(newActiveIndex):swiper.slides[newActiveIndex]?parseInt(swiper.slides[newActiveIndex].getAttribute("data-swiper-slide-index")||newActiveIndex,10):newActiveIndex,Object.assign(swiper,{previousSnapIndex:previousSnapIndex,snapIndex:translate,previousRealIndex:previousRealIndex,realIndex:snapGrid,previousIndex:previousIndex,activeIndex:newActiveIndex}),swiper.initialized&&preload(swiper),swiper.emit("activeIndexChange"),swiper.emit("snapIndexChange"),(swiper.initialized||swiper.params.runCallbacksOnInit)&&(previousRealIndex!==snapGrid&&swiper.emit("realIndexChange"),swiper.emit("slideChange")))},updateClickedSlide:function(el,path){var slideIndex,params=this.params,slide=el.closest(".".concat(params.slideClass,", swiper-slide")),slideFound=(!slide&&this.isElement&&path&&1<path.length&&path.includes(el)&&_toConsumableArray(path.slice(path.indexOf(el)+1,path.length)).forEach(function(pathEl){!slide&&pathEl.matches&&pathEl.matches(".".concat(params.slideClass,", swiper-slide"))&&(slide=pathEl)}),!1);if(slide)for(var i=0;i<this.slides.length;i+=1)if(this.slides[i]===slide){slideFound=!0,slideIndex=i;break}slide&&slideFound?(this.clickedSlide=slide,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(slide.getAttribute("data-swiper-slide-index"),10):this.clickedIndex=slideIndex,params.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()):(this.clickedSlide=void 0,this.clickedIndex=void 0)}},translate:{getTranslate:function(axis){void 0===axis&&(axis=this.isHorizontal()?"x":"y");var params=this.params,rtl=this.rtlTranslate,translate=this.translate,wrapperEl=this.wrapperEl;return params.virtualTranslate?rtl?-translate:translate:params.cssMode?translate:(params=Object(utils.h)(wrapperEl,axis),params+=this.cssOverflowAdjustment(),(params=rtl?-params:params)||0)},setTranslate:function(translate,byController){var rtl=this.rtlTranslate,params=this.params,wrapperEl=this.wrapperEl,progress=this.progress,x=0,y=0,rtl=(this.isHorizontal()?x=rtl?-translate:translate:y=translate,params.roundLengths&&(x=Math.floor(x),y=Math.floor(y)),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?x:y,params.cssMode?wrapperEl[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-x:-y:params.virtualTranslate||(this.isHorizontal()?x-=this.cssOverflowAdjustment():y-=this.cssOverflowAdjustment(),wrapperEl.style.transform="translate3d(".concat(x,"px, ").concat(y,"px, ").concat(0,"px)")),this.maxTranslate()-this.minTranslate());(params=0==rtl?0:(translate-this.minTranslate())/rtl)!==progress&&this.updateProgress(translate),this.emit("setTranslate",this.translate,byController)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(translate,speed,runCallbacks,translateBounds,internal){void 0===translate&&(translate=0),void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0),void 0===translateBounds&&(translateBounds=!0);var swiper=this,params=swiper.params,wrapperEl=swiper.wrapperEl;if(swiper.animating&&params.preventInteractionOnTransition)return!1;var minTranslate=swiper.minTranslate(),maxTranslate=swiper.maxTranslate(),minTranslate=translateBounds&&minTranslate<translate?minTranslate:translateBounds&&translate<maxTranslate?maxTranslate:translate;if(swiper.updateProgress(minTranslate),params.cssMode){translateBounds=swiper.isHorizontal();if(0===speed)wrapperEl[translateBounds?"scrollLeft":"scrollTop"]=-minTranslate;else{if(!swiper.support.smoothScroll)return Object(utils.p)({swiper:swiper,targetPosition:-minTranslate,side:translateBounds?"left":"top"}),!0;wrapperEl.scrollTo(_defineProperty(_defineProperty({},translateBounds?"left":"top",-minTranslate),"behavior","smooth"))}}else 0===speed?(swiper.setTransition(0),swiper.setTranslate(minTranslate),runCallbacks&&(swiper.emit("beforeTransitionStart",speed,internal),swiper.emit("transitionEnd"))):(swiper.setTransition(speed),swiper.setTranslate(minTranslate),runCallbacks&&(swiper.emit("beforeTransitionStart",speed,internal),swiper.emit("transitionStart")),swiper.animating||(swiper.animating=!0,swiper.onTranslateToWrapperTransitionEnd||(swiper.onTranslateToWrapperTransitionEnd=function(e){swiper&&!swiper.destroyed&&e.target===this&&(swiper.wrapperEl.removeEventListener("transitionend",swiper.onTranslateToWrapperTransitionEnd),swiper.onTranslateToWrapperTransitionEnd=null,delete swiper.onTranslateToWrapperTransitionEnd,runCallbacks)&&swiper.emit("transitionEnd")}),swiper.wrapperEl.addEventListener("transitionend",swiper.onTranslateToWrapperTransitionEnd)));return!0}},transition:{setTransition:function(duration,byController){this.params.cssMode||(this.wrapperEl.style.transitionDuration="".concat(duration,"ms"),this.wrapperEl.style.transitionDelay=0===duration?"0ms":""),this.emit("setTransition",duration,byController)},transitionStart:function(runCallbacks,direction){void 0===runCallbacks&&(runCallbacks=!0);var params=this.params;params.cssMode||(params.autoHeight&&this.updateAutoHeight(),transitionEmit({swiper:this,runCallbacks:runCallbacks,direction:direction,step:"Start"}))},transitionEnd:function(runCallbacks,direction){void 0===runCallbacks&&(runCallbacks=!0);var params=this.params;this.animating=!1,params.cssMode||(this.setTransition(0),transitionEmit({swiper:this,runCallbacks:runCallbacks,direction:direction,step:"End"}))}},slide:{slideTo:function(index,speed,runCallbacks,internal,initial){void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0),"string"==typeof(index=void 0===index?0:index)&&(index=parseInt(index,10));var swiper=this,slideIndex=index,index=(slideIndex<0&&(slideIndex=0),swiper.params),snapGrid=swiper.snapGrid,slidesGrid=swiper.slidesGrid,previousIndex=swiper.previousIndex,activeIndex=swiper.activeIndex,rtl=swiper.rtlTranslate,wrapperEl=swiper.wrapperEl;if(swiper.animating&&index.preventInteractionOnTransition||!swiper.enabled&&!internal&&!initial)return!1;var direction,initial=(initial=Math.min(swiper.params.slidesPerGroupSkip,slideIndex))+Math.floor((slideIndex-initial)/swiper.params.slidesPerGroup),translate=-snapGrid[initial=initial>=snapGrid.length?snapGrid.length-1:initial];if(index.normalizeSlideIndex)for(var i=0;i<slidesGrid.length;i+=1){var normalizedTranslate=-Math.floor(100*translate),normalizedGrid=Math.floor(100*slidesGrid[i]),normalizedGridNext=Math.floor(100*slidesGrid[i+1]);void 0!==slidesGrid[i+1]?normalizedGrid<=normalizedTranslate&&normalizedTranslate<normalizedGridNext-(normalizedGridNext-normalizedGrid)/2?slideIndex=i:normalizedGrid<=normalizedTranslate&&normalizedTranslate<normalizedGridNext&&(slideIndex=i+1):normalizedGrid<=normalizedTranslate&&(slideIndex=i)}if(swiper.initialized&&slideIndex!==activeIndex){if(!swiper.allowSlideNext&&(rtl?translate>swiper.translate&&translate>swiper.minTranslate():translate<swiper.translate&&translate<swiper.minTranslate()))return!1;if(!swiper.allowSlidePrev&&translate>swiper.translate&&translate>swiper.maxTranslate()&&(activeIndex||0)!==slideIndex)return!1}if(slideIndex!==(previousIndex||0)&&runCallbacks&&swiper.emit("beforeSlideChangeStart"),swiper.updateProgress(translate),direction=activeIndex<slideIndex?"next":slideIndex<activeIndex?"prev":"reset",rtl&&-translate===swiper.translate||!rtl&&translate===swiper.translate)return swiper.updateActiveIndex(slideIndex),index.autoHeight&&swiper.updateAutoHeight(),swiper.updateSlidesClasses(),"slide"!==index.effect&&swiper.setTranslate(translate),"reset"!==direction&&(swiper.transitionStart(runCallbacks,direction),swiper.transitionEnd(runCallbacks,direction)),!1;if(index.cssMode){var isH=swiper.isHorizontal(),t=rtl?translate:-translate;if(0===speed){snapGrid=swiper.virtual&&swiper.params.virtual.enabled;snapGrid&&(swiper.wrapperEl.style.scrollSnapType="none",swiper._immediateVirtual=!0),snapGrid&&!swiper._cssModeVirtualInitialSet&&0<swiper.params.initialSlide?(swiper._cssModeVirtualInitialSet=!0,requestAnimationFrame(function(){wrapperEl[isH?"scrollLeft":"scrollTop"]=t})):wrapperEl[isH?"scrollLeft":"scrollTop"]=t,snapGrid&&requestAnimationFrame(function(){swiper.wrapperEl.style.scrollSnapType="",swiper._immediateVirtual=!1})}else{if(!swiper.support.smoothScroll)return Object(utils.p)({swiper:swiper,targetPosition:t,side:isH?"left":"top"}),!0;wrapperEl.scrollTo(_defineProperty(_defineProperty({},isH?"left":"top",t),"behavior","smooth"))}}else swiper.setTransition(speed),swiper.setTranslate(translate),swiper.updateActiveIndex(slideIndex),swiper.updateSlidesClasses(),swiper.emit("beforeTransitionStart",speed,internal),swiper.transitionStart(runCallbacks,direction),0===speed?swiper.transitionEnd(runCallbacks,direction):swiper.animating||(swiper.animating=!0,swiper.onSlideToWrapperTransitionEnd||(swiper.onSlideToWrapperTransitionEnd=function(e){swiper&&!swiper.destroyed&&e.target===this&&(swiper.wrapperEl.removeEventListener("transitionend",swiper.onSlideToWrapperTransitionEnd),swiper.onSlideToWrapperTransitionEnd=null,delete swiper.onSlideToWrapperTransitionEnd,swiper.transitionEnd(runCallbacks,direction))}),swiper.wrapperEl.addEventListener("transitionend",swiper.onSlideToWrapperTransitionEnd));return!0},slideToLoop:function(index,speed,runCallbacks,internal){return void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0),index="string"==typeof(index=void 0===index?0:index)?parseInt(index,10):index,this.params.loop&&(this.virtual&&this.params.virtual.enabled?index+=this.virtual.slidesBefore:index=this.getSlideIndexByData(index)),this.slideTo(index,speed,runCallbacks,internal)},slideNext:function(speed,runCallbacks,internal){void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0);var swiper=this,enabled=swiper.enabled,params=swiper.params,animating=swiper.animating;if(!enabled)return swiper;var enabled=params.slidesPerGroup,increment=("auto"===params.slidesPerView&&1===params.slidesPerGroup&&params.slidesPerGroupAuto&&(enabled=Math.max(swiper.slidesPerViewDynamic("current",!0),1)),swiper.activeIndex<params.slidesPerGroupSkip?1:enabled),enabled=swiper.virtual&&params.virtual.enabled;if(params.loop){if(animating&&!enabled&&params.loopPreventsSliding)return!1;if(swiper.loopFix({direction:"next"}),swiper._clientLeft=swiper.wrapperEl.clientLeft,swiper.activeIndex===swiper.slides.length-1&&params.cssMode)return requestAnimationFrame(function(){swiper.slideTo(swiper.activeIndex+increment,speed,runCallbacks,internal)}),!0}return params.rewind&&swiper.isEnd?swiper.slideTo(0,speed,runCallbacks,internal):swiper.slideTo(swiper.activeIndex+increment,speed,runCallbacks,internal)},slidePrev:function(speed,runCallbacks,internal){void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0);var swiper=this,params=swiper.params,snapGrid=swiper.snapGrid,slidesGrid=swiper.slidesGrid,rtlTranslate=swiper.rtlTranslate;if(!swiper.enabled)return swiper;var isVirtual=swiper.virtual&&params.virtual.enabled;if(params.loop){if(swiper.animating&&!isVirtual&&params.loopPreventsSliding)return!1;swiper.loopFix({direction:"prev"}),swiper._clientLeft=swiper.wrapperEl.clientLeft}function normalize(val){return val<0?-Math.floor(Math.abs(val)):Math.floor(val)}var prevSnapIndex,normalizedTranslate=normalize(rtlTranslate?swiper.translate:-swiper.translate),isVirtual=snapGrid.map(normalize),prevIndex=(void 0===(rtlTranslate=snapGrid[isVirtual.indexOf(normalizedTranslate)-1])&&params.cssMode&&(snapGrid.forEach(function(snap,snapIndex){snap<=normalizedTranslate&&(prevSnapIndex=snapIndex)}),void 0!==prevSnapIndex)&&(rtlTranslate=snapGrid[0<prevSnapIndex?prevSnapIndex-1:prevSnapIndex]),0);return void 0!==rtlTranslate&&((prevIndex=slidesGrid.indexOf(rtlTranslate))<0&&(prevIndex=swiper.activeIndex-1),"auto"===params.slidesPerView)&&1===params.slidesPerGroup&&params.slidesPerGroupAuto&&(prevIndex=prevIndex-swiper.slidesPerViewDynamic("previous",!0)+1,prevIndex=Math.max(prevIndex,0)),params.rewind&&swiper.isBeginning?(isVirtual=swiper.params.virtual&&swiper.params.virtual.enabled&&swiper.virtual?swiper.virtual.slides.length-1:swiper.slides.length-1,swiper.slideTo(isVirtual,speed,runCallbacks,internal)):params.loop&&0===swiper.activeIndex&&params.cssMode?(requestAnimationFrame(function(){swiper.slideTo(prevIndex,speed,runCallbacks,internal)}),!0):swiper.slideTo(prevIndex,speed,runCallbacks,internal)},slideReset:function(speed,runCallbacks,internal){return void 0===speed&&(speed=this.params.speed),this.slideTo(this.activeIndex,speed,runCallbacks=void 0===runCallbacks?!0:runCallbacks,internal)},slideToClosest:function(speed,runCallbacks,internal,threshold){void 0===speed&&(speed=this.params.speed),void 0===runCallbacks&&(runCallbacks=!0),void 0===threshold&&(threshold=.5);var currentSnap,index=this.activeIndex,skip=(skip=Math.min(this.params.slidesPerGroupSkip,index))+Math.floor((index-skip)/this.params.slidesPerGroup),translate=this.rtlTranslate?this.translate:-this.translate;return translate>=this.snapGrid[skip]?(currentSnap=this.snapGrid[skip],(this.snapGrid[skip+1]-currentSnap)*threshold<translate-currentSnap&&(index+=this.params.slidesPerGroup)):translate-(currentSnap=this.snapGrid[skip-1])<=(this.snapGrid[skip]-currentSnap)*threshold&&(index-=this.params.slidesPerGroup),index=Math.max(index,0),index=Math.min(index,this.slidesGrid.length-1),this.slideTo(index,speed,runCallbacks,internal)},slideToClickedSlide:function(){var realIndex,swiper=this,params=swiper.params,slidesEl=swiper.slidesEl,slidesPerView="auto"===params.slidesPerView?swiper.slidesPerViewDynamic():params.slidesPerView,slideToIndex=swiper.clickedIndex,slideSelector=swiper.isElement?"swiper-slide":".".concat(params.slideClass);params.loop?swiper.animating||(realIndex=parseInt(swiper.clickedSlide.getAttribute("data-swiper-slide-index"),10),params.centeredSlides?slideToIndex<swiper.loopedSlides-slidesPerView/2||slideToIndex>swiper.slides.length-swiper.loopedSlides+slidesPerView/2?(swiper.loopFix(),slideToIndex=swiper.getSlideIndex(Object(utils.e)(slidesEl,"".concat(slideSelector,'[data-swiper-slide-index="').concat(realIndex,'"]'))[0]),Object(utils.n)(function(){swiper.slideTo(slideToIndex)})):swiper.slideTo(slideToIndex):slideToIndex>swiper.slides.length-slidesPerView?(swiper.loopFix(),slideToIndex=swiper.getSlideIndex(Object(utils.e)(slidesEl,"".concat(slideSelector,'[data-swiper-slide-index="').concat(realIndex,'"]'))[0]),Object(utils.n)(function(){swiper.slideTo(slideToIndex)})):swiper.slideTo(slideToIndex)):swiper.slideTo(slideToIndex)}},loop:{loopCreate:function(slideRealIndex){var params=this.params,slidesEl=this.slidesEl;!params.loop||this.virtual&&this.params.virtual.enabled||(Object(utils.e)(slidesEl,".".concat(params.slideClass,", swiper-slide")).forEach(function(el,index){el.setAttribute("data-swiper-slide-index",index)}),this.loopFix({slideRealIndex:slideRealIndex,direction:params.centeredSlides?void 0:"next"}))},loopFix:function(_temp){var slideRealIndex=(_temp=void 0===_temp?{}:_temp).slideRealIndex,slideTo=void 0===(_ref4$slideTo=_temp.slideTo)||_ref4$slideTo,_ref4$slideTo=_temp.direction,setTranslate=_temp.setTranslate,activeSlideIndex=_temp.activeSlideIndex,byController=_temp.byController,_temp=_temp.byMousewheel,swiper=this;if(swiper.params.loop){swiper.emit("beforeLoopFix");var slides=swiper.slides,allowSlidePrev=swiper.allowSlidePrev,allowSlideNext=swiper.allowSlideNext,slidesEl=swiper.slidesEl,params=swiper.params;if(swiper.allowSlidePrev=!0,swiper.allowSlideNext=!0,swiper.virtual&&params.virtual.enabled)slideTo&&(params.centeredSlides||0!==swiper.snapIndex?params.centeredSlides&&swiper.snapIndex<params.slidesPerView?swiper.slideTo(swiper.virtual.slides.length+swiper.snapIndex,0,!1,!0):swiper.snapIndex===swiper.snapGrid.length-1&&swiper.slideTo(swiper.virtual.slidesBefore,0,!1,!0):swiper.slideTo(swiper.virtual.slides.length,0,!1,!0)),swiper.allowSlidePrev=allowSlidePrev,swiper.allowSlideNext=allowSlideNext;else{var loopParams,slidesPerView="auto"===params.slidesPerView?swiper.slidesPerViewDynamic():Math.ceil(parseFloat(params.slidesPerView,10)),loopedSlides=params.loopedSlides||slidesPerView,prependSlidesIndexes=(loopedSlides%params.slidesPerGroup!=0&&(loopedSlides+=params.slidesPerGroup-loopedSlides%params.slidesPerGroup),swiper.loopedSlides=loopedSlides,[]),appendSlidesIndexes=[],slidesPerView=swiper.activeIndex,isNext=(void 0===activeSlideIndex?activeSlideIndex=swiper.getSlideIndex(swiper.slides.filter(function(el){return el.classList.contains(params.slideActiveClass)})[0]):slidesPerView=activeSlideIndex,"next"===_ref4$slideTo||!_ref4$slideTo),isPrev="prev"===_ref4$slideTo||!_ref4$slideTo,slidesPrepended=0,slidesAppended=0;if(activeSlideIndex<loopedSlides)for(var slidesPrepended=Math.max(loopedSlides-activeSlideIndex,params.slidesPerGroup),i=0;i<loopedSlides-activeSlideIndex;i+=1){var index=i-Math.floor(i/slides.length)*slides.length;prependSlidesIndexes.push(slides.length-index-1)}else if(activeSlideIndex>swiper.slides.length-2*loopedSlides)for(var slidesAppended=Math.max(activeSlideIndex-(swiper.slides.length-2*loopedSlides),params.slidesPerGroup),_i5=0;_i5<slidesAppended;_i5+=1){var _index=_i5-Math.floor(_i5/slides.length)*slides.length;appendSlidesIndexes.push(_index)}isPrev&&prependSlidesIndexes.forEach(function(index){swiper.slides[index].swiperLoopMoveDOM=!0,slidesEl.prepend(swiper.slides[index]),swiper.slides[index].swiperLoopMoveDOM=!1}),isNext&&appendSlidesIndexes.forEach(function(index){swiper.slides[index].swiperLoopMoveDOM=!0,slidesEl.append(swiper.slides[index]),swiper.slides[index].swiperLoopMoveDOM=!1}),swiper.recalcSlides(),"auto"===params.slidesPerView&&swiper.updateSlides(),params.watchSlidesProgress&&swiper.updateSlidesOffset(),slideTo&&(0<prependSlidesIndexes.length&&isPrev?void 0===slideRealIndex?(isPrev=swiper.slidesGrid[slidesPerView],isPrev=swiper.slidesGrid[slidesPerView+slidesPrepended]-isPrev,_temp?swiper.setTranslate(swiper.translate-isPrev):(swiper.slideTo(slidesPerView+slidesPrepended,0,!1,!0),setTranslate&&(swiper.touches[swiper.isHorizontal()?"startX":"startY"]+=isPrev,swiper.touchEventsData.currentTranslate=swiper.translate))):setTranslate&&(swiper.slideToLoop(slideRealIndex,0,!1,!0),swiper.touchEventsData.currentTranslate=swiper.translate):0<appendSlidesIndexes.length&&isNext&&(void 0===slideRealIndex?(slidesPrepended=swiper.slidesGrid[slidesPerView],isPrev=swiper.slidesGrid[slidesPerView-slidesAppended]-slidesPrepended,_temp?swiper.setTranslate(swiper.translate-isPrev):(swiper.slideTo(slidesPerView-slidesAppended,0,!1,!0),setTranslate&&(swiper.touches[swiper.isHorizontal()?"startX":"startY"]+=isPrev,swiper.touchEventsData.currentTranslate=swiper.translate))):swiper.slideToLoop(slideRealIndex,0,!1,!0))),swiper.allowSlidePrev=allowSlidePrev,swiper.allowSlideNext=allowSlideNext,swiper.controller&&swiper.controller.control&&!byController&&(loopParams={slideRealIndex:slideRealIndex,direction:_ref4$slideTo,setTranslate:setTranslate,activeSlideIndex:activeSlideIndex,byController:!0},Array.isArray(swiper.controller.control)?swiper.controller.control.forEach(function(c){!c.destroyed&&c.params.loop&&c.loopFix(_objectSpread(_objectSpread({},loopParams),{},{slideTo:c.params.slidesPerView===params.slidesPerView&&slideTo}))}):swiper.controller.control instanceof swiper.constructor&&swiper.controller.control.params.loop&&swiper.controller.control.loopFix(_objectSpread(_objectSpread({},loopParams),{},{slideTo:swiper.controller.control.params.slidesPerView===params.slidesPerView&&slideTo})))}swiper.emit("loopFix")}},loopDestroy:function(){var newSlidesOrder,params=this.params,slidesEl=this.slidesEl;!params.loop||this.virtual&&this.params.virtual.enabled||(this.recalcSlides(),newSlidesOrder=[],this.slides.forEach(function(slideEl){var index=void 0===slideEl.swiperSlideIndex?+slideEl.getAttribute("data-swiper-slide-index"):slideEl.swiperSlideIndex;newSlidesOrder[index]=slideEl}),this.slides.forEach(function(slideEl){slideEl.removeAttribute("data-swiper-slide-index")}),newSlidesOrder.forEach(function(slideEl){slidesEl.append(slideEl)}),this.recalcSlides(),this.slideTo(this.realIndex,0))}},grabCursor:{setGrabCursor:function(moving){var el,swiper=this;!swiper.params.simulateTouch||swiper.params.watchOverflow&&swiper.isLocked||swiper.params.cssMode||(el="container"===swiper.params.touchEventsTarget?swiper.el:swiper.wrapperEl,swiper.isElement&&(swiper.__preventObserver__=!0),el.style.cursor="move",el.style.cursor=moving?"grabbing":"grab",swiper.isElement&&requestAnimationFrame(function(){swiper.__preventObserver__=!1}))},unsetGrabCursor:function(){var swiper=this;swiper.params.watchOverflow&&swiper.isLocked||swiper.params.cssMode||(swiper.isElement&&(swiper.__preventObserver__=!0),swiper["container"===swiper.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",swiper.isElement&&requestAnimationFrame(function(){swiper.__preventObserver__=!1}))}},events:{attachEvents:function(){var document=Object(ssr_window_esm.b)(),params=this.params;this.onTouchStart=function(event){var document=Object(ssr_window_esm.b)(),window=Object(ssr_window_esm.a)(),data=this.touchEventsData,params=(data.evCache.push(event),this.params),touches=this.touches,enabled=this.enabled;if(enabled&&(params.simulateTouch||"mouse"!==event.pointerType)&&(!this.animating||!params.preventInteractionOnTransition)){!this.animating&&params.cssMode&&params.loop&&this.loopFix();var enabled=event,targetEl=(enabled=enabled.originalEvent?enabled.originalEvent:enabled).target;if(("wrapper"!==params.touchEventsTarget||this.wrapperEl.contains(targetEl))&&!("which"in enabled&&3===enabled.which||"button"in enabled&&0<enabled.button||data.isTouched&&data.isMoved)){var swipingClassHasValue=!!params.noSwipingClass&&""!==params.noSwipingClass,eventPath=event.composedPath?event.composedPath():event.path,swipingClassHasValue=(swipingClassHasValue&&enabled.target&&enabled.target.shadowRoot&&eventPath&&(targetEl=eventPath[0]),params.noSwipingSelector||".".concat(params.noSwipingClass)),eventPath=!(!enabled.target||!enabled.target.shadowRoot);if(params.noSwiping&&(eventPath?closestElement(swipingClassHasValue,targetEl):targetEl.closest(swipingClassHasValue)))this.allowClick=!0;else if(!params.swipeHandler||targetEl.closest(params.swipeHandler)){touches.currentX=enabled.pageX,touches.currentY=enabled.pageY;var eventPath=touches.currentX,swipingClassHasValue=touches.currentY,edgeSwipeDetection=params.edgeSwipeDetection||params.iOSEdgeSwipeDetection,edgeSwipeThreshold=params.edgeSwipeThreshold||params.iOSEdgeSwipeThreshold;if(edgeSwipeDetection&&(eventPath<=edgeSwipeThreshold||eventPath>=window.innerWidth-edgeSwipeThreshold)){if("prevent"!==edgeSwipeDetection)return;event.preventDefault()}Object.assign(data,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),touches.startX=eventPath,touches.startY=swipingClassHasValue,data.touchStartTime=Object(utils.d)(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,0<params.threshold&&(data.allowThresholdMove=!1);window=!0,edgeSwipeThreshold=(targetEl.matches(data.focusableElements)&&(window=!1,"SELECT"===targetEl.nodeName)&&(data.isTouched=!1),document.activeElement&&document.activeElement.matches(data.focusableElements)&&document.activeElement!==targetEl&&document.activeElement.blur(),window&&this.allowTouchMove&&params.touchStartPreventDefault);!params.touchStartForcePreventDefault&&!edgeSwipeThreshold||targetEl.isContentEditable||enabled.preventDefault(),params.freeMode&&params.freeMode.enabled&&this.freeMode&&this.animating&&!params.cssMode&&this.freeMode.onTouchStart(),this.emit("touchStart",enabled)}}}}.bind(this),this.onTouchMove=function(event){var document=Object(ssr_window_esm.b)(),data=this.touchEventsData,params=this.params,touches=this.touches,rtl=this.rtlTranslate,enabled=this.enabled;if(enabled&&(params.simulateTouch||"mouse"!==event.pointerType)){var e=event;if(e.originalEvent&&(e=e.originalEvent),data.isTouched){enabled=data.evCache.findIndex(function(cachedEv){return cachedEv.pointerId===e.pointerId}),event=(0<=enabled&&(data.evCache[enabled]=e),1<data.evCache.length?data.evCache[0]:e),enabled=event.pageX,event=event.pageY;if(e.preventedByNestedSwiper)touches.startX=enabled,touches.startY=event;else if(this.allowTouchMove){if(params.touchReleaseOnEdges&&!params.loop)if(this.isVertical()){if(event<touches.startY&&this.translate<=this.maxTranslate()||event>touches.startY&&this.translate>=this.minTranslate())return data.isTouched=!1,void(data.isMoved=!1)}else if(enabled<touches.startX&&this.translate<=this.maxTranslate()||enabled>touches.startX&&this.translate>=this.minTranslate())return;if(document.activeElement&&e.target===document.activeElement&&e.target.matches(data.focusableElements))data.isMoved=!0,this.allowClick=!1;else if(data.allowTouchCallbacks&&this.emit("touchMove",e),!(e.targetTouches&&1<e.targetTouches.length)){touches.currentX=enabled,touches.currentY=event;var document=touches.currentX-touches.startX,diffY=touches.currentY-touches.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(document,2)+Math.pow(diffY,2))<this.params.threshold))if(void 0===data.isScrolling&&(this.isHorizontal()&&touches.currentY===touches.startY||this.isVertical()&&touches.currentX===touches.startX?data.isScrolling=!1:25<=document*document+diffY*diffY&&(touchAngle=180*Math.atan2(Math.abs(diffY),Math.abs(document))/Math.PI,data.isScrolling=this.isHorizontal()?touchAngle>params.touchAngle:90-touchAngle>params.touchAngle)),data.isScrolling&&this.emit("touchMoveOpposite",e),void 0!==data.startMoving||touches.currentX===touches.startX&&touches.currentY===touches.startY||(data.startMoving=!0),data.isScrolling||this.zoom&&this.params.zoom&&this.params.zoom.enabled&&1<data.evCache.length)data.isTouched=!1;else if(data.startMoving){this.allowClick=!1,!params.cssMode&&e.cancelable&&e.preventDefault(),params.touchMoveStopPropagation&&!params.nested&&e.stopPropagation();var loopFixed,touchAngle=this.isHorizontal()?document:diffY,document=this.isHorizontal()?touches.currentX-touches.previousX:touches.currentY-touches.previousY,diffY=(params.oneWayMovement&&(touchAngle=Math.abs(touchAngle)*(rtl?1:-1),document=Math.abs(document)*(rtl?1:-1)),touches.diff=touchAngle,touchAngle*=params.touchRatio,rtl&&(touchAngle=-touchAngle,document=-document),this.touchesDirection),rtl=(this.swipeDirection=0<touchAngle?"prev":"next",this.touchesDirection=0<document?"prev":"next",this.params.loop&&!params.cssMode),document="next"===this.swipeDirection&&this.allowSlideNext||"prev"===this.swipeDirection&&this.allowSlidePrev,evt=(data.isMoved||(rtl&&document&&this.loopFix({direction:this.swipeDirection}),data.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&(evt=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0}),this.wrapperEl.dispatchEvent(evt)),data.allowMomentumBounce=!1,!params.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",e)),data.isMoved&&diffY!==this.touchesDirection&&rtl&&document&&1<=Math.abs(touchAngle)&&(this.loopFix({direction:this.swipeDirection,setTranslate:!0}),loopFixed=!0),this.emit("sliderMove",e),data.isMoved=!0,data.currentTranslate=touchAngle+data.startTranslate,!0),diffY=params.resistanceRatio;if(params.touchReleaseOnEdges&&(diffY=0),0<touchAngle?(rtl&&document&&!loopFixed&&data.currentTranslate>(params.centeredSlides?this.minTranslate()-this.size/2:this.minTranslate())&&this.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),data.currentTranslate>this.minTranslate()&&(evt=!1,params.resistance)&&(data.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+data.startTranslate+touchAngle,diffY))):touchAngle<0&&(rtl&&document&&!loopFixed&&data.currentTranslate<(params.centeredSlides?this.maxTranslate()+this.size/2:this.maxTranslate())&&this.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:this.slides.length-("auto"===params.slidesPerView?this.slidesPerViewDynamic():Math.ceil(parseFloat(params.slidesPerView,10)))}),data.currentTranslate<this.maxTranslate())&&(evt=!1,params.resistance)&&(data.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-data.startTranslate-touchAngle,diffY)),evt&&(e.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&data.currentTranslate<data.startTranslate&&(data.currentTranslate=data.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&data.currentTranslate>data.startTranslate&&(data.currentTranslate=data.startTranslate),this.allowSlidePrev||this.allowSlideNext||(data.currentTranslate=data.startTranslate),0<params.threshold){if(!(Math.abs(touchAngle)>params.threshold||data.allowThresholdMove))return void(data.currentTranslate=data.startTranslate);if(!data.allowThresholdMove)return data.allowThresholdMove=!0,touches.startX=touches.currentX,touches.startY=touches.currentY,data.currentTranslate=data.startTranslate,void(touches.diff=this.isHorizontal()?touches.currentX-touches.startX:touches.currentY-touches.startY)}params.followFinger&&!params.cssMode&&((params.freeMode&&params.freeMode.enabled&&this.freeMode||params.watchSlidesProgress)&&(this.updateActiveIndex(),this.updateSlidesClasses()),params.freeMode&&params.freeMode.enabled&&this.freeMode&&this.freeMode.onTouchMove(),this.updateProgress(data.currentTranslate),this.setTranslate(data.currentTranslate))}}}else e.target.matches(data.focusableElements)||(this.allowClick=!1),data.isTouched&&(Object.assign(touches,{startX:enabled,startY:event,prevX:this.touches.currentX,prevY:this.touches.currentY,currentX:enabled,currentY:event}),data.touchStartTime=Object(utils.d)())}else data.startMoving&&data.isScrolling&&this.emit("touchMoveOpposite",e)}}.bind(this),this.onTouchEnd=function(event){var swiper=this,data=swiper.touchEventsData,pointerIndex=data.evCache.findIndex(function(cachedEv){return cachedEv.pointerId===event.pointerId});if(0<=pointerIndex&&data.evCache.splice(pointerIndex,1),!["pointercancel","pointerout","pointerleave","contextmenu"].includes(event.type)||["pointercancel","contextmenu"].includes(event.type)&&(swiper.browser.isSafari||swiper.browser.isWebView)){var params=swiper.params,pointerIndex=swiper.touches,rtl=swiper.rtlTranslate,slidesGrid=swiper.slidesGrid,enabled=swiper.enabled;if(enabled&&(params.simulateTouch||"mouse"!==event.pointerType)){enabled=event;if(enabled.originalEvent&&(enabled=enabled.originalEvent),data.allowTouchCallbacks&&swiper.emit("touchEnd",enabled),data.allowTouchCallbacks=!1,data.isTouched){params.grabCursor&&data.isMoved&&data.isTouched&&(!0===swiper.allowSlideNext||!0===swiper.allowSlidePrev)&&swiper.setGrabCursor(!1);var currentPos,touchEndTime=Object(utils.d)(),timeDiff=touchEndTime-data.touchStartTime;if(swiper.allowClick&&(pathTree=enabled.path||enabled.composedPath&&enabled.composedPath(),swiper.updateClickedSlide(pathTree&&pathTree[0]||enabled.target,pathTree),swiper.emit("tap click",enabled),timeDiff<300)&&touchEndTime-data.lastClickTime<300&&swiper.emit("doubleTap doubleClick",enabled),data.lastClickTime=Object(utils.d)(),Object(utils.n)(function(){swiper.destroyed||(swiper.allowClick=!0)}),data.isTouched&&data.isMoved&&swiper.swipeDirection&&0!==pointerIndex.diff&&data.currentTranslate!==data.startTranslate){if(data.isTouched=!1,data.isMoved=!1,data.startMoving=!1,currentPos=params.followFinger?rtl?swiper.translate:-swiper.translate:-data.currentTranslate,!params.cssMode)if(params.freeMode&&params.freeMode.enabled)swiper.freeMode.onTouchEnd({currentPos:currentPos});else{for(var stopIndex=0,groupSize=swiper.slidesSizesGrid[0],i=0;i<slidesGrid.length;i+=i<params.slidesPerGroupSkip?1:params.slidesPerGroup){var _increment=i<params.slidesPerGroupSkip-1?1:params.slidesPerGroup;void 0!==slidesGrid[i+_increment]?currentPos>=slidesGrid[i]&&currentPos<slidesGrid[i+_increment]&&(groupSize=slidesGrid[(stopIndex=i)+_increment]-slidesGrid[i]):currentPos>=slidesGrid[i]&&(stopIndex=i,groupSize=slidesGrid[slidesGrid.length-1]-slidesGrid[slidesGrid.length-2])}var pathTree=null,touchEndTime=null,pointerIndex=(params.rewind&&(swiper.isBeginning?touchEndTime=params.virtual&&params.virtual.enabled&&swiper.virtual?swiper.virtual.slides.length-1:swiper.slides.length-1:swiper.isEnd&&(pathTree=0)),(currentPos-slidesGrid[stopIndex])/groupSize),rtl=stopIndex<params.slidesPerGroupSkip-1?1:params.slidesPerGroup;timeDiff>params.longSwipesMs?params.longSwipes?("next"===swiper.swipeDirection&&(pointerIndex>=params.longSwipesRatio?swiper.slideTo(params.rewind&&swiper.isEnd?pathTree:stopIndex+rtl):swiper.slideTo(stopIndex)),"prev"===swiper.swipeDirection&&(pointerIndex>1-params.longSwipesRatio?swiper.slideTo(stopIndex+rtl):null!==touchEndTime&&pointerIndex<0&&Math.abs(pointerIndex)>params.longSwipesRatio?swiper.slideTo(touchEndTime):swiper.slideTo(stopIndex))):swiper.slideTo(swiper.activeIndex):params.shortSwipes?swiper.navigation&&(enabled.target===swiper.navigation.nextEl||enabled.target===swiper.navigation.prevEl)?enabled.target===swiper.navigation.nextEl?swiper.slideTo(stopIndex+rtl):swiper.slideTo(stopIndex):("next"===swiper.swipeDirection&&swiper.slideTo(null!==pathTree?pathTree:stopIndex+rtl),"prev"===swiper.swipeDirection&&swiper.slideTo(null!==touchEndTime?touchEndTime:stopIndex)):swiper.slideTo(swiper.activeIndex)}}else data.isTouched=!1,data.isMoved=!1,data.startMoving=!1}else data.isMoved&&params.grabCursor&&swiper.setGrabCursor(!1),data.isMoved=!1,data.startMoving=!1}}}.bind(this),params.cssMode&&(this.onScroll=function(){var wrapperEl=this.wrapperEl,rtlTranslate=this.rtlTranslate;this.enabled&&(this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-wrapperEl.scrollLeft:this.translate=-wrapperEl.scrollTop,0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses(),(0==(wrapperEl=this.maxTranslate()-this.minTranslate())?0:(this.translate-this.minTranslate())/wrapperEl)!==this.progress&&this.updateProgress(rtlTranslate?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1))}.bind(this)),this.onClick=function(e){this.enabled&&!this.allowClick&&(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation)&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation())}.bind(this),this.onLoad=function(e){processLazyPreloader(this,e.target),this.params.cssMode||"auto"!==this.params.slidesPerView&&!this.params.autoHeight||this.update()}.bind(this),dummyEventAttached||(document.addEventListener("touchstart",dummyEventListener),dummyEventAttached=!0),swiper_core_events(this,"on")},detachEvents:function(){swiper_core_events(this,"off")}},breakpoints:{setBreakpoint:function(){var breakpoint,breakpointParams,wasEnabled,isMultiRow,hasLoop,swiper=this,realIndex=swiper.realIndex,initialized=swiper.initialized,params=swiper.params,el=swiper.el,breakpoints=params.breakpoints;breakpoints&&0!==Object.keys(breakpoints).length&&(breakpoint=swiper.getBreakpoint(breakpoints,swiper.params.breakpointsBase,swiper.el))&&swiper.currentBreakpoint!==breakpoint&&(breakpointParams=(breakpoint in breakpoints?breakpoints[breakpoint]:void 0)||swiper.originalParams,breakpoints=isGridEnabled(swiper,params),isMultiRow=isGridEnabled(swiper,breakpointParams),wasEnabled=params.enabled,breakpoints&&!isMultiRow?(el.classList.remove("".concat(params.containerModifierClass,"grid"),"".concat(params.containerModifierClass,"grid-column")),swiper.emitContainerClasses()):!breakpoints&&isMultiRow&&(el.classList.add("".concat(params.containerModifierClass,"grid")),(breakpointParams.grid.fill&&"column"===breakpointParams.grid.fill||!breakpointParams.grid.fill&&"column"===params.grid.fill)&&el.classList.add("".concat(params.containerModifierClass,"grid-column")),swiper.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(function(prop){var wasModuleEnabled,isModuleEnabled;void 0!==breakpointParams[prop]&&(wasModuleEnabled=params[prop]&&params[prop].enabled,isModuleEnabled=breakpointParams[prop]&&breakpointParams[prop].enabled,wasModuleEnabled&&!isModuleEnabled&&swiper[prop].disable(),!wasModuleEnabled)&&isModuleEnabled&&swiper[prop].enable()}),breakpoints=breakpointParams.direction&&breakpointParams.direction!==params.direction,isMultiRow=params.loop&&(breakpointParams.slidesPerView!==params.slidesPerView||breakpoints),el=params.loop,breakpoints&&initialized&&swiper.changeDirection(),Object(utils.q)(swiper.params,breakpointParams),breakpoints=swiper.params.enabled,hasLoop=swiper.params.loop,Object.assign(swiper,{allowTouchMove:swiper.params.allowTouchMove,allowSlideNext:swiper.params.allowSlideNext,allowSlidePrev:swiper.params.allowSlidePrev}),wasEnabled&&!breakpoints?swiper.disable():!wasEnabled&&breakpoints&&swiper.enable(),swiper.currentBreakpoint=breakpoint,swiper.emit("_beforeBreakpoint",breakpointParams),initialized&&(isMultiRow?(swiper.loopDestroy(),swiper.loopCreate(realIndex),swiper.updateSlides()):!el&&hasLoop?(swiper.loopCreate(realIndex),swiper.updateSlides()):el&&!hasLoop&&swiper.loopDestroy()),swiper.emit("breakpoint",breakpointParams))},getBreakpoint:function(breakpoints,base,containerEl){if(void 0===base&&(base="window"),breakpoints&&("container"!==base||containerEl)){var breakpoint=!1,window=Object(ssr_window_esm.a)(),currentHeight="window"===base?window.innerHeight:containerEl.clientHeight,points=Object.keys(breakpoints).map(function(point){var minRatio;return"string"==typeof point&&0===point.indexOf("@")?(minRatio=parseFloat(point.substr(1)),{value:currentHeight*minRatio,point:point}):{value:point,point:point}});points.sort(function(a,b){return parseInt(a.value,10)-parseInt(b.value,10)});for(var i=0;i<points.length;i+=1){var _points$i=points[i],point=_points$i.point,_points$i=_points$i.value;"window"===base?window.matchMedia("(min-width: ".concat(_points$i,"px)")).matches&&(breakpoint=point):_points$i<=containerEl.clientWidth&&(breakpoint=point)}return breakpoint||"max"}}},checkOverflow:{checkOverflow:function(){var lastSlideIndex,wasLocked=this.isLocked,params=this.params,slidesOffsetBefore=params.slidesOffsetBefore;slidesOffsetBefore?(lastSlideIndex=this.slides.length-1,lastSlideIndex=this.slidesGrid[lastSlideIndex]+this.slidesSizesGrid[lastSlideIndex]+2*slidesOffsetBefore,this.isLocked=this.size>lastSlideIndex):this.isLocked=1===this.snapGrid.length,!0===params.allowSlideNext&&(this.allowSlideNext=!this.isLocked),!0===params.allowSlidePrev&&(this.allowSlidePrev=!this.isLocked),wasLocked&&wasLocked!==this.isLocked&&(this.isEnd=!1),wasLocked!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock")}},classes:{addClasses:function(){var prefix,resultClasses,classNames=this.classNames,params=this.params,rtl=this.rtl,el=this.el,device=this.device,device=(rtl=["initialized",params.direction,{"free-mode":this.params.freeMode&&params.freeMode.enabled},{autoheight:params.autoHeight},{rtl:rtl},{grid:params.grid&&1<params.grid.rows},{"grid-column":params.grid&&1<params.grid.rows&&"column"===params.grid.fill},{android:device.android},{ios:device.ios},{"css-mode":params.cssMode},{centered:params.cssMode&&params.centeredSlides},{"watch-progress":params.watchSlidesProgress}],prefix=params.containerModifierClass,resultClasses=[],rtl.forEach(function(item){"object"===_typeof(item)?Object.keys(item).forEach(function(classNames){item[classNames]&&resultClasses.push(prefix+classNames)}):"string"==typeof item&&resultClasses.push(prefix+item)}),resultClasses);classNames.push.apply(classNames,_toConsumableArray(device)),(params=el.classList).add.apply(params,_toConsumableArray(classNames)),this.emitContainerClasses()},removeClasses:function(){var el=this.el,classNames=this.classNames;(el=el.classList).remove.apply(el,_toConsumableArray(classNames)),this.emitContainerClasses()}}},extendedDefaults={},swiper_core_Swiper=(()=>{function Swiper(){var a=this,n=Swiper;if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");for(var el,params,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];params=(params=1===args.length&&args[0].constructor&&"Object"===Object.prototype.toString.call(args[0]).slice(8,-1)?args[0]:(el=args[0],args[1]))||{},params=Object(utils.q)({},params),el&&!params.el&&(params.el=el);var swipers,swiper,allModulesParams,a=Object(ssr_window_esm.b)();return params.el&&"string"==typeof params.el&&1<a.querySelectorAll(params.el).length?(swipers=[],a.querySelectorAll(params.el).forEach(function(containerEl){containerEl=Object(utils.q)({},params,{el:containerEl});swipers.push(new Swiper(containerEl))}),swipers):((swiper=this).__swiper__=!0,swiper.support=getSupport(),swiper.device=getDevice({userAgent:params.userAgent}),swiper.browser=getBrowser(),swiper.eventsListeners={},swiper.eventsAnyListeners=[],swiper.modules=_toConsumableArray(swiper.__modules__),params.modules&&Array.isArray(params.modules)&&(n=swiper.modules).push.apply(n,_toConsumableArray(params.modules)),allModulesParams={},swiper.modules.forEach(function(mod){mod({params:params,swiper:swiper,extendParams:((params,allModulesParams)=>function(obj){void 0===obj&&(obj={});var moduleParamName=Object.keys(obj)[0],moduleParams=obj[moduleParamName];"object"===_typeof(moduleParams)&&null!==moduleParams&&(!0===params[moduleParamName]&&(params[moduleParamName]={enabled:!0}),"navigation"===moduleParamName&&params[moduleParamName]&&params[moduleParamName].enabled&&!params[moduleParamName].prevEl&&!params[moduleParamName].nextEl&&(params[moduleParamName].auto=!0),0<=["pagination","scrollbar"].indexOf(moduleParamName)&&params[moduleParamName]&&params[moduleParamName].enabled&&!params[moduleParamName].el&&(params[moduleParamName].auto=!0),moduleParamName in params&&"enabled"in moduleParams)&&("object"!==_typeof(params[moduleParamName])||"enabled"in params[moduleParamName]||(params[moduleParamName].enabled=!0),params[moduleParamName]||(params[moduleParamName]={enabled:!1})),Object(utils.q)(allModulesParams,obj)})(params,allModulesParams),on:swiper.on.bind(swiper),once:swiper.once.bind(swiper),off:swiper.off.bind(swiper),emit:swiper.emit.bind(swiper)})}),a=Object(utils.q)({},defaults,allModulesParams),swiper.params=Object(utils.q)({},a,extendedDefaults,params),swiper.originalParams=Object(utils.q)({},swiper.params),swiper.passedParams=Object(utils.q)({},params),swiper.params&&swiper.params.on&&Object.keys(swiper.params.on).forEach(function(eventName){swiper.on(eventName,swiper.params.on[eventName])}),swiper.params&&swiper.params.onAny&&swiper.onAny(swiper.params.onAny),Object.assign(swiper,{enabled:swiper.params.enabled,el:el,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===swiper.params.direction},isVertical:function(){return"vertical"===swiper.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment:function(){return Math.trunc(this.translate/Math.pow(2,23))*Math.pow(2,23)},allowSlideNext:swiper.params.allowSlideNext,allowSlidePrev:swiper.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:swiper.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:swiper.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),swiper.emit("_swiper"),swiper.params.init&&swiper.init(),swiper)}return e=Swiper,t=[{key:"extendDefaults",value:function(newDefaults){Object(utils.q)(extendedDefaults,newDefaults)}},{key:"extendedDefaults",get:function(){return extendedDefaults}},{key:"defaults",get:function(){return defaults}},{key:"installModule",value:function(mod){var modules=Swiper.prototype.__modules__=Swiper.prototype.__modules__?Swiper.prototype.__modules__:[];"function"==typeof mod&&modules.indexOf(mod)<0&&modules.push(mod)}},{key:"use",value:function(module){return Array.isArray(module)?module.forEach(function(m){return Swiper.installModule(m)}):Swiper.installModule(module),Swiper}}],(r=[{key:"getSlideIndex",value:function(slideEl){var slidesEl=this.slidesEl,params=this.params,slidesEl=Object(utils.e)(slidesEl,".".concat(params.slideClass,", swiper-slide")),params=Object(utils.g)(slidesEl[0]);return Object(utils.g)(slideEl)-params}},{key:"getSlideIndexByData",value:function(index){return this.getSlideIndex(this.slides.filter(function(slideEl){return+slideEl.getAttribute("data-swiper-slide-index")===index})[0])}},{key:"recalcSlides",value:function(){var slidesEl=this.slidesEl,params=this.params;this.slides=Object(utils.e)(slidesEl,".".concat(params.slideClass,", swiper-slide"))}},{key:"enable",value:function(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}},{key:"disable",value:function(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}},{key:"setProgress",value:function(progress,speed){progress=Math.min(Math.max(progress,0),1);var min=this.minTranslate(),max=this.maxTranslate();this.translateTo((max-min)*progress+min,void 0===speed?0:speed),this.updateActiveIndex(),this.updateSlidesClasses()}},{key:"emitContainerClasses",value:function(){var cls,swiper=this;swiper.params._emitClasses&&swiper.el&&(cls=swiper.el.className.split(" ").filter(function(className){return 0===className.indexOf("swiper")||0===className.indexOf(swiper.params.containerModifierClass)}),swiper.emit("_containerClasses",cls.join(" ")))}},{key:"getSlideClasses",value:function(slideEl){var swiper=this;return swiper.destroyed?"":slideEl.className.split(" ").filter(function(className){return 0===className.indexOf("swiper-slide")||0===className.indexOf(swiper.params.slideClass)}).join(" ")}},{key:"emitSlidesClasses",value:function(){var updates,swiper=this;swiper.params._emitClasses&&swiper.el&&(updates=[],swiper.slides.forEach(function(slideEl){var classNames=swiper.getSlideClasses(slideEl);updates.push({slideEl:slideEl,classNames:classNames}),swiper.emit("_slideClass",slideEl,classNames)}),swiper.emit("_slideClasses",updates))}},{key:"slidesPerViewDynamic",value:function(view,exact){void 0===view&&(view="current"),void 0===exact&&(exact=!1);var params=this.params,slides=this.slides,slidesGrid=this.slidesGrid,slidesSizesGrid=this.slidesSizesGrid,swiperSize=this.size,activeIndex=this.activeIndex,spv=1;if("number"==typeof params.slidesPerView)return params.slidesPerView;if(params.centeredSlides){for(var breakLoop,slideSize=slides[activeIndex]?slides[activeIndex].swiperSlideSize:0,i=activeIndex+1;i<slides.length;i+=1)slides[i]&&!breakLoop&&(spv+=1,swiperSize<(slideSize+=slides[i].swiperSlideSize))&&(breakLoop=!0);for(var _i6=activeIndex-1;0<=_i6;--_i6)slides[_i6]&&!breakLoop&&(spv+=1,swiperSize<(slideSize+=slides[_i6].swiperSlideSize))&&(breakLoop=!0)}else if("current"===view)for(var _i7=activeIndex+1;_i7<slides.length;_i7+=1)(exact?slidesGrid[_i7]+slidesSizesGrid[_i7]-slidesGrid[activeIndex]<swiperSize:slidesGrid[_i7]-slidesGrid[activeIndex]<swiperSize)&&(spv+=1);else for(var _i8=activeIndex-1;0<=_i8;--_i8)slidesGrid[activeIndex]-slidesGrid[_i8]<swiperSize&&(spv+=1);return spv}},{key:"update",value:function(){var snapGrid,params,slides,swiper=this;function setTranslate(){var translateValue=swiper.rtlTranslate?-1*swiper.translate:swiper.translate,translateValue=Math.min(Math.max(translateValue,swiper.maxTranslate()),swiper.minTranslate());swiper.setTranslate(translateValue),swiper.updateActiveIndex(),swiper.updateSlidesClasses()}swiper&&!swiper.destroyed&&(snapGrid=swiper.snapGrid,(params=swiper.params).breakpoints&&swiper.setBreakpoint(),_toConsumableArray(swiper.el.querySelectorAll('[loading="lazy"]')).forEach(function(imageEl){imageEl.complete&&processLazyPreloader(swiper,imageEl)}),swiper.updateSize(),swiper.updateSlides(),swiper.updateProgress(),swiper.updateSlidesClasses(),params.freeMode&&params.freeMode.enabled&&!params.cssMode?(setTranslate(),params.autoHeight&&swiper.updateAutoHeight()):(("auto"===params.slidesPerView||1<params.slidesPerView)&&swiper.isEnd&&!params.centeredSlides?(slides=(swiper.virtual&&params.virtual.enabled?swiper.virtual:swiper).slides,swiper.slideTo(slides.length-1,0,!1,!0)):swiper.slideTo(swiper.activeIndex,0,!1,!0))||setTranslate(),params.watchOverflow&&snapGrid!==swiper.snapGrid&&swiper.checkOverflow(),swiper.emit("update"))}},{key:"changeDirection",value:function(newDirection,needUpdate){void 0===needUpdate&&(needUpdate=!0);var currentDirection=this.params.direction;return(newDirection=newDirection||("horizontal"===currentDirection?"vertical":"horizontal"))===currentDirection||"horizontal"!==newDirection&&"vertical"!==newDirection||(this.el.classList.remove("".concat(this.params.containerModifierClass).concat(currentDirection)),this.el.classList.add("".concat(this.params.containerModifierClass).concat(newDirection)),this.emitContainerClasses(),this.params.direction=newDirection,this.slides.forEach(function(slideEl){"vertical"===newDirection?slideEl.style.width="":slideEl.style.height=""}),this.emit("changeDirection"),needUpdate&&this.update()),this}},{key:"changeLanguageDirection",value:function(direction){this.rtl&&"rtl"===direction||!this.rtl&&"ltr"===direction||(this.rtl="rtl"===direction,this.rtlTranslate="horizontal"===this.params.direction&&this.rtl,this.rtl?(this.el.classList.add("".concat(this.params.containerModifierClass,"rtl")),this.el.dir="rtl"):(this.el.classList.remove("".concat(this.params.containerModifierClass,"rtl")),this.el.dir="ltr"),this.update())}},{key:"mount",value:function(element){var swiper=this;if(!swiper.mounted){element=element||swiper.params.el;if(!(element="string"==typeof element?document.querySelector(element):element))return!1;element.swiper=swiper,element.parentNode&&element.parentNode.host&&"SWIPER-CONTAINER"===element.parentNode.host.nodeName&&(swiper.isElement=!0);var getWrapperSelector=function(){return".".concat((swiper.params.wrapperClass||"").trim().split(" ").join("."))},wrapperEl=element&&element.shadowRoot&&element.shadowRoot.querySelector?element.shadowRoot.querySelector(getWrapperSelector()):Object(utils.e)(element,getWrapperSelector())[0];!wrapperEl&&swiper.params.createElements&&(wrapperEl=Object(utils.c)("div",swiper.params.wrapperClass),element.append(wrapperEl),Object(utils.e)(element,".".concat(swiper.params.slideClass)).forEach(function(slideEl){wrapperEl.append(slideEl)})),Object.assign(swiper,{el:element,wrapperEl:wrapperEl,slidesEl:swiper.isElement&&!element.parentNode.host.slideSlots?element.parentNode.host:wrapperEl,hostEl:swiper.isElement?element.parentNode.host:element,mounted:!0,rtl:"rtl"===element.dir.toLowerCase()||"rtl"===Object(utils.l)(element,"direction"),rtlTranslate:"horizontal"===swiper.params.direction&&("rtl"===element.dir.toLowerCase()||"rtl"===Object(utils.l)(element,"direction")),wrongRTL:"-webkit-box"===Object(utils.l)(wrapperEl,"display")})}return!0}},{key:"init",value:function(el){var swiper=this;return swiper.initialized||!1!==swiper.mount(el)&&(swiper.emit("beforeInit"),swiper.params.breakpoints&&swiper.setBreakpoint(),swiper.addClasses(),swiper.updateSize(),swiper.updateSlides(),swiper.params.watchOverflow&&swiper.checkOverflow(),swiper.params.grabCursor&&swiper.enabled&&swiper.setGrabCursor(),swiper.params.loop&&swiper.virtual&&swiper.params.virtual.enabled?swiper.slideTo(swiper.params.initialSlide+swiper.virtual.slidesBefore,0,swiper.params.runCallbacksOnInit,!1,!0):swiper.slideTo(swiper.params.initialSlide,0,swiper.params.runCallbacksOnInit,!1,!0),swiper.params.loop&&swiper.loopCreate(),swiper.attachEvents(),el=_toConsumableArray(swiper.el.querySelectorAll('[loading="lazy"]')),swiper.isElement&&el.push.apply(el,_toConsumableArray(swiper.hostEl.querySelectorAll('[loading="lazy"]'))),el.forEach(function(imageEl){imageEl.complete?processLazyPreloader(swiper,imageEl):imageEl.addEventListener("load",function(e){processLazyPreloader(swiper,e.target)})}),preload(swiper),swiper.initialized=!0,preload(swiper),swiper.emit("init"),swiper.emit("afterInit")),swiper}},{key:"destroy",value:function(deleteInstance,cleanStyles){void 0===deleteInstance&&(deleteInstance=!0),void 0===cleanStyles&&(cleanStyles=!0);var swiper=this,params=swiper.params,el=swiper.el,wrapperEl=swiper.wrapperEl,slides=swiper.slides;return void 0===swiper.params||swiper.destroyed||(swiper.emit("beforeDestroy"),swiper.initialized=!1,swiper.detachEvents(),params.loop&&swiper.loopDestroy(),cleanStyles&&(swiper.removeClasses(),el.removeAttribute("style"),wrapperEl.removeAttribute("style"),slides)&&slides.length&&slides.forEach(function(slideEl){slideEl.classList.remove(params.slideVisibleClass,params.slideActiveClass,params.slideNextClass,params.slidePrevClass),slideEl.removeAttribute("style"),slideEl.removeAttribute("data-swiper-slide-index")}),swiper.emit("destroy"),Object.keys(swiper.eventsListeners).forEach(function(eventName){swiper.off(eventName)}),!1!==deleteInstance&&(swiper.el.swiper=null,Object(utils.r)(swiper)),swiper.destroyed=!0),null}}])&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,t})();Object.keys(prototypes).forEach(function(prototypeGroup){Object.keys(prototypes[prototypeGroup]).forEach(function(protoMethod){swiper_core_Swiper.prototype[protoMethod]=prototypes[prototypeGroup][protoMethod]})}),swiper_core_Swiper.use([function(_ref){function resizeHandler(){swiper&&!swiper.destroyed&&swiper.initialized&&(emit("beforeResize"),emit("resize"))}function orientationChangeHandler(){swiper&&!swiper.destroyed&&swiper.initialized&&emit("orientationchange")}var swiper=_ref.swiper,on=_ref.on,emit=_ref.emit,window=Object(ssr_window_esm.a)(),observer=null,animationFrame=null;on("init",function(){swiper.params.resizeObserver&&void 0!==window.ResizeObserver?swiper&&!swiper.destroyed&&swiper.initialized&&(observer=new ResizeObserver(function(entries){animationFrame=window.requestAnimationFrame(function(){var width=swiper.width,height=swiper.height,newWidth=width,newHeight=height;entries.forEach(function(_ref2){var contentBoxSize=_ref2.contentBoxSize,contentRect=_ref2.contentRect,_ref2=_ref2.target;_ref2&&_ref2!==swiper.el||(newWidth=contentRect?contentRect.width:(contentBoxSize[0]||contentBoxSize).inlineSize,newHeight=contentRect?contentRect.height:(contentBoxSize[0]||contentBoxSize).blockSize)}),newWidth===width&&newHeight===height||resizeHandler()})})).observe(swiper.el):(window.addEventListener("resize",resizeHandler),window.addEventListener("orientationchange",orientationChangeHandler))}),on("destroy",function(){animationFrame&&window.cancelAnimationFrame(animationFrame),observer&&observer.unobserve&&swiper.el&&(observer.unobserve(swiper.el),observer=null),window.removeEventListener("resize",resizeHandler),window.removeEventListener("orientationchange",orientationChangeHandler)})},function(_ref){function attach(target,options){void 0===options&&(options={});var observer=new(window.MutationObserver||window.WebkitMutationObserver)(function(mutations){var observerUpdate;swiper.__preventObserver__||(1===mutations.length?emit("observerUpdate",mutations[0]):(observerUpdate=function(){emit("observerUpdate",mutations[0])},window.requestAnimationFrame?window.requestAnimationFrame(observerUpdate):window.setTimeout(observerUpdate,0)))});observer.observe(target,{attributes:void 0===options.attributes||options.attributes,childList:void 0===options.childList||options.childList,characterData:void 0===options.characterData||options.characterData}),observers.push(observer)}var swiper=_ref.swiper,extendParams=_ref.extendParams,on=_ref.on,emit=_ref.emit,observers=[],window=Object(ssr_window_esm.a)();extendParams({observer:!1,observeParents:!1,observeSlideChildren:!1}),on("init",function(){if(swiper.params.observer){if(swiper.params.observeParents)for(var containerParents=Object(utils.a)(swiper.hostEl),i=0;i<containerParents.length;i+=1)attach(containerParents[i]);attach(swiper.hostEl,{childList:swiper.params.observeSlideChildren}),attach(swiper.wrapperEl,{attributes:!1})}}),on("destroy",function(){observers.forEach(function(observer){observer.disconnect()}),observers.splice(0,observers.length)})}])},9:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__,global,factory;global="undefined"!=typeof window?window:this,factory=function(window,noGlobal){function isFunction(obj){return"function"==typeof obj&&"number"!=typeof obj.nodeType&&"function"!=typeof obj.item}function isWindow(obj){return null!=obj&&obj===obj.window}var arr=[],getProto=Object.getPrototypeOf,slice=arr.slice,flat=arr.flat?function(array){return arr.flat.call(array)}:function(array){return arr.concat.apply([],array)},push=arr.push,indexOf=arr.indexOf,class2type={},toString=class2type.toString,hasOwn=class2type.hasOwnProperty,fnToString=hasOwn.toString,ObjectFunctionString=fnToString.call(Object),support={},document=window.document,preservedScriptAttributes={type:!0,src:!0,nonce:!0,noModule:!0};function DOMEval(code,node,doc){var i,val,script=(doc=doc||document).createElement("script");if(script.text=code,node)for(i in preservedScriptAttributes)(val=node[i]||node.getAttribute&&node.getAttribute(i))&&script.setAttribute(i,val);doc.head.appendChild(script).parentNode.removeChild(script)}function toType(obj){return null==obj?obj+"":"object"==typeof obj||"function"==typeof obj?class2type[toString.call(obj)]||"object":typeof obj}var rhtmlSuffix=/HTML$/i,jQuery=function(selector,context){return new jQuery.fn.init(selector,context)};function isArrayLike(obj){var length=!!obj&&"length"in obj&&obj.length,type=toType(obj);return!isFunction(obj)&&!isWindow(obj)&&("array"===type||0===length||"number"==typeof length&&0<length&&length-1 in obj)}function nodeName(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase()}jQuery.fn=jQuery.prototype={jquery:"3.7.1",constructor:jQuery,length:0,toArray:function(){return slice.call(this)},get:function(num){return null==num?slice.call(this):num<0?this[num+this.length]:this[num]},pushStack:function(elems){elems=jQuery.merge(this.constructor(),elems);return elems.prevObject=this,elems},each:function(callback){return jQuery.each(this,callback)},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},slice:function(){return this.pushStack(slice.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(jQuery.grep(this,function(_elem,i){return(i+1)%2}))},odd:function(){return this.pushStack(jQuery.grep(this,function(_elem,i){return i%2}))},eq:function(i){var len=this.length,i=+i+(i<0?len:0);return this.pushStack(0<=i&&i<len?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:push,sort:arr.sort,splice:arr.splice},jQuery.extend=jQuery.fn.extend=function(){var options,name,copy,copyIsArray,src,target=arguments[0]||{},i=1,length=arguments.length,deep=!1;for("boolean"==typeof target&&(deep=target,target=arguments[i]||{},i++),"object"==typeof target||isFunction(target)||(target={}),i===length&&(target=this,i--);i<length;i++)if(null!=(options=arguments[i]))for(name in options)copy=options[name],"__proto__"!==name&&target!==copy&&(deep&&copy&&(jQuery.isPlainObject(copy)||(copyIsArray=Array.isArray(copy)))?(src=target[name],src=copyIsArray&&!Array.isArray(src)?[]:copyIsArray||jQuery.isPlainObject(src)?src:{},copyIsArray=!1,target[name]=jQuery.extend(deep,src,copy)):void 0!==copy&&(target[name]=copy));return target},jQuery.extend({expando:"jQuery"+("3.7.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(msg){throw new Error(msg)},noop:function(){},isPlainObject:function(obj){return!(!obj||"[object Object]"!==toString.call(obj)||(obj=getProto(obj))&&("function"!=typeof(obj=hasOwn.call(obj,"constructor")&&obj.constructor)||fnToString.call(obj)!==ObjectFunctionString))},isEmptyObject:function(obj){for(var name in obj)return!1;return!0},globalEval:function(code,options,doc){DOMEval(code,{nonce:options&&options.nonce},doc)},each:function(obj,callback){var length,i=0;if(isArrayLike(obj))for(length=obj.length;i<length&&!1!==callback.call(obj[i],i,obj[i]);i++);else for(i in obj)if(!1===callback.call(obj[i],i,obj[i]))break;return obj},text:function(elem){var node,ret="",i=0,nodeType=elem.nodeType;if(!nodeType)for(;node=elem[i++];)ret+=jQuery.text(node);return 1===nodeType||11===nodeType?elem.textContent:9===nodeType?elem.documentElement.textContent:3===nodeType||4===nodeType?elem.nodeValue:ret},makeArray:function(arr,results){results=results||[];return null!=arr&&(isArrayLike(Object(arr))?jQuery.merge(results,"string"==typeof arr?[arr]:arr):push.call(results,arr)),results},inArray:function(elem,arr,i){return null==arr?-1:indexOf.call(arr,elem,i)},isXMLDoc:function(elem){var namespace=elem&&elem.namespaceURI,elem=elem&&(elem.ownerDocument||elem).documentElement;return!rhtmlSuffix.test(namespace||elem&&elem.nodeName||"HTML")},merge:function(first,second){for(var len=+second.length,j=0,i=first.length;j<len;j++)first[i++]=second[j];return first.length=i,first},grep:function(elems,callback,invert){for(var matches=[],i=0,length=elems.length,callbackExpect=!invert;i<length;i++)!callback(elems[i],i)!=callbackExpect&&matches.push(elems[i]);return matches},map:function(elems,callback,arg){var length,value,i=0,ret=[];if(isArrayLike(elems))for(length=elems.length;i<length;i++)null!=(value=callback(elems[i],i,arg))&&ret.push(value);else for(i in elems)null!=(value=callback(elems[i],i,arg))&&ret.push(value);return flat(ret)},guid:1,support:support}),"function"==typeof Symbol&&(jQuery.fn[Symbol.iterator]=arr[Symbol.iterator]),jQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(_i,name){class2type["[object "+name+"]"]=name.toLowerCase()});var pop=arr.pop,sort=arr.sort,splice=arr.splice,whitespace="[\\x20\\t\\r\\n\\f]",rtrimCSS=new RegExp("^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$","g"),rcssescape=(jQuery.contains=function(a,b){b=b&&b.parentNode;return a===b||!(!b||1!==b.nodeType||!(a.contains?a.contains(b):a.compareDocumentPosition&&16&a.compareDocumentPosition(b)))},/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g);function fcssescape(ch,asCodePoint){return asCodePoint?"\0"===ch?"�":ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" ":"\\"+ch}jQuery.escapeSelector=function(sel){return(sel+"").replace(rcssescape,fcssescape)};function dir(elem,dir,until){for(var matched=[],truncate=void 0!==until;(elem=elem[dir])&&9!==elem.nodeType;)if(1===elem.nodeType){if(truncate&&jQuery(elem).is(until))break;matched.push(elem)}return matched}function siblings(n,elem){for(var matched=[];n;n=n.nextSibling)1===n.nodeType&&n!==elem&&matched.push(n);return matched}var preferredDoc=document,pushNative=push,rneedsContext=((()=>{var i,Expr,outermostContext,sortInput,hasDuplicate,document,documentElement,documentIsHTML,rbuggyQSA,matches,push=pushNative,expando=jQuery.expando,dirruns=0,done=0,classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),nonnativeSelectorCache=createCache(),sortOrder=function(a,b){return a===b&&(hasDuplicate=!0),0},booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",identifier="(?:\\\\[\\da-fA-F]{1,6}"+whitespace+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",attributes="\\["+whitespace+"*("+identifier+")(?:"+whitespace+"*([*^$|!~]?=)"+whitespace+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+identifier+"))|)"+whitespace+"*\\]",pseudos=":("+identifier+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+attributes+")*)|.*)\\)|)",rwhitespace=new RegExp(whitespace+"+","g"),rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),rleadingCombinator=new RegExp("^"+whitespace+"*([>+~]|"+whitespace+")"+whitespace+"*"),rdescend=new RegExp(whitespace+"|>"),rpseudo=new RegExp(pseudos),ridentifier=new RegExp("^"+identifier+"$"),matchExpr={ID:new RegExp("^#("+identifier+")"),CLASS:new RegExp("^\\.("+identifier+")"),TAG:new RegExp("^("+identifier+"|[*])"),ATTR:new RegExp("^"+attributes),PSEUDO:new RegExp("^"+pseudos),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),bool:new RegExp("^(?:"+booleans+")$","i"),needsContext:new RegExp("^"+whitespace+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i")},rinputs=/^(?:input|select|textarea|button)$/i,rheader=/^h\d$/i,rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rsibling=/[+~]/,runescape=new RegExp("\\\\[\\da-fA-F]{1,6}"+whitespace+"?|\\\\([^\\r\\n\\f])","g"),funescape=function(escape,nonHex){escape="0x"+escape.slice(1)-65536;return nonHex||(escape<0?String.fromCharCode(65536+escape):String.fromCharCode(escape>>10|55296,1023&escape|56320))},unloadHandler=function(){setDocument()},inDisabledFieldset=addCombinator(function(elem){return!0===elem.disabled&&nodeName(elem,"fieldset")},{dir:"parentNode",next:"legend"});try{push.apply(arr=slice.call(preferredDoc.childNodes),preferredDoc.childNodes),arr[preferredDoc.childNodes.length].nodeType}catch(e){push={apply:function(target,els){pushNative.apply(target,slice.call(els))},call:function(target){pushNative.apply(target,slice.call(arguments,1))}}}function find(selector,context,results,seed){var m,i,nid,match,groups,elem,newContext=context&&context.ownerDocument,nodeType=context?context.nodeType:9;if(results=results||[],"string"!=typeof selector||!selector||1!==nodeType&&9!==nodeType&&11!==nodeType)return results;if(!seed&&(setDocument(context),context=context||document,documentIsHTML)){if(11!==nodeType&&(match=rquickExpr.exec(selector)))if(m=match[1]){if(9===nodeType){if(!(elem=context.getElementById(m)))return results;if(elem.id===m)return push.call(results,elem),results}else if(newContext&&(elem=newContext.getElementById(m))&&find.contains(context,elem)&&elem.id===m)return push.call(results,elem),results}else{if(match[2])return push.apply(results,context.getElementsByTagName(selector)),results;if((m=match[3])&&context.getElementsByClassName)return push.apply(results,context.getElementsByClassName(m)),results}if(!(nonnativeSelectorCache[selector+" "]||rbuggyQSA&&rbuggyQSA.test(selector))){if(elem=selector,newContext=context,1===nodeType&&(rdescend.test(selector)||rleadingCombinator.test(selector))){for((newContext=rsibling.test(selector)&&testContext(context.parentNode)||context)==context&&support.scope||((nid=context.getAttribute("id"))?nid=jQuery.escapeSelector(nid):context.setAttribute("id",nid=expando)),i=(groups=tokenize(selector)).length;i--;)groups[i]=(nid?"#"+nid:":scope")+" "+toSelector(groups[i]);elem=groups.join(",")}try{return push.apply(results,newContext.querySelectorAll(elem)),results}catch(qsaError){nonnativeSelectorCache(selector,!0)}finally{nid===expando&&context.removeAttribute("id")}}}return select(selector.replace(rtrimCSS,"$1"),context,results,seed)}function createCache(){var keys=[];function cache(key,value){return keys.push(key+" ")>Expr.cacheLength&&delete cache[keys.shift()],cache[key+" "]=value}return cache}function markFunction(fn){return fn[expando]=!0,fn}function assert(fn){var el=document.createElement("fieldset");try{return!!fn(el)}catch(e){return!1}finally{el.parentNode&&el.parentNode.removeChild(el)}}function createDisabledPseudo(disabled){return function(elem){return"form"in elem?elem.parentNode&&!1===elem.disabled?"label"in elem?"label"in elem.parentNode?elem.parentNode.disabled===disabled:elem.disabled===disabled:elem.isDisabled===disabled||elem.isDisabled!==!disabled&&inDisabledFieldset(elem)===disabled:elem.disabled===disabled:"label"in elem&&elem.disabled===disabled}}function createPositionalPseudo(fn){return markFunction(function(argument){return argument=+argument,markFunction(function(seed,matches){for(var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;i--;)seed[j=matchIndexes[i]]&&(seed[j]=!(matches[j]=seed[j]))})})}function testContext(context){return context&&void 0!==context.getElementsByTagName&&context}function setDocument(node){var node=node?node.ownerDocument||node:preferredDoc;return node!=document&&9===node.nodeType&&node.documentElement&&(documentElement=(document=node).documentElement,documentIsHTML=!jQuery.isXMLDoc(document),matches=documentElement.matches||documentElement.webkitMatchesSelector||documentElement.msMatchesSelector,documentElement.msMatchesSelector&&preferredDoc!=document&&(node=document.defaultView)&&node.top!==node&&node.addEventListener("unload",unloadHandler),support.getById=assert(function(el){return documentElement.appendChild(el).id=jQuery.expando,!document.getElementsByName||!document.getElementsByName(jQuery.expando).length}),support.disconnectedMatch=assert(function(el){return matches.call(el,"*")}),support.scope=assert(function(){return document.querySelectorAll(":scope")}),support.cssHas=assert(function(){try{document.querySelector(":has(*,:jqfake)")}catch(e){return 1}}),support.getById?(Expr.filter.ID=function(id){var attrId=id.replace(runescape,funescape);return function(elem){return elem.getAttribute("id")===attrId}},Expr.find.ID=function(id,context){if(void 0!==context.getElementById&&documentIsHTML)return(context=context.getElementById(id))?[context]:[]}):(Expr.filter.ID=function(id){var attrId=id.replace(runescape,funescape);return function(elem){elem=void 0!==elem.getAttributeNode&&elem.getAttributeNode("id");return elem&&elem.value===attrId}},Expr.find.ID=function(id,context){if(void 0!==context.getElementById&&documentIsHTML){var node,i,elems,elem=context.getElementById(id);if(elem){if((node=elem.getAttributeNode("id"))&&node.value===id)return[elem];for(elems=context.getElementsByName(id),i=0;elem=elems[i++];)if((node=elem.getAttributeNode("id"))&&node.value===id)return[elem]}return[]}}),Expr.find.TAG=function(tag,context){return void 0!==context.getElementsByTagName?context.getElementsByTagName(tag):context.querySelectorAll(tag)},Expr.find.CLASS=function(className,context){if(void 0!==context.getElementsByClassName&&documentIsHTML)return context.getElementsByClassName(className)},rbuggyQSA=[],assert(function(el){var input;documentElement.appendChild(el).innerHTML="<a id='"+expando+"' href='' disabled='disabled'></a><select id='"+expando+"-\r\\' disabled='disabled'><option selected=''></option></select>",el.querySelectorAll("[selected]").length||rbuggyQSA.push("\\["+whitespace+"*(?:value|"+booleans+")"),el.querySelectorAll("[id~="+expando+"-]").length||rbuggyQSA.push("~="),el.querySelectorAll("a#"+expando+"+*").length||rbuggyQSA.push(".#.+[+~]"),el.querySelectorAll(":checked").length||rbuggyQSA.push(":checked"),(input=document.createElement("input")).setAttribute("type","hidden"),el.appendChild(input).setAttribute("name","D"),documentElement.appendChild(el).disabled=!0,2!==el.querySelectorAll(":disabled").length&&rbuggyQSA.push(":enabled",":disabled"),(input=document.createElement("input")).setAttribute("name",""),el.appendChild(input),el.querySelectorAll("[name='']").length||rbuggyQSA.push("\\["+whitespace+"*name"+whitespace+"*="+whitespace+"*(?:''|\"\")")}),support.cssHas||rbuggyQSA.push(":has"),rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|")),sortOrder=function(a,b){var compare;return a===b?(hasDuplicate=!0,0):(compare=!a.compareDocumentPosition-!b.compareDocumentPosition)||(1&(compare=(a.ownerDocument||a)==(b.ownerDocument||b)?a.compareDocumentPosition(b):1)||!support.sortDetached&&b.compareDocumentPosition(a)===compare?a===document||a.ownerDocument==preferredDoc&&find.contains(preferredDoc,a)?-1:b===document||b.ownerDocument==preferredDoc&&find.contains(preferredDoc,b)?1:sortInput?indexOf.call(sortInput,a)-indexOf.call(sortInput,b):0:4&compare?-1:1)}),document}for(i in find.matches=function(expr,elements){return find(expr,null,null,elements)},find.matchesSelector=function(elem,expr){if(setDocument(elem),documentIsHTML&&!nonnativeSelectorCache[expr+" "]&&(!rbuggyQSA||!rbuggyQSA.test(expr)))try{var ret=matches.call(elem,expr);if(ret||support.disconnectedMatch||elem.document&&11!==elem.document.nodeType)return ret}catch(e){nonnativeSelectorCache(expr,!0)}return 0<find(expr,document,null,[elem]).length},find.contains=function(context,elem){return(context.ownerDocument||context)!=document&&setDocument(context),jQuery.contains(context,elem)},find.attr=function(elem,name){(elem.ownerDocument||elem)!=document&&setDocument(elem);var fn=Expr.attrHandle[name.toLowerCase()],fn=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())?fn(elem,name,!documentIsHTML):void 0;return void 0!==fn?fn:elem.getAttribute(name)},find.error=function(msg){throw new Error("Syntax error, unrecognized expression: "+msg)},jQuery.uniqueSort=function(results){var elem,duplicates=[],j=0,i=0;if(hasDuplicate=!support.sortStable,sortInput=!support.sortStable&&slice.call(results,0),sort.call(results,sortOrder),hasDuplicate){for(;elem=results[i++];)elem===results[i]&&(j=duplicates.push(i));for(;j--;)splice.call(results,duplicates[j],1)}return sortInput=null,results},jQuery.fn.uniqueSort=function(){return this.pushStack(jQuery.uniqueSort(slice.apply(this)))},(Expr=jQuery.expr={cacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(match){return match[1]=match[1].replace(runescape,funescape),match[3]=(match[3]||match[4]||match[5]||"").replace(runescape,funescape),"~="===match[2]&&(match[3]=" "+match[3]+" "),match.slice(0,4)},CHILD:function(match){return match[1]=match[1].toLowerCase(),"nth"===match[1].slice(0,3)?(match[3]||find.error(match[0]),match[4]=+(match[4]?match[5]+(match[6]||1):2*("even"===match[3]||"odd"===match[3])),match[5]=+(match[7]+match[8]||"odd"===match[3])):match[3]&&find.error(match[0]),match},PSEUDO:function(match){var excess,unquoted=!match[6]&&match[2];return matchExpr.CHILD.test(match[0])?null:(match[3]?match[2]=match[4]||match[5]||"":unquoted&&rpseudo.test(unquoted)&&(excess=(excess=tokenize(unquoted,!0))&&unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)&&(match[0]=match[0].slice(0,excess),match[2]=unquoted.slice(0,excess)),match.slice(0,3))}},filter:{TAG:function(nodeNameSelector){var expectedNodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase();return"*"===nodeNameSelector?function(){return!0}:function(elem){return nodeName(elem,expectedNodeName)}},CLASS:function(className){var pattern=classCache[className+" "];return pattern||(pattern=new RegExp("(^|"+whitespace+")"+className+"("+whitespace+"|$)"))&&classCache(className,function(elem){return pattern.test("string"==typeof elem.className&&elem.className||void 0!==elem.getAttribute&&elem.getAttribute("class")||"")})},ATTR:function(name,operator,check){return function(elem){elem=find.attr(elem,name);return null==elem?"!="===operator:!operator||(elem+="","="===operator?elem===check:"!="===operator?elem!==check:"^="===operator?check&&0===elem.indexOf(check):"*="===operator?check&&-1<elem.indexOf(check):"$="===operator?check&&elem.slice(-check.length)===check:"~="===operator?-1<(" "+elem.replace(rwhitespace," ")+" ").indexOf(check):"|="===operator&&(elem===check||elem.slice(0,check.length+1)===check+"-"))}},CHILD:function(type,what,_argument,first,last){var simple="nth"!==type.slice(0,3),forward="last"!==type.slice(-4),ofType="of-type"===what;return 1===first&&0===last?function(elem){return!!elem.parentNode}:function(elem,_context,xml){var cache,outerCache,node,nodeIndex,start,dir=simple!=forward?"nextSibling":"previousSibling",parent=elem.parentNode,name=ofType&&elem.nodeName.toLowerCase(),useCache=!xml&&!ofType,diff=!1;if(parent){if(simple){for(;dir;){for(node=elem;node=node[dir];)if(ofType?nodeName(node,name):1===node.nodeType)return!1;start=dir="only"===type&&!start&&"nextSibling"}return!0}if(start=[forward?parent.firstChild:parent.lastChild],forward&&useCache){for(diff=(nodeIndex=(cache=(outerCache=parent[expando]||(parent[expando]={}))[type]||[])[0]===dirruns&&cache[1])&&cache[2],node=nodeIndex&&parent.childNodes[nodeIndex];node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0,start.pop());)if(1===node.nodeType&&++diff&&node===elem){outerCache[type]=[dirruns,nodeIndex,diff];break}}else if(!1===(diff=useCache?nodeIndex=(cache=(outerCache=elem[expando]||(elem[expando]={}))[type]||[])[0]===dirruns&&cache[1]:diff))for(;(node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0,start.pop()))&&((ofType?!nodeName(node,name):1!==node.nodeType)||!++diff||(useCache&&((outerCache=node[expando]||(node[expando]={}))[type]=[dirruns,diff]),node!==elem)););return(diff-=last)===first||diff%first==0&&0<=diff/first}}},PSEUDO:function(pseudo,argument){var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||find.error("unsupported pseudo: "+pseudo);return fn[expando]?fn(argument):1<fn.length?(args=[pseudo,pseudo,"",argument],Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction(function(seed,matches){for(var idx,matched=fn(seed,argument),i=matched.length;i--;)seed[idx=indexOf.call(seed,matched[i])]=!(matches[idx]=matched[i])}):function(elem){return fn(elem,0,args)}):fn}},pseudos:{not:markFunction(function(selector){var input=[],results=[],matcher=compile(selector.replace(rtrimCSS,"$1"));return matcher[expando]?markFunction(function(seed,matches,_context,xml){for(var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;i--;)(elem=unmatched[i])&&(seed[i]=!(matches[i]=elem))}):function(elem,_context,xml){return input[0]=elem,matcher(input,null,xml,results),input[0]=null,!results.pop()}}),has:markFunction(function(selector){return function(elem){return 0<find(selector,elem).length}}),contains:markFunction(function(text){return text=text.replace(runescape,funescape),function(elem){return-1<(elem.textContent||jQuery.text(elem)).indexOf(text)}}),lang:markFunction(function(lang){return ridentifier.test(lang||"")||find.error("unsupported lang: "+lang),lang=lang.replace(runescape,funescape).toLowerCase(),function(elem){var elemLang;do{if(elemLang=documentIsHTML?elem.lang:elem.getAttribute("xml:lang")||elem.getAttribute("lang"))return(elemLang=elemLang.toLowerCase())===lang||0===elemLang.indexOf(lang+"-")}while((elem=elem.parentNode)&&1===elem.nodeType);return!1}}),target:function(elem){var hash=window.location&&window.location.hash;return hash&&hash.slice(1)===elem.id},root:function(elem){return elem===documentElement},focus:function(elem){return elem===(()=>{try{return document.activeElement}catch(err){}})()&&document.hasFocus()&&!!(elem.type||elem.href||~elem.tabIndex)},enabled:createDisabledPseudo(!1),disabled:createDisabledPseudo(!0),checked:function(elem){return nodeName(elem,"input")&&!!elem.checked||nodeName(elem,"option")&&!!elem.selected},selected:function(elem){return elem.parentNode&&elem.parentNode.selectedIndex,!0===elem.selected},empty:function(elem){for(elem=elem.firstChild;elem;elem=elem.nextSibling)if(elem.nodeType<6)return!1;return!0},parent:function(elem){return!Expr.pseudos.empty(elem)},header:function(elem){return rheader.test(elem.nodeName)},input:function(elem){return rinputs.test(elem.nodeName)},button:function(elem){return nodeName(elem,"input")&&"button"===elem.type||nodeName(elem,"button")},text:function(elem){return nodeName(elem,"input")&&"text"===elem.type&&(null==(elem=elem.getAttribute("type"))||"text"===elem.toLowerCase())},first:createPositionalPseudo(function(){return[0]}),last:createPositionalPseudo(function(_matchIndexes,length){return[length-1]}),eq:createPositionalPseudo(function(_matchIndexes,length,argument){return[argument<0?argument+length:argument]}),even:createPositionalPseudo(function(matchIndexes,length){for(var i=0;i<length;i+=2)matchIndexes.push(i);return matchIndexes}),odd:createPositionalPseudo(function(matchIndexes,length){for(var i=1;i<length;i+=2)matchIndexes.push(i);return matchIndexes}),lt:createPositionalPseudo(function(matchIndexes,length,argument){for(var i=argument<0?argument+length:length<argument?length:argument;0<=--i;)matchIndexes.push(i);return matchIndexes}),gt:createPositionalPseudo(function(matchIndexes,length,argument){for(var i=argument<0?argument+length:argument;++i<length;)matchIndexes.push(i);return matchIndexes})}}).pseudos.nth=Expr.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Expr.pseudos[i]=(type=>function(elem){return nodeName(elem,"input")&&elem.type===type})(i);for(i in{submit:!0,reset:!0})Expr.pseudos[i]=(type=>function(elem){return(nodeName(elem,"input")||nodeName(elem,"button"))&&elem.type===type})(i);function setFilters(){}function tokenize(selector,parseOnly){var matched,match,tokens,type,soFar,groups,preFilters,cached=tokenCache[selector+" "];if(cached)return parseOnly?0:cached.slice(0);for(soFar=selector,groups=[],preFilters=Expr.preFilter;soFar;){for(type in matched&&!(match=rcomma.exec(soFar))||(match&&(soFar=soFar.slice(match[0].length)||soFar),groups.push(tokens=[])),matched=!1,(match=rleadingCombinator.exec(soFar))&&(matched=match.shift(),tokens.push({value:matched,type:match[0].replace(rtrimCSS," ")}),soFar=soFar.slice(matched.length)),Expr.filter)!(match=matchExpr[type].exec(soFar))||preFilters[type]&&!(match=preFilters[type](match))||(matched=match.shift(),tokens.push({value:matched,type:type,matches:match}),soFar=soFar.slice(matched.length));if(!matched)break}return parseOnly?soFar.length:soFar?find.error(selector):tokenCache(selector,groups).slice(0)}function toSelector(tokens){for(var i=0,len=tokens.length,selector="";i<len;i++)selector+=tokens[i].value;return selector}function addCombinator(matcher,combinator,base){var dir=combinator.dir,skip=combinator.next,key=skip||dir,checkNonElements=base&&"parentNode"===key,doneName=done++;return combinator.first?function(elem,context,xml){for(;elem=elem[dir];)if(1===elem.nodeType||checkNonElements)return matcher(elem,context,xml);return!1}:function(elem,context,xml){var oldCache,outerCache,newCache=[dirruns,doneName];if(xml){for(;elem=elem[dir];)if((1===elem.nodeType||checkNonElements)&&matcher(elem,context,xml))return!0}else for(;elem=elem[dir];)if(1===elem.nodeType||checkNonElements)if(outerCache=elem[expando]||(elem[expando]={}),skip&&nodeName(elem,skip))elem=elem[dir]||elem;else{if((oldCache=outerCache[key])&&oldCache[0]===dirruns&&oldCache[1]===doneName)return newCache[2]=oldCache[2];if((outerCache[key]=newCache)[2]=matcher(elem,context,xml))return!0}return!1}}function elementMatcher(matchers){return 1<matchers.length?function(elem,context,xml){for(var i=matchers.length;i--;)if(!matchers[i](elem,context,xml))return!1;return!0}:matchers[0]}function condense(unmatched,map,filter,context,xml){for(var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=null!=map;i<len;i++)!(elem=unmatched[i])||filter&&!filter(elem,context,xml)||(newUnmatched.push(elem),mapped&&map.push(i));return newUnmatched}function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){return postFilter&&!postFilter[expando]&&(postFilter=setMatcher(postFilter)),postFinder&&!postFinder[expando]&&(postFinder=setMatcher(postFinder,postSelector)),markFunction(function(seed,results,context,xml){var temp,i,elem,matcherOut,preMap=[],postMap=[],preexisting=results.length,elems=seed||((selector,contexts,results)=>{for(var i=0,len=contexts.length;i<len;i++)find(selector,contexts[i],results);return results})(selector||"*",context.nodeType?[context]:context,[]),matcherIn=!preFilter||!seed&&selector?elems:condense(elems,preMap,preFilter,context,xml);if(matcher?matcher(matcherIn,matcherOut=postFinder||(seed?preFilter:preexisting||postFilter)?[]:results,context,xml):matcherOut=matcherIn,postFilter)for(temp=condense(matcherOut,postMap),postFilter(temp,[],context,xml),i=temp.length;i--;)(elem=temp[i])&&(matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem));if(seed){if(postFinder||preFilter){if(postFinder){for(temp=[],i=matcherOut.length;i--;)(elem=matcherOut[i])&&temp.push(matcherIn[i]=elem);postFinder(null,matcherOut=[],temp,xml)}for(i=matcherOut.length;i--;)(elem=matcherOut[i])&&-1<(temp=postFinder?indexOf.call(seed,elem):preMap[i])&&(seed[temp]=!(results[temp]=elem))}}else matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut),postFinder?postFinder(null,results,matcherOut,xml):push.apply(results,matcherOut)})}function matcherFromGroupMatchers(elementMatchers,setMatchers){function superMatcher(seed,context,xml,results,outermost){var elem,j,matcher,matchedCount=0,i="0",unmatched=seed&&[],setMatched=[],contextBackup=outermostContext,elems=seed||byElement&&Expr.find.TAG("*",outermost),dirrunsUnique=dirruns+=null==contextBackup?1:Math.random()||.1,len=elems.length;for(outermost&&(outermostContext=context==document||context||outermost);i!==len&&null!=(elem=elems[i]);i++){if(byElement&&elem){for(j=0,context||elem.ownerDocument==document||(setDocument(elem),xml=!documentIsHTML);matcher=elementMatchers[j++];)if(matcher(elem,context||document,xml)){push.call(results,elem);break}outermost&&(dirruns=dirrunsUnique)}bySet&&((elem=!matcher&&elem)&&matchedCount--,seed)&&unmatched.push(elem)}if(matchedCount+=i,bySet&&i!==matchedCount){for(j=0;matcher=setMatchers[j++];)matcher(unmatched,setMatched,context,xml);if(seed){if(0<matchedCount)for(;i--;)unmatched[i]||setMatched[i]||(setMatched[i]=pop.call(results));setMatched=condense(setMatched)}push.apply(results,setMatched),outermost&&!seed&&0<setMatched.length&&1<matchedCount+setMatchers.length&&jQuery.uniqueSort(results)}return outermost&&(dirruns=dirrunsUnique,outermostContext=contextBackup),unmatched}var bySet=0<setMatchers.length,byElement=0<elementMatchers.length;return bySet?markFunction(superMatcher):superMatcher}function compile(selector,match){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[selector+" "];if(!cached){for(i=(match=match||tokenize(selector)).length;i--;)((cached=function matcherFromTokens(tokens){for(var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRelative?1:0,matchContext=addCombinator(function(elem){return elem===checkContext},implicitRelative,!0),matchAnyContext=addCombinator(function(elem){return-1<indexOf.call(checkContext,elem)},implicitRelative,!0),matchers=[function(elem,context,xml){return elem=!leadingRelative&&(xml||context!=outermostContext)||((checkContext=context).nodeType?matchContext:matchAnyContext)(elem,context,xml),checkContext=null,elem}];i<len;i++)if(matcher=Expr.relative[tokens[i].type])matchers=[addCombinator(elementMatcher(matchers),matcher)];else{if((matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches))[expando]){for(j=++i;j<len&&!Expr.relative[tokens[j].type];j++);return setMatcher(1<i&&elementMatcher(matchers),1<i&&toSelector(tokens.slice(0,i-1).concat({value:" "===tokens[i-2].type?"*":""})).replace(rtrimCSS,"$1"),matcher,i<j&&matcherFromTokens(tokens.slice(i,j)),j<len&&matcherFromTokens(tokens=tokens.slice(j)),j<len&&toSelector(tokens))}matchers.push(matcher)}return elementMatcher(matchers)}(match[i]))[expando]?setMatchers:elementMatchers).push(cached);(cached=compilerCache(selector,matcherFromGroupMatchers(elementMatchers,setMatchers))).selector=selector}return cached}function select(selector,context,results,seed){var i,tokens,token,type,find,compiled="function"==typeof selector&&selector,match=!seed&&tokenize(selector=compiled.selector||selector);if(results=results||[],1===match.length){if(2<(tokens=match[0]=match[0].slice(0)).length&&"ID"===(token=tokens[0]).type&&9===context.nodeType&&documentIsHTML&&Expr.relative[tokens[1].type]){if(!(context=(Expr.find.ID(token.matches[0].replace(runescape,funescape),context)||[])[0]))return results;compiled&&(context=context.parentNode),selector=selector.slice(tokens.shift().value.length)}for(i=matchExpr.needsContext.test(selector)?0:tokens.length;i--&&(token=tokens[i],!Expr.relative[type=token.type]);)if((find=Expr.find[type])&&(seed=find(token.matches[0].replace(runescape,funescape),rsibling.test(tokens[0].type)&&testContext(context.parentNode)||context))){if(tokens.splice(i,1),selector=seed.length&&toSelector(tokens))break;return push.apply(results,seed),results}}return(compiled||compile(selector,match))(seed,context,!documentIsHTML,results,!context||rsibling.test(selector)&&testContext(context.parentNode)||context),results}setFilters.prototype=Expr.filters=Expr.pseudos,Expr.setFilters=new setFilters,support.sortStable=expando.split("").sort(sortOrder).join("")===expando,setDocument(),support.sortDetached=assert(function(el){return 1&el.compareDocumentPosition(document.createElement("fieldset"))}),jQuery.find=find,jQuery.expr[":"]=jQuery.expr.pseudos,jQuery.unique=jQuery.uniqueSort,find.compile=compile,find.select=select,find.setDocument=setDocument,find.tokenize=tokenize,find.escape=jQuery.escapeSelector,find.getText=jQuery.text,find.isXML=jQuery.isXMLDoc,find.selectors=jQuery.expr,find.support=jQuery.support,find.uniqueSort=jQuery.uniqueSort})(),jQuery.expr.match.needsContext),rsingleTag=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function winnow(elements,qualifier,not){return isFunction(qualifier)?jQuery.grep(elements,function(elem,i){return!!qualifier.call(elem,i,elem)!==not}):qualifier.nodeType?jQuery.grep(elements,function(elem){return elem===qualifier!==not}):"string"!=typeof qualifier?jQuery.grep(elements,function(elem){return-1<indexOf.call(qualifier,elem)!==not}):jQuery.filter(qualifier,elements,not)}jQuery.filter=function(expr,elems,not){var elem=elems[0];return not&&(expr=":not("+expr+")"),1===elems.length&&1===elem.nodeType?jQuery.find.matchesSelector(elem,expr)?[elem]:[]:jQuery.find.matches(expr,jQuery.grep(elems,function(elem){return 1===elem.nodeType}))},jQuery.fn.extend({find:function(selector){var i,ret,len=this.length,self=this;if("string"!=typeof selector)return this.pushStack(jQuery(selector).filter(function(){for(i=0;i<len;i++)if(jQuery.contains(self[i],this))return!0}));for(ret=this.pushStack([]),i=0;i<len;i++)jQuery.find(selector,self[i],ret);return 1<len?jQuery.uniqueSort(ret):ret},filter:function(selector){return this.pushStack(winnow(this,selector||[],!1))},not:function(selector){return this.pushStack(winnow(this,selector||[],!0))},is:function(selector){return!!winnow(this,"string"==typeof selector&&rneedsContext.test(selector)?jQuery(selector):selector||[],!1).length}});var rootjQuery,rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,rparentsprev=((jQuery.fn.init=function(selector,context,root){if(selector){if(root=root||rootjQuery,"string"!=typeof selector)return selector.nodeType?(this[0]=selector,this.length=1,this):isFunction(selector)?void 0!==root.ready?root.ready(selector):selector(jQuery):jQuery.makeArray(selector,this);if(!(match="<"===selector[0]&&">"===selector[selector.length-1]&&3<=selector.length?[null,selector,null]:rquickExpr.exec(selector))||!match[1]&&context)return(!context||context.jquery?context||root:this.constructor(context)).find(selector);if(match[1]){if(context=context instanceof jQuery?context[0]:context,jQuery.merge(this,jQuery.parseHTML(match[1],context&&context.nodeType?context.ownerDocument||context:document,!0)),rsingleTag.test(match[1])&&jQuery.isPlainObject(context))for(var match in context)isFunction(this[match])?this[match](context[match]):this.attr(match,context[match])}else(root=document.getElementById(match[2]))&&(this[0]=root,this.length=1)}return this}).prototype=jQuery.fn,rootjQuery=jQuery(document),/^(?:parents|prev(?:Until|All))/),guaranteedUnique={children:!0,contents:!0,next:!0,prev:!0};function sibling(cur,dir){for(;(cur=cur[dir])&&1!==cur.nodeType;);return cur}jQuery.fn.extend({has:function(target){var targets=jQuery(target,this),l=targets.length;return this.filter(function(){for(var i=0;i<l;i++)if(jQuery.contains(this,targets[i]))return!0})},closest:function(selectors,context){var cur,i=0,l=this.length,matched=[],targets="string"!=typeof selectors&&jQuery(selectors);if(!rneedsContext.test(selectors))for(;i<l;i++)for(cur=this[i];cur&&cur!==context;cur=cur.parentNode)if(cur.nodeType<11&&(targets?-1<targets.index(cur):1===cur.nodeType&&jQuery.find.matchesSelector(cur,selectors))){matched.push(cur);break}return this.pushStack(1<matched.length?jQuery.uniqueSort(matched):matched)},index:function(elem){return elem?"string"==typeof elem?indexOf.call(jQuery(elem),this[0]):indexOf.call(this,elem.jquery?elem[0]:elem):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(selector,context){return this.pushStack(jQuery.uniqueSort(jQuery.merge(this.get(),jQuery(selector,context))))},addBack:function(selector){return this.add(null==selector?this.prevObject:this.prevObject.filter(selector))}}),jQuery.each({parent:function(elem){elem=elem.parentNode;return elem&&11!==elem.nodeType?elem:null},parents:function(elem){return dir(elem,"parentNode")},parentsUntil:function(elem,_i,until){return dir(elem,"parentNode",until)},next:function(elem){return sibling(elem,"nextSibling")},prev:function(elem){return sibling(elem,"previousSibling")},nextAll:function(elem){return dir(elem,"nextSibling")},prevAll:function(elem){return dir(elem,"previousSibling")},nextUntil:function(elem,_i,until){return dir(elem,"nextSibling",until)},prevUntil:function(elem,_i,until){return dir(elem,"previousSibling",until)},siblings:function(elem){return siblings((elem.parentNode||{}).firstChild,elem)},children:function(elem){return siblings(elem.firstChild)},contents:function(elem){return null!=elem.contentDocument&&getProto(elem.contentDocument)?elem.contentDocument:(nodeName(elem,"template")&&(elem=elem.content||elem),jQuery.merge([],elem.childNodes))}},function(name,fn){jQuery.fn[name]=function(until,selector){var matched=jQuery.map(this,fn,until);return(selector="Until"!==name.slice(-5)?until:selector)&&"string"==typeof selector&&(matched=jQuery.filter(selector,matched)),1<this.length&&(guaranteedUnique[name]||jQuery.uniqueSort(matched),rparentsprev.test(name))&&matched.reverse(),this.pushStack(matched)}});var rnothtmlwhite=/[^\x20\t\r\n\f]+/g;function Identity(v){return v}function Thrower(ex){throw ex}function adoptValue(value,resolve,reject,noValue){var method;try{value&&isFunction(method=value.promise)?method.call(value).done(resolve).fail(reject):value&&isFunction(method=value.then)?method.call(value,resolve,reject):resolve.apply(void 0,[value].slice(noValue))}catch(value){reject.apply(void 0,[value])}}jQuery.Callbacks=function(options){options="string"==typeof options?(options=>{var object={};return jQuery.each(options.match(rnothtmlwhite)||[],function(_,flag){object[flag]=!0}),object})(options):jQuery.extend({},options);function fire(){for(locked=locked||options.once,fired=firing=!0;queue.length;firingIndex=-1)for(memory=queue.shift();++firingIndex<list.length;)!1===list[firingIndex].apply(memory[0],memory[1])&&options.stopOnFalse&&(firingIndex=list.length,memory=!1);options.memory||(memory=!1),firing=!1,locked&&(list=memory?[]:"")}var firing,memory,fired,locked,list=[],queue=[],firingIndex=-1,self={add:function(){return list&&(memory&&!firing&&(firingIndex=list.length-1,queue.push(memory)),function add(args){jQuery.each(args,function(_,arg){isFunction(arg)?options.unique&&self.has(arg)||list.push(arg):arg&&arg.length&&"string"!==toType(arg)&&add(arg)})}(arguments),memory)&&!firing&&fire(),this},remove:function(){return jQuery.each(arguments,function(_,arg){for(var index;-1<(index=jQuery.inArray(arg,list,index));)list.splice(index,1),index<=firingIndex&&firingIndex--}),this},has:function(fn){return fn?-1<jQuery.inArray(fn,list):0<list.length},empty:function(){return list=list&&[],this},disable:function(){return locked=queue=[],list=memory="",this},disabled:function(){return!list},lock:function(){return locked=queue=[],memory||firing||(list=memory=""),this},locked:function(){return!!locked},fireWith:function(context,args){return locked||(args=[context,(args=args||[]).slice?args.slice():args],queue.push(args),firing)||fire(),this},fire:function(){return self.fireWith(this,arguments),this},fired:function(){return!!fired}};return self},jQuery.extend({Deferred:function(func){var tuples=[["notify","progress",jQuery.Callbacks("memory"),jQuery.Callbacks("memory"),2],["resolve","done",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),0,"resolved"],["reject","fail",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),1,"rejected"]],state="pending",promise={state:function(){return state},always:function(){return deferred.done(arguments).fail(arguments),this},catch:function(fn){return promise.then(null,fn)},pipe:function(){var fns=arguments;return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(_i,tuple){var fn=isFunction(fns[tuple[4]])&&fns[tuple[4]];deferred[tuple[1]](function(){var returned=fn&&fn.apply(this,arguments);returned&&isFunction(returned.promise)?returned.promise().progress(newDefer.notify).done(newDefer.resolve).fail(newDefer.reject):newDefer[tuple[0]+"With"](this,fn?[returned]:arguments)})}),fns=null}).promise()},then:function(onFulfilled,onRejected,onProgress){var maxDepth=0;function resolve(depth,deferred,handler,special){return function(){function mightThrow(){var returned,then;if(!(depth<maxDepth)){if((returned=handler.apply(that,args))===deferred.promise())throw new TypeError("Thenable self-resolution");then=returned&&("object"==typeof returned||"function"==typeof returned)&&returned.then,isFunction(then)?special?then.call(returned,resolve(maxDepth,deferred,Identity,special),resolve(maxDepth,deferred,Thrower,special)):(maxDepth++,then.call(returned,resolve(maxDepth,deferred,Identity,special),resolve(maxDepth,deferred,Thrower,special),resolve(maxDepth,deferred,Identity,deferred.notifyWith))):(handler!==Identity&&(that=void 0,args=[returned]),(special||deferred.resolveWith)(that,args))}}var that=this,args=arguments,process=special?mightThrow:function(){try{mightThrow()}catch(e){jQuery.Deferred.exceptionHook&&jQuery.Deferred.exceptionHook(e,process.error),maxDepth<=depth+1&&(handler!==Thrower&&(that=void 0,args=[e]),deferred.rejectWith(that,args))}};depth?process():(jQuery.Deferred.getErrorHook?process.error=jQuery.Deferred.getErrorHook():jQuery.Deferred.getStackHook&&(process.error=jQuery.Deferred.getStackHook()),window.setTimeout(process))}}return jQuery.Deferred(function(newDefer){tuples[0][3].add(resolve(0,newDefer,isFunction(onProgress)?onProgress:Identity,newDefer.notifyWith)),tuples[1][3].add(resolve(0,newDefer,isFunction(onFulfilled)?onFulfilled:Identity)),tuples[2][3].add(resolve(0,newDefer,isFunction(onRejected)?onRejected:Thrower))}).promise()},promise:function(obj){return null!=obj?jQuery.extend(obj,promise):promise}},deferred={};return jQuery.each(tuples,function(i,tuple){var list=tuple[2],stateString=tuple[5];promise[tuple[1]]=list.add,stateString&&list.add(function(){state=stateString},tuples[3-i][2].disable,tuples[3-i][3].disable,tuples[0][2].lock,tuples[0][3].lock),list.add(tuple[3].fire),deferred[tuple[0]]=function(){return deferred[tuple[0]+"With"](this===deferred?void 0:this,arguments),this},deferred[tuple[0]+"With"]=list.fireWith}),promise.promise(deferred),func&&func.call(deferred,deferred),deferred},when:function(singleValue){function updateFunc(i){return function(value){resolveContexts[i]=this,resolveValues[i]=1<arguments.length?slice.call(arguments):value,--remaining||primary.resolveWith(resolveContexts,resolveValues)}}var remaining=arguments.length,i=remaining,resolveContexts=Array(i),resolveValues=slice.call(arguments),primary=jQuery.Deferred();if(remaining<=1&&(adoptValue(singleValue,primary.done(updateFunc(i)).resolve,primary.reject,!remaining),"pending"===primary.state()||isFunction(resolveValues[i]&&resolveValues[i].then)))return primary.then();for(;i--;)adoptValue(resolveValues[i],updateFunc(i),primary.reject);return primary.promise()}});var rerrorNames=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,readyList=(jQuery.Deferred.exceptionHook=function(error,asyncError){window.console&&window.console.warn&&error&&rerrorNames.test(error.name)&&window.console.warn("jQuery.Deferred exception: "+error.message,error.stack,asyncError)},jQuery.readyException=function(error){window.setTimeout(function(){throw error})},jQuery.Deferred());function completed(){document.removeEventListener("DOMContentLoaded",completed),window.removeEventListener("load",completed),jQuery.ready()}jQuery.fn.ready=function(fn){return readyList.then(fn).catch(function(error){jQuery.readyException(error)}),this},jQuery.extend({isReady:!1,readyWait:1,ready:function(wait){(!0===wait?--jQuery.readyWait:jQuery.isReady)||(jQuery.isReady=!0)!==wait&&0<--jQuery.readyWait||readyList.resolveWith(document,[jQuery])}}),jQuery.ready.then=readyList.then,"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(jQuery.ready):(document.addEventListener("DOMContentLoaded",completed),window.addEventListener("load",completed));function access(elems,fn,key,value,chainable,emptyGet,raw){var i=0,len=elems.length,bulk=null==key;if("object"===toType(key))for(i in chainable=!0,key)access(elems,fn,i,key[i],!0,emptyGet,raw);else if(void 0!==value&&(chainable=!0,isFunction(value)||(raw=!0),fn=bulk?raw?(fn.call(elems,value),null):(bulk=fn,function(elem,_key,value){return bulk.call(jQuery(elem),value)}):fn))for(;i<len;i++)fn(elems[i],key,raw?value:value.call(elems[i],i,fn(elems[i],key)));return chainable?elems:bulk?fn.call(elems):len?fn(elems[0],key):emptyGet}var rmsPrefix=/^-ms-/,rdashAlpha=/-([a-z])/g;function fcamelCase(_all,letter){return letter.toUpperCase()}function camelCase(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase)}function acceptData(owner){return 1===owner.nodeType||9===owner.nodeType||!+owner.nodeType}function Data(){this.expando=jQuery.expando+Data.uid++}Data.uid=1,Data.prototype={cache:function(owner){var value=owner[this.expando];return value||(value={},acceptData(owner)&&(owner.nodeType?owner[this.expando]=value:Object.defineProperty(owner,this.expando,{value:value,configurable:!0}))),value},set:function(owner,data,value){var prop,cache=this.cache(owner);if("string"==typeof data)cache[camelCase(data)]=value;else for(prop in data)cache[camelCase(prop)]=data[prop];return cache},get:function(owner,key){return void 0===key?this.cache(owner):owner[this.expando]&&owner[this.expando][camelCase(key)]},access:function(owner,key,value){return void 0===key||key&&"string"==typeof key&&void 0===value?this.get(owner,key):(this.set(owner,key,value),void 0!==value?value:key)},remove:function(owner,key){var i,cache=owner[this.expando];if(void 0!==cache){if(void 0!==key){i=(key=Array.isArray(key)?key.map(camelCase):(key=camelCase(key))in cache?[key]:key.match(rnothtmlwhite)||[]).length;for(;i--;)delete cache[key[i]]}void 0!==key&&!jQuery.isEmptyObject(cache)||(owner.nodeType?owner[this.expando]=void 0:delete owner[this.expando])}},hasData:function(owner){owner=owner[this.expando];return void 0!==owner&&!jQuery.isEmptyObject(owner)}};var dataPriv=new Data,dataUser=new Data,rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,rmultiDash=/[A-Z]/g;function dataAttr(elem,key,data){var name;if(void 0===data&&1===elem.nodeType)if(name="data-"+key.replace(rmultiDash,"-$&").toLowerCase(),"string"==typeof(data=elem.getAttribute(name))){try{data=(data=>"true"===data||"false"!==data&&("null"===data?null:data===+data+""?+data:rbrace.test(data)?JSON.parse(data):data))(data)}catch(e){}dataUser.set(elem,key,data)}else data=void 0;return data}jQuery.extend({hasData:function(elem){return dataUser.hasData(elem)||dataPriv.hasData(elem)},data:function(elem,name,data){return dataUser.access(elem,name,data)},removeData:function(elem,name){dataUser.remove(elem,name)},_data:function(elem,name,data){return dataPriv.access(elem,name,data)},_removeData:function(elem,name){dataPriv.remove(elem,name)}}),jQuery.fn.extend({data:function(key,value){var i,name,data,elem=this[0],attrs=elem&&elem.attributes;if(void 0!==key)return"object"==typeof key?this.each(function(){dataUser.set(this,key)}):access(this,function(value){var data;if(elem&&void 0===value)return void 0!==(data=dataUser.get(elem,key))||void 0!==(data=dataAttr(elem,key))?data:void 0;this.each(function(){dataUser.set(this,key,value)})},null,value,1<arguments.length,null,!0);if(this.length&&(data=dataUser.get(elem),1===elem.nodeType)&&!dataPriv.get(elem,"hasDataAttrs")){for(i=attrs.length;i--;)attrs[i]&&0===(name=attrs[i].name).indexOf("data-")&&(name=camelCase(name.slice(5)),dataAttr(elem,name,data[name]));dataPriv.set(elem,"hasDataAttrs",!0)}return data},removeData:function(key){return this.each(function(){dataUser.remove(this,key)})}}),jQuery.extend({queue:function(elem,type,data){var queue;if(elem)return queue=dataPriv.get(elem,type=(type||"fx")+"queue"),data&&(!queue||Array.isArray(data)?queue=dataPriv.access(elem,type,jQuery.makeArray(data)):queue.push(data)),queue||[]},dequeue:function(elem,type){type=type||"fx";var queue=jQuery.queue(elem,type),startLength=queue.length,fn=queue.shift(),hooks=jQuery._queueHooks(elem,type);"inprogress"===fn&&(fn=queue.shift(),startLength--),fn&&("fx"===type&&queue.unshift("inprogress"),delete hooks.stop,fn.call(elem,function(){jQuery.dequeue(elem,type)},hooks)),!startLength&&hooks&&hooks.empty.fire()},_queueHooks:function(elem,type){var key=type+"queueHooks";return dataPriv.get(elem,key)||dataPriv.access(elem,key,{empty:jQuery.Callbacks("once memory").add(function(){dataPriv.remove(elem,[type+"queue",key])})})}}),jQuery.fn.extend({queue:function(type,data){var setter=2;return"string"!=typeof type&&(data=type,type="fx",setter--),arguments.length<setter?jQuery.queue(this[0],type):void 0===data?this:this.each(function(){var queue=jQuery.queue(this,type,data);jQuery._queueHooks(this,type),"fx"===type&&"inprogress"!==queue[0]&&jQuery.dequeue(this,type)})},dequeue:function(type){return this.each(function(){jQuery.dequeue(this,type)})},clearQueue:function(type){return this.queue(type||"fx",[])},promise:function(type,obj){function resolve(){--count||defer.resolveWith(elements,[elements])}var tmp,count=1,defer=jQuery.Deferred(),elements=this,i=this.length;for("string"!=typeof type&&(obj=type,type=void 0),type=type||"fx";i--;)(tmp=dataPriv.get(elements[i],type+"queueHooks"))&&tmp.empty&&(count++,tmp.empty.add(resolve));return resolve(),defer.promise(obj)}});function isHiddenWithinTree(elem,el){return"none"===(elem=el||elem).style.display||""===elem.style.display&&isAttached(elem)&&"none"===jQuery.css(elem,"display")}var pnum=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rcssNum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i"),cssExpand=["Top","Right","Bottom","Left"],documentElement=document.documentElement,isAttached=function(elem){return jQuery.contains(elem.ownerDocument,elem)},composed={composed:!0};documentElement.getRootNode&&(isAttached=function(elem){return jQuery.contains(elem.ownerDocument,elem)||elem.getRootNode(composed)===elem.ownerDocument});function adjustCSS(elem,prop,valueParts,tween){var adjusted,scale,maxIterations=20,currentValue=tween?function(){return tween.cur()}:function(){return jQuery.css(elem,prop,"")},initial=currentValue(),unit=valueParts&&valueParts[3]||(jQuery.cssNumber[prop]?"":"px"),initialInUnit=elem.nodeType&&(jQuery.cssNumber[prop]||"px"!==unit&&+initial)&&rcssNum.exec(jQuery.css(elem,prop));if(initialInUnit&&initialInUnit[3]!==unit){for(unit=unit||initialInUnit[3],initialInUnit=+(initial/=2)||1;maxIterations--;)jQuery.style(elem,prop,initialInUnit+unit),(1-scale)*(1-(scale=currentValue()/initial||.5))<=0&&(maxIterations=0),initialInUnit/=scale;jQuery.style(elem,prop,(initialInUnit*=2)+unit),valueParts=valueParts||[]}return valueParts&&(initialInUnit=+initialInUnit||+initial||0,adjusted=valueParts[1]?initialInUnit+(valueParts[1]+1)*valueParts[2]:+valueParts[2],tween)&&(tween.unit=unit,tween.start=initialInUnit,tween.end=adjusted),adjusted}var defaultDisplayMap={};function showHide(elements,show){for(var display,elem,values=[],index=0,length=elements.length;index<length;index++)(elem=elements[index]).style&&(display=elem.style.display,show?("none"===display&&(values[index]=dataPriv.get(elem,"display")||null,values[index]||(elem.style.display="")),""===elem.style.display&&isHiddenWithinTree(elem)&&(values[index]=(elem=>{var doc=elem.ownerDocument,display=defaultDisplayMap[elem=elem.nodeName];return display||(doc=doc.body.appendChild(doc.createElement(elem)),display=jQuery.css(doc,"display"),doc.parentNode.removeChild(doc),defaultDisplayMap[elem]=display="none"===display?"block":display),display})(elem))):"none"!==display&&(values[index]="none",dataPriv.set(elem,"display",display)));for(index=0;index<length;index++)null!=values[index]&&(elements[index].style.display=values[index]);return elements}jQuery.fn.extend({show:function(){return showHide(this,!0)},hide:function(){return showHide(this)},toggle:function(state){return"boolean"==typeof state?state?this.show():this.hide():this.each(function(){isHiddenWithinTree(this)?jQuery(this).show():jQuery(this).hide()})}});var div,rcheckableType=/^(?:checkbox|radio)$/i,rtagName=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,rscriptType=/^$|^module$|\/(?:java|ecma)script/i,wrapMap=(div=document.createDocumentFragment().appendChild(document.createElement("div")),(input=document.createElement("input")).setAttribute("type","radio"),input.setAttribute("checked","checked"),input.setAttribute("name","t"),div.appendChild(input),support.checkClone=div.cloneNode(!0).cloneNode(!0).lastChild.checked,div.innerHTML="<textarea>x</textarea>",support.noCloneChecked=!!div.cloneNode(!0).lastChild.defaultValue,div.innerHTML="<option></option>",support.option=!!div.lastChild,{thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]});function getAll(context,tag){var ret=void 0!==context.getElementsByTagName?context.getElementsByTagName(tag||"*"):void 0!==context.querySelectorAll?context.querySelectorAll(tag||"*"):[];return void 0===tag||tag&&nodeName(context,tag)?jQuery.merge([context],ret):ret}function setGlobalEval(elems,refElements){for(var i=0,l=elems.length;i<l;i++)dataPriv.set(elems[i],"globalEval",!refElements||dataPriv.get(refElements[i],"globalEval"))}wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead,wrapMap.th=wrapMap.td,support.option||(wrapMap.optgroup=wrapMap.option=[1,"<select multiple='multiple'>","</select>"]);var rhtml=/<|&#?\w+;/;function buildFragment(elems,context,scripts,selection,ignored){for(var elem,tmp,tag,attached,j,fragment=context.createDocumentFragment(),nodes=[],i=0,l=elems.length;i<l;i++)if((elem=elems[i])||0===elem)if("object"===toType(elem))jQuery.merge(nodes,elem.nodeType?[elem]:elem);else if(rhtml.test(elem)){for(tmp=tmp||fragment.appendChild(context.createElement("div")),tag=(rtagName.exec(elem)||["",""])[1].toLowerCase(),tag=wrapMap[tag]||wrapMap._default,tmp.innerHTML=tag[1]+jQuery.htmlPrefilter(elem)+tag[2],j=tag[0];j--;)tmp=tmp.lastChild;jQuery.merge(nodes,tmp.childNodes),(tmp=fragment.firstChild).textContent=""}else nodes.push(context.createTextNode(elem));for(fragment.textContent="",i=0;elem=nodes[i++];)if(selection&&-1<jQuery.inArray(elem,selection))ignored&&ignored.push(elem);else if(attached=isAttached(elem),tmp=getAll(fragment.appendChild(elem),"script"),attached&&setGlobalEval(tmp),scripts)for(j=0;elem=tmp[j++];)rscriptType.test(elem.type||"")&&scripts.push(elem);return fragment}var rtypenamespace=/^([^.]*)(?:\.(.+)|)/;function returnTrue(){return!0}function returnFalse(){return!1}function on(elem,types,selector,data,fn,one){var origFn,type;if("object"==typeof types){for(type in"string"!=typeof selector&&(data=data||selector,selector=void 0),types)on(elem,type,selector,data,types[type],one);return elem}if(null==data&&null==fn?(fn=selector,data=selector=void 0):null==fn&&("string"==typeof selector?(fn=data,data=void 0):(fn=data,data=selector,selector=void 0)),!1===fn)fn=returnFalse;else if(!fn)return elem;return 1===one&&(origFn=fn,(fn=function(event){return jQuery().off(event),origFn.apply(this,arguments)}).guid=origFn.guid||(origFn.guid=jQuery.guid++)),elem.each(function(){jQuery.event.add(this,types,fn,data,selector)})}function leverageNative(el,type,isSetup){isSetup?(dataPriv.set(el,type,!1),jQuery.event.add(el,type,{namespace:!1,handler:function(event){var result,saved=dataPriv.get(this,type);if(1&event.isTrigger&&this[type]){if(saved)(jQuery.event.special[type]||{}).delegateType&&event.stopPropagation();else if(saved=slice.call(arguments),dataPriv.set(this,type,saved),this[type](),result=dataPriv.get(this,type),dataPriv.set(this,type,!1),saved!==result)return event.stopImmediatePropagation(),event.preventDefault(),result}else saved&&(dataPriv.set(this,type,jQuery.event.trigger(saved[0],saved.slice(1),this)),event.stopPropagation(),event.isImmediatePropagationStopped=returnTrue)}})):void 0===dataPriv.get(el,type)&&jQuery.event.add(el,type,returnTrue)}jQuery.event={global:{},add:function(elem,types,handler,data,selector){var handleObjIn,eventHandle,events,t,special,handlers,type,tmp,origType,elemData=dataPriv.get(elem);if(acceptData(elem))for(handler.handler&&(handler=(handleObjIn=handler).handler,selector=handleObjIn.selector),selector&&jQuery.find.matchesSelector(documentElement,selector),handler.guid||(handler.guid=jQuery.guid++),events=(events=elemData.events)||(elemData.events=Object.create(null)),eventHandle=(eventHandle=elemData.handle)||(elemData.handle=function(e){return void 0!==jQuery&&jQuery.event.triggered!==e.type?jQuery.event.dispatch.apply(elem,arguments):void 0}),t=(types=(types||"").match(rnothtmlwhite)||[""]).length;t--;)type=origType=(tmp=rtypenamespace.exec(types[t])||[])[1],tmp=(tmp[2]||"").split(".").sort(),type&&(special=jQuery.event.special[type]||{},type=(selector?special.delegateType:special.bindType)||type,special=jQuery.event.special[type]||{},origType=jQuery.extend({type:type,origType:origType,data:data,handler:handler,guid:handler.guid,selector:selector,needsContext:selector&&jQuery.expr.match.needsContext.test(selector),namespace:tmp.join(".")},handleObjIn),(handlers=events[type])||((handlers=events[type]=[]).delegateCount=0,special.setup&&!1!==special.setup.call(elem,data,tmp,eventHandle))||elem.addEventListener&&elem.addEventListener(type,eventHandle),special.add&&(special.add.call(elem,origType),origType.handler.guid||(origType.handler.guid=handler.guid)),selector?handlers.splice(handlers.delegateCount++,0,origType):handlers.push(origType),jQuery.event.global[type]=!0)},remove:function(elem,types,handler,selector,mappedTypes){var j,origCount,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.hasData(elem)&&dataPriv.get(elem);if(elemData&&(events=elemData.events)){for(t=(types=(types||"").match(rnothtmlwhite)||[""]).length;t--;)if(type=origType=(tmp=rtypenamespace.exec(types[t])||[])[1],namespaces=(tmp[2]||"").split(".").sort(),type){for(special=jQuery.event.special[type]||{},handlers=events[type=(selector?special.delegateType:special.bindType)||type]||[],tmp=tmp[2]&&new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"),origCount=j=handlers.length;j--;)handleObj=handlers[j],!mappedTypes&&origType!==handleObj.origType||handler&&handler.guid!==handleObj.guid||tmp&&!tmp.test(handleObj.namespace)||selector&&selector!==handleObj.selector&&("**"!==selector||!handleObj.selector)||(handlers.splice(j,1),handleObj.selector&&handlers.delegateCount--,special.remove&&special.remove.call(elem,handleObj));origCount&&!handlers.length&&(special.teardown&&!1!==special.teardown.call(elem,namespaces,elemData.handle)||jQuery.removeEvent(elem,type,elemData.handle),delete events[type])}else for(type in events)jQuery.event.remove(elem,type+types[t],handler,selector,!0);jQuery.isEmptyObject(events)&&dataPriv.remove(elem,"handle events")}},dispatch:function(nativeEvent){var i,j,matched,handleObj,handlerQueue,args=new Array(arguments.length),event=jQuery.event.fix(nativeEvent),nativeEvent=(dataPriv.get(this,"events")||Object.create(null))[event.type]||[],special=jQuery.event.special[event.type]||{};for(args[0]=event,i=1;i<arguments.length;i++)args[i]=arguments[i];if(event.delegateTarget=this,!special.preDispatch||!1!==special.preDispatch.call(this,event)){for(handlerQueue=jQuery.event.handlers.call(this,event,nativeEvent),i=0;(matched=handlerQueue[i++])&&!event.isPropagationStopped();)for(event.currentTarget=matched.elem,j=0;(handleObj=matched.handlers[j++])&&!event.isImmediatePropagationStopped();)event.rnamespace&&!1!==handleObj.namespace&&!event.rnamespace.test(handleObj.namespace)||(event.handleObj=handleObj,event.data=handleObj.data,void 0!==(handleObj=((jQuery.event.special[handleObj.origType]||{}).handle||handleObj.handler).apply(matched.elem,args))&&!1===(event.result=handleObj)&&(event.preventDefault(),event.stopPropagation()));return special.postDispatch&&special.postDispatch.call(this,event),event.result}},handlers:function(event,handlers){var i,handleObj,sel,matchedHandlers,matchedSelectors,handlerQueue=[],delegateCount=handlers.delegateCount,cur=event.target;if(delegateCount&&cur.nodeType&&!("click"===event.type&&1<=event.button))for(;cur!==this;cur=cur.parentNode||this)if(1===cur.nodeType&&("click"!==event.type||!0!==cur.disabled)){for(matchedHandlers=[],matchedSelectors={},i=0;i<delegateCount;i++)void 0===matchedSelectors[sel=(handleObj=handlers[i]).selector+" "]&&(matchedSelectors[sel]=handleObj.needsContext?-1<jQuery(sel,this).index(cur):jQuery.find(sel,this,null,[cur]).length),matchedSelectors[sel]&&matchedHandlers.push(handleObj);matchedHandlers.length&&handlerQueue.push({elem:cur,handlers:matchedHandlers})}return cur=this,delegateCount<handlers.length&&handlerQueue.push({elem:cur,handlers:handlers.slice(delegateCount)}),handlerQueue},addProp:function(name,hook){Object.defineProperty(jQuery.Event.prototype,name,{enumerable:!0,configurable:!0,get:isFunction(hook)?function(){if(this.originalEvent)return hook(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[name]},set:function(value){Object.defineProperty(this,name,{enumerable:!0,configurable:!0,writable:!0,value:value})}})},fix:function(originalEvent){return originalEvent[jQuery.expando]?originalEvent:new jQuery.Event(originalEvent)},special:{load:{noBubble:!0},click:{setup:function(data){data=this||data;return rcheckableType.test(data.type)&&data.click&&nodeName(data,"input")&&leverageNative(data,"click",!0),!1},trigger:function(data){data=this||data;return rcheckableType.test(data.type)&&data.click&&nodeName(data,"input")&&leverageNative(data,"click"),!0},_default:function(event){event=event.target;return rcheckableType.test(event.type)&&event.click&&nodeName(event,"input")&&dataPriv.get(event,"click")||nodeName(event,"a")}},beforeunload:{postDispatch:function(event){void 0!==event.result&&event.originalEvent&&(event.originalEvent.returnValue=event.result)}}}},jQuery.removeEvent=function(elem,type,handle){elem.removeEventListener&&elem.removeEventListener(type,handle)},jQuery.Event=function(src,props){if(!(this instanceof jQuery.Event))return new jQuery.Event(src,props);src&&src.type?(this.originalEvent=src,this.type=src.type,this.isDefaultPrevented=src.defaultPrevented||void 0===src.defaultPrevented&&!1===src.returnValue?returnTrue:returnFalse,this.target=src.target&&3===src.target.nodeType?src.target.parentNode:src.target,this.currentTarget=src.currentTarget,this.relatedTarget=src.relatedTarget):this.type=src,props&&jQuery.extend(this,props),this.timeStamp=src&&src.timeStamp||Date.now(),this[jQuery.expando]=!0},jQuery.Event.prototype={constructor:jQuery.Event,isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=returnTrue,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=returnTrue,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=returnTrue,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},jQuery.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},jQuery.event.addProp),jQuery.each({focus:"focusin",blur:"focusout"},function(type,delegateType){function focusMappedHandler(nativeEvent){var handle,event;document.documentMode?(handle=dataPriv.get(this,"handle"),(event=jQuery.event.fix(nativeEvent)).type="focusin"===nativeEvent.type?"focus":"blur",event.isSimulated=!0,handle(nativeEvent),event.target===event.currentTarget&&handle(event)):jQuery.event.simulate(delegateType,nativeEvent.target,jQuery.event.fix(nativeEvent))}jQuery.event.special[type]={setup:function(){var attaches;if(leverageNative(this,type,!0),!document.documentMode)return!1;(attaches=dataPriv.get(this,delegateType))||this.addEventListener(delegateType,focusMappedHandler),dataPriv.set(this,delegateType,(attaches||0)+1)},trigger:function(){return leverageNative(this,type),!0},teardown:function(){var attaches;if(!document.documentMode)return!1;(attaches=dataPriv.get(this,delegateType)-1)?dataPriv.set(this,delegateType,attaches):(this.removeEventListener(delegateType,focusMappedHandler),dataPriv.remove(this,delegateType))},_default:function(event){return dataPriv.get(event.target,type)},delegateType:delegateType},jQuery.event.special[delegateType]={setup:function(){var doc=this.ownerDocument||this.document||this,dataHolder=document.documentMode?this:doc,attaches=dataPriv.get(dataHolder,delegateType);attaches||(document.documentMode?this.addEventListener(delegateType,focusMappedHandler):doc.addEventListener(type,focusMappedHandler,!0)),dataPriv.set(dataHolder,delegateType,(attaches||0)+1)},teardown:function(){var doc=this.ownerDocument||this.document||this,dataHolder=document.documentMode?this:doc,attaches=dataPriv.get(dataHolder,delegateType)-1;attaches?dataPriv.set(dataHolder,delegateType,attaches):(document.documentMode?this.removeEventListener(delegateType,focusMappedHandler):doc.removeEventListener(type,focusMappedHandler,!0),dataPriv.remove(dataHolder,delegateType))}}}),jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(orig,fix){jQuery.event.special[orig]={delegateType:fix,bindType:fix,handle:function(event){var ret,related=event.relatedTarget,handleObj=event.handleObj;return related&&(related===this||jQuery.contains(this,related))||(event.type=handleObj.origType,ret=handleObj.handler.apply(this,arguments),event.type=fix),ret}}}),jQuery.fn.extend({on:function(types,selector,data,fn){return on(this,types,selector,data,fn)},one:function(types,selector,data,fn){return on(this,types,selector,data,fn,1)},off:function(types,selector,fn){var handleObj,type;if(types&&types.preventDefault&&types.handleObj)handleObj=types.handleObj,jQuery(types.delegateTarget).off(handleObj.namespace?handleObj.origType+"."+handleObj.namespace:handleObj.origType,handleObj.selector,handleObj.handler);else{if("object"!=typeof types)return!1!==selector&&"function"!=typeof selector||(fn=selector,selector=void 0),!1===fn&&(fn=returnFalse),this.each(function(){jQuery.event.remove(this,types,fn,selector)});for(type in types)this.off(type,selector,types[type])}return this}});var rnoInnerhtml=/<script|<style|<link/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rcleanScript=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function manipulationTarget(elem,content){return nodeName(elem,"table")&&nodeName(11!==content.nodeType?content:content.firstChild,"tr")&&jQuery(elem).children("tbody")[0]||elem}function disableScript(elem){return elem.type=(null!==elem.getAttribute("type"))+"/"+elem.type,elem}function restoreScript(elem){return"true/"===(elem.type||"").slice(0,5)?elem.type=elem.type.slice(5):elem.removeAttribute("type"),elem}function cloneCopyEvent(src,dest){var i,l,type,events;if(1===dest.nodeType){if(dataPriv.hasData(src)&&(events=dataPriv.get(src).events))for(type in dataPriv.remove(dest,"handle events"),events)for(i=0,l=events[type].length;i<l;i++)jQuery.event.add(dest,type,events[type][i]);dataUser.hasData(src)&&(src=dataUser.access(src),src=jQuery.extend({},src),dataUser.set(dest,src))}}function domManip(collection,args,callback,ignored){args=flat(args);var fragment,first,scripts,hasScripts,node,doc,i=0,l=collection.length,iNoClone=l-1,value=args[0],valueIsFunction=isFunction(value);if(valueIsFunction||1<l&&"string"==typeof value&&!support.checkClone&&rchecked.test(value))return collection.each(function(index){var self=collection.eq(index);valueIsFunction&&(args[0]=value.call(this,index,self.html())),domManip(self,args,callback,ignored)});if(l&&(first=(fragment=buildFragment(args,collection[0].ownerDocument,!1,collection,ignored)).firstChild,1===fragment.childNodes.length&&(fragment=first),first||ignored)){for(hasScripts=(scripts=jQuery.map(getAll(fragment,"script"),disableScript)).length;i<l;i++)node=fragment,i!==iNoClone&&(node=jQuery.clone(node,!0,!0),hasScripts)&&jQuery.merge(scripts,getAll(node,"script")),callback.call(collection[i],node,i);if(hasScripts)for(doc=scripts[scripts.length-1].ownerDocument,jQuery.map(scripts,restoreScript),i=0;i<hasScripts;i++)node=scripts[i],rscriptType.test(node.type||"")&&!dataPriv.access(node,"globalEval")&&jQuery.contains(doc,node)&&(node.src&&"module"!==(node.type||"").toLowerCase()?jQuery._evalUrl&&!node.noModule&&jQuery._evalUrl(node.src,{nonce:node.nonce||node.getAttribute("nonce")},doc):DOMEval(node.textContent.replace(rcleanScript,""),node,doc))}return collection}function remove(elem,selector,keepData){for(var node,nodes=selector?jQuery.filter(selector,elem):elem,i=0;null!=(node=nodes[i]);i++)keepData||1!==node.nodeType||jQuery.cleanData(getAll(node)),node.parentNode&&(keepData&&isAttached(node)&&setGlobalEval(getAll(node,"script")),node.parentNode.removeChild(node));return elem}jQuery.extend({htmlPrefilter:function(html){return html},clone:function(elem,dataAndEvents,deepDataAndEvents){var i,l,srcElements,destElements,src,dest,nodeName,clone=elem.cloneNode(!0),inPage=isAttached(elem);if(!(support.noCloneChecked||1!==elem.nodeType&&11!==elem.nodeType||jQuery.isXMLDoc(elem)))for(destElements=getAll(clone),i=0,l=(srcElements=getAll(elem)).length;i<l;i++)src=srcElements[i],dest=destElements[i],nodeName=void 0,"input"===(nodeName=dest.nodeName.toLowerCase())&&rcheckableType.test(src.type)?dest.checked=src.checked:"input"!==nodeName&&"textarea"!==nodeName||(dest.defaultValue=src.defaultValue);if(dataAndEvents)if(deepDataAndEvents)for(srcElements=srcElements||getAll(elem),destElements=destElements||getAll(clone),i=0,l=srcElements.length;i<l;i++)cloneCopyEvent(srcElements[i],destElements[i]);else cloneCopyEvent(elem,clone);return 0<(destElements=getAll(clone,"script")).length&&setGlobalEval(destElements,!inPage&&getAll(elem,"script")),clone},cleanData:function(elems){for(var data,elem,type,special=jQuery.event.special,i=0;void 0!==(elem=elems[i]);i++)if(acceptData(elem)){if(data=elem[dataPriv.expando]){if(data.events)for(type in data.events)special[type]?jQuery.event.remove(elem,type):jQuery.removeEvent(elem,type,data.handle);elem[dataPriv.expando]=void 0}elem[dataUser.expando]&&(elem[dataUser.expando]=void 0)}}}),jQuery.fn.extend({detach:function(selector){return remove(this,selector,!0)},remove:function(selector){return remove(this,selector)},text:function(value){return access(this,function(value){return void 0===value?jQuery.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=value)})},null,value,arguments.length)},append:function(){return domManip(this,arguments,function(elem){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||manipulationTarget(this,elem).appendChild(elem)})},prepend:function(){return domManip(this,arguments,function(elem){var target;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(target=manipulationTarget(this,elem)).insertBefore(elem,target.firstChild)})},before:function(){return domManip(this,arguments,function(elem){this.parentNode&&this.parentNode.insertBefore(elem,this)})},after:function(){return domManip(this,arguments,function(elem){this.parentNode&&this.parentNode.insertBefore(elem,this.nextSibling)})},empty:function(){for(var elem,i=0;null!=(elem=this[i]);i++)1===elem.nodeType&&(jQuery.cleanData(getAll(elem,!1)),elem.textContent="");return this},clone:function(dataAndEvents,deepDataAndEvents){return dataAndEvents=null!=dataAndEvents&&dataAndEvents,deepDataAndEvents=null==deepDataAndEvents?dataAndEvents:deepDataAndEvents,this.map(function(){return jQuery.clone(this,dataAndEvents,deepDataAndEvents)})},html:function(value){return access(this,function(value){var elem=this[0]||{},i=0,l=this.length;if(void 0===value&&1===elem.nodeType)return elem.innerHTML;if("string"==typeof value&&!rnoInnerhtml.test(value)&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=jQuery.htmlPrefilter(value);try{for(;i<l;i++)1===(elem=this[i]||{}).nodeType&&(jQuery.cleanData(getAll(elem,!1)),elem.innerHTML=value);elem=0}catch(e){}}elem&&this.empty().append(value)},null,value,arguments.length)},replaceWith:function(){var ignored=[];return domManip(this,arguments,function(elem){var parent=this.parentNode;jQuery.inArray(this,ignored)<0&&(jQuery.cleanData(getAll(this)),parent)&&parent.replaceChild(elem,this)},ignored)}}),jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(selector){for(var elems,ret=[],insert=jQuery(selector),last=insert.length-1,i=0;i<=last;i++)elems=i===last?this:this.clone(!0),jQuery(insert[i])[original](elems),push.apply(ret,elems.get());return this.pushStack(ret)}});function getStyles(elem){var view=elem.ownerDocument.defaultView;return(view=view&&view.opener?view:window).getComputedStyle(elem)}function swap(elem,options,callback){var name,old={};for(name in options)old[name]=elem.style[name],elem.style[name]=options[name];for(name in callback=callback.call(elem),options)elem.style[name]=old[name];return callback}var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i"),rcustomProp=/^--/,rboxStyle=new RegExp(cssExpand.join("|"),"i");function curCSS(elem,name,computed){var ret,isCustomProp=rcustomProp.test(name),style=elem.style;return(computed=computed||getStyles(elem))&&(ret=computed.getPropertyValue(name)||computed[name],""!==(ret=isCustomProp?ret&&(ret.replace(rtrimCSS,"$1")||void 0):ret)||isAttached(elem)||(ret=jQuery.style(elem,name)),!support.pixelBoxStyles())&&rnumnonpx.test(ret)&&rboxStyle.test(name)&&(isCustomProp=style.width,elem=style.minWidth,name=style.maxWidth,style.minWidth=style.maxWidth=style.width=ret,ret=computed.width,style.width=isCustomProp,style.minWidth=elem,style.maxWidth=name),void 0!==ret?ret+"":ret}function addGetHookIf(conditionFn,hookFn){return{get:function(){if(!conditionFn())return(this.get=hookFn).apply(this,arguments);delete this.get}}}(()=>{function computeStyleTests(){var divStyle;div&&(container.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",div.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",documentElement.appendChild(container).appendChild(div),divStyle=window.getComputedStyle(div),pixelPositionVal="1%"!==divStyle.top,reliableMarginLeftVal=12===roundPixelMeasures(divStyle.marginLeft),div.style.right="60%",pixelBoxStylesVal=36===roundPixelMeasures(divStyle.right),boxSizingReliableVal=36===roundPixelMeasures(divStyle.width),div.style.position="absolute",scrollboxSizeVal=12===roundPixelMeasures(div.offsetWidth/3),documentElement.removeChild(container),div=null)}function roundPixelMeasures(measure){return Math.round(parseFloat(measure))}var pixelPositionVal,boxSizingReliableVal,scrollboxSizeVal,pixelBoxStylesVal,reliableTrDimensionsVal,reliableMarginLeftVal,container=document.createElement("div"),div=document.createElement("div");div.style&&(div.style.backgroundClip="content-box",div.cloneNode(!0).style.backgroundClip="",support.clearCloneStyle="content-box"===div.style.backgroundClip,jQuery.extend(support,{boxSizingReliable:function(){return computeStyleTests(),boxSizingReliableVal},pixelBoxStyles:function(){return computeStyleTests(),pixelBoxStylesVal},pixelPosition:function(){return computeStyleTests(),pixelPositionVal},reliableMarginLeft:function(){return computeStyleTests(),reliableMarginLeftVal},scrollboxSize:function(){return computeStyleTests(),scrollboxSizeVal},reliableTrDimensions:function(){var table,tr,trChild;return null==reliableTrDimensionsVal&&(table=document.createElement("table"),tr=document.createElement("tr"),trChild=document.createElement("div"),table.style.cssText="position:absolute;left:-11111px;border-collapse:separate",tr.style.cssText="box-sizing:content-box;border:1px solid",tr.style.height="1px",trChild.style.height="9px",trChild.style.display="block",documentElement.appendChild(table).appendChild(tr).appendChild(trChild),trChild=window.getComputedStyle(tr),reliableTrDimensionsVal=parseInt(trChild.height,10)+parseInt(trChild.borderTopWidth,10)+parseInt(trChild.borderBottomWidth,10)===tr.offsetHeight,documentElement.removeChild(table)),reliableTrDimensionsVal}}))})();var cssPrefixes=["Webkit","Moz","ms"],emptyStyle=document.createElement("div").style,vendorProps={};function finalPropName(name){var final=jQuery.cssProps[name]||vendorProps[name];return final||(name in emptyStyle?name:vendorProps[name]=(name=>{for(var capName=name[0].toUpperCase()+name.slice(1),i=cssPrefixes.length;i--;)if((name=cssPrefixes[i]+capName)in emptyStyle)return name})(name)||name)}var rdisplayswap=/^(none|table(?!-c[ea]).+)/,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:"0",fontWeight:"400"};function setPositiveNumber(_elem,value,subtract){var matches=rcssNum.exec(value);return matches?Math.max(0,matches[2]-(subtract||0))+(matches[3]||"px"):value}function boxModelAdjustment(elem,dimension,box,isBorderBox,styles,computedVal){var i="width"===dimension?1:0,extra=0,delta=0,marginDelta=0;if(box===(isBorderBox?"border":"content"))return 0;for(;i<4;i+=2)"margin"===box&&(marginDelta+=jQuery.css(elem,box+cssExpand[i],!0,styles)),isBorderBox?("content"===box&&(delta-=jQuery.css(elem,"padding"+cssExpand[i],!0,styles)),"margin"!==box&&(delta-=jQuery.css(elem,"border"+cssExpand[i]+"Width",!0,styles))):(delta+=jQuery.css(elem,"padding"+cssExpand[i],!0,styles),"padding"!==box?delta+=jQuery.css(elem,"border"+cssExpand[i]+"Width",!0,styles):extra+=jQuery.css(elem,"border"+cssExpand[i]+"Width",!0,styles));return!isBorderBox&&0<=computedVal&&(delta+=Math.max(0,Math.ceil(elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-computedVal-delta-extra-.5))||0),delta+marginDelta}function getWidthOrHeight(elem,dimension,extra){var styles=getStyles(elem),isBorderBox=(!support.boxSizingReliable()||extra)&&"border-box"===jQuery.css(elem,"boxSizing",!1,styles),valueIsBorderBox=isBorderBox,val=curCSS(elem,dimension,styles),offsetProp="offset"+dimension[0].toUpperCase()+dimension.slice(1);if(rnumnonpx.test(val)){if(!extra)return val;val="auto"}return(!support.boxSizingReliable()&&isBorderBox||!support.reliableTrDimensions()&&nodeName(elem,"tr")||"auto"===val||!parseFloat(val)&&"inline"===jQuery.css(elem,"display",!1,styles))&&elem.getClientRects().length&&(isBorderBox="border-box"===jQuery.css(elem,"boxSizing",!1,styles),valueIsBorderBox=offsetProp in elem)&&(val=elem[offsetProp]),(val=parseFloat(val)||0)+boxModelAdjustment(elem,dimension,extra||(isBorderBox?"border":"content"),valueIsBorderBox,styles,val)+"px"}function Tween(elem,options,prop,end,easing){return new Tween.prototype.init(elem,options,prop,end,easing)}jQuery.extend({cssHooks:{opacity:{get:function(elem,computed){if(computed)return""===(computed=curCSS(elem,"opacity"))?"1":computed}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(elem,name,value,extra){if(elem&&3!==elem.nodeType&&8!==elem.nodeType&&elem.style){var ret,type,hooks,origName=camelCase(name),isCustomProp=rcustomProp.test(name),style=elem.style;if(isCustomProp||(name=finalPropName(origName)),hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName],void 0===value)return hooks&&"get"in hooks&&void 0!==(ret=hooks.get(elem,!1,extra))?ret:style[name];"string"===(type=typeof value)&&(ret=rcssNum.exec(value))&&ret[1]&&(value=adjustCSS(elem,name,ret),type="number"),null==value||value!=value||("number"!==type||isCustomProp||(value+=ret&&ret[3]||(jQuery.cssNumber[origName]?"":"px")),support.clearCloneStyle||""!==value||0!==name.indexOf("background")||(style[name]="inherit"),hooks&&"set"in hooks&&void 0===(value=hooks.set(elem,value,extra)))||(isCustomProp?style.setProperty(name,value):style[name]=value)}},css:function(elem,name,extra,styles){var val,origName=camelCase(name);return rcustomProp.test(name)||(name=finalPropName(origName)),"normal"===(val=void 0===(val=(origName=jQuery.cssHooks[name]||jQuery.cssHooks[origName])&&"get"in origName?origName.get(elem,!0,extra):val)?curCSS(elem,name,styles):val)&&name in cssNormalTransform&&(val=cssNormalTransform[name]),(""===extra||extra)&&(origName=parseFloat(val),!0===extra||isFinite(origName))?origName||0:val}}),jQuery.each(["height","width"],function(_i,dimension){jQuery.cssHooks[dimension]={get:function(elem,computed,extra){if(computed)return!rdisplayswap.test(jQuery.css(elem,"display"))||elem.getClientRects().length&&elem.getBoundingClientRect().width?getWidthOrHeight(elem,dimension,extra):swap(elem,cssShow,function(){return getWidthOrHeight(elem,dimension,extra)})},set:function(elem,value,extra){var styles=getStyles(elem),scrollboxSizeBuggy=!support.scrollboxSize()&&"absolute"===styles.position,isBorderBox=(scrollboxSizeBuggy||extra)&&"border-box"===jQuery.css(elem,"boxSizing",!1,styles),extra=extra?boxModelAdjustment(elem,dimension,extra,isBorderBox,styles):0;return isBorderBox&&scrollboxSizeBuggy&&(extra-=Math.ceil(elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-parseFloat(styles[dimension])-boxModelAdjustment(elem,dimension,"border",!1,styles)-.5)),extra&&(isBorderBox=rcssNum.exec(value))&&"px"!==(isBorderBox[3]||"px")&&(elem.style[dimension]=value,value=jQuery.css(elem,dimension)),setPositiveNumber(0,value,extra)}}}),jQuery.cssHooks.marginLeft=addGetHookIf(support.reliableMarginLeft,function(elem,computed){if(computed)return(parseFloat(curCSS(elem,"marginLeft"))||elem.getBoundingClientRect().left-swap(elem,{marginLeft:0},function(){return elem.getBoundingClientRect().left}))+"px"}),jQuery.each({margin:"",padding:"",border:"Width"},function(prefix,suffix){jQuery.cssHooks[prefix+suffix]={expand:function(value){for(var i=0,expanded={},parts="string"==typeof value?value.split(" "):[value];i<4;i++)expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0];return expanded}},"margin"!==prefix&&(jQuery.cssHooks[prefix+suffix].set=setPositiveNumber)}),jQuery.fn.extend({css:function(name,value){return access(this,function(elem,name,value){var styles,len,map={},i=0;if(Array.isArray(name)){for(styles=getStyles(elem),len=name.length;i<len;i++)map[name[i]]=jQuery.css(elem,name[i],!1,styles);return map}return void 0!==value?jQuery.style(elem,name,value):jQuery.css(elem,name)},name,value,1<arguments.length)}}),((jQuery.Tween=Tween).prototype={constructor:Tween,init:function(elem,options,prop,end,easing,unit){this.elem=elem,this.prop=prop,this.easing=easing||jQuery.easing._default,this.options=options,this.start=this.now=this.cur(),this.end=end,this.unit=unit||(jQuery.cssNumber[prop]?"":"px")},cur:function(){var hooks=Tween.propHooks[this.prop];return(hooks&&hooks.get?hooks:Tween.propHooks._default).get(this)},run:function(percent){var eased,hooks=Tween.propHooks[this.prop];return this.options.duration?this.pos=eased=jQuery.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration):this.pos=eased=percent,this.now=(this.end-this.start)*eased+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(hooks&&hooks.set?hooks:Tween.propHooks._default).set(this),this}}).init.prototype=Tween.prototype,(Tween.propHooks={_default:{get:function(tween){return 1!==tween.elem.nodeType||null!=tween.elem[tween.prop]&&null==tween.elem.style[tween.prop]?tween.elem[tween.prop]:(tween=jQuery.css(tween.elem,tween.prop,""))&&"auto"!==tween?tween:0},set:function(tween){jQuery.fx.step[tween.prop]?jQuery.fx.step[tween.prop](tween):1!==tween.elem.nodeType||!jQuery.cssHooks[tween.prop]&&null==tween.elem.style[finalPropName(tween.prop)]?tween.elem[tween.prop]=tween.now:jQuery.style(tween.elem,tween.prop,tween.now+tween.unit)}}}).scrollTop=Tween.propHooks.scrollLeft={set:function(tween){tween.elem.nodeType&&tween.elem.parentNode&&(tween.elem[tween.prop]=tween.now)}},jQuery.easing={linear:function(p){return p},swing:function(p){return.5-Math.cos(p*Math.PI)/2},_default:"swing"},jQuery.fx=Tween.prototype.init,jQuery.fx.step={};var fxNow,inProgress,rfxtypes=/^(?:toggle|show|hide)$/,rrun=/queueHooks$/;function schedule(){inProgress&&(!1===document.hidden&&window.requestAnimationFrame?window.requestAnimationFrame(schedule):window.setTimeout(schedule,jQuery.fx.interval),jQuery.fx.tick())}function createFxNow(){return window.setTimeout(function(){fxNow=void 0}),fxNow=Date.now()}function genFx(type,includeWidth){var which,i=0,attrs={height:type};for(includeWidth=includeWidth?1:0;i<4;i+=2-includeWidth)attrs["margin"+(which=cssExpand[i])]=attrs["padding"+which]=type;return includeWidth&&(attrs.opacity=attrs.width=type),attrs}function createTween(value,prop,animation){for(var tween,collection=(Animation.tweeners[prop]||[]).concat(Animation.tweeners["*"]),index=0,length=collection.length;index<length;index++)if(tween=collection[index].call(animation,prop,value))return tween}function Animation(elem,properties,options){var result,stopped,index=0,length=Animation.prefilters.length,deferred=jQuery.Deferred().always(function(){delete tick.elem}),tick=function(){if(!stopped){for(var currentTime=fxNow||createFxNow(),currentTime=Math.max(0,animation.startTime+animation.duration-currentTime),percent=1-(currentTime/animation.duration||0),index=0,length=animation.tweens.length;index<length;index++)animation.tweens[index].run(percent);if(deferred.notifyWith(elem,[animation,percent,currentTime]),percent<1&&length)return currentTime;length||deferred.notifyWith(elem,[animation,1,0]),deferred.resolveWith(elem,[animation])}return!1},animation=deferred.promise({elem:elem,props:jQuery.extend({},properties),opts:jQuery.extend(!0,{specialEasing:{},easing:jQuery.easing._default},options),originalProperties:properties,originalOptions:options,startTime:fxNow||createFxNow(),duration:options.duration,tweens:[],createTween:function(prop,end){end=jQuery.Tween(elem,animation.opts,prop,end,animation.opts.specialEasing[prop]||animation.opts.easing);return animation.tweens.push(end),end},stop:function(gotoEnd){var index=0,length=gotoEnd?animation.tweens.length:0;if(!stopped){for(stopped=!0;index<length;index++)animation.tweens[index].run(1);gotoEnd?(deferred.notifyWith(elem,[animation,1,0]),deferred.resolveWith(elem,[animation,gotoEnd])):deferred.rejectWith(elem,[animation,gotoEnd])}return this}}),props=animation.props;for(((props,specialEasing)=>{var index,name,easing,value,hooks;for(index in props)if(easing=specialEasing[name=camelCase(index)],value=props[index],Array.isArray(value)&&(easing=value[1],value=props[index]=value[0]),index!==name&&(props[name]=value,delete props[index]),(hooks=jQuery.cssHooks[name])&&"expand"in hooks)for(index in value=hooks.expand(value),delete props[name],value)index in props||(props[index]=value[index],specialEasing[index]=easing);else specialEasing[name]=easing})(props,animation.opts.specialEasing);index<length;index++)if(result=Animation.prefilters[index].call(animation,elem,props,animation.opts))return isFunction(result.stop)&&(jQuery._queueHooks(animation.elem,animation.opts.queue).stop=result.stop.bind(result)),result;return jQuery.map(props,createTween,animation),isFunction(animation.opts.start)&&animation.opts.start.call(elem,animation),animation.progress(animation.opts.progress).done(animation.opts.done,animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always),jQuery.fx.timer(jQuery.extend(tick,{elem:elem,anim:animation,queue:animation.opts.queue})),animation}jQuery.Animation=jQuery.extend(Animation,{tweeners:{"*":[function(prop,value){var tween=this.createTween(prop,value);return adjustCSS(tween.elem,prop,rcssNum.exec(value),tween),tween}]},tweener:function(props,callback){for(var prop,index=0,length=(props=isFunction(props)?(callback=props,["*"]):props.match(rnothtmlwhite)).length;index<length;index++)prop=props[index],Animation.tweeners[prop]=Animation.tweeners[prop]||[],Animation.tweeners[prop].unshift(callback)},prefilters:[function(elem,props,opts){var prop,value,toggle,hooks,oldfire,propTween,restoreDisplay,isBox="width"in props||"height"in props,anim=this,orig={},style=elem.style,hidden=elem.nodeType&&isHiddenWithinTree(elem),dataShow=dataPriv.get(elem,"fxshow");for(prop in opts.queue||(null==(hooks=jQuery._queueHooks(elem,"fx")).unqueued&&(hooks.unqueued=0,oldfire=hooks.empty.fire,hooks.empty.fire=function(){hooks.unqueued||oldfire()}),hooks.unqueued++,anim.always(function(){anim.always(function(){hooks.unqueued--,jQuery.queue(elem,"fx").length||hooks.empty.fire()})})),props)if(value=props[prop],rfxtypes.test(value)){if(delete props[prop],toggle=toggle||"toggle"===value,value===(hidden?"hide":"show")){if("show"!==value||!dataShow||void 0===dataShow[prop])continue;hidden=!0}orig[prop]=dataShow&&dataShow[prop]||jQuery.style(elem,prop)}if((propTween=!jQuery.isEmptyObject(props))||!jQuery.isEmptyObject(orig))for(prop in isBox&&1===elem.nodeType&&(opts.overflow=[style.overflow,style.overflowX,style.overflowY],null==(restoreDisplay=dataShow&&dataShow.display)&&(restoreDisplay=dataPriv.get(elem,"display")),"none"===(isBox=jQuery.css(elem,"display"))&&(restoreDisplay?isBox=restoreDisplay:(showHide([elem],!0),restoreDisplay=elem.style.display||restoreDisplay,isBox=jQuery.css(elem,"display"),showHide([elem]))),"inline"===isBox||"inline-block"===isBox&&null!=restoreDisplay)&&"none"===jQuery.css(elem,"float")&&(propTween||(anim.done(function(){style.display=restoreDisplay}),null==restoreDisplay&&(isBox=style.display,restoreDisplay="none"===isBox?"":isBox)),style.display="inline-block"),opts.overflow&&(style.overflow="hidden",anim.always(function(){style.overflow=opts.overflow[0],style.overflowX=opts.overflow[1],style.overflowY=opts.overflow[2]})),propTween=!1,orig)propTween||(dataShow?"hidden"in dataShow&&(hidden=dataShow.hidden):dataShow=dataPriv.access(elem,"fxshow",{display:restoreDisplay}),toggle&&(dataShow.hidden=!hidden),hidden&&showHide([elem],!0),anim.done(function(){for(prop in hidden||showHide([elem]),dataPriv.remove(elem,"fxshow"),orig)jQuery.style(elem,prop,orig[prop])})),propTween=createTween(hidden?dataShow[prop]:0,prop,anim),prop in dataShow||(dataShow[prop]=propTween.start,hidden&&(propTween.end=propTween.start,propTween.start=0))}],prefilter:function(callback,prepend){prepend?Animation.prefilters.unshift(callback):Animation.prefilters.push(callback)}}),jQuery.speed=function(speed,easing,fn){var opt=speed&&"object"==typeof speed?jQuery.extend({},speed):{complete:fn||!fn&&easing||isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!isFunction(easing)&&easing};return jQuery.fx.off?opt.duration=0:"number"!=typeof opt.duration&&(opt.duration in jQuery.fx.speeds?opt.duration=jQuery.fx.speeds[opt.duration]:opt.duration=jQuery.fx.speeds._default),null!=opt.queue&&!0!==opt.queue||(opt.queue="fx"),opt.old=opt.complete,opt.complete=function(){isFunction(opt.old)&&opt.old.call(this),opt.queue&&jQuery.dequeue(this,opt.queue)},opt},jQuery.fn.extend({fadeTo:function(speed,to,easing,callback){return this.filter(isHiddenWithinTree).css("opacity",0).show().end().animate({opacity:to},speed,easing,callback)},animate:function(prop,speed,easing,callback){function doAnimation(){var anim=Animation(this,jQuery.extend({},prop),optall);(empty||dataPriv.get(this,"finish"))&&anim.stop(!0)}var empty=jQuery.isEmptyObject(prop),optall=jQuery.speed(speed,easing,callback);return doAnimation.finish=doAnimation,empty||!1===optall.queue?this.each(doAnimation):this.queue(optall.queue,doAnimation)},stop:function(type,clearQueue,gotoEnd){function stopQueue(hooks){var stop=hooks.stop;delete hooks.stop,stop(gotoEnd)}return"string"!=typeof type&&(gotoEnd=clearQueue,clearQueue=type,type=void 0),clearQueue&&this.queue(type||"fx",[]),this.each(function(){var dequeue=!0,index=null!=type&&type+"queueHooks",timers=jQuery.timers,data=dataPriv.get(this);if(index)data[index]&&data[index].stop&&stopQueue(data[index]);else for(index in data)data[index]&&data[index].stop&&rrun.test(index)&&stopQueue(data[index]);for(index=timers.length;index--;)timers[index].elem!==this||null!=type&&timers[index].queue!==type||(timers[index].anim.stop(gotoEnd),dequeue=!1,timers.splice(index,1));!dequeue&&gotoEnd||jQuery.dequeue(this,type)})},finish:function(type){return!1!==type&&(type=type||"fx"),this.each(function(){var index,data=dataPriv.get(this),queue=data[type+"queue"],hooks=data[type+"queueHooks"],timers=jQuery.timers,length=queue?queue.length:0;for(data.finish=!0,jQuery.queue(this,type,[]),hooks&&hooks.stop&&hooks.stop.call(this,!0),index=timers.length;index--;)timers[index].elem===this&&timers[index].queue===type&&(timers[index].anim.stop(!0),timers.splice(index,1));for(index=0;index<length;index++)queue[index]&&queue[index].finish&&queue[index].finish.call(this);delete data.finish})}}),jQuery.each(["toggle","show","hide"],function(_i,name){var cssFn=jQuery.fn[name];jQuery.fn[name]=function(speed,easing,callback){return null==speed||"boolean"==typeof speed?cssFn.apply(this,arguments):this.animate(genFx(name,!0),speed,easing,callback)}}),jQuery.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(name,props){jQuery.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback)}}),jQuery.timers=[],jQuery.fx.tick=function(){var timer,i=0,timers=jQuery.timers;for(fxNow=Date.now();i<timers.length;i++)(timer=timers[i])()||timers[i]!==timer||timers.splice(i--,1);timers.length||jQuery.fx.stop(),fxNow=void 0},jQuery.fx.timer=function(timer){jQuery.timers.push(timer),jQuery.fx.start()},jQuery.fx.interval=13,jQuery.fx.start=function(){inProgress||(inProgress=!0,schedule())},jQuery.fx.stop=function(){inProgress=null},jQuery.fx.speeds={slow:600,fast:200,_default:400},jQuery.fn.delay=function(time,type){return time=jQuery.fx&&jQuery.fx.speeds[time]||time,this.queue(type=type||"fx",function(next,hooks){var timeout=window.setTimeout(next,time);hooks.stop=function(){window.clearTimeout(timeout)}})},(()=>{var input=document.createElement("input"),opt=document.createElement("select").appendChild(document.createElement("option"));input.type="checkbox",support.checkOn=""!==input.value,support.optSelected=opt.selected,(input=document.createElement("input")).value="t",input.type="radio",support.radioValue="t"===input.value})();var boolHook,attrHandle=jQuery.expr.attrHandle,rfocusable=(jQuery.fn.extend({attr:function(name,value){return access(this,jQuery.attr,name,value,1<arguments.length)},removeAttr:function(name){return this.each(function(){jQuery.removeAttr(this,name)})}}),jQuery.extend({attr:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(3!==nType&&8!==nType&&2!==nType)return void 0===elem.getAttribute?jQuery.prop(elem,name,value):(1===nType&&jQuery.isXMLDoc(elem)||(hooks=jQuery.attrHooks[name.toLowerCase()]||(jQuery.expr.match.bool.test(name)?boolHook:void 0)),void 0!==value?null===value?void jQuery.removeAttr(elem,name):hooks&&"set"in hooks&&void 0!==(ret=hooks.set(elem,value,name))?ret:(elem.setAttribute(name,value+""),value):!(hooks&&"get"in hooks&&null!==(ret=hooks.get(elem,name)))&&null==(ret=jQuery.find.attr(elem,name))?void 0:ret)},attrHooks:{type:{set:function(elem,value){var val;if(!support.radioValue&&"radio"===value&&nodeName(elem,"input"))return val=elem.value,elem.setAttribute("type",value),val&&(elem.value=val),value}}},removeAttr:function(elem,value){var name,i=0,attrNames=value&&value.match(rnothtmlwhite);if(attrNames&&1===elem.nodeType)for(;name=attrNames[i++];)elem.removeAttribute(name)}}),boolHook={set:function(elem,value,name){return!1===value?jQuery.removeAttr(elem,name):elem.setAttribute(name,name),name}},jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),function(_i,name){var getter=attrHandle[name]||jQuery.find.attr;attrHandle[name]=function(elem,name,isXML){var ret,handle,lowercaseName=name.toLowerCase();return isXML||(handle=attrHandle[lowercaseName],attrHandle[lowercaseName]=ret,ret=null!=getter(elem,name,isXML)?lowercaseName:null,attrHandle[lowercaseName]=handle),ret}}),/^(?:input|select|textarea|button)$/i),rclickable=/^(?:a|area)$/i;function stripAndCollapse(value){return(value.match(rnothtmlwhite)||[]).join(" ")}function getClass(elem){return elem.getAttribute&&elem.getAttribute("class")||""}function classesToArray(value){return Array.isArray(value)?value:"string"==typeof value&&value.match(rnothtmlwhite)||[]}jQuery.fn.extend({prop:function(name,value){return access(this,jQuery.prop,name,value,1<arguments.length)},removeProp:function(name){return this.each(function(){delete this[jQuery.propFix[name]||name]})}}),jQuery.extend({prop:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(3!==nType&&8!==nType&&2!==nType)return 1===nType&&jQuery.isXMLDoc(elem)||(name=jQuery.propFix[name]||name,hooks=jQuery.propHooks[name]),void 0!==value?hooks&&"set"in hooks&&void 0!==(ret=hooks.set(elem,value,name))?ret:elem[name]=value:hooks&&"get"in hooks&&null!==(ret=hooks.get(elem,name))?ret:elem[name]},propHooks:{tabIndex:{get:function(elem){var tabindex=jQuery.find.attr(elem,"tabindex");return tabindex?parseInt(tabindex,10):rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),support.optSelected||(jQuery.propHooks.selected={get:function(elem){elem=elem.parentNode;return elem&&elem.parentNode&&elem.parentNode.selectedIndex,null},set:function(elem){elem=elem.parentNode;elem&&(elem.selectedIndex,elem.parentNode)&&elem.parentNode.selectedIndex}}),jQuery.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){jQuery.propFix[this.toLowerCase()]=this}),jQuery.fn.extend({addClass:function(value){var classNames,cur,curValue,className,i,finalValue;return isFunction(value)?this.each(function(j){jQuery(this).addClass(value.call(this,j,getClass(this)))}):(classNames=classesToArray(value)).length?this.each(function(){if(curValue=getClass(this),cur=1===this.nodeType&&" "+stripAndCollapse(curValue)+" "){for(i=0;i<classNames.length;i++)className=classNames[i],cur.indexOf(" "+className+" ")<0&&(cur+=className+" ");finalValue=stripAndCollapse(cur),curValue!==finalValue&&this.setAttribute("class",finalValue)}}):this},removeClass:function(value){var classNames,cur,curValue,className,i,finalValue;return isFunction(value)?this.each(function(j){jQuery(this).removeClass(value.call(this,j,getClass(this)))}):arguments.length?(classNames=classesToArray(value)).length?this.each(function(){if(curValue=getClass(this),cur=1===this.nodeType&&" "+stripAndCollapse(curValue)+" "){for(i=0;i<classNames.length;i++)for(className=classNames[i];-1<cur.indexOf(" "+className+" ");)cur=cur.replace(" "+className+" "," ");finalValue=stripAndCollapse(cur),curValue!==finalValue&&this.setAttribute("class",finalValue)}}):this:this.attr("class","")},toggleClass:function(value,stateVal){var classNames,className,i,self,type=typeof value,isValidValue="string"==type||Array.isArray(value);return isFunction(value)?this.each(function(i){jQuery(this).toggleClass(value.call(this,i,getClass(this),stateVal),stateVal)}):"boolean"==typeof stateVal&&isValidValue?stateVal?this.addClass(value):this.removeClass(value):(classNames=classesToArray(value),this.each(function(){if(isValidValue)for(self=jQuery(this),i=0;i<classNames.length;i++)className=classNames[i],self.hasClass(className)?self.removeClass(className):self.addClass(className);else void 0!==value&&"boolean"!=type||((className=getClass(this))&&dataPriv.set(this,"__className__",className),this.setAttribute&&this.setAttribute("class",!className&&!1!==value&&dataPriv.get(this,"__className__")||""))}))},hasClass:function(selector){for(var elem,i=0,className=" "+selector+" ";elem=this[i++];)if(1===elem.nodeType&&-1<(" "+stripAndCollapse(getClass(elem))+" ").indexOf(className))return!0;return!1}});function stopPropagationCallback(e){e.stopPropagation()}var rreturn=/\r/g,location=(jQuery.fn.extend({val:function(value){var hooks,ret,valueIsFunction,elem=this[0];return arguments.length?(valueIsFunction=isFunction(value),this.each(function(i){1!==this.nodeType||(null==(i=valueIsFunction?value.call(this,i,jQuery(this).val()):value)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=jQuery.map(i,function(value){return null==value?"":value+""})),(hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()])&&"set"in hooks&&void 0!==hooks.set(this,i,"value"))||(this.value=i)})):elem?(hooks=jQuery.valHooks[elem.type]||jQuery.valHooks[elem.nodeName.toLowerCase()])&&"get"in hooks&&void 0!==(ret=hooks.get(elem,"value"))?ret:"string"==typeof(ret=elem.value)?ret.replace(rreturn,""):null==ret?"":ret:void 0}}),jQuery.extend({valHooks:{option:{get:function(elem){var val=jQuery.find.attr(elem,"value");return null!=val?val:stripAndCollapse(jQuery.text(elem))}},select:{get:function(elem){for(var option,options=elem.options,index=elem.selectedIndex,one="select-one"===elem.type,values=one?null:[],max=one?index+1:options.length,i=index<0?max:one?index:0;i<max;i++)if(((option=options[i]).selected||i===index)&&!option.disabled&&(!option.parentNode.disabled||!nodeName(option.parentNode,"optgroup"))){if(option=jQuery(option).val(),one)return option;values.push(option)}return values},set:function(elem,value){for(var optionSet,option,options=elem.options,values=jQuery.makeArray(value),i=options.length;i--;)((option=options[i]).selected=-1<jQuery.inArray(jQuery.valHooks.option.get(option),values))&&(optionSet=!0);return optionSet||(elem.selectedIndex=-1),values}}}}),jQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]={set:function(elem,value){if(Array.isArray(value))return elem.checked=-1<jQuery.inArray(jQuery(elem).val(),value)}},support.checkOn||(jQuery.valHooks[this].get=function(elem){return null===elem.getAttribute("value")?"on":elem.value})}),window.location),nonce={guid:Date.now()},rquery=/\?/,rfocusMorph=(jQuery.parseXML=function(data){var xml,parserErrorElem;if(!data||"string"!=typeof data)return null;try{xml=(new window.DOMParser).parseFromString(data,"text/xml")}catch(e){}return parserErrorElem=xml&&xml.getElementsByTagName("parsererror")[0],xml&&!parserErrorElem||jQuery.error("Invalid XML: "+(parserErrorElem?jQuery.map(parserErrorElem.childNodes,function(el){return el.textContent}).join("\n"):data)),xml},/^(?:focusinfocus|focusoutblur)$/),rbracket=(jQuery.extend(jQuery.event,{trigger:function(event,data,elem,onlyHandlers){var i,tmp,bubbleType,ontype,handle,special,lastElement,eventPath=[elem||document],type=hasOwn.call(event,"type")?event.type:event,namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[],cur=lastElement=tmp=elem=elem||document;if(3!==elem.nodeType&&8!==elem.nodeType&&!rfocusMorph.test(type+jQuery.event.triggered)&&(-1<type.indexOf(".")&&(type=(namespaces=type.split(".")).shift(),namespaces.sort()),ontype=type.indexOf(":")<0&&"on"+type,(event=event[jQuery.expando]?event:new jQuery.Event(type,"object"==typeof event&&event)).isTrigger=onlyHandlers?2:3,event.namespace=namespaces.join("."),event.rnamespace=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,event.result=void 0,event.target||(event.target=elem),data=null==data?[event]:jQuery.makeArray(data,[event]),special=jQuery.event.special[type]||{},onlyHandlers||!special.trigger||!1!==special.trigger.apply(elem,data))){if(!onlyHandlers&&!special.noBubble&&!isWindow(elem)){for(bubbleType=special.delegateType||type,rfocusMorph.test(bubbleType+type)||(cur=cur.parentNode);cur;cur=cur.parentNode)eventPath.push(cur),tmp=cur;tmp===(elem.ownerDocument||document)&&eventPath.push(tmp.defaultView||tmp.parentWindow||window)}for(i=0;(cur=eventPath[i++])&&!event.isPropagationStopped();)lastElement=cur,event.type=1<i?bubbleType:special.bindType||type,(handle=(dataPriv.get(cur,"events")||Object.create(null))[event.type]&&dataPriv.get(cur,"handle"))&&handle.apply(cur,data),(handle=ontype&&cur[ontype])&&handle.apply&&acceptData(cur)&&(event.result=handle.apply(cur,data),!1===event.result)&&event.preventDefault();return event.type=type,onlyHandlers||event.isDefaultPrevented()||special._default&&!1!==special._default.apply(eventPath.pop(),data)||!acceptData(elem)||ontype&&isFunction(elem[type])&&!isWindow(elem)&&((tmp=elem[ontype])&&(elem[ontype]=null),jQuery.event.triggered=type,event.isPropagationStopped()&&lastElement.addEventListener(type,stopPropagationCallback),elem[type](),event.isPropagationStopped()&&lastElement.removeEventListener(type,stopPropagationCallback),jQuery.event.triggered=void 0,tmp)&&(elem[ontype]=tmp),event.result}},simulate:function(type,elem,event){event=jQuery.extend(new jQuery.Event,event,{type:type,isSimulated:!0});jQuery.event.trigger(event,null,elem)}}),jQuery.fn.extend({trigger:function(type,data){return this.each(function(){jQuery.event.trigger(type,data,this)})},triggerHandler:function(type,data){var elem=this[0];if(elem)return jQuery.event.trigger(type,data,elem,!0)}}),/\[\]$/),rCRLF=/\r?\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;jQuery.param=function(a,traditional){function add(key,valueOrFunction){valueOrFunction=isFunction(valueOrFunction)?valueOrFunction():valueOrFunction,s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(null==valueOrFunction?"":valueOrFunction)}var prefix,s=[];if(null==a)return"";if(Array.isArray(a)||a.jquery&&!jQuery.isPlainObject(a))jQuery.each(a,function(){add(this.name,this.value)});else for(prefix in a)!function buildParams(prefix,obj,traditional,add){if(Array.isArray(obj))jQuery.each(obj,function(i,v){traditional||rbracket.test(prefix)?add(prefix,v):buildParams(prefix+"["+("object"==typeof v&&null!=v?i:"")+"]",v,traditional,add)});else if(traditional||"object"!==toType(obj))add(prefix,obj);else for(var name in obj)buildParams(prefix+"["+name+"]",obj[name],traditional,add)}(prefix,a[prefix],traditional,add);return s.join("&")},jQuery.fn.extend({serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var elements=jQuery.prop(this,"elements");return elements?jQuery.makeArray(elements):this}).filter(function(){var type=this.type;return this.name&&!jQuery(this).is(":disabled")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&(this.checked||!rcheckableType.test(type))}).map(function(_i,elem){var val=jQuery(this).val();return null==val?null:Array.isArray(val)?jQuery.map(val,function(val){return{name:elem.name,value:val.replace(rCRLF,"\r\n")}}):{name:elem.name,value:val.replace(rCRLF,"\r\n")}}).get()}});var r20=/%20/g,rhash=/#.*$/,rantiCache=/([?&])_=[^&]*/,rheaders=/^(.*?):[ \t]*([^\r\n]*)$/gm,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,prefilters={},transports={},allTypes="*/".concat("*"),originAnchor=document.createElement("a");function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){"string"!=typeof dataTypeExpression&&(func=dataTypeExpression,dataTypeExpression="*");var dataType,i=0,dataTypes=dataTypeExpression.toLowerCase().match(rnothtmlwhite)||[];if(isFunction(func))for(;dataType=dataTypes[i++];)"+"===dataType[0]?(dataType=dataType.slice(1)||"*",(structure[dataType]=structure[dataType]||[]).unshift(func)):(structure[dataType]=structure[dataType]||[]).push(func)}}function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){var inspected={},seekingTransport=structure===transports;function inspect(dataType){var selected;return inspected[dataType]=!0,jQuery.each(structure[dataType]||[],function(_,prefilterOrFactory){prefilterOrFactory=prefilterOrFactory(options,originalOptions,jqXHR);return"string"!=typeof prefilterOrFactory||seekingTransport||inspected[prefilterOrFactory]?seekingTransport?!(selected=prefilterOrFactory):void 0:(options.dataTypes.unshift(prefilterOrFactory),inspect(prefilterOrFactory),!1)}),selected}return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*")}function ajaxExtend(target,src){var key,deep,flatOptions=jQuery.ajaxSettings.flatOptions||{};for(key in src)void 0!==src[key]&&((flatOptions[key]?target:deep=deep||{})[key]=src[key]);return deep&&jQuery.extend(!0,target,deep),target}originAnchor.href=location.href,jQuery.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:location.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(location.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":allTypes,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":jQuery.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(target,settings){return settings?ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings):ajaxExtend(jQuery.ajaxSettings,target)},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(url,options){"object"==typeof url&&(options=url,url=void 0);var transport,cacheURL,responseHeadersString,responseHeaders,timeoutTimer,completed,fireGlobals,i,s=jQuery.ajaxSetup({},options=options||{}),callbackContext=s.context||s,globalEventContext=s.context&&(callbackContext.nodeType||callbackContext.jquery)?jQuery(callbackContext):jQuery.event,deferred=jQuery.Deferred(),completeDeferred=jQuery.Callbacks("once memory"),statusCode=s.statusCode||{},requestHeaders={},requestHeadersNames={},strAbort="canceled",jqXHR={readyState:0,getResponseHeader:function(key){var match;if(completed){if(!responseHeaders)for(responseHeaders={};match=rheaders.exec(responseHeadersString);)responseHeaders[match[1].toLowerCase()+" "]=(responseHeaders[match[1].toLowerCase()+" "]||[]).concat(match[2]);match=responseHeaders[key.toLowerCase()+" "]}return null==match?null:match.join(", ")},getAllResponseHeaders:function(){return completed?responseHeadersString:null},setRequestHeader:function(name,value){return null==completed&&(name=requestHeadersNames[name.toLowerCase()]=requestHeadersNames[name.toLowerCase()]||name,requestHeaders[name]=value),this},overrideMimeType:function(type){return null==completed&&(s.mimeType=type),this},statusCode:function(map){if(map)if(completed)jqXHR.always(map[jqXHR.status]);else for(var code in map)statusCode[code]=[statusCode[code],map[code]];return this},abort:function(statusText){statusText=statusText||strAbort;return transport&&transport.abort(statusText),done(0,statusText),this}};if(deferred.promise(jqXHR),s.url=((url||s.url||location.href)+"").replace(rprotocol,location.protocol+"//"),s.type=options.method||options.type||s.method||s.type,s.dataTypes=(s.dataType||"*").toLowerCase().match(rnothtmlwhite)||[""],null==s.crossDomain){url=document.createElement("a");try{url.href=s.url,url.href=url.href,s.crossDomain=originAnchor.protocol+"//"+originAnchor.host!=url.protocol+"//"+url.host}catch(e){s.crossDomain=!0}}if(s.data&&s.processData&&"string"!=typeof s.data&&(s.data=jQuery.param(s.data,s.traditional)),inspectPrefiltersOrTransports(prefilters,s,options,jqXHR),!completed){for(i in(fireGlobals=jQuery.event&&s.global)&&0==jQuery.active++&&jQuery.event.trigger("ajaxStart"),s.type=s.type.toUpperCase(),s.hasContent=!rnoContent.test(s.type),cacheURL=s.url.replace(rhash,""),s.hasContent?s.data&&s.processData&&0===(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&(s.data=s.data.replace(r20,"+")):(url=s.url.slice(cacheURL.length),s.data&&(s.processData||"string"==typeof s.data)&&(cacheURL+=(rquery.test(cacheURL)?"&":"?")+s.data,delete s.data),!1===s.cache&&(cacheURL=cacheURL.replace(rantiCache,"$1"),url=(rquery.test(cacheURL)?"&":"?")+"_="+nonce.guid+++url),s.url=cacheURL+url),s.ifModified&&(jQuery.lastModified[cacheURL]&&jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL]),jQuery.etag[cacheURL])&&jqXHR.setRequestHeader("If-None-Match",jQuery.etag[cacheURL]),(s.data&&s.hasContent&&!1!==s.contentType||options.contentType)&&jqXHR.setRequestHeader("Content-Type",s.contentType),jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+("*"!==s.dataTypes[0]?", "+allTypes+"; q=0.01":""):s.accepts["*"]),s.headers)jqXHR.setRequestHeader(i,s.headers[i]);if(s.beforeSend&&(!1===s.beforeSend.call(callbackContext,jqXHR,s)||completed))return jqXHR.abort();if(strAbort="abort",completeDeferred.add(s.complete),jqXHR.done(s.success),jqXHR.fail(s.error),transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR)){if(jqXHR.readyState=1,fireGlobals&&globalEventContext.trigger("ajaxSend",[jqXHR,s]),completed)return jqXHR;s.async&&0<s.timeout&&(timeoutTimer=window.setTimeout(function(){jqXHR.abort("timeout")},s.timeout));try{completed=!1,transport.send(requestHeaders,done)}catch(e){if(completed)throw e;done(-1,e)}}else done(-1,"No Transport")}return jqXHR;function done(status,nativeStatusText,responses,headers){var success,error,response,statusText=nativeStatusText;completed||(completed=!0,timeoutTimer&&window.clearTimeout(timeoutTimer),transport=void 0,responseHeadersString=headers||"",jqXHR.readyState=0<status?4:0,headers=200<=status&&status<300||304===status,responses&&(response=((s,jqXHR,responses)=>{for(var ct,type,finalDataType,firstDataType,contents=s.contents,dataTypes=s.dataTypes;"*"===dataTypes[0];)dataTypes.shift(),void 0===ct&&(ct=s.mimeType||jqXHR.getResponseHeader("Content-Type"));if(ct)for(type in contents)if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break}if(dataTypes[0]in responses)finalDataType=dataTypes[0];else{for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break}firstDataType=firstDataType||type}finalDataType=finalDataType||firstDataType}if(finalDataType)return finalDataType!==dataTypes[0]&&dataTypes.unshift(finalDataType),responses[finalDataType]})(s,jqXHR,responses)),!headers&&-1<jQuery.inArray("script",s.dataTypes)&&jQuery.inArray("json",s.dataTypes)<0&&(s.converters["text script"]=function(){}),response=((s,response,jqXHR,isSuccess)=>{var conv2,current,conv,tmp,prev,converters={},dataTypes=s.dataTypes.slice();if(dataTypes[1])for(conv in s.converters)converters[conv.toLowerCase()]=s.converters[conv];for(current=dataTypes.shift();current;)if(s.responseFields[current]&&(jqXHR[s.responseFields[current]]=response),!prev&&isSuccess&&s.dataFilter&&(response=s.dataFilter(response,s.dataType)),prev=current,current=dataTypes.shift())if("*"===current)current=prev;else if("*"!==prev&&prev!==current){if(!(conv=converters[prev+" "+current]||converters["* "+current]))for(conv2 in converters)if((tmp=conv2.split(" "))[1]===current&&(conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]])){!0===conv?conv=converters[conv2]:!0!==converters[conv2]&&(current=tmp[0],dataTypes.unshift(tmp[1]));break}if(!0!==conv)if(conv&&s.throws)response=conv(response);else try{response=conv(response)}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current}}}return{state:"success",data:response}})(s,response,jqXHR,headers),headers?(s.ifModified&&((responses=jqXHR.getResponseHeader("Last-Modified"))&&(jQuery.lastModified[cacheURL]=responses),responses=jqXHR.getResponseHeader("etag"))&&(jQuery.etag[cacheURL]=responses),204===status||"HEAD"===s.type?statusText="nocontent":304===status?statusText="notmodified":(statusText=response.state,success=response.data,headers=!(error=response.error))):(error=statusText,!status&&statusText||(statusText="error",status<0&&(status=0))),jqXHR.status=status,jqXHR.statusText=(nativeStatusText||statusText)+"",headers?deferred.resolveWith(callbackContext,[success,statusText,jqXHR]):deferred.rejectWith(callbackContext,[jqXHR,statusText,error]),jqXHR.statusCode(statusCode),statusCode=void 0,fireGlobals&&globalEventContext.trigger(headers?"ajaxSuccess":"ajaxError",[jqXHR,s,headers?success:error]),completeDeferred.fireWith(callbackContext,[jqXHR,statusText]),fireGlobals&&(globalEventContext.trigger("ajaxComplete",[jqXHR,s]),--jQuery.active||jQuery.event.trigger("ajaxStop")))}},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},getScript:function(url,callback){return jQuery.get(url,void 0,callback,"script")}}),jQuery.each(["get","post"],function(_i,method){jQuery[method]=function(url,data,callback,type){return isFunction(data)&&(type=type||callback,callback=data,data=void 0),jQuery.ajax(jQuery.extend({url:url,type:method,dataType:type,data:data,success:callback},jQuery.isPlainObject(url)&&url))}}),jQuery.ajaxPrefilter(function(s){for(var i in s.headers)"content-type"===i.toLowerCase()&&(s.contentType=s.headers[i]||"")}),jQuery._evalUrl=function(url,options,doc){return jQuery.ajax({url:url,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(response){jQuery.globalEval(response,options,doc)}})},jQuery.fn.extend({wrapAll:function(html){return this[0]&&(isFunction(html)&&(html=html.call(this[0])),html=jQuery(html,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&html.insertBefore(this[0]),html.map(function(){for(var elem=this;elem.firstElementChild;)elem=elem.firstElementChild;return elem}).append(this)),this},wrapInner:function(html){return isFunction(html)?this.each(function(i){jQuery(this).wrapInner(html.call(this,i))}):this.each(function(){var self=jQuery(this),contents=self.contents();contents.length?contents.wrapAll(html):self.append(html)})},wrap:function(html){var htmlIsFunction=isFunction(html);return this.each(function(i){jQuery(this).wrapAll(htmlIsFunction?html.call(this,i):html)})},unwrap:function(selector){return this.parent(selector).not("body").each(function(){jQuery(this).replaceWith(this.childNodes)}),this}}),jQuery.expr.pseudos.hidden=function(elem){return!jQuery.expr.pseudos.visible(elem)},jQuery.expr.pseudos.visible=function(elem){return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length)},jQuery.ajaxSettings.xhr=function(){try{return new window.XMLHttpRequest}catch(e){}};var input,xhrSuccessStatus={0:200,1223:204},xhrSupported=jQuery.ajaxSettings.xhr(),oldCallbacks=(support.cors=!!xhrSupported&&"withCredentials"in xhrSupported,support.ajax=xhrSupported=!!xhrSupported,jQuery.ajaxTransport(function(options){var callback,errorCallback;if(support.cors||xhrSupported&&!options.crossDomain)return{send:function(headers,complete){var i,xhr=options.xhr();if(xhr.open(options.type,options.url,options.async,options.username,options.password),options.xhrFields)for(i in options.xhrFields)xhr[i]=options.xhrFields[i];for(i in options.mimeType&&xhr.overrideMimeType&&xhr.overrideMimeType(options.mimeType),options.crossDomain||headers["X-Requested-With"]||(headers["X-Requested-With"]="XMLHttpRequest"),headers)xhr.setRequestHeader(i,headers[i]);callback=function(type){return function(){callback&&(callback=errorCallback=xhr.onload=xhr.onerror=xhr.onabort=xhr.ontimeout=xhr.onreadystatechange=null,"abort"===type?xhr.abort():"error"===type?"number"!=typeof xhr.status?complete(0,"error"):complete(xhr.status,xhr.statusText):complete(xhrSuccessStatus[xhr.status]||xhr.status,xhr.statusText,"text"!==(xhr.responseType||"text")||"string"!=typeof xhr.responseText?{binary:xhr.response}:{text:xhr.responseText},xhr.getAllResponseHeaders()))}},xhr.onload=callback(),errorCallback=xhr.onerror=xhr.ontimeout=callback("error"),void 0!==xhr.onabort?xhr.onabort=errorCallback:xhr.onreadystatechange=function(){4===xhr.readyState&&window.setTimeout(function(){callback&&errorCallback()})},callback=callback("abort");try{xhr.send(options.hasContent&&options.data||null)}catch(e){if(callback)throw e}},abort:function(){callback&&callback()}}}),jQuery.ajaxPrefilter(function(s){s.crossDomain&&(s.contents.script=!1)}),jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(text){return jQuery.globalEval(text),text}}}),jQuery.ajaxPrefilter("script",function(s){void 0===s.cache&&(s.cache=!1),s.crossDomain&&(s.type="GET")}),jQuery.ajaxTransport("script",function(s){var script,callback;if(s.crossDomain||s.scriptAttrs)return{send:function(_,complete){script=jQuery("<script>").attr(s.scriptAttrs||{}).prop({charset:s.scriptCharset,src:s.url}).on("load error",callback=function(evt){script.remove(),callback=null,evt&&complete("error"===evt.type?404:200,evt.type)}),document.head.appendChild(script[0])},abort:function(){callback&&callback()}}}),[]),rjsonp=/(=)\?(?=&|$)|\?\?/,rtrim=(jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var callback=oldCallbacks.pop()||jQuery.expando+"_"+nonce.guid++;return this[callback]=!0,callback}}),jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,jsonProp=!1!==s.jsonp&&(rjsonp.test(s.url)?"url":"string"==typeof s.data&&0===(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&rjsonp.test(s.data)&&"data");if(jsonProp||"jsonp"===s.dataTypes[0])return callbackName=s.jsonpCallback=isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback,jsonProp?s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName):!1!==s.jsonp&&(s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName),s.converters["script json"]=function(){return responseContainer||jQuery.error(callbackName+" was not called"),responseContainer[0]},s.dataTypes[0]="json",overwritten=window[callbackName],window[callbackName]=function(){responseContainer=arguments},jqXHR.always(function(){void 0===overwritten?jQuery(window).removeProp(callbackName):window[callbackName]=overwritten,s[callbackName]&&(s.jsonpCallback=originalSettings.jsonpCallback,oldCallbacks.push(callbackName)),responseContainer&&isFunction(overwritten)&&overwritten(responseContainer[0]),responseContainer=overwritten=void 0}),"script"}),support.createHTMLDocument=((input=document.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===input.childNodes.length),jQuery.parseHTML=function(data,context,keepScripts){var base;return"string"!=typeof data?[]:("boolean"==typeof context&&(keepScripts=context,context=!1),context||(support.createHTMLDocument?((base=(context=document.implementation.createHTMLDocument("")).createElement("base")).href=document.location.href,context.head.appendChild(base)):context=document),base=!keepScripts&&[],(keepScripts=rsingleTag.exec(data))?[context.createElement(keepScripts[1])]:(keepScripts=buildFragment([data],context,base),base&&base.length&&jQuery(base).remove(),jQuery.merge([],keepScripts.childNodes)))},jQuery.fn.load=function(url,params,callback){var selector,type,response,self=this,off=url.indexOf(" ");return-1<off&&(selector=stripAndCollapse(url.slice(off)),url=url.slice(0,off)),isFunction(params)?(callback=params,params=void 0):params&&"object"==typeof params&&(type="POST"),0<self.length&&jQuery.ajax({url:url,type:type||"GET",dataType:"html",data:params}).done(function(responseText){response=arguments,self.html(selector?jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector):responseText)}).always(callback&&function(jqXHR,status){self.each(function(){callback.apply(this,response||[jqXHR.responseText,status,jqXHR])})}),this},jQuery.expr.pseudos.animated=function(elem){return jQuery.grep(jQuery.timers,function(fn){return elem===fn.elem}).length},jQuery.offset={setOffset:function(elem,options,i){var curCSSTop,curTop,curOffset,curCSSLeft,position=jQuery.css(elem,"position"),curElem=jQuery(elem),props={};"static"===position&&(elem.style.position="relative"),curOffset=curElem.offset(),curCSSTop=jQuery.css(elem,"top"),curCSSLeft=jQuery.css(elem,"left"),position=("absolute"===position||"fixed"===position)&&-1<(curCSSTop+curCSSLeft).indexOf("auto")?(curTop=(position=curElem.position()).top,position.left):(curTop=parseFloat(curCSSTop)||0,parseFloat(curCSSLeft)||0),null!=(options=isFunction(options)?options.call(elem,i,jQuery.extend({},curOffset)):options).top&&(props.top=options.top-curOffset.top+curTop),null!=options.left&&(props.left=options.left-curOffset.left+position),"using"in options?options.using.call(elem,props):curElem.css(props)}},jQuery.fn.extend({offset:function(options){var rect,elem;return arguments.length?void 0===options?this:this.each(function(i){jQuery.offset.setOffset(this,options,i)}):(elem=this[0])?elem.getClientRects().length?(rect=elem.getBoundingClientRect(),elem=elem.ownerDocument.defaultView,{top:rect.top+elem.pageYOffset,left:rect.left+elem.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var offsetParent,offset,doc,elem=this[0],parentOffset={top:0,left:0};if("fixed"===jQuery.css(elem,"position"))offset=elem.getBoundingClientRect();else{for(offset=this.offset(),doc=elem.ownerDocument,offsetParent=elem.offsetParent||doc.documentElement;offsetParent&&(offsetParent===doc.body||offsetParent===doc.documentElement)&&"static"===jQuery.css(offsetParent,"position");)offsetParent=offsetParent.parentNode;offsetParent&&offsetParent!==elem&&1===offsetParent.nodeType&&((parentOffset=jQuery(offsetParent).offset()).top+=jQuery.css(offsetParent,"borderTopWidth",!0),parentOffset.left+=jQuery.css(offsetParent,"borderLeftWidth",!0))}return{top:offset.top-parentOffset.top-jQuery.css(elem,"marginTop",!0),left:offset.left-parentOffset.left-jQuery.css(elem,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var offsetParent=this.offsetParent;offsetParent&&"static"===jQuery.css(offsetParent,"position");)offsetParent=offsetParent.offsetParent;return offsetParent||documentElement})}}),jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){var top="pageYOffset"===prop;jQuery.fn[method]=function(val){return access(this,function(elem,method,val){var win;if(isWindow(elem)?win=elem:9===elem.nodeType&&(win=elem.defaultView),void 0===val)return win?win[prop]:elem[method];win?win.scrollTo(top?win.pageXOffset:val,top?val:win.pageYOffset):elem[method]=val},method,val,arguments.length)}}),jQuery.each(["top","left"],function(_i,prop){jQuery.cssHooks[prop]=addGetHookIf(support.pixelPosition,function(elem,computed){if(computed)return computed=curCSS(elem,prop),rnumnonpx.test(computed)?jQuery(elem).position()[prop]+"px":computed})}),jQuery.each({Height:"height",Width:"width"},function(name,type){jQuery.each({padding:"inner"+name,content:type,"":"outer"+name},function(defaultExtra,funcName){jQuery.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||"boolean"!=typeof margin),extra=defaultExtra||(!0===margin||!0===value?"margin":"border");return access(this,function(elem,type,value){var doc;return isWindow(elem)?0===funcName.indexOf("outer")?elem["inner"+name]:elem.document.documentElement["client"+name]:9===elem.nodeType?(doc=elem.documentElement,Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name])):void 0===value?jQuery.css(elem,type,extra):jQuery.style(elem,type,value,extra)},type,chainable?margin:void 0,chainable)}})}),jQuery.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(_i,type){jQuery.fn[type]=function(fn){return this.on(type,fn)}}),jQuery.fn.extend({bind:function(types,data,fn){return this.on(types,null,data,fn)},unbind:function(types,fn){return this.off(types,null,fn)},delegate:function(selector,types,data,fn){return this.on(types,selector,data,fn)},undelegate:function(selector,types,fn){return 1===arguments.length?this.off(selector,"**"):this.off(types,selector||"**",fn)},hover:function(fnOver,fnOut){return this.on("mouseenter",fnOver).on("mouseleave",fnOut||fnOver)}}),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){jQuery.fn[name]=function(data,fn){return 0<arguments.length?this.on(name,null,data,fn):this.trigger(name)}}),/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g),_jQuery=(jQuery.proxy=function(fn,context){var args,tmp;if("string"==typeof context&&(tmp=fn[context],context=fn,fn=tmp),isFunction(fn))return args=slice.call(arguments,2),(tmp=function(){return fn.apply(context||this,args.concat(slice.call(arguments)))}).guid=fn.guid=fn.guid||jQuery.guid++,tmp},jQuery.holdReady=function(hold){hold?jQuery.readyWait++:jQuery.ready(!0)},jQuery.isArray=Array.isArray,jQuery.parseJSON=JSON.parse,jQuery.nodeName=nodeName,jQuery.isFunction=isFunction,jQuery.isWindow=isWindow,jQuery.camelCase=camelCase,jQuery.type=toType,jQuery.now=Date.now,jQuery.isNumeric=function(obj){var type=jQuery.type(obj);return("number"===type||"string"===type)&&!isNaN(obj-parseFloat(obj))},jQuery.trim=function(text){return null==text?"":(text+"").replace(rtrim,"$1")},void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return jQuery}.apply(exports,[]))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),window.jQuery),_$=window.$;return jQuery.noConflict=function(deep){return window.$===jQuery&&(window.$=_$),deep&&window.jQuery===jQuery&&(window.jQuery=_jQuery),jQuery},void 0===noGlobal&&(window.jQuery=window.$=jQuery),jQuery},"object"==typeof module.exports?module.exports=global.document?factory(global,!0):function(w){if(w.document)return factory(w);throw new Error("jQuery requires a window with a document")}:factory(global)},96:function(module,exports,__webpack_require__){module.exports=__webpack_require__(97)},97:function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),function(jQuery){var $,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6),_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3),_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__);__webpack_require__(19),__webpack_require__(98),__webpack_require__(15),__webpack_require__(17);($=jQuery)(function(){var _submitHandler,_body=$("body"),_formBook=_body.find(".js-form-complaints-book");$.validator.addMethod("email_custom",function(value,element){return""===value?this.optional(element):/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(value)},"Please enter a valid file."),$.validator.addMethod("ruc",function(value,element,arg){return""===value?this.optional(element):(ruc=>{if(!(1e10<=ruc&&ruc<11e9||15e9<=ruc&&ruc<18e9||2e10<=ruc&&ruc<21e9))return!1;for(var suma=-(ruc%10<2),i=0;i<11;i++,ruc=ruc/10|0)suma+=ruc%10*(i%7+(i/7|0)+1);return suma%11==0})(value)},"Please enter number ruc valid.");_formBook.validate({errorPlacement:function(error,element){},rules:{book_day:{required:!0},book_month:{required:!0},book_year:{required:!0},book_code:{required:!0},firstname:{required:!0},lastname:{required:!0},document_type:{required:!0},document_number:{required:!0},cellphone:{required:!0},claim_email:{required:!0,email_custom:!0},address:{required:!0},purchase_mode:{required:!0},contracted_benefit:{required:!0},benefit_description:{required:!0},benefit_amount:{required:!0},claim_type:{required:!0},claim_description:{required:!0},claim_request:{required:!0},claim_terms:{required:!0},claim_policy:{required:!0}},submitHandler:(_submitHandler=_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0___default()(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.mark(function _callee(form,event){var data,token;return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default.a.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:return event.preventDefault(),data=new FormData(form),_context.next=4,jsVars.recaptchaSiteKey?new Promise(function(res){grecaptcha.ready(function(){grecaptcha.execute(jsVars.recaptchaSiteKey).then(function(token){return res(token)})})}):"";case 4:token=_context.sent,data.append("action","mason_send_form_book"),data.append("token",token),$.ajax({url:jsVars.ajaxUrl,data:data,processData:!1,contentType:!1,type:"POST",beforeSend:function(){_formBook.find(".js-form-complaints-book-submit").addClass("disabled")},success:function(result){_formBook.fadeOut(),_formBook[0].reset(),_body.find(".js-message-book-send-mail").fadeIn(300),_formBook.find(".js-form-complaints-book-submit").removeClass("disabled")}});case 8:case"end":return _context.stop()}},_callee)})),function(_x,_x2){return _submitHandler.apply(this,arguments)})})})}.call(this,__webpack_require__(9))},98:function(module,exports,__webpack_require__){}});