1(()=>{"use strict";var t={};function e(t,e){return a(t)||i(t,e)||n(t,e)||r()}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,e){if(!t)return;if(typeof t==="string")return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor)r=t.constructor.name;if(r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}function o(t,e){if(e==null||e>t.length)e=t.length;for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r["return"]&&(a=r["return"](),Object(a)!==a))return}finally{if(s)throw o}}return c}}function a(t){if(Array.isArray(t))return t}function c(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var r=new FormData;t.forEach((function(t){for(var n=0,o=Object.entries(t);n<o.length;n++){var i=e(o[n],2),a=i[0],c=i[1];r.set(a,c)}}));r.set(window.tutor_get_nonce_data(true).key,window.tutor_get_nonce_data(true).value);return r}const u=c;function s(t){"@babel/helpers - typeof";return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function e(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function t(e,r,n){return e[r]=n}}function f(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new O(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var d={};function p(){}function v(){}function y(){}var m={};u(m,i,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(k([])));w&&w!==e&&r.call(w,i)&&(m=w);var b=y.prototype=p.prototype=Object.create(m);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(n,i,a,c){var u=h(t[n],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==s(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function t(r,n){function a(){return new e((function(t,e){o(r,n,t,e)}))}return i=i?i.then(a,a):a()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(undefined===n)return e.delegate=null,"throw"===r&&t.iterator["return"]&&(e.method="return",e.arg=undefined,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=h(n,t.iterator,e.arg);
vendor: 6,613 bytes, line 1
1if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=undefined),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function k(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=undefined,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:undefined,done:!0}}return v.prototype=y,n(b,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},L(x.prototype),u(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,O.prototype={constructor:O,reset:function t(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=undefined)},stop:function t(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function t(e){if(this.done)throw e;var n=this;function o(t,r){return c.type="throw",c.arg=e,n.next=t,r&&(n.method="next",n.arg=undefined),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function t(e,n){for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=n&&n<=a.finallyLoc&&(a=null);var c=a?a.completion:{};return c.type=e,c.arg=n,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(c)},complete:function t(e,r){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&r&&(this.next=r),d},finish:function t(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function t(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var i=o.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function t(e,r,n){return this.delegate={iterator:k(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=undefined),d}},t}function f(t,e,r,n,o,i,a){try{var c=t[i](a);var u=c.value}catch(t){r(t);return}if(c.done){e(u)}else{Promise.resolve(u).then(n,o)}}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){f(i,n,o,a,c,"next",t)}function c(t){f(i,n,o,a,c,"throw",t)}a(undefined)}))}}function d(t){return p.apply(this,arguments)}function p(){p=h(l().mark((function t(e){var r;return l().wrap((function t(n){while(1)switch(n.prev=n.next){case 0:n.prev=0;n.next=3;return fetch(window._tutorobject.ajaxurl,{method:"POST",body:e});case 3:r=n.sent;return n.abrupt("return",r);case 7:n.prev=7;n.t0=n["catch"](0);tutor_toast(__("Operation failed","tutor"),n.t0,"error");case 10:case"end":return n.stop()}}),t,null,[[0,7]])})));return p.apply(this,arguments)}function v(t){"@babel/helpers - typeof";return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function y(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function e(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function t(e,r,n){return e[r]=n}}function s(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new O(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function d(){}function p(){}var m={};u(m,i,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(k([])));w&&w!==e&&r.call(w,i)&&(m=w);var b=p.prototype=h.prototype=Object.create(m);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(n,i,a,c){var u=l(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==v(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)}
1)):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function t(r,n){function a(){return new e((function(t,e){o(r,n,t,e)}))}return i=i?i.then(a,a):a()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(t,e){var r=e.method,n=t.iterator[r];if(undefined===n)return e.delegate=null,"throw"===r&&t.iterator["return"]&&(e.method="return",e.arg=undefined,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=undefined),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function k(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=undefined,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:undefined,done:!0}}return d.prototype=p,n(b,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},L(x.prototype),u(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,O.prototype={constructor:O,reset:function t(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=undefined)},stop:function t(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function t(e){if(this.done)throw e;var n=this;function o(t,r){return c.type="throw",c.arg=e,n.next=t,r&&(n.method="next",n.arg=undefined),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function t(e,n){for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=n&&n<=a.finallyLoc&&(a=null);var c=a?a.completion:{};return c.type=e,c.arg=n,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(c)},complete:function t(e,r){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&r&&(this.next=r),f},finish:function t(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function t(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var i=o.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function t(e,r,n){return this.delegate={iterator:k(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=undefined),f}},t}function m(t,e,r,n,o,i,a){try{var c=t[i](a);var u=c.value}catch(t){r(t);return}if(c.done){e(u)}else{Promise.resolve(u).then(n,o)}}function g(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){m(i,n,o,a,c,"next",t)}function c(t){m(i,n,o,a,c,"throw",t)}a(undefined)}))}}var w=wp.i18n.__;if(!window.tutor_toast){window.tutor_toast=function(t,e,r){var n=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;if(!jQuery(".tutor-toast-parent").length){jQuery("body").append('<div class="tutor-toast-parent tutor-toast-right"></div>')}var o=r=="success"?"success":r=="error"?"danger":r=="warning"?"warning":"primary";var i=r=="success"?"tutor-icon-mark":r=="error"?"tutor-icon-times":"tutor-icon-circle-info-o";var a=e!==undefined&&e!==null&&e.trim()!=="";var c=jQuery('\n <div class="tutor-notification tutor-is-'.concat(o,' tutor-mb-16">\n <div class="tutor-notification-icon">\n <i class="').concat(i,'"></i>\n </div>\n <div class="tutor-notification-content">\n <h5>').concat(t,'</h5>\n <p class="').concat(!a?"tutor-d-none":"",'">').concat(e,'</p>\n </div>\n <button class="tutor-notification-close">\n <i class="fas fa-times"></i>\n </button>\n </div>\n '));c.find(".tutor-noti-close").click((function(){c.remove()}));jQuery(".tutor-toast-parent").append(c);if(n){setTimeout((function(){if(c){c.fadeOut("fast",(function(){jQuery(this).remove()}))}}),5e3)}}}document.addEventListener("DOMContentLoaded",(function(){var t=window._tutorobject?_tutorobject:"",e=t.current_page;if(e==="settings"){var r=document.querySelectorAll(".tutor-device-sign-out");r.forEach((function(t){t.onclick=function(){var t=g(y().mark((function t(e){var r,n,o,i,a,c,s;return y().wrap((function t(l){while(1)switch(l.prev=l.next){case 0:r=e.target;n=e.target.dataset.umetaId;o=u([{umeta_id:n,action:"tutor_remove_device_manually"}]);l.prev=3;r.classList.add("is-loading");r.setAttribute("disabled",true);l.next=8;return d(o);case 8:i=l.sent;l.next=11;return i.json();case 11:a=l.sent;c=a.success,s=a.data;if(c){tutor_toast(w("Success","tutor-pro"),s.msg,"success");if(s.redirect_to){window.location.href=s.redirect_to}else{r.closest(".tutor-col-md-6").remove()}}else{tutor_toast(w("Failed","tutor-pro"),s.msg,"error")}l.next=19;break;case 16:l.prev=16;l.t0=l["catch"](3);tutor_toast(w("Something went wrong","tutor-pro"),w("Please try again after reloading page!"),"error");case 19:l.prev=19;r.classList.remove("is-loading");r.removeAttribute("disabled");return l.finish(19);case 23:case"end":return l.stop()}}),t,null,[[3,16,19,23]])})));return function(e){return t.apply(this,arguments)}}()}))}var n=document.querySelector(".tutor-login-form-wrapper, .tutor-login-modal, #login_error, .woocommerce-error");
1if(n){n.onclick=function(){var t=g(y().mark((function t(e){var r,o,i,a,c,s,l,f,h,p;return y().wrap((function t(v){while(1)switch(v.prev=v.next){case 0:r=e.target;o=r;if(!(r.hasAttribute("id")&&r.getAttribute("id")==="tutor-remove-active-logins")){v.next=38;break}e.preventDefault();i=document.getElementById("tutor-remove-logins-wrapper");a=i.closest(".tutor-alert");if(!a){a=document.getElementById("login_error")}if(!a){a=document.querySelector("ul.woocommerce-error")}c=u([{action:"tutor_remove_all_active_logins"}]);v.prev=9;i.innerHTML='<span class="tutor-color-subdued">'.concat(w("Please wait...","tutor-pro"),"</span>");v.next=13;return d(c);case 13:s=v.sent;v.next=16;return s.json();case 16:l=v.sent;f=l.success,h=l.data;if(!f){v.next=25;break}if(a.classList.contains("tutor-warning")){a.classList.remove("tutor-warning");a.classList.add("tutor-success")}if(a.hasAttribute("id")){a.style.borderLeftColor="#6eea98"}if(a.classList.contains("woocommerce-error")){a.classList.add("woocommerce-message")}a.innerHTML=w("All of your active login sessions have been removed. You can login now.");v.next=32;break;case 25:if(!Array.isArray(h)){v.next=30;break}p=h[0];if(!(p&&p.code==="tutor_login_limit")){v.next=30;break}n.insertAdjacentHTML("afterbegin",p.message);return v.abrupt("return");case 30:tutor_toast(w("Failed","tutor-pro"),h,"error");i.innerHTML=o;case 32:v.next=38;break;case 34:v.prev=34;v.t0=v["catch"](9);console.log(v.t0);tutor_toast(w("Something went wrong","tutor-pro"),w("Please try again after reloading page!"),"error");case 38:case"end":return v.stop()}}),t,null,[[9,34]])})));return function(e){return t.apply(this,arguments)}}()}}));var b=false;window.addEventListener("DOMContentLoaded",(function(){var t=document.querySelector(".tutor-course-details-page");if(t){var e=function t(){var e=window.scrollY;var n=200;var o=e>=n;var c=window.innerWidth>=1200;if(c){if(o){if(!b){r.classList.add("tutor-sidebar-sticky");var u="max-height: 80vh; overflow-y: scroll; top: ".concat(a?i:"");r.setAttribute("style",u);r.scrollTop=0;b=true}}else{r.classList.remove("tutor-sidebar-sticky");r.removeAttribute("style");b=false}}};var r=document.querySelector(".tutor-single-course-sidebar");var n=r.hasAttribute("data-tutor-sticky-sidebar");if(!n)return;var o=document.getElementsByTagName("header")[0];var i="".concat(o.offsetHeight,"px");var a=o.classList.value.includes("sticky");window.addEventListener("scroll",e)}var c=document.getElementById("tutor-download-invoice");if(c){c.addEventListener("click",(function(t){var e;var r=c.dataset.orderId;c.classList.add("is-loading");var n=document.getElementById("tutor-invoice-content");var o=document.createElement("style");document.head.appendChild(o);(e=o.sheet)===null||e===void 0?void 0:e.insertRule("body > div:last-child img { all: unset; }");html2canvas(n,{scale:2}).then((function(t){o.remove();var e=t.toDataURL("image/jpeg");var n=595;var i=842;var a=new jspdf.jsPDF({orientation:"p",unit:"px",format:[n,i]});var u=a.internal.pageSize.getWidth();var s=i*u/n;a.addImage(e,"JPEG",0,0,u,s);a.save("invoice-".concat(r,".pdf"));c.classList.remove("is-loading")}))}))}}))})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.