From 67b8fe51e2a2095c5d74aab6b659baebb29308e3 Mon Sep 17 00:00:00 2001 From: Edgar Zanella Alvarenga Date: Wed, 14 Jun 2023 13:52:38 +0200 Subject: [PATCH] update new website scripts to fix video player bug --- static/js/scripts.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/static/js/scripts.js b/static/js/scripts.js index 1f3384e2..48ba573c 100644 --- a/static/js/scripts.js +++ b/static/js/scripts.js @@ -1 +1,16 @@ -function callPlayer(n,e,t){window.jQuery&&n instanceof jQuery&&(n=n.get(0).id);var i=document.getElementById(n);i&&"IFRAME"!=i.tagName.toUpperCase()&&(i=i.getElementsByTagName("iframe")[0]),callPlayer.queue||(callPlayer.queue={});var r=callPlayer.queue[n],o="complete"==document.readyState;if(o&&!i)window.console&&console.log("callPlayer: Frame not found; id="+n),r&&clearInterval(r.poller);else if("listening"===e)i&&i.contentWindow&&(e='{"event":"listening","id":'+JSON.stringify(""+n)+"}",i.contentWindow.postMessage(e,"*"));else if(r&&r.ready||o&&(!i||i.contentWindow)&&"function"!=typeof e){if(i&&i.contentWindow){if(e.call)return e();i.contentWindow.postMessage(JSON.stringify({event:"command",func:e,args:t||[],id:n}),"*")}}else(r=r||(callPlayer.queue[n]=[])).push([e,t]),"poller"in r||(r.poller=setInterval(function(){callPlayer(n,"listening")},250),s(1,function e(t){if(!i){if(!(i=document.getElementById(n)))return;if("IFRAME"!=i.tagName.toUpperCase()&&!(i=i.getElementsByTagName("iframe")[0]))return}if(t.source===i.contentWindow)for(clearInterval(r.poller),r.ready=!0,s(0,e);tmp=r.shift();)callPlayer(n,tmp[0],tmp[1])}));function s(e,t){var n=e?window.addEventListener:window.removeEventListener;n?n("message",t,!1):(e?window.attachEvent:window.detachEvent)("onmessage",t)}}!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(x,e){"use strict";function m(e){return null!=e&&e===e.window}var t=[],i=Object.getPrototypeOf,a=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},l=t.push,r=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,s=v.toString,c=s.call(Object),_={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},T=x.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var i,r,o=(n=n||T).createElement("script");if(o.text=e,t)for(i in u)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var d="3.5.1",E=function(e,t){return new E.fn.init(e,t)};function f(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!b(e)&&!m(e)&&("array"===n||0===t||"number"==typeof t&&0>10|55296,1023&n|56320))}function r(){C()}var e,h,y,o,s,p,f,m,w,l,c,C,x,a,T,g,u,v,_,E="sizzle"+1*new Date,b=n.document,S=0,i=0,k=le(),A=le(),D=le(),N=le(),I=function(e,t){return e===t&&(c=!0),0},O={}.hasOwnProperty,t=[],P=t.pop,$=t.push,j=t.push,L=t.slice,M=function(e,t){for(var n=0,i=e.length;n+~]|"+q+")"+q+"*"),K=new RegExp(q+"|>"),V=new RegExp(W),Y=new RegExp("^"+R+"$"),X={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+q+"*(even|odd|(([+-]|)(\\d*)n|)"+q+"*(?:([+-]|)"+q+"*(\\d+)|))"+q+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+q+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+q+"*((?:-\\d)?\\d*)"+q+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,ie=new RegExp("\\\\[\\da-fA-F]{1,6}"+q+"?|\\\\([^\\r\\n\\f])","g"),re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},se=ye(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{j.apply(t=L.call(b.childNodes),b.childNodes),t[b.childNodes.length].nodeType}catch(e){j={apply:t.length?function(e,t){$.apply(e,L.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ae(t,e,n,i){var r,o,s,a,l,c,u,d=e&&e.ownerDocument,f=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==f&&9!==f&&11!==f)return n;if(!i&&(C(e),e=e||x,T)){if(11!==f&&(l=te.exec(t)))if(r=l[1]){if(9===f){if(!(s=e.getElementById(r)))return n;if(s.id===r)return n.push(s),n}else if(d&&(s=d.getElementById(r))&&_(e,s)&&s.id===r)return n.push(s),n}else{if(l[2])return j.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&h.getElementsByClassName&&e.getElementsByClassName)return j.apply(n,e.getElementsByClassName(r)),n}if(h.qsa&&!N[t+" "]&&(!g||!g.test(t))&&(1!==f||"object"!==e.nodeName.toLowerCase())){if(u=t,d=e,1===f&&(K.test(t)||Q.test(t))){for((d=ne.test(t)&&ve(e.parentNode)||e)===e&&h.scope||((a=e.getAttribute("id"))?a=a.replace(re,oe):e.setAttribute("id",a=E)),o=(c=p(t)).length;o--;)c[o]=(a?"#"+a:":scope")+" "+be(c[o]);u=c.join(",")}try{return j.apply(n,d.querySelectorAll(u)),n}catch(e){N(t,!0)}finally{a===E&&e.removeAttribute("id")}}}return m(t.replace(U,"$1"),e,n,i)}function le(){var i=[];return function e(t,n){return i.push(t+" ")>y.cacheLength&&delete e[i.shift()],e[t+" "]=n}}function ce(e){return e[E]=!0,e}function ue(e){var t=x.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)y.attrHandle[n[i]]=t}function fe(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pe(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function me(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&se(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ge(s){return ce(function(o){return o=+o,ce(function(e,t){for(var n,i=s([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in h=ae.support={},s=ae.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},C=ae.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:b;return i!=x&&9===i.nodeType&&i.documentElement&&(a=(x=i).documentElement,T=!s(x),b!=x&&(n=x.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",r,!1):n.attachEvent&&n.attachEvent("onunload",r)),h.scope=ue(function(e){return a.appendChild(e).appendChild(x.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=ue(function(e){return e.appendChild(x.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=ee.test(x.getElementsByClassName),h.getById=ue(function(e){return a.appendChild(e).id=E,!x.getElementsByName||!x.getElementsByName(E).length}),h.getById?(y.filter.ID=function(e){var t=e.replace(ie,d);return function(e){return e.getAttribute("id")===t}},y.find.ID=function(e,t){if(void 0!==t.getElementById&&T){var n=t.getElementById(e);return n?[n]:[]}}):(y.filter.ID=function(e){var n=e.replace(ie,d);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},y.find.ID=function(e,t){if(void 0!==t.getElementById&&T){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),y.find.TAG=h.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},y.find.CLASS=h.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&T)return t.getElementsByClassName(e)},u=[],g=[],(h.qsa=ee.test(x.querySelectorAll))&&(ue(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+q+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+q+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+E+"-]").length||g.push("~="),(t=x.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+q+"*name"+q+"*="+q+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),ue(function(e){e.innerHTML="";var t=x.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+q+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(h.matchesSelector=ee.test(v=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ue(function(e){h.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),u.push("!=",W)}),g=g.length&&new RegExp(g.join("|")),u=u.length&&new RegExp(u.join("|")),t=ee.test(a.compareDocumentPosition),_=t||ee.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return c=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e==x||e.ownerDocument==b&&_(b,e)?-1:t==x||t.ownerDocument==b&&_(b,t)?1:l?M(l,e)-M(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!r||!o)return e==x?-1:t==x?1:r?-1:o?1:l?M(l,e)-M(l,t):0;if(r===o)return fe(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?fe(s[i],a[i]):s[i]==b?-1:a[i]==b?1:0}),x},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(C(e),h.matchesSelector&&T&&!N[t+" "]&&(!u||!u.test(t))&&(!g||!g.test(t)))try{var n=v.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ie,d),e[3]=(e[3]||e[4]||e[5]||"").replace(ie,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=p(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ie,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+q+")"+e+"("+q+"|$)"))&&k(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=ae.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,i){return b(n)?E.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?E.grep(e,function(e){return e===n!==i}):"string"!=typeof n?E.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||N,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:I.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:T,!0)),A.test(i[1])&&E.isPlainObject(t))for(i in t)b(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=T.getElementById(i[2]))&&(this[0]=r,this.length=1),this}).prototype=E.fn,N=E(T);var O=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function $(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i;ue=T.createDocumentFragment().appendChild(T.createElement("div")),(de=T.createElement("input")).setAttribute("type","radio"),de.setAttribute("checked","checked"),de.setAttribute("name","t"),ue.appendChild(de),_.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="",_.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="",_.option=!!ue.lastChild;var me={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ge(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?E.merge([e],n):n}function ve(e,t){for(var n=0,i=e.length;n",""]);var _e=/<|&#?\w+;/;function be(e,t,n,i,r){for(var o,s,a,l,c,u,d=t.createDocumentFragment(),f=[],h=0,p=e.length;h\s*$/g;function Ie(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Pe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function $e(e,t){var n,i,r,o,s,a;if(1===t.nodeType){if(Y.hasData(e)&&(a=Y.get(e).events))for(r in Y.remove(t,"handle events"),a)for(n=0,i=a[r].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){i.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),T.head.appendChild(i[0])},abort:function(){r&&r()}}});var tn,nn=[],rn=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=nn.pop()||E.expando+"_"+Pt.guid++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,s=!1!==e.jsonp&&(rn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&rn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(rn,"$1"+i):!1!==e.jsonp&&(e.url+=($t.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||E.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=x[i],x[i]=function(){o=arguments},n.always(function(){void 0===r?E(x).removeProp(i):x[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,nn.push(i)),o&&b(r)&&r(o[0]),o=r=void 0}),"script"}),_.createHTMLDocument=((tn=T.implementation.createHTMLDocument("").body).innerHTML="
",2===tn.childNodes.length),E.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(_.createHTMLDocument?((i=(t=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,t.head.appendChild(i)):t=T),o=!n&&[],(r=A.exec(e))?[t.createElement(r[1])]:(r=be([e],t,o),o&&o.length&&E(o).remove(),E.merge([],r.childNodes)));var i,r,o},E.fn.load=function(e,t,n){var i,r,o,s=this,a=e.indexOf(" ");return-1").append(E.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},E.expr.pseudos.animated=function(t){return E.grep(E.timers,function(e){return t===e.elem}).length},E.offset={setOffset:function(e,t,n){var i,r,o,s,a,l,c=E.css(e,"position"),u=E(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=E.css(e,"top"),l=E.css(e,"left"),r=("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(s=(i=u.position()).top,i.left):(s=parseFloat(o)||0,parseFloat(l)||0),b(t)&&(t=t.call(e,n,E.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),u.css(d))}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){E.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===E.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),r.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-E.css(i,"marginTop",!0),left:t.left-r.left-E.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===E.css(e,"position");)e=e.offsetParent;return e||ie})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;E.fn[t]=function(e){return W(this,function(e,t,n){var i;if(m(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n)return i?i[r]:e[t];i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):e[t]=n},t,e,arguments.length)}}),E.each(["top","left"],function(e,n){E.cssHooks[n]=Je(_.pixelPosition,function(e,t){if(t)return t=Ge(e,n),Qe.test(t)?E(e).position()[n]+"px":t})}),E.each({Height:"height",Width:"width"},function(s,a){E.each({padding:"inner"+s,content:a,"":"outer"+s},function(i,o){E.fn[o]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return W(this,function(e,t,n){var i;return m(e)?0===o.indexOf("outer")?e["inner"+s]:e.document.documentElement["client"+s]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+s],i["scroll"+s],e.body["offset"+s],i["offset"+s],i["client"+s])):void 0===n?E.css(e,t,r):E.style(e,t,n,r)},a,n?e:void 0,n)}})}),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){E.fn[t]=function(e){return this.on(t,e)}}),E.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),E.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(e,n){E.fn[n]=function(e,t){return 0this._items.length-1||e<0))if(this._isSliding)p(this._element).one(B.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var i=n=i.clientWidth&&n>=i.clientHeight}),d=0l[e]&&!i.escapeWithReference&&(n=Math.min(u[t],l[e]-("right"===e?u.width:u.height))),ze({},t,n)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=Qe({},u,d[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]o(i[a])&&(e.offsets.popper[l]=o(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!pt(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],o=e.offsets,s=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),f=l?"left":"top",h=l?"bottom":"right",p=et(i)[c];a[h]-ps[h]&&(e.offsets.popper[d]+=a[d]+p-s[h]),e.offsets.popper=Ke(e.offsets.popper);var m=a[d]+a[c]/2-p/2,g=Ne(e.instance.popper),v=parseFloat(g["margin"+u],10),_=parseFloat(g["border"+u+"Width"],10),b=m-e.offsets.popper[d]-v-_;return b=Math.max(Math.min(s[c]-p,b),0),e.arrowElement=i,e.offsets.arrow=(ze(n={},d,Math.round(b)),ze(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(h,p){if(ot(h.instance.modifiers,"inner"))return h;if(h.flipped&&h.placement===h.originalPlacement)return h;var m=Ge(h.instance.popper,h.instance.reference,p.padding,p.boundariesElement,h.positionFixed),g=h.placement.split("-")[0],v=tt(g),_=h.placement.split("-")[1]||"",b=[];switch(p.behavior){case _t:b=[g,v];break;case bt:b=vt(g);break;case yt:b=vt(g,!0);break;default:b=p.behavior}return b.forEach(function(e,t){if(g!==e||b.length===t+1)return h;g=h.placement.split("-")[0],v=tt(g);var n=h.offsets.popper,i=h.offsets.reference,r=Math.floor,o="left"===g&&r(n.right)>r(i.left)||"right"===g&&r(n.left)r(i.top)||"bottom"===g&&r(n.top)r(m.right),l=r(n.top)r(m.bottom),u="left"===g&&s||"right"===g&&a||"top"===g&&l||"bottom"===g&&c,d=-1!==["top","bottom"].indexOf(g),f=!!p.flipVariations&&(d&&"start"===_&&s||d&&"end"===_&&a||!d&&"start"===_&&l||!d&&"end"===_&&c);(o||u||f)&&(h.flipped=!0,(o||u)&&(g=b[t+1]),f&&(_=function(e){return"end"===e?"start":"start"===e?"end":e}(_)),h.placement=g+(_?"-"+_:""),h.offsets.popper=Qe({},h.offsets.popper,nt(h.instance.popper,h.offsets.reference,h.placement)),h=rt(h.instance.modifiers,h,"flip"))}),h},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=o[n]-(a?r[s?"width":"height"]:0),e.placement=tt(t),e.offsets.popper=Ke(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!pt(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=it(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.rightdocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:wn},jn="show",Ln="out",Mn={HIDE:"hide"+kn,HIDDEN:"hidden"+kn,SHOW:"show"+kn,SHOWN:"shown"+kn,INSERTED:"inserted"+kn,CLICK:"click"+kn,FOCUSIN:"focusin"+kn,FOCUSOUT:"focusout"+kn,MOUSEENTER:"mouseenter"+kn,MOUSELEAVE:"mouseleave"+kn},Hn="fade",qn="show",Rn=".tooltip-inner",Fn=".arrow",Wn="hover",Bn="focus",Un="click",zn="manual",Qn=function(){function i(e,t){if(void 0===xt)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e=i.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=p(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(p(this.getTipElement()).hasClass(qn))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),p.removeData(this.element,this.constructor.DATA_KEY),p(this.element).off(this.constructor.EVENT_KEY),p(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&p(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===p(this.element).css("display"))throw new Error("Please use show on visible elements");var e=p.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){p(this.element).trigger(e);var n=m.findShadowRoot(this.element),i=p.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var r=this.getTipElement(),o=m.getUID(this.constructor.NAME);r.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&p(r).addClass(Hn);var s="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=this._getContainer();p(r).data(this.constructor.DATA_KEY,this),p.contains(this.element.ownerDocument.documentElement,this.tip)||p(r).appendTo(l),p(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new xt(this.element,r,{placement:a,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Fn},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}}),p(r).addClass(qn),"ontouchstart"in document.documentElement&&p(document.body).children().on("mouseover",null,p.noop);var c=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,p(t.element).trigger(t.constructor.Event.SHOWN),e===Ln&&t._leave(null,t)};if(p(this.tip).hasClass(Hn)){var u=m.getTransitionDurationFromElement(this.tip);p(this.tip).one(m.TRANSITION_END,c).emulateTransitionEnd(u)}else c()}},e.hide=function(e){function t(){n._hoverState!==jn&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),p(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()}var n=this,i=this.getTipElement(),r=p.Event(this.constructor.Event.HIDE);if(p(this.element).trigger(r),!r.isDefaultPrevented()){if(p(i).removeClass(qn),"ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),this._activeTrigger[Un]=!1,this._activeTrigger[Bn]=!1,this._activeTrigger[Wn]=!1,p(this.tip).hasClass(Hn)){var o=m.getTransitionDurationFromElement(i);p(i).one(m.TRANSITION_END,t).emulateTransitionEnd(o)}else t();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(e){p(this.getTipElement()).addClass(Dn+"-"+e)},e.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},e.setContent=function(){var e=this.getTipElement();this.setElementContent(p(e.querySelectorAll(Rn)),this.getTitle()),p(e).removeClass(Hn+" "+qn)},e.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=Tn(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?p(t).parent().is(e)||e.empty().append(t):e.text(p(t).text())},e.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e=e||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:m.isElement(this.config.container)?p(this.config.container):p(document).find(this.config.container)},e._getAttachment=function(e){return Pn[e.toUpperCase()]},e._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)p(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)});else if(e!==zn){var t=e===Wn?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=e===Wn?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;p(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)})}}),p(this.element).closest(".modal").on("hide.bs.modal",function(){i.element&&i.hide()}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?Bn:Wn]=!0),p(t.getTipElement()).hasClass(qn)||t._hoverState===jn?t._hoverState=jn:(clearTimeout(t._timeout),t._hoverState=jn,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===jn&&t.show()},t.config.delay.show):t.show())},e._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?Bn:Wn]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=Ln,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===Ln&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function(e){var t=p(this.element).data();return Object.keys(t).forEach(function(e){-1!==In.indexOf(e)&&delete t[e]}),"number"==typeof(e=l({},this.constructor.Default,t,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),m.typeCheckConfig(En,e,this.constructor.DefaultType),e.sanitize&&(e.template=Tn(e.template,e.whiteList,e.sanitizeFn)),e},e._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},e._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(Nn);null!==t&&t.length&&e.removeClass(t.join(""))},e._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},e._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(p(e).removeClass(Hn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},i._jQueryInterface=function(n){return this.each(function(){var e=p(this).data(Sn),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new i(this,t),p(this).data(Sn,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return $n}},{key:"NAME",get:function(){return En}},{key:"DATA_KEY",get:function(){return Sn}},{key:"Event",get:function(){return Mn}},{key:"EVENT_KEY",get:function(){return kn}},{key:"DefaultType",get:function(){return On}}]),i}();p.fn[En]=Qn._jQueryInterface,p.fn[En].Constructor=Qn,p.fn[En].noConflict=function(){return p.fn[En]=An,Qn._jQueryInterface};var Kn="popover",Vn="bs.popover",Yn="."+Vn,Xn=p.fn[Kn],Gn="bs-popover",Jn=new RegExp("(^|\\s)"+Gn+"\\S+","g"),Zn=l({},Qn.Default,{placement:"right",trigger:"click",content:"",template:''}),ei=l({},Qn.DefaultType,{content:"(string|element|function)"}),ti="fade",ni="show",ii=".popover-header",ri=".popover-body",oi={HIDE:"hide"+Yn,HIDDEN:"hidden"+Yn,SHOW:"show"+Yn,SHOWN:"shown"+Yn,INSERTED:"inserted"+Yn,CLICK:"click"+Yn,FOCUSIN:"focusin"+Yn,FOCUSOUT:"focusout"+Yn,MOUSEENTER:"mouseenter"+Yn,MOUSELEAVE:"mouseleave"+Yn},si=function(e){function i(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(i,e);var t=i.prototype;return t.isWithContent=function(){return this.getTitle()||this._getContent()},t.addAttachmentClass=function(e){p(this.getTipElement()).addClass(Gn+"-"+e)},t.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},t.setContent=function(){var e=p(this.getTipElement());this.setElementContent(e.find(ii),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(ri),t),e.removeClass(ti+" "+ni)},t._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},t._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(Jn);null!==t&&0=this._offsets[r]&&(void 0===this._offsets[r+1]||e"):Le(""),n=["href","title","target"],i=0;i");return e.children().each(function(){var e=Le(this),t=Le("
  • ");e.hasClass("dropdown-divider")?t.addClass("Divider"):e.hasClass("dropdown-item")&&t.append(We(e)),n.append(t)}),n}return(d=a)[h="mmenu"]&&"7.3.3"').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.addClass(f.menu).parent().addClass(f.wrapper),this.trigger("initMenu:after")},_initPanels:function(e){this.trigger("initPanels:before",e),e=e||this.$pnls.children(this.conf.panelNodetype);var i=d(),r=this,o=function(e){e.filter(r.conf.panelNodetype).each(function(e){var t=r._initPanel(d(this));if(t){r._initNavbar(t),r._initListview(t),i=i.add(t);var n=t.children("."+f.listview).children("li").children(r.conf.panelNodetype).add(t.children("."+r.conf.classNames.panel));n.length&&o(n)}})};o(e),this.trigger("initPanels:after",i)},_initPanel:function(e){if(this.trigger("initPanel:before",e),e.hasClass(f.panel))return e;if(this.__refactorClass(e,this.conf.classNames.panel,f.panel),this.__refactorClass(e,this.conf.classNames.nopanel,f.nopanel),this.__refactorClass(e,this.conf.classNames.inset,f.listview+"_inset"),e.filter("."+f.listview+"_inset").addClass(f.nopanel),e.hasClass(f.nopanel))return!1;var t=e.hasClass(this.conf.classNames.vertical)||!this.opts.slidingSubmenus;e.removeClass(this.conf.classNames.vertical);var n=e.attr("id")||this.__getUniqueId();e.is("ul, ol")&&(e.removeAttr("id"),e.wrap("
    "),e=e.parent()),e.attr("id",n),e.addClass(f.panel+" "+f.hidden);var i=e.parent("li");return t?i.addClass(f.listitem+"_vertical"):e.appendTo(this.$pnls),i.length&&(i.data(l.child,e),e.data(l.parent,i)),this.trigger("initPanel:after",e),e},_initNavbar:function(e){if(this.trigger("initNavbar:before",e),!e.children("."+f.navbar).length){var t=e.data(l.parent),n=d('
    '),i=this.__getPanelTitle(e,this.opts.navbar.title),r="";if(t&&t.length){if(t.hasClass(f.listitem+"_vertical"))return;if(t.parent().is("."+f.listview))var o=t.children("a, span").not("."+f.btn+"_next");else o=t.closest("."+f.panel).find('a[href="#'+e.attr("id")+'"]');var s=(t=(o=o.first()).closest("."+f.panel)).attr("id");switch(i=this.__getPanelTitle(e,d(""+o.text()+"").text()),this.opts.navbar.titleLink){case"anchor":r=o.attr("href")||"";break;case"parent":r="#"+s}n.append('')}else if(!this.opts.navbar.title)return;this.opts.navbar.add&&e.addClass(f.panel+"_has-navbar"),n.append('"+i+"").prependTo(e),this.trigger("initNavbar:after",e)}},_initListview:function(e){this.trigger("initListview:before",e);var t=this.__childAddBack(e,"ul, ol");this.__refactorClass(t,this.conf.classNames.nolistview,f.nolistview);var n=t.not("."+f.nolistview).addClass(f.listview).children().addClass(f.listitem);this.__refactorClass(n,this.conf.classNames.selected,f.listitem+"_selected"),this.__refactorClass(n,this.conf.classNames.divider,f.listitem+"_divider"),this.__refactorClass(n,this.conf.classNames.spacer,f.listitem+"_spacer"),n.children("a, span").not("."+f.btn).addClass(f.listitem+"__text");var i=e.data(l.parent);if(i&&i.is("."+f.listitem)&&!i.children("."+f.btn).length){var r=i.children("a, span").first(),o=d('');o.insertAfter(r),r.is("span")&&(o.addClass(f.listitem+"__text "+r.attr("class")).html(r.html()),r.remove())}this.trigger("initListview:after",e)},_initOpened:function(){this.trigger("initOpened:before");var e=this.$pnls.find("."+f.listitem+"_selected").removeClass(f.listitem+"_selected").last().addClass(f.listitem+"_selected"),t=e.length?e.closest("."+f.panel):this.$pnls.children("."+f.panel).first();this.openPanel(t,!1),this.trigger("initOpened:after")},_initAnchors:function(){this.trigger("initAnchors:before");var u=this;e.$body.on(c.click+"-oncanvas","a[href]",function(e){var t=d(this),n=t.attr("href"),i=u.$menu.find(t).length,r=t.is("."+f.listitem+" > a"),o=t.is('[rel="external"]')||t.is('[target="_blank"]');if(i&&1").parent())),e.addClass(s.page+" "+s.slideout).each(function(){o(this).attr("id",o(this).attr("id")||t.__getUniqueId())}),u.$page=e,this.trigger("setPage:after",e)},o.mmenu.prototype._initWindow_offCanvas=function(){u.$wndw.off(r.keydown+"-"+p).on(r.keydown+"-"+p,function(e){if(u.$html.hasClass(s.wrapper+"_opened")&&9==e.keyCode)return e.preventDefault(),!1});var i=0;u.$wndw.off(r.resize+"-"+p).on(r.resize+"-"+p,function(e,t){if(1==u.$page.length&&(t||u.$html.hasClass(s.wrapper+"_opened"))){var n=u.$wndw.height();!t&&n==i||(i=n,u.$page.css("minHeight",n))}})},o.mmenu.prototype._initBlocker=function(){var t=this,e=this.opts[p],n=this.conf[p];this.trigger("initBlocker:before"),e.blockUI&&(u.$blck||(u.$blck=o('
    ').append("")),u.$blck.appendTo(n.menu.insertSelector).off(r.touchstart+"-"+p+" "+r.touchmove+"-"+p).on(r.touchstart+"-"+p+" "+r.touchmove+"-"+p,function(e){e.preventDefault(),e.stopPropagation(),u.$blck.trigger(r.mousedown+"-"+p)}).off(r.mousedown+"-"+p).on(r.mousedown+"-"+p,function(e){e.preventDefault(),u.$html.hasClass(s.wrapper+"_modal")||(t.closeAllOthers(),t.close())}),this.trigger("initBlocker:after"))},t="screenReader",(m=a).mmenu.addons[t]={setup:function(){var r=this,e=this.opts[t],o=this.conf[t];m.mmenu.glbl,"boolean"==typeof e&&(e={aria:e,text:e}),"object"!=typeof e&&(e={}),(e=this.opts[t]=m.extend(!0,{},m.mmenu.defaults[t],e)).aria&&(this.bind("initAddons:after",function(){this.bind("initMenu:after",function(){this.trigger("initMenu:after:sr-aria")}),this.bind("initNavbar:after",function(){this.trigger("initNavbar:after:sr-aria",arguments[0])}),this.bind("openPanel:start",function(){this.trigger("openPanel:start:sr-aria",arguments[0])}),this.bind("close:start",function(){this.trigger("close:start:sr-aria")}),this.bind("close:finish",function(){this.trigger("close:finish:sr-aria")}),this.bind("open:start",function(){this.trigger("open:start:sr-aria")}),this.bind("initOpened:after",function(){this.trigger("initOpened:after:sr-aria")})}),this.bind("updateListview",function(){this.$pnls.find("."+g.listview).children().each(function(){r.__sr_aria(m(this),"hidden",m(this).is("."+g.hidden))})}),this.bind("openPanel:start",function(e){var t=this.$menu.find("."+g.panel).not(e).not(e.parents("."+g.panel)),n=e.add(e.find("."+g.listitem+"_vertical ."+g.listitem+"_opened").children("."+g.panel));this.__sr_aria(t,"hidden",!0),this.__sr_aria(n,"hidden",!1)}),this.bind("closePanel",function(e){this.__sr_aria(e,"hidden",!0)}),this.bind("initPanels:after",function(e){var t=e.find("."+g.btn).each(function(){r.__sr_aria(m(this),"owns",m(this).attr("href").replace("#",""))});this.__sr_aria(t,"haspopup",!0)}),this.bind("initNavbar:after",function(e){var t=e.children("."+g.navbar);this.__sr_aria(t,"hidden",!e.hasClass(g.panel+"_has-navbar"))}),e.text&&"parent"==this.opts.navbar.titleLink&&this.bind("initNavbar:after",function(e){var t=e.children("."+g.navbar),n=!!t.children("."+g.btn+"_prev").length;this.__sr_aria(t.children("."+g.title),"hidden",n)})),e.text&&(this.bind("initAddons:after",function(){this.bind("setPage:after",function(){this.trigger("setPage:after:sr-text",arguments[0])}),this.bind("initBlocker:after",function(){this.trigger("initBlocker:after:sr-text")})}),this.bind("initNavbar:after",function(e){var t=e.children("."+g.navbar),n=this.i18n(o.text.closeSubmenu);t.children("."+g.btn+"_prev").html(this.__sr_text(n))}),this.bind("initListview:after",function(e){var t=e.data(v.parent);if(t&&t.length){var n=t.children("."+g.btn+"_next"),i=this.i18n(o.text[n.parent().is("."+g.listitem+"_vertical")?"toggleSubmenu":"openSubmenu"]);n.append(r.__sr_text(i))}}))},add:function(){g=m.mmenu._c,v=m.mmenu._d,m.mmenu._e,g.add("sronly")},clickAnchor:function(e,t){}},m.mmenu.defaults[t]={aria:!0,text:!0},m.mmenu.configuration[t]={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}},m.mmenu.prototype.__sr_aria=function(e,t,n){e.prop("aria-"+t,n)[n?"attr":"removeAttr"]("aria-"+t,n)},m.mmenu.prototype.__sr_role=function(e,t){e.prop("role",t)[t?"attr":"removeAttr"]("role",t)},m.mmenu.prototype.__sr_text=function(e){return''+e+""},C="scrollBugFix",(_=a).mmenu.addons[C]={setup:function(){var e=this.opts[C];this.conf[C],w=_.mmenu.glbl,_.mmenu.support.touch&&this.opts.offCanvas&&this.opts.offCanvas.blockUI&&("boolean"==typeof e&&(e={fix:e}),"object"!=typeof e&&(e={}),(e=this.opts[C]=_.extend(!0,{},_.mmenu.defaults[C],e)).fix&&(this.bind("open:start",function(){this.$pnls.children("."+b.panel+"_opened").scrollTop(0)}),this.bind("initMenu:after",function(){this["_initWindow_"+C]()})))},add:function(){b=_.mmenu._c,_.mmenu._d,y=_.mmenu._e},clickAnchor:function(e,t){}},_.mmenu.defaults[C]={fix:!0},_.mmenu.prototype["_initWindow_"+C]=function(){var e=this;_(document).off(y.touchmove+"-"+C).on(y.touchmove+"-"+C,function(e){w.$html.hasClass(b.wrapper+"_opened")&&e.preventDefault()});var t=!1;w.$body.off(y.touchstart+"-"+C).on(y.touchstart+"-"+C,"."+b.panels+"> ."+b.panel,function(e){w.$html.hasClass(b.wrapper+"_opened")&&(t||(t=!0,0===e.currentTarget.scrollTop?e.currentTarget.scrollTop=1:e.currentTarget.scrollHeight===e.currentTarget.scrollTop+e.currentTarget.offsetHeight&&(e.currentTarget.scrollTop-=1),t=!1))}).off(y.touchmove+"-"+C).on(y.touchmove+"-"+C,"."+b.panels+"> ."+b.panel,function(e){w.$html.hasClass(b.wrapper+"_opened")&&_(this)[0].scrollHeight>_(this).innerHeight()&&e.stopPropagation()}),w.$wndw.off(y.orientationchange+"-"+C).on(y.orientationchange+"-"+C,function(){e.$pnls.children("."+b.panel+"_opened").scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})},E="autoHeight",(x=a).mmenu.addons[E]={setup:function(){var r=this.opts[E];if(this.conf[E],x.mmenu.glbl,"boolean"==typeof r&&r&&(r={height:"auto"}),"string"==typeof r&&(r={height:r}),"object"!=typeof r&&(r={}),"auto"==(r=this.opts[E]=x.extend(!0,{},x.mmenu.defaults[E],r)).height||"highest"==r.height){this.bind("initMenu:after",function(){this.$menu.addClass(T.menu+"_autoheight")});function e(e){if(!this.opts.offCanvas||this.vars.opened){var t=Math.max(parseInt(this.$pnls.css("top"),10),0)||0,n=Math.max(parseInt(this.$pnls.css("bottom"),10),0)||0,i=0;this.$menu.addClass(T.menu+"_autoheight-measuring"),"auto"==r.height?((e=e||this.$pnls.children("."+T.panel+"_opened")).parent("."+T.listitem+"_vertical").length&&(e=e.parents("."+T.panel).not(function(){return x(this).parent("."+T.listitem+"_vertical").length})),e.length||(e=this.$pnls.children("."+T.panel)),i=e.first().outerHeight()):"highest"==r.height&&this.$pnls.children("."+T.panel).each(function(){var e=x(this);e.parent("."+T.listitem+"_vertical").length&&(e=e.parents("."+T.panel).not(function(){return x(this).parent("."+T.listitem+"_vertical").length})),i=Math.max(i,e.first().outerHeight())}),this.$menu.height(i+t+n).removeClass(T.menu+"_autoheight-measuring")}}this.opts.offCanvas&&this.bind("open:start",e),"highest"==r.height&&this.bind("initPanels:after",e),"auto"==r.height&&(this.bind("updateListview",e),this.bind("openPanel:start",e),this.bind("closePanel",e))}},add:function(){T=x.mmenu._c,x.mmenu._d,x.mmenu._e.add("resize")},clickAnchor:function(e,t){}},x.mmenu.defaults[E]={height:"default"},A="backButton",(S=a).mmenu.addons[A]={setup:function(){if(this.opts.offCanvas){var n=this,e=this.opts[A];this.conf[A],S.mmenu.glbl,"boolean"==typeof e&&(e={close:e}),"object"!=typeof e&&(e={}),e=S.extend(!0,{},S.mmenu.defaults[A],e);var i="#"+this.$menu.attr("id");if(e.close){var r=[];function t(){r=[i],this.$pnls.children("."+k.panel+"_opened-parent").add(n.$pnls.children("."+k.panel+"_opened")).each(function(){r.push("#"+S(this).attr("id"))})}this.bind("open:finish",function(){history.pushState(null,document.title,i)}),this.bind("open:finish",t),this.bind("openPanel:finish",t),this.bind("close:finish",function(){r=[],history.back(),history.pushState(null,document.title,location.pathname+location.search)}),S(window).on("popstate",function(e){if(n.vars.opened&&r.length){var t=(r=r.slice(0,-1))[r.length-1];t==i?n.close():(n.openPanel(S(t)),history.pushState(null,document.title,i))}})}e.open&&S(window).on("popstate",function(e){n.vars.opened||location.hash!=i||n.open()})}},add:function(){window.history&&window.history.pushState?(k=S.mmenu._c,S.mmenu._d,S.mmenu._e):S.mmenu.addons[A].setup=function(){}},clickAnchor:function(e,t){}},S.mmenu.defaults[A]={close:!1,open:!1},(D=a).mmenu.addons.columns={setup:function(){var n=this.opts.columns;if(this.conf.columns,D.mmenu.glbl,"boolean"==typeof n&&(n={add:n}),"number"==typeof n&&(n={add:!0,visible:n}),"object"!=typeof n&&(n={}),"number"==typeof n.visible&&(n.visible={min:n.visible,max:n.visible}),(n=this.opts.columns=D.extend(!0,{},D.mmenu.defaults.columns,n)).add){n.visible.min=Math.max(1,Math.min(6,n.visible.min)),n.visible.max=Math.max(n.visible.min,Math.min(6,n.visible.max));for(var i="",r="",e=0;e<=n.visible.max;e++)i+=" "+N.menu+"_columns-"+e,r+=" "+N.panel+"_columns-"+e;i.length&&(i=i.slice(1),r=r.slice(1));var o=r+" "+N.panel+"_opened "+N.panel+"_opened-parent "+N.panel+"_highest";this.bind("openPanel:before",function(e){var t=e.data(I.parent);if(t&&(t=t.closest("."+N.panel)).length){var n=t.attr("class");if(n=n&&n.split(N.panel+"_columns-")[1])for(n=parseInt(n.split(" ")[0],10)+1;0')))})}),n.update){function e(e){(e=e||this.$pnls.children("."+P.panel)).each(function(){var e=O(this),t=e.data($.parent);if(t){var n=t.find("."+P.counter);n.length&&(e=e.children("."+P.listview)).length&&n.html(i.__filterListItems(e.children()).length)}})}this.bind("initListview:after",e),this.bind("updateListview",e)}},add:function(){P=O.mmenu._c,$=O.mmenu._d,O.mmenu._e,P.add("counter")},clickAnchor:function(e,t){}},O.mmenu.defaults.counters={add:!1,addTo:"panels",count:!1},O.mmenu.configuration.classNames.counters={counter:"Counter"},H="dividers",(j=a).mmenu.addons.dividers={setup:function(){var n=this,i=this.opts.dividers;if(this.conf.dividers,j.mmenu.glbl,"boolean"==typeof i&&(i={add:i,fixed:i}),"object"!=typeof i&&(i={}),(i=this.opts.dividers=j.extend(!0,{},j.mmenu.defaults.dividers,i)).type&&this.bind("initMenu:after",function(){this.$menu.addClass(L.menu+"_"+H+"-"+i.type)}),i.add&&this.bind("initListview:after",function(e){var t;switch(i.addTo){case"panels":t=e;break;default:t=e.filter(i.addTo)}t.length&&(t.children("."+L.listitem+"_divider").remove(),t.find("."+L.listview).each(function(){var t="";n.__filterListItems(j(this).children()).each(function(){var e=j.trim(j(this).children("a, span").text()).slice(0,1).toLowerCase();e!=t&&e.length&&(t=e,j('
  • '+e+"
  • ").insertBefore(this))})}))}),i.fixed){this.bind("initPanels:before",function(){void 0===this.$fixeddivider&&(this.$fixeddivider=j('
    ').appendTo(this.$pnls).children())});function r(e){if(!(e=e||this.$pnls.children("."+L.panel+"_opened")).is(":hidden")){var t=e.find("."+L.listitem+"_divider").not("."+L.hidden),n=e.scrollTop()||0,i="";t.each(function(){j(this).position().top+n=i.$wndw[u]()-t.maxStartPos&&(p=1)}}switch(v){case"right":c.open_dir="left",c.close_dir="right";break;case"top":c.open_dir="down",c.close_dir="up";break;case"bottom":c.open_dir="up",c.close_dir="down"}switch(_){case"front":h=function(){return l.$menu}}var b=this.__valueOrFn(this.$menu,t.node,i.$page);"string"==typeof b&&(b=q(b));var y=new Hammer(b[0],this.opts.drag.vendors.hammer);y.on("panstart",function(e){f(e.center[c.typeLower]),a=h(),d=c.open_dir}),y.on(c.events+" panend",function(e){0t.threshold&&1==p){if(i.$html.hasClass(R.wrapper+"_opened"))return;p=2,l._openSetup(),l.trigger("open:start"),i.$html.addClass(R.dragging),g=Re(i.$wndw[u]()*n[u].perc,n[u].min,n[u].max)}2==p&&(o=Re(m,10,g)-("front"==_?g:0),c.negative&&(o=-o),s="translate"+c.typeUpper+"("+o+"px )",a.css({"-webkit-transform":"-webkit-"+s,transform:s}))}),y.on("panend",function(e){2==p&&(i.$html.removeClass(R.dragging),a.css("transform",""),l[d==c.open_dir?"_openFinish":"close"]()),p=0})}).call(this,t.menu,n.menu,W)}),t.panels.close&&this.bind("initPanel:after",function(e){(function(e,t,n,i){var r=this,o=e.data(F.parent);if(o){o=o.closest("."+R.panel);var s=new Hammer(e[0],r.opts.drag.vendors.hammer),a=null;s.on("panright",function(e){a||(r.openPanel(o),a=setTimeout(function(){clearTimeout(a),a=null},r.conf.openingInterval+r.conf.transitionDuration))})}}).call(this,e,t.panels,n.panels,W)})}},add:function(){if("function"!=typeof Hammer||Hammer.VERSION<2)return q.mmenu.addons.drag.add=function(){},void(q.mmenu.addons.drag.setup=function(){});R=q.mmenu._c,F=q.mmenu._d,q.mmenu._e,R.add("dragging")},clickAnchor:function(e,t){}},q.mmenu.defaults.drag={menu:{open:!1,maxStartPos:100,threshold:50},panels:{close:!1},vendors:{hammer:{}}},q.mmenu.configuration.drag={menu:{width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}},panels:{}},V="dropdown",(B=a).mmenu.addons.dropdown={setup:function(){if(this.opts.offCanvas){var t=this,_=this.opts.dropdown,b=this.conf.dropdown;if(K=B.mmenu.glbl,"boolean"==typeof _&&_&&(_={drop:_}),"object"!=typeof _&&(_={}),"string"==typeof _.position&&(_.position={of:_.position}),(_=this.opts.dropdown=B.extend(!0,{},B.mmenu.defaults.dropdown,_)).drop){var y;this.bind("initMenu:after",function(){if(this.$menu.addClass(U.menu+"_"+V),"string"!=typeof _.position.of){var e=this._getOriginalMenuId();e&&e.length&&(_.position.of='[href="#'+e+'"]')}"string"==typeof _.position.of&&(y=B(_.position.of),_.event=_.event.split(" "),1==_.event.length&&(_.event[1]=_.event[0]),"hover"==_.event[0]&&y.on(Q.mouseenter+"-"+V,function(){t.open()}),"hover"==_.event[1]&&this.$menu.on(Q.mouseleave+"-"+V,function(){t.close()}))}),this.bind("open:start",function(){this.$menu.data(z.style,this.$menu.attr("style")||""),K.$html.addClass(U.wrapper+"_dropdown")}),this.bind("close:finish",function(){this.$menu.attr("style",this.$menu.data(z.style)),K.$html.removeClass(U.wrapper+"_dropdown")});function n(e,t){var n,i,r=t[0],o=t[1],s="x"==e?"scrollLeft":"scrollTop",a="x"==e?"outerWidth":"outerHeight",l="x"==e?"left":"top",c="x"==e?"right":"bottom",u="x"==e?"width":"height",d="x"==e?"maxWidth":"maxHeight",f=null,h=K.$wndw[s](),p=y.offset()[l]-=h,m=p+y[a](),g=K.$wndw[u](),v=b.offset.button[e]+b.offset.viewport[e];if(_.position[e])switch(_.position[e]){case"left":case"bottom":f="after";break;case"right":case"top":f="before"}return null===f&&(f=p+(m-p)/2'),r=0,o=n.length;r')).append(i)}),a&&(this.bind("initMenu:after",function(){var e=ee.menu+"_iconbar";s.size&&(e+=" "+ee.menu+"_iconbar-"+s.size),this.$menu.addClass(e).prepend(a)}),"tabs"==s.type)){a.addClass(ee.iconbar+"_tabs");var r=a.find("a");r.on(ne.click+"-iconbar",function(e){var t=Z(this);if(t.hasClass(ee.iconbar+"__tab_selected"))e.stopImmediatePropagation();else try{var n=Z(t.attr("href"));n.hasClass(ee.panel)&&(e.preventDefault(),e.stopImmediatePropagation(),i.openPanel(n,!1))}catch(e){}}),this.bind("openPanel:start",function e(t){r.removeClass(ee.iconbar+"__tab_selected");var n=r.filter('[href="#'+t.attr("id")+'"]');if(n.length)n.addClass(ee.iconbar+"__tab_selected");else{var i=t.data(te.parent);i&&i.length&&e(i.closest("."+ee.panel))}})}}},add:function(){ee=Z.mmenu._c,te=Z.mmenu._d,ne=Z.mmenu._e,ee.add("iconbar")},clickAnchor:function(e,t){}},Z.mmenu.defaults.iconbar={add:!1,top:[],bottom:[]},Z.mmenu.configuration.iconbar={},oe="iconPanels",(ie=a).mmenu.addons[oe]={setup:function(){var n=this,i=this.opts[oe],r=(this.conf[oe],!1);ie.mmenu.glbl,"boolean"==typeof i&&(i={add:i}),"number"!=typeof i&&"string"!=typeof i||(i={add:!0,visible:i}),"object"!=typeof i&&(i={}),"first"==i.visible&&(r=!0,i.visible=1),(i=this.opts[oe]=ie.extend(!0,{},ie.mmenu.defaults[oe],i)).visible=Math.min(3,Math.max(1,i.visible)),i.visible++;var o="";if(!r){for(var e=0;e<=i.visible;e++)o+=" "+re.panel+"_iconpanel-"+e;o.length&&(o=o.slice(1))}if(i.add){function t(e){if(!e.parent("."+re.listitem+"_vertical").length){var t=n.$pnls.children("."+re.panel);r?t.removeClass(re.panel+"_iconpanel-first").first().addClass(re.panel+"_iconpanel-first"):t.removeClass(o).filter("."+re.panel+"_opened-parent").removeClass(re.hidden).not(function(){return ie(this).parent("."+re.listitem+"_vertical").length}).add(e).slice(-i.visible).each(function(e){ie(this).addClass(re.panel+"_iconpanel-"+e)})}}this.bind("initMenu:after",function(){var e=[re.menu+"_iconpanel"];i.size&&e.push(re.menu+"_iconpanel-"+i.size),i.hideNavbar&&e.push(re.menu+"_hidenavbar"),i.hideDivider&&e.push(re.menu+"_hidedivider"),this.$menu.addClass(e.join(" "))}),this.bind("openPanel:start",t),this.bind("initPanels:after",function(e){t.call(n,n.$pnls.children("."+re.panel+"_opened"))}),this.bind("initListview:after",function(e){!i.blockPanel||e.parent("."+re.listitem+"_vertical").length||e.children("."+re.panel+"__blocker").length||e.prepend('
    ')})}},add:function(){re=ie.mmenu._c,ie.mmenu._d,ie.mmenu._e},clickAnchor:function(e,t){}},ie.mmenu.defaults[oe]={add:!1,blockPanel:!0,hideDivider:!1,hideNavbar:!0,visible:3},function(o){var s,a,i,r,l="keyboardNavigation";o.mmenu.addons[l]={setup:function(){if(!o.mmenu.support.touch){var t=this.opts[l];if(this.conf[l],r=o.mmenu.glbl,"boolean"!=typeof t&&"string"!=typeof t||(t={enable:t}),"object"!=typeof t&&(t={}),(t=this.opts[l]=o.extend(!0,{},o.mmenu.defaults[l],t)).enable){var e=o('