PageSourceSearch

https://foodindustry.asia/i/libraries/apex/minified/desktop_all.min.js?v=24.2.0

js foodindustry.asia collected 2026-09-25 14:16:43 UTC 696,759 bytes, 69 lines download raw bytes

vendor: 26,070 bytes, lines 1-5
1/*!
2 * Copyright (c) 1999, 2025, Oracle and/or its affiliates.
3 */
4/*! jQuery v3.6.4 | (c) OpenJS Foundation and other contributors | jquery.org/license */
5!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var n=[],r=Object.getPrototypeOf,i=n.slice,o=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},a=n.push,s=n.indexOf,u={},l=u.toString,c=u.hasOwnProperty,f=c.toString,p=f.call(Object),d={},h=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},g=function(e){return null!=e&&e===e.window},v=e.document,y={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||v).createElement("script");if(o.text=e,t)for(r in y)(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?u[l.call(e)]||"object":typeof e}var b="3.6.4",w=function(e,t){return new w.fn.init(e,t)};function T(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!h(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}w.fn=w.prototype={jquery:b,constructor:w,length:0,toArray:function(){return i.call(this)},get:function(e){return null==e?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(w.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:a,sort:n.sort,splice:n.splice},w.extend=w.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||h(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&&(w.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||w.isPlainObject(n)?n:{},i=!1,a[t]=w.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},w.extend({expando:"jQuery"+(b+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]"!==l.call(e)||(t=r(e))&&("function"!=typeof(n=c.call(t,"constructor")&&t.constructor)||f.call(n)!==p))},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(T(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?w.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:s.call(t,e,n)},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,a=0,s=[];if(T(e))for(r=e.length;a<r;a++)null!=(i=t(e[a],a,n))&&s.push(i);else for(a in e)null!=(i=t(e[a],a,n))&&s.push(i);return o(s)},guid:1,support:d}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));var C=function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,v,y,m,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,E=ue(),S=ue(),k=ue(),A=ue(),N=function(e,t){return e===t&&(f=!0),0},j={}.hasOwnProperty,D=[],q=D.pop,L=D.push,H=D.push,O=D.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",$=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){p()},ae=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{H.apply(D=O.call(w.childNodes),w.childNodes),D[w.childNodes.length].nodeType}catch(t){H={apply:D.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,l,c,f,h,y,m=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&(p(t),t=t||d,g)){if(11!==w&&(f=Z.exec(e)))if(o=f[1]){if(9===w){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return H.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return H.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!A[e+" "]&&(!v||!v.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(y=e,m=t,1===w&&(U.test(e)||z.test(e))){for((m=ee.test(e)&&ye(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=b)),s=(h=a(e)).length;s--;)h[s]=(c?"#"+c:":scope")+" "+xe(h[s]);y=h.join(",")}try{return H.apply(r,m.querySelectorAll(y)),r}catch(t){A(e,!0)}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(B,"$1"),t,r,i)}function ue(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function le(e){return e[b]=!0,e}function ce(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return le((function(t){return t=+t,le((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!=d&&9===a.nodeType&&a.documentElement&&(h=(d=a).documentElement,g=!o(d),w!=d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ce((function(e){return h.appendChild(e).appendChild(d.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.cssHas=ce((function(){try{return d.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],v=[],(n.qsa=K.test(d.querySelectorAll))&&(ce((function(e){var t;h.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+b+"-]").length||v.push("~="),(t=d.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=K.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=m.call(e,"*"),m.call(e,"[s!='']:x"),y.push("!=",F)})),n.cssHas||v.push(":has"),v=v.length&&new RegExp(v.join("|")),y=y.length&&new RegExp(y.join("|")),t=K.test(h.compareDocumentPosition),x=t||K.test(h.contains)?function(e,t){var n=9===e.nodeType&&e.documentElement||e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==d||e.ownerDocument==w&&x(w,e)?-1:t==d||t.ownerDocument==w&&x(w,t)?1:c?P(c,e)-P(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==d?-1:t==d?1:i?-1:o?1:c?P(c,e)-P(c,t):0;if(i===o)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0}),d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&g&&!A[t+" "]&&(!y||!y.test(t))&&(!v||!v.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){A(t,!0)}return 0<se(t,d,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=d&&p(e),x(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=d&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&j.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(N),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:le,match:G,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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.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]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&E(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&-1<i.indexOf(n):"$="===t?n&&i.slice(-n.length)===n:"~="===t?-1<(" "+i.replace($," ")+" ").indexOf(n):"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",v=t.parentNode,y=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(v){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&m){for(x=(d=(l=(c=(f=(p=v)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&v.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++x||(m&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p!==t)););return(x-=i)===r||x%r==0&&0<=x/r}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[b]?i(t):1<i.length?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=P(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:le((function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[b]?le((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return 0<se(e,t).length}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return-1<(t.textContent||i(t)).indexOf(e)}})),lang:le((function(e){return V.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!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!r.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve((function(){return[0]})),last:ve((function(e,t){return[t-1]})),eq:ve((function(e,t,n){return[n<0?n+t:n]})),even:ve((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ve((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ve((function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e})),gt:ve((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,p=[T,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[b]||(t[b]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===T&&l[1]===s)return p[2]=l[2];if((c[o]=p)[2]=e(t,n,u))return!0}return!1}}function we(e){return 1<e.length?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Te(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 Ce(e,t,n,r,i,o){return r&&!r[b]&&(r=Ce(r)),i&&!i[b]&&(i=Ce(i,o)),le((function(o,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?g:Te(g,p,e,s,u),y=n?i||(o?e:h||r)?[]:a:v;if(n&&n(v,y,s,u),r)for(l=Te(y,d),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(y[d[c]]=!(v[d[c]]=f));if(o){if(i||e){if(i){for(l=[],c=y.length;c--;)(f=y[c])&&l.push(v[c]=f);i(null,y=[],l,u)}for(c=y.length;c--;)(f=y[c])&&-1<(l=i?P(o,f):p[c])&&(o[l]=!(a[l]=f))}}else y=Te(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)}))}function Ee(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=be((function(e){return e===t}),s,!0),f=be((function(e){return-1<P(t,e)}),s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])p=[be(we(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[b]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return Ce(1<u&&we(p),1<u&&xe(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(B,"$1"),n,u<i&&Ee(e.slice(u,i)),i<o&&Ee(e=e.slice(i)),i<o&&xe(e))}p.push(n)}return we(p)}return me.prototype=r.filters=r.pseudos,r.setFilters=new me,a=se.tokenize=function(e,t){var n,i,o,a,s,u,l,c=S[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(i=_.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(i=G[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):S(e,u).slice(0)},s=se.compile=function(e,t){var n,i,o,s,u,c,f=[],h=[],v=k[e+" "];if(!v){for(t||(t=a(e)),n=t.length;n--;)(v=Ee(t[n]))[b]?f.push(v):h.push(v);(v=k(e,(i=h,s=0<(o=f).length,u=0<i.length,c=function(e,t,n,a,c){var f,h,v,y=0,m="0",x=e&&[],b=[],w=l,C=e||u&&r.find.TAG("*",c),E=T+=null==w?1:Math.random()||.1,S=C.length;for(c&&(l=t==d||t||c);m!==S&&null!=(f=C[m]);m++){if(u&&f){for(h=0,t||f.ownerDocument==d||(p(f),n=!g);v=i[h++];)if(v(f,t||d,n)){a.push(f);break}c&&(T=E)}s&&((f=!v&&f)&&y--,e&&x.push(f))}if(y+=m,s&&m!==y){for(h=0;v=o[h++];)v(x,b,t,n);if(e){if(0<y)for(;m--;)x[m]||b[m]||(b[m]=q.call(a));b=Te(b)}H.apply(a,b),c&&!e&&0<b.length&&1<y+o.length&&se.uniqueSort(a)}return c&&(T=E,l=w),x},s?le(c):c))).selector=e}return v},u=se.select=function(e,t,n,i){var o,u,l,c,f,p="function"==typeof e&&e,d=!i&&a(e=p.selector||e);if(n=n||[],1===d.length){if(2<(u=d[0]=d[0].slice(0)).length&&"ID"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(o=G.needsContext.test(e)?0:u.length;o--&&(l=u[o],!r.relative[c=l.type]);)if((f=r.find[c])&&(i=f(l.matches[0].replace(te,ne),ee.test(u[0].type)&&ye(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&xe(u)))return H.apply(n,i),n;break}}return(p||s(e,d))(i,t,!g,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=b.split("").sort(N).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||fe(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(e);w.find=C,w.expr=C.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=C.uniqueSort,w.text=C.getText,w.isXMLDoc=C.isXML,w.contains=C.contains,w.escapeSelector=C.escape;var E=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&w(e).is(n))break;r.push(e)}return r},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=w.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return h(t)?w.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?w.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?w.grep(e,(function(e){return-1<s.call(t,e)!==n})):w.filter(t,e,n)}w.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,(function(e){return 1===e.nodeType})))},w.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(w(e).filter((function(){for(t=0;t<r;t++)if(w.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)w.find(e,i[t],n);return 1<r?w.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&k.test(e)?w(e):e||[],!1).length}});var D,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.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 w?t[0]:t,w.merge(this,w.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),N.test(r[1])&&w.isPlainObject(t))for(r in t)h(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=v.getElementById(r[2]))&&(this[0]=i,this.length=1),this}
vendor: 4,188 bytes, line 5
5return e.nodeType?(this[0]=e,this.length=1,this):h(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,D=w(v);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&w(e);if(!k.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&&w.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?w.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?s.call(w(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E(e,"parentNode")},parentsUntil:function(e,t,n){return E(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return E(e,"nextSibling")},prevAll:function(e){return E(e,"previousSibling")},nextUntil:function(e,t,n){return E(e,"nextSibling",n)},prevUntil:function(e,t,n){return E(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},(function(e,t){w.fn[e]=function(n,r){var i=w.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=w.filter(r,i)),1<this.length&&(H[e]||w.uniqueSort(i),L.test(e)&&i.reverse()),this.pushStack(i)}}));var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&h(i=e.promise)?i.call(e).done(t).fail(n):e&&h(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},w.each(t.match(P)||[],(function(e,t){n[t]=!0})),n):w.extend({},e);var r,i,o,a,s=[],u=[],l=-1,c=function(){for(a=a||e.once,o=r=!0;u.length;l=-1)for(i=u.shift();++l<s.length;)!1===s[l].apply(i[0],i[1])&&e.stopOnFalse&&(l=s.length,i=!1);e.memory||(i=!1),r=!1,a&&(s=i?[]:"")},f={add:function(){return s&&(i&&!r&&(l=s.length-1,u.push(i)),function t(n){w.each(n,(function(n,r){h(r)?e.unique&&f.has(r)||s.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),i&&!r&&c()),this},remove:function(){return w.each(arguments,(function(e,t){for(var n;-1<(n=w.inArray(t,s,n));)s.splice(n,1),n<=l&&l--})),this},has:function(e){return e?-1<w.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=i="",this},disabled:function(){return!s},lock:function(){return a=u=[],i||r||(s=i=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),r||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},w.extend({Deferred:function(t){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return w.Deferred((function(t){w.each(n,(function(n,r){var i=h(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&h(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;
vendor: 8,010 bytes, line 5
5if(!(t<o)){if((e=r.apply(s,u))===n.promise())throw new TypeError("Thenable self-resolution");l=e&&("object"==typeof e||"function"==typeof e)&&e.then,h(l)?i?l.call(e,a(o,n,R,i),a(o,n,M,i)):(o++,l.call(e,a(o,n,R,i),a(o,n,M,i),a(o,n,R,n.notifyWith))):(r!==R&&(s=void 0,u=[e]),(i||n.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,c.stackTrace),o<=t+1&&(r!==M&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred((function(e){n[0][3].add(a(0,e,h(i)?i:R,e.notifyWith)),n[1][3].add(a(0,e,h(t)?t:R)),n[2][3].add(a(0,e,h(r)?r:M))})).promise()},promise:function(e){return null!=e?w.extend(e,i):i}},o={};return w.each(n,(function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add((function(){r=s}),n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),o=i.call(arguments),a=w.Deferred(),s=function(e){return function(n){r[e]=this,o[e]=1<arguments.length?i.call(arguments):n,--t||a.resolveWith(r,o)}};if(t<=1&&(I(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||h(o[n]&&o[n].then)))return a.then();for(;n--;)I(o[n],s(n),a.reject);return a.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&W.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},w.readyException=function(t){e.setTimeout((function(){throw t}))};var F=w.Deferred();function $(){v.removeEventListener("DOMContentLoaded",$),e.removeEventListener("load",$),w.ready()}w.fn.ready=function(e){return F.then(e).catch((function(e){w.readyException(e)})),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0)!==e&&0<--w.readyWait||F.resolveWith(v,[w])}}),w.ready.then=F.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?e.setTimeout(w.ready):(v.addEventListener("DOMContentLoaded",$),e.addEventListener("load",$));var B=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)B(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,h(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(w(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},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=w.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(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[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(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(X):(t=X(t))in r?[t]:t.match(P)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||w.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&&!w.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),w.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Q.set(this,e)})):B(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=Q.get(o,e))||void 0!==(n=Z(o,e))?n:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),w.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,w.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),r=n.length,i=n.shift(),o=w._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){w.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:w.Callbacks("once memory").add((function(){Y.remove(e,[t+"queue",n])}))})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each((function(){var n=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&w.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){w.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=w.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=v.documentElement,ie=function(e){return w.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return w.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===w.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return w.css(e,t,"")},u=s(),l=n&&n[3]||(w.cssNumber[t]?"":"px"),c=e.nodeType&&(w.cssNumber[t]||"px"!==l&&+u)&&te.exec(w.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)w.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,w.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 ue={};function le(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]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=w.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}w.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ae(this)?w(this).show():w(this).hide()}))}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=v.createDocumentFragment().appendChild(v.createElement("div")),(fe=v.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),d.checkClone
vendor: 5,855 bytes, line 5
5=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",d.option=!!ce.lastChild;var ge={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 ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?w.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,d.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(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))w.merge(p,o.nodeType?[o]:o);else if(me.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+w.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;w.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));for(f.textContent="",d=0;o=p[d++];)if(r&&-1<w.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n)for(c=0;o=a[c++];)he.test(o.type||"")&&n.push(o);return f}var be=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Te(){return!1}function Ce(e,t){return e===function(){try{return v.activeElement}catch(e){}}()==("focus"===t)}function Ee(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)Ee(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=Te;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each((function(){w.event.add(this,t,i,r,n)}))}function Se(e,t,n){n?(Y.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var r,o,a=Y.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=i.call(arguments),Y.set(this,t,a),r=n(this,t),this[t](),a!==(o=Y.get(this,t))||r?Y.set(this,t,!1):o={},a!==o)return e.stopImmediatePropagation(),e.preventDefault(),o&&o.value}else a.length&&(Y.set(this,t,{value:w.event.trigger(w.extend(a[0],w.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,t)&&w.event.add(e,t,we)}w.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(e);if(V(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&w.find.matchesSelector(re,i),n.guid||(n.guid=w.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(P)||[""]).length;l--;)d=g=(s=be.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=w.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=w.event.special[d]||{},c=w.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&w.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),w.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(P)||[""]).length;l--;)if(d=g=(s=be.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=w.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;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)||w.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)w.event.remove(e,d+t[l],n,r,!0);w.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=w.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=w.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)){for(a=w.event.handlers.call(this,u,l),t=0;(i=a[t++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(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=((w.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<w(i,this).index(l):w.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(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:h(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]}
vendor: 2,311 bytes, line 5
5,set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click",we),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Te,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&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.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},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},(function(e,t){w.event.special[e]={setup:function(){return Se(this,e,Ce),!1},trigger:function(){return Se(this,e),!0},_default:function(t){return Y.get(t.target,e)},delegateType:t}}
vendor: 6,040 bytes, line 5
5)),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||w.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),w.fn.extend({on:function(e,t,n,r){return Ee(this,e,t,n,r)},one:function(e,t,n,r){return Ee(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,w(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=Te),this.each((function(){w.event.remove(this,e,n,t)}))}});var ke=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)w.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=w.extend({},o),Q.set(t,a))}}function He(e,t,n,r){t=o(t);var i,a,s,u,l,c,f=0,p=e.length,g=p-1,v=t[0],y=h(v);if(y||1<p&&"string"==typeof v&&!d.checkClone&&Ae.test(v))return e.each((function(i){var o=e.eq(i);y&&(t[0]=v.call(this,i,o.html())),He(o,t,n,r)}));if(p&&(a=(i=xe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=a),a||r)){for(u=(s=w.map(ve(i,"script"),De)).length;f<p;f++)l=i,f!==g&&(l=w.clone(l,!0,!0),u&&w.merge(s,ve(l,"script"))),n.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,w.map(s,qe),f=0;f<u;f++)l=s[f],he.test(l.type||"")&&!Y.access(l,"globalEval")&&w.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?w._evalUrl&&!l.noModule&&w._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):m(l.textContent.replace(Ne,""),l,c))}return e}function Oe(e,t,n){for(var r,i=t?w.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||w.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}w.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],"input"===(l=(u=a[r]).nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Le(o[r],a[r]);else Le(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=w.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?w.event.remove(n,r):w.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return B(this,(function(e){return void 0===e?w.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 He(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)}))},prepend:function(){return He(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return He(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return He(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&&(w.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return w.clone(this,e,t)}))},html:function(e){return B(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&&!ke.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return He(this,arguments,(function(t){var n=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(ve(this)),n&&n.replaceChild(t,this))}),e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){w.fn[e]=function(e){for(var n,r=[],i=w(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),w(i[s])[t](n),a.apply(r,n.get());return this.pushStack(r)}}));var Pe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Re=/^--/,Me=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Ie=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},We=new RegExp(ne.join("|"),"i"),Fe="[\\x20\\t\\r\\n\\f]",$e=new RegExp("^"+Fe+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Fe+"+$","g");function Be(e,t,n){var r,i,o,a,s=Re.test(t),u=e.style;return(n=n||Me(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace($e,"$1")||void 0),""!==a||ie(e)||(a=w.style(e,t)),!d.pixelBoxStyles()&&Pe.test(a)&&We.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 _e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;
5left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);r="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",a=36===n(t.right),i=36===n(t.width),c.style.position="absolute",o=12===n(c.offsetWidth/3),re.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var r,i,o,a,s,u,l=v.createElement("div"),c=v.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===c.style.backgroundClip,w.extend(d,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,r,i;return null==s&&(t=v.createElement("table"),n=v.createElement("tr"),r=v.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",r.style.height="9px",r.style.display="block",re.appendChild(t).appendChild(n).appendChild(r),i=e.getComputedStyle(n),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight,re.removeChild(t)),s}}))}();var ze=["Webkit","Moz","ms"],Ue=v.createElement("div").style,Xe={};function Ve(e){return w.cssProps[e]||Xe[e]||(e in Ue?e:Xe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=ze.length;n--;)if((e=ze[n]+t)in Ue)return e}(e)||e)}var Ge=/^(none|table(?!-c[ea]).+)/,Ye={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function Je(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ke(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=w.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=w.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=w.css(e,"border"+ne[a]+"Width",!0,i))):(u+=w.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=w.css(e,"border"+ne[a]+"Width",!0,i):s+=w.css(e,"border"+ne[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}function Ze(e,t,n){var r=Me(e),i=(!d.boxSizingReliable()||n)&&"border-box"===w.css(e,"boxSizing",!1,r),o=i,a=Be(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Pe.test(a)){if(!n)return a;a="auto"}return(!d.boxSizingReliable()&&i||!d.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===w.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===w.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Ke(e,t,n||(i?"border":"content"),o,r,a)+"px"}function et(e,t,n,r,i){return new et.prototype.init(e,t,n,r,i)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Be(e,"o
5pacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!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,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Re.test(t),l=e.style;if(u||(t=Ve(s)),a=w.cssHooks[t]||w.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=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(w.cssNumber[s]?"":"px")),d.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=X(t);return Re.test(t)||(t=Ve(s)),(a=w.cssHooks[t]||w.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Be(e,t,r)),"normal"===i&&t in Qe&&(i=Qe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),w.each(["height","width"],(function(e,t){w.cssHooks[t]={get:function(e,n,r){if(n)return!Ge.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,t,r):Ie(e,Ye,(function(){return Ze(e,t,r)}))},set:function(e,n,r){var i,o=Me(e),a=!d.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===w.css(e,"boxSizing",!1,o),u=r?Ke(e,t,r,s,o):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Ke(e,t,"border",!1,o)-.5)),u&&(i=te.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),Je(0,n,u)}}})),w.cssHooks.marginLeft=_e(d.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-Ie(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(e,t){w.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ne[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(w.cssHooks[e+t].set=Je)})),w.fn.extend({css:function(e,t){return B(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Me(e),i=t.length;a<i;a++)o[t[a]]=w.css(e,t[a],!1,r);return o}return void 0!==n?w.style(e,t,n):w.css(e,t)}),e,t,1<arguments.length)}}),((w.Tween=et).prototype={constructor:et,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=w.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):et.propHooks._default.set(this),this}}).init.prototype=et.prototype,(et.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=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[Ve(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=et.prototype.init,w.fx.step={};var tt,nt,rt,it,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){nt&&(!1===v.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(st):e.setTimeout(st,w.fx.interval),w.fx.tick())}function ut(){return e.setTimeout((function(){tt=void 0})),tt=Date.now()}function lt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ct(e,t,n){for(var r,i=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ft(e,t,n){var r,i,o=0,a=ft.prefilters.length,s=w.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var t=tt||ut(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:tt||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=w.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=w.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[
vendor: 5,078 bytes, line 5
5n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=ft.prefilters[o].call(l,e,c,l.opts))return h(r.stop)&&(w._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return w.map(c,ct,l),h(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),w.fx.timer(w.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}w.Animation=w.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){h(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.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&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=w._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--,w.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],ot.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]||w.style(e,r)}if((u=!w.isEmptyObject(t))||!w.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=w.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=w.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===w.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=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done((function(){for(r in g||le([e]),Y.remove(e,"fxshow"),d)w.style(e,r,d[r])}))),u=ct(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?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),w.speed=function(e,t,n){var r=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||h(e)&&e,duration:e,easing:n&&t||t&&!h(t)&&t};return w.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in w.fx.speeds?r.duration=w.fx.speeds[r.duration]:r.duration=w.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){h(r.old)&&r.old.call(this),r.queue&&w.dequeue(this,r.queue)},r},w.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=w.isEmptyObject(e),o=w.speed(t,n,r),a=function(){var t=ft(this,w.extend({},e),o);(i||Y.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=w.timers,a=Y.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&at.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||w.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Y.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=w.timers,a=r?r.length:0;for(n.finish=!0,w.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),w.each(["toggle","show","hide"],(function(e,t){var n=w.fn[t];w.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(lt(t,!0),e,r,i)}})),w.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){w.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(tt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),tt=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){nt||(nt=!0,st())},w.fx.stop=function(){nt=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,n){return t=w.fx&&w.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}}))},rt=v.createElement("input"),it=v.createElement("select").appendChild(v.createElement("option")),rt.type="checkbox",d.checkOn=""!==rt.value,d.optSelected=it.selected,(rt=v.createElement("input")).value="t",rt.type="radio",d.radioValue="t"===rt.value;var pt,dt=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return B(this,w.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each((function(){w.removeAttr(this,e)}))}}
vendor: 6,294 bytes, line 5
5),w.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?w.prop(e,t,n):(1===o&&w.isXMLDoc(e)||(i=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void w.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=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&A(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(P);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=dt[t]||w.find.attr;dt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=dt[a],dt[a]=i,i=null!=n(e,t,r)?a:null,dt[a]=o),i}}));var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function vt(e){return(e.match(P)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}w.fn.extend({prop:function(e,t){return B(this,w.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each((function(){delete this[w.propFix[e]||e]}))}}),w.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(e)||(t=w.propFix[t]||t,i=w.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=w.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(w.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)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(e){var t,n,r,i,o,a;return h(e)?this.each((function(t){w(this).addClass(e.call(this,t,yt(this)))})):(t=mt(e)).length?this.each((function(){if(r=yt(this),n=1===this.nodeType&&" "+vt(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=vt(n),r!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,r,i,o,a;return h(e)?this.each((function(t){w(this).removeClass(e.call(this,t,yt(this)))})):arguments.length?(t=mt(e)).length?this.each((function(){if(r=yt(this),n=1===this.nodeType&&" "+vt(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];-1<n.indexOf(" "+i+" ");)n=n.replace(" "+i+" "," ");a=vt(n),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,a=typeof e,s="string"===a||Array.isArray(e);return h(e)?this.each((function(n){w(this).toggleClass(e.call(this,n,yt(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=mt(e),this.each((function(){if(s)for(o=w(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==a||((r=yt(this))&&Y.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":Y.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+vt(yt(n))+" ").indexOf(t))return!0;return!1}});var xt=/\r/g;w.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=h(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,w(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=w.map(i,(function(e){return null==e?"":e+""}))),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=w.valHooks[i.type]||w.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(xt,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:vt(w.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||!A(n.parentNode,"optgroup"))){if(t=w(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=w.makeArray(t),a=i.length;a--;)((r=i[a]).selected=-1<w.inArray(w.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<w.inArray(w(e).val(),t)}},d.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),d.focusin="onfocusin"in e;var bt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,n,r,i){var o,a,s,u,l,f,p,d,y=[r||v],m=c.call(t,"type")?t.type:t,x=c.call(t,"namespace")?t.namespace.split("."):[];if(a=d=s=r=r||v,3!==r.nodeType&&8!==r.nodeType&&!bt.test(m+w.event.triggered)&&(-1<m.indexOf(".")&&(m=(x=m.split(".")).shift(),x.sort()),l=m.indexOf(":")<0&&"on"+m,(t=t[w.expando]?t:new w.Event(m,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=x.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:w.makeArray(n,[t]),p=w.event.special[m]||{},i||!p.trigger||!1!==p.trigger.apply(r,n))){if(!i&&!p.noBubble&&!g(r)){for(u=p.delegateType||m,bt.test(u+m)||(a=a.parentNode);a;a=a.parentNode)y.push(a),s=a;s===(r.ownerDocument||v)&&y.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=y[o++])&&!t.isPropagationStopped();)d=a,t.type=1<o?u:p.bindType||m,(f=(Y.get(a,"events")||Object.create(null))[t.type]&&Y.get(a,"handle"))&&f.apply(a,n),(f=l&&a[l])&&f.apply&&V(a)&&(t.result=f.apply(a,n),!1===t.result&&t.preventDefault());return t.type=m,i||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(y.pop(),n)||!V(r)||l&&h(r[m])&&!g
vendor: 5,584 bytes, line 5
5(r)&&((s=r[l])&&(r[l]=null),w.event.triggered=m,t.isPropagationStopped()&&d.addEventListener(m,wt),r[m](),t.isPropagationStopped()&&d.removeEventListener(m,wt),w.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each((function(){w.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),d.focusin||w.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=Y.access(r,t);i||r.addEventListener(e,n,!0),Y.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Y.access(r,t)-1;i?Y.access(r,t,i):(r.removeEventListener(e,n,!0),Y.remove(r,t))}}}));var Tt=e.location,Ct={guid:Date.now()},Et=/\?/;w.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){}return r=n&&n.getElementsByTagName("parsererror")[0],n&&!r||w.error("Invalid XML: "+(r?w.map(r.childNodes,(function(e){return e.textContent})).join("\n"):t)),n};var St=/\[\]$/,kt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,r){var i;if(Array.isArray(t))w.each(t,(function(t,i){n||St.test(e)?r(e,i):jt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==x(t))r(e,t);else for(i in t)jt(e+"["+i+"]",t[i],n,r)}w.param=function(e,t){var n,r=[],i=function(e,t){var n=h(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,(function(){i(this.name,this.value)}));else for(n in e)jt(n,e[n],t,i);return r.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Nt.test(this.nodeName)&&!At.test(e)&&(this.checked||!pe.test(e))})).map((function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,(function(e){return{name:t.name,value:e.replace(kt,"\r\n")}})):{name:t.name,value:n.replace(kt,"\r\n")}})).get()}});var Dt=/%20/g,qt=/#.*$/,Lt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Pt=/^\/\//,Rt={},Mt={},It="*/".concat("*"),Wt=v.createElement("a");function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(P)||[];if(h(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function $t(e,t,n,r){var i={},o=e===Mt;function a(s){var u;return i[s]=!0,w.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)})),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Bt(e,t){var n,r,i=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&w.extend(!0,e,r),e}Wt.href=Tt.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,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":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Bt(Bt(e,w.ajaxSettings),t):Bt(w.ajaxSettings,e)},ajaxPrefilter:Ft(Rt),ajaxTransport:Ft(Mt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,i,o,a,s,u,l,c,f,p,d=w.ajaxSetup({},n),h=d.context||d,g=d.context&&(h.nodeType||h.jquery)?w(h):w.event,y=w.Deferred(),m=w.Callbacks("once memory"),x=d.statusCode||{},b={},T={},C="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=Ht.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(e,t){return null==l&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)E.always(e[E.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),S(0,t),this}};if(y.promise(E),d.url=((t||d.url||Tt.href)+"").replace(Pt,Tt.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(P)||[""],null==d.crossDomain){u=v.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Wt.protocol+"//"+Wt.host!=u.protocol+"//"+u.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=w.param(d.data,d.traditional)),$t(Rt,d,n,E),l)return E;for(f in(c=w.event&&d.global)&&0==w.active++&&w.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ot.test(d.type),i=d.url.replace(qt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(
vendor: 6,072 bytes, line 5
5d.data=d.data.replace(Dt,"+")):(p=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Et.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Lt,"$1"),p=(Et.test(i)?"&":"?")+"_="+Ct.guid+++p),d.url=i+p),d.ifModified&&(w.lastModified[i]&&E.setRequestHeader("If-Modified-Since",w.lastModified[i]),w.etag[i]&&E.setRequestHeader("If-None-Match",w.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&E.setRequestHeader("Content-Type",d.contentType),E.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+It+"; q=0.01":""):d.accepts["*"]),d.headers)E.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(h,E,d)||l))return E.abort();if(C="abort",m.add(d.complete),E.done(d.success),E.fail(d.error),r=$t(Mt,d,n,E)){if(E.readyState=1,c&&g.trigger("ajaxSend",[E,d]),l)return E;d.async&&0<d.timeout&&(s=e.setTimeout((function(){E.abort("timeout")}),d.timeout));try{l=!1,r.send(b,S)}catch(t){if(l)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,n,a,u){var f,p,v,b,T,C=n;l||(l=!0,s&&e.clearTimeout(s),r=void 0,o=u||"",E.readyState=0<t?4:0,f=200<=t&&t<300||304===t,a&&(b=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===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]}(d,E,a)),!f&&-1<w.inArray("script",d.dataTypes)&&w.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),b=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];for(o=c.shift();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}}(d,b,E,f),f?(d.ifModified&&((T=E.getResponseHeader("Last-Modified"))&&(w.lastModified[i]=T),(T=E.getResponseHeader("etag"))&&(w.etag[i]=T)),204===t||"HEAD"===d.type?C="nocontent":304===t?C="notmodified":(C=b.state,p=b.data,f=!(v=b.error))):(v=C,!t&&C||(C="error",t<0&&(t=0))),E.status=t,E.statusText=(n||C)+"",f?y.resolveWith(h,[p,C,E]):y.rejectWith(h,[E,C,v]),E.statusCode(x),x=void 0,c&&g.trigger(f?"ajaxSuccess":"ajaxError",[E,d,f?p:v]),m.fireWith(h,[E,C]),c&&(g.trigger("ajaxComplete",[E,d]),--w.active||w.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],(function(e,t){w[t]=function(e,n,r,i){return h(n)&&(i=i||r,r=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:i,data:n,success:r},w.isPlainObject(e)&&e))}})),w.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),w._evalUrl=function(e,t,n){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,n)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(h(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return h(e)?this.each((function(t){w(this).wrapInner(e.call(this,t))})):this.each((function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=h(e);return this.each((function(n){w(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},zt=w.ajaxSettings.xhr();d.cors=!!zt&&"withCredentials"in zt,d.ajax=zt=!!zt,w.ajaxTransport((function(t){var n,r;if(d.cors||zt&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(_t[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout((function(){n&&r()}))},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(i){if(n)throw i}},abort:function(){n&&n()}}})),w.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),w.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 w.globalEval(e),e}}}),w.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),w.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=w("<script>").attr(e.scriptAttrs||{}
vendor: 5,367 bytes, line 5
5).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),v.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||w.expando+"_"+Ct.guid++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",(function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Vt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=h(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Vt,"$1"+i):!1!==t.jsonp&&(t.url+=(Et.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||w.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always((function(){void 0===o?w(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Xt.push(i)),a&&h(o)&&o(a[0]),a=o=void 0})),"script"})),d.createHTMLDocument=((Ut=v.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((r=(t=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,t.head.appendChild(r)):t=v),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&w(o).remove(),w.merge([],i.childNodes)));var r,i,o},w.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=vt(e.slice(s)),e=e.slice(0,s)),h(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&w.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?w("<div>").append(w.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,(function(t){return e===t.elem})).length},w.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=w.css(e,"position"),c=w(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=w.css(e,"top"),u=w.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),h(t)&&(t=t.call(e,n,w.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)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){w.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===w.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),i.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-w.css(r,"marginTop",!0),left:t.left-i.left-w.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||re}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;w.fn[e]=function(r){return B(this,(function(e,r,i){var o;if(g(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),w.each(["top","left"],(function(e,t){w.cssHooks[t]=_e(d.pixelPosition,(function(e,n){if(n)return n=Be(e,t),Pe.test(n)?w(e).position()[t]+"px":n}))})),w.each({Height:"height",Width:"width"},(function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){w.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return B(this,(function(t,n,i){var o;return g(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?w.css(t,n,s):w.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){w.fn[t]=function(e){return this.on(t,e)}})),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){w.fn[t]=function(e,n){return 0<arguments.length?this.on(t,null,e,n):this.trigger(t)}}));var Gt=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;w.proxy=function(e,t){var n,r,o;
5if("string"==typeof t&&(n=e[t],t=e,e=n),h(e))return r=i.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(i.call(arguments)))}).guid=e.guid=e.guid||w.guid++,o},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=A,w.isFunction=h,w.isWindow=g,w.camelCase=X,w.type=x,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},w.trim=function(e){return null==e?"":(e+"").replace(Gt,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return w}));var Yt=e.jQuery,Qt=e.$;return w.noConflict=function(t){return e.$===w&&(e.$=Qt),t&&e.jQuery===w&&(e.jQuery=Yt),w},void 0===t&&(e.jQuery=e.$=w),w}));
6window.apex=window.apex||{},apex.items={},apex.regions={},apex.env=apex.env||{},apex.env.APEX_FILES=window.apex_img_dir||"",apex.jQuery=jQuery,function(e){"use strict";function t(){apex._dtNotifyErrors?apex._dtNotifyErrors():apex._pageHasErrors=!0}apex.gPageContext$=e(document),apex.gParentPageContext$=apex.gPageContext$;const i=window.onerror;window.onerror=function(e,o,a,s,n){t(),i&&i(e,o,a,s,n)};const o=e.Deferred.exceptionHook;o&&(e.Deferred.exceptionHook=function(e,i){o(e,i),e&&"abort"!==e.statusText&&t()});let a,s=0,n=0;e(window).resize((function(){let t=e(window);t.height()===s&&t.width()===n||(s=t.height(),n=t.width(),a&&clearTimeout(a),a=setTimeout((function(){e(window).trigger("apexwindowresized"),a=null}),200))}));let r=!1;e((function(){let t;e("body").append("<p class='hcmtest'></p>"),t=e(".hcmtest").css("background-color").toLowerCase(),e(".hcmtest").remove(),"#878787"!==t&&"rgb(135, 135, 135)"!==t&&e("body").addClass("u-HCM");const i=apex.storage.getScopedSessionStorage({prefix:"ORA_WWV_apex.core",useAppId:!1});"y"===i.getItem("userHasTouched")?r=!0:e(document.body).one("touchstart",(function(){r=!0,i.setItem("userHasTouched","y")})),e.ui&&e.ui.dialog&&(e.widget("ui.dialog",e.ui.dialog,{_create:function(){this._super(),this.uiDialogTitlebarClose.attr("aria-label",this.options.closeText),this.uiDialogTitlebarClose.attr("aria-describedby",e("span.ui-dialog-title",this.uiDialogTitlebar).attr("id")),this.uiDialog.removeAttr("aria-describedby"),this.uiDialogTitlebarClose.contents().filter(((e,t)=>t.nodeType===Node.TEXT_NODE)).remove(),this.uiDialogTitlebarClose.find("span.ui-button-icon-space").remove();const t=this.uiDialogTitlebar.find(".ui-dialog-title"),i=e("<h1>").attr({id:t.attr("id"),class:t.attr("class"),"aria-roledescription":apex.lang.getMessage("APEX.DIALOG.TITLE")}).html(t.html());t.replaceWith(i)},_allowInteraction:function(e){return e.target===document||this._super(e)}}),e.fn.apexDialogHide=function(e,t,i){const o=this,a=apex.util.cssDurationToMilliseconds(o.css("--js-dialog-close-timing")||"0ms"),s="is-closing";o.addClass(s),setTimeout((()=>{o.hasClass(s)&&(o.removeClass(s).hide(),i?.())}),a)},e.fn.apexDialogShow=function(e,t,i){this.removeClass("is-closing").show(),i?.()}),e("body").on("beforeinput",".js-accessible-readonly",(function(e){e.preventDefault()})),queueMicrotask((()=>{e("body").addClass("js-ready")}))})),apex.userHasTouched=function(){return r}}(apex.jQuery);
7apex.debug={},apex.debug=function(){"use strict";apex.debug.log.apply(this,arguments)},function(e,o){"use strict";function n(){}let r=-1,t=n,a=n,c=n,l=n;window.console&&console.log&&(t=console.log,a=console.error?console.error:console.log,c=console.warn?console.warn:console.log,l=console.info?console.info:console.log),e.LOG_LEVEL={OFF:0,ERROR:1,WARN:2,INFO:4,APP_TRACE:6,ENGINE_TRACE:9},e.getLevel=function(){let n;return r<0&&(n=o("#pdebug",apex.gPageContext$).val(),r="YES"===n?e.LOG_LEVEL.INFO:/^LEVEL[0-9]$/.test(n)?parseInt(n.substr(5),10):apex._dtNotifyErrors?e.LOG_LEVEL.WARN:e.LOG_LEVEL.OFF),r},e.setLevel=function(n){let t,a,c=r;r="number"==typeof n?n:e.LOG_LEVEL.OFF,(r<0||r>9)&&(r=e.LOG_LEVEL.OFF),r!==c&&(t="LEVEL"+r,a=o("#pdebug",apex.gPageContext$),0===a.length&&(a=o("<input id='pdebug' type='hidden' name='p_debug'>").prependTo(o("#wwvFlowForm",apex.gPageContext$))),a.val(t))},e.message=function(o){let n=t;e.getLevel()>=o&&o>0&&(o===e.LOG_LEVEL.ERROR?n=a:o<=e.LOG_LEVEL.WARN?n=c:o<=e.LOG_LEVEL.INFO&&(n=l),n.apply(console,Array.prototype.slice.call(arguments,1
7)))},e.error=function(){a.apply(console,arguments),console.trace&&console.trace(),apex._dtNotifyErrors&&apex._dtNotifyErrors()},e.warn=function(){e.getLevel()>=e.LOG_LEVEL.WARN&&c.apply(console,arguments)},e.info=function(){e.getLevel()>=e.LOG_LEVEL.INFO&&l.apply(console,arguments)},e.trace=function(){e.getLevel()>=e.LOG_LEVEL.APP_TRACE&&t.apply(console,arguments)},e.log=function(){e.getLevel()>e.LOG_LEVEL.OFF&&t.apply(console,arguments)},e.deprecated=function(o){e.warn("DEPRECATED: "+o)},e.timeCall=function(e,o,n){return function(){let r,t=e+"_begin",a=e+"_end";return performance.mark&&performance.mark(t),r=o.apply(n||this,arguments),performance.mark&&(performance.mark(a),performance.measure(e,t,a)),r}},e.timeBegin=function(e){performance.mark&&performance.mark(e+"_begin")},e.timeEnd=function(e){let o=e+"_begin",n=e+"_end";performance.mark&&(performance.mark(n),performance.measure(e,o,n))},e.timeMark=function(e){performance.mark&&performance.mark(e)}}(apex.debug,apex.jQuery);
8apex.util=function(e,t,n){"use strict";function r(e){return"string"==typeof e?e.replace(/([.$*+\-?(){}|^[\]\\])/g,"\\$1"):""}function l(e){return null===e?"":e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function i(e){return(e=""+e).replace(/[^A-Za-z0-9\-_.,]/gu,(function(e){let t=e.codePointAt().toString(16).toUpperCase();return t.length%2!=0&&(t="0"+t),"&#x"+t+";"}))}const a=function(e){return l(""+e)};let o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const s=Object.entries;function u(e){return"object"==typeof e&&o(e,"v")}const c=new RegExp("(["+r(" !#$%&'()*+,./:;<=>?@[\\]^`{|}~\"")+"])","g"),p=/<[^<>]+>/;let d=null,f=null;const g=Array.isArray,h=e.extend,m={eq:function(e,t){if(g(e)){for(let n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}return e===t},neq:function(e,t){return!m.eq(e,t)},null:function(e){return null===e||""===e||g(e)&&0===e.length},notnull:function(e){return!m.null(e)},in:function(e,t){if("string"!=typeof t)return!1;if(t=","+t+",",g(e)){for(let n=0;n<e.length;n++)if(t.indexOf(","+e[n]+",")>=0)return!0;return!1}return t.indexOf(","+e+",")>=0},notin:function(e,t){return!m.in(e,t)}};let x=1;const w={markup:function(e){return this.html+=e,this},attr:function(e,t){return 1===arguments.length&&(t=e,e=null),e&&(this.html+=" "+e+"='"),this.html+=i(t),e&&(this.html+="'"),this},optionalAttr:function(e,t){return t&&"object"!=typeof t&&(this.html+=" "+e+"='"+i(t)+"'"),this},optionalBoolAttr:function(e,t){return!0===t&&(this.html+=" "+e),this},content:function(e){return this.html+=a(e),this},clear:function(){this.html=""},toString:function(){return this.html}};let y=null;const b=new Map,v=new Map,T={node:!1,element:{},item_type:!1,id:!1},A=/&(([A-Z0-9_$#]+(?:%[A-Za-z0-9_]+)?)|"([^"\r\n]+)")(!([A-Z]+))?\./g,E=/%([A-Za-z0-9_]+)$/,S=/#([_$A-Z0-9]+)(?:(?:!)([A-Z]+))?#|{([iIcClLeEoOwWaA{!]([^/\r\n]|\/(?!}))*)\/}/g,P=/^(!|\w+(?:\s+|$))(.*)?$/,I=/^(.+)_LABEL$/,C=/^[_$A-Z0-9]+$/,_=/^[^"\r\n]+$/,O=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script\s*>/gi,M=/\$[^$]*$/,k=/^"([^"]+)"\s+([^"&\r\n]+)$/,R=/\n\s*([_$A-Z0-9]+)\s*:=/g,$=/[#&{]|\/}/,L=/{((?:else)?if|case|loop)\s+(?:((?:!\s*)?[?=]?)\s*|"([^"]+)"\s+)?([^"/}\r\n]+)\/}/gi,D=/&\{((?:[^"}]|(?:"(?:[^"]|"")*"))+)\}(?:!(HTML|ATTR|JS|RAW|STRIPHTML))?\./g,F=/^[^"\s]+(\s*[^="\s]+=(?:(?!&")[^"}\s]+|"(?:[^"]|"")*"|&"(?:[^"]|"")*"[^"}\s]*.)?)*$/,V=/^((?:[^"\s])+)/,N=/(?:^(?:[^"\s])+)?\s([^="\s]+)=(?:((?!&")[^"}\s]+)|(?:"((?:[^"]|"")*)")|(&"(?:[^"]|"")*"[^"}\s]*.)?)*/g;function X(e){let t=v.get(e);if(!t){let n=apex.gPageContext$[0].getElementById(e);t=n?apex.item(n):T,v.set(e,t)}return t.node?t:null}function q(e){return!0===e?"Y":"N"}function j(e,t,n,r,l){let i=e.getOption("fields"),a=null;return void 0!==i[t]&&(a=i[t][n]||"","tmpl"===r?a=Y(a,l):"bool"===r&&(a=q(a)),a=""+a),a}function H(e){let t,n,r={};if(!F.test(e))return!1;for(t=V.exec(e)[1];null!==(n=N.exec(e));)r[n[1]]=n[2]||n[3]||n[4]||"";return{messageKey:t,parameters:r}}const B={label:function(t){let n=e("#"+Q.escapeCSS(t.id)+"_CONTAINER");return n.length||(n=e("body")),n.find("[for='"+Q.escapeCSS(t.id)+"']").text()}
8,display:function(e){let t=e.displayValueFor(e.getValue());return g(t)&&(t=t.join(", ")),t},valid:function(e){return q(e.getValidity().valid)},message:function(e){return e.getValidationMessage()},changed:function(e){return q(e.isChanged())},disabled:function(e){return q(e.isDisabled())}},W={display:function(e,t,n,r){let l,i=n.getOption("fields"),a=n.getValue(r,e);if(void 0!==i[e]&&(l=i[e]),l&&l.cellTemplate)a=Y(l.cellTemplate,t);else if("object"==typeof a&&a.d)a=a.d;else if(l&&l.elementId){let e=X(l.elementId);e&&(a=e.displayValueFor(a))}return a},label:function(e,t,n){let r=n.getOption("fields"),l=null;if(void 0!==r[e]){let t=r[e];l=Q.stripHTML(t.label||t.heading||"")}return l},heading:function(e,t,n){let r=n.getOption("fields"),l=null;if(void 0!==r[e]){let t=r[e];l=t.heading||t.label||""}return l},heading_class:function(e,t,n){return j(n,e,"headingCssClasses")},column_class:function(e,t,n){return j(n,e,"columnCssClasses")},field_class:function(e,t,n){return j(n,e,"fieldCssClasses")},field_col_span:function(e,t,n){return j(n,e,"fieldColSpan")},width:function(e,t,n){return j(n,e,"width")},required:function(e,t,n){return j(n,e,"isRequired","bool")},readonly:function(e,t,n,r,l){let i,a=j(n,e,"readonly","bool");return"Y"!==a&&(l&&l.fields&&l.fields[e]&&(i=l.fields[e]),(i&&i.ck||!n.allowEdit(r))&&(a="Y")),a},link:function(e,t,n,r,l){let i,a,o="",s=n.getOption("fields");return l&&l.fields&&l.fields[e]&&(a=l.fields[e]),void 0!==s[e]&&(i=s[e]),(a&&a.url||i.linkTargetColumn)&&(o=i.linkTargetColumn?n.getValue(r,i.linkTargetColumn)||null:a.url),o},link_text:function(e,t,n){return j(n,e,"linkText","tmpl",t)},link_attrs:function(e,t,n){return j(n,e,"linkAttributes","tmpl",t)},hidden:function(e,t,n){return j(n,e,"hidden","bool")}};function U(e,t,n){let r,l=null;return t&&B[n]?(r=X(t),r&&(l=B[n](r))):(r=X(e),r&&(l=r.getValue())),[l,r]}const Z="STRIPHTML",z="RAW",G="ATTR",J="HTML";function K(e,t,n,r,l,i){const a=apex.model;let o,s,u,c,p,d,f,g,h=i.length-1,m=i[h],x=m.model,w=m.record,y=m.recMeta,b=[],v=null,T=null;for(;null===T&&w&&x;){let A;t&&W[n]?(T=W[n](t,l,x,w,y),A=t):(T=x.getValue(w,e),void 0===T&&(T=null),A=e,null===T&&(g=I.exec(e),g&&(p=g[1],d=x.getOption("fields"),void 0!==d[p]&&(T=d[p].label||d[p].heading||null),A=p))),w=null,null===T?(o=x.getOption("parentModel"),s=x.getOption("parentRecordId"),o&&s?(x=a.get(o),x&&(b.push(o),w=x.getRecord(s),c=x.getRecordId(w),y=null,c&&(y=x.getRecordMetadata(c)))):h>0&&(h-=1,m=i[h],x=m.model,w=m.record,y=m.recMeta)):(w=null,d=x.getOption("fields"),f=d[A],f&&void 0!==f.escape&&(r=f.escape?J:z),f&&void 0!==f.elementId&&(u=f.elementId,v=X(u)))}for(let e=0;e<b.length;e++)a.release(b[e]);return[T,v,r]}function Y(e,r,a,s){const u=apex.model,c=new Map;let p,d,f,m,x,w,T,I,L,F,V,N,j,B,W=[],ee=[],te=[],ne=[],re=s||[];const le={if:function(e,t){let n,r={matched:!1};return ie(t)?(n=ae(t),ee.push(r),n?(r.matched=!0,e):ge(e,{else:1,elseif:1,endif:1},"if","endif")):e},elseif:function(e,n){let r,l=ee[ee.length-1];return!ie(n)||oe(ee,"elseif","if")?e:(r=ae(n),l.hasElse&&t.error("applyTemplate 'elseif' must come before 'else'"),!l.matched&&r?(l.matched=!0,e):ge(e,{else:1,elseif:1,endif:1},"if","endif"))},else:function(e,n){let r=ee[ee.length-1];return se("else",n),oe(ee,"else","if")?e:(r.hasElse&&t.error("applyTemplate 'if' must have only one 'else'"),r.hasElse=!0,r.matched?ge(e,{endif:1},"if","endif"):(r.matched=!0,e))},endif:function(e,t){return se("endif",t),oe(ee,"endif","if")||ee.pop(),e},case:function(e,n){let r,l={matched:!1};if(r=W[e],"text"===r.type&&""===r.text.trim()&&(e+=1),r=W[e],"directive"===r.type&&"when"===r.name){if(!ie(n))return e;te.push(l),l.value=pe(n,!1).trim()}else t.error("applyTemplate must have 'when' right after 'case'");return e},when:function(e,n){let r=te[te.length-1];return oe(te,"when","case")?e:(r.hasOtherwise&&t.error("applyTemplate 'when' must come before 'otherwise'"),r.matched?ge(e,{endcase:1},"case","endcase"):r.value===n.trim()?(r.matched=!0,e):ge(e,{when:1,otherwise:1,endcase:1},"case","endcase"))},otherwise:function(e,n){let r=te[te.length-1];return se("otherwise",n),oe(te,"otherwise","case")?e:(r.hasOtherwise&&t.error("applyTemplate 'case' must have only one 'otherwise'"),r.hasOtherwise=!0,r.matched?ge(e,{endcase:1},"case","endcase"):(r.matched=!0,e))},endcase:function(e,t){return se("endcase",t),oe(te,"endcase","case")||te.pop(),e},with:function(e){let n,r,l,i,a,o,s,u,p=0,d="",f=ge(e,{apply:1},"with","apply");for(n=e;n<f;n++)d+=W[n].text;if(l=W[e=n],l&&"directive"===l.type&&"apply"===l.name)for(c.clear(),r=R.exec(d);r;)a=r.index+r[0].length,0===p&&(i=r[1],o=a),r=R.exec(d),s=r?r.index:d.length,u=d.substring(a,s),u.includes("{with")&&(p+=1),u.includes("{apply")&&(p-=u.split("{apply").length-1),0===p&&c.set(i,d.substring(o,s).trim());else t.error("applyTemplate missing 'apply' after 'with'");return e},apply:function(e,n){let o=!1;if(n){let e=b.get(n);if(e){o=!0;let n=h({},a),s=e.args||[],u={...r};u.formalArgs=s;for(let e=0;e<s.length;e++){let n=s[e],r=n.name;!0!==n.required||c.has(r)&&""!==c.get(r)||t.error("applyTemplate 'apply' missing required argument "+r),c.has(r)||c.set(r,n.default||"")}for(const[e,t]of c.entries()){let o,u,c=null,p=s.find((t=>t.name===e));p&&p.escape&&p.escape!==z&&(c=p.escape),t.match($)?(o=r.defaultEscapeFilter,c&&(r.defaultEscapeFilter=!1),u=Y(t,r,a,re),r.defaultEscapeFilter=o):u=t,c===G?u=i(u):c===J?u=l(u):c===
8Z&&(u=l(Q.stripHTML(u.replace("&nbsp;","")))),n[e]=u}p+=Y(e.template,u,n),c.clear()}}return o||t.warn("applyTemplate 'apply' missing or unknown template name"),e},loop:function(e,n){let l,i,a,o,s,c=null,p={};if(ne.push(p),n){if(s=fe(n),/^\[.*,.*]$/.test(s))try{s=JSON.parse(s),g(s)&&2===s.length||(s=null)}catch(e){s=null}s&&(l=u&&u.get(s))}else s=null,l=r.model,l||t.error("applyTemplate no model or item to loop over");if(l)o=r.extraSubstitutions,p.prevExtraData=o,o=r.extraSubstitutions=Object.create(o),p.model=l,re.push(p),l.forEach((function(t,i,a){let s=l.getRecordMetadata(a);B="directive",p.record=t,p.recMeta=s,o.APEX$I=""+(i+1),o.APEX$ID=a,o.APEX$META=function(e){let t="",n="O";return e.agg&&(n=""),e.deleted?n="D":e.inserted?n="I":e.updated&&(n="U"),e.canEdit&&(t+="U"),e.canDelete&&(t+="D"),{selected:!!e.sel,state:n,allowedOperations:t,valid:!(e.deleted||e.agg||e.error||e.warn),agg:e.agg||"",highlight:e.highlight||"",endControlBreak:!!e.endControlBreak,grandTotal:!!e.grandTotal,errorMessage:e.error?e.message:"",warningMessage:e.warning?e.message:""}}(s),r.iterationCallback&&r.iterationCallback(n,l,t,i,r.placeholders,o),c=he(W,e)})),r.extraSubstitutions=p.prevExtraData,s&&u.release(s),re.pop(),null!==c&&me(c-1);else if(n){let t,l,s,u=k.exec(n);if(u)t=u[1],l=u[2];else{l=n;let e=X(l);e&&(t=e.getSeparator(),s=e.getMultiValueStorage()),t=t||":"}if(t.length>1&&(t=new RegExp(t)),i=pe(l,!0),i){o=r.extraSubstitutions,p.prevExtraData=o,o=r.extraSubstitutions=Object.create(o),a=s?Q.toArray(i,s):Q.toArray(i,t);for(let t=0;t<a.length;t++)B="directive",o.APEX$I=""+(t+1),o.APEX$ITEM=a[t],r.iterationCallback&&r.iterationCallback(n,null,null,t,r.placeholders,o),c=he(W,e);r.extraSubstitutions=p.prevExtraData,null!==c&&me(c-1)}}return null===c&&(c=ge(e,{endloop:1},"loop","endloop"),c<W.length&&(c=me(c))),c},endloop:function(e,t){return se("endloop",t),oe(ne,"endloop","loop")||ne.pop(),e},"!":function(e){return d=d.substring(x+L.length+3),e}};function ie(e){return!(null==e||!_.test(e))||(t.error("applyTemplate missing or invalid name for 'if', 'elseif', or 'case'"),!1)}function ae(e){let t,n,l=null,i=!1;return e.startsWith("!")&&(i=!0,e=e.substr(1).trim()),n=e.substr(0,1),"?=".includes(n)?e=e.substr(1).trim():n=null,t=pe(e,!1),t=t.trim(),r.includePageItems&&(l=X(e)),t="?"===n?!(l&&l.isEmpty()||""===t):"="===n?!r.falseValues.includes(t):!(l&&l.isEmpty()||""===t||r.falseValues.includes(t)),i&&(t=!t),t}function oe(e,n,r){let l=e.length<1;return l&&t.error("applyTemplate '"+n+"' without '"+r+"'"),l}function se(e,n){""!==n&&t.warn("applyTemplate extra text after directive '"+e+"' ignored")}function ue(e,t,n){if(!1!==t)if(t||(t=n),!1===n&&t!==Z&&(t=z),t===J)e=l(e);else if(t===G)e=i(e);else if(t===Z)e=Q.stripHTML(e.replace("&nbsp;","")),!1!==n&&(e=l(e));else if(t!==z&&t)throw new Error("Invalid template filter: "+t);return e}function ce(e,n,l){let i,a,s,u,c,p,d=r.defaultEscapeFilter;if(s=E.exec(e),s&&(p=e.substring(0,s.index),c=s[1],u=c.toLowerCase()),i=function(e){let n=null;if(e.startsWith("APP_TEXT$")){let r=e.substr(9),l=M.exec(r);l&&(l[0].length>1&&t.warn("applyTemplate message text substitution "+l[0]+" language ignored."),r=r.replace(M,"")),r&&(n=apex.lang.getMessage(r))}return n}(e),null===i&&re.length>0&&([i,a,d]=K(e,p,u,d,r,re)),null===i&&r.includePageItems&&([i,a]=U(e,p,u)),null===i&&r.includeBuiltinSubstitutions&&(i=y[e]||null),null===i&&r.extraSubstitutions&&(i=r.extraSubstitutions[p||e]||null,null!=i&&p&&"object"==typeof i&&(i=i[c],"boolean"==typeof i?i=q(i):void 0===i&&(i=null))),null===i)i="";else{if("object"==typeof i&&o(i,"v")&&(i=i.v),"string"!=typeof i&&(n||!l))if(g(i)){let e=":";a&&(e=a.getSeparator()),i=i.join(e)}else i=""+i;i=ue(i,n,d)}return i}function pe(e,t){const n=r.placeholders;if(C.test(e)){if(a&&void 0!==a[e])return a[e];if(n&&void 0!==n[e])return n[e]}return ce(e,!1,t)}function de(e,t){let n,l,i,o;return n=a&&void 0!==a[e]?a[e]:r.placeholders[T],r.formalArgs&&(o=r.formalArgs.find((t=>t.name===e)),o&&(l=o.escape)),(!1===r.defaultEscapeFilter||l&&l===t)&&(i=!1),ue(n,t,i)}function fe(e,l){return n.COMPATIBILITY_MODE>=24.2&&e.includes("&{")&&(e=e.replace(D,((e,n,i)=>{let a;if(n)return a=H(n),a?function(e,n){let l="",i={},a=r.defaultEscapeFilter;
8if(e){for(const n in e.parameters)"$lang"===n?t.warn("applyTemplate message text substitution "+n+" language ignored."):i[n]=fe(e.parameters[n],J);l=apex.lang.formatMessageNoEscape(e.messageKey,i),l=ue(l,n,a)}return l}(a,i||l):e}))),e.replace(A,((e,t,n,r,i,a)=>{let o="";return r&&(n=r),n&&(o=ce(n,a||l)),o}))}function ge(e,t,n,r){let l,i,a,o=0;for(l=e;l<W.length;l++){if(i=W[l],a=i.name,"directive"===i.type){if(t[a]&&0===o)break;a===n?o+=1:a===r&&(o-=1)}if(o<0)break}return l}function he(e,t){let n,r=t;for(;;){if(r>=e.length){r=null;break}if(r=me(r),n=e[r],n&&"directive"===n.type&&"endloop"===n.name){r+=1;break}}return r}function me(e){let t=W[e];if(e+=1,"text"===t.type){let e=t.text;"directive"===B&&(e=e.replace(/^\s+/," ")),p+=fe(e),B=t.type}else"ph"===t.type?(p+=t.value,B=t.type):"directive"===t.type&&(j=le[t.name],j?(B=t.type,e=j(e,t.arg)):(p+=fe(t.text),B="text"));return e}if((r=h({placeholders:null,directives:!0,defaultEscapeFilter:J,includePageItems:!0,model:null,record:null,extraSubstitutions:{},includeBuiltinSubstitutions:!0,falseValues:["F","f","N","n","0"],clearItemCache:!0},r||{})).falseValues.includes("N")||r.falseValues.push("N"),!a&&r.clearItemCache&&v.clear(),r.model&&r.record&&0===re.length){let e=null,t=r.model,n=r.record,l=t.getRecordId(n);l&&(e=t.getRecordMetadata(l)),re.push({model:t,record:n,recMeta:e})}if(!y&&r.includeBuiltinSubstitutions&&(y={APP_USER:n.APP_USER,APP_ID:n.APP_ID,APP_PAGE_ID:n.APP_PAGE_ID,APP_SESSION:n.APP_SESSION,APP_FILES:n.APP_FILES,WORKSPACE_FILES:n.WORKSPACE_FILES,REQUEST:$v("pRequest"),DEBUG:$v("pdebug"),IMAGE_PREFIX:n.APEX_FILES,APEX_FILES:n.APEX_FILES,APEX_VERSION:n.APEX_VERSION,APEX_BASE_VERSION:n.APEX_BASE_VERSION}),(a||r.directives)&&null===r.placeholders&&(r.placeholders={}),F=null!==r.placeholders,V=r.directives,F||V){for(d=e,f=S.exec(d),x=f?f.index:-1,w=0;f;){if(T=f[1],I=f[2],L=f[3],"{{/}"===f[0])W.push({type:"text",text:d.substring(w,x)+"{"}),w=x+f[0].length;else if(T&&F){let e=de(T,I);void 0!==e?(x>w&&W.push({type:"text",text:d.substring(w,x)}),W.push({type:"ph",text:f[0],value:e})):(W.push({type:"text",text:d.substring(w,x+T.length+2)}),S.lastIndex-=1),w=x+f[0].length}else L&&V&&(x>w&&W.push({type:"text",text:d.substring(w,x)}),m=P.exec(L),m?W.push({type:"directive",text:f[0],name:m[1].trim().toLowerCase(),arg:(m[2]||"").trim()}):W.push({type:"text",text:f[0]}),w=x+f[0].length);f=S.exec(d),x=f?f.index:-1}d.length>w&&W.push({type:"text",text:d.substring(w)})}else W.push({type:"text",text:e});for(let e=1;e<W.length;e++){let t=W[e],n=W[e-1];"text"===t.type&&"text"===n.type&&(n.text+=t.text,W.splice(e,1),e-=1)}for(r.iterationCallback&&r.model&&r.record&&r.iterationCallback(null,r.model,r.record,null,r.placeholders,r.extraSubstitutions),p="",N=0,B=null;N<W.length;)N=me(N);for((ee.length>0||te.length>0||ne.length>0)&&t.error("applyTemplate missing 'endif', 'endcase', or 'endloop'");O.test(p);)p=p.replace(O,"");return p}const Q={debounce:function(e,t,n=!1){let r;return function(...l){let i=this;n?(r||e.apply(i,l),clearTimeout(r),r=setTimeout((function(){r=null}),t)):(clearTimeout(r),r=setTimeout((function(){r=null,e.apply(i,l)}),t))}},throttle:function(e,t,n=!0){let r,l;return function(...i){let a=this;const o=function(){r=l&&(e.apply(a,l),l=null,n)?setTimeout(o,t):null};r?l=i:n?(e.apply(a,i),r=setTimeout(o,t)):(l=i,r=setTimeout(o,t))}},toArray:function(t,n=":"){let r,l,i=n;if("object"!=typeof n||n instanceof RegExp||(i=n?.separator,l=n?.type),""===t||null==t)return[];if(Array.isArray(t))return t;if("json-array"!==l)return r="string"==typeof t?t.split(i||":"):e.makeArray(t),r;{const e="Value provided is not a valid JSON array";try{if(r=JSON.parse(t),!Array.isArray(r))throw new Error(e);return r}catch(t){throw t instanceof SyntaxError?new Error(e):t}}},arrayEqual:function(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0},unorderedArrayEqual:function(e,t){if(e.length!==t.length)return!1;const n=[...e],r=[...t];return n.sort(),r.sort(),n.every(((e,t)=>e===r[t]))},binarySearch:function(e,t,n){let r,l,i=0,a=e.length-1;for(;i<=a;)if(r=a+i>>1,l=n(t,e[r]),l>0)i=r+1;else{if(!(l<0))return r;a=r-1}return i},escapeHTML:l,escapeHTMLAttr:i,escapeRegExp:r,escapeCSS:function(e){return e?CSS&&CSS.escape?CSS.escape(e):e.replace(c,"\\$1"):""},getContextString:function(){return"p_context="+$v("pContext")},htmlBuilder:function(){const e=Object.create(w);return e.clear(),e},makeApplicationUrl:function(e={}){let t="f?p=";if(t+=e.appId||n.APP_ID,t+=":",t+=e.pageId||n.APP_PAGE_ID,t+=":",t+=e.session||n.APP_SESSION,t+=":",t+=e.request||$v("pRequest"),t+=":",t+=e.debug||$v("pdebug")||"",t+=":",t+=e.clearCache||"",t+=":",e.itemNames&&(t+=e.itemNames.join(",")),t+=":",e.itemValues)for(let n=0;n<e.itemValues.length;n++)n>0&&(t+=","),t+=encodeURIComponent(e.itemValues[n]);return t+=":",t+=e.printerFriendly||"",t},showSpinner:function(t,n){const r=Q.htmlBuilder(),l=e(window);
8let i,a,o,s,u,c,p=h({alert:apex.lang.getMessage("APEX.PROCESSING"),spinnerClass:""},n),d=t&&!p.fixed?"string"==typeof t?e(document).find(t):e(t):e("body"),f=d.offset(),g={top:l.scrollTop(),left:l.scrollLeft()};return r.markup("<span").attr("class","u-Processing"+(p.spinnerClass?" "+p.spinnerClass:"")).attr("role","alert").markup(">").markup("<span").attr("class","u-Processing-spinner").markup(">").markup("</span>").markup("<span").attr("class","u-VisuallyHidden").markup(">").content(p.alert).markup("</span>").markup("</span>"),i=e(r.toString()),i.appendTo(d),p.fixed?(o=(l.height()-i.height())/2,a=(l.width()-i.width())/2,i.css({position:"fixed",top:o+"px",left:a+"px"})):(g.bottom=g.top+l.height(),g.right=g.left+l.width(),f.bottom=f.top+d.outerHeight(),f.right=f.left+d.outerWidth(),o=f.top>g.top?f.top:g.top,s=f.bottom<g.bottom?f.bottom:g.bottom,u=(s-o)/2,c=g.top-f.top,c>0&&(u+=c),i.position({my:"center",at:"left+50% top+"+u+"px",of:d,collision:"fit"})),i},delayLinger:function(){var e={};function t(t){var n=e[t];return n||(n={count:0,timer:null},e[t]=n),n}function n(t){delete e[t]}return{start:function(e,n){var r=t(e);r.count+=1,1!==r.count||null!==r.timer||r.showing||(r.start=(new Date).getTime(),r.timer=setTimeout((()=>{r.timer=null,r.showing=!0,n()}),200))},finish:function(e,r){var l,i=t(e);if(0===i.count)throw new Error("delayLinger.finish called before start for scope "+e);l=(new Date).getTime()-i.start,i.count-=1,0===i.count&&(null===i.timer?l<1e3?setTimeout((()=>{0===i.count&&(i.showing=!1,r(),n(e))}),1e3-l):(i.showing=!1,r(),n(e)):(clearTimeout(i.timer),i.timer=null,n(e)))}}}(),setOuterHeight:function(e,t){["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom","marginTop","marginBottom"].forEach((function(n){let r=parseInt(e.css(n),10);isNaN(r)||(t-=r)})),e.height(t)},setOuterWidth:function(e,t){["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight","marginLeft","marginRight"].forEach((function(n){let r=parseInt(e.css(n),10);isNaN(r)||(t-=r)})),e.width(t)},getDateFromISO8601String:function(e){var t,n,r,l=0,i=0,a=0,o=0,s=/^(\d\d\d\d)-(\d\d)-(\d\d)(T(\d\d):(\d\d)(:(\d\d)(.(\d\d\d))?)?Z?)?$/.exec(e);if(!s)throw new Error("Invalid date format");return t=parseInt(s[1],10),n=parseInt(s[2],10)-1,r=parseInt(s[3],10),s[5]&&(l=parseInt(s[5],10),i=parseInt(s[6],10),s[8]&&(a=parseInt(s[8],10),s[10]&&(o=parseInt(s[10],10)))),new Date(Date.UTC(t,n,r,l,i,a,o))},getTopApex:function(){var e,t;function n(e){var t;try{t=e.apex||null}catch(e){t=null}return t}if(null!==f)return f;if(f=n(top),null!==f)return f;for(e=window;null!==(t=n(e))&&e.parent&&e.parent!==e;)f=t,e=e.parent;return f},getScrollbarSize:function(){if(null===d){const t=e("<div>").css({width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}).appendTo("body");d={width:t[0].offsetWidth-t[0].clientWidth,height:t[0].offsetHeight-t[0].clientHeight},t.remove()}return d},invokeAfterPaint:(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return window.setTimeout(e,0)}).bind(window),cancelInvokeAfterPaint:(window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||function(e){return window.clearTimeout(e)}).bind(window),stripHTML:function(e){for(;p.exec(e);)e=e.replace(p,"");return e},getNestedObject:function(e,t){let n=e;return t.length>0&&t.split(".").forEach((function(e){void 0===n[e]&&(n[e]={}),n=n[e]})),n},checkCondition:function(e,n){let r,l,i,a;if(n=n||{},e.item){if(r=apex.item(e.item),!r.node)return t.warn("No such item: ",e.item),!1;if(l=r.getValue(),n.multiValued&&!g(l)&&""!==l){const e=r.getMultiValueStorage();l=e?Q.toArray(l,e):Q.toArray(l,r.getSeparator())}}return void 0!==e.value&&(i=e.value,n.doSubstitution&&i.match($)&&(i=Y(i,n))),void 0!==e.value2&&(a=e.value2,n.doSubstitution&&a.match($)&&(a=Y(a,n))),!!m[e.op](l,i,a)},watchCondition:function(n,r,l){let i,a,o="watchCond"+x;if(x+=1,r=r||{},n.item){if(i=apex.item(n.item),!i.node)return void t.warn("No such item: ",n.item);e(i.node).on("change."+o,(function(){let e=apex.item(n.item).getValue();e!==a&&(a=e,l(Q.checkCondition(n,r)))}))}return l(Q.checkCondition(n,r)),o},unwatchCondition:function(t,n){let r;if(t.item){if(r=apex.item(t.item),!r.node)return;e(r.node).off("change."+n)}},defineTemplates:function(e){if(g(e))for(let n=0;n<e.length;n++){let r=e[n],l=r.name;if(l&&l.match(C))if(r.template){r.args||(r.args=[]);for(let e=0;e<r.args.length;e++){let n=r.args[e];n.required&&n.default&&(delete n.default,t.warn("defineTemplates default value for required arg removed: "+l)),void 0===n.escape||[G,J,Z,z].includes(n.escape)||(t.warn("defineTemplates invalid escape value removed: "+l),delete n.escape),n.name&&n.name.match(C)||(r.args.splice(e,1),e-=1,t.warn("defineTemplates argument with missing or invalid name removed: "+l))}b.set(l,r)}else t.warn("defineTemplates missing template ignored: "+l);
8else t.warn("defineTemplates template with invalid name ignored: "+l)}else for(const[n,r]of s(e))n.match(C)?b.set(n,{name:n,args:[],template:r}):t.warn("defineTemplates template with invalid name ignored: "+n)},listTemplates:function(){return[...b.keys()]},getTemplateDef:function(e){return b.get(e)||null},applyTemplate:Y,dataValue:function(e,t){let n,r,l,i,a,s=null,u=[];if(r=E.exec(e),r&&(l=e.substring(0,r.index),a=r[1],i=a.toLowerCase()),t.model&&t.record&&0===u.length){let e=null,n=t.model,r=t.record,l=n.getRecordId(r);l&&(e=n.getRecordMetadata(l)),u.push({model:n,record:r,recMeta:e})}if(u.length>0&&([s,n]=K(e,l,i,null,t,u)),null===s&&([s,n]=U(e,l,i)),null===s)s="";else if("object"==typeof s&&o(s,"v")&&(s=s.v),"string"!=typeof s)if(g(s)){let e=":";n&&(e=n.getSeparator()||e),s=s.join(e)}else s=""+s;return s},extractTemplateDependencies:function(e,t={}){let n,r=[];if((t=h({directives:!0,model:null,extraSubstitutions:{}},t)).directives){let t=null;for(n=L.exec(e);n;){let l=!1,i=n[1].toLowerCase(),a=n[4];apex.model&&"loop"===i&&(t||(t=apex.model.list(!0)),t.includes(a)&&(l=!0)),l||r.push({name:a}),n=L.exec(e)}}for(n=A.exec(e);n;){let t,l,i,a=!1,o=n[2]||n[3];if(t=E.exec(o),i=o,t&&(i=o.substring(0,t.index),l=t[1]),["APEX$ITEM","APEX$ID","APEX$I","APEX$META"].includes(i)&&(a=!0),!a){let e={name:i,subst:o};
8l&&(e.prop=l),n[5]&&(e.format=n[5]),r.push(e)}n=A.exec(e)}return r},cssDurationToMilliseconds:e=>{let t=parseFloat(e);return isNaN(t)?0:e.includes("ms")?t:1e3*t},equalValue:function(e,t){let n=e,r=t;if(null!==e&&u(e)&&(n=e.v,null!==t&&u(t)&&(r=t.v)),g(n)&&g(r)){if(n.length!==r.length)return!1;for(let e=0;e<n.length;e++)if(n[e]!=r[e])return!1;return!0}return n==r},sanitizeHtml:e=>{if(window.DOMPurify)return window.DOMPurify.sanitize(e,{ADD_ATTR:["target"]});throw new Error("DOMPurify cannot be found.")},setPCTGraphStyles:function(){e("div[data-pct-chart], div[data-ft-chart], div[data-width-chart], div[data-width-fill]").each((function(){const t=e(this),n=t.attr("data-pct-chart"),r=t.attr("data-ft-chart"),l=t.attr("data-width-fill"),i=t.attr("data-width-chart");t.css({"--a-percent-chart-background-color":n,"--a-percent-chart-bar-background-color":r,"inline-size":i||l+"%"})}))}};return Q.escapeHTMLContent=a,Q.hasOwnProperty=o,Q.unescapeHTML=function(e){return null===e?"":e.replace(/&#X2F;/gi,"/").replace(/&#X27;/gi,"'").replace(/&(quot|QUOT);/g,'"').replace(/&(gt|GT);/g,">").replace(/&(lt|LT);/g,"<").replace(/&(amp|AMP);/g,"&")},Q.getTextMessagesFromTemplate=function(e){if(e)return[...e.matchAll(D),...[...e.matchAll(A)].flatMap((e=>{const t=e[2]||e[3];return t.startsWith("APP_TEXT$")?(e[1]=t.substr(9),[e]):[]}))].map((function(e){let t=H(e[1]);if(t)return t.message=e[0],t})).filter((e=>e))},Q}(apex.jQuery,apex.debug,apex.env);
9apex.locale={},function(e,t,r,n,a){"use strict";let i={language:"en",separators:{group:",",decimal:"."},currency:{local:"$",iso:"USD",dual:"$"},calendar:{abbrMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],rawAbbrMonthNames:["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],rawMonthNames:["JANUARY  ","FEBRUARY ","MARCH    ","APRIL    ","MAY      ","JUNE     ","JULY     ","AUGUST   ","SEPTEMBER","OCTOBER  ","NOVEMBER ","DECEMBER "],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],rawAbbrDayNames:["SUN","MON","TUE","WED","THU","FRI","SAT"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],rawDayNames:["SUNDAY   ","MONDAY   ","TUESDAY  ","WEDNESDAY","THURSDAY ","FRIDAY   ","SATURDAY "],dateFormat:"YYYY/MM/DD",dsDateFormat:"fmMM/DD/RRRR",dlDateFormat:"fmDay, Month fmdd, yyyy",amFormat:"AM",pmFormat:"PM",startOfWeek:"sunday"}},o=!1,l=a.Deferred(),s=l.promise();const u=function(e,r){function s(){r!==Object.keys(i.cldr.main)[0]&&t.warn("HTML lang different from language set in init."),t.timeEnd("Load L10n Resources"),l.resolve(),o=!1}if(t.timeBegin("Load L10n Resources"),o=!0,i.cldr={},r=function(e){let t,r;return r=e.split("-"),r[0]=r[0].toLowerCase(),t=1,r.length>t&&4===r[t].length&&(t=2),r.length>t&&(r[t]=r[t].toUpperCase()),r.join("-")}(r),window.require&&window.define)require.s.contexts._.config.config.ojL10n&&require(["ojL10n!ojtranslations/nls/localeElements"],(function(e){a.extend(!0,i.cldr,e),s()}));else{let o,l,u,c,g,m={},d=e;window.define=function(e){e.root&&(m=e,e=e.root),a.extend(!0,i.cldr,e)},l={cache:!0,dataType:"script",scriptAttrs:{nonce:n.NONCE}},o=d+"localeElements.js",u=a.ajax(o,l),u.done((function(){g=r,m[g]||(g=g.split("-")[0],m[g]||(g=navigator.language,m[g]||(g="en"))),o=d+g+"/localeElements.js",c=a.ajax(o,l),c.fail((function(){t.error("Failed to load locale resource ",o)})).always((function(){s(),delete window.define}))})).fail((function(){t.error("Failed to load locale resource ",o),delete window.define}))}};e.init=function(t){"pending"!==e.resourcesLoaded().state()&&(l=a.Deferred(),s=l.promise()),i=a.extend(i,t),a((function(){let t,r=i.resources;r&&(o?(t=e.resourcesLoaded(),t.done((function(){setTimeout((function(){l=a.Deferred(),s=l.promise(),u(r,i.language)}),1)}))):u(r,i.language))}))},e.getSettings=function(){return a.extend(!0,{},i)},e.resourcesLoaded=function(e){return e&&s.done(e),s},e.getGroupSeparator=function(){return i.separators.group},e.getDecimalSeparator=function(){return i.separators.decimal},e.getAbbrevMonthNames=function(){return i.calendar.abbrMonthNames},e.getMonthNames=function(){return i.calendar.monthNames},e.getAbbrevDayNames=function(){return i.calendar.abbrDayNames},e.getDayNames=function(){return i.calendar.dayNames},e.getDateFormat=function(){return i.calendar.dateFormat},e.getDSDateFormat=function(){return i.calendar.dsDateFormat},e.getDLDateFormat=function(){return i.calendar.dlDateFormat},e.getLanguage=function(){return i.language},e.getCurrency=function(){return i.currency.local},e.getISOCurrency=function(){return i.currency.iso},e.getDualCurrency=function(){return i.currency.dual};const c=r.escapeRegExp,g=/V|RN|TM|EEEE/,m=/^\s*0[bBoO]/,d=/^\s*0[Xx]/,f=/^[-+]?0*/,p=/\.?0*$/,h=/[Dd.]/,D=/[CLUPRMIS$]*$/i,N=/[$CLU]/;function S(e,t){return e.includes(".")&&(e=e.substring(0,e.indexOf(".")+1+t).replace(p,"")),e}e.toNumber=function(r,n){let a,i=NaN,o=e.getDecimalSeparator();if("number"==typeof r)i=r;else if("string"==typeof r&&""!==r.trim()&&!m.test(r)){if(n&&("string"!=typeof n||g.test(n))&&(n=null,t.warn("Unsupported format ignored: ",n)),n||"."===o||(n="GD"),n)if(b.test(n))d.test(r)||(r="0x"+r),i=Number(r);else{let t,l,s=e.getGroupSeparator(),u=".";if(d.test(r))return i;if(a=r,(n=n.toUpperCase()).includes("PR")?(l=/^\s*<(.+)>\s*$/.exec(a),l&&(a="-"+l[1])):/(S|MI)$/.test(n)&&a.includes("-")&&(a="-"+a.replace("-","")),"."!==o&&(a=a.replace(o,"\n"),u="\n"),t=a.split(u),n.includes("G"))t[0]=t[0].replaceAll(s,"");else if(n.includes(","))t[0]=t[0].replaceAll(",","");else if(t[0].includes("."))return i;if(a=t.join(".").trim(),N.test(n)){let t=new RegExp("\\$|"+c(e.getCurrency())+"|"+c(e.getDualCurrency())+"|"+c(e.getISOCurrency()),"g");a=a.replace(t,"")}i=Number(a)}else a=r.replace(/[$,]/g,"").trim(),i=Number(a);if(a&&!isNaN(i)&&!/[eE]/.test(a)){let e=0,r=(""+i).replace(f,""),o=a.replace(f,"");if(n){const t=n.replace(D,"");let r=h.exec(t);r&&(e=t.length-r.index-1)}o=S(o,e),r=S(r,e),r!==o&&(t.error("Value exceeds number precision "+a),i=NaN)}}return i};const b=/^(FM)?(0*X+)$/,F=/^(FMS|SFM|S|FM)?([CLU])?([D$09B][GD$09B]*)?(V9+)?([CLU])?(PR|MI|S)?$/,M=/^(FMS|SFM|S|FM)?([CLU])?([.$09B][,.$09B]*)?(V9+)?([CLU])?(PR|MI|S)?$/;e.formatNumber=function(t,r,n){let i,o,l,s,u,c,g,m,d,f,p,h,D,N,S,E,A,L,R,C,x,I,O,v,w,_,T={groupingSize:0,groupingSize0:0,decimalSeparator:".",groupingSeparator:""};function $(){throw new Error("Invalid number format model "+r)}function Y(){return"########################################".substr(0,S)}if(null===t||""===t)return"";if(v=(n=a.extend({NLS_NUMERIC_CHARACTERS:e.getDecimalSeparator()+e.getGroupSeparator(),NLS_CURRENCY:e.getCurrency(),NLS_DUAL_CURRENCY:e.getDualCurrency(),NLS_ISO_CURRENCY:e.getISOCurrency()},n)).NLS_NUMERIC_CHARACTERS[0],w=n.NLS_NUMERIC_CHARACTERS[1],v===w)throw new Error("Invalid NLS parameter");if(null==r){let e=!isNaN(Number(t));return t=""+t,e&&"."!==v&&t.includes(".")&&(t=t.replace(".",v)),t}if(L=r.toUpperCase(),s=b.exec(L),s)return g=s[1]&&s[1].indexOf("FM")>=0,d=s[2],h="0"===d.substr(0,1),D=d===r.replace(/FM/i,""),E=d.length,S=E+1,t<0||t>(Number.MAX_SAFE_INTEGER||9007199254740991)?N=Y():(N=Math.round(t).toString(16),D&&(N=N.toUpperCase()),h&&(N=U(N,d.length,!0)),N.length>E?N=Y():g||(N=" "+N)),N;if(s=F.exec(L),s||(v=".",w=",",s=M.exec(L)),s||$(),s[1]=s[1]||"",s[2]&&s[5]&&$(),g=s[1].indexOf("FM")>=0,u=s[2]||s[5]||"",p=!!s[2],d=s[3]||"B",f=d.indexOf("$"),f>=0&&(u&&$(),u="$",p=!0,d=d.substr(0,f)+d.substr(f+1)),f=d.indexOf("B"),m=f>=0,m&&(d=d.substr(0,f)+d.substr(f+1)),c="",f=s[1].indexOf("S"),f>=0&&s[6]&&$(),c=f>=0?"LS":s[6]||"",_=s[4]||"",_&&d.match(/[D.]/)&&$(),_&&(_=_.substr(1),t*=parseInt(_,10)+1,d+=_),R=d.split(/[D.]/),(R.length>2||R.length>1&&R[1].match(/[G,]/)||d.match(/[B$]/))&&$(),I=R[0],O=R[1]||"",S=d.length+1,"PR"===c&&(S+=1),u)switch(u){case"C":u=n.NLS_ISO_CURRENCY,S+=7;break;case"L":u=n.NLS_CURRENCY,S+=10;break;case"U":u=n.NLS_DUAL_CURRENCY,S+=10;break;case"$":S+=1}if(l=Math.abs(t),isNaN(l))return"NaN";for(t<0&&(l=-l),T.maximumFractionDigits=O.length,f=O.lastIndexOf("0"),T.minimumFractionDigits=g&&f>=0?f+1:O.length,A=I.replace(/[G,]/g,""),f=A.indexOf("0"),T.minimumIntegerDigits=f>=0?A.length-f:0,N=y(l,{},T),"0."===N.substr(0,2)&&"9"===I[I.length-1]&&(N=N.substr(1)),R=N.split("."),A=R[0],x=R[1]||"",C="",i=I.length-1,o=A.length-1;i>=0;i--)if(I[i].match(/[G,]/))o>=0&&(C=w+C);else{if(o<0)break;C=A[o]+C,o-=1}if(o>=0&&!(m&&""===d&&N<1))return Y();if(N=C,d.match(/[D.]/)&&(N+=v+x),m&&N.match(/^[0.,]*$/)&&(N=""),u&&(p?N=u+N:N+=u),g=g?"":" ",t<0&&""!==N)switch(c){case"LS":default:N="-"+N;break;case"S":case"MI":N+="-";break;case"PR":N="<"+N+">"}else if(t>=0)switch(c){case"LS":N="+"+N;break;case"S":N+="+";break;case"MI":case"PR":N+=g}return N.length<S&&(N=g+N),N},e.formatCompactNumber=function(r,n){let o,l,s,u,c,g,m,d,f,p,h,D,N,S,b;return"resolved"!==e.resourcesLoaded().state()?(t.warn("Can't format number before locale resources loaded."),""+r):(delete(n=a.extend({useGrouping:!0,roundingMode:"DEFAULT",maximumFractionDigits:2,minimumFractionDigits:0,minimumIntegerDigits:1},n)).pattern,c=i.cldr,u=Object.keys(c.main)[0],h=c.main[u].numbers,N="latn",S="symbols-numberSystem-latn",b=h[S].minusSign,D=h["decimalFormats-numberSystem-latn"],m=D.standard,m=m.split(".")[0],d=m.split(","),d.length>2?(f=d[d.length-1].length,p=d[d.length-2].length):d.length>1&&(f=d[d.length-1].length,p=0),g=n.separators||{},s={lang:(F=u,F.split("-")[0]),shortDecimalFormat:D.short.decimalFormat,groupingSize:f||3,groupingSize0:p||0,decimalSeparator:g.decimal||h[S].decimal,groupingSeparator:g.group||h[S].group,maximumFractionDigits:n.maximumFractionDigits,minimumFractionDigits:n.minimumFractionDigits,minimumIntegerDigits:n.minimumIntegerDigits},o="",l=function(e,t,r){var n,a,i,o=Math.abs(e),l=function(e){for(var t=Object.keys(A),r=0;r<t.length;r++)for(var n=t[r],a=A[n].length,i=0;i<a;i++)if(A[n][i]<=e)return[n,A[n][i]];return[e,null]}(o),s="";if(null!==l[1]){var u=r.lang,c=new Intl.PluralRules(u).select(Math.floor(o/L[l[0]]));if(n=l[1]+"-count-"+c,void 0===(n=r.shortDecimalFormat[n])&&(c="other",n=l[1]+"-count-"+c,n=r.shortDecimalFormat[n]),i=(a=function(e){var t=0,r=0,n=0,a="";if("0"!==e[0]){for(;"0"!==e[t]&&t<e.length;)t+=1;a=e.substr(0,t),n=t}for(t=n;t<e.length&&"0"===e[t];t++)r+=1;return[a,r]}(n))[1],s=a[0],i<n.length){var g=1*Math.pow(10,i);o/=g=l[1]/g*10}}var m="";void 0!==n&&(m=n.substr(i+a[0].length)),e<0&&(o=-o);return s+y(o,t,r)+(m=m.replace(/'\.'/g,"."))}(r,n,s),o+=r<0&&l-0!=0?b+l:l,o);var F};var E=/^0+$/,A={trillion:[1e14,1e13,1e12],billion:[1e11,1e10,1e9],million:[1e8,1e7,1e6],thousand:[1e5,1e4,1e3]},L={trillion:1e12,billion:1e9,million:1e6,thousand:1e3},R={HALF_UP:"ceil",CEILING:"ceil",UP:"ceil",HALF_DOWN:"floor",FLOOR:"floor",DOWN:"floor",DEFAULT:"round"};function U(e,t,r){var n;for(n=e.length;n<t;n+=1)e=r?"0"+e:e+"0";return e}function y(e,t,r){var n=r.groupingSize,a=r.groupingSize0,i=r.decimalSeparator,o=e+"",l=o.split(/e/i),s=l.length>1?parseInt(l[1],10):0,u=(l=(o=l[0]).split(".")).length>1?l[1]:"",c=Math.min(r.maximumFractionDigits,u.length-s);l.length>1&&u.length>s&&(e=function(e,t,r){var n,a=r,i=e.toString().split(".");if(void 0===i[1])return Math.abs(e);if("DEFAULT"!==r){if("HALF_UP"===r||"HALF_EVEN"===r||"HALF_DOWN"===r){if("5"===i[1][t]){var o=i[1].substr(t);(o=parseInt(o,10))>5&&(a="HALF_UP")}else a="DEFAULT";e=Math.abs(e)}a=function(e,t,r,n){var a=R[t];if("HALF_EVEN"===t){var i;if(0===r){var o=e[0].length;i=parseInt(e[0][o-1],10)}else i=parseInt(e[1][r-1],10);a=i%2==0?R.HALF_DOWN:R.HALF_UP}else"UP"===t&&n<0?a=R.DOWN:"DOWN"===t&&n<0&&(a=R.UP);return a}(i,a,t,e),n=function(e,t,r){if(0===t)return Math[r](e);var n=e.toString().split("e"),a=n[0],i=n[1],o=a+"e"+(i?parseInt(i,10)-t:-t),l=parseFloat(o);return o=(a=(n=Math[r](l).toString().split("e"))[0])+"e"+((i=n[1])?parseInt(i,10)+t:t),parseFloat(o)}(e,-t,a)}else{var l=Math.pow(10,t);if(n=Math.round(e*l)/l,!isFinite(n))return e}return Math.abs(n)}(e,c,t.roundingMode||"DEFAULT")),s=(l=(o=Math.abs(e)+"").split(/e/i)).length>1?parseInt(l[1],10):0,l=(o=l[0]).split("."),o=l[0],u=l.length>1?l[1]:"",s>0?(o+=(u=U(u,s,!1)).slice(0,s),u=u.substr(s)):s<0&&(u=(o=U(o,1+(s=-s),!0)).slice(-s,o.length)+u,o=o.slice(0,-s)),c>0&&u.length>0?(u=u.length>c?u.slice(0,c):U(u,c,!1),!0===E.test(u)&&(u=u.slice(0,r.minimumFractionDigits)),u=i+u):u=r.minimumFractionDigits>0?i:"",u=U(u,i.length+r.minimumFractionDigits,!1);var g=r.groupingSeparator,m="";!1===t.useGrouping&&void 0===t.pattern&&(g="");var d=(o=U(o,r.minimumIntegerDigits,!0)).length-1;for(u=u.length>1?u:"";d>=0;){if(0===n||n>d)return o.slice(0,d+1)+(m.length?g+m+u:u);m=o.slice(d-n+1,d+1)+(m.length?g+m:""),d-=n,a>0&&(n=a)}return o.slice(0,d+1)+g+m+u}}(apex.locale,apex.debug,apex.util,apex.env,apex.jQuery);
10apex.lang=function(e,t,n,s,a){"use strict";
10function o(t,n,...s){let a,o={};if(void 0!==s[0])if(s[0]&&s[0].constructor===Object)o=s[0];else for(let e=0;e<s.length;e++)o[e]=s[e];return Object.keys(o).forEach((e=>{o[e]=o[e].toString().replaceAll("%","^#")})),a=n.replaceAll("%%","%"),Object.keys(o).forEach((n=>{a=a.replace("%"+n,t?e.escapeHTML(o[n]):o[n])})),a.replaceAll("^#","%")}let r={};const l={addMessages:function(e){a.extend(r,e)},loadMessages:function(e){let t=a.Deferred(),o={p_app_id:s.APP_ID,p_lang:n.getLanguage(),p_version:"1",p_names:e};return a.get("wwv_flow.js_messages",o,null,"json").done((function(e){l.addMessages(e),t.resolve()})).fail((function(){t.reject()})),t.promise()},loadMessagesIfNeeded:function(e,t){let n=[];for(let t=0;t<e.length;t++)this.hasMessage(e[t])||n.push(e[t]);n.length>0?l.loadMessages(n).done((function(){t()})):t()},clearMessages:function(){r={}},getMessage:function(e){let t=r[e];return null==t?e:t},hasMessage:function(e){return null!=r[e]},formatMessage:function(e,...t){let n=l.getMessage(e);return l.format(n,...t)},format:function(e,...t){return o(!0,e,...t)},formatMessageNoEscape:function(e,...t){let n=l.getMessage(e);return l.formatNoEscape(n,...t)},formatNoEscape:function(e,...t){return o(!1,e,...t)}};return l}(apex.util,apex.debug,apex.locale,apex.env,apex.jQuery);
11apex.message={},function(e,t,a,o,i){"use strict";const s="inline",n="template-id",l="FALLBACK_ET",r="click",c="u-visible",d="u-hidden",u="apex-page-item-error",f="a-Form-error",p="aria-describedby",g="aria-invalid",m="data-old-aria-describedby";let S,E=!1,h=()=>{clearTimeout(S)};var v={},C=[],A=[],b={beforeShow:null,beforeHide:null,closeNotificationSelector:"button.t-Button--closeAlert",pageErrorsContainerSelector:"#t_Alert_Notification",successMessageContainerSelector:"#t_Alert_Success"},I={};e.TYPE={SUCCESS:"success",ERROR:"error"},e.registerTemplates=function(a){var o,i,s,n;if(t.isPlainObject(a))v=t.extend(v,a);else for(o=0;o<a.length;o++)for(s=a[o].ids.split(","),i=0;i<s.length;i++)(n={})[s[i]]=a[o].markup,e.registerTemplates(n)},e.clearTemplates=function(){v={}},e.getTemplates=function(){return v},e.setThemeHooks=function(e){b=t.extend(b,e)},e.setDismissPreferences=function(e){I=t.extend(I,e),S&&!I.dismissPageSuccess?h():E&&(G(),E=!1)},e.showErrors=function(i){let l,r,u=t.isPlainObject(i)?[i]:i,f=[],p=t("#APEX_SUCCESS_MESSAGE"),g=0;for(let e=0;e<u.length;e++)C.push(u[e]);!function(e){let o=[],i=[];e.forEach((e=>{e.pageItem?o.push("#"+a.escapeCSS(e.pageItem)):e.regionStaticId&&o.push("#"+a.escapeCSS(e.regionStaticId))})),o.length>0&&t(o.join(", ")).each(((e,t)=>i.push(t.id))),e.sort(((e,t)=>{let a,o,s;return e.pageItem?a=i.indexOf(e.pageItem):e.regionStaticId&&(a=i.indexOf(e.regionStaticId)),-1===a&&(a=void 0),t.pageItem?o=i.indexOf(t.pageItem):t.regionStaticId&&(o=i.indexOf(t.regionStaticId)),-1===o&&(o=void 0),void 0!==a&&void 0===o?s=-1:void 0!==o&&void 0===a?s=1:void 0===a&&void 0===o?s=0:void 0!==a&&void 0!==o&&(s=a-o),s}))}(C);for(let e=0;e<C.length;e++)l=C[e],r="string"==typeof l.location?[l.location]:l.location,t.inArray(s,r)>-1&&l.pageItem&&(w(l),g+=1),t.inArray("page",r)>-1&&f.push(l);f.length>0&&function(i){var s,l=a.htmlBuilder(),r={},u=!0,f=t("#APEX_ERROR_MESSAGE");f.html(v[f.data(n)]),l.markup("<div").attr("class","a-Notification a-Notification--error").markup(">"),l.markup("<div").attr("class","a-Notification-title aErrMsgTitle").markup(">"),s=1===i.length?o.getMessage("FLOW.SINGLE_VALIDATION_ERROR"):o.formatMessage("FLOW.VALIDATION_ERROR",i.length),l.content(s).markup("</div>"),l.markup("<ul").attr("class","a-Notification-list htmldbUlErr").markup(">");for(let e=0;e<i.length;e++){let t=i[e],a=t.pageItem||t.regionStaticId;if(l.markup("<li").attr("class","a-Notification-item htmldbStdErr").markup(">"),a&&l.markup("<a").attr("href","#").optionalAttr("data-region",t.regionStaticId).optionalAttr("data-instance",t.instance).optionalAttr("data-record",t.recordId).optionalAttr("data-column",t.columnName).optionalAttr("data-for",t.pageItem).attr("class","a-Notification-link").markup(">"),void 0===t.unsafe||t.unsafe?l.content(t.message):l.markup(t.message),a&&l.markup("</a>"),t.techInfo){let e,a=o.getMessage("APEX.ERROR.TECHNICAL_INFO");l.markup("<button class='a-Button a-Button--notification js-showDetail
11s' tabindex='-1' type='button'").attr("aria-label",a).attr("title",a).markup("><span class='a-Icon icon-info' aria-hidden='true'></span></button>"),l.markup("<div class='a-Notification-details' style='display:none'><h2>").content(a).markup("</h2><ul class='error_technical_info'>");for(let a=0;a<t.techInfo.length;a++)e=t.techInfo[a],l.markup("<li><span class='a-Notification-detailName'>").content(e.name+": ").markup("</span>"),e.usePre&&l.markup("<br>"),l.markup("<span").attr("class","a-Notification-detailValue"+(e.usePre?" a-Notification--pre":"")).markup(">").content(e.value).markup("</span></li>");l.markup("</ul></div>")}l.markup("</li>")}l.markup("</ul>"),l.markup("</div>"),r.placeholders={MESSAGE:l.toString(),CLOSE_NOTIFICATION:o.getMessage("APEX.CLOSE_NOTIFICATION"),ERROR_MESSAGE_HEADING:o.getMessage("APEX.ERROR_MESSAGE_HEADING"),IMAGE_PREFIX:window.apex_img_dir||""},f.html(a.applyTemplate(v[f.data(n)],r)),b.beforeShow&&(u=b.beforeShow(e.TYPE.ERROR,f)),(void 0===u||u)&&(f.removeClass(d).addClass(c),b.pageErrorsContainerSelector&&t(b.pageErrorsContainerSelector).attr("tabindex","-1").trigger("focus"))}(f),p.removeClass(c).addClass(d),0===f.length&&g>0&&e.goToErrorByIndex(0)},e.clearErrors=function(a){var o,i,n,l,r=!0,S=t("#APEX_ERROR_MESSAGE");function E(e){var t=R(e),a=t.attr(m);a?t.attr(p,a).removeAttr(g+" "+m).removeClass(u):t.removeAttr(g+" "+p).removeClass(u)}if(a)E(a),n=t("#"+a+"_error_placeholder."+f);else{for(o=0;o<C.length;o++)l="string"==typeof(i=C[o]).location?[i.location]:i.location,t.inArray(s,l)>-1&&i.pageItem&&E(i.pageItem);n=t("span."+f),b.beforeHide&&(r=b.beforeHide(e.TYPE.ERROR,S)),(void 0===r||r)&&S.removeClass(c).addClass(d).html("")}n.html("").removeClass(c).addClass(d),C=[]},e.goToErrorByIndex=function(e){let t=C[e],a={};t&&(a.region=t.regionStaticId,a.instance=t.instance,a.record=t.recordId,a.column=t.columnName,a.for=t.pageItem,D(a))},e.showPageSuccess=function(i){if(window.pageDesigner)window.pageDesigner.showSuccess(i);else{const s=t("#APEX_SUCCESS_MESSAGE"),l={placeholders:{SUCCESS_MESSAGE:i,CLOSE_NOTIFICATION:o.getMessage("APEX.CLOSE_NOTIFICATION"),SUCCESS_MESSAGE_HEADING:o.getMessage("APEX.SUCCESS_MESSAGE_HEADING"),IMAGE_PREFIX:window.apex_img_dir||""}};let r=!0;e.clearErrors(),s.html(a.applyTemplate(v[s.data(n)],l)),b.beforeShow&&(r=b.beforeShow(e.TYPE.SUCCESS,s)),G(),(void 0===r||r)&&s.removeClass(d).addClass(c)}},e.hidePageSuccess=function(){var a=!0,o=t("#APEX_SUCCESS_MESSAGE");b.beforeHide&&(a=b.beforeHide(e.TYPE.SUCCESS,o)),(void 0===a||a)&&o.removeClass(c).addClass(d),E=!1},e.confirm=function(e,t,a){setTimeout((function(){x(""+e,{confirm:!0,modern:!0,title:a?.title,style:a?.style,dialogClass:"ui-dialog--notification "+(a?.dialogClasses||""),iconClass:a?.iconClasses,cancelLabel:a?.cancelLabel,cancelLabelKey:a?.cancelLabelKey,okLabel:a?.confirmLabel,okLabelKey:a?.confirmLabelKey,unsafe:a?.unsafe,callback:t})}),0)},e.alert=function(e,t,a){setTimeout((function(){x(""+e,{alert:!0,modern:!0,title:a?.title,style:a?.style,dialogClass:"ui-dialog--notification "+(a?.dialogClasses||""),iconClass:a?.iconClasses,okLabel:a?.okLabel,okLabelKey:a?.okLabelKey,callback:t})}),0)};const k="apexAriaStatus",T="#"+k,_="apexAriaAlert",y="#"+_;let L=null,M=null;e.ariaMessage=function(e){t(T).remove(),L&&clearTimeout(L),L=setTimeout((function(){t(T).remove()}),5e3),t("body").append("<div class='u-vh' id='"+k+"' role='status'></div>"),setTimeout((function(){t(T).text(e)}),0)},e.ariaAlertMessage=function(e){t(y).remove(),M&&clearTimeout(M),M=setTimeout((function(){t(y).remove()}),5e3),t("body").append("<div class='u-vh' id='"+_+"' role='alert'></div>"),t(y).text(e)},e.addVisibilityCheck=function(e){A.push(e)};var O=[],P=null,N=null;function x(e,s){const n=apex.navigation,l=a.getTopApex().jQuery,c=l("body");let d,u,f,p,g,m,S,E,h,v,C,A,b=!1,I=null,k=[];if((s=t.extend({id:null,isPopup:!1,noOverlay:!1,draggable:!0,resizable:!1,notification:!0,dialogClass:"ui-dialog--notification",okButton:!0,okButtonClass:"ui-button--hot",okLabel:null,okLabelKey:"APEX.DIALOG.OK",cancelLabel:null,cancelLabelKey:"APEX.DIALOG.CANCEL",confirm:!1,alert:!1,defaultButton:!1,title:"",unsafe:!0,takeFocus:!0,modern:!1,style:null,iconClass:null},s)).modern&&(s.dialogClass+=" ui-dialog--modern",["information","warning","danger","success"].includes(s.style)?(s.dialogClass+=" ui-dialog--"+("information"===s.style?"info":s.style),s.okButtonClass="danger"===s.style?"ui-button--danger":"ui-button--hot",null===s.iconClass&&(s.iconClass="a-Icon")):null!==s.style&&i.error(`"${s.style}" is not a valid style for apex.message.showDialog`)),S=s.isPopup?"popup":"dialog",v=s.parentElement,s.id&&(u=l("#"+a.escapeCSS(s.id))),N=s.returnFocusTo||document.activeElement||null,v&&l!==apex.jQuery&&(v=t(v),E=v.offset(),h=l("iframe").filter((function(){return this.contentWindow===window})).offset(),C=t(window),E.top+=h.top-C.scrollTop(),E.left+=h.left-C.scrollLeft(),b=!0,s.parentElement=l("<div>").css("position","absolute").appendTo(c).outerWidth(v.outerWidth()).outerHeight(v.outerHeight()).offset(E)),u&&u[0])b&&u[S]("option","parentElement",s.parentElement),u[S]("open");else{if(u="string"==typeof e?l("<div>"+(s.unsafe?a.escapeHTML(e).replace(/\r\n|\n/g,"<br>"):e)+"</div>"):"function"==typeof e?l(e()):e,s.modern){let i=!1;(s.alert||s.confirm)&&(s.title?.length||(s.title=o.getMessage("APEX.DIALOG.CONFIRMATION"),i=!0));const n=o.getMessage(i?"APEX.DIALOG.VISUALLY_HIDDEN_TITLE":"APEX.DIALOG.TITLE"),r=t({}).uniqueId()[0].id;p=l(`<div>\n                         <div class="a-AlertMessage">\n                             ${s.iconClass?`<div class="a-AlertMessage-icon">
11\n                                         <span aria-hidden="true" class="${a.escapeHTMLAttr(s.iconClass)}"></span>\n                                    </div>`:""}\n                             <div class="a-AlertMessage-body">\n                                 ${s.title?`<h1  class="a-AlertMessage-title${i?" u-vh":""}"\n                                            aria-roledescription="${a.escapeHTML(n)}"\n                                            aria-describedby="${a.escapeHTML(r)}"\n                                        >${s.unsafe?a.escapeHTML(s.title):s.title}</h1>`:""}\n                                 <div id="${a.escapeHTML(r)}" class="a-AlertMessage-details"></div>\n                             </div>\n                         </div>\n                     </div>`),p.find("#"+a.escapeCSS(r)).append("string"==typeof e?u.contents():u),u=p}s.id&&u.attr("id",s.id),s.okButton&&k.unshift({class:"js-confirmBtn",text:null!==s.okLabel?s.okLabel:o.getMessage(s.okLabelKey),click:function(){I=!0,u[S]("close")}}),s.confirm&&k.unshift({text:null!==s.cancelLabel?s.cancelLabel:o.getMessage(s.cancelLabelKey),click:function(){I=!1,u[S]("close")}}),s.extraButtons&&s.extraButtons.forEach((function(e){k.unshift(e)})),s.id&&l!==apex.jQuery&&(O.push({dialogId:s.id,widget:S}),P||(P=function(){var e,a;for(e=0;e<O.length;e++)a=O[e],l("#"+a.dialogId)[a.widget]("close").remove();t(window).off("unload",P)},t(window).on("unload",P))),c.append(u),g={closeText:o.getMessage("APEX.DIALOG.CLOSE"),autoOpen:!0,noOverlay:s.noOverlay,modal:!0,classes:{"ui-dialog":s.dialogClass},parentElement:s.isPopup?s.parentElement:void 0,title:s.modern?"":s.title,closeOnEscape:!0,create:function(){d=l(this).closest(".ui-dialog"),m=d.find(".js-confirmBtn"),f=d.find("button.ui-dialog-titlebar-close"),d.css("position","fixed").attr("role",s.notification?"alertdialog":"dialog"),s.init&&s.init(u),s.okButtonClass&&m.addClass(s.okButtonClass),s.modern&&(A=d.attr("aria-labelledby"),d.find("#"+a.escapeCSS(A)).remove(),d.find(".a-AlertMessage-title").attr("id",A),f.remove())},open:function(e){n.beginFreezeScroll(),s.open?s.open(e):m.trigger("focus")},close:function(e){let a=!1,o=s.closeDeadAreas&&t(document.activeElement).closest(s.closeDeadAreas).length;e&&e.originalEvent&&e.originalEvent.data&&(a=!0===e.originalEvent.data.mouseDownOutPopup),n.endFreezeScroll(),s.callback&&(null===I&&(I=!1),s.confirm?s.callback(I):s.callback()),b&&u[S]("option","parentElement").remove(),!N||a||o||t(N).trigger("focus"),s.id||u.remove()},beforeClose:s.beforeClose,resize:s.resize,resizeStop:s.resizeStop,buttons:k},s.isPopup&&(g.takeFocus=s.takeFocus,g.closeDeadAreas=s.closeDeadAreas),["draggable","resizable","width","height","minWidth","minHeight","maxWidth","maxHeight"].forEach((function(e){void 0!==s[e]&&(g[e]=s[e])})),u[S](g),s.defaultButton&&u.on("keydown",(function(e){13===e.which&&"INPUT"===e.target.nodeName&&(m.trigger(r),e.preventDefault())}))}return u}function R(e){var o=apex.item(e);return o.callbacks&&o.callbacks.setFocusTo&&!t("#"+a.escapeCSS(e)).hasClass("rich_text_editor")?"function"==typeof o.callbacks.setFocusTo?o.callbacks.setFocusTo.call(o):t(o.callbacks.setFocusTo):o.setFocusTo?"function"==typeof o.setFocusTo?t(o.setFocusTo()):t(o.setFocusTo):t("#"+a.escapeCSS(e))}function w(e){var o,i,s,r={},f={},S=a.escapeCSS(e.pageItem)+"_error",E=R(e.pageItem),h=t("#"+a.escapeCSS(e.pageItem)+"_error_placeholder"),C=E.attr(p),A=a.htmlBuilder();h.length||(o=e.pageItem,(s=(i=E).closest("fieldset").parent()).length||(s=i.parent()),h=t("<div id='"+o+"_error_placeholder' data-template-id='FALLBACK_ET' class='u-hidden'></div>").appendTo(s),v[l]||(v[l]="<div class='t-Form-error'>#ERROR_MESSAGE#</div>")),A.markup("<div").attr("id",S).markup(">"),void 0===e.unsafe||e.unsafe?A.content(e.message):A.markup(e.message),A.markup("</div>"),f.placeholders={ERROR_MESSAGE:A.toString()},h.html(v[h.data(n)]),h.html(a.applyTemplate(h.html(),f)).removeClass(d).addClass(c),C?(r[m]=C,r[p]=S+" "+C):r[p]=S,r[g]=!0,E.addClass(u).attr(r)}function D(e){let a=e.for;function o(e){for(let t=0;t<A.length;t++)A[t](e)}if(e.for){let e=apex.item(a);o(a),0===t("#"+a+"_CONTAINER,#"+a+"_DISPLAY,#"+a,apex.gPageContext$).filter(":visible").length&&e.show(),e.setFocus()}else if(e.region){let t,a=e.region;o(a),t=apex.region(a),t&&t.gotoError(e)}}function G(){let a,o=b.successMessageContainerSelector,i=t(o),s=t(document);if(i[0]&&I.dismissPageSuccess){let t=()=>{S&&h(),S=setTimeout((()=>{e.hidePageSuccess(),i.off(".successMessage").find(b.closeNotificationSelector).off(".closeNotification"),s.off(r,t)}),I.dismissPageSuccessDuration||5e3)};
11t(),i.on(r+".successMessage",(e=>{e.stopPropagation(),a=!0,h()})).on("mouseover.successMessage",h).on("mouseout.successMessage",(()=>{a||t()})).find(b.closeNotificationSelector).on("focus.closeNotification",h).on(r+".closeNotification",(()=>{apex.message.hidePageSuccess()})),s.on(r,(()=>{a&&(t(),a=!1)}))}}e.showDialog=x,t((()=>{t(".a-Error-back").on(r,(function(e){e.preventDefault(),window.history.go(-1)})),t("#APEX_SUCCESS_MESSAGE").on(r,b.closeNotificationSelector,(function(t){e.hidePageSuccess(),t.preventDefault()})),t("#APEX_SUCCESS_MESSAGE").hasClass("js-auto-dismiss")&&void 0===I.dismissPageSuccess&&e.setDismissPreferences({dismissPageSuccess:!0}),t(b.successMessageContainerSelector)[0]&&(G(),E=!0),t("#APEX_ERROR_MESSAGE").on(r,b.closeNotificationSelector,(function(e){t("#APEX_ERROR_MESSAGE").removeClass(c).addClass(d),e.preventDefault()})).on(r,"a.a-Notification-link",(function(e){var a=t(this),o={};["data-region","data-instance","data-record","data-column","data-for"].forEach((function(e){var t=e.substr(5),i=a.attr(e);void 0!==i&&(o[t]=i)})),D(o),e.preventDefault()})).on(r,".js-showDetails",(function(){var e=t(this),a=e.next();x(a,{callback:function(){e.after(a)},dialogClass:"ui-dialog--notificationLarge"})})).on("keydown",".a-Notification-link",(function(e){112===e.which&&e.altKey&&t(this).parent().find(".js-showDetails").trigger(r)}))}))}(apex.message,apex.jQuery,apex.util,apex.lang,apex.debug);
12apex.date={},function(e,t,r,n){"use strict";function a(t,r){let n;return r===e.UNIT.YEAR?n=new Date(t.getFullYear(),0,1,0,0,0,0):r===e.UNIT.MONTH?n=new Date(t.getFullYear(),t.getMonth(),1,0,0,0,0):r===e.UNIT.WEEK||r===e.UNIT.DAY?n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0):r===e.UNIT.HOUR?n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),0,0,0):r===e.UNIT.MINUTE?n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),0,0):r===e.UNIT.SECOND?n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),0):r===e.UNIT.MILLISECOND&&(n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())),n}e.UNIT={MILLISECOND:"millisecond",SECOND:"second",MINUTE:"minute",HOUR:"hour",DAY:"day",WEEK:"week",MONTH:"month",YEAR:"year"},e.isValid=function(e){return e instanceof Date&&!isNaN(e)},e.isValidString=function(e){return!isNaN(Date.parse(e))},e.clone=function(e){return new Date(e.getTime())},e.add=function(t,r,n){let a=t||new Date;return n===e.UNIT.YEAR?a.setFullYear(a.getFullYear()+r):n===e.UNIT.MONTH?a=function(e,t){let r=e.getDate();return e.setMonth(e.getMonth()+t),e.getDate()!==r&&e.setDate(0),e}(a,r):n===e.UNIT.WEEK?a.setDate(a.getDate()+7*r):n===e.UNIT.DAY?a.setDate(a.getDate()+r):n===e.UNIT.HOUR?a.setHours(a.getHours()+r):n===e.UNIT.MINUTE?a.setTime(a.getTime()+6e4*r):n===e.UNIT.SECOND?a.setTime(a.getTime()+1e3*r):n===e.UNIT.MILLISECOND&&a.setTime(a.getTime()+r),a},e.subtract=function(t,r,n){let a=t||new Date;return a=e.add(a,-r,n),a},e.ISOWeek=function(t){let r,n=e.clone(t||new Date),a=(n.getDay()+6)%7;return n.setDate(n.getDate()-a+3),r=n.valueOf(),n.setMonth(0,1),4!==n.getDay()&&n.setMonth(0,1+(4-n.getDay()+7)%7),1+Math.ceil((r-n)/6048e5)},e.weekOfMonth=function(t){let r=e.clone(t||new Date);return r.setDate(r.getDate()-r.getDay()+1),Math.ceil(r.getDate()/7)},e.daysInMonth=function(e){let t=e||new Date;return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()},e.dayOfWeek=function(e){let t=e||new Date;return 0===t.getDay()?7:t.getDay()},e.localeDayOfWeek=function(e){let r=e||new Date,n=t.getDayNames(),a="sunday"===t.getSettings().calendar.startOfWeek?0:-1;return r.getDay()+a===-1?n.length+a:r.getDay()+a},e.getDayOfYear=function(e){let t=e||new Date,r=new Date(t.getFullYear(),0,0),n=t-r;return Math.floor(n/864e5)},e.setDayOfYear=function(e,t){(e||new Date).setMonth(0,t)},e.secondsPastMidnight=function(t){let r=e.clone(t||new Date);return Math.round((e.clone(r)-r.setHours(0,0,0,0))/1e3,0)},e.firstOfMonth=function(e){let t=e||new Date;return new Date(t.getFullYear(),t.getMonth(),1)},e.lastOfMonth=function(e){let t=e||new Date;return new Date(t.getFullYear(),t.getMonth()+1,0)},e.startOfDay=function(e){let t=e||new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},e.endOfDay=function(e){let t=e||new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59,999)},e.monthsBetween=function(e,t){let r;return r=12*(t.getFullYear()-e.getFullYear()),r-=e.getMonth(),r+=t.getMonth(),Math.abs(r)},e.min=function(...e){let t=e||[new Date];return new Date(Math.min.apply(null,t))},e.max=function(...e){let t=e||[new Date];return new Date(Math.max.apply(null,t))},e.isBefore=function(t,r,n){let o=!1,s=n||e.UNIT.MILLISECOND,i=a(t,s),g=a(r,s);return o=s===e.UNIT.MILLISECOND?i.getTime()<g.getTime():i<e.add(e.subtract(g,1,s),1,e.UNIT.MILLISECOND),o},e.isAfter=function(t,r,n){let o=!1,s=n||e.UNIT.MILLISECOND,i=a(t,s),g=a(r,s);return o=s===e.UNIT.MILLISECOND?i.getTime()>g.getTime():i>e.subtract(e.add(g,1,s),1,e.UNIT.MILLISECOND),o},e.isSame=function(t,r,n){let o=!1,s=n||e.UNIT.MILLISECOND,i=a(t,s),g=a(r,s);return o=i.getTime()===g.getTime(),o},e.isSameOrBefore=function(t,r,n){let o=!1,s=n||e.UNIT.MILLISECOND,i=a(t,s),g=a(r,s);return o=s===e.UNIT.MILLISECOND?i.getTime()<=g.getTime():e.isSame(i,g)||i<e.add(e.subtract(g,1,s),1,e.UNIT.MILLISECOND),o},e.isSameOrAfter=function(t,r,n){let o=!1,s=n||e.UNIT.MILLISECOND,i=a(t,s),g=a(r,s);return o=s===e.UNIT.MILLISECOND?i.getTime()>=g.getTime():e.isSame(i,g)||i>e.subtract(e.add(g,1,s),1,e.UNIT.MILLISECOND),o},e.isBetween=function(t,r,n,o){let s=!1,i=o||e.UNIT.MILLISECOND,g=a(t,i),l=a(r,i),u=a(n,i);return s=g>l&&g<u,s},e.isLeapYear=function(e){let t=e||new Date;return 29===new Date(t.getFullYear(),1,29).getDate()},e.toISOString=function(t){let r=e.clone(t||new Date);return e.add(r,-1*r.getTimezoneOffset(),e.UNIT.MINUTE),r.toISOString().split(".")[0]},e.since=function(t,n=!1){let a=t||new Date,o=new Date,s=(o-a)/1e3,i=(a-o)/1e3,g=n,l="",u=r.formatMessage,D={secondsAgo:u(g?"APEX.SINCE.SHORT.SECONDS_AGO":"SINCE_SECONDS_AGO","#time#"),minutesAgo:u(g?"APEX.SINCE.SHORT.MINUTES_AGO":"SINCE_MINUTES_AGO","#time#"),hoursAgo:u(g?"APEX.SINCE.SHORT.HOURS_AGO":"SINCE_HOURS_AGO","#time#"),daysAgo:u(g?"APEX.SINCE.SHORT.DAYS_AGO":"SINCE_DAYS_AGO","#time#"),weeksAgo:u(g?"APEX.SINCE.SHORT.WEEKS_AGO":"SINCE_WEEKS_AGO","#time#"),monthsAgo:u(g?"APEX.SINCE.SHORT.MONTHS_AGO":"SINCE_MONTHS_AGO","#time#"),yearsAgo:u(g?"APEX.SINCE.SHORT.YEARS_AGO":"SINCE_YEARS_AGO","#time#"),secondsFromNow:u(g?"APEX.SINCE.SHORT.SECONDS_FROM_NOW":"SINCE_SECONDS_FROM_NOW","#time#"),minutesFromN
12ow:u(g?"APEX.SINCE.SHORT.MINUTES_FROM_NOW":"SINCE_MINUTES_FROM_NOW","#time#"),hoursFromNow:u(g?"APEX.SINCE.SHORT.HOURS_FROM_NOW":"SINCE_HOURS_FROM_NOW","#time#"),daysFromNow:u(g?"APEX.SINCE.SHORT.DAYS_FROM_NOW":"SINCE_DAYS_FROM_NOW","#time#"),weeksFromNow:u(g?"APEX.SINCE.SHORT.WEEKS_FROM_NOW":"SINCE_WEEKS_FROM_NOW","#time#"),monthsFromNow:u(g?"APEX.SINCE.SHORT.MONTHS_FROM_NOW":"SINCE_MONTHS_FROM_NOW","#time#"),yearsFromNow:u(g?"APEX.SINCE.SHORT.YEARS_FROM_NOW":"SINCE_YEARS_FROM_NOW","#time#"),now:u("SINCE_NOW")};if(!e.isValid(a))throw new Error("Not a valid date");return e.isSame(o,a,e.UNIT.SECOND)?l=D.now:s>0&&s<60?l=D.secondsAgo.replace("#time#",Math.round(s)):i>0&&i<60?l=D.secondsFromNow.replace("#time#",Math.round(i)):s>=60&&s<3600?l=D.minutesAgo.replace("#time#",Math.round(s/60)):i>=60&&i<3600?l=D.minutesFromNow.replace("#time#",Math.round(i/60)):s>=3600&&s<172800?l=D.hoursAgo.replace("#time#",Math.round(s/60/60)):i>=3600&&i<172800?l=D.hoursFromNow.replace("#time#",Math.round(i/60/60)):s>=172800&&s<1209600?l=D.daysAgo.replace("#time#",Math.round(s/60/60/24)):i>=172800&&i<1209600?l=D.daysFromNow.replace("#time#",Math.round(i/60/60/24)):s>=1209600&&s<5184e3?l=D.weeksAgo.replace("#time#",Math.round(s/60/60/24/7)):i>=1209600&&i<5184e3?l=D.weeksFromNow.replace("#time#",Math.round(i/60/60/24/7)):s>=5184e3&&s<31536e3?l=D.monthsAgo.replace("#time#",Math.round(e.monthsBetween(a,o))):i>=5184e3&&i<31536e3?l=D.monthsFromNow.replace("#time#",Math.round(e.monthsBetween(o,a))):s>=31536e3?l=D.yearsAgo.replace("#time#",(e.monthsBetween(a,o)/12).toFixed(1)):i>=31536e3&&(l=D.yearsFromNow.replace("#time#",(e.monthsBetween(o,a)/12).toFixed(1))),l},e.format=function(r,a,o){let s,i,g,l,u=r||new Date,D=o||t.getLanguage()||"default",M=a||t.getDateFormat(),c=M.toUpperCase(),p=t.getSettings().calendar.amFormat,m=t.getSettings().calendar.pmFormat,N=[],h="",E=[],d="",S=[];function w(e,t){let r=(e.toUpperCase().match(/".*?"/g)||[]).join(" "),n=t.toUpperCase(),a=r.indexOf(n);return r.substr(0,a).includes('"')&&r.substr(a+1,r.length).includes('"')}function f(e=""){return e.toUpperCase().startsWith("FM")?e.replace(new RegExp("FM","ig"),""):e}function O(e=""){let t=f(e);return t===t.toUpperCase()}function I(e=""){let t=f(e);return t===t.toLowerCase()}function Y(e=""){let t=f(e);return t.charAt(0)===t.charAt(0).toUpperCase()&&t.substr(1)===t.substr(1).toLowerCase()}function F(e=""){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}function C(e){let r=t.getAbbrevMonthNames(),n="";if(!D.startsWith("en")&&D!==t.getLanguage())throw new Error("Only english & current application language are supported for 'MON' format");return n=D.startsWith("en")&&D!==t.getLanguage()?e.toLocaleString(D,{month:"short"}):r[e.getMonth()],n.toUpperCase()}function R(e){let r=t.getMonthNames(),n="";if(!D.startsWith("en")&&D!==t.getLanguage())throw new Error("Only english & current application language are supported for 'MONTH' format");return n=D.startsWith("en")&&D!==t.getLanguage()?e.toLocaleString(D,{month:"long"}):r[e.getMonth()],n.toUpperCase()}function H(r){let n=t.getAbbrevDayNames(),a="";if(!D.startsWith("en")&&D!==t.getLanguage())throw new Error("Only english & current application language are supported for 'DY' format");return a=D.startsWith("en")&&D!==t.getLanguage()?r.toLocaleString(D,{weekday:"short"}):n[e.localeDayOfWeek(r)],a.toUpperCase()}function T(r){let n=t.getDayNames(),a="";if(!D.startsWith("en")&&D!==t.getLanguage())throw new Error("Only english & current application language are supported for 'DAY' format");return a=D.startsWith("en")&&D!==t.getLanguage()?r.toLocaleString(D,{weekday:"long"}):n[e.localeDayOfWeek(r)],a.toUpperCase()}function A(t,r){return{YYYY:e=>("0000"+e.getFullYear()).slice(-4),FMYYYY:e=>("0000"+e.getFullYear()).slice(-4),YY:e=>("0000"+e.getFullYear()).slice(-2),RRRR:e=>("0000"+e.getFullYear()).slice(-4),FMRRRR:e=>("0000"+e.getFullYear()).slice(-4),RR:e=>("0000"+e.getFullYear()).slice(-2),MONTH:e=>R(e),FMMONTH:e=>R(e),MON:e=>C(e),FMMON:e=>C(e),MM:e=>("0"+(e.getMonth()+1)).slice(-2),FMMM:e=>(e.getMonth()+1).toString(),IW:t=>("0"+e.ISOWeek(t)).slice(-2),WW:t=>("0"+e.ISOWeek(t)).slice(-2),W:t=>e.weekOfMonth(t),DAY:e=>T(e),FMDAY:e=>T(e),DDD:t=>("0"+e.dayOfYear(t)).slice(-3),DD:e=>("0"+e.getDate()).slice(-2),FMDD:e=>e.getDate().toString(),DY:e=>H(e),FMDY:e=>H(e),D:e=>e.getDay()+1,HH24:e=>("0"+e.getHours()).slice(-2),HH12:e=>
12e.toLocaleString("en-US",{hour:"2-digit",hour12:!0}).substr(0,2),HH:e=>e.toLocaleString("en-US",{hour:"2-digit",hour12:!0}).substr(0,2),AM:e=>e.getHours()<12?p:m,PM:e=>e.getHours()<12?p:m,MI:e=>("0"+e.getMinutes()).slice(-2),SSSSS:t=>e.secondsPastMidnight(t),SS:e=>("0"+e.getSeconds()).slice(-2)}[r](t)}if(!e.isValid(u))throw new Error("Not a valid date");if("SINCE"===c)return e.since(u);for(/\bDS\b/g.test(c)&&(M=M.replace(/\bDS\b/gi,t.getDSDateFormat()),c=M.toUpperCase()),/\bDL\b/g.test(c)&&(M=M.replace(/\bDL\b/gi,t.getDLDateFormat()),c=M.toUpperCase()),n.trace("apex.date.format: date",e.toISOString(u)),n.trace("apex.date.format: formatMask",M),N="FMMONTH|FMYYYY|FMRRRR|MONTH|FMMON|FMDAY|SSSSS|FMDY|FMDD|FMMM|HH12|HH24|RRRR|YYYY|DAY|DDD|MON|AM|DD|DL|DS|DY|HH|IW|MI|MM|PM|RR|SS|WW|YY|D|W".split("|"),l=0;l<N.length;l++)h=N[l],c.includes(h)&&(w(M,h)||(S.push({id:l,name:h,textCase:"DS"===h||"DL"===h?"original":O(M.substr(M.toUpperCase().indexOf(h),h.length))?"upper":I(M.substr(M.toUpperCase().indexOf(h),h.length))?"lower":Y(M.substr(M.toUpperCase().indexOf(h),h.length))?"init":"upper"}),M=M.replace(new RegExp(h,"ig"),"~#"+l+"#~")),c=c.replace(new RegExp(h,"g"),""));for(E="SYEAR|SYYYY|IYYY|YEAR|IYY|SCC|TZD|TZH|TZM|TZR|AD|BC|CC|EE|FF|FX|IY|RM|TS|E|I|J|Q|X".split("|"),l=0;l<E.length;l++)if(d=E[l],c.includes(d)&&!w(c,d))throw new Error("Format not supported: "+d,{cause:d});for(g=M,l=0;l<S.length;l++){switch(i=S[l],s=A(u,i.name).toString(),i.textCase){case"upper":s=s.toUpperCase();break;case"lower":s=s.toLowerCase();break;case"init":s=F(s)}n.message(n.LOG_LEVEL.ENGINE_TRACE,"apex.date.format: getDatePart","value:",s,"format:",i.name),g=g.replace(new RegExp("~#"+i.id+"#~","g"),s)}return g.includes('"')&&(g=g.replace(new RegExp('"',"g"),"")),g},e.parse=function(r,a){let o,s,i,g,l,u,D,M=new Date(2020,0,1),c=r||"",p=a||t.getDateFormat(),m=p.toUpperCase(),N=t.getSettings().calendar.amFormat,h=t.getSettings().calendar.pmFormat,E=[],d="",S=[],w="",f=[],O=!1,I=0,Y=0,F=0,C=!1,R=["~","*","#","<",">","|","§","^","°","=","$","&","%","@","€"],H="";function T(e,r=!1){let n,a=r?t.getAbbrevMonthNames():t.getMonthNames();return n=(r?t.getSettings().calendar.rawAbbrMonthNames:t.getSettings().calendar.rawMonthNames).findIndex((t=>t.toLowerCase()===e.toLowerCase())),-1===n&&(n=a.findIndex((t=>t.toLowerCase()===e.toLowerCase()))),n}function A(e,r=!1){let n=r?t.getAbbrevMonthNames():t.getMonthNames(),a=r?t.getSettings().calendar.rawAbbrMonthNames:t.getSettings().calendar.rawMonthNames,o=!1,s="";for(let t=0;t<a.length;t++){if(s=a[t],e.toLowerCase().includes(s.toLowerCase())){o=!0;break}s=""}if(!o)for(let t=0;t<n.length&&(s=n[t],!e.toLowerCase().includes(s.toLowerCase()));t++)s="";return s}function L(e,r=!1){let n=r?t.getAbbrevDayNames():t.getDayNames(),a=r?t.getSettings().calendar.rawAbbrDayNames:t.getSettings().calendar.rawDayNames,o=!1,s="";for(let t=0;t<a.length;t++){if(s=a[t],e.toLowerCase().includes(s.toLowerCase())){o=!0;break}s=""}if(!o)for(let t=0;t<n.length&&(s=n[t],!e.toLowerCase().includes(s.toLowerCase()));t++)s="";return s}function U(e){let t="";return e.toLowerCase().includes(N.toLowerCase())&&(t=N),t||e.toLowerCase().includes(h.toLowerCase())&&(t=h),t}function b(e,t,r){return((e.substring(t,r)||"").match(/\d{1,2}/)||[]).join()}function _(e,t,r){e=e.filter((function(e){return e.start>t})).forEach((function(e){e.start=e.start+r,e.end=e.end+r}))}function y(e=""){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function W(t,r,a){n.message(n.LOG_LEVEL.ENGINE_TRACE,"apex.date.parse: setDatePart","value:",r,"format:",a);const o={YYYY:(e,t)=>{if(!/^\d{4}$/.test(t))throw new Error("Date Parsing Error: YYYY not valid.");e.setFullYear(t),g=parseInt(t,10)},FMYYYY:(e,t)=>{if(!/^\d{4}$/.test(t))throw new Error("Date Parsing Error: FMYYYY not valid.");e.setFullYear(t),g=parseInt(t,10)},YY:(e,t)=>{if(!/^\d{2}$/.test(t))throw new Error("Date Parsing Error: YY not valid.");const r=e.getFullYear().toString().substr(0,2)+t;e.setFullYear(r),g=parseInt(r,10)},RRRR:(e,t)=>{if(!/^\d{4}$/.test(t))throw new Error("Date Parsing Error: RRRR not valid.");e.setFullYear(t),g=parseInt(t,10)},FMRRRR:(e,t)=>{if(!/^\d{4}
12$/.test(t))throw new Error("Date Parsing Error: FMRRRR not valid.");e.setFullYear(t),g=parseInt(t,10)},RR:(e,t)=>{if(!/^\d{2}$/.test(t))throw new Error("Date Parsing Error: RR not valid.");const r=e.getFullYear().toString().substr(0,2)+t;e.setFullYear(r),g=parseInt(r,10)},MONTH:(e,t)=>{const r=T(t,!1);if(-1===r)throw new Error("Date Parsing Error: MONTH not valid.");e.setMonth(r),l=r},FMMONTH:(e,t)=>{const r=T(t,!1);if(-1===r)throw new Error("Date Parsing Error: FMMONTH not valid.");e.setMonth(r),l=r},MON:(e,t)=>{const r=T(t,!0);if(-1===r)throw new Error("Date Parsing Error: MON not valid.");e.setMonth(r),l=r},FMMON:(e,t)=>{const r=T(t,!0);if(-1===r)throw new Error("Date Parsing Error: FMMON not valid.");e.setMonth(r),l=r},MM:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<1||r>12)throw new Error("Date Parsing Error: MM not valid.");e.setMonth(r-1),l=r-1},FMMM:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<1||r>12)throw new Error("Date Parsing Error: FMMM not valid.");e.setMonth(r-1),l=r-1},DDD:(t,r)=>{const n=parseInt(r,10);if(!/^\d+$/.test(n)||n<1||n>366)throw new Error("Date Parsing Error: DDD not valid.");e.setDayOfYear(t,n)},DD:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<1||r>31)throw new Error("Date Parsing Error: DD not valid.");e.setDate(r),u=r},FMDD:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<1||r>31)throw new Error("Date Parsing Error: FMDD not valid.");e.setDate(r),u=r},D:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<1||r>7)throw new Error("Date Parsing Error: D not valid.");!function(e,t){const r=t-(e.getDay()+1);e.setDate(e.getDate()+r)}(e,r)},HH24:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<0||r>23)throw new Error("Date Parsing Error: HH24 not valid.");e.setHours(r)},HH12:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<1||r>12)throw new Error("Date Parsing Error: HH12 not valid.");e.setHours(r)},HH:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<1||r>12)throw new Error("Date Parsing Error: HH not valid.");e.setHours(r)},AM:(e,t)=>{if(![N,h].includes(t.toUpperCase()))throw new Error("Date Parsing Error: AM not valid.");t.toUpperCase()===N&&12===e.getHours()?e.setHours(0):t.toUpperCase()===h&&0===e.getHours()?e.setHours(12):t.toUpperCase()===N&&e.getHours()>12?e.setHours(e.getHours()-12):t.toUpperCase()===h&&e.getHours()<12&&e.setHours(e.getHours()+12)},PM:(e,t)=>{if(![N,h].includes(t.toUpperCase()))throw new Error("Date Parsing Error: PM not valid.");t.toUpperCase()===N&&12===e.getHours()?e.setHours(0):t.toUpperCase()===h&&0===e.getHours()?e.setHours(12):t.toUpperCase()===N&&e.getHours()>12?e.setHours(e.getHours()-12):t.toUpperCase()===h&&e.getHours()<12&&e.setHours(e.getHours()+12)},MI:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<0||r>59)throw new Error("Date Parsing Error: MI not valid.");e.setMinutes(r)},SS:(e,t)=>{const r=parseInt(t,10);if(!/^\d+$/.test(r)||r<0||r>59)throw new Error("Date Parsing Error: SS not valid.");e.setSeconds(r)}};o[a](t,r)}if(c){for(M.setHours(0,0,0,0),/\bDS\b/g.test(m)&&(p=p.replace(/\bDS\b/gi,t.getDSDateFormat()),m=p.toUpperCase()),/\bDL\b/g.test(m)&&(p=p.replace(/\bDL\b/gi,t.getDLDateFormat()),m=p.toUpperCase()),m.includes('"')&&(p=p.replace(/".*?"/g,(function(e){return" ".repeat(e.length-2)})),m=p.toUpperCase()),/[\u{0080}-\u{FFFF}]/u.test(m)&&(p=p.replace(/[\u{0080}-\u{FFFF}]/gu," "),m=p.toUpperCase()),n.trace("apex.date.parse: dateString",c),n.trace("apex.date.parse: formatMask",p),E="FMMONTH|FMYYYY|FMRRRR|MONTH|FMMON|FMDAY|FMDY|FMDD|FMMM|HH12|HH24|RRRR|YYYY|DAY|DDD|MON|AM|DD|DL|DS|DY|HH|MI|MM|PM|RR|SS|YY|D".split("|"),D=0;D<E.length;D++)d=E[D],m.includes(d)&&(I=p.toUpperCase().indexOf(d),Y=p.toUpperCase().indexOf(d)+d.length,"FMYYYY"!==d&&"FMRRRR"!==d||(Y-=2,F=I,O=!0),f.push({id:D,name:d,start:I,end:Y}),m=m.replace(d,new Array(d.length+1).join(D)));for(O&&_(f,F,-2),S="SSSSS|SYEAR|SYYYY|IYYY|YEAR|IYY|SCC|TZD|TZH|TZM|TZR|AD|BC|CC|EE|FF|FX|IW|IY|RM|TS|WW|E|I|J|Q|W|X".split("|"),D=0;D<S.length;D++)if(w=S[D],m.includes(w))throw new Error("Format not supported: "+w,{cause:w});for(f.sort((function(e,t){return e.start-t.start})),D=0;D<f.length;
12D++)H=R[D]||"~",o=f[D],C=p.toUpperCase().includes(o.name+" "),i="","MONTH"!==o.name&&"FMMONTH"!==o.name||(i=A(c,!1),i&&(c=c.replace(new RegExp(i,"ig"),H.repeat(o.name.length)+(C?" ":"")),W(M,i,o.name),f.splice(D,1),D-=1)),"MON"!==o.name&&"FMMON"!==o.name||(i=A(c,!0),i&&(c=c.replace(new RegExp(i,"ig"),H.repeat(o.name.length)+(C?" ":"")),W(M,i,o.name),f.splice(D,1),D-=1)),"MM"!==o.name&&"DD"!==o.name&&"FMMM"!==o.name&&"FMDD"!==o.name||(4===o.name.length&&(o.end=o.end-2),i=c.substring(o.start,o.end),i&&(/^\d+$/.test(i)?W(M,i,o.name):(i=b(c,o.start,o.end),i&&W(M,i,o.name)),o.end=4===o.name.length?o.end-(o.name.length-i.length)+2:o.end-(o.name.length-i.length),_(f,o.start,-(o.name.length-i.length)),f.splice(D,1),D-=1)),"DAY"!==o.name&&"FMDAY"!==o.name||(i=L(c,!1),i&&(c=c.replace(new RegExp(i,"ig"),H.repeat(o.name.length)+(C?" ":""))),f.splice(D,1),D-=1),"DY"!==o.name&&"FMDY"!==o.name||(i=L(c,!0),i&&(c=c.replace(new RegExp(i,"ig"),H.repeat(o.name.length)+(C?" ":""))),f.splice(D,1),D-=1),"HH"!==o.name&&"HH12"!==o.name&&"HH24"!==o.name||(4===o.name.length&&(o.end=o.end-2),i=c.substring(o.start,o.end),i&&(/^\d+$/.test(i)?W(M,i,o.name):(i=b(c,o.start,o.end),i&&W(M,i,o.name)),o.end=4===o.name.length?o.end-(o.name.length-i.length)+2:o.end-(o.name.length-i.length),_(f,o.start,-(o.name.length-i.length)),f.splice(D,1),D-=1)),"AM"!==o.name&&"PM"!==o.name||(i=U(c),i&&(c=c.replace(new RegExp(i,"ig"),H.repeat(o.name.length)+(C?" ":"")),W(M,i,o.name),f.splice(D,1),D-=1)),i&&C&&(c=c.replace(new RegExp(y(H)+"  ","ig"),H+" "));for(f.sort((function(e,t){return e.start-t.start})),D=0;D<f.length;D++)o=f[D],s=c.substring(o.start,o.end),s=s.replace(/[^a-zA-Z0-9]/gi,(function(e){return _(f,o.start,-e.length),""})),W(M,s,o.name);if(!e.isValid(M))throw new Error("Date Parsing Error");if(g&&l&&u&&(M.getFullYear()!==g||M.getMonth()!==l||M.getDate()!==u))throw new Error("Date Parsing Error");return M}},e.getAbbrevMonthNames=function(){return t.getAbbrevMonthNames()},e.getMonthNames=function(){return t.getMonthNames()},e.getAbbrevDayNames=function(){return t.getAbbrevDayNames()},e.getDayNames=function(){return t.getDayNames()},e.getDSDateFormat=function(){return t.getDSDateFormat()},e.getDLDateFormat=function(){return t.getDLDateFormat()}}(apex.date,apex.locale,apex.lang,apex.debug);
13apex.storage={},function(t,e){"use strict";var n,o;function r(t,e,n){let o;return t()?(o=Object.create(l),o.prefix=i(n),o._store=e,o.length=s(o._store,o.prefix)):(o=Object.create(u),o.prefix=i(n)),o}function i(t){let n=(t.prefix||"")+".";return null==t.useAppId&&(t.useAppId=!0),t.useAppId&&(n+=e("#pFlowId").val()+"."),t.usePageId&&(n+=e("#pFlowStepId").val()+"."),t.regionId&&(n+=t.regionId+"."),n}function s(t,e){let n=0;for(let o=0;o<t.length;o++)t.key(o).startsWith(e)&&(n+=1);return n}t.getCookieVal=function(t){var e=document.cookie.indexOf(";",t);return-1===e&&(e=document.cookie.length),unescape(document.cookie.substring(t,e))},t.getCookie=function(e){for(var n=e+"=",o=n.length,r=document.cookie.length,i=0;i<r;){var s=i+o;if(document.cookie.substring(i,s)===n)return t.getCookieVal(s);if(0===(i=document.cookie.indexOf(" ",i)+1))break}return null},t.setCookie=function(t,n){var o=arguments,r=arguments.length,i=e("base").attr("href"),s=i?"; path="+i:"",l=r>2?o[2]:null,u=r>3?o[3]:null,c=r>4?o[4]:null,a=r>5;document.cookie=t+"="+escape(n)+(null===l?"":"; expires="+l.toGMTString())+(null===u?s:"; path="+u)+(null===c?"":"; domain="+c)+(!0===a||"https:"===window.location.protocol?"; secure":"")},t.hasLocalStorageSupport=(n=null,o="$test$",function(){if(null!==n)return n;try{localStorage.setItem(o,o),localStorage.removeItem(o),n=!0}catch(t){n=!1}return n}),t.hasSessionStorageSupport=function(){var t=null,e="$test$";return function(){if(null!==t)return t;try{sessionStorage.setItem(e,e),sessionStorage.removeItem(e),t=!0}catch(e){t=!1}return t}}();const l={prefix:"",length:0,key:function(t){let e=0;if(t<this._store.length)for(let n=0;n<this._store.length;n++){const o=this._store.key(n);if(o.startsWith(this.prefix)){if(t===e)return o;e+=1}}return null},getItem:function(t){return this._store.getItem(this.prefix+t)},setItem:function(t,e){let n=this.getItem(t);this._store.setItem(this.prefix+t,e),null===n&&(this.length+=1)},removeItem:function(t){let e=this.getItem(t);this._store.removeItem(this.prefix+t),null!==e&&(this.length-=1)},clear:function(){let t=[];for(let e=0;e<this._store.length;e++){const n=this._store.key(e);
13n.startsWith(this.prefix)&&t.push(n)}for(let e=0;e<t.length;e++)this._store.removeItem(t[e]);this.length=0},sync:function(){this.length=s(this._store,this.prefix)}},u={prefix:"",length:0,key:function(){return null},getItem:function(){return null},setItem:function(){},removeItem:function(){},clear:function(){}};t.getScopedSessionStorage=function(e){return r(t.hasSessionStorageSupport,window.sessionStorage,e)},t.getScopedLocalStorage=function(e){return r(t.hasLocalStorageSupport,window.localStorage,e)}}(apex.storage,apex.jQuery);
14apex.event={},function(e,g){"use strict";e.gCancelFlag=!1,e.trigger=function(a,n,t){return e.gCancelFlag=!1,g(a,apex.gPageContext$).trigger(n,t),e.gCancelFlag}}(apex.event,apex.jQuery);
15!function(){"use strict";const e=[],t={number:"number",boolean:"boolean",enum:"enum",string:"string"};class r extends HTMLElement{#e;#t=[];#r=[];constructor(){super(),this.rendered=!1}connectedCallback(){if(this.isConnected){let e;this.#r.length&&(this.rendered&&(e=this.#r),this.#r=[]),"loading"!==document.readyState?(this._render(e),this.rendered=!0):window.addEventListener("DOMContentLoaded",(()=>{this._render(e),this.rendered=!0}))}}disconnectedCallback(){queueMicrotask((()=>{this.isConnected||this._cleanup()}))}attributeChangedCallback(e,r,n){const i=this.constructor,a=i.hyphenToCamelCase(e),s=i.componentMetaData[a];if(s){const o=s.type,u=s.defaultValue;let l;if(r===n)return;if(!1!==s.sync&&o){switch(o){case t.number:l=i.validNumberAttr(n,s.rangeMin,s.rangeMax,!1);break;case t.enum:l=i.validEnumAttr(n,s.enumValues,!1);break;case t.boolean:l=i.validBooleanAttr(n,e,!1);break;default:l=s.validationFn?s.validationFn(n,!1):n}void 0===l&&(l=u),this.#e[a]=l}this.isConnected&&this.rendered?s.reactive&&this.requestRender(e,r,n,a):this.#r.push({attributeName:e,oldValue:r,newValue:n,propertyName:a})}}_render(){}_cleanup(){}requestRender(e,t,r,n){if(void 0!==e){let i=this.#t.filter((t=>t.attributeName===e));i.length?i[0].newValue=r:this.#t.push({attributeName:e,oldValue:t,newValue:r,propertyName:n})}1===this.#t.length&&queueMicrotask((()=>{this._render(this.#t),this.#t=[]}))}_configPrivateState(e){const r=this.constructor;this.#e=e;for(const[n,i]of Object.entries(r.componentMetaData)){i.type=i.type?i.type.toLowerCase():t.string;let a=i.type,s=i.attrName,o=i.defaultValue;if(!1!==i.sync&&e&&(this.#e[n]=o),!1!==i.setterGetter){let e,u;switch(a){case t.number:e=()=>{const e=this.getAttribute(s);let t=r.validNumberAttr(e,i.rangeMin,i.rangeMax,!1);return void 0===t&&(t=o),t},u=e=>{r.validNumberAttr(e,i.rangeMin,i.rangeMax,!0),this.setAttribute(s,e)};break;case t.enum:e=()=>{const e=this.getAttribute(s);let t=r.validEnumAttr(e,i.enumValues,!1);return void 0===t&&(t=o),t},u=e=>{r.validEnumAttr(e,i.enumValues,!0),this.setAttribute(s,e)};break;case t.boolean:e=()=>{const e=this.getAttribute(s);let t=r.validBooleanAttr(e,s,!1);return void 0===t&&(t=o),t},u=e=>{if(!0===e)this.setAttribute(s,"");else if("true"===e||e===s||"false"===e||!1===e)this.setAttribute(s,e);else{if(""!==e&&null!=e)throw new Error("Invalid value");this.removeAttribute(s)}};break;default:e=()=>{const e=this.getAttribute(s),t=i.validationFn;let r=e;return t&&(r=t(e,!1)),null==r&&(r=o),r},u=e=>{const t=i.validationFn;t&&t(e,!0),this.setAttribute(s,e)}}(e||u)&&Object.defineProperty(this,n,{enumerable:!0,configurable:!0,get:e,set:u})}}}_applyInitFunc(t){const r=this.id,n=this.tagName.toLowerCase();return e.forEach((e=>{r!==e.elementId&&n!==e.componentName||(t=e.func(t))})),t}static dataTypes=t;static validNumberAttr(e,t,r,n){const i=Number(e);let a;if(function(e){return!!["string","number"].includes(typeof e)&&!isNaN(e)&&!isNaN(parseFloat(e))}(e)){if((void 0===t||i>=t)&&(void 0===r||i<=r))a=i;else if(n)throw new Error("Out of range number: "+e)}else if(n)throw new Error("Invalid value for number attribute: "+e);return a}static validEnumAttr(e,t,r){let n,i=e?e.toString().toLowerCase():"";if(t.map((e=>e.toLowerCase())).includes(i))n=e;else if(r)throw new Error(`Invalid value for enum attribute, valid values: ${t.join(", ")}`);return n}static validBooleanAttr(e,t,r){let n;if(!0===e||"true"===e||e===t||""===e)n=!0;else if(!1===e||"false"===e||null==e)n=!1;else if(r)throw new Error("Invalid value");return n}static validDateAttr(){}static camelCaseToHyphen(e){return e.split(/(?=[A-Z])/).join("-").toLowerCase()}static hyphenToCamelCase(e){return e.replace(/-([a-z])/gi,(e=>e[1].toUpperCase()))}static _configObservedAttributes(e,t=[]){const r=[...t];for(const[,t]of Object.entries(e)){let e=t.attrName;if(!e)throw new Error("attrName value is undefined in property");r.includes(e)||r.push(e)}return r}static _addHyphenCaseAttrNames(e){for(const[t,r]of Object.entries(e))r.attrName=this.camelCaseToHyphen(t)}static get componentMetaData(){return{}}static _registerInitFunc(t){if(!t.elementId&&!t.componentName||t.elementId&&t.componentName)throw new Error("Either id or componentName must be provided, and not both.");if(!t.func||"function"!=typeof t.func)throw new Error("A function must be provided.");e.push(t)}}apex.WebComponent=r}();
16!function(e,t,n){"use strict";const i="apexregion",o="js-apex-region";function r(e,t){return e.split(/\s+/).map((e=>{let n,i=e,o=i.indexOf(".");return o>=0&&(n=i.substring(o),i=i.substring(0,o)),void 0!==t.options[i]&&(i=t.widgetEventPrefix+i.toLowerCase()),n&&(i+=n),i})).join(" ")}const a={element:null,parentRegionId:null,type:"generic",widgetName:null,filterRegionId:null,refresh:function(){this.element.trigger("apexrefresh")},focus:function(){this.element.find(":tabbable").first().trigger("focus")},widget:function(){return null},call:function(...e){let t=this.widget();if(this.widgetName&&t)return t[this.widgetName](...e);throw new Error("Call not supported.")},on:function(e,...t){let n=this.widget();if(!this.widgetName||!n)throw new Error("On not supported.");e=r(e,n[this.widgetName]("instance")),n.on(e,...t)},off:function(e,...t){let n=this.widget();if(!this.widgetName||!n)throw new Error("Off not supported.");e=r(e,n[this.widgetName]("instance")),n.off(e,...t)},gotoError:function(){},getSessionState:function(){return null},getParentItems:function(){let e,t,n,i,o,r;if(this.parentRegionId&&(e=apex.region(this.parentRegionId),e)&&("InteractiveGrid"===this.type&&(i=this.widget().interactiveGrid("getCurrentView").modelColumns,o=this.widget().interactiveGrid("option").config.modelInstanceId),"InteractiveGrid"===e.type&&(t=e.widget().interactiveGrid("getCurrentView").model),t&&(r={values:[]},n=t.getRecord(o),n)))for(let e in i)i[e].parentField&&r.values.push({n:i[e].parentField,v:t.getValue(n,i[e].parentField)});return r}};function s(e){return n("#"+t.escapeCSS(e),apex.gPageContext$)}apex.region=function(e){let t=null,o=s(e);return o.length&&(t=o.data(i),t||(t=n.extend({},a),t.element=o)),t};const l=apex.region;l.create=function(e,t){const r=s(e);let l;if(!r.length)throw new Error("Region element not found "+e);l=Object.create(a),l.element=r,"function"==typeof t?t(l):n.extend(l,t),r.addClass(o),r.data(i,l),apex.regions[e]=l,l.filterRegionId&&n((()=>
16{const e=apex.region(l.filterRegionId);e.on("facetschange",(()=>{const t=l.refresh();let n;t&&("function"==typeof t.always?n="always":t instanceof Promise&&(n="finally"),n&&(e.lock(),t[n](e.unlock)))}))}))},l.destroy=function(e){const t=s(e);if(!t.length)throw new Error("Region element not found "+e);t.removeData(i),delete apex.regions[e]},l.isRegion=function(e){const t=s(e);return!!t.length&&!!t.data(i)},l.findClosest=function(e){let i,r,a=n(e).closest("[data-owning-region]").attr("data-owning-region");return r=a?n("#"+t.escapeCSS(a),apex.gPageContext$):n(e).parent(),i=r.closest("."+o).prop("id"),i?l(i):null}}(apex.debug,apex.util,apex.jQuery);
17!function(e,t,a,i){"use strict";const s="apexitem",n=/^\s*$/,l=t.escapeCSS,r="RADIO_GROUP",o="CHECKBOX_GROUP",h="CHECKBOX",d="RADIO",u="HIDDEN",p="SELECT",c="SHUTTLE",g="TEXT",f="TEXTAREA",m="DISPLAY_SAVES_STATE",y="DISPLAY_ONLY",b="POPUP_LOV",x="POPUP_KEY_LOV",v="READ_ONLY",_="value",V="is-disabled apex_disabled",C="js-accessible-readonly";function E(e){return"function"==typeof e}function w(e,a){return e&&null!=a&&(a=t.escapeHTML(""+a)),a}function k(e,t){let a=l(e),s=i('label[for="'+a+'"]');if(s[0]||(s=i('label[id="'+a+'_LABEL"]')),!s[0]){let e=t||i("#"+a);if(a=l(e.attr("aria-labelledby")),!a)return e.attr("aria-label")||"";s=i("#"+a)}return s.clone().children(".u-vh,.u-VisuallyHidden").remove().end().text().trim()}const I={node:!1,element:null,item_type:null,id:!1,isReady:function(){return!0},reinit:function(e,t){this.setValue(e,t,!0)},getValue:function(){let e,a,s,n=!0,c=[];switch(this.item_type){case r:e=i(":checked",this.node),c=0===e.length?"":e.val();break;case o:i(":checked",this.node).each((function(){c.push(this.value)}));break;case p:c=this.element.val(),null==c&&(c=this.element.attr("multiple")?[]:"");break;case v:a=this.element.attr("data-return-value"),s=this.element.attr("data-multi-value"),c=a?s?t.toArray(a,this.getMultiValueStorage()):a:this.node.value;break;default:n=!1}if(!n)switch(this.item_type){case h:case d:c=this.node.checked?this.node.value:"";break;case x:c=i("#"+l(this.id)+"_HIDDENVALUE",apex.gPageContext$).val();break;case g:case b:case u:case m:case f:c=this.node.value;break;case y:c=this.node.innerHTML;break;default:c=""}return c},setValue:function(e,t){let a,s,n=null;if(this.node){switch(this.item_type){case r:n=$x_FormItems(this.node,"RADIO");break;case o:n=$x_FormItems(this.node,"CHECKBOX");break;case x:i("#"+l(this.id)+"_HIDDENVALUE",apex.gPageContext$).val(e),this.element.val(t)}if(n)for(let t=0,i=n.length;t<i;t++)a=n[t].value==e,n[t].checked=a;else switch(this.item_type){case h:case d:this.node.checked=this.node.value===e;break;case g:case b:case u:case f:this.element.val(e);break;case p:!0===this.element.prop("multiple")?this.element.val(apex.util.toArray(e,this.getMultiValueStorage())):this.element.val(e),-1===this.node.selectedIndex&&1===parseInt($nvl(this.element.attr("size"),"1"),10)&&!0!==this.element.prop("multiple")&&this.element.find("option").first().prop("selected",!0);break;case m:this.element.val(e),i(this.display_span,apex.gPageContext$).html(w(this.escape,e));break;case y:this.element.html(w(this.escape,e));break;case"FCKEDITOR":s=FCKeditorAPI.GetInstance(this.id),s.SetHTML(e);break;default:this.node.innerHTML=e}}},enable:function(){this.element.removeClass(V).prop("disabled",!1).trigger("apexafterenable"),this.afterModify&&this.afterModify()},disable:function(){this.element.addClass(V).prop("disabled",!0).trigger("apexafterdisable"),this.afterModify&&this.afterModify()},isDisabled:function(){return!!this.element.prop("disabled")},show:function(e){let t=l(this.id),a=i("#"+t+"_CONTAINER",apex.gPageContext$);a.length>0?a.show().trigger("apexaftershow"):e?$x_ItemRow(this.node,"SHOW"):(E(this._show)?this._show():(a=i("#"+t+"_DISPLAY",apex.gPageContext$),a.length>0?a.show().trigger("apexaftershow"):this.element.show().trigger("apexaftershow")),t&&i("label[for="+t+"]",apex.gPageContext$).show())},hide:function(e){let t=l(this.id),a=i("#"+t+"_CONTAINER",apex.gPageContext$);a.length>0?a.hide().trigger("apexafterhide"):e?$x_ItemRow(this.node,"HIDE"):(E(this._hide)?this._hide():(a=i("#"+t+"_DISPLAY",apex.gPageContext$),a.length>0?a.hide().trigger("apexafterhide"):this.element.hide().trigger("apexafterhide")),t&&i("label[for="+t+"]",apex.gPageContext$).hide())},isEmpty:function(){let e,t,a,i="";if(e=this.getValue(),e=Array.isArray(e)?e.join(":"):""+e,t=this.node,this.nullV
17alue)return E(this.nullValue)?this.nullValue.call(this):null===e||e===this.nullValue||n.test(e);if(this.item_type===p){if(apex.widget&&apex.widget.report&&apex.widget.report.tabular&&apex.widget.report.tabular.gNullValueList)for(const e of Object.values(apex.widget.report.tabular.gNullValueList))if(this.name===t.name){i=e.value;break}a=t.multiple?0===e.length||e===i:!(!i&&""!==i)&&e===i}else a=null===e||n.test(e);return a},hasDisplayValue:function(){if(this.isEmpty()){let e=i(this.element).attr("placeholder");return!!(e&&e.length>0)}return!0},isChanged:function(){let e,t,a,i=!1;function s(){let a=e.length!==t.length;if(!a)for(let i=0;i<t.length;i++)if(e[i]!==t[i]){a=!0;break}return a}switch(this.item_type){case f:case g:case b:i=this.node.value!==this.node.defaultValue;break;case p:if(e=this.element.val(),"select-multiple"===this.node.type){e||(e=[]),t=[];for(let e=0;e<this.node.options.length;e++){let a=this.node.options[e];void 0!==a.attributes.selected&&t.push(a.value)}i=s()}else{t="";for(let e=0;e<this.node.options.length;e++){let a=this.node.options[e];if(void 0!==a.attributes.selected){t=a.value;break}}i=e!==t}break;case r:e=this.getValue(),t="",a=$x_FormItems(this.node,"RADIO");for(let e=0;e<a.length;e++)if(a[e].defaultChecked){t=a[e].value;break}i=e!==t;break;case o:e=this.getValue(),t=[],a=$x_FormItems(this.node,"CHECKBOX");for(let e=0;e<a.length;e++)a[e].defaultChecked&&t.push(a[e].value);i=s();break;case d:case h:i=this.node.checked!==this.node.defaultChecked;break;case x:i=this.node.value!==this.node.defaultValue}return i},addValue:function(){e.error("No default handling defined for addValue")},removeValue:function(){e.error("No default handling defined for removeValue")},refresh:function(){this.element.trigger("apexrefresh")},setFocus:function(){let e=this.element;this.setFocusTo&&(e=E(this.setFocusTo)?this.setFocusTo():i(this.setFocusTo)),e instanceof i?e.trigger("focus"):e.focus()},setStyle:function(e,t){let a=this.element;this.setStyleTo&&(a=E(this.setStyleTo)?this.setStyleTo():i(this.setStyleTo)),a.css(e,t),this.afterModify&&this.afterModify()},displayValueFor:function(e){let t,a,i=e,s=!1;if((this.item_type===c||this.item_type===p&&this.element.attr("multiple"))&&(s=!0,Array.isArray(e)||null==e||(e=[e])),null==i&&(i=""),"password"===this.node.type)return"******";switch(this.item_type){case x:e===this.getValue()&&(i=this.element.val());break;case c:if(t=[],null!=e){for(let i of e)a=this.element.find(`option[value="${l(i+"")}"]`),a.length>0?t.push(a.text()):t.push(i);i=t.join(", ")}break;case p:if(null!=e)if(t=[],s){for(let i of e)a=this.element.find(`[value='${l(i+"")}']`),a.length>0?t.push(a.text()):t.push(i);i=t.join(", ")}else a=this.element.find(`[value='${l(e+"")}']`),a.length>0&&(i=a.text())}return i},getValidity:function(){return this.node.validity||{valid:!0}},getValidationMessage:function(e){let t;return t=this.getValidity().valueMissing?a.getMessage("APEX.PAGE_ITEM_IS_REQUIRED"):this.node.validationMessage||"",t},getPopupSelector:function(){return null},getSeparator:function(){return this.separator?this.separator:null},getMultiValueStorage:function(){if(this.storageType){let e={type:this.storageType};return"separated"===this.storageType&&(e.separator=this.separator),e}return null}};function A(e){let t=null;return e instanceof Element?t=i(e):"string"==typeof e&&(t=i("#"+l(""+e),apex.gPageContext$),t.length||(t=null)),t}apex.item=function(e){let t,a=A(e);return a?(t=a[0]instanceof S?a[0]:a.data(s),t||(t=O(e,{})[0])):(t=Object.create(I),t.element=i(),t.node=!1,t.id=!1),t};const T=apex.item,D=[];T.isItem=function(e){let t=A(e);return!!t&&(t[0]instanceof S||!!t.data(s))},T.create=function(e,t){let[a,i]=O(e,t);if(i.removeData(s).data(s,a),apex.items[a.id]=a,t.delayLoading)return L(a)};const $=apex.WebComponent.dataTypes,P={autocomplete:{type:$.string},disabled:{type:$.boolean},inputmode:{type:$.string},maxlength:{type:$.number,rangeMin:0},minlength:{type:$.number,rangeMin:0},multiple:{type:$.boolean},pattern:{type:$.string},placeholder:{type:$.string},readonly:{type:$.boolean},required:{type:$.boolean},size:{type:$.number,rangeMin:0},value:{type:$.string,reactive:!1,setterGetter:!1},tabindex:{type:$.string,reactive:!1,setterGetter:!1,move:!0},name:{type:$.string,reactive:!1,setterGetter:!1,move:!0},ariaLabelledby:{type:$.string,reactive:!1,setterGetter:!1,move:!0},ariaDescribedby:{type:$.string,reactive:!1,setterGetter:!1,move:!0}},S=class extends apex.WebComponent{#e="";_wrappedElement$=null;constructor(){super(),this.element=i(this),this.node=this,apex.items[this.id]=this}get value(){return this.getValue()}set value(e){this.setValue(e)}get defaultValue(){return this.#e}set defaultValue(e){this.#e=""+e,this.constructor.observedAttributes.includes(_)&&this.node.setAttribute(_,e)}isChanged(){return this.getValue()!==this.#e}getValue(){return this._wrappedElement$?this._wrappedElement$.val():""}setValue(e,t,a){a||(this._wrappedElement$||this.element).trigger("change")}displayValueFor(e){return e}getValidity(){return this._wrappedElement$&&this._wrappedElement$[0].val
17idity?this._wrappedElement$[0].validity:{valid:!0}}_getValidationMessage(e){let t=I.getValidationMessage.call(this,e);return!t&&this._wrappedElement$&&(t=this._wrappedElement$[0].validationMessage||""),t}getValidationMessage(e){let a,i=this.element.attr("data-valid-message");return a=!this.getValidity().valid&&i?i:this._getValidationMessage(e),a&&(a=t.applyTemplate(a,{placeholders:{LABEL:e||k(this.id,this._wrappedElement$)}})),a}_initDelayLoading(){return L(this)}_moveAttribute(e,t){let a=this.element.attr(e);void 0!==a&&(t||(t=this._wrappedElement$),t.attr(e,a),this.element.removeAttr(e))}attributeChangedCallback(e,t,a){super.attributeChangedCallback(e,t,a);const i=this.constructor;if(t!==a&&(e===_&&(this.setValue(a,null,!0),this.#e=a),this._wrappedElement$&&i.delegatedAttributes)){let t=i.delegatedAttributes;if(t&&t.includes(e)){const t=i.hyphenToCamelCase(e),s=i.componentMetaData[t];"false"===a&&s&&s.type===$.boolean&&(a=null),s&&s.move?this._moveAttribute(e):this._wrappedElement$.attr(e,a)}}}static _addCommonAttributes(e,t){e.forEach((e=>{const a=this.hyphenToCamelCase(e);if(!t[a]){let e=P[a]||{type:$.string};t[a]=Object.assign({},e)}}))}static get delegatedAttributes(){}},M=S.prototype;function L(e){let t=i.Deferred();return D.push(t),e.isReady=function(){return"pending"!==t.state()},e.whenReady=function(){return t.promise()},t}function O(e,a){let s,n,p=A(e);if(p){if(n=a.afterModify,n&&["enable","disable","addValue","removeValue"].forEach((function(e){let t=a[e];t&&(a[e]=function(e){return function(){e.apply(this,arguments),this.afterModify()}}(t))})),["show","hide"].forEach((function(e){let t=a[e];t&&(a["_"+e]=t,delete a[e])})),a.storageType){let e=""+a.storageType;["1","2"].includes(e)&&(e="2"===e?"json-array":"separated"),["json-array","separated"].includes(e)||(e="separated"),a.storageType=e}return s=Object.create(I),s.element=p,s.node=p[0],s.id=s.node.id,"function"==typeof a?a(s):i.extend(s,a),s.setValue=(V=s.setValue,function(e,t,a){V.call(this,e,t,a),this.afterModify&&this.afterModify(),a||this.element.trigger("change")}),s.getValidationMessage=function(e){return function(a){let i,s=this.element.attr("data-valid-message");return i=!this.getValidity().valid&&s?s:e.call(this),i&&(i=t.applyTemplate(i,{placeholders:{LABEL:a||k(this.id)}})),i}}(s.getValidationMessage),s.item_type||function(e){let t,a,s,n=!1,p=e.element;if(t=e.node.nodeName.toUpperCase(),"FIELDSET"===t)p.hasClass("checkbox_group")?n=o:p.hasClass("radio_group")?n=r:p.hasClass("shuttle")&&(n=c);else if("DIV"===t)p.hasClass("apex-item-checkbox")?n=o:p.hasClass("apex-item-radio")?n=r:p.hasClass("apex-item-group--shuttle")&&(n=c);else if("INPUT"===t){let t;switch(n=e.node.type.toUpperCase(),n){case h:case d:break;case g:p.hasClass(C)?n=v:(a=e.node.parentNode.className.toUpperCase(),(p.hasClass("apex-item-popup-lov")||"LOV"===a)&&(n=i("#"+l(e.id)+"_HIDDENVALUE",apex.gPageContext$).length>0?x:b));break;case u:t=i("#"+l(e.id)+"_DISPLAY",apex.gPageContext$),t[0]&&(e.display_span=t[0],n=m,s=t.attr("data-escape"),e.escape=s&&"true"===s.toLowerCase());break;default:n=g}}else switch(n=t,n){case f:if(p.hasClass(C))n=v;else try{window.CKEDITOR&&window.CKEDITOR.instances[e.id]&&(n="CKEDITOR3")}catch(e){}break;case"SPAN":p.hasClass("display_only")&&(n=y,s=p.attr("data-escape"),e.escape=s&&"true"===s.toLowerCase())}e.item_type=n}(s),Object.defineProperty(s,_,{get:s.getValue,set:s.setValue,configurable:!1,enumerable:!0}),[s,p]}throw new Error("Item element not found "+e);var V}M.enable=I.enable,M.disable=I.disable,M.isReady=I.isReady,M.reinit=I.reinit,M.isDisabled=I.isDisabled,M.show=I.show,M.hide=I.hide,M.isEmpty=I.isEmpty,M.hasDisplayValue=I.hasDisplayValue,M.addValue=I.addValue,M.removeValue=I.removeValue,M.refresh=I.refresh,M.setFocus=I.setFocus,M.setStyle=I.setStyle,M.getPopupSelector=I.getPopupSelector,M.getSeparator=I.getSeparator,M.getMultiValueStorage=I.getMultiValueStorage,T.ItemComponent=S;const R=[];T.addAttachHandler=function(e){R.push(e)},T.attach=function(t){t=t||apex.gPageContext$;for(let a=0;a<R.length;a++)try{R[a](t)}catch(t){e.error("Error in item attach processing.",t)}},apex.item.waitForDelayLoadItems=function(){let t=i.when(...D);return e.timeBegin("Wait for delay load items"),i(apex.gPageContext$).one("apexreadyend",(()=>{e.timeMark("apexreadyend")})),t.done((()=>{e.timeEnd("Wait for delay load items")})),t},i((function(){T.addAttachHandler((e=>{i("input[type='hidden'],input.apex-item-text[type='password']",e).each((function(){const e=this.name;let t=i(this);
17this.id&&this.id===e&&!T.isItem(this.id)&&T.create(this.id,{}),t.on("keypress",(a=>{const i=t.data("enterSubmit");if("password"===t.attr("type")&&i)return apex.submit({request:e,submitIfEnter:a})}))})),i("span.display_only.apex-item-display-only",e).each((function(){!this.id||this.id.endsWith("_DISPLAY")||T.isItem(this.id)||T.create(this.id,{})})),i("input.js-accessible-readonly,textarea.js-accessible-readonly",e).each((function(){if(this.id&&this.id===this.name&&!T.isItem(this.id)){const e=i(this);let t={};if(e.attr("data-multi-value")){let a=e.attr("data-multi-value-storage");t.storageType=a,"1"===a&&(t.separator=e.attr("data-multi-value-separator"))}T.create(this.id,t)}}))})),T.attach(apex.gPageContext$)}))}(apex.debug,apex.util,apex.lang,apex.jQuery);
18apex.binding=function(e,t,n,i){"use strict";const a="apexBinding",r=Object.values,o=Object.entries,s="none",l="html",c=new Map,u=[],f=new Map,d="item";let p=1;function m(e,t){if(c.has(e))throw new Error("Redefined data reference type: "+e);t._name=e,c.set(e,t),u.push(t),u.sort(((e,t)=>e.priority-t.priority))}function g(e){return new Error("Unknown data reference type: "+e)}function h(e){return new Error("Unknown UI binding type: "+e)}function b(e,t){const n=e.type;if(!c.has(n))throw g(n);c.get(n).subscribe(e,t)}function y(e,t){const n=e.type;if(!c.has(n))throw g(n);c.get(n).unsubscribe(e,t)}function w(e,t){let n=null;for(const i of u)if(n=i.parse(e,t),n)break;return n}m(d,{priority:20,subscribe:function(a,r){const o=a.name,s=i(o);if(!s.node)return void n.error("No such item: ",o);let l=f.get(o);l||(l={subscribers:[],lastValue:s.getValue(),watchId:"bindWatch"+p},p+=1,e(s.node).on("change."+l.watchId,(function(){let e=i(o).getValue();t.equalValue(e,l.lastValue)||(l.lastValue=e,l.subscribers.forEach((e=>{e()})))})),f.set(o,l)),l.subscribers.push(r)},unsubscribe:function(t,n){const a=t.name,r=f.get(a);if(r){const t=i(a);let o=r.subscribers.findIndex((e=>e===n));o>=0&&(r.subscribers.splice(o,1),0===r.subscribers.length&&(e(t.node).off("change."+r.watchId),f.delete(a)))}},getValue:function(e){return i(e.name).getValue()},setValue:function(e,t,n){i(e.name).setValue(t,n)},parse:function(e){if(i.isItem(e))return{type:d,name:e}}});const x=new Map;function v(e,t){if(x.has(e))throw new Error("Redefined binding type: "+e);x.set(e,t)}function E(e){if(!(e&&e instanceof HTMLElement))throw new Error("Invalid binding; missing element")}const V=new Set(["allowfullscreen","async","checked","controls","default","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","novalidate","open","playsinline","readonly","required","reversed","selected"]),M=["T","t","Y","y","1","F","f","N","n","0"],k=M.slice(5);v("attribute",{validate:function(e){if(E(e.element),!e.attribute||"string"!=typeof e.attribute||0===e.attribute.length)throw new Error("Invalid binding; missing attribute")},key:function(e){return e.type+":"+e.attribute},escapeMode:s,apply:function(t,n){const i=e(t.element);V.has(t.attribute)&&M.includes(n)?k.includes(n)?i.removeAttr(t.attribute):i.attr(t.attribute,""):i.attr(t.attribute,n)}}),v("text",{validate:function(e){E(e.element)},key:function(e){return e.type},escapeMode:s,apply:function(t,n){e(t.element).text(n)}}),v("html",{validate:function(e){E(e.element)},key:function(e){return e.type},escapeMode:l,apply:function(t,n){const i=t.element;let a,r=document.activeElement;e(r).closest(i).length&&(a=r.id),e(i).html(n),a&&e("#"+a).focus()}}),v("visible",{validate:function(e){E(e.element)},key:function(e){return e.type},escapeMode:s,apply:function(t,n){const a=t.element,r=e(a);let o=!1,s=document.activeElement,l=!0;if(e(s).closest(a).length&&(o=!0),(!1===n||""===n||["F","f","N","n","H","h","0"].includes(n))&&(l=!1),o&&!l){let t=e(":tabbable"),n=t.index(a);t.eq(n-1).trigger("focus")}if(a.id&&i.isItem(a.id)){let e=i(a.id);l?e.show():e.hide()}else r.toggle(l)}});let N=!1;var R;v("item-value",{validate:function(e){const t=e.itemName;if(E(e.element),!t||!i.isItem(t))throw new Error("Invalid binding; missing itemName")},key:function(e){return e.type},escapeMode:s,apply:function(e,t){N=!0,i(e.itemName).setValue(t),N=!1},onChange:function(t,n){let a,r,o=i(t.itemName);t.storeElement?(a=e(t.storeElement),r="apexbindstore.uiBinding"):(a=o.element,r="change.uiBinding"),n?a.on(r,(function(){if(!N){let e=i(t.itemName),a=e.getValue(),r=e.getValidity();n(a,e.displayValueFor(a),r,r.valid?"":e.getValidationMessage())}})):a.off(r)}}),e.cleanData=(R=e.cleanData,function(t){let n;for(let i=0;null!=(n=t[i]);i++)e.data(n,a)&&F(n);R(t)});const L=new Map;let I=null,C=[];function T(e,t){for(const n of t)if("model"===n.type){n.cursor&&(e.model=n.cursor.getModel(),e.record=n.cursor.getCurrentRecord());break}}function A(e,t){if(L.has(e))throw new Error("Redefined expression processor: "+e);L.set(e,t),t.default?I=t:t.prefix&&(C.push(t),C.sort(((e,t)=>t.prefix.length-e.prefix.length)))}A("template",{default:!0,extractNames:function(e,n){return t.extractTemplateDependencies(e,n).map((e=>e.name))},process:function(e,n,i,a){return a.defaultEscapeFilter=e!==s&&e.toUpperCase(),T(a,n),t.applyTemplate(i,a)}}),A("assign",{prefix:"=",extractNames:function(e){return[e.replace(/%.*$/,"")]},process:function(e,n,i,a){let r;return T(a,n),r=t.dataValue(i,a),e===l?r=t.escapeHTML(r):"attr"===e&&(r=t.escapeHTMLAttr(r)),r}});const B=new Set,O=new Set;let q=!1;function H(e,t){return!(!q||B.size>0&&!B.has(e)||O.size>0&&!O.has(t))}function S(e){let t=e.nodeName.toLowerCase();return e.id&&(t+="#"+e.id),e.classList.length>0&&(t+="."+e.classList.value.replaceAll(" ",".")),t}function W(t,i,r){const o=t.type;if(!x.has(o))throw h(o);0===i.length&&n.error("binding with no data refs",t);const s=x.get(o);s.validate(t);const l=s.key(t);if(1===i.length&&s.onChange){let e=i[0],a=e.type;if(!c.has(a))throw g(a);s.onChange(t,((i,r,o,s)=>{let u=c.get(a);H(t.element,l)&&n.log("Write back value: ",l,S(t.element),i),u.setValue(e,i,r,o,s)})),r=function(){return c.get(a).getValue(e)}}let u=0;const f=()=>{u<=0&&(u=1,queueMicrotask((()=>{let e=r(s.escapeMode,i);H(t.element,l)&&n.log("Apply binding value: ",l,S(t.element),e),s.apply(t,e),u=0})))},d={dataRefs:i,listener:f},p=e(t.element);let m,y=p.data(a);y||(y={},p.data(a,y)),m=y[l],m&&D(t),y[l]=d;for(const e of i)b(e,f);s.apply(t,r(s.escapeMode,i))}function D(t){const n=t.type;if(!x.has(n))throw h(n);if(!(t.element&&t.element instanceof HTMLElement))return;const i=e(t.element),r=x.get(n),o=r.key(t);let s,l=i.data(a);if(l&&(s=l[o],s)){r.onChange&&r.onChange(t,null);for(const e of s.dataRefs)y(e,s.listener);delete l[o]}}function F(t){const n=e(t).data(a);if(n)for(const e of r(n))for(const t of e.dataRefs)y(t,e.listener)}function U(e,t,n={}){let i,a=[],r=I;if(t.startsWith("[")){let e,n=t.indexOf("]");
18n&&(e=t.substring(1,n),L.has(e)&&(r=L.get(e),t=t.substring(n+1)))}else for(const e of C)if(t.startsWith(e.prefix)){r=e,t=t.substring(e.prefix.length);break}i=r.extractNames(t,n);for(const t of i){let n=w(t,e.element);n&&a.push(n)}W(e,a,((e,i)=>r.process(e,i,t,n)))}function j(t){let n=t.querySelectorAll("*");for(const t of n)for(const n of t.getAttributeNames())if(n.startsWith("ab-")){let i,a=t.getAttribute(n),r=n.substring(3);x.has(r)||(i=r,r="attribute");let o={element:t,type:r};if(i&&(o.attribute=i),"item-value"===r&&(o.itemName=t.id),x.get(r).onChange){let n=e(t).closest("[data-bind-cursor],a-model-cursor"),i=n.attr("data-bind-cursor");i=i?e("#"+i)[0]:n[0],i&&!0===i.explicitStore&&(o.storeElement=i)}U(o,a)}}return apex.gPageContext$.on("apexreadyend",(()=>{setTimeout((()=>{j(document.body)}),0)})),{watch:b,unwatch:y,bindExpression:U,bind:W,unbind:D,applyBindings:j,list:function(){let t=[];return e(":data(apexBinding)").each((function(){const n=this,i=e(this).data("apexBinding");for(const[e,a]of o(i))t.push({element:n,type:e,dataRefs:a.dataRefs})})),t},traceOn:function(e=[],t=[]){q=!0,B.clear(),O.clear(),e.forEach((e=>{B.add(e)})),t.forEach((e=>{O.add(e)})),0===n.getLevel()&&n.setLevel(n.LOG_LEVEL.ERROR)},traceOff:function(){q=!1,B.clear(),O.clear()},addDataRefType:m,addBindingType:v,addExpressionProcessor:A}}(apex.jQuery,apex.util,apex.debug,apex.item);
19function $d_Find(e,t,n,r){if(n||(n="DIV"),e=$x(e)){var o=e.getElementsByTagName(n);e.style.display="none",gRegex||(gRegex=new RegExp("test")),gRegex.compile(t,"i");for(var i=0,s=o.length;i<s;i++)gRegex.test(o[i].innerHTML)?o[i].style.display="block":o[i].style.display="none";e.style.display="block"}}function doMultiple(e,t){e=$u_Carray(e);for(var n=0;n<e.length;n++){var r=$x(e[n]);apex.item(r)[t]()}return $u_Narray(e)}function $xml_Control(e){var t;this.xsl_string='<?xml version="1.0"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html"/><xsl:param name="xpath" /><xsl:template match="/"><xsl:copy-of select="//*[@id=$xpath]"/></xsl:template></xsl:stylesheet>',document.all?(this.xsl_object=new ActiveXObject("Msxml2.FreeThreadedDOMDocument.3.0"),this.xsl_object.async=!1,this.xsl_object.loadXML(this.xsl_string),(t=new ActiveXObject("Msxml2.XSLTemplate.3.0")).stylesheet=this.xsl_object,this.xsl_processor=t.createProcessor()):(this.xsl_object=(new DOMParser).parseFromString(this.xsl_string,"text/xml"),this.xsl_processor=new XSLTProcessor,this.xsl_processor.importStylesheet(this.xsl_object),this.ownerDocument=document.implementation.createDocument("","test",null)),this.xml=e,this.CloneAndPlace=function(e,t,n){var r=$x(t);if(document.all){this.xsl_processor.addParameter("xpath",e),this.xsl_processor.input=this.xml,this.xsl_processor.transform;var o=this.xsl_processor.output}else this.xsl_processor.setParameter(null,"xpath",e),o=this.xsl_processor.transformToFragment(this.xml,this.ownerDocument);if(r)return ie?$s(r,o):($s(r,""),r.appendChild(o)),o}}function $s_Split(e,t){var n=[];if(e.length<=t)n[n.length]=e;else{for(;e.length>4e3;)n[n.length]=e.substr(0,4e3),e=e.substr(4e3,e.length-4e3);n[n.length]=e.substr(0,4e3)}return n}var gkeyPressTime,gDebug=!0,gLastTab=!1,gRegex=!1,ie=!!document.all;ie&&(document.expando=!0);var gDebugWindow=!1;function $x(e){return apex.item(e).node}function $v(e){var t=apex.item(e).getValue();return Array.isArray(t)?t.join(":"):t}function $v2(e){return apex.item(e).getValue()}function $s(e,t,n,r){return apex.item(e).setValue(t,n,r)}function $u_Carray(e){return $x(e)?[e]:e}function $u_Narray(e){return 1==e.length?e[0]:e}function $nvl(e,t){return null!=e?e:t||""}function $x_Check_For_Compound(e){var t=$x(e);return t&&$x(t.id+"_fieldset")?$x(t.id+"_fieldset"):t}function $x_Style(e,t,n){e=$u_Carray(e);for(var r=0;r<e.length;r++){var o=$x(e[r]);o&&(o.style[t]=n)}return $u_Narray(e)}function $x_Hide(e){return doMultiple(e,"hide")}function $x_Show(e){return doMultiple(e,"show")}function $x_Show_Hide(e,t){$x_Hide(t),$x_Show(e)}function $x_Toggle(e){var t,n,r;e=$u_Carray(e);for(var o=0;o<e.length;o++)n=$x(e[o]),"string"==typeof e[o]?t=e[o]:e[o].id&&(t=e[o].id),t&&((r=apex.jQuery("#"+t+"_CONTAINER").get(0))||(r=apex.jQuery("#"+t+"_DISPLAY").get(0))),r||(r=n),n&&(0===apex.jQuery(r).filter(":visible").length?$x_Show(n):$x_Hide(n));return $u_Narray(e)}function $x_Remove(e){for(var t=0,n=(e=$u_Carray(e)).length;t<n;t++){var r=$x(e[t]),o=r.parentNode;r&&o&&(o.removeChild(r),o.normalize())}return $u_Narray(e)}function $x_Value(e,t){for(var n=0,r=(e=$u_Carray(e)).length;n<r;
19n++)apex.item(e[n]).setValue(t)}function $x_UpTill(e,t,n){var r=$x(e);if(r){var o=r.parentNode;if(n)for(;o&&(o.nodeName!=t||!apex.jQuery(o).hasClass(n));)o=o.parentNode;else for(;o&&o.nodeName!=t;)o=o.parentNode;return o||!1}return!1}function $x_ItemRow(e,t){var n;e=$u_Carray(e);for(var r=0;r<e.length;r++)if(n=$x_UpTill($x_Check_For_Compound(e[r]),"TR"))switch(t){case"TOGGLE":$x_Toggle(n);break;case"SHOW":$x_Show(n);break;case"HIDE":$x_Hide(n)}}function $x_HideItemRow(e){$x_ItemRow(e,"HIDE")}function $x_ShowItemRow(e){$x_ItemRow(e,"SHOW")}function $x_ToggleItemRow(e){$x_ItemRow(e,"TOGGLE")}function $x_HideAllExcept(e,t){var n=$x(e);return n&&($x_Hide(t),$x_Show(n)),n}function $x_HideSiblings(e){return apex.jQuery($x(e)).show().siblings().hide().get()}function $x_ShowSiblings(e){return apex.jQuery($x(e)).show().siblings().show().get()}function $x_Class(e,t){$x(e)&&(e=[e]);for(var n=e.length,r=0;r<n;r++)$x(e[r])&&($x(e[r]).className=t);return $u_Narray(e)}function $x_SetSiblingsClass(e,t,n){var r=apex.jQuery($x(e));return r.siblings().removeClass("").addClass(t),n&&r.removeClass("").addClass(n),r.get()}function $x_ByClass(e,t,n){var r=n?n+"."+e:"."+e;return apex.jQuery(r,$x(t)).get()}function $x_ShowAllByClass(e,t,n){var r=n?n+"."+t:"."+t;apex.jQuery(r,$x(e)).show()}function $x_ShowChildren(e){apex.jQuery($x(e)).children().show()}function $x_HideChildren(e){apex.jQuery($x(e)).children().hide()}function $x_disableItem(e,t){return doMultiple(e,t?"disable":"enable")}function $f_get_emptys(e,t,n){var r=[],o=[];$x(e)&&(e=[e]);for(var i=0,s=e.length;i<s;i++){var a=$x(e[i]);a&&(apex.item(a).isEmpty()?r[r.length]=a:o[o.length]=a)}return t&&$x_Class(r,t),n&&$x_Class(o,n),0===r.length?r=!1:r[0].focus(),r}function $v_Array(e){return apex.jQuery.makeArray(apex.item(e).getValue())}function $f_ReturnChecked(e){return!!$x(e)&&$v_Array(e)}function $d_ClearAndHide(e){$x(e)&&(e=[e]);for(var t=0,n=e.length;t<n;t++){var r=$x(e[t]);r&&($x_Hide(r).innerHTML="")}}function $f_SelectedOptions(e){var t=$x(e),n=[];if("SELECT"==t.nodeName){for(var r=t.options,o=0,i=r.length;o<i;o++)r[o].selected&&(n[n.length]=r[o]);return $u_Narray(n)}return!1}function $f_SelectValue(e){return $u_Narray($v_Array(e))}function $v_CheckValueAgainst(e,t){var n,r=!1,o=[];t.constructor==Array?o=t:o[0]=t,n=$v(e);for(var i=0,s=o.length;i<s&&!(r=n==o[i]);i++);return r}function $f_Hide_On_Value_Item(e,t,n){var r=$v_CheckValueAgainst(e,n);return r?$x_Hide(t):$x_Show(t),r}function $f_Show_On_Value_Item(e,t,n){var r=$v_CheckValueAgainst(e,n);return r?$x_Show(t):$x_Hide(t),r}function $f_Hide_On_Value_Item_Row(e,t,n){var r=$v_CheckValueAgainst(e,n);return r?$x_HideItemRow(t):$x_ShowItemRow(t),r}function $f_Show_On_Value_Item_Row(e,t,n){var r=$v_CheckValueAgainst(e,n);return r?$x_ShowItemRow(t):$x_HideItemRow(t),r}function $f_DisableOnValue(e,t,n){var r=$v_CheckValueAgainst(e,t),o=[];if(n){if(n instanceof Array)o=n;else for(var i=2;i<arguments.length;i++)arguments[i]&&(o[o.length]=arguments[i]);$x_disableItem(o,r)}return r}function $x_ClassByClass(e,t,n,r){var o=$x_ByClass(t,e,n);return $x_Class(o,r),o}function $f_ValuesToArray(e,t,n){for(var r=$x_ByClass(t,e,n),o=[],i=0,s=r.length;i<s;i++)o[i]=r[i].value;return o}function $dom_JoinNodeLists(e,t){var n,r,o=[];for(n=0,r=e.length;n<r;n++)o[n]=e[n];for(n=0,r=t.length;n<r;n++)o[o.length]=t[n];return o}function $x_FormItems(e,t){var n,r,o,i=t?t.toUpperCase():"ALL",s=[],a=[],l=$x(e);if(l){if("SELECT"==l.nodeName||"INPUT"==l.nodeName||"TEXTAREA"==l.nodeName)return[l];if(n=l.getElementsByTagName("SELECT"),s=l.getElementsByTagName("INPUT"),r=l.getElementsByTagName("TEXTAREA"),o=l.getElementsByTagName("FIELDSET"),"SELECT"==i?s=n:"TEXTAREA"==i?s=r:"ALL"==i&&(s=$dom_JoinNodeLists(s,o),s=$dom_JoinNodeLists(s,n),s=$dom_JoinNodeLists(s,r)),"SELECT"==i||"TEXTAREA"==i||"ALL"==i)a=s;else for(var u=0;u<s.length;u++)s[u].type.toUpperCase()==t.toUpperCase()&&(a[a.length]=s[u]);return a}}function $f_CheckAll(e,t,n){for(var r,o=0,i=(r=n||$x_FormItems(e,"CHECKBOX")).length;o<i;o++)r[o].checked=t}function $f_CheckFirstColumn(e){for(var t=$x_UpTill(e,"TABLE"),n=[],r=0,o=t.rows.length;r<o;r++){var i=$x_FormItems(t.rows[r],"CHECKBOX")[0];i&&(n[n.length]=i)}return $f_CheckAll(!1,e.checked,n),n}var gToggleWithImageA="pseudoButtonActive",gToggleWithImageI="pseudoButtonInactive";function $x_ToggleWithImage(e,t){return $x_CheckImageSrc(e=$x(e),"plus")?($x_Class(e,gToggleWithImageI),e.src=html_StringReplace(e.src,"plus","minus")):($x_Class(e,gToggleWithImageA),e.src=html_StringReplace(e.src,"minus","plus")),$x_Toggle(t)}function $x_SwitchImageSrc(e,t,n){var r=$x(e);return r&&"IMG"==r.nodeName&&-1!=r.src.indexOf(t)&&(r.src=n),r}function $x_CheckImageSrc(e,t){var n=$x(e),r=!1;return n&&"IMG"==n.nodeName&&(r=$u_SubString(n.src,t)),r}function $u_SubString(e,t){return-1!=e.toString().indexOf(t.toString())}function html_RemoveAllChildren(e){var t=$x(e);if(t&&t.hasChildNodes&&t.removeChild)for(;t.hasChildNodes();)t.removeChild(t.firstChild)}function html_SetSelectValue(e,t){var n=$x(e);if("SELECT"==n.nodeName){n.selectedIndex=0;for(var r=0,o=n.options.length;r<o;r++)n.options[r].value==t&&(n.options[r].selected=!0)}}function $f_Swap(e,t){var n=$x(e),r=$x(t);e&&t&&($x_Value(e,r.value),$x_Value(t,n.value))}function $f_SetValueSequence(e,t){for(var n=e.length,r=0;r<n;r++)$x_Value(e[r],(r+1)*t)}function $dom_AddTag(e,t,n){var r=document.createElement(t),o=$x(e);return o&&o.appendChild(r),null!=n&&(r.innerHTML=n),r}function $tr_AddTD(e,t){return $dom_AddTag($x(e),"TD",t)}function $tr_AddTH(e,t){return $dom_AddTag($x(e),"TH",t)}function $dom_AddInput(e,t,n,r,o){var i=$dom_AddTag(!1,"INPUT");return i.type=t||"text",i.id=n||"",i.name=r||"",i.value=o||"",e&&$x(e).appendChild(i),i}function $dom_MakeParent(e,t){var n=$x(e),r=$x(t);return n&&r&&n.parentNode!=r&&r.appendChild(n),n}var gCurrentRow=!1;function $x_RowHighlight(e,t){var n=$x(e);n&&$x_Style(n.getElementsByTagName("TD"),"backgroundColor",t),gCurrentRow=n}function $x_RowHighlightOff(e){var t=$x(e);t&&$x_Style(t.getElementsByTagName("TD"),"backgroundColor","")}function $v_Upper(e){var t=$x(e);t&&(t.value=t.value.toUpperCase())}function html_StringReplace(e,t,n){n||(n="");var r=e.length,o=t.length;if(0===r||0===o)return e;var i=e.indexOf(t);if(!i&&t!=e.substring(0,o))return e;if(-1==i)return e;var s=e.substring(0,i)+n;return i+o<r&&(s+=html_StringReplace(e.substring(i+o,r),t,n)),s}function setSelectionRange(e,t,n){var r;if(e.setSelectionRange)t>(r=e.value.length)&&(t=r),n>r&&(n=r),e.focus(),e.setSelectionRange(t,n);else if(e.createTextRange){var o=e.createTextRange();o.collapse(!0),o.moveEnd("character",n),o.moveStart("character",t),o.select()}}function setCaretToPos(e,t){setSelectionRange(e,t,t)}function html_ReturnToTextSelection(e,t,n){var r,o,i=$x(t),s=apex.item(i).isEmpty()||n?"":" ";if(document.selection){i.focus();var a=document.selection.createRange();a.text=a.text+s+e}else r=i.selectionStart,o=i.selectionEnd,i.value=i.value.slice(0,r)+s+e+i.value.slice(o,i.value.length),i.focus(),setCaretToPos(i,o+(e.length+2))}function $p_DatePicker(e,t,n,r,o,i,s,a,l,u,c,h,_,x,p){var d=window.open("wwv_flow_utilities.show_as_popup_calendar?p_element_index="+encodeURIComponent(e)+"&p_form_index="+encodeURIComponent(t)+"&p_date_format="+encodeURIComponent(n)+"&p_bgcolor="+encodeURIComponent(r)+"&p_dd="+encodeURIComponent(o)+"&p_hh="+encodeURIComponent(i)+"&p_mi="+encodeURIComponent(s)+"&p_pm="+encodeURIComponent(a)+"&p_yyyy="+encodeURIComponent(l)+"&p_lang="+encodeURIComponent(u)+"&p_application_format="+encodeURIComponent(c)+"&p_application_id="+encodeURIComponent(h)+"&p_security_group_id="+encodeURIComponent(_)+"&p_mm="+encodeURIComponent(x),"winLov","Scrollbars=no,resizable=yes,width=258,height="+p);return null==d.opener&&(d.opener=self),d.focus(),d}function $u_js_temp_drop(){var e=apex.jQuery("#apex_js_temp_drop");return e.length>0?e.empty():e=apex.jQuery('<div id="apex_js_temp_drop"></div>').prependTo(document.body).hide(),e[0]}function $u_js_temp_clear(){var e=$x("apex_js_temp_drop");return e&&(e.innerHTML=""),e}function dhtml_ShuttleObject(e,t){this.Select1=$x(e),this.Select2=$x(t),this.Select1ArrayInit=this.Select1.cloneNode(!0),this.Select2ArrayInit=this.Select2.cloneNode(!0),this.Op1Init=[],this.Op2Init=[],this.Op1Init=this.Select1ArrayInit.options,this.Op2Init=this.Select2ArrayInit.options,this.move=function(){var e=$f_SelectedOptions(this.Select1);$x(e)&&(e=[e]);for(var t=e.length,n=0;n<t;n++)this.Select2.appendChild(e[n])},this.remove=function(){var e=$f_SelectedOptions(this.Select2);$x(e)&&(e=[e]);for(var t=e.length,n=0;n<t;n++)this.Select1.appendChild(e[n])},this.reset=function(){this.Select1.options.length=0,this.Select2.options.length=0;for(var e=this.Op1Init.length,t=0;t<e;t++)this.Select1.options[t]=new Option(this.Op1Init[t].text,this.Op1Init[t].value);for(var n=this.Op2Init.length,r=0;r<n;r++)this.Select2.options[r]=new Option(this.Op2Init[r].text,this.Op2Init[r].value)},this.move_all=function(){for(var e=0,t=this.Select1.options.length;e<t;e++)this.Select1.options[e].selected=!0;this.move()},this.remove_all=function(){for(var e=0,t=this.Select2.options.length;e<t;e++)this.Select2.options[e].selected=!0;this.remove()},this.sort=function(e,t){var n,r=e.options.length;if("U"==t)for(n=0;n<r;n++)e.options[n].selected&&"U"==t&&n&&e.insertBefore(e.options[n],e.options[n-1]);else if("D"==t)for(n=r-1;n>=0;n--)e.options[n].selected&&"D"==t&&n!=r-1&&e.insertBefore(e.options[n],e.options[n+2]);else{var o=[];for(n=0;n<r;n++)e.options[n].selected&&(o[o.length]=e.options[n]);if("B"==t)for(n=0;n<o.length;n++)e.appendChild(o[n]);else if("T"==t)for(n=o.length-1;n>=0;n--)e.insertBefore(o[n],e.firstChild)}},this.sort1=function(e){this.sort(this.Select1,e)},this.sort2=function(e){this.sort(this.Select2,e)}}
20apex.navigation={},function(e,o,i,t,n,a){"use strict";const l="apexclosedialoginternal",r="#action$",s="a-dialog-open",d=/^#\S*$/,c={title:"title",h:"height",w:"width",mxw:"maxWidth",isModal:"modal"};let g;function u(e,o,i,t){let a=i.parseActionBinding(e);if(a&&o.includes(a.actionName)){let e=i.lookup(a.actionName);e?e.convertBindingArguments&&(a.args=i.convertBindingArguments(a.args)):n.error("Action not found '"+a.actionName+"'")}else t&&n.error("Action not supported '"+a?.actionName+"'"),a=null;return a}e.redirect=function(e,o=!1){if(e.startsWith(r)){const o=apex.actions;let i=u(e,[s,"a-dialog-close","a-dialog-chain"],o,!1);if(i)return o.invoke(i.actionName,void 0,void 0,i.args)}else a("base").length&&e.match(d)?location.hash=e:(o&&apex.page.ignoreWarnOnUnsavedChanges(),location.href=e)},e.popup=function(e){var o=a.extend({url:"about:blank",name:"_blank",width:600,height:600,scroll:"yes",resizable:"yes",toolbar:"no",location:"no",statusbar:"no",menubar:"no"},e),i=window.open(o.url,"_blank"===(o.name+"").toLowerCase()?o.name:o.name+"_"+t.APP_SESSION,"toolbar="+o.toolbar+",scrollbars="+o.scroll+",location="+o.location+",status="+o.statusbar+",menubar="+o.menubar+",resizable="+
20o.resizable+",width="+o.width+",height="+o.height);return"auto"===o.height&&(o.height=i.outerHeight),"auto"===o.width&&(o.width=i.outerWidth),i.resizeTo(o.width,o.height),i&&(null===i.opener&&(i.opener=window.self),i.focus()),i},e.popup.url=function(o){e.popup({url:o,name:"winLov",width:800,height:600})},e.openInNewWindow=function(e,o,i){var n,a,l=!0,r=i&&i.noopener,s=i&&i.altSuffix||null;return void 0===o&&(o="_blank"),"_blank"!==o.toLowerCase()&&(null===s&&(s=t.APP_SESSION),s&&(o+="_"+s),l=!1),void 0===r&&(r=l),i&&!0===i.favorTabbedBrowsing||(a=/msie\s|trident\//i.exec(navigator.userAgent)?"personalbar,menubar,titlebar,toolbar,location,resizable,scrollbars":"personalbar,menubar,titlebar,toolbar,location,status,resizable,scrollbars"),r&&!/msie\s|trident\/|edge\//i.exec(navigator.userAgent)&&(a=a?a+",":"",a+="noopener"),(n=a?window.open(e,o,a):window.open(e,o))&&(n.focus(),r&&(n.opener=null,n=null)),n},e.popup.close=function(e,o){window.opener.$x_Value(e,o),window.close()},o.getTopApex().navigation._gNextDialogId||(o.getTopApex().navigation._gNextDialogId=1),e.dialog=function(t,n,l,d){var g,f,p,h,w,b,m,x={width:500,maxWidth:1500,height:500,closeText:i.getMessage("APEX.DIALOG.CLOSE"),modal:!0,resizable:!1,scroll:"auto",closeOnEscape:!0,dialog:null,show:"apexDialogShow",hide:"apexDialogHide"},v=n.dialogAttributes,A=a.extend(x,n);if(t.startsWith(r)){const e=apex.actions;let o=u(t,[s],e,!0);if(o){let i=o.args=o.args||{};for(const e in c)Object.hasOwn(i,e)&&Object.hasOwn(n,c[e])&&(i[e]=n[c[e]],delete n[c[e]]);return l&&(i.dlgCls=l),d&&(i.trgEl=d),i.dialogAttributes=n,e.invoke(s,void 0,void 0,i)}}else v&&delete(A=a.extend(A,v)).dialogAttributes,A.dialogClass="ui-dialog--apex",n.dialogClass&&(A.dialogClass+=" "+n.dialogClass),n.baseDialogClass&&(A.dialogClass+=" "+n.baseDialogClass),b=A.close,A.close=function(e,i){b&&b(e,i),o.getTopApex().jQuery(this).dialog("destroy").remove()},m=A.beforeClose,A.beforeClose=function(e,o){var i=a(this).children("iframe")[0].contentWindow.apex;m&&m(e,o),i?.page&&i.page.cancelWarnOnUnsavedChanges()},l&&(n.jsDialogClass?l.split(" ").forEach((e=>{const o=/js-dialog-class-(.+)/.exec(e);o&&(A.dialogClass+=" "+o[1])})):A.dialogClass+=" "+l),g=a(d,apex.gPageContext$),A.modal?(p="apex_dialog_"+o.getTopApex().navigation._gNextDialogId,o.getTopApex().navigation._gNextDialogId+=1,(f=o.getTopApex().jQuery('<div id="'+p+'"><iframe src="'+o.escapeHTMLAttr(t)+'"title="'+o.escapeHTMLAttr(A.title)+'" width="100%" height="100%" style="min-width: 95%;height:100%;" scrolling="'+o.escapeHTMLAttr(A.scroll)+'"></iframe></div>')).on("dialogcreate",(function(){a(this).closest(".ui-dialog").css("position","fixed").attr("aria-modal",!0)})).on("dialogopen",(function(){A.modal&&o.getTopApex().navigation.beginFreezeScroll(),f.children("iframe").on("load",(function(){this.contentDocument&&a(this.contentDocument.body).on("keydown",(function(o){if(o.which===a.ui.keyCode.ESCAPE&&A.closeOnEscape&&!o.isDefaultPrevented())e.dialog.fireCloseHandler(f,!1);else if(o.which===a.ui.keyCode.TAB){var i=a(this).find(":tabbable").last(),t=f.closest(".ui-dialog").find(":tabbable").first();o.target!==i[0]||o.shiftKey||(setTimeout((function(){t.trigger("focus")}),1),o.preventDefault())}}))})),f.closest(".ui-dialog").find("button.ui-dialog-titlebar-close").off("click").on("click",(function(){e.dialog.fireCloseHandler(f,!1)}))})).on("dialogclose",(function(){A.modal&&o.getTopApex().navigation.endFreezeScroll()})).on("dialogresize",(function(){var e=f.height(),o=f.width();f.closest(".ui-dialog").css("position","fixed"),f.children("iframe").width(o).height(e)})),f.dialog(A),(A.draggable||void 0===A.draggable)&&f.parent().draggable("option","containment","window"),f.closest(".ui-dialog").on("keydown",(function(e){if(e.keyCode===a.ui.keyCode.TAB){var o=a(f.children("iframe")[0].contentDocument.body).find(":tabbable"),i=o.filter(":first"),t=o.filter(":last"),n=a(this).find(":tabbable"),l=n.filter(":first"),r=n.filter(":last");e.target!==r[0]&&e.target!==f[0]||e.shiftKey?e.target!==l[0]&&e.target!==f[0]||!e.shiftKey||(setTimeout((function(){t.trigger("focus")}),1),e.preventDefault()):(setTimeout((function(){i.trigger("focus")}),1),e.preventDefault())}})),e.dialog.registerCloseHandler({handler$:f,dialog:f,triggeringElement$:g,closeFunction:function(){f.dialog("close")}}),f.on("dialogclose",(function(o){A.closeOnEscape&&o.originalEvent&&"keydown"===o.originalEvent.handleObj.type&&o.originalEvent.keyCode===a.ui.keyCode.ESCAPE&&e.dialog.fireCloseHandler(f,!1)}))):(w=void 0!==g.id&&void 0!==g[0].id&&""!==g[0].id&&g?g[0].id:"winDialog",h=e.popup({url:t,name:w,width:A.width,height:A.height}),e.dialog.registerCloseHandler({handler$:g,dialog:h,triggeringElement$:g,closeFunction:function(){h.close()}}))},e.dialog.close=function(i,n){var a;Array.isArray(n)?n=function(e){var o,i,n,a={};for(o=0;o<e.length;o++)n=e[o],i=$v(n),a[n]=i;return a.dialogPageId=t.APP_PAGE_ID,a.closeAction="close",a}(n):"object"==typeof n&&n.successMessage?.text&&n.showMessage&&o.getTopApex().message.showPageSuccess(n.successMessage.text),i?e.dialog.fireCloseHandler(o.getTopApex().jQuery(".ui-dialog--apex:not(.is-closing)").last().children(".ui-dialog-content"),n):window.opener&&!window.opener.closed&&function(){try{if(window.opener.apex&&window.opener.apex.jQuery)return!0}catch(e){return!1}return!1}()?((a=o.escapeCSS(window.name)).lastIndexOf("_")>0&&(a=a.substring(0,a.lastIndexOf("_"))),void 0===a?window.close():"winDialog"===a?"function"==typeof n?n.call(this,window):window.close():e.dialog.fireCloseHandler(window.opener.apex.jQuery("#"+a),n)):"function"==typeof n?n.call(this,window):window.close()},e.dialog.cancel=function(o){e.dialog.close(o,!1)},e.dialog.registerCloseHandler=function(o){o.handler$.off(l).on(l,(function(i,t){var n;"function"==typeof t?t.call(this,o.dialog,o):"string"===a.type(t)?(n=location.href,e.redirect(t),location.href!==n&&o.closeFunction()):!1===t?(o.closeFunction(),o.triggeringElement$.trigger("apexafterclosecanceldialog",{dialogPageId:e.dialog.getPageId(),closeAction:"cancel"})):(o.closeFunction(),o.triggeringElement$.trigger("apexafterclosedialog",[t]),o.triggeringElement$.trigger("apexafterclosecanceldialog",[t]))}))},e.dialog.fireCloseHandler=function(e,o){e.trigger(l,o)},e.dialog.getPageId=function(e){let i=t.APP_PAGE_ID,n=(e||o.getTopApex().jQuery(".ui-dialog--apex").last().children(".ui-dialog-content")).find("iframe");return n.length>0&&n[0].contentWindow&&n[0].contentWindow.apex&&(i=n[0].contentWindow.apex.env.APP_PAGE_ID),i};var f,p=0,h=function(){a(document.body).css("width",f),a(window).off("apexwindowresized",h)};e.beginFreezeScroll=function(){0===p&&(a(window).on("apexwindowresized",h),f=document.body.style.width,a(document.body).width(a(document.body).width()).addClass("apex-no-scroll")),p+=1},e.endFreezeScroll=function(){(p-=1)<=0&&(h(),a(document.body).removeClass("apex-no-scroll"),p=0)},e.download=function(e,o){g=g||document.createElement("a"),g.download=o||"download",g.href=e,g.click()},a("base").length&&a((function(){setTimeout((function(){a(document).on("click","a",(function(e){var o;e.isDefaultPrevented()||(o=a(this).attr("href"))&&(o=o.trim()).match(d)&&(e.preventDefault(),location.hash=o)}))}),0)}))}(apex.navigation,apex.util,apex.lang,apex.env,apex.debug,apex.jQuery);
21apex.server={},function(e,t,n,r,o,a,i,s,l){"use strict";const p=n.hasOwnProperty,c=Object.entries,f=Array.isArray,u=e=>"function"==typeof e,d=t.extend,g=/\r?\n/g,_=/^(?:submit|button|image|reset|file)$/i,h=/^(?:input|select|textarea|keygen)/i,m=/^(?:checkbox|radio)$/i,I="\r\n";function b(e){return"string"==typeof e?e.replace(g,I):e}t.ajaxSettings.traditional=!0,t.ajaxPrefilter("script",(function(e){e.cache=!0})),e.plugin=function(e,t,n){let r=null;return"string"==typeof e?r="PLUGIN="+e:(n=t,t=e),O(r,t,n)},e.pluginUrl=function(t,n){return e.url(d({},n,{p_request:"PLUGIN="+t}))},e.ajaxUrl=function(e,t){let r,o,i,s;function p(e,t){if(f(t))for(let n=0;n<t.length;n++)r=r+"&"+e+"="+encodeURIComponent(t[n]);else r=r+"&"+e+"="+encodeURIComponent(t)}
21r="wwv_flow.ajax?p_flow_id="+l.APP_ID+"&p_flow_step_id="+l.APP_PAGE_ID+"&p_instance="+l.APP_SESSION+"&p_debug="+$v("pdebug"),t||(t={}),s={};for(const[t,n]of c(e||{}))if(o=t.toLowerCase(),v(o))s[t]=null!==n&&"object"==typeof n?d(!0,f(n)?[]:{},n):n;else if(f(n))for(let r=0;r<e[t].length;r++)p(t,P(b(n[r]+"")));else p(t,P(b(n+"")));return t.target&&(i=a.findClosest(t.target),i&&x(i,s)),j(s.pageItems,s),p("p_json",P(b(JSON.stringify(s)))),r=r+"&"+n.getContextString(),r},e.url=function(e,r){let o,a,i=r;null==i&&(i=l.APP_PAGE_ID),o="wwv_flow.show?p_flow_id="+l.APP_ID+"&p_flow_step_id="+i+"&p_instance="+l.APP_SESSION+"&p_debug="+$v("pdebug");for(const[n,r]of c(e||{}))if("pageItems"===n)if(f(e.pageItems))for(let t=0;t<e.pageItems.length;t++)a=$x(e.pageItems[t]),a&&(o=o+"&p_arg_names="+encodeURIComponent(a.id)+"&p_arg_values="+encodeURIComponent($v(a)));else t(e.pageItems,apex.gPageContext$).each((function(){o=o+"&p_arg_names="+encodeURIComponent(this.id)+"&p_arg_values="+encodeURIComponent($v(this.id))}));else o=o+"&"+n+"="+encodeURIComponent(r);return o=o+"&"+n.getContextString(),o},e.process=function(e,t,n){return O("APPLICATION_PROCESS="+e,t,n)};const w=8e3;function P(e){let t,n;if(e.length>w){for(n=[],t=0;t<e.length;)n.push(e.substr(t,w)),t+=w;return n}return e}e.chunk=P,e.loadScript=function(e,n){var r,o,a,i,s={};return e.requirejs&&"function"==typeof define&&define.amd?(r=e.path,o=e.global,i=(a=r.substring(0,r.length-3)).replace(/^.*[\\/]/,""),requirejs.s.contexts._.config.paths[i]&&(i+=t.guid,t.guid+=1),s[i]=a,requirejs.config({paths:s}),require([i],(function(e){"string"==typeof o&&(window[o]=e),"function"==typeof n&&n()}))):t.ajax({dataType:"script",url:e.path,scriptAttrs:{nonce:l.NONCE},success:n})},e.loadRequirejs=()=>new Promise(((e,t)=>{window.require?e():apex.server.loadScript({path:`${l.APEX_FILES}libraries/oraclejet/${apex.libVersions.oraclejet}/js/libs/require/require.js?v=${l.APEX_VERSION}`}).then((()=>{apex.server.loadScript({path:`${l.APEX_FILES}libraries/apex/requirejs.jetConfig.js?v=${l.APEX_VERSION}`}).then(e).catch((e=>{t("Could not load requirejs.jetConfig",e)}))})).catch((e=>{t("Could not load requirejs",e)}))}));
21const S={p_flow_id:1,p_flow_step_id:1,p_instance:1,p_debug:1,p_trace:1,p_page_submission_id:1,p_request:1,p_reload_on_submit:1,fmap:1,fhdr:1,fcud:1,fcs:1,frowid:1};for(let e=1;e<=20;e++)S["x"+(e<10?"0"+e:e)]=1;for(let e=1;e<=50;e++)S["f"+(e<10?"0"+e:e)]=1,S["f"+(e<10?"0"+e:e)+"_NOSUBMIT"]=1;for(let e=1;e<=10;e++)S["p_ignore_"+(e<10?"0"+e:e)]=1;function v(e){return!S[e.toLowerCase()]}function x(e,n){let r,o,a,i;if(o=n.pageItems,f(o)||(o=[],t(n.pageItems,apex.gPageContext$).each((function(){this.id&&o.push(this.id)}))),i=e.getSessionState(o),i)if(n.pageItems=i.pageItems,n.regions){if(i.region){for(r=0;r<n.regions.length;r++)if(a=n.regions[r],a.id===i.region.id){n.regions[r]=d(a,i.region);break}r>=n.regions.length&&n.regions.push(i.region)}}else n.regions=[i.region];return i}function j(e,r,o){var a,s,l=[],p=1;if(o&&t("form#wwvFlowForm").triggerHandler("submit"),r.salt=$v("pSalt"),e){a=[];try{s=JSON.parse($v("pPageFormRegionChecksums"))}catch(e){s=[]}r.pageItems={itemsToSubmit:a,protected:$v("pPageItemsProtected"),rowVersion:$v("pPageItemsRowVersion"),formRegionChecksums:s},f(e)&&(e=e.map((function(e){return"#"+n.escapeCSS(e)})).join(",")),t(e,apex.gPageContext$).each((function(){let e,r,s,c,u=this.id,d=t(this);if(v(u)){if(r=i(u),e=t('input[data-for="'+n.escapeCSS(u)+'"]').val(),c=r.node&&r.isDisabled()&&!e&&o?"":d.attr("name")===u||r.element.data("apexitem")||!1!==r.item_type&&!o?r.getValue(u):function(e){let n=[];return t("[name='"+e+"']").filter((function(){let e=this.type;return!this.disabled&&h.test(this.nodeName)&&!_.test(e)&&(this.checked||!m.test(e))})).each((function(){n.push(t(this).val())})),0===n.length?n="":1===n.length&&(n=n[0]),n}(u),f(c))for(let e=0;e<c.length;e++)c[e]=c[e].replace(g,I);else c=c.replace(g,I);if(s={n:u,v:c},f(c)&&(r.getSeparator()&&(s.s=r.getSeparator()),r.getMultiValueStorage()?.type&&(s.t=r.getMultiValueStorage().type)),"INPUT"===this.nodeName&&"file"===this.type&&this.name&&this.files.length>0&&(l.push(this),s.fileIndex=p,s.fileCount=this.files.length,p+=this.files.length),"A-FILE-UPLOAD"===this.nodeName){const e=this.querySelector("input");"file"===e.type&&e.name&&e.files.length>0&&(l.push(e),s.fileIndex=p,s.fileCount=e.files.length,p+=e.files.length)}e&&(s.ck=e),a.push(s)}}))}return l}e.isValidPageItemName=v,e.addPageItemsToRequest=j,e.accept=function(e,n){let r=t.Deferred();return n.fullPage=!0,$(null,e,n,r),r.promise()},e.widget=function(e,n,r){let o=t.Deferred();return(n=n||{}).p_widget_name=e,$("APXWGT",n,r,o),o.promise()};const y=5e3;let C=null,A=null,E=[],R={},q=0;function O(e,n,r){var o,a,i,s,l=t.Deferred();return r&&r.queue?(o=r.queue.name,a=r.queue.action,delete r.queue,function(e,t,n,r,o,a,i){let s,l,p,c;function f(e){let t=R[e];return t||(t=R[e]=[]),t}if("lazyWrite"===t){if(p=function(e,t){for(let n=0;n<e.length;n++)if(e[n].name===t)return e[n];return null}(E,e),p)return p.deferred.reject({status:0},"superseded",null),p.request=n,p.data=r,p.options=o,p.call=a,void(p.deferred=i);if(E.push({name:e,request:n,data:r,options:o,call:a,deferred:i}),C)return;null===A?l=10:(l=A+y-(new Date).getTime(),l=l<0?10:l),C=setTimeout((function(){let e;for(C=null,A=(new Date).getTime();E.length>0;)e=E.shift(),e.call(e.request,e.data,e.options,e.deferred)}),l)}else{if(s=f(e),"replace"===t&&s.length>=1)for(c=s.shift(),c.jqXHR?c.jqXHR.abort():c.deferred.reject({status:0},"superseded",null);s.length>0;)c=s.shift(),c.deferred.reject({status:0},"superseded",null);s.push({request:n,data:r,options:o,call:a,deferred:i}),1===s.length&&function e(t){let n,r,o=f(t);o.length>=1&&(n=o[0],r=n.deferred.promise(),n.jqXHR=n.call(n.request,n.data,n.options,n.deferred),r.then((function(){o.shift(),setTimeout((function(){e(t)}),0)}),(function(){setTimeout((function(){let e;for(let t=1;t<o.length;t++)e=o[t],e.options.error&&e.options.error({status:0},"abort",null),e.deferred.reject({status:0},"abort",null),e.options.complete&&e.options.complete({status:0},"abort");o.length=0}),0)})))}(e)}}(o,a,e,n,r,$,l)):i=$(e,n,r,l),(s=l.promise()).abort=function(){i&&i.abort()},s}
21const D={p_flow_id:1,p_flow_step_id:1,p_instance:1,p_trace:1,fcs:1,fmap:1,fhdr:1,fcud:1,frowid:1,p_clob_01:1,p_widget_name:1,p_widget_mod:1,p_widget_action:1,p_widget_action_mod:1,p_widget_num_return:1,p_widget_view_mode:1,p_fsp_region_id:1,p_clear_cache:1,p_pg_min_row:1,p_pg_max_rows:1,p_pg_rows_fetched:1};function $(e,r,g,_){var h,m,I,w,S,v,y,C,A,E,R,O,$,k,U=null,L={dataType:"json",type:"post",async:!0,url:"wwv_flow.ajax?"+n.getContextString(),traditional:!0},X={p_flow_id:l.APP_ID,p_flow_step_id:l.APP_PAGE_ID,p_instance:l.APP_SESSION,p_debug:$v("pdebug")},V=t(),F=r?.formData instanceof FormData;function G(e,t,n){let r,o=t[n];if("string"!=typeof o&&null!==o.length&&void 0!==o.length)for(r=0;r<o.length;r++)e.append(n,o[r]);else e.append(n,o)}e&&(X.p_request=e),g||(g={}),["accepts","dataType","beforeSend","contents","converters","dataFilter","headers","complete","statusCode","async"].forEach((function(e){p(g,e)&&(L[e]=g[e])})),w=g.success,S=g.error,$=g.loadingIndicatorPosition||"after",g.fullPage&&(X.p_request=$v("pRequest"),X.p_reload_on_submit=$v("pReloadOnSubmit"),X.p_page_submission_id=$v("pPageSubmissionId"),L.url="wwv_flow.accept?"+n.getContextString()),E={};for(const[e,t]of c(r||{}))if(y=e.toLowerCase(),/f[0-5][0-9]/.exec(y))if(f(t))for(X[e]=[],h=0;h<t.length;h++)X[e][h]=b(t[h]);else X[e]=P(b(t+""));else/x[0-2][0-9]/.exec(y)||D[y]?X[e]=b(t):E[e]=null!==t&&"object"==typeof t?d(!0,f(t)?[]:{},t):t;if(g.target&&(C=a.findClosest(g.target))&&(A=x(C,E)),k=j(E.pageItems,E,g.fullPage),E.p_arg_names&&E.p_arg_values&&E.p_arg_names.length===E.p_arg_values.length)for(E.pageItems&&E.pageItems.itemsToSubmit||(E.pageItems={itemsToSubmit:[],protected:$v("pPageItemsProtected"),rowVersion:$v("pPageItemsRowVersion")}),v=E.pageItems.itemsToSubmit,h=0;h<E.p_arg_names.length;h++)v.push({n:E.p_arg_names[h],v:E.p_arg_values[h]});for(delete E.p_arg_names,delete E.p_arg_values,delete E.formData,X.p_json=P(JSON.stringify(E)),X.p_files=[],h=0;h<k.length;h++)for(m=0;m<k[h].files.length;m++)X.p_files.push(k[h].files[m]);if(F||k.length>0){I=new FormData,L.enctype="multipart/form-data",L.processData=!1,L.contentType=!1,G(I,X,"p_json");for(const e of Object.keys(X))"p_json"!==e&&G(I,X,e);if(F)for(const e of r.formData.entries())I.append(e[0],e[1]);L.data=I}else L.data=X;return s.trigger(g.refreshObject,"apexbeforerefresh",g.refreshObjectData)?(_.reject({status:0},"cancel",null),null):(u(g.clear)&&g.clear(),(g.loadingIndicator||"page"===$)&&(R=t('<span class="u-Processing u-Processing--inline"><span class="u-Processing-spinner"></span></span>'),q+=1,U="_call"+q,n.delayLinger.start(U,(function(){"page"===$?(O=n.showSpinner(),V=V.add(O)):u(g.loadingIndicator)?V=g.loadingIndicator(R):t(g.loadingIndicator).each((function(){var e=null,r=t(this,apex.gPageContext$),o=i(this);O=R.clone(),C&&C.alternateLoadingIndicator&&(e=C.alternateLoadingIndicator(this,O)),e?O=e:void 0!==o.loadingIndicator?O=o.loadingIndicator(O):"before"===$?O=O.insertBefore(r.filter(":not(:hidden)")):"after"===$?O=O.insertAfter(r.filter(":not(:hidden)")):"prepend"===$?O=O.prependTo(r):"append"===$?O=O.appendTo(r):"centered"===$&&(O=n.showSpinner(r)),V=V.add(O)}))}))),L.error=function(e,t,n,r){!function(e,t,n,r){let a,i=!1;N(r.loadingIndicator,r.progressScopeName),T(e),u(r.callback)?r.callback(e,t,n):0!==e.status&&(a="APEX"===t?n:"Error: "+n,o.clearErrors(),o.showErrors({message:a,location:"page",unsafe:r.unsafe})),r.deferred.reject(e,t,n)}(e,t,n,{deferred:_,callback:S,loadingIndicator:V,progressScopeName:U,...r})},L.success=function(e,t,n){!function(e,t,n,r){let o=!0,a=n.getResponseHeader("APEX-ERROR");if(e){if(e.error)return e.pageSubmissionId&&$s("pPageSubmissionId",e.pageSubmissionId),r.errorCallback(n,"APEX",e.error,{unsafe:e.unsafe});if(a)return r.errorCallback(n,"APEX",decodeURIComponent(a))}T(n),N(r.loadingIndicator,r.progressScopeName),u(r.callback)&&(o=r.callback(e,t,n)),r.deferred.resolve(e,t,n),(o||null==o)&&s.trigger(r.refreshObject,"apexafterrefresh",r.refreshObjectData)&&(o=!1)}(e,t,n,{deferred:_,callback:w,errorCallback:L.error,loadingIndicator:V,progressScopeName:U,refreshObject:g.refreshObject,refreshObjectData:g.refreshObjectData})},A&&A.beforeAsync&&A.afterAsync&&(A.beforeAsync(),_.always((function(){A.afterAsync()}))),t.ajax(L))}function N(e,r){function o(){u(e)?e():t(e,apex.gPageContext$).remove()}r?n.delayLinger.finish(r,(function(){o()})):o()}function T(e){var o,a,i,s,l,p,c=e.getResponseHeader("APEX-DEBUG-ID");c&&(i=(p=n.getTopApex()._dtGetBuilderInstance)&&p(),(a=c.match(/(\d+),level=(.+)/))?(o={ERROR:r.error,WARN:r.warn}[a[2]]||r.log,s="Server debug log message written: View Identifier = "+a[1]+", Level = "+a[2]+".",i&&((l=t("base").prop("baseURI"))||(l=window.location.pathname,l=window.location.origin+l.substr(0,l.lastIndexOf("/"))+"/"),s+=" "+l+"f?p=4000:939:"+i+"::NO:939:P939_PAGE_VIEW_ID:"+a[1]+"#"),o(s)):r.log("APEX-Debug-ID: "+c))}}(apex.server,apex.jQuery,apex.util,apex.debug,apex.message,apex.region,apex.item,apex.event,apex.env);
22apex.page={},function(e,t,n,a,i,o,s,r,l){"use strict";const c=".js-ignoreChange",d="click",u=/^(x[0-2][0-9]|f[0-5][0-9]|fcs|fmap|fhdr|fcud|frowid)$/i,p=/^(f[0-5][0-9]|fcs|fmap|fhdr|fcud|frowid)$/i,g=/^x[0-2][0-9]$/i,f=[];let m=!1,h=!1,b=null,x=null,w=!1;function v(){return t(f.join(", "),apex.gPageContext$)}function C(e,n){let a,i,o;switch("SUBMIT"===n?a=null:"CONFIRM"===n&&(a="Delete"),i={request:a,set:null,showWait:!1,waitMsg:null,form:"wwv_flow",reloadOnSubmit:null,ignoreChange:!0,validate:!1},typeof e){case"string":o=t.extend(i,{request:e});break;case"object":o=t.extend(i,e);break;default:o=i}return o}function I(e,t){let n=i.isValidPageItemName(e);return n&&"radio"===t&&!document.getElementById(e)&&(n=!1),n}function y(e,n,a){let i={};t(e[0].elements).add(v()).each((function(){let e=this,t=e.name,o=e.type;if("BUTTON"!==e.nodeName&&"button"!==o&&"submit"!==o&&"reset"!==o&&t&&(a||!i[t]))return I(t,o)?(i[t]=1,n(e,t,o)):void 0}))}e.registerCustomElementToSubmit=function(e){f.push(e)},t((function(){t("#wwvFlowForm").on("submit",(function(){if(!h)return e.submit(),!1}))})),e.forEachPageItem=y,e.submit=function(s){let r,l=!0,c=C(s,"SUBMIT");if(void 0!==c.submitIfEnter){let e;if(e=window.event?window.event.keyCode:c.submitIfEnter.which,13!==e)return!0}if(r=n.trigger(apex.gPageContext$,"apexbeforepagesubmit",c.request),r)n.gCancelFlag=!1;else{let s,r,d=t("form[name="+c.form+"]",apex.gPageContext$);
22if(c.showWait&&(r=apex.widget.waitPopup()),c.set)for(const[e,t]of Object.entries(c.set))e&&void 0!==t&&$s(e,t);c.reloadOnSubmit&&$s("pReloadOnSubmit",c.reloadOnSubmit),s=$v("pReloadOnSubmit"),t("#pRequest",apex.gPageContext$).val(c.request),t((()=>{setTimeout((()=>{c.validate&&(e.validate(["inline","page"],d)||(l=!1)),l?(n.trigger(apex.gPageContext$,"apexpagesubmit",c.request),"S"===s?function(e,n,o){let s,r,l=[],c={},d={},u=apex.model;t(e[0].elements).add(v()).each((function(){let e=this,n=e.name,a=e.nodeName,i=e.type;if("BUTTON"!==a&&"button"!==i&&"submit"!==i&&"reset"!==i&&n){if(g.test(n)){if(e.disabled||"INPUT"===a&&("checkbox"===i||"radio"===i)&&!e.checked)return;c[n]=t(e).val()}if(p.test(n)){if(e.disabled||"INPUT"===a&&("checkbox"===i||"radio"===i)&&!e.checked)return;c[n]||(c[n]=[]),c[n].push(t(e).val())}I(n,i)&&l.push(n)}})),l.length&&(c.pageItems=l),u&&(r=u.addChangesToSaveRequest(c)),n||(d.loadingIndicatorPosition="page"),m=o,h=!0,s=i.accept(c,d),h=!1,r&&r(s),s.done((function(e){e.errors?(e.pageSubmissionId&&$s("pPageSubmissionId",e.pageSubmissionId),n&&(n.remove(),n=null),a.clearErrors(),a.showErrors(e.errors),m=!1):e.redirectURL?(apex.navigation.redirect(e.redirectURL),n=null):m=!1})).fail((function(){m=!1})).always((function(){n&&n.remove()}))}(d,r,c.ignoreChange):"A"===s?function(e,n){let a,s=[],r=[],l=[],c=[],d={};y(e,(function(e,t){s.push(t),r.push(e)}),!0),h=!0,a=i.addPageItemsToRequest(s,d,!0),t(e[0].elements).each((function(){let e=this,t=e.name;!t||"INPUT"!==e.nodeName||"radio"!==e.type||u.test(t)||s.includes(t)||(l.push(t),c.push(e))})),s.push(...l),r.push(...c);for(let e=0;e<r.length;e++)t(r[e]).removeAttr("name");for(let e=0;e<a.length;e++)t(a[e]).attr("name","p_files");d=i.chunk(JSON.stringify(d)),Array.isArray(d)||(d=[d]);for(let t=d.length-1;t>=0;t--)e.prepend("<input type='hidden' name='p_json' value='"+o.escapeHTML(d[t])+"'>");m=n,e.trigger("submit"),h=!1;for(let e=0;e<r.length;e++)t(r[e]).attr("name",s[e]);t("input[name='p_json']").remove()}(d,c.ignoreChange):(h=!0,d.trigger("submit"),h=!1)):r?.remove()}),0)}))}if(void 0!==c.submitIfEnter)return!1},e.confirm=function(t,n){let i,o=C(n,"CONFIRM");i=t||"Would you like to perform this delete action?",a.confirm(i,(function(t){t&&e.submit(o)}))},e.validatePageItemsOnBlur=function(){t(t("#wwvFlowForm")[0].elements).each((function(){let e=this,n=e.name,i=e.type;"BUTTON"!==e.nodeName&&"button"!==i&&"submit"!==i&&"reset"!==i&&n&&I(n,i)&&0===t(e).closest(c).length&&t(e).on("blur.apexValidate",(function(){let t,n,i=[];e.disabled||(t=r(e),n=t.getValidity(),n.valid?a.clearErrors(t.id):(i.push({message:t.getValidationMessage(),location:"inline",pageItem:t.id}),a.showErrors(i)))}))}))},e.validate=function(e=["inline","page"],n=t("#wwvFlowForm")){let i=!0,o=[],s=apex.model;return a.clearErrors(),y(n,(function(t,n){let a,s;a=r(n),a.isDisabled()||(s=a.getValidity(),s.valid||(i=!1,o.push({message:a.getValidationMessage(),location:e,pageItem:a.id})))})),s&&s.anyErrors()&&(i=!1,s.list().forEach((t=>{let n=s.get(t),a=n.getErrors();if(a)for(let t=0;t<a.length;t++){let i=a[t];for(const[t,a]of Object.entries(i.fields))a.error&&a.message&&o.push({message:a.message,location:e,regionStaticId:n.getOption("regionStaticId"),recordId:i.originalId||n.getRecordId(i.record),columnName:t})}s.release(t)}))),i||a.showErrors(o),i},e.isChanged=function(){let e=!1,n=apex.model;return n&&(e=n.anyChanges(),e&&l.getLevel()>=l.LOG_LEVEL.INFO&&n.list().forEach((e=>{const t=n.get(e);t&&t.isChanged()&&l.info("Page has change in model",e),n.release(e)}))),e||y(t("#wwvFlowForm"),(function(n,a){if(!n.disabled)return 0===t(n).closest(c).length&&r(a).isChanged()?(e=!0,l.info("Page has change in item",a),!1):void 0})),!e&&b&&(e=b(),e&&l.info("Page change detected by pExtraIsChanged function")),e},e.warnOnUnsavedChanges=function(n,a){a&&(b=a),t(window).off(".apexpageunload"),n||(n=s.getMessage("APEX.WARN_ON_UNSAVED_CHANGES")),x=n,t("button"+c).each((function(){let e=t(this),n=e.prop("onclick");n&&e.removeAttr("onclick").on(d,(function(){w=!0,n(),w=!1}))})),t("a"+c).on("click.apexpageunload",(function(){e.cancelWarnOnUnsavedChanges()})),t(window).on("beforeunload.apexpageunload",(function(){if(!m&&e.isChanged()&&!w)return x;w=!1}))},e.cancelWarnOnUnsavedChanges=function(){x=null,b=null,t(window).off("beforeunload.apexpageunload")},e.ignoreWarnOnUnsavedChanges=function(e=!0){w=e},e.enableWarnOnUnsavedChanges=function(){w=!1},apex.submit=e.submit,apex.confirm=e.confirm,e.init=function(e,a){"function"==typeof a&&a.call(e);let i=new URL(window.location.href),o=!1;function s(e){let t=(""+e).split(",");return t=t.filter((e=>"RP"!==e.toUpperCase()||(o=!0,!1))),t.join(",")}if(i.pathname.endsWith("/f")){if(i.searchParams.has("p")){let e=i.searchParams.get("p").split(":");e[5]&&(e[5]=s(e[5]),i.searchParams.set("p",e.join(":")))}}else{const e="clear";if(i.searchParams.has(e)){const t=s(i.searchParams.get(e));t?i.searchParams.set(e,t):i.searchParams.delete(e)}}if(i.searchParams.has("success_msg")&&(o=!0,i.searchParams.delete("success_msg")),o){const e=i.toString().replaceAll("%3A",":").replaceAll("%2C",",");window.history.replaceState(null,null,e)}if("undefined"!=typeof Hammer){Hammer.defaults.cssProps&&delete Hammer.defaults.cssProps.userSelect;const e=(e,a)=>{t(e).each(((e,t)=>{let i=new Hammer(t);const o=(e,t)=>{a===e&&i.on(t,(function(e){n.trigger(e.target,a,e)}))};o("apextap","tap"),o("apexdoubletap","doubletap"),o("apexpress","press"),o("apexpan","pan"),o("apexswipe","swipe")}))};if(apex.da.gEventList){let t=apex.da.gEventList.filter((e=>["apextap","apexdoubletap","apexpress","apexpan","apexswipe"].includes(e.bindEventType)));t.forEach((t=>
22{let n=apex.da.constructSelector({elementType:t.triggeringElementType,element:t.triggeringElement,regionId:t.triggeringRegionId,buttonId:t.triggeringButtonId});e(n,t.bindEventType)}))}e(".a-Region-carouselItems","apexswipe")}},e.configureButtonForConfirmation=e=>{let n=t.extend({buttonId:"",okLabel:"",message:"",style:null,callback:()=>{}},e),i=t("#"+o.escapeCSS(n.buttonId)),s=!1;i.on(d,(e=>{s?s=!1:(e.stopImmediatePropagation(),e.preventDefault(),a.showDialog(o.applyTemplate(n.message),{confirm:!0,okLabel:n.okLabel,unsafe:!1,modern:!0,style:n.style,callback:e=>{e&&(n.callback(),s=!0,i.trigger(d))}}))}))},e.configureBottomButton=e=>{const n=t.extend({topId:"",bottomId:""},e),a=t("#"+o.escapeCSS(n.bottomId)),i=r(n.bottomId),s=t("#"+o.escapeCSS(n.topId)),l=t("#"+o.escapeCSS(n.topId+"_CONTAINER"));a.on(d,(()=>{s.trigger(d)})),s.on({apexafterdisable:()=>{i.disable()},apexafterenable:()=>{i.enable()}}),s.add(l).on({apexafterhide:()=>{i.hide()},apexaftershow:()=>{i.show()}})},e.bindTemplates=function(e){e||(e=t(document)),e.find(".js-bindContent .js-bindContent").each((function(){l.error("Nested template content bindings not allowed."),t(this).attr("class","")})),e.find(".js-bindContent").each((function(){let e,n,a,i="",s="",l=!1,c=t("body"),d=t(this),u="false"!==(d.attr("data-bind-immediate")||"false").toLowerCase(),p=d.html().replace(/~~/g,"&").replace(/&amp;/g,"&");function g(){let e,a=apex.util.applyTemplate(p),i=document.activeElement;t(i).closest(n).length&&(e=i.id),n.html(a),e&&t("#"+e).trigger("focus")}let f=o.debounce(g,150);if(d.next().length||d.prev().length)n=d,l=!0;else{for(n=d.parent(),a=d[0].previousSibling;a&&3===a.nodeType;)a.textContent.trim()&&(p=a.textContent+p),a=a.previousSibling;for(a=d[0].nextSibling;a&&3===a.nodeType;)a.textContent.trim()&&(p+=a.textContent),a=a.nextSibling}e=d.attr("data-bind-depends"),e=e?e.split(/,\s*/):o.extractTemplateDependencies(p),e.length>0&&(e.forEach((function(e){let t,n=r(e);n.node&&(i.length>0&&(i+=","),i+="#"+e,t=n.node.type,(u&&"text"===t||"textarea"===t)&&(s.length>0&&(s+=","),s+="#"+e))})),c.on("change",i,f),s&&c.on("keyup",s,f)),g(),l&&n.attr("class","").removeAttr("data-bind-immediate").removeAttr("data-bind-depends")})),e.find(".js-bindClass").each((function(){let e,n="",a=t(this),i=a.removeClass("js-bindClass").attr("class").replace(/~~/g,"&");function s(){let e=apex.util.applyTemplate(i);a.attr("class",e)}let l=o.debounce(s,150);e=o.extractTemplateDependencies(i),e.length>0&&(e.forEach((function(e){r(e).node&&(n.length>0&&(n+=","),n+="#"+e)})),t("body").on("change",n,l)),s()}))},t((function(){setTimeout((function(){e.bindTemplates()}),0)}))}(apex.page,apex.jQuery,apex.event,apex.message,apex.server,apex.util,apex.lang,apex.item,apex.debug);
23!function(t,e,n,a,o,i,r,l){"use strict";const c=Object.entries,s=Array.isArray,u=i.extend,d="button[data-action]",p=".js-actionRadioGroup",f="select[data-action]",h=".js-actionCheckbox",g=".js-actionToggle",y='a[href*="#action$"]',m="#action$",b="aria-label",K="aria-describedby",v="aria-keyshortcuts",k="title",C="data-action",N=">",S="toggle",A="radio",w="is-active",x="button",B="checkbox",D="toggle",F="radio",L="select",T="link",E="INPUT",M="BUTTON",P="remove",I="disabled",O=function(){const t={Help:1,Backspace:1,Enter:1,Escape:1,Space:1,PageUp:"Page Up",PageDown:"Page Down",End:1,Home:1,ArrowLeft:1,ArrowUp:1,ArrowRight:1,ArrowDown:1,Insert:1,Delete:1,Digit0:1,Digit1:1,Digit2:1,Digit3:1,Digit4:1,Digit5:1,Digit6:1,Digit7:1,Digit8:1,Digit9:1,KeyA:1,KeyB:1,KeyC:1,KeyD:1,KeyE:1,KeyF:1,KeyG:1,KeyH:1,KeyI:1,KeyJ:1,KeyK:1,KeyL:1,KeyM:1,KeyN:1,KeyO:1,KeyP:1,KeyQ:1,KeyR:1,KeyS:1,KeyT:1,KeyU:1,KeyV:1,KeyW:1,KeyX:1,KeyY:1,KeyZ:1,Numpad0:"Keypad 0",Numpad1:"Keypad 1",Numpad2:"Keypad 2",Numpad3:"Keypad 3",Numpad4:"Keypad 4",Numpad5:"Keypad 5",Numpad6:"Keypad 6",Numpad7:"Keypad 7",Numpad8:"Keypad 8",Numpad9:"Keypad 9",NumpadMultiply:"Keypad *",NumpadAdd:"Keypad +",NumpadSubtract:"Keypad -",NumpadDecimal:"Keypad .",NumpadDivide:"Keypad /",NumpadClear:"Keypad Clear",NumpadEqual:"Keypad =",F1:1,F2:1,F3:1,F4:1,F5:1,F6:1,F7:1,F8:1,F9:1,F10:1,F11:1,F12:1,F13:1,F14:1,F15:1,Semicolon:1,Equal:"=",Comma:1,Minus:1,Period:1,Slash:"/",Backquote:"Backtick",BracketLeft:"[",Backslash:"\\",BracketRight:"]",Quote:1};for(let[e,n]of c(t))t[e]=1===n?e.replace(/Arrow|Digit|Key/,""):n;return t}(),_={6:"Help",8:"Backspace",13:"Enter",27:"Escape",32:"Space",33:"Page Up",34:"Page Down",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84
23:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"Keypad 0",97:"Keypad 1",98:"Keypad 2",99:"Keypad 3",100:"Keypad 4",101:"Keypad 5",102:"Keypad 6",103:"Keypad 7",104:"Keypad 8",105:"Keypad 9",106:"Keypad *",107:"Keypad +",109:"Keypad -",110:"Keypad .",111:"Keypad /",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",186:"Semicolon",187:"=",188:"Comma",189:"Minus",190:"Period",191:"/",192:"Backtick",219:"[",220:"\\",221:"]",222:"Quote"},U={Up:"ArrowUp","Page Up":"PageUp","Page Down":"PageDown",Left:"ArrowLeft",Right:"ArrowRight",Down:"ArrowDown","Keypad Clear":"Clear",Ctrl:"Control",Comma:",",Period:".",Semicolon:";",Minus:"-",Quote:"'",Backtick:"`","Keypad 0":"Keypad0","Keypad 1":"Keypad1","Keypad 2":"Keypad2","Keypad 3":"Keypad3","Keypad 4":"Keypad4","Keypad 5":"Keypad5","Keypad 6":"Keypad6","Keypad 7":"Keypad7","Keypad 8":"Keypad8","Keypad 9":"Keypad9","Keypad =":"Keypad=","Keypad +":"Keypad+","Keypad -":"Keypad-","Keypad *":"Keypad*","Keypad /":"Keypad/"},R=/(.+?)(\+|,|$)/g,V=navigator.appVersion.indexOf("Mac")>=0;let q=!0,W=!0,H={};const j={T_RADIO:1,T_CHECKBOX:1,submit:1,image:1,reset:1,T_BUTTON:1},X={"Ctrl+C":1,"Ctrl+X":1,"Ctrl+V":1,"Ctrl+A":1,"Ctrl+Z":1,"Ctrl+Shift+Z":1,"Ctrl+Y":1},$={"Meta+C":1,"Meta+X":1,"Meta+V":1,"Meta+A":1,"Meta+Z":1,"Meta+Shift+Z":1},Q={option:1,treeitem:1},Z=["label","onLabel","offLabel","title","contextLabel","linkRoleDescription"],G=["label","group","title"],J=/^(\[.+])?([^?[\]]+)(\?.+)?$/;function Y(t){"a"===t.target.tagName&&t.target.hash.startsWith(m)&&t.preventDefault()}function z(t){return["data-action","href"].map((e=>`[${e}*=${a.escapeCSS(t)}]`)).join(",")}function tt(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/.test(t)?JSON.parse(t):t)}function et(t){let e={};for(const n in t)e[n]=tt(t[n]);return e}function nt(t,n){let a=null;if((t=t.trim()).startsWith(m))t=t.substring(8);else if(n?.testForFragment||!t)return a;let o=J.exec(t);if(o){let t=null,e=null;if(o[3]){let t=new URLSearchParams(o[3]);e={};for(const[n,a]of t)e[n]=a}o[1]&&(t=o[1].substring(1,o[1].length-1)),a={contextId:t,actionName:o[2],args:e}}return a||e.error("Invalid action binding '"+t+"'"),a}function at(t,e){let n,a,o,r,l=null;const c=t.altKey,s=t.ctrlKey,u=t.metaKey,d=t.which,p=t.code;return a=p?O[p]:_[d],a&&(l="",s&&(l+="Ctrl+"),c&&(l+="Alt+"),u&&(l+="Meta+"),o=p?/Key./.test(p):d>59&&d<91,t.shiftKey&&(!o||s||c||u)&&(l+="Shift+"),l+=a,r=p?/Digit\d|Key.|Space|Semicolon|Equal|Comma|Minus|Period|Slash|Backquote|Bracket.+|Backslash|Quote/.test(p):!(d>=112&&d<=123||d>=33&&d<=46||d<32),n=t.target&&t.target.nodeName,e||"TEXTAREA"!==n&&"SELECT"!==n&&(n!==E||j[t.target.type.toLowerCase()])&&!Q[i(t.target).attr("role")]?!r||s||c||u||W||(l=null):(r&&(!c&&!s&&!u||s&&c&&!u||V&&c&&!s&&!u)||(V?$:X)[l]||d<=46)&&(l=null)),l}function ot(t){let e=t.contextLabel||t.label;return!e&&t.onLabel&&t.offLabel?e=t.onLabel+"/"+t.offLabel:t.set&&t.get&&!t.choices&&(e=n.formatMessage("APEX.ACTIONS.TOGGLE",e)),e}function it(t){let e;return e=t.id?i("[for="+t.id+"]"):i(t).closest("label"),e}function rt(t,e){let a,o,i;for(a=0;a<e.length;a++)o=e[a],i=o+"Key",t[i]&&(t[o]=n.getMessage(t[i]),delete t[i])}function lt(t,n){e.error("No such action '"+t+"'"+n)}document.body&&document.body.addEventListener("click",Y,!0);let ct=".a-Button-label, .t-Button-label",st=".a-Button--withIcon, .t-Button--icon",ut=".a-Button--noLabel, .t-Button--noLabel";const dt=new Map;function pt(r,c,u){let O,V=null;const W=i(c),j=function(t,n){const a=new Map,r=new Map,l=new Map;let c=[],u=!1,d=0;function p(t,e,n){let a,o;for(a=0;a<c.length;a++)o=c[a],o(t,e,n)}function f(t,e){p(t,"update",e)}function h(t,e,n,o){const i=a.get(t);if(i)if(o&&i.idArg&&o[i.idArg]){let t=i[e];i[e]=n,f(i,o),i[e]=t}else i[e]!=n&&(i[e]=n,f(i,o))}function g(t,e,n){let a,o,i=t.split(",");i.length>1?(o=i[0],a=l.get(o),a||(a=[],l.set(o,a)),a.push({shortcut:t,seqLen:i.length,actionName:e,value:n})):l.set(t,n?{actionName:e,value:n}:e)}function y(t){let e,n,a;if(t)if(a=t.split(","),a&&a.length>1){n=a[0],e=l.get(n);for(let n=0;n<e.length;n++)if(e[n].shortcut===t){e.splice(n,1);break}0===e.length&&l.delete(n)}else l.delete(t)}function b(t,e){let n,a,o,i,r,c=t.split(",");if(!(c.length>1))return l.get(t);if(a=c[0],i=[],n=l.get(a),s(n)){r=t.length;for(let e=0;e<n.length;e++){if(o=n[e],o.shortcut===t)return void 0!==o.value?{actionName:o.actionName,value:o.value}:o.actionName;o.seqLen>c.length&&o.shortcut.substr(0,r)===t&&i.push(o)}return i.length&&e?i:void 0}}function K(t,n,a){let o=!0,i=a||n,l=i.shortcut,c=n.name;return t.isValidShortcut(l)?!a&&i.choices?(e.warn("Shortcut '"+l+"' for radio group action '"+c+"' ignored."),o=!1):b(l)?(e.warn("Duplicate shortcut '"+i.shortcut+"' for action '"+c+"' ignored."),o=!1):(r.set(a?c+N+a.value:c,l),g(l,c,a&&a.value)):(e.warn("Invalid shortcut '"+l+"' for action '"+c+"' ignored."),o=!1),o||(i.shortcut=null),o}const v={typeName:t,context:n,add:function(t){let n=!0;s(t)||(t=[t]);for(let o=0;o<t.length;o++){let i,r,l=t[o];if(l.name)if(a.has(l.name))e.warn("Duplicate action '"+l.name+"' ignored."),n=!1;else{if(a.set(l.name,l),l.shortcut&&(K(this,l)||(n=!1)),rt(l,Z),l.choices)for(i=0;i<l.choices.length;i++)r=l.choices[i],r.shortcut&&(K(this,l,r)||(n=!1)),rt(r,G);p(l,"add")}}return n},addFromMarkup:function(t){let e=this;t.find("ul").eq(0).children("li").each((function(){let t,n,a,o,r=null,l=i(this),c=l.find("a").eq(0),s=l.find("span.a-Menu-label").eq(0),u={};if(s.length||(s=l.find("span").eq(0)),c.length>0){let t=c.attr("href").trim();u.label=c.text(),t.startsWith(m)?u.actionBinding=e.parseActionBinding(t,{testForFragment:!0}
23):(u.href=t,o=c.attr("target"),o&&(u.target=o),r=c.attr(k))}else s.length>0&&(u.label=s.text(),r=s.attr(k));r&&(u.title=r),u.name=l.attr("data-id"),"true"===l.attr("data-hide")&&(u.hide=!0),"true"===l.attr("data-disabled")&&(u.disabled=!0),u.shortcut=l.attr("data-shortcut")||null,t=l.attr("data-icon"),t&&(n=t.indexOf(" "),n>=0?(u.iconType=t.substring(0,n),u.icon=t.substring(n+1)):u.icon=t),u.name&&u.label&&"separator"!==u.href&&(a=e.lookup(u.name),a?["label","href","target","hide","disabled","shortcut","icon","iconType"].forEach((function(t){!a[t]&&u[t]&&(a[t]=u[t])})):e.add(u)),l.children("ul").length>0&&e.addFromMarkup(l)}))},remove:function(t){s(t)||(t=[t]);for(let e=0;e<t.length;e++){let n,o,i,l=t[e],c="string"==typeof l?l:l.name;if(c&&a.has(c)){if(l=a.get(c),i=l.shortcut,i&&y(i),l.choices)for(n=0;n<l.choices.length;n++)o=l.choices[n],i=o.shortcut,i&&(y(i),r.delete(c+N+o.value));a.delete(c),r.delete(c),p(l,P)}}},clear:function(){for(const t of a.values())p(t,P);a.clear(),r.clear(),l.clear()},lookup:function(t){return a.get(t)},list:function(){let t=[];for(const[e,n]of a){let a,o,i=ot(n);if(n.choices)for(let r=0;r<n.choices.length;r++)a=n.choices[r],o=i?i+": "+a.label:a.label,t.push({name:e,choice:a.value,label:o});else t.push({name:e,label:i})}return t},update:function(t,e){const n=a.get(t);let o=r.get(t),i=!0;if(n.shortcut!==o&&(y(o),n.shortcut?K(this,n)||(i=!1):r.delete(t)),rt(n,Z),n.choices)for(let e=0;e<n.choices.length;e++){let a=n.choices[e],l=t+N+a.value;o=r.get(l),a.shortcut!==o&&(y(o),a.shortcut?K(this,n,a)||(i=!1):r.delete(l)),rt(a,G)}return f(n,e),i},updateChoices:function(t){const e=a.get(t);let n=!1;return e.choices&&(p(e,"updateChoices"),n=!0),n},enable:function(t,e=null){h(t,I,!1,e)},disable:function(t,e=null){h(t,I,!0,e)},hide:function(t,e=null){h(t,"hide",!0,e)},show:function(t,e=null){h(t,"hide",!1,e)},invoke:function(t,e,n,i=null){const r=a.get(t);return r&&(r.action||r.actionBinding||r.href)?r.disabled||r.hide?void 0:r.action?r.action(e,n,i):r.actionBinding?this.invoke(r.actionBinding.actionName,e,n,r.actionBinding.args):(r.target?o.openInNewWindow(r.href,r.target,{favorTabbedBrowsing:!0}):o.redirect(r.href),!0):(lt(t," or action can't be invoked."),!1)},toggle:function(t,e=null){const n=a.get(t);if(!(n&&n.get&&n.set)||n.choices)return lt(t," or action cannot be toggled."),!1;if(!n.disabled&&!n.hide){let a=!n.get(e);n.set(a,e),this.update(t,e)}},get:function(t,e=null){const n=a.get(t);return n&&n.get?n.get(e):(lt(t," or cannot get action value."),null)},set:function(t,e,n=null){const o=a.get(t);o&&o.get&&o.set?o.disabled||o.hide||(o.choices||(e=!!e),o.set(e,n),this.update(t,n)):lt(t," or cannot set action value.")},_lookupShortcutAction:function(t,e,n){if(!u||n)return b(t,e)},addShortcut:function(t,n,o){const i=a.get(n);let r,l;if(!i)return e.warn("No such action '"+n+"'."),!1;if(!this.isValidShortcut(t))return e.warn("Invalid shortcut '"+t+"' ignored."),!1;if(l=b(t,!0),l||s(l))return e.warn("Duplicate shortcut '"+t+"' for action '"+n+"' ignored."),!1;if(i.choices){if(!o)return e.warn("Shortcut '"+t+"' for radio group action '"+n+"' ignored."),!1;r=!1;for(let t=0;t<i.choices.length;t++)if(i.choices[t].value===o){r=!0;break}if(!r)return e.warn("No such choice '"+o+" for action '"+n+"'."),!1}return g(t,n,o),!0},removeShortcut:function(t){let n=b(t,!0);return!s(n)&&(n&&"string"!=typeof n&&(n=n.actionName+N+n.value),r.get(n)===t?(e.warn("Can't delete primary for action."),!1):(y(t),!0))},listShortcuts:function(t){const e=[];for(let[n,o]of l){let i,r,l,c,u;s(o)||(i={shortcut:n},"string"!=typeof o?(i.actionName=o.actionName,i.value=o.value):i.actionName=o,o=[i]);for(let n=0;n<o.length;n++){if(i=o[n],r=a.get(i.actionName),c={shortcut:i.shortcut,shortcutDisplay:this.shortcutDisplay(i.shortcut,t),actionName:i.actionName},l=i.value,l&&r.choices){c.choice=l;for(let t=0;t<r.choices.length;t++)if(r.choices[t].value===l){u=ot(r),u?u+=":"+r.choices[t].label:u=r.choices[t].label,c.actionLabel=u;break}}else c.actionLabel=ot(r);e.push(c)}}return e},shortcutDisplay:function(t,e=!1){let n,a,o,i,r="",l=t.split(",");function c(t){let e=t.split("+");for(let t=0;t<e.length;t++)t>
230&&(r+=o+"+"+i),r+=n+(H[e[t]]||e[t])+a}n=a=o=i="",e&&(n="<b>",a="</b>",o="<i>",i="</i>",r="<span class='apex-kb-shortcut'>");for(let t=0;t<l.length;t++)t>0&&(r+=", "),c(l[t]);return e&&(r+="</span>"),r},ariaKeyshortcut:function(t){return t&&this.isValidShortcut(t)?t.replace(R,(function(t,e,n){switch((e=e.trim())in U&&(e=U[e]),n){case"+":return e+n;case",":return e+" ";default:return e}})):null},disableShortcuts:function(){d+=1,d>0&&(u=!0)},enableShortcuts:function(){d-=1,d<=0&&(u=!1,d=0)},observe:function(t){c.push(t)},unobserve:function(t){for(let e=0;e<c.length;e++)if(c[e]===t){c.splice(e,1);break}},isValidShortcut:function(t,e){let n=t.split(",");function a(t){let e,n,a,o,i=0,r=!0,l=t.split("+");for(e=0;e<l.length-1;e++){if(n=l[e],"Ctrl"===n)a=1;else if("Alt"===n)a=2;else if("Meta"===n)a=3;else{if("Shift"!==n){r=!1;break}a=4}if(a<=i){r=!1;break}i=a}if(r)for(o in n=l[e],r=!1,_)if(_[o]===n){r=!0;break}return r}for(let t=0;t<n.length;t++)if(!a(n[t]))return!1;return!(e&&b(t,!0))}};return v}(r,c);function X(n,a,o,i){let r,l,c,s=j,u=n.contextId,d=n.actionName;try{if(u&&(s=t.actions.findContextById(u),!s))return e.error("No such context '"+u+"'"),!0;if(r=s.lookup(d),!r)return!("global"!==s.typeName&&!u||(lt(d,"."),0));if(r.disabled||r.hide)return!0;if(r.action||r.href||r.actionBinding){if(e.info(o+" invoke action '"+d+"'"),r.actionBinding&&(d=(n=r.actionBinding).actionName),r.convertBindingArguments&&(n.args=et(n.args)),l=s.invoke(d,a,a.target,n.args),!1===l)return!0}else r.get&&r.set?(r.convertBindingArguments&&(n.args=et(n.args)),void 0!==i?(r.set(i,n.args),e.info(o+" set action '"+d+"'. Value now "+i)):(c=!r.get(n.args),r.set(c,n.args),e.info(o+" toggle action '"+d+"'. Value now "+c)),s.update(d,n.args)):e.error("Error action '"+d+"' has no href or action, get, or set methods.")}catch(t){e.error("Error in action for '"+d+"'.",t)}return Promise.resolve(l).then((t=>{!0!==t&&a.target.focus()})),!0}return ft(r,c),O=dt.get(r),O||(O=[],dt.set(r,O)),O.push(j),j.observe((function(t,e,o){let r,l=W,c=t.name,s=t.idArg&&o?o[t.idArg]:null;function m(t,e,n){t.find("."+e).each((function(){let t=i(this),a=[];t.attr("class").split(" ").forEach((function(t){/^t-/.test(t)&&a.push(t)})),a.push(e),a.push(n),t.attr("class",a.join(" "))}))}if(s&&(l=i(z(s),W).parent()),W[0]!==document.body){u||(u=W.closest(".js-apex-region").prop("id"));let t=u||W.prop("id");t&&(l=l.add(i(z(t)).parent()))}r=i(z(c),l),e!==P?r.each((function(){let r,l,u,N,P,O,_,U,R,V,W,H,X,$,Q,Z,G,J,Y,z=!1,tt="action",at=i(this);if(Y="A"===this.nodeName?at.attr("href"):at.attr(C),Y=nt(Y),!Y||Y.actionName!==c)return;if(t.idArg&&o&&Y.args[t.idArg]!==s)return;if(t.hide)return void at.hide();if(at.show(),t.get&&(tt=t.choices?A:S,t.convertBindingArguments&&(Y.args=et(Y.args)),P=t.get("add"===e?Y.args:o)),at.is(f)?G=L:at.is(p)?G=F:at.is(h)?(G=B,O=at,O[0].nodeName!==E&&(O=at.find("input")),_=it(O[0]),_.is(".a-Button, .t-Button")?(z=!0,U=at.find(ct).first(),U.length||(U=_)):U=_):at.is(g)?(G=D,O=at,O[0].nodeName!==M&&(O=at.find(M)),z=!0,U=O.find(ct).first()):at.is(d)?(G=x,U=at.find(ct).first(),U.length||(U=at)):at.is(y)&&(G=T,U=at.find(".t-MegaMenu-label, .t-NavTabs-label, .t-BadgeList-label, .t-Card-title, .t-LinksList-label, .a-CardView-buttonLabel, .t-Button-label").first(),U.length||(U=at)),!G)return;if("updateChoices"===e||"add"===e&&tt===A&&0===at.children().length){let e=a.htmlBuilder();if(G===L){r=null;for(let n=0;n<t.choices.length;n++){let a=t.choices[n];a.hide||(void 0!==a.group&&a.group!==r&&(null!==r&&e.markup("</optgroup>"),null!==a.group&&e.markup("<optgroup").attr("label",a.group).markup(">"),r=a.group),e.markup("<option").attr("value",a.value).markup(">").content(a.label).markup("</option>"))}}else if(G===F){R=at.closest("[id]")[0].id+"_"+t.name,V=at.attr("data-item-start")||t.labelStartClasses,W=at.attr("data-item")||t.labelClasses,H=at.attr("data-item-end")||t.labelClasses,$=at.attr("data-item-wrap")||t.itemWrapClasses||!1,X=!1,$&&(X=!!$&&"span",$&&$.indexOf(":")>0&&($=$.split(":"),X=$[0],$=$[1]),X&&1!=={p:1,li:1,span:1,div:1}[X]&&(X="span"));for(let n=0;n<t.choices.length;n++){let a=t.choices[n];a.hide||(l=R+"_"+n,u=0===n&&V?V:n===t.choices.length-1&&H?H:W||"",X&&e.markup("<"+X).attr("class",$).markup(">"),e.markup("<input type='radio'").attr("name",R).attr("id",l).attr("value",a.value).optionalAttr(b,a.icon?a.label:null).markup("><label").attr("for",l).optionalAttr("aria-hidden",a.icon?"true":null).attr("class",u).optionalAttr(k,a.title||a.icon?a.title||a.label:null).markup(">"),a.icon?e.markup("<span aria-hidden='true'").attr("class",(a.iconType||"a-Icon")+" "+a.icon).markup("></span>"):e.content(a.label),e.markup("</label>"),X&&e.markup("</"+X+">"))}}at.html(e.toString())}else if("add"===e&&(null===t.label&&(G===x&&"action"===tt?at.attr(b)?t.label=at.attr(b):at.is(ut)?t.label=at.attr(k):t.label=U.text():G===B&&tt===S?z&&_.is(ut)?(t.label=_.find(".u-VisuallyHidden").first().text(),t.label||(t.label=_.attr(k))):t.label=U.text():G===T?at.attr(b)?t.label=at.attr(b):t.label=U.text():at.attr(b)&&(t.label=at.attr(b))),null===t.title&&G!==F&&(t.title=at.attr(k),!t.title&&_&&(t.title=_.attr(k)),!t.label&&t.title&&(t.label=t.title)),null===t.disabled&&(t.disabled=!!(at.prop(I)||O&&O.prop(I))),G===T)){let e=t.linkRoleDescription;e||(e=n.getMessage("APEX.ACTIONS.ACTION_LINK")),at.attr("aria-roledescription",e)}let ot=t.label,rt=t.title,lt=t.icon;tt===S&&(ot||(ot=P?t.onLabel:t.offLabel),!lt&&t.onIcon&&(lt=P?t.onIcon:t.offIcon)),Q="",Z="",t.shortcut&&q&&(Q=j.ariaKeyshortcut(t.shortcut),Z=j.shortcutDisplay(t.shortcut)),void 0!==at.attr("data-no-update")||s||G===T||(G===x&&at.is(ut)?(at.attr(b,ot),Q&&at.attr(v,Q),rt||(rt=ot)):G===B&&tt===S&&z&&_.is(ut)?(_.find(".u-VisuallyHidden").first().text(ot),rt||(rt=ot)):tt===A?(ot?at.attr(b,ot):at.removeAttr(b),G!==L||rt||(rt=ot)):U&&(U.text(ot),Z?(at.attr(b,ot||U.text()),at.attr(v,Q)):at.removeAttr(b)),G&&G!==F&&(Z&&(rt||(rt=""),rt+=rt?`, ${Z}`:Z),rt?at.attr(k,rt):at.removeAttr(k)),G===x&&lt&&at.is(st)?(N=t.iconType||"a-Icon",m(at,N,lt)):z&&lt&&_.is(st)&&(N=t.iconType||"a-Icon",m(_,N,lt))),"action"!==tt&&(G===L?at.val(P):G===F?(at.find("."+w).removeClass(w),O=at.find("[value="+a.escapeCSS(P)+"]"),O.prop("checked",!0),O.length&&(_=it(O[0]),_.addClass(w))):G===B?(O.prop("checked",!!P),_.toggleClass(w,P)):G===D?(O.attr("aria-pressed",!!P),O.toggleClass(w,P),P?t.onStateDescription?O.attr(K,O.attr("id")+"_ON_STATE_ARIA_DESC"):O.attr(K,""):t.offStateDescription?O.attr(K,O.attr("id")+"_OFF_STATE_ARIA_DESC"):O.attr(K,"")):at.is(d)&&(tt!==S||t.onLabel||at.toggleClass(w,P)));let dt=!!t.disabled;if(G===B)O.prop(I,dt);else if(G===F||G===L){if(t.choices){J=at.find("option,input");for(let e=0;e<t.choices.length;e++){let n=t.choices[e];
23J.eq(e).prop(I,!!n.disabled)}}G===L&&at.prop(I,dt)}else G===T?at.toggleClass("is-disabled apex_disabled",dt):G&&at.prop(I,dt)})):r.hide()})),W.on("click.actions",d,(function(t){let e=i(this),n=nt(e.attr(C)),a=e.hasClass("js-ignoreChange");a&&l.ignoreWarnOnUnsavedChanges(!0),n&&X(n,t,"Button click")&&t.stopPropagation(),a&&l.ignoreWarnOnUnsavedChanges(!1)})).on("click.actions",y,(function(t){let e=i(this).attr("href").trim();if(e.startsWith(m)){let n=nt(e);n&&(t.preventDefault(),X(n,t,"Link click")&&t.stopPropagation())}})).on("click.actions",h,(function(t){let e,n=nt(i(this).attr(C));t.target.nodeName===E&&(e=t.target,n&&X(n,t,"Checkbox click",e.checked)&&t.stopPropagation())})).on("click.actions",g,(function(t){let e=nt(i(this).attr(C));e&&X(e,t,"Toggle click")&&t.stopPropagation()})).on("change.actions",p,(function(t){let e=nt(i(this).attr(C)),n=i(this).find(":checked"),a="";n.length&&(a=n.val()),e&&X(e,t,"Radio group change",a)&&t.stopPropagation()})).on("change.actions",f,(function(t){let e=nt(i(this).attr(C)),n=i(this).val();e&&X(e,t,"Select change",n)&&t.stopPropagation()})).on("keydown.actions",(function(e){let n,a,o,r,l,c,u=t.actions.partialShortcutInput;if(q&&!e.isDefaultPrevented()){if(r=e.originalEvent||e,c=V,o=at(r,!!V),o){if(V&&(V+=","+o,o=V),n=j._lookupShortcutAction(o,!0),s(n)?(V||(V=o),e.stopPropagation(),e.preventDefault(),n=null):n||(V=null),n){V&&u&&u(j.shortcutDisplay(V)),V=null,"string"!=typeof n&&(a=n.value,n=n.actionName);let t={actionName:n},o=j.lookup(n);if(o&&o.instanceSelector){let e=i(r.target).closest(o.instanceSelector);if(e[0]){let a,o=e.find(i(z(n)));o[0]&&(o[0].disabled||o.hasClass("is-disabled")||!o.is(":visible")?t=null:(a=nt(o.attr(C)||o.attr("href")||""),a&&a.actionName===n&&!a.contextId&&(t=a)))}}t&&X(t,e,"Shortcut key",a),n=null,e.stopPropagation(),e.preventDefault()}}else l=r.which,16!==l&&17!==l&&18!==l&&91!==l&&(V=null);(V||c)&&u&&u(V?j.shortcutDisplay(V):null)}})).on("menubeforeopen.actions",(function(){j.disableShortcuts()})).on("menuafterclose.actions",(function(){j.enableShortcuts()})).on("dialogopen.actions",(function(t){t.target!==j.context&&i(t.target).dialog("option","modal")&&j.disableShortcuts()})).on("dialogclose.actions",(function(t){t.target!==j.context&&i(t.target).dialog("option","modal")&&j.enableShortcuts()})),j}function ft(t,e){const n=dt.get(t);if(n)for(let a=0;a<n.length;a++)if(n[a].context===e)return i(n[a].context).off(".actions"),n.splice(a,1),void(0===n.length&&dt.delete(t))}t.actions={},t.actions.createContext=pt,t.actions.removeContext=ft,t.actions.parseActionBinding=nt,t.actions.convertBindingArguments=et,i((function(){u(t.actions,pt("global",document.body)),t.actions.add([{name:"a-redirect",convertBindingArguments:!0,action:(t,e,n)=>{o.redirect(n.url)}},{name:"a-submit",convertBindingArguments:!0,action:(e,n,a)=>{t.submit(a)}},{name:"a-set-value",convertBindingArguments:!0,action:(t,e,n)=>
23{n&&r(n.itemName).setValue(n.value,n.displayValue,n.suppressChangeEvent)}},{name:"a-back",action:()=>{window.history.go(-1)}}]),dt.get("global")[0]=t.actions,document.body.removeEventListener("click",Y)})),t.actions.getContextTypes=function(){let t=[];for(const e of dt.keys())t.push(e);return t},t.actions.getContextsForType=function(t){return dt.get(t)||[]},t.actions.findContext=function(t,e){let n,a,o=t=>t.context===e;if(e||(e=t,t=null),t)n=dt.get(t),n&&(a=n.find(o));else for(const t of dt.keys())if(a=dt.get(t).find(o),a)break;return a},t.actions.findContextById=function(e){if("global"===e)return t.actions;let n=i("#"+e)[0],a=t.actions.findContext(null,n);if(!a){let n=t.region(e);n&&n.widget()&&(a=t.actions.findContext(null,n.widget()[0]))}return a},t.actions.getShortcutFromEvent=function(t){const e=at(t.originalEvent||t,!0);return e?{shortcut:e,shortcutDisplay:this.shortcutDisplay(e)}:null},t.actions.shortcutSupport=function(t){if(void 0===t)return q?W?"sequence":"single":"off";q=!0,"single"===t?W=!1:"sequence"===t?W=!0:q=!1},t.actions.setKeyCaps=function(t){if(null===t)H={};else{H=u(H,t);for(let[t,e]of c(H))H[t]=a.stripHTML(e)}},t.actions.getKeyCaps=function(){return u({},H)},V&&t.actions.setKeyCaps({Alt:"Option",Meta:"⌘",Ctrl:"Control",Backspace:"Delete"}),t.actions.setShortcutKeyBindings=function(e){let n,a,o,i,r,l,c,u,d,p,f,h,g,y={};function m(t,e,n,a,o){let i,r,l,c=!1,u=t._lookupShortcutAction(e,!0,!0);if(s(u))return!1;if(!u)return!0;if("string"!=typeof u&&(i=u.value,u=u.actionName),r=t.lookup(u),i){for(let t=0;t<r.choices.length;t++)if(l=r.choices[t],l.value===i){c=l.shortcut===e;break}}else c=r.shortcut===e;return(n!==u||a!==i||c!==o)&&(c?(i?l.shortcut=null:r.shortcut=null,t.update(u)):t.removeShortcut(e),!0)}for(let t=0;t<e.length;t++)if(n=e[t],n.shortcut&&(d=n.type+":"+n.shortcut,y[d]=1),n.shortcuts)for(let t=0;t<n.shortcuts.length;t++)d=n.type+":"+n.shortcuts[t],y[d]=1;f=t.actions.getContextTypes();for(let e=0;e<f.length;e++){h=f[e],a=t.actions.getContextsForType(h);for(let t=0;t<a.length;t++){o=a[t],g=o.listShortcuts();for(let t=0;t<g.length;t++)d=h+":"+g[t].shortcut,y[d]||m(o,g[t].shortcut)}}for(let s=0;s<e.length;s++)if(n=e[s],l=n.name,p=n.choice,c=n.shortcut,u=n.shortcuts||[],(c||u.length)&&(a=t.actions.getContextsForType(n.type),a))for(let t=0;t<a.length;t++)if(o=a[t],i=o.lookup(l),i){if(c&&m(o,c,l,p,!0)){if(p){for(let t=0;t<i.choices.length;t++)if(r=i.choices[t],r.value===p){r.shortcut=c;break}}else i.shortcut=c;o.update(l)}if(u.length>0)for(let t=0;t<u.length;t++)m(o,u[t],l,p,!1)&&o.addShortcut(u[t],l,p)}}}(apex,apex.debug,apex.lang,apex.util,apex.navigation,apex.jQuery,apex.item,apex.page);
24apex.dialog={},function(){"use strict";const{dialog:t,util:e,navigation:a,jQuery:n}=apex,i=new Map,o=new Map;function r(t,e){let a=o?.get(t)?.get(e);return"function"==typeof a&&(a=a()),a}n((()=>{apex.actions.add([{name:"a-dialog-open",convertBindingArguments:!0,linkRoleDescriptionKey:"APEX.ACTIONS.DIALOG_LINK",action:async function(t,e,a){const n=i.has(a.tmpl);let o={};switch(a.trgEl){case"this":a.trgEl=t?.target||window;break;case"document":a.trgEl=document;break;case"apex.gPageContext$":a.trgEl=apex.gPageContext$}return n&&!a.v||(a.v=a.v||"",await apex.server.loadScript({path:`wwv_flow.js_dialogs?p_template_static_id=${a.tmpl}&p_app_id=${a.appId}&p_page_id=${a.pageId}&v=${a.v}`})),o=r(a.appId,a.pageId),"function"==typeof o&&(o=o()),o={...o,...a.dialogAttributes||{}},i.get(a.tmpl).get("init")(a.url,a.title,a.h,a.w,a.mxw,a.isModal,a.dlgCls,o,null,a.pageCls,a.trgEl),!0}},{name:"a-dialog-close",convertBindingArguments:!0,action:function(t,e,a){const n=a.json?a.json:a.target;i.get(a.tmpl).get("close")(a.isModal,n)}},{name:"a-dialog-chain",convertBindingArguments:!0,action:function(t,i,o){const d=e.getTopApex().jQuery;let l,p,s;return o.modal&&window.frameElement?(l="#"+window.frameElement.parentNode.id,p=d(l)||n(l),s=r(o.appId,o.pageId),p.dialog("option","title",s?.title||o.title),setTimeout((()=>{p.dialog("instance")._focusTabbable()}),1),a.redirect(o.url),!0):("auto"===o.h&&(o.h=window.outerHeight),"auto"===o.w&&(o.w=window.outerWidth),window.resizeTo(o.w,o.h),a.redirect(o.url),!0)}}])})),t.registerHandlers=function(t){t.forEach((t=>{t.ids.forEach((e=>{i.has(e)||i.set(e,new Map),i.get(e).set(t.action,t.code)}))}))},t.registerAttributes=function(t){t.forEach((t=>{o.has(t.appId)||o.set(t.appId,new Map),o.get(t.appId).set(t.pageId,t.attributes)}))}}();
25apex.widget=function(t,e,i){"use strict";const s="true",l="false";function n(t){return t.replace(/^[a-z]/,(function(t){return t.toUpperCase()}))}function o(t,e){let i;(t=t.jquery?t[0]:t)&&t.getAttribute&&(i=t.getAttribute("data-"+e));try{i=i===s||i!==l&&("null"===i?null:+i+""===i?+i:r.test(i)?JSON.parse(i):i)}catch(t){}return i}const r=/(?:{[\s\S]*}|\[[\s\S]*])$/,h=/[A-Z]/g,c=function(t){return"-"+t.toLowerCase()},a=".u-selector",u="is-focused",d="is-selected",p="."+d,g="aria-selected",f="aria-checked",S="aria-disabled",m="aria-multiselectable",x=".is-disabled",v="u-RTL",C=":visible",w="js-tabbable",M="."+w,b="tabindex",y="role",A="input",N="focus",I=".selection",_="set",$="unset",T="toggle",V="range",k="add",O="all",E="anchor",K=navigator.appVersion.includes("Mac"),F={NAV_NONE:"none",NAV_FOCUS:"focus",NAV_SELECT:"select"},{NAV_NONE:P,NAV_FOCUS:R,NAV_SELECT:j}=F,D=t=>parseInt(t,10),q="data-id",L="data-rownum",B="js-ScrollFiller",H=".js-load",U={begin:function(){this.text=""},item:function(t,e){t>0&&(this.text+="\r\n"),this.text+=e[0].innerText.replaceAll(/\s+/g," ").trim()},end:function(){},toString:function(){return this.text}},J={begin:function(t,e){1===e.length?this.text="":(this.text="<ul>",this.collectionClose="</ul>",this.itemNode="li")},item:function(t,e){0===t&&"TR"===e[0].nodeName.toUpperCase()&&(this.text="<table><tbody>",this.collectionClose="</tbody></table>",this.itemNode="tr"),this.itemNode&&(this.text+=`\r\n<${this.itemNode}>`),this.text+=e[0].innerHTML,this.itemNode&&(this.text+=`</${this.itemNode}>`)},end:function(){this.collectionClose&&(this.text+=this.collectionClose)},toString:function(){return this.text}};return{waitPopup:function(t){let i,s,l;return t?(i=e('<div id="apex_wait_popup" class="apex_wait_popup"></div><div id="apex_wait_overlay" class="apex_wait_overlay"></div>').prependTo("body"),s=i.first(),t.indexOf("<img")>=0&&s.hide(),window.setTimeout((function(){s.html(t).find("img").hide().on("load",(function(){e(this).show(),s.show()}))}),10)):(i=e('<div id="apex_wait_overlay" class="apex_wait_overlay"></div>').prependTo("body"),window.setTimeout((function(){void 0!==i&&(l=apex.util.showSpinner())}),10),i.css("visibility","visible")),{remove:function(){void 0!==l&&l.remove(),i.remove(),i=void 0}}},initPageItem:function(t,e){apex.item.create(t,e)},textareaClob:{_upload:function(t,e,i){let s,l=$s_Split($v(t),4e3);
25s=apex.server.widget("apex_utility",{p_flow_step_id:"0",x04:"CLOB_CONTENT",x05:"SET",f01:l},{dataType:"text"}),s.done((function(){$s(t,i),apex.submit(e)}))},upload:function(t,e){this._upload(t,e,"")},uploadNonEmpty:function(t,e){0===$v(t).replace(/\s/g,"").length||""===$v(t)||"."===$v(t)?($s(t,""),apex.submit(e)):this._upload(t,e,".")}},contextMenuMixin:{options:{contextMenuAction:null,contextMenu:null,contextMenuId:null},_initContextMenu:function(i,s,l,o,r){let h=this.options,c=this,a=this.element,u=this.widgetName,d=n(u);if(h.contextMenu||h.contextMenuId)if(e.apex.menu){if(h.contextMenu){if(h.contextMenu.menubar)throw new Error(d+" contextMenu must not be a menubar");h.contextMenu._originalBeforeOpen=h.contextMenu.beforeOpen,h.contextMenu.beforeOpen=function(t,e){e.menuElement=c.contextMenu$,e[u]=a,c.getSelection&&(e.selection=c.getSelection()),o&&o(e),h.contextMenu._originalBeforeOpen&&h.contextMenu._originalBeforeOpen(t,e)},h.contextMenu._originalAfterClose=h.contextMenu.afterClose,h.contextMenu.afterClose=function(t,e){e.menuElement=c.contextMenu$,e[u]=a,h.contextMenu._originalAfterClose&&h.contextMenu._originalAfterClose(t,e),e.actionTookFocus||c.focus()},this.contextMenu$=e("<div style='display:none'></div>").appendTo("body"),h.contextMenuId&&(this.contextMenu$[0].id=h.contextMenuId),this.contextMenu$.menu(h.contextMenu)}else if(this.contextMenu$=e("#"+h.contextMenuId),0===this.contextMenu$.length||!this.contextMenu$.is(":apex-menu"))throw new Error(d+" contextMenuId not found");h.contextMenuAction&&t.warn(d+" contextMenuAction option ignored when contextMenu option present"),h.contextMenuAction=function(t){let s,l,n=r?r(t):null;if("contextmenu"===t.type&&0!==t.button)s=t.pageX,l=t.pageY;else{let n=e(t.target),o=n.offset();s=o.left,l=o.top+n.closest(i).outerHeight()}c.contextMenu$.menu("toggle",s,l,n)}}else t.warn(d+" contextMenu option ignored because menu widget not preset");function p(t){let e,i=c.options.contextMenuAction;i&&!s(t)&&(e=l(t),e&&(t.preventDefault(),e.length&&c._select(e,null,!0,!1),setTimeout((()=>{i(t)}),10)))}let g=!1;this._on({keydown:t=>{t.shiftKey&&121===t.which&&(t.preventDefault(),g=!0,setTimeout((()=>{p(t),g=!1}),50))},contextmenu:t=>{g?t.preventDefault():p(t)}})},_destroyContextMenu:function(){this.options.contextMenu&&this.contextMenu$&&this.contextMenu$.remove()},_checkContextMenuOptions:function(t){let e=this.options,i=n(this.widgetName);if("contextMenu"===t||"contextMenuId"===t)throw new Error(i+" "+t+" cannot be set");if("contextMenuAction"===t&&(e.contextMenu||e.contextMenuId))throw new Error(i+" contextMenuAction cannot be set when the contextMenu or contextMenuId option is used")}},ListViewSelection:class{#t;#e=null;#i=!1;#s=!1;#l=null;#n=null;#o=39;#r=37;#h=!1;#c=null;#a=null;#u=null;#d=null;#p=null;#g=!1;#f=!1;#S=!1;#m=!1;#x=!1;#v=x;constructor(t,e,i){this.#t=i,this.#l=t,null!=e.allowCopy&&(this.#i=!0),this.#s=e.itemsAreServerRendered||!1;for(const t of["itemNavigationMode","selectionFollowsFocus","multiple","allowSelectAll","selectAllId","allowSelectHidden","clipboardValue","itemSelector","groupSelector","constrainNavigation","selectionStateItem","dataTransferFormats","persistSelection"])Object.hasOwn(e,t)&&void 0!==e[t]&&(this[t]=e[t]);this.#C()}#w=P;get itemNavigationMode(){return this.#w}set itemNavigationMode(i){if([P,R,j].includes(i)||(t.warn("Invalid value for itemNavigationMode ignored"),i=P),this.#w!==i&&this.setSelection(e(),!1,!1),this.#w=i,i===P)this.#e=null;else{const t=this.#t.getContainer();t?this.#M(t.find(this.itemSelector)[0]):this.#e=null}this.#b()}selectionFollowsFocus=!0;#y=!1;get multiple(){return this.#y}set multiple(t){this.#y&&!t&&this.setSelection(this.getSelection().first()),this.#y=t,this.#b()}allowSelectAll=!1;#A=null;get selectAllId(){return this.#A}set selectAllId(t){if(this.#p&&this.#p.off(I),t)if(this.#p=e("#"+i.escapeCSS(t)),this.#p[0]){const t=this.#p.is(A),i=t=>{t?this.setSelection(e()):this.selectAll(null)};this.#p.on("click"+I,(()=>{if(this.#N)return;let e;e=t?!this.#p.prop("checked"):this.#p.attr(f)===s,i(e)})),t||this.#p.on(`keyup${I} keydown${I}`,(t=>{if(!this.#N&&32===t.which){if("keyup"===t.type){const t=this.#p.attr(f)===s;i(t)}t.preventDefault()}}))}else this.#p=null;else this.#p=null;this.#A=t}allowSelectHidden=!1;itemSelector=null;#I=null;get groupSelector(){return this.#I}set groupSelector(t){this.#I=t,this.#C()}constrainNavigation=!0;clipboardValue=null;dataTransferFormats=[{format:"text/plain",writer:Object.create(U)},{format:"text/html",writer:Object.create(J)}];#_=!1;get persistSelection(){return this.#_}set persistSelection(e){!this.#t.getModel&&e&&(t.warn("No model to persist selection in"),e=!1),this.#_=e}selectionStateItem=null;#N=!1;get disabled(){return this.#N}set disabled(t){if(this.#N=t,t){const t=this.getCurrentItem();t&&this.#$(t)}else if(this.supportsNavigation()){const t=this.#e;this.#e=null,this.#M(t)}this.#b()}initialize(){const t=this.#l;this.#b(),this.#e=null,this.#h=!1,"rtl"===t.css("direction")&&(t.addClass(v),this.#o=37,this.#r=39),t.on("click"+I,(t=>{this.#T(t)})).on("keydown"+I,(t=>{this.#V(t)})).on("keyup"+I,(t=>{this.#k(t)})).on("focusin"+I,(t=>{this.#O(t)})).on("focusout"+I,(t=>
25{this.#E(t)})),this.#i&&apex.clipboard.addHandler(t[0],(t=>!(this.#N||!this.supportsSelection()||(this.#K(t),0)))),this.#c=i.debounce(this.#F,1),this.#a=i.debounce(this.#F,350)}destroy(){apex.clipboard.removeHandler(this.#l[0]),this.#l.removeClass(v).off(I),this.#t.getContainer().removeAttr(m).removeAttr(S),this.#p&&(this.#p.off(I),this.#p=null)}supportsSelection(){return this.itemNavigationMode===j}supportsNavigation(){return this.itemNavigationMode!==P}focus(){this.supportsNavigation()&&this.#e?this.#e.focus():this.#t.getContainer().find(":focusable").first().trigger(N)}getCurrentItem(){if(this.supportsNavigation()){if(this.#e){let t=this.itemSelector;return this.groupSelector&&(t+=","+this.groupSelector),e(this.#e).closest(t)}return e()}return null}setCurrentItem(t,e){if(this.supportsNavigation()){const i=this.#t.getContainer();let s=this.itemSelector;this.groupSelector&&(s+=","+this.groupSelector),(t=t.first()).is(s)&&t.closest(i)[0]&&(this.#M(t[0]),e&&this.focus())}}getSelection(){const t=this.#t.getContainer();return t&&this.supportsSelection()?t.find(this.itemSelector+p):null}setSelection(t,e,i){this.#t.getContainer()&&this.supportsSelection()&&(this.multiple||(t=t.first()),this.#P(t,null,e,!1,i))}selectAll(t,e){const i=this.#t.getContainer();if(i&&this.supportsSelection()&&this.multiple&&this.allowSelectAll){let s;s=i.find(this.itemSelector),this.#P(s,O,t,e)}}getSelectedValues(){const t=this.#t;return t.getContainer()&&this.supportsSelection()?this.persistSelection?t.getModel().getSelectedRecords():t.getValuesForItems(this.getSelection()):null}getSelectedCount(){const t=this.#t;return t.getContainer()&&this.supportsSelection()?this.persistSelection?t.getModel().getSelectedCount():this.getSelection()?.length:null}setSelectedValues(t,i,s){const l=this.#t,n=l.getContainer(),o=l.getModel?l.getModel():null;let r,h=[],c=0,a=t.length,u=new Set;if(!n||!this.supportsSelection())return-1;if(!this.multiple&&a>1&&(a=1),o)for(let e=0;e<a;e++)u.add(o.getRecordId(t[e]));else t.forEach((t=>{u.add(t)}));if(this.#S?r=n.find(this.groupSelector+" "+this.itemSelector):(r=n.children(),r=this.#g?r.children(this.itemSelector):r.filter(this.itemSelector),r=r.not(this.#v)),r.each((function(){let t=e(this).attr(q);u.has(t)&&(u.delete(t),h.push(this),c+=1)})),this.setSelection(e(h),i,s),this.persistSelection){for(let t of u)o.getRecord(t)&&(o.setSelectionState(t,!0),c+=1);0!==h.length||s||this.#c(!0,null)}return c}saveState(){if(!this.supportsNavigation())return;let s,l={};if(this.#u&&t.warn("Previous selection state overwritten"),this.#u=l,this.#x=!1,s=this.getCurrentItem(),s[0]&&(l.lastItemValue=s.attr(q)),this.supportsSelection()){if
25(this.#n){let t;t="string"==typeof this.#n?(this.#t.getContainer()||e()).find(`[${q}="${i.escapeCSS(this.#n)}"]`):e(this.#n),l.anchorItemValue=t.attr(q)}if(this.#t.getContainer()&&!this.persistSelection){const t=this.getSelection(),e=[];l.selection=e;for(let i=0;i<t.length;i++){let s=t.eq(i).attr(q);void 0!==s&&e.push(s)}}else this.persistSelection&&(l.hadSelection=this.#h,this.#h=!1)}}restoreState(t){if(!this.supportsNavigation())return;const e=this.#u,s=this.#t.getModel(),l=this.#t.getContainer();let n,o,r=!1;if(this.#u=null,n=l.find(`[${q}="${i.escapeCSS(e.lastItemValue)}"]`),o=n[0]?this.#R(n):l.find(this.itemSelector)[0],this.supportsSelection())if(this.#n=l.find(`[${q}="${i.escapeCSS(e.anchorItemValue)}"]`)[0]||e.anchorItemValue||null,e?.selection?.length>0){let i=e.selection;s&&(i=i.map((t=>s.getRecord(t))).filter((t=>null!=t))),r=this.setSelectedValues(i,!1,!0)>0,r&&!t||this.#c(!0,null)}else this.persistSelection&&(e.hadSelection||t)&&this.#c(!0,null);o&&this.#M(o)}getPreferredSelectorControl(){if(!this.supportsSelection())return"";const t="u-selector"+(this.#y?"":" u-selector--single");return this.#g?`<span class="${t}" aria-hidden="${s}"></span>`:`<input class="${t}" type="${this.#y?"checkbox":"radio"}" aria-label="%0">`}#P(t,l,n,o,r=!1){const h=this.#t,c=h.getModel?h.getModel():null,u=h.getContainer(),f=h.getPagination();let S,m,x,v,w,M,b=!this.selectionFollowsFocus,y=!1,N=!1,I=!1,K=this.persistSelection,F=!1,P=null,R=_;const j=(t,i)=>{const s=(t,s)=>{t.each(((t,l)=>{let n=e(l).attr(q);n&&c.setSelectionState(n,i,s)}))};K&&!F&&(s(t,R),R!==T&&t.length>1&&!I&&s(x.first(),E))};if(l===$||this.allowSelectHidden||(t=t.filter(C)),l&&(this.multiple?("string"==typeof l?R=l:"click"===l.type?b&&e(l.target).is(a)?(R=T,I=!0):l.ctrlKey||l.metaKey?R=T:l.shiftKey&&(R=V):"keydown"!==l.type&&"keyup"!==l.type||(32===l.which?l.ctrlKey?R=T:l.shiftKey?R=V:b?(R=T,y=!0):R=k:l.ctrlKey?R="none":l.shiftKey&&(R=V,b&&(N=!0))),l.target||(l=null)):"click"===l.type&&b?(l.ctrlKey||l.metaKey)&&(R=T,y=!0):"keydown"!==l.type&&"keyup"!==l.type||32===l.which&&b&&(R=T,y=!0)),K&&(w=c.getSelectionState().rangeAnchor),R===O&&this.multiple&&this.allowSelectAll?(F=!0,R=_):R!==V||this.#n||N||w||(R=_),R===V&&N&&(!this.#n||!this.getCurrentItem().is(p+","+this.#v))){let t=this.getCurrentItem();this.#n=t[0],K&&(c.setSelectionState(t.attr(q),null,E),w=c.getSelectionState().rangeAnchor)}if(S=t.hasClass(d),R!==_&&R!==V&&(R!==T||!y||this.multiple&&S)||(M=u.find(p),y&&(M=M.not(t)),M.removeClass(d).removeAttr(g).find(a).removeClass(d).filter(A).prop("checked",!1),K&&c.clearSelection()),K&&F&&c.setSelectionState(null,!0,O),x=t.filter(this.itemSelector).not(this.#v),R===_||R===k||R===T&&!S)x.addClass(d),(this.#g||this.#m)&&x.attr(g,s),j(x,!0),I||!x[0]||F||(this.#n=x[0]),P=!0;else if(R===V){let l,n,o,r,h,a,p=!1,S=t.last();if(a="string"==typeof this.#n?u.find(`[${q}="${i.escapeCSS(this.#n)}"]`):e(this.#n),h=D(a.attr(L)),l=this.#j(a),K){let t=c.getRecordMetadata(w);t&&t.serverOffset&&(r=t.serverOffset+1,r!==h&&(l=-1))}if(n=this.#j(S),n<0&&S.is(this.groupSelector)&&(S=this.#S?S.find(this.itemSelector).first():S.next(),p=!0,n=this.#j(S)),l<0){let t=D(S.attr(L));if(h=r||h,f.virtual){let i=u.find("."+B).toArray();if(t>h)for(let t=0;t<i.length&&(a=e(i[t]).next(),this.#g&&(a=a.children().first()),!(D(a.attr(L))>h));t++);else for(let t=i.length-1;t>=0&&(a=e(i[t]).prev(),this.#g&&(a=a.children().first()),!(D(a.attr(L))<h));t--);l=this.#j(a)}else!f.scroll&&K&&(a=this.#d[t>h?"first":"last"](),l=this.#j(a))}p&&l<n&&(n-=1,S=this.#d.eq(n)),K&&j(S,!0),l>n&&(o=n,n=l,l=o),n+=1,v=[],this.#d.slice(l,n).each(((t,i)=>{let s=e(i);s.is(C)&&!s.is(this.#v)&&v.push(i)})),x=e(v),x.addClass(d),(this.#g||this.#m)&&x.attr(g,s),P=!0}else(R===T&&S||R===$)&&(x.removeClass(d).removeAttr(g),j(x,!1),b&&x[0]===this.#n?(this.#n=null,K&&c.setSelectionState(null,null,E)):I||(this.#n=x[0]),P=!1);if(null!==P&&x.find(a).toggleClass(d,P).filter(A).prop("checked",P),this.multiple&&this.allowSelectAll&&this.#D(),t.length>0&&null!==n&&(m=this.#R(t.first()),n?this.#q(m,l):this.#M(m)),K&&(this.#h=c.getSelectedCount()>0),R===T||R===$||R===V||R===k||R===_&&!i.arrayEqual(M,x)){let t=!r;o?this.#a(t,l):this.#c(t,l)}}contentChanged(i){const l=this.#t.getContainer(),n=this.#t.getModel?this.#t.getModel():null;let o;if(this.#d=null,this.selectAllId&&!this.#p&&t.warn("Select All control not found",this.selectAllId),this.groupSelector&&(o=l.f
25ind(this.groupSelector+" "+this.itemSelector),this.#S=o.length>0),this.#S){let t=o.first().parent();"row"===t.attr(y)&&(t=t.parent()),this.#f="grid"===l.attr(y),this.#g="grid"===t.attr(y),this.#m=t.is("table,tbody")}else this.#g="grid"===l.attr(y),this.#m=l.is("table,tbody");if(i?.length&&this.supportsNavigation()){let t=i;if(t=this.#g?t.children(this.itemSelector):t.filter(this.itemSelector),this.#$(t),this.#S){let i=t.first().closest(this.groupSelector).children().first();i.length&&!i.hasClass(w)&&0===e(this.#e).closest(i).length&&this.#$(i)}this.persistSelection&&this.#s&&n&&t.each((function(){const t=e(this),i=t.attr(q),s=n.getRecordMetadata(i);s?.sel&&t.addClass(d)}));let l=t.filter(p);l.find(a).addClass(d).filter(A).prop("checked",!0),(this.#g||this.#m)&&l.attr(g,s),!this.persistSelection&&this.#x&&(t.addClass(d).find(a).addClass(d).filter(A).prop("checked",!0),(this.#g||this.#m)&&t.attr(g,s)),(this.#x||l.length)&&this.#c(!0)}this.#b(),this.multiple&&this.allowSelectAll&&this.#D()}checkSelectionChange(t){this.#_&&this.getSelectedCount()!==t&&this.#c()}#C(){this.#v=x+",.is-aggregate",this.groupSelector&&(this.#v+=","+this.groupSelector)}#b(){const t=this.#t.getContainer();t&&(this.supportsSelection()&&this.multiple&&this.#g?t.attr(m,s):t.removeAttr(m),this.#N?t.attr(S,s):t.removeAttr(S)),this.#l.removeClass("a-TMV--multipleSelection a-TMV--singleSelection a-TMV--kbdNav js-no-select"),this.supportsSelection()?this.#l.addClass(this.multiple?"a-TMV--multipleSelection":"a-TMV--singleSelection"):this.supportsNavigation()&&this.#l.addClass("a-TMV--kbdNav"),this.supportsSelection()||this.#l.addClass("js-no-select")}#j(t){if(!this.#d){const t=this.#t.getContainer();this.#S?this.#d=t.find(this.groupSelector+" "+this.itemSelector):(this.#d=t.children(),this.#g&&(this.#d=this.#d.children()))}return this.#d.index(t)}#L(t){return e(t).closest(this.itemSelector)}#B(t){let i=this.#L(t);return this.#S&&!i[0]&&(i=e(t).closest(this.groupSelector)),i}#H(){let t=this.#t.getContainer().find(this.itemSelector);return t=t.not(this.#v),this.allowSelectHidden||(t=t.filter(C)),t}#T(t){if(this.supportsNavigation()&&!this.#N){let i=e(t.target),s=this.#B(t.target);if(this.#S&&s.is(this.groupSelector)){let t=s.children().first();if(0===i.closest(t).length)return}s[0]&&(this.supportsSelection()&&(i.is(a)&&(t.ctrlKey=!0,t.shiftKey=!1),this.#P(s,t,!0,!1,!1)),!i.closest(":focusable").length||i.is(a)&&s.is(x)?t.preventDefault():i.trigger(N))}}#U(){let t=this.getCurrentItem();return!this.#g||!t.is(this.itemSelector)||this.groupSelector&&t.is(this.groupSelector)||(t=t.parent()),t}#V(t){if(t.isDefaultPrevented()||!this.supportsNavigation()||this.#N)return;const i=e(t.target),s=this.#t?.keyboardIgnoreSelector(),l=t.which;let n,o=!1,r=null;if(!(s&&i.closest(s).length>0)){if(36===l)this.#J(t),o=!0;else if(35===l)this.#z(t),o=!0;else if(40===l||l===this.#o){if(l===this.#o&&t.altKey)return;if(n=this.#U(),this.#S&&n.is(this.groupSelector)?(r=n.find(this.itemSelector).first(),this.#g&&(r=r.parent())):r=n.nextAll(C).first(),r.hasClass(B)&&(r=null),this.#S&&!r?.[0]&&(r=n.closest(this.groupSelector),this.#f&&(r=r.parent()),r=r.next()),!r?.[0]&&this.#t.getPagination().loadMore){let t=this.#l.find(H);if(t[0]){if(t[0].disabled)return;t.trigger(N),o=!0}}this.constrainNavigation&&(o=!0)}else if(38===l||l===this.#r){if(l===this.#r&&(t.altKey||t.metaKey))return;if(i.is(H))this.focus(),o=!0;else{let t=!1;if(n=this.#U(),this.#S&&n.is(this.groupSelector)){let e=this.itemSelector;t=!0,this.#f&&(n=n.parent(),e=this.groupSelector+" "+e),r=n.prev().find(e).last(),this.#g&&(r=r.parent())}else r=n.prevAll(C).first();r.hasClass(B)&&(r=null),!this.#S||t||r?.[0]||(r=n.closest(this.groupSelector))}this.constrainNavigation&&(o=!0),38===l&&t.stopPropagation()}else if(65===l&&(!K&&t.ctrlKey||K&&t.metaKey))this.selectAll(null),o=!0;else if(32===t.which){if(["INPUT","BUTTON"].includes(t.target.nodeName))return;o=!0}r&&r[0]&&(this.#G(r,t),o=!0),o&&t.preventDefault()}}#k(t){if(!t.isDefaultPrevented()&&this.supportsSelection()&&!this.#N&&32===t.which){if("BUTTON"===t.target.nodeName)return;this.#P(this.getCurrentItem(),t,!0,!0),t.preventDefault()}}
25#O(t){if(this.supportsNavigation()&&!this.#N){let e=t.target,i=this.#B(e);i[0]&&(i.addClass(u),this.#M(e))}}#E(t){if(this.supportsNavigation()&&!this.#N){let e=t.target,i=this.#B(e);i[0]&&i.removeClass(u)}}#F(e,i){const s=this.#t;if(s.isValid()){if(this.selectionStateItem){let e=apex.item(this.selectionStateItem);if(e.node){let t,i=this.getSelectedValues();if(i)if(s.getModel){let e=s.getModel();t=i.map((t=>e.getRecordId(t))).join(":")}else t=i.join(":");else t="";e.setValue(t)}else t.warn("Item not found ",this.selectionStateItem)}s.updateStatus(),e&&s.selectionChanged(i)}}#D(){let t;if(this.persistSelection)t=this.#t.getModel().getSelectionState().selectAll;else{let e=this.#H();t=e.length>0&&e.length===e.filter(p).length}this.#x=t,this.#p&&(this.#p.is(A)?this.#p.prop("checked",t):this.#p.toggleClass(d,t).attr(f,t?s:l))}#$(t){t.add(t.find(":tabbable")).addClass(w).attr(b,-1)}#M(t){let e,i=this.getCurrentItem();this.#e=t,e=this.getCurrentItem(),e[0]!==i[0]&&(this.#$(i),this.disabled||(this.#S&&e.is(this.groupSelector)&&(e=e.children().first()),e.add(e.find(M)).attr(b,0).removeClass(w)),setTimeout((()=>{this.#t.currentItemChanged()}),1))}#R(t){if(t.is(this.groupSelector)){const e=t,i=e.children().first();return this.#S?i[0]:e[0]}let e=t.first().find("input.u-selector");return e.length?e[0]:t[0]}#K(t){const s=this.#t,l=null!=s.getModel?s.getModel():null,n=this.dataTransferFormats,o=i.htmlBuilder(),r=s.getContainer(),h=this.getSelection(),c=this.getSelectedValues();if(c.length){let t=0,i=h.eq(t);n.forEach((t=>{t.writer.begin(r,h,l,l?c:null)}));for(let s=0;s<c.length;s++){let r,a,u,d,p,g,f=!0;l?(a=c[s],u=l.getRecordId(a),d=i?.attr(q),u&&d===u?r=i:d&&(p=l.getRecordMetadata(d),a===p?.record?r=i:p=null),r?(i=null,t+=1,t<h.length&&(i=h.eq(t))):(p=!p&&u?l.getRecordMetadata(u):{sel:!0,record:a},g=s,p?.index&&(g=p.index),this.#t.renderItem(o,a,g,u,p),r=e(o.toString()),o.clear(),f=!1)):(r=h.eq(t),t+=1),this.clipboardValue&&(r=this.clipboardValue(s,r,l,a,u),f=!0);let S,m=f?r.clone():r;m.find("script").remove(),S=m[0].querySelectorAll("*");for(const t of S)for(let e of t.getAttributeNames())e=e.toLowerCase(),e.startsWith("on")?t.removeAttribute(e):"href"===e&&t.getAttribute(e).toLowerCase().includes("javascript:")&&t.setAttribute(e,"#");n.forEach((function(t){t.writer.item(s,m,a,u)}))}n.forEach((t=>{t.writer.end()}))}n.forEach((e=>{t.setData(e.format,e.writer.toString())}))}_copy(t){this.#K(t)}#J(t){const e=this.#t;let i,s=this.#g?"[role='row']":this.itemSelector;e.getPagination().scroll&&e.firstPage(),this.#S&&(s=this.#f?"[role='row']":this.groupSelector),i=e.getContainer().children(s).filter(C).first(),i[0]&&this.#G(i,t)}#z(t){const e=this.#t,i=()=>{this.#G(l,{type:"keydown",shiftKey:t.shiftKey,ctrlKey:t.ctrlKey})},s=()=>{let t=e.getContainer();return this.#S&&(t=t.find(this.groupSelector+" "+this.itemSelector).last().parent(),this.#f&&(t=t.parent())),t};let l,n=this.#g?"[role='row']":this.itemSelector;e.getPagination().scroll&&e.lastPage(),l=s().children(C).last(),l.hasClass(B)?(l=null,e.waitForPageChange().then((()=>{l=s().children(n).filter(C).last(),i()}))):(l=l.filter(n).last(),i())}#G(t,e){const i=this.itemNavigationMode===j&&this.selectionFollowsFocus,s=this.itemNavigationMode===j&&!this.selectionFollowsFocus&&this.multiple,l=()=>{i||s&&e.shiftKey?this.#P(t,e,!0,!0):this.#q(this.#R(t),e)};if(this.groupSelector){let e=t;if(this.#f&&"row"===e.attr(y)&&(e=e.children().first()),e.is(this.groupSelector))return t=e,void l()}this.#g&&"row"===t.attr(y)&&(t=t.children().first()),l()}#q(t,i){if("keydown"===i?.type){let i=this.itemSelector;this.groupSelector&&(i+=","+this.groupSelector),t.focus({preventScroll:!0});let s,l=e(t).closest(i);this.groupSelector&&l.is(this.groupSelector)&&(l=l.children().first()),s=l[0],s||(s=t),s.scrollIntoView({block:"nearest"})}else e(t).trigger(N)}static NAV_MODES=F},getAttribute:o,_getCreateOptions:function(){let t=this.element[0],e={};if(!o(t,"defaults"))for(const[i]of Object.entries(this.options)){let s=o(t,i.replace(h,c));null!=s&&(e[i]=s)}return e}}}(apex.debug,apex.jQuery,apex.util);
26apex.widget.util={},function(e,t,a,n,i){"use strict";
26const l=t.hasOwnProperty,o=Object.entries,s=i.extend,r=13,c=38,u=40,d="mousedown",p="click",h="focusout",f="keydown",m="focus",g="a-Chip",v=".a-ComboSelect-list",C="a-Chips",E="a-Chip--applied",b="a-Chip--input",T="."+E,y=".a-Chip-label",x=".a-Chip-text > .a-Chip-value",A="a-Chip--overflow",P="."+A,S="is-active",I="."+S,$="is-focused",w="."+$,V="is-overflow",_="is-empty",O="is-selected",M="is-preselected",L="."+M,D="is-placeholder",X="has-no-matches",H=":visible",R=".a-ComboSelect-item",k="a-Button--comboSelect",j="."+k,N="a-ComboSelect-counter",z="."+N,B="u-hidden",F="data-value",U="aria-expanded",W="aria-selected",G="aria-checked",Y="aria-pressed",K="aria-activedescendant",q="aria-controls",Q="aria-busy",J="tabindex",Z="aria-label",ee="ITEM_SELECTED",te="ITEM_DELETED",ae="separated",ne="START",ie="END",le='<span class="a-Chip-divider"></span><span class="a-Chip-remove js-removeChip"><span class="a-Icon icon-multi-remove" aria-hidden="true"></span></span>';e.initComboSelect=function(e,n){const l={};let o,s,oe,se,re,ce,ue,de,pe,he,fe,me,ge,ve,Ce,Ee,be,Te,ye=0,xe=!1,Ae=null,Pe=null,Se=!1,Ie=0,$e=null,we=39,Ve=37,_e=t.getTopApex().jQuery,Oe=!1,Me=!1,Le=!1,De=".u-hidden",Xe=!1,He=!0,Re=!1,ke=function(){return"<div class='a-ComboSelect-popup non-responsive'></div>"};function je(e,t,a){let n;return n=!(e>=112&&e<=123||e>=33&&e<=46||e<32),n&&(t||a)&&{65:1,67:1,86:1,88:1,89:1,90:1}[e]&&(n=!1),n}function Ne(e){let a,i,l=Array.isArray(e)?e:e.data,o="CS_"+apex.env.APP_PAGE_ID+"_"+n.baseId+"_option_";return l.forEach(((e,t)=>{e.id=o+t,e.i&&(a=!0)})),Te=l,i="{loop APEX$CHOICES/}",n.hasIcons?(i+=`{if APEX$ITEM%gOpenTag/}<li role="none"  class="a-ComboSelect-group"><div role="presentation" id="&APEX$ITEM%id!ATTR." class="a-ComboSelect-groupLabel">&APEX$ITEM%d.</div><ul role="group" aria-labelledby="&APEX$ITEM%id!ATTR.">{elseif APEX$ITEM%gCloseTag/}</ul></li>{else/}<li id='&APEX$ITEM%id!ATTR.' data-index="&APEX$I!ATTR." role="option" data-value="&APEX$ITEM%r!ATTR." ${J}='-1' {if APEX$ITEM%selected/}aria-selected="true"{endif/} class='a-ComboSelect-item{if APEX$ITEM%s/} ${O}{endif/}' `,n.multiSelect&&n.multiValued?i+=`${G}="{if APEX$ITEM%s/}true{else/}false{endif/}"><span class="a-ComboSelect-action u-selector{if APEX$ITEM%s/} ${O}{endif/}" aria-hidden="true"></span>`:i+=">",a&&(i+='<span class="a-ComboSelect-icon a-Icon &APEX$ITEM%i!RAW." aria-hidden="true"></span>'),n.choiceTemplate?i+=`{if !APEX$ITEM%g/}<div class="a-ComboSelect-customContent">${n.choiceTemplate}{endif/}</div>`:i+='<span class="a-ComboSelect-label">&APEX$ITEM%d.</span>',i+="</li>{endif/}"):i+=Tt,i+="{endloop/}",t.applyTemplate(i,{extraSubstitutions:{APEX$CHOICES:l},defaultEscapeFilter:n.escapeChoices?"HTML":"RAW",iterationCallback:function(t,a,n,i,l,o){const s=o.APEX$ITEM;o.APEX$LOV={display:s.d,return:s.r,icon:s.i},Object.keys(o).forEach((e=>{["APEX$LOV","APEX$I","APEX$ITEM"].includes(e)||delete o[e]})),s.cols&&s.cols.forEach(((t,a)=>{o[e.fields[a].name]=t}))}})}function ze(e){let t,i=0===e,l=se.text();t=i?a.getMessage("APEX.CS.NO_MATCHES"):1===e?a.getMessage("APEX.CS.MATCH_FOUND"):a.formatMessage("APEX.CS.MATCHES_FOUND",e),Le||(t===l&&(t+=" "),se.text(t)),i&&n.closeOnEmpty&&ue.popup("close")}function Be(){if(ue.length){const e=ue.popup("option").position;e&&(e.collision="fit flip",ue.popup({position:e}))}}function Fe(){if(ue.length){const e=ue.parent()[0],t=ue[0],a=window.getComputedStyle(e),n=parseFloat(a.top),i=parseFloat(a.bottom),l=parseFloat(window.getComputedStyle(ue[0]).height);let o;i<0&&(o=l+i,t.style.maxHeight=o+"px"),n<0&&(o=l+n,t.style.maxHeight=o+"px",e.style.top="0px")}}function Ue(i,l=!1){let o=0;if(n.multiValued||(ce.attr(Q,"true"),ce.removeAttr(K)),n.asyncLoading&&(o=Ie+1,Ie+=1,!l)){const e=Pe.find("li"),t='<span class="a-ComboSelect-label"></span>';e.length>0?(e.html(t),e.removeClass([$,M,O]).find(".a-ComboSelect-icon").remove()):Pe.html(`\n                            <li role="option" class="a-ComboSelect-item" >\n                                ${t}\n                            </li>\n                        `),Pe.addClass(D)}n.choices(i,(function(s){const r=Array.isArray(s)?s:s.data;let c=Ne(s);if(o===Ie){let o,s;if(window.self!==window.parent){const i=function(e){return t.applyTemplate("{loop APEX$CHOICES/} <li role=\"option\" id='&APEX$ITEM%id!ATTR.' ><span>&APEX$ITEM%d.</span></li>\n            {endloop/}",{extraSubstitutions:{APEX$CHOICES:e},defaultEscapeFilter:n.escapeChoices?"HTML":"RAW"})}(r);Ee=e.find(".a-ComboSelect-popup-mockup"),Ee.length||(Ee=e.append(`<div role="dialog" id="${pe}"${Z}="${t.escapeHTMLAttr(a.getMessage("APEX.POPUP_LOV.TITLE"))}" class="a-Combobox-popup-mockup u-vh"> <ul role="listbox"></ul></div>`).find(`#${pe}`)),Ee.find("ul").html(i)}r.length||(c=`<li role="option" class="a-ComboSelect-item a-ComboSelect-item--no-results" >${n.noMatchesMessage?n.noMatchesMessage:a.getMessage("APEX.CS.NO_MATCHES")}</li>`),Pe&&(n.asyncLoading&&(o=document.activeElement,s=Pe[0].contains(o)),Pe.removeClass([D,X]),Pe.html(c),n.asyncLoading&&s&&Pe.find(".a-ComboSelect-item").first().addClass($).trigger("focus")),Me||!(n.closeOnEmpty&&r.length||!n.closeOnEmpty)||n.asyncLoading&&!l||Ke(i,c),r.length||n.closeOnEmpty||Pe?.addClass(X),Me&&(i&&!n.enterable&&r.length>0&&Pe.find(`${R}
26:not(${De})`).first().addClass(M),Be(),Fe(),ue.scrollTop(0)),n.asyncLoading&&(Ie=0),n.multiValued||ce.attr(Q,"false"),setTimeout((()=>{ze(r.filter((e=>!e.gOpenTag&&!e.gCloseTag)).length)}),0)}}),l)}function We(e,a){const l=new RegExp("([<>&;])|("+t.escapeRegExp(a)+")","ig");let o=null,s=n.choices[e],r=!(n.multiValued&&s.selected)&&(!Se||s.lc.includes(a.toLowerCase()));return r&&(re+=1,i(this).find(n.itemLabelSelector).html(Se?s.d.replace(l,(function(e,t,a){if(t){switch(t){case"<":o=t;break;case">":"<"===o&&(o=null);break;case"&":o||(o=t);break;case";":"&"===o&&(o=null)}return t}return o||!a.length?a:"<span class='a-ComboSelect-itemHighlight'>"+a+"</span>"})):s.d)),!r}function Ge(e){let a=Te[Number(e.attr("data-index"))-1].pristineDisplayValue||e.find(".a-ComboSelect-label").text(),i=e.attr(F);if(a=t.unescapeHTML(a),n.multiValued&&n.multiSelect){const t=e.find(".a-ComboSelect-action");t.hasClass(O)?(n.removeValue(n.enterable?a:i),st(n.enterable?a:i),t.removeClass(O),e.removeClass(O).attr(G,"false")):(vt(i,a,!0),t.addClass(O),e.addClass(O).attr(G,"true"),Be())}else he={r:i,d:a},ue.popup("close")}function Ye(e){if(e){let t=e.d,a=e.r;n.multiValued?vt(a,t,!0):gt(a,t,!0)}if(i(window).off(ge),i("html").off(ve),ce.off(Ce),fe&&(fe.removeClass(S).attr(Y,"false"),et()),ue){let e=ue.find(".a-ComboSelect-list").children(w);e.removeClass($),!n.multiValued&&n.enterable&&e.removeAttr(W)}ce.attr(U,"false").removeAttr(K).removeAttr(q).attr(Q,"false"),Ee&&(Ee.remove(),Ee=null),Le=!0,setTimeout((()=>{Le=!1,Me=!1,n.enterable&&!n.multiValued&&ce.parent().removeClass("js-uses-enter")}),0)}function Ke(t,l){if(e&&!0===e[0]?.isConnected){let s=!0;if(Me=!0,n.multiValued&&o.children(I).removeClass(S),n.onOpen){if(s=!1,!n.onOpen(t,Ye))return void(Me=!1)}else{if(!(xe||n.choices&&0!==n.choices.length))return void(Me=!1);let t={id:pe,title:a.getMessage("APEX.POPUP.SEARCH"),isPopup:!0,parentElement:e,returnFocusTo:ce[0],noOverlay:!0,takeFocus:!1,closeDeadAreas:!n.enterable&&n.multiValued?e:null,width:200,minHeight:20,maxHeight:n.maxHeight||480,okButton:!1,dialogClass:"ui-dialog-comboSelect"+(n.popupClasses?" "+n.popupClasses:""),notification:!1,callback:()=>{Ye(he)},init:function(e){let t="a-ComboSelect-list";n.multiValued&&(t+=" a-ComboSelect--multi"),Pe=i(`<ul class="${t}" role="listbox" ${n.multiSelect?"aria-multiselectable='true'":""}></ul>`),e.append(Pe),xe?xe&&(!n.asyncLoading||fe&&fe.hasClass(S))&&Pe.html(l):(Pe.html(Ae),Pe.filterable({enhanced:!0,filterCallback:We,input:ce,children:"li",beforefilter:()=>{re=0},filter:()=>{ze(re)}})),Pe.keydown((function(e){let t,a=e.which,n=Pe.children(w);a===u?t=n.nextAll(".a-ComboSelect-item").not(De).first():a===c?t=n.prevAll(".a-ComboSelect-item").not(De).first():a!==r&&9!==a||(n[0]&&Ge(n),a===r&&e.preventDefault()),t&&t[0]&&(n.removeClass($),t.addClass($).trigger("focus"),e.preventDefault())})).on(p,(function(e){let t=i(e.target).closest(".a-ComboSelect-item"),a=t.parent(v).hasClass(X);0===Ie&&t.length&&!a&&(document.activeElement!==ce[0]&&ce.trigger(m),Ge(t),n.multiValued||ce.parent().removeClass(_))})),e.popup("widget").on(d,(function(e){e.preventDefault()}))},open:function(t){let a,l,o,s,r=_e(t.target),c=ce.val();he=null,r.data("apex-popup").opener=ce,!xe||!n.asyncLoading||fe&&fe.hasClass(S)?xe||Pe.filterable("refresh"):(Re||n.enterable||n.multiValued||(c=""),Ue(c)),n.width||(a=Number(e.css("width").replace("px",""))),o=i(window).width()-10,s=i(window).height()-10,(n.width||a)>o&&(a=o),n.height>s&&(l=s),a&&r.popup("option","width",a),l&&r.popup("option","height",l),ce.on(Ce,(function(){queueMicrotask((()=>{Fe()}))}))}};Oe=!0,ue=apex.message.showDialog(ke,t),ce.attr(q,pe),ue.scrollTop(0)}ce.attr(U,"true"),n.enterable&&!n.multiValued&&ce.parent().addClass("js-uses-enter"),s&&(n.displayValuesAs!==ae&&ce.trigger("focus"),Oe=!1)}}function qe(){Me&&ue.popup("close")}function Qe(e,t){let i;e.addClass(S),i=n.getChipLabel?n.getChipLabel(e):e.find(x).text(),s.attr("aria-live","assertive").text(a.format(n.activeChipMessage,i)),n.displayValuesAs===ae&&e.length>0&&Ct(e,t)}function Je(){n.enterable&&qe(),Qe(ce.parent().prevAll(T+","+P).filter(H).first(),ie)}function Ze(e,t=!0){Ae&&Ae.each((function(){let a=i(this);a.attr(F)===e&&a.attr("aria-selected",t?"true":"false")}))}function et(){ye>0?fe.removeClass(B):fe.hasClass(S)||fe.addClass(B)}function tt(){const e=ye<=99?ye:"99+";let t;t=a.formatMessage("APEX.CS.SELECTED_VALUES_COUNTER",e),fe.attr(Z,t),fe.text(e),document.activeElement!==fe[0]&&et()}function at(){const e=fe.hasClass(S),t=ce.val();e?(fe.removeClass(S).attr(Y,"false"),t.length>=n.minCharactersSearch?xe?Ue(t):Ke():qe(),et()):(fe.addClass(S).attr(Y,"true"),Ue(void 0,!0))}function nt(e,t){let a,i=ce.val();if(ue.length&&(a=ue.find(`${R}${w}`)),Re||n.enterable||n.multiValued||(i=""),Me||n.enterable&&!(i.length>=n.minCharactersSearch)){if(!n.onOpen&&Me&&(n.asyncLoading&&0===Ie||!n.asyncLoading)){let i;if(ue.find(L).removeClass(M),n.onOpen)n.multiValued||(i=ue.find(".a-ComboSelect-item[aria-selected='true']").first()),i&&i[0]||(i=ue.find(".a-ComboSelect-item").not(De).first()),i.addClass($).focus(),ce.prop("A_TABINDEX",-1);else{let e,n,i=ue.find(`${R}
26:not(${De})`).first();if(a.length>0?(t===u?(n=a.nextAll(".a-ComboSelect-item").not(De).first(),0===n.length&&(n=a.parents(".a-ComboSelect-group").next().find(`${R}:not(${De})`).first())):t===c&&(n=a.prevAll(".a-ComboSelect-item").not(De).first(),0===n.length&&(n=a.parents(".a-ComboSelect-group").prev().find(`${R}:not(${De})`).last())),0===n.length?n=a:a.removeClass($).removeAttr(W),n[0]===i[0]&&(e=n.parent(".a-ComboSelect-group"))):n=i,n.length){const a=e&&e.length?e[0]:n[0];if(n.addClass($).attr(W,"true"),ce.attr(K,n[0].id),!function(e,t){const a=e.getBoundingClientRect(),n=t.getBoundingClientRect();return a.top>=n.top&&a.bottom<=n.bottom}(a,ue[0])){let e=t===c;a.scrollIntoView(e)}}}e.preventDefault()}}else xe&&!n.asyncLoading?Ue(i):Ke(i)}function it(){let e=[];o.children(T).each((function(){let t,a,l=i(this);n.getChipLabel?a=n.getChipLabel(l):(a=l.find(x).text(),t=l.find(y).text(),t&&(a=t+" "+a)),e.push(a)})),oe.text(e.join(", "))}function lt(e,t){let a=null;return Array.isArray(n.choices)?a=n.choices.find((t=>t.r===e)):n.findChoice&&(a=n.findChoice(e,t)),a}function ot(e,a,l=""){let s,r=o.children(T);if(s=lt(e,a),(n.enterable||s)&&(!s||a&&n.enterable||(a=s.d),0===r.filter((function(){return i(this).attr(F)===e})).length)){let c=r.last(),u=i(`<li class="${g} ${E}" aria-hidden="true" data-value="${t.escapeHTMLAttr(e)}">${l?`<span class="a-Chip-label">${t.escapeHTML(l)}</span>`:""}<span class="a-Chip-text"><span class="a-Chip-value">${t.escapeHTML(a)}</span></span>${le}</li>`);return s&&(s.selected=!0,Ze(e)),c[0]?c.after(u):o.prepend(u),it(),ht(),n.displayValuesAs===ae&&Ct(u,ie),fe&&(ye+=1,tt()),!0}return!1}function st(a,l=!1){let s=!1,r=lt(a);if(r&&(delete r.selected,Ze(a,!1)),o.children(T).each((function(){let t=i(this);if(t.attr(F)===a){const a=i.Event("input");return t.remove(),it(),ht(),l||(a.apexData={action:te},e.trigger(a,a.apexData)),s=!0,!1}})),!n.enterable&&Me){let e=ue.find(`${R}[data-value=${t.escapeCSS(a)}]`);e&&e.removeClass(O).attr(G,"false").find(".a-ComboSelect-action").removeClass(O)}return fe&&s&&(ye-=1,tt()),s}function rt(){let e;if(n.multiValued)e=[],o.children(T).each((function(){let t=i(this),a={value:t.attr(F),displayValue:t.find(x).text()},n=t.find(y).text();n&&(a.label=n),e.push(a)}));else{let t=ce.attr(F);e=t?{value:t,displayValue:ce.val()}:null}return e}function ct(e,t,a=!0){let l=lt(e,t),o=lt(ce.attr(F));if(Ae&&Ae.filter("[aria-selected='true']").attr("aria-selected","false"),o&&delete o.selected,n.enterable||l){if(l?(l.selected=!0,t=l.d,Ze(e)):t||(t=e),Se=!1,ce.attr(F,e).val(t),Re=!1,(be||!n.multiValued)&&a){const e=i.Event("input");e.apexData={action:ee},ce.trigger(e,e.apexData)}return!0}return!1}function ut(e,t){return t.addClass(S),n.activateChip&&((e=!n.activateChip(t.attr(F),t,(function(e,a=null,n=null){null!=a&&t.find(y).text(a),null!=n&&t.find(x).text(n),pt(),e&&ce.trigger("focus")})))||t.addClass(S)),e}function dt(e=!1){if(ce.attr(F,"").val("").parent().addClass(_),!e){const e=i.Event("input");e.apexData={action:te},ce.trigger(e,e.apexData)}}function pt(){if(n.useOverflow){let e,t,a,n=o.width(),i=0,l=0,s=!1;o.removeClass("a-Chips--wrap"),n-=n/3,e=o.children(T),a=e.length-1;for(let t=a;t>=0;t--){let o=e.eq(t);i+=o.removeClass(V).width(),i>n&&t<=a&&(s=!0,l+=1),i>n&&o.addClass(V)}t=o.children(P),t.toggleClass(V,s),s&&t.find(".a-Chip-value").text("+"+l)}}function ht(){let e=0===o.children(T).length;de&&ce.attr("placeholder",e?de:""),pt()}function ft(e){const t=e.attr(F);n.removeValue(t),st(t)}function mt(e=!0){let t,a=ce.val(),i=a.toLowerCase(),l=a;Array.isArray(n.choices)&&(t=n.choices.find((e=>e.lc===i)),t&&(l=t.r)),n.multiValued?vt(l,a):gt(l,a,!1,e)}function gt(e,t,a=!1,i=!0){let l,o=e,s=t;n.setValue&&(l=n.setValue(e,t,a),l&&(null!=l.text&&(s=l.text),null!=l.value&&(o=l.value))),ct(o,s,i),n.enterable||(me=rt())}function vt(t,a,l=!1){let o,s;if(o=n.addValue(t,a,l),o&&(null!=o.text&&(a=o.text),null!=o.value&&(t=o.value),s=o.label||""),!o||!o.skip){const n=i.Event("input");ot(t,a,s),n.apexData={},l&&(n.apexData.action=ee),e.trigger(n,n.apexData)}dt(!0)}function Ct(t,a){const n=t.parent(`.${C}`)[0],i=t[0],l=e.find(`.${b}`)[0],o=n.getBoundingClientRect(),s=i.getBoundingClientRect(),r=l.getBoundingClientRect(),c=s.left-o.left,u=o.right-o.left,d=s.right-s.left,p=r.right-r.left;s.right<=o.right-p&&s.left>=o.left||(a===ie?n.scrollBy(c-(u-d-p),0):a===ne&&n.scrollBy(c,0))}function Et(e,t,a){if(t!==e){const n=i.Event("change");n.apexData={oldValue:e,value:t},Xe=!0,ce.trigger(n,n.apexData),a&&(me=t)}}const bt=t.debounce((function(e=!1){if(!e){const e=n.minCharactersSearch;let t=ce.val(),a=t.length;fe&&fe.hasClass(S)&&at(),Re=!0,a>=e&&document.activeElement===ce[0]?n.asyncLoading&&!Me?Ke(t):Ue(t):a<e&&Me&&qe()}}),250);let Tt=`<li id='&APEX$ITEM%id!ATTR.' data-index="&APEX$I!ATTR." role="option" class="a-ComboSelect-item" data-value="&APEX$ITEM%r!ATTR." ${J}="-1" {if APEX$ITEM%selected/}aria-selected="true"{endif/}><span class="a-ComboSelect-label">&APEX$ITEM%d.</span></li>`;if(n.hasIcons&&n.hasGroups?Tt=`<li id='&APEX$ITEM%id!ATTR.' data-index="&APEX$I!ATTR." role="option" class="{if APEX$ITEM%g/}a-ComboSelect-itemGroup{else/}a-ComboSelect-item{endif/}" data-value="&APEX$ITEM%r!ATTR." ${J}="-1" {if APEX$ITEM%selected/}aria-selected="true"{endif/}><span class="a-ComboSelect-icon a-Icon &APEX$ITEM%i!ATTR." aria-hidden="true"></span> <span class="a-ComboSelect-label">&APEX$ITEM%d.</span></li>`:n.hasIcons?Tt=`<li id='&APEX$ITEM%id!ATTR.' data-index="&APEX$I!ATTR." role="option" class='a-ComboSelect-item' data-value='&APEX$ITEM%r!ATTR.' ${J}='-1' {if APEX$ITEM%selected/}aria-selected="true"{endif/} > <span class="a-ComboSelect-icon a-Icon &APEX$ITEM%i!ATTR." aria-hidden="true"></span> <span class="a-ComboSelect-label">&APEX$ITEM%d.</span></li>`:n.hasGroups&&(Tt=`<li id='&APEX$ITEM%id!ATTR.' data-index="&APEX$I!ATTR." role="option" class="{if APEX$ITEM%g/}a-ComboSelect-itemGroup{else/}a-ComboSelect-item{endif/}" data-value="&APEX$ITEM%r!ATTR." ${J}="-1" {if APEX$ITEM%selected/}aria-selected="true"{endif/}><span class="a-ComboSelect-label">&APEX$ITEM%d.</span></li>`),be=n.enterable&&!n.multiValued&&!n.expandIcon,n=i.extend({escapeChoices:!0,searchIcon:!1,clearIcon:!1,expandIcon:!1,enterable:!1,multiValued:!1,multiSelect:!1,activeChipMessage:a.getMessage("APEX.CS.ACTIVE_VALUE_CHIP"),useOverflow:!1,hasIcons:!1,hasGroups:!1,itemLabelSelector:".a-ComboSelect-label",asyncLoading:!1,closeOnEmpty:!0,displayValuesAs:"chips",minCharactersSearch:0,containerClasses:"apex-item-comboselect",isDisabled:()=>!0},n),pe="CS_"+i("#pFlowStepId").val()+"_"+n.baseId,ue=_e("#"+t.escapeCSS(pe)),ue.parent().remove(),ge="blur.csPopupTracking"+pe,ve="mousedown.csPopupTracking"+pe,Ce="focus.csPopupTracking"+pe,n.multiValued?De+=",[aria-selected='true']":n.useOverflow=!1,n.containerClasses&&e.addClass(n.containerClasses),ce=e.find("input"),ce.attr({role:"combobox","aria-expanded":"false",autocomplete:"off",autocorrect:"off",autocapitalize:"none",spellcheck:"false","aria-autocomplete":"list"}),n.multiValued||""!==ce[0].value||ce.parent().addClass(_),n.searchIcon&&e.prepend(`<span class="a-Icon icon-search" ${J}="-1" aria-hidden="true"></span>`),n.enterable||n.displayValuesAs!==ae||(fe=i(`<button type="button" class="${N} ${B}" ${Y}="false">0</button>`),e.append(fe)),n.expandIcon){let t=n.expandIcon;!0===t&&(t="icon-popup-lov-under"),n.enterable&&e.append('<span class="a-Chip-divider"></span>
26'),e.append(`<button class="a-Button ${k} js-expand" type="button" ${J}="-1" aria-hidden="true"><span class="a-Icon ${t}"></span></button>`)}if(n.onOpen||(e.append('<div class="u-vh js-results-description" aria-live="polite"></div>'),se=e.children().last()),"function"==typeof n.choices)xe=!0;else if(null!=n.choices&&!Array.isArray(n.choices)){let e=i(n.choices).children(),t=[];e.each((function(){let e=i(this),a=e.attr(F),n=e.attr("data-selected"),l={r:a,d:e.text()};n&&"true"===n.toLowerCase()&&(l.selected=!0),t.push(l)})),e.parent().remove(),n.choices=t}if(Array.isArray(n.choices)&&(n.choices.forEach((e=>{e.lc=t.stripHTML(e.d.toLowerCase())})),Ae=i(Ne(n.choices))),n.multiValued){let a=!1,l=null;if(n.enterable||n.displayValuesAs!==ae||e.addClass("apex-item-comboselect--separated"),ce.val(""),o=e.find("ul").first(),o[0]||(o=i("<ul>"),e.prepend(o)),o.addClass("a-Chips a-Chips--applied"+(n.useOverflow?"":" a-Chips--wrap")).attr("role","presentation").children().each((function(e){let n,o=i(this);o.has("input")[0]?(a=!0,o.addClass(`${g} ${b} ${_}`)):(o.has("span")[0]||(n=o.text(),o.html(`<span class="a-Chip-text"><span class="a-Chip-value">${t.escapeHTML(n)}</span></span>`)),o.append(le).addClass(g+" "+E),o.attr(F)||o.attr(F,""+(e+1)),l=o)})),n.useOverflow){let e=i(`<li class="${g} ${A}"><span class="a-Chip-text"><span class="a-Chip-value"></span></span></li>`);l?l.after(e):o.prepend(e)}a||(o.append(`<li class="${g} ${b} ${_}"></li>`),o.find(`.${b}`).append(ce)),o.after(`<div class="u-vh js-active-description"></div><div id="${n.baseId}_desc" class="apex-item-comboselect-display"></div>`),s=o.next(),oe=s.next(),ce.attr("aria-describedby",n.baseId+"_desc"),it()}return n.clearIcon&&ce.after('<span class="a-Chip-clear js-clearInput" ><span class="a-Icon icon-multi-remove" aria-hidden="true"></span></span>
26'),l.options=n,l.getValue=rt,l.destroy=function(){ue&&ue.popup("destroy")},n.multiValued?(l.addValueChip=ot,l.removeValueChip=st,l.activate=function(e){o.children(I).removeClass(S),o.children(T).each((function(){let t=!1,a=i(this);if(a.attr(F)===e)return t=ut(t,a),t&&ce.trigger("focus"),!1}))},l.updatedValueChip=function(){it()},l.editValue=function(e,t=e){st(e),ce.val(t)[0].select()},l.isShowingSelectedOnly=function(){return fe&&fe.hasClass(S)},de=ce.attr("placeholder"),"rtl"===o.css("direction")&&(we=37,Ve=39),ht()):(l.setValue=ct,l.setEmpty=function(){ce.parent().toggleClass(_,""===ce.val())}),e.on(p,(function(t){let a=!0,l=i(t.target),s=l.closest(".js-removeChip"),r=l.closest(".js-clearInput"),c=l.closest(P),u=l.closest(T);n.isDisabled()||(c[0]?o.addClass("a-Chips--wrap"):s[0]?ft(u):r[0]?dt(n.multiValued):u[0]&&(o.children(I).removeClass(S),a=ut(!0,u),ce.val("")),a&&(t.detail||void 0===t.detail)&&setTimeout((()=>{(!n.enterable&&n.multiValued&&(!e[0].contains(document.activeElement)||e[0].contains(document.activeElement)&&fe&&document.activeElement!==ce[0])||n.enterable||!n.multiValued)&&ce.trigger("focus")}),0))})).on(d,(function(t){let a=i(t.target),l=a.closest(".js-clearInput"),o=a.closest(T+","+P),s=a.closest(j),r=a.closest(z).length>0,c=!1;if(e.has(i(document.activeElement)).length&&o[0]&&(Oe=!0),0===t.button&&(!n.enterable&&n.multiValued?e[0].contains(document.activeElement)||t.target===ce[0]?e[0].contains(document.activeElement)&&t.target!==ce[0]&&(c=!0):c=!0:t.target!==ce[0]&&(c=!0)),c&&t.preventDefault(),1&((t=t.originalEvent||t).buttons||1)){let t=ce.val();Me||o[0]||l[0]||r?r?(e[0].contains(document.activeElement)||ce.trigger("focus"),at()):Me&&!n.enterable&&n.multiValued&&s.length&&qe():(Re||n.enterable||n.multiValued||(t=""),t.length>=n.minCharactersSearch&&(xe&&!n.asyncLoading?Ue(t):Ke()))}})).on(h,(function(t){o&&o.removeClass($).children(I).removeClass(S),n.enterable&&!be&&(!ce.val()&&(n.multiValued||ce.val())||Oe||mt(!1)),Oe||(n.enterable||(n.multiValued?ce.val(""):(""!==ce.val()&&me?ce.val(me.displayValue):(""===ce.val()||""!==ce.val()&&!me)&&n.setValue(void 0,void 0,!1),He=!0,Re=!1)),e.trigger(i.Event("comboSelectFocusOut"))),n.enterable||!n.multiValued||e[0].contains(t.originalEvent.relatedTarget)||(fe&&(fe.removeAttr(J,"0"),ce.removeAttr(J)),qe()),Se=!1,Oe=!1})),fe&&fe.on(f,(function(e){const t=e.which;let a,n;if(ue.length&&(a=ue.find(`${R}${w}`),n=a&&a.length),t===r||32===t)n&&Me?Ge(a):at();else if(27===t)Me&&(e.preventDefault(),e.stopPropagation()),n&&Me&&ce.trigger(m),qe();else if(t===u||t===c)nt(e,t),a=ue.find(`${R}${w}`),a&&a.length&&Me&&ce.trigger(m);else if(9===t){let t=!1;a&&a.length&&Me?e.altKey&&(ce.attr(J,"-1"),t=!0):e.shiftKey||(t=!0),t&&qe()}})),ce.on(m,(function(){if(o&&o.addClass($),n.enterable||$e||($e=rt()),(be||!n.enterable&&!n.multiValued)&&He&&(me=be?ce.val():rt(),He=!1),n.displayValuesAs===ae){const t=e.find(`.${C} .${E}`).last();t.length&&Ct(t,ie)}})).on(f,(function(e){let t,a=e.which,l=!1,d=ue.find(v).hasClass(X)&&Me;if(ue.length&&(t=ue.find(`${R}${w}`)),n.multiValued){let t=!1,n=o.children(I);if(""===ce.val()){if(46===a||8===a)e.target!==ce[0]||8!==a||n[0]||Je(),n[0]&&ft(n),t=!0;else if(a===Ve){if(n[0]){let e=n.prevAll().filter(H);e[0]&&(n.removeClass(S),Qe(e.first(),ne))}else Je();t=!0}else if(a===we){if(n[0]){let e=n.nextAll().filter(H);e[0]&&(n.removeClass(S),n=e.first(),n.hasClass(b)?s.attr("aria-live","off").text(""):Qe(n,ie))}t=!0}else a!==r&&32!==a||n[0]&&(n.hasClass(A)?o.addClass("a-Chips--wrap"):a===r&&ut(!0,n),t=!0);if(t)return void e.preventDefault()}else n&&""!==ce.val()&&n.removeClass(S)}if(a!==u&&a!==c||d)if(a===r){if(!n.onOpen){let a=i();ue.length&&(a=ue.find(`${R}${L}`)),(t&&t.length||a.length)&&Me?(Ge(t.length?t:a),n.multiValued||ce.parent().removeClass(_)):!be&&ce.val()&&n.multiValued&&n.enterable?(mt(),bt(!0),qe(),e.stopPropagation(),e.stopImmediatePropagation()):be&&(n.onOpen||!Me||!n.onOpen&&Me)&&Et(me,ce.val(),!0)}e.preventDefault()}else if(27===a)Me&&(e.preventDefault(),e.stopPropagation()),qe();else if(9===a){let a=i();if(ue.length&&(a=ue.find(`${R}${L}`)),n.enterable&&n.multiValued&&ce.val()&&mt(),fe){let a=!1;t&&t.length&&Me?(fe.attr(J,"-1"),a=!0):e.shiftKey?a=!0:fe.is(":visible")||(a=!0),a&&qe()}n.multiValued||n.onOpen||!Me||!t.length&&!a.length?fe||qe():(Ge(t.length?t:a),ce.parent().removeClass(_))}else n.enterable||(l=je(a,e.ctrlKey,e.metaKey),l&&(Se=!0));else nt(e,a)})).on("keyup",(function(e){let t=e.which,a=je(t,e.ctrlKey,e.metaKey),i=!0,l=n;if(n.multiValued&&32===t){let e=o.children(I);e[0]&&!e.hasClass(A)&&(i=!1,ut(!0,e))}
26l.multiValueSeparator&&l.multiValueSeparator.includes(e.key)&&(i=!1),xe&&a&&i&&bt()})).on("input",(function(e){const t=n;if(!e.apexData||e.apexData&&e.apexData.action!==ee){let e=!0,a=""===ce[0].value;if(!a&&t.multiValued&&o.children(I).removeClass(S),t.autoTagCreation&&t.multiValued){const n=t.autoTagCreation(ce.val());n&&(n.forEach((e=>{vt(e,e)})),n.length&&(qe(),bt(!0)),e=!1,ce.val(""),a=!0)}ce.parent().toggleClass(_,a),xe&&e&&bt()}})).on(h,(function(){be&&(Et(me,ce.val()),He=!0)})).on("change",(function(e){be&&(Xe?Xe=!1:e.stopPropagation())})),l};const oe=["constructor","widget","option"],se=["create"];e.makeInterfaceFromWidget=function(e,t,a,n=[],i=[]){let l=t[a]("instance"),o=l.options;function s(e,t){l.option(e,t)}for(let t in l)if("function"==typeof l[t]&&"_"!==t[0]&&!n.includes(t)&&!oe.includes(t)){if("refresh"!==t&&"focus"!==t&&void 0!==e[t])throw new Error(`Can't overwrite method '${t}'`);e[t]=l[t].bind(l)}for(let t in o)if(!i.includes(t)&&!se.includes(t)){if(void 0!==e[t])throw new Error(`Can't overwrite property '${t}'`);Object.defineProperty(e,t,{enumerable:!0,get:()=>{return e=t,l.option(e);var e},set:e=>{s(t,e)}})}return e.widget=function(){return t},e},e.cascadingLov=function(e,t,a,n){var l=i(e,apex.gPageContext$),o=l[0]?l[0].id:"lov",r=s({optimizeRefresh:!0,queue:{name:o,action:"replace"}},n),c=!1;return r.refreshObject||(r.refreshObject=l),r.loadingIndicator||(r.loadingIndicator=l),r.optimizeRefresh&&(i(r.dependingO
26n,apex.gPageContext$).each((function(){if(apex.item(this).isEmpty())return c=!0,!1})),c)?(r.refreshObject.trigger("apexbeforerefresh"),"function"==typeof r.clear&&r.clear(),l.trigger("change"),void r.refreshObject.trigger("apexafterrefresh")):(a.pageItems=i(a.pageItems,apex.gPageContext$).add(r.dependingOn),apex.server.plugin(t,a,r))},e.openPopupLov=function(e,n,d,p,h){var f,m,g,v,C,E,b,T,y,x=t.getTopApex().jQuery,A=null,P=p.isPopup||!1,S=a.getMessage("APEX.POPUP_LOV.NO_RESULTS"),I=null,$=p.incrementalSearch,w=p.initialSearch||"",V=i("#"+t.escapeCSS(p.itemId)),_="PopupLov_"+i("#pFlowStepId").val()+"_"+p.itemId,M=_+"_dlg",L=null;function D(){g.resize()}function X(e,a,n,i){let l,o=!1,s=!1,r=f.getOption("fetchData");e.forceRefresh&&(o=!0,"none"!==p.initialFetch||e.typeAhead&&$||(s=!0),r.search=null,e.forceRefresh=!1),null!==a&&a!==r.search&&(r.search=a,o=!0),n&&i&&(n!==r.sortColumn||i!==r.sortDirection)&&(r.sortColumn=n,r.sortDirection=i,o=!0),o&&(l=t.escapeRegExp(r.search).replace(/[_%]/g,(function(e){return"[^<>&]"+("%"===e?"*":"")})),g.options.highlighterContext={term:r.search,re:new RegExp("([<>&;])|("+l+")","ig")},I?a.length>=p.minSearchChars&&!s&&!e.typeAhead?(g._setOption("noDataMessage",S),f.clearData()):(g._setOption("noDataMessage",I),f.setData([]),r.search=null):e.typeAhead&&!$?(f.setData([]),r.search=null):f.clearData(),e.typeAhead=!1)}function H(){y.setItem("state",JSON.stringify(A))}if(p.persistState&&function(){var e;if(y=apex.storage.getScopedSessionStorage({prefix:"ORA_WWV_apex."+_,usePageId:!0,useAppId:!0}),A={},"grid"===p.display&&(A.columnWidths={}),e=y.getItem("state"))try{e=JSON.parse(e),P||(A.width=parseInt(e.width,10)||p.width,A.height=parseInt(e.height,10)||p.height),e.sortDirection&&/^(asc|desc)$/.test(e.sortDirection)&&(A.sortDirection=e.sortDirection),p.columns[e.sortColumn]&&(A.sortColumn=e.sortColumn);for(let[t,a]of Object.entries(e.columnWidths))a=parseInt(a,10),a&&(A.columnWidths[t]=a)}catch(e){}}(),T=function(){return"<div class='a-PopupLOV-dialog'></div>"},V.data("popupSearchState",{forceRefresh:e,typeAhead:d,searchText:n}),!x("#"+t.escapeCSS(M))[0]&&A){if(p.width=A.width||p.width,p.height=A.height||p.height,A.sortColumn&&A.sortDirection)for(const[e,t]of Object.entries(p.columns))e===A.sortColumn&&t.canSort?(t.sortIndex=1,t.sortDirection=A.sortDirection):(delete t.sortIndex,delete t.sortDirection);if(A.columnWidths)for(const[e,t]of o(A.columnWidths))p.columns[e]&&(p.columns[e].width=t)}v={id:M,title:p.title||a.getMessage("APEX.POPUP_LOV.TITLE"),isPopup:P,parentElement:P?V.closest(".apex-item-group--popup-lov"):null,returnFocusTo:V[0],noOverlay:!0,draggable:!0,resizable:!0,width:200,height:p.height,okButton:!1,dialogClass:"ui-dialog-popuplov",notification:!1,callback:function(){var e,t,a,n="setValue",i=apex.item(p.itemId);if(p.multiple&&(n="addValue"),L&&("object"==typeof L&&l(L,"d")&&l(L,"v")?i[n](L.v,L.d):"object"==typeof L&&l(L,"v")?i[n](L.v):i[n](L),!p.multiple&&(e=p.extraOut)))for(const[n,i]of o(e))a=null,null!==(t=L[n])&&"object"==typeof t&&l(t,"d")&&(a=(t=t.v).d),$s(i.item,t,a);g.setSelectedRecords([],!1),h&&h(L)},init:function(l){var o,h,v,T,y,M,D,R,k=null,j=null,N=_+"_m",z=l.is(":data(apexPopup)")?"popup":"dialog",B=a.getMessage("APEX.POPUP.SEARCH"),F={forceRefresh:e,typeAhead:d,searchText:w||n},U=t.htmlBuilder();function W(e){return e.match(/^[A-Z0-9_$#]+$/)?"&"+e+".":'&"'+e+'".'}function G(){var e=g.getSelectedRecords()[0];e&&(L={v:f.getValue(e,p.valueColumn)},p.hasDisplayValue&&p.displayColumn&&(L.d=f.getValue(e,p.displayColumn)),p.extraOut&&Object.keys(p.extraOut).forEach((function(t){L[t]=f.getValue(e,t)})),l[z]("close"))}function Y(e,t,a){let n=null;return!e.term||a&&!1===a.canSearch?t:t.replace(e.re,(function(e,t,a){if(t){switch(t){case"<":n=t;break;case">":"<"===n&&(n=null);break;case"&":n||(n=t);break;case";":"&"===n&&(n=null)}return t}return n||!a.length?a:"<span class='popup-lov-highlight'>"+a+"</span>"}))}V.data("popupSearchState",F),U.markup("<div><div").attr("class","a-PopupLOV-searchBar"+($?" a-PopupLOV--incremental":"")).markup(`><input type='text' ${Z}='${B}' maxlength='100' class='a-PopupLOV-search apex-item-text'`).attr("value",w).markup(">"),$||U.markup(`<button type='button' class='a-Button a-PopupLOV-doSearch' ${Z}='${B}'>`),U.markup("<span class='a-Icon icon-search' aria-hidden='true'></span>"),$||U.markup("</button>"),U.markup("</div>"),p.nullDisplayValue&&U.markup("<div class='a-PopupLOV-clear'><button class='a-PopupLOV-clearButton' type='button'>").content(p.nullDisplayValue).markup("</button></div>"),U.markup("<div class='a-PopupLOV-results'></div></div></div>"),D=i(U.toString()),m=D.find(".a-PopupLOV-results"),C=D.find(".a-PopupLOV-searchBar"),E=C.find(".a-PopupLOV-search"),R=C.find(".a-PopupLOV-doSearch"),b=D.find(".a-PopupLOV-clearButton");for(const[e,t]of Object.entries(p.columns))if(t.sortIndex){k=e,j=t.sortDirection;break}if(f=apex.model.create(N,{shape:"table",hasTotalRecords:!1,recordIsArray:!0,identityField:p.valueColumn,metaField:p.columns._meta?"_meta":null,fields:p.columns,paginationType:"progressive",regionId:p.itemId,fetchData:{search:null,sortColumn:k,sortDirection:j},requestOptions:p.pluginTarget?{target:p.pluginTarget}:null,ajaxIdentifier:p.ajaxIdentifier,pageItemsToSubmit:p.itemsToSubmit},[],0,!1),V.data("popupLovModelName",N),y=p.displayColumn||p.valueColumn,"grid"===p.display)p.columns[y].usedAsRowHeader=!0,p.iconColumn&&(T="<span class='"+W(p.iconColumn)+"'></span> "+W(y),p.columns[y].cellTemplate=T),o=s({modelName:N,columns:[p.columns],columnSort:!0,columnSortMultiple:!1,collapsibleControlBreaks:!1,footer:!1,hasSize:!0,noDataMessage:S,multiple:!1,pagination:{scroll:!0,loadMore:!0},constrainNavigation:!1,reorderColumns:!1,resizeColumns:!0,highlighter:Y,activateCell:function(e){var t=i(e.target).closest(".a-GV-cell");"keydown"===e.type&&e.which!==r||t.hasClass("a-GV-selHeader")||t.hasClass("has-button")||G()},selectionChange:function(e){e.originalEvent&&"click"===e.originalEvent.type&&G()},sortChange:function(e,t){var a,n,i,l=t.column.sortIndex,o=v.grid("getColumns");for(i=1,a=0;a<o.length;a++)(n=o[a]).sortIndex&&("change"===t.action?n===t.column&&(i=n.sortIndex):"add"===t.action?n.sortIndex>=i&&(i=n.sortIndex+1):"remove"===t.action?n===t.column?(delete n.sortIndex,delete n.sortDirection):n.sortIndex>l&&(n.sortIndex-=1):"clear"!==t.action&&"set"!==t.action||(delete n.sortIndex,delete n.sortDirection));"clear"!==t.action&&"remove"!==t.action&&(t.column.sortIndex=i,t.column.sortDirection=t.direction),v.grid("refreshColumns"),X(F,null,t.column.property,t.direction),A&&(A.sortColumn=t.column.property,A.sortDirection=t.direction,H())},columnResize:function(e,t){A&&(A.columnWidths[t.column.property]=parseInt(t.width,10),H())}},p.defaultGridOptions),(v=m).grid(o),g=v.data("apex-grid"),v.on("click",(function(e){i(e.target).closest(".a-GV-row").hasClass(O)&&G()}));else{if("list"!==p.display)throw new Error("Invalid display value");(T=p.recordTemplate)?T=T.replace("&DISPLAY.","&"+y+".").replace("&ICON.","&"+p.iconColumn+".").replace("&RETURN.","&"+p.valueColumn+"."):(T="<li data-id='"+W(p.valueColumn)+"'>",p.iconColumn&&(T+="<span class='"+W(p.iconColumn)+"'></span> "),T+=W(y)+"</li>"),h=s({modelName:N,recordTemplate:T,footer:!1,hasSize:!0,noDataMessage:S,highlighter:Y,useIconList:!0,constrainNavigation:!1,iconListOptions:{navigation:!0,multiple:!1,activate:function(e){G(),e.preventDefault()}},pagination:{scroll:!0,loadMore:!0}},p.defaultIconListOptions),m.tableModelView(h),g=m.data("apex-tableModelView")}l.append(D.children()),p.minSearchChars>0&&(I=a.formatMessage("APEX.POPUP_LOV.FILTER_REQ",p.minSearchChars)),I||"none"!==p.initialFetch||(I=a.getMessage("APEX.POPUP_LOV.INITIAL_FILTER_REQ")),$&&(M=t.debounce((function(){X(F,E.val())}),400)),m.keydown((function(e){var t=e.which;e.isDefaultPrevented()||(t===u?x(E).trigger("focus"):t===c&&(b[0]?b.add(E).last(
26).trigger("focus"):(x(E).trigger("focus"),e.preventDefault())))})).focusin((function(){var e=g.getSelection();0===e.length&&(e=i(m[0].ownerDocument.activeElement).closest(".a-IconList-item,.a-GV-row"))[0]&&g.setSelection(e)})),E.keydown((function(e){var t,a=e.which;a===u?(b[0]?b.trigger("focus"):g.focus(),e.preventDefault()):a===c?(g.focus(),e.preventDefault()):9===a&&$?1===f.getTotalRecords()&&(v?v.grid("setSelection",v.find(".a-GV-cell").eq(0)):g.focus(),G(),e.preventDefault(),e.stopPropagation()):a===r?(e.preventDefault(),$&&p.enterable&&P&&E.val()?(L={v:E.val()},l[z]("close")):$&&!p.enterable&&1===f.getTotalRecords()?(t=null,f.forEach((function(e){t=e})),t&&(g.setSelectedRecords([t]),G())):X(F,E.val())):$&&M()})),R.on("click",(function(){X(F,E.val())})),b.on("click",(function(){L={v:p.nullValue,d:p.nullDisplayValue},p.extraOut&&Object.keys(p.extraOut).forEach((function(e){L[e]=""})),l[z]("close")})).keydown((function(e){var t=e.which;t===u?(g.focus(),e.preventDefault()):t===c&&(x(E).trigger("focus"),e.preventDefault())})),l.attr("role","application")},open:function(e){var t,a,n,l,o=V.data("popupSearchState"),s=o.searchText||"",r=x(e.target),c=r.is(":data(apexPopup)")?"popup":"dialog";p.width||(t=V.closest(".apex-item-group--popup-lov").width()),P&&(n=i(window).width()-10,l=i(window).height()-10,(p.width||t)>n&&(t=n),p.height>l&&(a=l)),t&&r[c]("option","width",t),a&&r[c]("option","height",a),D(e.target),L=null,(s||o.forceRefresh)&&(E.val(s),X(o,s)),E.trigger("focus")},resize:function(e){D(e.target)},resizeStop:function(e,t){A&&!P&&(A.height=t.size.height,A.width=t.size.width,H())}},["draggable","resizable","width","height","minWidth","minHeight","maxWidth","maxHeight","noOverlay"].forEach((function(e){void 0!==p[e]&&(v[e]=p[e])})),apex.message.showDialog(T,v)};var re=function(e,t){e.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),"label-desc"===t&&e.reverse()};e.chartSortArray=re,e.chartFillGaps=function(e,t,a,n){re(t,a);for(var i=0;i<e.length;i++)t[i]&&t[i].name===e[i].name?t[i].id!==i&&(t[i].id=i):t.splice(i,0,{name:e[i].name,value:n?0:null})},e.enableIcon=function(e,t,a){e.find("img").css({opacity:1,cursor:""}).parent("a").attr("href",t),a&&e.on("click",a)},e.disableIcon=function(e){e.find("img").css({opacity:.5,cursor:"default"}).parent("a").removeAttr("href").off("click")},e.indexOfMatch=function(e,t,a,n){let i,l,o=-1;return n?(i=e,l=t):(i=e.toLowerCase(),l=t.toLowerCase()),"starts-with"===a?o=i.startsWith(l)?0:-1:"contains"===a&&(o=i.indexOf(l)),o},e.highlightSearchTerm=function(a,n,i,l,o){let s;const r=e.indexOfMatch(a,n,i,l);if(n&&r>-1){const e=r+n.length-1,i=a.slice(0,r),l=a.slice(r,e+1),c=a.slice(e+1);s=`${t.escapeHTML(i)}<span class='${o}'>${t.escapeHTML(l)}</span>${t.escapeHTML(c)}`}return s};const ce=[];function ue(e){for(let t=0;t<ce.length;t++)if(ce[t].el===e)return t;return null}e.onVisibilityChange=function(e,t){const a=ue(e),n={el:e,cb:t};null!==a?ce[a]=n:ce.push(n)},e.offVisibilityChange=function(e){const t=ue(e);null!==t&&ce.splice(t,1)},e.isVisible=function(e){let t,a,n=e.is(":visible");return e.closest("div.apex-tabs-region").length>0&&(t=apex.region(e.closest("div.apex-tabs-region").attr("id")).widget(),t&&(a=t.aTabs("getActive").el$,0===e.parents("#"+a.attr("id")).length&&(n=!1))),n},e.whenBecomesVisible=function(t,a){setTimeout((function(){e.isVisible(t)?a(t):e.onVisibilityChange(t[0],(function(n){n&&(a(t),e.offVisibilityChange(t[0]))}))}),0)};const de=e.visibilityChange=function(e,t){const a=i(e),n=ce.slice(0);t=!!t;for(let e=0;e<n.length;e++){const l=n[e],o=i(l.el);t===o.is(H)&&o.closest(a).length&&l.cb(t)}};i(document).on("apexaftershow",(function(e){de(e.target,!0)})).on("apexafterhide",(function(e){de(e.target,!1)}));const pe="apex-resize-sensor";e.onElementResize=function(e,t){var a,n;"string"==typeof e&&(e="#"+e),(n=(a=i(e).first()).data(pe))||(n=new he(a[0]),a.data(pe,n),n.start()),n.addListener(t)},e.offElementResize=function(e,t){var a,n;"string"==typeof e&&(e="#"+e),(n=(a=i(e).first()).data(pe))&&(t?(n.removeListener(t),n.isEmpty()&&(n.stop(),a.removeData(pe))):(n.destroy(),a.removeData(pe)))},e.updateResizeSensors=function(e){"string"==typeof e&&(e="#"+e),i(e).find(".js-resize-sensor").parent().each((function(e,t){var a=i(t).data(pe);null!=a&&a.init(!0)}))};var he=function(e){var a=i.Callbacks(),n=2,l=0,o=null,s=null,r=null,c=null,u=null,d=null,p=null;function h(e){var t=!1;if(null!=c.offsetParent){var a=c.offsetWidth,i=c.offsetHeight;s===a&&r===i||(l=n,v(a,i),t=!0,e&&f(!0))}return t}function f(n){var i=e.offsetWidth,l=e.offsetHeight;a.has()&&(n?(null!==o&&t.cancelInvokeAfterPaint(o),o=t.invokeAfterPaint((function(){o=null,a.fire(i,l)}))):a.fire(i,l))}function m(e){e.stopPropagation(),h(!0)||l>0&&null!=c.offsetParent&&(0==c.scrollLeft||0==c.scrollTop)&&(l--,v(s,r))}function g(){f(!1)}function v(e,t){s=e,r=t;var a=c.firstChild.style,n=1;do{a.width=e+n+"px",a.height=t+n+"px",c.scrollLeft=c.scrollTop=n,n++}while((0==c.scrollTop||0==c.scrollLeft)&&n<=5);u.scrollLeft=e,u.scrollTop=t}this.addListener=function(e){a.add(e)},this.removeListener=function(e){a.remove(e)},this.isEmpty=function(){return!a.has()},this.destroy=function(){a.empty(),this.stop()},this.start=function(){function t(e,t){e.direction="ltr",e.position=t.position="absolute",e.left=e.top=e.right=e.bottom="0",e.overflow="hidden",e.zIndex="-1",e.visibility="hidden",t.left=t.top="0",t.transition="0s"}if(p=m.bind(this),e.attachEvent)d=g.bind(this),e.attachEvent("onresize",d);else{var a=e.childNodes[0];(c=document.createElement("div")).className="js-resize-sensor";var n=document.createElement("div");t(c.style,n.style),c.appendChild(n),a?e.insertBefore(c,a):e.appendChild(c),c.addEventListener("scroll",p,!1),u=document.createElement("div");var i=document.createElement("div");t(u.style,i.style),i.style.width="200%",i.style.height="200%",u.appendChild(i),e.insertBefore(u,c),u.addEventListener("scroll",p,!1),this.init(!1)}},this.stop=function(){null!==o&&(t.cancelInvokeAfterPaint(o),o=null),null!==c?(c.removeEventListener("scroll",p),u.removeEventListener("scroll",p),c.parentNode&&e.removeChild(c),u.parentNode&&e.removeChild(u)):e.detachEvent("onresize",d)},this.init=function(e){var t=h(e);e&&!t&&null!=c.offsetParent&&v(s,r)}};
27/**
28     * @preserve jQuery UI Touch Punch 0.2.3
29     *
30     * Copyright 2011-2014, Dave Furfero
31     * Dual licensed under the MIT or GPL Version 2 licenses.
32     */e.TouchProxy=function(e){this._init(e)},e.TouchProxy.prototype._init=function(e){this._elem=e,this._touchHandled=!1,this._touchMoved=!1,this._touchStartHandler=i.proxy(this._touchStart,this),this._touchEndHandler=i.proxy(this._touchEnd,this),this._touchMoveHandler=i.proxy(this._touchMove,this),this._elem[0]&&(this._elem[0].addEventListener("touchstart",this._touchStartHandler,{passive:!1}),this._elem[0].addEventListener("touchend",this._touchEndHandler,{passive:!1}),this._elem[0].addEventListener("touchmove",this._touchMoveHandler,{passive:!1}),this._elem[0].addEventListener("touchcancel",this._touchEndHandler,{passive:!1}))},e.TouchProxy.prototype._destroy=function(){this._elem&&this._touchStartHandler&&(this._elem[0].removeEventListener("touchstart",this._touchStartHandler),this._elem[0].removeEventListener("touchend",this._touchEndHandler),this._elem[0].removeEventListener("touchmove",this._touchMoveHandler),this._elem[0].removeEventListener("touchcancel",this._touchEndHandler),this._touchStartHandler=void 0,this._touchEndHandler=void 0,this._touchMoveHandler=void 0)},e.TouchProxy.prototype._touchHandler=function(e,t){if(!(e.originalEvent.touches.length>1)){"touchstart"!=e.type&&"touchend"!=e.type&&e.preventDefault();var a=e.originalEvent.changedTouches[0],n=document.createEvent("MouseEvent");n.initMouseEvent(t,!0,!0,window,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(n)}},e.TouchProxy.prototype._touchStart=function(e){this._touchHandled||(this._touchHandled=!0,this._touchMoved=!1,this._touchHandler(e,"mouseover"),this._touchHandler(e,"mousemove"),this._touchHandler(e,"mousedown"))},e.TouchProxy.prototype._touchMove=function(e){this._touchHandled&&(this._touchMoved=!0,this._touchHandler(e,"mousemove"))},e.TouchProxy.prototype._touchEnd=function(e){this._touchHandled&&(this._touchHandler(e,"mouseup"),this._touchHandler(e,"mouseout"),this._touchHandled=!1)},e.TouchProxy._TOUCH_PROXY_KEY="apexTouchProxy",e.TouchProxy.prototype.touchMoved=function(){return this._touchMoved},e.TouchProxy.addTouchListeners=function(t){var a=i(t),n=a.data(e.TouchProxy._TOUCH_PROXY_KEY);return n||(n=new e.TouchProxy(a),a.data(e.TouchProxy._TOUCH_PROXY_KEY,n)),n},e.TouchProxy.removeTouchListeners=function(t){var a=i(t),n=a.data(e.TouchProxy._TOUCH_PROXY_KEY);n&&(n._destroy(),a.removeData(e.TouchProxy._TOUCH_PROXY_KEY))}}(apex.widget.util,apex.util,apex.lang,apex.navigation,apex.jQuery);
33apex.clipboard=function(e,t,n){"use strict";const o=".is-disabled, .js-no-select",a="apexCBMDummySelection",c=document.execCommand&&document.queryCommandSupported;let i=[];const d="click";function r(e){const t=e.originalEvent,o=n(document.activeElement),a=t.clipboardData||window.clipboardData;if(!a)return;const c={dt:a,setData:function(e,t){(window.clipboardData||/Edge\/\d./i.test(navigator.userAgent))&&("text/plain"===e&&(e="text"),"text"!==e)||this.dt.setData(e,t)}};for(let t=0;t<i.length;t++){const n=i[t];if(o.closest(n.element).length>0){n.handler(c)&&e.preventDefault();break}}}function l(){const e=document.activeElement;if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)return;window.getSelection().removeAllRanges();let t=document.createRange();t.selectNode(n("#"+a)[0]),window.getSelection().addRange(t),n(e).trigger("focus")}const s={isSupported:function(){return c&&document.queryCommandSupported("copy")},copy:function(o){let a=!1,c="APEX.CLIPBOARD.NOTSUP";return o=o||{},this.isSupported()&&(l(),a=document.execCommand("copy")),a||(o.noWarn||t.loadMessagesIfNeeded([c],(function(){apex.message.alert(t.getMessage(c))})),e.warn("Browser does not support clipboard copy command.")),a&&o.tooltipElement&&n(o.tooltipElement).tooltip({content:t.getMessage("APEX.CLIPBOARD.COPIED"),close:function(){n(this).tooltip("destroy")}}),a},addElement:function(e,t){const o=this,a=n(e);-1===a.prop("tabIndex")&&a.prop("tabIndex",0),apex.clipboard.addHandler(a[0],(function(e){return e.setData("text/plain",(a.text()||a.val()).replace(/\n/g,"\r\n")),!0})),t&&n(t).on(d,(function(){a.trigger("focus"),o.copy({tooltipElement:t}),n(this).trigger("focus")}))},addText:function(e,t){const o=this,a=n(t);apex.clipboard.addHandler(a[0],(function(t){return t.setData("text/plain",e),!0})),n(t).on(d,(function(){o.copy({tooltipElement:t}),n(this).trigger("focus")}))},addHandler:function(e,t){0===i.length&&(n(document).on("copy.cbManager",r),n(document.body).append("<input id='"+a+"' class='u-hidden' value='x'>
33")),n(e).on("keydown.cbManager",(function(e){n(this).is(o)||((e.metaKey||e.ctrlKey)&&67===e.which||e.shiftKey&&121===e.which)&&l()})).on("contextmenu.cbManager",(function(){n(this).is(o)||l()})),i.push({element:e,handler:t})},removeHandler:function(e){for(let t=0;t<i.length;t++)if(i[t].element===e){i.splice(t,1);break}n(e).off(".cbManager"),0===i.length&&(n(document).off(".cbManager"),n("#"+a).remove())}};return n((function(){n("[data-clipboard-source]",apex.gPageContext$).each((function(){const e=n(this),t=e.attr("data-clipboard-source");"#"===t.substring(0,1)?s.addElement(n(t)[0],e[0]):s.addText(t,e[0])}))})),s}(apex.debug,apex.lang,apex.jQuery);
34apex.da={},function(e,t,n,i,a){"use strict";function r(t,n,i,a){let r;return r=!t||("JAVASCRIPT_EXPRESSION"===t?i.call(a):e.testCondition(n,t,i)),r}e.gEventList=[],e.gCancelActions=!1,e.init=function(){e.gEventList.forEach((function(n){const a=t.extend({name:null,bindDelegateTo:null,isIGRegion:!1},n),r=e.constructSelector({elementType:a.triggeringElementType,element:a.triggeringElement,regionId:a.triggeringRegionId,buttonId:a.triggeringButtonId});let o,l;if(-1===t.inArray(a.bindEventType,["ready","pageinit"])){switch(l=function(t,n){e.actions(this,a,t,n)},"DEBOUNCE"===a.executionType?l=i.debounce(l,a.executionTime,a.executionImmediate):"THROTTLE"===a.executionType&&(l=i.throttle(l,a.executionTime,a.executionImmediate)),a.bindType){case"bind":t(r,apex.gPageContext$).on(a.bindEventType,l);break;case"live":o=a.bindDelegateTo?t(a.bindDelegateTo,apex.gPageContext$):apex.gPageContext$,o.on(a.bindEventType,r,l);break;case"one":t(r,apex.gPageContext$).one(a.bindEventType,(function(t,n){e.actions(this,a,t,n)}))}a.anyActionsFireOnInit&&(a.isIGRegion?t("#"+i.escapeCSS(a.triggeringRegionId),apex.gPageContext$).on("apexbeginrecordedit",(function(t,n){e.actions(r,a,t,n)})):e.actions(r,a,"load"))}else e.actions(r,a,"load")}))},e.constructSelector=function(e){let n,a,r;switch(n={elementType:null,element:null,regionId:null,buttonId:null,triggeringElement:null,eventTarget:null},a=t.extend(n,e),a.elementType){case"ITEM":case"COLUMN":r=function(e){const n=e.split(",");return"#"+t.map(n,(function(e){return i.escapeCSS(e)})).join(",#")}(a.element);break;case"REGION":r="#"+i.escapeCSS(a.regionId);break;case"BUTTON":r="#"+i.escapeCSS(a.buttonId);break;
34case"JAVASCRIPT_EXPRESSION":r=a.element();break;case"DOM_OBJECT":throw new Error("Dynamic Action type DOM_OBJECT is desupported");case"JQUERY_SELECTOR":r=a.element;break;case"TRIGGERING_ELEMENT":r=a.triggeringElement;break;case"EVENT_SOURCE":r=a.eventTarget;break;default:r=apex.gPageContext$}return"#"===r&&(r=void 0),r},e.actions=function(i,a,o,l){n.gCancelFlag=!1,e.gCancelActions=!1,t(i,apex.gPageContext$).each((function(){const t={triggeringElement:this,browserEvent:o,data:l},n=r(a.triggeringConditionType,a.conditionElement,a.triggeringConditionExpression,t);e.doActions(a,0,n,t),e.gCancelActions=!1}))},e.doActions=function(n,i,a,o){const l=n.actionList.length;for(let c=i;c<l;c++){let i,l;if(e.gCancelActions)return!1;const s={name:null,eventResult:null,conditionElement:null,conditionType:null,conditionExpression:null,executeOnPageInit:!1,stopExecutionOnError:!0,action:null,affectedElementsType:null,affectedRegionId:null,affectedElements:null,javascriptFunction:null,ajaxIdentifier:null,attribute01:null,attribute02:null,attribute03:null,attribute04:null,attribute05:null,attribute06:null,attribute07:null,attribute08:null,attribute09:null,attribute10:null,attribute11:null,attribute12:null,attribute13:null,attribute14:null,attribute15:null},u=t.extend(s,n.actionList[c]);if("NATIVE_ALERT"!==u.action&&"NATIVE_CONFIRM"!==u.action&&"NATIVE_OPEN_AI_ASSISTANT"!==u.action||(u.waitForResult=!0),("load"!==o.browserEvent||"load"===o.browserEvent&&(u.executeOnPageInit||-1!==t.inArray(n.bindEventType,["ready","pageinit"])))&&u.eventResult===a&&r(u.conditionType,u.conditionElement,u.conditionExpression,o)&&(i=e.constructSelector({elementType:u.affectedElementsType,element:u.affectedElements,regionId:u.affectedRegionId,buttonId:u.affectedButtonId,triggeringElement:o.triggeringElement,eventTarget:o.browserEvent.target}),u.waitForResult&&(l=function(t){e.gCancelActions=u.stopExecutionOnError&&t,e.doActions(n,c+1,a,o)}),!1===e.doAction(o,i,u,n.name,l)&&u.stopExecutionOnError&&(e.gCancelActions=!0),u.waitForResult))return!1}},e.testCondition=function(e,n,i){const a=apex.item(e),r=a.getValue();let o,l;switch(n){case"EQUALS":if(Array.isArray(r)){o=!1;for(const e of r)if(o=e===i,o)break}else o=r===i;break;case"NOT_EQUALS":if(Array.isArray(r)){o=!0;for(const e of r)if(o=e!==i,!o)break}else o=r!==i;break;case"IN_LIST":if(l=i.split(","),Array.isArray(r)){o=!1;for(const e of r)if(o=-1!==t.inArray(e,l),o)break}else o=-1!==t.inArray(r,l);break;case"NOT_IN_LIST":if(l=i.split(","),Array.isArray(r)){o=!0;for(const e of r)if(o=-1===t.inArray(e,l),!o)break}else o=-1===t.inArray(r,l);break;case"GREATER_THAN":if(Array.isArray(r)){o=!0;for(const e of r)if(o=e>parseFloat(i),!o)break}else o=r>parseFloat(i);break;case"GREATER_THAN_OR_EQUAL":if(Array.isArray(r)){o=!0;for(const e of r)if(o=e>=parseFloat(i),!o)break}else o=r>=parseFloat(i);break;case"LESS_THAN":if(Array.isArray(r)){o=!0;for(const e of r)if(o=e<parseFloat(i),!o)break}else o=r<parseFloat(i);break;case"LESS_THAN_OR_EQUAL":if(Array.isArray(r)){o=!0;for(const e of r)if(o=e<=parseFloat(i),!o)break}else o=r<=parseFloat(i);break;case"NULL":o=a.isEmpty();break;case"NOT_NULL":o=!a.isEmpty();break;default:o=!0}return o},e.doAction=function(e,n,i,a,r){const o={triggeringElement:e.triggeringElement,affectedElements:t(n,apex.gPageContext$),action:i,browserEvent:e.browserEvent,data:e.data,resumeCallback:r};if(i.javascriptFunction)return apex.debug.info(`Dynamic Action Fired: ${a} - ${i.name?i.name+" ("+i.action+")":i.action}`,o),i.javascriptFunction.call(o)},e.resume=function(e,t){"function"==typeof e&&e(t)},e.cancel=function(){apex.event.gCancelFlag=!0,e.gCancelActions=!0},e.handleAjaxErrors=function(t,n,i,r){let o;if(0!==t.status)return o="APEX"===n?i:"Error: "+n+" - "+i,void a.alert(o,(function(){e.resume(r,!0)}));e.resume(r,!0)}}(apex.da,apex.jQuery,apex.event,apex.util,apex.message);
35!function(t,e,a,i,n,s,l,u){"use strict";t.show=function(){var t;this.affectedElements&&(t="Y"===this.action.attribute01,this.affectedElements.each((function(){a(this).show(t)})))},t.hide=function(){var t;this.affectedElements&&(t="Y"===this.action.attribute01,this.affectedElements.each((function(){a(this).hide(t)})))},t.enable=function(){this.affectedElements&&this.affectedElements.each((function(){a(this).enable()}))},t.disable=function(){this.affectedElements&&this.affectedElements.each((function(){a(this).disable()}))},t.setValue=function(){var a=this.action,i=a.attribute01,n=a.attribute02,s=a.attribute04,l=a.attribute05,u="Y"===a.attribute09,c=a.attribute10,r=a.waitForResult&&"sync"===a.attribute11,o=this.affectedElements,f=this.resumeCallback;function h(e){o.each((function(){$s(this,e,null,u)})),t.resume(f,!1)}"STATIC_ASSIGNMENT"===i?h(n):"SQL_STATEMENT"===i||"PLSQL_EXPRESSION"===i||"FUNCTION_BODY"===i?e.plugin(a.ajaxIdentifier,{pageItems:s},{loadingIndicator:o,clear:function(){r||o.each((function(){$s(this,"",null,!0)}))},success:function(e){var n,s;if("SQL_STATEMENT"===i)if("ITEM"===a.affectedElementsType||"COLUMN"===a.affectedElementsType){for(var l=0,c=(n=a.affectedElements.split(",")).length;l<c;l++)s=void 0!==e.values[l]?e.values[l]:"",$s(n[l],s,null,u);t.resume(f,!1)}else h(e.values[0]);else h(e.value)},error:function(e,a,i){t.handleAjaxErrors(e,a,i,f)},async:!r,target:this.browserEvent.target}):"JAVASCRIPT_EXPRESSION"===i?h(l.call(this)):"DIALOG_RETURN_ITEM"===i&&h(this.data[c])},t.executePlSqlCode=function(){var a=this.action,n=a.attribute01,s=a.attribute02,l="Y"===a.attribute04,u=a.waitForResult&&"sync"===a.attribute05,c=this.resumeCallback;e.plugin(a.ajaxIdentifier,{pageItems:n},{dataType:s?"json":"",loadingIndicator:s,clear:function(){u||i(s,apex.gPageContext$).each((function(){$s(this,"",null,!0)}))},success:function(e){var a,i;if(e&&e.item){a=e.item.length,i=e.item;for(var n=0;n<a;n++)$s(i[n].id,i[n].value,null,l)}t.resume(c,!1)},error:function(e,a,i){t.handleAjaxErrors(e,a,i,c)},async:!u,target:this.browserEvent.target})},t.clear=function(){this.affectedElements&&this.affectedElements.each((function(){$s(this,"","")}))},t.addClass=function(){this.affectedElements&&this.affectedElements.addClass(this.action.attribute01)},t.removeClass=function(){this.affectedElements&&(this.action.attribute01?this.affectedElements.removeClass(this.action.attribute01):this.affectedElements.removeClass())},t.setCSS=function(){var t=this.action;this.affectedElements.each((function(){a(this).setStyle(t.attribute01,t.attribute02)}))},t.setFocus=function(){this.affectedElements.each((function(){a(this).setFocus()}))},t.submitPage=function(){var t=this.action,e=t.attribute01,a="Y"===t.attribute02;apex.submit({request:e,showWait:a})},t.refresh=function(){const t="Y"===this.action.attribute01;this.affectedElements&&this.affectedElements.each((function(){var e=this.id;e&&n.isRegion(e)?n(e).refresh(t):a(e).refresh()}))},t.cancelEvent=function(){t.cancel(),this.browserEvent.stopImmediatePropagation(),this.browserEvent.preventDefault()},t.showAlert=function(){var e=this.action,a=this.resumeCallback,i=null!==e.attribute01?l.applyTemplate(e.attribute01):null,n=null!==e.attribute02?l.applyTemplate(e.attribute02):null,u=e.attribute03,c=e.attribute04,r=e.attribute05,o=null!==e.attribute06?l.applyTemplate(e.attribute06):null;s.showDialog(n,{alert:!0,modern:!0,title:i,style:u,dialogClass:"ui-dialog--notification "+(r||""),iconClass:c,okLabel:o,callback:function(){t.resume(a,!1)},unsafe:!1})},t.askConfirm=function(){var e=this.action,a=this.resumeCallback,i=null!==e.attribute01?l.applyTemplate(e.attribute01):null,n=null!==e.attribute02?l.applyTemplate(e.attribute02):null,u=e.attribute03,c=e.attribute04,r=e.attribute05,o=null!==e.attribute06?l.applyTemplate(e.attribute06):null,f=null!==e.attribute07?l.applyTemplate(e.attribute07):null;s.showDialog(n,{confirm:!0,modern:!0,title:i,style:u,dialogClass:"ui-dialog--notification "+(r||""),iconClass:c,okLabel:o,cancelLabel:f,callback:function(e){e?t.resume(a,!1):t.cancel()},unsafe:!1})},t.download=function(){const t=this.action,a="ATTACHMENT"===t.attribute01,i=t.attribute02,n=e.pluginUrl(t.ajaxIdentifier,{pageItems:i});a?u.download(n):document.location=n},t.printReport=function(){const t=this.action,a="ATTACHMENT"===t.attribute01,i=t.attribute02,n=e.pluginUrl(t.ajaxIdentifier,{pageItems:i});a?u.download(n):document.location=n}}(apex.da,apex.server,apex.item,apex.jQuery,apex.region,apex.message,apex.util,apex.navigation);
36apex.session={},function(e,i,s,t,n,o,a){"use strict";var r,m,d,l,c,f,u,_="apex_session_alert_dlg";function E(){o("#"+_).remove()}function S(e,s){var t=o.extend({id:_,confirm:!0},s);return E(),i.showDialog(e,t)}function x(){l&&(clearTimeout(l),n.info("Idle session warning timer cleared. ID="+l)),c&&(clearTimeout(c),n.info("Idle session expired timer cleared. ID="+c))}function g(e){var i=new Date,s=e.life_time_ms/1e3,t=r<s?r:s;return i.setSeconds(i.getSeconds()+t),i.toLocaleTimeString(void 0,{timeStyle:"medium"})}function I(i){x(),E(),l=setTimeout((function(){e.getTimeouts((function(i){n.info("Is session idle time still valid?",i),i.idle_time_ms-1<1e3*r?(n.info("...Yes, show warning."),S(t.formatMessage("APEX.SESSION.ALERT.IDLE_WARN",g(i)),{okLabelKey:"APEX.SESSION.ALERT.EXTEND",callback:function(i){i&&e.getTimeouts((function(e){n.info("Session extended",e),I(e)}),!0)}})):(n.info("...No, reset idle timers to new values."),I(i))}))}),i.idle_time_ms-1e3*r),c=setTimeout((function(){e.getTimeouts((function(e){n.info("Is session idle expired time still valid?",e),0===e.idle_time_ms?(n.info("...Yes, show expired alert."),f&&(clearTimeout(f),n.info("Max session warning timer cleared. ID="+f)),u&&(clearTimeout(u),n.info("Max session expired timer cleared. ID="+u)),S(t.getMe
36ssage("APEX.SESSION.ALERT.EXPIRED"),{okLabelKey:"APEX.SESSION.ALERT.CREATE_NEW",callback:function(e){e&&s.redirect(m)}})):(n.info("...No, reset idle timers to new values."),I(e))}))}),i.idle_time_ms),n.info("Idle session warning timer started for "+(i.idle_time_ms/1e3-r)+" seconds. ID="+l),n.info("Idle session expired timer started for "+i.idle_time_ms/1e3+" seconds. ID="+c)}e.getTimeouts=function(e,i){o.get({url:"apex_session.emit_timeouts?p_app_id="+a.APP_ID+"&p_session_id="+a.APP_SESSION+"&p_reset_idle="+(i?"Y":"N"),dataType:"json",success:e,error:function(e,i,s){n.error("Error occurred when making session.getTimeouts Ajax call.",e,i,s)}})},e.initTimeouts=function(e,i,o,a){var l;m=o,d=a,(r=e)>0&&(r>i.max_idle_time_ms/1e3?n.warn("Invalid metadata state. Session timeout warning time ("+r+" seconds) cannot be greater than the maximum session idle time ("+i.max_idle_time_ms/1e3+" seconds)."):(I(i),l=i,f=setTimeout((function(){n.info("Session max time about to expire, show warning."),x(),S(t.formatMessage("APEX.SESSION.ALERT.MAX_WARN",g(l)),{confirm:!1})}),l.life_time_ms-1e3*r),u=setTimeout((function(){n.info("Session max time expired, show expired alert."),S(t.getMessage("APEX.SESSION.ALERT.EXPIRED"),{okLabelKey:"APEX.SESSION.ALERT.CREATE_NEW",callback:function(e){e&&s.redirect(d)}})}),l.life_time_ms),n.info("Max session warning timer started for "+(l.life_time_ms/1e3-r)+" seconds. ID="+f),n.info("Max session expired timer started for "+l.life_time_ms/1e3+" seconds. ID="+u)))}}(apex.session,apex.message,apex.navigation,apex.lang,apex.debug,apex.jQuery,apex.env);
37/*! jQuery UI - v1.13.2 - 2023-11-17
38* http://jqueryui.com
39* Includes: version.js, unique-id.js, keycode.js, plugin.js, focusable.js, tabbable.js, ie.js, form.js, data.js, widget.js, mouse.js, position.js, disable-selection.js, form-reset-mixin.js, labels.js, scroll-parent.js, safe-active-element.js, safe-blur.js, draggable.js, droppable.js, resizable.js, selectable.js, sortable.js, button.js, checkboxradio.js, controlgroup.js, datepicker.js, dialog.js, tooltip.js
40* Copyright jQuery Foundation and other contributors; Licensed  */
41!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}((function(t){var e;t.ui=t.ui||{},t.ui.version="1.13.2",t.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)&&t(this).removeAttr("id")}))}}),t.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},t.ui.plugin={add:function(e,i,s){var o,n=t.ui[e].prototype;for(o in s)n.plugins[o]=n.plugins[o]||[],n.plugins[o].push([i,s[o]])},call:function(t,e,i,s){var o,n=t.plugins[e];if(n&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<n.length;o++)t.options[n[o][0]]&&n[o][1].apply(t.element,i)}},t.ui.focusable=function(e,i){var s,o,n,a=e.nodeName.toLowerCase();return"area"===a?(n=(s=e.parentNode).name,!(!e.href||!n||"map"!==s.nodeName.toLowerCase())&&0<(s=t("img[usemap='#"+n+"']")).length&&s.is(":visible")):(/^(input|select|textarea|button|object)$/.test(a)?(o=!e.disabled)&&(n=t(e).closest("fieldset")[0])&&(o=!n.disabled):o="a"===a&&e.href||i,o&&t(e).is(":visible")&&function(t){for(var e=t.css("visibility");"inherit"===e;)e=(t=t.parent()).css("visibility");return"visible"===e}(t(e)))},t.extend(t.expr.pseudos,{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}}),t.ui.focusable,t.extend(t.expr.pseudos,{tabbable:function(e){var i=t.attr(e,"tabindex"),s=null!=i;return(!s||0<=i)&&t.ui.focusable(e,s)}}),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)},t.extend(t.expr.pseudos,{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(i){return!!t.data(i,e)}})):function(e,i,s){return!!t.data(e,s[3])}});var i,s,o,n,a,r,l,h,c,p,d,u=0,f=Array.prototype.hasOwnProperty,g=Array.prototype.slice,m=(t.cleanData=(i=t.cleanData,function(e){for(var s,o,n=0;null!=(o=e[n]);n++)(s=t._data(o,"events"))&&s.remove&&t(o).triggerHandler("remove");i(e)}),t.widget=function(e,i,s){var o,n,a,r={},l=e.split(".")[0],h=l+"-"+(e=e.split(".")[1]);return s||(s=i,i=t.Widget),Array.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr.pseudos[h.toLowerCase()]=function(e){return!!t.data(e,h)},t[l]=t[l]||{},o=t[l][e],n=t[l][e]=function(t,e){if(!this||!this._createWidget)return new n(t,e);arguments.length&&this._createWidget(t,e)},t.extend(n,o,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(s,(function(t,e){function s(){return i.prototype[t].apply(this,arguments)}function o(e){return i.prototype[t].apply(this,e)}r[t]="function"!=typeof e?e:function(){var t,i=this._super,n=this._superApply;return this._super=s,this._superApply=o,t=e.apply(this,arguments),this._super=i,this._superApply=n,t}})),n.prototype=t.widget.extend(a,{widgetEventPrefix:o&&a.widgetEventPrefix||e},r,{constructor:n,namespace:l,widgetName:e,widgetFullName:h}),o?(t.each(o._childConstructors,(function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,n,i._proto)})),delete o._childConstructors):i._childConstructors.push(n),t.widget.bridge(e,n),n}
vendor: 4,419 bytes, line 41
41,t.widget.extend=function(e){for(var i,s,o=g.call(arguments,1),n=0,a=o.length;n<a;n++)for(i in o[n])s=o[n][i],f.call(o[n],i)&&void 0!==s&&(t.isPlainObject(s)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],s):t.widget.extend({},s):e[i]=s);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(o){var n="string"==typeof o,a=g.call(arguments,1),r=this;return n?this.length||"instance"!==o?this.each((function(){var i,n=t.data(this,s);return"instance"===o?(r=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,a))!==n&&void 0!==i?(r=i&&i.jquery?r.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):r=void 0:(a.length&&(o=t.widget.extend.apply(null,[o].concat(a))),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))}))),r}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=u++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),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,o,n,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},e=(s=e.split(".")).shift(),s.length){for(o=a[e]=t.widget.extend({},this.options[e]),n=0;n<s.length-1;n++)o[s[n]]=o[s[n]]||{},o=o[s[n]];if(e=s.pop(),1===arguments.length)return void 0===o[e]?null:o[e];o[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){for(var 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,o;for(i in e)o=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&o&&o.length&&(s=t(o.get()),this._removeClass(o,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 o(o,n){for(var a,r=0;r<o.length;r++)a=s.classesElementLookup[o[r]]||t(),a=e.add?(function(){var i=[];e.element.each((function(e,o){t.map(s.classesElementLookup,(function(t){return t})).some((function(t){return t.is(o)}))||i.push(o)})),s._on(t(i),{remove:"_untrackClassesElement"})}(),t(t.uniqueSort(a.get().concat(e.element.get())))):t(a.not(e.element).get()),s.classesElementLookup[o[r]]=a,i.push(o[r]),n&&e.classes[o[r]]&&i.push(e.classes[o[r]])}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,o){-1!==t.inArray(e.target,o)&&(i.classesElementLookup[s]=t(o.not(e.target).get()))})),this._off(t(e.target))}
vendor: 6,008 bytes, line 41
41,_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){var o="string"==typeof t||null===t;return(e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:s="boolean"==typeof s?s:i}).element.toggleClass(this._classes(e),s),this},_on:function(e,i,s){var o,n=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=o=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,o=this.widget()),t.each(s,(function(s,a){function r(){if(e||!0!==n.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?n[a]:a).apply(n,arguments)}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=(s=s.match(/^([\w:-]*)\s*(.*)$/))[1]+n.eventNamespace;(s=s[2])?o.on(l,s,r):i.on(l,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 o,n,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],n=i.originalEvent)for(o in n)o in i||(i[o]=n[o]);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,o,n){var a,r=(o="string"==typeof o?{effect:o}:o)?!0!==o&&"number"!=typeof o&&o.effect||i:e;"number"==typeof(o=o||{})?o={duration:o}:!0===o&&(o={}),a=!t.isEmptyObject(o),o.complete=n,o.delay&&s.delay(o.delay),a&&t.effects&&t.effects.effect[r]?s[e](o):r!==e&&s[r]?s[r](o.duration,o.easing,n):s.queue((function(i){t(this)[e](),n&&n.call(s[0]),i()}))}})),t.widget,!1);function _(t,e,i){return[parseFloat(t[0])*(c.test(t[0])?e/100:1),parseFloat(t[1])*(c.test(t[1])?i/100:1)]}function v(e,i){return parseInt(t.css(e,i),10)||0}function b(t){return null!=t&&t===t.window}function y(t,e,i){return e<=t&&t<e+i}t(document).on("mouseup",(function(){m=!1})),t.widget("ui.mouse",{version:"1.13.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){var i,s,o;if(!m)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),s=1===(this._mouseDownEvent=e).which,o=!("string"!=typeof(i=this).options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length,s&&!o&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){i.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?e.preventDefault():(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),m=!0)),!0},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,m=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),o=Math.max,n=Math.abs,a=/left|center|right/,r=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,h=/^\w+/,c=/%$/,p=t.fn.position,t.position={scrollbarWidth:function(){var e,i,o;return void 0!==s?s:(o=(i=t("<div style='display:block;position:absolute;
41width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],t("body").append(i),e=o.offsetWidth,i.css("overflow","scroll"),e===(o=o.offsetWidth)&&(o=i[0].clientWidth),i.remove(),s=e-o)},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y");i="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:i?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=b(i[0]),o=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:s,isDocument:o,offset:s||o?{left:0,top:0}:t(e).offset(),scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(e){var i,s,c,d,u,f,g,m,y,w,k,D;return e&&e.of?(f="string"==typeof(e=t.extend({},e)).of?t(document).find(e.of):t(e.of),g=t.position.getWithinInfo(e.within),m=t.position.getScrollInfo(g),y=(e.collision||"flip").split(" "),w={},D=9===(D=(k=f)[0]).nodeType?{width:k.width(),height:k.height(),offset:{top:0,left:0}}:b(D)?{width:k.width(),height:k.height(),offset:{top:k.scrollTop(),left:k.scrollLeft()}}:D.preventDefault?{width:0,height:0,offset:{top:D.pageY,left:D.pageX}}:{width:k.outerWidth(),height:k.outerHeight(),offset:k.offset()},f[0].preventDefault&&(e.at="left top"),s=D.width,c=D.height,u=t.extend({},d=D.offset),t.each(["my","at"],(function(){var t,i,s=(e[this]||"").split(" ");(s=1===s.length?a.test(s[0])?s.concat(["center"]):r.test(s[0])?["center"].concat(s):["center","center"]:s)[0]=a.test(s[0])?s[0]:"center",s[1]=r.test(s[1])?s[1]:"center",t=l.exec(s[0]),i=l.exec(s[1]),w[this]=[t?t[0]:0,i?i[0]:0],e[this]=[h.exec(s[0])[0],h.exec(s[1])[0]]})),1===y.length&&(y[1]=y[0]),"right"===e.at[0]?u.left+=s:"center"===e.at[0]&&(u.left+=s/2),"bottom"===e.at[1]?u.top+=c:"center"===e.at[1]&&(u.top+=c/2),i=_(w.at,s,c),u.left+=i[0],u.top+=i[1],this.each((function(){var a,r,l=t(this),h=l.outerWidth(),p=l.outerHeight(),b=v(this,"marginLeft"),k=v(this,"marginTop"),D=h+b+v(this,"marginRight")+m.width,C=p+k+v(this,"marginBottom")+m.height,x=t.extend({},u),P=_(w.my,l.outerWidth(),l.outerHeight());"right"===e.my[0]?x.left-=h:"center"===e.my[0]&&(x.left-=h/2),"bottom"===e.my[1]?x.top-=p:"center"===e.my[1]&&(x.top-=p/2),x.left+=P[0],x.top+=P[1],a={marginLeft:b,marginTop:k},t.each(["left","top"],(function(o,n){t.ui.position[y[o]]&&t.ui.position[y[o]][n](x,{targetWidth:s,targetHeight:c,elemWidth:h,elemHeight:p,collisionPosition:a,collisionWidth:D,collisionHeight:C,offset:[i[0]+P[0],i[1]+P[1]],my:e.my,at:e.at,within:g,elem:l})})),e.using&&(r=function(t){var i=d.left-x.left,a=i+s-h,r=d.top-x.top,u=r+c-p,g={target:{element:f,left:d.left,top:d.top,width:s,height:c},element:{element:l,left:x.left,top:x.top,width:h,height:p},horizontal:a<0?"left":0<i?"right":"center",vertical:u<0?"top":0<r?"bottom":"middle"};s<h&&n(i+a)<s&&(g.horizontal="center"),c<p&&n(r+u)<c&&(g.vertical="middle"),o(n(i),n(a))>o(n(r),n(u))?g.important="horizontal":g.important="vertical",e.using.call(this,t,g)}),l.offset(t.extend(x,{using:r}))}))):p.apply(this,arguments)},t.ui.position={fit:{left:function(t,e){var i,s=(n=e.within).isWindow?n.scrollLeft:n.offset.left,n=n.width,a=t.left-e.collisionPosition.marginLeft,r=s-a,l=a+e.collisionWidth-n-s;e.collisionWidth>n?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-s,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?s+n-e.collisionWidth:s:0<r?t.left+=r:0<l?t.left-=l:t.left=o(t.left-a,t.left)},top:function(t,e){var i,s=(s=e.within).isWindow?s.scrollTop:s.offset.top,n=e.within.height,a=t.top-e.collisionPosition.marginTop,r=s-a,l=a+e.collisionHeight-n-s;e.collisionHeight>n?0<r&&l<=0?(i=t.top+r+e.collisionHeight-n-s,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?s+n-e.collisionHeight:s:0<r?t.top+=r:0<l?t.top-=l:t.top=o(t.to
vendor: 13,957 bytes, line 41
41p-a,t.top)}},flip:{left:function(t,e){var i=(o=e.within).offset.left+o.scrollLeft,s=o.width,o=o.isWindow?o.scrollLeft:o.offset.left,a=(r=t.left-e.collisionPosition.marginLeft)-o,r=r+e.collisionWidth-s-o,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,h="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,c=-2*e.offset[0];a<0?((s=t.left+l+h+c+e.collisionWidth-s-i)<0||s<n(a))&&(t.left+=l+h+c):0<r&&(0<(i=t.left-e.collisionPosition.marginLeft+l+h+c-o)||n(i)<r)&&(t.left+=l+h+c)},top:function(t,e){var i=(o=e.within).offset.top+o.scrollTop,s=o.height,o=o.isWindow?o.scrollTop:o.offset.top,a=(r=t.top-e.collisionPosition.marginTop)-o,r=r+e.collisionHeight-s-o,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,h="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,c=-2*e.offset[1];a<0?((s=t.top+l+h+c+e.collisionHeight-s-i)<0||s<n(a))&&(t.top+=l+h+c):0<r&&(0<(i=t.top-e.collisionPosition.marginTop+l+h+c-o)||n(i)<r)&&(t.top+=l+h+c)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},t.ui.position,t.fn.extend({disableSelection:(d="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(d+".ui-disableSelection",(function(t){t.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}}),t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout((function(){var i=e.data("ui-form-reset-instances");t.each(i,(function(){this.refresh()}))}))},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var e;this.form.length&&((e=this.form.data("ui-form-reset-instances")).splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},t.fn.labels=function(){var e,i,s;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"))&&(s=(s=this.eq(0).parents().last()).add((s.length?s:this).siblings()),e="label[for='"+t.escapeSelector(e)+"']",i=i.add(s.find(e).addBack(e))),this.pushStack(i)):this.pushStack([])},t.fn.scrollParent=function(e){var i=this.css("position"),s="absolute"===i,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/;e=this.parents().filter((function(){var e=t(this);return(!s||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==i&&e.length?e:t(this[0].ownerDocument||document)},t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return(e=e||t.body).nodeName?e:t.body},t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")},t.widget("ui.draggable",t.ui.mouse,{version:"1.13.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||0<t(e.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(e),!this.handle)||(this._blurActiveElement(e),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){if(i=this._uiHash(),!1===this._trigger("drag",e,i))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,s=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(s=t.ui.ddmanager.drop(this,e)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,s)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",e)&&i._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,s="function"==typeof i.helper;return(e=s?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element).parents("body").length||e.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s&&e[0]===this.element[0]&&this._setPositionRelative(),e[0]===this.element[0]||/(fixed|absolute)/.test(e.css("position"))||e.css("position","absolute"),e},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),{top:(e=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:e).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t,e;return"relative"!==this.cssPosition?{top:0,left:0}:(t=this.element.position(),e=this._isRootNode(this.scrollParent[0]),{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())})},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i=this.options,s=this.document[0];this.relativeContainer=null,i.containment?"window"===i.containment?this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:"document"===i.containment?this.containment=[0,0,t(s).width()-this.helperProportions.width-this.margins.left,(t(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:i.containment.constructor===Array?this.containment=i.containment:("parent"===i.containment&&(i.containment=this.helper[0].parentNode),(i=(s=t(i.containment))[0])&&(e=/(scroll|auto)/.test(s.css("overflow")),this.containment=[(parseInt(s.css("borderLeftWidth"),10)||0)+(parseInt(s.css("paddingLeft"),10)||0),(parseInt(s.css("borderTopWidth"),10)||0)+(parseInt(s.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(s.css("borderRightWidth"),10)||0)-(parseInt(s.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(s.css("borderBottomWidth"),10)||0)-(parseInt(s.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=s)):this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;t="absolute"===t?1:-1;var i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*t}},_generatePosition:function(t,e){var i,s=this.options,o=this._isRootNode(this.scrollParent[0]),n=t.pageX,a=t.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),{top:(a=e&&(this.containment&&(i=this.relativeContainer?(e=this.relativeContainer.offset(),[this.containment[0]+e.left,this.containment[1]+e.top,this.containment[2]+e.left,this.containment[3]+e.top]):this.containment,t.pageX-this.offset.click.left<i[0]&&(n=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(a=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(n=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3])&&(a=i[3]+this.offset.click.top),s.grid&&(e=s.grid[1]?this.originalPageY+Math.round((a-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,a=!i||e-this.offset.click.top>=i[1]||e-this.offset.click.top>i[3]?e:e-this.offset.click.top>=i[1]?e-s.grid[1]:e+s.grid[1],t=s.grid[0]?this.originalPageX+Math.round((n-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,n=!i||t-this.offset.click.left>=i[0]||t-this.offset.click.left>i[2]?t:t-this.offset.click.left>=i[0]?t-s.grid[0]:t+s.grid[0]),"y"===s.axis&&(n=this.originalPageX),"x"===s.axis)?this.originalPageY:a)-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(this,e,[i,s,this],!0),/^(drag|start|stop
vendor: 4,820 bytes, line 41
41)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,s){var o=t.extend({},i,{item:s.element});s.sortables=[],t(s.options.connectToSortable).each((function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(s.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,o))}))},stop:function(e,i,s){var o=t.extend({},i,{item:s.element});s.cancelHelperRemoval=!1,t.each(s.sortables,(function(){var t=this;t.isOver?(t.isOver=0,s.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,o))}))},drag:function(e,i,s){t.each(s.sortables,(function(){var o=!1,n=this;n.positionAbs=s.positionAbs,n.helperProportions=s.helperProportions,n.offset.click=s.offset.click,n._intersectsWith(n.containerCache)&&(o=!0,t.each(s.sortables,(function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,o=(this===n||!this._intersectsWith(this.containerCache)||!t.contains(n.element[0],this.element[0]))&&o}))),o?(n.isOver||(n.isOver=1,s._parent=i.helper.parent(),n.currentItem=i.helper.appendTo(n.element).data("ui-sortable-item",!0),n.options._helper=n.options.helper,n.options.helper=function(){return i.helper[0]},e.target=n.currentItem[0],n._mouseCapture(e,!0),n._mouseStart(e,!0,!0),n.offset.click.top=s.offset.click.top,n.offset.click.left=s.offset.click.left,n.offset.parent.left-=s.offset.parent.left-n.offset.parent.left,n.offset.parent.top-=s.offset.parent.top-n.offset.parent.top,s._trigger("toSortable",e),s.dropped=n.element,t.each(s.sortables,(function(){this.refreshPositions()})),s.currentItem=s.element,n.fromOutside=s),n.currentItem&&(n._mouseDrag(e),i.position=n.position)):n.isOver&&(n.isOver=0,n.cancelHelperRemoval=!0,n.options._revert=n.options.revert,n.options.revert=!1,n._trigger("out",e,n._uiHash(n)),n._mouseStop(e,!0),n.options.revert=n.options._revert,n.options.helper=n.options._helper,n.placeholder&&n.placeholder.remove(),i.helper.appendTo(s._parent),s._refreshOffsets(e),i.position=s._generatePosition(e,!0),s._trigger("fromSortable",e),s.dropped=!1,t.each(s.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,s){var o=t("body");s=s.options;o.css("cursor")&&(s._cursor=o.css("cursor")),o.css("cursor",s.cursor)},stop:function(e,i,s){(s=s.options)._cursor&&t("body").css("cursor",s._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,s){i=t(i.helper),s=s.options,i.css("opacity")&&(s._opacity=i.css("opacity")),i.css("opacity",s.opacity)},stop:function(e,i,s){(s=s.options)._opacity&&t(i.helper).css("opacity",s._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,s){var o=s.options,n=!1,a=s.scrollParentNotHidden[0],r=s.document[0];a!==r&&"HTML"!==a.tagName?(o.axis&&"x"===o.axis||(s.overflowOffset.top+a.offsetHeight-e.pageY<o.scrollSensitivity?a.scrollTop=n=a.scrollTop+o.scrollSpeed:e.pageY-s.overflowOffset.top<o.scrollSensitivity&&(a.scrollTop=n=a.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(s.overflowOffset.left+a.offsetWidth-e.pageX<o.scrollSensitivity?a.scrollLeft=n=a.scrollLeft+o.scrollSpeed:e.pageX-s.overflowOffset.left<o.scrollSensitivity&&(a.scrollLeft=n=a.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(e.pageY-t(r).scrollTop()<o.scrollSensitivity?n=t(r).scrollTop(t(r).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(r).scrollTop())<o.scrollSensitivity&&(n=t(r).scrollTop(t(r).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(e.pageX-t(r).scrollLeft()<o.scrollSensitivity?n=t(r).scrollLeft(t(r).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(r).scrollLeft())<o.scrollSensitivity&&(n=t(r).scrollLeft(t(r).scrollLeft()+o.scrollSpeed)))),!1!==n&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(s,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,s){var o=s.options;s.snapElements=[],t(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each((function(){var e=t(this),i=e.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left
vendor: 17,167 bytes, line 41
41:i.left})}))},drag:function(e,i,s){for(var o,n,a,r,l,h,c,p,d,u=s.options,f=u.snapTolerance,g=i.offset.left,m=g+s.helperProportions.width,_=i.offset.top,v=_+s.helperProportions.height,b=s.snapElements.length-1;0<=b;b--)h=(l=s.snapElements[b].left-s.margins.left)+s.snapElements[b].width,p=(c=s.snapElements[b].top-s.margins.top)+s.snapElements[b].height,m<l-f||h+f<g||v<c-f||p+f<_||!t.contains(s.snapElements[b].item.ownerDocument,s.snapElements[b].item)?(s.snapElements[b].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[b].item})),s.snapElements[b].snapping=!1):("inner"!==u.snapMode&&(o=Math.abs(c-v)<=f,n=Math.abs(p-_)<=f,a=Math.abs(l-m)<=f,r=Math.abs(h-g)<=f,o&&(i.position.top=s._convertPositionTo("relative",{top:c-s.helperProportions.height,left:0}).top),n&&(i.position.top=s._convertPositionTo("relative",{top:p,left:0}).top),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left),r)&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h}).left),d=o||n||a||r,"outer"!==u.snapMode&&(o=Math.abs(c-_)<=f,n=Math.abs(p-v)<=f,a=Math.abs(l-g)<=f,r=Math.abs(h-m)<=f,o&&(i.position.top=s._convertPositionTo("relative",{top:c,left:0}).top),n&&(i.position.top=s._convertPositionTo("relative",{top:p-s.helperProportions.height,left:0}).top),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l}).left),r)&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h-s.helperProportions.width}).left),!s.snapElements[b].snapping&&(o||n||a||r||d)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[b].item})),s.snapElements[b].snapping=o||n||a||r||d)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,s){var o;s=s.options,s=t.makeArray(t(s.stack)).sort((function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)}));s.length&&(o=parseInt(t(s[0]).css("zIndex"),10)||0,t(s).each((function(e){t(this).css("zIndex",o+e)})),this.css("zIndex",o+s.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,s){i=t(i.helper),s=s.options,i.css("zIndex")&&(s._zIndex=i.css("zIndex")),i.css("zIndex",s.zIndex)},stop:function(e,i,s){(s=s.options)._zIndex&&t(i.helper).css("zIndex",s._zIndex)}}),t.ui.draggable,t.widget("ui.droppable",{version:"1.13.2",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(t){return t.is(i)},this.proportions=function(){if(!arguments.length)return t=t||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};t=arguments[0]},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,i){var s;"accept"===e?this.accept="function"==typeof i?i:function(t){return t.is(i)}:"scope"===e&&(s=t.ui.ddmanager.droppables[this.options.scope],this._splice(s),this._addToManager(i)),this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var s=i||t.ui.ddmanager.current,o=!1;return!(!s||(s.currentItem||s.element)[0]===this.element[0]||(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var i=t(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===s.options.scope&&i.accept.call(i.element[0],s.currentItem||s.element)&&t.ui.intersect(s,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e))return!(o=!0)})),o)||!this.accept.call(this.element[0],s.currentItem||s.element))&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(s)),this.element)},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),t.ui.intersect=function(t,e,i,s){if(!e.offset)return!1;var o=(t.positionAbs||t.position.absolute).left+t.margins.left,n=(t.positionAbs||t.position.absolute).top+t.margins.top,a=o+t.helperProportions.width,r=n+t.helperProportions.height,l=e.offset.left,h=e.offset.top,c=l+e.proportions().width,p=h+e.proportions().height;switch(i){case"fit":return l<=o&&a<=c&&h<=n&&r<=p;case"intersect":return l<o+t.helperProportions.width/2&&a-t.helperProportions.width/2<c&&h<n+t.helperProportions.height/2&&r-t.helperProportions.height/2<p;case"pointer":return y(s.pageY,h,e.proportions().height)&&y(s.pageX,l,e.proportions().width);case"touch":return(h<=n&&n<=p||h<=r&&r<=p||n<h&&p<r)&&(l<=o&&o<=c||l<=a&&a<=c||o<l&&c<a);default:return!1}},!(t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var s,o,n=t.ui.ddmanager.droppables[e.options.scope]||[],a=i?i.type:null,r=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(s=0;s<n.length;s++)if(!(n[s].options.disabled||e&&!n[s].accept.call(n[s].element[0],e.currentItem||e.element))){for(o=0;o<r.length;o++)if(r[o]===n[s].element[0]){n[s].proportions().height=0;continue t}n[s].visible="none"!==n[s].element.css("display"),n[s].visible&&("mousedown"===a&&n[s]._activate.call(n[s],i),n[s].offset=n[s].element.offset(),n[s].proportions({width:n[s].element[0].offsetWidth,height:n[s].element[0].offsetHeight}))}},drop:function(e,i){var s=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance,i)&&(s=this._drop.call(this,i)||s),!this.options.disabled)&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i))})),s},dragStart:function(e,i){e.element.parentsUntil("body").on("scroll.droppable",(function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}))},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],(function(){var s,o,n,a;this.options.disabled||this.greedyChild||!this.visible||(a=!(a=t.ui.intersect(e,this,this.options.tolerance,i))&&this.isover?"isout":a&&!this.isover?"isover":null)&&(this.options.greedy&&(o=this.options.scope,(n=this.element.parents(":data(ui-droppable)").filter((function(){return t(this).droppable("instance").options.scope===o}))).length)&&((s=t(n[0]).droppable("instance")).greedyChild="isover"===a),s&&"isover"===a&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,i),s)&&"isout"===a&&(s.isout=!1,s.isover=!0,s._over.call(s,i))}))},dragStop:function(e,i){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}})!==t.uiBackCompat&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),t.ui.droppable,t.widget("ui.resizable",t.ui.mouse,{version:"1.13.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var s=!1;if(0<e[i=i&&"left"===i?"scrollLeft":"scrollTop"])return!0;try{e[i]=1,s=0<e[i],e[i]=0}catch(e){}return s},_create:function(){var e,i=this.options,s=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",(function(){i.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())})).on("mouseleave",(function(){i.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())})),this._mouseInit()},_destroy:function(){function e(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable")}var i;return this._mouseDestroy(),this._addedHandles.remove(),this.elementIsWrapper&&(e(this.element),i=this.element,this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")}).insertAfter(i),i.remove()),this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var e,i,s,o,n,a=this.options,r=this;if(this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this._addedHandles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},i=0;i<s.length;i++)o="ui-resizable-"+(e=String.prototype.trim.call(s[i])),n=t("<div>"),this._addClass(n,"ui-resizable-handle "+o),n.css({zIndex:a.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.children(this.handles[e]).length||(this.element.append(n),this._addedHandles=this._addedHandles.add(n));this._renderAxis=function(e){var i,s,o;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(o=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?o.outerHeight():o.outerWidth(),s=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(s,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){r.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=n&&n[1]?n[1]:"se")})),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(e){var i,s,o=!1;for(i in this.handles)(s=t(this.handles[i])[0])!==e.target&&!t.contains(s,e.target)||(o=!0);return!this.options.disabled&&o},_mouseStart:function(e){var i,s,o=this.options,n=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,s+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:n.width(),height:n.height()},this.originalSize=this._helper?{width:n.outerWidth(),height:n.outerHeight()}:{width:n.width(),height:n.height()},this.sizeDiff={width:n.outerWidth()-n.width(),height:n.outerHeight()-n.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i=this.originalMousePosition,s=this.axis,o=e.pageX-i.left||0;i=e.pageY-i.top||0,s=this._change[s];return this._updatePrevProperties(),s&&(s=s.apply(this,[e,o,i]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(s=this._updateRatio(s,e)),s=this._respectSize(s,e),this._updateCache(s),this._propagate("resize",e),o=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(o)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges())),!1},_mouseStop:function(e){this.resizing=!1;var i,s,o,n=this.options,a=this;return this._helper&&(s=(i=(s=this._proportionallyResizeElements).length&&/textarea/i.test(s[0].nodeName))&&this._hasScroll(s[0],"left")?0:a.sizeDiff.height,i=i?0:a.sizeDiff.width,i={width:a.helper.width()-i,height:a.helper.height()-s},s=parseFloat(a.element.css("left"))+(a.position.left-a.originalPosition.left)||null,o=parseFloat(a.element.css("top"))+(a.position.top-a.originalPosition.top)||null,n.animate||this.element.css(t.extend(i,{top:o,left:s})),a.helper.height(a.size.height),a.helper.width(a.size.width),this._helper)&&!n.animate&&this._proportionallyResize(),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,s,o=this.options;o={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0};(this._aspectRatio||t)&&(t=o.minHeight*this.aspectRatio,i=o.minWidth/this.aspectRatio,e=o.maxHeight*this.aspectRatio,s=o.maxWidth/this.aspectRatio,o.minWidth<t&&(o.minWidth=t),o.minHeight<i&&(o.minHeight=i),e<o.maxWidth&&(o.maxWidth=e),s<o.maxHeight)&&(o.maxHeight=s),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left
vendor: 7,811 bytes, line 41
41=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,o=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,n=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i);i=/nw|ne|n/.test(i);return n&&(t.width=e.minWidth),a&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),o&&(t.height=e.maxHeight),n&&h&&(t.left=r-e.minWidth),s&&h&&(t.left=r-e.maxWidth),a&&i&&(t.top=l-e.minHeight),o&&i&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],o=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(o[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),s=i.options,o=i._proportionallyResizeElements,n=(a=o.length&&/textarea/i.test(o[0].nodeName))&&i._hasScroll(o[0],"left")?0:i.sizeDiff.height,a=a?0:i.sizeDiff.width,r=(a={width:i.size.width-a,height:i.size.height-n},n=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null);i.element.animate(t.extend(a,r&&n?{top:r,left:n}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};o&&o.length&&t(o[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,s,o,n=t(this).resizable("instance"),a=n.options,r=n.element;(r=(a=a.containment)instanceof t?a.get(0):/parent/.test(a)?r.parent().get(0):a)&&(n.containerElement=t(r),/document/.test(a)||a===document?(n.containerOffset={left:0,top:0},n.containerPosition={left:0,top:0},n.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(r),i=[],t(["Top","Right","Left","Bottom"]).each((function(t,s){i[t]=n._num(e.css("padding"+s))})),n.containerOffset=e.offset(),n.containerPosition=e.position(),n.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},a=n.containerOffset,o=n.containerSize.height,s=n.containerSize.width,s=n._hasScroll(r,"left")?r.scrollWidth:s,o=n._hasScroll(r)?r.scrollHeight:o,n.parentData={element:r,left:a.left,top:a.top,width:s,height:o}))},resize:function(e){var i=t(this).resizable("instance"),s=i.options,o=i.containerOffset,n=i.position,a=(e=i._aspectRatio||e.shiftKey,{top:0,left:0}),r=i.containerElement,l=!0;r[0]!==document&&/static/.test(r.css("position"))&&(a=o),n.left<(i._helper?o.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-o.left:i.position.left-a.left),e&&(i.size.height=i.size.width/i.aspectRatio,l=!1),i.position.left=s.helper?o.left:0),n.top<(i._helper?o.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-o.top:i.position.top),e&&(i.size.width=i.size.height*i.aspectRatio,l=!1),i.position.top=i._helper?o.top:0),r=i.containerElement.get(0)===i.element.parent().get(0),s=/relative|absolute/.test(i.containerElement.css("position")),r&&s?(i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top):(i.offset.left=i.element.offset().left,i.offset.top=i.element.offset().top),n=Math.abs(i.sizeDiff.width+(i._helper?i.offset.left-a.left:i.offset.left-o.left)),r=Math.abs(i.sizeDiff.height+(i._helper?i.offset.top-a.top:i.offset.top-o.top)),n+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-n,e)&&(i.size.height=i.size.width/i.aspectRatio,l=!1),r+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-r,e)&&(i.size.width=i.size.height*i.aspectRatio,l=!1),l||(i.position.left=i.prevPosition.left,i.position.top=i.prevPosition.top,i.size.width=i.prevSize.width,i.size.height=i.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,s=e.containerOffset,o=e.containerPosition,n=e.containerElement,a=(l=t(e.helper)).offset(),r=l.outerWidth()-e.sizeDiff.width,l=l.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(n.css("position"))&&t(this).css({left:a.left-o.left-s.left,width:r,height:l}),e._helper&&!i.animate&&/static/.test(n.css("position"))&&t(this).css({left:a.left-o.left-s.left,width:r,height:l})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance").options;t(e.alsoResize).each((function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})}))},resize:function(e,i){var s=t(this).resizable("instance"),o=s.options,n=s.originalSize,a=s.originalPosition,r={height:s.size.height-n.height||0,width:s.size.width-n.width||0,top:s.position.top-a.top||0,left
vendor: 25,920 bytes, line 41
41:s.position.left-a.left||0};t(o.alsoResize).each((function(){var e=t(this),s=t(this).data("ui-resizable-alsoresize"),o={},n=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(n,(function(t,e){var i=(s[e]||0)+(r[e]||0);i&&0<=i&&(o[e]=i||null)})),e.css(o)}))},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!1!==t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),s=i.options,o=i.size,n=i.originalSize,a=i.originalPosition,r=i.axis,l="number"==typeof s.grid?[s.grid,s.grid]:s.grid,h=l[0]||1,c=l[1]||1,p=Math.round((o.width-n.width)/h)*h,d=(o=Math.round((o.height-n.height)/c)*c,n.width+p),u=n.height+o,f=s.maxWidth&&s.maxWidth<d,g=s.maxHeight&&s.maxHeight<u,m=s.minWidth&&s.minWidth>d,_=s.minHeight&&s.minHeight>u;s.grid=l,m&&(d+=h),_&&(u+=c),f&&(d-=h),g&&(u-=c),/^(se|s|e)$/.test(r)?(i.size.width=d,i.size.height=u):/^(ne)$/.test(r)?(i.size.width=d,i.size.height=u,i.position.top=a.top-o):/^(sw)$/.test(r)?(i.size.width=d,i.size.height=u,i.position.left=a.left-p):((u-c<=0||d-h<=0)&&(e=i._getPaddingPlusBorderDimensions(this)),0<u-c?(i.size.height=u,i.position.top=a.top-o):(u=c-e.height,i.size.height=u,i.position.top=a.top+n.height-u),0<d-h?(i.size.width=d,i.position.left=a.left-p):(d=h-e.width,i.size.width=d,i.position.left=a.left+n.width-d))}}),t.ui.resizable,t.widget("ui.selectable",t.ui.mouse,{version:"1.13.2",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=t(e.element[0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addClass(e.selectees,"ui-selectee"),e.selectees.each((function(){var i=t(this),s={left:(s=i.offset()).left-e.elementPos.left,top:s.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:i,left:s.left,top:s.top,right:s.left+i.outerWidth(),bottom:s.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})}))},this.refresh(),this._mouseInit(),this.helper=t("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var i=this,s=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),this.options.disabled||(this.selectees=t(s.filter,this.element[0]),this._trigger("start",e),t(s.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each((function(){var s=t.data(this,"selectable-item");s.startselected=!0,e.metaKey||e.ctrlKey||(i._removeClass(s.$element,"ui-selected"),s.selected=!1,i._addClass(s.$element,"ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",e,{unselecting:s.element}))})),t(e.target).parents().addBack().each((function(){var s,o=t.data(this,"selectable-item");if(o)return s=!e.metaKey&&!e.ctrlKey||!o.$element.hasClass("ui-selected"),i._removeClass(o.$element,s?"ui-unselecting":"ui-selected")._addClass(o.$element,s?"ui-selecting":"ui-unselecting"),o.unselecting=!s,o.selecting=s,(o.selected=s)?i._trigger("selecting",e,{selecting:o.element}):i._trigger("unselecting",e,{unselecting:o.element}),!1})))},_mouseDrag:function(e){var i,s,o,n,a,r,l;if(this.dragged=!0,!this.options.disabled)return o=(s=this).options,n=this.opos[0],a=this.opos[1],r=e.pageX,l=e.pageY,r<n&&(i=r,r=n,n=i),l<a&&(i=l,l=a,a=i),this.helper.css({left:n,top:a,width:r-n,height:l-a}),this.selectees.each((function(){var i=t.data(this,"selectable-item"),h=!1,c={};i&&i.element!==s.element[0]&&(c.left=i.left+s.elementPos.left,c.right=i.right+s.elementPos.left,c.top=i.top+s.elementPos.top,c.bottom=i.bottom+s.elementPos.top,"touch"===o.tolerance?h=!(r<c.left||c.right<n||l<c.top||c.bottom<a):"fit"===o.tolerance&&(h=n<c.left&&c.right<r&&a<c.top&&c.bottom<l),h?(i.selected&&(s._removeClass(i.$element,"ui-selected"),i.selected=!1),i.unselecting&&(s._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1),i.selecting||(s._addClass(i.$element,"ui-selecting"),i.selecting=!0,s._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(s._removeClass(i.$element,"ui-selecting"),i.selecting=!1,s._addClass(i.$element,"ui-selected"),i.selected=!0):(s._removeClass(i.$element,"ui-selecting"),i.selecting=!1,i.startselected&&(s._addClass(i.$element,"ui-unselecting"),i.unselecting=!0),s._trigger("unselecting",e,{unselecting:i.element}))),!i.selected||e.metaKey||e.ctrlKey||i.startselected||(s._removeClass(i.$element,"ui-selected"),i.selected=!1,s._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,s._trigger("unselecting",e,{unselecting:i.element}))))})),!1},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each((function(){var s=t.data(this,"selectable-item");i._removeClass(s.$element,"ui-unselecting"),s.unselecting=!1,s.startselected=!1,i._trigger("unselected",e,{unselected:s.element})})),t(".ui-selecting",this.element[0]).each((function(){var s=t.data(this,"selectable-item");i._removeClass(s.$element,"ui-selecting")._addClass(s.$element,"ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,i._trigger("selected",e,{selected:s.element})})),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.13.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,(function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var s=null,o=!1,n=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(e),t(e.target).parents().each((function(){if(t.data(this,n.widgetName+"-item")===n)return s=t(this),!1})),!(s=t.data(e.target,n.widgetName+"-item")===n?t(e.target):s))||this.options.handle&&!i&&(t(this.options.handle,s).find("*").addBack().each((function(){this===e.target&&(o=!0)})),!o)||(this.currentItem=s,this._removeCurrentsFromItems(),0))},_mouseStart:function(e,i,s){var o,n,a=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=t("parent"!==a.appendTo?a.appendTo:this.currentItem.parent()),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),t.extend(this.offset,{parent:this._getParentOffset()}),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(n=this.document.find("body"),this.storedCursor=n.css("cursor"),n.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(n)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(o=this.containers.length-1;0<=o;o--)this.containers[o]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(e),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(e){var i,s,o,n,a=this.options;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),a.scroll&&!1!==this._scroll(e)&&(this._refreshItemPositions(!0),t.ui.ddmanager)&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;0<=i;i--)if(o=(s=this.items[i]).item[0],(n=this._intersectsWithPointer(s))&&s.instance===this.currentContainer&&!(o===this.currentItem[0]||this.placeholder[1===n?"next":"prev"]()[0]===o||t.contains(this.placeholder[0],o)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],o))){if(this.direction=1===n?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(s))break;this._rearrange(e,s),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){var s,o,n,a;if(e)return t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert?(o=(s=this).placeholder.offset(),a={},(n=this.options.axis)&&"x"!==n||(a.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),n&&"y"!==n||(a.top=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,(function(){s._clear(e)}))):this._clear(e,i),!1},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;0<=e;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&s.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!s.length&&e.key&&s.push(e.key+"="),s.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},i.each((function(){s.push(t(e.item||this).attr(e.attribute||"id")||"")})),s},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,o=s+this.helperProportions.height,n=t.left,a=n+t.width,r=t.top,l=r+t.height,h=this.offset.click.top,c=this.offset.click.left;h="x"===this.options.axis||r<s+h&&s+h<l,c="y"===this.options.axis||n<e+c&&e+c<a;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?h&&c:n<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&r<s+this.helperProportions.height/2&&o-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height);t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!t)&&(e=this.dragDirection.vertical,t=this.dragDirection.horizontal,this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=(t=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),this.dragDirection.vertical),s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&t||"left"===s&&!t:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,s,o,n,a=[],r=[],l=this._connectWith();if(l&&e)for(i=l.length-1;0<=i;i--)for(s=(o=t(l[i],this.document[0])).length-1;0<=s;s--)(n=t.data(o[s],this.widgetFullName))&&n!==this&&!n.options.disabled&&r.push(["function"==typeof n.options.items?n.options.items.call(n.element):t(n.options.items,n.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),n]);function h(){a.push(this)}for(r.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=r.length-1;0<=i;i--)r[i][0].each(h);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,s,o,n,a,r,l,h,c=this.items,p=[["function"==typeof this.options.items?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;0<=i;i--)for(s=(o=t(d[i],this.document[0])).length-1;0<=s;s--)(n=t.data(o[s],this.widgetFullName))&&n!==this&&!n.options.disabled&&(p.push(["function"==typeof n.options.items?n.options.items.call(n.element[0],e,{item:this.currentItem}):t(n.options.items,n.element),n]),this.containers.push(n));for(i=p.length-1;0<=i;i--)for(a=p[i][1],h=(r=p[i][s=0]).length;s<h;s++)(l=t(r[s])).data(this.widgetName+"-item",a),c.push({item:l,instance:a,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(e){for(var i,s,o=this.items.length-1;0<=o;o--)i=this.items[o],this.currentContainer&&i.instance!==this.currentContainer&&i.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?t(this.options.toleranceElement,i.item):i.item,e||(i.width=s.outerWidth(),i.height=s.outerHeight()),s=s.offset(),i.left=s.left,i.top=s.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(e){var i,s,o=(e=e||this).options;o.placeholder&&o.placeholder.constructor!==String||(i=o.placeholder,s=e.currentItem[0].nodeName.toLowerCase(),o.placeholder={element:function(){var o=t("<"+s+">",e.document[0]);return e._addClass(o,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(o,"ui-sortable-helper"),"tbody"===s?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(o)):"tr"===s?e._createTrPlaceholder(e.currentItem,o):"img"===s&&o.attr("src",e.currentItem.attr("src")),i||o.css("visibility","hidden"),o},update:function(t,n){i&&!o.forcePlaceholderSize||(n.height()&&(!o.forcePlaceholderSize||"tbody"!==s&&"tr"!==s)||n.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),n.width())||n.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10))}}),e.placeholder=t(o.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),o.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var s=this;e.children().each((function(){t("<td>&#160;</td>",s.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){for(var i,s,o,n,a,r,l,h,c,p=null,d=null,u=this.containers.length-1;0<=u;u--)t.contains(this.currentItem[0],this.containers[u].element[0])||(this._intersectsWith(this.containers[u].containerCache)?p&&t.contains(this.containers[u].element[0],p.element[0])||(p=this.containers[u],d=u):this.containers[u].containerCache.over&&(this.containers[u]._trigger("out",e,this._uiHash(this)),this.containers[u].containerCache.over=0));if(p)if(1===this.containers.length)this.containers[d].containerCache.over||(this.containers[d]._trigger("over",e,this._uiHash(this)),this.containers[d].containerCache.over=1);else{for(s=1e4,o=null,n=(h=p.floating||this._isFloating(this.currentItem))?"left":"top",a=h?"width":"height",c=h?"pageX":"pageY",i=this.items.length-1;0<=i;i--)t.contains(this.containers[d].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(r=this.items[i].item.offset()[n],l=!1,e[c]-r>this.items[i][a]/2&&(l=!0),Math.abs(e[c]-r)<s)&&(s=Math.abs(e[c]-r),o=this.items[i],this.direction=l?"up":"down");(o||this.options.dropOnEmpty)&&(this.currentContainer===this.containers[d]?this.currentContainer.containerCache.over||(this.containers[d]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1):(o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[d].element,!0),this._trigger("change",e,this._uiHash()),this.containers[d]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[d],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[d]._trigger("over",e,this._uiHash(this)),this.containers[d].containerCache.over=1))}},_createHelper:function(e){var i=this.options;return(e="function"==typeof i.helper?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem).parents("body").length||this.appendTo[0].appendChild(e[0]),e[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),e[0].style.width&&!i.forceHelperSize||e.width(this.currentItem.width()),e[0].style.height&&!i.forceHelperSize||e.height(this.currentItem.height()),e},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),{top:(e=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie?{top:0,left:0}:e).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t;return"relative"===this.cssPosition?{top:(t=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}:{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),"document"!==s.containment&&"window"!==s.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(e=t(s.containment)[0],s=t(s.containment).offset(),i="hidden"!==t(e).css("overflow"),this.containment=[s.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,s.top+(parseInt(t(e).css("borderTopWidth"),
vendor: 4,288 bytes, line 41
4110)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,s.left+(i?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,s.top+(i?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i=i||this.position;e="absolute"===e?1:-1;var s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*e+this.offset.parent.top*e-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:s.scrollTop())*e,left:i.left+this.offset.relative.left*e+this.offset.parent.left*e-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:s.scrollLeft())*e}},_generatePosition:function(e){var i=this.options,s=e.pageX,o=e.pageY,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(n[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(s=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(o=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(s=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3])&&(o=this.containment[3]+this.offset.click.top),i.grid)&&(e=this.originalPageY+Math.round((o-this.originalPageY)/i.grid[1])*i.grid[1],o=!this.containment||e-this.offset.click.top>=this.containment[1]&&e-this.offset.click.top<=this.containment[3]?e:e-this.offset.click.top>=this.containment[1]?e-i.grid[1]:e+i.grid[1],e=this.originalPageX+Math.round((s-this.originalPageX)/i.grid[0])*i.grid[0],s=!this.containment||e-this.offset.click.left>=this.containment[0]&&e-this.offset.click.left<=this.containment[2]?e:e-this.offset.click.left>=this.containment[0]?e-i.grid[0]:e+i.grid[0]),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:n.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:n.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay((function(){o===this.counter&&this.refreshPositions(!s)}))},_clear:function(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function o(t,e,i){return function(s){i._trigger(t,s,e._uiHash(e))}}for(this.fromOutside&&!e&&s.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push((function(t){this._trigger("update",t,this._uiHash())})),this===this.currentContainer||e||(s.push((function(t){this._trigger("remove",t,this._uiHash())})),s.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer))),i=this.containers.length-1;0<=i;
vendor: 11,217 bytes, line 41
41i--)e||s.push(o("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(o("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<s.length;i++)s[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}});var w,k,D=/ui-corner-([a-z]){2,6}/g;function C(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=x(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function x(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,(function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",i,P)}function P(){t.datepicker._isDisabledDatepicker((k.inline?k.dpDiv.parent():k.input)[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function I(e,i){for(var s in t.extend(e,i),i)null==i[s]&&(e[s]=i[s])}t.widget("ui.controlgroup",{version:"1.13.2",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,(function(s,o){var n,a={};o&&("controlgroupLabel"===s?((n=e.element.find(o)).each((function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")})),e._addClass(n,null,"ui-widget ui-widget-content ui-state-default"),i=i.concat(n.get())):t.fn[s]&&(a=e["_"+s+"Options"]?e["_"+s+"Options"]("middle"):{classes:{}},e.element.find(o).each((function(){var o=t(this),n=o[s]("instance"),r=t.widget.extend({},a);"button"===s&&o.parent(".ui-spinner").length||((n=n||o[s]()[s]("instance"))&&(r.classes=e._resolveClassesValues(r.classes,n)),o[s](r),r=o[s]("widget"),t.data(r[0],"ui-controlgroup-data",n||o[s]("instance")),i.push(r[0]))}))))})),this.childWidgets=t(t.uniqueSort(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each((function(){var i=t(this).data("ui-controlgroup-data");i&&i[e]&&i[e]()}))},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label,this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,s={classes:{}};return s.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],s},_spinnerOptions:function(t){return(t=this._buildSimpleOptions(t,"ui-spinner")).classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(e,i){var s={};return t.each(e,(function(t){var o=i.options.classes[t]||"";o=String.prototype.trim.call(o.replace(D,""));s[t]=(o+" "+e[t]).replace(/\s+/g," ")})),s},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?this._callChildMethod(e?"disable":"enable"):this.refresh()},refresh:function(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,(e=this.options.onlyVisible?e.filter(":visible"):e).length&&(t.each(["first","last"],(function(t,s){var o,n=e[s]().data("ui-controlgroup-data");n&&i["_"+n.widgetName+"Options"]?((o=i["_"+n.widgetName+"Options"](1===e.length?"only":s)).classes=i._resolveClassesValues(o.classes,n),n.element[n.widgetName](o)):i._updateCornerClass(e[s](),s)})),this._callChildMethod("refresh"))}}),t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.13.2",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,i=this._super()||{};return this._readType(),e=this.element.labels(),this.label=t(e[e.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",(e=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=e.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(i.label=this.originalLabel),null!=(e=this.element[0].disabled)&&(i.disabled=e),i},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e=this.element[0].name,i="input[name='"+t.escapeSelector(e)+"']";return e?(this.form.length?t(this.form[0].elements).filter(i):t(i).filter((function(){return 0===t(this)._form().length}))).not(this.element):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each((function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")}))},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){"label"===t&&!e||(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),this.element[0].disabled=e):this.refresh())},_updateIcon:function(e){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>
41"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),(t=this.iconSpace?t.not(this.iconSpace[0]):t).remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),t.ui.checkboxradio,t.widget("ui.button",{version:"1.13.2",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===t.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,i){var s=(e="iconPosition"!==e)?this.options.iconPosition:i,o="top"===s||"bottom"===s;this.icon?e&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),e&&this._addClass(this.icon,null,i),this._attachIcon(s),o?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconS
vendor: 6,984 bytes, line 41
41pace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(s))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=(void 0===t.showLabel?this.options:t).showLabel,i=(void 0===t.icon?this.options:t).icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace)&&this.iconSpace.remove()),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e)&&this.element.trigger("blur")},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==t.uiBackCompat&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){"text"===t?this._super("showLabel",e):("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments))}}),t.fn.button=(w=t.fn.button,function(e){var i="string"==typeof e,s=Array.prototype.slice.call(arguments,1),o=this;return i?this.length||"instance"!==e?this.each((function(){var i,n=t(this).attr("type");n=t.data(this,"ui-"+("checkbox"!==n&&"radio"!==n?"button":"checkboxradio"));return"instance"===e?(o=n,!1):n?"function"!=typeof n[e]||"_"===e.charAt(0)?t.error("no such method '"+e+"' for button widget instance"):(i=n[e].apply(n,s))!==n&&void 0!==i?(o=i&&i.jquery?o.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on button prior to initialization; attempted to call method '"+e+"'")})):o=void 0:(s.length&&(e=t.widget.extend.apply(null,[e].concat(s))),this.each((function(){var i="checkbox"!==(i=t(this).attr("type"))&&"radio"!==i?"button":"checkboxradio",s=t.data(this,"ui-"+i);s?(s.option(e||{}),s._init&&s._init()):"button"==i?w.call(t(this),e):t(this).checkboxradio(t.extend({icon:!1},e))}))),o}),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button,t.extend(t.ui,{datepicker:{version:"1.13.2"}}),t.extend(C.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return I(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var s,o=e.nodeName.toLowerCase(),n="div"===o||"span"===o;e.id||(this.uuid+=1,e.id="dp"+this.uuid),(s=this._newInst(t(e),n)).settings=t.extend({},i||{}),"input"===o?this._connectDatepicker(e,s):n&&this._inlineDatepicker(e,s)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?x(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var s=t(e);i.append=t([]),i.trigger=t([]),s.hasClass(this.markerClassName)||(this._attachments(s,i),s.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var s,o=this._get(i,"appendText"),n=this._get(i,"isRTL");i.append&&i.append.remove(),o&&(i.append=t("<span>").addClass(this._appendClass).text(o),e[n?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(o=this._get(i,"showOn"))&&"both"!==o||e.on("focus",this._showDatepicker),"button"!==o&&"both"!==o||(o=this._get(i,"buttonText"),s=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=t("<img>").addClass(this._triggerClass).attr({src:s,alt:o,title:o}):(i.trigger=t("<button type='button'>").addClass(this._triggerClass),s?i.trigger.html(t("<img>").attr({src:s,alt:o,title:o})):i.trigger.text(o)),e[n?"before":"after"](i.trigger),i.trigger.on("click",(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():(t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]&&t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])),!1})))},_autoSize:function(t){var e,i,s,o,n,a;this._get(t,"autoSize")&&!t.inline&&(n=new Date(2009,11,20),(a=this._get(t,"dateFormat")).match(/[DM]/)&&(n.setMonth((e=function(t){for(o=s=i=0;o<t.length;o++)t[o].length>i&&(i=t[o].length,s=o);return s})(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),n.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-n.getDay())),t.input.attr("size",this._formatDate(t,n).length))},_inlineDatepicker:function(e,i){var s=t(e);s.hasClass(this.markerClassName)||(s.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,s,o,n){var a,r=this._dialogInst;return r||(this.uuid+=1,a="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+a+"' style='position: absolute; top: -100px; width: 0px;'/>
41"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(r=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",r)),I(r.settings,o||{}),i=i&&i.constructor===Date?this._formatDate(r,i):i,this._dialogInput.val(i),this._pos=n?n.length?n:[n.pageX,n.pageY]:null,this._pos||(a=document.documentElement.clientWidth,o=document.documentElement.clientHeight,i=document.documentElement.scrollLeft||document.body.scrollLeft,n=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[a/2-100+i,o/2-150+n]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),r.settings.onSelect=s,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",r),this},_destroyDatepicker:function(e){var i,s=t(e),o=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(o.append.remove(),o.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||s.removeClass(this.markerClassName).empty(),k===o)&&(k=null,this._curInst=null)},_enableDatepicker:function(e){var i,s=t(e),o=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,o.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((o=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),o.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})))},_disableDatepicker:function(e){var i,s=t(e),o=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,o.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((o=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),o.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(t)for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,s){var o,n,a,r,l=this._getInst(e);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?t.extend({},t.datepicker._defaults):l?"all"===i?t.extend({},l.settings):this._get(l,i):null;o=i||{},"string"==typeof i&&((o={})[i]=s),l&&(this._curInst===l&&this._hideDatepicker(),n=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(l,"min"),r=this._getMinMaxDate(l,"max"),I(l.settings,o),null!==a&&void 0!==o.dateFormat&&void 0===o.minDate&&(l.settings.minDate=this._formatDate(l,a)),null!==r&&void 0!==o.dateFormat&&void 0===o.maxDate&&(l.settings.maxDate=this._formatDate(l,r)),"disabled"in o&&(o.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),l),this._autoSize(l),this._setDate(l,n),this._updateAlternate(l),this._updateDatepicker(l))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){(t=this._getInst(t))&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){(t=this._getInst(t))&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))},_getDateDatepicker:function(t,e){return(t=this._getInst(t))&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(e){var i,s,o=t.datepicker._getInst(e.target),n=!0,a=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),n=!1;break;case 13:return(s=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",o.dpDiv))[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,s[0]),(s=t.datepicker._get(o,"onSelect"))?(i=t.datepicker._formatDate(o),s.apply(o.input?o.input[0]:null,[
vendor: 8,654 bytes, line 41
41i,o])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),n=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),n=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,a?1:-1,"D"),n=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),n=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,a?-1:1,"D"),n=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),n=e.ctrlKey||e.metaKey;break;default:n=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):n=!1;n&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,s=t.datepicker._getInst(e.target);if(t.datepicker._get(s,"constrainInput"))return s=t.datepicker._possibleChars(t.datepicker._get(s,"dateFormat")),i=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||i<" "||!s||-1<s.indexOf(i)},_doKeyUp:function(e){if((e=t.datepicker._getInst(e.target)).input.val()!==e.lastVal)try{t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,t.datepicker._getFormatConfig(e))&&(t.datepicker._setDateFromField(e),t.datepicker._updateAlternate(e),t.datepicker._updateDatepicker(e))}catch(e){}return!0},_showDatepicker:function(e){var i,s,o,n;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e||(n=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==n&&(t.datepicker._curInst.dpDiv.stop(!0,!0),n)&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0]),!1===(s=(s=t.datepicker._get(n,"beforeShow"))?s.apply(e,[e,n]):{}))||(I(n.settings,s),n.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(n),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),i=!1,t(e).parents().each((function(){return!(i|="fixed"===t(this).css("position"))})),s={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(n),s=t.datepicker._checkOffset(n,s,i),n.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":i?"fixed":"absolute",display:"none",left:s.left+"px",top:s.top+"px"}),n.inline)||(s=t.datepicker._get(n,"showAnim"),o=t.datepicker._get(n,"duration"),n.dpDiv.css("z-index",function(t){for(var e;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(e=parseInt(t.css("zIndex"),10),!isNaN(e))&&0!==e)return e;t=t.parent()}return 0}(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[s]?n.dpDiv.show(s,t.datepicker._get(n,"showOptions"),o):n.dpDiv[s||"show"](s?o:null),t.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),t.datepicker._curInst=n)},_updateDatepicker:function(e){this.maxRows=4,(k=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,s=this._getNumberOfMonths(e),o=s[1],n=e.dpDiv.find("."+this._dayOverClass+" a"),a=t.datepicker._get(e,"onUpdateDatepicker");0<n.length&&P.apply(n.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<o&&e.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",17*o+"em"),e.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,setTimeout((function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year").first().replaceWith(e.yearshtml),i=e.yearshtml=null}),0)),a&&a.apply(e.input?e.input[0]:null,[e])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,s){var o=e.dpDiv.outerWidth(),n=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,r=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(s?0:t(document).scrollLeft()),h=document.documentElement.clientHeight+(s?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?o-a:0,i.left-=s&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=s&&i.top===e.input.offset().top+r?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+o>l&&o<l?Math.abs(i.left+o-l):0),i.top-=Math.min(i.top,i.top+n>h&&n<h?Math.abs(n+r):0),i},_findPos:function(e){for(var i=this._getInst(e),s=this._get(i,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.pseudos.hidden(e));)e=e[s?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,s,o=this._curInst;!o||e&&o!==t.data(e,"datepicker")||this._datepickerShowing&&(e=this._get(o,"showAnim"),s=this._get(o,"duration"),i=function(){t.datepicker._tidyDialog(o)},t.effects&&(t.effects.effect[e]||t.effects[e])?o.dpDiv.hide(e,t.datepicker._get(o,"showOptions"),s,i):o.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?s:null,i),e||i(),this._datepickerShowing=!1,(s=this._get(o,"onClose"))&&s.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI)&&(t.unblockUI(),t("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){var i;t.datepicker._curInst&&(e=t(e.target),i=t.datepicker._getInst(e[0]),!(e[0].id===t.datepicker._mainDivId||0!==e.parents("#"+t.datepicker._mainDivId).length||e.hasClass(t.datepicker.markerClassName)||e.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)||e.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==i)&&t.datepicker._hideDatepicker()},_adjustDate:function(e,i,s){e=t(e);var o=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(o,i,s),this._updateDatepicker(o))},_gotoToday:function(e){e=t(e);var i,s=this._getInst(e[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(i=new Date,s.selectedDay=i.getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(e)},_selectMonthYear:function(e,i,s){e=t(e);var o=this._getInst(e[0]);o["selected"+("M"===s?"Month":"Year")]=o["draw"+("M"===s?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(e)},_selectDay:function(e,i,s,o){var n=t(e);t(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(n[0])||((n=this._getInst(n[0])).selectedDay=n.currentDay=parseInt(t("a",o).attr("data-date")),n.selectedMonth=n.currentMonth=i,n.selectedYear=n.currentYear=s,this._selectDate(e,this._formatDate(n,n.currentDay,n.currentMonth,n.currentYear)))},_clearDate:function(e){e=t(e),this._selectDate(e,"")},_selectDate:function(e,i){var s;e=t(e),e=this._getInst(e[0]);i=null!=i?i:this._formatDate(e),e.input&&e.input.val(i),this._updateAlternate(e),(s=this._get(e,"onSelect"))?s.apply(e.input?e.input[0]:null,[i,e]):e.input&&e.input.trigger("change"),e.inline?this._updateDatepicker(e):(this._hideDatepicker(),this._lastInput=e.input[0],"object"!=typeof e.input[0]&&e.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,s,o=this._get(e,"altField");o&&(s=this._get(e,"altFormat")||this._get(e,"dateFormat"),i=this._getDate(e),s=this.formatDate(s,i,this._getFormatConfig(e)),t(document).find(o).val(s))},noWeekends:function(t){return[0<(t=t.getDay())&&t<6,""]}
41,iso8601Week:function(t){var e;return(t=new Date(t.getTime())).setDate(t.getDate()+4-(t.getDay()||7)),e=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((e-t)/864e5)/7)+1},parseDate:function(e,i,s){if(null==e||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;function o(t){var e=y(t);e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,t=new RegExp("^\\d{"+("y"===t?e:1)+","+e+"}");if(e=i.substring(h).match(t))return h+=e[0].length,parseInt(e[0],10);throw"Missing number at position "+h}function n(e,s,o){var n=-1;e=t.map(y(e)?o:s,(function(t,e){return[[e,t]]})).sort((function(t,e){return-(t[1].length-e[1].length)}));if(t.each(e,(function(t,e){var s=e[1];if(i.substr(h,s.length).toLowerCase()===s.toLowerCase())return n=e[0],h+=s.length,!1})),-1!==n)return n+1;throw"Unknown name at position "+h}function a(){if(i.charAt(h)!==e.charAt(w))throw"Unexpected literal at position "+h;h++}for(var r,l,h=0,c="string"!=typeof(c=(s?s.shortYearCutoff:null)||this._defaults.shortYearCutoff)?c:(new Date).getFullYear()%100+parseInt(c,10),p=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,d=(s?s.dayNames:null)||this._defaults.dayNames,u=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,f=(s?s.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,_=-1,v=-1,b=!1,y=function(t){return(t=w+1<e.length&&e.charAt(w+1)===t)&&w++,t},w=0;w<e.length;w++)if(b)"'"!==e.charAt(w)||y("'")?a():b=!1;else switch(e.charAt(w)){case"d":_=o("d");break;case"D":n("D",p,d);break;case"o":v=o("o");break;case"m":m=o("m");break;case"M":m=n("M",u,f);break;case"y":g=o("y");break;case"@":g=(l=new Date(o("@"))).getFullYear(),m=l.getMonth()+1,_=l.getDate();break;case"!":g=(l=new Date((o("!")-this._ticksTo1970)/1e4)).getFullYear(),m=l.getMonth()+1,_=l.getDate();break;case"'":y("'")?a():b=!0;break;default:a()}if(h<i.length&&(s=i.substr(h),!/^\s+/.test(s)))throw"Extra/unparsed characters found in date: "+s;if(-1===g?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=c?0:-100)),-1<v)for(m=1,_=v;!(_<=(r=this._getDaysInMonth(g,m-1)));)m++,_-=r;if((l=this._daylightSavingAdjust(new Date(g,m-1,_))).getFullYear()!==g||l.getMonth()+1!==m||l.getDate()!==_)throw"Invalid date";return l},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";function s(t,e,i){var s=""+e;if(c(t))for(;s.length<i;)s="0"+s;return s}function o(t,e,i,s){return(c(t)?s:i)[e]}var n,a=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,r=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,h=(i?i.monthNames:null)||this._defaults.monthNames,c=function(e){return(e=n+1<t.length&&t.charAt(n+1)===e)&&n++,e},p="",d=!1;if(e)for(n=0;n<t.length;n++)if(d)"'"!==t.charAt(n)||c("'")?p+=t.charAt(n):d=!1;else switch(t.charAt(n)){case"d":p+=s("d",e.getDate(),2);break;case"D":p+=o("D",e.getDay(),a,r);break;case"o":p+=s("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":p+=s("m",e.getMonth()+1,2);break;case"M":p+=o("M",e.getMonth(),l,h);break;case"y":p+=c("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":p+=e.getTime();break;case"!":p+=1e4*e.getTime()+this._ticksTo1970;break;case"'":c("'")?p+="'":d=!0;break;default:p+=t.charAt(n)}return p},_possibleChars:function(t){function e(e){return(e=o+1<t.length&&t.charAt(o+1)===e)&&o++,e}for(var i="",s=!1,o=0;o<t.length;o++)if(s)"'"!==t.charAt(o)||e("'")?i+=t.charAt(o):s=!1;else switch(t.charAt(o)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":e("'")?i+="'":s=!0;break;default:i+=t.charAt(o)}return i},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,o=this._getDefaultDate(t),n=o,a=this._getFormatConfig(t);try{n=this.parseDate(i,s,a)||o}catch(t){s=e?"":s}t.selectedDay=n.getDate(),t.drawMonth=t.selectedMonth=n.getMonth(),t.drawYear=t.selectedYear=n.getFullYear(),t.currentDay=s?
vendor: 27,664 bytes, line 41
41n.getDate():0,t.currentMonth=s?n.getMonth():0,t.currentYear=s?n.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,s){var o,n=null==i||""===i?s:"string"==typeof i?function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(i){}for(var s=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,o=s.getFullYear(),n=s.getMonth(),a=s.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=r.exec(i);l;){switch(l[2]||"d"){case"d":case"D":a+=parseInt(l[1],10);break;case"w":case"W":a+=7*parseInt(l[1],10);break;case"m":case"M":n+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(o,n));break;case"y":case"Y":o+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(o,n))}l=r.exec(i)}return new Date(o,n,a)}(i):"number"==typeof i?isNaN(i)?s:(n=i,(o=new Date).setDate(o.getDate()+n),o):new Date(i.getTime());return(n=n&&"Invalid Date"===n.toString()?s:n)&&(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)),this._daylightSavingAdjust(n)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,o=t.selectedMonth,n=t.selectedYear;e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),o===t.selectedMonth&&n===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),s="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map((function(){var e={prev:function(){t.datepicker._adjustDate(s,-i,"M")},next:function(){t.datepicker._adjustDate(s,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(s)},selectDay:function(){return t.datepicker._selectDay(s,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(s,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])}))},_generateHTML:function(e){var i,s,o,n,a,r,l,h,c,p,d,u,f,g,m,_,v,b,y,w,k,D,C,x,P,I,T,S,M,z,H,N,O=new Date,A=this._daylightSavingAdjust(new Date(O.getFullYear(),O.getMonth(),O.getDate())),W=this._get(e,"isRTL"),E=(O=this._get(e,"showButtonPanel"),this._get(e,"hideIfNoPrevNext")),L=this._get(e,"navigationAsDateFormat"),F=this._getNumberOfMonths(e),R=this._get(e,"showCurrentAtPos"),Y=this._get(e,"stepMonths"),B=1!==F[0]||1!==F[1],j=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),K=this._getMinMaxDate(e,"min"),X=this._getMinMaxDate(e,"max"),U=e.drawMonth-R,$=e.drawYear;if(U<0&&(U+=12,$--),X)for(i=this._daylightSavingAdjust(new Date(X.getFullYear(),X.getMonth()-F[0]*F[1]+1,X.getDate())),i=K&&i<K?K:i;this._daylightSavingAdjust(new Date($,U,1))>i;)--U<0&&(U=11,$--);for(e.drawMonth=U,e.drawYear=$,R=this._get(e,"prevText"),R=L?this.formatDate(R,this._daylightSavingAdjust(new Date($,U-Y,1)),this._getFormatConfig(e)):R,s=this._canAdjustMonth(e,-1,$,U)?t("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:R}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(R))[0].outerHTML:E?"":t("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:R}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(R))[0].outerHTML,R=this._get(e,"nextText"),R=L?this.formatDate(R,this._daylightSavingAdjust(new Date($,U+Y,1)),this._getFormatConfig(e)):R,o=this._canAdjustMonth(e,1,$,U)?t("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:R}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(R))[0].outerHTML:E?"":t("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:R}).append(t("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(R))[0].outerHTML,Y=this._get(e,"currentText"),E=this._get(e,"gotoCurrent")&&e.currentDay?j:A,Y=L?this.formatDate(Y,E,this._getFormatConfig(e)):Y,R="",e.inline||(R=t("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),L="",O&&(L=t("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(W?R:"").append(this._isInRange(e,E)?t("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(Y):"").append(W?"":R)[0].outerHTML),n=parseInt(this._get(e,"firstDay"),10),n=isNaN(n)?0:n,a=this._get(e,"showWeek"),r=this._get(e,"dayNames"),l=this._get(e,"dayNamesMin"),h=this._get(e,"monthNames"),c=this._get(e,"monthNamesShort"),p=this._get(e,"beforeShowDay"),d=this._get(e,"showOtherMonths"),u=this._get(e,"selectOtherMonths"),f=this._getDefaultDate(e),g="",_=0;_<F[0];_++){for(v="",this.maxRows=4,b=0;b<F[1];b++){if(y=this._daylightSavingAdjust(new Date($,U,e.selectedDay)),w=" ui-corner-all",k="",B){if(k+="<div class='ui-datepicker-group",1<F[1])switch(b){case 0:k+=" ui-datepicker-group-first",w=" ui-corner-"+(W?"right":"left");break;case F[1]-1:k+=" ui-datepicker-group-last",w=" ui-corner-"+(W?"left":"right");break;default:k+=" ui-datepicker-group-middle",w=""}k+="'>"}for(k+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+w+"'>"+(/all|left/.test(w)&&0===_?W?o:s:"")+(/all|right/.test(w)&&0===_?W?s:o:"")+this._generateMonthYearHeader(e,U,$,K,X,0<_||0<b,h,c)+"</div><table class='ui-datepicker-calendar'><thead><tr>",D=a?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",m=0;m<7;m++)D+="<th scope='col'"+(5<=(m+n+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+r[C=(m+n)%7]+"'>"+l[C]+"</span></th>";for(k+=D+"</tr></thead><tbody>",P=this._getDaysInMonth($,U),$===e.selectedYear&&U===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,P)),x=(this._getFirstDayOfMonth($,U)-n+7)%7,P=Math.ceil((x+P)/7),I=B&&this.maxRows>P?this.maxRows:P,this.maxRows=I,T=this._daylightSavingAdjust(new Date($,U,1-x)),S=0;S<I;S++){for(k+="<tr>",M=a?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(T)+"</td>":"",m=0;m<7;m++)z=p?p.apply(e.input?e.input[0]:null,[T]):[!0,""],N=(H=T.getMonth()!==U)&&!u||!z[0]||K&&T<K||X&&X<T,M+="<td class='"+(5<=(m+n+6)%7?" ui-datepicker-week-end":"")+(H?" ui-datepicker-other-month":"")+(T.getTime()===y.getTime()&&U===e.selectedMonth&&e._keyEvent||f.getTime()===T.getTime()&&f.getTime()===y.getTime()?" "+this._dayOverClass:"")+(N?" "+this._unselectableClass+" ui-state-disabled":"")+(H&&!d?"":" "+z[1]+(T.getTime()===j.getTime()?" "+this._currentClass:"")+(T.getTime()===A.getTime()?" ui-datepicker-today":""))+"'"+(H&&!d||!z[2]?"":" title='"+z[2].replace(/'/g,"&#39;")+"'")+(N?"":" data-handler='selectDay' data-event='click' data-month='"+T.getMonth()+"' data-year='"+T.getFullYear()+"'")+">"+(H&&!d?"&#xa0;":N?"<span class='ui-state-default'>"+T.getDate()+"</span>":"<a class='ui-state-default"+(T.getTime()===A.getTime()?" ui-state-highlight":"")+(T.getTime()===j.getTime()?" ui-state-active":"")+(H?" ui-priority-secondary":"")+"' href='#' aria-current='"+(T.getTime()===j.getTime()?"true":"false")+"' data-date='"+T.getDate()+"'>"+T.getDate()+"</a>")+"</td>",T.setDate(T.getDate()+1),T=this._daylightSavingAdjust(T);k+=M+"</tr>"}11<++U&&(U=0,$++),v+=k+="</tbody></table>"+(B?"</div>"+(0<F[0]&&b===F[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}g+=v}return g+=L,e._keyEvent=!1,g},_generateMonthYearHeader:function(t,e,i,s,o,n,a,r){var l,h,c,p,d,u,f=this._get(t,"changeMonth"),g=this._get(t,"changeYear"),m=this._get(t,"showMonthAfterYear"),_=this._get(t,"selectMonthLabel"),v=this._get(t,"selectYearLabel"),b="<div class='ui-datepicker-title'>",y="";if(n||!f)y+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=s&&s.getFullYear()===i,h=o&&o.getFullYear()===i,y+="<select class='ui-datepicker-month' aria-label='"+_+"' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=s.getMonth())&&(!h||c<=o.getMonth())&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+r[c]+"</option>");y+="</select>"}if(m||(b+=y+(!n&&f&&g?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",n||!g)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(a=this._get(t,"yearRange").split(":"),p=(new Date).getFullYear(),d=(_=function(t){return t=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?p+parseInt(t,10):parseInt(t,10),isNaN(t)?p:t})(a[0]),u=Math.max(d,_(a[1]||"")),d=s?Math.max(d,s.getFullYear()):d,u=o?Math.min(u,o.getFullYear()):u,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+v+"' data-handler='selectYear' data-event='change'>";d<=u;d++)t.yearshtml+="<option value='"+d+"'"+(d===i?" selected='selected'":"")+">"+d+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),m&&(b+=(!n&&f&&g?"":"&#xa0;")+y),b+"</div>"},_adjustInstDate:function(t,e,i){var s=t.selectedYear+("Y"===i?e:0),o=t.selectedMonth+("M"===i?e:0);e=Math.min(t.selectedDay,this._getDaysInMonth(s,o))+("D"===i?e:0),s=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,o,e)));t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=(i=this._getMinMaxDate(t,"min"))&&e<i?i:e;return(t=this._getMinMaxDate(t,"max"))&&t<i?t:i},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){return null==(t=this._get(t,"numberOfMonths"))?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,s){var o=this._getNumberOfMonths(t);i=this._daylightSavingAdjust(new Date(i,s+(e<0?e:o[0]*o[1]),1));return e<0&&i.setDate(this._getDaysInMonth(i.getFullYear(),i.getMonth())),this._isInRange(t,i)},_isInRange:function(t,e){var i,s=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),n=null,a=null;return(t=this._get(t,"yearRange"))&&(t=t.split(":"),i=(new Date).getFullYear(),n=parseInt(t[0],10),a=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(n+=i),t[1].match(/[+\-].*/))&&(a+=i),(!s||e.getTime()>=s.getTime())&&(!o||e.getTime()<=o.getTime())&&(!n||e.getFullYear()>=n)&&(!a||e.getFullYear()<=a)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){return e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear),s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay)),this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"==typeof e&&("isDisabled"===e||"getDate"===e||"widget"===e)||"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each((function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}))},t.datepicker=new C,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.13.2",t.datepicker,t.widget("ui.dialog",{version:"1.13.2",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;i<0&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&!1!==this._trigger("beforeClose",e)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,(function(){i._trigger("close",e)})))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,i){var s=!1,o=this.uiDialog.siblings(".ui-front:visible").map((function(){return+t(this).css("z-index")})).get();return(o=Math.max.apply(null,o))>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),s=!0),s&&!i&&this._trigger("focus",e),s},open:function(){var e=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=t(t.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,(function(){e._focusTabbable(),e._trigger("focus")})),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;(t=(t=(t=(t=(t=t||this.element.find("[autofocus]")).length?t:this.element.find(":tabbable")).length?t:this.uiDialogButtonPane.find(":tabbable")).length?t:this.uiDialogTitlebarClose.filter(":tabbable")).length?t:this.uiDialog).eq(0).trigger("focus")},_restoreTabbableFocus:function(){var e=t.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===e||t.contains(this.uiDialog[0],e)||this._focusTabbable()},_keepFocus:function(t){t.preventDefault(),this._restoreTabbableFocus(),this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){var i,s,o;this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE?(e.preventDefault(),this.close(e)):e.keyCode!==t.ui.keyCode.TAB||e.isDefaultPrevented()||(i=this.uiDialog.find(":tabbable"),s=i.first(),o=i.last(),e.target!==o[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==s[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay((function(){o.trigger("focus")})),e.preventDefault()):(this._delay((function(){s.trigger("focus")})),e.preventDefault()))},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||Array.isArray(i)&&!i.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(t.each(i,(function(i,s){var o;s=t.extend({type:"button"},s="function"==typeof s?{click:s,text:i}:s),o=s.click,i={icon:s.icon,iconPosition:s.iconPosition,showLabel:s.showLabel,icons:s.icons,text:s.text},delete s.click,delete s.icon,delete s.iconPosition,delete s.showLabel,delete s.icons,"boolean"==typeof s.text&&delete s.text,t("<button></button>",s).button(i).appendTo(e.uiButtonSet).on("click",(function(){o.apply(e.element[0],arguments)}))})),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var e=this,i=this.options;function s(t){return{position:t.position,offset:t.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(i,o){e._addClass(t(this),"ui-dialog-dragging"),e._blockFrames(),e._trigger("dragStart",i,s(o))},drag:function(t,i){e._trigger("drag",t,s(i))},stop:function(o,n){var a=n.offset.left-e.document.scrollLeft(),r=n.offset.top-e.document.scrollTop();i.position={my:"left top",at:"left"+(0<=a?"+":"")+a+" top"+(0<=r?"+":"")+r,of:e.window},e._removeClass(t(this),"ui-dialog-dragging"),e._unblockFrames(),e._trigger("dragStop",o,s(n))}})},_makeResizable:function(){var e=this,i=this.options,s=i.resizable,o=this.uiDialog.css("position");s="string"==typeof s?s:"n,e,s,w,se,sw,ne,nw";function n(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:s,start:function(i,s){e._addClass(t(this),"ui-dialog-resizing"),e._blockFrames(),e._trigger("resizeStart",i,n(s))},resize:function(t,i){e._trigger("resize",t,n(i))},stop:function(s,o){var a=(r=e.uiDialog.offset()).left-e.document.scrollLeft(),r=r.top-e.document.scrollTop();i.height=e.uiDialog.height(),i.width=e.uiDialog.width(),i.position={my:"left top",at:"left"+(0<=a?"+":"")+a+" top"+(0<=r?"+":"")+r,of:e.window},e._removeClass(t(this),"ui-dialog-resizing"),e._unblockFrames(),e._trigger("resizeStop",s,n(o))}}).css("position",o)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),i=t.inArray(this,e);-1!==i&&e.splice(i,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||this.document.data("ui-dialog-instances",t=[]),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var i=this,s=!1,o={};t.each(e,(function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(s=!0),t in i.resizableRelatedOptions&&(o[t]=e)})),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",o)},_setOption:function(e,i){var s,o=this.uiDialog;"disabled"!==e&&(this._super(e,i),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:t("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&((s=o.is(":data(ui-draggable)"))&&!i&&o.draggable("destroy"),!s)&&i&&this._makeDraggable(),"position"===e&&this._position(),"resizable"===e&&((s=o.is(":data(ui-resizable)"))&&!i&&o.resizable("destroy"),s&&"string"==typeof i&&o.resizable("option","handles",i),s||!1===i||this._makeResizable()),"title"===e)&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))},_size:function(){var t,e,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),e=Math.max(0,s.minHeight-t),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-t):"none","auto"===s.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map((function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!t(e.target).closest(".ui-dialog").length||!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){var e,i;this.options.modal&&(e=t.fn.jquery.substring(0,4),i=!0,this._delay((function(){i=!1})),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(t){var s;i||(s=this._trackingInstances()[0])._allowInteraction(t)||(t.preventDefault(),s._focusTabbable(),"3.4."!==e&&"3.5."!==e)||s._delay(s._restoreTabbableFocus)}.bind(this)),this.overlay=t("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var t;this.options.modal&&this.overlay&&((t=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",t):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==t.uiBackCompat&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),t.ui.dialog,t.widget("ui.tooltip",{version:"1.13.2",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=t(this).attr("title");return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,e){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",String.prototype.trim.call(i.join(" ")))},_removeDescribedBy:function(e){var i=e.data("ui-tooltip-id"),s=(e.attr("aria-describedby")||"").split(/\s+/);-1!==(i=t.inArray(i,s))&&s.splice(i,1),e.removeData("ui-tooltip-id"),(s=String.prototype.trim.call(s.join(" ")))?e.attr("aria-describedby",s):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,i){var s=this;this._super(e,i),"content"===e&&t.each(this.tooltips,(function(t,e){s._updateContent(e.element)}))},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,(function(i,s){var o=t.Event("blur");o.target=o.currentTarget=s.element[0],e.close(o,!0)})),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter((function(){var e=t(this);if(e.is("[title]"))return e.data("ui-tooltip-title",e.attr("title")).removeAttr("title")})))},_enable:function(){this.disabledTitles.each((function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})),this.disabledTitles=t([])},open:function(e){var i=this,s=t(e?e.target:this.element).closest(this.options.items);s.length&&!s.data("ui-tooltip-id")&&(s.attr("title")&&s.data("ui-tooltip-title",s.attr("title")),s.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&s.parents().each((function(){var e,s=t(this);s.data("ui-tooltip-open")&&((e=t.Event("blur")).target=e.currentTarget=this,i.close(e,!0)),s.attr("title")&&(s.uniqueId(),i.parents[this.id]={element:this,title:s.attr("title")},s.attr("title",""))}
vendor: 4,960 bytes, lines 41-42
41)),this._registerCloseHandlers(e,s),this._updateContent(s,e))},_updateContent:function(t,e){var i=this.options.content,s=this,o=e?e.type:null;if("string"==typeof i||i.nodeType||i.jquery)return this._open(e,t,i);(i=i.call(t[0],(function(i){s._delay((function(){t.data("ui-tooltip-open")&&(e&&(e.type=o),this._open(e,t,i))}))})))&&this._open(e,t,i)},_open:function(e,i,s){var o,n,a,r=t.extend({},this.options.position);function l(t){r.of=t,o.is(":hidden")||o.position(r)}s&&((a=this._find(i))?a.tooltip.find(".ui-tooltip-content").html(s):(i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),a=this._tooltip(i),o=a.tooltip,this._addDescribedBy(i,o.attr("id")),o.find(".ui-tooltip-content").html(s),this.liveRegion.children().hide(),(a=t("<div>").html(o.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),a.removeAttr("id").find("[id]").removeAttr("id"),a.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:l}),l(e)):o.position(t.extend({of:i},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(n=this.delayedShow=setInterval((function(){o.is(":visible")&&(l(r.of),clearInterval(n))}),13)),this._trigger("open",e,{tooltip:o})))},_registerCloseHandlers:function(e,i){var s={keyup:function(e){e.keyCode===t.ui.keyCode.ESCAPE&&((e=t.Event(e)).currentTarget=i[0],this.close(e,!0))}};i[0]!==this.element[0]&&(s.remove=function(){var t=this._find(i);t&&this._removeTooltip(t.tooltip)}),e&&"mouseover"!==e.type||(s.mouseleave="close"),e&&"focusin"!==e.type||(s.focusout="close"),this._on(!0,i,s)},close:function(e){var i,s=this,o=t(e?e.currentTarget:this.element),n=this._find(o);n?(i=n.tooltip,n.closing||(clearInterval(this.delayedShow),o.data("ui-tooltip-title")&&!o.attr("title")&&o.attr("title",o.data("ui-tooltip-title")),this._removeDescribedBy(o),n.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,(function(){s._removeTooltip(t(this))})),o.removeData("ui-tooltip-open"),this._off(o,"mouseleave focusout keyup"),o[0]!==this.element[0]&&this._off(o,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,(function(e,i){t(i.element).attr("title",i.title),delete s.parents[e]})),n.closing=!0,this._trigger("close",e,{tooltip:i}),n.hiding)||(n.closing=!1)):o.removeData("ui-tooltip-open")},_tooltip:function(e){var i=t("<div>").attr("role","tooltip"),s=t("<div>").appendTo(i),o=i.uniqueId().attr("id");return this._addClass(s,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(e)),this.tooltips[o]={element:e,tooltip:i}},_find:function(t){return(t=t.data("ui-tooltip-id"))?this.tooltips[t]:null},_removeTooltip:function(t){clearInterval(this.delayedShow),t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){return(t=t.closest(".ui-front, dialog")).length?t:this.document[0].body},_destroy:function(){var e=this;t.each(this.tooltips,(function(i,s){var o=t.Event("blur");s=s.element;o.target=o.currentTarget=s[0],e.close(o,!0),t("#"+i).remove(),s.data("ui-tooltip-title")&&(s.attr("title")||s.attr("title",s.data("ui-tooltip-title")),s.removeData("ui-tooltip-title"))})),this.liveRegion.remove()}}),!1!==t.uiBackCompat&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),t.ui.tooltip}));
42(()=>{"use strict";const t="aria-selected",e="aria-expanded",i="tabindex";var a;$.widget("ui.tabs",{version:"1.13.2",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(a=/#.*$/,function(t){var e,i;e=t.href.replace(a,""),i=location.href.replace(a,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return t.hash.length>1&&e===i}),_create:function(){var t=this,i=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),i.collapsible||this.tabs.removeAttr(e),Array.isArray(i.disabled)&&(i.disabled=$.uniqueSort(i.disabled.concat($.map(this.tabs.filter(".ui-state-disabled"),(function(e){return t.tabs.index(e)})))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(i.active):this.active=$(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var t=this.options.active,e=this.options.collapsible,i=location.hash.substring(1);return null===t&&(i&&this.tabs.each((function(e,a){if($(a).attr("aria-controls")===i)return t=e,!1}
42)),null===t&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==t&&-1!==t||(t=!!this.tabs.length&&0)),!1!==t&&-1===(t=this.tabs.index(this.tabs.eq(t)))&&(t=!e&&0),!e&&!1===t&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):$()}},_tabKeydown:function(e){const i=this,a=$($.ui.safeActiveElement(this.document[0])).closest("li");let s=this.tabs.index(a),n=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:s+=1;break;case $.ui.keyCode.UP:case $.ui.keyCode.LEFT:n=!1,s-=1;break;case $.ui.keyCode.END:s=this.anchors.length-1;break;case $.ui.keyCode.HOME:s=0;break;case $.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(s);case $.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(s!==this.options.active&&s);default:return}e.preventDefault(),clearTimeout(this.activating),s=this._focusNextTab(s,n),e.ctrlKey||e.metaKey||(a.attr(t,"false"),this.setSelectedTimeout&&clearTimeout(this.setSelectedTimeout),this.setSelectedTimeout=setTimeout((function(){this.setSelectedTimeout=!1,i.tabs.eq(s).attr(t,"true")}),100),this.activating=this._delay((function(){this.option("active",s)}),this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===$.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===$.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===$.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){for(var i=this.tabs.length-1;-1!==$.inArray((t>i&&(t=0),t<0&&(t=i),t),this.options.disabled);)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,i){"active"!==t?(this._super(t,i),"collapsible"===t&&(i||this.tabs.removeAttr(e),this._toggleClass("ui-tabs-collapsible",null,i),i||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(i),"heightStyle"===t&&this._setupHeightStyle(i)):this._activate(i)},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,./:;<=>?@[\]^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=$.map(e.filter(".ui-state-disabled"),(function(t){return e.index(t)})),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!$.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=$()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=$()),this._refresh()},_refresh:function(){const a=this.options,s=a.collapsible;this._setOptionDisabled(a.disabled),this._setupEvents(a.event),this._setupHeightStyle(a.heightStyle),s?this.tabs.not(this.active).attr(t,"false").attr(e,"false").attr(i,-1):this.tabs.not(this.active).attr(t,"false").removeAttr(e).attr(i,-1),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(s?this.active.attr(t,"true").attr(e,"true").attr(i,0):this.active.attr(t,"true").removeAttr(e).attr(i,0),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr(i,0)},_processTabs:function(){var t=this,e=this.tabs,i=this.anchors,a=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",(function(t){$(this).is(".ui-state-disabled")&&t.preventDefault()})).on("focus"+this.eventNamespace,".ui-tabs-anchor",(function(){$(this).closest("li").is(".ui-state-disabled")&&this.blur()})),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map((function(){return $("a",this)[0]})).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=$(),this.anchors.each((function(e,i){var a,s,n,h=$(i).uniqueId().attr("id"),r=$(i).closest("li"),o=r.attr("aria-controls");t._isLocal(i)?(n=(a=i.hash).substring(1),s=t.element.find(t._sanitizeSelector(a))):(a="#"+(n=r.attr("aria-controls")||$({}).uniqueId()[0].id),(s=t.element.find(a)).length||(s=t._createPanel(n)).insertAfter(t.panels[e-1]||t.tablist),s.attr("aria-live","polite")),s.length&&(t.panels=t.panels.add(s)),o&&r.data("ui-tabs-aria-controls",o),r.attr({"aria-controls":n,"aria-labelledby":h}),s.attr("aria-labelledby",h)})),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),e&&(this._off(e.not(this.tabs)
vendor: 5,192 bytes, line 42
42),this._off(i.not(this.anchors)),this._off(a.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return $("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,i,a;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),a=0;i=this.tabs[a];a++)e=$(i),!0===t||-1!==$.inArray(a,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var e={};t&&$.each(t.split(" "),(function(t,i){e[i]="_eventHandler"})),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,e),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var e,i=this.element.parent();"fill"===t?(e=i.height(),e-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each((function(){var t=$(this),i=t.css("position");"absolute"!==i&&"fixed"!==i&&(e-=t.outerHeight(!0))})),this.element.children().not(this.panels).each((function(){e-=$(this).outerHeight(!0)})),this.panels.each((function(){$(this).height(Math.max(0,e-$(this).innerHeight()+$(this).height()))})).css("overflow","auto")):"auto"===t&&(e=0,this.panels.each((function(){e=Math.max(e,$(this).height("").height())})).height(e))},_eventHandler:function(t){var e=this.options,i=this.active,a=$(t.currentTarget).closest("li"),s=a[0]===i[0],n=s&&e.collapsible,h=n?$():this._getPanelForTab(a),r=i.length?this._getPanelForTab(i):$(),o={oldTab:i,oldPanel:r,newTab:n?$():a,newPanel:h};t.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs-loading")||this.running||s&&!e.collapsible||!1===this._trigger("beforeActivate",t,o)||(e.active=!n&&this.tabs.index(a),this.active=s?$():a,this.xhr&&this.xhr.abort(),r.length||h.length||$.error("jQuery UI Tabs: Mismatching fragment identifier."),h.length&&this.load(this.tabs.index(a),t),this._toggle(t,o))},_toggle:function(a,s){const n=this,h=this.options,r=h.collapsible,o=s.newPanel,l=s.oldPanel;function c(){n.running=!1,n._trigger("activate",a,s)}function u(){n._addClass(s.newTab.closest("li"),"ui-tabs-active","ui-state-active"),o.length&&n.options.show?n._show(o,n.options.show,c):(o.show(),c())}this.running=!0,l.length&&h.hide?this._hide(l,h.hide,(function(){n._removeClass(s.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),u()})):(this._removeClass(s.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),l.hide(),u()),l.attr("aria-hidden","true"),r?s.oldTab.attr(t,"false").attr(e,"false"):s.oldTab.attr(t,"false"),o.length&&l.length?s.oldTab.attr(i,-1):o.length&&this.tabs.filter((function(){return 0===$(this).attr(i)})).attr(i,-1),o.attr("aria-hidden","false"),r?s.newTab.attr(t,"true").attr(e,"true").attr(i,0):s.newTab.attr(t,"true").attr(i,0)},_activate:function(t){var e,i=this._findActive(t);i[0]!==this.active[0]&&(i.length||(i=this.active),e=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:e,currentTarget:e,preventDefault:$.noop}))},_findActive:function(t){return!1===t?$():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+$.escapeSelector(t)+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each((function(){$.data(this,"ui-tabs-destroy")?$(this).remove():$(this).removeAttr("role "+i+" aria-live aria-busy "+t+" aria-labelledby aria-hidden "+e)})),this.tabs.each((function(){var t=$(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")})),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var e=this.options.disabled;!1!==e&&(void 0===t?e=!1:(t=this._getIndex(t),e=Array.isArray(e)?$.map(e,(function(e){return e!==t?e:null})):$.map(this.tabs,(function(e,i){return i!==t?i:null}))),this._setOptionDisabled(e))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==$.inArray(t,e))return;e=Array.isArray(e)?$.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,e){t=this._getIndex(t);var i=this,a=this.tabs.eq(t),s=a.find(".ui-tabs-anchor"),n=this._getPanelForTab(a),h={tab:a,panel:n},r=function(t,e){"abort"===e&&i.panels.stop(!1,!0),i._removeClass(a,"ui-tabs-loading"),n.removeAttr("aria-busy"),t===i.xhr&&delete i.xhr};this._isLocal(s[0])||(this.xhr=$.ajax(this._ajaxSettings(s,e,h)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(a,"ui-tabs-loading"),n.attr("aria-busy","true"),this.xhr.done((function(t,a,s){setTimeout((function(){n.html(t),i._trigger("load",e,h),r(s,a)}),1)})).fail((function(t,e){setTimeout((function(){r(t,e)}),1)}))))}
vendor: 13,836 bytes, lines 42-48
42,_ajaxSettings:function(t,e,i){var a=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,s){return a._trigger("beforeLoad",e,$.extend({jqXHR:t,ajaxSettings:s},i))}}},_getPanelForTab:function(t){var e=$(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+e))}}),!1!==$.uiBackCompat&&$.widget("ui.tabs",$.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}})})();
43/*! Hammer.JS - v2.0.8 - 2016-04-23
44 * http://hammerjs.github.io/
45 *
46 * Copyright (c) 2016 Jorik Tangelder;
47 * Licensed under the MIT license */
48!function(t,e,i,n){"use strict";function r(t,e,i){return setTimeout(u(t,i),e)}function s(t,e,i){return!!Array.isArray(t)&&(o(t,i[e],i),!0)}function o(t,e,i){var r;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==n)for(r=0;r<t.length;)e.call(i,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(i,t[r],r,t)}function a(e,i,n){var r="DEPRECATED METHOD: "+i+"\n"+n+" AT \n";return function(){var i=new Error("get-stack-trace"),n=i&&i.stack?i.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=t.console&&(t.console.warn||t.console.log);return s&&s.call(t.console,r,n),e.apply(this,arguments)}}function h(t,e,i){var n,r=e.prototype;(n=t.prototype=Object.create(r)).constructor=t,n._super=r,i&&nt(n,i)}function u(t,e){return function(){return t.apply(e,arguments)}}function c(t,e){return typeof t==ot?t.apply(e&&e[0]||n,e):t}function l(t,e){return t===n?e:t}function p(t,e,i){o(m(e),(function(e){t.addEventListener(e,i,!1)}))}function f(t,e,i){o(m(e),(function(e){t.removeEventListener(e,i,!1)}))}function d(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function v(t,e){return t.indexOf(e)>-1}function m(t){return t.trim().split(/\s+/g)}function g(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function T(t){return Array.prototype.slice.call(t,0)}function y(t,e,i){for(var n=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];g(r,o)<0&&n.push(t[s]),r[s]=o,s++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}function E(t,e){for(var i,r,s=e[0].toUpperCase()+e.slice(1),o=0;o<rt.length;){if((r=(i=rt[o])?i+s:e)in t)return r;o++}return n}function I(e){var i=e.ownerDocument||e;return i.defaultView||i.parentWindow||t}function A(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){c(t.options.enable,[t])&&i.handler(e)},this.init()}function _(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,s=e&yt&&n-r==0,o=e&(It|At)&&n-r==0;i.isFirst=!!s,i.isFinal=!!o,s&&(t.session={}),i.eventType=e,function(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=S(e)),r>1&&!i.firstMultiple?i.firstMultiple=S(e):1===r&&(i.firstMultiple=!1);var s=i.firstInput,o=i.firstMultiple,a=o?o.center:s.center,h=e.center=b(n);e.timeStamp=ut(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=w(a,h),e.distance=x(a,h),function(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};e.eventType!==yt&&s.eventType!==It||(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}(i,e),e.offsetDirection=D(e.deltaX,e.deltaY);var u=P(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=ht(u.x)>ht(u.y)?u.x:u.y,e.scale=o?function(t,e){return x(e[0],e[1],Rt)/x(t[0],t[1],Rt)}(o.pointers,n):1,e.rotation=o?function(t,e){return w(e[1],e[0],Rt)+w(t[1],t[0],Rt)}(o.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,C(i,e);var c=t.element;d(e.srcEvent.target,c)&&(c=e.srcEvent.target),e.target=c}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function C(t,e){var i,r,s,o,a=t.lastInterval||e,h=e.timeStamp-a.timeStamp;if(e.eventType!=At&&(h>Tt||a.velocity===n)){var u=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,l=P(h,u,c);r=l.x,s=l.y,i=ht(l.x)>ht(l.y)?l.x:l.y,o=D(u,c),t.lastInterval=e}else i=a.velocity,r=a.velocityX,s=a.velocityY,o=a.direction;e.velocity=i,e.velocityX=r,e.velocityY=s,e.direction=o}function S(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:at(t.pointers[i].clientX),clientY:at(t.pointers[i].clientY)},i++;return{timeStamp:ut(),pointers:e,center:b(e),deltaX:t.deltaX,deltaY:t.deltaY}}function b(t){var e=t.length;if(1===e)return{x:at(t[0].clientX),y:at(t[0].clientY)};for(var i=0,n=0,r=0;e>r;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:at(i/e),y:at(n/e)}}function P(t,e,i){return{x:e/t||0,y:i/t||0}}function D(t,e){return t===e?_t:ht(t)>=ht(e)?0>t?Ct:St:0>e?bt:Pt}function x(t,e,i){i||(i=Ot);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function w(t,e,i){i||(i=Ot);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function O(){this.evEl=zt,this.evWin=Nt,this.pressed=!1,A.apply(this,arguments)}function R(){this.evEl=Ft,this.evWin=Wt,A.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function M(){this.evTarget=kt,this.evWin=Ht,this.started=!1,A.apply(this,arguments)}function z(t,e){var i=T(t.touches),n=T(t.changedTouches);return e&(It|At)&&(i=y(i.concat(n),"identifier",!0)),[i,n]}function N(){this.evTarget=Ut,this.targetIds={},A.apply(this,arguments)}function X(t,e){var i=T(t.touches),n=this.targetIds;if(e&(yt|Et)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,s,o=T(t.changedTouches),a=[],h=this.target;if(s=i.filter((function(t){return d(t.target,h)})),e===yt)for(r=0;r<s.length;)n[s[r].identifier]=!0,r++;for(r=0;r<o.length;)n[o[r].identifier]&&a.push(o[r]),e&(It|At)&&delete n[o[r].identifier],r++;return a.length?[y(s.concat(a),"identifier",!0),a]:void 0}function Y(){A.apply(this,arguments);var t=u(this.handler,this);this.touch=new N(this.manager,t),this.mouse=new O(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function F(t,e){t&yt?(this.primaryTouch=e.changedPointers[0].identifier,W.call(this,e)):t&(It|At)&&W.call(this,e)}function W(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout((function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)}),Vt)}}function q(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var r=this.lastTouches[n],s=Math.abs(e-r.x),o=Math.abs(i-r.y);if(jt>=s&&jt>=o)return!0}return!1}function k(t,e){this.manager=t,this.set(e)}function H(t){this.options=nt({},this.defaults,t||{}),this.id=pt++,this.manager=null,this.options.enable=l(this.options.enable,!0),this.state=ie,this.simultaneous={},this.requireFail=[]}function L(t){return t&ae?"cancel":t&se?"end":t&re?"move":t&ne?"start":""}function U(t){return t==Pt?"down":t==bt?"up":t==Ct?"left":t==St?"right":""}function V(t,e){var i=e.manager;return i?i.get(t):t}function j(){H.apply(this,arguments)}function G(){j.apply(this,arguments),this.pX=null,this.pY=null}function Z(){j.apply(this,arguments)}function B(){H.apply(this,arguments),this._timer=null,this._input=null}function $(){j.apply(this,arguments)}function J(){j.apply(this,arguments)}function K(){H.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Q(t,e){return(e=e||{}).recognizers=l(e.recognizers,Q.defaults.preset),new tt(t,e)}function tt(t,e){this.options=nt({},Q.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(dt?R:vt?N:ft?Y:O))(t,_)}(this),this.touchAction=new k(this,this.options.touchAction),et(this,!0),o(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function et(t,e){var i,n=t.element;n.style&&(o(t.options.cssProps,(function(r,s){i=E(n.style,s),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}function it(t,i){var n=e.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=i,i.target.dispatchEvent(n)}var nt,rt=["","webkit","Moz","MS","ms","o"],st=e.createElement("div"),ot="function",at=Math.round,ht=Math.abs,ut=Date.now;nt="function"!=typeof Object.assign?function(t){if(t===n||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var r=arguments[i];if(r!==n&&null!==r)for(var s in r)r.hasOwnProperty(s)&&(e[s]=r[s])}return e}:Object.assign;var ct=a((function(t,e,i){for(var r=Object.keys(e),s=0;s<r.length;)(!i||i&&t[r[s]]===n)&&(t[r[s]]=e[r[s]]),s++;return t}),"extend","Use `assign`."),lt=a((function(t,e){return ct(t,e,!0)}),"merge","Use `assign`."),pt=1,ft="ontouchstart"in t,dt=E(t,"PointerEvent")!==n,vt=ft&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),mt="touch",gt="mouse",Tt=25,yt=1,Et=2,It=4,At=8,_t=1,Ct=2,St=4,bt=8,Pt=16,Dt=Ct|St,xt=bt|Pt,wt=Dt|xt,Ot=["x","y"],Rt=["clientX","clientY"];A.prototype={handler:function(){},init:function(){this.evEl&&p(this.element,this.evEl,this.domHandler),this.evTarget&&p(this.target,this.evTarget,this.domHandler),this.evWin&&p(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&f(this.element,this.evEl,this.domHandler),this.evTarget&&f(this.target,this.evTarget,this.domHandler),this.evWin&&f(I(this.element),this.evWin,this.domHandler)}};var Mt={mousedown:yt,mousemove:Et,mouseup:It},zt="mousedown",Nt="mousemove mouseup";h(O,A,{handler:function(t){var e=Mt[t.type];e&yt&&0===t.button&&(this.pressed=!0),e&Et&&1!==t.which&&(e=It),this.pressed&&(e&It&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:gt,srcEvent:t}))}});var Xt={pointerdown:yt,pointermove:Et,pointerup:It,pointercancel:At,pointerout:At},Yt={2:mt,3:"pen",4:gt,5:"kinect"},Ft="pointerdown",Wt="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Ft="MSPointerDown",Wt="MSPointerMove MSPointerUp MSPointerCancel"),h(R,A,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=Xt[n],s=Yt[t.pointerType]||t.pointerType,o=s==mt,a=g(e,t.pointerId,"pointerId");r&yt&&(0===t.button||o)?0>a&&(e.push(t),a=e.length-1):r&(It|At)&&(i=!0),0>a||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),i&&e.splice(a,1))}});var qt={touchstart:yt,touchmove:Et,touchend:It,touchcancel:At},kt="touchstart",Ht="touchstart touchmove touchend touchcancel";h(M,A,{handler:function(t){var e=qt[t.type];if(e===yt&&(this.started=!0),this.started){var i=z.call(this,t,e);e&(It|At)&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:mt,srcEvent:t})}}});var Lt={touchstart:yt,touchmove:Et,touchend:It,touchcancel:At},Ut="touchstart touchmove touchend touchcancel";h(N,A,{handler:function(t){var e=Lt[t.type],i=X.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:mt,srcEvent:t})}});var Vt=2500,jt=25;h(Y,A,{handler:function(t,e,i){var n=i.pointerType==mt,r=i.pointerType==gt;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)F.call(this,e,i);else if(r&&q.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Gt=E(st.style,"touchAction"),Zt=Gt!==n,Bt="compute",$t="auto",Jt="manipulation",Kt="none",Qt="pan-x",te="pan-y",ee=function(){if(!Zt)return!1;var e={},i=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!i||t.CSS.supports("touch-action",n)})),e}();k.prototype={set:function(t){t==Bt&&(t=this.compute()),Zt&&this.manager.element.style&&ee[t]&&(this.manager.element.style[Gt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return o(this.manager.recognizers,(function(e){c(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(v(t,Kt))return Kt;var e=v(t,Qt),i=v(t,te);return e&&i?Kt:e||i?e?Qt:te:v(t,Jt)?Jt:$t}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(!this.manager.session.prevented){var n=this.actions,r=v(n,Kt)&&!ee[Kt],s=v(n,te)&&!ee[te],o=v(n,Qt)&&!ee[Qt];if(r){var a=1===t.pointers.length,h=t.distance<2,u=t.deltaTime<250;if(a&&h&&u)return}return o&&s?void 0:r||s&&i&Dt||o&&i&xt?this.preventSrc(e):void 0}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ie=1,ne=2,re=4,se=8,oe=se,ae=16,he=32;H.prototype={defaults:{},set:function(t){return nt(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(s(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=V(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return s(t,"dropRecognizeWith",this)||(t=V(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(s(t,"requireFailure",this))return this;var e=this.requireFail;return-1===g(e,t=V(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(s(t,"dropRequireFailure",this))return this;t=V(t,this);var e=g(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(e,t)}var i=this,n=this.state;se>n&&e(i.options.event+L(n)),e(i.options.event),t.additionalEvent&&e(t.additionalEvent),n>=se&&e(i.options.event+L(n))}
vendor: 4,518 bytes, line 48
48,tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=he)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(he|ie)))return!1;t++}return!0},recognize:function(t){var e=nt({},t);return c(this.options.enable,[this,e])?(this.state&(oe|ae|he)&&(this.state=ie),this.state=this.process(e),void(this.state&(ne|re|se|ae)&&this.tryEmit(e))):(this.reset(),void(this.state=he))},process:function(t){},getTouchAction:function(){},reset:function(){}},h(j,H,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=e&(ne|re),r=this.attrTest(t);return n&&(i&At||!r)?e|ae:n||r?i&It?e|se:e&ne?e|re:ne:he}}),h(G,j,{defaults:{event:"pan",threshold:10,pointers:1,direction:wt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Dt&&e.push(te),t&xt&&e.push(Qt),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,s=t.deltaX,o=t.deltaY;return r&e.direction||(e.direction&Dt?(r=0===s?_t:0>s?Ct:St,i=s!=this.pX,n=Math.abs(t.deltaX)):(r=0===o?_t:0>o?bt:Pt,i=o!=this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},attrTest:function(t){return j.prototype.attrTest.call(this,t)&&(this.state&ne||!(this.state&ne)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=U(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),h(Z,j,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Kt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&ne)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),h(B,H,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[$t]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,s=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(It|At)&&!s)this.reset();else if(t.eventType&yt)this.reset(),this._timer=r((function(){this.state=oe,this.tryEmit()}),e.time,this);else if(t.eventType&It)return oe;return he},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===oe&&(t&&t.eventType&It?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=ut(),this.manager.emit(this.options.event,this._input)))}}),h($,j,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Kt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&ne)}}),h(J,j,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Dt|xt,pointers:1},getTouchAction:function(){return G.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(Dt|xt)?e=t.overallVelocity:i&Dt?e=t.overallVelocityX:i&xt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&ht(e)>this.options.velocity&&t.eventType&It},emit:function(t){var e=U(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),h(K,H,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Jt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,s=t.deltaTime<e.time;if(this.reset(),t.eventType&yt&&0===this.count)return this.failTimeout();if(n&&s&&i){if(t.eventType!=It)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||x(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=r((function(){this.state=oe,this.tryEmit()}),e.interval,this),ne):oe}return he},failTimeout:function(){return this._timer=r((function(){this.state=he}),this.options.interval,this),he},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==oe&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Q.VERSION="2.0.8",Q.defaults={domEvents:!1,touchAction:Bt,enable:!0,inputTarget:null,inputClass:null,preset:[[$,{enable:!1}],[Z,{enable:!1},["rotate"]],[J,{direction:Dt}],[G,{direction:Dt}
48,["swipe"]],[K],[K,{event:"doubletap",taps:2},["tap"]],[B]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};tt.prototype={set:function(t){return nt(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&oe)&&(r=e.curRecognizer=null);for(var s=0;s<n.length;)i=n[s],2===e.stopped||r&&i!=r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&i.state&(ne|re|se)&&(r=e.curRecognizer=i),s++}},get:function(t){if(t instanceof H)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(s(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(s(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,i=g(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==n&&e!==n){var i=this.handlers;return o(m(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this}},off:function(t,e){if(t!==n){var i=this.handlers;return o(m(t),(function(t){e?i[t]&&i[t].splice(g(i[t],e),1):delete i[t]})),this}},emit:function(t,e){this.options.domEvents&&it(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](e),n++}},destroy:function(){this.element&&et(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},nt(Q,{INPUT_START:yt,INPUT_MOVE:Et,INPUT_END:It,INPUT_CANCEL:At,STATE_POSSIBLE:ie,STATE_BEGAN:ne,STATE_CHANGED:re,STATE_ENDED:se,STATE_RECOGNIZED:oe,STATE_CANCELLED:ae,STATE_FAILED:he,DIRECTION_NONE:_t,DIRECTION_LEFT:Ct,DIRECTION_RIGHT:St,DIRECTION_UP:bt,DIRECTION_DOWN:Pt,DIRECTION_HORIZONTAL:Dt,DIRECTION_VERTICAL:xt,DIRECTION_ALL:wt,Manager:tt,Input:A,TouchAction:k,TouchInput:N,MouseInput:O,PointerEventInput:R,TouchMouseInput:Y,SingleTouchInput:M,Recognizer:H,AttrRecognizer:j,Tap:K,Pan:G,Swipe:J,Pinch:Z,Rotate:$,Press:B,on:p,off:f,each:o,merge:lt,extend:ct,assign:nt,inherit:h,bindFn:u,prefixed:E}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=Q,"function"==typeof define&&define.amd?define((function(){return Q})):"undefined"!=typeof module&&module.exports?module.exports=Q:t.Hammer=Q}(window,document);
49!function(e,a,t,c){"use strict";const n="u-checkbox",i="disabled",l="click";let s={item_type:"SINGLE_CHECKBOX",enable:function(){this.element.prop(i,!1)},disable:function(){this.element.prop(i,!0)},isDisabled:function(){return!0===this.element.prop(i)},setValue:function(e){e!==this._checkedValue&&e!==this._uncheckedValue&&(c.warn("Checkbox item corrected invalid set value."),e=this._uncheckedValue),this.element.prev().val(e),this.node.checked=e===this._checkedValue},getValue:function(){return a("#"+t.escapeCSS(this.id+"_HIDDENVALUE")).val()},isChanged:function(){return this.node.defaultChecked!==(this.getValue()===this._checkedValue)},setStyleTo:function(){return this.element.parent().find("."+n)},displayValueFor:function(e,a){let c=e===this._checkedValue,i=apex.lang.getMessage("APEX.ITEM_TYPE.CHECKBOX."+(c?"CHECKED":"UNCHECKED")),l="";return a?.labelBy&&(l=" aria-labelledby='"+t.escapeHTMLAttr(a.labelBy)+"'"),a?a.disabled?"<span class='"+n+(c?" is-checked":"")+"'"+l+" role='checkbox' aria-disabled='true' aria-checked='"+(c?"true":"false")+"'><span aria-hidden='true' class='u-vh'>"+i+"</span></span>":a.readonly?"<span class='"+n+(c?" is-checked":"")+"'"+l+" role='checkbox' aria-readonly='true' aria-checked='"+(c?"true":"false")+"'><span aria-hidden='true' class='u-vh'>"+i+"</span></span>":"<div class='apex-item-single-checkbox'><input type='checkbox'"+l+(c?" checked":"")+" tabindex='-1'><span class='"+n+"' aria-hidden='true'></span><span class='u-vh' aria-hidden='true'>"+i+"</span></div>":"<span class='"+n+(c?" is-checked":"")+"' role='img' aria-label='"+i+"'></span><span aria-hidden='true' class='u-vh'>"+i+"</span>"},getInteractionSelector:function(){return"."+n+",.apex-item-single-checkbox"},onInteraction:function(e,a,t,c){let n;if("keydown"!==e.type)return e.type===l?(n=a.getValue(t,c),n=n===this._checkedValue?this._uncheckedValue:this._checkedValue,a.setValue(t,c,n)):"activate"===e.type&&(n=this.getValue(),n=n===this._checkedValue?this._uncheckedValue:this._checkedValue,this.setValue(n)),!1},setLabel:function(e){e!==this._label&&(this._label=e,e?(this.element.parent().find("."+n).replaceWith("<label aria-hidden='true' class='"+n+"' for='"+this.id+"'>"+e+"</label>"),this.element.attr("aria-label",e)):this.element.parent().find("."+n).replaceWith("<span class='"+n+"'></span>"))}};
49e.addAttachHandler((function(i){a(".apex-item-single-checkbox > input[type='checkbox']",i).each(((i,h)=>{let d,r,u,p=a(h),o=p.parent(),k=h.id,b=a("#"+t.escapeCSS(k+"_HIDDENVALUE")),f=p.attr("value")||"Y",V=p.attr("data-unchecked-value");void 0===V&&(V="N"),d=p.next("label"),d.length||(d=a('label[for="'+t.escapeCSS(k)+'"]'),d.length?d.attr("class",n):d=a('<span class="'+n+'"></span>'),o.append(d),d.attr("aria-hidden","true")),r=b.val(),r!==f&&r!==V&&(r=V,b.val(r),c.warn("Checkbox item corrected invalid initial value.")),p[0].checked!==(r===f)&&(p[0].checked=p[0].defaultChecked=r===f,c.warn("Checkbox item initial checked state adjusted to match value.")),p.on(l,(()=>{b.val(p[0].checked?f:V)})).parent().on("mousedown","span."+n,(e=>{p[0].focus(),p.trigger(l),e.preventDefault()})),e.create(k,s),u=e(k),u._checkedValue=f,u._uncheckedValue=V}))}))}(apex.item,apex.jQuery,apex.util,apex.debug);
50!function(e,t,n){"use strict";const i=n.hasOwnProperty;e.checkboxAndRadio=function(a,r,o){var l=t.extend({action:null,nullValue:"",inputName:null,urlFunction:null},o),u=t(a,apex.gPageContext$);function c(){u.children(":not(legend)").remove()}function s(e){u.append(e.html)}t(a,apex.gPageContext$).each((function(){let i,o=this,p={enable:function(){t(":"+r,o).prop("disabled",!1).removeClass("apex_disabled_multi"),i=!1},disable:function(){t(":"+r,o).prop("disabled",!0).addClass("apex_disabled_multi"),i=!0},isDisabled:function(){if(void 0!==i)return i;{const e=t(":"+r,o),n=e.length,i=e.filter(":disabled").length;return 0!==n&&n===i}},setValue:function(e){var i=t(":"+r,o),a=[];i.prop("checked",!1),"checkbox"===r?a=n.toArray(e,this.getMultiValueStorage()):a[0]=e;for(var l=0;l<a.length;l++)i.filter("[value='"+n.escapeCSS(a[l])+"']").prop("checked",!0)},hasDisplayValue:function(){return t(this.element).children().length>0},getValue:function(){var e,n;return"checkbox"===r?(e=[],t(":checked",o).each((function(){e[e.length]=this.value}))):(n=t(a+" :checked",apex.gPageContext$),e=0===n.length?"":n.val()),e},nullValue:l.nullValue,setFocusTo:function(){let e=t(":checked",o);return"radio"===r&&0===e.length&&(e=t(":"+r,o)),e.first()},loadingIndicator:function(e){return e.appendTo(u)},displayValueFor:function(e){var i,a,r,l=[],u=t(o);if(null!=e)for(Array.isArray(e)||(e=[e]),i=0;i<e.length;i++)null!=(a=e[i])&&(void 0!==(r=u.find(`[value='${n.escapeCSS(a+"")}']`).attr("data-display"))?l.push(r):l.push(a));return l.join(", ")},getValidity:function(){const e=t(":"+r,o).first().prop("required");return void 0!==e&&!1!==e&&this.isEmpty()?{valid:!1,valueMissing:!0}:{valid:!0}}};"checkbox"===r&&(p.storageType=l.storageType,p.separator=l.separator),l.dependingO
50nSelector&&(p.reinit=function(i){var a,o=this,p=Array.isArray(i)?i:[i];for(c(),a=0;a<p.length;a++)u.append("<input type='"+r+"' value='"+n.escapeHTML(p[a])+"'>");return this.setValue(i,null,!0),function(){e.util.cascadingLov(u,l.ajaxIdentifier,{x01:l.inputName,pageItems:t(l.pageItemsToSubmit,apex.gPageContext$)},{optimizeRefresh:l.optimizeRefresh,dependingOn:t(l.dependingOnSelector,apex.gPageContext$),success:function(e){c(),s(e),o.setValue(i,null,!0)},target:o.node})}}),apex.item.create(this.id,p)})),l.dependingOnSelector&&t(l.dependingOnSelector,apex.gPageContext$).on("change",(function(){u.trigger("apexrefresh")})),u.on("apexrefresh",(function(n){e.util.cascadingLov(u,l.ajaxIdentifier,{x01:l.inputName,pageItems:t(l.pageItemsToSubmit,apex.gPageContext$)},{optimizeRefresh:l.optimizeRefresh,dependingOn:t(l.dependingOnSelector,apex.gPageContext$),success:function(e){s(e),i(e,"default")&&$s(u[0],e.default)},clear:c,target:n.target})})),"REDIRECT_SET_VALUE"===l.action?u.find("input").on("click",l.urlFunction):"SUBMIT"===l.action&&u.find("input").on("click",(function(){apex.submit(u.attr("id"))}))}}(apex.widget,apex.jQuery,apex.util);
51!function(t,e,i,s,a,l){"use strict";const h="contains",r="separated",n="json-array",o="chips",u='<input type="text" class="apex-item-text">',c=".aCombobox",d="data-value",g="pDisplayValue parameter not supported when returnDisplay false",p="pValue and pDisplayValue parameters cannot both contain a value, please provide only one parameter",m="Invalid configuration, manualEntriesItem must have a value to support returnDisplay",f="ITEM_DELETED",v=Array.isArray,V=t=>void 0!==t?.data?.[0]?.opts,x=t=>{let e=[];return t.data.forEach((t=>{v(t.opts)&&t.opts.length&&(e.push({d:t.label,gOpenTag:!0}),e=[...e,...t.opts],e.push({gCloseTag:!0}))})),{fields:t.fields,data:e}},E=t=>Object.keys(t).map((e=>{let i=t[e];return{name:e,index:i.index,searchable:i.searchable||void 0===i.searchable,visible:i.visible||void 0===i.visible}})).sort(((t,e)=>t.index-e.index)),y={ajaxIdentifier:{type:l.dataTypes.string,reactive:!0},ajaxItems:{type:l.dataTypes.string,reactive:!0},choiceTemplate:{type:l.dataTypes.string,reactive:!0},cache:{type:l.dataTypes.boolean,defaultValue:!1,reactive:!0},caseSensitive:{type:l.dataTypes.boolean,defaultValue:!1,reactive:!0},displayValuesAs:{type:l.dataTypes.enum,defaultValue:o,enumValues:[r,o],reactive:!0},fetchOnSearch:{type:l.dataTypes.boolean,defaultValue:!1,reactive:!0},highlightChoices:{type:l.dataTypes.boolean,defaultValue:!0},noResultsHint:{type:l.dataTypes.string,reactive:!0},maxResults:{type:l.dataTypes.number,rangeMin:0,defaultValue:250,setterGetter:!0,reactive:!0},minCharactersSearch:{defaultValue:0,type:l.dataTypes.number,rangeMin:0,reactive:!0},multiValue:{type:l.dataTypes.boolean,defaultValue:!1,reactive:!0},multiSelect:{type:l.dataTypes.boolean,defaultValue:!1,reactive:!0},multiValueStorage:{type:l.dataTypes.enum,defaultValue:r,enumValues:[r,n],reactive:!0},manualEntries:{type:l.dataTypes.boolean,defaultValue:!1},manualEntriesItem:{type:l.dataTypes.string,reactive:!0},matchType:{type:l.dataTypes.enum,defaultValue:h,enumValues:[h,"starts-with"],reactive:!0},multiValueSeparator:{type:l.dataTypes.string,reactive:!0,defaultValue:":"},name:{sync:!1,setterGetter:!0},parentItems:{type:l.dataTypes.string,reactive:!0},parentsRequired:{type:l.dataTypes.boolean,defaultValue:!1},returnDisplay:{type:l.dataTypes.boolean,reactive:!0,defaultValue:!1}},b=["disabled","size","maxlength","autocomplete","placeholder","minlength","value","tabindex","aria-labelledby","aria-describedby","required"];apex.item.ItemComponent._addCommonAttributes(b,y),l._addHyphenCaseAttrNames(y);const S=l._configObservedAttributes(y,b);class C extends t.ItemComponent{choices;initialValueChoices;_wrappedElement$;#t;#e;#i=new Map;#s=!1;#a;#l;#h;#r;#n;#o;#u;#c=!0;#d;#g;#p;#m;#f;#v={maxResults:void 0,minCharactersSearch:void 0,ajaxIdentifier:void 0,ajaxItems:void 0,choiceTemplate:void 0,parentItems:void 0,parentsRequired:void 0,matchType:void 0,fetchOnSearch:void 0,cache:void 0,caseSensitive:void 0,noResultsHint:void 0,multiValue:void 0,manualEntriesItem:void 0,multiSelect:void 0,multiValueSeparator:void 0,returnDisplay:void 0,manualEntries:void 0,multiValueStorage:void 0,highlightChoices:void 0,displayValuesAs:void 0};constructor(t){super(),this._configPrivateState(this.#v),this.#f=t;for(const[t,e]of Object.entries(this.#f))Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>e.value});this._wrappedElement$=a(u),this.setFocusTo=this._wrappedElement$}#V(){return this.#v.multiValue&&!this.#v.multiSelect?this.#v.maxResults+this.getValue().length+this.getManualEntries().length:this.#v.maxResults}
51#x(t,e,i){const s=this.#v;let l;return this.#v.multiValue&&this.#v.displayValuesAs===r&&(i||!i&&!this.#e.isShowingSelectedOnly())&&(l=this.#o={}),this.constructor.searchChoices(a.extend(!0,{},t),e,i,this.#v.highlightChoices,this.#V(),s.matchType,s.caseSensitive,s.returnDisplay,l)}#E(t,e=!1){const i=this.getValue(),s=this.#m,l=V(t);let h=a.extend(!0,{},t);if(h.fields&&!this.#e.options.choiceTemplate&&(this.#e.options.choiceTemplate="<span>"+h.fields.map((t=>{if(!1!==t.visible)return`&"${t.name}".`})).filter((t=>void 0!==t)).join(" - ")+"</span>"),l&&(h=x(h)),h.data=h.data.filter((t=>{const e=(this.#v.multiValue?i:[i]).includes(s?t.r:t.pristineDisplayValue);return t.gOpenTag||t.gCloseTag||s||(t.d=t.r,delete t.r),!this.#v.multiValue||this.#v.multiValue&&this.#v.multiSelect?((this.#v.multiValue&&this.#v.multiSelect||!this.#v.multiValue&&!this.#l)&&(t.s=e),!0):this.#v.multiValue?!e:void 0})),l&&!e){let t=0,e=a.extend(!0,{},h.data);h.data=h.data.filter(((i,s)=>!i.gOpenTag&&!i.gCloseTag&&t<this.#v.maxResults?(t+=1,!0):!!((i.gOpenTag&&!e[s+1].gCloseTag||i.gCloseTag&&!e[s-1].gOpenTag)&&t<this.#v.maxResults)||void 0)),h.data.length&&!h.data[h.data.length-1].gCloseTag&&(h.data[h.data.length]={gCloseTag:!0})}else e||(h.data=h.data.slice(0,this.#v.maxResults));return h}#y(t){return t+"|"+this.#V()}#b(t,e,i=!0){let s;return i?s=this.#x(t,e,!1):(s=t,s.fields&&(s.fields=E(s.fields))),this.#v.cache&&this.#i.set(this.#y(e),{results:s,pristineResults:t}),this.#E(s)}#S(t){return i.util.cascadingLov(this.element,this.ajaxIdentifier,{x01:t,x02:this.#V(),pageItems:a(this.#v.ajaxItems,apex.gPageContext$)},{optimizeRefresh:this.#v.parentsRequired,dependingOn:a(this.#v.parentItems,apex.gPageContext$),loadingIndicatorPosition:"Nothing",target:this._wrappedElement$})}#C(t,e,i){let l=[];if(i){const t=a.extend(!0,{},this.#u);this.#o=a.extend(!0,{},this.#u),t.fields&&(t.fields=E(t.fields)),e(this.#E(t,i))}else if(this.#v.fetchOnSearch){let i;if(this.#v.cache){const e=this.#i.get(this.#y(t));e&&(this.#o=e.pristineResults,i=e.results)}if(this.#v.ajaxIdentifier)if(i)e(this.#E(i));else{const i=this.#S(t);i?i.done((i=>{e(this.#b(i,t))})):e([])}else if(this.choices){if("function"!=typeof this.choices)throw new Error("Invalid data source provided, choices must be an function");i?e(this.#E(i)):this.choices(t,this.#v.matchType,this.caseSensitive,this.#v.maxResults).then((i=>{e(this.#b(i,t,!1))})).catch((t=>{throw new Error(t)}))}else s.warn("No data source provided")}else this.choices||(this.choices={data:[]}),l=this.#x(this.choices,t,!!t),e(this.#E(l))}#w(t){const e="change"+c,i=()=>{this.refresh()};t&&a(t,apex.gPageContext$).off(e,i),this.#v.parentItems&&a(this.#v.parentItems,apex.gPageContext$).on(e,i)}#T(){const t="apexrefresh"+c,i="input"+c,s="change"+c,l="comboSelectFocusOut"+c,h="focusin"+c,r="mousedown"+c;this.element.off(c),this.element.on(t,(()=>{this.refresh()})).on(l,(()=>{const t=a.Event("change");this.#c=!0,this.#v.multiValue?e.unorderedArrayEqual(this.#d||[],this.getValue())&&e.unorderedArrayEqual(this.#g||[],this.getManualEntries())||(t.apexData={oldValue:this.#d,value:this.getValue()},this.#p&&(t.apexData.oldValueManualEntries=this.#g),this.element.trigger(t,t.apexData)):this.getValue()===(this.#d||"")&&this.getManualEntries()===(this.#g||"")||(t.apexData={oldValue:this.#d,value:this.getValue()},this.#p&&(t.apexData.oldValueManualEntries=this.#g),this.#v.manualEntries||(t.apexData.action=f),this.element.trigger(t,t.apexData))})).on(h,(()=>{this.#c&&(this.#c=!1,this.#d=this.getValue(),this.#g=this.getManualEntries())})).on(r,".js-removeChip",(()=>{this.element.has(a(document.activeElement)).length||(this.#c=!1,this.#d=this.getValue(),this.#g=this.getManualEntries())})),this.element.find(".apex-item-comboselect").on(i,(t=>{if(t.stopImmediatePropagation(),t.apexData||!this.#v.multiValue&&this.#v.manualEntries){const e=a.Event("input");if(e.apexData=t.apexData,this.element.trigger(e,e.apexData),("ITEM_SELECTED"===t?.apexData?.action||t?.apexData?.action===f&&this.#v.multiValue)&&!this.#v.manualEntries){const e=a.Event("change");
51e.apexData=t.apexData,e.apexData.oldValue=this.#d,e.apexData.value=this.getValue(),this.#d=this.getValue(),this.element.trigger(e,e.apexData)}}})).on(s,(t=>{t.stopImmediatePropagation()}))}#D(){const t=this.#S("");t?t.done((t=>{this.choices=t})):this.choices.data=[]}#I(t,e){const i=this.#m,s=i?"d":"r",a=i?e:t,l=a?.toLowerCase(),h=V(this.choices);let r;if(!this.#v.fetchOnSearch){let e,i=0,n=h?this.choices.data.length:1;for(;i<n&&!e;){let r,n=0;for(r=h?this.choices.data[i].opts:this.choices.data;n<r.length&&!e;){let i=r[n];this.#v.returnDisplay&&t?i.r===t&&(e=i):(this.#v.caseSensitive&&i[s]===a||!this.#v.caseSensitive&&i[s].toLowerCase()===l)&&(e=i),n+=1}i+=1}e&&(r={text:e[s],value:e.r})}return r}#O(t,e,i=!1,s=!1){const a=this.#m;let l;if(s&&e?l={text:e,value:a?t:e}:s&&!e&&this.#v.fetchOnSearch&&!this.#v.manualEntries?(this._wrappedElement$.val(""),this.#M(t),l={value:t}):a&&(t||e)?(l=this.#I(s?t:void 0,e),this.#v.manualEntries||l||(l={text:t,value:t})):e&&(l=this.#I(e)),this.#p&&this.#A(""),l)this.#a=l.value,this.#v.manualEntries&&(l.value=l.text),l.text&&this._wrappedElement$.val(l.text),this.#l||this._wrappedElement$.attr(d,this.#a);else if(e)if(a){if(!this.#p)throw new Error(m);this.#a=void 0,this.#A(e),i&&this._wrappedElement$.val(e)}else this.#p?(this.#a=void 0,this.#A(e),this.#a=void 0):this.#a=e,i&&this._wrappedElement$.val(e);else this.#a=void 0,this._wrappedElement$.val("").removeAttr(d);return this.#e.setEmpty(),l}#R(t,e){const i=t.toLowerCase();return e.some((e=>this.#v.caseSensitive?t===e:i===e.toLowerCase()))}#N(){const t=this.getManualEntries();if(this.#v.multiValue){if(this.#v.multiValueStorage===n)return JSON.stringify(t);{const e=this.#v.multiValueSeparator;return t.join(e)}}return t}#_(){const t=this.#v.manualEntriesItem;let e;return t&&a(t).length&&(e=a(t).val()),e}#j(){const t=this.#m;let i,s,a;this.#v.multiValue&&(i=[],s=[]),this.#v.manualEntriesItem&&(i=this.#v.multiValue?e.toArray(this.#_(),this.getMultiValueStorage()):this.#_()),this.#h&&(s=this.#v.multiValue?e.toArray(this.#h,this.getMultiValueStorage()):this.#h,this.initialValueChoices&&(a=this.initialValueChoices)),t?this.#v.multiValue?this.setValue(s,this.#v.manualEntriesItem?i:a,!0):s?this.setValue(s,a||void 0,!0):i&&this.setValue(void 0,i):this.#v.multiValue?this.setValue([...i,...s],void 0,!0):s?this.setValue(s,void 0,!0):i&&this.setValue(i,void 0,!0),this.#h=this.#a,this.#r=this.#l}#$(t){const e=this.#v.manualEntriesItem;e&&a(e).length&&a(e).val(t).trigger("change")}#A(t){this.#v.multiValue?(this.#l=this.getManualEntries()).push(t):this.#l=t,this.#$(this.#N())}#P(t,e,i){let s;return s=this.#m?this.#k(i?t:void 0,e,i):this.#k(e,void 0,i),s}#k(t,e,i,s){const l=this.#m,h=v(e?.data);let n,o,u=this.getValue();if(i)if(n={},h){const t=V(e)?e.data[0].opts[0]:e.data[0];n.text=t.d,n.value=t.r}else n.text=l?e:t,n.value=t;else n=this.#I(t,e)||{},this.#v.manualEntries||n.text&&n.value||(n.text=t,n.value=t);if(n.skip=!0,n.text||n.value)l&&!u.includes(n.value)?(o=n.value,this.#v.manualEntries&&(n.value=n.text),n.skip=!1):l||u.includes(n.text)||(o=n.text,n.skip=!1);else if(l&&e){if(o=t,!this.#p)throw new Error(m);this.#R(e,this.getManualEntries())||(this.#A(e),n.text=e,n.value=e,n.skip=!1)}else l||(this.#p?this.#R(t,this.getManualEntries())||(this.#A(t),n.text=t,n.value=t,n.skip=!1):this.#v.multiValue?this.#R(t,u)||(o=t,n.text=t,n.value=t,n.skip=!1):(o=t,n.skip=!1));if(o){const t=apex.lang.getMessage("APEX.CS.OTHERS_GROUP");if(u.push(o),this.#a=u,this.#v.multiValue&&this.#v.displayValuesAs===r){let i,l,r;if(h)l=e;else if(s){if(e)l={data:[{d:e,r:o}]};else if(!e)if(this.#v.fetchOnSearch)l={data:[{d:o,r:o}]};else{const t=this.constructor.choiceRecord(o,this.choices);l={data:[]},t?(l.data.push(t),this.choices.fields&&(l.fields=a.extend(!0,{},this.choices.fields))):l.data.push({d:o,r:o})}}else l=this.#v.fetchOnSearch||this.#o?this.#o:this.choices;if(r=this.constructor.choiceRecord(o,l),this.#u||(this.#u={data:[]}),l?.fields&&(this.#u.fields=l.fields),V(l)){i=r.opts[0],this.#u.data.length&&!V(this.#u)&&(this.#u.data=[{label:t,opts:this.#u.data}]);let e=this.#u.data.find((t=>r.label===t.label));if(e){const t=r.opts[0];e.opts.push(t)}else this.#u.data.push(r)}else if(i=r,V(this.#u)){let e=this.#u.data.find((e=>t===e.label));e?e.opts.push(r):this.#u.data.push({label:t,opts:[r]})}else this.#u.data.push(i);i.s=!0,i.pristineDisplayValue=i.d}}return n}#H(t,e,i=!0,s=!1){if(this.#v.multiValue){const l=this.#m,h=this.getValue(),r=this.getManualEntries();if(this.#v.manualEntries){if(e&&!l)throw new Error(g);if(t&&e)throw new Error(p)}if(this.#v.manualEntries&&(t||e)||!this.#v.manualEntries&&t){const l=this.#L(t||e);let n;if(n=this.#v.manualEntries?e?this.#k(void 0,l):this.#k(l):this.#k(l,e,!!e,s),!n.skip&&(this.#e.addValueChip(n.value,
51n.text),!i)){const t=a.Event("change");t.apexData={oldValue:h,value:this.getValue()},this.#p&&(t.apexData.oldValueManualEntries=r),this.element.trigger(t,t.apexData)}}}}#q(t){const e=(V(this.choices)?x(this.choices):this.choices).data.filter((e=>e.d===t))[0];if(e)return e.r}#G(t){const e=(V(this.choices)?x(this.choices):this.choices).data.filter((e=>e.r===t))[0];if(e)return e.d}#L(t){let i=null==t?void 0:String(t);if(this.#v.multiValue&&this.#v.multiValueStorage===r){const t=new RegExp(e.escapeRegExp(this.#v.multiValueSeparator),"g");i=i?.replace(t,"")}return i}#M(t){const i=this.#v.multiValue?t:[t];let l;l=this.#v.multiValueStorage===n&&this.#v.multiValue?JSON.stringify(i):i.join(this.#v.multiValueSeparator),apex.server.plugin(this.#v.ajaxIdentifier,{p_widget_action:"get-display-values",x03:l,pageItems:a(this.#v.ajaxItems,apex.gPageContext$).add(this.#v.parentItems,apex.gPageContext$)},{loadingIndicator:`#${e.escapeCSS(this.id)} .apex-item-comboselect`}).done((t=>{const e=apex.lang.getMessage("APEX.CS.OTHERS_GROUP");this.#u={data:[]},t?.fields&&(this.#u.fields=t.fields),i.forEach((i=>{const s=this.constructor.choiceRecord(i,t),a=V(t);let l;if(l=s?a?s.opts[0].d:s.d:i,this.#v.displayValuesAs===r)if(a){const t=s?s.label:e,a=this.#u.data.find((e=>t===e.label)),l=s||{label:e,opts:[{r:i,d:i}]},h=l.opts[0];h.s=!0,h.pristineDisplayValue=h.d,a?a.opts.push(h):this.#u.data.push(l)}else{const t=s||{r:i,d:i};t.s=!0,t.pristineDisplayValue=t.d,this.#u.data.push(t)}this.#v.multiValue?this.#e.addValueChip(i,l):this._wrappedElement$.val(l)})),this.element.trigger("apexafterdvfetched")})).fail((t=>{s.error("There was an error when fetching the display value",t)}))}#z(t,e,i=!1){const s=this.getValue(),a=this.#m;let l,h,r,n,o,u;if(a?(l=s.indexOf(t||this.#q(e)),u=this.#v.manualEntries?t?this.#G(t):e:t):(l=s.indexOf(t),u=t),h=l>=0,r=this.getManualEntries(),n=r.indexOf(a?e:t),o=n>=0,h){if(s.splice(l,1),this.#a=s,this.#u){const e=this.#u.data,i=V(this.#u);let s,a=0,l=!1;for(s=i?e.length:1;a<s&&!l;){const s=i?e[a].opts:e;let h=0;for(;h<s.length&&!l;)s[h].r===t&&(l=!0,s.splice(h,1)),h+=1;i&&l&&0===s.length&&e.splice(a,1),a+=1}}}else o&&(r.splice(n,1),this.#l=r,this.#$(this.#N()));i&&(o||h)&&this.#e.removeValueChip(u)}#F(){const t={data:[]},e=this.#m,i=this.element.children("a-optgroup"),s=t=>{const i=[];return t.each(((t,s)=>{const l=[...s.childNodes].filter((t=>t.nodeType===Node.TEXT_NODE)).map((t=>t.nodeValue.trim())).join(""),h={d:l,i:s.getAttribute("icon"),r:s.getAttribute("value")};e||(h.r=l,delete h.d),a(s).children("a-option-column-value").each(((t,e)=>{h.cols=h.cols||[],h.cols.push(e.innerText)})),h.cols&&(this.#n=!0),i.push(h)})),i};if(this.element.children("a-column-metadata").each(((e,i)=>{const s=i.getAttribute("name").toUpperCase(),a=i.getAttribute("index"),l=!("false"===i.getAttribute("searchable")),h=!("false"===i.getAttribute("visible"));t.fields=t.fields||{},t.fields[s]={index:a,searchable:l,visible:h}})),i.length)i.each(((e,i)=>{let l=a(i).children("a-option");if(l.length){const e={label:i.getAttribute("label")};e.opts=s(l),t.data.push(e)}}));else{const e=this.element.children("a-option");t.data=s(e)}return this.element.find("a-optgroup, a-option, a-column-metadata").remove(),t}get defaultValue(){return this.#h}set defaultValue(t){let e;e=null==t?"":t,this.setAttribute("value",String(e)),this.#h=this.#a,this.#r=this.#l}get selectedChoices(){return this.#u}isChanged(){return this.#v.multiValue?!e.unorderedArrayEqual(this.#h||[],this.getValue())||!e.unorderedArrayEqual(this.#r||[],this.getManualEntries()):this.getValue()!==(this.#h||"")}removeValue(t,e){if(this.#v.multiValue){const i=this.#m;if(this.#v.manualEntries){if(e&&!i)throw new Error(g);if(t&&e)throw new Error(p)}else if(e)throw new Error("Property pDisplayValue not supported for this configuration");this.#z(t,e,!0)}}refresh(){this.setValue(""),this.#i.clear(),!this.#v.fetchOnSearch&&this.#v.ajaxIdentifier&&this.#D()}addValue(t,e){this.#H(t,e,!1,!0)}setValue(t,i,s){const l=this.getValue(),h=this.getManualEntries(),r=this.#m,n=v(i?.data),o=(t,e)=>{const i=new Map,s=[];for(const a of t){let t=String(a);!e&&this.#v.manualEntries&&(t=t.toLowerCase()),i.get(t)||(i.set(t,!0),s.push(a))}return s};if(this.#v.manualEntries){if(i&&!r)throw new Error(g);if(t&&i&&!this.#v.multiValue)throw new Error(p)}else if(i&&!t)throw new Error("pValue cannot be undefined, if pDisplayValue is provided");
51if(this.#s){if(this.#v.multiValue){for(const t of l){let e;e=this.#v.manualEntries&&r?this.#G(t):t,this.#e.removeValueChip(e,!0)}for(const t of h)this.#e.removeValueChip(t,!0);if(this.#a=void 0,this.#l=void 0,this.#u=void 0,this.#$(""),this.#v.manualEntries){if(t){const i=t,s=o(v(i)?i:e.toArray(i,this.getMultiValueStorage()));for(const t of s)this.#H(t)}if(i){const t=i,s=o(v(t)?t:e.toArray(t,this.getMultiValueStorage()));for(const t of s)this.#H(void 0,t)}}else{let s,a;if(t&&(s=o(v(t)?t:e.toArray(t,this.getMultiValueStorage()))),s?.length)if(i&&!n&&(a=o(v(i)?i:e.toArray(i,this.getMultiValueStorage()))),!this.#v.fetchOnSearch||this.#v.fetchOnSearch&&(a||n))for(let t=0;t<s.length;t++){let e,l=s[t];if(a)e=a[t]?a[t]:l;else if(n){let t=this.constructor.choiceRecord(l,i);t&&(e={data:[t]},i.fields&&(e.fields=i.fields)),e||(e=l)}this.#H(l,e,!0,!0)}else this.#a=s,this.#u=s.map((t=>({r:t,d:t}))),this.#M(s)}}else{const e=v(t||i);let s,a;if(r){if(t&&(a=this.#L(e?t[0]:t)),this.#v.manualEntries||!n)i&&(s=this.#L(e?i[0]:i));else if(n){let t=this.constructor.choiceRecord(a,i);s=t?(t.opts?t.opts[0]:t).d:a}}else s=this.#L(e?t[0]:t);this.#O(a,s,!0,void 0!==a)}if(!s){const t=a.Event("change");t.apexData={oldValue:l,value:this.getValue()},this.#p&&(t.apexData.oldValueManualEntries=h),this.element.trigger(t,t.apexData)}}else this.#h=t}getValue(){let t=this.#a;return this.#v.multiValue?t=t?[...t]:[]:t||(t=""),t}getSeparator(){return this.#v.multiValue?this.#v.multiValueSeparator:null}getMultiValueStorage(){if(this.#v.multiValue){let t={type:this.#v.multiValueStorage};return this.#v.multiValueStorage===r&&(t.separator=this.#v.multiValueSeparator),t}return null}reinit(t){if(this.#i.clear(),this.setValue(t,null,!0),!this.#v.fetchOnSearch&&this.#v.ajaxIdentifier&&this.#v.parentItems)return()=>{this.#D()}}getManualEntries(){return this.#v.multiValue?[...this.#l||[]]:void 0===this.#l?"":this.#l}isEmpty(){let t=!0;return this.#v.multiValue&&(this.getValue().length||this.getManualEntries().length)?t=!1:this.#v.multiValue||!this.getValue()&&!this.getManualEntries()||(t=!1),t}getValidity(){const t=this.element.attr("required");return void 0!==t&&!1!==t&&this.isEmpty()?{valid:!1,valueMissing:!0}:{valid:!0}}parseChoices(){this.choices=this.#F()}_cleanup(){this.#e&&this.#e.destroy()}_render(t){if(this.#f){for(const[e,i]of Object.entries(this.#f))this.#v[e]=i.value,t&&(t=t.filter((t=>t.attributeName!==i.attrName)));t&&!t.length&&(t=void 0)}if(this.#p=this.#v.manualEntriesItem&&!this.#v.fetchOnSearch&&this.#v.manualEntries,this.#m=!this.#v.manualEntries||this.#v.manualEntries&&!this.#v.fetchOnSearch&&this.#v.returnDisplay,this.#s){if(t)for(const e of t){switch(e.attributeName){case y.minCharactersSearch.attrName:this.#e.options.minCharactersSearch=this.#v.minCharactersSearch;break;case y.fetchOnSearch.attrName:this.#e.options.asyncLoading=this.#v.fetchOnSearch;break;case y.multiSelect.attrName:this.#e.options.multiSelect=this.#v.multiSelect;break;case y.choiceTemplate.attrName:this.#e.options.choiceTemplate=this.#v.choiceTemplate;break;case y.multiValueSeparator.attrName:this.#e.options.multiValueSeparator=this.#v.multiValueSeparator,this.setValue();break;case y.noResultsHint.attrName:this.#e.options.noMatchesMessage=this.#v.noResultsHint;break;case y.manualEntriesItem.attrName:this.setValue(),this.#a=void 0,this.#l=void 0}[y.multiValue.attrName,y.returnDisplay.attrName,y.displayValuesAs.attrName].includes(e.attributeName)&&(this.#s=!1,this._wrappedElement$.remove(),this._wrappedElement$=a(u),this.#a=void 0,this.#l=void 0,this.#$(""),this._cleanup(),this._render()),[y.minCharactersSearch.attrName,y.ajaxIdentifier.attrName,y.ajaxItems.attrName,y.parentItems.attrName,y.returnDisplay.attrName,y.maxResults.attrName].includes(e.attributeName)||this.#i.clear(),e.attributeName===y.parentItems.attrName&&this.#w(e.oldValue)}}else{const t=this.element.find("a-optgroup, a-option, a-column-metadata").length>0;let s;this.#v.fetchOnSearch||!t&&this.choices?!this.#v.fetchOnSearch||!t&&this.initialValueChoices||(this.initialValueChoices=this.#F()):this.parseChoices(),this.#v.multiValue?(this.#t=a("<div><ul><li></li></ul></div>"),this.#t.find("li").append(this._wrappedElement$)):(this.#t=a("<div></div>"),this.#t.filter("div").append(this._wrappedElement$)),this.element.hasClass("apex-item-has-icon")&&(s=this.element.find(".apex-item-icon").detach()),this.element.empty(),this.element.append(this.#t),s&&s[0]&&this.element.append(s),this.#u=void 0,this.#o=void 0,this.#e=i.util.initComboSelect(this.#t,{baseId:this.id,searchIcon:!1,enterable:this.#v.manualEntries,multiValued:this.#v.multiValue,multiSelect:this.#v.multiSelect,expandIcon:!(this.#v.multiValue&&this.#v.manualEntries),useOverflow:!1,multiValueSeparator:this.#v.multiValueSeparator,escapeChoices:!1,maxHeight:480,hasIcons:!0,clearIcon:!0,minCharactersSearch:this.#v.minCharactersSearch,noMatchesMessage:this.#v.noResultsHint,popupClasses:"ui-dialog-combobox",choiceTemplate:this.#v.choiceTemplate,asyncLoading:this.#v.fetchOnSearch,closeOnEmpty:this.#v.manualEntries,displayValuesAs:this.#v.displayValuesAs,choices:(t,e,
51i=!1)=>{this.#C(t,e,i)},isDisabled:function(){return!1},removeValue:t=>this.#m&&this.#v.manualEntries?this.#z(void 0,t):this.#z(t),addValue:(t,e,i)=>this.#P(t,e,i),findChoice:(t,e)=>this.#v.manualEntries?void 0:{d:e,r:t},setValue:(t,e,i)=>this.#O(t,e,!1,i)}),this.#v.manualEntries&&(this.#e.options.autoTagCreation=t=>{const i=this.#v.multiValueSeparator,s=new RegExp(e.escapeRegExp(i));let a;return t.match(s)&&(a=t.split(s).filter(Boolean)),a}),this.#s=!0,this.#w(),this.#T(),this.#j()}this.#v.returnDisplay&&this.#v.fetchOnSearch&&this.#v.manualEntries&&s.error("Invalid configuration, fetchOnSearch must be false to support returnDisplay"),this.#v.returnDisplay&&!this.#v.manualEntriesItem&&this.#v.manualEntries&&s.error(m)}static choiceRecord(t,e){const i=e.data,s=V(e);let l,h,r=0;for(h=s?i.length:1;r<h&&!l;){const e=s?i[r].opts:i;let h=0;for(;h<e.length&&!l;){const n=e[h];if(n.r===t){const t=a.extend(!0,{},n);l=s?{label:i[r].label,opts:[t]}:t}h+=1}r+=1}return l}static searchChoices(t,s,a,l,h,r,n,o,u){const c=t.data,d=V(t),g=d?c.length:1,p=o?"d":"r";let m,f=[],x=0,y=0;for(t.fields&&(m=E(t.fields),u&&(u.fields=t.fields));x<g&&(!h||y<h);){const t=[],g=[];let V,E=0;for(V=d?c[x].opts:c;E<V.length&&(!h||y<h);){const h=V[E];let c,d,f;if(v(h.cols)){let t=0;for(f=[...h.cols];t<h.cols.length&&!d;){const e=h.cols[t];m[t].searchable&&e&&(d=i.util.highlightSearchTerm(e,s,r,n,"a-ComboSelect-itemHighlight"),d&&s&&l&&(h.cols[t]=d)),t+=1}}else c=i.util.highlightSearchTerm(h[p],s,r,n,"a-ComboSelect-itemHighlight");if(c||d||!a){const i={pristineDisplayValue:h[p],i:h.i,cols:h.cols};let s;if(s=l&&c?c:e.escapeHTML(i.pristineDisplayValue),o){if(!h.r)throw new Error("Invalid choice object, r property missing");i.r=h.r,i.d=s}else i.r=s;if(t.push(i),u){const t={i:h.i,r:h.r,d:h[p]};f&&(t.cols=f),g.push(t)}y+=1}E+=1}d&&t.length?f.push({label:c[x].label,opts:t}):f=[...f,...t],u&&g.length&&(u.data||(u.data=[]),d?u.data.push({label:c[x].label,opts:g}):u.data=[...u.data,...g]),x+=1}return{fields:m,data:f}}static get observedAttributes(){return S}static get delegatedAttributes(){return b}static get componentMetaData(){return y}}apex.widget.util.ComboSelect=C}(apex.item,apex.util,apex.widget,apex.debug,apex.jQuery,apex.WebComponent);
52!function(e,t,a,o,n,m,s){"use strict";class i extends apex.widget.util.ComboSelect{item_type="COMBOBOX";constructor(){super({manualEntries:{attrName:"manual-entries",value:!0}})}}"attachInternals"in HTMLElement.prototype?i.formAssociated=!0:s.registerCustomElementToSubmit("a-combobox"),customElements.define("a-combobox",i)}(apex.item,apex.util,apex.widget,apex.debug,apex.jQuery,apex.WebComponent,apex.page);
53!function(e,t,a,s,n,r,i){"use strict";class u extends apex.widget.util.ComboSelect{item_type="SEARCHABLE_SELECT";constructor(){super({manualEntries:{attrName:"manual-entries",value:!1},returnDisplay:{attrName:"return-display",value:!0}})}}"attachInternals"in HTMLElement.prototype?u.formAssociated=!0:i.registerCustomElementToSubmit("a-select"),customElements.define("a-select",u)}(apex.item,apex.util,apex.widget,apex.debug,apex.jQuery,apex.WebComponent,apex.page);
54!function(e,t,a,n,r,l,s,o,i){"use strict";const d=a.getTopApex().jQuery,c="dayFormatter",u="apex_disabled",p="apex-item-datepicker",m="a-DatePicker",f="a-Icon",_="u-vh",D="ui-dialog-datepicker",g="is-selected",h="is-disabled",y="icon-calendar-time",C="icon-calendar",b=m+"-actions",v="ALL",T="DAY",w="HOUR",E="MINUTE",M="YYYY-MM-DD",A='YYYY-MM-DD"T"HH24:MI',S='YYYY-MM-DD"T"HH24:MI:SS',I="YYYYMMDDHH24MI",N="change",x="click",k="id",V="size",$="placeholder",O="valid-example",Y="required",U="maxlength",B="minlength",L="disabled",H="aria-label",P="aria-haspopup",R="tabindex",F="aria-labelledby",K="aria-controls",q="aria-hidden",W="role",j="value",z="name",Q="type",X="title",J="readonly",G="autofocus",Z="autocomplete",ee="aria-describedby",te="aria-expanded",ae="aria-disabled",ne="aria-selected",re="region",le="none",se="link",oe="inline",ie="selectable",de="popup",ce="native",ue="focus",pe="click",me="number",fe="number-of-month",_e="one-month",De="visible",ge="hidden",he=n.getMessage,ye="APEX.DATEPICKER.",Ce=ye+"SELECT_DATE_AND_TIME",be=ye+"SELECT_DATE",ve=ye+"SELECT_DAY",Te=ye+"ISO_WEEK",we=ye+"ISO_WEEK_ABBR",Ee=ye+"SELECT_TIME",Me=ye+"HOUR",Ae=ye+"MINUTES",Se=ye+"AM_PM",Ie=ye+"ACTIONS",Ne=ye+"MONTH",xe=ye+"YEAR",ke=ye+"PREVIOUS_MONTH",Ve=ye+"NEXT_MONTH",$e=ye+"DONE",Oe=ye+"TODAY",Ye=ye+"CLEAR",Ue=ye+"SELECT_MONTH_AND_YEAR",Be=ye+"VISUALLY_HIDDEN_EDIT",Le=ye+"POPUP",He=ye+"VALUE_MUST_BE_BETWEEN",Pe=ye+"VALUE_MUST_BE_ON_OR_AFTER",Re=ye+"VALUE_MUST_BE_ON_OR_BEFORE",Fe=ye+"VALUE_INVALID",Ke="ArrowRight",qe="ArrowLeft",We={getNumberOfDays:function(e,t){let a=e+t;for(;a%7!=0;)a+=1;return a},setMonth:function(e,t){let a=e.getDate();return e.setMonth(t),e.getDate()!==a&&e.setDate(0),e},getMinuteOptions:function(e){let t=e;(e<1||e>60)&&(t=1);const a=Math.ceil(60/t),n=[];for(let e=0;e<a;e++){const a=e*t;n.push(a)}return n},getYearDifference:function(e,t){let a=(e.getTime()-t.getTime())/1e3;return a/=86400,Math.ceil(Math.abs(a/365.25))},findClosestMinute:function(e,t){let a=We.getMinuteOptions(e);return a.push(60),a.reduce(((e,a)=>{const n=Math.abs(e-t),r=Math.abs(a-t);return n===r?e>a?e:a:r<n?a:e}))},checkMinMax:function(e,t,a=r.UNIT.SECOND){return e.minDate&&e.maxDate?r.isSameOrAfter(t,e.minDate,a)&&r.isSameOrBefore(t,e.maxDate,a):e.minDate?r.isSameOrAfter(t,e.minDate,a):!e.maxDate||r.isSameOrBefore(t,e.maxDate,a)},parseMinMax:function(e,t){try{return r.parse(e,t)}catch(e){}try{return r.parse(e,S)}catch(e){}try{return r.parse(e,A)}catch(e){}try{return r.parse(e,M)}catch(e){}try{return r.parse(e,I)}catch(e){}return null},updateMinMax:function(e){e.min?(e.minDate=We.parseMinMax(e.min,e.format),null===e.minDate&&l.error(`Min must (${e.min}) match the following formats:`,[e.format,S,I])):e.minDate=null,e.max?(e.maxDate=We.parseMinMax(e.max,e.format),null===e.maxDate&&l.error(`Max must (${e.max}) match the following formats:`,[e.format,S,I])):e.maxDate=null},moveCalendarView:function(e,t,n,l){let s=n;
54if(We.render(e,t),!s){const n=r.format(We.calcCurrentCalendarDate(e,t,l)||e._currentCalendarDate,M);s="td[data-date='"+a.escapeCSS(n)+"']"}queueMicrotask((function(){d(e._calendar).find(s).trigger("focus")}))},calcCurrentCalendarDate:function(e,t,a){let n=null;if(!a)return n;e._currentCalendarDate&&(n=r.clone(e._currentCalendarDate)),We.checkMinMax(t,a,r.UNIT.DAY)?n=r.clone(a):t.minDate&&r.isBefore(a,t.minDate,r.UNIT.DAY)?n=r.clone(t.minDate):t.maxDate&&r.isAfter(a,t.maxDate,r.UNIT.DAY)&&(n=r.clone(t.maxDate));const l=We.findClosestMinute(t.timeIncrementMinute,n.getMinutes());if(60===l){const e=l-n.getMinutes();n=r.add(n,e,r.UNIT.MINUTE)}else n.setMinutes(l);return n},commitValue:function(e,t){let a;e._pendingValue&&(e._pendingValue.setSeconds(0),a=r.format(e._pendingValue,t.format)),e.setValue(a)},setDateToValue:function(e,t,a,n,r){let l=e._pendingValue||e._currentCalendarDate||new Date;a?([T,v].includes(n)&&(l=new Date(a.getFullYear(),a.getMonth(),a.getDate(),l.getHours(),l.getMinutes(),l.getSeconds(),0)),[w,v].includes(n)&&l.setHours(a.getHours()),[E,v].includes(n)&&l.setMinutes(a.getMinutes())):l=null,e._pendingValue=l,r||e.showTime&&t.displayAs!==oe||We.commitValue(e,t)},elements:{getActive:function(e){return d(e._calendar).find(".is-selected")},getSelectable:function(e){return d(e._calendar).find("td[data-date]")},getFocusElement:function(e){const t=We.elements.getActive(e);return t.length?t:We.elements.getSelectable(e).first()}},addKeyBoardNavigation:function(e,n){We.elements.getSelectable(e).off("keydown.document"+e._elementIDSafe),n.disabled||We.elements.getSelectable(e).on("keydown.document"+e._elementIDSafe,(function(l){const s=r.parse(t(l.currentTarget).attr("data-date"),M);let o,i,c,u="td[data-date='#DATADATE#']",p=n.previousNextDistanceSteps,m=r.UNIT.MONTH;switch(l.code){case"Home":l.preventDefault(),c=d(l.currentTarget).closest("tr").find("td[data-date]").first(),c.trigger("focus");break;case"End":l.preventDefault(),c=d(l.currentTarget).closest("tr").find("td[data-date]").last(),c.trigger("focus");break;case"PageDown":l.preventDefault(),!0===l.shiftKey&&(m=r.UNIT.YEAR,p=1),o=r.add(r.clone(s),1,m),i=r.format(o,M),c=d(e._calendar).find(u.replace("#DATADATE#",a.escapeCSS(i))).first(),c.length?c.trigger("focus"):(e._currentCalendarDate=We.calcCurrentCalendarDate(e,n,r.add(r.clone(e._currentCalendarDate),p,m)),We.moveCalendarView(e,n,null,o));break;case"PageUp":l.preventDefault(),!0===l.shiftKey&&(m=r.UNIT.YEAR,p=1),o=r.subtract(r.clone(s),1,m),i=r.format(o,M),c=d(e._calendar).find(u.replace("#DATADATE#",a.escapeCSS(i))).first(),c.length?c.trigger("focus"):(e._currentCalendarDate=We.calcCurrentCalendarDate(e,n,r.subtract(r.clone(e._currentCalendarDate),p,m)),We.moveCalendarView(e,n,null,o));break;case e._backwardkey:l.preventDefault(),o=r.subtract(r.clone(s),1,r.UNIT.DAY),i=r.format(o,M),c=d(e._calendar).find(u.replace("#DATADATE#",a.escapeCSS(i))).last(),c.length?c.trigger("focus"):(e._currentCalendarDate=We.calcCurrentCalendarDate(e,n,r.lastOfMonth(r.subtract(r.clone(e._currentCalendarDate),p,r.UNIT.MONTH))),We.moveCalendarView(e,n,null,o));break;case e._forwardKey:l.preventDefault(),o=r.add(r.clone(s),1,r.UNIT.DAY),i=r.format(o,M),c=d(e._calendar).find(u.replace("#DATADATE#",a.escapeCSS(i))).first(),c.length?c.trigger("focus"):(e._currentCalendarDate=We.calcCurrentCalendarDate(e,n,r.firstOfMonth(r.add(r.clone(e._currentCalendarDate),p,r.UNIT.MONTH))),We.moveCalendarView(e,n,null,o));break;case"ArrowDown":l.preventDefault(),o=r.add(r.clone(s),7,r.UNIT.DAY),i=r.format(o,M),c=d(e._calendar).find(u.replace("#DATADATE#",a.escapeCSS(i))).first(),c.length?c.trigger("focus"):(e._currentCalendarDate=We.calcCurrentCalendarDate(e,n,r.add(r.clone(e._currentCalendarDate),p,r.UNIT.MONTH)),We.moveCalendarView(e,n,null,o));break;case"ArrowUp":l.preventDefault(),o=r.subtract(r.clone(s),7,r.UNIT.DAY),i=r.format(o,M),c=d(e._calendar).find(u.replace("#DATADATE#",a.escapeCSS(i))).first(),c.length?c.trigger("focus"):(e._currentCalendarDate=We.calcCurrentCalendarDate(e,n,r.subtract(r.clone(e._currentCalendarDate),p,r.UNIT.MONTH)),We.moveCalendarView(e,n,null,o));break;case"Enter":case"Space":l.preventDefault(),l.stopPropagation(),d(this).click();break;case"Escape":n.displayAs===de&&(l.preventDefault(),l.stopPropagation(),We.dialog.close(e))}}))},dialog:{show:function(e){if(!e._dialogOpen){const t={id:e._elementIDSafe+"_dialog",title:n.formatMessageNoEscape(Le,e._elementLabelSafe),isPopup:!0,parentElement:e,returnFocusTo:e._wrappedElement$,noOverlay:!0,draggable:!0,resizable:!1,width:"auto",height:"auto",okButton:!1,dialogClass:D,notification:!1,callback:function(){e._skipFocus=!0,e._popupButton$.removeClass(u),e._popupButton$.attr(te,"false"),e._wrappedElement$.attr(te,"false"),e._dialogOpen=!1,queueMicrotask((function(){e._skipFocus=!1}))},init:function(t){t.empty(),t.append('<input type="hidden" autofocus="autofocus" />'),t.append(e._calendar)},open:function(t){e._dialog$=d(t.target),e._dialog$.closest("."+D).find(".ui-dialog-titlebar").addClass(_),e._popupButton$.addClass(u),e._popupButton$.attr(te,"true"),e._wrappedElement$.attr(te,"true"),e._dialogOpen=!0}};e._dialog$=o.showDialog("",t)}},close:function(e){e._dialog$&&e._dialog$.popup("close")},destroy:function(e){e._dialog$&&(e._dialog$.popup("close"),e._dialog$.closest("."+D).remove(),e._dialog$=null)}},setCalendarHours:function(e,t,a,n){let r=parseInt(a.val(),10);e._ampm&&n&&("PM"===n.val()&&12!==r&&(r+=12),"AM"===n.val()&&12===r&&(r=0));const l=(new Date).setHours(r);We.setDateToValue(e,t,new Date(l),w)},addOrRemoveAttributes:function(e,t,a){"boolean"==typeof a?e.prop(t,a):a?e.attr(t,a):e.removeAttr(t)},createOrUpdateInput:function(e,a){e._wrappedElement$||(e._wrappedElement$=e.element.find("input")),0===e._wrappedElement$.length&&(e._wrappedElement$=t("<input>"),e.element.append(e._wrappedElement$),e._wrappedElement$.val(e.element.val())),e._wrappedElement$.off("change."+e._elementID),e._wrappedElement$.on("change."+e._elementID,(function(){e.refresh()})),e._wrappedElement$.attr(k,e._inputIDSafe),e._wrappedElement$.addClass("apex-item-text"),e._wrappedElement$.addClass("apex-item-datepicker"),e._wrappedElement$.addClass(p),a.displayAs===ce?(e.element.addClass(p+"-"+ce),e.element.removeClass(p+"-"+de),e.element.removeClass(p+"-"+oe),a.minDate&&We.addOrRemoveAttributes(e._wrappedElement$,"min",a.min),a.maxDate&&We.addOrRemoveAttributes(e._wrappedElement$,"max",a.max),a.showTime?(e._wrappedElement$.attr(Q,"datetime-local"),a.format=A):(e._wrappedElement$.attr(Q,"date"),a.format=M)):e._wrappedElement$.attr(Q,"text"),a.displayAs===oe?(e._wrappedElement$.prop(J,!0),e._wrappedElement$.attr(R,"-1"),e._wrappedElement$.attr("aria-roledescription",he(Be)),e._wrappedElement$.addClass(_)):(e._wrappedElement$.prop(J,a.readonly),a.tabindex||""+a.tabindex=="0"?e._wrappedElement$.attr(R,a.tabindex):e._wrappedElement$.removeAttr(R,a.tabindex),e._wrappedElement$.removeAttr("aria-roledescription"),e._wrappedElement$.removeClass(_)),a.displayAs===de?(e._wrappedElement$.attr(P,"dialog"),e._wrappedElement$.attr(W,"combobox")):e._wrappedElement$.removeAttr(P,"dialog"),e._wrappedElement$.prop(L,a.disabled),e._wrappedElement$.prop(Y,a.required),e._inputRegistered||([ue,pe].includes(a.showOn)&&e._wrappedElement$.on(a.showOn,(function(){a.displayAs!==de||e._dialogOpen||e._skipFocus||queueMicrotask((()=>{e.isConnected&&e._wrappedElement$.is(":focus")&&We.dialog.show(e)})),e._skipFocus=!1}
54)),e._wrappedElement$.on("keydown",(function(t){a.displayAs===de&&(["ArrowDown","ArrowUp"].includes(t.key)?(We.dialog.show(e),We.elements.getFocusElement(e).trigger("focus")):["Tab","Escape"].includes(t.key)&&(We.dialog.close(e),"Escape"===t.key&&(t.preventDefault(),t.stopPropagation())))})),e._inputRegistered=!0)},createUpdateOrDeletePopupButton:function(e,a){if(e._popupButton$||(e._popupButton$=e.element.find("button.a-Button--calendar")),a.displayAs===de){if(0===e._popupButton$.length&&(e._popupButton$=je.defaultElements.button(e,a,null,"a-Button--calendar ui-datepicker-trigger"),e.element.append(e._popupButton$)),e._popupButtonRegistered||(e._popupButton$.on(x,(function(t){a.displayAs===de&&(We.dialog.show(e),We.elements.getFocusElement(e).trigger("focus")),t.preventDefault()})),e._popupButtonRegistered=!0),0===e._popupButton$.find("span").length){const a=t("<span>");a.addClass("a-Icon"),e.showTime?a.addClass("icon-calendar-time"):a.addClass("icon-calendar"),e._popupButton$.append(a)}e._elementLabelIDSafe&&e._popupButton$.attr(ee,e._elementLabelIDSafe),a.disabled?e._popupButton$.addClass(u):e._dialogOpen||e._popupButton$.removeClass(u),e._popupButton$.attr("aria-controls",e._inputIDSafe),e._popupButton$.attr(P,"dialog"),a.showOn===ue?e._popupButton$.attr(R,"-1"):e._popupButton$.removeAttr(R),a.showTime?(e._popupButton$.attr(X,he(Ce)),e._popupButton$.attr(H,he(Ce)),e._popupButton$.find("span").addClass(y),e._popupButton$.find("span").removeClass(C)):(e._popupButton$.attr(X,he(be)),e._popupButton$.attr(H,he(be)),e._popupButton$.find("span").removeClass(y),e._popupButton$.find("span").addClass(C))}else e._popupButton$&&e._popupButton$.remove(),e._popupButton$=null,e._popupButtonRegistered=null},render:function(e,t){if(e._calendar&&e._calendar.empty(),t.displayAs!==ce){t.displayAs===de&&(e.element.addClass(p+"--"+de),e.element.removeClass(p+"--"+oe),e.element.removeClass(p+"--"+ce)),t.displayAs===oe&&(e.element.addClass(p+"--"+oe),e.element.removeClass(p+"--"+de),e.element.removeClass(p+"--"+ce)),e._calendar||(e._calendar=je.calendar(e,t));const a=je.container(e,t);e._calendar.append(a),t.displayAs===oe&&(e.element.append(e._calendar),t.disabled?e.element.addClass(u):e.element.removeClass(u)),We.addKeyBoardNavigation(e,t)}}},je={defaultElements:{button:function(e,a,n,r,l,s,o){const i=t("<button>");if(i.addClass("a-Button"),i.attr(Q,"button"),l){i.attr(X,n);const e=t("<span>");e.addClass(f),e.addClass(l),e.attr(q,"true"),i.append(e),i.attr(H,n)}else i.text(n);return i.addClass(r),s&&i.attr(R,s),o&&i.attr(K,o),a.displayAs!==de&&e._elementLabelIDSafe&&i.attr(ee,e._elementLabelIDSafe),i},label:function(e,a){const n=t("<label>");return n.addClass(_),n.attr("for",a),n.text(e),n}},calendar:function(e,a){const n=t("<div>");n.addClass(m),n.attr(W,re);const r=a.showTime?he(Ce):he(be);return e._elementLabelSafe?n.attr(H,e._elementLabelSafe+" - "+r):n.attr(H,r),a.displayAs===oe?n.addClass(m+"-"+oe):n.removeClass(m+"-"+oe),n},container:function(e,a){const n=e._calendar,l=je.header();n.append(l);const s=je.monthYearSelection.container();l.append(s),s.append(je.monthYearSelection.monthSelection(e,a)),s.append(je.monthYearSelection.yearSelection(e,a)),l.append(je.buttons.prevMonth(e,a)),l.append(je.buttons.nextMonth(e,a));const o=t("<div>");o.attr(k,e._calendarTableIDSafe),o.addClass(m+"-calendars"),o.attr(W,re),o.attr(H,he(ve)),n.append(o);for(let n=0;n<a.numberOfMonths;n++){let l=r.clone(e._currentCalendarDate);if(a.numberOfMonths>1){const t=a.numberOfMonths-Math.trunc(a.numberOfMonths/2)-1;l=r.add(l,-t+n,r.UNIT.MONTH),e._calendar.addClass(m+"--multiple")}else e._calendar.removeClass(m+"--multiple");const s=e._elementIDSafe+"_"+r.format(l,"month_YYYY")+"_header",i=t("<div>");i.addClass(m+"-calendarContainer"),i.attr(W,re),i.attr(F,s),o.append(i);const d=t("<div>");d.addClass(m+"-calendarTitle"),d.text(r.format(l,"Month YYYY")),d.attr(k,s),d.attr("aria-live","polite"),i.append(d);const c=je.table.container(l,s);i.append(c),c.append(je.table.head(a)),c.append(je.table.body(e,a,l))}if(a.showTime||a.todayButton||!a.required&&a.displayAs===oe){const t=je.footer.container();if(a.showTime){const n=je.footer.timePicker(e,a);t.append(n)}const r=je.footer.actions(e,a);""!==r.html()&&t.append(r),""!==t.html()&&n.append(t)}return n},header:function(){const e=t("<div>");return e.addClass(m+"-header"),e.attr(H,he(Ue)),e.attr(W,"navigation"),e},table:{container:function(e,a){const n=t("<table>");return n.addClass(m+"-calendar"),n.attr(F,a),n.attr(W,"grid"),n},head:function(e){const a=t("<thead>");a.attr(W,"rowgroup");const n=t("<tr>");if(n.attr(W,"row"),a.append(n),e.displayWeeks===me){const e=t("<th>");n.append(e),e.attr(W,"columnheader"),e.addClass(m+"-weekColumn");const a=t("<span>");a.attr(q,"true"),a.text(he(we)),e.append(a);const r=t("<span>");r.addClass(_),r.text(he(Te)),e.append(r)}for(let e=0;e<=6;e++){const a=t("<th>");n.append(a),a.attr(W,"columnheader");const r=t("<span>");r.attr(q,"true"),r.text(s.getAbbrevDayNames()[e]),a.append(r);const l=t("<span>");l.addClass(_),l.text(s.getDayNames()[e]),a.append(l)}return a},body:function(e,a,n){const s=r.firstOfMonth(n),o=r.localeDayOfWeek(s),i=r.daysInMonth(s),u=We.getNumberOfDays(o,i),p=e._pendingValue,f=new Date,_=t("<tbody>");let D=!0,y=!0,C=t("<tr>");_.attr(W,"rowgroup");for(let b=0;b<u;b++){const u=r.add(r.clone(s),b-o,r.UNIT.DAY),v=parseInt(r.format(u,"DD"),10),w=r.format(u,M);let E=!0,A={disabled:!1,class:null,tooltip:null};if((b%7==0||0===b)&&(C=t("<tr>"),C.attr(W,"row"),_.append(C),a.displayWeeks===me)){const e=r.add(r.clone(u),1,r.UNIT.DAY),a=r.ISOWeek(e),n=t("<th>");C.append(n),n.attr(R,"-1"),n.attr(W,"rowheader"),n.addClass(m+"-weekColumn"),n.text(a),n.attr("abbr",he(Te)+" "+a),n.attr(H,he(Te)+" "+a)}const S=t("<td>");C.append(S);const I=t("<span>");if(I.text(v),I.attr(W,se),S.append(I),(a.showDaysOutsideMonth!==ge||b>=o&&b<o+i)&&e[c]){let a=0;try{if("function"==typeof e[c]){const n=e[c](w);n&&"object"==typeof n?(t.extend(A,n),A.class&&S.addClass(A.class),A.tooltip&&S.attr(X,A.tooltip)):a=1}else a=2;a>0&&D&&(1===a?l.trace("dayFormatter function must return as valid JSON object in format { disabled: false, class: null, tooltip: null }."):l.error("dFormatter must be a function (apex.items.P1_DATE_PICKER.dayFormatter = function () {...};) that returns as valid JSON object."),D=!1)}catch(e){y&&l.error("dayFormatter function returned with an error",e),y=!1}}p&&n&&r.isSame(We.calcCurrentCalendarDate(e,a,p),p,r.UNIT.DAY)&&r.isSame(p,u,r.UNIT.DAY)&&r.isSame(n,u,r.UNIT.MONTH)&&!a.disabled&&!A.disabled&&(e.getValue()||e._pendingValue)?(S.attr(ne,"true"),S.attr(R,"0"),S.addClass(g)):S.attr(R,"-1"),r.isSame(f,u,r.UNIT.DAY)&&(a.showDaysOutsideMonth===ie||r.isSame(n,u,r.UNIT.MONTH))&&(S.attr("aria-current","date"),S.addClass("is-current")),We.checkMinMax(a,u,r.UNIT.DAY)?(b<o||b>=o+i)&&a.showDaysOutsideMonth!==ie?(a.showDaysOutsideMonth===De?(E=!1,S.addClass(h),I.removeAttr(W,se)):a.showDaysOutsideMonth===ge&&(E=!1,S.addClass(h),S.text("")),S.attr(ae,"true")):(S.attr("data-date",w),S.attr(W,"gridcell"),S.on("keydown",(function(t){"Tab"===t.key&&t.shiftKey&&(t.preventDefault(),d(e._calendar).find("."+m+"-nav--next").trigger("focus"))})),a.disabled||A.disabled||!E||S.on(x,(function(){const t=_.closest("."+m+"-calendars").find("td");t.attr(ne,"false"),t.removeClass(g),t.attr(R,"-1"),S.attr(ne,"true"),S.attr(R,"0"),S.addClass(g),a.displayAs===oe&&(e._skipRender=!0),a.showTime||a.displayAs!==de||We.dialog.close(e),We.setDateToValue(e,a,u,T)}))):(E=!1,S.addClass(h),S.attr(ae,"true"),I.removeAttr(W,se)),A.disabled&&(S.addClass(h),S.attr(ae,"true"),I.removeAttr(W,se))}return _}},footer:{container:function(){const e=t("<div>");return e.addClass(m+"-footer"),e},timePicker:function(e,a){const n=t("<div>");n.attr(H,he(Ee)),n.addClass(m+"-timePicker"),n.attr(W,re);const l=t("<span>");l.addClass(f+" icon-time"),l.attr(q,"true"),n.append(l),!a.disabled&&e._initialValueDate&&l.on(x,(function(t){t.stopPropagation(),e._currentCalendarDate=We.calcCurrentCalendarDate(e,a,e._initialValueDate),We.setDateToValue(e,a,r.clone(e._currentCalendarDate),v),We.moveCalendarView(e,a,null,r.clone(e._currentCalendarDate))}));const o=e._elementIDSafe+"_hours",i=t("<div>");i.addClass(m+"-timeHours"),n.append(i),i.append(je.defaultElements.label(he(Me),o));const c=t("<select>");c.attr(k,o),e._elementLabelIDSafe&&c.attr(ee,e._elementLabelIDSafe),c.attr(K,e._calendarTableIDSafe),c.prop(L,a.disabled),i.append(c),a.disabled||c.on("keydown",(function(t){"Tab"===t.key&&t.shiftKey&&(t.preventDefault(),We.elements.getFocusElement(e).trigger("focus"))}));const u=e._pendingValue||e._currentCalendarDate,p=u.getHours();if(e._ampm){let e=p%12;e=e||12;for(let a=1;a<=12;a++){const n=t("<option>");n.text(a),n.attr(j,a),e===a&&n.prop("selected",!0),c.append(n)}}else for(let e=0;e<24;e++){const a=t("<option>");a.text(("0"+e).slice(-2)),a.attr(j,e),p===e&&a.prop("selected",!0),c.append(a)}const _=e._elementIDSafe+"_minutes",D=t("<div>");D.addClass(m+"-timeMinutes"),n.append(D),D.append(je.defaultElements.label(he(Ae),_));const g=t("<select>");if(g.attr(k,_),e._elementLabelIDSafe&&g.attr(ee,e._elementLabelIDSafe),g.attr(K,e._calendarTableIDSafe),D.append(g),We.getMinuteOptions(a.timeIncrementMinute).forEach((function(e){const a=t("<option>");a.text(("0"+e).slice(-2)),a.attr(j,e),e===u.getMinutes()&&a.prop("selected",!0),g.append(a)})),g.on(N,(function(){const t=parseInt(g.val(),10),n=(new Date).setMinutes(t);We.setDateToValue(e,a,new Date(n),E),a.displayAs===oe&&queueMicrotask((function(){d("#"+_).trigger("focus")}))}
54)),g.prop(L,a.disabled),e._ampm){const r=e._elementIDSafe+"_ampm",l=t("<div>");l.addClass(m+"-timeAmPm"),n.append(l),l.append(je.defaultElements.label(he(Se),r));const i=t("<select>");i.attr(k,r),e._elementLabelIDSafe&&i.attr(ee,e._elementLabelIDSafe),i.attr(K,e._calendarTableIDSafe),i.prop(L,a.disabled),l.append(i);const u=t("<option>");u.text(s.getSettings().calendar.amFormat),u.attr(j,"AM"),i.append(u);const f=t("<option>");f.text(s.getSettings().calendar.pmFormat),f.attr(j,"PM"),i.append(f),p>=12?f.prop("selected",!0):u.prop("selected",!0),i.on(N,(function(){We.setCalendarHours(e,a,c,i),a.displayAs===oe&&queueMicrotask((function(){d("#"+r).trigger("focus")}))})),c.on(N,(function(){We.setCalendarHours(e,a,c,i),a.displayAs===oe&&queueMicrotask((function(){d("#"+o).trigger("focus")}))}))}else c.on(N,(function(){We.setCalendarHours(e,a,c),a.displayAs===oe&&queueMicrotask((function(){d("#"+o).trigger("focus")}))}));return n},actions:function(e,a){const n=t("<div>");n.addClass(b),n.attr(W,re),n.attr(H,he(Ie));let l=r.UNIT.DAY;return a.showTime&&(l=r.UNIT.MINUTE),We.checkMinMax(a,new Date,l)&&a.todayButton&&n.append(je.buttons.today(e,a)),a.required||a.displayAs!==oe||n.append(je.buttons.clear(e,a)),a.showTime&&a.displayAs===de&&n.append(je.buttons.close(e,a)),n}},monthYearSelection:{container:function(){const e=t("<div>");return e.attr("aria-live","polite"),e.addClass(m+"-monthPicker"),e},monthSelection:function(e,a){const n=e._elementIDSafe+"_month",l=t("<div>");l.addClass(m+"-month"),l.append(je.defaultElements.label(he(Ne),n));const o=t("<select>");o.attr(k,n),e._elementLabelIDSafe&&o.attr(ee,e._elementLabelIDSafe),o.attr(K,e._calendarTableIDSafe),l.append(o),!a.disabled&&a.changeMonth||(o.prop(L,!0),o.addClass(h));const i=r.clone(e._currentCalendarDate);return s.getMonthNames().forEach((function(n,l){if(We.setMonth(i,l),We.checkMinMax(a,i,r.UNIT.MONTH)){const a=t("<option>");a.text(n),a.attr(j,l),e._currentCalendarDate&&l===e._currentCalendarDate.getMonth()&&a.prop("selected",!0),o.append(a)}})),a.disabled||(o.on(N,(function(){const t=parseInt(o.val(),10);e._currentCalendarDate=We.calcCurrentCalendarDate(e,a,new Date(We.setMonth(e._currentCalendarDate,t))),We.moveCalendarView(e,a,"#"+n)})),a.changeYear||o.on("keydown",(function(t){"Tab"!==t.key||t.shiftKey||(d(e._calendar).find("."+m+"-nav--prev").trigger("focus"),t.preventDefault())}))),l},yearSelection:function(e,a){const n=e._elementIDSafe+"_year",l=t("<div>");l.addClass(m+"-year"),l.append(je.defaultElements.label(he(xe),n));const s=t("<select>");s.attr(k,n),e._elementLabelIDSafe&&s.attr(ee,e._elementLabelIDSafe),s.attr(K,e._calendarTableIDSafe),l.append(s),!a.disabled&&a.changeYear||(s.prop(L,!0),s.addClass(h));let o=e._currentCalendarDate.getFullYear(),i=r.clone(e._currentCalendarDate),c=3*a.yearSelectionRange,u=a.yearSelectionRange;a.minDate&&r.isBefore(a.minDate,i,r.UNIT.YEAR)&&(c=We.getYearDifference(a.minDate,i)),a.maxDate&&r.isAfter(a.maxDate,i,r.UNIT.YEAR)&&(u=We.getYearDifference(a.maxDate,i));for(let e=-c;e<=u;e++){const n=o+e;if(i.setFullYear(n),We.checkMinMax(a,i,r.UNIT.YEAR)){const e=t("<option>");e.text(n),o===n&&e.prop("selected",!0),s.prepend(e)}}return a.disabled||(s.on(N,(function(){const t=parseInt(s.val(),10);e._currentCalendarDate=We.calcCurrentCalendarDate(e,a,new Date(e._currentCalendarDate.setFullYear(t))),We.moveCalendarView(e,a,"#"+n)})),s.on("keydown",(function(t){"Tab"!==t.key||t.shiftKey||(t.preventDefault(),d(e._calendar).find("."+m+"-nav--prev").trigger("focus"))}))),l}},buttons:{prevMonth:function(e,t){let a="-1";t.displayAs!==oe||t.changeMonth||t.changeYear||(a=null);const n=je.defaultElements.button(e,t,he(ke),m+"-nav "+m+"-nav--prev","icon-prev",a,e._calendarTableIDSafe);return t.disabled||(n.on("keydown",(function(a){a.key===e._backwardkey?(e._currentCalendarDate=We.calcCurrentCalendarDate(e,t,r.subtract(r.clone(e._currentCalendarDate),t.previousNextDistanceSteps,r.UNIT.MONTH)),We.moveCalendarView(e,t,"."+m+"-nav--prev")):"Tab"!==a.key||a.shiftKey?"Tab"!==a.key||!a.shiftKey||t.changeMonth||t.changeYear||t.displayAs!==de||(d(e._calendar).find("."+b).children().last(
54).trigger("focus"),a.preventDefault()):(a.preventDefault(),d(e._calendar).find("."+m+"-nav--next").trigger("focus"))})),n.on(x,(function(a){a.preventDefault(),a.stopPropagation(),e._currentCalendarDate=We.calcCurrentCalendarDate(e,t,r.subtract(r.clone(e._currentCalendarDate),t.previousNextDistanceSteps,r.UNIT.MONTH)),We.moveCalendarView(e,t,"."+m+"-nav--prev")}))),n},nextMonth:function(e,t){const a=je.defaultElements.button(e,t,he(Ve),m+"-nav "+m+"-nav--next","icon-next","-1",e._calendarTableIDSafe);return t.disabled||(a.on("keydown",(function(a){"Tab"!==a.key||a.shiftKey?"Tab"===a.key&&a.shiftKey?(a.preventDefault(),d(e._calendar).find("."+m+"-nav--prev").trigger("focus")):a.key===e._forwardKey&&(e._currentCalendarDate=We.calcCurrentCalendarDate(e,t,r.add(r.clone(e._currentCalendarDate),t.previousNextDistanceSteps,r.UNIT.MONTH)),We.moveCalendarView(e,t,"."+m+"-nav--next")):(a.preventDefault(),We.elements.getFocusElement(e).trigger("focus"))})),a.on(x,(function(a){a.preventDefault(),a.stopPropagation(),e._currentCalendarDate=We.calcCurrentCalendarDate(e,t,r.add(r.clone(e._currentCalendarDate),t.previousNextDistanceSteps,r.UNIT.MONTH)),We.moveCalendarView(e,t,"."+m+"-nav--next")}))),a},close:function(e,t){const a=je.defaultElements.button(e,t,he($e),m+"--close",null,null,e._inputIDSafe);return t.disabled||(a.on(x,(function(a){a.preventDefault(),a.stopPropagation(),We.dialog.close(e),We.commitValue(e,t)})),t.changeMonth||t.changeYear||a.on("keydown",(function(a){"Tab"!==a.key||a.shiftKey||(a.preventDefault(),d(e._calendar).find("."+m+"-nav--prev").trigger("focus")),"Tab"!==a.key||!a.shiftKey||t.showTime||t.todayButton||(a.preventDefault(),We.elements.getFocusElement(e).trigger("focus"))}))),a},today:function(e,t){const a="--today",n=je.defaultElements.button(e,t,he(Oe),m+a,null,t.disabled?"-1":null,e._inputIDSafe);return t.disabled||(n.on(x,(function(n){n.preventDefault(),n.stopPropagation(),e._currentCalendarDate=We.calcCurrentCalendarDate(e,t,new Date),e._pendingValue=e._currentCalendarDate,We.setDateToValue(e,t,r.clone(e._currentCalendarDate),v),t.showTime?We.moveCalendarView(e,t,"."+m+a,r.clone(e._currentCalendarDate)):We.dialog.close(e)})),n.on("keydown",(function(a){"Tab"!==a.key||a.shiftKey||t.changeMonth||t.changeYear||t.showTime&&t.displayAs!==oe||(a.preventDefault(),d(e._calendar).find("."+m+"-nav--prev").trigger("focus")),"Tab"===a.key&&a.shiftKey&&!t.showTime&&(a.preventDefault(),We.elements.getFocusElement(e).trigger("focus"))}))),n},clear:function(e,t){const a="--clear",n=je.defaultElements.button(e,t,he(Ye),m+a,null,t.disabled?"-1":null,e._inputIDSafe);return t.disabled||(n.on(x,(function(n){n.preventDefault(),n.stopPropagation(),We.setDateToValue(e,t,null,v),queueMicrotask((function(){d(e._calendar).find("."+m+a).trigger("focus")}))})),n.on("keydown",(function(a){"Tab"!==a.key||a.shiftKey||t.changeMonth||t.changeYear||t.todayButton||t.showTime||(a.preventDefault(),d(e._calendar).find("."+m+"-nav--prev").trigger("focus")),"Tab"!==a.key||!a.shiftKey||t.showTime||t.todayButton||(a.preventDefault(),We.elements.getFocusElement(e).trigger("focus"))}))),n}}},ze={name:{type:i.dataTypes.string,reactive:!0},type:{type:i.dataTypes.string,reactive:!0},value:{type:i.dataTypes.string,reactive:!0},tabindex:{type:i.dataTypes.number,reactive:!0},showTime:{type:i.dataTypes.boolean,defaultValue:!1,reactive:!0},todayButton:{type:i.dataTypes.boolean,defaultValue:!0,reactive:!0},changeMonth:{type:i.dataTypes.boolean,defaultValue:!0,reactive:!0},changeYear:{type:i.dataTypes.boolean,defaultValue:!0,reactive:!0},displayWeeks:{type:i.dataTypes.enum,defaultValue:le,enumValues:[me,le],reactive:!0},format:{type:i.dataTypes.string,defaultValue:s.getDateFormat(),reactive:!0},displayAs:{type:i.dataTypes.enum,defaultValue:de,enumValues:[oe,de,ce],reactive:!0},showOn:{type:i.dataTypes.enum,defaultValue:ue,enumValues:[ue,pe,"image"]},showDaysOutsideMonth:{type:i.dataTypes.enum,enumValues:[De,ge,"selectable"],defaultValue:De,reactive:!0},numberOfMonths:{type:i.dataTypes.number,defaultValue:1,range:{min:0,max:5},reactive:!0},timeIncrementMinute:{type:i.dataTypes.number,defaultValue:1,range:{min:1,max:60},reactive:!0},yearSelectionRange:{type:i.dataTypes.number,defaultValue:5,range:{min:1},reactive:!0},disabled:{type:i.dataTypes.boolean,defaultValue:!1,reactive:!0},required:{type:i.dataTypes.boolean,defaultValue:!1},previousNextDistance:{type:i.dataTypes.enum,defaultValue:_e,enumValues:[fe,_e],reactive:!0},min:{type:i.dataTypes.string,reactive:!0},max:{type:i.dataTypes.string,reactive:!0},placeholder:{type:i.dataTypes.string,reactive:!0},autofocus:{type:i.dataTypes.boolean,reactive:!0},readonly:{type:i.dataTypes.boolean,reactive:!0,defaultValue:!1},autocomplete:{type:i.dataTypes.string,reactive:!0},size:{type:i.dataTypes.number,range:{min:1},reactive:!0},maxlength:{type:i.dataTypes.number,range:{min:1},reactive:!0},minlength:{type:i.dataTypes.number,range:{min:1},reactive:!0},ariaDescribedby:{type:i.dataTypes.string,reactive:!0},ariaLabelledby:{type:i.dataTypes.string,reactive:!0}};i._addHyphenCaseAttrNames(ze);
54const Qe=i._configObservedAttributes(ze);class Xe extends e.ItemComponent{item_type="DATE_PICKER";#e={};constructor(){super(),this._configPrivateState(this.#e)}_render(e){const n=this;if(n._skipRender)n._skipRender=!1;else{if(n._rendered||(n._elementID=n.getAttribute(k),n._elementIDSafe=a.escapeCSS(n._elementID),n._inputIDSafe=n._elementIDSafe+"_input",n._calendarTableIDSafe=n._elementIDSafe+"_calendar"),We.updateMinMax(n.#e),n._elementLabelIDSafe=a.escapeCSS(n.element.attr(F)),n._elementLabelIDSafe&&(n._elementLabelSafe=t("#"+n._elementLabelIDSafe).text()),n.getAttribute("previous-next-distance")===fe?n.#e.previousNextDistanceSteps=n.#e.numberOfMonths:n.#e.previousNextDistanceSteps=1,n._ampm=!1,n._ampm||(n.#e.format.toLowerCase().includes("pm")||n.#e.format.toLowerCase().includes("am"))&&(n._ampm=!0),n._rendered||(We.createOrUpdateInput(n,n.#e),n._initialValueDate=n.getNativeValue()),We.createUpdateOrDeletePopupButton(n,n.#e),n._currentCalendarDate||(n._currentCalendarDate=We.calcCurrentCalendarDate(n,n.#e,n.getNativeValue()||new Date),n._pendingValue=We.calcCurrentCalendarDate(n,n.#e,n.getNativeValue())),n._rendered||[z,F,Q,$,Z,V,U,B,ee,G,R,H
54].forEach((e=>{n._moveAttribute(e,n._wrappedElement$)})),e)for(const t of e)switch(t.attributeName){case j:n._wrappedElement$&&n._wrappedElement$.val(t.newValue),n._currentCalendarDate=We.calcCurrentCalendarDate(n,n.#e,n.getNativeValue()||new Date),n._pendingValue=We.calcCurrentCalendarDate(n,n.#e,n.getNativeValue());break;case z:case ee:case Q:case F:case $:case Z:case V:case U:case B:case G:case R:case H:n._moveAttribute(t.attributeName,n._wrappedElement$);break;case Y:case L:case J:n._wrappedElement$.prop(t.attributeName,n.#e[t.attributeName]);break;case"min":case"max":n._currentCalendarDate=We.calcCurrentCalendarDate(n,n.#e,n.getNativeValue()||new Date),n._pendingValue=We.calcCurrentCalendarDate(n,n.#e,n.getNativeValue());break;case"display-as":We.createOrUpdateInput(n,n.#e),n._calendar&&(n._calendar.remove(),n._calendar=void 0),We.dialog.destroy(n)}"rtl"===n.element.css("direction")?(n._backwardkey=Ke,n._forwardKey=qe):(n._backwardkey=qe,n._forwardKey=Ke),n._rendered&&!e||We.render(n,n.#e),n._rendered=!0}}disconnectedCallback(){queueMicrotask((()=>{this.isConnected||We.dialog.destroy(this)}))}getNativeValue(){const e=this.getValue();if(!e)return null;try{return r.parse(e,this.#e.format)}catch(e){return l.info("The date must match the format "+this.#e.format,e),null}}hasDisplayValue(){if([oe,ce].includes(this.#e.displayAs))return!0;if(this._wrappedElement$.val().length)return!0;{const e=this._wrappedElement$.attr($);return!(!e||!e.length)}}getValidity(){let e,t={valid:!0,valueMissing:!1,rangeOverflow:!1,rangeUnderflow:!1};if(this.#e.required&&this.isEmpty())return t.valid=!1,t.valueMissing=!0,t;if(this.isEmpty())return t;try{e=r.parse(this.getValue(),this.#e.format)}catch(e){return l.trace(e),t.valid=!1,t}return this.#e.minDate&&r.isBefore(e,this.#e.minDate,r.UNIT.SECOND)?(t.rangeUnderflow=!0,t.valid=!1,t):this.#e.maxDate&&r.isAfter(e,this.#e.maxDate,r.UNIT.SECOND)?(t.rangeOverflow=!0,t.valid=!1,t):t}_getValidationMessage(){let e="",t=this.getValidity();if(!t.valid)if(t.valueMissing)e=he("APEX.PAGE_ITEM_IS_REQUIRED");else if(this.#e.minDate&&this.#e.maxDate&&(t.rangeOverflow||t.rangeUnderflow))e=n.formatMessageNoEscape(He,r.format(this.#e.minDate,this.#e.format),r.format(this.#e.maxDate,this.#e.format));else if(t.rangeUnderflow)e=n.formatMessageNoEscape(Pe,r.format(this.#e.minDate,this.#e.format));else if(t.rangeOverflow)e=n.formatMessageNoEscape(Re,r.format(this.#e.maxDate,this.#e.format));else{const t=this.element.attr(O)?this.element.attr(O):r.format(new Date,this.#e.format);e=n.formatMessageNoEscape(Fe,t)}return e}displayValueFor(e){return r.isValid(e)?r.format(e,this.#e.format):e}getPopupSelector(){return this.#e.displayAs===oe?null:"."+D}setFocusTo(){return this.#e.displayAs===oe?We.elements.getFocusElement(this):this._wrappedElement$}refresh(){const e=this;e._currentCalendarDate=We.calcCurrentCalendarDate(e,e.#e,e.getNativeValue()||new Date),e._pendingValue=We.calcCurrentCalendarDate(e,e.#e,e.getNativeValue()),We.render(e,e.#e),e.#e.displayAs===de&&e._dialogOpen&&queueMicrotask((function(){We.elements.getFocusElement(e).trigger("focus")}))}setValue(e,t,a){this._wrappedElement$&&(this._wrappedElement$.val(e),this.refresh()),a||this.element.trigger(N)}static get observedAttributes(){return i._configObservedAttributes(ze,Qe)}static get componentMetaData(){return ze}}customElements.define("a-date-picker",Xe)}(apex.item,apex.jQuery,apex.util,apex.lang,apex.date,apex.debug,apex.locale,apex.message,apex.WebComponent);
55!function(e,t,a,l){"use strict";const i="disabled",n="is-active",r="."+n,s="apex-item-multi-remove",u="."+s,o="apex-item-multi-item",p="."+o,c="data-value",d="aria-expanded",f="apexPopupLovInputTrap",h=l.ui.keyCode,g=a.hasOwnProperty;e.popupLov=function(m){var v,y,b,V,x,S,C,E,O,T,D,I=h.RIGHT,w=h.LEFT,P=!1,j=!1,A=!1,L="",M=m.itemId,_=l("#"+a.escapeCSS(M)+"_lov_btn",apex.gPageContext$),N=_.parent(),R=l("#"+a.escapeCSS(M),apex.gPageContext$),F=l("#"+a.escapeCSS(M)+"_HIDDENVALUE",apex.gPageContext$),U=l().add(_).add(R).add(F),k=l().add(_).add(R);function H(t){var a,l=!1,i=R.val();m.enterable&&i!==L?a=i:t?(a=t,l=!0):a=null,L=i,R.attr(d,"true"),j=!0,R.focus(),e.util.openPopupLov(P,a,l,m,(function(e){e&&(L=e.d||e.v||e,m.multiple&&R.val("")),R.attr(d,"false"),j=!1})),P=!1}function K(e,t){var l=t||e;return"<li class='"+o+"' data-value='"+a.escapeHTMLAttr(e)+"'><span>"+a.escapeHTML(l)+"<button class='"+s+"' type='button' tabindex='-1' aria-label='"+apex.lang.formatMessage("APEX.POPUP_LOV.REMOVE_VALUE",l)+"'><span class='a-Icon icon-multi-remove'></span></button></span></li>"}function $(e,t){"separated"===t?F.val(e.join(m.separator)):F.val(JSON.stringify(e))}function W(){var e,t;(e=R.data("popupLovModelName"))&&(t=apex.model.get(e))&&(t.setData([]),apex.model.release(e)),P=!0}
55if((m=l.extend({dependingOnSelector:null,pageItemsToSubmit:null,height:m.isPopup?280:380,width:null,isPopup:!1,display:"list",nullValue:"",dynamicDefault:!1,initialFetch:"empty",multiple:!1,separator:":",enterable:!1,incrementalSearch:!1,minSearchChars:0,displayColumn:null,iconColumn:null,extraOut:{},persistState:!0},m)).width||m.isPopup||(m.width="grid"===m.display?500:300),void 0===m.nullDisplayValue&&(m.nullDisplayValue=m.nullValue),m.hasDisplayValue=!m.enterable&&m.displayColumn,R.attr("role","combobox").attr("aria-autocomplete","list").attr(d,"false").attr("aria-haspopup","dialog"),m.multiple&&(E=R.attr("placeholder"),"rtl"===(b=R.parent().parent()).css("direction")&&(I=h.LEFT,w=h.RIGHT),(x=b.parent()).css("position","relative"),R.css("flex-grow",0),S=function(){var e=x.width()-_.outerWidth(!0);b.css("max-width",e),V=e-parseInt(b.css("border-left-width"),10)-parseInt(b.css("border-right-width"),10)-parseInt(b.css("padding-left"),10)-parseInt(b.css("padding-right"),10)},e.util.onElementResize(x[0],(function(){S(),v.afterModify()})),e.util.onVisibilityChange(x[0],(function(t){t&&e.util.updateResizeSensors(x[0])})),S(),T=[],D=[],b.children().not(":last").each((function(){var e=l(this);T.push(e.attr(c)),D.push(e.text())})).remove(),b.on("click",(function(e){var t=!1,a=l(e.target),i=a.closest(u),s=a.closest(p);v.isDisabled()||(i[0]?(v.removeValue(s.attr(c)),t=!0):s.find("input")[0]||(b.children(r).removeClass(n),s.addClass(n),t=!0),t&&setTimeout((function(){R.trigger("focus")}),1))})).keydown((function(e){var t=e.which,a=b.children(r);v.isDisabled()||(""===R.val()?t===h.DELETE||t===h.BACKSPACE?(e.target!==R[0]||t!==h.BACKSPACE||a[0]||(a=R.parent().prev()),a[0]&&v.removeValue(a.attr(c))):t===w?a[0]?a.prev()[0]&&(a.removeClass(n),a.prev().addClass(n)):R.parent().prev().addClass(n):t===I&&a[0]&&a.next()[0]&&(a.removeClass(n),(a=a.next()).find("input")[0]||a.addClass(n)):m.enterable&&t===h.ENTER&&R.val()&&(v.addValue(R.val()),R.val(""),e.stopPropagation()),t===h.ENTER&&e.preventDefault())})).focusin((function(e){b.addClass("is-focused"),"INPUT"!==e.target.nodeName.toUpperCase()&&R.trigger("focus")})).focusout((function(){b.removeClass("is-focused").children(r).removeClass(n),m.enterable&&R.val()&&!j&&(v.addValue(R.val()),R.val(""))}))),m.initialSearch="",P=!0,"value"!==m.initialFetch||m.multiple||(m.initialSearch=R.val()),(m.pageItemsToSubmit||m.dependingO
55nSelector)&&(y=m.pageItemsToSubmit||"",m.dependingOnSelector&&(y.length>0&&(y+=","),y+=m.dependingOnSelector),m.itemsToSubmit=y.replace(/#/g,"").split(/\s*,\s*/)),m.itemsToSubmit&&(m.pluginTarget=R[0]),m.isPopup&&!m.enterable?N.mousedown((function(e){const t=l(e.target).parent().hasClass(s);0!==e.button||v.isDisabled()||t||(H(),e.preventDefault())})):_.on("click",(function(){A||H(),A=!1})).mousedown((function(){j&&(A=!0)})),m.enterable&&!m.multiple&&!l.isEmptyObject(m.extraOut)){let e;R.on("focus",(t=>{e=t.target.value})).blur((t=>{let a=t.target.value;e!==a&&v.setValue(a,null,!0)}))}function z(){v.refresh()}R.keydown((function(e){var t,a=e.which,i=!1;a===h.DOWN||a===h.UP?H():a===h.ENTER?e.preventDefault():m.enterable||((i=!(a>=112&&a<=123||a>=33&&a<=46||a<32))&&(e.ctrlKey||e.metaKey)&&{65:1,67:1,86:1,88:1,89:1,90:1}[a]&&(i=!1),i&&((t=l("#"+f))[0]||(t=l("<input id='"+f+"' type='text' class='u-vh' aria-hidden='true' tabindex='-1'>")),t.insertAfter(R).trigger("focus"),setTimeout((function(){var e=t.val();t.val(""),e.length>0?H(e):document.activeElement===t[0]&&R.trigger("focus")}),10)))})),_.on("focus",(function(){R.trigger("focus")})),O={enable:function(){U.prop(i,!1),R.removeClass("apex_disabled"),m.multiple&&b.find(u).prop(i,!1)},disable:function(){U.prop(i,!0),R.addClass("apex_disabled"),m.multiple&&b.find(u).prop(i,!0)},isDisabled:function(){return R.prop(i)},show:function(){k.show()},hide:function(){k.hide()},refresh:function(){R.trigger("apexbeforerefresh"),m.dynamicDefault?apex.server.plugin(m.ajaxIdentifier,{p_widget_action:"get-default-values",pageItems:l(m.pageItemsToSubmit).add(m.dependingOnSelector)},{loadingIndicator:"#"+a.escapeCSS(v.id),success:function(e){let t=[],a=[];for(const l in e)g(e,l)&&(t.push(l),a.push(e[l].display));t.length>0?v.setValue(t,a):v.setValue(m.nullValue,m.nullDisplayValue)}}):v.setValue(m.nullValue,m.nullDisplayValue),function(){let e=m.extraOut;for(const[,t]of Object.entries(e)){let e,a;e="",a=null,$s(t.item,e,a)}}(),W(),R.trigger("apexafterrefresh")},setValue:function(e,i,n){function r(e,t){j||apex.server.plugin(m.ajaxIdentifier,{p_widget_action:"get-row-values",f01:e,pageItems:m.pageItemsToSubmit},{loadingIndicator:"#"+a.escapeCSS(v.id),success:function(e){t(e)}})}function s(e,t){let a,i="";for(a=0;a<e.length;a++)i+=K(e[a],t?t[a]:null);R.parent().before(l(i))}function u(e){let a,i=m.extraOut;if(!l.isEmptyObject(i))for(const[l,r]of Object.entries(i))a=e?e[l]:"",t(r.item).setValue(a,null,n)}if(e||W(),m.multiple){let t=a.toArray(e,this.getMultiValueStorage());$(t,this.storageType),R.val(""),b.children().not(":last").remove(),""!==e&&(i?s(t,a.toArray(i,", ")):r(t,(e=>{let a=[];if(l.isEmptyObject(e))a.concat(t);else for(let l=0;l<t.length;l++)e[t[l]]?a.push(e[t[l]].display):a.push(t[l]);s(t,a)})))}else m.hasDisplayValue?(F.val(e),i||e!==m.nullValue?i?(R.val(i),l.isEmptyObject(m.extraOut)||r(e,(t=>{l.isEmptyObject(t)?u():u(t[e].columns)}))):e?r(e,(t=>{l.isEmptyObject(t)?(R.val(e),u(e)):(R.val(t[e].display),u(t[e].columns))})):(R.val(""),u()):(R.val(m.nullDisplayValue),u())):(R.val(e),l.isEmptyObject(m.extraOut)||r(e,(t=>{l.isEmptyObject(t)?u():u(t[e].columns)})))},addValue:function(e,t){if(m.multiple){let a,i;if(i=!0,b.children().not(":last").each((function(){if(l(this).attr(c)===e)return i=!1,!1})),i){let i=[];a=l(K(e,t)),R.parent().before(a),b.children().not(":last").each((function(){i.push(l(this).attr(c))})),$(i,this.storageType),R.trigger("change")}}},removeValue:function(e){if(m.multiple){let t=[],a=[];b.children().not(":last").each((function(){l(this).attr(c)===e&&t.push(this)})),l(t).remove(),b.children().not(":last").each((function(){a.push(l(this).attr(c))})),$(a,this.storageType),t.length&&R.trigger("change")}},isChanged:function(){var e=this.getValue();return Array.isArray(e)&&(e=e.join(m.separator)),C!==e},getValue:function(){return m.multiple?a.toArray(F.val(),this.getMultiValueStorage()):m.hasDisplayValue?F.val():R.val()},hasDisplayValue:function(){const e=l(this.node),t=m.multiple?this.getValue():e.val()||this.getValue(),a=e.attr("placeholder");return!!(a&&a.length>0)||!(!m.multiple||t?.length||!b.children().not(":last").length)||!(!t||!t.length)},afterModify:function(){if(m.multiple){let e,t,a=R.parent(),l=V,i=l;const n=parseInt(a.css("margin-left"),10)+parseInt(a.css("margin-right"),10);if(E&&R.attr("placeholder",this.isEmpty()?E:""),a=a.prev(),!this.isEmpty()&&a.length>0)for(t=a.offset().top;i-=a.outerWidth(!0),a=a.prev(),a.length&&(e=a.offset().top,e===t);)t=e;i<60&&(i=l),R.css("max-width",i-n)}},setFocusTo:function(){return R},displayValueFor:function(e){var t,i,n;if(m.hasDisplayValue){if(m.multiple){if(i=a.toArray(e,this.getMultiValueStorage()),(n=this.getValue()).length!==i.length)return e;for(t=0;t<i.length;t++)if(i[t]!==n[t])return e;return l.map(b.children().not(":last"),(function(e){return l(e).text()})).join(", ")}if(e===this.getValue())return l(this.node).val()}return e},getPopupSelector:function(){return".ui-dialog-popuplov"},getValidity:function(){const e=R.prop("required");return void 0!==e&&!1!==e&&this.isEmpty()?{valid:!1,valueMissing:!0}:{valid:!0}},nullValue:m.nullValue,storageType:m.multiple?m.storageType:null,separator:m.multiple?m.separator:null},m.itemsToSubmit&&(O.reinit=function(e,t){return this.setValue(e,t,!0),function(){W()}}),t.create(M,O),v=apex.item(M),m.multiple&&(v.setValue(T,D,!0),v.afterModify()),L=R.val(),C=v.getValue(),Array.isArray(C)&&(C=C.join(m.separator)),m.dependingO
55nSelector&&l(m.dependingOnSelector).on("change",z),R.on("apexrefresh",z)}}(apex.widget,apex.item,apex.util,apex.jQuery);
56!function(e,t,n,a,i){"use strict";e.selectList=function(a,i){let l=n.extend({optionAttributes:null,nullValue:""},i),o=n(a,apex.gPageContext$);function p(){"nullValue"in i?n('option[value!="'+t.escapeCSS(l.nullValue)+'"]',o).remove():n("option",o).remove(),n("optgroup",o).remove()}function s(e){var t,n,a,i,p="";for(t=0;t<e.values.length;t++)n=e.values[t-1],a=e.values[t],i=e.values[t+1],a.g&&(n&&n.g===a.g||(p=p+'<optgroup label="'+a.g+'">')),p=p+'<option value="'+(a.r?a.r:"")+'" '+(l.optionAttributes?l.optionAttributes:"")+">"+(a.d?a.d:"")+"</option>",a.g&&(i&&i.g===a.g||(p+="</optgroup>"));o.append(p)}function u(t){e.util.cascadingLov(o,l.ajaxIdentifier,{pageItems:n(l.pageItemsToSubmit,apex.gPageContext$)},{optimizeRefresh:l.optimizeRefresh,dependingOn:n(l.dependingOnSelector,apex.gPageContext$),success:function(e){s(e),$s(o[0],e.default)},clear:p,target:t.target})}o.each((function(){let a={nullValue:l.nullValue,storageType:l.storageType,separator:l.separator};
56l.dependingOnSelector&&(a.reinit=function(u,r){const c=this;let g=u,d=r||g;return"nullValue"in i?n('option[value!="'+t.escapeCSS(a.nullValue)+'"]',o).remove():n("option",o).remove(),i.nullValue!==g&&o.append("<option value='"+t.escapeHTML(g)+"'>"+t.escapeHTML(d)+"</option>"),this.setValue(g,null,!0),function(){e.util.cascadingLov(o,l.ajaxIdentifier,{pageItems:n(l.pageItemsToSubmit,apex.gPageContext$)},{optimizeRefresh:l.optimizeRefresh,dependingOn:n(l.dependingOnSelector,apex.gPageContext$),success:function(e){p(),s(e),c.setValue(g,null,!0)},target:c.node})}}),a.hasDisplayValue=function(){let e=n(this.element).attr("multiple");if(void 0!==e&&!1!==e)return n(this.element).children().length>0;{let e=n(this.element).find(":selected").text();return!!(e&&e.length>0)}},apex.item.create(this.id,a)})),l.dependingOnSelector&&n(l.dependingOnSelector,apex.gPageContext$).on("change",u),o.on("apexrefresh",u)},n((()=>{a.add([{name:"a-select-list-redirect",choices:[],action:function(e,a,l){let o;const p=n(e.target).val();switch(l.to){case"url":o=p;break;case"page":o=t.makeApplicationUrl({pageId:p})}i.redirect(o)}},{name:"a-select-list-redirect-set-value",choices:[],action:function(e,a,l){let o=t.makeApplicationUrl({itemNames:[e.target.id],itemValues:[n(e.target).val()]});l&&l.dialogCs&&(o+=`&p_dialog_cs=${l.dialogCs}`),i.redirect(o)}}])}))}(apex.widget,apex.util,apex.jQuery,apex.actions,apex.navigation);
57!function(t,e,a,n,l){"use strict";const r=/V|RN|TM|EEEE/,i=a.formatNumber,u=a.toNumber,o=(t,e)=>{let a=u(t,e);return isNaN(a)||(t=i(a,e)),t.trim()},m=(t,e)=>{let a=t.element;if(a[0].setCustomValidity(""),""===e||null===e)a.val(e);else{let l,r,o,m=!0,s=t._format,_=u(e,s);r=t._min,null!=r&&(r=u(r)),o=t._max,null!=o&&(o=u(o)),isNaN(_)?m=!1:(s&&(e=i(_,s).trim()),null!=r&&null!=o?(_<r||_>o)&&(m=!1):null!=r?_<r&&(m=!1):null!=o&&_>o&&(m=!1)),a.val(e),m||(l=null!=r&&null!=o?n.formatMessage("APEX.NUMBER_FIELD.VALUE_NOT_BETWEEN_MIN_MAX",i(r,s),i(o,s)):null!=r?n.formatMessage("APEX.NUMBER_FIELD.VALUE_LESS_MIN_VALUE",i(r,s)):null!=o?n.formatMessage("APEX.NUMBER_FIELD.VALUE_GREATER_MAX_VALUE",i(o,s)):n.getMessage("APEX.NUMBER_FIELD.VALUE_INVALID"),a[0].setCustomValidity(l))}},s={item_type:"NUMBER",setValue:function(t,e,a){this._noFormat?this.element.val(t):m(this,t),a||(this._preventChangeHandler=!0)},getValue:function(){let t=this.element.val();return this._noFormat||(t=o(this.element.val(),this._format)),t},isChanged:function(){return this.node.value!==this.node.defaultValue},displayValueFor:function(t){return this._noFormat?t:o(t,this._format)},getNativeValue:function(){return u(this.element.val(),this._format)}};t.addAttachHandler((function(e){l("input.apex-item-number",e).each((function(){let e,a=l(this),n=this.id;a.on("change",(()=>{e._preventChangeHandler?e._preventChangeHandler=!1:e._noFormat||m(e,a.val())})),t.create(n,s),e=t(n),e._format=a.attr("data-format")||null,r.test(e._format)&&(e._noFormat=!0),e._min=a.attr("data-min")||null,e._max=a.attr("data-max")||null,e._preventChangeHandler=!1,e._noFormat||m(e,a.val())}))}))}(apex.item,apex.util,apex.locale,apex.lang,apex.jQuery);
58!function(e,t){"use strict";const a="NONE",n="BOTH",s=/\s+$/,i=/^\s+/;let r=(e,t)=>(t!==a&&(e=null==e?"":""+e,"UPPER"===t?e=e.toUpperCase():"LOWER"===t&&(e=e.toLowerCase())),e),l=(e,t)=>("NONE"!==t&&(e=null==e?"":""+e,"LEADING"!==t&&t!==n||(e=e.replace(i,"")),"TRAILING"!==t&&t!==n||(e=e.replace(s,""))),e),h={item_type:"TEXT",setValue:function(e,t,a){e=r(e,this._textCase),e=l(e,this._whitespaceTrim),this.element.val(e),a||(this._preventChangeHandler=!0)},getValue:function(){let e=this.element.val();return e=r(e,this._textCase),e=l(e,this._whitespaceTrim),e}};e.addAttachHandler((function(s){t(".apex-item-text.text_field",s).each((function(){let s,i=t(this),p=this.id,c=i.attr("data-trim-spaces")||n,u=i.attr("data-text-case")||a;i.on("change",(()=>{if(s._preventChangeHandler)return void(s._preventChangeHandler=!1);let e=i.val();e=r(e,u),e=l(e,c),i.val(e)})),i.on("keypress",(e=>{const t=i.data("enterSubmit"),a=i.data("isPageItemType"),n=this.name,s=i.hasClass("apex_disabled");if(a&&t&&!s)return apex.submit({request:n,submitIfEnter:e})})),e.create(p,h),s=e(p),s._whitespaceTrim=c,s._textCase=u,s._preventChangeHandler=!1}))}))}(apex.item,apex.jQuery);
59!function(e,t,a){"use strict";
59const n=".apex-item-group--textarea",s="has-error",r="aria-describedby",i="NONE",l="LEADING",c="BOTH",o=/\s+$/,u=/^\s+/;let h=(e,t)=>(t!==i&&(e=null==e?"":""+e,t!==l&&t!==c||(e=e.replace(u,"")),"TRAILING"!==t&&t!==c||(e=e.replace(o,""))),e),p={show:function(){this.element.closest(n).show()},hide:function(){this.element.closest(n).hide()},setValue:function(e,t,a){e=h(e,this._whitespaceTrim),this.element.val(e),this._charCount&&this._charCount(),a||(this._preventChangeHandler=!0)},getValue:function(){let e=this.element.val();return e=h(e,this._whitespaceTrim),e}},d=void 0!==document.createElement("textarea").style.resize;e.addAttachHandler((function(n){t("textarea.apex-item-textarea",n).each((function(){let o,m,x,g,_=0,f=0,v=null,C=this,w=t(C),z=C.id,R=w.attr("data-trim-spaces")||c,b=w.attr("data-resizable")||!1,H=w.attr("data-counter")||!1,T=()=>{v.removeClass("apex-item-textarea-counter--error apex-item-textarea-counter--warning"),x.html(_),_>0?v.show():v.hide(),m&&(f>95?v.addClass("apex-item-textarea-counter--error"):f>=90&&v.addClass("apex-item-textarea-counter--warning"))},I=a.debounce(T,200);function N(e){let t=w.val();if(_=t.replace(/\n/g,"xx").length,m){if(_>m){let e=_-m,a=C.selectionStart,n=C.selectionEnd;w.val(t.substring(0,n-e)+t.substring(n)),n-=e,_=m,a<n&&(a=n),C.setSelectionRange(a,n),w.addClass(s)}else w.hasClass(s)&&w.removeClass(s);f=_/m*100}v&&(e?I():T())}if(d?w.css("resize",b?"both":"none"):b&&function(e){let a,n,s=null,r=null;function i(){t(document).off("mousemove.apex_startResize").off("mouseup.apex_startResize"),e.css("opacity",1)}a=parseInt(e.css("min-width"),10)||20,n=parseInt(e.css("min-height"),10)||20,e.after('<div class="apex_size_bar"><div class="apex_size_grip"></div></div>'),t("div.apex_size_bar, div.apex_size_grip",e.parent()).mousedown((function(l){return s=e.width()-l.pageX,r=e.height()-l.pageY,e.css("opacity",.25),t(document).on("mousemove.apex_startResize",(function(i){return function(t,i){if(e.height(Math.max(n,r+t.pageY)+"px"),i){let n=Math.max(a,s+t.pageX);e.width(n)}return!1}(i,"se-resize"===t(l.currentTarget).css("cursor"))})).on("mouseup.apex_startResize",i),!1})),e.parent().css("display:inline-block")}(w),H){let e=w.attr(r)||"",s="#"+a.escapeCSS(z);m=parseInt(w.attr("data-max-char")||0,10),e.length>0&&(e=" "+e),e=z+"_CHAR_COUNT"+e,v=t(s+"_CHAR_COUNT",n),x=t(s+"_CHAR_COUNTER",n),w.attr(r,e)}else m=parseInt(w.attr("maxlength")||0,10);g=m>0||H,g&&(w.on("change input",N),N()),w.closest(".a-GV-columnItem")[0]&&w.addClass("js-uses-enter"),R!==i&&w.on("change",(()=>{if(o._preventChangeHandler)return void(o._preventChangeHandler=!1);let e,t=C.selectionStart,a=C.selectionEnd,n=w.val();R!==l&&R!==c||(e=n.match(u),e&&(e=e[0].length,t-=e,t<0&&(t=0),a-=e,a<0&&(a=0))),n=h(n,R),a>n.length&&(a=n.length,t>a&&(t=a)),w.val(n),C.setSelectionRange(t,a),g&&N()})),e.create(z,p),o=e(z),g&&(o._charCount=N),o._whitespaceTrim=R,o._preventChangeHandler=!1}))}))}(apex.item,apex.jQuery,apex.util);
60!function(e,t,a){"use strict";apex.widget.yesNo=function(r,i){var c;c="SWITCH"===i?t(":radio","#"+a.escapeCSS(r),apex.gPageContext$):t("#"+a.escapeCSS(r),apex.gPageContext$),"SWITCH_CB"===i&&c.closest("span.a-Switch").on("click",(function(e){t(e.target).is(":checkbox")||c.is(":disabled")||(c.prop("checked",!c.prop("checked")).trigger("change"),c[0].indeterminate=!1)})),e.create(r,{enable:function(){c.prop("disabled",!1)},disable:function(){c.prop("disabled",!0)},isDisabled:function(){return"SWITCH"===i?!0===c.first().prop("disabled"):!0===c.prop("disabled")},setValue:function(e){"SWITCH"===i?c.prop("checked",!1).filter("[value='"+a.escapeCSS(e)+"']").prop("checked",!0):c.prop("checked",c.prop("value")===e)},getValue:function(){var e;return void 0===(e="SWITCH"===i?c.filter(":checked").attr("value"):c.prop("checked")?c.attr("value"):c.attr("data-off-value"))?"":e+""},isChanged:function(){var e,t,a,r,o="";if("SWITCH"===i){for(t=this.getValue(),r=$x_FormItems(this.node,"RADIO"),e=0;e<r.length;e++)if(r[e].defaultChecked){o=r[e].value;break}return t!==o}return a=c.prop("checked"),c[0].defaultChecked!==a},setFocusTo:function(){return"SWITCH"===i?c.first():c},displayValueFor:function(e){var a,r="";return null!=e&&("SWITCH"===i?(a=c.filter("[value='"+apex.util.escapeCSS(e+"")+"']").prop("id"))&&(r=t("[for='"+apex.util.escapeCSS(a)+"']").html()||""):e===c.attr("value")?r=c.attr("data-on-label"):e===c.attr("data-off-value")&&(r=c.attr("data-off-label"))),r}})}}(apex.item,apex.jQuery,apex.util);
61!function(e,t,n,i,a,l){"use strict";let r=null,s=null,o=!1,u=null,c=!1,d=!1,h=[],f=!1,m=!1,p=null,g=null,b=0,v=0,M=0,C=0,y=null,k=null,w=null,x=null,_=null,I=!1,A=null,S=null,T=null;const B="a-MenuBar",E=".a-MenuBar",L="a-MenuBar--tabs",O="a-Menu",N=".a-Menu",F="a-Menu--top",K="a-Menu-content",D="."+K,P="a-Menu-scroll",q=".a-Menu-scroll",$
61="a-Menu-scrollBtn",X=".a-Menu-scrollBtn",H="a-Menu--scrollable",U="a-Menu-scrollBtn--up",W="a-Menu-scrollBtn--down",R="icon-menu-scroll-up",j="icon-menu-scroll-down",z="a-Menu-item",G="."+z,Y=".a-Menu-item, .a-MenuBar-item",Q=".a-Menu-inner",V=".a-Menu-item, .a-MenuBar-item, .a-Menu-content",J=V+", "+X,Z="a-MenuBar-item",ee="a-MenuBar-item--overflow",te="a-MenuBar--overflow",ne="a-Menu-statusCol",ie="a-Menu-label",ae="a-MenuBar-label",le=".a-Menu-label,.a-MenuBar-label",re="a-Menu-subMenuCol",se=".a-Menu-subMenuCol",oe="a-Menu--split",ue="a-Menu--current",ce="aria-current",de="a-Menu-itemSep",he="u-callout--top",fe="u-callout--bottom",me="is-disabled",pe="is-focused",ge="is-active",be=".is-focused",ve="a, button, .a-Menu-label, .a-MenuBar-label",Me="is-expanded",Ce=".is-expanded",ye="a-Icon",ke="button[data-menu]",we="u-RTL",xe="data-id",_e="data-context-id",Ie="data-custom",Ae="aria-expanded",Se="aria-disabled",Te="aria-haspopup",Be="aria-roledescription",Ee="data-href",Le="APEX.MENU.SPLIT_MENU",Oe=l.ui.keyCode,Ne=e=>"function"==typeof e,Fe=e=>"string"==typeof e;function Ke(e,t,n,i){e.markup("<span").attr("class",t+" "+n).optionalAttr("style",i).markup("></span>")}let De=null;function Pe(e){return De&&e.match(/^#\S*$/)?De+e:e}function qe(){var e,t,n,i,a;for(u?(i=l(u),a=null):(i=p,a=g),Ue({$menu:h[0],subMenu:!1,x:i,y:a,slide:!1}),e=1;e<h.length;e++)n=(t=h[e]).parents(Y).eq(0),Ue({$menu:t,subMenu:!0,x:n,slide:!1})}function $e(){l(window).off(".menuTracking"),l("html").off(".menuTracking"),clearTimeout(k),k=null,f=!1,apex.tooltipManager&&I&&(apex.tooltipManager.enableTooltips(),I=!1)}function Xe(e){return e.children(D).children(q)}function He(){if(!u)return;const e=l(u),t=e.is(Y)?e.find(ve)[0]:e[0];t&&t.focus({preventScroll:!0})}function Ue(t){var n,i,a,r,s,u,c,d,h,f,m=0,b=he,v="left",M="right",C=t.$menu,y={collision:"flipfit flipfit"},k="none"!==C.css("display");k||C.css({display:"block",position:"absolute",top:-99999,left:0}),t.minWidth&&C.css("min-width",t.minWidth),"true"!==C.attr(Ie)&&(r=C.find("li").first().outerHeight(),i=l(window).height(),t.$menuBar&&(i-=t.$menuBar.position().top+t.$menuBar.height()),a=i>1e3?.6:i>500?.75:1,i=Math.floor(i*a/r)*r-r,C.height()>i?(0===Xe(C).length&&((n=e.htmlBuilder()).markup("<div").attr("class",$+"  "+U).markup(">"),Ke(n,ye,R),n.markup("</div>"),C.children(D).first().addClass(H).prepend(n.toString()).append(n.toString().replace(R,j).replace(U,W)).children("ul").first().wrap("<div class='"+P+"'></div>")),Xe(C).height(i)[0].scrollTop=0,C.find(X+"."+U).addClass(me)):Xe(C).length>0&&(C.children(D).first().removeClass(H).children(X).remove(),C.find("ul").first().unwrap())),"number"==typeof t.x&&"number"==typeof t.y?(p=t.x,g=t.y,y.of=l.Event("click",{pageX:p,pageY:g}),b=null):(p=g=null,y.of=t.x),u=C.children(".u-callout"),o&&(v="right",M="left"),C.removeClass("has-callout"),t.subMenu?(s=parseInt(C.find(D).css("padding-top"),10),y.my=v+" top-"+s,y.at=M+" top"):(u.length&&(C.addClass("has-callout"),m=parseInt(C.css("margin-top"),10)),y.my=v+" top+"+m,y.at=v+" bottom"),C.position(y),C.css("display",k?"block":"none"),u.removeClass(he+" "+fe),b&&u.length&&(c=parseInt(C.css("top"),10),d=parseInt(C.css("left"),10),h="fixed"===t.x.offsetParent().css("position")?t.x.position():t.x.offset(),f=t.x.outerWidth(),c<h.top&&(b=fe),u.addClass(b),u.css("left",f/2+(h.left-d-m))),k||(t.slide?C.slideDown(200):C.show(),t.focus&&Ve(C.find(Y).first()))}l("base").length&&(De=window.location.pathname+window.location.search),l((function(){l(window).on("apexwindowresized",(function(){l(E).each((function(){l(this).menu("resize")})),f&&qe()}))}));const We={openMenu:function(e,t,n,a,p,g){var b=0;this.closeAll(),r=e[0],s=t?t[0]:null,o=l(s||r).hasClass(we),u="object"==typeof n&&n.get?n[0]:null,c=!1,d=!1,m=!0,0===h.length&&(f||(f=!0,l(window).on("blur.menuTracking",(function(){We.closeAll(!0)})),l("html").on("mousedown.menuTracking",(function(e){var t=l(e.target);0!==t.closest(N).length||u&&0!==t.closest(u).length||We.closeAll(!0)})).on("mousemove.menuTracking",(function(e){var t,n;M===e.pageX&&C===e.pageY||(M=e.pageX,C=e.pageY,!(n=(t=l(e.target)).parents(N)[0])&&s&&(n=t.parent(E)[0]),!n&&x&&x!==n&&l(x).trigger("focus"),x=n)})),apex.tooltipManager&&(apex.tooltipManager.disableTooltips(),I=!0))),h.push(e),m=!1,t&&(n.addClass(Me).children("["+Ae+"]").attr(Ae,"true"),b=n.outerWidth()),t||1!==h.length||(A=l(u||document.activeElement).scrollParent(),i.beginFreezeScroll(),document!==A[0]?(S=A[0].style.width,T=A[0].style.height,A.width(A.width()),A.height(A.height()),A.addClass("apex-no-scroll")):A=null),Ue({$menu:e,$menuBar:t,subMenu:!1,x:n,y:a,slide:p,focus:g,minWidth:b})},isCurrentMenu:function(e){return r&&r===e},isCurrentMenuBar:function(e){return s&&s===e},isMenuOpen:function(e){for(let t=0;t<h.length;t++)if(h[t]===e)return!0;return!1}
61,openSubMenu:function(e,t,n,i,a){this.closeOpenSiblings(e,n),h.push(t),Ue({$menu:t,subMenu:!0,x:e,slide:i,focus:a}),e.addClass(Me).children(Q).find(le).attr(Ae,"true")},closeOpenSiblings:function(e,t){let n=e.parent().find(Ce);for(t&&(m=!0);n.length>0&&f;)this.closeLast(!1),n=e.parent().find(Ce);m=!1},closeLast:function(e){if(h.length>0){let t,n,a=h.pop();if(t=a.parents(Y).eq(0),t.length>0&&(n=Ze(t),t.removeClass(Me),n.filter("["+Ae+"='true']").attr(Ae,"false"),l("#"+l(n).attr("id")+"sb").filter("["+Ae+"='true']").attr(Ae,"false"),e&&Ve(t)),a.hide(),0===h.length){if(!u||c||m||setTimeout((function(){He()}),10),s&&(n=Ze(l(r).find(Ce)),l(r).find(Ce).removeClass(Me),n.attr(Ae,"false")),s||r){let e=l(s||r).data("apex-menu");e._trigger("afterClose",{},{actionTookFocus:c,actionTaken:d,launcher:u}),e.currentArgs=null}r=null,m||(s=null,$e()),i.endFreezeScroll(),A&&(A.removeClass("apex-no-scroll"),A.css("width",S),A.css("height",T),A=null)}}else r=null,s=null,$e()},closeAll:function(e){for(;h.length>0;)this.closeLast(!1);e&&(r=null,s=null,$e())}};function Re(e){return e.parent().parent().hasClass(B)}function je(e,t){let n=null;for(let i of e.items){if(i.id===t){n=i;break}if("subMenu"===i.type&&(n=je(i.menu,t),null!==n))break}return n}function ze(e){var t=null,n=e.search(/_c[0-9]+$/);return n>=0&&(t=1*e.substring(n+2)),t}function Ge(e,n,r,s,o,h,f){let m,p=null,g=!1,b=o||e.type;function v(){let a;if(l(document.body).on("dialogopen.menu",(function(e){const t=l(e.target);a=!0,t.dialog("option","modal")&&t.on("dialogclose.menu",(function(){t.off("dialogclose.menu"),He()}))})),setTimeout((function(){l(document.body).off("dialogopen.menu")}),150),Fe(e.action)&&n){let i=n.lookup(e.action);t.info("Invoke action menu item '"+(e.label||i.label)+"'"),i.convertBindingArguments&&(p=n.convertBindingArguments(p)),c=n.invoke(e.action,{},u,p)||!1}else t.info("Invoke action menu item '"+e.label+"'"),Ne(e.action)?c=e.action(s,u,p)||!1:e.href&&(e.target?i.openInNewWindow(e.href,e.target,{favorTabbedBrowsing:!0,noopener:!0}):i.redirect(e.href),c=!0);a&&(c=!0)}e.actionContextId&&(n=a.findContextById(e.actionContextId)),(e.args||h)&&(p=Object.assign({},e.args,h));try{if("toggle"===b)Fe(e.action)&&n&&(e=n.lookup(e.action),g=!0),m=!e.get(p),t.info("Invoke toggle menu item '"+(e.label||(m?e.onLabel:e.offLabel))+"' value now "+m),e.set(m,p),g&&n.update(e.name,p),d=!0;else if("radioGroup"===b)Fe(e.action)&&n&&(e=n.lookup(e.action),g=!0),m=e.choices[r].value,t.info("Invoke choice menu item '"+e.choices[r].label+"' value now "+m),e.set(m,p),g&&n.update(e.name,p),d=!0;else if("action"===b)f?setTimeout((function(){v()}),210):v(),d=!0;else if("subMenu"===b)return!1}catch(e){t.error("Error in menu action.",e)}return!0}function Ye(e,t){var n,i;if(e.menu&&e.menu.items)for(n=0;n<e.menu.items.length;n++)if((i=e.menu.items[n]).current||Ye(i,t))return t&&i.current&&delete i.current,!0;return!1}function Qe(e){e.labelKey&&(e.label=n.getMessage(e.labelKey)),e.onLabelKey&&(e.onLabel=n.getMessage(e.onLabelKey)),e.offLabelKey&&(e.offLabel=n.getMessage(e.offLabelKey))}function Ve(e){const t=e.is(ve)?e:e.find(ve).first();t[0]?.focus({preventScroll:!0})}function Je(e){var t;return t=e.closest(G)[0],e.find(G).not((function(e,n){return l(n).parent().closest(G)[0]!==t}))}function Ze(e){var t=e.children(le);return 0===t.length&&(t=e.children(Q).find(le)),t}function et(){y&&(clearTimeout(y),y=null)}l.widget("apex.menu",{widgetEventPrefix:"menu",options:{menubar:!1,callout:!1,menubarShowSubMenuIcon:null,menubarOverflow:!1,iconType:ye,behaveLikeTabs:!1,tabBehavior:"EXIT",useLinks:!0,slide:!1,firstItemIsDefault:!1,actionsContext:null,items:null,idPrefix:null,customContent:!1,asyncFetchMenu:null,beforeOpen:null,afterClose:null},isActive:!1,scrollTimerId:null,forwardKey:Oe.RIGHT,backwardKey:Oe.LEFT,actionsContext:null,_create:function(){var e,n,i=this.options,r=this.element;if(i.menubar&&i.customContent)throw new Error("Menubar cannot have custom content");if(this.actionsContext=i.actionsContext=i.actionsContext||a,i.items||!0===i.customContent||(i.items=this._parseMenuMarkup(r,i.menubar).items),!i.menubar&&(i.customContent||i.asyncFetchMenu)||i.items&&0!==i.items.length||t.error("Menu has no menu items"),"rtl"===r.css("direction")&&(r.addClass(we),i.menubar||r.attr("dir","rtl"),this.forwardKey=Oe.LEFT,this.backwardKey=Oe.RIGHT),r.attr("role",i.menubar?"menubar":"menu").addClass(i.menubar?B:O),i.menubar){if(i.menubarOverflow&&r.addClass(te),null===i.menubarShowSubMenuIcon)for(i.menubarShowSubMenuIcon=!1,e=0;e<i.items.length;e++)if("subMenu"!==i.items[e].type){i.menubarShowSubMenuIcon=!0;break}this.refresh(),i.behaveLikeTabs&&r.addClass(L),i.firstItemIsDefault&&t.warn("Invalid options for menu bar ignored")}else l("body").append(r),r.hide(),(i.menubarOverflow||i.menubarShowSubMenuIcon||i.behaveLikeTabs)&&t.warn("Invalid options for popup menu ignored");!("onwheel"in r[0])&&this._eventHandlers.wheel&&(n=void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",this._eventHandlers[n]=this._eventHandlers.wheel,delete this._eventHandlers.wheel),this._on(this._eventHandlers)},_eventHandlers:{mousedown:function(e){var t,n,i;1!==e.which||e.shiftKey||e.ctrlKey||(i=l(e.target).closest(J),e.preventDefault(),i.length>0&&!i.hasClass(K)&&!i.hasClass(me)&&(i.is(X)?(i.addClass(ge),this._startScrolling(i.closest(N),i.hasClass(U))):Re(i)&&(n=i[0].id,"subMenu"===(t=this._getMenuItemFromId(n)).type&&(0!==l(e.target).closest(se).length||!t.action&&!t.href)&&this.toggle(i))))},mouseup:function(e){let t,n,i,a,r,s,o;1!==e.which||e.shiftKey||e.ctrlKey||(o=l(e.target).closest(V),e.preventDefault(),o.length>0&&!o.hasClass(K)&&(i=o[0].id,t=this._getMenuItemFromId(i),r=t.type,a=Re(o),"subMenu"===r&&a&&(s=0!==l(e.target).closest(se).length,s||!t.action&&!t.href||(r="action",We.closeOpenSiblings(o,a))),"subMenu"===r&&a||!o.is(Y)||o.hasClass(me)||"display"===r||(n=ze(i),Ge(t,this.actionsContext,n,this.options,r,this.currentArgs)&&We.closeAll())))},click:function(e){if("A"!==e.target.nodeName||1===e.which&&!e.shiftKey&&!e.ctrlKey){if(y){let t=l(e.target).closest(D+","+Y).not(D);!t.hasClass(me)&&t.find(N).length>0&&(et(),We.openSubMenu(t,t.children(N).first(),!1,this.options.slide,!0))}if(e.preventDefault(),this.keyboardActivate){let t,n,i,a;this.keyboardActivate=!1,t=l(e.target).closest(V),t.length>0&&!t.hasClass(K)&&(n=t[0].id,i=this._getMenuItemFromId(n),t.is(Y)&&!t.hasClass(me)&&(a=ze(n),Ge(i,this.actionsContext,a,this.options,"subMenu"===i.type?"action":i.type,this.currentArgs)&&We.closeAll()))}}else this.keyboardActivate=!1},mousemove:function(e){var t,n,i,a,r,s=this.options;function o(){var e=i.parent().find(Ce).eq(0);e.length>0&&!k&&(e.removeClass(Me),w=e.find(N)[0],k=setTimeout((()=>{e.addClass(Me),k=null,w=null,We.closeOpenSiblings(i,t)}),300))}if(b!==e.pageX||v!==e.pageY){if(b=e.pageX,v=e.pageY,a=(n=l(e.target)).closest(D+","+Y).not(D),!k||n.closest(N)[0]!==w&&"true"!==Ze(a).attr(Ae)||(l(w).parent().addClass(Me),w=null,clearTimeout(k),k=null),(i=n.closest(".a-Menu-itemSep")).length>0&&i[0]!==_)return et(),t=Re(i),o(),_=i[0],void((r=n.closest(N).eq(0)).length>0&&!r.hasClass(pe)&&r.trigger("focus"));if((i=a).length>0){if(i[0]!==_){if(_=i[0],et(),(t=Re(i))&&f?(clearTimeout(k),k=null,We.closeOpenSiblings(i,t)):o(),s.menubar&&!We.isCurrentMenuBar(this.element[0])&&!this.isActive)return this.element.find(be).removeClass(pe),void i.addClass(pe);Ve(i),!i.hasClass(me)&&i.find(N).length>0&&("true"===Ze(i).attr(Ae)?t||(r=i.find(N).eq(0),We.closeOpenSiblings(r.find(Y).eq(0),t),Ve(r)):t?We.isCurrentMenuBar(this.element[0])&&this.open(i):y=setTimeout((()=>{y=null,We.openSubMenu(i,i.children(N).first(),t,s.slide,!0)}),400))}}else n.closest(N).first().trigger("focus"),_=null}},mouseleave:function(){et(),this.options.menubar&&(We.isCurrentMenuBar(this.element[0])||this.isActive||this.element.find(be).removeClass(pe)),_=null},wheel:function(e){var t,n=l(e.target).closest(N),i=e.originalEvent.deltaY||e.originalEvent.detail||-1/40*e.originalEvent.wheelDelta;if(n.length&&!this.options.customContent){if(e.preventDefault(),!(t=Xe(n)[0]))return;void 0!==e.originalEvent.deltaMode&&1!==e.originalEvent.deltaMode||(i*=30),t.scrollTop+=i,this._checkScrollBounds(n,t)}},keydown:function(e){var t,n,i,a,r,s,o,d,h,f,m,p,g,b,v,M=this.options,C=this,y=e.which;function k(e,i){var l;if(t.hasClass(O))a=t.find(D).first().find(Y).first();else{if(l=n.index(t),(l+=1)>=n.length){if(e)return!1;l=0}a=n.eq(l)}return Ve(a),i&&(t.find(ve).attr("tabindex","-1"),a.find(ve).attr("tabindex","0")),t=a,o&&C._checkScrollBounds(d,o),!0}function w(e,i){var l;if(t.hasClass(O))a=t.find(D).first().find(Y).last();else{if(l=n.index(t),(l-=1)<0){if(e)return!1;l=n.length-1}a=n.eq(l)}return Ve(a),i&&(t.find(ve).attr("tabindex","-1"),a.find(ve).attr("tabindex","0")),t=a,o&&C._checkScrollBounds(d,o),!0}function x(e){C.toggle(t),!t.hasClass(oe)||e?Ve(a=t.find(D).first().find(Y).first()):t.find(ve).eq(0).trigger("focus")}if(!e.altKey)if(r=this.element,this.keyboardActivate=!1,r.hasClass(pe)?(t=r,r.find(Ce).first().each((function(){t=l(this)}))):t=r.find(be),d=t.closest(N+","+E),o=Xe(d)[0],s=t.is(E)||Re(t),n=s?r.find("."+Z):Je(d),y===Oe.UP||y===Oe.DOWN)s?t.children(N).length>0&&!t.hasClass(me)&&(t.hasClass(oe)&&We.isCurrentMenu(t.children(N)[0])?(a=t.find("ul").first().children(Y).first()).find(ve).trigger("focus"):x(!0)):y===Oe.UP?w():k(),e.preventDefault();else if(y===this.forwardKey)s?(k(!1,!0),We.closeOpenSiblings(t,!0),We.isCurrentMenuBar(r[0])&&t.children(N).length>0&&!t.hasClass(me)&&x()):(a=t.children(N)).length>0&&!t.hasClass(me)?(We.openSubMenu(t,a,!1,M.slide,!1),Ve(a=a.find("ul").first().children(Y).first())):M.menubar&&(t=r.find(Ce).eq(0),n=r.find("."+Z),k(),We.closeOpenSiblings(t,Re(t)),t.children(N).length>0&&!t.hasClass(me)&&x()),e.preventDefault();else if(y===C.backwardKey)s?(w(!1,!0),We.closeOpenSiblings(t,!0),We.isCurrentMenuBar(C.element[0])&&t.children(N).length>0&&!t.hasClass(me)&&x()):(a=t.parents(Y).eq(0)).length>0&&!Re(a)?We.closeLast(!0):M.menubar&&(t=r.find(Ce).eq(0),n=r.find("."+Z),w(),We.closeOpenSiblings(t,Re(t)),t.children(N).length>0&&!t.hasClass(me)&&x()),e.preventDefault();else if(y===Oe.TAB)s?("EXIT"===M.tabBehavior||e.shiftKey)&&(c=!0,We.closeAll()):("NEXT"===(v=M.tabBehavior)&&(e.shiftKey?w(!0)||(v="EXIT"):k(!0)||(v="EXIT")),"EXIT"===v&&u&&(c=!0,We.closeAll(),f=l(":tabbable"),M.menubar?(h=f.index(l(u).find(":tabbable")))<0&&(h=f.index(this.element.find(":tabbable"))):h=f.index(u),h>0&&h<f.length?h+=e.shiftKey?-1:1:f.length>0&&(h=0),h>=0&&f[h].focus()),e.preventDefault());else if(y===Oe.ESCAPE)We.closeLast(!0),e.preventDefault();else if(y===Oe.ENTER||y===Oe.SPACE){if((t=r.hasClass(pe)?r:r.find(be)).hasClass(me)||!t.is(Y))return void e.preventDefault();if(m=t[0].id,g=(p=this._getMenuItemFromId(m)).type,s=Re(t),"subMenu"===g&&s&&(p.action||p.href)&&(g="action",We.closeOpenSiblings(t,s)),"subMenu"===g)s?(C.toggle(t),Ve(a=t.find(D).first().find(Y).first())):(i=t.children(N)).length>0&&(We.openSubMenu(t,i,!1,M.slide,!1),Ve(a=i.find("ul").first().children(Y).first()));else{if(("A"!==e.target.nodeName||y!==Oe.SPACE)&&("action"===g||y===Oe.SPACE&&"BUTTON"===e.target.nodeName))return void(this.keyboardActivate=!0);"display"!==g&&(b=ze(m),Ge(p,this.actionsContext,b,M,g,this.currentArgs,y===Oe.SPACE)&&We.closeAll())}e.preventDefault()}},keypress:function(e){var t,n,i,a,l,r,s,o,u=-1;if(0!==e.which&&((l=this.element).hasClass(pe)?(a=l.find(D).first().find(Y).first(),u=0):a=l.find(be),0!==(r=a.closest(N)).length))for(s=Je(r),u<0&&(u=s.index(a)+1)>=s.length&&(u=0),i=s.eq(u),t=String.fromCharCode(e.which).toLowerCase();;){if(0===(o=i.filter(".a-Menu-label")).length&&(o=i.find(".a-Menu-label")),o.text().trim().charAt(0).toLowerCase()===t){Ve(i),(n=Xe(r)[0])&&this._checkScrollBounds(r,n);break}if((u+=1)>=s.length&&(u=0),(i=s.eq(u))[0]===a[0])break}},focusin:function(e){var t=l(e.target);this.isActive||this.element.find(be).removeClass(pe),t.is(N)?t.addClass(pe):t.closest(Y).addClass(pe),this.isActive=!0},focusout:function(e){var t=l(e.target);t.is(N)?t.removeClass(pe):t.closest(Y).removeClass(pe),this.isActive=!1}},_destroy:function(){var e=this.options,n=this.element;f&&We.isMenuOpen(this.element)&&(t.warn("Menu destroyed while still tracking menus."),We.closeAll(!0)),n.empty().removeClass((e.menubar?B+" "+L:O)+" "+we+" "+te).removeAttr("role")},_setOption:function(e,n){var i,l,r,s,o=this.options;if("menubar"===e)throw new Error("The menubar option cannot be set");if(o.menubar?"customContent"!==e&&"firstItemIsDefault"!==e||t.warn("Option "+e+" ignored when menubar is true"):"menubarOverflow"!==e&&"menubarShowSubMenuIcon"!==e&&"behaveLikeTabs"!==e||t.warn("Option "+e+" ignored when menubar is false"),this._super(e,n),"menubarOverflow"===e&&o.menubar){if(this.element.toggleClass(te,n),!n&&(i=(l=o.items)[l.length-1])&&i._overflow){for(s=i.menu.items;s.length>0;)"subMenu"===(r=s.shift()).type&&(r.action||r.href)&&r.menu.items.shift(),l.splice(l.length-1,0,r);l.pop()}}else"actionsContext"===e&&(this.actionsContext=n||a)},refresh:function(){var t=this.element,n=this.options,i=n.idPrefix||t[0].id||"menu",a=e.htmlBuilder();n.menubar&&(this._renderMenubar(a,i,n),t.html(a.toString()),this._processMenuCustomMarkup(),this.resize())},resize:function(){let t=this.element,n=this.options,i=n.idPrefix||t[0].id||"menu",a=e.htmlBuilder();n.menubar&&n.menubarOverflow&&this._adjustMenubarForSize(i,n)&&(this._renderMenubar(a,i,n),t.html(a.toString()),this._processMenuCustomMarkup())},toggle:function(e,t,n){let i=this.element;if(this.options.menubar&&(i=null,"number"==typeof e?(e=this.element.children("ul").children("li").eq(e)).length>0&&(i=e.children(N)):e.is(Y)&&(i=e.children(N)),!i||1!==i.length))throw new Error("Invalid menu bar menu");We.isCurrentMenu(i[0])?We.closeAll():this.open(e,t,n)},open:function(i,a,r){let s,o,u,c,d,h,m=!1,p=this,g=this.options,b=e.htmlBuilder();function v(){p._trigger("beforeOpen",{},d),s.customContent?(Fe(s.customContent)&&(o.empty().append(l("#"+e.escapeCSS(s.customContent)).show()),s.customContent=!0),p._parseCustomMarkup(o,c,s)):(b.clear(),p._renderMenu(b,c,s,h,!0),o.html(b.toString()))}if(p.currentArgs=r,g.menubar){if(u=this.element,o=null,"number"==typeof i?(i=this.element.children("ul").children("li").eq(i)).length>0&&(o=i.children(N)):i.is(Y)&&(o=i.children(N)),!o||1!==o.length)throw new Error("Invalid menu bar menu");if(c=i[0].id,s=this._getMenuItemFromId(c),!s||"subMenu"!==s.type||!s.menu)throw new Error("Can't open menu "+i);d=s,s=s.menu,h=!1}else u=null,s=g,d={menu:s},o=this.element,c=g.idPrefix||this.element[0].id||"menu",h=!0;if(Ne(g.asyncFetchMenu)){if(!f&&g.menubar)for(let e=0;e<g.items.length;e++)g.items[e]._fetched=!1;g.menubar&&!0===d._fetched?v():(p._renderMenu(b,c,{items:[{type:"action",disabled:!0,label:n.getMessage("APEX.MENU.PROCESSING")}]},h,!0),o.html(b.toString()),m=!0,g.asyncFetchMenu(s,(function(e){var t;if(We.isCurrentMenu(o[0])){if(!1===e)return void We.closeAll(!0);t=o.find(be).first(),v(),qe(),t.length?Ve(o.find(Y).first()):o.trigger("focus")}})),g.menubar&&(d._fetched=!0))}else v();m||0!==s.items.length?We.openMenu(o,u,i,a,g.slide,g.menubar||!1!==a):(t.error("Menu has no items"),p._trigger("afterClose",{}
61,{actionTookFocus:!1,actionTaken:!1,launcher:null}))},find:function(e){return je(this.options,e)},setCurrentMenuItem:function(e){var i,a,l=0,r=this.options.items;if(this.options.menubar&&this.options.behaveLikeTabs){if(Fe(e)&&(e=this.find(e)),e){for(l=0;l<r.length;l++)(i=r[l]).current&&(a=i,delete i.current),Ye(i,!0);for(e.current=!0,l=0;l<r.length;l++)if(Ye(i=r[l])){i.current=!0,Qe(a),this.element.find("."+ue).removeClass(ue).find(".a-MenuBar-label").text(a.label),this.element.children("ul").children("li").eq(l).addClass(ue).find(".a-MenuBar-label").append(" <span class='u-vh'>"+n.getMessage("APEX.MENU.CURRENT_MENU")+"</span>");break}}}else t.warn("setCurrentMenuItem ignored")},_parseMenuMarkup:function(e,n){let i=this,r={items:[]};return e.children("ul").children("li").each((function(e){let s,o,u,c,d,h,f,m=l(this),p=m.children("a").eq(0),g=m.children("span").eq(0),b={type:"action"};if(p.length>0){let e=p.attr("href");f=a.parseActionBinding(e,{testForFragment:!0}),b.label=p.text(),f||(b.href=e,h=p.attr("target"),h&&(b.target=h))}else g.length>0?b.label=g.text():b.type="separator";if("separator"===b.href&&(b.type="separator",delete b.href,delete b.target,delete b.label),u=m.attr(xe),u&&(f||(f={actionName:u,contextId:m.attr(_e)}),b.id=u),"true"===m.attr("data-hide")&&(b.hide=!0),"true"===m.attr("data-disabled")&&(b.disabled=!0),"true"===m.attr("data-current")&&(b.current=!0),s=m.attr("data-icon"),s&&(o=s.indexOf(" "),o>=0?(b.iconType=s.substring(0,o),b.icon=s.substring(o+1)):b.icon=s),"separator"!==b.type&&(m.children("ul").length>0||"true"===m.attr(Ie)))if(b.type="subMenu","true"!==m.attr(Ie))b.menu=i._parseMenuMarkup(m,!1);else{if(!n)throw new Error("Attribute data-custom only allowed at menubar level");d=m.children(D).eq(0),c=d[0].id,c||(c=d[0].id=(i.options.idPrefix||i.element[0].id||"menu")+"_cm_"+e),l(document.body).append(d),d.hide(),b.menu={customContent:c}}if("action"===b.type&&f){let e,n=f.actionName,l=f.contextId,r=i.actionsContext;l&&(r=a.findContextById(l),r||(t.error("No such context '"+l+"'"),r=null)),r&&(e=r.lookup(n)),e&&(b.action=n,l&&(b.actionContextId=l),f.args&&(b.args=f.args),e.label&&delete b.label,e.icon&&delete b.icon,e.iconType&&delete b.iconType,delete b.href,delete b.target,delete b.disabled,e.action||e.href?b.type="action":e.get&&e.set&&!e.choices?b.type="toggle":e.choices&&(b.type="radioGroup"))}r.items.push(b)})),r},_parseCustomMarkup:function(e,n,i){let r=this;i.items||(i.items=[]),e.attr(Ie,"true"),0===e.find(D).length&&e.children().first().addClass(K),e.find(ve).each((function(e){let s,o,u,c,d,h=l(this),f=h.closest(G);if(h.attr("role","menuitem"),0===f.length&&(f=l(this),f.addClass(z)),f.hasClass(ie)||0!==f.find(".a-Menu-label").length||h.addClass(ie),f[0].id=n+"_"+e,u=h.attr("href"),"A"===this.nodeName&&u?(o={type:"action",label:h.text().trim()},d=a.parseActionBinding(u,{testForFragment:!0}),d||(o.href=u,c=h.attr("target"),c&&(o.target=c)),i.items[e]=o):"BUTTON"===this.nodeName?(u=h.attr(Ee),o={type:"action",label:h.text().trim()},u?d=a.parseActionBinding(u,{testForFragment:!0}):o.action=function(){},i.items[e]=o):(h.attr("tabindex","-1"),i.items[e]||(o={type:"display",label:h.text(),disabled:!0},i.items[e]=o)),s=f.attr(xe),s&&(d||(d={actionName:s,contextId:f.attr(_e)}),o.id=s),d&&"action"===o.type){let e,n=d.actionName,i=d.contextId,l=r.actionsContext;if(i&&(l=a.findContextById(i),l||(t.error("No such context '"+i+"'"),l=null)),l&&(e=l.lookup(n)),e&&(o.action=n,i&&(o.actionContextId=i),d.args&&(o.args=d.args),delete o.href,delete o.target,delete o.label,delete o.disabled,delete o.icon,delete o.iconType,"A"===h[0].nodeName)){let e="";h[0]===f[0]&&(e=`id="${f[0].id}"`),h.replaceWith(`<button type="button" ${e} ${Ee}="${u}" class="${h.attr("class")}" role="menuitem">${h.html()}</button>`),f.attr(xe,n),i&&f.attr(_e,i)}}}))},_processMenuCustomMarkup:function(){var t=this;this.element.find("."+Z).each((function(){var n=l(this).children(N),i=this.id,a=t._getMenuItemFromId(i).menu;a&&a.customContent&&(Fe(a.customContent)&&(n.empty().append(l("#"+e.escapeCSS(a.customContent)).show()),a.customContent=!0),t._parseCustomMarkup(n,i,a))}))},_getMenuItemFromId:function(e){const t=this.options,n=this.element.attr("id"),i=e.replace(n,"dummy").split("_");let a,l=i.length-1,r=[],s=null;for(i[l].match(/^c[0-9]+$/)&&(l-=1);l>0&&i[l].match(/^[0-9]+$/);l--)r.unshift(1*i[l]);for(a=t.items,l=0;l<r.length;l++){if(s=a[r[l]],!s||l<r.length-1&&!s.menu)return null;s.menu&&(a=s.menu.items)}return s},_itemIsHidden:function(e){var t=e.hide,n=this.options;return Ne(t)&&(t=e.hide(n)),t},_itemIsDisabled:function(e){var t=e.disabled,n=this.options;return Ne(t)&&(t=e.disabled(n)),t},_renderMenubar:function(e,i,r){var s=this,o=0,u=this.options,c="NEXT"===u.tabBehavior;if(u.behaveLikeTabs)for(let e=0;e<r.items.length;e++){let t=r.items[e];if(Ye(t)&&(t.current=!0),t.current){o=e;break}}this.element.find("."+F).filter("["+Ie+"]").each((function(){var e=l(this).children().eq(0);s._getMenuItemFromId(e.closest(Y)[0].id).menu.customContent=e[0].id,l(document.body).append(e)})),e.markup("<ul").attr("role","none").markup(">");for(let l=0;l<r.items.length;l++){let d,h,f,m,p=r.items[l],g=s.actionsContext,b=p.type,v=i+"_"+l,M="subMenu"===b,C=!(!M||!p.action&&!p.href);if(p.actionContextId&&(g=a.findContextById(p.actionContextId)),"action"===b&&Fe(p.action)&&(m=g.lookup(p.action),m?(p.hide=!1,m.label&&!p.label&&(p.label=m.label),void 0!==m.hide&&(p.hide=m.hide),void 0!==m.disabled&&(p.disabled=m.disabled),m.href&&!p.href&&(p.href=m.href,m.target&&(p.target=m.target))):(t.warn("Unknown action name "+p.action+" (item hidden)."),p.hide=!0)),!s._itemIsHidden(p)){if(h=Z,f=s._itemIsDisabled(p),f&&(h+=" "+me),C&&(h+=" "+oe),u.behaveLikeTabs&&p.current&&(h+=" "+ue),p._overflow&&(h+=" "+ee),"action"!==b&&!M)throw new Error("Menu item type not supported in menubar: "+b);e.markup("<li role='none' ").attr("id",v).attr("class",h).markup(">"),Qe(p),d=p.label,(p.icon||p.iconType)&&t.warn("Menu bar items cannot have icons."),p.accelerator&&t.warn("Menu bar items cannot have accelerators."),f?e.markup("<span role='menuitem' ").attr("class",ae).attr("tabindex",c||l===o?"0":"-1").optionalAttr(ce,u.behaveLikeTabs&&p.current?"true":null).optionalAttr(Be,C?n.getMessage(Le):null).attr("id",v+"i").optionalAttr(Se,f?"true":null).optionalAttr(Ae,C?null:M?"false":null).markup(">").content(d).markup("</span>"):p.href&&u.useLinks?e.markup("<a role='menuitem' ").attr("class",ae).optionalAttr(ce,u.behaveLikeTabs&&p.current?"true":null).optionalAttr(Be,C?n.getMessage(Le):null).attr("id",v+"i").attr("href",Pe(p.href)).optionalAttr("target",p.target?p.target:null).optionalAttr("tabindex",c||l===o?null:"-1").optionalAttr(Ae,C?null:M?"false":null).markup(">").content(d).markup("</a>"):(e.markup("<button type='button' role='menuitem' ").attr("class",ae).optionalAttr(!p._overflow&&ce,u.behaveLikeTabs&&p.current?"true":null).optionalAttr(Be,C?n.getMessage(Le):null).attr("id",v+"i").optionalAttr("tabindex",c||l===o?null:"-1").optionalAttr(Ae,C?null:M?"false":null),p._overflow?e.attr("title",d).markup("><span class='a-Icon icon-down-chevron'></span>"):e.markup(">").content(d),e.markup("</button>")),M&&(!C&&!u.menubarShowSubMenuIcon||p._overflow||(e.markup("<span class='"+re
61+"'").optionalAttr("role",C?"button":null).optionalAttr(Be,C?n.getMessage("APEX.MENU.SPLIT_BUTTON"):null).optionalAttr("id",C?v+"isb":null).optionalAttr("aria-hidden",C?null:"true").optionalAttr(Se,f?"true":null).optionalAttr("aria-label",C?d:null).optionalAttr(Te,C?"menu":null).optionalAttr(Ae,C?"false":null).attr("tabindex","-1"),e.markup(">"),Ke(e,ye,!u.menubarShowSubMenuIcon||p.action||p.href?"icon-menu-split-drop-down":"icon-menu-drop-down"),e.markup("</span>")),e.markup("<div").attr("id",v+"m").markup(" class='"+O+" "+F+"' role='menu' style='display:none;'></div>")),e.markup("</li>")}}e.markup("</ul>")},_renderMenu:function(n,i,l,r,s){const o=this.options,u=this,c=this.element.hasClass(we);let d=!1,h=0,f="icon-menu-sub";function m(){d=!1,h>0&&(n.markup("<li class='").markup(de).markup("' role='separator'><div class='a-Menu-inner'><span class='a-Menu-labelContainer'><span class='").markup(ne).markup("'></span><span class='").markup("a-Menu-hSeparator").markup("'></span></span><span class='a-Menu-accelContainer'></span></div></li>"),h+=1)}function p(e,t,i){n.markup("<span class='"+ne+"'>"),(t||""===t)&&Ke(n,e,t,i),n.markup("</span>")}function g(e,t,i,a,l,r,s,u,c,d){let h;t?(n.markup("<span tabindex='-1'").optionalAttr(Se,t?"true":null),h="</span>"):r&&o.useLinks?(n.markup("<a").attr("href",Pe(r)),h="</a>"):(n.markup("<button type='button'"),h="</button>"),n.attr("id",e).attr("role",u).attr("class",ie).optionalAttr("target",s||null).optionalAttr(Te,d?"menu":null).optionalAttr(Ae,d?"false":null).optionalAttr("aria-checked",null!==c&&c?"true":null).optionalAttr("aria-keyshortcuts",l).markup(">"),n.content(i),n.markup(h).markup("</span><span class='a-Menu-accelContainer'>"),a&&function(e,t){n.markup("<span").attr("class","a-Menu-accel").optionalAttr("aria-hidden",!!t||null).markup("> ").content(e).markup("</span>")}(a,!!l)}function b(){n.markup("<span class='"+re+"'></span>")}c&&(f="icon-menu-sub-rtl"),o.callout&&s&&n.markup("<div class='u-callout'></div>"),n.markup("<div class='"+K+"'><ul").attr("role","group").attr("aria-labelledby",i+"i").markup(">");for(let s=0;s<l.items.length;s++){let c,C,y,k,w,x,_,I,A,S,T,B,E,L=l.items[s],N=null,F=u.actionsContext,K=null,D=L.type,P=i+"_"+s;if(L.actionContextId&&(F=a.findContextById(L.actionContextId)),Qe(L),k=L.icon,w=L.iconType,C=L.label,B=L.href,E=L.target,I=L.accelerator,A=I?a.ariaKeyshortcut(I):null,"action"!==L.type&&"toggle"!==L.type&&"radioGroup"!==L.type||!Fe(L.action)||(K=F.lookup(L.action),K?(L.hide=!1,K.icon&&!L.icon&&(k=K.icon),K.iconType&&!L.iconType&&(w=K.iconType),K.label&&!L.label&&(C=K.label),K.shortcut&&(I=a.shortcutDisplay(K.shortcut),A=a.ariaKeyshortcut(K.shortcut)),void 0!==K.hide&&(L.hide=K.hide),void 0!==K.disabled&&(L.disabled=K.disabled),void 0!==K.href&&(B=K.href),void 0!==K.target&&(E=K.target),K.choices&&(L.choices=K.choices)):(t.warn("Unknown action name "+L.action+" (item hidden)."),L.hide=!0)),!u._itemIsHidden(L))if(y="separator"===D?de:z,x=u._itemIsDisabled(L),x&&(y+=" "+me),0===s&&r&&o.firstItemIsDefault&&(y+=" a-Menu-item--default"),"radioGroup"===D){d=!0,K&&(L=K),(L.args||u.currentArgs)&&(N=Object.assign({},L.args,u.currentArgs)),c=L.get(N);for(const[e,i]of Object.entries(L.choices)){var v=P+"_c"+e,M=c===i.value;I=i.accelerator||null,i.shortcut&&(I=a.shortcutDisplay(i.shortcut),A=a.ariaKeyshortcut(i.shortcut)),y=z,x=i.disabled,Ne(x)&&(x=i.disabled(o)),x&&(y+=" "+me),i.icon&&!K&&t.warn("Radio menu items cannot have icons."),d&&m(),n.markup("<li").attr("role","none").attr("id",v).attr("class",y).markup("><div class='a-Menu-inner'><span class='a-Menu-labelContainer'>"),p(ye,M?"icon-menu-radio":""),Qe(i),S=v+"i",g(S,x,i.label,I,A,null,null,"menuitemradio",M),b(),n.markup("</span></div></li>"),h+=1}d=!0}else"separator"===D?d=!0:(_="toggle"===D?"menuitemcheckbox":"menuitem",d&&m(),S=P+"i",n.markup("<li role='none' id='").attr(P).markup("' class='").attr(y).markup("'><div class='a-Menu-inner'><span class='a-Menu-labelContainer'>"),"action"===D||"display"===D?(p(w||o.iconType,k,L.iconStyle),g(S,x,C,I,A,B||"",E,_,null),b(),n.markup("</span></div>
61")):"toggle"===D?(K&&(L=K),(L.args||u.currentArgs)&&(N=Object.assign({},L.args,u.currentArgs)),c=L.get(N),L.icon&&!K&&t.warn("Toggle menu items cannot have icons."),L.label&&(L.onLabel||L.offLabel)&&t.warn("Toggle menu items should not have both label and on/offLabel properties."),C=L.label,k=c?"icon-menu-check":"",w=ye,C||(k=null,L.onIcon&&L.offIcon&&(k=c?L.onIcon:L.offIcon),C=c?L.onLabel:L.offLabel,_="menuitem",c=null,w=L.iconType||o.iconType),p(w,k),g(S,x,C,I,A,null,null,_,c),b(),n.markup("</span></div>")):"subMenu"===D&&(p(L.iconType||o.iconType,L.icon,L.iconStyle),g(S,x,L.label,null,null,"",null,_,null,!0),L.accelerator&&t.warn("Sub menu items cannot have accelerators."),n.markup("<span aria-hidden='true' class='"+re+"'>"),Ke(n,ye,f),n.markup("</span></span></div>"),T=e.htmlBuilder(),u._renderMenu(T,P,L.menu,!1,!1),n.markup("<div class='"+O+"' role='menu'").attr("id",S+"m").markup(">"+T.toString()),n.markup("</div>")),n.markup("</li>"),h+=1)}n.markup("</ul></div>")},_checkScrollBounds:function(e,t){return e.find(X).removeClass(me),t.scrollTop<=0?(e.find(X+"."+U).addClass(me),t.scrollTop=0,!0):t.scrollTop>=t.scrollHeight-t.clientHeight&&(e.find(X+"."+W).addClass(me),t.scrollTop=t.scrollHeight-t.clientHeight,!0)},_startScrolling:function(e,t){var n=this,i=0,a=[100,99,96,91,84,75,64,51,36,19],r=Xe(e)[0];this.scrollTimerId&&this._stopScrolling(),l(document).on("mouseup.menuScrolling",(function(){n._stopScrolling()})).on("mousemove.menuScrolling",(function(e){0===l(e.target).closest(X).length&&n._stopScrolling()})),function l(){r.scrollTop+=t?-10:10,n._checkScrollBounds(e,r)?n._stopScrolling():(n.scrollTimerId=setTimeout((function(){l()}),a[i]),i<a.length-1&&(i+=1))}()},_stopScrolling:function(){clearTimeout(this.scrollTimerId),this.scrollTimerId=null,this.element.find(X).removeClass(ge),l(document).off(".menuScrolling")},_adjustMenubarForSize:function(t,i){var a,r,s,o,u,c,d,h=!1,f=0,m=this.element.width()-2,p=i.items;for((u=p[p.length-1])&&u._overflow||(u=null),a=0;a<p.length;a++)(s=p[a]).hide?s._width=0:s._width=l("#"+e.escapeCSS(t+"_"+a)).outerWidth(!0),f+=s._width;if(f>m)for(u||(u={type:"subMenu",_overflow:!0,label:n.getMessage("APEX.MENU.OVERFLOW_LABEL"),menu:{items:[]}},p.push(u)),r=u.menu.items,a=p.length-2;a>=0&&f>m;)s=p[a],p.splice(a,1),"subMenu"===s.type&&(s.action||s.href)&&s.menu.items.unshift({type:"action",label:s.label,labelKey:s.labelKey,href:s.href,target:s.target,action:s.action,disabled:s.disabled}),"subMenu"===s.type&&s.menu.customContent&&((c=(d=l("#"+e.escapeCSS(t+"_"+a))).children(N).children().eq(0)).hide(),s.menu.customContent=c[0].id,l(document.body).append(c),d.children(N).attr(Ie,null)),r.unshift(s),f-=void 0!==s._width?s._width:0,h=!0,a-=1;else if(u){for(r=u.menu.items,o=0,a=0;a<r.length&&o<3;a++)r[a]._width>0&&(o+=1);for(1===o&&(f-=this.element.find("."+ee).outerWidth(!0)),delete u.current;r.length>0&&!((f+=void 0!==(s=r[0])._width?s._width:0)>m);)r.shift(),"subMenu"===s.type&&(s.action||s.href)&&s.menu.items.shift(),p.splice(p.length-1,0,s),h=!0;0===r.length&&p.pop()}return h}}),l.ui.dialog&&l.widget("ui.dialog",l.ui.dialog,{_allowInteraction:function(e){return l(e.target).closest(N).length>0||this._super(e)}}),l((function(){function n(n,i,a){let r=n.attr("data-menu");if(r){let s=l("#"+e.escapeCSS(r));if(!s.length)return void t.error("Menu cannot be found "+r);n.addClass(ge).attr(Ae,"true"),a&&We.isCurrentMenu(s[0])||s.menu("toggle",n,!1).on("menuafterclose.menubutton",(function(){l(this).off(".menubutton"),n.removeClass(ge).removeAttr(Ae)})),i&&Ve(s.find(Y).first())}}let i=l("body");i.on("click",ke,(function(){n(l(this),!0,!1)})).on("keydown",ke,(function(e){e.which===Oe.DOWN?(e.preventDefault(),n(l(this),!0,!0)):e.which===Oe.TAB&&(c=!0,We.closeAll())})),l(ke).attr(Te,"menu").removeAttr(Ae),i.on("apexafterrefresh",(function(e){l(e.target).find(ke).attr(Te,"menu").removeAttr(Ae)}))})),l.event.special.wheel={setup:function(e,t,n){this.addEventListener("wheel",n,l(this).hasClass(O)?{passive:!1}:void 0)}}}(apex.util,apex.debug,apex.lang,apex.navigation,apex.actions,apex.jQuery);
62!function(t){"use strict";const o="u-callout--top",e="u-callout--bottom",s="u-callout--left",l="u-callout--right";t.widget("apex.popup",t.ui.dialog,{widgetEventPrefix:"popup",closeBlurEvent:void 0,closeMousedownEvent:void 0,closeMouseDownTarget$:void 0,closeBlurTarget$
62:void 0,options:{parentElement:null,relativePosition:"below",callout:!1,noOverlay:!1,takeFocus:!0,closeDeadAreas:null},_create:function(){const o=this;let e=this.options,i=this.element;o.closeBlurEvent="blur.popupTracking"+this.uuid,o.closeMousedownEvent="mousedown.popupTracking"+this.uuid,e.resizable=!1,e.draggable=!1,e.modal=!e.noOverlay,this._super(),this.calloutBefore=l,this.calloutAfter=s,"rtl"===i.css("direction")&&(this.calloutBefore=s,this.calloutAfter=l),"auto"===e.width&&this.uiDialog.css("display","inline-block").hide(),this.uiDialog.addClass("ui-dialog--popup"),e.showTitle||this.uiDialog.children(".ui-dialog-titlebar").hide(),this._setPosition(),i.on("popupopen",(()=>{e.noOverlay?(o.closeMouseDownTarget$=t(document.body).add(t("iframe").map((function(){return this.contentDocument}))),o.closeBlurTarget$=t(window),setTimeout((()=>{this.closeBlurTarget$.on(o.closeBlurEvent,(()=>{i.popup("close")})),this.closeMouseDownTarget$.on(o.closeMousedownEvent,(o=>{!t(o.target).closest(".ui-dialog").not(".ui-dialog--popup").length&&(this._allowInteraction(o)||e.closeDeadAreas&&t(o.target).closest(e.closeDeadAreas).length)||(i.data("apex-popup").opener=t(o.target),o.data={mouseDownOutPopup:!i[0].contains(o.target)},i.popup("close",o))}))}),0),i.one("popupclose",(function(){o.closeBlurTarget$.off(o.closeBlurEvent),o.closeMouseDownTarget$.off(o.closeMousedownEvent)}))):t(".ui-widget-overlay").on("click",(function(){i.popup("close")})),this._updateCallout()}))},_destroy:function(){this.callout$&&this.callout$.remove(),this.closeBlurTarget$.off(this.closeBlurEvent),this.closeMouseDownTarget$.off(this.closeMousedownEvent),this.uiDialog[0].remove()},_setPosition:function(){let i,a,n=0,u=this.options,c=this.element,r=u.relativePosition;if(u.parentElement&&(this.positionTo$="string"==typeof u.parentElement?t(document).find(u.parentElement):t(u.parentElement),this.positionTo$[0]||(this.positionTo$=null)),u.callout&&this.positionTo$?(this.callout$||(this.callout$=t("<div class='u-callout'></div>"),c.after(this.callout$)),n=parseInt(c.parent().css("margin-top"),10)):this.callout$&&(this.callout$.remove(),this.callout$=null),this.positionTo$){const t=this.positionTo$;"above"===r?(i=e,a={my:"left bottom",at:"left top-"+n,of:t,collision:"fit flipfit"}):"below"===r?(i=o,a={my:"left top",at:"left bottom+"+n,of:t,collision:"fit flipfit"}):"before"===r?(i=l,a={my:"right top",at:"left-"+n+" top",of:t,collision:"flipfit fit"}):"after"===r?(i=s,a={my:"left top",at:"right+"+n+" top",of:t,collision:"flipfit fit"}):"inside"===r&&(i=o,a={my:"left top",at:"left+"+n+" top+"+n,of:t}),this.callout$&&this.callout$.removeClass(o+" "+e+" "+l+" "+s).addClass(i)}else a={my:"center",at:"center",of:window};this.options.position=a},_updateCallout:function(){let t,i,a,n,u,c;this.callout$&&this.positionTo$&&(c=this.callout$,n=this.element.offset(),u=this.positionTo$.offset(),c.hasClass(o)?n.top<u.top&&c.removeClass(o).addClass(e):c.hasClass(e)?n.top>u.top&&c.removeClass(e).addClass(o):c.hasClass(this.calloutAfter)?n.left<u.left&&c.removeClass(this.calloutAfter).addClass(this.calloutBefore):c.hasClass(this.calloutBefore)&&n.left>u.left&&c.removeClass(this.calloutBefore).addClass(this.calloutAfter),c.css("left",""),c.css("top",""),c.hasClass(o)||c.hasClass(e)?(t=parseInt(c.css("left"),10),a=u.left-n.left,a>0&&c.css("left",a+t)):(c.hasClass(s)||c.hasClass(l))&&(i=parseInt(c.css("top"),10),a=u.top-n.top,a>0&&c.css("top",a+i)))},_setOption:function(t,o){if("draggable"===t||"resizable"===t||"modal"===t)throw new Error("Popup "+t+" cannot be set.");this._super(t,o),"parentElement"!==t&&"callout"!==t&&"relativePosition"!==t||this._setPosition()},_focusTabbable:function(){this.options.takeFocus&&this._super()},close:function(o){const e=this,s=this.options;this._isOpen&&!1!==this._trigger("beforeClose",o)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),s.takeFocus&&!this.opener.filter(":focusable").trigger("focus").length&&t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,(function(){e._trigger("close",o)})))}})}(apex.jQuery);
63apex.ToggleCore=function(e){"use strict";return function(n){var o=(e=n.extend({},{useSessionStorage:!0,defaultExpandedPreference:!1,onClick:function(){},onResize:function(){},onInitialize:function(){S?v():z()},onCollapse:function(){},onExpand:function(){},isPreferenceGlobal:!1},e)).key,l=e.defaultExpandedPreference,t=e.onExpand,a=e.onCollapse,c=e.onResize,r=e.onClick,i=e.onInitialize,s=e.content,f=e.contentClassExpanded,u=e.contentClassCollapsed,d=e.controllingElement,p=e.controllingElementSelector,g=e.useSessionStorage,x=e.isPreferenceGlobal,C=apex.storage.getScopedSessionStorage({prefix:"ORA_WWV_apex.toggleCore."+o,usePageId:!x,useAppId:!0}),E=!1,S=l;if(g){var P=C.getItem("preferenceForExpanded");P&&(S="true"===P)}
63(!d||d.length<1)&&(d=n(p)),d&&d.on("click",(function(e){r.call(R),y(),d.trigger("focus"),e.preventDefault()}));var m=function(e){S=e,g&&C.setItem("preferenceForExpanded",S)},v=function(){E=!1,I.call(R)},z=function(){E=!0,k.call(R)},I=function(e){E||(E=!0,e&&m(E),s.removeClass(u).addClass(f),t())},k=function(e){E&&(E=!1,e&&m(E),s.addClass(u).removeClass(f),a())},y=function(){E?k.call(R,!0):I.call(R,!0)},R={key:o,setUserPreference:m,doesUserPreferExpanded:function(){return S},isExpanded:function(){return E},toggle:function(){y.call(R)},expand:function(){I.call(R)},collapse:function(){k.call(R)},forceExpand:v,forceCollapse:z,resize:function(){c.call(R)},initialize:function(){i.call(R)}};return R}(apex.jQuery)},window.ToggleCore=apex.ToggleCore;
64!function(e,t){"use strict";const n="a-Collapsible",i=n+"-content",l=n+"-heading",s="a-Icon "+n+"-icon",o="."+n,a="aria-controls",d="aria-expanded",r="aria-hidden";e.widget("apex.collapsible",{widgetEventPrefix:"collapsible",baseId:null,heading$:null,controllingElement$:null,content$:null,isContentIdSetByWidget:!1,isHeadingIdSetByWidget:!1,isControllingElementALink:!1,core:null,expandedClass:"is-expanded",collapsedClass:"is-collapsed",options:{heading:"h1,h2,h3,h4,h5,h6",controllingElement:"button,a",content:null,collapsed:!0,doCollapse:!0,universalTheme:!1,expandedClass:null,collapsedClass:null,rememberState:!1,renderIcon:!0},_create:function(){let c,h,g=this,p=this.options,m=e(o).length;const C=this.element.attr("data-region-id");if(this.baseId=C?`a_Collapsible_${C}`:`a_Collapsible${m+1}_${this.element.attr("id")}`,this.element.addClass(n),p.expandedClass&&(this.expandedClass+=" "+p.expandedClass),p.collapsedClass&&(this.collapsedClass+=" "+p.collapsedClass),this.heading$=this.element.find(p.heading).first(),this.heading$.addClass(l),this.controllingElement$=this.element.find(p.controllingElement).first(),this.controllingElement$.text()||(h=this.heading$[0].id,h||(h=this.baseId+"_heading",this.heading$[0].id=h,this.isHeadingIdSetByWidget=!0),this.controllingElement$.attr("aria-labelledby",h)),p.universalTheme?this.content$=p.content:p.content?this.content$=this.element.find(p.content).first():this.content$=this.heading$.next(),this.content$.addClass(i),c=this.content$[0].id,c||(c=this.baseId+"_content",this.content$[0].id=c,this.isContentIdSetByWidget=!0),this.controllingElement$.attr(a,c).attr(d,!p.collapsed),this.controllingElement$.is("a")&&(this.isControllingElementALink=!0),p.renderIcon){let e=t.htmlBuilder();e.markup("<span").attr("class",s).attr("aria-hidden",!0).markup(">").markup("</span>"),this.controllingElement$.prepend(e.toString())}this.isControllingElementALink&&(this.controllingElement$.attr("role","button"),this._on(this.controllingElement$,{keypress:function(t){t.which===e.ui.keyCode.SPACE&&(g.core.toggle(),t.preventDefault())}})),this.core=apex.ToggleCore({key:g.baseId,controllingElement:this.controllingElement$,content:g.element,contentClassExpanded:this.expandedClass,contentClassCollapsed:this.collapsedClass,defaultExpandedPreference:!p.collapsed,useSessionStorage:p.rememberState,onExpand:function(){g.content$.attr(r,"false"),p.doCollapse&&g.content$.show(),g.controllingElement$.attr(d,"true"),g._trigger("expand")},onCollapse:function(){g.content$.attr(r,"true"),p.doCollapse&&g.content$.hide(),g.controllingElement$.attr(d,"false"),g._trigger("collapse")}}),this.core.initialize()},_destroy:function(){this.element.removeClass(n+" "+this.collapsedClass+" "+this.expandedClass),this.controllingElement$.removeAttr(d).removeAttr(a),this._off(this.controllingElement$),this.isContentIdSetByWidget&&this.content$.removeAttr("id"),this.isHeadingIdSetByWidget&&this.heading$.removeAttr("id"),this.heading$.removeClass(l),this.content$.removeAttr(r).removeClass(i),this.options.doCollapse&&this.content$.show()},expand:function(){this.core.expand()},collapse:function(){this.core.collapse()},toggle:function(){this.core.toggle()},getCore:function(){return this.core}}),apex.message&&apex.message.addVisibilityCheck((function(t){e("#"+t).parents(".a-Collapsible").collapsible("expand")})),apex.widget.util.visibilityChange&&e((()=>{e(document.body).on("collapsibleexpand",(function(e){apex.widget.util.visibilityChange(e.target,!0)})).on("collapsiblecollapse",(function(e){apex.widget.util.visibilityChange(e.target,!1)}))}))}(apex.jQuery,apex.util);
65!function(t,e,s){"use strict";t.passwordMask=function(t,a){const i={showPassword:s.getMessage("APEX.PASSWORD.SHOW_PASSWORD"),hidePassword:s.getMessage("APEX.PASSWORD.HIDE_PASSWORD")},d="is-disabled",o="apex_disabled",n="apex-item-password-readonly";function c(t,e,s){t.type="password",e.setAttribute("aria-label",i.showPassword),e.setAttribute("title",i.showPassword),r(s)}function r(e){e.classList.toggle(t.hideIcon),e.classList.toggle(t.showIcon)}e(".apex-item-password").each((function(){const e=this;
65if(!e.closest(".js-hidePasswordVisibility")){const s=document.createElement("button"),l=document.createElement("span");s.classList.add(...t.button),s.setAttribute("type","button"),s.setAttribute("aria-label",i.showPassword),s.setAttribute("title",i.showPassword),l.classList.add(...t.icon,t.hideIcon),l.setAttribute("aria-hidden","true"),s.append(l),e.disabled||e.classList.contains(o)||e.classList.contains(d)?(e.disabled=!0,e.classList.add(o,d)):s.addEventListener("click",(()=>{switch(e.type){case"text":c(e,s,l);break;case"password":!function(t,e,s){t.type="text",e.setAttribute("aria-label",i.hidePassword),e.setAttribute("title",i.hidePassword),r(s)}(e,s,l)}})),e.readOnly&&e.classList.add(n);const p=document.createElement("div");p.addEventListener("focusout",(function(t){this.contains(t.relatedTarget)||e&&"text"===e.type&&c(e,s,l)})),p.classList.add("apex-item-group","apex-item-group--password"),"function"==typeof a?a(e,p,s):(e.parentNode.append(p),p.append(e),p.append(s))}}))}}(apex.widget,apex.jQuery,apex.lang);
66((e,t,i,n,r)=>{"use strict";class s extends HTMLElement{constructor(){super();const s=this,a=s.getAttribute("region-id"),o=s.getAttribute("ajax-identifier"),c=s.hasAttribute("lazy-loading"),u=s.getAttribute("page-items-to-submit"),d=u?u.split(","):void 0,g=e("#"+n.escapeCSS(a));g.length||t.error("Dynamic Content region must use a template with ID attribute");const l=()=>apex.server.plugin({regions:[{id:a,ajaxIdentifier:o}],pageItems:d},{refreshObject:g,loadingIndicator:g,loadingIndicatorPosition:"centered",success:e=>{s.innerHTML=e.regions[0].result}});c&&r.whenBecomesVisible(g,l),i.create(a,{type:"DynamicContent",refresh:l})}}e((()=>{window.customElements.define("a-dynamic-content",s)}))})(apex.jQuery,apex.debug,apex.region,apex.util,apex.widget.util);
67!function(t,o){"use strict";let n=null,i=0;const e=":data(ui-tooltip)",l=new Set;function a(){let t,i;n&&(t=n.target,i=o.Event(n),i.target=i.currentTarget=n.originalEvent.target,o(t).data("ui-tooltip")&&o(t).tooltip("close",i))}t.tooltipManager={closeTooltip:a,tooltipsDisabled:function(){return i>0},disableTooltips:function(){0===i&&(this.closeTooltip(),l.clear(),o(document).find(e).each((function(){let t=o(this);t.tooltip("option","disabled")?l.add(this):t.tooltip("disable")}))),i+=1},enableTooltips:function(){i-=1,i<=0&&(o(document).find(e).each((function(){let t=o(this);l.has(this)||t.tooltip("enable")})),i=0)},defaultShowOption:function(){return{delay:1e3,effect:"show",duration:100}}},o((function(){o(document.body).on("tooltipopen",(function(t){a(),n=t,t.originalEvent||(n.originalEvent={target:t.target})})).on("tooltipclose",(function(t){n&&t.originalEvent&&n.originalEvent.target===t.originalEvent.target&&(n=null)})).on("tooltipcreate",(function(t){o(t.target).tooltip("option","disabled",i>0)}))}))}(apex,apex.jQuery);
68apex.theme={},function(e,t,i,o,a,n,s,l){"use strict";var r,p="apex_popup_field_help",d="#"+p,c="apex_popup_help_area",u="#"+c,g="ui-dialog--stretch",h=null,f={};const m=a.hasOwnProperty;function w(e,t){var o,a,n=!1,s="string"==typeof e?i("#"+e):e,l=s.data();function r(e){return"function"==typeof e}if(l)for(o in l)if(m(l,o)&&(a=l[o]).widgetFullName&&(r(a.open)&&r(a.close)||r(a.expand)&&r(a.collapse))){n=!0,a.open||(t="open"===t?"expand":"collapse"),a[t]();break}if(!n)throw new Error("Error: Region does not support being opened and closed.");return s}apex.actions&&i((()=>{apex.actions.add([{name:"a-open-customize-dialog",action:function(t,i,o){e.openCustomizeDialog(o.title,o.lang)}}])})),e.popupFieldHelp=function(e,t,n){let s;function l(e){const t=i("<span></span>");return e.replace(/&#?\w+;/g,(function(e){return t.html(e),t.text()}))}function r(e){let t=a.getTopApex().jQuery(d),n=a.getTopApex().jQuery(u);0===t.length?(0===n.length&&a.getTopApex().jQuery("#wwvFlowForm").after("<div id='"+c+"'></div>"),t=a.getTopApex().jQuery("<div id='"+p+"' tabindex='0'>"+e.helpText+"</div>"),t.dialog({closeText:o.getMessage("APEX.DIALOG.CLOSE"),title:l(e.title),appendTo:u,dialogClass:"ui-dialog--helpDialog",width:500,minHeight:96,create:function(){t.closest(".ui-dialog").css("position","fixed")},resize:function(){t.closest(".ui-dialog").css("position","fixed")},close:function(){h&&i(h).trigger("focus")}}).keydown((function(e){117===e.which&&e.altKey&&h&&i(h).trigger("focus")}))):t.html(e.helpText).dialog("option","title",l(e.title)).dialog("open"),t.trigger("focus")}h=document.activeElement||null,s=n||"wwv_flow_item_help.show_help?p_item_id="+e+"&p_session="+t+"&"+apex.util.getContextString(),i.isPlainObject(e)?(e.helpText.indexOf("apex-help-dialog")<0&&(e.helpText="<div class='apex-help-dialog'>
68"+e.helpText+"</div>"),r(e)):f[e]?r(f[e]):i.getJSON(s+"&p_output_format=JSON",(function(t){t.title&&t.helpText&&(r(t),e&&(f[e]=t))}))},i((function(){i(document.body).on("click",".js-itemHelp",(function(){var t=i(this).attr("data-itemhelp");t&&e.popupFieldHelp(t,s.APP_SESSION)})).on("keydown",(function(t){112===t.which&&t.altKey&&i(t.target).parents().each((function(){var t,o;if(this.id&&/_CONTAINER$/.test(this.id)||"TD"===this.nodeName){if((t=i(this).find(".js-itemHelp")).length&&(o=t.attr("data-itemhelp")))return e.popupFieldHelp(o,s.APP_SESSION),!1;if("TD"!==this.nodeName)return!1}}))})),i(document.body).on("dialogopen dialogclose popupopen popupclose",(function(e){var t=i(d),o=i(e.target);t[0]&&t.dialog("isOpen")&&o[0]!==t[0]&&(o.is(":data(apexPopup)")||o.dialog("option","modal"))&&(h=null,t.data("ui-dialog").opener=i(i.ui.safeActiveElement(document)),t.dialog("close"))})),i(document.body).on("click","label",(function(e){var t,o=i(this).attr("for");o&&((t=i("#"+a.escapeCSS(o))).is("input,textarea,select")&&!t.prop("disabled")&&t.is(":visible")||0!==i(this).find("a").length||(apex.item(o).setFocus(),e.preventDefault()))})),i(".js-regionDialog,.js-regionPopup").each((function(){var e=i(this),o=e.hasClass("js-regionPopup"),s=/js-dialog-size(\d+)x(\d+)/.exec(this.className),r=/js-dialog-width-(\d+)/.exec(this.className),p=/js-dialog-height-(\d+)/.exec(this.className),d=/js-popup-pos-(\w+)/.exec(this.className),c=e.attr("data-parent-element"),u={autoOpen:!1,noOverlay:e.hasClass("js-popup-noOverlay"),appendTo:"form[name='wwv_flow']",closeText:apex.lang.getMessage("APEX.DIALOG.CLOSE"),modal:o||e.hasClass("js-modal"),resizable:!o&&e.hasClass("js-resizable"),draggable:!o&&e.hasClass("js-draggable"),dialogClass:"ui-dialog--inline",show:"apexDialogShow",hide:"apexDialogHide",create:function(){i(this).closest(".ui-dialog").css("position","fixed").attr("aria-modal",u.modal)}},g=o?"popup":"dialog";s&&(u.width=s[1],u.height=s[2]),r&&(u.width=r[1]),p&&(u.height=p[1]),c&&o&&(u.parentElement=c,e.hasClass("js-popup-callout")&&(u.callout=!0),d&&(u.relativePosition=d[1])),["width","height","minWidth","minHeight","maxWidth","maxHeight"].forEach((function(t){var i=parseInt(e.attr("data-"+t.toLowerCase()),10);isNaN(i)||(u[t]=i)})),["appendTo","dialogClass"].forEach((function(t){var i=e.attr("data-"+t.toLowerCase());i&&(u[t]=i)})),this.className.split(" ").forEach((e=>{let t=/js-dialog-class-(.+)/.exec(e);t&&(u.dialogClass+=" "+t[1])})),u.appendTo&&"#"===u.appendTo.substring(0,1)&&0===i(u.appendTo).length&&i("#wwvFlowForm").after('<div id="'+a.escapeHTML(u.appendTo.substring(1))+'"></div>'),e[g](u).on(g+"open",(function(){u.modal&&t.beginFreezeScroll(),n.visibilityChange(e[0],!0);let o=i(document.activeElement);l.isItem(o.attr("name"))&&l(o.attr("name")).setFocus()})).on(g+"resize",(function(){i(this).closest(".ui-dialog").css("position","fixed")})).on(g+"close",(function(){u.modal&&t.endFreezeScroll(),n.visibilityChange(e[0],!1)})),o||!u.draggable&&void 0!==u.draggable||e.parent().draggable("option","containment","window")}))})),e.openRegion=function(e){return w(e,"open")},e.closeRegion=function(e){return w(e,"close")},e.mq=function(e){var t=matchMedia(e);return t&&t.matches||!1},e.pageResizeInit=function(){i("#wwvFlowForm").addClass("resize"),i("body > link").hide(),i("body").css("overflow","hidden"),i(".resize").each((function(){"flex"===i(this).css("display")&&i(this).css("display","block")})),i("body").on("resize",(function(e){var t,o,n,s,l,r=i(e.target);"BODY"===e.target.nodeName?(l=window.getComputedStyle(document.body),t=document.documentElement.clientHeight-parseFloat(l.paddingTop)-parseFloat(l.paddingBottom),o=document.documentElement.clientWidth-parseFloat(l.paddingLeft)-parseFloat(l.paddingRight)):(t=r.height(),o=r.width()),(n=r.children(".resize").filter(":visible")).length>0&&(r.children(":not(.resize)").filter(":visible").each((function(){"fixed"!==(s=i(this).css("position"))&&"absolute"!==s&&(t-=i(this).outerHeight(!0))})),t=Math.floor(t/n.length),n.each((function(){var e=i(this);a.setOuterHeight(e,t),a.setOuterWidth(e,o),e.filter(":visible").trigger("resize")}))),e.stopPropagation()})),i(".ui-accordion.resize").on("resize",(function(e){e.target===this&&(i(this).accordion("refresh"),e.stopPropagation())})),i(".ui-tabs.resize").on("resize",(function(e){e.target===this&&(i(this).tabs("refresh").children(".ui-tabs-panel.resize").trigger("resize"),e.stopPropagation())})),i(window).on("apexwindowresized",(function(){i("body").trigger("resize")})),i("body").trigger("resize")},e.defaultStickyTop=function(){return 0},e.initWizardProgressBar=function(e){var t="."+(e||"t-WizardSteps");i(t).find(t+"-step.is-active").find("span"+t+"-labelState").text(o.getMessage("APEX.ACTIVE_STATE")).end().prevAll(t+"-step").addClass("is-complete").find("span"+t+"-labelState").text(o.getMessage("APEX.COMPLETED_STATE"))};var v=function(e){return!!e.hasClass("js-regionPopup")||"center"!==e.dialog("option","position").my};e.initResponsiveDialogs=function(){i("body").on("dialogopen",".ui-dialog-content",(function(){var e,t=i(this),o=t.closest(".ui-dialog");if(!(t.hasClass("non-responsive")||o.find(".utr-container").length>0)){o.css("maxWidth","100%");var a=o.find(".ui-dialog-buttonpane"),n=0;a.length>0&&(n=a.outerHeight()+20);var s=parseInt(t.dialog("option","minHeight"),10);s||(s=0);var l=function(){var e=o.offset(),a=i(window);e.top-=a.scrollTop(),e.left-=a.scrollLeft();var l=a.width(),r=o.outerWidth();e.left+r>l&&o.css("left",l-r);var p=i(window).height(),d=o.height(),c=t.height(),u=i(".ui-dialog--apex .ui-dialog-content:visible"),g=i(".ui-dialog .js-regionDialog:visible"),h={my:"center",at:"center",of:window},f=function(e){var t=i(e);v(t)||t.dialog("option","position",h)};if(m(o,"resizable")&&!o.resizable("option","disabled")&&(o.resizable("option","maxWidth",l),t.css({"max-width":l,width:"100%"})),p<c+n){var w=p-o.find(".ui-dialog-titlebar").outerHeight()-n;t.height(Math.max(w,s)),d=o.height()}else c+n<p&&!o.hasClass("a-IRR-dialog")&&t.height(c);if(e.top+d>p){var x=0;"absolute"===o.css("position")&&(x=a.scrollTop()),o.css("top",Math.max(p-d+x,0))}u.each((function(){f(this)})),g.each((function(){f(this)}))};e=setTimeout((function(){l()}),250),i(window).on("apexwindowresized",l),t.on("dialogclose",(function(){i(window).off("apexwindowresized",l),clearTimeout(e)}))}})).on("popupopen",".ui-dialog-content",(function(){var e=i(this),t=e.closest(".ui-dialog"),o=i(window).width()-10,a=i(window).height()-10,n=t.outerWidth(),s=t.height();e.hasClass("non-responsive")||(n>o&&e.popup("option","width",o),s>a&&e.popup("option","height",a))}))},e.openCustomizeDialog=function(e,o){apex.jQuery(i("#pFlowStepId")).on("apexafterclosedialog",(function(e,t){var i=document.location.href.replace(/&?success_msg=([^&]$|[^&]*)/i,"")+t.successMessage.urlSuffix;document.location.href=i}
68)),t.dialog("wwv_flow_customize.show?p_flow="+$v("pFlowId")+"&p_page="+$v("pFlowStepId")+"&p_session="+$v("pInstance")+"&p_lang="+o+"&"+a.getContextString(),{title:e,height:450,scroll:"no",width:600,maxWidth:800,modal:!0,resizable:!0},null,i("#pFlowStepId"))};var x=function(e){e.dialog("option","position",{my:"center",at:"center",of:window.parent})},b=e.stretchDialog=function(e,t){var i="95%";t&&(i=t+"%"),e.parent().css({height:i,width:i}).addClass(g),x(e)},y=e.observeAttrChanges=function(e,t){var o=i(e)[0],n=a.debounce((function(){t(e)}),50),s=new MutationObserver(n);return s.observe(o,{attributes:!0,childList:!0,characterData:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1,attributeFilter:["class","id","style"]}),s},C=e.modalAutoSize=function(e){var t,o,n,s="js-dialogReady",l=i("body"),p=a.getTopApex().jQuery,d=e.observeClass,c=void 0!==apex.builder,u=0!==i("."+g).length;return window.parent===window.self?(l.addClass(s),!1):(t="#"+window.frameElement.parentNode.id,o=p(t)||i(t),u?b(o):(n=function(){var t,a,n=e.sections,s=n.length,l=o.parent().find(".ui-dialog-titlebar").outerHeight(),r=p(parent.window).height()-20,d=parseInt(o.dialog("option","minHeight"),10),u=parseInt(o.dialog("option","maxHeight"),10)||r,g=0,h=0,f=function(e){var t=0,o=parseInt(e.css("padding-top"),10)+parseInt(e.css("padding-bottom"),10);return e.children().each((function(){t+=i(this)[0].offsetHeight})),t+o};for(t=0;t<s;t++)(a=i(n[t]))[0]&&(g+=c?f(a):a.outerHeight());return h=(h=(g+=l)>d?g<u?g:u:d)>r?r:h,c&&(h-=l),h}(),"auto"===o.dialog("option","height")&&n!==r&&(c?o.css("height",n):o.parent().css("height",n),v(o)||x(o),r=n,y(d,(function(){C(e)})))),l.addClass(s),o.addClass(s),!0)};e.dialogAutoHeight=function(e){var t,o=i(e),n=function(e,o){var a=i(e),s=o?"popup":"dialog",l=o?"popupresizestart popupclose":"dialogresizestart dialogclose",r=(o?0:a.prev().outerHeight())+i(e+" .t-DialogRegion-body").outerHeight()+a.find(".t-DialogRegion-buttons").outerHeight(),p=i(window).height()-48,d=r>p?p:r;(d||0!==d)&&(a.css("height","auto").parent().css("height",d),v(a)||a[s]("option","position","center"),t||(t=y(e,(function(){n(e,o)})),a.on(l,(function(){null!==t&&(t.disconnect(),t=null)}))))};return o.each((function(){var e=i(this),t="#"+a.escapeCSS(e.attr("id")),o=e.hasClass("js-regionPopup"),s=o?"popup":"dialog";e.on(s+"open",(function(){n(t,o)})),n(t,o)})),o}}(apex.theme,apex.navigation,apex.jQuery,apex.lang,apex.util,apex.widget.util,apex.env,apex.item);
69apex.pwa=apex.pwa||{},function(a,e,s,t,i,n,o,r,l,c,p){"use strict";const w=s("body"),g="a-pwaDialog",u="a-pwaDialog--showInstructions",d="a-pwa-show-instructions",h="a-pwa-hide-instructions",v="a-pwaInstall--available",P="a-pwa-install",b="a-pwaPush--available",A="fullscreen",S="standalone",m="minimal-ui";let f,I;const y="serviceWorker"in navigator,T="http:"===window.location.protocol&&"localhost"!==window.location.hostname&&"127.0.0.1"!==window.location.hostname,D=(e=!0)=>{const s="PushManager"in window,i="Notification"in window,n="string"==typeof a.publicKey,o="nobody"===c.APP_USER;return!(!(y&&s&&i&&n)||o)||(e&&(T&&t.warn("Push notifications are not supported on HTTP pages."),n||t.warn("Push notifications are not supported because the public key is not set for this application."),o&&t.warn("Push notifications are not supported because the current user is not authenticated."),y&&s&&i||t.warn("Push notifications are not supported by this browser.")),!1)},E=async()=>{await a.isInstallable()?(w.addClass(v),o.show(P)):(w.removeClass(v),o.hide(P),setTimeout((()=>{I&&t.info(I)}),2e3))};a.init=({serviceWorkerPath:i})=>{y?(window.addEventListener("load",(async()=>{try{await navigator.serviceWorker.register(i),t.info("Service worker registered.")}catch(a){t.warn("Service worker failed to register.",a)}})),window.addEventListener("beforeinstallprompt",(a=>{a.preventDefault(),f=a,E()})),window.addEventListener("appinstalled",(()=>{f=null,w.removeClass(v),o.hide(P)})),s((()=>{o.add({name:P,label:e.getMessage("PWA.INSTALL"),icon:"fa fa-cloud-download",action:a.openInstallDialog}),o.add({name:d,label:null,icon:null,action:()=>{s("."+g).addClass(u)}}),o.add({name:h,label:null,icon:null,action:()=>{s("."+g).removeClass(u)}}),s(".a-pwaInstall").not(`:has([href="#action$${P}"])`).not(`[href="#action$${P}"]`).on("click",a.openInstallDialog)}))):T?t.warn("Service workers are not supported on HTTP pages."):t.warn("Service workers are not supported."),s((()=>{E(),(async()=>{const t=D(!1);t?w.addClass(b):w.removeClass(b);const i=s(".a-pwaPush--state");if(i.length){let s="NOT_SUPPORTED";t&&(s=await a.hasPushSubscription()?"ON":"OFF"),i.text(e.getMessage(`APEX.FEATURE.CONFIG.${s}`))}})()}))}
69,a.initPushSubscriptionPage=async()=>{const e=await a.hasPushSubscription(),t=p(`P${c.APP_PAGE_ID}_ENABLE_PUSH`);D(!1)?t.setValue(e?"Y":"N"):(s(".a-pwaPush--subscriptionRegion").hide(),s(".a-pwaPush--subscriptionRegion--not-supported").show(),t.setValue("N"))},a.getDisplayMode=()=>i.mq(`(display-mode: ${A})`)?A:i.mq(`(display-mode: ${S})`)?S:i.mq(`(display-mode: ${m})`)?m:"browser",a.isInstallable=async()=>{let a=!1;if(I=null,"BeforeInstallPromptEvent"in window&&(f?a=!0:(I="PWA is not installable. Browser installation criteria are not met or PWA may already be installed.",a=!1)),"getInstalledRelatedApps"in navigator&&window===window.parent){const e=await navigator.getInstalledRelatedApps();e&&e.length&&(I="PWA is not installable due to being already installed on current device.",a=!1)}return"standalone"in navigator&&(navigator.standalone?(I="PWA is not installable due to current page already being in PWA mode.",a=!1):a=!0),window!==window.parent&&(I="PWA is not installable due to current page being an iframe.",a=!1),a},a.getInstallText=async()=>{const s=await a.isInstallable();return await e.loadMessages(["APEX.PWA.%"]),"standalone"in navigator&&s?`<ol class="a-pwaDialog-steps">\n  <li class="a-pwaDialog-step a-pwaDialog-step--1">\n    <svg class="a-pwaDialog-stepImage" role="presentation" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g><path d="M50.21 19.87H40.8a1.641 1.641 0 0 0 0 3.28h9.41c.75 0 1.36.61 1.36 1.36v31.24c0 .75-.61 1.36-1.36 1.36H13.79c-.75 0-1.36-.61-1.36-1.36V24.5c0-.75.61-1.36 1.36-1.36h9.41a1.641 1.641 0 0 0 0-3.28h-9.41c-2.56 0-4.64 2.08-4.64 4.64v31.24c0 2.56 2.08 4.64 4.64 4.64h36.42c2.56 0 4.64-2.08 4.64-4.64V24.5a4.648 4.648 0 0 0-4.64-4.63z"/><path d="M22.8 15.2c.42 0 .84-.16 1.16-.48l6.4-6.41v31.63a1.641 1.641 0 0 0 3.28 0V8.32l6.4 6.41c.32.32.74.48 1.16.48a1.635 1.635 0 0 0 1.16-2.79l-9.19-9.19c-.33-.33-.75-.49-1.17-.49-.42 0-.84.16-1.17.48l-9.19 9.19a1.63 1.63 0 0 0 0 2.31c.33.32.74.48 1.16.48z"/></g></svg>\n    <p class="a-pwaDialog-stepText">${e.getMessage("APEX.PWA.INSTRUCTIONS.IOS.STEP1")}</p>\n  </li>\n  <li class="a-pwaDialog-step a-pwaDialog-step--2">\n    <svg class="a-pwaDialog-stepImage" role="presentation" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g><path d="M46.41 30.55H33.46V17.02a1.451 1.451 0 0 0-2.9 0v13.53H17.61a1.451 1.451 0 0 0 0 2.9h12.95v13.53a1.451 1.451 0 0 0 2.9 0V33.45h12.95a1.451 1.451 0 0 0 0-2.9z" stroke-miterlimit="10"/><path d="M54.04 60.67H9.12c-3.65 0-6.62-2.97-6.62-6.62V9.14c0-3.65 2.97-6.62 6.62-6.62h44.92c3.65 0 6.62 2.97 6.62 6.62v44.92c-.01 3.64-2.98 6.61-6.62 6.61zM9.12 5.52c-1.99 0-3.62 1.62-3.62 3.62v44.92c0 1.99 1.62 3.62 3.62 3.62h44.92c1.99 0 3.62-1.62 3.62-3.62V9.14c0-1.99-1.62-3.62-3.62-3.62H9.12z"/></g></svg>\n    <p class="a-pwaDialog-stepText">${e.getMessage("APEX.PWA.INSTRUCTIONS.IOS.STEP2")}</p>\n  </li>\n  <li class="a-pwaDialog-step a-pwaDialog-step--3">\n    <svg class="a-pwaDialog-stepImage" role="presentation" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g><path d="M32 60.41c-15.9 0-28.83-12.93-28.83-28.83S16.1 2.74 32 2.74s28.83 12.93 28.83 28.83S47.9 60.41 32 60.41zm0-53.97c-13.86 0-25.14 11.28-25.14 25.14S18.14 56.72 32 56.72s25.14-11.28 25.14-25.14S45.86 6.44 32 6.44z"/><path d="M42.5 20.8L26.72 36.57l-5.19-5.18a2.62 2.62 0 0 0-1.8-.71 2.655 2.655 0 0 0-1.94 4.46l7.06 7.06c.48.48 1.14.78 1.87.78.73 0 1.39-.3 1.87-.78l17.65-17.65c.44-.47.71-1.1.71-1.8a2.655 2.655 0 0 0-4.45-1.95z"/></g></svg>\n    <p class="a-pwaDialog-stepText">${e.getMessage("APEX.PWA.INSTRUCTIONS.IOS.STEP3")}</p>\n  </li>\n</ol>`:s?void 0:e.getMessage("APEX.PWA.INSTRUCTIONS")},a.openInstallDialog=async()=>{if(f)f.prompt();else{const i=await a.getInstallText(),o=({manifest:a,scn:t})=>{let o="",l=g,c=[],p=[];a?(o=`<img class="a-pwaDialog-icon" src="${r.escapeHTMLAttr(a.icons[1].src)}?v=${r.escapeHTMLAttr(t)}" alt="${r.escapeHTMLAttr(a.name)}" />\n<div class="a-pwaDialog-about">\n<div class="a-pwaDialog-name">${r.escapeHTML(a.name)}</div>\n<div class="a-pwaDialog-description">${r.escapeHTML(a.description||e.getMessage("APEX.PWA.DIALOG.INTRO"))}</div>\n</div>`,Array.isArray(a.screenshots)&&a.screenshots.length?(p=a.screenshots.map((a=>`<img class="a-pwaDialog-screenshot" src="${r.escapeHTMLAttr(a.src)}?v=${r.escapeHTMLAttr(t)}" alt="${r.escapeHTMLAttr(a.label)}" />`)),c.push(`<button data-action="${d}" class="a-Button a-Button--full a-Button--large a-Button--hot">${r.escapeHTML(e.getMessage("APEX.PWA.DIALOG.SHOW.INSTRUCTIONS"))}</button>`),c.push(`<button data-action="${h}" class="a-Button a-Button--full a-Button--large">${r.escapeHTML(e.getMessage("APEX.PWA.DIALOG.HIDE.INSTRUCTIONS"))}</button>`)):l+=" "+u):(o=`<div class="a-pwaDialog-description">${r.escapeHTML(e.getMessage("APEX.PWA.DIALOG.INTRO"))}</div>`,l+=" "+u);const w=`<div class="a-pwaDialog-header">${o}</div>\n<div class="a-pwaDialog-instructions">${i}</div>\n<div class="a-pwaDialog-screenshots">${p.join("")}</div>\n<div class="a-pwaDialog-actions">${c.join("")}</div>`;n.showDialog(w,{id:g,title:e.getMessage("APEX.PWA.DIALOG.TITLE"),unsafe:!1,width:"auto",okButton:!1,dialogClass:l,open:()=>{s(".ui-widget-overlay").on("click",(()=>{s("#"+g).dialog("close")}))}})};try{const a=document.querySelector("link[rel=manifest]"),e=await fetch(a.href);o({manifest:await e.json(),scn:a.href.split("?v=")[1]})}catch(a){t.warn(`Fetching manifest error: ${a.message}`),o({})}}},a.cleanup=({serviceWorkerPath:a})=>{if(y&&navigator.serviceWorker.getRegistrations().then((e=>{for(let s of e){const e=new URL(s.active.scriptURL).pathname;a.includes(e)&&s.unregister()}})).catch(t.warn),"caches"in window){const a="APEX-CORE-",e="APEX-APP-";window.caches.keys().then((s=>Promise.all(s.map((s=>s.startsWith(a)&&s.split(a)[1]!==c.APEX_VERSION||s.startsWith(e)&&s.split("-")[2]===c.APP_ID?window.caches.delete(s):void 0))))).catch(t.warn)}},a.getPushSubscription=async()=>
69{if(!D())return;const a=await navigator.serviceWorker.ready;if(a){const e=await a.pushManager.getSubscription();if(e)return e}},a.hasPushSubscription=async()=>{if(!D())return!1;const e=await a.getPushSubscription();if(e&&a.pushSubscriptions&&a.pushSubscriptions.length){const s=await(async a=>{const e=(new TextEncoder).encode(a),s=await crypto.subtle.digest("SHA-256",e);return Array.from(new Uint8Array(s)).map((a=>a.toString(16).padStart(2,"0"))).join("")})(JSON.stringify(e.toJSON()));return a.pushSubscriptions.some((a=>a.toLowerCase()===s.toLowerCase()))}return!1},a.subscribePushNotifications=async()=>{if(!D())return;const s=r.showSpinner(),i=await navigator.serviceWorker.ready;let o=await a.getPushSubscription();if(!o)try{o=await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:a.publicKey})}catch(a){t.error(`Push subscription error: ${a.message}`);const s="APEX.PWA.PUSH.SUBSCRIPTION_FAILED";await e.loadMessages([s]),n.clearErrors(),n.showErrors([{type:"error",location:"page",message:e.getMessage(s),unsafe:!1}])}o&&await l.widget("pwa",{x01:"subscribe_push_notifications",x02:JSON.stringify(o.toJSON())}),s.remove()},a.unsubscribePushNotifications=async()=>{if(!D())return;const e=r.showSpinner(),s=await a.getPushSubscription();s&&(await l.widget("pwa",{x01:"unsubscribe_push_notifications",x02:JSON.stringify(s.toJSON())}),await s.unsubscribe()),e.remove()}}(apex.pwa,apex.lang,apex.jQuery,apex.debug,apex.theme,apex.message,apex.actions,apex.util,apex.server,apex.env,apex.item);

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.