text: (()=>{var __webpack_modules__={387:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});const n=new RegExp("^s+|s+$","g"),o=function(){const e="component-slot",t={DOWN:40,LEFT:37,RIGHT:39,UP:38,HOME:36,END:35,ENTER:13,ESCAPE:27,TAB:9,SHIFT:16,CTRL:17,SPACE:32,PAGE_UP:33,PAGE_DOWN:34},r=new class{constructor(){this.definedElements={},this.imported=this.imported||[],this.KEYCODES=t,this.cachedComponents={}}importScript(e){let t=document.createElement("script");t.setAttribute("src",e),document.body.appendChild(t)}loadHTML(e){return this.loadResource(e).then((e=>e.template))}whenDefined(e){if(void 0!==this.definedElements[e])return this.definedElements[e].promise;const t=this.definedElements[e]={};return t.promise=new Promise(((e,r)=>{t.resolve=e,t.reject=r})),t.promise}defineCustomElement(e,t){this.definedElements[e]||(this.whenDefined(e),customElements.define(e,t),this.definedElements[e].resolve(t))}importComponent(e){requestAnimationFrame((()=>{this.importScript(e+"/script.js")}))}removeSlashes(e){return e.replace(/[/|\\]/g,"")}removeNewLines(e){return e.replace(n,"").trim()}removeCopyrightNotice(e){return e.replace("\x3c!--Copyright (c) Coherent Labs AD. All rights reserved. --\x3e","").trim()}resolveWithTemplate(e){return new Promise((t=>{t({template:e.template.cloneNode(!0),url:e.url})}))}loadResource(e){if(e.template&&"string"==typeof e.template){if(e.isRendered)return this.resolveWithTemplate(e);const t=document.createElement("div"),r=this.removeCopyrightNotice(e.template);return t.innerHTML=this.removeNewLines(r),new Promise((r=>{r({template:t.firstChild.cloneNode(!0),url:e.url})}))}if("object"==typeof e.template&&e.isRendered)return this.resolveWithTemplate(e);if(window.__optimize){const t=this.removeSlashes(e.url),r=document.getElementById(t).firstChild;return r?new Promise((t=>{t({template:r.cloneNode(!0),url:e.url})})):this.requestResource(e.url)}return this.requestResource(e.url)}requestResource(e){const t=new XMLHttpRequest,r=new Promise((function(r,n){t.onload=o=>{if(200==t.status){const n=document.createElement("div");n.innerHTML=t.responseText,r({template:n.firstChild.cloneNode(!0),url:e})}else n(o)},t.onerror=n}));return t.open("GET",e),t.send(),r}findSlots(t,r,n={}){const o=t.children,i=o.length;for(let t=0;t<i;++t){const i=o[t],a=i.tagName.toLowerCase();if(i instanceof s){const e=i.dataset.name;n[e]||(n[e]=[]),n[e].push(i),this.findSlots(i,r,n)}else if(i.hasAttribute("slot")){const e=i.getAttribute("slot");n[e]||(n[e]=[]),n[e].push(i),this.findSlots(i,r,n)}else("gameface-scrollable-container"===a||a!==e&&r!==a&&!this.definedElements[a])&&this.findSlots(i,r,n)}return n}replaceSlots(e,t){const r=t[0];if(e.length&&r.childNodes.length)for(;r.firstChild;)r.removeChild(r.lastChild);const n=r.parentNode;n.removeChild(r);for(let t=0;t<e.length;++t)n.appendChild(e[t])}transferContent(e,t){for(;t.childNodes.length>0;){const e=t.childNodes;t.removeChild(e[e.length-1])}for(;e.childNodes.length>0;){const r=e.childNodes[0];e.removeChild(r),t.appendChild(r)}}renderOnce(e){return!e.isRendered&&(this.render(e),e.isRendered=!0,!0)}render(e){const t=document.createElement("div");t.appendChild(e.template);const r=e.tagName.toLowerCase(),n=this.findSlots(t,r),o=this.findSlots(e,r),s=Object.keys(o);if(Object.keys(n).length)for(let e of s)o[e]&&n[e]&&this.replaceSlots(o[e],n[e]);this.transferContent(t,e)}waitForFrames(e=(()=>{}),t=3){if(0===t)return e();t--,requestAnimationFrame((()=>this.waitForFrames(e,t)))}};class o extends HTMLElement{constructor(){super()}connectedCallback(){const e=`/components/${this.dataset.url}/`,t=`gameface-${this.dataset.url}`;-1===r.imported.indexOf(t)&&(r.importComponent(e),r.imported.push(t)),this.appendChild(document.createElement(t))}}class s extends HTMLElement{constructor(){super(),this.originalAppendChild=this.appendChild,this.originalInsertBefore=this.insertBefore,this.originalReplaceChild=this.replaceChild,this.originalRemoveChild=this.removeChild,this.appendChild=e=>{const t=this.originalAppendChild(e);return this.disptachSlotChange(t),t},this.insertBefore=(e,t)=>{const r=this.originalInsertBefore(e,t);return this.disptachSlotChange(r),r},this.replaceChild=(e,t)=>{const r=this.originalReplaceChild(e,t);return this.disptachSlotChange(r),r},this.removeChild=e=>{const t=this.originalRemoveChild(e);return this.disptachSlotChange(t),t}}disptachSlotChange(e){this.dispatchEvent(new CustomEvent("slotchange"),{target:this,child:e})}}return r.defineCustomElement("component-import",o),r.defineCustomElement(e,s),r}()},95:function(){var NO_JQUERY={};!function(e,t,r){if(!("console"in e)){var n=e.console={};n.log=n.warn=n.error=n.debug=function(){}}t===NO_JQUERY&&(t={fn:{},extend:function(){for(var e=arguments[0],t=1,r=arguments.length;t<r;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}}),t.fn.pm=function(){return console.log("usage: \nto send:    $.pm(options)\nto receive: $.pm.bind(type, fn, [origin])"),this},t.pm=e.pm=function(e){o.send(e)},t.pm.bind=e.pm.bind=function(e,t,r,n,s){o.bind(e,t,r,n,!0===s)},t.pm.unbind=e.pm.unbind=function(e,t){o.unbind(e,t)},t.pm.origin=e.pm.origin=null,t.pm.poll=e.pm.poll=200;var o={send:function(e){var r=t.extend({},o.defaults,e),n=r.target;if(r.target)if(r.type){var s={data:r.data,type:r.type};r.success&&(s.callback=o._callback(r.success)),r.error&&(s.errback=o._callback(r.error)),"postMessage"in n&&!r.hash?(o._bind(),n.postMessage(JSON.stringify(s),r.origin||"*")):(o.hash._bind(),o.hash.send(r,s))}else console.warn("postmessage type required");else console.warn("postmessage target window required")},bind:function(e,t,r,n,s){o._replyBind(e,t,r,n,s)},_replyBind:function(r,n,s,i,a){"postMessage"in e&&!i?o._bind():o.hash._bind();var l=o.data("listeners.postmessage");l||(l={},o.data("listeners.postmessage",l));var c=l[r];c||(c=[],l[r]=c),c.push({fn:n,callback:a,origin:s||t.pm.origin})},unbind:function(e,t){var r=o.data("listeners.postmessage");if(r)if(e)if(t){var n=r[e];if(n){for(var s=[],i=0,a=n.length;i<a;i++){var l=n[i];l.fn!==t&&s.push(l)}r[e]=s}}else delete r[e];else for(var i in r)delete r[i]},data:function(e,t){return void 0===t?o._data[e]:(o._data[e]=t,t)},_data:{},_CHARS:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),_random:function(){for(var e=[],t=0;t<32;t++)e[t]=o._CHARS[0|32*Math.random()];return e.join("")},_callback:function(e){var t=o.data("callbacks.postmessage");t||(t={},o.data("callbacks.postmessage",t));var r=o._random();return t[r]=e,r},_bind:function(){o.data("listening.postmessage")||(e.addEventListener?e.addEventListener("message",o._dispatch,!1):e.attachEvent&&e.attachEvent("onmessage",o._dispatch),o.data("listening.postmessage",1))},_dispatch:function(e){try{var t=JSON.parse(e.data)}catch(e){return void console.warn("postmessage data invalid json: ",e)}if(t.type){var r=(o.data("callbacks.postmessage")||{})[t.type];if(r)r(t.data);else for(var n=(o.data("listeners.postmessage")||{})[t.type]||[],s=0,i=n.length;s<i;s++){var a=n[s];if(a.origin&&"*"!==a.origin&&e.origin!==a.origin){if(console.warn("postmessage message origin mismatch",e.origin,a.origin),t.errback){var l={message:"postmessage origin mismatch",origin:[e.origin,a.origin]};o.send({target:e.source,data:l,type:t.errback})}}else try{a.callback?a.fn(t.data,c,e):c(a.fn(t.data,e))}catch(r){if(!t.errback)throw r;o.send({target:e.source,data:r,type:t.errback})}function c(r){t.callback&&o.send({target:e.source,data:r,type:t.callback})}}}else console.warn("postmessage message type required")}};o.hash={send:function(t,r){var n=t.target,s=t.url;if(s){s=o.hash._url(s);var i,a=o.hash._url(e.location.href);if(e==n.parent)i="parent";else try{for(var l=0,c=parent.frames.length;l<c;l++)if(parent.frames[l]==e){i=l;break}}catch(t){i=e.name}if(null!=i){var u={"x-requested-with":"postmessage",source:{name:i,url:a},postmessage:r},h="#x-postmessage-id="+o._random();n.location=s+h+encodeURIComponent(JSON.stringify(u))}else console.warn("postmessage windows must be direct parent/child windows and the child must be available through the parent window.frames list")}else console.warn("postmessage target window url is required")},_regex:/^\#x\-postmessage\-id\=(\w{32})/,_regex_len:"#x-postmessage-id=".length+32,_bind:function(){o.data("polling.postmessage")||(setInterval((function(){var t=""+e.location.hash,r=o.hash._regex.exec(t);if(r){var n=r[1];o.hash._last!==n&&(o.hash._last=n,o.hash._dispatch(t.substring(o.hash._regex_len)))}}),t.pm.poll||200),o.data("polling.postmessage",1))},_dispatch:function(t){if(t){try{if(!("postmessage"===(t=JSON.parse(decodeURIComponent(t)))["x-requested-with"]&&t.source&&null!=t.source.name&&t.source.url&&t.postmessage))return}catch(e){return}var r=t.postmessage,n=(o.data("callbacks.postmessage")||{})[r.type];if(n)n(r.data);else{var s;s="parent"===t.source.name?e.parent:e.frames[t.source.name];for(var i=(o.data("listeners.postmessage")||{})[r.type]||[],a=0,l=i.length;a<l;a++){var c=i[a];if(c.origin){var u=/https?\:\/\/[^\/]*/.exec(t.source.url)[0];if("*"!==c.origin&&u!==c.origin){if(console.warn("postmessage message origin mismatch",u,c.origin),r.errback){var h={message:"postmessage origin mismatch",origin:[u,c.origin]};o.send({target:s,data:h,type:r.errback,hash:!0,url:t.source.url})}continue}}function d(e){r.callback&&o.send({target:s,data:e,type:r.callback,hash:!0,url:t.source.url})}try{c.callback?c.fn(r.data,d):d(c.fn(r.data))}catch(e){if(!r.errback)throw e;o.send({target:s,data:e,type:r.errback,hash:!0,url:t.source.url})}}}}},_url:function(e){return(""+e).replace(/#.*$/,"")}},t.extend(o,{defaults:{target:null,url:null,type:null,data:null,success:null,error:null,origin:"*",hash:!1}})}(this,"undefined"==typeof jQuery?NO_JQUERY:jQuery),"JSON"in window&&window.JSON||(JSON={}),function(){function f(e){return e<10?"0"+e:e}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(e){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(e){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,(function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function str(e,t){var r,n,o,s,i,a=gap,l=t[e];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),"function"==typeof rep&&(l=rep.call(t,e,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,i=[],"[object Array]"===Object.prototype.toString.apply(l)){for(s=l.length,r=0;r<s;r+=1)i[r]=str(r,l)||"null";return o=0===i.length?"[]":gap?"[\n"+gap+i.join(",\n"+gap)+"\n"+a+"]":"["+i.join(",")+"]",gap=a,o}if(rep&&"object"==typeof rep)for(s=rep.length,r=0;r<s;r+=1)"string"==typeof(n=rep[r])&&(o=str(n,l))&&i.push(quote(n)+(gap?": ":":")+o);else for(n in l)Object.hasOwnProperty.call(l,n)&&(o=str(n,l))&&i.push(quote(n)+(gap?": ":":")+o);return o=0===i.length?"{}":gap?"{\n"+gap+i.join(",\n"+gap)+"\n"+a+"}":"{"+i.join(",")+"}",gap=a,o}}"function"!=typeof JSON.stringify&&(JSON.stringify=function(e,t,r){var n;if(gap="",indent="","number"==typeof r)for(n=0;n<r;n+=1)indent+=" ";else"string"==typeof r&&(indent=r);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(e,t){var r,n,o=e[t];if(o&&"object"==typeof o)for(r in o)Object.hasOwnProperty.call(o,r)&&(void 0!==(n=walk(o,r))?o[r]=n:delete o[r]);return reviver.call(e,t,o)}if(cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,(function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},446:function(e,t,r){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(e);const n=r.default.KEYCODES;class o extends HTMLElement{constructor(){super(),this.previouslyCheckedElement=null}get allButtons(){return Array.from(this.querySelectorAll("radio-button"))}setCheckedToPreviousItem(e){e.previousElementSibling&&(e.previousElementSibling.checked=!0,e.previousElementSibling.focus())}setCheckedToNextItem(e){e.nextElementSibling&&(e.nextElementSibling.checked=!0,e.nextElementSibling.focus())}uncheckPreviousButton(){this.previouslyCheckedElement&&this.setButtonAttributes(this.previouslyCheckedElement,!1),this.previouslyCheckedElement=null}checkButton(e){this.setButtonAttributes(e,!0),this.previouslyCheckedElement=e}handleClick(){this.checked=!0,this.focus()}handleKeydown(e){switch(e.keyCode){case n.UP:case n.LEFT:this.radioGroup.setCheckedToPreviousItem(this);break;case n.DOWN:case n.RIGHT:this.radioGroup.setCheckedToNextItem(this)}}setButtonRoleAttribute(e){e.setAttribute("role","radio")}attachButtonEventListeners(e){e.addEventListener("click",this.handleClick.bind(e)),e.addEventListener("keydown",this.handleKeydown.bind(e))}setButtonAttributes(e,t){e.setAttribute("tabindex",t?"0":"-1"),e.setAttribute("aria-checked",t?"true":"false")}setupButtons(){for(const e of this.allButtons)this.setButtonRoleAttribute(e),this.attachButtonEventListeners(e),this.setButtonAttributes(e),e.hasAttribute("checked")&&(e.checked=!0)}connectedCallback(){this.setAttribute("role","radiogroup"),this.setupButtons(),this.previouslyCheckedElement=this.querySelector('[aria-checked="true"]')}}class s extends HTMLElement{constructor(){super(),this.template='\x3c!--Copyright (c) Coherent Labs AD. All rights reserved. --\x3e\r\n<div class="radio-button">\r\n\t<div class="radio-button-text"></div>\r\n\t<div class="before"></div>\r\n\t<div class="after"></div>\r\n</div>\r\n',this.textElement=null}get checked(){return this.getAttribute("aria-checked")}set checked(e){this.radioGroup.uncheckPreviousButton(),this.radioGroup.checkButton(this)}get value(){return this.textElement.textContent}set value(e){this.textElement.textContent=e}connectedCallback(){this.radioGroup=this.parentElement;const e=this.textContent;r.default.loadResource(this).then((t=>{this.template=t.template,r.default.renderOnce(this),this.textElement=this.querySelector(".radio-button-text"),this.textElement.textContent=e})).catch((e=>console.error(e)))}}return r.default.defineCustomElement("radio-button",s),r.default.defineCustomElement("gameface-radio-group",o),o}(r(387))}},__webpack_module_cache__={};function __webpack_require__(e){if(__webpack_module_cache__[e])return __webpack_module_cache__[e].exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(t.exports,t,t.exports,__webpack_require__),t.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";__webpack_require__(387),__webpack_require__(446);var e=__webpack_require__(95),t="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==t&&t,r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in t,i="ArrayBuffer"in t;if(i)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function m(e){var t=new FileReader,r=f(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():i&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(m)}),this.text=function(){var e,t,r,n=p(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=f(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=u(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,t){this.map[c(e)]=u(t)},d.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),h(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),h(e)},n&&(d.prototype[Symbol.iterator]=d.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),g.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var s=/([?&])_=[^&]*/;s.test(this.url)?this.url=this.url.replace(s,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function v(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];w.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})};var C=t.DOMException;try{new C}catch(e){(C=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),C.prototype.constructor=C}function x(e,r){return new Promise((function(n,s){var a=new _(e,r);if(a.signal&&a.signal.aborted)return s(new C("Aborted","AbortError"));var l=new XMLHttpRequest;function c(){l.abort()}l.onload=function(){var e,t,r={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}})),t)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;setTimeout((function(){n(new w(o,r))}),0)},l.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){s(new C("Aborted","AbortError"))}),0)},l.open(a.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?l.withCredentials=!0:"omit"===a.credentials&&(l.withCredentials=!1),"responseType"in l&&(o?l.responseType="blob":i&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!r||"object"!=typeof r.headers||r.headers instanceof d?a.headers.forEach((function(e,t){l.setRequestHeader(t,e)})):Object.getOwnPropertyNames(r.headers).forEach((function(e){l.setRequestHeader(e,u(r.headers[e]))})),a.signal&&(a.signal.addEventListener("abort",c),l.onreadystatechange=function(){4===l.readyState&&a.signal.removeEventListener("abort",c)}),l.send(void 0===a._bodyInit?null:a._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=d,t.Request=_,t.Response=w),window.postMessage=function(t){(0,e.pm)({origin:"http://127.0.0.1/:3000",target:window,data:t})}})()})();