From 1bc0c5c14bc35239bedf32efdec02854e825e4f2 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Tue, 5 May 2020 23:06:17 +0200 Subject: [PATCH] Update jquery to version 3.5.1 --- package.json | 4 ++-- public/assets/js/all-js.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 33d3d50e5..a228fbf6a 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "devDependencies": { "axios": "^0.19", "cross-env": "^7.0.2", - "jquery": "3.4.1", + "jquery": "3.5.1", "laravel-mix": "^5.0.4", "lodash": "^4.17.15", "popper.js": "^1.16.1", @@ -35,7 +35,7 @@ "icheck": "^1.0.2", "jquery-colorbox": "^1.6.4", "jquery-goup": "^1.1.3", - "jquery-migrate": "3.1.0", + "jquery-migrate": "3.3.0", "nonblockjs": "^1.0.8", "normalize.css": "^8.0.1", "pace-js": "^1.0.2", diff --git a/public/assets/js/all-js.js b/public/assets/js/all-js.js index a518f4ced..0bf2f3bca 100644 --- a/public/assets/js/all-js.js +++ b/public/assets/js/all-js.js @@ -1 +1 @@ -var l,a;!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(e,t){"use strict";var n=[],r=e.document,o=Object.getPrototypeOf,i=n.slice,c=n.concat,a=n.push,s=n.indexOf,l={},u=l.toString,h=l.hasOwnProperty,f=h.toString,d=f.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},p=function(e){return null!=e&&e===e.window},g={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var o,i,c=(n=n||r).createElement("script");if(c.text=e,t)for(o in g)(i=t[o]||t.getAttribute&&t.getAttribute(o))&&c.setAttribute(o,i);n.head.appendChild(c).parentNode.removeChild(c)}function z(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[u.call(e)]||"object":typeof e}var y="3.4.1",C=function(e,t){return new C.fn.init(e,t)},M=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function w(e){var t=!!e&&"length"in e&&e.length,n=z(e);return!v(e)&&!p(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+I+")"+I+"*"),U=new RegExp(I+"|>"),W=new RegExp(B),Z=new RegExp("^"+P+"$"),Y={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,G=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},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},ie=function(){f()},ce=ye(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{E.apply(k=D.call(C.childNodes),C.childNodes),k[C.childNodes.length].nodeType}catch(t){E={apply:k.length?function(e,t){T.apply(e,D.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(e,t,r,o){var i,a,l,u,h,m,g,b=t&&t.ownerDocument,M=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==M&&9!==M&&11!==M)return r;if(!o&&((t?t.ownerDocument||t:C)!==d&&f(t),t=t||d,v)){if(11!==M&&(h=J.exec(e)))if(i=h[1]){if(9===M){if(!(l=t.getElementById(i)))return r;if(l.id===i)return r.push(l),r}else if(b&&(l=b.getElementById(i))&&z(t,l)&&l.id===i)return r.push(l),r}else{if(h[2])return E.apply(r,t.getElementsByTagName(e)),r;if((i=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return E.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!S[e+" "]&&(!p||!p.test(e))&&(1!==M||"object"!==t.nodeName.toLowerCase())){if(g=e,b=t,1===M&&U.test(e)){for((u=t.getAttribute("id"))?u=u.replace(re,oe):t.setAttribute("id",u=y),a=(m=c(e)).length;a--;)m[a]="#"+u+" "+ze(m[a]);g=m.join(","),b=ee.test(e)&&ge(t.parentNode)||t}try{return E.apply(r,b.querySelectorAll(g)),r}catch(t){S(e,!0)}finally{u===y&&t.removeAttribute("id")}}}return s(e.replace(F,"$1"),t,r,o)}function se(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function le(e){return e[y]=!0,e}function ue(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function me(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ve(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ce(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function pe(e){return le(function(t){return t=+t,le(function(n,r){for(var o,i=e([],n.length,t),c=i.length;c--;)n[o=i[c]]&&(n[o]=!(r[o]=n[o]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},i=ae.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!X.test(t||n&&n.nodeName||"HTML")},f=ae.setDocument=function(e){var t,o,c=e?e.ownerDocument||e:C;return c!==d&&9===c.nodeType&&c.documentElement&&(m=(d=c).documentElement,v=!i(d),C!==d&&(o=d.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ue(function(e){return m.appendChild(e).id=y,!d.getElementsByName||!d.getElementsByName(y).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&v)return t.getElementsByClassName(e)},g=[],p=[],(n.qsa=K.test(d.querySelectorAll))&&(ue(function(e){m.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&p.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||p.push("\\["+I+"*(?:value|"+O+")"),e.querySelectorAll("[id~="+y+"-]").length||p.push("~="),e.querySelectorAll(":checked").length||p.push(":checked"),e.querySelectorAll("a#"+y+"+*").length||p.push(".#.+[+~]")}),ue(function(e){e.innerHTML="";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&p.push("name"+I+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&p.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),p.push(",.*:")})),(n.matchesSelector=K.test(b=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),g.push("!=",B)}),p=p.length&&new RegExp(p.join("|")),g=g.length&&new RegExp(g.join("|")),t=K.test(m.compareDocumentPosition),z=t||K.test(m.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},L=t?function(e,t){if(e===t)return h=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===C&&z(C,e)?-1:t===d||t.ownerDocument===C&&z(C,t)?1:u?N(u,e)-N(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,c=[e],a=[t];if(!o||!i)return e===d?-1:t===d?1:o?-1:i?1:u?N(u,e)-N(u,t):0;if(o===i)return fe(e,t);for(n=e;n=n.parentNode;)c.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;c[r]===a[r];)r++;return r?fe(c[r],a[r]):c[r]===C?-1:a[r]===C?1:0}),d},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&f(e),n.matchesSelector&&v&&!S[t+" "]&&(!g||!g.test(t))&&(!p||!p.test(t)))try{var r=b.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){S(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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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 Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=c(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(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&_(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=ae.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function k(e,t,n){return v(t)?C.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?C.grep(e,function(e){return e===t!==n}):"string"!=typeof t?C.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var o,i;if(!e)return this;if(n=n||A,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:T.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),V.test(o[1])&&C.isPlainObject(t))for(o in t)v(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(i=r.getElementById(o[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,A=C(r);var E=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i,ve={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function pe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&L(e,t)?C.merge([e],n):n}function ge(e,t){for(var n=0,r=e.length;nx",m.noCloneChecked=!!be.cloneNode(!0).lastChild.defaultValue;var Me=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_e=/^([^.]*)(?:\.(.+)|)/;function xe(){return!0}function He(){return!1}function Se(e,t){return e===function(){try{return r.activeElement}catch(e){}}()==("focus"===t)}function Le(e,t,n,r,o,i){var c,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,a,n,r,t[a],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=He;else if(!o)return e;return 1===i&&(c=o,(o=function(e){return C().off(e),c.apply(this,arguments)}).guid=c.guid||(c.guid=C.guid++)),e.each(function(){C.event.add(this,t,o,r,n)})}function Ve(e,t,n){n?(G.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var r,o,c=G.get(this,t);if(1&e.isTrigger&&this[t]){if(c.length)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(c=i.call(arguments),G.set(this,t,c),r=n(this,t),this[t](),c!==(o=G.get(this,t))||r?G.set(this,t,!1):o={},c!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else c.length&&(G.set(this,t,{value:C.event.trigger(C.extend(c[0],C.Event.prototype),c.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===G.get(e,t)&&C.event.add(e,t,xe)}C.event={global:{},add:function(e,t,n,r,o){var i,c,a,s,l,u,h,f,d,m,v,p=G.get(e);if(p)for(n.handler&&(n=(i=n).handler,o=i.selector),o&&C.find.matchesSelector(oe,o),n.guid||(n.guid=C.guid++),(s=p.events)||(s=p.events={}),(c=p.handle)||(c=p.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(O)||[""]).length;l--;)d=v=(a=_e.exec(t[l])||[])[1],m=(a[2]||"").split(".").sort(),d&&(h=C.event.special[d]||{},d=(o?h.delegateType:h.bindType)||d,h=C.event.special[d]||{},u=C.extend({type:d,origType:v,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&C.expr.match.needsContext.test(o),namespace:m.join(".")},i),(f=s[d])||((f=s[d]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,r,m,c)||e.addEventListener&&e.addEventListener(d,c)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,u):f.push(u),C.event.global[d]=!0)},remove:function(e,t,n,r,o){var i,c,a,s,l,u,h,f,d,m,v,p=G.hasData(e)&&G.get(e);if(p&&(s=p.events)){for(l=(t=(t||"").match(O)||[""]).length;l--;)if(d=v=(a=_e.exec(t[l])||[])[1],m=(a[2]||"").split(".").sort(),d){for(h=C.event.special[d]||{},f=s[d=(r?h.delegateType:h.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),c=i=f.length;i--;)u=f[i],!o&&v!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(i,1),u.selector&&f.delegateCount--,h.remove&&h.remove.call(e,u));c&&!f.length&&(h.teardown&&!1!==h.teardown.call(e,m,p.handle)||C.removeEvent(e,d,p.handle),delete s[d])}else for(d in s)C.event.remove(e,d+t[l],n,r,!0);C.isEmptyObject(s)&&G.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,c,a=C.event.fix(e),s=new Array(arguments.length),l=(G.get(this,"events")||{})[a.type]||[],u=C.event.special[a.type]||{};for(s[0]=a,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,Ae=/\s*$/g;function De(e,t){return L(e,"table")&&L(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ie(e,t){var n,r,o,i,c,a,s,l;if(1===t.nodeType){if(G.hasData(e)&&(i=G.access(e),c=G.set(t,i),l=i.events))for(o in delete c.handle,c.events={},l)for(n=0,r=l[o].length;n")},clone:function(e,t,n){var r,o,i,c,a,s,l,u=e.cloneNode(!0),h=ie(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(c=pe(u),r=0,o=(i=pe(e)).length;r").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}});var Zt,Yt=[],Xt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Yt.pop()||C.expando+"_"+xt++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(t,n,r){var o,i,c,a=!1!==t.jsonp&&(Xt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Xt,"$1"+o):!1!==t.jsonp&&(t.url+=(Ht.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return c||C.error(o+" was not called"),c[0]},t.dataTypes[0]="json",i=e[o],e[o]=function(){c=arguments},r.always(function(){void 0===i?C(e).removeProp(o):e[o]=i,t[o]&&(t.jsonpCallback=n.jsonpCallback,Yt.push(o)),c&&v(i)&&i(c[0]),c=i=void 0}),"script"}),m.createHTMLDocument=((Zt=r.implementation.createHTMLDocument("").body).innerHTML="
",2===Zt.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((o=(t=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,t.head.appendChild(o)):t=r),c=!n&&[],(i=V.exec(e))?[t.createElement(i[1])]:(i=Ce([e],t,c),c&&c.length&&C(c).remove(),C.merge([],i.childNodes)));var o,i,c},C.fn.load=function(e,t,n){var r,o,i,c=this,a=e.indexOf(" ");return-1").append(C.parseHTML(e)).find(r):e)}).always(n&&function(e,t){c.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.expr.pseudos.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(e,t,n){var r,o,i,c,a,s,l=C.css(e,"position"),u=C(e),h={};"static"===l&&(e.style.position="relative"),a=u.offset(),i=C.css(e,"top"),s=C.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(i+s).indexOf("auto")?(c=(r=u.position()).top,o=r.left):(c=parseFloat(i)||0,o=parseFloat(s)||0),v(t)&&(t=t.call(e,n,C.extend({},a))),null!=t.top&&(h.top=t.top-a.top+c),null!=t.left&&(h.left=t.left-a.left+o),"using"in t?t.using.call(e,h):u.css(h)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===C.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),o.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-C.css(r,"marginTop",!0),left:t.left-o.left-C.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||oe})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;C.fn[e]=function(r){return $(this,function(e,r,o){var i;if(p(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o},e,r,arguments.length)}}),C.each(["top","left"],function(e,t){C.cssHooks[t]=qe(m.pixelPosition,function(e,n){if(n)return n=$e(e,t),Be.test(n)?C(e).position()[t]+"px":n})}),C.each({Height:"height",Width:"width"},function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){C.fn[r]=function(o,i){var c=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===i?"margin":"border");return $(this,function(t,n,o){var i;return p(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?C.css(t,n,a):C.style(t,n,o,a)},t,c?o:void 0,c)}})}),C.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,t){C.fn[t]=function(e,n){return 0+o[i])return 1;if(+r[i]<+o[i])return-1}return 0}(e.fn.jquery,t)}e.migrateVersion="3.1.0",t.console&&t.console.log&&(e&&n("3.0.0")||t.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),e.migrateWarnings&&t.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),t.console.log("JQMIGRATE: Migrate is installed"+(e.migrateMute?"":" with logging active")+", version "+e.migrateVersion));var r={};function o(n){var o=t.console;r[n]||(r[n]=!0,e.migrateWarnings.push(n),o&&o.warn&&!e.migrateMute&&(o.warn("JQMIGRATE: "+n),e.migrateTrace&&o.trace&&o.trace()))}function i(e,t,n,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return o(r),n},set:function(e){o(r),n=e}})}function c(e,t,n,r){e[t]=function(){return o(r),n.apply(this,arguments)}}e.migrateWarnings=[],void 0===e.migrateTrace&&(e.migrateTrace=!0),e.migrateReset=function(){r={},e.migrateWarnings.length=0},"BackCompat"===t.document.compatMode&&o("jQuery is not compatible with Quirks Mode");var a,s=e.fn.init,l=e.isNumeric,u=e.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,f=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g;for(a in e.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(o("jQuery( '#' ) is not a valid selector"),t[0]=[]),s.apply(this,t)},e.fn.init.prototype=e.fn,e.find=function(e){var n=Array.prototype.slice.call(arguments);if("string"==typeof e&&h.test(e))try{t.document.querySelector(e)}catch(r){e=e.replace(f,function(e,t,n,r){return"["+t+n+'"'+r+'"]'});try{t.document.querySelector(e),o("Attribute selector with '#' must be quoted: "+n[0]),n[0]=e}catch(e){o("Attribute selector with '#' was not fixed: "+n[0])}}return u.apply(this,n)},u)Object.prototype.hasOwnProperty.call(u,a)&&(e.find[a]=u[a]);e.fn.size=function(){return o("jQuery.fn.size() is deprecated and removed; use the .length property"),this.length},e.parseJSON=function(){return o("jQuery.parseJSON is deprecated; use JSON.parse"),JSON.parse.apply(null,arguments)},e.isNumeric=function(t){var n,r,i=l(t),c=(r=(n=t)&&n.toString(),!e.isArray(n)&&0<=r-parseFloat(r)+1);return i!==c&&o("jQuery.isNumeric() should not be called on constructed objects"),c},n("3.3.0")&&c(e,"isWindow",function(e){return null!=e&&e===e.window},"jQuery.isWindow() is deprecated"),c(e,"holdReady",e.holdReady,"jQuery.holdReady is deprecated"),c(e,"unique",e.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),i(e.expr,"filters",e.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),i(e.expr,":",e.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),n("3.2.0")&&c(e,"nodeName",e.nodeName,"jQuery.nodeName is deprecated");var d=e.ajax;e.ajax=function(){var e=d.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e};var m=e.fn.removeAttr,v=e.fn.toggleClass,p=/\S+/g;e.fn.removeAttr=function(t){var n=this;return e.each(t.match(p),function(t,r){e.expr.match.bool.test(r)&&(o("jQuery.fn.removeAttr no longer sets boolean properties: "+r),n.prop(r,!1))}),m.apply(this,arguments)};var g=!(e.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?v.apply(this,arguments):(o("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var n=this.getAttribute&&this.getAttribute("class")||"";n&&e.data(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":e.data(this,"__className__")||"")}))});e.swap&&e.each(["height","width","reliableMarginRight"],function(t,n){var r=e.cssHooks[n]&&e.cssHooks[n].get;r&&(e.cssHooks[n].get=function(){var e;return g=!0,e=r.apply(this,arguments),g=!1,e})}),e.swap=function(e,t,n,r){var i,c,a={};for(c in g||o("jQuery.swap() is undocumented and deprecated"),t)a[c]=e.style[c],e.style[c]=t[c];for(c in i=n.apply(e,r||[]),t)e.style[c]=a[c];return i};var b=e.data;function z(e){return e}e.data=function(t,n,r){var i;if(n&&"object"==typeof n&&2===arguments.length){i=e.hasData(t)&&b.call(this,t);var c={};for(var a in n)a!==e.camelCase(a)?(o("jQuery.data() always sets/gets camelCased names: "+a),i[a]=n[a]):c[a]=n[a];return b.call(this,t,c),n}return n&&"string"==typeof n&&n!==e.camelCase(n)&&(i=e.hasData(t)&&b.call(this,t))&&n in i?(o("jQuery.data() always sets/gets camelCased names: "+n),2=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};l.jQueryDetection(),t.fn.emulateTransitionEnd=s,t.event.special[l.TRANSITION_END]={bindType:a,delegateType:a,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var u=t.fn.alert,h={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},f="alert",d="fade",m="show",v=function(){function e(e){this._element=e}var n=e.prototype;return n.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},n.dispose=function(){t.removeData(this._element,"bs.alert"),this._element=null},n._getRootElement=function(e){var n=l.getSelectorFromElement(e),r=!1;return n&&(r=document.querySelector(n)),r||(r=t(e).closest("."+f)[0]),r},n._triggerCloseEvent=function(e){var n=t.Event(h.CLOSE);return t(e).trigger(n),n},n._removeElement=function(e){var n=this;if(t(e).removeClass(m),t(e).hasClass(d)){var r=l.getTransitionDurationFromElement(e);t(e).one(l.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(r)}else this._destroyElement(e)},n._destroyElement=function(e){t(e).detach().trigger(h.CLOSED).remove()},e._jQueryInterface=function(n){return this.each(function(){var r=t(this),o=r.data("bs.alert");o||(o=new e(this),r.data("bs.alert",o)),"close"===n&&o[n](this)})},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},r(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',v._handleDismiss(new v)),t.fn.alert=v._jQueryInterface,t.fn.alert.Constructor=v,t.fn.alert.noConflict=function(){return t.fn.alert=u,v._jQueryInterface};var p=t.fn.button,g="active",b="btn",z="focus",y='[data-toggle^="button"]',C='[data-toggle="buttons"]',M='[data-toggle="button"]',w='[data-toggle="buttons"] .btn',_='input:not([type="hidden"])',x=".active",H=".btn",S={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api",LOAD_DATA_API:"load.bs.button.data-api"},L=function(){function e(e){this._element=e}var n=e.prototype;return n.toggle=function(){var e=!0,n=!0,r=t(this._element).closest(C)[0];if(r){var o=this._element.querySelector(_);if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains(g))e=!1;else{var i=r.querySelector(x);i&&t(i).removeClass(g)}else"checkbox"===o.type?"LABEL"===this._element.tagName&&o.checked===this._element.classList.contains(g)&&(e=!1):e=!1;e&&(o.checked=!this._element.classList.contains(g),t(o).trigger("change")),o.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(g)),e&&t(this._element).toggleClass(g))},n.dispose=function(){t.removeData(this._element,"bs.button"),this._element=null},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.button");r||(r=new e(this),t(this).data("bs.button",r)),"toggle"===n&&r[n]()})},r(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(S.CLICK_DATA_API,y,function(e){var n=e.target;if(t(n).hasClass(b)||(n=t(n).closest(H)[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))e.preventDefault();else{var r=n.querySelector(_);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void e.preventDefault();L._jQueryInterface.call(t(n),"toggle")}}).on(S.FOCUS_BLUR_DATA_API,y,function(e){var n=t(e.target).closest(H)[0];t(n).toggleClass(z,/^focus(in)?$/.test(e.type))}),t(window).on(S.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(w)),t=0,n=e.length;t0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=e.prototype;return n.next=function(){this._isSliding||this._slide(D)},n.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(N)},n.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(Z.NEXT_PREV)&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(e){var n=this;this._activeElement=this._element.querySelector(Z.ACTIVE_ITEM);var r=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(P.SLID,function(){return n.to(e)});else{if(r===e)return this.pause(),void this.cycle();var o=e>r?D:N;this._slide(o,this._items[e])}},n.dispose=function(){t(this._element).off(k),t.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(e){return e=c({},T,{},e),l.typeCheckConfig(V,e,E),e},n._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},n._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(P.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&t(this._element).on(P.MOUSEENTER,function(t){return e.pause(t)}).on(P.MOUSELEAVE,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var n=function(t){e._pointerEvent&&Y[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},r=function(t){e._pointerEvent&&Y[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval))};t(this._element.querySelectorAll(Z.ITEM_IMG)).on(P.DRAG_START,function(e){return e.preventDefault()}),this._pointerEvent?(t(this._element).on(P.POINTERDOWN,function(e){return n(e)}),t(this._element).on(P.POINTERUP,function(e){return r(e)}),this._element.classList.add(W)):(t(this._element).on(P.TOUCHSTART,function(e){return n(e)}),t(this._element).on(P.TOUCHMOVE,function(t){return function(t){t.originalEvent.touches&&t.originalEvent.touches.length>1?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX}(t)}),t(this._element).on(P.TOUCHEND,function(e){return r(e)}))}},n._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},n._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(Z.ITEM)):[],this._items.indexOf(e)},n._getItemByDirection=function(e,t){var n=e===D,r=e===N,o=this._getItemIndex(t),i=this._items.length-1;if((r&&0===o||n&&o===i)&&!this._config.wrap)return t;var c=(o+(e===N?-1:1))%this._items.length;return-1===c?this._items[this._items.length-1]:this._items[c]},n._triggerSlideEvent=function(e,n){var r=this._getItemIndex(e),o=this._getItemIndex(this._element.querySelector(Z.ACTIVE_ITEM)),i=t.Event(P.SLIDE,{relatedTarget:e,direction:n,from:o,to:r});return t(this._element).trigger(i),i},n._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(Z.ACTIVE));t(n).removeClass(B);var r=this._indicatorsElement.children[this._getItemIndex(e)];r&&t(r).addClass(B)}},n._slide=function(e,n){var r,o,i,c=this,a=this._element.querySelector(Z.ACTIVE_ITEM),s=this._getItemIndex(a),u=n||a&&this._getItemByDirection(e,a),h=this._getItemIndex(u),f=Boolean(this._interval);if(e===D?(r=$,o=q,i=O):(r=F,o=U,i=I),u&&t(u).hasClass(B))this._isSliding=!1;else if(!this._triggerSlideEvent(u,i).isDefaultPrevented()&&a&&u){this._isSliding=!0,f&&this.pause(),this._setActiveIndicatorElement(u);var d=t.Event(P.SLID,{relatedTarget:u,direction:i,from:s,to:h});if(t(this._element).hasClass(j)){t(u).addClass(o),l.reflow(u),t(a).addClass(r),t(u).addClass(r);var m=parseInt(u.getAttribute("data-interval"),10);m?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=m):this._config.interval=this._config.defaultInterval||this._config.interval;var v=l.getTransitionDurationFromElement(a);t(a).one(l.TRANSITION_END,function(){t(u).removeClass(r+" "+o).addClass(B),t(a).removeClass(B+" "+o+" "+r),c._isSliding=!1,setTimeout(function(){return t(c._element).trigger(d)},0)}).emulateTransitionEnd(v)}else t(a).removeClass(B),t(u).addClass(B),this._isSliding=!1,t(this._element).trigger(d);f&&this.cycle()}},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.carousel"),o=c({},T,{},t(this).data());"object"==typeof n&&(o=c({},o,{},n));var i="string"==typeof n?n:o.slide;if(r||(r=new e(this,o),t(this).data("bs.carousel",r)),"number"==typeof n)r.to(n);else if("string"==typeof i){if(void 0===r[i])throw new TypeError('No method named "'+i+'"');r[i]()}else o.interval&&o.ride&&(r.pause(),r.cycle())})},e._dataApiClickHandler=function(n){var r=l.getSelectorFromElement(this);if(r){var o=t(r)[0];if(o&&t(o).hasClass(R)){var i=c({},t(o).data(),{},t(this).data()),a=this.getAttribute("data-slide-to");a&&(i.interval=!1),e._jQueryInterface.call(t(o),i),a&&t(o).data("bs.carousel").to(a),n.preventDefault()}}},r(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return T}}]),e}();t(document).on(P.CLICK_DATA_API,Z.DATA_SLIDE,X._dataApiClickHandler),t(window).on(P.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(Z.DATA_RIDE)),n=0,r=e.length;n0&&(this._selector=c,this._triggerArray.push(i))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=e.prototype;return n.toggle=function(){t(this._element).hasClass(te)?this.hide():this.show()},n.show=function(){var n,r,o=this;if(!this._isTransitioning&&!t(this._element).hasClass(te)&&(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(ae.ACTIVES)).filter(function(e){return"string"==typeof o._config.parent?e.getAttribute("data-parent")===o._config.parent:e.classList.contains(ne)})).length&&(n=null),!(n&&(r=t(n).not(this._selector).data("bs.collapse"))&&r._isTransitioning))){var i=t.Event(ee.SHOW);if(t(this._element).trigger(i),!i.isDefaultPrevented()){n&&(e._jQueryInterface.call(t(n).not(this._selector),"hide"),r||t(n).data("bs.collapse",null));var c=this._getDimension();t(this._element).removeClass(ne).addClass(re),this._element.style[c]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(oe).attr("aria-expanded",!0),this.setTransitioning(!0);var a="scroll"+(c[0].toUpperCase()+c.slice(1)),s=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,function(){t(o._element).removeClass(re).addClass(ne).addClass(te),o._element.style[c]="",o.setTransitioning(!1),t(o._element).trigger(ee.SHOWN)}).emulateTransitionEnd(s),this._element.style[c]=this._element[a]+"px"}}},n.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(te)){var n=t.Event(ee.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension();this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",l.reflow(this._element),t(this._element).addClass(re).removeClass(ne).removeClass(te);var o=this._triggerArray.length;if(o>0)for(var i=0;i=0)return 1;return 0}();var he=le&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ue))}};function fe(e){return e&&"[object Function]"==={}.toString.call(e)}function de(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function me(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function ve(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=de(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:ve(me(e))}function pe(e){return e&&e.referenceNode?e.referenceNode:e}var ge=le&&!(!window.MSInputMethodContext||!document.documentMode),be=le&&/MSIE 10/.test(navigator.userAgent);function ze(e){return 11===e?ge:10===e?be:ge||be}function ye(e){if(!e)return document.documentElement;for(var t=ze(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===de(n,"position")?ye(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ce(e){return null!==e.parentNode?Ce(e.parentNode):e}function Me(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var c,a,s=i.commonAncestorContainer;if(e!==s&&t!==s||r.contains(o))return"BODY"===(a=(c=s).nodeName)||"HTML"!==a&&ye(c.firstElementChild)!==c?ye(s):s;var l=Ce(e);return l.host?Me(l.host,t):Me(e,Ce(t).host)}function we(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function _e(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function xe(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ze(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function He(e){var t=e.body,n=e.documentElement,r=ze(10)&&getComputedStyle(n);return{height:xe("Height",t,n,r),width:xe("Width",t,n,r)}}var Se=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Le=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=ze(10),o="HTML"===t.nodeName,i=Te(e),c=Te(t),a=ve(e),s=de(t),l=parseFloat(s.borderTopWidth,10),u=parseFloat(s.borderLeftWidth,10);n&&o&&(c.top=Math.max(c.top,0),c.left=Math.max(c.left,0));var h=Ae({top:i.top-c.top-l,left:i.left-c.left-u,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var f=parseFloat(s.marginTop,10),d=parseFloat(s.marginLeft,10);h.top-=l-f,h.bottom-=l-f,h.left-=u-d,h.right-=u-d,h.marginTop=f,h.marginLeft=d}return(r&&!n?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=we(t,"top"),o=we(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(h,t)),h}function De(e){if(!e||!e.parentElement||ze())return document.documentElement;for(var t=e.parentElement;t&&"none"===de(t,"transform");)t=t.parentElement;return t||document.documentElement}function Ne(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},c=o?De(e):Me(e,pe(t));if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Ee(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),c=t?0:we(n),a=t?0:we(n,"left");return Ae({top:c-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:o,height:i})}(c,o);else{var a=void 0;"scrollParent"===r?"BODY"===(a=ve(me(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===r?e.ownerDocument.documentElement:r;var s=Ee(a,c,o);if("HTML"!==a.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===de(t,"position"))return!0;var r=me(t);return!!r&&e(r)}(c))i=s;else{var l=He(e.ownerDocument),u=l.height,h=l.width;i.top+=s.top-s.marginTop,i.bottom=u+s.top,i.left+=s.left-s.marginLeft,i.right=h+s.left}}var f="number"==typeof(n=n||0);return i.left+=f?n:n.left||0,i.top+=f?n:n.top||0,i.right-=f?n:n.right||0,i.bottom-=f?n:n.bottom||0,i}function Oe(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var c=Ne(n,r,i,o),a={top:{width:c.width,height:t.top-c.top},right:{width:c.right-t.right,height:c.height},bottom:{width:c.width,height:c.bottom-t.bottom},left:{width:t.left-c.left,height:c.height}},s=Object.keys(a).map(function(e){return ke({key:e},a[e],{area:(t=a[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),l=s.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),u=l.length>0?l[0].key:s[0].key,h=e.split("-")[1];return u+(h?"-"+h:"")}function Ie(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Ee(n,r?De(t):Me(t,pe(n)),r)}function Pe(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Re(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function Be(e,t,n){n=n.split("-")[0];var r=Pe(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),c=i?"top":"left",a=i?"left":"top",s=i?"height":"width",l=i?"width":"height";return o[c]=t[c]+t[s]/2-r[s]/2,o[a]=n===a?t[a]-r[l]:t[Re(a)],o}function je(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Fe(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=je(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&fe(n)&&(t.offsets.popper=Ae(t.offsets.popper),t.offsets.reference=Ae(t.offsets.reference),t=n(t,e))}),t}function $e(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function qe(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=Je.indexOf(e),r=Je.slice(n+1).concat(Je.slice(0,n));return t?r.reverse():r}var tt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function nt(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),c=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=c.indexOf(je(c,function(e){return-1!==e.search(/,|\s/)}));c[a]&&-1===c[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,l=-1!==a?[c.slice(0,a).concat([c[a].split(s)[0]]),[c[a].split(s)[1]].concat(c.slice(a+1))]:[c];return(l=l.map(function(e,r){var o=(1===r?!i:i)?"height":"width",c=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,c=!0,e):c?(e[e.length-1]+=t,c=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],c=o[2];if(!i)return e;if(0===c.indexOf("%")){var a=void 0;switch(c){case"%p":a=n;break;case"%":case"%r":default:a=r}return Ae(a)[t]/100*i}if("vh"===c||"vw"===c)return("vh"===c?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){Ye(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var rt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,c=o.popper,a=-1!==["bottom","top"].indexOf(n),s=a?"left":"top",l=a?"width":"height",u={start:Ve({},s,i[s]),end:Ve({},s,i[s]+i[l]-c[l])};e.offsets.popper=ke({},c,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,c=o.reference,a=r.split("-")[0],s=void 0;return s=Ye(+n)?[+n,0]:nt(n,i,c,a),"left"===a?(i.top+=s[0],i.left-=s[1]):"right"===a?(i.top+=s[0],i.left+=s[1]):"top"===a?(i.left+=s[0],i.top-=s[1]):"bottom"===a&&(i.left+=s[0],i.top+=s[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||ye(e.instance.popper);e.instance.reference===n&&(n=ye(n));var r=qe("transform"),o=e.instance.popper.style,i=o.top,c=o.left,a=o[r];o.top="",o.left="",o[r]="";var s=Ne(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=c,o[r]=a,t.boundaries=s;var l=t.priority,u=e.offsets.popper,h={primary:function(e){var n=u[e];return u[e]s[e]&&!t.escapeWithReference&&(r=Math.min(u[n],s[e]-("right"===e?u.width:u.height))),Ve({},n,r)}};return l.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=ke({},u,h[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,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,c=-1!==["top","bottom"].indexOf(o),a=c?"right":"bottom",s=c?"left":"top",l=c?"width":"height";return n[a]i(r[a])&&(e.offsets.popper[s]=i(r[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Qe(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,c=i.popper,a=i.reference,s=-1!==["left","right"].indexOf(o),l=s?"height":"width",u=s?"Top":"Left",h=u.toLowerCase(),f=s?"left":"top",d=s?"bottom":"right",m=Pe(r)[l];a[d]-mc[d]&&(e.offsets.popper[h]+=a[h]+m-c[d]),e.offsets.popper=Ae(e.offsets.popper);var v=a[h]+a[l]/2-m/2,p=de(e.instance.popper),g=parseFloat(p["margin"+u],10),b=parseFloat(p["border"+u+"Width"],10),z=v-e.offsets.popper[h]-g-b;return z=Math.max(Math.min(c[l]-m,z),0),e.arrowElement=r,e.offsets.arrow=(Ve(n={},h,Math.round(z)),Ve(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if($e(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Ne(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Re(r),i=e.placement.split("-")[1]||"",c=[];switch(t.behavior){case tt.FLIP:c=[r,o];break;case tt.CLOCKWISE:c=et(r);break;case tt.COUNTERCLOCKWISE:c=et(r,!0);break;default:c=t.behavior}return c.forEach(function(a,s){if(r!==a||c.length===s+1)return e;r=e.placement.split("-")[0],o=Re(r);var l=e.offsets.popper,u=e.offsets.reference,h=Math.floor,f="left"===r&&h(l.right)>h(u.left)||"right"===r&&h(l.left)h(u.top)||"bottom"===r&&h(l.top)h(n.right),v=h(l.top)h(n.bottom),g="left"===r&&d||"right"===r&&m||"top"===r&&v||"bottom"===r&&p,b=-1!==["top","bottom"].indexOf(r),z=!!t.flipVariations&&(b&&"start"===i&&d||b&&"end"===i&&m||!b&&"start"===i&&v||!b&&"end"===i&&p),y=!!t.flipVariationsByContent&&(b&&"start"===i&&m||b&&"end"===i&&d||!b&&"start"===i&&p||!b&&"end"===i&&v),C=z||y;(f||g||C)&&(e.flipped=!0,(f||g)&&(r=c[s+1]),C&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=ke({},e.offsets.popper,Be(e.instance.popper,e.offsets.reference,e.placement)),e=Fe(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,c=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[c?"left":"top"]=i[n]-(a?o[c?"width":"height"]:0),e.placement=Re(t),e.offsets.popper=Ae(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Qe(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=je(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};Se(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=he(this.update.bind(this)),this.options=ke({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ke({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=ke({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ke({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&fe(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return Le(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Ie(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Oe(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Be(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Fe(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,$e(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[qe("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=We(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return Ze.call(this)}}]),e}();ot.Utils=("undefined"!=typeof window?window:global).PopperUtils,ot.placements=Ke,ot.Defaults=rt;var it="dropdown",ct=t.fn[it],at=new RegExp("38|40|27"),st={HIDE:"hide.bs.dropdown",HIDDEN:"hidden.bs.dropdown",SHOW:"show.bs.dropdown",SHOWN:"shown.bs.dropdown",CLICK:"click.bs.dropdown",CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},lt="disabled",ut="show",ht="dropup",ft="dropright",dt="dropleft",mt="dropdown-menu-right",vt="position-static",pt='[data-toggle="dropdown"]',gt=".dropdown form",bt=".dropdown-menu",zt=".navbar-nav",yt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ct="top-start",Mt="top-end",wt="bottom-start",_t="bottom-end",xt="right-start",Ht="left-start",St={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Lt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},Vt=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var n=e.prototype;return n.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(lt)){var n=t(this._menu).hasClass(ut);e._clearMenus(),n||this.show(!0)}},n.show=function(n){if(void 0===n&&(n=!1),!(this._element.disabled||t(this._element).hasClass(lt)||t(this._menu).hasClass(ut))){var r={relatedTarget:this._element},o=t.Event(st.SHOW,r),i=e._getParentFromElement(this._element);if(t(i).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&n){if(void 0===ot)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var c=this._element;"parent"===this._config.reference?c=i:l.isElement(this._config.reference)&&(c=this._config.reference,void 0!==this._config.reference.jquery&&(c=this._config.reference[0])),"scrollParent"!==this._config.boundary&&t(i).addClass(vt),this._popper=new ot(c,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(i).closest(zt).length&&t(document.body).children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(ut),t(i).toggleClass(ut).trigger(t.Event(st.SHOWN,r))}}},n.hide=function(){if(!this._element.disabled&&!t(this._element).hasClass(lt)&&t(this._menu).hasClass(ut)){var n={relatedTarget:this._element},r=t.Event(st.HIDE,n),o=e._getParentFromElement(this._element);t(o).trigger(r),r.isDefaultPrevented()||(this._popper&&this._popper.destroy(),t(this._menu).toggleClass(ut),t(o).toggleClass(ut).trigger(t.Event(st.HIDDEN,n)))}},n.dispose=function(){t.removeData(this._element,"bs.dropdown"),t(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},n.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},n._addEventListeners=function(){var e=this;t(this._element).on(st.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},n._getConfig=function(e){return e=c({},this.constructor.Default,{},t(this._element).data(),{},e),l.typeCheckConfig(it,e,this.constructor.DefaultType),e},n._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(bt))}return this._menu},n._getPlacement=function(){var e=t(this._element.parentNode),n=wt;return e.hasClass(ht)?(n=Ct,t(this._menu).hasClass(mt)&&(n=Mt)):e.hasClass(ft)?n=xt:e.hasClass(dt)?n=Ht:t(this._menu).hasClass(mt)&&(n=_t),n},n._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},n._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=c({},t.offsets,{},e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},n._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),c({},e,{},this._config.popperConfig)},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.dropdown");if(r||(r=new e(this,"object"==typeof n?n:null),t(this).data("bs.dropdown",r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},e._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var r=[].slice.call(document.querySelectorAll(pt)),o=0,i=r.length;o0&&c--,40===n.which&&cdocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._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:qt,popperConfig:null},tn="show",nn="out",rn={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},on="fade",cn="show",an=".tooltip-inner",sn=".arrow",ln="hover",un="focus",hn="click",fn="manual",dn=function(){function e(e,t){if(void 0===ot)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 n=e.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,r=t(e.currentTarget).data(n);r||(r=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(t(this.getTipElement()).hasClass(cn))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&t(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},n.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var n=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(n);var r=l.findShadowRoot(this.element),o=t.contains(null!==r?r:this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!o)return;var i=this.getTipElement(),c=l.getUID(this.constructor.NAME);i.setAttribute("id",c),this.element.setAttribute("aria-describedby",c),this.setContent(),this.config.animation&&t(i).addClass(on);var a="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(a);this.addAttachmentClass(s);var u=this._getContainer();t(i).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(i).appendTo(u),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new ot(this.element,i,this._getPopperConfig(s)),t(i).addClass(cn),"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);var h=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===nn&&e._leave(null,e)};if(t(this.tip).hasClass(on)){var f=l.getTransitionDurationFromElement(this.tip);t(this.tip).one(l.TRANSITION_END,h).emulateTransitionEnd(f)}else h()}},n.hide=function(e){var n=this,r=this.getTipElement(),o=t.Event(this.constructor.Event.HIDE),i=function(){n._hoverState!==tn&&r.parentNode&&r.parentNode.removeChild(r),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};if(t(this.element).trigger(o),!o.isDefaultPrevented()){if(t(r).removeClass(cn),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[hn]=!1,this._activeTrigger[un]=!1,this._activeTrigger[ln]=!1,t(this.tip).hasClass(on)){var c=l.getTransitionDurationFromElement(r);t(r).one(l.TRANSITION_END,i).emulateTransitionEnd(c)}else i();this._hoverState=""}},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},n.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},n.setContent=function(){var e=this.getTipElement();this.setElementContent(t(e.querySelectorAll(an)),this.getTitle()),t(e).removeClass(on+" "+cn)},n.setElementContent=function(e,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=Zt(n,this.config.whiteList,this.config.sanitizeFn)),e.html(n)):e.text(n):this.config.html?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text())},n.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},n._getPopperConfig=function(e){var t=this;return c({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:sn},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},n._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=c({},t.offsets,{},e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},n._getContainer=function(){return!1===this.config.container?document.body:l.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},n._getAttachment=function(e){return Jt[e.toUpperCase()]},n._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(n!==fn){var r=n===ln?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,o=n===ln?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(r,e.config.selector,function(t){return e._enter(t)}).on(o,e.config.selector,function(t){return e._leave(t)})}}),this._hideModalHandler=function(){e.element&&e.hide()},t(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=c({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._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",""))},n._enter=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusin"===e.type?un:ln]=!0),t(n.getTipElement()).hasClass(cn)||n._hoverState===tn?n._hoverState=tn:(clearTimeout(n._timeout),n._hoverState=tn,n.config.delay&&n.config.delay.show?n._timeout=setTimeout(function(){n._hoverState===tn&&n.show()},n.config.delay.show):n.show())},n._leave=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusout"===e.type?un:ln]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=nn,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout(function(){n._hoverState===nn&&n.hide()},n.config.delay.hide):n.hide())},n._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},n._getConfig=function(e){var n=t(this.element).data();return Object.keys(n).forEach(function(e){-1!==Qt.indexOf(e)&&delete n[e]}),"number"==typeof(e=c({},this.constructor.Default,{},n,{},"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()),l.typeCheckConfig(Yt,e,this.constructor.DefaultType),e.sanitize&&(e.template=Zt(e.template,e.whiteList,e.sanitizeFn)),e},n._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},n._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(Gt);null!==n&&n.length&&e.removeClass(n.join(""))},n._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},n._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(on),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.tooltip"),o="object"==typeof n&&n;if((r||!/dispose|hide/.test(n))&&(r||(r=new e(this,o),t(this).data("bs.tooltip",r)),"string"==typeof n)){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},r(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return en}},{key:"NAME",get:function(){return Yt}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return rn}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return Kt}}]),e}();t.fn.tooltip=dn._jQueryInterface,t.fn.tooltip.Constructor=dn,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=Xt,dn._jQueryInterface};var mn="popover",vn=t.fn.popover,pn=new RegExp("(^|\\s)bs-popover\\S+","g"),gn=c({},dn.Default,{placement:"right",trigger:"click",content:"",template:''}),bn=c({},dn.DefaultType,{content:"(string|element|function)"}),zn="fade",yn="show",Cn=".popover-header",Mn=".popover-body",wn={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},_n=function(e){var n,o;function i(){return e.apply(this,arguments)||this}o=e,(n=i).prototype=Object.create(o.prototype),n.prototype.constructor=n,n.__proto__=o;var c=i.prototype;return c.isWithContent=function(){return this.getTitle()||this._getContent()},c.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-popover-"+e)},c.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},c.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(Cn),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(e.find(Mn),n),e.removeClass(zn+" "+yn)},c._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},c._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(pn);null!==n&&n.length>0&&e.removeClass(n.join(""))},i._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.popover"),r="object"==typeof e?e:null;if((n||!/dispose|hide/.test(e))&&(n||(n=new i(this,r),t(this).data("bs.popover",n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return gn}},{key:"NAME",get:function(){return mn}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return wn}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return bn}}]),i}(dn);t.fn.popover=_n._jQueryInterface,t.fn.popover.Constructor=_n,t.fn.popover.noConflict=function(){return t.fn.popover=vn,_n._jQueryInterface};var xn="scrollspy",Hn=t.fn[xn],Sn={offset:10,method:"auto",target:""},Ln={offset:"number",method:"string",target:"(string|element)"},Vn={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},kn="dropdown-item",An="active",Tn={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},En="offset",Dn="position",Nn=function(){function e(e,n){var r=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+Tn.NAV_LINKS+","+this._config.target+" "+Tn.LIST_ITEMS+","+this._config.target+" "+Tn.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(Vn.SCROLL,function(e){return r._process(e)}),this.refresh(),this._process()}var n=e.prototype;return n.refresh=function(){var e=this,n=this._scrollElement===this._scrollElement.window?En:Dn,r="auto"===this._config.method?n:this._config.method,o=r===Dn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var n,i=l.getSelectorFromElement(e);if(i&&(n=document.querySelector(i)),n){var c=n.getBoundingClientRect();if(c.width||c.height)return[t(n)[r]().top+o,i]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},n.dispose=function(){t.removeData(this._element,"bs.scrollspy"),t(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(e){if("string"!=typeof(e=c({},Sn,{},"object"==typeof e&&e?e:{})).target){var n=t(e.target).attr("id");n||(n=l.getUID(xn),t(e.target).attr("id",n)),e.target="#"+n}return l.typeCheckConfig(xn,e,Ln),e},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&e>=this._offsets[o]&&(void 0===this._offsets[o+1]||e>>0;n--;)t[n]=e[n];return t}function _e(e){return e.classList?we(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function xe(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function He(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n],";")},"")}function Se(e){return e.size!==ze.size||e.x!==ze.x||e.y!==ze.y||e.rotate!==ze.rotate||e.flipX||e.flipY}function Le(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),c="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(c," ").concat(a)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var Ve={x:0,y:0,width:"100%",height:"100%"};function ke(e){var t=!(1").concat(c.map(Qe).join(""),"")}var Ke=function(){};function Je(e){return"string"==typeof(e.getAttribute?e.getAttribute(w):null)}var et={replace:function(e){var t=e[0],n=e[1].map(function(e){return Qe(e)}).join("\n");if(t.parentNode&&t.outerHTML)t.outerHTML=n+(q.keepOriginalSource&&"svg"!==t.tagName.toLowerCase()?"\x3c!-- ".concat(t.outerHTML," --\x3e"):"");else if(t.parentNode){var r=document.createElement("span");t.parentNode.replaceChild(r,t),r.outerHTML=n}},nest:function(e){var t=e[0],n=e[1];if(~_e(t).indexOf(q.replacementClass))return et.replace(e);var r=new RegExp("".concat(q.familyPrefix,"-.*"));delete n[0].attributes.style,delete n[0].attributes.id;var o=n[0].attributes.class.split(" ").reduce(function(e,t){return t===q.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" ");var i=n.map(function(e){return Qe(e)}).join("\n");t.setAttribute("class",o.toNode.join(" ")),t.setAttribute(w,""),t.innerHTML=i}};function tt(e){e()}function nt(e,t){var n="function"==typeof t?t:Ke;if(0===e.length)n();else{var r=tt;q.mutateApproach===V&&(r=f.requestAnimationFrame||tt),r(function(){var t=!0===q.autoReplaceSvg?et.replace:et[q.autoReplaceSvg]||et.replace,r=Ie.begin("mutate");e.map(t),r(),n()})}}var rt=!1;function ot(){rt=!1}var it=null;function ct(e){if(m&&q.observeMutations){var t=e.treeCallback,n=e.nodeCallback,r=e.pseudoElementsCallback,o=e.observeMutationsRoot,i=void 0===o?d:o;it=new m(function(e){rt||we(e).forEach(function(e){if("childList"===e.type&&0',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'',spinnerTpl:'
',errorTpl:'

{{ERROR}}

',btnTpl:{download:'',zoom:'',close:'',arrowLeft:'',arrowRight:'',smallBtn:''},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(e,t){return"image"===e.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(e,t){return"image"===e.type&&"toggleControls"},clickSlide:function(e,t){return"image"===e.type?"toggleControls":"close"},dblclickContent:function(e,t){return"image"===e.type&&"zoom"},dblclickSlide:function(e,t){return"image"===e.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded.
Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schließen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden.
Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergrößern"}}},c=n(e),a=n(t),s=0,l=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)},u=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||function(t){e.clearTimeout(t)},h=function(){var e,n=t.createElement("fakeelement"),r={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in r)if(void 0!==n.style[e])return r[e];return"transitionend"}(),f=function(e){return e&&e.length&&e[0].offsetHeight},d=function(e,t){var r=n.extend(!0,{},e,t);return n.each(t,function(e,t){n.isArray(t)&&(r[e]=t)}),r},m=function(e){var r,o;return!(!e||e.ownerDocument!==t)&&(n(".fancybox-container").css("pointer-events","none"),r={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2},o=t.elementFromPoint(r.x,r.y)===e,n(".fancybox-container").css("pointer-events",""),o)},v=function(e,t,r){var o=this;o.opts=d({index:r},n.fancybox.defaults),n.isPlainObject(t)&&(o.opts=d(o.opts,t)),n.fancybox.isMobile&&(o.opts=d(o.opts,o.opts.mobile)),o.id=o.opts.id||++s,o.currIndex=parseInt(o.opts.index,10)||0,o.prevIndex=null,o.prevPos=null,o.currPos=0,o.firstRun=!0,o.group=[],o.slides={},o.addContent(e),o.group.length&&o.init()};n.extend(v.prototype,{init:function(){var r,o,i=this,c=i.group[i.currIndex].opts;c.closeExisting&&n.fancybox.close(!0),n("body").addClass("fancybox-active"),!n.fancybox.getInstance()&&!1!==c.hideScrollbar&&!n.fancybox.isMobile&&t.body.scrollHeight>e.innerHeight&&(n("head").append('"),n("body").addClass("compensate-for-scrollbar")),o="",n.each(c.buttons,function(e,t){o+=c.btnTpl[t]||""}),r=n(i.translate(i,c.baseTpl.replace("{{buttons}}",o).replace("{{arrows}}",c.btnTpl.arrowLeft+c.btnTpl.arrowRight))).attr("id","fancybox-container-"+i.id).addClass(c.baseClass).data("FancyBox",i).appendTo(c.parentEl),i.$refs={container:r},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(e){i.$refs[e]=r.find(".fancybox-"+e)}),i.trigger("onInit"),i.activate(),i.jumpTo(i.currIndex)},translate:function(e,t){var n=e.opts.i18n[e.opts.lang]||e.opts.i18n.en;return t.replace(/\{\{(\w+)\}\}/g,function(e,t){return void 0===n[t]?e:n[t]})},addContent:function(e){var t,r=this,o=n.makeArray(e);n.each(o,function(e,t){var o,i,c,a,s,l={},u={};n.isPlainObject(t)?(l=t,u=t.opts||t):"object"===n.type(t)&&n(t).length?(u=(o=n(t)).data()||{},(u=n.extend(!0,{},u,u.options)).$orig=o,l.src=r.opts.src||u.src||o.attr("href"),l.type||l.src||(l.type="inline",l.src=t)):l={type:"html",src:t+""},l.opts=n.extend(!0,{},r.opts,u),n.isArray(u.buttons)&&(l.opts.buttons=u.buttons),n.fancybox.isMobile&&l.opts.mobile&&(l.opts=d(l.opts,l.opts.mobile)),i=l.type||l.opts.type,a=l.src||"",!i&&a&&((c=a.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i="video",l.opts.video.format||(l.opts.video.format="video/"+("ogv"===c[1]?"ogg":c[1]))):a.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i="image":a.match(/\.(pdf)((\?|#).*)?$/i)?(i="iframe",l=n.extend(!0,l,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===a.charAt(0)&&(i="inline")),i?l.type=i:r.trigger("objectNeedsType",l),l.contentType||(l.contentType=n.inArray(l.type,["html","inline","ajax"])>-1?"html":l.type),l.index=r.group.length,"auto"==l.opts.smallBtn&&(l.opts.smallBtn=n.inArray(l.type,["html","inline","ajax"])>-1),"auto"===l.opts.toolbar&&(l.opts.toolbar=!l.opts.smallBtn),l.$thumb=l.opts.$thumb||null,l.opts.$trigger&&l.index===r.opts.index&&(l.$thumb=l.opts.$trigger.find("img:first"),l.$thumb.length&&(l.opts.$orig=l.opts.$trigger)),l.$thumb&&l.$thumb.length||!l.opts.$orig||(l.$thumb=l.opts.$orig.find("img:first")),l.$thumb&&!l.$thumb.length&&(l.$thumb=null),l.thumb=l.opts.thumb||(l.$thumb?l.$thumb[0].src:null),"function"===n.type(l.opts.caption)&&(l.opts.caption=l.opts.caption.apply(t,[r,l])),"function"===n.type(r.opts.caption)&&(l.opts.caption=r.opts.caption.apply(t,[r,l])),l.opts.caption instanceof n||(l.opts.caption=void 0===l.opts.caption?"":l.opts.caption+""),"ajax"===l.type&&((s=a.split(/\s+/,2)).length>1&&(l.src=s.shift(),l.opts.filter=s.shift())),l.opts.modal&&(l.opts=n.extend(!0,l.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),r.group.push(l)}),Object.keys(r.slides).length&&(r.updateControls(),(t=r.Thumbs)&&t.isActive&&(t.create(),t.focus()))},addEvents:function(){var t=this;t.removeEvents(),t.$refs.container.on("click.fb-close","[data-fancybox-close]",function(e){e.stopPropagation(),e.preventDefault(),t.close(e)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(e){e.stopPropagation(),e.preventDefault(),t.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(e){e.stopPropagation(),e.preventDefault(),t.next()}).on("click.fb","[data-fancybox-zoom]",function(e){t[t.isScaledDown()?"scaleToActual":"scaleToFit"]()}),c.on("orientationchange.fb resize.fb",function(e){e&&e.originalEvent&&"resize"===e.originalEvent.type?(t.requestId&&u(t.requestId),t.requestId=l(function(){t.update(e)})):(t.current&&"iframe"===t.current.type&&t.$refs.stage.hide(),setTimeout(function(){t.$refs.stage.show(),t.update(e)},n.fancybox.isMobile?600:250))}),a.on("keydown.fb",function(e){var r=(n.fancybox?n.fancybox.getInstance():null).current,o=e.keyCode||e.which;if(9!=o)return!r.opts.keyboard||e.ctrlKey||e.altKey||e.shiftKey||n(e.target).is("input,textarea,video,audio,select")?void 0:8===o||27===o?(e.preventDefault(),void t.close(e)):37===o||38===o?(e.preventDefault(),void t.previous()):39===o||40===o?(e.preventDefault(),void t.next()):void t.trigger("afterKeydown",e,o);r.opts.trapFocus&&t.focus(e)}),t.group[t.currIndex].opts.idleTime&&(t.idleSecondsCounter=0,a.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(e){t.idleSecondsCounter=0,t.isIdle&&t.showControls(),t.isIdle=!1}),t.idleInterval=e.setInterval(function(){++t.idleSecondsCounter>=t.group[t.currIndex].opts.idleTime&&!t.isDragging&&(t.isIdle=!0,t.idleSecondsCounter=0,t.hideControls())},1e3))},removeEvents:function(){var t=this;c.off("orientationchange.fb resize.fb"),a.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),t.idleInterval&&(e.clearInterval(t.idleInterval),t.idleInterval=null)},previous:function(e){return this.jumpTo(this.currPos-1,e)},next:function(e){return this.jumpTo(this.currPos+1,e)},jumpTo:function(e,t){var r,o,i,c,a,s,l,u,h,d=this,m=d.group.length;if(!(d.isDragging||d.isClosing||d.isAnimating&&d.firstRun)){if(e=parseInt(e,10),!(i=d.current?d.current.opts.loop:d.opts.loop)&&(e<0||e>=m))return!1;if(r=d.firstRun=!Object.keys(d.slides).length,a=d.current,d.prevIndex=d.currIndex,d.prevPos=d.currPos,c=d.createSlide(e),m>1&&((i||c.index0)&&d.createSlide(e-1)),d.current=c,d.currIndex=c.index,d.currPos=c.pos,d.trigger("beforeShow",r),d.updateControls(),c.forcedDuration=void 0,n.isNumeric(t)?c.forcedDuration=t:t=c.opts[r?"animationDuration":"transitionDuration"],t=parseInt(t,10),o=d.isMoved(c),c.$slide.addClass("fancybox-slide--current"),r)return c.opts.animationEffect&&t&&d.$refs.container.css("transition-duration",t+"ms"),d.$refs.container.addClass("fancybox-is-open").trigger("focus"),d.loadSlide(c),void d.preload("image");s=n.fancybox.getTranslate(a.$slide),l=n.fancybox.getTranslate(d.$refs.stage),n.each(d.slides,function(e,t){n.fancybox.stop(t.$slide,!0)}),a.pos!==c.pos&&(a.isComplete=!1),a.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),o?(h=s.left-(a.pos*s.width+a.pos*a.opts.gutter),n.each(d.slides,function(e,r){r.$slide.removeClass("fancybox-animated").removeClass(function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var o=r.pos*s.width+r.pos*r.opts.gutter;n.fancybox.setTranslate(r.$slide,{top:0,left:o-l.left+h}),r.pos!==c.pos&&r.$slide.addClass("fancybox-slide--"+(r.pos>c.pos?"next":"previous")),f(r.$slide),n.fancybox.animate(r.$slide,{top:0,left:(r.pos-c.pos)*s.width+(r.pos-c.pos)*r.opts.gutter},t,function(){r.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),r.pos===d.currPos&&d.complete()})})):t&&c.opts.transitionEffect&&(u="fancybox-animated fancybox-fx-"+c.opts.transitionEffect,a.$slide.addClass("fancybox-slide--"+(a.pos>c.pos?"next":"previous")),n.fancybox.animate(a.$slide,u,t,function(){a.$slide.removeClass(u).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),c.isLoaded?d.revealContent(c):d.loadSlide(c),d.preload("image")}},createSlide:function(e){var t,r,o=this;return r=(r=e%o.group.length)<0?o.group.length+r:r,!o.slides[e]&&o.group[r]&&(t=n('
').appendTo(o.$refs.stage),o.slides[e]=n.extend(!0,{},o.group[r],{pos:e,$slide:t,isLoaded:!1}),o.updateSlide(o.slides[e])),o.slides[e]},scaleToActual:function(e,t,r){var o,i,c,a,s,l=this,u=l.current,h=u.$content,f=n.fancybox.getTranslate(u.$slide).width,d=n.fancybox.getTranslate(u.$slide).height,m=u.width,v=u.height;l.isAnimating||l.isMoved()||!h||"image"!=u.type||!u.isLoaded||u.hasError||(l.isAnimating=!0,n.fancybox.stop(h),e=void 0===e?.5*f:e,t=void 0===t?.5*d:t,(o=n.fancybox.getTranslate(h)).top-=n.fancybox.getTranslate(u.$slide).top,o.left-=n.fancybox.getTranslate(u.$slide).left,a=m/o.width,s=v/o.height,i=.5*f-.5*m,c=.5*d-.5*v,m>f&&((i=o.left*a-(e*a-e))>0&&(i=0),id&&((c=o.top*s-(t*s-t))>0&&(c=0),ct-.5&&(s=t),(l*=o)>r-.5&&(l=r),"image"===e.type?(u.top=Math.floor(.5*(r-l))+parseFloat(a.css("paddingTop")),u.left=Math.floor(.5*(t-s))+parseFloat(a.css("paddingLeft"))):"video"===e.contentType&&(l>s/(i=e.opts.width&&e.opts.height?s/l:e.opts.ratio||16/9)?l=s/i:s>l*i&&(s=l*i)),u.width=s,u.height=l,u)},update:function(e){var t=this;n.each(t.slides,function(n,r){t.updateSlide(r,e)})},updateSlide:function(e,t){var r=this,o=e&&e.$content,i=e.width||e.opts.width,c=e.height||e.opts.height,a=e.$slide;r.adjustCaption(e),o&&(i||c||"video"===e.contentType)&&!e.hasError&&(n.fancybox.stop(o),n.fancybox.setTranslate(o,r.getFitPos(e)),e.pos===r.currPos&&(r.isAnimating=!1,r.updateCursor())),r.adjustLayout(e),a.length&&(a.trigger("refresh"),e.pos===r.currPos&&r.$refs.toolbar.add(r.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",a.get(0).scrollHeight>a.get(0).clientHeight)),r.trigger("onUpdate",e,t)},centerSlide:function(e){var t=this,r=t.current,o=r.$slide;!t.isClosing&&r&&(o.siblings().css({transform:"",opacity:""}),o.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),n.fancybox.animate(o,{top:0,left:0,opacity:1},void 0===e?0:e,function(){o.css({transform:"",opacity:""}),r.isComplete||t.complete()},!1))},isMoved:function(e){var t,r,o=e||this.current;return!!o&&(r=n.fancybox.getTranslate(this.$refs.stage),t=n.fancybox.getTranslate(o.$slide),!o.$slide.hasClass("fancybox-animated")&&(Math.abs(t.top-r.top)>.5||Math.abs(t.left-r.left)>.5))},updateCursor:function(e,t){var r,o,i=this,c=i.current,a=i.$refs.container;c&&!i.isClosing&&i.Guestures&&(a.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),o=!!(r=i.canPan(e,t))||i.isZoomable(),a.toggleClass("fancybox-is-zoomable",o),n("[data-fancybox-zoom]").prop("disabled",!o),r?a.addClass("fancybox-can-pan"):o&&("zoom"===c.opts.clickContent||n.isFunction(c.opts.clickContent)&&"zoom"==c.opts.clickContent(c))?a.addClass("fancybox-can-zoomIn"):c.opts.touch&&(c.opts.touch.vertical||i.group.length>1)&&"video"!==c.contentType&&a.addClass("fancybox-can-swipe"))},isZoomable:function(){var e,t=this,n=t.current;if(n&&!t.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if((e=t.getFitPos(n))&&(n.width>e.width||n.height>e.height))return!0}return!1},isScaledDown:function(e,t){var r=!1,o=this.current,i=o.$content;return void 0!==e&&void 0!==t?r=e1.5||Math.abs(o.height-i.height)>1.5)),i},loadSlide:function(e){var t,r,o,i=this;if(!e.isLoading&&!e.isLoaded){if(e.isLoading=!0,!1===i.trigger("beforeLoad",e))return e.isLoading=!1,!1;switch(t=e.type,(r=e.$slide).off("refresh").trigger("onReset").addClass(e.opts.slideClass),t){case"image":i.setImage(e);break;case"iframe":i.setIframe(e);break;case"html":i.setContent(e,e.src||e.content);break;case"video":i.setContent(e,e.opts.video.tpl.replace(/\{\{src\}\}/gi,e.src).replace("{{format}}",e.opts.videoFormat||e.opts.video.format||"").replace("{{poster}}",e.thumb||""));break;case"inline":n(e.src).length?i.setContent(e,n(e.src)):i.setError(e);break;case"ajax":i.showLoading(e),o=n.ajax(n.extend({},e.opts.ajax.settings,{url:e.src,success:function(t,n){"success"===n&&i.setContent(e,t)},error:function(t,n){t&&"abort"!==n&&i.setError(e)}})),r.one("onReset",function(){o.abort()});break;default:i.setError(e)}return!0}},setImage:function(e){var r,o=this;setTimeout(function(){var t=e.$image;o.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||o.showLoading(e)},50),o.checkSrcset(e),e.$content=n('
').addClass("fancybox-is-hidden").appendTo(e.$slide.addClass("fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(r=t.createElement("img")).onerror=function(){n(this).remove(),e.$ghost=null},r.onload=function(){o.afterLoad(e)},e.$ghost=n(r).addClass("fancybox-image").appendTo(e.$content).attr("src",e.thumb)),o.setBigImage(e)},checkSrcset:function(t){var n,r,o,i,c=t.opts.srcset||t.opts.image.srcset;if(c){o=e.devicePixelRatio||1,i=e.innerWidth*o,(r=c.split(",").map(function(e){var t={};return e.trim().split(/\s+/).forEach(function(e,n){var r=parseInt(e.substring(0,e.length-1),10);if(0===n)return t.url=e;r&&(t.value=r,t.postfix=e[e.length-1])}),t})).sort(function(e,t){return e.value-t.value});for(var a=0;a=i||"x"===s.postfix&&s.value>=o){n=s;break}}!n&&r.length&&(n=r[r.length-1]),n&&(t.src=n.url,t.width&&t.height&&"w"==n.postfix&&(t.height=t.width/t.height*n.value,t.width=n.value),t.opts.srcset=c)}},setBigImage:function(e){var r=this,o=t.createElement("img"),i=n(o);e.$image=i.one("error",function(){r.setError(e)}).one("load",function(){var t;e.$ghost||(r.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),r.afterLoad(e)),r.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(e.width/e.height>1&&c.width()/c.height()>1?"100":Math.round(e.width/e.height*100))+"vw"),i.attr("sizes",t).attr("srcset",e.opts.srcset)),e.$ghost&&setTimeout(function(){e.$ghost&&!r.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),r.hideLoading(e))}).addClass("fancybox-image").attr("src",e.src).appendTo(e.$content),(o.complete||"complete"==o.readyState)&&i.naturalWidth&&i.naturalHeight?i.trigger("load"):o.error&&i.trigger("error")},resolveImageSlideSize:function(e,t,n){var r=parseInt(e.opts.width,10),o=parseInt(e.opts.height,10);e.width=t,e.height=n,r>0&&(e.width=r,e.height=Math.floor(r*n/t)),o>0&&(e.width=Math.floor(o*t/n),e.height=o)},setIframe:function(e){var t,r=this,o=e.opts.iframe,i=e.$slide;e.$content=n('
').css(o.css).appendTo(i),i.addClass("fancybox-slide--"+e.contentType),e.$iframe=t=n(o.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(o.attr).appendTo(e.$content),o.preload?(r.showLoading(e),t.on("load.fb error.fb",function(t){this.isReady=1,e.$slide.trigger("refresh"),r.afterLoad(e)}),i.on("refresh.fb",function(){var n,r=e.$content,c=o.css.width,a=o.css.height;if(1===t[0].isReady){try{n=t.contents().find("body")}catch(e){}n&&n.length&&n.children().length&&(i.css("overflow","visible"),r.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===c&&(c=Math.ceil(Math.max(n[0].clientWidth,n.outerWidth(!0)))),r.css("width",c||"").css("max-width",""),void 0===a&&(a=Math.ceil(Math.max(n[0].clientHeight,n.outerHeight(!0)))),r.css("height",a||""),i.css("overflow","auto")),r.removeClass("fancybox-is-hidden")}})):r.afterLoad(e),t.attr("src",e.src),i.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(e){}n(this).off("refresh.fb").empty(),e.isLoaded=!1,e.isRevealed=!1})},setContent:function(e,t){var r=this;r.isClosing||(r.hideLoading(e),e.$content&&n.fancybox.stop(e.$content),e.$slide.empty(),function(e){return e&&e.hasOwnProperty&&e instanceof n}(t)&&t.parent().length?((t.hasClass("fancybox-content")||t.parent().hasClass("fancybox-content"))&&t.parents(".fancybox-slide").trigger("onReset"),e.$placeholder=n("
").hide().insertAfter(t),t.css("display","inline-block")):e.hasError||("string"===n.type(t)&&(t=n("
").append(n.trim(t)).contents()),e.opts.filter&&(t=n("
").html(t).find(e.opts.filter))),e.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause"),e.$placeholder&&(e.$placeholder.after(t.removeClass("fancybox-content").hide()).remove(),e.$placeholder=null),e.$smallBtn&&(e.$smallBtn.remove(),e.$smallBtn=null),e.hasError||(n(this).empty(),e.isLoaded=!1,e.isRevealed=!1)}),n(t).appendTo(e.$slide),n(t).is("video,audio")&&(n(t).addClass("fancybox-video"),n(t).wrap("
"),e.contentType="video",e.opts.width=e.opts.width||n(t).attr("width"),e.opts.height=e.opts.height||n(t).attr("height")),e.$content=e.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),e.$content.siblings().hide(),e.$content.length||(e.$content=e.$slide.wrapInner("
").children().first()),e.$content.addClass("fancybox-content"),e.$slide.addClass("fancybox-slide--"+e.contentType),r.afterLoad(e))},setError:function(e){e.hasError=!0,e.$slide.trigger("onReset").removeClass("fancybox-slide--"+e.contentType).addClass("fancybox-slide--error"),e.contentType="html",this.setContent(e,this.translate(e,e.opts.errorTpl)),e.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(e){var t=this;(e=e||t.current)&&!e.$spinner&&(e.$spinner=n(t.translate(t,t.opts.spinnerTpl)).appendTo(e.$slide).hide().fadeIn("fast"))},hideLoading:function(e){(e=e||this.current)&&e.$spinner&&(e.$spinner.stop().remove(),delete e.$spinner)},afterLoad:function(e){var t=this;t.isClosing||(e.isLoading=!1,e.isLoaded=!0,t.trigger("afterLoad",e),t.hideLoading(e),!e.opts.smallBtn||e.$smallBtn&&e.$smallBtn.length||(e.$smallBtn=n(t.translate(e,e.opts.btnTpl.smallBtn)).appendTo(e.$content)),e.opts.protect&&e.$content&&!e.hasError&&(e.$content.on("contextmenu.fb",function(e){return 2==e.button&&e.preventDefault(),!0}),"image"===e.type&&n('
').appendTo(e.$content)),t.adjustCaption(e),t.adjustLayout(e),e.pos===t.currPos&&t.updateCursor(),t.revealContent(e))},adjustCaption:function(e){var t,n=this,r=e||n.current,o=r.opts.caption,i=r.opts.preventCaptionOverlap,c=n.$refs.caption,a=!1;c.toggleClass("fancybox-caption--separate",i),i&&o&&o.length&&(r.pos!==n.currPos?((t=c.clone().appendTo(c.parent())).children().eq(0).empty().html(o),a=t.outerHeight(!0),t.empty().remove()):n.$caption&&(a=n.$caption.outerHeight(!0)),r.$slide.css("padding-bottom",a||""))},adjustLayout:function(e){var t,n,r,o,i=e||this.current;i.isLoaded&&!0!==i.opts.disableLayoutFix&&(i.$content.css("margin-bottom",""),i.$content.outerHeight()>i.$slide.height()+.5&&(r=i.$slide[0].style["padding-bottom"],o=i.$slide.css("padding-bottom"),parseFloat(o)>0&&(t=i.$slide[0].scrollHeight,i.$slide.css("padding-bottom",0),Math.abs(t-i.$slide[0].scrollHeight)<1&&(n=o),i.$slide.css("padding-bottom",r))),i.$content.css("margin-bottom",n))},revealContent:function(e){var t,r,o,i,c=this,a=e.$slide,s=!1,l=!1,u=c.isMoved(e),h=e.isRevealed;return e.isRevealed=!0,t=e.opts[c.firstRun?"animationEffect":"transitionEffect"],o=e.opts[c.firstRun?"animationDuration":"transitionDuration"],o=parseInt(void 0===e.forcedDuration?o:e.forcedDuration,10),!u&&e.pos===c.currPos&&o||(t=!1),"zoom"===t&&(e.pos===c.currPos&&o&&"image"===e.type&&!e.hasError&&(l=c.getThumbPos(e))?s=c.getFitPos(e):t="fade"),"zoom"===t?(c.isAnimating=!0,s.scaleX=s.width/l.width,s.scaleY=s.height/l.height,"auto"==(i=e.opts.zoomOpacity)&&(i=Math.abs(e.width/e.height-l.width/l.height)>.1),i&&(l.opacity=.1,s.opacity=1),n.fancybox.setTranslate(e.$content.removeClass("fancybox-is-hidden"),l),f(e.$content),void n.fancybox.animate(e.$content,s,o,function(){c.isAnimating=!1,c.complete()})):(c.updateSlide(e),t?(n.fancybox.stop(a),r="fancybox-slide--"+(e.pos>=c.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+t,a.addClass(r).removeClass("fancybox-slide--current"),e.$content.removeClass("fancybox-is-hidden"),f(a),"image"!==e.type&&e.$content.hide().show(0),void n.fancybox.animate(a,"fancybox-slide--current",o,function(){a.removeClass(r).css({transform:"",opacity:""}),e.pos===c.currPos&&c.complete()},!0)):(e.$content.removeClass("fancybox-is-hidden"),h||!u||"image"!==e.type||e.hasError||e.$content.hide().fadeIn("fast"),void(e.pos===c.currPos&&c.complete())))},getThumbPos:function(e){var t,r,o,i,c,a=!1,s=e.$thumb;return!(!s||!m(s[0]))&&(t=n.fancybox.getTranslate(s),r=parseFloat(s.css("border-top-width")||0),o=parseFloat(s.css("border-right-width")||0),i=parseFloat(s.css("border-bottom-width")||0),c=parseFloat(s.css("border-left-width")||0),a={top:t.top+r,left:t.left+c,width:t.width-o-c,height:t.height-r-i,scaleX:1,scaleY:1},t.width>0&&t.height>0&&a)},complete:function(){var e,t=this,r=t.current,o={};!t.isMoved()&&r.isLoaded&&(r.isComplete||(r.isComplete=!0,r.$slide.siblings().trigger("onReset"),t.preload("inline"),f(r.$slide),r.$slide.addClass("fancybox-slide--complete"),n.each(t.slides,function(e,r){r.pos>=t.currPos-1&&r.pos<=t.currPos+1?o[r.pos]=r:r&&(n.fancybox.stop(r.$slide),r.$slide.off().remove())}),t.slides=o),t.isAnimating=!1,t.updateCursor(),t.trigger("afterShow"),r.opts.video.autoStart&&r.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),t.next()}),r.opts.autoFocus&&"html"===r.contentType&&((e=r.$content.find("input[autofocus]:enabled:visible:first")).length?e.trigger("focus"):t.focus(null,!0)),r.$slide.scrollTop(0).scrollLeft(0))},preload:function(e){var t,n,r=this;r.group.length<2||(n=r.slides[r.currPos+1],(t=r.slides[r.currPos-1])&&t.type===e&&r.loadSlide(t),n&&n.type===e&&r.loadSlide(n))},focus:function(e,r){var o,i,c=this,a=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");c.isClosing||((o=(o=!e&&c.current&&c.current.isComplete?c.current.$slide.find("*:visible"+(r?":not(.fancybox-close-small)":"")):c.$refs.container.find("*:visible")).filter(a).filter(function(){return"hidden"!==n(this).css("visibility")&&!n(this).hasClass("disabled")})).length?(i=o.index(t.activeElement),e&&e.shiftKey?(i<0||0==i)&&(e.preventDefault(),o.eq(o.length-1).trigger("focus")):(i<0||i==o.length-1)&&(e&&e.preventDefault(),o.eq(0).trigger("focus"))):c.$refs.container.trigger("focus"))},activate:function(){var e=this;n(".fancybox-container").each(function(){var t=n(this).data("FancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(e,t){var r,o,i,c,a,s,u,h=this,d=h.current,m=function(){h.cleanUp(e)};return!(h.isClosing||(h.isClosing=!0,!1===h.trigger("beforeClose",e)?(h.isClosing=!1,l(function(){h.update()}),1):(h.removeEvents(),i=d.$content,r=d.opts.animationEffect,o=n.isNumeric(t)?t:r?d.opts.animationDuration:0,d.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==e?n.fancybox.stop(d.$slide):r=!1,d.$slide.siblings().trigger("onReset").remove(),o&&h.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",o+"ms"),h.hideLoading(d),h.hideControls(!0),h.updateCursor(),"zoom"!==r||i&&o&&"image"===d.type&&!h.isMoved()&&!d.hasError&&(u=h.getThumbPos(d))||(r="fade"),"zoom"===r?(n.fancybox.stop(i),c=n.fancybox.getTranslate(i),s={top:c.top,left:c.left,scaleX:c.width/u.width,scaleY:c.height/u.height,width:u.width,height:u.height},a=d.opts.zoomOpacity,"auto"==a&&(a=Math.abs(d.width/d.height-u.width/u.height)>.1),a&&(u.opacity=0),n.fancybox.setTranslate(i,s),f(i),n.fancybox.animate(i,u,o,m),0):(r&&o?n.fancybox.animate(d.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+r,o,m):!0===e?setTimeout(m,o):m(),0))))},cleanUp:function(t){var r,o,i,c=this,a=c.current.opts.$orig;c.current.$slide.trigger("onReset"),c.$refs.container.empty().remove(),c.trigger("afterClose",t),c.current.opts.backFocus&&(a&&a.length&&a.is(":visible")||(a=c.$trigger),a&&a.length&&(o=e.scrollX,i=e.scrollY,a.trigger("focus"),n("html, body").scrollTop(i).scrollLeft(o))),c.current=null,(r=n.fancybox.getInstance())?r.activate():(n("body").removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(e,t){var r,o=Array.prototype.slice.call(arguments,1),i=this,c=t&&t.opts?t:i.current;if(c?o.unshift(c):c=i,o.unshift(i),n.isFunction(c.opts[e])&&(r=c.opts[e].apply(c,o)),!1===r)return r;"afterClose"!==e&&i.$refs?i.$refs.container.trigger(e+".fb",o):a.trigger(e+".fb",o)},updateControls:function(){var e=this,r=e.current,o=r.index,i=e.$refs.container,c=e.$refs.caption,a=r.opts.caption;r.$slide.trigger("refresh"),a&&a.length?(e.$caption=c,c.children().eq(0).html(a)):e.$caption=null,e.hasHiddenControls||e.isIdle||e.showControls(),i.find("[data-fancybox-count]").html(e.group.length),i.find("[data-fancybox-index]").html(o+1),i.find("[data-fancybox-prev]").prop("disabled",!r.opts.loop&&o<=0),i.find("[data-fancybox-next]").prop("disabled",!r.opts.loop&&o>=e.group.length-1),"image"===r.type?i.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",r.opts.image.src||r.src).show():r.opts.toolbar&&i.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),n(t.activeElement).is(":hidden,[disabled]")&&e.$refs.container.trigger("focus")},hideControls:function(e){var t=["infobar","toolbar","nav"];!e&&this.current.opts.preventCaptionOverlap||t.push("caption"),this.$refs.container.removeClass(t.map(function(e){return"fancybox-show-"+e}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var e=this,t=e.current?e.current.opts:e.opts,n=e.$refs.container;e.hasHiddenControls=!1,e.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!t.toolbar||!t.buttons)).toggleClass("fancybox-show-infobar",!!(t.infobar&&e.group.length>1)).toggleClass("fancybox-show-caption",!!e.$caption).toggleClass("fancybox-show-nav",!!(t.arrows&&e.group.length>1)).toggleClass("fancybox-is-modal",!!t.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.5.7",defaults:i,getInstance:function(e){var t=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),r=Array.prototype.slice.call(arguments,1);return t instanceof v&&("string"===n.type(e)?t[e].apply(t,r):"function"===n.type(e)&&e.apply(t,r),t)},open:function(e,t,n){return new v(e,t,n)},close:function(e){var t=this.getInstance();t&&(t.close(),!0===e&&this.close(e))},destroy:function(){this.close(!0),a.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=t.createElement("div");return e.getComputedStyle&&e.getComputedStyle(n)&&e.getComputedStyle(n).getPropertyValue("transform")&&!(t.documentMode&&t.documentMode<11)}(),getTranslate:function(e){var t;return!(!e||!e.length)&&{top:(t=e[0].getBoundingClientRect()).top||0,left:t.left||0,width:t.width,height:t.height,opacity:parseFloat(e.css("opacity"))}},setTranslate:function(e,t){var n="",r={};if(e&&t)return void 0===t.left&&void 0===t.top||(n=(void 0===t.left?e.position().left:t.left)+"px, "+(void 0===t.top?e.position().top:t.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),void 0!==t.scaleX&&void 0!==t.scaleY?n+=" scale("+t.scaleX+", "+t.scaleY+")":void 0!==t.scaleX&&(n+=" scaleX("+t.scaleX+")"),n.length&&(r.transform=n),void 0!==t.opacity&&(r.opacity=t.opacity),void 0!==t.width&&(r.width=t.width),void 0!==t.height&&(r.height=t.height),e.css(r)},animate:function(e,t,r,o,i){var c,a=this;n.isFunction(r)&&(o=r,r=null),a.stop(e),c=a.getTranslate(e),e.on(h,function(s){(!s||!s.originalEvent||e.is(s.originalEvent.target)&&"z-index"!=s.originalEvent.propertyName)&&(a.stop(e),n.isNumeric(r)&&e.css("transition-duration",""),n.isPlainObject(t)?void 0!==t.scaleX&&void 0!==t.scaleY&&a.setTranslate(e,{top:t.top,left:t.left,width:c.width*t.scaleX,height:c.height*t.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(t),n.isFunction(o)&&o(s))}),n.isNumeric(r)&&e.css("transition-duration",r+"ms"),n.isPlainObject(t)?(void 0!==t.scaleX&&void 0!==t.scaleY&&(delete t.width,delete t.height,e.parent().hasClass("fancybox-slide--image")&&e.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(e,t)):e.addClass(t),e.data("timer",setTimeout(function(){e.trigger(h)},r+33))},stop:function(e,t){e&&e.length&&(clearTimeout(e.data("timer")),t&&e.trigger(h),e.off(h).css("transition-duration",""),e.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(e){var t;return(t=(e=e||{}).selector||!1)?n("body").off("click.fb-start",t).on("click.fb-start",t,{options:e},o):this.off("click.fb-start").on("click.fb-start",{items:this,options:e},o),this},a.on("click.fb-start","[data-fancybox]",o),a.on("click.fb-start","[data-fancybox-trigger]",function(e){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})}),function(){var e=null;a.on("mousedown mouseup focus blur",".fancybox-button",function(t){switch(t.type){case"mousedown":e=n(this);break;case"mouseup":e=null;break;case"focusin":n(".fancybox-button").removeClass("fancybox-focus"),n(this).is(e)||n(this).is("[disabled]")||n(this).addClass("fancybox-focus");break;case"focusout":n(".fancybox-button").removeClass("fancybox-focus")}})}()}}(window,document,jQuery),function(e){"use strict";var t={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(e){return"//maps.google."+e[2]+"/?ll="+(e[9]?e[9]+"&z="+Math.floor(e[10])+(e[12]?e[12].replace(/^\//,"&"):""):e[12]+"").replace(/\?/,"&")+"&output="+(e[12]&&e[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(e){return"//maps.google."+e[2]+"/maps?q="+e[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},n=function(t,n,r){if(t)return r=r||"","object"===e.type(r)&&(r=e.param(r,!0)),e.each(n,function(e,n){t=t.replace("$"+e,n||"")}),r.length&&(t+=(t.indexOf("?")>0?"&":"?")+r),t};e(document).on("objectNeedsType.fb",function(r,o,i){var c,a,s,l,u,h,f,d=i.src||"",m=!1;c=e.extend(!0,{},t,i.opts.media),e.each(c,function(t,r){if(s=d.match(r.matcher)){if(m=r.type,f=t,h={},r.paramPlace&&s[r.paramPlace]){"?"==(u=s[r.paramPlace])[0]&&(u=u.substring(1)),u=u.split("&");for(var o=0;o1&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&r.load(n.contentSource)}})}(jQuery),function(e,t,n){"use strict";var r=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)},o=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||function(t){e.clearTimeout(t)},i=function(t){var n=[];for(var r in t=(t=t.originalEvent||t||e.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[r].pageX?n.push({x:t[r].pageX,y:t[r].pageY}):t[r].clientX&&n.push({x:t[r].clientX,y:t[r].clientY});return n},c=function(e,t,n){return t&&e?"x"===n?e.x-t.x:"y"===n?e.y-t.y:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},a=function(e){if(e.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||n.isFunction(e.get(0).onclick)||e.data("selectable"))return!0;for(var t=0,r=e[0].attributes,o=r.length;tt.clientHeight,i=("scroll"===r||"auto"===r)&&t.scrollWidth>t.clientWidth;return o||i},l=function(e){for(var t=!1;!(t=s(e.get(0)))&&((e=e.parent()).length&&!e.hasClass("fancybox-stage")&&!e.is("body")););return t},u=function(e){var t=this;t.instance=e,t.$bg=e.$refs.bg,t.$stage=e.$refs.stage,t.$container=e.$refs.container,t.destroy(),t.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(t,"ontouchstart"))};u.prototype.destroy=function(){var e=this;e.$container.off(".fb.touch"),n(t).off(".fb.touch"),e.requestId&&(o(e.requestId),e.requestId=null),e.tapped&&(clearTimeout(e.tapped),e.tapped=null)},u.prototype.ontouchstart=function(r){var o=this,s=n(r.target),u=o.instance,h=u.current,f=h.$slide,d=h.$content,m="touchstart"==r.type;if(m&&o.$container.off("mousedown.fb.touch"),(!r.originalEvent||2!=r.originalEvent.button)&&f.length&&s.length&&!a(s)&&!a(s.parent())&&(s.is("img")||!(r.originalEvent.clientX>s[0].clientWidth+s.offset().left))){if(!h||u.isAnimating||h.$slide.hasClass("fancybox-animated"))return r.stopPropagation(),void r.preventDefault();o.realPoints=o.startPoints=i(r),o.startPoints.length&&(h.touch&&r.stopPropagation(),o.startEvent=r,o.canTap=!0,o.$target=s,o.$content=d,o.opts=h.opts.touch,o.isPanning=!1,o.isSwiping=!1,o.isZooming=!1,o.isScrolling=!1,o.canPan=u.canPan(),o.startTime=(new Date).getTime(),o.distanceX=o.distanceY=o.distance=0,o.canvasWidth=Math.round(f[0].clientWidth),o.canvasHeight=Math.round(f[0].clientHeight),o.contentLastPos=null,o.contentStartPos=n.fancybox.getTranslate(o.$content)||{top:0,left:0},o.sliderStartPos=n.fancybox.getTranslate(f),o.stagePos=n.fancybox.getTranslate(u.$refs.stage),o.sliderStartPos.top-=o.stagePos.top,o.sliderStartPos.left-=o.stagePos.left,o.contentStartPos.top-=o.stagePos.top,o.contentStartPos.left-=o.stagePos.left,n(t).off(".fb.touch").on(m?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(o,"ontouchend")).on(m?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(o,"ontouchmove")),n.fancybox.isMobile&&t.addEventListener("scroll",o.onscroll,!0),((o.opts||o.canPan)&&(s.is(o.$stage)||o.$stage.find(s).length)||(s.is(".fancybox-image")&&r.preventDefault(),n.fancybox.isMobile&&s.parents(".fancybox-caption").length))&&(o.isScrollable=l(s)||l(s.parent()),n.fancybox.isMobile&&o.isScrollable||r.preventDefault(),(1===o.startPoints.length||h.hasError)&&(o.canPan?(n.fancybox.stop(o.$content),o.isPanning=!0):o.isSwiping=!0,o.$container.addClass("fancybox-is-grabbing")),2===o.startPoints.length&&"image"===h.type&&(h.isLoaded||h.$ghost)&&(o.canTap=!1,o.isSwiping=!1,o.isPanning=!1,o.isZooming=!0,n.fancybox.stop(o.$content),o.centerPointStartX=.5*(o.startPoints[0].x+o.startPoints[1].x)-n(e).scrollLeft(),o.centerPointStartY=.5*(o.startPoints[0].y+o.startPoints[1].y)-n(e).scrollTop(),o.percentageOfImageAtPinchPointX=(o.centerPointStartX-o.contentStartPos.left)/o.contentStartPos.width,o.percentageOfImageAtPinchPointY=(o.centerPointStartY-o.contentStartPos.top)/o.contentStartPos.height,o.startDistanceBetweenFingers=c(o.startPoints[0],o.startPoints[1]))))}},u.prototype.onscroll=function(e){this.isScrolling=!0,t.removeEventListener("scroll",this.onscroll,!0)},u.prototype.ontouchmove=function(e){var t=this;return void 0!==e.originalEvent.buttons&&0===e.originalEvent.buttons?void t.ontouchend(e):t.isScrolling?void(t.canTap=!1):(t.newPoints=i(e),void((t.opts||t.canPan)&&t.newPoints.length&&t.newPoints.length&&(t.isSwiping&&!0===t.isSwiping||e.preventDefault(),t.distanceX=c(t.newPoints[0],t.startPoints[0],"x"),t.distanceY=c(t.newPoints[0],t.startPoints[0],"y"),t.distance=c(t.newPoints[0],t.startPoints[0]),t.distance>0&&(t.isSwiping?t.onSwipe(e):t.isPanning?t.onPan():t.isZooming&&t.onZoom()))))},u.prototype.onSwipe=function(t){var i,c=this,a=c.instance,s=c.isSwiping,l=c.sliderStartPos.left||0;if(!0!==s)"x"==s&&(c.distanceX>0&&(c.instance.group.length<2||0===c.instance.current.index&&!c.instance.current.opts.loop)?l+=Math.pow(c.distanceX,.8):c.distanceX<0&&(c.instance.group.length<2||c.instance.current.index===c.instance.group.length-1&&!c.instance.current.opts.loop)?l-=Math.pow(-c.distanceX,.8):l+=c.distanceX),c.sliderLastPos={top:"x"==s?0:c.sliderStartPos.top+c.distanceY,left:l},c.requestId&&(o(c.requestId),c.requestId=null),c.requestId=r(function(){c.sliderLastPos&&(n.each(c.instance.slides,function(e,t){var r=t.pos-c.instance.currPos;n.fancybox.setTranslate(t.$slide,{top:c.sliderLastPos.top,left:c.sliderLastPos.left+r*c.canvasWidth+r*t.opts.gutter})}),c.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(c.distance)>10){if(c.canTap=!1,a.group.length<2&&c.opts.vertical?c.isSwiping="y":a.isDragging||!1===c.opts.vertical||"auto"===c.opts.vertical&&n(e).width()>800?c.isSwiping="x":(i=Math.abs(180*Math.atan2(c.distanceY,c.distanceX)/Math.PI),c.isSwiping=i>45&&i<135?"y":"x"),"y"===c.isSwiping&&n.fancybox.isMobile&&c.isScrollable)return void(c.isScrolling=!0);a.isDragging=c.isSwiping,c.startPoints=c.newPoints,n.each(a.slides,function(e,t){var r,o;n.fancybox.stop(t.$slide),r=n.fancybox.getTranslate(t.$slide),o=n.fancybox.getTranslate(a.$refs.stage),t.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),t.pos===a.current.pos&&(c.sliderStartPos.top=r.top-o.top,c.sliderStartPos.left=r.left-o.left),n.fancybox.setTranslate(t.$slide,{top:r.top-o.top,left:r.left-o.left})}),a.SlideShow&&a.SlideShow.isActive&&a.SlideShow.stop()}},u.prototype.onPan=function(){var e=this;c(e.newPoints[0],e.realPoints[0])<(n.fancybox.isMobile?10:5)?e.startPoints=e.newPoints:(e.canTap=!1,e.contentLastPos=e.limitMovement(),e.requestId&&o(e.requestId),e.requestId=r(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)}))},u.prototype.limitMovement=function(){var e,t,n,r,o,i,c=this,a=c.canvasWidth,s=c.canvasHeight,l=c.distanceX,u=c.distanceY,h=c.contentStartPos,f=h.left,d=h.top,m=h.width,v=h.height;return o=m>a?f+l:f,i=d+u,e=Math.max(0,.5*a-.5*m),t=Math.max(0,.5*s-.5*v),n=Math.min(a-m,.5*a-.5*m),r=Math.min(s-v,.5*s-.5*v),l>0&&o>e&&(o=e-1+Math.pow(-e+f+l,.8)||0),l<0&&o0&&i>t&&(i=t-1+Math.pow(-t+d+u,.8)||0),u<0&&io?e=(e=e>0?0:e)i?t=(t=t>0?0:t)1&&(r.dMs>130&&c>10||c>50);r.sliderLastPos=null,"y"==e&&!t&&Math.abs(r.distanceY)>50?(n.fancybox.animate(r.instance.current.$slide,{top:r.sliderStartPos.top+r.distanceY+150*r.velocityY,opacity:0},200),o=r.instance.close(!0,250)):a&&r.distanceX>0?o=r.instance.previous(300):a&&r.distanceX<0&&(o=r.instance.next(300)),!1!==o||"x"!=e&&"y"!=e||r.instance.centerSlide(200),r.$container.removeClass("fancybox-is-sliding")},u.prototype.endPanning=function(){var e,t,r,o=this;o.contentLastPos&&(!1===o.opts.momentum||o.dMs>350?(e=o.contentLastPos.left,t=o.contentLastPos.top):(e=o.contentLastPos.left+500*o.velocityX,t=o.contentLastPos.top+500*o.velocityY),(r=o.limitPosition(e,t,o.contentStartPos.width,o.contentStartPos.height)).width=o.contentStartPos.width,r.height=o.contentStartPos.height,n.fancybox.animate(o.$content,r,366))},u.prototype.endZooming=function(){var e,t,r,o,i=this,c=i.instance.current,a=i.newWidth,s=i.newHeight;i.contentLastPos&&(e=i.contentLastPos.left,o={top:t=i.contentLastPos.top,left:e,width:a,height:s,scaleX:1,scaleY:1},n.fancybox.setTranslate(i.$content,o),ac.width||s>c.height?i.instance.scaleToActual(i.centerPointStartX,i.centerPointStartY,150):(r=i.limitPosition(e,t,a,s),n.fancybox.animate(i.$content,r,150)))},u.prototype.onTap=function(t){var r,o=this,c=n(t.target),a=o.instance,s=a.current,l=t&&i(t)||o.startPoints,u=l[0]?l[0].x-n(e).scrollLeft()-o.stagePos.left:0,h=l[0]?l[0].y-n(e).scrollTop()-o.stagePos.top:0,f=function(e){var r=s.opts[e];if(n.isFunction(r)&&(r=r.apply(a,[s,t])),r)switch(r){case"close":a.close(o.startEvent);break;case"toggleControls":a.toggleControls();break;case"next":a.next();break;case"nextOrClose":a.group.length>1?a.next():a.close(o.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(a.canPan()?a.scaleToFit():a.isScaledDown()?a.scaleToActual(u,h):a.group.length<2&&a.close(o.startEvent))}};if((!t.originalEvent||2!=t.originalEvent.button)&&(c.is("img")||!(u>c[0].clientWidth+c.offset().left))){if(c.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))r="Outside";else if(c.is(".fancybox-slide"))r="Slide";else{if(!a.current.$content||!a.current.$content.find(c).addBack().filter(c).length)return;r="Content"}if(o.tapped){if(clearTimeout(o.tapped),o.tapped=null,Math.abs(u-o.tapX)>50||Math.abs(h-o.tapY)>50)return this;f("dblclick"+r)}else o.tapX=u,o.tapY=h,s.opts["dblclick"+r]&&s.opts["dblclick"+r]!==s.opts["click"+r]?o.tapped=setTimeout(function(){o.tapped=null,a.isAnimating||f("click"+r)},500):f("click"+r);return this}},n(t).on("onActivate.fb",function(e,t){t&&!t.Guestures&&(t.Guestures=new u(t))}).on("beforeClose.fb",function(e,t){t&&t.Guestures&&t.Guestures.destroy()})}(window,document,jQuery),function(e,t){"use strict";t.extend(!0,t.fancybox.defaults,{btnTpl:{slideShow:''},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(e){this.instance=e,this.init()};t.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var e=this,n=e.instance,r=n.group[n.currIndex].opts.slideShow;e.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){e.toggle()}),n.group.length<2||!r?e.$button.hide():r.progress&&(e.$progress=t('
').appendTo(n.$refs.inner))},set:function(e){var n=this,r=n.instance,o=r.current;o&&(!0===e||o.opts.loop||r.currIndex'},fullScreen:{autoStart:!1}}),t(e).on(n.fullscreenchange,function(){var e=r.isFullscreen(),n=t.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.isAnimating=!1,n.update(!0,!0,0),n.isComplete||n.complete()),n.trigger("onFullscreenChange",e),n.$refs.container.toggleClass("fancybox-is-fullscreen",e),n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!e).toggleClass("fancybox-button--fsexit",e))})}t(e).on({"onInit.fb":function(e,t){n?t&&t.group[t.currIndex].opts.fullScreen?(t.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(e){e.stopPropagation(),e.preventDefault(),r.toggle()}),t.opts.fullScreen&&!0===t.opts.fullScreen.autoStart&&r.request(),t.FullScreen=r):t&&t.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():t.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(e,t,n,r,o){t&&t.FullScreen&&70===o&&(r.preventDefault(),t.FullScreen.toggle())},"beforeClose.fb":function(e,t){t&&t.FullScreen&&t.$refs.container.hasClass("fancybox-is-fullscreen")&&r.exit()}})}(document,jQuery),function(e,t){"use strict";var n="fancybox-thumbs";t.fancybox.defaults=t.extend(!0,{btnTpl:{thumbs:''},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},t.fancybox.defaults);var r=function(e){this.init(e)};t.extend(r.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(e){var t=this,n=e.group,r=0;t.instance=e,t.opts=n[e.currIndex].opts.thumbs,e.Thumbs=t,t.$button=e.$refs.toolbar.find("[data-fancybox-thumbs]");for(var o=0,i=n.length;o1));o++);r>1&&t.opts?(t.$button.removeAttr("style").on("click",function(){t.toggle()}),t.isActive=!0):t.$button.hide()},create:function(){var e,r=this,o=r.instance,i=r.opts.parentEl,c=[];r.$grid||(r.$grid=t('
').appendTo(o.$refs.container.find(i).addBack().filter(i)),r.$grid.on("click","a",function(){o.jumpTo(t(this).attr("data-index"))})),r.$list||(r.$list=t('
').appendTo(r.$grid)),t.each(o.group,function(t,n){(e=n.thumb)||"image"!==n.type||(e=n.src),c.push('")}),r.$list[0].innerHTML=c.join(""),"x"===r.opts.axis&&r.$list.width(parseInt(r.$grid.css("padding-right"),10)+o.group.length*r.$list.children().eq(0).outerWidth(!0))},focus:function(e){var t,n,r=this,o=r.$list,i=r.$grid;r.instance.current&&(n=(t=o.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+r.instance.current.index+'"]').addClass("fancybox-thumbs-active")).position(),"y"===r.opts.axis&&(n.top<0||n.top>o.height()-t.outerHeight())?o.stop().animate({scrollTop:o.scrollTop()+n.top},e):"x"===r.opts.axis&&(n.lefti.scrollLeft()+(i.width()-t.outerWidth()))&&o.parent().stop().animate({scrollLeft:n.left},e))},update:function(){var e=this;e.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),e.isVisible?(e.$grid||e.create(),e.instance.trigger("onThumbsShow"),e.focus(0)):e.$grid&&e.instance.trigger("onThumbsHide"),e.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),t(e).on({"onInit.fb":function(e,t){var n;t&&!t.Thumbs&&((n=new r(t)).isActive&&!0===n.opts.autoStart&&n.show())},"beforeShow.fb":function(e,t,n,r){var o=t&&t.Thumbs;o&&o.isVisible&&o.focus(r?0:250)},"afterKeydown.fb":function(e,t,n,r,o){var i=t&&t.Thumbs;i&&i.isActive&&71===o&&(r.preventDefault(),i.toggle())},"beforeClose.fb":function(e,t){var n=t&&t.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,jQuery),function(e,t){"use strict";t.extend(!0,t.fancybox.defaults,{btnTpl:{share:''},share:{url:function(e,t){return!e.currentHash&&"inline"!==t.type&&"html"!==t.type&&(t.origSrc||t.src)||window.location},tpl:''}}),t(e).on("click","[data-fancybox-share]",function(){var e,n,r=t.fancybox.getInstance(),o=r.current||null;o&&("function"===t.type(o.opts.share.url)&&(e=o.opts.share.url.apply(o,[r,o])),n=o.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===o.type?encodeURIComponent(o.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(e)).replace(/\{\{url_raw\}\}/g,function(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=\/]/g,function(e){return t[e]})}(e)).replace(/\{\{descr\}\}/g,r.$caption?encodeURIComponent(r.$caption.text()):""),t.fancybox.open({src:r.translate(r,n),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(e,t){r.$refs.container.one("beforeClose.fb",function(){e.close(null,0)}),t.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(e,t,n){"use strict";function r(){var t=e.location.hash.substr(1),n=t.split("-"),r=n.length>1&&/^\+?\d+$/.test(n[n.length-1])&&parseInt(n.pop(-1),10)||1;return{hash:t,index:r<1?1:r,gallery:n.join("-")}}function o(e){""!==e.gallery&&n("[data-fancybox='"+n.escapeSelector(e.gallery)+"']").eq(e.index-1).focus().trigger("click.fb-start")}function i(e){var t,n;return!!e&&(""!==(n=(t=e.current?e.current.opts:e.opts).hash||(t.$orig?t.$orig.data("fancybox")||t.$orig.data("fancybox-trigger"):""))&&n)}n.escapeSelector||(n.escapeSelector=function(e){return(e+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e})}),n(function(){!1!==n.fancybox.defaults.hash&&(n(t).on({"onInit.fb":function(e,t){var n,o;!1!==t.group[t.currIndex].opts.hash&&(n=r(),(o=i(t))&&n.gallery&&o==n.gallery&&(t.currIndex=n.index-1))},"beforeShow.fb":function(n,r,o,c){var a;o&&!1!==o.opts.hash&&(a=i(r))&&(r.currentHash=a+(r.group.length>1?"-"+(o.index+1):""),e.location.hash!=="#"+r.currentHash&&(c&&!r.origHash&&(r.origHash=e.location.hash),r.hashTimer&&clearTimeout(r.hashTimer),r.hashTimer=setTimeout(function(){"replaceState"in e.history?(e.history[c?"pushState":"replaceState"]({},t.title,e.location.pathname+e.location.search+"#"+r.currentHash),c&&(r.hasCreatedHistory=!0)):e.location.hash=r.currentHash,r.hashTimer=null},300)))},"beforeClose.fb":function(n,r,o){o&&!1!==o.opts.hash&&(clearTimeout(r.hashTimer),r.currentHash&&r.hasCreatedHistory?e.history.back():r.currentHash&&("replaceState"in e.history?e.history.replaceState({},t.title,e.location.pathname+e.location.search+(r.origHash||"")):e.location.hash=r.origHash),r.currentHash=null)}}),n(e).on("hashchange.fb",function(){var e=r(),t=null;n.each(n(".fancybox-container").get().reverse(),function(e,r){var o=n(r).data("FancyBox");if(o&&o.currentHash)return t=o,!1}),t?t.currentHash===e.gallery+"-"+e.index||1===e.index&&t.currentHash==e.gallery||(t.currentHash=null,t.close()):""!==e.gallery&&o(e)}),setTimeout(function(){n.fancybox.getInstance()||o(r())},50))})}(window,document,jQuery),function(e,t){"use strict";var n=(new Date).getTime();t(e).on({"onInit.fb":function(e,t,r){t.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(e){var r=t.current,o=(new Date).getTime();t.group.length<2||!1===r.opts.wheel||"auto"===r.opts.wheel&&"image"!==r.type||(e.preventDefault(),e.stopPropagation(),r.$slide.hasClass("fancybox-animated")||(e=e.originalEvent||e,o-n<250||(n=o,t[(-e.deltaY||-e.deltaX||e.wheelDelta||-e.detail)<0?"next":"previous"]())))})}})}(document,jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t,window,document)}):"object"==typeof exports?module.exports=function(t,n){return t||(t=window),n||(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n,t,t.document)}:e(jQuery,window,document)}(function(e,t,n,r){function o(t){var n,r,i={};e.each(t,function(e){(n=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(r=e.replace(n[0],n[2].toLowerCase()),i[r]=e,"o"===n[1]&&o(t[e]))}),t._hungarianMap=i}function i(t,n,c){var a;t._hungarianMap||o(t),e.each(n,function(o){(a=t._hungarianMap[o])===r||!c&&n[a]!==r||("o"===a.charAt(0)?(n[a]||(n[a]={}),e.extend(!0,n[a],n[o]),i(t[a],n[a],c)):n[a]=n[o])})}function c(e){var t=We.defaults.oLanguage,n=t.sDecimal;if(n&&Be(n),e){var r=e.sZeroRecords;!e.sEmptyTable&&r&&"No data available in table"===t.sEmptyTable&&Ae(e,e,"sZeroRecords","sEmptyTable"),!e.sLoadingRecords&&r&&"Loading..."===t.sLoadingRecords&&Ae(e,e,"sZeroRecords","sLoadingRecords"),e.sInfoThousands&&(e.sThousands=e.sInfoThousands),(e=e.sDecimal)&&n!==e&&Be(e)}}function a(e){if(lt(e,"ordering","bSort"),lt(e,"orderMulti","bSortMulti"),lt(e,"orderClasses","bSortClasses"),lt(e,"orderCellsTop","bSortCellsTop"),lt(e,"order","aaSorting"),lt(e,"orderFixed","aaSortingFixed"),lt(e,"paging","bPaginate"),lt(e,"pagingType","sPaginationType"),lt(e,"pageLength","iDisplayLength"),lt(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&(e.sScrollX=e.sScrollX?"100%":""),"boolean"==typeof e.scrollX&&(e.scrollX=e.scrollX?"100%":""),e=e.aoSearchCols)for(var t=0,n=e.length;t").css({position:"fixed",top:0,left:-1*e(t).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(e("
").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(e("
").css({width:"100%",height:10}))).appendTo("body"),i=o.children(),c=i.children();r.barWidth=i[0].offsetWidth-i[0].clientWidth,r.bScrollOversize=100===c[0].offsetWidth&&100!==i[0].clientWidth,r.bScrollbarLeft=1!==Math.round(c.offset().left),r.bBounding=!!o[0].getBoundingClientRect().width,o.remove()}e.extend(n.oBrowser,We.__browser),n.oScroll.iBarWidth=We.__browser.barWidth}function u(e,t,n,o,i,c){var a,s=!1;for(n!==r&&(a=n,s=!0);o!==i;)e.hasOwnProperty(o)&&(a=s?t(a,e[o],o,e):e[o],s=!0,o+=c);return a}function h(t,r){var o=We.defaults.column,i=t.aoColumns.length;o=e.extend({},We.models.oColumn,o,{nTh:r||n.createElement("th"),sTitle:o.sTitle?o.sTitle:r?r.innerHTML:"",aDataSort:o.aDataSort?o.aDataSort:[i],mData:o.mData?o.mData:i,idx:i});t.aoColumns.push(o),(o=t.aoPreSearchCols)[i]=e.extend({},We.models.oSearch,o[i]),f(t,i,e(r).data())}function f(t,n,o){n=t.aoColumns[n];var c=t.oClasses,a=e(n.nTh);if(!n.sWidthOrig){n.sWidthOrig=a.attr("width")||null;var l=(a.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);l&&(n.sWidthOrig=l[1])}o!==r&&null!==o&&(s(o),i(We.defaults.column,o),o.mDataProp!==r&&!o.mData&&(o.mData=o.mDataProp),o.sType&&(n._sManualType=o.sType),o.className&&!o.sClass&&(o.sClass=o.className),o.sClass&&a.addClass(o.sClass),e.extend(n,o),Ae(n,o,"sWidth","sWidthOrig"),o.iDataSort!==r&&(n.aDataSort=[o.iDataSort]),Ae(n,o,"aDataSort"));var u=n.mData,h=x(u),f=n.mRender?x(n.mRender):null;o=function(e){return"string"==typeof e&&-1!==e.indexOf("@")};n._bAttrSrc=e.isPlainObject(u)&&(o(u.sort)||o(u.type)||o(u.filter)),n._setter=null,n.fnGetData=function(e,t,n){var o=h(e,t,r,n);return f&&t?f(o,t,e,n):o},n.fnSetData=function(e,t,n){return H(u)(e,t,n)},"number"!=typeof u&&(t._rowReadObject=!0),t.oFeatures.bSort||(n.bSortable=!1,a.addClass(c.sSortableNone)),t=-1!==e.inArray("asc",n.asSorting),o=-1!==e.inArray("desc",n.asSorting),n.bSortable&&(t||o)?t&&!o?(n.sSortingClass=c.sSortableAsc,n.sSortingClassJUI=c.sSortJUIAscAllowed):!t&&o?(n.sSortingClass=c.sSortableDesc,n.sSortingClassJUI=c.sSortJUIDescAllowed):(n.sSortingClass=c.sSortable,n.sSortingClassJUI=c.sSortJUI):(n.sSortingClass=c.sSortableNone,n.sSortingClassJUI="")}function d(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;ve(e);for(var n=0,r=t.length;nm[a])i(d.length+m[a],f);else if("string"==typeof m[a])for(l=0,u=d.length;lt&&e[i]--;-1!=o&&n===r&&e.splice(o,1)}function k(e,t,n,o){var i,c=e.aoData[t],a=function(n,r){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=M(e,t,r,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==c.src)){var s=c.anCells;if(s)if(o!==r)a(s[o],o);else for(n=0,i=s.length;n").appendTo(a)),n=0,r=h.length;ntr").attr("role","row"),e(a).find(">tr>th, >tr>td").addClass(u.sHeaderTH),e(s).find(">tr>th, >tr>td").addClass(u.sFooterTH),null!==s)for(n=0,r=(t=t.aoFooter[0]).length;n=t.fnRecordsDisplay()?0:s,t.iInitDisplayStart=-1);s=t._iDisplayStart;var h=t.fnDisplayEnd();if(t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,he(t,!1);else if(l){if(!t.bDestroying&&!F(t))return}else t.iDraw++;if(0!==u.length)for(a=l?t.aoData.length:h,l=l?0:s;l",{class:c?i[0]:""}).append(e("",{valign:"top",colSpan:p(t),class:t.oClasses.sRowEmpty}).html(o))[0];Ne(t,"aoHeaderCallback","header",[e(t.nTHead).children("tr")[0],S(t),s,h,u]),Ne(t,"aoFooterCallback","footer",[e(t.nTFoot).children("tr")[0],S(t),s,h,u]),(i=e(t.nTBody)).children().detach(),i.append(e(n)),Ne(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}}function I(e,t){var n=e.oFeatures,r=n.bFilter;n.bSort&&Ce(e),r?Z(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,O(e),e._drawHold=!1}function P(t){var n=t.oClasses,r=e(t.nTable),o=(r=e("
").insertBefore(r),t.oFeatures),i=e("
",{id:t.sTableId+"_wrapper",class:n.sWrapper+(t.nTFoot?"":" "+n.sNoFooter)});t.nHolding=r[0],t.nTableWrapper=i[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var c,a,s,l,u,h,f=t.sDom.split(""),d=0;d")[0],"'"==(l=f[d+1])||'"'==l){for(u="",h=2;f[d+h]!=l;)u+=f[d+h],h++;"H"==u?u=n.sJUIHeader:"F"==u&&(u=n.sJUIFooter),-1!=u.indexOf(".")?(l=u.split("."),s.id=l[0].substr(1,l[0].length-1),s.className=l[1]):"#"==u.charAt(0)?s.id=u.substr(1,u.length-1):s.className=u,d+=h}i.append(s),i=e(s)}else if(">"==a)i=i.parent();else if("l"==a&&o.bPaginate&&o.bLengthChange)c=ae(t);else if("f"==a&&o.bFilter)c=W(t);else if("r"==a&&o.bProcessing)c=ue(t);else if("t"==a)c=fe(t);else if("i"==a&&o.bInfo)c=te(t);else if("p"==a&&o.bPaginate)c=se(t);else if(0!==We.ext.feature.length)for(h=0,l=(s=We.ext.feature).length;h',l=(l=i.sSearch).match(/_INPUT_/)?l.replace("_INPUT_",s):l+s,u=(r=e("
",{id:a.f?null:o+"_filter",class:r.sFilter}).append(e("
").addClass(n.sLength);return t.aanFeatures.l||(l[0].id=r+"_length"),l.children().append(t.oLanguage.sLengthMenu.replace("_MENU_",c[0].outerHTML)),e("select",l).val(t._iDisplayLength).on("change.DT",function(){ce(t,e(this).val()),O(t)}),e(t.nTable).on("length.dt.DT",function(n,r,o){t===r&&e("select",l).val(o)}),l[0]}function se(t){var n=t.sPaginationType,r=We.ext.pager[n],o="function"==typeof r,i=function(e){O(e)},c=(n=e("
").addClass(t.oClasses.sPaging+n)[0],t.aanFeatures);return o||r.fnInit(t,n,i),c.p||(n.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(e){if(o){var t,n=e._iDisplayStart,a=e._iDisplayLength,s=e.fnRecordsDisplay(),l=(n=(l=-1===a)?0:Math.ceil(n/a),a=l?1:Math.ceil(s/a),s=r(n,a),0);for(t=c.p.length;li&&(r=0):"first"==t?r=0:"previous"==t?0>(r=0<=o?r-o:0)&&(r=0):"next"==t?r+o",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing}).html(t.oLanguage.sProcessing).insertBefore(t.nTable)[0]}function he(t,n){t.oFeatures.bProcessing&&e(t.aanFeatures.r).css("display",n?"block":"none"),Ne(t,null,"processing",[t,n])}function fe(t){(h=e(t.nTable)).attr("role","grid");var n=t.oScroll;if(""===n.sX&&""===n.sY)return t.nTable;var r=n.sX,o=n.sY,i=t.oClasses,c=h.children("caption"),a=c.length?c[0]._captionSide:null,s=e(h[0].cloneNode(!1)),l=e(h[0].cloneNode(!1)),u=h.children("tfoot");u.length||(u=null),s=e("
",{class:i.sScrollWrapper}).append(e("
",{class:i.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:r?r?ze(r):null:"100%"}).append(e("
",{class:i.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(s.removeAttr("id").css("margin-left",0).append("top"===a?c:null).append(h.children("thead"))))).append(e("
",{class:i.sScrollBody}).css({position:"relative",overflow:"auto",width:r?ze(r):null}).append(h)),u&&s.append(e("
",{class:i.sScrollFoot}).css({overflow:"hidden",border:0,width:r?r?ze(r):null:"100%"}).append(e("
",{class:i.sScrollFootInner}).append(l.removeAttr("id").css("margin-left",0).append("bottom"===a?c:null).append(h.children("tfoot")))));var h,f=(h=s.children())[0],d=(i=h[1],u?h[2]:null);return r&&e(i).on("scroll.DT",function(){var e=this.scrollLeft;f.scrollLeft=e,u&&(d.scrollLeft=e)}),e(i).css(o&&n.bCollapse?"max-height":"height",o),t.nScrollHead=f,t.nScrollBody=i,t.nScrollFoot=d,t.aoDrawCallback.push({fn:de,sName:"scrolling"}),s[0]}function de(t){var n,o,i,c,a,s=(h=t.oScroll).sX,l=h.sXInner,u=h.sY,h=h.iBarWidth,f=e(t.nScrollHead),v=f[0].style,p=(b=f.children("div"))[0].style,g=b.children("table"),b=t.nScrollBody,z=e(b),y=b.style,C=e(t.nScrollFoot).children("div"),M=C.children("table"),w=e(t.nTHead),_=e(t.nTable),x=_[0],H=x.style,S=t.nTFoot?e(t.nTFoot):null,L=t.oBrowser,V=L.bScrollOversize,k=ot(t.aoColumns,"nTh"),A=[],T=[],E=[],D=[],N=function(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0};o=b.scrollHeight>b.clientHeight,t.scrollBarVis!==o&&t.scrollBarVis!==r?(t.scrollBarVis=o,d(t)):(t.scrollBarVis=o,_.children("thead, tfoot").remove(),S&&(i=S.clone().prependTo(_),n=S.find("tr"),i=i.find("tr")),c=w.clone().prependTo(_),w=w.find("tr"),o=c.find("tr"),c.find("th, td").removeAttr("tabindex"),s||(y.width="100%",f[0].style.width="100%"),e.each(B(t,c),function(e,n){a=m(t,e),n.style.width=t.aoColumns[a].sWidth}),S&&me(function(e){e.style.width=""},i),f=_.outerWidth(),""===s?(H.width="100%",V&&(_.find("tbody").height()>b.offsetHeight||"scroll"==z.css("overflow-y"))&&(H.width=ze(_.outerWidth()-h)),f=_.outerWidth()):""!==l&&(H.width=ze(l),f=_.outerWidth()),me(N,o),me(function(t){E.push(t.innerHTML),A.push(ze(e(t).css("width")))},o),me(function(t,n){-1!==e.inArray(t,k)&&(t.style.width=A[n])},w),e(o).height(0),S&&(me(N,i),me(function(t){D.push(t.innerHTML),T.push(ze(e(t).css("width")))},i),me(function(e,t){e.style.width=T[t]},n),e(i).height(0)),me(function(e,t){e.innerHTML='
'+E[t]+"
",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=A[t]},o),S&&me(function(e,t){e.innerHTML='
'+D[t]+"
",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=T[t]},i),_.outerWidth()b.offsetHeight||"scroll"==z.css("overflow-y")?f+h:f,V&&(b.scrollHeight>b.offsetHeight||"scroll"==z.css("overflow-y"))&&(H.width=ze(n-h)),(""===s||""!==l)&&ke(t,1,"Possible column misalignment",6)):n="100%",y.width=ze(n),v.width=ze(n),S&&(t.nScrollFoot.style.width=ze(n)),!u&&V&&(y.height=ze(x.offsetHeight+h)),s=_.outerWidth(),g[0].style.width=ze(s),p.width=ze(s),l=_.height()>b.clientHeight||"scroll"==z.css("overflow-y"),p[u="padding"+(L.bScrollbarLeft?"Left":"Right")]=l?h+"px":"0px",S&&(M[0].style.width=ze(s),C[0].style.width=ze(s),C[0].style[u]=l?h+"px":"0px"),_.children("colgroup").insertBefore(_.children("thead")),z.scroll(),!t.bSorted&&!t.bFiltered||t._drawHold||(b.scrollTop=0))}function me(e,t,n){for(var r,o,i=0,c=0,a=t.length;c").appendTo(u.find("tbody"));for(u.find("thead, tfoot").remove(),u.append(e(n.nTHead).clone()).append(e(n.nTFoot).clone()),u.find("tfoot th, tfoot td").css("width",""),f=B(n,u.find("thead")[0]),r=0;r").css({width:o.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(r=0;r").css(s||a?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(u).appendTo(b),s&&l?u.width(l):s?(u.css("width","auto"),u.removeAttr("width"),u.width()").css("width",ze(t)).appendTo(r||n.body),i=o[0].offsetWidth;return o.remove(),i}function ge(t,n){var r=be(t,n);if(0>r)return null;var o=t.aoData[r];return o.nTr?o.anCells[n]:e("").html(M(t,r,n,"display"))[0]}function be(e,t){for(var n,r=-1,o=-1,i=0,c=e.aoData.length;ir&&(r=n.length,o=i);return o}function ze(e){return null===e?"0px":"number"==typeof e?0>e?"0px":e+"px":e.match(/\d$/)?e+"px":e}function ye(t){var n,o,i,c,a,s,l=[],u=t.aoColumns;n=t.aaSortingFixed,o=e.isPlainObject(n);var h=[];for(i=function(t){t.length&&!e.isArray(t[0])?h.push(t):e.merge(h,t)},e.isArray(n)&&i(n),o&&n.pre&&i(n.pre),i(t.aaSorting),o&&n.post&&i(n.post),t=0;tr?1:0))return"asc"===s.dir?n:-n;return(n=i[e])<(r=i[t])?-1:n>r?1:0}):l.sort(function(e,t){var n,r,s,l,u=o.length,h=a[e]._aSortData,f=a[t]._aSortData;for(s=0;sr?1:0})}e.bSorted=!0}function Me(e){for(var t,n,r=e.aoColumns,o=ye(e),i=(e=e.oLanguage.oAria,0),c=r.length;i/g,"");var s=n.nTh;s.removeAttribute("aria-sort"),n.bSortable&&(0a?a+1:3));for(a=0,n=c.length;aa?a+1:3))}t.aLastSort=c}function He(e,t){var n,r=e.aoColumns[t],o=We.ext.order[r.sSortDataType];o&&(n=o.call(e.oInstance,e,t,v(e,t)));for(var i,c=We.ext.type.order[r.sType+"-pre"],a=0,s=e.aoData.length;a=a.length?[0,n[1]]:n)})),n.search!==r&&e.extend(t.oPreviousSearch,ee(n.search)),n.columns)for(i=0,c=n.columns.length;i=n&&(t=n-r),t-=t%r,(-1===r||0>t)&&(t=0),e._iDisplayStart=t}function Ie(t,n){var r=t.renderer,o=We.ext.renderer[n];return e.isPlainObject(r)&&r[n]?o[r[n]]||o._:"string"==typeof r&&o[r]||o._}function Pe(e){return e.oFeatures.bServerSide?"ssp":e.ajax||e.sAjaxSource?"ajax":"dom"}function Re(e,t){var n=[],r=(n=Lt.numbers_length,Math.floor(n/2));return t<=n?n=ct(0,t):e<=r?((n=ct(0,n-2)).push("ellipsis"),n.push(t-1)):(e>=t-1-r?n=ct(t-(n-2),t):((n=ct(e-r+2,e+r-1)).push("ellipsis"),n.push(t-1)),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function Be(t){e.each({num:function(e){return Vt(e,t)},"num-fmt":function(e){return Vt(e,t,Ke)},"html-num":function(e){return Vt(e,t,Xe)},"html-num-fmt":function(e){return Vt(e,t,Xe,Ke)}},function(e,n){Fe.type.order[e+t+"-pre"]=n,e.match(/^html\-/)&&(Fe.type.search[e+t]=Fe.type.search.html)})}function je(e){return function(){var t=[Ve(this[We.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return We.ext.internal[e].apply(this,t)}}var Fe,$e,qe,Ue,We=function(t){this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new $e(e?Ve(this[Fe.iApiIndex]):this)},this.fnAddData=function(t,n){var o=this.api(!0),i=e.isArray(t)&&(e.isArray(t[0])||e.isPlainObject(t[0]))?o.rows.add(t):o.row.add(t);return(n===r||n)&&o.draw(),i.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],o=n.oScroll;e===r||e?t.draw(!1):(""!==o.sX||""!==o.sY)&&de(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();(e===r||e)&&t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var o=this.api(!0),i=(e=o.rows(e)).settings()[0],c=i.aoData[e[0][0]];return e.remove(),t&&t.call(this,i,c),(n===r||n)&&o.draw(),c},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,o,i,c){i=this.api(!0),null===t||t===r?i.search(e,n,o,c):i.column(t).search(e,n,o,c),i.draw()},this.fnGetData=function(e,t){var n=this.api(!0);if(e!==r){var o=e.nodeName?e.nodeName.toLowerCase():"";return t!==r||"td"==o||"th"==o?n.cell(e,t).data():n.row(e).data()||null}return n.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return e!==r?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();return"TR"==n?t.row(e).index():"TD"==n||"TH"==n?[(e=t.cell(e).index()).row,e.columnVisible,e.column]:null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){var n=this.api(!0).page(e);(t===r||t)&&n.draw(!1)},this.fnSetColumnVis=function(e,t,n){e=this.api(!0).column(e).visible(t),(n===r||n)&&e.columns.adjust().draw()},this.fnSettings=function(){return Ve(this[Fe.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,o,i){var c=this.api(!0);return n===r||null===n?c.row(t).data(e):c.cell(t,n).data(e),(i===r||i)&&c.columns.adjust(),(o===r||o)&&c.draw(),0},this.fnVersionCheck=Fe.fnVersionCheck;var n=this,o=t===r,u=this.length;for(var d in o&&(t={}),this.oApi=this.internal=Fe.internal,We.ext.internal)d&&(this[d]=je(d));return this.each(function(){var d,m={},v=1").appendTo(M)),S.nTHead=n[0],0===(n=M.children("tbody")).length&&(n=e("").appendTo(M)),S.nTBody=n[0],0===(n=M.children("tfoot")).length&&t.length>0&&(""!==S.oScroll.sX||""!==S.oScroll.sY)&&(n=e("").appendTo(M)),0===n.length||0===n.children().length?M.addClass(L.sNoFooter):n.length>0&&(S.nTFoot=n[0],R(S.aoFooter,S.nTFoot)),v.aaData)for(p=0;p/g,Ge=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Qe=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Ke=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Je=function(e){return!e||!0===e||"-"===e},et=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},tt=function(e,t){return Ze[t]||(Ze[t]=RegExp(ft(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(Ze[t],"."):e},nt=function(e,t,n){var r="string"==typeof e;return!!Je(e)||(t&&r&&(e=tt(e,t)),n&&r&&(e=e.replace(Ke,"")),!isNaN(parseFloat(e))&&isFinite(e))},rt=function(e,t,n){return!!Je(e)||((Je(e)||"string"==typeof e)&&!!nt(e.replace(Xe,""),t,n)||null)},ot=function(e,t,n){var o=[],i=0,c=e.length;if(n!==r)for(;ie.length))for(var n=(t=e.slice().sort())[0],r=1,o=t.length;r")[0],mt=dt.textContent!==r,vt=/<.*?>/g,pt=We.util.throttle,gt=[],bt=Array.prototype;$e=function(t,n){if(!(this instanceof $e))return new $e(t,n);var r=[],o=function(t){(t=function(t){var n,r,o=We.settings,i=e.map(o,function(e){return e.nTable});return t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(n=e.inArray(t,i))?[o[n]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?r=e(t):t instanceof e&&(r=t),r?r.map(function(){return-1!==(n=e.inArray(this,i))?o[n]:null}).toArray():void 0):[]}(t))&&(r=r.concat(t))};if(e.isArray(t))for(var i=0,c=t.length;ie?new $e(t[e],this[e]):null},filter:function(e){var t=[];if(bt.filter)t=bt.filter.call(this,e,this);else for(var n=0,r=this.length;n").addClass(n),e("td",r).addClass(n).html(t)[0].colSpan=p(i),c.push(r[0]))};a(t,n),o._details&&o._details.detach(),o._details=e(c),o._detailsShow&&o._details.insertAfter(o.nTr)}return this}),qe(["row().child.show()","row().child().show()"],function(){return xt(this,!0),this}),qe(["row().child.hide()","row().child().hide()"],function(){return xt(this,!1),this}),qe(["row().child.remove()","row().child().remove()"],function(){return _t(this),this}),qe("row().child.isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1});var Ht=/^([^:]+):(name|visIdx|visible)$/,St=function(e,t,n,r,o){n=[],r=0;for(var i=o.length;r=0?n:c.length+n];if("function"==typeof t){var o=wt(r,i);return e.map(c,function(e,n){return t(n,St(r,n,0,0,o),s[n])?n:null})}var l="string"==typeof t?t.match(Ht):"";if(l)switch(l[2]){case"visIdx":case"visible":if((n=parseInt(l[1],10))<0){var u=e.map(c,function(e,t){return e.bVisible?t:null});return[u[u.length+n]]}return[m(r,n)];case"name":return e.map(a,function(e,t){return e===l[1]?t:null});default:return[]}return t.nodeName&&t._DT_CellIndex?[t._DT_CellIndex.column]:(n=e(s).filter(t).map(function(){return e.inArray(this,s)}).toArray()).length||!t.nodeName?n:(n=e(t).closest("*[data-dt-column]")).length?[n.data("dt-column")]:[]},r,i)},1);return o.selector.cols=t,o.selector.opts=n,o}),Ue("columns().header()","column().header()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].nTh},1)}),Ue("columns().footer()","column().footer()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].nTf},1)}),Ue("columns().data()","column().data()",function(){return this.iterator("column-rows",St,1)}),Ue("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].mData},1)}),Ue("columns().cache()","column().cache()",function(e){return this.iterator("column-rows",function(t,n,r,o,i){return it(t.aoData,i,"search"===e?"_aFilterData":"_aSortData",n)},1)}),Ue("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,t,n,r,o){return it(e.aoData,o,"anCells",t)},1)}),Ue("columns().visible()","column().visible()",function(t,n){var o=this.iterator("column",function(n,o){if(t===r)return n.aoColumns[o].bVisible;var i,c,a,s=n.aoColumns,l=s[o],u=n.aoData;if(t!==r&&l.bVisible!==t){if(t){var h=e.inArray(!0,ot(s,"bVisible"),o+1);for(i=0,c=u.length;in;return!0},We.isDataTable=We.fnIsDataTable=function(t){var n=e(t).get(0),r=!1;return t instanceof We.Api||(e.each(We.settings,function(t,o){var i=o.nScrollHead?e("table",o.nScrollHead)[0]:null,c=o.nScrollFoot?e("table",o.nScrollFoot)[0]:null;o.nTable!==n&&i!==n&&c!==n||(r=!0)}),r)},We.tables=We.fnTables=function(t){var n=!1;e.isPlainObject(t)&&(n=t.api,t=t.visible);var r=e.map(We.settings,function(n){if(!t||t&&e(n.nTable).is(":visible"))return n.nTable});return n?new $e(r):r},We.camelToHungarian=i,qe("$()",function(t,n){var r=this.rows(n).nodes();r=e(r);return e([].concat(r.filter(t).toArray(),r.find(t).toArray()))}),e.each(["on","one","off"],function(t,n){qe(n+"()",function(){var t=Array.prototype.slice.call(arguments);t[0]=e.map(t[0].split(/\s/),function(e){return e.match(/\.dt\b/)?e:e+".dt"}).join(" ");var r=e(this.tables().nodes());return r[n].apply(r,t),this})}),qe("clear()",function(){return this.iterator("table",function(e){L(e)})}),qe("settings()",function(){return new $e(this.context,this.context)}),qe("init()",function(){var e=this.context;return e.length?e[0].oInit:null}),qe("data()",function(){return this.iterator("table",function(e){return ot(e.aoData,"_aData")}).flatten()}),qe("destroy()",function(n){return n=n||!1,this.iterator("table",function(r){var o,i=r.nTableWrapper.parentNode,c=r.oClasses,a=r.nTable,s=r.nTBody,l=r.nTHead,u=r.nTFoot,h=e(a),f=(s=e(s),e(r.nTableWrapper)),d=e.map(r.aoData,function(e){return e.nTr});r.bDestroying=!0,Ne(r,"aoDestroyCallback","destroy",[r]),n||new $e(r).columns().visible(!0),f.off(".DT").find(":not(tbody *)").off(".DT"),e(t).off(".DT-"+r.sInstance),a!=l.parentNode&&(h.children("thead").detach(),h.append(l)),u&&a!=u.parentNode&&(h.children("tfoot").detach(),h.append(u)),r.aaSorting=[],r.aaSortingFixed=[],xe(r),e(d).removeClass(r.asStripeClasses.join(" ")),e("th, td",l).removeClass(c.sSortable+" "+c.sSortableAsc+" "+c.sSortableDesc+" "+c.sSortableNone),s.children().detach(),s.append(d),h[l=n?"remove":"detach"](),f[l](),!n&&i&&(i.insertBefore(a,r.nTableReinsertBefore),h.css("width",r.sDestroyWidth).removeClass(c.sTable),(o=r.asDestroyStripes.length)&&s.children().each(function(t){e(this).addClass(r.asDestroyStripes[t%o])})),-1!==(i=e.inArray(r,We.settings))&&We.settings.splice(i,1)})}),e.each(["column","row","cell"],function(e,t){qe(t+"s().every()",function(e){var n=this.selector.opts,o=this;return this.iterator(t,function(i,c,a,s,l){e.call(o[t](c,"cell"===t?a:n,"cell"===t?n:r),c,a,s,l)})})}),qe("i18n()",function(t,n,o){var i=this.context[0];return(t=x(t)(i.oLanguage))===r&&(t=n),o!==r&&e.isPlainObject(t)&&(t=t[o]!==r?t[o]:t._),t.replace("%d",o)}),We.version="1.10.18",We.settings=[],We.models={},We.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},We.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},We.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},We.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(e){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(e){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:e.extend({},We.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},o(We.defaults),We.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},o(We.defaults.column),We.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:r,oAjaxData:r,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Pe(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Pe(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,r=this.aiDisplay.length,o=this.oFeatures,i=o.bPaginate;return o.bServerSide?!1===i||-1===e?t+r:Math.min(t+e,this._iRecordsDisplay):!i||n>r||-1===e?r:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},We.ext=Fe={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:We.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:We.version},e.extend(Fe,{afnFiltering:Fe.search,aTypes:Fe.type.detect,ofnSearch:Fe.type.search,oSort:Fe.type.order,afnSortData:Fe.order,aoFeatures:Fe.feature,oApi:Fe.internal,oStdClasses:Fe.classes,oPagination:Fe.pager}),e.extend(We.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Lt=We.ext.pager;e.extend(Lt,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(e,t){return[Re(e,t)]},simple_numbers:function(e,t){return["previous",Re(e,t),"next"]},full_numbers:function(e,t){return["first","previous",Re(e,t),"next","last"]},first_last_numbers:function(e,t){return["first",Re(e,t),"last"]},_numbers:Re,numbers_length:7}),e.extend(!0,We.ext.renderer,{pageButton:{_:function(t,o,i,c,a,s){var l,u,h,f=t.oClasses,d=t.oLanguage.oPaginate,m=t.oLanguage.oAria.paginate||{},v=0,p=function(n,r){var o,c,h,g,b=function(e){le(t,e.data.action,!0)};for(o=0,c=r.length;o").appendTo(n),p(h,g);else{switch(l=null,u="",g){case"ellipsis":n.append('');break;case"first":l=d.sFirst,u=g+(a>0?"":" "+f.sPageButtonDisabled);break;case"previous":l=d.sPrevious,u=g+(a>0?"":" "+f.sPageButtonDisabled);break;case"next":l=d.sNext,u=g+(a",{class:f.sPageButton+" "+u,"aria-controls":t.sTableId,"aria-label":m[g],"data-dt-idx":v,tabindex:t.iTabIndex,id:0===i&&"string"==typeof g?t.sTableId+"_"+g:null}).html(l).appendTo(n),{action:g},b),v++)}};try{h=e(o).find(n.activeElement).data("dt-idx")}catch(e){}p(e(o).empty(),c),h!==r&&e(o).find("[data-dt-idx="+h+"]").focus()}}}),e.extend(We.ext.type.detect,[function(e,t){var n=t.oLanguage.sDecimal;return nt(e,n)?"num"+n:null},function(e){if(e&&!(e instanceof Date)&&!Ge.test(e))return null;var t=Date.parse(e);return null!==t&&!isNaN(t)||Je(e)?"date":null},function(e,t){var n=t.oLanguage.sDecimal;return nt(e,n,!0)?"num-fmt"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return rt(e,n)?"html-num"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return rt(e,n,!0)?"html-num-fmt"+n:null},function(e){return Je(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),e.extend(We.ext.type.search,{html:function(e){return Je(e)?e:"string"==typeof e?e.replace(Ye," ").replace(Xe,""):""},string:function(e){return Je(e)?e:"string"==typeof e?e.replace(Ye," "):e}});var Vt=function(e,t,n,r){return 0===e||e&&"-"!==e?(t&&(e=tt(e,t)),e.replace&&(n&&(e=e.replace(n,"")),r&&(e=e.replace(r,""))),1*e):-1/0};e.extend(Fe.type.order,{"date-pre":function(e){return e=Date.parse(e),isNaN(e)?-1/0:e},"html-pre":function(e){return Je(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return Je(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return et?1:0},"string-desc":function(e,t){return et?-1:0}}),Be(""),e.extend(!0,We.ext.renderer,{header:{_:function(t,n,r,o){e(t.nTable).on("order.dt.DT",function(e,i,c,a){t===i&&(e=r.idx,n.removeClass(r.sSortingClass+" "+o.sSortAsc+" "+o.sSortDesc).addClass("asc"==a[e]?o.sSortAsc:"desc"==a[e]?o.sSortDesc:r.sSortingClass))})},jqueryui:function(t,n,r,o){e("
").addClass(o.sSortJUIWrapper).append(n.contents()).append(e("").addClass(o.sSortIcon+" "+r.sSortingClassJUI)).appendTo(n),e(t.nTable).on("order.dt.DT",function(e,i,c,a){t===i&&(e=r.idx,n.removeClass(o.sSortAsc+" "+o.sSortDesc).addClass("asc"==a[e]?o.sSortAsc:"desc"==a[e]?o.sSortDesc:r.sSortingClass),n.find("span."+o.sSortIcon).removeClass(o.sSortJUIAsc+" "+o.sSortJUIDesc+" "+o.sSortJUI+" "+o.sSortJUIAscAllowed+" "+o.sSortJUIDescAllowed).addClass("asc"==a[e]?o.sSortJUIAsc:"desc"==a[e]?o.sSortJUIDesc:r.sSortingClassJUI))})}}});var kt=function(e){return"string"==typeof e?e.replace(//g,">").replace(/"/g,"""):e};return We.render={number:function(e,t,n,r,o){return{display:function(i){if("number"!=typeof i&&"string"!=typeof i)return i;var c=0>i?"-":"",a=parseFloat(i);return isNaN(a)?kt(i):(a=a.toFixed(n),i=Math.abs(a),a=parseInt(i,10),i=n?t+(i-a).toFixed(n).substring(2):"",c+(r||"")+a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+i+(o||""))}}},text:function(){return{display:kt}}},e.extend(We.ext.internal,{_fnExternApiFunc:je,_fnBuildAjax:j,_fnAjaxUpdate:F,_fnAjaxParameters:$,_fnAjaxUpdateDraw:q,_fnAjaxDataSrc:U,_fnAddColumn:h,_fnColumnOptions:f,_fnAdjustColumnSizing:d,_fnVisibleToColumnIndex:m,_fnColumnIndexToVisible:v,_fnVisbleColumns:p,_fnGetColumns:g,_fnColumnTypes:b,_fnApplyColumnDefs:z,_fnHungarianMap:o,_fnCamelToHungarian:i,_fnLanguageCompat:c,_fnBrowserDetect:l,_fnAddData:y,_fnAddTr:C,_fnNodeToDataIndex:function(e,t){return t._DT_RowIndex!==r?t._DT_RowIndex:null},_fnNodeToColumnIndex:function(t,n,r){return e.inArray(r,t.aoData[n].anCells)},_fnGetCellData:M,_fnSetCellData:w,_fnSplitObjNotation:_,_fnGetObjectDataFn:x,_fnSetObjectDataFn:H,_fnGetDataMaster:S,_fnClearTable:L,_fnDeleteIndex:V,_fnInvalidate:k,_fnGetRowElements:A,_fnCreateTr:T,_fnBuildHead:D,_fnDrawHead:N,_fnDraw:O,_fnReDraw:I,_fnAddOptionsHtml:P,_fnDetectHeader:R,_fnGetUniqueThs:B,_fnFeatureHtmlFilter:W,_fnFilterComplete:Z,_fnFilterCustom:Y,_fnFilterColumn:X,_fnFilter:G,_fnFilterCreateSearch:Q,_fnEscapeRegex:ft,_fnFilterData:K,_fnFeatureHtmlInfo:te,_fnUpdateInfo:ne,_fnInfoMacros:re,_fnInitialise:oe,_fnInitComplete:ie,_fnLengthChange:ce,_fnFeatureHtmlLength:ae,_fnFeatureHtmlPaginate:se,_fnPageChange:le,_fnFeatureHtmlProcessing:ue,_fnProcessingDisplay:he,_fnFeatureHtmlTable:fe,_fnScrollDraw:de,_fnApplyToChildren:me,_fnCalculateColumnWidths:ve,_fnThrottle:pt,_fnConvertToWidth:pe,_fnGetWidestNode:ge,_fnGetMaxLenString:be,_fnStringToCss:ze,_fnSortFlatten:ye,_fnSort:Ce,_fnSortAria:Me,_fnSortListener:we,_fnSortAttachListener:_e,_fnSortingClasses:xe,_fnSortData:He,_fnSaveState:Se,_fnLoadState:Le,_fnSettingsFromNode:Ve,_fnLog:ke,_fnMap:Ae,_fnBindAction:Ee,_fnCallbackReg:De,_fnCallbackFire:Ne,_fnLengthOverflow:Oe,_fnRenderer:Ie,_fnDataSource:Pe,_fnRowAttributes:E,_fnExtend:Te,_fnCalculateEnd:function(){}}),e.fn.dataTable=We,We.$=e,e.fn.dataTableSettings=We.settings,e.fn.dataTableExt=We.ext,e.fn.DataTable=function(t){return e(this).dataTable(t).api()},e.each(We,function(t,n){e.fn.DataTable[t]=n}),e.fn.dataTable}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e,t){function n(){return new Date(Date.UTC.apply(Date,arguments))}function r(){var e=new Date;return n(e.getFullYear(),e.getMonth(),e.getDate())}function o(e,t){return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e.getUTCDate()===t.getUTCDate()}function i(n,r){return function(){return r!==t&&e.fn.datepicker.deprecated(r),this[n].apply(this,arguments)}}function c(t){var n={};if(m[t]||(t=t.split("-")[0],m[t])){var r=m[t];return e.each(d,function(e,t){t in r&&(n[t]=r[t])}),n}}var a=function(){var t={get:function(e){return this.slice(e)[0]},contains:function(e){for(var t=e&&e.valueOf(),n=0,r=this.length;n]/g)||[]).length<=0||e(n).length>0)}catch(e){return!1}},_process_options:function(t){this._o=e.extend({},this._o,t);var o=this.o=e.extend({},this._o),i=o.language;m[i]||(i=i.split("-")[0],m[i]||(i=f.language)),o.language=i,o.startView=this._resolveViewName(o.startView),o.minViewMode=this._resolveViewName(o.minViewMode),o.maxViewMode=this._resolveViewName(o.maxViewMode),o.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,o.startView)),!0!==o.multidate&&(o.multidate=Number(o.multidate)||!1,!1!==o.multidate&&(o.multidate=Math.max(0,o.multidate))),o.multidateSeparator=String(o.multidateSeparator),o.weekStart%=7,o.weekEnd=(o.weekStart+6)%7;var c=v.parseFormat(o.format);o.startDate!==-1/0&&(o.startDate?o.startDate instanceof Date?o.startDate=this._local_to_utc(this._zero_time(o.startDate)):o.startDate=v.parseDate(o.startDate,c,o.language,o.assumeNearbyYear):o.startDate=-1/0),o.endDate!==1/0&&(o.endDate?o.endDate instanceof Date?o.endDate=this._local_to_utc(this._zero_time(o.endDate)):o.endDate=v.parseDate(o.endDate,c,o.language,o.assumeNearbyYear):o.endDate=1/0),o.daysOfWeekDisabled=this._resolveDaysOfWeek(o.daysOfWeekDisabled||[]),o.daysOfWeekHighlighted=this._resolveDaysOfWeek(o.daysOfWeekHighlighted||[]),o.datesDisabled=o.datesDisabled||[],e.isArray(o.datesDisabled)||(o.datesDisabled=o.datesDisabled.split(",")),o.datesDisabled=e.map(o.datesDisabled,function(e){return v.parseDate(e,c,o.language,o.assumeNearbyYear)});var a=String(o.orientation).toLowerCase().split(/\s+/g),s=o.orientation.toLowerCase();if(a=e.grep(a,function(e){return/^auto|left|right|top|bottom$/.test(e)}),o.orientation={x:"auto",y:"auto"},s&&"auto"!==s)if(1===a.length)switch(a[0]){case"top":case"bottom":o.orientation.y=a[0];break;case"left":case"right":o.orientation.x=a[0]}else s=e.grep(a,function(e){return/^left|right$/.test(e)}),o.orientation.x=s[0]||"auto",s=e.grep(a,function(e){return/^top|bottom$/.test(e)}),o.orientation.y=s[0]||"auto";if(o.defaultViewDate instanceof Date||"string"==typeof o.defaultViewDate)o.defaultViewDate=v.parseDate(o.defaultViewDate,c,o.language,o.assumeNearbyYear);else if(o.defaultViewDate){var l=o.defaultViewDate.year||(new Date).getFullYear(),u=o.defaultViewDate.month||0,h=o.defaultViewDate.day||1;o.defaultViewDate=n(l,u,h)}else o.defaultViewDate=r()},_applyEvents:function(e){for(var n,r,o,i=0;io?(this.picker.addClass("datepicker-orient-right"),f+=h-t):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var m=this.o.orientation.y;if("auto"===m&&(m=-i+d-n<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+m),"top"===m?d-=n+parseInt(this.picker.css("padding-top")):d+=u,this.o.rtl){var v=o-(f+h);this.picker.css({top:d,right:v,zIndex:s})}else this.picker.css({top:d,left:f,zIndex:s});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),n=[],r=!1;return arguments.length?(e.each(arguments,e.proxy(function(e,t){t instanceof Date&&(t=this._local_to_utc(t)),n.push(t)},this)),r=!0):(n=(n=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?n.split(this.o.multidateSeparator):[n],delete this.element.data().date),n=e.map(n,e.proxy(function(e){return v.parseDate(e,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),n=e.grep(n,e.proxy(function(e){return!this.dateWithinRange(e)||!e},this),!0),this.dates.replace(n),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),r?(this.setValue(),this.element.change()):this.dates.length&&String(t)!==String(this.dates)&&r&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var t=this.o.weekStart,n="";for(this.o.calendarWeeks&&(n+=' ');t";n+="",this.picker.find(".datepicker-days thead").append(n)}},fillMonths:function(){for(var e=this._utc_to_local(this.viewDate),t="",n=0;n<12;n++)t+=''+m[this.o.language].monthsShort[n]+"";this.picker.find(".datepicker-months td").html(t)},setRange:function(t){t&&t.length?this.range=e.map(t,function(e){return e.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var n=[],i=this.viewDate.getUTCFullYear(),c=this.viewDate.getUTCMonth(),a=r();return t.getUTCFullYear()i||t.getUTCFullYear()===i&&t.getUTCMonth()>c)&&n.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&n.push("focused"),this.o.todayHighlight&&o(t,a)&&n.push("today"),-1!==this.dates.contains(t)&&n.push("active"),this.dateWithinRange(t)||n.push("disabled"),this.dateIsDisabled(t)&&n.push("disabled","disabled-date"),-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&n.push("highlighted"),this.range&&(t>this.range[0]&&ta)&&l.push("disabled"),z===g&&l.push("focused"),s!==e.noop&&((h=s(new Date(z,0,1)))===t?h={}:"boolean"==typeof h?h={enabled:h}:"string"==typeof h&&(h={classes:h}),!1===h.enabled&&l.push("disabled"),h.classes&&(l=l.concat(h.classes.split(/\s+/))),h.tooltip&&(u=h.tooltip)),f+='"+z+"";m.find(".datepicker-switch").text(v+"-"+p),m.find("td").html(f)},fill:function(){var o,i,c=new Date(this.viewDate),a=c.getUTCFullYear(),s=c.getUTCMonth(),l=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,u=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,f=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,d=m[this.o.language].today||m.en.today||"",p=m[this.o.language].clear||m.en.clear||"",g=m[this.o.language].titleFormat||m.en.titleFormat,b=r(),z=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&b>=this.o.startDate&&b<=this.o.endDate&&!this.weekOfDateIsDisabled(b);if(!isNaN(a)&&!isNaN(s)){this.picker.find(".datepicker-days .datepicker-switch").text(v.formatDate(c,g,this.o.language)),this.picker.find("tfoot .today").text(d).css("display",z?"table-cell":"none"),this.picker.find("tfoot .clear").text(p).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var y=n(a,s,0),C=y.getUTCDate();y.setUTCDate(C-(y.getUTCDay()-this.o.weekStart+7)%7);var M=new Date(y);y.getUTCFullYear()<100&&M.setUTCFullYear(y.getUTCFullYear()),M.setUTCDate(M.getUTCDate()+42),M=M.valueOf();for(var w,_,x=[];y.valueOf()"),this.o.calendarWeeks)){var H=new Date(+y+(this.o.weekStart-w-7)%7*864e5),S=new Date(Number(H)+(11-H.getUTCDay())%7*864e5),L=new Date(Number(L=n(S.getUTCFullYear(),0,1))+(11-L.getUTCDay())%7*864e5),V=(S-L)/864e5/7+1;x.push(''+V+"")}(_=this.getClassNames(y)).push("day");var k=y.getUTCDate();this.o.beforeShowDay!==e.noop&&((i=this.o.beforeShowDay(this._utc_to_local(y)))===t?i={}:"boolean"==typeof i?i={enabled:i}:"string"==typeof i&&(i={classes:i}),!1===i.enabled&&_.push("disabled"),i.classes&&(_=_.concat(i.classes.split(/\s+/))),i.tooltip&&(o=i.tooltip),i.content&&(k=i.content)),_=e.isFunction(e.uniqueSort)?e.uniqueSort(_):e.unique(_),x.push(''+k+""),o=null,w===this.o.weekEnd&&x.push(""),y.setUTCDate(y.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(x.join(""));var A=m[this.o.language].monthsTitle||m.en.monthsTitle||"Months",T=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?A:a).end().find("tbody span").removeClass("active");if(e.each(this.dates,function(e,t){t.getUTCFullYear()===a&&T.eq(t.getUTCMonth()).addClass("active")}),(ah)&&T.addClass("disabled"),a===l&&T.slice(0,u).addClass("disabled"),a===h&&T.slice(f+1).addClass("disabled"),this.o.beforeShowMonth!==e.noop){var E=this;e.each(T,function(n,r){var o=new Date(a,n,1),i=E.o.beforeShowMonth(o);i===t?i={}:"boolean"==typeof i?i={enabled:i}:"string"==typeof i&&(i={classes:i}),!1!==i.enabled||e(r).hasClass("disabled")||e(r).addClass("disabled"),i.classes&&e(r).addClass(i.classes),i.tooltip&&e(r).prop("title",i.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,a,l,h,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,a,l,h,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,a,l,h,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var e,t,n=new Date(this.viewDate),r=n.getUTCFullYear(),o=n.getUTCMonth(),i=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,c=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,s=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,l=1;switch(this.viewMode){case 4:l*=10;case 3:l*=10;case 2:l*=10;case 1:e=Math.floor(r/l)*l<=i,t=Math.floor(r/l)*l+l>a;break;case 0:e=r<=i&&o<=c,t=r>=a&&o>=s}this.picker.find(".prev").toggleClass("disabled",e),this.picker.find(".next").toggleClass("disabled",t)}},click:function(t){var o,i,c;t.preventDefault(),t.stopPropagation(),(o=e(t.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),o.hasClass("today")&&!o.hasClass("day")&&(this.setViewMode(0),this._setDate(r(),"linked"===this.o.todayBtn?null:"view")),o.hasClass("clear")&&this.clearDates(),o.hasClass("disabled")||(o.hasClass("month")||o.hasClass("year")||o.hasClass("decade")||o.hasClass("century"))&&(this.viewDate.setUTCDate(1),1,1===this.viewMode?(c=o.parent().find("span").index(o),i=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(c)):(c=0,i=Number(o.text()),this.viewDate.setUTCFullYear(i)),this._trigger(v.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(n(i,c,1)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(t){var n=e(t.currentTarget).data("date"),r=new Date(n);this.o.updateViewDate&&(r.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),r.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(r)},navArrowsClick:function(t){var n=e(t.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(n*=12*v.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,n),this._trigger(v.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(e){var t=this.dates.contains(e);if(e||this.dates.clear(),-1!==t?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):!1===this.o.multidate?(this.dates.clear(),this.dates.push(e)):this.dates.push(e),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(e,t){t&&"date"!==t||this._toggle_multidate(e&&new Date(e)),(!t&&this.o.updateViewDate||"view"===t)&&(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),t&&"view"===t||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(e,t){var n=new Date(e);return n.setUTCDate(e.getUTCDate()+t),n},moveWeek:function(e,t){return this.moveDay(e,7*t)},moveMonth:function(e,t){if(!function(e){return e&&!isNaN(e.getTime())}(e))return this.o.defaultViewDate;if(!t)return e;var n,r,o=new Date(e.valueOf()),i=o.getUTCDate(),c=o.getUTCMonth(),a=Math.abs(t);if(t=t>0?1:-1,1===a)r=-1===t?function(){return o.getUTCMonth()===c}:function(){return o.getUTCMonth()!==n},n=c+t,o.setUTCMonth(n),n=(n+12)%12;else{for(var s=0;s0},dateWithinRange:function(e){return e>=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(this.picker.is(":visible")){var t,n,r=!1,o=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),e.preventDefault(),e.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===e.keyCode||38===e.keyCode?-1:1,0===this.viewMode?e.ctrlKey?(n=this.moveAvailableDate(o,t,"moveYear"))&&this._trigger("changeYear",this.viewDate):e.shiftKey?(n=this.moveAvailableDate(o,t,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===e.keyCode||39===e.keyCode?n=this.moveAvailableDate(o,t,"moveDay"):this.weekOfDateIsDisabled(o)||(n=this.moveAvailableDate(o,t,"moveWeek")):1===this.viewMode?(38!==e.keyCode&&40!==e.keyCode||(t*=4),n=this.moveAvailableDate(o,t,"moveMonth")):2===this.viewMode&&(38!==e.keyCode&&40!==e.keyCode||(t*=4),n=this.moveAvailableDate(o,t,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),e.preventDefault());break;case 13:if(!this.o.forceParse)break;o=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(o),r=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),e.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}r&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==e.keyCode&&27!==e.keyCode||(this.show(),e.stopPropagation())},setViewMode:function(e){this.viewMode=e,this.picker.children("div").hide().filter(".datepicker-"+v.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var l=function(t,n){e.data(t,"datepicker",this),this.element=e(t),this.inputs=e.map(n.inputs,function(e){return e.jquery?e[0]:e}),delete n.inputs,this.keepEmptyValues=n.keepEmptyValues,delete n.keepEmptyValues,h.call(e(this.inputs),n).on("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,function(t){return e.data(t,"datepicker")}),this.updateDates()};l.prototype={updateDates:function(){this.dates=e.map(this.pickers,function(e){return e.getUTCDate()}),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,function(e){return e.valueOf()});e.each(this.pickers,function(e,n){n.setRange(t)})},clearDates:function(){e.each(this.pickers,function(e,t){t.clearDates()})},dateUpdated:function(n){if(!this.updating){this.updating=!0;var r=e.data(n.target,"datepicker");if(r!==t){var o=r.getUTCDate(),i=this.keepEmptyValues,c=e.inArray(n.target,this.inputs),a=c-1,s=c+1,l=this.inputs.length;if(-1!==c){if(e.each(this.pickers,function(e,t){t.getUTCDate()||t!==r&&i||t.setUTCDate(o)}),o=0&&othis.dates[s])for(;sthis.dates[s];)this.pickers[s++].setUTCDate(o);this.updateDates(),delete this.updating}}}},destroy:function(){e.map(this.pickers,function(e){e.destroy()}),e(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:i("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var u=e.fn.datepicker,h=function(n){var r,o=Array.apply(null,arguments);if(o.shift(),this.each(function(){var t=e(this),i=t.data("datepicker"),a="object"==typeof n&&n;if(!i){var u=function(t,n){function r(e,t){return t.toLowerCase()}var o=e(t).data(),i={},c=new RegExp("^"+n.toLowerCase()+"([A-Z])");for(var a in n=new RegExp("^"+n.toLowerCase()),o)n.test(a)&&(i[a.replace(c,r)]=o[a]);return i}(this,"date"),h=c(e.extend({},f,u,a).language),d=e.extend({},f,h,u,a);t.hasClass("input-daterange")||d.inputs?(e.extend(d,{inputs:d.inputs||t.find("input").toArray()}),i=new l(this,d)):i=new s(this,d),t.data("datepicker",i)}"string"==typeof n&&"function"==typeof i[n]&&(r=i[n].apply(i,o))}),r===t||r instanceof s||r instanceof l)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+n+" function)");return r};e.fn.datepicker=h;var f=e.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:e.noop,beforeShowMonth:e.noop,beforeShowYear:e.noop,beforeShowDecade:e.noop,beforeShowCentury:e.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0},d=e.fn.datepicker.locale_opts=["format","rtl","weekStart"];e.fn.datepicker.Constructor=s;var m=e.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},v={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(e){if("function"==typeof e.toValue&&"function"==typeof e.toDisplay)return e;var t=e.replace(this.validParts,"\0").split("\0"),n=e.match(this.validParts);if(!t||!t.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:t,parts:n}},parseDate:function(n,o,i,c){function a(){var e=this.slice(0,l[f].length),t=l[f].slice(0,e.length);return e.toLowerCase()===t.toLowerCase()}if(!n)return t;if(n instanceof Date)return n;if("string"==typeof o&&(o=v.parseFormat(o)),o.toValue)return o.toValue(n,o,i);var l,u,h,f,d,p={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},g={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(n in g&&(n=g[n]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(n)){for(l=n.match(/([\-+]\d+)([dmwy])/gi),n=new Date,f=0;f(new Date).getFullYear()+t&&(e-=100),e}(t,c):t)},m:function(e,t){if(isNaN(e))return e;for(t-=1;t<0;)t+=12;for(t%=12,e.setUTCMonth(t);e.getUTCMonth()!==t;)e.setUTCDate(e.getUTCDate()-1);return e},d:function(e,t){return e.setUTCDate(t)}};M.yy=M.yyyy,M.M=M.MM=M.mm=M.m,M.dd=M.d,n=r();var w=o.parts.slice();if(l.length!==w.length&&(w=e(w).filter(function(t,n){return-1!==e.inArray(n,C)}).toArray()),l.length===w.length){var _,x,H;for(f=0,_=w.length;f<_;f++){if(b=parseInt(l[f],10),u=w[f],isNaN(b))switch(u){case"MM":z=e(m[i].months).filter(a),b=e.inArray(z[0],m[i].months)+1;break;case"M":z=e(m[i].monthsShort).filter(a),b=e.inArray(z[0],m[i].monthsShort)+1}y[u]=b}for(f=0;f'+f.templates.leftArrow+''+f.templates.rightArrow+"",contTemplate:'',footTemplate:''};v.template='
'+v.headTemplate+""+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+"
",e.fn.datepicker.DPGlobal=v,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=u,this},e.fn.datepicker.version="1.9.0",e.fn.datepicker.deprecated=function(e){var t=window.console;t&&t.warn&&t.warn("DEPRECATED: "+e)},e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var n=e(this);n.data("datepicker")||(t.preventDefault(),h.call(n,"show"))}),e(function(){h.call(e('[data-provide="datepicker-inline"]'))})}),function(e,t){if("function"==typeof define&&define.amd)define(["module","exports"],t);else if("undefined"!=typeof exports)t(module,exports);else{var n={exports:{}};t(n,n.exports),e.autosize=n.exports}}(this,function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return-1").addClass("progressbar-back-text").prependTo(r),this.$front_text=i=e("").addClass("progressbar-front-text").prependTo(n),u?(m=r.css("height"),o.css({height:m,"line-height":m}),i.css({height:m,"line-height":m}),e(window).resize(function(){m=r.css("height"),o.css({height:m,"line-height":m}),i.css({height:m,"line-height":m})})):(m=r.css("width"),i.css({width:m}),e(window).resize(function(){m=r.css("width"),i.css({width:m})}));setTimeout(function(){var e,t,d,m,p;u?n.css("height",v+"%"):n.css("width",v+"%");var g=setInterval(function(){u?(d=n.height(),m=r.height()):(d=n.width(),m=r.width()),e=Math.round(100*d/m),t=Math.round(s+d/m*(l-s)),e>=v&&(e=v,t=a,f(n),clearInterval(g)),"none"!==c.display_text&&(p=c.use_percentage?c.percent_format(e):c.amount_format(t,l,s),"fill"===c.display_text?n.text(p):"center"===c.display_text&&(o.text(p),i.text(p))),n.attr("aria-valuenow",t),h(e,n)},c.refresh_speed)},c.transition_delay)}};var n=e.fn.progressbar;e.fn.progressbar=function(n){return this.each(function(){var r=e(this),o=r.data("bs.progressbar"),i="object"==typeof n&&n;o&&i&&e.extend(o.options,i),o||r.data("bs.progressbar",o=new t(this,i)),o.transition()})},e.fn.progressbar.Constructor=t,e.fn.progressbar.noConflict=function(){return e.fn.progressbar=n,this}}(window.jQuery);var _extends=Object.assign||function(e){for(var t=1;te.addpos2&&(e.addpos2=t.offsetHeight);break;case"left":case"right":t.offsetWidth+(parseFloat(t.style.marginLeft,10)||0)+(parseFloat(t.style.marginRight,10)||0)>e.addpos2&&(e.addpos2=t.offsetWidth)}}else if(e.dir1){var m=void 0,v=void 0;switch(e.dir1){case"down":case"up":v=["left","right"],m=e.context.scrollWidth/2-t.offsetWidth/2;break;case"left":case"right":v=["top","bottom"],m=c/2-t.offsetHeight/2}t.style[v[0]]=m+"px",t.style[v[1]]="auto",e.animation||t.style[v[0]]}if(e.dir1)switch("number"==typeof e.nextpos1&&(t.style[s]=e.nextpos1+"px",e.animation||t.style[s]),e.dir1){case"down":case"up":e.nextpos1+=t.offsetHeight+(void 0===e.spacing1?25:e.spacing1);break;case"left":case"right":e.nextpos1+=t.offsetWidth+(void 0===e.spacing1?25:e.spacing1)}else{var p=a/2-t.offsetWidth/2,g=c/2-t.offsetHeight/2;t.style.left=p+"px",t.style.top=g+"px",e.animation||t.style.left}return this}},queuePosition:function(e){return o&&clearTimeout(o),e=e||10,o=setTimeout(function(){r.positionAll()},e),this},cancelRemove:function(){return this.cancelClose()},cancelClose:function(){var e=this.get(),t=e._timer,n=e._animTimer,r=e._state,o=e.animation;return t&&clearTimeout(t),n&&clearTimeout(n),"closing"===r&&this.set({_state:"open",_animating:!1,_animatingClass:"fade"===o?"ui-pnotify-in ui-pnotify-fade-in":"ui-pnotify-in"}),this},queueRemove:function(){return this.queueClose()},queueClose:function(){var e=this;return this.cancelClose(),this.set({_timer:setTimeout(function(){return e.close(!0)},isNaN(this.get().delay)?0:this.get().delay)}),this},addModuleClass:function(){for(var e=this.get()._moduleClasses,t=arguments.length,n=Array(t),r=0;r .ui-pnotify{position:fixed;z-index:100040}body > .ui-pnotify.ui-pnotify-modal{z-index:100042}.ui-pnotify{position:absolute;height:auto;z-index:1;display:none}.ui-pnotify.ui-pnotify-modal{z-index:3}.ui-pnotify.ui-pnotify-in{display:block}.ui-pnotify.ui-pnotify-initial-hidden{display:block;visibility:hidden}.ui-pnotify.ui-pnotify-move{transition:left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-slow{transition:opacity .4s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-slow.ui-pnotify.ui-pnotify-move{transition:opacity .4s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-normal{transition:opacity .25s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-normal.ui-pnotify.ui-pnotify-move{transition:opacity .25s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-fast{transition:opacity .1s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-fast.ui-pnotify.ui-pnotify-move{transition:opacity .1s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-in{opacity:1}.ui-pnotify .ui-pnotify-shadow{-webkit-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);-moz-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1)}.ui-pnotify-container{background-position:0 0;padding:.8em;height:100%;margin:0}.ui-pnotify-container:after{content:" ";visibility:hidden;display:block;height:0;clear:both}.ui-pnotify-container.ui-pnotify-sharp{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ui-pnotify-title{display:block;white-space:pre-line;margin-bottom:.4em;margin-top:0}.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-left:24px}[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-right:24px;margin-left:0}.ui-pnotify-title-bs4{font-size:1.2rem}.ui-pnotify-text{display:block;white-space:pre-line}.ui-pnotify-icon,.ui-pnotify-icon span{display:block;float:left}[dir=rtl] .ui-pnotify-icon,[dir=rtl] .ui-pnotify-icon span{float:right}.ui-pnotify-icon-bs3 > span{position:relative;top:2px}.ui-pnotify-icon-bs4 > span{position:relative;top:4px}.ui-pnotify-modal-overlay{background-color:rgba(0, 0, 0, .4);top:0;left:0;position:absolute;height:100%;width:100%;z-index:2}body > .ui-pnotify-modal-overlay{position:fixed;z-index:100041}',z(document.head,i)),this._fragment=function(e,t){for(var n,r,o,i,h,f,m,v,g,V=[],k=y(),A=[],T=y(),E=t._modulesPrependContainer,D=function(e){return e.module.key},N=0;Ny[k]?(x[V]=!0,H(S)):(_[k]=!0,m--):(l(L,a),m--)}for(;m--;)z[(L=e[m]).key]||l(L,a);for(;v;)H(b[v-1]);return b}function H(e,t){e.d(1),t[e.key]=null}function S(e){e.parentNode.removeChild(e)}function L(e,t,n,r){e.removeEventListener(t,n,r)}function V(){return document.createComment("")}function k(e,t){e.data=""+t}function A(e,t){for(;e.nextSibling&&e.nextSibling!==t;)e.parentNode.removeChild(e.nextSibling)}function T(e,t){for(var n in t)e[n]=t[n];return e}function E(e){e._lock=!0,D(e._beforecreate),D(e._oncreate),D(e._aftercreate),e._lock=!1}function D(e){for(;e&&e.length;)e.shift()()}function N(){}return T(g.prototype,{destroy:function(e){this.destroy=N,this.fire("destroy"),this.set=N,this._fragment.d(!1!==e),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(n)for(var r=0;r [ui-pnotify].ui-pnotify.ui-pnotify-mobile-able{position:fixed}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom{width:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right{height:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-shadow{border-bottom-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-shadow{border-top-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-shadow{border-right-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-shadow{border-left-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-container{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-container{width:auto !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-container{height:100% !important}}",e=t,document.head.appendChild(e)}(),this._fragment=(this._state,{c:o,m:o,p:o,d:o}),this.root._oncreate.push(function(){(function(){this.set({_doMobileStylingBound:this.doMobileStyling.bind(this)})}).call(s),s.fire("update",{changed:function(e,t){for(var n in t)e[n]=1;return e}({},s._state),current:s._state})}),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor),c(this))}function o(){}function i(e,t){for(var n in t)e[n]=t[n];return e}function c(e){e._lock=!0,s(e._beforecreate),s(e._oncreate),s(e._aftercreate),e._lock=!1}function a(){return Object.create(null)}function s(e){for(;e&&e.length;)e.shift()()}return i(r.prototype,{destroy:function(e){this.destroy=o,this.fire("destroy"),this.set=o,this._fragment.d(!1!==e),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(n)for(var r=0;rn){for(var i="top"===o.push,c=[],a=0,s=i?0:e.notices.length-1;i?s=e.length&&t(n)}}(i))})})}(e,mn.nu)},pn=function(e){return{is:function(t){return e===t},isValue:u,isError:l,getOr:r(e),getOrThunk:r(e),getOrDie:r(e),or:function(t){return pn(e)},orThunk:function(t){return pn(e)},fold:function(t,n){return n(e)},map:function(t){return pn(t(e))},mapError:function(t){return pn(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOption:function(){return O.some(e)}}},gn=function(e){return{is:l,isValue:l,isError:u,getOr:o,getOrThunk:function(e){return e()},getOrDie:function(){return(t=String(e),function(){throw new Error(t)})();var t},or:function(e){return e},orThunk:function(e){return e()},fold:function(t,n){return t(e)},map:function(t){return gn(e)},mapError:function(t){return gn(t(e))},each:t,bind:function(t){return gn(e)},exists:l,forall:u,toOption:O.none}},bn={value:pn,error:gn,fromOption:function(e,t){return e.fold(function(){return gn(t)},pn)}},zn=window.Promise?window.Promise:(an=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},sn=Cn.immediateFn||"function"==typeof e.setImmediate&&e.setImmediate||function(t){e.setTimeout(t,1)},Cn.prototype.catch=function(e){return this.then(null,e)},Cn.prototype.then=function(e,t){var n=this;return new Cn(function(r,o){Mn.call(n,new Hn(e,t,r,o))})},Cn.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&an(arguments[0])?arguments[0]:arguments);return new Cn(function(t,n){if(0===e.length)return t([]);var r=e.length;function o(i,c){try{if(c&&("object"==typeof c||"function"==typeof c)){var a=c.then;if("function"==typeof a)return void a.call(c,function(e){o(i,e)},n)}e[i]=c,0==--r&&t(e)}catch(e){n(e)}}for(var i=0;i\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,pr=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gr=/[<>&\"\']/g,br=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,zr={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function yr(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n":">","&":"&","`":"`"},nr={"<":"<",">":">","&":"&",""":'"',"'":"'"},er=yr("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);var _r={encodeRaw:Cr,encodeAllRaw:function(e){return(""+e).replace(gr,function(e){return tr[e]||e})},encodeNumeric:Mr,encodeNamed:wr,getEncodeFunc:function(e,t){var n=yr(t)||er,r=mr(e.replace(/\+/g,","));return r.named&&r.numeric?function(e,t){return e.replace(t?vr:pr,function(e){return void 0!==tr[e]?tr[e]:void 0!==n[e]?n[e]:1>10),56320+(1023&t))):zr[t]||String.fromCharCode(t):nr[e]||er[e]||function(e){var t;return(t=ot.fromTag("div").dom()).innerHTML=e,t.textContent||t.innerText||e}(e)})}},xr={},Hr={},Sr=Xn.makeMap,Lr=Xn.each,Vr=Xn.extend,kr=Xn.explode,Ar=Xn.inArray,Tr=function(e,t){return(e=Xn.trim(e))?e.split(t||" "):[]},Er=function(e){function t(e,t,n){function o(e,t){var n,r,o={};for(n=0,r=e.length;n
').css(i).appendTo(n)[0];return a.set(O.some({caret:f,element:o,before:t})),a.get().each(function(e){t&&Pi(e.caret).addClass("mce-visual-caret-before")}),h(),(s=o.ownerDocument.createRange()).setStart(c,0),s.setEnd(c,0),s},hide:u,getCss:function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"},reposition:function(){a.get().each(function(e){var t=as(n,e.element,e.before);Pi(e.caret).css(ne({},t))})},destroy:function(){return Nn.clearInterval(i)}}}function ls(){return Cl.isIE()||Cl.isEdge()||Cl.isFirefox()}function us(e){return Ml(e)||Kt.isTable(e)&&ls()}function hs(e){return 0=o.data.length-1)return 1===e&&(r=l(o))?Vl(r):n;if(la(o)&&c<=1)return-1===e&&(r=s(o))?kl(r):n;if(c===o.data.length)return(r=l(o))?Vl(r):n;if(0===c)return(r=s(o))?kl(r):n}return n}function Cs(e,t){return O.from(gs(e?0:-1,t)).filter(wl)}function Ms(e,t,n){var r=ys(e,t,n);return-1===e?Ia.fromRangeStart(r):Ia.fromRangeEnd(r)}function ws(e){return O.from(e.getNode()).map(ot.fromDom)}function _s(e,t){for(;t=e(t);)if(t.isVisible())return t;return t}function xs(e,t){var n=ps(e,t);return!(n||!Kt.isBr(e.getNode()))||n}(Jc=Ia=Ia||{}).fromRangeStart=function(e){return Jc(e.startContainer,e.startOffset)},Jc.fromRangeEnd=function(e){return Jc(e.endContainer,e.endOffset)},Jc.after=function(e){return Jc(e.parentNode,Ta(e)+1)},Jc.before=function(e){return Jc(e.parentNode,Ta(e))},Jc.isAbove=function(e,t){return Zc(S(t.getClientRects()),L(e.getClientRects()),jc).getOr(!1)},Jc.isBelow=function(e,t){return Zc(L(t.getClientRects()),S(e.getClientRects()),Fc).getOr(!1)},Jc.isAtStart=function(e){return!!e&&e.isAtStart()},Jc.isAtEnd=function(e){return!!e&&e.isAtEnd()},Jc.isTextPosition=function(e){return!!e&&Kt.isText(e.container())},Jc.isElementPosition=function(e){return!1===Jc.isTextPosition(e)};var Hs,Ss,Ls=Ia,Vs=Kt.isText,ks=Kt.isBogus,As=Qi.nodeIndex,Ts=function(e){var t=e.parentNode;return ks(t)?Ts(t):t},Es=function(e){return e?Wn.reduce(e.childNodes,function(e,t){return ks(t)&&"BR"!==t.nodeName?e=e.concat(Es(t)):e.push(t),e},[]):[]},Ds=Kt.isContentEditableFalse,Ns={getBookmark:function(e,t,n){return 2===t?Xa(ca.trim,n,e):3===t?function(e){var t=e.getRng();return{start:Ba(e.dom.getRoot(),Ls.fromRangeStart(t)),end:Ba(e.dom.getRoot(),Ls.fromRangeEnd(t))}}(e):t?function(e){return{rng:e.getRng()}}(e):Qa(e,!1)},getUndoBookmark:i(Xa,o,!0),getPersistentBookmark:Qa},Os="_mce_caret",Is=Kt.isElement,Ps=Kt.isText,Rs=function(e){(Is(e)&&Ac(e)&&(Tc(e)?e.removeAttribute("data-mce-caret"):ns(e)),Ps(e))&&rs(e,ca.trim(function(e){try{return e.nodeValue}catch(e){return""}}(e)))},Bs={removeAndReposition:function(e,t){return Ls.isTextPosition(t)?function(e,t){return Ps(e)&&t.container()===e?function(e,t){var n=os(e.data.substr(0,t.offset())),r=os(e.data.substr(t.offset())),o=n.text+r.text;return 0")},qs=function(e){return e.getParam("document_base_url","")},Us=function(e){return cs(e,"body_id","tinymce")},Ws=function(e){return cs(e,"body_class","")},Zs=function(e){return e.getParam("content_security_policy","")},Ys=function(e){return e.getParam("br_in_pre",!0)},Xs=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Gs=function(e){return e.getParam("forced_root_block_attrs",{})},Qs=function(e){return e.getParam("keep_styles",!0)},Ks=function(e){return e.getParam("end_container_on_empty_block",!1)},Js=function(e){return Xn.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},el=function(e){return Xn.explode(e.getParam("font_size_classes",""))},tl=function(e){return e.getParam("icons","","string")},nl=function(e){return e.getParam("icons_url","","string")},rl=function(e){return e.getParam("images_dataimg_filter",r(!0),"function")},ol=function(e){return e.getParam("automatic_uploads",!0,"boolean")},il=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},cl=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},al=function(e){return e.getParam("images_upload_url","","string")},sl=function(e){return e.getParam("images_upload_base_path","","string")},ll=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},ul=function(e){return e.getParam("images_upload_handler",null,"function")},hl=function(e){return e.getParam("content_css_cors",!1,"boolean")},fl=function(e){return e.getParam("referrer_policy","","string")},dl=function(e){return e.getParam("language","en","string")},ml=function(e){return e.getParam("language_url","","string")},vl=function(e){return e.getParam("indent_use_margin",!1)},pl=function(e){return e.getParam("indentation","40px","string")},gl=function(e){var t=e.settings.content_css;return I(t)?Z(t.split(","),se):R(t)?t:!1===t||e.inline?[]:["default"]},bl=function(e){return e.getParam("object_resizing")},zl=function(e){return e.getParam("resize_img_proportional",!0,"boolean")},yl=function(e){return e.getParam("placeholder",js.getAttrib(e.getElement(),"placeholder"),"string")},Cl=he().browser,Ml=Kt.isContentEditableFalse,wl=Kt.isContentEditableFalse,_l=Kt.matchStyleValues("display","block table table-cell table-caption list-item"),xl=Ac,Hl=Vc,Sl=Kt.isElement,Ll=Oc,Vl=i(bs,!0),kl=i(bs,!1);function Al(e,t){return e.hasChildNodes()&&ta.length-1)return!!jl(l,i,r)||Bl(i,r);i=a[s[o]]}3===i.nodeType&&(c=Math.min(s[0],i.nodeValue.length)),1===i.nodeType&&(c=Math.min(s[0],i.childNodes.length)),t?r.setStart(i,c):r.setEnd(i,c)}return!0}function $l(e){return Kt.isText(e)&&0=n.length?t=n.length-1:t<0&&(t=0),n[t]||e}(Ss=Hs=Hs||{})[Ss.Backwards=-1]="Backwards",Ss[Ss.Forwards=1]="Forwards";var mu,vu=Kt.isContentEditableFalse,pu=Kt.isText,gu=Kt.isElement,bu=Kt.isBr,zu=Oc,yu=function(e){return pa(e)||function(e){return!!za(e)&&!0!==y(Q(e.getElementsByTagName("*")),function(e,t){return e||ha(t)},!1)}(e)},Cu=Ic,Mu=function(e,t,n){var o,i,c,a,s;if(!gu(n)||!t)return null;if(t.isEqual(Ls.after(n))&&n.lastChild){if(s=Ls.after(n.lastChild),fs(e)&&zu(n.lastChild)&&gu(n.lastChild))return bu(n.lastChild)?Ls.before(n.lastChild):s}else s=t;var l=s.container(),u=s.offset();if(pu(l)){if(fs(e)&&0=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===c&&0]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g).lastIndex=r=n;o=i.exec(t);){if(r=i.lastIndex,"/"===o[1])a--;else if(!o[1]){if(o[2]in c)continue;a++}if(0===a)break}return r}function Ku(e,t){var n=e.exec(t);if(n){var r=n[1],o=n[2];return"string"==typeof r&&"data-mce-bogus"===r.toLowerCase()?o:null}return null}function Ju(e,t){function n(){}void 0===t&&(t=Nr()),!1!==(e=e||{}).fix_self_closing&&(e.fix_self_closing=!0);var r=e.comment?e.comment:n,o=e.cdata?e.cdata:n,i=e.text?e.text:n,c=e.start?e.start:n,a=e.end?e.end:n,s=e.pi?e.pi:n,l=e.doctype?e.doctype:n;return{parse:function(n,u){function h(e){var t,n;for(t=U.length;t--&&U[t].name!==e;);if(0<=t){for(n=U.length-1;t<=n;n--)(e=U[n]).valid&&a(e.name);U.length=t}}function f(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),r(t))}function d(e,t){var r=e||"",o=!ae(r,"--"),i=function(e,t,n){void 0===n&&(n=0);var r=e.toLowerCase();if(-1!==r.indexOf("[if ",n)&&function(e,t){return/^\s*\[if [\w\W]+\]>.*/.test(r.substr(t))}(0,n)){var o=r.indexOf("[endif]",n);return r.indexOf(">",o)}if(t){var i=r.indexOf(">",n);return-1!==i?i:r.length}var c=/--!?>/;c.lastIndex=n;var a=c.exec(e);return a?a.index+a[0].length:r.length}(n,o,t);return e=n.substr(t,i-t),f(o?r+e:e),i+1}function m(t,n,r,o,i){var c,a;if(r=(n=n.toLowerCase())in x?n:Z(r||o||i||""),S&&!M&&!1===function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")}(n)){if(!(c=T[n])&&E){for(a=E.length;a--&&!(c=E[a]).pattern.test(n););-1===a&&(c=null)}if(!c)return;if(c.validValues&&!(r in c.validValues))return}if(Y[n]&&!e.allow_script_urls){var s=r.replace(/[\s\u0000-\u001F]+/g,"");try{s=decodeURIComponent(s)}catch(e){s=unescape(s)}if(X.test(s))return;if(function(e,t){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?!1===e.allow_svg_data_urls&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))}(e,s))return}M&&(n in Y||0===n.indexOf("on"))||(b.map[n]=r,b.push({name:n,value:r}))}void 0===u&&(u="html");var v,p,g,b,z,y,C,M,w,_,x,H,S,L,V,k,A,T,E,D,N,O,I,P,R,B,j,F,$,q=0,U=[],W=0,Z=_r.decode,Y=Xn.makeMap("src,href,data,background,formaction,poster,xlink:href"),X=/((java|vb)script|mhtml):/i,G="html"===u?0:1;for(R=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),B=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,_=t.getShortEndedElements(),P=e.self_closing_elements||t.getSelfClosingElements(),x=t.getBoolAttrs(),S=e.validate,w=e.remove_internals,$=e.fix_self_closing,j=t.getSpecialElements(),I=n+">";v=R.exec(I);){var Q=v[0];if(qn.length){i(Z(n.substr(v.index))),q=v.index+Q.length;continue}":"===(p=p.toLowerCase()).charAt(0)&&(p=p.substr(1)),H=p in _,$&&P[p]&&0]*data-mce-bogus="all"[^>]*>/g,l=e.schema;for(a=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")}(e.getTempAttrs(),a),c=l.getShortEndedElements();i=s.exec(a);)r=s.lastIndex,o=i[0].length,n=c[i[1]]?r:Dh.findEndTag(l,a,r),a=a.substring(0,r-o)+a.substring(n),s.lastIndex=r-o;return ca.trim(a)}function th(e){var t,n,r,o,i,c=[];return t=(e=e||{}).indent,n=Oh(e.indent_before||""),r=Oh(e.indent_after||""),o=_r.getEncodeFunc(e.entity_encoding||"raw",e.entities),i="html"===e.element_format,{start:function(e,a,s){var l,u,h,f;if(t&&n[e]&&0":" />",s&&t&&r[e]&&0"),t&&r[e]&&0")},comment:function(e){c.push("\x3c!--",e,"--\x3e")},pi:function(e,n){n?c.push(""):c.push(""),t&&c.push("\n")},doctype:function(e){c.push("",t?"\n":"")},reset:function(){c.length=0},getContent:function(){return c.join("").replace(/\n$/,"")}}}function nh(e,t){void 0===t&&(t=Nr());var n=th(e);return(e=e||{}).validate=!("validate"in e)||e.validate,{serialize:function(r){var o,i;i=e.validate,o={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)for(;c(e),e=e.next;);}},n.reset();var c=function(e){var r,a,s,l,u,h,f,d,m,v=o[e.type];if(v)v(e);else{if(r=e.name,a=e.shortEnded,s=e.attributes,i&&s&&1',"TABLE"===t.nodeName?n=""+i+"":/^(UL|OL)$/.test(t.nodeName)&&(n="
  • "+i+"
  • "),n=(o=Xs(e))&&e.schema.isValidChild(t.nodeName.toLowerCase(),o.toLowerCase())?(n=i,e.dom.createHTML(o,e.settings.forced_root_block_attrs,n)):n||'
    ',Ch(e,n),e.fire("SetContent",r)):("raw"!==r.format&&(n=nh({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=hr(ot.fromDom(t))?n:Xn.trim(n),Ch(e,r.content),r.no_events||e.fire("SetContent",r)),r.content}(e,r,t,n)})}function wh(e){return O.from(e).each(function(e){return e.destroy()})}function _h(e){var t=R(e)?e.join(" "):e,n=Z(I(t)?t.split(" "):[],se);return G(n,function(e){return 0_(c)?(g=x(p*m),p=x(g/m)):(p=x(g/m),g=x(p*m))),y.setStyles(V(o),{width:p,height:g}),C=0<(C=a.startPos.x+t)?C:0,M=0<(M=a.startPos.y+c)?M:0,y.setStyles(i,{left:C,top:M,display:"block"}),i.innerHTML=p+" × "+g,a[2]<0&&o.clientWidth<=p&&y.setStyle(o,"left",u+(f-p)),a[3]<0&&o.clientHeight<=g&&y.setStyle(o,"top",h+(d-g)),(t=H.scrollWidth-b)+(c=H.scrollHeight-z)!=0&&y.setStyles(i,{left:C-t,top:M-c}),v||(function(e,t,r,o){n.fire("ObjectResizeStart",{target:t,width:r,height:o})}(0,r,f,d),v=!0)}function T(e){function r(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)}var o;v||n.removed||(C(y.select("img[data-mce-selected],hr[data-mce-selected]"),function(e){e.removeAttribute("data-mce-selected")}),o="mousedown"===e.type?e.target:t.getNode(),r(o=y.$(o).closest("table,img,figure.image,hr")[0],H)&&(P(),r(t.getStart(!0),o)&&r(t.getEnd(!0),o))?N(o):O())}function E(e){return Df(function(e,t){for(;t&&t!==e;){if(Nf(t)||Df(t))return t;t=t.parentNode}return null}(n.getBody(),e))}c={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var D=function(){function e(e,t){t&&(r.style[e]||!n.schema.isValid(r.nodeName.toLowerCase(),e)?y.setStyle(V(r),e,t):y.setAttrib(V(r),e,t))}var t,c,a;v=!1,e("width",p),e("height",g),y.unbind(M,"mousemove",A),y.unbind(M,"mouseup",D),w!==M&&(y.unbind(w,"mousemove",A),y.unbind(w,"mouseup",D)),y.remove(o),y.remove(i),N(r),t=r,c=p,a=g,n.fire("ObjectResized",{target:t,width:c,height:a}),y.setAttrib(r,"style",y.getAttrib(r,"style")),n.nodeChanged()},N=function(e){var t,v,_,x,S;O(),I(),t=y.getPos(e,H),u=t.x,h=t.y,S=e.getBoundingClientRect(),v=S.width||S.right-S.left,_=S.height||S.bottom-S.top,r!==e&&(r=e,p=g=0),x=n.fire("ObjectSelected",{target:e}),k(e)&&!x.isDefaultPrevented()?C(c,function(e,t){var n;(n=y.get("mceResizeHandle"+t))&&y.remove(n),n=y.add(H,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===qn.ie&&(n.contentEditable=!1),y.bind(n,"mousedown",function(t){t.stopImmediatePropagation(),t.preventDefault(),function(t){s=t.screenX,l=t.screenY,f=V(r).clientWidth,d=V(r).clientHeight,m=d/f,(a=e).startPos={x:v*e[0]+u,y:_*e[1]+h},b=H.scrollWidth,z=H.scrollHeight,o=r.cloneNode(!0),y.addClass(o,"mce-clonedresizable"),y.setAttrib(o,"data-mce-bogus","all"),o.contentEditable=!1,o.unSelectabe=!0,y.setStyles(o,{left:u,top:h,margin:0}),o.removeAttribute("data-mce-selected"),H.appendChild(o),y.bind(M,"mousemove",A),y.bind(M,"mouseup",D),w!==M&&(y.bind(w,"mousemove",A),y.bind(w,"mouseup",D)),i=y.add(H,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},f+" × "+d)}(t)}),e.elm=n,y.setStyles(n,{left:v*e[0]+u-n.offsetWidth/2,top:_*e[1]+h-n.offsetHeight/2})}):O(),r.setAttribute("data-mce-selected","1")},O=function(){var e,t;for(e in I(),r&&r.removeAttribute("data-mce-selected"),c)(t=y.get("mceResizeHandle"+e))&&(y.unbind(t),y.remove(t))},I=function(){for(var e in c){var t=c[e];t.elm&&(y.unbind(t.elm),delete t.elm)}},P=function(){try{n.getDoc().execCommand("enableObjectResizing",!1,!1)}catch(e){}};return n.on("init",function(){if(P(),qn.browser.isIE()||qn.browser.isEdge()){n.on("mousedown click",function(e){var t=e.target,r=t.nodeName;v||!/^(TABLE|IMG|HR)$/.test(r)||E(t)||(2!==e.button&&n.selection.select(t,"TABLE"===r),"mousedown"===e.type&&n.nodeChanged())});var e=function(e){function t(e){Nn.setEditorTimeout(n,function(){return n.selection.select(e)})}if(E(e.target))return e.preventDefault(),void t(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&t(e.target))};y.bind(H,"mscontrolselect",e),n.on("remove",function(){return y.unbind(H,"mscontrolselect",e)})}var t=Nn.throttle(function(e){n.composing||T(e)});n.on("nodechange ResizeEditor ResizeWindow drop FullscreenStateChanged",t),n.on("keyup compositionend",function(e){r&&"TABLE"===r.nodeName&&t(e)}),n.on("hide blur",O),n.on("contextmenu longpress",L,!0)}),n.on("remove",I),{isResizable:k,showResizeRect:N,hideResizeRect:O,updateResizeRect:T,destroy:function(){r=o=null}}}(Vf=Vf||{}).isBookmarkNode=ku;var Af=Vf,Tf=function(e,t,n){if(n.collapsed)return!1;if(qn.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(Kt.isElement(r))return b(r.getClientRects(),function(n){return $c(n,e,t)})}return b(n.getClientRects(),function(n){return $c(n,e,t)})},Ef={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||this.metaKeyPressed(e)},metaKeyPressed:function(e){return qn.mac?e.metaKey:e.ctrlKey&&!e.altKey}},Df=Kt.isContentEditableFalse,Nf=Kt.isContentEditableTrue;function Of(e){return"textarea"===Ee(e)}function If(e,t){var n=function(e){var t=e.dom().ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom())return Rt(n.offsetLeft,n.offsetTop);var i=Oe(r.pageYOffset,o.scrollTop),c=Oe(r.pageXOffset,o.scrollLeft),a=Oe(o.clientTop,n.clientTop),s=Oe(o.clientLeft,n.clientLeft);return Bt(e).translate(c-s,i-a)}(e),r=function(e){return gd.get(e)}(e);return{element:e,bottom:n.top()+r,height:r,pos:n,cleanup:t}}function Pf(e,t,n,r){Cd(e,function(o,i){return yd(e,t,n,r)},n)}function Rf(e,t,n,r,o){var i={elm:r.element.dom(),alignToTop:o};!function(e,t){return e.fire("ScrollIntoView",t).isDefaultPrevented()}(e,i)&&(n(t,Ie(t).top(),r,o),function(e,t){e.fire("AfterScrollIntoView",t)}(e,i))}function Bf(e,n,r,o){var i=ot.fromDom(e.getDoc());Rf(e,i,r,function(e){return If(ot.fromDom(e),t)}(n),o)}function jf(e,t,n,r){var o=e.pos;if(n)Pe(o.left(),o.top(),r);else{var i=o.top()-t+e.height;Pe(o.left(),i,r)}}function Ff(e,t,n,r,o){var i=n+t,c=r.pos.top(),a=r.bottom,s=n<=a-c;ca.bottom()&&Re(r.element,!0===o)}function Uf(e){return Kt.isContentEditableTrue(e)||Kt.isContentEditableFalse(e)}function Wf(t,n){var r=(n||e.document).createDocumentFragment();return Y(t,function(e){r.appendChild(e.dom())}),ot.fromDom(r)}function Zf(e,t){return function(e,t,n){return Et(t,e)?function(e){return e.slice(0,-1)}(function(e,t){for(var n=F(t)?t:l,r=e.dom(),o=[];null!==r.parentNode&&void 0!==r.parentNode;){var i=r.parentNode,c=ot.fromDom(i);if(o.push(c),!0===n(c))break;r=i}return o}(e,function(e){return n(e)||ve(e,t)})):[]}(e,t,r(!1))}function Yf(e,t,n,r){var o=n,i=new Ri(n,o),c=e.schema.getNonEmptyElements();do{if(3===n.nodeType&&0!==Xn.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(c[n.nodeName]&&!/^(TD|TH)$/.test(n.nodeName))return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n))}while(n=r?i.next():i.prev());"BODY"===o.nodeName&&(r?t.setStart(o,0):t.setEnd(o,o.childNodes.length))}function Xf(e){var t=e.selection.getSel();return t&&0e?t.cells().length:e},0)}function Kf(e,t){for(var n=e.rows(),r=0;ro.childNodes.length-1&&(s=!1),Kt.isDocument(o)&&(o=h,i=0),o===h){if(s&&(c=o.childNodes[0'+ca.ZWSP+"");return Se(n.element,r),If(r,function(){return Nt(r)})}(ot.fromDom(n.startContainer),n.startOffset);Rf(e,i,t,c,r),c.cleanup()},Cd=function(e,t,n){var r=n.startContainer,o=n.startOffset,i=n.endContainer,c=n.endOffset;t(ot.fromDom(r),ot.fromDom(i));var a=e.dom.createRng();a.setStart(r,o),a.setEnd(i,c),e.selection.setRng(n)},Md=function(e,t,n){(e.inline?function(e,t,n){return Bf(e,t,$f,n)}:function(e,t,n){return Bf(e,t,qf,n)})(e,t,n)},wd=function(e,t,n){(e.inline?function(e,t,n){return Pf(e,$f,t,n)}:function(e,t,n){return Pf(e,qf,t,n)})(e,t,n)},_d=function(e,t,n){var r,o,i=n;if(i.caretPositionFromPoint)(o=i.caretPositionFromPoint(e,t))&&((r=n.createRange()).setStart(o.offsetNode,o.offset),r.collapse(!0));else if(n.caretRangeFromPoint)r=n.caretRangeFromPoint(e,t);else if(i.body.createTextRange){r=i.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(o){r=function(e,t,n){var r,o,i;if(r=n.elementFromPoint(e,t),o=n.body.createTextRange(),r&&"HTML"!==r.tagName||(r=n.body),o.moveToElementText(r),0<(i=(i=Xn.toArray(o.getClientRects())).sort(function(e,n){return(e=Math.abs(Math.max(e.top-t,e.bottom-t)))-Math.abs(Math.max(n.top-t,n.bottom-t))})).length){t=(i[0].bottom+i[0].top)/2;try{return o.moveToPoint(e,t),o.collapse(!0),o}catch(e){}}return null}(e,t,n)}return function(e,t){var n=e&&e.parentElement?e.parentElement():null;return Kt.isContentEditableFalse(function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(n,t,Uf))?null:e}(r,n.body)}return r},xd=function(e,t){return Z(t,function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t})},Hd=Zf,Sd=function(e,t){return[e].concat(Zf(e,t))},Ld=function(e){return xe(e).fold(r([e]),function(t){return[e].concat(Ld(t))})},Vd=function(e){return He(e).fold(r([e]),function(t){return"br"===Ee(t)?ze(t).map(function(t){return[e].concat(Vd(t))}).getOr([]):[e].concat(Vd(t))})},kd=fe("element","width","rows"),Ad=fe("element","cells"),Td=fe("x","y"),Ed=function(e){var t=kd(Sc(e),0,[]);return Y(vc(e,"tr"),function(e,n){Y(vc(e,"td,th"),function(r,o){!function(e,t,n,r,o){for(var i=Gf(o,"rowspan"),c=Gf(o,"colspan"),a=e.rows(),s=n;sn.clientHeight){t=n;break}n=n.parentNode}return t},scrollIntoView:function(e,t){return Md(r,e,t)},placeCaretAt:function(e,t){return m(_d(e,t,r.getDoc()))},getBoundingClientRect:function(){var e=d();return e.collapsed?Ls.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},destroy:function(){t=s=l=null,a.destroy()}};return c=Af(v),a=kf(v,r),v.bookmarkManager=c,v.controlSelection=a,v}function Xd(e,t){var n=$r();t.convert_fonts_to_spans&&function(e,t,n){e.addNodeFilter("font",function(e){Y(e,function(e){var r=t.parse(e.attr("style")),o=e.attr("color"),i=e.attr("face"),c=e.attr("size");o&&(r.color=o),i&&(r["font-family"]=i),c&&(r["font-size"]=n[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",t.serialize(r)),function(e,t){Y(["color","face","size"],function(t){e.attr(t,null)})}(e)})})}(e,n,Xn.explode(t.font_size_legacy_values)),function(e,t){e.addNodeFilter("strike",function(e){Y(e,function(e){var n=t.parse(e.attr("style"));n["text-decoration"]="line-through",e.name="span",e.attr("style",t.serialize(n))})})}(e,n)}function Gd(e,t,n,r){(e.padd_empty_with_br||t.insert)&&n[r.name]?r.empty().append(new Xu("br",1)).shortEnded=!0:r.empty().append(new Xu("#text",3)).value=Fr}function Qd(e,t,n,r){return r.isEmpty(t,n,function(t){return function(e,t){var n=e.getElementRule(t.name);return n&&n.paddEmpty}(e,t)})}function Kd(e,t){void 0===t&&(t=Nr());var n={},r=[],o={},i={};(e=e||{}).validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var c=function(e){var t,c,a;(c=e.name)in n&&((a=o[c])?a.push(e):o[c]=[e]),t=r.length;for(;t--;)(c=r[t].name)in e.attributes.map&&((a=i[c])?a.push(e):i[c]=[e]);return e},a={schema:t,addAttributeFilter:function(e,t){am(sm(e),function(e){var n;for(n=0;n)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(()?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")};c--;)o=(r=e[c]).firstChild?r.firstChild.value:"","script"===n?((i=r.attr("type"))&&r.attr("type","mce-no/type"===i?null:i.replace(/^mce\-/,"")),"xhtml"===t.element_format&&0")):"xhtml"===t.element_format&&0=e.data.length,i=0===t;e.replaceData(t,n,function(e,t,n){return y(e,function(r,o){return Ul(o)||Au(o)?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+Fr}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+o}},{previousCharIsSpace:!1,str:""}).str}(r,i,o))}}function Vm(e,t){var n=e.data.slice(t);return Lm(e,t,n.length-n.replace(/^\s+/g,"").length)}function km(e,t){return Oc(t)&&!1===function(e,t){return Kt.isText(t)&&/^[ \t\r\n]*$/.test(t.data)&&!1===function(e,t){var n=ot.fromDom(e);return function(e,t,n){return Cc(e,"pre,code",n).isSome()}(ot.fromDom(t),0,i(ve,n))}(e,t)}(e,t)||function(e){return Kt.isElement(e)&&"A"===e.nodeName&&e.hasAttribute("name")}(t)||tv(t)}function Am(e,t){return function(e,t){var n=e.container(),r=e.offset();return!1===Ls.isTextPosition(e)&&n===t.parentNode&&r>Ls.before(t).offset()}(t,e)?Ls(t.container(),t.offset()-1):t}function Tm(e){return Oc(e.previousSibling)?O.some(function(e){return Kt.isText(e)?Ls(e,e.data.length):Ls.after(e)}(e.previousSibling)):e.previousSibling?Su.lastPositionIn(e.previousSibling):O.none()}function Em(e){return Oc(e.nextSibling)?O.some(function(e){return Kt.isText(e)?Ls(e,0):Ls.before(e)}(e.nextSibling)):e.nextSibling?Su.firstPositionIn(e.nextSibling):O.none()}function Dm(e,t,n){return function(e,t,n){return e?function(e,t){return Em(t).orThunk(function(){return Tm(t)}).orThunk(function(){return function(e,t){return Su.nextPosition(e,Ls.after(t)).fold(function(){return Su.prevPosition(e,Ls.before(t))},O.some)}(e,t)})}(t,n):function(e,t){return Tm(t).orThunk(function(){return Em(t)}).orThunk(function(){return function(e,t){var n=Ls.before(t.previousSibling?t.previousSibling:t.parentNode);return Su.prevPosition(e,n).fold(function(){return Su.nextPosition(e,Ls.after(t))},O.some)}(e,t)})}(t,n)}(e,t,n).map(i(Am,n))}function Nm(e,t,n){n.fold(function(){e.focus()},function(n){e.selection.setRng(n.toRange(),t)})}function Om(e,t){return t&&e.schema.getBlockElements().hasOwnProperty(Ee(t))}function Im(e){if(ov(e)){var t=ot.fromHtml('
    ');return Ae(e),Dt(e,t),O.some(Ls.before(t.dom()))}return O.none()}function Pm(e,t,n){var r=ze(e).filter(It),o=ye(e).filter(It);return Nt(e),function(e,t,r,o){return e.isSome()&&t.isSome()&&r.isSome()?O.some(function(e,t,r){var o=e.dom(),i=t.dom(),c=o.data.length;return function(e,t,n){var r=le(e.data).length;e.appendData(t.data),Nt(ot.fromDom(t)),n&&Vm(e,r)}(o,i,n),r.container()===i?Ls(o,c):r}(e.getOrDie(),t.getOrDie(),r.getOrDie())):O.none()}(r,o,t).orThunk(function(){return n&&(r.each(function(e){return function(e,t){var n=e.data.slice(0,t),r=n.length-le(n).length;return Lm(e,t-r,r)}(e.dom(),e.dom().length)}),o.each(function(e){return Vm(e.dom(),0)})),t})}function Rm(e){return 0'))},Km=function(e){He(e).each(function(t){ze(t).each(function(n){or(e)&&Kn(t)&&or(n)&&Nt(t)})})},Jm=Jl,ev=function(e,t,n,r,o){var i,c,a,s,l=e.formatter.get(n),u=e.dom;if(l&&t)for(c=0;c=r.nodeValue.length&&(r=new Ri(r,e.getBody()).next()||r),Kt.isText(r)&&!n&&0===o&&(r=new Ri(r,e.getBody()).prev()||r),r}function mv(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o}function vv(e,t,n,r,o){var i=ot.fromDom(t),c=ot.fromDom(e.create(r,o));return ke(c,n?Me(i):Ce(i)),n?(Se(i,c),Ve(c,i)):(Le(i,c),Dt(c,i)),c.dom()}function pv(e,t,n,r){return!(t=Xl(t,n,r))||"BR"===t.nodeName||e.isBlock(t)}function gv(e,t,n,r,o){var i,c=e.dom;if(!function(e,t,n){return!!Vv(t,n.inline)||!!Vv(t,n.block)||(n.selector?Kt.isElement(t)&&e.is(t,n.selector):void 0)}(c,r,t)&&!function(e,n){return t.links&&"A"===e.nodeName}(r))return!1;var a=r;if("all"!==t.remove){Lv(t.styles,function(e,r){e=eu(c,Kl(e,n),r),"number"==typeof r&&(r=e,o=null),!t.remove_similar&&o&&!Vv(tu(c,o,r),e)||c.setStyle(a,r,""),i=!0}),i&&""===c.getAttrib(a,"style")&&(a.removeAttribute("style"),a.removeAttribute("data-mce-style")),Lv(t.attributes,function(e,r){var i;if(e=Kl(e,n),"number"==typeof r&&(r=e,o=null),t.remove_similar||!o||Vv(c.getAttrib(o,r),e)){if("class"===r&&(e=c.getAttrib(a,r))&&(i="",Lv(e.split(/\s+/),function(e){/mce\-\w+/.test(e)&&(i+=(i?" ":"")+e)}),i))return void c.setAttrib(a,r,i);"class"===r&&a.removeAttribute("className"),Sv.test(r)&&a.removeAttribute("data-mce-"+r),a.removeAttribute(r)}}),Lv(t.classes,function(e){e=Kl(e,n),o&&!c.hasClass(o,e)||c.removeClass(a,e)});for(var s=c.getAttribs(a),l=0;l
    ").append(t.childNodes)}(e.previousSibling,e)}))},sv["pre"]||(sv.pre=[]),sv.pre.push(Zm);var Hv=Xn.each,Sv=/^(src|href|style)$/,Lv=Xn.each,Vv=Jl,kv=Xn.each,Av=function(e,t,n){kv(e.childNodes,function(e){zv(e)&&(t(e)&&n(e),e.hasChildNodes()&&Av(e,t,n))})},Tv=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},Ev=function(t){return t.collapsed?t:(n=t,r=Ls.fromRangeStart(n),o=Ls.fromRangeEnd(n),i=n.commonAncestorContainer,Su.fromPosition(!1,i,o).map(function(t){return!ps(r,o,i)&&ps(r,t,i)?function(t,n,r,o){var i=e.document.createRange();return i.setStart(t,n),i.setEnd(r,o),i}(r.container(),r.offset(),t.container(),t.offset()):n}).getOr(n));var n,r,o,i},Dv=Xn.each,Nv=function(e,t,n,r){function o(e,t){if(t=t||h,e){if(t.onformat&&t.onformat(e,t,n,r),Dv(t.styles,function(t,r){d.setStyle(e,r,Kl(t,n))}),t.styles){var o=d.getAttrib(e,"style");o&&d.setAttrib(e,"data-mce-style",o)}Dv(t.attributes,function(t,r){d.setAttrib(e,r,Kl(t,n))}),Dv(t.classes,function(t){t=Kl(t,n),d.hasClass(e,t)||d.addClass(e,t)})}}function c(e,t){var n=!1;return!!h.selector&&(Dv(e,function(e){if(!("collapsed"in e&&e.collapsed!==f))return d.is(t,e.selector)&&!es(t)?(o(t,e),!(n=!0)):void 0}),n)}function a(r,a,s,l){var f,d,m=[],v=!0;f=h.inline||h.block,o(d=r.create(f)),Pu(r,a,function(i){var a,s=function(i){var p=!1,g=v,b=i.nodeName.toLowerCase(),z=i.parentNode.nodeName.toLowerCase();if(Kt.isElement(i)&&r.getContentEditable(i)&&(g=v,v="true"===r.getContentEditable(i),p=!0),Jl(b,"br"))return a=0,void(h.block&&r.remove(i));if(h.wrapper&&ev(e,i,t,n))a=0;else{if(v&&!p&&h.block&&!h.wrapper&&Gl(e,b)&&Ql(e,z,f))return o(i=r.rename(i,f)),m.push(i),void(a=0);if(h.selector){var y=c(u,i);if(!h.inline||y)return void(a=0)}!v||p||!Ql(e,f,b)||!Ql(e,z,f)||!l&&3===i.nodeType&&1===i.nodeValue.length&&65279===i.nodeValue.charCodeAt(0)||es(i)||h.inline&&r.isBlock(i)?(a=0,Dv(Xn.grep(i.childNodes),s),p&&(v=g),a=0):(a||(a=r.clone(d,!1),i.parentNode.insertBefore(a,i),m.push(a)),a.appendChild(i))}};Dv(i,s)}),!0===h.links&&Dv(m,function(e){var t=function(e){"A"===e.nodeName&&o(e,h),Dv(Xn.grep(e.childNodes),t)};t(e)}),Dv(m,function(c){var a,s,l,f,d;s=0,Dv(c.childNodes,function(e){(function(e){return e&&Kt.isText(e)&&0===e.length})(e)||ku(e)||s++}),a=s,!(1)\s*/g,"$1"),Xn.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),function(e){var t=Xn.map(e.split(/(?:~\+|~|\+)/),Bv),n=t.pop();return t.length&&(n.siblings=t),n}).reverse()):[]}(t.selector)).length?(i[0].name||(i[0].name=n),n=t.selector,Rv(i,e)):Rv([n],e),o=Np.select(n,r)[0]||r.firstChild,Dp(t.styles,function(e,t){(e=l(e))&&Np.setStyle(o,t,e)}),Dp(t.attributes,function(e,t){(e=l(e))&&Np.setAttrib(o,t,e)}),Dp(t.classes,function(e){e=l(e),Np.hasClass(o,e)||Np.addClass(o,e)}),e.fire("PreviewFormats"),Np.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),c=Np.getStyle(e.getBody(),"fontSize",!0),c=/px$/.test(c)?parseInt(c,10):0,Dp(a.split(" "),function(t){var n=Np.getStyle(o,t,!0);if(!("background-color"===t&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)&&(n=Np.getStyle(e.getBody(),t,!0),"#ffffff"===Np.toHex(n).toLowerCase())||"color"===t&&"#000000"===Np.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===c)return;n=parseFloat(n)/(/%$/.test(n)?100:1)*c+"px"}"border"===t&&n&&(s+="padding:0 2px;"),s+=t+":"+n+";"}}),e.fire("AfterPreviewFormats"),Np.remove(r),s)}function Fv(e,t,n,r,o){var i=t.get(n);!wm(e,n,r,o)||"toggle"in i[0]&&!i[0].toggle?Nv(e,n,r,o):bv(e,n,r,o)}function $v(e){var t=function(e){var t={},n=function(e,r){e&&("string"!=typeof e?Xn.each(e,function(e,t){n(t,e)}):(R(r)||(r=[r]),Xn.each(r,function(e){void 0===e.deep&&(e.deep=!e.selector),void 0===e.split&&(e.split=!e.selector||e.inline),void 0===e.remove&&e.selector&&!e.inline&&(e.remove="none"),e.selector&&e.inline&&(e.mixed=!0,e.block_expand=!0),"string"==typeof e.classes&&(e.classes=e.classes.split(/\s+/))}),t[e]=r))};return n(Pv(e.dom)),n(e.settings.formats),{get:function(e){return e?t[e]:t},has:function(e){return te(t,e)},register:n,unregister:function(e){return e&&t[e]&&delete t[e],t}}}(e),n=it(null);return Op(e),function(e){e.on("mouseup keydown",function(t){!function(e,t){var n=e.selection,r=e.getBody();$m(e,null,!1),8!==t&&46!==t||!n.isCollapsed()||n.getStart().innerHTML!==cv||$m(e,ts(r,n.getStart())),37!==t&&39!==t||$m(e,ts(r,n.getStart()))}(e,t.keyCode)})}(e),{get:t.get,has:t.has,register:t.register,unregister:t.unregister,apply:i(Nv,e),remove:i(bv,e),toggle:i(Fv,e,t),match:i(wm,e),matchAll:i(_m,e),matchNode:i(ev,e),canApply:i(xm,e),formatChanged:i(xv,e,n),getCssText:i(jv,e)}}function qv(e){return Kt.isElement(e)?e.outerHTML:Kt.isText(e)?_r.encodeRaw(e.data,!1):Kt.isComment(e)?"\x3c!--"+e.data+"--\x3e":""}function Uv(e){return"fragmented"===e.type?e.fragments.join(""):e.content}function Wv(t){var n=ot.fromTag("body",Pp.get().getOrThunk(function(){var t=e.document.implementation.createHTMLDocument("undo");return Pp.set(O.some(t)),t}));return xc(n,Uv(t)),Y(vc(n,"*[data-mce-bogus]"),Te),n.dom().innerHTML}function Zv(e){return 0===e.get()}function Yv(e,t,n){Zv(n)&&(e.typing=t)}function Xv(e,t){e.typing&&(Yv(e,!1,t),e.add())}function Gv(e){var t,n=it(O.none()),r=it(0),o=it(0),i={data:[],typing:!1,beforeChange:function(){!function(e,t,n){Zv(r)&&n.set(O.some(Ns.getUndoBookmark(e.selection)))}(e,0,n)},add:function(t,c){return function(e,t,n,r,o,i,c){var a=e.settings,s=Rp(e);if(i=i||{},i=Xn.extend(i,s),!1===Zv(r)||e.removed)return null;var l=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:i,lastLevel:l,originalEvent:c}).isDefaultPrevented())return null;if(l&&jp(l,i))return null;if(t.data[n.get()]&&o.get().each(function(e){t.data[n.get()].beforeBookmark=e}),a.custom_undo_redo_levels&&t.data.length>a.custom_undo_redo_levels){for(var u=0;u")}(t=(n=w(function(e){return G(Z(Q(e.childNodes),qv),function(e){return 0e}(e,t)}}function ag(e){return function(t){return function(e,t){return t.line===e}(e,t)}}function sg(e,t){return Math.abs(e.left-t)}function lg(e,t){return Math.abs(e.right-t)}function ug(e,t){return e>=t.left&&e<=t.right}function hg(e,t){return Wn.reduce(e,function(e,n){var r,o;return r=Math.min(sg(e,t),lg(e,t)),o=Math.min(sg(n,t),lg(n,t)),ug(t,n)?n:ug(t,e)?e:o===r&&Sg(n.node)?n:o=e.top&&n<=e.bottom}),t))&&hg(function(e,t){function n(e,n){var o;return o=G(Ap([n]),function(n){return!e(n,t)}),r=r.concat(o),0===o.length}var r=[];return r.push(t),fg(Tp.Up,e,i(n,jc),t.node),fg(Tp.Down,e,i(n,Fc),t.node),r}(e,r),t))&&us(r.node)?function(e,t){return{node:e.node,before:sg(e,t)'),t}(e),1===t?e.$(r).after(o):e.$(r).before(o),e.selection.select(o,!0),e.selection.collapse())}}function Ug(e,t){return function(){var n=function(e,t){var n,r=El(e.getBody()),o=i(_s,r.next),c=i(_s,r.prev),a=t?Hs.Forwards:Hs.Backwards,s=t?o:c,l=e.selection.getRng();return(n=function(e,t,n,r){var o=e===Hs.Forwards,i=o?Ig:Pg;if(!r.collapsed){var c=Xz(r);if(Yz(c))return mg(e,t,c,e===Hs.Backwards,!0)}var a=Vc(r.startContainer),s=Ms(e,t.getBody(),r);if(i(s))return vg(t,s.getNode(!o));var l=Xp.normalizePosition(o,n(s));if(!l)return a?r:null;if(i(l))return mg(e,t,l.getNode(!o),o,!0);var u=n(l);return u&&i(u)&&xs(l,u)?mg(e,t,u.getNode(!o),o,!0):a?gg(t,l.toRange(),!0):null}(a,e,s,l))?n:(n=qg(e,a,l))||null}(e,t);return!!n&&(e.selection.setRng(n),!0)}}function Wg(e,t){return function(){var n=function(e,t){var n,r=t?1:-1,o=t?Hg:xg,i=e.selection.getRng();return(n=function(e,t,n,r){var o,i,c,a,s,l,u,h,f;if(f=Xz(r),o=Ms(e,t.getBody(),r),i=n(t.getBody(),cg(1),o),c=G(i,ag(1)),s=Wn.last(o.getClientRects()),(Ig(o)||Ng(o))&&(f=o.getNode()),(Pg(o)||Og(o))&&(f=o.getNode(!0)),!s)return null;if((a=hg(c,l=s.left))&&Yz(a.node))return u=Math.abs(l-a.left),h=Math.abs(l-a.right),mg(e,t,a.node,ut}),Kz=i(Gg,qz),Jz=i(Gg,Uz),ey=function(e){for(var t=[],n=1;na.childNodes.length-1,a=a.childNodes[Math.min(s,a.childNodes.length-1)]||a,s=g&&Kt.isText(a)?a.nodeValue.length:0),(c=sz(b,a))&&((p&&!u||!p&&u)&&(a=function(e,t,n,r,o){var i,c,a,s,l,u,h=p||"P",f=e.dom,d=sz(f,r);if(!(c=f.getParent(r,f.isBlock))||!cz(f,c)){if(u=(c=c||d)===e.getBody()||c&&/^(TD|TH|CAPTION)$/.test(c.nodeName)?c.nodeName.toLowerCase():c.parentNode.nodeName.toLowerCase(),!c.hasChildNodes())return uz(e,i=f.create(h)),c.appendChild(i),n.setStart(i,0),n.setEnd(i,0),i;for(s=r;s.parentNode!==c;)s=s.parentNode;for(;s&&!f.isBlock(s);)s=(a=s).previousSibling;if(a&&e.schema.isValidChild(u,h.toLowerCase())){for(uz(e,i=f.create(h)),a.parentNode.insertBefore(i,a),s=a;s&&!f.isBlock(s);)l=s.nextSibling,i.appendChild(s),s=l;n.setStart(r,o),n.setEnd(r,o)}}return r}(e,0,C,a,s)),l=b.getParent(a,b.isBlock),d=l?b.getParent(l.parentNode,b.isBlock):null,m=l?l.nodeName.toUpperCase():"","LI"!==(v=d?d.nodeName.toUpperCase():"")||M||(d=(l=d).parentNode,m=v),/^(LI|DT|DD)$/.test(m)&&b.isEmpty(l)?function(e,t,n,r,o){var i=e.dom,c=e.selection.getRng();if(n!==e.getBody()){!function(e){return tz(e)&&tz(e.parentNode)}(n)||(o="LI");var a=o?t(o):i.create("BR");if(rz(n,r,!0)&&rz(n,r,!1))ez(n,"LI")?i.insertAfter(a,nz(n)):i.replace(a,n);else if(rz(n,r,!0))ez(n,"LI")?(i.insertAfter(a,nz(n)),a.appendChild(i.doc.createTextNode(" ")),a.appendChild(n)):n.parentNode.insertBefore(a,n);else if(rz(n,r,!1))i.insertAfter(a,nz(n));else{n=nz(n);var s=c.cloneRange();s.setStartAfter(r),s.setEndAfter(n);var l=s.extractContents();"LI"===o&&function(e,t){return e.firstChild&&"LI"===e.firstChild.nodeName}(l)?(a=l.firstChild,i.insertAfter(l,n)):(i.insertAfter(l,n),i.insertAfter(a,n))}i.remove(r),ky(e,a)}}(e,n,d,l,p):p&&l===e.getBody()||(p=p||"P",Vc(l)?(h=Nc(l),b.isEmpty(l)&&oz(l),uz(e,h),ky(e,h)):r()?o():r(!0)?(h=l.parentNode.insertBefore(n(),l),ky(e,iz(l,"HR")?h:l)):((i=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,az(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,az(!1,e.endContainer,e.endOffset)),t}(C).cloneRange()).setEndAfter(l),function(e){Y(gc(ot.fromDom(e),It),function(e){var t=e.dom();t.nodeValue=ca.trim(t.nodeValue)})}(f=i.extractContents()),function(e){for(;Kt.isText(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild;);}(f),h=f.firstChild,b.insertAfter(f,l),function(e,t,n){var r,o=h,i=[];if(o){for(;o=o.firstChild;){if(e.isBlock(o))return;Kt.isElement(o)&&!t[o.nodeName.toLowerCase()]&&i.push(o)}for(r=i.length;r--;)!(o=i[r]).hasChildNodes()||o.firstChild===o.lastChild&&""===o.firstChild.nodeValue?e.remove(o):(c=e,(a=o)&&"A"===a.nodeName&&c.isEmpty(a)&&e.remove(o));var c,a}}(b,y),function(e,t){var n;t.normalize(),(n=t.lastChild)&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")}(b,l),b.isEmpty(l)&&oz(l),h.normalize(),b.isEmpty(h)?(b.remove(h),o()):(uz(e,h),ky(e,h))),b.setAttrib(h,"id",""),e.fire("NewBlock",{newBlock:h})))},Oy=function(e,t){return!!function(e){return Kt.isBr(e.getNode())}(Ls.after(t))||Su.nextPosition(e,Ls.after(t)).map(function(e){return Kt.isBr(e.getNode())}).getOr(!1)},Iy=function(e,t){var n=function(e){var t=i(Xp.isInlineTarget,e),n=Ls.fromRangeStart(e.selection.getRng());return Jp(t,e.getBody(),n).filter(pz)}(e);n.isSome()?n.each(i(gz,e)):function(e,t){var n,r,o=e.selection,i=e.dom,c=o.getRng();qd(i,c).each(function(e){c.setStart(e.startContainer,e.startOffset),c.setEnd(e.endContainer,e.endOffset)});var a=c.startOffset,s=c.startContainer;if(1===s.nodeType&&s.hasChildNodes()){var l=a>s.childNodes.length-1;s=s.childNodes[Math.min(a,s.childNodes.length-1)]||s,a=l&&3===s.nodeType?s.nodeValue.length:0}var u=i.getParent(s,i.isBlock),h=u?i.getParent(u.parentNode,i.isBlock):null,f=h?h.nodeName.toUpperCase():"",d=!(!t||!t.ctrlKey);"LI"!==f||d||(u=h),s&&3===s.nodeType&&a>=s.nodeValue.length&&!function(e,t,n){for(var r,o=new Ri(s,u),i=e.getNonEmptyElements();r=o.next();)if(i[r.nodeName.toLowerCase()]||0o&&(c=t.pageX+n-o),t.pageY+r>i&&(a=t.pageY+r-i),e.style.width=n-c+"px",e.style.height=r-a+"px"}(e.ghost,i,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}}(s,t),i=function(e,t){return function(n){if(e.dragging&&function(e,t,n){return t!==n&&!e.dom.isChildOf(t,n)&&!pC(t)}(t,function(e){var n=t.selection.getSel().getRangeAt(0).startContainer;return 3===n.nodeType?n.parentNode:n}(),e.element)){var r=function(t){var n=e.element.cloneNode(!0);return n.removeAttribute("data-mce-selected"),n}(),o=t.fire("drop",{targetClone:r,clientX:n.clientX,clientY:n.clientY});o.isDefaultPrevented()||(r=o.targetClone,t.undoManager.transact(function(){Gy(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}bC(e)}}(s,t),c=function(e,t){return function(){e.dragging&&t.fire("dragend"),bC(e)}}(s,t),t.on("mousedown",r),t.on("mousemove",o),t.on("mouseup",i),n.bind(a,"mousemove",o),n.bind(a,"mouseup",c),t.on("remove",function(){n.unbind(a,"mousemove",o),n.unbind(a,"mouseup",c)})}function Ky(e,t){for(var n=e.getBody();t&&t!==n;){if(CC(t)||MC(t))return t;t=t.parentNode}return null}function Jy(e){function t(t){t&&e.selection.setRng(t)}function n(){return e.selection.getRng()}function r(t,n,r,o){return void 0===o&&(o=!0),e.fire("ShowCaret",{target:n,direction:t,before:r}).isDefaultPrevented()?null:(o&&e.selection.scrollIntoView(n,-1===t),a.show(r,n))}function o(e){return Ac(e)||la(e)||ua(e)}var i,c=e.getBody(),a=ss(e,c,function(t){return e.dom.isBlock(t)},function(){return Jh(e)}),s="sel-"+e.dom.uniqueId(),l=function(e){return o(e.startContainer)||o(e.endContainer)},u=function(t,n){var o,a,u,h,d,m,v,p,g,b,z=e.$,y=e.dom;if(!t)return null;if(t.collapsed){if(!l(t))if(!1===n){if(us((p=Ms(-1,c,t)).getNode(!0)))return r(-1,p.getNode(!0),!1,!1);if(us(p.getNode()))return r(-1,p.getNode(),!p.isAtEnd(),!1)}else{if(us((p=Ms(1,c,t)).getNode()))return r(1,p.getNode(),!p.isAtEnd(),!1);if(us(p.getNode(!0)))return r(1,p.getNode(!0),!1,!1)}return null}if(h=t.startContainer,d=t.startOffset,m=t.endOffset,3===h.nodeType&&0===d&&MC(h.parentNode)&&(h=h.parentNode,d=y.nodeIndex(h),h=h.parentNode),1!==h.nodeType)return null;if(m===d+1&&h===t.endContainer&&(o=h.childNodes[d]),!MC(o))return null;if(g=b=o.cloneNode(!0),(v=e.fire("ObjectSelected",{target:o,targetClone:g})).isDefaultPrevented())return null;a=Mc(ot.fromDom(e.getBody()),"#"+s).fold(function(){return z([])},function(e){return z([e.dom()])}),g=v.targetClone,0===a.length&&(a=z('
    ').attr("id",s)).appendTo(e.getBody()),t=e.dom.createRng(),g===b&&qn.ie?(a.empty().append('

     

    ').append(g),t.setStartAfter(a[0].firstChild.firstChild),t.setEndAfter(g)):(a.empty().append(Fr).append(g).append(Fr),t.setStart(a[0].firstChild,1),t.setEnd(a[0].lastChild,0)),a.css({top:y.getPos(o,e.getBody()).y}),a[0].focus(),(u=e.selection.getSel()).removeAllRanges(),u.addRange(t);var C=ot.fromDom(o);return Y(vc(ot.fromDom(e.getBody()),"*[data-mce-selected]"),function(e){ve(C,e)||Ye(e,"data-mce-selected")}),e.dom.getAttrib(o,"data-mce-selected")||o.setAttribute("data-mce-selected","1"),i=o,f(),t},h=function(){i&&(i.removeAttribute("data-mce-selected"),Mc(ot.fromDom(e.getBody()),"#"+s).each(Nt),i=null),Mc(ot.fromDom(e.getBody()),"#"+s).each(Nt),i=null},f=function(){a.hide()};return qn.ceFalse&&function(){var o;e.on("mouseup",function(r){var o=n();o.collapsed&&gf(e,r.clientX,r.clientY)&&t(pg(e,o,!1))}),e.on("click",function(t){var n;(n=Ky(e,t.target))&&(MC(n)&&(t.preventDefault(),e.focus()),CC(n)&&e.dom.isChildOf(n,e.selection.getNode())&&h())}),e.on("blur NewBlock",function(){h()}),e.on("ResizeWindow FullscreenStateChanged",function(){return a.reposition()}),(o=e).on("tap",function(e){var t=Ky(o,e.target);MC(t)&&(e.preventDefault(),u(vg(o,t)))},!0),e.on("mousedown",function(n){var o,i=n.target;if((i===c||"HTML"===i.nodeName||e.dom.isChildOf(i,c))&&!1!==gf(e,n.clientX,n.clientY))if(o=Ky(e,i))MC(o)?(n.preventDefault(),u(vg(e,o))):(h(),CC(o)&&n.shiftKey||Tf(n.clientX,n.clientY,e.selection.getRng())||(f(),e.selection.placeCaretAt(n.clientX,n.clientY)));else if(!1===us(i)){h(),f();var a=dg(c,n.clientX,n.clientY);if(a&&!function(t,n){var r=e.dom.getParent(t,e.dom.isBlock),o=e.dom.getParent(n,e.dom.isBlock);return!(!r||!e.dom.isChildOf(r,o)||!1!==MC(Ky(e,r)))||r&&!function(t,n){return e.dom.getParent(t,e.dom.isBlock)===e.dom.getParent(n,e.dom.isBlock)}(r,o)&&function(e){var t=El(e);if(!e.firstChild)return!1;var n=Ls.before(e.firstChild),r=t.next(n);return r&&!Ig(r)&&!Pg(r)}(r)}(n.target,a.node)){n.preventDefault();var s=r(1,a.node,a.before,!1);e.getBody().focus(),t(s)}}}),e.on("keypress",function(t){Ef.modifierPressed(t)||(t.keyCode,MC(e.selection.getNode())&&t.preventDefault())}),e.on("GetSelectionRange",function(e){var t=e.range;if(i){if(!i.parentNode)return void(i=null);(t=t.cloneRange()).selectNode(i),e.range=t}}),e.on("SetSelectionRange",function(t){t.range=function(t){var n=e.schema.getShortEndedElements(),r=e.dom.createRng(),o=t.startContainer,i=t.startOffset,c=t.endContainer,a=t.endOffset;return te(n,o.nodeName.toLowerCase())?0===i?r.setStartBefore(o):r.setStartAfter(o):r.setStart(o,i),te(n,c.nodeName.toLowerCase())?0===a?r.setEndBefore(c):r.setEndAfter(c):r.setEnd(c,a),r}(t.range);var n=u(t.range,t.forward);n&&(t.range=n)}),e.on("AfterSetSelectionRange",function(t){var n=t.range;l(n)||"mcepastebin"===n.startContainer.parentNode.id||f(),function(t){return e.dom.hasClass(t,"mce-offscreen-selection")}(n.startContainer.parentNode)||h()}),e.on("copy",function(t){var n=t.clipboardData;if(!t.isDefaultPrevented()&&t.clipboardData&&!qn.ie){var r=function(){var t=e.dom.get(s);return t?t.getElementsByTagName("*")[0]:t}();r&&(t.preventDefault(),n.clearData(),n.setData("text/html",r.outerHTML),n.setData("text/plain",r.outerText))}}),zC(e),yC(e)}(),{showCaret:r,showBlockCaretContainer:function(r){r.hasAttribute("data-mce-caret")&&(Nc(r),t(n()),e.selection.scrollIntoView(r))},hideFakeCaret:f,destroy:function(){a.destroy(),i=null}}}function eC(e){var t;e.bindPendingEventDelegates(),e.initialized=!0,function(e){e.fire("Init")}(e),e.focus(!0),function(e){var t=e.dom.getRoot();e.inline||Xf(e)&&e.selection.getStart(!0)!==t||Su.firstPositionIn(t).each(function(t){var n=t.getNode(),r=Kt.isTable(n)?Su.firstPositionIn(n).getOr(t):t;qn.browser.isIE()?Wh(e,r.toRange()):e.selection.setRng(r.toRange())})}(e),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),(t=e).settings.auto_focus&&Nn.setEditorTimeout(t,function(){var e;(e=!0===t.settings.auto_focus?t:t.editorManager.get(t.settings.auto_focus)).destroyed||e.focus()},100)}function tC(e){return e.replace(/^\-/,"")}function nC(e){return{editorContainer:e,iframeContainer:e}}function rC(e){return"-"===e.charAt(0)}function oC(e,n){var r=tc.ScriptLoader;!function(e,t,n,r){var o=t.settings,i=o.theme;if(I(i)){if(!rC(i)&&!Cf.urls.hasOwnProperty(i)){var c=o.theme_url;c?Cf.load(i,t.documentBaseURI.toAbsolute(c)):Cf.load(i,"themes/"+i+"/theme"+n+".js")}e.loadQueue(function(){Cf.waitFor(i,r)})}else r()}(r,e,n,function(){!function(e,n){var r=dl(n),o=ml(n);if(!1===ac.hasCode(r)&&"en"!==r){var i=""!==o?o:n.editorManager.baseURL+"/langs/"+r+".js";e.add(i,t,void 0,function(){Lf.languageLoadError(n,i,r)})}}(r,e),function(e,n){var r;(r=n,O.from(nl(r)).filter(function(e){return 0",qs(e)!==e.documentBaseUrl&&(r+=''),r+='',t=Us(e),n=Ws(e),Zs(e)&&(r+=''),r+'
    '}(t),xC.add(n.iframeContainer,o),i}(t,n);n.editorContainer&&(xC.get(n.editorContainer).style.display=t.orgDisplay,t.hidden=xC.isHidden(n.editorContainer)),t.getElement().style.display="none",xC.setAttrib(t.id,"aria-hidden","true"),r||_C(t)},SC=Qi.DOM,LC=function(e,t,n){var r=yf.get(n),o=yf.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=Xn.trim(n),r&&-1===Xn.inArray(t,n)){if(Xn.each(yf.dependencies(n),function(n){LC(e,t,n)}),e.plugins[n])return;try{var i=new r(e,o,e.$);(e.plugins[n]=i).init&&(i.init(e,o),t.push(n))}catch(t){Lf.pluginInitError(e,n,t)}}},VC=function(e){e.fire("ScriptsLoaded"),function(e){var t=Xn.trim(e.settings.icons),n=e.ui.registry.getAll().icons;V(ne(ne({},{"accessibility-check":'',"action-next":'',"action-prev":'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-width":'',brightness:'',browse:'',cancel:'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',cut:'',"document-properties":'',drag:'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',fill:'',"flip-horizontally":'',"flip-vertically":'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"page-break":'',paragraph:'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',settings:'',sharpen:'',"sort-asc":'',"sort-dsc":'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',template:'',"temporary-placeholder":'',"text-color":'',toc:'',translate:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":''}),ff.get(t).icons),function(t,r){te(n,r)||e.ui.registry.addIcon(r,t)})}(e),function(e){var t=e.settings.theme;if(I(t)){e.settings.theme=tC(t);var n=Cf.get(t);e.theme=new n(e,Cf.urls[t]),e.theme.init&&e.theme.init(e,Cf.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}}(e),function(e){var t=[];Xn.each(e.settings.plugins.split(/[ ,]/),function(n){LC(e,t,tC(n))})}(e);var t=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,I(e.settings.theme)?function(e){return e.theme.renderUI()}(e):F(e.settings.theme)?function(e){var t=e.getElement(),n=(0,e.settings.theme)(e,t);return n.editorContainer.nodeType&&(n.editorContainer.id=n.editorContainer.id||e.id+"_parent"),n.iframeContainer&&n.iframeContainer.nodeType&&(n.iframeContainer.id=n.iframeContainer.id||e.id+"_iframecontainer"),n.height=n.iframeHeight?n.iframeHeight:t.offsetHeight,n}(e):function(e){var t=e.getElement();return e.inline?nC(null):function(e){var t=SC.create("div");return SC.insertAfter(t,e),nC(t)}(t)}(e)}(e);return e.editorContainer=t.editorContainer?t.editorContainer:null,function(e){e.contentCSS=e.contentCSS.concat(function(e){var t=gl(e),n=e.editorManager.baseURL+"/skins/content",r="content"+e.editorManager.suffix+".css",o=!0===e.inline;return Z(t,function(t){return function(e){return/^[a-z0-9\-]+$/i.test(e)}(t)&&!o?n+"/"+t+"/"+r:e.documentBaseURI.toAbsolute(t)})}(e))}(e),e.inline?_C(e):HC(e,t)},kC=Qi.DOM,AC=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||function(e,t){return e.getBlockElements()[t.name]&&function(e){return e.firstChild&&e.firstChild===e.lastChild}(t)&&function(e){return"br"===e.name||e.value===Fr}(t.firstChild)}(e,t))}(e,r)&&(r=r.prev),!(!n||n!==r||"ul"!==n.name&&"ol"!==n.name)},TC=function(e,t,n,r){function o(e){var r=Ls.fromRangeStart(n),o=El(t.getRoot()),i=1===e?o.prev(r):o.next(r);return!i||cC(t,i.getNode())!==c}var i=function(e,t,n){var r=t.serialize(n);return function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e}(e.createFragment(r))}(t,e,r),c=cC(t,n.startContainer),a=iC(function(e){return Xn.grep(e.childNodes,function(e){return"LI"===e.nodeName})}(i.firstChild)),s=t.getRoot();return o(1)?function(e,t,n){var r=e.parentNode;return Xn.each(t,function(t){r.insertBefore(t,e)}),function(e,t){var n=Ls.before(e),r=El(t).next(n);return r?r.toRange():null}(e,n)}(c,a,s):o(2)?function(e,n,r,o){return t.insertAfter(n.reverse(),e),aC(n[0],r)}(c,a,s):function(e,t,n,r){var o=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]}(e,r),i=e.parentNode;return i.insertBefore(o[0],e),Xn.each(t,function(t){i.insertBefore(t,e)}),i.insertBefore(o[1],e),i.removeChild(e),aC(t[t.length-1],n)}(c,a,s,n)},EC=function(e,t){return!!cC(e,t)},DC=Kt.matchNodeNames(["td","th"]),NC=function(e,t){var n=function(e){var t;return"string"!=typeof e?(t=Xn.extend({paste:e.paste,data:{paste:e.paste}},e),{content:e.content,details:t}):{content:e,details:{}}}(t);!function(e,t,n){var r,o,i,c,a,s,l,u,h,f,d,m=e.selection,v=e.dom;if(/^ | $/.test(t)&&(t=function(e,t){var n,r;function o(e){return n[e]&&3===n[e].nodeType}return n=e.startContainer,r=e.startOffset,3===n.nodeType&&(0|)$/," "):o("nextSibling")||(t=t.replace(/( | )(
    |)$/," "))),t}(m.getRng(),t)),r=e.parser,d=n.merge,o=nh({validate:e.settings.validate},e.schema),f='​',s={content:t,format:"html",selection:!0,paste:n.paste},(s=e.fire("BeforeSetContent",s)).isDefaultPrevented())e.fire("SetContent",{content:s.content,format:"html",selection:!0,paste:n.paste});else{-1===(t=s.content).indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,f);var p=(u=m.getRng()).startContainer||(u.parentElement?u.parentElement():null),g=e.getBody();p===g&&m.isCollapsed()&&v.isBlock(g.firstChild)&&function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]}(e,g.firstChild)&&v.isEmpty(g.firstChild)&&((u=v.createRng()).setStart(g.firstChild,0),u.setEnd(g.firstChild,0),m.setRng(u)),m.isCollapsed()||(e.selection.setRng(Ev(e.selection.getRng())),e.getDoc().execCommand("Delete",!1,null),t=function(e,t){var n,r;return n=e.startContainer,r=e.startOffset,3===n.nodeType&&e.collapsed&&(n.data[r]===Fr?(n.deleteData(r,1),/[\u00a0| ]$/.test(t)||(t+=" ")):n.data[r-1]===Fr&&(n.deleteData(r-1,1),/[\u00a0| ]$/.test(t)||(t=" "+t))),t}(e.selection.getRng(),t));var b={context:(i=m.getNode()).nodeName.toLowerCase(),data:n.data,insert:!0};if(a=r.parse(t,b),!0===n.paste&&AC(e.schema,a)&&EC(v,i))return u=TC(o,v,e.selection.getRng(),a),e.selection.setRng(u),void e.fire("SetContent",s);if(function(e){for(var t=a;t=t.walk();)1===t.type&&t.attr("data-mce-fragment","1")}(),"mce_marker"===(h=a.lastChild).attr("id"))for(h=(l=h).prev;h;h=h.walk(!0))if(3===h.type||!v.isBlock(h.name)){e.schema.isValidChild(h.parent.name,"span")&&h.parent.insert(l,h,"br"===h.name);break}if(e._selectionOverrides.showBlockCaretContainer(i),b.invalid){for(sC(e,f),i=m.getNode(),c=e.getBody(),9===i.nodeType?i=h=c:h=i;h!==c;)h=(i=h).parentNode;t=i===c?c.innerHTML:v.getOuterHTML(i),t=o.serialize(r.parse(t.replace(//i,function(){return o.serialize(a)}))),i===c?v.setHTML(c,t):v.setOuterHTML(i,t)}else!function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,o=n.lastChild;!r||r===o&&"BR"===r.nodeName?e.dom.setHTML(n,t):sC(e,t)}}(e,t=o.serialize(a),i);!function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var o=e.getBody(),i=new hv(r);Xn.each(r.select("*[data-mce-fragment]"),function(e){for(var t=e.parentNode;t&&t!==o;t=t.parentNode)n[e.nodeName.toLowerCase()]&&i.compare(t,e)&&r.remove(e,!0)})}}(e,d),function(e,t){var n,r,o,i,c,a=e.dom,s=e.selection;if(t){if(e.selection.scrollIntoView(t),n=function(t){for(var n=e.getBody();t&&t!==n;t=t.parentNode)if("false"===e.dom.getContentEditable(t))return t;return null}(t))return a.remove(t),s.select(n);var l=a.createRng();(i=t.previousSibling)&&3===i.nodeType?(l.setStart(i,i.nodeValue.length),qn.ie||(c=t.nextSibling)&&3===c.nodeType&&(i.appendData(c.data),c.parentNode.removeChild(c))):(l.setStartBefore(t),l.setEndBefore(t)),r=a.getParent(t,a.isBlock),a.remove(t),r&&a.isEmpty(r)&&(e.$(r).empty(),l.setStart(r,0),l.setEnd(r,0),DC(r)||r.getAttribute("data-mce-fragment")||!(o=function(t){var n=Ls.fromRangeStart(t);if(n=El(e.getBody()).next(n))return n.toRange()}(l))?a.add(r,a.create("br",{"data-mce-bogus":"1"})):(l=o,a.remove(r))),s.setRng(l)}}(e,v.get("mce_marker")),function(e){Xn.each(e.getElementsByTagName("*"),function(e){e.removeAttribute("data-mce-fragment")})}(e.getBody()),function(e,t){O.from(e.getParent(t,"td,th")).map(ot.fromDom).each(Km)}(e.dom,e.selection.getStart()),e.fire("SetContent",s),e.addVisual()}}(e,n.content,n.details)},OC={"font-size":"size","font-family":"face"},IC={getFontSize:hC("font-size"),getFontFamily:n(function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},hC("font-family")),toPt:function(e,t){return/[0-9.]+px$/.test(e)?function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}(72*parseInt(e,10)/96,t||0)+"pt":e}},PC=Xn.each,RC=Xn.map,BC=Xn.inArray,jC=(FC.prototype.execCommand=function(e,t,n,r){var o,i,c=!1,a=this;if(!a.editor.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?function(e){dh(e).each(function(t){e.selection.setRng(t)})}(a.editor):a.editor.focus(),(r=a.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n})).isDefaultPrevented())return!1;if(i=e.toLowerCase(),o=a.commands.exec[i])return o(i,t,n),a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(PC(this.editor.plugins,function(r){if(r.execCommand&&r.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!(c=!0)}),c)return c;if(a.editor.theme&&a.editor.theme.execCommand&&a.editor.theme.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{c=a.editor.getDoc().execCommand(e,t,n)}catch(e){}return!!c&&(a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},FC.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(e){}return!1}},FC.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(e){}}},FC.prototype.addCommands=function(e,t){var n=this;t=t||"exec",PC(e,function(e,r){PC(r.toLowerCase().split(","),function(r){n.commands[t][r]=e})})},FC.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,o,i,c){return t.call(n||r.editor,o,i,c)}},FC.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(e){}return!1},FC.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},FC.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},FC.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},FC.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},FC.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},FC.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t?{value:t}:void 0),this.editor.nodeChanged()},FC.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},FC.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},FC.prototype.setupCommands=function(e){var t=this;function n(t){return function(){var n=e.selection.isCollapsed()?[e.dom.getParent(e.selection.getNode(),e.dom.isBlock)]:e.selection.getSelectedBlocks(),r=RC(n,function(n){return!!e.formatter.matchNode(n,t)});return-1!==BC(r,!0)}}this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},"Cut,Copy,Paste":function(n){var r,o=e.getDoc();try{t.execNativeCommand(n)}catch(e){r=!0}if("paste"!==n||o.queryCommandEnabled(n)||(r=!0),r||!o.queryCommandSupported(n)){var i=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");qn.mac&&(i=i.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:i,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),PC("left,center,right,justify".split(","),function(t){r!==t&&e.formatter.remove("align"+t)}),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r,o;t.execNativeCommand(n),(r=e.dom.getParent(e.selection.getNode(),"ol,ul"))&&(o=r.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(o.nodeName)&&(t.storeSelection(),e.dom.split(o,r),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,r)},FontName:function(t,n,r){!function(e,t){var n=mC(e,t);e.formatter.toggle("fontname",{value:function(e){var t=n.split(/\s*,\s*/);return Z(t,function(e){return-1===e.indexOf(" ")||ae(e,'"')||ae(e,"'")?e:"'"+e+"'"}).join(",")}()}),e.nodeChanged()}(e,r)},FontSize:function(t,n,r){!function(e,t){e.formatter.toggle("fontsize",{value:mC(e,t)}),e.nodeChanged()}(e,r)},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,o){var i=o||e.selection.getNode();i!==e.getBody()&&(t.storeSelection(),e.dom.remove(i,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var o=0;e.dom.getParent(e.selection.getNode(),function(t){if(1===t.nodeType&&o++===r)return e.selection.select(t),!1},e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){NC(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var o=e.getContent();e.setContent(o.replace(/tiny_mce_marker/g,function(){return r}))},mceInsertNewLine:function(t,n,r){jy(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){Yb(e,t)},mceRepaint:function(){},InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"
    ")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){var o;"string"==typeof r&&(r={href:r}),o=e.dom.getParent(e.selection.getNode(),"a"),r.href=r.href.replace(/ /g,"%20"),o&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,o)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),Kt.isContentEditableTrue);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},delete:function(){var t;Vy(t=e)||dy(t,!1)||vy(t,!1)||py(t,!1)||ay(t,!1)||My(t)||sy(t)||gy(t,!1)||(lC(t,"Delete"),ry(t))},forwardDelete:function(){var t;dy(t=e,!0)||vy(t,!0)||py(t,!0)||ay(t,!0)||My(t)||sy(t)||gy(t,!0)||lC(t,"ForwardDelete")},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return Iy(e,r),!0}}),t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return Wb(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",function(){return dC(t=e).fold(function(){return fC(t).map(function(e){return IC.getFontFamily(t.getBody(),e)}).getOr("")},function(e){return IC.getFontFamily(t.getBody(),e)});var t},this),t.addQueryValueHandler("FontSize",function(){return dC(t=e).fold(function(){return fC(t).map(function(e){return IC.getFontSize(t.getBody(),e)}).getOr("")},function(e){return IC.getFontSize(t.getBody(),e)});var t},this)},FC);function FC(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}var $C=Xn.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),qC=(UC.isNative=function(e){return!!$C[e.toLowerCase()]},UC.prototype.fire=function(e,t){var n,r,o,i;if(e=e.toLowerCase(),(t=t||{}).type=e,t.target||(t.target=this.scope),t.preventDefault||(t.preventDefault=function(){t.isDefaultPrevented=u},t.stopPropagation=function(){t.isPropagationStopped=u},t.stopImmediatePropagation=function(){t.isImmediatePropagationStopped=u},t.isDefaultPrevented=l,t.isPropagationStopped=l,t.isImmediatePropagationStopped=l),this.settings.beforeFire&&this.settings.beforeFire(t),n=this.bindings[e])for(r=0,o=n.length;r"),this.parseShortcut))[o.length-1]=Xn.extend(o[o.length-1],{func:n,scope:r||this.editor}),Xn.extend(o[0],{desc:this.editor.translate(t),subpatterns:o.slice(1)})},dM.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},dM.prototype.isFunctionKey=function(e){return"keydown"===e.type&&112<=e.keyCode&&e.keyCode<=123},dM.prototype.matchShortcut=function(e,t){return!!t&&t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&t.alt===e.altKey&&t.shift===e.shiftKey&&!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0)},dM.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},dM);function dM(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(sM(t.shortcuts,function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0}),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))})}function mM(){var e=function(){function e(e,t){return function(n,r){return e[n.toLowerCase()]=ne(ne({},r),{type:t})}}var t={},n={},r={},o={},i={},c={},a={};return{addButton:e(t,"button"),addGroupToolbarButton:e(t,"grouptoolbarbutton"),addToggleButton:e(t,"togglebutton"),addMenuButton:e(t,"menubutton"),addSplitButton:e(t,"splitbutton"),addMenuItem:e(n,"menuitem"),addNestedMenuItem:e(n,"nestedmenuitem"),addToggleMenuItem:e(n,"togglemenuitem"),addAutocompleter:e(r,"autocompleter"),addContextMenu:e(i,"contextmenu"),addContextToolbar:e(c,"contexttoolbar"),addContextForm:e(c,"contextform"),addSidebar:e(a,"sidebar"),addIcon:function(e,t){return o[e.toLowerCase()]=t},getAll:function(){return{buttons:t,menuItems:n,icons:o,popups:r,contextMenus:i,contextToolbars:c,sidebars:a}}}}();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addGroupToolbarButton:e.addGroupToolbarButton,addToggleMenuItem:e.addToggleMenuItem,getAll:e.getAll}}var vM=Xn.each,pM=Xn.trim,gM="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),bM={ftp:21,http:80,https:443,mailto:25},zM=(yM.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},yM.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},yM.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},yM.prototype.toRelative=function(e){var t;if("./"===e)return e;var n=new yM(e,{base_uri:this});if("mce_host"!==n.host&&this.host!==n.host&&n.host||this.port!==n.port||this.protocol!==n.protocol&&""!==n.protocol)return n.getURI();var r=this.getURI(),o=n.getURI();return r===o||"/"===r.charAt(r.length-1)&&r.substr(0,r.length-1)===o?r:(t=this.toRelPath(this.path,n.path),n.query&&(t+="?"+n.query),n.anchor&&(t+="#"+n.anchor),t)},yM.prototype.toAbsolute=function(e,t){var n=new yM(e,{base_uri:this});return n.getURI(t&&this.isSameOrigin(n))},yM.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=bM[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},yM.prototype.toRelPath=function(e,t){var n,r,o,i=0,c="",a=e.substring(0,e.lastIndexOf("/")).split("/");if(n=t.split("/"),a.length>=n.length)for(r=0,o=a.length;r=n.length||a[r]!==n[r]){i=r+1;break}if(a.length=a.length||a[r]!==n[r]){i=r+1;break}if(1===i)return t;for(r=0,o=a.length-(i-1);r]*>( | |\\s| |
    |)<\\/"+n+">[\r\n]*|
    [\r\n]*)$");return t.replace(r,"")}(e,e.serializer.serialize(n,t))}return"text"===t.format||hr(ot.fromDom(n))?t.content=r:t.content=Xn.trim(r),t.no_events||e.fire("GetContent",t),t.content}(t,n,e)});var t,n},SM.prototype.insertContent=function(e,t){t&&(e=MM({content:e},t)),this.execCommand("mceInsertContent",!1,e)},SM.prototype.resetContent=function(e){void 0===e?Mh(this,this.startContent,{format:"raw"}):Mh(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},SM.prototype.isDirty=function(){return!this.isNotDirty},SM.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},SM.prototype.getContainer=function(){return this.container||(this.container=CM.get(this.editorContainer||this.id+"_parent")),this.container},SM.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},SM.prototype.getElement=function(){return this.targetElm||(this.targetElm=CM.get(this.id)),this.targetElm},SM.prototype.getWin=function(){var e;return this.contentWindow||(e=this.iframeElement)&&(this.contentWindow=e.contentWindow),this.contentWindow},SM.prototype.getDoc=function(){var e;return this.contentDocument||(e=this.getWin())&&(this.contentDocument=e.document),this.contentDocument},SM.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},SM.prototype.convertURL=function(e,t,n){var r=this.settings;return r.urlconverter_callback?this.execCallback("urlconverter_callback",e,n,!0,t):!r.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:r.relative_urls?this.documentBaseURI.toRelative(e):e=this.documentBaseURI.toAbsolute(e,r.remove_script_host)},SM.prototype.addVisual=function(e){var t,n=this,r=n.settings,o=n.dom;e=e||n.getBody(),void 0===n.hasVisual&&(n.hasVisual=r.visual),wM(o.select("table,a",e),function(e){var i;switch(e.nodeName){case"TABLE":return t=r.visual_table_class||"mce-item-table",void((i=o.getAttrib(e,"border"))&&"0"!==i||!n.hasVisual?o.removeClass(e,t):o.addClass(e,t));case"A":return void(o.getAttrib(e,"href")||(i=o.getAttrib(e,"name")||e.id,t=r.visual_anchor_class||"mce-item-anchor",i&&n.hasVisual?o.addClass(e,t):o.removeClass(e,t)))}}),n.fire("VisualAid",{element:e,hasVisual:n.hasVisual})},SM.prototype.remove=function(){!function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),o=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&o&&tf.remove(o.nextSibling),function(e){e.fire("remove")}(e),e.editorManager.remove(e),!e.inline&&r&&function(e){tf.setStyle(e.id,"display",e.orgDisplay)}(e),function(e){e.fire("detach")}(e),tf.remove(e.getContainer()),wh(t),wh(n),e.destroy()}}(this)},SM.prototype.destroy=function(e){!function(e,t){var n=e.selection,r=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),wh(n),wh(r)),function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),tf.unbind(t,"submit reset",e.formEventDelegate))}(e),function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)}(e),e.destroyed=!0):e.remove())}(this,e)},SM.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},SM.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},SM.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},SM.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},SM.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},SM.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},SM);function SM(n,r,o){var i=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=o,this.documentBaseUrl=o.documentBaseURL,MM(this,cM),this.settings=function(e,t,n,r,o){var i=function(e,t,n,r,o){var i={id:t,theme:"silver",toolbar_mode:Hh(e,"floating"),plugins:"",document_base_url:n,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:o.convertURL,url_converter_scope:o};return ne(ne({},i),r?hf:{})}(o,t,n,af,e);return Sh(sf||lf,sf,i,r,o)}(this,n,this.documentBaseUrl,o.defaultSettings,r),this.settings.suffix&&(o.suffix=this.settings.suffix),this.suffix=o.suffix,this.settings.base_url&&o._setBaseUrl(this.settings.base_url),this.baseUri=o.baseURI,this.settings.referrer_policy&&(tc.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),Qi.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),pc.languageLoad=this.settings.language_load,pc.baseURL=o.baseURL,this.id=n,this.setDirty(!1),this.documentBaseURI=new zM(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new fM(this),this.editorCommands=new jC(this),this.settings.cache_suffix&&(qn.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:mM()};var c=function(n){var r,o=it("design"),i=it({design:{activate:t,deactivate:t,editorReadOnly:!1},readonly:{activate:t,deactivate:t,editorReadOnly:!0}});return(r=n).serializer?QC(r):r.on("PreInit",function(){QC(r)}),function(e){e.on("ShowCaret",function(t){GC(e)&&t.preventDefault()}),e.on("ObjectSelected",function(t){GC(e)&&t.preventDefault()})}(n),{isReadOnly:function(){return GC(n)},set:function(e){return function(e,t,n,r){if(r!==n.get()){if(!te(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?tM(e,n,t,r):e.on("init",function(){return tM(e,n,t,r)})}}(n,i.get(),o,e)},get:function(){return o.get()},register:function(t,n){i.set(function(t,n,r){var o;if(g(aM,n))throw new Error("Cannot override default mode "+n);return ne(ne({},t),((o={})[n]=ne(ne({},r),{deactivate:function(){try{r.deactivate()}catch(t){e.console.error("problem while deactivating editor mode "+n+":",t)}}}),o))}(i.get(),t,n))}}}(this);this.mode=c,this.setMode=c.set,o.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Pi.overrideDefaults(function(){return{context:i.inline?i.getBody():i.getDoc(),element:i.getBody()}})}function LM(e){var t=e.type;NM(FM.get(),function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e)}})}function VM(e){e!==PM&&(e?Pi(window).on("resize scroll",LM):Pi(window).off("resize scroll",LM),PM=e)}function kM(e){var t=BM;delete RM[e.id];for(var n=0;n=n.x&&o.x+o.w<=n.w+n.x&&o.y>=n.y&&o.y+o.h<=n.h+n.y)return r[i];return null},intersect:function(e,t){var n,r,o,i;return n=JM(e.x,t.x),r=JM(e.y,t.y),o=KM(e.x+e.w,t.x+t.w),i=KM(e.y+e.h,t.y+t.h),o-n<0||i-r<0?null:tw(n,r,o-n,i-r)},clamp:function(e,t,n){var r,o,i,c,a,s,l,u,h,f;return a=e.x,s=e.y,l=e.x+e.w,u=e.y+e.h,h=t.x+t.w,f=t.y+t.h,r=JM(0,t.x-a),o=JM(0,t.y-s),i=JM(0,l-h),c=JM(0,u-f),a+=r,s+=o,n&&(l+=r,u+=o,a-=i,s-=c),tw(a,s,(l-=i)-a,(u-=c)-s)},create:tw,fromClientRect:function(e){return tw(e.left,e.top,e.width,e.height)}},rw=Xn.each,ow=Xn.extend;UM.extend=YM=function(e){function t(){var e,t,n;if(!XM&&(this.init&&this.init.apply(this,arguments),t=this.Mixins))for(e=t.length;e--;)(n=t[e]).init&&n.init.apply(this,arguments)}function n(){return this}function r(e,t){return function(){var n,r=this._super;return this._super=a[e],n=t.apply(this,arguments),this._super=r,n}}var o,i,c,a=this.prototype;for(i in XM=!0,o=new this,XM=!1,e.Mixins&&(rw(e.Mixins,function(t){for(var n in t)"init"!==n&&(e[n]=t[n])}),a.Mixins&&(e.Mixins=a.Mixins.concat(e.Mixins))),e.Methods&&rw(e.Methods.split(","),function(t){e[t]=n}),e.Properties&&rw(e.Properties.split(","),function(t){var n="_"+t;e[t]=function(e){return void 0!==e?(this[n]=e,this):this[n]}}),e.Statics&&rw(e.Statics,function(e,n){t[n]=e}),e.Defaults&&a.Defaults&&(e.Defaults=ow({},a.Defaults,e.Defaults)),e)"function"==typeof(c=e[i])&&a[i]?o[i]=r(i,c):o[i]=c;return t.prototype=o,(t.constructor=t).extend=YM,t};var iw,cw,aw,sw,lw=Math.min,uw=Math.max,hw=Math.round,fw={serialize:function(e){var t=JSON.stringify(e);return I(t)?t.replace(/[\u0080-\uFFFF]/g,function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t}):t},parse:function(e){try{return JSON.parse(e)}catch(e){}}},dw={callbacks:{},count:0,send:function(e){var t=this,n=Qi.DOM,r=void 0!==e.count?e.count:t.count,o="tinymce_jsonp_"+r;t.callbacks[r]=function(i){n.remove(o),delete t.callbacks[r],e.callback(i)},n.add(n.doc.body,"script",{id:o,src:e.url,type:"text/javascript"}),t.count++}},mw=ne(ne({},rM),{send:function(t){var n,r=0,o=function(){!t.async||4===n.readyState||1e4n?t+n:n}function a(e,t){return Math.round((/%/.test(e)?("x"===t?H.width():o())/100:1)*parseInt(e,10))}function s(e,t){return e.get("photo")||e.get("photoRegex").test(t)}function l(e,t){return e.get("retinaUrl")&&n.devicePixelRatio>1?t.replace(e.get("photoRegex"),e.get("retinaSuffix")):t}function u(e){"contains"in b[0]&&!b[0].contains(e.target)&&e.target!==g[0]&&(e.stopPropagation(),b.focus())}function h(e){h.str!==e&&(b.add(g).removeClass(h.str).addClass(e),h.str=e)}function f(n){e(t).trigger(n),ce.triggerHandler(n)}function d(n){var o;if(!W){if(o=e(n).data(Q),function(t){F=0,t&&!1!==t&&"nofollow"!==t?(x=e("."+J).filter(function(){return new i(this,e.data(this,Q)).get("rel")===t}),-1===(F=x.index(I.el))&&(x=x.add(I.el),F=x.length-1)):x=e(I.el)}((I=new i(n,o)).get("rel")),!q){q=U=!0,h(I.get("className")),b.css({visibility:"hidden",display:"block",opacity:""}),S=r(ae,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),y.css({width:"",height:""}).append(S),P=C.height()+_.height()+y.outerHeight(!0)-y.height(),R=M.width()+w.width()+y.outerWidth(!0)-y.width(),B=S.outerHeight(!0),j=S.outerWidth(!0);var c=a(I.get("initialWidth"),"x"),s=a(I.get("initialHeight"),"y"),l=I.get("maxWidth"),d=I.get("maxHeight");I.w=Math.max((!1!==l?Math.min(c,a(l,"x")):c)-j-R,0),I.h=Math.max((!1!==d?Math.min(s,a(d,"y")):s)-B-P,0),S.css({width:"",height:I.h}),Y.position(),f(ee),I.get("onOpen"),O.add(k).hide(),b.focus(),I.get("trapFocus")&&t.addEventListener&&(t.addEventListener("focus",u,!0),ce.one(oe,function(){t.removeEventListener("focus",u,!0)})),I.get("returnFocus")&&ce.one(oe,function(){e(I.el).focus()})}var m=parseFloat(I.get("opacity"));g.css({opacity:m==m?m:"",cursor:I.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),I.get("closeButton")?N.html(I.get("close")).appendTo(y):N.appendTo("
    "),p()}}function m(){b||(X=!1,H=e(n),b=r(ae).attr({id:Q,class:!1===e.support.opacity?K+"IE":"",role:"dialog",tabindex:"-1"}).hide(),g=r(ae,"Overlay").hide(),V=e([r(ae,"LoadingOverlay")[0],r(ae,"LoadingGraphic")[0]]),z=r(ae,"Wrapper"),y=r(ae,"Content").append(k=r(ae,"Title"),A=r(ae,"Current"),D=e('File upload error '+n+"
    ").prependTo("#alerts")}void 0!==$.fn.wysiwyg&&(console.log("init_wysiwyg"),$(".editor-wrapper").each(function(){var t=$(this).attr("id");$(this).wysiwyg({toolbarSelector:'[data-target="#'+t+'"]',fileUploadError:e})}),window.prettyPrint,prettyPrint())}function init_cropper(){if(void 0!==$.fn.cropper){console.log("init_cropper");var e=$("#image"),t=$("#download"),n=$("#dataX"),r=$("#dataY"),o=$("#dataHeight"),i=$("#dataWidth"),c=$("#dataRotate"),a=$("#dataScaleX"),s=$("#dataScaleY"),l={aspectRatio:16/9,preview:".img-preview",crop:function(e){n.val(Math.round(e.x)),r.val(Math.round(e.y)),o.val(Math.round(e.height)),i.val(Math.round(e.width)),c.val(e.rotate),a.val(e.scaleX),s.val(e.scaleY)}};$('[data-toggle="tooltip"]').tooltip(),e.on({"build.cropper":function(e){console.log(e.type)},"built.cropper":function(e){console.log(e.type)},"cropstart.cropper":function(e){console.log(e.type,e.action)},"cropmove.cropper":function(e){console.log(e.type,e.action)},"cropend.cropper":function(e){console.log(e.type,e.action)},"crop.cropper":function(e){console.log(e.type,e.x,e.y,e.width,e.height,e.rotate,e.scaleX,e.scaleY)},"zoom.cropper":function(e){console.log(e.type,e.ratio)}}).cropper(l),$.isFunction(document.createElement("canvas").getContext)||$('button[data-method="getCroppedCanvas"]').prop("disabled",!0),void 0===document.createElement("cropper").style.transition&&($('button[data-method="rotate"]').prop("disabled",!0),$('button[data-method="scale"]').prop("disabled",!0)),void 0===t[0].download&&t.addClass("disabled"),$(".docs-toggles").on("change","input",function(){var t,n,r=$(this),o=r.attr("name"),i=r.prop("type");e.data("cropper")&&("checkbox"===i?(l[o]=r.prop("checked"),t=e.cropper("getCropBoxData"),n=e.cropper("getCanvasData"),l.built=function(){e.cropper("setCropBoxData",t),e.cropper("setCanvasData",n)}):"radio"===i&&(l[o]=r.val()),e.cropper("destroy").cropper(l))}),$(".docs-buttons").on("click","[data-method]",function(){var n,r,o=$(this),i=o.data();if(!o.prop("disabled")&&!o.hasClass("disabled")&&e.data("cropper")&&i.method){if(void 0!==(i=$.extend({},i)).target&&(n=$(i.target),void 0===i.option))try{i.option=JSON.parse(n.val())}catch(e){console.log(e.message)}switch(r=e.cropper(i.method,i.option,i.secondOption),i.method){case"scaleX":case"scaleY":$(this).data("option",-i.option);break;case"getCroppedCanvas":r&&($("#getCroppedCanvasModal").modal().find(".modal-body").html(r),t.hasClass("disabled")||t.attr("href",r.toDataURL()))}if($.isPlainObject(r)&&n)try{n.val(JSON.stringify(r))}catch(e){console.log(e.message)}}}),$(document.body).on("keydown",function(t){if(e.data("cropper")&&!(this.scrollTop>300))switch(t.which){case 37:t.preventDefault(),e.cropper("move",-1,0);break;case 38:t.preventDefault(),e.cropper("move",0,-1);break;case 39:t.preventDefault(),e.cropper("move",1,0);break;case 40:t.preventDefault(),e.cropper("move",0,1)}});var u,h=$("#inputImage"),f=window.URL||window.webkitURL;f?h.change(function(){var t,n=this.files;e.data("cropper")&&n&&n.length&&(t=n[0],/^image\/\w+$/.test(t.type)?(u=f.createObjectURL(t),e.one("built.cropper",function(){f.revokeObjectURL(u)}).cropper("reset").cropper("replace",u),h.val("")):window.alert("Please choose an image file."))}):h.prop("disabled",!0).parent().addClass("disabled")}}function init_knob(){if(void 0!==$.fn.knob){console.log("init_knob"),$(".knob").knob({change:function(e){},release:function(e){console.log("release : "+e)},cancel:function(){console.log("cancel : ",this)},draw:function(){if("tron"==this.$.data("skin")){this.cursorExt=.3;var e,t=this.arc(this.cv);return this.g.lineWidth=this.lineWidth,this.o.displayPrevious&&(e=this.arc(this.v),this.g.beginPath(),this.g.strokeStyle=this.pColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth,e.s,e.e,e.d),this.g.stroke()),this.g.beginPath(),this.g.strokeStyle=this.o.fgColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth,t.s,t.e,t.d),this.g.stroke(),this.g.lineWidth=2,this.g.beginPath(),this.g.strokeStyle=this.o.fgColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth+1+2*this.lineWidth/3,0,2*Math.PI,!1),this.g.stroke(),!1}}});var e,t=0,n=0,r=0,o=$("div.idir"),i=$("div.ival");$("input.infinite").knob({min:0,max:20,stopper:!1,change:function(){e>this.cv?t?(r--,o.show().html("-").fadeOut(),i.html(r),t=0):(t=1,n=0):e
    ";document.getElementById("custom_notifications")?($("#custom_notifications ul.notifications").append("
  • "),$("#custom_notifications #notif-group").append(n),e++,CustomTabs(t)):alert("doesnt exists")},CustomTabs=function(e){$(".tabbed_notifications > div").hide(),$(".tabbed_notifications > div:first-of-type").show(),$("#custom_notifications").removeClass("dsp_none"),$(".notifications a").click(function(e){e.preventDefault();var t=$(this),n="#"+t.parents(".notifications").data("tabbed_notifications"),r=t.closest("li").siblings().children("a"),o=t.attr("href");r.removeClass("active"),t.addClass("active"),$(n).children("div").hide(),$(o).show()})},CustomTabs();var t=idname="";$(document).on("click",".notification_close",function(e){idname=$(this).parent().parent().attr("id"),t=idname.substr(-2),$("#ntf"+t).remove(),$("#ntlink"+t).parent().remove(),$(".notifications a").first().addClass("active"),$("#notif-group div").first().css("display","block")})}}function init_EasyPieChart(){if(void 0!==$.fn.easyPieChart){console.log("init_EasyPieChart"),$(".chart").easyPieChart({easing:"easeOutElastic",delay:3e3,barColor:"#26B99A",trackColor:"#fff",scaleColor:!1,lineWidth:20,trackWidth:16,lineCap:"butt",onStep:function(e,t,n){$(this.el).find(".percent").text(Math.round(n))}});var e=window.chart=$(".chart").data("easyPieChart");$(".js_update").on("click",function(){e.update(200*Math.random()-100)});var t=$.fn.popover.Constructor.prototype.leave;$.fn.popover.Constructor.prototype.leave=function(e){var n,r,o=e instanceof this.constructor?e:$(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);t.call(this,e),e.currentTarget&&(n=$(e.currentTarget).siblings(".popover"),r=o.timeout,n.one("mouseenter",function(){clearTimeout(r),n.one("mouseleave",function(){$.fn.popover.Constructor.prototype.leave.call(o,o)})}))},$("body").popover({selector:"[data-popover]",trigger:"click hover",delay:{show:50,hide:400}})}}function init_charts(){if(console.log("run_charts typeof ["+typeof Chart+"]"),"undefined"!=typeof Chart){if(console.log("init_charts"),Chart.defaults.global.legend={enabled:!1},$("#canvas_line").length&&new Chart(document.getElementById("canvas_line"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#canvas_line1").length&&new Chart(document.getElementById("canvas_line1"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#canvas_line2").length&&new Chart(document.getElementById("canvas_line2"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#canvas_line3").length&&new Chart(document.getElementById("canvas_line3"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#canvas_line4").length&&new Chart(document.getElementById("canvas_line4"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#lineChart").length){var e=document.getElementById("lineChart");new Chart(e,{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}})}if($("#mybarChart").length){e=document.getElementById("mybarChart");new Chart(e,{type:"bar",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"# of Votes",backgroundColor:"#26B99A",data:[51,30,40,28,92,50,45]},{label:"# of Votes",backgroundColor:"#03586A",data:[41,56,25,48,72,34,12]}]},options:{scales:{yAxes:[{ticks:{beginAtZero:!0}}]}}})}if($("#canvasDoughnut").length){e=document.getElementById("canvasDoughnut");var t={labels:["Dark Grey","Purple Color","Gray Color","Green Color","Blue Color"],datasets:[{data:[120,50,140,180,100],backgroundColor:["#455C73","#9B59B6","#BDC3C7","#26B99A","#3498DB"],hoverBackgroundColor:["#34495E","#B370CF","#CFD4D8","#36CAAB","#49A9EA"]}]};new Chart(e,{type:"doughnut",tooltipFillColor:"rgba(51, 51, 51, 0.55)",data:t})}if($("#canvasRadar").length){e=document.getElementById("canvasRadar"),t={labels:["Eating","Drinking","Sleeping","Designing","Coding","Cycling","Running"],datasets:[{label:"My First dataset",backgroundColor:"rgba(3, 88, 106, 0.2)",borderColor:"rgba(3, 88, 106, 0.80)",pointBorderColor:"rgba(3, 88, 106, 0.80)",pointBackgroundColor:"rgba(3, 88, 106, 0.80)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",data:[65,59,90,81,56,55,40]},{label:"My Second dataset",backgroundColor:"rgba(38, 185, 154, 0.2)",borderColor:"rgba(38, 185, 154, 0.85)",pointColor:"rgba(38, 185, 154, 0.85)",pointStrokeColor:"#fff",pointHighlightFill:"#fff",pointHighlightStroke:"rgba(151,187,205,1)",data:[28,48,40,19,96,27,100]}]};new Chart(e,{type:"radar",data:t})}if($("#pieChart").length){e=document.getElementById("pieChart"),t={datasets:[{data:[120,50,140,180,100],backgroundColor:["#455C73","#9B59B6","#BDC3C7","#26B99A","#3498DB"],label:"My dataset"}],labels:["Dark Gray","Purple","Gray","Green","Blue"]};new Chart(e,{data:t,type:"pie",otpions:{legend:!1}})}if($("#polarArea").length){e=document.getElementById("polarArea"),t={datasets:[{data:[120,50,140,180,100],backgroundColor:["#455C73","#9B59B6","#BDC3C7","#26B99A","#3498DB"],label:"My dataset"}],labels:["Dark Gray","Purple","Gray","Green","Blue"]};new Chart(e,{data:t,type:"polarArea",options:{scale:{ticks:{beginAtZero:!0}}}})}}}function init_compose(){void 0!==$.fn.slideToggle&&(console.log("init_compose"),$("#compose, .compose-close").click(function(){$(".compose").slideToggle()}))}function init_calendar(){if(void 0!==$.fn.fullCalendar){console.log("init_calendar");var e,t=new Date,n=t.getDate(),r=t.getMonth(),o=t.getFullYear(),i=$("#calendar").fullCalendar({header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay,listMonth"},selectable:!0,selectHelper:!0,select:function(t,n,r){$("#fc_create").click(),e=t,ended=n,$(".antosubmit").on("click",function(){var t=$("#title").val();return n&&(ended=n),$("#event_type").val(),t&&i.fullCalendar("renderEvent",{title:t,start:e,end:n,allDay:r},!0),$("#title").val(""),i.fullCalendar("unselect"),$(".antoclose").click(),!1})},eventClick:function(e,t,n){$("#fc_edit").click(),$("#title2").val(e.title),$("#event_type").val(),$(".antosubmit2").on("click",function(){e.title=$("#title2").val(),i.fullCalendar("updateEvent",e),$(".antoclose2").click()}),i.fullCalendar("unselect")},editable:!0,events:[{title:"All Day Event",start:new Date(o,r,1)},{title:"Long Event",start:new Date(o,r,n-5),end:new Date(o,r,n-2)},{title:"Meeting",start:new Date(o,r,n,10,30),allDay:!1},{title:"Lunch",start:new Date(o,r,n+14,12,0),end:new Date(o,r,n,14,0),allDay:!1},{title:"Birthday Party",start:new Date(o,r,n+1,19,0),end:new Date(o,r,n+1,22,30),allDay:!1},{title:"Click for Google",start:new Date(o,r,28),end:new Date(o,r,29),url:"http://google.com/"}]})}}function init_DataTables(){if(console.log("run_datatables"),void 0!==$.fn.DataTable){console.log("init_DataTables");TableManageButtons=function(){"use strict";return{init:function(){$("#datatable-buttons").length&&$("#datatable-buttons").DataTable({dom:"Bfrtip",buttons:[{extend:"copy",className:"btn-sm"},{extend:"csv",className:"btn-sm"},{extend:"excel",className:"btn-sm"},{extend:"pdfHtml5",className:"btn-sm"},{extend:"print",className:"btn-sm"}],responsive:!0})}}}(),$("#datatable").dataTable(),$("#datatable-keytable").DataTable({keys:!0}),$("#datatable-responsive").DataTable(),$("#datatable-scroller").DataTable({ajax:"js/datatables/json/scroller-demo.json",deferRender:!0,scrollY:380,scrollCollapse:!0,scroller:!0}),$("#datatable-fixed-header").DataTable({fixedHeader:!0});var e=$("#datatable-checkbox");e.dataTable({order:[[1,"asc"]],columnDefs:[{orderable:!1,targets:[0]}]}),e.on("draw.dt",function(){$("checkbox input").iCheck({checkboxClass:"icheckbox_flat-green"})}),TableManageButtons.init()}}function init_morris_charts(){"undefined"!=typeof Morris&&(console.log("init_morris_charts"),$("#graph_bar").length&&Morris.Bar({element:"graph_bar",data:[{device:"iPhone 4",geekbench:380},{device:"iPhone 4S",geekbench:655},{device:"iPhone 3GS",geekbench:275},{device:"iPhone 5",geekbench:1571},{device:"iPhone 5S",geekbench:655},{device:"iPhone 6",geekbench:2154},{device:"iPhone 6 Plus",geekbench:1144},{device:"iPhone 6S",geekbench:2371},{device:"iPhone 6S Plus",geekbench:1471},{device:"Other",geekbench:1371}],xkey:"device",ykeys:["geekbench"],labels:["Geekbench"],barRatio:.4,barColors:["#26B99A","#34495E","#ACADAC","#3498DB"],xLabelAngle:35,hideHover:"auto",resize:!0}),$("#graph_bar_group").length&&Morris.Bar({element:"graph_bar_group",data:[{period:"2016-10-01",licensed:807,sorned:660},{period:"2016-09-30",licensed:1251,sorned:729},{period:"2016-09-29",licensed:1769,sorned:1018},{period:"2016-09-20",licensed:2246,sorned:1461},{period:"2016-09-19",licensed:2657,sorned:1967},{period:"2016-09-18",licensed:3148,sorned:2627},{period:"2016-09-17",licensed:3471,sorned:3740},{period:"2016-09-16",licensed:2871,sorned:2216},{period:"2016-09-15",licensed:2401,sorned:1656},{period:"2016-09-10",licensed:2115,sorned:1022}],xkey:"period",barColors:["#26B99A","#34495E","#ACADAC","#3498DB"],ykeys:["licensed","sorned"],labels:["Licensed","SORN"],hideHover:"auto",xLabelAngle:60,resize:!0}),$("#graphx").length&&Morris.Bar({element:"graphx",data:[{x:"2015 Q1",y:2,z:3,a:4},{x:"2015 Q2",y:3,z:5,a:6},{x:"2015 Q3",y:4,z:3,a:2},{x:"2015 Q4",y:2,z:4,a:5}],xkey:"x",ykeys:["y","z","a"],barColors:["#26B99A","#34495E","#ACADAC","#3498DB"],hideHover:"auto",labels:["Y","Z","A"],resize:!0}).on("click",function(e,t){console.log(e,t)}),$("#graph_area").length&&Morris.Area({element:"graph_area",data:[{period:"2014 Q1",iphone:2666,ipad:null,itouch:2647},{period:"2014 Q2",iphone:2778,ipad:2294,itouch:2441},{period:"2014 Q3",iphone:4912,ipad:1969,itouch:2501},{period:"2014 Q4",iphone:3767,ipad:3597,itouch:5689},{period:"2015 Q1",iphone:6810,ipad:1914,itouch:2293},{period:"2015 Q2",iphone:5670,ipad:4293,itouch:1881},{period:"2015 Q3",iphone:4820,ipad:3795,itouch:1588},{period:"2015 Q4",iphone:15073,ipad:5967,itouch:5175},{period:"2016 Q1",iphone:10687,ipad:4460,itouch:2028},{period:"2016 Q2",iphone:8432,ipad:5713,itouch:1791}],xkey:"period",ykeys:["iphone","ipad","itouch"],lineColors:["#26B99A","#34495E","#ACADAC","#3498DB"],labels:["iPhone","iPad","iPod Touch"],pointSize:2,hideHover:"auto",resize:!0}),$("#graph_donut").length&&Morris.Donut({element:"graph_donut",data:[{label:"Jam",value:25},{label:"Frosted",value:40},{label:"Custard",value:25},{label:"Sugar",value:10}],colors:["#26B99A","#34495E","#ACADAC","#3498DB"],formatter:function(e){return e+"%"},resize:!0}),$("#graph_line").length&&(Morris.Line({element:"graph_line",xkey:"year",ykeys:["value"],labels:["Value"],hideHover:"auto",lineColors:["#26B99A","#34495E","#ACADAC","#3498DB"],data:[{year:"2012",value:20},{year:"2013",value:10},{year:"2014",value:5},{year:"2015",value:5},{year:"2016",value:20}],resize:!0}),$MENU_TOGGLE.on("click",function(){$(window).resize()})))}function init_echarts(){if("undefined"!=typeof echarts){console.log("init_echarts");var e={color:["#26B99A","#34495E","#BDC3C7","#3498DB","#9B59B6","#8abb6f","#759c6a","#bfd3b7"],title:{itemGap:8,textStyle:{fontWeight:"normal",color:"#408829"}},dataRange:{color:["#1f610a","#97b58d"]},toolbox:{color:["#408829","#408829","#408829","#408829"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#408829",type:"dashed"},crossStyle:{color:"#408829"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(64,136,41,0.2)",handleColor:"#408829"},grid:{borderWidth:0},categoryAxis:{axisLine:{lineStyle:{color:"#408829"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#408829"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#408829"},controlStyle:{normal:{color:"#408829"},emphasis:{color:"#408829"}}},k:{itemStyle:{normal:{color:"#68a54a",color0:"#a9cba2",lineStyle:{width:1,color:"#408829",color0:"#86b379"}}}},map:{itemStyle:{normal:{areaStyle:{color:"#ddd"},label:{textStyle:{color:"#c12e34"}}},emphasis:{areaStyle:{color:"#99d2dd"},label:{textStyle:{color:"#c12e34"}}}}},force:{itemStyle:{normal:{linkStyle:{strokeColor:"#408829"}}}},chord:{padding:4,itemStyle:{normal:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"},chordStyle:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"}}},emphasis:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"},chordStyle:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"}}}}},gauge:{startAngle:225,endAngle:-45,axisLine:{show:!0,lineStyle:{color:[[.2,"#86b379"],[.8,"#68a54a"],[1,"#408829"]],width:8}},axisTick:{splitNumber:10,length:12,lineStyle:{color:"auto"}},axisLabel:{textStyle:{color:"auto"}},splitLine:{length:18,lineStyle:{color:"auto"}},pointer:{length:"90%",color:"auto"},title:{textStyle:{color:"#333"}},detail:{textStyle:{color:"auto"}}},textStyle:{fontFamily:"Arial, Verdana, sans-serif"}};if($("#mainb").length)echarts.init(document.getElementById("mainb"),e).setOption({title:{text:"Graph title",subtext:"Graph Sub-text"},tooltip:{trigger:"axis"},legend:{data:["sales","purchases"]},toolbox:{show:!1},calculable:!1,xAxis:[{type:"category",data:["1?","2?","3?","4?","5?","6?","7?","8?","9?","10?","11?","12?"]}],yAxis:[{type:"value"}],series:[{name:"sales",type:"bar",data:[2,4.9,7,23.2,25.6,76.7,135.6,162.2,32.6,20,6.4,3.3],markPoint:{data:[{type:"max",name:"???"},{type:"min",name:"???"}]},markLine:{data:[{type:"average",name:"???"}]}},{name:"purchases",type:"bar",data:[2.6,5.9,9,26.4,28.7,70.7,175.6,182.2,48.7,18.8,6,2.3],markPoint:{data:[{name:"sales",value:182.2,xAxis:7,yAxis:183},{name:"purchases",value:2.3,xAxis:11,yAxis:3}]},markLine:{data:[{type:"average",name:"???"}]}}]});if($("#echart_sonar").length)echarts.init(document.getElementById("echart_sonar"),e).setOption({title:{text:"Budget vs spending",subtext:"Subtitle"},tooltip:{trigger:"item"},legend:{orient:"vertical",x:"right",y:"bottom",data:["Allocated Budget","Actual Spending"]},toolbox:{show:!0,feature:{restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},polar:[{indicator:[{text:"Sales",max:6e3},{text:"Administration",max:16e3},{text:"Information Techology",max:3e4},{text:"Customer Support",max:38e3},{text:"Development",max:52e3},{text:"Marketing",max:25e3}]}],calculable:!0,series:[{name:"Budget vs spending",type:"radar",data:[{value:[4300,1e4,28e3,35e3,5e4,19e3],name:"Allocated Budget"},{value:[5e3,14e3,28e3,31e3,42e3,21e3],name:"Actual Spending"}]}]});if($("#echart_pyramid").length)echarts.init(document.getElementById("echart_pyramid"),e).setOption({title:{text:"Echart Pyramid Graph",subtext:"Subtitle"},tooltip:{trigger:"item",formatter:"{a}
    {b} : {c}%"},toolbox:{show:!0,feature:{restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},legend:{data:["Something #1","Something #2","Something #3","Something #4","Something #5"],orient:"vertical",x:"left",y:"bottom"},calculable:!0,series:[{name:"漏斗图",type:"funnel",width:"40%",data:[{value:60,name:"Something #1"},{value:40,name:"Something #2"},{value:20,name:"Something #3"},{value:80,name:"Something #4"},{value:100,name:"Something #5"}]}]});if($("#echart_gauge").length)echarts.init(document.getElementById("echart_gauge"),e).setOption({tooltip:{formatter:"{a}
    {b} : {c}%"},toolbox:{show:!0,feature:{restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},series:[{name:"Performance",type:"gauge",center:["50%","50%"],startAngle:140,endAngle:-140,min:0,max:100,precision:0,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"lightgreen"],[.4,"orange"],[.8,"skyblue"],[1,"#ff4500"]],width:30}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,formatter:function(e){switch(e+""){case"10":return"a";case"30":return"b";case"60":return"c";case"90":return"d";default:return""}},textStyle:{color:"#333"}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},pointer:{length:"80%",width:8,color:"auto"},title:{show:!0,offsetCenter:["-65%",-10],textStyle:{color:"#333",fontSize:15}},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:40,offsetCenter:["-60%",10],formatter:"{value}%",textStyle:{color:"auto",fontSize:30}},data:[{value:50,name:"Performance"}]}]});if($("#echart_line").length)echarts.init(document.getElementById("echart_line"),e).setOption({title:{text:"Line Graph",subtext:"Subtitle"},tooltip:{trigger:"axis"},legend:{x:220,y:40,data:["Intent","Pre-order","Deal"]},toolbox:{show:!0,feature:{magicType:{show:!0,title:{line:"Line",bar:"Bar",stack:"Stack",tiled:"Tiled"},type:["line","bar","stack","tiled"]},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Deal",type:"line",smooth:!0,itemStyle:{normal:{areaStyle:{type:"default"}}},data:[10,12,21,54,260,830,710]},{name:"Pre-order",type:"line",smooth:!0,itemStyle:{normal:{areaStyle:{type:"default"}}},data:[30,182,434,791,390,30,10]},{name:"Intent",type:"line",smooth:!0,itemStyle:{normal:{areaStyle:{type:"default"}}},data:[1320,1132,601,234,120,90,20]}]});if($("#echart_scatter").length)echarts.init(document.getElementById("echart_scatter"),e).setOption({title:{text:"Scatter Graph",subtext:"Heinz 2003"},tooltip:{trigger:"axis",showDelay:0,axisPointer:{type:"cross",lineStyle:{type:"dashed",width:1}}},legend:{data:["Data2","Data1"]},toolbox:{show:!0,feature:{saveAsImage:{show:!0,title:"Save Image"}}},xAxis:[{type:"value",scale:!0,axisLabel:{formatter:"{value} cm"}}],yAxis:[{type:"value",scale:!0,axisLabel:{formatter:"{value} kg"}}],series:[{name:"Data1",type:"scatter",tooltip:{trigger:"item",formatter:function(e){return e.value.length>1?e.seriesName+" :
    "+e.value[0]+"cm "+e.value[1]+"kg ":e.seriesName+" :
    "+e.name+" : "+e.value+"kg "}},data:[[161.2,51.6],[167.5,59],[159.5,49.2],[157,63],[155.8,53.6],[170,59],[159.1,47.6],[166,69.8],[176.2,66.8],[160.2,75.2],[172.5,55.2],[170.9,54.2],[172.9,62.5],[153.4,42],[160,50],[147.2,49.8],[168.2,49.2],[175,73.2],[157,47.8],[167.6,68.8],[159.5,50.6],[175,82.5],[166.8,57.2],[176.5,87.8],[170.2,72.8],[174,54.5],[173,59.8],[179.9,67.3],[170.5,67.8],[160,47],[154.4,46.2],[162,55],[176.5,83],[160,54.4],[152,45.8],[162.1,53.6],[170,73.2],[160.2,52.1],[161.3,67.9],[166.4,56.6],[168.9,62.3],[163.8,58.5],[167.6,54.5],[160,50.2],[161.3,60.3],[167.6,58.3],[165.1,56.2],[160,50.2],[170,72.9],[157.5,59.8],[167.6,61],[160.7,69.1],[163.2,55.9],[152.4,46.5],[157.5,54.3],[168.3,54.8],[180.3,60.7],[165.5,60],[165,62],[164.5,60.3],[156,52.7],[160,74.3],[163,62],[165.7,73.1],[161,80],[162,54.7],[166,53.2],[174,75.7],[172.7,61.1],[167.6,55.7],[151.1,48.7],[164.5,52.3],[163.5,50],[152,59.3],[169,62.5],[164,55.7],[161.2,54.8],[155,45.9],[170,70.6],[176.2,67.2],[170,69.4],[162.5,58.2],[170.3,64.8],[164.1,71.6],[169.5,52.8],[163.2,59.8],[154.5,49],[159.8,50],[173.2,69.2],[170,55.9],[161.4,63.4],[169,58.2],[166.2,58.6],[159.4,45.7],[162.5,52.2],[159,48.6],[162.8,57.8],[159,55.6],[179.8,66.8],[162.9,59.4],[161,53.6],[151.1,73.2],[168.2,53.4],[168.9,69],[173.2,58.4],[171.8,56.2],[178,70.6],[164.3,59.8],[163,72],[168.5,65.2],[166.8,56.6],[172.7,105.2],[163.5,51.8],[169.4,63.4],[167.8,59],[159.5,47.6],[167.6,63],[161.2,55.2],[160,45],[163.2,54],[162.2,50.2],[161.3,60.2],[149.5,44.8],[157.5,58.8],[163.2,56.4],[172.7,62],[155,49.2],[156.5,67.2],[164,53.8],[160.9,54.4],[162.8,58],[167,59.8],[160,54.8],[160,43.2],[168.9,60.5],[158.2,46.4],[156,64.4],[160,48.8],[167.1,62.2],[158,55.5],[167.6,57.8],[156,54.6],[162.1,59.2],[173.4,52.7],[159.8,53.2],[170.5,64.5],[159.2,51.8],[157.5,56],[161.3,63.6],[162.6,63.2],[160,59.5],[168.9,56.8],[165.1,64.1],[162.6,50],[165.1,72.3],[166.4,55],[160,55.9],[152.4,60.4],[170.2,69.1],[162.6,84.5],[170.2,55.9],[158.8,55.5],[172.7,69.5],[167.6,76.4],[162.6,61.4],[167.6,65.9],[156.2,58.6],[175.2,66.8],[172.1,56.6],[162.6,58.6],[160,55.9],[165.1,59.1],[182.9,81.8],[166.4,70.7],[165.1,56.8],[177.8,60],[165.1,58.2],[175.3,72.7],[154.9,54.1],[158.8,49.1],[172.7,75.9],[168.9,55],[161.3,57.3],[167.6,55],[165.1,65.5],[175.3,65.5],[157.5,48.6],[163.8,58.6],[167.6,63.6],[165.1,55.2],[165.1,62.7],[168.9,56.6],[162.6,53.9],[164.5,63.2],[176.5,73.6],[168.9,62],[175.3,63.6],[159.4,53.2],[160,53.4],[170.2,55],[162.6,70.5],[167.6,54.5],[162.6,54.5],[160.7,55.9],[160,59],[157.5,63.6],[162.6,54.5],[152.4,47.3],[170.2,67.7],[165.1,80.9],[172.7,70.5],[165.1,60.9],[170.2,63.6],[170.2,54.5],[170.2,59.1],[161.3,70.5],[167.6,52.7],[167.6,62.7],[165.1,86.3],[162.6,66.4],[152.4,67.3],[168.9,63],[170.2,73.6],[175.2,62.3],[175.2,57.7],[160,55.4],[165.1,104.1],[174,55.5],[170.2,77.3],[160,80.5],[167.6,64.5],[167.6,72.3],[167.6,61.4],[154.9,58.2],[162.6,81.8],[175.3,63.6],[171.4,53.4],[157.5,54.5],[165.1,53.6],[160,60],[174,73.6],[162.6,61.4],[174,55.5],[162.6,63.6],[161.3,60.9],[156.2,60],[149.9,46.8],[169.5,57.3],[160,64.1],[175.3,63.6],[169.5,67.3],[160,75.5],[172.7,68.2],[162.6,61.4],[157.5,76.8],[176.5,71.8],[164.4,55.5],[160.7,48.6],[174,66.4],[163.8,67.3]],markPoint:{data:[{type:"max",name:"Max"},{type:"min",name:"Min"}]},markLine:{data:[{type:"average",name:"Mean"}]}},{name:"Data2",type:"scatter",tooltip:{trigger:"item",formatter:function(e){return e.value.length>1?e.seriesName+" :
    "+e.value[0]+"cm "+e.value[1]+"kg ":e.seriesName+" :
    "+e.name+" : "+e.value+"kg "}},data:[[174,65.6],[175.3,71.8],[193.5,80.7],[186.5,72.6],[187.2,78.8],[181.5,74.8],[184,86.4],[184.5,78.4],[175,62],[184,81.6],[180,76.6],[177.8,83.6],[192,90],[176,74.6],[174,71],[184,79.6],[192.7,93.8],[171.5,70],[173,72.4],[176,85.9],[176,78.8],[180.5,77.8],[172.7,66.2],[176,86.4],[173.5,81.8],[178,89.6],[180.3,82.8],[180.3,76.4],[164.5,63.2],[173,60.9],[183.5,74.8],[175.5,70],[188,72.4],[189.2,84.1],[172.8,69.1],[170,59.5],[182,67.2],[170,61.3],[177.8,68.6],[184.2,80.1],[186.7,87.8],[171.4,84.7],[172.7,73.4],[175.3,72.1],[180.3,82.6],[182.9,88.7],[188,84.1],[177.2,94.1],[172.1,74.9],[167,59.1],[169.5,75.6],[174,86.2],[172.7,75.3],[182.2,87.1],[164.1,55.2],[163,57],[171.5,61.4],[184.2,76.8],[174,86.8],[174,72.2],[177,71.6],[186,84.8],[167,68.2],[171.8,66.1],[182,72],[167,64.6],[177.8,74.8],[164.5,70],[192,101.6],[175.5,63.2],[171.2,79.1],[181.6,78.9],[167.4,67.7],[181.1,66],[177,68.2],[174.5,63.9],[177.5,72],[170.5,56.8],[182.4,74.5],[197.1,90.9],[180.1,93],[175.5,80.9],[180.6,72.7],[184.4,68],[175.5,70.9],[180.6,72.5],[177,72.5],[177.1,83.4],[181.6,75.5],[176.5,73],[175,70.2],[174,73.4],[165.1,70.5],[177,68.9],[192,102.3],[176.5,68.4],[169.4,65.9],[182.1,75.7],[179.8,84.5],[175.3,87.7],[184.9,86.4],[177.3,73.2],[167.4,53.9],[178.1,72],[168.9,55.5],[157.2,58.4],[180.3,83.2],[170.2,72.7],[177.8,64.1],[172.7,72.3],[165.1,65],[186.7,86.4],[165.1,65],[174,88.6],[175.3,84.1],[185.4,66.8],[177.8,75.5],[180.3,93.2],[180.3,82.7],[177.8,58],[177.8,79.5],[177.8,78.6],[177.8,71.8],[177.8,116.4],[163.8,72.2],[188,83.6],[198.1,85.5],[175.3,90.9],[166.4,85.9],[190.5,89.1],[166.4,75],[177.8,77.7],[179.7,86.4],[172.7,90.9],[190.5,73.6],[185.4,76.4],[168.9,69.1],[167.6,84.5],[175.3,64.5],[170.2,69.1],[190.5,108.6],[177.8,86.4],[190.5,80.9],[177.8,87.7],[184.2,94.5],[176.5,80.2],[177.8,72],[180.3,71.4],[171.4,72.7],[172.7,84.1],[172.7,76.8],[177.8,63.6],[177.8,80.9],[182.9,80.9],[170.2,85.5],[167.6,68.6],[175.3,67.7],[165.1,66.4],[185.4,102.3],[181.6,70.5],[172.7,95.9],[190.5,84.1],[179.1,87.3],[175.3,71.8],[170.2,65.9],[193,95.9],[171.4,91.4],[177.8,81.8],[177.8,96.8],[167.6,69.1],[167.6,82.7],[180.3,75.5],[182.9,79.5],[176.5,73.6],[186.7,91.8],[188,84.1],[188,85.9],[177.8,81.8],[174,82.5],[177.8,80.5],[171.4,70],[185.4,81.8],[185.4,84.1],[188,90.5],[188,91.4],[182.9,89.1],[176.5,85],[175.3,69.1],[175.3,73.6],[188,80.5],[188,82.7],[175.3,86.4],[170.5,67.7],[179.1,92.7],[177.8,93.6],[175.3,70.9],[182.9,75],[170.8,93.2],[188,93.2],[180.3,77.7],[177.8,61.4],[185.4,94.1],[168.9,75],[185.4,83.6],[180.3,85.5],[174,73.9],[167.6,66.8],[182.9,87.3],[160,72.3],[180.3,88.6],[167.6,75.5],[186.7,101.4],[175.3,91.1],[175.3,67.3],[175.9,77.7],[175.3,81.8],[179.1,75.5],[181.6,84.5],[177.8,76.6],[182.9,85],[177.8,102.5],[184.2,77.3],[179.1,71.8],[176.5,87.9],[188,94.3],[174,70.9],[167.6,64.5],[170.2,77.3],[167.6,72.3],[188,87.3],[174,80],[176.5,82.3],[180.3,73.6],[167.6,74.1],[188,85.9],[180.3,73.2],[167.6,76.3],[183,65.9],[183,90.9],[179.1,89.1],[170.2,62.3],[177.8,82.7],[179.1,79.1],[190.5,98.2],[177.8,84.1],[180.3,83.2],[180.3,83.2]],markPoint:{data:[{type:"max",name:"Max"},{type:"min",name:"Min"}]},markLine:{data:[{type:"average",name:"Mean"}]}}]});if($("#echart_bar_horizontal").length)echarts.init(document.getElementById("echart_bar_horizontal"),e).setOption({title:{text:"Bar Graph",subtext:"Graph subtitle"},tooltip:{trigger:"axis"},legend:{x:100,data:["2015","2016"]},toolbox:{show:!0,feature:{saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,xAxis:[{type:"value",boundaryGap:[0,.01]}],yAxis:[{type:"category",data:["Jan","Feb","Mar","Apr","May","Jun"]}],series:[{name:"2015",type:"bar",data:[18203,23489,29034,104970,131744,630230]},{name:"2016",type:"bar",data:[19325,23438,31e3,121594,134141,681807]}]});if($("#echart_pie2").length)echarts.init(document.getElementById("echart_pie2"),e).setOption({tooltip:{trigger:"item",formatter:"{a}
    {b} : {c} ({d}%)"},legend:{x:"center",y:"bottom",data:["rose1","rose2","rose3","rose4","rose5","rose6"]},toolbox:{show:!0,feature:{magicType:{show:!0,type:["pie","funnel"]},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,series:[{name:"Area Mode",type:"pie",radius:[25,90],center:["50%",170],roseType:"area",x:"50%",max:40,sort:"ascending",data:[{value:10,name:"rose1"},{value:5,name:"rose2"},{value:15,name:"rose3"},{value:25,name:"rose4"},{value:20,name:"rose5"},{value:35,name:"rose6"}]}]});if($("#echart_donut").length)echarts.init(document.getElementById("echart_donut"),e).setOption({tooltip:{trigger:"item",formatter:"{a}
    {b} : {c} ({d}%)"},calculable:!0,legend:{x:"center",y:"bottom",data:["Direct Access","E-mail Marketing","Union Ad","Video Ads","Search Engine"]},toolbox:{show:!0,feature:{magicType:{show:!0,type:["pie","funnel"],option:{funnel:{x:"25%",width:"50%",funnelAlign:"center",max:1548}}},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},series:[{name:"Access to the resource",type:"pie",radius:["35%","55%"],itemStyle:{normal:{label:{show:!0},labelLine:{show:!0}},emphasis:{label:{show:!0,position:"center",textStyle:{fontSize:"14",fontWeight:"normal"}}}},data:[{value:335,name:"Direct Access"},{value:310,name:"E-mail Marketing"},{value:234,name:"Union Ad"},{value:135,name:"Video Ads"},{value:1548,name:"Search Engine"}]}]});if($("#echart_pie").length){echarts.init(document.getElementById("echart_pie"),e).setOption({tooltip:{trigger:"item",formatter:"{a}
    {b} : {c} ({d}%)"},legend:{x:"center",y:"bottom",data:["Direct Access","E-mail Marketing","Union Ad","Video Ads","Search Engine"]},toolbox:{show:!0,feature:{magicType:{show:!0,type:["pie","funnel"],option:{funnel:{x:"25%",width:"50%",funnelAlign:"left",max:1548}}},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,series:[{name:"访问来源",type:"pie",radius:"55%",center:["50%","48%"],data:[{value:335,name:"Direct Access"},{value:310,name:"E-mail Marketing"},{value:234,name:"Union Ad"},{value:135,name:"Video Ads"},{value:1548,name:"Search Engine"}]}]});var t={normal:{label:{show:!1},labelLine:{show:!1}}},n={normal:{color:"rgba(0,0,0,0)",label:{show:!1},labelLine:{show:!1}},emphasis:{color:"rgba(0,0,0,0)"}}}if($("#echart_mini_pie").length)echarts.init(document.getElementById("echart_mini_pie"),e).setOption({title:{text:"Chart #2",subtext:"From ExcelHome",sublink:"http://e.weibo.com/1341556070/AhQXtjbqh",x:"center",y:"center",itemGap:20,textStyle:{color:"rgba(30,144,255,0.8)",fontFamily:"微软雅黑",fontSize:35,fontWeight:"bolder"}},tooltip:{show:!0,formatter:"{a}
    {b} : {c} ({d}%)"},legend:{orient:"vertical",x:170,y:45,itemGap:12,data:["68%Something #1","29%Something #2","3%Something #3"]},toolbox:{show:!0,feature:{mark:{show:!0},dataView:{show:!0,title:"Text View",lang:["Text View","Close","Refresh"],readOnly:!1},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},series:[{name:"1",type:"pie",clockWise:!1,radius:[105,130],itemStyle:t,data:[{value:68,name:"68%Something #1"},{value:32,name:"invisible",itemStyle:n}]},{name:"2",type:"pie",clockWise:!1,radius:[80,105],itemStyle:t,data:[{value:29,name:"29%Something #2"},{value:71,name:"invisible",itemStyle:n}]},{name:"3",type:"pie",clockWise:!1,radius:[25,80],itemStyle:t,data:[{value:3,name:"3%Something #3"},{value:97,name:"invisible",itemStyle:n}]}]});if($("#echart_world_map").length)echarts.init(document.getElementById("echart_world_map"),e).setOption({title:{text:"World Population (2010)",subtext:"from United Nations, Total population, both sexes combined, as of 1 July (thousands)",x:"center",y:"top"},tooltip:{trigger:"item",formatter:function(e){var t=(e.value+"").split(".");return t=t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+"."+t[1],e.seriesName+"
    "+e.name+" : "+t}},toolbox:{show:!0,orient:"vertical",x:"right",y:"center",feature:{mark:{show:!0},dataView:{show:!0,title:"Text View",lang:["Text View","Close","Refresh"],readOnly:!1},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},dataRange:{min:0,max:1e6,text:["High","Low"],realtime:!1,calculable:!0,color:["#087E65","#26B99A","#CBEAE3"]},series:[{name:"World Population (2010)",type:"map",mapType:"world",roam:!1,mapLocation:{y:60},itemStyle:{emphasis:{label:{show:!0}}},data:[{name:"Afghanistan",value:28397.812},{name:"Angola",value:19549.124},{name:"Albania",value:3150.143},{name:"United Arab Emirates",value:8441.537},{name:"Argentina",value:40374.224},{name:"Armenia",value:2963.496},{name:"French Southern and Antarctic Lands",value:268.065},{name:"Australia",value:22404.488},{name:"Austria",value:8401.924},{name:"Azerbaijan",value:9094.718},{name:"Burundi",value:9232.753},{name:"Belgium",value:10941.288},{name:"Benin",value:9509.798},{name:"Burkina Faso",value:15540.284},{name:"Bangladesh",value:151125.475},{name:"Bulgaria",value:7389.175},{name:"The Bahamas",value:66402.316},{name:"Bosnia and Herzegovina",value:3845.929},{name:"Belarus",value:9491.07},{name:"Belize",value:308.595},{name:"Bermuda",value:64.951},{name:"Bolivia",value:716.939},{name:"Brazil",value:195210.154},{name:"Brunei",value:27.223},{name:"Bhutan",value:716.939},{name:"Botswana",value:1969.341},{name:"Central African Republic",value:4349.921},{name:"Canada",value:34126.24},{name:"Switzerland",value:7830.534},{name:"Chile",value:17150.76},{name:"China",value:1359821.465},{name:"Ivory Coast",value:60508.978},{name:"Cameroon",value:20624.343},{name:"Democratic Republic of the Congo",value:62191.161},{name:"Republic of the Congo",value:3573.024},{name:"Colombia",value:46444.798},{name:"Costa Rica",value:4669.685},{name:"Cuba",value:11281.768},{name:"Northern Cyprus",value:1.468},{name:"Cyprus",value:1103.685},{name:"Czech Republic",value:10553.701},{name:"Germany",value:83017.404},{name:"Djibouti",value:834.036},{name:"Denmark",value:5550.959},{name:"Dominican Republic",value:10016.797},{name:"Algeria",value:37062.82},{name:"Ecuador",value:15001.072},{name:"Egypt",value:78075.705},{name:"Eritrea",value:5741.159},{name:"Spain",value:46182.038},{name:"Estonia",value:1298.533},{name:"Ethiopia",value:87095.281},{name:"Finland",value:5367.693},{name:"Fiji",value:860.559},{name:"Falkland Islands",value:49.581},{name:"France",value:63230.866},{name:"Gabon",value:1556.222},{name:"United Kingdom",value:62066.35},{name:"Georgia",value:4388.674},{name:"Ghana",value:24262.901},{name:"Guinea",value:10876.033},{name:"Gambia",value:1680.64},{name:"Guinea Bissau",value:10876.033},{name:"Equatorial Guinea",value:696.167},{name:"Greece",value:11109.999},{name:"Greenland",value:56.546},{name:"Guatemala",value:14341.576},{name:"French Guiana",value:231.169},{name:"Guyana",value:786.126},{name:"Honduras",value:7621.204},{name:"Croatia",value:4338.027},{name:"Haiti",value:9896.4},{name:"Hungary",value:10014.633},{name:"Indonesia",value:240676.485},{name:"India",value:1205624.648},{name:"Ireland",value:4467.561},{name:"Iran",value:240676.485},{name:"Iraq",value:30962.38},{name:"Iceland",value:318.042},{name:"Israel",value:7420.368},{name:"Italy",value:60508.978},{name:"Jamaica",value:2741.485},{name:"Jordan",value:6454.554},{name:"Japan",value:127352.833},{name:"Kazakhstan",value:15921.127},{name:"Kenya",value:40909.194},{name:"Kyrgyzstan",value:5334.223},{name:"Cambodia",value:14364.931},{name:"South Korea",value:51452.352},{name:"Kosovo",value:97.743},{name:"Kuwait",value:2991.58},{name:"Laos",value:6395.713},{name:"Lebanon",value:4341.092},{name:"Liberia",value:3957.99},{name:"Libya",value:6040.612},{name:"Sri Lanka",value:20758.779},{name:"Lesotho",value:2008.921},{name:"Lithuania",value:3068.457},{name:"Luxembourg",value:507.885},{name:"Latvia",value:2090.519},{name:"Morocco",value:31642.36},{name:"Moldova",value:103.619},{name:"Madagascar",value:21079.532},{name:"Mexico",value:117886.404},{name:"Macedonia",value:507.885},{name:"Mali",value:13985.961},{name:"Myanmar",value:51931.231},{name:"Montenegro",value:620.078},{name:"Mongolia",value:2712.738},{name:"Mozambique",value:23967.265},{name:"Mauritania",value:3609.42},{name:"Malawi",value:15013.694},{name:"Malaysia",value:28275.835},{name:"Namibia",value:2178.967},{name:"New Caledonia",value:246.379},{name:"Niger",value:15893.746},{name:"Nigeria",value:159707.78},{name:"Nicaragua",value:5822.209},{name:"Netherlands",value:16615.243},{name:"Norway",value:4891.251},{name:"Nepal",value:26846.016},{name:"New Zealand",value:4368.136},{name:"Oman",value:2802.768},{name:"Pakistan",value:173149.306},{name:"Panama",value:3678.128},{name:"Peru",value:29262.83},{name:"Philippines",value:93444.322},{name:"Papua New Guinea",value:6858.945},{name:"Poland",value:38198.754},{name:"Puerto Rico",value:3709.671},{name:"North Korea",value:1.468},{name:"Portugal",value:10589.792},{name:"Paraguay",value:6459.721},{name:"Qatar",value:1749.713},{name:"Romania",value:21861.476},{name:"Russia",value:21861.476},{name:"Rwanda",value:10836.732},{name:"Western Sahara",value:514.648},{name:"Saudi Arabia",value:27258.387},{name:"Sudan",value:35652.002},{name:"South Sudan",value:9940.929},{name:"Senegal",value:12950.564},{name:"Solomon Islands",value:526.447},{name:"Sierra Leone",value:5751.976},{name:"El Salvador",value:6218.195},{name:"Somaliland",value:9636.173},{name:"Somalia",value:9636.173},{name:"Republic of Serbia",value:3573.024},{name:"Suriname",value:524.96},{name:"Slovakia",value:5433.437},{name:"Slovenia",value:2054.232},{name:"Sweden",value:9382.297},{name:"Swaziland",value:1193.148},{name:"Syria",value:7830.534},{name:"Chad",value:11720.781},{name:"Togo",value:6306.014},{name:"Thailand",value:66402.316},{name:"Tajikistan",value:7627.326},{name:"Turkmenistan",value:5041.995},{name:"East Timor",value:10016.797},{name:"Trinidad and Tobago",value:1328.095},{name:"Tunisia",value:10631.83},{name:"Turkey",value:72137.546},{name:"United Republic of Tanzania",value:44973.33},{name:"Uganda",value:33987.213},{name:"Ukraine",value:46050.22},{name:"Uruguay",value:3371.982},{name:"United States of America",value:312247.116},{name:"Uzbekistan",value:27769.27},{name:"Venezuela",value:236.299},{name:"Vietnam",value:89047.397},{name:"Vanuatu",value:236.299},{name:"West Bank",value:13.565},{name:"Yemen",value:22763.008},{name:"South Africa",value:51452.352},{name:"Zambia",value:13216.985},{name:"Zimbabwe",value:13076.978}]}]})}}jQuery(function(e){e("#regexGroupSelect").change(function(){document.location="?group="+e("#regexGroupSelect option:selected").attr("value")}),e(".confirm_action").click(function(){return confirm("Are you sure?")})}),tinyMCE.init({selector:"textarea#body",theme:"silver",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table contextmenu directionality emoticons template paste textcolor code"],theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",toolbar:"insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code",fontsize_formats:"8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",mode:"exact",relative_urls:!1,remove_script_host:!1,convert_urls:!0}),tinyMCE.init({selector:"textarea#metadescription",theme:"silver",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table contextmenu directionality emoticons template paste textcolor code"],theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",toolbar:"insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code",fontsize_formats:"8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",mode:"exact",relative_urls:!1,remove_script_host:!1,convert_urls:!0}),tinyMCE.init({selector:"textarea#metakeywords",theme:"silver",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table contextmenu directionality emoticons template paste textcolor code"],theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",toolbar:"insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code",fontsize_formats:"8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",mode:"exact",relative_urls:!1,remove_script_host:!1,convert_urls:!0}),function(e,t){jQuery.fn[t]=function(e){return e?this.bind("resize",(n=e,function(){var e=this,t=arguments;i?clearTimeout(i):o&&n.apply(e,t),i=setTimeout(function(){o||n.apply(e,t),i=null},r||100)})):this.trigger(t);var n,r,o,i}}(jQuery,"smartresize"),$(document).ready(function(){var e,t=function(){$RIGHT_COL.css("min-height",$(window).height());var e=$BODY.outerHeight(),t=$BODY.hasClass("footer_fixed")?-10:$FOOTER.height(),n=$LEFT_COL.eq(1).height()+$SIDEBAR_FOOTER.height(),r=e1){for(var n=0,r=0;r:first-child"),"+"==$expand.text()?$expand.text("-"):$expand.text("+")})}),"undefined"!=typeof NProgress&&($(document).ready(function(){NProgress.start()}),$(window).load(function(){NProgress.done()}));var originalLeave=$.fn.popover.Constructor.prototype.leave;function isValidEmailAddress(e){return new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i).test(e)}function mymovie_del(e,t){return $.ajax({url:base_url+"/ajax_mymovies?rand="+$.now(),data:{del:e},dataType:"html",success:function(e){$(t).hide(),$(t).prev("a").show()},error:function(e,t,n){}}),!1}function mymovie_add(e,t){return $(t).hide(),$(t).next("a").show(),$.ajax({url:base_url+"/ajax_mymovies?rand="+$.now(),data:{add:e},dataType:"html",success:function(e){},error:function(e,t,n){}}),!1}function getNzbGetQueue(){$.ajax({url:"queuedata?type=nzbget&id="+$.now(),cache:!1,success:function(e){$(".nzbget_queue").html(e),setTimeout("getNzbGetQueue()",2500)},error:function(){$(".nzbget_queue").html('Could not contact your queue. Refresh')},timeout:5e3})}function getHistory(){$.ajax({url:"queuedata?type=history&id="+$.now(),cache:!1,success:function(e){$(".sab_history").html(e),setTimeout("getHistory()",1e4)},error:function(){},timeout:5e3})}$.fn.popover.Constructor.prototype.leave=function(e){var t,n,r=e instanceof this.constructor?e:$(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);originalLeave.call(this,e),e.currentTarget&&(t=$(e.currentTarget).siblings(".popover"),n=r.timeout,t.one("mouseenter",function(){clearTimeout(n),t.one("mouseleave",function(){$.fn.popover.Constructor.prototype.leave.call(r,r)})}))},$("body").popover({selector:"[data-popover]",trigger:"click hover",delay:{show:50,hide:400}}),$(document).ready(function(){init_sparklines(),init_flot_chart(),init_wysiwyg(),init_InputMask(),init_JQVmap(),init_cropper(),init_knob(),init_IonRangeSlider(),init_ColorPicker(),init_TagsInput(),init_parsley(),init_daterangepicker(),init_daterangepicker_right(),init_daterangepicker_single_call(),init_daterangepicker_reservation(),init_SmartWizard(),init_EasyPieChart(),init_charts(),init_echarts(),init_morris_charts(),init_skycons(),init_select2(),init_validator(),init_DataTables(),init_chart_doughnut(),init_gauge(),init_PNotify(),init_starrr(),init_calendar(),init_compose(),init_CustomNotification(),init_autosize(),init_autocomplete()}),jQuery(function(e){const t=window.location.origin;e(".cartadd").click(function(n){if(e(this).hasClass("icon_cart_clicked"))return!1;let r=e(".guid").attr("id").substring(4);return e.ajaxSetup({headers:{"X-CSRF-TOKEN":e('meta[name="csrf-token"]').attr("content")}}),e.post(t+"/cart/add?id="+r,function(t){e(n.target).addClass("icon_cart_clicked").attr("title","Added to Cart"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your Download Basket!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".sabsend").click(function(n){if(e(this).hasClass("icon_sab_clicked"))return!1;let r=e(".guid").attr("id").substring(4),o=t+"/sendtoqueue/"+r;return e.post(o,function(t){e(n.target).addClass("icon_sab_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".getsend").click(function(n){if(e(this).hasClass("icon_nzbget_clicked"))return!1;let r=e(".guid").attr("id").substring(4),o=t+"/sendtoqueue/"+r;return e.post(o,function(t){e(n.target).addClass("icon_nzbget_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".sendtocouch").click(function(n){if(e(this).hasClass("icon_cp_clicked"))return!1;let r=e(this).attr("id").substring(4),o=t+"sendtocouch/"+r;return e.post(o,function(t){e(n.target).addClass("icon_cp_clicked").attr("title","Added to CouchPotato"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Movie added to CoucPotato wanted list!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".vortexsend").click(function(n){if(e(this).hasClass("icon_nzbvortex_clicked"))return!1;let r=e(".guid").attr("id").substring(4);return r&&r.length>0&&e.ajax({url:t+"nzbvortex?addQueue="+r+"&isAjax",cache:!1}).done(function(t){let o="Added "+r+" to queue.";e(n.target).addClass("icon_nzbvortex_clicked").attr("title",o),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}).fail(function(e){alert(e.responseText)}),!1});let n=new Array;n[0]="Waiting",n[1]="Downloading",n[2]="Downloaded",n[3]="Saving",n[4]="Saved",n[5]="Skipped";let r,o,i=e("table.data tr").children("td.icons").children("div.icon").css("opacity");e("table.data tr").hover(function(){e(this).children("td.icons").children("div.icon").css("opacity",1)},function(){e(this).children("td.icons").children("div.icon").css("opacity",i)}),e(".forumpostsubmit").click(function(t){if(""==e.trim(e("#addMessage").val())||""==e.trim(e("#addSubject").val()))return alert("Please enter a subject and message."),!1}),e(".forumreplysubmit").click(function(t){if(""==e.trim(e("#addMessage").val()))return alert("Please enter a message."),!1}),e(".check").click(function(t){e(t.target).is("input")||e(this).children(".nzb_check").attr("checked",!e(this).children(".nzb_check").attr("checked"))}),e(".descmore").click(function(t){return e(this).prev(".descinitial").hide(),e(this).next(".descfull").show(),e(this).hide(),!1}),e(".nzb_check_all").change(function(){e(this).attr("checked")?e("table.data tr td input:checkbox").attr("checked",e(this).attr("checked")):e("table.data tr td input:checkbox").removeAttr("checked")}),e(".nzb_check_all_season").change(function(){let t=e(this).attr("name");e("table.data tr td input:checkbox").each(function(n,r){e(r).attr("name")==t&&e(r).attr("checked",!e(r).attr("checked"))})}),e(".icon_cart").click(function(n){if(e(this).hasClass("icon_cart_clicked"))return!1;let r=e(this).attr("id").substring(4);return e.ajaxSetup({headers:{"X-CSRF-TOKEN":e('meta[name="csrf-token"]').attr("content")}}),e.post(t+"/cart/add?id="+r,function(t){e(n.target).addClass("icon_cart_clicked").attr("title"," Release added to Cart"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download basket!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".icon_nzbvortex").click(function(n){if(e(this).hasClass("icon_nzbvortex_clicked"))return!1;let r=e(this).parent().parent().attr("id").substring(4);return r&&r.length>0&&e.ajax({url:t+"/nzbvortex?addQueue="+r+"&isAjax",cache:!1}).done(function(t){let o="Added "+r+" to queue.";e(n.target).addClass("icon_nzbvortex_clicked").attr("title",o),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"ADDED TO NZBVORTEX!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}).fail(function(e){alert(e.responseText)}),!1}),e(document).on("click","a.vortex-resume",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?resume="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-pause",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?pause="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-moveup",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?moveup="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-movedown",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?movedown="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-movetop",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?movetop="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-movebottom",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?movebottom="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-trash",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?delete="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-filelist",function(r){r.preventDefault();let o=e(this).attr("href");return e("#vortex-overlay-"+o).show(),e.colorbox({}),e.ajax({url:t+"/nzbvortex?filelist="+o+"&isAjax",cache:!1}).done(function(t){e("#cboxLoadingGraphic").hide();let r=e.parseJSON(t);console.log(r),e.each(r.files,function(t,r){e("#cboxContent").append(""+r.fileName+" ("+n[r.state]+")
    ")})}).fail(function(e){alert("Unable to retrieve filelist: "+e.responseText)}),e(this).removeAttr("href"),!1}),e(".icon_sab").click(function(n){if(e(this).hasClass("icon_sab_clicked"))return!1;let r=e(this).attr("id").substring(4),o=t+"/sendtoqueue/"+r;return e.post(o,function(t){e(n.target).addClass("icon_sab_clicked").attr("title","Release added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".icon_nzbget").click(function(n){if(e(this).hasClass("icon_nzbget_clicked"))return!1;let r=e(this).attr("id").substring(4),o=t+"/sendtoqueue/"+r;return e.post(o,function(t){e(n.target).addClass("icon_nzbget_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e("table.data a.modal_nfo").colorbox({href:function(){return e(this).attr("href")+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"90%",initialWidth:"800px",initialHeight:"90%",speed:0,opacity:.7}),e("table.data a.modal_prev").colorbox({scrolling:!1,maxWidth:"800px",maxHeight:"450px"}),e("table.data a.modal_imdb").colorbox({href:function(){return t+"movie/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxMovie")}),e("a.modal_imdbtrailer").colorbox({href:function(){return t+"movietrailer/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxMovie")}),e("table.data a.modal_music").colorbox({href:function(){return t+"musicmodal/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxMusic")}),e("table.data a.modal_console").colorbox({href:function(){return t+"consolemodal/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxConsole")}),e("table.data a.modal_book").colorbox({href:function(){return t+"bookmodal/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxBook")}),e("#nzb_multi_operations_form").submit(function(){return!1}),e("button.nzb_multi_operations_download").on("click",function(){let n="";e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+=e(r).val()+",")}),(n=n.substring(0,n.length-1))&&(window.location=t+"/getnzb?zip=1&id="+n)}),e("input.nzb_multi_operations_download_cart").on("click",function(){let n="";e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+=e(r).val()+",")}),(n=n.substring(0,n.length-1))&&(window.location=t+"/getnzb?zip=1&id="+n)}),e("button.nzb_multi_operations_cart").on("click",function(){let n=new Array;e.ajaxSetup({headers:{"X-CSRF-TOKEN":e('meta[name="csrf-token"]').attr("content")}}),e("table.data INPUT[type='checkbox']:checked").each(function(t,r){let o=e(r).val(),i=e(r).parent().children("div.icons").children(".icon_cart");o&&!i.hasClass("icon_cart_clicked")&&(i.addClass("icon_cart_clicked").attr("title","Added to Cart"),n.push(o),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your Download Basket!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})),e(this).attr("checked",!1)});let r=n.toString();e.post(t+"/cart/add?id="+r)}),e("button.nzb_multi_operations_sab").on("click",function(){e("table.data INPUT[type='checkbox']:checked").each(function(n,r){let o=e(r).parent().parent().children("td.icons").children(".icon_sab"),i=e(r).val();if(i&&!o.hasClass("icon_sab_clicked")){let n=t+"/sendtoqueue/"+i;e.post(n,function(e){o.addClass("icon_sab_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})})}e(this).attr("checked",!1)})}),e("input.nzb_multi_operations_nzbget").on("click",function(){e("table.data INPUT[type='checkbox']:checked").each(function(n,r){let o=e(r).parent().parent().children("td.icons").children(".icon_nzbget"),i=e(r).val();if(i&&!o.hasClass("icon_nzbget_clicked")){let n=t+"/sendtoqueue/"+i;e.post(n,function(e){o.addClass("icon_nzbget_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})})}e(this).attr("checked",!1)})}),e("input.nzb_multi_operations_edit").click(function(){let n="";e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+="&id[]="+e(r).val())}),n&&e("input.nzb_multi_operations_edit").colorbox({href:function(){return t+"ajax_release-admin?action=edit"+n+"&from="+encodeURIComponent(window.location)},title:"Edit Release",innerWidth:"400px",innerHeight:"250px",initialWidth:"400px",initialHeight:"250px",speed:0,opacity:.7})}),e("input.nzb_multi_operations_delete").click(function(){let n="";if(e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+="&id[]="+e(r).val())}),n){PNotify.defaults.icons="fontawesome5";const r=PNotify.alert({title:"Confirmation Needed",text:"Are you sure you want to delete the selected releases?",icon:"glyphicon glyphicon-question-sign",hide:!1,modules:{Confirm:{confirm:!0}},Buttons:{closer:!1,sticker:!1},History:{history:!1}});r.on("pnotify.confirm",function(){e.post(t+"ajax_release-admin?action=dodelete"+n,function(e){location.reload(!0)})}),r.on("pnotify.cancel",function(){alert("Cancelled")})}}),e("input.nzb_multi_operations_rebuild").click(function(){let n="";e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+="&id[]="+e(r).val())}),n&&confirm("Are you sure you want to rebuild the selected releases?")&&e.post(t+"ajax_release-admin?action=dorebuild"+n,function(e){location.reload(!0)})}),e("input.nzb_multi_operations_cartdelete").click(function(){let n=new Array;if(e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&n.push(e(r).val())}),e.ajaxSetup({headers:{"X-CSRF-TOKEN":e('meta[name="csrf-token"]').attr("content")}}),n){PNotify.defaults.icons="fontawesome5";const r=PNotify.alert({title:"Confirmation Needed",text:"Are you sure you want to delete the selected releases from your cart?",hide:!1,modules:{Confirm:{confirm:!0}},Buttons:{closer:!1,sticker:!1},History:{history:!1}});r.on("pnotify.confirm",function(){e.post(t+"/cart/delete/"+n)}),r.on("pnotify.cancel",function(){alert("Cancelled")})}}),e("input.nzb_multi_operations_cartsab").click(function(){new Array;e("table.data INPUT[type='checkbox']:checked").each(function(n,r){let o=e(r).val(),i=t+"/sendtoqueue/"+o;e.post(i,function(){PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Releases sent to queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})})})}),e("#headsearch").focus(function(){"Search..."==this.value?this.value="":this.select()}).blur(function(){""==this.value&&(this.value="Search...")}),e("#headsearch_form").submit(function(){return e("#headsearch_go").trigger("click"),!1}),e("#headsearch_go").click(function(){if(e("#headsearch").val()&&"Search..."!=e("#headsearch").val()){let n=e("#headsearch").val(),r=-1!=e("#headcat").val()?"&t="+e("#headcat").val():"";document.location=t+"/search?id="+n+r}}),e("#search_search_button").click(function(){return e("#search").val()&&(document.location=t+"/search?id="+e("#search").val()+(-1!=e("#search_cat").val()?"&t="+e("#search_cat").val():"")),!1}),e("#search").focus(function(){this.select()}),e("#searchraw_search_button").click(function(){return e("#search").val()&&(document.location=t+"/searchraw/"+e("#search").val()),!1}),e("#searchraw_download_selected").click(function(){return e("#dl input:checked").length&&e("#dl").trigger("submit"),!1}),e("#username").length&&e("#username").focus(),e("#search").length&&e("#search").focus(),e("#viewfilelist_download_selected").click(function(){return e("#fileform input:checked").length&&e("#fileform").trigger("submit"),!1}),e(".confirm_action").click(function(){return confirm("Are you sure?")}),e(".audioprev").click(function(){let t=document.getElementById(e(this).next("audio").attr("ID"));return null!=t&&("Listen"==e(this).text()?(t.play(),e(this).text("Stop")):(t.pause(),t.currentTime=0,e(this).text("Listen"))),t.addEventListener("ended",function(){e(this).prev().text("Listen")}),!1}),e(".mmenu").click(function(){return document.location=e(this).children("a").attr("href"),!1}),e(".mmenu_new").click(function(){return window.open(e(this).children("a").attr("href")),!1}),e(".checkbox_operations .select_all").click(function(){return e("table.data INPUT[type='checkbox']").attr("checked",!0).trigger("change"),!1}),e(".checkbox_operations .select_none").click(function(){return e("table.data INPUT[type='checkbox']").attr("checked",!1).trigger("change"),!1}),e(".checkbox_operations .select_invert").click(function(){return e("table.data INPUT[type='checkbox']").each(function(){e(this).attr("checked",!e(this).attr("checked")).trigger("change")}),!1}),e(".checkbox_operations .select_range").click(function(){return r&&o&&r1&&""!=o[1])t+=o[1],n+=o[1].length;else{if(" "==e[n])t+="+";else{let r=e.charCodeAt(n).toString(16);t+="%"+(r.length<2?"0":"")+r.toUpperCase()}n++}}return t},URLDecode:function(e){let t,n=e,r=/(%[^%]{2})/;for(;null!=(m=r.exec(n))&&m.length>1&&""!=m[1];)b=parseInt(m[1].substr(1),16),t=String.fromCharCode(b),n=n.replace(m[1],t);return n}}),$(function(){let e=$("input.flat-all"),t=$("input.flat");$("input").iCheck({checkboxClass:"icheckbox_flat-green",radioClass:"iradio_flat-green"}),e.on("ifChecked ifUnchecked",function(e){"ifChecked"===e.type?t.iCheck("check"):t.iCheck("uncheck")}),t.on("ifChanged",function(n){t.filter(":checked").length===t.length?e.prop("checked","checked"):e.prop("checked",!1),e.iCheck("update")})}),tinyMCE.init({selector:"textarea#addMessage",theme:"silver",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table directionality emoticons template paste code"],theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",toolbar:"insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code",fontsize_formats:"8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",mode:"exact",relative_urls:!1,remove_script_host:!1,convert_urls:!0}); +var l,a;!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(e,t){"use strict";var n=[],r=Object.getPrototypeOf,o=n.slice,i=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},c=n.push,a=n.indexOf,s={},l=s.toString,u=s.hasOwnProperty,f=u.toString,h=f.call(Object),d={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},v=function(e){return null!=e&&e===e.window},p=e.document,g={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,o,i=(n=n||p).createElement("script");if(i.text=e,t)for(r in g)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function y(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?s[l.call(e)]||"object":typeof e}var z="3.5.1",C=function(e,t){return new C.fn.init(e,t)};function M(e){var t=!!e&&"length"in e&&e.length,n=y(e);return!m(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+I+")"+I+"*"),U=new RegExp(I+"|>"),W=new RegExp(B),Z=new RegExp("^"+P+"$"),Y={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,G=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},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},ie=function(){h()},ce=ze(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{E.apply(k=D.call(C.childNodes),C.childNodes),k[C.childNodes.length].nodeType}catch(t){E={apply:k.length?function(e,t){T.apply(e,D.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(e,t,r,o){var i,a,l,u,f,m,g,b=t&&t.ownerDocument,C=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return r;if(!o&&(h(t),t=t||d,v)){if(11!==C&&(f=J.exec(e)))if(i=f[1]){if(9===C){if(!(l=t.getElementById(i)))return r;if(l.id===i)return r.push(l),r}else if(b&&(l=b.getElementById(i))&&y(t,l)&&l.id===i)return r.push(l),r}else{if(f[2])return E.apply(r,t.getElementsByTagName(e)),r;if((i=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return E.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!S[e+" "]&&(!p||!p.test(e))&&(1!==C||"object"!==t.nodeName.toLowerCase())){if(g=e,b=t,1===C&&(U.test(e)||q.test(e))){for((b=ee.test(e)&&ge(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,oe):t.setAttribute("id",u=z)),a=(m=c(e)).length;a--;)m[a]=(u?"#"+u:":scope")+" "+ye(m[a]);g=m.join(",")}try{return E.apply(r,b.querySelectorAll(g)),r}catch(t){S(e,!0)}finally{u===z&&t.removeAttribute("id")}}}return s(e.replace(F,"$1"),t,r,o)}function se(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function le(e){return e[z]=!0,e}function ue(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function he(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function me(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ve(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ce(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function pe(e){return le(function(t){return t=+t,le(function(n,r){for(var o,i=e([],n.length,t),c=i.length;c--;)n[o=i[c]]&&(n[o]=!(r[o]=n[o]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},i=ae.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!X.test(t||n&&n.nodeName||"HTML")},h=ae.setDocument=function(e){var t,o,c=e?e.ownerDocument||e:C;return c!=d&&9===c.nodeType&&c.documentElement&&(m=(d=c).documentElement,v=!i(d),C!=d&&(o=d.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.scope=ue(function(e){return m.appendChild(e).appendChild(d.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ue(function(e){return m.appendChild(e).id=z,!d.getElementsByName||!d.getElementsByName(z).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&v)return t.getElementsByClassName(e)},g=[],p=[],(n.qsa=K.test(d.querySelectorAll))&&(ue(function(e){var t;m.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&p.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||p.push("\\["+I+"*(?:value|"+O+")"),e.querySelectorAll("[id~="+z+"-]").length||p.push("~="),(t=d.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+I+"*name"+I+"*="+I+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||p.push(":checked"),e.querySelectorAll("a#"+z+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll("\\\f"),p.push("[\\r\\n\\f]")}),ue(function(e){e.innerHTML="";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&p.push("name"+I+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&p.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),p.push(",.*:")})),(n.matchesSelector=K.test(b=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),g.push("!=",B)}),p=p.length&&new RegExp(p.join("|")),g=g.length&&new RegExp(g.join("|")),t=K.test(m.compareDocumentPosition),y=t||K.test(m.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},L=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==d||e.ownerDocument==C&&y(C,e)?-1:t==d||t.ownerDocument==C&&y(C,t)?1:u?N(u,e)-N(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,c=[e],a=[t];if(!o||!i)return e==d?-1:t==d?1:o?-1:i?1:u?N(u,e)-N(u,t):0;if(o===i)return he(e,t);for(n=e;n=n.parentNode;)c.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;c[r]===a[r];)r++;return r?he(c[r],a[r]):c[r]==C?-1:a[r]==C?1:0}),d},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(h(e),n.matchesSelector&&v&&!S[t+" "]&&(!g||!g.test(t))&&(!p||!p.test(t)))try{var r=b.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){S(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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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 Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=c(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(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&_(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=ae.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function V(e,t,n){return m(t)?C.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?C.grep(e,function(e){return e===t!==n}):"string"!=typeof t?C.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:A.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:p,!0)),L.test(r[1])&&C.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=p.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,k=C(p);var T=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};function D(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i;ue=p.createDocumentFragment().appendChild(p.createElement("div")),(fe=p.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ue.appendChild(fe),d.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="",d.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="",d.option=!!ue.lastChild;var ve={thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};function pe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?C.merge([e],n):n}function ge(e,t){for(var n=0,r=e.length;n",""]);var be=/<|&#?\w+;/;function ye(e,t,n,r,o){for(var i,c,a,s,l,u,f=t.createDocumentFragment(),h=[],d=0,m=e.length;d\s*$/g;function Ae(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Te(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ee(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function De(e,t){var n,r,o,i,c,a;if(1===t.nodeType){if(X.hasData(e)&&(a=X.get(e).events))for(o in X.remove(t,"handle events"),a)for(n=0,r=a[o].length;n").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),p.head.appendChild(t[0])},abort:function(){n&&n()}}});var Ut,Wt=[],Zt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Wt.pop()||C.expando+"_"+wt.guid++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(t,n,r){var o,i,c,a=!1!==t.jsonp&&(Zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=m(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Zt,"$1"+o):!1!==t.jsonp&&(t.url+=(_t.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return c||C.error(o+" was not called"),c[0]},t.dataTypes[0]="json",i=e[o],e[o]=function(){c=arguments},r.always(function(){void 0===i?C(e).removeProp(o):e[o]=i,t[o]&&(t.jsonpCallback=n.jsonpCallback,Wt.push(o)),c&&m(i)&&i(c[0]),c=i=void 0}),"script"}),d.createHTMLDocument=((Ut=p.implementation.createHTMLDocument("").body).innerHTML="
    ",2===Ut.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((r=(t=p.implementation.createHTMLDocument("")).createElement("base")).href=p.location.href,t.head.appendChild(r)):t=p),i=!n&&[],(o=L.exec(e))?[t.createElement(o[1])]:(o=ye([e],t,i),i&&i.length&&C(i).remove(),C.merge([],o.childNodes)));var r,o,i},C.fn.load=function(e,t,n){var r,o,i,c=this,a=e.indexOf(" ");return-1").append(C.parseHTML(e)).find(r):e)}).always(n&&function(e,t){c.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},C.expr.pseudos.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(e,t,n){var r,o,i,c,a,s,l=C.css(e,"position"),u=C(e),f={};"static"===l&&(e.style.position="relative"),a=u.offset(),i=C.css(e,"top"),s=C.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(i+s).indexOf("auto")?(c=(r=u.position()).top,o=r.left):(c=parseFloat(i)||0,o=parseFloat(s)||0),m(t)&&(t=t.call(e,n,C.extend({},a))),null!=t.top&&(f.top=t.top-a.top+c),null!=t.left&&(f.left=t.left-a.left+o),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),u.css(f))}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===C.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),o.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-C.css(r,"marginTop",!0),left:t.left-o.left-C.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||re})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;C.fn[e]=function(r){return F(this,function(e,r,o){var i;if(v(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o},e,r,arguments.length)}}),C.each(["top","left"],function(e,t){C.cssHooks[t]=Fe(d.pixelPosition,function(e,n){if(n)return n=je(e,t),Ie.test(n)?C(e).position()[t]+"px":n})}),C.each({Height:"height",Width:"width"},function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){C.fn[r]=function(o,i){var c=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===i?"margin":"border");return F(this,function(t,n,o){var i;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?C.css(t,n,a):C.style(t,n,o,a)},t,c?o:void 0,c)}})}),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.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,r){return this.on(t,e,n,r)},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)}}),C.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,t){C.fn[t]=function(e,n){return 0+i[n])return 1;if(+o[n]<+i[n])return-1}return 0}(e.fn.jquery,t)}e.migrateVersion="3.3.0",t.console&&t.console.log&&(e&&n("3.0.0")||t.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),e.migrateWarnings&&t.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),t.console.log("JQMIGRATE: Migrate is installed"+(e.migrateMute?"":" with logging active")+", version "+e.migrateVersion));var r={};function o(n){var o=t.console;e.migrateDeduplicateWarnings&&r[n]||(r[n]=!0,e.migrateWarnings.push(n),o&&o.warn&&!e.migrateMute&&(o.warn("JQMIGRATE: "+n),e.migrateTrace&&o.trace&&o.trace()))}function i(e,t,n,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return o(r),n},set:function(e){o(r),n=e}})}function c(e,t,n,r){e[t]=function(){return o(r),n.apply(this,arguments)}}e.migrateDeduplicateWarnings=!0,e.migrateWarnings=[],void 0===e.migrateTrace&&(e.migrateTrace=!0),e.migrateReset=function(){r={},e.migrateWarnings.length=0},"BackCompat"===t.document.compatMode&&o("jQuery is not compatible with Quirks Mode");var a,s={},l=e.fn.init,u=e.find,f=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,d=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;for(a in e.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(o("jQuery( '#' ) is not a valid selector"),t[0]=[]),l.apply(this,t)},e.fn.init.prototype=e.fn,e.find=function(e){var n=Array.prototype.slice.call(arguments);if("string"==typeof e&&f.test(e))try{t.document.querySelector(e)}catch(r){e=e.replace(h,function(e,t,n,r){return"["+t+n+'"'+r+'"]'});try{t.document.querySelector(e),o("Attribute selector with '#' must be quoted: "+n[0]),n[0]=e}catch(e){o("Attribute selector with '#' was not fixed: "+n[0])}}return u.apply(this,n)},u)Object.prototype.hasOwnProperty.call(u,a)&&(e.find[a]=u[a]);if(c(e.fn,"size",function(){return this.length},"jQuery.fn.size() is deprecated and removed; use the .length property"),c(e,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"jQuery.parseJSON is deprecated; use JSON.parse"),c(e,"holdReady",e.holdReady,"jQuery.holdReady is deprecated"),c(e,"unique",e.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),i(e.expr,"filters",e.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),i(e.expr,":",e.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),n("3.1.1")&&c(e,"trim",function(e){return null==e?"":(e+"").replace(d,"")},"jQuery.trim is deprecated; use String.prototype.trim"),n("3.2.0")&&c(e,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"jQuery.nodeName is deprecated"),n("3.3.0")&&(c(e,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"jQuery.isNumeric() is deprecated"),e.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){s["[object "+t+"]"]=t.toLowerCase()}),c(e,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?s[Object.prototype.toString.call(e)]||"object":typeof e},"jQuery.type is deprecated"),c(e,"isFunction",function(e){return"function"==typeof e},"jQuery.isFunction() is deprecated"),c(e,"isWindow",function(e){return null!=e&&e===e.window},"jQuery.isWindow() is deprecated"),c(e,"isArray",Array.isArray,"jQuery.isArray is deprecated; use Array.isArray")),e.ajax){var m=e.ajax;e.ajax=function(){var e=m.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e}}var v=e.fn.removeAttr,p=e.fn.toggleClass,g=/\S+/g;function b(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}e.fn.removeAttr=function(t){var n=this;return e.each(t.match(g),function(t,r){e.expr.match.bool.test(r)&&(o("jQuery.fn.removeAttr no longer sets boolean properties: "+r),n.prop(r,!1))}),v.apply(this,arguments)};var y,z=!(e.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?p.apply(this,arguments):(o("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var n=this.getAttribute&&this.getAttribute("class")||"";n&&e.data(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":e.data(this,"__className__")||"")}))}),C=/^[a-z]/,M=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;e.swap&&e.each(["height","width","reliableMarginRight"],function(t,n){var r=e.cssHooks[n]&&e.cssHooks[n].get;r&&(e.cssHooks[n].get=function(){var e;return z=!0,e=r.apply(this,arguments),z=!1,e})}),e.swap=function(e,t,n,r){var i,c,a={};for(c in z||o("jQuery.swap() is undocumented and deprecated"),t)a[c]=e.style[c],e.style[c]=t[c];for(c in i=n.apply(e,r||[]),t)e.style[c]=a[c];return i},n("3.4.0")&&"undefined"!=typeof Proxy&&(e.cssProps=new Proxy(e.cssProps||{},{set:function(){return o("JQMIGRATE: jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e.cssNumber||(e.cssNumber={}),y=e.fn.css,e.fn.css=function(t,n){var r=this;return"string"!=typeof t&&e.each(t,function(t,n){e.fn.css.call(r,t,n)}),"number"!=typeof n||function(e){return C.test(e)&&M.test(e[0].toUpperCase()+e.slice(1))}(b(t))||o("Use of number-typed values is deprecated in jQuery.fn.css"),y.apply(this,arguments)};var w=e.data;if(e.data=function(t,n,r){var i,c,a;if(n&&"object"==typeof n&&2===arguments.length){for(a in i=e.hasData(t)&&w.call(this,t),c={},n)a!==b(a)?(o("jQuery.data() always sets/gets camelCased names: "+a),i[a]=n[a]):c[a]=n[a];return w.call(this,t,c),n}return n&&"string"==typeof n&&n!==b(n)&&(i=e.hasData(t)&&w.call(this,t))&&n in i?(o("jQuery.data() always sets/gets camelCased names: "+n),2");t!==e&&A(e)!==A(t)&&o("HTML tags must be properly nested and closed: "+e)}e.event.props=[],e.event.fixHooks={},i(e.event.props,"concat",e.event.props.concat,"jQuery.event.props.concat() is deprecated and removed"),e.event.fix=function(t){var n,r=t.type,i=this.fixHooks[r],c=e.event.props;if(c.length)for(o("jQuery.event.props are deprecated and removed: "+c.join());c.length;)e.event.addProp(c.pop());if(i&&!i._migrated_&&(i._migrated_=!0,o("jQuery.event.fixHooks are deprecated and removed: "+r),(c=i.props)&&c.length))for(;c.length;)e.event.addProp(c.pop());return n=k.call(this,t),i&&i.filter?i.filter(n,t):n},e.event.add=function(e,n){return e===t&&"load"===n&&"complete"===t.document.readyState&&o("jQuery(window).on('load'...) called after load event occurred"),V.apply(this,arguments)},e.each(["load","unload","error"],function(t,n){e.fn[n]=function(){var e=Array.prototype.slice.call(arguments,0);return"load"===n&&"string"==typeof e[0]?L.apply(this,e):(o("jQuery.fn."+n+"() is deprecated"),e.splice(0,0,n),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))}}),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(t,n){e.fn[n]=function(e,t){return o("jQuery.fn."+n+"() event shorthand is deprecated"),0\x20\t\r\n\f]*)[^>]*)\/>/gi,D=e.htmlPrefilter;e.UNSAFE_restoreLegacyHtmlPrefilter=function(){e.htmlPrefilter=function(e){return T(e),e.replace(E,"<$1>")}},e.htmlPrefilter=function(e){return T(e),D(e)};var N=e.fn.offset;if(e.fn.offset=function(){var n,r=this[0];if(r&&r.nodeType)return n=(r.ownerDocument||t.document).documentElement,e.contains(n,r)?N.apply(this,arguments):(o("jQuery.fn.offset() requires an element connected to a document"),{top:0,left:0});o("jQuery.fn.offset() requires a valid DOM element")},e.ajax){var O=e.param;e.param=function(t,n){var r=e.ajaxSettings&&e.ajaxSettings.traditional;return void 0===n&&r&&(o("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),n=r),O.call(this,t,n)}}var I=e.fn.andSelf||e.fn.addBack;if(e.fn.andSelf=function(){return o("jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),I.apply(this,arguments)},e.Deferred){var P=e.Deferred,R=[["resolve","done",e.Callbacks("once memory"),e.Callbacks("once memory"),"resolved"],["reject","fail",e.Callbacks("once memory"),e.Callbacks("once memory"),"rejected"],["notify","progress",e.Callbacks("memory"),e.Callbacks("memory")]];e.Deferred=function(t){var n=P(),r=n.promise();return n.pipe=r.pipe=function(){var t=arguments;return o("deferred.pipe() is deprecated"),e.Deferred(function(o){e.each(R,function(e,i){var c="function"==typeof t[e]&&t[e];n[i[1]](function(){var e=c&&c.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(o.resolve).fail(o.reject).progress(o.notify):o[i[0]+"With"](this===r?o.promise():this,c?[e]:arguments)})}),t=null}).promise()},t&&t.call(n,n),n},e.Deferred.exceptionHook=P.exceptionHook}return e}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t((e=e||self).bootstrap={},e.jQuery)}(this,function(e,t){"use strict";function n(e,t){for(var n=0;n=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};l.jQueryDetection(),t.fn.emulateTransitionEnd=s,t.event.special[l.TRANSITION_END]={bindType:a,delegateType:a,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var u=t.fn.alert,f={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},h="alert",d="fade",m="show",v=function(){function e(e){this._element=e}var n=e.prototype;return n.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},n.dispose=function(){t.removeData(this._element,"bs.alert"),this._element=null},n._getRootElement=function(e){var n=l.getSelectorFromElement(e),r=!1;return n&&(r=document.querySelector(n)),r||(r=t(e).closest("."+h)[0]),r},n._triggerCloseEvent=function(e){var n=t.Event(f.CLOSE);return t(e).trigger(n),n},n._removeElement=function(e){var n=this;if(t(e).removeClass(m),t(e).hasClass(d)){var r=l.getTransitionDurationFromElement(e);t(e).one(l.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(r)}else this._destroyElement(e)},n._destroyElement=function(e){t(e).detach().trigger(f.CLOSED).remove()},e._jQueryInterface=function(n){return this.each(function(){var r=t(this),o=r.data("bs.alert");o||(o=new e(this),r.data("bs.alert",o)),"close"===n&&o[n](this)})},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},r(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(f.CLICK_DATA_API,'[data-dismiss="alert"]',v._handleDismiss(new v)),t.fn.alert=v._jQueryInterface,t.fn.alert.Constructor=v,t.fn.alert.noConflict=function(){return t.fn.alert=u,v._jQueryInterface};var p=t.fn.button,g="active",b="btn",y="focus",z='[data-toggle^="button"]',C='[data-toggle="buttons"]',M='[data-toggle="button"]',w='[data-toggle="buttons"] .btn',_='input:not([type="hidden"])',x=".active",H=".btn",S={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api",LOAD_DATA_API:"load.bs.button.data-api"},L=function(){function e(e){this._element=e}var n=e.prototype;return n.toggle=function(){var e=!0,n=!0,r=t(this._element).closest(C)[0];if(r){var o=this._element.querySelector(_);if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains(g))e=!1;else{var i=r.querySelector(x);i&&t(i).removeClass(g)}else"checkbox"===o.type?"LABEL"===this._element.tagName&&o.checked===this._element.classList.contains(g)&&(e=!1):e=!1;e&&(o.checked=!this._element.classList.contains(g),t(o).trigger("change")),o.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(g)),e&&t(this._element).toggleClass(g))},n.dispose=function(){t.removeData(this._element,"bs.button"),this._element=null},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.button");r||(r=new e(this),t(this).data("bs.button",r)),"toggle"===n&&r[n]()})},r(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(S.CLICK_DATA_API,z,function(e){var n=e.target;if(t(n).hasClass(b)||(n=t(n).closest(H)[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))e.preventDefault();else{var r=n.querySelector(_);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void e.preventDefault();L._jQueryInterface.call(t(n),"toggle")}}).on(S.FOCUS_BLUR_DATA_API,z,function(e){var n=t(e.target).closest(H)[0];t(n).toggleClass(y,/^focus(in)?$/.test(e.type))}),t(window).on(S.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(w)),t=0,n=e.length;t0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=e.prototype;return n.next=function(){this._isSliding||this._slide(D)},n.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(N)},n.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(Z.NEXT_PREV)&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(e){var n=this;this._activeElement=this._element.querySelector(Z.ACTIVE_ITEM);var r=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(P.SLID,function(){return n.to(e)});else{if(r===e)return this.pause(),void this.cycle();var o=e>r?D:N;this._slide(o,this._items[e])}},n.dispose=function(){t(this._element).off(k),t.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(e){return e=c({},T,{},e),l.typeCheckConfig(V,e,E),e},n._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},n._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(P.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&t(this._element).on(P.MOUSEENTER,function(t){return e.pause(t)}).on(P.MOUSELEAVE,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var n=function(t){e._pointerEvent&&Y[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},r=function(t){e._pointerEvent&&Y[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval))};t(this._element.querySelectorAll(Z.ITEM_IMG)).on(P.DRAG_START,function(e){return e.preventDefault()}),this._pointerEvent?(t(this._element).on(P.POINTERDOWN,function(e){return n(e)}),t(this._element).on(P.POINTERUP,function(e){return r(e)}),this._element.classList.add(W)):(t(this._element).on(P.TOUCHSTART,function(e){return n(e)}),t(this._element).on(P.TOUCHMOVE,function(t){return function(t){t.originalEvent.touches&&t.originalEvent.touches.length>1?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX}(t)}),t(this._element).on(P.TOUCHEND,function(e){return r(e)}))}},n._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},n._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(Z.ITEM)):[],this._items.indexOf(e)},n._getItemByDirection=function(e,t){var n=e===D,r=e===N,o=this._getItemIndex(t),i=this._items.length-1;if((r&&0===o||n&&o===i)&&!this._config.wrap)return t;var c=(o+(e===N?-1:1))%this._items.length;return-1===c?this._items[this._items.length-1]:this._items[c]},n._triggerSlideEvent=function(e,n){var r=this._getItemIndex(e),o=this._getItemIndex(this._element.querySelector(Z.ACTIVE_ITEM)),i=t.Event(P.SLIDE,{relatedTarget:e,direction:n,from:o,to:r});return t(this._element).trigger(i),i},n._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(Z.ACTIVE));t(n).removeClass(B);var r=this._indicatorsElement.children[this._getItemIndex(e)];r&&t(r).addClass(B)}},n._slide=function(e,n){var r,o,i,c=this,a=this._element.querySelector(Z.ACTIVE_ITEM),s=this._getItemIndex(a),u=n||a&&this._getItemByDirection(e,a),f=this._getItemIndex(u),h=Boolean(this._interval);if(e===D?(r=$,o=q,i=O):(r=F,o=U,i=I),u&&t(u).hasClass(B))this._isSliding=!1;else if(!this._triggerSlideEvent(u,i).isDefaultPrevented()&&a&&u){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(u);var d=t.Event(P.SLID,{relatedTarget:u,direction:i,from:s,to:f});if(t(this._element).hasClass(j)){t(u).addClass(o),l.reflow(u),t(a).addClass(r),t(u).addClass(r);var m=parseInt(u.getAttribute("data-interval"),10);m?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=m):this._config.interval=this._config.defaultInterval||this._config.interval;var v=l.getTransitionDurationFromElement(a);t(a).one(l.TRANSITION_END,function(){t(u).removeClass(r+" "+o).addClass(B),t(a).removeClass(B+" "+o+" "+r),c._isSliding=!1,setTimeout(function(){return t(c._element).trigger(d)},0)}).emulateTransitionEnd(v)}else t(a).removeClass(B),t(u).addClass(B),this._isSliding=!1,t(this._element).trigger(d);h&&this.cycle()}},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.carousel"),o=c({},T,{},t(this).data());"object"==typeof n&&(o=c({},o,{},n));var i="string"==typeof n?n:o.slide;if(r||(r=new e(this,o),t(this).data("bs.carousel",r)),"number"==typeof n)r.to(n);else if("string"==typeof i){if(void 0===r[i])throw new TypeError('No method named "'+i+'"');r[i]()}else o.interval&&o.ride&&(r.pause(),r.cycle())})},e._dataApiClickHandler=function(n){var r=l.getSelectorFromElement(this);if(r){var o=t(r)[0];if(o&&t(o).hasClass(R)){var i=c({},t(o).data(),{},t(this).data()),a=this.getAttribute("data-slide-to");a&&(i.interval=!1),e._jQueryInterface.call(t(o),i),a&&t(o).data("bs.carousel").to(a),n.preventDefault()}}},r(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return T}}]),e}();t(document).on(P.CLICK_DATA_API,Z.DATA_SLIDE,X._dataApiClickHandler),t(window).on(P.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(Z.DATA_RIDE)),n=0,r=e.length;n0&&(this._selector=c,this._triggerArray.push(i))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=e.prototype;return n.toggle=function(){t(this._element).hasClass(te)?this.hide():this.show()},n.show=function(){var n,r,o=this;if(!this._isTransitioning&&!t(this._element).hasClass(te)&&(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(ae.ACTIVES)).filter(function(e){return"string"==typeof o._config.parent?e.getAttribute("data-parent")===o._config.parent:e.classList.contains(ne)})).length&&(n=null),!(n&&(r=t(n).not(this._selector).data("bs.collapse"))&&r._isTransitioning))){var i=t.Event(ee.SHOW);if(t(this._element).trigger(i),!i.isDefaultPrevented()){n&&(e._jQueryInterface.call(t(n).not(this._selector),"hide"),r||t(n).data("bs.collapse",null));var c=this._getDimension();t(this._element).removeClass(ne).addClass(re),this._element.style[c]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(oe).attr("aria-expanded",!0),this.setTransitioning(!0);var a="scroll"+(c[0].toUpperCase()+c.slice(1)),s=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,function(){t(o._element).removeClass(re).addClass(ne).addClass(te),o._element.style[c]="",o.setTransitioning(!1),t(o._element).trigger(ee.SHOWN)}).emulateTransitionEnd(s),this._element.style[c]=this._element[a]+"px"}}},n.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(te)){var n=t.Event(ee.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension();this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",l.reflow(this._element),t(this._element).addClass(re).removeClass(ne).removeClass(te);var o=this._triggerArray.length;if(o>0)for(var i=0;i=0)return 1;return 0}();var fe=le&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ue))}};function he(e){return e&&"[object Function]"==={}.toString.call(e)}function de(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function me(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function ve(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=de(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:ve(me(e))}function pe(e){return e&&e.referenceNode?e.referenceNode:e}var ge=le&&!(!window.MSInputMethodContext||!document.documentMode),be=le&&/MSIE 10/.test(navigator.userAgent);function ye(e){return 11===e?ge:10===e?be:ge||be}function ze(e){if(!e)return document.documentElement;for(var t=ye(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===de(n,"position")?ze(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ce(e){return null!==e.parentNode?Ce(e.parentNode):e}function Me(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var c,a,s=i.commonAncestorContainer;if(e!==s&&t!==s||r.contains(o))return"BODY"===(a=(c=s).nodeName)||"HTML"!==a&&ze(c.firstElementChild)!==c?ze(s):s;var l=Ce(e);return l.host?Me(l.host,t):Me(e,Ce(t).host)}function we(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function _e(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function xe(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ye(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function He(e){var t=e.body,n=e.documentElement,r=ye(10)&&getComputedStyle(n);return{height:xe("Height",t,n,r),width:xe("Width",t,n,r)}}var Se=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Le=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=ye(10),o="HTML"===t.nodeName,i=Te(e),c=Te(t),a=ve(e),s=de(t),l=parseFloat(s.borderTopWidth,10),u=parseFloat(s.borderLeftWidth,10);n&&o&&(c.top=Math.max(c.top,0),c.left=Math.max(c.left,0));var f=Ae({top:i.top-c.top-l,left:i.left-c.left-u,width:i.width,height:i.height});if(f.marginTop=0,f.marginLeft=0,!r&&o){var h=parseFloat(s.marginTop,10),d=parseFloat(s.marginLeft,10);f.top-=l-h,f.bottom-=l-h,f.left-=u-d,f.right-=u-d,f.marginTop=h,f.marginLeft=d}return(r&&!n?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(f=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=we(t,"top"),o=we(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(f,t)),f}function De(e){if(!e||!e.parentElement||ye())return document.documentElement;for(var t=e.parentElement;t&&"none"===de(t,"transform");)t=t.parentElement;return t||document.documentElement}function Ne(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},c=o?De(e):Me(e,pe(t));if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Ee(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),c=t?0:we(n),a=t?0:we(n,"left");return Ae({top:c-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:o,height:i})}(c,o);else{var a=void 0;"scrollParent"===r?"BODY"===(a=ve(me(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===r?e.ownerDocument.documentElement:r;var s=Ee(a,c,o);if("HTML"!==a.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===de(t,"position"))return!0;var r=me(t);return!!r&&e(r)}(c))i=s;else{var l=He(e.ownerDocument),u=l.height,f=l.width;i.top+=s.top-s.marginTop,i.bottom=u+s.top,i.left+=s.left-s.marginLeft,i.right=f+s.left}}var h="number"==typeof(n=n||0);return i.left+=h?n:n.left||0,i.top+=h?n:n.top||0,i.right-=h?n:n.right||0,i.bottom-=h?n:n.bottom||0,i}function Oe(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var c=Ne(n,r,i,o),a={top:{width:c.width,height:t.top-c.top},right:{width:c.right-t.right,height:c.height},bottom:{width:c.width,height:c.bottom-t.bottom},left:{width:t.left-c.left,height:c.height}},s=Object.keys(a).map(function(e){return ke({key:e},a[e],{area:(t=a[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),l=s.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),u=l.length>0?l[0].key:s[0].key,f=e.split("-")[1];return u+(f?"-"+f:"")}function Ie(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Ee(n,r?De(t):Me(t,pe(n)),r)}function Pe(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Re(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function Be(e,t,n){n=n.split("-")[0];var r=Pe(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),c=i?"top":"left",a=i?"left":"top",s=i?"height":"width",l=i?"width":"height";return o[c]=t[c]+t[s]/2-r[s]/2,o[a]=n===a?t[a]-r[l]:t[Re(a)],o}function je(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Fe(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=je(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&he(n)&&(t.offsets.popper=Ae(t.offsets.popper),t.offsets.reference=Ae(t.offsets.reference),t=n(t,e))}),t}function $e(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function qe(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=Je.indexOf(e),r=Je.slice(n+1).concat(Je.slice(0,n));return t?r.reverse():r}var tt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function nt(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),c=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=c.indexOf(je(c,function(e){return-1!==e.search(/,|\s/)}));c[a]&&-1===c[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,l=-1!==a?[c.slice(0,a).concat([c[a].split(s)[0]]),[c[a].split(s)[1]].concat(c.slice(a+1))]:[c];return(l=l.map(function(e,r){var o=(1===r?!i:i)?"height":"width",c=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,c=!0,e):c?(e[e.length-1]+=t,c=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],c=o[2];if(!i)return e;if(0===c.indexOf("%")){var a=void 0;switch(c){case"%p":a=n;break;case"%":case"%r":default:a=r}return Ae(a)[t]/100*i}if("vh"===c||"vw"===c)return("vh"===c?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){Ye(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var rt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,c=o.popper,a=-1!==["bottom","top"].indexOf(n),s=a?"left":"top",l=a?"width":"height",u={start:Ve({},s,i[s]),end:Ve({},s,i[s]+i[l]-c[l])};e.offsets.popper=ke({},c,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,c=o.reference,a=r.split("-")[0],s=void 0;return s=Ye(+n)?[+n,0]:nt(n,i,c,a),"left"===a?(i.top+=s[0],i.left-=s[1]):"right"===a?(i.top+=s[0],i.left+=s[1]):"top"===a?(i.left+=s[0],i.top-=s[1]):"bottom"===a&&(i.left+=s[0],i.top+=s[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||ze(e.instance.popper);e.instance.reference===n&&(n=ze(n));var r=qe("transform"),o=e.instance.popper.style,i=o.top,c=o.left,a=o[r];o.top="",o.left="",o[r]="";var s=Ne(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=c,o[r]=a,t.boundaries=s;var l=t.priority,u=e.offsets.popper,f={primary:function(e){var n=u[e];return u[e]s[e]&&!t.escapeWithReference&&(r=Math.min(u[n],s[e]-("right"===e?u.width:u.height))),Ve({},n,r)}};return l.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=ke({},u,f[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,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,c=-1!==["top","bottom"].indexOf(o),a=c?"right":"bottom",s=c?"left":"top",l=c?"width":"height";return n[a]i(r[a])&&(e.offsets.popper[s]=i(r[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Qe(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,c=i.popper,a=i.reference,s=-1!==["left","right"].indexOf(o),l=s?"height":"width",u=s?"Top":"Left",f=u.toLowerCase(),h=s?"left":"top",d=s?"bottom":"right",m=Pe(r)[l];a[d]-mc[d]&&(e.offsets.popper[f]+=a[f]+m-c[d]),e.offsets.popper=Ae(e.offsets.popper);var v=a[f]+a[l]/2-m/2,p=de(e.instance.popper),g=parseFloat(p["margin"+u],10),b=parseFloat(p["border"+u+"Width"],10),y=v-e.offsets.popper[f]-g-b;return y=Math.max(Math.min(c[l]-m,y),0),e.arrowElement=r,e.offsets.arrow=(Ve(n={},f,Math.round(y)),Ve(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if($e(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Ne(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Re(r),i=e.placement.split("-")[1]||"",c=[];switch(t.behavior){case tt.FLIP:c=[r,o];break;case tt.CLOCKWISE:c=et(r);break;case tt.COUNTERCLOCKWISE:c=et(r,!0);break;default:c=t.behavior}return c.forEach(function(a,s){if(r!==a||c.length===s+1)return e;r=e.placement.split("-")[0],o=Re(r);var l=e.offsets.popper,u=e.offsets.reference,f=Math.floor,h="left"===r&&f(l.right)>f(u.left)||"right"===r&&f(l.left)f(u.top)||"bottom"===r&&f(l.top)f(n.right),v=f(l.top)f(n.bottom),g="left"===r&&d||"right"===r&&m||"top"===r&&v||"bottom"===r&&p,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===i&&d||b&&"end"===i&&m||!b&&"start"===i&&v||!b&&"end"===i&&p),z=!!t.flipVariationsByContent&&(b&&"start"===i&&m||b&&"end"===i&&d||!b&&"start"===i&&p||!b&&"end"===i&&v),C=y||z;(h||g||C)&&(e.flipped=!0,(h||g)&&(r=c[s+1]),C&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=ke({},e.offsets.popper,Be(e.instance.popper,e.offsets.reference,e.placement)),e=Fe(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,c=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[c?"left":"top"]=i[n]-(a?o[c?"width":"height"]:0),e.placement=Re(t),e.offsets.popper=Ae(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Qe(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=je(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};Se(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=fe(this.update.bind(this)),this.options=ke({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ke({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=ke({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ke({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&he(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return Le(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Ie(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Oe(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Be(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Fe(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,$e(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[qe("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=We(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return Ze.call(this)}}]),e}();ot.Utils=("undefined"!=typeof window?window:global).PopperUtils,ot.placements=Ke,ot.Defaults=rt;var it="dropdown",ct=t.fn[it],at=new RegExp("38|40|27"),st={HIDE:"hide.bs.dropdown",HIDDEN:"hidden.bs.dropdown",SHOW:"show.bs.dropdown",SHOWN:"shown.bs.dropdown",CLICK:"click.bs.dropdown",CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},lt="disabled",ut="show",ft="dropup",ht="dropright",dt="dropleft",mt="dropdown-menu-right",vt="position-static",pt='[data-toggle="dropdown"]',gt=".dropdown form",bt=".dropdown-menu",yt=".navbar-nav",zt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ct="top-start",Mt="top-end",wt="bottom-start",_t="bottom-end",xt="right-start",Ht="left-start",St={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Lt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},Vt=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var n=e.prototype;return n.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(lt)){var n=t(this._menu).hasClass(ut);e._clearMenus(),n||this.show(!0)}},n.show=function(n){if(void 0===n&&(n=!1),!(this._element.disabled||t(this._element).hasClass(lt)||t(this._menu).hasClass(ut))){var r={relatedTarget:this._element},o=t.Event(st.SHOW,r),i=e._getParentFromElement(this._element);if(t(i).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&n){if(void 0===ot)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var c=this._element;"parent"===this._config.reference?c=i:l.isElement(this._config.reference)&&(c=this._config.reference,void 0!==this._config.reference.jquery&&(c=this._config.reference[0])),"scrollParent"!==this._config.boundary&&t(i).addClass(vt),this._popper=new ot(c,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(i).closest(yt).length&&t(document.body).children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(ut),t(i).toggleClass(ut).trigger(t.Event(st.SHOWN,r))}}},n.hide=function(){if(!this._element.disabled&&!t(this._element).hasClass(lt)&&t(this._menu).hasClass(ut)){var n={relatedTarget:this._element},r=t.Event(st.HIDE,n),o=e._getParentFromElement(this._element);t(o).trigger(r),r.isDefaultPrevented()||(this._popper&&this._popper.destroy(),t(this._menu).toggleClass(ut),t(o).toggleClass(ut).trigger(t.Event(st.HIDDEN,n)))}},n.dispose=function(){t.removeData(this._element,"bs.dropdown"),t(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},n.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},n._addEventListeners=function(){var e=this;t(this._element).on(st.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},n._getConfig=function(e){return e=c({},this.constructor.Default,{},t(this._element).data(),{},e),l.typeCheckConfig(it,e,this.constructor.DefaultType),e},n._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(bt))}return this._menu},n._getPlacement=function(){var e=t(this._element.parentNode),n=wt;return e.hasClass(ft)?(n=Ct,t(this._menu).hasClass(mt)&&(n=Mt)):e.hasClass(ht)?n=xt:e.hasClass(dt)?n=Ht:t(this._menu).hasClass(mt)&&(n=_t),n},n._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},n._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=c({},t.offsets,{},e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},n._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),c({},e,{},this._config.popperConfig)},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.dropdown");if(r||(r=new e(this,"object"==typeof n?n:null),t(this).data("bs.dropdown",r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},e._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var r=[].slice.call(document.querySelectorAll(pt)),o=0,i=r.length;o0&&c--,40===n.which&&cdocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._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:qt,popperConfig:null},tn="show",nn="out",rn={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},on="fade",cn="show",an=".tooltip-inner",sn=".arrow",ln="hover",un="focus",fn="click",hn="manual",dn=function(){function e(e,t){if(void 0===ot)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 n=e.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,r=t(e.currentTarget).data(n);r||(r=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(t(this.getTipElement()).hasClass(cn))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&t(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},n.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var n=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(n);var r=l.findShadowRoot(this.element),o=t.contains(null!==r?r:this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!o)return;var i=this.getTipElement(),c=l.getUID(this.constructor.NAME);i.setAttribute("id",c),this.element.setAttribute("aria-describedby",c),this.setContent(),this.config.animation&&t(i).addClass(on);var a="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(a);this.addAttachmentClass(s);var u=this._getContainer();t(i).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(i).appendTo(u),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new ot(this.element,i,this._getPopperConfig(s)),t(i).addClass(cn),"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);var f=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===nn&&e._leave(null,e)};if(t(this.tip).hasClass(on)){var h=l.getTransitionDurationFromElement(this.tip);t(this.tip).one(l.TRANSITION_END,f).emulateTransitionEnd(h)}else f()}},n.hide=function(e){var n=this,r=this.getTipElement(),o=t.Event(this.constructor.Event.HIDE),i=function(){n._hoverState!==tn&&r.parentNode&&r.parentNode.removeChild(r),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};if(t(this.element).trigger(o),!o.isDefaultPrevented()){if(t(r).removeClass(cn),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[fn]=!1,this._activeTrigger[un]=!1,this._activeTrigger[ln]=!1,t(this.tip).hasClass(on)){var c=l.getTransitionDurationFromElement(r);t(r).one(l.TRANSITION_END,i).emulateTransitionEnd(c)}else i();this._hoverState=""}},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},n.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},n.setContent=function(){var e=this.getTipElement();this.setElementContent(t(e.querySelectorAll(an)),this.getTitle()),t(e).removeClass(on+" "+cn)},n.setElementContent=function(e,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=Zt(n,this.config.whiteList,this.config.sanitizeFn)),e.html(n)):e.text(n):this.config.html?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text())},n.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},n._getPopperConfig=function(e){var t=this;return c({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:sn},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},n._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=c({},t.offsets,{},e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},n._getContainer=function(){return!1===this.config.container?document.body:l.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},n._getAttachment=function(e){return Jt[e.toUpperCase()]},n._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(n!==hn){var r=n===ln?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,o=n===ln?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(r,e.config.selector,function(t){return e._enter(t)}).on(o,e.config.selector,function(t){return e._leave(t)})}}),this._hideModalHandler=function(){e.element&&e.hide()},t(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=c({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._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",""))},n._enter=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusin"===e.type?un:ln]=!0),t(n.getTipElement()).hasClass(cn)||n._hoverState===tn?n._hoverState=tn:(clearTimeout(n._timeout),n._hoverState=tn,n.config.delay&&n.config.delay.show?n._timeout=setTimeout(function(){n._hoverState===tn&&n.show()},n.config.delay.show):n.show())},n._leave=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusout"===e.type?un:ln]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=nn,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout(function(){n._hoverState===nn&&n.hide()},n.config.delay.hide):n.hide())},n._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},n._getConfig=function(e){var n=t(this.element).data();return Object.keys(n).forEach(function(e){-1!==Qt.indexOf(e)&&delete n[e]}),"number"==typeof(e=c({},this.constructor.Default,{},n,{},"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()),l.typeCheckConfig(Yt,e,this.constructor.DefaultType),e.sanitize&&(e.template=Zt(e.template,e.whiteList,e.sanitizeFn)),e},n._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},n._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(Gt);null!==n&&n.length&&e.removeClass(n.join(""))},n._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},n._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(on),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.tooltip"),o="object"==typeof n&&n;if((r||!/dispose|hide/.test(n))&&(r||(r=new e(this,o),t(this).data("bs.tooltip",r)),"string"==typeof n)){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},r(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return en}},{key:"NAME",get:function(){return Yt}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return rn}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return Kt}}]),e}();t.fn.tooltip=dn._jQueryInterface,t.fn.tooltip.Constructor=dn,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=Xt,dn._jQueryInterface};var mn="popover",vn=t.fn.popover,pn=new RegExp("(^|\\s)bs-popover\\S+","g"),gn=c({},dn.Default,{placement:"right",trigger:"click",content:"",template:''}),bn=c({},dn.DefaultType,{content:"(string|element|function)"}),yn="fade",zn="show",Cn=".popover-header",Mn=".popover-body",wn={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},_n=function(e){var n,o;function i(){return e.apply(this,arguments)||this}o=e,(n=i).prototype=Object.create(o.prototype),n.prototype.constructor=n,n.__proto__=o;var c=i.prototype;return c.isWithContent=function(){return this.getTitle()||this._getContent()},c.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-popover-"+e)},c.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},c.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(Cn),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(e.find(Mn),n),e.removeClass(yn+" "+zn)},c._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},c._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(pn);null!==n&&n.length>0&&e.removeClass(n.join(""))},i._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.popover"),r="object"==typeof e?e:null;if((n||!/dispose|hide/.test(e))&&(n||(n=new i(this,r),t(this).data("bs.popover",n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return gn}},{key:"NAME",get:function(){return mn}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return wn}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return bn}}]),i}(dn);t.fn.popover=_n._jQueryInterface,t.fn.popover.Constructor=_n,t.fn.popover.noConflict=function(){return t.fn.popover=vn,_n._jQueryInterface};var xn="scrollspy",Hn=t.fn[xn],Sn={offset:10,method:"auto",target:""},Ln={offset:"number",method:"string",target:"(string|element)"},Vn={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},kn="dropdown-item",An="active",Tn={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},En="offset",Dn="position",Nn=function(){function e(e,n){var r=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+Tn.NAV_LINKS+","+this._config.target+" "+Tn.LIST_ITEMS+","+this._config.target+" "+Tn.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(Vn.SCROLL,function(e){return r._process(e)}),this.refresh(),this._process()}var n=e.prototype;return n.refresh=function(){var e=this,n=this._scrollElement===this._scrollElement.window?En:Dn,r="auto"===this._config.method?n:this._config.method,o=r===Dn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var n,i=l.getSelectorFromElement(e);if(i&&(n=document.querySelector(i)),n){var c=n.getBoundingClientRect();if(c.width||c.height)return[t(n)[r]().top+o,i]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},n.dispose=function(){t.removeData(this._element,"bs.scrollspy"),t(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(e){if("string"!=typeof(e=c({},Sn,{},"object"==typeof e&&e?e:{})).target){var n=t(e.target).attr("id");n||(n=l.getUID(xn),t(e.target).attr("id",n)),e.target="#"+n}return l.typeCheckConfig(xn,e,Ln),e},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&e>=this._offsets[o]&&(void 0===this._offsets[o+1]||e>>0;n--;)t[n]=e[n];return t}function _e(e){return e.classList?we(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function xe(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function He(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n],";")},"")}function Se(e){return e.size!==ye.size||e.x!==ye.x||e.y!==ye.y||e.rotate!==ye.rotate||e.flipX||e.flipY}function Le(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),c="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(c," ").concat(a)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var Ve={x:0,y:0,width:"100%",height:"100%"};function ke(e){var t=!(1").concat(c.map(Qe).join(""),"")}var Ke=function(){};function Je(e){return"string"==typeof(e.getAttribute?e.getAttribute(w):null)}var et={replace:function(e){var t=e[0],n=e[1].map(function(e){return Qe(e)}).join("\n");if(t.parentNode&&t.outerHTML)t.outerHTML=n+(q.keepOriginalSource&&"svg"!==t.tagName.toLowerCase()?"\x3c!-- ".concat(t.outerHTML," --\x3e"):"");else if(t.parentNode){var r=document.createElement("span");t.parentNode.replaceChild(r,t),r.outerHTML=n}},nest:function(e){var t=e[0],n=e[1];if(~_e(t).indexOf(q.replacementClass))return et.replace(e);var r=new RegExp("".concat(q.familyPrefix,"-.*"));delete n[0].attributes.style,delete n[0].attributes.id;var o=n[0].attributes.class.split(" ").reduce(function(e,t){return t===q.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" ");var i=n.map(function(e){return Qe(e)}).join("\n");t.setAttribute("class",o.toNode.join(" ")),t.setAttribute(w,""),t.innerHTML=i}};function tt(e){e()}function nt(e,t){var n="function"==typeof t?t:Ke;if(0===e.length)n();else{var r=tt;q.mutateApproach===V&&(r=h.requestAnimationFrame||tt),r(function(){var t=!0===q.autoReplaceSvg?et.replace:et[q.autoReplaceSvg]||et.replace,r=Ie.begin("mutate");e.map(t),r(),n()})}}var rt=!1;function ot(){rt=!1}var it=null;function ct(e){if(m&&q.observeMutations){var t=e.treeCallback,n=e.nodeCallback,r=e.pseudoElementsCallback,o=e.observeMutationsRoot,i=void 0===o?d:o;it=new m(function(e){rt||we(e).forEach(function(e){if("childList"===e.type&&0',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'',spinnerTpl:'
    ',errorTpl:'

    {{ERROR}}

    ',btnTpl:{download:'',zoom:'',close:'',arrowLeft:'',arrowRight:'',smallBtn:''},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(e,t){return"image"===e.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(e,t){return"image"===e.type&&"toggleControls"},clickSlide:function(e,t){return"image"===e.type?"toggleControls":"close"},dblclickContent:function(e,t){return"image"===e.type&&"zoom"},dblclickSlide:function(e,t){return"image"===e.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded.
    Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schließen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden.
    Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergrößern"}}},c=n(e),a=n(t),s=0,l=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)},u=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||function(t){e.clearTimeout(t)},f=function(){var e,n=t.createElement("fakeelement"),r={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in r)if(void 0!==n.style[e])return r[e];return"transitionend"}(),h=function(e){return e&&e.length&&e[0].offsetHeight},d=function(e,t){var r=n.extend(!0,{},e,t);return n.each(t,function(e,t){n.isArray(t)&&(r[e]=t)}),r},m=function(e){var r,o;return!(!e||e.ownerDocument!==t)&&(n(".fancybox-container").css("pointer-events","none"),r={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2},o=t.elementFromPoint(r.x,r.y)===e,n(".fancybox-container").css("pointer-events",""),o)},v=function(e,t,r){var o=this;o.opts=d({index:r},n.fancybox.defaults),n.isPlainObject(t)&&(o.opts=d(o.opts,t)),n.fancybox.isMobile&&(o.opts=d(o.opts,o.opts.mobile)),o.id=o.opts.id||++s,o.currIndex=parseInt(o.opts.index,10)||0,o.prevIndex=null,o.prevPos=null,o.currPos=0,o.firstRun=!0,o.group=[],o.slides={},o.addContent(e),o.group.length&&o.init()};n.extend(v.prototype,{init:function(){var r,o,i=this,c=i.group[i.currIndex].opts;c.closeExisting&&n.fancybox.close(!0),n("body").addClass("fancybox-active"),!n.fancybox.getInstance()&&!1!==c.hideScrollbar&&!n.fancybox.isMobile&&t.body.scrollHeight>e.innerHeight&&(n("head").append('"),n("body").addClass("compensate-for-scrollbar")),o="",n.each(c.buttons,function(e,t){o+=c.btnTpl[t]||""}),r=n(i.translate(i,c.baseTpl.replace("{{buttons}}",o).replace("{{arrows}}",c.btnTpl.arrowLeft+c.btnTpl.arrowRight))).attr("id","fancybox-container-"+i.id).addClass(c.baseClass).data("FancyBox",i).appendTo(c.parentEl),i.$refs={container:r},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(e){i.$refs[e]=r.find(".fancybox-"+e)}),i.trigger("onInit"),i.activate(),i.jumpTo(i.currIndex)},translate:function(e,t){var n=e.opts.i18n[e.opts.lang]||e.opts.i18n.en;return t.replace(/\{\{(\w+)\}\}/g,function(e,t){return void 0===n[t]?e:n[t]})},addContent:function(e){var t,r=this,o=n.makeArray(e);n.each(o,function(e,t){var o,i,c,a,s,l={},u={};n.isPlainObject(t)?(l=t,u=t.opts||t):"object"===n.type(t)&&n(t).length?(u=(o=n(t)).data()||{},(u=n.extend(!0,{},u,u.options)).$orig=o,l.src=r.opts.src||u.src||o.attr("href"),l.type||l.src||(l.type="inline",l.src=t)):l={type:"html",src:t+""},l.opts=n.extend(!0,{},r.opts,u),n.isArray(u.buttons)&&(l.opts.buttons=u.buttons),n.fancybox.isMobile&&l.opts.mobile&&(l.opts=d(l.opts,l.opts.mobile)),i=l.type||l.opts.type,a=l.src||"",!i&&a&&((c=a.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i="video",l.opts.video.format||(l.opts.video.format="video/"+("ogv"===c[1]?"ogg":c[1]))):a.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i="image":a.match(/\.(pdf)((\?|#).*)?$/i)?(i="iframe",l=n.extend(!0,l,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===a.charAt(0)&&(i="inline")),i?l.type=i:r.trigger("objectNeedsType",l),l.contentType||(l.contentType=n.inArray(l.type,["html","inline","ajax"])>-1?"html":l.type),l.index=r.group.length,"auto"==l.opts.smallBtn&&(l.opts.smallBtn=n.inArray(l.type,["html","inline","ajax"])>-1),"auto"===l.opts.toolbar&&(l.opts.toolbar=!l.opts.smallBtn),l.$thumb=l.opts.$thumb||null,l.opts.$trigger&&l.index===r.opts.index&&(l.$thumb=l.opts.$trigger.find("img:first"),l.$thumb.length&&(l.opts.$orig=l.opts.$trigger)),l.$thumb&&l.$thumb.length||!l.opts.$orig||(l.$thumb=l.opts.$orig.find("img:first")),l.$thumb&&!l.$thumb.length&&(l.$thumb=null),l.thumb=l.opts.thumb||(l.$thumb?l.$thumb[0].src:null),"function"===n.type(l.opts.caption)&&(l.opts.caption=l.opts.caption.apply(t,[r,l])),"function"===n.type(r.opts.caption)&&(l.opts.caption=r.opts.caption.apply(t,[r,l])),l.opts.caption instanceof n||(l.opts.caption=void 0===l.opts.caption?"":l.opts.caption+""),"ajax"===l.type&&((s=a.split(/\s+/,2)).length>1&&(l.src=s.shift(),l.opts.filter=s.shift())),l.opts.modal&&(l.opts=n.extend(!0,l.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),r.group.push(l)}),Object.keys(r.slides).length&&(r.updateControls(),(t=r.Thumbs)&&t.isActive&&(t.create(),t.focus()))},addEvents:function(){var t=this;t.removeEvents(),t.$refs.container.on("click.fb-close","[data-fancybox-close]",function(e){e.stopPropagation(),e.preventDefault(),t.close(e)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(e){e.stopPropagation(),e.preventDefault(),t.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(e){e.stopPropagation(),e.preventDefault(),t.next()}).on("click.fb","[data-fancybox-zoom]",function(e){t[t.isScaledDown()?"scaleToActual":"scaleToFit"]()}),c.on("orientationchange.fb resize.fb",function(e){e&&e.originalEvent&&"resize"===e.originalEvent.type?(t.requestId&&u(t.requestId),t.requestId=l(function(){t.update(e)})):(t.current&&"iframe"===t.current.type&&t.$refs.stage.hide(),setTimeout(function(){t.$refs.stage.show(),t.update(e)},n.fancybox.isMobile?600:250))}),a.on("keydown.fb",function(e){var r=(n.fancybox?n.fancybox.getInstance():null).current,o=e.keyCode||e.which;if(9!=o)return!r.opts.keyboard||e.ctrlKey||e.altKey||e.shiftKey||n(e.target).is("input,textarea,video,audio,select")?void 0:8===o||27===o?(e.preventDefault(),void t.close(e)):37===o||38===o?(e.preventDefault(),void t.previous()):39===o||40===o?(e.preventDefault(),void t.next()):void t.trigger("afterKeydown",e,o);r.opts.trapFocus&&t.focus(e)}),t.group[t.currIndex].opts.idleTime&&(t.idleSecondsCounter=0,a.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(e){t.idleSecondsCounter=0,t.isIdle&&t.showControls(),t.isIdle=!1}),t.idleInterval=e.setInterval(function(){++t.idleSecondsCounter>=t.group[t.currIndex].opts.idleTime&&!t.isDragging&&(t.isIdle=!0,t.idleSecondsCounter=0,t.hideControls())},1e3))},removeEvents:function(){var t=this;c.off("orientationchange.fb resize.fb"),a.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),t.idleInterval&&(e.clearInterval(t.idleInterval),t.idleInterval=null)},previous:function(e){return this.jumpTo(this.currPos-1,e)},next:function(e){return this.jumpTo(this.currPos+1,e)},jumpTo:function(e,t){var r,o,i,c,a,s,l,u,f,d=this,m=d.group.length;if(!(d.isDragging||d.isClosing||d.isAnimating&&d.firstRun)){if(e=parseInt(e,10),!(i=d.current?d.current.opts.loop:d.opts.loop)&&(e<0||e>=m))return!1;if(r=d.firstRun=!Object.keys(d.slides).length,a=d.current,d.prevIndex=d.currIndex,d.prevPos=d.currPos,c=d.createSlide(e),m>1&&((i||c.index0)&&d.createSlide(e-1)),d.current=c,d.currIndex=c.index,d.currPos=c.pos,d.trigger("beforeShow",r),d.updateControls(),c.forcedDuration=void 0,n.isNumeric(t)?c.forcedDuration=t:t=c.opts[r?"animationDuration":"transitionDuration"],t=parseInt(t,10),o=d.isMoved(c),c.$slide.addClass("fancybox-slide--current"),r)return c.opts.animationEffect&&t&&d.$refs.container.css("transition-duration",t+"ms"),d.$refs.container.addClass("fancybox-is-open").trigger("focus"),d.loadSlide(c),void d.preload("image");s=n.fancybox.getTranslate(a.$slide),l=n.fancybox.getTranslate(d.$refs.stage),n.each(d.slides,function(e,t){n.fancybox.stop(t.$slide,!0)}),a.pos!==c.pos&&(a.isComplete=!1),a.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),o?(f=s.left-(a.pos*s.width+a.pos*a.opts.gutter),n.each(d.slides,function(e,r){r.$slide.removeClass("fancybox-animated").removeClass(function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var o=r.pos*s.width+r.pos*r.opts.gutter;n.fancybox.setTranslate(r.$slide,{top:0,left:o-l.left+f}),r.pos!==c.pos&&r.$slide.addClass("fancybox-slide--"+(r.pos>c.pos?"next":"previous")),h(r.$slide),n.fancybox.animate(r.$slide,{top:0,left:(r.pos-c.pos)*s.width+(r.pos-c.pos)*r.opts.gutter},t,function(){r.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),r.pos===d.currPos&&d.complete()})})):t&&c.opts.transitionEffect&&(u="fancybox-animated fancybox-fx-"+c.opts.transitionEffect,a.$slide.addClass("fancybox-slide--"+(a.pos>c.pos?"next":"previous")),n.fancybox.animate(a.$slide,u,t,function(){a.$slide.removeClass(u).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),c.isLoaded?d.revealContent(c):d.loadSlide(c),d.preload("image")}},createSlide:function(e){var t,r,o=this;return r=(r=e%o.group.length)<0?o.group.length+r:r,!o.slides[e]&&o.group[r]&&(t=n('
    ').appendTo(o.$refs.stage),o.slides[e]=n.extend(!0,{},o.group[r],{pos:e,$slide:t,isLoaded:!1}),o.updateSlide(o.slides[e])),o.slides[e]},scaleToActual:function(e,t,r){var o,i,c,a,s,l=this,u=l.current,f=u.$content,h=n.fancybox.getTranslate(u.$slide).width,d=n.fancybox.getTranslate(u.$slide).height,m=u.width,v=u.height;l.isAnimating||l.isMoved()||!f||"image"!=u.type||!u.isLoaded||u.hasError||(l.isAnimating=!0,n.fancybox.stop(f),e=void 0===e?.5*h:e,t=void 0===t?.5*d:t,(o=n.fancybox.getTranslate(f)).top-=n.fancybox.getTranslate(u.$slide).top,o.left-=n.fancybox.getTranslate(u.$slide).left,a=m/o.width,s=v/o.height,i=.5*h-.5*m,c=.5*d-.5*v,m>h&&((i=o.left*a-(e*a-e))>0&&(i=0),id&&((c=o.top*s-(t*s-t))>0&&(c=0),ct-.5&&(s=t),(l*=o)>r-.5&&(l=r),"image"===e.type?(u.top=Math.floor(.5*(r-l))+parseFloat(a.css("paddingTop")),u.left=Math.floor(.5*(t-s))+parseFloat(a.css("paddingLeft"))):"video"===e.contentType&&(l>s/(i=e.opts.width&&e.opts.height?s/l:e.opts.ratio||16/9)?l=s/i:s>l*i&&(s=l*i)),u.width=s,u.height=l,u)},update:function(e){var t=this;n.each(t.slides,function(n,r){t.updateSlide(r,e)})},updateSlide:function(e,t){var r=this,o=e&&e.$content,i=e.width||e.opts.width,c=e.height||e.opts.height,a=e.$slide;r.adjustCaption(e),o&&(i||c||"video"===e.contentType)&&!e.hasError&&(n.fancybox.stop(o),n.fancybox.setTranslate(o,r.getFitPos(e)),e.pos===r.currPos&&(r.isAnimating=!1,r.updateCursor())),r.adjustLayout(e),a.length&&(a.trigger("refresh"),e.pos===r.currPos&&r.$refs.toolbar.add(r.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",a.get(0).scrollHeight>a.get(0).clientHeight)),r.trigger("onUpdate",e,t)},centerSlide:function(e){var t=this,r=t.current,o=r.$slide;!t.isClosing&&r&&(o.siblings().css({transform:"",opacity:""}),o.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),n.fancybox.animate(o,{top:0,left:0,opacity:1},void 0===e?0:e,function(){o.css({transform:"",opacity:""}),r.isComplete||t.complete()},!1))},isMoved:function(e){var t,r,o=e||this.current;return!!o&&(r=n.fancybox.getTranslate(this.$refs.stage),t=n.fancybox.getTranslate(o.$slide),!o.$slide.hasClass("fancybox-animated")&&(Math.abs(t.top-r.top)>.5||Math.abs(t.left-r.left)>.5))},updateCursor:function(e,t){var r,o,i=this,c=i.current,a=i.$refs.container;c&&!i.isClosing&&i.Guestures&&(a.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),o=!!(r=i.canPan(e,t))||i.isZoomable(),a.toggleClass("fancybox-is-zoomable",o),n("[data-fancybox-zoom]").prop("disabled",!o),r?a.addClass("fancybox-can-pan"):o&&("zoom"===c.opts.clickContent||n.isFunction(c.opts.clickContent)&&"zoom"==c.opts.clickContent(c))?a.addClass("fancybox-can-zoomIn"):c.opts.touch&&(c.opts.touch.vertical||i.group.length>1)&&"video"!==c.contentType&&a.addClass("fancybox-can-swipe"))},isZoomable:function(){var e,t=this,n=t.current;if(n&&!t.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if((e=t.getFitPos(n))&&(n.width>e.width||n.height>e.height))return!0}return!1},isScaledDown:function(e,t){var r=!1,o=this.current,i=o.$content;return void 0!==e&&void 0!==t?r=e1.5||Math.abs(o.height-i.height)>1.5)),i},loadSlide:function(e){var t,r,o,i=this;if(!e.isLoading&&!e.isLoaded){if(e.isLoading=!0,!1===i.trigger("beforeLoad",e))return e.isLoading=!1,!1;switch(t=e.type,(r=e.$slide).off("refresh").trigger("onReset").addClass(e.opts.slideClass),t){case"image":i.setImage(e);break;case"iframe":i.setIframe(e);break;case"html":i.setContent(e,e.src||e.content);break;case"video":i.setContent(e,e.opts.video.tpl.replace(/\{\{src\}\}/gi,e.src).replace("{{format}}",e.opts.videoFormat||e.opts.video.format||"").replace("{{poster}}",e.thumb||""));break;case"inline":n(e.src).length?i.setContent(e,n(e.src)):i.setError(e);break;case"ajax":i.showLoading(e),o=n.ajax(n.extend({},e.opts.ajax.settings,{url:e.src,success:function(t,n){"success"===n&&i.setContent(e,t)},error:function(t,n){t&&"abort"!==n&&i.setError(e)}})),r.one("onReset",function(){o.abort()});break;default:i.setError(e)}return!0}},setImage:function(e){var r,o=this;setTimeout(function(){var t=e.$image;o.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||o.showLoading(e)},50),o.checkSrcset(e),e.$content=n('
    ').addClass("fancybox-is-hidden").appendTo(e.$slide.addClass("fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(r=t.createElement("img")).onerror=function(){n(this).remove(),e.$ghost=null},r.onload=function(){o.afterLoad(e)},e.$ghost=n(r).addClass("fancybox-image").appendTo(e.$content).attr("src",e.thumb)),o.setBigImage(e)},checkSrcset:function(t){var n,r,o,i,c=t.opts.srcset||t.opts.image.srcset;if(c){o=e.devicePixelRatio||1,i=e.innerWidth*o,(r=c.split(",").map(function(e){var t={};return e.trim().split(/\s+/).forEach(function(e,n){var r=parseInt(e.substring(0,e.length-1),10);if(0===n)return t.url=e;r&&(t.value=r,t.postfix=e[e.length-1])}),t})).sort(function(e,t){return e.value-t.value});for(var a=0;a=i||"x"===s.postfix&&s.value>=o){n=s;break}}!n&&r.length&&(n=r[r.length-1]),n&&(t.src=n.url,t.width&&t.height&&"w"==n.postfix&&(t.height=t.width/t.height*n.value,t.width=n.value),t.opts.srcset=c)}},setBigImage:function(e){var r=this,o=t.createElement("img"),i=n(o);e.$image=i.one("error",function(){r.setError(e)}).one("load",function(){var t;e.$ghost||(r.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),r.afterLoad(e)),r.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(e.width/e.height>1&&c.width()/c.height()>1?"100":Math.round(e.width/e.height*100))+"vw"),i.attr("sizes",t).attr("srcset",e.opts.srcset)),e.$ghost&&setTimeout(function(){e.$ghost&&!r.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),r.hideLoading(e))}).addClass("fancybox-image").attr("src",e.src).appendTo(e.$content),(o.complete||"complete"==o.readyState)&&i.naturalWidth&&i.naturalHeight?i.trigger("load"):o.error&&i.trigger("error")},resolveImageSlideSize:function(e,t,n){var r=parseInt(e.opts.width,10),o=parseInt(e.opts.height,10);e.width=t,e.height=n,r>0&&(e.width=r,e.height=Math.floor(r*n/t)),o>0&&(e.width=Math.floor(o*t/n),e.height=o)},setIframe:function(e){var t,r=this,o=e.opts.iframe,i=e.$slide;e.$content=n('
    ').css(o.css).appendTo(i),i.addClass("fancybox-slide--"+e.contentType),e.$iframe=t=n(o.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(o.attr).appendTo(e.$content),o.preload?(r.showLoading(e),t.on("load.fb error.fb",function(t){this.isReady=1,e.$slide.trigger("refresh"),r.afterLoad(e)}),i.on("refresh.fb",function(){var n,r=e.$content,c=o.css.width,a=o.css.height;if(1===t[0].isReady){try{n=t.contents().find("body")}catch(e){}n&&n.length&&n.children().length&&(i.css("overflow","visible"),r.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===c&&(c=Math.ceil(Math.max(n[0].clientWidth,n.outerWidth(!0)))),r.css("width",c||"").css("max-width",""),void 0===a&&(a=Math.ceil(Math.max(n[0].clientHeight,n.outerHeight(!0)))),r.css("height",a||""),i.css("overflow","auto")),r.removeClass("fancybox-is-hidden")}})):r.afterLoad(e),t.attr("src",e.src),i.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(e){}n(this).off("refresh.fb").empty(),e.isLoaded=!1,e.isRevealed=!1})},setContent:function(e,t){var r=this;r.isClosing||(r.hideLoading(e),e.$content&&n.fancybox.stop(e.$content),e.$slide.empty(),function(e){return e&&e.hasOwnProperty&&e instanceof n}(t)&&t.parent().length?((t.hasClass("fancybox-content")||t.parent().hasClass("fancybox-content"))&&t.parents(".fancybox-slide").trigger("onReset"),e.$placeholder=n("
    ").hide().insertAfter(t),t.css("display","inline-block")):e.hasError||("string"===n.type(t)&&(t=n("
    ").append(n.trim(t)).contents()),e.opts.filter&&(t=n("
    ").html(t).find(e.opts.filter))),e.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause"),e.$placeholder&&(e.$placeholder.after(t.removeClass("fancybox-content").hide()).remove(),e.$placeholder=null),e.$smallBtn&&(e.$smallBtn.remove(),e.$smallBtn=null),e.hasError||(n(this).empty(),e.isLoaded=!1,e.isRevealed=!1)}),n(t).appendTo(e.$slide),n(t).is("video,audio")&&(n(t).addClass("fancybox-video"),n(t).wrap("
    "),e.contentType="video",e.opts.width=e.opts.width||n(t).attr("width"),e.opts.height=e.opts.height||n(t).attr("height")),e.$content=e.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),e.$content.siblings().hide(),e.$content.length||(e.$content=e.$slide.wrapInner("
    ").children().first()),e.$content.addClass("fancybox-content"),e.$slide.addClass("fancybox-slide--"+e.contentType),r.afterLoad(e))},setError:function(e){e.hasError=!0,e.$slide.trigger("onReset").removeClass("fancybox-slide--"+e.contentType).addClass("fancybox-slide--error"),e.contentType="html",this.setContent(e,this.translate(e,e.opts.errorTpl)),e.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(e){var t=this;(e=e||t.current)&&!e.$spinner&&(e.$spinner=n(t.translate(t,t.opts.spinnerTpl)).appendTo(e.$slide).hide().fadeIn("fast"))},hideLoading:function(e){(e=e||this.current)&&e.$spinner&&(e.$spinner.stop().remove(),delete e.$spinner)},afterLoad:function(e){var t=this;t.isClosing||(e.isLoading=!1,e.isLoaded=!0,t.trigger("afterLoad",e),t.hideLoading(e),!e.opts.smallBtn||e.$smallBtn&&e.$smallBtn.length||(e.$smallBtn=n(t.translate(e,e.opts.btnTpl.smallBtn)).appendTo(e.$content)),e.opts.protect&&e.$content&&!e.hasError&&(e.$content.on("contextmenu.fb",function(e){return 2==e.button&&e.preventDefault(),!0}),"image"===e.type&&n('
    ').appendTo(e.$content)),t.adjustCaption(e),t.adjustLayout(e),e.pos===t.currPos&&t.updateCursor(),t.revealContent(e))},adjustCaption:function(e){var t,n=this,r=e||n.current,o=r.opts.caption,i=r.opts.preventCaptionOverlap,c=n.$refs.caption,a=!1;c.toggleClass("fancybox-caption--separate",i),i&&o&&o.length&&(r.pos!==n.currPos?((t=c.clone().appendTo(c.parent())).children().eq(0).empty().html(o),a=t.outerHeight(!0),t.empty().remove()):n.$caption&&(a=n.$caption.outerHeight(!0)),r.$slide.css("padding-bottom",a||""))},adjustLayout:function(e){var t,n,r,o,i=e||this.current;i.isLoaded&&!0!==i.opts.disableLayoutFix&&(i.$content.css("margin-bottom",""),i.$content.outerHeight()>i.$slide.height()+.5&&(r=i.$slide[0].style["padding-bottom"],o=i.$slide.css("padding-bottom"),parseFloat(o)>0&&(t=i.$slide[0].scrollHeight,i.$slide.css("padding-bottom",0),Math.abs(t-i.$slide[0].scrollHeight)<1&&(n=o),i.$slide.css("padding-bottom",r))),i.$content.css("margin-bottom",n))},revealContent:function(e){var t,r,o,i,c=this,a=e.$slide,s=!1,l=!1,u=c.isMoved(e),f=e.isRevealed;return e.isRevealed=!0,t=e.opts[c.firstRun?"animationEffect":"transitionEffect"],o=e.opts[c.firstRun?"animationDuration":"transitionDuration"],o=parseInt(void 0===e.forcedDuration?o:e.forcedDuration,10),!u&&e.pos===c.currPos&&o||(t=!1),"zoom"===t&&(e.pos===c.currPos&&o&&"image"===e.type&&!e.hasError&&(l=c.getThumbPos(e))?s=c.getFitPos(e):t="fade"),"zoom"===t?(c.isAnimating=!0,s.scaleX=s.width/l.width,s.scaleY=s.height/l.height,"auto"==(i=e.opts.zoomOpacity)&&(i=Math.abs(e.width/e.height-l.width/l.height)>.1),i&&(l.opacity=.1,s.opacity=1),n.fancybox.setTranslate(e.$content.removeClass("fancybox-is-hidden"),l),h(e.$content),void n.fancybox.animate(e.$content,s,o,function(){c.isAnimating=!1,c.complete()})):(c.updateSlide(e),t?(n.fancybox.stop(a),r="fancybox-slide--"+(e.pos>=c.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+t,a.addClass(r).removeClass("fancybox-slide--current"),e.$content.removeClass("fancybox-is-hidden"),h(a),"image"!==e.type&&e.$content.hide().show(0),void n.fancybox.animate(a,"fancybox-slide--current",o,function(){a.removeClass(r).css({transform:"",opacity:""}),e.pos===c.currPos&&c.complete()},!0)):(e.$content.removeClass("fancybox-is-hidden"),f||!u||"image"!==e.type||e.hasError||e.$content.hide().fadeIn("fast"),void(e.pos===c.currPos&&c.complete())))},getThumbPos:function(e){var t,r,o,i,c,a=!1,s=e.$thumb;return!(!s||!m(s[0]))&&(t=n.fancybox.getTranslate(s),r=parseFloat(s.css("border-top-width")||0),o=parseFloat(s.css("border-right-width")||0),i=parseFloat(s.css("border-bottom-width")||0),c=parseFloat(s.css("border-left-width")||0),a={top:t.top+r,left:t.left+c,width:t.width-o-c,height:t.height-r-i,scaleX:1,scaleY:1},t.width>0&&t.height>0&&a)},complete:function(){var e,t=this,r=t.current,o={};!t.isMoved()&&r.isLoaded&&(r.isComplete||(r.isComplete=!0,r.$slide.siblings().trigger("onReset"),t.preload("inline"),h(r.$slide),r.$slide.addClass("fancybox-slide--complete"),n.each(t.slides,function(e,r){r.pos>=t.currPos-1&&r.pos<=t.currPos+1?o[r.pos]=r:r&&(n.fancybox.stop(r.$slide),r.$slide.off().remove())}),t.slides=o),t.isAnimating=!1,t.updateCursor(),t.trigger("afterShow"),r.opts.video.autoStart&&r.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),t.next()}),r.opts.autoFocus&&"html"===r.contentType&&((e=r.$content.find("input[autofocus]:enabled:visible:first")).length?e.trigger("focus"):t.focus(null,!0)),r.$slide.scrollTop(0).scrollLeft(0))},preload:function(e){var t,n,r=this;r.group.length<2||(n=r.slides[r.currPos+1],(t=r.slides[r.currPos-1])&&t.type===e&&r.loadSlide(t),n&&n.type===e&&r.loadSlide(n))},focus:function(e,r){var o,i,c=this,a=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");c.isClosing||((o=(o=!e&&c.current&&c.current.isComplete?c.current.$slide.find("*:visible"+(r?":not(.fancybox-close-small)":"")):c.$refs.container.find("*:visible")).filter(a).filter(function(){return"hidden"!==n(this).css("visibility")&&!n(this).hasClass("disabled")})).length?(i=o.index(t.activeElement),e&&e.shiftKey?(i<0||0==i)&&(e.preventDefault(),o.eq(o.length-1).trigger("focus")):(i<0||i==o.length-1)&&(e&&e.preventDefault(),o.eq(0).trigger("focus"))):c.$refs.container.trigger("focus"))},activate:function(){var e=this;n(".fancybox-container").each(function(){var t=n(this).data("FancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(e,t){var r,o,i,c,a,s,u,f=this,d=f.current,m=function(){f.cleanUp(e)};return!(f.isClosing||(f.isClosing=!0,!1===f.trigger("beforeClose",e)?(f.isClosing=!1,l(function(){f.update()}),1):(f.removeEvents(),i=d.$content,r=d.opts.animationEffect,o=n.isNumeric(t)?t:r?d.opts.animationDuration:0,d.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==e?n.fancybox.stop(d.$slide):r=!1,d.$slide.siblings().trigger("onReset").remove(),o&&f.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",o+"ms"),f.hideLoading(d),f.hideControls(!0),f.updateCursor(),"zoom"!==r||i&&o&&"image"===d.type&&!f.isMoved()&&!d.hasError&&(u=f.getThumbPos(d))||(r="fade"),"zoom"===r?(n.fancybox.stop(i),c=n.fancybox.getTranslate(i),s={top:c.top,left:c.left,scaleX:c.width/u.width,scaleY:c.height/u.height,width:u.width,height:u.height},a=d.opts.zoomOpacity,"auto"==a&&(a=Math.abs(d.width/d.height-u.width/u.height)>.1),a&&(u.opacity=0),n.fancybox.setTranslate(i,s),h(i),n.fancybox.animate(i,u,o,m),0):(r&&o?n.fancybox.animate(d.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+r,o,m):!0===e?setTimeout(m,o):m(),0))))},cleanUp:function(t){var r,o,i,c=this,a=c.current.opts.$orig;c.current.$slide.trigger("onReset"),c.$refs.container.empty().remove(),c.trigger("afterClose",t),c.current.opts.backFocus&&(a&&a.length&&a.is(":visible")||(a=c.$trigger),a&&a.length&&(o=e.scrollX,i=e.scrollY,a.trigger("focus"),n("html, body").scrollTop(i).scrollLeft(o))),c.current=null,(r=n.fancybox.getInstance())?r.activate():(n("body").removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(e,t){var r,o=Array.prototype.slice.call(arguments,1),i=this,c=t&&t.opts?t:i.current;if(c?o.unshift(c):c=i,o.unshift(i),n.isFunction(c.opts[e])&&(r=c.opts[e].apply(c,o)),!1===r)return r;"afterClose"!==e&&i.$refs?i.$refs.container.trigger(e+".fb",o):a.trigger(e+".fb",o)},updateControls:function(){var e=this,r=e.current,o=r.index,i=e.$refs.container,c=e.$refs.caption,a=r.opts.caption;r.$slide.trigger("refresh"),a&&a.length?(e.$caption=c,c.children().eq(0).html(a)):e.$caption=null,e.hasHiddenControls||e.isIdle||e.showControls(),i.find("[data-fancybox-count]").html(e.group.length),i.find("[data-fancybox-index]").html(o+1),i.find("[data-fancybox-prev]").prop("disabled",!r.opts.loop&&o<=0),i.find("[data-fancybox-next]").prop("disabled",!r.opts.loop&&o>=e.group.length-1),"image"===r.type?i.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",r.opts.image.src||r.src).show():r.opts.toolbar&&i.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),n(t.activeElement).is(":hidden,[disabled]")&&e.$refs.container.trigger("focus")},hideControls:function(e){var t=["infobar","toolbar","nav"];!e&&this.current.opts.preventCaptionOverlap||t.push("caption"),this.$refs.container.removeClass(t.map(function(e){return"fancybox-show-"+e}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var e=this,t=e.current?e.current.opts:e.opts,n=e.$refs.container;e.hasHiddenControls=!1,e.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!t.toolbar||!t.buttons)).toggleClass("fancybox-show-infobar",!!(t.infobar&&e.group.length>1)).toggleClass("fancybox-show-caption",!!e.$caption).toggleClass("fancybox-show-nav",!!(t.arrows&&e.group.length>1)).toggleClass("fancybox-is-modal",!!t.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.5.7",defaults:i,getInstance:function(e){var t=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),r=Array.prototype.slice.call(arguments,1);return t instanceof v&&("string"===n.type(e)?t[e].apply(t,r):"function"===n.type(e)&&e.apply(t,r),t)},open:function(e,t,n){return new v(e,t,n)},close:function(e){var t=this.getInstance();t&&(t.close(),!0===e&&this.close(e))},destroy:function(){this.close(!0),a.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=t.createElement("div");return e.getComputedStyle&&e.getComputedStyle(n)&&e.getComputedStyle(n).getPropertyValue("transform")&&!(t.documentMode&&t.documentMode<11)}(),getTranslate:function(e){var t;return!(!e||!e.length)&&{top:(t=e[0].getBoundingClientRect()).top||0,left:t.left||0,width:t.width,height:t.height,opacity:parseFloat(e.css("opacity"))}},setTranslate:function(e,t){var n="",r={};if(e&&t)return void 0===t.left&&void 0===t.top||(n=(void 0===t.left?e.position().left:t.left)+"px, "+(void 0===t.top?e.position().top:t.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),void 0!==t.scaleX&&void 0!==t.scaleY?n+=" scale("+t.scaleX+", "+t.scaleY+")":void 0!==t.scaleX&&(n+=" scaleX("+t.scaleX+")"),n.length&&(r.transform=n),void 0!==t.opacity&&(r.opacity=t.opacity),void 0!==t.width&&(r.width=t.width),void 0!==t.height&&(r.height=t.height),e.css(r)},animate:function(e,t,r,o,i){var c,a=this;n.isFunction(r)&&(o=r,r=null),a.stop(e),c=a.getTranslate(e),e.on(f,function(s){(!s||!s.originalEvent||e.is(s.originalEvent.target)&&"z-index"!=s.originalEvent.propertyName)&&(a.stop(e),n.isNumeric(r)&&e.css("transition-duration",""),n.isPlainObject(t)?void 0!==t.scaleX&&void 0!==t.scaleY&&a.setTranslate(e,{top:t.top,left:t.left,width:c.width*t.scaleX,height:c.height*t.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(t),n.isFunction(o)&&o(s))}),n.isNumeric(r)&&e.css("transition-duration",r+"ms"),n.isPlainObject(t)?(void 0!==t.scaleX&&void 0!==t.scaleY&&(delete t.width,delete t.height,e.parent().hasClass("fancybox-slide--image")&&e.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(e,t)):e.addClass(t),e.data("timer",setTimeout(function(){e.trigger(f)},r+33))},stop:function(e,t){e&&e.length&&(clearTimeout(e.data("timer")),t&&e.trigger(f),e.off(f).css("transition-duration",""),e.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(e){var t;return(t=(e=e||{}).selector||!1)?n("body").off("click.fb-start",t).on("click.fb-start",t,{options:e},o):this.off("click.fb-start").on("click.fb-start",{items:this,options:e},o),this},a.on("click.fb-start","[data-fancybox]",o),a.on("click.fb-start","[data-fancybox-trigger]",function(e){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})}),function(){var e=null;a.on("mousedown mouseup focus blur",".fancybox-button",function(t){switch(t.type){case"mousedown":e=n(this);break;case"mouseup":e=null;break;case"focusin":n(".fancybox-button").removeClass("fancybox-focus"),n(this).is(e)||n(this).is("[disabled]")||n(this).addClass("fancybox-focus");break;case"focusout":n(".fancybox-button").removeClass("fancybox-focus")}})}()}}(window,document,jQuery),function(e){"use strict";var t={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(e){return"//maps.google."+e[2]+"/?ll="+(e[9]?e[9]+"&z="+Math.floor(e[10])+(e[12]?e[12].replace(/^\//,"&"):""):e[12]+"").replace(/\?/,"&")+"&output="+(e[12]&&e[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(e){return"//maps.google."+e[2]+"/maps?q="+e[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},n=function(t,n,r){if(t)return r=r||"","object"===e.type(r)&&(r=e.param(r,!0)),e.each(n,function(e,n){t=t.replace("$"+e,n||"")}),r.length&&(t+=(t.indexOf("?")>0?"&":"?")+r),t};e(document).on("objectNeedsType.fb",function(r,o,i){var c,a,s,l,u,f,h,d=i.src||"",m=!1;c=e.extend(!0,{},t,i.opts.media),e.each(c,function(t,r){if(s=d.match(r.matcher)){if(m=r.type,h=t,f={},r.paramPlace&&s[r.paramPlace]){"?"==(u=s[r.paramPlace])[0]&&(u=u.substring(1)),u=u.split("&");for(var o=0;o1&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&r.load(n.contentSource)}})}(jQuery),function(e,t,n){"use strict";var r=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)},o=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||function(t){e.clearTimeout(t)},i=function(t){var n=[];for(var r in t=(t=t.originalEvent||t||e.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[r].pageX?n.push({x:t[r].pageX,y:t[r].pageY}):t[r].clientX&&n.push({x:t[r].clientX,y:t[r].clientY});return n},c=function(e,t,n){return t&&e?"x"===n?e.x-t.x:"y"===n?e.y-t.y:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},a=function(e){if(e.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||n.isFunction(e.get(0).onclick)||e.data("selectable"))return!0;for(var t=0,r=e[0].attributes,o=r.length;tt.clientHeight,i=("scroll"===r||"auto"===r)&&t.scrollWidth>t.clientWidth;return o||i},l=function(e){for(var t=!1;!(t=s(e.get(0)))&&((e=e.parent()).length&&!e.hasClass("fancybox-stage")&&!e.is("body")););return t},u=function(e){var t=this;t.instance=e,t.$bg=e.$refs.bg,t.$stage=e.$refs.stage,t.$container=e.$refs.container,t.destroy(),t.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(t,"ontouchstart"))};u.prototype.destroy=function(){var e=this;e.$container.off(".fb.touch"),n(t).off(".fb.touch"),e.requestId&&(o(e.requestId),e.requestId=null),e.tapped&&(clearTimeout(e.tapped),e.tapped=null)},u.prototype.ontouchstart=function(r){var o=this,s=n(r.target),u=o.instance,f=u.current,h=f.$slide,d=f.$content,m="touchstart"==r.type;if(m&&o.$container.off("mousedown.fb.touch"),(!r.originalEvent||2!=r.originalEvent.button)&&h.length&&s.length&&!a(s)&&!a(s.parent())&&(s.is("img")||!(r.originalEvent.clientX>s[0].clientWidth+s.offset().left))){if(!f||u.isAnimating||f.$slide.hasClass("fancybox-animated"))return r.stopPropagation(),void r.preventDefault();o.realPoints=o.startPoints=i(r),o.startPoints.length&&(f.touch&&r.stopPropagation(),o.startEvent=r,o.canTap=!0,o.$target=s,o.$content=d,o.opts=f.opts.touch,o.isPanning=!1,o.isSwiping=!1,o.isZooming=!1,o.isScrolling=!1,o.canPan=u.canPan(),o.startTime=(new Date).getTime(),o.distanceX=o.distanceY=o.distance=0,o.canvasWidth=Math.round(h[0].clientWidth),o.canvasHeight=Math.round(h[0].clientHeight),o.contentLastPos=null,o.contentStartPos=n.fancybox.getTranslate(o.$content)||{top:0,left:0},o.sliderStartPos=n.fancybox.getTranslate(h),o.stagePos=n.fancybox.getTranslate(u.$refs.stage),o.sliderStartPos.top-=o.stagePos.top,o.sliderStartPos.left-=o.stagePos.left,o.contentStartPos.top-=o.stagePos.top,o.contentStartPos.left-=o.stagePos.left,n(t).off(".fb.touch").on(m?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(o,"ontouchend")).on(m?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(o,"ontouchmove")),n.fancybox.isMobile&&t.addEventListener("scroll",o.onscroll,!0),((o.opts||o.canPan)&&(s.is(o.$stage)||o.$stage.find(s).length)||(s.is(".fancybox-image")&&r.preventDefault(),n.fancybox.isMobile&&s.parents(".fancybox-caption").length))&&(o.isScrollable=l(s)||l(s.parent()),n.fancybox.isMobile&&o.isScrollable||r.preventDefault(),(1===o.startPoints.length||f.hasError)&&(o.canPan?(n.fancybox.stop(o.$content),o.isPanning=!0):o.isSwiping=!0,o.$container.addClass("fancybox-is-grabbing")),2===o.startPoints.length&&"image"===f.type&&(f.isLoaded||f.$ghost)&&(o.canTap=!1,o.isSwiping=!1,o.isPanning=!1,o.isZooming=!0,n.fancybox.stop(o.$content),o.centerPointStartX=.5*(o.startPoints[0].x+o.startPoints[1].x)-n(e).scrollLeft(),o.centerPointStartY=.5*(o.startPoints[0].y+o.startPoints[1].y)-n(e).scrollTop(),o.percentageOfImageAtPinchPointX=(o.centerPointStartX-o.contentStartPos.left)/o.contentStartPos.width,o.percentageOfImageAtPinchPointY=(o.centerPointStartY-o.contentStartPos.top)/o.contentStartPos.height,o.startDistanceBetweenFingers=c(o.startPoints[0],o.startPoints[1]))))}},u.prototype.onscroll=function(e){this.isScrolling=!0,t.removeEventListener("scroll",this.onscroll,!0)},u.prototype.ontouchmove=function(e){var t=this;return void 0!==e.originalEvent.buttons&&0===e.originalEvent.buttons?void t.ontouchend(e):t.isScrolling?void(t.canTap=!1):(t.newPoints=i(e),void((t.opts||t.canPan)&&t.newPoints.length&&t.newPoints.length&&(t.isSwiping&&!0===t.isSwiping||e.preventDefault(),t.distanceX=c(t.newPoints[0],t.startPoints[0],"x"),t.distanceY=c(t.newPoints[0],t.startPoints[0],"y"),t.distance=c(t.newPoints[0],t.startPoints[0]),t.distance>0&&(t.isSwiping?t.onSwipe(e):t.isPanning?t.onPan():t.isZooming&&t.onZoom()))))},u.prototype.onSwipe=function(t){var i,c=this,a=c.instance,s=c.isSwiping,l=c.sliderStartPos.left||0;if(!0!==s)"x"==s&&(c.distanceX>0&&(c.instance.group.length<2||0===c.instance.current.index&&!c.instance.current.opts.loop)?l+=Math.pow(c.distanceX,.8):c.distanceX<0&&(c.instance.group.length<2||c.instance.current.index===c.instance.group.length-1&&!c.instance.current.opts.loop)?l-=Math.pow(-c.distanceX,.8):l+=c.distanceX),c.sliderLastPos={top:"x"==s?0:c.sliderStartPos.top+c.distanceY,left:l},c.requestId&&(o(c.requestId),c.requestId=null),c.requestId=r(function(){c.sliderLastPos&&(n.each(c.instance.slides,function(e,t){var r=t.pos-c.instance.currPos;n.fancybox.setTranslate(t.$slide,{top:c.sliderLastPos.top,left:c.sliderLastPos.left+r*c.canvasWidth+r*t.opts.gutter})}),c.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(c.distance)>10){if(c.canTap=!1,a.group.length<2&&c.opts.vertical?c.isSwiping="y":a.isDragging||!1===c.opts.vertical||"auto"===c.opts.vertical&&n(e).width()>800?c.isSwiping="x":(i=Math.abs(180*Math.atan2(c.distanceY,c.distanceX)/Math.PI),c.isSwiping=i>45&&i<135?"y":"x"),"y"===c.isSwiping&&n.fancybox.isMobile&&c.isScrollable)return void(c.isScrolling=!0);a.isDragging=c.isSwiping,c.startPoints=c.newPoints,n.each(a.slides,function(e,t){var r,o;n.fancybox.stop(t.$slide),r=n.fancybox.getTranslate(t.$slide),o=n.fancybox.getTranslate(a.$refs.stage),t.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),t.pos===a.current.pos&&(c.sliderStartPos.top=r.top-o.top,c.sliderStartPos.left=r.left-o.left),n.fancybox.setTranslate(t.$slide,{top:r.top-o.top,left:r.left-o.left})}),a.SlideShow&&a.SlideShow.isActive&&a.SlideShow.stop()}},u.prototype.onPan=function(){var e=this;c(e.newPoints[0],e.realPoints[0])<(n.fancybox.isMobile?10:5)?e.startPoints=e.newPoints:(e.canTap=!1,e.contentLastPos=e.limitMovement(),e.requestId&&o(e.requestId),e.requestId=r(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)}))},u.prototype.limitMovement=function(){var e,t,n,r,o,i,c=this,a=c.canvasWidth,s=c.canvasHeight,l=c.distanceX,u=c.distanceY,f=c.contentStartPos,h=f.left,d=f.top,m=f.width,v=f.height;return o=m>a?h+l:h,i=d+u,e=Math.max(0,.5*a-.5*m),t=Math.max(0,.5*s-.5*v),n=Math.min(a-m,.5*a-.5*m),r=Math.min(s-v,.5*s-.5*v),l>0&&o>e&&(o=e-1+Math.pow(-e+h+l,.8)||0),l<0&&o0&&i>t&&(i=t-1+Math.pow(-t+d+u,.8)||0),u<0&&io?e=(e=e>0?0:e)i?t=(t=t>0?0:t)1&&(r.dMs>130&&c>10||c>50);r.sliderLastPos=null,"y"==e&&!t&&Math.abs(r.distanceY)>50?(n.fancybox.animate(r.instance.current.$slide,{top:r.sliderStartPos.top+r.distanceY+150*r.velocityY,opacity:0},200),o=r.instance.close(!0,250)):a&&r.distanceX>0?o=r.instance.previous(300):a&&r.distanceX<0&&(o=r.instance.next(300)),!1!==o||"x"!=e&&"y"!=e||r.instance.centerSlide(200),r.$container.removeClass("fancybox-is-sliding")},u.prototype.endPanning=function(){var e,t,r,o=this;o.contentLastPos&&(!1===o.opts.momentum||o.dMs>350?(e=o.contentLastPos.left,t=o.contentLastPos.top):(e=o.contentLastPos.left+500*o.velocityX,t=o.contentLastPos.top+500*o.velocityY),(r=o.limitPosition(e,t,o.contentStartPos.width,o.contentStartPos.height)).width=o.contentStartPos.width,r.height=o.contentStartPos.height,n.fancybox.animate(o.$content,r,366))},u.prototype.endZooming=function(){var e,t,r,o,i=this,c=i.instance.current,a=i.newWidth,s=i.newHeight;i.contentLastPos&&(e=i.contentLastPos.left,o={top:t=i.contentLastPos.top,left:e,width:a,height:s,scaleX:1,scaleY:1},n.fancybox.setTranslate(i.$content,o),ac.width||s>c.height?i.instance.scaleToActual(i.centerPointStartX,i.centerPointStartY,150):(r=i.limitPosition(e,t,a,s),n.fancybox.animate(i.$content,r,150)))},u.prototype.onTap=function(t){var r,o=this,c=n(t.target),a=o.instance,s=a.current,l=t&&i(t)||o.startPoints,u=l[0]?l[0].x-n(e).scrollLeft()-o.stagePos.left:0,f=l[0]?l[0].y-n(e).scrollTop()-o.stagePos.top:0,h=function(e){var r=s.opts[e];if(n.isFunction(r)&&(r=r.apply(a,[s,t])),r)switch(r){case"close":a.close(o.startEvent);break;case"toggleControls":a.toggleControls();break;case"next":a.next();break;case"nextOrClose":a.group.length>1?a.next():a.close(o.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(a.canPan()?a.scaleToFit():a.isScaledDown()?a.scaleToActual(u,f):a.group.length<2&&a.close(o.startEvent))}};if((!t.originalEvent||2!=t.originalEvent.button)&&(c.is("img")||!(u>c[0].clientWidth+c.offset().left))){if(c.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))r="Outside";else if(c.is(".fancybox-slide"))r="Slide";else{if(!a.current.$content||!a.current.$content.find(c).addBack().filter(c).length)return;r="Content"}if(o.tapped){if(clearTimeout(o.tapped),o.tapped=null,Math.abs(u-o.tapX)>50||Math.abs(f-o.tapY)>50)return this;h("dblclick"+r)}else o.tapX=u,o.tapY=f,s.opts["dblclick"+r]&&s.opts["dblclick"+r]!==s.opts["click"+r]?o.tapped=setTimeout(function(){o.tapped=null,a.isAnimating||h("click"+r)},500):h("click"+r);return this}},n(t).on("onActivate.fb",function(e,t){t&&!t.Guestures&&(t.Guestures=new u(t))}).on("beforeClose.fb",function(e,t){t&&t.Guestures&&t.Guestures.destroy()})}(window,document,jQuery),function(e,t){"use strict";t.extend(!0,t.fancybox.defaults,{btnTpl:{slideShow:''},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(e){this.instance=e,this.init()};t.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var e=this,n=e.instance,r=n.group[n.currIndex].opts.slideShow;e.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){e.toggle()}),n.group.length<2||!r?e.$button.hide():r.progress&&(e.$progress=t('
    ').appendTo(n.$refs.inner))},set:function(e){var n=this,r=n.instance,o=r.current;o&&(!0===e||o.opts.loop||r.currIndex'},fullScreen:{autoStart:!1}}),t(e).on(n.fullscreenchange,function(){var e=r.isFullscreen(),n=t.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.isAnimating=!1,n.update(!0,!0,0),n.isComplete||n.complete()),n.trigger("onFullscreenChange",e),n.$refs.container.toggleClass("fancybox-is-fullscreen",e),n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!e).toggleClass("fancybox-button--fsexit",e))})}t(e).on({"onInit.fb":function(e,t){n?t&&t.group[t.currIndex].opts.fullScreen?(t.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(e){e.stopPropagation(),e.preventDefault(),r.toggle()}),t.opts.fullScreen&&!0===t.opts.fullScreen.autoStart&&r.request(),t.FullScreen=r):t&&t.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():t.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(e,t,n,r,o){t&&t.FullScreen&&70===o&&(r.preventDefault(),t.FullScreen.toggle())},"beforeClose.fb":function(e,t){t&&t.FullScreen&&t.$refs.container.hasClass("fancybox-is-fullscreen")&&r.exit()}})}(document,jQuery),function(e,t){"use strict";var n="fancybox-thumbs";t.fancybox.defaults=t.extend(!0,{btnTpl:{thumbs:''},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},t.fancybox.defaults);var r=function(e){this.init(e)};t.extend(r.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(e){var t=this,n=e.group,r=0;t.instance=e,t.opts=n[e.currIndex].opts.thumbs,e.Thumbs=t,t.$button=e.$refs.toolbar.find("[data-fancybox-thumbs]");for(var o=0,i=n.length;o1));o++);r>1&&t.opts?(t.$button.removeAttr("style").on("click",function(){t.toggle()}),t.isActive=!0):t.$button.hide()},create:function(){var e,r=this,o=r.instance,i=r.opts.parentEl,c=[];r.$grid||(r.$grid=t('
    ').appendTo(o.$refs.container.find(i).addBack().filter(i)),r.$grid.on("click","a",function(){o.jumpTo(t(this).attr("data-index"))})),r.$list||(r.$list=t('
    ').appendTo(r.$grid)),t.each(o.group,function(t,n){(e=n.thumb)||"image"!==n.type||(e=n.src),c.push('")}),r.$list[0].innerHTML=c.join(""),"x"===r.opts.axis&&r.$list.width(parseInt(r.$grid.css("padding-right"),10)+o.group.length*r.$list.children().eq(0).outerWidth(!0))},focus:function(e){var t,n,r=this,o=r.$list,i=r.$grid;r.instance.current&&(n=(t=o.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+r.instance.current.index+'"]').addClass("fancybox-thumbs-active")).position(),"y"===r.opts.axis&&(n.top<0||n.top>o.height()-t.outerHeight())?o.stop().animate({scrollTop:o.scrollTop()+n.top},e):"x"===r.opts.axis&&(n.lefti.scrollLeft()+(i.width()-t.outerWidth()))&&o.parent().stop().animate({scrollLeft:n.left},e))},update:function(){var e=this;e.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),e.isVisible?(e.$grid||e.create(),e.instance.trigger("onThumbsShow"),e.focus(0)):e.$grid&&e.instance.trigger("onThumbsHide"),e.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),t(e).on({"onInit.fb":function(e,t){var n;t&&!t.Thumbs&&((n=new r(t)).isActive&&!0===n.opts.autoStart&&n.show())},"beforeShow.fb":function(e,t,n,r){var o=t&&t.Thumbs;o&&o.isVisible&&o.focus(r?0:250)},"afterKeydown.fb":function(e,t,n,r,o){var i=t&&t.Thumbs;i&&i.isActive&&71===o&&(r.preventDefault(),i.toggle())},"beforeClose.fb":function(e,t){var n=t&&t.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,jQuery),function(e,t){"use strict";t.extend(!0,t.fancybox.defaults,{btnTpl:{share:''},share:{url:function(e,t){return!e.currentHash&&"inline"!==t.type&&"html"!==t.type&&(t.origSrc||t.src)||window.location},tpl:''}}),t(e).on("click","[data-fancybox-share]",function(){var e,n,r=t.fancybox.getInstance(),o=r.current||null;o&&("function"===t.type(o.opts.share.url)&&(e=o.opts.share.url.apply(o,[r,o])),n=o.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===o.type?encodeURIComponent(o.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(e)).replace(/\{\{url_raw\}\}/g,function(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=\/]/g,function(e){return t[e]})}(e)).replace(/\{\{descr\}\}/g,r.$caption?encodeURIComponent(r.$caption.text()):""),t.fancybox.open({src:r.translate(r,n),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(e,t){r.$refs.container.one("beforeClose.fb",function(){e.close(null,0)}),t.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(e,t,n){"use strict";function r(){var t=e.location.hash.substr(1),n=t.split("-"),r=n.length>1&&/^\+?\d+$/.test(n[n.length-1])&&parseInt(n.pop(-1),10)||1;return{hash:t,index:r<1?1:r,gallery:n.join("-")}}function o(e){""!==e.gallery&&n("[data-fancybox='"+n.escapeSelector(e.gallery)+"']").eq(e.index-1).focus().trigger("click.fb-start")}function i(e){var t,n;return!!e&&(""!==(n=(t=e.current?e.current.opts:e.opts).hash||(t.$orig?t.$orig.data("fancybox")||t.$orig.data("fancybox-trigger"):""))&&n)}n.escapeSelector||(n.escapeSelector=function(e){return(e+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e})}),n(function(){!1!==n.fancybox.defaults.hash&&(n(t).on({"onInit.fb":function(e,t){var n,o;!1!==t.group[t.currIndex].opts.hash&&(n=r(),(o=i(t))&&n.gallery&&o==n.gallery&&(t.currIndex=n.index-1))},"beforeShow.fb":function(n,r,o,c){var a;o&&!1!==o.opts.hash&&(a=i(r))&&(r.currentHash=a+(r.group.length>1?"-"+(o.index+1):""),e.location.hash!=="#"+r.currentHash&&(c&&!r.origHash&&(r.origHash=e.location.hash),r.hashTimer&&clearTimeout(r.hashTimer),r.hashTimer=setTimeout(function(){"replaceState"in e.history?(e.history[c?"pushState":"replaceState"]({},t.title,e.location.pathname+e.location.search+"#"+r.currentHash),c&&(r.hasCreatedHistory=!0)):e.location.hash=r.currentHash,r.hashTimer=null},300)))},"beforeClose.fb":function(n,r,o){o&&!1!==o.opts.hash&&(clearTimeout(r.hashTimer),r.currentHash&&r.hasCreatedHistory?e.history.back():r.currentHash&&("replaceState"in e.history?e.history.replaceState({},t.title,e.location.pathname+e.location.search+(r.origHash||"")):e.location.hash=r.origHash),r.currentHash=null)}}),n(e).on("hashchange.fb",function(){var e=r(),t=null;n.each(n(".fancybox-container").get().reverse(),function(e,r){var o=n(r).data("FancyBox");if(o&&o.currentHash)return t=o,!1}),t?t.currentHash===e.gallery+"-"+e.index||1===e.index&&t.currentHash==e.gallery||(t.currentHash=null,t.close()):""!==e.gallery&&o(e)}),setTimeout(function(){n.fancybox.getInstance()||o(r())},50))})}(window,document,jQuery),function(e,t){"use strict";var n=(new Date).getTime();t(e).on({"onInit.fb":function(e,t,r){t.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(e){var r=t.current,o=(new Date).getTime();t.group.length<2||!1===r.opts.wheel||"auto"===r.opts.wheel&&"image"!==r.type||(e.preventDefault(),e.stopPropagation(),r.$slide.hasClass("fancybox-animated")||(e=e.originalEvent||e,o-n<250||(n=o,t[(-e.deltaY||-e.deltaX||e.wheelDelta||-e.detail)<0?"next":"previous"]())))})}})}(document,jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t,window,document)}):"object"==typeof exports?module.exports=function(t,n){return t||(t=window),n||(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n,t,t.document)}:e(jQuery,window,document)}(function(e,t,n,r){function o(t){var n,r,i={};e.each(t,function(e){(n=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(r=e.replace(n[0],n[2].toLowerCase()),i[r]=e,"o"===n[1]&&o(t[e]))}),t._hungarianMap=i}function i(t,n,c){var a;t._hungarianMap||o(t),e.each(n,function(o){(a=t._hungarianMap[o])===r||!c&&n[a]!==r||("o"===a.charAt(0)?(n[a]||(n[a]={}),e.extend(!0,n[a],n[o]),i(t[a],n[a],c)):n[a]=n[o])})}function c(e){var t=We.defaults.oLanguage,n=t.sDecimal;if(n&&Be(n),e){var r=e.sZeroRecords;!e.sEmptyTable&&r&&"No data available in table"===t.sEmptyTable&&Ae(e,e,"sZeroRecords","sEmptyTable"),!e.sLoadingRecords&&r&&"Loading..."===t.sLoadingRecords&&Ae(e,e,"sZeroRecords","sLoadingRecords"),e.sInfoThousands&&(e.sThousands=e.sInfoThousands),(e=e.sDecimal)&&n!==e&&Be(e)}}function a(e){if(lt(e,"ordering","bSort"),lt(e,"orderMulti","bSortMulti"),lt(e,"orderClasses","bSortClasses"),lt(e,"orderCellsTop","bSortCellsTop"),lt(e,"order","aaSorting"),lt(e,"orderFixed","aaSortingFixed"),lt(e,"paging","bPaginate"),lt(e,"pagingType","sPaginationType"),lt(e,"pageLength","iDisplayLength"),lt(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&(e.sScrollX=e.sScrollX?"100%":""),"boolean"==typeof e.scrollX&&(e.scrollX=e.scrollX?"100%":""),e=e.aoSearchCols)for(var t=0,n=e.length;t").css({position:"fixed",top:0,left:-1*e(t).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(e("
    ").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(e("
    ").css({width:"100%",height:10}))).appendTo("body"),i=o.children(),c=i.children();r.barWidth=i[0].offsetWidth-i[0].clientWidth,r.bScrollOversize=100===c[0].offsetWidth&&100!==i[0].clientWidth,r.bScrollbarLeft=1!==Math.round(c.offset().left),r.bBounding=!!o[0].getBoundingClientRect().width,o.remove()}e.extend(n.oBrowser,We.__browser),n.oScroll.iBarWidth=We.__browser.barWidth}function u(e,t,n,o,i,c){var a,s=!1;for(n!==r&&(a=n,s=!0);o!==i;)e.hasOwnProperty(o)&&(a=s?t(a,e[o],o,e):e[o],s=!0,o+=c);return a}function f(t,r){var o=We.defaults.column,i=t.aoColumns.length;o=e.extend({},We.models.oColumn,o,{nTh:r||n.createElement("th"),sTitle:o.sTitle?o.sTitle:r?r.innerHTML:"",aDataSort:o.aDataSort?o.aDataSort:[i],mData:o.mData?o.mData:i,idx:i});t.aoColumns.push(o),(o=t.aoPreSearchCols)[i]=e.extend({},We.models.oSearch,o[i]),h(t,i,e(r).data())}function h(t,n,o){n=t.aoColumns[n];var c=t.oClasses,a=e(n.nTh);if(!n.sWidthOrig){n.sWidthOrig=a.attr("width")||null;var l=(a.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);l&&(n.sWidthOrig=l[1])}o!==r&&null!==o&&(s(o),i(We.defaults.column,o),o.mDataProp!==r&&!o.mData&&(o.mData=o.mDataProp),o.sType&&(n._sManualType=o.sType),o.className&&!o.sClass&&(o.sClass=o.className),o.sClass&&a.addClass(o.sClass),e.extend(n,o),Ae(n,o,"sWidth","sWidthOrig"),o.iDataSort!==r&&(n.aDataSort=[o.iDataSort]),Ae(n,o,"aDataSort"));var u=n.mData,f=x(u),h=n.mRender?x(n.mRender):null;o=function(e){return"string"==typeof e&&-1!==e.indexOf("@")};n._bAttrSrc=e.isPlainObject(u)&&(o(u.sort)||o(u.type)||o(u.filter)),n._setter=null,n.fnGetData=function(e,t,n){var o=f(e,t,r,n);return h&&t?h(o,t,e,n):o},n.fnSetData=function(e,t,n){return H(u)(e,t,n)},"number"!=typeof u&&(t._rowReadObject=!0),t.oFeatures.bSort||(n.bSortable=!1,a.addClass(c.sSortableNone)),t=-1!==e.inArray("asc",n.asSorting),o=-1!==e.inArray("desc",n.asSorting),n.bSortable&&(t||o)?t&&!o?(n.sSortingClass=c.sSortableAsc,n.sSortingClassJUI=c.sSortJUIAscAllowed):!t&&o?(n.sSortingClass=c.sSortableDesc,n.sSortingClassJUI=c.sSortJUIDescAllowed):(n.sSortingClass=c.sSortable,n.sSortingClassJUI=c.sSortJUI):(n.sSortingClass=c.sSortableNone,n.sSortingClassJUI="")}function d(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;ve(e);for(var n=0,r=t.length;nm[a])i(d.length+m[a],h);else if("string"==typeof m[a])for(l=0,u=d.length;lt&&e[i]--;-1!=o&&n===r&&e.splice(o,1)}function k(e,t,n,o){var i,c=e.aoData[t],a=function(n,r){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=M(e,t,r,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==c.src)){var s=c.anCells;if(s)if(o!==r)a(s[o],o);else for(n=0,i=s.length;n").appendTo(a)),n=0,r=f.length;ntr").attr("role","row"),e(a).find(">tr>th, >tr>td").addClass(u.sHeaderTH),e(s).find(">tr>th, >tr>td").addClass(u.sFooterTH),null!==s)for(n=0,r=(t=t.aoFooter[0]).length;n=t.fnRecordsDisplay()?0:s,t.iInitDisplayStart=-1);s=t._iDisplayStart;var f=t.fnDisplayEnd();if(t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,fe(t,!1);else if(l){if(!t.bDestroying&&!F(t))return}else t.iDraw++;if(0!==u.length)for(a=l?t.aoData.length:f,l=l?0:s;l",{class:c?i[0]:""}).append(e("",{valign:"top",colSpan:p(t),class:t.oClasses.sRowEmpty}).html(o))[0];Ne(t,"aoHeaderCallback","header",[e(t.nTHead).children("tr")[0],S(t),s,f,u]),Ne(t,"aoFooterCallback","footer",[e(t.nTFoot).children("tr")[0],S(t),s,f,u]),(i=e(t.nTBody)).children().detach(),i.append(e(n)),Ne(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}}function I(e,t){var n=e.oFeatures,r=n.bFilter;n.bSort&&Ce(e),r?Z(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,O(e),e._drawHold=!1}function P(t){var n=t.oClasses,r=e(t.nTable),o=(r=e("
    ").insertBefore(r),t.oFeatures),i=e("
    ",{id:t.sTableId+"_wrapper",class:n.sWrapper+(t.nTFoot?"":" "+n.sNoFooter)});t.nHolding=r[0],t.nTableWrapper=i[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var c,a,s,l,u,f,h=t.sDom.split(""),d=0;d")[0],"'"==(l=h[d+1])||'"'==l){for(u="",f=2;h[d+f]!=l;)u+=h[d+f],f++;"H"==u?u=n.sJUIHeader:"F"==u&&(u=n.sJUIFooter),-1!=u.indexOf(".")?(l=u.split("."),s.id=l[0].substr(1,l[0].length-1),s.className=l[1]):"#"==u.charAt(0)?s.id=u.substr(1,u.length-1):s.className=u,d+=f}i.append(s),i=e(s)}else if(">"==a)i=i.parent();else if("l"==a&&o.bPaginate&&o.bLengthChange)c=ae(t);else if("f"==a&&o.bFilter)c=W(t);else if("r"==a&&o.bProcessing)c=ue(t);else if("t"==a)c=he(t);else if("i"==a&&o.bInfo)c=te(t);else if("p"==a&&o.bPaginate)c=se(t);else if(0!==We.ext.feature.length)for(f=0,l=(s=We.ext.feature).length;f',l=(l=i.sSearch).match(/_INPUT_/)?l.replace("_INPUT_",s):l+s,u=(r=e("
    ",{id:a.f?null:o+"_filter",class:r.sFilter}).append(e("
    ").addClass(n.sLength);return t.aanFeatures.l||(l[0].id=r+"_length"),l.children().append(t.oLanguage.sLengthMenu.replace("_MENU_",c[0].outerHTML)),e("select",l).val(t._iDisplayLength).on("change.DT",function(){ce(t,e(this).val()),O(t)}),e(t.nTable).on("length.dt.DT",function(n,r,o){t===r&&e("select",l).val(o)}),l[0]}function se(t){var n=t.sPaginationType,r=We.ext.pager[n],o="function"==typeof r,i=function(e){O(e)},c=(n=e("
    ").addClass(t.oClasses.sPaging+n)[0],t.aanFeatures);return o||r.fnInit(t,n,i),c.p||(n.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(e){if(o){var t,n=e._iDisplayStart,a=e._iDisplayLength,s=e.fnRecordsDisplay(),l=(n=(l=-1===a)?0:Math.ceil(n/a),a=l?1:Math.ceil(s/a),s=r(n,a),0);for(t=c.p.length;li&&(r=0):"first"==t?r=0:"previous"==t?0>(r=0<=o?r-o:0)&&(r=0):"next"==t?r+o",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing}).html(t.oLanguage.sProcessing).insertBefore(t.nTable)[0]}function fe(t,n){t.oFeatures.bProcessing&&e(t.aanFeatures.r).css("display",n?"block":"none"),Ne(t,null,"processing",[t,n])}function he(t){(f=e(t.nTable)).attr("role","grid");var n=t.oScroll;if(""===n.sX&&""===n.sY)return t.nTable;var r=n.sX,o=n.sY,i=t.oClasses,c=f.children("caption"),a=c.length?c[0]._captionSide:null,s=e(f[0].cloneNode(!1)),l=e(f[0].cloneNode(!1)),u=f.children("tfoot");u.length||(u=null),s=e("
    ",{class:i.sScrollWrapper}).append(e("
    ",{class:i.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:r?r?ye(r):null:"100%"}).append(e("
    ",{class:i.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(s.removeAttr("id").css("margin-left",0).append("top"===a?c:null).append(f.children("thead"))))).append(e("
    ",{class:i.sScrollBody}).css({position:"relative",overflow:"auto",width:r?ye(r):null}).append(f)),u&&s.append(e("
    ",{class:i.sScrollFoot}).css({overflow:"hidden",border:0,width:r?r?ye(r):null:"100%"}).append(e("
    ",{class:i.sScrollFootInner}).append(l.removeAttr("id").css("margin-left",0).append("bottom"===a?c:null).append(f.children("tfoot")))));var f,h=(f=s.children())[0],d=(i=f[1],u?f[2]:null);return r&&e(i).on("scroll.DT",function(){var e=this.scrollLeft;h.scrollLeft=e,u&&(d.scrollLeft=e)}),e(i).css(o&&n.bCollapse?"max-height":"height",o),t.nScrollHead=h,t.nScrollBody=i,t.nScrollFoot=d,t.aoDrawCallback.push({fn:de,sName:"scrolling"}),s[0]}function de(t){var n,o,i,c,a,s=(f=t.oScroll).sX,l=f.sXInner,u=f.sY,f=f.iBarWidth,h=e(t.nScrollHead),v=h[0].style,p=(b=h.children("div"))[0].style,g=b.children("table"),b=t.nScrollBody,y=e(b),z=b.style,C=e(t.nScrollFoot).children("div"),M=C.children("table"),w=e(t.nTHead),_=e(t.nTable),x=_[0],H=x.style,S=t.nTFoot?e(t.nTFoot):null,L=t.oBrowser,V=L.bScrollOversize,k=ot(t.aoColumns,"nTh"),A=[],T=[],E=[],D=[],N=function(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0};o=b.scrollHeight>b.clientHeight,t.scrollBarVis!==o&&t.scrollBarVis!==r?(t.scrollBarVis=o,d(t)):(t.scrollBarVis=o,_.children("thead, tfoot").remove(),S&&(i=S.clone().prependTo(_),n=S.find("tr"),i=i.find("tr")),c=w.clone().prependTo(_),w=w.find("tr"),o=c.find("tr"),c.find("th, td").removeAttr("tabindex"),s||(z.width="100%",h[0].style.width="100%"),e.each(B(t,c),function(e,n){a=m(t,e),n.style.width=t.aoColumns[a].sWidth}),S&&me(function(e){e.style.width=""},i),h=_.outerWidth(),""===s?(H.width="100%",V&&(_.find("tbody").height()>b.offsetHeight||"scroll"==y.css("overflow-y"))&&(H.width=ye(_.outerWidth()-f)),h=_.outerWidth()):""!==l&&(H.width=ye(l),h=_.outerWidth()),me(N,o),me(function(t){E.push(t.innerHTML),A.push(ye(e(t).css("width")))},o),me(function(t,n){-1!==e.inArray(t,k)&&(t.style.width=A[n])},w),e(o).height(0),S&&(me(N,i),me(function(t){D.push(t.innerHTML),T.push(ye(e(t).css("width")))},i),me(function(e,t){e.style.width=T[t]},n),e(i).height(0)),me(function(e,t){e.innerHTML='
    '+E[t]+"
    ",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=A[t]},o),S&&me(function(e,t){e.innerHTML='
    '+D[t]+"
    ",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=T[t]},i),_.outerWidth()b.offsetHeight||"scroll"==y.css("overflow-y")?h+f:h,V&&(b.scrollHeight>b.offsetHeight||"scroll"==y.css("overflow-y"))&&(H.width=ye(n-f)),(""===s||""!==l)&&ke(t,1,"Possible column misalignment",6)):n="100%",z.width=ye(n),v.width=ye(n),S&&(t.nScrollFoot.style.width=ye(n)),!u&&V&&(z.height=ye(x.offsetHeight+f)),s=_.outerWidth(),g[0].style.width=ye(s),p.width=ye(s),l=_.height()>b.clientHeight||"scroll"==y.css("overflow-y"),p[u="padding"+(L.bScrollbarLeft?"Left":"Right")]=l?f+"px":"0px",S&&(M[0].style.width=ye(s),C[0].style.width=ye(s),C[0].style[u]=l?f+"px":"0px"),_.children("colgroup").insertBefore(_.children("thead")),y.scroll(),!t.bSorted&&!t.bFiltered||t._drawHold||(b.scrollTop=0))}function me(e,t,n){for(var r,o,i=0,c=0,a=t.length;c").appendTo(u.find("tbody"));for(u.find("thead, tfoot").remove(),u.append(e(n.nTHead).clone()).append(e(n.nTFoot).clone()),u.find("tfoot th, tfoot td").css("width",""),h=B(n,u.find("thead")[0]),r=0;r").css({width:o.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(r=0;r").css(s||a?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(u).appendTo(b),s&&l?u.width(l):s?(u.css("width","auto"),u.removeAttr("width"),u.width()").css("width",ye(t)).appendTo(r||n.body),i=o[0].offsetWidth;return o.remove(),i}function ge(t,n){var r=be(t,n);if(0>r)return null;var o=t.aoData[r];return o.nTr?o.anCells[n]:e("").html(M(t,r,n,"display"))[0]}function be(e,t){for(var n,r=-1,o=-1,i=0,c=e.aoData.length;ir&&(r=n.length,o=i);return o}function ye(e){return null===e?"0px":"number"==typeof e?0>e?"0px":e+"px":e.match(/\d$/)?e+"px":e}function ze(t){var n,o,i,c,a,s,l=[],u=t.aoColumns;n=t.aaSortingFixed,o=e.isPlainObject(n);var f=[];for(i=function(t){t.length&&!e.isArray(t[0])?f.push(t):e.merge(f,t)},e.isArray(n)&&i(n),o&&n.pre&&i(n.pre),i(t.aaSorting),o&&n.post&&i(n.post),t=0;tr?1:0))return"asc"===s.dir?n:-n;return(n=i[e])<(r=i[t])?-1:n>r?1:0}):l.sort(function(e,t){var n,r,s,l,u=o.length,f=a[e]._aSortData,h=a[t]._aSortData;for(s=0;sr?1:0})}e.bSorted=!0}function Me(e){for(var t,n,r=e.aoColumns,o=ze(e),i=(e=e.oLanguage.oAria,0),c=r.length;i/g,"");var s=n.nTh;s.removeAttribute("aria-sort"),n.bSortable&&(0a?a+1:3));for(a=0,n=c.length;aa?a+1:3))}t.aLastSort=c}function He(e,t){var n,r=e.aoColumns[t],o=We.ext.order[r.sSortDataType];o&&(n=o.call(e.oInstance,e,t,v(e,t)));for(var i,c=We.ext.type.order[r.sType+"-pre"],a=0,s=e.aoData.length;a=a.length?[0,n[1]]:n)})),n.search!==r&&e.extend(t.oPreviousSearch,ee(n.search)),n.columns)for(i=0,c=n.columns.length;i=n&&(t=n-r),t-=t%r,(-1===r||0>t)&&(t=0),e._iDisplayStart=t}function Ie(t,n){var r=t.renderer,o=We.ext.renderer[n];return e.isPlainObject(r)&&r[n]?o[r[n]]||o._:"string"==typeof r&&o[r]||o._}function Pe(e){return e.oFeatures.bServerSide?"ssp":e.ajax||e.sAjaxSource?"ajax":"dom"}function Re(e,t){var n=[],r=(n=Lt.numbers_length,Math.floor(n/2));return t<=n?n=ct(0,t):e<=r?((n=ct(0,n-2)).push("ellipsis"),n.push(t-1)):(e>=t-1-r?n=ct(t-(n-2),t):((n=ct(e-r+2,e+r-1)).push("ellipsis"),n.push(t-1)),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function Be(t){e.each({num:function(e){return Vt(e,t)},"num-fmt":function(e){return Vt(e,t,Ke)},"html-num":function(e){return Vt(e,t,Xe)},"html-num-fmt":function(e){return Vt(e,t,Xe,Ke)}},function(e,n){Fe.type.order[e+t+"-pre"]=n,e.match(/^html\-/)&&(Fe.type.search[e+t]=Fe.type.search.html)})}function je(e){return function(){var t=[Ve(this[We.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return We.ext.internal[e].apply(this,t)}}var Fe,$e,qe,Ue,We=function(t){this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new $e(e?Ve(this[Fe.iApiIndex]):this)},this.fnAddData=function(t,n){var o=this.api(!0),i=e.isArray(t)&&(e.isArray(t[0])||e.isPlainObject(t[0]))?o.rows.add(t):o.row.add(t);return(n===r||n)&&o.draw(),i.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],o=n.oScroll;e===r||e?t.draw(!1):(""!==o.sX||""!==o.sY)&&de(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();(e===r||e)&&t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var o=this.api(!0),i=(e=o.rows(e)).settings()[0],c=i.aoData[e[0][0]];return e.remove(),t&&t.call(this,i,c),(n===r||n)&&o.draw(),c},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,o,i,c){i=this.api(!0),null===t||t===r?i.search(e,n,o,c):i.column(t).search(e,n,o,c),i.draw()},this.fnGetData=function(e,t){var n=this.api(!0);if(e!==r){var o=e.nodeName?e.nodeName.toLowerCase():"";return t!==r||"td"==o||"th"==o?n.cell(e,t).data():n.row(e).data()||null}return n.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return e!==r?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();return"TR"==n?t.row(e).index():"TD"==n||"TH"==n?[(e=t.cell(e).index()).row,e.columnVisible,e.column]:null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){var n=this.api(!0).page(e);(t===r||t)&&n.draw(!1)},this.fnSetColumnVis=function(e,t,n){e=this.api(!0).column(e).visible(t),(n===r||n)&&e.columns.adjust().draw()},this.fnSettings=function(){return Ve(this[Fe.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,o,i){var c=this.api(!0);return n===r||null===n?c.row(t).data(e):c.cell(t,n).data(e),(i===r||i)&&c.columns.adjust(),(o===r||o)&&c.draw(),0},this.fnVersionCheck=Fe.fnVersionCheck;var n=this,o=t===r,u=this.length;for(var d in o&&(t={}),this.oApi=this.internal=Fe.internal,We.ext.internal)d&&(this[d]=je(d));return this.each(function(){var d,m={},v=1").appendTo(M)),S.nTHead=n[0],0===(n=M.children("tbody")).length&&(n=e("").appendTo(M)),S.nTBody=n[0],0===(n=M.children("tfoot")).length&&t.length>0&&(""!==S.oScroll.sX||""!==S.oScroll.sY)&&(n=e("").appendTo(M)),0===n.length||0===n.children().length?M.addClass(L.sNoFooter):n.length>0&&(S.nTFoot=n[0],R(S.aoFooter,S.nTFoot)),v.aaData)for(p=0;p/g,Ge=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Qe=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Ke=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Je=function(e){return!e||!0===e||"-"===e},et=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},tt=function(e,t){return Ze[t]||(Ze[t]=RegExp(ht(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(Ze[t],"."):e},nt=function(e,t,n){var r="string"==typeof e;return!!Je(e)||(t&&r&&(e=tt(e,t)),n&&r&&(e=e.replace(Ke,"")),!isNaN(parseFloat(e))&&isFinite(e))},rt=function(e,t,n){return!!Je(e)||((Je(e)||"string"==typeof e)&&!!nt(e.replace(Xe,""),t,n)||null)},ot=function(e,t,n){var o=[],i=0,c=e.length;if(n!==r)for(;ie.length))for(var n=(t=e.slice().sort())[0],r=1,o=t.length;r")[0],mt=dt.textContent!==r,vt=/<.*?>/g,pt=We.util.throttle,gt=[],bt=Array.prototype;$e=function(t,n){if(!(this instanceof $e))return new $e(t,n);var r=[],o=function(t){(t=function(t){var n,r,o=We.settings,i=e.map(o,function(e){return e.nTable});return t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(n=e.inArray(t,i))?[o[n]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?r=e(t):t instanceof e&&(r=t),r?r.map(function(){return-1!==(n=e.inArray(this,i))?o[n]:null}).toArray():void 0):[]}(t))&&(r=r.concat(t))};if(e.isArray(t))for(var i=0,c=t.length;ie?new $e(t[e],this[e]):null},filter:function(e){var t=[];if(bt.filter)t=bt.filter.call(this,e,this);else for(var n=0,r=this.length;n").addClass(n),e("td",r).addClass(n).html(t)[0].colSpan=p(i),c.push(r[0]))};a(t,n),o._details&&o._details.detach(),o._details=e(c),o._detailsShow&&o._details.insertAfter(o.nTr)}return this}),qe(["row().child.show()","row().child().show()"],function(){return xt(this,!0),this}),qe(["row().child.hide()","row().child().hide()"],function(){return xt(this,!1),this}),qe(["row().child.remove()","row().child().remove()"],function(){return _t(this),this}),qe("row().child.isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1});var Ht=/^([^:]+):(name|visIdx|visible)$/,St=function(e,t,n,r,o){n=[],r=0;for(var i=o.length;r=0?n:c.length+n];if("function"==typeof t){var o=wt(r,i);return e.map(c,function(e,n){return t(n,St(r,n,0,0,o),s[n])?n:null})}var l="string"==typeof t?t.match(Ht):"";if(l)switch(l[2]){case"visIdx":case"visible":if((n=parseInt(l[1],10))<0){var u=e.map(c,function(e,t){return e.bVisible?t:null});return[u[u.length+n]]}return[m(r,n)];case"name":return e.map(a,function(e,t){return e===l[1]?t:null});default:return[]}return t.nodeName&&t._DT_CellIndex?[t._DT_CellIndex.column]:(n=e(s).filter(t).map(function(){return e.inArray(this,s)}).toArray()).length||!t.nodeName?n:(n=e(t).closest("*[data-dt-column]")).length?[n.data("dt-column")]:[]},r,i)},1);return o.selector.cols=t,o.selector.opts=n,o}),Ue("columns().header()","column().header()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].nTh},1)}),Ue("columns().footer()","column().footer()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].nTf},1)}),Ue("columns().data()","column().data()",function(){return this.iterator("column-rows",St,1)}),Ue("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].mData},1)}),Ue("columns().cache()","column().cache()",function(e){return this.iterator("column-rows",function(t,n,r,o,i){return it(t.aoData,i,"search"===e?"_aFilterData":"_aSortData",n)},1)}),Ue("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,t,n,r,o){return it(e.aoData,o,"anCells",t)},1)}),Ue("columns().visible()","column().visible()",function(t,n){var o=this.iterator("column",function(n,o){if(t===r)return n.aoColumns[o].bVisible;var i,c,a,s=n.aoColumns,l=s[o],u=n.aoData;if(t!==r&&l.bVisible!==t){if(t){var f=e.inArray(!0,ot(s,"bVisible"),o+1);for(i=0,c=u.length;in;return!0},We.isDataTable=We.fnIsDataTable=function(t){var n=e(t).get(0),r=!1;return t instanceof We.Api||(e.each(We.settings,function(t,o){var i=o.nScrollHead?e("table",o.nScrollHead)[0]:null,c=o.nScrollFoot?e("table",o.nScrollFoot)[0]:null;o.nTable!==n&&i!==n&&c!==n||(r=!0)}),r)},We.tables=We.fnTables=function(t){var n=!1;e.isPlainObject(t)&&(n=t.api,t=t.visible);var r=e.map(We.settings,function(n){if(!t||t&&e(n.nTable).is(":visible"))return n.nTable});return n?new $e(r):r},We.camelToHungarian=i,qe("$()",function(t,n){var r=this.rows(n).nodes();r=e(r);return e([].concat(r.filter(t).toArray(),r.find(t).toArray()))}),e.each(["on","one","off"],function(t,n){qe(n+"()",function(){var t=Array.prototype.slice.call(arguments);t[0]=e.map(t[0].split(/\s/),function(e){return e.match(/\.dt\b/)?e:e+".dt"}).join(" ");var r=e(this.tables().nodes());return r[n].apply(r,t),this})}),qe("clear()",function(){return this.iterator("table",function(e){L(e)})}),qe("settings()",function(){return new $e(this.context,this.context)}),qe("init()",function(){var e=this.context;return e.length?e[0].oInit:null}),qe("data()",function(){return this.iterator("table",function(e){return ot(e.aoData,"_aData")}).flatten()}),qe("destroy()",function(n){return n=n||!1,this.iterator("table",function(r){var o,i=r.nTableWrapper.parentNode,c=r.oClasses,a=r.nTable,s=r.nTBody,l=r.nTHead,u=r.nTFoot,f=e(a),h=(s=e(s),e(r.nTableWrapper)),d=e.map(r.aoData,function(e){return e.nTr});r.bDestroying=!0,Ne(r,"aoDestroyCallback","destroy",[r]),n||new $e(r).columns().visible(!0),h.off(".DT").find(":not(tbody *)").off(".DT"),e(t).off(".DT-"+r.sInstance),a!=l.parentNode&&(f.children("thead").detach(),f.append(l)),u&&a!=u.parentNode&&(f.children("tfoot").detach(),f.append(u)),r.aaSorting=[],r.aaSortingFixed=[],xe(r),e(d).removeClass(r.asStripeClasses.join(" ")),e("th, td",l).removeClass(c.sSortable+" "+c.sSortableAsc+" "+c.sSortableDesc+" "+c.sSortableNone),s.children().detach(),s.append(d),f[l=n?"remove":"detach"](),h[l](),!n&&i&&(i.insertBefore(a,r.nTableReinsertBefore),f.css("width",r.sDestroyWidth).removeClass(c.sTable),(o=r.asDestroyStripes.length)&&s.children().each(function(t){e(this).addClass(r.asDestroyStripes[t%o])})),-1!==(i=e.inArray(r,We.settings))&&We.settings.splice(i,1)})}),e.each(["column","row","cell"],function(e,t){qe(t+"s().every()",function(e){var n=this.selector.opts,o=this;return this.iterator(t,function(i,c,a,s,l){e.call(o[t](c,"cell"===t?a:n,"cell"===t?n:r),c,a,s,l)})})}),qe("i18n()",function(t,n,o){var i=this.context[0];return(t=x(t)(i.oLanguage))===r&&(t=n),o!==r&&e.isPlainObject(t)&&(t=t[o]!==r?t[o]:t._),t.replace("%d",o)}),We.version="1.10.18",We.settings=[],We.models={},We.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},We.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},We.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},We.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(e){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(e){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:e.extend({},We.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},o(We.defaults),We.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},o(We.defaults.column),We.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:r,oAjaxData:r,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Pe(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Pe(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,r=this.aiDisplay.length,o=this.oFeatures,i=o.bPaginate;return o.bServerSide?!1===i||-1===e?t+r:Math.min(t+e,this._iRecordsDisplay):!i||n>r||-1===e?r:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},We.ext=Fe={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:We.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:We.version},e.extend(Fe,{afnFiltering:Fe.search,aTypes:Fe.type.detect,ofnSearch:Fe.type.search,oSort:Fe.type.order,afnSortData:Fe.order,aoFeatures:Fe.feature,oApi:Fe.internal,oStdClasses:Fe.classes,oPagination:Fe.pager}),e.extend(We.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Lt=We.ext.pager;e.extend(Lt,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(e,t){return[Re(e,t)]},simple_numbers:function(e,t){return["previous",Re(e,t),"next"]},full_numbers:function(e,t){return["first","previous",Re(e,t),"next","last"]},first_last_numbers:function(e,t){return["first",Re(e,t),"last"]},_numbers:Re,numbers_length:7}),e.extend(!0,We.ext.renderer,{pageButton:{_:function(t,o,i,c,a,s){var l,u,f,h=t.oClasses,d=t.oLanguage.oPaginate,m=t.oLanguage.oAria.paginate||{},v=0,p=function(n,r){var o,c,f,g,b=function(e){le(t,e.data.action,!0)};for(o=0,c=r.length;o").appendTo(n),p(f,g);else{switch(l=null,u="",g){case"ellipsis":n.append('');break;case"first":l=d.sFirst,u=g+(a>0?"":" "+h.sPageButtonDisabled);break;case"previous":l=d.sPrevious,u=g+(a>0?"":" "+h.sPageButtonDisabled);break;case"next":l=d.sNext,u=g+(a",{class:h.sPageButton+" "+u,"aria-controls":t.sTableId,"aria-label":m[g],"data-dt-idx":v,tabindex:t.iTabIndex,id:0===i&&"string"==typeof g?t.sTableId+"_"+g:null}).html(l).appendTo(n),{action:g},b),v++)}};try{f=e(o).find(n.activeElement).data("dt-idx")}catch(e){}p(e(o).empty(),c),f!==r&&e(o).find("[data-dt-idx="+f+"]").focus()}}}),e.extend(We.ext.type.detect,[function(e,t){var n=t.oLanguage.sDecimal;return nt(e,n)?"num"+n:null},function(e){if(e&&!(e instanceof Date)&&!Ge.test(e))return null;var t=Date.parse(e);return null!==t&&!isNaN(t)||Je(e)?"date":null},function(e,t){var n=t.oLanguage.sDecimal;return nt(e,n,!0)?"num-fmt"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return rt(e,n)?"html-num"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return rt(e,n,!0)?"html-num-fmt"+n:null},function(e){return Je(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),e.extend(We.ext.type.search,{html:function(e){return Je(e)?e:"string"==typeof e?e.replace(Ye," ").replace(Xe,""):""},string:function(e){return Je(e)?e:"string"==typeof e?e.replace(Ye," "):e}});var Vt=function(e,t,n,r){return 0===e||e&&"-"!==e?(t&&(e=tt(e,t)),e.replace&&(n&&(e=e.replace(n,"")),r&&(e=e.replace(r,""))),1*e):-1/0};e.extend(Fe.type.order,{"date-pre":function(e){return e=Date.parse(e),isNaN(e)?-1/0:e},"html-pre":function(e){return Je(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return Je(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return et?1:0},"string-desc":function(e,t){return et?-1:0}}),Be(""),e.extend(!0,We.ext.renderer,{header:{_:function(t,n,r,o){e(t.nTable).on("order.dt.DT",function(e,i,c,a){t===i&&(e=r.idx,n.removeClass(r.sSortingClass+" "+o.sSortAsc+" "+o.sSortDesc).addClass("asc"==a[e]?o.sSortAsc:"desc"==a[e]?o.sSortDesc:r.sSortingClass))})},jqueryui:function(t,n,r,o){e("
    ").addClass(o.sSortJUIWrapper).append(n.contents()).append(e("").addClass(o.sSortIcon+" "+r.sSortingClassJUI)).appendTo(n),e(t.nTable).on("order.dt.DT",function(e,i,c,a){t===i&&(e=r.idx,n.removeClass(o.sSortAsc+" "+o.sSortDesc).addClass("asc"==a[e]?o.sSortAsc:"desc"==a[e]?o.sSortDesc:r.sSortingClass),n.find("span."+o.sSortIcon).removeClass(o.sSortJUIAsc+" "+o.sSortJUIDesc+" "+o.sSortJUI+" "+o.sSortJUIAscAllowed+" "+o.sSortJUIDescAllowed).addClass("asc"==a[e]?o.sSortJUIAsc:"desc"==a[e]?o.sSortJUIDesc:r.sSortingClassJUI))})}}});var kt=function(e){return"string"==typeof e?e.replace(//g,">").replace(/"/g,"""):e};return We.render={number:function(e,t,n,r,o){return{display:function(i){if("number"!=typeof i&&"string"!=typeof i)return i;var c=0>i?"-":"",a=parseFloat(i);return isNaN(a)?kt(i):(a=a.toFixed(n),i=Math.abs(a),a=parseInt(i,10),i=n?t+(i-a).toFixed(n).substring(2):"",c+(r||"")+a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+i+(o||""))}}},text:function(){return{display:kt}}},e.extend(We.ext.internal,{_fnExternApiFunc:je,_fnBuildAjax:j,_fnAjaxUpdate:F,_fnAjaxParameters:$,_fnAjaxUpdateDraw:q,_fnAjaxDataSrc:U,_fnAddColumn:f,_fnColumnOptions:h,_fnAdjustColumnSizing:d,_fnVisibleToColumnIndex:m,_fnColumnIndexToVisible:v,_fnVisbleColumns:p,_fnGetColumns:g,_fnColumnTypes:b,_fnApplyColumnDefs:y,_fnHungarianMap:o,_fnCamelToHungarian:i,_fnLanguageCompat:c,_fnBrowserDetect:l,_fnAddData:z,_fnAddTr:C,_fnNodeToDataIndex:function(e,t){return t._DT_RowIndex!==r?t._DT_RowIndex:null},_fnNodeToColumnIndex:function(t,n,r){return e.inArray(r,t.aoData[n].anCells)},_fnGetCellData:M,_fnSetCellData:w,_fnSplitObjNotation:_,_fnGetObjectDataFn:x,_fnSetObjectDataFn:H,_fnGetDataMaster:S,_fnClearTable:L,_fnDeleteIndex:V,_fnInvalidate:k,_fnGetRowElements:A,_fnCreateTr:T,_fnBuildHead:D,_fnDrawHead:N,_fnDraw:O,_fnReDraw:I,_fnAddOptionsHtml:P,_fnDetectHeader:R,_fnGetUniqueThs:B,_fnFeatureHtmlFilter:W,_fnFilterComplete:Z,_fnFilterCustom:Y,_fnFilterColumn:X,_fnFilter:G,_fnFilterCreateSearch:Q,_fnEscapeRegex:ht,_fnFilterData:K,_fnFeatureHtmlInfo:te,_fnUpdateInfo:ne,_fnInfoMacros:re,_fnInitialise:oe,_fnInitComplete:ie,_fnLengthChange:ce,_fnFeatureHtmlLength:ae,_fnFeatureHtmlPaginate:se,_fnPageChange:le,_fnFeatureHtmlProcessing:ue,_fnProcessingDisplay:fe,_fnFeatureHtmlTable:he,_fnScrollDraw:de,_fnApplyToChildren:me,_fnCalculateColumnWidths:ve,_fnThrottle:pt,_fnConvertToWidth:pe,_fnGetWidestNode:ge,_fnGetMaxLenString:be,_fnStringToCss:ye,_fnSortFlatten:ze,_fnSort:Ce,_fnSortAria:Me,_fnSortListener:we,_fnSortAttachListener:_e,_fnSortingClasses:xe,_fnSortData:He,_fnSaveState:Se,_fnLoadState:Le,_fnSettingsFromNode:Ve,_fnLog:ke,_fnMap:Ae,_fnBindAction:Ee,_fnCallbackReg:De,_fnCallbackFire:Ne,_fnLengthOverflow:Oe,_fnRenderer:Ie,_fnDataSource:Pe,_fnRowAttributes:E,_fnExtend:Te,_fnCalculateEnd:function(){}}),e.fn.dataTable=We,We.$=e,e.fn.dataTableSettings=We.settings,e.fn.dataTableExt=We.ext,e.fn.DataTable=function(t){return e(this).dataTable(t).api()},e.each(We,function(t,n){e.fn.DataTable[t]=n}),e.fn.dataTable}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e,t){function n(){return new Date(Date.UTC.apply(Date,arguments))}function r(){var e=new Date;return n(e.getFullYear(),e.getMonth(),e.getDate())}function o(e,t){return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e.getUTCDate()===t.getUTCDate()}function i(n,r){return function(){return r!==t&&e.fn.datepicker.deprecated(r),this[n].apply(this,arguments)}}function c(t){var n={};if(m[t]||(t=t.split("-")[0],m[t])){var r=m[t];return e.each(d,function(e,t){t in r&&(n[t]=r[t])}),n}}var a=function(){var t={get:function(e){return this.slice(e)[0]},contains:function(e){for(var t=e&&e.valueOf(),n=0,r=this.length;n]/g)||[]).length<=0||e(n).length>0)}catch(e){return!1}},_process_options:function(t){this._o=e.extend({},this._o,t);var o=this.o=e.extend({},this._o),i=o.language;m[i]||(i=i.split("-")[0],m[i]||(i=h.language)),o.language=i,o.startView=this._resolveViewName(o.startView),o.minViewMode=this._resolveViewName(o.minViewMode),o.maxViewMode=this._resolveViewName(o.maxViewMode),o.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,o.startView)),!0!==o.multidate&&(o.multidate=Number(o.multidate)||!1,!1!==o.multidate&&(o.multidate=Math.max(0,o.multidate))),o.multidateSeparator=String(o.multidateSeparator),o.weekStart%=7,o.weekEnd=(o.weekStart+6)%7;var c=v.parseFormat(o.format);o.startDate!==-1/0&&(o.startDate?o.startDate instanceof Date?o.startDate=this._local_to_utc(this._zero_time(o.startDate)):o.startDate=v.parseDate(o.startDate,c,o.language,o.assumeNearbyYear):o.startDate=-1/0),o.endDate!==1/0&&(o.endDate?o.endDate instanceof Date?o.endDate=this._local_to_utc(this._zero_time(o.endDate)):o.endDate=v.parseDate(o.endDate,c,o.language,o.assumeNearbyYear):o.endDate=1/0),o.daysOfWeekDisabled=this._resolveDaysOfWeek(o.daysOfWeekDisabled||[]),o.daysOfWeekHighlighted=this._resolveDaysOfWeek(o.daysOfWeekHighlighted||[]),o.datesDisabled=o.datesDisabled||[],e.isArray(o.datesDisabled)||(o.datesDisabled=o.datesDisabled.split(",")),o.datesDisabled=e.map(o.datesDisabled,function(e){return v.parseDate(e,c,o.language,o.assumeNearbyYear)});var a=String(o.orientation).toLowerCase().split(/\s+/g),s=o.orientation.toLowerCase();if(a=e.grep(a,function(e){return/^auto|left|right|top|bottom$/.test(e)}),o.orientation={x:"auto",y:"auto"},s&&"auto"!==s)if(1===a.length)switch(a[0]){case"top":case"bottom":o.orientation.y=a[0];break;case"left":case"right":o.orientation.x=a[0]}else s=e.grep(a,function(e){return/^left|right$/.test(e)}),o.orientation.x=s[0]||"auto",s=e.grep(a,function(e){return/^top|bottom$/.test(e)}),o.orientation.y=s[0]||"auto";if(o.defaultViewDate instanceof Date||"string"==typeof o.defaultViewDate)o.defaultViewDate=v.parseDate(o.defaultViewDate,c,o.language,o.assumeNearbyYear);else if(o.defaultViewDate){var l=o.defaultViewDate.year||(new Date).getFullYear(),u=o.defaultViewDate.month||0,f=o.defaultViewDate.day||1;o.defaultViewDate=n(l,u,f)}else o.defaultViewDate=r()},_applyEvents:function(e){for(var n,r,o,i=0;io?(this.picker.addClass("datepicker-orient-right"),h+=f-t):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var m=this.o.orientation.y;if("auto"===m&&(m=-i+d-n<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+m),"top"===m?d-=n+parseInt(this.picker.css("padding-top")):d+=u,this.o.rtl){var v=o-(h+f);this.picker.css({top:d,right:v,zIndex:s})}else this.picker.css({top:d,left:h,zIndex:s});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),n=[],r=!1;return arguments.length?(e.each(arguments,e.proxy(function(e,t){t instanceof Date&&(t=this._local_to_utc(t)),n.push(t)},this)),r=!0):(n=(n=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?n.split(this.o.multidateSeparator):[n],delete this.element.data().date),n=e.map(n,e.proxy(function(e){return v.parseDate(e,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),n=e.grep(n,e.proxy(function(e){return!this.dateWithinRange(e)||!e},this),!0),this.dates.replace(n),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),r?(this.setValue(),this.element.change()):this.dates.length&&String(t)!==String(this.dates)&&r&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var t=this.o.weekStart,n="";for(this.o.calendarWeeks&&(n+=' ');t";n+="",this.picker.find(".datepicker-days thead").append(n)}},fillMonths:function(){for(var e=this._utc_to_local(this.viewDate),t="",n=0;n<12;n++)t+=''+m[this.o.language].monthsShort[n]+"";this.picker.find(".datepicker-months td").html(t)},setRange:function(t){t&&t.length?this.range=e.map(t,function(e){return e.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var n=[],i=this.viewDate.getUTCFullYear(),c=this.viewDate.getUTCMonth(),a=r();return t.getUTCFullYear()i||t.getUTCFullYear()===i&&t.getUTCMonth()>c)&&n.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&n.push("focused"),this.o.todayHighlight&&o(t,a)&&n.push("today"),-1!==this.dates.contains(t)&&n.push("active"),this.dateWithinRange(t)||n.push("disabled"),this.dateIsDisabled(t)&&n.push("disabled","disabled-date"),-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&n.push("highlighted"),this.range&&(t>this.range[0]&&ta)&&l.push("disabled"),y===g&&l.push("focused"),s!==e.noop&&((f=s(new Date(y,0,1)))===t?f={}:"boolean"==typeof f?f={enabled:f}:"string"==typeof f&&(f={classes:f}),!1===f.enabled&&l.push("disabled"),f.classes&&(l=l.concat(f.classes.split(/\s+/))),f.tooltip&&(u=f.tooltip)),h+='"+y+"";m.find(".datepicker-switch").text(v+"-"+p),m.find("td").html(h)},fill:function(){var o,i,c=new Date(this.viewDate),a=c.getUTCFullYear(),s=c.getUTCMonth(),l=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,u=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,f=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,d=m[this.o.language].today||m.en.today||"",p=m[this.o.language].clear||m.en.clear||"",g=m[this.o.language].titleFormat||m.en.titleFormat,b=r(),y=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&b>=this.o.startDate&&b<=this.o.endDate&&!this.weekOfDateIsDisabled(b);if(!isNaN(a)&&!isNaN(s)){this.picker.find(".datepicker-days .datepicker-switch").text(v.formatDate(c,g,this.o.language)),this.picker.find("tfoot .today").text(d).css("display",y?"table-cell":"none"),this.picker.find("tfoot .clear").text(p).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var z=n(a,s,0),C=z.getUTCDate();z.setUTCDate(C-(z.getUTCDay()-this.o.weekStart+7)%7);var M=new Date(z);z.getUTCFullYear()<100&&M.setUTCFullYear(z.getUTCFullYear()),M.setUTCDate(M.getUTCDate()+42),M=M.valueOf();for(var w,_,x=[];z.valueOf()"),this.o.calendarWeeks)){var H=new Date(+z+(this.o.weekStart-w-7)%7*864e5),S=new Date(Number(H)+(11-H.getUTCDay())%7*864e5),L=new Date(Number(L=n(S.getUTCFullYear(),0,1))+(11-L.getUTCDay())%7*864e5),V=(S-L)/864e5/7+1;x.push(''+V+"")}(_=this.getClassNames(z)).push("day");var k=z.getUTCDate();this.o.beforeShowDay!==e.noop&&((i=this.o.beforeShowDay(this._utc_to_local(z)))===t?i={}:"boolean"==typeof i?i={enabled:i}:"string"==typeof i&&(i={classes:i}),!1===i.enabled&&_.push("disabled"),i.classes&&(_=_.concat(i.classes.split(/\s+/))),i.tooltip&&(o=i.tooltip),i.content&&(k=i.content)),_=e.isFunction(e.uniqueSort)?e.uniqueSort(_):e.unique(_),x.push(''+k+""),o=null,w===this.o.weekEnd&&x.push(""),z.setUTCDate(z.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(x.join(""));var A=m[this.o.language].monthsTitle||m.en.monthsTitle||"Months",T=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?A:a).end().find("tbody span").removeClass("active");if(e.each(this.dates,function(e,t){t.getUTCFullYear()===a&&T.eq(t.getUTCMonth()).addClass("active")}),(af)&&T.addClass("disabled"),a===l&&T.slice(0,u).addClass("disabled"),a===f&&T.slice(h+1).addClass("disabled"),this.o.beforeShowMonth!==e.noop){var E=this;e.each(T,function(n,r){var o=new Date(a,n,1),i=E.o.beforeShowMonth(o);i===t?i={}:"boolean"==typeof i?i={enabled:i}:"string"==typeof i&&(i={classes:i}),!1!==i.enabled||e(r).hasClass("disabled")||e(r).addClass("disabled"),i.classes&&e(r).addClass(i.classes),i.tooltip&&e(r).prop("title",i.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,a,l,f,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,a,l,f,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,a,l,f,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var e,t,n=new Date(this.viewDate),r=n.getUTCFullYear(),o=n.getUTCMonth(),i=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,c=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,s=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,l=1;switch(this.viewMode){case 4:l*=10;case 3:l*=10;case 2:l*=10;case 1:e=Math.floor(r/l)*l<=i,t=Math.floor(r/l)*l+l>a;break;case 0:e=r<=i&&o<=c,t=r>=a&&o>=s}this.picker.find(".prev").toggleClass("disabled",e),this.picker.find(".next").toggleClass("disabled",t)}},click:function(t){var o,i,c;t.preventDefault(),t.stopPropagation(),(o=e(t.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),o.hasClass("today")&&!o.hasClass("day")&&(this.setViewMode(0),this._setDate(r(),"linked"===this.o.todayBtn?null:"view")),o.hasClass("clear")&&this.clearDates(),o.hasClass("disabled")||(o.hasClass("month")||o.hasClass("year")||o.hasClass("decade")||o.hasClass("century"))&&(this.viewDate.setUTCDate(1),1,1===this.viewMode?(c=o.parent().find("span").index(o),i=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(c)):(c=0,i=Number(o.text()),this.viewDate.setUTCFullYear(i)),this._trigger(v.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(n(i,c,1)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(t){var n=e(t.currentTarget).data("date"),r=new Date(n);this.o.updateViewDate&&(r.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),r.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(r)},navArrowsClick:function(t){var n=e(t.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(n*=12*v.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,n),this._trigger(v.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(e){var t=this.dates.contains(e);if(e||this.dates.clear(),-1!==t?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):!1===this.o.multidate?(this.dates.clear(),this.dates.push(e)):this.dates.push(e),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(e,t){t&&"date"!==t||this._toggle_multidate(e&&new Date(e)),(!t&&this.o.updateViewDate||"view"===t)&&(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),t&&"view"===t||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(e,t){var n=new Date(e);return n.setUTCDate(e.getUTCDate()+t),n},moveWeek:function(e,t){return this.moveDay(e,7*t)},moveMonth:function(e,t){if(!function(e){return e&&!isNaN(e.getTime())}(e))return this.o.defaultViewDate;if(!t)return e;var n,r,o=new Date(e.valueOf()),i=o.getUTCDate(),c=o.getUTCMonth(),a=Math.abs(t);if(t=t>0?1:-1,1===a)r=-1===t?function(){return o.getUTCMonth()===c}:function(){return o.getUTCMonth()!==n},n=c+t,o.setUTCMonth(n),n=(n+12)%12;else{for(var s=0;s0},dateWithinRange:function(e){return e>=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(this.picker.is(":visible")){var t,n,r=!1,o=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),e.preventDefault(),e.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===e.keyCode||38===e.keyCode?-1:1,0===this.viewMode?e.ctrlKey?(n=this.moveAvailableDate(o,t,"moveYear"))&&this._trigger("changeYear",this.viewDate):e.shiftKey?(n=this.moveAvailableDate(o,t,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===e.keyCode||39===e.keyCode?n=this.moveAvailableDate(o,t,"moveDay"):this.weekOfDateIsDisabled(o)||(n=this.moveAvailableDate(o,t,"moveWeek")):1===this.viewMode?(38!==e.keyCode&&40!==e.keyCode||(t*=4),n=this.moveAvailableDate(o,t,"moveMonth")):2===this.viewMode&&(38!==e.keyCode&&40!==e.keyCode||(t*=4),n=this.moveAvailableDate(o,t,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),e.preventDefault());break;case 13:if(!this.o.forceParse)break;o=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(o),r=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),e.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}r&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==e.keyCode&&27!==e.keyCode||(this.show(),e.stopPropagation())},setViewMode:function(e){this.viewMode=e,this.picker.children("div").hide().filter(".datepicker-"+v.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var l=function(t,n){e.data(t,"datepicker",this),this.element=e(t),this.inputs=e.map(n.inputs,function(e){return e.jquery?e[0]:e}),delete n.inputs,this.keepEmptyValues=n.keepEmptyValues,delete n.keepEmptyValues,f.call(e(this.inputs),n).on("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,function(t){return e.data(t,"datepicker")}),this.updateDates()};l.prototype={updateDates:function(){this.dates=e.map(this.pickers,function(e){return e.getUTCDate()}),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,function(e){return e.valueOf()});e.each(this.pickers,function(e,n){n.setRange(t)})},clearDates:function(){e.each(this.pickers,function(e,t){t.clearDates()})},dateUpdated:function(n){if(!this.updating){this.updating=!0;var r=e.data(n.target,"datepicker");if(r!==t){var o=r.getUTCDate(),i=this.keepEmptyValues,c=e.inArray(n.target,this.inputs),a=c-1,s=c+1,l=this.inputs.length;if(-1!==c){if(e.each(this.pickers,function(e,t){t.getUTCDate()||t!==r&&i||t.setUTCDate(o)}),o=0&&othis.dates[s])for(;sthis.dates[s];)this.pickers[s++].setUTCDate(o);this.updateDates(),delete this.updating}}}},destroy:function(){e.map(this.pickers,function(e){e.destroy()}),e(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:i("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var u=e.fn.datepicker,f=function(n){var r,o=Array.apply(null,arguments);if(o.shift(),this.each(function(){var t=e(this),i=t.data("datepicker"),a="object"==typeof n&&n;if(!i){var u=function(t,n){function r(e,t){return t.toLowerCase()}var o=e(t).data(),i={},c=new RegExp("^"+n.toLowerCase()+"([A-Z])");for(var a in n=new RegExp("^"+n.toLowerCase()),o)n.test(a)&&(i[a.replace(c,r)]=o[a]);return i}(this,"date"),f=c(e.extend({},h,u,a).language),d=e.extend({},h,f,u,a);t.hasClass("input-daterange")||d.inputs?(e.extend(d,{inputs:d.inputs||t.find("input").toArray()}),i=new l(this,d)):i=new s(this,d),t.data("datepicker",i)}"string"==typeof n&&"function"==typeof i[n]&&(r=i[n].apply(i,o))}),r===t||r instanceof s||r instanceof l)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+n+" function)");return r};e.fn.datepicker=f;var h=e.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:e.noop,beforeShowMonth:e.noop,beforeShowYear:e.noop,beforeShowDecade:e.noop,beforeShowCentury:e.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0},d=e.fn.datepicker.locale_opts=["format","rtl","weekStart"];e.fn.datepicker.Constructor=s;var m=e.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},v={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(e){if("function"==typeof e.toValue&&"function"==typeof e.toDisplay)return e;var t=e.replace(this.validParts,"\0").split("\0"),n=e.match(this.validParts);if(!t||!t.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:t,parts:n}},parseDate:function(n,o,i,c){function a(){var e=this.slice(0,l[h].length),t=l[h].slice(0,e.length);return e.toLowerCase()===t.toLowerCase()}if(!n)return t;if(n instanceof Date)return n;if("string"==typeof o&&(o=v.parseFormat(o)),o.toValue)return o.toValue(n,o,i);var l,u,f,h,d,p={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},g={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(n in g&&(n=g[n]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(n)){for(l=n.match(/([\-+]\d+)([dmwy])/gi),n=new Date,h=0;h(new Date).getFullYear()+t&&(e-=100),e}(t,c):t)},m:function(e,t){if(isNaN(e))return e;for(t-=1;t<0;)t+=12;for(t%=12,e.setUTCMonth(t);e.getUTCMonth()!==t;)e.setUTCDate(e.getUTCDate()-1);return e},d:function(e,t){return e.setUTCDate(t)}};M.yy=M.yyyy,M.M=M.MM=M.mm=M.m,M.dd=M.d,n=r();var w=o.parts.slice();if(l.length!==w.length&&(w=e(w).filter(function(t,n){return-1!==e.inArray(n,C)}).toArray()),l.length===w.length){var _,x,H;for(h=0,_=w.length;h<_;h++){if(b=parseInt(l[h],10),u=w[h],isNaN(b))switch(u){case"MM":y=e(m[i].months).filter(a),b=e.inArray(y[0],m[i].months)+1;break;case"M":y=e(m[i].monthsShort).filter(a),b=e.inArray(y[0],m[i].monthsShort)+1}z[u]=b}for(h=0;h'+h.templates.leftArrow+''+h.templates.rightArrow+"",contTemplate:'',footTemplate:''};v.template='
    '+v.headTemplate+""+v.footTemplate+'
    '+v.headTemplate+v.contTemplate+v.footTemplate+'
    '+v.headTemplate+v.contTemplate+v.footTemplate+'
    '+v.headTemplate+v.contTemplate+v.footTemplate+'
    '+v.headTemplate+v.contTemplate+v.footTemplate+"
    ",e.fn.datepicker.DPGlobal=v,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=u,this},e.fn.datepicker.version="1.9.0",e.fn.datepicker.deprecated=function(e){var t=window.console;t&&t.warn&&t.warn("DEPRECATED: "+e)},e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var n=e(this);n.data("datepicker")||(t.preventDefault(),f.call(n,"show"))}),e(function(){f.call(e('[data-provide="datepicker-inline"]'))})}),function(e,t){if("function"==typeof define&&define.amd)define(["module","exports"],t);else if("undefined"!=typeof exports)t(module,exports);else{var n={exports:{}};t(n,n.exports),e.autosize=n.exports}}(this,function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return-1").addClass("progressbar-back-text").prependTo(r),this.$front_text=i=e("").addClass("progressbar-front-text").prependTo(n),u?(m=r.css("height"),o.css({height:m,"line-height":m}),i.css({height:m,"line-height":m}),e(window).resize(function(){m=r.css("height"),o.css({height:m,"line-height":m}),i.css({height:m,"line-height":m})})):(m=r.css("width"),i.css({width:m}),e(window).resize(function(){m=r.css("width"),i.css({width:m})}));setTimeout(function(){var e,t,d,m,p;u?n.css("height",v+"%"):n.css("width",v+"%");var g=setInterval(function(){u?(d=n.height(),m=r.height()):(d=n.width(),m=r.width()),e=Math.round(100*d/m),t=Math.round(s+d/m*(l-s)),e>=v&&(e=v,t=a,h(n),clearInterval(g)),"none"!==c.display_text&&(p=c.use_percentage?c.percent_format(e):c.amount_format(t,l,s),"fill"===c.display_text?n.text(p):"center"===c.display_text&&(o.text(p),i.text(p))),n.attr("aria-valuenow",t),f(e,n)},c.refresh_speed)},c.transition_delay)}};var n=e.fn.progressbar;e.fn.progressbar=function(n){return this.each(function(){var r=e(this),o=r.data("bs.progressbar"),i="object"==typeof n&&n;o&&i&&e.extend(o.options,i),o||r.data("bs.progressbar",o=new t(this,i)),o.transition()})},e.fn.progressbar.Constructor=t,e.fn.progressbar.noConflict=function(){return e.fn.progressbar=n,this}}(window.jQuery);var _extends=Object.assign||function(e){for(var t=1;te.addpos2&&(e.addpos2=t.offsetHeight);break;case"left":case"right":t.offsetWidth+(parseFloat(t.style.marginLeft,10)||0)+(parseFloat(t.style.marginRight,10)||0)>e.addpos2&&(e.addpos2=t.offsetWidth)}}else if(e.dir1){var m=void 0,v=void 0;switch(e.dir1){case"down":case"up":v=["left","right"],m=e.context.scrollWidth/2-t.offsetWidth/2;break;case"left":case"right":v=["top","bottom"],m=c/2-t.offsetHeight/2}t.style[v[0]]=m+"px",t.style[v[1]]="auto",e.animation||t.style[v[0]]}if(e.dir1)switch("number"==typeof e.nextpos1&&(t.style[s]=e.nextpos1+"px",e.animation||t.style[s]),e.dir1){case"down":case"up":e.nextpos1+=t.offsetHeight+(void 0===e.spacing1?25:e.spacing1);break;case"left":case"right":e.nextpos1+=t.offsetWidth+(void 0===e.spacing1?25:e.spacing1)}else{var p=a/2-t.offsetWidth/2,g=c/2-t.offsetHeight/2;t.style.left=p+"px",t.style.top=g+"px",e.animation||t.style.left}return this}},queuePosition:function(e){return o&&clearTimeout(o),e=e||10,o=setTimeout(function(){r.positionAll()},e),this},cancelRemove:function(){return this.cancelClose()},cancelClose:function(){var e=this.get(),t=e._timer,n=e._animTimer,r=e._state,o=e.animation;return t&&clearTimeout(t),n&&clearTimeout(n),"closing"===r&&this.set({_state:"open",_animating:!1,_animatingClass:"fade"===o?"ui-pnotify-in ui-pnotify-fade-in":"ui-pnotify-in"}),this},queueRemove:function(){return this.queueClose()},queueClose:function(){var e=this;return this.cancelClose(),this.set({_timer:setTimeout(function(){return e.close(!0)},isNaN(this.get().delay)?0:this.get().delay)}),this},addModuleClass:function(){for(var e=this.get()._moduleClasses,t=arguments.length,n=Array(t),r=0;r .ui-pnotify{position:fixed;z-index:100040}body > .ui-pnotify.ui-pnotify-modal{z-index:100042}.ui-pnotify{position:absolute;height:auto;z-index:1;display:none}.ui-pnotify.ui-pnotify-modal{z-index:3}.ui-pnotify.ui-pnotify-in{display:block}.ui-pnotify.ui-pnotify-initial-hidden{display:block;visibility:hidden}.ui-pnotify.ui-pnotify-move{transition:left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-slow{transition:opacity .4s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-slow.ui-pnotify.ui-pnotify-move{transition:opacity .4s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-normal{transition:opacity .25s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-normal.ui-pnotify.ui-pnotify-move{transition:opacity .25s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-fast{transition:opacity .1s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-fast.ui-pnotify.ui-pnotify-move{transition:opacity .1s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-in{opacity:1}.ui-pnotify .ui-pnotify-shadow{-webkit-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);-moz-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1)}.ui-pnotify-container{background-position:0 0;padding:.8em;height:100%;margin:0}.ui-pnotify-container:after{content:" ";visibility:hidden;display:block;height:0;clear:both}.ui-pnotify-container.ui-pnotify-sharp{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ui-pnotify-title{display:block;white-space:pre-line;margin-bottom:.4em;margin-top:0}.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-left:24px}[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-right:24px;margin-left:0}.ui-pnotify-title-bs4{font-size:1.2rem}.ui-pnotify-text{display:block;white-space:pre-line}.ui-pnotify-icon,.ui-pnotify-icon span{display:block;float:left}[dir=rtl] .ui-pnotify-icon,[dir=rtl] .ui-pnotify-icon span{float:right}.ui-pnotify-icon-bs3 > span{position:relative;top:2px}.ui-pnotify-icon-bs4 > span{position:relative;top:4px}.ui-pnotify-modal-overlay{background-color:rgba(0, 0, 0, .4);top:0;left:0;position:absolute;height:100%;width:100%;z-index:2}body > .ui-pnotify-modal-overlay{position:fixed;z-index:100041}',y(document.head,i)),this._fragment=function(e,t){for(var n,r,o,i,f,h,m,v,g,V=[],k=z(),A=[],T=z(),E=t._modulesPrependContainer,D=function(e){return e.module.key},N=0;Nz[k]?(x[V]=!0,H(S)):(_[k]=!0,m--):(l(L,a),m--)}for(;m--;)y[(L=e[m]).key]||l(L,a);for(;v;)H(b[v-1]);return b}function H(e,t){e.d(1),t[e.key]=null}function S(e){e.parentNode.removeChild(e)}function L(e,t,n,r){e.removeEventListener(t,n,r)}function V(){return document.createComment("")}function k(e,t){e.data=""+t}function A(e,t){for(;e.nextSibling&&e.nextSibling!==t;)e.parentNode.removeChild(e.nextSibling)}function T(e,t){for(var n in t)e[n]=t[n];return e}function E(e){e._lock=!0,D(e._beforecreate),D(e._oncreate),D(e._aftercreate),e._lock=!1}function D(e){for(;e&&e.length;)e.shift()()}function N(){}return T(g.prototype,{destroy:function(e){this.destroy=N,this.fire("destroy"),this.set=N,this._fragment.d(!1!==e),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(n)for(var r=0;r [ui-pnotify].ui-pnotify.ui-pnotify-mobile-able{position:fixed}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom{width:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right{height:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-shadow{border-bottom-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-shadow{border-top-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-shadow{border-right-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-shadow{border-left-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-container{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-container{width:auto !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-container{height:100% !important}}",e=t,document.head.appendChild(e)}(),this._fragment=(this._state,{c:o,m:o,p:o,d:o}),this.root._oncreate.push(function(){(function(){this.set({_doMobileStylingBound:this.doMobileStyling.bind(this)})}).call(s),s.fire("update",{changed:function(e,t){for(var n in t)e[n]=1;return e}({},s._state),current:s._state})}),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor),c(this))}function o(){}function i(e,t){for(var n in t)e[n]=t[n];return e}function c(e){e._lock=!0,s(e._beforecreate),s(e._oncreate),s(e._aftercreate),e._lock=!1}function a(){return Object.create(null)}function s(e){for(;e&&e.length;)e.shift()()}return i(r.prototype,{destroy:function(e){this.destroy=o,this.fire("destroy"),this.set=o,this._fragment.d(!1!==e),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(n)for(var r=0;rn){for(var i="top"===o.push,c=[],a=0,s=i?0:e.notices.length-1;i?s=e.length&&t(n)}}(i))})})}(e,mn.nu)},pn=function(e){return{is:function(t){return e===t},isValue:u,isError:l,getOr:r(e),getOrThunk:r(e),getOrDie:r(e),or:function(t){return pn(e)},orThunk:function(t){return pn(e)},fold:function(t,n){return n(e)},map:function(t){return pn(t(e))},mapError:function(t){return pn(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOption:function(){return O.some(e)}}},gn=function(e){return{is:l,isValue:l,isError:u,getOr:o,getOrThunk:function(e){return e()},getOrDie:function(){return(t=String(e),function(){throw new Error(t)})();var t},or:function(e){return e},orThunk:function(e){return e()},fold:function(t,n){return t(e)},map:function(t){return gn(e)},mapError:function(t){return gn(t(e))},each:t,bind:function(t){return gn(e)},exists:l,forall:u,toOption:O.none}},bn={value:pn,error:gn,fromOption:function(e,t){return e.fold(function(){return gn(t)},pn)}},yn=window.Promise?window.Promise:(an=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},sn=Cn.immediateFn||"function"==typeof e.setImmediate&&e.setImmediate||function(t){e.setTimeout(t,1)},Cn.prototype.catch=function(e){return this.then(null,e)},Cn.prototype.then=function(e,t){var n=this;return new Cn(function(r,o){Mn.call(n,new Hn(e,t,r,o))})},Cn.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&an(arguments[0])?arguments[0]:arguments);return new Cn(function(t,n){if(0===e.length)return t([]);var r=e.length;function o(i,c){try{if(c&&("object"==typeof c||"function"==typeof c)){var a=c.then;if("function"==typeof a)return void a.call(c,function(e){o(i,e)},n)}e[i]=c,0==--r&&t(e)}catch(e){n(e)}}for(var i=0;i\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,pr=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gr=/[<>&\"\']/g,br=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,yr={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function zr(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n":">","&":"&","`":"`"},nr={"<":"<",">":">","&":"&",""":'"',"'":"'"},er=zr("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);var _r={encodeRaw:Cr,encodeAllRaw:function(e){return(""+e).replace(gr,function(e){return tr[e]||e})},encodeNumeric:Mr,encodeNamed:wr,getEncodeFunc:function(e,t){var n=zr(t)||er,r=mr(e.replace(/\+/g,","));return r.named&&r.numeric?function(e,t){return e.replace(t?vr:pr,function(e){return void 0!==tr[e]?tr[e]:void 0!==n[e]?n[e]:1>10),56320+(1023&t))):yr[t]||String.fromCharCode(t):nr[e]||er[e]||function(e){var t;return(t=ot.fromTag("div").dom()).innerHTML=e,t.textContent||t.innerText||e}(e)})}},xr={},Hr={},Sr=Xn.makeMap,Lr=Xn.each,Vr=Xn.extend,kr=Xn.explode,Ar=Xn.inArray,Tr=function(e,t){return(e=Xn.trim(e))?e.split(t||" "):[]},Er=function(e){function t(e,t,n){function o(e,t){var n,r,o={};for(n=0,r=e.length;n
    ').css(i).appendTo(n)[0];return a.set(O.some({caret:h,element:o,before:t})),a.get().each(function(e){t&&Pi(e.caret).addClass("mce-visual-caret-before")}),f(),(s=o.ownerDocument.createRange()).setStart(c,0),s.setEnd(c,0),s},hide:u,getCss:function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"},reposition:function(){a.get().each(function(e){var t=as(n,e.element,e.before);Pi(e.caret).css(ne({},t))})},destroy:function(){return Nn.clearInterval(i)}}}function ls(){return Cl.isIE()||Cl.isEdge()||Cl.isFirefox()}function us(e){return Ml(e)||Kt.isTable(e)&&ls()}function fs(e){return 0=o.data.length-1)return 1===e&&(r=l(o))?Vl(r):n;if(la(o)&&c<=1)return-1===e&&(r=s(o))?kl(r):n;if(c===o.data.length)return(r=l(o))?Vl(r):n;if(0===c)return(r=s(o))?kl(r):n}return n}function Cs(e,t){return O.from(gs(e?0:-1,t)).filter(wl)}function Ms(e,t,n){var r=zs(e,t,n);return-1===e?Ia.fromRangeStart(r):Ia.fromRangeEnd(r)}function ws(e){return O.from(e.getNode()).map(ot.fromDom)}function _s(e,t){for(;t=e(t);)if(t.isVisible())return t;return t}function xs(e,t){var n=ps(e,t);return!(n||!Kt.isBr(e.getNode()))||n}(Jc=Ia=Ia||{}).fromRangeStart=function(e){return Jc(e.startContainer,e.startOffset)},Jc.fromRangeEnd=function(e){return Jc(e.endContainer,e.endOffset)},Jc.after=function(e){return Jc(e.parentNode,Ta(e)+1)},Jc.before=function(e){return Jc(e.parentNode,Ta(e))},Jc.isAbove=function(e,t){return Zc(S(t.getClientRects()),L(e.getClientRects()),jc).getOr(!1)},Jc.isBelow=function(e,t){return Zc(L(t.getClientRects()),S(e.getClientRects()),Fc).getOr(!1)},Jc.isAtStart=function(e){return!!e&&e.isAtStart()},Jc.isAtEnd=function(e){return!!e&&e.isAtEnd()},Jc.isTextPosition=function(e){return!!e&&Kt.isText(e.container())},Jc.isElementPosition=function(e){return!1===Jc.isTextPosition(e)};var Hs,Ss,Ls=Ia,Vs=Kt.isText,ks=Kt.isBogus,As=Qi.nodeIndex,Ts=function(e){var t=e.parentNode;return ks(t)?Ts(t):t},Es=function(e){return e?Wn.reduce(e.childNodes,function(e,t){return ks(t)&&"BR"!==t.nodeName?e=e.concat(Es(t)):e.push(t),e},[]):[]},Ds=Kt.isContentEditableFalse,Ns={getBookmark:function(e,t,n){return 2===t?Xa(ca.trim,n,e):3===t?function(e){var t=e.getRng();return{start:Ba(e.dom.getRoot(),Ls.fromRangeStart(t)),end:Ba(e.dom.getRoot(),Ls.fromRangeEnd(t))}}(e):t?function(e){return{rng:e.getRng()}}(e):Qa(e,!1)},getUndoBookmark:i(Xa,o,!0),getPersistentBookmark:Qa},Os="_mce_caret",Is=Kt.isElement,Ps=Kt.isText,Rs=function(e){(Is(e)&&Ac(e)&&(Tc(e)?e.removeAttribute("data-mce-caret"):ns(e)),Ps(e))&&rs(e,ca.trim(function(e){try{return e.nodeValue}catch(e){return""}}(e)))},Bs={removeAndReposition:function(e,t){return Ls.isTextPosition(t)?function(e,t){return Ps(e)&&t.container()===e?function(e,t){var n=os(e.data.substr(0,t.offset())),r=os(e.data.substr(t.offset())),o=n.text+r.text;return 0")},qs=function(e){return e.getParam("document_base_url","")},Us=function(e){return cs(e,"body_id","tinymce")},Ws=function(e){return cs(e,"body_class","")},Zs=function(e){return e.getParam("content_security_policy","")},Ys=function(e){return e.getParam("br_in_pre",!0)},Xs=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Gs=function(e){return e.getParam("forced_root_block_attrs",{})},Qs=function(e){return e.getParam("keep_styles",!0)},Ks=function(e){return e.getParam("end_container_on_empty_block",!1)},Js=function(e){return Xn.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},el=function(e){return Xn.explode(e.getParam("font_size_classes",""))},tl=function(e){return e.getParam("icons","","string")},nl=function(e){return e.getParam("icons_url","","string")},rl=function(e){return e.getParam("images_dataimg_filter",r(!0),"function")},ol=function(e){return e.getParam("automatic_uploads",!0,"boolean")},il=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},cl=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},al=function(e){return e.getParam("images_upload_url","","string")},sl=function(e){return e.getParam("images_upload_base_path","","string")},ll=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},ul=function(e){return e.getParam("images_upload_handler",null,"function")},fl=function(e){return e.getParam("content_css_cors",!1,"boolean")},hl=function(e){return e.getParam("referrer_policy","","string")},dl=function(e){return e.getParam("language","en","string")},ml=function(e){return e.getParam("language_url","","string")},vl=function(e){return e.getParam("indent_use_margin",!1)},pl=function(e){return e.getParam("indentation","40px","string")},gl=function(e){var t=e.settings.content_css;return I(t)?Z(t.split(","),se):R(t)?t:!1===t||e.inline?[]:["default"]},bl=function(e){return e.getParam("object_resizing")},yl=function(e){return e.getParam("resize_img_proportional",!0,"boolean")},zl=function(e){return e.getParam("placeholder",js.getAttrib(e.getElement(),"placeholder"),"string")},Cl=fe().browser,Ml=Kt.isContentEditableFalse,wl=Kt.isContentEditableFalse,_l=Kt.matchStyleValues("display","block table table-cell table-caption list-item"),xl=Ac,Hl=Vc,Sl=Kt.isElement,Ll=Oc,Vl=i(bs,!0),kl=i(bs,!1);function Al(e,t){return e.hasChildNodes()&&ta.length-1)return!!jl(l,i,r)||Bl(i,r);i=a[s[o]]}3===i.nodeType&&(c=Math.min(s[0],i.nodeValue.length)),1===i.nodeType&&(c=Math.min(s[0],i.childNodes.length)),t?r.setStart(i,c):r.setEnd(i,c)}return!0}function $l(e){return Kt.isText(e)&&0=n.length?t=n.length-1:t<0&&(t=0),n[t]||e}(Ss=Hs=Hs||{})[Ss.Backwards=-1]="Backwards",Ss[Ss.Forwards=1]="Forwards";var mu,vu=Kt.isContentEditableFalse,pu=Kt.isText,gu=Kt.isElement,bu=Kt.isBr,yu=Oc,zu=function(e){return pa(e)||function(e){return!!ya(e)&&!0!==z(Q(e.getElementsByTagName("*")),function(e,t){return e||fa(t)},!1)}(e)},Cu=Ic,Mu=function(e,t,n){var o,i,c,a,s;if(!gu(n)||!t)return null;if(t.isEqual(Ls.after(n))&&n.lastChild){if(s=Ls.after(n.lastChild),hs(e)&&yu(n.lastChild)&&gu(n.lastChild))return bu(n.lastChild)?Ls.before(n.lastChild):s}else s=t;var l=s.container(),u=s.offset();if(pu(l)){if(hs(e)&&0=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===c&&0]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g).lastIndex=r=n;o=i.exec(t);){if(r=i.lastIndex,"/"===o[1])a--;else if(!o[1]){if(o[2]in c)continue;a++}if(0===a)break}return r}function Ku(e,t){var n=e.exec(t);if(n){var r=n[1],o=n[2];return"string"==typeof r&&"data-mce-bogus"===r.toLowerCase()?o:null}return null}function Ju(e,t){function n(){}void 0===t&&(t=Nr()),!1!==(e=e||{}).fix_self_closing&&(e.fix_self_closing=!0);var r=e.comment?e.comment:n,o=e.cdata?e.cdata:n,i=e.text?e.text:n,c=e.start?e.start:n,a=e.end?e.end:n,s=e.pi?e.pi:n,l=e.doctype?e.doctype:n;return{parse:function(n,u){function f(e){var t,n;for(t=U.length;t--&&U[t].name!==e;);if(0<=t){for(n=U.length-1;t<=n;n--)(e=U[n]).valid&&a(e.name);U.length=t}}function h(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),r(t))}function d(e,t){var r=e||"",o=!ae(r,"--"),i=function(e,t,n){void 0===n&&(n=0);var r=e.toLowerCase();if(-1!==r.indexOf("[if ",n)&&function(e,t){return/^\s*\[if [\w\W]+\]>.*/.test(r.substr(t))}(0,n)){var o=r.indexOf("[endif]",n);return r.indexOf(">",o)}if(t){var i=r.indexOf(">",n);return-1!==i?i:r.length}var c=/--!?>/;c.lastIndex=n;var a=c.exec(e);return a?a.index+a[0].length:r.length}(n,o,t);return e=n.substr(t,i-t),h(o?r+e:e),i+1}function m(t,n,r,o,i){var c,a;if(r=(n=n.toLowerCase())in x?n:Z(r||o||i||""),S&&!M&&!1===function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")}(n)){if(!(c=T[n])&&E){for(a=E.length;a--&&!(c=E[a]).pattern.test(n););-1===a&&(c=null)}if(!c)return;if(c.validValues&&!(r in c.validValues))return}if(Y[n]&&!e.allow_script_urls){var s=r.replace(/[\s\u0000-\u001F]+/g,"");try{s=decodeURIComponent(s)}catch(e){s=unescape(s)}if(X.test(s))return;if(function(e,t){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?!1===e.allow_svg_data_urls&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))}(e,s))return}M&&(n in Y||0===n.indexOf("on"))||(b.map[n]=r,b.push({name:n,value:r}))}void 0===u&&(u="html");var v,p,g,b,y,z,C,M,w,_,x,H,S,L,V,k,A,T,E,D,N,O,I,P,R,B,j,F,$,q=0,U=[],W=0,Z=_r.decode,Y=Xn.makeMap("src,href,data,background,formaction,poster,xlink:href"),X=/((java|vb)script|mhtml):/i,G="html"===u?0:1;for(R=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),B=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,_=t.getShortEndedElements(),P=e.self_closing_elements||t.getSelfClosingElements(),x=t.getBoolAttrs(),S=e.validate,w=e.remove_internals,$=e.fix_self_closing,j=t.getSpecialElements(),I=n+">";v=R.exec(I);){var Q=v[0];if(qn.length){i(Z(n.substr(v.index))),q=v.index+Q.length;continue}":"===(p=p.toLowerCase()).charAt(0)&&(p=p.substr(1)),H=p in _,$&&P[p]&&0]*data-mce-bogus="all"[^>]*>/g,l=e.schema;for(a=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")}(e.getTempAttrs(),a),c=l.getShortEndedElements();i=s.exec(a);)r=s.lastIndex,o=i[0].length,n=c[i[1]]?r:Nf.findEndTag(l,a,r),a=a.substring(0,r-o)+a.substring(n),s.lastIndex=r-o;return ca.trim(a)}function tf(e){var t,n,r,o,i,c=[];return t=(e=e||{}).indent,n=If(e.indent_before||""),r=If(e.indent_after||""),o=_r.getEncodeFunc(e.entity_encoding||"raw",e.entities),i="html"===e.element_format,{start:function(e,a,s){var l,u,f,h;if(t&&n[e]&&0":" />",s&&t&&r[e]&&0"),t&&r[e]&&0")},comment:function(e){c.push("\x3c!--",e,"--\x3e")},pi:function(e,n){n?c.push(""):c.push(""),t&&c.push("\n")},doctype:function(e){c.push("",t?"\n":"")},reset:function(){c.length=0},getContent:function(){return c.join("").replace(/\n$/,"")}}}function nf(e,t){void 0===t&&(t=Nr());var n=tf(e);return(e=e||{}).validate=!("validate"in e)||e.validate,{serialize:function(r){var o,i;i=e.validate,o={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)for(;c(e),e=e.next;);}},n.reset();var c=function(e){var r,a,s,l,u,f,h,d,m,v=o[e.type];if(v)v(e);else{if(r=e.name,a=e.shortEnded,s=e.attributes,i&&s&&1',"TABLE"===t.nodeName?n=""+i+"":/^(UL|OL)$/.test(t.nodeName)&&(n="
  • "+i+"
  • "),n=(o=Xs(e))&&e.schema.isValidChild(t.nodeName.toLowerCase(),o.toLowerCase())?(n=i,e.dom.createHTML(o,e.settings.forced_root_block_attrs,n)):n||'
    ',Mf(e,n),e.fire("SetContent",r)):("raw"!==r.format&&(n=nf({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=fr(ot.fromDom(t))?n:Xn.trim(n),Mf(e,r.content),r.no_events||e.fire("SetContent",r)),r.content}(e,r,t,n)})}function _f(e){return O.from(e).each(function(e){return e.destroy()})}function xf(e){var t=R(e)?e.join(" "):e,n=Z(I(t)?t.split(" "):[],se);return G(n,function(e){return 0_(c)?(g=x(p*m),p=x(g/m)):(p=x(g/m),g=x(p*m))),z.setStyles(V(o),{width:p,height:g}),C=0<(C=a.startPos.x+t)?C:0,M=0<(M=a.startPos.y+c)?M:0,z.setStyles(i,{left:C,top:M,display:"block"}),i.innerHTML=p+" × "+g,a[2]<0&&o.clientWidth<=p&&z.setStyle(o,"left",u+(h-p)),a[3]<0&&o.clientHeight<=g&&z.setStyle(o,"top",f+(d-g)),(t=H.scrollWidth-b)+(c=H.scrollHeight-y)!=0&&z.setStyles(i,{left:C-t,top:M-c}),v||(function(e,t,r,o){n.fire("ObjectResizeStart",{target:t,width:r,height:o})}(0,r,h,d),v=!0)}function T(e){function r(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)}var o;v||n.removed||(C(z.select("img[data-mce-selected],hr[data-mce-selected]"),function(e){e.removeAttribute("data-mce-selected")}),o="mousedown"===e.type?e.target:t.getNode(),r(o=z.$(o).closest("table,img,figure.image,hr")[0],H)&&(P(),r(t.getStart(!0),o)&&r(t.getEnd(!0),o))?N(o):O())}function E(e){return Dh(function(e,t){for(;t&&t!==e;){if(Nh(t)||Dh(t))return t;t=t.parentNode}return null}(n.getBody(),e))}c={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var D=function(){function e(e,t){t&&(r.style[e]||!n.schema.isValid(r.nodeName.toLowerCase(),e)?z.setStyle(V(r),e,t):z.setAttrib(V(r),e,t))}var t,c,a;v=!1,e("width",p),e("height",g),z.unbind(M,"mousemove",A),z.unbind(M,"mouseup",D),w!==M&&(z.unbind(w,"mousemove",A),z.unbind(w,"mouseup",D)),z.remove(o),z.remove(i),N(r),t=r,c=p,a=g,n.fire("ObjectResized",{target:t,width:c,height:a}),z.setAttrib(r,"style",z.getAttrib(r,"style")),n.nodeChanged()},N=function(e){var t,v,_,x,S;O(),I(),t=z.getPos(e,H),u=t.x,f=t.y,S=e.getBoundingClientRect(),v=S.width||S.right-S.left,_=S.height||S.bottom-S.top,r!==e&&(r=e,p=g=0),x=n.fire("ObjectSelected",{target:e}),k(e)&&!x.isDefaultPrevented()?C(c,function(e,t){var n;(n=z.get("mceResizeHandle"+t))&&z.remove(n),n=z.add(H,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===qn.ie&&(n.contentEditable=!1),z.bind(n,"mousedown",function(t){t.stopImmediatePropagation(),t.preventDefault(),function(t){s=t.screenX,l=t.screenY,h=V(r).clientWidth,d=V(r).clientHeight,m=d/h,(a=e).startPos={x:v*e[0]+u,y:_*e[1]+f},b=H.scrollWidth,y=H.scrollHeight,o=r.cloneNode(!0),z.addClass(o,"mce-clonedresizable"),z.setAttrib(o,"data-mce-bogus","all"),o.contentEditable=!1,o.unSelectabe=!0,z.setStyles(o,{left:u,top:f,margin:0}),o.removeAttribute("data-mce-selected"),H.appendChild(o),z.bind(M,"mousemove",A),z.bind(M,"mouseup",D),w!==M&&(z.bind(w,"mousemove",A),z.bind(w,"mouseup",D)),i=z.add(H,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},h+" × "+d)}(t)}),e.elm=n,z.setStyles(n,{left:v*e[0]+u-n.offsetWidth/2,top:_*e[1]+f-n.offsetHeight/2})}):O(),r.setAttribute("data-mce-selected","1")},O=function(){var e,t;for(e in I(),r&&r.removeAttribute("data-mce-selected"),c)(t=z.get("mceResizeHandle"+e))&&(z.unbind(t),z.remove(t))},I=function(){for(var e in c){var t=c[e];t.elm&&(z.unbind(t.elm),delete t.elm)}},P=function(){try{n.getDoc().execCommand("enableObjectResizing",!1,!1)}catch(e){}};return n.on("init",function(){if(P(),qn.browser.isIE()||qn.browser.isEdge()){n.on("mousedown click",function(e){var t=e.target,r=t.nodeName;v||!/^(TABLE|IMG|HR)$/.test(r)||E(t)||(2!==e.button&&n.selection.select(t,"TABLE"===r),"mousedown"===e.type&&n.nodeChanged())});var e=function(e){function t(e){Nn.setEditorTimeout(n,function(){return n.selection.select(e)})}if(E(e.target))return e.preventDefault(),void t(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&t(e.target))};z.bind(H,"mscontrolselect",e),n.on("remove",function(){return z.unbind(H,"mscontrolselect",e)})}var t=Nn.throttle(function(e){n.composing||T(e)});n.on("nodechange ResizeEditor ResizeWindow drop FullscreenStateChanged",t),n.on("keyup compositionend",function(e){r&&"TABLE"===r.nodeName&&t(e)}),n.on("hide blur",O),n.on("contextmenu longpress",L,!0)}),n.on("remove",I),{isResizable:k,showResizeRect:N,hideResizeRect:O,updateResizeRect:T,destroy:function(){r=o=null}}}(Vh=Vh||{}).isBookmarkNode=ku;var Ah=Vh,Th=function(e,t,n){if(n.collapsed)return!1;if(qn.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(Kt.isElement(r))return b(r.getClientRects(),function(n){return $c(n,e,t)})}return b(n.getClientRects(),function(n){return $c(n,e,t)})},Eh={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||this.metaKeyPressed(e)},metaKeyPressed:function(e){return qn.mac?e.metaKey:e.ctrlKey&&!e.altKey}},Dh=Kt.isContentEditableFalse,Nh=Kt.isContentEditableTrue;function Oh(e){return"textarea"===Ee(e)}function Ih(e,t){var n=function(e){var t=e.dom().ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom())return Rt(n.offsetLeft,n.offsetTop);var i=Oe(r.pageYOffset,o.scrollTop),c=Oe(r.pageXOffset,o.scrollLeft),a=Oe(o.clientTop,n.clientTop),s=Oe(o.clientLeft,n.clientLeft);return Bt(e).translate(c-s,i-a)}(e),r=function(e){return gd.get(e)}(e);return{element:e,bottom:n.top()+r,height:r,pos:n,cleanup:t}}function Ph(e,t,n,r){Cd(e,function(o,i){return zd(e,t,n,r)},n)}function Rh(e,t,n,r,o){var i={elm:r.element.dom(),alignToTop:o};!function(e,t){return e.fire("ScrollIntoView",t).isDefaultPrevented()}(e,i)&&(n(t,Ie(t).top(),r,o),function(e,t){e.fire("AfterScrollIntoView",t)}(e,i))}function Bh(e,n,r,o){var i=ot.fromDom(e.getDoc());Rh(e,i,r,function(e){return Ih(ot.fromDom(e),t)}(n),o)}function jh(e,t,n,r){var o=e.pos;if(n)Pe(o.left(),o.top(),r);else{var i=o.top()-t+e.height;Pe(o.left(),i,r)}}function Fh(e,t,n,r,o){var i=n+t,c=r.pos.top(),a=r.bottom,s=n<=a-c;ca.bottom()&&Re(r.element,!0===o)}function Uh(e){return Kt.isContentEditableTrue(e)||Kt.isContentEditableFalse(e)}function Wh(t,n){var r=(n||e.document).createDocumentFragment();return Y(t,function(e){r.appendChild(e.dom())}),ot.fromDom(r)}function Zh(e,t){return function(e,t,n){return Et(t,e)?function(e){return e.slice(0,-1)}(function(e,t){for(var n=F(t)?t:l,r=e.dom(),o=[];null!==r.parentNode&&void 0!==r.parentNode;){var i=r.parentNode,c=ot.fromDom(i);if(o.push(c),!0===n(c))break;r=i}return o}(e,function(e){return n(e)||ve(e,t)})):[]}(e,t,r(!1))}function Yh(e,t,n,r){var o=n,i=new Ri(n,o),c=e.schema.getNonEmptyElements();do{if(3===n.nodeType&&0!==Xn.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(c[n.nodeName]&&!/^(TD|TH)$/.test(n.nodeName))return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n))}while(n=r?i.next():i.prev());"BODY"===o.nodeName&&(r?t.setStart(o,0):t.setEnd(o,o.childNodes.length))}function Xh(e){var t=e.selection.getSel();return t&&0e?t.cells().length:e},0)}function Kh(e,t){for(var n=e.rows(),r=0;ro.childNodes.length-1&&(s=!1),Kt.isDocument(o)&&(o=f,i=0),o===f){if(s&&(c=o.childNodes[0'+ca.ZWSP+"");return Se(n.element,r),Ih(r,function(){return Nt(r)})}(ot.fromDom(n.startContainer),n.startOffset);Rh(e,i,t,c,r),c.cleanup()},Cd=function(e,t,n){var r=n.startContainer,o=n.startOffset,i=n.endContainer,c=n.endOffset;t(ot.fromDom(r),ot.fromDom(i));var a=e.dom.createRng();a.setStart(r,o),a.setEnd(i,c),e.selection.setRng(n)},Md=function(e,t,n){(e.inline?function(e,t,n){return Bh(e,t,$h,n)}:function(e,t,n){return Bh(e,t,qh,n)})(e,t,n)},wd=function(e,t,n){(e.inline?function(e,t,n){return Ph(e,$h,t,n)}:function(e,t,n){return Ph(e,qh,t,n)})(e,t,n)},_d=function(e,t,n){var r,o,i=n;if(i.caretPositionFromPoint)(o=i.caretPositionFromPoint(e,t))&&((r=n.createRange()).setStart(o.offsetNode,o.offset),r.collapse(!0));else if(n.caretRangeFromPoint)r=n.caretRangeFromPoint(e,t);else if(i.body.createTextRange){r=i.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(o){r=function(e,t,n){var r,o,i;if(r=n.elementFromPoint(e,t),o=n.body.createTextRange(),r&&"HTML"!==r.tagName||(r=n.body),o.moveToElementText(r),0<(i=(i=Xn.toArray(o.getClientRects())).sort(function(e,n){return(e=Math.abs(Math.max(e.top-t,e.bottom-t)))-Math.abs(Math.max(n.top-t,n.bottom-t))})).length){t=(i[0].bottom+i[0].top)/2;try{return o.moveToPoint(e,t),o.collapse(!0),o}catch(e){}}return null}(e,t,n)}return function(e,t){var n=e&&e.parentElement?e.parentElement():null;return Kt.isContentEditableFalse(function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(n,t,Uh))?null:e}(r,n.body)}return r},xd=function(e,t){return Z(t,function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t})},Hd=Zh,Sd=function(e,t){return[e].concat(Zh(e,t))},Ld=function(e){return xe(e).fold(r([e]),function(t){return[e].concat(Ld(t))})},Vd=function(e){return He(e).fold(r([e]),function(t){return"br"===Ee(t)?ye(t).map(function(t){return[e].concat(Vd(t))}).getOr([]):[e].concat(Vd(t))})},kd=he("element","width","rows"),Ad=he("element","cells"),Td=he("x","y"),Ed=function(e){var t=kd(Sc(e),0,[]);return Y(vc(e,"tr"),function(e,n){Y(vc(e,"td,th"),function(r,o){!function(e,t,n,r,o){for(var i=Gh(o,"rowspan"),c=Gh(o,"colspan"),a=e.rows(),s=n;sn.clientHeight){t=n;break}n=n.parentNode}return t},scrollIntoView:function(e,t){return Md(r,e,t)},placeCaretAt:function(e,t){return m(_d(e,t,r.getDoc()))},getBoundingClientRect:function(){var e=d();return e.collapsed?Ls.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},destroy:function(){t=s=l=null,a.destroy()}};return c=Ah(v),a=kh(v,r),v.bookmarkManager=c,v.controlSelection=a,v}function Xd(e,t){var n=$r();t.convert_fonts_to_spans&&function(e,t,n){e.addNodeFilter("font",function(e){Y(e,function(e){var r=t.parse(e.attr("style")),o=e.attr("color"),i=e.attr("face"),c=e.attr("size");o&&(r.color=o),i&&(r["font-family"]=i),c&&(r["font-size"]=n[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",t.serialize(r)),function(e,t){Y(["color","face","size"],function(t){e.attr(t,null)})}(e)})})}(e,n,Xn.explode(t.font_size_legacy_values)),function(e,t){e.addNodeFilter("strike",function(e){Y(e,function(e){var n=t.parse(e.attr("style"));n["text-decoration"]="line-through",e.name="span",e.attr("style",t.serialize(n))})})}(e,n)}function Gd(e,t,n,r){(e.padd_empty_with_br||t.insert)&&n[r.name]?r.empty().append(new Xu("br",1)).shortEnded=!0:r.empty().append(new Xu("#text",3)).value=Fr}function Qd(e,t,n,r){return r.isEmpty(t,n,function(t){return function(e,t){var n=e.getElementRule(t.name);return n&&n.paddEmpty}(e,t)})}function Kd(e,t){void 0===t&&(t=Nr());var n={},r=[],o={},i={};(e=e||{}).validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var c=function(e){var t,c,a;(c=e.name)in n&&((a=o[c])?a.push(e):o[c]=[e]),t=r.length;for(;t--;)(c=r[t].name)in e.attributes.map&&((a=i[c])?a.push(e):i[c]=[e]);return e},a={schema:t,addAttributeFilter:function(e,t){am(sm(e),function(e){var n;for(n=0;n)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(()?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")};c--;)o=(r=e[c]).firstChild?r.firstChild.value:"","script"===n?((i=r.attr("type"))&&r.attr("type","mce-no/type"===i?null:i.replace(/^mce\-/,"")),"xhtml"===t.element_format&&0")):"xhtml"===t.element_format&&0=e.data.length,i=0===t;e.replaceData(t,n,function(e,t,n){return z(e,function(r,o){return Ul(o)||Au(o)?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+Fr}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+o}},{previousCharIsSpace:!1,str:""}).str}(r,i,o))}}function Vm(e,t){var n=e.data.slice(t);return Lm(e,t,n.length-n.replace(/^\s+/g,"").length)}function km(e,t){return Oc(t)&&!1===function(e,t){return Kt.isText(t)&&/^[ \t\r\n]*$/.test(t.data)&&!1===function(e,t){var n=ot.fromDom(e);return function(e,t,n){return Cc(e,"pre,code",n).isSome()}(ot.fromDom(t),0,i(ve,n))}(e,t)}(e,t)||function(e){return Kt.isElement(e)&&"A"===e.nodeName&&e.hasAttribute("name")}(t)||tv(t)}function Am(e,t){return function(e,t){var n=e.container(),r=e.offset();return!1===Ls.isTextPosition(e)&&n===t.parentNode&&r>Ls.before(t).offset()}(t,e)?Ls(t.container(),t.offset()-1):t}function Tm(e){return Oc(e.previousSibling)?O.some(function(e){return Kt.isText(e)?Ls(e,e.data.length):Ls.after(e)}(e.previousSibling)):e.previousSibling?Su.lastPositionIn(e.previousSibling):O.none()}function Em(e){return Oc(e.nextSibling)?O.some(function(e){return Kt.isText(e)?Ls(e,0):Ls.before(e)}(e.nextSibling)):e.nextSibling?Su.firstPositionIn(e.nextSibling):O.none()}function Dm(e,t,n){return function(e,t,n){return e?function(e,t){return Em(t).orThunk(function(){return Tm(t)}).orThunk(function(){return function(e,t){return Su.nextPosition(e,Ls.after(t)).fold(function(){return Su.prevPosition(e,Ls.before(t))},O.some)}(e,t)})}(t,n):function(e,t){return Tm(t).orThunk(function(){return Em(t)}).orThunk(function(){return function(e,t){var n=Ls.before(t.previousSibling?t.previousSibling:t.parentNode);return Su.prevPosition(e,n).fold(function(){return Su.nextPosition(e,Ls.after(t))},O.some)}(e,t)})}(t,n)}(e,t,n).map(i(Am,n))}function Nm(e,t,n){n.fold(function(){e.focus()},function(n){e.selection.setRng(n.toRange(),t)})}function Om(e,t){return t&&e.schema.getBlockElements().hasOwnProperty(Ee(t))}function Im(e){if(ov(e)){var t=ot.fromHtml('
    ');return Ae(e),Dt(e,t),O.some(Ls.before(t.dom()))}return O.none()}function Pm(e,t,n){var r=ye(e).filter(It),o=ze(e).filter(It);return Nt(e),function(e,t,r,o){return e.isSome()&&t.isSome()&&r.isSome()?O.some(function(e,t,r){var o=e.dom(),i=t.dom(),c=o.data.length;return function(e,t,n){var r=le(e.data).length;e.appendData(t.data),Nt(ot.fromDom(t)),n&&Vm(e,r)}(o,i,n),r.container()===i?Ls(o,c):r}(e.getOrDie(),t.getOrDie(),r.getOrDie())):O.none()}(r,o,t).orThunk(function(){return n&&(r.each(function(e){return function(e,t){var n=e.data.slice(0,t),r=n.length-le(n).length;return Lm(e,t-r,r)}(e.dom(),e.dom().length)}),o.each(function(e){return Vm(e.dom(),0)})),t})}function Rm(e){return 0'))},Km=function(e){He(e).each(function(t){ye(t).each(function(n){or(e)&&Kn(t)&&or(n)&&Nt(t)})})},Jm=Jl,ev=function(e,t,n,r,o){var i,c,a,s,l=e.formatter.get(n),u=e.dom;if(l&&t)for(c=0;c=r.nodeValue.length&&(r=new Ri(r,e.getBody()).next()||r),Kt.isText(r)&&!n&&0===o&&(r=new Ri(r,e.getBody()).prev()||r),r}function mv(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o}function vv(e,t,n,r,o){var i=ot.fromDom(t),c=ot.fromDom(e.create(r,o));return ke(c,n?Me(i):Ce(i)),n?(Se(i,c),Ve(c,i)):(Le(i,c),Dt(c,i)),c.dom()}function pv(e,t,n,r){return!(t=Xl(t,n,r))||"BR"===t.nodeName||e.isBlock(t)}function gv(e,t,n,r,o){var i,c=e.dom;if(!function(e,t,n){return!!Vv(t,n.inline)||!!Vv(t,n.block)||(n.selector?Kt.isElement(t)&&e.is(t,n.selector):void 0)}(c,r,t)&&!function(e,n){return t.links&&"A"===e.nodeName}(r))return!1;var a=r;if("all"!==t.remove){Lv(t.styles,function(e,r){e=eu(c,Kl(e,n),r),"number"==typeof r&&(r=e,o=null),!t.remove_similar&&o&&!Vv(tu(c,o,r),e)||c.setStyle(a,r,""),i=!0}),i&&""===c.getAttrib(a,"style")&&(a.removeAttribute("style"),a.removeAttribute("data-mce-style")),Lv(t.attributes,function(e,r){var i;if(e=Kl(e,n),"number"==typeof r&&(r=e,o=null),t.remove_similar||!o||Vv(c.getAttrib(o,r),e)){if("class"===r&&(e=c.getAttrib(a,r))&&(i="",Lv(e.split(/\s+/),function(e){/mce\-\w+/.test(e)&&(i+=(i?" ":"")+e)}),i))return void c.setAttrib(a,r,i);"class"===r&&a.removeAttribute("className"),Sv.test(r)&&a.removeAttribute("data-mce-"+r),a.removeAttribute(r)}}),Lv(t.classes,function(e){e=Kl(e,n),o&&!c.hasClass(o,e)||c.removeClass(a,e)});for(var s=c.getAttribs(a),l=0;l
    ").append(t.childNodes)}(e.previousSibling,e)}))},sv["pre"]||(sv.pre=[]),sv.pre.push(Zm);var Hv=Xn.each,Sv=/^(src|href|style)$/,Lv=Xn.each,Vv=Jl,kv=Xn.each,Av=function(e,t,n){kv(e.childNodes,function(e){yv(e)&&(t(e)&&n(e),e.hasChildNodes()&&Av(e,t,n))})},Tv=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},Ev=function(t){return t.collapsed?t:(n=t,r=Ls.fromRangeStart(n),o=Ls.fromRangeEnd(n),i=n.commonAncestorContainer,Su.fromPosition(!1,i,o).map(function(t){return!ps(r,o,i)&&ps(r,t,i)?function(t,n,r,o){var i=e.document.createRange();return i.setStart(t,n),i.setEnd(r,o),i}(r.container(),r.offset(),t.container(),t.offset()):n}).getOr(n));var n,r,o,i},Dv=Xn.each,Nv=function(e,t,n,r){function o(e,t){if(t=t||f,e){if(t.onformat&&t.onformat(e,t,n,r),Dv(t.styles,function(t,r){d.setStyle(e,r,Kl(t,n))}),t.styles){var o=d.getAttrib(e,"style");o&&d.setAttrib(e,"data-mce-style",o)}Dv(t.attributes,function(t,r){d.setAttrib(e,r,Kl(t,n))}),Dv(t.classes,function(t){t=Kl(t,n),d.hasClass(e,t)||d.addClass(e,t)})}}function c(e,t){var n=!1;return!!f.selector&&(Dv(e,function(e){if(!("collapsed"in e&&e.collapsed!==h))return d.is(t,e.selector)&&!es(t)?(o(t,e),!(n=!0)):void 0}),n)}function a(r,a,s,l){var h,d,m=[],v=!0;h=f.inline||f.block,o(d=r.create(h)),Pu(r,a,function(i){var a,s=function(i){var p=!1,g=v,b=i.nodeName.toLowerCase(),y=i.parentNode.nodeName.toLowerCase();if(Kt.isElement(i)&&r.getContentEditable(i)&&(g=v,v="true"===r.getContentEditable(i),p=!0),Jl(b,"br"))return a=0,void(f.block&&r.remove(i));if(f.wrapper&&ev(e,i,t,n))a=0;else{if(v&&!p&&f.block&&!f.wrapper&&Gl(e,b)&&Ql(e,y,h))return o(i=r.rename(i,h)),m.push(i),void(a=0);if(f.selector){var z=c(u,i);if(!f.inline||z)return void(a=0)}!v||p||!Ql(e,h,b)||!Ql(e,y,h)||!l&&3===i.nodeType&&1===i.nodeValue.length&&65279===i.nodeValue.charCodeAt(0)||es(i)||f.inline&&r.isBlock(i)?(a=0,Dv(Xn.grep(i.childNodes),s),p&&(v=g),a=0):(a||(a=r.clone(d,!1),i.parentNode.insertBefore(a,i),m.push(a)),a.appendChild(i))}};Dv(i,s)}),!0===f.links&&Dv(m,function(e){var t=function(e){"A"===e.nodeName&&o(e,f),Dv(Xn.grep(e.childNodes),t)};t(e)}),Dv(m,function(c){var a,s,l,h,d;s=0,Dv(c.childNodes,function(e){(function(e){return e&&Kt.isText(e)&&0===e.length})(e)||ku(e)||s++}),a=s,!(1)\s*/g,"$1"),Xn.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),function(e){var t=Xn.map(e.split(/(?:~\+|~|\+)/),Bv),n=t.pop();return t.length&&(n.siblings=t),n}).reverse()):[]}(t.selector)).length?(i[0].name||(i[0].name=n),n=t.selector,Rv(i,e)):Rv([n],e),o=Np.select(n,r)[0]||r.firstChild,Dp(t.styles,function(e,t){(e=l(e))&&Np.setStyle(o,t,e)}),Dp(t.attributes,function(e,t){(e=l(e))&&Np.setAttrib(o,t,e)}),Dp(t.classes,function(e){e=l(e),Np.hasClass(o,e)||Np.addClass(o,e)}),e.fire("PreviewFormats"),Np.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),c=Np.getStyle(e.getBody(),"fontSize",!0),c=/px$/.test(c)?parseInt(c,10):0,Dp(a.split(" "),function(t){var n=Np.getStyle(o,t,!0);if(!("background-color"===t&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)&&(n=Np.getStyle(e.getBody(),t,!0),"#ffffff"===Np.toHex(n).toLowerCase())||"color"===t&&"#000000"===Np.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===c)return;n=parseFloat(n)/(/%$/.test(n)?100:1)*c+"px"}"border"===t&&n&&(s+="padding:0 2px;"),s+=t+":"+n+";"}}),e.fire("AfterPreviewFormats"),Np.remove(r),s)}function Fv(e,t,n,r,o){var i=t.get(n);!wm(e,n,r,o)||"toggle"in i[0]&&!i[0].toggle?Nv(e,n,r,o):bv(e,n,r,o)}function $v(e){var t=function(e){var t={},n=function(e,r){e&&("string"!=typeof e?Xn.each(e,function(e,t){n(t,e)}):(R(r)||(r=[r]),Xn.each(r,function(e){void 0===e.deep&&(e.deep=!e.selector),void 0===e.split&&(e.split=!e.selector||e.inline),void 0===e.remove&&e.selector&&!e.inline&&(e.remove="none"),e.selector&&e.inline&&(e.mixed=!0,e.block_expand=!0),"string"==typeof e.classes&&(e.classes=e.classes.split(/\s+/))}),t[e]=r))};return n(Pv(e.dom)),n(e.settings.formats),{get:function(e){return e?t[e]:t},has:function(e){return te(t,e)},register:n,unregister:function(e){return e&&t[e]&&delete t[e],t}}}(e),n=it(null);return Op(e),function(e){e.on("mouseup keydown",function(t){!function(e,t){var n=e.selection,r=e.getBody();$m(e,null,!1),8!==t&&46!==t||!n.isCollapsed()||n.getStart().innerHTML!==cv||$m(e,ts(r,n.getStart())),37!==t&&39!==t||$m(e,ts(r,n.getStart()))}(e,t.keyCode)})}(e),{get:t.get,has:t.has,register:t.register,unregister:t.unregister,apply:i(Nv,e),remove:i(bv,e),toggle:i(Fv,e,t),match:i(wm,e),matchAll:i(_m,e),matchNode:i(ev,e),canApply:i(xm,e),formatChanged:i(xv,e,n),getCssText:i(jv,e)}}function qv(e){return Kt.isElement(e)?e.outerHTML:Kt.isText(e)?_r.encodeRaw(e.data,!1):Kt.isComment(e)?"\x3c!--"+e.data+"--\x3e":""}function Uv(e){return"fragmented"===e.type?e.fragments.join(""):e.content}function Wv(t){var n=ot.fromTag("body",Pp.get().getOrThunk(function(){var t=e.document.implementation.createHTMLDocument("undo");return Pp.set(O.some(t)),t}));return xc(n,Uv(t)),Y(vc(n,"*[data-mce-bogus]"),Te),n.dom().innerHTML}function Zv(e){return 0===e.get()}function Yv(e,t,n){Zv(n)&&(e.typing=t)}function Xv(e,t){e.typing&&(Yv(e,!1,t),e.add())}function Gv(e){var t,n=it(O.none()),r=it(0),o=it(0),i={data:[],typing:!1,beforeChange:function(){!function(e,t,n){Zv(r)&&n.set(O.some(Ns.getUndoBookmark(e.selection)))}(e,0,n)},add:function(t,c){return function(e,t,n,r,o,i,c){var a=e.settings,s=Rp(e);if(i=i||{},i=Xn.extend(i,s),!1===Zv(r)||e.removed)return null;var l=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:i,lastLevel:l,originalEvent:c}).isDefaultPrevented())return null;if(l&&jp(l,i))return null;if(t.data[n.get()]&&o.get().each(function(e){t.data[n.get()].beforeBookmark=e}),a.custom_undo_redo_levels&&t.data.length>a.custom_undo_redo_levels){for(var u=0;u")}(t=(n=w(function(e){return G(Z(Q(e.childNodes),qv),function(e){return 0e}(e,t)}}function ag(e){return function(t){return function(e,t){return t.line===e}(e,t)}}function sg(e,t){return Math.abs(e.left-t)}function lg(e,t){return Math.abs(e.right-t)}function ug(e,t){return e>=t.left&&e<=t.right}function fg(e,t){return Wn.reduce(e,function(e,n){var r,o;return r=Math.min(sg(e,t),lg(e,t)),o=Math.min(sg(n,t),lg(n,t)),ug(t,n)?n:ug(t,e)?e:o===r&&Sg(n.node)?n:o=e.top&&n<=e.bottom}),t))&&fg(function(e,t){function n(e,n){var o;return o=G(Ap([n]),function(n){return!e(n,t)}),r=r.concat(o),0===o.length}var r=[];return r.push(t),hg(Tp.Up,e,i(n,jc),t.node),hg(Tp.Down,e,i(n,Fc),t.node),r}(e,r),t))&&us(r.node)?function(e,t){return{node:e.node,before:sg(e,t)'),t}(e),1===t?e.$(r).after(o):e.$(r).before(o),e.selection.select(o,!0),e.selection.collapse())}}function Ug(e,t){return function(){var n=function(e,t){var n,r=El(e.getBody()),o=i(_s,r.next),c=i(_s,r.prev),a=t?Hs.Forwards:Hs.Backwards,s=t?o:c,l=e.selection.getRng();return(n=function(e,t,n,r){var o=e===Hs.Forwards,i=o?Ig:Pg;if(!r.collapsed){var c=Xy(r);if(Yy(c))return mg(e,t,c,e===Hs.Backwards,!0)}var a=Vc(r.startContainer),s=Ms(e,t.getBody(),r);if(i(s))return vg(t,s.getNode(!o));var l=Xp.normalizePosition(o,n(s));if(!l)return a?r:null;if(i(l))return mg(e,t,l.getNode(!o),o,!0);var u=n(l);return u&&i(u)&&xs(l,u)?mg(e,t,u.getNode(!o),o,!0):a?gg(t,l.toRange(),!0):null}(a,e,s,l))?n:(n=qg(e,a,l))||null}(e,t);return!!n&&(e.selection.setRng(n),!0)}}function Wg(e,t){return function(){var n=function(e,t){var n,r=t?1:-1,o=t?Hg:xg,i=e.selection.getRng();return(n=function(e,t,n,r){var o,i,c,a,s,l,u,f,h;if(h=Xy(r),o=Ms(e,t.getBody(),r),i=n(t.getBody(),cg(1),o),c=G(i,ag(1)),s=Wn.last(o.getClientRects()),(Ig(o)||Ng(o))&&(h=o.getNode()),(Pg(o)||Og(o))&&(h=o.getNode(!0)),!s)return null;if((a=fg(c,l=s.left))&&Yy(a.node))return u=Math.abs(l-a.left),f=Math.abs(l-a.right),mg(e,t,a.node,ut}),Ky=i(Gg,qy),Jy=i(Gg,Uy),ez=function(e){for(var t=[],n=1;na.childNodes.length-1,a=a.childNodes[Math.min(s,a.childNodes.length-1)]||a,s=g&&Kt.isText(a)?a.nodeValue.length:0),(c=sy(b,a))&&((p&&!u||!p&&u)&&(a=function(e,t,n,r,o){var i,c,a,s,l,u,f=p||"P",h=e.dom,d=sy(h,r);if(!(c=h.getParent(r,h.isBlock))||!cy(h,c)){if(u=(c=c||d)===e.getBody()||c&&/^(TD|TH|CAPTION)$/.test(c.nodeName)?c.nodeName.toLowerCase():c.parentNode.nodeName.toLowerCase(),!c.hasChildNodes())return uy(e,i=h.create(f)),c.appendChild(i),n.setStart(i,0),n.setEnd(i,0),i;for(s=r;s.parentNode!==c;)s=s.parentNode;for(;s&&!h.isBlock(s);)s=(a=s).previousSibling;if(a&&e.schema.isValidChild(u,f.toLowerCase())){for(uy(e,i=h.create(f)),a.parentNode.insertBefore(i,a),s=a;s&&!h.isBlock(s);)l=s.nextSibling,i.appendChild(s),s=l;n.setStart(r,o),n.setEnd(r,o)}}return r}(e,0,C,a,s)),l=b.getParent(a,b.isBlock),d=l?b.getParent(l.parentNode,b.isBlock):null,m=l?l.nodeName.toUpperCase():"","LI"!==(v=d?d.nodeName.toUpperCase():"")||M||(d=(l=d).parentNode,m=v),/^(LI|DT|DD)$/.test(m)&&b.isEmpty(l)?function(e,t,n,r,o){var i=e.dom,c=e.selection.getRng();if(n!==e.getBody()){!function(e){return ty(e)&&ty(e.parentNode)}(n)||(o="LI");var a=o?t(o):i.create("BR");if(ry(n,r,!0)&&ry(n,r,!1))ey(n,"LI")?i.insertAfter(a,ny(n)):i.replace(a,n);else if(ry(n,r,!0))ey(n,"LI")?(i.insertAfter(a,ny(n)),a.appendChild(i.doc.createTextNode(" ")),a.appendChild(n)):n.parentNode.insertBefore(a,n);else if(ry(n,r,!1))i.insertAfter(a,ny(n));else{n=ny(n);var s=c.cloneRange();s.setStartAfter(r),s.setEndAfter(n);var l=s.extractContents();"LI"===o&&function(e,t){return e.firstChild&&"LI"===e.firstChild.nodeName}(l)?(a=l.firstChild,i.insertAfter(l,n)):(i.insertAfter(l,n),i.insertAfter(a,n))}i.remove(r),kz(e,a)}}(e,n,d,l,p):p&&l===e.getBody()||(p=p||"P",Vc(l)?(f=Nc(l),b.isEmpty(l)&&oy(l),uy(e,f),kz(e,f)):r()?o():r(!0)?(f=l.parentNode.insertBefore(n(),l),kz(e,iy(l,"HR")?f:l)):((i=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,ay(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,ay(!1,e.endContainer,e.endOffset)),t}(C).cloneRange()).setEndAfter(l),function(e){Y(gc(ot.fromDom(e),It),function(e){var t=e.dom();t.nodeValue=ca.trim(t.nodeValue)})}(h=i.extractContents()),function(e){for(;Kt.isText(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild;);}(h),f=h.firstChild,b.insertAfter(h,l),function(e,t,n){var r,o=f,i=[];if(o){for(;o=o.firstChild;){if(e.isBlock(o))return;Kt.isElement(o)&&!t[o.nodeName.toLowerCase()]&&i.push(o)}for(r=i.length;r--;)!(o=i[r]).hasChildNodes()||o.firstChild===o.lastChild&&""===o.firstChild.nodeValue?e.remove(o):(c=e,(a=o)&&"A"===a.nodeName&&c.isEmpty(a)&&e.remove(o));var c,a}}(b,z),function(e,t){var n;t.normalize(),(n=t.lastChild)&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")}(b,l),b.isEmpty(l)&&oy(l),f.normalize(),b.isEmpty(f)?(b.remove(f),o()):(uy(e,f),kz(e,f))),b.setAttrib(f,"id",""),e.fire("NewBlock",{newBlock:f})))},Oz=function(e,t){return!!function(e){return Kt.isBr(e.getNode())}(Ls.after(t))||Su.nextPosition(e,Ls.after(t)).map(function(e){return Kt.isBr(e.getNode())}).getOr(!1)},Iz=function(e,t){var n=function(e){var t=i(Xp.isInlineTarget,e),n=Ls.fromRangeStart(e.selection.getRng());return Jp(t,e.getBody(),n).filter(py)}(e);n.isSome()?n.each(i(gy,e)):function(e,t){var n,r,o=e.selection,i=e.dom,c=o.getRng();qd(i,c).each(function(e){c.setStart(e.startContainer,e.startOffset),c.setEnd(e.endContainer,e.endOffset)});var a=c.startOffset,s=c.startContainer;if(1===s.nodeType&&s.hasChildNodes()){var l=a>s.childNodes.length-1;s=s.childNodes[Math.min(a,s.childNodes.length-1)]||s,a=l&&3===s.nodeType?s.nodeValue.length:0}var u=i.getParent(s,i.isBlock),f=u?i.getParent(u.parentNode,i.isBlock):null,h=f?f.nodeName.toUpperCase():"",d=!(!t||!t.ctrlKey);"LI"!==h||d||(u=f),s&&3===s.nodeType&&a>=s.nodeValue.length&&!function(e,t,n){for(var r,o=new Ri(s,u),i=e.getNonEmptyElements();r=o.next();)if(i[r.nodeName.toLowerCase()]||0o&&(c=t.pageX+n-o),t.pageY+r>i&&(a=t.pageY+r-i),e.style.width=n-c+"px",e.style.height=r-a+"px"}(e.ghost,i,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}}(s,t),i=function(e,t){return function(n){if(e.dragging&&function(e,t,n){return t!==n&&!e.dom.isChildOf(t,n)&&!pC(t)}(t,function(e){var n=t.selection.getSel().getRangeAt(0).startContainer;return 3===n.nodeType?n.parentNode:n}(),e.element)){var r=function(t){var n=e.element.cloneNode(!0);return n.removeAttribute("data-mce-selected"),n}(),o=t.fire("drop",{targetClone:r,clientX:n.clientX,clientY:n.clientY});o.isDefaultPrevented()||(r=o.targetClone,t.undoManager.transact(function(){Gz(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}bC(e)}}(s,t),c=function(e,t){return function(){e.dragging&&t.fire("dragend"),bC(e)}}(s,t),t.on("mousedown",r),t.on("mousemove",o),t.on("mouseup",i),n.bind(a,"mousemove",o),n.bind(a,"mouseup",c),t.on("remove",function(){n.unbind(a,"mousemove",o),n.unbind(a,"mouseup",c)})}function Kz(e,t){for(var n=e.getBody();t&&t!==n;){if(CC(t)||MC(t))return t;t=t.parentNode}return null}function Jz(e){function t(t){t&&e.selection.setRng(t)}function n(){return e.selection.getRng()}function r(t,n,r,o){return void 0===o&&(o=!0),e.fire("ShowCaret",{target:n,direction:t,before:r}).isDefaultPrevented()?null:(o&&e.selection.scrollIntoView(n,-1===t),a.show(r,n))}function o(e){return Ac(e)||la(e)||ua(e)}var i,c=e.getBody(),a=ss(e,c,function(t){return e.dom.isBlock(t)},function(){return eh(e)}),s="sel-"+e.dom.uniqueId(),l=function(e){return o(e.startContainer)||o(e.endContainer)},u=function(t,n){var o,a,u,f,d,m,v,p,g,b,y=e.$,z=e.dom;if(!t)return null;if(t.collapsed){if(!l(t))if(!1===n){if(us((p=Ms(-1,c,t)).getNode(!0)))return r(-1,p.getNode(!0),!1,!1);if(us(p.getNode()))return r(-1,p.getNode(),!p.isAtEnd(),!1)}else{if(us((p=Ms(1,c,t)).getNode()))return r(1,p.getNode(),!p.isAtEnd(),!1);if(us(p.getNode(!0)))return r(1,p.getNode(!0),!1,!1)}return null}if(f=t.startContainer,d=t.startOffset,m=t.endOffset,3===f.nodeType&&0===d&&MC(f.parentNode)&&(f=f.parentNode,d=z.nodeIndex(f),f=f.parentNode),1!==f.nodeType)return null;if(m===d+1&&f===t.endContainer&&(o=f.childNodes[d]),!MC(o))return null;if(g=b=o.cloneNode(!0),(v=e.fire("ObjectSelected",{target:o,targetClone:g})).isDefaultPrevented())return null;a=Mc(ot.fromDom(e.getBody()),"#"+s).fold(function(){return y([])},function(e){return y([e.dom()])}),g=v.targetClone,0===a.length&&(a=y('
    ').attr("id",s)).appendTo(e.getBody()),t=e.dom.createRng(),g===b&&qn.ie?(a.empty().append('

     

    ').append(g),t.setStartAfter(a[0].firstChild.firstChild),t.setEndAfter(g)):(a.empty().append(Fr).append(g).append(Fr),t.setStart(a[0].firstChild,1),t.setEnd(a[0].lastChild,0)),a.css({top:z.getPos(o,e.getBody()).y}),a[0].focus(),(u=e.selection.getSel()).removeAllRanges(),u.addRange(t);var C=ot.fromDom(o);return Y(vc(ot.fromDom(e.getBody()),"*[data-mce-selected]"),function(e){ve(C,e)||Ye(e,"data-mce-selected")}),e.dom.getAttrib(o,"data-mce-selected")||o.setAttribute("data-mce-selected","1"),i=o,h(),t},f=function(){i&&(i.removeAttribute("data-mce-selected"),Mc(ot.fromDom(e.getBody()),"#"+s).each(Nt),i=null),Mc(ot.fromDom(e.getBody()),"#"+s).each(Nt),i=null},h=function(){a.hide()};return qn.ceFalse&&function(){var o;e.on("mouseup",function(r){var o=n();o.collapsed&&gh(e,r.clientX,r.clientY)&&t(pg(e,o,!1))}),e.on("click",function(t){var n;(n=Kz(e,t.target))&&(MC(n)&&(t.preventDefault(),e.focus()),CC(n)&&e.dom.isChildOf(n,e.selection.getNode())&&f())}),e.on("blur NewBlock",function(){f()}),e.on("ResizeWindow FullscreenStateChanged",function(){return a.reposition()}),(o=e).on("tap",function(e){var t=Kz(o,e.target);MC(t)&&(e.preventDefault(),u(vg(o,t)))},!0),e.on("mousedown",function(n){var o,i=n.target;if((i===c||"HTML"===i.nodeName||e.dom.isChildOf(i,c))&&!1!==gh(e,n.clientX,n.clientY))if(o=Kz(e,i))MC(o)?(n.preventDefault(),u(vg(e,o))):(f(),CC(o)&&n.shiftKey||Th(n.clientX,n.clientY,e.selection.getRng())||(h(),e.selection.placeCaretAt(n.clientX,n.clientY)));else if(!1===us(i)){f(),h();var a=dg(c,n.clientX,n.clientY);if(a&&!function(t,n){var r=e.dom.getParent(t,e.dom.isBlock),o=e.dom.getParent(n,e.dom.isBlock);return!(!r||!e.dom.isChildOf(r,o)||!1!==MC(Kz(e,r)))||r&&!function(t,n){return e.dom.getParent(t,e.dom.isBlock)===e.dom.getParent(n,e.dom.isBlock)}(r,o)&&function(e){var t=El(e);if(!e.firstChild)return!1;var n=Ls.before(e.firstChild),r=t.next(n);return r&&!Ig(r)&&!Pg(r)}(r)}(n.target,a.node)){n.preventDefault();var s=r(1,a.node,a.before,!1);e.getBody().focus(),t(s)}}}),e.on("keypress",function(t){Eh.modifierPressed(t)||(t.keyCode,MC(e.selection.getNode())&&t.preventDefault())}),e.on("GetSelectionRange",function(e){var t=e.range;if(i){if(!i.parentNode)return void(i=null);(t=t.cloneRange()).selectNode(i),e.range=t}}),e.on("SetSelectionRange",function(t){t.range=function(t){var n=e.schema.getShortEndedElements(),r=e.dom.createRng(),o=t.startContainer,i=t.startOffset,c=t.endContainer,a=t.endOffset;return te(n,o.nodeName.toLowerCase())?0===i?r.setStartBefore(o):r.setStartAfter(o):r.setStart(o,i),te(n,c.nodeName.toLowerCase())?0===a?r.setEndBefore(c):r.setEndAfter(c):r.setEnd(c,a),r}(t.range);var n=u(t.range,t.forward);n&&(t.range=n)}),e.on("AfterSetSelectionRange",function(t){var n=t.range;l(n)||"mcepastebin"===n.startContainer.parentNode.id||h(),function(t){return e.dom.hasClass(t,"mce-offscreen-selection")}(n.startContainer.parentNode)||f()}),e.on("copy",function(t){var n=t.clipboardData;if(!t.isDefaultPrevented()&&t.clipboardData&&!qn.ie){var r=function(){var t=e.dom.get(s);return t?t.getElementsByTagName("*")[0]:t}();r&&(t.preventDefault(),n.clearData(),n.setData("text/html",r.outerHTML),n.setData("text/plain",r.outerText))}}),yC(e),zC(e)}(),{showCaret:r,showBlockCaretContainer:function(r){r.hasAttribute("data-mce-caret")&&(Nc(r),t(n()),e.selection.scrollIntoView(r))},hideFakeCaret:h,destroy:function(){a.destroy(),i=null}}}function eC(e){var t;e.bindPendingEventDelegates(),e.initialized=!0,function(e){e.fire("Init")}(e),e.focus(!0),function(e){var t=e.dom.getRoot();e.inline||Xh(e)&&e.selection.getStart(!0)!==t||Su.firstPositionIn(t).each(function(t){var n=t.getNode(),r=Kt.isTable(n)?Su.firstPositionIn(n).getOr(t):t;qn.browser.isIE()?Zf(e,r.toRange()):e.selection.setRng(r.toRange())})}(e),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),(t=e).settings.auto_focus&&Nn.setEditorTimeout(t,function(){var e;(e=!0===t.settings.auto_focus?t:t.editorManager.get(t.settings.auto_focus)).destroyed||e.focus()},100)}function tC(e){return e.replace(/^\-/,"")}function nC(e){return{editorContainer:e,iframeContainer:e}}function rC(e){return"-"===e.charAt(0)}function oC(e,n){var r=tc.ScriptLoader;!function(e,t,n,r){var o=t.settings,i=o.theme;if(I(i)){if(!rC(i)&&!Ch.urls.hasOwnProperty(i)){var c=o.theme_url;c?Ch.load(i,t.documentBaseURI.toAbsolute(c)):Ch.load(i,"themes/"+i+"/theme"+n+".js")}e.loadQueue(function(){Ch.waitFor(i,r)})}else r()}(r,e,n,function(){!function(e,n){var r=dl(n),o=ml(n);if(!1===ac.hasCode(r)&&"en"!==r){var i=""!==o?o:n.editorManager.baseURL+"/langs/"+r+".js";e.add(i,t,void 0,function(){Lh.languageLoadError(n,i,r)})}}(r,e),function(e,n){var r;(r=n,O.from(nl(r)).filter(function(e){return 0",qs(e)!==e.documentBaseUrl&&(r+=''),r+='',t=Us(e),n=Ws(e),Zs(e)&&(r+=''),r+'
    '}(t),xC.add(n.iframeContainer,o),i}(t,n);n.editorContainer&&(xC.get(n.editorContainer).style.display=t.orgDisplay,t.hidden=xC.isHidden(n.editorContainer)),t.getElement().style.display="none",xC.setAttrib(t.id,"aria-hidden","true"),r||_C(t)},SC=Qi.DOM,LC=function(e,t,n){var r=zh.get(n),o=zh.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=Xn.trim(n),r&&-1===Xn.inArray(t,n)){if(Xn.each(zh.dependencies(n),function(n){LC(e,t,n)}),e.plugins[n])return;try{var i=new r(e,o,e.$);(e.plugins[n]=i).init&&(i.init(e,o),t.push(n))}catch(t){Lh.pluginInitError(e,n,t)}}},VC=function(e){e.fire("ScriptsLoaded"),function(e){var t=Xn.trim(e.settings.icons),n=e.ui.registry.getAll().icons;V(ne(ne({},{"accessibility-check":'',"action-next":'',"action-prev":'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-width":'',brightness:'',browse:'',cancel:'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',cut:'',"document-properties":'',drag:'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',fill:'',"flip-horizontally":'',"flip-vertically":'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"page-break":'',paragraph:'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',settings:'',sharpen:'',"sort-asc":'',"sort-dsc":'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',template:'',"temporary-placeholder":'',"text-color":'',toc:'',translate:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":''}),hh.get(t).icons),function(t,r){te(n,r)||e.ui.registry.addIcon(r,t)})}(e),function(e){var t=e.settings.theme;if(I(t)){e.settings.theme=tC(t);var n=Ch.get(t);e.theme=new n(e,Ch.urls[t]),e.theme.init&&e.theme.init(e,Ch.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}}(e),function(e){var t=[];Xn.each(e.settings.plugins.split(/[ ,]/),function(n){LC(e,t,tC(n))})}(e);var t=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,I(e.settings.theme)?function(e){return e.theme.renderUI()}(e):F(e.settings.theme)?function(e){var t=e.getElement(),n=(0,e.settings.theme)(e,t);return n.editorContainer.nodeType&&(n.editorContainer.id=n.editorContainer.id||e.id+"_parent"),n.iframeContainer&&n.iframeContainer.nodeType&&(n.iframeContainer.id=n.iframeContainer.id||e.id+"_iframecontainer"),n.height=n.iframeHeight?n.iframeHeight:t.offsetHeight,n}(e):function(e){var t=e.getElement();return e.inline?nC(null):function(e){var t=SC.create("div");return SC.insertAfter(t,e),nC(t)}(t)}(e)}(e);return e.editorContainer=t.editorContainer?t.editorContainer:null,function(e){e.contentCSS=e.contentCSS.concat(function(e){var t=gl(e),n=e.editorManager.baseURL+"/skins/content",r="content"+e.editorManager.suffix+".css",o=!0===e.inline;return Z(t,function(t){return function(e){return/^[a-z0-9\-]+$/i.test(e)}(t)&&!o?n+"/"+t+"/"+r:e.documentBaseURI.toAbsolute(t)})}(e))}(e),e.inline?_C(e):HC(e,t)},kC=Qi.DOM,AC=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||function(e,t){return e.getBlockElements()[t.name]&&function(e){return e.firstChild&&e.firstChild===e.lastChild}(t)&&function(e){return"br"===e.name||e.value===Fr}(t.firstChild)}(e,t))}(e,r)&&(r=r.prev),!(!n||n!==r||"ul"!==n.name&&"ol"!==n.name)},TC=function(e,t,n,r){function o(e){var r=Ls.fromRangeStart(n),o=El(t.getRoot()),i=1===e?o.prev(r):o.next(r);return!i||cC(t,i.getNode())!==c}var i=function(e,t,n){var r=t.serialize(n);return function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e}(e.createFragment(r))}(t,e,r),c=cC(t,n.startContainer),a=iC(function(e){return Xn.grep(e.childNodes,function(e){return"LI"===e.nodeName})}(i.firstChild)),s=t.getRoot();return o(1)?function(e,t,n){var r=e.parentNode;return Xn.each(t,function(t){r.insertBefore(t,e)}),function(e,t){var n=Ls.before(e),r=El(t).next(n);return r?r.toRange():null}(e,n)}(c,a,s):o(2)?function(e,n,r,o){return t.insertAfter(n.reverse(),e),aC(n[0],r)}(c,a,s):function(e,t,n,r){var o=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]}(e,r),i=e.parentNode;return i.insertBefore(o[0],e),Xn.each(t,function(t){i.insertBefore(t,e)}),i.insertBefore(o[1],e),i.removeChild(e),aC(t[t.length-1],n)}(c,a,s,n)},EC=function(e,t){return!!cC(e,t)},DC=Kt.matchNodeNames(["td","th"]),NC=function(e,t){var n=function(e){var t;return"string"!=typeof e?(t=Xn.extend({paste:e.paste,data:{paste:e.paste}},e),{content:e.content,details:t}):{content:e,details:{}}}(t);!function(e,t,n){var r,o,i,c,a,s,l,u,f,h,d,m=e.selection,v=e.dom;if(/^ | $/.test(t)&&(t=function(e,t){var n,r;function o(e){return n[e]&&3===n[e].nodeType}return n=e.startContainer,r=e.startOffset,3===n.nodeType&&(0|)$/," "):o("nextSibling")||(t=t.replace(/( | )(
    |)$/," "))),t}(m.getRng(),t)),r=e.parser,d=n.merge,o=nf({validate:e.settings.validate},e.schema),h='​',s={content:t,format:"html",selection:!0,paste:n.paste},(s=e.fire("BeforeSetContent",s)).isDefaultPrevented())e.fire("SetContent",{content:s.content,format:"html",selection:!0,paste:n.paste});else{-1===(t=s.content).indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,h);var p=(u=m.getRng()).startContainer||(u.parentElement?u.parentElement():null),g=e.getBody();p===g&&m.isCollapsed()&&v.isBlock(g.firstChild)&&function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]}(e,g.firstChild)&&v.isEmpty(g.firstChild)&&((u=v.createRng()).setStart(g.firstChild,0),u.setEnd(g.firstChild,0),m.setRng(u)),m.isCollapsed()||(e.selection.setRng(Ev(e.selection.getRng())),e.getDoc().execCommand("Delete",!1,null),t=function(e,t){var n,r;return n=e.startContainer,r=e.startOffset,3===n.nodeType&&e.collapsed&&(n.data[r]===Fr?(n.deleteData(r,1),/[\u00a0| ]$/.test(t)||(t+=" ")):n.data[r-1]===Fr&&(n.deleteData(r-1,1),/[\u00a0| ]$/.test(t)||(t=" "+t))),t}(e.selection.getRng(),t));var b={context:(i=m.getNode()).nodeName.toLowerCase(),data:n.data,insert:!0};if(a=r.parse(t,b),!0===n.paste&&AC(e.schema,a)&&EC(v,i))return u=TC(o,v,e.selection.getRng(),a),e.selection.setRng(u),void e.fire("SetContent",s);if(function(e){for(var t=a;t=t.walk();)1===t.type&&t.attr("data-mce-fragment","1")}(),"mce_marker"===(f=a.lastChild).attr("id"))for(f=(l=f).prev;f;f=f.walk(!0))if(3===f.type||!v.isBlock(f.name)){e.schema.isValidChild(f.parent.name,"span")&&f.parent.insert(l,f,"br"===f.name);break}if(e._selectionOverrides.showBlockCaretContainer(i),b.invalid){for(sC(e,h),i=m.getNode(),c=e.getBody(),9===i.nodeType?i=f=c:f=i;f!==c;)f=(i=f).parentNode;t=i===c?c.innerHTML:v.getOuterHTML(i),t=o.serialize(r.parse(t.replace(//i,function(){return o.serialize(a)}))),i===c?v.setHTML(c,t):v.setOuterHTML(i,t)}else!function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,o=n.lastChild;!r||r===o&&"BR"===r.nodeName?e.dom.setHTML(n,t):sC(e,t)}}(e,t=o.serialize(a),i);!function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var o=e.getBody(),i=new fv(r);Xn.each(r.select("*[data-mce-fragment]"),function(e){for(var t=e.parentNode;t&&t!==o;t=t.parentNode)n[e.nodeName.toLowerCase()]&&i.compare(t,e)&&r.remove(e,!0)})}}(e,d),function(e,t){var n,r,o,i,c,a=e.dom,s=e.selection;if(t){if(e.selection.scrollIntoView(t),n=function(t){for(var n=e.getBody();t&&t!==n;t=t.parentNode)if("false"===e.dom.getContentEditable(t))return t;return null}(t))return a.remove(t),s.select(n);var l=a.createRng();(i=t.previousSibling)&&3===i.nodeType?(l.setStart(i,i.nodeValue.length),qn.ie||(c=t.nextSibling)&&3===c.nodeType&&(i.appendData(c.data),c.parentNode.removeChild(c))):(l.setStartBefore(t),l.setEndBefore(t)),r=a.getParent(t,a.isBlock),a.remove(t),r&&a.isEmpty(r)&&(e.$(r).empty(),l.setStart(r,0),l.setEnd(r,0),DC(r)||r.getAttribute("data-mce-fragment")||!(o=function(t){var n=Ls.fromRangeStart(t);if(n=El(e.getBody()).next(n))return n.toRange()}(l))?a.add(r,a.create("br",{"data-mce-bogus":"1"})):(l=o,a.remove(r))),s.setRng(l)}}(e,v.get("mce_marker")),function(e){Xn.each(e.getElementsByTagName("*"),function(e){e.removeAttribute("data-mce-fragment")})}(e.getBody()),function(e,t){O.from(e.getParent(t,"td,th")).map(ot.fromDom).each(Km)}(e.dom,e.selection.getStart()),e.fire("SetContent",s),e.addVisual()}}(e,n.content,n.details)},OC={"font-size":"size","font-family":"face"},IC={getFontSize:fC("font-size"),getFontFamily:n(function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},fC("font-family")),toPt:function(e,t){return/[0-9.]+px$/.test(e)?function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}(72*parseInt(e,10)/96,t||0)+"pt":e}},PC=Xn.each,RC=Xn.map,BC=Xn.inArray,jC=(FC.prototype.execCommand=function(e,t,n,r){var o,i,c=!1,a=this;if(!a.editor.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?function(e){mf(e).each(function(t){e.selection.setRng(t)})}(a.editor):a.editor.focus(),(r=a.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n})).isDefaultPrevented())return!1;if(i=e.toLowerCase(),o=a.commands.exec[i])return o(i,t,n),a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(PC(this.editor.plugins,function(r){if(r.execCommand&&r.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!(c=!0)}),c)return c;if(a.editor.theme&&a.editor.theme.execCommand&&a.editor.theme.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{c=a.editor.getDoc().execCommand(e,t,n)}catch(e){}return!!c&&(a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},FC.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(e){}return!1}},FC.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(e){}}},FC.prototype.addCommands=function(e,t){var n=this;t=t||"exec",PC(e,function(e,r){PC(r.toLowerCase().split(","),function(r){n.commands[t][r]=e})})},FC.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,o,i,c){return t.call(n||r.editor,o,i,c)}},FC.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(e){}return!1},FC.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},FC.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},FC.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},FC.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},FC.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},FC.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t?{value:t}:void 0),this.editor.nodeChanged()},FC.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},FC.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},FC.prototype.setupCommands=function(e){var t=this;function n(t){return function(){var n=e.selection.isCollapsed()?[e.dom.getParent(e.selection.getNode(),e.dom.isBlock)]:e.selection.getSelectedBlocks(),r=RC(n,function(n){return!!e.formatter.matchNode(n,t)});return-1!==BC(r,!0)}}this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},"Cut,Copy,Paste":function(n){var r,o=e.getDoc();try{t.execNativeCommand(n)}catch(e){r=!0}if("paste"!==n||o.queryCommandEnabled(n)||(r=!0),r||!o.queryCommandSupported(n)){var i=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");qn.mac&&(i=i.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:i,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),PC("left,center,right,justify".split(","),function(t){r!==t&&e.formatter.remove("align"+t)}),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r,o;t.execNativeCommand(n),(r=e.dom.getParent(e.selection.getNode(),"ol,ul"))&&(o=r.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(o.nodeName)&&(t.storeSelection(),e.dom.split(o,r),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,r)},FontName:function(t,n,r){!function(e,t){var n=mC(e,t);e.formatter.toggle("fontname",{value:function(e){var t=n.split(/\s*,\s*/);return Z(t,function(e){return-1===e.indexOf(" ")||ae(e,'"')||ae(e,"'")?e:"'"+e+"'"}).join(",")}()}),e.nodeChanged()}(e,r)},FontSize:function(t,n,r){!function(e,t){e.formatter.toggle("fontsize",{value:mC(e,t)}),e.nodeChanged()}(e,r)},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,o){var i=o||e.selection.getNode();i!==e.getBody()&&(t.storeSelection(),e.dom.remove(i,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var o=0;e.dom.getParent(e.selection.getNode(),function(t){if(1===t.nodeType&&o++===r)return e.selection.select(t),!1},e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){NC(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var o=e.getContent();e.setContent(o.replace(/tiny_mce_marker/g,function(){return r}))},mceInsertNewLine:function(t,n,r){jz(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){Yb(e,t)},mceRepaint:function(){},InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"
    ")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){var o;"string"==typeof r&&(r={href:r}),o=e.dom.getParent(e.selection.getNode(),"a"),r.href=r.href.replace(/ /g,"%20"),o&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,o)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),Kt.isContentEditableTrue);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},delete:function(){var t;Vz(t=e)||dz(t,!1)||vz(t,!1)||pz(t,!1)||az(t,!1)||Mz(t)||sz(t)||gz(t,!1)||(lC(t,"Delete"),rz(t))},forwardDelete:function(){var t;dz(t=e,!0)||vz(t,!0)||pz(t,!0)||az(t,!0)||Mz(t)||sz(t)||gz(t,!0)||lC(t,"ForwardDelete")},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return Iz(e,r),!0}}),t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return Wb(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",function(){return dC(t=e).fold(function(){return hC(t).map(function(e){return IC.getFontFamily(t.getBody(),e)}).getOr("")},function(e){return IC.getFontFamily(t.getBody(),e)});var t},this),t.addQueryValueHandler("FontSize",function(){return dC(t=e).fold(function(){return hC(t).map(function(e){return IC.getFontSize(t.getBody(),e)}).getOr("")},function(e){return IC.getFontSize(t.getBody(),e)});var t},this)},FC);function FC(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}var $C=Xn.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),qC=(UC.isNative=function(e){return!!$C[e.toLowerCase()]},UC.prototype.fire=function(e,t){var n,r,o,i;if(e=e.toLowerCase(),(t=t||{}).type=e,t.target||(t.target=this.scope),t.preventDefault||(t.preventDefault=function(){t.isDefaultPrevented=u},t.stopPropagation=function(){t.isPropagationStopped=u},t.stopImmediatePropagation=function(){t.isImmediatePropagationStopped=u},t.isDefaultPrevented=l,t.isPropagationStopped=l,t.isImmediatePropagationStopped=l),this.settings.beforeFire&&this.settings.beforeFire(t),n=this.bindings[e])for(r=0,o=n.length;r"),this.parseShortcut))[o.length-1]=Xn.extend(o[o.length-1],{func:n,scope:r||this.editor}),Xn.extend(o[0],{desc:this.editor.translate(t),subpatterns:o.slice(1)})},dM.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},dM.prototype.isFunctionKey=function(e){return"keydown"===e.type&&112<=e.keyCode&&e.keyCode<=123},dM.prototype.matchShortcut=function(e,t){return!!t&&t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&t.alt===e.altKey&&t.shift===e.shiftKey&&!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0)},dM.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},dM);function dM(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(sM(t.shortcuts,function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0}),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))})}function mM(){var e=function(){function e(e,t){return function(n,r){return e[n.toLowerCase()]=ne(ne({},r),{type:t})}}var t={},n={},r={},o={},i={},c={},a={};return{addButton:e(t,"button"),addGroupToolbarButton:e(t,"grouptoolbarbutton"),addToggleButton:e(t,"togglebutton"),addMenuButton:e(t,"menubutton"),addSplitButton:e(t,"splitbutton"),addMenuItem:e(n,"menuitem"),addNestedMenuItem:e(n,"nestedmenuitem"),addToggleMenuItem:e(n,"togglemenuitem"),addAutocompleter:e(r,"autocompleter"),addContextMenu:e(i,"contextmenu"),addContextToolbar:e(c,"contexttoolbar"),addContextForm:e(c,"contextform"),addSidebar:e(a,"sidebar"),addIcon:function(e,t){return o[e.toLowerCase()]=t},getAll:function(){return{buttons:t,menuItems:n,icons:o,popups:r,contextMenus:i,contextToolbars:c,sidebars:a}}}}();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addGroupToolbarButton:e.addGroupToolbarButton,addToggleMenuItem:e.addToggleMenuItem,getAll:e.getAll}}var vM=Xn.each,pM=Xn.trim,gM="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),bM={ftp:21,http:80,https:443,mailto:25},yM=(zM.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},zM.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},zM.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},zM.prototype.toRelative=function(e){var t;if("./"===e)return e;var n=new zM(e,{base_uri:this});if("mce_host"!==n.host&&this.host!==n.host&&n.host||this.port!==n.port||this.protocol!==n.protocol&&""!==n.protocol)return n.getURI();var r=this.getURI(),o=n.getURI();return r===o||"/"===r.charAt(r.length-1)&&r.substr(0,r.length-1)===o?r:(t=this.toRelPath(this.path,n.path),n.query&&(t+="?"+n.query),n.anchor&&(t+="#"+n.anchor),t)},zM.prototype.toAbsolute=function(e,t){var n=new zM(e,{base_uri:this});return n.getURI(t&&this.isSameOrigin(n))},zM.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=bM[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},zM.prototype.toRelPath=function(e,t){var n,r,o,i=0,c="",a=e.substring(0,e.lastIndexOf("/")).split("/");if(n=t.split("/"),a.length>=n.length)for(r=0,o=a.length;r=n.length||a[r]!==n[r]){i=r+1;break}if(a.length=a.length||a[r]!==n[r]){i=r+1;break}if(1===i)return t;for(r=0,o=a.length-(i-1);r]*>( | |\\s| |
    |)<\\/"+n+">[\r\n]*|
    [\r\n]*)$");return t.replace(r,"")}(e,e.serializer.serialize(n,t))}return"text"===t.format||fr(ot.fromDom(n))?t.content=r:t.content=Xn.trim(r),t.no_events||e.fire("GetContent",t),t.content}(t,n,e)});var t,n},SM.prototype.insertContent=function(e,t){t&&(e=MM({content:e},t)),this.execCommand("mceInsertContent",!1,e)},SM.prototype.resetContent=function(e){void 0===e?wf(this,this.startContent,{format:"raw"}):wf(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},SM.prototype.isDirty=function(){return!this.isNotDirty},SM.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},SM.prototype.getContainer=function(){return this.container||(this.container=CM.get(this.editorContainer||this.id+"_parent")),this.container},SM.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},SM.prototype.getElement=function(){return this.targetElm||(this.targetElm=CM.get(this.id)),this.targetElm},SM.prototype.getWin=function(){var e;return this.contentWindow||(e=this.iframeElement)&&(this.contentWindow=e.contentWindow),this.contentWindow},SM.prototype.getDoc=function(){var e;return this.contentDocument||(e=this.getWin())&&(this.contentDocument=e.document),this.contentDocument},SM.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},SM.prototype.convertURL=function(e,t,n){var r=this.settings;return r.urlconverter_callback?this.execCallback("urlconverter_callback",e,n,!0,t):!r.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:r.relative_urls?this.documentBaseURI.toRelative(e):e=this.documentBaseURI.toAbsolute(e,r.remove_script_host)},SM.prototype.addVisual=function(e){var t,n=this,r=n.settings,o=n.dom;e=e||n.getBody(),void 0===n.hasVisual&&(n.hasVisual=r.visual),wM(o.select("table,a",e),function(e){var i;switch(e.nodeName){case"TABLE":return t=r.visual_table_class||"mce-item-table",void((i=o.getAttrib(e,"border"))&&"0"!==i||!n.hasVisual?o.removeClass(e,t):o.addClass(e,t));case"A":return void(o.getAttrib(e,"href")||(i=o.getAttrib(e,"name")||e.id,t=r.visual_anchor_class||"mce-item-anchor",i&&n.hasVisual?o.addClass(e,t):o.removeClass(e,t)))}}),n.fire("VisualAid",{element:e,hasVisual:n.hasVisual})},SM.prototype.remove=function(){!function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),o=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&o&&nh.remove(o.nextSibling),function(e){e.fire("remove")}(e),e.editorManager.remove(e),!e.inline&&r&&function(e){nh.setStyle(e.id,"display",e.orgDisplay)}(e),function(e){e.fire("detach")}(e),nh.remove(e.getContainer()),_f(t),_f(n),e.destroy()}}(this)},SM.prototype.destroy=function(e){!function(e,t){var n=e.selection,r=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),_f(n),_f(r)),function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),nh.unbind(t,"submit reset",e.formEventDelegate))}(e),function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)}(e),e.destroyed=!0):e.remove())}(this,e)},SM.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},SM.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},SM.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},SM.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},SM.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},SM.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},SM);function SM(n,r,o){var i=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=o,this.documentBaseUrl=o.documentBaseURL,MM(this,cM),this.settings=function(e,t,n,r,o){var i=function(e,t,n,r,o){var i={id:t,theme:"silver",toolbar_mode:Sf(e,"floating"),plugins:"",document_base_url:n,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:o.convertURL,url_converter_scope:o};return ne(ne({},i),r?fh:{})}(o,t,n,ah,e);return Lf(sh||lh,sh,i,r,o)}(this,n,this.documentBaseUrl,o.defaultSettings,r),this.settings.suffix&&(o.suffix=this.settings.suffix),this.suffix=o.suffix,this.settings.base_url&&o._setBaseUrl(this.settings.base_url),this.baseUri=o.baseURI,this.settings.referrer_policy&&(tc.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),Qi.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),pc.languageLoad=this.settings.language_load,pc.baseURL=o.baseURL,this.id=n,this.setDirty(!1),this.documentBaseURI=new yM(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new hM(this),this.editorCommands=new jC(this),this.settings.cache_suffix&&(qn.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:mM()};var c=function(n){var r,o=it("design"),i=it({design:{activate:t,deactivate:t,editorReadOnly:!1},readonly:{activate:t,deactivate:t,editorReadOnly:!0}});return(r=n).serializer?QC(r):r.on("PreInit",function(){QC(r)}),function(e){e.on("ShowCaret",function(t){GC(e)&&t.preventDefault()}),e.on("ObjectSelected",function(t){GC(e)&&t.preventDefault()})}(n),{isReadOnly:function(){return GC(n)},set:function(e){return function(e,t,n,r){if(r!==n.get()){if(!te(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?tM(e,n,t,r):e.on("init",function(){return tM(e,n,t,r)})}}(n,i.get(),o,e)},get:function(){return o.get()},register:function(t,n){i.set(function(t,n,r){var o;if(g(aM,n))throw new Error("Cannot override default mode "+n);return ne(ne({},t),((o={})[n]=ne(ne({},r),{deactivate:function(){try{r.deactivate()}catch(t){e.console.error("problem while deactivating editor mode "+n+":",t)}}}),o))}(i.get(),t,n))}}}(this);this.mode=c,this.setMode=c.set,o.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Pi.overrideDefaults(function(){return{context:i.inline?i.getBody():i.getDoc(),element:i.getBody()}})}function LM(e){var t=e.type;NM(FM.get(),function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e)}})}function VM(e){e!==PM&&(e?Pi(window).on("resize scroll",LM):Pi(window).off("resize scroll",LM),PM=e)}function kM(e){var t=BM;delete RM[e.id];for(var n=0;n=n.x&&o.x+o.w<=n.w+n.x&&o.y>=n.y&&o.y+o.h<=n.h+n.y)return r[i];return null},intersect:function(e,t){var n,r,o,i;return n=JM(e.x,t.x),r=JM(e.y,t.y),o=KM(e.x+e.w,t.x+t.w),i=KM(e.y+e.h,t.y+t.h),o-n<0||i-r<0?null:tw(n,r,o-n,i-r)},clamp:function(e,t,n){var r,o,i,c,a,s,l,u,f,h;return a=e.x,s=e.y,l=e.x+e.w,u=e.y+e.h,f=t.x+t.w,h=t.y+t.h,r=JM(0,t.x-a),o=JM(0,t.y-s),i=JM(0,l-f),c=JM(0,u-h),a+=r,s+=o,n&&(l+=r,u+=o,a-=i,s-=c),tw(a,s,(l-=i)-a,(u-=c)-s)},create:tw,fromClientRect:function(e){return tw(e.left,e.top,e.width,e.height)}},rw=Xn.each,ow=Xn.extend;UM.extend=YM=function(e){function t(){var e,t,n;if(!XM&&(this.init&&this.init.apply(this,arguments),t=this.Mixins))for(e=t.length;e--;)(n=t[e]).init&&n.init.apply(this,arguments)}function n(){return this}function r(e,t){return function(){var n,r=this._super;return this._super=a[e],n=t.apply(this,arguments),this._super=r,n}}var o,i,c,a=this.prototype;for(i in XM=!0,o=new this,XM=!1,e.Mixins&&(rw(e.Mixins,function(t){for(var n in t)"init"!==n&&(e[n]=t[n])}),a.Mixins&&(e.Mixins=a.Mixins.concat(e.Mixins))),e.Methods&&rw(e.Methods.split(","),function(t){e[t]=n}),e.Properties&&rw(e.Properties.split(","),function(t){var n="_"+t;e[t]=function(e){return void 0!==e?(this[n]=e,this):this[n]}}),e.Statics&&rw(e.Statics,function(e,n){t[n]=e}),e.Defaults&&a.Defaults&&(e.Defaults=ow({},a.Defaults,e.Defaults)),e)"function"==typeof(c=e[i])&&a[i]?o[i]=r(i,c):o[i]=c;return t.prototype=o,(t.constructor=t).extend=YM,t};var iw,cw,aw,sw,lw=Math.min,uw=Math.max,fw=Math.round,hw={serialize:function(e){var t=JSON.stringify(e);return I(t)?t.replace(/[\u0080-\uFFFF]/g,function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t}):t},parse:function(e){try{return JSON.parse(e)}catch(e){}}},dw={callbacks:{},count:0,send:function(e){var t=this,n=Qi.DOM,r=void 0!==e.count?e.count:t.count,o="tinymce_jsonp_"+r;t.callbacks[r]=function(i){n.remove(o),delete t.callbacks[r],e.callback(i)},n.add(n.doc.body,"script",{id:o,src:e.url,type:"text/javascript"}),t.count++}},mw=ne(ne({},rM),{send:function(t){var n,r=0,o=function(){!t.async||4===n.readyState||1e4n?t+n:n}function a(e,t){return Math.round((/%/.test(e)?("x"===t?H.width():o())/100:1)*parseInt(e,10))}function s(e,t){return e.get("photo")||e.get("photoRegex").test(t)}function l(e,t){return e.get("retinaUrl")&&n.devicePixelRatio>1?t.replace(e.get("photoRegex"),e.get("retinaSuffix")):t}function u(e){"contains"in b[0]&&!b[0].contains(e.target)&&e.target!==g[0]&&(e.stopPropagation(),b.focus())}function f(e){f.str!==e&&(b.add(g).removeClass(f.str).addClass(e),f.str=e)}function h(n){e(t).trigger(n),ce.triggerHandler(n)}function d(n){var o;if(!W){if(o=e(n).data(Q),function(t){F=0,t&&!1!==t&&"nofollow"!==t?(x=e("."+J).filter(function(){return new i(this,e.data(this,Q)).get("rel")===t}),-1===(F=x.index(I.el))&&(x=x.add(I.el),F=x.length-1)):x=e(I.el)}((I=new i(n,o)).get("rel")),!q){q=U=!0,f(I.get("className")),b.css({visibility:"hidden",display:"block",opacity:""}),S=r(ae,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),z.css({width:"",height:""}).append(S),P=C.height()+_.height()+z.outerHeight(!0)-z.height(),R=M.width()+w.width()+z.outerWidth(!0)-z.width(),B=S.outerHeight(!0),j=S.outerWidth(!0);var c=a(I.get("initialWidth"),"x"),s=a(I.get("initialHeight"),"y"),l=I.get("maxWidth"),d=I.get("maxHeight");I.w=Math.max((!1!==l?Math.min(c,a(l,"x")):c)-j-R,0),I.h=Math.max((!1!==d?Math.min(s,a(d,"y")):s)-B-P,0),S.css({width:"",height:I.h}),Y.position(),h(ee),I.get("onOpen"),O.add(k).hide(),b.focus(),I.get("trapFocus")&&t.addEventListener&&(t.addEventListener("focus",u,!0),ce.one(oe,function(){t.removeEventListener("focus",u,!0)})),I.get("returnFocus")&&ce.one(oe,function(){e(I.el).focus()})}var m=parseFloat(I.get("opacity"));g.css({opacity:m==m?m:"",cursor:I.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),I.get("closeButton")?N.html(I.get("close")).appendTo(z):N.appendTo("
    "),p()}}function m(){b||(X=!1,H=e(n),b=r(ae).attr({id:Q,class:!1===e.support.opacity?K+"IE":"",role:"dialog",tabindex:"-1"}).hide(),g=r(ae,"Overlay").hide(),V=e([r(ae,"LoadingOverlay")[0],r(ae,"LoadingGraphic")[0]]),y=r(ae,"Wrapper"),z=r(ae,"Content").append(k=r(ae,"Title"),A=r(ae,"Current"),D=e('File upload error '+n+"
    ").prependTo("#alerts")}void 0!==$.fn.wysiwyg&&(console.log("init_wysiwyg"),$(".editor-wrapper").each(function(){var t=$(this).attr("id");$(this).wysiwyg({toolbarSelector:'[data-target="#'+t+'"]',fileUploadError:e})}),window.prettyPrint,prettyPrint())}function init_cropper(){if(void 0!==$.fn.cropper){console.log("init_cropper");var e=$("#image"),t=$("#download"),n=$("#dataX"),r=$("#dataY"),o=$("#dataHeight"),i=$("#dataWidth"),c=$("#dataRotate"),a=$("#dataScaleX"),s=$("#dataScaleY"),l={aspectRatio:16/9,preview:".img-preview",crop:function(e){n.val(Math.round(e.x)),r.val(Math.round(e.y)),o.val(Math.round(e.height)),i.val(Math.round(e.width)),c.val(e.rotate),a.val(e.scaleX),s.val(e.scaleY)}};$('[data-toggle="tooltip"]').tooltip(),e.on({"build.cropper":function(e){console.log(e.type)},"built.cropper":function(e){console.log(e.type)},"cropstart.cropper":function(e){console.log(e.type,e.action)},"cropmove.cropper":function(e){console.log(e.type,e.action)},"cropend.cropper":function(e){console.log(e.type,e.action)},"crop.cropper":function(e){console.log(e.type,e.x,e.y,e.width,e.height,e.rotate,e.scaleX,e.scaleY)},"zoom.cropper":function(e){console.log(e.type,e.ratio)}}).cropper(l),$.isFunction(document.createElement("canvas").getContext)||$('button[data-method="getCroppedCanvas"]').prop("disabled",!0),void 0===document.createElement("cropper").style.transition&&($('button[data-method="rotate"]').prop("disabled",!0),$('button[data-method="scale"]').prop("disabled",!0)),void 0===t[0].download&&t.addClass("disabled"),$(".docs-toggles").on("change","input",function(){var t,n,r=$(this),o=r.attr("name"),i=r.prop("type");e.data("cropper")&&("checkbox"===i?(l[o]=r.prop("checked"),t=e.cropper("getCropBoxData"),n=e.cropper("getCanvasData"),l.built=function(){e.cropper("setCropBoxData",t),e.cropper("setCanvasData",n)}):"radio"===i&&(l[o]=r.val()),e.cropper("destroy").cropper(l))}),$(".docs-buttons").on("click","[data-method]",function(){var n,r,o=$(this),i=o.data();if(!o.prop("disabled")&&!o.hasClass("disabled")&&e.data("cropper")&&i.method){if(void 0!==(i=$.extend({},i)).target&&(n=$(i.target),void 0===i.option))try{i.option=JSON.parse(n.val())}catch(e){console.log(e.message)}switch(r=e.cropper(i.method,i.option,i.secondOption),i.method){case"scaleX":case"scaleY":$(this).data("option",-i.option);break;case"getCroppedCanvas":r&&($("#getCroppedCanvasModal").modal().find(".modal-body").html(r),t.hasClass("disabled")||t.attr("href",r.toDataURL()))}if($.isPlainObject(r)&&n)try{n.val(JSON.stringify(r))}catch(e){console.log(e.message)}}}),$(document.body).on("keydown",function(t){if(e.data("cropper")&&!(this.scrollTop>300))switch(t.which){case 37:t.preventDefault(),e.cropper("move",-1,0);break;case 38:t.preventDefault(),e.cropper("move",0,-1);break;case 39:t.preventDefault(),e.cropper("move",1,0);break;case 40:t.preventDefault(),e.cropper("move",0,1)}});var u,f=$("#inputImage"),h=window.URL||window.webkitURL;h?f.change(function(){var t,n=this.files;e.data("cropper")&&n&&n.length&&(t=n[0],/^image\/\w+$/.test(t.type)?(u=h.createObjectURL(t),e.one("built.cropper",function(){h.revokeObjectURL(u)}).cropper("reset").cropper("replace",u),f.val("")):window.alert("Please choose an image file."))}):f.prop("disabled",!0).parent().addClass("disabled")}}function init_knob(){if(void 0!==$.fn.knob){console.log("init_knob"),$(".knob").knob({change:function(e){},release:function(e){console.log("release : "+e)},cancel:function(){console.log("cancel : ",this)},draw:function(){if("tron"==this.$.data("skin")){this.cursorExt=.3;var e,t=this.arc(this.cv);return this.g.lineWidth=this.lineWidth,this.o.displayPrevious&&(e=this.arc(this.v),this.g.beginPath(),this.g.strokeStyle=this.pColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth,e.s,e.e,e.d),this.g.stroke()),this.g.beginPath(),this.g.strokeStyle=this.o.fgColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth,t.s,t.e,t.d),this.g.stroke(),this.g.lineWidth=2,this.g.beginPath(),this.g.strokeStyle=this.o.fgColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth+1+2*this.lineWidth/3,0,2*Math.PI,!1),this.g.stroke(),!1}}});var e,t=0,n=0,r=0,o=$("div.idir"),i=$("div.ival");$("input.infinite").knob({min:0,max:20,stopper:!1,change:function(){e>this.cv?t?(r--,o.show().html("-").fadeOut(),i.html(r),t=0):(t=1,n=0):e
    ";document.getElementById("custom_notifications")?($("#custom_notifications ul.notifications").append("
  • "),$("#custom_notifications #notif-group").append(n),e++,CustomTabs(t)):alert("doesnt exists")},CustomTabs=function(e){$(".tabbed_notifications > div").hide(),$(".tabbed_notifications > div:first-of-type").show(),$("#custom_notifications").removeClass("dsp_none"),$(".notifications a").click(function(e){e.preventDefault();var t=$(this),n="#"+t.parents(".notifications").data("tabbed_notifications"),r=t.closest("li").siblings().children("a"),o=t.attr("href");r.removeClass("active"),t.addClass("active"),$(n).children("div").hide(),$(o).show()})},CustomTabs();var t=idname="";$(document).on("click",".notification_close",function(e){idname=$(this).parent().parent().attr("id"),t=idname.substr(-2),$("#ntf"+t).remove(),$("#ntlink"+t).parent().remove(),$(".notifications a").first().addClass("active"),$("#notif-group div").first().css("display","block")})}}function init_EasyPieChart(){if(void 0!==$.fn.easyPieChart){console.log("init_EasyPieChart"),$(".chart").easyPieChart({easing:"easeOutElastic",delay:3e3,barColor:"#26B99A",trackColor:"#fff",scaleColor:!1,lineWidth:20,trackWidth:16,lineCap:"butt",onStep:function(e,t,n){$(this.el).find(".percent").text(Math.round(n))}});var e=window.chart=$(".chart").data("easyPieChart");$(".js_update").on("click",function(){e.update(200*Math.random()-100)});var t=$.fn.popover.Constructor.prototype.leave;$.fn.popover.Constructor.prototype.leave=function(e){var n,r,o=e instanceof this.constructor?e:$(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);t.call(this,e),e.currentTarget&&(n=$(e.currentTarget).siblings(".popover"),r=o.timeout,n.one("mouseenter",function(){clearTimeout(r),n.one("mouseleave",function(){$.fn.popover.Constructor.prototype.leave.call(o,o)})}))},$("body").popover({selector:"[data-popover]",trigger:"click hover",delay:{show:50,hide:400}})}}function init_charts(){if(console.log("run_charts typeof ["+typeof Chart+"]"),"undefined"!=typeof Chart){if(console.log("init_charts"),Chart.defaults.global.legend={enabled:!1},$("#canvas_line").length&&new Chart(document.getElementById("canvas_line"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#canvas_line1").length&&new Chart(document.getElementById("canvas_line1"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#canvas_line2").length&&new Chart(document.getElementById("canvas_line2"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#canvas_line3").length&&new Chart(document.getElementById("canvas_line3"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#canvas_line4").length&&new Chart(document.getElementById("canvas_line4"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#lineChart").length){var e=document.getElementById("lineChart");new Chart(e,{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}})}if($("#mybarChart").length){e=document.getElementById("mybarChart");new Chart(e,{type:"bar",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"# of Votes",backgroundColor:"#26B99A",data:[51,30,40,28,92,50,45]},{label:"# of Votes",backgroundColor:"#03586A",data:[41,56,25,48,72,34,12]}]},options:{scales:{yAxes:[{ticks:{beginAtZero:!0}}]}}})}if($("#canvasDoughnut").length){e=document.getElementById("canvasDoughnut");var t={labels:["Dark Grey","Purple Color","Gray Color","Green Color","Blue Color"],datasets:[{data:[120,50,140,180,100],backgroundColor:["#455C73","#9B59B6","#BDC3C7","#26B99A","#3498DB"],hoverBackgroundColor:["#34495E","#B370CF","#CFD4D8","#36CAAB","#49A9EA"]}]};new Chart(e,{type:"doughnut",tooltipFillColor:"rgba(51, 51, 51, 0.55)",data:t})}if($("#canvasRadar").length){e=document.getElementById("canvasRadar"),t={labels:["Eating","Drinking","Sleeping","Designing","Coding","Cycling","Running"],datasets:[{label:"My First dataset",backgroundColor:"rgba(3, 88, 106, 0.2)",borderColor:"rgba(3, 88, 106, 0.80)",pointBorderColor:"rgba(3, 88, 106, 0.80)",pointBackgroundColor:"rgba(3, 88, 106, 0.80)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",data:[65,59,90,81,56,55,40]},{label:"My Second dataset",backgroundColor:"rgba(38, 185, 154, 0.2)",borderColor:"rgba(38, 185, 154, 0.85)",pointColor:"rgba(38, 185, 154, 0.85)",pointStrokeColor:"#fff",pointHighlightFill:"#fff",pointHighlightStroke:"rgba(151,187,205,1)",data:[28,48,40,19,96,27,100]}]};new Chart(e,{type:"radar",data:t})}if($("#pieChart").length){e=document.getElementById("pieChart"),t={datasets:[{data:[120,50,140,180,100],backgroundColor:["#455C73","#9B59B6","#BDC3C7","#26B99A","#3498DB"],label:"My dataset"}],labels:["Dark Gray","Purple","Gray","Green","Blue"]};new Chart(e,{data:t,type:"pie",otpions:{legend:!1}})}if($("#polarArea").length){e=document.getElementById("polarArea"),t={datasets:[{data:[120,50,140,180,100],backgroundColor:["#455C73","#9B59B6","#BDC3C7","#26B99A","#3498DB"],label:"My dataset"}],labels:["Dark Gray","Purple","Gray","Green","Blue"]};new Chart(e,{data:t,type:"polarArea",options:{scale:{ticks:{beginAtZero:!0}}}})}}}function init_compose(){void 0!==$.fn.slideToggle&&(console.log("init_compose"),$("#compose, .compose-close").click(function(){$(".compose").slideToggle()}))}function init_calendar(){if(void 0!==$.fn.fullCalendar){console.log("init_calendar");var e,t=new Date,n=t.getDate(),r=t.getMonth(),o=t.getFullYear(),i=$("#calendar").fullCalendar({header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay,listMonth"},selectable:!0,selectHelper:!0,select:function(t,n,r){$("#fc_create").click(),e=t,ended=n,$(".antosubmit").on("click",function(){var t=$("#title").val();return n&&(ended=n),$("#event_type").val(),t&&i.fullCalendar("renderEvent",{title:t,start:e,end:n,allDay:r},!0),$("#title").val(""),i.fullCalendar("unselect"),$(".antoclose").click(),!1})},eventClick:function(e,t,n){$("#fc_edit").click(),$("#title2").val(e.title),$("#event_type").val(),$(".antosubmit2").on("click",function(){e.title=$("#title2").val(),i.fullCalendar("updateEvent",e),$(".antoclose2").click()}),i.fullCalendar("unselect")},editable:!0,events:[{title:"All Day Event",start:new Date(o,r,1)},{title:"Long Event",start:new Date(o,r,n-5),end:new Date(o,r,n-2)},{title:"Meeting",start:new Date(o,r,n,10,30),allDay:!1},{title:"Lunch",start:new Date(o,r,n+14,12,0),end:new Date(o,r,n,14,0),allDay:!1},{title:"Birthday Party",start:new Date(o,r,n+1,19,0),end:new Date(o,r,n+1,22,30),allDay:!1},{title:"Click for Google",start:new Date(o,r,28),end:new Date(o,r,29),url:"http://google.com/"}]})}}function init_DataTables(){if(console.log("run_datatables"),void 0!==$.fn.DataTable){console.log("init_DataTables");TableManageButtons=function(){"use strict";return{init:function(){$("#datatable-buttons").length&&$("#datatable-buttons").DataTable({dom:"Bfrtip",buttons:[{extend:"copy",className:"btn-sm"},{extend:"csv",className:"btn-sm"},{extend:"excel",className:"btn-sm"},{extend:"pdfHtml5",className:"btn-sm"},{extend:"print",className:"btn-sm"}],responsive:!0})}}}(),$("#datatable").dataTable(),$("#datatable-keytable").DataTable({keys:!0}),$("#datatable-responsive").DataTable(),$("#datatable-scroller").DataTable({ajax:"js/datatables/json/scroller-demo.json",deferRender:!0,scrollY:380,scrollCollapse:!0,scroller:!0}),$("#datatable-fixed-header").DataTable({fixedHeader:!0});var e=$("#datatable-checkbox");e.dataTable({order:[[1,"asc"]],columnDefs:[{orderable:!1,targets:[0]}]}),e.on("draw.dt",function(){$("checkbox input").iCheck({checkboxClass:"icheckbox_flat-green"})}),TableManageButtons.init()}}function init_morris_charts(){"undefined"!=typeof Morris&&(console.log("init_morris_charts"),$("#graph_bar").length&&Morris.Bar({element:"graph_bar",data:[{device:"iPhone 4",geekbench:380},{device:"iPhone 4S",geekbench:655},{device:"iPhone 3GS",geekbench:275},{device:"iPhone 5",geekbench:1571},{device:"iPhone 5S",geekbench:655},{device:"iPhone 6",geekbench:2154},{device:"iPhone 6 Plus",geekbench:1144},{device:"iPhone 6S",geekbench:2371},{device:"iPhone 6S Plus",geekbench:1471},{device:"Other",geekbench:1371}],xkey:"device",ykeys:["geekbench"],labels:["Geekbench"],barRatio:.4,barColors:["#26B99A","#34495E","#ACADAC","#3498DB"],xLabelAngle:35,hideHover:"auto",resize:!0}),$("#graph_bar_group").length&&Morris.Bar({element:"graph_bar_group",data:[{period:"2016-10-01",licensed:807,sorned:660},{period:"2016-09-30",licensed:1251,sorned:729},{period:"2016-09-29",licensed:1769,sorned:1018},{period:"2016-09-20",licensed:2246,sorned:1461},{period:"2016-09-19",licensed:2657,sorned:1967},{period:"2016-09-18",licensed:3148,sorned:2627},{period:"2016-09-17",licensed:3471,sorned:3740},{period:"2016-09-16",licensed:2871,sorned:2216},{period:"2016-09-15",licensed:2401,sorned:1656},{period:"2016-09-10",licensed:2115,sorned:1022}],xkey:"period",barColors:["#26B99A","#34495E","#ACADAC","#3498DB"],ykeys:["licensed","sorned"],labels:["Licensed","SORN"],hideHover:"auto",xLabelAngle:60,resize:!0}),$("#graphx").length&&Morris.Bar({element:"graphx",data:[{x:"2015 Q1",y:2,z:3,a:4},{x:"2015 Q2",y:3,z:5,a:6},{x:"2015 Q3",y:4,z:3,a:2},{x:"2015 Q4",y:2,z:4,a:5}],xkey:"x",ykeys:["y","z","a"],barColors:["#26B99A","#34495E","#ACADAC","#3498DB"],hideHover:"auto",labels:["Y","Z","A"],resize:!0}).on("click",function(e,t){console.log(e,t)}),$("#graph_area").length&&Morris.Area({element:"graph_area",data:[{period:"2014 Q1",iphone:2666,ipad:null,itouch:2647},{period:"2014 Q2",iphone:2778,ipad:2294,itouch:2441},{period:"2014 Q3",iphone:4912,ipad:1969,itouch:2501},{period:"2014 Q4",iphone:3767,ipad:3597,itouch:5689},{period:"2015 Q1",iphone:6810,ipad:1914,itouch:2293},{period:"2015 Q2",iphone:5670,ipad:4293,itouch:1881},{period:"2015 Q3",iphone:4820,ipad:3795,itouch:1588},{period:"2015 Q4",iphone:15073,ipad:5967,itouch:5175},{period:"2016 Q1",iphone:10687,ipad:4460,itouch:2028},{period:"2016 Q2",iphone:8432,ipad:5713,itouch:1791}],xkey:"period",ykeys:["iphone","ipad","itouch"],lineColors:["#26B99A","#34495E","#ACADAC","#3498DB"],labels:["iPhone","iPad","iPod Touch"],pointSize:2,hideHover:"auto",resize:!0}),$("#graph_donut").length&&Morris.Donut({element:"graph_donut",data:[{label:"Jam",value:25},{label:"Frosted",value:40},{label:"Custard",value:25},{label:"Sugar",value:10}],colors:["#26B99A","#34495E","#ACADAC","#3498DB"],formatter:function(e){return e+"%"},resize:!0}),$("#graph_line").length&&(Morris.Line({element:"graph_line",xkey:"year",ykeys:["value"],labels:["Value"],hideHover:"auto",lineColors:["#26B99A","#34495E","#ACADAC","#3498DB"],data:[{year:"2012",value:20},{year:"2013",value:10},{year:"2014",value:5},{year:"2015",value:5},{year:"2016",value:20}],resize:!0}),$MENU_TOGGLE.on("click",function(){$(window).resize()})))}function init_echarts(){if("undefined"!=typeof echarts){console.log("init_echarts");var e={color:["#26B99A","#34495E","#BDC3C7","#3498DB","#9B59B6","#8abb6f","#759c6a","#bfd3b7"],title:{itemGap:8,textStyle:{fontWeight:"normal",color:"#408829"}},dataRange:{color:["#1f610a","#97b58d"]},toolbox:{color:["#408829","#408829","#408829","#408829"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#408829",type:"dashed"},crossStyle:{color:"#408829"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(64,136,41,0.2)",handleColor:"#408829"},grid:{borderWidth:0},categoryAxis:{axisLine:{lineStyle:{color:"#408829"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#408829"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#408829"},controlStyle:{normal:{color:"#408829"},emphasis:{color:"#408829"}}},k:{itemStyle:{normal:{color:"#68a54a",color0:"#a9cba2",lineStyle:{width:1,color:"#408829",color0:"#86b379"}}}},map:{itemStyle:{normal:{areaStyle:{color:"#ddd"},label:{textStyle:{color:"#c12e34"}}},emphasis:{areaStyle:{color:"#99d2dd"},label:{textStyle:{color:"#c12e34"}}}}},force:{itemStyle:{normal:{linkStyle:{strokeColor:"#408829"}}}},chord:{padding:4,itemStyle:{normal:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"},chordStyle:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"}}},emphasis:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"},chordStyle:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"}}}}},gauge:{startAngle:225,endAngle:-45,axisLine:{show:!0,lineStyle:{color:[[.2,"#86b379"],[.8,"#68a54a"],[1,"#408829"]],width:8}},axisTick:{splitNumber:10,length:12,lineStyle:{color:"auto"}},axisLabel:{textStyle:{color:"auto"}},splitLine:{length:18,lineStyle:{color:"auto"}},pointer:{length:"90%",color:"auto"},title:{textStyle:{color:"#333"}},detail:{textStyle:{color:"auto"}}},textStyle:{fontFamily:"Arial, Verdana, sans-serif"}};if($("#mainb").length)echarts.init(document.getElementById("mainb"),e).setOption({title:{text:"Graph title",subtext:"Graph Sub-text"},tooltip:{trigger:"axis"},legend:{data:["sales","purchases"]},toolbox:{show:!1},calculable:!1,xAxis:[{type:"category",data:["1?","2?","3?","4?","5?","6?","7?","8?","9?","10?","11?","12?"]}],yAxis:[{type:"value"}],series:[{name:"sales",type:"bar",data:[2,4.9,7,23.2,25.6,76.7,135.6,162.2,32.6,20,6.4,3.3],markPoint:{data:[{type:"max",name:"???"},{type:"min",name:"???"}]},markLine:{data:[{type:"average",name:"???"}]}},{name:"purchases",type:"bar",data:[2.6,5.9,9,26.4,28.7,70.7,175.6,182.2,48.7,18.8,6,2.3],markPoint:{data:[{name:"sales",value:182.2,xAxis:7,yAxis:183},{name:"purchases",value:2.3,xAxis:11,yAxis:3}]},markLine:{data:[{type:"average",name:"???"}]}}]});if($("#echart_sonar").length)echarts.init(document.getElementById("echart_sonar"),e).setOption({title:{text:"Budget vs spending",subtext:"Subtitle"},tooltip:{trigger:"item"},legend:{orient:"vertical",x:"right",y:"bottom",data:["Allocated Budget","Actual Spending"]},toolbox:{show:!0,feature:{restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},polar:[{indicator:[{text:"Sales",max:6e3},{text:"Administration",max:16e3},{text:"Information Techology",max:3e4},{text:"Customer Support",max:38e3},{text:"Development",max:52e3},{text:"Marketing",max:25e3}]}],calculable:!0,series:[{name:"Budget vs spending",type:"radar",data:[{value:[4300,1e4,28e3,35e3,5e4,19e3],name:"Allocated Budget"},{value:[5e3,14e3,28e3,31e3,42e3,21e3],name:"Actual Spending"}]}]});if($("#echart_pyramid").length)echarts.init(document.getElementById("echart_pyramid"),e).setOption({title:{text:"Echart Pyramid Graph",subtext:"Subtitle"},tooltip:{trigger:"item",formatter:"{a}
    {b} : {c}%"},toolbox:{show:!0,feature:{restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},legend:{data:["Something #1","Something #2","Something #3","Something #4","Something #5"],orient:"vertical",x:"left",y:"bottom"},calculable:!0,series:[{name:"漏斗图",type:"funnel",width:"40%",data:[{value:60,name:"Something #1"},{value:40,name:"Something #2"},{value:20,name:"Something #3"},{value:80,name:"Something #4"},{value:100,name:"Something #5"}]}]});if($("#echart_gauge").length)echarts.init(document.getElementById("echart_gauge"),e).setOption({tooltip:{formatter:"{a}
    {b} : {c}%"},toolbox:{show:!0,feature:{restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},series:[{name:"Performance",type:"gauge",center:["50%","50%"],startAngle:140,endAngle:-140,min:0,max:100,precision:0,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"lightgreen"],[.4,"orange"],[.8,"skyblue"],[1,"#ff4500"]],width:30}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,formatter:function(e){switch(e+""){case"10":return"a";case"30":return"b";case"60":return"c";case"90":return"d";default:return""}},textStyle:{color:"#333"}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},pointer:{length:"80%",width:8,color:"auto"},title:{show:!0,offsetCenter:["-65%",-10],textStyle:{color:"#333",fontSize:15}},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:40,offsetCenter:["-60%",10],formatter:"{value}%",textStyle:{color:"auto",fontSize:30}},data:[{value:50,name:"Performance"}]}]});if($("#echart_line").length)echarts.init(document.getElementById("echart_line"),e).setOption({title:{text:"Line Graph",subtext:"Subtitle"},tooltip:{trigger:"axis"},legend:{x:220,y:40,data:["Intent","Pre-order","Deal"]},toolbox:{show:!0,feature:{magicType:{show:!0,title:{line:"Line",bar:"Bar",stack:"Stack",tiled:"Tiled"},type:["line","bar","stack","tiled"]},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Deal",type:"line",smooth:!0,itemStyle:{normal:{areaStyle:{type:"default"}}},data:[10,12,21,54,260,830,710]},{name:"Pre-order",type:"line",smooth:!0,itemStyle:{normal:{areaStyle:{type:"default"}}},data:[30,182,434,791,390,30,10]},{name:"Intent",type:"line",smooth:!0,itemStyle:{normal:{areaStyle:{type:"default"}}},data:[1320,1132,601,234,120,90,20]}]});if($("#echart_scatter").length)echarts.init(document.getElementById("echart_scatter"),e).setOption({title:{text:"Scatter Graph",subtext:"Heinz 2003"},tooltip:{trigger:"axis",showDelay:0,axisPointer:{type:"cross",lineStyle:{type:"dashed",width:1}}},legend:{data:["Data2","Data1"]},toolbox:{show:!0,feature:{saveAsImage:{show:!0,title:"Save Image"}}},xAxis:[{type:"value",scale:!0,axisLabel:{formatter:"{value} cm"}}],yAxis:[{type:"value",scale:!0,axisLabel:{formatter:"{value} kg"}}],series:[{name:"Data1",type:"scatter",tooltip:{trigger:"item",formatter:function(e){return e.value.length>1?e.seriesName+" :
    "+e.value[0]+"cm "+e.value[1]+"kg ":e.seriesName+" :
    "+e.name+" : "+e.value+"kg "}},data:[[161.2,51.6],[167.5,59],[159.5,49.2],[157,63],[155.8,53.6],[170,59],[159.1,47.6],[166,69.8],[176.2,66.8],[160.2,75.2],[172.5,55.2],[170.9,54.2],[172.9,62.5],[153.4,42],[160,50],[147.2,49.8],[168.2,49.2],[175,73.2],[157,47.8],[167.6,68.8],[159.5,50.6],[175,82.5],[166.8,57.2],[176.5,87.8],[170.2,72.8],[174,54.5],[173,59.8],[179.9,67.3],[170.5,67.8],[160,47],[154.4,46.2],[162,55],[176.5,83],[160,54.4],[152,45.8],[162.1,53.6],[170,73.2],[160.2,52.1],[161.3,67.9],[166.4,56.6],[168.9,62.3],[163.8,58.5],[167.6,54.5],[160,50.2],[161.3,60.3],[167.6,58.3],[165.1,56.2],[160,50.2],[170,72.9],[157.5,59.8],[167.6,61],[160.7,69.1],[163.2,55.9],[152.4,46.5],[157.5,54.3],[168.3,54.8],[180.3,60.7],[165.5,60],[165,62],[164.5,60.3],[156,52.7],[160,74.3],[163,62],[165.7,73.1],[161,80],[162,54.7],[166,53.2],[174,75.7],[172.7,61.1],[167.6,55.7],[151.1,48.7],[164.5,52.3],[163.5,50],[152,59.3],[169,62.5],[164,55.7],[161.2,54.8],[155,45.9],[170,70.6],[176.2,67.2],[170,69.4],[162.5,58.2],[170.3,64.8],[164.1,71.6],[169.5,52.8],[163.2,59.8],[154.5,49],[159.8,50],[173.2,69.2],[170,55.9],[161.4,63.4],[169,58.2],[166.2,58.6],[159.4,45.7],[162.5,52.2],[159,48.6],[162.8,57.8],[159,55.6],[179.8,66.8],[162.9,59.4],[161,53.6],[151.1,73.2],[168.2,53.4],[168.9,69],[173.2,58.4],[171.8,56.2],[178,70.6],[164.3,59.8],[163,72],[168.5,65.2],[166.8,56.6],[172.7,105.2],[163.5,51.8],[169.4,63.4],[167.8,59],[159.5,47.6],[167.6,63],[161.2,55.2],[160,45],[163.2,54],[162.2,50.2],[161.3,60.2],[149.5,44.8],[157.5,58.8],[163.2,56.4],[172.7,62],[155,49.2],[156.5,67.2],[164,53.8],[160.9,54.4],[162.8,58],[167,59.8],[160,54.8],[160,43.2],[168.9,60.5],[158.2,46.4],[156,64.4],[160,48.8],[167.1,62.2],[158,55.5],[167.6,57.8],[156,54.6],[162.1,59.2],[173.4,52.7],[159.8,53.2],[170.5,64.5],[159.2,51.8],[157.5,56],[161.3,63.6],[162.6,63.2],[160,59.5],[168.9,56.8],[165.1,64.1],[162.6,50],[165.1,72.3],[166.4,55],[160,55.9],[152.4,60.4],[170.2,69.1],[162.6,84.5],[170.2,55.9],[158.8,55.5],[172.7,69.5],[167.6,76.4],[162.6,61.4],[167.6,65.9],[156.2,58.6],[175.2,66.8],[172.1,56.6],[162.6,58.6],[160,55.9],[165.1,59.1],[182.9,81.8],[166.4,70.7],[165.1,56.8],[177.8,60],[165.1,58.2],[175.3,72.7],[154.9,54.1],[158.8,49.1],[172.7,75.9],[168.9,55],[161.3,57.3],[167.6,55],[165.1,65.5],[175.3,65.5],[157.5,48.6],[163.8,58.6],[167.6,63.6],[165.1,55.2],[165.1,62.7],[168.9,56.6],[162.6,53.9],[164.5,63.2],[176.5,73.6],[168.9,62],[175.3,63.6],[159.4,53.2],[160,53.4],[170.2,55],[162.6,70.5],[167.6,54.5],[162.6,54.5],[160.7,55.9],[160,59],[157.5,63.6],[162.6,54.5],[152.4,47.3],[170.2,67.7],[165.1,80.9],[172.7,70.5],[165.1,60.9],[170.2,63.6],[170.2,54.5],[170.2,59.1],[161.3,70.5],[167.6,52.7],[167.6,62.7],[165.1,86.3],[162.6,66.4],[152.4,67.3],[168.9,63],[170.2,73.6],[175.2,62.3],[175.2,57.7],[160,55.4],[165.1,104.1],[174,55.5],[170.2,77.3],[160,80.5],[167.6,64.5],[167.6,72.3],[167.6,61.4],[154.9,58.2],[162.6,81.8],[175.3,63.6],[171.4,53.4],[157.5,54.5],[165.1,53.6],[160,60],[174,73.6],[162.6,61.4],[174,55.5],[162.6,63.6],[161.3,60.9],[156.2,60],[149.9,46.8],[169.5,57.3],[160,64.1],[175.3,63.6],[169.5,67.3],[160,75.5],[172.7,68.2],[162.6,61.4],[157.5,76.8],[176.5,71.8],[164.4,55.5],[160.7,48.6],[174,66.4],[163.8,67.3]],markPoint:{data:[{type:"max",name:"Max"},{type:"min",name:"Min"}]},markLine:{data:[{type:"average",name:"Mean"}]}},{name:"Data2",type:"scatter",tooltip:{trigger:"item",formatter:function(e){return e.value.length>1?e.seriesName+" :
    "+e.value[0]+"cm "+e.value[1]+"kg ":e.seriesName+" :
    "+e.name+" : "+e.value+"kg "}},data:[[174,65.6],[175.3,71.8],[193.5,80.7],[186.5,72.6],[187.2,78.8],[181.5,74.8],[184,86.4],[184.5,78.4],[175,62],[184,81.6],[180,76.6],[177.8,83.6],[192,90],[176,74.6],[174,71],[184,79.6],[192.7,93.8],[171.5,70],[173,72.4],[176,85.9],[176,78.8],[180.5,77.8],[172.7,66.2],[176,86.4],[173.5,81.8],[178,89.6],[180.3,82.8],[180.3,76.4],[164.5,63.2],[173,60.9],[183.5,74.8],[175.5,70],[188,72.4],[189.2,84.1],[172.8,69.1],[170,59.5],[182,67.2],[170,61.3],[177.8,68.6],[184.2,80.1],[186.7,87.8],[171.4,84.7],[172.7,73.4],[175.3,72.1],[180.3,82.6],[182.9,88.7],[188,84.1],[177.2,94.1],[172.1,74.9],[167,59.1],[169.5,75.6],[174,86.2],[172.7,75.3],[182.2,87.1],[164.1,55.2],[163,57],[171.5,61.4],[184.2,76.8],[174,86.8],[174,72.2],[177,71.6],[186,84.8],[167,68.2],[171.8,66.1],[182,72],[167,64.6],[177.8,74.8],[164.5,70],[192,101.6],[175.5,63.2],[171.2,79.1],[181.6,78.9],[167.4,67.7],[181.1,66],[177,68.2],[174.5,63.9],[177.5,72],[170.5,56.8],[182.4,74.5],[197.1,90.9],[180.1,93],[175.5,80.9],[180.6,72.7],[184.4,68],[175.5,70.9],[180.6,72.5],[177,72.5],[177.1,83.4],[181.6,75.5],[176.5,73],[175,70.2],[174,73.4],[165.1,70.5],[177,68.9],[192,102.3],[176.5,68.4],[169.4,65.9],[182.1,75.7],[179.8,84.5],[175.3,87.7],[184.9,86.4],[177.3,73.2],[167.4,53.9],[178.1,72],[168.9,55.5],[157.2,58.4],[180.3,83.2],[170.2,72.7],[177.8,64.1],[172.7,72.3],[165.1,65],[186.7,86.4],[165.1,65],[174,88.6],[175.3,84.1],[185.4,66.8],[177.8,75.5],[180.3,93.2],[180.3,82.7],[177.8,58],[177.8,79.5],[177.8,78.6],[177.8,71.8],[177.8,116.4],[163.8,72.2],[188,83.6],[198.1,85.5],[175.3,90.9],[166.4,85.9],[190.5,89.1],[166.4,75],[177.8,77.7],[179.7,86.4],[172.7,90.9],[190.5,73.6],[185.4,76.4],[168.9,69.1],[167.6,84.5],[175.3,64.5],[170.2,69.1],[190.5,108.6],[177.8,86.4],[190.5,80.9],[177.8,87.7],[184.2,94.5],[176.5,80.2],[177.8,72],[180.3,71.4],[171.4,72.7],[172.7,84.1],[172.7,76.8],[177.8,63.6],[177.8,80.9],[182.9,80.9],[170.2,85.5],[167.6,68.6],[175.3,67.7],[165.1,66.4],[185.4,102.3],[181.6,70.5],[172.7,95.9],[190.5,84.1],[179.1,87.3],[175.3,71.8],[170.2,65.9],[193,95.9],[171.4,91.4],[177.8,81.8],[177.8,96.8],[167.6,69.1],[167.6,82.7],[180.3,75.5],[182.9,79.5],[176.5,73.6],[186.7,91.8],[188,84.1],[188,85.9],[177.8,81.8],[174,82.5],[177.8,80.5],[171.4,70],[185.4,81.8],[185.4,84.1],[188,90.5],[188,91.4],[182.9,89.1],[176.5,85],[175.3,69.1],[175.3,73.6],[188,80.5],[188,82.7],[175.3,86.4],[170.5,67.7],[179.1,92.7],[177.8,93.6],[175.3,70.9],[182.9,75],[170.8,93.2],[188,93.2],[180.3,77.7],[177.8,61.4],[185.4,94.1],[168.9,75],[185.4,83.6],[180.3,85.5],[174,73.9],[167.6,66.8],[182.9,87.3],[160,72.3],[180.3,88.6],[167.6,75.5],[186.7,101.4],[175.3,91.1],[175.3,67.3],[175.9,77.7],[175.3,81.8],[179.1,75.5],[181.6,84.5],[177.8,76.6],[182.9,85],[177.8,102.5],[184.2,77.3],[179.1,71.8],[176.5,87.9],[188,94.3],[174,70.9],[167.6,64.5],[170.2,77.3],[167.6,72.3],[188,87.3],[174,80],[176.5,82.3],[180.3,73.6],[167.6,74.1],[188,85.9],[180.3,73.2],[167.6,76.3],[183,65.9],[183,90.9],[179.1,89.1],[170.2,62.3],[177.8,82.7],[179.1,79.1],[190.5,98.2],[177.8,84.1],[180.3,83.2],[180.3,83.2]],markPoint:{data:[{type:"max",name:"Max"},{type:"min",name:"Min"}]},markLine:{data:[{type:"average",name:"Mean"}]}}]});if($("#echart_bar_horizontal").length)echarts.init(document.getElementById("echart_bar_horizontal"),e).setOption({title:{text:"Bar Graph",subtext:"Graph subtitle"},tooltip:{trigger:"axis"},legend:{x:100,data:["2015","2016"]},toolbox:{show:!0,feature:{saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,xAxis:[{type:"value",boundaryGap:[0,.01]}],yAxis:[{type:"category",data:["Jan","Feb","Mar","Apr","May","Jun"]}],series:[{name:"2015",type:"bar",data:[18203,23489,29034,104970,131744,630230]},{name:"2016",type:"bar",data:[19325,23438,31e3,121594,134141,681807]}]});if($("#echart_pie2").length)echarts.init(document.getElementById("echart_pie2"),e).setOption({tooltip:{trigger:"item",formatter:"{a}
    {b} : {c} ({d}%)"},legend:{x:"center",y:"bottom",data:["rose1","rose2","rose3","rose4","rose5","rose6"]},toolbox:{show:!0,feature:{magicType:{show:!0,type:["pie","funnel"]},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,series:[{name:"Area Mode",type:"pie",radius:[25,90],center:["50%",170],roseType:"area",x:"50%",max:40,sort:"ascending",data:[{value:10,name:"rose1"},{value:5,name:"rose2"},{value:15,name:"rose3"},{value:25,name:"rose4"},{value:20,name:"rose5"},{value:35,name:"rose6"}]}]});if($("#echart_donut").length)echarts.init(document.getElementById("echart_donut"),e).setOption({tooltip:{trigger:"item",formatter:"{a}
    {b} : {c} ({d}%)"},calculable:!0,legend:{x:"center",y:"bottom",data:["Direct Access","E-mail Marketing","Union Ad","Video Ads","Search Engine"]},toolbox:{show:!0,feature:{magicType:{show:!0,type:["pie","funnel"],option:{funnel:{x:"25%",width:"50%",funnelAlign:"center",max:1548}}},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},series:[{name:"Access to the resource",type:"pie",radius:["35%","55%"],itemStyle:{normal:{label:{show:!0},labelLine:{show:!0}},emphasis:{label:{show:!0,position:"center",textStyle:{fontSize:"14",fontWeight:"normal"}}}},data:[{value:335,name:"Direct Access"},{value:310,name:"E-mail Marketing"},{value:234,name:"Union Ad"},{value:135,name:"Video Ads"},{value:1548,name:"Search Engine"}]}]});if($("#echart_pie").length){echarts.init(document.getElementById("echart_pie"),e).setOption({tooltip:{trigger:"item",formatter:"{a}
    {b} : {c} ({d}%)"},legend:{x:"center",y:"bottom",data:["Direct Access","E-mail Marketing","Union Ad","Video Ads","Search Engine"]},toolbox:{show:!0,feature:{magicType:{show:!0,type:["pie","funnel"],option:{funnel:{x:"25%",width:"50%",funnelAlign:"left",max:1548}}},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,series:[{name:"访问来源",type:"pie",radius:"55%",center:["50%","48%"],data:[{value:335,name:"Direct Access"},{value:310,name:"E-mail Marketing"},{value:234,name:"Union Ad"},{value:135,name:"Video Ads"},{value:1548,name:"Search Engine"}]}]});var t={normal:{label:{show:!1},labelLine:{show:!1}}},n={normal:{color:"rgba(0,0,0,0)",label:{show:!1},labelLine:{show:!1}},emphasis:{color:"rgba(0,0,0,0)"}}}if($("#echart_mini_pie").length)echarts.init(document.getElementById("echart_mini_pie"),e).setOption({title:{text:"Chart #2",subtext:"From ExcelHome",sublink:"http://e.weibo.com/1341556070/AhQXtjbqh",x:"center",y:"center",itemGap:20,textStyle:{color:"rgba(30,144,255,0.8)",fontFamily:"微软雅黑",fontSize:35,fontWeight:"bolder"}},tooltip:{show:!0,formatter:"{a}
    {b} : {c} ({d}%)"},legend:{orient:"vertical",x:170,y:45,itemGap:12,data:["68%Something #1","29%Something #2","3%Something #3"]},toolbox:{show:!0,feature:{mark:{show:!0},dataView:{show:!0,title:"Text View",lang:["Text View","Close","Refresh"],readOnly:!1},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},series:[{name:"1",type:"pie",clockWise:!1,radius:[105,130],itemStyle:t,data:[{value:68,name:"68%Something #1"},{value:32,name:"invisible",itemStyle:n}]},{name:"2",type:"pie",clockWise:!1,radius:[80,105],itemStyle:t,data:[{value:29,name:"29%Something #2"},{value:71,name:"invisible",itemStyle:n}]},{name:"3",type:"pie",clockWise:!1,radius:[25,80],itemStyle:t,data:[{value:3,name:"3%Something #3"},{value:97,name:"invisible",itemStyle:n}]}]});if($("#echart_world_map").length)echarts.init(document.getElementById("echart_world_map"),e).setOption({title:{text:"World Population (2010)",subtext:"from United Nations, Total population, both sexes combined, as of 1 July (thousands)",x:"center",y:"top"},tooltip:{trigger:"item",formatter:function(e){var t=(e.value+"").split(".");return t=t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+"."+t[1],e.seriesName+"
    "+e.name+" : "+t}},toolbox:{show:!0,orient:"vertical",x:"right",y:"center",feature:{mark:{show:!0},dataView:{show:!0,title:"Text View",lang:["Text View","Close","Refresh"],readOnly:!1},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},dataRange:{min:0,max:1e6,text:["High","Low"],realtime:!1,calculable:!0,color:["#087E65","#26B99A","#CBEAE3"]},series:[{name:"World Population (2010)",type:"map",mapType:"world",roam:!1,mapLocation:{y:60},itemStyle:{emphasis:{label:{show:!0}}},data:[{name:"Afghanistan",value:28397.812},{name:"Angola",value:19549.124},{name:"Albania",value:3150.143},{name:"United Arab Emirates",value:8441.537},{name:"Argentina",value:40374.224},{name:"Armenia",value:2963.496},{name:"French Southern and Antarctic Lands",value:268.065},{name:"Australia",value:22404.488},{name:"Austria",value:8401.924},{name:"Azerbaijan",value:9094.718},{name:"Burundi",value:9232.753},{name:"Belgium",value:10941.288},{name:"Benin",value:9509.798},{name:"Burkina Faso",value:15540.284},{name:"Bangladesh",value:151125.475},{name:"Bulgaria",value:7389.175},{name:"The Bahamas",value:66402.316},{name:"Bosnia and Herzegovina",value:3845.929},{name:"Belarus",value:9491.07},{name:"Belize",value:308.595},{name:"Bermuda",value:64.951},{name:"Bolivia",value:716.939},{name:"Brazil",value:195210.154},{name:"Brunei",value:27.223},{name:"Bhutan",value:716.939},{name:"Botswana",value:1969.341},{name:"Central African Republic",value:4349.921},{name:"Canada",value:34126.24},{name:"Switzerland",value:7830.534},{name:"Chile",value:17150.76},{name:"China",value:1359821.465},{name:"Ivory Coast",value:60508.978},{name:"Cameroon",value:20624.343},{name:"Democratic Republic of the Congo",value:62191.161},{name:"Republic of the Congo",value:3573.024},{name:"Colombia",value:46444.798},{name:"Costa Rica",value:4669.685},{name:"Cuba",value:11281.768},{name:"Northern Cyprus",value:1.468},{name:"Cyprus",value:1103.685},{name:"Czech Republic",value:10553.701},{name:"Germany",value:83017.404},{name:"Djibouti",value:834.036},{name:"Denmark",value:5550.959},{name:"Dominican Republic",value:10016.797},{name:"Algeria",value:37062.82},{name:"Ecuador",value:15001.072},{name:"Egypt",value:78075.705},{name:"Eritrea",value:5741.159},{name:"Spain",value:46182.038},{name:"Estonia",value:1298.533},{name:"Ethiopia",value:87095.281},{name:"Finland",value:5367.693},{name:"Fiji",value:860.559},{name:"Falkland Islands",value:49.581},{name:"France",value:63230.866},{name:"Gabon",value:1556.222},{name:"United Kingdom",value:62066.35},{name:"Georgia",value:4388.674},{name:"Ghana",value:24262.901},{name:"Guinea",value:10876.033},{name:"Gambia",value:1680.64},{name:"Guinea Bissau",value:10876.033},{name:"Equatorial Guinea",value:696.167},{name:"Greece",value:11109.999},{name:"Greenland",value:56.546},{name:"Guatemala",value:14341.576},{name:"French Guiana",value:231.169},{name:"Guyana",value:786.126},{name:"Honduras",value:7621.204},{name:"Croatia",value:4338.027},{name:"Haiti",value:9896.4},{name:"Hungary",value:10014.633},{name:"Indonesia",value:240676.485},{name:"India",value:1205624.648},{name:"Ireland",value:4467.561},{name:"Iran",value:240676.485},{name:"Iraq",value:30962.38},{name:"Iceland",value:318.042},{name:"Israel",value:7420.368},{name:"Italy",value:60508.978},{name:"Jamaica",value:2741.485},{name:"Jordan",value:6454.554},{name:"Japan",value:127352.833},{name:"Kazakhstan",value:15921.127},{name:"Kenya",value:40909.194},{name:"Kyrgyzstan",value:5334.223},{name:"Cambodia",value:14364.931},{name:"South Korea",value:51452.352},{name:"Kosovo",value:97.743},{name:"Kuwait",value:2991.58},{name:"Laos",value:6395.713},{name:"Lebanon",value:4341.092},{name:"Liberia",value:3957.99},{name:"Libya",value:6040.612},{name:"Sri Lanka",value:20758.779},{name:"Lesotho",value:2008.921},{name:"Lithuania",value:3068.457},{name:"Luxembourg",value:507.885},{name:"Latvia",value:2090.519},{name:"Morocco",value:31642.36},{name:"Moldova",value:103.619},{name:"Madagascar",value:21079.532},{name:"Mexico",value:117886.404},{name:"Macedonia",value:507.885},{name:"Mali",value:13985.961},{name:"Myanmar",value:51931.231},{name:"Montenegro",value:620.078},{name:"Mongolia",value:2712.738},{name:"Mozambique",value:23967.265},{name:"Mauritania",value:3609.42},{name:"Malawi",value:15013.694},{name:"Malaysia",value:28275.835},{name:"Namibia",value:2178.967},{name:"New Caledonia",value:246.379},{name:"Niger",value:15893.746},{name:"Nigeria",value:159707.78},{name:"Nicaragua",value:5822.209},{name:"Netherlands",value:16615.243},{name:"Norway",value:4891.251},{name:"Nepal",value:26846.016},{name:"New Zealand",value:4368.136},{name:"Oman",value:2802.768},{name:"Pakistan",value:173149.306},{name:"Panama",value:3678.128},{name:"Peru",value:29262.83},{name:"Philippines",value:93444.322},{name:"Papua New Guinea",value:6858.945},{name:"Poland",value:38198.754},{name:"Puerto Rico",value:3709.671},{name:"North Korea",value:1.468},{name:"Portugal",value:10589.792},{name:"Paraguay",value:6459.721},{name:"Qatar",value:1749.713},{name:"Romania",value:21861.476},{name:"Russia",value:21861.476},{name:"Rwanda",value:10836.732},{name:"Western Sahara",value:514.648},{name:"Saudi Arabia",value:27258.387},{name:"Sudan",value:35652.002},{name:"South Sudan",value:9940.929},{name:"Senegal",value:12950.564},{name:"Solomon Islands",value:526.447},{name:"Sierra Leone",value:5751.976},{name:"El Salvador",value:6218.195},{name:"Somaliland",value:9636.173},{name:"Somalia",value:9636.173},{name:"Republic of Serbia",value:3573.024},{name:"Suriname",value:524.96},{name:"Slovakia",value:5433.437},{name:"Slovenia",value:2054.232},{name:"Sweden",value:9382.297},{name:"Swaziland",value:1193.148},{name:"Syria",value:7830.534},{name:"Chad",value:11720.781},{name:"Togo",value:6306.014},{name:"Thailand",value:66402.316},{name:"Tajikistan",value:7627.326},{name:"Turkmenistan",value:5041.995},{name:"East Timor",value:10016.797},{name:"Trinidad and Tobago",value:1328.095},{name:"Tunisia",value:10631.83},{name:"Turkey",value:72137.546},{name:"United Republic of Tanzania",value:44973.33},{name:"Uganda",value:33987.213},{name:"Ukraine",value:46050.22},{name:"Uruguay",value:3371.982},{name:"United States of America",value:312247.116},{name:"Uzbekistan",value:27769.27},{name:"Venezuela",value:236.299},{name:"Vietnam",value:89047.397},{name:"Vanuatu",value:236.299},{name:"West Bank",value:13.565},{name:"Yemen",value:22763.008},{name:"South Africa",value:51452.352},{name:"Zambia",value:13216.985},{name:"Zimbabwe",value:13076.978}]}]})}}jQuery(function(e){e("#regexGroupSelect").change(function(){document.location="?group="+e("#regexGroupSelect option:selected").attr("value")}),e(".confirm_action").click(function(){return confirm("Are you sure?")})}),tinyMCE.init({selector:"textarea#body",theme:"silver",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table contextmenu directionality emoticons template paste textcolor code"],theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",toolbar:"insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code",fontsize_formats:"8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",mode:"exact",relative_urls:!1,remove_script_host:!1,convert_urls:!0}),tinyMCE.init({selector:"textarea#metadescription",theme:"silver",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table contextmenu directionality emoticons template paste textcolor code"],theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",toolbar:"insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code",fontsize_formats:"8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",mode:"exact",relative_urls:!1,remove_script_host:!1,convert_urls:!0}),tinyMCE.init({selector:"textarea#metakeywords",theme:"silver",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table contextmenu directionality emoticons template paste textcolor code"],theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",toolbar:"insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code",fontsize_formats:"8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",mode:"exact",relative_urls:!1,remove_script_host:!1,convert_urls:!0}),function(e,t){jQuery.fn[t]=function(e){return e?this.bind("resize",(n=e,function(){var e=this,t=arguments;i?clearTimeout(i):o&&n.apply(e,t),i=setTimeout(function(){o||n.apply(e,t),i=null},r||100)})):this.trigger(t);var n,r,o,i}}(jQuery,"smartresize"),$(document).ready(function(){var e,t=function(){$RIGHT_COL.css("min-height",$(window).height());var e=$BODY.outerHeight(),t=$BODY.hasClass("footer_fixed")?-10:$FOOTER.height(),n=$LEFT_COL.eq(1).height()+$SIDEBAR_FOOTER.height(),r=e1){for(var n=0,r=0;r:first-child"),"+"==$expand.text()?$expand.text("-"):$expand.text("+")})}),"undefined"!=typeof NProgress&&($(document).ready(function(){NProgress.start()}),$(window).load(function(){NProgress.done()}));var originalLeave=$.fn.popover.Constructor.prototype.leave;function isValidEmailAddress(e){return new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i).test(e)}function mymovie_del(e,t){return $.ajax({url:base_url+"/ajax_mymovies?rand="+$.now(),data:{del:e},dataType:"html",success:function(e){$(t).hide(),$(t).prev("a").show()},error:function(e,t,n){}}),!1}function mymovie_add(e,t){return $(t).hide(),$(t).next("a").show(),$.ajax({url:base_url+"/ajax_mymovies?rand="+$.now(),data:{add:e},dataType:"html",success:function(e){},error:function(e,t,n){}}),!1}function getNzbGetQueue(){$.ajax({url:"queuedata?type=nzbget&id="+$.now(),cache:!1,success:function(e){$(".nzbget_queue").html(e),setTimeout("getNzbGetQueue()",2500)},error:function(){$(".nzbget_queue").html('Could not contact your queue. Refresh')},timeout:5e3})}function getHistory(){$.ajax({url:"queuedata?type=history&id="+$.now(),cache:!1,success:function(e){$(".sab_history").html(e),setTimeout("getHistory()",1e4)},error:function(){},timeout:5e3})}$.fn.popover.Constructor.prototype.leave=function(e){var t,n,r=e instanceof this.constructor?e:$(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);originalLeave.call(this,e),e.currentTarget&&(t=$(e.currentTarget).siblings(".popover"),n=r.timeout,t.one("mouseenter",function(){clearTimeout(n),t.one("mouseleave",function(){$.fn.popover.Constructor.prototype.leave.call(r,r)})}))},$("body").popover({selector:"[data-popover]",trigger:"click hover",delay:{show:50,hide:400}}),$(document).ready(function(){init_sparklines(),init_flot_chart(),init_wysiwyg(),init_InputMask(),init_JQVmap(),init_cropper(),init_knob(),init_IonRangeSlider(),init_ColorPicker(),init_TagsInput(),init_parsley(),init_daterangepicker(),init_daterangepicker_right(),init_daterangepicker_single_call(),init_daterangepicker_reservation(),init_SmartWizard(),init_EasyPieChart(),init_charts(),init_echarts(),init_morris_charts(),init_skycons(),init_select2(),init_validator(),init_DataTables(),init_chart_doughnut(),init_gauge(),init_PNotify(),init_starrr(),init_calendar(),init_compose(),init_CustomNotification(),init_autosize(),init_autocomplete()}),jQuery(function(e){const t=window.location.origin;e(".cartadd").click(function(n){if(e(this).hasClass("icon_cart_clicked"))return!1;let r=e(".guid").attr("id").substring(4);return e.ajaxSetup({headers:{"X-CSRF-TOKEN":e('meta[name="csrf-token"]').attr("content")}}),e.post(t+"/cart/add?id="+r,function(t){e(n.target).addClass("icon_cart_clicked").attr("title","Added to Cart"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your Download Basket!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".sabsend").click(function(n){if(e(this).hasClass("icon_sab_clicked"))return!1;let r=e(".guid").attr("id").substring(4),o=t+"/sendtoqueue/"+r;return e.post(o,function(t){e(n.target).addClass("icon_sab_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".getsend").click(function(n){if(e(this).hasClass("icon_nzbget_clicked"))return!1;let r=e(".guid").attr("id").substring(4),o=t+"/sendtoqueue/"+r;return e.post(o,function(t){e(n.target).addClass("icon_nzbget_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".sendtocouch").click(function(n){if(e(this).hasClass("icon_cp_clicked"))return!1;let r=e(this).attr("id").substring(4),o=t+"sendtocouch/"+r;return e.post(o,function(t){e(n.target).addClass("icon_cp_clicked").attr("title","Added to CouchPotato"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Movie added to CoucPotato wanted list!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".vortexsend").click(function(n){if(e(this).hasClass("icon_nzbvortex_clicked"))return!1;let r=e(".guid").attr("id").substring(4);return r&&r.length>0&&e.ajax({url:t+"nzbvortex?addQueue="+r+"&isAjax",cache:!1}).done(function(t){let o="Added "+r+" to queue.";e(n.target).addClass("icon_nzbvortex_clicked").attr("title",o),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}).fail(function(e){alert(e.responseText)}),!1});let n=new Array;n[0]="Waiting",n[1]="Downloading",n[2]="Downloaded",n[3]="Saving",n[4]="Saved",n[5]="Skipped";let r,o,i=e("table.data tr").children("td.icons").children("div.icon").css("opacity");e("table.data tr").hover(function(){e(this).children("td.icons").children("div.icon").css("opacity",1)},function(){e(this).children("td.icons").children("div.icon").css("opacity",i)}),e(".forumpostsubmit").click(function(t){if(""==e.trim(e("#addMessage").val())||""==e.trim(e("#addSubject").val()))return alert("Please enter a subject and message."),!1}),e(".forumreplysubmit").click(function(t){if(""==e.trim(e("#addMessage").val()))return alert("Please enter a message."),!1}),e(".check").click(function(t){e(t.target).is("input")||e(this).children(".nzb_check").attr("checked",!e(this).children(".nzb_check").attr("checked"))}),e(".descmore").click(function(t){return e(this).prev(".descinitial").hide(),e(this).next(".descfull").show(),e(this).hide(),!1}),e(".nzb_check_all").change(function(){e(this).attr("checked")?e("table.data tr td input:checkbox").attr("checked",e(this).attr("checked")):e("table.data tr td input:checkbox").removeAttr("checked")}),e(".nzb_check_all_season").change(function(){let t=e(this).attr("name");e("table.data tr td input:checkbox").each(function(n,r){e(r).attr("name")==t&&e(r).attr("checked",!e(r).attr("checked"))})}),e(".icon_cart").click(function(n){if(e(this).hasClass("icon_cart_clicked"))return!1;let r=e(this).attr("id").substring(4);return e.ajaxSetup({headers:{"X-CSRF-TOKEN":e('meta[name="csrf-token"]').attr("content")}}),e.post(t+"/cart/add?id="+r,function(t){e(n.target).addClass("icon_cart_clicked").attr("title"," Release added to Cart"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download basket!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".icon_nzbvortex").click(function(n){if(e(this).hasClass("icon_nzbvortex_clicked"))return!1;let r=e(this).parent().parent().attr("id").substring(4);return r&&r.length>0&&e.ajax({url:t+"/nzbvortex?addQueue="+r+"&isAjax",cache:!1}).done(function(t){let o="Added "+r+" to queue.";e(n.target).addClass("icon_nzbvortex_clicked").attr("title",o),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"ADDED TO NZBVORTEX!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}).fail(function(e){alert(e.responseText)}),!1}),e(document).on("click","a.vortex-resume",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?resume="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-pause",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?pause="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-moveup",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?moveup="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-movedown",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?movedown="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-movetop",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?movetop="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-movebottom",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?movebottom="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-trash",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?delete="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-filelist",function(r){r.preventDefault();let o=e(this).attr("href");return e("#vortex-overlay-"+o).show(),e.colorbox({}),e.ajax({url:t+"/nzbvortex?filelist="+o+"&isAjax",cache:!1}).done(function(t){e("#cboxLoadingGraphic").hide();let r=e.parseJSON(t);console.log(r),e.each(r.files,function(t,r){e("#cboxContent").append(""+r.fileName+" ("+n[r.state]+")
    ")})}).fail(function(e){alert("Unable to retrieve filelist: "+e.responseText)}),e(this).removeAttr("href"),!1}),e(".icon_sab").click(function(n){if(e(this).hasClass("icon_sab_clicked"))return!1;let r=e(this).attr("id").substring(4),o=t+"/sendtoqueue/"+r;return e.post(o,function(t){e(n.target).addClass("icon_sab_clicked").attr("title","Release added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".icon_nzbget").click(function(n){if(e(this).hasClass("icon_nzbget_clicked"))return!1;let r=e(this).attr("id").substring(4),o=t+"/sendtoqueue/"+r;return e.post(o,function(t){e(n.target).addClass("icon_nzbget_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e("table.data a.modal_nfo").colorbox({href:function(){return e(this).attr("href")+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"90%",initialWidth:"800px",initialHeight:"90%",speed:0,opacity:.7}),e("table.data a.modal_prev").colorbox({scrolling:!1,maxWidth:"800px",maxHeight:"450px"}),e("table.data a.modal_imdb").colorbox({href:function(){return t+"movie/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxMovie")}),e("a.modal_imdbtrailer").colorbox({href:function(){return t+"movietrailer/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxMovie")}),e("table.data a.modal_music").colorbox({href:function(){return t+"musicmodal/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxMusic")}),e("table.data a.modal_console").colorbox({href:function(){return t+"consolemodal/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxConsole")}),e("table.data a.modal_book").colorbox({href:function(){return t+"bookmodal/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxBook")}),e("#nzb_multi_operations_form").submit(function(){return!1}),e("button.nzb_multi_operations_download").on("click",function(){let n="";e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+=e(r).val()+",")}),(n=n.substring(0,n.length-1))&&(window.location=t+"/getnzb?zip=1&id="+n)}),e("input.nzb_multi_operations_download_cart").on("click",function(){let n="";e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+=e(r).val()+",")}),(n=n.substring(0,n.length-1))&&(window.location=t+"/getnzb?zip=1&id="+n)}),e("button.nzb_multi_operations_cart").on("click",function(){let n=new Array;e.ajaxSetup({headers:{"X-CSRF-TOKEN":e('meta[name="csrf-token"]').attr("content")}}),e("table.data INPUT[type='checkbox']:checked").each(function(t,r){let o=e(r).val(),i=e(r).parent().children("div.icons").children(".icon_cart");o&&!i.hasClass("icon_cart_clicked")&&(i.addClass("icon_cart_clicked").attr("title","Added to Cart"),n.push(o),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your Download Basket!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})),e(this).attr("checked",!1)});let r=n.toString();e.post(t+"/cart/add?id="+r)}),e("button.nzb_multi_operations_sab").on("click",function(){e("table.data INPUT[type='checkbox']:checked").each(function(n,r){let o=e(r).parent().parent().children("td.icons").children(".icon_sab"),i=e(r).val();if(i&&!o.hasClass("icon_sab_clicked")){let n=t+"/sendtoqueue/"+i;e.post(n,function(e){o.addClass("icon_sab_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})})}e(this).attr("checked",!1)})}),e("input.nzb_multi_operations_nzbget").on("click",function(){e("table.data INPUT[type='checkbox']:checked").each(function(n,r){let o=e(r).parent().parent().children("td.icons").children(".icon_nzbget"),i=e(r).val();if(i&&!o.hasClass("icon_nzbget_clicked")){let n=t+"/sendtoqueue/"+i;e.post(n,function(e){o.addClass("icon_nzbget_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})})}e(this).attr("checked",!1)})}),e("input.nzb_multi_operations_edit").click(function(){let n="";e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+="&id[]="+e(r).val())}),n&&e("input.nzb_multi_operations_edit").colorbox({href:function(){return t+"ajax_release-admin?action=edit"+n+"&from="+encodeURIComponent(window.location)},title:"Edit Release",innerWidth:"400px",innerHeight:"250px",initialWidth:"400px",initialHeight:"250px",speed:0,opacity:.7})}),e("input.nzb_multi_operations_delete").click(function(){let n="";if(e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+="&id[]="+e(r).val())}),n){PNotify.defaults.icons="fontawesome5";const r=PNotify.alert({title:"Confirmation Needed",text:"Are you sure you want to delete the selected releases?",icon:"glyphicon glyphicon-question-sign",hide:!1,modules:{Confirm:{confirm:!0}},Buttons:{closer:!1,sticker:!1},History:{history:!1}});r.on("pnotify.confirm",function(){e.post(t+"ajax_release-admin?action=dodelete"+n,function(e){location.reload(!0)})}),r.on("pnotify.cancel",function(){alert("Cancelled")})}}),e("input.nzb_multi_operations_rebuild").click(function(){let n="";e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+="&id[]="+e(r).val())}),n&&confirm("Are you sure you want to rebuild the selected releases?")&&e.post(t+"ajax_release-admin?action=dorebuild"+n,function(e){location.reload(!0)})}),e("input.nzb_multi_operations_cartdelete").click(function(){let n=new Array;if(e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&n.push(e(r).val())}),e.ajaxSetup({headers:{"X-CSRF-TOKEN":e('meta[name="csrf-token"]').attr("content")}}),n){PNotify.defaults.icons="fontawesome5";const r=PNotify.alert({title:"Confirmation Needed",text:"Are you sure you want to delete the selected releases from your cart?",hide:!1,modules:{Confirm:{confirm:!0}},Buttons:{closer:!1,sticker:!1},History:{history:!1}});r.on("pnotify.confirm",function(){e.post(t+"/cart/delete/"+n)}),r.on("pnotify.cancel",function(){alert("Cancelled")})}}),e("input.nzb_multi_operations_cartsab").click(function(){new Array;e("table.data INPUT[type='checkbox']:checked").each(function(n,r){let o=e(r).val(),i=t+"/sendtoqueue/"+o;e.post(i,function(){PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Releases sent to queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})})})}),e("#headsearch").focus(function(){"Search..."==this.value?this.value="":this.select()}).blur(function(){""==this.value&&(this.value="Search...")}),e("#headsearch_form").submit(function(){return e("#headsearch_go").trigger("click"),!1}),e("#headsearch_go").click(function(){if(e("#headsearch").val()&&"Search..."!=e("#headsearch").val()){let n=e("#headsearch").val(),r=-1!=e("#headcat").val()?"&t="+e("#headcat").val():"";document.location=t+"/search?id="+n+r}}),e("#search_search_button").click(function(){return e("#search").val()&&(document.location=t+"/search?id="+e("#search").val()+(-1!=e("#search_cat").val()?"&t="+e("#search_cat").val():"")),!1}),e("#search").focus(function(){this.select()}),e("#searchraw_search_button").click(function(){return e("#search").val()&&(document.location=t+"/searchraw/"+e("#search").val()),!1}),e("#searchraw_download_selected").click(function(){return e("#dl input:checked").length&&e("#dl").trigger("submit"),!1}),e("#username").length&&e("#username").focus(),e("#search").length&&e("#search").focus(),e("#viewfilelist_download_selected").click(function(){return e("#fileform input:checked").length&&e("#fileform").trigger("submit"),!1}),e(".confirm_action").click(function(){return confirm("Are you sure?")}),e(".audioprev").click(function(){let t=document.getElementById(e(this).next("audio").attr("ID"));return null!=t&&("Listen"==e(this).text()?(t.play(),e(this).text("Stop")):(t.pause(),t.currentTime=0,e(this).text("Listen"))),t.addEventListener("ended",function(){e(this).prev().text("Listen")}),!1}),e(".mmenu").click(function(){return document.location=e(this).children("a").attr("href"),!1}),e(".mmenu_new").click(function(){return window.open(e(this).children("a").attr("href")),!1}),e(".checkbox_operations .select_all").click(function(){return e("table.data INPUT[type='checkbox']").attr("checked",!0).trigger("change"),!1}),e(".checkbox_operations .select_none").click(function(){return e("table.data INPUT[type='checkbox']").attr("checked",!1).trigger("change"),!1}),e(".checkbox_operations .select_invert").click(function(){return e("table.data INPUT[type='checkbox']").each(function(){e(this).attr("checked",!e(this).attr("checked")).trigger("change")}),!1}),e(".checkbox_operations .select_range").click(function(){return r&&o&&r1&&""!=o[1])t+=o[1],n+=o[1].length;else{if(" "==e[n])t+="+";else{let r=e.charCodeAt(n).toString(16);t+="%"+(r.length<2?"0":"")+r.toUpperCase()}n++}}return t},URLDecode:function(e){let t,n=e,r=/(%[^%]{2})/;for(;null!=(m=r.exec(n))&&m.length>1&&""!=m[1];)b=parseInt(m[1].substr(1),16),t=String.fromCharCode(b),n=n.replace(m[1],t);return n}}),$(function(){let e=$("input.flat-all"),t=$("input.flat");$("input").iCheck({checkboxClass:"icheckbox_flat-green",radioClass:"iradio_flat-green"}),e.on("ifChecked ifUnchecked",function(e){"ifChecked"===e.type?t.iCheck("check"):t.iCheck("uncheck")}),t.on("ifChanged",function(n){t.filter(":checked").length===t.length?e.prop("checked","checked"):e.prop("checked",!1),e.iCheck("update")})}),tinyMCE.init({selector:"textarea#addMessage",theme:"silver",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table directionality emoticons template paste code"],theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",toolbar:"insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code",fontsize_formats:"8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",mode:"exact",relative_urls:!1,remove_script_host:!1,convert_urls:!0});