PageSourceSearch

https://www.saffronwaldenreporter.co.uk/resources/responsive-static/build/mds/js/piano-id-login.js?cb=vjoPdzgg

js saffronwaldenreporter.co.uk collected 2026-10-02 07:10:09 UTC 86,929 bytes, 1 lines download raw bytes

1(()=>{var t={97202(t,e,r){"use strict";r.d(e,{A:()=>s});r(74423),r(42762),r(98992),r(3949),r(81454);var o=r(80074),n=r(87611),i=r(87276);const s={dropSelector:'[data-uses-js="form-file-upload"]',plusSelector:"plus-icon",text:{default:"Upload",pending:"Release to upload",delete:"Delete",selector:"text"},activeSelector:"active",droppedSelector:"dropped",files:[],defaultValidExtensions:["image/jpeg","image/png","image/gif"],defaultErrorMessage:"Please upload correct file type",init(){document.querySelector(this.dropSelector)&&(n.default.log("file-uploadd.js initiated valid extensions",this.validExtensions),this.bind())},bind(){const t=document.querySelectorAll("".concat(this.dropSelector));document.addEventListener("click",t=>{if((0,o.A)({event:t,selector:"".concat(this.dropSelector,".").concat(this.droppedSelector," label")})){t.preventDefault();const e=t.target.closest(this.dropSelector);this.removeImage({element:e})}}),Array.from(t).forEach(t=>{const e=t.querySelector('input[type="file"');e.addEventListener("change",r=>{const o=t.querySelector("label");this.files=r.target.files,this.handleFileUpload({extensions:this.defaultValidExtensions,files:this.files,element:o,inputElement:r.target}).then(()=>{this.toggleSelector(t,!0,this.droppedSelector),this.toggleSelector(t,!1,this.activeSelector);t.querySelector(".".concat(this.text.selector)).textContent=this.text.delete}).catch(r=>{n.default.log("Error trying to upload file",r);const o=e.dataset.errorMessage||this.defaultErrorMessage;r&&r.message===this.defaultErrorMessage&&i.A.addError(t,o)})}),t.addEventListener("dragover",e=>{e.preventDefault();t.querySelector(".".concat(this.text.selector)).textContent=this.text.pending,n.default.log("File is over drop area",e),this.toggleSelector(t,!0,this.activeSelector)}),t.addEventListener("dragleave",e=>{t.querySelector(".".concat(this.text.selector)).textContent=this.text.default,n.default.log("File is outside drop area",e),this.toggleSelector(t,!1,this.activeSelector)}),t.addEventListener("drop",e=>{e.preventDefault();const r=t.querySelector("label"),o=t.querySelector('input[type="file"]'),s=(o.getAttribute("accept").split(",")||this.defaultValidExtensions).map(t=>t.trim());this.files=e.dataTransfer.files,i.A.removeError(t),this.handleFileUpload({extensions:s,files:this.files,element:r,inputElement:o,dropEvent:!0}).then(()=>{this.toggleSelector(t,!0,this.droppedSelector),this.toggleSelector(t,!1,this.activeSelector);t.querySelector(".".concat(this.text.selector)).textContent=this.text.delete}).catch(e=>{n.default.log("Error trying to upload file",e);const r=o.dataset.errorMessage||this.defaultErrorMessage;e&&e.message===this.defaultErrorMessage&&i.A.addError(t,r)})})})},handleFileUpload(t){let e=t.extensions,r=t.files,o=t.element,n=t.inputElement,s=t.dropEvent;return new Promise((t,a)=>{const c=r[0];if(e.includes(c.type)){i.A.removeError(o);const e=new FileReader;e.onload=()=>{const i=e.result,a=o.querySelector("img");a&&a.remove();const u=document.createElement("img");u.setAttribute("src",i),o.appendChild(u),n&&(s&&(n.files=r),n.setAttribute("data-file-url",i),n.setAttribute("data-file-name",c.name)),t({files:r,fileURL:i,inputElement:n})},e.onerror=t=>{a(t)},e.readAsDataURL(c)}else{const t=new Error(this.defaultErrorMessage);a(t)}})},removeImage(t){let e=t.element;if(!e)return;const r=e.querySelector("img"),o=e.querySelector('input[type="file"]'),n=e.querySelector(".".concat(this.text.selector));r&&r.remove(),o&&(o.setAttribute("data-file-url",""),o.setAttribute("data-file-name","")),n.textContent=this.text.default,this.toggleSelector(e,!1,this.activeSelector),this.toggleSelector(e,!1,this.droppedSelector)},toggleSelector(t,e,r){t&&(e?t.classList.contains(r)||t.classList.add(r):t.classList.contains(r)&&t.classList.remove(r))}}},87276(t,e,r){"use strict";r.d(e,{A:()=>u});var o=r(89394),n=(r(84864),r(27495),r(42762),r(98992),r(54520),r(3949),r(87611)),i=r(80074),s=r(63826),a=r(77946),c=r(92443);const u={formSelectors:{container:"mar-form-elements",topErrors:"mar-form-elements__form-group--error-top",topSuccess:"mar-alert--success",group:"mar-form-elements__form-group",control:"mar-form-elements__form-control",errorGroup:"mar-form-elements__form-group--error",errorControl:"mar-form-elements__form-error"},defaultMessage:{required:"This field is required",pattern:"Invalid input"},formErrors:[],formData:{},init(t){if(!t)return!1;const e=t.querySelectorAll(".".concat(this.formSelectors.group));return this.formData={},e.forEach(t=>{const e=t.querySelector(".".concat(this.formSelectors.control));if((0,a.F)(t)){if(this.removeError(t),e.hasAttribute("required")){let r=null;e.hasAttribute("data-error-message")&&(r=e.getAttribute("data-error-message"));const o=t.querySelector(".".concat(this.formSelectors.errorControl));"checkbox"===e.type&&"radio"===e.type||this.checkForError({condition:e.value,group:t,spanError:o,message:r}),"checkbox"!==e.type&&"radio"!==e.type||this.checkForError({condition:e.checked,group:t,spanError:o,message:r})}if(e.hasAttribute("data-pattern")){const r=e.dataset,o=r.pattern,n=r.patternMessage,i=t.querySelector(".".concat(this.formSelectors.errorControl));this.checkForError({condition:this.patternMatch(e.value,o),group:t,spanError:i,message:n})}this.getFormValues(t)}}),n.default.log("validateForm",this.formErrors,this.formData),{data:this.formData,errors:this.formErrors}},async(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;if(!t)throw new Error("No form passed to asyn form validation");(0,s.A)(e=>{this.handleAsyncValidation({form:t,event:e})},e)},handleAsyncValidation(t){let e=t.form,r=t.event;const o=(0,i.A)({event:r,selector:"input"}),n=(0,i.A)({event:r,selector:"select"}),s=(0,i.A)({event:r,selector:"textarea"});(o||n||s)&&this.init(e)},getFormValues(t){const e=t.querySelector('input:not([type="file"])'),r=t.querySelector("textarea"),o=t.querySelector("select"),n=e||r||o;
1if(n){const t=n.getAttribute("name");t&&("checkbox"===n.type||"radio"===n.type?this.formData[t]=Boolean(n.checked):this.formData[t]=n.value)}},checkForError(t){let e=t.condition,r=t.group,o=t.spanError,n=t.message,i=this.defaultMessage.required;null!=n&&(i=n);const s=o&&o.textContent===i;e?o&&this.removeError(i):o||s||this.addError(r,i)},addError(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.defaultMessage.required;if(!t)return;const r=t.querySelector(".".concat(this.formSelectors.control)),n=r&&r.name,i=document.createElement("span");i.classList.add(this.formSelectors.errorControl),i.textContent=e,t.classList.contains(this.formSelectors.errorGroup)||t.classList.add(this.formSelectors.errorGroup),t.appendChild(i),this.formErrors=[].concat((0,o.A)(this.formErrors),[{name:n,message:e}])},removeError(t){if(!t)return;const e=t.querySelector(".".concat(this.formSelectors.control)),r=e&&e.name,o=t.querySelector(".".concat(this.formSelectors.errorControl));t.classList.contains(this.formSelectors.errorGroup)&&t.classList.remove(this.formSelectors.errorGroup),o&&(o.remove(),this.formErrors=this.formErrors.filter(t=>t.name!==r))},addErrorTop(t){let e,r=t.message,o=void 0===r?"Something went wrong please try again":r,i=t.form;if(e=i?i&&i.querySelector(".".concat(this.formSelectors.topErrors)):document.querySelector(".".concat(this.formSelectors.topErrors)),e){e.hasAttribute("hidden")&&(c(e).addClass("mar-alert--active"),e.removeAttribute("hidden"));const t=document.createElement("span");t.classList.add(this.formSelectors.errorControl),t.innerHTML=o,e.appendChild(t)}else n.default.log("You need to add a top error container")},removeErrorTop(t){let e;if(e=t?t.querySelector(".".concat(this.formSelectors.topErrors)):document.querySelector(".".concat(this.formSelectors.topErrors)),e){c(e).removeClass("mar-alert--active"),e.setAttribute("hidden",!0);const t=(0,o.A)(e.querySelectorAll("span"));t.length&&t.forEach(t=>{t.parentNode.removeChild(t)})}},addSuccessTop(t){let e,r=t.message,o=void 0===r?"Success, form posted":r,i=t.form;i&&(this.removeErrorTop(i),e=i.querySelector(".".concat(this.topSuccess))),e?(e.textContent=o,e.hasAttribute("hidden")&&(c(e).addClass("mar-alert--active"),e.removeAttribute("hidden"))):n.default.log("You need to add a top success container")},patternMatch:(t,e)=>new RegExp(e).test(t.trim()),validateEmail:t=>/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/.test(t)}},57794(t,e,r){"use strict";r.r(e),r.d(e,{fileUpload:()=>n.A,formValidation:()=>o.A});var o=r(87276),n=r(97202)},63826(t,e,r){"use strict";r.d(e,{A:()=>o});const o=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=null;return function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];const a=r&&!o,c=()=>t.apply(void 0,i);clearTimeout(o),o=setTimeout(c,e),a&&c()}}},78146(t,e,r){"use strict";r(98992),r(3949)},21701(t,e,r){"use strict";r.d(e,{A:()=>o});const o=t=>!!t&&("none"!==window.getComputedStyle(t).display&&"hidden"!==window.getComputedStyle(t).visibility&&!t.hasAttribute("hidden"))},77946(t,e,r){"use strict";r.d(e,{F:()=>o.A});var o=r(21701);r(78146)},92443(t){t.exports=window.jQuery},87611(t,e,r){"use strict";r.r(e),r.d(e,{default:()=>o});const o={css:{logLabel:"color: #FFF; background: #188ae2; padding: 2px 0px 2px 4px; border-radius: 3px 0px 0px 3px; font-weight: bold",log:"color: #FFF; background: #188ae2; padding: 2px 4px 2px 0px; border-radius: 0px 3px 3px 0px;",successLabel:"color: #FFF; background: #31ce77; padding: 2px 0px 2px 4px; border-radius: 3px 0px 0px 3px; font-weight: bold",success:"color: #FFF; background: #31ce77; padding: 2px 4px 2px 0px; border-radius: 0px 3px 3px 0px;",warningLabel:"color: #FFF; background: #F57C00; padding: 2px 0px 2px 4px; border-radius: 3px 0px 0px 3px; font-weight: bold",warning:"color: #FFF; background: #F57C00; padding: 2px 4px 2px 0px; border-radius: 0px 3px 3px 0px;",errorLabel:"color: #FFF; background: #f34943; padding: 2px 0px 2px 4px; border-radius: 3px 0px 0px 3px; font-weight: bold",error:"color: #FFF; background: #f34943; padding: 2px 4px 2px 0px; border-radius: 0px 3px 3px 0px;"},print(t,e){if(1===parseInt(this.getCookie("debug"),10)){for(var r=arguments.length,o=new Array(r>2?r-2:0),n=2;n<r;n++)o[n-2]=arguments[n];var i,s;
1if(1===o.length&&"string"==typeof o[0])(i=console).log.apply(i,["%c".concat(t," %c%s"),this.css["".concat(e,"Label")],this.css[e]].concat(o));else(s=console).log.apply(s,["%c".concat(t),this.css[e]].concat(o))}},log(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this.print.apply(this,["Martini Log:","log"].concat(e))},success(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this.print.apply(this,["Martini Success:","success"].concat(e))},warn(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this.print.apply(this,["Martini Warning:","warning"].concat(e))},error(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this.print.apply(this,["Martini Error:","error"].concat(e))},getCookie(t){const e="".concat(t,"="),r=document.cookie.split(";");for(let o=0;o<r.length;o+=1){let t=r[o];for(;" "===t.charAt(0);)t=t.substring(1);if(0===t.indexOf(e))return t.substring(e.length,t.length)}return""}}},80074(t,e,r){"use strict";r.d(e,{A:()=>o});const o=t=>{let e=t.event,r=t.selector;return!!(e&&e.target&&e.target.matches&&e.target.closest)&&(e.target.matches(r)||e.target.closest(r))}},11940(t,e,r){"use strict";e.U=void 0;var o=r(2788);Object.defineProperty(e,"U",{enumerable:!0,get:function(){return o.default}})},2788(t,e,r){"use strict";var o=this&&this.__awaiter||function(t,e,r,o){return new(r||(r=Promise))(function(n,i){function s(t){try{c(o.next(t))}catch(e){i(e)}}function a(t){try{c(o.throw(t))}catch(e){i(e)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((o=o.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,o,n,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(c){a=[6,c],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(11578),s=r(87611),a=r(22866),c=function(){function t(){var t,e;this.eventSent=!1,this.linkAccountForm=document.getElementById("link-account-form")||document.querySelector(".link-account-form"),this.formContainer=document.getElementById("form-container"),this.redirectUrl=(null!==(e=null===(t=this.linkAccountForm)||void 0===t?void 0:t.dataset.redirectUrl)&&void 0!==e?e:"").toString(),this.bind()}return t.prototype.bind=function(){var t=this,e=document.getElementById("link-account-btn"),r=document.querySelector("#toggle-password");this.linkAccountForm&&e&&e.addEventListener("click",function(e){e.preventDefault(),t.linkAccount(t.redirectUrl)}),r&&r.addEventListener("click",function(t){var e=document.getElementById("password"),r=t.currentTarget,o=r.querySelector(".eye-open"),n=r.querySelector(".eye-closed");"password"===e.type?(e.type="text",o&&(o.style.display="none"),n&&(n.style.display="block")):(e.type="password",o&&(o.style.display="block"),n&&(n.style.display="none"))})},t.prototype.clearFieldErrors=function(){var t=document.getElementById("form-input__error");t&&(t.innerHTML="",t.style.display="none")},t.prototype.displayFieldError=function(t,e){var r=document.getElementById("form-input__error");r&&(t.length?r.style.display="none":(r.innerHTML=null!=e?e:"",r.style.display="block"))},t.prototype.handleErrorResponse=function(t){var e=document.getElementById("form-input__error");e&&(e.innerHTML=t,e.style.display="block")},t.prototype.mountProgressAndRedirect=function(t){var e="".concat(window.location.origin,"/").concat(t.replace(/^\/+/,""));this.formContainer&&(this.formContainer.style.display="none"),this.eventSent||(i.SocialAuth.sendToAdobe("event8"),i.SocialAuth.raiseLaunchEvent("user-has-logged-in"),this.eventSent=!0);var r=this.formContainer&&this.formContainer.id&&"#".concat(this.formContainer.id)||"body";new a.LinkProgress(r,{redirectUrl:e,isLoggedIn:!0,autoRedirect:!0,delayMs:500}).init(),s.default.log("Redirecting to : ".concat(e),"log")},t.prototype.linkAccount=function(t){return o(this,void 0,void 0,function(){var e,r,o,i,a,c;return n(this,function(n){switch(n.label){case 0:if(this.clearFieldErrors(),!this.linkAccountForm)return[2];if(e=new FormData(this.linkAccountForm),r=Object.fromEntries(e.entries()),!this.validatePassword(null!==(c=r.password)&&void 0!==c?c:""))return[2];n.label=1;case 1:return n.trys.push([1,4,,5]),[4,fetch("/api/users/piano-id/social-login/link/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})];case 2:return[4,n.sent().json()];case 3:return o=n.sent(),i=o.error,o.success?t&&this.mountProgressAndRedirect(t):i?this.handleErrorResponse(i):this.handleErrorResponse("An unknown error occurred."),[3,5];case 4:return a=n.sent(),s.default.log("Network error: ".concat((null==a?void 0:a.message)||a),"error"),this.handleErrorResponse("A network error occurred. Please try again."),[3,5];case 5:return[2]}})})},t.prototype.validatePassword=function(t){var e=t.length>0;return e?this.displayFieldError(t):this.displayFieldError(t,"Please enter your password!"),e},t}();e.default=c},22866(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.LinkProgress=void 0;var o=r(87310);Object.defineProperty(e,"LinkProgress",{enumerable:!0,get:function(){return o.default}})},87310(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var r,o,n;this.form=t,this.opts={mount:null!==(r=e.mount)&&void 0!==r?r:null,autoRedirect:!1!==e.autoRedirect,delayMs:null!==(o=e.delayMs)&&void 0!==o?o:2e3,id:null!==(n=e.id)&&void 0!==n?n:"link_progress",redirectUrl:e.redirectUrl,isLoggedIn:e.isLoggedIn}}return t.prototype.init=function(){var t,e,r=this.resolveForm(this.form),o=null!==(e=null!==(t=this.resolveMount(this.opts.mount))&&void 0!==t?t:r.parentElement)&&void 0!==e?e:document.body;r.remove(),this.container=this.buildContainer(),o.appendChild(this.container),this.container.classList.remove("hidden"),this.wireButton(),this.maybeAutoRedirect()},t.prototype.buildContainer=function(){var t=document.createElement("div");return t.className="piano-form-container block block-bottom-margin mar-mt-5 hidden",t.id=this.opts.id,t.setAttribute("role","status"),t.dataset.redirectUrl=this.opts.redirectUrl,t.dataset.isLoggedin=String(this.opts.isLoggedIn),t.innerHTML='\n            <div class="piano-form-container__heading-container">\n                <h1 class="heading mar-mb-3">We’re signing you in</h1>\n                <p class="text-center">You should be redirected in a few moments</p>\n            </div>\n            <button type="submit" class="full-button mar-btn mar-btn--light" id="proceed-btn">\n                Continue to my account\n            </button>\n            ',t},t.prototype.wireButton=function(){var t=this,e=this.container.querySelector("#proceed-btn");e&&e.addEventListener("click",function(e){e.preventDefault(),t.go()})},t.prototype.maybeAutoRedirect=function(){var t=this;this.opts.autoRedirect&&window.setTimeout(function(){return t.go()},this.opts.delayMs)},t.prototype.go=function(){var t=this.container.dataset.redirectUrl||this.opts.redirectUrl;t&&(window.location.href=t)},t.prototype.resolveForm=function(t){if("string"!=typeof t){if(!(t instanceof HTMLFormElement))throw new Error("Provided form is not an HTMLFormElement.");return t}var e=document.querySelector(t);if(!e)throw new Error("Form not found for selector: ".concat(t));return e},t.prototype.resolveMount=function(t){if(!t)return null;if("string"!=typeof t)return t;var e=document.querySelector(t);if(!e)throw new Error("Mount point not found for selector: ".concat(t));return e},t}();e.default=r},66908(t,e,r){"use strict";e.j=void 0;var o=r(30982);Object.defineProperty(e,"j",{enumerable:!0,get:function(){return o.default}})},30982(t,e,r){"use strict";var o=this&&this.__awaiter||function(t,e,r,o){return new(r||(r=Promise))(function(n,i){function s(t){try{c(o.next(t))}catch(e){i(e)}}function a(t){try{c(o.throw(t))}catch(e){i(e)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((o=o.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,o,n,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(c){a=[6,c],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};
1Object.defineProperty(e,"__esModule",{value:!0});var i=r(57794),s=r(34944),a=r(22866),c=["accept_terms","title"],u=function(){function t(){var t,e;this.isSubmitting=!1,this.CONSENT_FIELD_ID="accept_terms",this.form=document.getElementById("social_complete_form")||document.querySelector(".social-complete-form"),this.formContainer=document.getElementById("form-container"),this.redirectUrl=(null!==(e=null===(t=this.form)||void 0===t?void 0:t.dataset.redirectUrl)&&void 0!==e?e:"").toString(),this.bind()}return t.prototype.bind=function(){var t=this,e=document.getElementById("sign-up");if(this.form&&e){e.addEventListener("click",function(e){e.preventDefault(),t.handleSubmit()});var r=document.getElementById("title"),o=null==r?void 0:r.nextElementSibling;r&&o&&r.addEventListener("change",function(t){var e=t.target;o.style.display=e.value?"none":"block"})}},t.prototype.elValue=function(t){var e,r=document.getElementById(t);return(null!==(e=null==r?void 0:r.value)&&void 0!==e?e:"").trim()},t.prototype.elChecked=function(t){var e=document.getElementById(t);return!!(null==e?void 0:e.checked)},t.prototype.showError=function(t){var e=document.querySelector(".social-auth-error");e?(e.textContent=t,e.style.display="block"):alert(t)},t.prototype.clearError=function(){var t=document.querySelector(".social-auth-error");t&&(t.style.display="none")},t.prototype.clearFieldErrors=function(){document.querySelectorAll(".form-input__error").forEach(function(t){return t.style.display="none"})},t.prototype.displayFieldError=function(t,e){var r,o=document.getElementById(String(t)),n=null===(r=null==o?void 0:o.parentElement)||void 0===r?void 0:r.getElementsByTagName("span")[0];o&&n&&(!c.includes(String(t))||e?"password"===t&&e.toString().length<8||"email"===t&&!i.formValidation.validateEmail(e)?n.style.display="block":n.style.display="none":n.style.display="block")},t.prototype.buildPayload=function(){var t=[{field_id:this.CONSENT_FIELD_ID,checked:this.elChecked("privacy_policy")}],e=[],r=this.elValue("title"),o=this.elValue("additional_input_state");r&&e.push({field_name:"title",value:r});var n=this.elChecked("information_update");e.push({field_name:"fp1_consent",value:String(n)});var i=this.elChecked("newsletter_email");return e.push({field_name:"reg_newsletter_signup",value:String(i)}),{additional_input_state:o,consents:t,custom_field_values:e}},t.prototype.handleSuccessRedirect=function(){var t,e,r=this.redirectUrl||(null!==(e=null===(t=this.form)||void 0===t?void 0:t.dataset.redirectUrl)&&void 0!==e?e:"");if(r){var o="".concat(window.location.origin,"/").concat(r.replace(/^\/+/,""));this.formContainer&&(this.formContainer.style.display="none");var n=this.formContainer&&this.formContainer.id&&"#".concat(this.formContainer.id)||"body";new a.LinkProgress(n,{redirectUrl:o,isLoggedIn:!0,autoRedirect:!0,delayMs:500}).init()}},t.prototype.handleSubmit=function(){return o(this,void 0,void 0,function(){var t,e,r,o,i,a,c;return n(this,function(n){switch(n.label){case 0:if(this.isSubmitting)return[2];if(this.clearError(),this.clearFieldErrors(),t=this.form?this.serializeFormData(this.form):{},!this.validateFormData(t))return[2];e=this.buildPayload(),r="/api/users/piano-id/social-login/code/additional/",n.label=1;case 1:return n.trys.push([1,3,4,5]),this.isSubmitting=!0,[4,(0,s.httpJson)(r,{method:"POST",body:e,timeoutMs:12e3})];case 2:return"success"in(o=n.sent())&&!0===o.success?this.handleSuccessRedirect():(a=(null==o?void 0:o.error)||"There was a problem completing your sign up.",this.showError(a)),[3,5];case 3:return i=n.sent(),a=(null===(c=null==i?void 0:i.data)||void 0===c?void 0:c.error)||(null==i?void 0:i.message)||"Network or server error.",this.showError(a),[3,5];case 4:return this.isSubmitting=!1,[7];case 5:return[2]}})})},t.prototype.serializeFormData=function(t){var e={};return t.querySelectorAll("input, select").forEach(function(t){var r=t,o=r.id||r.getAttribute("name")||"";o&&("checkbox"===r.type||"on"===r.value?e[o]=!!r.checked:e[o]=r.value||"")}),e},t.prototype.validateFormData=function(t){for(var e=!1,r=[],o=0,n=Object.entries(t);o<n.length;o++){var i=n[o],s=i[0],a=i[1];if(c.includes(s))r.push(a),e=r.every(function(t){return""!==t.toString().trim()&&"false"!==t.toString()}),this.displayFieldError(s,a)}return e},t}();e.default=u},11578(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.SocialAuth=void 0;var o=r(2966);Object.defineProperty(e,"SocialAuth",{enumerable:!0,get:function(){return o.default}})},2966(t,e,r){"use strict";var o=this&&this.__awaiter||function(t,e,r,o){return new(r||(r=Promise))(function(n,i){function s(t){try{c(o.next(t))}catch(e){i(e)}}function a(t){try{c(o.throw(t))}catch(e){i(e)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((o=o.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,o,n,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(c){a=[6,c],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(87611),s=function(){function t(){}return t.handleSocialAuth=function(t,e){return o(this,void 0,void 0,function(){var r,o,s,a,c;return n(this,function(n){switch(n.label){case 0:i.default.log("Attempting social login with ".concat(t),"log"),r={social_type:t,destination_redirect_url:e},n.label=1;case 1:return n.trys.push([1,4,,5]),[4,fetch("/api/users/piano-id/social-login/",{body:JSON.stringify(r),headers:{"Content-Type":"application/json"},method:"POST"})];case 2:return[4,n.sent().json()];case 3:return o=n.sent(),s=o.error,a=o.social_login_redirect_url,o.success?a?window.location.replace(a):this.showError(s||"An unknown error occurred."):this.showError("Failed to initiate social login. Please try again."),[3,5];case 4:return c=n.sent(),i.default.log("Network error during social login: ".concat(c.message),"error"),this.showError("A network error occurred. Please try again."),[3,5];case 5:return[2]}})})},t.raiseLaunchEvent=function(t){i.default.log("launch:piano:".concat(t," has been dispatched"));var e=new Event("launch:piano:".concat(t));window.dispatchEvent(e)},t.sendToAdobe=function(t,e,r){if(i.default.log("AA: sending ".concat(t)),!e){var o=window.s;o.eVar2=window.location.href,o.pageName="(www) ".concat(window.location.pathname),o.events=t,o.linkTrackEvents=t;try{o.tl(!0,"o",r)}catch(n){}o.ignoreNext=!0}},t.showError=function(t){var e=document.querySelector(".social-auth-error");e.style.display="block",e.innerHTML=t},t}();e.default=s},41751(t,e,r){"use strict";e.D=void 0;var o=r(23794);Object.defineProperty(e,"D",{enumerable:!0,get:function(){return o.default}})},23794(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.confirmPage=document.getElementById("continue_page"),this.bind()}return t.prototype.bind=function(){var t,e;if(this.confirmPage){var r=null!==(t=this.confirmPage.dataset.redirectUrl)&&void 0!==t?t:"",o=null!==(e=Boolean(this.confirmPage.dataset.isLoggedin))&&void 0!==e&&e;this.handleRedirect(r,o)}},t.prototype.handleRedirect=function(t,e){var r="".concat(window.location.origin,"/").concat(t.replace(/^\/+/,""));t&&e&&setTimeout(function(){window.location.replace(r)},500)},t}();e.default=r},83306(t,e){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},r.apply(this,arguments)},o=this&&this.__awaiter||function(t,e,r,o){return new(r||(r=Promise))(function(n,i){function s(t){try{c(o.next(t))}catch(e){i(e)}}function a(t){try{c(o.throw(t))}catch(e){i(e)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((o=o.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,o,n,i={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;
1function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(n=i.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(6===a[0]&&i.label<n[1]){i.label=n[1],n=a;break}if(n&&i.label<n[2]){i.label=n[2],i.ops.push(a);break}n[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(c){a=[6,c],o=0}finally{r=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},i=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]])}return r};Object.defineProperty(e,"__esModule",{value:!0}),e.httpJson=function(t){return o(this,arguments,void 0,function(t,e){var o,s,a,c,u,l,d,f;void 0===e&&(e={});var p=e.method,h=void 0===p?"GET":p,g=e.headers,v=void 0===g?{}:g,y=e.body,m=e.timeoutMs,w=void 0===m?1e4:m,b=i(e,["method","headers","body","timeoutMs"]);return n(this,function(e){switch(e.label){case 0:return o=function(t,e){var r=void 0===e?{}:e,o=r.requireRelative,n=void 0===o||o;if(/^\/\//.test(t))throw new Error("Unsafe URL: protocol-relative URLs are not allowed");var i=new URL(t,window.location.origin);if(i.username||i.password)throw new Error("Unsafe URL: credentials in URL are not allowed");if(n&&/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t))throw new Error("Unsafe URL: absolute URLs are not allowed");if(i.origin!==window.location.origin)throw new Error("Unsafe URL: cross-origin requests are not allowed");return i}(t,b),s=new AbortController,a=setTimeout(function(){return s.abort()},w),[4,fetch(o.toString(),{method:h,headers:r({"Content-Type":"application/json"},v),body:null==y?void 0:JSON.stringify(y),signal:s.signal,credentials:"same-origin",redirect:"manual"}).catch(function(t){throw clearTimeout(a),t})];case 1:return c=e.sent(),clearTimeout(a),[4,c.text()];case 2:if(u=e.sent(),l=u?JSON.parse(u):null,!c.ok)throw d=l&&(l.error||l.message)||c.statusText||"Request failed",(f=new Error(d)).status=c.status,f.data=l,f;return[2,l]}})})}},34944(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.httpJson=void 0;var o=r(83306);Object.defineProperty(e,"httpJson",{enumerable:!0,get:function(){return o.httpJson}})},79306(t,e,r){"use strict";var o=r(94901),n=r(16823),i=TypeError;t.exports=function(t){if(o(t))return t;throw new i(n(t)+" is not a function")}},73506(t,e,r){"use strict";var o=r(13925),n=String,i=TypeError;t.exports=function(t){if(o(t))return t;throw new i("Can't set "+n(t)+" as a prototype")}},6469(t,e,r){"use strict";var o=r(78227),n=r(2360),i=r(24913).f,s=o("unscopables"),a=Array.prototype;void 0===a[s]&&i(a,s,{configurable:!0,value:n(null)}),t.exports=function(t){a[s][t]=!0}},57829(t,e,r){"use strict";var o=r(68183).charAt;t.exports=function(t,e,r){return e+(r&&o(t,e).length||1)}},90679(t,e,r){"use strict";var o=r(1625),n=TypeError;t.exports=function(t,e){if(o(e,t))return t;throw new n("Incorrect invocation")}},28551(t,e,r){"use strict";var o=r(20034),n=String,i=TypeError;t.exports=function(t){if(o(t))return t;throw new i(n(t)+" is not an object")}},19617(t,e,r){"use strict";var o=r(25397),n=r(35610),i=r(26198),s=function(t){return function(e,r,s){var a=o(e),c=i(a);if(0===c)return!t&&-1;var u,l=n(s,c);if(t&&r!=r){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((t||l in a)&&a[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},67680(t,e,r){"use strict";var o=r(79504);t.exports=o([].slice)},96319(t,e,r){"use strict";var o=r(28551),n=r(9539);t.exports=function(t,e,r,i){try{return i?e(o(r)[0],r[1]):e(r)}catch(s){n(t,"throw",s)}}},22195(t,e,r){"use strict";var o=r(79504),n=o({}.toString),i=o("".slice);t.exports=function(t){return i(n(t),8,-1)}}
vendor: 10,270 bytes, line 1
1,36955(t,e,r){"use strict";var o=r(92140),n=r(94901),i=r(22195),s=r(78227)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());t.exports=o?i:function(t){var e,r,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(r){}}(e=a(t),s))?r:c?i(e):"Object"===(o=i(e))&&n(e.callee)?"Arguments":o}},77740(t,e,r){"use strict";var o=r(39297),n=r(35031),i=r(77347),s=r(24913);t.exports=function(t,e,r){for(var a=n(e),c=s.f,u=i.f,l=0;l<a.length;l++){var d=a[l];o(t,d)||r&&o(r,d)||c(t,d,u(e,d))}}},12211(t,e,r){"use strict";var o=r(79039);t.exports=!o(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},62529(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},66699(t,e,r){"use strict";var o=r(43724),n=r(24913),i=r(6980);t.exports=o?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},6980(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},97040(t,e,r){"use strict";var o=r(43724),n=r(24913),i=r(6980);t.exports=function(t,e,r){o?n.f(t,e,i(0,r)):t[e]=r}},62106(t,e,r){"use strict";var o=r(50283),n=r(24913);t.exports=function(t,e,r){return r.get&&o(r.get,e,{getter:!0}),r.set&&o(r.set,e,{setter:!0}),n.f(t,e,r)}},36840(t,e,r){"use strict";var o=r(94901),n=r(24913),i=r(50283),s=r(39433);t.exports=function(t,e,r,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:e;if(o(r)&&i(r,u,a),a.global)c?t[e]=r:s(e,r);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(l){}c?t[e]=r:n.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},56279(t,e,r){"use strict";var o=r(36840);t.exports=function(t,e,r){for(var n in e)o(t,n,e[n],r);return t}},39433(t,e,r){"use strict";var o=r(44576),n=Object.defineProperty;t.exports=function(t,e){try{n(o,t,{value:e,configurable:!0,writable:!0})}catch(r){o[t]=e}return e}},43724(t,e,r){"use strict";var o=r(79039);t.exports=!o(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055(t,e,r){"use strict";var o=r(44576),n=r(20034),i=o.document,s=n(i)&&n(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},67400(t){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},79296(t,e,r){"use strict";var o=r(4055)("span").classList,n=o&&o.constructor&&o.constructor.prototype;t.exports=n===Object.prototype?void 0:n},88727(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82839(t,e,r){"use strict";var o=r(44576).navigator,n=o&&o.userAgent;t.exports=n?String(n):""},39519(t,e,r){"use strict";var o,n,i=r(44576),s=r(82839),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(n=(o=l.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!n&&s&&(!(o=s.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=s.match(/Chrome\/(\d+)/))&&(n=+o[1]),t.exports=n},46518(t,e,r){"use strict";var o=r(44576),n=r(77347).f,i=r(66699),s=r(36840),a=r(39433),c=r(77740),u=r(92796);t.exports=function(t,e){var r,l,d,f,p,h=t.target,g=t.global,v=t.stat;if(r=g?o:v?o[h]||a(h,{}):o[h]&&o[h].prototype)for(l in e){if(f=e[l],d=t.dontCallGetSet?(p=n(r,l))&&p.value:r[l],!u(g?l:h+(v?".":"#")+l,t.forced)&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(t.sham||d&&d.sham)&&i(f,"sham",!0),s(r,l,f,t)}}},79039(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},89228(t,e,r){"use strict";r(27495);var o=r(69565),n=r(36840),i=r(57323),s=r(79039),a=r(78227),c=r(66699),u=a("species"),l=RegExp.prototype;t.exports=function(t,e,r,d){var f=a(t),p=!s(function(){var e={};return e[f]=function(){return 7},7!==""[t](e)}),h=p&&!s(function(){var e=!1,r=/a/;if("split"===t){var o={};o[u]=function(){return r},(r={constructor:o,flags:""})[f]=/./[f]}return r.exec=function(){return e=!0,null},r[f](""),!e});if(!p||!h||r){var g=/./[f],v=e(f,""[t],function(t,e,r,n,s){var a=e.exec;return a===i||a===l.exec?p&&!s?{done:!0,value:o(g,e,r,n)}:{done:!0,value:o(t,r,e,n)}:{done:!1}});n(String.prototype,t,v[0]),n(l,f,v[1])}d&&c(l[f],"sham",!0)}},18745(t,e,r){"use strict";var o=r(40616),n=Function.prototype,i=n.apply,s=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?s.bind(i):function(){return s.apply(i,arguments)})},76080(t,e,r){"use strict";var o=r(27476),n=r(79306),i=r(40616),s=o(o.bind);t.exports=function(t,e){return n(t),void 0===e?t:i?s(t,e):function(){return t.apply(e,arguments)}}},40616(t,e,r){"use strict";var o=r(79039);t.exports=!o(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},69565(t,e,r){"use strict";var o=r(40616),n=Function.prototype.call;t.exports=o?n.bind(n):function(){return n.apply(n,arguments)}},10350(t,e,r){"use strict";var o=r(43724),n=r(39297),i=Function.prototype,s=o&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!o||o&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},46706(t,e,r){"use strict";var o=r(79504),n=r(79306);t.exports=function(t,e,r){try{return o(n(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(i){}}},27476(t,e,r){"use strict";var o=r(22195),n=r(79504);t.exports=function(t){if("Function"===o(t))return n(t)}},79504(t,e,r){"use strict";var o=r(40616),n=Function.prototype,i=n.call,s=o&&n.bind.bind(i,i);t.exports=o?s:function(t){return function(){return i.apply(t,arguments)}}},97751(t,e,r){"use strict";var o=r(44576),n=r(94901);t.exports=function(t,e){return arguments.length<2?(r=o[t],n(r)?r:void 0):o[t]&&o[t][e];var r}},1767(t){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},50851(t,e,r){"use strict";var o=r(36955),n=r(55966),i=r(64117),s=r(26269),a=r(78227)("iterator");t.exports=function(t){if(!i(t))return n(t,a)||n(t,"@@iterator")||s[o(t)]}},70081(t,e,r){"use strict";var o=r(69565),n=r(79306),i=r(28551),s=r(16823),a=r(50851),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(n(r))return i(o(r,t));throw new c(s(t)+" is not iterable")}},55966(t,e,r){"use strict";var o=r(79306),n=r(64117);t.exports=function(t,e){var r=t[e];return n(r)?void 0:o(r)}},2478(t,e,r){"use strict";var o=r(79504),n=r(48981),i=Math.floor,s=o("".charAt),a=o("".replace),c=o("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,o,d,f){var p=r+t.length,h=o.length,g=l;return void 0!==d&&(d=n(d),g=u),a(f,g,function(n,a){var u;switch(s(a,0)){case"$":return"$";case"&":return t;case"`":return c(e,0,r);case"'":return c(e,p);case"<":u=d[c(a,1,-1)];break;default:var l=+a;if(0===l)return n;if(l>h){var f=i(l/10);return 0===f?n:f<=h?void 0===o[f-1]?s(a,1):o[f-1]+s(a,1):n}u=o[l-1]}return void 0===u?"":u})}},44576(t,e,r){"use strict";var o=function(t){return t&&t.Math===Math&&t};t.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof r.g&&r.g)||o("object"==typeof this&&this)||function(){return this}()||Function("return this")()},39297(t,e,r){"use strict";var o=r(79504),n=r(48981),i=o({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(n(t),e)}},30421(t){"use strict";t.exports={}},20397(t,e,r){"use strict";var o=r(97751);t.exports=o("document","documentElement")},35917(t,e,r){"use strict";var o=r(43724),n=r(79039),i=r(4055);t.exports=!o&&!n(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},47055(t,e,r){"use strict";var o=r(79504),n=r(79039),i=r(22195),s=Object,a=o("".split);t.exports=n(function(){return!s("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?a(t,""):s(t)}:s},23167(t,e,r){"use strict";var o=r(94901),n=r(20034),i=r(52967);t.exports=function(t,e,r){var s,a;return i&&o(s=e.constructor)&&s!==r&&n(a=s.prototype)&&a!==r.prototype&&i(t,a),t}},33706(t,e,r){"use strict";var o=r(79504),n=r(94901),i=r(77629),s=o(Function.toString);n(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},91181(t,e,r){"use strict";var o,n,i,s=r(58622),a=r(44576),c=r(20034),u=r(66699),l=r(39297),d=r(77629),f=r(66119),p=r(30421),h="Object already initialized",g=a.TypeError,v=a.WeakMap;if(s||d.state){var y=d.state||(d.state=new v);y.get=y.get,y.has=y.has,y.set=y.set,o=function(t,e){if(y.has(t))throw new g(h);return e.facade=t,y.set(t,e),e},n=function(t){return y.get(t)||{}},i=function(t){return y.has(t)}}else{var m=f("state");p[m]=!0,o=function(t,e){if(l(t,m))throw new g(h);return e.facade=t,u(t,m,e),e},n=function(t){return l(t,m)?t[m]:{}},i=function(t){return l(t,m)}}t.exports={set:o,get:n,has:i,enforce:function(t){return i(t)?n(t):o(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=n(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return r}}}},44209(t,e,r){"use strict";var o=r(78227),n=r(26269),i=o("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||s[i]===t)}},34376(t,e,r){"use strict";var o=r(22195);t.exports=Array.isArray||function(t){return"Array"===o(t)}},94901(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},92796(t,e,r){"use strict";var o=r(79039),n=r(94901),i=/#|\.prototype\./,s=function(t,e){var r=c[a(t)];return r===l||r!==u&&(n(e)?o(e):!!e)},a=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},64117(t){"use strict";t.exports=function(t){return null==t}},20034(t,e,r){"use strict";var o=r(94901);t.exports=function(t){return"object"==typeof t?null!==t:o(t)}},13925(t,e,r){"use strict";var o=r(20034);t.exports=function(t){return o(t)||null===t}},96395(t){"use strict";
1t.exports=!1},65810(t,e,r){"use strict";var o=r(20034),n=r(91181).get;t.exports=function(t){if(!o(t))return!1;var e=n(t);return!!e&&"RawJSON"===e.type}},60788(t,e,r){"use strict";var o=r(20034),n=r(22195),i=r(78227)("match");t.exports=function(t){var e;return o(t)&&(void 0!==(e=t[i])?!!e:"RegExp"===n(t))}},10757(t,e,r){"use strict";var o=r(97751),n=r(94901),i=r(1625),s=r(7040),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return n(e)&&i(e.prototype,a(t))}},72652(t,e,r){"use strict";var o=r(76080),n=r(69565),i=r(28551),s=r(16823),a=r(44209),c=r(26198),u=r(1625),l=r(70081),d=r(50851),f=r(9539),p=TypeError,h=function(t,e){this.stopped=t,this.result=e},g=h.prototype;t.exports=function(t,e,r){var v,y,m,w,b,x,S,E=r&&r.that,_=!(!r||!r.AS_ENTRIES),A=!(!r||!r.IS_RECORD),O=!(!r||!r.IS_ITERATOR),k=!(!r||!r.INTERRUPTED),P=o(e,E),T=function(t){var e=v;return v=void 0,e&&f(e,"normal"),new h(!0,t)},L=function(t){return _?(i(t),k?P(t[0],t[1],T):P(t[0],t[1])):k?P(t,T):P(t)};if(A)v=t.iterator;else if(O)v=t;else{if(!(y=d(t)))throw new p(s(t)+" is not iterable");if(a(y)){for(m=0,w=c(t);w>m;m++)if((b=L(t[m]))&&u(g,b))return b;return new h(!1)}v=l(t,y)}for(x=A?t.next:v.next;!(S=n(x,v)).done;){var I=S.value;try{b=L(I)}catch(F){if(!v)throw F;f(v,"throw",F)}if("object"==typeof b&&b&&u(g,b))return b}return new h(!1)}},91385(t,e,r){"use strict";var o=r(9539);t.exports=function(t,e,r){for(var n=t.length-1;n>=0;n--)if(void 0!==t[n])try{r=o(t[n].iterator,e,r)}catch(i){e="throw",r=i}if("throw"===e)throw r;return r}},9539(t,e,r){"use strict";var o=r(69565),n=r(28551),i=r(55966);t.exports=function(t,e,r){var s,a;n(t);try{if(!(s=i(t,"return"))){if("throw"===e)throw r;return r}s=o(s,t)}catch(c){a=!0,s=c}if("throw"===e)throw r;if(a)throw s;return n(s),r}},33994(t,e,r){"use strict";var o=r(57657).IteratorPrototype,n=r(2360),i=r(6980),s=r(10687),a=r(26269),c=function(){return this};t.exports=function(t,e,r,u){var l=e+" Iterator";return t.prototype=n(o,{next:i(+!u,r)}),s(t,l,!1,!0),a[l]=c,t}},19462(t,e,r){"use strict";var o=r(69565),n=r(2360),i=r(66699),s=r(56279),a=r(78227),c=r(91181),u=r(55966),l=r(57657).IteratorPrototype,d=r(62529),f=r(9539),p=r(91385),h=a("toStringTag"),g="IteratorHelper",v="WrapForValidIterator",y="normal",m="throw",w=c.set,b=function(t){var e=c.getterFor(t?v:g);return s(n(l),{next:function(){var r=e(this);if(t)return r.nextHandler();if(r.done)return d(void 0,!0);try{var o=r.nextHandler();return r.returnHandlerResult?o:d(o,r.done)}catch(n){throw r.done=!0,n}},return:function(){var r=e(this),n=r.iterator,i=r.done;if(r.done=!0,t){var s=u(n,"return");return s?o(s,n):d(void 0,!0)}if(i)return d(void 0,!0);if(r.inner)try{f(r.inner.iterator,y)}catch(a){return f(n,m,a)}if(r.openIters)try{p(r.openIters,y)}catch(a){if(n)return f(n,m,a);throw a}return n&&f(n,y),d(void 0,!0)}})},x=b(!0),S=b(!1);i(S,h,"Iterator Helper"),t.exports=function(t,e,r){var o=function(o,n){n?(n.iterator=o.iterator,n.next=o.next):n=o,n.type=e?v:g,n.returnHandlerResult=!!r,n.nextHandler=t,n.counter=0,n.done=!1,w(this,n)};return o.prototype=e?x:S,o}},51088(t,e,r){"use strict";var o=r(46518),n=r(69565),i=r(96395),s=r(10350),a=r(94901),c=r(33994),u=r(42787),l=r(52967),d=r(10687),f=r(66699),p=r(36840),h=r(78227),g=r(26269),v=r(57657),y=s.PROPER,m=s.CONFIGURABLE,w=v.IteratorPrototype,b=v.BUGGY_SAFARI_ITERATORS,x=h("iterator"),S="keys",E="values",_="entries",A=function(){return this};t.exports=function(t,e,r,s,h,v,O){c(r,e,s);var k,P,T,L=function(t){if(t===h&&C)return C;if(!b&&t&&t in j)return j[t];switch(t){case S:case E:case _:return function(){return new r(this,t)}}return function(){return new r(this)}},I=e+" Iterator",F=!1,j=t.prototype,R=j[x]||j["@@iterator"]||h&&j[h],C=!b&&R||L(h),V="Array"===e&&j.entries||R;if(V&&(k=u(V.call(new t)))!==Object.prototype&&k.next&&(i||u(k)===w||(l?l(k,w):a(k[x])||p(k,x,A)),d(k,I,!0,!0),i&&(g[I]=A)),y&&h===E&&R&&R.name!==E&&(!i&&m?f(j,"name",E):(F=!0,C=function(){return n(R,this)})),h)if(P={values:L(E),keys:v?C:L(S),entries:L(_)},O)for(T in P)(b||F||!(T in j))&&p(j,T,P[T]);else o({target:e,proto:!0,forced:b||F},P);return i&&!O||j[x]===C||p(j,x,C,{name:h}),g[e]=C,P}},30684(t){"use strict";
vendor: 4,292 bytes, line 1
1t.exports=function(t,e){var r="function"==typeof Iterator&&Iterator.prototype[t];if(r)try{r.call({next:null},e).next()}catch(o){return!0}}},84549(t,e,r){"use strict";var o=r(44576);t.exports=function(t,e){var r=o.Iterator,n=r&&r.prototype,i=n&&n[t],s=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(a){a instanceof e||(s=!1)}if(!s)return i}},57657(t,e,r){"use strict";var o,n,i,s=r(79039),a=r(94901),c=r(20034),u=r(2360),l=r(42787),d=r(36840),f=r(78227),p=r(96395),h=f("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(n=l(l(i)))!==Object.prototype&&(o=n):g=!0),!c(o)||s(function(){var t={};return o[h].call(t)!==t})?o={}:p&&(o=u(o)),a(o[h])||d(o,h,function(){return this}),t.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:g}},26269(t){"use strict";t.exports={}},26198(t,e,r){"use strict";var o=r(18014);t.exports=function(t){return o(t.length)}},50283(t,e,r){"use strict";var o=r(79504),n=r(79039),i=r(94901),s=r(39297),a=r(43724),c=r(10350).CONFIGURABLE,u=r(33706),l=r(91181),d=l.enforce,f=l.get,p=String,h=Object.defineProperty,g=o("".slice),v=o("".replace),y=o([].join),m=a&&!n(function(){return 8!==h(function(){},"length",{value:8}).length}),w=String(String).split("String"),b=t.exports=function(t,e,r){"Symbol("===g(p(e),0,7)&&(e="["+v(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!s(t,"name")||c&&t.name!==e)&&(a?h(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&s(r,"arity")&&t.length!==r.arity&&h(t,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(n){}var o=d(t);return s(o,"source")||(o.source=y(w,"string"==typeof e?e:"")),t};Function.prototype.toString=b(function(){return i(this)&&f(this).source||u(this)},"toString")},80741(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var o=+t;return(o>0?r:e)(o)}},27819(t,e,r){"use strict";var o=r(79039);t.exports=!o(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})},2360(t,e,r){"use strict";var o,n=r(28551),i=r(96801),s=r(88727),a=r(30421),c=r(20397),u=r(4055),l=r(66119),d="prototype",f="script",p=l("IE_PROTO"),h=function(){},g=function(t){return"<"+f+">"+t+"</"+f+">"},v=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{o=new ActiveXObject("htmlfile")}catch(i){}var t,e,r;y="undefined"!=typeof document?document.domain&&o?v(o):(e=u("iframe"),r="java"+f+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F):v(o);for(var n=s.length;n--;)delete y[d][s[n]];return y()};a[p]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(h[d]=n(t),r=new h,h[d]=null,r[p]=t):r=y(),void 0===e?r:i.f(r,e)}},96801(t,e,r){"use strict";var o=r(43724),n=r(48686),i=r(24913),s=r(28551),a=r(25397),c=r(71072);e.f=o&&!n?Object.defineProperties:function(t,e){s(t);for(var r,o=a(e),n=c(e),u=n.length,l=0;u>l;)i.f(t,r=n[l++],o[r]);return t}},24913(t,e,r){"use strict";var o=r(43724),n=r(35917),i=r(48686),s=r(28551),a=r(56969),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";e.f=o?i?function(t,e,r){if(s(t),e=a(e),s(r),"function"==typeof t&&"prototype"===e&&"value"in r&&p in r&&!r[p]){var o=l(t,e);o&&o[p]&&(t[e]=r.value,r={configurable:f in r?r[f]:o[f],enumerable:d in r?r[d]:o[d],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(s(t),e=a(e),s(r),n)try{return u(t,e,r)}catch(o){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},77347(t,e,r){"use strict";var o=r(43724),n=r(69565),i=r(48773),s=r(6980),a=r(25397),c=r(56969),u=r(39297),l=r(35917),d=Object.getOwnPropertyDescriptor;e.f=o?d:function(t,e){if(t=a(t),e=c(e),l)try{return d(t,e)}catch(r){}if(u(t,e))return s(!n(i.f,t,e),t[e])}},38480(t,e,r){"use strict";var o=r(61828),n=r(88727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,n)}},33717(t,e){"use strict";e.f=Object.getOwnPropertySymbols},42787(t,e,r){"use strict";var o=r(39297),n=r(94901),i=r(48981),s=r(66119),a=r(12211),c=s("IE_PROTO"),u=Object,l=u.prototype;
1t.exports=a?u.getPrototypeOf:function(t){var e=i(t);if(o(e,c))return e[c];var r=e.constructor;return n(r)&&e instanceof r?r.prototype:e instanceof u?l:null}},1625(t,e,r){"use strict";var o=r(79504);t.exports=o({}.isPrototypeOf)},61828(t,e,r){"use strict";var o=r(79504),n=r(39297),i=r(25397),s=r(19617).indexOf,a=r(30421),c=o([].push);t.exports=function(t,e){var r,o=i(t),u=0,l=[];for(r in o)!n(a,r)&&n(o,r)&&c(l,r);for(;e.length>u;)n(o,r=e[u++])&&(~s(l,r)||c(l,r));return l}},71072(t,e,r){"use strict";var o=r(61828),n=r(88727);t.exports=Object.keys||function(t){return o(t,n)}},48773(t,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,n=o&&!r.call({1:2},1);e.f=n?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},52967(t,e,r){"use strict";var o=r(46706),n=r(20034),i=r(67750),s=r(73506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=o(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(a){}return function(r,o){return i(r),s(o),n(r)?(e?t(r,o):r.__proto__=o,r):r}}():void 0)},84270(t,e,r){"use strict";var o=r(69565),n=r(94901),i=r(20034),s=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&n(r=t.toString)&&!i(a=o(r,t)))return a;if(n(r=t.valueOf)&&!i(a=o(r,t)))return a;if("string"!==e&&n(r=t.toString)&&!i(a=o(r,t)))return a;throw new s("Can't convert object to primitive value")}},35031(t,e,r){"use strict";var o=r(97751),n=r(79504),i=r(38480),s=r(33717),a=r(28551),c=n([].concat);t.exports=o("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=s.f;return r?c(e,r(t)):e}},616(t,e,r){"use strict";var o=r(79504),n=r(39297),i=SyntaxError,s=parseInt,a=String.fromCharCode,c=o("".charAt),u=o("".slice),l=o(/./.exec),d={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},f=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var r=!0,o="";e<t.length;){var h=c(t,e);if("\\"===h){var g=u(t,e,e+2);if(n(d,g))o+=d[g],e+=2;else{if("\\u"!==g)throw new i('Unknown escape sequence: "'+g+'"');var v=u(t,e+=2,e+4);if(!l(f,v))throw new i("Bad Unicode escape at: "+e);o+=a(s(v,16)),e+=4}}else{if('"'===h){r=!1,e++;break}if(l(p,h))throw new i("Bad control character in string literal at: "+e);o+=h,e++}}if(r)throw new i("Unterminated string at: "+e);return{value:o,end:e}}},11056(t,e,r){"use strict";var o=r(24913).f;t.exports=function(t,e,r){r in t||o(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},56682(t,e,r){"use strict";var o=r(69565),n=r(28551),i=r(94901),s=r(22195),a=r(57323),c=TypeError;t.exports=function(t,e){var r=t.exec;if(i(r)){var u=o(r,t,e);return null!==u&&n(u),u}if("RegExp"===s(t))return o(a,t,e);throw new c("RegExp#exec called on incompatible receiver")}},57323(t,e,r){"use strict";var o,n,i=r(69565),s=r(79504),a=r(655),c=r(67979),u=r(58429),l=r(25745),d=r(2360),f=r(91181).get,p=r(83635),h=r(18814),g=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,m=s("".charAt),w=s("".indexOf),b=s("".replace),x=s("".slice),S=(n=/b*/g,i(v,o=/a/,"a"),i(v,n,"a"),0!==o.lastIndex||0!==n.lastIndex),E=u.BROKEN_CARET,_=void 0!==/()??/.exec("")[1],A=function(t,e){for(var r=t.groups=d(null),o=0;o<e.length;o++){var n=e[o];r[n[0]]=t[n[1]]}};(S||_||E||p||h)&&(y=function(t){var e,r,o,n=this,s=f(n),u=a(t),l=s.raw;if(l)return l.lastIndex=n.lastIndex,e=i(y,l,u),n.lastIndex=l.lastIndex,e&&s.groups&&A(e,s.groups),e;var d=s.groups,p=E&&n.sticky,h=i(c,n),O=n.source,k=0,P=u;if(p){h=b(h,"y",""),-1===w(h,"g")&&(h+="g"),P=x(u,n.lastIndex);var T=n.lastIndex>0&&m(u,n.lastIndex-1);n.lastIndex>0&&(!n.multiline||n.multiline&&"\n"!==T&&"\r"!==T&&"\u2028"!==T&&"\u2029"!==T)&&(O="(?: (?:"+O+"))",P=" "+P,k++),r=new RegExp("^(?:"+O+")",h)}_&&(r=new RegExp("^"+O+"$(?!\\s)",h)),S&&(o=n.lastIndex);var L=i(v,p?r:n,P);return p?L?(L.input=u,L[0]=x(L[0],k),L.index=n.lastIndex,n.lastIndex+=L[0].length):n.lastIndex=0:S&&L&&(n.lastIndex=n.global?L.index+L[0].length:o),_&&L&&L.length>1&&i(g,L[0],r,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(L[t]=void 0)}),L&&d&&A(L,d),L}),t.exports=y},65213(t,e,r){"use strict";var o=r(44576),n=r(79039),i=o.RegExp,s=!n(function(){var t=!0;try{i(".","d")}catch(c){t=!1}var e={},r="",o=t?"dgimsy":"gimsy",n=function(t,o){Object.defineProperty(e,t,{get:function(){return r+=o,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in t&&(s.hasIndices="d"),s)n(a,s[a]);return Object.getOwnPropertyDescriptor(i.prototype,"flags").get.call(e)!==o||r!==o});t.exports={correct:s}},67979(t,e,r){"use strict";var o=r(28551);t.exports=function(){var t=o(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},61034(t,e,r){"use strict";var o=r(69565),n=r(39297),i=r(1625),s=r(65213),a=r(67979),c=RegExp.prototype;
1t.exports=s.correct?function(t){return t.flags}:function(t){return s.correct||!i(c,t)||n(t,"flags")?t.flags:o(a,t)}},58429(t,e,r){"use strict";var o=r(79039),n=r(44576).RegExp,i=o(function(){var t=n("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),s=i||o(function(){return!n("a","y").sticky}),a=i||o(function(){var t=n("^r","gy");return t.lastIndex=2,null!==t.exec("str")});t.exports={BROKEN_CARET:a,MISSED_STICKY:s,UNSUPPORTED_Y:i}},83635(t,e,r){"use strict";var o=r(79039),n=r(44576).RegExp;t.exports=o(function(){var t=n(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})},18814(t,e,r){"use strict";var o=r(79039),n=r(44576).RegExp;t.exports=o(function(){var t=n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})},67750(t,e,r){"use strict";var o=r(64117),n=TypeError;t.exports=function(t){if(o(t))throw new n("Can't call method on "+t);return t}},87633(t,e,r){"use strict";var o=r(97751),n=r(62106),i=r(78227),s=r(43724),a=i("species");t.exports=function(t){var e=o(t);s&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},10687(t,e,r){"use strict";var o=r(24913).f,n=r(39297),i=r(78227)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!n(t,i)&&o(t,i,{configurable:!0,value:e})}},66119(t,e,r){"use strict";var o=r(25745),n=r(33392),i=o("keys");t.exports=function(t){return i[t]||(i[t]=n(t))}},77629(t,e,r){"use strict";var o=r(96395),n=r(44576),i=r(39433),s="__core-js_shared__",a=t.exports=n[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:o?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},25745(t,e,r){"use strict";var o=r(77629);t.exports=function(t,e){return o[t]||(o[t]=e||{})}},68183(t,e,r){"use strict";var o=r(79504),n=r(91291),i=r(655),s=r(67750),a=o("".charAt),c=o("".charCodeAt),u=o("".slice),l=function(t){return function(e,r){var o,l,d=i(s(e)),f=n(r),p=d.length;return f<0||f>=p?t?"":void 0:(o=c(d,f))<55296||o>56319||f+1===p||(l=c(d,f+1))<56320||l>57343?t?a(d,f):o:t?u(d,f,f+2):l-56320+(o-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},60706(t,e,r){"use strict";var o=r(10350).PROPER,n=r(79039),i=r(47452);t.exports=function(t){return n(function(){return!!i[t]()||"​…᠎"!=="​…᠎"[t]()||o&&i[t].name!==t})}},43802(t,e,r){"use strict";var o=r(79504),n=r(67750),i=r(655),s=r(47452),a=o("".replace),c=RegExp("^["+s+"]+"),u=RegExp("(^|[^"+s+"])["+s+"]+$"),l=function(t){return function(e){var r=i(n(e));return 1&t&&(r=a(r,c,"")),2&t&&(r=a(r,u,"$1")),r}};t.exports={start:l(1),end:l(2),trim:l(3)}},4495(t,e,r){"use strict";var o=r(39519),n=r(79039),i=r(44576).String;t.exports=!!Object.getOwnPropertySymbols&&!n(function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&o&&o<41})},35610(t,e,r){"use strict";var o=r(91291),n=Math.max,i=Math.min;t.exports=function(t,e){var r=o(t);return r<0?n(r+e,0):i(r,e)}},25397(t,e,r){"use strict";var o=r(47055),n=r(67750);t.exports=function(t){return o(n(t))}},91291(t,e,r){"use strict";var o=r(80741);t.exports=function(t){var e=+t;return e!=e||0===e?0:o(e)}},18014(t,e,r){"use strict";var o=r(91291),n=Math.min;t.exports=function(t){var e=o(t);return e>0?n(e,9007199254740991):0}},48981(t,e,r){"use strict";var o=r(67750),n=Object;t.exports=function(t){return n(o(t))}},72777(t,e,r){"use strict";var o=r(69565),n=r(20034),i=r(10757),s=r(55966),a=r(84270),c=r(78227),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!n(t)||i(t))return t;var r,c=s(t,l);if(c){if(void 0===e&&(e="default"),r=o(c,t,e),!n(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},56969(t,e,r){"use strict";var o=r(72777),n=r(10757);t.exports=function(t){var e=o(t,"string");return n(e)?e:e+""}},92140(t,e,r){"use strict";var o={};o[r(78227)("toStringTag")]="z",t.exports="[object z]"===String(o)},655(t,e,r){"use strict";var o=r(36955),n=String;t.exports=function(t){if("Symbol"===o(t))throw new TypeError("Cannot convert a Symbol value to a string");return n(t)}},16823(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(r){return"Object"}}},33392(t,e,r){"use strict";var o=r(79504),n=0,i=Math.random(),s=o(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++n+i,36)}},7040(t,e,r){"use strict";var o=r(4495);t.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},48686(t,e,r){"use strict";var o=r(43724),n=r(79039);t.exports=o&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},58622(t,e,r){"use strict";var o=r(44576),n=r(94901),i=o.WeakMap;t.exports=n(i)&&/native code/.test(String(i))},78227(t,e,r){"use strict";var o=r(44576),n=r(25745),i=r(39297),s=r(33392),a=r(4495),c=r(704
10),u=o.Symbol,l=n("wks"),d=c?u.for||u:u&&u.withoutSetter||s;t.exports=function(t){return i(l,t)||(l[t]=a&&i(u,t)?u[t]:d("Symbol."+t)),l[t]}},47452(t){"use strict";t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},74423(t,e,r){"use strict";var o=r(46518),n=r(19617).includes,i=r(79039),s=r(6469),a=i(function(){return!Array(1).includes()}),c=i(function(){return[,1].includes(void 0,1)});o({target:"Array",proto:!0,forced:a||c},{includes:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},23792(t,e,r){"use strict";var o=r(25397),n=r(6469),i=r(26269),s=r(91181),a=r(24913).f,c=r(51088),u=r(62529),l=r(96395),d=r(43724),f="Array Iterator",p=s.set,h=s.getterFor(f);t.exports=c(Array,"Array",function(t,e){p(this,{type:f,target:o(t),index:0,kind:e})},function(){var t=h(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)},"values");var g=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!l&&d&&"values"!==g.name)try{a(g,"name",{value:"values"})}catch(v){}},18111(t,e,r){"use strict";var o=r(46518),n=r(44576),i=r(90679),s=r(28551),a=r(94901),c=r(42787),u=r(62106),l=r(97040),d=r(79039),f=r(39297),p=r(78227),h=r(57657).IteratorPrototype,g=r(43724),v=r(96395),y="constructor",m="Iterator",w=p("toStringTag"),b=TypeError,x=n[m],S=v||!a(x)||x.prototype!==h||!d(function(){x({})}),E=function(){if(i(this,h),c(this)===h)throw new b("Abstract class Iterator not directly constructable")},_=function(t,e){g?u(h,t,{configurable:!0,get:function(){return e},set:function(e){if(s(this),this===h)throw new b("You can't redefine this property");f(this,t)?this[t]=e:l(this,t,e)}}):h[t]=e};f(h,w)||_(w,m),!S&&f(h,y)&&h[y]!==Object||_(y,E),E.prototype=h,o({global:!0,constructor:!0,forced:S},{Iterator:E})},22489(t,e,r){"use strict";var o=r(46518),n=r(69565),i=r(79306),s=r(28551),a=r(1767),c=r(19462),u=r(96319),l=r(96395),d=r(9539),f=r(30684),p=r(84549),h=!l&&!f("filter",function(){}),g=!l&&!h&&p("filter",TypeError),v=l||h||g,y=c(function(){for(var t,e,r=this.iterator,o=this.predicate,i=this.next;;){if(t=s(n(i,r)),this.done=!!t.done)return;if(e=t.value,u(r,o,[e,this.counter++],!0))return e}});o({target:"Iterator",proto:!0,real:!0,forced:v},{filter:function(t){s(this);try{i(t)}catch(e){d(this,"throw",e)}return g?n(g,this,t):new y(a(this),{predicate:t})}})},7588(t,e,r){"use strict";var o=r(46518),n=r(69565),i=r(72652),s=r(79306),a=r(28551),c=r(1767),u=r(9539),l=r(84549)("forEach",TypeError);o({target:"Iterator",proto:!0,real:!0,forced:l},{forEach:function(t){a(this);try{s(t)}catch(o){u(this,"throw",o)}if(l)return n(l,this,t);var e=c(this),r=0;i(e,function(e){t(e,r++)},{IS_RECORD:!0})}})},61701(t,e,r){"use strict";var o=r(46518),n=r(69565),i=r(79306),s=r(28551),a=r(1767),c=r(19462),u=r(96319),l=r(9539),d=r(30684),f=r(84549),p=r(96395),h=!p&&!d("map",function(){}),g=!p&&!h&&f("map",TypeError),v=p||h||g,y=c(function(){var t=this.iterator,e=s(n(this.next,t));if(!(this.done=!!e.done))return u(t,this.mapper,[e.value,this.counter++],!0)});o({target:"Iterator",proto:!0,real:!0,forced:v},{map:function(t){s(this);try{i(t)}catch(e){l(this,"throw",e)}return g?n(g,this,t):new y(a(this),{mapper:t})}})},33110(t,e,r){"use strict";var o=r(46518),n=r(97751),i=r(18745),s=r(69565),a=r(79504),c=r(79039),u=r(34376),l=r(94901),d=r(65810),f=r(10757),p=r(22195),h=r(655),g=r(67680),v=r(616),y=r(33392),m=r(4495),w=r(27819),b=String,x=n("JSON","stringify"),S=a(/./.exec),E=a("".charAt),_=a("".charCodeAt),A=a("".replace),O=a("".slice),k=a([].push),P=a(1.1.toString),T=/[\uD800-\uDFFF]/g,L=/^[\uD800-\uDBFF]$/,I=/^[\uDC00-\uDFFF]$/,F=y(),j=F.length,R=!m||c(function(){var t=n("Symbol")("stringify detection");return"[null]"!==x([t])||"{}"!==x({a:t})||"{}"!==x(Object(t))}),C=c(function(){return'"\\udf06\\ud834"'!==x("\udf06\ud834")||'"\\udead"'!==x("\udead")}),V=R?function(t,e){var r=g(arguments),o=M(e);if(l(o)||void 0!==t&&!f(t))return r[1]=function(t,e){if(l(o)&&(e=s(o,this,b(t),e)),!f(e))return e},i(x,null,r)}:x,q=function(t,e,r){var o=E(r,e-1),n=E(r,e+1);return S(L,t)&&!S(I,n)||S(I,t)&&!S(L,o)?"\\u"+P(_(t,0),16):t},M=function(t){if(l(t))return t;if(u(t)){for(var e=t.length,r=[],o=0;o<e;o++){var n=t[o];"string"==typeof n?k(r,n):"number"!=typeof n&&"Number"!==p(n)&&"String"!==p(n)||k(r,h(n))}var i=r.length,s=!0;return function(t,e){if(s)return s=!1,e;if(u(this))return e;for(var o=0;o<i;o++)if(r[o]===t)return e}}};x&&o({target:"JSON",stat:!0,arity:3,forced:R||C||!w},{stringify:function(t,e,r){var o=M(e),n=[],i=V(t,function(t,e){var r=l(o)?s(o,this,b(t),e):e;return!w&&d(r)?F+(k(n,r.rawJSON)-1):r},r);if("string"!=typeof i)return i;if(C&&(i=A(i,T,q)),w)return i;for(var a="",c=i.length,u=0;u<c;u++){var f=E(i,u);if('"'===f){var p=v(i,++u).end-1,h=O(i,u,p);a+=O(h,0,j)===F?n[O(h,j)]:'"'+h+'"',u=p}else a+=f}return a}})},53921(t,e,r){"use strict";var o=r(46518),n=r(72652),i=r(97040);o({target:"Object",stat:!0},{fromEntries:function(t){var e={};return n(t,function(t,r){i(e,t,r)},{AS_ENTRIES:!0}),e}})},84864(t,e,r){"use strict";var o=r(43724),n=r(44576),i=r(79504),s=r(92796),a=r(23167),c=r(66699),u=r(2360),l=r(38480).f,d=r(1625),f=r(60788),p=r(655),h=r(61034),g=r(58429),v=r(11056),y=r(36840),m=r(79039),w=r(39297),b=r(91181).enforce,x=r(87633),S=r(78227),E=r(83635),_=r(18814),A=S("match"),O=n.RegExp,k=O.prototype,P=n.SyntaxError,T=i(k.exec),L=i("".charAt),I=i("".replace),F=i("".indexOf),j=i("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,C=/a/g,V=/a/g,q=new O(C)!==C,M=g.MISSED_STICKY,B=g.UNSUPPORTED_Y,D=o&&(!q||M||E||_||m(function(){return V[A]=!1,O(C)!==C||O(V)===V||"/a/i"!==String(O(C,"i"))}));if(s("RegExp",D)){for(var U=function(t,e){var r,o,n,i,s,l,g=d(k,this),v=f(t),y=void 0===e,m=[],x=t;if(!g&&v&&y&&t.constructor===U)return t;if((v||d(k,t))&&(t=t.source,y&&(e=h(x))),t=void 0===t?"":p(t),e=void 0===e?"":p(e),x=t,E&&"dotAll"in C&&(o=!!e&&F(e,"s")>-1)&&(e=I(e,/s/g,"")),r=e,M&&"sticky"in C&&(n=!!e&&F(e,"y")>-1)&&B&&(e=I(e,/y/g,"")),_&&(i=function(t){for(var e,r=t.length,o=0,n="",i=[],s=u(null),a=!1,c=!1,l=0,d="";o<r;o++){if("\\"===(e=L(t,o))){if(e+=L(t,++o),!c&&"\\"===L(e,1)){n+="\\x5c";continue}}else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:n+=e,T(R,j(t,o+1))?(o+=2,c=!0,l++):"?"!==L(t,o+1)&&l++;continue;case">"===e&&c:if(""===d||w(s,d))throw new P("Invalid capture group name");s[d]=!0,i[i.length]=[d,l],c=!1,d="";continue}c?d+=e:n+=e}for(var f=0;f<i.length;f++)for(var p="\\k<"+i[f][0]+">",h="\\"+i[f][1];F(n,p)>-1;)n=I(n,p,h);return[n,i]}(t),t=i[0],m=i[1]),s=a(O(t,e),g?this:k,U),(o||n||m.length)&&(l=b(s),o&&(l.dotAll=!0,l.raw=U(function(t){for(var e,r=t.length,o=0,n="",i=!1;o<r;o++)"\\"!==(e=L(t,o))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),n+=e):n+="[\\s\\S]":n+=e+L(t,++o);return n}(t),r)),n&&(l.sticky=!0),m.length&&(l.groups=m)),t!==x)try{c(s,"source",""===x?"(?:)":x)}catch(S){}return s},N=l(O),$=0;N.length>$;)v(U,O,N[$++]);k.constructor=U,U.prototype=k,y(n,"RegExp",U,{constructor:!0})}x("RegExp")},27495(t,e,r){"use strict";var o=r(46518),n=r(57323);o({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},25440(t,e,r){"use strict";
1var o=r(18745),n=r(69565),i=r(79504),s=r(89228),a=r(79039),c=r(28551),u=r(94901),l=r(20034),d=r(91291),f=r(18014),p=r(655),h=r(67750),g=r(57829),v=r(55966),y=r(2478),m=r(61034),w=r(56682),b=r(78227)("replace"),x=Math.max,S=Math.min,E=i([].concat),_=i([].push),A=i("".indexOf),O=i("".slice),k=function(t){return void 0===t?t:String(t)},P="$0"==="a".replace(/./,"$0"),T=!!/./[b]&&""===/./[b]("a","$0");s("replace",function(t,e,r){var i=T?"$":"$0";return[function(t,r){var o=h(this),i=l(t)?v(t,b):void 0;return i?n(i,t,o,r):n(e,p(o),t,r)},function(t,n){var s=c(this),a=p(t),l=u(n);l||(n=p(n));var h=p(m(s));if("string"==typeof n&&!~A(n,i)&&!~A(n,"$<")&&!~A(h,"y")){var v=r(e,s,a,n);if(v.done)return v.value}var b,P=!!~A(h,"g");P&&(b=!!~A(h,"u")||!!~A(h,"v"),s.lastIndex=0);for(var T,L=[];null!==(T=w(s,a))&&(_(L,T),P);){""===p(T[0])&&(s.lastIndex=g(a,f(s.lastIndex),b))}for(var I="",F=0,j=0;j<L.length;j++){for(var R,C=p((T=L[j])[0]),V=x(S(d(T.index),a.length),0),q=[],M=1;M<T.length;M++)_(q,k(T[M]));var B=T.groups;if(l){var D=E([C],q,V,a);void 0!==B&&_(D,B),R=p(o(n,void 0,D))}else R=y(C,a,V,q,B,n);V>=F&&(I+=O(a,F,V)+R,F=V+C.length)}return I+O(a,F)}]},!!a(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!P||T)},42762(t,e,r){"use strict";var o=r(46518),n=r(43802).trim;o({target:"String",proto:!0,forced:r(60706)("trim")},{trim:function(){return n(this)}})},98992(t,e,r){"use strict";r(18111)},54520(t,e,r){"use strict";r(22489)},3949(t,e,r){"use strict";r(7588)},81454(t,e,r){"use strict";r(61701)},62953(t,e,r){"use strict";var o=r(44576),n=r(67400),i=r(79296),s=r(23792),a=r(66699),c=r(10687),u=r(78227)("iterator"),l=s.values,d=function(t,e){if(t){if(t[u]!==l)try{a(t,u,l)}catch(o){t[u]=l}if(c(t,e,!0),n[e])for(var r in s)if(t[r]!==s[r])try{a(t,r,s[r])}catch(o){t[r]=s[r]}}};for(var f in n)d(o[f]&&o[f].prototype,f);d(i,"DOMTokenList")},43145(t,e,r){"use strict";function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=Array(e);r<e;r++)o[r]=t[r];return o}r.d(e,{A:()=>o})},64243(t,e,r){"use strict";r.d(e,{A:()=>n});var o=r(43145);function n(t){if(Array.isArray(t))return(0,o.A)(t)}},73893(t,e,r){"use strict";function o(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}r.d(e,{A:()=>o})},60519(t,e,r){"use strict";function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(e,{A:()=>o})},89394(t,e,r){"use strict";r.d(e,{A:()=>a});var o=r(64243),n=r(73893),i=r(27800),s=r(60519);function a(t){return(0,o.A)(t)||(0,n.A)(t)||(0,i.A)(t)||(0,s.A)()}},27800(t,e,r){"use strict";r.d(e,{A:()=>n});var o=r(43145);function n(t,e){if(t){if("string"==typeof t)return(0,o.A)(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,o.A)(t,e):void 0}}}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={exports:{}};return t[o].call(i.exports,i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t=r(27800);function e(e,r){return function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var o,n,i,s,a=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(o=i.call(r)).done)&&(a.push(o.value),a.length!==e);c=!0);}catch(t){u=!0,n=t}
1finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw n}}return a}}(e,r)||(0,t.A)(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r(74423),r(33110),r(53921),r(27495),r(25440),r(42762),r(98992),r(3949),r(62953);var o=r(57794),n=r(87611),i=r(22866),s=r(92443);const a=["email","password"],c={loginForm:null,eventSent:!1,errorBox:null,emailSent:null,loginErrorTarget:null,formContainer:null,facebookSocialLogin:null,googleSocialLogin:null,redirectUrl:null,init(){this.loginForm=document.getElementById("login_form")||document.querySelector(".login-form"),this.loginErrorTarget=document.querySelector(".password-container"),this.formContainer=document.getElementById("form-container"),this.emailSent=document.querySelector(".email-sent-container"),this.facebookSocialLogin=document.getElementById("facebook_button"),this.googleSocialLogin=document.getElementById("google_button"),this.loginErrorTarget&&this.insertErrorBox(),this.bindEvents()},insertErrorBox(){this.errorBox=document.createElement("div"),this.errorBox.classList.add("form-error"),Object.assign(this.errorBox.style,{color:"#9D0D13",marginBottom:"10px",marginTop:"5px"}),this.loginErrorTarget.after(this.errorBox)},clearError(){this.errorBox&&(this.errorBox.textContent="")},clearFieldErrors(){document.querySelectorAll(".form-input__error").forEach(t=>{t.style.display="none"})},showError(t){this.errorBox&&(this.errorBox.textContent=t)},bindEvents(){var t;const e=document.getElementById("login_sign_in");this.loginForm&&(this.redirectUrl=null!==(t=this.loginForm.dataset.redirectUrl)&&void 0!==t?t:"",e&&e.addEventListener("click",t=>{t.preventDefault(),this.handleSignIn()}),this.facebookSocialLogin&&this.facebookSocialLogin.addEventListener("click",t=>{t.preventDefault(),this.handleSocialLogin("facebook")}),this.googleSocialLogin&&this.googleSocialLogin.addEventListener("click",t=>{t.preventDefault(),this.handleSocialLogin("google")}))},displayFieldError(t,e){const r=document.getElementById(t);if(!r||!r.parentElement)return;const n=r.parentElement.getElementsByTagName("span")[0];n&&("password"===t&&e.toString().length<8||"email"===t&&(""===e||!o.formValidation.validateEmail(e))?n.style.display="block":n.style.display="none")},async handleSignIn(){var t,e;this.clearError();const r=new FormData(this.loginForm),o=Object.fromEntries(r.entries());if(o.email=(null===(t=o.email)||void 0===t?void 0:t.trim())||"",o.remember_me=(null===(e=this.loginForm.remember_me)||void 0===e?void 0:e.checked)||!1,!this.validFormData(o))return;const a=this.loginForm.dataset.redirectUrl||this.redirectUrl||"",c="".concat(window.location.origin,"/").concat(a.replace(/^\/+/,""));try{const t=await fetch("/api/users/piano-id/login/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}),e=await t.json();if(t.ok&&e.success){n.default.log("Login successful","log"),this.sendToAdobe("event8","Login"),this.raiseLaunchEvent("user-has-logged-in"),s("#form-container__header").hide();const t=sessionStorage.getItem("nq_selected_offer_id"),e=sessionStorage.getItem("nq_selected_term_id"),r=!(!t||!e),o="/"!==(a.replace(/\/+$/,"")||"/"),u=sessionStorage.getItem("last_piano_page_interacted_with");if(r){const r="/subscribe/?offer_id=".concat(t,"&term_id=").concat(e);new i.LinkProgress(this.loginForm,{redirectUrl:r,isLoggedIn:!0,autoRedirect:!0,delayMs:3e3}).init()}else o?(sessionStorage.removeItem("last_piano_page_interacted_with"),new i.LinkProgress(this.loginForm,{redirectUrl:c,isLoggedIn:!0,autoRedirect:!0,delayMs:500}).init()):u?new i.LinkProgress(this.loginForm,{redirectUrl:u,isLoggedIn:!0,autoRedirect:!0,delayMs:1500}).init():new i.LinkProgress(this.loginForm,{redirectUrl:c,isLoggedIn:!0,autoRedirect:!0,delayMs:500}).init()}else{const t="string"==typeof e.error?e.error:"An unknown error occurred.";n.default.log("Login failed: ".concat(t),"error"),this.showError(t)}}catch(u){n.default.log("Network error: ".concat(u.message),"error"),this.showError("A network error occurred. Please try again.")}},async handleSocialLogin(t){const e=this.redirectUrl||"";this.clearFieldErrors(),this.clearError(),n.default.log("Attempting social login with ".concat(t),"log");try{const r=await fetch("/api/users/piano-id/social-login/ ",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({social_type:t,destination_redirect_url:e})}),o=await r.json();if(r.ok&&o.success){const t=o.social_login_redirect_url;if(!t)return void this.showError("Missing redirect URL from social login.");this.sendToAdobe("event8","Login"),this.raiseLaunchEvent("user-has-logged-in"),this.redirectToSocialProvider(t)}else this.showError(o.error||"Failed to initiate social login. Please try again.")}catch(r){n.default.log("Network error during social login: ".concat(r.message),"error"),this.showError("A network error occurred. Please try again.")}},sendToAdobe(t,e){if(n.default.log("AA: sending ".concat(t)),this.eventSent)return;const r=window.s;r.eVar2=window.location.href;const o=sessionStorage.getItem("nq_adobe_tracking_article_dimensions"),i=sessionStorage.getItem("nq_adobe_tracking_visiting_dimensions");if(i){const t=JSON.parse(i);r.eVar10=t.eVar10,r.eVar22=t.eVar22,r.eVar23=t.eVar23,r.eVar24=t.e
1Var24}if(o){const t=JSON.parse(o);r.eVar10=t.eVar10,r.eVar15=t.eVar15,r.eVar22=t.eVar22,r.eVar23=t.eVar23,r.eVar24=t.eVar24,r.eVar25=t.eVar25,r.eVar26=t.eVar26,r.eVar28=t.eVar28,r.eVar60=t.eVar60,r.eVar104=t.eVar104,r.eVar106=t.eVar106,r.eVar107=t.eVar107,r.eVar108=t.eVar108,r.prop63=t.prop63}r.pageName="(www) ".concat(window.location.pathname),r.events=t,r.linkTrackEvents=t,r.linkTrackVars="eVar2,eVar3,eVar5,eVar6,eVar7,eVar8,eVar9,eVar10,eVar15,eVar16,eVar17,eVar18,eVar19,eVar20,eVar22,eVar23,eVar24,eVar25,eVar26,eVar28,eVar31,eVar43,eVar60,eVar61,eVar62,eVar79,eVar84,eVar104,eVar106,eVar107,eVar108,prop63,events",r.suppressPageView=!0;try{r.tl(!0,"o",e)}catch(s){}r.ignoreNext=!0,this.eventSent=!0},raiseLaunchEvent(t){n.default.log("launch:piano:".concat(t," has been dispatched"));const e=new Event("launch:piano:".concat(t));window.dispatchEvent(e)},togglePassword(){document.querySelector("#toggle-password").addEventListener("click",t=>{t.preventDefault();const e=document.getElementById("password"),r=document.querySelector(".eye-open"),o=document.querySelector(".eye-closed");"password"===e.type?(e.type="text",r.style.display="none",o.style.display="block"):(e.type="password",r.style.display="block",o.style.display="none")})},validFormData(t){let r=!1;for(const i of Object.entries(t)){var n=e(i,2);const t=n[0],s=n[1];a.includes(t)&&((s.length||""!==s.trim())&&("password"===t&&s.toString().length>=8||"email"===t&&o.formValidation.validateEmail(s))?(r=!0,this.displayFieldError(t,s)):(r=!1,this.displayFieldError(t,s)))}return r},redirectToSocialProvider(t){t&&"string"==typeof t&&(window.location.href=t)}},u={loadValidationChecker(){document.querySelectorAll(".needs-validation").forEach(t=>{t.addEventListener("submit",e=>{!1===this.checkValidity(t)&&e.preventDefault(),t.classList.add("was-validated")})})},checkValidity(t){const e=t.querySelectorAll("[required]"),r=[];if(e.forEach(t=>{const e=t.value,o=t.getAttribute("type"),n=t.getAttribute("data-label");if(0===e.length?(r.push(n),t.classList.add("error")):t.classList.remove("error"),"email"===o){this.validateEmail(e)||(r.push(n),t.classList.add("error"))}}),r.length>0){let e="<h5>Sorry, it appears that something went wrong. The following details are required:</h5>";e+="<ul>",r.forEach(t=>{e+="<li>".concat(t,"</li>")}),e+="</ul>";const o=t.querySelector("#errors");return o.innerHTML=e,o.classList.remove("hidden"),!1}return!0},validateEmail:t=>/^([a-zA-Z0-9_\-.]+)@([a-zA-Z0-9_\-.]+)\.([a-zA-Z-]{1,})$/.test(String(t).toLowerCase())},l={eventSent:!1,errorBox:null,errorBoxTwo:null,resetPasswordForm:null,forgottenPasswordForm:null,emailSent:null,resetPasswordErrorTarget:null,passwordResetSuccess:null,init(){this.resetPasswordErrorTarget=document.querySelector("#new_password_1")||document.querySelector("#forgotten_password_email"),this.resetPasswordErrorTarget2=document.querySelector("#new_password_2"),this.resetPasswordForm=document.querySelector("#reset_password_form"),this.resetPasswordFormContainer=document.querySelector(".reset-password-form-container"),this.forgottenPasswordForm=document.querySelector("#forgotten_password_form"),this.emailSent=document.querySelector(".email-sent-container"),this.passwordResetSuccess=document.querySelector(".reset-password-success"),this.resetPasswordErrorTarget&&this.insertErrorBox(),this.resetPasswordErrorTarget2&&this.insertErrorBox(2),this.bindEvents()},insertErrorBox(t){this.errorBox=document.createElement("div"),this.errorBox.classList.add("form-error"),Object.assign(this.errorBox.style,{color:"#9D0D13",marginBottom:"10px",marginTop:"5px"}),this.resetPasswordErrorTarget.after(this.errorBox),2===t&&(this.errorBoxTwo=document.createElement("div"),this.errorBoxTwo.classList.add("form-error"),Object.assign(this.errorBoxTwo.style,{color:"#9D0D13",marginBottom:"10px",marginTop:"5px"}),this.resetPasswordErrorTarget2.after(this.errorBoxTwo))},clearError(){this.errorBox&&(this.errorBox.textContent=""),this.errorBoxTwo&&(this.errorBoxTwo.textContent="")},showError(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.errorBox&&1===e&&(this.errorBox.textContent=t),this.errorBoxTwo&&2===e&&(this.errorBoxTwo.textContent=t)},bindEvents(){const t=document.querySelector(".toggle-password-container-one"),e=document.querySelector(".toggle-password-container-two");this.forgottenPasswordForm&&this.forgottenPasswordForm.addEventListener("submit",t=>{t.preventDefault(),this.clearError();u.validateEmail(this.forgottenPasswordForm.email.value)?this.requestPasswordReset():this.showError("Please enter a valid email address.")}),this.resetPasswordForm&&this.resetPasswordForm.addEventListener("submit",t=>{t.preventDefault();const e=document.getElementById("new_password_1").value,r=document.getElementById("new_password_2").value;this.clearError(),e!==r?this.showError("These passwords do not match.",2):e.length<8?this.showError("Your password must be at least 8 characters long."):this.handlePasswordReset()}),t&&t.addEventListener("click",t=>{const e=document.getElementById("new_password_1"),r=t.currentTarget.querySelector(".eye-open"),o=t.currentTarget.querySelector(".eye-closed");"password"===e.type?(e.type="text",r.style.display="none",o.style.display="block"):(e.type="password",r.style.display="block",o.style.display="none")}),e&&e.addEventListener("click",t=>{const e=document.getElementById("new_password_2"),r=t.currentTarget.querySelector(".eye-open"),o=t.currentTarget.querySelector(".eye-closed");"password"===e.type?(e.type="text",r.style.display="none",o.style.display="block"):(e.type="password",r.style.display="block",o.style.display="none")})},requestPasswordReset(){var t;const e=new FormData(this.forgottenPasswordForm),r=Object.fromEntries(e.entries());r.email=(null===(t=r.email)||void 0===t?void 0:t.trim())||"";try{fetch("/api/users/piano-id/password-reset/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(t=>t.json()).then(t=>{if(t.success)n.default.log("Password reset email sent","log"),this.forgottenPasswordForm.classList.add("hidden"),this.emailSent.classList.remove("hidden");else{const e="string"==typeof t.error?t.error:"An unknown error occurred.";n.default.log("Password reset failed: ".concat(e),"error"),this.showError(e)}})}catch(o){n.default.log("Network error: ".concat(o.message),"error"),this.showError("A network error occurred. Please try again.")}},handlePasswordReset(){var t,e,r;const o=new FormData(this.resetPasswordForm),i=Object.fromEntries(o.entries());if(i.password=(null===(t=i.password)||void 0===t?void 0:t.trim())||"",i.confirm_password=(null===(e=i.confirm_password)||void 0===e?void 0:e.trim())||"",i.token=(null===(r=i.token)||void 0===r?void 0:r.trim())||"",this.clearError(),i.password&&i.confirm_password)if(i.password===i.confirm_password)if(i.token)try{fetch("/api/users/piano-id/password-reset/change/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:i.password,token:i.token})}).then(t=>t.json()).then(t=>{if(t.success)n.default.log("Password changed successfully","log"),this.resetPasswordFormContainer.classList.add("hidden"),this.passwordResetSuccess.classList.remove("hidden");else{const e="string"==typeof t.error?t.error:"Password reset failed.";n.default.log("Password reset failed: ".concat(e),"error"),this.showError(e)}})}catch(s){n.default.log("Network error: ".concat(s.message),"error"),this.showError("A network error occurred. Please try again.")}else this.showError("Reset token is missing.");else this.showError("Passwords do not match.");else this.showError("Please enter and confirm your new password.")}};var d=r(11940),f=r(41751),p=r(66908);l.init(),c.init(),new d.U,new f.D,new p.j})()})();

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.