PageSourceSearch

https://www.related.com/sites/default/files/js/js_ErXDHE8iy2DYHJPb…rI-oQEkGgRX_JSnHdt5L2owiEK_r59ffyof5AR0N-m8

js related.com collected 2026-10-02 03:21:21 UTC 537,061 bytes, 220 lines download raw bytes

1/* @license MIT https://raw.githubusercontent.com/jquery/jquery/3.7.1/LICENSE.txt */
vendor: 22,881 bytes, lines 2-3
2/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
3!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(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)while(t=e[r++])n+=ce.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=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))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===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]||I.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]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(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(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:z(!1),disabled:z(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:X(function(){return[0]}),last:X(function(e,t){return[t-1]}),eq:X(function(e,t,n){return[n<0?n+t:n]}),even:X(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:X(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:X(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:X(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&U(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.tokenize=Y,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;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]:S.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 ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}
vendor: 1,967 bytes, line 3
3return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||
vendor: 9,546 bytes, line 3
3ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var M=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)M(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},R=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(R,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,z=new B,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:X.test(i)?JSON.parse(i):i)}catch(e){}z.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return z.hasData(e)||_.hasData(e)},data:function(e,t,n){return z.access(e,t,n)},removeData:function(e,t){z.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=z.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){z.set(this,n)}):M(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=z.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){z.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){z.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||
vendor: 8,814 bytes, line 3
3(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);
vendor: 14,182 bytes, line 3
3n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);z.hasData(e)&&(o=z.access(e),a=ce.extend({},o),z.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Me,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[z.expando]&&(n[z.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return M(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),ze=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=ze.test(t),u=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Xe(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=ze.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return ze.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):Ue(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Xe(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;
vendor: 4,590 bytes, line 3
3return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1)
vendor: 13,972 bytes, line 3
3);!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return M(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return M(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Mt=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Xt=C.createElement("a");function Ut(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Xt.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Xt.protocol+"//"+Xt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Rt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Mt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+zt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);
vendor: 9,033 bytes, line 3
3if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return 
vendor: 3,521 bytes, lines 3-7
3M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.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.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce});
4;
5/* @license GPL-2.0-or-later https://git.drupalcode.org/project/once/-/raw/v1.0.1/LICENSE.md */
6/*! @drupal/once - v1.0.1 - 2021-06-12 */
7var once=function(){"use strict";var n=/[\11\12\14\15\40]+/,e="data-once",t=document;function r(n,t,r){return n[t+"Attribute"](e,r)}function o(e){if("string"!=typeof e)throw new TypeError("once ID must be a string");if(""===e||n.test(e))throw new RangeError("once ID must not be empty or contain spaces");return'[data-once~="'+e+'"]'}function u(n){if(!(n instanceof Element))throw new TypeError("The element must be an instance of Element");return!0}function i(n,e){void 0===e&&(e=t);var r=n;if(null===n)r=[];else{if(!n)throw new TypeError("Selector must not be empty");"string"!=typeof n||e!==t&&!u(e)?n instanceof Element&&(r=[n]):r=e.querySelectorAll(n)}return Array.prototype.slice.call(r)}function c(n,e,t){return e.filter((function(e){var r=u(e)&&e.matches(n);return r&&t&&t(e),r}))}function f(e,t){var o=t.add,u=t.remove,i=[];
7r(e,"has")&&r(e,"get").trim().split(n).forEach((function(n){i.indexOf(n)<0&&n!==u&&i.push(n)})),o&&i.push(o);var c=i.join(" ");r(e,""===c?"remove":"set",c)}function a(n,e,t){return c(":not("+o(n)+")",i(e,t),(function(e){return f(e,{add:n})}))}return a.remove=function(n,e,t){return c(o(n),i(e,t),(function(e){return f(e,{remove:n})}))},a.filter=function(n,e,t){return c(o(n),i(e,t))},a.find=function(n,e){return i(n?o(n):"[data-once]",e)},a}();
8
9;
10/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
11window.Drupal={behaviors:{},locale:{}};(function(Drupal,drupalSettings,drupalTranslations,console,Proxy,Reflect){Drupal.throwError=function(error){setTimeout(()=>{throw error;},0);};Drupal.attachBehaviors=function(context,settings){context=context||document;settings=settings||drupalSettings;const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].attach==='function')try{behaviors[i].attach(context,settings);}catch(e){Drupal.throwError(e);}});};Drupal.detachBehaviors=function(context,settings,trigger){context=context||document;settings=settings||drupalSettings;trigger=trigger||'unload';const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].detach==='function')try{behaviors[i].detach(context,settings,trigger);}catch(e){Drupal.throwError(e);}});};Drupal.checkPlain=function(str){str=str.toString().replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;');return str;};Drupal.formatString=function(str,args){const processedArgs={};Object.keys(args||{}).forEach((key)=>{switch(key.charAt(0)){case '@':processedArgs[key]=Drupal.checkPlain(args[key]);break;case '!':processedArgs[key]=args[key];break;default:processedArgs[key]=Drupal.theme('placeholder',args[key]);break;}});return Drupal.stringReplace(str,processedArgs,null);};Drupal.stringReplace=function(str,args,keys){if(str.length===0)return str;if(!Array.isArray(keys)){keys=Object.keys(args||{});keys.sort((a,b)=>a.length-b.length);}if(keys.length===0)return str;const key=keys.pop();const fragments=str.split(key);if(keys.length){for(let i=0;i<fragments.length;i++)fragments[i]=Drupal.stringReplace(fragments[i],args,keys.slice(0));}return fragments.join(args[key]);};Drupal.t=function(str,args,options){options=options||{};options.context=options.context||'';if(typeof drupalTranslations!=='undefined'&&drupalTranslations.strings&&drupalTranslations.strings[options.context]&&drupalTranslations.strings[options.context][str])str=drupalTranslations.strings[options.context][str];if(args)str=Drupal.formatString(str,args);return str;};Drupal.url=function(path){return drupalSettings.path.baseUrl+drupalSettings.path.pathPrefix+path;};Drupal.url.toAbsolute=function(url){const urlParsingNode=document.createElement('a');try{url=decodeURIComponent(url);}catch(e){}urlParsingNode.setAttribute('href',url);return urlParsingNode.cloneNode(false).href;};Drupal.url.isLocal=function(url){let absoluteUrl=Drupal.url.toAbsolute(url);let {protocol}=window.location;if(protocol==='http:'&&absoluteUrl.startsWith('https:'))protocol='https:';let baseUrl=`${protocol}//${window.location.host}${drupalSettings.path.baseUrl.slice(0,-1)}`;try{absoluteUrl=decodeURIComponent(absoluteUrl);}catch(e){}try{baseUrl=decodeURIComponent(baseUrl);}catch(e){}return absoluteUrl===baseUrl||absoluteUrl.startsWith(`${baseUrl}/`);};Drupal.formatPlural=function(count,singular,plural,args,options){args=args||{};args['@count']=count;const pluralDelimiter=drupalSettings.pluralDelimiter;const translations=Drupal.t(singular+pluralDelimiter+plural,args,options).split(pluralDelimiter);let index=0;if(typeof drupalTranslations!=='undefined'&&drupalTranslations.pluralFormula)index=count in drupalTranslations.pluralFormula?drupalTranslations.pluralFormula[count]:drupalTranslations.pluralFormula.default;else{if(args['@count']!==1)index=1;}return translations[index];};Drupal.encodePath=function(item){return window.encodeURIComponent(item).replace(/%2F/g,'/');};Drupal.deprecationError=({message})=>{if(drupalSettings.suppressDeprecationErrors===false&&typeof console!=='undefined'&&console.warn)console.warn(`[Deprecation] ${message}`);};Drupal.deprecatedProperty=({target,deprecatedProperty,message})=>{if(!Proxy||!Reflect)return target;return new Proxy(target,{get:(target,key,...rest)=>{if(key===deprecatedProperty)Drupal.deprecationError({message});return Reflect.get(target,key,...rest);}});};Drupal.theme=function(func,...args){if(func in Drupal.theme)return Drupal.theme[func](...args);};Drupal.theme.placeholder=function(str){return `<em class="placeholder">${Drupal.checkPlain(str)}</em>`;};Drupal.elementIsVisible=function(elem){return !!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);};Drupal.elementIsHidden=function(elem){return !Drupal.elementIsVisible(elem);};})(Drupal,window.drupalSettings,window.drupalTranslations,window.console,window.Proxy,window.Reflect);;
12if(window.jQuery)jQuery.noConflict();document.documentElement.className+=' js';(function(Drupal,drupalSettings){const domReady=(callback)=>{const listener=()=>{callback();document.removeEventListener('DOMContentLoaded',listener);};if(document.readyState!=='loading')setTimeout(callback,0);else document.addEventListener('DOMContentLoaded',listener);};domReady(()=>{Drupal.attachBehaviors(document,drupalSettings);});})(Drupal,window.drupalSettings);;
13Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate)result=func.apply(context,args);};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result;};};;
14!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){"use strict";return e.ui=e.ui||{},e.ui.version="1.14.1"});
15
16/*!
17 * jQuery UI :data 1.14.1
18 * https://jqueryui.com
19 *
20 * Copyright OpenJS Foundation and other contributors
21 * Released under the MIT license.
22 * https://jquery.org/license
23 */
24!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.extend(e.expr.pseudos,{data:e.expr.createPseudo(function(n){return function(t){return!!e.data(t,n)}})})});
25
26/*!
27 * jQuery UI Disable Selection 1.14.1
28 * https://jqueryui.com
29 *
30 * Copyright OpenJS Foundation and other contributors
31 * Released under the MIT license.
32 * https://jquery.org/license
33 */
34!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.fn.extend({disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(n+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var n});
35
36/*!
37 * jQuery UI Legacy jQuery Core patches 1.14.1
38 * https://jqueryui.com
39 *
40 * Copyright OpenJS Foundation and other contributors
41 * Released under the MIT license.
42 * https://jquery.org/license
43 *
44 */
45!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";e.escapeSelector||(e.escapeSelector=function(e){return CSS.escape(e+"")}),e.fn.even&&e.fn.odd||e.fn.extend({even:function(){return this.filter(function(e){return e%2==0}
45)},odd:function(){return this.filter(function(e){return e%2==1})}})});
46
47/*!
48 * jQuery UI Scroll Parent 1.14.1
49 * https://jqueryui.com
50 *
51 * Copyright OpenJS Foundation and other contributors
52 * Released under the MIT license.
53 * https://jquery.org/license
54 */
55!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";return t.fn.scrollParent=function(e){var s=this.css("position"),n="absolute"===s,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,i=this.parents().filter(function(){var e=t(this);return(!n||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==s&&i.length?i:t(this[0].ownerDocument||document)}});
56
57/*!
58 * jQuery UI Unique ID 1.14.1
59 * https://jqueryui.com
60 *
61 * Copyright OpenJS Foundation and other contributors
62 * Released under the MIT license.
63 * https://jquery.org/license
64 */
65!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],i):i(jQuery)}(function(i){"use strict";return i.fn.extend({uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&i(this).removeAttr("id")})}});var e});
66
67/*!
68 * jQuery UI Focusable 1.14.1
69 * https://jqueryui.com
70 *
71 * Copyright OpenJS Foundation and other contributors
72 * Released under the MIT license.
73 * https://jquery.org/license
74 */
75!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.focusable=function(t,i){var s,n,u,a,o,r=t.nodeName.toLowerCase();return"area"===r?(n=(s=t.parentNode).name,!(!t.href||!n||"map"!==s.nodeName.toLowerCase())&&((u=e("img[usemap='#"+n+"']")).length>0&&u.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(r)?(a=!t.disabled)&&(o=e(t).closest("fieldset")[0])&&(a=!o.disabled):a="a"===r&&t.href||i,a&&e(t).is(":visible")&&"visible"===e(t).css("visibility"))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable});
76
77/*!
78 * jQuery UI Keycode 1.14.1
79 * https://jqueryui.com
80 *
81 * Copyright OpenJS Foundation and other contributors
82 * Released under the MIT license.
83 * https://jquery.org/license
84 */
85!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});
86
87!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.plugin={add:function(n,i,t){var u,o=e.ui[n].prototype;for(u in t)o.plugins[u]=o.plugins[u]||[],o.plugins[u].push([i,t[u]])},call:function(e,n,i,t){var u,o=e.plugins[n];if(o&&(t||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(u=0;u<o.length;u++)e.options[o[u][0]]&&o[u][1].apply(e.element,i)}}});
88
89/*!
90 * jQuery UI Widget 1.14.1
91 * https://jqueryui.com
92 *
93 * Copyright OpenJS Foundation and other contributors
94 * Released under the MIT license.
95 * https://jquery.org/license
96 */
97!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";var e,i=0,s=Array.prototype.hasOwnProperty,n=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)(s=t._data(n,"events"))&&s.remove&&t(n).triggerHandler("remove");e(i)}),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0];if("__proto__"===(e=e.split(".")[1])||"constructor"===e)return t.error("Invalid widget name: "+e);var u=l+"-"+e;return s||(s=i,i=t.Widget),Array.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr.pseudos[u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(s,function(t,e){r[t]="function"==typeof e?function(){function s(){return i.prototype[t].apply(this,arguments)}function n(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,o=this._superApply;return this._super=s,this._superApply=n,t=e.apply(this,arguments),this._super=i,this._superApply=o,t}}():e}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n&&a.widgetEventPrefix||e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:u}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o}
vendor: 4,414 bytes, line 97
97,t.widget.extend=function(e){for(var i,o,a=n.call(arguments,1),r=0,l=a.length;r<l;r++)for(i in a[r])o=a[r][i],s.call(a[r],i)&&void 0!==o&&(t.isPlainObject(o)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],o):t.widget.extend({},o):e[i]=o);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=n.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each(function(){var i,n=t.data(this,s);return"instance"===o?(l=n,!1):n?"function"!=typeof n[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(i=n[o].apply(n,r))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")}):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var e=t.data(this,s);e?(e.option(o||{}),e._init&&e._init()):t.data(this,s,new i(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;o<s.length-1;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],s=this;function n(){var i=[];e.element.each(function(e,n){t.map(s.classesElementLookup,function(t){return t}).some(function(t){return t.is(n)})||i.push(n)}),s._on(t(i),{remove:"_untrackClassesElement"})}function o(o,a){var r,l;for(l=0;l<o.length;l++)r=s.classesElementLookup[o[l]]||t(),e.add?(n(),r=t(t.uniqueSort(r.get().concat(e.element.get())))):r=t(r.not(e.element).get()),s.classesElementLookup[o[l]]=r,i.push(o[l]),a&&e.classes[o[l]]&&i.push(e.classes[o[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))}),this._off(t(e.target))}
vendor: 5,311 bytes, lines 97-117
97,_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+o.eventNamespace,h=l[2];h?n.on(u,h,r):i.on(u,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!("function"==typeof a&&!1===a.apply(this.element[0],[i].concat(s))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){var a;"string"==typeof n&&(n={effect:n});var r=n?!0===n||"number"==typeof n?i:n.effect||i:e;"number"==typeof(n=n||{})?n={duration:n}:!0===n&&(n={}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget});
98
99/*!
100 * jQuery UI Labels 1.14.1
101 * https://jqueryui.com
102 *
103 * Copyright OpenJS Foundation and other contributors
104 * Released under the MIT license.
105 * https://jquery.org/license
106 */
107!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";return t.fn.labels=function(){var t,s,e,i,n;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),(e=this.attr("id"))&&(n=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),s="label[for='"+CSS.escape(e)+"']",i=i.add(n.find(s).addBack(s))),this.pushStack(i)):this.pushStack([])}});
108
109/*!
110 * jQuery UI Autocomplete 1.14.1
111 * https://jqueryui.com
112 *
113 * Copyright OpenJS Foundation and other contributors
114 * Released under the MIT license.
115 * https://jquery.org/license
116 */
117!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../version","../widget"],e):e(jQuery)}(function(e){"use strict";return e.widget("ui.autocomplete",{version:"1.14.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var t,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,u="input"===n;this.isMultiLine=o||!u&&"true"===this.element.prop("contentEditable"),this.valueMethod=this.element[o||u?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return t=!0,s=!0,void(i=!0);t=!1,s=!1,i=!1;var o=e.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:t=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:t=!0,this._move("nextPage",n);break;case o.UP:t=!0,this._keyEvent("previous",n);break;case o.DOWN:t=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(t=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(t)return t=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||s.preventDefault());if(!i){var n=e.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(e){if(s)return s=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value(
vendor: 6,726 bytes, lines 117-127
117)},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=e("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(t,i){var s,n;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)});n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:n})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(n.value),(s=i.item.attr("aria-label")||n.value)&&String.prototype.trim.call(s).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(e("<div>").text(s))},100))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.trigger("focus"),this.previous=s),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=e("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var i=this.menu.element[0];return t.target===this.element[0]||t.target===i||e.contains(i,t.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,i,s=this;Array.isArray(this.options.source)?(t=this.options.source,this.source=function(i,s){s(e.ui.autocomplete.filter(t,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,n){s.xhr&&s.xhr.abort(),s.xhr=e.ajax({url:i,data:t,dataType:"json",success:function(e){n(e)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),i=this.menu.element.is(":visible"),s=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;t&&(!t||i||s)||(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,function(t){return"string"==typeof t?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var s=this;e.each(i,function(e,i){s._renderItemData(t,i)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return e("<li>").append(e("<div>").text(i.label)).appendTo(t)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var s=new RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,function(e){return s.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(e("<div>").text(i))},100))}}),e.ui.autocomplete});
118
119/*!
120 * jQuery UI Menu 1.14.1
121 * https://jqueryui.com
122 *
123 * Copyright OpenJS Foundation and other contributors
124 * Released under the MIT license.
125 * https://jquery.org/license
126 */
127!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../position","../unique-id","../version","../widget"],e):e(jQuery)}(function(e){"use strict";return e.widget("ui.menu",{version:"1.14.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"}
vendor: 7,080 bytes, line 127
127,role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(t){var i=e(t.target),s=e(this.document[0].activeElement);!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this._menuItems().first();t||this.focus(e,i)},blur:function(t){this._delay(function(){!e.contains(this.element[0],this.document[0].activeElement)&&this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(t){if(!this.previousFilter&&(t.clientX!==this.lastMousePosition.x||t.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:t.clientX,y:t.clientY};var i=e(t.target).closest(".ui-menu-item"),s=e(t.currentTarget);i[0]===s[0]&&(s.is(".ui-state-active")||(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,s)))}},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=e(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var i,s,n,a,u=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:u=!1,s=this.previousFilter||"",a=!1,n=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),n===s?a=!0:n=s+n,i=this._filterMenuItems(n),(i=a&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(n=String.fromCharCode(t.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(t,i),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}u&&t.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,i,s,n,a=this,u=this.options.icons.submenu,o=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=o.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),i=t.prev(),s=e("<span>").data("ui-menu-submenu-caret",!0);a._addClass(s,"ui-menu-icon","ui-icon "+u),i.attr("aria-haspopup","true").prepend(s),t.attr("aria-labelledby",i.attr("id"))}),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),(t=o.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=e(this);a._isDivider(t)&&a._addClass(t,"ui-menu-divider","ui-widget-content")}),n=(s=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(s,"ui-menu-item")._addClass(n,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if("icons"===e){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i,s,n;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var i,s,n,a,u,o;this._hasScroll()&&(i=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,n=t.offset().top-this.activeMenu.offset().top-i-s,a=this.activeMenu.scrollTop(),u=this.activeMenu.height(),o=t.outerHeight(),n<0?this.activeMenu.scrollTop(a+n):n+o>u&&this.activeMenu.scrollTop(a+n-u+o))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(t){var i=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(t),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},i?0:this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
127se")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,i){var s;this.active&&(s="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first()),s&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[t]()),this.focus(i,s)},nextPage:function(t){var i,s,n;this.active?this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(n+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(i=e(this)).offset().top-s-n<0}),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var i,s,n;this.active?this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(n+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return(i=e(this)).offset().top-s+n>0}),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,i)},_filterMenuItems:function(t){var i=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.test(String.prototype.trim.call(e(this).children(".ui-menu-item-wrapper").text()))})}})});
128
129!function(n,t,e){"use strict";var r,i,o=Object.assign,u=Array.prototype,c=Object.prototype,a=c.toString,f=u.splice,l=u.some,s="undefined"!=typeof Symbol&&Symbol,d="touchevents",p="jQuery"in n,h="cash"in n,v="add",m="remove",y="has",g="body",b="html",w=/-([a-z])/g,E=/^--/,S=n.localStorage,x={},O=Math.pow(2,53)-1,C=function(){function t(t,e){var r=this;if(r.name="dblazy",t){if(j(t))return t;var i=t;if($(t)){if(!(i=wn(An(e,t),t)).length)return}else if(D(t))return r.ready(t);(i.nodeType||i===n)&&(i=[i]);for(var o=r.length=i.length,u=0;u<o;u++)r[u]=i[u]}}return t.prototype.init=function(n,e){var r=new t(n,e);return W(n)?(n.idblazy||(n.idblazy=r),n.idblazy):r},t}();function N(n){var t=this,e=(t=j(t)?t:r(t)).length;return D(n)&&(e&&1!==e?t.each(n):n(t[0],0)),t}function T(n,e){var i=function(){return setTimeout(n,e||0,r)};return Z((function(){"loading"!==t.readyState?i():t.addEventListener("DOMContentLoaded",i)})),this}function z(n){var t="[object "+n+"]";return function(n){return a.call(n)===t}}i=C.prototype,(r=i.init).fn=r.prototype=i,i.length=0,i.splice=f,s&&(i[s.iterator]=u[s.iterator]);var P,I,L=(P="length",function(n){return F(n)?void 0:n[P]}),M=(I=L,function(n){var t=I(n);return"number"==typeof t&&t>=0&&t<=O});function A(n){return Q(n)?Object.keys(n):[]}function j(n){return n instanceof C}function B(n){return!$(n)&&(n&&(Array.isArray(n)||M(n)))}function R(n){return!0===n||!1===n||"[object Boolean]"===a.call(n)}function W(n){return n&&(n instanceof Element||n.querySelector)}function k(n){return!isNaN(n)&&parseInt(Number(n))===n&&!isNaN(parseInt(n,10))}function q(n,t){return k(n)||(n=parseInt(n)),n||t||0}var D=z("Function");function _(n){if(F(n)||U(n)||!1===n)return!0;var t=L(n);return"number"==typeof t&&(B(n)||$(n))?0===t:0===L(A(n))}function F(n){return null===n}function H(n){return!isNaN(parseFloat(n))&&isFinite(n)}function Q(n){if(!n||"object"!=typeof n)return!1;var t=Object.getPrototypeOf(n);return F(t)||t===c}function $(n){return n&&"string"==typeof n}function U(n){return void 0===n}function V(n){return!!n&&n===n.window}function J(n){return!(!n||!D(n.querySelector)||-1===[1,9,11].indexOf(n.nodeType))}function G(n){return J(n)||V(n)}function K(n){return n&&"getAttribute"in n}function X(){return!(!e||!e.bigPipePlaceholderIds)}function Y(){return!X()||(!!_(e.bigPipePlaceholderIds)||!gn(t,"[data-big-pipe-placeholder-id]"))}function Z(n,t){Y()&&setTimeout(n,t||101)}function nn(e){var r={};
129return"matchMedia"in n&&(r=n.matchMedia("(hover: none), (pointer: coarse)"),e&&r.addEventListener("change",e)),"ontouchstart"in n||n.DocumentTouch&&t instanceof n.DocumentTouch||r.matches||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function tn(n,t){var e={};n&&n.length&&zn(n).forEach((function(n){e[n.name]=n.value}),t||this);return e}function en(n,t,e){if(D(n)||$(n)||R(n)||H(n))return[];if(B(n)&&!U(n.length)){var r=n.length;if(!r||1===r&&" "===n[0])return[]}if(Q(n)&&_(n))return[];if("[object Object]"===a.call(n)){for(var i in n)if(rn(n,i)){if("length"===i||"name"===i)continue;if(!1===t.call(e,n[i],i,n))break}}else if(n)if(n instanceof HTMLCollection&&(n=zn(n)),n instanceof NamedNodeMap){var o=tn(n,e);t.call(e,o,0,n)}else{var u=n.length;u&&1===u&&!U(n[0])?t.call(e,n[0],0,n):n.forEach(t,e)}return n}function rn(n,t){return c.hasOwnProperty.call(n,t)}function on(n){return $(n)?-1!==(n=n.trim()).indexOf(",")?n.split(",").map((function(n){return n.trim()})):/\s/.test(n)?n.split(" ").map((function(n){return n.trim()})):[n]:B(n)?n:[n]}function un(n,t,e,r){return K(n)?n[t+"Attribute"](e,r):""}function cn(n,t,e,r){var i=this,o=U(e),u=!Q(t)&&(o||R(r)),c=$(r)?r:"",a=jn(n);if(U(t)&&W(a))return tn(a.attributes);if(u&&$(t)){t=t.trim(),o&&(e="");var f=e;return on(t).every((function(n){return!un(a,y,n)||!(f=un(a,"get",n))})),f}return N.call(n,(function(n){if(!K(n))return u?"":i;Q(t)?en(t,(function(t,e){un(n,"set",c+e,t)})):F(e)?en(on(t),(function(t){var e=c+t;un(n,y,e)&&un(n,m,e)})):"src"===t?n.src=e:"href"===t?n.href=e:un(n,"set",t,e)}))}function an(n,t,e){return N.call(n,(function(n,r){if(K(n)){var i=n.classList;D(t)&&(t=t(un(n,"get","class"),r));var o=on(t);i&&(U(e)?o.map((function(n){i.toggle(n)})):i[e].apply(i,o))}}))}function fn(n,t){return an(n,t,v)}function ln(n,t){return an(n,t,m)}function sn(n,t){var e=0;return W(n)&&W(t)?n!==t&&n.contains(t):B(n)?-1!==n.indexOf(t):($(n)&&$(t)&&(n=n.toLowerCase(),en(on(t=t.toLowerCase()),(function(t){-1!==n.indexOf(t)&&e++}))),e>0)}function dn(n){return n.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function pn(n,t){var e=0;return $(n)&&en(on(t),(function(t){n.startsWith(t)&&e++})),e>0}function hn(n){return n.replace(/\s+/g," ").trim()}function vn(n,t){return W(n)&&$(t)?n.closest(t):null}function mn(n,t){if(W(n)){if($(t))return t=bn(t),!!n.matches&&n.matches(t);if(W(t))return n===t}return n===t}function yn(n,t){return!(!n||!n.nodeName)&&l.call(on(t),(function(t){return n.nodeName.toLowerCase()===t.toLowerCase()}))}function gn(n,e,r){var i=U(r)&&$(e);return $(n=n||t)&&(n=jn(n,!0)),J(n)?(n=An(n,e=bn(e)),i?n.querySelector(e):Pn(e,n)):i?null:[]}function bn(n){var t=n;return $(n)&&pn(n,">")&&(t=":scope "+n),t}function wn(n,t){return gn(n,t,1)}function En(n){return W(n)&&n.currentStyle||!U(t.documentMode)}function Sn(){return n.devicePixelRatio||1}function xn(){return n.innerWidth||t.documentElement.clientWidth||n.screen.width}function On(){return{width:xn(),height:n.innerHeight||t.documentElement.clientHeight}}function Cn(n,t,e,r,i,o){return Mn(n,t,e,r,i,o,v)}function Nn(n,t,e,r,i,o){return Mn(n,t,e,r,i,o,m)}function Tn(n){return 0!==n.naturalWidth||n.complete&&0!==n.naturalWidth}function zn(n){return u.slice.call(n)}function Pn(n,e){e=e||t;var r=on(n);return $(n)&&(r=e.querySelectorAll(n)),zn(r)}function In(n,t){return(t||pn(n,["blazy.","bio."])?n:n.split(".")[0]).trim()}var Ln={_opts:function(n){var t=!1,e=n||!1;return Q(n)&&(t=(e=o({capture:!1,passive:!0},n)).once||!1),{one:t,options:e}},add:function(n,t,e,r,i){var o=this._opts(r),u=o.options,c=In(t,i),a=e;if(o.one&&En()){a=function t(){n.removeEventListener(c,t),e.apply(this,arguments)}}if(D(a)){var f={name:t,callback:a,type:c};x[t]=a,x[c]=f,n.addEventListener(c,a,u)}},remove:function(n,t,e,r,i){var o=this._opts(r).options,u=In(t,i),c=x[t]||e;D(c)&&(n.removeEventListener(u,c,o),delete x[t],delete x[u])}};function Mn(t,e,r,i,o,u,c){var a=i,f=En();if($(t)&&D(e))o=r,i=e,e=t,t=[n];else if($(r)){var l=sn(e,["touchstart","scroll","wheel"]);U(o)&&(o=!f&&{capture:!l,passive:l}),i=function(n){!function(n,t,e){var r=n.target;if(mn(r,e))t.call(r,n);else for(;r&&r!==this;){if(mn(r,e)){t.call(r,n);break}r=r.parentElement||r.parentNode}}(n,a,r)}}else D(r)&&(u=o,o=a,i=r);return N.call(t,(function(n){if(G(n)){en(on(e),(function(t){Ln[c](n,t,i,o,u)}))}}))}function An(n,e){var r=n||t;return e&&($(e)&&J(r)&&!r.querySelector(e)||$(r)||r===e||$(e)&&mn(r,e))&&(r=t),r=jn(r,!0)||t,(!e||e!==g&&e!==b)&&J(r)?W(r)&&(mn(r,"script")||mn(r,"style")||mn(r,"template"))?t:(r.nodeType,r):t}function jn(e,r){if($(e))return e===g?t.body:e===b?t:t.querySelector(e);
129if(r&&mn(e,b))return t;var i=p&&e instanceof n.jQuery,o=h&&e instanceof n.cash;return e&&(j(e)||i||o)?e[0]:e}function Bn(n){return E.test(n)}function Rn(n){return W(n)?n.getBoundingClientRect():{}}function Wn(n,t,e){if(W(n)){var r=n[e];if(U(t))return r;for(;r;){if(mn(r,t)||yn(r,t))return r;r=r[e]}}return null}function kn(n,t){return Wn(n,t,"parentElement")}function qn(n,t,e){return Wn(n,t,e+"ElementSibling")}function Dn(n,t){return qn(n,t,"previous")}r.isTag=z,r.isArr=B,r.isBool=R,r.isDoc=function(n){return-1!==[9,11].indexOf(!!n&&n.nodeType)},r.isElm=W,r.isFun=D,r.isEmpty=_,r.isInt=k,r.isNull=F,r.isNum=H,r.isObj=Q,r.isStr=$,r.isUnd=U,r.isEvt=G,r.isQsa=J,r.isIo="IntersectionObserver"in n,r.isMo="MutationObserver"in n,r.isRo="ResizeObserver"in n,r.isNativeLazy="loading"in HTMLImageElement.prototype,r.isAmd="function"==typeof define&&define.amd,r.isWin=V,r.isBigPipe=X,r.wwoBigPipeDone=Y,r.wwoBigPipe=Z,r.isTouch=nn,r.touchOrNot=function n(){var e=t.documentElement,r=nn(n);ln(e,[d,"no-"+d]),fn(e,r?d:"no-"+d)},r._er=-1,r._ok=1,r.chain=function(n,t){return N.call(n,t)},r.each=en,r.extend=o,i.extend=function(n,t){return(t=t||!1)?o(n,i):o(i,n)},r.hasProp=rn,r.parse=function(n){try{return 0===n.length||"1"===n?{}:JSON.parse(n)}catch(n){return{}}},r.toArray=on,r.toInt=q,r.attr=cn.bind(r),r.hasAttr=function(n,t){var e=0;if(K(n)&&$(t)){en(on(t),(function(t){un(n,y,t)&&e++}))}return e>0},r.nodeMapAttr=tn,r.removeAttr=function(n,t,e){return cn(n,t,null,e||"")}.bind(r),r.hasClass=function(n,t){var e=0;if(K(n)&&$(t)){var r=cn(n,"class");en(on(t),(function(n){en(on(r),(function(t){t&&t===n&&e++}))}))}return e>0},r.toggleClass=an,r.addClass=fn,r.removeClass=ln,r.contains=sn,r.escape=dn,r.startsWith=pn,r.trimSpaces=hn,r.closest=vn,r.is=mn,r.equal=yn,r.find=gn,r.findAll=wn,r.remove=function(n){if(W(n)){var t=kn(n);t&&t.removeChild(n)}},r.ie=En,r.pixelRatio=Sn,r.windowWidth=xn,r.windowSize=On,r.activeWidth=function(n,t){var e=t.up||!1,r=A(n),i=r[0],o=r[r.length-1],u=t.ww||xn(),c=u*Sn(),a=e?u:c,f=r.filter((function(n){return e?q(n,0)<=a:q(n,0)>=a})).map((function(t){return n[t]}))[e?"pop":"shift"]();return U(f)?n[a>=o?o:i]:f},r.on=Cn,r.off=Nn,r.one=function(n,t,e,r){return Cn(n,t,e,{once:!0},r)},r.trigger=function(t,e,r,i){return $(t)&&(r=e,e=t,t=[n]),N.call(t,(function(n){if(G(n)){en(on(e),(function(t){var e;if(U(r))e=new Event(t);else{var u={bubbles:!0,cancelable:!0,detail:Q(r)?r:{}};Q(i)&&(u=o(u,i)),e=new CustomEvent(t,u)}n.dispatchEvent(e);var c=In(t);x[c]&&x[c].type===t&&B(r)&&x[c].callback.apply(null,[e].concat(r))}))}}))},r.getScript=function(e,r,i){var o=t.createElement("script"),u=t.getElementsByTagName("script")[0];o.async=1,o.id=i,o.onload=o.onreadystatechange=function(t,e){(e||!o.readyState||/loaded|complete/.test(o.readyState))&&(o.onload=o.onreadystatechange=null,o=null,!e&&r&&n.setTimeout(r,0))},o.src=e,u.parentNode.insertBefore(o,u)},r.isDecoded=Tn,r.ready=T.bind(r),r.decode=function(n){return Tn(n)?Promise.resolve(n):"decode"in n?(n.decoding="async",n.decode()):new Promise((function(t,e){n.onload=function(){t(n)},n.onerror=e}))},r.throttle=function(n,t,e){t=t||50;var r=0;return function(){var i=+new Date;i-r<t||(r=i,n.apply(e,arguments))}},r.resize=function(t,e,r){if(this.isRo&&!U(e)){var i=new ResizeObserver((function(n){var e=this,i=On(),o=nn(r||t);en(n,(function(n){var r=function(n){var t,e,r;return n.contentBoxSize&&(r=n.contentBoxSize[0])&&(t=r.inlineSize,e=r.blockSize),e||(t=(r=n.contentRect||Rn(n.target)).width,e=r.height),{width:Math.floor(t),height:Math.floor(e)}}(n),u={width:r.width,height:r.height,window:i,touch:o};t.apply(null,[e,u,n])}))})),o=Pn(e);return o.length&&en(o,(function(n){W(n)&&i.observe(n)})),t}return n.onresize=function(){clearTimeout(e),e=setTimeout(t,200)},t},r.template=function(n,t){for(var e in t)rn(t,e)&&(n=n.replace(new RegExp(dn("$"+e),"g"),t[e]));return hn(n)},r.context=An,r.slice=zn,r.toElm=jn,r.toElms=Pn,r.camelCase=function(n){return n.replace(w,(function(n,t){return t.toUpperCase()}))},r.isVar=Bn,r.computeStyle=function(n,t,e){if(!W(n))return null;var r=getComputedStyle(n,null);return U(t)?r:e||Bn(t)?r.getPropertyValue(t)||null:r[t]||n.style[t]},r.rect=Rn,r.empty=function(n){return N.call(n,(function(n){if(W(n))for(;n.firstChild;)n.removeChild(n.firstChild)}))},r.parent=kn,r.next=function(n,t){return qn(n,t,"next")},r.prev=Dn,r.index=function(n,t){var e=0,r=!0;
129if(W(n)&&(U(t)||en(on(t),(function(t,i){if(W(t)){if(r=!1,mn(n,t))return e=i,!1}else if($(t)){var o=vn(n,t);if(W(o))return n=o,!1}})),r))for(;!F(n=Dn(n));)e++;return e},r.keys=A,r._op=un,r.storage=function(n,t,e,r){if(S){if(U(t))return S.getItem(n);if(F(t))S.removeItem(n);else try{S.setItem(n,t)}catch(e){S.removeItem(n),r&&S.setItem(n,t)}}return e||!1};var _n={chain:function(n){return N.call(this,n)},each:function(n){return en(this,n)},ready:function(n){return T.call(this,n)}};i.extend(_n),r.matches=mn,r.forEach=en,r.bindEvent=Cn.bind(r),r.unbindEvent=Nn.bind(r),"undefined"!=typeof exports?module.exports=r:n.dBlazy=r}(this,this.document,drupalSettings);
130;
131!function(r,n,e){"use strict";var o=n.once||e.once;function u(n,e,t){t=r.context(t,e);return o(n,e,t)}r.once=r.extend(function(n,e,t,o,c){var i=[];return r.wwoBigPipeDone()?r.isStr(n)&&r.isUnd(o)?u(n,e,t):(r.isUnd(t)?0:(i=u(e,t,o)).length&&r.each(i,n,c),i):i},o),r.once.counter=0,r.filter=function(t,n,o){return n.filter(function(n){var e=r.is(n,t);return e&&o&&o(n),e})},r.once.unload=r.once.counter>=(r.isBigPipe()?1:0),r.once.removeSafely=function(n,e,t){var o,c,i=[];return r.wwoBigPipeDone()&&(o=r.once.unload,t=r.context(t,e),o&&this.find(n,t).length&&(i=this.remove(n,e,t),e=e,c=[],r.contains(e,":not")&&(e=e.split(":not"),r.each(e,function(n){var e;r.contains(n,"(")&&(e=n.split("(").pop().split(")")[0],r.contains(e,",")?(n=e.split(","),r.each(n,function(n){n=n.replace(".",""),c.push(n)})):e&&(e=e.replace(".",""),c.push(e)))})),i.length&&c.length&&r.removeClass(i,c))),i},n.behaviors.blazyOnce={attach:function(n){r.wwoBigPipe(function(){1<r.once.counter&&r.once.counter--})},detach:function(n,e,t){"unload"===t&&r.wwoBigPipe(function(){r.once.counter++})}}}(dBlazy,Drupal,this);
132;
133!function(i,s){"use strict";function a(t,e,n){return t?("undefined"!=typeof DOMPurify?(r=DOMPurify.sanitize(t,e),r=i.isObj(e)&&e.RETURN_DOM?(n=!0,r):c(r)):function r(t){t=t.children;i.each(t,function(t){var n,e;n=t,e=i.nodeMapAttr(n.attributes),i.each(e,function(t,e){return!!o(e,t)&&void n.removeAttribute(e)}),r(t)})}(r=c(t)),n?r.childNodes:r.innerHTML):"";var r}function o(t,e){t=t.toLowerCase(),e=e.replace(/\s+/g,"").toLowerCase();return!(!["src","href","xlink:href"].includes(t)||!e.includes("script:")&&!e.includes("data:text/html"))||t.startsWith("on")}function c(t){return(new DOMParser).parseFromString(t,"text/html").body||s.createElement("body")}i.create=function(t,e,n){var r=s.createElement(t);return(i.isStr(e)||i.isObj(e))&&(i.isStr(e)?r.className=e:i.attr(r,e)),n&&(n=n.trim(),r.innerHTML=a(n),"template"===t&&(r=r.content.firstChild||r)),r},i.sanitizer={isDangerous:o,sanitize:a,toNode:c},i.sanitize=a}(dBlazy,this.document);
134;
135!function(c,n){"use strict";var t=Array.prototype.some,u="remove",h="width",l="height",e="after",r="before",i="begin",o="Top",s="Left",f="Height",a="scroll";function d(t,n,r){var i=this,e=c.isUnd(r),u=c.isObj(n),o=!u&&e;if(o&&c.isStr(n)){var s=c.toElm(t),f=[h,l,"top","right","bottom","left"],e=c.computeStyle(s,n),s=c.toInt(e,0);return-1===f.indexOf(n)?e:s}return c.chain(t,function(e){if(!c.isElm(e))return o?"":i;function t(t,n){c.isFun(t)&&(t=t()),(c.contains(n,"-")||c.isVar(n))&&(n=c.camelCase(n)),e.style[n]=c.isStr(t)?t:t+"px"}u?c.each(n,t):c.isNull(r)?c.each(c.toArray(n),function(t){e.style.removeProperty(t)}):c.isStr(n)&&t(r,n)})}function m(t){t=c.rect(t);return{top:(t.top||0)+n.body[a+o],left:(t.left||0)+n.body[a+s]}}function p(t,n){return d(t,h,n)}function g(t,n){return d(t,l,n)}function v(t,n,e){var r,i=0;return c.isElm(t)&&(i=t["offset"+e],n&&(r=c.computeStyle(t),t=function(t){return c.toInt(r["margin"+t],0)},i+=e===f?t(o)+t("Bottom"):t(s)+t("Right"))),i}function y(t,n){return v(t,n,"Width")}function A(t,n){return v(t,n,f)}function C(t,n,e){c.isElm(t)&&t["insertAdjacent"+(c.isElm(n)?"Element":"HTML")](e,n)}function E(t,n){C(t,n,e+"end")}function b(t,n){C(t,n,r+i)}function x(t,n){c.isElm(t)&&(c.isElm(n)?t.appendChild(n):C(t,n,r+"end"))}function S(t,n){C(t,n,e+i)}function H(t,n){c.isUnd(n)&&(n=!0);return c.chain(t,function(t){return c.isElm(t)&&t.cloneNode(n)})}var w={css:function(t,n){return d(this,t,n)},hasAttr:function(n){return t.call(this,function(t){return c.hasAttr(t,n)})},attr:function(t,n,e){return c.isNull(n)?this.removeAttr(t,e):c.attr(this,t,n,e)},removeAttr:function(t,n){return c.removeAttr(this,t,n)},hasClass:function(n){return t.call(this,function(t){return c.hasClass(t,n)})},toggleClass:function(t,n){return c.toggleClass(this,t,n)},addClass:function(t){return this.toggleClass(t,"add")},removeClass:function(t){return arguments.length?this.toggleClass(t,u):this.attr("class","")},empty:function(){return c.empty(this)},first:function(t){return c.isUnd(t)?this[0]:t},after:function(t){return E(this[0],t)},before:function(t){return b(this[0],t)},append:function(t){return x(this[0],t)},prepend:function(t){return S(this[0],t)},remove:function(){this.each(c.remove)},closest:function(t){return c.closest(this[0],t)},equal:function(t){return c.equal(this[0],t)},find:function(t,n){return c.find(this[0],t,n)},findAll:function(t){return c.findAll(this[0],t)},clone:function(t){return H(this,t)},computeStyle:function(t){return c.computeStyle(this[0],t)},offset:function(){return m(this[0])},parent:function(t){return c.parent(this[0],t)},prev:function(t){return c.prev(this[0],t)},next:function(t){return c.next(this[0],t)},index:function(t){return c.index(this[0],t)},width:function(t){return p(this[0],t)},height:function(t){return g(this[0],t)},outerWidth:function(t){return y(this[0],t)},outerHeight:function(t){return A(this[0],t)},on:function(t,n,e,r,i){return c.on(this,t,n,e,r,i,"add")},off:function(t,n,e,r,i){return c.off(this,t,n,e,r,i,u)},one:function(t,n,e){return c.one(this,t,n,e)},trigger:function(t,n,e){return c.trigger(this,t,n,e)}};c.fn.extend(w),c.css=d,c.offset=m,c.clone=H,c.after=E,c.before=b,c.append=x,c.prepend=S,c.width=p,c.height=g,c.outerWidth=y,c.outerHeight=A}(dBlazy,this.document);
136;
137!function(e,r,i){"use strict";function u(t){return t.target||t}function a(t,n){return e.hasClass(u(t),n)}e.debounce=function(t,n,i,e){return i?r.debounce(function(){t.call(i,n)},e||201,!0):r.debounce.call(this,t)},e.matchMedia=function(t,n){return!!i.matchMedia&&(e.isUnd(n)&&(n="max"),i.matchMedia("("+n+"-device-width: "+t+")").matches)},e.isBg=function(t,n){return a(t,n&&n.bgClass||"b-bg")},e.isBlur=function(t){return a(t,"b-blur")},e.isGrid=function(t){return e.isElm(e.closest(u(t),".grid"))},e.isHtml=function(t){return a(t,"b-html")},e.image={alt:function(t,n){var i=e.find(t,"img:not(.b-blur)"),i=e.attr(i,"alt");return n=n||"Video preview",i||(t=e.find(t,".media"),i=e.attr(t,"title")),i?r.checkPlain(i):r.t(n)},ratio:function(t){var n=e.toInt(t.width,640);return(e.toInt(t.height,360)/n*100).toFixed(2)},scale:function(t,n,i,e){e=Math.min(i/t,e/n);return{width:t*e,height:n*e,ratio:e}},dimension:function(t,n){return{width:t,height:n}},hack:function(t,n){return{paddingBottom:t,height:n}}}}(dBlazy,Drupal,this);
138;
139!function(i){"use strict";function o(t,n,a){return i.chain(t,function(e){i.isElm(e)&&i.each(i.toArray(n),function(t){var n,r="data-"+t;i.hasAttr(e,r)&&(n=i.attr(e,r),i.attr(e,t,n),a&&i.removeAttr(e,r))})})}function e(t,a,u,c){i.isUnd(c)&&(c=!0);return i.chain(t,function(t){var n,r,e;i.isElm(t)&&(n=t.parentNode,r=i.equal(n,"picture"),e=null,c?e=r?n:t:r&&(e=n),i.isElm(e)&&(e=e.getElementsByTagName("source"),a=a||(r?"srcset":"src"),e.length&&o(e,a,u)))})}i.mapAttr=o,i.fn.mapAttr=function(t,n){return o(this,t,n)},i.mapSource=e,i.fn.mapSource=function(t,n,r){return e(this,t,n,r)}}(dBlazy);
140;
141!function(t,i,n){"use strict";function e(t){return t?t.target||t:null}function r(i){i=i||0;
141var n=t.windowSize();return{top:0-i,left:0-i,bottom:n.height+i,right:n.width+i,width:n.width,height:n.height}}function o(i){var n=e(i);return n&&t.isNull(n.offsetParent)}t.viewport={vp:{top:0,right:0,bottom:0,left:0},ww:0,opts:{},init:function(t){var i=this;return i.opts=t||{},i.vp=r(i.opts.offset),i.vp},isResized:function(t,i){return i&&"contentRect"in i&&(!!i.contentRect||!!t.resizeTrigger)||!1},isHidden:o,isVisible:function(i,n){if(!i)return!1;var o=e(i);return t.isIo&&"isIntersecting"in i?i.isIntersecting||i.intersectionRatio>0:function(i,n){var e=t.isElm(i)?t.rect(i):i;return n||(n=r()),e.right>=n.left&&e.bottom>=n.top&&e.left<=n.right&&e.top<=n.bottom}(o,n)},onresizing:function(i,n){var e=i.elms,r=i.options||{};t.isFun(r.resizing)&&r.resizing(i,e,n)},update:function(t){var e=this,r=(t=t||e.opts).offset||0,o=n.documentElement;return e.vp.bottom=(i.innerHeight||o.clientHeight)+r,e.vp.right=(i.innerWidth||o.clientWidth)+r,e.windowData(t)},visibleParent:function(i){for(var n=e(i),r=t.parent(n),s=r;r;){if(t.isElm(r)&&!o(r)){s=r;break}r=r.parentElement||r.parentNode}return s},windowData:function(t,i){var n=this,e=(t=t||n.opts).offset||0,r=t.mobileFirst||!1;return i&&n.init(t),n.ww=n.vp.right-e,{vp:n.vp,ww:n.ww,up:r}}}}(dBlazy,this,this.document);
142;
143!function(s,e,r){"use strict";var t="data-",o="srcset",i=t+"src",n=t+o,a=[o,"src"],c=0;s._defaults={error:!1,offset:100,root:r,success:!1,selector:".b-lazy",separator:"|",container:!1,containerClass:!1,errorClass:"b-error",loadInvisible:!1,successClass:"b-loaded",visibleClass:!1,validateDelay:25,saveViewportOffsetDelay:50,srcset:n,src:i,bgClass:"b-bg",isMedia:!1,parent:".media",disconnect:!1,intersecting:!1,observing:!1,resizing:!1,mobileFirst:!1,rootMargin:"0px",threshold:[0]},s.isCompleted=function(e){if(s.isElm(e)){if(s.equal(e,"img"))return s.isDecoded(e);if(s.equal(e,"iframe"))return"complete"===(e.contentDocument||e.contentWindow.document).readyState}return!1},s.selector=function(e,r){var t=(e=e||s._defaults).selector;return r&&s.isBool(r)&&(r=":not(."+e.successClass+")"),t+(r||"")},s.status=function(e,r,o){return function(e,r,o){var n=s.closest(e,o.parent)||e,l=r===s._ok||!0===r,u=o.successClass,d=o.errorClass,f="is-"+u,b="is-"+d;return s.addClass(e,l?u:d),s.addClass(n,l?f:b),l?(e._bioLoaded=!0,c=function(e,r,t,o){return(s.isFun(o.success)||s.isObj(o.success))&&o.success(e,r,t,o),c>0&&c--,c}(e,r,n,o),s.hasAttr(e,i)&&s.removeAttr(e,a,t)):(e._bioLoaded=!1,c=function(e,r,t,o){return(s.isFun(o.error)||s.isObj(o.error))&&o.error(e,r,t,o),++c}(e,r,n,o)),c}(e,r,o)}}(dBlazy,0,this.document);
144;
145!function(f,u){"use strict";var i=f.viewport;f.observer={elms:[],scope:{},withIo:!1,init:function(n,t,e,r){var i,o=this,s=n.options||{},a=n._queue||[],u="windowData"in n?n.windowData():{},l=f.viewport;n._raf||(n._raf=[]);var c={rootMargin:s.rootMargin||"0px",threshold:s.threshold||0};function v(e){var r;return a.length||(r=requestAnimationFrame(h),n._raf.push(r)),a.push(e),!1}function h(){var e,r,i;e=a,r=t,i=n,f.each(e,r.bind(i)),e.length=0}o.elms=e=f.toArray(n.elms||e),o.scope=n,o.withIo=n.withIo||r,r&&(n.ioObserver=f.isIo?new IntersectionObserver(v,c):t.call(n,e));return n.roObserver=function(){return i=this,u=f.isUnd(u.ww)?l.windowData(s,!0):n.windowData(),f.isRo?new ResizeObserver(v):t.call(n,e)}(),n.resizeTrigger=i,u},visibleParent:function(e){var r=i;return r&&r.isHidden(e)?r.visibleParent(e):null},hiddenChild:function(e,r){var i=this.scope.ioObserver;if(i&&!f.is(e,r)){r=f.find(e,r);if(f.isElm(r))return i.unobserve(e),r}return null},observe:function(){function e(i){i&&t&&t.length&&f.each(t,function(e){var r;i!==s||(r=n.visibleParent(e))&&i.observe(r),i.observe(e)})}var n=this,r=n.scope,t=n.elms,i=n.withIo,o=r.options||{},s=r.ioObserver,a=r.roObserver;return f.isIo&&(s||a)?(i&&e(s),e(a)):"Blazy"in u&&(r.bLazy=new Blazy(o)),r},unload:function(e){e=(e=e||this.scope)._raf||[];e.length&&f.each(e,function(e){cancelAnimationFrame(e)})}}}(dBlazy,this);
146;
147!function(i,e,s){"use strict";var t,n={nick:"bio",winData:{},bioTick:0,revTick:0,hitTick:0,bgClass:"b-bg",isVisibleClass:"is-b-visible",eIntersecting:"bio:intersecting",sParent:".media",addClass:"addClass",removeClass:"removeClass",initialized:!1,isNative:i.isNativeLazy,isResizing:!1,validateDelay:25,ww:0},o=s,a={},r=i.observer,d=i.viewport;function l(e){var s=i.extend({},t,this);return s.name="Bio",s.options=a=i.extend({},i._defaults,e||{}),s.options.isNative=n.isNative,n.bgClass=a.bgClass||n.bgClass,n.validateDelay=a.val
147idateDelay||n.validateDelay,n.sParent=a.parent||n.sParent,o=a.root||o,i.ready((function(){s.reinit()})),s}function c(s,t){var o=this,a=o.options,d=a.selector,l=o.count,c=o.ioObserver,u=a.visibleClass||t||!1;if(n.bioTick===l-1&&(i.trigger(e,n.nick+":done",[o,a]),u||o.destroyQuietly()),c){var v=r.hiddenChild(s,d);v&&(s=v),o.isLoaded(s)&&!t&&(a.isMedia&&!u&&c.unobserve(s),n.bioTick++)}s.bhit&&!t||(o.lazyLoad(s,n.winData),n.hitTick++,s.bhit=!0),i.isFun(a.intersecting)&&a.intersecting(s,a),i.trigger(s,n.eIntersecting,[o,a])}function u(s){var t=this,o=t.options,a=d.vp||{},r=d.ww||0,l=s[0],u=i.isBlur(l),v=d.isResized(t,l),b=o.visibleClass,f=i.isBool(b)&&b;if(v){if(n.winData=d.update(o),d.onresizing(t,n.winData),n.ww>0){var h={winData:n.winData,entries:t.elms,currentWidth:r,oldWidth:n.ww,enlarged:r>n.ww};n.ww!==r?i.trigger(e,n.nick+":resizing",h):i.trigger(e,n.nick+":resized",h),t.resizeTick++}}else if(t.destroyed&&!b)return;i.each(s,(function(e){var s=e.target||e,l=d.isResized(t,e),v=d.isVisible(e,a),h=s._bioParent||s;u=u&&!i.hasClass(h,"is-b-animated"),v?(t.isLoaded(s)||i[n.addClass](h,n.isVisibleClass),c.call(t,s),t.isLoaded(s)&&((u||f)&&i[n.addClass](h,n.isVisibleClass),f||setTimeout((function(){i[n.removeClass](h,n.isVisibleClass)}),601))):i[n.removeClass](h,n.isVisibleClass),b&&i.isStr(b)&&i[v?n.addClass:n.removeClass](h,b),n.isResizing=l&&n.ww>0,n.isResizing&&!u&&n.ww!==r&&t.resizing(s,n.winData),i.isFun(o.observing)&&o.observing(e,v,o)})),n.ww=r}function v(e,s,t){s.length&&i.each(s,(function(s){s._bioParent||(s._bioParent=i.closest(s,n.sParent)||s,e.preprocess(s),i.isFun(t)&&t(s))}))}(t=l.prototype).constructor=l,t.count=0,t.erCount=0,t.resizeTick=0,t.destroyed=!1,t.elms=[],t.options={},t.preprocess=function(i,e,s){},t.lazyLoad=function(i,e){},t.loadImage=function(i,e,s){},t.resizing=function(i,e){},t.prepare=function(){},t.windowData=function(){return i.isUnd(n.winData.vp)?d.windowData(this.options,!0):n.winData},t.load=function(e,s,t){var n=this;e=e&&i.toArray(e),i.isUnd(t)||(n.options=i.extend({},n.options,t||{})),s=s||n.options.loadInvisible,v(n,e,(function(e){(!n.isLoaded(e)||i.isElm(e)&&s)&&(e._bioValidated||(e._bioValidated=!0,n.elms.push(e)),c.call(n,e,s))}))},t.isLoaded=function(e){return!!i.isElm(e)&&(e._bioLoaded||i.hasClass(e,this.options.successClass))},t.isNotLoaded=function(i){return!this.isLoaded(i)},t.revalidate=function(e){var s=this;if((!0===e||s.count!==n.hitTick)&&n.revTick<n.hitTick){var t=i.findAll(o,i.selector(s.options));t.length&&(v(s,t,(function(i){s.isLoaded(i)||i._bioValidated||(i._bioValidated=!0,s.elms.push(i))})),s.observe(!0),n.revTick++)}},t.destroyQuietly=function(e){var t=this,n=t.options;if(!t.destroyed&&(e||i.isUnd(Drupal.io))){var o=i.find(s,i.selector(n,":not(."+n.successClass+")"));i.isElm(o)||t.destroy(e)}},t.destroy=function(i){var e=this,s=e.options,t=e.ioObserver,o=n.bioTick===e.count-1&&s.disconnect;e.destroyed||e.erCount>0&&!i||(o||i)&&(t&&t.disconnect(),r.unload(),e.count=0,e.elms=[],e.ioObserver=null,e.destroyed=!0)},t.observe=function(i){var e=this;i=i||e.destroyed,n.initialized&&!i||(n.winData=r.init(e,u,e.elms,!0),e.destroyed=!1,r.observe(),n.initialized=!0)},t.reinit=function(){this.destroyed=!0,n.bioTick=0,function(e){e.elms=i.findAll(o,i.selector(e.options)),e.count=e.elms.length,e.elms.length&&(v(e,e.elms),e.prepare(),e._raf=[],e._queue=[],e.withIo=!0,e.observe(!0))}(this)},e.Bio=l}(dBlazy,this,this.document);
148;
149!function(t,a,r){"use strict";var e,s={src:"src",srcset:"srcset",dataHtml:"data-b-html",dataSrc:"data-src",dataSrcset:"data-srcset",dataText:"data:text/plain;base64,",imgSources:["srcset","src"],erCount:0},i=t.multimedia||!1,n=a.prototype;function o(r){var s=t.extend({},n,e),i=a.call(s,r);return i.name="BioMedia",i}function c(a,r){if(t.isHtml(a)&&t.hasAttr(a,s.dataHtml)){var e=t.attr(a,s.dataHtml),i=!1;e&&(i=!0,e=e.replace(s.dataText,""),e=atob(e),t.append(a,e),t.removeAttr(a,s.dataHtml)),s.erCount=t.status(a,i,r)}}function u(a,r,e,s){return r._isDeferred||(a.preprocess(r,"defer",function(){t.attr(r,"loading","lazy")}),r._isDeferred=!0),t.status(r,e,s)}(e=o.prototype=Object.create(n)).constructor=o,e.preprocess=function(a,r,e){var i=this.options,n=t.attr(a,"loading"),o=t.hasAttr(a,"data-src");r=r||"a",function(t){if(!t||"IMG"!==t.nodeName)return!1;var a=t.getAttribute(s.src);if(!a||"string"!=typeof a)return!1;if(a.startsWith("data"))return!1;if(!a.startsWith("image"))return!1;if(-1===a.indexOf("base64")&&-1===a.indexOf("svg+xml"))return!1;var r="data"+a;t.setAttribute(s.src,r)}(a),i.isNative&&t.contains(n,"a")&&!o||o&&t.contains(n,r)&&!t.hasClass(a,"b-blur")&&(function(a){a._bioMapped||(t.hasAttr(a,"data-src")&&!t.hasClass(a,"b-blur")&&(t.mapAttr(a,s.imgSources,!0),t.mapSource(a,!1,!0,!1)),a._bioM
149apped=!0)}(a),t.isFun(e)&&e(a))},e.lazyLoad=function(a,r){var e=this,n=e.options,o=a.parentNode,d=t.isBg(a,n),p=t.equal(o,"picture"),l=t.equal(a,"img"),m=t.equal(a,"audio"),f=t.equal(a,"video"),g=t.hasAttr(a,s.dataSrc);p?(g&&(t.mapSource(a,s.srcset,!0),t.mapAttr(a,s.src,!0)),s.erCount=u(e,a,!0,n)):f||m?(t.isBg(o,n)&&e.loadImage(o,!0,r),s.erCount=function(a,r,e){return t.mapSource(a,s.src,!0),a.load(),i&&i.init(a),t.status(a,!0,e)}(a,0,n)):l||d?(e.loadImage(a,d,r),d&&t.isHtml(a)&&c(a,n)):t.hasAttr(a,s.src)?(t.attr(a,s.dataSrc)&&t.mapAttr(a,s.src,!0),s.erCount=u(e,a,!0,n)):c(a,n),e.erCount=s.erCount},e.loadImage=function(a,r,e){var i=this,n=i.options;r=r||t.isBg(a,n);var o,c=t.hasAttr(a,s.srcset),d=t.hasAttr(a,s.dataSrc),p=d?s.dataSrc:s.src,l=d?s.dataSrcset:s.srcset,m=function(a,o){r&&t.isFun(t.bg)?(t.bg(a,e),s.erCount=t.status(a,o,n)):s.erCount=u(i,a,o,n)};r||!t.isDecoded(a)?(o=new Image,function(){if("decode"in o&&(o.decoding="async"),r&&t.isFun(t.bgUrl)?o.src=t.bgUrl(a,e):(d&&t.mapAttr(a,s.imgSources,!1),o.src=t.attr(a,p)),c){o.srcset=t.attr(a,l);var i=t.attr(a,"sizes");i&&(o.sizes=i)}}(),t.decode(o).then(function(){return m(a,!0),o}).catch(function(){m(a,!1),a.bhit=!1})):m(a,!0)},e.resizing=function(a,r){var e=t.isBg(a,this.options);e&&this.loadImage(a,e,r)},e.prepare=function(){t.webp&&t.webp.init(this)},r.BioMedia=o}(dBlazy,Bio,this,this.document);
150;
151!function(t,n,i,e,s){"use strict";var r="blazy",a="Drupal."+r,o="data",l="b-checked",u=o+"-b-bg",c=o+"-b-ratios",d=".b-blur",g=".media",h="successClass",f=r+":done",p=r+":error",b=function(){},v={};n.blazy={context:s,name:a,init:null,instances:[],resizeTick:0,resizeTrigger:!1,blazySettings:i.blazy||{},ioSettings:i.blazyIo||{},options:{},clearCompat:b,clearScript:b,checkResize:b,resizing:b,revalidate:b,isIo:function(){return!0},isBlazy:function(){return!t.isIo&&"Blazy"in e},isFluid:function(n,i){return t.equal(n.parentNode,"picture")&&t.hasAttr(i,c)},isLoaded:function(n){return t.hasClass(n,this.options[h])},globals:function(){var n=this,i={isMedia:!0,success:n.clearing.bind(n),error:n.clearing.bind(n),resizing:n.resizing.bind(n),selector:".b-lazy",parent:g,errorClass:"b-error",successClass:"b-loaded"};return t.extend(n.blazySettings,n.ioSettings,i)},extend:function(n){v=t.extend({},v,n)},merge:function(n){var i=this;return i.options=t.extend({},i.globals(),i.options,n||{}),i.options},run:function(t){return new BioMedia(t)},mount:function(n){var i=this;return i.merge(),n&&t.each(v,function(n){t.isFun(n)&&n.call(i)}),t.extend(i,v)},selector:function(t){t=t||"";var n=this.options;return n.selector+t+":not(."+n[h]+")"},clearing:function(i){var s,r=this;if(t.hasClass(i,r.options.errorClass)&&!t.hasClass(i,l))return t.addClass(i,l),t.isFun(t.unloading)&&t.unloading(i),void t.trigger(i,p,[r]);s=t.hasClass(i,"b-responsive")&&t.hasAttr(i,o+"-pfsrc"),e.picturefill&&s&&e.picturefill({reevaluate:!0,elements:[i]}),e.setTimeout(function(){t.isHtml(i)&&n.attachBehaviors(i),t.isFun(t.unloading)&&t.unloading(i)},300),r.clearCompat(i),r.clearScript(i),t.trigger(i,f,{options:r.options})},windowData:function(){return this.init?this.init.windowData():{}},load:function(n){var i=this;e.setTimeout(function(){var e=t.findAll(n||s,i.selector());e.length&&t.each(e,i.update.bind(i))},100)},update:function(n,i,s){var r=this,a=r.options,o=a.selector,l=function(){t.hasAttr(n,u)&&t.isFun(t.bg)?t.bg(n,s||r.windowData()):r.init&&(t.hasClass(n,o.substring(1))||(n=t.find(n,o)||n),r.init.load(n,!0,a))};(i=i||!1)?e.setTimeout(l,100):l()},rebind:function(n,i,e){var s=t.findAll(n,this.options.selector+":not("+d+")"),r=s.length;r||(s=t.findAll(n,"img:not("+d+")")),s.length&&t.each(s,function(n){var s=r?f:"load";t.one(n,s,i,r),e&&e.observe(n)})},pad:function(n,i,e){var s=this,r=t.closest(n,g)||n;setTimeout(function(){var e=Math.round(n.naturalHeight/n.naturalWidth*100,2);s.isFluid(n,r)&&(r.style.paddingBottom=e+"%"),t.isFun(i)&&i.call(s,n,r,e)},e||0)}}}(dBlazy,Drupal,drupalSettings,this,this.document);
152;
153!function(t,i){"use strict";var a="data-",n=a+"b-ratios",e=a+"b-ratio",s={},r={};function o(i){var a=t.aniElement&&t.aniElement(i);t.animate&&t.isElm(a)&&!t.hasClass(a,"is-b-animated")&&t.animate(a)}function l(i,a,s){var o,l,c,d,u;i=i.target||i,s=!!t.isBool(s)&&s,t.isElm(i)&&(d=t.parse(t.attr(i,n)),t.isEmpty(d)?function(i){var a=t.attr(i,e);!t.hasAttr(i,"style")&&a&&(i.style.paddingBottom=a+"%")}(i):(l=t.isElm(t.find(i,"picture"))&&s,o=t.extend(r,{up:l}),u=t.closest(i,".blazy"),i.dblazy=t.isElm(u)&&u.dblazy,(c=t.activeWidth(d,o))&&!t.isUnd(c)&&(i.style.paddingBottom=c+"%")))}function c(){var i=this,a=i.context,n=t.findAll(a,".media--ratio");n.length&&(t.each(n,l.bind(i)),i.checkResize(n,l,a))}function d(){var i=this;i.mount(!0),s=i.options,t.isNull(i.init)&&(i.init=i.run(s)),c.call(i)}i.blazy=t.extend(i.blazy||{},{clearCompat:function(i){var a=t.isBg(i)&&(this.isBlazy()||t.ie(i));this.pad(i,o,a?50:0)},checkResize:function(i,a,n,e){var s=this,o=s.init;return t.on("bio:resizing.compat",function(n){var e=n&&n.detail?n.detail:{};r=e.winData||s.windowData(),s.resizeTick=o&&o.resizeTick||0,t.isFun(a)&&t.each(i,function(t,i){var n=t.target||t;return a.call(s,n,i,!0)})}),e&&t.isFun(e)&&s.rebind(n,e,s.roObserver),s.destroyed=!1,r}}),i.behaviors.blazyCompat={attach:function(a){var n=i.blazy;n.context=t.context(a),t.once(d.call(n))}}}(dBlazy,Drupal);
154;
155/* @license MIT https://raw.githubusercontent.com/focus-trap/tabbable/v6.3.0/LICENSE */
156/*!
157* tabbable 6.3.0
158* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
159*/
160!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t.tabbable,o=t.tabbable={};e(o),o.noConflict=function(){return t.tabbable=n,o}}())}(this,(function(t){"use strict";var e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not
160(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],n=e.join(","),o="undefined"==typeof Element,r=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!o&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},a=function(t,e){var n;void 0===e&&(e=!0);var o=null==t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||e&&t&&a(t.parentNode)},l=function(t,e,o){if(a(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(n));return e&&r.call(t,n)&&i.unshift(t),i=i.filter(o)},u=function(t,e,o){for(var i=[],l=Array.from(t);l.length;){var c=l.shift();if(!a(c,!1))if("SLOT"===c.tagName){var d=c.assignedElements(),f=d.length?d:c.children,s=u(f,!0,o);o.flatten?i.push.apply(i,s):i.push({scopeParent:c,candidates:s})}else{r.call(c,n)&&o.filter(c)&&(e||!t.includes(c))&&i.push(c);var p=c.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(c),h=!a(p,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(p&&h){var v=u(!0===p?c.children:p.children,!0,o);o.flatten?i.push.apply(i,v):i.push({scopeParent:c,candidates:v})}else l.unshift.apply(l,c.children)}}return i},c=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},d=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!c(t)?0:t.tabIndex},f=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},s=function(t){return"INPUT"===t.tagName},p=function(t){return function(t){return s(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||i(t),o=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var r=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!r||r===t}(t)},h=function(t){var e=t.getBoundingClientRect(),n=e.width,o=e.height;return 0===n&&0===o},v=function(t,e){var n=e.displayCheck,o=e.getShadowRoot;if("full-native"===n&&"checkVisibility"in t)return!t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(t).visibility)return!0;var a=r.call(t,"details>summary:first-of-type")?t.parentElement:t;if(r.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return h(t)}else{if("function"==typeof o){for(var l=t;t;){var u=t.parentElement,c=i(t);if(u&&!u.shadowRoot&&!0===o(u))return h(t);t=t.assignedSlot?t.assignedSlot:u||c===t.ownerDocument?u:c.host}t=l}if(function(t){var e,n,o,r,a=t&&i(t),l=null===(e=a)||void 0===e?void 0:e.host,u=!1;if(a&&a!==t)for(u=!!(null!==(n=l)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(l)||null!=t&&null!==(r=t.ownerDocument)&&void 0!==r&&r.contains(t));!u&&l;){var c,d,f;u=!(null===(d=l=null===(c=a=i(l))||void 0===c?void 0:c.host)||void 0===d||null===(f=d.ownerDocument)||void 0===f||!f.contains(l))}return u}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},b=function(t,e){return!(e.disabled||a(e)||function(t){return s(t)&&"hidden"===t.type}(e)||v(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}
160(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var o=e.children.item(n);if("LEGEND"===o.tagName)return!!r.call(e,"fieldset[disabled] *")||!o.contains(t)}return!0}e=e.parentElement}return!1}(e))},y=function(t,e){return!(p(e)||d(e)<0||!b(t,e))},m=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},g=function(t){var e=[],n=[];return t.forEach((function(t,o){var r=!!t.scopeParent,i=r?t.scopeParent:t,a=function(t,e){var n=d(t);return n<0&&e&&!c(t)?0:n}(i,r),l=r?g(t.candidates):i;0===a?r?e.push.apply(e,l):e.push(i):n.push({documentOrder:o,tabIndex:a,item:t,isScope:r,content:l})})),n.sort(f).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(e)},w=e.concat("iframe").join(",");t.focusable=function(t,e){return(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:b.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):l(t,e.includeContainer,b.bind(null,e))},t.getTabIndex=d,t.isFocusable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,w)&&b(e,t)},t.isTabbable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,n)&&y(e,t)},t.tabbable=function(t,e){var n;return n=(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:y.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:m}):l(t,e.includeContainer,y.bind(null,e)),g(n)}}));
161
162;
163/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
164(function($,Drupal){let autocomplete;function autocompleteSplitValues(value){const result=[];let quote=false;let current='';const valueLength=value.length;let character;for(let i=0;i<valueLength;i++){character=value.charAt(i);if(character==='"'){current+=character;quote=!quote;}else if(character===','&&!quote){result.push(current.trim());current='';}else current+=character;}if(value.length>0)result.push(current.trim());return result;}function extractLastTerm(terms){return autocomplete.splitValues(terms).pop();}function searchHandler(event){const options=autocomplete.options;if(options.isComposing)return false;const term=autocomplete.extractLastTerm(event.target.value);if(term.length>0&&options.firstCharacterBlacklist.includes(term[0]))return false;return term.length>=options.minLength;}function sourceData(request,response){const elementId=this.element.attr('id');if(!(elementId in autocomplete.cache))autocomplete.cache[elementId]={};function showSuggestions(suggestions){const tagged=autocomplete.splitValues(request.term);const il=tagged.length;for(let i=0;i<il;i++)if(suggestions.includes(tagged[i]))suggestions.splice(suggestions.indexOf(tagged[i]),1);response(suggestions);}const term=autocomplete.extractLastTerm(request.term);function sourceCallbackHandler(data){autocomplete.cache[elementId][term]=data;showSuggestions(data);}if(autocomplete.cache[elementId].hasOwnProperty(term))showSuggestions(autocomplete.cache[elementId][term]);else{const options=$.extend({success:sourceCallbackHandler,data:{q:term}},autocomplete.ajax);$.ajax(this.element.attr('data-autocomplete-path'),options);}}function focusHandler(){return false;}function selectHandler(event,ui){const terms=autocomplete.splitValues(event.target.value);terms.pop();terms.push(ui.item.value);event.target.value=terms.join(', ');return false;}function renderItem(ul,item){return $('<li>').append($('<a>').html(item.label)).appendTo(ul);}Drupal.behaviors.autocomplete={attach(context){once('autocomplete','input.form-autocomplete',context).forEach((element)=>{const $autocomplete=$(element);const blacklist=$autocomplete.attr('data-autocomplete-first-character-blacklist');$.extend(autocomplete.options,{firstCharacterBlacklist:blacklist||''});$autocomplete.autocomplete(autocomplete.options).each(function(){$(this).data('ui-autocomplete')._renderItem=autocomplete.options.renderItem;});$autocomplete.on('compositionstart.autocomplete',()=>{autocomplete.options.isComposing=true;});$autocomplete.on('compositionend.autocomplete',()=>{autocomplete.options.isComposing=false;});});},detach(context,settings,trigger){if(trigger==='unload')$(once.remove('autocomplete','input.form-autocomplete',context)).autocomplete('destroy');}};autocomplete={cache:{},splitValues:autocompleteSplitValues,extractLastTerm,options:{source:sourceData,focus:focusHandler,search:searchHandler,select:selectHandler,renderItem,minLength:1,firstCharacterBlacklist:'',isComposing:false},ajax:{dataType:'json',jsonp:false}};Drupal.autocomplete=autocomplete;})(jQuery,Drupal);;
165(function(Drupal,drupalSettings){"use strict";drupalSettings.antibot=drupalSettings.antibot||{};Drupal.antibot={};Drupal.behaviors.antibot={attach:function(context,settings){drupalSettings=settings;drupalSettings.antibot.human=false;document.body.addEventListener('mousemove',function(){Drupal.antibot.unlockForms();});document.body.addEventListener('touchmove',function(){Drupal.antibot.unlockForms();});document.body.addEventListener('keydown',function(e){if((e.code=='Tab')||(e.code=='Enter'))Drupal.antibot.unlockForms();});}};Drupal.antibot.unlockForms=function(){if(!drupalSettings.antibot.human){if(drupalSettings.antibot.forms!=undefined)Object.values(drupalSettings.antibot.forms).forEac
165h(function(config){const form=document.getElementById(config.id);if(form){form.setAttribute('action',form.getAttribute('data-action'));const input=form.querySelector('input[name="antibot_key"]');if(input)input.value=config.key.split("").reverse().join("").match(/.{1,2}/g).map((value)=>value.split("").reverse().join("")).join("");}});drupalSettings.antibot.human=true;}};})(Drupal,drupalSettings);;
166(function($,Drupal,once){Drupal.behaviors.betterExposedFilters={attach:function(context){$('.bef-tree input[type=checkbox], .bef-checkboxes input[type=checkbox]').change(function(){_bef_highlight(this,context);}).filter(':checked').closest('.form-item',context).addClass('highlight');}};function _bef_highlight(elem,context){$elem=$(elem,context);$elem.attr('checked')?$elem.closest('.form-item',context).addClass('highlight'):$elem.closest('.form-item',context).removeClass('highlight');}Drupal.behaviors.autosubmitExcludeTextfield={attach:function(context,settings){if(!settings.better_exposed_filters?.autosubmit_exclude_textfield)return;$(once('autosubmit-exclude-textfield','.bef-exposed-form *[type="text"]',context)).each(function(){$(this).attr('data-bef-auto-submit-exclude','');});}};Drupal.behaviors.befSingleCheckboxFix={attach:function(context,settings){once('befSingleCheckboxFix','form.views-exposed-form',context).forEach((form)=>{const $form=$(form);const $checkboxes=$form.find('input[type="checkbox"].single-checkbox');$form.on('submit',function(){$checkboxes.each(function(){const $checkbox=$(this);const name=$checkbox.attr('name');$form.find('input[type="hidden"][name="'+name+'"]').remove();if(!$checkbox.is(':checked'))$('<input>').attr({type:'hidden',name,value:0}).appendTo($form);});});});}};})(jQuery,Drupal,once);;
167(function(Drupal,once){Drupal.behaviors.befResetAjax={attach:function(context){once('bef-reset-ajax','form.views-exposed-form input[name="reset"], form.views-exposed-form button[name="reset"]',context).forEach(function(resetButton){resetButton.addEventListener('click',function(e){e.stopImmediatePropagation();window.location.href=window.location.origin+window.location.pathname;});});}};})(Drupal,once);;
168(function($,once){Drupal.behaviors.betterExposedFiltersSelectAllNone={attach:function(){const selected=$('.form-checkboxes.bef-select-all-none:not(.bef-processed)');if(selected.length){const selAll=Drupal.t('Select All');const selNone=Drupal.t('Select None');const link=$('<a class="bef-toggle bef-toggle--select-all" href="#">'+selAll+'</a>');link.click(function(event){event.preventDefault();event.stopPropagation();if(selAll===$(this).text())$(this).html(selNone).removeClass('bef-toggle--select-all').addClass('bef-toggle--deselect-all').siblings('.bef-select-all-none, .bef-tree').find('input:checkbox').each(function(){$(this).prop('checked',true);}).end().find('input[type=checkbox]:first').change();else $(this).html(selAll).removeClass('bef-toggle--deselect-all').addClass('bef-toggle--select-all').siblings('.bef-select-all-none, .bef-tree').find('input:checkbox').each(function(){$(this).prop('checked',false);}).end().find('input[type=checkbox]:first').change();});selected.addClass('bef-processed').each(function(){const newLink=link.clone(true);newLink.insertBefore($(this));$('input:checkbox',this).click(function(){if($(this).prop("checked")===true)newLink.text(selNone);else{if($(this).prop("checked")===false)newLink.text(selAll);}});if($('input:checkbox:checked',this).length===$('input:checkbox',this).length)newLink.text(selNone).removeClass('bef-toggle--select-all').addClass('bef-toggle--deselect-all');});}}};Drupal.behaviors.betterExposedFiltersAllNoneNested={attach:function(){$(once('bef-all-none-nested','.bef-select-all-none-nested ul li')).each(function(){const $this=$(this);$this.find('input:checkbox:first').change(function(){$(this).closest('li').find('ul li input:checkbox').prop('checked',this.checked);});$this.find('ul input:checkbox').change(function(){const $this=$(this);const uncheckedSiblings=$this.closest('li').siblings('li').find('> div input:checkbox:not(:checked)').length;
168if(uncheckedSiblings||!this.checked)$this.parents('ul').siblings('div').find('input:checkbox').prop('checked',false);if(this.checked&&!uncheckedSiblings)$(this).closest('ul').closest('li').find('input:checkbox:first').prop('checked',true).change();});});}};})(jQuery,once);;
169(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}" class="progress" aria-live="polite">`+'<div class="progress__label">&nbsp;</div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description">&nbsp;</div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);;
170/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */
171loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;
171for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();;
172/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
173(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);;
174((Drupal)=>{Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){Array.prototype.forEach.call(this.messageWrapper.querySelectorAll('[data-drupal-message-id]'),(message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);;
175(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;
175once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={};elementSettings.url=$(el.form).attr('action');elementSettings.setClick=true;elementSettings.event='click';elementSettings.progress={type:'throbber'};elementSettings.base=el.id;elementSettings.element=el;Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element&&this.element.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl[originalUrl])drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=$.parseJSON(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl[ajax.url])if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;
175$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl[ajax.url]&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="throbber">&nbsp;</div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen">&nbsp;</div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
175d}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('<div></div>').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;const parseHTML=(htmlString)=>{const fragment=document.createDocumentFragment();const template=fragment.appendChild(document.createElement('template'));template.innerHTML=htmlString;return template.content.childNodes;};let $newContent=$(parseHTML(response.data));
175$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){if(typeof response.data==='string'){Drupal.deprecationError({message:'Passing a string to the Drupal.ajax.add_css() method is deprecated in 10.1.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/3154948.'});$('head').prepend(response.data);return;}const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;
175if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){document.querySelector(response.selector)?.scrollIntoView();}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&settings.isInProgress&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);;
176(function(Drupal){Drupal.theme.ajaxProgressBar=function($element){return $element.addClass('ajax-progress ajax-progress-bar');};})(Drupal);;
177!function(e,n,o,a,t){"use strict";var i={id:"b-ajax",selector:"body",eventName:"ajaxSuccess",revRAF:null};function r(){var r=this;n(t).on(i.eventName,(function(n,c,l){e.wwoBigPipeDone()&&c&&(i.revRAF&&(cancelAnimationFrame(i.revRAF),i.revRAF=null),i.revRAF=requestAnimationFrame((function(){Promise.resolve().then((function(){if(r.init){var n=r.options;if(e.find(t,e.selector(n,!0))){var i=t.body,u=e.once.unload;e.once.unload=!0,e.once.remove("b-root","body",t),o.attachBehaviors(i,a),e.trigger("blazy:ajaxSuccess",[r,c,l]),e.once.unload=u}}}))})))}))}o.behaviors.blazyAjax={attach:function(){var n=o.blazy;e.once(r.bind(n),i.id,i.selector,t)},detach:function(n,o,a){"unload"===a&&e.once.removeSafely(i.id,i.selector,t)}}}(dBlazy,jQuery,Drupal,drupalSettings,this.document);
178;
179(function(){Drupal.behaviors.dataLayer={langPrefixes:function langPrefixes(){var languages=Drupal.settings.dataLayer.languages,langList=[];for(var lang in languages)if(languages[lang].prefix!=='')langList.push(languages[lang].prefix);return langList;},attach:function(){return;}};})();;
180(function(Drupal){Drupal.AjaxCommands.prototype.gtagEvent=function(ajax,response){gtag('event',response.event_name,response.data);};})(Drupal);;
181"use strict";(function($,Drupal){var fieldWrapperSelector='.use-checkbox-multiselect .filters fieldset.fieldgroup';var fieldWrapperElement=null;var totalItems=0;var itemsChecked=0;var expanded=false;function showCheckboxes(){var checkboxes=$(".bef-checkboxes")[0];if(!expanded){checkboxes.style.display="block";$('.custom-select').addClass('active');expanded=true;}else{checkboxes.style.display="none";$('.custom-select').removeClass('active');expanded=false;}}function setFieldState(checkbox){var checkboxChecked=checkbox.checked;var itemWrapper=$(checkbox).closest('.form-type-checkbox');if(itemWrapper){itemWrapper.attr('data-checked',checkboxChecked);if(checkboxChecked)itemsChecked++;totalItems++;}}function initFields(){return new Promise(function(resolve){var checkboxes=$('.bef-checkboxes input[type="checkbox"]');Array.from(checkboxes).forEach(function(child){setFieldState(child);});return resolve();});}function addWrapper(){var selectBox=fieldWrapperElement.find('.selectBox');if(selectBox.length!==1){var selectBoxWrapper=$('<div>');var prompt=itemsChecked>0?itemsChecked+" of "+totalItems+" Selected":'Select';$(selectBoxWrapper).addClass('selectBox').prependTo($(fieldWrapperSelector)).html("<div class=\"custom-select\"><label for=\"tag-select\" class=\"sr-only\">Select Tags</label><select aria-label=\"Select Tags\" id=\"tag-select\"><option>"+prompt+"</option></select></div><div class=\"overSelect\"></div>").click(function(){showCheckboxes();});}}Drupal.behaviors.checkboxMultiSelect={attach:function attach(){fieldWrapperElement=$(fieldWrapperSelector);totalItems=0;itemsChecked=0;if(fieldWrapperElement.find('.bef-checkboxes')){initFields().then(addWrapper);$('.bef-checkboxes input[type="checkbox"]').change(function(){setFieldState(this);});}}};})(jQuery,Drupal);;
182'use strict';(function($,Drupal,datalayer,debounce,once){Drupal.behaviors.rcc_data_layer={attach:function attach(context){var _this=this;
182Object.keys(_this.dataLayerEventHandlers).forEach(function(eventName){_this.dataLayerEventHandlers[eventName](context);});},dataLayerEventHandlers:{exposedPrimaryNavigationLinks:function exposedPrimaryNavigationLinks(context){var $mainMenu=$('.main-menu',context),$mainMenuParentItem=$('.menu-item.has-dropdown > a',$mainMenu);$mainMenuParentItem.each(function(){$(this).on('mouseenter',function(){var nameOfDropdown=$(this).text();datalayer.push({'event':'Navigation','eventCategory':'Navigation','eventAction':'Exposed Primary Navigation Links','eventLabel':'Exposed Section: '+nameOfDropdown,'eventValue':undefined,'eventOrigin':'front-end','eventVars':{'exposedSection':nameOfDropdown}});});});},relatedSiteLink:function relatedSiteLink(context){var $selectSiteMenu=$('.menu--select-site-menu .menu .menu',context),$selectSiteMenuItem=$('.menu-item > a',$selectSiteMenu);$selectSiteMenuItem.each(function(){$(this).on('click',function(e){var textUserClickedOn=$(this).text(),destinationURL=e.target.href;datalayer.push({'event':'Navigation','eventCategory':'Navigation','eventAction':'Followed Related Site Link','eventLabel':'Related Site Link Followed: '+textUserClickedOn+' | Link URL: '+destinationURL,'eventValue':undefined,'eventOrigin':'front-end','eventVars':{'navigationText':textUserClickedOn,'urlNavigatedTo':destinationURL}});});});},followedNavigationLink:function followedNavigationLink(context){var $mainMenu=$('.main-menu',context),$mainMenuItem=$('.menu-item a[href]',$mainMenu);$mainMenuItem.each(function(){$(this).on('click',function(e){var textUserClickedOn=$(this).text(),destinationURL=e.target.href;datalayer.push({'event':'Navigation','eventCategory':'Navigation','eventAction':'Followed Link','eventLabel':'Link Text: '+textUserClickedOn+' | Link URL: '+destinationURL,'eventValue':undefined,'eventOrigin':'front-end','eventVars':{'navigationText':textUserClickedOn,'urlNavigatedTo':destinationURL}});});});},clickedSocialIcon:function clickedSocialIcon(context){var $socialShareBlock=$('.block-social-sharing-block',context),$socialShareItem=$('a.share',$socialShareBlock);$socialShareItem.each(function(){$(this).on('click',function(e){var socialNetwork=$(this).attr('title'),socialTarget=e.target.href;datalayer.push({'event':'Social Interaction','socialNetwork':socialNetwork,'socialAction':'Share','socialTarget':socialTarget,'eventOrigin':'front-end'});});});},toggleSocialShareBar:function toggleSocialShareBar(context){var $socialShareBlock=$('.block-social-sharing-block',context),$socialShareWrapper=$('.share-element-wrapper',$socialShareBlock),$socialShareButton=$('.share-icon',$socialShareBlock);$socialShareButton.on('click',function(){var eventAction=$socialShareWrapper.hasClass('active')?'Opened Social Bar':'User Closed Social Bar';datalayer.push({'event':'Social Share','eventCategory':'Social Share','eventAction':eventAction,'eventLabel':'Page URL: '+window.location.href,'eventValue':undefined,'eventOrigin':'front-end'});});},clickedStoryPillar:function clickedStoryPillar(context){var $paragraphStoryPillars=$('.paragraph--type--story-pillars',context),$storyPillarsLink=$('a[href]',$paragraphStoryPillars);$storyPillarsLink.each(function(){var $this=$(this);$this.on('click',function(){var pillarTitle=$this.closest('.data-content').find('.story-title').text(),pillarEngagement=$this.hasClass('read-more')?'Read More Link':'Story Title';datalayer.push({'event':'Story Pillar','eventCategory':'Story Pillar','eventAction':'Followed Link','eventLabel':'Pillar Title: '+pillarTitle+' | Area Engaged: '+pillarEngagement,'eventValue':undefined,'eventOrigin':'front-end','eventVars':{'pillarTitle':pillarTitle,'pillarEngagement':pillarEngagement}});});});},clickedSpotlightParagraph:function clickedSpotlightParagraph(context){var $paragraphSpotlight=$('.spotlight',context),$spotlightLink=$('a[href]',$paragraphSpotlight);$spotlightLink.each(function(){var $this=$(this);$this.on('click',function(){var spotlightTitle=$this.closest('.spotlight--card__text').find('.field--name-field-headline').text(),spotlightEngagement=$this.parent().hasClass('read-more')?'Read More Link':'Headline';datalayer.push({'event':'Spotlight','eventCategory':'Spotlight','eventAction':'Followed Link','eventLabel':'Headline: '+spotlightTitle+' | Area 
182Engaged: '+spotlightEngagement,'eventValue':undefined,'eventOrigin':'front-end','eventVars':{'spotlightTitle':spotlightTitle,'spotlightEngagement':spotlightEngagement}});});});},clickedNewsCard:function clickedNewsCard(context){var $newsCard=$('.news-article-card',context),$newsCardTitleLink=$('.news-article-card__title a',$newsCard),$newsCardImageLink=$('.featured-image a',$newsCard),$newsCardMoreLink=$('a.read-more',$newsCard),$newsCardPDFLink=$('a.pdf',$newsCard);$newsCardTitleLink.each(function(){$(this).on('click',function(){pushNewsCardEvent($(this).text(),'Card Title');});});$newsCardImageLink.each(function(){$(this).on('click',function(){pushNewsCardEvent(getNewsCardsTitle($(this)),'Image');});});$newsCardMoreLink.each(function(){$(this).on('click',function(){pushNewsCardEvent(getNewsCardsTitle($(this)),'Read More');});});$newsCardPDFLink.each(function(){$(this).on('click',function(){pushNewsCardEvent(getNewsCardsTitle($(this)),'PDF');});});function getNewsCardsTitle($clickedLink){return $clickedLink.closest('.news-article-card').find('.news-article-card__title').text().trim();}function pushNewsCardEvent(newsCardHeadline,newsCardEngagement){datalayer.push({'event':'News Card','eventCategory':'News Card','eventAction':'Followed Link','eventLabel':'Headline: '+newsCardHeadline+' | Area Engaged: '+newsCardEngagement,'eventValue':undefined,'eventOrigin':'front-end','eventVars':{'newsCardHeadline':newsCardHeadline,'newsCardEngagement':newsCardEngagement}});}},clickedPropertyCard:function clickedPropertyCard(context){var $propertyCards=$('.property__cards',context),$propertyCardLink=$('a[href]',$propertyCards);$propertyCardLink.each(function(){var $this=$(this);$this.on('click',function(){var propertyTitle=$this.closest('.property-detail-tall-cards').find('.property-title').text().trim();switch($this.parent().attr('class')){case 'featured-image':var propertyEngagement='Image';break;case 'property-title':var propertyEngagement='Property Title';break;case 'cta--link':var propertyEngagement='CTA Link';break;default:break;}datalayer.push({'event':'Property Card','eventCategory':'Property Card','eventAction':'Followed Link','eventLabel':'Property Title: '+propertyTitle+' | Area Engaged: '+propertyEngagement,'eventValue':undefined,'eventOrigin':'front-end','eventVars':{'propertyTitle':propertyTitle,'propertyEngagement':propertyEngagement}});});});},clickedTextImageParagraph:function clickedTextImageParagraph(context){var $paragraphTextImage=$('.paragraph--type--text-and-image',context),$textImageLink=$('a[href]',$paragraphTextImage);$textImageLink.each(function(){var $this=$(this);$this.on('click',function(){var textAndImageTitle=$this.closest('.paragraph--type--text-and-image').find('.headline').text().trim(),textAndImageEngagement=$this.hasClass('read-more')?'Read More':'Headline';datalayer.push({'event':'Text and Image Paragraph','eventCategory':'Text and Image Paragraph','eventAction':'Followed Link','eventLabel':'Headline: '+textAndImageTitle+' | Area Engaged: '+textAndImageEngagement,'eventValue':undefined,'eventOrigin':'front-end','eventVars':{'textAndImageTitle':textAndImageTitle,'textAndImageEngagement':textAndImageEngagement}});});});},clickedLocationCard:function clickedLocationCard(context){var $locationCards=$('.location-cards-collection',context),$locationCardLink=$('.card-column a[href]',$locationCards);$locationCardLink.each(function(){var $this=$(this);$this.on('click',function(){var locationTitle=$this.closest('.card-column').find('.title').text().trim(),locationEngagement=$this.hasClass('read-more')?'Read More':'Title';datalayer.push({'event':'Location Card','eventCategory':'Location Card','eventAction':'Followed Link','eventLabel':'Title: '+locationTitle+' | Area Engaged: '+locationEngagement,'eventValue':undefined,'eventOrigin':'front-end','eventVars':{'locationTitle':locationTitle,'locationEngagement':locationEngagement}});});});},filteredNewsCards:function filteredNewsCards(context){var $newsExposedForm=$('#views-exposed-form-news-articles-solr-page-1',context),$newsExposedFormSubmit=$('.form-submit',$newsExposedForm);$newsExposedFormSubmit.on('click',function(){var newsCardLocation=$('.form-item-field-location').find('.custom-select__current-option').text(),newsCardCategory=$('.form-item-field-content-category').find('.custom-select__current-option').text(),newsCardDates=$('.date-range-input').text();datalayer.push({'event':'News Card','eventCategory':'News Card','eventAction':'Filtered Links','eventLabel':'Location: '+newsCardLocation+' | Category: '+newsCardCategory+' | Date: '+ne
182wsCardDates,'eventValue':undefined,'eventOrigin':'front-end','eventVars':{'newsCardLocation':newsCardLocation,'newsCardCategory':newsCardCategory,'newsCardDates':newsCardDates}});});},textEnteredInSearchBox:function textEnteredInSearchBox(context){var $overlaySearchForm=$('#views-exposed-form-acquia-search-block-search-overlay',context),$overlaySearchFormInput=$('input.form-autocomplete',$overlaySearchForm);var pushEventHandler=function pushEventHandler(){var enteredText=$overlaySearchFormInput.val();datalayer.push({'event':'Header Search','eventCategory':'Header Search','eventAction':'Entered Search Term','eventLabel':'Term Searched: '+enteredText,'eventValue':undefined,'eventOrigin':'front-end','eventVars':{'enteredText':enteredText}});};$overlaySearchFormInput.on('keyup',debounce(pushEventHandler,1500));},followedRecommendedTermSearchOverlay:function followedRecommendedTermSearchOverlay(context){var $searchForm=$("#views-exposed-form-acquia-search-block-search-overlay",context),$searchFormInput=$("input.form-autocomplete",$searchForm);$searchFormInput.bind('autocompleteselect',function(event,ui){if(ui.item)var followedTerm=ui.item.value;datalayer.push({'event':'Header Search','eventCategory':'Header Search','eventAction':'Followed Recommended Search Term','eventLabel':'Term Followed: '+followedTerm,'eventValue':undefined,'eventOrigin':'front-end','eventVars':{'followedTerm':followedTerm}});});},engagedButtonSearchOverlay:function engagedButtonSearchOverlay(context){var $searchForm=$("#views-exposed-form-acquia-search-block-search-overlay",context),$searchFormSubmit=$(".form-submit",$searchForm);$searchFormSubmit.each(function(){$(this).on('click',function(){var buttonEngaged=$(this).val(),followedTerm=$('.form-autocomplete').val();datalayer.push({'event':'Header Search','eventCategory':'Header Search','eventAction':'Engaged Button for Search Results','eventLabel':'Button Text: '+buttonEngaged+' | Term Followed: '+followedTerm,'eventValue':undefined,'eventOrigin':'front-end','eventVars':{'buttonEngaged':buttonEngaged,'followedTerm':followedTerm}});});});},textEnteredInSearchPage:function textEnteredInSearchPage(context){var $overlaySearchForm=$("#views-exposed-form-acquia-search-page",context),$overlaySearchFormInput=$("input.form-autocomplete",$overlaySearchForm);var pushEventHandler=function pushEventHandler(){var enteredText=$overlaySearchFormInput.val();datalayer.push({'event':'Search Page','eventCategory':'Search Page','eventAction':'Entered Search Term','eventLabel':'Term Searched: '+enteredText,'eventValue':undefined,'eventOrigin':'front-end','eventVars':{'enteredText':enteredText}});};$overlaySearchFormInput.on('keyup',debounce(pushEventHandler,1500));},followedRecommendedTermSearchPage:function followedRecommendedTermSearchPage(context){var $searchForm=$("#views-exposed-form-acquia-search-page",context),$searchFormInput=$("input.form-autocomplete",$searchForm);$searchFormInput.on('autocompleteselect',function(event,ui){if(ui.item)var selectedSearchTerm=ui.item.value;datalayer.push({'event':'Search Page Refresh','eventCategory':'Search Page','eventAction':'Followed Recommended Search Term','eventLabel':'Term Followed: '+selectedSearchTerm,'eventValue':undefined,'eventOrigin':'front-end','eventVars':{'selectedSearchTerm':selectedSearchTerm}});});},engagedButtonSearchResultsPage:function engagedButtonSearchResultsPage(context){var $searchForm=$('#views-exposed-form-acquia-search-page',context);if(!$searchForm.length)return;var $searchFormSubmit=$('[id^="edit-submit"]',$searchForm);$searchFormSubmit.on('click',function(e){if(e.isTrigger)return;var buttonEngaged=$(this).val();var searchKeyword=$('.form-autocomplete',$searchForm).val()?$('.form-autocomplete',$searchForm).val():'Empty';var searchDateRange=$('.date-range-input',$searchForm).text();var searchSort=$('#edit-sort-bef-combine option:selected',$searchForm).text();datalayer.push({'event':'Search Page Refresh','eventCategory':'Search Page','eventAction':'Engaged '+buttonEngaged+' Button for Search Results','eventLabel':'Keywords: '+searchKeyword+' | Date Range: '+searchDateRange+' | Sort by '+searchSort,'eventValue':'front-end','eventVars':{'buttonUsed':buttonEngaged,'searchKeyword':searchKeyword,'searchDateRange':searchDateRange,'searchSort':searchSort}});});},zeroResultsSearchResultsPage:function zeroResultsSearchResultsPage(context){var $searchResultsWrapper=$('.search-results-wrapper',context);var $resultOutput=$('.result-output',$searchResultsWrapper);var $searchTermField=$('#views-exposed-form-acquia-search-page input.form-autocomplete',context);if($searchResultsWrapper.length){if($resultOutput.length)return;var searchTerm=$searchTermField.val();datalayer.push({'event':'Search Page','eventCategory':'Search Page','eventAction':'Received Zero Results','eventLabel':'Search Term: '+searchTerm,'eventValue':undefined,'eventOrigin':'front-end','eventVars':{'searchTerm':searchTerm}});}},propertyExplorerAppliedFilter:function propertyExplorerAppliedFilter(context){var checkedLocations=[];var checkedTypes=[];var propertyLocation='ul[data-drupal-facet-id$=_location]';var propertyType='ul[data-drupal-facet-id$=property_type]';var $propertyFilterCheckbox=$('input[type=checkbox]',propertyLocation+', '+propertyType);if(!$propertyFilterCheckbox.length)return;$(once('property_filter',$propertyFilterCheckbox)).on('click',function(){$(once('aja
182x_stop','html')).ajaxStop(function(){checkedLocations=$('input[type=checkbox]:checked',propertyLocation).map(function(){return $(this).next('label').find('.facet-item__value').text();}).get();checkedTypes=$('input[type=checkbox]:checked',propertyType).map(function(){return $(this).next('label').find('.facet-item__value').text();}).get();pushAppliedFilterEvent(getItemsString(checkedLocations),getItemsString(checkedTypes));});});function getItemsString(checkedItems){if(checkedItems.length)return checkedItems.join(', ');else return 'all';}function pushAppliedFilterEvent(checkedLocations,checkedTypes){datalayer.push({'event':'Property Explorer','eventCategory':'Property Explorer','eventAction':'Applied Filter','eventLabel':'Labels > Property Location: '+checkedLocations+' | Property Type: '+checkedTypes,'eventValue':undefined,'eventOrigin':'front-end'});}},propertyExplorerShowMoreLess:function propertyExplorerShowMoreLess(context){var selectedLimit='';var category='';var $propertyLocation=$('[id^=block-propertylocation]');var $propertyType=$('[id^=block-propertytype]');if(!$propertyLocation.length||!$propertyType.length)return;$(document).ready(function(){var $facetsLimitLink=$('.facets-soft-limit-link',context);$(once('facets_soft_limit',$facetsLimitLink)).on('click',function(e){var $target=$(e.target);if($target.hasClass('open'))selectedLimit='Show More';else selectedLimit='Show Less';if($propertyLocation.has($target).length)category='Property Location';if($propertyType.has($target).length)category='Property Type';datalayer.push({'event':'Property Explorer','eventCategory':'Property Explorer','eventAction':'Selected '+selectedLimit,'eventLabel':'Filter: '+category,'eventValue':undefined,'eventOrigin':'front-end'});});});}}};})(jQuery,window.Drupal,window.dataLayer,Drupal.debounce,once);;
183'use strict';(function($){var BrowserClass={init:function init(){this.classes=[];this.agent=navigator.userAgent.toLowerCase();this.checkBrowser();this.checkPlatform();if(this.isMobile(this.classes))this.classes.push('mobile');else this.classes.push('desktop');},checkBrowser:function checkBrowser(){var matches=Array();var aresult='';var aversion='';var resultant='';var iePattern=/(?:\b(ms)?ie\s+|\btrident\/7\.0;.*\s+rv:)(\d+)/;var ieMatch=this.agent.match(iePattern);if(ieMatch){this.classes.push('ie');if(typeof ieMatch[2]!=='undefined')this.classes.push('ie'+ieMatch[2]);}if(this.agent.match(/opera/)){this.classes.push('opera');aresult=this.stristr(this.agent,'version').split('/');if(aresult[1]){aversion=aresult[1].split(' ');this.classes.push('opera'+this.clearVersion(aversion[0]));}}if(this.agent.match(/chrome/)){this.classes.push('chrome');aresult=this.stristr(this.agent,'chrome').split('/');aversion=aresult[1].split(' ');this.classes.push('chrome'+this.clearVersion(aversion[0]));}else if(this.agent.match(/crios/)){this.classes.push('chrome');aresult=this.stristr(this.agent,'crios').split('/');if(aresult[1]){aversion=aresult[1].split(' ');this.classes.push('chrome'+this.clearVersion(aversion[0]));}}else{if(this.agent.match(/safari/)){this.classes.push('safari');aresult=this.stristr(this.agent,'version').split('/');if(aresult[1]){aversion=aresult[1].split(' ');this.classes.push('safari'+this.clearVersion(aversion[0]));}}}if(this.agent.match(/netscape/)){this.classes.push('netscape');matches=this.agent.match(/navigator\/([^ ]*)/);if(matches)this.classes.push('netscape'+this.clearVersion(matches[1]));else{matches=this.agent.match(/netscape6?\/([^ ]*)/);if(matches)this.classes.push('netscape'+this.clearVersion(matches[1]));}}if(this.agent.match(/firefox/)){this.classes.push('ff');matches=this.agent.match(/firefox[\/ \(]([^ ;\)]+)/);if(matches)this.classes.push('ff'+this.clearVersion(matches[1]));}if(this.agent.match(/konqueror/)){this.classes.push('konqueror');aresult=this.stristr(this.agent,'konqueror').split(' ');aversion=aresult[0].split('/');this.classes.push('konqueror'+this.clearVersion(aversion[1]));}if(this.agent.match(/dillo/))this.classes.push('dillo');if(this.agent.match(/chimera/))this.classes.push('chimera');if(this.agent.match(/beonex/))this.classes.push('beonex');if(this.agent.match(/aweb/))this.classes.push('aweb');if(this.agent.match(/amaya/))this.classes.push('amaya');if(this.agent.match(/icab/))this.classes.push('icab');if(this.agent.match(/lynx/))this.classes.push('lynx');if(this.agent.match(/galeon/))this.classes.push('galeon');if(this.agent.match(/opera mini/)){this.classes.push('operamini');resultant=this.stristr(this.agent,'opera mini');if(resultant.match('/\//')){aresult=resultant.split('/');aversion=aresult[1].split(' ');this.classes.push('operamini'+this.clearVersion(aversion[0]));}else{aversion=this.stristr(resultant,'opera mini').split(' ');this.classes.push('operamini'+this.clearVersion(aversion[1]));}}},checkPlatform:function checkPlatform(){if(this.agent.match(/windows/))this.classes.push('win');if(this.agent.match(/ipad/))this.classes.push('ipad');if(this.agent.match(/ipod/))this.classes.push('ipod');if(this.agent.match(/iphone/))this.classes.push('iphone');if(this.agent.match(/mac/))this.classes.push('mac');if(this.agent.match(/android/))this.classes.push('android');if(this.agent.match(/linux/))this.classes.push('linux');if(this.agent.match(/nokia/))this.classes.push('nokia');if(this.agent.match(/blackberry/))this.classes.push('blackberry');if(this.agent.match(/freebsd/))this.classes.push('freebsd');if(this.agent.match(/openbsd/))this.classes.push('openbsd');if(this.agent.match(/netbsd/))this.classes.push('netbsd');},isMobile:function isMobile(classes){var mobile_devices=['ipad','ipod','iphone','android','blackberry','operamini'];var mobile_devices_test=false;$.each(mobile_devices,function(index,value){if($.inArray(value,classes)!=-1){mobile_devices_test=true;return false;}});if(mobile_devices_test||this.agent.match(/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|vodafone|o2|pocket|kindle|mobile|pda|psp|treo)/))return true;},clearVersion:function clearVersion(version){version=version.replace('/[^0-9,.,a-z,A-Z-]/','');var find=(version+'').indexOf('.');return version.substr(0,find);},stristr:function stristr(haystack,needle,bool){var pos=0;haystack+='';pos=haystack.toLowerCase().indexOf((needle+'').toLowerCase());if(pos==-1)return false;else if(bool)return haystack.substr(0,pos);else return haystack.slice(pos);}};BrowserClass.init();$('body').addClass(BrowserClass.classes.join(' '));})(jQuery);;
184'use strict';(function($){$('img.svg').each(function(){var $img=$(this);var imgID=$img.attr('id');var imgClass=$img.attr('class');var imgURL=$img.attr('src');$.get(imgURL,function(data){var $svg=$(data).find('svg');if(typeof imgID!=='undefined')$svg=$svg.attr('id',imgID);if(typeof imgClass!=='undefined')$svg=$svg.attr('class',imgClass+' replaced-svg');$svg=$svg.removeAttr('xmlns:a');$img.replaceWith($svg);},'xml');});})(jQuery);;
185'use strict';var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"])_i["return"]();}finally{if(_d)throw _e;}}return _arr;}return function(arr,i){if(Array.isArray(arr))return arr;else if(Symbol.iterator in Object(arr))return sliceIterator(arr,i);
185else throw new TypeError("Invalid attempt to destructure non-iterable instance");};}();(function($,Drupal,debounce,once){'use strict';Drupal.behaviors.RCC={attach:function attach(context){$(window).bind('resize',function(){mobileHeaderJS();filterJS();ctaScrollJS();}).trigger('resize');function mobileHeaderJS(){if($(window).width()<1200){$('.toggle-hamburger').on('click',function(e){e.preventDefault();e.stopImmediatePropagation();$(this).toggleClass('toggle-open');$('body').toggleClass('menu-active');$('.rcc-offcanvas-menu').toggleClass('offcanvas-menu-open');$('.main-menu .has-dropdown a').siblings('.dropdown-menu').removeClass('menu-slides-open').css('position','fixed');$('#header, .rcc-offcanvas-menu').removeAttr('style');$('#header .toggle-hamburger span').css('background-color','#fff');$('#header .logo svg path, #header #search-icon svg mask, #header #search-icon svg g').css('fill','#fff');$('.select-site-menu > li').removeClass('sites-open');if($('.select-site-menu .menu').css('display')==='block')$('.select-site-menu .menu').hide();});$('.main-menu .has-dropdown > a').on('click',function(e){e.preventDefault();e.stopImmediatePropagation();$(this).siblings('.dropdown-menu').toggleClass('menu-slides-open');var slideMenuBgColor=$(this).siblings('.dropdown-menu').css('background-color');var bgColor=$(this).siblings('.dropdown-menu').find('ul li a').css('color');$('#header, .rcc-offcanvas-menu').css('background-color',slideMenuBgColor);$('#header .toggle-hamburger span').css('background-color',bgColor);$('#header .logo svg path, #header #search-icon svg mask, #header #search-icon svg g').css('fill',bgColor);});$('.nav-back a').on('click',function(e){e.preventDefault();$(this).closest('.dropdown-menu').removeClass('menu-slides-open');var backBgColor=$(this).closest('.dropdown-menu').siblings('a').css('color');$('#header .toggle-hamburger span').css('background-color',backBgColor);$('#header .logo svg path, #header #search-icon svg mask, #header #search-icon svg g').css('fill',backBgColor);if($(this).closest('.dropdown-menu').parents('.dropdown-menu').length>0){var backSlideMenuBgColor=$(this).closest('.dropdown-menu').parents('.dropdown-menu').css('background-color');$('#header, .rcc-offcanvas-menu').css('background-color',backSlideMenuBgColor);}else $('#header, .rcc-offcanvas-menu').css('background-color','#001b38');});$('.select-site-menu > li > a').on('click',function(e){e.preventDefault();e.stopImmediatePropagation();$(this).parent('li').toggleClass('sites-open');if($('.select-site-menu .menu').css('display')==='none')$('.select-site-menu .menu').fadeIn(400);else $('.select-site-menu .menu').hide();});var s=$('.user-logged-in.toolbar-vertical #header');var pos=s.offset();$(window).scroll(debounce(function(){if(s.length){var windowpos=$(window).scrollTop();if(windowpos>=pos.top)s.addClass('stick');else s.removeClass('stick');}},50));}else{$('.toggle-hamburger').removeClass('toggle-open');$('body').removeClass('menu-active');$('.rcc-offcanvas-menu').removeClass('offcanvas-menu-open');$('#header, .rcc-offcanvas-menu').removeAttr('style');$('.main-menu .has-dropdown .dropdown-menu').removeClass('menu-slides-open').css('position','absolute');$('#header .toggle-hamburger span').css('background-color','#fff');$('#header .logo svg path, #header #search-icon svg mask, #header #search-icon svg g').css('fill','#fff');}}function removeFilterOverlay(){$('.filter-overlay').remove();$('body').removeClass('filter-active');$('.filters').removeClass('show-filter-item');}function filterJS(){var f=$('.filters');if($(window).width()<1024){$('.filters .controls span.show').on('click',function(e){e.stopImmediatePropagation();$('.filters').addClass('show-filter-item');$('body').addClass('filter-active').append('<div class=\'filter-overlay\'>');});$('.filters .controls span.hide').on('click',function(e){e.stopImmediatePropagation();$('.filters').removeClass('show-filter-item');$('body').removeClass('filter-active');$('.filter-overlay').remove();});$(document).ajaxStop(function(){removeFilterOverlay();if($('#header').hasClass('filter-active'))$('.filters').addClass('sticky-filter--top');});}}$('.search-icon').on('click keydown',function(event){if(event.type==='click'||event.type==='keydown'&&event.key==='Enter'){event.preventDefault();$('.search-overlay').animate({top:0},500);$('body').addClass('search-overlay-active');$('.search-overlay form .form-item-search input').focus();$('.search-overlay .close-overlay').attr('tabindex','0');
185$('.search-overlay').find(':input').attr('tabindex','0');}});$('.search-overlay .close-overlay').on('click keydown',function(event){if(event.type==='click'||event.type==='keydown'&&event.key==='Enter'){$('.search-overlay').animate({top:-5000},500);$('body').removeClass('search-overlay-active');$('.search-overlay .close-overlay').attr('tabindex','-1');$('.search-overlay').find(':input').attr('tabindex','-1');}});if($('.search-results-wrapper .search-input-field form [id^=\'edit-reset\']').length)$('.search-results-wrapper .search-input-field form .form-actions').addClass('hasReset');else $('.search-results-wrapper .search-input-field form .form-actions').removeClass('hasReset');$(once('bind-availability-search-block-click-event','.block-availability-search-block h2')).each(function(){$(this).on('click',function(){$('.block-availability-search-block h2').toggleClass('active');$('.block-availability-search-block > form').toggleClass('active');e.preventDefault();});});if($.fn.slick)$('.social-hashtag',context).slick({rows:2,dots:false,arrows:true,infinite:false,speed:300,slidesPerRow:1,slidesToScroll:4,slidesToShow:4,initialSlide:0,responsive:[{breakpoint:1024,settings:{slidesPerRow:1,rows:2,slidesToScroll:3,slidesToShow:3,dots:false}},{breakpoint:768,settings:{rows:1,slidesPerRow:1,slidesToScroll:1,slidesToShow:1,dots:false,arrows:false,centerMode:true,draggable:false,centerPadding:'16px'}}]});if($.fn.fancybox)$('.social-hashtag .image').fancybox({loop:true,afterLoad:function afterLoad(instance,slide){$(once('ajax-downloaded',slide.$content)).each(function(){var media_id=slide.$content.data('media-id');var ajaxUrl='/ajax/fancybox/instagram/'+media_id;$.ajax({url:ajaxUrl,type:'GET',dataType:'json',success:function success(response){if(response&&response.length){var ajaxCommands=response;for(var i=0;i<ajaxCommands.length;i++){var command=ajaxCommands[i];if(command.command&&Drupal.AjaxCommands.prototype[command.command]){var $placeholder=$('#instaModal-'+media_id+' .ajax-placeholder');$placeholder.html(command.data);$placeholder.find('script').each(function(){$.globalEval(this.text||this.textContent||this.innerHTML||'');});}}if(typeof instgrm!=='undefined')instgrm.Embeds.process();}},error:function error(xhr,status,_error){console.error('AJAX error:',status,_error);}});});}}).attr('data-fancybox','gallery');if($.fn.slick){var slick_pillars=$('.slick--pillars',context);var settings={infinite:false,responsive:[{breakpoint:4480,settings:'unslick'},{breakpoint:767,settings:{rows:1,slidesPerRow:1,slidesToScroll:1,slidesToShow:1,dots:false,arrows:false,centerMode:true,draggable:false,initialSlide:0,centerPadding:'16px'}}]};if(slick_pillars)slick_pillars.slick(settings);var propertyCardsThreeSlider=$('.property__cards.for-three .field--name-field-properties.field__items',context);var propertyCardsFourSlider=$('.property__cards.for-four .field--name-field-properties.field__items',context);var propertyCardSlickSettings={infinite:false,responsive:[{breakpoint:4480,settings:'unslick'},{breakpoint:767,settings:{rows:1,slidesPerRow:1,slidesToScroll:1,slidesToShow:1,dots:false,arrows:false,centerMode:true,draggable:false,initialSlide:0,centerPadding:'16px'}}]};if(propertyCardsThreeSlider)propertyCardsThreeSlider.slick(propertyCardSlickSettings);if(propertyCardsFourSlider)propertyCardsFourSlider.slick(propertyCardSlickSettings);if(propertyCardsThreeSlider||propertyCardsFourSlider||slick_pillars)$(window).on('resize',function(){var windowWidth=$(window).width();if(windowWidth<=767&&!slick_pillars.hasClass('slick-initialized'))slick_pillars.slick(settings);if(windowWidth<=767&&!propertyCardsThreeSlider.hasClass('slick-initialized'))propertyCardsThreeSlider.slick(propertyCardSlickSettings);if(windowWidth<=767&&!propertyCardsFourSlider.hasClass('slick-initialized'))propertyCardsFourSlider.slick(propertyCardSlickSettings);});$('.spotlight.slick',context).slick({infinite:false,speed:300,slidesPerRow:1,slidesToScroll:1,slidesToShow:1,initialSlide:0,centerMode:true,centerPadding:'16px',responsive:[{breakpoint:768,settings:{rows:1,slidesPerRow:1,slidesToScroll:1,slidesToShow:1,arrows:false,centerMode:true,draggable:true,initialSlide:0}},{breakpoint:1024,settings:{arrows:false}}]});$('.property-gallery .field__items',context).slick({initialSlide:0,infinite:true,arrows:true,dots:false,centerMode:true,variableWidth:true,slidesToShow:1,centerPadding:'24px',responsive:[{breakpoint:768,settings:{arrows:false,centerMode:false}}]});$('.unslick--imagegrid',context).slick({infinite:false,responsive:[{breakpoint:4480,settings:'unslick'},{breakpoint:768,settings:{dots:false,draggable:true,initialSlide:0,slidesToScroll:1,slidesToShow:1}}]});$('.carousel--imagegrid-four',context).slick({arrows:true,dots:false,draggable:true,infinite:false,speed:300,slidesToScroll:4,slidesToShow:4,initialSlide:0,responsive:[{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1}}]});$('.carousel--imagegrid-twobyfour',context).slick({rows:2,dots:false,arrows:true,infinite:false,speed:300,slidesPerRow:1,slidesToScroll:4,slidesToShow:4,initialSlide:0,responsive:[{breakpoint:1024,settings:{slidesToScroll:3,slidesToShow:3}},{breakpoint:768,settings:{rows:1,slidesToScroll:1,slidesToShow:1}}]});$('.carousel--imagegrid-six',context).slick({arrows:true,dots:false,infinite:false,speed:300,slidesToScroll:6,slidesToShow:6,initialSlide:0,draggable:true,responsive:[{breakpoint:768,settings:{slidesToScroll:1,slidesToShow:1}}]});$('.carousel--imagegrid-twobysix',context).slick({rows:2,dots:false,arrows:true,infinite:false,speed:300,slidesPerRow:1,slidesToScroll:6,slidesToShow:6,initialSlide:0,responsive:[{breakpoint:1024,settings:{slidesToScroll:3,slidesToShow:3}},{breakpoint:768,settings:{rows:1,slidesPerRow:1,slidesToScroll:1,slidesToShow:1,draggable:true}}]});}$('a').keyup(function(e){$('a').removeClass('focus--indicator');if(e.which===9){$(this).addClass('focus--indicator');e.preventDefault();}});$('.featured-news-switcher .main-content-switcher').click(function(){var tab_id=$(this).attr('data-tab');$('.featured-news-switcher .main-content-switcher').removeClass('active');$('.featured-news-content .carousel-content').removeClass('active');$(this).addClass('active');$('#'+tab_id).addClass('active');});$('.featured-blog-post-switcher .main-content-switcher').click(function(){var tab_id=$(this).attr('data-tab');$('.featured-blog-post-switcher .main-content-switcher').removeClass('active');$('.featured-blog-post-content .carousel-content').removeClass('active');$(this).addClass('active');$('#'+tab_id).addClass('active');});
185var urlParams=new URLSearchParams(window.location.search);if(urlParams.has('scroll-to')){var scrollTo=urlParams.get('scroll-to');var element=document.getElementById(scrollTo);var headerOffset=100;var elementPosition=element.getBoundingClientRect().top;var offsetPosition=elementPosition-headerOffset;window.scrollTo({top:offsetPosition,behavior:"smooth"});}$('.inspirational--card').on('click',function(){$(this).addClass('active');var $siblings=$(this).siblings('.inspirational--card');$siblings.removeClass('active now-playing');$siblings.each(function(){$($(this).find('.plyr__video-wrapper').first()[0]).removeClass('inspirational-narrow-video');});if($(this).hasClass('active')){var wrapper=$(this).find('.plyr__video-wrapper').first()[0];if(wrapper.getBoundingClientRect().width<wrapper.offsetParent.getBoundingClientRect().width)$(wrapper).addClass('inspirational-narrow-video');if($(this).find('.plyr__video-embed__container').length>0){var $wrapper=$(this).find('.plyr__video-wrapper').first()[0];setPlyrWrapperPadding($wrapper);}}});$('.inspirational--card .play__pause, .storypage--card .play__pause').each(function(){$(this).on('click',function(){$(this).parent().siblings('.inspirational--card, .storypage--card').find('.video--player').trigger('pause');$(this).parent().siblings('.inspirational--card, .storypage--card').find('.video--player').removeAttr('controls');$(this).parent().find('.video--player').attr('controls','controls');var videoEl=$(this).parent().find('.video--player');if(videoEl.get(0).paused){videoEl.trigger('play');$(this).hide();$(this).parent().addClass('now-playing');}else{videoEl.trigger('pause');$(this).show();$(this).parent().removeClass('now-playing');}});});$('.storypage--card, .paragraph--type--text-and-image').each(function(){$(this).on('click',function(){var $wrapper=$(this).find('.plyr__video-wrapper').first()[0];setPlyrWrapperPadding($wrapper);});});$('.click-overlay').each(function(){$(this).on('click',function(){$(this.offsetParent).trigger('click');});});$('.video--player').on('ended',function(){$(this).removeAttr('controls');$(this).parent().find('.play__pause').show();$(this).parent().removeClass('now-playing');this.currentTime=0.1;});$('.Storypage .slick-arrow, .Spotlight .slick-arrow').on('click',function(){$('.storypage--card').each(function(){$(this).find('.video--player').trigger('pause');$(this).find('#vimeo-iframe').vimeo('pause');$(this).find('.spotlight--card__image').removeClass('now-playing');});});$(window).on('load resize orientationchange',function(){$('.property-image').each(function(){var $carousel=$(this);if($(window).width()>1023){if($carousel.hasClass('slick-initialized'))$carousel.slick('unslick');}else{if(!$carousel.hasClass('slick-initialized'))$carousel.slick({initialSlide:0,infinite:true,arrows:false,dots:false,centerMode:true,variableWidth:false,slidesToShow:1,centerPadding:'16px'});}});});$(window).on('load resize scroll',function(){offsetSocialIcons();});function offsetSocialIcons(){if($('.share-element-wrapper').length>0){var footerRect=$('#footer').get(0).getBoundingClientRect();var shareElementRect=$('.share-element-wrapper').get(0).getBoundingClientRect();var shareElementOverlap=shareElementRect.top-(shareElementRect.bottom-footerRect.top);if(shareElementOverlap<=180)$('.share-element-wrapper').css('top',shareElementOverlap+'px');else $('.share-element-wrapper').css('top','180px');}}$('.contact-us-popup').on('click',function(e){e.preventDefault();$('aside.offscreen-element').addClass('visible-contact-modal');$('aside.offscreen-element .contactus-form').addClass('show');$('body').addClass('search-overlay-active');var $contact_form=$('form.webform-submission-contact-us-form-form');var $interest_field=$contact_form.find('.form-item-interest');var $interest_select_field=$interest_field.find('select[name="interest"]');var default_term_id=$(this).siblings('.interest-default').attr('term-id');var term_ids=$(this).siblings('.interest').attr('term-id');var hide=$(this).siblings('.hide-interest').attr('field-hide-interested-in');$interest_select_field.children('option').removeAttr("selected");if(hide==1){$('input[name="is_interest_hidden"]').val("1").trigger('change');$interest_field.hide();}else{$('input[name="is_interest_hidden"]').val("0").trigger('change');$interest_field.show();}if(term_ids.length>0){$interest_select_field.children('option').hide();term_ids.split(',').forEach(function(selected,index){$interest_select_field.children("option[value^="+selected+"]").show();});}if(default_term_id.length>0){$interest_select_field.find('option[value='+default_term_id+']').attr("selected","selected").show();$interest_select_field.val(default_term_id).trigger('change');}var $marketing_field=$contact_form.find('.form-item-how-did-you-hear-about-us');var $marketing_select_field=$marketing_field.find('select[name="how_did_you_hear_about_us"]');var marketing_default_term_id=$(this).siblings('.marketing-source-default').attr('term-id');var marketing_term_ids=$(this).siblings('.marketing-source').attr('term-id');var marketing_hide=$(this).siblings('.hide-marketing-source').attr('field-hide-marketing-source');$marketing_field.show();$marketing_select_field.children('option').removeAttr("selected");if(marketing_hide==1)$('.form-item-how-did-you-hear-about-us').hide();if(marketing_term_ids.length>0){$marketing_select_field.children('option').hide();$marketing_select_field.find('option[value=""]').show();marketing_term_ids.split(',').forEach(function(selected,index){$marketing_select_field.children("option[value^="+selected+"]").show();});}if(marketing_default_term_id.length>0){$marketing_select_field.find('option[selected=selected]').removeAttr("selected");$marketing_select_field.find('option[value='+marketing_default_term_id+']').attr("selected","selected").show();}var zip_code_hide=$(this).siblings('.hide-zip-code').attr('field-hide-zip-code');if(zip_code_hide==1)$('input[name="is_zip_code_hidden"]').val("1").trigger('change');else $('input[name="is_zip_code_hidden"]').val("0").trigger('change');$('.contactus-form .form-item-terms-and-conditions .form-checkbox').change(function(){var form_submit=$('.contactus-form .form-submit');if(this.checked)$(form_submit).removeAttr('disabled');else{if(!$(form_submit).attr('disabled'))$(form_submit).attr('disabled','disabled');}});});$('aside.offscreen-element .close-overlay').on('click',function(){$('aside.offscreen-element').removeClass('visible-contact-modal');$('body').removeClass('search-overlay-active');setTimeout(function(){$('aside.offscreen-element .contactus-form').removeClass('show');},350);});$('.price-range-fieldset .form-item-min select').on('change',function(e){var priceVal=this.value>0?this.value:'';$('.form-item-field-unit-price-min input').val(priceVal);});$('.price-range-fieldset .form-item-max select').on('change',function(e){var priceVal=this.value>0?this.value:'';$('.form-item-field-unit-price-max input').val(priceVal);});$('.block-unit-filter-form-block .form-item-unit-filter-form-custom select').on('change',function(e){var changVal=this.value;$('.block-unit-filter-form-block .form-item-unit-filter-form-custom select option').removeAttr("selected");$('.block-unit-filter-form-block .form-item-unit-filter-form-custom select option[value='+changVal+']').attr("selected","selected");$('.property-unit-search-form .form-item-sort-by select option').removeAttr("selected");$('.property-unit-search-form .form-item-sort-by select option[value='+changVal+']').attr("selected","selected");var url=new URL(document.location.href);
185url.searchParams.set("sort_by",changVal);window.history.pushState("","",url.href);$('#edit-submit-property-unit-search').trigger("click");});$(document).ajaxComplete(function(){if($('aside.offscreen-element form.webform-submission-contact-us-form-form .form-item-terms-and-conditions input').is(':checked'))$('aside.offscreen-element form.webform-submission-contact-us-form-form .form-actions input').removeAttr('disabled');else $('aside.offscreen-element form.webform-submission-contact-us-form-form .form-actions input').attr('disabled','disabled');});function ctaScrollJS(){var $win=$(window);var $filter=$('.cta--paragraph.sticky--cta');var $filterSpacer=$('<div />',{'class':'filter-drop-spacer','height':$filter.outerHeight()});var ctaScrollHandler=function ctaScrollHandler(){if(typeof $filter.offset()!=='undefined')if(!$filter.hasClass('fix')&&$win.scrollTop()>$filter.offset().top){$filter.before($filterSpacer);$filter.addClass('fix');}else{if($filter.hasClass('fix')&&$win.scrollTop()<$filterSpacer.offset().top){$filter.removeClass('fix');$filterSpacer.remove();}}};$win.scroll(ctaScrollHandler);}}};Drupal.behaviors.rcc_toggle_social_share_bar={attach:function attach(context){var $shareIconList=$('.share-icon-list',context);if($shareIconList.is(':visible'))$shareIconList.parent().addClass('active');$('.share-icon').unbind('click').click(function(){$shareIconList.slideToggle(500).parent().toggleClass('active');});}};Drupal.behaviors.rcc_property_back_link={attach:function attach(context){var pageIsPropertyNode=$(once('checkBodyClass','body')).hasClass('page-node-type-property');if(pageIsPropertyNode)$('a.detail-back',context).on('click',function(e){if(window.history.length>1){e.preventDefault();window.history.back();}});}};Drupal.behaviors.rcc_hero_carousel={attach:function attach(context,drupalSettings){var carousel=$(".paragraph--type--hero-carousel .slick");
185$(carousel).on('init',function(){$(this).find('.slick-prev, .slick-next').attr('tabindex','-1');});}};Drupal.behaviors.rcc_theme_plyr_videos={attach:function attach(context,drupalSettings){window.addEventListener('rcc_plyr_players_ready',function(e){Drupal.behaviors.rcc_video.pauseAllPlaying();var currentPlayer=e.detail.player;if(typeof currentPlayer!=='undefined'&&currentPlayer!==null){if(currentPlayer.isHTML5&&!currentPlayer.config.autoplay)var intervalDAMVideo=setInterval(function(){if(currentPlayer.ready){clearInterval(intervalDAMVideo);currentPlayer.stop();}},500);else var intervalVimeoVideo=setInterval(function(){if(currentPlayer.ready){clearInterval(intervalVimeoVideo);setTimeout(function(){if(currentPlayer.elements.wrapper.getBoundingClientRect().width<currentPlayer.elements.wrapper.offsetParent.getBoundingClientRect().width)$(currentPlayer.elements.wrapper).addClass('inspirational-narrow-video');},1000);$('.playlist__video .plyr__control--overlaid',context).on('click',function(e){$(e.target).closest('.plyr').addClass('plyr--started');$(e.target).closest('.playlist__video').addClass('now-playing');});var requestURL=currentPlayer.config.urls.vimeo.api.toString().replace(/{(\d+)}/g,currentPlayer.media.firstChild.attributes['src'].value.toString());fetch(requestURL).then(function(response){if(!response.ok)throw new Error('Network response was not ok');return response.json();}).then(function(data){if(!data.thumbnail_url)throw new Error('Thumbnail URL not found in the response');var url=new URL(data.thumbnail_url);url.pathname=url.pathname.split('_')[0]+'.jpg';currentPlayer.poster=url.href;}).catch(function(error){console.error('Fetch error:',error);});}},500);currentPlayer.on('ended',function(event){$(event.target).addClass('plyr--stopped').removeClass('plyr--started').closest('.playlist__video').removeClass('now-playing');});currentPlayer.on('playing',function(event){var $targetPlayer=$(event.target);$targetPlayer.closest('.inspirational--card, .playlist__video').addClass('now-playing');var videoPosTop=$targetPlayer.offset().top;var videoPosBottom=videoPosTop+$targetPlayer.find('.plyr__video-wrapper').outerHeight();var pauseVideoScrollHandler=function pauseVideoScrollHandler(){var windowscrollTop=$(window).scrollTop()+50;var windowscrollBottom=$(window).scrollTop()+$(window).height();if(windowscrollTop>videoPosBottom||windowscrollBottom<videoPosTop){$(window).off('scroll.pauseVideo');currentPlayer.pause();}};$(window).on('scroll.pauseVideo',debounce(pauseVideoScrollHandler,50));});var intervalPlyrDisableSlickDrag=setInterval(function(){if(currentPlayer.ready){clearInterval(intervalPlyrDisableSlickDrag);var $plyrProgressBar=$(currentPlayer.elements.inputs.seek);var $plyrVolumeControl=$(currentPlayer.elements.inputs.volume);$plyrProgressBar.add($plyrVolumeControl).bind('mousedown',function(){$(this).closest('.slick').slick("slickSetOption","draggable",false);});$plyrProgressBar.add($plyrVolumeControl).bind('mouseup',function(){$(this).closest('.slick').slick("slickSetOption","draggable",true);});}},500);}$('.inspirational--card .click-overlay',context).on('click',function(){Drupal.behaviors.rcc_video.pauseAllPlaying();});$('.slick:not(.paragraph--type--hero-carousel .slick)',context).on('afterChange',function(){Drupal.behaviors.rcc_video.pauseAllPlaying();});});}};function isInViewport(el){if(el!==null){var rect=el.getBoundingClientRect();return rect.top>=0&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight)||rect.top<0&&rect.bottom>=0||rect.top<window.innerHeight&&rect.bottom>window.innerHeight;;}}function setPlyrWrapperPadding(wrapper){if(wrapper.style.aspectRatio){var x=0;var y=0;var _wrapper$style$aspect=wrapper.style.aspectRatio.split('/');var _wrapper$style$aspect2=_slicedToArray(_wrapper$style$aspect,2);x=_wrapper$style$aspect2[0];y=_wrapper$style$aspect2[1];var padding=100/x*y;wrapper.firstChild.style.paddingBottom='calc('+padding+'% + 200px)';wrapper.firstChild.style.transform='translateY(-100px)';}}Drupal.behaviors.rcc_theme_video_gallery={attach:function attach(context,settings){if(settings.rcc_video!=undefined){var players=settings.rcc_video.plyrPlayers;
185Object.keys(players).forEach(function(playerId){if(!$(playerId,context).length)return;else{if(!$('.video-listing '+playerId).hasClass('plyr--video'))new Plyr('.video-listing '+playerId,players[playerId].options);}});}$('.playlist__overlay',context).on('click',function(){Drupal.behaviors.rcc_video.stopAllPlaying();$('.playlist__video').removeClass('now-playing video-playing');var thisParent=$(this).closest('.playlist__video');thisParent.addClass('now-playing');var vIndex=thisParent.attr('data-video-index');var thisParentParent=$(this).closest('.playlist__video').parent().parent();thisParentParent.find('.playlist__hidden').addClass('playlist__preview').removeClass('playlist__video playlist__active');var currentplay=thisParentParent.find('.playlist__hidden[data-video-index=\''+vIndex+'\']');Drupal.behaviors.rcc_video.pauseAllPlaying();currentplay.addClass('playlist__video playlist__active').removeClass('playlist__preview');currentplay.addClass('video-playing');});}};Drupal.behaviors.rccFacetSoftLimit={attach:function attach(context,settings){var facetsSoftLimit=(settings.facets||[]).softLimit||[];$.each(facetsSoftLimit,function(facetId){var facetsList=$('ul[data-drupal-facet-id="'+facetId+'"]',context);facetsList.each(function(index,facet){if($(facet).find('input.facets-checkbox:checked').length>0){Drupal.facets.applySoftLimit(facetId,9999,settings);$(facet).addClass('force-show-items');var showLessLabel=settings.facets.softLimitSettings[facetId].showLessLabel;$(facet).next().addClass('open').text(showLessLabel);}});});}};Drupal.behaviors.rcc_image_grid_slick={attach:function attach(context){var $imageGridSlider=$('.image--grid .slick-slider',context);$imageGridSlider.each(function(){var $this=$(this);if($this.find('.has--background__attached').length)$this.addClass('with-background');else $this.addClass('no-background');});}};Drupal.behaviors.rcc_longform_field={attach:function attach(context){var $longform=$('.longform.paragraph--type--text-and-image',context);if(!$longform.length)return;$longform.each(function(){var $this=$(this);var $componentContent=$this.find('.component-content');var $descLongform=$componentContent.find('.desc--longform');if(!$componentContent.length||!$descLongform.length)return;var $readMoreLink=$componentContent.find('.desc--longform + a.read-more');var $readMoreButton=$('<button/>',{'class':'longform__read-more collapsed',text:'Read More'});var descLongformInitHeight=$descLongform.outerHeight();var descLongformMaxHeight=84;if(descLongformInitHeight>descLongformMaxHeight){$readMoreLink.hide();$componentContent.addClass('collapsed');$descLongform.css('max-height',descLongformMaxHeight);$readMoreButton.appendTo($componentContent).on('click',function(){var $this=$(this);$readMoreLink.toggle();if($this.hasClass('collapsed')){$descLongform.animate({maxHeight:descLongformInitHeight},'slow');$componentContent.removeClass('collapsed');$this.text('Read Less').removeClass('collapsed');}else{$descLongform.animate({maxHeight:descLongformMaxHeight},'slow');$componentContent.addClass('collapsed');$this.text('Read More').addClass('collapsed');}});}});}};Drupal.behaviors.rcc_sticky_filter={attach:function attach(context){var _this=this;var $filters=$('.region-sidebar-first .filters');if($filters.length){var initialiseStickyFilter=function initialiseStickyFilter(){if($(window).width()<1024){var $header=$('#header');var $searchblock=$('.block-availability-search-block');var position=$(window).scrollTop();$filters.addClass('sticky-filter');var stickyFiltersScrollHandler=function stickyFiltersScrollHandler(){var scroll=$(window).scrollTop();if(scroll<0)return;if(scroll>position){$filters.addClass('sticky-filter--top');$header.addClass('filter-active');$searchblock.addClass('filter-active');}else{$filters.removeClass('sticky-filter--top');$header.removeClass('filter-active');$searchblock.removeClass('filter-active');}position=scroll;};$(window).on('scroll',debounce(stickyFiltersScrollHandler,50));}};$('#main',context).addClass('has-filter');$(window).bind('resize',function(){initialiseStickyFilter(_this);}).trigger('resize');}}};Drupal.behaviors.rcc_slick_slider_blazy={attach:function attach(context){var isBlazy=Drupal.blazy||{};var $slickSlider=$('.slick-slider.slick-initialized',context);if(isBlazy)$slickSlider.each(function(){var $this=$(this);$this.on('beforeChange.rccSlick',function(){var $src=$('.b-lazy:not(.b-loaded)',$this);if($src.length)Drupal.blazy.init.load($src);});});}};Drupal.behaviors.rcc_rentals_search={attach:function attach(context){var $rentalsSearch=$('.rcc-rentals-search',context);var $citySelect=$('#edit-city',$rentalsSearch);var $neighborhoodFormItem=$('.form-item-neighborhood',$rentalsSearch);var $neighborhoodSelect=$('#edit-neighborhood',$rentalsSearch);var $fieldsetPrice=$('#edit-price',$rentalsSearch);var $priceMax=$('#edit-price-maximum',$rentalsSearch);var $priceMin=$('#edit-price-minimum',$rentalsSearch);var $priceList=$('.custom-select__options',$rentalsSearch);var $priceListItems=$priceList.children('li');if(!$rentalsSearch.length)return;$citySelect.on('change',function(){if($neighborhoodSelect.length){$neighborhoodFormItem.find('.custom-select__options').children('li').removeClass('hidden');setTimeout(function(){var neighborhoodHiddenItems=$neighborhoodSelect.children('option.hidden').map(function(){return $(this).val();}).get();$.each(neighborhoodHiddenItems,function(i,val){$neighborhoodFormItem.find('.custom-select__options').children('li[rel='+val+']').addClass('hidden');});},50);}});$fieldsetPrice.on('click',function(){$(this).toggleClass('active');});$('.fieldset-wrapper .fieldset-wrapper',$fieldsetPrice).on('click',function(e){e.stopPropagation();});if($priceMax.length&&$priceMin.length){$priceMax.on('click',function(){$(this).closest('.form-wrapper').addClass('active');});$priceMin.on('click',function(){$priceMax.closest('.form-wrapper').removeClass('active');});}$priceListItems.on('click.price',function(){var $this=$(this);$this.closest('.form-wrapper').find('.fieldset-legend').text($this.text());$this.closest('.form-wrapper').find('input.form-text').val($this.attr('rel'));});}};Drupal.behaviors.rcc_match_height={attach:function attach(context){var $storyPillars=$('.paragraph--type--story-pillars',context);var $spotlightStorypage=$('.spotlight.Storypage',context);$(window).on('load resize',function(){if($storyPillars.length)$storyPillars.each(function(){if($(window).width()>767)Drupal.behaviors.rcc_match_height.matchHeight($('.story-title',$(this)));else $('.story-title',$(this)).height('auto');});if($spotlightStorypage.length)$spotlightStorypage.each(function(){Drupal.behaviors.rcc_match_height.matchHeight($('.eyebrow-light.mobile--only',$(this)));});});},matchHeight:function matchHeight($title){var maxHeight=0;$title.height('auto');$title.each(function(){if($(this).height()>maxHeight)maxHeight=$(this).height();});$title.height(maxHeight);}};Drupal.behaviors.rcc_maps_component={attach:function attach(context){var $paragraphMap=$('.paragraph--type--map');if(!$paragraphMap.length)return;$(window).on('load resize',function(){if(window.innerWidth<768)$('.map-popup__media').insertBefore('.map-popup__body');else $('.map-popup__media').insertAfter('.map-popup__details');});var $multipleSelect=$('select[multiple]',$paragraphMap);if($multipleSelect.length)$(once('multiple',$multipleSelect)).each(function(){var $allOptionItem=$('<option/>',{'text':'All','value':''});$(this).prepend($allOptionItem);});$(once('filter','.mobile-map-filters')).on('click',function(e){e.preventDefault();if($(this).hasClass('active')){$('.mobile-map-filters').removeClass('active');$('.view-filters').removeClass('active');}else{$('.mobile-map-filters').addClass('active');$('.view-filters').addClass('active');if($('.view-display-id-icon_legend_attachment .header-wrapper').hasClass('active')){$('.view-display-id-icon_legend_attachment .header-wrapper').removeClass('active');$('.rows-wrapper').removeClass('active');}e.preventDefault();}return false;});}};Drupal.behaviors.rcc_cta={attach:function attach(context){$('.cta--paragraph',context).each(function(){var $cta=$(this);if(!$cta.length)return;var $ctaTitle=$('.cta-para-field-title-element',$cta);var $ctaSummary=$('.paragraph--type--cta-paragraphs-content .field--type-text-with-summary',$cta);$(window).on('resize',debounce(function(){if($(window).width()>767){Drupal.behaviors.rcc_match_height.matchHeight($ctaTitle);Drupal.behaviors.rcc_match_height.matchHeight($ctaSummary);}if($(window).width()<=767){$ctaSummary.height('auto');$ctaTitle.height('auto');}},100)).trigger('resize');});}};Drupal.behaviors.rcc_custom_select_dropdown={attach:function attach(context){var $viewsExposedForm=$('.views-exposed-form, .rcc-rentals-search',context);if(!$viewsExposedForm.length)return;$(once('bind-select-dropdown',$viewsExposedForm.find('select.form-select'),context)).each(function(){var $this=$(this);var numberOfOptions=$this.children('option').length;$this.addClass('visuallyhidden');$this.wrap('<div class="custom-select"></div>');$this.after('<div class="custom-select__current-option"></div>');var $selectedOption=$this.next('div.custom-select__current-option');$selectedOption.text($this.children('option:selected').text());var $list=$('<ul />',{'class':'custom-select__options'}).insertAfter($selectedOption);for(var i=0;i<numberOfOptions;i++)$('<li />',{text:$this.children('option').eq(i).text(),rel:$this.children('option').eq(i).val(),'class':$this.children('option').eq(i).is(':selected')?'checked':''}).appendTo($list);if($this.prop('multiple')){var $allListItem=$list.children('li[rel=""]');$allListItem.addClass('all');var $selectedItems=$this.children(':selected');if($selectedItems.length){var selectedItemsText=$selectedItems.map(function(){return $(this).text();}).get();$selectedOption.text(selectedItemsText.join(', '));}else $selectedOption.text($allListItem.text());}var $listItems=$list.children('li');$selectedOption.click(function(e){e.stopPropagation();$('.custom-select__current-option.active').not(this).each(function(){$(this).removeClass('active').next('ul.custom-select__options').hide();});$(this).toggleClass('active').next('ul.custom-select__options').toggle();});$listItems.click(function(e){var $currentListItem=$(this);e.stopPropagation();$selectedOption.removeClass('active');if($this.prop('multiple')){$currentListItem.toggleClass('checked');var $itemAll=$list.children('li.all');if($(e.target).hasClass('all'))$itemAll.siblings().removeClass('checked');var $selectedItems=$list.children('.checked').not($itemAll);if($selectedItems.length){$itemAll.removeClass('checked');var selectedItemsText=$selectedItems.map(function(){return $(this).text();}).get();var selectedItemsValues=$selectedItems.map(function(){return $(this).attr('rel');}).get();$selectedOption.text(selectedItemsText.join(', '));$this.val(selectedItemsValues);}else{$itemAll.addClass('checked');$selectedOption.text($itemAll.text());$this.val(['']);}}else{$selectedOption.text($currentListItem.text());$currentListItem.siblings().removeClass('checked');$currentListItem.addClass('checked');$this.val($currentListItem.attr('rel'));}$this.change();$list.hide();});$(document).click(function(){$selectedOption.removeClass('active');$list.hide();});});}};Drupal.behaviors.rcc_dfs_slick_slider={attach:function attach(context){if($(window).width()<767)$('.slide-data-content.slick').parents('.slide-data-wrapper').css('height',650+'px');if($.fn.slick){var $slickclass=$('.slide-data-wrapper .slick',context);var dfsslick=$slickclass.slick({speed:300,slidesPerRow:1,slidesToScroll:1,slidesToShow:1,initialSlide:0,infinite:false,dots:true,arrows:true,draggable:true,accessibility:false,centerMode:true,centerPadding:'0px'});var dotdfsarrows=$slickclass.find('.slick-dots');if(dotdfsarrows.length>0){if(!dotdfsarrows.find('.slick-prev').length)dotdfsarrows.prepend($('
185<span class="previous dfs-prev slick-prev"></span>'));if(!dotdfsarrows.find('.slick-next').length)dotdfsarrows.append($('<span class="next dfs-next slick-next"></span>'));}$(document).on('click','.dfs-prev',function(e){e.preventDefault();$(this).closest('.slick-slider').slick('slickPrev');});$(document).on('click','.dfs-next',function(e){e.preventDefault();$(this).closest('.slick-slider').slick('slickNext');});}}};Drupal.behaviors.rcc_visibilityCheck={attach:function attach(context){$.fn.isElemVisible=function(partial){var $t=$(this);var $w=$(window);var viewTop=$w.scrollTop();var viewBottom=viewTop+$w.height();var _top=$t.offset().top;var _bottom=_top+$t.height();var compareTop=partial===true?_bottom:_top;var compareBottom=partial===true?_top:_bottom;return compareBottom<=viewBottom&&compareTop>=viewTop;};}};Drupal.behaviors.rcc_anchorlink_section={attach:function attach(context){function scrollToTopAnimation(distance){$('html, body').animate({scrollTop:distance},800,'linear');}$(document).ready(function(){if($('a.viewsanchorlink').length>0)$('a.viewsanchorlink').each(function(i,el){var _viewelem=$(el);var _parentPara=_viewelem.closest('.views-reference-para');if(_parentPara.length){var _anchorlinkexist=_parentPara.children('.hash-anchorlink:not(.viewsanchorlink)');if(_anchorlinkexist.length)_viewelem.removeClass('hash-anchorlink').remove();}});});$(window).on('load',function(){var _isHashed=false;var _hashAnchorLink=$('section.hash-anchorlink');if(_hashAnchorLink.length>0){var offset=$(window).width()<=1023?50:100;if(window.location.hash!=''){var $refId=window.location.hash;if($($refId).length){var _top=$($refId).offset().top-offset;setTimeout(function(){scrollToTopAnimation(_top);},300);}}$('a.story-link').on('click',function(e){var $refId=$(this).attr('href');if($refId.charAt(0)==='#'){e.preventDefault();if($($refId).length){var _top=$($refId).offset().top-offset;scrollToTopAnimation(_top);}}});$(window,context).on('resize scroll',function(e){e.preventDefault();var scroll=$(window).scrollTop();_hashAnchorLink.each(function(i,el){var $el=$(el);var $hashid=$el.attr('id')?$el.attr('id'):'';if($el.isElemVisible(true))if($hashid!=''){var $hash='#'+$hashid;if(history.pushState)window.history.pushState(null,null,$hash);else window.location.hash=$hash;_isHashed=true;return false;}else{if(history.pushState)window.history.replaceState(null,null,' ');else window.location.hash='';_isHashed=false;return false;}else _isHashed=false;});if(!_isHashed&&scroll<5){if(history.pushState)window.history.replaceState(null,null,' ');else window.location.hash='';return false;}});}});}};Drupal.behaviors.newsletter_checkAll={attach:function attach(context,settings){if($('.field--name-field-newsletter-signup-form').length>0){var _newsBoxes=$('.field--name-field-newsletter-signup-form').find('.newsletter-topic-selection');var _html='<div class="form-item js-form-type-checkbox form-type-checkbox form-item-newsletter-select-all">';_html+='<input type="checkbox" class="form-checkbox newsletter-select-all" id="newsletter-select-all-ref" />';_html+='<label for="newsletter-select-all-ref" class="option newsletter-select-all">&nbsp;All</label></div>';console.log(_html);if(_newsBoxes.length){var _formCheckboxes=_newsBoxes.find('.fieldset-wrapper').find('.form-checkboxes');_formCheckboxes.once().prepend($(_html));}$(".newsletter-select-all").on('click',function(){$(this).parent().parent().find('.form-type-checkbox input[type=checkbox]').prop('checked',this.checked);});$('.newsletter-topic-selection').find('.form-type-checkbox input[type=checkbox]').on('change click',function(){var ischecked=$(this).is(':checked');if(!ischecked)$('.form-item-newsletter-select-all input[type=checkbox]').prop('checked',false);});}}};Drupal.behaviors.rcc_form_validations={attach:function attach(context,settings){$(document).on('submit','form.webform-submission-form',function(e){var isValid=true;var gRecaptcha=$(this).find('.g-recaptcha');var errorMsg='';if(gRecaptcha.length){gRecaptcha.removeClass('error-recaptcha').next('span.error-text').remove();if(grecaptcha.getResponse()==''){isValid=false;errorMsg='Please complete the reCAPTCHA challenge!';gRecaptcha.addClass('error-recaptcha');gRecaptcha.after('<span class="error-text recaptcha">'+errorMsg+'</span>');}}if(isValid)return true;else return false;});}};Drupal.behaviors.rcc_select2_wcag={attach:function attach(context,settings){$(document).ready(function(){var select2_elements=$(this).find('.select2-selection__rendered');$(select2_elements).each(function(){var select_rendered_label=$(this).parent().find('label');var select_rendered_text=$(this).clone().children().remove().end().text();if($(select_rendered_label).length)$(select_rendered_label).text(select_rendered_text);else $('<label for='+$(this).attr('id')+' class="visually-hidden">'+select_rendered_text+'</label>').insertBefore($(this));});});}};Drupal.behaviors.rcc_logo_adjust_header={attach:function attach(context,settings){$(document).ready(function(){if($('header #related-ross-sitebranding-logo').length)$('#main').addClass('related-ross');});}};})(jQuery,window.Drupal,Drupal.debounce,once);;
186'use strict';(function($,Drupal,debounce){'use strict';Drupal.behaviors.newsletter_popup={attach:function attach(context){$(window).on('load resize',function(){var newsletter_modal=$('.block-newsletter-modal');if($(newsletter_modal).css('display')!='none'){$(newsletter_modal).addClass('show');toggleNewsletterFields();}}).trigger('resize');$('.block-newsletter-modal .spb_close').click(function(){var newsletter_modal=$('.block-newsletter-modal');if($(newsletter_modal).hasClass('show'))$(newsletter_modal).removeClass('show');});$(function(){var newsletter_modal=$('.block-newsletter-modal');if($(newsletter_modal).hasClass('show')){$(newsletter_modal).find('input').first().focus();$(newsletter_modal).find('.spb_close').attr('tabindex','-1');$('.spb_close').keydown(function(e){if(e.key==='Enter'|e.key===' ')$(this).click();});trapFocusWithinModal(newsletter_modal);}});function trapFocusWithinModal(modalElement){var focusableEls=$(modalElement).find('input[type=text]:not([disabled], [name=url]), input[type=submit], .js-form-item a, .spb_close');var firstFocusableEl=focusableEls[0];var lastFocusableEl=focusableEls[focusableEls.length-1];$(focusableEls).keydown(function(e){if(e.key==='Tab')if(e.shiftKey){if(document.activeElement===firstFocusableEl){lastFocusableEl.focu
186s();e.preventDefault();}}else{if(document.activeElement===lastFocusableEl){firstFocusableEl.focus();e.preventDefault();}}});}function toggleNewsletterFields(){var is_role_hidden=$('.block-newsletter-modal .field--name-field-is-role-hidden').text();var is_role_hidden_form_field=$('form.webform-submission-newsletter-form input[name="is_role_hidden"]');if(is_role_hidden==1)is_role_hidden_form_field.val("1").trigger('change');else{if(is_role_hidden==0)is_role_hidden_form_field.val("0").trigger('change');}}}};})(jQuery,window.Drupal,Drupal.debounce);;
187'use strict';var Monthpicker=function(){function c(a,b){this.selectedMonth=this.selectedYear=this.currentYear=null;this.id=c.next_id++;c.instances[this.id]=this;this.original_input=a;this.InitOptions(b);this.InitValue();this.Init();this.RefreshInputs();this.UpdateCalendarView();this.UpdateYearSwitches();}c.Get=function(a){if("undefined"===typeof a.parentElement.dataset.mp)throw "Unable to retrieve the Monthpicker of element "+a;return c.instances[a.parentElement.dataset.mp];};c.prototype.InitValue=function(){var a=new Date();this.currentYear=a.getFullYear();var b=!1;this.original_input.value.match("[0-9]{1,2}/[0-9]{4}")&&(b=this.original_input.value.split("/"),this.selectedMonth=parseInt(b[0]),this.currentYear=this.selectedYear=parseInt(b[1]),b=!0);this.opts.allowNull||b||(this.selectedMonth=a.getMonth(),this.selectedYear=a.getFullYear(),null!==this.bounds.min.year&&(this.selectedYear<this.bounds.min.year?(this.selectedYear=this.bounds.min.year,this.selectedMonth=this.bounds.min.month?this.bounds.min.month:1):this.selectedYear==this.bounds.min.year&&this.selectedMonth<this.bounds.min.month&&(this.selectedMonth=this.bounds.min.month)),null!==this.bounds.max.year&&(this.selectedYear>this.bounds.max.year?(this.selectedYear=this.bounds.max.year,this.selectedMonth=this.bounds.max.month?this.bounds.max.month:12):this.selectedYear==this.bounds.max.year&&this.selectedMonth>this.bounds.max.month&&(this.selectedMonth=this.bounds.max.month)),this.currentYear=this.selectedYear);};c.prototype.InitOptions=function(a){this.opts=c._clone(c.defaultOpts);this.MergeOptions(a);this.EvaluateOptions();};c.prototype.UpdateOptions=function(a){this.MergeOptions(a);this.EvaluateOptions();this.RefreshUI();};c.prototype.MergeOptions=function(a){if(a)for(var b in a)this.opts[b]=a[b];};c.prototype.EvaluateOptions=function(){var a={min:{year:null,month:null},max:{year:null,month:null}};if(null!==this.opts.minValue||null!==this.opts.minYear)if(null!==this.opts.minValue&&null!==this.opts.minYear){var b=this.opts.minValue.split("/"),c=parseInt(this.opts.minYear),d=parseInt(b[1]);c>d?(a.min.year=c,a.min.month=1):(a.min.year=d,a.min.month=parseInt(b[0]));}else null!==this.opts.minValue?(b=this.opts.minValue.split("/"),a.min.year=parseInt(b[1]),a.min.month=parseInt(b[0])):(a.min.year=parseInt(this.opts.minYear),a.min.month=1);if(null!==this.opts.maxValue||null!==this.opts.maxYear)null!==this.opts.maxValue&&null!==this.opts.maxYear?(b=this.opts.maxValue.split("/"),c=parseInt(this.opts.maxYear),d=parseInt(b[1]),c<d?(a.max.year=c,a.max.month=12):(a.max.year=d,a.max.month=parseInt(b[0]))):null!==this.opts.maxValue?(b=this.opts.maxValue.split("/"),a.max.year=parseInt(b[1]),a.max.month=parseInt(b[0])):(a.max.year=parseInt(this.opts.maxYear),a.max.month=12);this.bounds=a;};c.prototype.RefreshInputs=function(){this.selectedYear&&this.selectedMonth?(this.original_input.value=(10>this.selectedMonth?"0"+this.selectedMonth:this.selectedMonth.toString())+"/"+this.selectedYear,this.input.innerHTML=this.opts.monthLabels[this.selectedMonth-1]+" "+this.selectedYear):this.input.innerHTML='<span class="placeholder">'+this.original_input.placeholder+"</span>";};c.prototype.RefreshUI=function(){this.UpdateCalendarView();null!==this.currentYear&&(this.year_input.innerHTML=this.currentYear.toString());this.UpdateYearSwitches();};c.prototype.InitIU=function(){this.parent=document.createElement("div");this.parent.classList.add("monthpicker");this.parent.tabIndex=-1;var a=getComputedStyle(this.original_input,null);this.parent.style.width=a.getPropertyValue("width");"auto"===this.parent.style.width&&(this.parent.style.width=0===this.original_input.offsetWidth?"100px":this.original_input.offsetWidth+"px");this.original_input.parentElement.insertBefore(this.parent,this.original_input);this.parent.appendChild(this.original_input);this.original_input.style.display="none";this.input=document.createElement("div");this.input.classList.add("monthpicker_input");this.input.style.height=a.getPropertyValue("height");"auto"===this.input.style.height&&(this.input.style.height=0===this.original_input.offsetHeight?"20px":this.original_input.offsetHeight+"px");this.input.style.padding=a.getPropertyValue("padding");this.input.style.border=a.getPropertyValue("border");this.parent.appendChild(this.input);this.selector=document.createElement("div");this.selector.classList.add("monthpicker_selector");this.selector.style.display="none";for(var a="<table><tr><td><span class='yearSwitch down'>&lt;</span></td><td><div class='yearValue'>"+this.currentYear+"</div> </td><td>
187<span class='yearSwitch up'>&gt;</span> </td></tr> ",b=0;4>b;b++)var c=3*b,d=this.opts.monthLabels.slice(c,c+3),a=a+("<tr><td class='month month"+(c+1)+"' data-m='"+(c+1)+"'>"+d[0]+"</td><td class='month month"+(c+2)+"' data-m='"+(c+2)+"'>"+d[1]+"</td><td class='month month"+(c+3)+"' data-m='"+(c+3)+"'>"+d[2]+"</td></tr>");this.selector.innerHTML=a+"</table>";this.parent.appendChild(this.selector);};c.prototype.Init=function(){this.InitIU();this.year_input=this.selector.querySelector(".yearValue");this.parent.dataset.mp=this.id.toString();this.parent.addEventListener("focus",function(){c.instances[this.dataset.mp].Show();},!0);this.parent.addEventListener("blur",function(){c.instances[this.dataset.mp].Hide();},!0);this.parent.querySelector(".yearSwitch.down").addEventListener("click",function(){c.instances[this.closest(".monthpicker").dataset.mp].PrevYear();});this.parent.querySelector(".yearSwitch.up").addEventListener("click",function(){c.instances[this.closest(".monthpicker").dataset.mp].NextYear();});for(var a=this.parent.querySelectorAll(".monthpicker_selector>table tr:not(:first-child) td.month"),b=0;b<a.length;b++)a[b].addEventListener("click",function(){this.classList.contains("off")||c.instances[this.closest(".monthpicker").dataset.mp].SelectMonth(this.dataset.m);});};c.prototype.SelectMonth=function(a){var b=parseInt(a);if(isNaN(b))throw "Selected month is not a number : "+a;if(1>b||12<b)throw "Month is out of range (should be in [1:12], was "+a+")";this.selectedMonth=b;this.selectedYear=this.currentYear;this.RefreshUI();this.RefreshInputs();this.ReleaseFocus();if(null!==this.opts.onSelect)this.opts.onSelect();};c.prototype.UpdateCalendarView=function(){for(var a=this.selector.querySelectorAll(".month"),b=0;b<a.length;b++)a[b].classList.remove("selected");null!==this.selectedYear&&this.currentYear===this.selectedYear&&a[this.selectedMonth-1].classList.add("selected");for(b=0;b<a.length;b++)a[b].classList.remove("off");if(null!==this.bounds.min.year&&this.currentYear<=this.bounds.min.year)for(b=1;b<this.bounds.min.month;b++)a[b-1].classList.add("off");if(null!==this.bounds.max.year&&this.currentYear>=this.bounds.max.year)for(b=12;b>this.bounds.max.month;b--)a[b-1].classList.add("off");};c.prototype.ReleaseFocus=function(){this.parent.blur();};c.prototype.Show=function(){this.RefreshUI();this.selector.style.display="block";};c.prototype.Hide=function(){null!==this.selectedYear&&(this.currentYear=this.selectedYear);this.selector.style.display="none";};c.prototype.ShowYear=function(a){this.currentYear=a;this.RefreshUI();};c.prototype.UpdateYearSwitches=function(){var a=this.selector.querySelector(".yearSwitch.down"),b=this.selector.querySelector(".yearSwitch.up");null!==this.bounds.min.year&&this.currentYear<=this.bounds.min.year?a.classList.add("off"):a.classList.remove("off");null!==this.bounds.max.year&&this.currentYear>=this.bounds.max.year?b.classList.add("off"):b.classList.remove("off");};c.prototype.PrevYear=function(){this.ShowYear(this.currentYear-1);};c.prototype.NextYear=function(){this.ShowYear(this.currentYear+1);};c._clone=function(a){var b;if(null==a||"object"!=typeof a)return a;if(a instanceof Date)return b=new Date(),b.setTime(a.getTime()),b;if(a instanceof Array){b=[];for(var e=0,d=a.length;e<d;e++)b[e]=c._clone(a[e]);return b;}if(a instanceof Object){b={};for(e in a)a.hasOwnProperty(e)&&(b[e]=c._clone(a[e]));return b;}throw Error("Unable to copy obj! Its type isn't supported.");};c.next_id=1;c.instances=[];c.defaultOpts={minValue:null,minYear:null,maxValue:null,maxYear:null,monthLabels:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),onSelect:null,onClose:null,allowNull:!0};return c;}();window.jQuery&&(window.jQuery.fn.Monthpicker=function(c,a){var b;if("undefined"===typeof c||"object"===typeof c)b="ctor";else if("string"===typeof c&&"option"===c)b="option";else{console.error("Error : Monthpicker - bad argument (1)");return;}window.jQuery(this).each(function(e,d){switch(b){case "ctor":"INPUT"!=d.tagName||"text"!=d.getAttribute("type")&&null!==d.getAttribute("type")?console.error("Monthpicker must be called on a text input"):new Month
187picker(d,c);break;case "option":"INPUT"!=d.tagName||"text"!=d.getAttribute("type")&&null!==d.getAttribute("type")?console.error("Monthpicker must be called on a text input"):Monthpicker.Get(d).UpdateOptions(a);}});});window.Element&&function(c){c.matches=c.matches||c.matchesSelector||c.webkitMatchesSelector||c.msMatchesSelector||function(a){a=(this.parentNode||this.document).querySelectorAll(a);for(var b=-1;a[++b]&&a[b]!=this;);return !!a[b];};}(window.Element.prototype);window.Element&&function(c){c.closest=c.closest||function(a){for(var b=this;b.matches&&!b.matches(a);)b=b.parentNode;return b.matches?b:null;};}(window.Element.prototype);;
188(function($,Drupal,once){Drupal.behaviors.rccMonthPicker={attach:function(context,settings){var minDateFilter=$('#min-date-filter',context);var maxDateFilter=$('#max-date-filter',context);var dateRange=$('.date-range',context);if(!minDateFilter.length||!maxDateFilter.length||!dateRange)return;var date=new Date();var month=date.getMonth()+1;var year=date.getFullYear();var startdate=month+'/'+year;minDateFilter.parents('.form-item').find('label').text(Drupal.t('Start Date'));$(once('monthpicker',minDateFilter)).Monthpicker({maxValue:startdate,onSelect:function(){maxDateFilter.Monthpicker('option',{minValue:minDateFilter.val()});}});maxDateFilter.parents('.form-item').find('label').text(Drupal.t('End Date'));$(once('monthpicker',maxDateFilter)).Monthpicker({minValue:minDateFilter.val(),onSelect:function(){}});dateRange.find('.form-item > label').click(function(){$('.monthpicker').each(function(){$(this).removeClass('active');$(this).parent().find('label').removeClass('active');});$(this).parent().find('.monthpicker').addClass('active');$(this).addClass('active');});dateRange.bind('click init',function(){var dateRange='';$('.date-range .form-item').each(function(){var minDate=$('#min-date-filter ~ .monthpicker_input').text();var maxDate=$('#max-date-filter ~ .monthpicker_input').text();dateRange=minDate.length||maxDate.length?minDate+' - '+maxDate:Drupal.t('All Time');});$('.date-range-input').text(function(text){return dateRange;});}).trigger('init');$(once('monthpicker',dateRange.find('.date-range-input'))).on('click',function(e){dateRange.toggleClass('date-range-inactive date-range-active');});dateRange.find('.date-range-input').one('click',function(){var dateRangeActive=$('.date-range-active .form-item');dateRangeActive.first().find('label').addClass('active');dateRangeActive.first().find('.monthpicker').addClass('active');});}};})(jQuery,Drupal,once);;
189typeof navigator==="object"&&(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define('Plyr',factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.Plyr=factory());})(this,(function(){'use strict';(function(){if(typeof window==='undefined')return;try{var ce=new window.CustomEvent('test',{cancelable:true});ce.preventDefault();if(ce.defaultPrevented!==true)throw new Error('Could not prevent default');}catch(e){var CustomEvent=function(event,params){var evt,origPrevent;params=params||{};params.bubbles=!!params.bubbles;params.cancelable=!!params.cancelable;evt=document.createEvent('CustomEvent');evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);origPrevent=evt.preventDefault;evt.preventDefault=function(){origPrevent.call(this);try{Object.defineProperty(this,'defaultPrevented',{get:function(){return true;}});}catch(e){this.defaultPrevented=true;}};return evt;};CustomEvent.prototype=window.Event.prototype;window.CustomEvent=CustomEvent;}})();var commonjsGlobal=typeof globalThis!=='undefined'?globalThis:typeof window!=='undefined'?window:typeof global!=='undefined'?global:typeof self!=='undefined'?self:{};function createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports;}(function(global){var checkIfIteratorIsSupported=function(){try{return !!Symbol.iterator;}catch(error){return false;}};var iteratorSupported=checkIfIteratorIsSupported();var createIterator=function(items){var iterator={next:function(){var value=items.shift();return {done:value===void 0,value};}};if(iteratorSupported)iterator[Symbol.iterator]=function(){return iterator;};return iterator;};var serializeParam=function(value){return encodeURIComponent(value).replace(/%20/g,'+');};var deserializeParam=function(value){return decodeURIComponent(String(value).replace(/\+/g,' '));};var polyfillURLSearchParams=function(){var URLSearchParams=function(searchString){Object.defineProperty(this,'_entries',{writable:true,value:{}});var typeofSearchString=typeof searchString;if(typeofSearchString==='undefined');else if(typeofSearchString==='string'){if(searchString!=='')this._fromString(searchString);}else if(searchString instanceof URLSearchParams){var _this=this;searchString.forEach(function(value,name){_this.append(name,value);});}else if(searchString!==null&&typeofSearchString==='object')if(Object.prototype.toString.call(searchString)==='[object Array]')for(var i=0;i<searchString.length;i++){var entry=searchString[i];if(Object.prototype.toString.call(entry)==='[object Array]'||entry.length!==2)this.append(entry[0],entry[1]);else throw new TypeError('Expected [string, any] as entry at index '+i+' of URLSearchParams\'s input');}else{for(var key in searchString)if(searchString.hasOwnProperty(key))this.append(key,searchString[key]);}else throw new TypeError('Unsupported input\'s type for URLSearchParams');};var proto=URLSearchParams.prototype;proto.append=function(name,value){if(name in this._entries)this._entries[name].push(String(value));else this._entries[name]=[String(value)];};proto.delete=function(name){delete this._entries[name];};proto.get=function(name){return name in this._entries?this._entries[name][0]:null;};proto.getAll=function(name){return name in this._entries?this._entries[name].slice(0):[];};proto.has=function(name){return name in this._entries;};proto.set=function(name,value){this._entries[name]=[String(value)];};proto.forEach=function(callback,thisArg){var entries;for(var name in this._entries)if(this._entries.hasOwnProperty(name)){entries=this._entries[name];for(var i=0;i<entries.length;i++)callback.call(thisArg,entries[i],name,this);}};proto.keys=function(){var items=[];this.forEach(function(value,name){items.push(name);});return createIterator(items);};proto.values=function(){var items=[];this.forEach(function(value){items.push(value);});return createIterator(items);};proto.entries=function(){var items=[];this.forEach(function(value,name){items.push([name,value]);});return createIterator(items);};if(iteratorSupported)proto[Symbol.iterator]=proto.entries;proto.toString=function(){var searchArray=[];this.forEach(function(value,name){searchArray.push(serializeParam(name)+'='+serializeParam(value));});return searchArray.join('&');};global.URLSearchParams=URLSearchParams;};var checkIfURLSearchParamsSupported=function(){try{var URLSearchParams=global.URLSearchParams;return new URLSearchParams('?a=1').toString()==='a=1'&&typeof URLSearchParams.prototype.set==='function'&&typeof URLSearchParams.prototype.entries==='function';}catch(e){return false;}};if(!checkIfURLSearchParamsSupported())polyfillURLSearchParams();var proto=global.URLSearchParams.prototype;if(typeof proto.sort!=='function')proto.sort=function(){var _this=this;var items=[];this.forEach(function(value,name){items.push([name,value]);if(!_this._entries)_this.delete(name);});items.sort(function(a,b){if(a[0]<b[0])return -1;else if(a[0]>b[0])return +1;else return 0;});if(_this._entries)_this._entries={};for(var i=0;i<items.length;i++)this.append(items[i][0],items[i][1]);};if(typeof proto._fromString!=='function')Object.defineProperty(proto,'_fromString',{enumerable:false,configurable:false,writable:false,value:function(searchString){if(this._entries)this._entries={};else{var keys=[];this.forEach(function(value,name){keys.push(name);});for(var i=0;i<keys.length;i++)this.delete(keys[i]);}searchString=searchString.replace(/^\?/,'');var attributes=searchString.split('&');var attribute;for(var i=0;i<attributes.length;i++){attribute=attributes[i].split('=');this.append(deserializeParam(attribute[0]),attribute.length>1?deserializeParam(attribute[1]):'');}}});})(typeof commonjsGlobal!=='undefined'?commonjsGlobal:typeof window!=='undefined'?window:typeof self!=='undefined'?self:commonjsGlobal);(function(global){var checkIfURLIsSupported=function(){try{var u=new global.URL('b','http://a');u.pathname='c d';return u.href==='http://a/c%20d'&&u.searchParams;}catch(e){return false;}};var polyfillURL=function(){var _URL=global.URL;var URL=function(url,base){if(typeof url!=='string')url=String(url);if(base&&typeof base!=='string')base=String(base);var doc=document,baseElement;if(base&&(global.location===void 0||base!==global.location.href)){base=base.toLowerCase();doc=document.implementation.createHTMLDocument('');baseElement=doc.createElement('base');baseElement.href=base;doc.head.appendChild(baseElement);try{if(baseElement.href.indexOf(base)!==0)throw new Error(baseElement.href);}catch(err){throw new Error('URL unable to set base '+base+' due to '+err);}}var anchorElement=doc.createElement('a');anchorElement.href=url;if(baseElement){doc.body.appendChild(anchorElement);anchorElement.href=anchorElement.href;}var inputElement=doc.createElement('input');inputElement.type='url';inputElement.value=url;if(anchorElement.protocol===':'||!/:/.test(anchorElement.href)||!inputElement.checkValidity()&&!base)throw new TypeError('Invalid URL');Object.defineProperty(this,'_anchorElement',{value:anchorElement});var searchParams=new global.URLSearchParams(this.search);var enableSearchUpdate=true;var enableSearchParamsUpdate=true;var _this=this;['append','delete','set'].forEach(function(methodName){var method=searchParams[methodName];searchParams[methodName]=function(){method.apply(searchParams,arguments);if(enableSearchUpdate){enableSearchParamsUpdate=false;_this.search=searchParams.toString();enableSearchParamsUpdate=true;}};});Object.defineProperty(this,'searchParams',{value:searchParams,enumerable:true});var search=void 0;Object.defineProperty(this,'_updateSearchParams',{enumerable:false,configurable:false,writable:false,value:function(){if(this.search!==search){search=this.search;if(enableSearchParamsUpdate){enableSearchUpdate=false;this.searchParams._fromString(this.search);enableSearchUpdate=true;}}}});};var proto=URL.prototype;var linkURLWithAnchorAttribute=function(attributeName){Object.defineProperty(proto,attributeName,{get:function(){return this._anchorElement[attributeName];},set:function(value){this._anchorElement[attributeName]=value;},enumerable:true});};['hash','host','hostname','port','protocol'].forEach(function(attributeName){linkURLWithAnchorAttribute(attributeName);});Object.defineProperty(proto,'search',{get:function(){return this._anchorElement['search'];},set:function(value){this._anchorElement['search']=value;this._updateSearchParams();},enumerable:true});Object.defineProperties(proto,{'toString':{get:function(){var _this=this;return function(){return _this.href;};}},'href':{get:function(){return this._anchorElement.href.replace(/\?$/,'');},set:function(value){this._anchorElement.href=value;this._updateSearchParams();},enumerable:true},'pathname':{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,'/');},set:function(value){this._anchorElement.pathname=value;},enumerable:true},'origin':{get:function(){var expectedPort={'http:':80,'https:':443,'ftp:':21}[this._anchorElement.protocol];var addPortToOrigin=this._anchorElement.port!=expectedPort&&this._anchorElement.port!=='';return this._anchorElement.protocol+'//'+this._anchorElement.hostname+(addPortToOrigin?':'+this._anchorElement.port:'');},enumerable:true},'password':{get:function(){return '';},set:function(value){},enumerable:true},'username':{get:function(){return '';},set:function(value){},enumerable:true}});URL.createObjectURL=function(blob){return _URL.createObjectURL.apply(_URL,arguments);};URL.revokeObjectURL=function(url){return _URL.revokeObjectURL.apply(_URL,arguments);};global.URL=URL;};if(!checkIfURLIsSupported())polyfillURL();if(global.location!==void 0&&!('origin' in global.location)){var getOrigin=function(){return global.location.protocol+'//'+global.location.hostname+(global.location.port?':'+global.location.port:'');};try{Object.defineProperty(global.location,'origin',{get:getOrigin,enumerable:true});}catch(e){setInterval(function(){global.location.origin=getOrigin();},100);}}})(typeof commonjsGlobal!=='undefined'?commonjsGlobal:typeof window!=='undefined'?window:typeof self!=='undefined'?self:commonjsGlobal);function _defineProperty$1(obj,key,value){key=_toPropertyKey(key);if(key in obj)Object.defineProperty(obj,key,{value,enumerable:true,configurable:true,writable:true});else obj[key]=value;return obj;}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return (hint==="string"?String:Number)(input);}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value" in r&&(r.writable=!0),Object.defineProperty(e,r.key,r);}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e;}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable;})),n.push.apply(n,r);}return n;}
vendor: 4,140 bytes, line 189
189function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));});}return e;}var defaults$1={addCSS:!0,thumbWidth:15,watch:!0};function matches$1(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this);}.call(e,t);}function trigger(e,t){if(e&&t){var n=new Event(t,{bubbles:!0});e.dispatchEvent(n);}}var getConstructor$1=function(e){return null!=e?e.constructor:null;},instanceOf$1=function(e,t){return !!(e&&t&&e instanceof t);},isNullOrUndefined$1=function(e){return null==e;},isObject$1=function(e){return getConstructor$1(e)===Object;},isNumber$1=function(e){return getConstructor$1(e)===Number&&!Number.isNaN(e);},isString$1=function(e){return getConstructor$1(e)===String;},isBoolean$1=function(e){return getConstructor$1(e)===Boolean;},isFunction$1=function(e){return getConstructor$1(e)===Function;},isArray$1=function(e){return Array.isArray(e);},isNodeList$1=function(e){return instanceOf$1(e,NodeList);},isElement$1=function(e){return instanceOf$1(e,Element);},isEvent$1=function(e){return instanceOf$1(e,Event);},isEmpty$1=function(e){return isNullOrUndefined$1(e)||(isString$1(e)||isArray$1(e)||isNodeList$1(e))&&!e.length||isObject$1(e)&&!Object.keys(e).length;},is$1={nullOrUndefined:isNullOrUndefined$1,object:isObject$1,number:isNumber$1,string:isString$1,boolean:isBoolean$1,function:isFunction$1,array:isArray$1,nodeList:isNodeList$1,element:isElement$1,event:isEvent$1,empty:isEmpty$1};function getDecimalPlaces(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0;}function round(e,t){if(1>t){var n=getDecimalPlaces(t);return parseFloat(e.toFixed(n));}return Math.round(e/t)*t;}var RangeTouch=function(){function e(t,n){_classCallCheck(this,e),is$1.element(t)?this.element=t:is$1.string(t)&&(this.element=document.querySelector(t)),is$1.element(this.element)&&is$1.empty(this.element.rangeTouch)&&(this.config=_objectSpread2({},defaults$1,{},n),this.init());}return _createClass(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this);}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null);}},{key:"listeners",value:function(e){var t=this,n=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(e){t.element[n](e,function(e){return t.set(e);},!1);});}},{key:"get",value:function(t){if(!e.enabled||!is$1.event(t))return null;var n,r=t.target,i=t.changedTouches[0],o=parseFloat(r.getAttribute("min"))||0,s=parseFloat(r.getAttribute("max"))||100,u=parseFloat(r.getAttribute("step"))||1,c=r.getBoundingClientRect(),a=100/c.width*(this.config.thumbWidth/2)/100;return 0>(n=100/c.width*(i.clientX-c.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*a:50<n&&(n+=2*(n-50)*a),o+round(n/100*(s-o),u);}},{key:"set",value:function(t){e.enabled&&is$1.event(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),trigger(t.target,"touchend"===t.type?"change":"input"));}}],[{key:"setup",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=null;if(is$1.empty(t)||is$1.string(t)?r=Array.from(document.querySelectorAll(is$1.string(t)?t:'input[type="range"]')):is$1.element(t)?r=[t]:is$1.nodeList(t)?r=Array.from(t):is$1.array(t)&&(r=t.filter(is$1.element)),is$1.empty(r))return null;var i=_objectSpread2({},defaults$1,{},n);if(is$1.string(t)&&i.watch){var o=new MutationObserver(function(n){Array.from(n).forEach(function(n){Array.from(n.addedNodes).forEach(function(n){is$1.element
189(n)&&matches$1(n,t)&&new e(n,i);});});});o.observe(document.body,{childList:!0,subtree:!0});}return r.map(function(t){return new e(t,n);});}},{key:"enabled",get:function(){return "ontouchstart" in document.documentElement;}}]),e;}();const getConstructor=(input)=>input!==null&&typeof input!=='undefined'?input.constructor:null;const instanceOf=(input,constructor)=>Boolean(input&&constructor&&input instanceof constructor);const isNullOrUndefined=(input)=>input===null||typeof input==='undefined';const isObject=(input)=>getConstructor(input)===Object;const isNumber=(input)=>getConstructor(input)===Number&&!Number.isNaN(input);const isString=(input)=>getConstructor(input)===String;const isBoolean=(input)=>getConstructor(input)===Boolean;const isFunction=(input)=>typeof input==='function';const isArray=(input)=>Array.isArray(input);const isWeakMap=(input)=>instanceOf(input,WeakMap);const isNodeList=(input)=>instanceOf(input,NodeList);const isTextNode=(input)=>getConstructor(input)===Text;const isEvent=(input)=>instanceOf(input,Event);const isKeyboardEvent=(input)=>instanceOf(input,KeyboardEvent);const isCue=(input)=>instanceOf(input,window.TextTrackCue)||instanceOf(input,window.VTTCue);const isTrack=(input)=>instanceOf(input,TextTrack)||!isNullOrUndefined(input)&&isString(input.kind);const isPromise=(input)=>instanceOf(input,Promise)&&isFunction(input.then);const isElement=(input)=>input!==null&&typeof input==='object'&&input.nodeType===1&&typeof input.style==='object'&&typeof input.ownerDocument==='object';const isEmpty=(input)=>isNullOrUndefined(input)||(isString(input)||isArray(input)||isNodeList(input))&&!input.length||isObject(input)&&!Object.keys(input).length;const isUrl=(input)=>{if(instanceOf(input,window.URL))return true;if(!isString(input))return false;let string=input;if(!input.startsWith('http://')||!input.startsWith('https://'))string=`http://${input}`;try{return !isEmpty(new URL(string).hostname);}catch(_){return false;}};var is={nullOrUndefined:isNullOrUndefined,object:isObject,number:isNumber,string:isString,boolean:isBoolean,function:isFunction,array:isArray,weakMap:isWeakMap,nodeList:isNodeList,element:isElement,textNode:isTextNode,event:isEvent,keyboardEvent:isKeyboardEvent,cue:isCue,track:isTrack,promise:isPromise,url:isUrl,empty:isEmpty};const transitionEndEvent=(()=>{const element=document.createElement('span');const events={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'};const type=Object.keys(events).find((event)=>element.style[event]!==undefined);return is.string(type)?events[type]:false;})();function repaint(element,delay){setTimeout(()=>{try{element.hidden=true;element.offsetHeight;element.hidden=false;}catch(_){}},delay);}const isIE=Boolean(window.document.documentMode);const isEdge=/Edge/g.test(navigator.userAgent);const isWebKit='WebkitAppearance' in document.documentElement.style&&!/Edge/g.test(navigator.userAgent);const isIPhone=/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1;const isIPadOS=navigator.platform==='MacIntel'&&navigator.maxTouchPoints>1;const isIos=/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1;var browser={isIE,isEdge,isWebKit,isIPhone,isIPadOS,isIos};function cloneDeep(object){return JSON.parse(JSON.stringify(object));}function getDeep(object,path){return path.split('.').reduce((obj,key)=>obj&&obj[key],object);}function extend(target={},...sources){if(!sources.length)return target;const source=sources.shift();if(!is.object(source))return target;Object.keys(source).forEach((key)=>{if(is.object(source[key])){if(!Object.keys(target).includes(key))Object.assign(target,{[key]:{}});extend(target[key],source[key]);}else Object.assign(target,{[key]:source[key]});});return extend(target,...sources);}function wrap(elements,wrapper){const targets=elements.length?elements:[elements];Array.from(targets).reverse().forEach((element,index)=>{const child=index>0?wrapper.cloneNode(true):wrapper;const parent=element.parentNode;const sibling=element.nextSibling;child.appendChild(element);if(sibling)parent.insertBefore(child,sibling);else parent.appendChild(child);});}
189function setAttributes(element,attributes){if(!is.element(element)||is.empty(attributes))return;Object.entries(attributes).filter(([,value])=>!is.nullOrUndefined(value)).forEach(([key,value])=>element.setAttribute(key,value));}function createElement(type,attributes,text){const element=document.createElement(type);if(is.object(attributes))setAttributes(element,attributes);if(is.string(text))element.innerText=text;return element;}function insertAfter(element,target){if(!is.element(element)||!is.element(target))return;target.parentNode.insertBefore(element,target.nextSibling);}function insertElement(type,parent,attributes,text){if(!is.element(parent))return;parent.appendChild(createElement(type,attributes,text));}function removeElement(element){if(is.nodeList(element)||is.array(element)){Array.from(element).forEach(removeElement);return;}if(!is.element(element)||!is.element(element.parentNode))return;element.parentNode.removeChild(element);}function emptyElement(element){if(!is.element(element))return;let {length}=element.childNodes;while(length>0){element.removeChild(element.lastChild);length-=1;}}function replaceElement(newChild,oldChild){if(!is.element(oldChild)||!is.element(oldChild.parentNode)||!is.element(newChild))return null;oldChild.parentNode.replaceChild(newChild,oldChild);return newChild;}function getAttributesFromSelector(sel,existingAttributes){if(!is.string(sel)||is.empty(sel))return {};const attributes={};const existing=extend({},existingAttributes);sel.split(',').forEach((s)=>{const selector=s.trim();const className=selector.replace('.','');const stripped=selector.replace(/[[\]]/g,'');const parts=stripped.split('=');const [key]=parts;const value=parts.length>1?parts[1].replace(/["']/g,''):'';const start=selector.charAt(0);switch(start){case '.':if(is.string(existing.class))attributes.class=`${existing.class} ${className}`;else attributes.class=className;break;case '#':attributes.id=selector.replace('#','');break;case '[':attributes[key]=value;break;}});return extend(existing,attributes);}function toggleHidden(element,hidden){if(!is.element(element))return;let hide=hidden;if(!is.boolean(hide))hide=!element.hidden;element.hidden=hide;}function toggleClass(element,className,force){if(is.nodeList(element))return Array.from(element).map((e)=>toggleClass(e,className,force));if(is.element(element)){let method='toggle';if(typeof force!=='undefined')method=force?'add':'remove';element.classList[method](className);return element.classList.contains(className);}return false;}function hasClass(element,className){return is.element(element)&&element.classList.contains(className);}function matches(element,selector){const {prototype}=Element;function match(){return Array.from(document.querySelectorAll(selector)).includes(this);}const method=prototype.matches||prototype.webkitMatchesSelector||prototype.mozMatchesSelector||prototype.msMatchesSelector||match;return method.call(element,selector);}function closest$1(element,selector){const {prototype}=Element;function closestElement(){let el=this;do{if(matches.matches(el,selector))return el;el=el.parentElement||el.parentNode;}while(el!==null&&el.nodeType===1);return null;}const method=prototype.closest||closestElement;return method.call(element,selector);}function getElements(selector){return this.elements.container.querySelectorAll(selector);}function getElement(selector){return this.elements.container.querySelector(selector);}function setFocus(element=null,focusVisible=false){if(!is.element(element))return;element.focus({preventScroll:true,focusVisible});}const defaultCodecs={'audio/ogg':'vorbis','audio/wav':'1','video/webm':'vp8, vorbis','video/mp4':'avc1.42E01E, mp4a.40.2','video/ogg':'theora'};const support={audio:'canPlayType' in document.createElement('audio'),video:'canPlayType' in document.createElement('video'),check(type,provider){const api=support[type]||provider!=='html5';const ui=api&&support.rangeInput;return {api,ui};},pip:(()=>{if(browser.isIPhone)return false;if(is.function(createElement('video').webkitSetPresentationMode))return true;if(document.pictureInPictureEnabled&&!createElement('video').disablePictureInPicture)return true;return false;})(),airplay:is.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:'playsInl
189ine' in document.createElement('video'),mime(input){if(is.empty(input))return false;const [mediaType]=input.split('/');let type=input;if(!this.isHTML5||mediaType!==this.type)return false;if(Object.keys(defaultCodecs).includes(type))type+=`; codecs="${defaultCodecs[input]}"`;try{return Boolean(type&&this.media.canPlayType(type).replace(/no/,''));}catch(_){return false;}},textTracks:'textTracks' in document.createElement('video'),rangeInput:(()=>{const range=document.createElement('input');range.type='range';return range.type==='range';})(),touch:'ontouchstart' in document.documentElement,transitions:transitionEndEvent!==false,reducedMotion:'matchMedia' in window&&window.matchMedia('(prefers-reduced-motion)').matches};const supportsPassiveListeners=(()=>{let supported=false;try{const options=Object.defineProperty({},'passive',{get(){supported=true;return null;}});window.addEventListener('test',null,options);window.removeEventListener('test',null,options);}catch(_){}return supported;})();function toggleListener(element,event,callback,toggle=false,passive=true,capture=false){if(!element||!('addEventListener' in element)||is.empty(event)||!is.function(callback))return;const events=event.split(' ');let options=capture;if(supportsPassiveListeners)options={passive,capture};events.forEach((type)=>{if(this&&this.eventListeners&&toggle)this.eventListeners.push({element,type,callback,options});element[toggle?'addEventListener':'removeEventListener'](type,callback,options);});}function on(element,events='',callback,passive=true,capture=false){toggleListener.call(this,element,events,callback,true,passive,capture);}function off(element,events='',callback,passive=true,capture=false){toggleListener.call(this,element,events,callback,false,passive,capture);}function once(element,events='',callback,passive=true,capture=false){const onceCallback=(...args)=>{off(element,events,onceCallback,passive,capture);callback.apply(this,args);};toggleListener.call(this,element,events,onceCallback,true,passive,capture);}function triggerEvent(element,type='',bubbles=false,detail={}){if(!is.element(element)||is.empty(type))return;const event=new CustomEvent(type,{bubbles,detail:{...detail,plyr:this}});element.dispatchEvent(event);}function unbindListeners(){if(this&&this.eventListeners){this.eventListeners.forEach((item)=>{const {element,type,callback,options}=item;element.removeEventListener(type,callback,options);});this.eventListeners=[];}}function ready(){return new Promise((resolve)=>this.ready?setTimeout(resolve,0):on.call(this,this.elements.container,'ready',resolve)).then(()=>{});}function silencePromise(value){if(is.promise(value))value.then(null,()=>{});}function dedupe(array){if(!is.array(array))return array;return array.filter((item,index)=>array.indexOf(item)===index);}function closest(array,value){if(!is.array(array)||!array.length)return null;return array.reduce((prev,curr)=>Math.abs(curr-value)<Math.abs(prev-value)?curr:prev);}function supportsCSS(declaration){if(!window||!window.CSS)return false;return window.CSS.supports(declaration);}const standardRatios=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((out,[x,y])=>({...out,[x/y]:[x,y]}),{});function validateAspectRatio(input){if(!is.array(input)&&(!is.string(input)||!input.includes(':')))return false;const ratio=is.array(input)?input:input.split(':');return ratio.map(Number).every(is.number);}function reduceAspectRatio(ratio){if(!is.array(ratio)||!ratio.every(is.number))return null;const [width,height]=ratio;const getDivider=(w,h)=>h===0?w:getDivider(h,w%h);const divider=getDivider(width,height);return [width/divider,height/divider];}function getAspectRatio(input){const parse=(ratio)=>validateAspectRatio(ratio)?ratio.split(':').map(Number):null;let ratio=parse(input);if(ratio===null)ratio=parse(this.config.ratio);if(ratio===null&&!is.empty(this.embed)&&is.array(this.embed.ratio))({ratio}=this.embed);if(ratio===null&&this.isHTML5){const {videoWidth,videoHeight}=this.media;ratio=[videoWidth,videoHeight];}return reduceAspectRatio(ratio);}function setAspectRatio(input){if(!this.isVideo)return {};const {wrapper}=this.elements;const ratio=getAspectRatio.call(this,input);if(!is.array(ratio))return {};const [x,y]=reduceAspectRatio(ratio);const useNative=supportsCSS(`aspect-ratio: ${x}/${y}`);const padding=100/x*y;if(useNative)wrapper.style.aspectRatio=`${x}
189/${y}`;else wrapper.style.paddingBottom=`${padding}%`;if(this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const height=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10);const offset=(height-padding)/(height/50);if(this.fullscreen.active)wrapper.style.paddingBottom=null;else this.media.style.transform=`translateY(-${offset}%)`;}else{if(this.isHTML5)wrapper.classList.add(this.config.classNames.videoFixedRatio);}return {padding,ratio};}function roundAspectRatio(x,y,tolerance=0.05){const ratio=x/y;const closestRatio=closest(Object.keys(standardRatios),ratio);if(Math.abs(closestRatio-ratio)<=tolerance)return standardRatios[closestRatio];return [x,y];}function getViewportSize(){const width=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0);const height=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);return [width,height];}const html5={getSources(){if(!this.isHTML5)return [];const sources=Array.from(this.media.querySelectorAll('source'));return sources.filter((source)=>{const type=source.getAttribute('type');if(is.empty(type))return true;return support.mime.call(this,type);});},getQualityOptions(){if(this.config.quality.forced)return this.config.quality.options;return html5.getSources.call(this).map((source)=>Number(source.getAttribute('size'))).filter(Boolean);},setup(){if(!this.isHTML5)return;const player=this;player.options.speed=player.config.speed.options;if(!is.empty(this.config.ratio))setAspectRatio.call(player);Object.defineProperty(player.media,'quality',{get(){const sources=html5.getSources.call(player);const source=sources.find((s)=>s.getAttribute('src')===player.source);return source&&Number(source.getAttribute('size'));},set(input){if(player.quality===input)return;if(player.config.quality.forced&&is.function(player.config.quality.onChange))player.config.quality.onChange(input);else{const sources=html5.getSources.call(player);const source=sources.find((s)=>Number(s.getAttribute('size'))===input);if(!source)return;const {currentTime,paused,preload,readyState,playbackRate}=player.media;player.media.src=source.getAttribute('src');if(preload!=='none'||readyState){player.once('loadedmetadata',()=>{player.speed=playbackRate;player.currentTime=currentTime;if(!paused)silencePromise(player.play());});player.media.load();}}triggerEvent.call(player,player.media,'qualitychange',false,{quality:input});}});},cancelRequests(){if(!this.isHTML5)return;removeElement(html5.getSources.call(this));this.media.setAttribute('src',this.config.blankVideo);this.media.load();this.debug.log('Cancelled network requests');}};function generateId(prefix){return `${prefix}-${Math.floor(Math.random()*10000)}`;}function format(input,...args){if(is.empty(input))return input;return input.toString().replace(/{(\d+)}/g,(_,i)=>args[i].toString());}function getPercentage(current,max){if(current===0||max===0||Number.isNaN(current)||Number.isNaN(max))return 0;return (current/max*100).toFixed(2);}const replaceAll=(input='',find='',replace='')=>input.replace(new RegExp(find.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,'\\$1'),'g'),replace.toString());const toTitleCase=(input='')=>input.toString().replace(/\w\S*/g,(text)=>text.charAt(0).toUpperCase()+text.slice(1).toLowerCase());function toPascalCase(input=''){let string=input.toString();string=replaceAll(string,'-',' ');string=replaceAll(string,'_',' ');string=toTitleCase(string);return replaceAll(string,' ','');}function toCamelCase(input=''){let string=input.toString();string=toPascalCase(string);return string.charAt(0).toLowerCase()+string.slice(1);}function stripHTML(source){const fragment=document.createDocumentFragment();const element=document.createElement('div');fragment.appendChild(element);element.innerHTML=source;return fragment.firstChild.innerText;}function getHTML(element){const wrapper=document.createElement('div');wrapper.appendChild(element);return wrapper.innerHTML;}const resources={pip:'PIP',airplay:'AirPlay',html5:'HTML5',vimeo:'Vimeo',youtube:'YouTube'};const i18n={get(key='',config={}){if(is.empty(key)||is.empty(config))return '';let string=getDeep(config.i18n,key);if(is.empty(string)){if(Object.keys(resources).includes(key))return resources[key];return '';}const replace={'{seektime}':config.seekTime,'{title}':config.title};Object.entries(replace).forEach(([k,v])=>{string=replaceAll(string,k,v);});return string;}};class Storage{constructor(player){_defineProperty$1(this,"get",(key)=>{if(!Storage.supported||!this.enabled)return null;const store=window.localStorage.getItem(this.key);if(is.empty(store))return null;const json=JSON.parse(store);return is.string(key)&&key.length?json[key]:json;});_defineProperty$1(this,"set",(object)=>{if(!Storage.supported||!this.enabled)return;if(!is.object(object))return;let storage=this.get();if(is.empty(storage))storage={};extend(storage,object);try{window.localStorage.setItem(this.key,JSON.stringify(storage));}catch(_){}});this.enabled=player.config.storage.enabled;this.key=player.config.storage.key;}static get supported(){try{if(!('localStorage' in window))return false;const test='___test';window.localStorage.setItem(test,test);window.localStorage.removeItem(test);return true;}catch(_){return false;}}}function fetch(url,responseType='text'){return new Promise((resolve,reject)=>{try{const request=new XMLHttpRequest();if(!('withCredentials' in request))return;request.addEventListener('load',()=>{if(responseType==='text')try{resolve(JSON.parse(request.responseText));}catch(_){resolve(request.responseText);}else resolve(request.response);});request.addEventListener('error',()=>{throw new Error(request.status);});request.open('GET',url,true);request.responseType=responseType;request.send();}catch(error){reject(error);}});}function loadSprite(url,id){if(!is.string(url))return;
189const prefix='cache';const hasId=is.string(id);let isCached=false;const exists=()=>document.getElementById(id)!==null;const update=(container,data)=>{container.innerHTML=data;if(hasId&&exists())return;document.body.insertAdjacentElement('afterbegin',container);};if(!hasId||!exists()){const useStorage=Storage.supported;const container=document.createElement('div');container.setAttribute('hidden','');if(hasId)container.setAttribute('id',id);if(useStorage){const cached=window.localStorage.getItem(`${prefix}-${id}`);isCached=cached!==null;if(isCached){const data=JSON.parse(cached);update(container,data.content);}}fetch(url).then((result)=>{if(is.empty(result))return;if(useStorage)try{window.localStorage.setItem(`${prefix}-${id}`,JSON.stringify({content:result}));}catch(_){}update(container,result);}).catch(()=>{});}}const getHours=(value)=>Math.trunc(value/60/60%60,10);const getMinutes=(value)=>Math.trunc(value/60%60,10);const getSeconds=(value)=>Math.trunc(value%60,10);function formatTime(time=0,displayHours=false,inverted=false){if(!is.number(time))return formatTime(undefined,displayHours,inverted);const format=(value)=>`0${value}`.slice(-2);let hours=getHours(time);const mins=getMinutes(time);const secs=getSeconds(time);if(displayHours||hours>0)hours=`${hours}:`;else hours='';return `${inverted&&time>0?'-':''}${hours}${format(mins)}:${format(secs)}`;}const controls={getIconUrl(){const url=new URL(this.config.iconUrl,window.location);const host=window.location.host?window.location.host:window.top.location.host;const cors=url.host!==host||browser.isIE&&!window.svg4everybody;return {url:this.config.iconUrl,cors};},findElements(){try{this.elements.controls=getElement.call(this,this.config.selectors.controls.wrapper);this.elements.buttons={play:getElements.call(this,this.config.selectors.buttons.play),pause:getElement.call(this,this.config.selectors.buttons.pause),restart:getElement.call(this,this.config.selectors.buttons.restart),rewind:getElement.call(this,this.config.selectors.buttons.rewind),fastForward:getElement.call(this,this.config.selectors.buttons.fastForward),mute:getElement.call(this,this.config.selectors.buttons.mute),pip:getElement.call(this,this.config.selectors.buttons.pip),airplay:getElement.call(this,this.config.selectors.buttons.airplay),settings:getElement.call(this,this.config.selectors.buttons.settings),captions:getElement.call(this,this.config.selectors.buttons.captions),fullscreen:getElement.call(this,this.config.selectors.buttons.fullscreen)};this.elements.progress=getElement.call(this,this.config.selectors.progress);this.elements.inputs={seek:getElement.call(this,this.config.selectors.inputs.seek),volume:getElement.call(this,this.config.selectors.inputs.volume)};this.elements.display={buffer:getElement.call(this,this.config.selectors.display.buffer),currentTime:getElement.call(this,this.config.selectors.display.currentTime),duration:getElement.call(this,this.config.selectors.display.duration)};if(is.element(this.elements.progress))this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`);return true;}catch(error){this.debug.warn('It looks like there is a problem with your custom controls HTML',error);this.toggleNativeControls(true);return false;}},createIcon(type,attributes){const namespace='http://www.w3.org/2000/svg';const iconUrl=controls.getIconUrl.call(this);const iconPath=`${!iconUrl.cors?iconUrl.url:''}#${this.config.iconPrefix}`;const icon=document.createElementNS(namespace,'svg');setAttributes(icon,extend(attributes,{'aria-hidden':'true',focusable:'false'}));const use=document.createElementNS(namespace,'use');const path=`${iconPath}-${type}`;if('href' in use)use.setAttributeNS('http://www.w3.org/1999/xlink','href',path);use.setAttributeNS('http://www.w3.org/1999/xlink','xlink:href',path);icon.appendChild(use);return icon;},createLabel(key,attr={}){const text=i18n.get(key,this.config);const attributes={...attr,class:[attr.class,this.config.classNames.hidden].filter(Boolean).join(' ')};return createElement('span',attributes,text);},createBadge(text){if(is.empty(text))return null;const badge=createElement('span',{class:this.config.classNames.menu.value});
189badge.appendChild(createElement('span',{class:this.config.classNames.menu.badge},text));return badge;},createButton(buttonType,attr){const attributes=extend({},attr);let type=toCamelCase(buttonType);const props={element:'button',toggle:false,label:null,icon:null,labelPressed:null,iconPressed:null};['element','icon','label'].forEach((key)=>{if(Object.keys(attributes).includes(key)){props[key]=attributes[key];delete attributes[key];}});if(props.element==='button'&&!Object.keys(attributes).includes('type'))attributes.type='button';if(Object.keys(attributes).includes('class')){if(!attributes.class.split(' ').some((c)=>c===this.config.classNames.control))extend(attributes,{class:`${attributes.class} ${this.config.classNames.control}`});}else attributes.class=this.config.classNames.control;switch(buttonType){case 'play':props.toggle=true;props.label='play';props.labelPressed='pause';props.icon='play';props.iconPressed='pause';break;case 'mute':props.toggle=true;props.label='mute';props.labelPressed='unmute';props.icon='volume';props.iconPressed='muted';break;case 'captions':props.toggle=true;props.label='enableCaptions';props.labelPressed='disableCaptions';props.icon='captions-off';props.iconPressed='captions-on';break;case 'fullscreen':props.toggle=true;props.label='enterFullscreen';props.labelPressed='exitFullscreen';props.icon='enter-fullscreen';props.iconPressed='exit-fullscreen';break;case 'play-large':attributes.class+=` ${this.config.classNames.control}--overlaid`;type='play';props.label='play';props.icon='play';break;default:if(is.empty(props.label))props.label=type;if(is.empty(props.icon))props.icon=buttonType;}const button=createElement(props.element);if(props.toggle){button.appendChild(controls.createIcon.call(this,props.iconPressed,{class:'icon--pressed'}));button.appendChild(controls.createIcon.call(this,props.icon,{class:'icon--not-pressed'}));button.appendChild(controls.createLabel.call(this,props.labelPressed,{class:'label--pressed'}));button.appendChild(controls.createLabel.call(this,props.label,{class:'label--not-pressed'}));}else{button.appendChild(controls.createIcon.call(this,props.icon));button.appendChild(controls.createLabel.call(this,props.label));}extend(attributes,getAttributesFromSelector(this.config.selectors.buttons[type],attributes));setAttributes(button,attributes);if(type==='play'){if(!is.array(this.elements.buttons[type]))this.elements.buttons[type]=[];this.elements.buttons[type].push(button);}else this.elements.buttons[type]=button;return button;},createRange(type,attributes){const input=createElement('input',extend(getAttributesFromSelector(this.config.selectors.inputs[type]),{type:'range',min:0,max:100,step:0.01,value:0,autocomplete:'off',role:'slider','aria-label':i18n.get(type,this.config),'aria-valuemin':0,'aria-valuemax':100,'aria-valuenow':0},attributes));this.elements.inputs[type]=input;controls.updateRangeFill.call(this,input);RangeTouch.setup(input);return input;},createProgress(type,attributes){const progress=createElement('progress',extend(getAttributesFromSelector(this.config.selectors.display[type]),{min:0,max:100,value:0,role:'progressbar','aria-hidden':true},attributes));if(type!=='volume'){progress.appendChild(createElement('span',null,'0'));const suffixKey={played:'played',buffer:'buffered'}[type];const suffix=suffixKey?i18n.get(suffixKey,this.config):'';progress.innerText=`% ${suffix.toLowerCase()}`;}this.elements.display[type]=progress;return progress;},createTime(type,attrs){const attributes=getAttributesFromSelector(this.config.selectors.display[type],attrs);const container=createElement('div',extend(attributes,{class:`${attributes.class?attributes.class:''} ${this.config.classNames.display.time} `.trim(),'aria-label':i18n.get(type,this.config),role:'timer'}),'00:00');this.elements.display[type]=container;return container;},bindMenuItemShortcuts(menuItem,type){on.call(this,menuItem,'keydown keyup',(event)=>{if(![' ','ArrowUp','ArrowDown','ArrowRight'].includes(event.key))return;event.preventDefault();event.stopPropagation();if(event.type==='keydown')return;const isRadioButton=matches(menuItem,'[role="menuitemradio"]');if(!isRadioButton&&[' ','ArrowRight'].includes(event.key))control
189s.showMenuPanel.call(this,type,true);else{let target;if(event.key!==' '){if(event.key==='ArrowDown'||isRadioButton&&event.key==='ArrowRight'){target=menuItem.nextElementSibling;if(!is.element(target))target=menuItem.parentNode.firstElementChild;}else{target=menuItem.previousElementSibling;if(!is.element(target))target=menuItem.parentNode.lastElementChild;}setFocus.call(this,target,true);}}},false);on.call(this,menuItem,'keyup',(event)=>{if(event.key!=='Return')return;controls.focusFirstMenuItem.call(this,null,true);});},createMenuItem({value,list,type,title,badge=null,checked=false}){const attributes=getAttributesFromSelector(this.config.selectors.inputs[type]);const menuItem=createElement('button',extend(attributes,{type:'button',role:'menuitemradio',class:`${this.config.classNames.control} ${attributes.class?attributes.class:''}`.trim(),'aria-checked':checked,value}));const flex=createElement('span');flex.innerHTML=title;if(is.element(badge))flex.appendChild(badge);menuItem.appendChild(flex);Object.defineProperty(menuItem,'checked',{enumerable:true,get(){return menuItem.getAttribute('aria-checked')==='true';},set(check){if(check)Array.from(menuItem.parentNode.children).filter((node)=>matches(node,'[role="menuitemradio"]')).forEach((node)=>node.setAttribute('aria-checked','false'));menuItem.setAttribute('aria-checked',check?'true':'false');}});this.listeners.bind(menuItem,'click keyup',(event)=>{if(is.keyboardEvent(event)&&event.key!==' ')return;event.preventDefault();event.stopPropagation();menuItem.checked=true;switch(type){case 'language':this.currentTrack=Number(value);break;case 'quality':this.quality=value;break;case 'speed':this.speed=parseFloat(value);break;}controls.showMenuPanel.call(this,'home',is.keyboardEvent(event));},type,false);controls.bindMenuItemShortcuts.call(this,menuItem,type);list.appendChild(menuItem);},formatTime(time=0,inverted=false){if(!is.number(time))return time;const forceHours=getHours(this.duration)>0;return formatTime(time,forceHours,inverted);},updateTimeDisplay(target=null,time=0,inverted=false){if(!is.element(target)||!is.number(time))return;target.innerText=controls.formatTime(time,inverted);},updateVolume(){if(!this.supported.ui)return;if(is.element(this.elements.inputs.volume))controls.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume);if(is.element(this.elements.buttons.mute))this.elements.buttons.mute.pressed=this.muted||this.volume===0;},setRange(target,value=0){if(!is.element(target))return;target.value=value;controls.updateRangeFill.call(this,target);},updateProgress(event){if(!this.supported.ui||!is.event(event))return;let value=0;const setProgress=(target,input)=>{const val=is.number(input)?input:0;const progress=is.element(target)?target:this.elements.display.buffer;if(is.element(progress)){progress.value=val;const label=progress.getElementsByTagName('span')[0];if(is.element(label))label.childNodes[0].nodeValue=val;}};if(event)switch(event.type){case 'timeupdate':case 'seeking':case 'seeked':value=getPercentage(this.currentTime,this.duration);if(event.type==='timeupdate')controls.setRange.call(this,this.elements.inputs.seek,value);break;case 'playing':case 'progress':setProgress(this.elements.display.buffer,this.buffered*100);break;}},updateRangeFill(target){const range=is.event(target)?target.target:target;if(!is.element(range)||range.getAttribute('type')!=='range')return;if(matches(range,this.config.selectors.inputs.seek)){range.setAttribute('aria-valuenow',this.currentTime);const currentTime=controls.formatTime(this.currentTime);const duration=controls.formatTime(this.duration);const format=i18n.get('seekLabel',this.config);range.setAttribute('aria-valuetext',format.replace('{currentTime}',currentTime).replace('{duration}',duration));}else if(matches(range,this.config.selectors.inputs.volume)){const percent=range.value*100;range.setAttribute('aria-valuenow',percent);range.setAttribute('aria-valuetext',`${percent.toFixed(1)}%`);}else range.setAttribute('aria-valuenow',range.value);if(!browser.isWebKit&&!browser.isIPadOS)return;range.style.setProperty('--value',`${range.value/range.max*100}%`);},updateSeekTooltip(event){var _this$config$markers,_this$config$markers$;
189if(!this.config.tooltips.seek||!is.element(this.elements.inputs.seek)||!is.element(this.elements.display.seekTooltip)||this.duration===0)return;const tipElement=this.elements.display.seekTooltip;const visible=`${this.config.classNames.tooltip}--visible`;const toggle=(show)=>toggleClass(tipElement,visible,show);if(this.touch){toggle(false);return;}let percent=0;const clientRect=this.elements.progress.getBoundingClientRect();if(is.event(event))percent=100/clientRect.width*(event.pageX-clientRect.left);else if(hasClass(tipElement,visible))percent=parseFloat(tipElement.style.left,10);else return;if(percent<0)percent=0;else{if(percent>100)percent=100;}const time=this.duration/100*percent;tipElement.innerText=controls.formatTime(time);const point=(_this$config$markers=this.config.markers)===null||_this$config$markers===void 0?void 0:(_this$config$markers$=_this$config$markers.points)===null||_this$config$markers$===void 0?void 0:_this$config$markers$.find(({time:t})=>t===Math.round(time));if(point)tipElement.insertAdjacentHTML('afterbegin',`${point.label}<br>`);tipElement.style.left=`${percent}%`;if(is.event(event)&&['mouseenter','mouseleave'].includes(event.type))toggle(event.type==='mouseenter');},timeUpdate(event){const invert=!is.element(this.elements.display.duration)&&this.config.invertTime;controls.updateTimeDisplay.call(this,this.elements.display.currentTime,invert?this.duration-this.currentTime:this.currentTime,invert);if(event&&event.type==='timeupdate'&&this.media.seeking)return;controls.updateProgress.call(this,event);},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32){toggleHidden(this.elements.display.currentTime,true);toggleHidden(this.elements.progress,true);return;}if(is.element(this.elements.inputs.seek))this.elements.inputs.seek.setAttribute('aria-valuemax',this.duration);const hasDuration=is.element(this.elements.display.duration);if(!hasDuration&&this.config.displayDuration&&this.paused)controls.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration);if(hasDuration)controls.updateTimeDisplay.call(this,this.elements.display.duration,this.duration);if(this.config.markers.enabled)controls.setMarkers.call(this);controls.updateSeekTooltip.call(this);},toggleMenuButton(setting,toggle){toggleHidden(this.elements.settings.buttons[setting],!toggle);},updateSetting(setting,container,input){const pane=this.elements.settings.panels[setting];let value=null;let list=container;if(setting==='captions')value=this.currentTrack;else{value=!is.empty(input)?input:this[setting];if(is.empty(value))value=this.config[setting].default;if(!is.empty(this.options[setting])&&!this.options[setting].includes(value)){this.debug.warn(`Unsupported value of '${value}' for ${setting}`);return;}if(!this.config[setting].options.includes(value)){this.debug.warn(`Disabled value of '${value}' for ${setting}`);return;}}if(!is.element(list))list=pane&&pane.querySelector('[role="menu"]');if(!is.element(list))return;const label=this.elements.settings.buttons[setting].querySelector(`.${this.config.classNames.menu.value}`);label.innerHTML=controls.getLabel.call(this,setting,value);const target=list&&list.querySelector(`[value="${value}"]`);if(is.element(target))target.checked=true;},getLabel(setting,value){switch(setting){case 'speed':return value===1?i18n.get('normal',this.config):`${value}&times;`;case 'quality':if(is.number(value)){const label=i18n.get(`qualityLabel.${value}`,this.config);if(!label.length)return `${value}p`;return label;}return toTitleCase(value);case 'captions':return captions.getLabel.call(this);default:return null;}},setQualityMenu(options){if(!is.element(this.elements.settings.panels.quality))return;const type='quality';const list=this.elements.settings.panels.quality.querySelector('[role="menu"]');if(is.array(options))this.options.quality=dedupe(options).filter((quality)=>this.config.quality.options.includes(quality));const toggle=!is.empty(this.options.quality)&&this.options.quality.length>1;controls.toggleMenuButton.call(this,type,toggle);emptyElement(list);controls.checkMenu.call(this);if(!toggle)return;const getBadge=(quality)=>{const label=i18n.get(`qualityBadge.${quality}`,this.config);if(!label.length)return null;return controls.createBadge.call(this,label);};this.options.quality.sort((a,b)=>{const sorting=this.config.quality.options;return sorting.indexOf(a)>sorting.indexOf(b)?1:-1;}
189).forEach((quality)=>{controls.createMenuItem.call(this,{value:quality,list,type,title:controls.getLabel.call(this,'quality',quality),badge:getBadge(quality)});});controls.updateSetting.call(this,type,list);},setCaptionsMenu(){if(!is.element(this.elements.settings.panels.captions))return;const type='captions';const list=this.elements.settings.panels.captions.querySelector('[role="menu"]');const tracks=captions.getTracks.call(this);const toggle=Boolean(tracks.length);controls.toggleMenuButton.call(this,type,toggle);emptyElement(list);controls.checkMenu.call(this);if(!toggle)return;const options=tracks.map((track,value)=>({value,checked:this.captions.toggled&&this.currentTrack===value,title:captions.getLabel.call(this,track),badge:track.language&&controls.createBadge.call(this,track.language.toUpperCase()),list,type:'language'}));options.unshift({value:-1,checked:!this.captions.toggled,title:i18n.get('disabled',this.config),list,type:'language'});options.forEach(controls.createMenuItem.bind(this));controls.updateSetting.call(this,type,list);},setSpeedMenu(){if(!is.element(this.elements.settings.panels.speed))return;const type='speed';const list=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((o)=>o>=this.minimumSpeed&&o<=this.maximumSpeed);const toggle=!is.empty(this.options.speed)&&this.options.speed.length>1;controls.toggleMenuButton.call(this,type,toggle);emptyElement(list);controls.checkMenu.call(this);if(!toggle)return;this.options.speed.forEach((speed)=>{controls.createMenuItem.call(this,{value:speed,list,type,title:controls.getLabel.call(this,'speed',speed)});});controls.updateSetting.call(this,type,list);},checkMenu(){const {buttons}=this.elements.settings;const visible=!is.empty(buttons)&&Object.values(buttons).some((button)=>!button.hidden);toggleHidden(this.elements.settings.menu,!visible);},focusFirstMenuItem(pane,focusVisible=false){if(this.elements.settings.popup.hidden)return;let target=pane;if(!is.element(target))target=Object.values(this.elements.settings.panels).find((p)=>!p.hidden);const firstItem=target.querySelector('[role^="menuitem"]');setFocus.call(this,firstItem,focusVisible);},toggleMenu(input){const {popup}=this.elements.settings;const button=this.elements.buttons.settings;if(!is.element(popup)||!is.element(button))return;const {hidden}=popup;let show=hidden;if(is.boolean(input))show=input;else if(is.keyboardEvent(input)&&input.key==='Escape')show=false;else{if(is.event(input)){const target=is.function(input.composedPath)?input.composedPath()[0]:input.target;const isMenuItem=popup.contains(target);if(isMenuItem||!isMenuItem&&input.target!==button&&show)return;}}button.setAttribute('aria-expanded',show);toggleHidden(popup,!show);toggleClass(this.elements.container,this.config.classNames.menu.open,show);if(show&&is.keyboardEvent(input))controls.focusFirstMenuItem.call(this,null,true);else{if(!show&&!hidden)setFocus.call(this,button,is.keyboardEvent(input));}},getMenuSize(tab){const clone=tab.cloneNode(true);clone.style.position='absolute';clone.style.opacity=0;clone.removeAttribute('hidden');tab.parentNode.appendChild(clone);const width=clone.scrollWidth;const height=clone.scrollHeight;removeElement(clone);return {width,height};},showMenuPanel(type='',focusVisible=false){const target=this.elements.container.querySelector(`#plyr-settings-${this.id}-${type}`);if(!is.element(target))return;const container=target.parentNode;const current=Array.from(container.children).find((node)=>!node.hidden);if(support.transitions&&!support.reducedMotion){container.style.width=`${current.scrollWidth}px`;container.style.height=`${current.scrollHeight}px`;const size=controls.getMenuSize.call(this,target);const restore=(event)=>{if(event.target!==container||!['width','height'].includes(event.propertyName))return;container.style.width='';container.style.height='';off.call(this,container,transitionEndEvent,restore);};on.call(this,container,transitionEndEvent,restore);container.style.width=`${size.width}px`;container.style.height=`${size.height}px`;}toggleHidden(current,true);toggleHidden(target,false);controls.focusFirstMenuItem.call(this,target,focusVisible);}
189,setDownloadUrl(){const button=this.elements.buttons.download;if(!is.element(button))return;button.setAttribute('href',this.download);},create(data){const {bindMenuItemShortcuts,createButton,createProgress,createRange,createTime,setQualityMenu,setSpeedMenu,showMenuPanel}=controls;this.elements.controls=null;if(is.array(this.config.controls)&&this.config.controls.includes('play-large'))this.elements.container.appendChild(createButton.call(this,'play-large'));const container=createElement('div',getAttributesFromSelector(this.config.selectors.controls.wrapper));this.elements.controls=container;const defaultAttributes={class:'plyr__controls__item'};dedupe(is.array(this.config.controls)?this.config.controls:[]).forEach((control)=>{if(control==='restart')container.appendChild(createButton.call(this,'restart',defaultAttributes));if(control==='rewind')container.appendChild(createButton.call(this,'rewind',defaultAttributes));if(control==='play')container.appendChild(createButton.call(this,'play',defaultAttributes));if(control==='fast-forward')container.appendChild(createButton.call(this,'fast-forward',defaultAttributes));if(control==='progress'){const progressContainer=createElement('div',{class:`${defaultAttributes.class} plyr__progress__container`});const progress=createElement('div',getAttributesFromSelector(this.config.selectors.progress));progress.appendChild(createRange.call(this,'seek',{id:`plyr-seek-${data.id}`}));progress.appendChild(createProgress.call(this,'buffer'));if(this.config.tooltips.seek){const tooltip=createElement('span',{class:this.config.classNames.tooltip},'00:00');progress.appendChild(tooltip);this.elements.display.seekTooltip=tooltip;}this.elements.progress=progress;progressContainer.appendChild(this.elements.progress);container.appendChild(progressContainer);}if(control==='current-time')container.appendChild(createTime.call(this,'currentTime',defaultAttributes));if(control==='duration')container.appendChild(createTime.call(this,'duration',defaultAttributes));if(control==='mute'||control==='volume'){let {volume}=this.elements;if(!is.element(volume)||!container.contains(volume)){volume=createElement('div',extend({},defaultAttributes,{class:`${defaultAttributes.class} plyr__volume`.trim()}));this.elements.volume=volume;container.appendChild(volume);}if(control==='mute')volume.appendChild(createButton.call(this,'mute'));if(control==='volume'&&!browser.isIos&&!browser.isIPadOS){const attributes={max:1,step:0.05,value:this.config.volume};volume.appendChild(createRange.call(this,'volume',extend(attributes,{id:`plyr-volume-${data.id}`})));}}if(control==='captions')container.appendChild(createButton.call(this,'captions',defaultAttributes));if(control==='settings'&&!is.empty(this.config.settings)){const wrapper=createElement('div',extend({},defaultAttributes,{class:`${defaultAttributes.class} plyr__menu`.trim(),hidden:''}));wrapper.appendChild(createButton.call(this,'settings',{'aria-haspopup':true,'aria-controls':`plyr-settings-${data.id}`,'aria-expanded':false}));const popup=createElement('div',{class:'plyr__menu__container',id:`plyr-settings-${data.id}`,hidden:''});const inner=createElement('div');const home=createElement('div',{id:`plyr-settings-${data.id}-home`});const menu=createElement('div',{role:'menu'});home.appendChild(menu);inner.appendChild(home);this.elements.settings.panels.home=home;this.config.settings.forEach((type)=>{const menuItem=createElement('button',extend(getAttributesFromSelector(this.config.selectors.buttons.settings),{type:'button',class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:'menuitem','aria-haspopup':true,hidden:''}));bindMenuItemShortcuts.call(this,menuItem,type);on.call(this,menuItem,'click',()=>{showMenuPanel.call(this,type,false);});const flex=createElement('span',null,i18n.get(type,this.config));const value=createElement('span',{class:this.config.classNames.menu.value});value.innerHTML=data[type];flex.appendChild(value);menuItem.appendChild(flex);menu.appendChild(menuItem);const pane=createElement('div',{id:`plyr-settings-${data.id}-${type}`,hidden:''});const backButton=createElement('button',{type:'button',class:`${this.config.classNames.c
189ontrol} ${this.config.classNames.control}--back`});backButton.appendChild(createElement('span',{'aria-hidden':true},i18n.get(type,this.config)));backButton.appendChild(createElement('span',{class:this.config.classNames.hidden},i18n.get('menuBack',this.config)));on.call(this,pane,'keydown',(event)=>{if(event.key!=='ArrowLeft')return;event.preventDefault();event.stopPropagation();showMenuPanel.call(this,'home',true);},false);on.call(this,backButton,'click',()=>{showMenuPanel.call(this,'home',false);});pane.appendChild(backButton);pane.appendChild(createElement('div',{role:'menu'}));inner.appendChild(pane);this.elements.settings.buttons[type]=menuItem;this.elements.settings.panels[type]=pane;});popup.appendChild(inner);wrapper.appendChild(popup);container.appendChild(wrapper);this.elements.settings.popup=popup;this.elements.settings.menu=wrapper;}if(control==='pip'&&support.pip)container.appendChild(createButton.call(this,'pip',defaultAttributes));if(control==='airplay'&&support.airplay)container.appendChild(createButton.call(this,'airplay',defaultAttributes));if(control==='download'){const attributes=extend({},defaultAttributes,{element:'a',href:this.download,target:'_blank'});if(this.isHTML5)attributes.download='';const {download}=this.config.urls;if(!is.url(download)&&this.isEmbed)extend(attributes,{icon:`logo-${this.provider}`,label:this.provider});container.appendChild(createButton.call(this,'download',attributes));}if(control==='fullscreen')container.appendChild(createButton.call(this,'fullscreen',defaultAttributes));});if(this.isHTML5)setQualityMenu.call(this,html5.getQualityOptions.call(this));setSpeedMenu.call(this);return container;},inject(){if(this.config.loadSprite){const icon=controls.getIconUrl.call(this);if(icon.cors)loadSprite(icon.url,'sprite-plyr');}this.id=Math.floor(Math.random()*10000);let container=null;this.elements.controls=null;const props={id:this.id,seektime:this.config.seekTime,title:this.config.title};let update=true;if(is.function(this.config.controls))this.config.controls=this.config.controls.call(this,props);if(!this.config.controls)this.config.controls=[];if(is.element(this.config.controls)||is.string(this.config.controls))container=this.config.controls;else{container=controls.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:captions.getLabel.call(this)});update=false;}const replace=(input)=>{let result=input;Object.entries(props).forEach(([key,value])=>{result=replaceAll(result,`{${key}}`,value);});return result;};if(update)if(is.string(this.config.controls))container=replace(container);let target;if(is.string(this.config.selectors.controls.container))target=document.querySelector(this.config.selectors.controls.container);if(!is.element(target))target=this.elements.container;const insertMethod=is.element(container)?'insertAdjacentElement':'insertAdjacentHTML';target[insertMethod]('afterbegin',container);if(!is.element(this.elements.controls))controls.findElements.call(this);if(!is.empty(this.elements.buttons)){const addProperty=(button)=>{const className=this.config.classNames.controlPressed;button.setAttribute('aria-pressed','false');Object.defineProperty(button,'pressed',{configurable:true,enumerable:true,get(){return hasClass(button,className);},set(pressed=false){toggleClass(button,className,pressed);button.setAttribute('aria-pressed',pressed?'true':'false');}});};Object.values(this.elements.buttons).filter(Boolean).forEach((button)=>{if(is.array(button)||is.nodeList(button))Array.from(button).filter(Boolean).forEach(addProperty);else addProperty(button);});}if(browser.isEdge)repaint(target);if(this.config.tooltips.controls){const {classNames,selectors}=this.config;const selector=`${selectors.controls.wrapper} ${selectors.labels} .${classNames.hidden}`;const labels=getElements.call(this,selector);Array.from(labels).forEach((label)=>{toggleClass(label,this.config.classNames.hidden,false);toggleClass(label,this.config.classNames.tooltip,true);});}},setMediaMetadata(){try{if('mediaSession' in navigator)navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork});}catch(_){}},setMarkers(){var _this$config$markers2,_this$config$markers3;if(!this.duration||this.elements.markers)return;const points=(_this$config$markers2=this.config.markers)===null||_this$config$markers2===void 0?void 0:(_this$config$markers3=_this$config$markers2.points)===null||_this$config$markers3===void 0?void 0:_this$config$markers3.filter(({time})=>time>0&&time<this.duration);if(!(points!==null&&points!==void 0&&points.length))return;const containerFragment=document.createDocumentFragment();const pointsFragment=document.createDocumentFragment();let tipElement=null;const tipVisible=`${this.config.classNames.tooltip}--visible`;const toggleTip=(show)=>toggleClass(tipElement,tipVisible,show);
189points.forEach((point)=>{const markerElement=createElement('span',{class:this.config.classNames.marker},'');const left=`${point.time/this.duration*100}%`;if(tipElement){markerElement.addEventListener('mouseenter',()=>{if(point.label)return;tipElement.style.left=left;tipElement.innerHTML=point.label;toggleTip(true);});markerElement.addEventListener('mouseleave',()=>{toggleTip(false);});}markerElement.addEventListener('click',()=>{this.currentTime=point.time;});markerElement.style.left=left;pointsFragment.appendChild(markerElement);});containerFragment.appendChild(pointsFragment);if(!this.config.tooltips.seek){tipElement=createElement('span',{class:this.config.classNames.tooltip},'');containerFragment.appendChild(tipElement);}this.elements.markers={points:pointsFragment,tip:tipElement};this.elements.progress.appendChild(containerFragment);}};function parseUrl(input,safe=true){let url=input;if(safe){const parser=document.createElement('a');parser.href=url;url=parser.href;}try{return new URL(url);}catch(_){return null;}}function buildUrlParams(input){const params=new URLSearchParams();if(is.object(input))Object.entries(input).forEach(([key,value])=>{params.set(key,value);});return params;}const captions={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!support.textTracks){if(is.array(this.config.controls)&&this.config.controls.includes('settings')&&this.config.settings.includes('captions'))controls.setCaptionsMenu.call(this);return;}if(!is.element(this.elements.captions)){this.elements.captions=createElement('div',getAttributesFromSelector(this.config.selectors.captions));this.elements.captions.setAttribute('dir','auto');insertAfter(this.elements.captions,this.elements.wrapper);}if(browser.isIE&&window.URL){const elements=this.media.querySelectorAll('track');Array.from(elements).forEach((track)=>{const src=track.getAttribute('src');const url=parseUrl(src);if(url!==null&&url.hostname!==window.location.href.hostname&&['http:','https:'].includes(url.protocol))fetch(src,'blob').then((blob)=>{track.setAttribute('src',window.URL.createObjectURL(blob));}).catch(()=>{removeElement(track);});});}const browserLanguages=navigator.languages||[navigator.language||navigator.userLanguage||'en'];const languages=dedupe(browserLanguages.map((language)=>language.split('-')[0]));let language=(this.storage.get('language')||this.config.captions.language||'auto').toLowerCase();if(language==='auto')[language]=languages;let active=this.storage.get('captions');if(!is.boolean(active))({active}=this.config.captions);Object.assign(this.captions,{toggled:false,active,language,languages});if(this.isHTML5){const trackEvents=this.config.captions.update?'addtrack removetrack':'removetrack';on.call(this,this.media.textTracks,trackEvents,captions.update.bind(this));}setTimeout(captions.update.bind(this),0);},update(){const tracks=captions.getTracks.call(this,true);const {active,language,meta,currentTrackNode}=this.captions;const languageExists=Boolean(tracks.find((track)=>track.language===language));if(this.isHTML5&&this.isVideo)tracks.filter((track)=>!meta.get(track)).forEach((track)=>{this.debug.log('Track added',track);meta.set(track,{default:track.mode==='showing'});if(track.mode==='showing')track.mode='hidden';on.call(this,track,'cuechange',()=>captions.updateCues.call(this));});if(languageExists&&this.language!==language||!tracks.includes(currentTrackNode)){captions.setLanguage.call(this,language);captions.toggle.call(this,active&&languageExists);}if(this.elements)toggleClass(this.elements.container,this.config.classNames.captions.enabled,!is.empty(tracks));if(is.array(this.config.controls)&&this.config.controls.includes('settings')&&this.config.settings.includes('captions'))controls.setCaptionsMenu.call(this);},toggle(input,passive=true){if(!this.supported.ui)return;const {toggled}=this.captions;const activeClass=this.config.classNames.captions.active;const active=is.nullOrUndefined(input)?!toggled:input;if(active!==toggled){if(!passive){this.captions.active=active;this.storage.set({captions:active});}if(!this.language&&active&&!passive){const tracks=captions.getTracks.call(this);const track=captions.findTrack.call(this,[this.captions.language,...this.captions.languages],true);this.captions.language=track.language;captions.set.call(this,tracks.indexOf(track));return;}if(this.elements.buttons.captions)this.elements.buttons.captions.pressed=active;toggleClass(this.elements.container,activeClass,active);this.captions.toggled=active;controls.updateSetting.call(this,'captions');triggerEvent.call(this,this.media,active?'captionsenabled':'captionsdisabled');}setTimeout(()=>{if(active&&this.captions.toggled)this.captions.currentTrackNode.mode='hidden';});},set(index,passive=true){const tracks=captions.getTracks.call(this);if(index===-1){captions.toggle.call(this,false,passive);return;}if(!is.number(index)){this.debug.warn('Invalid caption argument',index);return;}if(!(index in tracks)){this.debug.warn('Track not found',index);return;}if(this.captions.currentTrack!==index){this.captions.currentTrack=index;const track=tracks[index];const {language}=track||{};this.captions.currentTrackNode=track;controls.updateSetting.call(this,'captions');if(!passive){this.captions.language=language;this.storage.set({language});}if(this.isVimeo)this.embed.enableTextTrack(language);triggerEvent.call(this,this.media,'languagechange');}captions.toggle.call(this,true,passive);if(this.isHTML5&&this.isVideo)captions.updateCues.call(this);},setLanguage(input,passive=true){if(!is.string(input)){this.debug.warn('Invalid language argument',input);return;}const language=input.toLowerCase();this.captions.language=language;const tracks=captions.getTracks.call(this);const track=captions.findTrack.call(this,[language]);captions.set.call(this,tracks.indexOf(track),passive);},getTracks(update=false){const tracks=Array.from((this.media||{}).textTracks||[]);return tracks.filter((track)=>!this.isHTML5||update||this.captions.meta.has(track)).filter((track)=>['captions','subtitles'].includes(track.kind));},findTrack(languages,force=false){const tracks=captions.getTracks.call(this);const sortIsDefault=(track)=>Number((this.captions.meta.get(track)||{}).default);const sorted=Array.from(tracks).sort((a,b)=>sortIsDefault(b)-sortIsDefault(a));let track;languages.every((language)=>{track=sorted.find((t)=>t.language===language);return !track;});return track||(force?sorted[0]:undefined);},getCurrentTrack(){return captions.getTracks.call(this)[this.currentTrack];},getLabel(track){let currentTrack=track;if(!is.track(currentTrack)&&support.textTracks&&this.captions.toggled)currentTrack=captions.getCurrentTrack.call(this);if(is.track(currentTrack)){if(!is.empty(currentTrack.label))return currentTrack.label;if(!is.empty(currentTrack.language))return track.language.toUpperCase();return i18n.get('enabled',this.config);}return i18n.get('disabled',this.config);},updateCues(input){if(!this.supported.ui)return;
vendor: 4,377 bytes, line 189
189if(!is.element(this.elements.captions)){this.debug.warn('No captions element to render to');return;}if(!is.nullOrUndefined(input)&&!Array.isArray(input)){this.debug.warn('updateCues: Invalid input',input);return;}let cues=input;if(!cues){const track=captions.getCurrentTrack.call(this);cues=Array.from((track||{}).activeCues||[]).map((cue)=>cue.getCueAsHTML()).map(getHTML);}const content=cues.map((cueText)=>cueText.trim()).join('\n');const changed=content!==this.elements.captions.innerHTML;if(changed){emptyElement(this.elements.captions);const caption=createElement('span',getAttributesFromSelector(this.config.selectors.caption));caption.innerHTML=content;this.elements.captions.appendChild(caption);triggerEvent.call(this,this.media,'cuechange');}}};const defaults={enabled:true,title:'',debug:false,autoplay:false,autopause:true,playsinline:true,seekTime:10,volume:1,muted:false,duration:null,displayDuration:true,invertTime:true,toggleInvert:true,ratio:null,clickToPlay:true,hideControls:true,resetOnEnd:false,disableContextMenu:true,loadSprite:true,iconPrefix:'plyr',iconUrl:'https://cdn.plyr.io/3.7.8/plyr.svg',blankVideo:'https://cdn.plyr.io/static/blank.mp4',quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:false,onChange:null},loop:{active:false},speed:{selected:1,options:[0.5,0.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:true,global:false},tooltips:{controls:false,seek:true},captions:{active:false,language:'auto',update:false},fullscreen:{enabled:true,fallback:true,iosNative:false},storage:{enabled:true,key:'plyr'},controls:['play-large','play','progress','current-time','mute','volume','captions','settings','pip','airplay','fullscreen'],settings:['captions','quality','speed'],i18n:{restart:'Restart',rewind:'Rewind {seektime}s',play:'Play',pause:'Pause',fastForward:'Forward {seektime}s',seek:'Seek',seekLabel:'{currentTime} of {duration}',played:'Played',buffered:'Buffered',currentTime:'Current time',duration:'Duration',volume:'Volume',mute:'Mute',unmute:'Unmute',enableCaptions:'Enable captions',disableCaptions:'Disable captions',download:'Download',enterFullscreen:'Enter fullscreen',exitFullscreen:'Exit fullscreen',frameTitle:'Player for {title}',captions:'Captions',settings:'Settings',pip:'PIP',menuBack:'Go back to previous menu',speed:'Speed',normal:'Normal',quality:'Quality',loop:'Loop',start:'Start',end:'End',all:'All',reset:'Reset',disabled:'Disabled',enabled:'Enabled',advertisement:'Ad',qualityBadge:{2160:'4K',1440:'HD',1080:'HD',720:'HD',576:'SD',480:'SD'}},urls:{download:null,vimeo:{sdk:'https://player.vimeo.com/api/player.js',iframe:'https://player.vimeo.com/video/{0}?{1}',api:'https://vimeo.com/api/oembed.json?url={0}'},youtube:{sdk:'https://www.youtube.com/iframe_api',api:'https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}'},googleIMA:{sdk:'https://imasdk.googleapis.com/js/sdkloader/ima3.js'}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:['ended','progress','stalled','playing','waiting','canplay','canplaythrough','loadstart','loadeddata','loadedmetadata','timeupdate','volumechange','play','pause','error','seeking','seeked','emptied','ratechange','cuechange','download','enterfullscreen','exitfullscreen','captionsenabled','captionsdisabled','languagechange','controlshidden','controlsshown','ready','statechange','qualitychange','adsloaded','adscontentpause','adscontentresume','adstarted','adsmidpoint','adscomplete','adsallcomplete','adsimpression','adsclick'],selectors:{editable:'input, textarea, select, [contenteditable]',container:'.plyr',controls:{container:null,wrapper:'.plyr__controls'},labels:'[data-plyr]',buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="qual
189ity"]'},display:{currentTime:'.plyr__time--current',duration:'.plyr__time--duration',buffer:'.plyr__progress__buffer',loop:'.plyr__progress__loop',volume:'.plyr__volume--display'},progress:'.plyr__progress',captions:'.plyr__captions',caption:'.plyr__caption'},classNames:{type:'plyr--{0}',provider:'plyr--{0}',video:'plyr__video-wrapper',embed:'plyr__video-embed',videoFixedRatio:'plyr__video-wrapper--fixed-ratio',embedContainer:'plyr__video-embed__container',poster:'plyr__poster',posterEnabled:'plyr__poster-enabled',ads:'plyr__ads',control:'plyr__control',controlPressed:'plyr__control--pressed',playing:'plyr--playing',paused:'plyr--paused',stopped:'plyr--stopped',loading:'plyr--loading',hover:'plyr--hover',tooltip:'plyr__tooltip',cues:'plyr__cues',marker:'plyr__progress__marker',hidden:'plyr__sr-only',hideControls:'plyr--hide-controls',isTouch:'plyr--is-touch',uiSupported:'plyr--full-ui',noTransition:'plyr--no-transition',display:{time:'plyr__time'},menu:{value:'plyr__menu__value',badge:'plyr__badge',open:'plyr--menu-open'},captions:{enabled:'plyr--captions-enabled',active:'plyr--captions-active'},fullscreen:{enabled:'plyr--fullscreen-enabled',fallback:'plyr--fullscreen-fallback'},pip:{supported:'plyr--pip-supported',active:'plyr--pip-active'},airplay:{supported:'plyr--airplay-supported',active:'plyr--airplay-active'},previewThumbnails:{thumbContainer:'plyr__preview-thumb',thumbContainerShown:'plyr__preview-thumb--is-shown',imageContainer:'plyr__preview-thumb__image-container',timeContainer:'plyr__preview-thumb__time-container',scrubbingContainer:'plyr__preview-scrubbing',scrubbingContainerShown:'plyr__preview-scrubbing--is-shown'}},attributes:{embed:{provider:'data-plyr-provider',id:'data-plyr-embed-id',hash:'data-plyr-embed-hash'}},ads:{enabled:false,publisherId:'',tagUrl:''},previewThumbnails:{enabled:false,src:''},vimeo:{byline:false,portrait:false,title:false,speed:true,transparent:false,customControls:true,referrerPolicy:null,premium:false},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:true,noCookie:false},mediaMetadata:{title:'',artist:'',album:'',artwork:[]},markers:{enabled:false,points:[]}};const pip={active:'picture-in-picture',inactive:'inline'};const providers={html5:'html5',youtube:'youtube',vimeo:'vimeo'};const types={audio:'audio',video:'video'};function getProviderByUrl(url){if(/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(url))return providers.youtube;if(/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(url))return providers.vimeo;return null;}const noop=()=>{};class Console{constructor(enabled=false){this.enabled=window.console&&enabled;if(this.enabled)this.log('Debugging enabled');}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):noop;}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):noop;}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):noop;}}class Fullscreen{constructor(player){_defineProperty$1(this,"onChange",()=>{if(!this.supported)return;const button=this.player.elements.buttons.fullscreen;if(is.element(button))button.pressed=this.active;const target=this.target===this.player.media?this.target:this.player.elements.container;triggerEvent.call(this.player,target,this.active?'enterfullscreen':'exitfullscreen',true);});_defineProperty$1(this,"toggleFallback",(toggle=false)=>{if(toggle)this.scrollPosition={x:window.scrollX??0,y:window.scrollY??0};else window.scrollTo(this.scrollPosition.x,this.scrollPosition.y);document.body.style.overflow=toggle?'hidden':'';toggleClass(this.target,this.player.config.classNames.fullscreen.fallback,toggle);if(browser.isIos){let viewport=document.head.querySelector('meta[name="viewport"]');const property='viewport-fit=cover';if(!viewport){viewport=document.createElement('meta');viewport.setAttribute('name','viewport');}const hasProperty=is.string(viewport.content)&&viewport.content.includes(property);if(toggle){this.cleanupViewport=!hasProperty;if(!hasProperty)viewport.content+=`,${property}`;}else{if(this.cleanupViewport)viewport.content=viewport.content.split(',').filter((part)=>part.trim()!==property).join(',');}}this.onChange();});_defineProperty$1(this,"trapFocus",(event)=>{if(browser.isIos||browser.isIPadOS||!this.active||event.key!=='Tab')return;const focused=document.activeElement;const focusable=getElements.call(this.player,'a[href], button:not(:disabled), input:not(:disabled), [tabindex]');const [first]=focusable;
189const last=focusable[focusable.length-1];if(focused===last&&!event.shiftKey){first.focus();event.preventDefault();}else{if(focused===first&&event.shiftKey){last.focus();event.preventDefault();}}});_defineProperty$1(this,"update",()=>{if(this.supported){let mode;if(this.forceFallback)mode='Fallback (forced)';else if(Fullscreen.nativeSupported)mode='Native';else mode='Fallback';this.player.debug.log(`${mode} fullscreen enabled`);}else this.player.debug.log('Fullscreen not supported and fallback disabled');toggleClass(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported);});_defineProperty$1(this,"enter",()=>{if(!this.supported)return;if(browser.isIos&&this.player.config.fullscreen.iosNative)if(this.player.isVimeo)this.player.embed.requestFullscreen();else this.target.webkitEnterFullscreen();else if(!Fullscreen.nativeSupported||this.forceFallback)this.toggleFallback(true);else if(!this.prefix)this.target.requestFullscreen({navigationUI:'hide'});else{if(!is.empty(this.prefix))this.target[`${this.prefix}Request${this.property}`]();}});_defineProperty$1(this,"exit",()=>{if(!this.supported)return;if(browser.isIos&&this.player.config.fullscreen.iosNative){if(this.player.isVimeo)this.player.embed.exitFullscreen();else this.target.webkitEnterFullscreen();silencePromise(this.player.play());}else if(!Fullscreen.nativeSupported||this.forceFallback)this.toggleFallback(false);else if(!this.prefix)(document.cancelFullScreen||document.exitFullscreen).call(document);else{if(!is.empty(this.prefix)){const action=this.prefix==='moz'?'Cancel':'Exit';document[`${this.prefix}${action}${this.property}`]();}}});_defineProperty$1(this,"toggle",()=>{if(!this.active)this.enter();else this.exit();});this.player=player;this.prefix=Fullscreen.prefix;this.property=Fullscreen.property;this.scrollPosition={x:0,y:0};this.forceFallback=player.config.fullscreen.fallback==='force';this.player.elements.fullscreen=player.config.fullscreen.container&&closest$1(this.player.elements.container,player.config.fullscreen.container);on.call(this.player,document,this.prefix==='ms'?'MSFullscreenChange':`${this.prefix}fullscreenchange`,()=>{this.onChange();});on.call(this.player,this.player.elements.container,'dblclick',(event)=>{if(is.element(this.player.elements.controls)&&this.player.elements.controls.contains(event.target))return;this.player.listeners.proxy(event,this.toggle,'fullscreen');});on.call(this,this.player.elements.container,'keydown',(event)=>this.trapFocus(event));this.update();}static get nativeSupported(){return !!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled);}get useNative(){return Fullscreen.nativeSupported&&!this.forceFallback;}static get prefix(){if(is.function(document.exitFullscreen))return '';let value='';const prefixes=['webkit','moz','ms'];prefixes.some((pre)=>{if(is.function(document[`${pre}ExitFullscreen`])||is.function(document[`${pre}CancelFullScreen`])){value=pre;return true;}return false;});return value;}static get property(){return this.prefix==='moz'?'FullScreen':'Fullscreen';}get supported(){return [this.player.config.fullscreen.enabled,this.player.isVideo,Fullscreen.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||Fullscreen.nativeSupported||!browser.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean);}get active(){if(!this.supported)return false;if(!Fullscreen.nativeSupported||this.forceFallback)return hasClass(this.target,this.player.config.classNames.fullscreen.fallback);const element=!this.prefix?this.target.getRootNode().fullscreenElement:this.target.getRootNode()[`${this.prefix}${this.property}Element`];return element&&element.shadowRoot?element===this.target.getRootNode().host:element===this.target;}get target(){return browser.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen??this.player.elements.container;}}function loadImage(src,minWidth=1){return new Promise((resolve,reject)=>{const image=new Image();const handler=()=>{delete image.onload;delete image.onerror;
189(image.naturalWidth>=minWidth?resolve:reject)(image);};Object.assign(image,{onload:handler,onerror:handler,src});});}const ui={addStyleHook(){toggleClass(this.elements.container,this.config.selectors.container.replace('.',''),true);toggleClass(this.elements.container,this.config.classNames.uiSupported,this.supported.ui);},toggleNativeControls(toggle=false){if(toggle&&this.isHTML5)this.media.setAttribute('controls','');else this.media.removeAttribute('controls');},build(){this.listeners.media();if(!this.supported.ui){this.debug.warn(`Basic support only for ${this.provider} ${this.type}`);ui.toggleNativeControls.call(this,true);return;}if(!is.element(this.elements.controls)){controls.inject.call(this);this.listeners.controls();}ui.toggleNativeControls.call(this);if(this.isHTML5)captions.setup.call(this);this.volume=null;this.muted=null;this.loop=null;this.quality=null;this.speed=null;controls.updateVolume.call(this);controls.timeUpdate.call(this);controls.durationUpdate.call(this);ui.checkPlaying.call(this);toggleClass(this.elements.container,this.config.classNames.pip.supported,support.pip&&this.isHTML5&&this.isVideo);toggleClass(this.elements.container,this.config.classNames.airplay.supported,support.airplay&&this.isHTML5);toggleClass(this.elements.container,this.config.classNames.isTouch,this.touch);this.ready=true;setTimeout(()=>{triggerEvent.call(this,this.media,'ready');},0);ui.setTitle.call(this);if(this.poster)ui.setPoster.call(this,this.poster,false).catch(()=>{});if(this.config.duration)controls.durationUpdate.call(this);if(this.config.mediaMetadata)controls.setMediaMetadata.call(this);},setTitle(){let label=i18n.get('play',this.config);if(is.string(this.config.title)&&!is.empty(this.config.title))label+=`, ${this.config.title}`;Array.from(this.elements.buttons.play||[]).forEach((button)=>{button.setAttribute('aria-label',label);});if(this.isEmbed){const iframe=getElement.call(this,'iframe');if(!is.element(iframe))return;const title=!is.empty(this.config.title)?this.config.title:'video';const format=i18n.get('frameTitle',this.config);iframe.setAttribute('title',format.replace('{title}',title));}},togglePoster(enable){toggleClass(this.elements.container,this.config.classNames.posterEnabled,enable);},setPoster(poster,passive=true){if(passive&&this.poster)return Promise.reject(new Error('Poster already set'));this.media.setAttribute('data-poster',poster);this.elements.poster.removeAttribute('hidden');return ready.call(this).then(()=>loadImage(poster)).catch((error)=>{if(poster===this.poster)ui.togglePoster.call(this,false);throw error;}).then(()=>{if(poster!==this.poster)throw new Error('setPoster cancelled by later call to setPoster');}).then(()=>{Object.assign(this.elements.poster.style,{backgroundImage:`url('${poster}')`,backgroundSize:''});ui.togglePoster.call(this,true);return poster;});},checkPlaying(event){toggleClass(this.elements.container,this.config.classNames.playing,this.playing);toggleClass(this.elements.container,this.config.classNames.paused,this.paused);toggleClass(this.elements.container,this.config.classNames.stopped,this.stopped);Array.from(this.elements.buttons.play||[]).forEach((target)=>{Object.assign(target,{pressed:this.playing});target.setAttribute('aria-label',i18n.get(this.playing?'pause':'play',this.config));});if(is.event(event)&&event.type==='timeupdate')return;ui.toggleControls.call(this);},checkLoading(event){this.loading=['stalled','waiting'].includes(event.type);clearTimeout(this.timers.loading);this.timers.loading=setTimeout(()=>{toggleClass(this.elements.container,this.config.classNames.loading,this.loading);ui.toggleControls.call(this);},this.loading?250:0);},toggleControls(force){const {controls:controlsElement}=this.elements;if(controlsElement&&this.config.hideControls){const recentTouchSeek=this.touch&&this.lastSeekTime+2000>Date.now();this.toggleControls(Boolean(force||this.loading||this.paused||controlsElement.pressed||controlsElement.hover||recentTouchSeek));}},migrateStyles(){Object.values({...this.media.style}).filter((key)=>!is.empty(key)&&is.string(key)&&key.startsWith('--plyr')).forEac
189h((key)=>{this.elements.container.style.setProperty(key,this.media.style.getPropertyValue(key));this.media.style.removeProperty(key);});if(is.empty(this.media.style))this.media.removeAttribute('style');}};class Listeners{constructor(_player){_defineProperty$1(this,"firstTouch",()=>{const {player}=this;const {elements}=player;player.touch=true;toggleClass(elements.container,player.config.classNames.isTouch,true);});_defineProperty$1(this,"global",(toggle=true)=>{const {player}=this;if(player.config.keyboard.global)toggleListener.call(player,window,'keydown keyup',this.handleKey,toggle,false);toggleListener.call(player,document.body,'click',this.toggleMenu,toggle);once.call(player,document.body,'touchstart',this.firstTouch);});_defineProperty$1(this,"container",()=>{const {player}=this;const {config,elements,timers}=player;if(!config.keyboard.global&&config.keyboard.focused)on.call(player,elements.container,'keydown keyup',this.handleKey,false);on.call(player,elements.container,'mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen',(event)=>{const {controls:controlsElement}=elements;if(controlsElement&&event.type==='enterfullscreen'){controlsElement.pressed=false;controlsElement.hover=false;}const show=['touchstart','touchmove','mousemove'].includes(event.type);let delay=0;if(show){ui.toggleControls.call(player,true);delay=player.touch?3000:2000;}clearTimeout(timers.controls);timers.controls=setTimeout(()=>ui.toggleControls.call(player,false),delay);});const setGutter=()=>{if(!player.isVimeo||player.config.vimeo.premium)return;const target=elements.wrapper;const {active}=player.fullscreen;const [videoWidth,videoHeight]=getAspectRatio.call(player);const useNativeAspectRatio=supportsCSS(`aspect-ratio: ${videoWidth} / ${videoHeight}`);if(!active){if(useNativeAspectRatio){target.style.width=null;target.style.height=null;}else{target.style.maxWidth=null;target.style.margin=null;}return;}const [viewportWidth,viewportHeight]=getViewportSize();const overflow=viewportWidth/viewportHeight>videoWidth/videoHeight;if(useNativeAspectRatio){target.style.width=overflow?'auto':'100%';target.style.height=overflow?'100%':'auto';}else{target.style.maxWidth=overflow?`${viewportHeight/videoHeight*videoWidth}px`:null;target.style.margin=overflow?'0 auto':null;}};const resized=()=>{clearTimeout(timers.resized);timers.resized=setTimeout(setGutter,50);};on.call(player,elements.container,'enterfullscreen exitfullscreen',(event)=>{const {target}=player.fullscreen;if(target!==elements.container)return;if(!player.isEmbed&&is.empty(player.config.ratio))return;setGutter();const method=event.type==='enterfullscreen'?on:off;method.call(player,window,'resize',resized);});});_defineProperty$1(this,"media",()=>{const {player}=this;const {elements}=player;on.call(player,player.media,'timeupdate seeking seeked',(event)=>controls.timeUpdate.call(player,event));on.call(player,player.media,'durationchange loadeddata loadedmetadata',(event)=>controls.durationUpdate.call(player,event));on.call(player,player.media,'ended',()=>{if(player.isHTML5&&player.isVideo&&player.config.resetOnEnd){player.restart();player.pause();}});on.call(player,player.media,'progress playing seeking seeked',(event)=>controls.updateProgress.call(player,event));on.call(player,player.media,'volumechange',(event)=>controls.updateVolume.call(player,event));on.call(player,player.media,'playing play pause ended emptied timeupdate',(event)=>ui.checkPlaying.call(player,event));on.call(player,player.media,'waiting canplay seeked playing',(event)=>ui.checkLoading.call(player,event));if(player.supported.ui&&player.config.clickToPlay&&!player.isAudio){const wrapper=getElement.call(player,`.${player.config.classNames.video}`);
189if(!is.element(wrapper))return;on.call(player,elements.container,'click',(event)=>{const targets=[elements.container,wrapper];if(!targets.includes(event.target)&&!wrapper.contains(event.target))return;if(player.touch&&player.config.hideControls)return;if(player.ended){this.proxy(event,player.restart,'restart');this.proxy(event,()=>{silencePromise(player.play());},'play');}else this.proxy(event,()=>{silencePromise(player.togglePlay());},'play');});}if(player.supported.ui&&player.config.disableContextMenu)on.call(player,elements.wrapper,'contextmenu',(event)=>{event.preventDefault();},false);on.call(player,player.media,'volumechange',()=>{player.storage.set({volume:player.volume,muted:player.muted});});on.call(player,player.media,'ratechange',()=>{controls.updateSetting.call(player,'speed');player.storage.set({speed:player.speed});});on.call(player,player.media,'qualitychange',(event)=>{controls.updateSetting.call(player,'quality',null,event.detail.quality);});on.call(player,player.media,'ready qualitychange',()=>{controls.setDownloadUrl.call(player);});const proxyEvents=player.config.events.concat(['keyup','keydown']).join(' ');on.call(player,player.media,proxyEvents,(event)=>{let {detail={}}=event;if(event.type==='error')detail=player.media.error;triggerEvent.call(player,elements.container,event.type,true,detail);});});_defineProperty$1(this,"proxy",(event,defaultHandler,customHandlerKey)=>{const {player}=this;const customHandler=player.config.listeners[customHandlerKey];const hasCustomHandler=is.function(customHandler);let returned=true;if(hasCustomHandler)returned=customHandler.call(player,event);if(returned!==false&&is.function(defaultHandler))defaultHandler.call(player,event);});_defineProperty$1(this,"bind",(element,type,defaultHandler,customHandlerKey,passive=true)=>{const {player}=this;const customHandler=player.config.listeners[customHandlerKey];const hasCustomHandler=is.function(customHandler);on.call(player,element,type,(event)=>this.proxy(event,defaultHandler,customHandlerKey),passive&&!hasCustomHandler);});_defineProperty$1(this,"controls",()=>{const {player}=this;const {elements}=player;const inputEvent=browser.isIE?'change':'input';if(elements.buttons.play)Array.from(elements.buttons.play).forEach((button)=>{this.bind(button,'click',()=>{silencePromise(player.togglePlay());},'play');});this.bind(elements.buttons.restart,'click',player.restart,'restart');this.bind(elements.buttons.rewind,'click',()=>{player.lastSeekTime=Date.now();player.rewind();},'rewind');this.bind(elements.buttons.fastForward,'click',()=>{player.lastSeekTime=Date.now();player.forward();},'fastForward');this.bind(elements.buttons.mute,'click',()=>{player.muted=!player.muted;},'mute');this.bind(elements.buttons.captions,'click',()=>player.toggleCaptions());this.bind(elements.buttons.download,'click',()=>{triggerEvent.call(player,player.media,'download');},'download');this.bind(elements.buttons.fullscreen,'click',()=>{player.fullscreen.toggle();},'fullscreen');this.bind(elements.buttons.pip,'click',()=>{player.pip='toggle';},'pip');this.bind(elements.buttons.airplay,'click',player.airplay,'airplay');this.bind(elements.buttons.settings,'click',(event)=>{event.stopPropagation();event.preventDefault();controls.toggleMenu.call(player,event);},null,false);this.bind(elements.buttons.settings,'keyup',(event)=>{if(![' ','Enter'].includes(event.key))return;if(event.key==='Enter'){controls.focusFirstMenuItem.call(player,null,true);return;}event.preventDefault();event.stopPropagation();controls.toggleMenu.call(player,event);},null,false);this.bind(elements.settings.menu,'keydown',(event)=>{if(event.key==='Escape')controls.toggleMenu.call(player,event);});this.bind(elements.inputs.seek,'mousedown mousemove',(event)=>{const rect=elements.progress.getBoundingClientRect();const percent=100/rect.width*(event.pageX-rect.left);event.currentTarget.setAttribute('seek-value',percent);});this.bind(elements.inputs.seek,'mousedown mouseup keydown keyup touchstart touchend',(event)=>{const seek=event.currentTarget;const attribute='play-on-seeked';if(is.keyboardEvent(event)&&!['ArrowLeft','ArrowRight'].includes(event.key))return;player.lastSeekTime=Date.now();const play=seek.hasAttribute(attribute);const done=['mouseup','touchend','keyup'].includes(event.type);if(play&&done){seek.removeAttribute(attribute);silencePromise(player.play());}else{if(!done&&player.playing){seek.setAttribute(attribute,'');player.pause();}}});if(browser.isIos){const inputs=getElements.call(player,'input[type="range"]');
189Array.from(inputs).forEach((input)=>this.bind(input,inputEvent,(event)=>repaint(event.target)));}this.bind(elements.inputs.seek,inputEvent,(event)=>{const seek=event.currentTarget;let seekTo=seek.getAttribute('seek-value');if(is.empty(seekTo))seekTo=seek.value;seek.removeAttribute('seek-value');player.currentTime=seekTo/seek.max*player.duration;},'seek');this.bind(elements.progress,'mouseenter mouseleave mousemove',(event)=>controls.updateSeekTooltip.call(player,event));this.bind(elements.progress,'mousemove touchmove',(event)=>{const {previewThumbnails}=player;if(previewThumbnails&&previewThumbnails.loaded)previewThumbnails.startMove(event);});this.bind(elements.progress,'mouseleave touchend click',()=>{const {previewThumbnails}=player;if(previewThumbnails&&previewThumbnails.loaded)previewThumbnails.endMove(false,true);});this.bind(elements.progress,'mousedown touchstart',(event)=>{const {previewThumbnails}=player;if(previewThumbnails&&previewThumbnails.loaded)previewThumbnails.startScrubbing(event);});this.bind(elements.progress,'mouseup touchend',(event)=>{const {previewThumbnails}=player;if(previewThumbnails&&previewThumbnails.loaded)previewThumbnails.endScrubbing(event);});if(browser.isWebKit)Array.from(getElements.call(player,'input[type="range"]')).forEach((element)=>{this.bind(element,'input',(event)=>controls.updateRangeFill.call(player,event.target));});if(player.config.toggleInvert&&!is.element(elements.display.duration))this.bind(elements.display.currentTime,'click',()=>{if(player.currentTime===0)return;player.config.invertTime=!player.config.invertTime;controls.timeUpdate.call(player);});this.bind(elements.inputs.volume,inputEvent,(event)=>{player.volume=event.target.value;},'volume');this.bind(elements.controls,'mouseenter mouseleave',(event)=>{elements.controls.hover=!player.touch&&event.type==='mouseenter';});if(elements.fullscreen)Array.from(elements.fullscreen.children).filter((c)=>
189!c.contains(elements.container)).forEach((child)=>{this.bind(child,'mouseenter mouseleave',(event)=>{if(elements.controls)elements.controls.hover=!player.touch&&event.type==='mouseenter';});});this.bind(elements.controls,'mousedown mouseup touchstart touchend touchcancel',(event)=>{elements.controls.pressed=['mousedown','touchstart'].includes(event.type);});this.bind(elements.controls,'focusin',()=>{const {config,timers}=player;toggleClass(elements.controls,config.classNames.noTransition,true);ui.toggleControls.call(player,true);setTimeout(()=>{toggleClass(elements.controls,config.classNames.noTransition,false);},0);const delay=this.touch?3000:4000;clearTimeout(timers.controls);timers.controls=setTimeout(()=>ui.toggleControls.call(player,false),delay);});this.bind(elements.inputs.volume,'wheel',(event)=>{const inverted=event.webkitDirectionInvertedFromDevice;const [x,y]=[event.deltaX,-event.deltaY].map((value)=>inverted?-value:value);const direction=Math.sign(Math.abs(x)>Math.abs(y)?x:y);player.increaseVolume(direction/50);const {volume}=player.media;if(direction===1&&volume<1||direction===-1&&volume>0)event.preventDefault();},'volume',false);});this.player=_player;this.lastKey=null;this.focusTimer=null;this.lastKeyDown=null;this.handleKey=this.handleKey.bind(this);this.toggleMenu=this.toggleMenu.bind(this);this.firstTouch=this.firstTouch.bind(this);}handleKey(event){const {player}=this;const {elements}=player;const {key,type,altKey,ctrlKey,metaKey,shiftKey}=event;const pressed=type==='keydown';const repeat=pressed&&key===this.lastKey;if(altKey||ctrlKey||metaKey||shiftKey)return;if(!key)return;const seekByIncrement=(increment)=>{player.currentTime=player.duration/10*increment;};if(pressed){const focused=document.activeElement;if(is.element(focused)){const {editable}=player.config.selectors;const {seek}=elements.inputs;if(focused!==seek&&matches(focused,editable))return;if(event.key===' '&&matches(focused,'button, [role^="menuitem"]'))return;}const preventDefault=[' ','ArrowLeft','ArrowUp','ArrowRight','ArrowDown','0','1','2','3','4','5','6','7','8','9','c','f','k','l','m'];if(preventDefault.includes(key)){event.preventDefault();event.stopPropagation();}switch(key){case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8':case '9':if(!repeat)seekByIncrement(parseInt(key,10));break;case ' ':case 'k':if(!repeat)silencePromise(player.togglePlay());break;case 'ArrowUp':player.increaseVolume(0.1);break;case 'ArrowDown':player.decreaseVolume(0.1);break;case 'm':if(!repeat)player.muted=!player.muted;break;case 'ArrowRight':player.forward();break;case 'ArrowLeft':player.rewind();break;case 'f':player.fullscreen.toggle();break;case 'c':if(!repeat)player.toggleCaptions();break;case 'l':player.loop=!player.loop;break;}if(key==='Escape'&&!player.fullscreen.usingNative&&player.fullscreen.active)player.fullscreen.toggle();this.lastKey=key;}else this.lastKey=null;}toggleMenu(event){controls.toggleMenu.call(this.player,event);}}var loadjs_umd=createCommonjsModule(function(module,exports){(function(root,factory){{module.exports=factory();}})(commonjsGlobal,function(){var devnull=function(){},bundleIdCache={},bundleResultCache={},bundleCallbackQueue={};function subscribe(bundleIds,callbackFn){bundleIds=bundleIds.push?bundleIds:[bundleIds];var depsNotFound=[],i=bundleIds.length,numWaiting=i,fn,bundleId,r,q;fn=function(bundleId,pathsNotFound){if(pathsNotFound.length)depsNotFound.push(bundleId);numWaiting--;if(!numWaiting)callbackFn(depsNotFound);};while(i--){bundleId=bundleIds[i];r=bundleResultCache[bundleId];if(r){fn(bundleId,r);continue;}q=bundleCallbackQueue[bundleId]=bundleCallbackQueue[bundleId]||[];q.push(fn);}}function publish(bundleId,pathsNotFound){if(!bundleId)return;var q=bundleCallbackQueue[bundleId];bundleResultCache[bundleId]=pathsNotFound;if(!q)return;while(q.length){q[0](bundleId,pathsNotFound);q.splice(0,1);}}function executeCallbacks(args,depsNotFound){if(args.call)args={success:args};if(depsNotFound.length)(args.error||devnull)(depsNotFound);else (args.success||devnull)(args);}function loadFile(path,callbackFn,args,numTries){var doc=document,async=args.async,maxTries=(args.numRetries||0)+1,beforeCallbackFn=args.before||devnull,pathname=path.replace(/[\?|#].*$/,''),pathStripped=path.replace(/^(css|img)!/,''),isLegacyIECss,e;numTries=numTries||0;if(/(^css!|\.css$)/.test(pathname)){e=doc.createElement('link');e.rel='stylesheet';e.href=pathStripped;isLegacyIECss='hideFocus' in e;if(isLegacyIECss&&e.relList){isLegacyIECss=0;e.rel='preload';e.as='style';}}else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(pathname)){e=doc.createElement('img');e.src=pathStripped;}else{e=doc.createElement('script');e.src=path;e.async=async===undefined?true:async;}e.onload=e.onerror=e.onbeforeload=function(ev){var result=ev.type[0];if(isLegacyIECss)try{if(!e.sheet.cssText.length)result='e';}
189catch(x){if(x.code!=18)result='e';}if(result=='e'){numTries+=1;if(numTries<maxTries)return loadFile(path,callbackFn,args,numTries);}else{if(e.rel=='preload'&&e.as=='style')return e.rel='stylesheet';}callbackFn(path,result,ev.defaultPrevented);};if(beforeCallbackFn(path,e)!==false)doc.head.appendChild(e);}function loadFiles(paths,callbackFn,args){paths=paths.push?paths:[paths];var numWaiting=paths.length,x=numWaiting,pathsNotFound=[],fn,i;fn=function(path,result,defaultPrevented){if(result=='e')pathsNotFound.push(path);if(result=='b')if(defaultPrevented)pathsNotFound.push(path);else return;numWaiting--;if(!numWaiting)callbackFn(pathsNotFound);};for(i=0;i<x;i++)loadFile(paths[i],fn,args);}function loadjs(paths,arg1,arg2){var bundleId,args;if(arg1&&arg1.trim)bundleId=arg1;args=(bundleId?arg2:arg1)||{};if(bundleId)if(bundleId in bundleIdCache)throw "LoadJS";else bundleIdCache[bundleId]=true;function loadFn(resolve,reject){loadFiles(paths,function(pathsNotFound){executeCallbacks(args,pathsNotFound);if(resolve)executeCallbacks({success:resolve,error:reject},pathsNotFound);publish(bundleId,pathsNotFound);},args);}if(args.returnPromise)return new Promise(loadFn);else loadFn();}loadjs.ready=function ready(deps,args){subscribe(deps,function(depsNotFound){executeCallbacks(args,depsNotFound);});return loadjs;};loadjs.done=function done(bundleId){publish(bundleId,[]);};loadjs.reset=function reset(){bundleIdCache={};bundleResultCache={};bundleCallbackQueue={};};loadjs.isDefined=function isDefined(bundleId){return bundleId in bundleIdCache;};return loadjs;});});function loadScript(url){return new Promise((resolve,reject)=>{loadjs_umd(url,{success:resolve,error:reject});});}function parseId$1(url){if(is.empty(url))return null;if(is.number(Number(url)))return url;const regex=/^.*(vimeo.com\/|video\/)(\d+).*/;return url.match(regex)?RegExp.$2:url;}function parseHash(url){const regex=/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/;const found=url.match(regex);return found&&found.length===5?found[4]:null;}function assurePlaybackState$1(play){if(play&&!this.embed.hasPlayed)this.embed.hasPlayed=true;if(this.media.paused===play){this.media.paused=!play;triggerEvent.call(this,this.media,play?'play':'pause');}}const vimeo={setup(){const player=this;toggleClass(player.elements.wrapper,player.config.classNames.embed,true);player.options.speed=player.config.speed.options;setAspectRatio.call(player);if(!is.object(window.Vimeo))loadScript(player.config.urls.vimeo.sdk).then(()=>{vimeo.ready.call(player);}).catch((error)=>{player.debug.warn('Vimeo SDK (player.js) failed to load',error);});else vimeo.ready.call(player);},ready(){const player=this;const config=player.config.vimeo;const {premium,referrerPolicy,...frameParams}=config;let source=player.media.getAttribute('src');let hash='';if(is.empty(source)){source=player.media.getAttribute(player.config.attributes.embed.id);hash=player.media.getAttribute(player.config.attributes.embed.hash);}else hash=parseHash(source);const hashParam=hash?{h:hash}:{};if(premium)Object.assign(frameParams,{controls:false,sidedock:false});const params=buildUrlParams({loop:player.config.loop.active,autoplay:player.autoplay,muted:player.muted,gesture:'media',playsinline:player.config.playsinline,...hashParam,...frameParams});const id=parseId$1(source);const iframe=createElement('iframe');const src=format(player.config.urls.vimeo.iframe,id,params);iframe.setAttribute('src',src);
189iframe.setAttribute('allowfullscreen','');iframe.setAttribute('allow',['autoplay','fullscreen','picture-in-picture','encrypted-media','accelerometer','gyroscope'].join('; '));if(!is.empty(referrerPolicy))iframe.setAttribute('referrerPolicy',referrerPolicy);if(premium||!config.customControls){iframe.setAttribute('data-poster',player.poster);player.media=replaceElement(iframe,player.media);}else{const wrapper=createElement('div',{class:player.config.classNames.embedContainer,'data-poster':player.poster});wrapper.appendChild(iframe);player.media=replaceElement(wrapper,player.media);}if(!config.customControls)fetch(format(player.config.urls.vimeo.api,src)).then((response)=>{if(is.empty(response)||!response.thumbnail_url)return;ui.setPoster.call(player,response.thumbnail_url).catch(()=>{});});player.embed=new window.Vimeo.Player(iframe,{autopause:player.config.autopause,muted:player.muted});player.media.paused=true;player.media.currentTime=0;if(player.supported.ui)player.embed.disableTextTrack();player.media.play=()=>{assurePlaybackState$1.call(player,true);return player.embed.play();};player.media.pause=()=>{assurePlaybackState$1.call(player,false);return player.embed.pause();};player.media.stop=()=>{player.pause();player.currentTime=0;};let {currentTime}=player.media;Object.defineProperty(player.media,'currentTime',{get(){return currentTime;},set(time){const {embed,media,paused,volume}=player;const restorePause=paused&&!embed.hasPlayed;media.seeking=true;triggerEvent.call(player,media,'seeking');Promise.resolve(restorePause&&embed.setVolume(0)).then(()=>embed.setCurrentTime(time)).then(()=>restorePause&&embed.pause()).then(()=>restorePause&&embed.setVolume(volume)).catch(()=>{});}});let speed=player.config.speed.selected;Object.defineProperty(player.media,'playbackRate',{get(){return speed;},set(input){player.embed.setPlaybackRate(input).then(()=>{speed=input;triggerEvent.call(player,player.media,'ratechange');}).catch(()=>{player.options.speed=[1];});}});let {volume}=player.config;Object.defineProperty(player.media,'volume',{get(){return volume;},set(input){player.embed.setVolume(input).then(()=>{volume=input;triggerEvent.call(player,player.media,'volumechange');});}});let {muted}=player.config;Object.defineProperty(player.media,'muted',{get(){return muted;},set(input){const toggle=is.boolean(input)?input:false;player.embed.setMuted(toggle?true:player.config.muted).then(()=>{muted=toggle;triggerEvent.call(player,player.media,'volumechange');});}});let {loop}=player.config;Object.defineProperty(player.media,'loop',{get(){return loop;},set(input){const toggle=is.boolean(input)?input:player.config.loop.active;player.embed.setLoop(toggle).then(()=>{loop=toggle;});}});let currentSrc;player.embed.getVideoUrl().then((value)=>{currentSrc=value;controls.setDownloadUrl.call(player);}).catch((error)=>{this.debug.warn(error);});Object.defineProperty(player.media,'currentSrc',{get(){return currentSrc;}});Object.defineProperty(player.media,'ended',{get(){return player.currentTime===player.duration;}});Promise.all([player.embed.getVideoWidth(),player.embed.getVideoHeight()]).then((dimensions)=>{const [width,height]=dimensions;player.embed.ratio=roundAspectRatio(width,height);setAspectRatio.call(this);});player.embed.setAutopause(player.config.autopause).then((state)=>{player.config.autopause=state;});player.embed.getVideoTitle().then((title)=>{player.config.title=title;ui.setTitle.call(this);});player.embed.getCurrentTime().then((value)=>{currentTime=value;triggerEvent.call(player,player.media,'timeupdate');});player.embed.getDuration().then((value)=>{player.media.duration=value;triggerEvent.call(player,player.media,'durationchange');});player.embed.getTextTracks().then((tracks)=>{player.media.textTracks=tracks;captions.setup.call(player);});player.embed.on('cuechange',({cues=[]})=>{const strippedCues=cues.map((cue)=>stripHTML(cue.text));captions.updateCues.call(player,strippedCues);});player.embed.on('loaded',()=>{player.embed.getPaused().then((paused)=>{assurePlaybackState$1.call(player,!paused);if(!paused)triggerEvent.call(player,player.media,'playing');});
189if(is.element(player.embed.element)&&player.supported.ui){const frame=player.embed.element;frame.setAttribute('tabindex',-1);}});player.embed.on('bufferstart',()=>{triggerEvent.call(player,player.media,'waiting');});player.embed.on('bufferend',()=>{triggerEvent.call(player,player.media,'playing');});player.embed.on('play',()=>{assurePlaybackState$1.call(player,true);triggerEvent.call(player,player.media,'playing');});player.embed.on('pause',()=>{assurePlaybackState$1.call(player,false);});player.embed.on('timeupdate',(data)=>{player.media.seeking=false;currentTime=data.seconds;triggerEvent.call(player,player.media,'timeupdate');});player.embed.on('progress',(data)=>{player.media.buffered=data.percent;triggerEvent.call(player,player.media,'progress');if(parseInt(data.percent,10)===1)triggerEvent.call(player,player.media,'canplaythrough');player.embed.getDuration().then((value)=>{if(value!==player.media.duration){player.media.duration=value;triggerEvent.call(player,player.media,'durationchange');}});});player.embed.on('seeked',()=>{player.media.seeking=false;triggerEvent.call(player,player.media,'seeked');});player.embed.on('ended',()=>{player.media.paused=true;triggerEvent.call(player,player.media,'ended');});player.embed.on('error',(detail)=>{player.media.error=detail;triggerEvent.call(player,player.media,'error');});if(config.customControls)setTimeout(()=>ui.build.call(player),0);}};function parseId(url){if(is.empty(url))return null;const regex=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/;return url.match(regex)?RegExp.$2:url;}function assurePlaybackState(play){if(play&&!this.embed.hasPlayed)this.embed.hasPlayed=true;if(this.media.paused===play){this.media.paused=!play;triggerEvent.call(this,this.media,play?'play':'pause');}}function getHost(config){if(config.noCookie)return 'https://www.youtube-nocookie.com';if(window.location.protocol==='http:')return 'http://www.youtube.com';return undefined;}const youtube={setup(){toggleClass(this.elements.wrapper,this.config.classNames.embed,true);if(is.object(window.YT)&&is.function(window.YT.Player))youtube.ready.call(this);else{const callback=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{if(is.function(callback))callback();youtube.ready.call(this);};loadScript(this.config.urls.youtube.sdk).catch((error)=>{this.debug.warn('YouTube API failed to load',error);});}},getTitle(videoId){const url=format(this.config.urls.youtube.api,videoId);fetch(url).then((data)=>{if(is.object(data)){const {title,height,width}=data;this.config.title=title;ui.setTitle.call(this);this.embed.ratio=roundAspectRatio(width,height);}setAspectRatio.call(this);}).catch(()=>{setAspectRatio.call(this);});},ready(){const player=this;const config=player.config.youtube;const currentId=player.media&&player.media.getAttribute('id');if(!is.empty(currentId)&&currentId.startsWith('youtube-'))return;let source=player.media.getAttribute('src');if(is.empty(source))source=player.media.getAttribute(this.config.attributes.embed.id);const videoId=parseId(source);const id=generateId(player.provider);const container=createElement('div',{id,'data-poster':config.customControls?player.poster:undefined});player.media=replaceElement(container,player.media);if(config.customControls){const posterSrc=(s)=>`https://i.ytimg.com/vi/${videoId}/${s}default.jpg`;loadImage(posterSrc('maxres'),121).catch(()=>
189loadImage(posterSrc('sd'),121)).catch(()=>loadImage(posterSrc('hq'))).then((image)=>ui.setPoster.call(player,image.src)).then((src)=>{if(!src.includes('maxres'))player.elements.poster.style.backgroundSize='cover';}).catch(()=>{});}player.embed=new window.YT.Player(player.media,{videoId,host:getHost(config),playerVars:extend({},{autoplay:player.config.autoplay?1:0,hl:player.config.hl,controls:player.supported.ui&&config.customControls?0:1,disablekb:1,playsinline:player.config.playsinline&&!player.config.fullscreen.iosNative?1:0,cc_load_policy:player.captions.active?1:0,cc_lang_pref:player.config.captions.language,widget_referrer:window?window.location.href:null},config),events:{onError(event){if(!player.media.error){const code=event.data;const message={2:'The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.',5:'The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.',100:'The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.',101:'The owner of the requested video does not allow it to be played in embedded players.',150:'The owner of the requested video does not allow it to be played in embedded players.'}[code]||'An unknown error occurred';player.media.error={code,message};triggerEvent.call(player,player.media,'error');}},onPlaybackRateChange(event){const instance=event.target;player.media.playbackRate=instance.getPlaybackRate();triggerEvent.call(player,player.media,'ratechange');},onReady(event){if(is.function(player.media.play))return;const instance=event.target;youtube.getTitle.call(player,videoId);player.media.play=()=>{assurePlaybackState.call(player,true);instance.playVideo();};player.media.pause=()=>{assurePlaybackState.call(player,false);instance.pauseVideo();};player.media.stop=()=>{instance.stopVideo();};player.media.duration=instance.getDuration();player.media.paused=true;player.media.currentTime=0;Object.defineProperty(player.media,'currentTime',{get(){return Number(instance.getCurrentTime());},set(time){if(player.paused&&!player.embed.hasPlayed)player.embed.mute();player.media.seeking=true;triggerEvent.call(player,player.media,'seeking');instance.seekTo(time);}});Object.defineProperty(player.media,'playbackRate',{get(){return instance.getPlaybackRate();},set(input){instance.setPlaybackRate(input);}});let {volume}=player.config;Object.defineProperty(player.media,'volume',{get(){return volume;},set(input){volume=input;instance.setVolume(volume*100);triggerEvent.call(player,player.media,'volumechange');}});let {muted}=player.config;Object.defineProperty(player.media,'muted',{get(){return muted;},set(input){const toggle=is.boolean(input)?input:muted;muted=toggle;instance[toggle?'mute':'unMute']();instance.setVolume(volume*100);triggerEvent.call(player,player.media,'volumechange');}});Object.defineProperty(player.media,'currentSrc',{get(){return instance.getVideoUrl();}});Object.defineProperty(player.media,'ended',{get(){return player.currentTime===player.duration;}});const speeds=instance.getAvailablePlaybackRates();player.options.speed=speeds.filter((s)=>player.config.speed.options.includes(s));if(player.supported.ui&&config.customControls)player.media.setAttribute('tabindex',-1);triggerEvent.call(player,player.media,'timeupdate');triggerEvent.call(player,player.media,'durationchange');clearInterval(player.timers.buffering);player.timers.buffering=setInterval(()=>{player.media.buffered=instance.getVideoLoadedFraction();if(player.media.lastBuffered===null||player.media.lastBuffered<player.media.buffered)triggerEvent.call(player,player.media,'progress');player.media.lastBuffered=player.media.buffered;if(player.media.buffered===1){clearInterval(player.timers.buffering);triggerEvent.call(player,player.media,'canplaythrough');}},200);if(config.customControls)setTimeout(()=>ui.build.call(player),50);},onStateChange(event){const instance=event.target;clearInterval(player.timers.playing);const seeked=player.media.seeking&&[1,2].includes(event.data);if(seeked){player.media.seeking=false;triggerEvent.call(player,player.media,'seeked');}switch(event.data){case -1:triggerEvent.call(player,player.media,'timeupdate');player.media.buffered=instance.getVideoLoadedFraction();triggerEvent.call(player,player.media,'progress');break;case 0:assurePlaybackState.call(player,false);
189if(player.media.loop){instance.stopVideo();instance.playVideo();}else triggerEvent.call(player,player.media,'ended');break;case 1:if(config.customControls&&!player.config.autoplay&&player.media.paused&&!player.embed.hasPlayed)player.media.pause();else{assurePlaybackState.call(player,true);triggerEvent.call(player,player.media,'playing');player.timers.playing=setInterval(()=>{triggerEvent.call(player,player.media,'timeupdate');},50);if(player.media.duration!==instance.getDuration()){player.media.duration=instance.getDuration();triggerEvent.call(player,player.media,'durationchange');}}break;case 2:if(!player.muted)player.embed.unMute();assurePlaybackState.call(player,false);break;case 3:triggerEvent.call(player,player.media,'waiting');break;}triggerEvent.call(player,player.elements.container,'statechange',false,{code:event.data});}}});}};const media={setup(){if(!this.media){this.debug.warn('No media element found!');return;}toggleClass(this.elements.container,this.config.classNames.type.replace('{0}',this.type),true);toggleClass(this.elements.container,this.config.classNames.provider.replace('{0}',this.provider),true);if(this.isEmbed)toggleClass(this.elements.container,this.config.classNames.type.replace('{0}','video'),true);if(this.isVideo){this.elements.wrapper=createElement('div',{class:this.config.classNames.video});wrap(this.media,this.elements.wrapper);this.elements.poster=createElement('div',{class:this.config.classNames.poster});this.elements.wrapper.appendChild(this.elements.poster);}if(this.isHTML5)html5.setup.call(this);else if(this.isYouTube)youtube.setup.call(this);else{if(this.isVimeo)vimeo.setup.call(this);}}};const destroy=(instance)=>{if(instance.manager)instance.manager.destroy();if(instance.elements.displayContainer)instance.elements.displayContainer.destroy();instance.elements.container.remove();};class Ads{constructor(player){_defineProperty$1(this,"load",()=>{if(!this.enabled)return;if(!is.object(window.google)||!is.object(window.google.ima))loadScript(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready();}).catch(()=>{this.trigger('error',new Error('Google IMA SDK failed to load'));});else this.ready();});_defineProperty$1(this,"ready",()=>{if(!this.enabled)destroy(this);this.startSafetyTimer(12000,'ready()');this.managerPromise.then(()=>{this.clearSafetyTimer('onAdsManagerLoaded()');});this.listeners();this.setupIMA();});_defineProperty$1(this,"setupIMA",()=>{this.elements.container=createElement('div',{class:this.player.config.classNames.ads});this.player.elements.container.appendChild(this.elements.container);google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED);google.ima.settings.setLocale(this.player.config.ads.language);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline);this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media);this.loader=new google.ima.AdsLoader(this.elements.displayContainer);this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(event)=>this.onAdsManagerLoaded(event),false);this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(error)=>this.onAdError(error),false);this.requestAds();});_defineProperty$1(this,"requestAds",()=>{const {container}=this.player.elements;try{const request=new google.ima.AdsRequest();request.adTagUrl=this.tagUrl;request.linearAdSlotWidth=container.offsetWidth;request.linearAdSlotHeight=container.offsetHeight;request.nonLinearAdSlotWidth=container.offsetWidth;request.nonLinearAdSlotHeight=container.offsetHeight;request.forceNonLinearFullSlot=false;request.setAdWillPlayMuted(!this.player.muted);this.loader.requestAds(request);}catch(error){this.onAdError(error);}});_defineProperty$1(this,"pollCountdown",(start=false)=>{if(!start){clearInterval(this.countdownTimer);this.elements.container.removeAttribute('data-badge-text');return;}const update=()=>{const time=formatTime(Math.max(this.manager.getRemainingTime(),0));const label=`${i18n.get('advertisement',this.player.config)} - ${time}`;this.elements.container.setAttribute('data-badge-text',label);};this.countdownTimer=setInterval(update,100);});_defineProperty$1(this,"onAdsManagerLoaded",(event)=>{if(!this.enabled)return;const settings=new google.ima.AdsRenderingSettings();settings.restoreCustomPlaybackStateOnAdBreakComplete=true;settings.enablePreloading=true;this.manager=event.getAdsManager(this.player,settings);this.cuePoints=this.manager.getCuePoints();this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(error)=>this.onAdError(error));Object.keys(google.ima.AdEvent.Type).forEach((type)=>{this.manager.addEventListener(google.ima.AdEvent.Type[type],(e)=>this.onAdEvent(e));});this.trigger('loaded');});_defineProperty$1(this,"addCuePoints",()=>
189{if(!is.empty(this.cuePoints))this.cuePoints.forEach((cuePoint)=>{if(cuePoint!==0&&cuePoint!==-1&&cuePoint<this.player.duration){const seekElement=this.player.elements.progress;if(is.element(seekElement)){const cuePercentage=100/this.player.duration*cuePoint;const cue=createElement('span',{class:this.player.config.classNames.cues});cue.style.left=`${cuePercentage.toString()}%`;seekElement.appendChild(cue);}}});});_defineProperty$1(this,"onAdEvent",(event)=>{const {container}=this.player.elements;const ad=event.getAd();const adData=event.getAdData();const dispatchEvent=(type)=>{triggerEvent.call(this.player,this.player.media,`ads${type.replace(/_/g,'').toLowerCase()}`);};dispatchEvent(event.type);switch(event.type){case google.ima.AdEvent.Type.LOADED:this.trigger('loaded');this.pollCountdown(true);if(!ad.isLinear()){ad.width=container.offsetWidth;ad.height=container.offsetHeight;}break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:if(this.player.ended)this.loadAds();else this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown();this.resumeContent();break;case google.ima.AdEvent.Type.LOG:if(adData.adError)this.player.debug.warn(`Non-fatal ad error: ${adData.adError.getMessage()}`);break;}});_defineProperty$1(this,"onAdError",(event)=>{this.cancel();this.player.debug.warn('Ads error',event);});_defineProperty$1(this,"listeners",()=>{const {container}=this.player.elements;let time;this.player.on('canplay',()=>{this.addCuePoints();});this.player.on('ended',()=>{this.loader.contentComplete();});this.player.on('timeupdate',()=>{time=this.player.currentTime;});this.player.on('seeked',()=>{const seekedTime=this.player.currentTime;if(is.empty(this.cuePoints))return;this.cuePoints.forEach((cuePoint,index)=>{if(time<cuePoint&&cuePoint<seekedTime){this.manager.discardAdBreak();this.cuePoints.splice(index,1);}});});window.addEventListener('resize',()=>{if(this.manager)this.manager.resize(container.offsetWidth,container.offsetHeight,google.ima.ViewMode.NORMAL);});});_defineProperty$1(this,"play",()=>{const {container}=this.player.elements;if(!this.managerPromise)this.resumeContent();this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume);this.elements.displayContainer.initialize();try{if(!this.initialized){this.manager.init(container.offsetWidth,container.offsetHeight,google.ima.ViewMode.NORMAL);this.manager.start();}this.initialized=true;}catch(adError){this.onAdError(adError);}}).catch(()=>{});});_defineProperty$1(this,"resumeContent",()=>{this.elements.container.style.zIndex='';this.playing=false;silencePromise(this.player.media.play());});_defineProperty$1(this,"pauseContent",()=>{this.elements.container.style.zIndex=3;this.playing=true;this.player.media.pause();});_defineProperty$1(this,"cancel",()=>{if(this.initialized)this.resumeContent();this.trigger('error');this.loadAds();});_defineProperty$1(this,"loadAds",()=>{this.managerPromise.then(()=>{if(this.manager)this.manager.destroy();this.managerPromise=new Promise((resolve)=>{this.on('loaded',resolve);this.player.debug.log(this.manager);});this.initialized=false;this.requestAds();}).catch(()=>{});});_defineProperty$1(this,"trigger",(event,...args)=>{const handlers=this.events[event];if(is.array(handlers))handlers.forEach((handler)=>{if(is.function(handler))handler.apply(this,args);});});_defineProperty$1(this,"on",(event,callback)=>{if(!is.array(this.events[event]))this.events[event]=[];this.events[event].push(callback);return this;});_defineProperty$1(this,"startSafetyTimer",(time,from)=>{this.player.debug.log(`Safety timer invoked from: ${from}`);this.safetyTimer=setTimeout(()=>{this.cancel();this.clearSafetyTimer('startSafetyTimer()');},time);});_defineProperty$1(this,"clearSafetyTimer",(from)=>{if(!is.nullOrUndefined(this.safetyTimer)){this.player.debug.log(`Safety timer cleared from: ${from}`);clearTimeout(this.safetyTimer);this.safetyTimer=null;}}
189);this.player=player;this.config=player.config.ads;this.playing=false;this.initialized=false;this.elements={container:null,displayContainer:null};this.manager=null;this.loader=null;this.cuePoints=null;this.events={};this.safetyTimer=null;this.countdownTimer=null;this.managerPromise=new Promise((resolve,reject)=>{this.on('loaded',resolve);this.on('error',reject);});this.load();}get enabled(){const {config}=this;return this.player.isHTML5&&this.player.isVideo&&config.enabled&&(!is.empty(config.publisherId)||is.url(config.tagUrl));}get tagUrl(){const {config}=this;if(is.url(config.tagUrl))return config.tagUrl;const params={AV_PUBLISHERID:'58c25bb0073ef448b1087ad6',AV_CHANNELID:'5a0458dc28a06145e4519d21',AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:config.publisherId};const base='https://go.aniview.com/api/adserver6/vast/';return `${base}?${buildUrlParams(params)}`;}}function clamp(input=0,min=0,max=255){return Math.min(Math.max(input,min),max);}const parseVtt=(vttDataString)=>{const processedList=[];const frames=vttDataString.split(/\r\n\r\n|\n\n|\r\r/);frames.forEach((frame)=>{const result={};const lines=frame.split(/\r\n|\n|\r/);lines.forEach((line)=>{if(!is.number(result.startTime)){const matchTimes=line.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);if(matchTimes){result.startTime=Number(matchTimes[1]||0)*60*60+Number(matchTimes[2])*60+Number(matchTimes[3])+Number(`0.${matchTimes[4]}`);result.endTime=Number(matchTimes[6]||0)*60*60+Number(matchTimes[7])*60+Number(matchTimes[8])+Number(`0.${matchTimes[9]}`);}}else{if(!is.empty(line.trim())&&is.empty(result.text)){const lineSplit=line.trim().split('#xywh=');[result.text]=lineSplit;if(lineSplit[1])[result.x,result.y,result.w,result.h]=lineSplit[1].split(',');}}});if(result.text)processedList.push(result);});return processedList;};const fitRatio=(ratio,outer)=>{const targetRatio=outer.width/outer.height;const result={};if(ratio>targetRatio){result.width=outer.width;result.height=1/ratio*outer.width;}else{result.height=outer.height;result.width=ratio*outer.height;}return result;};class PreviewThumbnails{constructor(player){_defineProperty$1(this,"load",()=>{if(this.player.elements.display.seekTooltip)this.player.elements.display.seekTooltip.hidden=this.enabled;if(!this.enabled)return;this.getThumbnails().then(()=>{if(!this.enabled)return;this.render();this.determineContainerAutoSizing();this.listeners();this.loaded=true;});});_defineProperty$1(this,"getThumbnails",()=>{return new Promise((resolve)=>{const {src}=this.player.config.previewThumbnails;if(is.empty(src))throw new Error('Missing previewThumbnails.src config attribute');const sortAndResolve=()=>{this.thumbnails.sort((x,y)=>x.height-y.height);this.player.debug.log('Preview thumbnails',this.thumbnails);resolve();};if(is.function(src))src((thumbnails)=>{this.thumbnails=thumbnails;sortAndResolve();});else{const urls=is.string(src)?[src]:src;const promises=urls.map((u)=>this.getThumbnail(u));Promise.all(promises).then(sortAndResolve);}});});_defineProperty$1(this,"getThumbnail",(url)=>{return new Promise((resolve)=>{fetch(url).then((response)=>{const thumbnail={frames:parseVtt(response),height:null,urlPrefix:''};if(!thumbnail.frames[0].text.startsWith('/')&&!thumbnail.frames[0].text.startsWith('http://')&&!thumbnail.frames[0].text.startsWith('https://'))thumbnail.urlPrefix=url.substring(0,url.lastIndexOf('/')+1);const tempImage=new Image();tempImage.onload=()=>{thumbnail.height=tempImage.naturalHeight;thumbnail.width=tempImage.naturalWidth;this.thumbnails.push(thumbnail);resolve();};tempImage.src=thumbnail.urlPrefix+thumbnail.frames[0].text;});});});_defineProperty$1(this,"startMove",(event)=>{if(!this.loaded)return;if(!is.event(event)||!['touchmove','mousemove'].includes(event.type))return;if(!this.player.media.duration)return;if(event.type==='touchmove')this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var _this$player$config$m,_this$player$config$m2;const clientRect=this.player.elements.progress.getBoundingClientRect();const percentage=100/clientRect.width*(event.pageX-clientRect.left);this.seekTime=this.player.media.duration*(percentage/100);if(this.seekTime<0)this.seekTime=0;
189if(this.seekTime>this.player.media.duration-1)this.seekTime=this.player.media.duration-1;this.mousePosX=event.pageX;this.elements.thumb.time.innerText=formatTime(this.seekTime);const point=(_this$player$config$m=this.player.config.markers)===null||_this$player$config$m===void 0?void 0:(_this$player$config$m2=_this$player$config$m.points)===null||_this$player$config$m2===void 0?void 0:_this$player$config$m2.find(({time:t})=>t===Math.round(this.seekTime));if(point)this.elements.thumb.time.insertAdjacentHTML('afterbegin',`${point.label}<br>`);}this.showImageAtCurrentTime();});_defineProperty$1(this,"endMove",()=>{this.toggleThumbContainer(false,true);});_defineProperty$1(this,"startScrubbing",(event)=>{if(is.nullOrUndefined(event.button)||event.button===false||event.button===0){this.mouseDown=true;if(this.player.media.duration){this.toggleScrubbingContainer(true);this.toggleThumbContainer(false,true);this.showImageAtCurrentTime();}}});_defineProperty$1(this,"endScrubbing",()=>{this.mouseDown=false;if(Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime))this.toggleScrubbingContainer(false);else once.call(this.player,this.player.media,'timeupdate',()=>{if(!this.mouseDown)this.toggleScrubbingContainer(false);});});_defineProperty$1(this,"listeners",()=>{this.player.on('play',()=>{this.toggleThumbContainer(false,true);});this.player.on('seeked',()=>{this.toggleThumbContainer(false);});this.player.on('timeupdate',()=>{this.lastTime=this.player.media.currentTime;});});_defineProperty$1(this,"render",()=>{this.elements.thumb.container=createElement('div',{class:this.player.config.classNames.previewThumbnails.thumbContainer});this.elements.thumb.imageContainer=createElement('div',{class:this.player.config.classNames.previewThumbnails.imageContainer});this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const timeContainer=createElement('div',{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=createElement('span',{},'00:00');timeContainer.appendChild(this.elements.thumb.time);this.elements.thumb.imageContainer.appendChild(timeContainer);if(is.element(this.player.elements.progress))this.player.elements.progress.appendChild(this.elements.thumb.container);this.elements.scrubbing.container=createElement('div',{class:this.player.config.classNames.previewThumbnails.scrubbingContainer});this.player.elements.wrapper.appendChild(this.elements.scrubbing.container);});_defineProperty$1(this,"destroy",()=>{if(this.elements.thumb.container)this.elements.thumb.container.remove();if(this.elements.scrubbing.container)this.elements.scrubbing.container.remove();});_defineProperty$1(this,"showImageAtCurrentTime",()=>{if(this.mouseDown)this.setScrubbingContainerSize();else this.setThumbContainerSizeAndPos();const thumbNum=this.thumbnails[0].frames.findIndex((frame)=>this.seekTime>=frame.startTime&&this.seekTime<=frame.endTime);const hasThumb=thumbNum>=0;let qualityIndex=0;if(!this.mouseDown)this.toggleThumbContainer(hasThumb);if(!hasThumb)return;this.thumbnails.forEach((thumbnail,index)=>{if(this.loadedImages.includes(thumbnail.frames[thumbNum].text))qualityIndex=index;});if(thumbNum!==this.showingThumb){this.showingThumb=thumbNum;this.loadImage(qualityIndex);}});_defineProperty$1(this,"loadImage",(qualityIndex=0)=>{const thumbNum=this.showingThumb;const thumbnail=this.thumbnails[qualityIndex];const {urlPrefix}=thumbnail;const frame=thumbnail.frames[thumbNum];const thumbFilename=thumbnail.frames[thumbNum].text;const thumbUrl=urlPrefix+thumbFilename;if(!this.currentImageElement||this.currentImageElement.dataset.filename!==thumbFilename){if(this.loadingImage&&this.usingSprites)this.loadingImage.onload=null;const previewImage=new Image();previewImage.src=thumbUrl;previewImage.dataset.index=thumbNum;previewImage.dataset.filename=thumbFilename;this.showingThumbFilename=thumbFilename;this.player.debug.log(`Loading image: ${thumbUrl}`);previewImage.onload=()=>this.showImage(previewImage,frame,qualityIndex,thumbNum,thumbFilename,true);this.loadingImage=previewImage;this.removeOldImages(previewImage);}else{this.showImage(this.currentImageElement,frame,qualityIndex,thumbNum,thumbFilename,false);this.currentImageElement.dataset.index=thumbNum;this.removeOldImages(this.currentImageElement);}});_defineProperty$1(this,"showImage",(previewImage,frame,qualityIndex,thumbNum,thumbFilename,newImage=true)=>{this.player.debug.log(`Showing thumb: ${thumbFilename}. num: ${thumbNum}. qual: ${qualityIndex}. newimg: ${newImage}`);this.setImageSizeAndOffset(previewImage,frame);if(newImage){this.currentImageContainer.appendChild(previewImage);this.currentImageElement=previewImage;if(!this.loadedImages.includes(thumbFilename))this.loadedImages.push(thumbFilename);}this.preloadNearby(thumbNum,true).then(this.preloadNearby(thumbNum,false)).then(this.getHigherQuality(qualityIndex,previewImage,frame,thumbFilename));});_defineProperty$1(this,"removeOldImages",(currentImage)=>
189{Array.from(this.currentImageContainer.children).forEach((image)=>{if(image.tagName.toLowerCase()!=='img')return;const removeDelay=this.usingSprites?500:1000;if(image.dataset.index!==currentImage.dataset.index&&!image.dataset.deleting){image.dataset.deleting=true;const {currentImageContainer}=this;setTimeout(()=>{currentImageContainer.removeChild(image);this.player.debug.log(`Removing thumb: ${image.dataset.filename}`);},removeDelay);}});});_defineProperty$1(this,"preloadNearby",(thumbNum,forward=true)=>{return new Promise((resolve)=>{setTimeout(()=>{const oldThumbFilename=this.thumbnails[0].frames[thumbNum].text;if(this.showingThumbFilename===oldThumbFilename){let thumbnailsClone;if(forward)thumbnailsClone=this.thumbnails[0].frames.slice(thumbNum);else thumbnailsClone=this.thumbnails[0].frames.slice(0,thumbNum).reverse();let foundOne=false;thumbnailsClone.forEach((frame)=>{const newThumbFilename=frame.text;if(newThumbFilename!==oldThumbFilename)if(!this.loadedImages.includes(newThumbFilename)){foundOne=true;this.player.debug.log(`Preloading thumb filename: ${newThumbFilename}`);const {urlPrefix}=this.thumbnails[0];const thumbURL=urlPrefix+newThumbFilename;const previewImage=new Image();previewImage.src=thumbURL;previewImage.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${newThumbFilename}`);if(!this.loadedImages.includes(newThumbFilename))this.loadedImages.push(newThumbFilename);resolve();};}});if(!foundOne)resolve();}},300);});});_defineProperty$1(this,"getHigherQuality",(currentQualityIndex,previewImage,frame,thumbFilename)=>{if(currentQualityIndex<this.thumbnails.length-1){let previewImageHeight=previewImage.naturalHeight;if(this.usingSprites)previewImageHeight=frame.h;if(previewImageHeight<this.thumbContainerHeight)setTimeout(()=>{if(this.showingThumbFilename===thumbFilename){this.player.debug.log(`Showing higher quality thumb for: ${thumbFilename}`);this.loadImage(currentQualityIndex+1);}},300);}});_defineProperty$1(this,"toggleThumbContainer",(toggle=false,clearShowing=false)=>{const className=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(className,toggle);if(!toggle&&clearShowing){this.showingThumb=null;this.showingThumbFilename=null;}});_defineProperty$1(this,"toggleScrubbingContainer",(toggle=false)=>{const className=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(className,toggle);if(!toggle){this.showingThumb=null;this.showingThumbFilename=null;}});_defineProperty$1(this,"determineContainerAutoSizing",()=>{if(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)this.sizeSpecifiedInCSS=true;});_defineProperty$1(this,"setThumbContainerSizeAndPos",()=>{const {imageContainer}=this.elements.thumb;if(!this.sizeSpecifiedInCSS){const thumbWidth=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);imageContainer.style.height=`${this.thumbContainerHeight}px`;imageContainer.style.width=`${thumbWidth}px`;}else if(imageContainer.clientHeight>20&&imageContainer.clientWidth<20){const thumbWidth=Math.floor(imageContainer.clientHeight*this.thumbAspectRatio);imageContainer.style.width=`${thumbWidth}px`;}else{if(imageContainer.clientHeight<20&&imageContainer.clientWidth>20){const thumbHeight=Math.floor(imageContainer.clientWidth/this.thumbAspectRatio);imageContainer.style.height=`${thumbHeight}px`;}}this.setThumbContainerPos();});_defineProperty$1(this,"setThumbContainerPos",()=>{const scrubberRect=this.player.elements.progress.getBoundingClientRect();const containerRect=this.player.elements.container.getBoundingClientRect();const {container}=this.elements.thumb;const min=containerRect.left-scrubberRect.left+10;const max=containerRect.right-scrubberRect.left-container.clientWidth-10;const position=this.mousePosX-scrubberRect.left-container.clientWidth/2;const clamped=clamp(position,min,max);container.style.left=`${clamped}px`;container.style.setProperty('--preview-arrow-offset',`${position-clamped}px`);});_defineProperty$1(this,"setScrubbingContainerSize",()=>{const {width,height}=fitRatio(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${width}px`;this.elements.scrubbing.container.style.height=`${height}px`;});_defineProperty$1(this,"setImageSizeAndOffset",(previewImage,frame)=>{if(!this.usingSprites)return;const multiplier=this.thumbContainerHeight/frame.h;previewImage.style.height=`${previewImage.naturalHeight*multiplier}px`;
189previewImage.style.width=`${previewImage.naturalWidth*multiplier}px`;previewImage.style.left=`-${frame.x*multiplier}px`;previewImage.style.top=`-${frame.y*multiplier}px`;});this.player=player;this.thumbnails=[];this.loaded=false;this.lastMouseMoveTime=Date.now();this.mouseDown=false;this.loadedImages=[];this.elements={thumb:{},scrubbing:{}};this.load();}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled;}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer;}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes('w');}get thumbAspectRatio(){if(this.usingSprites)return this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h;return this.thumbnails[0].width/this.thumbnails[0].height;}get thumbContainerHeight(){if(this.mouseDown){const {height}=fitRatio(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return height;}if(this.sizeSpecifiedInCSS)return this.elements.thumb.imageContainer.clientHeight;return Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4);}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement;}set currentImageElement(element){if(this.mouseDown)this.currentScrubbingImageElement=element;else this.currentThumbnailImageElement=element;}}const source={insertElements(type,attributes){if(is.string(attributes))insertElement(type,this.media,{src:attributes});else{if(is.array(attributes))attributes.forEach((attribute)=>{insertElement(type,this.media,attribute);});}},change(input){if(!getDeep(input,'sources.length')){this.debug.warn('Invalid source format');return;}html5.cancelRequests.call(this);this.destroy.call(this,()=>{this.options.quality=[];removeElement(this.media);this.media=null;if(is.element(this.elements.container))this.elements.container.removeAttribute('class');const {sources,type}=input;const [{provider=providers.html5,src}]=sources;const tagName=provider==='html5'?type:'div';const attributes=provider==='html5'?{}:{src};Object.assign(this,{provider,type,supported:support.check(type,provider,this.config.playsinline),media:createElement(tagName,attributes)});this.elements.container.appendChild(this.media);if(is.boolean(input.autoplay))this.config.autoplay=input.autoplay;if(this.isHTML5){if(this.config.crossorigin)this.media.setAttribute('crossorigin','');if(this.config.autoplay)this.media.setAttribute('autoplay','');if(!is.empty(input.poster))this.poster=input.poster;if(this.config.loop.active)this.media.setAttribute('loop','');if(this.config.muted)this.media.setAttribute('muted','');if(this.config.playsinline)this.media.setAttribute('playsinline','');}ui.addStyleHook.call(this);if(this.isHTML5)source.insertElements.call(this,'source',sources);this.config.title=input.title;media.setup.call(this);if(this.isHTML5)if(Object.keys(input).includes('tracks'))source.insertElements.call(this,'track',input.tracks);if(this.isHTML5||this.isEmbed&&!this.supported.ui)ui.build.call(this);if(this.isHTML5)this.media.load();if(!is.empty(input.previewThumbnails)){Object.assign(this.config.previewThumbnails,input.previewThumbnails);if(this.previewThumbnails&&this.previewThumbnails.loaded){this.previewThumbnails.destroy();this.previewThumbnails=null;}if(this.config.previewThumbnails.enabled)this.previewThumbnails=new PreviewThumbnails(this);}this.fullscreen.update();},true);}};class Plyr{constructor(target,options){_defineProperty$1(this,"play",()=>{if(!is.function(this.media.play))return null;if(this.ads&&this.ads.enabled)this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>silencePromise(this.media.play()));return this.media.play();});_defineProperty$1(this,"pause",()=>{if(!this.playing||!is.function(this.media.pause))return null;return this.media.pause();});_defineProperty$1(this,"togglePlay",(input)=>{const toggle=is.boolean(input)?input:!this.playing;if(toggle)return this.play();return this.pause();});_defineProperty$1(this,"stop",()=>{if(this.isHTML5){this.pause();this.restart();}else{if(is.function(this.media.stop))this.media.stop();}});_defineProperty$1(this,"restart",()=>{this.currentTime=0;});_defineProperty$1(this,"rewind",(seekTime)=>{this.currentTime-=is.number(seekTime)?seekTime:this.config.seekTime;});_defineProperty$1(this,"forward",(seekTime)=>{this.currentTime+=is.number(seekTime)?seekTime:this.config.seekTime;});_defineProperty$1(this,"increaseVolume",(step)=>{const volume=this.media.muted?0:this.volume;this.volume=volume+(is.number(step)?step:0);});_defineProperty$1(this,"decreaseVolume",(step)=>{this.increaseVolume(-step);});_defineProperty$1(this,"airplay",()=>{if(support.airplay)this.media.webkitShowPlaybackTargetPicker();});_defineProperty$1(this,"toggleControls",(toggle)=>{if(this.supported.ui&&!this.isAudio){const isHidden=hasClass(this.elements.container,this.config.classNames.hideControls);const force=typeof toggle==='undefined'?undefined:!toggle;const hiding=toggleClass(this.elements.container,this.config.classNames.hideControls,force);
189if(hiding&&is.array(this.config.controls)&&this.config.controls.includes('settings')&&!is.empty(this.config.settings))controls.toggleMenu.call(this,false);if(hiding!==isHidden){const eventName=hiding?'controlshidden':'controlsshown';triggerEvent.call(this,this.media,eventName);}return !hiding;}return false;});_defineProperty$1(this,"on",(event,callback)=>{on.call(this,this.elements.container,event,callback);});_defineProperty$1(this,"once",(event,callback)=>{once.call(this,this.elements.container,event,callback);});_defineProperty$1(this,"off",(event,callback)=>{off(this.elements.container,event,callback);});_defineProperty$1(this,"destroy",(callback,soft=false)=>{if(!this.ready)return;const done=()=>{document.body.style.overflow='';this.embed=null;if(soft){if(Object.keys(this.elements).length){removeElement(this.elements.buttons.play);removeElement(this.elements.captions);removeElement(this.elements.controls);removeElement(this.elements.wrapper);this.elements.buttons.play=null;this.elements.captions=null;this.elements.controls=null;this.elements.wrapper=null;}if(is.function(callback))callback();}else{unbindListeners.call(this);html5.cancelRequests.call(this);replaceElement(this.elements.original,this.elements.container);triggerEvent.call(this,this.elements.original,'destroyed',true);if(is.function(callback))callback.call(this.elements.original);this.ready=false;setTimeout(()=>{this.elements=null;this.media=null;},200);}};this.stop();clearTimeout(this.timers.loading);clearTimeout(this.timers.controls);clearTimeout(this.timers.resized);if(this.isHTML5){ui.toggleNativeControls.call(this,true);done();}else if(this.isYouTube){clearInterval(this.timers.buffering);clearInterval(this.timers.playing);if(this.embed!==null&&is.function(this.embed.destroy))this.embed.destroy();done();}else{if(this.isVimeo){if(this.embed!==null)this.embed.unload().then(done);setTimeout(done,200);}}});_defineProperty$1(this,"supports",(type)=>support.mime.call(this,type));this.timers={};this.ready=false;this.loading=false;this.failed=false;this.touch=support.touch;this.media=target;if(is.string(this.media))this.media=document.querySelectorAll(this.media);if(window.jQuery&&this.media instanceof jQuery||is.nodeList(this.media)||is.array(this.media))this.media=this.media[0];this.config=extend({},defaults,Plyr.defaults,options||{},(()=>{try{return JSON.parse(this.media.getAttribute('data-plyr-config'));}catch(_){return {};}})());this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}};this.captions={active:null,currentTrack:-1,meta:new WeakMap()};this.fullscreen={active:false};this.options={speed:[],quality:[]};this.debug=new Console(this.config.debug);this.debug.log('Config',this.config);this.debug.log('Support',support);if(is.nullOrUndefined(this.media)||!is.element(this.media)){this.debug.error('Setup failed: no suitable element passed');return;}if(this.media.plyr){this.debug.warn('Target already setup');return;}if(!this.config.enabled){this.debug.error('Setup failed: disabled by config');return;}if(!support.check().api){this.debug.error('Setup failed: no support');return;}const clone=this.media.cloneNode(true);clone.autoplay=false;this.elements.original=clone;const _type=this.media.tagName.toLowerCase();let iframe=null;let url=null;switch(_type){case 'div':iframe=this.media.querySelector('iframe');if(is.element(iframe)){url=parseUrl(iframe.getAttribute('src'));this.provider=getProviderByUrl(url.toString());this.elements.container=this.media;this.media=iframe;this.elements.container.className='';if(url.search.length){const truthy=['1','true'];if(truthy.includes(url.searchParams.get('autoplay')))this.config.autoplay=true;if(truthy.includes(url.searchParams.get('loop')))this.config.loop.active=true;if(this.isYouTube){this.config.playsinline=truthy.includes(url.searchParams.get('playsinline'));this.config.youtube.hl=url.searchParams.get('hl');}else this.config.playsinline=true;}}else{this.provider=this.media.getAttribute(this.config.attributes.embed.provider);this.media.removeAttribute(this.config.attributes.embed.provider);}if(is.empty(this.provider)||!Object.values(providers).includes(this.provider)){this.debug.error('Setup failed: Invalid provider');return;}this.type=types.video;break;case 'video':case 'audio':this.type=_type;this.provider=providers.html5;if(this.media.hasAttribute('crossorigin'))this.config.crossorigin=true;
189if(this.media.hasAttribute('autoplay'))this.config.autoplay=true;if(this.media.hasAttribute('playsinline')||this.media.hasAttribute('webkit-playsinline'))this.config.playsinline=true;if(this.media.hasAttribute('muted'))this.config.muted=true;if(this.media.hasAttribute('loop'))this.config.loop.active=true;break;default:this.debug.error('Setup failed: unsupported type');return;}this.supported=support.check(this.type,this.provider);if(!this.supported.api){this.debug.error('Setup failed: no support');return;}this.eventListeners=[];this.listeners=new Listeners(this);this.storage=new Storage(this);this.media.plyr=this;if(!is.element(this.elements.container)){this.elements.container=createElement('div');wrap(this.media,this.elements.container);}ui.migrateStyles.call(this);ui.addStyleHook.call(this);media.setup.call(this);if(this.config.debug)on.call(this,this.elements.container,this.config.events.join(' '),(event)=>{this.debug.log(`event: ${event.type}`);});this.fullscreen=new Fullscreen(this);if(this.isHTML5||this.isEmbed&&!this.supported.ui)ui.build.call(this);this.listeners.container();this.listeners.global();if(this.config.ads.enabled)this.ads=new Ads(this);if(this.isHTML5&&this.config.autoplay)this.once('canplay',()=>silencePromise(this.play()));this.lastSeekTime=0;if(this.config.previewThumbnails.enabled)this.previewThumbnails=new PreviewThumbnails(this);}get isHTML5(){return this.provider===providers.html5;}get isEmbed(){return this.isYouTube||this.isVimeo;}get isYouTube(){return this.provider===providers.youtube;}get isVimeo(){return this.provider===providers.vimeo;}get isVideo(){return this.type===types.video;}get isAudio(){return this.type===types.audio;}get playing(){return Boolean(this.ready&&!this.paused&&!this.ended);}get paused(){return Boolean(this.media.paused);}get stopped(){return Boolean(this.paused&&this.currentTime===0);}get ended(){return Boolean(this.media.ended);}set currentTime(input){if(!this.duration)return;const inputIsValid=is.number(input)&&input>0;this.media.currentTime=inputIsValid?Math.min(input,this.duration):0;this.debug.log(`Seeking to ${this.currentTime} seconds`);}get currentTime(){return Number(this.media.currentTime);}get buffered(){const {buffered}=this.media;if(is.number(buffered))return buffered;if(buffered&&buffered.length&&this.duration>0)return buffered.end(0)/this.duration;return 0;}get seeking(){return Boolean(this.media.seeking);}get duration(){const fauxDuration=parseFloat(this.config.duration);const realDuration=(this.media||{}).duration;const duration=!is.number(realDuration)||realDuration===Infinity?0:realDuration;return fauxDuration||duration;}set volume(value){let volume=value;const max=1;const min=0;if(is.string(volume))volume=Number(volume);if(!is.number(volume))volume=this.storage.get('volume');if(!is.number(volume))({volume}=this.config);if(volume>max)volume=max;if(volume<min)volume=min;this.config.volume=volume;this.media.volume=volume;if(!is.empty(value)&&this.muted&&volume>0)this.muted=false;}get volume(){return Number(this.media.volume);}set muted(mute){let toggle=mute;if(!is.boolean(toggle))toggle=this.storage.get('muted');if(!is.boolean(toggle))toggle=this.config.muted;this.config.muted=toggle;this.media.muted=toggle;}get muted(){return Boolean(this.media.muted);}get hasAudio(){if(!this.isHTML5)return true;if(this.isAudio)return true;return Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length);}set speed(input){let speed=null;if(is.number(input))speed=input;if(!is.number(speed))speed=this.storage.get('speed');if(!is.number(speed))speed=this.config.speed.selected;const {minimumSpeed:min,maximumSpeed:max}=this;speed=clamp(speed,min,max);this.config.speed.selected=speed;setTimeout(()=>{if(this.media)this.media.playbackRate=speed;},0);}get speed(){return Number(this.media.playbackRate);}get minimumSpeed(){if(this.isYouTube)return Math.min(...this.options.speed);if(this.isVimeo)return 0.5;return 0.0625;}get maximumSpeed(){if(this.isYouTube)return Math.max(...this.options.speed);if(this.isVimeo)return 2;return 16;}set quality(input){const config=this.config.quality;const options=this.options.quality;if(!options.length)return;let quality=[!is.empty(input)&&Number(input),this.storage.get('quality'),config.selected,config.default].find(is.number);let updateStorage=true;if(!options.includes(quality)){const value=closest(options,quality);this.debug.warn(`Unsupported quality option: ${quality}, using ${value} instead`);quality=value;updateStorage=false;}config.selected=quality;this.media.quality=quality;if(updateStorage)this.storage.set({quality});}get quality(){return this.media.quality;}set loop(input){const toggle=is.boolean(input)?input:this.config.loop.active;this.config.loop.active=toggle;this.media.loop=toggle;}get loop(){return Boolean(this.media.loop);}set source(input){source.change.call(this,input);}get source(){return this.media.currentSrc;}get download(){const {download}=this.config.urls;return is.url(download)?download:this.source;}set download(input){if(!is.url(input))return;this.config.urls.download=input;controls.setDownloadUrl.call(this);}set poster(input){if(!this.isVideo){this.debug.warn('Poster can only be set for video');return;}ui.setPoster.call(this,input,false).catch(()=>{});}get poster(){if(!this.isVideo)return null;return this.media.getAttribute('poster')||this.media.getAttribute('data-poster');}get ratio(){if(!this.isVideo)return null;const ratio=reduceAspectRatio(getAspectRatio.call(this));return is.array(ratio)?ratio.join(':'):ratio;}set ratio(input){if(!this.isVideo){this.debug.warn('Aspect ratio can only be set for video');return;}if(!is.string(input)||!validateAspectRatio(input)){this.debug.error(`Invalid aspect ratio specified (${input})`);return;}this.config.ratio=reduceAspectRatio(input);
189setAspectRatio.call(this);}set autoplay(input){this.config.autoplay=is.boolean(input)?input:this.config.autoplay;}get autoplay(){return Boolean(this.config.autoplay);}toggleCaptions(input){captions.toggle.call(this,input,false);}set currentTrack(input){captions.set.call(this,input,false);captions.setup.call(this);}get currentTrack(){const {toggled,currentTrack}=this.captions;return toggled?currentTrack:-1;}set language(input){captions.setLanguage.call(this,input,false);}get language(){return (captions.getCurrentTrack.call(this)||{}).language;}set pip(input){if(!support.pip)return;const toggle=is.boolean(input)?input:!this.pip;if(is.function(this.media.webkitSetPresentationMode))this.media.webkitSetPresentationMode(toggle?pip.active:pip.inactive);if(is.function(this.media.requestPictureInPicture))if(!this.pip&&toggle)this.media.requestPictureInPicture();else{if(this.pip&&!toggle)document.exitPictureInPicture();}}get pip(){if(!support.pip)return null;if(!is.empty(this.media.webkitPresentationMode))return this.media.webkitPresentationMode===pip.active;return this.media===document.pictureInPictureElement;}setPreviewThumbnails(thumbnailSource){if(this.previewThumbnails&&this.previewThumbnails.loaded){this.previewThumbnails.destroy();this.previewThumbnails=null;}Object.assign(this.config.previewThumbnails,thumbnailSource);if(this.config.previewThumbnails.enabled)this.previewThumbnails=new PreviewThumbnails(this);}static supported(type,provider){return support.check(type,provider);}static loadSprite(url,id){return loadSprite(url,id);}static setup(selector,options={}){let targets=null;if(is.string(selector))targets=Array.from(document.querySelectorAll(selector));else if(is.nodeList(selector))targets=Array.from(selector);else{if(is.array(selector))targets=selector.filter(is.element);}if(is.empty(targets))return null;return targets.map((t)=>new Plyr(t,options));}}Plyr.defaults=cloneDeep(defaults);return Plyr;}));;
190(function($,Drupal,drupalSettings,datalayer){Drupal.behaviors.rcc_video={attach:function(context,settings){var _this=this;loadVideoJs(_this,context,settings);document.addEventListener('scroll',function(){loadVideoJs(_this,context,settings);},{passive:true});},destroy:function(event){var player=event.detail.plyr;player.destroy();},pauseAllPlaying:function(){var allPlayers=drupalSettings.rcc_video.plyrPlayers;Object.keys(allPlayers).forEach(function(key){var isPlaying=((allPlayers[key].player||{}).playing||false);if(isPlaying)allPlayers[key].player.pause();});},pauseAllPlayingExceptOne:function(playerId){var allPlayers=drupalSettings.rcc_video.plyrPlayers;Object.keys(allPlayers).forEach(function(key){if(typeof allPlayers[key].player!=='undefined'&&allPlayers[key].player!==null){if(playerId===allPlayers[key].player.id||!allPlayers[key].player.playing)return;allPlayers[key].player.pause();}});},stopAllPlaying:function(){var allPlayers=drupalSettings.rcc_video.plyrPlayers;Object.keys(allPlayers).forEach(function(key){if(allPlayers[key].player.playing)allPlayers[key].player.stop();});},defaultEventHandlers:{playing:function(event){Drupal.behaviors.rcc_video.pauseAllPlayingExceptOne(event.detail.plyr.id);$(event.target).addClass('plyr--started');var isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent);if(isMobile)event.detail.plyr.fullscreen.enter();},pause:function(event){var player=event.detail.plyr,videoName=player.config.title||player.extra.title;datalayer.push({event:'Video',eventCategory:'Video',eventAction:'Paused Video',eventLabel:'Video Name: '+videoName,eventValue:undefined,eventOrigin:'front-end',eventVars:{videoName}});},play:function(event){var player=event.detail.plyr,videoName=player.config.title||player.extra.title;var trackingData={event:'Video',eventCategory:'Video',eventAction:'Started Playing Video',eventLabel:'Video Name: '+videoName,eventValue:undefined,eventOrigin:'front-end',eventVars:{videoName}};var watchedPercents=parseInt((player.currentTime/player.duration)*100);if(watchedPercents!==0)trackingData.eventAction='Unpaused Video';datalayer.push(trackingData);},timeupdate:function(event){var player=event.detail.plyr;var watchedPercents=parseInt((player.currentTime/player.duration)*100);player.extra.maxWatchedPercents=player.extra.maxWatchedPercents<watchedPercents?w
190atchedPercents:player.extra.maxWatchedPercents;var percentsToTrack=[25,50,75,100];if(percentsToTrack.includes(watchedPercents)&&watchedPercents===player.extra.maxWatchedPercents){datalayer.push({event:"Video",eventCategory:"Video",eventAction:"Played Video - "+watchedPercents+'%',eventLabel:"Video Name: "+event.detail.plyr.extra.title});player.extra.maxWatchedPercents++;}},seeking:function(event){event.detail.plyr.extra.maxWatchedPercents=0;}}};function loadVideoJs(_this,context,settings){var players=settings.rcc_video.plyrPlayers;Object.keys(players).forEach(function(playerId){var currentPlyr=document.getElementById(playerId.replace('#','').split(' ')[0]);if(!$(playerId,context).length)return;if(isInViewport(currentPlyr)&&!(players[playerId].player)){if(playerId.replace('#','').split(' ')[1]=='video'){var sourceValue=currentPlyr.firstElementChild.currentSrc;players[playerId].player=new Plyr(playerId,players[playerId].options);var mediaElement=players[playerId].player.media;if(mediaElement.attributes[0])if(mediaElement.attributes[0].name=='src'){mediaElement.attributes['src'].value=sourceValue;mediaElement.removeChild(mediaElement.firstElementChild);}}else{var source=players[playerId]['video']['#url'];var query=players[playerId]['video']['#query'];var fragment=players[playerId]['video']['#fragment'];source=!query?source+'?'+query:source;source=!fragment?source+'#'+fragment:source;currentPlyr.firstElementChild.setAttribute('src',source);players[playerId].player=new Plyr(playerId,players[playerId].options);}players[playerId].player.extra=players[playerId].extra;Object.keys(_this.defaultEventHandlers).forEach(function(eventName){players[playerId].player.on(eventName,_this.defaultEventHandlers[eventName]);});var eventData={id:playerId,player:players[playerId].player};var event=new CustomEvent('rcc_plyr_players_ready',{detail:eventData});window.dispatchEvent(event);}else{if(!(isInViewport(currentPlyr))&&!(players[playerId].player)&&(currentPlyr!==null))currentPlyr.firstElementChild.setAttribute('src','');}});}function isInViewport(el){if(el!==null){const rect=el.getBoundingClientRect();return ((rect.top>=0&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight))||(rect.top<0&&rect.bottom>=0)||(rect.top<window.innerHeight&&rect.bottom>window.innerHeight));}}})(jQuery,window.Drupal,window.drupalSettings,window.dataLayer);;
191(($,Drupal,{isTabbable})=>{$.extend($.expr[':'],{tabbable(element){Drupal.deprecationError({message:'The :tabbable selector is deprecated in Drupal 9.2.0 and will be removed in Drupal 11.0.0. Use the core/tabbable library instead. See https://www.drupal.org/node/3183730'});return isTabbable(element);}});})(jQuery,Drupal,window.tabbable);;
192(($)=>{let cachedScrollbarWidth=null;const {max,abs}=Math;const regexHorizontal=/left|center|right/;const regexVertical=/top|center|bottom/;const regexOffset=/[+-]\d+(\.[\d]+)?%?/;const regexPosition=/^\w+/;const _position=$.fn.position;function getOffsets(offsets,width,height){return [parseFloat(offsets[0])*(typeof offsets[0]==='string'&&offsets[0].endsWith('%')?width/100:1),parseFloat(offsets[1])*(typeof offsets[1]==='string'&&offsets[1].endsWith('%')?height/100:1)];}function parseCss(element,property){return parseInt(window.getComputedStyle(element)[property],10)||0;}function getDimensions(elem){const raw=elem[0];if(raw.nodeType===9)return {width:elem.width(),height:elem.height(),offset:{top:0,left:0}};if(!!raw&&raw===raw.window)return {width:elem.width(),height:elem.height(),offset:{top:elem.scrollTop(),left:elem.scrollLeft()}};if(raw.preventDefault)return {width:0,height:0,offset:{top:raw.pageY,left:raw.pageX}};return {width:elem.outerWidth(),height:elem.outerHeight(),offset:elem.offset()};}const collisions={fit:{left(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollLeft:within.offset.left;const outerWidth=within.width;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=withinOffset-collisionPosLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset;let newOverRight;if(data.collisionWidth>outerWidth)if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-withinOffset;position.left+=overLeft-newOverRight;}else if(overRight>
1920&&overLeft<=0)position.left=withinOffset;else if(overLeft>overRight)position.left=withinOffset+outerWidth-data.collisionWidth;else position.left=withinOffset;else if(overLeft>0)position.left+=overLeft;else if(overRight>0)position.left-=overRight;else position.left=max(position.left-collisionPosLeft,position.left);},top(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollTop:within.offset.top;const outerHeight=data.within.height;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=withinOffset-collisionPosTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset;let newOverBottom;if(data.collisionHeight>outerHeight)if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-withinOffset;position.top+=overTop-newOverBottom;}else if(overBottom>0&&overTop<=0)position.top=withinOffset;else if(overTop>overBottom)position.top=withinOffset+outerHeight-data.collisionHeight;else position.top=withinOffset;else if(overTop>0)position.top+=overTop;else if(overBottom>0)position.top-=overBottom;else position.top=max(position.top-collisionPosTop,position.top);}},flip:{left(position,data){const {within}=data;const withinOffset=within.offset.left+within.scrollLeft;const outerWidth=within.width;const offsetLeft=within.isWindow?within.scrollLeft:within.offset.left;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=collisionPosLeft-offsetLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft;const myOffset=data.my[0]==='left'?-data.elemWidth:data.my[0]==='right'?data.elemWidth:0;const atOffset=data.at[0]==='left'?data.targetWidth:data.at[0]==='right'?-data.targetWidth:0;const offset=-2*data.offset[0];let newOverRight;let newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-outerWidth-withinOffset;if(newOverRight<0||newOverRight<abs(overLeft))position.left+=myOffset+atOffset+offset;}else{if(overRight>0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+atOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)<overRight)position.left+=myOffset+atOffset+offset;}}},top(position,data){const {within}=data;const withinOffset=within.offset.top+within.scrollTop;const outerHeight=within.height;const offsetTop=within.isWindow?within.scrollTop:within.offset.top;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=collisionPosTop-offsetTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop;const top=data.my[1]==='top';const myOffset=top?-data.elemHeight:data.my[1]==='bottom'?data.elemHeight:0;const atOffset=data.at[1]==='top'?data.targetHeight:data.at[1]==='bottom'?-data.targetHeight:0;const offset=-2*data.offset[1];let newOverTop;let newOverBottom;if(overTop<0){newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-outerHeight-withinOffset;if(newOverBottom<0||newOverBottom<abs(overTop))position.top+=myOffset+atOffset+offset;}else{if(overBottom>0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+offset-offsetTop;if(newOverTop>0||abs(newOverTop)<overBottom)position.top+=myOffset+atOffset+offset;}}}},flipfit:{left(...args){collisions.flip.left.apply(this,args);collisions.fit.left.apply(this,args);},top(...args){collisions.flip.top.apply(this,args);collisions.fit.top.apply(this,args);}}};$.position={scrollbarWidth(){if(cachedScrollbarWidth!==undefined)return cachedScrollbarWidth;const div=$('<div '+"style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>"+"<div style='height:100px;width:auto;'></div></div>");const innerDiv=div.children()[0];$('body').append(div);const w1=innerDiv.offsetWidth;div[0].style.overflow='scroll';let w2=innerDiv.offsetWidth;if(w1===w2)w2=div[0].clientWidth;div.remove();cachedScrollbarWidth=w1-w2;return cachedScrollbarWidth;},getScrollInfo(within){const overflowX=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-x'];const overflowY=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-y'];const hasOverflowX=overflowX==='scroll'||(overflowX==='auto'&&within.width<within.element[0].scrollWidth);const hasOverflowY=overflowY==='scroll'||(overflowY==='auto'&&within.height<within.element[0].scrollHeight);return {width:hasOverflowY?$.position.scrollbarWidth():0,height:hasOverflowX?$.position.scrollbarWidth():0};},getWithinInfo(element){const withinElement=$(element||window);const isWindow=!!withinElement[0]&&withinElement[0]===withinElement[0].window;const isDocument=!!withinElement[0]&&withinElement[0].nodeType===9;const hasOffset=!isWindow&&!isDocument;return {element:withinElement,isWindow,isDocument,offset:hasOffset?$(element).offset():{left:0,top:0},scrollLeft:withinElement.scrollLeft(),scrollTop:withinElement.scrollTop(),width:withinElement.outerWidth(),height:withinElement.outerHeight()};}};$.fn.position=function(options){if(!options||!options.of)return _position.apply(this,arguments);options=$.extend({},options);const within=$.position.getWithinInfo(options.within);const scrollInfo=$.position.getScrollInfo(within);const collision=(options.collision||'flip').split(' ');const offsets={};const target=typeof options.of==='string'?$(document).find(options.of):$(options.of);const dimensions=getDimensions(target);const targetWidth=dimensions.width;const targetHeight=dimensions.height;const targetOffset=dimensions.offset;if(target[0].preventDefault)options.at='left top';const basePosition=$.extend({},targetOffset);$.each(['my','at'],function(){let pos=(options[this]||'').split(' ');
192if(pos.length===1)pos=regexHorizontal.test(pos[0])?pos.concat(['center']):regexVertical.test(pos[0])?['center'].concat(pos):['center','center'];pos[0]=regexHorizontal.test(pos[0])?pos[0]:'center';pos[1]=regexVertical.test(pos[1])?pos[1]:'center';const horizontalOffset=regexOffset.exec(pos[0]);const verticalOffset=regexOffset.exec(pos[1]);offsets[this]=[horizontalOffset?horizontalOffset[0]:0,verticalOffset?verticalOffset[0]:0];options[this]=[regexPosition.exec(pos[0])[0],regexPosition.exec(pos[1])[0]];});if(collision.length===1)collision[1]=collision[0];if(options.at[0]==='right')basePosition.left+=targetWidth;else{if(options.at[0]==='center')basePosition.left+=targetWidth/2;}if(options.at[1]==='bottom')basePosition.top+=targetHeight;else{if(options.at[1]==='center')basePosition.top+=targetHeight/2;}const atOffset=getOffsets(offsets.at,targetWidth,targetHeight);basePosition.left+=atOffset[0];basePosition.top+=atOffset[1];return this.each(function(){let using;const elem=$(this);const elemWidth=elem.outerWidth();const elemHeight=elem.outerHeight();const marginLeft=parseCss(this,'marginLeft');const marginTop=parseCss(this,'marginTop');const collisionWidth=elemWidth+marginLeft+parseCss(this,'marginRight')+scrollInfo.width;const collisionHeight=elemHeight+marginTop+parseCss(this,'marginBottom')+scrollInfo.height;const position=$.extend({},basePosition);const myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());if(options.my[0]==='right')position.left-=elemWidth;else{if(options.my[0]==='center')position.left-=elemWidth/2;}if(options.my[1]==='bottom')position.top-=elemHeight;else{if(options.my[1]==='center')position.top-=elemHeight/2;}position.left+=myOffset[0];position.top+=myOffset[1];const collisionPosition={marginLeft,marginTop};$.each(['left','top'],function(i,dir){if(collisions[collision[i]])collisions[collision[i]][dir](position,{targetWidth,targetHeight,elemWidth,elemHeight,collisionPosition,collisionWidth,collisionHeight,offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],my:options.my,at:options.at,within,elem});});if(options.using)using=function(props){const left=targetOffset.left-position.left;const right=left+targetWidth-elemWidth;const top=targetOffset.top-position.top;const bottom=top+targetHeight-elemHeight;const feedback={target:{element:target,left:targetOffset.left,top:targetOffset.top,width:targetWidth,height:targetHeight},element:{element:elem,left:position.left,top:position.top,width:elemWidth,height:elemHeight},horizontal:right<0?'left':left>0?'right':'center',vertical:bottom<0?'top':top>0?'bottom':'middle'};if(targetWidth<elemWidth&&abs(left+right)<targetWidth)feedback.horizontal='center';if(targetHeight<elemHeight&&abs(top+bottom)<targetHeight)feedback.vertical='middle';if(max(abs(left),abs(right))>max(abs(top),abs(bottom)))feedback.important='horizontal';else feedback.important='vertical';options.using.call(this,props,feedback);};elem.offset($.extend(position,{using}));});};if(!$.hasOwnProperty('ui'))$.ui={};$.ui.position=collisions;})(jQuery);;
193(($,Drupal,drupalSettings,once)=>{if(!Drupal.autocomplete)return;const autocomplete={};autocomplete.getSettings=(input,globalSettings)=>{globalSettings=globalSettings||drupalSettings||{};const settings={auto_submit:false,delay:0,min_length:1,selector:':submit'};const search=$(input).data('search-api-autocomplete-search');if(search&&globalSettings.search_api_autocomplete&&globalSettings.search_api_autocomplete[search])$.extend(settings,globalSettings.search_api_autocomplete[search]);return settings;};Drupal.behaviors.searchApiAutocomplete={attach(context,settings){const s='.ui-autocomplete-input[data-search-api-autocomplete-search]';$(once('search-api-autocomplete',s,context)).each(function foreach(){const uiAutocomplete=$(this).data('ui-autocomplete');if(!uiAutocomplete)return;const $element=uiAutocomplete.menu.element;$element.data('search-api-autocomplete-input-id',this.id);$element.addClass('search-api-autocomplete-search');$element.attr('tabindex','-1');const elementSettings=autocomplete.getSettings(this,settings);if(elementSettings.delay)uiAutocomplete.options.delay=elementSettings.delay;if(elementSettings.min_length)uiAutocomplete.options.minLength=elementSettings.min_length;const oldSelect=uiAutocomplete.options.select;uiAutocomplete.options.select=function select(event,ui,...args){if(ui.item.url){if(event.keyCode===9)return false;window.location.href=ui.item.url;return false;}const ret=oldSelect.apply(this,[event,ui,...args]);if(elementSettings.auto_submit&&elementSettings.selector)$(elementSettings.selector,this.form).trigger('click');return ret;};});}};Drupal.SearchApiAutocomplete=autocomplete;})(jQuery,Drupal,drupalSettings,once);;
194(function($,Drupal,once){'use strict';Drupal.behaviors.simplePopupBlocks={attach:function(context,settings){var popup_settings=drupalSettings.simple_popup_blocks.settings,_html=document.documentElement,windowWidth=$(window).width();$.each(popup_settings,function(index,values){if(windowWidth<values.trigger_width)return null;;var modal_class='',block_id=values.identifier,visit_counts_arr=values.visit_counts.split(','),allow_cookie=true,read_cookie='',cookie_val=1,cookie_days=(values.cookie_expiry!==undefined&&values.cookie_expiry!==null)?values.cookie_expiry:100,match=0,css_identity='',spb_popup_id='',modal_close_class='',modal_minimize_class='',modal_minimized_class='',layout_class='',class_exists=false,delays='',browser_close_trigger=true,use_time_frequency=values.use_time_frequency,time_frequency=values.time_frequency,time_frequency_cookie=0,next_popup=0,current_timestamp=0,show_minimized_button=values.show_minimized_button,show_model=true;if(visit_counts_arr.length==1&&visit_counts_arr[0]==0&&use_time_frequency==0)allow_cookie=false;var element=document.getElementById(block_id);if(typeof (element)!='undefined'&&element!=null)if(allow_cookie==true)if(use_time_frequency==0){read_cookie=readCookie('spb_'+block_id);if(read_cookie){cookie_val=+read_cookie+1;createCookie('spb_'+block_id,cookie_val,cookie_days);}else createCookie('spb_'+block_id,cookie_val,cookie_days);cookie_val=cookie_val.toString();match=$.inArray(cookie_val,visit_counts_arr);if(match===-1)show_model=false;}else{time_frequency_cookie=readCookie('spb_time'+block_id);current_timestamp=Math.floor(Date.now()/1000);next_popup=current_timestamp+parseInt(time_frequency,10);if(time_frequency_cookie){if(current_timestamp>=time_frequency_cookie)match=1;else if(next_popup<=time_frequency_cookie)match=1;else{match=-1;show_model=false;}if(match===1)createCookie('spb_time'+block_id,next_popup,cookie_days);}else createCookie('spb_time'+block_id,next_popup,cookie_days);}css_identity='.';if(values.css_selector==1)css_identity='#';spb_popup_id='spb-'+block_id;modal_class=block_id+'-modal';modal_close_class=block_id+'-modal-close';modal_minimize_class=block_id+'-modal-minimize';modal_minimized_class=block_id+'-modal-minimized';layout_class='.'+modal_class+' .spb-popup-main-wrapper';
194once('wrap-arround',css_identity+block_id).forEach(function(elem){$(elem).wrap($('<div class="'+modal_class+'"></div>'));});once('hide-popup','.'+modal_class).forEach(function(elem){$(elem).hide();});if($(css_identity+block_id).closest('.spb-popup-main-wrapper').length)return;$(css_identity+block_id).wrap($('<div class="spb-popup-main-wrapper"></div>'));$('.'+modal_class).wrap('<div id="'+spb_popup_id+'" class="simple-popup-blocks-global"></div>');$(css_identity+block_id).before($('<div class="spb-controls"></div>'));class_exists=$('#'+spb_popup_id).hasClass('simple-popup-blocks-global');if(!class_exists)return true;if(values.minimize==="1"){$("#"+spb_popup_id+" .spb-controls").prepend($('<button type="button" aria-label="Dismiss modal" class="'+modal_minimize_class+' spb_minimize">&minus;</button>'));$('.'+modal_class).before($('<button type="button" aria-label="Open modal" class="'+modal_minimized_class+' spb_minimized">&plus;</button>'));}if(values.close==1)$("#"+spb_popup_id+" .spb-controls").prepend($('<button type="button" aria-label="Close modal" class="'+modal_close_class+' spb_close">&times;</button>'));if(values.overlay==1)$('.'+modal_class).addClass('spb_overlay');switch(values.layout){case 0:$(layout_class).addClass('spb_top_left');$(layout_class).css({'width':values.width});break;case '1':$(layout_class).addClass('spb_top_right');$(layout_class).css({'width':values.width});break;case '2':$(layout_class).addClass('spb_bottom_left');$(layout_class).css({'width':values.width});break;case '3':$(layout_class).addClass('spb_bottom_right');$(layout_class).css({'width':values.width});break;case '4':$(layout_class).addClass('spb_center');$(layout_class).css({'width':values.width,'margin-left':-values.width/2});break;case '5':$(layout_class).addClass('spb_top_center');$(layout_class).css({'width':values.width});break;case '6':$(layout_class).addClass('spb_top_bar');$(layout_class).css({});break;case '7':$(layout_class).addClass('spb_bottom_bar');$(layout_class).css({});break;case '8':$(layout_class).addClass('spb_left_bar');$(layout_class).css({'width':values.width});break;case '9':$(layout_class).addClass('spb_right_bar');$(layout_class).css({'width':values.width});break;}if(show_model===true)if(values.trigger_method==0&&values.delay>0){delays=values.delay*1000;$(css_identity+block_id).show();$('.'+modal_class).delay(delays).fadeIn('slow');if(values.overlay==1)setTimeout(stopTheScroll,delays);}else if(values.trigger_method==0){$('.'+modal_class).show();$(css_identity+block_id).show();if(values.overlay==1)stopTheScroll();}else if(values.trigger_method==1)$(document).on('click',values.trigger_selector,function(e){$('.'+modal_class).show();$(css_identity+block_id).show();if(values.overlay==1)stopTheScroll();return false;});else{if(values.trigger_method==2)$(_html).mouseleave(function(e){if(e.clientY>20)return;if(!browser_close_trigger)return;browser_close_trigger=false;$('.'+modal_class).show();$(css_identity+block_id).show();if(values.overlay==1)stopTheScroll();});}$('.'+modal_close_class).click(function(){$('.'+modal_class).hide();startTheScroll();});$('.'+modal_minimize_class).click(function(){$('.'+modal_class).hide();startTheScroll();$('.'+modal_minimized_class).show();});$('.'+modal_minimized_class).click(function(){$('.'+modal_class).show();$(css_identity+block_id).show();if(values.overlay==1)stopTheScroll();if(show_minimized_button==0)$('.'+modal_minimized_class).hide();});if(values.enable_escape==1)$(document).keyup(function(e){if(e.keyCode==27){$('.'+modal_class).hide();startTheScroll();$('.'+modal_minimized_class).show();}});if(show_minimized_button==0)$('.'+modal_minimized_class).hide();});}};function stopTheScroll(){$('body').css({'overflow':'hidden'});$('.simple-popup-blocks-global input:text').focus();}function startTheScroll(){$('body').css({'overflow':''});}function createCookie(name,value,days){if(days>0){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires='; expires='+date.toGMTString();}else var expires='';document.cookie=name+'='+value+expires+'; path=/';}function readCookie(name){var nameEQ=name+'=';var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}return null;}})(jQuery,Drupal,once);;
195/* @license GPL-2.0-or-later https://raw.githubusercontent.com/jquery-form/form/master/LICENSE */
196(function(factory){if(typeof define==='function'&&define.amd)define(['jquery'],factory);else if(typeof module==='object'&&module.exports)module.exports=function(root,jQuery){if(typeof jQuery==='undefined')if(typeof window!=='undefined')jQuery=require('jquery');else jQuery=require('jquery')(root);factory(jQuery);return jQuery;};else factory(jQuery);}(function($){'use strict';var rCRLF=/\r?\n/g;var feature={};feature.fileapi=$('<input type="file">').get(0).files!==undefined;feature.formdata=(typeof window.FormData!=='undefined');var hasProp=!!$.fn.prop;$.fn.attr2=function(){if(!hasProp)return this.attr.apply(this,arguments);var val=this.prop.apply(this,arguments);if((val&&val.jquery)||typeof val==='string')return val;return this.attr.apply(this,arguments);};$.fn.ajaxSubmit=function(options,data,dataType,onSuccess){if(!this.length){log('ajaxSubmit: ski
196pping submit process - no element selected');return this;}var method,action,url,isMsie,iframeSrc,$form=this;if(typeof options==='function')options={success:options};else if(typeof options==='string'||(options===false&&arguments.length>0)){options={'url':options,'data':data,'dataType':dataType};if(typeof onSuccess==='function')options.success=onSuccess;}else{if(typeof options==='undefined')options={};}method=options.method||options.type||this.attr2('method');action=options.url||this.attr2('action');url=(typeof action==='string')?action.trim():'';url=url||window.location.href||'';if(url)url=(url.match(/^([^#]+)/)||[])[1];isMsie=/(MSIE|Trident)/.test(navigator.userAgent||'');iframeSrc=(isMsie&&/^https/i.test(window.location.href||''))?'javascript:false':'about:blank';options=$.extend(true,{url,success:$.ajaxSettings.success,type:method||$.ajaxSettings.type,iframeSrc},options);var veto={};this.trigger('form-pre-serialize',[this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');return this;}if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log('ajaxSubmit: submit aborted via beforeSerialize callback');return this;}var traditional=options.traditional;if(typeof traditional==='undefined')traditional=$.ajaxSettings.traditional;var elements=[];var qx,a=this.formToArray(options.semantic,elements,options.filtering);if(options.data){var optionsData=typeof (options.data)==="function"?options.data(a):options.data;options.extraData=optionsData;qx=$.param(optionsData,traditional);}if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log('ajaxSubmit: submit aborted via beforeSubmit callback');return this;}this.trigger('form-submit-validate',[a,this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-submit-validate trigger');return this;}var q=$.param(a,traditional);if(qx)q=(q?(q+'&'+qx):qx);if(options.type.toUpperCase()==='GET'){options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;options.data=null;}else options.data=q;var callbacks=[];if(options.resetForm)callbacks.push(function(){$form.resetForm();});if(options.clearForm)callbacks.push(function(){$form.clearForm(options.includeHidden);});if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data,textStatus,jqXHR){var successArguments=arguments,fn=options.replaceTarget?'replaceWith':'html';$(options.target)[fn](data).each(function(){oldSuccess.apply(this,successArguments);});});}else{if(options.success)if(Array.isArray(options.success))callbacks=callbacks.concat(options.success);else callbacks.push(options.success);}options.success=function(data,status,xhr){var context=options.context||this;for(var i=0,max=callbacks.length;i<max;i++)callbacks[i].apply(context,[data,status,xhr||$form,$form]);};if(options.error){var oldError=options.error;options.error=function(xhr,status,error){var context=options.context||this;oldError.apply(context,[xhr,status,error,$form]);};}if(options.complete){var oldComplete=options.complete;options.complete=function(xhr,status){var context=options.context||this;oldComplete.apply(context,[xhr,status,$form]);};}var fileInputs=$('input[type=file]:enabled',this).filter(function(){return $(this).val()!=='';});var hasFileInputs=fileInputs.length>0;var mp='multipart/form-data';var multipart=($form.attr('enctype')===mp||$form.attr('encoding')===mp);var fileAPI=feature.fileapi&&feature.formdata;log('fileAPI :'+fileAPI);var shouldUseFrame=(hasFileInputs||multipart)&&!fileAPI;var jqxhr;if(options.iframe!==false&&(options.iframe||shouldUseFrame))if(options.closeKeepAlive)$.get(options.closeKeepAlive,function(){jqxhr=fileUploadIframe(a);});else jqxhr=fileUploadIframe(a);else if((hasFileInputs||multipart)&&fileAPI)jqxhr=fileUploadXhr(a);else jqxhr=$.ajax(options);$form.removeData('jqxhr').data('jqxhr',jqxhr);for(var k=0;k<elements.length;k++)elements[k]=null;this.trigger('form-submit-notify',[this,options]);return this;function deepSerialize(extraData){var serialized=$.param(extraData,options.traditional).split('&');var len=serialized.length;var result=[];var i,part;for(i=0;i<len;i++){serialized[i]=serialized[i].replace(/\+/g,' ');part=serialized[i].split('=');result.push([decodeURIComponent(part[0]),decodeURIComponent(part[1])]);}return result;}function fileUploadXhr(a){var formdata=new FormData();for(var i=0;i<a.length;i++)formdata.append(a[i].name,a[i].value);if(options.extraData){var serializedData=deepSerialize(options.extraData);for(i=0;i<serializedData.length;i++)if(serializedData[i])formdata.append(serializedData[i][0],serializedData[i][1]);}options.data=null;var s=$.extend(true,{},$.ajaxSettings,options,{contentType:false,processData:false,cache:false,type:method||'POST'});if(options.uploadProgress)s.xhr=function(){var xhr=$.ajaxSettings.xhr();if(xhr.upload)xhr.upload.addEventListener('progress',function(event){var percent=0;var position=event.loaded||event.position;var total=event.total;if(event.lengthComputable)percent=Math.ceil(position/total*100);options.uploadProgress(event,position,total,percent);},false);return xhr;};s.data=null;var beforeSend=s.beforeSend;s.beforeSend=function(xhr,o){if(options.formData)o.data=options.formData;else o.data=formdata;
196if(beforeSend)beforeSend.call(this,xhr,o);};return $.ajax(s);}function fileUploadIframe(a){var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle;var deferred=$.Deferred();deferred.abort=function(status){xhr.abort(status);};if(a)for(i=0;i<elements.length;i++){el=$(elements[i]);if(hasProp)el.prop('disabled',false);else el.removeAttr('disabled');}s=$.extend(true,{},$.ajaxSettings,options);s.context=s.context||s;id='jqFormIO'+new Date().getTime();var ownerDocument=form.ownerDocument;var $body=$form.closest('body');if(s.iframeTarget){$io=$(s.iframeTarget,ownerDocument);n=$io.attr2('name');if(!n)$io.attr2('name',id);else id=n;}else{$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'" />',ownerDocument);$io.css({position:'absolute',top:'-1000px',left:'-1000px'});}io=$io[0];xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:'n/a',getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(status){var e=(status==='timeout'?'timeout':'aborted');log('aborting upload... '+e);this.aborted=1;try{if(io.contentWindow.document.execCommand)io.contentWindow.document.execCommand('Stop');}catch(ignore){}$io.attr('src',s.iframeSrc);xhr.error=e;if(s.error)s.error.call(s.context,xhr,e,status);if(g)$.event.trigger('ajaxError',[xhr,s,e]);if(s.complete)s.complete.call(s.context,xhr,e);}};g=s.global;if(g&&$.active++===0)$.event.trigger('ajaxStart');if(g)$.event.trigger('ajaxSend',[xhr,s]);if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){if(s.global)$.active--;deferred.reject();return deferred;}if(xhr.aborted){deferred.reject();return deferred;}sub=form.clk;if(sub){n=sub.name;if(n&&!sub.disabled){s.extraData=s.extraData||{};s.extraData[n]=sub.value;if(sub.type==='image'){s.extraData[n+'.x']=form.clk_x;s.extraData[n+'.y']=form.clk_y;}}}var CLIENT_TIMEOUT_ABORT=1;var SERVER_ABORT=2;function getDoc(frame){var doc=null;try{if(frame.contentWindow)doc=frame.contentWindow.document;}catch(err){log('cannot get iframe.contentWindow document: '+err);}if(doc)return doc;try{doc=frame.contentDocument?frame.contentDocument:frame.document;}catch(err){log('cannot get iframe.contentDocument: '+err);doc=frame.document;}return doc;}var csrf_token=$('meta[name=csrf-token]').attr('content');var csrf_param=$('meta[name=csrf-param]').attr('content');if(csrf_param&&csrf_token){s.extraData=s.extraData||{};s.extraData[csrf_param]=csrf_token;}function doSubmit(){var t=$form.attr2('target'),a=$form.attr2('action'),mp='multipart/form-data',et=$form.attr('enctype')||$form.attr('encoding')||mp;form.setAttribute('target',id);if(!method||/post/i.test(method))form.setAttribute('method','POST');if(a!==s.url)form.setAttribute('action',s.url);if(!s.skipEncodingOverride&&(!method||/post/i.test(method)))$form.attr({encoding:'multipart/form-data',enctype:'multipart/form-data'});if(s.timeout)timeoutHandle=setTimeout(function(){timedOut=true;cb(CLIENT_TIMEOUT_ABORT);},s.timeout);function checkState(){try{var state=getDoc(io).readyState;log('state = '+state);if(state&&state.toLowerCase()==='uninitialized')setTimeout(checkState,50);}catch(e){log('Server abort: ',e,' (',e.name,')');cb(SERVER_ABORT);if(timeoutHandle)clearTimeout(timeoutHandle);timeoutHandle=undefined;}}var extraInputs=[];try{if(s.extraData)for(var n in s.extraData)if(s.extraData.hasOwnProperty(n))if($.isPlainObject(s.extraData[n])&&s.extraData[n].hasOwnProperty('name')&&s.extraData[n].hasOwnProperty('value'))extraInputs.push($('<input type="hidden" name="'+s.extraData[n].name+'">',ownerDocument).val(s.extraData[n].value).appendTo(form)[0]);else extraInputs.push($('<input type="hidden" name="'+n+'">',ownerDocument).val(s.extraData[n]).appendTo(form)[0]);if(!s.iframeTarget)$io.appendTo($body);if(io.attachEvent)io.attachEvent('onload',cb);else io.addEventListener('load',cb,false);setTimeout(checkState,15);try{form.submit();}catch(err){var submitFn=document.createElement('form').submit;submitFn.apply(form);}}finally{form.setAttribute('action',a);form.setAttribute('enctype',et);if(t)form.setAttribute('target',t);else $form.removeAttr('target');$(extraInputs).remove();}}if(s.forceSync)doSubmit();else setTimeout(doSubmit,10);var data,doc,domCheckCount=50,callbackProcessed;function cb(e){if(xhr.aborted||callbackProcessed)return;doc=getDoc(io);if(!doc){log('cannot access response document');e=SERVER_ABORT;}if(e===CLIENT_TIMEOUT_ABORT&&xhr){xhr.abort('timeout');deferred.reject(xhr,'timeout');return;}if(e===SERVER_ABORT&&xhr){xhr.abort('server abort');deferred.reject(xhr,'error','server abort');return;}if(!doc||doc.location.href===s.iframeSrc)if(!timedOut)return;if(io.detachEvent)io.detachEvent('onload',cb);else io.removeEventListener('load',cb,false);var status='success',errMsg;
196try{if(timedOut)throw 'timeout';var isXml=s.dataType==='xml'||doc.XMLDocument||$.isXMLDoc(doc);log('isXml='+isXml);if(!isXml&&window.opera&&(doc.body===null||!doc.body.innerHTML))if(--domCheckCount){log('requeing onLoad callback, DOM not available');setTimeout(cb,250);return;}var docRoot=doc.body?doc.body:doc.documentElement;xhr.responseText=docRoot?docRoot.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(isXml)s.dataType='xml';xhr.getResponseHeader=function(header){var headers={'content-type':s.dataType};return headers[header.toLowerCase()];};if(docRoot){xhr.status=Number(docRoot.getAttribute('status'))||xhr.status;xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText;}var dt=(s.dataType||'').toLowerCase();var scr=/(json|script|text)/.test(dt);if(scr||s.textarea){var ta=doc.getElementsByTagName('textarea')[0];if(ta){xhr.responseText=ta.value;xhr.status=Number(ta.getAttribute('status'))||xhr.status;xhr.statusText=ta.getAttribute('statusText')||xhr.statusText;}else{if(scr){var pre=doc.getElementsByTagName('pre')[0];var b=doc.getElementsByTagName('body')[0];if(pre)xhr.responseText=pre.textContent?pre.textContent:pre.innerText;else{if(b)xhr.responseText=b.textContent?b.textContent:b.innerText;}}}}else{if(dt==='xml'&&!xhr.responseXML&&xhr.responseText)xhr.responseXML=toXml(xhr.responseText);}try{data=httpData(xhr,dt,s);}catch(err){status='parsererror';xhr.error=errMsg=(err||status);}}catch(err){log('error caught: ',err);status='error';xhr.error=errMsg=(err||status);}if(xhr.aborted){log('upload aborted');status=null;}if(xhr.status)status=((xhr.status>=200&&xhr.status<300)||xhr.status===304)?'success':'error';if(status==='success'){if(s.success)s.success.call(s.context,data,'success',xhr);deferred.resolve(xhr.responseText,'success',xhr);if(g)$.event.trigger('ajaxSuccess',[xhr,s]);}else{if(status){if(typeof errMsg==='undefined')errMsg=xhr.statusText;if(s.error)s.error.call(s.context,xhr,status,errMsg);deferred.reject(xhr,'error',errMsg);if(g)$.event.trigger('ajaxError',[xhr,s,errMsg]);}}if(g)$.event.trigger('ajaxComplete',[xhr,s]);if(g&&!--$.active)$.event.trigger('ajaxStop');if(s.complete)s.complete.call(s.context,xhr,status);callbackProcessed=true;if(s.timeout)clearTimeout(timeoutHandle);setTimeout(function(){if(!s.iframeTarget)$io.remove();else $io.attr('src',s.iframeSrc);xhr.responseXML=null;},100);}var toXml=$.parseXML||function(s,doc){if(window.ActiveXObject){doc=new ActiveXObject('Microsoft.XMLDOM');doc.async='false';doc.loadXML(s);}else doc=(new DOMParser()).parseFromString(s,'text/xml');return (doc&&doc.documentElement&&doc.documentElement.nodeName!=='parsererror')?doc:null;};var parseJSON=$.parseJSON||function(s){return window['eval']('('+s+')');};var httpData=function(xhr,type,s){var ct=xhr.getResponseHeader('content-type')||'',xml=((type==='xml'||!type)&&ct.indexOf('xml')>=0),data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==='parsererror')if($.error)$.error('parsererror');if(s&&s.dataFilter)data=s.dataFilter(data,type);if(typeof data==='string')if((type==='json'||!type)&&ct.indexOf('json')>=0)data=parseJSON(data);else{if((type==='script'||!type)&&ct.indexOf('javascript')>=0)$.globalEval(data);}return data;};return deferred;}};$.fn.ajaxForm=function(options,data,dataType,onSuccess){if(typeof options==='string'||(options===false&&arguments.length>0)){options={'url':options,'data':data,'dataType':dataType};if(typeof onSuccess==='function')options.success=onSuccess;}options=options||{};options.delegation=options.delegation&&typeof $.fn.on==='function';if(!options.delegation&&this.length===0){var o={s:this.selector,c:this.context};if(!$.isReady&&o.s){log('DOM not ready, queuing ajaxForm');$(function(){$(o.s,o.c).ajaxForm(options);});return this;}log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this;}if(options.delegation){$(document).off('submit.form-plugin',this.selector,doAjaxSubmit).off('click.form-plugin',this.selector,captureSubmittingElement).on('submit.form-plugin',this.selector,options,doAjaxSubmit).on('click.form-plugin',this.selector,options,captureSubmittingElement);return this;}if(options.beforeFormUnbind)options.beforeFormUnbind(this,options);return this.ajaxFormUnbind().on('submit.form-plugin',options,doAjaxSubmit).on('click.form-plugin',options,captureSubmittingElement);};function doAjaxSubmit(e){var options=e.data;if(!e.isDefaultPrevented()){e.preventDefault();$(e.target).closest('form').ajaxSubmit(options);}}function captureSubmittingElement(e){var target=e.target;var $el=$(target);if(!$el.is('[type=submit],[type=image]')){var t=$el.closest('[type=submit]');if(t.length===0)return;target=t[0];}var form=target.form;form.clk=target;if(target.type==='image')if(typeof e.offsetX!=='undefined'){form.clk_x=e.offsetX;form.clk_y=e.offsetY;}else if(typeof $.fn.offset==='function'){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top;}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop;}setTimeout(function(){form.clk=form.clk_x=form.clk_y=null;},100);}$.fn.ajaxFormUnbind=function(){return this.off('submit.form-plugin click.form-plugin');};$.fn.formToArray=function(semantic,elements,filtering){var a=[];if(this.length===0)return a;var form=this[0];var formId=this.attr('id');var els=(semantic||typeof form.elements==='undefined')?form.getElementsByTagName('*'):form.elements;var els2;if(els)els=$.makeArray(els);if(formId&&(semantic||/(Edge|Trident)\//.test(navigator.userAgent))){els2=$(':input[form="'+formId+'"]').get();if(els2.length)els=(els||[]).concat(els2);}if(!els||!els.length)return a;
196if(typeof (filtering)==="function")els=$.map(els,filtering);var i,j,n,v,el,max,jmax;for(i=0,max=els.length;i<max;i++){el=els[i];n=el.name;if(!n||el.disabled)continue;if(semantic&&form.clk&&el.type==='image'){if(form.clk===el){a.push({name:n,value:$(el).val(),type:el.type});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}continue;}v=$.fieldValue(el,true);if(v&&v.constructor===Array){if(elements)elements.push(el);for(j=0,jmax=v.length;j<jmax;j++)a.push({name:n,value:v[j]});}else if(feature.fileapi&&el.type==='file'){if(elements)elements.push(el);var files=el.files;if(files.length)for(j=0;j<files.length;j++)a.push({name:n,value:files[j],type:el.type});else a.push({name:n,value:'',type:el.type});}else{if(v!==null&&typeof v!=='undefined'){if(elements)elements.push(el);a.push({name:n,value:v,type:el.type,required:el.required});}}}if(!semantic&&form.clk){var $input=$(form.clk),input=$input[0];n=input.name;if(n&&!input.disabled&&input.type==='image'){a.push({name:n,value:$input.val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}}return a;};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic));};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n)return;var v=$.fieldValue(this,successful);if(v&&v.constructor===Array)for(var i=0,max=v.length;i<max;i++)a.push({name:n,value:v[i]});else{if(v!==null&&typeof v!=='undefined')a.push({name:this.name,value:v});}});return $.param(a);};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v==='undefined'||(v.constructor===Array&&!v.length))continue;if(Array.isArray(v))val=val.concat(v);else val.push(v);}return val;};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(typeof successful==='undefined')successful=true;if(successful&&(!n||el.disabled||t==='reset'||t==='button'||(t==='checkbox'||t==='radio')&&!el.checked||(t==='submit'||t==='image')&&el.form&&el.form.clk!==el||tag==='select'&&el.selectedIndex===-1))return null;if(tag==='select'){var index=el.selectedIndex;if(index<0)return null;var a=[],ops=el.options;var one=(t==='select-one');var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected&&!op.disabled){var v=op.value;if(!v)v=(op.attributes&&op.attributes.value&&!(op.attributes.value.specified))?op.text:op.value;if(one)return v;a.push(v);}}return a;}return $(el).val().replace(rCRLF,'\r\n');};$.fn.clearForm=function(includeHidden){return this.each(function(){$('input,select,textarea',this).clearFields(includeHidden);});};$.fn.clearFields=$.fn.clearInputs=function(includeHidden){var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(re.test(t)||tag==='textarea')this.value='';else if(t==='checkbox'||t==='radio')this.checked=false;else if(tag==='select')this.selectedIndex=-1;else if(t==='file')if(/MSIE/.test(navigator.userAgent))$(this).replaceWith($(this).clone(true));else $(this).val('');else{if(includeHidden)if((includeHidden===true&&/hidden/.test(t))||(typeof includeHidden==='string'&&$(this).is(includeHidden)))this.value='';}});};$.fn.resetForm=function(){return this.each(function(){var el=$(this);var tag=this.tagName.toLowerCase();switch(tag){case 'input':this.checked=this.defaultChecked;case 'textarea':this.value=this.defaultValue;return true;case 'option':case 'optgroup':var select=el.parents('select');if(select.length&&select[0].multiple)if(tag==='option')this.selected=this.defaultSelected;else el.find('option').resetForm();else select.resetForm();return true;case 'select':el.find('option').each(function(i){this.selected=this.defaultSelected;if(this.defaultSelected&&!el[0].multiple){el[0].selectedIndex=i;return false;}});return true;case 'label':var forEl=$(el.attr('for'));var list=el.find('input,select,textarea');if(forEl[0])list.unshift(forEl[0]);list.resetForm();return true;case 'form':if(typeof this.reset==='function'||(typeof this.reset==='object'&&!this.reset.nodeType))this.reset();return true;default:el.find('form,input,label,select,textarea').resetForm();return true;}}
196);};$.fn.enable=function(b){if(typeof b==='undefined')b=true;return this.each(function(){this.disabled=!b;});};$.fn.selected=function(select){if(typeof select==='undefined')select=true;return this.each(function(){var t=this.type;if(t==='checkbox'||t==='radio')this.checked=select;else{if(this.tagName.toLowerCase()==='option'){var $sel=$(this).parent('select');if(select&&$sel[0]&&$sel[0].type==='select-one')$sel.find('option').selected(false);this.selected=select;}}});};$.fn.ajaxSubmit.debug=false;function log(){if(!$.fn.ajaxSubmit.debug)return;var msg='[jquery.form] '+Array.prototype.join.call(arguments,'');if(window.console&&window.console.log)window.console.log(msg);else{if(window.opera&&window.opera.postError)window.opera.postError(msg);}}}));;
197/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
198(function($,Drupal,drupalSettings){Drupal.Views={};Drupal.Views.parseQueryString=function(query){const args={};if(query.includes('?'))query=query.substring(query.indexOf('?')+1);let pair;const pairs=query.split('&');for(let i=0;i<pairs.length;i++){pair=pairs[i].split('=');if(pair[0]!=='q')if(pair[1])args[decodeURIComponent(pair[0].replace(/\+/g,' '))]=decodeURIComponent(pair[1].replace(/\+/g,' '));else args[decodeURIComponent(pair[0].replace(/\+/g,' '))]='';}return args;};Drupal.Views.parseViewArgs=function(href,viewPath){const returnObj={};const path=Drupal.Views.getPath(href);const viewHref=Drupal.url(viewPath).substring(drupalSettings.path.baseUrl.length);if(viewHref&&path.startsWith(`${viewHref}/`)){returnObj.view_args=decodeURIComponent(path.substring(viewHref.length+1,path.length));returnObj.view_path=path;}return returnObj;};Drupal.Views.pathPortion=function(href){const protocol=window.location.protocol;if(href.startsWith(protocol))href=href.substring(href.indexOf('/',protocol.length+2));return href;};Drupal.Views.getPath=function(href){href=Drupal.Views.pathPortion(href);href=href.substring(drupalSettings.path.baseUrl.length,href.length);if(href.startsWith('?q='))href=href.substring(3,href.length);const chars=['#','?','&'];for(let i=0;i<chars.length;i++)if(href.includes(chars[i]))href=href.substring(0,href.indexOf(chars[i]));return href;};})(jQuery,Drupal,drupalSettings);;
199(function($,Drupal,drupalSettings){Drupal.behaviors.ViewsAjaxView={};Drupal.behaviors.ViewsAjaxView.attach=function(context,settings){if(settings&&settings.views&&settings.views.ajaxViews){const {views:{ajaxViews}}=settings;Object.keys(ajaxViews||{}).forEach((i)=>{Drupal.views.instances[i]=new Drupal.views.ajaxView(ajaxViews[i]);});}};Drupal.behaviors.ViewsAjaxView.detach=(context,settings,trigger)=>{if(trigger==='unload')if(settings&&settings.views&&settings.views.ajaxViews){const {views:{ajaxViews}}=settings;Object.keys(ajaxViews||{}).forEach((i)=>{const selector=`.js-view-dom-id-${ajaxViews[i].view_dom_id}`;if($(selector,context).length){delete Drupal.views.instances[i];delete settings.views.ajaxViews[i];}});}};Drupal.views={};Drupal.views.instances={};Drupal.views.ajaxView=function(settings){const selector=`.js-view-dom-id-${settings.view_dom_id}`;this.$view=$(selector);let ajaxPath=drupalSettings.views.ajax_path;if(ajaxPath.constructor.toString().includes('Array'))ajaxPath=ajaxPath[0];let queryString=window.location.search||'';if(queryString!==''){queryString=queryString.slice(1).replace(/q=[^&]+&?|page=[^&]+&?|&?render=[^&]+/,'');if(queryString!=='')queryString=(/\?/.test(ajaxPath)?'&':'?')+queryString;}this.element_settings={url:ajaxPath+queryString,submit:settings,httpMethod:'GET',setClick:true,event:'click',selector,progress:{type:'fullscreen'}};this.settings=settings;this.$exposed_form=$(`form#views-exposed-form-${settings.view_name.replace(/_/g,'-')}-${settings.view_display_id.replace(/_/g,'-')}`);once('exposed-form',this.$exposed_form).forEach(this.attachExposedFormAjax.bind(this));once('ajax-pager',this.$view.filter(this.filterNestedViews.bind(this))).forEach(this.attachPagerAjax.bind(this));const selfSettings=$.extend({},this.element_settings,{event:'RefreshView',base:this.selector,httpMethod:'GET',element:this.$view.get(0)});this.refreshViewAjax=Drupal.ajax(selfSettings);};Drupal.views.ajaxView.prototype.attachExposedFormAjax=function(){const that=this;this.exposedFormAjax=[];const $exposedFormInput=$('input[type=submit], button[type=submit], input[type=image]',this.$exposed_form).not('[data-drupal-selector=edit-reset]');once('exposed-form-input',$exposedFormInput).forEach(function(input,index){const selfSettings=$.extend({},that.element_settings,{base:$(input).attr('id'),element:input});that.exposedFormAjax[index]=Drupal.ajax(selfSettings);});};Drupal.views.ajaxView.prototype.filterNestedViews=function(){return !this.$view.parents('.view').length;};Drupal.views.ajaxView.prototype.attachPagerAjax=function(){this.$view.find('.js-pager__items a, th.views-field a, .attachment .views-summary a').each(this.attachPagerLinkAjax.bind(this));};Drupal.views.ajaxView.prototype.attachPagerLinkAjax=function(id,link){const $link=$(link);const viewData={};const href=$link.attr('href');$.extend(viewData,this.settings,Drupal.Views.parseQueryString(href),Drupal.Views.parseViewArgs(href,this.settings.view_base_path));const selfSettings=$.extend({},this.element_settings,{submit:viewData,base:false,element:link,httpMethod:'GET'});this.pagerAjax=Drupal.ajax(selfSettings);};Drupal.AjaxCommands.prototype.viewsScrollTop=function(ajax,response){Drupal.AjaxCommands.prototype.scrollTop(ajax,response);};})(jQuery,Drupal,drupalSettings);;
200(function($,Drupal,drupalSettings){var original={path:window.location.protocol+"//"+window.location.hostname+(window.location.port?':'+window.location.port:'')+window.location.pathname,query:window.location.search||''};window.onpageshow=function(event){if(event.persisted)window.location.reload();};Drupal.ViewsAjaxHistory=Drupal.ViewsAjaxHistory||{};Drupal.ViewsAjaxHistory.beforeSubmit=Drupal.Ajax.prototype.beforeSubmit;Drupal.ViewsAjaxHistory.beforeSerialize=Drupal.Ajax.prototype.beforeSerialize;Drupal.ViewsAjaxHistory.beforeSend=Drupal.Ajax.prototype.beforeSend;Drupal.behaviors.viewsAjaxHistory={attach:function(context,drupalSettings){if(once('views-ajax-history-first-page-load','body').length)drupalSettings.viewsAjaxHistory.onloadPageItem=drupalSettings.viewsAjaxHistory.renderPageItem;}};var parseQueryString=function(query){var args={};var pos=query.indexOf('?');
200if(pos!=-1)query=query.substring(pos+1);var pairs=query.split('&');var pair,key,value;for(var i in pairs)if(typeof (pairs[i])=='string'){pair=pairs[i].split('=');if(pair[0]!='q'&&pair[1]){key=decodeURIComponent(pair[0].replace(/\+/g,' '));value=decodeURIComponent(pair[1].replace(/\+/g,' '));if(/\[\]$/.test(key))if(!(key in args))args[key]=[value];else{if(!$.inArray(value,args[key])!==-1)args[key].push(value);}else args[key]=value;}}return args;};var cleanURL=function(url,viewArgs){var args=('reset' in viewArgs)?{}:parseQueryString(url);var query=[];if(/\?/.test(drupalSettings.views.ajax_path))query.push('q='+Drupal.Views.getPath(url));$.each(args,function(name,value){if(name in viewArgs)value=viewArgs[name];if(Array.isArray(value))$.merge(query,$.map($.unique(value),function(sub){return name+'='+encodeURIComponent(sub);}));else query.push(name+'='+encodeURIComponent(value));});url=window.location.href.split('?');return url[0]+(query.length?'?'+query.join('&'):'');};var cleanStateForHistory=function(state){var stateWithNoFunctions={};for(var key in state)if(typeof state[key]!=="function")stateWithNoFunctions[key]=state[key];return stateWithNoFunctions;};var parseQuery=function(queryString){var query={};$.map(queryString.split('&'),function(val){var s=val.split('=');query[s[0]]=s[1];});return query;};var addState=function(options,url){var historyOptions=$.extend({},options);drupalSettings.viewsAjaxHistory.lastViewDomID=options.data.view_dom_id;$(window).unbind('popstate',loadView);history.pushState(cleanStateForHistory(historyOptions),document.title,cleanURL(url,options.data));$(window).bind('popstate',loadView);};var loadView=function(){var options;if(history.state===null){var viewsAjaxSettingsKey='views_dom_id:'+drupalSettings.viewsAjaxHistory.lastViewDomID;if(drupalSettings.views.ajaxViews.hasOwnProperty(viewsAjaxSettingsKey)){var viewsAjaxSettings=drupalSettings.views.ajaxViews[viewsAjaxSettingsKey];var initialExposedInput=drupalSettings.viewsAjaxHistory.initialExposedInput[viewsAjaxSettingsKey];$.extend(viewsAjaxSettings,initialExposedInput);viewsAjaxSettings.page=drupalSettings.viewsAjaxHistory.onloadPageItem;options={data:viewsAjaxSettings,url:drupalSettings.views.ajax_path};}}else options=history.state;var settings=$.extend({submit:options.data,setClick:true,event:'click',selector:'.view-dom-id-'+options.data.view_dom_id,progress:{type:'throbber'},httpMethod:'GET'},options);var viewsAjaxSubmit=Drupal.ajax(settings);viewsAjaxSubmit.execute();};var hasFacets=function(viewName){var hasFacets=false;if(drupalSettings.facets_views_ajax)$.each(drupalSettings.facets_views_ajax,function(facetId,facetSettings){if(facetSettings.view_id===viewName)hasFacets=true;});return hasFacets;};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(options.data.view_name&&element&&$(element).is('a')){let params=new URLSearchParams($(element).attr('href'));if(!$.isEmptyObject(drupalSettings.viewsAjaxHistory.excludeArgs)){var keysToRemove=[];$.each(drupalSettings.viewsAjaxHistory.excludeArgs,function(index,pathToExclude){params.forEach(function(value,key,parent){if(key.startsWith(pathToExclude))keysToRemove.push(key);});});keysToRemove.forEach(function(key){params.delete(key);});}addState(options,'?'+params.toString());}Drupal.ViewsAjaxHistory.beforeSerialize.apply(this,arguments);};Drupal.Ajax.prototype.beforeSubmit=function(form_values,element,options){if(options&&options.data&&options.data.view_name){var url=original.path+'?'+new URLSearchParams(new FormData(element.get(0))).toString();var currentQuery=parseQueryString(window.location.href);var ajaxUrl=options.url.split('?')[0];var ajaxQuery=parseQueryString(options.url);if($.inArray("page",Object.keys(currentQuery))!==-1){delete currentQuery.page;delete ajaxQuery.page;}$.each(form_values,function(){if(/\[\]$/.test(this.name)){if(!options.data[this.name])options.data[this.name]=[];options.data[this.name].push(this.value);}else options.data[this.name]=this.value;});element.find('[name]').each(function(){if(currentQuery[this.name]){delete currentQuery[this.name];delete ajaxQuery[this.name];}});element.find('input[type="checkbox"]').each(function(key,value){if(!form_values[this.name]){if(currentQuery[this.name])delete currentQuery[this.name];else{if(options.data[this.name])delete options.data[this.name];}if(ajaxQuery[this.name])delete ajaxQuery[this.name];}});let removeMultiValueQueryKeys=function(multiValueParamToRemove,queryParams){Object.getOwnPropertyNames(queryParams).forEac
200h(function(queryKey){let queryKeyWithoutBracket=queryKey.replace(/\[\d+]$/,'');if(multiValueParamToRemove===queryKeyWithoutBracket)delete queryParams[queryKey];});return queryParams;};element.find('select[multiple]').each(function(key,value){if($(value).val().length===0){delete options.data[this.name];delete currentQuery[this.name];delete ajaxQuery[this.name];}let nameWithoutBracket=this.name.replace(/\[]$/,'');currentQuery=removeMultiValueQueryKeys(nameWithoutBracket,currentQuery);ajaxQuery=removeMultiValueQueryKeys(nameWithoutBracket,ajaxQuery);});url+=(/\?/.test(url)?'&':'?')+$.param(currentQuery);options.url=ajaxUrl+'?'+$.param(ajaxQuery);addState(options,url);}Drupal.ViewsAjaxHistory.beforeSubmit.apply(this,arguments);};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){var data=(typeof options.data==='string')?parseQuery(options.data):{};if(data.view_name&&options.type!=='GET')if(hasFacets(data.view_name)===true){var currentQuery=parseQueryString(window.location.href);options.url=drupalSettings.views.ajax_path+'?'+$.param(currentQuery)+'&'+Drupal.ajax.WRAPPER_FORMAT+'=drupal_ajax';}else{var delimiter=drupalSettings.views.ajax_path.indexOf('?')===-1?'?':'&';options.url=drupalSettings.views.ajax_path+delimiter+Drupal.ajax.WRAPPER_FORMAT+'=drupal_ajax';}Drupal.ViewsAjaxHistory.beforeSend.apply(this,arguments);};})(jQuery,Drupal,drupalSettings);;
201/* @license MIT http://opensource.org/licenses/mit-license.php */
202/*!
203* jQuery Text Counter Plugin v0.9.1
204* https://github.com/ractoon/jQuery-Text-Counter
205*
206* Copyright 2014 ractoon
207* Released under the MIT license
208*/
209!function(t){t.textcounter=function(o,n){var e=this;e.$el=t(o),e.el=o,e.$el.data("textcounter",e),e.init=function(){e.options=t.extend({},t.textcounter.defaultOptions,n);var o=e.options.countDown?e.options.countDownText:e.options.counterText,r=e.options.countDown?e.options.max:0,i=t("<div/>").addClass(e.options.textCountMessageClass).attr("aria-live","polite").attr("aria-atomic","true").html(o.replace("%d",'<span class="'+e.options.textCountClass+'">'+r+"</span>")),s=t("<div/>").addClass(e.options.countOverflowContainerClass);e.hideMessage(s),e.$container=t("<"+e.options.countContainerElement+"/>").addClass(e.options.countContainerClass).append(i).append(s),e.$text_counter=e.$container.find("span"),e.$el.after(e.$container),e.$el.bind("keyup.textcounter click.textcounter blur.textcounter focus.textcounter change.textcounter paste.textcounter",e.checkLimits).trigger("click.textcounter"),e.options.init(e.el)},e.checkLimits=function(o){var n=e.$el,r=(e.$container,n.val()),i=0,s=0,a=void 0!==o.originalEvent;if(t.isEmptyObject(r)||(i=e.textCount(r)),"auto"==e.options.max)void 0!==(u=e.$el.attr("maxlength"))&&!1!==u?e.options.max=u:e.$container.text("error: [maxlength] attribute not set");else if("autocustom"==e.options.max){var u;void 0!==(u=e.$el.attr(e.options.autoCustomAttr))&&!1!==u?e.options.max=u:e.$container.text("error: ["+e.options.autoCustomAttr+"] attribute not set")}if(s=e.options.countDown?e.options.max-i:i,e.setCount(s),e.options.min>0&&a&&(i<e.options.min?(e.setErrors("min"),e.options.minunder(e.el)):i>=e.options.min&&(e.options.mincount(e.el),e.clearErrors("min"))),-1!==e.options.max)if(i===e.options.max&&0!==e.options.max)e.options.maxcount(e.el),e.clearErrors("max");else if(i>e.options.max&&0!==e.options.max)if(e.options.stopInputAtMaximum){var c="";if("word"==e.options.type)for(var l=r.split(/[^\S\n]/g),p=0;p<l.length&&!(p>=e.options.max);)void 0!==l[p]&&(c+=l[p]+" ",p++);else{var m=e.options.twoCharCarriageReturn?e.options.max-e.twoCharCarriageReturnCount(r):e.options.max;if(e.options.countSpaces)c=r.substring(0,m);else{var x=r.split(""),C=x.length,f=0;for(p=0;f<m&&p<C;)" "!==x[p]&&f++,c+=x[p++]}}n.val(c.trim()),i=e.textCount(n.val()),s=e.options.countDown?e.options.max-i:i,e.setCount(s)}else e.setErrors("max");else e.options.maxunder(e.el),e.clearErrors("max");-1==e.options.minDisplayCutoff&&-1==e.options.maxDisplayCutoff||i<=e.options.min+e.options.minDisplayCutoff||-1!==e.options.max&&i>=e.options.max-e.options.maxDisplayCutoff?e.$container.show():e.$container.hide()},e.textCount=function(t){return"word"==e.options.type?e.wordCount(t):e.characterCount(t)},e.wordCount=function(t){return t.trim().replace(/\s+/gi," ").split(" ").length},e.characterCount=function(t){var o=0,n=0;if(e.options.twoCharCarriageReturn&&(n=e.twoCharCarriageReturnCount(t)),o=e.options.countSpace
209s?t.replace(/[^\S\n|\r|\r\n]/g," ").length:t.replace(/\s/g,"").length,e.options.countExtendedCharacters){var r=t.match(/[^\x00-\xff]/gi);o=null==r?t.length:t.length+r.length}return e.options.twoCharCarriageReturn&&(o+=n),o},e.twoCharCarriageReturnCount=function(t){var o=t.match(/(\r\n|\n|\r)/g),n=0;return null!==o&&(n=o.length),n},e.setCount=function(t){e.$text_counter.text(t)},e.setErrors=function(t){var o=e.$el,n=e.$container,r="";switch(o.addClass(e.options.inputErrorClass),n.addClass(e.options.counterErrorClass),t){case"min":r=e.options.minimumErrorText;break;case"max":r=e.options.maximumErrorText,e.options.countOverflow&&e.setOverflowMessage()}e.options.displayErrorText&&(n.children(".error-text-"+t).length||n.append("<"+e.options.errorTextElement+' class="error-text error-text-'+t+'">'+r+"</"+e.options.errorTextElement+">"))},e.setOverflowMessage=function(){e.hideMessage(e.$container.find("."+e.options.textCountMessageClass)),e.removeOverflowMessage();var t=e.options.countOverflowText.replace("%d",e.textCount(e.$el.val())-e.options.max).replace("%type",e.options.type+"s"),o=e.$container.find("."+e.options.countOverflowContainerClass).append(t);e.showMessage(o)},e.removeOverflowMessage=function(){e.$container.find("."+e.options.countOverflowContainerClass).empty()},e.showMessage=function(t){t.css("display","inline")},e.hideMessage=function(t){t.css("display","none")},e.clearErrors=function(t){var o=e.$el,n=e.$container;n.children(".error-text-"+t).remove(),0==n.children(".error-text").length&&(e.removeOverflowMessage(),e.showMessage(e.$container.find("."+e.options.textCountMessageClass)),o.removeClass(e.options.inputErrorClass),n.removeClass(e.options.counterErrorClass))},e.init()},t.textcounter.defaultOptions={type:"character",min:0,max:200,autoCustomAttr:"counterlimit",countContainerElement:"div",countContainerClass:"text-count-wrapper",textCountMessageClass:"text-count-message",textCountClass:"text-count",inputErrorClass:"error",counterErrorClass:"error",counterText:"Total Count: %d",errorTextElement:"div",minimumErrorText:"Minimum not met",maximumErrorText:"Maximum exceeded",displayErrorText:!0,stopInputAtMaximum:!0,countSpaces:!1,countDown:!1,countDownText:"Remaining: %d",countExtendedCharacters:!1,twoCharCarriageReturn:!1,countOverflow:!1,countOverflowText:"Maximum %type exceeded by %d",countOverflowContainerClass:"text-count-overflow-wrapper",minDisplayCutoff:-1,maxDisplayCutoff:-1,maxunder:function(t){},minunder:function(t){},maxcount:function(t){},mincount:function(t){},init:function(t){}},t.fn.textcounter=function(o){return this.each((function(){new t.textcounter(this,o)}))}}(jQuery);;
210/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
211(function($,Drupal,once){Drupal.webform=Drupal.webform||{};Drupal.webform.counter=Drupal.webform.counter||{};Drupal.webform.counter.options=Drupal.webform.counter.options||{};Drupal.behaviors.webformCounter={attach(context){if(!$.fn.textcounter)return;$(once('webform-counter','.js-webform-counter',context)).each(function(){var options={type:$(this).data('counter-type'),max:$(this).data('counter-maximum'),min:$(this).data('counter-minimum')||0,counterText:$(this).data('counter-minimum-message'),countDownText:$(this).data('counter-maximum-message'),inputErrorClass:'webform-counter-warning',counterErrorClass:'webform-counter-warning',countSpaces:true,twoCharCarriageReturn:true,stopInputAtMaximum:false,minimumErrorText:'',maximumErrorText:''};options.countDown=(options.max)?true:false;if(!options.counterText)options.counterText=(options.type==='word')?Drupal.t('%d word(s) entered'):Drupal.t('%d character(s) entered');if(!options.countDownText)options.countDownText=(options.type==='word')?Drupal.t('%d word(s) remaining'):Drupal.t('%d character(s) remaining');options=$.extend(options,Drupal.webform.counter.options);if($(this).attr('data-options'))options=$.extend(true,options,JSON.parse($(this).attr('data-options')));delete options.countContainerElement;delete options.errorTextElement;Object.keys(options).forEach(function(key){if(typeof options[key]==='string')options[key]=Drupal.checkPlain(options[key]);});$(this).textcounter(options);});}};})(jQuery,Drupal,once);;
212(function($,Drupal,once){var hasLocalStorage=(function(){try{localStorage.setItem('webform','webform');localStorage.removeItem('webform');return true;}catch(e){return false;}}());Drupal.behaviors.webformDetailsSave={attach(context){if(!hasLocalStorage)return;$(once('webform-details-summary-save','details > summary',context)).on('click',function(){var $details=$(this).parent();if($details[0].hasAttribute('data-webform-details-nosave'))return;var name=Drupal.webformDetailsSaveGetName($details);if(!name)return;var open=($details.attr('open')!=='open')?'1':'0';localStorage.setItem(name,open);});$(once('webform-details-save','details',context)).each(function(){var $details=$(this);var name=Drupal.webformDetailsSaveGetName($details);if(!name)return;var open=localStorage.getItem(name);if(open===null)return;if(open==='1')$details.attr('open','open');else $details.removeAttr('open');});}};Drupal.webformDetailsSaveGetName=function($details){if(!hasLocalStorage)return '';if($details.hasClass('vertical-tabs__pane'))return '';var webformId=$details.attr('data-webform-element-id');if(webformId)return 'Drupal.webform.'+webformId.replace('--','.');var detailsId=$details.attr('id');
212if(!detailsId)return '';var $form=$details.parents('form');if(!$form.length||!$form.attr('id'))return '';var formId=$form.attr('id');if(!formId)return '';formId=formId.replace(/--.+?$/,'').replace(/-/g,'_');detailsId=detailsId.replace(/--.+?$/,'').replace(/-/g,'_');return 'Drupal.webform.'+formId+'.'+detailsId;};})(jQuery,Drupal,once);;
213(function($,Drupal,once){Drupal.webform=Drupal.webform||{};Drupal.webform.detailsToggle=Drupal.webform.detailsToggle||{};Drupal.webform.detailsToggle.options=Drupal.webform.detailsToggle.options||{};Drupal.behaviors.webformDetailsToggle={attach(context){$(once('webform-details-toggle','.js-webform-details-toggle',context)).each(function(){var $form=$(this);var $tabs=$form.find('.webform-tabs');var selector=($tabs.length)?'.webform-tab':'.js-webform-details-toggle, .webform-elements';var $details=$form.find('details').filter(function(){var $parents=$(this).parentsUntil(selector);return ($parents.find('details').length===0);});if($details.length<2)return;var options=$.extend({button:'<button type="button" class="webform-details-toggle-state"></button>'},Drupal.webform.detailsToggle.options);var $toggle=$(options.button).attr('title',Drupal.t('Toggle details widget state.')).on('click',function(e){var $details=$form.find('details:not(.vertical-tabs__pane)');var $summary=$details.find('summary');var open;if(Drupal.webform.detailsToggle.isFormDetailsOpen($form)){$details.removeAttr('open');$summary.attr('aria-expanded','false');open=0;}else{$details.attr('open','open');$summary.attr('aria-expanded','true');open=1;}Drupal.webform.detailsToggle.setDetailsToggleLabel($form);if(Drupal.webformDetailsSaveGetName)$details.each(function(){var name=Drupal.webformDetailsSaveGetName($(this));if(name)localStorage.setItem(name,open);});}).wrap('<div class="webform-details-toggle-state-wrapper"></div>').parent();if($tabs.length)$tabs.find('.item-list:first-child').eq(0).before($toggle);else $details.eq(0).before($toggle);Drupal.webform.detailsToggle.setDetailsToggleLabel($form);});}};Drupal.webform.detailsToggle.isFormDetailsOpen=function($form){return ($form.find('details[open]').length===$form.find('details').length);};Drupal.webform.detailsToggle.setDetailsToggleLabel=function($form){var isOpen=Drupal.webform.detailsToggle.isFormDetailsOpen($form);var label=(isOpen)?Drupal.t('Collapse all'):Drupal.t('Expand all');$form.find('.webform-details-toggle-state').html(label);var text=(isOpen)?Drupal.t('All details have been expanded.'):Drupal.t('All details have been collapsed.');Drupal.announce(text);};})(jQuery,Drupal,once);;
214(function($,Drupal,once){var hasLocalStorage=(function(){try{localStorage.setItem('webform','webform');localStorage.removeItem('webform');return true;}catch(e){return false;}}());var hasSessionStorage=(function(){try{sessionStorage.setItem('webform','webform');sessionStorage.removeItem('webform');return true;}catch(e){return false;}}());Drupal.behaviors.webformMessageClose={attach(context){$(once('webform-message--close','.js-webform-message--close',context)).each(function(){var $element=$(this);var id=$element.attr('data-message-id');var storage=$element.attr('data-message-storage');var effect=$element.attr('data-message-close-effect')||'hide';switch(effect){case 'slide':effect='slideUp';break;case 'fade':effect='fadeOut';break;}if(isClosed($element,storage,id))return;if($element.attr('style')!=='display: none;'&&!$element.hasClass('js-webform-states-hidden'))$element.show();$element.find('.js-webform-message__link').on('click',function(event){$element[effect]();setClosed($element,storage,id);$element.trigger('close');event.preventDefault();});});}};function isClosed($element,storage,id){if(!id||!storage)return false;switch(storage){case 'local':if(hasLocalStorage)return localStorage.getItem('Drupal.webform.message.'+id)||false;return false;case 'session':if(hasSessionStorage)return sessionStorage.getItem('Drupal.webform.message.'+id)||false;return false;default:return false;}}function setClosed($element,storage,id){if(!id||!storage)return;switch(storage){case 'local':if(hasLocalStorage)localStorage.setItem('Drupal.webform.message.'+id,true);break;case 'session':if(hasSessionStorage)sessionStorage.setItem('Drupal.webform.message.'+id,true);break;case 'user':case 'state':case 'custom':$.get($element.find('.js-webform-message__link').attr('href'));return true;}}})(jQuery,Drupal,once);;
215(function($,Drupal,once){Drupal.behaviors.webformSelectOptionsDisabled={attach(context){$(once('webform-select-options-disabled','select[data-webform-select-options-disabled]',context)).each(function(){var $select=$(this);var disabled=$select.attr('data-webform-select-options-disabled').split(/\s*,\s*/);$select.find('option').filter(function isDisabled(){return ($.inArray(this.value,disabled)!==-1);}).attr('disabled','disabled');});}};})(jQuery,Drupal,once);;
216(function($,Drupal,debounce){$.fn.drupalGetSummary=function(){const callback=this.data('summaryCallback');if(!this[0]||!callback)return '';const result=callback(this[0]);return result?result.trim():'';};$.fn.drupalSetSummary=function(callback){const self=this;if(typeof callback!=='function'){const val=callback;callback=function(){return val;};}return (this.data('summaryCallback',callback).off('formUpdated.summary').on('formUpdated.summary',()=>{self.trigger('summaryUpdated');}).trigger('summaryUpdated'));};Drupal.behaviors.formSingleSubmit={attach(){function onFormSubmit(e){const $form=$(e.currentTarget);const formValues=new URLSearchParams(new FormData(e.target)).toString();const previousValues=$form.attr('data-drupal-form-submit-last');
216if(previousValues===formValues)e.preventDefault();else $form.attr('data-drupal-form-submit-last',formValues);}$(once('form-single-submit','body')).on('submit.singleSubmit','form:not([method~="GET"])',onFormSubmit);}};function triggerFormUpdated(element){$(element).trigger('formUpdated');}function fieldsList(form){return [].map.call(form.querySelectorAll('[name][id]'),(el)=>el.id);}Drupal.behaviors.formUpdated={attach(context){const $context=$(context);const contextIsForm=context.tagName==='FORM';const $forms=$(once('form-updated',contextIsForm?$context:$context.find('form')));let formFields;if($forms.length)$.makeArray($forms).forEach((form)=>{const events='change.formUpdated input.formUpdated ';const eventHandler=debounce((event)=>{triggerFormUpdated(event.target);},300);formFields=fieldsList(form).join(',');form.setAttribute('data-drupal-form-fields',formFields);$(form).on(events,eventHandler);});if(contextIsForm){formFields=fieldsList(context).join(',');const currentFields=$(context).attr('data-drupal-form-fields');if(formFields!==currentFields)triggerFormUpdated(context);}},detach(context,settings,trigger){const $context=$(context);const contextIsForm=context.tagName==='FORM';if(trigger==='unload')once.remove('form-updated',contextIsForm?$context:$context.find('form')).forEac
216h((form)=>{form.removeAttribute('data-drupal-form-fields');$(form).off('.formUpdated');});}};Drupal.behaviors.fillUserInfoFromBrowser={attach(context,settings){const userInfo=['name','mail','homepage'];const $forms=$(once('user-info-from-browser','[data-user-info-from-browser]'));if($forms.length)userInfo.forEach((info)=>{const $element=$forms.find(`[name=${info}]`);const browserData=localStorage.getItem(`Drupal.visitor.${info}`);if(!$element.length)return;const emptyValue=$element[0].value==='';const defaultValue=$element.attr('data-drupal-default-value')===$element[0].value;if(browserData&&(emptyValue||defaultValue))$element.each(function(index,item){item.value=browserData;});});$forms.on('submit',()=>{userInfo.forEach((info)=>{const $element=$forms.find(`[name=${info}]`);if($element.length)localStorage.setItem(`Drupal.visitor.${info}`,$element[0].value);});});}};const handleFragmentLinkClickOrHashChange=(e)=>{let url;if(e.type==='click')url=e.currentTarget.location?e.currentTarget.location:e.currentTarget;else url=window.location;const hash=url.hash.substring(1);if(hash){const $target=$(`#${hash}`);$('body').trigger('formFragmentLinkClickOrHashChange',[$target]);setTimeout(()=>$target.trigger('focus'),300);}};const debouncedHandleFragmentLinkClickOrHashChange=debounce(handleFragmentLinkClickOrHashChange,300,true);$(window).on('hashchange.form-fragment',debouncedHandleFragmentLinkClickOrHashChange);
216$(document).on('click.form-fragment','a[href*="#"]',debouncedHandleFragmentLinkClickOrHashChange);})(jQuery,Drupal,Drupal.debounce);;
217(function($,Drupal){var isChrome=(/chrom(e|ium)/.test(window.navigator.userAgent.toLowerCase()));if(isChrome){var backButton=false;if(window.performance){var navEntries=window.performance.getEntriesByType('navigation');if(navEntries.length>0&&navEntries[0].type==='back_forward')backButton=true;else{if(window.performance.navigation&&window.performance.navigation.type===window.performance.navigation.TYPE_BACK_FORWARD)backButton=true;}}if(backButton){var attachBehaviors=Drupal.attachBehaviors;Drupal.attachBehaviors=function(context,settings){setTimeout(function(){attachBehaviors(context,settings);},300);};}}})(jQuery,Drupal);;
218(function($,Drupal){const states={postponed:[]};Drupal.states=states;function invert(a,invertState){return invertState&&typeof a!=='undefined'?!a:a;}function compare(a,b){if(a===b)return typeof a==='undefined'?a:true;return typeof a==='undefined'||typeof b==='undefined';}function ternary(a,b){if(typeof a==='undefined')return b;if(typeof b==='undefined')return a;return a&&b;}Drupal.behaviors.states={attach(context,settings){const elements=once('states','[data-drupal-states]',context);const il=elements.length;for(let i=0;i<il;i++){const config=JSON.parse(elements[i].getAttribute('data-drupal-states'));Object.keys(config||{}).forEach((state)=>{new states.Dependent({element:$(elements[i]),state:states.State.sanitize(state),constraints:config[state]});});}while(states.postponed.length)states.postponed.shift()();}};states.Dependent=function(args){$.extend(this,{values:{},oldValue:null},args);this.dependees=this.getDependees();Object.keys(this.dependees||{}).forEach((selector)=>{this.initializeDependee(selector,this.dependees[selector]);});};states.Dependent.comparisons={RegExp(reference,value){return reference.test(value);},Function(reference,value){return reference(value);},Array(reference,value){if(!Array.isArray(value))return false;return JSON.stringify(reference.sort())===JSON.stringify(value.sort());},Number(reference,value){return typeof value==='string'?compare(reference.toString(),value):compare(reference,value);}};states.Dependent.prototype={initializeDependee(selector,dependeeStates){this.values[selector]={};Object.keys(dependeeStates).forEach((i)=>{let state=dependeeStates[i];if($.inArray(state,dependeeStates)===-1)return;state=states.State.sanitize(state);this.values[selector][state.name]=null;$(selector).on(`state:${state}`,{selector,state},(e)=>{this.update(e.data.selector,e.data.state,e.value);});new states.Trigger({selector,state});});},compare(reference,selector,state){const value=this.values[selector][state.name];if(reference.constructor.name in states.Dependent.comparisons)return states.Dependent.comparisons[reference.constructor.name](reference,value);return compare(reference,value);},update(selector,state,value){if(value!==this.values[selector][state.name]){this.values[selector][state.name]=value;this.reevaluate();}},reevaluate(){let value=this.verifyConstraints(this.constraints);if(value!==this.oldValue){this.oldValue=value;value=invert(value,this.state.invert);this.element.trigger({type:`state:${this.state}`,value,trigger:true});}},verifyConstraints(constraints,selector){let result;if(Array.isArray(constraints)){const hasXor=$.inArray('xor',constraints)===-1;const len=constraints.length;for(let i=0;i<len;i++)if(constraints[i]!=='xor'){const constraint=this.checkConstraints(constraints[i],selector,i);if(constraint&&(hasXor||result))return hasXor;result=result||constraint;}}else{if($.isPlainObject(constraints)){for(const n in constraints)if(constraints.hasOwnProperty(n)){result=ternary(result,this.checkConstraints(constraints[n],selector,n));if(result===false)return false;}}}return result;},checkConstraints(value,selector,state){if(typeof state!=='string'||/[0-9]/.test(state[0]))state=null;else{if(typeof selector==='undefined'){selector=state;state=null;}}if(state!==null){state=states.State.sanitize(state);return invert(this.compare(value,selector,state),state.invert);}return this.verifyConstraints(value,selector);},getDependees(){const cache={};const _compare=this.compare;
218this.compare=function(reference,selector,state){(cache[selector]||(cache[selector]=[])).push(state.name);};this.verifyConstraints(this.constraints);this.compare=_compare;return cache;}};states.Trigger=function(args){$.extend(this,args);if(this.state in states.Trigger.states){this.element=$(this.selector);if(!this.element.data(`trigger:${this.state}`))this.initialize();}};states.Trigger.prototype={initialize(){const trigger=states.Trigger.states[this.state];if(typeof trigger==='function')trigger.call(window,this.element);else Object.keys(trigger||{}).forEach((event)=>{this.defaultTrigger(event,trigger[event]);});this.element.data(`trigger:${this.state}`,true);},defaultTrigger(event,valueFn){let oldValue=valueFn.call(this.element);this.element.on(event,function(e){const value=valueFn.call(this.element,e);if(oldValue!==value){this.element.trigger({type:`state:${this.state}`,value,oldValue});oldValue=value;}}.bind(this));states.postponed.push(function(){this.element.trigger({type:`state:${this.state}`,value:oldValue,oldValue:null});}.bind(this));}};states.Trigger.states={empty:{keyup(){return this.val()==='';},change(){return this.val()==='';}},checked:{change(){let checked=false;this.each(function(){checked=$(this).prop('checked');return !checked;});return checked;}},value:{keyup(){if(this.length>1)return this.filter(':checked').val()||false;return this.val();},change(){if(this.length>1)return this.filter(':checked').val()||false;return this.val();}},collapsed:{collapsed(e){return typeof e!=='undefined'&&'value' in e?e.value:!this[0].hasAttribute('open');}}};states.State=function(state){this.pristine=state;this.name=state;let process=true;do{while(this.name.charAt(0)==='!'){this.name=this.name.substring(1);this.invert=!this.invert;}if(this.name in states.State.aliases)this.name=states.State.aliases[this.name];else process=false;}while(process);};states.State.sanitize=function(state){if(state instanceof states.State)return state;return new states.State(state);};states.State.aliases={enabled:'!disabled',invisible:'!visible',invalid:'!valid',untouched:'!touched',optional:'!required',filled:'!empty',unchecked:'!checked',irrelevant:'!relevant',expanded:'!collapsed',open:'!collapsed',closed:'collapsed',readwrite:'!readonly'};states.State.prototype={invert:false,toString(){return this.name;}};const $document=$(document);$document.on('state:disabled',(e)=>{const tagsSupportDisable='button, fieldset, optgroup, option, select, textarea, input';if(e.trigger)$(e.target).closest('.js-form-item, .js-form-submit, .js-form-wrapper').toggleClass('form-disabled',e.value).find(tagsSupportDisable).addBack(tagsSupportDisable).prop('disabled',e.value);});$document.on('state:readonly',(e)=>{if(e.trigger)$(e.target).closest('.js-form-item, .js-form-submit, .js-form-wrapper').toggleClass('form-readonly',e.value).find('input, textarea').prop('readonly',e.value);});$document.on('state:required',(e)=>{if(e.trigger)if(e.value){const label=`label${e.target.id?`[for=${e.target.id}]`:''}`;const $label=$(e.target).attr({required:'required','aria-required':'true'}).closest('.js-form-item, .js-form-wrapper').find(label);if(!$label.hasClass('js-form-required').length)$label.addClass('js-form-required form-required');}else $(e.target).removeAttr('required aria-required').closest('.js-form-item, .js-form-wrapper').find('label.js-form-required').removeClass('js-form-required form-required');});$document.on('state:visible',(e)=>{if(e.trigger){let $element=$(e.target).closest('.js-form-item, .js-form-submit, .js-form-wrapper');if(e.target.tagName==='A')$element=$(e.target);$element.toggle(e.value);}});$document.on('state:checked',(e)=>{if(e.trigger)$(e.target).closest('.js-form-item, .js-form-wrapper').find('input').prop('checked',e.value).trigger('change');});$document.on('state:collapsed',(e)=>{if(e.trigger)if(e.target.hasAttribute('open')===e.value)$(e.target).find('> summary').trigger('click');});})(jQuery,Drupal);;
219(function($,Drupal,once){Drupal.webform=Drupal.webform||{};Drupal.webform.states=Drupal.webform.states||{};Drupal.webform.states.slideDown=Drupal.webform.states.slideDown||{};Drupal.webform.states.slideDown.duration='slow';Drupal.webform.states.slideUp=Drupal.webform.states.slideUp||{};Drupal.webform.states.slideUp.duration='fast';$.fn.hasData=function(data){return (typeof this.data(data)!=='undefined');};$.fn.isWebform=function(){return $(this).closest('form.webform-submission-form, form[id^="webform"], form[data-is-webform]').length?true:false;};$.fn.isWebformElement=function(){return ($(this).isWebform()||$(this).closest('[data-is-webform-element]').length)?true:false;};Drupal.states.Trigger.states.empty.change=function change(){return this.val()==='';};Drupal.states.Dependent.comparisons.Object=function(reference,value){if('pattern' in reference)return (new RegExp(reference['pattern'])).test(value);else if('!pattern' in reference)return !((new RegExp(reference['!pattern'])).test(value));else if('less' in reference)return (value!==''&&parseFloat(reference['less'])>parseFloat(value));else if('less_equal' in reference)return (value!==''&&parseFloat(reference['less_equal'])>=parseFloat(value));else if('greater' in reference)return (value!==''&&parseFloat(reference['greater'])<parseFloat(value));else if('greater_equal' in reference)return (value!==''&&parseFloat(reference['greater_equal'])<=parseFloat(value));else if('between' in reference||'!between' in reference){if(value==='')return false;var between=reference['between']||reference['!between'];var betweenParts=between.split(':');var greater=betweenParts[0];var less=(typeof betweenParts[1]!=='undefined')?betweenParts[1]:null;var isGreaterThan=(greater===null||greater===''||parseFloat(value)>=parseFloat(greater));var isLessThan=(less===null||less===''||parseFloat(value)<=parseFloat(less));var result=(isGreaterThan&&isLessThan);return (reference['!between'])?!result:result;}else return reference.indexOf(value)!==false;};var $document=$(document);$document.on('state:required',function(e){if(e.trigger&&$(e.target).isWebformElement()){var $target=$(e.target);toggleRequired($target.find('input[type="file"]'),e.value);if($target.is('.js-form-type-radios, .js-form-type-webform-radios-other, .js-webform-type-radios, .js-webform-type-webform-radios-other, .js-webform-type-webform-entity-radios, .webform-likert-table')){$target.toggleClass('required',e.value);toggleRequired($target.find('input[type="radio"]'),e.value);}if($target.is('.js-form-type-checkboxes, .js-form-type-webform-checkboxes-other, .js-webform-type-checkboxes, .js-webform-type-webform-checkboxes-other')){$target.toggleClass('required',e.value);var $checkboxes=$target.find('input[type="checkbox"]');if(e.value){$checkboxes.on('click',statesCheckboxesRequiredEventHandler);checkboxesRequired($target);}else{$checkboxes.off('click',statesCheckboxesRequiredEventHandler);toggleRequired($checkboxes,false);}}if($target.is('.js-webform-tableselect')){$target.toggleClass('required',e.value);var isMultiple=$target.is('[multiple]');if(isMultiple){var $tbody=$target.find('tbody');var $checkboxes=$tbody.find('input[type="checkbox"]');copyRequireMessage($target,$checkboxes);if(e.value){$checkboxes.on('click change',statesCheckboxesRequiredEventHandler);checkboxesRequired($tbody);}else{$checkboxes.off('click change ',statesCheckboxesRequiredEventHandler);toggleRequired($tbody,false);}}else{var $radios=$target.find('input[type="radio"]');copyRequireMessage($target,$radios);toggleRequired($radios,e.value);}}if($target.is('.js-form-type-webform-select-other, .js-webform-type-webform-select-other')){var $select=$target.find('select');toggleRequired($select,e.value);copyRequireMessage($target,$select);}if($target.find('> label:not([for])').length)$target.find('> label').toggleClass('js-form-required form-required',e.value);if($target.is('.js-webform-type-radios, .js-webform-type-checkboxes, fieldset'))$target.find('legend span.fieldset-legend:not(.visually-hidden),legend span.fieldset__label:not(.visually-hidden)').toggleClass('js-form-required form-required',e.value);if($target.is('fieldset'))$target.removeAttr('required aria-required');}});$document.on('state:checked',function(e){if(e.trigger)$(e.target).trigger('change');});$document.on('state:readonly',function(e){if(e.trigger&&$(e.target).isWebformElement()){$(e.target).prop('readonly',e.value).closest('.js-form-item, .js-form-wrapper').toggleClass('webform-readonly',e.value).find('input, textarea').prop('readonly',e.value);$(e.target).trigger('webform:readonly').find('select, input, textarea, button').trigger('webform:readonly');}});$document.on('state:visible state:visible-slide',function(e){if(e.trigger&&$(e.target).isWebformElement())if(e.value)$(':input',e.target).addBack().each(function(){restoreValueAndRequired(this);triggerEventHandlers(this);});else $(':input',e.target).addBack().each(function(){backupValueAndRequired(this);clearValueAndRequired(this);triggerEventHandlers(this);});});$document.on('state:visible-slide',function(e){if(e.trigger&&$(e.target).isWebformElement()){var effect=e.value?'slideDown':'slide
219Up';var duration=Drupal.webform.states[effect].duration;$(e.target).closest('.js-form-item, .js-form-submit, .js-form-wrapper')[effect](duration);}});Drupal.states.State.aliases['invisible-slide']='!visible-slide';$document.on('state:disabled',function(e){if(e.trigger&&$(e.target).isWebformElement()){$(e.target).prop('disabled',e.value).closest('.js-form-item, .js-form-submit, .js-form-wrapper').toggleClass('form-disabled',e.value).find('select, input, textarea, button').prop('disabled',e.value);var fileElements=$(e.target).find(':input[type="hidden"][name$="[fids]"]');if(fileElements.length){if($(e.target).is('fieldset'))$(e.target).prop('disabled',false);fileElements.removeAttr('disabled');}$(e.target).trigger('webform:disabled').find('select, input, textarea, button').trigger('webform:disabled');}});Drupal.behaviors.webformCheckboxesRequired={attach(context){$(once('webform-checkboxes-required','.js-form-type-checkboxes.required, .webform-term-checkboxes.required, .js-form-type-webform-checkboxes-other.required, .js-webform-type-checkboxes.required, .js-webform-type-webform-checkboxes-other.required, .js-webform-type-webform-radios-other.checkboxes',context)).each(function(){var $element=$(this);$element.find('input[type="checkbox"]').on('click',statesCheckboxesRequiredEventHandler);setTimeout(function(){checkboxesRequired($element);});});}};Drupal.behaviors.webformRadiosRequired={attach(context){$(once('webform-radios-required','.js-form-type-radios, .js-form-type-webform-radios-other, .js-webform-type-radios, .js-webform-type-webform-radios-other, .js-webform-type-webform-entity-radios, .js-webform-type-webform-scale',context)).each(function(){var $element=$(this);setTimeout(function(){radiosRequired($element);});});}};Drupal.behaviors.webformTableSelectRequired={attach(context){$(once('webform-tableselect-required','.js-webform-tableselect.required',context)).each(function(){var $element=$(this);var $tbody=$element.find('tbody');var isMultiple=$element.is('[multiple]');if(isMultiple)$tbody.find('input[type="checkbox"]').on('click change',function(){checkboxesRequired($tbody);});setTimeout(function(){isMultiple?checkboxesRequired($tbody):radiosRequired($element);});});}};function checkboxesRequired($element){var $firstCheckbox=$element.find('input[type="checkbox"]').first();var isChecked=$element.find('input[type="checkbox"]').is(':checked');toggleRequired($firstCheckbox,!isChecked);copyRequireMessage($element,$firstCheckbox);}function radiosRequired($element){var $radios=$element.find('input[type="radio"]');var isRequired=$element.hasClass('required');toggleRequired($radios,isRequired);copyRequireMessage($element,$radios);}function statesCheckboxesRequiredEventHandler(){var $element=$(this).closest('.js-webform-type-checkboxes, .js-webform-type-webform-checkboxes-other, .js-webform-type-webform-term-checkboxes, .js-webform-tableselect tbody');checkboxesRequired($element);}function triggerEventHandlers(input){var $input=$(input);var type=input.type;var tag=input.tagName.toLowerCase();var extraParameters=['webform.states'];if(type==='checkbox'||type==='radio')$input.trigger('change',extraParameters).trigger('blur',extraParameters);else if(tag==='select'){if($input.closest('.webform-type-address').length){if(!$input.data('webform-states-address-initialized')&&$input.attr('autocomplete')==='country'&&$input.val()===$input.find("option[selected]").attr('value'))return;$input.data('webform-states-address-initialized',true);}$input.trigger('change',extraParameters).trigger('blur',extraParameters);}else{if(type!=='submit'&&type!=='button'&&type!=='file'){var hasInputMask=($.fn.inputmask&&$input.hasClass('js-webform-input-mask'));hasInputMask&&$input.inputmask('remove');$input.trigger('input',extraParameters).trigger('change',extraParameters).trigger('keydown',extraParameters).trigger('keyup',extraParameters).trigger('blur',extraParameters);hasInputMask&&$input.inputmask();}}}function backupValueAndRequired(input){var $input=$(input);var type=input.type;var tag=input.tagName.toLowerCase();if($input.prop('required')&&!$input.hasData('webform-required'))$input.data('webform-required',true);if(!$input.hasData('webform-value'))if(type==='checkbox'||type==='radio')$input.data('webform-value',$input.prop('checked'));else if(tag==='select'){var values=[];$input.find('option:selected').each(function(i,option){values[i]=option.value;});$input.data('webform-value',values);}else{if(type!=='submit'&&type!=='button')$input.data('webform-value',input.value);}}function restoreValueAndRequired(input){var $input=$(input);var value=$input.data('webform-value');
219if(typeof value!=='undefined'){var type=input.type;var tag=input.tagName.toLowerCase();if(type==='checkbox'||type==='radio')$input.prop('checked',value);else if(tag==='select')$.each(value,function(i,option_value){option_value=option_value.replace(/'/g,"\\\'");$input.find("option[value='"+option_value+"']").prop('selected',true);});else{if(type!=='submit'&&type!=='button')input.value=value;}$input.removeData('webform-value');}var required=$input.data('webform-required');if(typeof required!=='undefined'){if(required)$input.prop('required',true);$input.removeData('webform-required');}}function clearValueAndRequired(input){var $input=$(input);if($input.closest('[data-webform-states-no-clear]').length)return;var type=input.type;var tag=input.tagName.toLowerCase();if(type==='checkbox'||type==='radio')$input.prop('checked',false);else if(tag==='select')if($input.find('option[value=""]').length)$input.val('');else input.selectedIndex=-1;else{if(type!=='submit'&&type!=='button')input.value=(type==='color')?'#000000':'';}$input.prop('required',false);}function toggleRequired($input,required){var isCheckboxOrRadio=($input.attr('type')==='radio'||$input.attr('type')==='checkbox');if(required)if(isCheckboxOrRadio)$input.attr({'required':'required'});else $input.attr({'required':'required','aria-required':'true'});else{if(isCheckboxOrRadio)$input.removeAttr('required');else $input.removeAttr('required aria-required');$input.each(function(){this.setCustomValidity&&this.setCustomValidity('');});}}function copyRequireMessage($source,$destination){if($source.attr('data-msg-required'))$destination.attr('data-msg-required',$source.attr('data-msg-required'));}})(jQuery,Drupal,once);;
220(function($,Drupal,once){Drupal.behaviors.webformRemoveFormSingleSubmit={attach:function attach(){function onFormSubmit(e){var $form=$(e.currentTarget);$form.removeAttr('data-drupal-form-submit-last');}$(once('webform-single-submit','body')).on('submit.singleSubmit','form.webform-remove-single-submit',onFormSubmit);}};Drupal.behaviors.webformDisableAutoSubmit={attach(context){$(once('webform-disable-autosubmit',$('.js-webform-disable-autosubmit input').not(':button, :submit, :reset, :image, :file'))).on('keyup keypress',function(e){if(e.which===13){e.preventDefault();return false;}});}};Drupal.behaviors.webformRequiredError={attach(context){$(once('webform-required-error',$(context).find(':input[data-webform-required-error], :input[data-webform-pattern-error]'))).on('invalid',function(){this.setCustomValidity('');if(this.valid)return;if(this.validity.patternMismatch&&$(this).attr('data-webform-pattern-error'))this.setCustomValidity($(this).attr('data-webform-pattern-error'));else{if(this.validity.valueMissing&&$(this).attr('data-webform-required-error'))this.setCustomValidity($(this).attr('data-webform-required-error'));}}).on('input change',function(){var name=$(this).attr('name');$(this.form).find(':input[name="'+name+'"]').each(function(){this.setCustomValidity('');});});}};$(document).on('state:required',function(e){$(e.target).filter(':input[data-webform-required-error]').each(function(){this.setCustomValidity('');});});})(jQuery,Drupal,once);;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.