Innovenergy_trunk/frontend/node_modules/testcafe-legacy-api/lib/client/index.js

5 lines
154 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(){function initTestCafeLegacyRunner(window){var document=window.document;!function(hammerhead,testCafeCore,testCafeUI,testcafeAutomation){function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{"default":e}}function forEachSeries(e,t,n){if(n=n||function(){},!e.length)return n();var r=0,i=function(){t(e[r],function(t){t?(n(t),n=function(){}):(r+=1,r===e.length?n():i())})};i()}function wrapTrackableMethods(e,t){testCafeCore.arrayUtils.forEach(t,function(t){var n=e[t];e[t]=function(){var e=Array.prototype.slice.call(arguments);if(Settings.get().ENABLE_SOURCE_INDEX){var t=e[e.length-1],r="string"==typeof t&&t.match(SOURCE_INDEX_ARG_REGEXP);r&&(currentIndex=parseInt(r[1],10),e.pop())}return n.apply(this,e)}})}function createDiffObject(e,t){return{actual:getDescription(e),expected:getDescription(t)}}function isElementsCollection(e){return e instanceof NodeList||e instanceof HTMLCollection}function getObjectsDiff(e,t,n,r){if(r||(r={actual:{},expected:{}}),e===t)return null;if(e instanceof Date&&t instanceof Date){var i=e.getTime(),o=t.getTime();return i===o?null:{actual:i,expected:o,isDates:!0}}if("string"==typeof e&&"string"==typeof t)return getStringDiff(e,t);if(arrayUtils$1.isArray(e)||arrayUtils$1.isArray(t))return arrayUtils$1.isArray(e)&&arrayUtils$1.isArray(t)?getArraysDiff(e,t):createDiffObject(e,t);if(isElementsCollection(e)||isElementsCollection(t)){if(!isElementsCollection(e)||!isElementsCollection(t))return createDiffObject(e,t);var a=arrayUtils$1.from(e),s=arrayUtils$1.from(t);return getArraysDiff(a,s)?createDiffObject(a,s):null}if(domUtils$2.isDomElement(e)||domUtils$2.isDomElement(t))return domUtils$2.isDomElement(e)&&domUtils$2.isDomElement(t)&&e===t?null:createDiffObject(e,t);if(isJqueryObj(e)||isJqueryObj(t))return isJqueryObj(e)&&isJqueryObj(t)&&!getArraysDiff(arrayUtils$1.from(e),arrayUtils$1.from(t))?null:createDiffObject(e,t);if(null===e||"undefined"==typeof e||null===t||"undefined"==typeof t)return createDiffObject(e,t);if("function"==typeof e||"function"==typeof t)return"function"!=typeof e||"function"!=typeof t||e!==t?createDiffObject(e,t):null;if("object"!=typeof e||"object"!=typeof t)return e==t?null:createDiffObject(e,t);if(e.prototype!==t.prototype)return createDiffObject(e,t);var u=getKeys(e),l=getKeys(t);u.sort(),l.sort();var c=getKeysDiff(u,l);if(c){var f=c.actual||c.expected;return{key:n?[n,f].join("."):f,actual:getDescription(e[f],!0),expected:getDescription(t[f],!0),isObjects:!0}}for(var d=null,p=null,h=0;h<u.length;h++){d=u[h];var g=n?[n,d].join("."):d;if(isCircularDependency(r.actual,e[d])&&isCircularDependency(r.expected,t[d]))return null;if(r.actual[g]=e[d],r.expected[g]=t[d],p=getObjectsDiff(e[d],t[d],g,r))return{key:p.key?p.key:g,actual:p.isArrays?getDescription(e[d]):p.actual,expected:p.isArrays?getDescription(t[d]):p.expected,isObjects:!0,diffType:{isObjects:p.isObjects,isArrays:p.isArrays,isStrings:p.isStrings,isDates:p.isDates}}}return null}function isCircularDependency(e,t){if("object"!=typeof t||null===t)return!1;for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t)return!0;return!1}function getArrayDiffIndex(e,t){for(var n=0;n<Math.min(e.length,t.length);n++)if(getObjectsDiff(e[n],t[n]))return n;return e.length!==t.length?Math.min(e.length,t.length):-1}function getKeysDiff(e,t){for(var n=-1,r=0;r<Math.min(e.length,t.length);r++)e[r]!==t[r]&&(n=r);return e.length!==t.length&&(n=Math.min(Math.max(e.length-1,0),Math.max(t.length-1,0))),n>-1?{key:n,actual:getDescription(e[n],!0),expected:getDescription(t[n],!0),isArrays:!0}:null}function getStringDiff(e,t){for(var n=-1,r=Math.min(e.length,t.length),i=0;i<r;i++)if(e[i]!==t[i]){n=i;break}return n<0&&e.length!==t.length&&(n=r?r-1:0),n>-1?{key:n,actual:getDescription(e),expected:getDescription(t),isStrings:!0}:null}function getArraysDiff(e,t){var n=getArrayDiffIndex(e,t),r={};return"string"==typeof e[n]&&"string"==typeof t[n]?(r.isStrings=!0,r.diffIndex=getStringDiff(e[n],t[n]).key):e[n]instanceof Date&&t[n]instanceof Date&&(r.isDates=!0),n>-1?{key:n,actual:r.isDates?e[n].getTime():getDescription(e[n]),expected:r.isDates?t[n].getTime():getDescription(t[n]),isArrays:!0,diffType:r}:null}function getKeys(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function getDescription(e,t){if("string"==typeof e&&!t)return"'"+e+"'";if(e instanceof Date||/string|number|boolean|function/.test(typeof e))return e.toString();if(arrayUtils$1.isArray(e))return getArrayDescription(e);if(isJqueryObj(e))return getArrayDescription(arrayUtils$1.from(e));if(null===e)return"null";if("undefined"==typeof e)return"undefined";if(domUtils$2.isDomElement(e))return domUtils$2.getElementDescription(e);try{return JSON.stringify(e)}catch(n){return e.toString()}}function getArrayDescription(e){for(var t=[],n=0;n<e.length;n++)t.push(getDescription(e[n]));return"["+t.join(", ")+"]"}function fill(){window[AUTOMATIONS_STORAGE_FLAG]={Click:testcafeAutomation.Click,SelectChildClick:testcafeAutomation.SelectChildClick,RClick:testcafeAutomation.RClick,DblClick:testcafeAutomation.DblClick,Hover:testcafeAutomation.Hover,DragToOffset:testcafeAutomation.DragToOffset,DragToElement:testcafeAutomation.DragToElement,SelectText:testcafeAutomation.SelectText,SelectEditableContent:testcafeAutomation.SelectEditableContent,Press:testcafeAutomation.Press,Type:testcafeAutomation.Type,Upload:testcafeAutomation.Upload}}function getAutomations(e){return e[AUTOMATIONS_STORAGE_FLAG]}function exportJQuery(){jQuery=window.jQuery.noConflict(!0)}function init$4(window,undefined$1){var jQueryFunction=function(e,t){function n(e,t,n){n=n||ve;var r,i,o=n.createElement("script");if(o.text=e,t)for(r in Te)i=t[r]||t.getAttribute&&t.getAttribute(r),i&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function r(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?pe[he.call(e)]||"object":typeof e}function i(e){var t=!!e&&"length"in e&&e.length,n=r(e);return!Se(e)&&!_e(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function o(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function a(e,t,n){return Se(t)?Ie.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?Ie.grep(e,function(e){return e===t!==n}):"string"!=typeof t?Ie.grep(e,function(e){return de.call(t,e)>-1!==n}):Ie.filter(t,e,n)}function s(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function u(e){var t={};return Ie.each(e.match(Fe)||[],function(e,n){t[n]=!0}),t}function l(e){return e}function c(e){throw e}function f(e,t,n,r){var i;try{e&&Se(i=e.promise)?i.call(e).done(t).fail(n):e&&Se(i=e.then)?i.call(e,t,n):t.apply(undefined$1,[e].slice(r))}catch(e){n.apply(undefined$1,[e])}}function d(){ve.removeEventListener("DOMContentLoaded",d),e.removeEventListener("load",d),Ie.ready()}function p(e,t){return t.toUpperCase()}function h(e){return e.replace(Le,"ms-").replace(We,p)}function g(){this.expando=Ie.expando+g.uid++}function m(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:He.test(e)?JSON.parse(e):e)}function E(e,t,n){var r;if(n===undefined$1&&1===e.nodeType)if(r="data-"+t.replace(Ve,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n=m(n)}catch(i){}qe.set(e,t,n)}else n=undefined$1;return n}function y(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return Ie.css(e,t,"")},u=s(),l=n&&n[3]||(Ie.cssNumber[t]?"":"px"),c=e.nodeType&&(Ie.cssNumber[t]||"px"!==l&&+u)&&Ye.exec(Ie.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)Ie.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c=2*c,Ie.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function S(e){var t,n=e.ownerDocument,r=e.nodeName,i=Ze[r];return i?i:(t=n.body.appendChild(n.createElement(r)),i=Ie.css(t,"display"),t.parentNode&&t.parentNode.contains(t)&&t.parentNode.removeChild(t),"none"===i&&(i="block"),Ze[r]=i,i)}function _(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=Be.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Ke(r)&&(i[o]=S(r))):"none"!==n&&(i[o]="none",Be.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function v(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],t===undefined$1||t&&o(e,t)?Ie.merge([e],n):n}function T(e,t){for(var n=0,r=e.length;n<r;n++)Be.set(e[n],"globalEval",!t||Be.get(t[n],"globalEval"))}function A(e,t,n,i,o){for(var a,s,u,l,c,f,d=t.createDocumentFragment(),p=[],h=0,g=e.length;h<g;h++)if(a=e[h],a||0===a)if("object"===r(a))Ie.merge(p,a.nodeType?[a]:a);else if(it.test(a)){for(s=s||d.appendChild(t.createElement("div")),u=(tt.exec(a)||["",""])[1].toLowerCase(),l=rt[u]||rt._default,s.innerHTML=l[1]+Ie.htmlPrefilter(a)+l[2],f=l[0];f--;)s=s.lastChild;Ie.merge(p,s.childNodes),s=d.firstChild,s.textContent=""}else p.push(t.createTextNode(a));for(d.textContent="",h=0;a=p[h++];)if(i&&Ie.inArray(a,i)>-1)o&&o.push(a);else if(c=Je(a),s=v(d.appendChild(a),"script"),c&&T(s),n)for(f=0;a=s[f++];)nt.test(a.type||"")&&n.push(a);return d}function I(){return!0}function R(){return!1}function C(e,t){return e===D()==("focus"===t)}function D(){try{return ve.activeElement}catch(e){}}function b(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=undefined$1);for(s in t)b(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=undefined$1):null==i&&("string"==typeof n?(i=r,r=undefined$1):(i=r,r=n,n=undefined$1)),i===!1)i=R;else if(!i)return e;return 1===o&&(a=i,i=function(e){return Ie().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=Ie.guid++)),e.each(function(){Ie.event.add(this,t,i,r,n)})}function x(e,t,n){return n?(Be.set(e,t,!1),void Ie.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=Be.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(Ie.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=le.call(arguments),Be.set(this,t,o),r=n(this,t),this[t](),i=Be.get(this,t),o!==i||r?Be.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(Be.set(this,t,{value:Ie.event.trigger(Ie.extend(o[0],Ie.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void(Be.get(e,t)===undefined$1&&Ie.event.add(e,t,I))}function N(e,t){return o(e,"table")&&o(11!==t.nodeType?t:t.firstChild,"tr")?Ie(e).children("tbody")[0]||e:e}function w(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function O(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function M(e,t){var n,r,i,o,a,s,u;if(1===t.nodeType){if(Be.hasData(e)&&(o=Be.get(e),u=o.events)){Be.remove(t,"handle events");for(i in u)for(n=0,r=u[i].length;n<r;n++)Ie.event.add(t,i,u[i][n])}qe.hasData(e)&&(a=qe.access(e),s=Ie.extend({},a),qe.set(t,s))}}function $(e,t){var n=t.nodeName.toLowerCase();"input"===n&&et.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function F(e,t,r,i){t=ce(t);var o,a,s,u,l,c,f=0,d=e.length,p=d-1,h=t[0],g=Se(h);if(g||d>1&&"string"==typeof h&&!ye.checkClone&&lt.test(h))return e.each(function(n){var o=e.eq(n);g&&(t[0]=h.call(this,n,o.html())),F(o,t,r,i)});if(d&&(o=A(t,e[0].ownerDocument,!1,e,i),a=o.firstChild,1===o.childNodes.length&&(o=a),a||i)){for(s=Ie.map(v(o,"script"),w),u=s.length;f<d;f++)l=o,f!==p&&(l=Ie.clone(l,!0,!0),u&&Ie.merge(s,v(l,"script"))),r.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,Ie.map(s,O),f=0;f<u;f++)l=s[f],nt.test(l.type||"")&&!Be.access(l,"globalEval")&&Ie.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?Ie._evalUrl&&!l.noModule&&Ie._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):n(l.textContent.replace(ct,""),l,c))}return e}function k(e,t,n){for(var r,i=t?Ie.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||Ie.cleanData(v(r)),r.parentNode&&(n&&Je(r)&&T(v(r,"script")),r.parentNode.removeChild(r));return e}function P(e,t,n){var r,i,o,a,s=e.style;return n=n||dt(e),n&&(a=n.getPropertyValue(t)||n[t],""!==a||Je(e)||(a=Ie.style(e,t)),!ye.pixelBoxStyles()&&ft.test(a)&&ht.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),a!==undefined$1?a+"":a}function U(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function L(e){for(var t=e[0].toUpperCase()+e.slice(1),n=gt.length;n--;)if(e=gt[n]+t,e in mt)return e}function W(e){var t=Ie.cssProps[e]||Et[e];return t?t:e in mt?e:Et[e]=L(e)||e}function j(e,t,n){var r=Ye.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function B(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=Ie.css(e,n+Xe[a],!0,i)),r?("content"===n&&(u-=Ie.css(e,"padding"+Xe[a],!0,i)),"margin"!==n&&(u-=Ie.css(e,"border"+Xe[a]+"Width",!0,i))):(u+=Ie.css(e,"padding"+Xe[a],!0,i),"padding"!==n?u+=Ie.css(e,"border"+Xe[a]+"Width",!0,i):s+=Ie.css(e,"border"+Xe[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function q(e,t,n){var r=dt(e),i=!ye.boxSizingReliable()||n,a=i&&"border-box"===Ie.css(e,"boxSizing",!1,r),s=a,u=P(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if(ft.test(u)){if(!n)return u;u="auto"}return(!ye.boxSizingReliable()&&a||!ye.reliableTrDimensions()&&o(e,"tr")||"auto"===u||!parseFloat(u)&&"inline"===Ie.css(e,"display",!1,r))&&e.getClientRects().length&&(a="border-box"===Ie.css(e,"boxSizing",!1,r),s=l in e,s&&(u=e[l])),u=parseFloat(u)||0,u+B(e,t,n||(a?"border":"content"),s,r,u)+"px"}function H(e,t,n,r,i){return new H.prototype.init(e,t,n,r,i)}function V(){At&&(ve.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(V):nativeMethods$5.setTimeout.call(e,V,Ie.fx.interval),Ie.fx.tick())}function G(){return nativeMethods$5.setTimeout.call(e,function(){Tt=undefined$1}),Tt=Date.now()}function Y(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=Xe[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function X(e,t,n){for(var r,i=(z.tweeners[t]||[]).concat(z.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function Q(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,d=this,p={},h=e.style,g=e.nodeType&&Ke(e),m=Be.get(e,"fxshow");n.queue||(a=Ie._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,Ie.queue(e,"fx").length||a.empty.fire()})}));for(r in t)if(i=t[r],It.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||m[r]===undefined$1)continue;g=!0}p[r]=m&&m[r]||Ie.style(e,r)}if(u=!Ie.isEmptyObject(t),u||!Ie.isEmptyObject(p)){f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],l=m&&m.display,null==l&&(l=Be.get(e,"display")),c=Ie.css(e,"display"),"none"===c&&(l?c=l:(_([e],!0),l=e.style.display||l,c=Ie.css(e,"display"),_([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===Ie.css(e,"float")&&(u||(d.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1;for(r in p)u||(m?"hidden"in m&&(g=m.hidden):m=Be.access(e,"fxshow",{display:l}),o&&(m.hidden=!g),g&&_([e],!0),d.done(function(){g||_([e]),Be.remove(e,"fxshow");for(r in p)Ie.style(e,r,p[r])})),u=X(g?m[r]:0,r,d),r in m||(m[r]=u.start,g&&(u.end=u.start,u.start=0))}}function J(e,t){var n,r,i,o,a;for(n in e)if(r=h(n),i=t[r],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=Ie.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function z(e,t,n){var r,i,o=0,a=z.prefilters.length,s=Ie.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=Tt||G(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;a<u;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),o<1&&u?n:(u||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:Ie.extend({},t),opts:Ie.extend(!0,{specialEasing:{},easing:Ie.easing._default},n),originalProperties:t,originalOptions:n,startTime:Tt||G(),duration:n.duration,tweens:[],createTween:function(t,n){var r=Ie.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(J(c,l.opts.specialEasing);o<a;o++)if(r=z.prefilters[o].call(l,e,c,l.opts))return Se(r.stop)&&(Ie._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return Ie.map(c,X,l),Se(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),Ie.fx.timer(Ie.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}function K(e){var t=e.match(Fe)||[];return t.join(" ")}function Z(e){return e.getAttribute&&e.getAttribute("class")||""}function ee(e){return Array.isArray(e)?e:"string"==typeof e?e.match(Fe)||[]:[]}function te(e,t,n,i){var o;if(Array.isArray(t))Ie.each(t,function(t,r){n||kt.test(e)?i(e,r):te(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)});else if(n||"object"!==r(t))i(e,t);else for(o in t)te(e+"["+o+"]",t[o],n,i)}function ne(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Fe)||[];if(Se(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function re(e,t,n,r){function i(s){var u;return o[s]=!0,Ie.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=e===Xt;return i(t.dataTypes[0])||!o["*"]&&i("*")}function ie(e,t){var n,r,i=Ie.ajaxSettings.flatOptions||{};for(n in t)t[n]!==undefined$1&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&Ie.extend(!0,e,r),e}function oe(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),r===undefined$1&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}function ae(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=l[u+" "+o]||l["* "+o],!a)for(i in l)if(s=i.split(" "),s[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){a===!0?a=l[i]:l[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}var se=[],ue=Object.getPrototypeOf,le=se.slice,ce=se.flat?function(e){return se.flat.call(e)}:function(e){return se.concat.apply([],e)},fe=se.push,de=se.indexOf,pe={},he=pe.toString,ge=pe.hasOwnProperty,me=ge.toString,Ee=me.call(Object),ye={},Se=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},_e=function(e){return null!=e&&e===e.window},ve=e.document,Te={type:!0,src:!0,nonce:!0,noModule:!0},Ae="3.5.1",Ie=function(e,t){return new Ie.fn.init(e,t)};Ie.fn=Ie.prototype={jquery:Ae,constructor:Ie,length:0,toArray:function(){return le.call(this)},get:function(e){return null==e?le.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=Ie.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return Ie.each(this,e)},map:function(e){return this.pushStack(Ie.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(le.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(Ie.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(Ie.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:fe,sort:se.sort,splice:se.splice},Ie.extend=Ie.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||Se(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(Ie.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||Ie.isPlainObject(n)?n:{},i=!1,a[t]=Ie.extend(l,o,r)):r!==undefined$1&&(a[t]=r));return a},Ie.extend({expando:"jQuery"+(Ae+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==he.call(e))&&(!(t=ue(e))||(n=ge.call(t,"constructor")&&t.constructor,"function"==typeof n&&me.call(n)===Ee))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,r){n(e,{nonce:t&&t.nonce},r)},each:function(e,t){var n,r=0;if(i(e))for(n=e.length;r<n&&t.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(i(Object(e))?Ie.merge(n,"string"==typeof e?[e]:e):fe.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:de.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,s=!n;o<a;o++)r=!t(e[o],o),r!==s&&i.push(e[o]);return i},map:function(e,t,n){var r,o,a=0,s=[];if(i(e))for(r=e.length;a<r;a++)o=t(e[a],a,n),null!=o&&s.push(o);else for(a in e)o=t(e[a],a,n),null!=o&&s.push(o);return ce(s)},guid:1,support:ye}),"function"==typeof Symbol&&(Ie.fn[Symbol.iterator]=se[Symbol.iterator]),Ie.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){pe["[object "+t+"]"]=t.toLowerCase()});var Re=function(e){function t(e,t,n,r){var i,o,a,s,u,l,c,d=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!r&&(O(t),t=t||M,F)){if(11!==h&&(u=Se.exec(e)))if(i=u[1]){if(9===h){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(d&&(a=d.getElementById(i))&&L(t,a)&&a.id===i)return n.push(a),n}else{if(u[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&T.getElementsByClassName&&t.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(i)),n}if(T.qsa&&!Y[e+" "]&&(!k||!k.test(e))&&(1!==h||"object"!==t.nodeName.toLowerCase())){if(c=e,d=t,1===h&&(fe.test(e)||ce.test(e))){for(d=_e.test(e)&&f(t.parentNode)||t,d===t&&T.scope||((s=t.getAttribute("id"))?s=s.replace(Ae,Ie):t.setAttribute("id",s=W)),l=C(e),o=l.length;o--;)l[o]=(s?"#"+s:":scope")+" "+p(l[o]);c=l.join(",")}try{return Z.apply(n,d.querySelectorAll(c)),n}catch(g){Y(e,!0)}finally{s===W&&t.removeAttribute("id")}}}return b(e.replace(ue,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>A.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[W]=!0,e}function i(e){var t=M.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)A.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Ce(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function c(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function f(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function d(){}function p(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function h(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=q++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,d=[B,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(f=t[W]||(t[W]={}),c=f[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===B&&l[1]===s)return d[2]=l[2];if(c[o]=d,d[2]=e(t,n,u))return!0}return!1}}function g(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function E(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function y(e,t,n,i,o,a){return i&&!i[W]&&(i=y(i)),o&&!o[W]&&(o=y(o,a)),r(function(r,a,s,u){var l,c,f,d=[],p=[],h=a.length,g=r||m(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?g:E(g,d,e,s,u),S=n?o||(r?e:h||i)?[]:a:y;if(n&&n(y,S,s,u),i)for(l=E(S,p),i(l,[],s,u),c=l.length;c--;)(f=l[c])&&(S[p[c]]=!(y[p[c]]=f));if(r){if(o||e){if(o){for(l=[],c=S.length;c--;)(f=S[c])&&l.push(y[c]=f);o(null,S=[],l,u)}for(c=S.length;c--;)(f=S[c])&&(l=o?te(r,f):d[c])>-1&&(r[l]=!(a[l]=f))}}else S=E(S===a?S.splice(h,S.length):S),o?o(null,a,S,u):Z.apply(a,S)})}function S(e){for(var t,n,r,i=e.length,o=A.relative[e[0].type],a=o||A.relative[" "],s=o?1:0,u=h(function(e){return e===t},a,!0),l=h(function(e){return te(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==x)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];s<i;s++)if(n=A.relative[e[s].type])c=[h(g(c),n)];else{if(n=A.filter[e[s].type].apply(null,e[s].matches),n[W]){for(r=++s;r<i&&!A.relative[e[r].type];r++);return y(s>1&&g(c),s>1&&p(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ue,"$1"),n,s<r&&S(e.slice(s,r)),r<i&&S(e=e.slice(r)),r<i&&p(e))}c.push(n)}return g(c)}function _(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,u,l){var c,f,d,p=0,h="0",g=r&&[],m=[],y=x,S=r||o&&A.find.TAG("*",l),_=B+=null==y?1:Math.random()||.1,v=S.length;for(l&&(x=a==M||a||l);h!==v&&null!=(c=S[h]);h++){if(o&&c){for(f=0,a||c.ownerDocument==M||(O(c),s=!F);d=e[f++];)if(d(c,a||M,s)){u.push(c);break}l&&(B=_)}i&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(g,m,a,s);if(r){if(p>0)for(;h--;)g[h]||m[h]||(m[h]=z.call(u));m=E(m)}Z.apply(u,m),l&&!r&&m.length>0&&p+n.length>1&&t.uniqueSort(u)}return l&&(B=_,x=y),g};return i?r(a):a}var v,T,A,I,R,C,D,b,x,N,w,O,M,$,F,k,P,U,L,W="sizzle"+1*new Date,j=e.document,B=0,q=0,H=n(),V=n(),G=n(),Y=n(),X=function(e,t){return e===t&&(w=!0),0},Q={}.hasOwnProperty,J=[],z=J.pop,K=J.push,Z=J.push,ee=J.slice,te=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},ne="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",re="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\[\\da-fA-F]{1,6}"+re+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",oe="\\["+re+"*("+ie+")(?:"+re+"*([*^$|!~]?=)"+re+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+re+"*\\]",ae=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",se=new RegExp(re+"+","g"),ue=new RegExp("^"+re+"+|((?:^|[^\\\\])(?:\\\\.)*)"+re+"+$","g"),le=new RegExp("^"+re+"*,"+re+"*"),ce=new RegExp("^"+re+"*([>+~]|"+re+")"+re+"*"),fe=new RegExp(re+"|>"),de=new RegExp(ae),pe=new RegExp("^"+ie+"$"),he={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie+"|[*])"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+re+"*(even|odd|(([+-]|)(\\d*)n|)"+re+"*(?:([+-]|)"+re+"*(\\d+)|))"+re+"*\\)|)","i"),bool:new RegExp("^(?:"+ne+")$","i"),needsContext:new RegExp("^"+re+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+re+"*((?:-\\d)?\\d*)"+re+"*\\)|)(?=[^-]|$)","i")},ge=/HTML$/i,me=/^(?:input|select|textarea|button)$/i,Ee=/^h\d$/i,ye=/^[^{]+\{\s*\[native \w/,Se=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_e=/[+~]/,ve=new RegExp("\\\\[\\da-fA-F]{1,6}"+re+"?|\\\\([^\\r\\n\\f])","g"),Te=function(e,t){var n="0x"+e.slice(1)-65536;return t?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},Ae=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Ie=function(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Re=function(){O()},Ce=h(function(e){return e.disabled===!0&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Z.apply(J=ee.call(j.childNodes),j.childNodes),J[j.childNodes.length].nodeType}catch(De){Z={apply:J.length?function(e,t){K.apply(e,ee.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}T=t.support={},R=t.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!ge.test(t||n&&n.nodeName||"HTML")},O=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:j;return r!=M&&9===r.nodeType&&r.documentElement?(M=r,$=M.documentElement,F=!R(M),j!=M&&(n=M.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Re,!1):n.attachEvent&&n.attachEvent("onunload",Re)),T.scope=i(function(e){return $.appendChild(e).appendChild(M.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),T.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),T.getElementsByTagName=i(function(e){return e.appendChild(M.createComment("")),!e.getElementsByTagName("*").length}),T.getElementsByClassName=ye.test(M.getElementsByClassName),T.getById=i(function(e){return $.appendChild(e).id=W,!M.getElementsByName||!M.getElementsByName(W).length}),T.getById?(A.filter.ID=function(e){var t=e.replace(ve,Te);return function(e){return e.getAttribute("id")===t}},A.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&F){var n=t.getElementById(e);return n?[n]:[]}}):(A.filter.ID=function(e){var t=e.replace(ve,Te);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},A.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&F){var n,r,i,o=t.getElementById(e);if(o){if(n=o.getAttributeNode("id"),n&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if(n=o.getAttributeNode("id"),n&&n.value===e)return[o]}return[]}}),A.find.TAG=T.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):T.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},A.find.CLASS=T.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&F)return t.getElementsByClassName(e)},P=[],k=[],(T.qsa=ye.test(M.querySelectorAll))&&(i(function(e){var t;$.appendChild(e).innerHTML="<a id='"+W+"'></a><select id='"+W+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&k.push("[*^$]="+re+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||k.push("\\["+re+"*(?:value|"+ne+")"),e.querySelectorAll("[id~="+W+"-]").length||k.push("~="),t=M.createElement("input"),t.setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||k.push("\\["+re+"*name"+re+"*="+re+"*(?:''|\"\")"),
e.querySelectorAll(":checked").length||k.push(":checked"),e.querySelectorAll("a#"+W+"+*").length||k.push(".#.+[+~]"),e.querySelectorAll("\\\f"),k.push("[\\r\\n\\f]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=M.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&k.push("name"+re+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&k.push(":enabled",":disabled"),$.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&k.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),k.push(",.*:")})),(T.matchesSelector=ye.test(U=$.matches||$.webkitMatchesSelector||$.mozMatchesSelector||$.oMatchesSelector||$.msMatchesSelector))&&i(function(e){T.disconnectedMatch=U.call(e,"*"),U.call(e,"[s!='']:x"),P.push("!=",ae)}),k=k.length&&new RegExp(k.join("|")),P=P.length&&new RegExp(P.join("|")),t=ye.test($.compareDocumentPosition),L=t||ye.test($.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},X=t?function(e,t){if(e===t)return w=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!T.sortDetached&&t.compareDocumentPosition(e)===n?e==M||e.ownerDocument==j&&L(j,e)?-1:t==M||t.ownerDocument==j&&L(j,t)?1:N?te(N,e)-te(N,t):0:4&n?-1:1)}:function(e,t){if(e===t)return w=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o)return e==M?-1:t==M?1:i?-1:o?1:N?te(N,e)-te(N,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]==j?-1:u[r]==j?1:0},M):M},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if(O(e),T.matchesSelector&&F&&!Y[n+" "]&&(!P||!P.test(n))&&(!k||!k.test(n)))try{var r=U.call(e,n);if(r||T.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){Y(n,!0)}return t(n,M,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!=M&&O(e),L(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!=M&&O(e);var n=A.attrHandle[t.toLowerCase()],r=n&&Q.call(A.attrHandle,t.toLowerCase())?n(e,t,!F):undefined$1;return r!==undefined$1?r:T.attributes||!F?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(Ae,Ie)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(w=!T.detectDuplicates,N=!T.sortStable&&e.slice(0),e.sort(X),w){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return N=null,e},I=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=I(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=I(t);return n},A=t.selectors={cacheLength:50,createPseudo:r,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ve,Te),e[3]=(e[3]||e[4]||e[5]||"").replace(ve,Te),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=C(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ve,Te).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=H[e+" "];return t||(t=new RegExp("(^|"+re+")"+e+"("+re+"|$)"))&&H(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(se," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,d,p,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,E=s&&t.nodeName.toLowerCase(),y=!u&&!s,S=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===E:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(d=m,f=d[W]||(d[W]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),l=c[e]||[],p=l[0]===B&&l[1],S=p&&l[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(S=p=0)||h.pop();)if(1===d.nodeType&&++S&&d===t){c[e]=[B,p,S];break}}else if(y&&(d=t,f=d[W]||(d[W]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),l=c[e]||[],p=l[0]===B&&l[1],S=p),S===!1)for(;(d=++p&&d&&d[g]||(S=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==E:1!==d.nodeType)||!++S||(y&&(f=d[W]||(d[W]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),c[e]=[B,S]),d!==t)););return S-=i,S===r||S%r===0&&S/r>=0}}},PSEUDO:function(e,n){var i,o=A.pseudos[e]||A.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[W]?o(n):o.length>1?(i=[e,e,"",n],A.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=te(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=D(e.replace(ue,"$1"));return i[W]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(ve,Te),function(t){return(t.textContent||I(t)).indexOf(e)>-1}}),lang:r(function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ve,Te).toLowerCase(),function(t){var n;do if(n=F?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===$},focus:function(e){return e===M.activeElement&&(!M.hasFocus||M.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:l(!1),disabled:l(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!A.pseudos.empty(e)},header:function(e){return Ee.test(e.nodeName)},input:function(e){return me.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[n<0?n+t:n]}),even:c(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:c(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},A.pseudos.nth=A.pseudos.eq;for(v in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})A.pseudos[v]=s(v);for(v in{submit:!0,reset:!0})A.pseudos[v]=u(v);return d.prototype=A.filters=A.pseudos,A.setFilters=new d,C=t.tokenize=function(e,n){var r,i,o,a,s,u,l,c=V[e+" "];if(c)return n?0:c.slice(0);for(s=e,u=[],l=A.preFilter;s;){r&&!(i=le.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=ce.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ue," ")}),s=s.slice(r.length));for(a in A.filter)!(i=he[a].exec(s))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):V(e,u).slice(0)},D=t.compile=function(e,t){var n,r=[],i=[],o=G[e+" "];if(!o){for(t||(t=C(e)),n=t.length;n--;)o=S(t[n]),o[W]?r.push(o):i.push(o);o=G(e,_(i,r)),o.selector=e}return o},b=t.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&C(e=l.selector||e);if(n=n||[],1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&9===t.nodeType&&F&&A.relative[o[1].type]){if(t=(A.find.ID(a.matches[0].replace(ve,Te),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=he.needsContext.test(e)?0:o.length;i--&&(a=o[i],!A.relative[s=a.type]);)if((u=A.find[s])&&(r=u(a.matches[0].replace(ve,Te),_e.test(o[0].type)&&f(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&p(o),!e)return Z.apply(n,r),n;break}}return(l||D(e,c))(r,t,!F,n,!t||_e.test(e)&&f(t.parentNode)||t),n},T.sortStable=W.split("").sort(X).join("")===W,T.detectDuplicates=!!w,O(),T.sortDetached=i(function(e){return 1&e.compareDocumentPosition(M.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),T.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(ne,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);Ie.find=Re,Ie.expr=Re.selectors,Ie.expr[":"]=Ie.expr.pseudos,Ie.uniqueSort=Ie.unique=Re.uniqueSort,Ie.text=Re.getText,Ie.isXMLDoc=Re.isXML,Ie.contains=Re.contains,Ie.escapeSelector=Re.escape;var Ce=function(e,t,n){for(var r=[],i=n!==undefined$1;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&Ie(e).is(n))break;r.push(e)}return r},De=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},be=Ie.expr.match.needsContext,xe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Ie.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?Ie.find.matchesSelector(r,e)?[r]:[]:Ie.find.matches(e,Ie.grep(t,function(e){return 1===e.nodeType}))},Ie.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(Ie(e).filter(function(){for(t=0;t<r;t++)if(Ie.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)Ie.find(e,i[t],n);return r>1?Ie.uniqueSort(n):n},filter:function(e){return this.pushStack(a(this,e||[],!1))},not:function(e){return this.pushStack(a(this,e||[],!0))},is:function(e){return!!a(this,"string"==typeof e&&be.test(e)?Ie(e):e||[],!1).length}});var Ne,we=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Oe=Ie.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ne,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:we.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof Ie?t[0]:t,Ie.merge(this,Ie.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:ve,!0)),xe.test(r[1])&&Ie.isPlainObject(t))for(r in t)Se(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=ve.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):Se(e)?n.ready!==undefined$1?n.ready(e):e(Ie):Ie.makeArray(e,this)};Oe.prototype=Ie.fn,Ne=Ie(ve);var Me=/^(?:parents|prev(?:Until|All))/,$e={children:!0,contents:!0,next:!0,prev:!0};Ie.fn.extend({has:function(e){var t=Ie(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(Ie.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&Ie(e);if(!be.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&Ie.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?Ie.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?de.call(Ie(e),this[0]):de.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Ie.uniqueSort(Ie.merge(this.get(),Ie(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Ie.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Ce(e,"parentNode")},parentsUntil:function(e,t,n){return Ce(e,"parentNode",n)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return Ce(e,"nextSibling")},prevAll:function(e){return Ce(e,"previousSibling")},nextUntil:function(e,t,n){return Ce(e,"nextSibling",n)},prevUntil:function(e,t,n){return Ce(e,"previousSibling",n)},siblings:function(e){return De((e.parentNode||{}).firstChild,e)},children:function(e){return De(e.firstChild)},contents:function(e){return null!=e.contentDocument&&ue(e.contentDocument)?e.contentDocument:(o(e,"template")&&(e=e.content||e),Ie.merge([],e.childNodes))}},function(e,t){Ie.fn[e]=function(n,r){var i=Ie.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=Ie.filter(r,i)),this.length>1&&($e[e]||Ie.uniqueSort(i),Me.test(e)&&i.reverse()),this.pushStack(i)}});var Fe=/[^\x20\t\r\n\f]+/g;Ie.Callbacks=function(e){e="string"==typeof e?u(e):Ie.extend({},e);var t,n,i,o,a=[],s=[],l=-1,c=function(){for(o=o||e.once,i=t=!0;s.length;l=-1)for(n=s.shift();++l<a.length;)a[l].apply(n[0],n[1])===!1&&e.stopOnFalse&&(l=a.length,n=!1);e.memory||(n=!1),t=!1,o&&(a=n?[]:"")},f={add:function(){return a&&(n&&!t&&(l=a.length-1,s.push(n)),function i(t){Ie.each(t,function(t,n){Se(n)?e.unique&&f.has(n)||a.push(n):n&&n.length&&"string"!==r(n)&&i(n)})}(arguments),n&&!t&&c()),this},remove:function(){return Ie.each(arguments,function(e,t){for(var n;(n=Ie.inArray(t,a,n))>-1;)a.splice(n,1),n<=l&&l--}),this},has:function(e){return e?Ie.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return o=s=[],n||t||(a=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!i}};return f},Ie.extend({Deferred:function(t){var n=[["notify","progress",Ie.Callbacks("memory"),Ie.Callbacks("memory"),2],["resolve","done",Ie.Callbacks("once memory"),Ie.Callbacks("once memory"),0,"resolved"],["reject","fail",Ie.Callbacks("once memory"),Ie.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},"catch":function(e){return i.then(null,e)},pipe:function(){var e=arguments;return Ie.Deferred(function(t){Ie.each(n,function(n,r){var i=Se(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&Se(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var s=this,u=arguments,f=function(){var e,f;if(!(t<a)){if(e=r.apply(s,u),e===n.promise())throw new TypeError("Thenable self-resolution");f=e&&("object"==typeof e||"function"==typeof e)&&e.then,Se(f)?i?f.call(e,o(a,n,l,i),o(a,n,c,i)):(a++,f.call(e,o(a,n,l,i),o(a,n,c,i),o(a,n,l,n.notifyWith))):(r!==l&&(s=undefined$1,u=[e]),(i||n.resolveWith)(s,u))}},d=i?f:function(){try{f()}catch(e){Ie.Deferred.exceptionHook&&Ie.Deferred.exceptionHook(e,d.stackTrace),t+1>=a&&(r!==c&&(s=undefined$1,u=[e]),n.rejectWith(s,u))}};t?d():(Ie.Deferred.getStackHook&&(d.stackTrace=Ie.Deferred.getStackHook()),nativeMethods$5.setTimeout.call(e,d))}}var a=0;return Ie.Deferred(function(e){n[0][3].add(o(0,e,Se(i)?i:l,e.notifyWith)),n[1][3].add(o(0,e,Se(t)?t:l)),n[2][3].add(o(0,e,Se(r)?r:c))}).promise()},promise:function(e){return null!=e?Ie.extend(e,i):i}},o={};return Ie.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?undefined$1:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=le.call(arguments),o=Ie.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?le.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(f(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||Se(i[n]&&i[n].then)))return o.then();for(;n--;)f(i[n],a(n),o.reject);return o.promise()}});var ke=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Ie.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&ke.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},Ie.readyException=function(t){nativeMethods$5.setTimeout.call(e,function(){throw t})};var Pe=Ie.Deferred();Ie.fn.ready=function(e){return Pe.then(e)["catch"](function(e){Ie.readyException(e)}),this},Ie.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--Ie.readyWait:Ie.isReady)||(Ie.isReady=!0,e!==!0&&--Ie.readyWait>0||Pe.resolveWith(ve,[Ie]))}}),Ie.ready.then=Pe.then,"complete"===ve.readyState||"loading"!==ve.readyState&&!ve.documentElement.doScroll?nativeMethods$5.setTimeout.call(e,Ie.ready):(ve.addEventListener("DOMContentLoaded",d),e.addEventListener("load",d));var Ue=function(e,t,n,i,o,a,s){var u=0,l=e.length,c=null==n;if("object"===r(n)){o=!0;for(u in n)Ue(e,t,u,n[u],!0,a,s)}else if(i!==undefined$1&&(o=!0,Se(i)||(s=!0),c&&(s?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(Ie(e),n)})),t))for(;u<l;u++)t(e[u],n,s?i:i.call(e[u],u,t(e[u],n)));return o?e:c?t.call(e):l?t(e[0],n):a},Le=/^-ms-/,We=/-([a-z])/g,je=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};g.uid=1,g.prototype={cache:function(e){var t=e[this.expando];return t||(t={},je(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[h(t)]=n;else for(r in t)i[h(r)]=t[r];return i},get:function(e,t){return t===undefined$1?this.cache(e):e[this.expando]&&e[this.expando][h(t)]},access:function(e,t,n){return t===undefined$1||t&&"string"==typeof t&&n===undefined$1?this.get(e,t):(this.set(e,t,n),n!==undefined$1?n:t)},remove:function(e,t){var n,r=e[this.expando];if(r!==undefined$1){if(t!==undefined$1){Array.isArray(t)?t=t.map(h):(t=h(t),t=t in r?[t]:t.match(Fe)||[]),n=t.length;for(;n--;)delete r[t[n]]}(t===undefined$1||Ie.isEmptyObject(r))&&(e.nodeType?e[this.expando]=undefined$1:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==undefined$1&&!Ie.isEmptyObject(t)}};var Be=new g,qe=new g,He=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ve=/[A-Z]/g;Ie.extend({hasData:function(e){return qe.hasData(e)||Be.hasData(e)},data:function(e,t,n){return qe.access(e,t,n)},removeData:function(e,t){qe.remove(e,t)},_data:function(e,t,n){return Be.access(e,t,n)},_removeData:function(e,t){Be.remove(e,t)}}),Ie.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(e===undefined$1){if(this.length&&(i=qe.get(o),1===o.nodeType&&!Be.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=h(r.slice(5)),E(o,r,i[r])));Be.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){qe.set(this,e)}):Ue(this,function(t){var n;if(o&&t===undefined$1){if(n=qe.get(o,e),n!==undefined$1)return n;if(n=E(o,e),n!==undefined$1)return n}else this.each(function(){qe.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){qe.remove(this,e)})}}),Ie.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Be.get(e,t),n&&(!r||Array.isArray(n)?r=Be.access(e,t,Ie.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=Ie.queue(e,t),r=n.length,i=n.shift(),o=Ie._queueHooks(e,t),a=function(){Ie.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Be.get(e,n)||Be.access(e,n,{empty:Ie.Callbacks("once memory").add(function(){Be.remove(e,[t+"queue",n])})})}}),Ie.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?Ie.queue(this[0],e):t===undefined$1?this:this.each(function(){var n=Ie.queue(this,e,t);Ie._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&Ie.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Ie.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=Ie.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=undefined$1),e=e||"fx";a--;)n=Be.get(o[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var Ge=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ye=new RegExp("^(?:([+-])=|)("+Ge+")([a-z%]*)$","i"),Xe=["Top","Right","Bottom","Left"],Qe=ve.documentElement,Je=function(e){return Ie.contains(e.ownerDocument,e)},ze={composed:!0};Qe.getRootNode&&(Je=function(e){return Ie.contains(e.ownerDocument,e)||e.getRootNode(ze)===e.ownerDocument});var Ke=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&Je(e)&&"none"===Ie.css(e,"display")},Ze={};Ie.fn.extend({show:function(){return _(this,!0)},hide:function(){return _(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ke(this)?Ie(this).show():Ie(this).hide()})}});var et=/^(?:checkbox|radio)$/i,tt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,nt=/^$|^module$|\/(?:java|ecma)script/i;!function(){var e=ve.createDocumentFragment(),t=e.appendChild(ve.createElement("div")),n=ve.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),ye.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",ye.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="<option></option>",ye.option=!!t.lastChild}();var rt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};rt.tbody=rt.tfoot=rt.colgroup=rt.caption=rt.thead,rt.th=rt.td,ye.option||(rt.optgroup=rt.option=[1,"<select multiple='multiple'>","</select>"]);var it=/<|&#?\w+;/,ot=/^key/,at=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,st=/^([^.]*)(?:\.(.+)|)/;Ie.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,d,p,h,g,m=Be.get(e);if(je(e))for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&Ie.find.matchesSelector(Qe,i),n.guid||(n.guid=Ie.guid++),(u=m.events)||(u=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return"undefined"!=typeof Ie&&Ie.event.triggered!==t.type?Ie.event.dispatch.apply(e,arguments):undefined$1}),t=(t||"").match(Fe)||[""],l=t.length;l--;)s=st.exec(t[l])||[],p=g=s[1],h=(s[2]||"").split(".").sort(),p&&(f=Ie.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=Ie.event.special[p]||{},c=Ie.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Ie.expr.match.needsContext.test(i),namespace:h.join(".")},o),(d=u[p])||(d=u[p]=[],d.delegateCount=0,f.setup&&f.setup.call(e,r,h,a)!==!1||e.addEventListener&&e.addEventListener(p,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,c):d.push(c),Ie.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,d,p,h,g,m=Be.hasData(e)&&Be.get(e);if(m&&(u=m.events)){for(t=(t||"").match(Fe)||[""],l=t.length;l--;)if(s=st.exec(t[l])||[],p=g=s[1],h=(s[2]||"").split(".").sort(),p){for(f=Ie.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,d=u[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(e,c));a&&!d.length&&(f.teardown&&f.teardown.call(e,h,m.handle)!==!1||Ie.removeEvent(e,p,m.handle),delete u[p])}else for(p in u)Ie.event.remove(e,p+t[l],n,r,!0);Ie.isEmptyObject(u)&&Be.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=Ie.event.fix(e),l=(Be.get(this,"events")||Object.create(null))[u.type]||[],c=Ie.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,u)!==!1){for(a=Ie.event.handlers.call(this,u,l),t=0;(i=a[t++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&o.namespace!==!1&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,r=((Ie.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),r!==undefined$1&&(u.result=r)===!1&&(u.preventDefault(),u.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||l.disabled!==!0)){for(o=[],a={},n=0;n<u;n++)r=t[n],i=r.selector+" ",a[i]===undefined$1&&(a[i]=r.needsContext?Ie(i,this).index(l)>-1:Ie.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(Ie.Event.prototype,e,{enumerable:!0,configurable:!0,get:Se(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[Ie.expando]?e:new Ie.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return et.test(t.type)&&t.click&&o(t,"input")&&x(t,"click",I),!1},trigger:function(e){var t=this||e;return et.test(t.type)&&t.click&&o(t,"input")&&x(t,"click"),!0},_default:function(e){var t=e.target;return et.test(t.type)&&t.click&&o(t,"input")&&Be.get(t,"click")||o(t,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined$1&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},Ie.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},Ie.Event=function(e,t){return this instanceof Ie.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined$1&&e.returnValue===!1?I:R,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&Ie.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),void(this[Ie.expando]=!0)):new Ie.Event(e,t)},Ie.Event.prototype={constructor:Ie.Event,isDefaultPrevented:R,isPropagationStopped:R,isImmediatePropagationStopped:R,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=I,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=I,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=I,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},Ie.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ot.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&t!==undefined$1&&at.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},Ie.event.addProp),Ie.each({focus:"focusin",blur:"focusout"},function(e,t){Ie.event.special[e]={setup:function(){return x(this,e,C),!1},trigger:function(){return x(this,e),!0},delegateType:t}}),Ie.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){Ie.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||Ie.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),Ie.fn.extend({on:function(e,t,n,r){return b(this,e,t,n,r)},one:function(e,t,n,r){return b(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,Ie(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return t!==!1&&"function"!=typeof t||(n=t,t=undefined$1),n===!1&&(n=R),this.each(function(){Ie.event.remove(this,e,n,t)})}});var ut=/<script|<style|<link/i,lt=/checked\s*(?:[^=]|=\s*.checked.)/i,ct=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;Ie.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=Je(e);if(!(ye.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Ie.isXMLDoc(e)))for(a=v(s),o=v(e),r=0,i=o.length;r<i;r++)$(o[r],a[r]);if(t)if(n)for(o=o||v(e),a=a||v(s),r=0,i=o.length;r<i;r++)M(o[r],a[r]);else M(e,s);return a=v(s,"script"),a.length>0&&T(a,!u&&v(e,"script")),s},cleanData:function(e){for(var t,n,r,i=Ie.event.special,o=0;(n=e[o])!==undefined$1;o++)if(je(n)){if(t=n[Be.expando]){if(t.events)for(r in t.events)i[r]?Ie.event.remove(n,r):Ie.removeEvent(n,r,t.handle);n[Be.expando]=undefined$1}n[qe.expando]&&(n[qe.expando]=undefined$1)}}}),Ie.fn.extend({detach:function(e){return k(this,e,!0)},remove:function(e){return k(this,e)},text:function(e){return Ue(this,function(e){return e===undefined$1?Ie.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return F(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=N(this,e);t.appendChild(e)}})},prepend:function(){return F(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=N(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return F(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return F(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Ie.cleanData(v(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return Ie.clone(this,e,t)})},html:function(e){return Ue(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined$1&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ut.test(e)&&!rt[(tt.exec(e)||["",""])[1].toLowerCase()]){e=Ie.htmlPrefilter(e);
try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(Ie.cleanData(v(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return F(this,arguments,function(t){var n=this.parentNode;Ie.inArray(this,e)<0&&(Ie.cleanData(v(this)),n&&n.replaceChild(t,this))},e)}}),Ie.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Ie.fn[e]=function(e){for(var n,r=[],i=Ie(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),Ie(i[a])[t](n),fe.apply(r,n.get());return this.pushStack(r)}});var ft=new RegExp("^("+Ge+")(?!px)[a-z%]+$","i"),dt=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},pt=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=o[i];return r},ht=new RegExp(Xe.join("|"),"i");!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Qe.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);r="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",a=36===n(t.right),i=36===n(t.width),c.style.position="absolute",o=12===n(c.offsetWidth/3),Qe.contains(l)&&Qe.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var r,i,o,a,s,u,l=ve.createElement("div"),c=ve.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",ye.clearCloneStyle="content-box"===c.style.backgroundClip,Ie.extend(ye,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,r,i;return null==s&&(t=ve.createElement("table"),n=ve.createElement("tr"),r=ve.createElement("div"),t.style.cssText="position:absolute;left:-11111px",n.style.height="1px",r.style.height="9px",Qe.appendChild(t).appendChild(n).appendChild(r),i=e.getComputedStyle(n),s=parseInt(i.height)>3,Qe.contains(t)&&Qe.removeChild(t)),s}}))}();var gt=["Webkit","Moz","ms"],mt=ve.createElement("div").style,Et={},yt=/^(none|table(?!-c[ea]).+)/,St=/^--/,_t={position:"absolute",visibility:"hidden",display:"block"},vt={letterSpacing:"0",fontWeight:"400"};Ie.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=P(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=h(t),u=St.test(t),l=e.style;return u||(t=W(s)),a=Ie.cssHooks[t]||Ie.cssHooks[s],n===undefined$1?a&&"get"in a&&(i=a.get(e,!1,r))!==undefined$1?i:l[t]:(o=typeof n,"string"===o&&(i=Ye.exec(n))&&i[1]&&(n=y(e,t,i),o="number"),null!=n&&n===n&&("number"!==o||u||(n+=i&&i[3]||(Ie.cssNumber[s]?"":"px")),ye.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&(n=a.set(e,n,r))===undefined$1||(u?l.setProperty(t,n):l[t]=n)),void 0)}},css:function(e,t,n,r){var i,o,a,s=h(t),u=St.test(t);return u||(t=W(s)),a=Ie.cssHooks[t]||Ie.cssHooks[s],a&&"get"in a&&(i=a.get(e,!0,n)),i===undefined$1&&(i=P(e,t,r)),"normal"===i&&t in vt&&(i=vt[t]),""===n||n?(o=parseFloat(i),n===!0||isFinite(o)?o||0:i):i}}),Ie.each(["height","width"],function(e,t){Ie.cssHooks[t]={get:function(e,n,r){if(n)return!yt.test(Ie.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?q(e,t,r):pt(e,_t,function(){return q(e,t,r)})},set:function(e,n,r){var i,o=dt(e),a=!ye.scrollboxSize()&&"absolute"===o.position,s=a||r,u=s&&"border-box"===Ie.css(e,"boxSizing",!1,o),l=r?B(e,t,r,u,o):0;return u&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-B(e,t,"border",!1,o)-.5)),l&&(i=Ye.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=Ie.css(e,t)),j(e,n,l)}}}),Ie.cssHooks.marginLeft=U(ye.reliableMarginLeft,function(e,t){if(t)return(parseFloat(P(e,"marginLeft"))||e.getBoundingClientRect().left-pt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),Ie.each({margin:"",padding:"",border:"Width"},function(e,t){Ie.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Xe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(Ie.cssHooks[e+t].set=j)}),Ie.fn.extend({css:function(e,t){return Ue(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=dt(e),i=t.length;a<i;a++)o[t[a]]=Ie.css(e,t[a],!1,r);return o}return n!==undefined$1?Ie.style(e,t,n):Ie.css(e,t)},e,t,arguments.length>1)}}),Ie.Tween=H,H.prototype={constructor:H,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||Ie.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(Ie.cssNumber[n]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,n=H.propHooks[this.prop];return this.options.duration?this.pos=t=Ie.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=Ie.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){Ie.fx.step[e.prop]?Ie.fx.step[e.prop](e):1!==e.elem.nodeType||!Ie.cssHooks[e.prop]&&null==e.elem.style[W(e.prop)]?e.elem[e.prop]=e.now:Ie.style(e.elem,e.prop,e.now+e.unit)}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Ie.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},Ie.fx=H.prototype.init,Ie.fx.step={};var Tt,At,It=/^(?:toggle|show|hide)$/,Rt=/queueHooks$/;Ie.Animation=Ie.extend(z,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return y(n.elem,e,Ye.exec(t),n),n}]},tweener:function(e,t){Se(e)?(t=e,e=["*"]):e=e.match(Fe);for(var n,r=0,i=e.length;r<i;r++)n=e[r],z.tweeners[n]=z.tweeners[n]||[],z.tweeners[n].unshift(t)},prefilters:[Q],prefilter:function(e,t){t?z.prefilters.unshift(e):z.prefilters.push(e)}}),Ie.speed=function(e,t,n){var r=e&&"object"==typeof e?Ie.extend({},e):{complete:n||!n&&t||Se(e)&&e,duration:e,easing:n&&t||t&&!Se(t)&&t};return Ie.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in Ie.fx.speeds?r.duration=Ie.fx.speeds[r.duration]:r.duration=Ie.fx.speeds._default),null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){Se(r.old)&&r.old.call(this),r.queue&&Ie.dequeue(this,r.queue)},r},Ie.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Ke).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=Ie.isEmptyObject(e),o=Ie.speed(t,n,r),a=function(){var t=z(this,Ie.extend({},e),o);(i||Be.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=undefined$1),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=Ie.timers,a=Be.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&Rt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||Ie.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=Be.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=Ie.timers,a=r?r.length:0;for(n.finish=!0,Ie.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),Ie.each(["toggle","show","hide"],function(e,t){var n=Ie.fn[t];Ie.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(Y(t,!0),e,r,i)}}),Ie.each({slideDown:Y("show"),slideUp:Y("hide"),slideToggle:Y("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Ie.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),Ie.timers=[],Ie.fx.tick=function(){var e,t=0,n=Ie.timers;for(Tt=Date.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||Ie.fx.stop(),Tt=undefined$1},Ie.fx.timer=function(e){Ie.timers.push(e),Ie.fx.start()},Ie.fx.interval=13,Ie.fx.start=function(){At||(At=!0,V())},Ie.fx.stop=function(){At=null},Ie.fx.speeds={slow:600,fast:200,_default:400},Ie.fn.delay=function(t,n){return t=Ie.fx?Ie.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=nativeMethods$5.setTimeout.call(e,n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=ve.createElement("input"),t=ve.createElement("select"),n=t.appendChild(ve.createElement("option"));e.type="checkbox",ye.checkOn=""!==e.value,ye.optSelected=n.selected,e=ve.createElement("input"),e.value="t",e.type="radio",ye.radioValue="t"===e.value}();var Ct,Dt=Ie.expr.attrHandle;Ie.fn.extend({attr:function(e,t){return Ue(this,Ie.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Ie.removeAttr(this,e)})}}),Ie.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?Ie.prop(e,t,n):(1===o&&Ie.isXMLDoc(e)||(i=Ie.attrHooks[t.toLowerCase()]||(Ie.expr.match.bool.test(t)?Ct:undefined$1)),n!==undefined$1?null===n?void Ie.removeAttr(e,t):i&&"set"in i&&(r=i.set(e,n,t))!==undefined$1?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=Ie.find.attr(e,t),null==r?undefined$1:r))},attrHooks:{type:{set:function(e,t){if(!ye.radioValue&&"radio"===t&&o(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Fe);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),Ct={set:function(e,t,n){return t===!1?Ie.removeAttr(e,n):e.setAttribute(n,n),n}},Ie.each(Ie.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Dt[t]||Ie.find.attr;Dt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=Dt[a],Dt[a]=i,i=null!=n(e,t,r)?a:null,Dt[a]=o),i}});var bt=/^(?:input|select|textarea|button)$/i,xt=/^(?:a|area)$/i;Ie.fn.extend({prop:function(e,t){return Ue(this,Ie.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[Ie.propFix[e]||e]})}}),Ie.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&Ie.isXMLDoc(e)||(t=Ie.propFix[t]||t,i=Ie.propHooks[t]),n!==undefined$1?i&&"set"in i&&(r=i.set(e,n,t))!==undefined$1?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=Ie.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||xt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ye.optSelected||(Ie.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),Ie.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Ie.propFix[this.toLowerCase()]=this}),Ie.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(Se(e))return this.each(function(t){Ie(this).addClass(e.call(this,t,Z(this)))});if(t=ee(e),t.length)for(;n=this[u++];)if(i=Z(n),r=1===n.nodeType&&" "+K(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=K(r),i!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(Se(e))return this.each(function(t){Ie(this).removeClass(e.call(this,t,Z(this)))});if(!arguments.length)return this.attr("class","");if(t=ee(e),t.length)for(;n=this[u++];)if(i=Z(n),r=1===n.nodeType&&" "+K(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=K(r),i!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):Se(e)?this.each(function(n){Ie(this).toggleClass(e.call(this,n,Z(this),t),t)}):this.each(function(){var t,i,o,a;if(r)for(i=0,o=Ie(this),a=ee(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else e!==undefined$1&&"boolean"!==n||(t=Z(this),t&&Be.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":Be.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+K(Z(n))+" ").indexOf(t)>-1)return!0;return!1}});var Nt=/\r/g;Ie.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=Se(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,Ie(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=Ie.map(i,function(e){return null==e?"":e+""})),t=Ie.valHooks[this.type]||Ie.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,i,"value")!==undefined$1||(this.value=i))});if(i)return t=Ie.valHooks[i.type]||Ie.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(i,"value"))!==undefined$1?n:(n=i.value,"string"==typeof n?n.replace(Nt,""):null==n?"":n)}}}),Ie.extend({valHooks:{option:{get:function(e){var t=Ie.find.attr(e,"value");return null!=t?t:K(Ie.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,s="select-one"===e.type,u=s?null:[],l=s?a+1:i.length;for(r=a<0?l:s?a:0;r<l;r++)if(n=i[r],(n.selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!o(n.parentNode,"optgroup"))){if(t=Ie(n).val(),s)return t;u.push(t)}return u},set:function(e,t){for(var n,r,i=e.options,o=Ie.makeArray(t),a=i.length;a--;)r=i[a],(r.selected=Ie.inArray(Ie.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),Ie.each(["radio","checkbox"],function(){Ie.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=Ie.inArray(Ie(e).val(),t)>-1}},ye.checkOn||(Ie.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),ye.focusin="onfocusin"in e;var wt=/^(?:focusinfocus|focusoutblur)$/,Ot=function(e){e.stopPropagation()};Ie.extend(Ie.event,{trigger:function(t,n,r,i){var o,a,s,u,l,c,f,d,p=[r||ve],h=ge.call(t,"type")?t.type:t,g=ge.call(t,"namespace")?t.namespace.split("."):[];if(a=d=s=r=r||ve,3!==r.nodeType&&8!==r.nodeType&&!wt.test(h+Ie.event.triggered)&&(h.indexOf(".")>-1&&(g=h.split("."),h=g.shift(),g.sort()),l=h.indexOf(":")<0&&"on"+h,t=t[Ie.expando]?t:new Ie.Event(h,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined$1,t.target||(t.target=r),n=null==n?[t]:Ie.makeArray(n,[t]),f=Ie.event.special[h]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!_e(r)){for(u=f.delegateType||h,wt.test(u+h)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(r.ownerDocument||ve)&&p.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)d=a,t.type=o>1?u:f.bindType||h,c=(Be.get(a,"events")||Object.create(null))[t.type]&&Be.get(a,"handle"),c&&c.apply(a,n),c=l&&a[l],c&&c.apply&&je(a)&&(t.result=c.apply(a,n),t.result===!1&&t.preventDefault());return t.type=h,i||t.isDefaultPrevented()||f._default&&f._default.apply(p.pop(),n)!==!1||!je(r)||l&&Se(r[h])&&!_e(r)&&(s=r[l],s&&(r[l]=null),Ie.event.triggered=h,t.isPropagationStopped()&&d.addEventListener(h,Ot),testCafeCore.domUtils.isDocument(r)&&"ready"===h||r[h](),t.isPropagationStopped()&&d.removeEventListener(h,Ot),Ie.event.triggered=undefined$1,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=Ie.extend(new Ie.Event,n,{type:e,isSimulated:!0});Ie.event.trigger(r,null,t)}}),Ie.fn.extend({trigger:function(e,t){return this.each(function(){Ie.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return Ie.event.trigger(e,t,n,!0)}}),ye.focusin||Ie.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){Ie.event.simulate(t,e.target,Ie.event.fix(e))};Ie.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=Be.access(r,t);i||r.addEventListener(e,n,!0),Be.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Be.access(r,t)-1;i?Be.access(r,t,i):(r.removeEventListener(e,n,!0),Be.remove(r,t))}}});var Mt=e.location,$t={guid:Date.now()},Ft=/\?/;Ie.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(r){n=undefined$1}return n&&!n.getElementsByTagName("parsererror").length||Ie.error("Invalid XML: "+t),n};var kt=/\[\]$/,Pt=/\r?\n/g,Ut=/^(?:submit|button|image|reset|file)$/i,Lt=/^(?:input|select|textarea|keygen)/i;Ie.param=function(e,t){var n,r=[],i=function(e,t){var n=Se(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!Ie.isPlainObject(e))Ie.each(e,function(){i(this.name,this.value)});else for(n in e)te(n,e[n],t,i);return r.join("&")},Ie.fn.extend({serialize:function(){return Ie.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Ie.prop(this,"elements");return e?Ie.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Ie(this).is(":disabled")&&Lt.test(this.nodeName)&&!Ut.test(e)&&(this.checked||!et.test(e))}).map(function(e,t){var n=Ie(this).val();return null==n?null:Array.isArray(n)?Ie.map(n,function(e){return{name:t.name,value:e.replace(Pt,"\r\n")}}):{name:t.name,value:n.replace(Pt,"\r\n")}}).get()}});var Wt=/%20/g,jt=/#.*$/,Bt=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ht=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Vt=/^(?:GET|HEAD)$/,Gt=/^\/\//,Yt={},Xt={},Qt="*/".concat("*"),Jt=ve.createElement("a");Jt.href=Mt.href,Ie.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Mt.href,type:"GET",isLocal:Ht.test(Mt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Ie.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ie(ie(e,Ie.ajaxSettings),t):ie(Ie.ajaxSettings,e)},ajaxPrefilter:ne(Yt),ajaxTransport:ne(Xt),ajax:function(t,n){function r(t,n,r,s){var l,d,p,_,v,T=n;c||(c=!0,u&&e.clearTimeout(u),i=undefined$1,a=s||"",A.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(_=oe(h,A,r)),!l&&Ie.inArray("script",h.dataTypes)>-1&&(h.converters["text script"]=function(){}),_=ae(h,_,A,l),l?(h.ifModified&&(v=A.getResponseHeader("Last-Modified"),v&&(Ie.lastModified[o]=v),v=A.getResponseHeader("etag"),v&&(Ie.etag[o]=v)),204===t||"HEAD"===h.type?T="nocontent":304===t?T="notmodified":(T=_.state,d=_.data,p=_.error,l=!p)):(p=T,!t&&T||(T="error",t<0&&(t=0))),A.status=t,A.statusText=(n||T)+"",l?E.resolveWith(g,[d,T,A]):E.rejectWith(g,[A,T,p]),A.statusCode(S),S=undefined$1,f&&m.trigger(l?"ajaxSuccess":"ajaxError",[A,h,l?d:p]),y.fireWith(g,[A,T]),f&&(m.trigger("ajaxComplete",[A,h]),--Ie.active||Ie.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=undefined$1),n=n||{};var i,o,a,s,u,l,c,f,d,p,h=Ie.ajaxSetup({},n),g=h.context||h,m=h.context&&(g.nodeType||g.jquery)?Ie(g):Ie.event,E=Ie.Deferred(),y=Ie.Callbacks("once memory"),S=h.statusCode||{},_={},v={},T="canceled",A={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=qt.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=v[e.toLowerCase()]=v[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)A.always(e[A.status]);else for(t in e)S[t]=[S[t],e[t]];return this},abort:function(e){var t=e||T;return i&&i.abort(t),r(0,t),this}};if(E.promise(A),h.url=((t||h.url||Mt.href)+"").replace(Gt,Mt.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Fe)||[""],null==h.crossDomain){l=ve.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Jt.protocol+"//"+Jt.host!=l.protocol+"//"+l.host}catch(I){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=Ie.param(h.data,h.traditional)),re(Yt,h,n,A),c)return A;f=Ie.event&&h.global,f&&0===Ie.active++&&Ie.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Vt.test(h.type),o=h.url.replace(jt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Wt,"+")):(p=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(Ft.test(o)?"&":"?")+h.data,delete h.data),h.cache===!1&&(o=o.replace(Bt,"$1"),p=(Ft.test(o)?"&":"?")+"_="+$t.guid++ +p),h.url=o+p),h.ifModified&&(Ie.lastModified[o]&&A.setRequestHeader("If-Modified-Since",Ie.lastModified[o]),Ie.etag[o]&&A.setRequestHeader("If-None-Match",Ie.etag[o])),(h.data&&h.hasContent&&h.contentType!==!1||n.contentType)&&A.setRequestHeader("Content-Type",h.contentType),A.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Qt+"; q=0.01":""):h.accepts["*"]);for(d in h.headers)A.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(h.beforeSend.call(g,A,h)===!1||c))return A.abort();if(T="abort",y.add(h.complete),A.done(h.success),A.fail(h.error),i=re(Xt,h,n,A)){if(A.readyState=1,f&&m.trigger("ajaxSend",[A,h]),c)return A;h.async&&h.timeout>0&&(u=nativeMethods$5.setTimeout.call(e,function(){A.abort("timeout")},h.timeout));try{c=!1,i.send(_,r)}catch(I){if(c)throw I;r(-1,I)}}else r(-1,"No Transport");return A},getJSON:function(e,t,n){return Ie.get(e,t,n,"json")},getScript:function(e,t){return Ie.get(e,undefined$1,t,"script")}}),Ie.each(["get","post"],function(e,t){Ie[t]=function(e,n,r,i){return Se(n)&&(i=i||r,r=n,n=undefined$1),Ie.ajax(Ie.extend({url:e,type:t,dataType:i,data:n,success:r},Ie.isPlainObject(e)&&e))}}),Ie.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),Ie._evalUrl=function(e,t,n){return Ie.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){Ie.globalEval(e,t,n)}})},Ie.fn.extend({wrapAll:function(e){var t;return this[0]&&(Se(e)&&(e=e.call(this[0])),t=Ie(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return Se(e)?this.each(function(t){Ie(this).wrapInner(e.call(this,t))}):this.each(function(){var t=Ie(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=Se(e);return this.each(function(n){Ie(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){Ie(this).replaceWith(this.childNodes)}),this}}),Ie.expr.pseudos.hidden=function(e){return!Ie.expr.pseudos.visible(e)},Ie.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},Ie.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var zt={0:200,1223:204},Kt=Ie.ajaxSettings.xhr();ye.cors=!!Kt&&"withCredentials"in Kt,ye.ajax=Kt=!!Kt,Ie.ajaxTransport(function(t){var n,r;if(ye.cors||Kt&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),s.onabort!==undefined$1?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&nativeMethods$5.setTimeout.call(e,function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(u){if(n)throw u}},abort:function(){n&&n()}}}),Ie.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),Ie.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return Ie.globalEval(e),e}}}),Ie.ajaxPrefilter("script",function(e){e.cache===undefined$1&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Ie.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var t,n;return{send:function(r,i){t=Ie("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),ve.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Zt=[],en=/(=)\?(?=&|$)|\?\?/;Ie.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Zt.pop()||Ie.expando+"_"+$t.guid++;return this[e]=!0,e}}),Ie.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=t.jsonp!==!1&&(en.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&en.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=Se(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(en,"$1"+i):t.jsonp!==!1&&(t.url+=(Ft.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||Ie.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){o===undefined$1?Ie(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Zt.push(i)),a&&Se(o)&&o(a[0]),a=o=undefined$1}),"script"}),ye.createHTMLDocument=function(){var e=ve.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),Ie.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(ye.createHTMLDocument?(t=ve.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=ve.location.href,t.head.appendChild(r)):t=ve),i=xe.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=A([e],t,o),o&&o.length&&Ie(o).remove(),Ie.merge([],i.childNodes))},Ie.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=K(e.slice(s)),e=e.slice(0,s)),Se(t)?(n=t,t=undefined$1):t&&"object"==typeof t&&(i="POST"),a.length>0&&Ie.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?Ie("<div>").append(Ie.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},Ie.expr.pseudos.animated=function(e){return Ie.grep(Ie.timers,function(t){return e===t.elem}).length},Ie.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l,c=Ie.css(e,"position"),f=Ie(e),d={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=Ie.css(e,"top"),u=Ie.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),Se(t)&&(t=t.call(e,n,Ie.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),f.css(d))}},Ie.fn.extend({offset:function(e){if(arguments.length)return e===undefined$1?this:this.each(function(t){Ie.offset.setOffset(this,e,t)});var t,n,r=this[0];if(r)return r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===Ie.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===Ie.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&(i=Ie(e).offset(),i.top+=Ie.css(e,"borderTopWidth",!0),i.left+=Ie.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-Ie.css(r,"marginTop",!0),left:t.left-i.left-Ie.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===Ie.css(e,"position");)e=e.offsetParent;return e||Qe})}}),Ie.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;Ie.fn[e]=function(r){return Ue(this,function(e,r,i){var o;return _e(e)?o=e:9===e.nodeType&&(o=e.defaultView),i===undefined$1?o?o[t]:e[r]:void(o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i)},e,r,arguments.length)}}),Ie.each(["top","left"],function(e,t){Ie.cssHooks[t]=U(ye.pixelPosition,function(e,n){if(n)return n=P(e,t),ft.test(n)?Ie(e).position()[t]+"px":n})}),Ie.each({Height:"height",Width:"width"},function(e,t){Ie.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){Ie.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(i===!0||o===!0?"margin":"border");return Ue(this,function(t,n,i){var o;return _e(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):i===undefined$1?Ie.css(t,n,s):Ie.style(t,n,i,s)},t,a?i:undefined$1,a)}})}),Ie.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Ie.fn[t]=function(e){return this.on(t,e)}}),Ie.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),Ie.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){Ie.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var tn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;Ie.proxy=function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),Se(e)?(r=le.call(arguments,2),i=function(){return e.apply(t||this,r.concat(le.call(arguments)))},i.guid=e.guid=e.guid||Ie.guid++,i):undefined$1},Ie.holdReady=function(e){e?Ie.readyWait++:Ie.ready(!0)},Ie.isArray=Array.isArray,Ie.parseJSON=JSON.parse,Ie.nodeName=o,Ie.isFunction=Se,Ie.isWindow=_e,Ie.camelCase=h,Ie.type=r,Ie.now=Date.now,Ie.isNumeric=function(e){var t=Ie.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},Ie.trim=function(e){return null==e?"":(e+"").replace(tn,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){
return Ie});var nn=e.jQuery,rn=e.$;return Ie.noConflict=function(t){return e.$===Ie&&(e.$=rn),e.$||delete e.$,t&&e.jQuery===Ie&&(e.jQuery=nn),e.jQuery||delete e.jQuery,Ie},"undefined"==typeof t&&(e.jQuery=e.$=Ie),Ie};eval("".concat(processScript("(".concat(jQueryFunction.toString(),")"),!1),"(window)")),exportJQuery()}function ensureArray(e){return arrayUtils.isArray(e)?e:[e]}function isStringOrStringArray(e,t){if("string"==typeof e)return!0;if(arrayUtils.isArray(e)&&(!t||e.length)){for(var n=0;n<e.length;n++)if("string"!=typeof e[n])return!1;return!0}return!1}function failWithError(e,t){var n={type:e,stepName:Settings.get().CURRENT_TEST_STEP_NAME,__sourceIndex:currentIndex};if(t)for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);stepIterator.onError(n)}function failIfActionElementIsInvisible(e,t,n){e.code!==TEST_RUN_ERRORS.actionElementIsInvisibleError&&e.code!==TEST_RUN_ERRORS.actionAdditionalElementIsInvisibleError||failWithError(ERROR_TYPE.invisibleActionElement,{element:domUtils$1.getElementDescription(n),action:t})}function ensureElementsExist(e,t,n){var r=!1,i=function(){var r=null;if("function"==typeof e){var i=e();if(r=ensureArray(i),i&&(!isJqueryObj(i)||i.length)&&r.length)return n(r),!0}else if("string"==typeof e&&(r=parseActionArgument(e,t),r&&r.length))return n(r),!0;return!1};if(!i()){var o=nativeMethods$4.setInterval.call(window,function(){i()&&(r=!0,window.clearInterval(o))},ELEMENT_AVAILABILITY_WAITING_DELAY);nativeMethods$4.setTimeout.call(window,function(){r||(window.clearInterval(o),failWithError(ERROR_TYPE.emptyFirstArgument,{action:t}))},Settings.get().SELECTOR_TIMEOUT)}}function ensureElementVisibility(e,t,n){var r=!1;if(domUtils$1.isOptionElement(e)||"optgroup"===domUtils$1.getTagName(e))return void(selectElement.isOptionElementVisible(e)?n():failWithError(ERROR_TYPE.invisibleActionElement,{element:domUtils$1.getElementDescription(e),action:t}));if(positionUtils.isElementVisible(e))return void n();var i=nativeMethods$4.setInterval.call(window,function(){positionUtils.isElementVisible(e)&&(r=!0,window.clearInterval(i),n())},ELEMENT_AVAILABILITY_WAITING_DELAY);nativeMethods$4.setTimeout.call(window,function(){r||(window.clearInterval(i),failWithError(ERROR_TYPE.invisibleActionElement,{element:domUtils$1.getElementDescription(e),action:t}))},Settings.get().SELECTOR_TIMEOUT)}function actionArgumentsIterator(e){var t=null,n=function(n,i){if(arrayUtils.isArray(n))r(n,i);else if("function"==typeof n)ensureElementsExist(n,e,function(e){r(e,i)});else if("string"==typeof n)ensureElementsExist(n,e,function(e){t(e,function(){i()})});else{var o=parseActionArgument(n,e);!o||o.length<1?failWithError(ERROR_TYPE.emptyFirstArgument,{action:e}):t(o,function(){i()})}},r=function(t,r){t.length?forEachSeries(t,function(e,t){n(e,t)},function(){r()}):failWithError(ERROR_TYPE.emptyFirstArgument,{action:e})};return{run:function(e,n,i){onTargetWaitingStarted(),t=n,r(e,i)}}}function pressActionArgumentsIterator(){return{run:function(e,t,n){t(e,n)}}}function onTargetWaitingStarted(e){stepIterator.onActionTargetWaitingStarted({isWaitAction:e})}function onTargetWaitingFinished(){stepIterator.onActionRun()}function getSelectAutomationArgumentsObject(e,t){var n=t.length;return 1===n?{offset:t[0]}:2===n||n>2&&!domUtils$1.isTextAreaElement(e)?isNaN(parseInt(t[0],10))?{startNode:t[0],endNode:t[1]}:{startPos:t[0],endPos:t[1]}:t.length>2?{startLine:t[0],startPos:t[1],endLine:t[2],endPos:t[3]}:void 0}function parseActionArgument(e,t){var n=[];return domUtils$1.isDomElement(e)?[e]:t&&"select"===t&&domUtils$1.isTextNode(e)?[e]:"string"==typeof e?arrayUtils.from(jQuery(e)):isJqueryObj(e)?(e.each(function(){n.push(this)}),n):null}function init$3(e){stepIterator=e}function click(e,t){var n=!1,r="click",i=ensureArray(e);stepIterator.asyncActionSeries(i,actionArgumentsIterator(r).run,function(e,i,o){ensureElementVisibility(e,r,function(){n||(n=!0,onTargetWaitingFinished()),t=t||{};var a=testcafeAutomation.getOffsetOptions(e,t.offsetX,t.offsetY),s=a.offsetX,u=a.offsetY,l=new testcafeAutomation.ClickOptions({offsetX:s,offsetY:u,caretPos:t.caretPos,modifiers:t},(!1)),c=o?o.contentWindow:window,f=/option|optgroup/.test(domUtils$1.getTagName(e))?getAutomations(c).SelectChildClick:getAutomations(c).Click,d=new f(e,l);d.run()["catch"](function(t){return failIfActionElementIsInvisible(t,r,e)}).then(function(){i()})})})}function rclick(e,t){var n=!1,r="rclick",i=ensureArray(e);stepIterator.asyncActionSeries(i,actionArgumentsIterator(r).run,function(e,i,o){ensureElementVisibility(e,r,function(){n||(n=!0,onTargetWaitingFinished()),t=t||{};var a=testcafeAutomation.getOffsetOptions(e,t.offsetX,t.offsetY),s=a.offsetX,u=a.offsetY,l=new testcafeAutomation.ClickOptions({offsetX:s,offsetY:u,caretPos:t.caretPos,modifiers:t},(!1)),c=o?o.contentWindow:window,f=getAutomations(c).RClick,d=new f(e,l);d.run()["catch"](function(t){return failIfActionElementIsInvisible(t,r,e)}).then(i)})})}function dblclick(e,t){var n=!1,r="dblclick",i=ensureArray(e);stepIterator.asyncActionSeries(i,actionArgumentsIterator(r).run,function(e,i,o){ensureElementVisibility(e,r,function(){n||(n=!0,onTargetWaitingFinished()),t=t||{};var a=testcafeAutomation.getOffsetOptions(e,t.offsetX,t.offsetY),s=a.offsetX,u=a.offsetY,l=new testcafeAutomation.ClickOptions({offsetX:s,offsetY:u,caretPos:t.caretPos,modifiers:t},(!1)),c=o?o.contentWindow:window,f=getAutomations(c).DblClick,d=new f(e,l);d.run()["catch"](function(t){return failIfActionElementIsInvisible(t,r,e)}).then(function(){i()})})})}function drag(e){var t=!1,n="drag",r=arguments,i=ensureArray(e),o=!isNaN(parseInt(r[1])),a=null,s=o?r[3]:r[2],u=null,l=null,c=null;if(r.length>2&&o)l=r[1],c=r[2];else if(u=r[1],!u)return void failWithError(ERROR_TYPE.incorrectDraggingSecondArgument);if(isJqueryObj(u)){if(u.length<1)return void failWithError(ERROR_TYPE.incorrectDraggingSecondArgument);u=u[0]}else if(!domUtils$1.isDomElement(u)&&(isNaN(parseInt(l))||isNaN(parseInt(c))))return void failWithError(ERROR_TYPE.incorrectDraggingSecondArgument);stepIterator.asyncActionSeries(i,actionArgumentsIterator(n).run,function(e,r,i){ensureElementVisibility(e,n,function(){t||(t=!0,onTargetWaitingFinished()),s=s||{};var o=testcafeAutomation.getOffsetOptions(e,s.offsetX,s.offsetY),f=o.offsetX,d=o.offsetY;l=Math.round(l),c=Math.round(c);var p=new testcafeAutomation.MouseOptions({offsetX:f,offsetY:d,modifiers:s},(!1)),h=i?i.contentWindow:window,g=null;u?(g=getAutomations(h).DragToElement,a=new g(e,u,p)):(g=getAutomations(h).DragToOffset,a=new g(e,l,c,p)),a.run()["catch"](function(t){return failIfActionElementIsInvisible(t,n,e)}).then(function(){r()})})})}function select(){var e=!1,t="select",n=arguments[0]?ensureArray(arguments[0]):null,r=arrayUtils.from(arguments).slice(1),i=r?r[0]:null,o=null,a=null,s=!1,u=null;if(!n)return void failWithError(ERROR_TYPE.incorrectSelectActionArguments);if(i&&isJqueryObj(i)){if(i.length<1)return void failWithError(ERROR_TYPE.incorrectSelectActionArguments);i=i[0]}if(1===r.length&&(domUtils$1.isDomElement(i)||domUtils$1.isTextNode(i))){if(styleUtils.isNotVisibleNode(i))return void failWithError(ERROR_TYPE.incorrectSelectActionArguments);if(o=isJqueryObj(n[0])?n[0][0]:n[0],a=i,domUtils$1.isContentEditableElement(o)&&domUtils$1.isContentEditableElement(a)){var l=contentEditable.getNearestCommonAncestor(o,a);l?(u=domUtils$1.isTextNode(l)?l.parentElement:l,u||(s=!0)):s=!0}else s=!0}else s=arrayUtils.some(r,function(e){return isNaN(parseInt(e))||r.length>1&&e<0});return s?void failWithError(ERROR_TYPE.incorrectSelectActionArguments):void stepIterator.asyncActionSeries(u?[u]:n,actionArgumentsIterator(t).run,function(n,i,s){ensureElementVisibility(n,t,function(){e||(e=!0,onTargetWaitingFinished());var u=s?s.contentWindow:window,l=getAutomations(u),c=null;if(o&&a)c=new l.SelectEditableContent(o,a,{});else{var f=getSelectAutomationArgumentsObject(n,r),d=testcafeAutomation.calculateSelectTextArguments(n,f),p=d.startPos,h=d.endPos;c=new l.SelectText(n,p,h,{})}c.run()["catch"](function(e){return failIfActionElementIsInvisible(e,t,n)}).then(function(){i()})})})}function type(e,t,n){if(!t)return void failWithError(ERROR_TYPE.emptyTypeActionArgument);var r=!1,i="type",o=ensureArray(e);stepIterator.asyncActionSeries(o,actionArgumentsIterator(i).run,function(e,o,a){ensureElementVisibility(e,i,function(){r||(r=!0,onTargetWaitingFinished()),n=n||{};var s=testcafeAutomation.getOffsetOptions(e,n.offsetX,n.offsetY),u=s.offsetX,l=s.offsetY,c=new testcafeAutomation.TypeOptions({offsetX:u,offsetY:l,caretPos:n.caretPos,replace:n.replace,modifiers:n},(!1)),f=a?a.contentWindow:window,d=getAutomations(f).Type,p=new d(e,t,c);p.run()["catch"](function(t){return failIfActionElementIsInvisible(t,i,e)}).then(function(){o()})})})}function hover(e,t){var n=!1,r="hover",i=ensureArray(e);stepIterator.asyncActionSeries(i,actionArgumentsIterator(r).run,function(e,i,o){ensureElementVisibility(e,r,function(){n||(n=!0,onTargetWaitingFinished()),t=t||{};var a=testcafeAutomation.getOffsetOptions(e,t.offsetX,t.offsetY),s=a.offsetX,u=a.offsetY,l=new testcafeAutomation.MouseOptions({offsetX:s,offsetY:u,modifiers:t},(!1)),c=o?o.contentWindow:window,f=getAutomations(c).Hover,d=new f(e,l);d.run()["catch"](function(t){return failIfActionElementIsInvisible(t,r,e)}).then(function(){i()})})})}function press(){stepIterator.asyncActionSeries(arguments,pressActionArgumentsIterator().run,function(e,t){var n=parseKeySequence(e);if(n.error)failWithError(ERROR_TYPE.incorrectPressActionArgument);else{var r=getAutomations(window).Press,i=new r(n.combinations,{});i.run().then(function(){t()})}})}function startConditionCheck(e,t){conditionIntervalId=nativeMethods$4.setInterval.call(window,function(){stepIterator.callWithSharedDataContext(e)&&t()},CHECK_CONDITION_INTERVAL)}function stopConditionCheck(){null!==conditionIntervalId&&(window.clearInterval(conditionIntervalId),conditionIntervalId=null)}function wait(e,t){return t="function"==typeof t?t:null,"number"!=typeof e||e<0?void failWithError(ERROR_TYPE.incorrectWaitActionMillisecondsArgument):void stepIterator.asyncAction(function(n){function r(){window.clearTimeout(i),stopConditionCheck(),n()}var i=nativeMethods$4.setTimeout.call(window,r,e||0);t&&startConditionCheck(t,r)})}function waitFor(e,t){var n=isStringOrStringArray(e,!0),r=!1;return"function"==typeof e||n?("undefined"==typeof t&&(t=WAIT_FOR_DEFAULT_TIMEOUT),"number"!=typeof t||t<0?void failWithError(ERROR_TYPE.incorrectWaitForActionTimeoutArgument):(onTargetWaitingStarted(!0),void stepIterator.asyncAction(function(i){function o(){r||(n&&stopConditionCheck(),window.clearTimeout(a),onTargetWaitingFinished(),i())}var a=nativeMethods$4.setTimeout.call(window,function(){n&&stopConditionCheck(),r=!0,failWithError(ERROR_TYPE.waitForActionTimeoutExceeded)},t),s=null;n?(s="string"==typeof e?function(){return!!jQuery(e).length}:function(){for(var t=!0,n=0;n<e.length;n++)if(!jQuery(e[n]).length){t=!1;break}return t},startConditionCheck(s,o)):stepIterator.callWithSharedDataContext(function(){e.call(this,function(){o()})})}))):void failWithError(ERROR_TYPE.incorrectWaitForActionEventArgument)}function navigateTo(e){var t=1e3;stepIterator.asyncAction(function(n){hammerhead__default["default"].navigateTo(e),nativeMethods$4.setTimeout.call(window,n,t)})}function upload(e,t){var n=!1,r=ensureArray(e);!isStringOrStringArray(t)&&t&&failWithError(ERROR_TYPE.uploadInvalidFilePathArgument),stepIterator.asyncActionSeries(r,actionArgumentsIterator("upload").run,function(e,r){if(domUtils$1.isFileInput(e)){n||(n=!0,onTargetWaitingFinished());var i=getAutomations(window).Upload,o=new i(e,t,function(e){return failWithError(ERROR_TYPE.uploadCanNotFindFileToUpload,{filePaths:e})});o.run().then(function(){r()})}else failWithError(ERROR_TYPE.uploadElementIsNotFileInput)})}function screenshot(e){stepIterator.asyncAction(function(t){stepIterator.takeScreenshot(function(){t()},e)})}function setElementAvailabilityWaitingTimeout(e){Settings.get().SELECTOR_TIMEOUT=e}function on$1(e,t){eventEmitter.on(e,t)}function initDialogsInfo(e){dialogsInfo=e?e:{expectAlertCount:0,expectConfirmCount:0,expectPromptCount:0,expectedConfirmRetValues:[],expectedPromptRetValues:[],expectBeforeUnload:!1,alerts:[],confirms:[],prompts:[],beforeUnloadDialogAppeared:!1}}function onDialogsInfoChanged(){eventEmitter.emit(DIALOGS_INFO_CHANGED_EVENT,{info:dialogsInfo})}function beforeUnloadHandler(e){dialogsInfo.beforeUnloadDialogAppeared=!!e.prevented,beforeUnloadEventWasRaised=!0,dialogsInfo.beforeUnloadDialogAppeared&&onDialogsInfoChanged(),dialogsInfo.beforeUnloadDialogAppeared&&!dialogsInfo.expectBeforeUnload&&sendUnexpectedDialogError("beforeUnload",e.returnValue===!0?"":e.returnValue.toString())}function initDialogs(e){initDialogsInfo(e),window.alert=function(e){dialogsInfo.alerts.push(e),onDialogsInfoChanged(),dialogsInfo.alerts.length>dialogsInfo.expectAlertCount&&sendUnexpectedDialogError("alert",e)},window.confirm=function(e){var t=dialogsInfo.expectedConfirmRetValues[dialogsInfo.confirms.length];return dialogsInfo.confirms.push(e),onDialogsInfoChanged(),dialogsInfo.confirms.length>dialogsInfo.expectConfirmCount&&sendUnexpectedDialogError("confirm",e),t},window.prompt=function(e){var t=dialogsInfo.expectedPromptRetValues[dialogsInfo.prompts.length];return dialogsInfo.prompts.push(e),onDialogsInfoChanged(),dialogsInfo.prompts.length>dialogsInfo.expectPromptCount&&sendUnexpectedDialogError("prompt",e),t}}function sendUnexpectedDialogError(e,t){/alert|confirm|prompt/.test(e)&&beforeUnloadEventWasRaised||eventEmitter.emit(UNEXPECTED_DIALOG_ERROR_EVENT,{dialog:e,message:t})}function sendWasNotExpectedDialog(e){eventEmitter.emit(WAS_NOT_EXPECTED_DIALOG_ERROR_EVENT,{dialog:e})}function init$2(e){hammerhead__default["default"].on(hammerhead__default["default"].EVENTS.beforeUnload,beforeUnloadHandler),beforeUnloadEventWasRaised=!1,initDialogs(e)}function destroy(){hammerhead__default["default"].off(hammerhead__default["default"].EVENTS.beforeUnload,beforeUnloadHandler)}function handleAlert(){dialogsInfo.expectAlertCount++,onDialogsInfoChanged()}function handleConfirm(e){dialogsInfo.expectConfirmCount++,dialogsInfo.expectedConfirmRetValues.push(!(!e||"Cancel"===e)),onDialogsInfoChanged()}function handlePrompt(e){dialogsInfo.expectPromptCount++,dialogsInfo.expectedPromptRetValues.push(e||""===e?e:null),onDialogsInfoChanged()}function handleBeforeUnload(){dialogsInfo.expectBeforeUnload=!0,onDialogsInfoChanged()}function resetHandlers(){initDialogs(),onDialogsInfoChanged()}function checkExpectedDialogs(){dialogsInfo.expectAlertCount&&dialogsInfo.alerts.length<dialogsInfo.expectAlertCount&&sendWasNotExpectedDialog("alert"),dialogsInfo.expectConfirmCount&&dialogsInfo.confirms.length<dialogsInfo.expectConfirmCount&&sendWasNotExpectedDialog("confirm"),dialogsInfo.expectPromptCount&&dialogsInfo.prompts.length<dialogsInfo.expectPromptCount&&sendWasNotExpectedDialog("prompt"),dialogsInfo.alerts.length>dialogsInfo.expectAlertCount&&sendUnexpectedDialogError("alert",dialogsInfo.alerts[dialogsInfo.expectAlertCount]),dialogsInfo.confirms.length>dialogsInfo.expectConfirmCount&&sendUnexpectedDialogError("confirm",dialogsInfo.confirms[dialogsInfo.expectConfirmCount]),dialogsInfo.prompts.length>dialogsInfo.expectPromptCount&&sendUnexpectedDialogError("prompt",dialogsInfo.prompts[dialogsInfo.expectPromptCount]),dialogsInfo.expectBeforeUnload&&!dialogsInfo.beforeUnloadDialogAppeared&&sendWasNotExpectedDialog("beforeUnload")}function init$1(){if(!initialized$1){var e=60,t=100,n=void 0===testcafeAutomation__default["default"].SETTINGS,r=n?testcafeAutomation__default["default"].AutomationSettings:testcafeAutomation__default["default"].SETTINGS;n?(Object.defineProperty(r.prototype,"mouseActionStepDelay",{get:function(){return e}}),Object.defineProperty(r.prototype,"keyActionStepDelay",{get:function(){return e}})):(r.ACTION_STEP_DELAY=e,r.DRAG_ACTION_STEP_DELAY=t),testCafeCore.preventRealEvents(),fill(),initialized$1=!0}}function fatalError(e,t){var n={cmd:COMMAND.fatalError,err:e};asyncServiceMsg(n,t)}function assertionFailed(e,t){var n={cmd:COMMAND.assertionFailed,err:e};asyncServiceMsg(n,t)}function asyncServiceMsg(e,t){return transport.asyncServiceMsg(e).then(function(e){t&&t(e)})}function waitForServiceMessagesCompleted(e,t){return transport.waitForServiceMessagesCompleted(e).then(t)}function batchUpdate(e){return transport.batchUpdate().then(e)}function pingIframe(e){return messageSandbox$2.pingIframe(e,CROSS_DOMAIN_MESSAGES.IFRAME_TEST_RUNNER_PING_DISPATCHER_CMD)}function runOrEnqueue(e){pageInitialzied?e():actionsQueue.push(e)}function onRunStepsMsg(e){testRunnerInitialized?runOrEnqueue(function(){runStep(e.stepName,e.step,function(e,t){return testRunner.run(e,t,0)})}):(testRunnerInitialized=!0,testRunInitializedCallback(testRunner,function(e){return runStep=e}),runOrEnqueue(function(){runStep(e.stepName,e.step,function(e,t){return testRunner.act._start(e,t,!0)})}))}function init(e){testRunner=new IFrameRunner,init$1(),testRunInitializedCallback=e;var t=new serviceUtils.EventEmitter;on=function(){t.on.apply(t,arguments)},off=function(){t.off.apply(t,arguments)},messageSandbox.on(messageSandbox.SERVICE_MSG_RECEIVED_EVENT,function(e){var n=e.message;switch(n.cmd){case CROSS_DOMAIN_MESSAGES.IFRAME_TEST_RUNNER_RUN_CMD:onRunStepsMsg(n);break;case CROSS_DOMAIN_MESSAGES.IFRAME_TEST_RUNNER_PING_DISPATCHER_CMD:n.isPingRequest&&messageSandbox.sendServiceMsg({cmd:CROSS_DOMAIN_MESSAGES.IFRAME_TEST_RUNNER_PING_DISPATCHER_CMD,isPingResponse:!0},window.top);break;default:t.emit(MESSAGE_RECEIVED,n)}})}function getOwnTextForSelector(e){if(!e||!TEXT_ELEMENT_TAGS_RE.test(getTagName(e)))return"";for(var t="",n=0;n<e.childNodes.length;n++)isTextNode(e.childNodes[n])&&e.childNodes[n].data&&(t+=e.childNodes[n].data);return t&&(t=hammerhead__default["default"].utils.trim(t.replace(/[^a-z0-9а-я \xC0-\xFF]+/gi,"")),t=t.replace(/\s+/g," "),/\S/.test(t))?t:""}function extendJQuerySelectors(e){e.expr[":"][CONTAINS_OWN_TEXT_METHOD_NAME]=function(e,t,n){if(!n[3])return!1;var r=getOwnTextForSelector(e);return!!(r&&r.indexOf(n[3])>=0)},e.expr[":"][ATTR_REGEXP_METHOD_NAME]=function(e,t,n){var r=n[3];if(!r)return!1;var i=r.indexOf(START_SUBSTR_RE)>0,o=r.lastIndexOf(END_SUBSTR_RE)===r.length-END_SUBSTR_RE_LENGTH,a=r.indexOf(START_SUBSTR_RE)<r.length-END_SUBSTR_RE_LENGTH-START_SUBSTR_RE_LENGTH;if(i&&o&&a){var s=r.indexOf(START_SUBSTR_RE),u=r.substr(0,s),l=r.substring(s+START_SUBSTR_RE_LENGTH,r.lastIndexOf(END_SUBSTR_RE));return new RegExp(l).test(e.getAttribute(u))}return!1}}function setup(e){e.fn._data=e.fn.data,e!==window.jQuery&&!function(t){e.fn.data=function(){var n=this[0],r=window.jQuery,i=arguments[0],o=arguments[1];if(2===arguments.length)return this._data(i,o);if(!r||"function"!=typeof r(n).data)return this._data(i);if(!n)return this._data(i);var a=this._data(i);if(i===t)return e.extend(a,r(n).data());if(a!==t)return a;var s=r(n);return s.length?s.data(i):t}}()}var hammerhead__default=_interopDefaultLegacy(hammerhead),testCafeCore__default=_interopDefaultLegacy(testCafeCore),testCafeUI__default=_interopDefaultLegacy(testCafeUI),testcafeAutomation__default=_interopDefaultLegacy(testcafeAutomation),Settings={settings:{},set:function(e){this.settings=e},get:function(){return this.settings}},ERROR_TYPE={okAssertion:"legacy|okAssertion",notOkAssertion:"legacy|notOkAssertion",eqAssertion:"legacy|eqAssertion",notEqAssertion:"legacy|notEqAssertion",iframeLoadingTimeout:"legacy|iframeLoadingTimeout",inIFrameTargetLoadingTimeout:"legacy|inIFrameTargetLoadingTimeout",uncaughtJSError:"legacy|uncaughtJSError",uncaughtJSErrorInTestCodeStep:"legacy|uncaughtJSErrorInTestCodeStep",storeDomNodeOrJqueryObject:"legacy|storeDomNodeOrJqueryObject",emptyFirstArgument:"legacy|emptyFirstArgument",invisibleActionElement:"legacy|invisibleActionElement",incorrectDraggingSecondArgument:"legacy|incorrectDraggingSecondArgument",incorrectPressActionArgument:"legacy|incorrectPressActionArgument",emptyTypeActionArgument:"legacy|emptyTypeActionArgument",unexpectedDialog:"legacy|unexpectedDialog",expectedDialogDoesntAppear:"legacy|expectedDialogDoesntAppear",incorrectSelectActionArguments:"legacy|incorrectSelectActionArguments",incorrectWaitActionMillisecondsArgument:"legacy|incorrectWaitActionMillisecondsArgument",incorrectWaitForActionEventArgument:"legacy|incorrectWaitForActionEventArgument",incorrectWaitForActionTimeoutArgument:"legacy|incorrectWaitForActionTimeoutArgument",waitForActionTimeoutExceeded:"legacy|waitForActionTimeoutExceeded",incorrectGlobalWaitForActionEventArgument:"legacy|incorrectGlobalWaitForActionEventArgument",incorrectGlobalWaitForActionTimeoutArgument:"legacy|incorrectGlobalWaitForActionTimeoutArgument",globalWaitForActionTimeoutExceeded:"legacy|globalWaitForActionTimeoutExceeded",emptyIFrameArgument:"legacy|emptyIFrameArgument",iframeArgumentIsNotIFrame:"legacy|iframeArgumentIsNotIFrame",multipleIFrameArgument:"legacy|multipleIFrameArgument",incorrectIFrameArgument:"legacy|incorrectIFrameArgument",uploadCanNotFindFileToUpload:"legacy|uploadCanNotFindFileToUpload",uploadElementIsNotFileInput:"legacy|uploadElementIsNotFileInput",uploadInvalidFilePathArgument:"legacy|uploadInvalidFilePathArgument",pageNotLoaded:"legacy|pageNotLoaded"},browserUtils=hammerhead__default["default"].utils.browser,JSON$4=hammerhead__default["default"].json,nativeMethods$6=hammerhead__default["default"].nativeMethods,RequestEmitter$2=testCafeCore__default["default"].ClientRequestEmitter,RequestBarrier$2=testCafeCore__default["default"].RequestBarrier,pageUnloadBarrier=testCafeCore__default["default"].pageUnloadBarrier,serviceUtils$3=testCafeCore__default["default"].serviceUtils,domUtils$3=testCafeCore__default["default"].domUtils,eventUtils$2=testCafeCore__default["default"].eventUtils,SUSPEND_ACTIONS={runStep:"runStep",asyncAction:"asyncAction",asyncActionSeries:"asyncActionSeries"},StepIterator=function(e){this.state={step:0,stepNames:null,testSteps:null,inAsyncAction:!1,stepsSharedData:{},lastSyncedSharedDataJSON:null,stopped:!1,suspended:!1,suspendedAction:null,suspendedArgs:[],waitedIFrame:null,curStepErrors:[]},this.pingIframe=e,this.globalWaitForEvent=null,this.globalWaitForTimeout=null,this.eventEmitter=new serviceUtils$3.EventEmitter};StepIterator.TEST_COMPLETE_EVENT="testComplete",StepIterator.NEXT_STEP_STARTED_EVENT="nextStepStarted",StepIterator.ACTION_TARGET_WAITING_STARTED_EVENT="actionTargetWaitingStarted",StepIterator.ACTION_RUN_EVENT="actionRun",StepIterator.ERROR_EVENT="error",StepIterator.ASSERTION_FAILED_EVENT="assertionFailed",StepIterator.SET_STEPS_SHARED_DATA_EVENT="setStepsSharedData",StepIterator.GET_STEPS_SHARED_DATA_EVENT="getStepsSharedData",StepIterator.TAKE_SCREENSHOT_EVENT="takeScreenshot",StepIterator.BEFORE_UNLOAD_EVENT_RAISED="beforeUnload",StepIterator.UNLOAD_EVENT_RAISED="unload",StepIterator.prototype.on=function(){return this.eventEmitter.on.apply(this.eventEmitter,arguments)},StepIterator.prototype._checkSharedDataSerializable=function(){var e=null;return!!JSON$4.isSerializable(this.state.stepsSharedData)||(e={type:ERROR_TYPE.storeDomNodeOrJqueryObject,stepName:Settings.get().CURRENT_TEST_STEP_NAME,stepNum:this.state.step-1},this.eventEmitter.emit(StepIterator.ERROR_EVENT,e),!1)},StepIterator.prototype._runStep=function(){if(this.state.suspended)return void(this.state.suspendedAction=SUSPEND_ACTIONS.runStep);this.state.stopped=!1,this.state.curStepErrors=[];var e=this;if(e.state.step>0&&!e.state.stepDoneCalled&&"function"==typeof e.state.stepDone&&(e.state.stepDone(),e.state.stepDoneCalled=!0),!this.state.stopped){if(e.state.step>=e.state.testSteps.length)return void this.eventEmitter.emit(StepIterator.TEST_COMPLETE_EVENT,{callback:function(){e.state.runningCopmlete=!0}});Settings.get().CURRENT_TEST_STEP_NAME=e.state.stepNames[e.state.step];var t=e.state.testSteps[e.state.step];e.state.step++,e.eventEmitter.emit(StepIterator.NEXT_STEP_STARTED_EVENT,{nextStep:e.state.step,callback:function(){e.__waitFor(function(){var n=null;"function"==typeof e.state.stepSetup&&e.state.stepSetup(),e.state.stepDoneCalled=!1,e.state.inAsyncAction=!1;try{e.callWithSharedDataContext(t)}catch(r){n={type:ERROR_TYPE.uncaughtJSErrorInTestCodeStep,scriptErr:r&&r.message||r,stepName:Settings.get().CURRENT_TEST_STEP_NAME,stepNum:e.state.step-1},e.eventEmitter.emit(StepIterator.ERROR_EVENT,n)}if(!e.state.stopped){var i=function(){"function"!=typeof e.state.stepDone||e.state.stepDoneCalled||(e.state.stepDone(),e.state.stepDoneCalled=!0),e._runStep()};if(!e.state.inAsyncAction){if(!e._checkSharedDataSerializable())return;i()}}})}})}},StepIterator.prototype._setupUnloadHandlers=function(){function e(){nativeMethods$6.setTimeout.call(window,function(){"loading"!==document.readyState||document.activeElement&&domUtils$3.isAnchorElement(document.activeElement)&&document.activeElement.hasAttribute("download")||n()},0)}var t=this,n=function(){return t.eventEmitter.emit(StepIterator.BEFORE_UNLOAD_EVENT_RAISED)},r=function(){return t.eventEmitter.emit(StepIterator.UNLOAD_EVENT_RAISED)};hammerhead__default["default"].on(hammerhead__default["default"].EVENTS.beforeUnload,browserUtils.isIE?e:n),eventUtils$2.bind(window,"unload",r)},StepIterator.prototype._syncSharedDataWithServer=function(e){var t=this,n="";t._checkSharedDataSerializable()&&(n=JSON$4.stringify(t.state.stepsSharedData),t.state.lastSyncedSharedDataJSON===n?"function"==typeof e&&e():t.eventEmitter.emit(StepIterator.SET_STEPS_SHARED_DATA_EVENT,{stepsSharedData:t.state.stepsSharedData,callback:function(){t.state.lastSyncedSharedDataJSON=n,"function"==typeof e&&e()}}))},StepIterator.prototype._waitActionSideEffectsCompletion=function(e,t){var n=new RequestEmitter$2,r=new RequestBarrier$2(n,{requestsCollection:Settings.get().REQUESTS_COLLECTION_DELAY,additionalRequestsCollection:Settings.get().ADDITIONAL_REQUESTS_COLLECTION_DELAY});e.call(window,function(){r.wait().then(t)})},StepIterator.prototype._completeAsyncAction=function(){var e=this;e.state.stopped||pageUnloadBarrier.wait(Settings.get().PAGE_UNLOAD_BARRIER_TIMEOUT).then(function(){return e._runStep()})},StepIterator.prototype.callWithSharedDataContext=function(e){return e.apply(this.state.stepsSharedData)},StepIterator.prototype._checkIFrame=function(e,t){if(window.top!==window||!domUtils$3.isElementInIframe(e))return void t(null);var n=domUtils$3.getIframeByElement(e);this.pingIframe(n).then(function(){return t(n)})["catch"](function(){return t(n)})},StepIterator.prototype.asyncAction=function(e){if(this.state.suspended)return this.state.suspendedAction=SUSPEND_ACTIONS.asyncAction,void(this.state.suspendedArgs=arguments);var t=this;this.state.inAsyncAction=!0,t._waitActionSideEffectsCompletion(e,function(){t._completeAsyncAction.apply(t,arguments)}),t._syncSharedDataWithServer(function(){})},StepIterator.prototype.asyncActionSeries=function(e,t,n){if(this.state.suspended)return this.state.suspendedAction=SUSPEND_ACTIONS.asyncActionSeries,void(this.state.suspendedArgs=arguments);var r=this;r.state.inAsyncAction=!0;var i=function(e,t){forEachSeries(e,function(e,t){r._checkIFrame(e,function(i){i?r._waitActionSideEffectsCompletion(function(t){function o(){eventUtils$2.unbind(i.contentWindow,"beforeunload",o),a=!0}var a=!1;r.iFrameActionCallback=function(){r.iFrameActionCallback=null,r.waitedIFrame=null,t()},r.waitedIFrame=i,eventUtils$2.bind(i.contentWindow,"beforeunload",o);var s=i.contentWindow["%testCafeCore%"].ClientRequestEmitter,u=new s,l=new RequestBarrier$2(u,{requestsCollection:Settings.get().REQUESTS_COLLECTION_DELAY,additionalRequestsCollection:Settings.get().ADDITIONAL_REQUESTS_COLLECTION_DELAY});n(e,function(){l.wait().then(function(){a||r.iFrameActionCallback()})},i)},t):r._waitActionSideEffectsCompletion(function(t){n(e,t)},t)})},function(){r.state.stopped||t()})};r._syncSharedDataWithServer(function(){t(e,i,function(){r._completeAsyncAction.apply(r,arguments)})})},StepIterator.prototype._init=function(){this.initialized=!0,this._setupUnloadHandlers(),pageUnloadBarrier.init()},StepIterator.prototype.start=function(e,t,n,r,i){this._init(),this.runSteps(e,t,n,r,i)},StepIterator.prototype.stop=function(){this.state.stopped=!0},StepIterator.prototype.runSteps=function(e,t,n,r,i){this.initialized||this._init();var o=this;o.state.testSteps=t,o.state.stepNames=e,o.state.inAsyncAction=!1,o.state.step=i,o.state.stepSetup=n,o.state.stepDone=r,o.state.runningCopmlete=!1,o.eventEmitter.emit(StepIterator.GET_STEPS_SHARED_DATA_EVENT,{callback:function(e){o.state.stepsSharedData=e||{},o.state.lastSyncedSharedDataJSON=JSON$4.stringify(o.state.stepsSharedData),o._runStep()}})},StepIterator.prototype.getSharedData=function(){return this.state.stepsSharedData},StepIterator.prototype.setSharedData=function(e){this.state.stepsSharedData=e,this._syncSharedDataWithServer()},StepIterator.prototype.onError=function(e){this.state.stopped||(this.state.curStepErrors.push(e),this.eventEmitter.emit(StepIterator.ERROR_EVENT,hammerhead__default["default"].utils.extend({stepNum:this.state.step-1},e)))},StepIterator.prototype.onAssertionFailed=function(e){this.state.stopped||(this.state.curStepErrors.push(e),this.eventEmitter.emit(StepIterator.ASSERTION_FAILED_EVENT,{err:e,stepNum:this.state.step-1,isAssertion:!0}))},StepIterator.prototype.runNext=function(){this._runStep()},StepIterator.prototype.runLast=function(){this.state.step--,this.runNext()},StepIterator.prototype.getCurrentStep=function(){return this.state.stepNames?this.state.stepNames[this.state.step-1]:Settings.get().CURRENT_TEST_STEP_NAME},StepIterator.prototype.getCurrentStepNum=function(){return this.state.step-1},StepIterator.prototype.onActionTargetWaitingStarted=function(e){this.eventEmitter.emit(StepIterator.ACTION_TARGET_WAITING_STARTED_EVENT,e)},StepIterator.prototype.onActionRun=function(){this.eventEmitter.emit(StepIterator.ACTION_RUN_EVENT,{})},StepIterator.prototype.suspend=function(){this.state.suspended=!0},StepIterator.prototype.resume=function(){this.state.suspended&&!this.state.stopped&&(this.state.suspended=!1,this.state.suspendedAction===SUSPEND_ACTIONS.runStep&&this._runStep(),this.state.suspendedAction===SUSPEND_ACTIONS.asyncAction&&this.asyncAction.apply(this,this.state.suspendedArgs),this.state.suspendedAction===SUSPEND_ACTIONS.asyncActionSeries&&this.asyncActionSeries.apply(this,this.state.suspendedArgs),this.state.suspendedAction=null,this.state.suspendedArgs=[])},StepIterator.prototype.setGlobalWaitFor=function(e,t){"function"!=typeof e&&this.onError({type:ERROR_TYPE.incorrectGlobalWaitForActionEventArgument,stepName:Settings.get().CURRENT_TEST_STEP_NAME}),"number"!=typeof t&&this.onError({type:ERROR_TYPE.incorrectGlobalWaitForActionTimeoutArgument,stepName:Settings.get().CURRENT_TEST_STEP_NAME}),this.globalWaitForEvent=e,this.globalWaitForTimeout=t},StepIterator.prototype.__waitFor=function(e){var t=this;if("function"!=typeof this.globalWaitForEvent)return void e();"number"!=typeof this.globalWaitForTimeout&&(this.globalWaitForTimeout=0);var n=nativeMethods$6.setTimeout.call(window,function(){t.onError({type:ERROR_TYPE.globalWaitForActionTimeoutExceeded,stepName:Settings.get().CURRENT_TEST_STEP_NAME})},this.globalWaitForTimeout);t.callWithSharedDataContext(function(){t.globalWaitForEvent.call(t,function(){window.clearTimeout(n),e()})})},StepIterator.prototype.takeScreenshot=function(e,t){this.eventEmitter.emit(StepIterator.TAKE_SCREENSHOT_EVENT,{filePath:t||"",callback:e})};var SOURCE_INDEX_ARG_REGEXP=/#(\d+)/,currentIndex=null,CROSS_DOMAIN_MESSAGES={IFRAME_TEST_RUNNER_PING_DISPATCHER_CMD:"pingIFrameDispatcher",IFRAME_TEST_RUNNER_RUN_CMD:"runInIFrameTestRunner",IFRAME_TEST_RUNNER_WAITING_STEP_COMPLETION_REQUEST_CMD:"waitingStepCompletionRequest",IFRAME_TEST_RUNNER_WAITING_STEP_COMPLETION_RESPONSE_CMD:"waitingStepCompletionResponse",ASSERT_REQUEST_CMD:"assertRequest",ASSERT_RESPONSE_CMD:"assertResponse"},isJqueryObj=function(e){return!(!e||!e.jquery)},messageSandbox$3=hammerhead__default["default"].eventSandbox.message,arrayUtils$1=testCafeCore__default["default"].arrayUtils,domUtils$2=testCafeCore__default["default"].domUtils,AssertionsAPI=function(e){
this.onAssertionFailed=e};AssertionsAPI.prototype._fail=function(e){e.stepName=Settings.get().CURRENT_TEST_STEP_NAME,e.__sourceIndex=currentIndex,this.onAssertionFailed(e)},AssertionsAPI.prototype.ok=function(e,t){e||this._fail({type:ERROR_TYPE.okAssertion,message:t,actual:getDescription(e)})},AssertionsAPI.prototype.notOk=function(e,t){e&&this._fail({type:ERROR_TYPE.notOkAssertion,message:t,actual:getDescription(e)})},AssertionsAPI.prototype.eq=function(e,t,n){var r=getObjectsDiff(e,t);r&&this._fail({type:ERROR_TYPE.eqAssertion,message:n,actual:r.actual,expected:r.expected,key:r.key,isStrings:r.isStrings,isArrays:r.isArrays,isObjects:r.isObjects,isDates:r.isDates,diffType:r.diffType||{}})},AssertionsAPI.prototype.notEq=function(e,t,n,r){var i=getObjectsDiff(e,t);i?r&&r():this._fail({type:ERROR_TYPE.notEqAssertion,message:n,actual:getDescription(e),callback:r})},AssertionsAPI.assert=function(e,t,n,r){function i(e){e.message.cmd===CROSS_DOMAIN_MESSAGES.ASSERT_RESPONSE_CMD&&(messageSandbox$3.off(messageSandbox$3.SERVICE_MSG_RECEIVED_EVENT,i),n(e.message.err))}if(r){messageSandbox$3.on(messageSandbox$3.SERVICE_MSG_RECEIVED_EVENT,i);var o={cmd:CROSS_DOMAIN_MESSAGES.ASSERT_REQUEST_CMD,operator:e,args:t};return void messageSandbox$3.sendServiceMsg(o,r)}var a=null,s=new AssertionsAPI(function(e){a=e});s[e].apply(s,t),n(a)},wrapTrackableMethods(AssertionsAPI.prototype,["ok","notOk","eq","notEq"]);var AUTOMATIONS_STORAGE_FLAG="runner|automations-storage-flag",nativeMethods$5=hammerhead__default["default"].nativeMethods,processScript=hammerhead__default["default"].processScript,jQuery=null,sandboxedJQuery={__proto__:null,get jQuery(){return jQuery},init:init$4},nativeMethods$4=hammerhead__default["default"].nativeMethods,contentEditable=testCafeCore__default["default"].contentEditable,domUtils$1=testCafeCore__default["default"].domUtils,positionUtils=testCafeCore__default["default"].positionUtils,styleUtils=testCafeCore__default["default"].styleUtils,arrayUtils=testCafeCore__default["default"].arrayUtils,parseKeySequence=testCafeCore__default["default"].parseKeySequence,selectElement=testCafeUI__default["default"].selectElement,TEST_RUN_ERRORS=testCafeCore__default["default"].TEST_RUN_ERRORS,ELEMENT_AVAILABILITY_WAITING_DELAY=200,WAIT_FOR_DEFAULT_TIMEOUT=1e4,CHECK_CONDITION_INTERVAL=50,stepIterator=null,conditionIntervalId=null,actions={__proto__:null,parseActionArgument:parseActionArgument,init:init$3,click:click,rclick:rclick,dblclick:dblclick,drag:drag,select:select,type:type,hover:hover,press:press,wait:wait,waitFor:waitFor,navigateTo:navigateTo,upload:upload,screenshot:screenshot,setElementAvailabilityWaitingTimeout:setElementAvailabilityWaitingTimeout};wrapTrackableMethods(actions,["click","rclick","dblclick","drag","type","wait","waitFor","hover","press","select","navigateTo","upload","screenshot"]);var EventEmitter=testCafeCore__default["default"].serviceUtils.EventEmitter,UNEXPECTED_DIALOG_ERROR_EVENT="unexpectedDialogError",WAS_NOT_EXPECTED_DIALOG_ERROR_EVENT="wasNotExpectedDialogError",DIALOGS_INFO_CHANGED_EVENT="dialogsInfoChangedEvent",dialogsInfo=null,beforeUnloadEventWasRaised=!1,eventEmitter=new EventEmitter,initialized$1=!1,COMMAND={assertionFailed:"assertion-failed",fatalError:"fatal-error",done:"done",setStepsSharedData:"set-steps-shared-data",getStepsSharedData:"get-steps-shared-data",getAndUncheckFileDownloadingFlag:"get-and-uncheck-file-downloading-flag",nativeDialogsInfoSet:"native-dialogs-info-set",takeScreenshot:"take-screenshot",waitForFileDownload:"wait-for-file-download"},transport=hammerhead__default["default"].transport,transport$1={__proto__:null,fatalError:fatalError,assertionFailed:assertionFailed,asyncServiceMsg:asyncServiceMsg,waitForServiceMessagesCompleted:waitForServiceMessagesCompleted,batchUpdate:batchUpdate},messageSandbox$2=hammerhead__default["default"].eventSandbox.message,nativeMethods$3=hammerhead__default["default"].nativeMethods,RequestEmitter$1=testCafeCore__default["default"].ClientRequestEmitter,RequestBarrier$1=testCafeCore__default["default"].RequestBarrier,serviceUtils$2=testCafeCore__default["default"].serviceUtils,domUtils=testCafeCore__default["default"].domUtils,eventUtils$1=testCafeCore__default["default"].eventUtils,JSON$3=hammerhead__default["default"].json,modalBackground=testCafeUI__default["default"].modalBackground,ANIMATIONS_WAIT_DELAY$1=200,CHECK_FILE_DOWNLOADING_DELAY=500,IFRAME_EXISTENCE_WATCHING_INTERVAL=1e3,RunnerBase=function(){var e=this;this.eventEmitter=new serviceUtils$2.EventEmitter,this.stepIterator=new StepIterator(pingIframe),this.executingStepInIFrameWindow=null,this.stopped=!1,this.listenNativeDialogs=!1,this.isFileDownloadingIntervalID=null,this.iframeActionTargetWaitingStarted=!1,this.pageInitialRequestBarrier=null,this.assertionsAPI=new AssertionsAPI(function(t){e.stepIterator.onAssertionFailed(t)}),actions.init(this.stepIterator),this._initNativeDialogs(),init$1(),this._initBarrier(),this._initApi(),this._initIFrameBehavior(),hammerhead__default["default"].on(hammerhead__default["default"].EVENTS.uncaughtJsError,function(t){t.inIFrame&&!Settings.get().PLAYBACK?e.stepIterator.stop():Settings.get().SKIP_JS_ERRORS&&!Settings.get().RECORDING||e._onFatalError({type:ERROR_TYPE.uncaughtJSError,scriptErr:t.msg,pageError:!0,pageDestUrl:t.pageUrl,stepName:e.stepIterator.getCurrentStep()})}),e.stepIterator.on(StepIterator.ERROR_EVENT,function(t){e._onFatalError(t)}),e.act._onJSError=function(t){e._onFatalError({type:ERROR_TYPE.uncaughtJSError,scriptErr:t&&t.message||t})},e.act._start=function(t,n,r){e._prepareStepsExecuting(function(){e.stopped||(delete e.act._onJSError,delete e.act._start,e.eventEmitter.emit(e.TEST_STARTED_EVENT,{nextStep:e.nextStep}),modalBackground.hide(),e.stepIterator.on(StepIterator.TEST_COMPLETE_EVENT,function(t){e._onTestComplete(t)}),e.stepIterator.on(StepIterator.NEXT_STEP_STARTED_EVENT,function(t){e._onNextStepStarted(t),e._clearFileDownloadingInterval()}),e.stepIterator.on(StepIterator.ACTION_TARGET_WAITING_STARTED_EVENT,function(t){e._onActionTargetWaitingStarted(t)}),e.stepIterator.on(StepIterator.ACTION_RUN_EVENT,function(){e._onActionRun()}),e.stepIterator.on(StepIterator.ASSERTION_FAILED_EVENT,function(t){e._onAssertionFailed(t)}),e.stepIterator.on(StepIterator.SET_STEPS_SHARED_DATA_EVENT,function(t){e._onSetStepsSharedData(t)}),e.stepIterator.on(StepIterator.GET_STEPS_SHARED_DATA_EVENT,function(t){e._onGetStepsSharedData(t)}),e.stepIterator.on(StepIterator.TAKE_SCREENSHOT_EVENT,function(t){e._onTakeScreenshot(t)}),e.stepIterator.on(StepIterator.BEFORE_UNLOAD_EVENT_RAISED,function(){e._onBeforeUnload()}),e.stepIterator.on(StepIterator.UNLOAD_EVENT_RAISED,function(){e._clearFileDownloadingInterval()}),e.listenNativeDialogs=!0,e.stepIterator.start(t,n,resetHandlers,checkExpectedDialogs,e.nextStep))},r)}};RunnerBase.prototype.run=function(e,t,n){this.stepIterator.runSteps(e,t,resetHandlers,checkExpectedDialogs,n)},RunnerBase.prototype._destroy=function(){destroy(),this._destroyIFrameBehavior()},RunnerBase.prototype._initBarrier=function(){var e=new RequestEmitter$1;this.pageInitialRequestBarrier=new RequestBarrier$1(e,{requestsCollection:Settings.get().REQUESTS_COLLECTION_DELAY,additionalRequestsCollection:Settings.get().ADDITIONAL_REQUESTS_COLLECTION_DELAY})},RunnerBase.prototype._initIFrameBehavior=function(){function e(e){var n=e.message,r=null;switch(n.cmd){case RunnerBase.IFRAME_STEP_COMPLETED_CMD:t.stepIterator.waitedIFrame===domUtils.findIframeByWindow(e.source,window.top)?t.stepIterator.iFrameActionCallback():t.executingStepInIFrameWindow===e.source&&t._onIFrameStepExecuted(),t._clearIFrameExistenceWatcherInterval();break;case RunnerBase.IFRAME_ERROR_CMD:n.err.stepNum===-1&&(n.err.stepNum=t.stepIterator.getCurrentStepNum(),n.err.stepName=t.stepIterator.getCurrentStep()),t._clearIFrameExistenceWatcherInterval(),t._onFatalError(n.err);break;case RunnerBase.IFRAME_FAILED_ASSERTION_CMD:Settings.get().PLAYBACK&&(t.executingStepInIFrameWindow=null),n.err.stepNum=t.stepIterator.state.step-1,t._onAssertionFailed(n.err);break;case RunnerBase.IFRAME_GET_SHARED_DATA_REQUEST_CMD:r={cmd:RunnerBase.IFRAME_GET_SHARED_DATA_RESPONSE_CMD,sharedData:t.stepIterator.getSharedData()},messageSandbox$2.sendServiceMsg(r,e.source);break;case RunnerBase.IFRAME_SET_SHARED_DATA_CMD:t.stepIterator.setSharedData(JSON$3.parse(n.sharedData));break;case RunnerBase.IFRAME_NEXT_STEP_STARTED_CMD:t.executingStepInIFrameWindow=e.source,t._clearFileDownloadingInterval();break;case RunnerBase.IFRAME_ACTION_TARGET_WAITING_STARTED_CMD:t.iframeActionTargetWaitingStarted=!0,t._onActionTargetWaitingStarted(e.message.params);break;case RunnerBase.IFRAME_ACTION_RUN_CMD:t.iframeActionTargetWaitingStarted=!1,t._onActionRun();break;case CROSS_DOMAIN_MESSAGES.IFRAME_TEST_RUNNER_WAITING_STEP_COMPLETION_REQUEST_CMD:t.stepIterator.waitedIFrame!==domUtils.findIframeByWindow(e.source,window.top)&&t.executingStepInIFrameWindow!==e.source||(r={cmd:CROSS_DOMAIN_MESSAGES.IFRAME_TEST_RUNNER_WAITING_STEP_COMPLETION_RESPONSE_CMD},messageSandbox$2.sendServiceMsg(r,e.source));break;case RunnerBase.IFRAME_TAKE_SCREENSHOT_REQUEST_CMD:t._onTakeScreenshot({filePath:n.filePath,callback:function(){r={cmd:RunnerBase.IFRAME_TAKE_SCREENSHOT_RESPONSE_CMD},messageSandbox$2.sendServiceMsg(r,e.source)}});break;case RunnerBase.IFRAME_NATIVE_DIALOGS_INFO_CHANGED_CMD:t._onDialogsInfoChanged(n.info);break;case RunnerBase.IFRAME_BEFORE_UNLOAD_REQUEST_CMD:t._onActionRun(),t._onBeforeUnload(!0,function(t){r={cmd:RunnerBase.IFRAME_BEFORE_UNLOAD_RESPONSE_CMD,res:t},messageSandbox$2.sendServiceMsg(r,e.source)})}}var t=this;messageSandbox$2.on(messageSandbox$2.SERVICE_MSG_RECEIVED_EVENT,e),t._destroyIFrameBehavior=function(){messageSandbox$2.off(messageSandbox$2.SERVICE_MSG_RECEIVED_EVENT,e)}},RunnerBase.prototype._prepareStepsExecuting=function(e,t){var n=this;t?e():eventUtils$1.documentReady().then(function(){nativeMethods$3.setTimeout.call(window,function(){batchUpdate(function(){n.pageInitialRequestBarrier.wait(!0).then(e)})},ANIMATIONS_WAIT_DELAY$1)})},RunnerBase.WAITING_FOR_ACTION_TARGET_MESSAGE="Waiting for the target element of the next action to appear",RunnerBase.prototype.TEST_STARTED_EVENT="testStarted",RunnerBase.prototype.TEST_COMPLETED_EVENT="testCompleted",RunnerBase.prototype.NEXT_STEP_STARTED_EVENT="nextStepStarted",RunnerBase.prototype.ACTION_TARGET_WAITING_STARTED_EVENT="actionTargetWaitingStarted",RunnerBase.prototype.ACTION_RUN_EVENT="actionRun",RunnerBase.prototype.TEST_FAILED_EVENT="testFailed",RunnerBase.SCREENSHOT_CREATING_STARTED_EVENT="screenshotCreatingStarted",RunnerBase.SCREENSHOT_CREATING_FINISHED_EVENT="screenshotCreatingFinished",RunnerBase.IFRAME_STEP_COMPLETED_CMD="iframeStepCompleted",RunnerBase.IFRAME_ERROR_CMD="iframeError",RunnerBase.IFRAME_FAILED_ASSERTION_CMD="iframeFailedAssertion",RunnerBase.IFRAME_GET_SHARED_DATA_REQUEST_CMD="getSharedDataRequest",RunnerBase.IFRAME_GET_SHARED_DATA_RESPONSE_CMD="getSharedDataResponse",RunnerBase.IFRAME_SET_SHARED_DATA_CMD="setSharedData",RunnerBase.IFRAME_NEXT_STEP_STARTED_CMD="nextStepStarted",RunnerBase.IFRAME_ACTION_TARGET_WAITING_STARTED_CMD="actionTargetWaitingStarted",RunnerBase.IFRAME_ACTION_RUN_CMD="actionRun",RunnerBase.IFRAME_TAKE_SCREENSHOT_REQUEST_CMD="takeScreenshotRequest",RunnerBase.IFRAME_TAKE_SCREENSHOT_RESPONSE_CMD="takeScreenshotResponse",RunnerBase.IFRAME_NATIVE_DIALOGS_INFO_CHANGED_CMD="nativeDialogsInfoChanged",RunnerBase.IFRAME_BEFORE_UNLOAD_REQUEST_CMD="iframeBeforeUnloadRequest",RunnerBase.IFRAME_BEFORE_UNLOAD_RESPONSE_CMD="iframeBeforeUnloadResponse",RunnerBase.prototype.on=function(e,t){this.eventEmitter.on(e,t)},RunnerBase.prototype._runInIFrame=function(e,t,n,r){function i(){domUtils.isElementInDocument(e)||(o._onIFrameStepExecuted(),o._clearIFrameExistenceWatcherInterval())}var o=this;this.stepIterator.state.inAsyncAction=!0;var a={cmd:CROSS_DOMAIN_MESSAGES.IFRAME_TEST_RUNNER_RUN_CMD,stepName:t,step:n.toString(),stepNum:r};this._clearIFrameExistenceWatcherInterval(),pingIframe(e).then(function(){o.iframeExistenceWatcherInterval=nativeMethods$3.setInterval.call(window,i,IFRAME_EXISTENCE_WATCHING_INTERVAL),messageSandbox$2.sendServiceMsg(a,e.contentWindow)})["catch"](function(){o._onFatalError({type:ERROR_TYPE.inIFrameTargetLoadingTimeout,stepName:o.stepIterator.getCurrentStep()})})},RunnerBase.prototype._ensureIFrame=function(e){return e?domUtils.isDomElement(e)?e.tagName&&domUtils.isIframeElement(e)?e:(this._onFatalError({type:ERROR_TYPE.iframeArgumentIsNotIFrame,stepName:this.stepIterator.getCurrentStep()}),null):("string"==typeof e&&(e=jQuery(e)),isJqueryObj(e)?0===e.length?(this._onFatalError({type:ERROR_TYPE.emptyIFrameArgument,stepName:this.stepIterator.getCurrentStep()}),null):e.length>1?(this._onFatalError({type:ERROR_TYPE.multipleIFrameArgument,stepName:this.stepIterator.getCurrentStep()}),null):this._ensureIFrame(e[0]):"function"==typeof e?this._ensureIFrame(e()):(this._onFatalError({type:ERROR_TYPE.incorrectIFrameArgument,stepName:this.stepIterator.getCurrentStep()}),null)):(this._onFatalError({type:ERROR_TYPE.emptyIFrameArgument,stepName:this.stepIterator.getCurrentStep()}),null)},RunnerBase.prototype._initApi=function(){var e=this;this.act=actions,this.ok=function(){e.assertionsAPI.ok.apply(e.assertionsAPI,arguments)},this.notOk=function(){e.assertionsAPI.notOk.apply(e.assertionsAPI,arguments)},this.eq=function(){e.assertionsAPI.eq.apply(e.assertionsAPI,arguments)},this.notEq=function(){e.assertionsAPI.notEq.apply(e.assertionsAPI,arguments)},this.handleAlert=handleAlert,this.handleConfirm=handleConfirm,this.handlePrompt=handlePrompt,this.handleBeforeUnload=handleBeforeUnload,this.inIFrame=function(t,n){return function(){var r=e.stepIterator.state.step,i=e._ensureIFrame(t());i&&e._runInIFrame(i,e.stepIterator.getCurrentStep(),n,r)}}},RunnerBase.prototype._initNativeDialogs=function(){var e=this;Settings.get().NATIVE_DIALOGS_INFO&&(e.listenNativeDialogs=!0),init$2(Settings.get().NATIVE_DIALOGS_INFO),on$1(UNEXPECTED_DIALOG_ERROR_EVENT,function(t){e.listenNativeDialogs&&e.stepIterator.onError({type:ERROR_TYPE.unexpectedDialog,stepName:e.stepIterator.getCurrentStep(),dialog:t.dialog,message:t.message})}),on$1(WAS_NOT_EXPECTED_DIALOG_ERROR_EVENT,function(t){e.listenNativeDialogs&&e.stepIterator.onError({type:ERROR_TYPE.expectedDialogDoesntAppear,stepName:e.stepIterator.getCurrentStep(),dialog:t.dialog})}),on$1(DIALOGS_INFO_CHANGED_EVENT,function(t){e._onDialogsInfoChanged(t.info)})},RunnerBase.prototype._onTestComplete=function(e){this.stopped=!0,this.eventEmitter.emit(this.TEST_COMPLETED_EVENT,{}),e.callback()},RunnerBase.prototype._onNextStepStarted=function(e){e.callback()},RunnerBase.prototype._onActionTargetWaitingStarted=function(e){this.eventEmitter.emit(this.ACTION_TARGET_WAITING_STARTED_EVENT,e)},RunnerBase.prototype._onActionRun=function(){this.eventEmitter.emit(this.ACTION_RUN_EVENT,{})},RunnerBase.prototype._onFatalError=function(e){this.eventEmitter.emit(this.TEST_FAILED_EVENT,{stepNum:this.stepIterator.state.step-1,err:e})},RunnerBase.prototype._onAssertionFailed=function(){},RunnerBase.prototype._onSetStepsSharedData=function(e){e.callback()},RunnerBase.prototype._onGetStepsSharedData=function(e){e.callback()},RunnerBase.prototype._onTakeScreenshot=function(e){e&&e.callback&&e.callback()},RunnerBase.prototype._onIFrameStepExecuted=function(){this.executingStepInIFrameWindow=null,this.iframeActionTargetWaitingStarted?(this.iframeActionTargetWaitingStarted=!1,this.stepIterator.runLast()):this.stepIterator.runNext()},RunnerBase.prototype._onDialogsInfoChanged=function(){},RunnerBase.prototype.setGlobalWaitFor=function(e,t){this.stepIterator.setGlobalWaitFor(e,t)},RunnerBase.prototype._onBeforeUnload=function(e,t){var n=this;this.stopped||(n.isFileDownloadingIntervalID=nativeMethods$3.setInterval.call(window,function(){asyncServiceMsg({cmd:COMMAND.getAndUncheckFileDownloadingFlag},function(r){if(r){if(window.clearInterval(n.isFileDownloadingIntervalID),n.isFileDownloadingIntervalID=null,e)return void t(r);n.stepIterator.state.stepDelayTimeout&&(window.clearTimeout(n.stepIterator.state.stepDelayTimeout),n.stepIterator.state.stepDelayTimeout=null),n.stepIterator.state.pageUnloading=!1,n.stepIterator._runStep()}})},CHECK_FILE_DOWNLOADING_DELAY))},RunnerBase.prototype._clearFileDownloadingInterval=function(){this.isFileDownloadingIntervalID&&(window.clearInterval(this.isFileDownloadingIntervalID),this.isFileDownloadingIntervalID=null)},RunnerBase.prototype._clearIFrameExistenceWatcherInterval=function(){this.iframeExistenceWatcherInterval!==-1&&(window.clearInterval(this.iframeExistenceWatcherInterval),this.iframeExistenceWatcherInterval=-1)};var JSON$2=hammerhead__default["default"].json,nativeMethods$2=hammerhead__default["default"].nativeMethods,STORAGE_KEY_PREFIX="runner|",TestContextStorage=function(){function e(e,t){this.storage=nativeMethods$2.winSessionStorageGetter.call(e),this.storageKey=STORAGE_KEY_PREFIX+t,this.data=null,this._loadFromStorage()}return e.prototype._loadFromStorage=function(){var e=nativeMethods$2.storageGetItem.call(this.storage,this.storageKey);e&&(this.data=JSON$2.parse(e),nativeMethods$2.storageRemoveItem.call(this.storage,this.storageKey))},e.prototype._saveToStorage=function(){nativeMethods$2.storageSetItem.call(this.storage,this.storageKey,JSON$2.stringify(this.data))},e.prototype.get=function(){return this.data},e.prototype.set=function(e){this.data=e,this._saveToStorage()},e.prototype.setProperty=function(e,t){this.data[e]=t,this._saveToStorage()},e.prototype.dispose=function(){nativeMethods$2.storageRemoveItem.call(this.storage,this.storageKey)},e}(),Promise$2=hammerhead__default["default"].Promise,nativeMethods$1=hammerhead__default["default"].nativeMethods,WAITING_FOR_SERVICE_MESSAGES_COMPLETED_DELAY=1e3,APPLY_DOCUMENT_TITLE_TIMEOUT=500,RESTORE_DOCUMENT_TITLE_TIMEOUT=100,CHECK_TITLE_INTERVAL=50,beforeUnloadRaised=!1;hammerhead__default["default"].on(hammerhead__default["default"].EVENTS.beforeUnload,function(){return beforeUnloadRaised=!0});var Runner=function(e,t,n){RunnerBase.apply(this,[e]),this.testRunId=t,this.browserId=n,this.testContextStorage=new TestContextStorage(window,t),this.testContextStorage.get()||this.testContextStorage.set({nextStep:0,actionTargetWaiting:!1,testError:null});var r=this.testContextStorage.get(),i=r.nextStep,o=r.actionTargetWaiting,a=r.testError;this.nextStep=o?i-1:i,a&&this._onFatalError(a)};testCafeCore.serviceUtils.inherit(Runner,RunnerBase),Runner.startHeartbeat=function(e){testCafeCore.browser.startHeartbeat(e,hammerhead__default["default"].createNativeXHR)},Runner.checkStatus=function(){var e={statusUrl:Settings.get().BROWSER_STATUS_URL};testCafeCore.browser.checkStatus(e,hammerhead__default["default"].createNativeXHR)},Runner.prototype._onTestComplete=function(e){var t=this;this.stopped=!0,waitForServiceMessagesCompleted(WAITING_FOR_SERVICE_MESSAGES_COMPLETED_DELAY,function(){var n={cmd:COMMAND.done};asyncServiceMsg(n,function(){e.callback(),t.testContextStorage.dispose(),Runner.checkStatus()})})},Runner.prototype._onNextStepStarted=function(e){this.testContextStorage.setProperty("nextStep",e.nextStep),e.callback()},Runner.prototype._onActionTargetWaitingStarted=function(e){RunnerBase.prototype._onActionTargetWaitingStarted.apply(this,[e]),this.testContextStorage.setProperty("actionTargetWaiting",!0)},Runner.prototype._onActionRun=function(){RunnerBase.prototype._onActionRun.apply(this,[]),this.testContextStorage.setProperty("actionTargetWaiting",!1)},Runner.prototype._beforeScreenshot=function(){var e=this;return this.eventEmitter.emit(RunnerBase.SCREENSHOT_CREATING_STARTED_EVENT,{}),this.savedDocumentTitle=document.title,this.assignedTitle="[ ".concat(this.browserId," ]"),this.checkTitleIntervalId=nativeMethods$1.setInterval.call(window,function(){document.title!==e.assignedTitle&&(e.savedDocumentTitle=document.title,document.title=e.assignedTitle)},CHECK_TITLE_INTERVAL),document.title=this.assignedTitle,new Promise$2(function(e){return nativeMethods$1.setTimeout.call(window,e,APPLY_DOCUMENT_TITLE_TIMEOUT)})},Runner.prototype._afterScreenshot=function(){return window.clearInterval(this.checkTitleIntervalId),document.title=this.savedDocumentTitle,this.checkTitleIntervalId=null,this.savedDocumentTitle=null,this.assignedTitle=null,this.eventEmitter.emit(RunnerBase.SCREENSHOT_CREATING_FINISHED_EVENT,{}),this.stepIterator.resume(),new Promise$2(function(e){return nativeMethods$1.setTimeout.call(window,e,RESTORE_DOCUMENT_TITLE_TIMEOUT)})},Runner.prototype._reportErrorToServer=function(e,t){var n=this;return new Promise$2(function(r){t?assertionFailed(e,r):(n.testContextStorage.dispose(),fatalError(e,r))})},Runner.prototype._onTestError=function(e,t){var n=this;e.hasOwnProperty("screenshotRequired")||(e.screenshotRequired=Settings.get().TAKE_SCREENSHOTS&&Settings.get().TAKE_SCREENSHOTS_ON_FAILS&&this.stepIterator.state.curStepErrors.length<2);var r=Promise$2.resolve();return e.screenshotRequired&&(this.stepIterator.suspend(),r=r.then(function(){return n._beforeScreenshot()}).then(function(){e.innerWidth=window.innerWidth,e.innerHeight=window.innerHeight})),r=r.then(function(){return n._reportErrorToServer(e,t)}),e.screenshotRequired&&(r=r.then(function(){return n._afterScreenshot()})),r},Runner.prototype._onFatalError=function(e){this.stopped||(this.stopped=!0,this.stepIterator.stop(),RunnerBase.prototype._onFatalError.call(this,e),beforeUnloadRaised?(e.screenshotRequired=!1,this.testContextStorage.setProperty("testError",e)):this._onTestError(e).then(Runner.checkStatus))},Runner.prototype._onAssertionFailed=function(e){this._onTestError(e.err,!0)},Runner.prototype._onSetStepsSharedData=function(e){var t={cmd:COMMAND.setStepsSharedData,stepsSharedData:e.stepsSharedData};asyncServiceMsg(t,function(){e.callback()})},Runner.prototype._onGetStepsSharedData=function(e){var t={cmd:COMMAND.getStepsSharedData};asyncServiceMsg(t,e.callback)},Runner.prototype._onTakeScreenshot=function(e){var t=this;return Settings.get().TAKE_SCREENSHOTS?(this.stepIterator.suspend(),void this._beforeScreenshot().then(function(){return new Promise$2(function(t){var n={cmd:COMMAND.takeScreenshot,customPath:e.filePath,pageDimensions:{dpr:window.devicePixelRatio||1,innerWidth:window.innerWidth,innerHeight:window.innerHeight,documentWidth:document.documentElement.clientWidth,documentHeight:document.documentElement.clientHeight,bodyWidth:document.body.clientWidth,bodyHeight:document.body.clientHeight}};asyncServiceMsg(n,t)})}).then(function(){return t._afterScreenshot()}).then(function(){"function"==typeof e.callback&&e.callback()})):"function"==typeof e.callback?e.callback():null},Runner.prototype._onDialogsInfoChanged=function(e){asyncServiceMsg({cmd:COMMAND.nativeDialogsInfoSet,info:e,timeStamp:Date.now()})};var messageSandbox$1=hammerhead__default["default"].eventSandbox.message,serviceUtils$1=testCafeCore__default["default"].serviceUtils,JSON$1=hammerhead__default["default"].json,IFrameRunner=function(e){RunnerBase.apply(this,[e]),this.nextStep=0};serviceUtils$1.inherit(IFrameRunner,RunnerBase),IFrameRunner.prototype._prepareStepsExecuting=function(e){e()},IFrameRunner.prototype._onTestComplete=function(e){var t={cmd:RunnerBase.IFRAME_STEP_COMPLETED_CMD};this._onSetStepsSharedData({stepsSharedData:this.stepIterator.getSharedData(),callback:function(){messageSandbox$1.sendServiceMsg(t,window.top),e.callback()}})},IFrameRunner.prototype._onNextStepStarted=function(e){var t={cmd:RunnerBase.IFRAME_NEXT_STEP_STARTED_CMD};messageSandbox$1.sendServiceMsg(t,window.top),e.callback()},IFrameRunner.prototype._onActionTargetWaitingStarted=function(e){var t={cmd:RunnerBase.IFRAME_ACTION_TARGET_WAITING_STARTED_CMD,params:e};messageSandbox$1.sendServiceMsg(t,window.top)},IFrameRunner.prototype._onActionRun=function(){messageSandbox$1.sendServiceMsg({cmd:RunnerBase.IFRAME_ACTION_RUN_CMD},window.top)},IFrameRunner.prototype._onFatalError=function(e){Settings.get().PLAYBACK&&!e.dialog||this.stepIterator.stop();var t={cmd:RunnerBase.IFRAME_ERROR_CMD,err:e};messageSandbox$1.sendServiceMsg(t,window.top)},IFrameRunner.prototype._onAssertionFailed=function(e){var t={cmd:RunnerBase.IFRAME_FAILED_ASSERTION_CMD,err:e};messageSandbox$1.sendServiceMsg(t,window.top),Settings.get().PLAYBACK&&this.stepIterator.stop()},IFrameRunner.prototype._onSetStepsSharedData=function(e){var t={cmd:RunnerBase.IFRAME_SET_SHARED_DATA_CMD,sharedData:JSON$1.stringify(e.stepsSharedData)};messageSandbox$1.sendServiceMsg(t,window.top),e.callback()},IFrameRunner.prototype._onGetStepsSharedData=function(e){function t(n){n.message.cmd===RunnerBase.IFRAME_GET_SHARED_DATA_RESPONSE_CMD&&(messageSandbox$1.off(messageSandbox$1.SERVICE_MSG_RECEIVED_EVENT,t),e.callback(n.message.sharedData))}var n={cmd:RunnerBase.IFRAME_GET_SHARED_DATA_REQUEST_CMD};messageSandbox$1.sendServiceMsg(n,window.top),messageSandbox$1.on(messageSandbox$1.SERVICE_MSG_RECEIVED_EVENT,t)},IFrameRunner.prototype._onTakeScreenshot=function(e){function t(n){n.message.cmd===RunnerBase.IFRAME_TAKE_SCREENSHOT_RESPONSE_CMD&&(messageSandbox$1.off(messageSandbox$1.SERVICE_MSG_RECEIVED_EVENT,t),e&&e.callback&&e.callback())}var n={cmd:RunnerBase.IFRAME_TAKE_SCREENSHOT_REQUEST_CMD,filePath:e.filePath};messageSandbox$1.sendServiceMsg(n,window.top),messageSandbox$1.on(messageSandbox$1.SERVICE_MSG_RECEIVED_EVENT,t)},IFrameRunner.prototype.onStepCompleted=function(){checkExpectedDialogs()},IFrameRunner.prototype._onDialogsInfoChanged=function(e){var t={cmd:RunnerBase.IFRAME_NATIVE_DIALOGS_INFO_CHANGED_CMD,info:e};messageSandbox$1.sendServiceMsg(t,window.top)},IFrameRunner.prototype._onBeforeUnload=function(){function e(n){n.message.cmd===RunnerBase.IFRAME_BEFORE_UNLOAD_RESPONSE_CMD&&(messageSandbox$1.off(messageSandbox$1.SERVICE_MSG_RECEIVED_EVENT,e),n.message.res&&(t.stepIterator.state.stepDelayTimeout&&(window.clearTimeout(t.stepIterator.state.stepDelayTimeout),t.stepIterator.state.stepDelayTimeout=null),t.stepIterator.state.pageUnloading=!1,t.stepIterator._runStep()))}var t=this,n={cmd:RunnerBase.IFRAME_BEFORE_UNLOAD_REQUEST_CMD};messageSandbox$1.on(messageSandbox$1.SERVICE_MSG_RECEIVED_EVENT,e),messageSandbox$1.sendServiceMsg(n,window.top)};var Promise$1=hammerhead__default["default"].Promise,messageSandbox=hammerhead__default["default"].eventSandbox.message,nativeMethods=hammerhead__default["default"].nativeMethods,RequestEmitter=testCafeCore__default["default"].ClientRequestEmitter,RequestBarrier=testCafeCore__default["default"].RequestBarrier,serviceUtils=testCafeCore__default["default"].serviceUtils,eventUtils=testCafeCore__default["default"].eventUtils,testRunInitializedCallback=null,runStep=null,pageInitialzied=!1,actionsQueue=[],testRunnerInitialized=!1,testRunner=null,MESSAGE_RECEIVED="messageReceived",on=null,off=null,ANIMATIONS_WAIT_DELAY=200,initialized=!1;if(window.top!==window){var requestBarrier=null;eventUtils.documentReady().then(function(){if(!initialized){var e=new RequestEmitter;return requestBarrier=new RequestBarrier(e,{requestsCollection:Settings.get().REQUESTS_COLLECTION_DELAY,additionalRequestsCollection:Settings.get().ADDITIONAL_REQUESTS_COLLECTION_DELAY}),initialized=!0,new Promise$1(function(e){return nativeMethods.setTimeout.call(window,e,ANIMATIONS_WAIT_DELAY)})}}).then(function(){return requestBarrier.wait(!0)}).then(function(){messageSandbox.on(messageSandbox.SERVICE_MSG_RECEIVED_EVENT,function(e){var t=e.message;t.cmd===CROSS_DOMAIN_MESSAGES.IFRAME_TEST_RUNNER_WAITING_STEP_COMPLETION_RESPONSE_CMD&&(testRunner.onStepCompleted(),testRunner.stepIterator.state.stopped||messageSandbox.sendServiceMsg({cmd:RunnerBase.IFRAME_STEP_COMPLETED_CMD},window.top))});var e={cmd:CROSS_DOMAIN_MESSAGES.IFRAME_TEST_RUNNER_WAITING_STEP_COMPLETION_REQUEST_CMD};messageSandbox.sendServiceMsg(e,window.top),pageInitialzied=!0;for(var t=0;t<actionsQueue.length;t++)actionsQueue[t]()})}var iframeDispatcher={__proto__:null,MESSAGE_RECEIVED:MESSAGE_RECEIVED,get on(){return on},get off(){return off},init:init},isTextNode=testCafeCore.domUtils.isTextNode,getTagName=testCafeCore.domUtils.getTagName,START_SUBSTR_RE=":/",END_SUBSTR_RE="/",START_SUBSTR_RE_LENGTH=START_SUBSTR_RE.length,END_SUBSTR_RE_LENGTH=END_SUBSTR_RE.length,ATTR_REGEXP_METHOD_NAME="attrRegExp",CONTAINS_OWN_TEXT_METHOD_NAME="containsExcludeChildren",TEXT_ELEMENT_TAGS_RE=/^i$|^b$|^big$|^small$|^em$|^strong$|^dfn$|^code$|^samp$|^kbd$|^var$|^cite$|^abbr$|^acronym$|^sub$|^sup$|span$|^bdo$|^address$|^div$|^a$|^object$|^p$|^h\d$|^pre$|^q$|^ins$|^del$|^dt$|^dd$|^li$|^label$|^option$|^textarea$|^fieldset$|^legend$|^button$|^caption$|^td$|^th$|^title$/,jQueryDataMethodProxy={__proto__:null,setup:setup},exports$1={};exports$1.SETTINGS=Settings,exports$1.Runner=Runner,exports$1.RunnerBase=RunnerBase,exports$1.iframeDispatcher=iframeDispatcher,exports$1.extendJQuerySelectors=extendJQuerySelectors,exports$1.jQueryDataMethodProxy=jQueryDataMethodProxy,exports$1.sandboxedJQuery=sandboxedJQuery,exports$1.transport=transport$1,Object.defineProperty(window,"%testCafeLegacyRunner%",{enumerable:!1,configurable:!1,writable:!1,value:exports$1}),hammerhead__default["default"].on(hammerhead__default["default"].EVENTS.evalIframeScript,function(e){return initTestCafeLegacyRunner(e.iframe.contentWindow,!0)})}(window["%hammerhead%"],window["%testCafeCore%"],window["%testCafeUI%"],window["%testCafeAutomation%"])}initTestCafeLegacyRunner(window)}();