Innovenergy_trunk/frontend/node_modules/testcafe-hammerhead/lib/client/hammerhead.min.js

19 lines
571 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function e(){!function(){function t(e){var t={exports:{}};return e(t,t.exports),t.exports}function r(){for(var e=0;e<dc.length;e++)dc[e][0](dc[e][1]);dc=[],oc=!1}function n(e,t){dc.push([e,t]),oc||(oc=!0,hc(r,0))}function o(e,t){function r(e){s(t,e)}function n(e){l(t,e)}try{e(r,n)}catch(o){n(o)}}function i(e){var t=e.owner,r=t._state,n=t._data,o=e[r],i=e.then;if("function"==typeof o){r=cc;try{n=o(n)}catch(c){l(i,c)}}a(i,n)||(r===cc&&s(i,n),r===lc&&l(i,n))}function a(e,t){var r;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"==typeof t)){var n=t.then;if("function"==typeof n)return n.call(t,function(n){r||(r=!0,t===n?c(e,n):s(e,n))},function(t){r||(r=!0,l(e,t))}),!0}}catch(o){return r||l(e,o),!0}return!1}function s(e,t){e!==t&&a(e,t)||c(e,t)}function c(e,t){e._state===ac&&(e._state=sc,e._data=t,n(p,e))}function l(e,t){e._state===ac&&(e._state=sc,e._data=t,n(h,e))}function u(e){e._then=e._then.forEach(i)}function p(e){e._state=cc,u(e)}function h(e){e._state=lc,u(e),!e._handled&&pc&&ic.process.emit("unhandledRejection",e._data,e)}function d(e){ic.process.emit("rejectionHandled",e)}function f(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof f==!1)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],o(e,this)}function m(e,t){function r(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");gc(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function g(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function v(e,t,r){if(r&&e[t]){var n=e[t].toString();r.toString=function(){return n}}e[t]=r}function y(e,t,r){var n=r.getter,o=r.setter,i=r.value,a=Xc.objectGetOwnPropertyDescriptor(e,t);if((n||o)&&i)throw new Error("Cannot both specify accessors and a value or writable attribute.");if(a)return i?(Xc.objectHasOwnProperty.call(a,"writable")||(a.writable=!!a.set,delete a.get,delete a.set),a.value=i):(Xc.objectHasOwnProperty.call(a,"writable")&&(delete a.value,delete a.writable),null!==n&&v(a,"get",n),null!==o&&v(a,"set",o)),a}function _(e,t,r){if(e){var n=y(e,t,r);n?Xc.objectDefineProperty(e,t,n):_(Xc.objectGetPrototypeOf(e),t,r)}}function E(e,t){var r=Xc.objectGetOwnPropertyDescriptor(e,"name");r&&(r.value=t,Xc.objectDefineProperty(e,"name",r))}function S(e,t){Xc.objectDefineProperty(e,vc.nativeStrRepresentation,{value:Xc.Function.prototype.toString.call(t),configurable:!0})}function b(e,t){E(e,t.name),S(e,t)}function w(e){return!Xc.objectHasOwnProperty.call(e,vc.nativeStrRepresentation)}function x(e,t,r){var n=e[t];w(n)&&(b(r,n),e[t]=r)}function C(e,t,r,n){void 0===n&&(n=!1);var o=e[t].prototype;x(e,t,r),r.prototype=o,n&&(o.constructor=r)}function A(e){return null===e?"null":"undefined"}function T(e){return null===e||void 0===e}function I(e){var t=typeof e;return"object"!==t&&"function"!==t}function P(e){return Mc?null==e:null===e}function N(e){return"number"==typeof e}function O(e){return"function"==typeof e}function k(e){return"string"==typeof e?e.replace(/(^\s+)|(\s+$)/g,""):e}function L(e){var t={};if(!e)return t;for(var r=0,n=El;r<n.length;r++){var o=n[r],i=o.name,a=o.flag;e.indexOf(a)>-1&&(t[i]=!0)}return t}function D(e){if(!e)return null;for(var t="",r=0,n=El;r<n.length;r++){var o=n[r],i=o.name,a=o.flag;e[i]&&(t+=a)}return t||null}function M(e){return"null"===e?"":e.replace(al,function(e,t){return t?"s*":""})}function R(e){return e?sl.test(e)?e.replace(sl,"https://"):"http://"+e:"null"}function j(e,t){if(e=e.replace(/^www./i,""),t=t.replace(/^www./i,""),e===t)return!0;var r=t.lastIndexOf(e);return"."===t[r-1]&&t.length===r+e.length}function F(e,t){if(!t)return!0;var r=z(t),n=!r.host;if(n)return!0;var o=z(e),i=G(e);if(r.host===o.host&&r.protocol===o.protocol)return!0;var a=i?i.destResourceInfo:o;if(!a)return!1;var s=!r.protocol||r.protocol===a.protocol,c=!a.port&&!r.port||a.port&&a.port.toString()===r.port;return s&&!!c&&a.hostname===r.hostname}function H(e){var t=z(e);return t.protocol=t.protocol&&t.protocol.toLowerCase(),t.host=t.host&&t.host.toLowerCase(),X(t)}function U(e){return null===e&&/iPad|iPhone/i.test(window.navigator.userAgent)?"":String(e).replace(/[\n\t]/g,"")}function B(e,t){var r=[t.sessionId];t.windowId&&r.push(t.windowId);var n=[r.join(hl)];t.resourceType&&n.push(t.resourceType),t.charset&&n.push(t.charset.toLowerCase()),"number"==typeof t.credentials&&n.push(t.credentials.toString()),t.reqOrigin&&n.push(encodeURIComponent(M(t.reqOrigin)));var o=n.join(pl),i=t.proxyProtocol||"http:";return"".concat(i,"//").concat(t.proxyHostname,":").concat(t.proxyPort,"/").concat(o,"/").concat(H(e))}function V(e){return"file:"===e.protocol?"null":X({protocol:e.protocol,host:e.host,hostname:e.hostname,port:String(e.port||"")})}function W(e){var t=e.split(pl),r=t[0],n=t[1],o=t.slice(2);if(!r)return null;var i=r.split(hl),a=i[0],s=i[1],c={sessionId:a,resourceType:n||null};if(s&&(c.windowId=s),n&&o.length){var l=L(n);l.isScript||l.isServiceWorker?c.charset=o[0]:l.isWebSocket?c.reqOrigin=decodeURIComponent(R(o[0])):l.isIframe&&o[0]?c.reqOrigin=decodeURIComponent(R(o[0])):l.isAjax&&(c.credentials=parseInt(o[0],10),2===o.length&&(c.reqOrigin=decodeURIComponent(R(o[1]))))}return c}function G(e){var t=z(e);if(!t.partAfterHost)return null;var r=t.partAfterHost.match(nl);if(!r)return null;var n=W(r[1]);if(!n)return null;var o=r[2],i=o.replace(/#[\S\s]*$/,"");if(!ee(i)&&!ll.test(o))return null;var a;return ee(i)?a=_l:(o=ie(o),a=z(o)),{destUrl:o,destResourceInfo:a,partAfterHost:t.partAfterHost,proxy:{hostname:t.hostname||"",port:t.port||""},sessionId:n.sessionId,resourceType:n.resourceType,charset:n.charset,reqOrigin:n.reqOrigin,windowId:n.windowId,credentials:n.credentials}}function q(e){return e.replace(rl,"")}function z(e){if(e=J(e),!e)return{};var t=e.match(el);return t?{protocol:t[1],auth:t[2],host:t[3],hostname:t[4],port:t[5],partAfterHost:t[6]}:{}}function K(e){e=k(e||"");var t=ul.test(e);if(t)return!1;var r=e.match(tl);return!r||ll.test(r[0])}function $(e,t,r){if(void 0===r&&(r=!1),r)return Y($,e,t);if(t=t||B,K(e)){var n=t(e),o=G(n);return o?X(o.destResourceInfo):e}return e}function X(e){if(!("file:"===e.protocol||"about:"===e.protocol||e.host||e.hostname&&e.port))return e.partAfterHost||"";var t=e.protocol||"";return"about:"!==e.protocol&&(t+="//"),e.auth&&(t+=e.auth+"@"),e.host?t+=e.host:e.hostname&&(t+=e.hostname,e.port&&(t+=":"+e.port)),e.partAfterHost&&(t+=e.partAfterHost),t}function Y(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];for(var o=t.split(","),i=[],a=0,s=o;a<s.length;a++){var c=s[a],l=c.replace(/ +/g," ").trim().split(" "),u=l[0],p=l[1];if(u){var h=e.apply(void 0,g([u],r,!1));i.push(h+(p?" ".concat(p):""))}}return i.join(",")}function Q(e,t){return void 0===t&&(t=""),e.match(il)||t.match(il)?e.replace(/^(file:)?\/+(\/\/\/.*$)/i,"$1$2").replace(/^(file:)?\/*([A-Za-z]):/i,"$1///$2:"):e.replace(/^(https?:)?\/+(\/\/.*$)/i,"$1$2")}function J(e){return Q(U(e))}function Z(e,t){if(!ne(t))return t;var r=dl.test(e),n=dl.test(t);return r&&!n?t+="/":e&&!r&&n&&(t=t.replace(dl,"")),t}function ee(e){return gl.indexOf(e)!==-1}function te(e){var t=z(e);return"file:"!==t.protocol&&!t.host}function re(e){var t=parseInt(e,10);return t>0&&t<=65535}function ne(e){var t=z(e);return"file:"===t.protocol||"about:"===t.protocol||!!t.hostname&&(!t.port||re(t.port))}function oe(e){var t=z(e);return!t.partAfterHost&&t.protocol&&ol.test(t.protocol)?e+"/":e}function ie(e){var t=z(e),r="https:"===t.protocol&&t.port===yl||"http:"===t.protocol&&t.port===vl;return r?(t.host=t.hostname,t.port="",X(t)):e}function ae(e){return e=ie(e),e=oe(e)}function se(e,t,r,n){var o=new RegExp("("+t.protocol+"//"+t.hostname+":(?:"+t.port+"|"+t.crossDomainPort+")/)[^/"+pl+"]+","g"),i="$1"+r+(n?hl+n:"");return e.replace(o,i)}function ce(e,t){var r=e.match(cl);return r&&r[3]?r[1]+t(r[3])+(r[4]||""):e}function le(){if(Al)return Al;var e=Nt(Ec.global);return e&&Jt(e)?Cl.get().referer:Ec.global.location.toString()}function ue(e){Al=e}function pe(e,t){return t&&(t=he(t)),Cl.get().disableCrossDomain||F(e,t)}function he(e,t){var r=U(e);if(r&&0===r.indexOf("//")){var n=ye().protocol;r=n+Q(r,n)}else r=Q(r);return Ec.isInWorker?"blob:"!==self.location.protocol?new Xc.URL(r,Tl()).href:String(e):wl.resolve(r,t||document)}function de(){var e=le(),t=G(e);return(null===t||void 0===t?void 0:t.reqOrigin)?t.reqOrigin+"/":""}function fe(e){Tl=e}function me(e){var t=Tl();return t=t.replace(/(#.*)$/,""),t+e}function ge(e){var t=wl.getResolverElement(document),r=z(e).port;Xc.anchorHrefSetter.call(t,Tl());var n=Xc.anchorHostnameGetter.call(t),o=Xc.anchorPathnameGetter.call(t);return"/"!==o.charAt(0)&&(o="/"+o),{protocol:Xc.anchorProtocolGetter.call(t),port:r?Xc.anchorPortGetter.call(t):"",hostname:n,host:r?Xc.anchorHostGetter.call(t):n,pathname:o,hash:t.hash,search:Xc.anchorSearchGetter.call(t)}}function ve(e){var t=new Xc.URL(e);return{protocol:t.protocol,port:t.port,hostname:t.hostname,host:t.host,pathname:t.pathname,hash:t.hash,search:t.search}}function ye(){var e=Tl();return Ec.isInWorker?ve(e):ge(e)}function _e(){return V(ye())}function Ee(e){return e.isScript||e.isServiceWorker?self.document&&document[vc.documentCharset]||null:null}function Se(e){Dl=e}function be(e,t){var r=null,n=t.top!==t,o=t.location.toString();if(n)r=o;else{var i=jl(o);r=i&&i.destUrl}return je(r)&&te(e)?"":(e=ae(e),Dl(e))}function we(e,t,r){return void 0===r&&(r=!1),r?e:be(e,t)}function xe(e){Ml=e}function Ce(e,t){var r=jl(e),n=null;if(r&&(e=r.destUrl,n=r.resourceType),n){var o=Fe(n);o.isIframe=!1,n=He(o)}var i=!pe(le(),e),a=i?Cl.get().crossDomainProxyPort:location.port.toString();return Dl(e,{windowId:t,proxyPort:a,resourceType:n})}function Ae(e){return Cl.get().crossDomainProxyPort===e?location.port.toString():Cl.get().crossDomainProxyPort}function Te(e){Rl=e}function Ie(e){return X(e)}function Pe(e){jl=e}function Ne(e){return z(e)}function Oe(){return V({protocol:location.protocol,hostname:location.hostname,port:Cl.get().crossDomainProxyPort})}function ke(e){Fl=e}function Le(e,t,r,n){var o=G(e);if(o){var i=o.sessionId,a=o.proxy,s=wl.changeUrlPart(o.destUrl,t,r,document);return Dl(s,{proxyHostname:a.hostname,proxyPort:a.port,sessionId:i,resourceType:n})}return e}function De(e){var t=Rl(e);return Nl.test(t)}function Me(e,t){return j(e,t)}function Re(e){return K(e)}function je(e){return ee(e)}function Fe(e){return L(e)}function He(e){return D(e)}function Ue(e,t){return Dl(e).replace(Pl,"")===Dl(t).replace(Pl,"")}function Be(e){var t=jl(e);return t?t.destUrl:e}function Ve(e){if(!Re(e))return null;var t=Ne(Rl(e));if(!t)return null;var r=q(t.partAfterHost);return r.replace(Ol,"/")||"/"}function We(e,t,r){if(void 0===r&&(r=!1),r)return String(e);var n=!pe(le(),e),o={resourceType:He({isAjax:!0}),credentials:t};return n&&(o.proxyPort=Cl.get().crossDomainProxyPort,o.reqOrigin=_e()),Dl(e,o)}function Ge(e,t){e=e||"";var r=t(e.replace("px",""),10);return isNaN(r)?0:r}function qe(e){return Ge(e,parseInt)}function ze(e){return Ge(e,parseFloat)}function Ke(e,t,r,n){e=e.documentElement||e;var o=Je(e,r,n);return o&&o[t]}function $e(e,t,r){e=e.documentElement||e,e.style[t]=r}function Xe(e,t){return{bottom:t(Ke(e,"borderBottomWidth")),left:t(Ke(e,"borderLeftWidth")),right:t(Ke(e,"borderRightWidth")),top:t(Ke(e,"borderTopWidth"))}}function Ye(e){return Xe(e,qe)}function Qe(e){return Xe(e,ze)}function Je(e,t,r){t=t||document,r=r||window;var n=t.defaultView||r;return n.getComputedStyle(e,null)}function Ze(e){return{bottom:qe(Ke(e,"marginBottom")),left:qe(Ke(e,"marginLeft")),right:qe(Ke(e,"marginRight")),top:qe(Ke(e,"marginTop"))}}function et(e,t){return{bottom:t(Ke(e,"paddingBottom")),left:t(Ke(e,"paddingLeft")),right:t(Ke(e,"paddingRight")),top:t(Ke(e,"paddingTop"))}}function tt(e){return et(e,qe)}function rt(e){return et(e,ze)}function nt(e){var t=ar(e),r=window;if(t&&$t(e)){var n=It(e);n&&(r=Xc.contentWindowGetter.call(n))}var o=t?r:e;return{left:pt(o),top:ht(o)}}function ot(e){if(!e)return null;if(kr(e))return e.document.documentElement.clientWidth;if(Lr(e)){var t=e.documentElement,r="clientWidth",n="scrollWidth",o="offsetWidth";return t[r]>=t[n]?t[r]:Math.max(e.body[n],t[n],e.body[o],t[o])}var i=e.offsetWidth;return i-=qe(Ke(e,"paddingLeft")),i-=qe(Ke(e,"paddingRight")),i-=qe(Ke(e,"borderLeftWidth")),i-=qe(Ke(e,"borderRightWidth"))}function it(e){if(!e)return null;if(kr(e))return e.document.documentElement.clientHeight;if(Lr(e)){var t=e.documentElement,r="clientHeight",n="scrollHeight",o="offsetHeight";return t[r]>=t[n]?t[r]:Math.max(e.body[n],t[n],e.body[o],t[o])}var i=e.offsetHeight;return i-=qe(Ke(e,"paddingTop")),i-=qe(Ke(e,"paddingBottom")),i-=qe(Ke(e,"borderTopWidth")),i-=qe(Ke(e,"borderBottomWidth"))}function at(e){if(!e)return null;if(kr(e))return e.document.documentElement.clientWidth;if(Lr(e))return e.documentElement.clientWidth;var t=e.offsetWidth;return t-=qe(Ke(e,"borderLeftWidth")),t-=qe(Ke(e,"borderRightWidth"))}function st(e){if(!e)return null;if(kr(e))return e.document.documentElement.clientHeight;if(Lr(e))return e.documentElement.clientHeight;var t=e.offsetHeight;return t-=qe(Ke(e,"borderTopWidth")),t-=qe(Ke(e,"borderBottomWidth"))}function ct(e){var t=lt(e),r=tt(e),n=e.scrollHeight-(r.top+r.bottom),o=Mt(e).length;return 1===t?it(e):Mc&&t>o?Math.round(n/o):Math.round(n/Math.max(o,t))}function lt(e){if(Vc&&Vl||Ic)return 1;var t=Xc.getAttribute.call(e,"size"),r=Xc.hasAttribute.call(e,"multiple"),n=t?parseInt(t,10):1;return r&&(!t||n<1)&&(n=cu),n}function ut(e){var t=Dt(e),r=Gt(e);return Sr(t)&&lt(t)>1&&("option"===r||"optgroup"===r)&&(!Hc||e.label)}function pt(e){return e?kr(e)?e.pageXOffset:Lr(e)?e.defaultView.pageXOffset:e.scrollLeft:null}function ht(e){return e?kr(e)?e.pageYOffset:Lr(e)?e.defaultView.pageYOffset:e.scrollTop:null}function dt(e,t){if(e)if(kr(e)||Lr(e)){var r=Ft(e).defaultView,n=ht(e);Xc.scrollTo.call(r,t,n)}else e.scrollLeft=t}function ft(e,t){if(e)if(kr(e)||Lr(e)){var r=Ft(e).defaultView,n=pt(e);Xc.scrollTo.call(r,n,t)}else e.scrollTop=t}function mt(e){if(e){for(var t=e.offsetParent||document.body;t&&!/^(?:body|html)$/i.test(t.nodeName)&&"static"===Ke(t,"position");)t=t.offsetParent;return t}}function gt(e){if(!e||kr(e)||Lr(e))return null;var t=e.getBoundingClientRect(),r=e.ownerDocument,n=r.documentElement;if(!n.contains(e)||e===n)return{top:t.top,left:t.left};var o=r.defaultView,i=n.clientTop||r.body.clientTop||0,a=n.clientLeft||r.body.clientLeft||0,s=o.pageYOffset||n.scrollTop||r.body.scrollTop,c=o.pageXOffset||n.scrollLeft||r.body.scrollLeft;return t=e.getBoundingClientRect(),{top:t.top+s-i,left:t.left+c-a}}function vt(e,t){if(!Kt(e,t))return!1;for(;e;){if("none"===Ke(e,"display",t)||"hidden"===Ke(e,"visibility",t))return!1;e=zt(e)}return!0}function yt(e){var t=It(e);return t&&!vt(t,Ft(t))}function _t(e){return Wt(e)?Xc.elementQuerySelector:$r(e)||Xr(e)?Xc.documentFragmentQuerySelector:Xc.querySelector}function Et(e){return Wt(e)?Xc.elementQuerySelectorAll:$r(e)||Xr(e)?Xc.documentFragmentQuerySelectorAll:Xc.querySelectorAll}function St(e){return e.offsetWidth<=0&&e.offsetHeight<=0}function bt(e){var t=Gt(e);return!!t&&(bu.test(t)||wu.test(t))}function wt(e){var t=null;try{t=e.__proto__}catch(r){var n=Vc||Bc||Hc;return e.replace&&(n||!!e.assign)}if(!t)return!1;var o=Xc.objectToString.call(t);return"[object LocationPrototype]"===o||"[object Location]"===o}function xt(e,t){for(;e;){if(an(e,t))return e;e=Xc.nodeParentNodeGetter.call(e)}return null}function Ct(e){return Bl?e&&"object"==typeof e?Xc.objectToString.call(Xc.objectGetPrototypeOf(e)):"":Xc.objectToString.call(e)}function At(e){for(var t=e||document,r=Xc.documentActiveElementGetter.call(t),n=Wt(r)?r:t.body;n&&n.shadowRoot;){var o=n.shadowRoot.activeElement;if(!o)break;n=o}return n}function Tt(e,t){var r=Mt(e);return r.indexOf(t)}function It(e){var t=e[vc.processedContext];return Nt(t)}function Pt(e){var t=null;try{t=Xc.contentDocumentGetter.call(e).location.href}catch(r){t=null}var n=Xc.getAttribute.call(e,"src"+Qc.storedAttrPostfix)||Xc.getAttribute.call(e,"src")||Xc.iframeSrcGetter.call(e),o=t&&Re(t)&&jl(t),i=n&&Re(n)&&jl(n);return{documentLocation:o?o.destUrl:t,srcLocation:i?i.destUrl:n}}function Nt(e){try{return e.frameElement}catch(t){return null}}function Ot(e){var t=sn(e,"map"),r=Xc.getAttribute.call(t,"name"),n='[usemap="#'+r+'"]';return Xc.querySelector.call(Ft(e),n)}function kt(e){var t=e.parent,r=null;if(e===e.top)return e;if(t===e.top||Bt(e,t))return t;try{r=t.frameElement}catch(n){r=null}return null!==r&&Jt(r)?kt(t):t}function Lt(){if(!uu){var e=Xc.createElement.call(document,"div");e.style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.width="100px",Xc.appendChild.call(document.body,e);var t=e.offsetWidth-e.clientWidth;uu=t;var r=Xc.nodeParentNodeGetter.call(e);r.removeChild(e)}return uu}function Dt(e){var t=Xc.nodeParentNodeGetter.call(e);return sn(t,"select")}function Mt(e){for(var t=Xc.elementQuerySelectorAll.call(e,"optgroup, option"),r=[],n=Xc.nodeListLengthGetter.call(t),o=0;o<n;o++){var i=t[o],a=!Hc||("optgroup"!==Gt(i)||i.label);a&&r.push(i)}return r}function Rt(e){var t=e,r=e.parent;if(t===e.top)return t;for(;r;){if(!Bt(e,r)){var n=Nt(r);n&&Jt(n)||(t=r)}r=r!==e.top?r.parent:null}return t}function jt(e,t,r){var n=Et(e).call(e,t);if(r)for(var o=Xc.nodeListLengthGetter.call(n),i=0;i<o;i++)r(n[i]);return n}function Ft(e){if(e.documentElement)return e;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument;var t=Gr(e)&&Xc.nodeParentNodeGetter.call(e);return t?Ft(t):document}function Ht(e){var t=!1,r=null;return r=qr(e)?e.parentElement||Xc.nodeParentNodeGetter.call(e):e,!!r&&(t=r.isContentEditable&&!bt(r),Tr(r)&&(t||"on"===Ft(e).designMode))}function Ut(e,t){var r=Pt(e);if(!t&&null===r.documentLocation)return!0;var n=t?r.srcLocation:r.documentLocation;return!(!n||!Re(n))&&!pe(location.toString(),n)}function Bt(e,t){try{if(e===t)return!1;var r=e.location.toString(),n=t.location.toString();return!(!Re(r)||!Re(n))&&!pe(r,n)}catch(o){return!0}}function Vt(e){return e!==e.top}function Wt(e){return e instanceof Xc.elementClass||e&&vu.test(Ct(e))&&Gr(e)&&e.tagName}function Gt(e){return e&&"string"==typeof e.tagName?e.tagName.toLowerCase():""}function qt(e){for(var t=Xc.nodeParentNodeGetter.call(e);t&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t=Xc.nodeParentNodeGetter.call(t);return t&&t[Pu]}function zt(e){var t=Xc.nodeParentNodeGetter.call(e);return t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t[Pu]?t[Pu]:t}function Kt(e,t){var r=t||document;if(!r.documentElement)return!1;if(r.documentElement.contains(e))return!0;var n=qt(e);return!!n&&Kt(n)}function $t(e,t){var r=t||Ft(e);return window.document!==r}function Xt(e){return e===Qc.focusPseudoClass||e===Qc.hoverPseudoClass||e.indexOf(Qc.storedAttrPostfix)!==-1}function Yt(e){return"[object HTMLIFrameElement]"===Ct(e)}function Qt(e){return"[object HTMLFrameElement]"===Ct(e)}function Jt(e){var t=Pt(e),r=t.srcLocation,n=t.documentLocation;if(null===n)return!1;if(Xc.contentWindowGetter.call(e)[vc.documentWasCleaned])return!0;var o=Re(n);return!o&&!Xc.getAttribute.call(e,"src")||(!r||!Re(r))&&!o}function Zt(e){return Xc.iframeSrcdocGetter&&Xc.hasAttribute.call(e,"srcdoc")}function er(e){return"[object HTMLImageElement]"===Ct(e)}function tr(e){return"[object HTMLInputElement]"===Ct(e)}function rr(e){return"[object HTMLTitleElement]"===Ct(e)}function nr(e){return"[object HTMLButtonElement]"===Ct(e)}function or(e){return"[object HTMLFieldSetElement]"===Ct(e)}function ir(e){return"[object HTMLOptGroupElement]"===Ct(e)}function ar(e){return"[object HTMLHtmlElement]"===Ct(e)}function sr(e){return"[object HTMLBodyElement]"===Ct(e)}function cr(e){var t,r=Xc.nodeParentNodeGetter.call(e);return"html"===Gt(r)&&"#document"===(null===(t=Xc.nodeParentNodeGetter.call(r))||void 0===t?void 0:t.nodeName)}function lr(e){return"[object HTMLHeadElement]"===Ct(e)}function ur(e){var t=Ct(e);return"[object HTMLHeadElement]"===t||"[object HTMLBodyElement]"===t}function pr(e){var t=Ct(e);return"[object HTMLHeadElement]"===t||"[object HTMLBodyElement]"===t||"[object HTMLHtmlElement]"===t}function hr(e){return"[object HTMLBaseElement]"===Ct(e)}function dr(e){return"[object HTMLScriptElement]"===Ct(e)}function fr(e){return"[object HTMLStyleElement]"===Ct(e)}function mr(e){return"[object HTMLLabelElement]"===Ct(e)}function gr(e){return"[object HTMLTextAreaElement]"===Ct(e)}function vr(e){return"[object HTMLOptionElement]"===Ct(e)}function yr(e){return tr(e)&&"radio"===e.type.toLowerCase()}function _r(e){return tr(e)&&"color"===e.type.toLowerCase()}function Er(e){return tr(e)&&"checkbox"===e.type.toLowerCase()}function Sr(e){return"[object HTMLSelectElement]"===Ct(e)}function br(e){return"[object HTMLFormElement]"===Ct(e)}function wr(e){return tr(e)&&"file"===e.type.toLowerCase()}function xr(e){return tr(e)&&Tu.test(e.type.toLowerCase())}function Cr(e){return sr(e)&&cr(e)&&Xc.htmlCollectionLengthGetter.call(Xc.elementChildrenGetter.call(e))}function Ar(e){return pu.indexOf(Ct(e))!==-1}function Tr(e){return!(zr(e)||Kr(e)||xu.test(e.nodeName))}function Ir(e){var t=Xc.getAttribute.call(e,"tabIndex");return t=parseInt(t,10),isNaN(t)?null:t}function Pr(e){return an(e,":disabled")}function Nr(e){if(!e)return!1;var t=Ir(e),r=Pr(e),n="hidden"===Ke(e,"visibility"),o="none"===Ke(e,"display"),i=Wc?St(e)&&!vr(e):St(e);return!(r||n||o||i)&&((!vr(e)||!Mc)&&(Yr(e)?null!==t||an(e,"a[href]"):!(!Jr(e)||!Mc)||(an(e,Iu)||null!==t)))}function Or(e){return!!e[vc.shadowUIElement]}function kr(e){try{if((Mc||Uc)&&e&&e===e.window&&(e=e.window),!e||!e.toString||du!==Ct(e))return!1}catch(t){try{return!!e.top}catch(r){return!1}}try{Xc.winLocalStorageGetter.call(e)}catch(n){return!1}return!0}function Lr(e){if(e instanceof Xc.documentClass)return!0;try{return e&&fu.test(Ct(e))}catch(t){return!1}}function Dr(e){return e&&"[object Blob]"===Ct(e)}function Mr(e){return!!e&&(Mc||Vc||Bc||Hc?wt(e):e instanceof Xc.locationClass||"[object Location]"===Xc.objectToString.call(e))}function Rr(e){return e instanceof Xc.svgElementClass||e&&gu.test(Ct(e))}function jr(e){return!!sn(e,"svg")}function Fr(e){return!!(Xc.Headers&&e instanceof Xc.Headers)||e&&"[object Headers]"===Ct(e)}function Hr(e){return!!(Xc.Request&&e instanceof Xc.Request)||e&&"[object Request]"===Ct(e)}function Ur(e){return e.readOnly||"readonly"===e.getAttribute("readonly")}function Br(e){var t=e.getAttribute("type");return tr(e)&&t?Cu.test(t):Cu.test(e.type)}function Vr(e){return Br(e)||gr(e)}function Wr(e){return Vr(e)&&!Ur(e)}function Gr(e){return e&&e.nodeType===Su}function qr(e){return"[object Text]"===Ct(e)}function zr(e){return mu.test(Ct(e))}function Kr(e){return"[object Comment]"===Ct(e)}function $r(e){return"[object DocumentFragment]"===Ct(e)}function Xr(e){return"[object ShadowRoot]"===Ct(e)}function Yr(e){return"[object HTMLAnchorElement]"===Ct(e)}function Qr(e){return"[object HTMLTableElement]"===Ct(e)}function Jr(e){return Ct(e)===Eu}function Zr(e){return"[object WebSocket]"===Ct(e)}function en(e){return"[object MessageEvent]"===Ct(e)}function tn(e){return"[object PerformanceNavigationTiming]"===Ct(e)}function rn(e){return e instanceof Xc.ArrayBuffer||e&&yu.test(Ct(e))}function nn(e){return e&&Xc.arrayBufferIsView(e)}function on(e){return e instanceof Xc.DataView||e&&_u.test(Ct(e))}function an(e,t){return!!Gr(e)&&Xc.matches.call(e,t)}function sn(e,t){return Gr(e)?Xc.closest?Xc.closest.call(e,t):xt(e,t):null}function cn(e,t){if(e)for(var r=t.split(/\s+/),n=0,o=r;n<o.length;n++){var i=o[n];Xc.tokenListAdd.call(Xc.elementClassListGetter.call(e),i)}}function ln(e,t){if(e)for(var r=t.split(/\s+/),n=0,o=r;n<o.length;n++){var i=o[n];Xc.tokenListRemove.call(Xc.elementClassListGetter.call(e),i)}}function un(e,t){return!!e&&Xc.tokenListContains.call(Xc.elementClassListGetter.call(e),t)}function pn(){var e=Xc.querySelector.call(document,"."+Zc.charset);return e&&e.getAttribute("charset")}function hn(e,t){for(var r=[],n=dn(e);n;)(!t&&Gr(n)||t&&an(n,t))&&r.push(n),n=dn(n);return r}function dn(e){return e=e.assignedSlot||e,Xc.nodeParentNodeGetter.call(e)||e.host}function fn(e,t,r){for(void 0===t&&(t=!1),t||(e=dn(e));e;){if(!O(r)||r(e))return e;e=dn(e)}return null}function mn(e){for(var t=[],r=Xc.nodeListLengthGetter.call(e),n=0;n<r;n++)t.push(e[n]);return t}function gn(e){return wr(e)?[e]:mn(Et(e).call(e,"input[type=file]"))}function vn(e){return Yt(e)?[e]:mn(Et(e).call(e,"iframe,frame"))}function yn(e){return dr(e)?[e]:mn(Et(e).call(e,"script"))}function _n(e){return tr(e)&&Au.test(e.type)}function En(e){if(!_n(e))return!1;var t=N(e.selectionStart)&&N(e.selectionEnd);return!t}function Sn(e){if(!mr(e))return null;var t=Ft(e);return e.control||e.htmlFor&&Xc.getElementById.call(t,e.htmlFor)}function bn(){return{indent:null,base:null,parse:null,format:{indent:{style:" ",base:0},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1},directive:!1,raw:!0,verbatim:null}}function wn(e){if(e<128)return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||36===e||95===e||92===e;var t=String.fromCharCode(e);return ju.test(t)}function xn(e){return 10===e||13===e||8232===e||8233===e}function Cn(e){return 32===e||9===e||xn(e)||11===e||12===e||160===e||e>=5760&&Ru.indexOf(e)>=0}function An(e){return e>=48&&e<=57}function Tn(e,t){var r="";for(t|=0;t>0;t>>>=1,e+=e)1&t&&(r+=e);return r}function In(e,t){function r(e){return"object"==typeof e&&e instanceof Object&&!(e instanceof RegExp)}var n,o;for(n in t)t.hasOwnProperty(n)&&(o=t[n],r(o)?r(e[n])?In(e[n],o):e[n]=In({},o):e[n]=o);return e}function Pn(e){var t,r,n,o,i;if(e===1/0)return Ql?"null":Jl?"1e400":"1e+400";if(t=""+e,!Jl||t.length<3)return t;for(r=t.indexOf("."),Ql||48!==t.charCodeAt(0)||1!==r||(r=0,t=t.slice(1)),n=t,t=t.replace("e+","e"),o=0,(i=n.indexOf("e"))>0&&(o=+n.slice(i+1),n=n.slice(0,i)),r>=0&&(o-=n.length-r-1,n=+(n.slice(0,r)+n.slice(r+1))+""),i=0;48===n.charCodeAt(n.length+i-1);)--i;return 0!==i&&(o-=i,n=n.slice(0,i)),0!==o&&(n+="e"+o),(n.length<t.length||Zl&&e>1e12&&Math.floor(e)===e&&(n="0x"+e.toString(16)).length<t.length)&&+n===e&&(t=n),t}function Nn(e,t){return 8232===(e&-2)?(t?"u":"\\u")+(8232===e?"2028":"2029"):10===e||13===e?(t?"":"\\")+(10===e?"n":"r"):String.fromCharCode(e)}function On(e){var t,r,n,o,i,a,s,c;if(r=e.toString(),e.source){if(t=r.match(/\/([^/]*)$/),!t)return r;for(n=t[1],r="",s=!1,c=!1,o=0,i=e.source.length;o<i;++o)a=e.source.charCodeAt(o),c?(r+=Nn(a,c),c=!1):(s?93===a&&(s=!1):47===a?r+="\\":91===a&&(s=!0),r+=Nn(a,c),c=92===a);return"/"+r+"/"+n}return r}function kn(e,t){var r,n="\\";switch(e){case 8:n+="b";break;case 12:n+="f";break;case 9:n+="t";break;default:r=e.toString(16).toUpperCase(),n+=Ql||e>255?"u"+"0000".slice(r.length)+r:0!==e||An(t)?11===e?"x0B":"x"+"00".slice(r.length)+r:"0"}return n}function Ln(e){var t="\\";switch(e){case 92:t+="\\";break;case 10:t+="n";break;case 13:t+="r";break;case 8232:t+="u2028";break;case 8233:t+="u2029"}return t}function Dn(e){var t,r,n,o;for(o="double"===eu?'"':"'",t=0,r=e.length;t<r;++t){if(n=e.charCodeAt(t),39===n){o='"';break}if(34===n){o="'";break}92===n&&++t}return o+e+o}function Mn(e){var t,r,n,o,i,a="",s=0,c=0;for(t=0,r=e.length;t<r;++t){if(n=e.charCodeAt(t),39===n)++s;else if(34===n)++c;else if(47===n&&Ql)a+="\\";else{if(xn(n)||92===n){a+=Ln(n);continue}if(Ql&&n<32||!(Ql||tu||n>=32&&n<=126)){a+=kn(n,e.charCodeAt(t+1));continue}}a+=String.fromCharCode(n)}if(o=!("double"===eu||"auto"===eu&&c<s),i=o?"'":'"',!(o?s:c))return i+a+i;for(e=a,a=i,t=0,r=e.length;t<r;++t)n=e.charCodeAt(t),(39===n&&o||34===n&&!o)&&(a+="\\"),a+=String.fromCharCode(n);return a+i}function Rn(e,t){if(!e.length)return t;if(!t.length)return e;var r=e.charCodeAt(e.length-1),n=t.charCodeAt(0);return wn(r)&&wn(n)||r===n&&(43===r||45===r)||47===r&&105===n?e+Gu.space+t:Cn(r)||Cn(n)?e+t:e+Gu.optSpace+t}function jn(){var e=Gu.indent;return Gu.indent+=Gu.indentUnit,e}function Fn(e){return e.type===ku.BlockStatement?Gu.optSpace:e.type===ku.EmptyStatement?"":Gu.newline+Gu.indent+Gu.indentUnit}function Hn(e){return e.type===ku.BlockStatement?Gu.optSpace:Gu.newline+Gu.indent}function Un(e,t){var r=e[au.verbatim],n="string"==typeof r,o=n||void 0===r.precedence?Du.Sequence:r.precedence,i=o<t.precedence,a=n?r:r.content,s=a.split(/\r\n|\n/),c=s.length;i&&(Gu.js+="("),Gu.js+=s[0];for(var l=1;l<c;l++)Gu.js+=Gu.newline+Gu.indent+s[l];i&&(Gu.js+=")")}function Bn(e){var t=e.params,r=t.length,n=r-1,o=e.type===ku.ArrowFunctionExpression&&1===r&&t[0].type===ku.Identifier;if(o)Gu.js+=t[0].name;else{Gu.js+="(";for(var i=0;i<r;++i){var a=t[i];t[i].type===ku.Identifier?Gu.js+=a.name:qu[a.type](a,Fu.e4),i!==n&&(Gu.js+=","+Gu.optSpace)}Gu.js+=")"}}function Vn(e){var t=e.body;if(Bn(e),e.type===ku.ArrowFunctionExpression&&(Gu.js+=Gu.optSpace+"=>"),e.expression){Gu.js+=Gu.optSpace;var r=Yn(t,Fu.e4);"{"===r.charAt(0)&&(r="("+r+")"),Gu.js+=r}else Gu.js+=Fn(t),zu[t.type](t,Fu.s8)}function Wn(e){return!!e&&e.type===ku.LogicalExpression}function Gn(e,t){switch(e.operator){case"||":return!!Wn(t)&&("??"===t.operator||"&&"===t.operator);case"&&":return Wn(t);case"??":return Wn(t)&&"??"!==t.operator}}function qn(e,t,r){var n=e.operator,o=Mu[e.operator],i=o<t.precedence,a=t.allowIn||i,s=Fu.e16(o,a),c=Yn(e.left,s,e);i|="in"===n&&!a;var l=Gn(e,r);(i||l)&&(Gu.js+="("),c=47===c.charCodeAt(c.length-1)&&wn(n.charCodeAt(0))?c+Gu.space+n:Rn(c,n),s.precedence++;var u=Yn(e.right,s,e);"/"===n&&"/"===u.charAt(0)||"<"===n.slice(-1)&&"!--"===u.slice(0,3)?c+=Gu.space+u:c=Rn(c,u),Gu.js+=c,(i||l)&&(Gu.js+=")")}function zn(e){var t=e.elements,r=t.length;if(r){var n=r-1,o=r>1,i=jn(),a=Gu.newline+Gu.indent;Gu.js+="[";for(var s=0;s<r;s++){var c=t[s];o&&(Gu.js+=a),c&&qu[c.type](c,Fu.e4),s===n&&c||(Gu.js+=",")}Gu.indent=i,o&&(Gu.js+=Gu.newline+Gu.indent),Gu.js+="]"}else Gu.js+="[]"}function Kn(e){var t=e.blocks,r=e.filter,n=e.type===ku.GeneratorExpression,o=n?"(":"[",i=Yn(e.body,Fu.e4);if(t){for(var a=jn(),s=t.length,c=0;c<s;++c){var l=Yn(t[c],Fu.e5);o=c>0?Rn(o,l):o+l}Gu.indent=a}if(r){var u=Yn(r,Fu.e5);o=Rn(o,"if"+Gu.optSpace),o=Rn(o,"("+u+")")}o=Rn(o,i),o+=n?")":"]",Gu.js+=o}function $n(e,t,r){for(var n=r.length,o=n-1,i=0;i<n;++i){var a=Qn(r[i],Fu.s7);e=Rn(e,a),(t||i!==o)&&(e+=Hn(r[i].body))}return e}function Xn(e,t,r){var n=t.body,o=t.left,i=!nu&&r.semicolonOptional,a=jn(),s=t.await?" await":"",c="for"+s+Gu.optSpace+"(";if(o.type===ku.VariableDeclaration){var l=jn();c+=o.kind+Gu.space+Qn(o.declarations[0],Fu.s6),Gu.indent=l}else c+=Yn(o,Fu.e10);c=Rn(c,e);var u=Yn(t.right,Fu.e4);c=Rn(c,u)+")",Gu.indent=a,Gu.js+=c+Fn(n),zu[n.type](n,Fu.s4(i))}function Yn(e,t,r){var n=Gu.js;Gu.js="",qu[e.type](e,t,r);var o=Gu.js;return Gu.js=n,o}function Qn(e,t){var r=Gu.js;Gu.js="",zu[e.type](e,t);var n=Gu.js;return Gu.js=r,n}function Jn(e){return Gu.js="",zu[e.type]?zu[e.type](e,Fu.s7):qu[e.type](e,Fu.e19),Gu.js}function Zn(e){return function(t,r){au.verbatim&&t.hasOwnProperty(au.verbatim)?Un(t,r):e(t,r)}}function eo(){var e={};for(var t in Bu)Bu.hasOwnProperty(t)&&(e[t]=Zn(Bu[t]));return e}function to(e){return{type:Lu.Identifier,name:e}}function ro(e){return{type:Lu.ExpressionStatement,expression:e}}function no(e,t,r){return{type:Lu.AssignmentExpression,operator:t,left:e,right:r}}function oo(e,t){return{type:Lu.CallExpression,callee:e,arguments:t,optional:!1}}function io(e){return{type:Lu.ArrayExpression,elements:e}}function ao(e,t,r){return{type:Lu.MemberExpression,object:e,property:t,computed:r,optional:!1}}function so(e,t,r){return{type:Lu.BinaryExpression,left:e,right:r,operator:t}}function co(e){return{type:Lu.SequenceExpression,expressions:e}}function lo(){return{type:Lu.ThisExpression}}function uo(e,t,r){
return{type:Lu.LogicalExpression,left:e,right:r,operator:t}}function po(e){return void 0===e&&(e=null),{type:Lu.ReturnStatement,argument:e}}function ho(e,t,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=!1),{type:Lu.FunctionExpression,id:e,params:t,body:r,async:n,generator:o}}function fo(e,t){return{type:Lu.UnaryExpression,operator:e,prefix:!0,argument:t}}function mo(){return fo("void",vo(0))}function go(e,t,r){return{type:Lu.ConditionalExpression,test:e,consequent:t,alternate:r}}function vo(e){return{type:Lu.Literal,value:e}}function yo(e,t){return ro(no(e,"=",t))}function _o(e){return{type:Lu.BlockStatement,body:e}}function Eo(e,t){return void 0===t&&(t=null),{type:Lu.VariableDeclarator,id:e,init:t}}function So(e,t){return{type:Lu.VariableDeclaration,declarations:t,kind:e}}function bo(e,t){var r=[e],n=to($u.processScript);return t&&r.push(vo(!0)),oo(n,r)}function wo(e){var t=to($u.getLocation);return oo(t,[e])}function xo(e,t,r){var n=to(Yu.generateName()),o=to($u.setLocation),i=oo(o,[e,n]),a=no(e,"=",n),s=to("call"),c=ho(null,[],_o([So("var",[Eo(n,t)]),po(uo(i,"||",a))])),l=ao(c,s,!1),u=oo(l,[lo()]);return r?co([vo(0),u]):u}function Co(e,t,r){var n=to($u.setProperty);return oo(n,[t,vo(e),r])}function Ao(e,t,r,n){void 0===n&&(n=!1);var o=to($u.callMethod),i=io(r),a=[e,t,i];return n&&a.push(vo(n)),oo(o,a)}function To(e,t,r){void 0===r&&(r=!1);var n=to($u.getProperty),o=[t,vo(e)];return r&&o.push(vo(r)),oo(n,o)}function Io(e,t,r){void 0===r&&(r=!1);var n=to($u.getProperty),o=[t,e];return r&&o.push(vo(r)),oo(n,o)}function Po(e,t,r){var n=to($u.setProperty);return oo(n,[t,e,r])}function No(e){var t=to($u.getEval);return oo(t,[e])}function Oo(e,t){var r=t(String(e.value),D({isScript:!0}));return vo(r)}function ko(e,t){var r=to($u.getProxyUrl),n=[e];return t&&n.push(vo(t)),oo(r,n)}function Lo(e){var t=to($u.getPostMessage),r=e.type===Lu.MemberExpression?[e.object]:[vo(null),e];return oo(t,r)}function Do(e){var t=to($u.arrayFrom);return oo(t,[e])}function Mo(e,t){return no(e,"=",so(e,"+",t))}function Ro(e){var t=to($u.processHtml),r=to("parent"),n=to("window"),o=ao(r,t,!1),i=oo(o,[n,e.expression]);return ro(i)}function jo(e){for(var t=[],r=0,n=e;r<n.length;r++){var o=n[r];t.push(Eo(to(o)))}return So("var",t)}function Fo(e){return rp(Zu,String(e))}function Ho(e){return rp(ep,String(e))}function Uo(e,t,r,n){var o=r[n];o instanceof Array?e?o[o.indexOf(e)]=t:o.unshift(t):r[n]=t,e?(t.originStart=t.start=e.start,t.originEnd=t.end=e.end):t.start=t.end=t.originStart=t.originEnd=o[1]?o[1].start:r.start+1}function Bo(e,t){for(var r=[],n=[],o=0,i=e.body;o<i.length;o++){var a=i[o];a.type===Lu.VariableDeclaration&&r.push.apply(r,a.declarations)}for(var s=0,c=r;s<c.length;s++){var l=c[s];if(l.type===Lu.VariableDeclarator&&(l.id.type===Lu.Identifier&&n.push(l.id),l.id.type===Lu.ArrayPattern&&n.push.apply(n,l.id.elements),l.id.type===Lu.ObjectPattern))for(var u=0,p=l.id.properties;u<p.length;u++){var h=p[u];"value"in h&&n.push(h.value)}}for(var d=0,f=n;d<f.length;d++){var m=f[d];m&&m.type===Lu.Identifier&&t(m)}}function Vo(e){var t,r=e.left,n=[],o=(null===(t=r.declarations[0])||void 0===t?void 0:t.id.type)===Lu.ArrayPattern,i=e.body.type===Lu.BlockStatement;if(o&&i){var a=r.declarations[0].id,s=a.elements;Bo(e.body,function(e){for(var t=0,r=s;t<r.length;t++){var o=r[t];o&&o.name===e.name&&n.push(o)}});for(var c=0,l=n;c<l.length;c++){var u=l[c],p=to(Yu.generateName());Uo(u,p,a,"elements")}}}function Wo(e,t,r,n){var o=e.value,i=e.computed||e.key.type===Lu.Literal,a=ao(t,e.key,i);Yo(o,a,r,n)}function Go(e,t){var r=to($u.restObject);return oo(r,[e,io(t)])}function qo(e,t){var r=to($u.restArray);return oo(r,[e,vo(t)])}function zo(e,t,r){if(e.type===Lu.Identifier&&Yu.isHHTempVariable(e.name))return e;var n=to(r||Yu.generateName(r));return t(n,e,!0),n}function Ko(e,t,r,n){if(t){var o=e.properties,i=o.length&&o[o.length-1].type===Lu.RestElement,a=zo(t,r,n),s=[],c=[];if(n||(n=a.name),i)for(var l=0;l<o.length-1;l++){var u=o[l],p=u.key;if(p.type===Lu.Identifier)s.push(u.computed?p:vo(p.name));else if(p.type===Lu.Literal)s.push(p);else{var h=to(Yu.generateName());r(h,p,!0),s.push(h),u.key=h}}for(var l=0;l<o.length;l++){var u=o[l];if(u.type===Lu.RestElement)r(u.argument,Go(a,s));else{var d=u,f=Yu.generateName(n,d.key,l);c.indexOf(f)>-1&&(f=Yu.generateName(f,void 0,l)),c.push(f),Wo(d,a,r,f)}}}}function $o(e,t,r,n){if(t){t.type!==Lu.ArrayExpression&&(t=Do(t));var o=zo(t,r,n);n||(n=o.name);for(var i=0;i<e.elements.length;i++){var a=e.elements[i];a&&(a.type===Lu.RestElement?(t=qo(o,i),a=a.argument):t=ao(o,vo(i),!0),Yo(a,t,r,Yu.generateName(n,void 0,i)))}}}function Xo(e,t,r,n){if(t){var o=e.left,i=e.right,a=zo(t,r,n),s=so(a,"===",mo()),c=go(s,i,a);n||(n=a.name),n+="$assign",Yo(o,c,r,n)}}function Yo(e,t,r,n){e.type===Lu.ObjectPattern?Ko(e,t,r,n):e.type===Lu.ArrayPattern?$o(e,t,r,n):e.type===Lu.AssignmentPattern?Xo(e,t,r,n):r(e,t)}function Qo(e){return{name:"func-args-destructing",nodeReplacementRequireTransform:!1,nodeTypes:e,condition:function(e){for(var t=0,r=e.params;t<r.length;t++){var n=r[t];if(n.type===Lu.AssignmentPattern&&(n=n.left),n.type===Lu.ObjectPattern||n.type===Lu.ArrayPattern)return!0}return!1},run:function(e){for(var t=[],r=0,n=e.params;r<n.length;r++){var o=n[r],i=e,a="params";if(o.type===Lu.AssignmentPattern&&(i=o,o=o.left,a="left"),o.type===Lu.ObjectPattern&&o.properties.length||o.type===Lu.ArrayPattern&&o.elements.length){var s=to(Yu.generateName());Uo(o,s,i,a),t.push(Eo(o,s))}}if(!t.length)return null;var c=So("var",t);if(e.body.type!==Lu.BlockStatement){var l=po(e.body);return Uo(e.body,_o([c,l]),e,"body"),e.expression=!1,e}return Uo(null,c,e.body,"body"),c.reTransform=!0,null}}}function Jo(){for(var e=new Map,t=0,r=Pp;t<r.length;t++){var n=r[t],o=n.nodeTypes,i=e.get(o);i||(i=[],e.set(o,i)),i.push(n)}return e}function Zo(e){var t=G(e);return t&&t.destUrl}function ei(e,t){t=t.replace(Lp,"");var r=Zo(t);return r?e.replace(t,r):e}function ti(e){if(!e)return e;for(var t=e.split("\n"),r=0;r<t.length;r++)for(var n=t[r],o=0,i=Op;o<i.length;o++){var a=i[o];if(a.test(n)){t[r]=n.replace(a,ei);break}}return t.join("\n")}function ri(e){if(!e)return null;for(var t=kp.exec(e);t;){var r=Zo(t[1]);if(r)return kp.lastIndex=0,r;t=kp.exec(e)}return null}function ni(e,t){var r=e.originStart,n=e.originEnd;return{start:r,end:n,node:e,parentType:t}}function oi(e,t,r,n){for(var o=jp(e),i=0,a=o;i<a.length;i++){var s=a[i],c=e[s],l=Rp.call(c);if("[object Array]"===l)for(var u=c,p=0,h=u;p<h.length;p++){var d=h[p];d&&pi(d,t,r,e,s,n)}else"[object Object]"===l&&pi(c,t,r,e,s,n)}}function ii(e){return void 0!==e.originStart&&void 0!==e.originEnd}function ai(e,t,r,n){var o=e.hasTransformedAncestor||e.newExpressionAncestor&&ii(e.newExpressionAncestor);o||(e.newExpressionAncestor&&e.newExpressionAncestorParent?(Uo(e.newExpressionAncestor,e.newExpressionAncestor,e.newExpressionAncestorParent,e.newExpressionAncestorKey),t.push(ni(e.newExpressionAncestor,e.newExpressionAncestorParent.type))):t.push(ni(r,n)))}function si(e,t,r,n){var o=n.get();if(o.length){var i=jo(o);Uo(null,i,e,"body"),ai(r,t,i,e.type)}}function ci(e,t){void 0===e&&(e=!1),xp.wrapLastExpr=e,Cp.resolver=t;var r="undefined"==typeof window;r?Ap.getBaseUrl=function(){return"undefined"==typeof Ap.baseUrl&&(Ap.baseUrl=t?G(t("./")).destUrl:""),Ap.baseUrl}:Ap.getBaseUrl=function(){if("undefined"==typeof Ap.baseUrl){var e=(new Error).stack;Ap.baseUrl=e&&ri(e)||""}return Ap.baseUrl}}function li(){xp.wrapLastExpr=!1,Cp.resolver=void 0,Ap.baseUrl=void 0}function ui(e,t){var r=Np.get(e.type);if(r)for(var n=0,o=r;n<o.length;n++){var i=o[n];if(i.condition(e,t))return i}return null}function pi(e,t,r,n,o,i){var a=e.type===Lu.BlockStatement,s=!1;if(a&&(i=new Yu),!e.reTransform&&ii(e))ai(r,t,e,n.type),s=!0;else{for(var c=e,l=ui(e,n),u=null;l&&(u=l.run(u||e,n,o,i))&&(s=!0,l.nodeReplacementRequireTransform);)l=ui(u,n),e=u;s&&u&&(Uo(c,u,n,o),ai(r,t,u,n.type))}r=Mp.create(r,e,n,o,s),oi(e,t,r,i),a&&si(e,t,r,i)}function hi(e,t,r){void 0===t&&(t=!1);var n=[],o=new Mp,i=new Yu;return Yu.resetCounter(),ci(t,r),oi(e,n,o,i),si(e,n,o,i),li(),n}function di(e){return e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}function fi(e){return"object"==typeof Node?e instanceof Node:"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function mi(e){return!(!e||!e.jquery)}function gi(e){if(e){if("function"==typeof e||mi(e)||fi(e))return!1;if("object"==typeof e)for(var t in e)if(e.hasOwnProperty(t)&&!gi(e[t]))return!1}return!0}function vi(e){return e.replace(/\n(?!$)\s*/g,"")}function yi(e){return e.replace(Jp,"").replace(Zp,"")}function _i(e,t,r,n,o){var i=n?Yp:Qp,a=i.replace(qp,t?'"use strict";':"").replace(zp,r?"var ".concat($u.swScopeHeaderValue," = ").concat(Up(r),";"):"").replace(Kp,o?JSON.stringify(o):"null");return a+e+"\n"+Wp}function Ei(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}function Si(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=bi(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bi(e,t){if(e){if("string"==typeof e)return wi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wi(e,t):void 0}}function wi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xi(e,t){var r=t.key.name,n=e[r],o="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(o=(t["static"]?"s":"i")+t.kind),"iget"===n&&"iset"===o||"iset"===n&&"iget"===o||"sget"===n&&"sset"===o||"sset"===n&&"sget"===o?(e[r]="true",!1):!!n||(e[r]=o,!1)}function Ci(e,t){var r=e.computed,n=e.key;return!r&&("Identifier"===n.type&&n.name===t||"Literal"===n.type&&n.value===t)}function Ai(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Ti(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ti(e,t){if(e){if("string"==typeof e)return Ii(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ii(e,t):void 0}}function Ii(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pi(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Ni(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ni(e,t){if(e){if("string"==typeof e)return Oi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Oi(e,t):void 0}}function Oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ki(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&ki(e.expression)}function Li(e){var t=e.match(kh);return t?t[0]:null}function Di(e){do e=e.replace(Lh,"\n");while(Lh.test(e));return e}function Mi(e){var t=Li(e),r=t?e.substring(t.length):e;return r=yi(r),r=Ri(r),{bom:t,preprocessed:r}}function Ri(e){return e.replace(jh,"")}function ji(e,t,r,n,o,i,a){return t&&(e=_i(e,n,o,i,a)),r?r+e:e}function Fi(e,t){return Mh.test(t)?e:e.replace(Mh,"")}function Hi(e,t){e=t?"(".concat(e,")"):e;try{return Oh.parse(e,Hh)}catch(r){return null}}function Ui(e,t){var r=Ku(e,{format:{quotes:"double",escapeless:!0,compact:!0}});return t?Fi(r,t):r}function Bi(e){var t=Dh.test(e),r=Hi(e,t);return!r&&t&&(r=Hi(e,!1),t=!1),{ast:r,isObject:t}}function Vi(e){var t=e.body[0];return 1===e.body.length&&t.type===Lu.ExpressionStatement&&t.expression.type===Lu.ArrayExpression}function Wi(e){if(e.body.length){var t=e.body[0];if(t.type===Lu.ExpressionStatement&&t.expression.type===Lu.Literal)return"use strict"===t.expression.value}return!1}function Gi(e,t,r){var n=r?-1:0,o=[],i=0;if(!t.length)return e;t.sort(function(e,t){return e.start-t.start||e.end-t.end||(e.node.type===Lu.VariableDeclaration?0:1)-(t.node.type===Lu.VariableDeclaration?0:1)});for(var a=0,s=t;a<s.length;a++){var c=s[a],l=c.start+n,u=c.end+n,p=c.node.type===Lu.SequenceExpression&&c.parentType!==Lu.ExpressionStatement&&c.parentType!==Lu.SequenceExpression;o.push(e.substring(i,l)),o.push(p?"(":" "),o.push(Ui(c.node,e.substring(l,u))),o.push(p?")":" "),i+=u-i}return o.push(e.substring(i)),o.join("")}function qi(e){return Fh.test(e)}function zi(e,t,r,n,o,i,a){void 0===t&&(t=!1),void 0===r&&(r=!1);var s=Mi(e),c=s.bom,l=s.preprocessed,u=Di(l),p=Bi(u),h=p.ast,d=p.isObject;if(!h)return e;t=t&&!d&&!Vi(h);var f=i?[]:hi(h,r,n),m=f.length?Gi(u,f,d):l;return m=ji(m,t,c,Wi(h),o,i,a),d&&(m=m.replace(Rh,"$1")),m}function Ki(e,t,r,n){var o=y(e,r,{value:n});Xc.objectDefineProperty(t,r,o)}function $i(e){try{return e.location.toString()}catch(t){return}}function Xi(e){return'\n <script class="'.concat(Zc.selfRemovingScript,"\">\n (function () {\n var currentScript = document.currentScript;\n\n /* NOTE: IE11 doesn't support the 'currentScript' property */\n if (!currentScript) {\n var scripts = document.scripts;\n var scriptsLength = scripts.length;\n\n currentScript = scripts[scriptsLength - 1];\n }\n\n currentScript.parentNode.removeChild(currentScript);\n\n ").concat(e,"\n })();\n </script>\n ").replace(Rd,"")}function Yi(e){var t=Xc.nodeParentNodeGetter.call(e);return t&&Xc.removeChild.call(t,e),e}function Qi(){try{cf.location&&cf.location.toString()}catch(e){cf=Xc.createHTMLDocument.call(document.implementation,"title"),lf=Xc.createDocumentFragment.call(cf),lf[af]=!0}return cf}function Ji(e){return e.replace(Yd,Qd).replace(Kd,$d).replace(qd,zd)}function Zi(e){return e.replace(Jd,"<!doctype$1>").replace(Xd,"<$2$1$4$3").replace(Gd,"$1")}function ea(e){return/^\s*(<\s*(!doctype|html|head|body)[^>]*>)/i.test(e)}function ta(e,t){var r=Xc.createElement.call(Qi(),"div");e=Ji(e),Xc.appendChild.call(lf,r),Xc.elementInnerHTMLSetter.call(r,e);var n=t(r)?Xc.elementInnerHTMLGetter.call(r):e;return Yi(r),n=Zi(n),Mc&&!Uc&&e!==n&&(n=pa(e,n)),n}function ra(e){var t=Af.getUrlAttr(e);if(t&&Xc.hasAttribute.call(e,t)){var r=_d.getStoredAttrName(t);Xc.hasAttribute.call(e,r)&&(Xc.setAttribute.call(e,t,Xc.getAttribute.call(e,r)),Xc.removeAttribute.call(e,r))}}function na(e){if(Xc.hasAttribute.call(e,"autocomplete")){var t=_d.getStoredAttrName("autocomplete");if(Xc.hasAttribute.call(e,t)){var r=Xc.getAttribute.call(e,t);_d.isAddedAutocompleteAttr("autocomplete",r)?Xc.removeAttribute.call(e,"autocomplete"):Xc.setAttribute.call(e,"autocomplete",r),Xc.removeAttribute.call(e,t)}}}function oa(e){var t=Af.getTargetAttr(e);if(t&&Xc.hasAttribute.call(e,t)){var r=_d.getStoredAttrName(t);Xc.hasAttribute.call(e,r)&&(Xc.setAttribute.call(e,t,Xc.getAttribute.call(e,r)),Xc.removeAttribute.call(e,r))}}function ia(e){if("iframe"===Af.adapter.getTagName(e)&&Xc.hasAttribute.call(e,"sandbox")){var t=_d.getStoredAttrName("sandbox");Xc.hasAttribute.call(e,t)&&(Xc.setAttribute.call(e,"sandbox",Xc.getAttribute.call(e,t)),Xc.removeAttribute.call(e,t))}}function aa(e){if(Xc.hasAttribute.call(e,"style")){var t=_d.getStoredAttrName("style");Xc.hasAttribute.call(e,t)&&(Xc.setAttribute.call(e,"style",Xc.getAttribute.call(e,t)),Xc.removeAttribute.call(e,t))}}function sa(e){return ta(e,function(e){var t=!1;return jt(e,tf,function(e){ra(e),na(e),oa(e),ia(e),aa(e),t=!0}),jt(e,rf,function(e){var r=Xc.nodeParentNodeGetter.call(e);r&&(Xc.removeChild.call(r,e),t=!0)}),jt(e,"script",function(e){var r=Xc.nodeTextContentGetter.call(e),n=yi(r);r!==n&&(Xc.nodeTextContentSetter.call(e,n),t=!0)}),jt(e,"style",function(e){var r=Xc.nodeTextContentGetter.call(e),n=rd.cleanUp(r,jl);r!==n&&(Xc.nodeTextContentSetter.call(e,n),t=!0)}),jt(e,nf,function(e){Xc.removeAttribute.call(e,Qc.hoverPseudoClass),Xc.removeAttribute.call(e,Qc.focusPseudoClass),t=!0}),jt(e,of,function(e){var r=Xc.elementInnerHTMLGetter.call(e);r.indexOf(jd.iframeInit)!==-1&&(Xc.elementInnerHTMLSetter.call(e,r.replace(jd.iframeInit,"")),t=!0)}),t})}function ca(e,t){void 0===t&&(t={});var r=t.parentTag,n=t.prepareDom,o=t.processedContext,i=t.isPage;return ta(e,function(e){var t=null,a=[],s=[],c=0,l=wl.getBaseUrl(document);n&&n(e),Xc.htmlCollectionLengthGetter.call(Xc.elementChildrenGetter.call(e))&&(s=Xc.elementQuerySelectorAll.call(e,"*"),c=Xc.nodeListLengthGetter.call(s));var u=Xc.elementQuerySelector.call(e,"base");u&&wl.updateBase(Xc.getAttribute.call(u,"href"),document);for(var p=0;p<c;p++){var h=s[p];if(dr(h)){var d=Xc.nodeTextContentGetter.call(h);Xc.nodeTextContentSetter.call(h,Zi(d))}h[vc.processedContext]=o,Af.processElement(h,Fl);var f=Gt(h);f===Bd||f===Vd?a.push(h):f===Ud&&(t=h)}if(!r)if(a.length)for(var m=0,g=a;m<g.length;m++){var v=g[m],y=Xc.elementQuerySelector.call(v,sf);y?Xc.insertAdjacentHTML.call(y,Fd.beforeBegin,jd.iframeInit):Xc.insertAdjacentHTML.call(v,Fd.beforeEnd,jd.iframeInit)}else t&&Mc?Xc.insertAdjacentHTML.call(t,Fd.afterEnd,jd.iframeInit):i&&Xc.insertAdjacentHTML.call(e,Fd.afterBegin,jd.iframeInit);return wl.updateBase(l,document),!0})}function la(){lf=null,cf=null}function ua(e){for(;Xc.nodeParentNodeGetter.call(e);)e=Xc.nodeParentNodeGetter.call(e);return!!e[af]}function pa(e,t){var r=e.match(Zd),n=0;return r?t.replace(Zd,function(e){var t=r[n],o=t?t.match(ef):null;return t&&n++,t?e.replace(ef,function(){var e=o?o.join(""):"";return o&&(o=null),e}):e}):t}function ha(){var e=Rt(window),t=e[wf];return t||(t=[],Xc.objectDefineProperty(e,wf,{value:t})),t}function da(e){for(var t=ha(),r=t.length-1;r>=0;r--)try{if(t[r]===e)return}catch(n){t.splice(r,1)}t.push(e)}function fa(e){var t=ha(),r=t.indexOf(e);r!==-1&&t.splice(r,1)}function ma(e){for(var t=ha(),r=0;r<t.length;r++)try{if(t[r].name===e)return t[r]}catch(n){t.splice(r,1),r--}return null}function ga(e){var t=Xc.createElement.call(document,"input");return t.type="hidden",t.name=Qc.uploadInfoHiddenInputName,gm.markElementAsShadow(t),Xc.inputValueSetter.call(t,"[]"),Xc.appendChild.call(e,t),gm.markFormAsShadow(e),t}function va(e){var t='[name="'+Qc.uploadInfoHiddenInputName+'"]';return Xc.elementQuerySelector.call(e,t)||ga(e)}function ya(e,t){for(var r=0;r<e.length;r++)if(e[r].id===t.id||e[r].name===t.name)return r;return-1}function _a(e,t,r){var n=Ea(e);if(n){var o=[];t=Xc.arraySlice.call(t);for(var i=0,a=t.length;i<a;i++){var s=t[i];o.push({name:s.name,type:s.type,data:s.base64})}var c=ya(n,e),l={id:e.id,name:e.name,files:o,value:r};c===-1?n.push(l):n[c]=l,Sa(e,n)}}function Ea(e){return e.form?Hp(Xc.inputValueGetter.call(va(e.form))):null}function Sa(e,t){if(e.form){var r=va(e.form);Xc.inputValueSetter.call(r,Up(t))}}function ba(e){var t=Ea(e);if(t){var r=ya(t,e);if(r!==-1)return t.splice(r,1),Sa(e,t),!0}return!1}function wa(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t||xa(e)}function xa(e){e.stopImmediatePropagation?e.stopImmediatePropagation():e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0}function Ca(e){return"object"==typeof e&&e&&O(e.handleEvent)}function Aa(e){return O(e)||Ca(e)}function Ta(e,t,r){return Ca(t)?t.handleEvent.call(t,r):t.call(e,r)}function Ia(e){return Pf.indexOf(e)!==-1}function Pa(e,t){return function(){return e.apply(t,arguments)}}function Na(e,t,r){return function(){var n=t[r].apply(t,arguments);return Da(e),n}}function Oa(e){if(e.length)for(var t=0;t<e.length;t++)delete e[e[t].name],delete e[t]}function ka(e,t){for(var r=0,n={},o=0,i=t;o<i.length;o++){var a=i[o];if(!Xt(a.name)){var s=t[_d.getStoredAttrName(a.name)];if(s){if(_d.isAddedAutocompleteAttr(a.name,s.value))continue;a=Xc.cloneNode.call(a),a.value=s.value}n[a.name]={value:a,configurable:!0,enumerable:!0},n[r]={value:a,configurable:!0},r++}}n.length={value:r,configurable:!0},Xc.objectDefineProperties(e,n)}function La(e){if(e[Hf])return Da(e),e[Hf];var t=Xc.elementAttributesGetter.call(e);if(!t)return t;for(var r=0,n=t;r<n.length;r++){var o=n[r];if(Xt(o.name))return Ff.prototype=t,e[Hf]=new Ff(e,t),e[Hf]}return t}function Da(e){var t=e[Hf];t&&(Oa(t),ka(t,Xc.elementAttributesGetter.call(e)))}function Ma(e){return void 0===e&&(e=""),e=e.toLowerCase(),Vf.indexOf(e)!==-1}function Ra(e){return e.replace(Wf,function(e){return"-".concat(e.toLowerCase())})}function ja(e,t){var r=Xc.getAttribute.call(e,"shape"),n=Xc.getAttribute.call(e,"coords"),o=0;if("default"===r)return Ba(t);if(!r||!n)return null;if(n=n.split(","),!n.length)return null;for(o=0;o<n.length;o++)if(n[o]=parseInt(n[o],10),"number"!=typeof n[o])return null;var i=null;switch(r){case"rect":4===n.length&&(i={height:n[3]-n[1],left:n[0],top:n[1],width:n[2]-n[0]});break;case"circle":3===n.length&&(i={height:2*n[2],left:n[0]-n[2],top:n[1]-n[2],width:2*n[2]});break;case"poly":if(n.length>=6&&n.length%2===0){for(i={},i.left=i.right=n[0],i.top=i.bottom=n[1],o=2;o<n.length;o+=2)i.left=n[o]<i.left?n[o]:i.left,i.right=n[o]>i.right?n[o]:i.right;for(o=3;o<n.length;o+=2)i.top=n[o]<i.top?n[o]:i.top,i.bottom=n[o]>i.bottom?n[o]:i.bottom;i.height=i.bottom-i.top,i.width=i.right-i.left}}if(i){var a=qa(t);i.left+=a.left,i.top+=a.top}return i}function Fa(e){var t=Ot(e);if(t){if(/^map$/i.test(e.tagName))return Ba(t);if(/^area$/i.test(e.tagName)){var r=ja(e,t);if(r)return r}}return{height:0,left:0,top:0,width:0}}function Ha(e){var t=Dt(e);if(t){var r=Ba(t),n=Ye(t),o=at(t)===t.clientWidth?0:Lt(),i=ct(t),a=Tt(t,e),s=Math.max(a-ht(t)/i,0);return{height:i,left:r.left+n.left,top:r.top+n.top+tt(t).top+s*i,width:r.width-(n.left+n.right)-o}}return Ba(e)}function Ua(e){var t=an(e,"tspan")||an(e,"tref")||"textpath"===Gt(e),r=e.getBoundingClientRect(),n={height:t?e.offsetHeight:r.height,left:r.left+(document.body.scrollLeft||document.documentElement.scrollLeft),top:r.top+(document.body.scrollTop||document.documentElement.scrollTop),width:t?e.offsetWidth:r.width};if(t){var o=mt(e),i=gt(e),a=gt(o),s=an(o,"body");return{height:n.height||r.height,left:s?e.offsetLeft||i.left:a.left+e.offsetLeft,top:s?e.offsetTop||i.top:a.top+e.offsetTop,width:n.width||r.width}}if(Hc||Mc)return n;var c=Xc.getAttribute.call(e,"stroke-width")||Ke(e,"stroke-width");return c=c?+c.replace(/px|em|ex|pt|pc|cm|mm|in/,""):1,c&&+c%2!==0&&(c=+c+1),!(an(e,"line")||an(e,"polyline")||an(e,"polygon")||an(e,"path"))||n.width&&n.height?(an(e,"polygon")&&(n.height+=2*c,n.left-=c,n.top-=c,n.width+=2*c),n.height+=c,n.left-=c/2,n.top-=c/2,n.width+=c):!n.width&&n.height?(n.left-=c/2,n.width=c):n.width&&!n.height&&(n.height=c,n.top-=c/2),n}function Ba(e){var t={};if(Ar(e))t=Fa(e);else if(ut(e))t=Ha(e);else{var r=qa(e),n=jr(e)?Ua(e):e.getBoundingClientRect();t={height:n.height,left:r.left,top:r.top,width:n.width}}return t.height=Math.round(t.height),t.left=Math.round(t.left),t.top=Math.round(t.top),t.width=Math.round(t.width),t}function Va(e,t,r){if("iframe"!==Gt(e))return!1;var n=Ba(e),o=Ye(e),i=tt(e),a=n.left+o.left+i.left,s=n.top+o.top+i.top,c=n.left+n.width-o.right-i.right,l=n.top+n.height-o.bottom-i.bottom;return t>=a&&t<=c&&r>=s&&r<=l}function Wa(e,t,r){var n=jr(e),o=n?Ua(e):null;return{left:n?o.left+t.left:r.left+t.left,top:n?o.top+t.top:r.top+t.top}}function Ga(e,t,r,n,o){var i=Ye(o);t.left+=i.left,t.top+=i.top;var a=qa(o),s=tt(o),c=null;if(jr(e)){var l=Ua(e);c={x:l.left-(document.body.scrollLeft||document.documentElement.scrollLeft)+t.left,y:l.top-(document.body.scrollTop||document.documentElement.scrollTop)+t.top}}else c=za({x:r.left+t.left,y:r.top+t.top},n);return{left:a.left+c.x+s.left,top:a.top+c.y+s.top}}function qa(e,t){if(void 0===t&&(t=Math.round),Ar(e)){var r=Fa(e);return{left:r.left,top:r.top}}var n=Ft(e),o=$t(e,n),i=o?It(n):null,a=gt(n===e?n.documentElement:e),s=n.body?Ye(n.body):{left:0,top:0},c=o&&i?Ga:Wa,l=c(e,s,a,n,i),u=l.left,p=l.top;return O(t)&&(u=t(u),p=t(p)),{left:u,top:p}}function za(e,t){var r=t||document,n=pt(r),o=ht(r),i=pt(r.body),a=ht(r.body),s=0===n&&0!==i?i:n,c=0===o&&0!==a?a:o;return{x:e.x-s,y:e.y-c}}function Ka(e){for(var t=function(e){var t=am++;Xc.objectDefineProperty(cm.prototype,t,{get:function(){this.item(t)}})},r=0;r<e;r++)t()}function $a(e,t,r){if(t!==r){for(var n=function(){var r=t++;Xc.objectDefineProperty(e,r,{enumerable:!0,configurable:!0,get:function(){return e.item(r)}})};t<r;)n();for(;t>r;)delete e[--t];var o=am-im;r>o&&Ka(r-o)}}function Xa(e,t,r){if(r){for(var n=0,o=t;n<o.length;n++){var i=o[n];r.indexOf(i)===-1&&delete e[i]}for(var a=function(t){return e._collection[t]?void Xc.objectDefineProperty(e,t,{configurable:!0,get:function(){return this._refreshCollection(),e._collection[t]}}):"continue"},s=0,c=r;s<c.length;s++){var l=c[s];a(l)}}}function Ya(e,t){var r=e._collection,n=e._namedProps?[]:null,o=e._filteredCollection;o.length=0;for(var i=0;i<t;i++){var a=r[i];if(!Or(a)&&(o.push(a),n)){var s=Xc.getAttribute.call(a,"name");null!==s&&n.push(s)}}return n}function Qa(e,t){return e instanceof t==!1}function Ja(e,t){if(t.length<e.pattern.length)return!1;for(var r=0,n=0,o=null;r<e.pattern.length;){if(o=t[n]&e.mask[r],o!==e.pattern[r])return!1;n++,r++}return!0}function Za(e,t){rn(t[0])?t=t[0]:nn(t[0])&&(t=on(t[0])?t[0].buffer:t[0]);for(var r=new Xc.Uint8Array(t),n=0,o=e;n<o.length;n++){var i=o[n];if(Ja(i,r))return i.mime}return r=null,""}function es(e){return Za(vm,e)||Za(ym,e)||Za(_m,e)||Za(Em,e)}function ts(e,t){for(var r=e.length-1;r>=0;r--)try{if(e[r].iframe===t)return e[r]}catch(n){e.splice(r,1)}}function rs(e,t){var r=Rt(e),n=e!==r?Nt(e):null,o=r[Am];o||(o=[],Xc.objectDefineProperty(r,Am,{value:o}));var i=ts(o,n);i?i.sandbox=t:o.push({iframe:n,sandbox:t})}function ns(e){var t=Rt(e),r=t[Am],n=e!==t?e.frameElement:null;if(r){var o=ts(r,n);return o?o.sandbox:null}return null}function os(e,t){var r=Xc.anchorHrefGetter.call(e);return Pm||as(),r?(Xc.anchorHrefSetter.call(Pm,Be(r)),t.call(Pm)):t.call(Nm)}function is(e,t,r){var n=Xc.anchorHrefGetter.call(e);return Pm||as(),n&&(Xc.anchorHrefSetter.call(Pm,Be(n)),t.call(Pm,r),e.setAttribute("href",Xc.anchorHrefGetter.call(Pm))),r}function as(){Pm=Xc.createElement.call(document,"a"),Nm=Xc.createElement.call(document,"a")}function ss(){Pm=null,Nm=null}function cs(e){return e[Om]}function ls(e,t){t=Mc&&kc>10&&/MSPointer/.test(t)?t.replace("MS","").toLowerCase():t;var r=cs(e);return r&&r[t]}function us(e){return!!e[Om]}function ps(e,t){for(var r=cs(e)||{},n=0;n<t.length;n++)r[t[n]]||(r[t[n]]={internalBeforeHandlers:[],internalAfterHandlers:[],outerHandlers:[],outerHandlersWrapper:null,wrappers:[],cancelOuterHandlers:!1});us(e)||Xc.objectDefineProperty(e,Om,{value:r,writable:!0})}function hs(e){delete e[Om]}function ds(e,t,r){for(var n=cs(e),o=0,i=t;o<i.length;o++){var a=i[o];n[a].internalAfterHandlers.unshift(r),Xc.addEventListener.call(e,a,r)}}function fs(e,t,r){for(var n=cs(e),o=0,i=t;o<i.length;o++){var a=i[o];n[a].internalBeforeHandlers.unshift(r)}}function ms(e,t,r){for(var n=cs(e),o=0,i=t;o<i.length;o++){var a=i[o];n[a].internalBeforeHandlers.push(r)}}function gs(e,t,r){for(var n=cs(e),o=0,i=t;o<i.length;o++){var a=i[o],s=n[a].internalBeforeHandlers,c=s.indexOf(r);c>-1&&s.splice(c,1)}}function vs(e,t,r,n){e.outerHandlers.push({fn:t,useCapture:n||!1}),e.wrappers.push(r)}function ys(e,t,r){for(var n=e.outerHandlers,o=e.wrappers,i=null,a=0;a<n.length;a++){var s=n[a];if(s.fn===t&&(s.useCapture||!1)===(r||!1))return i=o[a],o.splice(a,1),n.splice(a,1),i}return null}function _s(e,t){for(var r=cs(e),n=0,o=r[t].internalAfterHandlers;n<o.length;n++){var i=o[n];Xc.removeEventListener.call(e,t,i),Xc.addEventListener.call(e,t,i)}}function Es(){}function Ss(e,t,r){var n=e[t];switch(r.length){case 1:return n.call(e,r[0]);case 2:return n.call(e,r[0],r[1]);case 3:return n.call(e,r[0],r[1],r[2]);case 4:return n.call(e,r[0],r[1],r[2],r[3]);case 5:return n.call(e,r[0],r[1],r[2],r[3],r[4]);default:return n.apply(e,r)}}function bs(e,t){return e.sid===t.sid&&e.key===t.key&&e.domain===t.domain&&e.path===t.path}function ws(e){for(var t=[],r=[],n=0;n<e.length;n++){for(var o=n+1;o<e.length;o++)if(bs(e[n],e[o])){if(e[n].lastAccessed>e[o].lastAccessed){var i=e[n];e[n]=e[o],e[o]=i}t.push(e[n]);break}o===e.length&&r.push(e[n])}return{outdated:t,actual:r}}function xs(e){return(e.isServerSync?cg.server:"")+(e.isClientSync?cg.client:"")+(e.isWindowSync?cg.window:"")}function Cs(e){var t=xs(e),r=encodeURIComponent(e.key),n=encodeURIComponent(e.domain),o=encodeURIComponent(e.path),i="Infinity"!==e.expires?e.expires.getTime().toString(og):"",a=e.lastAccessed.getTime().toString(og),s=rg.isNil(e.maxAge)||isNaN(Number(e.maxAge))||"Infinity"===String(e.maxAge)?"":e.maxAge.toString(og);return"".concat(t,"|").concat(e.sid,"|").concat(r,"|").concat(n,"|").concat(o,"|").concat(i,"|").concat(a,"|").concat(s)}function As(e){for(var t=e?e.split(";"):"",r=[],n=0,o=t;n<o.length;n++){var i=o[n],a=Ps(k(i));a&&r.push(a)}return ws(r)}function Ts(e){e.syncKey=e.syncKey||Cs(e),e.cookieStr=e.cookieStr||"".concat(e.syncKey,"=").concat(e.value)}function Is(e){return e.cookieStr?"".concat(e.cookieStr,";path=/"):"".concat(Cs(e),"=").concat(e.value,";path=/")}function Ps(e){var t=sg.exec(e)||[],r=t[1],n=t[2],o=void 0!==r&&void 0!==n&&r.split("|");return o&&o.length!==ag?null:{isServerSync:o[0].indexOf(cg.server)>-1,isClientSync:o[0].indexOf(cg.client)>-1,isWindowSync:o[0].indexOf(cg.window)>-1,sid:o[1],key:decodeURIComponent(o[2]),domain:decodeURIComponent(o[3]),path:decodeURIComponent(o[4]),expires:o[5]?new Date(parseInt(o[5],og)):"Infinity",lastAccessed:new Date(parseInt(o[6],og)),maxAge:o[7]?parseInt(o[7],og):null,syncKey:r,value:n,cookieStr:e}}function Ns(e,t){var r,n;"server"in t&&(e.isServerSync=t.server),"client"in t&&(e.isClientSync=t.client),"window"in t&&(e.isWindowSync=t.window);var o=xs(e);e.syncKey=null===(r=e.syncKey)||void 0===r?void 0:r.replace(lg,o),e.cookieStr=null===(n=e.cookieStr)||void 0===n?void 0:n.replace(lg,o)}function Os(e,t){return t.isServerSync===e.isServerSync&&t.sid===e.sid&&t.key===e.key&&t.domain===e.domain&&t.path===e.path&&t.lastAccessed>e.lastAccessed}function ks(e){return e.syncKey+ig}function Ls(){if(!pg)for(pg=window.top;pg.opener&&pg!==pg.opener;)pg=pg.opener.top;return pg}function Ds(e){e=k(e);var t=yg.exec(e);t&&(e=e.slice(0,t.index));var r=e.indexOf(";"),n=r>-1?e.substr(0,r):e,o=vg.exec(n);if(!o)return null;var i={key:o[1]?k(o[2]):"",value:k(o[3])};if(r===-1)return i;var a=k(e.slice(r).replace(/^\s*;\s*/,""));if(0===a.length)return i;for(var s=a.split(/\s*;\s*/);s.length;){var c=s.shift(),l=c.indexOf("="),u=null,p=null,h=null;switch(l===-1?u=c:(u=c.substr(0,l),p=k(c.substr(l+1))),u=k(u.toLowerCase())){case"expires":p=p.replace(_g,"$1 $2 $3"),h=Hs(Date.parse(p)),h&&(i.expires=h);break;case"max-age":p&&(i.maxAge=Number(p));break;case"path":i.path=p;break;case"secure":i.secure=!0;break;case"httponly":i.httpOnly=!0;break;case"domain":i.domain=k(p.replace(/^\./,""))}}return i}function Ms(e){var t=e.value||"";return""!==e.key&&(t=e.key+"="+t),t}function Rs(e,t){var r=t.hostname,n=t.pathname;if(e.domain||(e.domain=r),!e.path||"/"!==e.path.charAt(0)){
var o=n,i=o.slice(0,o.lastIndexOf("/"));e.path=i||"/"}e.expires||(e.expires="Infinity"),isNaN(e.maxAge)&&(e.maxAge="Infinity")}function js(e,t){if(!t)return!0;if(e=e.toLowerCase(),t=t.toLowerCase(),e===t)return!0;var r=e.indexOf(t);return r>0&&e.length===t.length+r&&"."===e.charAt(r-1)}function Fs(e,t){return!t||"/"!==t.charAt(0)||e===t||e.length>t.length&&0===e.indexOf(t)&&("/"===t.charAt(t.length-1)||"/"===e.charAt(t.length))}function Hs(e){if(arguments.length){if(isNaN(e))return null}else e=Xc.dateNow();return e=1e3*Math.floor(e/1e3),new Xc.date(e)}function Us(){return new mc(function(e){return Xc.setTimeout.call(window,e,0)})}function Bs(e){e=e.replace(/\r\n$/,"");var t=[];if(""===e)return t;e=e.split(/\r\n/);for(var r=0,n=e;r<n.length;r++){var o=n[r];"#"!==o&&t.push(o)}return t}function Vs(e){return"text"===e?"text/plain":"url"===e?"text/uri-list":e}function Ws(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e=e||{};var n=null,o=null;"object"!=typeof e&&"[object Function]"!==e.toString()&&(e={});for(var i=0;i<t.length;i++)if(n=t[i],null!==n)for(var a in n)o=n[a],e!==o&&void 0!==o&&(e[a]=o);return e}function Gs(e){return e.configurable=!0,e.enumerable=!0,e}function qs(e){return gv+e}function zs(e){return e.indexOf(gv)>-1}function Ks(e){return e.replace(gv,"")}function $s(e){var t=String(e).toLowerCase();return t===nd.wwwAuthenticate||t===nd.proxyAuthenticate}function Xs(e){return vv+e}function Ys(e){return e.indexOf(vv)>-1}function Qs(e){return e.replace(vv,"")}function Js(e){var t=String(e).toLowerCase();return t===nd.authorization||t===nd.proxyAuthorization}function Zs(e){switch(e=String(e).toLowerCase()){case"omit":return fc.omit;case"same-origin":return fc.sameOrigin;case"include":return fc.include;default:return fc.unknown}}function ec(e,t){return Mv+e+"|"+t}function tc(){var e=new Xc.Uint16Array(1);return Xc.cryptoGetRandomValues.call(Xc.crypto,e),e[0]}function rc(){return new mc(Es)}function nc(){var e=Xc.querySelector.call(document,uy);e&&Yi(e)}var oc,ic="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ac="pending",sc="settled",cc="fulfilled",lc="rejected",uc=function(){},pc="undefined"!=typeof ic&&"undefined"!=typeof ic.process&&"function"==typeof ic.process.emit,hc="undefined"==typeof setImmediate?setTimeout:setImmediate,dc=[];f.prototype={constructor:f,_state:ac,_then:null,_data:void 0,_handled:!1,then:function(e,t){var r={owner:this,then:new this.constructor(uc),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,this._state===lc&&pc&&n(d,this)),this._state===cc||this._state===lc?n(i,r):this._then.push(r),r.then},"catch":function(e){return this.then(null,e)}},f.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new f(function(t,r){function n(e){return a++,function(r){i[e]=r,--a||t(i)}}for(var o,i=[],a=0,s=0;s<e.length;s++)o=e[s],o&&"function"==typeof o.then?o.then(n(s),r):i[s]=o;a||t(i)})},f.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new f(function(t,r){for(var n,o=0;o<e.length;o++)n=e[o],n&&"function"==typeof n.then?n.then(t,r):t(n)})},f.resolve=function(e){return e&&"object"==typeof e&&e.constructor===f?e:new f(function(t){t(e)})},f.reject=function(e){return new f(function(t,r){r(e)})};var fc,mc=f,gc=function(e,t){return(gc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},vc={processDomMethodName:"hammerhead|process-dom-method",processedContext:"hammerhead|processed-context",documentWasCleaned:"hammerhead|document-was-cleaned",documentCharset:"hammerhead|document-charset",iframeNativeMethods:"hammerhead|iframe-native-methods",hammerhead:"%hammerhead%",selection:"hammerhead|selection",shadowUIElement:"hammerhead|shadow-ui-element",forceProxySrcForImage:"hammerhead|image|force-proxy-src-flag",skipNextLoadEventForImage:"hammerhead|image|skip-next-load-event-flag",cachedImage:"hammerhead|image|cached-image",sandboxIsReattached:"hammerhead|sandbox-is-reattached",nativeStrRepresentation:"hammerhead|native-string-representation",currentBaseUrl:"hammerhead|current-base-url"},yc="undefined"==typeof window&&"object"==typeof self,_c=yc?self:window,Ec={isInWorker:yc,global:_c,isServiceWorker:yc&&!_c.XMLHttpRequest},Sc=Object.freeze({__proto__:null,createOverriddenDescriptor:y,overrideDescriptor:_,overrideStringRepresentation:b,isNativeFunction:w,overrideFunction:x,overrideConstructor:C}),bc=t(function(e){!function(t,r,n){e.exports?e.exports=n():t[r]=n()}(ic,"bowser",function(){function e(e){function t(t){var r=e.match(t);return r&&r.length>1&&r[1]||""}function r(t){var r=e.match(t);return r&&r.length>1&&r[2]||""}var n=t(/(ipod|iphone|ipad)/i).toLowerCase(),o=/like android/i.test(e),i=!o&&/android/i.test(e),s=/nexus\s*[0-6]\s*/i.test(e),c=!s&&/nexus\s*[0-9]+/i.test(e),l=/CrOS/.test(e),u=/silk/i.test(e),p=/sailfish/i.test(e),h=/tizen/i.test(e),d=/(web|hpw)os/i.test(e),f=/windows phone/i.test(e);/SamsungBrowser/i.test(e);var m,g=!f&&/windows/i.test(e),v=!n&&!u&&/macintosh/i.test(e),y=!i&&!p&&!h&&!d&&/linux/i.test(e),_=t(/edge\/(\d+(\.\d+)?)/i),E=t(/version\/(\d+(\.\d+)?)/i),S=/tablet/i.test(e),b=!S&&/[^-]mobi/i.test(e),w=/xbox/i.test(e);/opera/i.test(e)?m={name:"Opera",opera:a,version:E||t(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr|opios/i.test(e)?m={name:"Opera",opera:a,version:t(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||E}:/SamsungBrowser/i.test(e)?m={name:"Samsung Internet for Android",samsungBrowser:a,version:E||t(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(e)?m={name:"Opera Coast",coast:a,version:E||t(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(e)?m={name:"Yandex Browser",yandexbrowser:a,version:E||t(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(e)?m={name:"UC Browser",ucbrowser:a,version:t(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(e)?m={name:"Maxthon",maxthon:a,version:t(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(e)?m={name:"Epiphany",epiphany:a,version:t(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(e)?m={name:"Puffin",puffin:a,version:t(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(e)?m={name:"Sleipnir",sleipnir:a,version:t(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(e)?m={name:"K-Meleon",kMeleon:a,version:t(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:f?(m={name:"Windows Phone",windowsphone:a},_?(m.msedge=a,m.version=_):(m.msie=a,m.version=t(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?m={name:"Internet Explorer",msie:a,version:t(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:l?m={name:"Chrome",chromeos:a,chromeBook:a,chrome:a,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(e)?m={name:"Microsoft Edge",msedge:a,version:_}:/vivaldi/i.test(e)?m={name:"Vivaldi",vivaldi:a,version:t(/vivaldi\/(\d+(\.\d+)?)/i)||E}:p?m={name:"Sailfish",sailfish:a,version:t(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?m={name:"SeaMonkey",seamonkey:a,version:t(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(e)?(m={name:"Firefox",firefox:a,version:t(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(m.firefoxos=a)):u?m={name:"Amazon Silk",silk:a,version:t(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(e)?m={name:"PhantomJS",phantom:a,version:t(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(e)?m={name:"SlimerJS",slimer:a,version:t(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?m={name:"BlackBerry",blackberry:a,version:E||t(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:d?(m={name:"WebOS",webos:a,version:E||t(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(m.touchpad=a)):/bada/i.test(e)?m={name:"Bada",bada:a,version:t(/dolfin\/(\d+(\.\d+)?)/i)}:h?m={name:"Tizen",tizen:a,version:t(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||E}:/qupzilla/i.test(e)?m={name:"QupZilla",qupzilla:a,version:t(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||E}:/chromium/i.test(e)?m={name:"Chromium",chromium:a,version:t(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||E}:/chrome|crios|crmo/i.test(e)?m={name:"Chrome",chrome:a,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:i?m={name:"Android",version:E}:/safari|applewebkit/i.test(e)?(m={name:"Safari",safari:a},E&&(m.version=E)):n?(m={name:"iphone"==n?"iPhone":"ipad"==n?"iPad":"iPod"},E&&(m.version=E)):m=/googlebot/i.test(e)?{name:"Googlebot",googlebot:a,version:t(/googlebot\/(\d+(\.\d+))/i)||E}:{name:t(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!m.msedge&&/(apple)?webkit/i.test(e)?(/(apple)?webkit\/537\.36/i.test(e)?(m.name=m.name||"Blink",m.blink=a):(m.name=m.name||"Webkit",m.webkit=a),!m.version&&E&&(m.version=E)):!m.opera&&/gecko\//i.test(e)&&(m.name=m.name||"Gecko",m.gecko=a,m.version=m.version||t(/gecko\/(\d+(\.\d+)?)/i)),m.windowsphone||m.msedge||!i&&!m.silk?m.windowsphone||m.msedge||!n?v?m.mac=a:w?m.xbox=a:g?m.windows=a:y&&(m.linux=a):(m[n]=a,m.ios=a):m.android=a;var x="";m.windowsphone?x=t(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):n?(x=t(/os (\d+([_\s]\d+)*) like mac os x/i),x=x.replace(/[_\s]/g,".")):i?x=t(/android[ \/-](\d+(\.\d+)*)/i):m.webos?x=t(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):m.blackberry?x=t(/rim\stablet\sos\s(\d+(\.\d+)*)/i):m.bada?x=t(/bada\/(\d+(\.\d+)*)/i):m.tizen&&(x=t(/tizen[\/\s](\d+(\.\d+)*)/i)),x&&(m.osversion=x);var C=x.split(".")[0];return S||c||"ipad"==n||i&&(3==C||C>=4&&!b)||m.silk?m.tablet=a:(b||"iphone"==n||"ipod"==n||i||s||m.blackberry||m.webos||m.bada)&&(m.mobile=a),m.msedge||m.msie&&m.version>=10||m.yandexbrowser&&m.version>=15||m.vivaldi&&m.version>=1||m.chrome&&m.version>=20||m.samsungBrowser&&m.version>=4||m.firefox&&m.version>=20||m.safari&&m.version>=6||m.opera&&m.version>=10||m.ios&&m.osversion&&m.osversion.split(".")[0]>=6||m.blackberry&&m.version>=10.1||m.chromium&&m.version>=20?m.a=a:m.msie&&m.version<10||m.chrome&&m.version<20||m.firefox&&m.version<20||m.safari&&m.version<6||m.opera&&m.version<10||m.ios&&m.osversion&&m.osversion.split(".")[0]<6||m.chromium&&m.version<20?m.c=a:m.x=a,m}function t(e){return e.split(".").length}function r(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r++)n.push(t(e[r]));return n}function n(e){for(var n=Math.max(t(e[0]),t(e[1])),o=r(e,function(e){var o=n-t(e);return e+=new Array(o+1).join(".0"),r(e.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});--n>=0;){if(o[0][n]>o[1][n])return 1;if(o[0][n]!==o[1][n])return-1;if(0===n)return 0}}function o(t,r,o){var i=s;"string"==typeof r&&(o=r,r=void 0),void 0===r&&(r=!1),o&&(i=e(o));var a=""+i.version;for(var c in t)if(t.hasOwnProperty(c)&&i[c]){if("string"!=typeof t[c])throw new Error("Browser version in the minVersion map should be a string: "+c+": "+String(t));return n([a,t[c]])<0}return r}function i(e,t,r){return!o(e,t,r)}var a=!0,s=e("undefined"!=typeof navigator?navigator.userAgent||"":"");return s.test=function(e){for(var t=0;t<e.length;++t){var r=e[t];if("string"==typeof r&&r in s)return!0}return!1},s.isUnsupportedBrowser=o,s.compareVersions=n,s.check=i,s._detect=e,s})}),wc=navigator.userAgent.toLowerCase(),xc=bc._detect(wc),Cc=wc.match(/applewebkit\/(\d+(:?\.\d+)*)/),Ac=bc.compareVersions,Tc=!!xc.mac,Ic=!!xc.android,Pc=!!xc.ios,Nc=!!xc.mobile,Oc=!!xc.tablet,kc=parseInt(xc.version,10),Lc=xc.version,Dc=Cc&&Cc[1]||"",Mc=!(!xc.msie&&!xc.msedge),Rc=Mc&&11===kc,jc=Mc&&10===kc,Fc=Mc&&9===kc,Hc=!!xc.firefox,Uc=!!xc.msedge,Bc=!!xc.chrome,Vc=!!xc.safari,Wc=!(!xc.webkit&&!xc.blink),Gc=/electron/g.test(wc),qc=Object.freeze({__proto__:null,compareVersions:Ac,isMacPlatform:Tc,isAndroid:Ic,isIOS:Pc,isMobile:Nc,isTablet:Oc,version:kc,fullVersion:Lc,webkitVersion:Dc,isIE:Mc,isIE11:Rc,isIE10:jc,isIE9:Fc,isFirefox:Hc,isMSEdge:Uc,isChrome:Bc,isSafari:Vc,isWebKit:Wc,isElectron:Gc}),zc=Object.freeze({__proto__:null,inaccessibleTypeToStr:A,isNullOrUndefined:T,isPrimitiveType:I,isNull:P,isNumber:N,isFunction:O}),Kc=/\[native code]/,$c=function(){function e(e,t){t=t||Ec.global,this.refreshWindowMeths(t,Ec.isInWorker),this.refreshWorkerMeths(t),Ec.isInWorker||(this.refreshDocumentMeths(e,t),this.refreshElementMeths(e,t))}return e._getDocumentPropOwnerName=function(e,t){return e.hasOwnProperty(t)?"Document":"HTMLDocument"},e.prototype.getStoragesPropsOwner=function(e){return this.isStoragePropsLocatedInProto?e.Window.prototype:e},e.prototype.refreshWorkerMeths=function(e){this.importScripts=e.importScripts},e.prototype.refreshDocumentMeths=function(t,r){t=t||document,r=r||window;var n=r.Document.prototype;this.createDocumentFragment=n.createDocumentFragment,this.createElement=n.createElement,this.createElementNS=n.createElementNS,this.createTextNode=n.createTextNode,this.documentOpenPropOwnerName=e._getDocumentPropOwnerName(n,"open"),this.documentClosePropOwnerName=e._getDocumentPropOwnerName(n,"close"),this.documentWritePropOwnerName=e._getDocumentPropOwnerName(n,"write"),this.documentWriteLnPropOwnerName=e._getDocumentPropOwnerName(n,"writeln"),this.documentOpen=r[this.documentOpenPropOwnerName].prototype.open,this.documentClose=r[this.documentClosePropOwnerName].prototype.close,this.documentWrite=r[this.documentWritePropOwnerName].prototype.write,this.documentWriteLn=r[this.documentWriteLnPropOwnerName].prototype.writeln,this.elementFromPoint=n.elementFromPoint,this.caretRangeFromPoint=n.caretRangeFromPoint,this.caretPositionFromPoint=n.caretPositionFromPoint,this.getElementById=n.getElementById,this.getElementsByClassName=n.getElementsByClassName,this.getElementsByName=n.getElementsByName,this.getElementsByTagName=n.getElementsByTagName,this.querySelector=n.querySelector,this.querySelectorAll=n.querySelectorAll,this.createHTMLDocument=r.DOMImplementation.prototype.createHTMLDocument,t.registerElement&&(this.registerElement=n.registerElement),r.EventTarget||(this.documentAddEventListener=n.addEventListener,this.documentRemoveEventListener=n.removeEventListener),this.documentCreateEvent=n.createEvent,this.documentCreateTouch=n.createTouch,this.documentCreateTouchList=n.createTouchList,this.documentCookiePropOwnerName=e._getDocumentPropOwnerName(n,"cookie");var o=r.Object.getOwnPropertyDescriptor(r[this.documentCookiePropOwnerName].prototype,"cookie");if(!this.isNativeCode(o.get)||!this.isNativeCode(o.get.toString))try{var i=r.parent["%hammerhead%"].nativeMethods;o.get=i.documentCookieGetter,o.set=i.documentCookieSetter}catch(a){}this.documentReferrerGetter=r.Object.getOwnPropertyDescriptor(n,"referrer").get,this.documentStyleSheetsGetter=r.Object.getOwnPropertyDescriptor(n,"styleSheets").get,this.documentActiveElementGetter=r.Object.getOwnPropertyDescriptor(n,"activeElement").get,this.documentCookieGetter=o.get,this.documentCookieSetter=o.set;var s=r.Object.getOwnPropertyDescriptor(n,"documentURI");s&&(this.documentDocumentURIGetter=s.get);var c=r.Object.getOwnPropertyDescriptor(n,"title");this.documentTitleGetter=c.get,this.documentTitleSetter=c.set},e.prototype.refreshElementMeths=function(e,t){var r=this;t=t||window;var n=function(t){return r.createElement.call(e||document,t)},o=n("div"),i=function(t){return r.createTextNode.call(e||document,t)},a=i("text");if(this.appendChild=t.Node.prototype.appendChild,this.append=t.Element.prototype.append,this.prepend=t.Element.prototype.prepend,this.after=t.Element.prototype.after,this.attachShadow=t.Element.prototype.attachShadow,this.replaceChild=o.replaceChild,this.cloneNode=o.cloneNode,this.elementGetElementsByClassName=o.getElementsByClassName,this.elementGetElementsByTagName=o.getElementsByTagName,this.elementQuerySelector=o.querySelector,this.elementQuerySelectorAll=o.querySelectorAll,this.getAttribute=o.getAttribute,this.getAttributeNS=o.getAttributeNS,this.getAttributeNode=o.getAttributeNode,this.getAttributeNodeNS=o.getAttributeNodeNS,this.insertBefore=o.insertBefore,this.insertCell=n("tr").insertCell,this.insertTableRow=n("table").insertRow,this.insertTBodyRow=n("tbody").insertRow,this.removeAttribute=o.removeAttribute,this.removeAttributeNS=o.removeAttributeNS,this.removeAttributeNode=o.removeAttributeNode,this.removeChild=t.Node.prototype.removeChild,this.remove=t.Element.prototype.remove,this.elementReplaceWith=t.Element.prototype.replaceWith,this.setAttribute=o.setAttribute,this.setAttributeNS=o.setAttributeNS,this.hasAttribute=o.hasAttribute,this.hasAttributeNS=o.hasAttributeNS,this.hasAttributes=o.hasAttributes,this.anchorToString=t.HTMLAnchorElement.prototype.toString,this.matches=o.matches||o.msMatchesSelector,this.closest=o.closest,this.insertAdjacentMethodsOwner=t.Element.prototype.hasOwnProperty("insertAdjacentElement")?t.Element.prototype:t.HTMLElement.prototype,this.insertAdjacentElement=this.insertAdjacentMethodsOwner.insertAdjacentElement,this.insertAdjacentHTML=this.insertAdjacentMethodsOwner.insertAdjacentHTML,this.insertAdjacentText=this.insertAdjacentMethodsOwner.insertAdjacentText,this.appendData=a.appendData,!this.isNativeCode(this.elementGetElementsByTagName))try{var s=t.parent["%hammerhead%"].nativeMethods;this.elementGetElementsByTagName=s.elementGetElementsByTagName}catch(c){}t.EventTarget?(this.addEventListener=t.EventTarget.prototype.addEventListener,this.removeEventListener=t.EventTarget.prototype.removeEventListener,this.dispatchEvent=t.EventTarget.prototype.dispatchEvent):(this.addEventListener=o.addEventListener,this.removeEventListener=o.removeEventListener,this.dispatchEvent=o.dispatchEvent),this.blur=o.blur,this.click=o.click,this.focus=o.focus,this.select=window.TextRange?n("body").createTextRange().select:null,this.setSelectionRange=n("input").setSelectionRange,this.textAreaSetSelectionRange=n("textarea").setSelectionRange,this.svgFocus=t.SVGElement?t.SVGElement.prototype.focus:this.focus,this.svgBlur=t.SVGElement?t.SVGElement.prototype.blur:this.blur,this.htmlElementStylePropOwnerName=t.Element.prototype.hasOwnProperty("style")?"Element":"HTMLElement";var l=t.Object.getOwnPropertyDescriptor(t[this.htmlElementStylePropOwnerName].prototype,"style");this.htmlElementStyleGetter=l.get,l.set&&(this.htmlElementStyleSetter=l.set);var u=t.Object.getOwnPropertyDescriptor(t.CSSStyleDeclaration.prototype,"cssText");this.styleCssTextGetter=u.get,this.styleCssTextSetter=u.set},e.prototype._refreshGettersAndSetters=function(e,t){void 0===t&&(t=!1),e=e||window;var r=e.constructor.prototype;this.isEventPropsLocatedInProto=r.hasOwnProperty("onerror");var n=this.isEventPropsLocatedInProto?r:e,o=e.Object.getOwnPropertyDescriptor(n,"onbeforeunload"),i=e.Object.getOwnPropertyDescriptor(n,"onunload"),a=e.Object.getOwnPropertyDescriptor(n,"onpagehide"),s=e.Object.getOwnPropertyDescriptor(n,"onmessage"),c=e.Object.getOwnPropertyDescriptor(n,"onerror"),l=e.Object.getOwnPropertyDescriptor(n,"onhashchange");this.winOnBeforeUnloadSetter=o&&o.set,this.winOnUnloadSetter=i&&i.set,this.winOnPageHideSetter=a&&a.set,this.winOnMessageSetter=s&&s.set,this.winOnErrorSetter=c&&c.set,this.winOnHashChangeSetter=l&&l.set;var u=e.Object.getOwnPropertyDescriptor(n,"onunhandledrejection");if(u&&(this.winOnUnhandledRejectionSetter=u.set),e.WebSocket){var p=e.Object.getOwnPropertyDescriptor(e.WebSocket.prototype,"url");p&&p.get&&p.configurable&&(this.webSocketUrlGetter=p.get)}this.messageEventOriginGetter=e.Object.getOwnPropertyDescriptor(e.MessageEvent.prototype,"origin").get,e.PerformanceNavigationTiming&&(this.performanceEntryNameGetter=e.Object.getOwnPropertyDescriptor(e.PerformanceEntry.prototype,"name").get);var h=e.Object.getOwnPropertyDescriptor(e.MessageEvent.prototype,"data");if(h&&(this.messageEventDataGetter=h.get),e.fetch&&(this.responseStatusGetter=e.Object.getOwnPropertyDescriptor(e.Response.prototype,"status").get,this.responseTypeGetter=e.Object.getOwnPropertyDescriptor(e.Response.prototype,"type").get,this.responseUrlGetter=e.Object.getOwnPropertyDescriptor(e.Response.prototype,"url").get,this.requestUrlGetter=e.Object.getOwnPropertyDescriptor(e.Request.prototype,"url").get,this.requestReferrerGetter=e.Object.getOwnPropertyDescriptor(e.Request.prototype,"referrer").get),e.XMLHttpRequest){var d=e.Object.getOwnPropertyDescriptor(e.XMLHttpRequest.prototype,"responseURL");d&&(this.xhrResponseURLGetter=d.get)}if(e.Window){this.isStoragePropsLocatedInProto=e.Window.prototype.hasOwnProperty("localStorage");var f=this.getStoragesPropsOwner(e);this.winLocalStorageGetter=e.Object.getOwnPropertyDescriptor(f,"localStorage").get,this.winSessionStorageGetter=e.Object.getOwnPropertyDescriptor(f,"sessionStorage").get}if(!t){this.storageGetItem=e.Storage.prototype.getItem,this.storageSetItem=e.Storage.prototype.setItem,this.storageRemoveItem=e.Storage.prototype.removeItem,this.storageClear=e.Storage.prototype.clear,this.storageKey=e.Storage.prototype.key,this.storageLengthGetter=e.Object.getOwnPropertyDescriptor(e.Storage.prototype,"length");var m=e.Object.getOwnPropertyDescriptor(e.HTMLObjectElement.prototype,"data"),g=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"type"),v=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"value"),y=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"disabled"),_=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"required"),E=e.Object.getOwnPropertyDescriptor(e.HTMLTextAreaElement.prototype,"value"),S=e.Object.getOwnPropertyDescriptor(e.HTMLImageElement.prototype,"src"),b=e.Object.getOwnPropertyDescriptor(e.HTMLImageElement.prototype,"srcset"),w=e.Object.getOwnPropertyDescriptor(e.HTMLScriptElement.prototype,"src"),x=e.Object.getOwnPropertyDescriptor(e.HTMLScriptElement.prototype,"integrity"),C=e.Object.getOwnPropertyDescriptor(e.HTMLEmbedElement.prototype,"src"),A=e.Object.getOwnPropertyDescriptor(e.HTMLSourceElement.prototype,"src"),T=e.Object.getOwnPropertyDescriptor(e.HTMLMediaElement.prototype,"src"),I=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"src"),P=e.Object.getOwnPropertyDescriptor(e.HTMLFrameElement.prototype,"src"),N=e.Object.getOwnPropertyDescriptor(e.HTMLIFrameElement.prototype,"src"),O=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"href"),k=e.Object.getOwnPropertyDescriptor(e.HTMLLinkElement.prototype,"href"),L=e.Object.getOwnPropertyDescriptor(e.HTMLLinkElement.prototype,"integrity"),D=e.Object.getOwnPropertyDescriptor(e.HTMLLinkElement.prototype,"rel"),M=e.Object.getOwnPropertyDescriptor(e.HTMLLinkElement.prototype,"as"),R=e.Object.getOwnPropertyDescriptor(e.HTMLAreaElement.prototype,"href"),j=e.Object.getOwnPropertyDescriptor(e.HTMLBaseElement.prototype,"href"),F=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"host"),H=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"hostname"),U=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"pathname"),B=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"port"),V=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"protocol"),W=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"search"),G=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"target"),q=e.Object.getOwnPropertyDescriptor(e.HTMLFormElement.prototype,"target"),z=e.Object.getOwnPropertyDescriptor(e.HTMLAreaElement.prototype,"target"),K=e.Object.getOwnPropertyDescriptor(e.HTMLBaseElement.prototype,"target"),$=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"formTarget"),X=e.Object.getOwnPropertyDescriptor(e.HTMLButtonElement.prototype,"formTarget"),Y=e.Object.getOwnPropertyDescriptor(e.SVGImageElement.prototype,"href"),Q=e.Object.getOwnPropertyDescriptor(e.SVGAnimatedString.prototype,"animVal"),J=e.Object.getOwnPropertyDescriptor(e.SVGAnimatedString.prototype,"baseVal"),Z=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"autocomplete"),ee=e.Object.getOwnPropertyDescriptor(e.HTMLFormElement.prototype,"action"),te=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"formAction"),re=e.Object.getOwnPropertyDescriptor(e.HTMLButtonElement.prototype,"formAction"),ne=e.Object.getOwnPropertyDescriptor(e.Node.prototype,"textContent"),oe=e.Object.getOwnPropertyDescriptor(e.HTMLElement.prototype,"innerText"),ie=e.Object.getOwnPropertyDescriptor(e.HTMLScriptElement.prototype,"text"),ae=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"text"),se=e.Object.getOwnPropertyDescriptor(e.HTMLTitleElement.prototype,"text"),ce=e.Object.getOwnPropertyDescriptor(e.HTMLIFrameElement.prototype,"sandbox"),le=e.Object.getOwnPropertyDescriptor(e.HTMLMetaElement.prototype,"httpEquiv"),ue=e.Object.getOwnPropertyDescriptor(e,"origin");ue&&(this.windowOriginGetter=ue.get,this.windowOriginSetter=ue.set),y&&(this.inputDisabledSetter=y.set,this.inputDisabledGetter=y.get),this.elementHTMLPropOwnerName=e.Element.prototype.hasOwnProperty("innerHTML")?"Element":"HTMLElement";var pe=e.Object.getOwnPropertyDescriptor(e[this.elementHTMLPropOwnerName].prototype,"innerHTML"),he=e.Object.getOwnPropertyDescriptor(e[this.elementHTMLPropOwnerName].prototype,"outerHTML");this.objectDataSetter=m.set,this.inputTypeSetter=g.set,this.inputValueSetter=v.set,this.inputRequiredSetter=_.set,this.textAreaValueSetter=E.set,this.imageSrcSetter=S.set,this.scriptSrcSetter=w.set,this.embedSrcSetter=C.set,this.sourceSrcSetter=A.set,this.mediaSrcSetter=T.set,this.inputSrcSetter=I.set,this.frameSrcSetter=P.set,this.iframeSrcSetter=N.set,this.anchorHrefSetter=O.set,this.linkHrefSetter=k.set,this.linkRelSetter=D.set,this.linkAsSetter=M&&M.set,this.areaHrefSetter=R.set,this.baseHrefSetter=j.set,this.anchorHostSetter=F.set,this.anchorHostnameSetter=H.set,this.anchorPathnameSetter=U.set,this.anchorPortSetter=B.set,this.anchorProtocolSetter=V.set,this.anchorSearchSetter=W.set,this.anchorTargetSetter=G.set,this.formTargetSetter=q.set,this.areaTargetSetter=z.set,this.baseTargetSetter=K.set,this.inputFormTargetSetter=$.set,this.buttonFormTargetSetter=X.set,this.svgAnimStrBaseValSetter=J.set,this.inputAutocompleteSetter=Z.set,this.formActionSetter=ee.set,this.inputFormActionSetter=te.set,this.buttonFormActionSetter=re.set,this.iframeSandboxSetter=ce.set,this.metaHttpEquivSetter=le.set,this.htmlElementOnloadSetter=e.Object.getOwnPropertyDescriptor(e.HTMLElement.prototype,"onload").set,this.nodeTextContentSetter=ne.set,this.htmlElementInnerTextSetter=oe.set,this.scriptTextSetter=ie.set,this.anchorTextSetter=ae.set,this.elementInnerHTMLSetter=pe.set,this.elementOuterHTMLSetter=he.set,x&&L&&(this.scriptIntegritySetter=x.set,this.linkIntegritySetter=L.set),this.titleElementTextSetter=se.set,this.elementClassListPropOwnerName=e.Element.prototype.hasOwnProperty("classList")?"Element":"HTMLElement",this.elementClassListGetter=e.Object.getOwnPropertyDescriptor(e[this.elementClassListPropOwnerName].prototype,"classList").get,this.htmlCollectionLengthGetter=e.Object.getOwnPropertyDescriptor(e.HTMLCollection.prototype,"length").get,this.nodeListLengthGetter=e.Object.getOwnPropertyDescriptor(e.NodeList.prototype,"length").get,this.elementChildElementCountGetter=e.Object.getOwnPropertyDescriptor(e.Element.prototype,"childElementCount").get,this.inputFilesGetter=e.Object.getOwnPropertyDescriptor(e.HTMLInputElement.prototype,"files").get,this.styleSheetHrefGetter=e.Object.getOwnPropertyDescriptor(e.StyleSheet.prototype,"href").get,this.objectDataGetter=m.get,this.inputTypeGetter=g.get,this.inputValueGetter=v.get,this.inputRequiredGetter=_.get,this.textAreaValueGetter=E.get,this.imageSrcGetter=S.get,this.scriptSrcGetter=w.get,this.embedSrcGetter=C.get,this.sourceSrcGetter=A.get,this.mediaSrcGetter=T.get,this.inputSrcGetter=I.get,this.frameSrcGetter=P.get,this.iframeSrcGetter=N.get,this.anchorHrefGetter=O.get,this.linkHrefGetter=k.get,this.linkRelGetter=D.get,this.areaHrefGetter=R.get,this.baseHrefGetter=j.get,this.anchorHostGetter=F.get,this.anchorHostnameGetter=H.get,this.anchorPathnameGetter=U.get,this.anchorPortGetter=B.get,this.anchorProtocolGetter=V.get,this.anchorSearchGetter=W.get,this.anchorTargetGetter=G.get,this.formTargetGetter=q.get,this.areaTargetGetter=z.get,this.baseTargetGetter=K.get,this.inputFormTargetGetter=$.get,this.buttonFormTargetGetter=X.get,this.svgImageHrefGetter=Y.get,this.svgAnimStrAnimValGetter=Q.get,this.svgAnimStrBaseValGetter=J.get,this.inputAutocompleteGetter=Z.get,this.formActionGetter=ee.get,this.inputFormActionGetter=te.get,this.buttonFormActionGetter=re.get,this.iframeSandboxGetter=ce.get,this.metaHttpEquivGetter=le.get,this.contentWindowGetter=e.Object.getOwnPropertyDescriptor(e.HTMLIFrameElement.prototype,"contentWindow").get,this.contentDocumentGetter=e.Object.getOwnPropertyDescriptor(e.HTMLIFrameElement.prototype,"contentDocument").get,this.frameContentWindowGetter=e.Object.getOwnPropertyDescriptor(e.HTMLFrameElement.prototype,"contentWindow").get,this.nodeTextContentGetter=ne.get,this.htmlElementInnerTextGetter=oe.get,this.scriptTextGetter=ie.get,this.anchorTextGetter=ae.get,this.elementInnerHTMLGetter=pe.get,this.elementOuterHTMLGetter=he.get,this.nodeFirstChildGetter=e.Object.getOwnPropertyDescriptor(e.Node.prototype,"firstChild").get,this.nodeLastChildGetter=e.Object.getOwnPropertyDescriptor(e.Node.prototype,"lastChild").get,this.nodeNextSiblingGetter=e.Object.getOwnPropertyDescriptor(e.Node.prototype,"nextSibling").get,this.nodePrevSiblingGetter=e.Object.getOwnPropertyDescriptor(e.Node.prototype,"previousSibling").get,this.nodeParentNodeGetter=e.Object.getOwnPropertyDescriptor(e.Node.prototype,"parentNode").get,this.nodeChildNodesGetter=e.Object.getOwnPropertyDescriptor(e.Node.prototype,"childNodes").get,this.elementFirstElementChildGetter=e.Object.getOwnPropertyDescriptor(e.Element.prototype,"firstElementChild").get,this.elementLastElementChildGetter=e.Object.getOwnPropertyDescriptor(e.Element.prototype,"lastElementChild").get,this.elementNextElementSiblingGetter=e.Object.getOwnPropertyDescriptor(e.Element.prototype,"nextElementSibling").get,this.elementPrevElementSiblingGetter=e.Object.getOwnPropertyDescriptor(e.Element.prototype,"previousElementSibling").get,x&&L&&(this.scriptIntegrityGetter=x.get,this.linkIntegrityGetter=L.get);var de=e.Element.prototype.hasOwnProperty("children")?e.Element.prototype:e.HTMLElement.prototype;this.elementChildrenGetter=e.Object.getOwnPropertyDescriptor(de,"children").get;var fe=e.Object.getOwnPropertyDescriptor(e.HTMLAnchorElement.prototype,"origin");fe&&(this.anchorOriginGetter=fe.get);var me=e.Object.getOwnPropertyDescriptor(e.HTMLIFrameElement.prototype,"srcdoc");me&&(this.iframeSrcdocGetter=me.get,this.iframeSrcdocSetter=me.set);var ge=e.Object.getOwnPropertyDescriptor(e.CSSStyleSheet.prototype,"href");ge&&(this.cssStyleSheetHrefGetter=ge.get);var ve=e.Object.getOwnPropertyDescriptor(e.Node.prototype,"baseURI");ve&&(this.nodeBaseURIGetter=ve.get),this.elementAttributesPropOwnerName=e.Element.prototype.hasOwnProperty("attributes")?"Element":"Node",this.elementAttributesGetter=e.Object.getOwnPropertyDescriptor(e[this.elementAttributesPropOwnerName].prototype,"attributes").get;var ye=e.Object.getOwnPropertyDescriptor(e.HTMLHtmlElement.prototype,"manifest");ye&&(this.htmlManifestGetter=ye.get,this.htmlManifestSetter=ye.set),me&&(this.imageSrcsetSetter=b.set,this.imageSrcsetGetter=b.get),this.titleElementTextGetter=se.get,this.mutationRecordNextSiblingGetter=e.Object.getOwnPropertyDescriptor(e.MutationRecord.prototype,"nextSibling").get,this.mutationRecordPrevSiblingGetter=e.Object.getOwnPropertyDescriptor(e.MutationRecord.prototype,"previousSibling").get}},e.prototype.refreshWindowMeths=function(e,t){void 0===t&&(t=!1),e=e||window;var r=e.constructor.prototype;if(this.eval=e.eval,this.formSubmit=e.HTMLFormElement&&e.HTMLFormElement.prototype.submit,this.documentFragmentQuerySelector=e.DocumentFragment&&e.DocumentFragment.prototype.querySelector,this.documentFragmentQuerySelectorAll=e.DocumentFragment&&e.DocumentFragment.prototype.querySelectorAll,this.preventDefault=e.Event.prototype.preventDefault,this.historyPushState=e.history&&e.history.pushState,
this.historyReplaceState=e.history&&e.history.replaceState,this.postMessage=e.postMessage||r.postMessage,this.windowOpen=e.open||r.open,this.setTimeout=e.setTimeout||r.setTimeout,this.setInterval=e.setInterval||r.setInterval,this.clearTimeout=e.clearTimeout||r.clearTimeout,this.clearInterval=e.clearInterval||r.clearInterval,this.registerProtocolHandler=e.navigator.registerProtocolHandler,this.sendBeacon=e.Navigator&&e.Navigator.prototype.sendBeacon,e.XMLHttpRequest){var n=(e.EventTarget||e.XMLHttpRequest).prototype;this.xhrAbort=e.XMLHttpRequest.prototype.abort,this.xhrOpen=e.XMLHttpRequest.prototype.open,this.xhrSend=e.XMLHttpRequest.prototype.send,this.xhrAddEventListener=n.addEventListener,this.xhrRemoveEventListener=n.removeEventListener,this.xhrDispatchEvent=n.dispatchEvent,this.xhrGetResponseHeader=e.XMLHttpRequest.prototype.getResponseHeader,this.xhrGetAllResponseHeaders=e.XMLHttpRequest.prototype.getAllResponseHeaders,this.xhrSetRequestHeader=e.XMLHttpRequest.prototype.setRequestHeader,this.xhrOverrideMimeType=e.XMLHttpRequest.prototype.overrideMimeType}try{this.registerServiceWorker=e.navigator.serviceWorker.register,this.getRegistrationServiceWorker=e.navigator.serviceWorker.getRegistration}catch(o){this.registerServiceWorker=null,this.getRegistrationServiceWorker=null}this.createContextualFragment=e.Range&&e.Range.prototype.createContextualFragment;var i=e.performance;if(i){var a=e.performance.now||e.Performance.prototype.now;this.performanceNow=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.apply(i,e)}}if(this.fetch=e.fetch,this.Request=e.Request,e.Headers&&(this.Headers=e.Headers,this.headersSet=e.Headers.prototype.set,this.headersGet=e.Headers.prototype.get,this.headersDelete=e.Headers.prototype["delete"],this.headersEntries=e.Headers.prototype.entries,this.headersForEach=e.Headers.prototype.forEach,this.headersValues=e.Headers.prototype.values),this.windowAddEventListener=e.addEventListener||r.addEventListener,this.windowRemoveEventListener=e.removeEventListener||r.removeEventListener,this.windowDispatchEvent=e.dispatchEvent,this.WindowPointerEvent=e.PointerEvent||r.PointerEvent,this.WindowMSPointerEvent=e.MSPointerEvent||r.MSPointerEvent,this.WindowTouch=e.Touch||r.Touch,this.WindowTouchEvent=e.TouchEvent||r.TouchEvent,this.WindowKeyboardEvent=e.KeyboardEvent||r.KeyboardEvent,this.WindowFocusEvent=e.FocusEvent||r.FocusEvent,this.WindowTextEvent=e.TextEvent||r.TextEvent,this.WindowInputEvent=e.InputEvent||r.InputEvent,this.WindowMouseEvent=e.MouseEvent||r.MouseEvent,this.eventTargetGetter=e.Object.getOwnPropertyDescriptor(e.Event.prototype,"target").get,this.canvasContextDrawImage=e.CanvasRenderingContext2D&&e.CanvasRenderingContext2D.prototype.drawImage,this.formDataAppend=e.FormData&&e.FormData.prototype.append,this.date=e.Date,this.dateNow=e.Date.now,this.math=e.Math,this.mathRandom=e.Math.random,this.objectToString=e.Object.prototype.toString,this.objectAssign=e.Object.assign,this.objectKeys=e.Object.keys,this.objectDefineProperty=e.Object.defineProperty,this.objectDefineProperties=e.Object.defineProperties,this.objectCreate=e.Object.create,this.objectIsExtensible=e.Object.isExtensible,this.objectIsFrozen=e.Object.isFrozen,this.objectGetOwnPropertyDescriptor=e.Object.getOwnPropertyDescriptor,this.objectHasOwnProperty=e.Object.hasOwnProperty,this.objectGetOwnPropertyNames=e.Object.getOwnPropertyNames,this.objectGetPrototypeOf=e.Object.getPrototypeOf,this.objectSetPrototypeOf=e.Object.setPrototypeOf,this.objectGetOwnPropertySymbols=e.Object.getOwnPropertySymbols,this.arraySlice=e.Array.prototype.slice,this.arrayConcat=e.Array.prototype.concat,this.arrayFilter=e.Array.prototype.filter,this.arrayFind=e.Array.prototype.find,this.arrayMap=e.Array.prototype.map,this.arrayJoin=e.Array.prototype.join,this.arraySplice=e.Array.prototype.splice,this.arrayUnshift=e.Array.prototype.unshift,this.arrayForEach=e.Array.prototype.forEach,this.arrayIndexOf=e.Array.prototype.indexOf,this.arraySome=e.Array.prototype.some,this.arrayEvery=e.Array.prototype.every,this.arrayReverse=e.Array.prototype.reverse,this.arrayReduce=e.Array.prototype.reduce,this.arrayFrom=e.Array.from,this.isArray=e.Array.isArray,this.DOMParserParseFromString=e.DOMParser&&e.DOMParser.prototype.parseFromString,this.arrayBufferIsView=e.ArrayBuffer.prototype.constructor.isView,!t){this.tokenListAdd=e.DOMTokenList.prototype.add,this.tokenListRemove=e.DOMTokenList.prototype.remove,this.tokenListReplace=e.DOMTokenList.prototype.replace,this.tokenListSupports=e.DOMTokenList.prototype.supports,this.tokenListToggle=e.DOMTokenList.prototype.toggle,this.tokenListContains=e.DOMTokenList.prototype.contains;var s=e.Object.getOwnPropertyDescriptor(e.DOMTokenList.prototype,"value");s&&(this.tokenListValueSetter=s.set),this.styleGetPropertyValue=e.CSSStyleDeclaration.prototype.getPropertyValue,this.styleSetProperty=e.CSSStyleDeclaration.prototype.setProperty,this.styleRemoveProperty=e.CSSStyleDeclaration.prototype.removeProperty,this.styleInsertRule=e.CSSStyleSheet.prototype.insertRule,this.scrollTo=e.scrollTo}e.Promise&&(this.promiseThen=e.Promise.prototype.then,this.promiseReject=e.Promise.reject),this.console=e.console,this.console&&(this.consoleMeths={log:e.console.log,warn:e.console.warn,error:e.console.error,info:e.console.info}),this.crypto=e.crypto||e.msCrypto,this.cryptoGetRandomValues=this.crypto&&this.crypto.getRandomValues,this.refreshClasses(e),this._refreshGettersAndSetters(e,t)},e.prototype.refreshClasses=function(e){this.windowClass=e.Window,this.documentClass=e.Document,this.locationClass=e.Location,this.elementClass=e.Element,this.svgElementClass=e.SVGElement,this.Worker=e.Worker,this.MessageChannel=e.MessageChannel,this.Array=e.Array,this.ArrayBuffer=e.ArrayBuffer,this.Uint8Array=e.Uint8Array,this.Uint16Array=e.Uint16Array,this.Uint32Array=e.Uint32Array,this.DataView=e.DataView,this.Blob=e.Blob,this.XMLHttpRequest=e.XMLHttpRequest,this.Image=e.Image,this.Function=e.Function,this.functionToString=e.Function.prototype.toString,this.functionBind=e.Function.prototype.bind,this.Error=e.Error,this.FontFace=e.FontFace,this.StorageEvent=e.StorageEvent,this.MutationObserver=e.MutationObserver,this.EventSource=e.EventSource,this.Proxy=e.Proxy,this.WebSocket=e.WebSocket,this.HTMLCollection=e.HTMLCollection,this.NodeList=e.NodeList,this.Node=e.Node,this.URL=e.URL,this.DataTransfer=e.DataTransfer,this.DataTransferItemList=e.DataTransferItemList,this.DataTransferItem=e.DataTransferItem,this.FileList=e.FileList,e.File&&O(e.File)&&(this.File=e.File)},e.prototype.refreshElectronMeths=function(e){return(!this.createScript||!w(e.createScript))&&(this.createScript=e.createScript,this.runInDebugContext=e.runInDebugContext,this.runInContext=e.runInContext,this.runInNewContext=e.runInNewContext,this.runInThisContext=e.runInThisContext,!0)},e._ensureDocumentMethodRestore=function(e,t,r,n){t[r]=n,e[r]!==t[r]&&(e[r]=n)},e.prototype.restoreDocumentMeths=function(t,r){var n=t.Document.prototype;e._ensureDocumentMethodRestore(r,n,"createDocumentFragment",this.createDocumentFragment),e._ensureDocumentMethodRestore(r,n,"createElement",this.createElement),e._ensureDocumentMethodRestore(r,n,"createElementNS",this.createElementNS),e._ensureDocumentMethodRestore(r,n,"elementFromPoint",this.elementFromPoint),e._ensureDocumentMethodRestore(r,n,"caretRangeFromPoint",this.caretRangeFromPoint),e._ensureDocumentMethodRestore(r,n,"caretPositionFromPoint",this.caretPositionFromPoint),e._ensureDocumentMethodRestore(r,n,"getElementById",this.getElementById),e._ensureDocumentMethodRestore(r,n,"getElementsByClassName",this.getElementsByClassName),e._ensureDocumentMethodRestore(r,n,"getElementsByName",this.getElementsByName),e._ensureDocumentMethodRestore(r,n,"getElementsByTagName",this.getElementsByTagName),e._ensureDocumentMethodRestore(r,n,"querySelector",this.querySelector),e._ensureDocumentMethodRestore(r,n,"querySelectorAll",this.querySelectorAll),t.EventTarget||(e._ensureDocumentMethodRestore(r,n,"addEventListener",this.documentAddEventListener),e._ensureDocumentMethodRestore(r,n,"removeEventListener",this.documentRemoveEventListener)),e._ensureDocumentMethodRestore(r,n,"createEvent",this.documentCreateEvent),e._ensureDocumentMethodRestore(r,n,"createTouch",this.documentCreateTouch),e._ensureDocumentMethodRestore(r,n,"createTouchList",this.documentCreateTouchList),e._ensureDocumentMethodRestore(r,t[this.documentOpenPropOwnerName].prototype,"open",this.documentOpen),e._ensureDocumentMethodRestore(r,t[this.documentClosePropOwnerName].prototype,"close",this.documentClose),e._ensureDocumentMethodRestore(r,t[this.documentWritePropOwnerName].prototype,"write",this.documentWrite),e._ensureDocumentMethodRestore(r,t[this.documentWriteLnPropOwnerName].prototype,"writeln",this.documentWriteLn)},e.prototype.refreshIfNecessary=function(e,t){var r=this,n=function(e){try{return e()}catch(t){return!0}},o=n(function(){return!e.createElement||w(document.createElement)}),i=n(function(){var t=r.createElement.call(e,"div");return w(t.getAttribute)}),a=n(function(){return r.setTimeout.call(t,function(){},0),w(t.XMLHttpRequest.prototype.open)});o&&this.refreshDocumentMeths(e,t),i&&this.refreshElementMeths(e,t),a&&this.refreshWindowMeths(t)},e.prototype.isNativeCode=function(e){return Kc.test(this.functionToString.call(e))},e}(),Xc=new $c,Yc=function(){function e(){this.eventsListeners=Xc.objectCreate(null)}return e.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this.eventsListeners[e];if(n)for(var o=0;n[o];){if(Mc)try{n[o].toString()}catch(i){Xc.arraySplice.call(n,o,1);continue}n[o++].apply(this,t)}},e.prototype.off=function(e,t){var r=this.eventsListeners[e];r&&(this.eventsListeners[e]=Xc.arrayFilter.call(r,function(e){return e!==t}))},e.prototype.on=function(e,t){return this.eventsListeners[e]=this.eventsListeners[e]||[],this.eventsListeners[e].indexOf(t)===-1&&this.eventsListeners[e].push(t),t},e}(),Qc={storedAttrPostfix:"-hammerhead-stored-value",hoverPseudoClass:"data-hammerhead-hovered",focusPseudoClass:"data-hammerhead-focused",uploadInfoHiddenInputName:"hammerhead|upload-info-hidden-input-name"},Jc="-hammerhead-shadow-ui",Zc={postfix:Jc,charset:"charset"+Jc,script:"script"+Jc,selfRemovingScript:"self-removing-script"+Jc,uiStylesheet:"ui-stylesheet"+Jc},el=/^\s*([\w-]+?:)?(?:\/\/(?:([^/]+)@)?(([^/%?;#: ]*)(?::(\d+))?))?(.*?)\s*$/,tl=/^([\w-]+?:)(\/\/|[^\\/]|$)/,rl=/(\?.+|#[^#]*)$/,nl=/^\/([^/]+?)\/([\S\s]+)$/,ol=/^https?:/,il=/^file:/i,al=/^http(s)?:\/\//,sl=/^s\*/,cl=/^(.+?[;,]\s*(?:url\s*=\s*)?(['"])?)(.+?)?(\2)?$/i,ll=/^(?:https?|file):/i,ul=/^#/,pl="!",hl="*",dl=/\/$/,fl="about:blank",ml="about:error",gl=[fl,ml],vl="80",yl="443";!function(e){e[e.include=0]="include",e[e.sameOrigin=1]="sameOrigin",e[e.omit=2]="omit",e[e.unknown=3]="unknown"}(fc||(fc={}));var _l={protocol:"about:",host:"",hostname:"",port:"",partAfterHost:""},El=[{name:"isIframe",flag:"i"},{name:"isForm",flag:"f"},{name:"isScript",flag:"s"},{name:"isEventSource",flag:"e"},{name:"isHtmlImport",flag:"h"},{name:"isWebSocket",flag:"w"},{name:"isServiceWorker",flag:"c"},{name:"isAjax",flag:"a"},{name:"isObject",flag:"o"}],Sl=Object.freeze({__proto__:null,SUPPORTED_PROTOCOL_RE:ll,HASH_RE:ul,REQUEST_DESCRIPTOR_VALUES_SEPARATOR:pl,REQUEST_DESCRIPTOR_SESSION_INFO_VALUES_SEPARATOR:hl,TRAILING_SLASH_RE:dl,SPECIAL_BLANK_PAGE:fl,SPECIAL_ERROR_PAGE:ml,SPECIAL_PAGES:gl,HTTP_DEFAULT_PORT:vl,HTTPS_DEFAULT_PORT:yl,get Credentials(){return fc},parseResourceType:L,getResourceTypeString:D,restoreShortOrigin:R,isSubDomain:j,sameOriginCheck:F,getURLString:U,getProxyUrl:B,getDomain:V,parseProxyUrl:G,getPathname:q,parseUrl:z,isSupportedProtocol:K,resolveUrlAsDest:$,formatUrl:X,handleUrlsSet:Y,correctMultipleSlashes:Q,processSpecialChars:J,ensureTrailingSlash:Z,isSpecialPage:ee,isRelativeUrl:te,isValidUrl:ne,ensureOriginTrailingSlash:oe,omitDefaultPort:ie,prepareUrl:ae,updateScriptImportUrls:se,processMetaRefreshContent:ce}),bl="hammerhead|document-url-resolver",wl={_createResolver:function(e){var t=Xc.createHTMLDocument.call(e.implementation,"title"),r=Xc.createElement.call(t,"a"),n=Xc.createElement.call(t,"base");return Xc.appendChild.call(t.body,r),Xc.appendChild.call(t.head,n),t},_getResolver:function(e){return e[bl]||Xc.objectDefineProperty(e,bl,{value:this._createResolver(e),writable:!0}),e[bl]},_isNestedIframeWithoutSrc:function(e){if(!e||!e.parent||e.parent===e||e.parent.parent===e.parent)return!1;var t=Nt(window);return!!t&&Jt(t)},init:function(e){this.updateBase(Tl(),e)},getResolverElement:function(e){return Xc.nodeFirstChildGetter.call(this._getResolver(e).body)},resolve:function(e,t){var r=this.getResolverElement(t),n=null;if(null===e)Xc.removeAttribute.call(r,"href");else{Xc.anchorHrefSetter.call(r,e),n=Xc.anchorHrefGetter.call(r);var o=e&&(!n||"/"===n.charAt(0))&&this._isNestedIframeWithoutSrc(t.defaultView);if(o)return this.resolve(e,window.parent.document)}return Z(e,n)},updateBase:function(e,t){if(!this.proxyless){var r=this._getResolver(t),n=Xc.elementGetElementsByTagName.call(r.head,"base")[0];e=e||Tl();var o=z(e),i="file:"!==o.protocol&&"about:"!==o.protocol&&!o.host,a=/^\/\//.test(e)&&!!o.host;if(i||a){var s=Tl();this.updateBase(s,t),e=this.resolve(e,t)}Xc.setAttribute.call(n,"href",e)}},getBaseUrl:function(e){var t=Xc.elementGetElementsByTagName.call(this._getResolver(e).head,"base")[0];return Xc.getAttribute.call(t,"href")},changeUrlPart:function(e,t,r,n){var o=this.getResolverElement(n);return Xc.anchorHrefSetter.call(o,e),t.call(o,r),Xc.anchorHrefGetter.call(o)},dispose:function(e){e[bl]=null},get proxyless(){return this._proxyless},set proxyless(e){this._proxyless=e}},xl=function(){function e(){this._settings={isFirstPageLoad:!0,sessionId:"",forceProxySrcForImage:!1,crossDomainProxyPort:"",referer:"",serviceMsgUrl:"",transportWorkerUrl:"",iframeTaskScriptTemplate:"",cookie:"",allowMultipleWindows:!1,isRecordMode:!1,windowId:"",proxyless:!1,disableCrossDomain:!1}}return e.prototype.set=function(e){this._settings=e},e.prototype.get=function(){return this._settings},e}(),Cl=new xl,Al=null,Tl=function(){var e=le(),t=G(e);return t?t.destUrl:e},Il=Object.freeze({__proto__:null,getLocation:le,forceLocation:ue,sameOriginCheck:pe,resolveUrl:he,get get(){return Tl},getReferrer:de,overrideGet:fe,withHash:me,getParsed:ye,getOriginHeader:_e}),Pl=/#[\S\s]*$/,Nl=/^wss?:/i,Ol=/\/[^/]*$/,kl=function(){for(var e=Ec.isInWorker?{location:Ne(self.location.origin),parent:null}:window,t=e.location;!t.hostname&&(Ec.isInWorker||e!==e.top);)e=e.parent,t=e.location;return{hostname:t.hostname,port:t.port.toString(),protocol:t.protocol}}(),Ll=pl,Dl=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r=!1),t.isUrlsSet)return t.isUrlsSet=!1,Y(Dl,String(e),t,r);if(r)return String(e);e=U(e);var n=t&&t.resourceType,o=L(n);if(!o.isWebSocket&&!Re(e)&&!je(e))return e;var i=he(e,t&&t.doc);if(o.isWebSocket&&!De(i)||!ne(i))return e;var a=t&&t.proxyHostname||kl.hostname,s=t&&t.proxyPort||kl.port,c=t&&t.proxyProtocol||kl.protocol,l=o.isWebSocket?c.replace("http","ws"):c,u=t&&t.sessionId||Cl.get().sessionId,p=t&&t.windowId||Cl.get().windowId,h=t&&t.credentials,d=t&&t.charset,f=t&&t.reqOrigin,m=Ae(s),g=G(i),v=!!g&&g.proxy.hostname===a&&(g.proxy.port===s||g.proxy.port===m);if(v){if(n&&g.resourceType===n)return i;var y=X(g.destResourceInfo);return Dl(y,{proxyProtocol:l,proxyHostname:a,proxyPort:s,sessionId:u,resourceType:n,charset:d,reqOrigin:f,credentials:h})}var _=z(i);if(!_.protocol)return e;if(d=d||Ee(o),_.protocol===c&&_.hostname===a&&_.port===s){var E=ye();_.protocol=E.protocol,_.host=E.host,_.hostname=E.hostname,_.port=E.port||"",i=X(_)}return o.isWebSocket&&(_.protocol=_.protocol.replace("ws","http"),i=X(_),f=f||_e()),o.isIframe&&s===Cl.get().crossDomainProxyPort&&(f=f||_e()),B(i,{proxyProtocol:l,proxyHostname:a,proxyPort:s,sessionId:u,resourceType:n,charset:d,reqOrigin:f,windowId:p,credentials:h})},Ml=function(e){return Dl(e,{proxyPort:Cl.get().crossDomainProxyPort,resourceType:D({isIframe:!0})})},Rl=function(e,t){return void 0===t&&(t=!1),$(e,Dl,t)},jl=function(e){return G(e)},Fl=function(e,t,r,n){return void 0===n&&(n=!1),Dl(e,{resourceType:t,charset:r,proxyPort:n?Cl.get().crossDomainProxyPort:kl.port})},Hl=Object.freeze({__proto__:null,DEFAULT_PROXY_SETTINGS:kl,REQUEST_DESCRIPTOR_VALUES_SEPARATOR:Ll,get getProxyUrl(){return Dl},overrideGetProxyUrl:Se,getNavigationUrl:we,get getCrossDomainIframeProxyUrl(){return Ml},overrideGetCrossDomainIframeProxyUrl:xe,getPageProxyUrl:Ce,getCrossDomainProxyPort:Ae,get resolveUrlAsDest(){return Rl},overrideResolveUrlAsDest:Te,formatUrl:Ie,get parseProxyUrl(){return jl},overrideParseProxyUrl:Pe,parseUrl:Ne,get convertToProxyUrl(){return Fl},getCrossDomainProxyOrigin:Oe,overrideConvertToProxyUrl:ke,changeDestUrlPart:Le,isValidWebSocketUrl:De,isSubDomain:Me,isSupportedProtocol:Re,isSpecialPage:je,parseResourceType:Fe,stringifyResourceType:He,isChangedOnlyHash:Ue,getDestinationUrl:Be,getScope:Ve,getAjaxProxyUrl:We}),Ul=!1,Bl=!1,Vl=!1,Wl=!1,Gl=!1,ql=!1,zl=!1,Kl=!1;if(Xc.createElement){var $l=Xc.createElement.call(document,"form"),Xl=Xc.getElementsByName.call(document,"");Ul=Xc.formActionGetter.call($l)===window.location.toString(),Bl=Xc.objectToString.call(window)===Xc.objectToString.call(Window.prototype),Vl="ontouchstart"in window,Wl=Mc&&navigator.maxTouchPoints>0,Gl=(Nc||Oc)&&Vl,ql=!!window.DataTransfer,zl=!!Xc.objectGetOwnPropertyDescriptor.call(window.Object,NamedNodeMap.prototype,"getNamedItem"),Kl=Xc.objectGetPrototypeOf.call(window.Object,Xl)===Xc.HTMLCollection.prototype}var Yl,Ql,Jl,Zl,eu,tu,ru,nu,ou,iu,au,su=Object.freeze({__proto__:null,get emptyActionAttrFallbacksToTheLocation(){return Ul},get instanceAndPrototypeToStringAreEqual(){return Bl},get hasTouchEvents(){return Vl},get hasTouchPoints(){return Wl},get isTouchDevice(){return Gl},get hasDataTransfer(){return ql},get attrGetNamedItemIsNotEnumerable(){return zl},get getElementsByNameReturnsHTMLCollection(){return Kl}}),cu=4,lu=Object.freeze({__proto__:null,get:Ke,set:$e,getBordersWidthInternal:Xe,getBordersWidth:Ye,getBordersWidthFloat:Qe,getComputedStyle:Je,getElementMargin:Ze,getElementPaddingInternal:et,getElementPadding:tt,getElementPaddingFloat:rt,getElementScroll:nt,getWidth:ot,getHeight:it,getInnerWidth:at,getInnerHeight:st,getOptionHeight:ct,getSelectElementSize:lt,isVisibleChild:ut,getScrollLeft:pt,getScrollTop:ht,setScrollLeft:dt,setScrollTop:ft,getOffsetParent:mt,getOffset:gt,isElementVisible:vt,isElementInInvisibleIframe:yt}),uu=0,pu=["[object HTMLMapElement]","[object HTMLAreaElement]"],hu="undefined"==typeof window,du=hu?"":Ct(window),fu=/^\[object .*?Document]$/i,mu=/^\[object .*?ProcessingInstruction]$/i,gu=/^\[object SVG\w+?Element]$/i,vu=/^\[object HTML.*?Element]$/i,yu=/^\[object ArrayBuffer]$/i,_u=/^\[object DataView]$/i,Eu=hu?"":Ct(Xc.createElement.call(document,"td")),Su=hu?-1:Node.ELEMENT_NODE,bu=/^(select|option|applet|area|audio|canvas|datalist|keygen|map|meter|object|progress|source|track|video|img)$/,wu=/^(input|textarea|button)$/,xu=/^(script|style)$/i,Cu=/^(email|number|password|search|tel|text|url)$/,Au=/^(number|email)$/,Tu=/^(color|date|datetime-local|month|week)$/,Iu='input, select, textarea, button, body, iframe, [contenteditable="true"], [contenteditable=""], [tabIndex]',Pu="hammerhead|element|shadow-root-parent",Nu=Object.freeze({__proto__:null,instanceToString:Ct,getActiveElement:At,getChildVisibleIndex:Tt,getIframeByElement:It,getIframeLocation:Pt,getFrameElement:Nt,getMapContainer:Ot,getParentWindowWithSrc:kt,getScrollbarSize:Lt,getSelectParent:Dt,getSelectVisibleChildren:Mt,getTopSameDomainWindow:Rt,find:jt,findDocument:Ft,isContentEditableElement:Ht,isCrossDomainIframe:Ut,isCrossDomainWindows:Bt,isIframeWindow:Vt,isDomElement:Wt,getTagName:Gt,SHADOW_ROOT_PARENT_ELEMENT:Pu,getNodeShadowRootParent:qt,getParentExceptShadowRoot:zt,isElementInDocument:Kt,isElementInIframe:$t,isHammerheadAttr:Xt,isIframeElement:Yt,isFrameElement:Qt,isIframeWithoutSrc:Jt,isIframeWithSrcdoc:Zt,isImgElement:er,isInputElement:tr,isTitleElement:rr,isButtonElement:nr,isFieldSetElement:or,isOptGroupElement:ir,isHtmlElement:ar,isBodyElement:sr,isPageBody:cr,isHeadElement:lr,isHeadOrBodyElement:ur,isHeadOrBodyOrHtmlElement:pr,isBaseElement:hr,isScriptElement:dr,isStyleElement:fr,isLabelElement:mr,isTextAreaElement:gr,isOptionElement:vr,isRadioButtonElement:yr,isColorInputElement:_r,isCheckboxElement:Er,isSelectElement:Sr,isFormElement:br,isFileInput:wr,isInputWithNativeDialog:xr,isBodyElementWithChildren:Cr,isMapElement:Ar,isRenderedNode:Tr,getTabIndex:Ir,isElementDisabled:Pr,isElementFocusable:Nr,isShadowUIElement:Or,isWindow:kr,isDocument:Lr,isBlob:Dr,isLocation:Mr,isSVGElement:Rr,isSVGElementOrChild:jr,isFetchHeaders:Fr,isFetchRequest:Hr,isElementReadOnly:Ur,isTextEditableInput:Br,isTextEditableElement:Vr,isTextEditableElementAndEditingAllowed:Wr,isElementNode:Gr,isTextNode:qr,isProcessingInstructionNode:zr,isCommentNode:Kr,isDocumentFragmentNode:$r,isShadowRoot:Xr,isAnchorElement:Yr,isTableElement:Qr,isTableDataCellElement:Jr,isWebSocket:Zr,isMessageEvent:en,isPerformanceNavigationTiming:tn,isArrayBuffer:rn,isArrayBufferView:nn,isDataView:on,matches:an,closest:sn,addClass:cn,removeClass:ln,hasClass:un,parseDocumentCharset:pn,getParents:hn,findParent:fn,nodeListToArray:mn,getFileInputs:gn,getIframes:vn,getScripts:yn,isNumberOrEmailInput:_n,isInputWithoutSelectionProperties:En,getAssociatedElement:Sn}),Ou=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.window=null,t.nativeMethods=Xc,t.document=null,t.proxyless=!1,t}return m(t,e),t.prototype.isDeactivated=function(){try{if(this.document.body,this.window[vc.hammerhead]){var e=Nt(this.window);return!!e&&!Kt(e,Ft(e))}}catch(t){}return!0},t.prototype.attach=function(e,t){this.window=e,this.document=t||e.document,this.proxyless=!!Cl.get().proxyless},t}(Yc),ku={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportBatchSpecifier:"ExportBatchSpecifier",ExportDeclaration:"ExportDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportSpecifier:"ImportSpecifier",ImportDeclaration:"ImportDeclaration",ChainExpression:"ChainExpression",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleDeclaration:"ModuleDeclaration",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},Lu=ku,Du={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:3,LogicalAND:4,BitwiseOR:5,BitwiseXOR:6,BitwiseAND:7,Equality:8,Relational:9,BitwiseSHIFT:10,Additive:11,Multiplicative:12,Unary:13,Exponentiation:14,Postfix:14,Await:14,Call:15,New:16,TaggedTemplate:17,OptionalChaining:17,Member:18,Primary:19},Mu={"||":Du.LogicalOR,"&&":Du.LogicalAND,"|":Du.BitwiseOR,"^":Du.BitwiseXOR,"&":Du.BitwiseAND,"==":Du.Equality,"!=":Du.Equality,"===":Du.Equality,"!==":Du.Equality,is:Du.Equality,isnt:Du.Equality,"<":Du.Relational,">":Du.Relational,"<=":Du.Relational,">=":Du.Relational,"in":Du.Relational,"instanceof":Du.Relational,"<<":Du.BitwiseSHIFT,">>":Du.BitwiseSHIFT,">>>":Du.BitwiseSHIFT,"+":Du.Additive,"-":Du.Additive,"*":Du.Multiplicative,"%":Du.Multiplicative,"/":Du.Multiplicative,"??":Du.Coalesce,"**":Du.Exponentiation},Ru=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],ju=new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ--ℝℤΩℨK--ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0--_-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]");Yl=Array.isArray,Yl||(Yl=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var Fu={e1:function(e){return{precedence:Du.Assignment,allowIn:e,allowCall:!0,allowUnparenthesizedNew:!0}},e2:function(e){return{precedence:Du.LogicalOR,allowIn:e,allowCall:!0,allowUnparenthesizedNew:!0}},e3:{precedence:Du.Call,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!1},e4:{precedence:Du.Assignment,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e5:{precedence:Du.Sequence,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e6:function(e){return{precedence:Du.New,allowIn:!0,allowCall:!1,allowUnparenthesizedNew:e}},e7:{precedence:Du.Unary,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e8:{precedence:Du.Postfix,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e9:{precedence:void 0,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e10:{precedence:Du.Call,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e11:function(e){return{precedence:Du.Call,allowIn:!0,allowCall:e,allowUnparenthesizedNew:!1}},e12:{precedence:Du.Primary,allowIn:!1,allowCall:!1,allowUnparenthesizedNew:!0},e13:{precedence:Du.Primary,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e14:{precedence:Du.Sequence,allowIn:!1,allowCall:!0,allowUnparenthesizedNew:!0},e15:function(e){return{precedence:Du.Sequence,allowIn:!0,allowCall:e,allowUnparenthesizedNew:!0}},e16:function(e,t){return{precedence:e,allowIn:t,allowCall:!0,allowUnparenthesizedNew:!0}},e17:function(e){return{precedence:Du.Call,allowIn:e,allowCall:!0,allowUnparenthesizedNew:!0}},e18:function(e){return{precedence:Du.Assignment,allowIn:e,allowCall:!0,allowUnparenthesizedNew:!0}},e19:{precedence:Du.Sequence,allowIn:!0,allowCall:!0,semicolonOptional:!1},e20:{precedence:Du.Await,allowCall:!0},s1:function(e,t){return{allowIn:!0,functionBody:!1,directiveContext:e,semicolonOptional:t}},s2:{allowIn:!0,functionBody:!1,directiveContext:!1,semicolonOptional:!0},s3:function(e){return{allowIn:e,functionBody:!1,directiveContext:!1,semicolonOptional:!1}},s4:function(e){return{allowIn:!0,functionBody:!1,directiveContext:!1,semicolonOptional:e}},s5:function(e){return{allowIn:!0,functionBody:!1,directiveContext:!0,semicolonOptional:e}},s6:{allowIn:!1,functionBody:!1,directiveContext:!1,semicolonOptional:!1},s7:{allowIn:!0,functionBody:!1,directiveContext:!1,semicolonOptional:!1},s8:{allowIn:!0,functionBody:!0,directiveContext:!1,semicolonOptional:!1}},Hu=/[.eExX]|^0[0-9]+/,Uu=/[0-9]$/,Bu={SequenceExpression:function(e,t){var r=e.expressions,n=r.length,o=n-1,i=Du.Sequence<t.precedence,a=Fu.e1(t.allowIn||i);i&&(Gu.js+="(");for(var s=0;s<n;s++){var c=r[s];qu[c.type](c,a),s!==o&&(Gu.js+=","+Gu.optSpace)}i&&(Gu.js+=")")},AssignmentExpression:function(e,t){var r=e.left,n=e.right,o=Du.Assignment<t.precedence,i=t.allowIn||o;o&&(Gu.js+="("),qu[r.type](r,Fu.e17(i)),Gu.js+=Gu.optSpace+e.operator+Gu.optSpace,qu[n.type](n,Fu.e18(i)),o&&(Gu.js+=")")},AssignmentPattern:function(e){var t={left:e.left,right:e.right,operator:"="};qu.AssignmentExpression(t,Fu.e4)},ArrowFunctionExpression:function(e,t){var r=Du.ArrowFunction<t.precedence;r&&(Gu.js+="("),e.async&&(Gu.js+="async "),Vn(e),r&&(Gu.js+=")")},AwaitExpression:function(e,t){var r=Du.Await<t.precedence;r&&(Gu.js+="("),Gu.js+=e.all?"await* ":"await ",qu[e.argument.type](e.argument,Fu.e20),r&&(Gu.js+=")")},ConditionalExpression:function(e,t){var r=e.test,n=e.consequent,o=e.alternate,i=Du.Conditional<t.precedence,a=t.allowIn||i,s=Fu.e2(a),c=Fu.e1(a);i&&(Gu.js+="("),qu[r.type](r,s),Gu.js+=Gu.optSpace+"?"+Gu.optSpace,qu[n.type](n,c),Gu.js+=Gu.optSpace+":"+Gu.optSpace,qu[o.type](o,c),i&&(Gu.js+=")")},LogicalExpression:qn,BinaryExpression:qn,CallExpression:function(e,t){var r=e.callee,n=e.arguments,o=n.length,i=o-1,a=!t.allowCall||Du.Call<t.precedence;a&&(Gu.js+="("),qu[r.type](r,Fu.e3),e.optional&&(Gu.js+="?."),Gu.js+="(";for(var s=0;s<o;++s){var c=n[s];qu[c.type](c,Fu.e4),s!==i&&(Gu.js+=","+Gu.optSpace)}Gu.js+=")",a&&(Gu.js+=")")},NewExpression:function(e,t){var r=e.arguments,n=Du.New<t.precedence,o=r.length,i=o-1,a=!t.allowUnparenthesizedNew||ru||o>0,s=Yn(e.callee,Fu.e6(!a));if(n&&(Gu.js+="("),Gu.js+=Rn("new",s),a){Gu.js+="(";for(var c=0;c<o;++c){var l=r[c];qu[l.type](l,Fu.e4),c!==i&&(Gu.js+=","+Gu.optSpace)}Gu.js+=")"}n&&(Gu.js+=")")},MemberExpression:function(e,t){var r=e.object,n=e.property,o=Du.Member<t.precedence,i=!e.computed&&r.type===ku.Literal&&"number"==typeof r.value;if(o&&(Gu.js+="("),i){var a=Yn(r,Fu.e11(t.allowCall)),s=Uu.test(a)&&!Hu.test(a);Gu.js+=s?a+".":a}else qu[r.type](r,Fu.e11(t.allowCall));e.computed?(e.optional&&(Gu.js+="?."),Gu.js+="[",qu[n.type](n,Fu.e15(t.allowCall)),Gu.js+="]"):Gu.js+=(e.optional?"?.":".")+n.name,o&&(Gu.js+=")")},UnaryExpression:function(e,t){var r=Du.Unary<t.precedence,n=e.operator,o=Yn(e.argument,Fu.e7);if(r&&(Gu.js+="("),""===Gu.optSpace||n.length>2)Gu.js+=Rn(n,o);else{Gu.js+=n;var i=n.charCodeAt(n.length-1),a=o.charCodeAt(0);(i===a&&(43===i||45===i)||wn(i)&&wn(a))&&(Gu.js+=Gu.space),Gu.js+=o}r&&(Gu.js+=")")},YieldExpression:function(e,t){var r=e.argument,n=e.delegate?"yield*":"yield",o=Du.Yield<t.precedence;if(o&&(Gu.js+="("),r){var i=Yn(r,Fu.e4);n=Rn(n,i)}Gu.js+=n,o&&(Gu.js+=")")},UpdateExpression:function(e,t){var r=e.argument,n=e.operator,o=e.prefix,i=o?Du.Unary:Du.Postfix,a=i<t.precedence;a&&(Gu.js+="("),o?(Gu.js+=n,qu[r.type](r,Fu.e8)):(qu[r.type](r,Fu.e8),Gu.js+=n),a&&(Gu.js+=")")},FunctionExpression:function(e){var t=!!e.generator;e.async&&(Gu.js+="async "),Gu.js+=t?"function*":"function",e.id?(Gu.js+=t?Gu.optSpace:Gu.space,Gu.js+=e.id.name):Gu.js+=Gu.optSpace,
Vn(e)},ExportBatchSpecifier:function(){Gu.js+="*"},ArrayPattern:zn,ArrayExpression:zn,ClassExpression:function(e){var t=e.id,r=e.superClass,n=e.body,o="class";if(t){var i=Yn(t,Fu.e9);o=Rn(o,i)}if(r){var a=Yn(r,Fu.e4);a=Rn("extends",a),o=Rn(o,a)}Gu.js+=o+Gu.optSpace,zu[n.type](n,Fu.s2)},MetaProperty:function(e,t){var r=e.meta,n=e.property,o=Du.Member<t.precedence;o&&(Gu.js+="("),Gu.js+=("string"==typeof r?r:r.name)+"."+("string"==typeof n?n:n.name),o&&(Gu.js+=")")},MethodDefinition:function(e){var t=e["static"]?"static"+Gu.optSpace:"",r=Yn(e.key,Fu.e5);e.computed&&(r="["+r+"]"),"get"===e.kind||"set"===e.kind?(r=Rn(e.kind,r),Gu.js+=Rn(t,r)):e.value.generator?Gu.js+=t+"*"+r:e.value.async?Gu.js+=t+"async "+r:Gu.js+=Rn(t,r),Vn(e.value)},Property:function(e){var t=e.value,r=e.kind,n=Yn(e.key,Fu.e4);e.computed&&(n="["+n+"]"),"get"===r||"set"===r?(Gu.js+=r+Gu.space+n,Vn(t)):e.shorthand?Gu.js+=n:e.method?(t.generator?n="*"+n:t.async&&(n="async "+n),Gu.js+=n,Vn(t)):(Gu.js+=n+":"+Gu.optSpace,qu[t.type](t,Fu.e4))},ObjectExpression:function(e){var t=e.properties,r=t.length;if(r){var n=r-1,o=jn();Gu.js+="{";for(var i=0;i<r;i++){var a=t[i],s=a.type||ku.Property;Gu.js+=Gu.newline+Gu.indent,qu[s](a,Fu.e5),i!==n&&(Gu.js+=",")}Gu.indent=o,Gu.js+=Gu.newline+Gu.indent+"}"}else Gu.js+="{}"},ObjectPattern:function(e){var t=e.properties,r=t.length;if(r){var n=r-1,o=!1;if(1===r)o=t[0].value.type!==ku.Identifier;else for(var i=0;i<r;i++)if(!t[i].shorthand){o=!0;break}Gu.js+=o?"{"+Gu.newline:"{";for(var a=jn(),s=","+(o?Gu.newline:Gu.optSpace),i=0;i<r;i++){var c=t[i];o&&(Gu.js+=Gu.indent),qu[c.type](c,Fu.e5),i!==n&&(Gu.js+=s)}Gu.indent=a,Gu.js+=o?Gu.newline+Gu.indent+"}":"}"}else Gu.js+="{}"},ThisExpression:function(){Gu.js+="this"},Identifier:function(e,t,r){Gu.js+=e.name},ImportExpression:function(e,t){var r=Du.Call<t.precedence,n=e.source;r&&(Gu.js+="("),Gu.js+="import(",qu[n.type](n,Fu.e4),Gu.js+=")",r&&(Gu.js+=")")},ImportSpecifier:function(e){Gu.js+=e.imported.name,e.local&&(Gu.js+=Gu.space+"as"+Gu.space+e.local.name)},ExportSpecifier:function(e){Gu.js+=e.local.name,e.exported&&(Gu.js+=Gu.space+"as"+Gu.space+e.exported.name)},ChainExpression:function(e,t){var r=Du.OptionalChaining<t.precedence,n=e.expression;t=t||{};var o={precedence:Du.OptionalChaining,allowIn:t.allowIn,allowCall:t.allowCall,allowUnparenthesizedNew:t.allowUnparenthesizedNew};r&&(o.allowCall=!0,Gu.js+="("),qu[n.type](n,o),r&&(Gu.js+=")")},Literal:function(e){if(au.raw&&void 0!==e.raw)Gu.js+=e.raw;else if(null===e.value)Gu.js+="null";else{var t=typeof e.value;"string"===t?Gu.js+=Mn(e.value):"number"===t?Gu.js+=Pn(e.value):"boolean"===t?Gu.js+=e.value?"true":"false":Gu.js+=On(e.value)}},GeneratorExpression:Kn,ComprehensionExpression:Kn,ComprehensionBlock:function(e){var t=e.left,r=void 0,n=Yn(e.right,Fu.e5);r=t.type===ku.VariableDeclaration?t.kind+Gu.space+Qn(t.declarations[0],Fu.s6):Yn(t,Fu.e10),r=Rn(r,e.of?"of":"in"),Gu.js+="for"+Gu.optSpace+"("+Rn(r,n)+")"},RestElement:function(e){Gu.js+="..."+e.argument.name},SpreadElement:function(e){var t=e.argument;Gu.js+="...",qu[t.type](t,Fu.e4)},TaggedTemplateExpression:function(e,t){var r=e.tag,n=e.quasi,o=Du.TaggedTemplate<t.precedence;o&&(Gu.js+="("),qu[r.type](r,Fu.e11(t.allowCall)),qu[n.type](n,Fu.e12),o&&(Gu.js+=")")},TemplateElement:function(e){Gu.js+=e.value.raw},TemplateLiteral:function(e){var t=e.quasis,r=e.expressions,n=t.length,o=n-1;Gu.js+="`";for(var i=0;i<n;++i){var a=t[i];if(qu[a.type](a,Fu.e13),i!==o){var s=r[i];Gu.js+="${"+Gu.optSpace,qu[s.type](s,Fu.e5),Gu.js+=Gu.optSpace+"}"}}Gu.js+="`"},Super:function(){Gu.js+="super"}},Vu=/^{|^class(?:\s|{)|^(async )?function(?:\s|\*|\()/,Wu={BlockStatement:function(e,t){var r=e.body,n=r.length,o=n-1,i=jn();Gu.js+="{"+Gu.newline;for(var a=0;a<n;a++){var s=r[a];Gu.js+=Gu.indent,zu[s.type](s,Fu.s1(t.functionBody,a===o)),Gu.js+=Gu.newline}Gu.indent=i,Gu.js+=Gu.indent+"}"},BreakStatement:function(e,t){e.label?Gu.js+="break "+e.label.name:Gu.js+="break",!nu&&t.semicolonOptional||(Gu.js+=";")},ContinueStatement:function(e,t){e.label?Gu.js+="continue "+e.label.name:Gu.js+="continue",!nu&&t.semicolonOptional||(Gu.js+=";")},ClassBody:function(e){var t=e.body,r=t.length,n=r-1,o=jn();Gu.js+="{"+Gu.newline;for(var i=0;i<r;i++){var a=t[i],s=a.type||ku.Property;Gu.js+=Gu.indent,qu[s](a,Fu.e5),i!==n&&(Gu.js+=Gu.newline)}Gu.indent=o,Gu.js+=Gu.newline+Gu.indent+"}"},ClassDeclaration:function(e){var t=e.body,r=e.superClass,n="class "+e.id.name;if(r){var o=Yn(r,Fu.e4);n+=Gu.space+Rn("extends",o)}Gu.js+=n+Gu.optSpace,zu[t.type](t,Fu.s2)},DirectiveStatement:function(e,t){au.raw&&e.raw?Gu.js+=e.raw:Gu.js+=Dn(e.directive),!nu&&t.semicolonOptional||(Gu.js+=";")},DoWhileStatement:function(e,t){var r=e.body,n=e.test,o=Fn(r)+Qn(r,Fu.s7)+Hn(r),i=Rn("do",o);Gu.js+=Rn(i,"while"+Gu.optSpace+"("),qu[n.type](n,Fu.e5),Gu.js+=")",!nu&&t.semicolonOptional||(Gu.js+=";")},CatchClause:function(e){var t=e.param,r=e.guard,n=e.body,o=jn();Gu.js+="catch"+Gu.optSpace,t&&(Gu.js+="(",qu[t.type](t,Fu.e5)),r&&(Gu.js+=" if ",qu[r.type](r,Fu.e5)),Gu.indent=o,t&&(Gu.js+=")"),Gu.js+=Fn(n),zu[n.type](n,Fu.s7)},DebuggerStatement:function(e,t){Gu.js+="debugger",!nu&&t.semicolonOptional||(Gu.js+=";")},EmptyStatement:function(){Gu.js+=";"},ExportAllDeclaration:function(e,t){Wu.ExportDeclaration(e,t,!0)},ExportDeclaration:function(e,t,r){var n=e.specifiers,o=e.declaration,i=nu||!t.semicolonOptional;if(e["default"]){var a=Yn(o,Fu.e4);Gu.js+=Rn("export default",a),i&&(Gu.js+=";")}else if(n||r){var s="export";if(r)s+=Gu.optSpace+"*";else if(0===n.length)s+=Gu.optSpace+"{"+Gu.optSpace+"}";else if(n[0].type===ku.ExportBatchSpecifier){var c=Yn(n[0],Fu.e5);s=Rn(s,c)}else{var l=jn(),u=n.length,p=u-1;s+=Gu.optSpace+"{";for(var h=0;h<u;++h)s+=Gu.newline+Gu.indent,s+=Yn(n[h],Fu.e5),h!==p&&(s+=",");Gu.indent=l,s+=Gu.newline+Gu.indent+"}"}e.source?(Gu.js+=Rn(s,"from"+Gu.optSpace),qu.Literal(e.source)):Gu.js+=s,i&&(Gu.js+=";")}else if(o){var a=Qn(o,Fu.s4(!i));Gu.js+=Rn("export",a)}},ExportNamedDeclaration:function(e,t){Wu.ExportDeclaration(e,t)},ExpressionStatement:function(e,t){var r=Yn(e.expression,Fu.e5),n=Vu.test(r)||iu&&t.directiveContext&&e.expression.type===ku.Literal&&"string"==typeof e.expression.value;n?Gu.js+="("+r+")":Gu.js+=r,!nu&&t.semicolonOptional||(Gu.js+=";")},ImportDeclaration:function(e,t){var r=e.specifiers,n="import",o=r.length;if(o){var i=!!r[0]["default"],a=i?1:0,s=o-1;if(i&&(n=Rn(n,r[0].id.name)),a<o){if(i&&(n+=","),n+=Gu.optSpace+"{",a===s)n+=Gu.optSpace+Yn(r[a],Fu.e5)+Gu.optSpace;else{for(var c=jn(),l=a;l<o;l++)n+=Gu.newline+Gu.indent+Yn(r[l],Fu.e5),l!==s&&(n+=",");Gu.indent=c,n+=Gu.newline+Gu.indent}n+="}"+Gu.optSpace}n=Rn(n,"from")}Gu.js+=n+Gu.optSpace,qu.Literal(e.source),!nu&&t.semicolonOptional||(Gu.js+=";")},VariableDeclarator:function(e,t){var r=e.id,n=e.init,o=Fu.e1(t.allowIn);n?(qu[r.type](r,o),Gu.js+=Gu.optSpace+"="+Gu.optSpace,qu[n.type](n,o,e)):r.type===ku.Identifier?Gu.js+=r.name:qu[r.type](r,o)},VariableDeclaration:function(e,t){var r=e.declarations,n=r.length,o=n>1?jn():Gu.indent,i=Fu.s3(t.allowIn);Gu.js+=e.kind;for(var a=0;a<n;a++){var s=r[a];Gu.js+=0===a?Gu.space:","+Gu.optSpace,zu[s.type](s,i)}!nu&&t.semicolonOptional||(Gu.js+=";"),Gu.indent=o},ThrowStatement:function(e,t){var r=Yn(e.argument,Fu.e5);Gu.js+=Rn("throw",r),!nu&&t.semicolonOptional||(Gu.js+=";")},TryStatement:function(e){var t=e.block,r=e.finalizer,n="try"+Fn(t)+Qn(t,Fu.s7)+Hn(t),o=e.handlers||e.guardedHandlers;o&&(n=$n(n,r,o)),e.handler&&(o=Yl(e.handler)?e.handler:[e.handler],n=$n(n,r,o)),r&&(n=Rn(n,"finally"+Fn(r)),n+=Qn(r,Fu.s7)),Gu.js+=n},SwitchStatement:function(e){var t=e.cases,r=e.discriminant,n=jn();if(Gu.js+="switch"+Gu.optSpace+"(",qu[r.type](r,Fu.e5),Gu.js+=")"+Gu.optSpace+"{"+Gu.newline,Gu.indent=n,t)for(var o=t.length,i=o-1,a=0;a<o;a++){var s=t[a];Gu.js+=Gu.indent,zu[s.type](s,Fu.s4(a===i)),Gu.js+=Gu.newline}Gu.js+=Gu.indent+"}"},SwitchCase:function(e,t){var r=e.consequent,n=r[0],o=e.test,i=0,a=!nu&&t.semicolonOptional,s=r.length,c=s-1,l=jn();if(o){var u=Yn(o,Fu.e5);Gu.js+=Rn("case",u)+":"}else Gu.js+="default:";for(s&&n.type===ku.BlockStatement&&(i++,Gu.js+=Fn(n),zu[n.type](n,Fu.s7));i<s;i++){var p=r[i],h=i===c&&a;Gu.js+=Gu.newline+Gu.indent,zu[p.type](p,Fu.s4(h))}Gu.indent=l},IfStatement:function(e,t){var r=e.consequent,n=e.test,o=jn(),i=!nu&&t.semicolonOptional;if(Gu.js+="if"+Gu.optSpace+"(",qu[n.type](n,Fu.e5),Gu.js+=")",Gu.indent=o,Gu.js+=Fn(r),e.alternate){var a=Qn(r,Fu.s7)+Hn(r),s=Qn(e.alternate,Fu.s4(i));s=e.alternate.type===ku.IfStatement?"else "+s:Rn("else",Fn(e.alternate)+s),Gu.js+=Rn(a,s)}else zu[r.type](r,Fu.s4(i))},ForStatement:function(e,t){var r=e.init,n=e.test,o=e.body,i=e.update,a=!nu&&t.semicolonOptional,s=jn();Gu.js+="for"+Gu.optSpace+"(",r?r.type===ku.VariableDeclaration?zu[r.type](r,Fu.s6):(qu[r.type](r,Fu.e14),Gu.js+=";"):Gu.js+=";",n&&(Gu.js+=Gu.optSpace,qu[n.type](n,Fu.e5)),Gu.js+=";",i&&(Gu.js+=Gu.optSpace,qu[i.type](i,Fu.e5)),Gu.js+=")",Gu.indent=s,Gu.js+=Fn(o),zu[o.type](o,Fu.s4(a))},ForInStatement:function(e,t){Xn("in",e,t)},ForOfStatement:function(e,t){Xn("of",e,t)},LabeledStatement:function(e,t){var r=e.body,n=!nu&&t.semicolonOptional,o=Gu.indent;Gu.js+=e.label.name+":"+Fn(r),r.type!==ku.BlockStatement&&(o=jn()),zu[r.type](r,Fu.s4(n)),Gu.indent=o},ModuleDeclaration:function(e,t){Gu.js+="module"+Gu.space+e.id.name+Gu.space+"from"+Gu.optSpace,qu.Literal(e.source),!nu&&t.semicolonOptional||(Gu.js+=";")},Program:function(e){var t=e.body,r=t.length,n=r-1;ou&&r>0&&(Gu.js+="\n");for(var o=0;o<r;o++){var i=t[o];Gu.js+=Gu.indent,zu[i.type](i,Fu.s5(!ou&&o===n)),o!==n&&(Gu.js+=Gu.newline)}},FunctionDeclaration:function(e){var t=!!e.generator;e.async&&(Gu.js+="async "),Gu.js+=t?"function*"+Gu.optSpace:"function"+Gu.space,Gu.js+=e.id.name,Vn(e)},ReturnStatement:function(e,t){var r=e.argument;if(r){var n=Yn(r,Fu.e5);Gu.js+=Rn("return",n)}else Gu.js+="return";!nu&&t.semicolonOptional||(Gu.js+=";")},WhileStatement:function(e,t){var r=e.body,n=e.test,o=!nu&&t.semicolonOptional,i=jn();Gu.js+="while"+Gu.optSpace+"(",qu[n.type](n,Fu.e5),Gu.js+=")",Gu.indent=i,Gu.js+=Fn(r),zu[r.type](r,Fu.s4(o))},WithStatement:function(e,t){var r=e.body,n=e.object,o=!nu&&t.semicolonOptional,i=jn();Gu.js+="with"+Gu.optSpace+"(",qu[n.type](n,Fu.e5),Gu.js+=")",Gu.indent=i,Gu.js+=Fn(r),zu[r.type](r,Fu.s4(o))}},Gu={js:"",newline:"\n",optSpace:" ",space:" ",indentUnit:" ",indent:""},qu=void 0,zu=Wu,Ku=function(e,t){var r=bn();return null!=t?("string"==typeof t.indent&&(r.format.indent.style=t.indent),"number"==typeof t.base&&(r.format.indent.base=t.base),t=In(r,t),Gu.indentUnit=t.format.indent.style,"string"==typeof t.base?Gu.indent=t.base:Gu.indent=Tn(Gu.indentUnit,t.format.indent.base)):(t=r,Gu.indentUnit=t.format.indent.style,Gu.indent=Tn(Gu.indentUnit,t.format.indent.base)),Ql=t.format.json,Jl=t.format.renumber,Zl=!Ql&&t.format.hexadecimal,eu=Ql?"double":t.format.quotes,tu=t.format.escapeless,Gu.newline=t.format.newline,Gu.optSpace=t.format.space,t.format.compact&&(Gu.newline=Gu.optSpace=Gu.indentUnit=Gu.indent=""),Gu.space=Gu.optSpace?Gu.optSpace:" ",ru=t.format.parentheses,nu=t.format.semicolons,ou=t.format.safeConcatenation,iu=t.directive,Ql?null:t.parse,au=t,qu=au.verbatim?eo():Bu,Jn(e)},$u={getLocation:"__get$Loc",setLocation:"__set$Loc",getProperty:"__get$",setProperty:"__set$",callMethod:"__call$",processScript:"__proc$Script",processHtml:"__proc$Html",getEval:"__get$Eval",getPostMessage:"__get$PostMessage",getProxyUrl:"__get$ProxyUrl",restArray:"__rest$Array",arrayFrom:"__arrayFrom$",restObject:"__rest$Object",swScopeHeaderValue:"__swScopeHeaderValue",getWorkerSettings:"__getWorkerSettings$"},Xu="_hh$temp",Yu=function(){function e(){this._list=[]}return e.resetCounter=function(){e._counter=0},e.generateName=function(t,r,n){if(!t)return Xu+e._counter++;if(r){if(r.type===Lu.Identifier)return t+"$"+r.name;if(r.type===Lu.Literal&&r.value)return t+"$"+r.value.toString().replace(/[^a-zA-Z0-9]/g,"")}return t+"$i"+n},e.isHHTempVariable=function(e){return 0===e.indexOf(Xu)},e.prototype.append=function(e){this._list.push(e)},e.prototype.get=function(){return this._list},e._counter=0,e}(),Qu=["postMessage","replace","assign"],Ju=["href","location"],Zu=new RegExp("^(".concat(Qu.join("|"),")$")),ep=new RegExp("^(".concat(Ju.join("|"),")$")),tp=RegExp.prototype.test,rp=function(e,t){return e.test?e.test(t):tp.call(e,t)},np=Object.freeze({__proto__:null,METHODS:Qu,PROPERTIES:Ju,shouldInstrumentMethod:Fo,shouldInstrumentProperty:Ho}),op={name:"computed-property-get",nodeReplacementRequireTransform:!0,nodeTypes:Lu.MemberExpression,condition:function(e,t){return!(!e.computed||!t)&&(!(e.property.type===Lu.Literal&&!Ho(e.property.value))&&(e.object.type!==Lu.Super&&((t.type!==Lu.AssignmentExpression||t.left!==e)&&((t.type!==Lu.UnaryExpression||"delete"!==t.operator)&&((t.type!==Lu.UpdateExpression||"++"!==t.operator&&"--"!==t.operator)&&((t.type!==Lu.CallExpression||t.callee!==e)&&((t.type!==Lu.NewExpression||t.callee!==e)&&(t.type!==Lu.ForInStatement||t.left!==e))))))))},run:function(e){return Io(e.property,e.object,e.optional)}},ip={name:"computed-property-set",nodeReplacementRequireTransform:!0,nodeTypes:Lu.AssignmentExpression,condition:function(e){var t=e.left;return(t.type!==Lu.MemberExpression||t.object.type!==Lu.Super)&&(!("="!==e.operator||t.type!==Lu.MemberExpression||!t.computed)&&(t.property.type!==Lu.Literal||Ho(t.property.value)))},run:function(e){var t=e.left;return Po(t.property,t.object,e.right)}},ap={name:"concat-operator",nodeReplacementRequireTransform:!0,nodeTypes:Lu.AssignmentExpression,condition:function(e){if("+="!==e.operator)return!1;var t=e.left;if(t.type===Lu.Identifier)return Ho(t.name);if(t.type===Lu.MemberExpression){if(t.computed)return t.property.type===Lu.Literal?Ho(t.property.value):t.property.type!==Lu.UpdateExpression;if(t.property.type===Lu.Identifier)return Ho(t.property.name)}return!1},run:function(e){return Mo(e.left,e.right)}},sp={name:"eval",nodeReplacementRequireTransform:!1,nodeTypes:Lu.CallExpression,condition:function(e){if(!e.arguments.length)return!1;var t=e.callee;return t.type===Lu.Identifier&&"eval"===t.name||t.type===Lu.MemberExpression&&"eval"===(t.property.type===Lu.Identifier&&t.property.name||t.property.type===Lu.Literal&&t.property.value)},run:function(e){var t=bo(e.arguments[0]);return Uo(e.arguments[0],t,e,"arguments"),null}},cp={name:"eval-bind",nodeReplacementRequireTransform:!1,nodeTypes:Lu.CallExpression,condition:function(e){if(e.callee.type===Lu.MemberExpression&&e.callee.property.type===Lu.Identifier&&"bind"===e.callee.property.name){var t=e.callee.object;if(t.type===Lu.MemberExpression&&"eval"===(t.property.type===Lu.Identifier&&t.property.name||t.property.type===Lu.Literal&&t.property.value))return!0;if(t.type===Lu.Identifier&&"eval"===t.name)return!0}return!1},run:function(e){var t=e.callee,r=No(t.object);return Uo(t.object,r,t,"object"),null}},lp=/^(call|apply)$/,up={name:"eval-call-apply",nodeReplacementRequireTransform:!1,nodeTypes:Lu.CallExpression,condition:function(e){if(e.arguments.length<2)return!1;if(e.callee.type===Lu.MemberExpression&&e.callee.property.type===Lu.Identifier&&lp.test(e.callee.property.name)){var t=e.callee.object;if(t.type===Lu.Identifier&&"eval"===t.name)return!0;if(t.type===Lu.MemberExpression&&"eval"===(t.property.type===Lu.Identifier&&t.property.name||t.property.type===Lu.Literal&&t.property.value))return!0}return!1},run:function(e){var t=e.callee,r=t.property,n=bo(e.arguments[1],"apply"===r.name);return Uo(e.arguments[1],n,e,"arguments"),null}},pp={name:"eval-get",nodeReplacementRequireTransform:!1,nodeTypes:Lu.Identifier,condition:function(e,t){return!("eval"!==e.name||!t)&&((t.type!==Lu.CallExpression||t.callee!==e)&&(t.type!==Lu.MethodDefinition&&(t.type!==Lu.ClassDeclaration&&(t.type!==Lu.MemberExpression&&((t.type!==Lu.FunctionExpression&&t.type!==Lu.FunctionDeclaration||t.id!==e)&&((t.type!==Lu.FunctionExpression&&t.type!==Lu.FunctionDeclaration&&t.type!==Lu.ArrowFunctionExpression||t.params.indexOf(e)===-1)&&((t.type!==Lu.Property||t.key!==e)&&((t.type!==Lu.Property||t.value!==e||!t.shorthand)&&((t.type!==Lu.AssignmentExpression&&t.type!==Lu.AssignmentPattern||t.left!==e)&&((t.type!==Lu.VariableDeclarator||t.id!==e)&&((t.type!==Lu.UpdateExpression||"++"!==t.operator&&"--"!==t.operator)&&((t.type!==Lu.CallExpression||t.callee.type!==Lu.Identifier||t.callee.name!==$u.getEval)&&(t.type!==Lu.RestElement&&(t.type!==Lu.ExportSpecifier&&t.type!==Lu.ImportSpecifier))))))))))))))},run:No},hp={name:"window-eval-get",nodeReplacementRequireTransform:!1,nodeTypes:Lu.MemberExpression,condition:function(e,t){return!!t&&((t.type!==Lu.MemberExpression||t.property!==e&&t.object!==e)&&((t.type!==Lu.CallExpression||t.callee!==e)&&((t.type!==Lu.AssignmentExpression||t.left!==e)&&((t.type!==Lu.CallExpression||t.callee.type!==Lu.Identifier||t.callee.name!==$u.getEval)&&(e.property.type===Lu.Identifier&&"eval"===e.property.name||e.property.type===Lu.Literal&&"eval"===e.property.value)))))},run:No},dp={name:"post-message-get",nodeReplacementRequireTransform:!1,nodeTypes:Lu.Identifier,condition:function(e,t){return!("postMessage"!==e.name||!t)&&(t.type!==Lu.MemberExpression&&(t.type!==Lu.MethodDefinition&&(t.type!==Lu.ClassDeclaration&&((t.type!==Lu.FunctionExpression&&t.type!==Lu.FunctionDeclaration||t.id!==e)&&((t.type!==Lu.FunctionExpression&&t.type!==Lu.FunctionDeclaration&&t.type!==Lu.ArrowFunctionExpression||t.params.indexOf(e)===-1)&&((t.type!==Lu.Property||t.key!==e)&&((t.type!==Lu.Property||t.value!==e||!t.shorthand)&&((t.type!==Lu.AssignmentExpression&&t.type!==Lu.AssignmentPattern||t.left!==e)&&((t.type!==Lu.VariableDeclarator||t.id!==e)&&((t.type!==Lu.UpdateExpression||"++"!==t.operator&&"--"!==t.operator)&&((t.type!==Lu.CallExpression||t.callee.type!==Lu.Identifier||t.callee.name!==$u.getPostMessage&&(t.callee.name!==$u.callMethod||t.arguments[1]!==e))&&(t.type!==Lu.RestElement&&(t.type!==Lu.ExportSpecifier&&t.type!==Lu.ImportSpecifier)))))))))))))},run:Lo},fp={name:"window-post-message-get",nodeReplacementRequireTransform:!1,nodeTypes:Lu.MemberExpression,condition:function(e,t){return!!t&&((t.type!==Lu.MemberExpression||t.property!==e&&t.object!==e)&&((t.type!==Lu.CallExpression||t.callee!==e)&&((t.type!==Lu.AssignmentExpression||t.left!==e)&&((t.type!==Lu.CallExpression||t.callee.type!==Lu.Identifier||t.callee.name!==$u.getPostMessage)&&(e.property.type===Lu.Identifier&&"postMessage"===e.property.name||e.property.type===Lu.Literal&&"postMessage"===e.property.value)))))},run:Lo},mp=/^(call|apply|bind)$/,gp={name:"post-message-call-apply-bind",nodeReplacementRequireTransform:!1,nodeTypes:Lu.CallExpression,condition:function(e){if(e.callee.type===Lu.MemberExpression&&e.callee.property.type===Lu.Identifier&&mp.test(e.callee.property.name)){if(e.arguments.length<2&&"bind"!==e.callee.property.name)return!1;var t=e.callee.object;if(t.type===Lu.MemberExpression&&"postMessage"===(t.property.type===Lu.Identifier&&t.property.name||t.property.type===Lu.Literal&&t.property.value))return!0;if(t.type===Lu.Identifier&&"postMessage"===t.name)return!0}return!1},run:function(e){var t=e.callee,r=Lo(t.object);return Uo(t.object,r,t,"object"),null}},vp={name:"for-in",nodeReplacementRequireTransform:!1,nodeTypes:Lu.ForInStatement,condition:function(e){return e.left.type===Lu.MemberExpression},run:function(e){var t=to(Yu.generateName()),r=So("var",[Eo(t)]),n=yo(e.left,t);return e.body.type!==Lu.BlockStatement?Uo(e.body,_o([n,e.body]),e,"body"):Uo(null,n,e.body,"body"),Uo(e.left,r,e,"left"),null}},yp={name:"for-of",nodeReplacementRequireTransform:!1,nodeTypes:Lu.ForOfStatement,condition:function(e){var t=e.left;return t.type===Lu.VariableDeclaration&&(t=t.declarations[0].id),t.type===Lu.ObjectPattern||t.type===Lu.ArrayPattern},run:function(e){var t,r=to(Yu.generateName()),n=e.left;if(n.type===Lu.VariableDeclaration)Vo(e),t=So(n.kind,[Eo(n.declarations[0].id,r)]),t.reTransform=!0,Uo(n.declarations[0].id,r,n.declarations[0],"id");else{var o=So("var",[Eo(r)]);t=yo(n,r),Uo(n,o,e,"left")}return e.body.type===Lu.BlockStatement?Uo(null,t,e.body,"body"):Uo(e.body,_o([t,e.body]),e,"body"),null}},_p={name:"location-get",nodeReplacementRequireTransform:!1,nodeTypes:Lu.Identifier,condition:function(e,t){return!("location"!==e.name||!t)&&((t.type!==Lu.VariableDeclarator||t.id!==e)&&((t.type!==Lu.AssignmentExpression&&t.type!==Lu.AssignmentPattern||t.left!==e)&&((t.type!==Lu.FunctionExpression&&t.type!==Lu.FunctionDeclaration||t.id!==e)&&((t.type!==Lu.MemberExpression||t.property!==e)&&((t.type!==Lu.Property||t.key!==e)&&((t.type!==Lu.Property||t.value!==e||!t.shorthand)&&((t.type!==Lu.UpdateExpression||"++"!==t.operator&&"--"!==t.operator)&&((t.type!==Lu.FunctionExpression&&t.type!==Lu.FunctionDeclaration&&t.type!==Lu.ArrowFunctionExpression||t.params.indexOf(e)===-1)&&((t.type!==Lu.CallExpression||t.callee.type!==Lu.Identifier||t.callee.name!==$u.getLocation)&&(t.type!==Lu.MethodDefinition&&(t.type!==Lu.ClassDeclaration&&(t.type!==Lu.RestElement&&(t.type!==Lu.ExportSpecifier&&t.type!==Lu.ImportSpecifier)))))))))))))},run:wo},Ep={name:"location-set",nodeReplacementRequireTransform:!1,nodeTypes:Lu.AssignmentExpression,condition:function(e){return"="===e.operator&&e.left.type===Lu.Identifier&&"location"===e.left.name},run:function(e,t,r){if(!t)return null;var n="arguments"!==r&&"consequent"!==r&&"alternate"!==r&&(t.type!==Lu.SequenceExpression||t.expressions[0]===e);return xo(e.left,e.right,n)}},Sp={name:"property-get",nodeReplacementRequireTransform:!0,nodeTypes:Lu.MemberExpression,condition:function(e,t){if(e.computed||!t)return!1;if(e.property.type===Lu.Identifier&&!Ho(e.property.name))return!1;if(e.object.type===Lu.Super)return!1;var r=t.type===Lu.ParenthesizedExpression?t.expression:t;return(t.type!==Lu.AssignmentExpression||t.left!==e)&&((t.type!==Lu.UnaryExpression||"delete"!==t.operator)&&((t.type!==Lu.CallExpression||t.callee!==e)&&((t.type!==Lu.UpdateExpression||"++"!==t.operator&&"--"!==t.operator)&&((r.type!==Lu.NewExpression||r.callee!==e)&&(t.type!==Lu.ForInStatement||t.left!==e)))))},run:function(e){return To(e.property.name,e.object,e.optional)}},bp={name:"property-set",nodeReplacementRequireTransform:!0,nodeTypes:Lu.AssignmentExpression,condition:function(e){return(e.left.type!==Lu.MemberExpression||e.left.object.type!==Lu.Super)&&("="===e.operator&&e.left.type===Lu.MemberExpression&&!e.left.computed&&e.left.property.type===Lu.Identifier&&Ho(e.left.property.name))},run:function(e){var t=e.left,r=t.property;return Co(r.name,t.object,e.right)}},wp={name:"method-call",nodeReplacementRequireTransform:!0,nodeTypes:Lu.CallExpression,condition:function(e){var t=e.callee;return t.type===Lu.MemberExpression&&(t.object.type!==Lu.Super&&(t.computed?t.property.type!==Lu.Literal||Fo(t.property.value):t.property.type===Lu.Identifier&&Fo(t.property.name)))},run:function(e){var t=e.callee,r=t.computed?t.property:vo(t.property.name),n=e.optional;return Ao(t.object,r,e.arguments,n)}},xp={name:"js-protocol-last-expression",nodeReplacementRequireTransform:!0,nodeTypes:Lu.ExpressionStatement,condition:function(e,t){return!!xp.wrapLastExpr&&!!t&&t.type===Lu.Program&&t.body[t.body.length-1]===e},run:function(e){return xp.wrapLastExpr=!1,Ro(e)}},Cp={name:"static-import",nodeReplacementRequireTransform:!1,nodeTypes:Lu.Literal,condition:function(e,t){return!!t&&(t.type===Lu.ImportDeclaration||t.type===Lu.ExportAllDeclaration||t.type===Lu.ExportNamedDeclaration)&&t.source===e},run:function(e){return Cp.resolver?Oo(e,Cp.resolver):null}},Ap={name:"dynamic-import",nodeReplacementRequireTransform:!0,nodeTypes:Lu.ImportExpression,condition:function(){return!0},run:function(e){var t,r=ko(e.source,null===(t=Ap.getBaseUrl)||void 0===t?void 0:t.call(Ap));return Uo(e.source,r,e,"source"),null}},Tp={name:"declaration-destructuring",nodeReplacementRequireTransform:!0,nodeTypes:Lu.VariableDeclaration,condition:function(e,t){if((null===t||void 0===t?void 0:t.type)===Lu.ForInStatement)return!1;for(var r=0,n=e.declarations;r<n.length;r++){var o=n[r];if(o.id.type===Lu.ObjectPattern||o.id.type===Lu.ArrayPattern)return!0}return!1},run:function(e){for(var t=[],r=0,n=e.declarations;r<n.length;r++){var o=n[r];Yo(o.id,o.init||null,function(e,r){return t.push(Eo(e,r))})}return So(e.kind,t)}},Ip={name:"assignment-destructuring",nodeReplacementRequireTransform:!0,nodeTypes:Lu.AssignmentExpression,condition:function(e){return"="===e.operator&&(e.left.type===Lu.ObjectPattern||e.left.type===Lu.ArrayPattern)},run:function(e,t,r,n){var o=[],i=!0,a=null;return Yo(e.left,e.right,function(e,t,r){i&&(i=!1,r&&(a=e)),o.push(no(e,"=",t)),r&&n&&n.append(e.name)}),a&&o.push(a),co(o)}},Pp=[Qo(Lu.FunctionDeclaration),Qo(Lu.FunctionExpression),Qo(Lu.ArrowFunctionExpression),Ip,op,ip,ap,sp,cp,up,pp,hp,dp,fp,gp,vp,yp,_p,Ep,Sp,bp,wp,xp,Cp,Ap,Tp],Np=Jo(),Op=[/^\s*at .*\((\S+)\)/,/^\s*at (\S+)/,/^.*@(\S+)/,/(.+)/],kp=/(?:^|\n)(?:\s*at |.*@)(?:.*\()?(\S+?):\d+:\d+\)?/g,Lp=/:\d+:\d+$/,Dp=Object.freeze({__proto__:null,replaceProxiedUrlsInStack:ti,getFirstDestUrl:ri}),Mp=function(){function e(){this.hasTransformedAncestor=!1}return e.create=function(t,r,n,o,i){void 0===i&&(i=!1);var a=r.type===Lu.NewExpression,s=a&&!t.newExpressionAncestor,c=new e;return c.hasTransformedAncestor=t.hasTransformedAncestor||i,c.newExpressionAncestor=s?r:t.newExpressionAncestor,c.newExpressionAncestorParent=s?n:t.newExpressionAncestorParent,c.newExpressionAncestorKey=s?o:t.newExpressionAncestorKey,c},e}(),Rp=Object.prototype.toString,jp=Object.keys,Fp={hammerhead:"/hammerhead.js",task:"/task.js",iframeTask:"/iframe-task.js",messaging:"/messaging",transportWorker:"/transport-worker.js",workerHammerhead:"/worker-hammerhead.js"},Hp=JSON.parse,Up=JSON.stringify,Bp=Object.freeze({__proto__:null,parse:Hp,stringify:Up,isSerializable:gi}),Vp="/*hammerhead|script|start*/",Wp="/*hammerhead|script|end*/",Gp="/*hammerhead|script|processing-header-end*/",qp="{strict-placeholder}",zp="{sw-scope-header-value}",Kp="{worker-settings}",$p='\nif (typeof importScripts !== "undefined" && /\\[native code]/g.test(importScripts.toString())) {\n var '.concat($u.getWorkerSettings," = function () {return ").concat(Kp,'};\n importScripts((location.origin || (location.protocol + "//" + location.host)) + "').concat(Fp.workerHammerhead,'");\n}\n'),Xp="window['".concat(vc.processDomMethodName,"'] && window['").concat(vc.processDomMethodName,"']();"),Yp=vi("\n ".concat(Vp,"\n ").concat(qp,"\n\n if (typeof window !== 'undefined' && window) {\n ").concat(Xp,"\n }\n\n ").concat(Gp,"\n")),Qp=vi("\n ".concat(Vp,"\n ").concat(qp,"\n ").concat(zp,"\n\n if (typeof window !== 'undefined' && window){\n ").concat(Xp,"\n\n if (window.").concat($u.getProperty," && typeof ").concat($u.getProperty," === 'undefined')\n var ").concat($u.getLocation," = window.").concat($u.getLocation,",\n ").concat($u.setLocation," = window.").concat($u.setLocation,",\n ").concat($u.setProperty," = window.").concat($u.setProperty,",\n ").concat($u.getProperty," = window.").concat($u.getProperty,",\n ").concat($u.callMethod," = window.").concat($u.callMethod,",\n ").concat($u.getEval," = window.").concat($u.getEval,",\n ").concat($u.processScript," = window.").concat($u.processScript,",\n ").concat($u.processHtml," = window.").concat($u.processHtml,",\n ").concat($u.getPostMessage," = window.").concat($u.getPostMessage,",\n ").concat($u.getProxyUrl," = window.").concat($u.getProxyUrl,",\n ").concat($u.restArray," = window.").concat($u.restArray,",\n ").concat($u.restObject," = window.").concat($u.restObject,",\n ").concat($u.arrayFrom," = window.").concat($u.arrayFrom,";\n } else {\n if (typeof ").concat($u.getProperty," === 'undefined')\n var ").concat($u.getLocation," = function(l){return l},\n ").concat($u.setLocation," = function(l,v){return l = v},\n ").concat($u.setProperty," = function(o,p,v){return o[p] = v},\n ").concat($u.getProperty," = function(o,p){return o[p]},\n ").concat($u.callMethod," = function(o,p,a){return o[p].apply(o,a)},\n ").concat($u.getEval," = function(e){return e},\n ").concat($u.processScript," = function(s){return s},\n ").concat($u.processHtml," = function(h){return h},\n ").concat($u.getPostMessage," = function(w,p){return arguments.length===1?w.postMessage:p},\n ").concat($u.getProxyUrl," = function(u,d){return u},\n ").concat($u.restArray," = function(a,i){return Array.prototype.slice.call(a, i)},\n ").concat($u.restObject," = function(o,p){var k=Object.keys(o),n={};for(var i=0;i<k.length;++i)if(p.indexOf(k[i])<0)n[k[i]]=o[k[i]];return n},\n ").concat($u.arrayFrom,' = function(r){if(!r)return r;return!Array.isArray(r)&&"function"==typeof r[Symbol.iterator]?Array.from(r):r};\n\n ').concat($p,"\n }\n ").concat(Gp,"\n")),Jp=new RegExp("".concat(di(Vp),"[\\S\\s]+?").concat(di(Gp),"\n?"),"gi"),Zp=new RegExp("\n?".concat(di(Wp),"\\s*"),"gi"),eh=Object.freeze({__proto__:null,SCRIPT_PROCESSING_START_COMMENT:Vp,SCRIPT_PROCESSING_END_COMMENT:Wp,SCRIPT_PROCESSING_END_HEADER_COMMENT:Gp,remove:yi,add:_i}),th=t(function(e,t){function r(e,t){for(var r=65536,n=0;n<t.length;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}}function n(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&p.test(String.fromCharCode(e)):t!==!1&&r(e,d)))}function o(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&h.test(String.fromCharCode(e)):t!==!1&&(r(e,d)||r(e,f)))))}t.__esModule=!0,t.isIdentifierChar=o,t.isIdentifierStart=n,t.reservedWords=t.keywords=t.keywordRelationalOperator=void 0;var i={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"};t.reservedWords=i;var a="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",s={5:a,"5module":a+" export import",6:a+" const class extends export import super"};t.keywords=s;var c=/^in(stanceof)?$/;t.keywordRelationalOperator=c;var l="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA--zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍--_",p=new RegExp("["+l+"]"),h=new RegExp("["+l+u+"]");
l=u=null;var d=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938],f=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239]}),rh=t(function(e,t){function r(e,t){return new o(e,{beforeExpr:!0,binop:t})}function n(e,t){return void 0===t&&(t={}),t.keyword=e,s[e]=new o(e,t)}t.__esModule=!0,t.types=t.keywords=t.TokenType=void 0;var o=function(){function e(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null}return e}();t.TokenType=o;var i={beforeExpr:!0},a={startsExpr:!0},s={};t.keywords=s;var c={num:new o("num",a),regexp:new o("regexp",a),string:new o("string",a),name:new o("name",a),privateId:new o("privateId",a),eof:new o("eof"),bracketL:new o("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new o("]"),braceL:new o("{",{beforeExpr:!0,startsExpr:!0}),braceR:new o("}"),parenL:new o("(",{beforeExpr:!0,startsExpr:!0}),parenR:new o(")"),comma:new o(",",i),semi:new o(";",i),colon:new o(":",i),dot:new o("."),question:new o("?",i),questionDot:new o("?."),arrow:new o("=>",i),template:new o("template"),invalidTemplate:new o("invalidTemplate"),ellipsis:new o("...",i),backQuote:new o("`",a),dollarBraceL:new o("${",{beforeExpr:!0,startsExpr:!0}),eq:new o("=",{beforeExpr:!0,isAssign:!0}),assign:new o("_=",{beforeExpr:!0,isAssign:!0}),incDec:new o("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new o("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:r("||",1),logicalAND:r("&&",2),bitwiseOR:r("|",3),bitwiseXOR:r("^",4),bitwiseAND:r("&",5),equality:r("==/!=/===/!==",6),relational:r("</>/<=/>=",7),bitShift:r("<</>>/>>>",8),plusMin:new o("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:r("%",10),star:r("*",10),slash:r("/",10),starstar:new o("**",{beforeExpr:!0}),coalesce:r("??",1),_break:n("break"),_case:n("case",i),_catch:n("catch"),_continue:n("continue"),_debugger:n("debugger"),_default:n("default",i),_do:n("do",{isLoop:!0,beforeExpr:!0}),_else:n("else",i),_finally:n("finally"),_for:n("for",{isLoop:!0}),_function:n("function",a),_if:n("if"),_return:n("return",i),_switch:n("switch"),_throw:n("throw",i),_try:n("try"),_var:n("var"),_const:n("const"),_while:n("while",{isLoop:!0}),_with:n("with"),_new:n("new",{beforeExpr:!0,startsExpr:!0}),_this:n("this",a),_super:n("super",a),_class:n("class",a),_extends:n("extends",i),_export:n("export"),_import:n("import",a),_null:n("null",a),_true:n("true",a),_false:n("false",a),_in:n("in",{beforeExpr:!0,binop:7}),_instanceof:n("instanceof",{beforeExpr:!0,binop:7}),_typeof:n("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:n("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:n("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})};t.types=c}),nh=t(function(e,t){function r(e){return 10===e||13===e||8232===e||8233===e}function n(e,t,n){void 0===n&&(n=e.length);for(var o=t;o<n;o++){var i=e.charCodeAt(o);if(r(i))return o<n-1&&13===i&&10===e.charCodeAt(o+1)?o+2:o+1}return-1}t.__esModule=!0,t.isNewLine=r,t.lineBreakG=t.lineBreak=void 0,t.nextLineBreak=n,t.skipWhiteSpace=t.nonASCIIwhitespace=void 0;var o=/\r\n?|\n|\u2028|\u2029/;t.lineBreak=o;var i=new RegExp(o.source,"g");t.lineBreakG=i;var a=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;t.nonASCIIwhitespace=a;var s=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;t.skipWhiteSpace=s}),oh=t(function(e,t){function r(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}t.__esModule=!0,t.loneSurrogate=t.isArray=t.hasOwn=void 0,t.wordsRegexp=r;var n=Object.prototype,o=n.hasOwnProperty,i=n.toString,a=Object.hasOwn||function(e,t){return o.call(e,t)};t.hasOwn=a;var s=Array.isArray||function(e){return"[object Array]"===i.call(e)};t.isArray=s;var c=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;t.loneSurrogate=c}),ih=t(function(e,t){function r(e,t){for(var r=1,o=0;;){var i=(0,nh.nextLineBreak)(e,o,t);if(i<0)return new n(r,t-o);++r,o=i}}t.__esModule=!0,t.SourceLocation=t.Position=void 0,t.getLineInfo=r;var n=function(){function e(e,t){this.line=e,this.column=t}return e.prototype.offset=function(t){return new e(this.line,this.column+t)},e}();t.Position=n;var o=function(){function e(e,t,r){this.start=t,this.end=r,null!==e.sourceFile&&(this.source=e.sourceFile)}return e}();t.SourceLocation=o}),ah=t(function(e,t){function r(e){var t={};for(var r in o)t[r]=e&&(0,oh.hasOwn)(e,r)?e[r]:o[r];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!i&&"object"==typeof console&&console.warn&&(i=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),(0,oh.isArray)(t.onToken)){var a=t.onToken;t.onToken=function(e){return a.push(e)}}return(0,oh.isArray)(t.onComment)&&(t.onComment=n(t,t.onComment)),t}function n(e,t){return function(r,n,o,i,a,s){var c={type:r?"Block":"Line",value:n,start:o,end:i};e.locations&&(c.loc=new ih.SourceLocation(this,a,s)),e.ranges&&(c.range=[o,i]),t.push(c)}}t.__esModule=!0,t.defaultOptions=void 0,t.getOptions=r;var o={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};t.defaultOptions=o;var i=!1}),sh=t(function(e,t){function r(e,t){return o|(e?i:0)|(t?a:0)}t.__esModule=!0,t.SCOPE_VAR=t.SCOPE_TOP=t.SCOPE_SUPER=t.SCOPE_SIMPLE_CATCH=t.SCOPE_GENERATOR=t.SCOPE_FUNCTION=t.SCOPE_DIRECT_SUPER=t.SCOPE_CLASS_STATIC_BLOCK=t.SCOPE_ASYNC=t.SCOPE_ARROW=t.BIND_VAR=t.BIND_SIMPLE_CATCH=t.BIND_OUTSIDE=t.BIND_NONE=t.BIND_LEXICAL=t.BIND_FUNCTION=void 0,t.functionFlags=r;var n=1,o=2,i=4,a=8,s=16,c=32,l=64,u=128,p=256,h=n|o|p;t.SCOPE_VAR=h,t.SCOPE_CLASS_STATIC_BLOCK=p,t.SCOPE_DIRECT_SUPER=u,t.SCOPE_SUPER=l,t.SCOPE_SIMPLE_CATCH=c,t.SCOPE_ARROW=s,t.SCOPE_GENERATOR=a,t.SCOPE_ASYNC=i,t.SCOPE_FUNCTION=o,t.SCOPE_TOP=n;var d=0,f=1,m=2,g=3,v=4,y=5;t.BIND_OUTSIDE=y,t.BIND_SIMPLE_CATCH=v,t.BIND_FUNCTION=g,t.BIND_LEXICAL=m,t.BIND_VAR=f,t.BIND_NONE=d}),ch=t(function(e,t){t.__esModule=!0,t.Parser=void 0;var r=function(){function e(e,t,r){this.options=e=(0,ah.getOptions)(e),this.sourceFile=e.sourceFile,this.keywords=(0,oh.wordsRegexp)(th.keywords[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var n="";e.allowReserved!==!0&&(n=th.reservedWords[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(n+=" await")),this.reservedWords=(0,oh.wordsRegexp)(n);var o=(n?n+" ":"")+th.reservedWords.strict;this.reservedWordsStrict=(0,oh.wordsRegexp)(o),this.reservedWordsStrictBind=(0,oh.wordsRegexp)(o+" "+th.reservedWords.strictBind),this.input=String(t),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf("\n",r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(nh.lineBreak).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=rh.types.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(sh.SCOPE_TOP),this.regexpState=null,this.privateNameStack=[]}return e.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Object.defineProperty(e.prototype,"inFunction",{get:function(){return(this.currentVarScope().flags&sh.SCOPE_FUNCTION)>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inGenerator",{get:function(){return(this.currentVarScope().flags&sh.SCOPE_GENERATOR)>0&&!this.currentVarScope().inClassFieldInit},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inAsync",{get:function(){return(this.currentVarScope().flags&sh.SCOPE_ASYNC)>0&&!this.currentVarScope().inClassFieldInit},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canAwait",{get:function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&sh.SCOPE_CLASS_STATIC_BLOCK)return!1;if(t.flags&sh.SCOPE_FUNCTION)return(t.flags&sh.SCOPE_ASYNC)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowSuper",{get:function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&sh.SCOPE_SUPER)>0||r||this.options.allowSuperOutsideMethod},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowDirectSuper",{get:function(){return(this.currentThisScope().flags&sh.SCOPE_DIRECT_SUPER)>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"treatFunctionsAsVar",{get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowNewDotTarget",{get:function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&(sh.SCOPE_FUNCTION|sh.SCOPE_CLASS_STATIC_BLOCK))>0||r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inClassStaticBlock",{get:function(){return(this.currentVarScope().flags&sh.SCOPE_CLASS_STATIC_BLOCK)>0},enumerable:!1,configurable:!0}),e.extend=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=this,n=0;n<e.length;n++)r=e[n](r);return r},e.parse=function(e,t){return new this(t,e).parse()},e.parseExpressionAt=function(e,t,r){var n=new this(r,e,t);return n.nextToken(),n.parseExpression()},e.tokenizer=function(e,t){return new this(t,e)},e}();t.Parser=r}),lh=Ei,uh=ch.Parser.prototype,ph=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;uh.strictDirective=function(e){for(;;){nh.skipWhiteSpace.lastIndex=e,e+=nh.skipWhiteSpace.exec(this.input)[0].length;var t=ph.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2]))return!1;e+=t[0].length,nh.skipWhiteSpace.lastIndex=e,e+=nh.skipWhiteSpace.exec(this.input)[0].length,";"===this.input[e]&&e++}},uh.eat=function(e){return this.type===e&&(this.next(),!0)},uh.isContextual=function(e){return this.type===rh.types.name&&this.value===e&&!this.containsEsc},uh.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},uh.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},uh.canInsertSemicolon=function(){return this.type===rh.types.eof||this.type===rh.types.braceR||nh.lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},uh.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},uh.semicolon=function(){this.eat(rh.types.semi)||this.insertSemicolon()||this.unexpected()},uh.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},uh.expect=function(e){this.eat(e)||this.unexpected()},uh.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},uh.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}},uh.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;return t?(r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),void(n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property"))):r>=0||n>=0},uh.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},uh.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var hh=Object.defineProperty({DestructuringErrors:lh},"__esModule",{value:!0}),dh=ch.Parser.prototype;dh.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==rh.types.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=0,o=Object.keys(this.undefinedExports);n<o.length;n++){var i=o[n];this.raiseRecoverable(this.undefinedExports[i].start,"Export '".concat(i,"' is not defined"))}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var fh={kind:"loop"},mh={kind:"switch"};dh.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;nh.skipWhiteSpace.lastIndex=this.pos;var t=nh.skipWhiteSpace.exec(this.input),r=this.pos+t[0].length,n=this.input.charCodeAt(r);if(91===n||92===n||n>55295&&n<56320)return!0;if(e)return!1;if(123===n)return!0;if((0,th.isIdentifierStart)(n,!0)){for(var o=r+1;(0,th.isIdentifierChar)(n=this.input.charCodeAt(o),!0);)++o;if(92===n||n>55295&&n<56320)return!0;var i=this.input.slice(r,o);if(!th.keywordRelationalOperator.test(i))return!0}return!1},dh.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;nh.skipWhiteSpace.lastIndex=this.pos;var e,t=nh.skipWhiteSpace.exec(this.input),r=this.pos+t[0].length;return!(nh.lineBreak.test(this.input.slice(this.pos,r))||"function"!==this.input.slice(r,r+8)||r+8!==this.input.length&&((0,th.isIdentifierChar)(e=this.input.charCodeAt(r+8))||e>55295&&e<56320))},dh.parseStatement=function(e,t,r){var n,o=this.type,i=this.startNode();switch(this.isLet(e)&&(o=rh.types._var,n="let"),o){case rh.types._break:case rh.types._continue:return this.parseBreakContinueStatement(i,o.keyword);case rh.types._debugger:return this.parseDebuggerStatement(i);case rh.types._do:return this.parseDoStatement(i);case rh.types._for:return this.parseForStatement(i);case rh.types._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case rh.types._class:return e&&this.unexpected(),this.parseClass(i,!0);case rh.types._if:return this.parseIfStatement(i);case rh.types._return:return this.parseReturnStatement(i);case rh.types._switch:return this.parseSwitchStatement(i);case rh.types._throw:return this.parseThrowStatement(i);case rh.types._try:return this.parseTryStatement(i);case rh.types._const:case rh.types._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(i,n);case rh.types._while:return this.parseWhileStatement(i);case rh.types._with:return this.parseWithStatement(i);case rh.types.braceL:return this.parseBlock(!0,i);case rh.types.semi:return this.parseEmptyStatement(i);case rh.types._export:case rh.types._import:if(this.options.ecmaVersion>10&&o===rh.types._import){nh.skipWhiteSpace.lastIndex=this.pos;var a=nh.skipWhiteSpace.exec(this.input),s=this.pos+a[0].length,c=this.input.charCodeAt(s);if(40===c||46===c)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),o===rh.types._import?this.parseImport(i):this.parseExport(i,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.value,u=this.parseExpression();return o===rh.types.name&&"Identifier"===u.type&&this.eat(rh.types.colon)?this.parseLabeledStatement(i,l,u,e):this.parseExpressionStatement(i,u)}},dh.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.eat(rh.types.semi)||this.insertSemicolon()?e.label=null:this.type!==rh.types.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var o=this.labels[n];if(null==e.label||o.name===e.label.name){if(null!=o.kind&&(r||"loop"===o.kind))break;if(e.label&&r)break}}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},dh.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},dh.parseDoStatement=function(e){return this.next(),this.labels.push(fh),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(rh.types._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(rh.types.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},dh.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(fh),this.enterScope(0),this.expect(rh.types.parenL),this.type===rh.types.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===rh.types._var||this.type===rh.types._const||r){var n=this.startNode(),o=r?"let":this.value;return this.next(),this.parseVar(n,!0,o),this.finishNode(n,"VariableDeclaration"),(this.type===rh.types._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===n.declarations.length?(this.options.ecmaVersion>=9&&(this.type===rh.types._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,n)):(t>-1&&this.unexpected(t),this.parseFor(e,n))}var i=this.isContextual("let"),a=!1,s=new hh.DestructuringErrors,c=this.parseExpression(!(t>-1)||"await",s);return this.type===rh.types._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===rh.types._in?t>-1&&this.unexpected(t):e.await=t>-1),i&&a&&this.raise(c.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(c,!1,s),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},dh.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,vh|(r?0:yh),!1,t)},dh.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(rh.types._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},dh.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(rh.types.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},dh.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(rh.types.braceL),this.labels.push(mh),this.enterScope(0);for(var t,r=!1;this.type!==rh.types.braceR;)if(this.type===rh.types._case||this.type===rh.types._default){var n=this.type===rh.types._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(rh.types.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},dh.parseThrowStatement=function(e){return this.next(),nh.lineBreak.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var gh=[];dh.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===rh.types._catch){var t=this.startNode();if(this.next(),this.eat(rh.types.parenL)){t.param=this.parseBindingAtom();var r="Identifier"===t.param.type;this.enterScope(r?sh.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(t.param,r?sh.BIND_SIMPLE_CATCH:sh.BIND_LEXICAL),this.expect(rh.types.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(rh.types._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},dh.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},dh.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(fh),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},dh.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},dh.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},dh.parseLabeledStatement=function(e,t,r,n){for(var o,i=Si(this.labels);!(o=i()).done;){var a=o.value;a.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var s=this.type.isLoop?"loop":this.type===rh.types._switch?"switch":null,c=this.labels.length-1;c>=0;c--){var a=this.labels[c];if(a.statementStart!==e.start)break;a.statementStart=this.start,a.kind=s}return this.labels.push({name:t,kind:s,statementStart:this.start}),e.body=this.parseStatement(n?n.indexOf("label")===-1?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},dh.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},dh.parseBlock=function(e,t,r){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(rh.types.braceL),e&&this.enterScope(0);this.type!==rh.types.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},dh.parseFor=function(e,t){return e.init=t,this.expect(rh.types.semi),e.test=this.type===rh.types.semi?null:this.parseExpression(),this.expect(rh.types.semi),e.update=this.type===rh.types.parenR?null:this.parseExpression(),this.expect(rh.types.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},dh.parseForIn=function(e,t){var r=this.type===rh.types._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,"".concat(r?"for-in":"for-of"," loop variable declaration may not have an initializer")),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(rh.types.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},dh.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(rh.types.eq)?n.init=this.parseMaybeAssign(t):"const"!==r||this.type===rh.types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===n.id.type||t&&(this.type===rh.types._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(rh.types.comma))break}return e},dh.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?sh.BIND_VAR:sh.BIND_LEXICAL,!1)};var vh=1,yh=2,_h=4;dh.parseFunction=function(e,t,r,n,o){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===rh.types.star&&t&yh&&this.unexpected(),e.generator=this.eat(rh.types.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&vh&&(e.id=t&_h&&this.type!==rh.types.name?null:this.parseIdent(),!e.id||t&yh||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?sh.BIND_VAR:sh.BIND_LEXICAL:sh.BIND_FUNCTION));var i=this.yieldPos,a=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope((0,sh.functionFlags)(e.async,e.generator)),t&vh||(e.id=this.type===rh.types.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,o),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=s,this.finishNode(e,t&vh?"FunctionDeclaration":"FunctionExpression")},dh.parseFunctionParams=function(e){this.expect(rh.types.parenL),e.params=this.parseBindingList(rh.types.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},dh.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),o=this.startNode(),i=!1;for(o.body=[],this.expect(rh.types.braceL);this.type!==rh.types.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(o.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(i&&this.raise(a.start,"Duplicate constructor in the same class"),i=!0):a.key&&"PrivateIdentifier"===a.key.type&&xi(n,a)&&this.raiseRecoverable(a.key.start,"Identifier '#".concat(a.key.name,"' has already been declared")))}return this.strict=r,this.next(),e.body=this.finishNode(o,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},dh.parseClassElement=function(e){if(this.eat(rh.types.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),n="",o=!1,i=!1,a="method",s=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(rh.types.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===rh.types.star?s=!0:n="static"}if(r["static"]=s,!n&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==rh.types.star||this.canInsertSemicolon()?n="async":i=!0),!n&&(t>=9||!i)&&this.eat(rh.types.star)&&(o=!0),!n&&!i&&!o){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=c:n=c)}if(n?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=n,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===rh.types.parenL||"method"!==a||o||i){var l=!r["static"]&&Ci(r,"constructor"),u=l&&e;l&&"method"!==a&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=l?"constructor":a,this.parseClassMethod(r,o,i,u)}else this.parseClassField(r);return r},dh.isClassElementNameStart=function(){return this.type===rh.types.name||this.type===rh.types.privateId||this.type===rh.types.num||this.type===rh.types.string||this.type===rh.types.bracketL||this.type.keyword},dh.parseClassElementName=function(e){this.type===rh.types.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},dh.parseClassMethod=function(e,t,r,n){var o=e.key;"constructor"===e.kind?(t&&this.raise(o.start,"Constructor can't be a generator"),r&&this.raise(o.start,"Constructor can't be an async method")):e["static"]&&Ci(e,"prototype")&&this.raise(o.start,"Classes may not have a static property named prototype");var i=e.value=this.parseMethod(t,r,n);return"get"===e.kind&&0!==i.params.length&&this.raiseRecoverable(i.start,"getter should have no params"),"set"===e.kind&&1!==i.params.length&&this.raiseRecoverable(i.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===i.params[0].type&&this.raiseRecoverable(i.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},dh.parseClassField=function(e){if(Ci(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e["static"]&&Ci(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(rh.types.eq)){var t=this.currentThisScope(),r=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=r}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},dh.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(sh.SCOPE_CLASS_STATIC_BLOCK|sh.SCOPE_SUPER);this.type!==rh.types.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},dh.parseClassId=function(e,t){this.type===rh.types.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,sh.BIND_LEXICAL,!1)):(t===!0&&this.unexpected(),e.id=null)},dh.parseClassSuper=function(e){e.superClass=this.eat(rh.types._extends)?this.parseExprSubscripts(!1):null},dh.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},dh.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,r=e.used,n=this.privateNameStack.length,o=0===n?null:this.privateNameStack[n-1],i=0;i<r.length;++i){var a=r[i];(0,oh.hasOwn)(t,a.name)||(o?o.used.push(a):this.raiseRecoverable(a.start,"Private field '#".concat(a.name,"' must be declared in an enclosing class")))}},dh.parseExport=function(e,t){if(this.next(),this.eat(rh.types.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),
this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==rh.types.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(rh.types._default)){this.checkExport(t,"default",this.lastTokStart);var r=void 0;if(this.type===rh.types._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(n,vh|_h,!1,r)}else if(this.type===rh.types._class){var o=this.startNode();e.declaration=this.parseClass(o,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==rh.types.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i,a=Si(e.specifiers);!(i=a()).done;){var s=i.value;this.checkUnreserved(s.local),this.checkLocalExport(s.local),"Literal"===s.local.type&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},dh.checkExport=function(e,t,r){e&&((0,oh.hasOwn)(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)},dh.checkPatternExport=function(e,t){var r=t.type;if("Identifier"===r)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===r)for(var n,o=Si(t.properties);!(n=o()).done;){var i=n.value;this.checkPatternExport(e,i)}else if("ArrayPattern"===r)for(var a,s=Si(t.elements);!(a=s()).done;){var c=a.value;c&&this.checkPatternExport(e,c)}else"Property"===r?this.checkPatternExport(e,t.value):"AssignmentPattern"===r?this.checkPatternExport(e,t.left):"RestElement"===r?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===r&&this.checkPatternExport(e,t.expression)},dh.checkVariableExport=function(e,t){if(e)for(var r,n=Si(t);!(r=n()).done;){var o=r.value;this.checkPatternExport(e,o.id)}},dh.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},dh.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(rh.types.braceL);!this.eat(rh.types.braceR);){if(r)r=!1;else if(this.expect(rh.types.comma),this.afterTrailingComma(rh.types.braceR))break;var n=this.startNode();n.local=this.parseModuleExportName(),n.exported=this.eatContextual("as")?this.parseModuleExportName():n.local,this.checkExport(e,n.exported["Identifier"===n.exported.type?"name":"value"],n.exported.start),t.push(this.finishNode(n,"ExportSpecifier"))}return t},dh.parseImport=function(e){return this.next(),this.type===rh.types.string?(e.specifiers=gh,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===rh.types.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},dh.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===rh.types.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLValSimple(r.local,sh.BIND_LEXICAL),e.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(rh.types.comma))return e}if(this.type===rh.types.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLValSimple(r.local,sh.BIND_LEXICAL),e.push(this.finishNode(r,"ImportNamespaceSpecifier")),e}for(this.expect(rh.types.braceL);!this.eat(rh.types.braceR);){if(t)t=!1;else if(this.expect(rh.types.comma),this.afterTrailingComma(rh.types.braceR))break;var r=this.startNode();r.imported=this.parseModuleExportName(),this.eatContextual("as")?r.local=this.parseIdent():(this.checkUnreserved(r.imported),r.local=r.imported),this.checkLValSimple(r.local,sh.BIND_LEXICAL),e.push(this.finishNode(r,"ImportSpecifier"))}return e},dh.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===rh.types.string){var e=this.parseLiteral(this.value);return oh.loneSurrogate.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},dh.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},dh.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var Eh=ch.Parser.prototype;Eh.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n,o=Ai(e.properties);!(n=o()).done;){var i=n.value;this.toAssignable(i,t),"RestElement"!==i.type||"ArrayPattern"!==i.argument.type&&"ObjectPattern"!==i.argument.type||this.raise(i.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e},Eh.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var o=e[n];o&&this.toAssignable(o,t)}if(r){var i=e[r-1];6===this.options.ecmaVersion&&t&&i&&"RestElement"===i.type&&"Identifier"!==i.argument.type&&this.unexpected(i.argument.start)}return e},Eh.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},Eh.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==rh.types.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Eh.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case rh.types.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(rh.types.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case rh.types.braceL:return this.parseObj(!0)}return this.parseIdent()},Eh.parseBindingList=function(e,t,r){for(var n=[],o=!0;!this.eat(e);)if(o?o=!1:this.expect(rh.types.comma),t&&this.type===rh.types.comma)n.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===rh.types.ellipsis){var i=this.parseRestBinding();this.parseBindingListItem(i),n.push(i),this.type===rh.types.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var a=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(a),n.push(a)}return n},Eh.parseBindingListItem=function(e){return e},Eh.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(rh.types.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},Eh.checkLValSimple=function(e,t,r){void 0===t&&(t=sh.BIND_NONE);var n=t!==sh.BIND_NONE;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(t===sh.BIND_LEXICAL&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&((0,oh.hasOwn)(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==sh.BIND_OUTSIDE&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},Eh.checkLValPattern=function(e,t,r){switch(void 0===t&&(t=sh.BIND_NONE),e.type){case"ObjectPattern":for(var n,o=Ai(e.properties);!(n=o()).done;){var i=n.value;this.checkLValInnerPattern(i,t,r)}break;case"ArrayPattern":for(var a,s=Ai(e.elements);!(a=s()).done;){var c=a.value;c&&this.checkLValInnerPattern(c,t,r)}break;default:this.checkLValSimple(e,t,r)}},Eh.checkLValInnerPattern=function(e,t,r){switch(void 0===t&&(t=sh.BIND_NONE),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var Sh=t(function(e,t){t.__esModule=!0,t.types=t.TokContext=void 0;var r=function(){function e(e,t,r,n,o){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n,this.generator=!!o}return e}();t.TokContext=r;var n={b_stat:new r("{",(!1)),b_expr:new r("{",(!0)),b_tmpl:new r("${",(!1)),p_stat:new r("(",(!1)),p_expr:new r("(",(!0)),q_tmpl:new r("`",(!0),(!0),function(e){return e.tryReadTemplateToken()}),f_stat:new r("function",(!1)),f_expr:new r("function",(!0)),f_expr_gen:new r("function",(!0),(!1),null,(!0)),f_gen:new r("function",(!1),(!1),null,(!0))};t.types=n;var o=ch.Parser.prototype;o.initialContext=function(){return[n.b_stat]},o.curContext=function(){return this.context[this.context.length-1]},o.braceIsBlock=function(e){var t=this.curContext();return t===n.f_expr||t===n.f_stat||(e!==rh.types.colon||t!==n.b_stat&&t!==n.b_expr?e===rh.types._return||e===rh.types.name&&this.exprAllowed?nh.lineBreak.test(this.input.slice(this.lastTokEnd,this.start)):e===rh.types._else||e===rh.types.semi||e===rh.types.eof||e===rh.types.parenR||e===rh.types.arrow||(e===rh.types.braceL?t===n.b_stat:e!==rh.types._var&&e!==rh.types._const&&e!==rh.types.name&&!this.exprAllowed):!t.isExpr)},o.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},o.updateContext=function(e){var t,r=this.type;r.keyword&&e===rh.types.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},o.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},rh.types.parenR.updateContext=rh.types.braceR.updateContext=function(){if(1===this.context.length)return void(this.exprAllowed=!0);var e=this.context.pop();e===n.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},rh.types.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?n.b_stat:n.b_expr),this.exprAllowed=!0},rh.types.dollarBraceL.updateContext=function(){this.context.push(n.b_tmpl),this.exprAllowed=!0},rh.types.parenL.updateContext=function(e){var t=e===rh.types._if||e===rh.types._for||e===rh.types._with||e===rh.types._while;this.context.push(t?n.p_stat:n.p_expr),this.exprAllowed=!0},rh.types.incDec.updateContext=function(){},rh.types._function.updateContext=rh.types._class.updateContext=function(e){!e.beforeExpr||e===rh.types._else||e===rh.types.semi&&this.curContext()!==n.p_stat||e===rh.types._return&&nh.lineBreak.test(this.input.slice(this.lastTokEnd,this.start))||(e===rh.types.colon||e===rh.types.braceL)&&this.curContext()===n.b_stat?this.context.push(n.f_stat):this.context.push(n.f_expr),this.exprAllowed=!1},rh.types.backQuote.updateContext=function(){this.curContext()===n.q_tmpl?this.context.pop():this.context.push(n.q_tmpl),this.exprAllowed=!1},rh.types.star.updateContext=function(e){if(e===rh.types._function){var t=this.context.length-1;this.context[t]===n.f_expr?this.context[t]=n.f_expr_gen:this.context[t]=n.f_gen}this.exprAllowed=!0},rh.types.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==rh.types.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t}}),bh=ch.Parser.prototype;bh.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,o=e.key;switch(o.type){case"Identifier":n=o.name;break;case"Literal":n=String(o.value);break;default:return}var i=e.kind;if(this.options.ecmaVersion>=6)return void("__proto__"===n&&"init"===i&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=o.start):this.raiseRecoverable(o.start,"Redefinition of __proto__ property")),t.proto=!0));n="$"+n;var a=t[n];if(a){var s=void 0;s="init"===i?this.strict&&a.init||a.get||a.set:a.init||a[i],s&&this.raiseRecoverable(o.start,"Redefinition of property")}else a=t[n]={init:!1,get:!1,set:!1};a[i]=!0}},bh.parseExpression=function(e,t){var r=this.start,n=this.startLoc,o=this.parseMaybeAssign(e,t);if(this.type===rh.types.comma){var i=this.startNodeAt(r,n);for(i.expressions=[o];this.eat(rh.types.comma);)i.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(i,"SequenceExpression")}return o},bh.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,o=-1,i=-1,a=-1;t?(o=t.parenthesizedAssign,i=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new hh.DestructuringErrors,n=!0);var s=this.start,c=this.startLoc;this.type!==rh.types.parenL&&this.type!==rh.types.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var l=this.parseMaybeConditional(e,t);if(r&&(l=r.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===rh.types.eq&&(l=this.toAssignable(l,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===rh.types.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(u,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),o>-1&&(t.parenthesizedAssign=o),i>-1&&(t.trailingComma=i),l},bh.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,o=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return o;if(this.eat(rh.types.question)){var i=this.startNodeAt(r,n);return i.test=o,i.consequent=this.parseMaybeAssign(),this.expect(rh.types.colon),i.alternate=this.parseMaybeAssign(e),this.finishNode(i,"ConditionalExpression")}return o},bh.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,o=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)?o:o.start===r&&"ArrowFunctionExpression"===o.type?o:this.parseExprOp(o,r,n,-1,e)},bh.parseExprOp=function(e,t,r,n,o){var i=this.type.binop;if(null!=i&&(!o||this.type!==rh.types._in)&&i>n){var a=this.type===rh.types.logicalOR||this.type===rh.types.logicalAND,s=this.type===rh.types.coalesce;s&&(i=rh.types.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,o),l,u,i,o),h=this.buildBinary(t,r,e,p,c,a||s);return(a&&this.type===rh.types.coalesce||s&&(this.type===rh.types.logicalOR||this.type===rh.types.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(h,t,r,n,o)}return e},bh.buildBinary=function(e,t,r,n,o,i){"PrivateIdentifier"===n.type&&this.raise(n.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=r,a.operator=o,a.right=n,this.finishNode(a,i?"LogicalExpression":"BinaryExpression")},bh.parseMaybeUnary=function(e,t,r,n){var o,i=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(n),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===rh.types.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,n),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&"delete"===s.operator&&"Identifier"===s.argument.type?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):"delete"===s.operator&&ki(s.argument)?this.raiseRecoverable(s.start,"Private fields can not be deleted"):t=!0,o=this.finishNode(s,c?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==rh.types.privateId){if(o=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(i,a);s.operator=this.value,s.prefix=!1,s.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(s,"UpdateExpression")}}else(n||0===this.privateNameStack.length)&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==rh.types._in&&this.unexpected();return r||!this.eat(rh.types.starstar)?o:t?void this.unexpected(this.lastTokStart):this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,n),"**",!1)},bh.parseExprSubscripts=function(e,t){var r=this.start,n=this.startLoc,o=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===o.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return o;var i=this.parseSubscripts(o,r,n,!1,t);return e&&"MemberExpression"===i.type&&(e.parenthesizedAssign>=i.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=i.start&&(e.parenthesizedBind=-1),e.trailingComma>=i.start&&(e.trailingComma=-1)),i},bh.parseSubscripts=function(e,t,r,n,o){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,a=!1;;){var s=this.parseSubscript(e,t,r,n,i,a,o);if(s.optional&&(a=!0),s===e||"ArrowFunctionExpression"===s.type){if(a){var c=this.startNodeAt(t,r);c.expression=s,s=this.finishNode(c,"ChainExpression")}return s}e=s}},bh.parseSubscript=function(e,t,r,n,o,i,a){var s=this.options.ecmaVersion>=11,c=s&&this.eat(rh.types.questionDot);n&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(rh.types.bracketL);if(l||c&&this.type!==rh.types.parenL&&this.type!==rh.types.backQuote||this.eat(rh.types.dot)){var u=this.startNodeAt(t,r);u.object=e,l?(u.property=this.parseExpression(),this.expect(rh.types.bracketR)):this.type===rh.types.privateId&&"Super"!==e.type?u.property=this.parsePrivateIdent():u.property=this.parseIdent("never"!==this.options.allowReserved),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,"MemberExpression")}else if(!n&&this.eat(rh.types.parenL)){var p=new hh.DestructuringErrors,h=this.yieldPos,d=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(rh.types.parenR,this.options.ecmaVersion>=8,!1,p);if(o&&!c&&!this.canInsertSemicolon()&&this.eat(rh.types.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=d,this.awaitIdentPos=f,this.parseArrowExpression(this.startNodeAt(t,r),m,!0,a);this.checkExpressionErrors(p,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var u=this.startNodeAt(t,r);u.callee=e,u.arguments=m,s&&(u.optional=c),e=this.finishNode(u,"CallExpression")}else if(this.type===rh.types.backQuote){(c||i)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var u=this.startNodeAt(t,r);u.tag=e,u.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(u,"TaggedTemplateExpression")}return e},bh.parseExprAtom=function(e,t){this.type===rh.types.slash&&this.readRegexp();var r,n=this.potentialArrowAt===this.start;switch(this.type){case rh.types._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==rh.types.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==rh.types.dot&&this.type!==rh.types.bracketL&&this.type!==rh.types.parenL&&this.unexpected(),this.finishNode(r,"Super");case rh.types._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case rh.types.name:var o=this.start,i=this.startLoc,a=this.containsEsc,s=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&"async"===s.name&&!this.canInsertSemicolon()&&this.eat(rh.types._function))return this.overrideContext(Sh.types.f_expr),this.parseFunction(this.startNodeAt(o,i),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(rh.types.arrow))return this.parseArrowExpression(this.startNodeAt(o,i),[s],!1,t);if(this.options.ecmaVersion>=8&&"async"===s.name&&this.type===rh.types.name&&!a&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return s=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(rh.types.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,i),[s],!0,t)}return s;case rh.types.regexp:var c=this.value;return r=this.parseLiteral(c.value),r.regex={pattern:c.pattern,flags:c.flags},r;case rh.types.num:case rh.types.string:return this.parseLiteral(this.value);case rh.types._null:case rh.types._true:case rh.types._false:return r=this.startNode(),r.value=this.type===rh.types._null?null:this.type===rh.types._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case rh.types.parenL:var l=this.start,u=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),u;case rh.types.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(rh.types.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case rh.types.braceL:return this.overrideContext(Sh.types.b_expr),this.parseObj(!1,e);case rh.types._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case rh.types._class:return this.parseClass(this.startNode(),!1);case rh.types._new:return this.parseNew();case rh.types.backQuote:return this.parseTemplate();case rh.types._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},bh.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case rh.types.parenL:return this.parseDynamicImport(e);case rh.types.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},bh.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(rh.types.parenR)){var t=this.start;this.eat(rh.types.comma)&&this.eat(rh.types.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},bh.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},bh.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},bh.parseParenExpression=function(){this.expect(rh.types.parenL);var e=this.parseExpression();return this.expect(rh.types.parenR),e},bh.parseParenAndDistinguishExpression=function(e,t){var r,n=this.start,o=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,s=this.startLoc,c=[],l=!0,u=!1,p=new hh.DestructuringErrors,h=this.yieldPos,d=this.awaitPos,f=void 0;for(this.yieldPos=0,this.awaitPos=0;this.type!==rh.types.parenR;){if(l?l=!1:this.expect(rh.types.comma),i&&this.afterTrailingComma(rh.types.parenR,!0)){u=!0;break}if(this.type===rh.types.ellipsis){f=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===rh.types.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(rh.types.parenR),e&&!this.canInsertSemicolon()&&this.eat(rh.types.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=d,this.parseParenArrowList(n,o,c,t);c.length&&!u||this.unexpected(this.lastTokStart),f&&this.unexpected(f),this.checkExpressionErrors(p,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=d||this.awaitPos,c.length>1?(r=this.startNodeAt(a,s),r.expressions=c,this.finishNodeAt(r,"SequenceExpression",m,g)):r=c[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(n,o);return v.expression=r,this.finishNode(v,"ParenthesizedExpression")}return r},bh.parseParenItem=function(e){return e},bh.parseParenArrowList=function(e,t,r,n){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,n)};var wh=[];bh.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(rh.types.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,o=this.startLoc,i=this.type===rh.types._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),n,o,!0,!1),i&&"ImportExpression"===e.callee.type&&this.raise(n,"Cannot use new with import()"),this.eat(rh.types.parenL)?e.arguments=this.parseExprList(rh.types.parenR,this.options.ecmaVersion>=8,!1):e.arguments=wh,this.finishNode(e,"NewExpression")},bh.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===rh.types.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===rh.types.backQuote,this.finishNode(r,"TemplateElement")},bh.parseTemplate=function(e){var t=void 0===e?{}:e,r=t.isTagged,n=void 0!==r&&r,o=this.startNode();this.next(),o.expressions=[];var i=this.parseTemplateElement({isTagged:n});for(o.quasis=[i];!i.tail;)this.type===rh.types.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(rh.types.dollarBraceL),o.expressions.push(this.parseExpression()),this.expect(rh.types.braceR),o.quasis.push(i=this.parseTemplateElement({isTagged:n}));return this.next(),this.finishNode(o,"TemplateLiteral")},bh.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===rh.types.name||this.type===rh.types.num||this.type===rh.types.string||this.type===rh.types.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===rh.types.star)&&!nh.lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},bh.parseObj=function(e,t){var r=this.startNode(),n=!0,o={};for(r.properties=[],this.next();!this.eat(rh.types.braceR);){if(n)n=!1;else if(this.expect(rh.types.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(rh.types.braceR))break;var i=this.parseProperty(e,t);e||this.checkPropClash(i,o,t),r.properties.push(i)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},bh.parseProperty=function(e,t){var r,n,o,i,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(rh.types.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===rh.types.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(this.type===rh.types.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),a.argument=this.parseMaybeAssign(!1,t),this.type===rh.types.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(o=this.start,i=this.startLoc),e||(r=this.eat(rh.types.star)));var s=this.containsEsc;return this.parsePropertyName(a),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(a)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(rh.types.star),this.parsePropertyName(a,t)):n=!1,this.parsePropertyValue(a,e,r,n,o,i,t,s),this.finishNode(a,"Property")},bh.parsePropertyValue=function(e,t,r,n,o,i,a,s){if((r||n)&&this.type===rh.types.colon&&this.unexpected(),this.eat(rh.types.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===rh.types.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,n);else if(t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===rh.types.comma||this.type===rh.types.braceR||this.type===rh.types.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=o),e.kind="init",t?e.value=this.parseMaybeDefault(o,i,this.copyNode(e.key)):this.type===rh.types.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(o,i,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(r||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c="get"===e.kind?0:1;if(e.value.params.length!==c){var l=e.value.start;"get"===e.kind?this.raiseRecoverable(l,"getter should have no params"):this.raiseRecoverable(l,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},bh.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(rh.types.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(rh.types.bracketR),e.key;e.computed=!1}return e.key=this.type===rh.types.num||this.type===rh.types.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},bh.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),
this.options.ecmaVersion>=8&&(e.async=!1)},bh.parseMethod=function(e,t,r){var n=this.startNode(),o=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope((0,sh.functionFlags)(t,n.generator)|sh.SCOPE_SUPER|(r?sh.SCOPE_DIRECT_SUPER:0)),this.expect(rh.types.parenL),n.params=this.parseBindingList(rh.types.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=o,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(n,"FunctionExpression")},bh.parseArrowExpression=function(e,t,r,n){var o=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.enterScope((0,sh.functionFlags)(r,!1)|sh.SCOPE_ARROW),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=o,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},bh.parseFunctionBody=function(e,t,r,n){var o=t&&this.type!==rh.types.braceL,i=this.strict,a=!1;if(o)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);i&&!s||(a=this.strictDirective(this.end),a&&s&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var c=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!i&&!a&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,sh.BIND_OUTSIDE),e.body=this.parseBlock(!1,void 0,a&&!i),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},bh.isSimpleParamList=function(e){for(var t,r=Pi(e);!(t=r()).done;){var n=t.value;if("Identifier"!==n.type)return!1}return!0},bh.checkParams=function(e,t){for(var r,n=Object.create(null),o=Pi(e.params);!(r=o()).done;){var i=r.value;this.checkLValInnerPattern(i,sh.BIND_VAR,t?null:n)}},bh.parseExprList=function(e,t,r,n){for(var o=[],i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(rh.types.comma),t&&this.afterTrailingComma(e))break;var a=void 0;r&&this.type===rh.types.comma?a=null:this.type===rh.types.ellipsis?(a=this.parseSpread(n),n&&this.type===rh.types.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):a=this.parseMaybeAssign(!1,n),o.push(a)}return o},bh.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;if(this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===n&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==n&&"await"!==n||this.raise(t,"Cannot use ".concat(n," in class static initialization block")),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '".concat(n,"'")),!(this.options.ecmaVersion<6&&this.input.slice(t,r).indexOf("\\")!==-1)){var o=this.strict?this.reservedWordsStrict:this.reservedWords;o.test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '".concat(n,"' is reserved")))}},bh.parseIdent=function(e,t){var r=this.startNode();return this.type===rh.types.name?r.name=this.value:this.type.keyword?(r.name=this.type.keyword,"class"!==r.name&&"function"!==r.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(r,"Identifier"),e||(this.checkUnreserved(r),"await"!==r.name||this.awaitIdentPos||(this.awaitIdentPos=r.start)),r},bh.parsePrivateIdent=function(){var e=this.startNode();return this.type===rh.types.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),0===this.privateNameStack.length?this.raise(e.start,"Private field '#".concat(e.name,"' must be declared in an enclosing class")):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},bh.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===rh.types.semi||this.canInsertSemicolon()||this.type!==rh.types.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(rh.types.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},bh.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var xh=ch.Parser.prototype;xh.raise=function(e,t){var r=(0,ih.getLineInfo)(this.input,e);t+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n},xh.raiseRecoverable=xh.raise,xh.curPosition=function(){if(this.options.locations)return new ih.Position(this.curLine,this.pos-this.lineStart)};var Ch=ch.Parser.prototype,Ah=function(){function e(e){this.flags=e,this["var"]=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1}return e}();Ch.enterScope=function(e){this.scopeStack.push(new Ah(e))},Ch.exitScope=function(){this.scopeStack.pop()},Ch.treatFunctionsAsVarInScope=function(e){return e.flags&sh.SCOPE_FUNCTION||!this.inModule&&e.flags&sh.SCOPE_TOP},Ch.declareName=function(e,t,r){var n=!1;if(t===sh.BIND_LEXICAL){var o=this.currentScope();n=o.lexical.indexOf(e)>-1||o.functions.indexOf(e)>-1||o["var"].indexOf(e)>-1,o.lexical.push(e),this.inModule&&o.flags&sh.SCOPE_TOP&&delete this.undefinedExports[e]}else if(t===sh.BIND_SIMPLE_CATCH){var o=this.currentScope();o.lexical.push(e)}else if(t===sh.BIND_FUNCTION){var o=this.currentScope();n=this.treatFunctionsAsVar?o.lexical.indexOf(e)>-1:o.lexical.indexOf(e)>-1||o["var"].indexOf(e)>-1,o.functions.push(e)}else for(var i=this.scopeStack.length-1;i>=0;--i){var o=this.scopeStack[i];if(o.lexical.indexOf(e)>-1&&!(o.flags&sh.SCOPE_SIMPLE_CATCH&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){n=!0;break}if(o["var"].push(e),this.inModule&&o.flags&sh.SCOPE_TOP&&delete this.undefinedExports[e],o.flags&sh.SCOPE_VAR)break}n&&this.raiseRecoverable(r,"Identifier '".concat(e,"' has already been declared"))},Ch.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0]["var"].indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},Ch.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Ch.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&sh.SCOPE_VAR)return t}},Ch.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&sh.SCOPE_VAR&&!(t.flags&sh.SCOPE_ARROW))return t}};var Th=t(function(e,t){function r(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}t.__esModule=!0,t.Node=void 0;var n=function(){function e(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new ih.SourceLocation(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])}return e}();t.Node=n;var o=ch.Parser.prototype;o.startNode=function(){return new n(this,this.start,this.startLoc)},o.startNodeAt=function(e,t){return new n(this,e,t)},o.finishNode=function(e,t){return r.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},o.finishNodeAt=function(e,t,n,o){return r.call(this,e,t,n,o)},o.copyNode=function(e){var t=new n(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t}}),Ih=t(function(e,t){function r(e){var t=g[e]={binary:(0,oh.wordsRegexp)(c[e]+" "+l),nonBinary:{General_Category:(0,oh.wordsRegexp)(l),Script:(0,oh.wordsRegexp)(m[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}t.__esModule=!0,t["default"]=void 0;for(var n="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",o=n+" Extended_Pictographic",i=o,a=i+" EBase EComp EMod EPres ExtPict",s=a,c={9:n,10:o,11:i,12:a,13:s},l="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",u="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",p=u+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",h=p+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",d=h+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",f=d+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",m={9:u,10:p,11:h,12:d,13:f},g={},v=0,y=[9,10,11,12,13];v<y.length;v++){var _=y[v];r(_)}var E=g;t["default"]=E,e.exports=t["default"]}),Ph=t(function(e,t){function r(e){return e&&e.__esModule?e:{"default":e}}function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(1023&e)+56320))}function s(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function c(e){return(0,th.isIdentifierStart)(e,!0)||36===e||95===e}function l(e){return(0,th.isIdentifierChar)(e,!0)||36===e||95===e||8204===e||8205===e}function u(e){return e>=65&&e<=90||e>=97&&e<=122}function p(e){return e>=0&&e<=1114111}function h(e){return 100===e||68===e||115===e||83===e||119===e||87===e}function d(e){return u(e)||95===e}function f(e){return d(e)||m(e)}function m(e){return e>=48&&e<=57}function g(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function v(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}function y(e){return e>=48&&e<=55}t.__esModule=!0,t.RegExpValidationState=void 0;var _=r(Ih),E=ch.Parser.prototype,S=function(){function e(e){this.parser=e,this.validFlags="gim".concat(e.options.ecmaVersion>=6?"uy":"").concat(e.options.ecmaVersion>=9?"s":"").concat(e.options.ecmaVersion>=13?"d":""),this.unicodeProperties=_["default"][e.options.ecmaVersion>=13?13:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]}return e.prototype.reset=function(e,t,r){var n=r.indexOf("u")!==-1;this.start=0|e,this.source=t+"",this.flags=r,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9},e.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /".concat(this.source,"/: ").concat(e))},e.prototype.at=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return-1;var o=r.charCodeAt(e);if(!t&&!this.switchU||o<=55295||o>=57344||e+1>=n)return o;var i=r.charCodeAt(e+1);return i>=56320&&i<=57343?(o<<10)+i-56613888:o},e.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return n;var o,i=r.charCodeAt(e);return!t&&!this.switchU||i<=55295||i>=57344||e+1>=n||(o=r.charCodeAt(e+1))<56320||o>57343?e+1:e+2},e.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},e.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},e.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},e.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},e}();t.RegExpValidationState=S,E.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=0;n<r.length;n++){var o=r.charAt(n);t.indexOf(o)===-1&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(o,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},E.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},E.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t,r=n(e.backReferenceNames);!(t=r()).done;){var o=t.value;e.groupNames.indexOf(o)===-1&&e.raise("Invalid named capture referenced")}},E.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},E.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},E.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!(e.switchU?!this.regexp_eatAtom(e):!this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},E.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},E.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},E.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},E.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,o=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(o=e.lastIntValue),e.eat(125)))return o!==-1&&o<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1},E.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},E.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},E.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},E.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},E.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},E.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},E.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!s(t)&&(e.lastIntValue=t,e.advance(),!0)},E.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!s(r);)e.advance();return e.pos!==t},E.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(t===-1||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},E.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},E.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},E.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=a(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=a(e.lastIntValue);return!0}return!1},E.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),c(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},E.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),l(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},E.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},E.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},E.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},E.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},E.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},E.regexp_eatZero=function(e){return 48===e.current()&&!m(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},E.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},E.regexp_eatControlLetter=function(e){var t=e.current();return!!u(t)&&(e.lastIntValue=t%32,e.advance(),!0)},E.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var r=e.pos,n=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(n&&o>=55296&&o<=56319){var i=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(o-55296)+(a-56320)+65536,!0}e.pos=i,e.lastIntValue=o}return!0}if(n&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&p(e.lastIntValue))return!0;n&&e.raise("Invalid unicode escape"),e.pos=r}return!1},E.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},E.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},E.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(h(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},E.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var o=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,o),!0}return!1},E.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){(0,oh.hasOwn)(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},E.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},E.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";d(t=e.current());)e.lastStringValue+=a(t),e.advance();return""!==e.lastStringValue},E.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";f(t=e.current());)e.lastStringValue+=a(t),e.advance();return""!==e.lastStringValue},E.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},E.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},E.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;!e.switchU||t!==-1&&r!==-1||e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}},E.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(99===r||y(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},E.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},E.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!m(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},E.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},E.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;m(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},E.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;g(r=e.current());)e.lastIntValue=16*e.lastIntValue+v(r),e.advance();return e.pos!==t},E.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*r+e.lastIntValue:e.lastIntValue=8*t+r}else e.lastIntValue=t;return!0}return!1},E.regexp_eatOctalDigit=function(e){var t=e.current();return y(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},E.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var o=e.current();if(!g(o))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+v(o),e.advance()}return!0}}),Nh=t(function(e,t){function r(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function n(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}function o(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(1023&e)+56320))}t.__esModule=!0,t.Token=void 0;var i=function(){function e(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new ih.SourceLocation(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])}return e}();t.Token=i;var a=ch.Parser.prototype;a.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new i(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},a.getToken=function(){return this.next(),new i(this)},"undefined"!=typeof Symbol&&(a[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===rh.types.eof,value:t}}}}),a.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(rh.types.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},a.readToken=function(e){return(0,th.isIdentifierStart)(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},a.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},a.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var n=void 0,o=t;(n=(0,nh.nextLineBreak)(this.input,o,this.pos))>-1;)++this.curLine,o=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())},a.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!(0,nh.isNewLine)(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())},a.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&nh.nonASCIIwhitespace.test(String.fromCharCode(e))))break e;++this.pos}}},a.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},a.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(rh.types.ellipsis)):(++this.pos,this.finishToken(rh.types.dot))},a.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(rh.types.assign,2):this.finishOp(rh.types.slash,1)},a.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=42===e?rh.types.star:rh.types.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++r,n=rh.types.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(rh.types.assign,r+1):this.finishOp(n,r)},a.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(61===r)return this.finishOp(rh.types.assign,3);
}return this.finishOp(124===e?rh.types.logicalOR:rh.types.logicalAND,2)}return 61===t?this.finishOp(rh.types.assign,2):this.finishOp(124===e?rh.types.bitwiseOR:rh.types.bitwiseAND,1)},a.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(rh.types.assign,2):this.finishOp(rh.types.bitwiseXOR,1)},a.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!nh.lineBreak.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(rh.types.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(rh.types.assign,2):this.finishOp(rh.types.plusMin,1)},a.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(rh.types.assign,r+1):this.finishOp(rh.types.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(r=2),this.finishOp(rh.types.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},a.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(rh.types.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(rh.types.arrow)):this.finishOp(61===e?rh.types.eq:rh.types.prefix,1)},a.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(rh.types.questionDot,2)}if(63===t){if(e>=12){var r=this.input.charCodeAt(this.pos+2);if(61===r)return this.finishOp(rh.types.assign,3)}return this.finishOp(rh.types.coalesce,2)}}return this.finishOp(rh.types.question,1)},a.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;return e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),(0,th.isIdentifierStart)(t,!0)||92===t)?this.finishToken(rh.types.privateId,this.readWord1()):void this.raise(this.pos,"Unexpected character '"+o(t)+"'")},a.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(rh.types.parenL);case 41:return++this.pos,this.finishToken(rh.types.parenR);case 59:return++this.pos,this.finishToken(rh.types.semi);case 44:return++this.pos,this.finishToken(rh.types.comma);case 91:return++this.pos,this.finishToken(rh.types.bracketL);case 93:return++this.pos,this.finishToken(rh.types.bracketR);case 123:return++this.pos,this.finishToken(rh.types.braceL);case 125:return++this.pos,this.finishToken(rh.types.braceR);case 58:return++this.pos,this.finishToken(rh.types.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(rh.types.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(rh.types.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+o(e)+"'")},a.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},a.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(nh.lineBreak.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var o=this.input.slice(r,this.pos);++this.pos;var i=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(i);var s=this.regexpState||(this.regexpState=new Ph.RegExpValidationState(this));s.reset(r,o,a),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(o,a)}catch(l){}return this.finishToken(rh.types.regexp,{pattern:o,flags:a,value:c})},a.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&void 0===t,o=r&&48===this.input.charCodeAt(this.pos),i=this.pos,a=0,s=0,c=0,l=null==t?1/0:t;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),p=void 0;if(n&&95===u)o&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===s&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===c&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),s=u;else{if(p=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,p>=e)break;s=u,a=a*e+p}}return n&&95===s&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===i||null!=t&&this.pos-i!==t?null:a},a.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r=n(this.input.slice(t,this.pos)),++this.pos):(0,th.isIdentifierStart)(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(rh.types.num,r)},a.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var o=this.pos-t>=2&&48===this.input.charCodeAt(t);o&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!o&&!e&&this.options.ecmaVersion>=11&&110===i){var a=n(this.input.slice(t,this.pos));return++this.pos,(0,th.isIdentifierStart)(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(rh.types.num,a)}o&&/[89]/.test(this.input.slice(t,this.pos))&&(o=!1),46!==i||o||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||o||(i=this.input.charCodeAt(++this.pos),43!==i&&45!==i||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),(0,th.isIdentifierStart)(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=r(this.input.slice(t,this.pos),o);return this.finishToken(rh.types.num,s)},a.readCodePoint=function(){var e,t=this.input.charCodeAt(this.pos);if(123===t){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else e=this.readHexChar(4);return e},a.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):((0,nh.isNewLine)(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(rh.types.string,t)};var s={};a.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==s)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},a.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw s;this.raise(e,t)},a.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==rh.types.template&&this.type!==rh.types.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(rh.types.template,e)):36===r?(this.pos+=2,this.finishToken(rh.types.dollarBraceL)):(++this.pos,this.finishToken(rh.types.backQuote));if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if((0,nh.isNewLine)(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},a.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(rh.types.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},a.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return o(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\x0B";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;return this.invalidStringToken(r,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return(0,nh.isNewLine)(t)?"":String.fromCharCode(t)}},a.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return null===r&&this.invalidStringToken(t,"Bad character escape sequence"),r},a.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var o=this.fullCharCodeAtPos();if((0,th.isIdentifierChar)(o,n))this.pos+=o<=65535?1:2;else{if(92!==o)break;this.containsEsc=!0,e+=this.input.slice(r,this.pos);var i=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?th.isIdentifierStart:th.isIdentifierChar)(a,n)||this.invalidStringToken(i,"Invalid Unicode escape"),e+=this.input.substr(this.pos-6,6),r=this.pos}t=!1}return e+this.input.slice(r,this.pos)},a.readWord=function(){var e=this.readWord1(),t=rh.types.name;return this.keywords.test(e)&&(t=rh.keywords[e]),this.finishToken(t,e)}}),Oh=t(function(e,t){function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function n(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o["default"]=e,n&&n.set(e,o),o}function o(e,t){return ch.Parser.parse(e,t)}function i(e,t,r){return ch.Parser.parseExpressionAt(e,t,r)}function a(e,t){return ch.Parser.tokenizer(e,t)}t.__esModule=!0,t.parse=o,t.parseExpressionAt=i,t.tokenizer=a,t.version=void 0,t.Parser=ch.Parser,t.defaultOptions=ah.defaultOptions,t.Position=ih.Position,t.SourceLocation=ih.SourceLocation,t.getLineInfo=ih.getLineInfo,t.Node=Th.Node,t.TokenType=rh.TokenType,t.tokTypes=rh.types,t.keywordTypes=rh.keywords,t.TokContext=Sh.TokContext,t.tokContexts=Sh.types,t.isIdentifierChar=th.isIdentifierChar,t.isIdentifierStart=th.isIdentifierStart,t.Token=Nh.Token,t.isNewLine=nh.isNewLine,t.lineBreak=nh.lineBreak,t.lineBreakG=nh.lineBreakG,t.nonASCIIwhitespace=nh.nonASCIIwhitespace;var s=n(oh),c="8.7.0";t.version=c,ch.Parser.acorn={Parser:ch.Parser,version:c,defaultOptions:ah.defaultOptions,Position:ih.Position,SourceLocation:ih.SourceLocation,getLineInfo:ih.getLineInfo,Node:Th.Node,TokenType:rh.TokenType,tokTypes:rh.types,keywordTypes:rh.keywords,TokContext:Sh.TokContext,tokContexts:Sh.types,isIdentifierChar:th.isIdentifierChar,isIdentifierStart:th.isIdentifierStart,Token:Nh.Token,isNewLine:nh.isNewLine,lineBreak:nh.lineBreak,lineBreakG:nh.lineBreakG,nonASCIIwhitespace:nh.nonASCIIwhitespace};var l=s.wordsRegexp,u={};s.wordsRegexp=function(e){return u[e]||(u[e]=l(e)),u[e]}}),kh=/^(\xEF\xBB\xBF|\xFE\xFF|\xFF\xFE|\x00\x00\xFE\xFF|\xFF\xFE\x00\x00|\x2B\x2F\x76\x38|\x2B\x2F\x76\x39|\x2B\x2F\x76\x2B|\x2B\x2F\x76\x2F|\xF7\x64\x4C|\xDD\x73\x66\x73|\x0E\xFE\xFF|\xFB\xEE\x28|\x84\x31\x95\x33)/,Lh=/(^|\n)\s*<!--[^\n]*(\n|$)/g,Dh=/^\s*\{.*\}\s*$/,Mh=/;\s*$/,Rh=/^\s*\((.*)\);\s*$/,jh=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)/gm,Fh=new RegExp([di($u.getLocation),di($u.setLocation),di($u.getProperty),di($u.setProperty),di($u.callMethod),di($u.processScript),di($u.processHtml),di($u.getPostMessage),di($u.getProxyUrl)].join("|")),Hh={allowReturnOutsideFunction:!0,allowImportExportEverywhere:!0,ecmaVersion:13},Uh=Object.freeze({__proto__:null,isScriptProcessed:qi,processScript:zi}),Bh={href:["a","link","image","area","base"],src:["img","embed","script","source","video","audio","input","frame","iframe"],srcset:["img","source"],action:["form"],formaction:["button","input"],manifest:["html"],data:["object"]},Vh=["href","src","action","formaction","manifest","data"],Wh={target:["a","form","area","base"],formtarget:["input","button"]},Gh=["target","formtarget"],qh=["sandbox","autocomplete","target","formtarget","style"],zh=/\/\*\s*[#@]\s*sourceMappingURL\s*=[\s\S]*?\*\/|\/\/[\t ]*[#@][\t ]*sourceMappingURL[\t ]*=.*/gi,Kh=/(url\s*\(\s*(['"]?))([^\s]*?)(\2\s*\))|(@import\s+(['"]))([^\s]*?)(\6)/g,$h=/((?:(\W?)(\w+))?\[\s*)(\w+)(\s*\^?=)/g,Xh="/*hammerhead|stylesheet|start*/",Yh="/*hammerhead|stylesheet|end*/",Qh=/:\s*hover(\W)/gi,Jh=new RegExp("\\[".concat(Qc.hoverPseudoClass,"\\](\\W)"),"ig"),Zh=new RegExp("\\s*".concat(di(Xh)),"gi"),ed=new RegExp("".concat(di(Xh),"\n?|")+"\n?".concat(di(Yh),"\\s*"),"gi"),td=function(){function e(){this.STYLESHEET_PROCESSING_START_COMMENT=Xh,this.STYLESHEET_PROCESSING_END_COMMENT=Yh,this.proxyless=!1}return e.prototype.process=function(e,t,r){return!e||"string"!=typeof e||r&&Zh.test(e)?e:(e=e.replace(Qh,"["+Qc.hoverPseudoClass+"]$1"),e=e.replace(zh,""),this.proxyless||(e=this._replaceStylesheetUrls(e,t)),e=this._replaceUrlAttributes(e),r&&(e="".concat(Xh,"\n").concat(e,"\n").concat(Yh)),e)},e.prototype.cleanUp=function(e,t){return"string"!=typeof e?e:(e=e.replace(Jh,":hover$1").replace(Qc.storedAttrPostfix,""),e=this._removeStylesheetProcessingComments(e),this.proxyless||(e=this._replaceStylesheetUrls(e,function(e){var r=t(e);return r?r.destUrl:e})),e)},e.prototype._removeStylesheetProcessingComments=function(e){var t=e.split(ed),r=t.length>=3;if(!r)return e;for(var n=0;n<t.length;n+=2){for(var o=0,i=t[n].length-1;i>=0&&/\s/.test(t[n][i]);i--)o++;t[n]=t[n].substring(0,t[n].length-o)}return t.join("")},e.prototype._replaceStylesheetUrls=function(e,t){return e.replace(Kh,function(e,r,n,o,i,a,s,c,l){var u=r||a,p=o||c,h=ee(p)?p:t(p),d=i||l;return p?u+h+d:e})},e.prototype._replaceUrlAttributes=function(e){return e.replace($h,function(e,t,r,n,o,i){var a="."===r||"#"===r?"":n;return a&&Bh[o]&&Bh[o].indexOf(a)!==-1?t+_d.getStoredAttrName(o)+i:e})},e}(),rd=new td,nd={authorization:"authorization",wwwAuthenticate:"www-authenticate",proxyAuthorization:"proxy-authorization",proxyAuthenticate:"proxy-authenticate",host:"host",referer:"referer",origin:"origin",contentLength:"content-length",cookie:"cookie",setCookie:"set-cookie",ifModifiedSince:"if-modified-since",ifNoneMatch:"if-none-match",contentType:"content-type",location:"location",xFrameOptions:"x-frame-options",sourceMap:"sourcemap",referrerPolicy:"referrer-policy",refresh:"refresh",link:"link",cacheControl:"cache-control",pragma:"pragma",eTag:"etag",contentDisposition:"content-disposition",accept:"accept",contentEncoding:"content-encoding",expires:"expires",trailer:"trailer",transferEncoding:"transfer-encoding",serviceWorkerAllowed:"service-worker-allowed",accessControlAllowOrigin:"access-control-allow-origin",accessControlAllowCredentials:"access-control-allow-credentials",contentSecurityPolicy:"content-security-policy",contentSecurityPolicyReportOnly:"content-security-policy-report-only",xContentSecurityPolicy:"x-content-security-policy",xContentSecurityPolicyReportOnly:"x-content-security-policy-report-only",xWebkitCsp:"x-webkit-csp",isApiRequest:"is-api-request",userAgent:"user-agent"},od="http://www.w3.org/XML/1998/namespace",id="http://www.w3.org/1999/xlink",ad=/^(\s)*\/\/<!\[CDATA\[([\s\S]*)\/\/\]\]>(\s)*$/,sd=/(\/\/[^\n]*|\n\s*)-->[^\n]*([\n\s]*)?$/,cd=/^(\s)*<!--[^\n]*\n/,ld=/-->\s*$/,ud=/^\s*javascript\s*:/i,pd=/^\s*(application\/(x-)?(ecma|java)script|text\/(javascript(1\.[0-5])?|((x-)?ecma|x-java|js|live)script)|module)\s*$/i,hd=["animate","animateColor","animateMotion","animateTransform","mpath","set","linearGradient","radialGradient","stop","a","altglyph","color-profile","cursor","feimage","filter","font-face-uri","glyphref","image","mpath","pattern","script","textpath","use","tref"],dd=["script","link"],fd=["a","form","area","input","button"],md="script",gd="modulepreload",vd="hammerhead|element-processed",yd="hammerhead|autocomplete-attribute-absence-marker",_d=function(){function e(e){this.adapter=e,this.HTML_PROCESSING_REQUIRED_EVENT="hammerhead|event|html-processing-required",this.SVG_XLINK_HREF_TAGS=hd,this.AUTOCOMPLETE_ATTRIBUTE_ABSENCE_MARKER=yd,this.PROCESSED_PRELOAD_LINK_CONTENT_TYPE=md,this.MODULE_PRELOAD_LINK_REL=gd,this.forceProxySrcForImage=!1,this.allowMultipleWindows=!1,this.proxyless=!1,this.EVENTS=this.adapter.EVENTS,this.elementProcessorPatterns=this._createProcessorPatterns(this.adapter)}return e.isTagWithTargetAttr=function(e){return!!e&&Wh.target.indexOf(e)>-1},e.isTagWithFormTargetAttr=function(e){return!!e&&Wh.formtarget.indexOf(e)>-1},e.isTagWithIntegrityAttr=function(e){return!!e&&dd.indexOf(e)!==-1},e.isIframeFlagTag=function(e){return!!e&&fd.indexOf(e)!==-1},e.isAddedAutocompleteAttr=function(e,t){return"autocomplete"===e&&t===yd},e.processJsAttrValue=function(e,t){var r=t.isJsProtocol,n=t.isEventAttr;return r&&(e=e.replace(ud,"")),e=zi(e,!1,r&&!n,void 0),r&&(e="javascript:"+e),e},e.getStoredAttrName=function(e){return e+Qc.storedAttrPostfix},e.isJsProtocol=function(e){return ud.test(e)},e._isHtmlImportLink=function(e,t){return!!e&&!!t&&"link"===e&&"import"===t},e.isElementProcessed=function(e){return e[vd]},e.setElementProcessed=function(e,t){e[vd]=t},e.prototype._getRelAttribute=function(e){return String(this.adapter.getAttr(e,"rel")).toLowerCase()},e.prototype._getAsAttribute=function(e){return String(this.adapter.getAttr(e,"as")).toLowerCase()},e.prototype._createProcessorPatterns=function(t){var r=this,n={HAS_HREF_ATTR:function(e){return r.isUrlAttr(e,"href")},HAS_SRC_ATTR:function(e){return r.isUrlAttr(e,"src")},HAS_SRCSET_ATTR:function(e){return r.isUrlAttr(e,"srcset")},HAS_ACTION_ATTR:function(e){return r.isUrlAttr(e,"action")},HAS_FORMACTION_ATTR:function(e){return r.isUrlAttr(e,"formaction")},HAS_FORMTARGET_ATTR:function(r){return e.isTagWithFormTargetAttr(t.getTagName(r))&&t.hasAttr(r,"formtarget")},HAS_MANIFEST_ATTR:function(e){return r.isUrlAttr(e,"manifest")},HAS_DATA_ATTR:function(e){return r.isUrlAttr(e,"data")},HAS_SRCDOC_ATTR:function(e){var n=r.adapter.getTagName(e);return("iframe"===n||"frame"===n)&&t.hasAttr(e,"srcdoc")},HTTP_EQUIV_META:function(e){var r=t.getTagName(e);return"meta"===r&&t.hasAttr(e,"http-equiv")},ALL:function(){return!0},IS_SCRIPT:function(e){return"script"===t.getTagName(e)},IS_LINK:function(e){return"link"===t.getTagName(e)},IS_INPUT:function(e){return"input"===t.getTagName(e)},IS_FILE_INPUT:function(e){return"input"===t.getTagName(e)&&t.hasAttr(e,"type")&&"file"===t.getAttr(e,"type").toLowerCase()},IS_STYLE:function(e){return"style"===t.getTagName(e)},HAS_EVENT_HANDLER:function(e){return t.hasEventHandler(e)},IS_SANDBOXED_IFRAME:function(e){var r=t.getTagName(e);return("iframe"===r||"frame"===r)&&t.hasAttr(e,"sandbox")},IS_SVG_ELEMENT_WITH_XLINK_HREF_ATTR:function(e){return t.isSVGElement(e)&&t.hasAttr(e,"xlink:href")&&hd.indexOf(t.getTagName(e))!==-1},IS_SVG_ELEMENT_WITH_XML_BASE_ATTR:function(e){return t.isSVGElement(e)&&t.hasAttr(e,"xml:base")}};return[{selector:n.HAS_FORMTARGET_ATTR,targetAttr:"formtarget",elementProcessors:[this._processTargetBlank]},{selector:n.HAS_HREF_ATTR,urlAttr:"href",targetAttr:"target",elementProcessors:[this._processTargetBlank,this._processUrlAttrs,this._processUrlJsAttr]},{selector:n.HAS_SRC_ATTR,urlAttr:"src",targetAttr:"target",elementProcessors:[this._processTargetBlank,this._processUrlAttrs,this._processUrlJsAttr]},{selector:n.HAS_SRCSET_ATTR,urlAttr:"srcset",targetAttr:"target",elementProcessors:[this._processTargetBlank,this._processUrlAttrs,this._processUrlJsAttr]},{selector:n.HAS_ACTION_ATTR,urlAttr:"action",targetAttr:"target",elementProcessors:[this._processTargetBlank,this._processUrlAttrs,this._processUrlJsAttr]},{selector:n.HAS_FORMACTION_ATTR,urlAttr:"formaction",targetAttr:"formtarget",elementProcessors:[this._processUrlAttrs,this._processUrlJsAttr]},{selector:n.HAS_MANIFEST_ATTR,urlAttr:"manifest",elementProcessors:[this._processUrlAttrs,this._processUrlJsAttr]},{selector:n.HAS_DATA_ATTR,urlAttr:"data",elementProcessors:[this._processUrlAttrs,this._processUrlJsAttr]},{selector:n.HAS_SRCDOC_ATTR,elementProcessors:[this._processSrcdocAttr]},{selector:n.HTTP_EQUIV_META,urlAttr:"content",elementProcessors:[this._processMetaElement]},{selector:n.IS_SCRIPT,elementProcessors:[this._processScriptElement,this._processIntegrityAttr]},{selector:n.ALL,elementProcessors:[this._processStyleAttr]},{selector:n.IS_LINK,relAttr:"rel",elementProcessors:[this._processIntegrityAttr,this._processRelPrefetch]},{selector:n.IS_STYLE,elementProcessors:[this._processStylesheetElement]},{selector:n.IS_INPUT,elementProcessors:[this._processAutoComplete]},{selector:n.IS_FILE_INPUT,elementProcessors:[this._processRequired]},{selector:n.HAS_EVENT_HANDLER,elementProcessors:[this._processEvtAttr]},{selector:n.IS_SANDBOXED_IFRAME,elementProcessors:[this._processSandboxedIframe]},{selector:n.IS_SVG_ELEMENT_WITH_XLINK_HREF_ATTR,urlAttr:"xlink:href",elementProcessors:[this._processSVGXLinkHrefAttr,this._processUrlAttrs]},{selector:n.IS_SVG_ELEMENT_WITH_XML_BASE_ATTR,urlAttr:"xml:base",elementProcessors:[this._processUrlAttrs]}]},e.prototype.processElement=function(t,r){if(!e.isElementProcessed(t))for(var n=0,o=this.elementProcessorPatterns;n<o.length;n++){var i=o[n];if(i.selector(t)&&!this._isShadowElement(t)){for(var a=0,s=i.elementProcessors;a<s.length;a++){var c=s[a];c.call(this,t,r,i)}e.setElementProcessed(t,!0)}}},e.prototype.getElementResourceType=function(e){var t=this.adapter.getTagName(e);return D("link"!==t||this._getAsAttribute(e)!==md&&this._getRelAttribute(e)!==gd?{isIframe:"iframe"===t||"frame"===t||this._isOpenLinkInIframe(e),isForm:"form"===t||"input"===t||"button"===t,isScript:"script"===t,isHtmlImport:"link"===t&&"import"===this._getRelAttribute(e),isObject:"object"===t}:{isScript:!0})},e.prototype.isUrlAttr=function(e,t,r){var n=this.adapter.getTagName(e);return t=t?t.toLowerCase():t,!(!Bh[t]||Bh[t].indexOf(n)===-1)||this.adapter.isSVGElement(e)&&("xml:base"===t||"base"===t&&r===od)},e.prototype.getUrlAttr=function(e){for(var t=this.adapter.getTagName(e),r=0,n=Vh;r<n.length;r++){var o=n[r];if(Bh[o].indexOf(t)!==-1)return o}return null},e.prototype.getTargetAttr=function(e){for(var t=this.adapter.getTagName(e),r=0,n=Gh;r<n.length;r++){var o=n[r];if(Wh[o].indexOf(t)>-1)return o}return null},e.prototype._isOpenLinkInIframe=function(t){var r=this.adapter.getTagName(t),n=this.getTargetAttr(t),o=n?this.adapter.getAttr(t,n):null,i=this._getRelAttribute(t);if("_top"!==o){var a="input"===r&&"image"===this.adapter.getAttr(t,"type"),s=!a&&e.isIframeFlagTag(r)||e._isHtmlImportLink(r,i),c=!!o&&"_"!==o[0];if("_parent"===o)return s&&!this.adapter.isTopParentIframe(t);if(s&&(this.adapter.hasIframeParent(t)||c&&this.adapter.isExistingTarget(o,t)))return!0}return!1},e.prototype._isShadowElement=function(e){var t=this.adapter.getClassName(e);return"string"==typeof t&&t.indexOf(Zc.postfix)>-1},e.prototype._processAutoComplete=function(t){var r=e.getStoredAttrName("autocomplete"),n=this.adapter.hasAttr(t,r),o=this.adapter.getAttr(t,n?r:"autocomplete");n||this.adapter.setAttr(t,r,o||""===o?o:yd),this.adapter.setAttr(t,"autocomplete","off")},e.prototype._processRequired=function(t){var r=e.getStoredAttrName("required"),n=this.adapter.hasAttr(t,r);if(!n&&this.adapter.hasAttr(t,"required")){var o=this.adapter.getAttr(t,"required");this.adapter.setAttr(t,r,o),this.adapter.removeAttr(t,"required")}},e.prototype._processIntegrityAttr=function(t){var r=e.getStoredAttrName("integrity"),n=this.adapter.hasAttr(t,r)&&!this.adapter.hasAttr(t,"integrity"),o=this.adapter.getAttr(t,n?r:"integrity");o&&this.adapter.setAttr(t,r,o),n||this.adapter.removeAttr(t,"integrity")},e.prototype._processRelPrefetch=function(t,r,n){if(n.relAttr){var o=e.getStoredAttrName(n.relAttr),i=this.adapter.hasAttr(t,o)&&!this.adapter.hasAttr(t,n.relAttr),a=this.adapter.getAttr(t,i?o:n.relAttr);if(a){var s=k(a.toLowerCase());"prefetch"===s&&(this.adapter.setAttr(t,o,a),i||this.adapter.removeAttr(t,n.relAttr))}}},e.prototype._processJsAttr=function(t,r,n){var o=n.isJsProtocol,i=n.isEventAttr,a=e.getStoredAttrName(r),s=this.adapter.hasAttr(t,a),c=this.adapter.getAttr(t,s?a:r)||"",l=e.processJsAttrValue(c,{isJsProtocol:o,isEventAttr:i});c!==l&&(this.adapter.setAttr(t,a,c),this.adapter.setAttr(t,r,l))},e.prototype._processEvtAttr=function(t){for(var r=this.adapter.EVENTS,n=0;n<r.length;n++){var o=this.adapter.getAttr(t,r[n]);o&&this._processJsAttr(t,r[n],{isJsProtocol:e.isJsProtocol(o),isEventAttr:!0})}},e.prototype._processMetaElement=function(e,t,r){var n=(this.adapter.getAttr(e,"http-equiv")||"").toLowerCase();if(n===nd.refresh&&r.urlAttr){var o=this.adapter.getAttr(e,r.urlAttr)||"";o=ce(o,t),this.adapter.setAttr(e,r.urlAttr,o)}else n===nd.contentSecurityPolicy&&(this.adapter.removeAttr(e,"http-equiv"),this.adapter.removeAttr(e,"content"))},e.prototype._processSandboxedIframe=function(t){var r=this.adapter.getAttr(t,"sandbox")||"",n=r.indexOf("allow-same-origin")!==-1,o=r.indexOf("allow-scripts")!==-1,i=e.getStoredAttrName("sandbox");this.adapter.setAttr(t,i,r),n&&o||(r+=n?"":" allow-same-origin",r+=o?"":" allow-scripts"),this.adapter.setAttr(t,"sandbox",r)},e.prototype._processScriptElement=function(e,t){var r=this.adapter.getScriptContent(e);if(r&&this.adapter.needToProcessContent(e)){var n=qi(r);if(!n){var o=this.adapter.getAttr(e,"type"),i=!o||pd.test(o);if(i){var a=r,s="",c=a.match(cd),l="",u=null,p=ad.test(a);c&&(s=c[0],u=a.match(sd),u?l=u[0]:ld.test(s)||(l="//-->"),a=a.replace(s,"").replace(l,"")),p&&(a=a.replace(ad,"$2")),a=s+zi(a,!0,!1,t)+l,p&&(a="\n//<![CDATA[\n"+a+"//]]>"),this.adapter.setScriptContent(e,a)}}}},e.prototype._processStyleAttr=function(e,t){var r=this.adapter.getAttr(e,"style");r&&this.adapter.setAttr(e,"style",rd.process(r,t,!1))},e.prototype._processStylesheetElement=function(e,t){var r=this.adapter.getStyleContent(e);r&&t&&this.adapter.needToProcessContent(e)&&(r=rd.process(r,t,!0),this.adapter.setStyleContent(e,r))},e.prototype._processTargetBlank=function(t,r,n){if(!this.allowMultipleWindows&&n.targetAttr){var o=e.getStoredAttrName(n.targetAttr),i=this.adapter.hasAttr(t,o);if(!i){var a=this.adapter.getAttr(t,n.targetAttr);a=a&&a.replace(/\s/g,""),"_blank"===a&&(this.adapter.setAttr(t,n.targetAttr,"_top"),this.adapter.setAttr(t,o,a))}}},e.prototype._processUrlAttrs=function(t,r,n){if(n.urlAttr&&!this.proxyless){var o=e.getStoredAttrName(n.urlAttr),i=this.adapter.getAttr(t,n.urlAttr),a=!!i&&ee(i),s=this.adapter.hasAttr(t,o);if((i||""===i)&&!s&&(K(i)||a)){var c=this.adapter.getTagName(t),l="iframe"===c||"frame"===c,u="script"===c,p="a"===c,h="srcset"===n.urlAttr,d=n.targetAttr?this.adapter.getAttr(t,n.targetAttr):null;if(this.adapter.needToProcessUrl(c,d||"")){var f=this.getElementResourceType(t)||"",m=z(i),g="file:"!==m.protocol&&!m.host,v=u&&this.adapter.getAttr(t,"charset")||"",y="img"===c&&""===i,_=l&&""===i,E=G(r("/")),S=!1,b=i;l&&!a&&!g&&E&&(S=!this.adapter.sameOriginCheck(E.destUrl,i)),a&&!p||y||_||(b="img"!==c||this.forceProxySrcForImage||h?r(i,f,v,S,h):$(i,r)),this.adapter.setAttr(t,o,i),this.adapter.setAttr(t,n.urlAttr,b)}}}},e.prototype._processSrcdocAttr=function(t){var r=e.getStoredAttrName("srcdoc"),n=this.adapter.getAttr(t,"srcdoc")||"",o=this.adapter.processSrcdocAttr(n);this.adapter.setAttr(t,r,n),this.adapter.setAttr(t,"srcdoc",o)},e.prototype._processUrlJsAttr=function(t,r,n){n.urlAttr&&e.isJsProtocol(this.adapter.getAttr(t,n.urlAttr)||"")&&this._processJsAttr(t,n.urlAttr,{isJsProtocol:!0,isEventAttr:!1})},e.prototype._processSVGXLinkHrefAttr=function(t,r,n){if(n.urlAttr){var o=this.adapter.getAttr(t,n.urlAttr)||"";if(ul.test(o)){var i=e.getStoredAttrName(n.urlAttr);this.adapter.setAttr(t,i,o)}}},e}(),Ed=new WeakMap,Sd=function(){function e(){}return e}();Sd.prototype=DOMStringList.prototype;var bd=function(e){function t(t,r){var n=e.call(this)||this,o=t.location.ancestorOrigins,i=o.length,a=t.parent;Ed.set(n,i);for(var s=function(e){var t=kd.getLocationWrapper(a),i=t===a.location;Ki(o,c,e.toString(),i?"":t.origin),i&&r&&r(a,function(t){return Ki(o,n,e,t)}),a=a.parent},c=this,l=0;l<i;l++)s(l);return n}return m(t,e),t.prototype.item=function(e){return this[e]},t.prototype.contains=function(e){"string"!=typeof e&&(e=String(e));for(var t=Ed.get(this)||0,r=0;r<t;r++)if(this[r]===e)return!0;return!1},Object.defineProperty(t.prototype,"length",{get:function(){return Ed.get(this)},enumerable:!1,configurable:!0}),t}(Sd),wd=Number.MAX_SAFE_INTEGER||9007199254740991,xd=Number.MIN_SAFE_INTEGER||-9007199254740991,Cd=function(){function e(){this._id=xd}return e.prototype.increment=function(){return this._id=this._id===wd?xd:this._id+1,this._id},Object.defineProperty(e.prototype,"value",{get:function(){return this._id},enumerable:!1,configurable:!0}),e}(),Ad="hammerhead|command|get-origin",Td="hammerhead|command|origin-received",Id=function(){function e(){}return e}();Id.prototype=Location.prototype;var Pd=function(e){function t(t,r,n){var o=e.call(this)||this,i=jl($i(t)),a=i?i.resourceType:"",s=Fe(a),c=Xc.objectHasOwnProperty.call(t.Location.prototype,"href"),l=c?t.Location.prototype:t.location,u={};s.isIframe=s.isIframe||Vt(t);var p=D({isIframe:s.isIframe,isForm:s.isForm}),h=function(){if(Vt(t)&&t.location.href===fl)return fl;var e=Tl(),r=wl.getResolverElement(t.document);Xc.anchorHrefSetter.call(r,e);var n=Xc.anchorHrefGetter.call(r);return Z(n,e)},d=function(e){if("string"!=typeof e&&(e=String(e)),e=ae(e),_d.isJsProtocol(e))return _d.processJsAttrValue(e,{isJsProtocol:!0,isEventAttr:!1});var r=$i(t),n=null;if(t!==t.parent){var o=$i(t.parent),i=jl(o);if(i&&i.proxy){var s=i.proxy.port;n=pe(o,e)?s:Ae(s)}}var c=r&&Ue(r,e),l=c?a:p;return Dl(e,{resourceType:l,proxyPort:n})};if(u.href=y(l,"href",{getter:h,setter:function(e){var r=d(e);return t.location.href=r,n(r),e}}),u.search=y(l,"search",{getter:function(){return t.location.search;
},setter:function(e){var r=Le(t.location.toString(),Xc.anchorSearchSetter,e,p);return t.location=r,n(r),e}}),u.origin=y(l,"origin",{getter:function(){return V(ye())},setter:function(e){return e}}),u.hash=y(l,"hash",{getter:function(){return t.location.hash},setter:function(e){return t.location.hash=e,e}}),t.location.ancestorOrigins){var f=Xc.objectCreate(null),m=new Cd,g=function(e,t){var n=m.increment();f[n]=t,r.sendServiceMsg({id:n,cmd:Ad},e)};r&&r.on(r.SERVICE_MSG_RECEIVED_EVENT,function(e){var t=e.message,n=e.source;if(t.cmd===Ad)r.sendServiceMsg({id:t.id,cmd:Td,origin:o.origin},n);else if(t.cmd===Td){var i=f[t.id];i&&i(t.origin)}});var v=new bd(t,r?g:void 0);u.ancestorOrigins=y(l,"ancestorOrigins",{getter:function(){return v}})}var _=function(e,r){u[e]=y(l,e,{getter:function(){var r=Nt(t),n=r&&Jt(r),o=n?t.location:ye();return o[e]},setter:function(e){var o=Le(t.location.toString(),r,e,p);return t.location=o,n(o),e}})};if(_("port",Xc.anchorPortSetter),_("host",Xc.anchorHostSetter),_("hostname",Xc.anchorHostnameSetter),_("pathname",Xc.anchorPathnameSetter),_("protocol",Xc.anchorProtocolSetter),u.assign=y(l,"assign",{value:function(e){var r=d(e),o=t.location.assign(r);return n(r),o}}),u.replace=y(l,"replace",{value:function(e){var r=d(e),o=t.location.replace(r);return n(r),o}}),u.reload=y(l,"reload",{value:function(){var e=t.location.reload();return n(t.location.toString()),e}}),u.toString=y(l,"toString",{value:h}),!c&&Xc.objectHasOwnProperty.call(t.location,"valueOf")&&(u.valueOf=y(l,"valueOf",{value:function(){return o}})),Xc.objectDefineProperties(o,u),Rc)return o;for(var E=Xc.objectKeys(Location.prototype),S=o,b=function(e,r){if(O(e[r])){var n=e[r];e[r]=function(){var e=this===S?t.location:this;return n.apply(e,arguments)}}},w=0,x=E;w<x.length;w++){var C=x[w];if(!(C in u)){var A=Xc.objectGetOwnPropertyDescriptor(Location.prototype,C);b(A,"get"),b(A,"set"),b(A,"value"),Xc.objectDefineProperty(S,C,A),Xc.consoleMeths.log("testcafe-hammerhead: unwrapped Location.prototype.".concat(C," descriptor!"))}}return o}return m(t,e),t}(Id);O(Location)?b(Pd,Location):Pd.toString=function(){return Location.toString()};var Nd,Od="hammerhead|location-wrapper",kd=function(e){function t(t){var r=e.call(this)||this;return r._messageSandbox=t,r.LOCATION_CHANGED_EVENT="hammerhead|event|location-changed",r._locationChangedEventCallback=function(e){return r.emit(r.LOCATION_CHANGED_EVENT,e)},r}return m(t,e),t.isLocationWrapper=function(e){return e instanceof Pd},t.getLocationWrapper=function(e){if(Mc&&Bt(window,e))return e.location;try{return e[Od]}catch(t){return e.location}},t.prototype.attach=function(t){e.prototype.attach.call(this,t);var r=t.document,n=new Pd(t,this._messageSandbox,this._locationChangedEventCallback);Xc.objectDefineProperty(t,Od,{value:n,configurable:!0}),Xc.objectDefineProperty(r,Od,{value:n,configurable:!0}),Xc.objectDefineProperty(t,$u.getLocation,{value:function(e){return Mr(e)?n:e},configurable:!0}),Xc.objectDefineProperty(t,$u.setLocation,{value:function(e,t){return Mr(e)&&"string"==typeof t?(n.href=t,t):null},configurable:!0})},t}(Ou),Ld="hammerhead|iframe-window-inited",Dd=function(e){function t(t,r){var n=e.call(this)||this;return n._nodeMutation=t,n._cookieSandbox=r,n.RUN_TASK_SCRIPT_EVENT="hammerhead|event|run-task-script",n.EVAL_HAMMERHEAD_SCRIPT_EVENT="hammerhead|event|eval-hammerhead-script",n.EVAL_EXTERNAL_SCRIPT_EVENT="hammerhead|event|eval-external-script",n.IFRAME_DOCUMENT_CREATED_EVENT="hammerhead|event|iframe-document-created",n.on(n.RUN_TASK_SCRIPT_EVENT,n.iframeReadyToInitHandler),n._nodeMutation.on(n._nodeMutation.IFRAME_ADDED_TO_DOM_EVENT,function(e){return n.processIframe(e)}),n.iframeNativeMethodsBackup=null,n}return m(t,e),t.prototype._shouldSaveIframeNativeMethods=function(e){if(!Wc)return!1;var t=this.nativeMethods.getAttribute.call(e,"src");return _d.isJsProtocol(t)},t.prototype._ensureIframeNativeMethodsForChrome=function(e){var t=Xc.contentWindowGetter.call(e),r=Xc.contentDocumentGetter.call(e);this.iframeNativeMethodsBackup?(this.iframeNativeMethodsBackup.restoreDocumentMeths(t,r),this.iframeNativeMethodsBackup=null):this._shouldSaveIframeNativeMethods(e)&&(this.iframeNativeMethodsBackup=new this.nativeMethods.constructor(r,t))},t.prototype._ensureIframeNativeMethodsForIE=function(e){var t=Xc.contentWindowGetter.call(e),r=Xc.contentDocumentGetter.call(e),n=t[vc.iframeNativeMethods];n&&(n.restoreDocumentMeths(t,r),delete t[vc.iframeNativeMethods])},t.prototype._ensureIframeNativeMethods=function(e){this._ensureIframeNativeMethodsForChrome(e),this._ensureIframeNativeMethodsForIE(e)},t.prototype._emitEvents=function(e){this.emit(this.EVAL_HAMMERHEAD_SCRIPT_EVENT,{iframe:e}),this.emit(this.EVAL_EXTERNAL_SCRIPT_EVENT,{iframe:e}),this.emit(this.RUN_TASK_SCRIPT_EVENT,e)},t.prototype._raiseReadyToInitEvent=function(e){if(Jt(e)){var r=Xc.contentWindowGetter.call(e),n=Xc.contentDocumentGetter.call(e);t.isIframeInitialized(e)?r[Ld]||r[vc.hammerhead]||(this._ensureIframeNativeMethods(e),Xc.objectDefineProperty(r,Ld,{value:!0}),this._emitEvents(e),r[vc.processDomMethodName]()):w(n.write)&&this.emit(this.IFRAME_DOCUMENT_CREATED_EVENT,{iframe:e})}},t.isIframeInitialized=function(e){var t=Xc.contentWindowGetter.call(e),r=Xc.contentDocumentGetter.call(e);return Hc?"uninitialized"!==r.readyState:Mc?!!r.documentElement||t[vc.documentWasCleaned]:!(!t[vc.documentWasCleaned]&&Zt(e))||"about:srcdoc"===t.location.href},t.isWindowInited=function(e){return e[Ld]},t.prototype.iframeReadyToInitHandler=function(e){var t=Cl.get().iframeTaskScriptTemplate,r=function(e){return e.replace(/\$/g,"$$$$")},n=Up(this._cookieSandbox.getCookie()),o=Cl.get().referer||this.window.location.toString(),i=Up(t),a=t.replace("{{{cookie}}}",r(n)).replace("{{{referer}}}",r(Up(o))).replace("{{{iframeTaskScriptTemplate}}}",r(i)),s=Xc.contentWindowGetter.call(e);s.eval.call(s,a)},t.prototype.onIframeBeganToRun=function(e){this._raiseReadyToInitEvent(e)},t.prototype.processIframe=function(e){var t=this;Or(e)||((Yt(e)&&Xc.contentWindowGetter.call(e)||Qt(e)&&Xc.frameContentWindowGetter.call(e))&&this._raiseReadyToInitEvent(e),this.nativeMethods.addEventListener.call(e,"load",function(){return t._raiseReadyToInitEvent(e)}))},t}(Ou),Md=function(){function e(){this.EVENTS=["onblur","onchange","onclick","oncontextmenu","oncopy","oncut","ondblclick","onerror","onfocus","onfocusin","onfocusout","onhashchange","onkeydown","onkeypress","onkeyup","onload","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpaste","onreset","onresize","onscroll","onselect","onsubmit","ontextinput","onunload","onwheel","onpointerdown","onpointerup","onpointercancel","onpointermove","onpointerover","onpointerout","onpointerenter","onpointerleave","ongotpointercapture","onlostpointercapture","onmspointerdown","onmspointerup","onmspointercancel","onmspointermove","onmspointerover","onmspointerout","onmspointerenter","onmspointerleave","onmsgotpointercapture","onmslostpointercapture"]}return e}(),Rd=/\n\s*|\/\*[\S\s]*?\*\//g,jd={iframeInit:Xi('\n var parentHammerhead = null;\n\n if (!window["'.concat(vc.hammerhead,'"])\n Object.defineProperty(window, "').concat(vc.documentWasCleaned,'", { value: true, configurable: true });\n\n try {\n parentHammerhead = window.parent["').concat(vc.hammerhead,'"];\n } catch(e) {}\n\n if (parentHammerhead)\n parentHammerhead.sandbox.onIframeDocumentRecreated(window.frameElement);\n ')),onWindowRecreation:Xi('\n var hammerhead = window["'.concat(vc.hammerhead,'"];\n var sandbox = hammerhead && hammerhead.sandbox;\n\n if (!sandbox) {\n try {\n sandbox = window.parent["').concat(vc.hammerhead,'"].sandboxUtils.backup.get(window);\n } catch(e) {}\n }\n\n if (sandbox) {\n Object.defineProperty(window, "').concat(vc.documentWasCleaned,'", { value: true, configurable: true });\n\n sandbox.node.mutation.onDocumentCleaned(window, document);\n\n /* NOTE: B234357 */\n sandbox.node.processNodes(null, document);\n }\n ')),onBodyCreated:Xi('\n if (window["'.concat(vc.hammerhead,'"])\n window["').concat(vc.hammerhead,'"].sandbox.node.raiseBodyCreatedEvent();\n ')),onOriginFirstTitleLoaded:Xi('\n window["'.concat(vc.hammerhead,'"].sandbox.node.onOriginFirstTitleElementInHeadLoaded();\n ')),restoreStorages:Xi('\n window.localStorage.setItem("%s", %s);\n window.sessionStorage.setItem("%s", %s);\n ')};!function(e){e.beforeBegin="beforebegin",e.afterBegin="afterbegin",e.beforeEnd="beforeend",e.afterEnd="afterend"}(Nd||(Nd={}));var Fd=Nd,Hd="hh_fake_tag_name_",Ud="hh_fake_doctype",Bd="".concat(Hd,"head"),Vd="".concat(Hd,"body"),Wd="hh_fake_attr",Gd=new RegExp("(<\\/?)"+Hd,"ig"),qd=/(<\/?)(html|head|body|table|tbody|tfoot|thead|tr|td|th|caption|colgroup)((?:\s[^>]*)?>)/gi,zd="$1".concat(Hd,"$2$3"),Kd=/<(\/?(?:col|noscript))(\s[^>]*?)?(\s?\/)?>/gi,$d="<br ".concat(Wd,'="$1|$3"$2>'),Xd=new RegExp("<br([^>]*?) ".concat(Wd,'="([^|]+)\\|([^"]*)"([^>]*)'),"ig"),Yd=/<!doctype([^>]*)>/gi,Qd="<".concat(Ud,">$1</").concat(Ud,">"),Jd=new RegExp("<".concat(Ud,">([\\S\\s]*?)</").concat(Ud,">"),"ig"),Zd=/<svg\s?[^>]*>/gi,ef=/\s(?:NS[0-9]+:[^"']+('|")[\S\s]*?\1|[^:]+:NS[0-9]+=(?:""|''))/g,tf=function(){for(var e=[],t=0,r=Vh;t<r.length;t++){var n=r[t];e.push(_d.getStoredAttrName(n))}for(var o=0,i=qh;o<i.length;o++){var n=i[o];e.push(_d.getStoredAttrName(n))}return"["+e.join("],[")+"]"}(),rf='[class*="'.concat(Zc.postfix,'"]'),nf="[".concat(Qc.hoverPseudoClass,"],[").concat(Qc.focusPseudoClass,"]"),of="".concat(Bd,", ").concat(Vd),af="hammerhead|html-parser-element-flag",sf='script,link[rel="stylesheet"]',cf=Xc.createHTMLDocument.call(document.implementation,"title"),lf=Xc.createDocumentFragment.call(cf);lf[af]=!0;var uf,pf=Object.freeze({__proto__:null,isPageHtml:ea,cleanUpHtml:sa,processHtml:ca,dispose:la,isInternalHtmlParserElement:ua}),hf="hammerhead_write_marker_begin",df="hammerhead_write_marker_end",ff="<".concat(hf,"></").concat(hf,">"),mf="<".concat(df,"></").concat(df,">"),gf=new RegExp("^[\\S\\s]*".concat(ff),"g"),vf=new RegExp("".concat(mf,"[\\S\\s]*$"),"g"),yf=/^<[^>]+>/g,_f=/<\/[^<>]+>$/g,Ef=/<\/?(?:[A-Za-z][^>]*)?$/g,Sf="hammerhead|unclosed-element-flag",bf=function(){function e(e,t){this.window=e,this.document=t,this.pending="",this.parentTagChain=[],this.isBeginMarkerInDOM=!1,this.isEndMarkerInDOM=!1,this.isClosingContentEl=!1,this.isNonClosedComment=!1,this.isAddContentToEl=!1,this.contentForProcessing="",this.nonClosedEl=null,this.cachedStartsWithClosingTagRegExps={}}return e.prototype._cutPending=function(e){var t=e.match(Ef);return this.pending=t?t[0]:"",this.pending?e.substring(0,e.length-this.pending.length):e},e.prototype._wrapHtmlChunk=function(e){var t=this.parentTagChain.length?"<"+this.parentTagChain.join("><")+">":"";return this.isNonClosedComment&&(t+="<!--"),t+ff+e+mf},e.prototype._unwrapHtmlChunk=function(e){return e?(e=e.replace(gf,"").replace(vf,""),this.isBeginMarkerInDOM||(e=this.isNonClosedComment?e.slice(4):e.replace(yf,"")),this.isEndMarkerInDOM||(e=this.isNonClosedComment?e.slice(0,-3):e.replace(_f,"")),!this.isBeginMarkerInDOM&&this.isEndMarkerInDOM&&(this.isNonClosedComment=!1),e):e},e._setUnclosedElementFlag=function(e){(dr(e)||fr(e))&&(e[Sf]=!0)},e.hasUnclosedElementFlag=function(e){return!!e[Sf]},e._searchBeginMarker=function(e){var t=Xc.elementQuerySelector.call(e,hf);if(t)return t;for(t=e;Xc.elementFirstElementChildGetter.call(t);)t=Xc.elementFirstElementChildGetter.call(t);var r=Xc.nodeParentNodeGetter.call(t);return Xc.nodeFirstChildGetter.call(r)!==t?t=Xc.nodeFirstChildGetter.call(r):Kr(Xc.nodeFirstChildGetter.call(t))&&(t=Xc.nodeFirstChildGetter.call(t)),t},e._searchEndMarker=function(e){var t=Xc.elementQuerySelector.call(e,df);if(t)return t;for(t=e;Xc.elementLastElementChildGetter.call(t);)t=Xc.elementLastElementChildGetter.call(t);var r=Xc.nodeParentNodeGetter.call(t);return Xc.nodeLastChildGetter.call(r)!==t?t=Xc.nodeLastChildGetter.call(r):Kr(Xc.nodeLastChildGetter.call(t))&&(t=Xc.nodeLastChildGetter.call(t)),t},e.prototype._updateParentTagChain=function(e,t){var r=Gt(t)!==df?t:Xc.nodeParentNodeGetter.call(t);for(Kr(t)&&(this.isNonClosedComment=!0,r=Xc.nodeParentNodeGetter.call(t)),this.parentTagChain=[];r!==e;)this.parentTagChain.unshift(Gt(r)),r=Xc.nodeParentNodeGetter.call(r)},e.prototype._processBeginMarkerInContent=function(t){var r=t;if(e._setUnclosedElementFlag(r),this.isClosingContentEl&&(dr(r)||fr(r)))this.contentForProcessing=Xc.nodeTextContentGetter.call(this.nonClosedEl)+Xc.nodeTextContentGetter.call(r).replace(gf,""),Xc.nodeTextContentSetter.call(r,"");else{var n=Xc.nodeTextContentGetter.call(r);Xc.nodeTextContentSetter.call(r,n.replace(gf,""))}t=Xc.createElement.call(document,hf);var o=Xc.nodeParentNodeGetter.call(r);Xc.insertBefore.call(o,t,r)},e._createStartsWithClosingTagRegExp=function(e){for(var t=[e.charAt(e.length-1),"?"],r=e.length-2;r>-1;r--)t.unshift("(?:",e.charAt(r)),t.push(")?");return t.unshift("^</"),t.push("$"),new RegExp(t.join(""),"i")},e.prototype._getStartsWithClosingTagRegExp=function(t){return t=t.toLowerCase(),this.cachedStartsWithClosingTagRegExps[t]||(this.cachedStartsWithClosingTagRegExps[t]=e._createStartsWithClosingTagRegExp(t)),this.cachedStartsWithClosingTagRegExps[t]},e.prototype._processEndMarkerInContent=function(t){var r=t,n=Xc.nodeTextContentGetter.call(r);if(e._setUnclosedElementFlag(r),Xc.nodeTextContentSetter.call(r,n.replace(vf,"")),t=Xc.createElement.call(document,df),this.pending){var o=this._getStartsWithClosingTagRegExp(r.tagName),i=o.test(this.pending);if(!i){var a=Xc.nodeTextContentGetter.call(r)+this.pending;Xc.nodeTextContentSetter.call(r,a),this.pending=""}}var s=Xc.nodeParentNodeGetter.call(r);Xc.appendChild.call(s,t)},e._addOnDocumentRecreationScript=function(e){var t=Xc.createElement.call(e.ownerDocument,"span"),r=Xc.nodeParentNodeGetter.call(e);Xc.insertBefore.call(r,t,e),Xc.elementOuterHTMLSetter.call(t,jd.onWindowRecreation)},e.prototype._prepareDom=function(t,r){var n=e._searchBeginMarker(t),o=e._searchEndMarker(t);this.isBeginMarkerInDOM=Gt(n)===hf,this.isEndMarkerInDOM=Gt(o)===df,this.isAddContentToEl=n===o,this.isClosingContentEl=!this.isBeginMarkerInDOM&&!this.isAddContentToEl,this.isAddContentToEl||(this._updateParentTagChain(t,o),r&&e._addOnDocumentRecreationScript(o)),this.isBeginMarkerInDOM||this.isEndMarkerInDOM?this.isBeginMarkerInDOM&&!this.isEndMarkerInDOM?this._processEndMarkerInContent(o):!this.isBeginMarkerInDOM&&this.isEndMarkerInDOM&&this._processBeginMarkerInContent(n):(this._processBeginMarkerInContent(n),this._processEndMarkerInContent(o))},e.prototype._processHtmlChunk=function(e,t){var r=this;return e=this._cutPending(this.pending+e),e=this._wrapHtmlChunk(e),e=ca(e,{prepareDom:function(e){return r._prepareDom(e,t)},processedContext:this.window}),e=this._unwrapHtmlChunk(e),e&&this.isBeginMarkerInDOM&&(Hc||Mc)&&!ea(e)&&(e=jd.iframeInit+e),e},e.prototype.write=function(e,t,r){var n=this._processHtmlChunk(Xc.arrayJoin.call(e,""),r);if(this.nonClosedEl&&this.contentForProcessing){var o=this.contentForProcessing;dr(this.nonClosedEl)?o=zi(this.contentForProcessing,!0,!1,Fl,void 0,Cl.get().proxyless):fr(this.nonClosedEl)&&(o=rd.process(this.contentForProcessing,Dl,!0)),Xc.nodeTextContentSetter.call(this.nonClosedEl,o),this.contentForProcessing=""}var i=t?Xc.documentWriteLn:Xc.documentWrite,a=i.call(this.document,n);if(r&&Mc)return a;if(!this.isEndMarkerInDOM&&!this.isAddContentToEl){for(var s=this.document.documentElement;Xc.elementLastElementChildGetter.call(s);)s=Xc.elementLastElementChildGetter.call(s);this.nonClosedEl=s}return a},e}(),wf="hammerhead|windows-storage",xf=Object.freeze({__proto__:null,add:da,remove:fa,findByName:ma}),Cf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._srcdocMode=!1,t}return m(t,e),t.prototype.removeAttr=function(e,t){return Xc.removeAttribute.call(e,t)},t.prototype.getAttr=function(e,t){return Xc.getAttribute.call(e,t)},t.prototype.hasAttr=function(e,t){return e.hasAttribute(t)},t.prototype.isSVGElement=function(e){return Rr(e)},t.prototype.getClassName=function(e){return e.className},t.prototype.hasEventHandler=function(e){for(var t=Xc.elementAttributesGetter.call(e),r=0,n=t;r<n.length;r++){var o=n[r];if(this.EVENTS.indexOf(o.name)!==-1)return!0}return!1},t.prototype.getTagName=function(e){return Gt(e)},t.prototype.setAttr=function(e,t,r){return Xc.setAttribute.call(e,t,r)},t.prototype.setScriptContent=function(e,t){Xc.nodeTextContentSetter.call(e,t)},t.prototype.getScriptContent=function(e){return Xc.nodeTextContentGetter.call(e)},t.prototype.getStyleContent=function(e){return Xc.elementInnerHTMLGetter.call(e)},t.prototype.setStyleContent=function(e,t){Xc.elementInnerHTMLSetter.call(e,t)},t.prototype.needToProcessContent=function(e){return!bf.hasUnclosedElementFlag(e)},t.prototype.needToProcessUrl=function(){return!0},t.prototype.hasIframeParent=function(e){if(this._srcdocMode)return!0;try{return e[vc.processedContext]?window.top!==e[vc.processedContext]:window.top.document!==Ft(e)}catch(t){return!0}},t.prototype.getProxyUrl=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Dl.apply(void 0,e)},t.prototype.isTopParentIframe=function(e){var t=e[vc.processedContext];return t&&window.top===t.parent},t.prototype.sameOriginCheck=function(e,t){return pe(e,t)},t.prototype.isExistingTarget=function(e){return!!ma(e)},t.prototype.processSrcdocAttr=function(e){this._srcdocMode=!0;var t=ca(e,{isPage:!0});return this._srcdocMode=!1,t},t}(Md),Af=new _d(new Cf),Tf=function(e){function t(t,r,n,o,i){var a=e.call(this)||this;return a._nodeSandbox=t,a._shadowUI=r,a._cookieSandbox=n,a._iframeSandbox=o,a._documentTitleStorageInitializer=i,a.writers=new Map,a}return m(t,e),t.forceProxySrcForImageIfNecessary=function(e){Cl.get().proxyless||er(e)&&Cl.get().forceProxySrcForImage&&(e[vc.forceProxySrcForImage]=!0)},t._isDocumentInDesignMode=function(e){return"on"===e.designMode},t.prototype._isUninitializedIframeWithoutSrc=function(e){var t=Nt(e);return e!==e.top&&t&&Jt(t)&&!Dd.isIframeInitialized(t)},t.prototype._beforeDocumentCleaned=function(){this._nodeSandbox.mutation.onBeforeDocumentCleaned(this.document)},t.prototype._onDocumentClosed=function(){this._nodeSandbox.mutation.onDocumentClosed(this.document)},t._shouldEmitDocumentCleanedEvents=function(e){if(Mc){if("loading"!==e.readyState)return!0;var t=e.defaultView;if(t[vc.documentWasCleaned])return!1;var r=t&&Nt(t);return r&&Jt(r)}return"loading"!==e.readyState&&"uninitialized"!==e.readyState},t.prototype._performDocumentWrite=function(e,r,n){var o=t._shouldEmitDocumentCleanedEvents(this.document);o&&this._beforeDocumentCleaned();var i=this.writers.get(e).write(r,n,o);return o||this._nodeSandbox.processNodes(null,this.document),i},t._definePropertyDescriptor=function(e,t,r,n){n.configurable?Xc.objectDefineProperty(e,r,n):t.hasOwnProperty(r)||Xc.objectDefineProperty(t,r,n)},t.prototype.iframeDocumentOpen=function(e,t,r){var n=e.frameElement,o=Xc.documentOpen.apply(t,r);return Xc.objectDefineProperty(e,vc.documentWasCleaned,{value:!0,configurable:!0}),this._nodeSandbox.iframeSandbox.onIframeBeganToRun(n),o},t.prototype.attach=function(r,n,o){var i=this;void 0===o&&(o=!1),this.writers.size||e.prototype.attach.call(this,r,n),this.writers.has(n)||(this.writers.set(n,new bf(r,n)),this._nodeSandbox.mutation.on(this._nodeSandbox.mutation.BEFORE_DOCUMENT_CLEANED_EVENT,function(){i.writers.set(n,new bf(r,n))}));var a=this,s=r.Document.prototype,c={open:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=a._isUninitializedIframeWithoutSrc(r);if(n||a._beforeDocumentCleaned(),Mc)return r.parent[vc.hammerhead].sandbox.node.doc.iframeDocumentOpen(r,this,e);var o=Xc.documentOpen.apply(this,e),i=r[vc.hammerhead]?r[vc.hammerhead].nativeMethods.objectDefineProperty:r.Object.defineProperty;if(i(r,vc.documentWasCleaned,{value:!0,configurable:!0}),n){var s=Nt(r);s&&a._iframeSandbox.processIframe(s)}else a._nodeSandbox.mutation.onDocumentCleaned(r,this);return o},close:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];Mc&&!Dd.isWindowInited(r)&&Xc.restoreDocumentMeths(r,this),t._isDocumentInDesignMode(this)&&gm.removeSelfRemovingScripts(this);var o=Xc.documentClose.apply(this,e);a._isUninitializedIframeWithoutSrc(r)||a._onDocumentClosed();var i=Nt(r);return i&&a._nodeSandbox.iframeSandbox.onIframeBeganToRun(i),o},write:function(){return a._performDocumentWrite(this,arguments)},writeln:function(){return a._performDocumentWrite(this,arguments,!0)}};x(r[Xc.documentOpenPropOwnerName].prototype,"open",c.open),x(r[Xc.documentClosePropOwnerName].prototype,"close",c.close),x(r[Xc.documentWritePropOwnerName].prototype,"write",c.write),x(r[Xc.documentWriteLnPropOwnerName].prototype,"writeln",c.writeln),x(n,"open",c.open),x(n,"close",c.close),x(n,"write",c.write),x(n,"writeln",c.writeln),n.open!==c.open&&x(n,"open",c.open),x(s,"createElement",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=Xc.createElement.apply(this,e);return t.forceProxySrcForImageIfNecessary(n),Af.processElement(n,Fl),a._nodeSandbox.processNodes(n),n}),x(s,"createElementNS",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=Xc.createElementNS.apply(this,e);return t.forceProxySrcForImageIfNecessary(n),Af.processElement(n,Fl),a._nodeSandbox.processNodes(n),n}),x(s,"createDocumentFragment",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xc.createDocumentFragment.apply(this,e);return a._nodeSandbox.processNodes(r),r});var l=r.HTMLDocument.prototype,u="";Xc.documentDocumentURIGetter&&_(s,"documentURI",{getter:function(){return Be(Xc.documentDocumentURIGetter.call(this))}});var p=y(s,"referrer",{getter:function(){var e=Be(Xc.documentReferrerGetter.call(this));return e===Oe()+"/"?de():je(e)?"":e}});t._definePropertyDescriptor(s,l,"referrer",p);var h=y(s,"URL",{getter:function(){return kd.getLocationWrapper(this).href}});t._definePropertyDescriptor(s,l,"URL",h);var d=Xc.objectHasOwnProperty.call(s,"domain")?s:l,f=y(d,"domain",{getter:function(){return u||kd.getLocationWrapper(r).hostname},setter:function(e){u=e}});t._definePropertyDescriptor(d,l,"domain",f),_(s,"styleSheets",{getter:function(){var e=Xc.documentStyleSheetsGetter.call(this);return a._shadowUI._filterStyleSheetList(e,e.length)}});var m=r[Xc.documentCookiePropOwnerName].prototype;this.proxyless||_(m,"cookie",{getter:function(){return a._cookieSandbox.getCookie()},setter:function(e){return a._cookieSandbox.setCookie(String(e))}}),_(s,"activeElement",{getter:function(){var e=Xc.documentActiveElementGetter.call(this);return e&&Or(e)?a._shadowUI.getLastActiveElement()||this.body:e}}),this._documentTitleStorageInitializer&&!o&&_(s,"title",{getter:function(){return a._documentTitleStorageInitializer.storage.getTitle()},setter:function(e){a._documentTitleStorageInitializer.storage.setTitle(e)}})},t}(Ou),If=Object.freeze({__proto__:null,addInputInfo:_a,getFormInfo:Ea,setFormInfo:Sa,removeInputInfo:ba}),Pf=["blur","focus","focusin","focusout","click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","beforeinput","input","keydown","keyup"],Nf={left:0,middle:1,right:2},Of={noButton:0,leftButton:1,rightButton:2},kf={noButton:0,leftButton:1,middleButton:2,rightButton:3},Lf={altKey:"Alt",ctrlKey:"Control",shiftKey:"Shift",metaKey:"Meta"},Df=["click","dblclick","contextmenu","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave","touchstart","touchmove","touchend","keydown","keypress","keyup","textInput","textinput","input","change","focus","blur","MSPointerDown","MSPointerMove","MSPointerOver","MSPointerOut","MSPointerUp","pointerdown","pointermove","pointerover","pointerout","pointerup","pointerenter","pointerleave","dragstart","drop","focusin","focusout"],Mf=!(!Xc.WindowPointerEvent&&!Xc.WindowMSPointerEvent),Rf=Object.freeze({__proto__:null,BUTTON:Nf,BUTTONS_PARAMETER:Of,WHICH_PARAMETER:kf,KEYBOARD_MODIFIERS_PARAMETER:Lf,DOM_EVENTS:Df,preventDefault:wa,stopPropagation:xa,isObjectEventListener:Ca,isValidEventListener:Aa,callEventListener:Ta,isComposedEvent:Ia,hasPointerEvents:Mf}),jf=["setNamedItem","setNamedItemNS","removeNamedItem","removeNamedItemNS","getNamedItem","getNamedItemNS"],Ff=function(){function e(e,t){var r=this;ka(this,t),this.item=function(e){return r[e]};for(var n in t)"function"==typeof this[n]&&"item"!==n&&(this[n]=jf.indexOf(n)!==-1?Na(e,t,n):Pa(t[n],t));zl&&(this.getNamedItem=Na(e,t,"getNamedItem"))}return e}(),Hf="hammerhead|element-attribute-wrappers",Uf=function(){function e(){var e=this;this._mutations=Xc.objectCreate(null),this._isDomContentLoaded=!1,Xc.addEventListener.call(document,"DOMContentLoaded",function(){for(var t=0,r=Xc.objectKeys(e._mutations);t<r.length;t++){var n=r[t];e._updateVersion(n)}e._isDomContentLoaded=!0})}return e.prototype._updateVersion=function(e){e in this._mutations&&this._mutations[e].increment()},e.prototype._processElement=function(e){if(e.tagName&&!Or(e)){var t=Gt(e);this._updateVersion("*"),this._updateVersion(t)}},e.prototype._processChildren=function(e){if(e.querySelectorAll)for(var t=Et(e).call(e,"*"),r=Xc.nodeListLengthGetter.call(t),n=0;n<r;n++)this._processElement(t[n])},e.prototype.onElementChanged=function(e){this._processElement(e),this._processChildren(e)},e.prototype.onChildrenChanged=function(e){this._processChildren(e)},e.prototype.isDomContentLoaded=function(){return this._isDomContentLoaded},e.prototype.isOutdated=function(e,t){var r=e in this._mutations;r||(this._mutations[e]=new Cd);var n=this._mutations[e].value;return t<n},e.prototype.getVersion=function(e){return e in this._mutations?this._mutations[e].value:-(1/0)},e}(),Bf=new Uf,Vf=["_blank","_self","_parent","_top"],Wf=/[A-Z]/g,Gf=[nd.refresh,nd.contentSecurityPolicy];!function(e){e[e.Ns=0]="Ns",e[e.Node=1]="Node"}(uf||(uf={}));var qf=function(e){function t(t,r,n,o,i,a){var s=e.call(this)||this;return s._nodeSandbox=t,s._uploadSandbox=r,s._iframeSandbox=n,s._shadowUI=o,s._eventSandbox=i,s._childWindowSandbox=a,s.BEFORE_FORM_SUBMIT_EVENT="hammerhead|event|before-form-submit",s.SCRIPT_ELEMENT_ADDED_EVENT="hammerhead|event|script-added",s.overriddenMethods=null,s}return m(t,e),t._onTargetChanged=function(e){var t=Gt(e),r=Af.getTargetAttr(e);if(_d.isIframeFlagTag(t)){var n="";"target"===r?n="form"===t?"action":"href":"formtarget"===r&&(n="formaction");var o=_d.getStoredAttrName(n);if(e.hasAttribute(o)){var i=e.getAttribute(o);Re(i)&&e.setAttribute(n,i)}}},t._setProxiedSrc=function(e){if(!e[vc.forceProxySrcForImage]){var t=Xc.imageSrcGetter.call(e),r=Mc?null:Xc.imageSrcsetGetter.call(e),n=!!t&&e.complete&&!e[vc.cachedImage];e[vc.forceProxySrcForImage]=!0,t&&e.setAttribute("src",t),r&&e.setAttribute("srcset",r),e[vc.skipNextLoadEventForImage]=n}},t.prototype.getAttributeCore=function(e,t,r){var n=String(t[r?1:0]),o=n.toLowerCase(),i=r?t[0]:null,a=r?Xc.getAttributeNS:Xc.getAttribute,s=Gt(e);if("style"===o)return rd.cleanUp(a.apply(e,t),jl);if(Af.isUrlAttr(e,o,i)||Af.EVENTS.indexOf(o)!==-1||qh.indexOf(o)!==-1){var c=_d.getStoredAttrName(n),l=a.apply(e,r?[i,c]:[c]);if(_d.isAddedAutocompleteAttr(o,l))return null;e.hasAttribute(c)&&(t[r?1:0]=c)}else if(!r&&("integrity"===o&&_d.isTagWithIntegrityAttr(s)||"rel"===o&&"link"===s||"required"===o&&wr(e)||"srcdoc"===o&&"iframe"===s)){var u=_d.getStoredAttrName(n);Xc.hasAttribute.call(e,u)&&(t[0]=u)}return a.apply(e,t)},t.prototype.setAttributeCore=function(e,r,n){var o=n?r[0]:null,i=String(r[n?1:0]),a=i.toLowerCase(),s=n?2:1,c=String(r[s]),l=n?Xc.setAttributeNS:Xc.setAttribute,u=Gt(e),p=Af.isUrlAttr(e,i,o),h=Af.EVENTS.indexOf(i)!==-1,d="srcset"===i,f=!1,m=!1,g=je(c),v=Re(c);if(p&&!v&&!g||h){var y=_d.isJsProtocol(c),_=_d.getStoredAttrName(i);(p&&y||h)&&(r[s]=_d.processJsAttrValue(c,{isJsProtocol:y,isEventAttr:h})),l.apply(e,n?[o,_,c]:[_,c])}else if(p&&(v||g)){var E=_d.getStoredAttrName(i);if(l.apply(e,n?[o,E,c]:[E,c]),"img"!==u||e[vc.forceProxySrcForImage]){if("img"===u&&(e[vc.skipNextLoadEventForImage]=!1),""!==c&&(!g||"a"===u)){var S="iframe"===u||"frame"===u,b="script"===u,w=!this.proxyless&&v&&!pe(this.window.location.toString(),c),x=Af.getElementResourceType(e),C=b&&e.charset,A=e.ownerDocument||this.document;if("formaction"===a&&!Xc.hasAttribute.call(e,"formtarget")&&(x=He({isForm:!0}),e.form&&Xc.hasAttribute.call(e.form,"action"))){var T=jl(Xc.formActionGetter.call(e.form));T&&(x=T.resourceType)}t._isHrefAttrForBaseElement(e,i)&&Kt(e,A)&&wl.updateBase(c,A),this.proxyless?r[s]=c:r[s]=S&&w?Ml(c):Dl(c,{resourceType:x,charset:C,doc:A,isUrlsSet:d})}}else!c||g||jl(c)||(r[s]=Rl(c,d));Xc.nodeParentNodeGetter.call(e)||Xc.objectDefineProperty(e,vc.currentBaseUrl,{value:wl.getBaseUrl(document),configurable:!0,writable:!0})}else if("autocomplete"===a){var I=_d.getStoredAttrName(i);l.apply(e,n?[o,I,c]:[I,c]),r[s]="off"}else if("target"===a&&_d.isTagWithTargetAttr(u)||"formtarget"===a&&_d.isTagWithFormTargetAttr(u)){var P=Xc.getAttribute.call(e,a),N=this.getCorrectedTarget(c);if(N===P)return null;var O=_d.getStoredAttrName(i);l.apply(e,n?[o,O,c]:[O,c]),r[s]=N,f=!0}else if("sandbox"===i){var L=_d.getStoredAttrName(i),D=c.indexOf("allow-same-origin")!==-1,M=c.indexOf("allow-scripts")!==-1;l.apply(e,n?[o,L,c]:[L,c]),D&&M||(r[s]+=D?"":" allow-same-origin",r[s]+=M?"":" allow-scripts"),e[this._nodeSandbox.win.SANDBOX_DOM_TOKEN_LIST_UPDATE_FN]&&e[this._nodeSandbox.win.SANDBOX_DOM_TOKEN_LIST_UPDATE_FN](c)}else if("meta"===u&&"http-equiv"===Ra(i)){var R=c.toLowerCase();if(Gf.indexOf(R)!==-1)return null}else if("xlink:href"===a&&Af.SVG_XLINK_HREF_TAGS.indexOf(u)!==-1&&Rr(e)){var j=_d.getStoredAttrName(i);l.apply(e,n?[o,j,c]:[j,c]),ul.test(c)||(r[s]=Dl(c))}else if("style"===a)r[s]=rd.process(c,Dl);else{if(!n&&"integrity"===a&&_d.isTagWithIntegrityAttr(u)){var F=_d.getStoredAttrName(i);return l.apply(e,[F,c])}if(n||"rel"!==a||"link"!==u)if(n||"as"!==a||"link"!==u){if(!n&&"required"===a&&wr(e)){var H=_d.getStoredAttrName(i);Xc.removeAttribute.call(e,i),r[0]=H}else if(!n&&"type"===a&&tr(e)){var U=Xc.getAttribute.call(e,a),B=c.toLowerCase(),H=_d.getStoredAttrName("required"),V=Xc.hasAttribute.call(e,H)?Xc.getAttribute.call(e,H):Xc.getAttribute.call(e,"required"),W=!U||B!==U.toLowerCase();W&&null!==V&&("file"===B?(Xc.setAttribute.call(e,H,V),Xc.removeAttribute.call(e,"required")):"file"===U&&(Xc.setAttribute.call(e,"required",V),Xc.removeAttribute.call(e,H)))}else if(!n&&"srcdoc"===a&&"iframe"===u){var G=_d.getStoredAttrName(i);l.apply(e,[G,c]),r[s]=Af.adapter.processSrcdocAttr(c)}}else{var q=Xc.getAttribute.call(e,"as");m=c!==q&&(c===Af.PROCESSED_PRELOAD_LINK_CONTENT_TYPE||q===Af.PROCESSED_PRELOAD_LINK_CONTENT_TYPE)}else{var q=Xc.getAttribute.call(e,"rel"),z=k(c.toLowerCase()),K=_d.getStoredAttrName(i);m=c!==q&&(c===Af.MODULE_PRELOAD_LINK_REL||q===Af.MODULE_PRELOAD_LINK_REL),"prefetch"===z?(Xc.removeAttribute.call(e,i),r[0]=K):Xc.removeAttribute.call(e,K)}}var $=l.apply(e,r);return"img"!==u||e[vc.forceProxySrcForImage]||!e.complete||Hc||(e[vc.cachedImage]=!0),f&&t._onTargetChanged(e),m&&Xc.hasAttribute.call(e,"href")&&this.setAttributeCore(e,["href",Xc.getAttribute.call(e,"href")]),$},t.prototype._hasAttributeCore=function(e,t,r){var n=r?1:0,o=r?Xc.hasAttributeNS:Xc.hasAttribute,i=_d.getStoredAttrName("autocomplete"),a=Xc.getAttribute.call(e,i),s=Gt(e);if("string"==typeof t[n]&&_d.isAddedAutocompleteAttr(t[n],a))return!1;if(!r&&"integrity"===t[0]&&_d.isTagWithIntegrityAttr(s))t[0]=_d.getStoredAttrName("integrity");else{if(!r&&"rel"===t[0]&&"link"===s){var c=_d.getStoredAttrName(t[0]);return o.apply(e,t)||o.apply(e,[c])}if(!r&&"required"===t[0]&&wr(e)){var l=_d.getStoredAttrName(t[0]);return o.apply(e,t)||o.call(e,l)}}return o.apply(e,t)},t._removeStoredAttrNode=function(e){var t,r=_d.getStoredAttrName(e.name);
t=e.namespaceURI?Xc.getAttributeNodeNS.call(this,e.namespaceURI,r):Xc.getAttributeNode.call(this,r),t&&Xc.removeAttributeNode.call(this,t)},t.prototype.removeAttributeCore=function(e,r,n){var o,i,a,s=n===uf.Ns,c=n===uf.Node;c?(i=r[0],o=i.name,a=t._removeStoredAttrNode):(o=String(r[s?1:0]),a=s?Xc.removeAttributeNS:Xc.removeAttribute);var l=o.toLowerCase(),u=Gt(e),p=void 0;if(Af.isUrlAttr(e,l,s?r[0]:null)||"sandbox"===l||"autocomplete"===l||Af.EVENTS.indexOf(l)!==-1||"target"===l&&_d.isTagWithTargetAttr(u)||"formtarget"===l&&_d.isTagWithFormTargetAttr(u)){var h=_d.getStoredAttrName(o);"autocomplete"===l?Xc.setAttribute.call(e,h,Af.AUTOCOMPLETE_ATTRIBUTE_ABSENCE_MARKER):a.apply(e,s?[r[0],h]:[c?i:h])}else if(s||"rel"!==l||"link"!==u){if(!s&&"required"===l&&wr(e)){var d=_d.getStoredAttrName(o);a.call(e,c?i:d)}else if(!s&&"type"===l&&tr(e)){var d=_d.getStoredAttrName("required");if(Xc.hasAttribute.call(e,d)){var f=Xc.getAttribute.call(e,d);Xc.setAttribute.call(e,"required",f),Xc.removeAttribute.call(e,d)}}}else{var m=_d.getStoredAttrName(o);a.apply(e,[c?i:m])}if(t._isHrefAttrForBaseElement(e,l)&&wl.updateBase(Tl(),this.document),"autocomplete"!==l)if(c){for(var g=[Xc.getAttributeNodeNS.call(e,i.namespaceURI,i.name)],v=1,y=r.length;v<y;++v)g.push(r[v]);p=Xc.removeAttributeNode.apply(e,g)}else{var _=s?Xc.removeAttributeNS:Xc.removeAttribute;p=_.apply(e,r)}return("target"===l&&_d.isTagWithTargetAttr(u)||"formtarget"===l&&_d.isTagWithFormTargetAttr(u))&&t._onTargetChanged(e),p},t._getChildNodesArray=function(e,t){var r=[],n=t[0],o=t[1];if(0===e.length)return r;for(var i=n;i<o;i++){var a=e[i];if($r(a)){var s=Xc.nodeChildNodesGetter.call(a);r.push.apply(r,mn(s))}else"string"!=typeof a&&r.push(a)}return r},t._ensureStringArguments=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=[],n=0;n<e.length;n++)r.push(String(e[n]));return r},t.prototype._addNodeCore=function(e,r,n,o,i,a,s){void 0===a&&(a=!0),void 0===s&&(s=!1),this._prepareNodesForInsertion(o,n,e,s);var c=null,l=t._getChildNodesArray(o,n);if(a&&Cr(e)&&Kt(e)){var u=Xc.arraySlice.apply(o,n);c=this._shadowUI.insertBeforeRoot(u)}else c=i.apply(r,o);for(var p=0,h=l;p<h.length;p++){var d=h[p];this._onElementAdded(d)}return c},t.prototype._removeNodeCore=function(e,t,r,n){this._onRemoveFileInputInfo(r),this._onRemoveIframe(r);var o=n.apply(e,t);return this._onElementRemoved(r),o},t.prototype._prepareNodesForInsertion=function(e,r,n,o){if(void 0===o&&(o=!1),0!==e.length)for(var i=r[0],a=r[1],s=i;s<a;s++){var c=e[s];qr(c)?c.data=t._processTextContent(c.data,n):Wt(c)||$r(c)||Kr(c)?this._nodeSandbox.processNodes(c):(o&&(c=String(c)),"string"==typeof c&&(e[s]=t._processTextContent(c,n)))}},t.prototype._insertAdjacentTextOrElement=function(e,t,r){var n,o,i=null===(o=null===(n=t[0])||void 0===n?void 0:n.toLocaleLowerCase)||void 0===o?void 0:o.call(n),a=i===Fd.beforeBegin||i===Fd.afterEnd?Xc.nodeParentNodeGetter.call(e):e;return a?this._addNodeCore(a,e,[1,2],t,r,i===Fd.beforeEnd):Xc.insertAdjacentElement.apply(e,t)},t.prototype._createOverriddenMethods=function(){var e=this;this.overriddenMethods={appendData:function(e){var r=Xc.nodeParentNodeGetter.call(this);Xc.nodeTextContentSetter.call(this,Xc.nodeTextContentGetter.call(this)+e),r&&(this.data=t._processTextContent(this.data,r))},insertRow:function(){var t=Qr(this)?Xc.insertTableRow:Xc.insertTBodyRow,r=t.apply(this,arguments);return e._nodeSandbox.processNodes(r),r},insertCell:function(){var t=Xc.insertCell.apply(this,arguments);return e._nodeSandbox.processNodes(t),t},insertAdjacentHTML:function(){for(var t,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=null===(r=null===(t=n[0])||void 0===t?void 0:t.toLocaleLowerCase)||void 0===r?void 0:r.call(t),a=n[1],s=i===Fd.beforeBegin||i===Fd.afterEnd?Xc.nodeParentNodeGetter.call(this):this;n.length>1&&null!==a&&s&&(n[1]=ca(String(a),{parentTag:s.tagName,processedContext:s[vc.processedContext]})),Xc.insertAdjacentHTML.apply(this,n),s&&(e._nodeSandbox.processNodes(s),Bf.onChildrenChanged(s))},insertAdjacentElement:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e._insertAdjacentTextOrElement(this,t,Xc.insertAdjacentElement)},insertAdjacentText:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=t._ensureStringArguments.apply(t,r),i=o[0],a=o[1];return e._insertAdjacentTextOrElement(this,[i,a],Xc.insertAdjacentText)},formSubmit:function(){e._ensureTargetContainsExistingBrowsingContext(this);var t={form:this,preventSubmit:!1};return e.emit(e.BEFORE_FORM_SUBMIT_EVENT,t),t.preventSubmit?null:Xc.formSubmit.apply(this,arguments)},insertBefore:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e._addNodeCore(this,this,[0,1],t,Xc.insertBefore,!t[1])},appendChild:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e._addNodeCore(this,this,[0,1],t,Xc.appendChild)},append:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e._addNodeCore(this,this,[0,t.length],t,Xc.append,!0,!0)},prepend:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e._addNodeCore(this,this,[0,t.length],t,Xc.prepend,!1)},after:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=Xc.nodeParentNodeGetter.call(this);return n?e._addNodeCore(n,this,[0,t.length],t,Xc.after,!1):Xc.after.apply(this,t)},removeChild:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e._removeNodeCore(this,t,t[0],Xc.removeChild)},remove:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e._removeNodeCore(this,t,this,Xc.remove)},elementReplaceWith:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=Xc.nodeParentNodeGetter.call(this);if(!o)return Xc.elementReplaceWith.apply(this,r);var i=[0,r.length];e._prepareNodesForInsertion(r,i,o);var a=t._getChildNodesArray(r,i);e._onRemoveFileInputInfo(this),e._onRemoveIframe(this);var s=Xc.elementReplaceWith.apply(this,r);e._onElementRemoved(this);for(var c=0,l=a;c<l.length;c++){var u=l[c];e._onElementAdded(u)}return s},replaceChild:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=r[0],i=r[1];qr(o)&&(o.data=t._processTextContent(o.data,this)),e._onRemoveFileInputInfo(i);var a=Xc.replaceChild.apply(this,arguments);return e._onAddFileInputInfo(o),Bf.onElementChanged(o),Bf.onElementChanged(i),a},cloneNode:function(){var t=Xc.cloneNode.apply(this,arguments);return e._nodeSandbox.processNodes(t),t},attachShadow:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xc.attachShadow.apply(this,e);return Xc.objectDefineProperty(r,Pu,{value:this}),r},getAttribute:function(){return e.getAttributeCore(this,arguments)},getAttributeNS:function(){return e.getAttributeCore(this,arguments,!0)},setAttribute:function(){var t=e.setAttributeCore(this,arguments);return Da(this),t},setAttributeNS:function(){var t=e.setAttributeCore(this,arguments,!0);return Da(this),t},removeAttribute:function(){var t=e.removeAttributeCore(this,arguments);return Da(this),t},removeAttributeNS:function(){var t=e.removeAttributeCore(this,arguments,uf.Ns);return Da(this),t},removeAttributeNode:function(){var t=e.removeAttributeCore(this,arguments,uf.Node);return Da(this),t},querySelector:function(){return"string"==typeof arguments[0]&&(arguments[0]=rm.processSelector(arguments[0])),_t(this).apply(this,arguments)},querySelectorAll:function(){return"string"==typeof arguments[0]&&(arguments[0]=rm.processSelector(arguments[0])),Et(this).apply(this,arguments)},hasAttribute:function(){return e._hasAttributeCore(this,arguments,!1)},hasAttributeNS:function(){return e._hasAttributeCore(this,arguments,!0)},hasAttributes:function(){return 2===Xc.elementAttributesGetter.call(this).length&&Xc.elementAttributesGetter.call(this).getNamedItem("autocomplete")&&Xc.elementAttributesGetter.call(this).getNamedItem(_d.getStoredAttrName("autocomplete"))?e._hasAttributeCore(this,["autocomplete"],!1):Xc.hasAttributes.apply(this,arguments)},anchorToString:function(){return Be(Xc.anchorToString.call(this))},registerElement:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[1];if(r&&r.prototype&&r.prototype.createdCallback){var n=r.prototype.createdCallback;r.prototype.createdCallback=function(){ua(this)||n.call(this)}}return Xc.registerElement.apply(this,e)}}},t._processTextContent=function(e,t){return t.tagName?dr(t)?zi(e,!0,!1,Fl,void 0,Cl.get().proxyless):fr(t)?rd.process(e,Dl):e:e},t._isHrefAttrForBaseElement=function(e,t){return hr(e)&&"href"===t},t._removeFileInputInfo=function(e){ba(e)},t._hasShadowUIParentOrContainsShadowUIClassPostfix=function(e){var t=Xc.nodeParentNodeGetter.call(e);return t&&Or(t)||gm.containsShadowUIClassPostfix(e)},t.prototype._isFirstBaseTagOnPage=function(e){var t=e.ownerDocument||this.document;return Xc.querySelector.call(t,"base")===e},t.prototype._onAddFileInputInfo=function(e){if(Wt(e))for(var t=gn(e),r=0,n=t;r<n.length;r++){var o=n[r];this.addFileInputInfo(o)}},t.prototype._onRemoveFileInputInfo=function(e){Wt(e)&&(wr(e)?t._removeFileInputInfo(e):jt(e,"input[type=file]",t._removeFileInputInfo))},t.prototype._onRemoveIframe=function(e){Wt(e)&&Yt(e)&&fa(Xc.contentWindowGetter.call(e))},t.prototype._onElementAdded=function(e){if(t._hasShadowUIParentOrContainsShadowUIClassPostfix(e)&&gm.markElementAndChildrenAsShadow(e),(Wt(e)||Lr(e))&&Kt(e)){for(var r=vn(e),n=0,o=r;n<o.length;n++){var i=o[n];this.onIframeAddedToDOM(i)}for(var a=yn(e),s=0,c=a;s<c.length;s++){var l=c[s];this.emit(this.SCRIPT_ELEMENT_ADDED_EVENT,{el:l})}Bf.onElementChanged(e)}if((tr(e)||nr(e))&&e.form&&Xc.hasAttribute.call(e,"formaction")&&e.setAttribute("formaction",e.getAttribute("formaction")),sr(e)&&this._shadowUI.onBodyElementMutation(),this._onAddFileInputInfo(e),hr(e)&&this._isFirstBaseTagOnPage(e)){var u=_d.getStoredAttrName("href"),p=e.getAttribute(u);null!==p&&wl.updateBase(p,this.document)}},t.prototype._onElementRemoved=function(e){if(sr(e))this._shadowUI.onBodyElementMutation();else if(hr(e)){var t=Xc.querySelector.call(this.document,"base"),r=t&&t.getAttribute(_d.getStoredAttrName("href"));wl.updateBase(r||Tl(),this.document)}Bf.onElementChanged(e)},t.prototype._reprocessElementsAssociatedWithIframe=function(e){if(e.name)for(var t=e.name.replace(/"/g,'\\"'),r=Xc.querySelectorAll.call(this.document,'*[target="'.concat(t,'"]')),n=0,o=r;n<o.length;n++){var i=o[n];this._reprocessElementAssociatedWithIframe(i)}},t.prototype._reprocessElementAssociatedWithIframe=function(e){var t=Af.getUrlAttr(e),r=_d.getStoredAttrName(t);Xc.removeAttribute.call(e,r),_d.setElementProcessed(e,!1),Af.processElement(e,Fl)},t.prototype.addFileInputInfo=function(e){var t=this._uploadSandbox.infoManager;_a(e,t.getFiles(e),t.getValue(e))},t.prototype.onIframeAddedToDOM=function(e){Ut(e,!0)||this._nodeSandbox.mutation.onIframeAddedToDOM(e),da(Xc.contentWindowGetter.call(e)),this._reprocessElementsAssociatedWithIframe(e)},t.prototype.attach=function(r){e.prototype.attach.call(this,r),this._createOverriddenMethods(),x(r.Element.prototype,"setAttribute",this.overriddenMethods.setAttribute),x(r.Element.prototype,"setAttributeNS",this.overriddenMethods.setAttributeNS),x(r.Element.prototype,"getAttribute",this.overriddenMethods.getAttribute),x(r.Element.prototype,"getAttributeNS",this.overriddenMethods.getAttributeNS),x(r.Element.prototype,"removeAttribute",this.overriddenMethods.removeAttribute),x(r.Element.prototype,"removeAttributeNS",this.overriddenMethods.removeAttributeNS),x(r.Element.prototype,"removeAttributeNode",this.overriddenMethods.removeAttributeNode),x(r.Element.prototype,"cloneNode",this.overriddenMethods.cloneNode),x(r.Element.prototype,"querySelector",this.overriddenMethods.querySelector),x(r.Element.prototype,"querySelectorAll",this.overriddenMethods.querySelectorAll),x(r.Element.prototype,"hasAttribute",this.overriddenMethods.hasAttribute),x(r.Element.prototype,"hasAttributeNS",this.overriddenMethods.hasAttributeNS),x(r.Element.prototype,"hasAttributes",this.overriddenMethods.hasAttributes),Xc.attachShadow&&x(r.Element.prototype,"attachShadow",this.overriddenMethods.attachShadow),x(r.Node.prototype,"cloneNode",this.overriddenMethods.cloneNode),x(r.Node.prototype,"appendChild",this.overriddenMethods.appendChild),x(r.Node.prototype,"removeChild",this.overriddenMethods.removeChild),x(r.Node.prototype,"insertBefore",this.overriddenMethods.insertBefore),x(r.Node.prototype,"replaceChild",this.overriddenMethods.replaceChild),Xc.append&&x(r.Element.prototype,"append",this.overriddenMethods.append),Xc.prepend&&x(r.Element.prototype,"prepend",this.overriddenMethods.prepend),Xc.after&&x(r.Element.prototype,"after",this.overriddenMethods.after),Xc.remove&&x(r.Element.prototype,"remove",this.overriddenMethods.remove),Xc.elementReplaceWith&&x(r.Element.prototype,"replaceWith",this.overriddenMethods.elementReplaceWith),x(r.DocumentFragment.prototype,"querySelector",this.overriddenMethods.querySelector),x(r.DocumentFragment.prototype,"querySelectorAll",this.overriddenMethods.querySelectorAll),x(r.HTMLTableElement.prototype,"insertRow",this.overriddenMethods.insertRow),x(r.HTMLTableSectionElement.prototype,"insertRow",this.overriddenMethods.insertRow),x(r.HTMLTableRowElement.prototype,"insertCell",this.overriddenMethods.insertCell),x(r.HTMLFormElement.prototype,"submit",this.overriddenMethods.formSubmit),x(r.HTMLAnchorElement.prototype,"toString",this.overriddenMethods.anchorToString),x(r.CharacterData.prototype,"appendData",this.overriddenMethods.appendData),r.Document.prototype.registerElement&&x(r.Document.prototype,"registerElement",this.overriddenMethods.registerElement),x(Xc.insertAdjacentMethodsOwner,"insertAdjacentHTML",this.overriddenMethods.insertAdjacentHTML),x(Xc.insertAdjacentMethodsOwner,"insertAdjacentElement",this.overriddenMethods.insertAdjacentElement),x(Xc.insertAdjacentMethodsOwner,"insertAdjacentText",this.overriddenMethods.insertAdjacentText),this._setValidBrowsingContextOnElementClick(r),this._eventSandbox.listeners.on(this._eventSandbox.listeners.EVENT_LISTENER_ATTACHED_EVENT,function(e){"load"===e.eventType&&er(e.el)&&t._setProxiedSrc(e.el)}),_(r.HTMLElement.prototype,"onload",{getter:null,setter:function(e){er(this)&&Aa(e)&&t._setProxiedSrc(this),Xc.htmlElementOnloadSetter.call(this,e)}})},t.prototype._ensureTargetContainsExistingBrowsingContext=function(e){if(!Cl.get().allowMultipleWindows&&Xc.hasAttribute.call(e,"target")){var t=Xc.getAttribute.call(e,"target"),r=Xc.getAttribute.call(e,_d.getStoredAttrName("target"));e.setAttribute("target",r||t)}},t.prototype._setValidBrowsingContextOnElementClick=function(e){var t=this;this._eventSandbox.listeners.initElementListening(e,["click"]),this._eventSandbox.listeners.addInternalEventBeforeListener(e,["click"],function(e){var r=Xc.eventTargetGetter.call(e);tr(r)&&r.form&&(r=r.form);var n=Gt(r);_d.isTagWithTargetAttr(n)&&t._ensureTargetContainsExistingBrowsingContext(r)})},t.prototype._setProxiedSrcUrlOnError=function(e){e.addEventListener("error",function(t){var r=Xc.getAttribute.call(e,_d.getStoredAttrName("src")),n=Xc.imageSrcGetter.call(e);r&&!jl(n)&&Re(n)&&!je(n)&&(Xc.setAttribute.call(e,"src",Dl(r)),xa(t))},!1)},t.prototype.getCorrectedTarget=function(e){return void 0===e&&(e=""),Cl.get().allowMultipleWindows?e:e&&!Ma(e)&&!ma(e)||/_blank/i.test(e)?"_top":e},t.prototype._handleImageLoadEventRaising=function(e){this.proxyless||(this._eventSandbox.listeners.initElementListening(e,["load"]),this._eventSandbox.listeners.addInternalEventBeforeListener(e,["load"],function(t,r,n,o,i){e[vc.cachedImage]&&(e[vc.cachedImage]=!1),e[vc.skipNextLoadEventForImage]&&(e[vc.skipNextLoadEventForImage]=!1,n(),i())}),e[vc.forceProxySrcForImage]||Cl.get().forceProxySrcForImage||this._setProxiedSrcUrlOnError(e))},t.prototype._processBaseTag=function(e){if(this._isFirstBaseTagOnPage(e)){var t=Xc.getAttribute.call(e,_d.getStoredAttrName("href"));null!==t&&wl.updateBase(t,e.ownerDocument||this.document)}},t.prototype._reProcessElementWithTargetAttr=function(e,t){var r=Af.getTargetAttr(e);_d.isIframeFlagTag(t)&&"_parent"===Xc.getAttribute.call(e,r)&&Af.processElement(e,Fl)},t.prototype.processElement=function(e){var t=Gt(e);switch(t){case"a":this._childWindowSandbox.handleClickOnLinkOrArea(e);break;case"img":this._handleImageLoadEventRaising(e);break;case"iframe":case"frame":this._iframeSandbox.processIframe(e);break;case"base":this._processBaseTag(e);break;case"area":this._childWindowSandbox.handleClickOnLinkOrArea(e)}this._reProcessElementWithTargetAttr(e,t)},t}(Ou),zf="",Kf="hammerhead|document-title-storage|internal-prop-name",$f=function(e){function t(t){var r=e.call(this)||this;return r._document=t,r}return m(t,e),t.prototype._ensureFirstTitleElement=function(){var e=this.getFirstTitleElement();return e?e:(e=Xc.createElement.call(this._document,"title"),Xc.appendChild.call(this._document.head,e),this.emit("titleElementAdded"),e)},t.prototype._getValueFromFirstTitleElement=function(){var e=this.getFirstTitleElement();return e?this.getTitleElementPropertyValue(e):zf},t.prototype._setValueForFirstTitleElement=function(e){var t=this._ensureFirstTitleElement();this.setTitleElementPropertyValue(t,e)},t.prototype._getTitleElement=function(e){return this._document&&this._document.head&&Xc.elementQuerySelectorAll.call(this._document.head,"title")[e]},t.prototype.getFirstTitleElement=function(){return this._getTitleElement(0)},t.prototype.getSecondTitleElement=function(){return this._getTitleElement(1)},t.prototype.getTitle=function(){return this._getValueFromFirstTitleElement()},t.prototype.setTitle=function(e){e=String(e),this._setValueForFirstTitleElement(e)},t.prototype.getTitleElementPropertyValue=function(e){return e[Kf]||zf},t.prototype.setTitleElementPropertyValue=function(e,t){t=String(t),this.isElementProcessed(e)?e[Kf]=t:Xc.objectDefineProperty(e,Kf,{value:t,writable:!0})},t.prototype.getDocument=function(){return this._document},t.prototype.isElementProcessed=function(e){return Kf in e},Object.defineProperty(t,"DEFAULT_TITLE_VALUE",{get:function(){return zf},enumerable:!1,configurable:!0}),t}(Yc),Xf=function(){function e(e){var t=this;this.storage=e,this.storage.on("titleElementAdded",function(){return t._processFirstTitleElement()})}return e.prototype._setProxiedTitleValue=function(){var e=Cl.get(),t=e.sessionId,r=e.windowId,n="".concat(t,"*").concat(r);Xc.documentTitleSetter.call(this.storage.getDocument(),n)},e.prototype._processFirstTitleElement=function(){var e=this.storage.getFirstTitleElement();if(!e)return!1;if(this.storage.isElementProcessed(e))return!1;var t=Xc.titleElementTextGetter.call(e);return this.storage.setTitleElementPropertyValue(e,t),this._setProxiedTitleValue(),!0},e.prototype.onAttach=function(){this._processFirstTitleElement()},e.prototype.onPageTitleLoaded=function(){if(!this._processFirstTitleElement()){var e=this.storage.getFirstTitleElement(),t=this.storage.getSecondTitleElement();if(t){var r=Xc.titleElementTextGetter.call(t)||Xc.htmlElementInnerTextGetter.call(t),n=Xc.titleElementTextGetter.call(e);Xc.titleElementTextSetter.call(t,n),Yi(e),this.storage.setTitleElementPropertyValue(t,r)}}},e}(),Yf=/\[([\w-]+)(\^?=.+?)]/g,Qf=/^\W+\s*#/,Jf=/\s*:focus\b/gi,Zf=/:hover\b/gi,em=Node.DOCUMENT_FRAGMENT_NODE,tm=function(e){function t(r,n,o,i,a,s,c){var l=e.call(this)||this;return l.mutation=r,l.iframeSandbox=n,l._eventSandbox=o,l._uploadSandbox=i,l.shadowUI=a,l._cookieSandbox=s,l._childWindowSandbox=c,l.raiseBodyCreatedEvent=l._onBodyCreated,Xc.objectDefineProperty(document,vc.documentCharset,{value:pn(),writable:!0}),l._documentTitleStorageInitializer=t._createDocumentTitleStorageInitializer(),l.doc=new Tf(l,l.shadowUI,l._cookieSandbox,l.iframeSandbox,l._documentTitleStorageInitializer),l.win=new Zm(l,l._eventSandbox,l._uploadSandbox,l.mutation,l._childWindowSandbox,l._documentTitleStorageInitializer),l.element=new qf(l,l._uploadSandbox,l.iframeSandbox,l.shadowUI,l._eventSandbox,l._childWindowSandbox),l}return m(t,e),t._createDocumentTitleStorageInitializer=function(){if(Vt(window))return null;var e=new $f(document);return new Xf(e)},t.prototype._onBodyCreated=function(){this._eventSandbox.listeners.initDocumentBodyListening(this.document),this.mutation.onBodyCreated(this.document.body)},t.prototype._processElement=function(e){var t=e[vc.processedContext],r=!!e[vc.currentBaseUrl]&&e[vc.currentBaseUrl]!==wl.getBaseUrl(this.document);if(r||!Or(e)&&t!==this.window){var n=null;t&&(n=Af.getUrlAttr(e),n=n&&e.hasAttribute(n)?n:null);var o=Xc.objectIsExtensible(e),i=t&&!Xc.objectIsFrozen(e);(o||i)&&Xc.objectDefineProperty(e,vc.processedContext,{value:this.window,writable:!0}),n&&e.setAttribute(n,e.getAttribute(n)),r&&delete e[vc.currentBaseUrl],this.element.processElement(e)}},t.prototype.onOriginFirstTitleElementInHeadLoaded=function(){this._documentTitleStorageInitializer&&this._documentTitleStorageInitializer.onPageTitleLoaded()},t.prototype.processNodes=function(e,t){if(e){if(e.querySelectorAll){e.nodeType!==em&&this._processElement(e);for(var r=Et(e).call(e,"*"),n=Xc.nodeListLengthGetter.call(r),o=0;o<n;o++)this._processElement(r[o])}}else t=t||this.document,t.documentElement&&this.processNodes(t.documentElement)},t.prototype.attach=function(t){var r=this,n=t.document,o=!1;e.prototype.attach.call(this,t,n),this._documentTitleStorageInitializer&&this._documentTitleStorageInitializer.onAttach(),this.iframeSandbox.on(this.iframeSandbox.IFRAME_DOCUMENT_CREATED_EVENT,function(e){var t=e.iframe,n=Xc.contentWindowGetter.call(t),o=Xc.contentDocumentGetter.call(t),i=new r.nativeMethods.constructor(o,n);n[vc.iframeNativeMethods]=i,r.doc.attach(n,o,!0)}),Xc.objectDefineProperty(t,vc.processDomMethodName,{value:function(e,t){o||r.shadowUI.onBodyElementMutation(),r.processNodes(e,t)},configurable:!0}),n.addEventListener("DOMContentLoaded",function(){o=!0,r.processNodes(null,n)},!1),this.doc.attach(t,n),this.win.attach(t),this.element.attach(t)},t._processAttributeSelector=function(e){return Yf.test(e)?e+","+e.replace(Yf,function(e,t,r){return Vh.indexOf(t)===-1||Qf.test(r)?e:(t=_d.getStoredAttrName(t),"["+t+r+"]")}):e},t._processPseudoClassSelectors=function(e){return Mc||(e=e.replace(Jf,"["+Qc.focusPseudoClass+"]")),e=e.replace(Zf,"["+Qc.hoverPseudoClass+"]")},t.processSelector=function(e){return e&&(e=t._processPseudoClassSelectors(e),e=t._processAttributeSelector(e)),e},t}(Ou),rm=tm,nm=Object.freeze({__proto__:null,getElementRectangle:Ba,shouldIgnoreEventInsideIframe:Va,getOffsetPosition:qa,offsetToClientCoords:za}),om=["button","fieldset","form","iframe","input","map","meta","object","output","param","select","textarea"],im=10,am=0,sm=function(){function e(){}return e}();sm.prototype=HTMLCollection.prototype;var cm=function(e){function t(t,r){var n=e.call(this)||this;return r=r.toLowerCase(),Xc.objectDefineProperties(n,{_collection:{value:t},_filteredCollection:{value:[]},_tagName:{value:r},_version:{value:-(1/0),writable:!0},_namedProps:{value:om.indexOf(r)!==-1?[]:null},_lastNativeLength:{value:0,writable:!0}}),n._refreshCollection(),n}return m(t,e),t.prototype.item=function(e){return this._refreshCollection(),this._filteredCollection[e]},Object.defineProperty(t.prototype,"length",{get:function(){return this._refreshCollection(),this._filteredCollection.length},enumerable:!1,configurable:!0}),t.prototype._refreshCollection=function(){var e=this._lastNativeLength,t=Xc.htmlCollectionLengthGetter.call(this._collection);if(this._lastNativeLength=t,Bf.isOutdated(this._tagName,this._version)||!Bf.isDomContentLoaded()&&e!==t){var r=this._filteredCollection.length,n=Ya(this,t);this._version=Bf.getVersion(this._tagName),$a(this,r,this._filteredCollection.length),Xa(this,this._namedProps,n)}},t}(sm),lm={constructor:{value:cm.constructor,configurable:!0,enumerable:!1,writable:!0},_refreshCollection:{value:cm.prototype._refreshCollection,enumerable:!1}};HTMLCollection.prototype.namedItem&&(lm.namedItem={value:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._refreshCollection();var r=this._collection.namedItem.apply(this._collection,e);return r&&Or(r)?null:r},enumerable:!0,configurable:!0,writable:!0}),Xc.objectDefineProperties(cm.prototype,lm),Ka(im);var um=/fixed|relative|absolute/,pm=/\.((?:\\.|[-\w]|[^\x00-\xa0])+)/g,hm="hammerhead|shadow-ui|container-flag",dm="hammerhead|shadow-ui|container-collection-flag",fm="hammerhead|shadow-ui|html-collection-wrapper",mm=function(e){function t(t,r,n,o){var i=e.call(this)||this;return i._nodeMutation=t,i._messageSandbox=r,i._iframeSandbox=n,i._ieDebugSandbox=o,i.BODY_CONTENT_CHANGED_COMMAND="hammerhead|command|body-content-changed",i.ROOT_CLASS="root",i.ROOT_ID="root",i.HIDDEN_CLASS="hidden",i.BLIND_CLASS="blind",i.root=null,i.lastActiveElement=null,i.uiStyleSheetsHtmlBackup=null,i.wrapperCreators=i._createWrapperCreators(),i._initEventCallbacks(),i}return m(t,e),t.prototype._initEventCallbacks=function(){var e=this;this.runTaskScriptEventCallback=function(t){var r=Xc.contentDocumentGetter.call(t),n=r.head,o=r.body;e._restoreUIStyleSheets(n,e._getUIStyleSheetsHtml()),e.markShadowUIContainers(n,o)},this.beforeDocumentCleanedEventCallback=function(){e.uiStyleSheetsHtmlBackup=e._getUIStyleSheetsHtml()},this.documentCleanedEventCallback=function(t){e._restoreUIStyleSheets(t.document.head,e.uiStyleSheetsHtmlBackup),e.uiStyleSheetsHtmlBackup=null,e.markShadowUIContainers(e.document.head,e.document.body)},this.documentClosedEventCallback=function(t){e._restoreUIStyleSheets(t.head,e.uiStyleSheetsHtmlBackup),e.uiStyleSheetsHtmlBackup=null,e.markShadowUIContainers(t.head,t.body)},this.bodyContentChangedEventCallback=function(t){var r=t[vc.processedContext];r!==window?e._messageSandbox.sendServiceMsg({cmd:e.BODY_CONTENT_CHANGED_COMMAND},r):e.onBodyElementMutation()},this.serviceMsgReceivedEventCallback=function(t){t.message.cmd===e.BODY_CONTENT_CHANGED_COMMAND&&e.onBodyElementMutation()},this.bodyCreatedEventCallback=function(t){return e.markShadowUIContainers(e.document.head,t)}},t._filterElement=function(e){return e&&Or(e)?null:e},t.prototype._filterList=function(e,t,r){for(var n=[],o=0;o<t;o++){var i=r(e[o]);i&&n.push(e[o])}if(Mc&&e instanceof StyleSheetList)for(var a=function(e){e.id&&Xc.objectDefineProperty(n,e.id,{get:function(){return e}})},s=0,c=n;s<c.length;s++){var l=c[s];a(l)}return Xc.objectDefineProperty(n,"item",{value:function(e){return e>=n.length?null:n[e]}}),e.namedItem&&Xc.objectDefineProperty(n,"namedItem",{value:function(t){return e.namedItem(t)}}),n.length===t?e:n},t.prototype._filterNodeList=function(e,r){return this._filterList(e,r,function(e){return t._filterElement(e)})},t.prototype._filterStyleSheetList=function(e,r){return this._filterList(e,r,function(e){return t._filterElement(e.ownerNode)})},t._getFirstNonShadowElement=function(e){for(var r=Xc.nodeListLengthGetter.call(e),n=0;n<r;n++)if(t._filterElement(e[n]))return e[n];return null},t.prototype._createWrapperCreators=function(){var e=this;return{getElementsByClassName:function(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=Xc[t].apply(this,r),i=Xc.htmlCollectionLengthGetter.call(o);return e._filterNodeList(o,i)}},getElementsByTagName:function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=Xc[e].apply(this,t),o=t[0];return"string"!=typeof o||!pr(this)&&!br(this)&&"input"!==o.toLowerCase()&&"getElementsByTagName"!==e?n:(n[fm]?n[fm]._refreshCollection():n[fm]=new cm(n,o),n[fm])}},querySelector:function(e,r){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];"string"==typeof n[0]&&(n[0]=rm.processSelector(n[0]));var i=Xc[e].apply(this,n),a=t._filterElement(i);return!i||a?a:t._getFirstNonShadowElement(Xc[r].apply(this,n))}},querySelectorAll:function(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]=rm.processSelector(r[0]));var o=Xc[t].apply(this,r),i=Xc.nodeListLengthGetter.call(o);return e._filterNodeList(o,i)}}}},t.prototype._markShadowUIContainerAndCollections=function(e){var r=Xc.elementChildrenGetter.call(e);t._markAsShadowContainer(e),t.markAsShadowContainerCollection(r),t.markAsShadowContainerCollection(Xc.nodeChildNodesGetter.call(e))},t.prototype.markShadowUIContainers=function(e,t){e&&this._markShadowUIContainerAndCollections(e),t&&this._markShadowUIContainerAndCollections(t)},t.prototype._bringRootToWindowTopLeft=function(){for(var e=!1,t=Xc.nodeParentNodeGetter.call(this.root);t;){var r=Ke(t,"position");um.test(r)&&(e=!0),t=Xc.nodeParentNodeGetter.call(t)}if(e){var n=qa(this.root);if(0!==n.left||0!==n.top){var o=parseFloat(Ke(this.root,"left"))||0,i=parseFloat(Ke(this.root,"top"))||0,a=o-n.left+"px",s=i-n.top+"px";$e(this.root,"left",a),$e(this.root,"top",s)}}},t.prototype._overrideDocumentMethods=function(e,r){var n=this,o=e.Document.prototype;x(o,"elementFromPoint",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.addClass(n.getRoot(),n.HIDDEN_CLASS);var o=t._filterElement(Xc.elementFromPoint.apply(this,e));return n.removeClass(n.getRoot(),n.HIDDEN_CLASS),o}),r.caretRangeFromPoint&&x(o,"caretRangeFromPoint",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.addClass(n.getRoot(),n.HIDDEN_CLASS);var o=Xc.caretRangeFromPoint.apply(this,e);return o&&o.startContainer&&!t._filterElement(o.startContainer)&&(o=null),n.removeClass(n.getRoot(),n.HIDDEN_CLASS),o}),r.caretPositionFromPoint&&x(o,"caretPositionFromPoint",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.addClass(n.getRoot(),n.HIDDEN_CLASS);var o=Xc.caretPositionFromPoint.apply(this,e);return o&&o.offsetNode&&!t._filterElement(o.offsetNode)&&(o=null),n.removeClass(n.getRoot(),n.HIDDEN_CLASS),o}),x(o,"getElementById",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t._filterElement(Xc.getElementById.apply(this,e))}),x(o,"getElementsByName",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xc.getElementsByName.apply(this,e),o=Kl?Xc.htmlCollectionLengthGetter.call(r):Xc.nodeListLengthGetter.call(r);return n._filterNodeList(r,o)}),x(o,"getElementsByClassName",this.wrapperCreators.getElementsByClassName("getElementsByClassName")),x(o,"getElementsByTagName",this.wrapperCreators.getElementsByTagName("getElementsByTagName")),x(o,"querySelector",this.wrapperCreators.querySelector("querySelector","querySelectorAll")),x(o,"querySelectorAll",this.wrapperCreators.querySelectorAll("querySelectorAll"))},t.prototype._overrideElementMethods=function(e){var t=e.Element.prototype,r=e.HTMLBodyElement.prototype,n=e.HTMLHeadElement.prototype;x(t,"getElementsByTagName",this.wrapperCreators.getElementsByTagName("elementGetElementsByTagName")),x(r,"getElementsByClassName",this.wrapperCreators.getElementsByClassName("elementGetElementsByClassName")),x(r,"querySelector",this.wrapperCreators.querySelector("elementQuerySelector","elementQuerySelectorAll")),x(r,"querySelectorAll",this.wrapperCreators.querySelectorAll("elementQuerySelectorAll")),x(n,"getElementsByClassName",r.getElementsByClassName),x(n,"querySelector",r.querySelector),x(n,"querySelectorAll",r.querySelectorAll)},t.prototype._getUIStyleSheetsHtml=function(){for(var e="link."+Zc.uiStylesheet,t=this.nativeMethods.querySelectorAll.call(this.document,e),r=this.nativeMethods.nodeListLengthGetter.call(t),n="",o=0;o<r;o++)n+=Xc.elementOuterHTMLGetter.call(t[o]);return n},t.prototype._restoreUIStyleSheets=function(e,r){if(e&&r){var n=this.nativeMethods.createElement.call(this.document,"div");Xc.elementInnerHTMLSetter.call(n,r);for(var o=Xc.elementChildrenGetter.call(n),i=Xc.htmlCollectionLengthGetter.call(o),a=0;a<i;a++){var s=o[0];t.markElementAsShadow(s),this.nativeMethods.removeChild.call(n,s),this.nativeMethods.appendChild.call(e,s)}}},t.prototype._markElementsAsShadowInHead=function(e){for(var r=Xc.elementChildrenGetter.call(e),n=Xc.htmlCollectionLengthGetter.call(r),o=0;o<n;o++){
var i=r[o];t.containsShadowUIClassPostfix(i)&&t.markElementAsShadow(i)}},t.prototype.getRoot=function(){var e=this;if(Bc&&!t.isShadowContainer(this.document.body)&&this._markShadowUIContainerAndCollections(this.document.body),!this.root||!this.document.body.contains(this.root))if(this.root)Xc.appendChild.call(this.document.body,this.root);else{this.root=Xc.createElement.call(this.document,"div"),Xc.setAttribute.call(this.root,"id",t.patchId(this.ROOT_ID)),Xc.setAttribute.call(this.root,"contenteditable","false"),this.addClass(this.root,this.ROOT_CLASS),t.markElementAsShadow(this.root),Xc.appendChild.call(this.document.body,this.root);for(var r=Xc.documentAddEventListener||Xc.addEventListener,n=0,o=Af.EVENTS;n<o.length;n++){var i=o[n];Xc.addEventListener.call(this.root,i,xa)}this._bringRootToWindowTopLeft(),r.call(this.document,"DOMContentLoaded",function(){e.onBodyElementMutation(),e._bringRootToWindowTopLeft()})}return this.root},t.prototype.attach=function(t){e.prototype.attach.call(this,t,t.document),this.markShadowUIContainers(this.document.head,this.document.body),this._overrideDocumentMethods(t,t.document),this._overrideElementMethods(t),t.document.head&&this._markElementsAsShadowInHead(t.document.head),this._initEvents()},t.prototype._initEvents=function(){this._iframeSandbox.on(this._iframeSandbox.RUN_TASK_SCRIPT_EVENT,this.runTaskScriptEventCallback),this._nodeMutation.on(this._nodeMutation.BEFORE_DOCUMENT_CLEANED_EVENT,this.beforeDocumentCleanedEventCallback),this._nodeMutation.on(this._nodeMutation.DOCUMENT_CLEANED_EVENT,this.documentCleanedEventCallback),this._nodeMutation.on(this._nodeMutation.DOCUMENT_CLOSED_EVENT,this.documentClosedEventCallback),this._nodeMutation.on(this._nodeMutation.BODY_CONTENT_CHANGED_EVENT,this.bodyContentChangedEventCallback),this._messageSandbox.on(this._messageSandbox.SERVICE_MSG_RECEIVED_EVENT,this.serviceMsgReceivedEventCallback),this._nodeMutation.on(this._nodeMutation.BODY_CREATED_EVENT,this.bodyCreatedEventCallback)},t.prototype.onBodyElementMutation=function(){if(this.root&&this.document.body){var e=sn(this.root,"html"),t=!this.nativeMethods.elementNextElementSiblingGetter.call(this.root),r=Xc.nodeParentNodeGetter.call(this.root)===this.document.body;e&&t&&r||this.nativeMethods.appendChild.call(this.document.body,this.root),this.markShadowUIContainers(this.document.head,this.document.body)}},t.prototype.getFirstChild=function(e){var t=Xc.nodeChildNodesGetter.call(e),r=Xc.nodeListLengthGetter.call(t),n=this._filterNodeList(t,r);return n[0]||null},t.prototype.getFirstElementChild=function(e){var t=Xc.elementChildrenGetter.call(e),r=Xc.htmlCollectionLengthGetter.call(t);return this._filterNodeList(t,r)[0]||null},t.prototype.getLastChild=function(e){var t=Xc.nodeChildNodesGetter.call(e),r=Xc.nodeListLengthGetter.call(t),n=this._filterNodeList(t,r),o=t===n?r-1:n.length-1;return o>=0?n[o]:null},t.prototype.getLastElementChild=function(e){var t=Xc.elementChildrenGetter.call(e),r=Xc.htmlCollectionLengthGetter.call(t),n=this._filterNodeList(t,r),o=t===n?r-1:n.length-1;return o>=0?n[o]:null},t.prototype.getNextSibling=function(e){if(!e)return e;do e=Xc.nodeNextSiblingGetter.call(e);while(e&&Or(e));return e},t.prototype.getPrevSibling=function(e){if(!e)return e;do e=Xc.nodePrevSiblingGetter.call(e);while(e&&Or(e));return e},t.prototype.getMutationRecordNextSibling=function(e){if(!e)return e;for(;e&&Or(e);)e=Xc.nodeNextSiblingGetter.call(e);return e},t.prototype.getMutationRecordPrevSibling=function(e){if(!e)return e;for(;e&&Or(e);)e=Xc.nodePrevSiblingGetter.call(e);return e},t.prototype.getNextElementSibling=function(e){do e=Xc.elementNextElementSiblingGetter.call(e);while(e&&Or(e));return e},t.prototype.getPrevElementSibling=function(e){do e=Xc.elementPrevElementSiblingGetter.call(e);while(e&&Or(e));return e},t._checkElementsPosition=function(e,t){if(t){for(var r=[],n=0;n<t;n++){var o=e[n];Or(o)&&r.push(o)}for(var i=r.length&&Xc.nodeParentNodeGetter.call(r[0]),a=0,s=r;a<s.length;a++){var c=s[a];Xc.appendChild.call(i,c)}}},t._hasFlag=function(e,t){try{return!!e[t]}catch(r){return!1}},t._hasCollectionFlagForIE=function(e,t){try{if(t in e)return e[t];var r=Xc.nodeParentNodeGetter.call(e[0]),n=ur(r)||br(r);return Xc.objectDefineProperty(e,dm,{value:n,configurable:!0}),n}catch(o){return!1}},t.isShadowContainer=function(e){return t._hasFlag(e,hm)},t.isShadowContainerCollection=function(e,r){return Mc&&r?t._hasCollectionFlagForIE(e,dm):t._hasFlag(e,dm)},t._isShadowUIChildListMutation=function(e){if(Or(e.target))return!0;for(var t=Xc.nodeListLengthGetter.call(e.removedNodes),r=0;r<t;r++)if(Or(e.removedNodes[r]))return!0;for(var n=Xc.nodeListLengthGetter.call(e.addedNodes),r=0;r<n;r++)if(Or(e.addedNodes[r]))return!0;return!1},t._isShadowUIAttributeMutation=function(e){return Or(e.target)||Xt(e.attributeName)},t._isShadowUICharacterDataMutation=function(e){return Or(e.target)},t.isShadowUIMutation=function(e){switch(e.type){case"childList":return t._isShadowUIChildListMutation(e);case"attributes":return t._isShadowUIAttributeMutation(e);case"characterData":return t._isShadowUICharacterDataMutation(e);default:return!1}},t.removeSelfRemovingScripts=function(e){for(var t=Xc.querySelectorAll.call(e,"."+Zc.selfRemovingScript),r=Xc.nodeListLengthGetter.call(t),n=0;n<r;n++)Yi(t[n])},t.prototype.getShadowUICollectionLength=function(e,r){for(var n=0,o=0;o<r;o++)Or(e[o])&&n++;return n&&!this._ieDebugSandbox.isDebuggerInitiator()&&t._checkElementsPosition(e,r),r-n},t.prototype.addClass=function(e,r){var n=t.patchClassNames(r);cn(e,n)},t.prototype.removeClass=function(e,r){var n=t.patchClassNames(r);ln(e,n)},t.hasClass=function(e,r){var n=t.patchClassNames(r);return un(e,n)},t.patchId=function(e){return e+Zc.postfix},t.patchClassNames=function(e){for(var t=e.split(/\s+/),r=0;r<t.length;r++)t[r]+=Zc.postfix;return t.join(" ")},t.prototype.select=function(e,t){var r=e.replace(pm,function(e){return e+Zc.postfix});return t?Xc.elementQuerySelectorAll.call(t,r):Xc.querySelectorAll.call(this.document,r)},t.prototype.setBlind=function(e){e?this.addClass(this.getRoot(),this.BLIND_CLASS):this.removeClass(this.getRoot(),this.BLIND_CLASS)},t.prototype.getLastActiveElement=function(){return this.lastActiveElement},t.prototype.setLastActiveElement=function(e){this.lastActiveElement=e},t.prototype.insertBeforeRoot=function(e){var t=this.getRoot(),r=this.nativeMethods.nodeParentNodeGetter.call(t),n=this.nativeMethods.nodeLastChildGetter.call(r);if(n!==t&&Xc.appendChild.call(r,t),e.length>1||"object"!=typeof e[0]){for(var o=document.createDocumentFragment.call(this.document),i=0,a=e;i<a.length;i++){var s=a[i];"string"==typeof s&&(s=Xc.createTextNode.call(this.document,s)),Xc.appendChild.call(o,s)}return Xc.insertBefore.call(r,o,t)}return Xc.insertBefore.call(r,e[0],t)},t.markElementAsShadow=function(e){e[vc.shadowUIElement]=!0},t.markFormAsShadow=function(e){var r=Xc.elementChildrenGetter.call(e);t._markAsShadowContainer(e),t.markAsShadowContainerCollection(e.elements),t.markAsShadowContainerCollection(r);var n=Xc.nodeChildNodesGetter.call(e);t.markAsShadowContainerCollection(n)},t.markElementAndChildrenAsShadow=function(e){if(t.markElementAsShadow(e),e.querySelectorAll)for(var r=Et(e).call(e,"*"),n=Xc.nodeListLengthGetter.call(r),o=0;o<n;o++)t.markElementAsShadow(r[o])},t._markAsShadowContainer=function(e){Xc.objectDefineProperty(e,hm,{value:!0})},t.markAsShadowContainerCollection=function(e){Xc.objectDefineProperty(e,dm,{value:!0,configurable:!0})},t.containsShadowUIClassPostfix=function(e){return"string"==typeof e.className&&e.className.indexOf(Zc.postfix)!==-1},t}(Ou),gm=mm,vm=[{mime:"image/x-icon",pattern:[0,0,1,0],mask:[255,255,255,255]},{mime:"image/x-icon",pattern:[0,0,2,0],mask:[255,255,255,255]},{mime:"image/bmp",pattern:[66,77],mask:[255,255]},{mime:"image/gif",pattern:[71,73,70,56,55,97],mask:[255,255,255,255,255,255]},{mime:"image/gif",pattern:[71,73,70,56,57,97],mask:[255,255,255,255,255,255]},{mime:"image/webp",pattern:[82,73,70,70,0,0,0,0,87,69,66,80,86,80],mask:[255,255,255,255,0,0,0,0,255,255,255,255,255,255]},{mime:"image/png",pattern:[137,80,78,71,13,10,26,10],mask:[255,255,255,255,255,255,255,255]},{mime:"image/jpeg",pattern:[255,216,255],mask:[255,255,255]}],ym=[{mime:"audio/basic",pattern:[46,115,110,100],mask:[255,255,255,255]},{mime:"audio/aiff",pattern:[70,79,82,77,0,0,0,0,65,73,70,70],mask:[255,255,255,255,0,0,0,0,255,255,255,255]},{mime:"audio/mpeg",pattern:[73,68,51],mask:[255,255,255]},{mime:"application/ogg",pattern:[79,103,103,83,0],mask:[255,255,255,255,255]},{mime:"audio/midi",pattern:[77,84,104,100,0,0,0,6],mask:[255,255,255,255,255,255,255,255]},{mime:"video/avi",pattern:[82,73,70,70,0,0,0,0,65,86,73,32],mask:[255,255,255,255,0,0,0,0,255,255,255,255]},{mime:"audio/wave",pattern:[82,73,70,70,0,0,0,0,87,65,86,69],mask:[255,255,255,255,0,0,0,0,255,255,255,255]}],_m=[{mime:"application/vnd.ms-fontobject",pattern:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,80],mask:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255]},{mime:"application/octet-stream",pattern:[0,1,0,0],mask:[255,255,255,255]},{mime:"application/octet-stream",pattern:[79,84,84,79],mask:[255,255,255,255]},{mime:"application/octet-stream",pattern:[116,116,99,102],mask:[255,255,255,255]},{mime:"application/font-woff",pattern:[119,79,70,70],mask:[255,255,255,255]}],Em=[{mime:"application/x-gzip",pattern:[31,139,8],mask:[255,255,255]},{mime:"application/zip",pattern:[80,75,3,4],mask:[255,255,255,255]},{mime:"application/x-rar-compressed",pattern:[82,97,114,32,26,7,0],mask:[255,255,255,255,255,255,255]}],Sm={getUploadedFiles:"hammerhead|command|get-uploaded-files",setCookie:"hammerhead|command|set-cookie",uploadFiles:"hammerhead|command|upload-files"},bm=function(){function e(t){var r=this;Xc.objectDefineProperty(this,"length",{get:function(){return t.length}});for(var n=0;n<t.length;n++)this[n]=e._createFileWrapper(t[n]);this.item=function(e){return r[e]}}return e._base64ToBlob=function(e,t,r){var n=t.info.type||"";r=r||512;for(var o=atob(e),i=[],a=0;a<o.length;a+=r){for(var s=o.slice(a,a+r),c=new Array(s.length),l=0;l<s.length;l++)c[l]=s.charCodeAt(l);i.push(new Uint8Array(c))}return Xc.File?new Xc.File(i,t.info.name,{type:n,lastModified:t.info.lastModified}):new Xc.Blob(i,{type:n})},e._createFileWrapper=function(t){var r=null;return r=window.Blob?t.blob?Xc.File?new Xc.File([t.blob],t.info.name,{type:t.info.type,lastModified:t.info.lastModified}):new Xc.Blob([t.blob],{type:t.info.type}):e._base64ToBlob(t.data,t):{size:t.info.size,type:t.info.type},r.name=t.info.name,t.info.lastModifiedDate&&(r.lastModifiedDate=t.info.lastModifiedDate),r.base64=t.data,r},e}();window.FileList&&(bm.prototype=FileList.prototype);var wm,xm="C:\\fakepath\\",Cm=function(){function e(e){this._transport=e,this.uploadInfo=[]}return e._getFileListData=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var o=n[r];t.push(o.base64)}return t},e.formatValue=function(e){var t="";if(e="string"==typeof e?[e]:e,e&&e.length){if(!Wc)return e[0].split("/").pop();t=xm+e[0].split("/").pop()}return t},e.getFileNames=function(e,t){var r=[];if(e)for(var n=0,o=e;n<o.length;n++){var i=o[n];r.push(i.name)}else t.lastIndexOf("\\")!==-1&&r.push(t.substr(t.lastIndexOf("\\")+1));return r},e.prototype.loadFilesInfoFromServer=function(e){return this._transport.asyncServiceMsg({cmd:Sm.getUploadedFiles,filePaths:"string"==typeof e?[e]:e})},e.prepareFileListWrapper=function(e){for(var t=[],r=[],n=0,o=e;n<o.length;n++){var i=o[n];i.err?t.push(i):r.push(i)}return{errs:t,fileList:new bm(r)}},e.prototype.sendFilesInfoToServer=function(t,r){return this._transport.asyncServiceMsg({cmd:Sm.uploadFiles,data:e._getFileListData(t),fileNames:r})},e.prototype.clearUploadInfo=function(e){var t=this.getUploadInfo(e);return t?(t.files=new bm([]),t.value="",ba(e)):null},e.prototype.getFiles=function(e){var t=this.getUploadInfo(e);return t?t.files:new bm([])},e.prototype.getUploadInfo=function(e){for(var t=0,r=this.uploadInfo;t<r.length;t++){var n=r[t];if(n.input===e)return n}return null},e.prototype.getValue=function(e){var t=this.getUploadInfo(e);return t?t.value:""},e.prototype.loadFileListData=function(e,t){return t.length?new mc(function(e){var r=new FileReader,n=[],o=0,i=t[o];r.addEventListener("load",function(a){var s={type:i.type,name:i.name};N(i.lastModified)&&(s.lastModified=i.lastModified),i.lastModifiedDate&&(s.lastModifiedDate=i.lastModifiedDate);var c=Xc.eventTargetGetter.call(a).result;n.push({data:c.substr(c.indexOf(",")+1),blob:i.slice(0,i.size),info:s}),t[++o]?(i=t[o],r.readAsDataURL(i)):e(new bm(n))}),r.readAsDataURL(i)}):mc.resolve(new bm([]))},e.prototype.setUploadInfo=function(e,t,r){var n=this.getUploadInfo(e);n||(n={input:e},this.uploadInfo.push(n)),n.files=t,n.value=r,_a(e,t,r)},e}(),Am="hammerhead|sandbox-backup",Tm=Object.freeze({__proto__:null,create:rs,get:ns}),Im=function(e){function t(t,r,n){var o=e.call(this)||this;return o._listeners=t,o._eventSimulator=r,o.START_FILE_UPLOADING_EVENT="hammerhead|event|start-file-uploading",o.END_FILE_UPLOADING_EVENT="hammerhead|event|end-file-uploading",o.infoManager=new Cm(n),o}return m(t,e),t.prototype._riseChangeEvent=function(e){this._eventSimulator.change(e)},t._getCurrentInfoManager=function(e){var t=e[vc.processedContext];return ns(t).upload.infoManager},t.prototype.attach=function(r){var n=this;e.prototype.attach.call(this,r),this._listeners.addInternalEventBeforeListener(r,["change"],function(e,r){var o=Xc.eventTargetGetter.call(e),i=t._getCurrentInfoManager(o);if(!r&&wr(o)){xa(e),wa(e);var a=Xc.inputValueGetter.call(o);if(a||i.getValue(o)){var s=Xc.inputFilesGetter.call(o),c=Cm.getFileNames(s,a);n.emit(n.START_FILE_UPLOADING_EVENT,c,o),i.loadFileListData(o,s).then(function(e){return i.setUploadInfo(o,e,a),n.infoManager.sendFilesInfoToServer(e,c)}).then(function(e){n._riseChangeEvent(o),n.emit(n.END_FILE_UPLOADING_EVENT,e)})}}}),Cl.get().isRecordMode||!Mc&&!Hc||this._listeners.addInternalEventBeforeListener(r,["click"],function(e,t){t&&wr(Xc.eventTargetGetter.call(e))&&wa(e,!0)})},t.getFiles=function(e){var r=Xc.inputFilesGetter.call(e);return void 0!==r?t._getCurrentInfoManager(e).getFiles(e):void 0},t.getUploadElementValue=function(e){return t._getCurrentInfoManager(e).getValue(e)},t.prototype.setUploadElementValue=function(e,r){""===r&&t._getCurrentInfoManager(e).clearUploadInfo(e)&&Rc&&this._riseChangeEvent(e)},t._shouldRaiseChangeEvent=function(e,t){if(!t)return!0;var r=t.files;if(e.length!==r.length||Hc||Tc&&Bc||Vc)return!0;for(var n=0,o=e;n<o.length;n++){for(var i=o[n],a=!1,s=0,c=r;s<c.length;s++){var l=c[s];if(i.name===l.name){a=!0;break}}if(a===!1)return!0}return!1},t.prototype.doUpload=function(e,r){var n=this,o=t._getCurrentInfoManager(e);return r=r||[],this.infoManager.loadFilesInfoFromServer(r).then(function(e){return Cm.prepareFileListWrapper(e)}).then(function(i){if(!i.errs.length){var a=Cm.formatValue(r),s=o.getUploadInfo(e),c=t._shouldRaiseChangeEvent(i.fileList,s);o.setUploadInfo(e,i.fileList,a),c&&n._riseChangeEvent(e)}return i.errs})},t}(Ou),Pm=Xc.createElement.call(document,"a"),Nm=Xc.createElement.call(document,"a"),Om="hammerhead|element-listening-events-storage-prop",km=Object.freeze({__proto__:null,getElementCtx:cs,getEventCtx:ls,isElementListening:us,addListeningElement:ps,removeListeningElement:hs,addInternalAfterHandler:ds,addFirstInternalBeforeHandler:fs,addInternalBeforeHandler:ms,removeInternalBeforeHandler:gs,wrapEventListener:vs,getWrapper:ys,updateInternalAfterHandlers:_s}),Lm=["click","mousedown","mouseup","dblclick","contextmenu","mousemove","mouseover","mouseout","pointerdown","pointermove","pointerover","pointerout","pointerup","MSPointerDown","MSPointerMove","MSPointerOver","MSPointerOut","MSPointerUp","touchstart","touchmove","touchend","keydown","keypress","keyup","change","focus","blur","focusin","focusout"],Dm="hammerhead|event-sandbox-dispatch-event-flag",Mm=function(e){function t(){var t=e.call(this)||this;return t.EVENT_LISTENER_ATTACHED_EVENT="hammerhead|event|event-listener-attached",t.EVENT_LISTENER_DETACHED_EVENT="hammerhead|event|event-listener-detached",t.listeningCtx=km,t.addInternalEventBeforeListener=t.listeningCtx.addInternalBeforeHandler,t.addFirstInternalEventBeforeListener=t.listeningCtx.addFirstInternalBeforeHandler,t.addInternalEventAfterListener=t.listeningCtx.addInternalAfterHandler,t.removeInternalEventBeforeListener=t.listeningCtx.removeInternalBeforeHandler,t}return m(t,e),t.getNativeAddEventListener=function(e){return Rc?kr(e)?Xc.windowAddEventListener:void 0!==e.body?Xc.documentAddEventListener:Xc.addEventListener:Xc.addEventListener},t.getNativeRemoveEventListener=function(e){return Rc?kr(e)?Xc.windowRemoveEventListener:void 0!==e.body?Xc.documentRemoveEventListener:Xc.removeEventListener:Xc.removeEventListener},t._isIEServiceHandler=function(e){return"[object FunctionWrapper]"===e.toString()},t._getEventListenerWrapper=function(e,r){return function(n){return t._isIEServiceHandler(r)||e.cancelOuterHandlers?null:O(e.outerHandlersWrapper)?e.outerHandlersWrapper.call(this,n,r):Ta(this,r,n)}},t._isDifferentHandler=function(e,t,r){for(var n=0,o=e;n<o.length;n++){var i=o[n];if(i.fn===t&&i.useCapture===r)return!1}return!0},t._getUseCaptureParam=function(e){return e&&"boolean"==typeof e?e:!(!e||"object"!=typeof e)&&!!e.capture},t.prototype._createEventHandler=function(){var e=this;return function(t){var r=this,n=r[vc.processedContext]||window,o=!1,i=!1,a=!1,s=e.listeningCtx.getEventCtx(r,t.type);if(s){var c=s.internalBeforeHandlers;s.cancelOuterHandlers=!1;for(var l=function(e){o=!0,wa(t,e)},u=function(){i||(s.cancelOuterHandlers=!0),i=!0},p=function(){a=!0,xa(t)},h=Xc.arraySlice.call(c),d=0,f=h;d<f.length;d++){var m=f[d];if(m.call(r,t,n[Dm],l,u,p),o||a)break}}}},t.prototype.createOverriddenMethods=function(){var e=this;return{addEventListener:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=r[0],i=r[1],a=this,s=t._getUseCaptureParam(r[2]),c=ls(a,o),l=t.getNativeAddEventListener(a);if(!c||!Aa(i))return l.apply(a,r);var u=t._isDifferentHandler(c.outerHandlers,i,s);if(!u)return null;var p=t._getEventListenerWrapper(c,i);r[1]=p,vs(c,i,p,s);var h=l.apply(a,r);return _s(a,o),e.emit(e.EVENT_LISTENER_ATTACHED_EVENT,{el:a,eventType:o,listener:i}),h},removeEventListener:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=r[0],i=r[1],a=this,s=t._getUseCaptureParam(r[2]),c=t.getNativeRemoveEventListener(a),l=ls(a,o);if(!l||!Aa(i))return c.apply(a,r);var u=ys(l,i,s);r[1]=u;var p=c.apply(a,r);return e.emit(e.EVENT_LISTENER_DETACHED_EVENT,{el:a,listener:i,eventType:o}),p}}},t.prototype.initElementListening=function(e,r){void 0===r&&(r=Lm);for(var n=t.getNativeAddEventListener(e),o=0,i=r;o<i.length;o++){var a=i[o];this.listeningCtx.getEventCtx(e,a)||n.call(e,a,this._createEventHandler(),!0)}if(this.listeningCtx.addListeningElement(e,r),Rc){var s=this.createOverriddenMethods();e.addEventListener?w(e.addEventListener)&&(x(e,"addEventListener",s.addEventListener),x(e,"removeEventListener",s.removeEventListener)):(e.addEventListener=s.addEventListener,e.removeEventListener=s.removeEventListener,b(e.addEventListener,Xc.addEventListener),b(e.removeEventListener,Xc.removeEventListener))}},t.prototype.initDocumentBodyListening=function(e){if(ps(e.body,Df),Rc){var t=this.createOverriddenMethods();x(e.body,"addEventListener",t.addEventListener),x(e.body,"removeEventListener",t.removeEventListener)}},t.prototype.restartElementListening=function(e){var r=t.getNativeAddEventListener(e),n=this.listeningCtx.getElementCtx(e);if(n)for(var o=Xc.objectKeys(n),i=0,a=o;i<a.length;i++){var s=a[i];r.call(e,s,this._createEventHandler(),!0)}},t.prototype.cancelElementListening=function(e){this.listeningCtx.removeListeningElement(e),e.body&&this.listeningCtx.removeListeningElement(e.body)},t.beforeDispatchEvent=function(e){var t=e[vc.processedContext]||window;t[Dm]=(t[Dm]||0)+1},t.afterDispatchEvent=function(e){var t=e[vc.processedContext]||window;t[Dm]--,t[Dm]||delete t[Dm]},t.prototype.setEventListenerWrapper=function(e,t,r){this.listeningCtx.isElementListening(e)||this.initElementListening(e,t);for(var n=0,o=t;n<o.length;n++){var i=o[n],a=this.listeningCtx.getEventCtx(e,i);a.outerHandlersWrapper=r}},t.prototype.getEventListeners=function(e,t){var r=this.listeningCtx.getEventCtx(e,t);return r?Xc.arrayMap.call(r.outerHandlers,function(e){return e.fn}):null},t}(Yc);!function(e){e.form="_self",e.linkOrArea="_self",e.windowOpen="_blank"}(wm||(wm={}));var Rm=wm,jm="hammerhead|set-service-worker-settings",Fm=function(){for(var e=[],t=Xc.objectKeys($u),r=0,n=t;r<n.length;r++){var o=n[r];e.push($u[o])}return e}(),Hm=/^http/i,Um=["https:","wss:","file:"],Bm=["localhost","127.0.0.1"],Vm=["text/javascript","application/javascript","application/x-javascript"],Wm="hammerhead|context-svg-image-element",Gm="hammerhead|sandbox-dom-token-list",qm="hammerhead|sandbox-dom-token-list-owner",zm="hammerhead|sandbox-dom-token-list-update",Km="hammerhead|is-proxy-object|internal-prop-name",$m="hammerhead|is-proxy-object|internal-prop-value",Xm="hammerhead|proxy-handler-flag",Ym="No stack trace available",Qm="Error",Jm=["error","unhandledrejection","hashchange"],Zm=function(e){function t(t,r,n,o,i,a){var s=e.call(this)||this;return s._childWindowSandbox=i,s._documentTitleStorageInitializer=a,s.UNCAUGHT_JS_ERROR_EVENT="hammerhead|event|uncaught-js-error",s.UNHANDLED_REJECTION_EVENT="hammerhead|event|unhandled-rejection",s.HASH_CHANGE_EVENT="hammerhead|event|hashchange-event",s.nodeSandbox=t,s.messageSandbox=r.message,s.listenersSandbox=r.listeners,s.elementEditingWatcher=r.elementEditingWatcher,s.eventSimulator=r.eventSimulator,s.uploadSandbox=n,s.shadowUI=t.shadowUI,s.nodeMutation=o,s.SANDBOX_DOM_TOKEN_LIST_UPDATE_FN=zm,s}return m(t,e),t._prepareStack=function(e,t){return t&&t.indexOf(e)!==-1?t:(t=t||" ".concat(Ym),"".concat(e,"\n").concat(t))},t._getBlobProcessingSettings=function(){return{sessionId:Cl.get().sessionId,windowId:Cl.get().windowId,origin:_e()}},t._isProcessableBlobParts=function(e){for(var t=!1,r=0,n=e;r<n.length;r++){var o=n[r];if(t||"string"!=typeof o){if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)return!1}else t=!0}return t},t._isProcessableBlob=function(e,r){var n=r&&r.type&&r.type.toString().toLowerCase()||es(e);return(!n||Vm.indexOf(n)!==-1)&&t._isProcessableBlobParts(e)},t.prototype._getWindowOpenTarget=function(e){return e?this.nodeSandbox.element.getCorrectedTarget(String(e)):Cl.get().allowMultipleWindows?Rm.windowOpen:"_self"},t.prototype._raiseUncaughtJsErrorEvent=function(e,r,n){if(!Bt(n,n.top)){var o=Vt(n),i=Tl(),a=null,s=null;e===this.UNHANDLED_REJECTION_EVENT?(a=t._formatUnhandledRejectionReason(r.reason),s=r.reason&&r.reason.stack):e===this.UNCAUGHT_JS_ERROR_EVENT&&(a=r.error?r.error.message:r.message,s=r.error&&r.error.stack),s=t._prepareStack(a,s),s=ti(s),o?(this.emit(e,{msg:a,pageUrl:i,stack:s,inIframe:!0}),this.messageSandbox.sendServiceMsg({msg:a,pageUrl:i,stack:s,cmd:e},n.top)):this.emit(e,{msg:a,pageUrl:i,stack:s})}},t.prototype._reattachHandler=function(e,t){var r=Mm.getNativeAddEventListener(e),n=Mm.getNativeRemoveEventListener(e);n.call(e,t,this),r.call(e,t,this)},t._formatUnhandledRejectionReason=function(e){if(!I(e)){if(e instanceof Xc.Error){var t=e.name||Qm;return"".concat(t,": ").concat(e.message)}return Xc.objectToString.call(e)}return String(e)},t._getUrlAttr=function(e,t){var r=Xc.getAttribute.call(e,t),n=e.ownerDocument||document;return""===r||null===r&&"action"===t&&Ul?wl.resolve("",n):null===r?"":ul.test(r)?wl.resolve(r,n):ne(r)?Rl(r,"srcset"===t):wl.resolve(r,n)},t._removeProcessingInstructions=function(e){return e?(e=yi(e),rd.cleanUp(e,jl)):e},t._processTextPropValue=function(e,t){var r=null!==t&&void 0!==t?String(t):t;if(r){if(dr(e))return zi(r,!0,!1,Fl,void 0,Cl.get().proxyless);if(fr(e))return rd.process(r,Dl,!0)}return r},t.prototype._overrideUrlAttrDescriptors=function(e,r){for(var n=this,o=0,i=r;o<i.length;o++){var a=i[o];_(a.prototype,e,{getter:function(){return t._getUrlAttr(this,e)},setter:function(t){n.nodeSandbox.element.setAttributeCore(this,[e,t])}})}},t.prototype._overrideAttrDescriptors=function(e,t){for(var r=this,n=0,o=t;n<o.length;n++){var i=o[n];_(i.prototype,e,{getter:function(){return r.nodeSandbox.element.getAttributeCore(this,[e])||""},setter:function(t){r.nodeSandbox.element.setAttributeCore(this,[e,t])}})}},t.prototype._overrideUrlPropDescriptor=function(e,t,r){_(window.HTMLAnchorElement.prototype,e,{getter:function(){return os(this,t)},setter:function(e){is(this,r,e)}})},t.prototype._overrideEventPropDescriptor=function(e,t,r){var n=this,o=Xc.isEventPropsLocatedInProto?e.Window.prototype:e;_(o,"on"+t,{getter:null,setter:function(o){r.call(e,o),n.listenersSandbox.emit(n.listenersSandbox.EVENT_LISTENER_ATTACHED_EVENT,{el:e,listener:o,eventType:t})}})},t.prototype._createOverriddenDOMTokenListMethod=function(e){var t=this;return function(){var r=e.apply(this,arguments),n=this[qm];return n&&t.nodeSandbox.element.setAttributeCore(n,["sandbox",this.toString()]),r}},t._patchFunctionPrototype=function(e,t){if(t&&!O(t)){var r=Xc.objectGetPrototypeOf(t);if(r){for(var n=Xc.objectGetPrototypeOf(r);n&&n!==Xc.Function.prototype;)n=Xc.objectGetPrototypeOf(n);n&&Xc.objectSetPrototypeOf(e,r)}}},t._isSecureOrigin=function(e){var t=Ne(Rl(e));return Um.indexOf(t.protocol)===-1&&Bm.indexOf(t.hostname)===-1},t.prototype._setSandboxedTextForTitleElements=function(e){if(!Vt(window))for(var t=Et(e).call(e,"title"),r=0,n=t;r<n.length;r++){var o=n[r];if(rr(o)){var i=Xc.titleElementTextGetter.call(o);this._documentTitleStorageInitializer.storage.setTitleElementPropertyValue(o,i)}}},t.prototype._overrideAllUrlAttrDescriptors=function(){this._overrideUrlAttrDescriptors("data",[window.HTMLObjectElement]),this.proxyless||this._overrideUrlAttrDescriptors("src",[window.HTMLImageElement,window.HTMLScriptElement,window.HTMLEmbedElement,window.HTMLSourceElement,window.HTMLMediaElement,window.HTMLInputElement,window.HTMLFrameElement,window.HTMLIFrameElement]),this._overrideUrlAttrDescriptors("action",[window.HTMLFormElement]),this._overrideUrlAttrDescriptors("formAction",[window.HTMLInputElement,window.HTMLButtonElement]),this.proxyless||this._overrideUrlAttrDescriptors("href",[window.HTMLAnchorElement,window.HTMLLinkElement,window.HTMLAreaElement,window.HTMLBaseElement]),Xc.htmlManifestGetter&&this._overrideUrlAttrDescriptors("manifest",[window.HTMLHtmlElement])},t.isProxyObject=function(e){try{return e[Km]===$m}catch(t){return!1}},t.prototype.handleEvent=function(e){e.defaultPrevented||("unhandledrejection"===e.type?this._raiseUncaughtJsErrorEvent(this.UNHANDLED_REJECTION_EVENT,e,this.window):"error"===e.type?e.message.indexOf("NS_ERROR_NOT_INITIALIZED")!==-1?e.preventDefault():this._raiseUncaughtJsErrorEvent(this.UNCAUGHT_JS_ERROR_EVENT,e,window):"hashchange"===e.type&&this.emit(this.HASH_CHANGE_EVENT))},t.prototype.attach=function(r){var n=this;e.prototype.attach.call(this,r);var o=this.messageSandbox,i=this.nodeSandbox,a=this;if(Xc.arrayForEach.call(Jm,function(e){n._reattachHandler(r,e)}),this.listenersSandbox.initElementListening(r,Jm),this.listenersSandbox.on(this.listenersSandbox.EVENT_LISTENER_ATTACHED_EVENT,function(e){e.el===r&&Jm.indexOf(e.eventType)!==-1&&n._reattachHandler(r,e.eventType)}),this._overrideEventPropDescriptor(r,"error",Xc.winOnErrorSetter),this._overrideEventPropDescriptor(r,"hashchange",Xc.winOnHashChangeSetter),Xc.winOnUnhandledRejectionSetter&&this._overrideEventPropDescriptor(r,"unhandledrejection",Xc.winOnUnhandledRejectionSetter),o.on(o.SERVICE_MSG_RECEIVED_EVENT,function(e){var t=e.message,r=t.msg,o=t.pageUrl,i=t.stack,s=t.cmd;s!==n.UNCAUGHT_JS_ERROR_EVENT&&s!==n.UNHANDLED_REJECTION_EVENT||a.emit(s,{msg:r,pageUrl:o,stack:i})}),x(r.CanvasRenderingContext2D.prototype,"drawImage",function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=t[0];if(er(o)&&!o[vc.forceProxySrcForImage]){var i=Xc.imageSrcGetter.call(o);pe(location.toString(),i)&&(o=Xc.createElement.call(r.document,"img"),Xc.imageSrcSetter.call(o,Dl(i)),t[0]=o,o.complete||Xc.addEventListener.call(o,"load",function(){return Xc.canvasContextDrawImage.apply(e,t)}))}return Xc.canvasContextDrawImage.apply(this,t)}),Xc.objectAssign&&x(r.Object,"assign",function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=[e],i=typeof e;if(e&&("object"===i||"function"===i)&&t.length)for(var a=0,s=t;a<s.length;a++){var c=s[a],l=typeof c;if(!c||"object"!==l&&"function"!==l)Xc.objectAssign.call(this,e,c);else for(var u=Xc.objectGetOwnPropertySymbols.call(r.Object,c),p=Xc.arrayConcat.call(Xc.objectKeys.call(r.Object,c),u),h=0,d=p;h<d.length;h++){var f=d[h];r[$u.setProperty](e,f,c[f])}}else o=Xc.arrayConcat.call(o,t);return Xc.objectAssign.apply(this,o)}),x(r,"open",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[0]=Dl(e[0]),e[1]=a._getWindowOpenTarget(e[1]),a._childWindowSandbox.handleWindowOpen(r,e)}),r.FontFace&&!this.proxyless&&C(r,"FontFace",function(e,t,r){return t=rd.process(t,Fl),new Xc.FontFace(e,t,r)}),r.Worker&&!this.proxyless&&C(r,"Worker",function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Qa(this,l);if(0===arguments.length)return r?Xc.Worker():new Xc.Worker;if(r)return Xc.Worker.apply(this,e);var n=e[0];"string"!=typeof n&&(n=String(n)),n=Dl(n,{resourceType:He({isScript:!0})});var o=1===arguments.length?new Xc.Worker(n):new Xc.Worker(n,e[1]);return o},!0),r.Blob&&C(r,"Blob",function(e,r){return 0===arguments.length?new Xc.Blob:(t._isProcessableBlob(e,r)&&(e=[zi(e.join(""),!0,!1,Fl,void 0,Cl.get().proxyless,t._getBlobProcessingSettings())]),1===arguments.length?new Xc.Blob(e):new Xc.Blob(e,r))}),Xc.File&&C(r,"File",function(e,r,n){return 0===arguments.length?new Xc.File:(t._isProcessableBlob(e,n)&&(e=[zi(e.join(""),!0,!1,Fl,void 0,Cl.get().proxyless,t._getBlobProcessingSettings())]),new Xc.File(e,r,n))}),r.EventSource&&!this.proxyless&&(C(r,"EventSource",function(e,t){if(arguments.length){var r=Dl(e,{resourceType:He({isEventSource:!0})});return 1===arguments.length?new Xc.EventSource(r):new Xc.EventSource(r,t)}return new Xc.EventSource}),r.EventSource.CONNECTING=Xc.EventSource.CONNECTING,r.EventSource.OPEN=Xc.EventSource.OPEN,r.EventSource.CLOSED=Xc.EventSource.CLOSED),r.MutationObserver&&(C(r,"MutationObserver",function(e){var t=function(t){for(var r=[],n=0,o=t;n<o.length;n++){var i=o[n];gm.isShadowUIMutation(i)||r.push(i)}r.length&&e.call(this,r,this)};return new Xc.MutationObserver(t)}),r.WebKitMutationObserver&&(r.WebKitMutationObserver=r.MutationObserver)),r.Proxy&&(C(r,"Proxy",function(e,t){if(t.get&&!t.get[Xm]){var n=t.get;t.get=function(e,t,o){if(t===Km)return $m;if(Fm.indexOf(t)>-1)return r[t];var i=n.call(this,e,t,o);return"eval"===t&&i[ng.WRAPPED_EVAL_FN]?i[ng.WRAPPED_EVAL_FN]:i},Xc.objectDefineProperty(t.get,Xm,{value:!0,enumerable:!1})}return new Xc.Proxy(e,t)}),r.Proxy.revocable=Xc.Proxy.revocable),Xc.registerServiceWorker&&!this.proxyless&&x(r.navigator.serviceWorker,"register",function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=e[0],i=e[1];if("string"==typeof o){if(t._isSecureOrigin(o))return mc.reject(Ic||Uc&&kc>=17?new Error("Only secure origins are allowed."):new DOMException("Only secure origins are allowed.","SecurityError"));e[0]=Dl(o,{resourceType:He({isServiceWorker:!0})})}return e[1]={scope:"/"},Xc.registerServiceWorker.apply(r.navigator.serviceWorker,e).then(function(t){return new mc(function(r,n){var a=jl(e[0]),s=t.installing;if(!s)return void r(t);var c=new Xc.MessageChannel;s.postMessage({cmd:jm,currentScope:Ve(o),optsScope:Ve(i&&i.scope),protocol:a.destResourceInfo.protocol,host:a.destResourceInfo.host},[c.port1]),c.port2.onmessage=function(e){var o=Xc.messageEventDataGetter.call(e);o.error?n(new Error(o.error)):r(t)}})})}),Xc.getRegistrationServiceWorker&&!this.proxyless&&x(r.navigator.serviceWorker,"getRegistration",function(){
for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"string"==typeof e[0]&&(e[0]="/"),Xc.getRegistrationServiceWorker.apply(r.navigator.serviceWorker,e)}),r.Range.prototype.createContextualFragment&&x(r.Range.prototype,"createContextualFragment",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0];"string"==typeof r&&(e[0]=ca(r,{processedContext:this.startContainer&&this.startContainer[vc.processedContext]}));var n=Xc.createContextualFragment.apply(this,e);return i.processNodes(n),n}),r.EventTarget){var s=this.listenersSandbox.createOverriddenMethods();x(r.EventTarget.prototype,"addEventListener",s.addEventListener),x(r.EventTarget.prototype,"removeEventListener",s.removeEventListener)}if(this.proxyless||C(r,"Image",function(){var e=null;return e=arguments.length?1===arguments.length?new Xc.Image(arguments[0]):new Xc.Image(arguments[0],arguments[1]):new Xc.Image,e[vc.forceProxySrcForImage]=!0,i.processNodes(e),e}),C(r,"Function",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e.length-1;"string"==typeof e[n]&&(e[n]=zi(e[n],!1,!1,Fl));var o=Xc.Function.apply(this,e);return t._patchFunctionPrototype(o,this),o},!0),x(Xc.Function.prototype,"toString",function(){return Xc.objectHasOwnProperty.call(this,vc.nativeStrRepresentation)?this[vc.nativeStrRepresentation]:Xc.functionToString.call(this)}),O(r.history.pushState)&&O(r.history.replaceState)&&!this.proxyless){var c=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t[2];return t.length>2&&null!==n&&(Mc||void 0!==n)&&(t[2]=Dl(n)),e.apply(this,t)}};x(r.history,"pushState",c(Xc.historyPushState)),x(r.history,"replaceState",c(Xc.historyReplaceState))}Xc.sendBeacon&&!this.proxyless&&x(r.Navigator.prototype,"sendBeacon",function(){return"string"==typeof arguments[0]&&(arguments[0]=Dl(arguments[0])),Xc.sendBeacon.apply(this,arguments)}),r.navigator.registerProtocolHandler&&!this.proxyless&&x(r.navigator,"registerProtocolHandler",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=1;if("string"==typeof e[r]){var n=ye().hostname,o=!1;if(Hc){var i=Ne(e[r]);o=i.hostname&&n===i.hostname}else o=pe(Tl(),e[r]);o&&(e[r]=Dl(e[r]))}return Xc.registerProtocolHandler.apply(navigator,e)}),r.FormData&&x(r.FormData.prototype,"append",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],n=e[1];r!==Qc.uploadInfoHiddenInputName&&(2===e.length&&Dr(n)&&"name"in n&&(e[2]=n.name),Xc.formDataAppend.apply(this,e))}),r.WebSocket&&!this.proxyless&&(C(r,"WebSocket",function(e,t){if(0===arguments.length)return new Xc.WebSocket;var r=Dl(e,{resourceType:He({isWebSocket:!0})});return 1===arguments.length?new Xc.WebSocket(r):2===arguments.length?new Xc.WebSocket(r,t):new Xc.WebSocket(r,t,arguments[2])}),r.WebSocket.CONNECTING=Xc.WebSocket.CONNECTING,r.WebSocket.OPEN=Xc.WebSocket.OPEN,r.WebSocket.CLOSING=Xc.WebSocket.CLOSING,r.WebSocket.CLOSED=Xc.WebSocket.CLOSED,Xc.webSocketUrlGetter&&_(r.WebSocket.prototype,"url",{getter:function(){var e=Xc.webSocketUrlGetter.call(this),t=jl(e);return t&&t.destUrl?t.destUrl.replace(Hm,"ws"):e}})),this.proxyless||_(r.MessageEvent.prototype,"origin",{getter:function(){var e=Xc.eventTargetGetter.call(this),t=Xc.messageEventOriginGetter.call(this);if(Zr(e)){var r=Ne(e.url);if(r)return r.protocol+"//"+r.host}else if(kr(e)){var n=Xc.messageEventDataGetter.call(this);if(n)return n.originUrl}return t}}),_(r.HTMLCollection.prototype,"length",{getter:function(){var e=Xc.htmlCollectionLengthGetter.call(this);return gm.isShadowContainerCollection(this,e)?a.shadowUI.getShadowUICollectionLength(this,e):e}}),_(r.NodeList.prototype,"length",{getter:function(){var e=Xc.nodeListLengthGetter.call(this);return gm.isShadowContainerCollection(this)?a.shadowUI.getShadowUICollectionLength(this,e):e}}),_(r.Element.prototype,"childElementCount",{getter:function(){if(gm.isShadowContainer(this)){var e=Xc.elementChildrenGetter.call(this),t=Xc.htmlCollectionLengthGetter.call(e);return a.shadowUI.getShadowUICollectionLength(e,t)}return Xc.elementChildElementCountGetter.call(this)}}),Xc.performanceEntryNameGetter&&!this.proxyless&&_(r.PerformanceEntry.prototype,"name",{getter:function(){var e=Xc.performanceEntryNameGetter.call(this);if(tn(this)){var t=jl(e);if(t)return t.destUrl}return e}}),_(r.HTMLInputElement.prototype,"files",{getter:function(){return"file"===this.type.toLowerCase()?Im.getFiles(this):Xc.inputFilesGetter.call(this)}}),_(r.HTMLInputElement.prototype,"value",{getter:function(){return"file"===this.type.toLowerCase()?Im.getUploadElementValue(this):Xc.inputValueGetter.call(this)},setter:function(e){if("file"===this.type.toLowerCase())return a.uploadSandbox.setUploadElementValue(this,e);Xc.inputValueSetter.call(this,e);var t=e!==Xc.inputValueGetter.call(this);t&&!Or(this)&&Wr(this)&&a.elementEditingWatcher.restartWatchingElementEditing(this)}}),Bc&&_(r.HTMLInputElement.prototype,"disabled",{getter:null,setter:function(e){if(Xc.documentActiveElementGetter.call(document)===this){var t=a.elementEditingWatcher.getElementSavedValue(this),r=Xc.inputValueGetter.call(this);a.elementEditingWatcher.isEditingObserved(this)&&r!==t&&a.eventSimulator.change(this),a.elementEditingWatcher.stopWatching(this)}Xc.inputDisabledSetter.call(this,e)}}),_(r.HTMLInputElement.prototype,"required",{getter:function(){return null!==a.nodeSandbox.element.getAttributeCore(this,["required"])},setter:function(e){"file"!==this.type.toLowerCase()?Xc.inputRequiredSetter.call(this,e):e?a.nodeSandbox.element.setAttributeCore(this,["required",""]):a.nodeSandbox.element.removeAttributeCore(this,["required"])}}),_(r.HTMLTextAreaElement.prototype,"value",{getter:null,setter:function(e){Xc.textAreaValueSetter.call(this,e),!Or(this)&&Wr(this)&&a.elementEditingWatcher.restartWatchingElementEditing(this)}}),this.proxyless||this._overrideAllUrlAttrDescriptors(),this._overrideAttrDescriptors("target",[r.HTMLAnchorElement,r.HTMLFormElement,r.HTMLAreaElement,r.HTMLBaseElement]),this._overrideAttrDescriptors("formTarget",[r.HTMLInputElement,r.HTMLButtonElement]),this._overrideAttrDescriptors("autocomplete",[r.HTMLInputElement]),this._overrideAttrDescriptors("httpEquiv",[r.HTMLMetaElement]),Xc.scriptIntegrityGetter&&Xc.linkIntegrityGetter&&(this._overrideAttrDescriptors("integrity",[r.HTMLScriptElement]),this._overrideAttrDescriptors("integrity",[r.HTMLLinkElement])),this._overrideAttrDescriptors("rel",[r.HTMLLinkElement]),Xc.linkAsSetter&&this._overrideAttrDescriptors("as",[r.HTMLLinkElement]),_(r.HTMLInputElement.prototype,"type",{getter:null,setter:function(e){a.nodeSandbox.element.setAttributeCore(this,["type",e])}}),_(r.HTMLIFrameElement.prototype,"sandbox",{getter:function(){var e=this[Gm];if(!e){var t=Xc.createElement.call(document,"span");e=Xc.elementClassListGetter.call(t),t.className=a.nodeSandbox.element.getAttributeCore(this,["sandbox"])||"",Xc.objectDefineProperty(e,qm,{value:this}),Xc.objectDefineProperty(this,Gm,{value:e}),Xc.objectDefineProperty(this,zm,{value:function(e){t.className=e}})}return e},setter:function(e){a.nodeSandbox.element.setAttributeCore(this,["sandbox",e]),this[zm]&&this[zm](a.nodeSandbox.element.getAttributeCore(this,["sandbox"])||"")}}),Xc.iframeSrcdocGetter&&_(r.HTMLIFrameElement.prototype,"srcdoc",{getter:function(){return a.nodeSandbox.element.getAttributeCore(this,["srcdoc"])||""},setter:function(e){a.nodeSandbox.element.setAttributeCore(this,["srcdoc",e])}}),this.proxyless||(this._overrideUrlPropDescriptor("port",Xc.anchorPortGetter,Xc.anchorPortSetter),this._overrideUrlPropDescriptor("host",Xc.anchorHostGetter,Xc.anchorHostSetter),this._overrideUrlPropDescriptor("hostname",Xc.anchorHostnameGetter,Xc.anchorHostnameSetter),this._overrideUrlPropDescriptor("pathname",Xc.anchorPathnameGetter,Xc.anchorPathnameSetter),this._overrideUrlPropDescriptor("protocol",Xc.anchorProtocolGetter,Xc.anchorProtocolSetter),this._overrideUrlPropDescriptor("search",Xc.anchorSearchGetter,Xc.anchorSearchSetter)),this.proxyless||(_(r.SVGImageElement.prototype,"href",{getter:function(){var e=Xc.svgImageHrefGetter.call(this);return e[Wm]||Xc.objectDefineProperty(e,Wm,{value:this,configurable:!0}),e}}),_(r.SVGAnimatedString.prototype,"baseVal",{getter:function(){var e=Xc.svgAnimStrBaseValGetter.call(this);return this[Wm]&&(e=Be(e)),e},setter:function(e){var t=this[Wm];if(t){var r=Xc.hasAttributeNS.call(t,id,"href");a.nodeSandbox.element.setAttributeCore(t,[r?"xlink:href":"href",e]),e=Dl(e)}Xc.svgAnimStrBaseValSetter.call(this,e)}}),_(r.SVGAnimatedString.prototype,"animVal",{getter:function(){var e=Xc.svgAnimStrAnimValGetter.call(this);return this[Wm]?Be(e):e}})),Xc.anchorOriginGetter&&!this.proxyless&&_(r.HTMLAnchorElement.prototype,"origin",{getter:function(){return os(this,Xc.anchorOriginGetter)}}),this.proxyless||_(r.StyleSheet.prototype,"href",{getter:function(){return Be(Xc.styleSheetHrefGetter.call(this))}}),Xc.cssStyleSheetHrefGetter&&_(r.CSSStyleSheet.prototype,"href",{getter:function(){return Be(Xc.cssStyleSheetHrefGetter.call(this))}}),Xc.nodeBaseURIGetter&&_(r.Node.prototype,"baseURI",{getter:function(){return Be(Xc.nodeBaseURIGetter.call(this))}}),r.DOMParser&&x(r.DOMParser.prototype,"parseFromString",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r,n=e[0],o=e[1];e.length>1&&"string"==typeof n&&"text/html"===o&&(r=ca(n),e[0]=r);var i=Xc.DOMParserParseFromString.apply(this,e);return r&&gm.removeSelfRemovingScripts(i),i}),_(r.Node.prototype,"firstChild",{getter:function(){return gm.isShadowContainer(this)?a.shadowUI.getFirstChild(this):Xc.nodeFirstChildGetter.call(this)}}),_(r.Element.prototype,"firstElementChild",{getter:function(){return gm.isShadowContainer(this)?a.shadowUI.getFirstElementChild(this):Xc.elementFirstElementChildGetter.call(this)}}),_(r.Node.prototype,"lastChild",{getter:function(){return gm.isShadowContainer(this)?a.shadowUI.getLastChild(this):Xc.nodeLastChildGetter.call(this)}}),_(r.Element.prototype,"lastElementChild",{getter:function(){return gm.isShadowContainer(this)?a.shadowUI.getLastElementChild(this):Xc.elementLastElementChildGetter.call(this)}}),_(r.Node.prototype,"nextSibling",{getter:function(){return a.shadowUI.getNextSibling(this)}}),_(r.Node.prototype,"previousSibling",{getter:function(){return a.shadowUI.getPrevSibling(this)}}),_(r.Element.prototype,"nextElementSibling",{getter:function(){return a.shadowUI.getNextElementSibling(this)}}),_(r.Element.prototype,"previousElementSibling",{getter:function(){return a.shadowUI.getPrevElementSibling(this)}}),_(r[Xc.elementHTMLPropOwnerName].prototype,"innerHTML",{getter:function(){if(a._documentTitleStorageInitializer&&rr(this))return a._documentTitleStorageInitializer.storage.getTitleElementPropertyValue(this);var e=Xc.elementInnerHTMLGetter.call(this);return dr(this)?yi(e):fr(this)?rd.cleanUp(e,jl):sa(e)},setter:function(e){if(a._documentTitleStorageInitializer&&rr(this))return void a._documentTitleStorageInitializer.storage.setTitleElementPropertyValue(this,e);var t=this,n=fr(t),o=dr(t),i=null!==e&&void 0!==e?String(e):e;if(i&&(i=n?rd.process(i,Dl,!0):o?zi(i,!0,!1,Fl,void 0,Cl.get().proxyless):ca(i,{parentTag:t.tagName,processedContext:t[vc.processedContext]})),n||o||Bf.onChildrenChanged(t),Xc.elementInnerHTMLSetter.call(t,i),a._setSandboxedTextForTitleElements(t),!n&&!o){if(Bf.onChildrenChanged(t),a.document.body===t){var s=a.shadowUI.getRoot();a.shadowUI.markShadowUIContainers(a.document.head,t),gm.markElementAndChildrenAsShadow(s)}else Or(t)&&gm.markElementAndChildrenAsShadow(t);var c=Ft(t),l=c?c.defaultView:null;l&&l!==r&&l[vc.processDomMethodName]?l[vc.processDomMethodName](t,c):r[vc.processDomMethodName]&&r[vc.processDomMethodName](t),r.self&&(ar(t)||sr(t))&&Xc.setTimeout.call(r,function(){return a.nodeMutation.onBodyContentChanged(t)},0)}}}),_(r[Xc.elementHTMLPropOwnerName].prototype,"outerHTML",{getter:function(){var e=Xc.elementOuterHTMLGetter.call(this);return sa(e)},setter:function(e){var t=this,n=Xc.nodeParentNodeGetter.call(t);if(Bf.onElementChanged(t),n&&null!==e&&void 0!==e){var o=Ft(n),i=o?o.defaultView:null;Xc.elementOuterHTMLSetter.call(t,ca(String(e),{parentTag:n&&n.tagName,processedContext:t[vc.processedContext]})),a._setSandboxedTextForTitleElements(n),Bf.onChildrenChanged(n),i&&i!==r&&i[vc.processDomMethodName]?i[vc.processDomMethodName](n,o):r[vc.processDomMethodName]&&r[vc.processDomMethodName](n),r.self&&sr(t)&&Xc.setTimeout.call(r,function(){return a.shadowUI.onBodyElementMutation()},0)}else Xc.elementOuterHTMLSetter.call(t,e)}}),_(r.HTMLElement.prototype,"innerText",{getter:function(){if(a._documentTitleStorageInitializer&&rr(this))return a._documentTitleStorageInitializer.storage.getTitleElementPropertyValue(this);var e=Xc.htmlElementInnerTextGetter.call(this);return t._removeProcessingInstructions(e)},setter:function(e){if(a._documentTitleStorageInitializer&&rr(this))return void a._documentTitleStorageInitializer.storage.setTitleElementPropertyValue(this,e);var r=t._processTextPropValue(this,e);Bf.onChildrenChanged(this),Xc.htmlElementInnerTextSetter.call(this,r)}}),_(r.HTMLScriptElement.prototype,"text",{getter:function(){var e=Xc.scriptTextGetter.call(this);return yi(e)},setter:function(e){var t=e?zi(String(e),!0,!1,Fl,void 0,Cl.get().proxyless):e;Xc.scriptTextSetter.call(this,t)}}),_(r.HTMLAnchorElement.prototype,"text",{getter:function(){var e=Xc.anchorTextGetter.call(this);return t._removeProcessingInstructions(e)},setter:function(e){var r=t._processTextPropValue(this,e);Bf.onChildrenChanged(this),Xc.anchorTextSetter.call(this,r)}}),_(r.Node.prototype,"textContent",{getter:function(){if(a._documentTitleStorageInitializer&&rr(this))return a._documentTitleStorageInitializer.storage.getTitleElementPropertyValue(this);var e=Xc.nodeTextContentGetter.call(this);return t._removeProcessingInstructions(e)},setter:function(e){if(a._documentTitleStorageInitializer&&rr(this))return void a._documentTitleStorageInitializer.storage.setTitleElementPropertyValue(this,e);var r=t._processTextPropValue(this,e);Bf.onChildrenChanged(this),Xc.nodeTextContentSetter.call(this,r)}}),_(r[Xc.elementAttributesPropOwnerName].prototype,"attributes",{getter:function(){return La(this)}}),x(r.DOMTokenList.prototype,"add",this._createOverriddenDOMTokenListMethod(Xc.tokenListAdd)),x(r.DOMTokenList.prototype,"remove",this._createOverriddenDOMTokenListMethod(Xc.tokenListRemove)),x(r.DOMTokenList.prototype,"toggle",this._createOverriddenDOMTokenListMethod(Xc.tokenListToggle)),Xc.tokenListReplace&&x(r.DOMTokenList.prototype,"replace",this._createOverriddenDOMTokenListMethod(Xc.tokenListReplace)),Xc.tokenListSupports&&x(r.DOMTokenList.prototype,"supports",function(){if(this[qm]){var e=Xc.iframeSandboxGetter.call(this[qm]);return Xc.tokenListSupports.apply(e,arguments)}return Xc.tokenListSupports.apply(this,arguments)}),Xc.tokenListValueSetter&&_(r.DOMTokenList.prototype,"value",{getter:null,setter:function(e){var t=this[qm];Xc.tokenListValueSetter.call(this,e),t&&a.nodeSandbox.element.setAttributeCore(t,["sandbox",this.value])}}),x(r.DOMImplementation.prototype,"createHTMLDocument",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xc.createHTMLDocument.apply(this,e);return wl.init(r),r}),_(r.MutationRecord.prototype,"nextSibling",{getter:function(){var e=Xc.mutationRecordNextSiblingGetter.call(this);return a.shadowUI.getMutationRecordNextSibling(e)}}),_(r.MutationRecord.prototype,"previousSibling",{getter:function(){var e=Xc.mutationRecordPrevSiblingGetter.call(this);return a.shadowUI.getMutationRecordPrevSibling(e)}}),Xc.windowOriginGetter&&_(r,"origin",{getter:function(){var e=Xc.windowOriginGetter.call(this);if(!e||"null"===e)return e;var t=Nt(a.window);if(t){var r=a.nodeSandbox.element.getAttributeCore(t,["sandbox"]);if("string"==typeof r&&r.indexOf("allow-same-origin")===-1)return"null"}var n=ye();return n&&"file:"===n.protocol?"null":_e()},setter:function(e){return Xc.windowOriginSetter.call(this,e)}}),this._documentTitleStorageInitializer&&_(r.HTMLTitleElement.prototype,"text",{getter:function(){return a._documentTitleStorageInitializer.storage.getTitleElementPropertyValue(this)},setter:function(e){a._documentTitleStorageInitializer.storage.setTitleElementPropertyValue(this,e)}})},t}(Ou),eg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t._error=function(e){throw new Error(e)},t._setCrossDomainLocation=function(e,t){var r="";if("string"!=typeof t&&(t=String(t)),_d.isJsProtocol(t))r=_d.processJsAttrValue(t,{isJsProtocol:!0,isEventAttr:!1});else{var n=He({isIframe:!0});t=ae(t),r=e!==window.top.location?Dl(t,{resourceType:n}):Dl(t,{proxyPort:Cl.get().crossDomainProxyPort})}return e.href=r,t},t._getLocation=function(e){var t=kd.getLocationWrapper(e);if(t)return t;if(!e.location)return e.location;var r=kr(e)?e:e.defaultView;return new Pd(r,null,Es)},t._setLocation=function(e,r){var n=kr(e)?e:e.defaultView,o=kd.getLocationWrapper(n);return!o||o===e.location||Mc&&Bt(window,n)?t._setCrossDomainLocation(e.location,r):o&&(o.href=r),r},t._propertyGetter=function(e,r,n){if(void 0===n&&(n=!1),T(e)&&!n&&t._error("Cannot read property '".concat(r,"' of ").concat(A(e))),"string"==typeof r&&Ho(r)){if(n&&T(e))return;if(!Zm.isProxyObject(e)&&t._ACCESSORS[r].condition(e))return t._ACCESSORS[r].get(e)}if(!n||!T(e))return e[r]},t._propertySetter=function(e,r,n){return T(e)&&t._error("Cannot set property '".concat(r,"' of ").concat(A(e))),"string"==typeof r&&Ho(r)&&!Zm.isProxyObject(e)&&t._ACCESSORS[r].condition(e)?t._ACCESSORS[r].set(e,n):e[r]=n},t.prototype.attach=function(r){var n;e.prototype.attach.call(this,r),Xc.objectDefineProperties(r,(n={},n[$u.getProperty]={value:t._propertyGetter,configurable:!0},n[$u.setProperty]={value:t._propertySetter,configurable:!0},n))},t._ACCESSORS={href:{condition:Mr,get:function(e){return e.href},set:t._setCrossDomainLocation},location:{condition:function(e){return Lr(e)||kr(e)},get:t._getLocation,set:t._setLocation}},t}(Ou),tg=function(e){function t(t){var r=e.call(this)||this;return r._messageSandbox=t,r._buildMethodWrappers(),r}return m(t,e),t.prototype._buildMethodWrappers=function(){var e=this;this.methodWrappers={postMessage:{condition:kr,method:function(t,r){return e._messageSandbox.postMessage(t,r)}}},this.proxyless||(this.methodWrappers.replace={condition:Mr,method:function(e,r){return e.replace(Dl(r[0],{resourceType:t._getLocationResourceType(e)}))}},this.methodWrappers.assign={condition:Mr,method:function(e,r){return e.assign(Dl(r[0],{resourceType:t._getLocationResourceType(e)}))}})},t._error=function(e){throw new Error(e)},t._getLocationResourceType=function(e){return window.top.location===e?null:He({isIframe:!0})},t._isPostMessageFn=function(e,t){return e.postMessage===e.postMessage?e.postMessage===t:t&&O(t.toString)&&t.toString()===e.postMessage.toString()},t.prototype.attach=function(r){var n=this;e.prototype.attach.call(this,r),Xc.objectDefineProperty(r,$u.callMethod,{value:function(e,r,o,i){if(void 0===i&&(i=!1),T(e)&&!i&&t._error("Cannot call method '".concat(r,"' of ").concat(A(e))),O(e[r])||i||t._error("'".concat(r,"' is not a function")),"string"==typeof r&&Fo(r)){if(i&&!O(e[r]))return;if(n.methodWrappers[r].condition(e))return n.methodWrappers[r].method(e,o)}if(!i||O(e[r]))return Ss(e,r,o)},configurable:!0});var o=this;Xc.objectDefineProperty(r,$u.getPostMessage,{value:function(e,r){return 1!==arguments.length||kr(e)?2!==arguments.length||t._isPostMessageFn(this,r)?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o._messageSandbox.postMessage(this,e)}:r:e.postMessage},configurable:!0})},t}(Ou),rg=t(function(e,t){(function(){function r(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function n(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function o(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}function i(e,t){for(var r=null==e?0:e.length;r--&&t(e[r],r,e)!==!1;);return e}function a(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function s(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function c(e,t){var r=null==e?0:e.length;return!!r&&_(e,t,0)>-1}function l(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function u(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function p(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function h(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function d(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function f(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function m(e){return e.split("")}function g(e){return e.match(Ht)||[]}function v(e,t,r){var n;return r(e,function(e,r,o){if(t(e,r,o))return n=r,!1}),n}function y(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function _(e,t,r){return t===t?K(e,t,r):y(e,S,r)}function E(e,t,r,n){for(var o=r-1,i=e.length;++o<i;)if(n(e[o],t))return o;return-1}function S(e){return e!==e}function b(e,t){var r=null==e?0:e.length;return r?T(e,t)/r:Me}function w(e){return function(t){return null==t?te:t[e]}}function x(e){return function(t){return null==e?te:e[t]}}function C(e,t,r,n,o){return o(e,function(e,o,i){r=n?(n=!1,e):t(r,e,o,i)}),r}function A(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}function T(e,t){for(var r,n=-1,o=e.length;++n<o;){var i=t(e[n]);i!==te&&(r=r===te?i:r+i)}return r}function I(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function P(e,t){return u(t,function(t){return[t,e[t]]})}function N(e){return e?e.slice(0,Q(e)+1).replace(Dt,""):e}function O(e){return function(t){return e(t)}}function k(e,t){return u(t,function(t){return e[t]})}function L(e,t){return e.has(t)}function D(e,t){for(var r=-1,n=e.length;++r<n&&_(t,e[r],0)>-1;);return r}function M(e,t){for(var r=e.length;r--&&_(t,e[r],0)>-1;);return r}function R(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}function j(e){return"\\"+Jr[e]}function F(e,t){return null==e?te:e[t]}function H(e){return Wr.test(e)}function U(e){return Gr.test(e)}function B(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function V(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function W(e,t){return function(r){return e(t(r))}}function G(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r];a!==t&&a!==le||(e[r]=le,i[o++]=r)}return i}function q(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function z(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=[e,e]}),r}function K(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}function $(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}function X(e){return H(e)?J(e):gn(e)}function Y(e){return H(e)?Z(e):m(e)}function Q(e){for(var t=e.length;t--&&Mt.test(e.charAt(t)););return t}function J(e){for(var t=Br.lastIndex=0;Br.test(e);)++t;return t}function Z(e){return e.match(Br)||[]}function ee(e){return e.match(Vr)||[]}var te,re="4.17.21",ne=200,oe="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",ie="Expected a function",ae="Invalid `variable` option passed into `_.template`",se="__lodash_hash_undefined__",ce=500,le="__lodash_placeholder__",ue=1,pe=2,he=4,de=1,fe=2,me=1,ge=2,ve=4,ye=8,_e=16,Ee=32,Se=64,be=128,we=256,xe=512,Ce=30,Ae="...",Te=800,Ie=16,Pe=1,Ne=2,Oe=3,ke=1/0,Le=9007199254740991,De=1.7976931348623157e308,Me=NaN,Re=4294967295,je=Re-1,Fe=Re>>>1,He=[["ary",be],["bind",me],["bindKey",ge],["curry",ye],["curryRight",_e],["flip",xe],["partial",Ee],["partialRight",Se],["rearg",we]],Ue="[object Arguments]",Be="[object Array]",Ve="[object AsyncFunction]",We="[object Boolean]",Ge="[object Date]",qe="[object DOMException]",ze="[object Error]",Ke="[object Function]",$e="[object GeneratorFunction]",Xe="[object Map]",Ye="[object Number]",Qe="[object Null]",Je="[object Object]",Ze="[object Promise]",et="[object Proxy]",tt="[object RegExp]",rt="[object Set]",nt="[object String]",ot="[object Symbol]",it="[object Undefined]",at="[object WeakMap]",st="[object WeakSet]",ct="[object ArrayBuffer]",lt="[object DataView]",ut="[object Float32Array]",pt="[object Float64Array]",ht="[object Int8Array]",dt="[object Int16Array]",ft="[object Int32Array]",mt="[object Uint8Array]",gt="[object Uint8ClampedArray]",vt="[object Uint16Array]",yt="[object Uint32Array]",_t=/\b__p \+= '';/g,Et=/\b(__p \+=) '' \+/g,St=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39);/g,wt=/[&<>"']/g,xt=RegExp(bt.source),Ct=RegExp(wt.source),At=/<%-([\s\S]+?)%>/g,Tt=/<%([\s\S]+?)%>/g,It=/<%=([\s\S]+?)%>/g,Pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nt=/^\w*$/,Ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kt=/[\\^$.*+?()[\]{}|]/g,Lt=RegExp(kt.source),Dt=/^\s+/,Mt=/\s/,Rt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,jt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ft=/,? & /,Ht=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ut=/[()=,{}\[\]\/\s]/,Bt=/\\(\\)?/g,Vt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Wt=/\w*$/,Gt=/^[-+]0x[0-9a-f]+$/i,qt=/^0b[01]+$/i,zt=/^\[object .+?Constructor\]$/,Kt=/^0o[0-7]+$/i,$t=/^(?:0|[1-9]\d*)$/,Xt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yt=/($^)/,Qt=/['\n\r\u2028\u2029\\]/g,Jt="\\ud800-\\udfff",Zt="\\u0300-\\u036f",er="\\ufe20-\\ufe2f",tr="\\u20d0-\\u20ff",rr=Zt+er+tr,nr="\\u2700-\\u27bf",or="a-z\\xdf-\\xf6\\xf8-\\xff",ir="\\xac\\xb1\\xd7\\xf7",ar="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sr="\\u2000-\\u206f",cr=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lr="A-Z\\xc0-\\xd6\\xd8-\\xde",ur="\\ufe0e\\ufe0f",pr=ir+ar+sr+cr,hr="[']",dr="["+Jt+"]",fr="["+pr+"]",mr="["+rr+"]",gr="\\d+",vr="["+nr+"]",yr="["+or+"]",_r="[^"+Jt+pr+gr+nr+or+lr+"]",Er="\\ud83c[\\udffb-\\udfff]",Sr="(?:"+mr+"|"+Er+")",br="[^"+Jt+"]",wr="(?:\\ud83c[\\udde6-\\uddff]){2}",xr="[\\ud800-\\udbff][\\udc00-\\udfff]",Cr="["+lr+"]",Ar="\\u200d",Tr="(?:"+yr+"|"+_r+")",Ir="(?:"+Cr+"|"+_r+")",Pr="(?:"+hr+"(?:d|ll|m|re|s|t|ve))?",Nr="(?:"+hr+"(?:D|LL|M|RE|S|T|VE))?",Or=Sr+"?",kr="["+ur+"]?",Lr="(?:"+Ar+"(?:"+[br,wr,xr].join("|")+")"+kr+Or+")*",Dr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mr="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rr=kr+Or+Lr,jr="(?:"+[vr,wr,xr].join("|")+")"+Rr,Fr="(?:"+[br+mr+"?",mr,wr,xr,dr].join("|")+")",Hr=RegExp(hr,"g"),Ur=RegExp(mr,"g"),Br=RegExp(Er+"(?="+Er+")|"+Fr+Rr,"g"),Vr=RegExp([Cr+"?"+yr+"+"+Pr+"(?="+[fr,Cr,"$"].join("|")+")",Ir+"+"+Nr+"(?="+[fr,Cr+Tr,"$"].join("|")+")",Cr+"?"+Tr+"+"+Pr,Cr+"+"+Nr,Mr,Dr,gr,jr].join("|"),"g"),Wr=RegExp("["+Ar+Jt+rr+ur+"]"),Gr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qr=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],zr=-1,Kr={};Kr[ut]=Kr[pt]=Kr[ht]=Kr[dt]=Kr[ft]=Kr[mt]=Kr[gt]=Kr[vt]=Kr[yt]=!0,Kr[Ue]=Kr[Be]=Kr[ct]=Kr[We]=Kr[lt]=Kr[Ge]=Kr[ze]=Kr[Ke]=Kr[Xe]=Kr[Ye]=Kr[Je]=Kr[tt]=Kr[rt]=Kr[nt]=Kr[at]=!1;var $r={};$r[Ue]=$r[Be]=$r[ct]=$r[lt]=$r[We]=$r[Ge]=$r[ut]=$r[pt]=$r[ht]=$r[dt]=$r[ft]=$r[Xe]=$r[Ye]=$r[Je]=$r[tt]=$r[rt]=$r[nt]=$r[ot]=$r[mt]=$r[gt]=$r[vt]=$r[yt]=!0,$r[ze]=$r[Ke]=$r[at]=!1;var Xr={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Yr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Qr={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Jr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zr=parseFloat,en=parseInt,tn="object"==typeof ic&&ic&&ic.Object===Object&&ic,rn="object"==typeof self&&self&&self.Object===Object&&self,nn=tn||rn||Function("return this")(),on=t&&!t.nodeType&&t,an=on&&!0&&e&&!e.nodeType&&e,sn=an&&an.exports===on,cn=sn&&tn.process,ln=function(){try{var e=an&&an.require&&an.require("util").types;return e?e:cn&&cn.binding&&cn.binding("util")}catch(t){}}(),un=ln&&ln.isArrayBuffer,pn=ln&&ln.isDate,hn=ln&&ln.isMap,dn=ln&&ln.isRegExp,fn=ln&&ln.isSet,mn=ln&&ln.isTypedArray,gn=w("length"),vn=x(Xr),yn=x(Yr),_n=x(Qr),En=function bn(e){function t(e){if(sc(e)&&!yh(e)&&!(e instanceof K)){if(e instanceof x)return e;if(yu.call(e,"__wrapped__"))return oa(e)}return new x(e)}function m(){}function x(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=te}function K(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Re,this.__views__=[]}function J(){var e=new K(this.__wrapped__);return e.__actions__=Fo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Fo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Fo(this.__views__),e}function Z(){if(this.__filtered__){var e=new K(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Mt(){var e=this.__wrapped__.value(),t=this.__dir__,r=yh(e),n=t<0,o=r?e.length:0,i=Ti(0,o,this.__views__),a=i.start,s=i.end,c=s-a,l=n?s:a-1,u=this.__iteratees__,p=u.length,h=0,d=$u(c,this.__takeCount__);if(!r||!n&&o==c&&d==c)return So(e,this.__actions__);var f=[];e:for(;c--&&h<d;){l+=t;for(var m=-1,g=e[l];++m<p;){var v=u[m],y=v.iteratee,_=v.type,E=y(g);if(_==Ne)g=E;else if(!E){if(_==Pe)continue e;break e}}f[h++]=g}return f}function Ht(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Jt(){this.__data__=op?op(null):{},this.size=0}function Zt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function er(e){var t=this.__data__;if(op){var r=t[e];return r===se?te:r}return yu.call(t,e)?t[e]:te}function tr(e){var t=this.__data__;return op?t[e]!==te:yu.call(t,e)}function rr(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=op&&t===te?se:t,this}function nr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function or(){this.__data__=[],this.size=0}function ir(e){
var t=this.__data__,r=Nr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ku.call(t,r,1),--this.size,!0}function ar(e){var t=this.__data__,r=Nr(t,e);return r<0?te:t[r][1]}function sr(e){return Nr(this.__data__,e)>-1}function cr(e,t){var r=this.__data__,n=Nr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function lr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ur(){this.size=0,this.__data__={hash:new Ht,map:new(ep||nr),string:new Ht}}function pr(e){var t=wi(this,e)["delete"](e);return this.size-=t?1:0,t}function hr(e){return wi(this,e).get(e)}function dr(e){return wi(this,e).has(e)}function fr(e,t){var r=wi(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function mr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new lr;++t<r;)this.add(e[t])}function gr(e){return this.__data__.set(e,se),this}function vr(e){return this.__data__.has(e)}function yr(e){var t=this.__data__=new nr(e);this.size=t.size}function _r(){this.__data__=new nr,this.size=0}function Er(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}function Sr(e){return this.__data__.get(e)}function br(e){return this.__data__.has(e)}function wr(e,t){var r=this.__data__;if(r instanceof nr){var n=r.__data__;if(!ep||n.length<ne-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new lr(n)}return r.set(e,t),this.size=r.size,this}function xr(e,t){var r=yh(e),n=!r&&vh(e),o=!r&&!n&&Eh(e),i=!r&&!n&&!o&&Ch(e),a=r||n||o||i,s=a?I(e.length,pu):[],c=s.length;for(var l in e)!t&&!yu.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Mi(l,c))||s.push(l);return s}function Cr(e){var t=e.length;return t?e[to(0,t-1)]:te}function Ar(e,t){return ea(Fo(e),Rr(t,0,e.length))}function Tr(e){return ea(Fo(e))}function Ir(e,t,r){(r===te||Ks(e[t],r))&&(r!==te||t in e)||Dr(e,t,r)}function Pr(e,t,r){var n=e[t];yu.call(e,t)&&Ks(n,r)&&(r!==te||t in e)||Dr(e,t,r)}function Nr(e,t){for(var r=e.length;r--;)if(Ks(e[r][0],t))return r;return-1}function Or(e,t,r,n){return gp(e,function(e,o,i){t(n,e,r(e),i)}),n}function kr(e,t){return e&&Ho(t,Vc(t),e)}function Lr(e,t){return e&&Ho(t,Wc(t),e)}function Dr(e,t,r){"__proto__"==t&&Ru?Ru(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Mr(e,t){for(var r=-1,n=t.length,o=ou(n),i=null==e;++r<n;)o[r]=i?te:Hc(e,t[r]);return o}function Rr(e,t,r){return e===e&&(r!==te&&(e=e<=r?e:r),t!==te&&(e=e>=t?e:t)),e}function jr(e,t,r,n,i,a){var s,c=t&ue,l=t&pe,u=t&he;if(r&&(s=i?r(e,n,i,a):r(e)),s!==te)return s;if(!ac(e))return e;var p=yh(e);if(p){if(s=Ni(e),!c)return Fo(e,s)}else{var h=Ip(e),d=h==Ke||h==$e;if(Eh(e))return Io(e,c);if(h==Je||h==Ue||d&&!i){if(s=l||d?{}:Oi(e),!c)return l?Bo(e,Lr(s,e)):Uo(e,kr(s,e))}else{if(!$r[h])return i?e:{};s=ki(e,h,c)}}a||(a=new yr);var f=a.get(e);if(f)return f;a.set(e,s),xh(e)?e.forEach(function(n){s.add(jr(n,t,r,n,e,a))}):bh(e)&&e.forEach(function(n,o){s.set(o,jr(n,t,r,o,e,a))});var m=u?l?_i:yi:l?Wc:Vc,g=p?te:m(e);return o(g||e,function(n,o){g&&(o=n,n=e[o]),Pr(s,o,jr(n,t,r,o,e,a))}),s}function Fr(e){var t=Vc(e);return function(r){return Br(r,e,t)}}function Br(e,t,r){var n=r.length;if(null==e)return!n;for(e=lu(e);n--;){var o=r[n],i=t[o],a=e[o];if(a===te&&!(o in e)||!i(a))return!1}return!0}function Vr(e,t,r){if("function"!=typeof e)throw new hu(ie);return Op(function(){e.apply(te,r)},t)}function Wr(e,t,r,n){var o=-1,i=c,a=!0,s=e.length,p=[],h=t.length;if(!s)return p;r&&(t=u(t,O(r))),n?(i=l,a=!1):t.length>=ne&&(i=L,a=!1,t=new mr(t));e:for(;++o<s;){var d=e[o],f=null==r?d:r(d);if(d=n||0!==d?d:0,a&&f===f){for(var m=h;m--;)if(t[m]===f)continue e;p.push(d)}else i(t,f,n)||p.push(d)}return p}function Gr(e,t){var r=!0;return gp(e,function(e,n,o){return r=!!t(e,n,o)}),r}function Xr(e,t,r){for(var n=-1,o=e.length;++n<o;){var i=e[n],a=t(i);if(null!=a&&(s===te?a===a&&!yc(a):r(a,s)))var s=a,c=i}return c}function Yr(e,t,r,n){var o=e.length;for(r=xc(r),r<0&&(r=-r>o?0:o+r),n=n===te||n>o?o:xc(n),n<0&&(n+=o),n=r>n?0:Cc(n);r<n;)e[r++]=t;return e}function Qr(e,t){var r=[];return gp(e,function(e,n,o){t(e,n,o)&&r.push(e)}),r}function Jr(e,t,r,n,o){var i=-1,a=e.length;for(r||(r=Di),o||(o=[]);++i<a;){var s=e[i];t>0&&r(s)?t>1?Jr(s,t-1,r,n,o):p(o,s):n||(o[o.length]=s)}return o}function tn(e,t){return e&&yp(e,t,Vc)}function rn(e,t){return e&&_p(e,t,Vc)}function on(e,t){return s(t,function(t){return nc(e[t])})}function an(e,t){t=Ao(t,e);for(var r=0,n=t.length;null!=e&&r<n;)e=e[ta(t[r++])];return r&&r==n?e:te}function cn(e,t,r){var n=t(e);return yh(e)?n:p(n,r(e))}function ln(e){return null==e?e===te?it:Qe:Mu&&Mu in lu(e)?Ai(e):Ki(e)}function gn(e,t){return e>t}function En(e,t){return null!=e&&yu.call(e,t)}function wn(e,t){return null!=e&&t in lu(e)}function xn(e,t,r){return e>=$u(t,r)&&e<Ku(t,r)}function Cn(e,t,r){for(var n=r?l:c,o=e[0].length,i=e.length,a=i,s=ou(i),p=1/0,h=[];a--;){var d=e[a];a&&t&&(d=u(d,O(t))),p=$u(d.length,p),s[a]=!r&&(t||o>=120&&d.length>=120)?new mr(a&&d):te}d=e[0];var f=-1,m=s[0];e:for(;++f<o&&h.length<p;){var g=d[f],v=t?t(g):g;if(g=r||0!==g?g:0,!(m?L(m,v):n(h,v,r))){for(a=i;--a;){var y=s[a];if(!(y?L(y,v):n(e[a],v,r)))continue e}m&&m.push(v),h.push(g)}}return h}function An(e,t,r,n){return tn(e,function(e,o,i){t(n,r(e),o,i)}),n}function Tn(e,t,n){t=Ao(t,e),e=Xi(e,t);var o=null==e?e:e[ta(wa(t))];return null==o?te:r(o,e,n)}function In(e){return sc(e)&&ln(e)==Ue}function Pn(e){return sc(e)&&ln(e)==ct}function Nn(e){return sc(e)&&ln(e)==Ge}function On(e,t,r,n,o){return e===t||(null==e||null==t||!sc(e)&&!sc(t)?e!==e&&t!==t:kn(e,t,r,n,On,o))}function kn(e,t,r,n,o,i){var a=yh(e),s=yh(t),c=a?Be:Ip(e),l=s?Be:Ip(t);c=c==Ue?Je:c,l=l==Ue?Je:l;var u=c==Je,p=l==Je,h=c==l;if(h&&Eh(e)){if(!Eh(t))return!1;a=!0,u=!1}if(h&&!u)return i||(i=new yr),a||Ch(e)?fi(e,t,r,n,o,i):mi(e,t,c,r,n,o,i);if(!(r&de)){var d=u&&yu.call(e,"__wrapped__"),f=p&&yu.call(t,"__wrapped__");if(d||f){var m=d?e.value():e,g=f?t.value():t;return i||(i=new yr),o(m,g,r,n,i)}}return!!h&&(i||(i=new yr),gi(e,t,r,n,o,i))}function Ln(e){return sc(e)&&Ip(e)==Xe}function Dn(e,t,r,n){var o=r.length,i=o,a=!n;if(null==e)return!i;for(e=lu(e);o--;){var s=r[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=r[o];var c=s[0],l=e[c],u=s[1];if(a&&s[2]){if(l===te&&!(c in e))return!1}else{var p=new yr;if(n)var h=n(l,u,c,e,t,p);if(!(h===te?On(u,l,de|fe,n,p):h))return!1}}return!0}function Mn(e){if(!ac(e)||Ui(e))return!1;var t=nc(e)?xu:zt;return t.test(ra(e))}function Rn(e){return sc(e)&&ln(e)==tt}function jn(e){return sc(e)&&Ip(e)==rt}function Fn(e){return sc(e)&&ic(e.length)&&!!Kr[ln(e)]}function Hn(e){return"function"==typeof e?e:null==e?kl:"object"==typeof e?yh(e)?qn(e[0],e[1]):Gn(e):Ul(e)}function Un(e){if(!Bi(e))return zu(e);var t=[];for(var r in lu(e))yu.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Bn(e){if(!ac(e))return zi(e);var t=Bi(e),r=[];for(var n in e)("constructor"!=n||!t&&yu.call(e,n))&&r.push(n);return r}function Vn(e,t){return e<t}function Wn(e,t){var r=-1,n=$s(e)?ou(e.length):[];return gp(e,function(e,o,i){n[++r]=t(e,o,i)}),n}function Gn(e){var t=xi(e);return 1==t.length&&t[0][2]?Wi(t[0][0],t[0][1]):function(r){return r===e||Dn(r,e,t)}}function qn(e,t){return ji(e)&&Vi(t)?Wi(ta(e),t):function(r){var n=Hc(r,e);return n===te&&n===t?Bc(r,e):On(t,n,de|fe)}}function zn(e,t,r,n,o){e!==t&&yp(t,function(i,a){if(o||(o=new yr),ac(i))Kn(e,t,a,r,zn,n,o);else{var s=n?n(Qi(e,a),i,a+"",e,t,o):te;s===te&&(s=i),Ir(e,a,s)}},Wc)}function Kn(e,t,r,n,o,i,a){var s=Qi(e,r),c=Qi(t,r),l=a.get(c);if(l)return void Ir(e,r,l);var u=i?i(s,c,r+"",e,t,a):te,p=u===te;if(p){var h=yh(c),d=!h&&Eh(c),f=!h&&!d&&Ch(c);u=c,h||d||f?yh(s)?u=s:Xs(s)?u=Fo(s):d?(p=!1,u=Io(c,!0)):f?(p=!1,u=Lo(c,!0)):u=[]:mc(c)||vh(c)?(u=s,vh(s)?u=Tc(s):ac(s)&&!nc(s)||(u=Oi(c))):p=!1}p&&(a.set(c,u),o(u,c,n,i,a),a["delete"](c)),Ir(e,r,u)}function $n(e,t){var r=e.length;if(r)return t+=t<0?r:0,Mi(t,r)?e[t]:te}function Xn(e,t,r){t=t.length?u(t,function(e){return yh(e)?function(t){return an(t,1===e.length?e[0]:e)}:e}):[kl];var n=-1;t=u(t,O(bi()));var o=Wn(e,function(e,r,o){var i=u(t,function(t){return t(e)});return{criteria:i,index:++n,value:e}});return A(o,function(e,t){return Mo(e,t,r)})}function Yn(e,t){return Qn(e,t,function(t,r){return Bc(e,r)})}function Qn(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var a=t[n],s=an(e,a);r(s,a)&&so(i,Ao(a,e),s)}return i}function Jn(e){return function(t){return an(t,e)}}function Zn(e,t,r,n){var o=n?E:_,i=-1,a=t.length,s=e;for(e===t&&(t=Fo(t)),r&&(s=u(e,O(r)));++i<a;)for(var c=0,l=t[i],p=r?r(l):l;(c=o(s,p,c,n))>-1;)s!==e&&ku.call(s,c,1),ku.call(e,c,1);return e}function eo(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;Mi(o)?ku.call(e,o,1):yo(e,o)}}return e}function to(e,t){return e+Bu(Qu()*(t-e+1))}function ro(e,t,r,n){for(var o=-1,i=Ku(Uu((t-e)/(r||1)),0),a=ou(i);i--;)a[n?i:++o]=e,e+=r;return a}function no(e,t){var r="";if(!e||t<1||t>Le)return r;do t%2&&(r+=e),t=Bu(t/2),t&&(e+=e);while(t);return r}function oo(e,t){return kp($i(e,t,kl),e+"")}function io(e){return Cr(tl(e))}function ao(e,t){var r=tl(e);return ea(r,Rr(t,0,r.length))}function so(e,t,r,n){if(!ac(e))return e;t=Ao(t,e);for(var o=-1,i=t.length,a=i-1,s=e;null!=s&&++o<i;){var c=ta(t[o]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var u=s[c];l=n?n(u,c,s):te,l===te&&(l=ac(u)?u:Mi(t[o+1])?[]:{})}Pr(s,c,l),s=s[c]}return e}function co(e){return ea(tl(e))}function lo(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=ou(o);++n<o;)i[n]=e[n+t];return i}function uo(e,t){var r;return gp(e,function(e,n,o){return r=t(e,n,o),!r}),!!r}function po(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t===t&&o<=Fe){for(;n<o;){var i=n+o>>>1,a=e[i];null!==a&&!yc(a)&&(r?a<=t:a<t)?n=i+1:o=i}return o}return ho(e,t,kl,r)}function ho(e,t,r,n){var o=0,i=null==e?0:e.length;if(0===i)return 0;t=r(t);for(var a=t!==t,s=null===t,c=yc(t),l=t===te;o<i;){var u=Bu((o+i)/2),p=r(e[u]),h=p!==te,d=null===p,f=p===p,m=yc(p);if(a)var g=n||f;else g=l?f&&(n||h):s?f&&h&&(n||!d):c?f&&h&&!d&&(n||!m):!d&&!m&&(n?p<=t:p<t);g?o=u+1:i=u}return $u(i,je)}function fo(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r],s=t?t(a):a;if(!r||!Ks(s,c)){var c=s;i[o++]=0===a?0:a}}return i}function mo(e){return"number"==typeof e?e:yc(e)?Me:+e}function go(e){if("string"==typeof e)return e;if(yh(e))return u(e,go)+"";if(yc(e))return fp?fp.call(e):"";var t=e+"";return"0"==t&&1/e==-ke?"-0":t}function vo(e,t,r){var n=-1,o=c,i=e.length,a=!0,s=[],u=s;if(r)a=!1,o=l;else if(i>=ne){var p=t?null:xp(e);if(p)return q(p);a=!1,o=L,u=new mr}else u=t?[]:s;e:for(;++n<i;){var h=e[n],d=t?t(h):h;if(h=r||0!==h?h:0,a&&d===d){for(var f=u.length;f--;)if(u[f]===d)continue e;t&&u.push(d),s.push(h)}else o(u,d,r)||(u!==s&&u.push(d),s.push(h))}return s}function yo(e,t){return t=Ao(t,e),e=Xi(e,t),null==e||delete e[ta(wa(t))]}function _o(e,t,r,n){return so(e,t,r(an(e,t)),n)}function Eo(e,t,r,n){for(var o=e.length,i=n?o:-1;(n?i--:++i<o)&&t(e[i],i,e););return r?lo(e,n?0:i,n?i+1:o):lo(e,n?i+1:0,n?o:i)}function So(e,t){var r=e;return r instanceof K&&(r=r.value()),h(t,function(e,t){return t.func.apply(t.thisArg,p([e],t.args))},r)}function bo(e,t,r){var n=e.length;if(n<2)return n?vo(e[0]):[];for(var o=-1,i=ou(n);++o<n;)for(var a=e[o],s=-1;++s<n;)s!=o&&(i[o]=Wr(i[o]||a,e[s],t,r));return vo(Jr(i,1),t,r)}function wo(e,t,r){for(var n=-1,o=e.length,i=t.length,a={};++n<o;){var s=n<i?t[n]:te;r(a,e[n],s)}return a}function xo(e){return Xs(e)?e:[]}function Co(e){return"function"==typeof e?e:kl}function Ao(e,t){return yh(e)?e:ji(e,t)?[e]:Lp(Pc(e))}function To(e,t,r){var n=e.length;return r=r===te?n:r,!t&&r>=n?e:lo(e,t,r)}function Io(e,t){if(t)return e.slice();var r=e.length,n=Iu?Iu(r):new e.constructor(r);return e.copy(n),n}function Po(e){var t=new e.constructor(e.byteLength);return new Tu(t).set(new Tu(e)),t}function No(e,t){var r=t?Po(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Oo(e){var t=new e.constructor(e.source,Wt.exec(e));return t.lastIndex=e.lastIndex,t}function ko(e){return dp?lu(dp.call(e)):{}}function Lo(e,t){var r=t?Po(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Do(e,t){if(e!==t){var r=e!==te,n=null===e,o=e===e,i=yc(e),a=t!==te,s=null===t,c=t===t,l=yc(t);if(!s&&!l&&!i&&e>t||i&&a&&c&&!s&&!l||n&&a&&c||!r&&c||!o)return 1;if(!n&&!i&&!l&&e<t||l&&r&&o&&!n&&!i||s&&r&&o||!a&&o||!c)return-1}return 0}function Mo(e,t,r){for(var n=-1,o=e.criteria,i=t.criteria,a=o.length,s=r.length;++n<a;){var c=Do(o[n],i[n]);if(c){if(n>=s)return c;var l=r[n];return c*("desc"==l?-1:1)}}return e.index-t.index}function Ro(e,t,r,n){for(var o=-1,i=e.length,a=r.length,s=-1,c=t.length,l=Ku(i-a,0),u=ou(c+l),p=!n;++s<c;)u[s]=t[s];for(;++o<a;)(p||o<i)&&(u[r[o]]=e[o]);for(;l--;)u[s++]=e[o++];return u}function jo(e,t,r,n){for(var o=-1,i=e.length,a=-1,s=r.length,c=-1,l=t.length,u=Ku(i-s,0),p=ou(u+l),h=!n;++o<u;)p[o]=e[o];for(var d=o;++c<l;)p[d+c]=t[c];for(;++a<s;)(h||o<i)&&(p[d+r[a]]=e[o++]);return p}function Fo(e,t){var r=-1,n=e.length;for(t||(t=ou(n));++r<n;)t[r]=e[r];return t}function Ho(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=n?n(r[s],e[s],s,r,e):te;c===te&&(c=e[s]),o?Dr(r,s,c):Pr(r,s,c)}return r}function Uo(e,t){return Ho(e,Ap(e),t)}function Bo(e,t){return Ho(e,Tp(e),t)}function Vo(e,t){return function(r,o){var i=yh(r)?n:Or,a=t?t():{};return i(r,e,bi(o,2),a)}}function Wo(e){return oo(function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:te,a=o>2?r[2]:te;for(i=e.length>3&&"function"==typeof i?(o--,i):te,a&&Ri(r[0],r[1],a)&&(i=o<3?te:i,o=1),t=lu(t);++n<o;){var s=r[n];s&&e(t,s,n,i)}return t})}function Go(e,t){return function(r,n){if(null==r)return r;if(!$s(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=lu(r);(t?i--:++i<o)&&n(a[i],i,a)!==!1;);return r}}function qo(e){return function(t,r,n){for(var o=-1,i=lu(t),a=n(t),s=a.length;s--;){var c=a[e?s:++o];if(r(i[c],c,i)===!1)break}return t}}function zo(e,t,r){function n(){var t=this&&this!==nn&&this instanceof n?i:e;return t.apply(o?r:this,arguments)}var o=t&me,i=Xo(e);return n}function Ko(e){return function(t){t=Pc(t);var r=H(t)?Y(t):te,n=r?r[0]:t.charAt(0),o=r?To(r,1).join(""):t.slice(1);return n[e]()+o}}function $o(e){return function(t){return h(Tl(sl(t).replace(Hr,"")),e,"")}}function Xo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=mp(e.prototype),n=e.apply(r,t);return ac(n)?n:r}}function Yo(e,t,n){function o(){for(var a=arguments.length,s=ou(a),c=a,l=Si(o);c--;)s[c]=arguments[c];var u=a<3&&s[0]!==l&&s[a-1]!==l?[]:G(s,l);if(a-=u.length,a<n)return si(e,t,Zo,o.placeholder,te,s,u,te,te,n-a);var p=this&&this!==nn&&this instanceof o?i:e;return r(p,this,s)}var i=Xo(e);return o}function Qo(e){return function(t,r,n){var o=lu(t);if(!$s(t)){var i=bi(r,3);t=Vc(t),r=function(e){return i(o[e],e,o)}}var a=e(t,r,n);return a>-1?o[i?t[a]:a]:te}}function Jo(e){return vi(function(t){var r=t.length,n=r,o=x.prototype.thru;for(e&&t.reverse();n--;){var i=t[n];if("function"!=typeof i)throw new hu(ie);if(o&&!a&&"wrapper"==Ei(i))var a=new x([],(!0))}for(n=a?n:r;++n<r;){i=t[n];var s=Ei(i),c="wrapper"==s?Cp(i):te;a=c&&Hi(c[0])&&c[1]==(be|ye|Ee|we)&&!c[4].length&&1==c[9]?a[Ei(c[0])].apply(a,c[3]):1==i.length&&Hi(i)?a[s]():a.thru(i)}return function(){var e=arguments,n=e[0];if(a&&1==e.length&&yh(n))return a.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}})}function Zo(e,t,r,n,o,i,a,s,c,l){function u(){for(var v=arguments.length,y=ou(v),_=v;_--;)y[_]=arguments[_];if(f)var E=Si(u),S=R(y,E);if(n&&(y=Ro(y,n,o,f)),i&&(y=jo(y,i,a,f)),v-=S,f&&v<l){var b=G(y,E);return si(e,t,Zo,u.placeholder,r,y,b,s,c,l-v)}var w=h?r:this,x=d?w[e]:e;return v=y.length,s?y=Yi(y,s):m&&v>1&&y.reverse(),p&&c<v&&(y.length=c),this&&this!==nn&&this instanceof u&&(x=g||Xo(x)),x.apply(w,y)}var p=t&be,h=t&me,d=t&ge,f=t&(ye|_e),m=t&xe,g=d?te:Xo(e);return u}function ei(e,t){return function(r,n){return An(r,e,t(n),{})}}function ti(e,t){return function(r,n){var o;if(r===te&&n===te)return t;if(r!==te&&(o=r),n!==te){if(o===te)return n;"string"==typeof r||"string"==typeof n?(r=go(r),n=go(n)):(r=mo(r),n=mo(n)),o=e(r,n)}return o}}function ri(e){return vi(function(t){return t=u(t,O(bi())),oo(function(n){var o=this;return e(t,function(e){return r(e,o,n)})})})}function ni(e,t){t=t===te?" ":go(t);var r=t.length;if(r<2)return r?no(t,e):t;var n=no(t,Uu(e/X(t)));return H(t)?To(Y(n),0,e).join(""):n.slice(0,e)}function oi(e,t,n,o){function i(){for(var t=-1,c=arguments.length,l=-1,u=o.length,p=ou(u+c),h=this&&this!==nn&&this instanceof i?s:e;++l<u;)p[l]=o[l];for(;c--;)p[l++]=arguments[++t];return r(h,a?n:this,p)}var a=t&me,s=Xo(e);return i}function ii(e){return function(t,r,n){return n&&"number"!=typeof n&&Ri(t,r,n)&&(r=n=te),t=wc(t),r===te?(r=t,t=0):r=wc(r),n=n===te?t<r?1:-1:wc(n),ro(t,r,n,e)}}function ai(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=Ac(t),r=Ac(r)),e(t,r)}}function si(e,t,r,n,o,i,a,s,c,l){var u=t&ye,p=u?a:te,h=u?te:a,d=u?i:te,f=u?te:i;t|=u?Ee:Se,t&=~(u?Se:Ee),t&ve||(t&=~(me|ge));var m=[e,t,o,d,p,f,h,s,c,l],g=r.apply(te,m);return Hi(e)&&Np(g,m),g.placeholder=n,Ji(g,e,t)}function ci(e){var t=cu[e];return function(e,r){if(e=Ac(e),r=null==r?0:$u(xc(r),292),r&&Gu(e)){var n=(Pc(e)+"e").split("e"),o=t(n[0]+"e"+(+n[1]+r));return n=(Pc(o)+"e").split("e"),+(n[0]+"e"+(+n[1]-r))}return t(e)}}function li(e){return function(t){var r=Ip(t);return r==Xe?V(t):r==rt?z(t):P(t,e(t))}}function ui(e,t,r,n,o,i,a,s){var c=t&ge;if(!c&&"function"!=typeof e)throw new hu(ie);var l=n?n.length:0;if(l||(t&=~(Ee|Se),n=o=te),a=a===te?a:Ku(xc(a),0),s=s===te?s:xc(s),l-=o?o.length:0,t&Se){var u=n,p=o;n=o=te}var h=c?te:Cp(e),d=[e,t,r,n,o,u,p,i,a,s];if(h&&qi(d,h),e=d[0],t=d[1],r=d[2],n=d[3],o=d[4],s=d[9]=d[9]===te?c?0:e.length:Ku(d[9]-l,0),!s&&t&(ye|_e)&&(t&=~(ye|_e)),t&&t!=me)f=t==ye||t==_e?Yo(e,t,s):t!=Ee&&t!=(me|Ee)||o.length?Zo.apply(te,d):oi(e,t,r,n);else var f=zo(e,t,r);var m=h?Ep:Np;return Ji(m(f,d),e,t)}function pi(e,t,r,n){return e===te||Ks(e,mu[r])&&!yu.call(n,r)?t:e}function hi(e,t,r,n,o,i){return ac(e)&&ac(t)&&(i.set(t,e),zn(e,t,te,hi,i),i["delete"](t)),e}function di(e){return mc(e)?te:e}function fi(e,t,r,n,o,i){var a=r&de,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=i.get(e),u=i.get(t);if(l&&u)return l==t&&u==e;var p=-1,h=!0,d=r&fe?new mr:te;for(i.set(e,t),i.set(t,e);++p<s;){var m=e[p],g=t[p];if(n)var v=a?n(g,m,p,t,e,i):n(m,g,p,e,t,i);if(v!==te){if(v)continue;h=!1;break}if(d){if(!f(t,function(e,t){if(!L(d,t)&&(m===e||o(m,e,r,n,i)))return d.push(t)})){h=!1;break}}else if(m!==g&&!o(m,g,r,n,i)){h=!1;break}}return i["delete"](e),i["delete"](t),h}function mi(e,t,r,n,o,i,a){switch(r){case lt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ct:return!(e.byteLength!=t.byteLength||!i(new Tu(e),new Tu(t)));case We:case Ge:case Ye:return Ks(+e,+t);case ze:return e.name==t.name&&e.message==t.message;case tt:case nt:return e==t+"";case Xe:var s=V;case rt:var c=n&de;if(s||(s=q),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;n|=fe,a.set(e,t);var u=fi(s(e),s(t),n,o,i,a);return a["delete"](e),u;case ot:if(dp)return dp.call(e)==dp.call(t)}return!1}function gi(e,t,r,n,o,i){var a=r&de,s=yi(e),c=s.length,l=yi(t),u=l.length;if(c!=u&&!a)return!1;for(var p=c;p--;){var h=s[p];if(!(a?h in t:yu.call(t,h)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var m=!0;i.set(e,t),i.set(t,e);for(var g=a;++p<c;){h=s[p];var v=e[h],y=t[h];if(n)var _=a?n(y,v,h,t,e,i):n(v,y,h,e,t,i);if(!(_===te?v===y||o(v,y,r,n,i):_)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var E=e.constructor,S=t.constructor;E!=S&&"constructor"in e&&"constructor"in t&&!("function"==typeof E&&E instanceof E&&"function"==typeof S&&S instanceof S)&&(m=!1)}return i["delete"](e),i["delete"](t),m}function vi(e){return kp($i(e,te,ma),e+"")}function yi(e){return cn(e,Vc,Ap)}function _i(e){return cn(e,Wc,Tp)}function Ei(e){for(var t=e.name+"",r=ap[t],n=yu.call(ap,t)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==e)return o.name}return t}function Si(e){var r=yu.call(t,"placeholder")?t:e;return r.placeholder}function bi(){var e=t.iteratee||Ll;return e=e===Ll?Hn:e,arguments.length?e(arguments[0],arguments[1]):e}function wi(e,t){var r=e.__data__;return Fi(t)?r["string"==typeof t?"string":"hash"]:r.map}function xi(e){for(var t=Vc(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Vi(o)]}return t}function Ci(e,t){var r=F(e,t);return Mn(r)?r:te}function Ai(e){var t=yu.call(e,Mu),r=e[Mu];try{e[Mu]=te;var n=!0}catch(o){}var i=Su.call(e);return n&&(t?e[Mu]=r:delete e[Mu]),i}function Ti(e,t,r){for(var n=-1,o=r.length;++n<o;){var i=r[n],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=$u(t,e+a);break;case"takeRight":e=Ku(e,t-a)}}return{start:e,end:t}}function Ii(e){var t=e.match(jt);return t?t[1].split(Ft):[]}function Pi(e,t,r){t=Ao(t,e);for(var n=-1,o=t.length,i=!1;++n<o;){var a=ta(t[n]);if(!(i=null!=e&&r(e,a)))break;e=e[a]}return i||++n!=o?i:(o=null==e?0:e.length,!!o&&ic(o)&&Mi(a,o)&&(yh(e)||vh(e)))}function Ni(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&yu.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Oi(e){return"function"!=typeof e.constructor||Bi(e)?{}:mp(Pu(e))}function ki(e,t,r){var n=e.constructor;switch(t){case ct:return Po(e);case We:case Ge:return new n((+e));case lt:return No(e,r);case ut:case pt:case ht:case dt:case ft:case mt:case gt:case vt:case yt:return Lo(e,r);case Xe:return new n;case Ye:case nt:return new n(e);case tt:return Oo(e);case rt:return new n;case ot:return ko(e)}}function Li(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(Rt,"{\n/* [wrapped with "+t+"] */\n")}function Di(e){return yh(e)||vh(e)||!!(Lu&&e&&e[Lu])}function Mi(e,t){var r=typeof e;return t=null==t?Le:t,!!t&&("number"==r||"symbol"!=r&&$t.test(e))&&e>-1&&e%1==0&&e<t}function Ri(e,t,r){if(!ac(r))return!1;var n=typeof t;return!!("number"==n?$s(r)&&Mi(t,r.length):"string"==n&&t in r)&&Ks(r[t],e)}function ji(e,t){if(yh(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!yc(e))||(Nt.test(e)||!Pt.test(e)||null!=t&&e in lu(t))}function Fi(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Hi(e){var r=Ei(e),n=t[r];if("function"!=typeof n||!(r in K.prototype))return!1;if(e===n)return!0;var o=Cp(n);return!!o&&e===o[0]}function Ui(e){return!!Eu&&Eu in e}function Bi(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||mu;return e===r}function Vi(e){return e===e&&!ac(e)}function Wi(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==te||e in lu(r)))}}function Gi(e){var t=Ls(e,function(e){return r.size===ce&&r.clear(),e}),r=t.cache;return t}function qi(e,t){var r=e[1],n=t[1],o=r|n,i=o<(me|ge|be),a=n==be&&r==ye||n==be&&r==we&&e[7].length<=t[8]||n==(be|we)&&t[7].length<=t[8]&&r==ye;if(!i&&!a)return e;n&me&&(e[2]=t[2],o|=r&me?0:ve);var s=t[3];if(s){var c=e[3];e[3]=c?Ro(c,s,t[4]):s,e[4]=c?G(e[3],le):t[4]}return s=t[5],s&&(c=e[5],e[5]=c?jo(c,s,t[6]):s,e[6]=c?G(e[5],le):t[6]),s=t[7],s&&(e[7]=s),n&be&&(e[8]=null==e[8]?t[8]:$u(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function zi(e){var t=[];if(null!=e)for(var r in lu(e))t.push(r);return t}function Ki(e){return Su.call(e)}function $i(e,t,n){return t=Ku(t===te?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=Ku(o.length-t,0),s=ou(a);++i<a;)s[i]=o[t+i];i=-1;for(var c=ou(t+1);++i<t;)c[i]=o[i];return c[t]=n(s),r(e,this,c)}}function Xi(e,t){return t.length<2?e:an(e,lo(t,0,-1))}function Yi(e,t){for(var r=e.length,n=$u(t.length,r),o=Fo(e);n--;){var i=t[n];e[n]=Mi(i,r)?o[i]:te}return e}function Qi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Ji(e,t,r){var n=t+"";return kp(e,Li(n,na(Ii(n),r)))}function Zi(e){var t=0,r=0;return function(){var n=Xu(),o=Ie-(n-r);if(r=n,o>0){if(++t>=Te)return arguments[0]}else t=0;return e.apply(te,arguments)}}function ea(e,t){var r=-1,n=e.length,o=n-1;for(t=t===te?n:t;++r<t;){var i=to(r,o),a=e[i];e[i]=e[r],e[r]=a}return e.length=t,e}function ta(e){if("string"==typeof e||yc(e))return e;var t=e+"";return"0"==t&&1/e==-ke?"-0":t}function ra(e){if(null!=e){try{return vu.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function na(e,t){return o(He,function(r){var n="_."+r[0];t&r[1]&&!c(e,n)&&e.push(n)}),e.sort()}function oa(e){if(e instanceof K)return e.clone();var t=new x(e.__wrapped__,e.__chain__);return t.__actions__=Fo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ia(e,t,r){t=(r?Ri(e,t,r):t===te)?1:Ku(xc(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var o=0,i=0,a=ou(Uu(n/t));o<n;)a[i++]=lo(e,o,o+=t);return a}function aa(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o}function sa(){var e=arguments.length;if(!e)return[];for(var t=ou(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return p(yh(r)?Fo(r):[r],Jr(t,1))}function ca(e,t,r){var n=null==e?0:e.length;return n?(t=r||t===te?1:xc(t),lo(e,t<0?0:t,n)):[]}function la(e,t,r){var n=null==e?0:e.length;return n?(t=r||t===te?1:xc(t),t=n-t,lo(e,0,t<0?0:t)):[]}function ua(e,t){return e&&e.length?Eo(e,bi(t,3),!0,!0):[]}function pa(e,t){return e&&e.length?Eo(e,bi(t,3),!0):[]}function ha(e,t,r,n){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&Ri(e,t,r)&&(r=0,n=o),Yr(e,t,r,n)):[]}function da(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:xc(r);return o<0&&(o=Ku(n+o,0)),y(e,bi(t,3),o)}function fa(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n-1;return r!==te&&(o=xc(r),o=r<0?Ku(n+o,0):$u(o,n-1)),y(e,bi(t,3),o,!0)}function ma(e){var t=null==e?0:e.length;return t?Jr(e,1):[]}function ga(e){var t=null==e?0:e.length;return t?Jr(e,ke):[]}function va(e,t){var r=null==e?0:e.length;return r?(t=t===te?1:xc(t),Jr(e,t)):[]}function ya(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n}function _a(e){return e&&e.length?e[0]:te}function Ea(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:xc(r);return o<0&&(o=Ku(n+o,0)),_(e,t,o)}function Sa(e){var t=null==e?0:e.length;return t?lo(e,0,-1):[]}function ba(e,t){return null==e?"":qu.call(e,t)}function wa(e){var t=null==e?0:e.length;return t?e[t-1]:te}function xa(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return r!==te&&(o=xc(r),o=o<0?Ku(n+o,0):$u(o,n-1)),t===t?$(e,t,o):y(e,S,o,!0)}function Ca(e,t){return e&&e.length?$n(e,xc(t)):te}function Aa(e,t){return e&&e.length&&t&&t.length?Zn(e,t):e}function Ta(e,t,r){return e&&e.length&&t&&t.length?Zn(e,t,bi(r,2)):e}function Ia(e,t,r){return e&&e.length&&t&&t.length?Zn(e,t,te,r):e}function Pa(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],i=e.length;for(t=bi(t,3);++n<i;){var a=e[n];t(a,n,e)&&(r.push(a),o.push(n))}return eo(e,o),r}function Na(e){return null==e?e:Ju.call(e)}function Oa(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&Ri(e,t,r)?(t=0,r=n):(t=null==t?0:xc(t),r=r===te?n:xc(r)),lo(e,t,r)):[]}function ka(e,t){return po(e,t)}function La(e,t,r){return ho(e,t,bi(r,2))}function Da(e,t){var r=null==e?0:e.length;if(r){var n=po(e,t);if(n<r&&Ks(e[n],t))return n}return-1}function Ma(e,t){return po(e,t,!0)}function Ra(e,t,r){return ho(e,t,bi(r,2),!0)}function ja(e,t){var r=null==e?0:e.length;if(r){var n=po(e,t,!0)-1;if(Ks(e[n],t))return n}return-1}function Fa(e){return e&&e.length?fo(e):[]}function Ha(e,t){return e&&e.length?fo(e,bi(t,2)):[]}function Ua(e){var t=null==e?0:e.length;return t?lo(e,1,t):[]}function Ba(e,t,r){return e&&e.length?(t=r||t===te?1:xc(t),lo(e,0,t<0?0:t)):[]}function Va(e,t,r){var n=null==e?0:e.length;return n?(t=r||t===te?1:xc(t),t=n-t,lo(e,t<0?0:t,n)):[]}function Wa(e,t){return e&&e.length?Eo(e,bi(t,3),!1,!0):[]}function Ga(e,t){return e&&e.length?Eo(e,bi(t,3)):[]}function qa(e){return e&&e.length?vo(e):[]}function za(e,t){return e&&e.length?vo(e,bi(t,2)):[]}function Ka(e,t){return t="function"==typeof t?t:te,e&&e.length?vo(e,te,t):[]}function $a(e){if(!e||!e.length)return[];var t=0;return e=s(e,function(e){if(Xs(e))return t=Ku(e.length,t),!0}),I(t,function(t){return u(e,w(t))})}function Xa(e,t){if(!e||!e.length)return[];var n=$a(e);return null==t?n:u(n,function(e){return r(t,te,e)})}function Ya(e,t){return wo(e||[],t||[],Pr)}function Qa(e,t){return wo(e||[],t||[],so)}function Ja(e){var r=t(e);return r.__chain__=!0,r}function Za(e,t){return t(e),e}function es(e,t){return t(e)}function ts(){return Ja(this)}function rs(){return new x(this.value(),this.__chain__)}function ns(){this.__values__===te&&(this.__values__=bc(this.value()));var e=this.__index__>=this.__values__.length,t=e?te:this.__values__[this.__index__++];return{done:e,value:t}}function os(){return this}function is(e){for(var t,r=this;r instanceof m;){var n=oa(r);n.__index__=0,n.__values__=te,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t}function as(){var e=this.__wrapped__;if(e instanceof K){var t=e;return this.__actions__.length&&(t=new K(this)),t=t.reverse(),t.__actions__.push({func:es,args:[Na],thisArg:te}),new x(t,this.__chain__)}return this.thru(Na)}function ss(){return So(this.__wrapped__,this.__actions__)}function cs(e,t,r){var n=yh(e)?a:Gr;return r&&Ri(e,t,r)&&(t=te),n(e,bi(t,3))}function ls(e,t){var r=yh(e)?s:Qr;return r(e,bi(t,3))}function us(e,t){return Jr(gs(e,t),1)}function ps(e,t){return Jr(gs(e,t),ke)}function hs(e,t,r){return r=r===te?1:xc(r),Jr(gs(e,t),r)}function ds(e,t){var r=yh(e)?o:gp;return r(e,bi(t,3))}function fs(e,t){var r=yh(e)?i:vp;return r(e,bi(t,3))}function ms(e,t,r,n){e=$s(e)?e:tl(e),r=r&&!n?xc(r):0;var o=e.length;return r<0&&(r=Ku(o+r,0)),vc(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&_(e,t,r)>-1}function gs(e,t){var r=yh(e)?u:Wn;return r(e,bi(t,3))}function vs(e,t,r,n){return null==e?[]:(yh(t)||(t=null==t?[]:[t]),r=n?te:r,yh(r)||(r=null==r?[]:[r]),Xn(e,t,r))}function ys(e,t,r){var n=yh(e)?h:C,o=arguments.length<3;return n(e,bi(t,4),r,o,gp)}function _s(e,t,r){var n=yh(e)?d:C,o=arguments.length<3;return n(e,bi(t,4),r,o,vp)}function Es(e,t){var r=yh(e)?s:Qr;return r(e,Ds(bi(t,3)))}function Ss(e){var t=yh(e)?Cr:io;return t(e)}function bs(e,t,r){t=(r?Ri(e,t,r):t===te)?1:xc(t);var n=yh(e)?Ar:ao;return n(e,t)}function ws(e){var t=yh(e)?Tr:co;return t(e)}function xs(e){if(null==e)return 0;if($s(e))return vc(e)?X(e):e.length;var t=Ip(e);return t==Xe||t==rt?e.size:Un(e).length}function Cs(e,t,r){var n=yh(e)?f:uo;return r&&Ri(e,t,r)&&(t=te),n(e,bi(t,3))}function As(e,t){if("function"!=typeof t)throw new hu(ie);return e=xc(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ts(e,t,r){return t=r?te:t,t=e&&null==t?e.length:t,ui(e,be,te,te,te,te,t)}function Is(e,t){var r;if("function"!=typeof t)throw new hu(ie);return e=xc(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=te),r}}function Ps(e,t,r){t=r?te:t;var n=ui(e,ye,te,te,te,te,te,t);return n.placeholder=Ps.placeholder,n}function Ns(e,t,r){t=r?te:t;var n=ui(e,_e,te,te,te,te,te,t);return n.placeholder=Ns.placeholder,n}function Os(e,t,r){function n(t){var r=h,n=d;return h=d=te,y=t,m=e.apply(n,r)}function o(e){return y=e,g=Op(s,t),_?n(e):m}function i(e){var r=e-v,n=e-y,o=t-r;return E?$u(o,f-n):o}function a(e){var r=e-v,n=e-y;return v===te||r>=t||r<0||E&&n>=f}function s(){var e=ah();return a(e)?c(e):void(g=Op(s,i(e)))}function c(e){return g=te,S&&h?n(e):(h=d=te,m)}function l(){g!==te&&wp(g),y=0,h=v=d=g=te}function u(){return g===te?m:c(ah())}function p(){var e=ah(),r=a(e);if(h=arguments,d=this,v=e,r){if(g===te)return o(v);if(E)return wp(g),g=Op(s,t),n(v)}return g===te&&(g=Op(s,t)),
m}var h,d,f,m,g,v,y=0,_=!1,E=!1,S=!0;if("function"!=typeof e)throw new hu(ie);return t=Ac(t)||0,ac(r)&&(_=!!r.leading,E="maxWait"in r,f=E?Ku(Ac(r.maxWait)||0,t):f,S="trailing"in r?!!r.trailing:S),p.cancel=l,p.flush=u,p}function ks(e){return ui(e,xe)}function Ls(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new hu(ie);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Ls.Cache||lr),r}function Ds(e){if("function"!=typeof e)throw new hu(ie);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ms(e){return Is(2,e)}function Rs(e,t){if("function"!=typeof e)throw new hu(ie);return t=t===te?t:xc(t),oo(e,t)}function js(e,t){if("function"!=typeof e)throw new hu(ie);return t=null==t?0:Ku(xc(t),0),oo(function(n){var o=n[t],i=To(n,0,t);return o&&p(i,o),r(e,this,i)})}function Fs(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new hu(ie);return ac(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Os(e,t,{leading:n,maxWait:t,trailing:o})}function Hs(e){return Ts(e,1)}function Us(e,t){return hh(Co(t),e)}function Bs(){if(!arguments.length)return[];var e=arguments[0];return yh(e)?e:[e]}function Vs(e){return jr(e,he)}function Ws(e,t){return t="function"==typeof t?t:te,jr(e,he,t)}function Gs(e){return jr(e,ue|he)}function qs(e,t){return t="function"==typeof t?t:te,jr(e,ue|he,t)}function zs(e,t){return null==t||Br(e,t,Vc(t))}function Ks(e,t){return e===t||e!==e&&t!==t}function $s(e){return null!=e&&ic(e.length)&&!nc(e)}function Xs(e){return sc(e)&&$s(e)}function Ys(e){return e===!0||e===!1||sc(e)&&ln(e)==We}function Qs(e){return sc(e)&&1===e.nodeType&&!mc(e)}function Js(e){if(null==e)return!0;if($s(e)&&(yh(e)||"string"==typeof e||"function"==typeof e.splice||Eh(e)||Ch(e)||vh(e)))return!e.length;var t=Ip(e);if(t==Xe||t==rt)return!e.size;if(Bi(e))return!Un(e).length;for(var r in e)if(yu.call(e,r))return!1;return!0}function Zs(e,t){return On(e,t)}function ec(e,t,r){r="function"==typeof r?r:te;var n=r?r(e,t):te;return n===te?On(e,t,te,r):!!n}function tc(e){if(!sc(e))return!1;var t=ln(e);return t==ze||t==qe||"string"==typeof e.message&&"string"==typeof e.name&&!mc(e)}function rc(e){return"number"==typeof e&&Gu(e)}function nc(e){if(!ac(e))return!1;var t=ln(e);return t==Ke||t==$e||t==Ve||t==et}function oc(e){return"number"==typeof e&&e==xc(e)}function ic(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Le}function ac(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function sc(e){return null!=e&&"object"==typeof e}function cc(e,t){return e===t||Dn(e,t,xi(t))}function lc(e,t,r){return r="function"==typeof r?r:te,Dn(e,t,xi(t),r)}function uc(e){return fc(e)&&e!=+e}function pc(e){if(Pp(e))throw new au(oe);return Mn(e)}function hc(e){return null===e}function dc(e){return null==e}function fc(e){return"number"==typeof e||sc(e)&&ln(e)==Ye}function mc(e){if(!sc(e)||ln(e)!=Je)return!1;var t=Pu(e);if(null===t)return!0;var r=yu.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&vu.call(r)==bu}function gc(e){return oc(e)&&e>=-Le&&e<=Le}function vc(e){return"string"==typeof e||!yh(e)&&sc(e)&&ln(e)==nt}function yc(e){return"symbol"==typeof e||sc(e)&&ln(e)==ot}function _c(e){return e===te}function Ec(e){return sc(e)&&Ip(e)==at}function Sc(e){return sc(e)&&ln(e)==st}function bc(e){if(!e)return[];if($s(e))return vc(e)?Y(e):Fo(e);if(Du&&e[Du])return B(e[Du]());var t=Ip(e),r=t==Xe?V:t==rt?q:tl;return r(e)}function wc(e){if(!e)return 0===e?e:0;if(e=Ac(e),e===ke||e===-ke){var t=e<0?-1:1;return t*De}return e===e?e:0}function xc(e){var t=wc(e),r=t%1;return t===t?r?t-r:t:0}function Cc(e){return e?Rr(xc(e),0,Re):0}function Ac(e){if("number"==typeof e)return e;if(yc(e))return Me;if(ac(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ac(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=N(e);var r=qt.test(e);return r||Kt.test(e)?en(e.slice(2),r?2:8):Gt.test(e)?Me:+e}function Tc(e){return Ho(e,Wc(e))}function Ic(e){return e?Rr(xc(e),-Le,Le):0===e?e:0}function Pc(e){return null==e?"":go(e)}function Nc(e,t){var r=mp(e);return null==t?r:kr(r,t)}function Oc(e,t){return v(e,bi(t,3),tn)}function kc(e,t){return v(e,bi(t,3),rn)}function Lc(e,t){return null==e?e:yp(e,bi(t,3),Wc)}function Dc(e,t){return null==e?e:_p(e,bi(t,3),Wc)}function Mc(e,t){return e&&tn(e,bi(t,3))}function Rc(e,t){return e&&rn(e,bi(t,3))}function jc(e){return null==e?[]:on(e,Vc(e))}function Fc(e){return null==e?[]:on(e,Wc(e))}function Hc(e,t,r){var n=null==e?te:an(e,t);return n===te?r:n}function Uc(e,t){return null!=e&&Pi(e,t,En)}function Bc(e,t){return null!=e&&Pi(e,t,wn)}function Vc(e){return $s(e)?xr(e):Un(e)}function Wc(e){return $s(e)?xr(e,!0):Bn(e)}function Gc(e,t){var r={};return t=bi(t,3),tn(e,function(e,n,o){Dr(r,t(e,n,o),e)}),r}function qc(e,t){var r={};return t=bi(t,3),tn(e,function(e,n,o){Dr(r,n,t(e,n,o))}),r}function zc(e,t){return Kc(e,Ds(bi(t)))}function Kc(e,t){if(null==e)return{};var r=u(_i(e),function(e){return[e]});return t=bi(t),Qn(e,r,function(e,r){return t(e,r[0])})}function $c(e,t,r){t=Ao(t,e);var n=-1,o=t.length;for(o||(o=1,e=te);++n<o;){var i=null==e?te:e[ta(t[n])];i===te&&(n=o,i=r),e=nc(i)?i.call(e):i}return e}function Xc(e,t,r){return null==e?e:so(e,t,r)}function Yc(e,t,r,n){return n="function"==typeof n?n:te,null==e?e:so(e,t,r,n)}function Qc(e,t,r){var n=yh(e),i=n||Eh(e)||Ch(e);if(t=bi(t,4),null==r){var a=e&&e.constructor;r=i?n?new a:[]:ac(e)&&nc(a)?mp(Pu(e)):{}}return(i?o:tn)(e,function(e,n,o){return t(r,e,n,o)}),r}function Jc(e,t){return null==e||yo(e,t)}function Zc(e,t,r){return null==e?e:_o(e,t,Co(r))}function el(e,t,r,n){return n="function"==typeof n?n:te,null==e?e:_o(e,t,Co(r),n)}function tl(e){return null==e?[]:k(e,Vc(e))}function rl(e){return null==e?[]:k(e,Wc(e))}function nl(e,t,r){return r===te&&(r=t,t=te),r!==te&&(r=Ac(r),r=r===r?r:0),t!==te&&(t=Ac(t),t=t===t?t:0),Rr(Ac(e),t,r)}function ol(e,t,r){return t=wc(t),r===te?(r=t,t=0):r=wc(r),e=Ac(e),xn(e,t,r)}function il(e,t,r){if(r&&"boolean"!=typeof r&&Ri(e,t,r)&&(t=r=te),r===te&&("boolean"==typeof t?(r=t,t=te):"boolean"==typeof e&&(r=e,e=te)),e===te&&t===te?(e=0,t=1):(e=wc(e),t===te?(t=e,e=0):t=wc(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var o=Qu();return $u(e+o*(t-e+Zr("1e-"+((o+"").length-1))),t)}return to(e,t)}function al(e){return Qh(Pc(e).toLowerCase())}function sl(e){return e=Pc(e),e&&e.replace(Xt,vn).replace(Ur,"")}function cl(e,t,r){e=Pc(e),t=go(t);var n=e.length;r=r===te?n:Rr(xc(r),0,n);var o=r;return r-=t.length,r>=0&&e.slice(r,o)==t}function ll(e){return e=Pc(e),e&&Ct.test(e)?e.replace(wt,yn):e}function ul(e){return e=Pc(e),e&&Lt.test(e)?e.replace(kt,"\\$&"):e}function pl(e,t,r){e=Pc(e),t=xc(t);var n=t?X(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return ni(Bu(o),r)+e+ni(Uu(o),r)}function hl(e,t,r){e=Pc(e),t=xc(t);var n=t?X(e):0;return t&&n<t?e+ni(t-n,r):e}function dl(e,t,r){e=Pc(e),t=xc(t);var n=t?X(e):0;return t&&n<t?ni(t-n,r)+e:e}function fl(e,t,r){return r||null==t?t=0:t&&(t=+t),Yu(Pc(e).replace(Dt,""),t||0)}function ml(e,t,r){return t=(r?Ri(e,t,r):t===te)?1:xc(t),no(Pc(e),t)}function gl(){var e=arguments,t=Pc(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function vl(e,t,r){return r&&"number"!=typeof r&&Ri(e,t,r)&&(t=r=te),(r=r===te?Re:r>>>0)?(e=Pc(e),e&&("string"==typeof t||null!=t&&!wh(t))&&(t=go(t),!t&&H(e))?To(Y(e),0,r):e.split(t,r)):[]}function yl(e,t,r){return e=Pc(e),r=null==r?0:Rr(xc(r),0,e.length),t=go(t),e.slice(r,r+t.length)==t}function _l(e,r,n){var o=t.templateSettings;n&&Ri(e,r,n)&&(r=te),e=Pc(e),r=Nh({},r,o,pi);var i,a,s=Nh({},r.imports,o.imports,pi),c=Vc(s),l=k(s,c),u=0,p=r.interpolate||Yt,h="__p += '",d=uu((r.escape||Yt).source+"|"+p.source+"|"+(p===It?Vt:Yt).source+"|"+(r.evaluate||Yt).source+"|$","g"),f="//# sourceURL="+(yu.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zr+"]")+"\n";e.replace(d,function(t,r,n,o,s,c){return n||(n=o),h+=e.slice(u,c).replace(Qt,j),r&&(i=!0,h+="' +\n__e("+r+") +\n'"),s&&(a=!0,h+="';\n"+s+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=c+t.length,t}),h+="';\n";var m=yu.call(r,"variable")&&r.variable;if(m){if(Ut.test(m))throw new au(ae)}else h="with (obj) {\n"+h+"\n}\n";h=(a?h.replace(_t,""):h).replace(Et,"$1").replace(St,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Jh(function(){return su(c,f+"return "+h).apply(te,l)});if(g.source=h,tc(g))throw g;return g}function El(e){return Pc(e).toLowerCase()}function Sl(e){return Pc(e).toUpperCase()}function bl(e,t,r){if(e=Pc(e),e&&(r||t===te))return N(e);if(!e||!(t=go(t)))return e;var n=Y(e),o=Y(t),i=D(n,o),a=M(n,o)+1;return To(n,i,a).join("")}function wl(e,t,r){if(e=Pc(e),e&&(r||t===te))return e.slice(0,Q(e)+1);if(!e||!(t=go(t)))return e;var n=Y(e),o=M(n,Y(t))+1;return To(n,0,o).join("")}function xl(e,t,r){if(e=Pc(e),e&&(r||t===te))return e.replace(Dt,"");if(!e||!(t=go(t)))return e;var n=Y(e),o=D(n,Y(t));return To(n,o).join("")}function Cl(e,t){var r=Ce,n=Ae;if(ac(t)){var o="separator"in t?t.separator:o;r="length"in t?xc(t.length):r,n="omission"in t?go(t.omission):n}e=Pc(e);var i=e.length;if(H(e)){var a=Y(e);i=a.length}if(r>=i)return e;var s=r-X(n);if(s<1)return n;var c=a?To(a,0,s).join(""):e.slice(0,s);if(o===te)return c+n;if(a&&(s+=c.length-s),wh(o)){if(e.slice(s).search(o)){var l,u=c;for(o.global||(o=uu(o.source,Pc(Wt.exec(o))+"g")),o.lastIndex=0;l=o.exec(u);)var p=l.index;c=c.slice(0,p===te?s:p)}}else if(e.indexOf(go(o),s)!=s){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+n}function Al(e){return e=Pc(e),e&&xt.test(e)?e.replace(bt,_n):e}function Tl(e,t,r){return e=Pc(e),t=r?te:t,t===te?U(e)?ee(e):g(e):e.match(t)||[]}function Il(e){var t=null==e?0:e.length,n=bi();return e=t?u(e,function(e){if("function"!=typeof e[1])throw new hu(ie);return[n(e[0]),e[1]]}):[],oo(function(n){for(var o=-1;++o<t;){var i=e[o];if(r(i[0],this,n))return r(i[1],this,n)}})}function Pl(e){return Fr(jr(e,ue))}function Nl(e){return function(){return e}}function Ol(e,t){return null==e||e!==e?t:e}function kl(e){return e}function Ll(e){return Hn("function"==typeof e?e:jr(e,ue))}function Dl(e){return Gn(jr(e,ue))}function Ml(e,t){return qn(e,jr(t,ue))}function Rl(e,t,r){var n=Vc(t),i=on(t,n);null!=r||ac(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=on(t,Vc(t)));var a=!(ac(r)&&"chain"in r&&!r.chain),s=nc(e);return o(i,function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(a||t){var r=e(this.__wrapped__),o=r.__actions__=Fo(this.__actions__);return o.push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,p([this.value()],arguments))})}),e}function jl(){return nn._===this&&(nn._=wu),this}function Fl(){}function Hl(e){return e=xc(e),oo(function(t){return $n(t,e)})}function Ul(e){return ji(e)?w(ta(e)):Jn(e)}function Bl(e){return function(t){return null==e?te:an(e,t)}}function Vl(){return[]}function Wl(){return!1}function Gl(){return{}}function ql(){return""}function zl(){return!0}function Kl(e,t){if(e=xc(e),e<1||e>Le)return[];var r=Re,n=$u(e,Re);t=bi(t),e-=Re;for(var o=I(n,t);++r<e;)t(r);return o}function $l(e){return yh(e)?u(e,ta):yc(e)?[e]:Fo(Lp(Pc(e)))}function Xl(e){var t=++_u;return Pc(e)+t}function Yl(e){return e&&e.length?Xr(e,kl,gn):te}function Ql(e,t){return e&&e.length?Xr(e,bi(t,2),gn):te}function Jl(e){return b(e,kl)}function Zl(e,t){return b(e,bi(t,2))}function eu(e){return e&&e.length?Xr(e,kl,Vn):te}function tu(e,t){return e&&e.length?Xr(e,bi(t,2),Vn):te}function ru(e){return e&&e.length?T(e,kl):0}function nu(e,t){return e&&e.length?T(e,bi(t,2)):0}e=null==e?nn:Sn.defaults(nn.Object(),e,Sn.pick(nn,qr));var ou=e.Array,iu=e.Date,au=e.Error,su=e.Function,cu=e.Math,lu=e.Object,uu=e.RegExp,pu=e.String,hu=e.TypeError,du=ou.prototype,fu=su.prototype,mu=lu.prototype,gu=e["__core-js_shared__"],vu=fu.toString,yu=mu.hasOwnProperty,_u=0,Eu=function(){var e=/[^.]+$/.exec(gu&&gu.keys&&gu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Su=mu.toString,bu=vu.call(lu),wu=nn._,xu=uu("^"+vu.call(yu).replace(kt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Cu=sn?e.Buffer:te,Au=e.Symbol,Tu=e.Uint8Array,Iu=Cu?Cu.allocUnsafe:te,Pu=W(lu.getPrototypeOf,lu),Nu=lu.create,Ou=mu.propertyIsEnumerable,ku=du.splice,Lu=Au?Au.isConcatSpreadable:te,Du=Au?Au.iterator:te,Mu=Au?Au.toStringTag:te,Ru=function(){try{var e=Ci(lu,"defineProperty");return e({},"",{}),e}catch(t){}}(),ju=e.clearTimeout!==nn.clearTimeout&&e.clearTimeout,Fu=iu&&iu.now!==nn.Date.now&&iu.now,Hu=e.setTimeout!==nn.setTimeout&&e.setTimeout,Uu=cu.ceil,Bu=cu.floor,Vu=lu.getOwnPropertySymbols,Wu=Cu?Cu.isBuffer:te,Gu=e.isFinite,qu=du.join,zu=W(lu.keys,lu),Ku=cu.max,$u=cu.min,Xu=iu.now,Yu=e.parseInt,Qu=cu.random,Ju=du.reverse,Zu=Ci(e,"DataView"),ep=Ci(e,"Map"),tp=Ci(e,"Promise"),rp=Ci(e,"Set"),np=Ci(e,"WeakMap"),op=Ci(lu,"create"),ip=np&&new np,ap={},sp=ra(Zu),cp=ra(ep),lp=ra(tp),up=ra(rp),pp=ra(np),hp=Au?Au.prototype:te,dp=hp?hp.valueOf:te,fp=hp?hp.toString:te,mp=function(){function e(){}return function(t){if(!ac(t))return{};if(Nu)return Nu(t);e.prototype=t;var r=new e;return e.prototype=te,r}}();t.templateSettings={escape:At,evaluate:Tt,interpolate:It,variable:"",imports:{_:t}},t.prototype=m.prototype,t.prototype.constructor=t,x.prototype=mp(m.prototype),x.prototype.constructor=x,K.prototype=mp(m.prototype),K.prototype.constructor=K,Ht.prototype.clear=Jt,Ht.prototype["delete"]=Zt,Ht.prototype.get=er,Ht.prototype.has=tr,Ht.prototype.set=rr,nr.prototype.clear=or,nr.prototype["delete"]=ir,nr.prototype.get=ar,nr.prototype.has=sr,nr.prototype.set=cr,lr.prototype.clear=ur,lr.prototype["delete"]=pr,lr.prototype.get=hr,lr.prototype.has=dr,lr.prototype.set=fr,mr.prototype.add=mr.prototype.push=gr,mr.prototype.has=vr,yr.prototype.clear=_r,yr.prototype["delete"]=Er,yr.prototype.get=Sr,yr.prototype.has=br,yr.prototype.set=wr;var gp=Go(tn),vp=Go(rn,!0),yp=qo(),_p=qo(!0),Ep=ip?function(e,t){return ip.set(e,t),e}:kl,Sp=Ru?function(e,t){return Ru(e,"toString",{configurable:!0,enumerable:!1,value:Nl(t),writable:!0})}:kl,bp=oo,wp=ju||function(e){return nn.clearTimeout(e)},xp=rp&&1/q(new rp([,-0]))[1]==ke?function(e){return new rp(e)}:Fl,Cp=ip?function(e){return ip.get(e)}:Fl,Ap=Vu?function(e){return null==e?[]:(e=lu(e),s(Vu(e),function(t){return Ou.call(e,t)}))}:Vl,Tp=Vu?function(e){for(var t=[];e;)p(t,Ap(e)),e=Pu(e);return t}:Vl,Ip=ln;(Zu&&Ip(new Zu(new ArrayBuffer(1)))!=lt||ep&&Ip(new ep)!=Xe||tp&&Ip(tp.resolve())!=Ze||rp&&Ip(new rp)!=rt||np&&Ip(new np)!=at)&&(Ip=function(e){var t=ln(e),r=t==Je?e.constructor:te,n=r?ra(r):"";if(n)switch(n){case sp:return lt;case cp:return Xe;case lp:return Ze;case up:return rt;case pp:return at}return t});var Pp=gu?nc:Wl,Np=Zi(Ep),Op=Hu||function(e,t){return nn.setTimeout(e,t)},kp=Zi(Sp),Lp=Gi(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ot,function(e,r,n,o){t.push(n?o.replace(Bt,"$1"):r||e)}),t}),Dp=oo(function(e,t){return Xs(e)?Wr(e,Jr(t,1,Xs,!0)):[]}),Mp=oo(function(e,t){var r=wa(t);return Xs(r)&&(r=te),Xs(e)?Wr(e,Jr(t,1,Xs,!0),bi(r,2)):[]}),Rp=oo(function(e,t){var r=wa(t);return Xs(r)&&(r=te),Xs(e)?Wr(e,Jr(t,1,Xs,!0),te,r):[]}),jp=oo(function(e){var t=u(e,xo);return t.length&&t[0]===e[0]?Cn(t):[]}),Fp=oo(function(e){var t=wa(e),r=u(e,xo);return t===wa(r)?t=te:r.pop(),r.length&&r[0]===e[0]?Cn(r,bi(t,2)):[]}),Hp=oo(function(e){var t=wa(e),r=u(e,xo);return t="function"==typeof t?t:te,t&&r.pop(),r.length&&r[0]===e[0]?Cn(r,te,t):[]}),Up=oo(Aa),Bp=vi(function(e,t){var r=null==e?0:e.length,n=Mr(e,t);return eo(e,u(t,function(e){return Mi(e,r)?+e:e}).sort(Do)),n}),Vp=oo(function(e){return vo(Jr(e,1,Xs,!0))}),Wp=oo(function(e){var t=wa(e);return Xs(t)&&(t=te),vo(Jr(e,1,Xs,!0),bi(t,2))}),Gp=oo(function(e){var t=wa(e);return t="function"==typeof t?t:te,vo(Jr(e,1,Xs,!0),te,t)}),qp=oo(function(e,t){return Xs(e)?Wr(e,t):[]}),zp=oo(function(e){return bo(s(e,Xs))}),Kp=oo(function(e){var t=wa(e);return Xs(t)&&(t=te),bo(s(e,Xs),bi(t,2))}),$p=oo(function(e){var t=wa(e);return t="function"==typeof t?t:te,bo(s(e,Xs),te,t)}),Xp=oo($a),Yp=oo(function(e){var t=e.length,r=t>1?e[t-1]:te;return r="function"==typeof r?(e.pop(),r):te,Xa(e,r)}),Qp=vi(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return Mr(t,e)};return!(t>1||this.__actions__.length)&&n instanceof K&&Mi(r)?(n=n.slice(r,+r+(t?1:0)),n.__actions__.push({func:es,args:[o],thisArg:te}),new x(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(te),e})):this.thru(o)}),Jp=Vo(function(e,t,r){yu.call(e,r)?++e[r]:Dr(e,r,1)}),Zp=Qo(da),eh=Qo(fa),th=Vo(function(e,t,r){yu.call(e,r)?e[r].push(t):Dr(e,r,[t])}),rh=oo(function(e,t,n){var o=-1,i="function"==typeof t,a=$s(e)?ou(e.length):[];return gp(e,function(e){a[++o]=i?r(t,e,n):Tn(e,t,n)}),a}),nh=Vo(function(e,t,r){Dr(e,r,t)}),oh=Vo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),ih=oo(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Ri(e,t[0],t[1])?t=[]:r>2&&Ri(t[0],t[1],t[2])&&(t=[t[0]]),Xn(e,Jr(t,1),[])}),ah=Fu||function(){return nn.Date.now()},sh=oo(function(e,t,r){var n=me;if(r.length){var o=G(r,Si(sh));n|=Ee}return ui(e,n,t,r,o)}),ch=oo(function(e,t,r){var n=me|ge;if(r.length){var o=G(r,Si(ch));n|=Ee}return ui(t,n,e,r,o)}),lh=oo(function(e,t){return Vr(e,1,t)}),uh=oo(function(e,t,r){return Vr(e,Ac(t)||0,r)});Ls.Cache=lr;var ph=bp(function(e,t){t=1==t.length&&yh(t[0])?u(t[0],O(bi())):u(Jr(t,1),O(bi()));var n=t.length;return oo(function(o){for(var i=-1,a=$u(o.length,n);++i<a;)o[i]=t[i].call(this,o[i]);return r(e,this,o)})}),hh=oo(function(e,t){var r=G(t,Si(hh));return ui(e,Ee,te,t,r)}),dh=oo(function(e,t){var r=G(t,Si(dh));return ui(e,Se,te,t,r)}),fh=vi(function(e,t){return ui(e,we,te,te,te,t)}),mh=ai(gn),gh=ai(function(e,t){return e>=t}),vh=In(function(){return arguments}())?In:function(e){return sc(e)&&yu.call(e,"callee")&&!Ou.call(e,"callee")},yh=ou.isArray,_h=un?O(un):Pn,Eh=Wu||Wl,Sh=pn?O(pn):Nn,bh=hn?O(hn):Ln,wh=dn?O(dn):Rn,xh=fn?O(fn):jn,Ch=mn?O(mn):Fn,Ah=ai(Vn),Th=ai(function(e,t){return e<=t}),Ih=Wo(function(e,t){if(Bi(t)||$s(t))return void Ho(t,Vc(t),e);for(var r in t)yu.call(t,r)&&Pr(e,r,t[r])}),Ph=Wo(function(e,t){Ho(t,Wc(t),e)}),Nh=Wo(function(e,t,r,n){Ho(t,Wc(t),e,n)}),Oh=Wo(function(e,t,r,n){Ho(t,Vc(t),e,n)}),kh=vi(Mr),Lh=oo(function(e,t){e=lu(e);var r=-1,n=t.length,o=n>2?t[2]:te;for(o&&Ri(t[0],t[1],o)&&(n=1);++r<n;)for(var i=t[r],a=Wc(i),s=-1,c=a.length;++s<c;){var l=a[s],u=e[l];(u===te||Ks(u,mu[l])&&!yu.call(e,l))&&(e[l]=i[l])}return e}),Dh=oo(function(e){return e.push(te,hi),r(Hh,te,e)}),Mh=ei(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Su.call(t)),e[t]=r},Nl(kl)),Rh=ei(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Su.call(t)),yu.call(e,t)?e[t].push(r):e[t]=[r]},bi),jh=oo(Tn),Fh=Wo(function(e,t,r){zn(e,t,r)}),Hh=Wo(function(e,t,r,n){zn(e,t,r,n)}),Uh=vi(function(e,t){var r={};if(null==e)return r;var n=!1;t=u(t,function(t){return t=Ao(t,e),n||(n=t.length>1),t}),Ho(e,_i(e),r),n&&(r=jr(r,ue|pe|he,di));for(var o=t.length;o--;)yo(r,t[o]);return r}),Bh=vi(function(e,t){return null==e?{}:Yn(e,t)}),Vh=li(Vc),Wh=li(Wc),Gh=$o(function(e,t,r){return t=t.toLowerCase(),e+(r?al(t):t)}),qh=$o(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),zh=$o(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Kh=Ko("toLowerCase"),$h=$o(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),Xh=$o(function(e,t,r){return e+(r?" ":"")+Qh(t)}),Yh=$o(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Qh=Ko("toUpperCase"),Jh=oo(function(e,t){try{return r(e,te,t)}catch(n){return tc(n)?n:new au(n)}}),Zh=vi(function(e,t){return o(t,function(t){t=ta(t),Dr(e,t,sh(e[t],e))}),e}),ed=Jo(),td=Jo(!0),rd=oo(function(e,t){return function(r){return Tn(r,e,t)}}),nd=oo(function(e,t){return function(r){return Tn(e,r,t)}}),od=ri(u),id=ri(a),ad=ri(f),sd=ii(),cd=ii(!0),ld=ti(function(e,t){return e+t},0),ud=ci("ceil"),pd=ti(function(e,t){return e/t},1),hd=ci("floor"),dd=ti(function(e,t){return e*t},1),fd=ci("round"),md=ti(function(e,t){return e-t},0);return t.after=As,t.ary=Ts,t.assign=Ih,t.assignIn=Ph,t.assignInWith=Nh,t.assignWith=Oh,t.at=kh,t.before=Is,t.bind=sh,t.bindAll=Zh,t.bindKey=ch,t.castArray=Bs,t.chain=Ja,t.chunk=ia,t.compact=aa,t.concat=sa,t.cond=Il,t.conforms=Pl,t.constant=Nl,t.countBy=Jp,t.create=Nc,t.curry=Ps,t.curryRight=Ns,t.debounce=Os,t.defaults=Lh,t.defaultsDeep=Dh,t.defer=lh,t.delay=uh,t.difference=Dp,t.differenceBy=Mp,t.differenceWith=Rp,t.drop=ca,t.dropRight=la,t.dropRightWhile=ua,t.dropWhile=pa,t.fill=ha,t.filter=ls,t.flatMap=us,t.flatMapDeep=ps,t.flatMapDepth=hs,t.flatten=ma,t.flattenDeep=ga,t.flattenDepth=va,t.flip=ks,t.flow=ed,t.flowRight=td,t.fromPairs=ya,t.functions=jc,t.functionsIn=Fc,t.groupBy=th,t.initial=Sa,t.intersection=jp,t.intersectionBy=Fp,t.intersectionWith=Hp,t.invert=Mh,t.invertBy=Rh,t.invokeMap=rh,t.iteratee=Ll,t.keyBy=nh,t.keys=Vc,t.keysIn=Wc,t.map=gs,t.mapKeys=Gc,t.mapValues=qc,t.matches=Dl,t.matchesProperty=Ml,t.memoize=Ls,t.merge=Fh,t.mergeWith=Hh,t.method=rd,t.methodOf=nd,t.mixin=Rl,t.negate=Ds,t.nthArg=Hl,t.omit=Uh,t.omitBy=zc,t.once=Ms,t.orderBy=vs,t.over=od,t.overArgs=ph,t.overEvery=id,t.overSome=ad,t.partial=hh,t.partialRight=dh,t.partition=oh,t.pick=Bh,t.pickBy=Kc,t.property=Ul,t.propertyOf=Bl,t.pull=Up,t.pullAll=Aa,t.pullAllBy=Ta,t.pullAllWith=Ia,t.pullAt=Bp,t.range=sd,t.rangeRight=cd,t.rearg=fh,t.reject=Es,t.remove=Pa,t.rest=Rs,t.reverse=Na,t.sampleSize=bs,t.set=Xc,t.setWith=Yc,t.shuffle=ws,t.slice=Oa,t.sortBy=ih,t.sortedUniq=Fa,t.sortedUniqBy=Ha,t.split=vl,t.spread=js,t.tail=Ua,t.take=Ba,t.takeRight=Va,t.takeRightWhile=Wa,t.takeWhile=Ga,t.tap=Za,t.throttle=Fs,t.thru=es,t.toArray=bc,t.toPairs=Vh,t.toPairsIn=Wh,t.toPath=$l,t.toPlainObject=Tc,t.transform=Qc,t.unary=Hs,t.union=Vp,t.unionBy=Wp,t.unionWith=Gp,t.uniq=qa,t.uniqBy=za,t.uniqWith=Ka,t.unset=Jc,t.unzip=$a,t.unzipWith=Xa,t.update=Zc,t.updateWith=el,t.values=tl,t.valuesIn=rl,t.without=qp,t.words=Tl,t.wrap=Us,t.xor=zp,t.xorBy=Kp,t.xorWith=$p,t.zip=Xp,t.zipObject=Ya,t.zipObjectDeep=Qa,t.zipWith=Yp,t.entries=Vh,t.entriesIn=Wh,t.extend=Ph,t.extendWith=Nh,Rl(t,t),t.add=ld,t.attempt=Jh,t.camelCase=Gh,t.capitalize=al,t.ceil=ud,t.clamp=nl,t.clone=Vs,t.cloneDeep=Gs,t.cloneDeepWith=qs,t.cloneWith=Ws,t.conformsTo=zs,t.deburr=sl,t.defaultTo=Ol,t.divide=pd,t.endsWith=cl,t.eq=Ks,t.escape=ll,t.escapeRegExp=ul,t.every=cs,t.find=Zp,t.findIndex=da,t.findKey=Oc,t.findLast=eh,t.findLastIndex=fa,t.findLastKey=kc,t.floor=hd,t.forEach=ds,t.forEachRight=fs,t.forIn=Lc,t.forInRight=Dc,t.forOwn=Mc,t.forOwnRight=Rc,t.get=Hc,t.gt=mh,t.gte=gh,t.has=Uc,t.hasIn=Bc,t.head=_a,t.identity=kl,t.includes=ms,t.indexOf=Ea,t.inRange=ol,t.invoke=jh,t.isArguments=vh,t.isArray=yh,t.isArrayBuffer=_h,t.isArrayLike=$s,t.isArrayLikeObject=Xs,t.isBoolean=Ys,t.isBuffer=Eh,t.isDate=Sh,t.isElement=Qs,t.isEmpty=Js,t.isEqual=Zs,t.isEqualWith=ec,t.isError=tc,t.isFinite=rc,t.isFunction=nc,t.isInteger=oc,t.isLength=ic,t.isMap=bh,t.isMatch=cc,t.isMatchWith=lc,t.isNaN=uc,t.isNative=pc,t.isNil=dc,t.isNull=hc,t.isNumber=fc,t.isObject=ac,t.isObjectLike=sc,t.isPlainObject=mc,t.isRegExp=wh,t.isSafeInteger=gc,t.isSet=xh,t.isString=vc,t.isSymbol=yc,t.isTypedArray=Ch,t.isUndefined=_c,t.isWeakMap=Ec,t.isWeakSet=Sc,t.join=ba,t.kebabCase=qh,t.last=wa,t.lastIndexOf=xa,t.lowerCase=zh,t.lowerFirst=Kh,t.lt=Ah,t.lte=Th,t.max=Yl,t.maxBy=Ql,t.mean=Jl,t.meanBy=Zl,t.min=eu,t.minBy=tu,t.stubArray=Vl,t.stubFalse=Wl,t.stubObject=Gl,t.stubString=ql,t.stubTrue=zl,t.multiply=dd,t.nth=Ca,t.noConflict=jl,t.noop=Fl,t.now=ah,t.pad=pl,t.padEnd=hl,t.padStart=dl,t.parseInt=fl,t.random=il,t.reduce=ys,t.reduceRight=_s,t.repeat=ml,t.replace=gl,t.result=$c,t.round=fd,t.runInContext=bn,t.sample=Ss,t.size=xs,t.snakeCase=$h,t.some=Cs,t.sortedIndex=ka,t.sortedIndexBy=La,t.sortedIndexOf=Da,t.sortedLastIndex=Ma,t.sortedLastIndexBy=Ra,t.sortedLastIndexOf=ja,t.startCase=Xh,t.startsWith=yl,t.subtract=md,t.sum=ru,t.sumBy=nu,t.template=_l,t.times=Kl,t.toFinite=wc,t.toInteger=xc,t.toLength=Cc,t.toLower=El,t.toNumber=Ac,t.toSafeInteger=Ic,t.toString=Pc,t.toUpper=Sl,t.trim=bl,t.trimEnd=wl,t.trimStart=xl,t.truncate=Cl,t.unescape=Al,t.uniqueId=Xl,t.upperCase=Yh,t.upperFirst=Qh,t.each=ds,t.eachRight=fs,t.first=_a,Rl(t,function(){var e={};return tn(t,function(r,n){yu.call(t.prototype,n)||(e[n]=r)}),e}(),{chain:!1}),t.VERSION=re,o(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){t[e].placeholder=t}),o(["drop","take"],function(e,t){K.prototype[e]=function(r){r=r===te?1:Ku(xc(r),0);var n=this.__filtered__&&!t?new K(this):this.clone();return n.__filtered__?n.__takeCount__=$u(r,n.__takeCount__):n.__views__.push({size:$u(r,Re),type:e+(n.__dir__<0?"Right":"")}),n},K.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),o(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==Pe||r==Oe;K.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:bi(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),o(["head","last"],function(e,t){var r="take"+(t?"Right":"");K.prototype[e]=function(){return this[r](1).value()[0]}}),o(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");K.prototype[e]=function(){return this.__filtered__?new K(this):this[r](1)}}),K.prototype.compact=function(){return this.filter(kl)},K.prototype.find=function(e){return this.filter(e).head()},K.prototype.findLast=function(e){return this.reverse().find(e)},K.prototype.invokeMap=oo(function(e,t){return"function"==typeof e?new K(this):this.map(function(r){return Tn(r,e,t)})}),K.prototype.reject=function(e){return this.filter(Ds(bi(e)))},K.prototype.slice=function(e,t){e=xc(e);var r=this;return r.__filtered__&&(e>0||t<0)?new K(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==te&&(t=xc(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},K.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},K.prototype.toArray=function(){return this.take(Re)},tn(K.prototype,function(e,r){var n=/^(?:filter|find|map|reject)|While$/.test(r),o=/^(?:head|last)$/.test(r),i=t[o?"take"+("last"==r?"Right":""):r],a=o||/^find/.test(r);i&&(t.prototype[r]=function(){var r=this.__wrapped__,s=o?[1]:arguments,c=r instanceof K,l=s[0],u=c||yh(r),h=function(e){var r=i.apply(t,p([e],s));return o&&d?r[0]:r};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var d=this.__chain__,f=!!this.__actions__.length,m=a&&!d,g=c&&!f;if(!a&&u){r=g?r:new K(this);var v=e.apply(r,s);return v.__actions__.push({func:es,args:[h],thisArg:te}),new x(v,d)}return m&&g?e.apply(this,s):(v=this.thru(h),m?o?v.value()[0]:v.value():v)})}),o(["pop","push","shift","sort","splice","unshift"],function(e){var r=du[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);t.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var t=this.value();return r.apply(yh(t)?t:[],e)}return this[n](function(t){return r.apply(yh(t)?t:[],e)})}}),tn(K.prototype,function(e,r){var n=t[r];if(n){var o=n.name+"";yu.call(ap,o)||(ap[o]=[]),ap[o].push({name:r,func:n})}}),ap[Zo(te,ge).name]=[{name:"wrapper",func:te}],K.prototype.clone=J,K.prototype.reverse=Z,K.prototype.value=Mt,t.prototype.at=Qp,t.prototype.chain=ts,t.prototype.commit=rs,t.prototype.next=ns,t.prototype.plant=is,t.prototype.reverse=as,t.prototype.toJSON=t.prototype.valueOf=t.prototype.value=ss,t.prototype.first=t.prototype.head,Du&&(t.prototype[Du]=os),t},Sn=En();an?((an.exports=Sn)._=Sn,on._=Sn):nn._=Sn}).call(ic)}),ng=function(e){function t(t,r){var n=e.call(this)||this;return n._methodCallInstrumentation=new tg(t.message),n._locationAccessorsInstrumentation=new kd(r),n._propertyAccessorsInstrumentation=new eg,n}return m(t,e),t.prototype.attach=function(r){var n=this;e.prototype.attach.call(this,r),this._methodCallInstrumentation.attach(r),this._locationAccessorsInstrumentation.attach(r),this._propertyAccessorsInstrumentation.attach(r),Xc.objectDefineProperty(r,$u.getEval,{value:function(e){if(e!==r.eval)return e;var n=function(t){return"string"==typeof t&&(t=zi(t)),e(t)};return Xc.objectDefineProperty(n,t.WRAPPED_EVAL_FN,{value:e}),n},configurable:!0}),Xc.objectDefineProperty(r,$u.processScript,{value:function(e,t){if(t){if(e&&e.length&&"string"==typeof e[0]){for(var r=[zi(e[0],!1)],n=1;n<e.length;n++)r.push(e[n]);return r}}else if("string"==typeof e)return zi(e,!1);return e},configurable:!0}),Xc.objectDefineProperty(r,$u.processHtml,{value:function(e,t){return"string"==typeof t&&(t=ca("<html><body>".concat(t,"</body></html>"),{processedContext:e})),t},configurable:!0}),Xc.objectDefineProperty(r,$u.getProxyUrl,{value:function(e,t){var r=wl.getBaseUrl(n.document),o=t&&t!==r;o&&wl.updateBase(t,n.document);var i=Dl(e,{resourceType:He({isScript:!0})});return o&&wl.updateBase(r,n.document),i},configurable:!0}),Xc.objectDefineProperty(r,$u.restArray,{value:function(e,t){return Xc.arraySlice.call(e,t)},configurable:!0}),Xc.objectDefineProperty(r,$u.arrayFrom,{value:function(e){if(!e)return e;var t=!Xc.isArray.call(Xc.Array,e)&&rg.isFunction(e[Symbol.iterator]);return t?Xc.arrayFrom.call(Xc.Array,e):e},configurable:!0}),Xc.objectDefineProperty(r,$u.restObject,{value:function(e,t){for(var r={},n=Xc.objectKeys(e),o=0,i=n;o<i.length;o++){var a=i[o];t.indexOf(a)<0&&(r[a]=e[a])}return r},configurable:!0})},t.WRAPPED_EVAL_FN="hammerhead|code-instrumentation|wrapped-eval-fn",t}(Ou),og=36,ig="=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",ag=8,sg=/(?:^([^=]+)=([\s\S]*))?/,cg={server:"s",client:"c",window:"w"},lg=new RegExp("^[".concat(cg.server).concat(cg.client).concat(cg.window,"]+")),ug=Object.freeze({__proto__:null,SYNCHRONIZATION_TYPE:cg,parseClientSyncCookieStr:As,prepareSyncCookieProperties:Ts,formatSyncCookie:Is,parseSyncCookie:Ps,changeSyncType:Ns,isOutdatedSyncCookie:Os,generateDeleteSyncCookieStr:ks}),pg=null,hg="hammerhead|command|sync-cookie-start",dg="hammerhead|command|sync-cookie-done",fg=500,mg=5,gg=function(){function e(e,t,r){this._cookieSandbox=e,this._messageSandbox=t,this._childWindowSandbox=r,this._win=null,this._messageIdGenerator=null,this._resolversMap=new Map}return e._getCookieSandbox=function(e){try{var t=e[vc.hammerhead].sandbox.cookie;return t.document&&t}catch(r){return null}},e.prototype._onMsgReceived=function(e){var t=this,r=e.message,n=e.source;if(r.cmd===hg)this._cookieSandbox.syncWindowCookie(r.cookies),this._win!==this._win.top?this._messageSandbox.sendServiceMsg({id:r.id,cmd:dg},n):this._win!==Ls()?this.syncBetweenWindows(r.cookies,n).then(function(){return t._messageSandbox.sendServiceMsg({id:r.id,cmd:dg},n)}):this.syncBetweenWindows(r.cookies,n);else if(r.cmd===dg){var o=this._resolversMap.get(r.id);o&&o()}},e.prototype._getWindowsForSync=function(e,t,r){void 0===r&&(r=[]),t!==e&&t!==this._win.top&&r.push(t);for(var n=0,o=t.frames;n<o.length;n++){var i=o[n];this._getWindowsForSync(e,i,r)}return r},e.prototype._sendSyncMessage=function(e,t,r){var n=this,o=this._messageIdGenerator.increment(),i=0;return new mc(function(a){var s=null,c=function(){Xc.clearTimeout.call(n._win,s),n._resolversMap["delete"](o),a()},l=function(){i++<mg||!e.parent?(n._messageSandbox.sendServiceMsg({id:o,cmd:t,cookies:r},e),s=Xc.setTimeout.call(n._win,l,fg*i)):c()};n._resolversMap.set(o,c),l()})},e.prototype._delegateSyncBetweenWindowsToMainTopWindow=function(t){var r=Ls(),n=e._getCookieSandbox(r);n?(n.syncWindowCookie(t),n.getWindowSync().syncBetweenWindows(t,this._win)):this._messageSandbox.sendServiceMsg({cmd:hg,cookies:t},r)},e.prototype._removeSyncCookie=function(e){for(var t=this._win.document,r=e[0].isClientSync&&Xc.documentCookieGetter.call(t),n=0,o=e;n<o.length;n++){var i=o[n];Xc.documentCookieSetter.call(t,ks(i))}var a=e[0];r&&Ag.isSyncCookieExists(a,r)&&(Ns(a,{window:!1}),Xc.documentCookieSetter.call(t,Is(a)))},e.prototype.syncBetweenWindows=function(t,r){
var n=this,o=Ls();if(this._win!==this._win.top||this._win!==o&&!r)return this._delegateSyncBetweenWindowsToMainTopWindow(t),mc.resolve();var i=this._getWindowsForSync(r,this._win),a=[];if(this._win===o)for(var s=0,c=this._childWindowSandbox.getChildWindows();s<c.length;s++){var l=c[s],u=e._getCookieSandbox(l);u?a.push(u.getWindowSync().syncBetweenWindows(t,this._win)):a.push(this._sendSyncMessage(l,hg,t))}for(var p=0,h=i;p<h.length;p++){var l=h[p],u=e._getCookieSandbox(l);u?u.syncWindowCookie(t):a.push(this._sendSyncMessage(l,hg,t))}if(a.length){var d=mc.all(a);return this._win===o?d.then(function(){return n._removeSyncCookie(t)}):d.then()}return this._removeSyncCookie(t),mc.resolve()},e.prototype.attach=function(e){var t=this;this._win=e,this._messageSandbox.on(this._messageSandbox.SERVICE_MSG_RECEIVED_EVENT,function(e){return t._onMsgReceived(e)}),e===e.top&&(this._messageIdGenerator=this._messageIdGenerator||new Cd,this._resolversMap=this._resolversMap||new Map)},e}(),vg=/^((?:=)?([^=;]*)\s*=\s*)?([^\n\r\0]*)/,yg=/;+$/,_g=/((?:\s|,)[0-9]{1,2})(?:\s|-)([A-Za-z]{3})(?:\s|-)([0-9]{4}\s)/,Eg=Object.freeze({__proto__:null,parse:Ds,formatClientString:Ms,setDefaultValues:Rs,domainMatch:js,pathMatch:Fs,getUTCDate:Hs}),Sg=4096,bg=new Xc.date(0).toUTCString(),wg=function(){function e(){}return e.create=function(e,t,r){return e?new xg:new Cg(t,r)},e}(),xg=function(){function e(){}return e.prototype.getCookie=function(){return""},e.prototype.setCookie=function(){},e.prototype.syncCookie=function(){},e.prototype.syncWindowCookie=function(){},e.prototype.removeAllSyncCookie=function(){},e}(),Cg=function(){function e(e,t){this.document=null,this.document=e,this._windowSync=t}return e.prototype.getCookie=function(){return this.syncCookie(!0),Cl.get().cookie||""},e.prototype.setCookie=function(e){var t="string"==typeof e;if(this._canSetCookie(e,t)){var r=t?Ds(e):e;if(r&&!r.httpOnly){var n=ye();if(js(n.hostname,r.domain)){if((!r.secure||"https:"===n.protocol)&&Fs(n.pathname,r.path)){var o=Hs(),i=null;(!r.expires||"Infinity"===r.expires||r.expires>o)&&(P(r.maxAge)||isNaN(r.maxAge)||r.maxAge>0)&&(i=Ms(r)),Ag._updateClientCookieStr(r.key,i)}t&&(Rs(r,n),this._syncClientCookie(r),this.syncCookie())}}}},e.prototype.syncCookie=function(e){void 0===e&&(e=!1);for(var t=Xc.documentCookieGetter.call(this.document),r=As(t),n=Cl.get().sessionId,o=[],i=0,a=r.outdated;i<a.length;i++){var s=a[i];Xc.documentCookieSetter.call(this.document,ks(s))}for(var c=0,l=r.actual;c<l.length;c++){var u=l[c];if(u.sid===n)if(u.isServerSync)o.push(u);else if(u.isWindowSync)this.setCookie(u);else if(e&&u.isClientSync){var p=Hs(),h=!P(u.maxAge)&&Number(u.maxAge),d=Number(u.expires);(!isNaN(h)&&N(h)&&1e3*h<=p.getTime()-u.lastAccessed.getTime()||!isNaN(d)&&N(d)&&d<p.getTime())&&(Xc.documentCookieSetter.call(this.document,ks(u)),Ag._updateClientCookieStr(u.key,null))}}o.length&&this._syncServerCookie(o)},e.prototype._syncServerCookie=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];this.setCookie(n),Xc.documentCookieSetter.call(this.document,ks(n)),Ns(n,{server:!1,window:!0}),Xc.documentCookieSetter.call(this.document,Is(n))}this._windowSync.syncBetweenWindows(e)},e.prototype.syncWindowCookie=function(e){for(var t=Xc.documentCookieGetter.call(this.document),r=0,n=e;r<n.length;r++){var o=n[r];Ag.isSyncCookieExists(o,t)&&this.setCookie(o)}},e.prototype.removeAllSyncCookie=function(){for(var e=Xc.documentCookieGetter.call(this.document),t=As(e),r=Cl.get().sessionId,n=0,o=t.outdated;n<o.length;n++){var i=o[n];Xc.documentCookieSetter.call(this.document,ks(i))}for(var a=0,s=t.actual;a<s.length;a++){var c=s[a];c.sid===r&&(c.isWindowSync||c.isServerSync)&&(Xc.documentCookieSetter.call(this.document,ks(c)),c.isClientSync&&(Ns(c,{window:!1}),Xc.documentCookieSetter.call(this.document,Is(c))))}},e.prototype._canSetCookie=function(e,t){if(t&&(e.length>Sg||"file:"===ye().protocol))return!1;var r="key".concat(Xc.mathRandom.call(Xc.math),"=value");Xc.documentCookieSetter.call(this.document,r);var n=!Xc.documentCookieGetter.call(this.document);return n||Xc.documentCookieSetter.call(this.document,"".concat(r,";expires=").concat(bg)),!n},e.prototype._syncClientCookie=function(e){e.isClientSync=!0,e.isWindowSync=!0,e.sid=Cl.get().sessionId,e.lastAccessed=Hs(),Ts(e),Xc.documentCookieSetter.call(this.document,Is(e)),this._windowSync.syncBetweenWindows([e])},e}(),Ag=function(e){function t(t,r,n){var o=e.call(this)||this;return o._unloadSandbox=r,o._windowSync=new gg(o,t,n),o}return m(t,e),t._updateClientCookieStr=function(e,t){for(var r=Cl.get().cookie,n=r?r.split(";"):[],o=[],i=!1,a=""===e?null:e+"=",s=0,c=n;s<c.length;s++){var l=c[s];l=k(l);var u=a?0===l.indexOf(a):l.indexOf("=")===-1;u?null!==t&&(o.push(t),i=!0):o.push(l)}i||null===t||o.push(t),Cl.get().cookie=o.join("; ")},t.isSyncCookieExists=function(e,t){var r=t.indexOf(e.cookieStr),n=r+e.cookieStr.length;return r>-1&&(t.length===n||";"===t.charAt(n))},t.prototype.attach=function(t){e.prototype.attach.call(this,t),this._windowSync.attach(t),this._cookieStrategy=wg.create(this.proxyless,this.document,this._windowSync),t===Ls()&&this._unloadSandbox.on(this._unloadSandbox.UNLOAD_EVENT,this._cookieStrategy.removeAllSyncCookie)},t.prototype.getWindowSync=function(){return this._windowSync},t.prototype.getCookie=function(){return this._cookieStrategy.getCookie()},t.prototype.setCookie=function(e){this._cookieStrategy.setCookie(e)},t.prototype.syncCookie=function(){this._cookieStrategy.syncCookie()},t.prototype.syncWindowCookie=function(e){this._cookieStrategy.syncWindowCookie(e)},t}(Ou),Tg="hammerhead|editing-observed",Ig="hammerhead|previous-value",Pg=function(){function e(e){var t=this;this._eventSimulator=e,this._onChange=function(e){return t.stopWatching(Xc.eventTargetGetter.call(e))},this._onBlur=function(e){var r=Xc.eventTargetGetter.call(e);t.processElementChanging(r)||t.stopWatching(r)}}return e._getValue=function(e){return tr(e)?Xc.inputValueGetter.call(e):gr(e)?Xc.textAreaValueGetter.call(e):e.value},e.prototype.stopWatching=function(e){e&&(Xc.removeEventListener.call(e,"blur",this._onBlur),Xc.removeEventListener.call(e,"change",this._onChange),void 0!==e[Tg]&&delete e[Tg],void 0!==e[Ig]&&delete e[Ig])},e.prototype.watchElementEditing=function(t){var r;t&&!t[Tg]&&Wr(t)&&!Or(t)&&(Xc.objectDefineProperties(t,(r={},r[Tg]={value:!0,configurable:!0,writable:!0},r[Ig]={value:e._getValue(t),configurable:!0,writable:!0},r)),Xc.addEventListener.call(t,"blur",this._onBlur),Xc.addEventListener.call(t,"change",this._onChange))},e.prototype.restartWatchingElementEditing=function(t){t&&t[Tg]&&(t[Ig]=e._getValue(t))},e.prototype.processElementChanging=function(t){return!(!t||!t[Tg]||e._getValue(t)===t[Ig])&&(this._eventSimulator.change(t),this.restartWatchingElementEditing(t),!0)},e.prototype.getElementSavedValue=function(e){return e[Ig]},e.prototype.isEditingObserved=function(e){return e[Tg]},e}(),Ng="hammerhead|event|window-activated",Og="hammerhead|event|window-deactivated",kg=function(e){function t(t){var r=e.call(this)||this;return r._messageSandbox=t,r._isIframeWindow=!1,r._activeWindow=null,r._isActive=!1,r}return m(t,e),t.prototype._notifyPrevActiveWindow=function(){try{this._activeWindow.top&&this._activeWindow!==this._activeWindow.top&&this._messageSandbox.sendServiceMsg({cmd:Og},this._activeWindow)}catch(e){}},t.prototype.attach=function(t){var r=this;e.prototype.attach.call(this,t),this._isIframeWindow=Vt(t),this._activeWindow=this._isIframeWindow?null:t.top,this._isActive=!this._isIframeWindow,this._messageSandbox.on(this._messageSandbox.SERVICE_MSG_RECEIVED_EVENT,function(e){e.message.cmd===Ng?(r._notifyPrevActiveWindow(),r._isActive=!1,r._activeWindow=e.source):e.message.cmd===Og&&(r._isActive=!1)})},t.prototype.isCurrentWindowActive=function(){return this._isActive},t.prototype.makeCurrentWindowActive=function(){this._isActive=!0,this._isIframeWindow?this._messageSandbox.sendServiceMsg({cmd:Ng},this.window.top):(this._notifyPrevActiveWindow(),this._activeWindow=this.window)},t}(Ou),Lg="hammerhead|event|internal-",Dg=Bc,Mg={bubbles:{focus:"focusin",blur:"focusout"},nonBubbles:{focusin:"focus",focusout:"blur"}},Rg=function(e){function t(t,r,n,o,i){var a=e.call(this)||this;return a._listeners=t,a._eventSimulator=r,a._timersSandbox=o,a._topWindow=null,a._lastFocusedElement=null,a._scrollState={},a._activeWindowTracker=new kg(n),a._elementEditingWatcher=i,a}return m(t,e),t._getNativeMeth=function(e,t){if(Rr(e)){if("focus"===t)return Xc.svgFocus;if("blur"===t)return Xc.svgBlur}return Xc[t]},t._restoreElementScroll=function(e,t){var r=nt(e);r.left!==t.left&&dt(e,t.left),r.top!==t.top&&ft(e,t.top)},t.prototype._onChangeActiveElement=function(e){this._lastFocusedElement!==e&&(this._lastFocusedElement&&Xc.getAttribute.call(this._lastFocusedElement,Qc.focusPseudoClass)&&Xc.removeAttribute.call(this._lastFocusedElement,Qc.focusPseudoClass),!Nr(e)||sr(e)&&null===Ir(e)?this._lastFocusedElement=null:(this._lastFocusedElement=e,Xc.setAttribute.call(e,Qc.focusPseudoClass,!0)))},t.prototype._shouldUseLabelHtmlForElement=function(e,t){return"focus"===t&&!!e.htmlFor&&!Nr(e)},t.prototype._getElementNonScrollableParentsScrollState=function(e){for(var t=[],r=hn(e),n=0,o=r;n<o.length;n++){var i=o[n];"hidden"===Ke(i,"overflow")&&t.push({element:i,state:nt(i)})}return t},t.prototype._restoreElementNonScrollableParentsScrollState=function(e){for(var r=0,n=e;r<n.length;r++){var o=n[r];t._restoreElementScroll(o.element,o.state)}},t.prototype._saveScrollStateIfNecessary=function(e,t){t&&(this._scrollState.windowScroll=nt(this.window)),Mc&&(this._scrollState.elementNonScrollableParentsScrollState=this._getElementNonScrollableParentsScrollState(e))},t.prototype._restoreScrollStateIfNecessary=function(e){e&&t._restoreElementScroll(this.window,this._scrollState.windowScroll),Mc&&this._restoreElementNonScrollableParentsScrollState(this._scrollState.elementNonScrollableParentsScrollState)},t.prototype._restoreScrollStateAndRaiseEvent=function(e,t,r,n,o){this._restoreScrollStateIfNecessary(n.preventScrolling);var i=Ft(e),a=At(i),s=Xc.nodeParentNodeGetter.call(e),c=s===document?null:sn(s,"[tabindex]");if("focus"===t&&a!==e&&c&&n.forMouseEvent){var l=Wc||Vc||Mc;this._raiseEvent(c,"focus",o,{preventScrolling:l,forMouseEvent:n.forMouseEvent})}else"blur"===t&&a===e&&e!==i.body?this._raiseEvent(i.body,"focus",o,{withoutHandlers:!0}):Pr(e)?r():o()},t.prototype._raiseEvent=function(e,r,n,o){var i=this,a=function(){if(Mc&&kc<12?i.window.setTimeout(function(){i.window.setTimeout(function(){delete e[t.getInternalEventFlag(r)]},0)},0):delete e[t.getInternalEventFlag(r)],o.withoutHandlers){if("focus"===r&&Dg){var a=function(e,t,r,n,o){n(),o()};i._listeners.addInternalEventBeforeListener(window,["focus"],a),i._eventSimulator.focus(e,o.relatedTarget),i._listeners.removeInternalEventBeforeListener(window,["focus"],a)}}else{var s=Mg.bubbles[r],c=Rc||Uc&&kc<17&&"blur"===r;o.isAsync?(i._eventSimulator[s](e,o.relatedTarget),i._timersSandbox.deferFunction(function(){return i._eventSimulator[r](e,o.relatedTarget)})):c?(i._eventSimulator[s](e,o.relatedTarget),i._eventSimulator[r](e,o.relatedTarget)):(i._eventSimulator[r](e,o.relatedTarget),i._eventSimulator[s](e,o.relatedTarget))}n()};if(e[r]){if(this._saveScrollStateIfNecessary(e,o.preventScrolling),mr(e)&&this._shouldUseLabelHtmlForElement(e,r)){var s=Xc.getElementById.call(Ft(e),e.htmlFor);if(!s)return void n();e=s}e[t.getInternalEventFlag(r)]=!0,o.focusedOnChange||t._getNativeMeth(e,r).call(e),Vc&&parseFloat(Lc)>=15&&o.preventScrolling?Us().then(function(){i._restoreScrollStateAndRaiseEvent(e,r,n,o,a)}):this._restoreScrollStateAndRaiseEvent(e,r,n,o,a)}else a()},t.getInternalEventFlag=function(e){return Lg+e},t.getNonBubblesEventType=function(e){return Mg.nonBubbles[e]},t.prototype.attach=function(t){var r=this;e.prototype.attach.call(this,t),this._activeWindowTracker.attach(t),this._topWindow=Bt(t,t.top)?t:t.top,this._listeners.addInternalEventBeforeListener(t,["focus","blur"],function(){var e=At(r.document);r._onChangeActiveElement(e)})},t.prototype._raiseSelectionChange=function(e,t){Uc&&t&&Vr(t)&&this._eventSimulator.selectionchange(t),O(e)&&e()},t.prototype.focus=function(e,t,r,n,o,i){var a=this,s=!o||Wc||!yt(e),c=(e[vc.processedContext]||this.window).document;if(!c.defaultView)return null;if(!s||o&&!vt(e,c))return null;var l=$t(e),u=l?It(e):null,p=Ft(e),h=sr(e),d=At(),f=Ft(d),m=!1,g=!1,v=!1,y=Ht(e),_=this._activeWindowTracker.isCurrentWindowActive();m=d===e?!(h&&y&&!_):h&&!(y||Mc);var E=!1,S=function(){_||Or(e)||a._activeWindowTracker.makeCurrentWindowActive();var o={withoutHandlers:m||r,isAsync:E,forMouseEvent:n,preventScrolling:i,relatedTarget:d};a._raiseEvent(e,"focus",function(){r||a._elementEditingWatcher.watchElementEditing(e),l&&u&&At(a._topWindow.document)!==u?a._raiseEvent(u,"focus",function(){return a._raiseSelectionChange(t,e)},{withoutHandlers:!0,isAsync:E}):a._raiseSelectionChange(t,e)},o)};if(o&&Mc){if((this._eventSimulator.isSavedWindowsEventsExists()||kc>10)&&this.window.event&&"focus"===this.window.event.type&&this.window.event.srcElement===e)return this._raiseSelectionChange(t,e),null;kc<12&&(E=!0)}return d&&d.tagName&&(d!==e&&(p!==f&&d===f.body?g=!1:d===p.body?!r&&Mc&&(E?this._timersSandbox.setTimeout.call(this.window,function(){return a._eventSimulator.blur(d)},0):this._eventSimulator.blur(d)):Nr(e)&&(g=!0)),v=p!==f&&$t(d,f)),v&&!g?Mc?(this._eventSimulator.blur(It(d)),S()):this.blur(It(d),S,!0,o):g?this.blur(d,function(e){v?a.blur(It(d),S,!0,o):e?O(t)&&t():S()},r,o,e):S(),null},t.prototype.blur=function(e,t,r,n,o){var i=Ft(e),a=At(i),s=n&&Mc&&kc<12;a!==e&&(r=!0);var c=!1;if(!r){var l=function(t){c=Xc.eventTargetGetter.call(t)===e};Dg&&this._listeners.addInternalEventBeforeListener(window,["focus"],l),this._elementEditingWatcher.processElementChanging(e),Dg&&this._listeners.removeInternalEventBeforeListener(window,["focus"],l),this._elementEditingWatcher.stopWatching(e)}var u={withoutHandlers:r,isAsync:s,relatedTarget:o,focusedOnChange:c};this._raiseEvent(e,"blur",function(){O(t)&&t(c)},u)},t.prototype.dispose=function(){this._lastFocusedElement=null},t}(Ou),jg=function(e){function t(t){var r=e.call(this)||this;return r._listeners=t,r._hoverElementFixed=!1,r._lastHoveredElement=null,r}return m(t,e),t._setHoverMarker=function(e,t){for(t&&Xc.setAttribute.call(t,Qc.hoverPseudoClass,"");e&&e.tagName&&e!==t;){Xc.setAttribute.call(e,Qc.hoverPseudoClass,"");var r=Sn(e);r&&Xc.setAttribute.call(r,Qc.hoverPseudoClass,""),e=Xc.nodeParentNodeGetter.call(e)}},t.prototype._clearHoverMarkerUntilJointParent=function(e){var t=null;if(this._lastHoveredElement){for(var r=this._lastHoveredElement;r&&r.tagName&&r.contains;){var n=Sn(r);if(n&&Xc.removeAttribute.call(n,Qc.hoverPseudoClass),r.contains(e)){t=r;break}Xc.removeAttribute.call(r,Qc.hoverPseudoClass),r=Xc.nodeParentNodeGetter.call(r)}t&&Xc.removeAttribute.call(t,Qc.hoverPseudoClass)}return t},t.prototype._onHover=function(e){var t=Xc.eventTargetGetter.call(e),r=e.clientX,n=e.clientY,o=Mc&&Va(t,r,n);o||this._hover(t)},t.prototype._hover=function(e){if(!this._hoverElementFixed&&!Or(e)){var r=this._clearHoverMarkerUntilJointParent(e);t._setHoverMarker(e,r),this._lastHoveredElement=e}},t.prototype.fixHoveredElement=function(){this._hoverElementFixed=!0},t.prototype.freeHoveredElement=function(){this._hoverElementFixed=!1},t.prototype.attach=function(t){var r=this;e.prototype.attach.call(this,t),this._listeners.addInternalEventBeforeListener(t,["mouseover","touchstart"],function(e){return r._onHover(e)})},t.prototype.dispose=function(){this._lastHoveredElement=null},t}(Ou),Fg=function(){function e(e){this.focusBlurSandbox=e.focusBlur,this.timersSandbox=e.timers,this.listeners=e.listeners,this.eventSimulator=e.eventSimulator;var t=this,r=this.eventSimulator,n=this.listeners,o=this.timersSandbox;this.setSelectionRangeWrapper=function(){var e=arguments[0],n=arguments[1],o=arguments[2]||"none",i=this,a=gr(i)?Xc.textAreaSetSelectionRange:Xc.setSelectionRange,s=At(Ft(i)),c=Ft(i),l=!1,u=function(){var s,c=En(i),u=i.type;c&&i.setAttribute("type","text");try{s=a.call(i,e,n,o)}catch(p){s=a.call(i,0,0,o)}return c&&(i[vc.selection]={selectionStart:i.selectionStart,selectionEnd:i.selectionEnd,selectionDirection:i.selectionDirection},i.setAttribute("type",u),l&&(t.focusBlurSandbox.blur(i,null,!0),t.focusBlurSandbox.focus(i,null,!0),At(Ft(i))!==i&&t.focusBlurSandbox.focus(i,null,!0))),Uc&&r.selectionchange(i),s};if(s===i)return l=!0,u();var p=Rc||Uc&&(17===kc&&!c.hasFocus()||kc>17);return t.wrapSetterSelection(i,u,p)},this.selectWrapper=function(){var e=this.parentElement();if(!e||At(Ft(e))===e)return Xc.select.call(this);var t=null,i=!1,a=function(t){Xc.eventTargetGetter.call(t)!==e&&"none"!==e.style.display||(i=!0)};return n.addInternalEventBeforeListener(document,["focus"],a),t=Xc.select.call(this),o.setTimeout.call(window,function(){o.setTimeout.call(window,function(){n.removeInternalEventBeforeListener(document,["focus"],a),i||r.focus(e)},0)},0),t}}return e.prototype.setSelection=function(e,t,r,n){e.setSelectionRange?e.setSelectionRange(t,r,n):(e.selectionStart=t,e.selectionEnd=r)},e.prototype.getSelection=function(e){var t=e[vc.selection];return{start:t?t.selectionStart:e.selectionStart,end:t?t.selectionEnd:e.selectionEnd,direction:t?t.selectionDirection:e.selectionDirection}},e.prototype.wrapSetterSelection=function(e,t,r,n){var o=this,i=Ft(e),a=At(i),s=null,c=!1;r=r&&a!==e;var l=function(t){Xc.eventTargetGetter.call(t)!==e&&"none"!==e.style.display||(c=!0)};return r&&this.listeners.addInternalEventBeforeListener(document,["focus"],l),Mm.beforeDispatchEvent(e),Mm.beforeDispatchEvent(e),s=t(),Mm.afterDispatchEvent(e),Mm.afterDispatchEvent(e),r&&(a=At(i),a!==e&&(Wc||Uc&&kc>17)&&(c&&(e[Rg.getInternalEventFlag("focus")]=!0),e.focus()),Rc?this.timersSandbox.setTimeout.call(window,function(){o.timersSandbox.setTimeout.call(window,function(){o.listeners.removeInternalEventBeforeListener(document,["focus"],l),c||o.eventSimulator.focus(e)},0)},0):(this.listeners.removeInternalEventBeforeListener(document,["focus"],l),c||(n&&Hc?this.focusBlurSandbox.focus(e,null,!0,!1,!0):this.eventSimulator.focus(e)))),s},e}(),Hg={string:"string",file:"file"},Ug=function(){function e(e,t,r){Xc.objectDefineProperty(this,"kind",{enumerable:!0,get:function(){return e}}),Xc.objectDefineProperty(this,"type",{enumerable:!0,get:function(){return t}}),Xc.objectDefineProperty(this,"getAsString",{configurable:!0,enumerable:!0,get:function(){return function(t){if(!arguments.length)throw new Error("Failed to execute 'getAsString' on 'DataTransferItem': 1 argument required, but only 0 present.");O(t)&&e===Hg.string&&Xc.setTimeout.call(window,function(){return t(r)},0)}}}),Xc.objectDefineProperty(this,"getAsFile",{configurable:!0,enumerable:!0,get:function(){return function(){return e!==Hg.file?null:r}}})}return e}();Xc.DataTransferItem&&(Ug.prototype=Xc.DataTransferItem.prototype);var Bg={readwrite:"readwrite",readonly:"readonly","protected":"protected"},Vg=function(){function e(e){var t=this,r=[],n=[],o=function(){for(var e=[],t=0,n=r;t<n.length;t++){var o=n[t];e.push(o.type)}return e},i=function(){for(var e=0;void 0!==r[e]||void 0!==t[e];){var n=r[e];Xc.objectDefineProperty(t,e,{enumerable:void 0!==n,configurable:!0,value:n}),e++}},a=function(e){var t=!1;e=Vs(e),"url"===e&&(t=!0);for(var o="",i=0;i<r.length;i++)r[i].type===e&&(o=n[i]);return t&&o&&(o=Bs(o)[0]),o},s=function(e){e=Vs(e);for(var t=0;t<r.length;t++)if(r[t].type===e){r.splice(t,1),n.splice(t,1);break}i()},c=function(e,t,o){var c=null;if("string"==typeof e){var l=t.toString().toLowerCase(),u=a(l);if(!o&&u)throw new Error("Failed to execute 'add' on 'DataTransferItemList': An item already exists for type '".concat(l,"'."));u&&s(l),c=new Ug(Hg.string,Vs(t),e)}else c=new Ug(Hg.file,null,e);return r.push(c),n.push(e),i(),c};this.getAndHideInternalMethods=function(){var e={getTypes:o,getItemData:a,removeItem:s,addItem:c};return delete t.getAndHideInternalMethods,e},Xc.objectDefineProperty(this,"length",{enumerable:!0,get:function(){return r.length}}),Xc.objectDefineProperty(this,"remove",{configurable:!0,enumerable:!0,get:function(){return function(t){e.mode===Bg.readwrite&&(r.splice(t,1),n.splice(t,1),i())}}}),Xc.objectDefineProperty(this,"clear",{configurable:!0,enumerable:!0,get:function(){return function(){e.mode===Bg.readwrite&&(r=[],n=[],i())}}}),Xc.objectDefineProperty(this,"add",{configurable:!0,enumerable:!0,get:function(){return function(t,r){if(!arguments.length)throw new Error("Failed to execute 'add' on 'DataTransferItemList': 1 argument required, but only 0 present.");if(1===arguments.length&&"string"==typeof t)throw new Error("Failed to execute 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.");if(e.mode===Bg.readwrite)return c(t,r,!1)}}})}return e}();Xc.DataTransferItemList&&(Vg.prototype=Xc.DataTransferItemList.prototype);var Wg=function(){function e(){Xc.objectDefineProperty(this,"length",{enumerable:!0,get:function(){return 0}}),Xc.objectDefineProperty(this,"item",{enumerable:!0,get:function(){return function(){}}})}return e}();Xc.FileList&&(Wg.prototype=Xc.FileList.prototype);var Gg={none:"none",copy:"copy",link:"link",move:"move"},qg={uninitialized:"uninitialized",none:"none",copy:"copy",copyLink:"copyLink",copyMove:"copyMove",link:"link",linkMove:"linkMove",move:"move",all:"all"},zg=function(){function e(e){var t=Gg.none,r=qg.uninitialized,n=new Vg(e),o=n.getAndHideInternalMethods(),i=new Wg,a=new Vg(e),s=a.getAndHideInternalMethods(),c=function(){return e.mode===Bg["protected"]?a:n},l=function(){return e.mode===Bg["protected"]?s:o};Xc.objectDefineProperty(this,"dropEffect",{configurable:!0,enumerable:!0,get:function(){return t},set:function(e){return Gg[e]&&(t=Gg[e]),e}}),Xc.objectDefineProperty(this,"effectAllowed",{configurable:!0,enumerable:!0,get:function(){return r},set:function(e){return qg[e]&&(r=qg[e]),e}}),Rc||Xc.objectDefineProperty(this,"items",{configurable:!0,enumerable:!0,get:c}),Xc.objectDefineProperty(this,"types",{configurable:!0,enumerable:!0,get:function(){return l().getTypes()}}),Xc.objectDefineProperty(this,"files",{configurable:!0,enumerable:!0,get:function(){return i}}),Rc||(this.setDragImage=function(){}),this.getData=function(e){if(!arguments.length)throw new Error("Failed to execute 'getData' on 'DataTransfer': 1 argument required, but only 0 present.");return e=e.toString().toLowerCase(),l().getItemData(e)},this.setData=function(t,r){if(arguments.length<2)throw new Error("Failed to execute 'setData' on 'DataTransfer': 2 argument required, but only ".concat(arguments.length," present."));e.mode===Bg.readwrite&&(t=t.toString().toLowerCase(),o.addItem(r,t,!0))},this.clearData=function(t){e.mode===Bg.readwrite&&(void 0===t?n.clear():o.removeItem(t))}}return e}();ql&&(zg.prototype=Xc.DataTransfer.prototype);var Kg,$g=function(){function e(){this.mode=Bg.readwrite}return e.prototype.setReadOnlyMode=function(){this.mode=Bg.readonly},e.prototype.setProtectedMode=function(){this.mode=Bg["protected"]},e}(),Xg=function(e){function t(t,r,n,o,i,a,s){var c=e.call(this)||this;return c._shadowUI=a,c.EVENT_PREVENTED_EVENT="hammerhead|event|event-prevented",c.listeners=t,c.elementEditingWatcher=n,c.unload=o,c.timers=s,c.eventSimulator=r,c.focusBlur=new Rg(t,r,i,s,n),c.selection=new Fg(c),c.hover=new jg(t),c._shadowUI=a,c.message=i,c.DataTransfer=zg,c.DragDataStore=$g,c._overriddenMethods=null,c._onFocus=null,c._cancelInternalEvents=null,c._createOverriddenMethods(),c._createInternalHandlers(),c}return m(t,e),t.prototype._createOverriddenMethods=function(){var e=this.selection,t=this.focusBlur,r=this.eventSimulator,n=this;this._overriddenMethods={dispatchEvent:function(){Mm.beforeDispatchEvent(this);var e=Rc&&kr(this)?Xc.windowDispatchEvent.apply(this,arguments):Xc.dispatchEvent.apply(this,arguments);return Mm.afterDispatchEvent(this),e},click:function(){Mm.beforeDispatchEvent(this);var e=r.nativeClick(this,Xc.click);return Mm.afterDispatchEvent(this),e},setSelectionRange:function(){return e.setSelectionRangeWrapper.apply(this,arguments)},select:function(){return e.selectWrapper.call(this)},focus:function(){return t.focus(this,null,!1,!1,!0)},blur:function(){return t.blur(this,null,!1,!0)},preventDefault:function(){return n.emit(n.EVENT_PREVENTED_EVENT,this),Xc.preventDefault.call(this)}}},t.prototype._createInternalHandlers=function(){var e=this._shadowUI,t=this.document,r=this.eventSimulator;this._onFocus=function(r){var n=Xc.eventTargetGetter.call(r),o=At(t);Or(n)||Or(o)||e.setLastActiveElement(o)},this._cancelInternalEvents=function(e,t,n,o,i){var a=Rg.getNonBubblesEventType(e.type)||e.type,s=Rg.getInternalEventFlag(a),c=Xc.eventTargetGetter.call(e);c[s]&&!e[r.DISPATCHED_EVENT_FLAG]&&i()}},t.prototype._preventInputNativeDialogs=function(e){var t=Hc||Mc;t&&this.listeners.addInternalEventBeforeListener(e,["click"],function(e,t){t&&xr(Xc.eventTargetGetter.call(e))&&wa(e,!0)})},t.prototype.attach=function(t){e.prototype.attach.call(this,t),x(t.HTMLInputElement.prototype,"setSelectionRange",this._overriddenMethods.setSelectionRange),x(t.HTMLTextAreaElement.prototype,"setSelectionRange",this._overriddenMethods.setSelectionRange),Rc?(x(t.Window.prototype,"dispatchEvent",this._overriddenMethods.dispatchEvent),x(t.Document.prototype,"dispatchEvent",this._overriddenMethods.dispatchEvent),x(t.HTMLElement.prototype,"dispatchEvent",this._overriddenMethods.dispatchEvent),x(t.SVGElement.prototype,"dispatchEvent",this._overriddenMethods.dispatchEvent)):x(t.EventTarget.prototype,"dispatchEvent",this._overriddenMethods.dispatchEvent),x(t.HTMLElement.prototype,"focus",this._overriddenMethods.focus),x(t.HTMLElement.prototype,"blur",this._overriddenMethods.blur),x(t.HTMLElement.prototype,"click",this._overriddenMethods.click),x(t.Event.prototype,"preventDefault",this._overriddenMethods.preventDefault),t.Window.focus=this._overriddenMethods.focus,b(t.Window.focus,Xc.focus),t.Window.blur=this._overriddenMethods.blur,b(t.Window.blur,Xc.blur),t.TextRange&&t.TextRange.prototype.select&&x(t.TextRange.prototype,"select",this._overriddenMethods.select),this.listeners.initElementListening(document,Df),this.listeners.initElementListening(t,Df.concat(["load","beforeunload","pagehide","unload","message"])),this.listeners.addInternalEventBeforeListener(t,["focus"],this._onFocus),this.listeners.addInternalEventBeforeListener(t,["focus","blur","change","focusin","focusout"],this._cancelInternalEvents),this._preventInputNativeDialogs(t),this.unload.attach(t),this.message.attach(t),this.timers.attach(t),this.focusBlur.attach(t),this.hover.attach(t)},t.prototype.reattach=function(e){this.listeners.restartElementListening(e.document),this.listeners.restartElementListening(e)},t}(Ou),Yg=25,Qg=.5,Jg={noButton:-1,leftButton:0,rightButton:2},Zg={click:Mc?0:1,dblclick:Mc?0:2,mousedown:1,mouseup:1},ev=/^key\w+$/,tv=/^((mouse\w+)|((dbl)?click)|(contextmenu)|(drag\w*)|(drop))$/,rv=/^touch\w+$/,nv=/^focus(in|out)$/,ov=1,iv=["mouseover","mouseenter","mouseout"],av={mousedown:"pointerdown",mouseup:"pointerup",mousemove:"pointermove",mouseover:"pointerover",mouseenter:"pointerenter",mouseout:"pointerout"},sv={touchstart:"pointerdown",touchend:"pointerup",touchmove:"pointermove"},cv=[nr,or,tr,ir,vr,Sr,gr],lv=function(){function e(){this.DISPATCHED_EVENT_FLAG="hammerhead|dispatched-event",this.touchIdentifier=Xc.dateNow(),this.savedWindowEvents=[],this.savedNativeClickCount=0,this.browserWithNewEventsStyle=!Rc}return e._dispatchStorageEvent=function(e,t){var r=Xc.documentCreateEvent.call(document,"StorageEvent");return r.initStorageEvent("storage",t.canBubble,t.cancelable,t.key,t.oldValue,t.newValue,t.url,null),Xc.objectDefineProperty(r,"storageArea",{get:function(){return t.storageArea},configurable:!0}),null===t.key&&Xc.objectDefineProperty(r,"key",{get:function(){return null},configurable:!0}),e.dispatchEvent(r)},e.prototype._dispatchTouchEvent=function(e,t){if(Va(e,t.clientX,t.clientY))return!0;var r=Xc.documentCreateEvent.call(document,"TouchEvent");return r.initTouchEvent?Pc?r.initTouchEvent(t.type,t.canBubble,t.cancelable,t.view,t.detail,t.screenX,t.screenY,t.pageX,t.pageY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.touches,t.targetTouches,t.changedTouches,void 0===t.scale?1:t.scale,void 0===t.rotation?0:t.rotation):12===r.initTouchEvent.length?r.initTouchEvent(t.type,t.canBubble,t.cancelable,t.view,t.detail,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.touches,t.targetTouches,t.changedTouches):r.initTouchEvent(t.touches,t.targetTouches,t.changedTouches,t.type,t.view,t.screenX,t.screenY,t.pageX-t.view.pageXOffset,t.pageY-t.view.pageYOffset,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey):r=new Xc.WindowTouchEvent(t.type,{touches:t.touches,targetTouches:t.targetTouches,changedTouches:t.changedTouches,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey,metaKey:t.metaKey,bubbles:t.canBubble,cancelable:t.cancelable,cancelBubble:!1,defaultPrevented:!1,detail:t.detail,view:t.view}),Mf&&this._dispatchPointerEvent(e,t),e.dispatchEvent(r)},e._getUIEventArgs=function(e,t){void 0===t&&(t={});var r="detail"in t?t.detail:Zg[e];return{type:e,composed:t.composed,canBubble:t.canBubble!==!1,cancelable:t.cancelable!==!1,view:t.view||window,detail:r||0,ctrlKey:t.ctrlKey||!1,altKey:t.altKey||!1,shiftKey:t.shiftKey||!1,metaKey:t.metaKey||!1}},e._getStorageEventArgs=function(e){return void 0===e&&(e={}),Ws(e,{canBubble:e.canBubble!==!1,cancelable:e.cancelable!==!1})},e._getMouseEventArgs=function(t,r){return void 0===r&&(r={}),Ws(e._getUIEventArgs(t,r),{screenX:r.screenX||0,screenY:r.screenY||0,clientX:r.clientX||0,clientY:r.clientY||0,button:void 0===r.button?Nf.left:r.button,buttons:void 0===r.buttons?Of.leftButton:r.buttons,relatedTarget:r.relatedTarget||null,which:r.which})},e._getKeyEventArgs=function(t,r){var n={keyCode:r.keyCode||0,charCode:r.charCode||0,which:"press"===t?r.charCode:r.keyCode};return"keyIdentifier"in r&&(n.keyIdentifier=r.keyIdentifier),"key"in r&&(n.key=r.key),Ws(e._getUIEventArgs(t,r),n)},e._getModifiersAsString=function(e){var t="";for(var r in Lf)Xc.objectHasOwnProperty.call(Lf,r)&&e[r]&&(t+=Lf[r]+" ");return t},e._prepareMouseEventOptions=function(e){void 0===e&&(e={});var t=void 0===e.buttons?Of.noButton:e.buttons,r=Nf.left;return e.buttons=t,e.button=e.button||r,Wc&&(e.which=kf.leftButton,e.buttons===Of.noButton&&(e.which=kf.noButton),e.buttons===Of.rightButton&&(e.which=kf.rightButton)),e},e._isDisabled=function(e){return e&&e.hasAttribute&&Xc.hasAttribute.call(e,"disabled")},e.prototype._simulateEvent=function(t,r,n,o){var i=this;void 0===o&&(o={});var a=null,s=null,c="click"===r&&Yr(t),l=Ws(n?{clientX:n.clientX,clientY:n.clientY,screenX:n.screenX,screenY:n.screenY,altKey:!c&&n.alt,shiftKey:!c&&n.shift,ctrlKey:!c&&n.ctrl,metaKey:n.meta,button:n.button,which:n.which,buttons:n.buttons,relatedTarget:n.relatedTarget}:{},o);return l.composed=Ia(r),l.relatedTarget||(l.relatedTarget=document.body),"storage"===r?(l=Ws(l,n),a=e._getStorageEventArgs(l),s=e._dispatchStorageEvent):tv.test(r)?(n&&void 0!==n.button&&(l=Ws(l,{button:n.button})),a=e._getMouseEventArgs(r,l),s=function(e,t){return i._dispatchMouseRelatedEvents(e,t,n)}):ev.test(r)?(!n||void 0===n.keyCode&&void 0===n.charCode||(l=Ws(l,{key:n.key||void 0,keyCode:n.keyCode||0,charCode:n.charCode||0}),"keyIdentifier"in n&&(l.keyIdentifier=n.keyIdentifier),"key"in n&&(l.key=n.key)),a=e._getKeyEventArgs(r,l),s=function(e,t){return i._dispatchKeyEvent(e,t)}):rv.test(r)&&(a=this._getTouchEventArgs(r,Ws(l,{target:t})),s=function(e,t){return i._dispatchTouchEvent(e,t)}),s(t,a)},e.prototype._getTouchEventArgs=function(t,r){var n,o;void 0===r&&(r={});var i=Ws(e._getUIEventArgs(t,r),{screenX:r.screenX||0,screenY:r.screenY||0,clientX:r.clientX||0,clientY:r.clientY||0,pageX:r.clientX||0,pageY:r.clientY||0,identifier:this._getTouchIdentifier(t)});return Xc.documentCreateTouch?Pc?i.touch=Xc.documentCreateTouch.call(document,i.view,r.target,i.identifier,i.clientX,i.clientY,0,0):i.touch=Xc.documentCreateTouch.call(document,i.view,r.target,i.identifier,i.pageX,i.pageY,i.screenX,i.screenY,i.clientX,i.clientY,null,null,void 0===i.rotation?0:i.rotation):i.touch=new Xc.WindowTouch({
identifier:i.identifier,target:r.target,clientX:i.clientX,clientY:i.clientY,pageX:i.pageX,pageY:i.pageY,screenX:i.screenX,screenY:i.screenY,rotationAngle:0,radiusX:Yg,radiusY:Yg,force:Qg}),i.changedTouches=[i.touch],i.touches="touchend"===i.type?[]:i.changedTouches,Xc.documentCreateTouchList&&(i.changedTouches=(n=Xc.documentCreateTouchList).call.apply(n,g([document],i.changedTouches,!1)),i.touches=(o=Xc.documentCreateTouchList).call.apply(o,g([document],i.touches,!1))),i.targetTouches=i.touches,i},e.prototype._getTouchIdentifier=function(e){return"touchstart"===e&&this.touchIdentifier++,this.touchIdentifier},e.prototype._raiseNativeClick=function(e,t){var r=$t(e)&&It(e),n=r?Xc.contentWindowGetter.call(r):window,o=n.event;Rc&&delete n.event,t.call(e),Rc&&o&&Xc.objectDefineProperty(n,"event",{get:function(){return o},configurable:!0})},e.prototype._dispatchKeyEvent=function(t,r){var n=null;if(this.browserWithNewEventsStyle&&Xc.WindowKeyboardEvent){var o={bubbles:r.canBubble,composed:r.composed,cancelable:r.cancelable,cancelBubble:!1,defaultPrevented:!1,view:r.view,detail:r.detail,ctrlKey:r.ctrlKey,altKey:r.altKey,shiftKey:r.shiftKey,metaKey:r.metaKey,keyCode:r.keyCode,charCode:r.charCode,which:r.which};"keyIdentifier"in r&&(o.keyIdentifier=r.keyIdentifier),"key"in r&&(o.key=r.key),n=new Xc.WindowKeyboardEvent(r.type,o)}else Xc.documentCreateEvent&&(n=Xc.documentCreateEvent.call(document,"KeyboardEvent"),n.initKeyboardEvent(r.type,r.canBubble,r.cancelable,r.view,"",0,e._getModifiersAsString(r),!1,""));if(n){Xc.objectDefineProperty(n,"keyCode",{configurable:!0,enumerable:!0,get:function(){return r.keyCode}}),Xc.objectDefineProperty(n,"charCode",{configurable:!0,enumerable:!0,get:function(){return r.charCode}}),Xc.objectDefineProperty(n,"which",{configurable:!0,enumerable:!0,get:function(){return r.which}}),"key"in r&&Xc.objectDefineProperty(n,"key",{configurable:!0,enumerable:!0,get:function(){return r.key}}),"keyIdentifier"in r&&Xc.objectDefineProperty(n,"keyIdentifier",{configurable:!0,enumerable:!0,get:function(){return r.keyIdentifier}});var i=!1,a=!0;this.browserWithNewEventsStyle&&(n.preventDefault=function(){return i=!0,Xc.preventDefault.call(n),!1}),Uc&&Xc.objectDefineProperty(n,"returnValue",{get:function(){return a},set:function(e){e===!1&&n.preventDefault(),a=e}});var s=this._raiseDispatchEvent(t,n);return Uc?a&&!i:Mc?s:!i}return null},e.prototype._getPointerEventTypeInfo=function(e){return av[e]?{eventType:av[e],pointerType:"mouse"}:sv[e]?{eventType:sv[e],pointerType:"touch"}:null},e.prototype._dispatchPointerEvent=function(e,t){var r=this._getPointerEventTypeInfo(t.type);if(r){var n=r.eventType,o=r.pointerType,i=null,a=qa(e),s=Ye(e),c=za({x:a.left+s.left,y:a.top+s.top}),l=Ws({width:1,height:1,pressure:0,tiltX:0,tiltY:0,pointerId:1,pointerType:o,timeStamp:Xc.dateNow(),isPrimary:!0},t);l.type=n,l.offsetX=t.clientX-c.x,l.offsetY=t.clientY-c.y,"mousemove"!==t.type&&"mouseover"!==t.type&&"mouseout"!==t.type||(l.button=t.buttons===Of.noButton?Jg.noButton:l.button),Rc?(l.rotation=0,i=Xc.documentCreateEvent.call(document,"PointerEvent"),i.initPointerEvent(l.type,l.canBubble,l.cancelable,window,l.detail,l.screenX,l.screenY,l.clientX,l.clientY,l.ctrlKey,l.altKey,l.shiftKey,l.metaKey,l.button,null,l.offsetX,l.offsetY,l.width,l.height,l.pressure,l.rotation,l.tiltX,l.tiltY,l.pointerId,l.pointerType,l.timeStamp,l.isPrimary),Xc.objectDefineProperty(i,"target",{get:function(){return e},configurable:!0}),Xc.objectDefineProperty(i,"relatedTarget",{get:function(){return t.relatedTarget},configurable:!0}),Xc.objectDefineProperty(i,"buttons",{get:function(){return t.buttons}})):(l.bubbles=!0,l.cancelable=!0,i=new Xc.WindowPointerEvent(n,l)),this._raiseDispatchEvent(e,i)}},e.prototype._elementCanBeDisabled=function(e){for(var t=0,r=cv;t<r.length;t++){var n=r[t];if(n(e))return!0}return!1},e.prototype._dispatchMouseRelatedEvents=function(e,t,r){if(void 0===r&&(r={}),"mouseover"!==t.type&&"mouseenter"!==t.type&&Va(e,t.clientX,t.clientY))return!0;if(Mc&&("click"===t.type||"mouseup"===t.type||"mousedown"===t.type)){var n=Xc.nodeParentNodeGetter.call(e),o=sn(n,"button");n&&o&&"submit"===Xc.getAttribute.call(o,"type")&&(e=o)}return!Mf||Gl&&!iv.includes(t.type)||this._dispatchPointerEvent(e,t),this._dispatchMouseEvent(e,t,r)},e.prototype._dispatchMouseEvent=function(t,r,n){var o=this,i=n.dataTransfer,a=n.timeStamp,s=fn(t,!1,function(t){return o._elementCanBeDisabled(t)&&e._isDisabled(t)}),c=s&&this._elementCanBeDisabled(t)||e._isDisabled(t)&&this._elementCanBeDisabled(t);if(c)return null;var l=null;return this.browserWithNewEventsStyle&&Xc.WindowMouseEvent?l=new Xc.WindowMouseEvent(r.type,{bubbles:r.canBubble,composed:r.composed,cancelable:r.cancelable,view:window,detail:r.detail,screenX:r.screenX,screenY:r.screenY,clientX:r.clientX,clientY:r.clientY,ctrlKey:r.ctrlKey,altKey:r.altKey,shiftKey:r.shiftKey,metaKey:r.metaKey,button:r.button,buttons:r.buttons,relatedTarget:r.relatedTarget}):(l=Xc.documentCreateEvent.call(document,"MouseEvents"),l.initMouseEvent(r.type,r.canBubble,r.cancelable,window,r.detail,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.button,r.relatedTarget),Xc.objectDefineProperty(l,"buttons",{get:function(){return r.buttons}})),void 0!==r.which&&Wc&&Xc.objectDefineProperty(l,"which",{get:function(){return r.which}}),a&&!Mc&&Xc.objectDefineProperty(l,"timeStamp",{get:function(){return a}}),i&&Xc.objectDefineProperty(l,"dataTransfer",{configurable:!0,enumerable:!0,get:function(){return i}}),this._raiseDispatchEvent(t,l)},e.prototype._dispatchFocusEvent=function(e,t,r){void 0===r&&(r=null);var n=null,o=nv.test(t);return this.browserWithNewEventsStyle&&Xc.WindowFocusEvent?n=new Xc.WindowFocusEvent(t,{bubbles:o,composed:Ia(t),cancelable:!1,cancelBubble:!1,relatedTarget:r,defaultPrevented:!1}):Xc.documentCreateEvent&&(n=Xc.documentCreateEvent.call(document,"FocusEvent"),n.initFocusEvent(t,o,!0,null,0,o?r:null)),n?(n[this.DISPATCHED_EVENT_FLAG]=!0,this._raiseDispatchEvent(e,n)):null},e.prototype._dispatchTextEvent=function(e,t){if(Xc.WindowTextEvent&&Xc.documentCreateEvent){var r=Xc.documentCreateEvent.call(document,"TextEvent"),n={eventType:Rc?"textinput":"textInput",bubbles:!0,cancelable:!0,view:window,data:t,inputMethod:ov,locale:navigator.language};return r.initTextEvent(n.eventType,n.bubbles,n.cancelable,n.view,n.data,n.inputMethod,n.locale),this._raiseDispatchEvent(e,r)}return null},e.prototype._dispatchInputEvent=function(e,t,r){if(!Xc.WindowInputEvent)return this._dispatchEvent(e,t,!0);var n={bubbles:!0,composed:Ia(t),cancelable:!0,view:window,inputType:"insertText"};void 0!==r&&(n.data=r);var o=new Xc.WindowInputEvent(t,n);return this._raiseDispatchEvent(e,o)},e.prototype._dispatchEvent=function(e,t,r,n){var o=null;return Xc.documentCreateEvent&&(o=Xc.documentCreateEvent.call(document,"Events"),o.initEvent(t,r,!0)),o?(n&&(o[n]=!0),this._raiseDispatchEvent(e,o)):null},e.prototype._raiseDispatchEvent=function(e,t){var r=$t(e)&&It(e),n=r?Xc.contentWindowGetter.call(r):window;Rc&&r&&n&&Xc.objectDefineProperty(n,"event",{get:function(){return window.event},configurable:!0});var o=e.dispatchEvent(t);return Rc&&n&&delete n.event,o},e.prototype.click=function(e,t){return this._simulateEvent(e,"click",t,{button:Nf.left,buttons:Of.noButton})},e.prototype.nativeClick=function(e,t){this._raiseNativeClick(e,t)},e.prototype.dblclick=function(e,t){return this._simulateEvent(e,"dblclick",t,{button:Nf.left,buttons:Of.noButton})},e.prototype.rightclick=function(e,t){return this._simulateEvent(e,"click",t,{button:Nf.right,buttons:Of.rightButton})},e.prototype.contextmenu=function(e,t){return this._simulateEvent(e,"contextmenu",t,{button:Nf.right,buttons:Of.noButton})},e.prototype.mousedown=function(e,t){void 0===t&&(t={});var r=void 0===t.button?Nf.left:t.button,n=r===Nf.left?Of.leftButton:Of.rightButton;return t.button=r,t.buttons=void 0===t.buttons?n:t.buttons,this._simulateEvent(e,"mousedown",t)},e.prototype.mouseup=function(e,t){void 0===t&&(t={});var r=void 0===t.button?Nf.left:t.button;return this._simulateEvent(e,"mouseup",t,{button:r,buttons:Of.noButton})},e.prototype.mouseover=function(t,r){return r=e._prepareMouseEventOptions(r),this._simulateEvent(t,"mouseover",r)},e.prototype.mousemove=function(t,r){return r=e._prepareMouseEventOptions(r),this._simulateEvent(t,"mousemove",r,{cancelable:!1})},e.prototype.mouseout=function(t,r){return r=e._prepareMouseEventOptions(r),this._simulateEvent(t,"mouseout",r)},e.prototype.mouseenter=function(t,r){return r=e._prepareMouseEventOptions(r),this._simulateEvent(t,"mouseenter",r,{canBubble:!1})},e.prototype.mouseleave=function(t,r){return r=e._prepareMouseEventOptions(r),this._simulateEvent(t,"mouseleave",r,{canBubble:!1})},e.prototype.keypress=function(e,t){return this._simulateEvent(e,"keypress",t)},e.prototype.keyup=function(e,t){return this._simulateEvent(e,"keyup",t)},e.prototype.keydown=function(e,t){return this._simulateEvent(e,"keydown",t)},e.prototype.blur=function(e,t){return this._dispatchFocusEvent(e,"blur",t)},e.prototype.focus=function(e,t){return this._dispatchFocusEvent(e,"focus",t)},e.prototype.focusin=function(e,t){return this._dispatchFocusEvent(e,"focusin",t)},e.prototype.focusout=function(e,t){return this._dispatchFocusEvent(e,"focusout",t)},e.prototype.storage=function(e,t){return this._simulateEvent(e,"storage",t)},e.prototype.change=function(e){return this._dispatchEvent(e,"change",!0,this.DISPATCHED_EVENT_FLAG)},e.prototype.textInput=function(e,t){return this._dispatchTextEvent(e,t)},e.prototype.beforeInput=function(e,t){return this._dispatchInputEvent(e,"beforeinput",t)},e.prototype.input=function(e,t){return this._dispatchInputEvent(e,"input",t)},e.prototype.submit=function(e){return this._dispatchEvent(e,"submit",!0)},e.prototype.selectionchange=function(e){return this._dispatchEvent(e,"selectionchange",!1)},e.prototype.touchstart=function(e,t){return this._simulateEvent(e,"touchstart",t)},e.prototype.touchend=function(e,t){return this._simulateEvent(e,"touchend",t)},e.prototype.touchmove=function(e,t){return this._simulateEvent(e,"touchmove",t)},e.prototype.dragstart=function(e,t){return this._simulateEvent(e,"dragstart",t)},e.prototype.drag=function(e,t){return this._simulateEvent(e,"drag",t)},e.prototype.dragenter=function(e,t){return this._simulateEvent(e,"dragenter",t)},e.prototype.dragover=function(e,t){return this._simulateEvent(e,"dragover",t)},e.prototype.dragleave=function(e,t){return this._simulateEvent(e,"dragleave",t)},e.prototype.drop=function(e,t){return this._simulateEvent(e,"drop",t)},e.prototype.dragend=function(e,t){return this._simulateEvent(e,"dragend",t)},e.prototype.isSavedWindowsEventsExists=function(){return this.savedWindowEvents&&this.savedWindowEvents.length},e}();!function(e){e.Service="hammerhead|service-msg",e.User="hammerhead|user-msg"}(Kg||(Kg={}));var uv=["message","originUrl","targetUrl"],pv=function(e){function t(t,r){var n=e.call(this)||this;return n._listeners=t,n._unloadSandbox=r,n.PING_DELAY=200,n.PING_IFRAME_TIMEOUT=7e3,n.PING_IFRAME_MIN_TIMEOUT=100,n.SERVICE_MSG_RECEIVED_EVENT="hammerhead|event|service-msg-received",n.RECEIVE_MSG_FN="hammerhead|receive-msg-function",n.topWindow=null,n.window=null,n.storedOnMessageHandler=null,n.isWindowUnloaded=!1,n.iframeInternalMsgQueue=[],n}return m(t,e),t._parseMessageJSONData=function(e){if(!Cl.get().proxyless)return Hp(e);try{return Hp(e)}catch(t){return{type:Kg.User,message:e}}},t._getMessageData=function(e){var r=en(e)?Xc.messageEventDataGetter.call(e):e.data;return"string"==typeof r?t._parseMessageJSONData(r):r},t._isWindowAvailable=function(e){try{return!!e.postMessage}catch(t){return!1}},t.prototype._onMessage=function(e){var r=t._getMessageData(e);r.type===Kg.Service&&e.source&&(this.pingCmd&&r.message.cmd===this.pingCmd&&r.message.isPingResponse?(this.pingCallback(),this.pingCallback=null,this.pingCmd=null):this.emit(this.SERVICE_MSG_RECEIVED_EVENT,{message:r.message,source:e.source,ports:e.ports}))},t.prototype._onWindowMessage=function(e,r){var n=t._getMessageData(e);if(n.type!==Kg.Service){var o=Tl();if("*"===n.targetUrl||pe(o,n.targetUrl))return Ta(this.window,r,e)}return null},t._wrapMessage=function(e,t,r){var n=ye(),o=Ie({protocol:n.protocol,host:n.host});return{message:t,originUrl:o,targetUrl:r,type:e}},t._getOriginMessageData=function(e){return e.message&&"object"==typeof e.message&&Xc.arrayEvery.call(uv,function(t){return t in e.message})?e.message.message:e.message},t.prototype._removeInternalMsgFromQueue=function(e){for(var t=0,r=this.iframeInternalMsgQueue.length;t<r;t++)if(this.iframeInternalMsgQueue[t].sendFunc===e)return this.iframeInternalMsgQueue.splice(t,1),!0;return!1},t.prototype.attach=function(r){var n=this;e.prototype.attach.call(this,r),this.topWindow=r.top,this.isWindowUnloaded=!1,this._unloadSandbox.on(this._unloadSandbox.UNLOAD_EVENT,function(){for(n.isWindowUnloaded=!0;n.iframeInternalMsgQueue.length;){var e=n.iframeInternalMsgQueue[0];Xc.clearTimeout.call(n.window,e.timeoutId),e.sendFunc()}});var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ss(n,"_onMessage",e)},i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ss(n,"_onWindowMessage",e)};this._listeners.addInternalEventBeforeListener(r,["message"],o),this._listeners.setEventListenerWrapper(r,["message"],i),Xc.objectDefineProperty(r,this.RECEIVE_MSG_FN,{value:o,configurable:!0}),this.proxyless||_(r.MessageEvent.prototype,"data",{getter:function(){var e=Xc.eventTargetGetter.call(this),r=Xc.messageEventDataGetter.call(this);return r&&r.type!==Kg.Service&&kr(e)?t._getOriginMessageData(r):r}});var a=Xc.isEventPropsLocatedInProto?r.Window.prototype:r;_(a,"onmessage",{getter:function(){return n.storedOnMessageHandler},setter:function(e){n.storedOnMessageHandler=O(e)?e:null,Xc.winOnMessageSetter.call(r,n.storedOnMessageHandler?function(t){return n._onWindowMessage(t,e)}:null)}})},t.prototype.postMessage=function(e,r){var n=r[1]||_e();return r[1]="*",r[0]=t._wrapMessage(Kg.User,r[0],n),Ss(e,"postMessage",r)},t.prototype.sendServiceMsg=function(e,r,n){var o=this,i=t._wrapMessage(Kg.Service,e),a=!Bt(r,this.window)&&!!r[this.RECEIVE_MSG_FN];if(!a)return t._isWindowAvailable(r)&&r.postMessage(i,"*",n);var s=function(e){if(e||o._removeInternalMsgFromQueue(s))try{r[o.RECEIVE_MSG_FN]({data:Hp(Up(i)),source:o.window,ports:n})}catch(t){}};if(this.isWindowUnloaded)s(!0);else{var c=Rt(this.window),l=Xc.setTimeout.call(c,s,10);this.iframeInternalMsgQueue.push({timeoutId:l,sendFunc:s})}return null},t.prototype.pingIframe=function(e,t,r){var n=this;return new mc(function(o,i){var a=null,s=null,c=null,l=function(){c=Xc.contentWindowGetter.call(e),c&&n.sendServiceMsg({cmd:n.pingCmd,isPingRequest:!0},c)},u=function(){Xc.clearInterval.call(n.window,a),Xc.clearTimeout.call(n.window,s),n.pingCallback=null,n.pingCmd=null,a=null,s=null};s=Xc.setTimeout.call(n.window,function(){u(),i()},r?n.PING_IFRAME_MIN_TIMEOUT:n.PING_IFRAME_TIMEOUT),n.pingCallback=function(){u(),o()},n.pingCmd=t,l(),a=Xc.setInterval.call(n.window,l,n.PING_DELAY)})},t}(Ou),hv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.BEFORE_DOCUMENT_CLEANED_EVENT="hammerhead|event|before-document-cleaned",t.DOCUMENT_CLEANED_EVENT="hammerhead|event|document-cleaned",t.DOCUMENT_CLOSED_EVENT="hammerhead|event|document-closed",t.BODY_CONTENT_CHANGED_EVENT="hammerhead|event|body-content-changed",t.BODY_CREATED_EVENT="hammerhead|event|body-created",t.IFRAME_ADDED_TO_DOM_EVENT="hammerhead|event|iframe-added-to-dom",t}return m(t,e),t.prototype.onIframeAddedToDOM=function(e){this.emit(this.IFRAME_ADDED_TO_DOM_EVENT,e)},t.prototype.onBeforeDocumentCleaned=function(e){this.emit(this.BEFORE_DOCUMENT_CLEANED_EVENT,e)},t.prototype.onDocumentCleaned=function(e,t){this.emit(this.DOCUMENT_CLEANED_EVENT,{window:e,document:t})},t.prototype.onDocumentClosed=function(e){this.emit(this.DOCUMENT_CLOSED_EVENT,e)},t.prototype.onBodyContentChanged=function(e){this.emit(this.BODY_CONTENT_CHANGED_EVENT,e)},t.prototype.onBodyCreated=function(e){this.emit(this.BODY_CREATED_EVENT,e)},t}(Yc),dv=function(e){function t(){var t=e.call(this)||this;return t.timeouts=[],t.deferredFunctions=[],t.setTimeout=Xc.setTimeout,t}return m(t,e),t.prototype._wrapTimeoutFunctionsArguments=function(e){var t=this,r="string"==typeof e[0],n=r?null:e[0],o=r?zi(e[0],!1):null;if(Mc&&kc<12){var i=this,a=r?function(){var e=t.window.eval;return e(o)}:n;e[0]=function(){return i._callDeferredFunction(a,arguments)}}else r&&(e[0]=o);return e},t.prototype._callDeferredFunction=function(e,t){if(this.timeouts.length){for(var r=[],n=[],o=0;o<this.timeouts.length;o++)r.push(this.timeouts[o]),n.push(this.deferredFunctions[o]);this.timeouts=[],this.deferredFunctions=[];for(var i=0;i<r.length;i++)Xc.clearInterval.call(this.window,r[i]),n[i]();return this._callDeferredFunction(e,t)}return e.apply(this.window,t)},t.prototype.attach=function(t){e.prototype.attach.call(this,t);var r=this;x(t,"setTimeout",function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Xc.setTimeout.apply(t,r._wrapTimeoutFunctionsArguments(e))}),x(t,"setInterval",function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Xc.setInterval.apply(t,r._wrapTimeoutFunctionsArguments(e))}),this.setTimeout=t.setTimeout},t.prototype.deferFunction=function(e){var t=this,r=function(){e();for(var n=0;n<t.deferredFunctions.length;n++)if(t.deferredFunctions[n]===r){t.deferredFunctions.splice(n,1),t.timeouts.splice(n,1);break}};this.deferredFunctions.push(r),this.timeouts.push(Xc.setTimeout.call(window,r,0))},t}(Ou),fv=function(e){function t(r){var n=e.call(this)||this;return n._listeners=r,n.BEFORE_UNLOAD_EVENT="hammerhead|event|before-unload",n.BEFORE_BEFORE_UNLOAD_EVENT="hammerhead|event|before-before-unload",n.UNLOAD_EVENT="hammerhead|event|unload",n.beforeUnloadProperties={storedReturnValue:"",prevented:!1,storedHandler:null,nativeEventName:t._getBeforeUnloadEventName(),eventName:n.BEFORE_UNLOAD_EVENT,eventPropSetter:t._getBeforeUnloadPropSetter()},n.unloadProperties={storedReturnValue:"",prevented:!1,storedHandler:null,nativeEventName:"unload",eventName:n.UNLOAD_EVENT,eventPropSetter:Xc.winOnUnloadSetter},n}return m(t,e),t._getBeforeUnloadEventName=function(){return Pc?"pagehide":"beforeunload"},t._getBeforeUnloadPropSetter=function(){return Pc?Xc.winOnPageHideSetter:Xc.winOnBeforeUnloadSetter},t.prototype._emitEvent=function(e){this.emit(e.eventName,{returnValue:e.storedReturnValue,prevented:e.prevented})},t._prepareStoredReturnValue=function(e){if("string"==typeof e)return e;try{return String(e)}catch(t){return""}},t.prototype._createEventHandler=function(e){return function(r,n){Xc.objectDefineProperty(r,"returnValue",Gs({get:function(){return e.storedReturnValue},set:function(r){e.storedReturnValue=t._prepareStoredReturnValue(r),e.prevented=!Hc||""!==r}})),Xc.objectDefineProperty(r,"preventDefault",Gs({get:function(){return function(){return e.prevented=!0,!0}},set:function(){}}));var o=n.call(this,r);void 0!==o&&(e.storedReturnValue=t._prepareStoredReturnValue(o),e.prevented=!0)}},t.prototype._reattachListener=function(e){var t=Mm.getNativeAddEventListener(this.window),r=Mm.getNativeRemoveEventListener(this.window);r.call(this.window,e.nativeEventName,this),t.call(this.window,e.nativeEventName,this)},t.prototype._setEventListenerWrapper=function(e){this._listeners.setEventListenerWrapper(window,[e.nativeEventName],this._createEventHandler(e))},t.prototype._addEventListener=function(e){var t=this,r=Mm.getNativeAddEventListener(window);r.call(window,e.nativeEventName,this),this._listeners.on(this._listeners.EVENT_LISTENER_ATTACHED_EVENT,function(r){r.el===window&&r.eventType===e.nativeEventName&&t._reattachListener(e)})},t.prototype._overrideEventDescriptor=function(e){var t=this,r=Xc.isEventPropsLocatedInProto?window.Window.prototype:window;_(r,"on"+e.nativeEventName,{getter:function(){return e.storedHandler},setter:function(r){return t.setOnEvent(e,window,r)}})},t.prototype._attachEvent=function(e){this._setEventListenerWrapper(e),this._addEventListener(e),this._overrideEventDescriptor(e)},t.prototype.attach=function(t){var r=this;e.prototype.attach.call(this,t),this._attachEvent(this.beforeUnloadProperties),this._attachEvent(this.unloadProperties),this._listeners.addInternalEventBeforeListener(t,[this.beforeUnloadProperties.nativeEventName],function(){return r.emit(r.BEFORE_BEFORE_UNLOAD_EVENT)})},t.prototype.setOnEvent=function(e,t,r){var n=this;O(r)?(e.storedHandler=r,e.eventPropSetter.call(t,function(t){return n._createEventHandler(e)(t,r)}),this._reattachListener(e)):(e.storedHandler=null,e.eventPropSetter.call(t,null))},t.prototype.handleEvent=function(e){e.type===this.beforeUnloadProperties.nativeEventName?this._emitEvent(this.beforeUnloadProperties):e.type===this.unloadProperties.nativeEventName&&this._emitEvent(this.unloadProperties)},t}(Ou),mv=function(e){function t(t){var r=e.call(this)||this;return r._waitHammerheadSettings=t,t&&t.then(function(){r._waitHammerheadSettings=null}),r}return m(t,e),t.prototype.gettingSettingInProgress=function(){return!!this._waitHammerheadSettings},t.prototype.delayUntilGetSettings=function(e){return this._waitHammerheadSettings.then(e)},t}(Ou),gv="~~~TestCafe added this prefix to hide the authentication dialog box~~~",vv="~~~TestCafe added this prefix to control the authorization flow~~~",yv=Object.freeze({__proto__:null,addAuthenticatePrefix:qs,hasAuthenticatePrefix:zs,removeAuthenticatePrefix:Ks,isAuthenticateHeader:$s,addAuthorizationPrefix:Xs,hasAuthorizationPrefix:Ys,removeAuthorizationPrefix:Qs,isAuthorizationHeader:Js}),_v=["UNSENT","OPENED","HEADERS_RECEIVED","LOADING","DONE"],Ev=function(e){function t(t,r){var n=e.call(this,r)||this;return n._cookieSandbox=t,n.XHR_COMPLETED_EVENT="hammerhead|event|xhr-completed",n.XHR_ERROR_EVENT="hammerhead|event|xhr-error",n.BEFORE_XHR_SEND_EVENT="hammerhead|event|before-xhr-send",n}return m(t,e),t.setRequestOptions=function(e,r,n){t.REQUESTS_OPTIONS.set(e,{withCredentials:r,openArgs:n,headers:[]})},t.createNativeXHR=function(){var e=new Xc.XMLHttpRequest;return e.open=Xc.xhrOpen,e.abort=Xc.xhrAbort,e.send=Xc.xhrSend,e.addEventListener=Xc.xhrAddEventListener||Xc.addEventListener,e.removeEventListener=Xc.xhrRemoveEventListener||Xc.removeEventListener,e.setRequestHeader=Xc.xhrSetRequestHeader,e.getResponseHeader=Xc.xhrGetResponseHeader,e.getAllResponseHeaders=Xc.xhrGetAllResponseHeaders,e.overrideMimeType=Xc.xhrOverrideMimeType,e.dispatchEvent=Xc.xhrDispatchEvent||Xc.dispatchEvent,e},t.openNativeXhr=function(e,t,r){e.open("POST",t,r),e.setRequestHeader(nd.cacheControl,"no-cache, no-store, must-revalidate")},t._reopenXhr=function(e,t,r){var n=t.openArgs[1],o=e.withCredentials;t.withCredentials=o,t.openArgs[1]=We(n,o?fc.include:fc.sameOrigin,r),Xc.xhrOpen.apply(e,t.openArgs),t.openArgs[1]=n;for(var i=0,a=t.headers;i<a.length;i++){var s=a[i];Xc.xhrSetRequestHeader.apply(e,s)}},t.prototype.attach=function(r){e.prototype.attach.call(this,r);for(var n=this,o=r.XMLHttpRequest.prototype,i=function(){var e=Xc.xhrRemoveEventListener||Xc.removeEventListener;n.emit(n.XHR_COMPLETED_EVENT,{xhr:this}),e.call(this,"loadend",i)},a=function(){if(!(this.readyState<this.HEADERS_RECEIVED)){var e=Xc.xhrRemoveEventListener||Xc.removeEventListener;n._cookieSandbox.syncCookie(),e.call(this,"readystatechange",a)}},s=function(){var e=Xc.xhrAddEventListener||Xc.addEventListener,t=new Xc.XMLHttpRequest;return e.call(t,"loadend",i),e.call(t,"readystatechange",a),t},c=0,l=_v;c<l.length;c++){var u=l[c];Xc.objectDefineProperty(s,u,Xc.objectGetOwnPropertyDescriptor(Xc.XMLHttpRequest,u))}C(r,"XMLHttpRequest",s),Xc.objectDefineProperty(o,"constructor",{value:s}),x(o,"abort",function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return n.gettingSettingInProgress()?void n.delayUntilGetSettings(function(){return e.abort.apply(e,t)}):(Xc.xhrAbort.apply(this,t),void n.emit(n.XHR_ERROR_EVENT,{err:new Error("XHR aborted"),xhr:this}))}),x(o,"open",function(){for(var e=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=r[1];return Dl(i,{},n.proxyless)===i?(t.setRequestOptions(this,this.withCredentials,r),void Xc.xhrOpen.apply(this,r)):n.gettingSettingInProgress()?void n.delayUntilGetSettings(function(){return e.open.apply(e,r)}):(i="string"==typeof i?i:String(i),r[1]=We(i,this.withCredentials?fc.include:fc.sameOrigin,n.proxyless),Xc.xhrOpen.apply(this,r),r[1]=i,void t.setRequestOptions(this,this.withCredentials,r))}),x(o,"send",function(){for(var e=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n.gettingSettingInProgress())return void n.delayUntilGetSettings(function(){return e.send.apply(e,r)});var s=t.REQUESTS_OPTIONS.get(this);s&&s.withCredentials!==this.withCredentials&&t._reopenXhr(this,s,n.proxyless),n.emit(n.BEFORE_XHR_SEND_EVENT,{xhr:this}),Xc.xhrSend.apply(this,r),this.readyState===this.DONE&&i.call(this),a.call(this)}),x(o,"setRequestHeader",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];Js(e[0])&&(e[1]=Xs(e[1])),Xc.xhrSetRequestHeader.apply(this,e);var n=t.REQUESTS_OPTIONS.get(this);n&&n.headers.push([String(e[0]),String(e[1])])}),Xc.xhrResponseURLGetter&&_(r.XMLHttpRequest.prototype,"responseURL",{getter:function(){var e=Xc.xhrResponseURLGetter.call(this);return n.proxyless?e:Be(e)}}),x(o,"getResponseHeader",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Xc.xhrGetResponseHeader.apply(this,e);return r&&$s(e[0])&&(r=Ks(r)),r}),x(o,"getAllResponseHeaders",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=Xc.xhrGetAllResponseHeaders.apply(this,e);zs(r);)r=Ks(r);return r})},t.REQUESTS_OPTIONS=new WeakMap,t}(mv),Sv=Zs(Xc.Request&&new Xc.Request(location.toString()).credentials),bv=function(e){function t(t,r){var n=e.call(this,r)||this;return n.cookieSandbox=t,n.FETCH_REQUEST_SENT_EVENT="hammerhead|event|fetch-request-sent-event",n}return m(t,e),t._removeAuthHeadersPrefix=function(e,t){return Js(e)?Qs(t):$s(e)?Ks(t):t},t._processInit=function(e){var t=e.headers;if(!t)return e;Fr(t)||(t=t?new Xc.Headers(t):new Xc.Headers,e.headers=t);var r=Xc.headersGet.call(t,nd.authorization),n=Xc.headersGet.call(t,nd.proxyAuthorization);return null===r||Ys(r)||Xc.headersSet.call(t,nd.authorization,Xs(r)),null===n||Ys(n)||Xc.headersSet.call(t,nd.proxyAuthorization,Xs(n)),e},t._processArguments=function(e,r){var n=e[0],o=e[1],i="string"==typeof n,a=Zs(o&&o.credentials);if(Hr(n))a!==fc.unknown&&(e[0]=We(n.url,a)),o&&o.headers&&"worker"!==n.destination&&(e[1]=t._processInit(o));else{var s=i?n:String(n),c=a===fc.unknown?Sv:a;e[0]=We(s,c,r),e[1]=t._processInit(o||{})}},t._processHeaderEntry=function(e,r){if(void 0===r&&(r=!1),e.done)return e;var n=t._removeAuthHeadersPrefix(e.value[0],e.value[1]);return r?e.value=n:e.value[1]=n,e},t._entriesWrapper=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=Xc.headersEntries.apply(this,e),o=n.next;return n.next=function(){return t._processHeaderEntry(o.call(n))},n},t._valuesWrapper=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=Xc.headersEntries.apply(this,e),o=n.next;return n.next=function(){return t._processHeaderEntry(o.call(n),!0)},n},t.prototype.attach=function(r){if(e.prototype.attach.call(this,r,r.document),Xc.fetch){var n=this;this.proxyless||(C(r,"Request",function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];t._processArguments(e,n.proxyless),r.Headers.prototype.entries=r.Headers.prototype[Symbol.iterator]=Xc.headersEntries;var i=1===e.length?new Xc.Request(e[0]):new Xc.Request(e[0],e[1]);return r.Headers.prototype.entries=r.Headers.prototype[Symbol.iterator]=t._entriesWrapper,i}),_(r.Request.prototype,"url",{getter:function(){var e=Xc.requestUrlGetter.call(this);return n.proxyless?e:Be(e)}}),_(r.Request.prototype,"referrer",{getter:function(){var e=Xc.requestReferrerGetter.call(this);return n.proxyless?e:Be(e)}}),_(r.Response.prototype,"url",{getter:function(){var e=Xc.responseUrlGetter.call(this);return n.proxyless?e:Be(e)}}),x(r.Headers.prototype,"entries",t._entriesWrapper),x(r.Headers.prototype,Symbol.iterator,t._entriesWrapper),x(r.Headers.prototype,"values",t._valuesWrapper),x(r.Headers.prototype,"forEach",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e[0];return O(n)&&(e[0]=function(e,r,o){e=t._removeAuthHeadersPrefix(r,e),n.call(this,e,r,o)}),Xc.headersForEach.apply(this,e)}),x(r.Headers.prototype,"get",function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=Xc.headersGet.apply(this,e);return n&&t._removeAuthHeadersPrefix(e[0],n)}),x(r.Headers.prototype,"set",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Js(e[0])&&(e[1]=Xs(e[1])),Xc.headersSet.apply(this,e)})),x(r,"fetch",function(){for(var e=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(!n.proxyless&&n.gettingSettingInProgress())return n.delayUntilGetSettings(function(){return e.fetch.apply(e,o)});if(!o.length&&!Vc)return Xc.fetch.apply(this,o);if(n.proxyless){var a=Xc.fetch.apply(this,o);return n.emit(n.FETCH_REQUEST_SENT_EVENT,a),a}try{t._processArguments(o,n.proxyless)}catch(s){return Xc.promiseReject.call(n.window.Promise,s)}r.Headers.prototype.entries=r.Headers.prototype[Symbol.iterator]=Xc.headersEntries;var c=Xc.fetch.apply(this,o);return r.Headers.prototype.entries=r.Headers.prototype[Symbol.iterator]=t._entriesWrapper,n.emit(n.FETCH_REQUEST_SENT_EVENT,c),Xc.promiseThen.call(c,function(e){return n.cookieSandbox.syncCookie(),e})})}},t}(mv),wv="hammerhead|get-storage-wrapper",xv=Mc?"":null,Cv=new WeakMap,Av=0,Tv=1,Iv=function(){function e(){}return e}();Iv.prototype=Storage.prototype;var Pv=function(e){function t(t,r,n){var o=e.call(this)||this;return Cv.set(o,{win:t,ctx:t,lastState:null,eventEmitter:new Yc,nativeStorage:r,nativeStorageKey:n}),o.loadStorage(),o}return m(t,e),Object.defineProperty(t.prototype,"internal",{get:function(){return Cv.get(this)},enumerable:!1,configurable:!0}),t.create=function(e,r,n){var o=new t(e,r,n);return e.Proxy?new Xc.Proxy(o,{get:function(e,t){return t===wv?e:e[t]},set:function(e,t,r){return e.setItem(t,r),!0},deleteProperty:function(e,t){return e.removeItem(t),!0}}):o},t.prototype.setContext=function(e){this.internal.ctx=e},t.prototype.getContext=function(){return this.internal.ctx},t.prototype.saveToNativeStorage=function(){var e=Up(this.getCurrentState());this.internal.nativeStorage[this.internal.nativeStorageKey]!==e&&(this.internal.nativeStorage[this.internal.nativeStorageKey]=e)},t.prototype.getCurrentState=function(){for(var e=Xc.objectKeys(this),t=[[],[]],r=0,n=e;r<n.length;r++){var o=n[r];t[Av].push(o),t[Tv].push(this[o])}return t},t.prototype.restore=function(e){this.clearStorage(),this.loadStorage(e)},t.prototype.clearStorage=function(){for(var e=Xc.objectKeys(this),t=!1,r=0,n=e;r<n.length;r++){var o=n[r];delete this[o],t=!0}return t&&(this.internal.lastState=this.getCurrentState()),t},t.prototype.loadStorage=function(e){e||(e=this.internal.nativeStorage[this.internal.nativeStorageKey]);for(var t=Hp(e||"[[],[]]"),r=t[Av].length,n=0;n<r;n++)this[t[Av][n]]=t[Tv][n];this.internal.lastState=t},t.prototype.raiseStorageChanged=function(e,t,r){var n=null;try{var o=jl(this.internal.ctx.location.toString());n=o?o.destUrl:Tl()}catch(i){this.internal.ctx=this.internal.win,n=Tl()}this.internal.eventEmitter.emit("change",{key:e,oldValue:t,newValue:r,url:n})},t.prototype.checkStorageChanged=function(){for(var e=this.internal.lastState,t=this.getCurrentState(),r=0;r<e[Av].length;r++){var n=e[Av][r],o=e[Tv][r],i=t[Av].indexOf(n);i!==-1?(t[Tv][i]!==o&&this.raiseStorageChanged(t[Av][i],o,t[Tv][i]),t[Av].splice(i,1),t[Tv].splice(i,1)):this.raiseStorageChanged(n,o,null)}for(var a=0;a<t[Av].length;a++)this.raiseStorageChanged(t[Av][a],xv,t[Tv][a]);this.internal.lastState=this.getCurrentState()},t.prototype.addChangeEventListener=function(e){
this.internal.eventEmitter.on("change",e)},t.prototype.removeChangeEventListener=function(e){this.internal.eventEmitter.off("change",e)},t.prototype.unwrapProxy=function(){if(Xc.Proxy){var e=this[wv];return e||this}return this},t}(Iv),Nv=Xc.objectKeys(Pv.prototype);Nv.indexOf("internal")===-1&&Nv.push("internal");for(var Ov=0,kv=Nv;Ov<kv.length;Ov++){var Lv=kv[Ov];"constructor"!==Lv&&"internal"!==Lv&&Xc.objectDefineProperty(Pv.prototype,Lv,{value:Pv.prototype[Lv],configurable:!1,enumerable:!1,writable:!1})}var Dv=Xc.objectGetOwnPropertyDescriptor(Pv.prototype,"internal");Dv.configurable=!1,Dv.enumerable=!1,Xc.objectDefineProperty(Pv.prototype,"internal",Dv),Xc.objectDefineProperty(Pv.prototype,"constructor",Xc.objectGetOwnPropertyDescriptor(Storage.prototype,"constructor")),Xc.objectDefineProperty(Pv,"INTERNAL_METHODS",{value:Nv});var Mv="hammerhead|storage-wrapper|",Rv="hammerhead|api-key-prefix|",jv=Xc.arrayConcat.call(Xc.objectKeys(Storage.prototype),Pv.INTERNAL_METHODS),Fv=function(){function e(){}return e}(),Hv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.backup=function(){return{localStorage:Up(this._getStorageKeysAndValues(localStorage)),sessionStorage:Up(this._getStorageKeysAndValues(sessionStorage))}},t.prototype.attach=function(){},t.prototype.lock=function(){},t.prototype.dispose=function(){},t.prototype.clear=function(){},t.prototype.restore=function(){},t.prototype._getStorageKeysAndValues=function(e){for(var t=Xc.objectKeys(e),r=[],n=0,o=t;n<o.length;n++){var i=o[n];r.push(e[i])}return[t,r]},t}(Fv),Uv=function(e){function t(t,r,n,o,i){var a=e.call(this)||this;return a.window=null,a.nativeMethods=Xc,a.document=null,a.intervalId=null,a.isLocked=!1,a.sandbox=t,a.window=r,a._listeners=n,a._eventSimulator=o,a._unloadSandbox=i,a}return m(t,e),t.prototype.backup=function(){return{localStorage:Up(this.localStorageProxy.unwrapProxy().getCurrentState()),sessionStorage:Up(this.sessionStorageProxy.unwrapProxy().getCurrentState())}},t.prototype.restore=function(e){var t=e.localStorage,r=e.sessionStorage;this.localStorageProxy.unwrapProxy().restore(t),this.sessionStorageProxy.unwrapProxy().restore(r)},t.prototype.attach=function(e){var t=this;this._overrideStorageProps(),this._createStorageWrappers();var r=this.localStorageProxy.unwrapProxy(),n=this.sessionStorageProxy.unwrapProxy();this.intervalId=Xc.setInterval.call(this.window,function(){r.checkStorageChanged(),n.checkStorageChanged()},10),this.localStorageChangeHandler=function(e){return t._simulateStorageEvent(t.localStorageProxy,e)},this.sessionStorageChangeHandler=function(e){return t._simulateStorageEvent(t.sessionStorageProxy,e)},r.addChangeEventListener(this.localStorageChangeHandler),n.addChangeEventListener(this.sessionStorageChangeHandler),this._listeners.initElementListening(e,["storage"]),this._listeners.addInternalEventBeforeListener(e,["storage"],function(e,t,r){return!t&&r()}),this._overrideStorageEvent(),this._overrideStoragesGetters()},t.prototype.clear=function(){var e=this.localStorageProxy.unwrapProxy(),t=this.sessionStorageProxy.unwrapProxy();Xc.storageRemoveItem.call(e.internal.nativeStorage,e.internal.nativeStorageKey),Xc.storageRemoveItem.call(t.internal.nativeStorage,t.internal.nativeStorageKey)},t.prototype.dispose=function(){this.localStorageProxy.unwrapProxy().removeChangeEventListener(this.localStorageChangeHandler),this.sessionStorageProxy.unwrapProxy().removeChangeEventListener(this.sessionStorageChangeHandler);var e=Rt(this.window);this.window!==e||e.frameElement||Xc.clearInterval.call(this.window,this.intervalId)},t._wrapKey=function(e){var t=String(e);return jv.indexOf(t)!==-1?Rv+t:t},t._unwrapKey=function(e){return e.replace(Rv,"")},t.prototype._simulateStorageEvent=function(e,t){if(!this.sandbox.isDeactivated()&&e.unwrapProxy().getContext()!==this.window){var r=t;r.storageArea=e,this._eventSimulator.storage(this.window,r)}},t.prototype._createStorageWrappers=function(){var e=this,t=ye().host,r=Cl.get().sessionId,n=ec(r,t),o=Rt(this.window),i=o[vc.hammerhead],a=i.sandbox.storageSandbox;if(a!==this.sandbox)this.localStorageProxy=a.localStorageProxy,this.sessionStorageProxy=a.sessionStorageProxy;else{var s=this.nativeMethods.winLocalStorageGetter.call(this.window),c=this.nativeMethods.winSessionStorageGetter.call(this.window);this.localStorageProxy=Pv.create(this.window,s,n),this.sessionStorageProxy=Pv.create(this.window,c,n);var l=function(){e.isLocked||(e.localStorageProxy.unwrapProxy().saveToNativeStorage(),e.sessionStorageProxy.unwrapProxy().saveToNativeStorage())};this._unloadSandbox.on(this._unloadSandbox.UNLOAD_EVENT,l),dy.pageNavigationWatch.on(dy.pageNavigationWatch.PAGE_NAVIGATION_TRIGGERED_EVENT,l)}},t.prototype._overrideStorageEvent=function(){"object"!=typeof StorageEvent&&C(this.window,"StorageEvent",function(e,t){var r=null===t||void 0===t?void 0:t.storageArea;r&&delete t.storageArea;var n;return n=0===arguments.length?new Xc.StorageEvent:1===arguments.length?new Xc.StorageEvent(e):new Xc.StorageEvent(e,t),r&&Xc.objectDefineProperty(n,"storageArea",{get:function(){return r},set:function(){}}),n})},t.prototype._overrideStorageProps=function(){x(window.Storage.prototype,"clear",function(){var e=this.unwrapProxy();e.clearStorage()&&e.raiseStorageChanged(null,null,null)}),x(window.Storage.prototype,"getItem",function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'getItem' on 'Storage': 1 argument required, but only 0 present.");var r=this.unwrapProxy(),n=t._wrapKey(e);return Xc.objectHasOwnProperty.call(r,n)?r[n]:null}),x(window.Storage.prototype,"key",function(e){if(0===arguments.length)throw new TypeError("TypeError: Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");e%=4294967296,isNaN(e)&&(e=0);var r=this.unwrapProxy(),n=Xc.objectKeys(r),o=e>=0&&e<n.length;return o?t._unwrapKey(n[e]):null}),x(window.Storage.prototype,"removeItem",function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'removeItem' on 'Storage': 1 argument required, but only 0 present.");var r=this.unwrapProxy(),n=t._wrapKey(e);delete r[n],r.checkStorageChanged()}),x(window.Storage.prototype,"setItem",function(e,r){if(arguments.length<2)throw new TypeError("Failed to execute 'setItem' on 'Storage': 2 arguments required, but only ".concat(arguments.length," present."));var n=this.unwrapProxy(),o=t._wrapKey(e);n[o]=String(r),n.checkStorageChanged()}),_(window.Storage.prototype,"length",{getter:function(){return Xc.objectKeys(this).length},setter:null})},t.prototype._overrideStoragesGetters=function(){var e=this,t=this.nativeMethods.getStoragesPropsOwner(window),r=!this.nativeMethods.isStoragePropsLocatedInProto||!this.nativeMethods.objectHasOwnProperty.call(window,"localStorage");r&&this.nativeMethods.objectDefineProperties(window,{localStorage:y(t,"localStorage",{getter:function(){return e.localStorageProxy.unwrapProxy().setContext(window),e.localStorageProxy}}),sessionStorage:y(t,"sessionStorage",{getter:function(){return e.sessionStorageProxy.unwrapProxy().setContext(window),e.sessionStorageProxy}})})},t.prototype.lock=function(){this.isLocked=!0},t}(Fv),Bv=function(e){function t(t,r,n){var o=e.call(this)||this;return o._listeners=t,o._unloadSandbox=r,o._eventSimulator=n,o}return m(t,e),Object.defineProperty(t.prototype,"localStorageProxy",{get:function(){return this.strategy.localStorageProxy},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionStorageProxy",{get:function(){return this.strategy.sessionStorageProxy},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.strategy.clear()},t.prototype.lock=function(){this.strategy.lock()},t.prototype.backup=function(){return this.strategy.backup()},t.prototype.restore=function(e){this.strategy.restore(e)},t.prototype.attach=function(t){e.prototype.attach.call(this,t),this.strategy=this.proxyless?new Hv:new Uv(this,t,this._listeners,this._eventSimulator,this._unloadSandbox),this.strategy.attach(t)},t.prototype.dispose=function(){this.strategy.dispose()},t}(Ou),Vv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t._createFnWrapper=function(e,t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return"string"==typeof r[0]&&(r[0]=zi(r[0])),t.apply(e,r)}},t._overrideElectronModulePaths=function(e){var t=e.require,r=t("path"),n=ye();if("file:"===n.protocol){var o="win32"===e.process.platform&&"/"===n.pathname[0]?n.pathname.substr(1):n.pathname;e.__filename=r.normalize(decodeURIComponent(o)),e.__dirname=r.dirname(e.__filename),e.module.filename=e.__filename,e.module.paths=e.module.paths.concat(t("module")._nodeModulePaths(e.__dirname))}},t.prototype.attach=function(r){if(e.prototype.attach.call(this,r),r.require){var n=r.require("vm");if(n){var o=this.nativeMethods;o.refreshElectronMeths(n)&&(x(n,"createScript",t._createFnWrapper(n,o.createScript)),n.runInDebugContext&&x(n,"runInDebugContext",t._createFnWrapper(n,o.runInDebugContext)),x(n,"runInContext",t._createFnWrapper(n,o.runInContext)),x(n,"runInNewContext",t._createFnWrapper(n,o.runInNewContext)),x(n,"runInThisContext",t._createFnWrapper(n,o.runInThisContext)),t._overrideElectronModulePaths(r))}}},t}(Ou),Wv=function(e){function t(t){var r=e.call(this)||this;return r._messageSandbox=t,r.CONSOLE_METH_CALLED_EVENT="hammerhead|event|console-meth-called",r._serviceMsgReceivedEventCallback=function(e){var t=e.message;t.cmd===r.CONSOLE_METH_CALLED_EVENT&&r.emit(r.CONSOLE_METH_CALLED_EVENT,{meth:t.meth,line:t.line})},r}return m(t,e),t.prototype._toString=function(e){try{return String(e)}catch(t){return"object"}},t.prototype._proxyConsoleMeth=function(e){var t=this;x(this.window.console,e,function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(!Bt(window,window.top)){var o=Vt(window),i=Xc.arrayMap.call(r,t._toString).join(" ");o?(t.emit(t.CONSOLE_METH_CALLED_EVENT,{meth:e,line:i,inIframe:!0}),t._messageSandbox.sendServiceMsg({meth:e,line:i,cmd:t.CONSOLE_METH_CALLED_EVENT},window.top)):t.emit(t.CONSOLE_METH_CALLED_EVENT,{meth:e,line:i})}t.nativeMethods.consoleMeths[e].apply(t.nativeMethods.console,r)})},t.prototype.attach=function(t){e.prototype.attach.call(this,t),this._proxyConsoleMeth("log"),this._proxyConsoleMeth("info"),this._proxyConsoleMeth("error"),this._proxyConsoleMeth("warn"),this._messageSandbox.on(this._messageSandbox.SERVICE_MSG_RECEIVED_EVENT,this._serviceMsgReceivedEventCallback)},t}(Ou),Gv="hammerhead|style|is-processed",qv="hammerhead|style|proxy-object",zv="hammerhead|style|proxy-target",Kv=function(e){function t(){var r=e.call(this)||this;return r.URL_PROPS=["background","backgroundImage","borderImage","borderImageSource","listStyle","listStyleImage","cursor"],r.DASHED_URL_PROPS=t._generateDashedProps(r.URL_PROPS),r.FEATURES=r._detectBrowserFeatures(),r}return m(t,e),t._convertToDashed=function(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()},t._generateDashedProps=function(e){for(var r=[],n=0,o=e;n<o.length;n++){var i=o[n],a=t._convertToDashed(i);i!==a&&r.push(a)}return r},t.prototype._detectBrowserFeatures=function(){var e={};if(e.css2PropertiesProtoContainsAllProps=!!window.CSS2Properties,e.cssStyleDeclarationProtoContainsUrlProps=this.nativeMethods.objectHasOwnProperty.call(window.CSSStyleDeclaration.prototype,"background"),e.cssStyleDeclarationProtoContainsDashedProps=this.nativeMethods.objectHasOwnProperty.call(window.CSSStyleDeclaration.prototype,"background-image"),e.cssStyleDeclarationContainsAllProps=e.cssStyleDeclarationProtoContainsUrlProps&&e.cssStyleDeclarationProtoContainsDashedProps,!e.css2PropertiesProtoContainsAllProps&&!e.cssStyleDeclarationProtoContainsUrlProps){var t=this.nativeMethods.createElement.call(document,"div"),r=!1,n=this.nativeMethods.objectGetOwnPropertyDescriptor.call(window.Object,t.style,"background");n.configurable&&(delete n.value,delete n.writable,n.set=function(){r=!0},this.nativeMethods.objectDefineProperty(t.style,"background",n),t.style.background="url"),e.propsCannotBeOverridden=!n.configurable||!r}return e},t.prototype._overrideStyleProp=function(e,r){var n=this.nativeMethods,o=t._convertToDashed(r);_(e,r,{getter:function(){var e=n.styleGetPropertyValue.call(this,o);return rd.cleanUp(e,jl)},setter:function(e){"string"==typeof e&&(e=rd.process(e,Dl)),n.styleSetProperty.call(this,o,e)}})},t.prototype._overrideStyleInstanceProp=function(e,r){var n=this.nativeMethods,o=t._convertToDashed(r);_(e,r,{getter:function(){var e=n.styleGetPropertyValue.call(this,o);return rd.cleanUp(e,jl)},setter:function(e){"string"==typeof e&&(e=rd.process(e,Dl)),n.styleSetProperty.call(this,o,e)}})},t.prototype._processStyleInstance=function(e){var t=e[Gv];if(!t){for(var r=0,n=this.DASHED_URL_PROPS;r<n.length;r++){var o=n[r];this._overrideStyleInstanceProp(e,o)}if(!this.FEATURES.cssStyleDeclarationProtoContainsUrlProps)for(var i=0,a=this.URL_PROPS;i<a.length;i++){var o=a[i];this._overrideStyleInstanceProp(e,o)}this.nativeMethods.objectDefineProperty(e,Gv,{value:!0})}return e},t.prototype._getStyleProxy=function(e){var t=this,r=e[qv];return r||(r=new this.nativeMethods.Proxy(e,{get:function(e,r){return t.URL_PROPS.indexOf(r)!==-1||t.DASHED_URL_PROPS.indexOf(r)!==-1?rd.cleanUp(e[r],jl):r===zv?e:e[r]},set:function(e,r,n){return t.URL_PROPS.indexOf(r)===-1&&t.DASHED_URL_PROPS.indexOf(r)===-1||"string"==typeof n&&(n=rd.process(n,Dl)),e[r]=n,!0}}),this.nativeMethods.objectDefineProperty(e,qv,{value:r})),r},t.prototype._overrideCSSStyleDeclarationFunctionsCtx=function(e){var t=e.CSSStyleDeclaration.prototype,r=function(r){var o=n.nativeMethods.objectGetOwnPropertyDescriptor.call(e.Object,t,r).value;n.nativeMethods.objectHasOwnProperty.call(t,r)&&O(o)&&(t[r]=function(){return o.apply(this[zv]||this,arguments)},b(t[r],o))},n=this;for(var o in t)r(o)},t.prototype.attach=function(t){e.prototype.attach.call(this,t);var r=this.nativeMethods,n=this;if(_(t[r.htmlElementStylePropOwnerName].prototype,"style",{getter:this.FEATURES.css2PropertiesProtoContainsAllProps||this.FEATURES.cssStyleDeclarationContainsAllProps?null:function(){var e=r.htmlElementStyleGetter.call(this);return n.FEATURES.propsCannotBeOverridden?n._getStyleProxy(e):n._processStyleInstance(e)},setter:r.htmlElementStyleSetter?function(e){var t=rd.process(e,Dl);r.htmlElementStyleSetter.call(this,t)}:null}),this.FEATURES.css2PropertiesProtoContainsAllProps){for(var o=0,i=this.URL_PROPS;o<i.length;o++){var a=i[o];this._overrideStyleProp(t.CSS2Properties.prototype,a)}for(var s=0,c=this.DASHED_URL_PROPS;s<c.length;s++){var a=c[s];this._overrideStyleProp(t.CSS2Properties.prototype,a)}}else{if(this.FEATURES.cssStyleDeclarationProtoContainsUrlProps)for(var l=0,u=this.URL_PROPS;l<u.length;l++){var a=u[l];this._overrideStyleProp(t.CSSStyleDeclaration.prototype,a)}if(this.FEATURES.cssStyleDeclarationProtoContainsDashedProps)for(var p=0,h=this.DASHED_URL_PROPS;p<h.length;p++){var a=h[p];this._overrideStyleProp(t.CSSStyleDeclaration.prototype,a)}}_(t.CSSStyleDeclaration.prototype,"cssText",{getter:function(){var e=r.styleCssTextGetter.call(this);return rd.cleanUp(e,jl)},setter:function(e){"string"==typeof e&&(e=rd.process(e,Dl)),r.styleCssTextSetter.call(this,e)}}),x(t.CSSStyleSheet.prototype,"insertRule",function(e,t){var n=rd.process(e,Dl);return r.styleInsertRule.call(this,n,t)}),x(t.CSSStyleDeclaration.prototype,"getPropertyValue",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.styleGetPropertyValue.apply(this,e);return rd.cleanUp(n,jl)}),x(t.CSSStyleDeclaration.prototype,"setProperty",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[1];return"string"==typeof n&&(e[1]=rd.process(n,Dl)),r.styleSetProperty.apply(this,e)}),x(t.CSSStyleDeclaration.prototype,"removeProperty",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.styleRemoveProperty.apply(this,e);return rd.cleanUp(n,jl)}),this.FEATURES.propsCannotBeOverridden&&this._overrideCSSStyleDeclarationFunctionsCtx(t)},t}(Ou),$v="__BROWSERTOOLS_CONSOLE_SAFEFUNC",Xv=function(e){function t(){var t=e.call(this)||this;return t._isDebuggerInitiator=!1,t}return m(t,e),t.prototype._createFuncWrapper=function(e){var t=this;return O(e)?function(e,r){var n=t;return function(){n._isDebuggerInitiator=!0;try{var t=e(arguments);return n._isDebuggerInitiator=!1,t}catch(o){r(o)}n._isDebuggerInitiator=!1}}:e},t.prototype.isDebuggerInitiator=function(){return this._isDebuggerInitiator},t.prototype.attach=function(e){var t=this;if(Mc){var r=this.nativeMethods.objectGetOwnPropertyDescriptor(e,$v),n=void 0;r&&!r.value||(r&&(n=this._createFuncWrapper(r.value)),this.nativeMethods.objectDefineProperty(e,$v,{set:function(e){n=t._createFuncWrapper(e)},get:function(){return n}}))}},t}(Ou),Yv="width=500px, height=500px",Qv="hammerhead|command|store-child-window",Jv=function(e){function t(t,r){var n=e.call(this)||this;return n._messageSandbox=t,n._listeners=r,n.WINDOW_OPENED_EVENT="hammerhead|event|window-opened",n.BEFORE_WINDOW_OPEN_IN_SAME_TAB="hammerhead|event|before-window-open-in-same-tab",n}return m(t,e),t._shouldOpenInNewWindowOnElementAction=function(e,t){var r="string"==typeof Xc.getAttribute.call(e,"download");if(r)return!1;var n=this._calculateTargetForElement(e);return this._shouldOpenInNewWindow(n,t)},t._shouldOpenInNewWindow=function(e,t){return e=e||t,e=e.toLowerCase(),Ma(e)?"_blank"===e:!ma(e)},t.prototype._openUrlInNewWindow=function(e,t,r,n){var o=tc().toString();r=r||Yv,t=t||o;var i=Ce(e,o),a=n||this.window,s=Xc.windowOpen.call(a,i,t,r);return this._tryToStoreChildWindow(s,Ls()),this.emit(this.WINDOW_OPENED_EVENT,{windowId:o,window:s}),{windowId:o,wnd:s}},t._calculateTargetForElement=function(e){var t=Xc.querySelector.call(Ft(e),"base");return e.target||(null===t||void 0===t?void 0:t.target)},t.prototype.handleClickOnLinkOrArea=function(e){var r=this;Cl.get().allowMultipleWindows&&(this._listeners.initElementListening(e,["click"]),this._listeners.addInternalEventAfterListener(e,["click"],function(n){if(!n.defaultPrevented&&t._shouldOpenInNewWindowOnElementAction(e,Rm.linkOrArea)){var o=Xc.anchorHrefGetter.call(e);n.preventDefault(),r._openUrlInNewWindowIfNotPrevented(o,n)}}))},t.prototype._openUrlInNewWindowIfNotPrevented=function(e,t){var r=this,n=!1,o=!1,i=function(){n=!0,Mm.getNativeRemoveEventListener(window).call(window,"click",i),o||r._openUrlInNewWindow(e)};Mm.getNativeAddEventListener(window).call(window,"click",i);var a=t.preventDefault;t.preventDefault=function(){return o=!0,a.call(t)},Us().then(function(){n||i()})},t.prototype.handleWindowOpen=function(e,r){var n=r[0],o=r[1],i=r[2];if(Cl.get().allowMultipleWindows&&t._shouldOpenInNewWindow(o,Rm.windowOpen)){var a=this._openUrlInNewWindow(n,o,i,e);return a.wnd}return Vc&&kc>=15&&this.emit(this.BEFORE_WINDOW_OPEN_IN_SAME_TAB,{url:n}),Xc.windowOpen.apply(e,r)},t.prototype._handleFormSubmitting=function(e){var r=this;Cl.get().allowMultipleWindows&&(this._listeners.initElementListening(e,["submit"]),this._listeners.addInternalEventBeforeListener(e,["submit"],function(e){var n=Xc.eventTargetGetter.call(e);if(br(n)&&t._shouldOpenInNewWindowOnElementAction(n,Rm.form)){var o=Dl(fl),i=r._openUrlInNewWindow(o),a=Xc.formActionGetter.call(n),s=Ce(a,i.windowId);Xc.formActionSetter.call(n,s),Xc.formTargetSetter.call(n,i.windowId)}}))},t.prototype._tryToStoreChildWindow=function(e,t){try{return t[vc.hammerhead].sandbox.childWindow.addWindow(e),!0}catch(r){return!1}},t.prototype._setupChildWindowCollecting=function(e){var t=this;if(!Vt(e)){var r=Ls();e!==r?this._tryToStoreChildWindow(e,r)||this._messageSandbox.sendServiceMsg({cmd:Qv},r):(this._childWindows=new Set,this._messageSandbox.on(this._messageSandbox.SERVICE_MSG_RECEIVED_EVENT,function(e){var r=e.message,n=e.source;r.cmd===Qv&&t._childWindows.add(n)}))}},t.prototype.addWindow=function(e){this._childWindows.add(e)},t.prototype.getChildWindows=function(){var e=this,t=[];return this._childWindows.forEach(function(r){r.parent?t.push(r):e._childWindows["delete"](r)}),t},t.prototype.attach=function(t){e.prototype.attach.call(this,t,t.document),this._handleFormSubmitting(t),this._setupChildWindowCollecting(t)},t}(Ou),Zv=function(t){function r(e){var r=t.call(this)||this;rs(window,r),da(window);var n=new Xv,o=new Mm,i=new hv,a=new fv(o),s=new pv(o,a),c=new lv,l=new Pg(c),u=new dv,p=new Jv(s,o),h=new Ag(s,a,p);return r.ieDebug=n,r.cookie=h,r.childWindow=p,r.storageSandbox=new Bv(o,a,c),r.xhr=new Ev(h),r.fetch=new bv(h),r.iframe=new Dd(i,h),r.shadowUI=new gm(i,s,r.iframe,n),r.upload=new Im(o,c,e),r.event=new Xg(o,c,l,a,s,r.shadowUI,u),r.node=new rm(i,r.iframe,r.event,r.upload,r.shadowUI,h,r.childWindow),r.codeInstrumentation=new ng(r.event,s),r.console=new Wv(s),r.style=new Kv,r.unload=a,Gc&&(r.electron=new Vv),r.windowStorage=xf,r}return m(r,t),r._canUseSandbox=function(e){try{e.off()}catch(t){return!1}return!0},r.prototype.onIframeDocumentRecreated=function(e){if(e){var t=Xc.contentWindowGetter.call(e),n=Xc.contentDocumentGetter.call(e),o=ns(t);o&&r._canUseSandbox(o)?t[vc.sandboxIsReattached]&&o.document===n||o.reattach(t,n):(t[vc.iframeNativeMethods]&&delete t[vc.iframeNativeMethods],this.nativeMethods.restoreDocumentMeths(t,n),this.iframe.onIframeBeganToRun(e))}},r.prototype.reattach=function(e,t){Xc.objectDefineProperty(e,vc.sandboxIsReattached,{value:!0,configurable:!1}),Mc&&this.nativeMethods.refreshIfNecessary(t,e),wl.init(t),this.event.reattach(e),this.shadowUI.attach(e),this.codeInstrumentation.attach(e),this.node.doc.attach(e,t),this.console.attach(e),this.childWindow.attach(e)},r.prototype.attach=function(r){var n=this;t.prototype.attach.call(this,r),Xc.objectDefineProperty(r,vc.sandboxIsReattached,{value:!0,configurable:!1}),wl.init(this.document),this.iframe.on(this.iframe.EVAL_HAMMERHEAD_SCRIPT_EVENT,function(t){Xc.contentWindowGetter.call(t.iframe).eval("(".concat(e.toString(),")();//# sourceURL=hammerhead.js"))}),this.node.mutation.on(this.node.mutation.DOCUMENT_CLEANED_EVENT,function(e){return n.reattach(e.window,e.document)}),this.ieDebug.attach(r),this.iframe.attach(r),this.xhr.attach(r),this.fetch.attach(r),this.storageSandbox.attach(r),this.codeInstrumentation.attach(r),this.shadowUI.attach(r),this.event.attach(r),this.node.attach(r),this.upload.attach(r),this.cookie.attach(r),this.console.attach(r),this.style.attach(r),this.childWindow.attach(r),this.electron&&this.electron.attach(r),this.unload.on(this.unload.UNLOAD_EVENT,function(){return n.dispose()})},r.prototype._removeInternalProperties=function(){var e=this.event.listeners.listeningCtx.removeListeningElement;e(this.window),e(this.document);for(var t=Xc.querySelectorAll.call(this.document,"*"),r=Xc.nodeListLengthGetter.call(t),n=0;n<r;n++){var o=t[n];delete o[vc.processedContext],e(o)}},r.prototype.dispose=function(){this.event.hover.dispose(),this.event.focusBlur.dispose(),la(),ss(),wl.dispose(this.document),this.storageSandbox.dispose(),this._removeInternalProperties()},r}(Ou),ey=50,ty=function(){function e(){this._shouldAddReferer=e._shouldAddReferer(),this._activeServiceMsgCount=0}return e._shouldAddReferer=function(){var e=Nt(window);return e&&Jt(e)},e._getStoredMessages=function(){var e=Xc.winLocalStorageGetter.call(window),t=Xc.storageGetItem.call(e,Cl.get().sessionId);return t?Hp(t):[]},e._storeMessage=function(t){var r=e._getStoredMessages(),n=Xc.winLocalStorageGetter.call(window);r.push(t),Xc.storageSetItem.call(n,Cl.get().sessionId,Up(r))},e._removeMessageFromStore=function(t){for(var r=e._getStoredMessages(),n=r.length,o=Xc.winLocalStorageGetter.call(window),i=0;i<r.length;i++)if(r[i].cmd===t){r.splice(i,1);break}r.length<n&&Xc.storageSetItem.call(o,Cl.get().sessionId,Up(r))},e.prototype.batchUpdate=function(){var t=e._getStoredMessages();if(!t.length)return mc.resolve();var r=[],n=Xc.winLocalStorageGetter.call(window);Xc.storageRemoveItem.call(n,Cl.get().sessionId);for(var o=0,i=t;o<i.length;o++){var a=i[o];r.push(this.queuedAsyncServiceMsg(a))}return mc.all(r)},e.prototype.waitForServiceMessagesCompleted=function(e){var t=this;return new mc(function(r){if(!t._activeServiceMsgCount)return void r();var n=null,o=Xc.setTimeout.call(window,function(){Xc.clearInterval.call(window,n),r()},e);n=Xc.setInterval.call(window,function(){t._activeServiceMsgCount||(Xc.clearInterval.call(window,n),Xc.clearTimeout.call(window,o),r())},ey)})},e}(),ry=function(e){function t(){var t=e.call(this)||this;return t._msgQueue={},t}return m(t,e),t.prototype._performRequest=function(e,t){var r=this;e.sessionId=Cl.get().sessionId,this._shouldAddReferer&&(e.referer=Cl.get().referer);var n=function(o){r._activeServiceMsgCount++;var i=!o,a=r,s=Ev.createNativeXHR(),c=function(){if(500===this.status&&this.responseText)return e.disableResending=!0,void l.call(this);a._activeServiceMsgCount--;var r=this.responseText&&Hp(this.responseText);s=null,t(null,r)},l=function(){if(e.disableResending){a._activeServiceMsgCount--;var r="XHR request failed with ".concat(s.status," status code.");return this.responseText&&(r+="\nError message: ".concat(this.responseText)),void t(new Error(r))}Wc||Hc?(ty._storeMessage(e),c.call(this)):n(!0)};Ev.openNativeXhr(s,Cl.get().serviceMsgUrl,i),o?s.addEventListener("readystatechange",function(){4===this.readyState&&c.call(this)}):(s.addEventListener("load",c),s.addEventListener("abort",l),s.addEventListener("error",l),s.addEventListener("timeout",l)),s.send(Up(e))};ty._removeMessageFromStore(e.cmd),n()},t.prototype.queuedAsyncServiceMsg=function(e){var t=this;this._msgQueue[e.cmd]||(this._msgQueue[e.cmd]=mc.resolve());var r=e.allowRejecting;return e.allowRejecting=!0,this._msgQueue[e.cmd]=this._msgQueue[e.cmd]["catch"](Es).then(function(){return t.asyncServiceMsg(e)}),this._msgQueue[e.cmd]["catch"](function(e){return r?mc.reject(e):rc()})},t.prototype.asyncServiceMsg=function(e){var t=this;return new mc(function(r,n){t._performRequest(e,function(t,o){t?e.allowRejecting&&n(t):r(o)})})},t.prototype.start=function(e){},t}(ty),ny="hammerhead|transport|set-initial-worker-settings",oy="hammerhead|transport|handle-port",iy="hammerhead|command|get-message-port",ay="hammerhead|command|set-message-port",sy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._transportWorker=null,t._idGenerator=new Cd,t._messageCallbacks=new Map,t._queue=[],t}return m(t,e),t.prototype._processQueue=function(){for(var e=0,t=this._queue;e<t.length;e++){var r=t[e];this._transportWorker.postMessage(r)}this._queue.length=0},t.prototype._onWorkerMessage=function(e){var t=e.data,r=t.id,n=t.result;this._messageCallbacks.has(r)&&(this._messageCallbacks.get(r)(n.err,n.data),this._messageCallbacks["delete"](r))},t.prototype.asyncServiceMsg=function(e,t){var r=this;return void 0===t&&(t=!1),new mc(function(n,o){var i=r._idGenerator.increment();++r._activeServiceMsgCount,r._shouldAddReferer&&(e.referer=Cl.get().referer),r._messageCallbacks.set(i,function(t,i){--r._activeServiceMsgCount,t?(e.disableResending||!Wc&&!Hc||(ty._removeMessageFromStore(e.cmd),ty._storeMessage(e),n()),e.allowRejecting&&o(new Error(t))):n(i)}),r._transportWorker?r._transportWorker.postMessage({id:i,queued:t,msg:e}):r._queue.push({id:i,queued:t,msg:e})})},t.prototype.queuedAsyncServiceMsg=function(e){return this.asyncServiceMsg(e,!0)},t.prototype.start=function(e){var t=this;window===window.top?(this._transportWorker=new Xc.Worker(Cl.get().transportWorkerUrl,{name:"Transport"}),this._transportWorker.postMessage({cmd:ny,sessionId:Cl.get().sessionId,serviceMsgUrl:Cl.get().serviceMsgUrl}),this._transportWorker.addEventListener("message",function(e){return t._onWorkerMessage(e)}),this._processQueue()):e.sendServiceMsg({cmd:iy},window.top),e.on(e.SERVICE_MSG_RECEIVED_EVENT,function(r){var n=r.message,o=r.source,i=r.ports;if(n.cmd===iy){var a=new Xc.MessageChannel;e.sendServiceMsg({cmd:ay},o,[a.port1]),t._transportWorker.postMessage({cmd:oy},[a.port2])}else n.cmd===ay&&(t._transportWorker=i[0],t._transportWorker.onmessage=function(e){return t._onWorkerMessage(e)},t._processQueue())})},t}(ty),cy=function(){function e(){}return e.prototype.start=function(e,t){void 0===t&&(t=!0),this._implementation=t?new sy:new ry,this._implementation.start(e)},e.prototype.asyncServiceMsg=function(e){return this._implementation.asyncServiceMsg(e)},e.prototype.queuedAsyncServiceMsg=function(e){return this._implementation.queuedAsyncServiceMsg(e)},e.prototype.batchUpdate=function(){return this._implementation.batchUpdate()},e.prototype.waitForServiceMessagesCompleted=function(e){return this._implementation.waitForServiceMessagesCompleted(e)},e}(),ly=function(e){function t(t,r,n,o){var i=e.call(this)||this;return i._eventSandbox=t,i._codeInstrumentation=r,i._elementSandbox=n,i._childWindowSandbox=o,i.PAGE_NAVIGATION_TRIGGERED_EVENT="hammerhead|event|page-navigation-triggered",i._lastLocationValue=window.location.toString(),i}return m(t,e),t.prototype._formWatch=function(e,r){var n=function(e){var r=t._getTargetWindow(e);t._onNavigationTriggeredInWindow(r,Xc.formActionGetter.call(e))};e.on(e.BEFORE_FORM_SUBMIT_EVENT,function(e){return n(e.form)}),r.listeners.initElementListening(window,["submit"]),r.listeners.addInternalEventBeforeListener(window,["submit"],function(e){var t=!1,o=Xc.eventTargetGetter.call(e);if(br(o)){var i=function(r){t=t||r===e};r.on(r.EVENT_PREVENTED_EVENT,i),Us().then(function(){r.off(r.EVENT_PREVENTED_EVENT,i),e.defaultPrevented||t||n(o)})}})},t._getTargetWindow=function(e){var t=Xc.getAttribute.call(e,_d.getStoredAttrName("target"))||Xc.getAttribute.call(e,"target")||"_self";switch(t){case"_top":return window.top;case"_parent":return window.parent;case"_self":return window;default:return ma(t)}},t.prototype._linkWatch=function(e){e.listeners.initElementListening(window,["click"]),e.listeners.addInternalEventBeforeListener(window,["click"],function(r){var n=Xc.eventTargetGetter.call(r),o=Yr(n)?n:sn(n,"a");if(o&&!Or(o)){var i=!1,a=t._getTargetWindow(o),s=Xc.anchorHrefGetter.call(o),c=function(e){i=i||e===r};e.on(e.EVENT_PREVENTED_EVENT,c),Us().then(function(){e.off(e.EVENT_PREVENTED_EVENT,c),r.defaultPrevented||i||t._onNavigationTriggeredInWindow(a,s)})}})},t.prototype._locationWatch=function(e){var t=this,r=e._locationAccessorsInstrumentation,n=function(e){return t.onNavigationTriggered(e)};r.on(r.LOCATION_CHANGED_EVENT,n)},t._onNavigationTriggeredInWindow=function(e,t){try{e[vc.hammerhead].pageNavigationWatch.onNavigationTriggered(t)}catch(r){}},t.prototype._childWindowWatch=function(e){var t=this;e.on(e.BEFORE_WINDOW_OPEN_IN_SAME_TAB,function(e){var r=e.url;t.onNavigationTriggered(r)})},t.prototype.onNavigationTriggered=function(e){var t=this._lastLocationValue;if(this._lastLocationValue=window.location.toString(),(e===t||"#"!==e.charAt(0)&&!Ue(t,e))&&!_d.isJsProtocol(e)){var r=G(e);r&&this.emit(this.PAGE_NAVIGATION_TRIGGERED_EVENT,r.destUrl)}},t.prototype.start=function(){this._locationWatch(this._codeInstrumentation),this._linkWatch(this._eventSandbox),this._formWatch(this._elementSandbox,this._eventSandbox),this._childWindowWatch(this._childWindowSandbox)},t}(Yc),uy=".".concat(Zc.script),py=function(){function e(){var e=this;this.win=null,this.transport=new cy,this.sandbox=new Zv(this.transport),this.pageNavigationWatch=new ly(this.sandbox.event,this.sandbox.codeInstrumentation,this.sandbox.node.element,this.sandbox.childWindow),this.EVENTS={beforeFormSubmit:this.sandbox.node.element.BEFORE_FORM_SUBMIT_EVENT,beforeBeforeUnload:this.sandbox.event.unload.BEFORE_BEFORE_UNLOAD_EVENT,beforeUnload:this.sandbox.event.unload.BEFORE_UNLOAD_EVENT,unload:this.sandbox.event.unload.UNLOAD_EVENT,bodyCreated:this.sandbox.node.mutation.BODY_CREATED_EVENT,documentCleaned:this.sandbox.node.mutation.DOCUMENT_CLEANED_EVENT,uncaughtJsError:this.sandbox.node.win.UNCAUGHT_JS_ERROR_EVENT,unhandledRejection:this.sandbox.node.win.UNHANDLED_REJECTION_EVENT,startFileUploading:this.sandbox.upload.START_FILE_UPLOADING_EVENT,endFileUploading:this.sandbox.upload.END_FILE_UPLOADING_EVENT,evalIframeScript:this.sandbox.iframe.EVAL_EXTERNAL_SCRIPT_EVENT,
xhrCompleted:this.sandbox.xhr.XHR_COMPLETED_EVENT,xhrError:this.sandbox.xhr.XHR_ERROR_EVENT,beforeXhrSend:this.sandbox.xhr.BEFORE_XHR_SEND_EVENT,fetchSent:this.sandbox.fetch.FETCH_REQUEST_SENT_EVENT,pageNavigationTriggered:this.pageNavigationWatch.PAGE_NAVIGATION_TRIGGERED_EVENT,scriptElementAdded:this.sandbox.node.element.SCRIPT_ELEMENT_ADDED_EVENT,consoleMethCalled:this.sandbox.console.CONSOLE_METH_CALLED_EVENT,windowOpened:this.sandbox.childWindow.WINDOW_OPENED_EVENT},this.PROCESSING_INSTRUCTIONS={dom:{script:$u,internal_attributes:Qc,internal_props:vc}},this.SHADOW_UI_CLASS_NAME=Zc,this.SESSION_COMMAND=Sm,this.EventEmitter=Yc,this.doUpload=function(t,r){return e.sandbox.upload.doUpload(t,r)},this.createNativeXHR=Ev.createNativeXHR,this.processScript=zi,this.Promise=mc,this.json=Bp,this.nativeMethods=this.sandbox.nativeMethods,this.shadowUI=this.sandbox.shadowUI,this.storages=this.sandbox.storageSandbox,this.eventSandbox={listeners:this.sandbox.event.listeners,hover:this.sandbox.event.hover,focusBlur:this.sandbox.event.focusBlur,elementEditingWatcher:this.sandbox.event.elementEditingWatcher,eventSimulator:this.sandbox.event.eventSimulator,selection:this.sandbox.event.selection,message:this.sandbox.event.message,timers:this.sandbox.event.timers,DataTransfer:this.sandbox.event.DataTransfer,DragDataStore:this.sandbox.event.DragDataStore};var t={script:Uh,header:eh,instrumentation:np};this.utils={browser:qc,dom:Nu,event:Rf,position:nm,style:lu,types:zc,trim:k,extend:Ws,html:pf,url:Hl,featureDetection:su,destLocation:Il,overriding:Sc,cookie:Eg,getMimeType:es,urlResolver:wl,processing:t,removeInjectedScript:nc},this.sharedUtils={cookie:ug,url:Sl,headers:yv,stackProcessing:Dp,selfRemovingScripts:jd},this.settings=Cl,this.sandboxes={XhrSandbox:Ev,StyleSandbox:Kv,ShadowUISandbox:gm,ElectronSandbox:Vv,UploadSandbox:Im,ChildWindowSandbox:Jv},this.sandboxUtils={hiddenInfo:If,listeningContext:km,backup:Tm,domMutationTracker:Bf,defaultTarget:Rm,UploadInfoManager:Cm,FileListWrapper:bm,EventListeners:Mm,StorageWrapper:Pv,CodeInstrumentation:ng,LocationInstrumentation:kd,LocationWrapper:Pd},this.processors={styleProcessor:rd,domProcessor:Af,DomProcessor:_d}}return e.prototype._getEventOwner=function(e){switch(e){case this.EVENTS.pageNavigationTriggered:return this.pageNavigationWatch;case this.EVENTS.beforeUnload:case this.EVENTS.beforeBeforeUnload:case this.EVENTS.unload:return this.sandbox.event.unload;case this.EVENTS.bodyCreated:case this.EVENTS.documentCleaned:return this.sandbox.node.mutation;case this.EVENTS.uncaughtJsError:case this.EVENTS.unhandledRejection:return this.sandbox.node.win;case this.EVENTS.startFileUploading:case this.EVENTS.endFileUploading:return this.sandbox.upload;case this.EVENTS.evalIframeScript:return this.sandbox.iframe;case this.EVENTS.xhrCompleted:case this.EVENTS.xhrError:case this.EVENTS.beforeXhrSend:return this.sandbox.xhr;case this.EVENTS.beforeFormSubmit:case this.EVENTS.scriptElementAdded:return this.sandbox.node.element;case this.EVENTS.fetchSent:return this.sandbox.fetch;case this.EVENTS.consoleMethCalled:return this.sandbox.console;case this.EVENTS.windowOpened:return this.sandbox.childWindow;default:return null}},e._cleanLocalStorageServiceData=function(e,t){var r=Xc.winLocalStorageGetter.call(t);Xc.storageRemoveItem.call(r,e)},e._setProxylessForComponents=function(e){for(var t=[Af,wl,rd],r=0;r<t.length;r++)t[r].proxyless=e},e.prototype.on=function(e,t){var r=this._getEventOwner(e);r&&r.on(e,t)},e.prototype.off=function(e,t){var r=this._getEventOwner(e);r&&r.off(e,t)},e.prototype.navigateTo=function(e,t){var r=this,n=!!Cl.get().proxyless,o=we(e,this.win,n);o&&(this.win.location=o,t&&this.sandbox.node.win.on(this.sandbox.node.win.HASH_CHANGE_EVENT,function(){r.win.location.reload()}))},e.prototype.start=function(t,r){this.win=r||window,Cl.set(t),t.isFirstPageLoad&&e._cleanLocalStorageServiceData(t.sessionId,this.win),Af.forceProxySrcForImage=t.forceProxySrcForImage,Af.allowMultipleWindows=t.allowMultipleWindows,e._setProxylessForComponents(t.proxyless),this.transport.start(this.eventSandbox.message,!t.proxyless),this.sandbox.attach(this.win),this.pageNavigationWatch.start()},e}(),hy=new py;Xc.objectDefineProperty(window,vc.hammerhead,{value:hy,configurable:!0});var dy=hy;return dy}()}(),window["%hammerhead%"].utils.removeInjectedScript();