1/*! For license information please see quiz.js.LICENSE.txt */ 2(()=>{var e,t={8636:e=>{function t(){}e.exports=function(e,n,r){var o=!1;return r=r||t,a.count=e,0===e?n():a;function a(e,t){if(a.count<=0)throw new Error("after called too many times");--a.count,e?(o=!0,n(e),n=r):0!==a.count||o||n(null,t)}}},7781:e=>{e.exports=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(t<0&&(t+=r),n<0&&(n+=r),n>r&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(e),a=new Uint8Array(n-t),i=t,s=0;i<n;i++,s++)a[s]=o[i];return a.buffer}},4206:(e,t,n)=>{e.exports=n(8057)},4387:(e,t,n)=>{"use strict";var r=n(7485),o=n(4570),a=n(2940),i=n(581),s=n(574),c=n(3845),u=n(8338),l=n(8524);e.exports=function(e){return new Promise((function(t,n){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+m)}var y=s(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),i(y,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?c(d.getAllResponseHeaders()):null,a={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d};o(t,n,a),d=null}},d.onabort=function(){d&&(n(l("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(l("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||u(y))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;g&&(p[e.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(p,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),n(e),d=null)})),f||(f=null),d.send(f)}))}},8057:(e,t,n)=>{"use strict";var r=n(7485),o=n(875),a=n(5029),i=n(4941);function s(e){var t=new a(e),n=o(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var c=s(n(3141));c.Axios=a,c.create=function(e){return s(i(c.defaults,e))},c.Cancel=n(7132),c.CancelToken=n(4603),c.isCancel=n(1475),c.all=function(e){return Promise.all(e)},c.spread=n(5739),c.isAxiosError=n(5835),e.exports=c,e.exports.default=c},7132:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4603:(e,t,n)=>{"use strict";var r=n(7132);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},1475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5029:(e,t,n)=>{"use strict";var r=n(7485),o=n(581),a=n(8096),i=n(5009),s=n(4941);function c(e){this.defaults=e,this.interceptors={request:new a,response:new a}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[i,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=c},8096:(e,t,n)=>{"use strict";var r=n(7485);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o}
vendor: 9,769 bytes, line 2
2,574:(e,t,n)=>{"use strict";var r=n(2642),o=n(2288);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},8524:(e,t,n)=>{"use strict";var r=n(9953);e.exports=function(e,t,n,o,a){var i=new Error(e);return r(i,t,n,o,a)}},5009:(e,t,n)=>{"use strict";var r=n(7485),o=n(9212),a=n(1475),i=n(3141);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return s(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(s(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},9953:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},4941:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],a=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(a,u),r.forEach(i,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(void 0,t[o])})),r.forEach(s,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var l=o.concat(a).concat(i).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return r.forEach(f,u),n}},4570:(e,t,n)=>{"use strict";var r=n(8524);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},9212:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},3141:(e,t,n)=>{"use strict";var r=n(7485),o=n(1446),a={"Content-Type":"application/x-www-form-urlencoded"};function i(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,c={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n(4387)),s),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(i(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(i(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(a)})),e.exports=c},875:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},581:(e,t,n)=>{"use strict";var r=n(7485);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(o(t)+"="+o(e))})))})),a=i.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},2288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2940:(e,t,n)=>{"use strict";var r=n(7485);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,a,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},2642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},5835:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},8338:(e,t,n)=>{"use strict";var r=n(7485);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},1446:(e,t,n)=>{"use strict";var r=n(7485);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},3845:(e,t,n)=>{"use strict";var r=n(7485),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,i={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(i[t]&&o.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},5739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7485:(e,t,n)=>{"use strict";var r=n(875),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function i(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:c,isUndefined:i,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):a(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},5717:(e,t,n)=>{"use strict";var r={};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.r(r),n.d(r,{VERSION:()=>Cr,after:()=>ri,all:()=>ki,allKeys:()=>Lo,any:()=>Si,assign:()=>ra,before:()=>
2oi,bind:()=>Ha,bindAll:()=>Qa,chain:()=>Ua,chunk:()=>is,clone:()=>sa,collect:()=>gi,compact:()=>$i,compose:()=>ni,constant:()=>wo,contains:()=>xi,countBy:()=>Di,create:()=>ia,debounce:()=>Ja,default:()=>us,defaults:()=>oa,defer:()=>Ka,delay:()=>Za,detect:()=>hi,difference:()=>Ki,drop:()=>Vi,each:()=>yi,escape:()=>Ta,every:()=>ki,extend:()=>na,extendOwn:()=>ra,filter:()=>wi,find:()=>hi,findIndex:()=>ci,findKey:()=>ii,findLastIndex:()=>ui,findWhere:()=>mi,first:()=>Gi,flatten:()=>Zi,foldl:()=>_i,foldr:()=>bi,forEach:()=>yi,functions:()=>ea,get:()=>pa,groupBy:()=>Mi,has:()=>da,head:()=>Gi,identity:()=>ha,include:()=>xi,includes:()=>xi,indexBy:()=>Ii,indexOf:()=>pi,initial:()=>Hi,inject:()=>_i,intersection:()=>ts,invert:()=>Jo,invoke:()=>Ci,isArguments:()=>vo,isArray:()=>mo,isArrayBuffer:()=>ao,isBoolean:()=>Zr,isDataView:()=>ho,isDate:()=>to,isElement:()=>Kr,isEmpty:()=>Po,isEqual:()=>jo,isError:()=>ro,isFinite:()=>_o,isFunction:()=>co,isMap:()=>Vo,isMatch:()=>Ro,isNaN:()=>bo,isNull:()=>Qr,isNumber:()=>eo,isObject:()=>Vr,isRegExp:()=>no,isSet:()=>$o,isString:()=>Jr,isSymbol:()=>oo,isTypedArray:()=>No,isUndefined:()=>$r,isWeakMap:()=>Qo,isWeakSet:()=>Zo,iteratee:()=>_a,keys:()=>zo,last:()=>Qi,lastIndexOf:()=>di,map:()=>gi,mapObject:()=>wa,matcher:()=>ma,matches:()=>ma,max:()=>Ti,memoize:()=>$a,methods:()=>ea,min:()=>zi,mixin:()=>cs,negate:()=>ti,noop:()=>Ea,now:()=>Ca,object:()=>os,omit:()=>Wi,once:()=>ai,pairs:()=>Xo,partial:()=>Wa,partition:()=>ji,pick:()=>Yi,pluck:()=>Ni,property:()=>ya,propertyOf:()=>ka,random:()=>xa,range:()=>as,reduce:()=>_i,reduceRight:()=>bi,reject:()=>Ei,rest:()=>Vi,restArguments:()=>Gr,result:()=>ja,sample:()=>Pi,select:()=>wi,shuffle:()=>Ri,size:()=>Ui,some:()=>Si,sortBy:()=>Ai,sortedIndex:()=>li,tail:()=>Vi,take:()=>Gi,tap:()=>ca,template:()=>Da,templateSettings:()=>Pa,throttle:()=>Xa,times:()=>Sa,toArray:()=>Bi,toPath:()=>ua,transpose:()=>ns,unescape:()=>za,union:()=>es,uniq:()=>Ji,unique:()=>Ji,uniqueId:()=>Ba,unzip:()=>ns,values:()=>Ko,where:()=>Oi,without:()=>Xi,wrap:()=>ei,zip:()=>rs});var s=n(6983);function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,s.Z)(e,t)}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var l=n(7169);function f(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,l.Z)(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}n(5623),n(1514),n(3238),n(3214);var d=n(7378),h=n(1542),m=n(2669),y=(n(3352),n(2327),n(4206)),g=n.n(y);function v(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function _(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){v(a,r,o,i,s,"next",e)}function s(e){v(a,r,o,i,s,"throw",e)}i(void 0)}))}}var b=n(824),w=n.n(b);function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"new";return function(){var t=_(w().mark((function t(n,r){var o,a;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("new"!==e){t.next=4;break}n({type:"CREATE_QUIZ_BUILDER",payload:{quiz:{code:"",name:"",songs:[],custom:!window.isAdmin}}}),t.next=9;break;case 4:return t.next=6,g().get("/quiz/solo/".concat(e));case 6:o=t.sent,(a=o.data)&&a.quiz?n({type:"CREATE_QUIZ_BUILDER",payload:{quiz:a.quiz}}):n({type:"CREATE_QUIZ_BUILDER",payload:{quiz:{code:"",name:"",songs:[],custom:!window.isAdmin}}});case 9:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}function k(e){return function(t,n){t({type:"NAVIGATE",payload:{page:e}})}}function S(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o,a){var i=a().account,s=i&&i.id?i.id:null;g().post("/quiz/room/join",{room:e,name:t,avatar:n,reconnect:r,accountId:s}).then((function(r){var a=r.data;if(a.error)alertify.error(a.error);else{var i={id:a.room.players.find((function(e){return!e.kicked&&e.name===t}))._id,room:e,name:t,avatar:n};o({type:"JOIN_ROOM",payload:{room:a.room,player:i}}),localStorage.setItem("QUIZ_PLAYER",JSON.stringify(i))}}
2)).catch((function(e){console.log(e),alertify.error("Something went wrong!")}))}}function x(e){return function(t,n){t({type:"PLAYER_CONNECTED",payload:e})}}function C(e){return function(t,n){t({type:"PLAYER_DISCONNECTED",payload:{playerId:e}})}}function N(e){return function(t,n){var r=n().quiz;g().post("/quiz/kick",{code:r.code,playerId:e})}}function O(e){return function(t,n){var r=n().player,o=e.players;!o||o.find((function(e){return!e.kicked&&e._id===r.id}))?t({type:"UPDATE_DATA",payload:e}):t(R())}}function T(e){return function(t,n){var r=n().quiz;g().post("/quiz/settings",{code:r.code,settings:{theme:e}})}}function P(){return function(e,t){var n=t().account,r=n&&n.id?n.id:"";g().get("/quiz/solo/list/multiplayer?userId=".concat(r)).then((function(t){var n=t.data;n.quizzes?e({type:"LOAD_PRESET_QUIZZES",payload:{quizzes:n.quizzes.data||[]}}):alertify.error("Something went wrong!")})).catch((function(e){console.log(e),alertify.error("Something went wrong!")}))}}function R(){return function(e,t){var n=t(),r=n.quiz,o=n.player;g().post("/quiz/logout",{code:r.code,playerId:o.id}),localStorage.removeItem("QUIZ_PLAYER"),e({type:"LOGOUT"})}}n(266),n(3938),n(8010),n(205),n(3611);var A=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){var e;o(this,a);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).onClick=function(){e.props.disabled||e.props.onClick()},e.getCssClass=function(){var t="";return e.props.primary?t="--primary":e.props.secondary?t="--secondary":e.props.tertiary?t="--tertiary":e.props.alternative?t="--alternative":e.props.link&&(t="--link"),e.props.disabled&&(t="".concat(t," --disabled")),t},e}return i(a,[{key:"render",value:function(){var e=this.getCssClass();return d.createElement("button",{className:"button ".concat(e," ").concat(this.props.className||""),onClick:this.onClick,disabled:this.props.disabled,style:this.props.style},this.props.icon&&d.createElement("span",{className:"button__icon ".concat(e," ").concat(this.props.icon)}),this.props.label&&d.createElement("span",{className:"button__label ".concat(e)},this.props.label))}}]),a}(d.Component);A.defaultProps={type:"default"},n(6252),n(2077),n(1203),n(3515),n(1013);var q=n(3615),M=n.n(q);var I=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){var e;o(this,a);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).focus=function(){e.refs["input-field"].focus()},e.onChange=function(t){e.props.onChange(t.target.value)},e.onFocus=function(t){e.props.onFocus&&e.props.onFocus(t.target.value)},e.onBlur=function(t){e.props.onBlur&&e.props.onBlur(t.target.value)},e.onKeyPress=function(t){e.props.onKeyPress&&e.props.onKeyPress(t.key)},e}return i(a,[{key:"render",value:function(){return d.createElement("div",{className:"input__container ".concat(this.props.containerClass||"")},this.props.label?d.createElement("div",{className:"input__label"},this.props.label):null,d.createElement("input",{ref:"input-field",className:"input__field ".concat(this.props.className||""),"data-hj-whitelist":!0,type:this.props.type||"text",placeholder:this.props.placeholder||"","aria-label":this.props.ariaLabel||"",defaultValue:this.props.defaultValue?this.props.defaultValue:null==this.props.value?"":void 0,autoComplete:this.props.autoComplete||void 0,value:this.props.value,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,onKeyPress:this.onKeyPress,disabled:this.props.disabled}),this.props.error?d.createElement("div",{className:"input__error"},d.createElement("span",{className:"input__error__icon fa fa-exclamation"}),d.createElement("span",{className:"input__error__text"},this.props.error)):null,this.props.criteria?d.createElement("div",{className:"input__criteria__container"},this.props.criteria.map((function(e,t){return d.createElement("div",{key:"criteria-".concat(t),className:"input__criteria__item"},d.createElement("span",{className:"input__criteria__icon fa fa-circle"}),d.createElement("span",{className:"input__criteria__text"},e.label))}))):null)}}]),a}(d.Component);I.propTypes={onChange:M().func,placeholder:M().string,error:M().string,value:M().any,criteria:M().array,type:M().string,disabled:M().bool};var D=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){return o(this,a),r.apply(this,arguments)}return i(a,[{key:"render",value:function(){return d.createElement("div",{className:"alert-message__box ".concat(this.props.className||""," --").concat(this.props.status||"info")},this.props.iconClass?d.createElement("div",{className:"alert-message__left-panel"},d.createElement("i",{className:"alert-message__icon fa fa-".concat(this.props.iconClass," --").concat(this.props.status||"info"),"aria-hidden":"true"})):null,d.createElement("div",{className:"alert-message__right-panel"},this.props.content))}}]),a}(d.Component);function j(){return function(e,t){t().account.loggedIn&&localStorage.SONGLIO_TOKEN&&(g().defaults.headers.common["x-access-token"]=localStorage.SONGLIO_TOKEN,g().get("/account/level").then((function(t){var n=t.data;"success"===n.status?e({type:"ACCOUNT_LEVEL_UPDATE",payload:{level:n.level,xp:n.xp}}):console.error("Something went wrong.")})).catch((function(e){console.log(e),console.error("Something went wrong.")})))}}function L(){return function(e,t){localStorage.removeItem("SONGLIO_TOKEN"),e({type:"ACCOUNT_LOGOUT"})}}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"undefined"!=typeof gtag&>ag?gtag("event",e,t):(console.log("GTag: ".concat(e)),console.log(t))}D.propTypes={content:M().any.isRequired,status:M().string,iconClass:M().string},n(2081);var U,F=[{level:1,maxXP:500},{level:2,maxXP:500},{level:3,maxXP:1500},{level:4,maxXP:2500}
2,{level:5,maxXP:5e3},{level:6,maxXP:15e3},{level:7,maxXP:25e3},{level:8,maxXP:25e3},{level:9,maxXP:25e3},{level:10,maxXP:25e3},{level:11,maxXP:25e3},{level:12,maxXP:25e3},{level:13,maxXP:25e3},{level:14,maxXP:3e4},{level:15,maxXP:4e4},{level:16,maxXP:5e4},{level:17,maxXP:6e4},{level:18,maxXP:7e4},{level:19,maxXP:8e4},{level:20,maxXP:9e4},{level:21,maxXP:8e4},{level:22,maxXP:1e4},{level:23,maxXP:1e4},{level:24,maxXP:5e4},{level:25,maxXP:null}];function Y(e){e=parseInt(e);var t=F.find((function(t){return t.level===e}));return{level:t.level,maxXP:t.maxXP}}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}var H=(0,m.$j)((function(e){return{account:e.account,isInGame:e.quiz&&e.quiz.room||e.soloQuiz&&e.soloQuiz.id||e.quizBuilder&&e.quizBuilder.enabled}}))(U=function(e){c(n,e);var t=W(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n,[{key:"componentDidMount",value:function(){var e=this;window.launchStore=function(){e.props.account.loggedIn?window.open("/?account","_blank").focus():e.loginRef.onNavItemClick()}}},{key:"render",value:function(){var e=this,t=this.props,n=t.dispatch,r=t.account,o=t.show,a=t.homePage,i=t.isInGame,s=t.onLeave;return r.loggedIn?d.createElement(G,{dispatch:n,account:r,isInGame:i,onLeave:s}):d.createElement(V,{ref:function(t){return e.loginRef=t},dispatch:n,show:o,isInGame:i,homePage:a})}}]),n}(d.Component))||U,G=function(e){c(n,e);var t=W(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).onViewAccount=function(){e.props.isInGame?window.open("/?account","_blank").focus():(e.props.onLeave&&e.props.onLeave(!0),e.props.dispatch(k("account")))},e}return i(n,[{key:"render",value:function(){var e=this.props.account,t=Y(e.level||1);return d.createElement("div",{className:"quiz-home__account-avatar",onClick:this.onViewAccount},d.createElement("div",{className:"quiz-home__account-avatar__left"},d.createElement("img",{className:"quiz-home__account-avatar__img",src:"https://storage.googleapis.com/encore_songlio/avatars/".concat(e.avatar,".png"),alt:"Avatar"})),d.createElement("div",{className:"quiz-home__account-avatar__right"},d.createElement("div",{className:"quiz-home__account-avatar__name"},d.createElement("span",{className:"quiz-home__account-avatar__name__label"},e.username||"Player"),d.createElement("span",{style:{whiteSpace:"nowrap"}},d.createElement("span",{className:"quiz-home__account-avatar__name__level__icon fa fa-shield"}),d.createElement("span",{className:"quiz-home__account-avatar__name__level"},"LVL ",t.level))),d.createElement("div",{className:"quiz-home__account-avatar__progress"},d.createElement("div",{className:"quiz-home__account-avatar__progress__bar",style:{width:"".concat(Math.ceil(100*e.xp/t.maxXP),"%")}}))))}}]),n}(d.Component),V=function(e){c(n,e);var t=W(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).componentDidMount=function(){r.state.showLogin&&r.focusInput(),document.addEventListener("mousedown",r.onOutsideAreaMouseClick)},r.onOutsideAreaMouseClick=function(e){r.clickAreaRef.current&&!r.clickAreaRef.current.contains(e.target)&&r.state.showLogin&&r.hideLoginBox()},r.hideLoginBox=function(){r.setState({showLogin:!1,tab:"login"})},r.focusInput=function(){setTimeout((function(){var e=document.querySelector(".quiz-home__account-login__email");e&&e.focus()}),100)},r.onChangeTab=function(e){r.setState({tab:e,error:null})},r.onEmailChange=function(e){return r.setState({email:e,error:null})},r.onPasswordChange=function(e){return r.setState({password:e,error:null})},r.onPassword2Change=function(e){return r.setState({password2:e,error:null})},r.onKeyPress=function(e,t){if("Enter"===t)switch(e){case"login":return void r.onLogin();case"signup":return void r.onSignup()}},r.isValidEmail=function(e){return!!(e+"").match(/([^\s]+\s*(@|\[\s*(@|at)\s*\])\s*[^\s]+)/g,"")},r.onLogin=function(){var e=r.state,t=e.email,n=e.password,o=e.error;if(!t)return r.setState({error:"Please enter your email address"});if(!n)return r.setState({error:"Please enter your password"});o&&r.setState({error:null});var a=r.props.isInGame?null:"account";r.props.dispatch(function(e,t,n){return function(r,o){g().post("/account/login",{email:e,password:t}).then((function(e){var t=e.data;"success"===t.status?(r({type:"ACCOUNT_LOGIN",payload:{account:t.account,token:t.token}}),n&&r(k(n)),localStorage.setItem("SONGLIO_TOKEN",t.token)):alertify.error(t.message)})).catch((function(e){console.log(e.response.data),alertify.error(e.response.data.message)}))}}(t,n,a)),B("login")},r.onSignup=function(){var e=r.state,t=e.email,n=e.password,o=e.password2,a=e.error;if(!t)return r.setState({error:"Please enter your email address"});if(!r.isValidEmail(t))return r.setState({error:"Please enter a valid email address"});if(!n)return r.setState({error:"Please choose a password"});if(!o)return r.setState({error:"Please confirm your password"});if(n!==o)return r.setState({error:"Your passwords donât match!"});a&&r.setState({error:null});var i=r.props.isInGame?null:"account";r.props.dispatch(function(e,t,n){return function(r,o){g().post("/account/signup",{email:e,password:t}).then((function(e){var t=e.data;"success"===t.status?(r({type:"ACCOUNT_LOGIN",payload:{account:t.account,token:t.token}}),n&&r(k(n)),localStorage.setItem("SONGLIO_TOKEN",t.token)):alertify.error(t.message)}
2)).catch((function(e){console.log(e),alertify.error(e)}))}}(t,n,i)),B("signup")},r.onPasswordReset=function(){var e=r.state,t=e.email,n=e.error;if(!t)return r.setState({error:"Please enter your email address"});n&&r.setState({error:null}),r.props.dispatch(function(e,t){return function(n,r){g().post("/account/password/recover",{email:e}).then((function(e){var n=e.data;"success"===n.status?(alertify.success("Password reset email sent"),t&&t()):alertify.error(n.message)})).catch((function(e){console.log(e.response.data),alertify.error(e.response.data.message)}))}}(t,(function(){r.hideLoginBox(),B("passwordReset")})))},r.onNavItemClick=function(){r.state.showLogin||r.setState({showLogin:!0})},r.state={showLogin:!1,tab:"login",email:"",password:"",password2:"",error:null},r.clickAreaRef=d.createRef(),r}return i(n,[{key:"componentDidUpdate",value:function(e,t){this.state.showLogin&&!t.showLogin&&this.focusInput()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onOutsideAreaMouseClick)}},{key:"render",value:function(){var e=this.state,t=e.showLogin,n=e.tab,r=this.props.homePage;return d.createElement(d.Fragment,null,d.createElement("div",{className:"quiz-home__nav__item --login",onClick:this.onNavItemClick},"Login / Signup"),d.createElement("div",{ref:this.clickAreaRef,className:"quiz-home__account-login ".concat(t?"--show":""," ").concat(r?"--homepage":"")},d.createElement("span",{className:"quiz-home__account-login__close fa fa-close",onClick:this.hideLoginBox}),"signup"===n?d.createElement("div",{className:"quiz-home__account-login__box"},d.createElement("div",{className:"quiz-home__account-login__title"},"Sign up"),d.createElement("div",{className:"quiz-home__account-login__subtitle"},"Sign up to track your progress, earn coins and customise your avatars!"),d.createElement(I,{className:"quiz-home__account-login__input",label:"Your details:",placeholder:"Email",value:this.state.email,onChange:this.onEmailChange}),d.createElement(I,{className:"quiz-home__account-login__input",type:"password",placeholder:"Password",value:this.state.password,onChange:this.onPasswordChange}),d.createElement(I,{className:"quiz-home__account-login__input",type:"password",placeholder:"Confirm password",value:this.state.password2,onChange:this.onPassword2Change,onKeyPress:this.onKeyPress.bind(this,"signup")}),!!this.state.error&&d.createElement(D,{iconClass:"info-circle",className:"quiz-home__account-login__error",content:this.state.error,status:"error"}),d.createElement(A,{primary:!0,className:"quiz-home__account-login__submit",label:"Sign up",onClick:this.onSignup}),d.createElement("div",{className:"quiz-home__account-login__switch-tab"},"Got an account? ",d.createElement("span",{onClick:this.onChangeTab.bind(this,"login")},"Log in"))):"login"===n?d.createElement("div",{className:"quiz-home__account-login__box"},d.createElement("div",{className:"quiz-home__account-login__title"},"Log in"),d.createElement("div",{className:"quiz-home__account-login__subtitle"},"Log in to see your stats and access all your Songlio account benefits!"),d.createElement(I,{className:"quiz-home__account-login__input quiz-home__account-login__email",label:"Login details:",placeholder:"Email",value:this.state.email,onChange:this.onEmailChange}),d.createElement(I,{className:"quiz-home__account-login__input",type:"password",placeholder:"Password",value:this.state.password,onChange:this.onPasswordChange,onKeyPress:this.onKeyPress.bind(this,"login")}),!!this.state.error&&d.createElement(D,{iconClass:"info-circle",className:"quiz-home__account-login__error",content:this.state.error,status:"error"}),d.createElement(A,{primary:!0,className:"quiz-home__account-login__submit",label:"Log in",onClick:this.onLogin}),d.createElement("div",{className:"quiz-home__account-login__switch-tab",style:{marginBottom:10}},d.createElement("span",{onClick:this.onChangeTab.bind(this,"password")},"Reset password")),d.createElement("div",{className:"quiz-home__account-login__switch-tab"},"No account? ",d.createElement("span",{onClick:this.onChangeTab.bind(this,"signup")},"Sign up"))):"password"===n?d.createElement("div",{className:"quiz-home__account-login__box"},d.createElement("div",{className:"quiz-home__account-login__title"},"Reset password"),d.createElement("div",{className:"quiz-home__account-login__subtitle"},"Enter your email address and we'll send you a password reset link."),d.createElement(I,{className:"quiz-home__account-login__input",label:"Email address:",placeholder:"Email",value:this.state.email,onChange:this.onEmailChange}),!!this.state.error&&d.createElement(D,{iconClass:"info-circle",className:"quiz-home__account-login__error",content:this.state.error,status:"error"}),d.createElement(A,{primary:!0,className:"quiz-home__account-login__submit",label:"Reset password",onClick:this.onPasswordReset}),d.createElement("div",{className:"quiz-home__account-login__switch-tab"},d.createElement("span",{onClick:this.onChangeTab.bind(this,"login")},"Back to login"))):null))}}]),n}(d.Component);function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}var $=function(e){c(n,e);var t=Q(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).onLogout=function(){r.props.dispatch((function(e,t){e({type:"EXIT_QUIZ_BUILDER"})}))},r.onToggleSideMenu=function(){return r.setState({sideMenu:!r.state.sideMenu})},r.state={sideMenu:!1},r}return i(n,[{key:"render",value:function(){return[d.createElement("div",{key:"nav-bar",className:"quiz-builder__nav"},d.createElement("div",{className:"quiz-builder__nav__left"},d.createElement("div",{className:"quiz-builder__nav__menu__icon",onClick:this.onToggleSideMenu}),d.createElement("div",{className:"quiz-builder__nav__title"},"Songlio")),d.createElement("div",{className:"quiz-builder__nav__right"},d.createElement("a",{href:"https://forms.gle/LE6XR43PV2WZYtmp6",target:"_blank",className:"quiz-builder__nav__feedback"},"Feedback"),d.createElement(A,{primary:!0,label:"Exit",onClick:this.onLogout}),d.createElement(H,{onLeave:this.onLogout}))),d.createElement(Z,{key:"side-menu",show:this.state.sideMenu,onToggleSideMenu:this.onToggleSideMenu,onInstructionsClick:this.onInstructionsClick,onLogout:this.onLogout})]}}]),n}(d.Component),Z=function(e){c(n,e);var t=Q(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n,[{key:"render",value:function(){return d.createElement("section",{className:"quiz-builder__side-menu"},d.createElement("div",{className:"quiz-builder__side-menu__backdrop --".concat(this.props.show?"show":"hide"),onClick:this.props.onToggleSideMenu}),d.createElement("div",{className:"quiz-builder__side-menu__container --".concat(this.props.show?"show":"hide")},d.createElement("div",{className:"quiz-builder__side-menu__header"},d.createElement("div",{className:"quiz-builder__side-menu__icon",onClick:this.props.onToggleSideMenu}),d.createElement("div",{className:"quiz-builder__side-menu__logo",onClick:this.props.onToggleSideMenu},"Songlio")),d.createElement("div",{className:"quiz-builder__side-menu__body"},d.createElement("a",{href:"https://forms.gle/LE6XR43PV2WZYtmp6",target:"_blank",className:"quiz-builder__side-menu__feedback"},"Feedback"),d.createElement(A,{primary:!0,label:"Exit",onClick:this.props.onLogout})),d.createElement("div",{className:"quiz-builder__side-menu__footer"},"© ",(new Date).getFullYear()," Encore Technologies Limited, All Rights Reserved")))}}]),n}(d.Component);function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(2571),n(5901),n(252),n(5374),n(5849),n(4009),n(2699),n(9785),n(2410),n(911);var X=n(6666),J=n.n(X);function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?ee(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ne=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;return o(this,a),(t=r.call(this,e)).onSearchInputChange=function(e){return t.setState({query:e})},t.onSearch=_(w().mark((function e(){var n,r,o,a;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.state.query){e.next=3;break}return e.abrupt("return");case 3:return r=[],e.prev=4,e.next=7,g().get("https://itunes.apple.com/search?term=".concat(n,"&limit=20&country=gb&media=music&entity=musicTrack"));case 7:o=e.sent,a=o.data.results,console.log(a.filter((function(e){return!e.previewUrl})).length,"missing tracks from API"),r=(r=a.filter((function(e){return!!e.previewUrl})).map((function(e){return{song:e.trackName,album:e.collectionName,artist:e.artistName,url:e.previewUrl,image:e.artworkUrl100}}))).slice(0,10),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),console.error(e.t0);case 17:t.setState({songs:r});case 18:case"end":return e.stop()}}),e,null,[[4,14]])}))),t.onSaveSong=function(){var e=t.state.song;e.song=e.song.trim(),t.props.onAddSong(e),t.setState({query:"",song:null,songs:[]})},t.onCancelSong=function(){t.setState({query:"",song:null,songs:[]})},t.onKeyPress=function(e){"Enter"===e&&t.onSearch()},t.selectSong=function(e){var n=te(te({},e),{},{song:e.song.replace(/\([^)]*\)/g,"").replace(/[^a-zA-Z0-9\s\-\&]/g,"")});t.setState({song:n},(function(){J()(t.refs["confirm-song"],{offset:-90,align:"top",duration:400})}))},t.startSong=function(){t.audioPlayer?(t.audioPlayer.volume=.4,t.audioPlayer.play()):(console.log("audio player not there!"),window.alert("Sorry, something went wrong with this track. Please try reloading the page."))},t.onSongNameChange=function(e){var n=e.replace(/\([^)]*\)/g,"").replace(/[^a-zA-Z0-9\s\-\&]/g,"");t.state.song.oldName?t.setState({song:te(te({},t.state.song),{},{song:n})}):t.setState({song:te(te({},t.state.song),{},{oldName:t.state.song.song,song:n})})},t.state={query:"",song:null,songs:[]},t}return i(a,[{key:"componentDidUpdate",value:function(e,t){!this.state.song||t.song&&t.song.url===this.state.song.url||this.startSong()}},{key:"render",value:function(){var e=this,t=this.state.song;return d.createElement("div",{className:"quiz-builder__song-picker"},d.createElement("div",{className:"quiz-builder__song-picker__search"},d.createElement("div",{className:"quiz-builder__song-picker__search__label"},"Song name:"),d.createElement("div",{className:"quiz-builder__song-picker__search__input"},d.createElement(I,{placeholder:"Song / artist",value:this.state.query,onChange:this.onSearchInputChange,onKeyPress:this.onKeyPress}),d.createElement(A,{secondary:!0,label:"Search",onClick:this.onSearch})),this.state.songs.length>0&&d.createElement("div",{className:"quiz-builder__song-picker__search__list"},this.state.songs.map((function(t){return d.createElement("div",{className:"quiz-builder__song-picker__search__item",key:t.url,onClick:e.selectSong.bind(e,t)},d.createElement("span",{className:"quiz-builder__song-picker__search__item__name"},t.song)," - ",t.artist)})))),!!t&&d.createElement("div",{ref:"confirm-song",className:"quiz-builder__song-picker__result"},d.createElement("div",{className:"quiz-builder__song-picker__result__label"},"Confirm Song:"),d.createElement("div",{className:"quiz-builder__song-picker__result__content"},d.createElement("div",{className:"quiz-builder__song-picker__result__player"},d.createElement("div",{className:"quiz-builder__song-picker__result__player__image",style:{backgroundImage:"url(".concat(t.image,")")}}),d.createElement("div",{className:"quiz-builder__song-picker__result__player__content"},d.createElement("div",{className:"quiz-builder__song-picker__result__player__name"},t.oldName||t.song),d.createElement("div",{className:"quiz-builder__song-picker__result__player__artist"},t.artist),d.createElement("audio",{ref:function(t){return e.audioPlayer=t},className:"quiz-builder__song-picker__result__player__audio",key:t.url,controls:!0},d.createElement("source",{src:t.url,type:"audio/mpeg"}),"Your browser does not support the audio element."))),d.createElement(I,{containerClass:"quiz-builder__song-picker__result__input",label:"Confirm name:",placeholder:"Song name",value:t.song,onChange:this.onSongNameChange}),d.createElement("div",{className:"quiz-builder__song-picker__result__footer"},d.createElement(A,{className:"quiz-builder__song-picker__result__cancel",link:!0,label:"Cancel",onClick:this.onCancelSong}),d.createElement(A,{className:"quiz-builder__song-picker__result__submit",primary:!0,label:"Add song",onClick:this.onSaveSong})))))}}]),a}(d.Component);function re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}var oe=function(e){c(n,e);var t=re(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n,[{key:"render",value:function(){var e=this,t=this.props.songs;return d.createElement("div",{className:"quiz-builder__song-list"},d.createElement("div",{className:"quiz-builder__song-list__title"},"Your Quiz:"),d.createElement("div",{className:"quiz-builder__song-list__description"},d.createElement("strong",null,"Please note:")," Song order is always randomised
2so the order you add them in is irrelevant."),d.createElement("div",{className:"quiz-builder__song-list__list"},t.map((function(t,n){return d.createElement(ae,{key:"song-".concat(n),index:n,song:t,onRemove:e.props.onRemoveSong})}))))}}]),n}(d.Component),ae=function(e){c(n,e);var t=re(n);function n(){var e;o(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).onRemove=function(){return e.props.onRemove(e.props.index)},e}return i(n,[{key:"render",value:function(){var e=this,t=this.props.song;return d.createElement("div",{className:"quiz-builder__song-list__item"},d.createElement("div",{className:"quiz-builder__song-list__item__image",style:{backgroundImage:"url(".concat(t.image,")")}}),d.createElement("div",{className:"quiz-builder__song-list__item__content"},d.createElement("div",{className:"quiz-builder__song-list__item__name"},t.oldName||t.song),d.createElement("div",{className:"quiz-builder__song-list__item__artist"},t.artist),d.createElement("audio",{ref:function(t){return e.audioPlayer=t},className:"quiz-builder__song-list__item__audio",key:t.url,controls:!0},d.createElement("source",{src:t.url,type:"audio/mpeg"}),"Your browser does not support the audio element."),d.createElement("button",{className:"quiz-builder__song-list__item__delete",onClick:this.onRemove}
2,d.createElement("span",{className:"fa fa-trash"}))))}}]),n}(d.Component);var ie=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;o(this,a),(t=r.call(this,e)).onNameChange=function(e){return t.setState({name:e,error:null})},t.onCodeChange=function(e){return t.setState({code:e.trim()})},t.onAddSong=function(e){return t.setState({songs:t.state.songs.concat([e]),error:null})},t.onRemoveSong=function(e){t.setState({songs:t.state.songs.filter((function(t,n){return n!==e})),error:null})},t.onSaveQuiz=function(){var e=null,n=t.props.account,r=t.props.quiz;if(t.state.name?window.isAdmin&&!t.state.code?e="Please enter a quiz ID":t.state.songs.length<3?e="Please add at least 3 songs to create a quiz!":!r||r.custom||window.isAdmin||(e="Unable to save the quiz: please try again"):e="Please enter a quiz name",e)return t.setState({error:e});t.state.error&&t.setState({error:null});var o={name:t.state.name,code:t.state.code,songs:t.state.songs,custom:!window.isAdmin};r.thumbnail||(o.thumbnail=o.songs[0].image),n&&n.id&&(o.account=n.id),t.props.dispatch(function(e){return function(){var t=_(w().mark((function t(n,r){var o,a;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g().post("/quiz/solo/save",{quiz:e});case 2:o=t.sent,(a=o.data)&&200===a.status?(alertify.success("Saved"),n({type:"CREATE_QUIZ_BUILDER",payload:{quiz:a.quiz}})):500===a.status&&alertify.error(a.error);case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}(o))};var n=e.quiz;return t.state={code:n.code||"",name:n.name||"",songs:n.songs||[],error:null},t}return i(a,[{key:"componentDidUpdate",value:function(e){this.props.quiz.code!==e.quiz.code&&this.setState({code:this.props.quiz.code})}},{key:"render",value:function(){var e=this.props.dispatch,t=this.props.quiz,n=!!window.isAdmin,r=t.code&&"new"!==t.code;return d.createElement("div",{ref:"game",className:"quiz-builder"},d.createElement($,{dispatch:e,quiz:t}),d.createElement("div",{className:"quiz-builder__container container"},d.createElement("div",{className:"quiz-builder__body"},d.createElement("div",{className:"quiz-builder__title"},d.createElement("span",{className:"quiz-builder__title__new"},"NEW!"),"Create your own Quiz"),d.createElement("div",{className:"quiz-builder__description"},"Challenge your friends to play a music quiz created by you."),d.createElement(I,{label:"Quiz name:",value:this.state.name,containerClass:"quiz-builder__input",onChange:this.onNameChange}),n&&d.createElement(I,{label:"Quiz ID:",value:this.state.code,containerClass:"quiz-builder__input",onChange:this.onCodeChange}),d.createElement(ne,{songs:this.state.songs,onAddSong:this.onAddSong}),!!this.state.songs.length&&d.createElement(oe,{songs:this.state.songs,onRemoveSong:this.onRemoveSong}),!!r&&d.createElement("div",{className:"quiz-builder__publish-link"},d.createElement(D,{iconClass:"info",content:d.createElement("div",{className:"quiz-builder__publish-link__content"},"Your quiz is now ",d.createElement("strong",null,"Published!")," Share it: ",d.createElement("a",{href:"https://songl.io?quiz=".concat(t.code),target:"_blank"},"songl.io?quiz=",t.code)),status:"success"})),!!this.state.error&&d.createElement(D,{iconClass:"info",content:this.state.error,status:"error"}),!!this.state.songs.length&&d.createElement("div",{className:"quiz-builder__save"},d.createElement(A,{primary:!0,label:"Save Quiz",onClick:this.onSaveQuiz}),!!t.token&&d.createElement("div",{className:"quiz-builder__edit-link"},"Save edit link: ",d.createElement("a",{href:"https://songl.io?edit=".concat(t.code,"&token=").concat(t.token),target:"_blank"},"songl.io?edit=",t.code,"&token=",t.token)))),d.createElement("div",{className:"solo-game__quiz-list__create"},d.createElement("div",{className:"solo-game__quiz-list__create__title"},"How it works"),d.createElement("div",{className:"solo-game__quiz-list__create__description"},"Challenge your friends to play a music quiz created by you."),d.createElement("div",{className:"solo-game__quiz-list__create__list"},d.createElement("div",{className:"solo-game__quiz-list__create__list__title"},"ð¶ ABC, Easy as 1-2-3!"),d.createElement("div",{className:"solo-game__quiz-list__create__list__item"},"1. ð¤ Name your quiz"),d.createElement("div",{className:"solo-game__quiz-list__create__list__item"},"2. ð¤ Add songs"),d.createElement("div",{className:"solo-game__quiz-list__create__list__item"},"3. ð Share quiz link")))),d.createElement("footer",{className:"quiz-builder__footer"},"© ",(new Date).getFullYear()," Encore Technologies Limited, All Rights Reserved"))}}]),a}(d.Component),se=n(1650),ce=n.n(se);function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?ue(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;"undefined"!=typeof mixpanelTracking&&mixpanelTracking&&"undefined"!=typeof mixpanel?(t=le(le({},t),{},{"Current URL":document.URL}),mixpanel.track(e,t,n)):(console.log("Mixpanel: ".concat(e)),console.log(t),n&&n())}function pe(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}n(5610),n(7460),n(2189),n(1047),n(5769),n(4078),n(1882),n(2482),n(5163),n(6e3),n(2759),n(895),n(2264);var de=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){return o(this,a),r.apply(this,arguments)}return i(a,[{key:"componentDidMount",value:function(){var e;this.props.disableScrollingHtml&&this.props.show&&(e=document.getElementById("footer-fix-container")||document.getElementById("content"))&&"undefined"!=typeof window&&window&&(window.scrollPosition=window.pageYOffset,e.style.top=-window.scrollPosition+"px",e.classList.add("stop-scroll-fix"),document.getElementById("footer-fix-footer")&&(document.getElementById("footer-fix-footer").style.display="none"))}},{key:"componentWillUnmount",value:function(){this.props.disableScrollingHtml&&function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,n=t?document.getElementById(t):document.getElementById("footer-fix-container")||document.getElementById("content");n&&"undefined"!=typeof window&&window&&(n.classList.remove("stop-scroll-fix"),window.scrollTo(0,window.scrollPosition||0),n.style.top=0,e?setTimeout((function(e){window.scrollPosition&&(window.scrollTo(0,window.scrollPosition||0),window.scrollPosition=0)}),50):window.scrollPosition=0,document.getElementById("footer-fix-footer")&&(document.getElementById("footer-fix-footer").style.display="block"))}()}},{key:"render",value:function(){return d.createElement("div",{className:"modal-container"},d.createElement(ce(),{id:this.props.id||"",show:this.props.show,onHide:this.props.onHide||function(){},keyboard:!1!==this.props.keyboard,container:this,backdrop:this.props.backdrop||!0,"aria-labelledby":"contained-modal-title"},this.props.title?d.createElement(ce().Header,null,d.createElement(ce().Title,{id:"contained-modal-title"},d.createElement("span",null,this.props.titleIcon?d.createElement("i",{className:"modal-title-icon fa fa-lg fa-"+this.props.titleIcon,"aria-hidden":"true"}):null,this.props.title))):null,d.createElement(ce().Body,null,this.props.showCloseButton?d.createElement("span",{className:"modal-close-button",onClick:this.props.onHide},d.createElement("i",{className:"fa fa-times"})):null,this.props.children)))}}]),a}(d.Component);var he=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){return o(this,a),r.apply(this,arguments)}return i(a,[{key:"render",value:function(){return d.createElement(de,{id:"Instructions",show:!0,onHide:this.props.onClose},d.createElement("div",{className:"solo-game__info"},d.createElement("div",{className:"solo-game__info__close fa fa-times",onClick:this.props.onClose}),d.createElement("div",{className:"solo-game__info__title"},"Songlio"),d.createElement("div",{className:"solo-game__info__subtitle"},"How to play:"),d.createElement("ol",null,d.createElement("li",null,"Weâve prepared a series of songs for you (based on the ",d.createElement("strong",null,"quiz")," you selected)"),d.createElement("li",null,"A ",d.createElement("strong",null,"20 second clip")," from the first song will start"),d.createElement("li",null,"As soon as you know the song, type the ",d.createElement("strong",null,"song name")," into the guess box (bottom right corner) and hit enter")),d.createElement("div",{className:"solo-game__info__subtitle"},"Scoring:"),d.createElement("ul",null,d.createElement("li",null,"â±ï¸ Weâll add up the total time it takes you to guess all the songs!"),d.createElement("li",null,"â If you canât guess a song, the maximum time will be added to your score!"),d.createElement("li",null,"ð Compete to see if you can get onto the ",d.createElement("strong",null,"Songlio leaderboard"),"! Only the fastest times will make it!")),d.createElement("div",{className:"solo-game__info__footer"},d.createElement(A,{primary:!0,label:"Got it",onClick:this.props.onClose}))))}}]),a}(d.Component);function me(e,t){return function(n,r){n({type:"JOIN_SOLO_ROOM",payload:{room:"single-player",player:{id:"player",name:e,avatar:t}}})}}function ye(e,t,n,r){return function(o,a){o({type:"SET_LOADING"}),g().get("/quiz/solo/list/".concat(e||"corresponding","?page=").concat(t,"&quizId=").concat(n,"&search=").concat(r)).then((function(t){var n=t.data;if(n.quizzes&&n.quizzes.data){var r={totalQuizzes:n.quizzes.totalQuizzes,totalPages:n.quizzes.totalPage,currentPage:n.quizzes.currentPage,type:e||"corresponding"};o({type:"LOAD_SOLO_QUIZZES",payload:{info:r,quizzes:n.quizzes.data,type:e||"all"}}),o({type:"UNSET_LOADING"})}else alertify.error("Something went wrong!"),o({type:"UNSET_LOADING"})}
2)).catch((function(e){console.log(e),alertify.error("Something went wrong!"),o({type:"UNSET_LOADING"})}))}}function ge(){return function(e,t){e({type:"SOLO_QUIZ_RESTART_SAME"}),e(ve())}}function ve(){return function(e,t){var n=t().soloQuiz;g().get("/quiz/solo/".concat(n.id,"/rankings")).then((function(t){var n=t.data;n.rankings?e({type:"LOAD_SOLO_QUIZ_RANKINGS",payload:{rankings:n.rankings}}):alertify.error("Something went wrong!")})).catch((function(e){console.log(e),alertify.error("Something went wrong!")}))}}n(9217),n(3526);var _e=n(4682),be=n.n(_e),we="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),Ee=new Uint8Array(16);function ke(){if(!we)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return we(Ee)}for(var Se=[],xe=0;xe<256;++xe)Se[xe]=(xe+256).toString(16).substr(1);const Ce=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||ke)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var a=0;a<16;++a)t[r+a]=o[a];return t||function(e,t){var n=t||0,r=Se;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}(o)};function Ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oe(e,t,n){return t&&Ne(e.prototype,t),n&&Ne(e,n),e}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ze(){return ze=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ze.apply(this,arguments)}function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(n),!0).forEach((function(t){Te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ae(e){return Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ae(e)}function qe(e,t){return qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qe(e,t)}var Me="__react_tooltip_hide_event",Ie="__react_tooltip_rebuild_event",De="__react_tooltip_show_event",je=function(e,t){var n;"function"==typeof window.CustomEvent?n=new window.CustomEvent(e,{detail:t}):(n=document.createEvent("Event")).initEvent(e,!1,!0,t),window.dispatchEvent(n)},Le=function(e,t){var n=this.state.show,r=this.props.id,o=this.isCapture(t.currentTarget),a=t.currentTarget.getAttribute("currentItem");o||t.stopPropagation(),n&&"true"===a?e||this.hideTooltip(t):(t.currentTarget.setAttribute("currentItem","true"),Be(t.currentTarget,this.getTargetArray(r)),this.showTooltip(t))},Be=function(e,t){for(var n=0;n<t.length;n++)e!==t[n]?t[n].setAttribute("currentItem","false"):t[n].setAttribute("currentItem","true")},Ue={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(e,t,n){this.id in e?e[this.id][t]=n:Object.defineProperty(e,this.id,{configurable:!0,value:Te({},t,n)})},get:function(e,t){var n=e[this.id];if(void 0!==n)return n[t]}},Fe=function(e,t,n){var r=t.respectEffect,o=void 0!==r&&r,a=t.customEvent,i=void 0!==a&&a,s=this.props.id,c=n.target.getAttribute("data-tip")||null,u=n.target.getAttribute("data-for")||null,l=n.target;if(!this.isCustomEvent(l)||i){var f=null==s&&null==u||u===s;if(null!=c&&(!o||"float"===this.getEffect(l))&&f){var p=function(e){var t={};for(var n in e)"function"==typeof e[n]?t[n]=e[n].bind(e):t[n]=e[n];return t}(n);p.currentTarget=l,e(p)}}},Ye=function(e,t){var n={};return e.forEach((function(e){var r=e.getAttribute(t);r&&r.split(" ").forEach((function(e){return n[e]=!0}))}
2)),n},We=function(){return document.getElementsByTagName("body")[0]};function He(e,t,n,r,o,a,i){for(var s=Ge(n),c=s.width,u=s.height,l=Ge(t),f=l.width,p=l.height,d=Ve(e,t,a),h=d.mouseX,m=d.mouseY,y=Qe(a,f,p,c,u),g=$e(i),v=g.extraOffsetX,_=g.extraOffsetY,b=window.innerWidth,w=window.innerHeight,E=Ze(n),k=E.parentTop,S=E.parentLeft,x=function(e){var t=y[e].l;return h+t+v},C=function(e){var t=y[e].t;return m+t+_},N=function(e){return function(e){return x(e)<0}(e)||function(e){return function(e){var t=y[e].r;return h+t+v}(e)>b}(e)||function(e){return C(e)<0}(e)||function(e){return function(e){var t=y[e].b;return m+t+_}(e)>w}(e)},O=function(e){return!N(e)},T=["top","bottom","left","right"],z=[],P=0;P<4;P++){var R=T[P];O(R)&&z.push(R)}var A,q=!1,M=o!==r;return O(o)&&M?(q=!0,A=o):z.length>0&&N(o)&&N(r)&&(q=!0,A=z[0]),q?{isNewState:!0,newState:{place:A}}:{isNewState:!1,position:{left:parseInt(x(r)-S,10),top:parseInt(C(r)-k,10)}}}var Ge=function(e){var t=e.getBoundingClientRect(),n=t.height,r=t.width;return{height:parseInt(n,10),width:parseInt(r,10)}},Ve=function(e,t,n){var r=t.getBoundingClientRect(),o=r.top,a=r.left,i=Ge(t),s=i.width,c=i.height;return"float"===n?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:a+s/2,mouseY:o+c/2}},Qe=function(e,t,n,r,o){var a,i,s,c;return"float"===e?(a={l:-r/2,r:r/2,t:-(o+3+2),b:-3},s={l:-r/2,r:r/2,t:15,b:o+3+2+12},c={l:-(r+3+2),r:-3,t:-o/2,b:o/2},i={l:3,r:r+3+2,t:-o/2,b:o/2}):"solid"===e&&(a={l:-r/2,r:r/2,t:-(n/2+o+2),b:-n/2},s={l:-r/2,r:r/2,t:n/2,b:n/2+o+2},c={l:-(r+t/2+2),r:-t/2,t:-o/2,b:o/2},i={l:t/2,r:r+t/2+2,t:-o/2,b:o/2}),{top:a,bottom:s,left:c,right:i}},$e=function(e){var t=0,n=0;for(var r in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===r?n-=parseInt(e[r],10):"bottom"===r?n+=parseInt(e[r],10):"left"===r?t-=parseInt(e[r],10):"right"===r&&(t+=parseInt(e[r],10));return{extraOffsetX:t,extraOffsetY:n}},Ze=function(e){for(var t=e;t;){var n=window.getComputedStyle(t);if("none"!==n.getPropertyValue("transform")||"transform"===n.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function Ke(e,t,n,r){if(t)return t;if(null!=n)return n;if(null===n)return null;var o=/<br\s*\/?>/;return r&&"false"!==r&&o.test(e)?e.split(o).map((function(e,t){return d.createElement("span",{key:t,className:"multi-line"},e)})):e}function Xe(e){var t={};return Object.keys(e).filter((function(e){return/(^aria-\w+$|^role$)/.test(e)})).forEach((function(n){t[n]=e[n]})),t}function Je(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map((function(t){return e[t]}))}var et={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}};var tt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function nt(e,t){return e(t={exports:{}},t.exports),t.exports}var rt=function(e){return e&&e.Math==Math&&e},ot=rt("object"==typeof globalThis&&globalThis)||rt("object"==typeof window&&window)||rt("object"==typeof self&&self)||rt("object"==typeof tt&&tt)||function(){return this}()||Function("return this")(),at=function(e){try{return!!e()}catch(e){return!0}},it=!at((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),st={}.propertyIsEnumerable,ct=Object.getOwnPropertyDescriptor,ut={f:ct&&!st.call({1:2},1)?function(e){var t=ct(this,e);return!!t&&t.enumerable}:st},lt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ft={}.toString,pt=function(e){return ft.call(e).slice(8,-1)},dt="".split,ht=at((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==pt(e)?dt.call(e,""):Object(e)}:Object,mt=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},yt=function(e){return ht(mt(e))}
vendor: 4,752 bytes, line 2
2,gt=function(e){return"object"==typeof e?null!==e:"function"==typeof e},vt=function(e,t){if(!gt(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!gt(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!gt(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!gt(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},_t=function(e){return Object(mt(e))},bt={}.hasOwnProperty,wt=function(e,t){return bt.call(_t(e),t)},Et=ot.document,kt=gt(Et)&>(Et.createElement),St=function(e){return kt?Et.createElement(e):{}},xt=!it&&!at((function(){return 7!=Object.defineProperty(St("div"),"a",{get:function(){return 7}}).a})),Ct=Object.getOwnPropertyDescriptor,Nt={f:it?Ct:function(e,t){if(e=yt(e),t=vt(t,!0),xt)try{return Ct(e,t)}catch(e){}if(wt(e,t))return lt(!ut.f.call(e,t),e[t])}},Ot=function(e){if(!gt(e))throw TypeError(String(e)+" is not an object");return e},Tt=Object.defineProperty,zt={f:it?Tt:function(e,t,n){if(Ot(e),t=vt(t,!0),Ot(n),xt)try{return Tt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Pt=it?function(e,t,n){return zt.f(e,t,lt(1,n))}:function(e,t,n){return e[t]=n,e},Rt=function(e,t){try{Pt(ot,e,t)}catch(n){ot[e]=t}return t},At="__core-js_shared__",qt=ot[At]||Rt(At,{}),Mt=Function.toString;"function"!=typeof qt.inspectSource&&(qt.inspectSource=function(e){return Mt.call(e)});var It,Dt,jt,Lt=qt.inspectSource,Bt=ot.WeakMap,Ut="function"==typeof Bt&&/native code/.test(Lt(Bt)),Ft=nt((function(e){(e.exports=function(e,t){return qt[e]||(qt[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Yt=0,Wt=Math.random(),Ht=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Yt+Wt).toString(36)},Gt=Ft("keys"),Vt=function(e){return Gt[e]||(Gt[e]=Ht(e))},Qt={},$t="Object already initialized",Zt=ot.WeakMap;if(Ut||qt.state){var Kt=qt.state||(qt.state=new Zt),Xt=Kt.get,Jt=Kt.has,en=Kt.set;It=function(e,t){if(Jt.call(Kt,e))throw new TypeError($t);return t.facade=e,en.call(Kt,e,t),t},Dt=function(e){return Xt.call(Kt,e)||{}},jt=function(e){return Jt.call(Kt,e)}}else{var tn=Vt("state");Qt[tn]=!0,It=function(e,t){if(wt(e,tn))throw new TypeError($t);return t.facade=e,Pt(e,tn,t),t},Dt=function(e){return wt(e,tn)?e[tn]:{}},jt=function(e){return wt(e,tn)}}var nn,rn,on={set:It,get:Dt,has:jt,enforce:function(e){return jt(e)?Dt(e):It(e,{})},getterFor:function(e){return function(t){var n;if(!gt(t)||(n=Dt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},an=nt((function(e){var t=on.get,n=on.enforce,r=String(String).split("String");(e.exports=function(e,t,o,a){var i,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,u=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof t||wt(o,"name")||Pt(o,"name",t),(i=n(o)).source||(i.source=r.join("string"==typeof t?t:""))),e!==ot?(s?!u&&e[t]&&(c=!0):delete e[t],c?e[t]=o:Pt(e,t,o)):c?e[t]=o:Rt(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||Lt(this)}))})),sn=ot,cn=function(e){return"function"==typeof e?e:void 0},un=function(e,t){return arguments.length<2?cn(sn[e])||cn(ot[e]):sn[e]&&sn[e][t]||ot[e]&&ot[e][t]},ln=Math.ceil,fn=Math.floor,pn=function(e){return isNaN(e=+e)?0:(e>0?fn:ln)(e)},dn=Math.min,hn=function(e){return e>0?dn(pn(e),9007199254740991):0},mn=Math.max,yn=Math.min,gn=function(e){return function(t,n,r){var o,a=yt(t),i=hn(a.length),s=function(e,t){var n=pn(e);return n<0?mn(n+t,0):yn(n,t)}(r,i);if(e&&n!=n){for(;i>s;)if((o=a[s++])!=o)return!0}else for(;i>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},vn=(gn(!0),gn(!1)),_n=function(e,t){var n,r=yt(e),o=0,a=[];for(n in r)!wt(Qt,n)&&wt(r,n)&&a.push(n);for(;t.length>o;)wt(r,n=t[o++])&&(~vn(a,n)||a.push(n));return a},bn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wn=bn.concat("length","prototype"),En={f:Object.getOwnPropertyNames||function(e){return _n(e,wn)}},kn={f:Object.getOwnPropertySymbols},Sn=un("Reflect","ownKeys")||function(e){var t=En.f(Ot(e)),n=kn.f;return n?t.concat(n(e)):t},xn=function(e,t){for(var n=Sn(t),r=zt.f,o=Nt.f,a=0;a<n.length;a++){var i=n[a];wt(e,i)||r(e,i,o(t,i))}},Cn=/#|\.prototype\./,Nn=function(e,t){var n=Tn[On(e)];return n==Pn||n!=zn&&("function"==typeof t?at(t):!!t)},On=Nn.normalize=function(e){return String(e).replace(Cn,".").toLowerCase()},Tn=Nn.data={},zn=Nn.NATIVE="N",Pn=Nn.POLYFILL="P",Rn=Nn,An=Nt.f,qn=Array.isArray||function(e){return"Array"==pt(e)},Mn=un("navigator","userAgent")||"",In=ot.process,Dn=In&&In.versions,jn=Dn&&Dn.v8;jn?rn=(nn=jn.split("."))[0]<4?1:nn[0]+nn[1]:Mn&&(!(nn=Mn.match(/Edge\/(\d+)/))||nn[1]>
2=74)&&(nn=Mn.match(/Chrome\/(\d+)/))&&(rn=nn[1]);var Ln,Bn=rn&&+rn,Un=!!Object.getOwnPropertySymbols&&!at((function(){return!String(Symbol())||!Symbol.sham&&Bn&&Bn<41})),Fn=Un&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Yn=Ft("wks"),Wn=ot.Symbol,Hn=Fn?Wn:Wn&&Wn.withoutSetter||Ht,Gn=function(e){return wt(Yn,e)&&(Un||"string"==typeof Yn[e])||(Un&&wt(Wn,e)?Yn[e]=Wn[e]:Yn[e]=Hn("Symbol."+e)),Yn[e]},Vn=Gn("species"),Qn=function(e,t){var n;return qn(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!qn(n.prototype)?gt(n)&&null===(n=n[Vn])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},$n=[].push,Zn=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,a=6==e,i=7==e,s=5==e||a;return function(c,u,l,f){for(var p,d,h=_t(c),m=ht(h),y=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}(u,l,3),g=hn(m.length),v=0,_=f||Qn,b=t?_(c,g):n||i?_(c,0):void 0;g>v;v++)if((s||v in m)&&(d=y(p=m[v],v,h),e))if(t)b[v]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return v;case 2:$n.call(b,p)}else switch(e){case 4:return!1;case 7:$n.call(b,p)}return a?-1:r||o?o:b}},Kn={forEach:Zn(0),map:Zn(1),filter:Zn(2),some:Zn(3),every:Zn(4),find:Zn(5),findIndex:Zn(6),filterOut:Zn(7)},Xn=Object.keys||function(e){return _n(e,bn)},Jn=it?Object.defineProperties:function(e,t){Ot(e);for(var n,r=Xn(t),o=r.length,a=0;o>a;)zt.f(e,n=r[a++],t[n]);return e},er=un("document","documentElement"),tr=Vt("IE_PROTO"),nr=function(){},rr=function(e){return"<script>"+e+"<\/script>"},or=function(){try{Ln=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;or=Ln?function(e){e.write(rr("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Ln):((t=St("iframe")).style.display="none",er.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(rr("document.F=Object")),e.close(),e.F);for(var n=bn.length;n--;)delete or.prototype[bn[n]];return or()};Qt[tr]=!0;var ar=Object.create||function(e,t){var n;return null!==e?(nr.prototype=Ot(e),n=new nr,nr.prototype=null,n[tr]=e):n=or(),void 0===t?n:Jn(n,t)},ir=Gn("unscopables"),sr=Array.prototype;null==sr[ir]&&zt.f(sr,ir,{configurable:!0,value:ar(null)});var cr,ur,lr,fr=Kn.find,pr="find",dr=!0;pr in[]&&Array(1).find((function(){dr=!1})),function(e,t){var n,r,o,a,i,s=e.target,c=e.global,u=e.stat;if(n=c?ot:u?ot[s]||Rt(s,{}):(ot[s]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(i=An(n,r))&&i.value:n[r],!Rn(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;xn(a,o)}(e.sham||o&&o.sham)&&Pt(a,"sham",!0),an(n,r,a,e)}}({target:"Array",proto:!0,forced:dr},{find:function(e){return fr(this,e,arguments.length>1?arguments[1]:void 0)}}),sr[ir].find=!0;var hr,mr=function(e){e.hide=function(e){je(Me,{target:e})},e.rebuild=function(){je(Ie)},e.show=function(e){je(De,{target:e})},e.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},e.prototype.globalShow=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.showTooltip({currentTarget:t&&e.detail.target},!0)}},e.prototype.globalHide=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.hideTooltip({currentTarget:t&&e.detail.target},t)}}}(cr=function(e){e.prototype.bindWindowEvents=function(e){window.removeEventListener(Me,this.globalHide),window.addEventListener(Me,this.globalHide,!1),window.removeEventListener(Ie,this.globalRebuild),window.addEventListener(Ie,this.globalRebuild,!1),window.removeEventListener(De,this.globalShow),window.addEventListener(De,this.globalShow,!1),e&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},e.prototype.unbindWindowEvents=function(){window.removeEventListener(Me,this.globalHide),window.removeEventListener(Ie,this.globalRebuild),window.removeEventListener(
2De,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},e.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}(cr=function(e){e.prototype.isCustomEvent=function(e){return this.state.event||!!e.getAttribute("data-event")},e.prototype.customBindListener=function(e){var t=this,n=this.state,r=n.event,o=n.eventOff,a=e.getAttribute("data-event")||r,i=e.getAttribute("data-event-off")||o;a.split(" ").forEach((function(n){e.removeEventListener(n,Ue.get(e,n));var r=Le.bind(t,i);Ue.set(e,n,r),e.addEventListener(n,r,!1)})),i&&i.split(" ").forEach((function(n){e.removeEventListener(n,t.hideTooltip),e.addEventListener(n,t.hideTooltip,!1)}))},e.prototype.customUnbindListener=function(e){var t=this.state,n=t.event,r=t.eventOff,o=n||e.getAttribute("data-event"),a=r||e.getAttribute("data-event-off");e.removeEventListener(o,Ue.get(e,n)),a&&e.removeEventListener(a,this.hideTooltip)}}(cr=function(e){e.prototype.isCapture=function(e){return e&&"true"===e.getAttribute("data-iscapture")||this.props.isCapture||!1}}(cr=function(e){e.prototype.getEffect=function(e){return e.getAttribute("data-effect")||this.props.effect||"float"}}(cr=function(e){e.prototype.isBodyMode=function(){return!!this.props.bodyMode},e.prototype.bindBodyListener=function(e){var t=this,n=this.state,r=n.event,o=n.eventOff,a=n.possibleCustomEvents,i=n.possibleCustomEventsOff,s=We(),c=Ye(e,"data-event"),u=Ye(e,"data-event-off");null!=r&&(c[r]=!0),null!=o&&(u[o]=!0),a.split(" ").forEach((function(e){return c[e]=!0})),i.split(" ").forEach((function(e){return u[e]=!0})),this.unbindBodyListener(s);var l=this.bodyModeListeners={};for(var f in null==r&&(l.mouseover=Fe.bind(this,this.showTooltip,{}),l.mousemove=Fe.bind(this,this.updateTooltip,{respectEffect:!0}),l.mouseout=Fe.bind(this,this.hideTooltip,{})),c)l[f]=Fe.bind(this,(function(e){var n=e.currentTarget.getAttribute("data-event-off")||o;Le.call(t,n,e)}),{customEvent:!0});for(var p in u)l[p]=Fe.bind(this,this.hideTooltip,{customEvent:!0});for(var d in l)s.addEventListener(d,l[d])},e.prototype.unbindBodyListener=function(e){e=e||We();var t=this.bodyModeListeners;for(var n in t)e.removeEventListener(n,t[n])}}((lr=ur=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,Ae(t).call(this,e))).state={uuid:e.uuid||"t"+Ce(),place:e.place||"top",desiredPlace:e.place||"top",type:"dark",effect:"float",show:!1,border:!1,customColors:{},offset:{},extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:Xe(e),isEmptyTip:!1,disable:!1,possibleCustomEvents:e.possibleCustomEvents||"",possibleCustomEventsOff:e.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},n.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),n.mount=!0,n.delayShowLoop=null,n.delayHideLoop=null,n.delayReshow=null,n.intervalUpdateContent=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qe(e,t)}(t,e),Oe(t,null,[{key:"propTypes",get:function(){return{uuid:be().string,children:be().any,place:be().string,type:be().string,effect:be().string,offset:be().object,multiline:be().bool,border:be().bool,textColor:be().string,backgroundColor:be().string,borderColor:be().string,arrowColor:be().string,insecure:be().bool,class:be().string,className:be().string,id:be().string,html:be().bool,delayHide:be().number,delayUpdate:be().number,delayShow:be().number,event:be().string,eventOff:be().string,isCapture:be().bool,globalEventOff:be().string,getContent:be().any,afterShow:be().func,afterHide:be().func,overridePosition:be().func,disable:be().bool,scrollHide:be().bool,resizeHide:be().bool,wrapper:be().str
2ing,bodyMode:be().bool,possibleCustomEvents:be().string,possibleCustomEventsOff:be().string,clickable:be().bool}}}]),Oe(t,[{key:"bind",value:function(e){var t=this;e.forEach((function(e){t[e]=t[e].bind(t)}))}},{key:"componentDidMount",value:function(){var e=this.props,t=(e.insecure,e.resizeHide);this.bindListener(),this.bindWindowEvents(t),this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var e=this.tooltipRef;if(e){for(var t,n=e.parentNode;n.parentNode;)n=n.parentNode;switch(n.constructor.name){case"Document":case"HTMLDocument":case void 0:t=n.head;break;default:t=n}if(!t.querySelector("style[data-react-tooltip]")){var r=document.createElement("style");r.textContent='.__react_component_tooltip {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n left: -999em;\n opacity: 0;\n padding: 8px 21px;\n position: fixed;\n pointer-events: none;\n transition: opacity 0.3s ease-out;\n top: -999em;\n visibility: hidden;\n z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n}\n.__react_component_tooltip.show {\n opacity: 0.9;\n margin-top: 0;\n margin-left: 0;\n visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n bottom: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-bottom::before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n top: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-left::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n right: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip.place-right::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n left: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip .multi-line {\n display: block;\n padding: 2px 0;\n text-align: center;\n}',r.setAttribute("data-react-tooltip","true"),t.appendChild(r)}}}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(e){var t,n=[];if(e){var r=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t='[data-tip][data-for="'.concat(r,'"]')}else t="[data-tip]:not([data-for])";return Je(document.getElementsByTagName("*")).filter((function(e){return e.shadowRoot})).forEach((function(e){n=n.concat(Je(e.shadowRoot.querySelectorAll(t)))})),n.concat(Je(document.querySelectorAll(t)))}},{key:"bindListener",value:function(){var e=this,t=this.props,n=t.id,r=t.globalEventOff,o=t.isCapture,a=this.getTargetArray(n);a.forEach((function(t){null===t.getAttribute("currentItem")&&t.setAttribute("currentItem","false"),e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),this.isBodyMode()?this.bindBodyListener(a):a.forEach((function(t){var n=e.isCapture(t),r=e.getEffect(t);e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,n),t.addEventListener("focus",e.showTooltip,n),"float"===r&&t.addEventListener("mousemove",e.updateTooltip,n),t.addEventListener("mouseleave",e.hideTooltip,n),t.addEventListener("blur",e.hideTooltip,n))})),r&&(window.removeEventListener(r,this.hideTooltip),window.addEventListener(r,this.hideTooltip,o)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,n=t.id,r=t.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(n).forEac
2h((function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),r&&window.removeEventListener(r,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(e){var t=this.isCapture(e);e.removeEventListener("mouseenter",this.showTooltip,t),e.removeEventListener("mousemove",this.updateTooltip,t),e.removeEventListener("mouseleave",this.hideTooltip,t)}},{key:"getTooltipContent",value:function(){var e,t=this.props,n=t.getContent,r=t.children;return n&&(e=Array.isArray(n)?n[0]&&n[0](this.state.originTooltip):n(this.state.originTooltip)),Ke(this.state.originTooltip,r,e,this.state.isMultiline)}},{key:"isEmptyTip",value:function(e){return"string"==typeof e&&""===e||null===e}},{key:"showTooltip",value:function(e,t){if(this.tooltipRef){if(t&&!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget})))return;var n=this.props,r=n.multiline,o=n.getContent,a=e.currentTarget.getAttribute("data-tip"),i=e.currentTarget.getAttribute("data-multiline")||r||!1,s=e instanceof window.FocusEvent||t,c=!0;e.currentTarget.getAttribute("data-scroll-hide")?c="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(c=this.props.scrollHide),e&&e.currentTarget&&e.currentTarget.setAttribute&&e.currentTarget.setAttribute("aria-describedby",this.state.uuid);var u=e.currentTarget.getAttribute("data-place")||this.props.place||"top",l=s?"solid":this.getEffect(e.currentTarget),f=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},p=He(e,e.currentTarget,this.tooltipRef,u,u,l,f);p.position&&this.props.overridePosition&&(p.position=this.props.overridePosition(p.position,e,e.currentTarget,this.tooltipRef,u,u,l,f));var d=p.isNewState?p.newState.place:u;this.clearTimer();var h=e.currentTarget,m=this.state.show?h.getAttribute("data-delay-update")||this.props.delayUpdate:0,y=this,g=function(){y.setState({originTooltip:a,isMultiline:i,desiredPlace:u,place:d,type:h.getAttribute("data-type")||y.props.type||"dark",customColors:{text:h.getAttribute("data-text-color")||y.props.textColor||null,background:h.getAttribute("data-background-color")||y.props.backgroundColor||null,border:h.getAttribute("data-border-color")||y.props.borderColor||null,arrow:h.getAttribute("data-arrow-color")||y.props.arrowColor||null},effect:l,offset:f,html:(h.getAttribute("data-html")?"true"===h.getAttribute("data-html"):y.props.html)||!1,delayShow:h.getAttribute("data-delay-show")||y.props.delayShow||0,delayHide:h.getAttribute("data-delay-hide")||y.props.delayHide||0,delayUpdate:h.getAttribute("data-delay-update")||y.props.delayUpdate||0,border:(h.getAttribute("data-border")?"true"===h.getAttribute("data-border"):y.props.border)||!1,extraClass:h.getAttribute("data-class")||y.props.class||y.props.className||"",disable:(h.getAttribute("data-tip-disable")?"true"===h.getAttribute("data-tip-disable"):y.props.disable)||!1,currentTarget:h},(function(){c&&y.addScrollListener(y.state.currentTarget),y.updateTooltip(e),o&&Array.isArray(o)&&(y.intervalUpdateContent=setInterval((function(){if(y.mount){var e=y.props.getContent,t=Ke(a,"",e[0](),i),n=y.isEmptyTip(t);y.setState({isEmptyTip:n}),y.updatePosition()}}),o[1]))}))};m?this.delayReshow=setTimeout(g,m):g()}}},{key:"updateTooltip",value:function(e){var t=this,n=this.state,r=n.delayShow,o=n.disable,a=this.props.afterShow,i=this.getTooltipContent(),s=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!this.isEmptyTip(i)&&!o){var c=this.state.show?0:parseInt(r,10),u=function(){if(Array.isArray(i)&&i.length>0||i){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:s,show:!0},(function(){t.updatePosition(),n&&a&&a(e)}))}};clearTimeout(this.delayShowLoop),c?this.delayShowLoop=setTimeout(u,c):u()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},o=this.state.disable,a=r.isScroll,i=a?0:this.state.delayHide,s=this.props.afterHide,c=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(c)&&!o){if(t){var u=this.getTargetArray(this.props.id),l=u.some((function(t){return t===e.currentTarget}));if(!l||!this.state.show)return}e&&e.currentTarget&&e.currentTarget.removeAttribute&&e.currentTarget.removeAttribute("aria-describedby");var f=function(){var t=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},(function(){n.removeScrollListener(n.state.currentTarget),t&&s&&s(e)})))};this.clearTimer(),i?this.delayHideLoop=setTimeout(f,parseInt(i,10)):f()}}},{key:"hideTooltipOnScroll",value:function(e,t){this.hideTooltip(e,t,{isScroll:!0})}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"removeScrollListener",value:function(e){var t=this.isCapture(e);window.removeEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"updatePosition",value:function(){var e=this,t=this.state,n=t.currentEvent,r=t.currentTarget,o=t.place,a=t.desiredPlace,i=t.effect,s=t.offset,c=this.tooltipRef,u=He(n,r,c,o,a,i,s);if(u.position&&this.props.overridePosition&&(u.position=this.props.overridePosition(u.position,n,r,c,o,a,i,s)),u.isNewState)return this.setState(u.newState,(function(){e.updatePosition()}));c.style.left=u.position.left+"px",c.style.top=u.position.top+"px"}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"hasCustomColors",value:function(){var e=this;return Boolean(Object.keys(this.state.customColors).find((function(t){return"border"!==t&&e.state.customColors[t]}))||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var e=this,n=this.state,r=n.extraClass,o=n.html,a=n.ariaProps,i=n.disable,s=n.uuid,c=this.getTooltipContent(),u=this.isEmptyTip(c),l=function(e,t,n,r){return function(e,t){var n=t.text,r=t.background,o=t.border,a=t.arrow;return"\n \t.".concat(e," {\n\t color: ").concat(n,";\n\t background: ").concat(r,";\n\t border: 1px solid ").concat(o,";\n \t}\n\n \t.").concat(e,".place-top {\n margin-top: -10px;\n }\n .").concat(e,".place-top::before {\n border-top: 8px solid ").concat(o,";\n }\n .").concat(e,".place-top::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n bottom: -6px;\n left: 50%;\n margin-left: -8px;\n border-top-color: ").concat(a,";\n border-top-style: solid;\n border-top-width: 6px;\n }\n\n .").concat(e,".place-bottom {\n margin-top: 10px;\n }\n .").concat(e,".place-bottom::before {\n border-bottom: 8px solid ").concat(o,";\n }\n .").concat(e,".place-bottom::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n top: -6px;\n left: 50%;\n margin-left: -8px;\n border-bottom-color: ").concat(a,";\n border-bottom-style: solid;\n border-bottom-width: 6px;\n }\n\n .").concat(e,".place-left {\n margin-left: -10px;\n }\n .").concat(e,".place-left::before {\n border-left: 8px solid ").concat(o,";\n }\n .").concat(e,".place-left::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n right: -6px;\n top: 50%;\n margin-top: -4px;\n border-left-color: ").concat(a,";\n border-left-style: solid;\n border-left-width: 6px;\n }\n\n .").concat(e,".place-right {\n margin-left: 10px;\n }\n .").concat(e,".place-right::before {\n border-right: 8px solid ").concat(o,";\n }\n .").concat(e,".place-right::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n left: -6px;\n top: 50%;\n margin-top: -4px;\n border-right-color: ").concat(a,";\n border-right-style: solid;\n border-right-width: 6px;\n }\n ")}(e,function(e,t,n){var r=e.text,o=e.background,a=e.border,i=e.arrow?e.arrow:e.background,s=function(e){return et[e]?Re({},et[e]):void 0}(t);return r&&(s.text=r),o&&(s.background=o),n&&(s.border=a||("light"===t?"black":"white")),i&&(s.arrow=i),s}(t,n,r))}(this.state.uuid,this.state.customColors,this.state.type,this.state.border),f="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||i||u?"":" show")+(this.state.border?" border":"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom"
2:this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),p=this.props.wrapper;t.supportedWrappers.indexOf(p)<0&&(p=t.defaultProps.wrapper);var h=[f,r].filter(Boolean).join(" ");if(o){var m="".concat(c,'\n<style aria-hidden="true">').concat(l,"</style>");return d.createElement(p,ze({className:"".concat(h),id:this.props.id||s,ref:function(t){return e.tooltipRef=t}},a,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:m}}))}return d.createElement(p,ze({className:"".concat(h),id:this.props.id||s},a,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),d.createElement("style",{dangerouslySetInnerHTML:{__html:l},"aria-hidden":"true"}),c)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.ariaProps,r=Xe(e);return Object.keys(r).some((function(e){return r[e]!==n[e]}))?Re({},t,{ariaProps:r}):null}}]),t}(d.Component),Te(ur,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),Te(ur,"supportedWrappers",["div","span"]),Te(ur,"displayName","ReactTooltip"),(hr=cr=lr).prototype.bindRemovalTracker=function(){var e=this,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=t){var n=new t((function(t){for(var n=0;n<t.length;n++)for(var r=t[n],o=0;o<r.removedNodes.length;o++)if(r.removedNodes[o]===e.state.currentTarget)return void e.hideTooltip()}));n.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=n}},cr=void(hr.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)})||cr))||cr)||cr)||cr)||cr)||cr)||cr;const yr=mr;function gr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}var vr=function(e){c(n,e);var t=gr(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).onLogout=function(){window.SoundController&&window.SoundController.quiet(),r.props.dispatch((function(e,t){window.location.search&&(window.location=window.location.href.replace(window.location.search,"")),e({type:"LOGOUT"})}))},r.onInstructionsClick=function(){r.setState({sideMenu:!1,instructions:!0})},r.onCloseInstructions=function(){return r.setState({instructions:!1})},r.onToggleSideMenu=function(){return r.setState({sideMenu:!r.state.sideMenu})},r.state={sideMenu:!1,instructions:!1},r}return i(n,[{key:"render",value:function(){var e=!(!this.props.quiz||!this.props.quiz.id);return d.createElement(d.Fragment,null,d.createElement("div",{key:"nav-bar",className:"solo-game__nav"},d.createElement("div",{className:"solo-game__nav__left"},d.createElement("div",{className:"solo-game__nav__menu__icon",onClick:this.onToggleSideMenu}),d.createElement("div",{className:"solo-game__nav__title ".concat(e?"":"--clickable"),onClick:e?void 0:this.onLogout},"Songlio")),d.createElement("div",{className:"solo-game__nav__right"},d.createElement("a",{onClick:this.onInstructionsClick,"data-tip":"See instructions",className:"solo-game__nav__right__item"},d.createElement("span",{className:"fa fa-question-circle-o"})),d.createElement("a",{href:"https://forms.gle/LE6XR43PV2WZYtmp6",target:"_blank","data-tip":"Give feedback",className:"solo-game__nav__right__item"},d.createElement("span",{className:"fa fa-bullhorn"})),d.createElement("a",{"data-tip":e?"End Game":"Exit",onClick:this.onLogout,className:"solo-game__nav__right__item"},d.createElement("span",{className:"fa fa-sign-out"})),d.createElement(H,{onLeave:this.onLogout}))),d.createElement(_r,{key:"side-menu",show:this.state.sideMenu,onToggleSideMenu:this.onToggleSideMenu,onInstructionsClick:this.onInstructionsClick,quizChosen:e,onLogout:this.onLogout}),!!this.state.instructions&&d.createElement(he,{key:"instructions",onClose:this.onCloseInstructions}),d.createElement(yr,{place:"bottom",effect:"solid",clickable:!0,delayShow:50,backgroundColor:"#414141",textColor:"white",className:"quiz-nav-tooltip"}))}}]),n}(d.Component),_r=function(e){c(n,e);var t=gr(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n,[{key:"render",value:function(){return d.createElement("section",{className:"solo-game__side-menu"},d.createElement("div",{className:"solo-game__side-menu__backdrop --".concat(this.props.show?"show":"hide"),onClick:this.props.onToggleSideMenu}),d.createElement("div",{className:"solo-game__side-menu__container --".concat(this.props.show?"show":"hide")},d.createElement("div",{className:"solo-game__side-menu__header"},d.createElement("div",{className:"solo-game__side-menu__icon",onClick:this.props.onToggleSideMenu}),d.createElement("div",{className:"solo-game__side-menu__logo",onClick:this.props.onToggleSideMenu},"Songlio")),d.createElement("div",{className:"solo-game__side-menu__body"},d.createElement(A,{secondary:!0,label:"Instructions",onClick:this.props.onInstructionsClick}),d.createElement("a",{href:"https://forms.gle/LE6XR43PV2WZYtmp6",target:"_blank",className:"solo-game__side-menu__feedback"},"Feedback"),d.createElement(A,{primary:!0,label:this.props.quizChosen?"End Game":"Exit",onClick:this.props.onLogout})),d.createElement("div",{className:"solo-game__side-menu__footer"},"© ",(new Date).getFullYear()," Encore Technologies Limited, All Rights Reserved")))}}]),n}(d.Component),br=n(7835);var wr=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;return o(this,a),(t=r.call(this,e)).onClickOutside=function(e){if(t.state.open){var n=h.findDOMNode((0,l.Z)(t));n&&n.contains(e.target)||t.setState({open:!1})}},t.onSelect=function(e){t.setState({open:!1}),t.props.onSelect(e)},t.onClick=function(){t.setState({open:!t.state.open})},t.state={open:!1},t}
2return i(a,[{key:"componentDidMount",value:function(){window.addEventListener("click",this.onClickOutside)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("click",this.onClickOutside)}},{key:"render",value:function(){var e=this,t=this.props.data.filter((function(e){return e.selected})),n=this.props.data,r=n&&n.length>1,o=t.map((function(t){return d.createElement("div",{key:t.value||"default",className:"dropdown__item --top".concat(e.state.open?" --open":"").concat(r?"":" --disabled"),onClick:e.onClick},t.img&&d.createElement("div",{className:"dropdown__item__image",style:{backgroundImage:"url(".concat(t.img,")")}}),t.text&&d.createElement("div",{className:"dropdown__item__text"},t.text),e.props.data.length>1&&d.createElement("div",{className:"dropdown__item__icon ".concat(e.state.open?"--open":"")},d.createElement("img",{src:"/img/icons/chevron.svg",alt:"Dropdown toggle icon"})))})),a=n.filter((function(e){return!!e.value})).map((function(t){return d.createElement("div",{key:t.value,className:"dropdown__item".concat(t.selected?" --selected":""),onClick:e.onSelect.bind(e,t.value)},t.img&&d.createElement("div",{className:"dropdown__item__image",style:{backgroundImage:"url(".concat(t.img,")")}}),t.text&&d.createElement("div",{className:"dropdown__item__text"},t.text))}));return d.createElement("div",{className:"dropdown__container"},this.props.label&&d.createElement("div",{className:"dropdown__label"},this.props.label),o,!!(this.state.open&&a&&a.length>0)&&d.createElement("div",{className:"dropdown__list"},a))}}]),a}(d.Component);var Er=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){return o(this,a),r.apply(this,arguments)}return i(a,[{key:"render",value:function(){var e=this,t=(this.props.tabs||[]).map((function(t){return d.createElement("li",{key:"tab-".concat(t.value),className:"tab-nav__item".concat(t.active?" --active":""),onClick:e.props.onChange.bind(e,t.value)},t.label)})),n=(this.props.tabs||[]).map((function(e){return{value:e.value,text:e.label,selected:e.active}}));return d.createElement("div",{className:"tab-nav"},d.createElement("ul",{className:"tab-nav__list"},t),d.createElement("div",{className:"tab-nav__dropdown"},d.createElement(wr,{data:n,onSelect:this.props.onChange})))}}]),a}(d.Component);function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Sr=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){return o(this,a),r.apply(this,arguments)}return i(a,[{key:"computePageLinks",value:function(){var e=this.props.totalItems||0,t="{pageNumber}",n=this.props.currentPage||1,r=this.props.itemsPerPage||20,o=this.props.maxNumberOfLinks||5,a=parseInt(Math.ceil(e/r));o=o>a?a-1:o-1;var i=Math.ceil(n-o/2),s=(i=(i=a-n<o?n-(o-(a-n)):i)>0?i:1)+o;s=s<a?s:a;var c=[];n>1&&c.push({label:" Prev",isArrowLeft:!0,goTo:t.replace("{pageNumber}",parseInt(n)-1),isActive:!1,linkBehavior:!0,showMobile:!0}),i>=2&&c.push({label:"1",goTo:t.replace("{pageNumber}",1),isActive:!1,linkBehavior:!0,showMobile:!0}),i>2&&c.push({label:"···",goTo:null,isActive:!1,linkBehavior:!1,showMobile:!0,isEllipsis:!0});for(var u=i;u<=s;u++)c.push({label:u,goTo:t.replace("{pageNumber}",u),isActive:n==u,linkBehavior:n!=u,showMobile:u==n||u==parseInt(n)-1||u==parseInt(n)+1,verticalDelimiter:n!=u&&u!=parseInt(n)-1&&u!=s,url:this.props.baseUrl?"".concat(this.props.baseUrl,"?p=").concat(t.replace("{pageNumber}",u)):null});return a-s>=2&&c.push({label:"···",goTo:null,isActive:!1,linkBehavior:!1,showMobile:!0,isEllipsis:!0}),a-s>
2=1&&c.push({label:a,goTo:t.replace("{pageNumber}",a),isActive:!1,linkBehavior:!0,showMobile:!0}),n<a&&c.push({label:"Next ",isArrowRight:!0,goTo:t.replace("{pageNumber}",parseInt(n)+1),isActive:!1,linkBehavior:!0,showMobile:!0}),c}},{key:"goToPage",value:function(e,t){e&&e.preventDefault(),this.props.onPageChange(t)}},{key:"render",value:function(){var e=this,t=[],n=this.computePageLinks();if(n&&n.length>1){var r,o=0,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return kr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}(n);try{var i=function(){var n=r.value,a="pag-button";a+=n.isActive?" active ":"",a+=n.showMobile?"":" desktop-only ",a+=n.isEllipsis?" ellipsis ":"",a+=n.verticalDelimiter&&!n.isEllipsis?" vertical-bar ":"",n.linkBehavior?t.push(d.createElement("a",{key:o,href:n.url?n.url:"javascript:;","aria-label":"Pagination button",onClick:function(t){return e.goToPage(t,n.goTo)}},n.isArrowLeft?d.createElement("div",{className:a},d.createElement("span",{className:"arrow fa fa-chevron-left"}),d.createElement("span",{className:"desktop-only"},n.label)):n.isArrowRight?d.createElement("div",{className:a},d.createElement("span",{className:"desktop-only"},n.label),d.createElement("span",{className:"arrow fa fa-chevron-right"})):d.createElement("div",{className:a},n.label))):t.push(d.createElement("div",{key:o,className:a},n.label)),o++};for(a.s();!(r=a.n()).done;)i()}catch(e){a.e(e)}finally{a.f()}}else t=null;return t?d.createElement("div",{className:"pagination-buttons",style:this.props.styles},t):null}}]),a}(d.Component);const xr=Sr;var Cr="1.13.1",Nr="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},Or=Array.prototype,Tr=Object.prototype,zr="undefined"!=typeof Symbol?Symbol.prototype:null,Pr=Or.push,Rr=Or.slice,Ar=Tr.toString,qr=Tr.hasOwnProperty,Mr="undefined"!=typeof ArrayBuffer,Ir="undefined"!=typeof DataView,Dr=Array.isArray,jr=Object.keys,Lr=Object.create,Br=Mr&&ArrayBuffer.isView,Ur=isNaN,Fr=isFinite,Yr=!{toString:null}.propertyIsEnumerable("toString"),Wr=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Hr=Math.pow(2,53)-1;function Gr(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),o=0;o<n;o++)r[o]=arguments[o+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var a=Array(t+1);for(o=0;o<t;o++)a[o]=arguments[o];return a[t]=r,e.apply(this,a)}}function Vr(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function Qr(e){return null===e}function $r(e){return void 0===e}function Zr(e){return!0===e||!1===e||"[object Boolean]"===Ar.call(e)}function Kr(e){return!(!e||1!==e.nodeType)}function Xr(e){var t="[object "+e+"]";return function(e){return Ar.call(e)===t}}const Jr=Xr("String"),eo=Xr("Number"),to=Xr("Date"),no=Xr("RegExp"),ro=Xr("Error"),oo=Xr("Symbol"),ao=Xr("ArrayBuffer");var io=Xr("Function"),so=Nr.document&&Nr.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof so&&(io=function(e){return"function"==typeof e||!1});const co=io,uo=Xr("Object");var lo=Ir&&uo(new DataView(new ArrayBuffer(8))),fo="undefined"!=typeof Map&&uo(new Map),po=Xr("DataView");const ho=lo?function(e){return null!=e&&co(e.getInt8)&&ao(e.buffer)}:po,mo=Dr||Xr("Array");function yo(e,t){return null!=e&&qr.call(e,t)}var go=Xr("Arguments");!function(){go(arguments)||(go=function(e){return yo(e,"callee")})}();const vo=go;function _o(e){return!oo(e)&&Fr(e)&&!isNaN(parseFloat(e))}function bo(e){return eo(e)&&Ur(e)}function wo(e){return function(){return e}}function Eo(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=Hr}}function ko(e){return function(t){return null==t?void 0:t[e]}}
vendor: 10,088 bytes, line 2
2const So=ko("byteLength"),xo=Eo(So);var Co=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const No=Mr?function(e){return Br?Br(e)&&!ho(e):xo(e)&&Co.test(Ar.call(e))}:wo(!1),Oo=ko("length");function To(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=Wr.length,r=e.constructor,o=co(r)&&r.prototype||Tr,a="constructor";for(yo(e,a)&&!t.contains(a)&&t.push(a);n--;)(a=Wr[n])in e&&e[a]!==o[a]&&!t.contains(a)&&t.push(a)}function zo(e){if(!Vr(e))return[];if(jr)return jr(e);var t=[];for(var n in e)yo(e,n)&&t.push(n);return Yr&&To(e,t),t}function Po(e){if(null==e)return!0;var t=Oo(e);return"number"==typeof t&&(mo(e)||Jr(e)||vo(e))?0===t:0===Oo(zo(e))}function Ro(e,t){var n=zo(t),r=n.length;if(null==e)return!r;for(var o=Object(e),a=0;a<r;a++){var i=n[a];if(t[i]!==o[i]||!(i in o))return!1}return!0}function Ao(e){return e instanceof Ao?e:this instanceof Ao?void(this._wrapped=e):new Ao(e)}function qo(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,So(e))}Ao.VERSION=Cr,Ao.prototype.value=function(){return this._wrapped},Ao.prototype.valueOf=Ao.prototype.toJSON=Ao.prototype.value,Ao.prototype.toString=function(){return String(this._wrapped)};var Mo="[object DataView]";function Io(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&Do(e,t,n,r)}function Do(e,t,n,r){e instanceof Ao&&(e=e._wrapped),t instanceof Ao&&(t=t._wrapped);var o=Ar.call(e);if(o!==Ar.call(t))return!1;if(lo&&"[object Object]"==o&&ho(e)){if(!ho(t))return!1;o=Mo}switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return zr.valueOf.call(e)===zr.valueOf.call(t);case"[object ArrayBuffer]":case Mo:return Do(qo(e),qo(t),n,r)}var a="[object Array]"===o;if(!a&&No(e)){if(So(e)!==So(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;a=!0}if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var i=e.constructor,s=t.constructor;if(i!==s&&!(co(i)&&i instanceof i&&co(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var c=(n=n||[]).length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),a){if((c=e.length)!==t.length)return!1;for(;c--;)if(!Io(e[c],t[c],n,r))return!1}else{var u,l=zo(e);if(c=l.length,zo(t).length!==c)return!1;for(;c--;)if(!yo(t,u=l[c])||!Io(e[u],t[u],n,r))return!1}return n.pop(),r.pop(),!0}function jo(e,t){return Io(e,t)}function Lo(e){if(!Vr(e))return[];var t=[];for(var n in e)t.push(n);return Yr&&To(e,t),t}function Bo(e){var t=Oo(e);return function(n){if(null==n)return!1;var r=Lo(n);if(Oo(r))return!1;for(var o=0;o<t;o++)if(!co(n[e[o]]))return!1;return e!==Ho||!co(n[Uo])}}var Uo="forEach",Fo=["clear","delete"],Yo=["get","has","set"],Wo=Fo.concat(Uo,Yo),Ho=Fo.concat(Yo),Go=["add"].concat(Fo,Uo,"has");const Vo=fo?Bo(Wo):Xr("Map"),Qo=fo?Bo(Ho):Xr("WeakMap"),$o=fo?Bo(Go):Xr("Set"),Zo=Xr("WeakSet");function Ko(e){for(var t=zo(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=e[t[o]];return r}function Xo(e){for(var t=zo(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=[t[o],e[t[o]]];return r}function Jo(e){for(var t={},n=zo(e),r=0,o=n.length;r<o;r++)t[e[n[r]]]=n[r];return t}function ea(e){var t=[];for(var n in e)co(e[n])&&t.push(n);return t.sort()}function ta(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var o=1;o<r;o++)for(var a=arguments[o],i=e(a),s=i.length,c=0;c<s;c++){var u=i[c];t&&void 0!==n[u]||(n[u]=a[u])}return n}}const na=ta(Lo),ra=ta(zo),oa=ta(Lo,!0);function aa(e){if(!Vr(e))return{};if(Lr)return Lr(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function ia(e,t){var n=aa(e);return t&&ra(n,t),n}function sa(e){return Vr(e)?mo(e)?e.slice():na({},e):e}function ca(e,t){return t(e),e}function ua(e){return mo(e)?e:[e]}function la(e){return Ao.toPath(e)}function fa(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function pa(e,t,n){var r=fa(e,la(t));return $r(r)?n:r}function da(e,t){for(var n=(t=la(t)).length,r=0;r<n;r++){var o=t[r];if(!yo(e,o))return!1;e=e[o]}return!!n}function ha(e){return e}function ma(e){return e=ra({},e),function(t){return Ro(t,e)}}function ya(e){return e=la(e),function(t){return fa(t,e)}}function ga(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,a){return e.call(t,n,r,o,a)}}return function(){return e.apply(t,arguments)}}function va(e,t,n){return null==e?ha:co(e)?ga(e,t,n):Vr(e)&&!mo(e)?ma(e):ya(e)}function _a(e,t){return va(e,t,1/0)}function ba(e,t,n){return Ao.iteratee!==_a?Ao.iteratee(e,t):va(e,t,n)}function wa(e,t,n){t=ba(t,n);for(var r=zo(e),o=r.length,a={},i=0;i<o;i++){var s=r[i];a[s]=t(e[s],s,e)}return a}function Ea(){}function ka(e){return null==e?Ea:function(t){return pa(e,t)}}function Sa(e,t,n){var r=Array(Math.max(0,e));t=ga(t,n,1);for(var o=0;o<e;o++)r[o]=t(o);return r}function xa(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}Ao.toPath=ua,Ao.iteratee=_a;const Ca=Date.now||function(){return(new Date).getTime()};function Na(e){var t=function(t){return e[t]},n="(?:"+zo(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}}const Oa={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Ta=Na(Oa),za=Na(Jo(Oa)),Pa=Ao.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var Ra=/(.)^/,Aa={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},qa=/\\|'|\r|\n|\u2028|\u2029/g;function Ma(e){return"\\"+Aa[e]}var Ia=/^\s*(\w|\$)+\s*$/;function Da(e,t,n){!t&&n&&(t=n),t=oa({},t,Ao.templateSettings);var r=RegExp([(t.escape||Ra).source,(t.interpolate||Ra).source,(t.evaluate||Ra).source].join("|")+"|$","g"),o=0,a="__p+='";e.replace(r,(function(t,n,r,i,s){return a+=e.slice(o,s).replace(qa,Ma),o=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(a+="';\n"+i+"\n__p+='"),t})),a+="';\n";var i,s=t.variable;if(s){if(!Ia.test(s))throw new Error("variable is not a bare identifier: "+s)}else a="with(obj||{}){\n"+a+"}\n",s="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{i=new Function(s,"_",a)}catch(e){throw e.source=a,e}var c=function(e){return i.call(this,e,Ao)};return c.source="function("+s+"){\n"+a+"}",c}function ja(e,t,n){var r=(t=la(t)).length;if(!r)return co(n)?n.call(e):n;for(var o=0;o<r;o++){var a=null==e?void 0:e[t[o]];void 0===a&&(a=n,o=r),e=co(a)?a.call(e):a}return e}var La=0;function Ba(e){var t=++La+"";return e?e+t:t}function Ua(e){var t=Ao(e);return t._chain=!0,t}function Fa(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var a=aa(e.prototype),i=e.apply(a,o);return Vr(i)?i:a}var Ya=Gr((function(e,t){var n=Ya.placeholder,r=function(){for(var o=0,a=t.length,i=Array(a),s=0;s<a;s++)i[s]=t[s]===n?arguments[o++]:t[s];for(;o<arguments.length;)i.push(arguments[o++]);return Fa(e,r,this,this,i)};return r}));Ya.placeholder=Ao;const Wa=Ya,Ha=Gr((function(e,t,n){if(!co(e))throw new TypeError("Bind must be called on a function");var r=Gr((function(o){return Fa(e,r,t,this,n.concat(o))}));return r})),Ga=Eo(Oo);function Va(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var o=r.length,a=0,i=Oo(e);a<i;a++){var s=e[a];if(Ga(s)&&(mo(s)||vo(s)))if(t>1)Va(s,t-1,n,r),o=r.length;else for(var c=0,u=s.length;c<u;)r[o++]=s[c++];else n||(r[o++]=s)}return r}const Qa=Gr((function(e,t){var n=(t=Va(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=Ha(e[r],e)}return e}));function $a(e,t){var n=function(r){var o=n.cache,a=""+(t?t.apply(this,arguments):r);return yo(o,a)||(o[a]=e.apply(this,arguments)),o[a]};return n.cache={},n}const Za=Gr((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),Ka=Wa(Za,Ao,1);function Xa(e,t,n){var r,o,a,i,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Ca(),r=null,i=e.apply(o,a),r||(o=a=null)},u=function(){var u=Ca();s||!1!==n.leading||(s=u);var l=t-(u-s);return o=this,a=arguments,l<=0||l>t?(r&&(clearTimeout(r),r=null),s=u,i=e.apply(o,a),r||(o=a=null)):r||!1===n.trailing||(r=setTimeout(c,l)),i};return u.cancel=function(){clearTimeout(r),s=0,r=o=a=null},u}function Ja(e,t,n){var r,o,a,i,s,c=function(){var u=Ca()-o;t>u?r=setTimeout(c,t-u):(r=null,n||(i=e.apply(s,a)),r||(a=s=null))},u=Gr((function(u){return s=this,a=u,o=Ca(),r||(r=setTimeout(c,t),n&&(i=e.apply(s,a))),i}));return u.cancel=function(){clearTimeout(r),r=a=s=null},u}function ei(e,t){return Wa(t,e)}function ti(e){return function(){return!e.apply(this,arguments)}}function ni(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function ri(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function oi(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}const ai=Wa(oi,2);function ii(e,t,n){t=ba(t,n);for(var r,o=zo(e),a=0,i=o.length;a<i;a++)if(t(e[r=o[a]],r,e))return r}function si(e){return function(t,n,r){n=ba(n,r);for(var o=Oo(t),a=e>0?0:o-1;a>=0&&a<o;a+=e)if(n(t[a],a,t))return a;return-1}}const ci=si(1),ui=si(-1);function li(e,t,n,r){for(var o=(n=ba(n,r,1))(t),a=0,i=Oo(e);a<i;){var s=Math.floor((a+i)/2);n(e[s])<o?a=s+1:i=s}return a}function fi(e,t,n){return function(r,o,a){var i=0,s=Oo(r);if("number"==typeof a)e>0?i=a>=0?a:Math.max(a+s,i):s=a>=0?Math.min(a+1,s):a+s+1;else if(n&&a&&s)return r[a=n(r,o)]===o?a:-1;if(o!=o)return(a=t(Rr.call(r,i,s),bo))>=0?a+i:-1;for(a=e>0?i:s-1;a>=0&&a<s;a+=e)if(r[a]===o)return a;return-1}}const pi=fi(1,ci,li),di=fi(-1,ui);
vendor: 6,328 bytes, line 2
2function hi(e,t,n){var r=(Ga(e)?ci:ii)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function mi(e,t){return hi(e,ma(t))}function yi(e,t,n){var r,o;if(t=ga(t,n),Ga(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else{var a=zo(e);for(r=0,o=a.length;r<o;r++)t(e[a[r]],a[r],e)}return e}function gi(e,t,n){t=ba(t,n);for(var r=!Ga(e)&&zo(e),o=(r||e).length,a=Array(o),i=0;i<o;i++){var s=r?r[i]:i;a[i]=t(e[s],s,e)}return a}function vi(e){var t=function(t,n,r,o){var a=!Ga(t)&&zo(t),i=(a||t).length,s=e>0?0:i-1;for(o||(r=t[a?a[s]:s],s+=e);s>=0&&s<i;s+=e){var c=a?a[s]:s;r=n(r,t[c],c,t)}return r};return function(e,n,r,o){var a=arguments.length>=3;return t(e,ga(n,o,4),r,a)}}const _i=vi(1),bi=vi(-1);function wi(e,t,n){var r=[];return t=ba(t,n),yi(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function Ei(e,t,n){return wi(e,ti(ba(t)),n)}function ki(e,t,n){t=ba(t,n);for(var r=!Ga(e)&&zo(e),o=(r||e).length,a=0;a<o;a++){var i=r?r[a]:a;if(!t(e[i],i,e))return!1}return!0}function Si(e,t,n){t=ba(t,n);for(var r=!Ga(e)&&zo(e),o=(r||e).length,a=0;a<o;a++){var i=r?r[a]:a;if(t(e[i],i,e))return!0}return!1}function xi(e,t,n,r){return Ga(e)||(e=Ko(e)),("number"!=typeof n||r)&&(n=0),pi(e,t,n)>=0}const Ci=Gr((function(e,t,n){var r,o;return co(t)?o=t:(t=la(t),r=t.slice(0,-1),t=t[t.length-1]),gi(e,(function(e){var a=o;if(!a){if(r&&r.length&&(e=fa(e,r)),null==e)return;a=e[t]}return null==a?a:a.apply(e,n)}))}));function Ni(e,t){return gi(e,ya(t))}function Oi(e,t){return wi(e,ma(t))}function Ti(e,t,n){var r,o,a=-1/0,i=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=Ga(e)?e:Ko(e)).length;s<c;s++)null!=(r=e[s])&&r>a&&(a=r);else t=ba(t,n),yi(e,(function(e,n,r){((o=t(e,n,r))>i||o===-1/0&&a===-1/0)&&(a=e,i=o)}));return a}function zi(e,t,n){var r,o,a=1/0,i=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=Ga(e)?e:Ko(e)).length;s<c;s++)null!=(r=e[s])&&r<a&&(a=r);else t=ba(t,n),yi(e,(function(e,n,r){((o=t(e,n,r))<i||o===1/0&&a===1/0)&&(a=e,i=o)}));return a}function Pi(e,t,n){if(null==t||n)return Ga(e)||(e=Ko(e)),e[xa(e.length-1)];var r=Ga(e)?sa(e):Ko(e),o=Oo(r);t=Math.max(Math.min(t,o),0);for(var a=o-1,i=0;i<t;i++){var s=xa(i,a),c=r[i];r[i]=r[s],r[s]=c}return r.slice(0,t)}function Ri(e){return Pi(e,1/0)}function Ai(e,t,n){var r=0;return t=ba(t,n),Ni(gi(e,(function(e,n,o){return{value:e,index:r++,criteria:t(e,n,o)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function qi(e,t){return function(n,r,o){var a=t?[[],[]]:{};return r=ba(r,o),yi(n,(function(t,o){var i=r(t,o,n);e(a,t,i)})),a}}const Mi=qi((function(e,t,n){yo(e,n)?e[n].push(t):e[n]=[t]})),Ii=qi((function(e,t,n){e[n]=t})),Di=qi((function(e,t,n){yo(e,n)?e[n]++:e[n]=1})),ji=qi((function(e,t,n){e[n?0:1].push(t)}),!0);var Li=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Bi(e){return e?mo(e)?Rr.call(e):Jr(e)?e.match(Li):Ga(e)?gi(e,ha):Ko(e):[]}function Ui(e){return null==e?0:Ga(e)?e.length:zo(e).length}function Fi(e,t,n){return t in n}const Yi=Gr((function(e,t){var n={},r=t[0];if(null==e)return n;co(r)?(t.length>1&&(r=ga(r,t[1])),t=Lo(e)):(r=Fi,t=Va(t,!1,!1),e=Object(e));for(var o=0,a=t.length;o<a;o++){var i=t[o],s=e[i];r(s,i,e)&&(n[i]=s)}return n})),Wi=Gr((function(e,t){var n,r=t[0];return co(r)?(r=ti(r),t.length>1&&(n=t[1])):(t=gi(Va(t,!1,!1),String),r=function(e,n){return!xi(t,n)}),Yi(e,r,n)}));function Hi(e,t,n){return Rr.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Gi(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Hi(e,e.length-t)}function Vi(e,t,n){return Rr.call(e,null==t||n?1:t)}function Qi(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:Vi(e,Math.max(0,e.length-t))}function $i(e){return wi(e,Boolean)}function Zi(e,t){return Va(e,t,!1)}const Ki=Gr((function(e,t){return t=Va(t,!0,!0),wi(e,(function(e){return!xi(t,e)}))})),Xi=Gr((function(e,t){return Ki(e,t)}));function Ji(e,t,n,r){Zr(t)||(r=n,n=t,t=!1),null!=n&&(n=ba(n,r));for(var o=[],a=[],i=0,s=Oo(e);i<s;i++){var c=e[i],u=n?n(c,i,e):c;t&&!n?(i&&a===u||o.push(c),a=u):n?xi(a,u)||(a.push(u),o.push(c)):xi(o,c)||o.push(c)}return o}const es=Gr((function(e){return Ji(Va(e,!0,!0))}));function ts(e){for(var t=[],n=arguments.length,r=0,o=Oo(e);r<o;r++){var a=e[r];if(!xi(t,a)){var i;for(i=1;i<n&&xi(arguments[i],a);i++);i===n&&t.push(a)}}return t}function ns(e){for(var t=e&&Ti(e,Oo).length||0,n=Array(t),r=0;r<t;r++)n[r]=Ni(e,r);return n}const rs=Gr(ns);function os(e,t){for(var n={},r=0,o=Oo(e);r<o;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function as(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),a=0;a<r;a++,e+=n)o[a]=e;return o}function is(e,t){if(null==t||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(Rr.call(e,r,r+=t));return n}function ss(e,t){return e._chain?Ao(t).chain():t}function cs(e){return yi(ea(e),(function(t){var n=Ao[t]=e[t];Ao.prototype[t]=function(){var e=[this._wrapped];return Pr.apply(e,arguments),ss(this,n.apply(Ao,e))}})),Ao}yi(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=Or[e];Ao.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),ss(this,n)}})),yi(["concat","join","slice"],(function(e){var t=Or[e];Ao.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),ss(this,e)}}));const us=Ao;var ls=cs(r);ls._=ls;var fs=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){var e;o(this,a);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).state={value:e.props.value||""},e.componentDidMount=function(){e.props.autoFocus&&e.input.focus()},e.onChange=function(t){e.setState({value:t}),e.doSearch(t)},e.doSearch=Xa((function(t){e.props.onChange(t)}
2),500),e.handleKeyPress=function(t){"Enter"===t&&e.onChange(e.state.value)},e.handleReset=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e.setState({value:""}),t&&e.onChange("")},e}return i(a,[{key:"componentDidUpdate",value:function(e){this.props.isClear&&!e.isClear&&this.handleReset()}},{key:"render",value:function(){var e=this;return d.createElement(d.Fragment,null,d.createElement("div",{className:"search-input__container ".concat(this.props.className||"")},d.createElement(I,{ref:function(t){return e.input=t},containerClass:"search-input__input",type:"search",label:this.props.label,placeholder:this.props.placeholder,value:this.state.value,onChange:this.onChange,onKeyPress:this.handleKeyPress}),this.state.value&&d.createElement("span",{class:"search-input__input__icon",onClick:this.handleReset.bind(this,!0)},d.createElement("i",{class:"fa fa-times input__icon"}))),d.createElement("div",null,this.props.isEmpty&&!this.props.isLoading&&d.createElement("p",null,"No quizzes found. Try another search!")))}}]),a}(d.Component);fs.propTypes={onChange:M().func,className:M().string,label:M().string,value:M().string,placeholder:M().string,isEmpty:M().bool,isLoading:M().bool,isClear:M().bool},n(5699);var ps,ds=["Prepare your ears","Gird your lobes","Sounds inbound","Buckle up","Turn up the bass","Get ready for the drop","Hold onto your hat","Engage your ear drums","Grab your game face. ","Remember: winning is a mentality. ","âWithout music, life would be a mistakeâ â Friedrich Nietzsche","âEighty percent of success is showing upâ â Woody Allen","Fasten your beatbelt","In 2016, Mozart Sold More CDs than Beyoncé","âStrive not to be a success, but rather to be of valueâ â Albert Einstein "],hs=["No theme","Custom","Lockdown","Disney","TV Shows","Film Soundtracks","Cartoon Themes","Songs with a name in them","Songs containing a place/city/country","Colours","Videogames","80s","90s","00s","Christmas","Musicals","Covers","Songs where the name is never mentioned in the lyrics","Songs in a different language","Game Show Theme Songs","Rap","Classical music","One-word artist names"],ms={Disney:[{name:"Hakuna Matata",link:""},{name:"Let It Go",link:""},{name:"I'll Make a Man Out Of You",link:""},{name:"You'll be in my Heart",link:""},{name:"You've Got a Friend in Me",link:""},{name:"When You Wish Upon a Star",link:""},{name:"Colours of the Wind",link:""},{name:"Go the Distance",link:""},{name:"When She Loved Me",link:""},{name:"A Whole New World",link:""},{name:"Can You Feel The Love Tonight",link:""}],"TV Shows":[{name:"Friends",link:""},{name:"Seinfeld",link:""},{name:"Fresh Prince of Bel Air",link:""},{name:"Dr Who",link:""},{name:"Game of Thrones",link:""},{name:"Who Wants to be a Millionaire",link:""},{name:"Bake Off",link:""},{name:"Countdown",link:""},{name:"Eastenders",link:""},{name:"X Factor",link:""},{name:"Top Gear",link:""},{name:"University Challenge",link:""},{name:"Antiques Roadshow",link:""},{name:"Big Brother",link:""},{name:"Arthur",link:""},{name:"Futurama",link:""},{name:"Tom & Jerry",link:""},{name:"Thomas the Tank Engine",link:""}],Films:[{name:"Star Wars",link:""},{name:"Lord of the Rings",link:""},{name:"Schindler's List",link:""},{name:"Pirates of the Caribbean",link:""},{name:"E.T.",link:""},{name:"Love Actually",link:""},{name:"Indiana Jones",link:""},{name:"James Bond",link:""},{name:"Superman",link:""},{name:"Rocky",link:""},{name:"The Godfather",link:""},{name:"Chariots of Fire",link:""},{name:"Wallace and Gromit",link:""},{name:"West Side Story",link:""},{name:"The Sound of Music",link:""},{name:"Up",link:""},{name:"Monsters Inc",link:""},{name:"The Incredibles",link:""},{name:"A Star is Born",link:""},{name:"Mary Poppins",link:""},{name:"Inception",link:""}],"Video Games":[{name:"Halo",link:""},{name:"Super Mario Bros",link:""},{name:"Legend of Zelda",link:""},{name:"Crash Bandicoot",link:""},{name:"The Sims",link:""},{name:"Age of Empires",link:""},{name:"Pokemon",link:""},{name:"Tetris",link:""},{name:"Angry Birds",link:""},{name:"Pacman",link:""},{name:"Sonic the Hedgehog",link:""}
2,{name:"Mario Kart",link:""}],Christmas:[{name:"Last Christmas Wham!",link:""},{name:"Sleigh Ride",link:""},{name:"Ding Dong Merrily on High",link:""},{name:"The First Noel",link:""},{name:"Good King Wenceslas",link:""},{name:"God Rest You Merry, Gentlemen",link:""},{name:"Hark! The Herald Angels Sing",link:""},{name:"The Holly and the Ivy",link:""},{name:"In the Bleak Midwinter",link:""},{name:"Joy to the World",link:""},{name:"Winter Wonderland",link:""},{name:"O Come, All Ye Faithful",link:""},{name:"O come, O come, Emmanuel",link:""},{name:"O Holy Night",link:""},{name:"Once in Royal David's City",link:""},{name:"The Christmas Song Nat King Cole",link:""},{name:"Have Yourself a Merry Little Christmas'",link:""},{name:"Rockin' Around the Christmas Tree",link:""},{name:"Santa Claus Is Coming to Town",link:""},{name:"All I Want for Christmas Is You Mariah Carey",link:""},{name:"White Christmas Bing Crosby",link:""},{name:"Do They Know It's Christmas Band Aid",link:""},{name:"Jingle Bell Rock",link:""},{name:"Jingle Bells",link:""},{name:"Rudolph, the Red-Nosed Reindeer",link:""},{name:"Wonderful Christmastime Paul McCartney",link:""}]},ys={defaults:["astronaut","baby","cow","dino","drums","flute","guitar","keyboard","koala","panda","party-turtle","sax_pig","snare-drums","space_unicorn","trumpet","violin"],avatar_pack_1:["cool_cat","girl","hacker","laptop_girl","rocket_boy","sloth","whale"],avatar_pack_2:["balloon_penguin","gamer_girl","guitar_girl","headphones_panda","radio_astronaut","shark","trex"],avatar_pack_xmas_1:["happy_reindeer","igloo","reindeer","snowman","snowman_bow"],avatar_pack_xmas_2:["penguin","reindeer_scarf","skull","sleepy_bear","stocking_puppy"]};function gs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vs=(0,m.$j)((function(e){return{account:e.account}}))(ps=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;o(this,a),(t=r.call(this,e)).componentDidUpdate=function(e){e.avatar!==t.props.avatar?t.setState({avatars:t.getAvatarBufferList(t.state.fullAvatarList),scrollingDirection:null}):((e.account||{}).purchases||[]).length!==((t.props.account||{}).purchases||[]).length&&t.setState({fullAvatarList:t.getAvatarList()})},t.getAvatarList=function(){var e,n=(t.props.account||{}).purchases||[],r=ys.defaults,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return gs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gs(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}(n.filter((function(e){return"avatars"===e.type})));try{for(o.s();!(e=o.n()).done;){var a=e.value;r=(ys[a.code]||[]).concat(r)}}catch(e){o.e(e)}finally{o.f()}return r},t.getAvatarBufferList=function(e){var n=t.props.avatar,r=e.findIndex((function(e){return e===n})),o=(r-1+e.length)%e.length,a=(r+1)%e.length,i=e[o],s=e[a];return[i,n,s]},t.onClickLeft=function(){t.state.scrollingDirection||t.setState({scrollingDirection:"left"},(function(){setTimeout((function(){t.props.onChange(t.state.avatars[0])}),300)}))},t.onClickRight=function(){t.state.scrollingDirection||t.setState({scrollingDirection:"right"},(function(){setTimeout((function(){t.props.onChange(t.state.avatars[2])}),300)}))};var n=t.getAvatarList();return t.state={avatars:t.getAvatarBufferList(n),fullAvatarList:n,scrollingDirection:null},t}return i(a,[{key:"render",value:function(){var e=this.state.avatars,t=this.state.scrollingDirection,n=["left"===t?0:-154,"left"===t?154:"right"===t?-154:0,"right"===t?0:154];return d.createElement("div",{className:"avatar-picker__avatars"},d.createElement("div",{className:"avatar-picker__avatars__arrow"},d.createElement("span",{className:"fa fa-angle-left",onClick:this.onClickLeft})),d.createElement("div",{className:"avatar-picker__avatars__window"},e.map((function(t,r){return d.createElement("div",{key:"avatar-".concat(e[r]),className:"avatar-picker__avatars__img",style:{left:n[r],backgroundImage:"url(https://storage.googleapis.com/encore_songlio/avatars/".concat(e[r],".png)")}})}))),d.createElement("div",{className:"avatar-picker__avatars__arrow"},d.createElement("span",{className:"fa fa-angle-right",onClick:this.onClickRight})))}}]),a}(d.Component))||ps;var _s=["Mozart","Jimi Hendrix","Elton John","John Lennon","David Bowie"][Math.floor(5*Math.random())],bs=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;return o(this,a),(t=r.call(this,e)).componentDidMount=function(){t.props.show&&t.focu
2sInput()},t.focusInput=function(){setTimeout((function(){var e=document.querySelector(".quiz-home__login__name.--sp"),n=document.querySelector(".quiz-home__login__name.--mp");"singleplayer"===t.props.mode&&e?e.focus():"multiplayer"===t.props.mode&&n&&n.focus()}),100)},t.onNameChange=function(e){return t.setState({name:e,error:null})},t.onAvatarChange=function(e){return t.setState({avatar:e})},t.onKeyPress=function(e,n){if("Enter"===n)switch(e){case"play":return void t.onSinglePlayerClick();case"join":return void t.onJoinRoom();case"create":return void t.onCreateRoom();case"open":return void t.onJoinPublicRoom()}},t.onJoinRoom=function(){return t.state.name?t.state.room?(t.state.error&&t.setState({error:null}),t.props.dispatch(S(t.state.room,t.state.name,t.state.avatar)),void B("join_multiplayer")):t.setState({error:"Room link error. Please try clicking the link again."}):t.setState({error:"Please enter your name"})},t.onCreateRoom=function(){if(!t.state.name)return t.setState({error:"Please enter your name"});var e,n;t.state.error&&t.setState({error:null}),t.props.dispatch((e=t.state.name,n=t.state.avatar,function(t,r){g().post("/quiz/room/create").then((function(r){var o=r.data;o.room?t(S(o.room,e,n)):alertify.error("Something went wrong!")})).catch((function(e){console.log(e),alertify.error("Something went wrong!")}))})),B("create_multiplayer")},t.onJoinPublicRoom=function(){if(!t.state.name)return t.setState({error:"Please enter your name"});var e,n;t.state.error&&t.setState({error:null}),t.props.dispatch((e=t.state.name,n=t.state.avatar,function(t,r){g().post("/quiz/room/public").then((function(r){var o=r.data;o.room?t(S(o.room,e,n)):alertify.error("Something went wrong!")})).catch((function(e){console.log(e),alertify.error("Something went wrong!")}))})),B("join_multiplayer_public")},t.onSinglePlayerClick=function(){if(!t.state.name)return t.setState({error:"Please enter your name"});t.state.error&&t.setState({error:null}),t.props.dispatch(me(t.state.name,t.state.avatar)),t.props.quizId?(t.props.dispatch(function(e){return function(t,n){g().get("/quiz/solo/".concat(e)).then((function(e){var n=e.data;n.quiz?(t({type:"LOAD_SOLO_QUIZ",payload:{id:n.quiz.code,name:n.quiz.name,songs:n.quiz.songs.sort((function(){return.5-Math.random()})).map((function(e){return e.guesses=[],e.startTime=null,e.finishTime=null,e}))}}),t(ve())):alertify.error("Something went wrong!")})).catch((function(e){console.log(e),alertify.error("Something went wrong!")}))}}(t.props.quizId)),B("start_singleplayer",{event_label:t.props.quizId})):alert("Sorry, something went wrong. Please check you have selected a quiz to play!")},t.state={avatar:e.account&&e.account.avatar?e.account.avatar:e.player&&e.player.avatar?e.player.avatar:"astronaut",name:e.account&&e.account.username?e.account.username:e.player&&e.player.name||"",room:e.quiz&&e.quiz.room||"",error:null},t}return i(a,[{key:"componentDidUpdate",value:function(e){if(this.props.show&&!e.show&&this.focusInput(),!(e.account||{}).id&&(this.props.account||{}).id){var t={};this.props.account.avatar&&(t.avatar=this.props.account.avatar),this.props.account.username&&(t.name=this.props.account.username),this.setState(t)}}},{key:"render",value:function(){var e=!!window.room,t=this.props.show,n=this.props.mode;return d.createElement("div",{className:"quiz-home__login"},d.createElement(de,{id:"SingleplayerModal",show:t&&"singleplayer"===n,onHide:this.props.onClose,showCloseButton:!0,disableScrollingHtml:!0},d.createElement("div",{className:"quiz-home__login__modal"},d.createElement("div",{className:"quiz-home__login__title"},"Songlio"),d.createElement(vs,{avatar:this.state.avatar,onChange:this.onAvatarChange}),d.createElement(I,{className:"quiz-home__login__name --sp",label:"Name:",placeholder:_s,value:this.state.name,onChange:this.onNameChange,onKeyPress:this.onKeyPress.bind(this,"play")}),!!this.state.error&&d.createElement(D,{iconClass:"info-circle",content:this.state.error,status:"error"}),d.createElement("div",{className:"quiz-home__login__mode --single"},d.createElement(A,{className:"quiz-home__login__button",label:"Start",onClick:this.onSinglePlayerClick})))),d.createElement(de,{id:"MultiplayerModal",show:t&&("public"===n||"multiplayer"===n),onHide:this.props.onClose,showCloseButton:!0,disableScrollingHtml:!0},e?d.createElement("div",{className:"quiz-home__login__modal"},d.createElement("div",{className:"quiz-home__login__title"},"Songlio"),d.createElement("div",{className:"quiz-home__login__subtitle"},"Joining private Songlio room"),d.createElement(vs,{avatar:this.state.avatar,onChange:this.onAvatarChange}),d.createElement(I,{className:"quiz-home__login__name --mp",label:"Name:",placeholder:_s,value:this.state.name,onChange:this.onNameChange,onKeyPress:this.onKeyPress.bind(this,"join")}),!!this.state.error&&d.createElement(D,{iconClass:"info-circle",content:this.state.error,status:"error"}),d.createElement("div",{className:"quiz-home__login__mode --multi"},d.createElement(A,{primary:!0,className:"quiz-home__login__button",label:"Play",onClick:this.onJoinRoom}))):d.createElement("div",{className:"quiz-home__login__modal"},d.createElement("div",{className:"quiz-home__login__title"},"Songlio"),d.createElement(vs,{avatar:this.state.avatar,onChange:this.onAvatarChange}),d.createElement(I,{className:"quiz-home__login__name --mp",label:"Name:",placeholder:_s,value:this.state.name,onChange:this.onNameChange,onKeyPress:this.onKeyPress.bind(this,"public"!==n?"create":"open")}),!!this.state.error&&d.createElement(D,{iconClass:"info-circle",content:this.state.error,status:"error"}),d.createElement("div",{className:"quiz-home__login__mode --multi"},"public"!==n&&d.createElement(A,{className:"quiz-home__login__button",label:"Host Game with Friends",onClick:this.onCreateRoom}),!e&&"public"!==n&&d.createElement("div",{className:"quiz-home__login__or"},d.createElement("span",null,"or")),!e&&d.createElement(A,{secondary:!0,className:"quiz-home__login__button",label:"Join Ongoing Game",onClick:this.onJoinPublicRoom}),!e&&d.createElement("div",{className:"quiz-home__login__button-sub"},"with players all over the world ð")))))}}]),a}(d.Component);var ws=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;return o(this,a),(t=r.call(this,e)).hideModals=function(){t.setState({showModal:!1})}
2,t.fetchInitQuizzes=_(w().mark((function e(){var n;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=!!window.quizId,e.next=3,t.props.dispatch(ye(n?"corresponding":"standard",1,n&&window.quizId,""));case 3:case"end":return e.stop()}}),e)}))),t.setCountQuizzes=function(){t.props.pageInfo&&"standard"==t.props.pageInfo.type?t.setState({standardCount:t.props.pageInfo.totalQuizzes,customCount:0}):t.props.pageInfo&&"custom"==t.props.pageInfo.type&&t.setState({customCount:t.props.pageInfo.totalQuizzes,standardCount:0})},t.onTabChange=function(){var e=_(w().mark((function e(n){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({tab:n,search:"",clearInput:!0,quizId:null,showingLinkedQuiz:!1},(function(){t.setState({clearInput:!1})})),e.next=3,t.props.dispatch(ye(n,1,null,""));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.onQuizClick=function(e){return t.setState({quizId:e})},t.onPlayClick=function(){t.setState({showModal:!0})},t.onCreateQuizClick=function(){t.props.dispatch(E())},t.copyToClipboard=function(){t.linkRef.select(),document.execCommand("Copy"),alertify.success("Link copied to clipboard!")},t.getTabOptions=function(){return[{label:"Standard Quizzes ".concat(t.state.standardCount?"(".concat(t.state.standardCount,")"):""),value:"standard"},{label:"Community-made Quizzes".concat(t.state.customCount>0?" (".concat(t.state.customCount,")"):""),value:"custom"}].map((function(e){return e.active=e.value===t.state.tab,e}))},t.onPageChange=function(){var e=_(w().mark((function e(n){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:window.scrollTo(0,0),t.props.dispatch(ye(t.state.tab,n,null,t.state.search));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t.onSearchChange=function(e){var n=t.state.tab;t.setState({quizId:null}),t.setState({search:e},(function(){t.props.dispatch(ye(n,1,null,e))}))},t.state={quizId:window.quizId||null,tab:"standard",showModal:!1,standardCount:0,customCount:0,search:"",clearInput:!1,showingLinkedQuiz:!!window.quizId},t}return i(a,[{key:"componentDidMount",value:function(){this.fetchInitQuizzes()}},{key:"componentDidUpdate",value:function(e){this.state.showingLinkedQuiz&&e.quizzes.length!==this.props.quizzes.length?this.props.quizzes.some((function(e){return e.custom&&e.code.toLowerCase()===window.quizId.toLowerCase()}))?this.setState({tab:"custom"},(function(){document.getElementById("selected-quiz")?document.getElementById("selected-quiz").scrollIntoView():console.error("selected-quiz element not found (custom)")})):document.getElementById("selected-quiz")?document.getElementById("selected-quiz").scrollIntoView():console.error("selected-quiz element not found (standard)"):e.isLoading&&!this.props.isLoading&&this.setCountQuizzes()}},{key:"render",value:function(){var e=this,t=this.props,n=t.quizzes,r=t.player,o=t.account,a=t.isLoading,i=t.quiz,s=t.dispatch,c=t.pageInfo,u=this.state,l=u.quizId,f=u.showModal,p=u.clearInput,h=u.showingLinkedQuiz,m=this.getTabOptions(n),y=l?n.find((function(e){return e.code===l})):null,g=n.filter((function(t){return"custom"===e.state.tab?t.custom:!t.custom})).map((function(t,n){var r=t.code===e.state.quizId;return d.createElement("div",{key:"quiz-".concat(n),id:window.quizId&&t.code.toLowerCase()===window.quizId.toLowerCase()?"selected-quiz":"",className:"solo-game__quiz-list__item".concat(r?" --selected":""),onClick:e.onQuizClick.bind(e,t.code)},d.createElement("div",{className:"solo-game__quiz-list__item__img",style:{backgroundImage:"url(".concat(t.thumbnail||"",")")}}),d.createElement("div",{className:"solo-game__quiz-list__item__name"},t.name),d.createElement("div",{className:"solo-game__quiz-list__item__songs"},(t.songs||[]).length," song",1===(t.songs||[]).length?"":"s"),!!t.playCount&&d.createElement("div",{className:"solo-game__quiz-list__item__plays"},t.playCount," play",1===t.playCount?"":"s"))}));return d.createElement("div",{className:"solo-game__quiz-list__container container"},d.createElement("div",{className:"solo-game__quiz-list"},d.createElement("div",{className:"solo-game__quiz-list__title"}
2,"Welcome to Songlio!"),d.createElement("div",{className:"solo-game__quiz-list__description"},"Pick a single player quiz to test your guessing skills against the clock."),d.createElement("div",{className:"solo-game__quiz-list__description2"},"Get the fastest time to be added to the leaderboard and win eternal glory! ð"),d.createElement("div",{className:"solo-game__quiz-list__nav"},d.createElement(Er,{tabs:m,onChange:this.onTabChange})),h?d.createElement("div",{className:"solo-game__quiz-list__cancel-linked",onClick:this.onTabChange.bind(this,this.state.tab)},"<"," ",d.createElement("span",null,"Show all","custom"===this.state.tab?" community":""," quizzes")):d.createElement(fs,{placeholder:"Type to search...",onChange:this.onSearchChange,value:this.state.search,isEmpty:n.length<1,isLoading:a,isClear:p}),a&&d.createElement(br.Z,null),!a&&d.createElement("div",{className:"solo-game__quiz-list__list"},g),d.createElement("div",{className:"solo-game__list-pagination"},d.createElement(xr,{totalItems:c.totalQuizzes,currentPage:c.currentPage,onPageChange:this.onPageChange,itemsPerPage:20})),!!y&&d.createElement("div",{className:"solo-game__quiz-list__footer"},d.createElement("div",{className:"solo-game__quiz-list__footer__selected"},d.createElement("strong",null,"Selected quiz:")," ",y.name,d.createElement("span",null,(y.songs||[]).length," song",1===(y.songs||[]).length?"":"s"),d.createElement("input",{ref:function(t){return e.linkRef=t},className:"solo-game__quiz-list__footer__link__input",readOnly:!0,value:"https://songl.io?quiz=".concat(y.code)}),d.createElement("div",{className:"solo-game__quiz-list__footer__link",onClick:this.copyToClipboard},d.createElement("span",{className:"fa fa-chain"})," Copy link")),d.createElement(A,{primary:!0,label:"Play Quiz!",onClick:this.onPlayClick}))),d.createElement("div",{className:"solo-game__quiz-list__create"},d.createElement("div",{className:"solo-game__quiz-list__create__title"},d.createElement("span",{className:"solo-game__quiz-list__create__title__new"},"NEW!"),"Create your own Quiz"),d.createElement("div",{className:"solo-game__quiz-list__create__description"},"Challenge your friends to play a music quiz created by you."),d.createElement("div",{className:"solo-game__quiz-list__create__list"},d.createElement("div",{className:"solo-game__quiz-list__create__list__title"},"ð¶ ABC, Easy as 1-2-3!"),d.createElement("div",{className:"solo-game__quiz-list__create__list__item"},"1. ð¤ Name your quiz"),d.createElement("div",{className:"solo-game__quiz-list__create__list__item"},"2. ð¤ Add songs"),d.createElement("div",{className:"solo-game__quiz-list__create__list__item"},"3. ð Share quiz link")),d.createElement("div",{className:"solo-game__quiz-list__create__footer"},d.createElement(A,{primary:!0,label:"Create Quiz",onClick:this.onCreateQuizClick}))),d.createElement(bs,{dispatch:s,account:o,quizId:this.state.quizId,quiz:i,player:r,show:f,mode:"singleplayer",onClose:this.hideModals}))}}]),a}(d.Component);function Es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ks(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Es(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n(8217);var Ss=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){var e;o(this,a);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).formatRank=function(e){var t=e%10,n=e%100;return 1==t&&11!=n?e+"st":2==t&&12!=n?e+"nd":3==t&&13!=n?e+"rd":e+"th"},e.formatTime=function(e){var t=e%1e3,n=parseInt(e/1e3%60),r=parseInt(e/6e4);return r=r<10?"0".concat(r):r,n=n<10?"0".concat(n):n,"".concat(r,":").concat(n,".").concat(t)},e}return i(a,[{key:"render",value:function(){var e=this,t=this.props.rankings||[];if(!t.length)return null;if(this.props.quiz&&this.props.player&&this.props.quiz.totalTime){var n=this.props.quiz.totalTime,r=t.findIndex((function(e){return n<e.time}));if(r>=0&&r<10){var o=ks(ks({},this.props.player),{},{time:n});(t=t.slice(0,9)).splice(r,0,o)}}var a=t.map((function(t,n){return t.rank=e.formatRank(n+1),t.displayTime=e.formatTime(t.time),t.leader=0===n,d.createElement("div",{key:"player-".concat(n),className:"solo-game__rankings__item"},d.createElement("div",{className:"solo-game__rankings__item__avatar",style:{backgroundImage:"url(https://storage.googleapis.com/encore_songlio/avatars/".concat(t.avatar,".png)")}},t.leader&&d.createElement("div",{className:"solo-game__rankings__item__leader"},"ð")),d.createElement("div",{className:"solo-game__rankings__item__content"},d.createElement("div",{className:"solo-game__rankings__item__name"},d.createElement("div",{className:"solo-game__rankings__item__name"},t.name))),d.createElement("div",{className:"solo-game__rankings__item__score"},d.createElement("div",{className:"solo-game__rankings__item__score__rank"},t.rank),d.createElement("div",{className:"solo-game__rankings__item__score__round"},t.displayTime)))}));return d.createElement("div",{className:"solo-game__rankings"},d.createElement("div",{className:"solo-game__rankings__title"},"Rankings"),d.createElement("div",{className:"solo-game__rankings__list"},a))}}]),a}
2(d.Component),xs=(n(6056),n(1320)),Cs=n.n(xs);var Ns=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;return o(this,a),(t=r.call(this,e)).startTimer=function(){t.timer=setInterval(t.tick,1e3)},t.stopTimer=function(){clearInterval(t.timer),t.timer=null},t.reset=function(){t.setState({seconds:0})},t.tick=function(){var e=t.state.seconds+1;t.setState({seconds:e}),e>10&&e<=20&&t.props.songProgress(e-10),5===e?t.props.showHint("hangman"):10===e?t.props.showHint("album"):15===e?t.props.showHint("letters"):19===e?t.props.fadeSong():20===e?t.props.stopSong():25===e&&t.props.setStatus("song-points")},t.state={seconds:0},e.startSong(),e.delayStart||t.startTimer(),window.SongTimer={start:t.startTimer,stop:t.stopTimer,reset:t.reset},t}return i(a,[{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){var e=25-this.state.seconds,t=e<=12.5,n=e<=10?"#D0021B":t?"#F5A623":"#009F4D",r=-14.4*(25-e),o=t?180-14.4*(12.5-e):180,a=25-this.state.seconds;return e<0?null:d.createElement("div",{className:"song-timer"},d.createElement("div",{className:"song-timer__circle"},!t&&d.createElement("div",{className:"song-timer__circle__mask --full"},d.createElement("div",{className:"song-timer__circle__mask__fill",style:{transform:"rotate(".concat(r,"deg)"),backgroundColor:n}})),d.createElement("div",{className:"song-timer__circle__mask --half"},d.createElement("div",{className:"song-timer__circle__mask__fill",style:{transform:"rotate(".concat(o,"deg)"),backgroundColor:n}})),d.createElement("div",{className:"song-timer__circle__inner"},a)))}}]),a}(d.Component);var Os=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;return o(this,a),(t=r.call(this,e)).startTimer=function(){t.setState({pause:!1}),t.timer||(t.timer=setInterval(t.tick,1e3))},t.stopTimer=function(){clearInterval(t.timer),t.timer=null},t.getTotalTime=function(){return 1e3*Number("".concat(t.state.seconds,".").concat(t.state.milliseconds))},t.pauseTimer=function(){var e=t.state.milliseconds+Number(Cs()().format("SSS"));t.setState({pause:!0,seconds:t.state.seconds+Math.floor(e/1e3),milliseconds:e%1e3}),t.stopTimer()},t.reset=function(){t.setState({seconds:0})},t.tick=function(){if(!t.state.pause){var e=t.state.seconds+1;t.setState({seconds:e})}},t.state={pause:!0,seconds:0,milliseconds:0},t.timer=null,window.GameTimer={start:t.startTimer,stop:t.stopTimer,pause:t.pauseTimer,reset:t.reset,totalTime:t.getTotalTime},t}return i(a,[{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){var e=this.state.seconds,t=parseInt(e/60),n=parseInt(e%60);return d.createElement("div",{className:"game-timer --".concat(this.state.pause?"pause":"play")},d.createElement("div",{className:"game-timer__label"},"Total:"),d.createElement("div",{className:"game-timer__value"},t,":",n<10?"0".concat(n):n))}}]),a}(d.Component);function Ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ts(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ts(Object(n)).forEac
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ps(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}var Rs=function(e){c(n,e);var t=Ps(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).setStatus=function(e){"get-ready"===r.state.status&&"in-play"===e?(r.props.dispatch((function(e,t){e({type:"START_SOLO_QUIZ"})})),r.setState({status:e})):"in-play"===e?(window.ChatController&&window.ChatController.show(),r.setState({status:e})):"song-points"===e?(window.GameTimer&&window.GameTimer.pause(),window.ChatController&&window.ChatController.hide(),r.setState({status:e})):"next-song"===e&&r.props.dispatch((function(e,t){var n=t().soloQuiz;n.songIndex+1>=n.songs.length&&e((function(e,t){var n=t(),r=n.soloQuiz,o=n.player;window.GameTimer.stop();var a={name:o.name,avatar:o.avatar,time:window.GameTimer.totalTime(),me:!0};e({type:"SAVE_SOLO_QUIZ_TIME",payload:{time:window.GameTimer.totalTime()}}),g().post("/quiz/solo/".concat(r.id,"/rankings"),a).then((function(e){e.data.ranking?console.log("Saved ranking"):alertify.error("Something went wrong!")})).catch((function(e){console.log(e),alertify.error("Something went wrong!")}))})),e({type:"SOLO_QUIZ_NEXT_SONG"})}))},r.state={status:"get-ready"},window.SongController={setStatus:r.setStatus},r}return i(n,[{key:"componenentDidMount",value:function(){window.ChatController&&window.ChatController.show()}},{key:"componentDidUpdate",value:function(e){e.quiz.songIndex!==this.props.quiz.songIndex&&this.setStatus("in-play")}},{key:"render",value:function(){var e=this.props.player,t=this.props.quiz,n=t.songs[t.songIndex],r=this.state.status;return d.createElement("div",{className:"solo-game__song"},d.createElement(Os,null),"get-ready"===r?d.createElement(As,{setStatus:this.setStatus}):"in-play"===r?d.createElement(qs,{setStatus:this.setStatus,quiz:t,song:n}):"song-points"===r?d.createElement(Ms,{setStatus:this.setStatus,song:n,player:e}):"Nope")}}]),n}(d.Component),As=function(e){c(n,e);var t=Ps(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).startTimer=function(){r.timer=setInterval(r.tick,1e3),window.SoundController&&window.SoundController.playBackground("clock")},r.stopTimer=function(){clearInterval(r.timer),r.timer=null},r.tick=function(){var e=r.state.seconds-1;r.setState({seconds:e}),0===e&&(window.SoundController&&window.SoundController.quiet(),r.stopTimer(),r.props.setStatus("in-play"))},r.state={seconds:5},r.startTimer(),r}return i(n,[{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return d.createElement("div",{className:"solo-game__song__overlay"},d.createElement("div",{className:"solo-game__song__overlay__text"},"Get ready!"),d.createElement("div",{className:"solo-game__song__overlay__timer"},this.state.seconds))}}]),n}(d.Component),qs=function(e){c(n,e);var t=Ps(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).componentWillUnmount=function(){window.SoundController.song.removeEventListener("canplay",r.playListener)},r.playListener=function(){console.log("CANPLAY"),window.SongTimer?window.SongTimer.start():(console.error("NO SONGTIMER AAAH"),window.alert("Sorry, something went wrong: song timer failed. Please try reloading the page or let the team know if you keep seeing this error.")),window.GameTimer?window.GameTimer.start():(console.error("NO GAMETIMER AAAH"),window.alert("Sorry, something went wrong: game timer failed. Please try reloading the page or let the team know if you keep seeing this error."))},r.startSong=function(){if(console.log("starting song"),window.SoundController){window.SoundController.song.volume=.4,window.SoundController.song.src=r.props.song.url;try{window.SoundController.song.addEventListener("canplay",r.playListener),window.SoundController.song.play()}catch(e){console.error("CAUGHT",e),window.alert("Sorry, something went wrong with this track. Please try reloading the page or let the team know if you keep seeing this error.")}}else console.log("audio player not there!"),window.alert("Sorry, something went wrong when we tried to play audio on your device. Please try reloading the page or let the team know if you keep seeing this error.")},r.stopSong=function(){r.setState({finished:!0}),window.SoundController&&window.SoundController.song.pause()},r.fadeSong=function(){if(window.SoundController)var e=.4,t=setInterval((function(){e>0?(e-=.04,window.SoundController.song.volume=Math.max(0,e).toFixed(2)):clearInterval(t)}),100)},r.songProgress=function(e){r.setState({blur:10*(10-e)})},r.showHint=function(e){r.setState({hints:zs(zs({},r.state.hints),{},K({},e,!0))})},r.state={blur:100,hints:{hangman:!0,album:!0,letters:!1}},r}return i(n,[{key:"render",value:function(){var e=this,t=this.props.quiz,n=this.props.song,r=n.song,o=t.songs.length;return d.createElement("div",{className:"solo-game__song__panel"},d.createElement(Ns,{delayStart:!0,setStatus:this.props.setStatus,showHint:this.showHint,songProgress:this.songProgress,startSong:this.startSong,stopSong:this.stopSong,fadeSong:this.fadeSong}),d.createElement("div",{className:"solo-game__song__panel__album"},d.createElement("div",{className:"solo-game__song__panel__album__image",style:{backgroundImage:"url(".concat(n.image,")"),filter:"blur(".concat(this.state.blur,"px)")}}),d.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg"},d.createElement("filter",{id:"blur"},d.createElement("feGaussianBlur",{stdDeviation:"100"})))),d.createElement("p",{className:"solo-game__song__panel__header"},"Song ",t.songIndex+1," of ",o," playing"),d.createElement("p",{className:"solo-game__song__panel__playing"},"Guess the ",d.createElement("strong",null,"song/film/show")," name"),d.createElement("div",{className:"solo-game__song__panel__hangman"},d.createElement("span",{className:"solo-game__song__panel__hangman__hint"},"Hint: "),r.split(" ").map((function(t,n){return d.createElement("div",{key:n,className:"solo-game__song__panel__hangman__word"},t.split("").map((function(t,n){var r=e.state.hints.letters&&0===n;return d.createElement("span",{key:n,className:"solo-game__song__panel__hangman__letter ".concat(r?"--revealed":"")},r?t.toUpperCase():"")})))}
2))))}}]),n}(d.Component),Ms=function(e){c(n,e);var t=Ps(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).startTimer=function(){r.timer=setInterval(r.tick,1e3)},r.stopTimer=function(){clearInterval(r.timer),r.timer=null},r.tick=function(){var e=r.state.seconds-1;r.setState({seconds:e}),0===e&&(r.stopTimer(),r.props.setStatus("next-song"))},r.state={seconds:3},r.startTimer(),r}return i(n,[{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){this.props.player;var e=this.props.song,t=e.guesses.find((function(e){return e.correct})),n=t?Cs()(t.time).diff(Cs()(e.startTime),"seconds"):0;return d.createElement("div",{className:"solo-game__song__points"},d.createElement("div",{className:"solo-game__song__points__title"},t?"You got it!":"Time's up!"),d.createElement("div",{className:"solo-game__song__points__album",style:{backgroundImage:"url(".concat(e.image,")"),filter:"blur(".concat(this.state.blur,"px)")}}),d.createElement("div",{className:"solo-game__song__points__description"},"It was â",e.song,"â by ",e.artist,"."),d.createElement("div",{className:"solo-game__song__points__list"},d.createElement("div",{className:"solo-game__song__points__item__points"},t?"You guessed it in ".concat(n," seconds!"):"You couldn't get this one on time!")))}}]),n}(d.Component);function Is(e,t){var n,r,o=e,a=t+"",i=[],s=Math.min;if(!o||!a)return(a||o).length;for(n=0;n<=a.length;i[n]=[n++]);for(r=0;r<=o.length;i[0][r]=r++);for(n=1;n<=a.length;n++)for(r=1;r<=o.length;r++)i[n][r]=a.charAt(n-1)==o.charAt(r-1)?i[n-1][r-1]:i[n][r]=s(i[n-1][r-1]+1,s(i[n][r-1]+1,i[n-1][r]+1));return i[a.length][o.length]}n(1572),n(9876),n(3712),n(2979),n(6160),n(1849),n(5540),n(896),n(936),n(40),n(5923),n(5246),n(7635),n(8774),n(8373),n(9706),n(6964),n(4630),n(5389),n(1244),n(9981),n(3807),n(2627),n(4950),n(1964);var Ds=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;return o(this,a),(t=r.call(this,e)).onGuessChange=function(e){return t.setState({guess:e})},t.isCorrectGuess=function(e,t){return t.toLowerCase().replace(/\([^)]*\)/g,"").replace(/[^a-zA-Z0-9\s\-\&]/g,"").trim()===e.toLowerCase().replace(/\([^)]*\)/g,"").replace(/[^a-zA-Z0-9\s\-\&]/g,"").trim()},t.onSubmitGuess=function(e){e.preventDefault();var n=t.state.guess,r=t.props.quiz,o=(t.props.player,r.songs[r.songIndex]),a=Cs()().diff(Cs()(o.startTime),"seconds")>30,i=t.isCorrectGuess(o.song,n),s=!(a&&i);t.setState({guess:""}),s&&t.props.dispatch(function(e,t){return function(n,r){n({type:"SOLO_QUIZ_GUESS",payload:{guess:e,correct:t}})}}(n,i)),i&&(window.SongController&&window.SongController.setStatus("song-points"),window.SoundController&&window.SoundController.song.pause())},t.showChat=function(){t.state.hide&&t.setState({hide:!1})},t.hideChat=function(){t.state.hide||t.setState({hide:!0})},t.focusChatInput=function(){t.refs["chat-input"].focus()},t.isCloseAnswer=function(e,t){return Is(e.toLowerCase(),t.toLowerCase())<2},t.state={guess:"",hide:!1},window.ChatController={hide:t.hideChat,show:t.showChat},t}return i(a,[{key:"componentDidMount",value:function(){this.focusChatInput()}},{key:"componentWillUnmount",value:function(){window.ChatController=void 0}},{key:"componentDidUpdate",value:function(e){var t=document.getElementById("chat");t.scrollTop=t.scrollHeight,e.quiz.songIndex!==this.props.quiz.songIndex&&(this.setState({guess:""}),this.focusChatInput())}},{key:"render",value:function(){var e=this,t=this.props.quiz,n=this.props.player,r=t.songs,o=r[t.s
2ongIndex],a=!!t.finishedTime||!!o.finishTime,i=t.finishedTime?"Game over!":"Your guess";return d.createElement("div",{className:"solo-game__chat".concat(this.state.hide?" --hide":"")},d.createElement("div",{id:"chat",className:"solo-game__chat__logs"},r.filter((function(e,n){return t.songIndex>=n})).map((function(t,r){return[d.createElement("div",{key:"chat-item-".concat(r,"-song"),className:"solo-game__chat__log --info"},t.startTime?"Playing song number ".concat(r+1,"!"):""),t.guesses.map((function(r,o){var a=Cs()(r.time).diff(Cs()(t.startTime),"seconds"),i=e.isCloseAnswer(t.song,r.text);return r.correct?d.createElement("div",{key:"chat-item-".concat(o,"-guess"),className:"solo-game__chat__log --success"},"You guessed the song in ",a," seconds!"):i?d.createElement("div",{key:"chat-item-".concat(o,"-guess"),className:"solo-game__chat__log --info"},"You are close!"):d.createElement("div",{key:"chat-item-".concat(o,"-guess"),className:"solo-game__chat__log"},d.createElement("strong",null,n.name,":")," ",r.text)}))]}))),d.createElement("form",{onSubmit:this.onSubmitGuess},d.createElement(I,{ref:"chat-input",containerClass:"solo-game__chat__input",placeholder:i,value:this.state.guess,disabled:a,onChange:this.onGuessChange})))}}]),a}(d.Component);var js={background:"/sounds/quiz/DrumBeat.mp3",clock:"/sounds/quiz/clock.mp3",click:"/sounds/quiz/click.mp3",correct:"/sounds/quiz/ding.mp3",wrong:"/sounds/quiz/wrong.mp3"},Ls=["/sounds/quiz/Guitar-1.mp3","/sounds/quiz/Guitar-2.mp3","/sounds/quiz/Guitar-3.mp3","/sounds/quiz/Guitar-4.mp3","/sounds/quiz/Guitar-5.mp3","/sounds/quiz/Guitar-6.mp3"],Bs=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){var e;return o(this,a),(e=r.call(this)).play=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;t&&(e.audio.src=t,e.audio.volume=n,e.audio.play())},e.playSound=function(t){var n;console.log("playing",t),"join"===t?(n=Ls[e.state.joinCounter],e.setState({joinCounter:(e.state.joinCounter+1)%Ls.length})):n=js[t],console.log(n),n&&e.play(n)},e.playBackground=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"background";console.log("playing background music..."),e.quiet(),e.audioBG.src=js[t],e.audioBG.volume=.3,e.audio
2BG.loop=!0;var n=e.audioBG.play();void 0!==n&&n.then((function(e){})).catch((function(n){console.log(n),setTimeout((function(){return e.playBackground(t)}),3e3),console.log("new timeout done")}))},e.quiet=function(){console.log("silencing music"),e.song&&e.song.pause(),e.audio&&e.audio.pause(),e.audioBG&&e.audioBG.pause()},e.state={joinCounter:0},e.audio=new Audio,e.audioBG=new Audio,e.song=new Audio,e.audio.play(),e.audioBG.play(),e.song.play(),console.log("Audio engine started"),new(window.AudioContext||window.webkitAudioContext),window.SoundController={audio:e.audio,audioBG:e.audioBG,song:e.song,playSound:e.playSound,playBackground:e.playBackground,quiet:e.quiet},e}return i(a,[{key:"render",value:function(){return null}}]),a}(d.Component);var Us=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){var e;o(this,a);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).trackLink=function(e){fe("Songlio - Share",{url:document.URL,source:e})},e}return i(a,[{key:"render",value:function(){var e=this.props.quiz,t="https://songl.io?quiz=".concat(e.id),n=("https://www.facebook.com/dialog/share?app_id=1489183578036933&display=popup&href=".concat(encodeURIComponent("".concat(t,"?s=21")),"&redirect_uri=").concat(encodeURIComponent(t)),"https://api.whatsapp.com/send?text=Check out Songlio, a free music quiz game: ".concat(encodeURIComponent("".concat(t,"?s=26")))),r="mailto:?subject=Music Quiz Game&body=Check out Songlio, a free music quiz game: ".concat(t,"?s=24"),o="http://twitter.com/intent/tweet?text=Check out Songlio, a free music quiz game: ".concat(t,"?s=23");return d.createElement("div",null,d.createElement("div",{className:"solo-game__share"},d.createElement("div",{className:"solo-game__share__header"},d.createElement("span",{className:"solo-game__share__header__icon"},"â¡"),"Challenge a friend to beat you!"),d.createElement("div",{className:"solo-game__share__list"},d.createElement("a",{target:"_blank",href:n,className:"solo-game__share__icon fa fa-whatsapp",onClick:this.trackLink.bind(this,"whatsapp")}),d.createElement("a",{target:"_blank",href:o,className:"solo-game__share__icon fa fa-twitter",onClick:this.trackLink.bind(this,"twitter")}),d.createElement("a",{target:"_blank",href:r,className:"solo-game__share__icon fa fa-envelope-o",onClick:this.trackLink.bind(this,"email")}))),d.createElement("div",{className:"solo-game__share__link"},d.createElement("strong",null,"Direct link to quiz:")," ",t))}}]),a}(d.Component);var Fs=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){var e;o(this,a);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).getWinnerText=function(e){return[{percentage:100,title:"Youâre a true musical expert!",description:"Have you considered hosting your own radio show?"},{percentage:80,title:"Great job!",description:"Shoot for a perfect score next time!"},{percentage:60,title:"An adequate musical performance",description:"Keep on practising, Beethoven!"},{percentage:40,title:"Room to improve",description:"Practice makes perfect, they say"},{percentage:0,title:"Better luck next time...",description:"âtis better to have played and lost than never to have played at allâ"}].find((function(t){return e>=t.percentage}))},e.getRankingsText=function(){var t=e.props.rankings,n=e.props.quiz.totalTime;return t.findIndex((function(e){return n<e.time}))+1},e.onMoreQuizzes=function(){e.props.dispatch((function(e,t){e({type:"SOLO_QUIZ_RESTART"})}))},e.onPlayAgain=function(){e.props.dispatch(ge())},e.onCreateQuiz=function(){e.props.dispatch(E())},e.getFormattedTime=function(){var t=e.props.quiz.totalTime,n=parseInt(t%1e3),r=parseInt(t/1e3%60),o=parseInt(t/6e4);return{min:o<10?"0".concat(o):o,seconds:r<10?"0".concat(r):r,milliseconds:n}},e.formatRank=function(e){var t=e%10,n=e%100;return 1==t&&11!=n?e+"st":2==t&&12!=n?e+"nd":3==t&&13!=n?e+"rd":e+"th"},e}
2return i(a,[{key:"componentDidMount",value:function(){window.ChatController&&window.ChatController.hide(),this.props.dispatch((function(e,t){var n=t(),r=n.account,o=n.soloQuiz;r.loggedIn&&localStorage.SONGLIO_TOKEN&&(g().defaults.headers.common["x-access-token"]=localStorage.SONGLIO_TOKEN,g().post("/quiz/solo/".concat(o.id,"/completed")).then((function(t){t.data,e(j())})).catch((function(e){console.log(e),console.error("Something went wrong.")})))}))}},{key:"render",value:function(){var e=this.props.quiz,t=(this.props.player,e.songs.filter((function(e){return(e.guesses||[]).some((function(e){return e.correct}))})).length),n=e.songs.length,r=t/n*100,o=this.getWinnerText(r),a=this.getFormattedTime(),i=this.getRankingsText();return d.createElement("div",{className:"solo-game__score__wrapper"},d.createElement("div",{className:"solo-game__score"},d.createElement("div",{className:"solo-game__score__title"},o.title),d.createElement("div",{className:"solo-game__score__description"},o.description),d.createElement("div",{className:"solo-game__score__result"},d.createElement("strong",null,t)," out of ",d.createElement("strong",null,n)," answers correct."),d.createElement("div",{className:"solo-game__score__time"},d.createElement("span",null,a.min),":",d.createElement("span",null,a.seconds),".",d.createElement("span",{className:"--milliseconds"},a.milliseconds)," ",e.totalTime<6e4?"seconds":"minutes"),!!i&&d.createElement("div",{className:"solo-game__score__ranking"},"â New ranking: ",d.createElement("span",null,this.formatRank(i),"!")),d.createElement("div",{className:"solo-game__score__action"},d.createElement("span",{onClick:this.onPlayAgain},"Replay this quiz"),d.createElement("span",{className:"or"},"or"),d.createElement("span",{onClick:this.onMoreQuizzes},"Play another quiz")),d.createElement(Us,{quiz:e}),d.createElement("div",{className:"solo-game__score__action"},d.createElement("span",{onClick:this.onCreateQuiz},"Create a quiz"),d.createElement("span",{className:"or"},"or"),d.createElement("span",null,d.createElement("a",{href:"/quiz?multiplayer"},"Join a multiplayer game")))))}}]),a}(d.Component);var Ys=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){var e;o(this,a);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).onLogout=function(){e.sounds.quiet()},e}return i(a,[{key:"render",value:function(){var e=this,t=this.props.dispatch,n=this.props.quiz,r=this.props.quiz.isLoading,o=this.props.player,a=this.props.account,i=n.rankings,s=n.songIndex>=n.songs.length;return d.createElement("div",{ref:"game",className:"solo-game"},d.createElement(vr,{dispatch:t,quiz:n,onLogout:this.onLogout}),d.createElement(Bs,{ref:function(t){return e.sounds=t}}),n.id?s?d.createElement("div",{className:"solo-game__body"},d.createElement(Ss,{rankings:i,player:o,quiz:n}),d.createElement(Fs,{dispatch:t,player:o,quiz:n,rankings:i})):d.createElement("div",{className:"solo-game__body"},d.createElement(Ss,{rankings:i}),d.createElement("div",{className:"solo-game__body__game"},d.createElement(Rs,{dispatch:t,player:o,quiz:n}),d.createElement(Ds,{dispatch:t,player:o,quiz:n}))):d.createElement("div",{className:"solo-game__body"},d.createElement(ws,{dispatch:t,quizzes:n.quizzes,loadedStandardQuizzes:n.loadedStandardQuizzes,loadedCustomQuizzes:n.loadedCustomQuizzes,account:a,pageInfo:n.info,isLoading:r,onPageChange:this.onPageChange})),d.createElement("footer",{className:"quiz-game__footer"},"© ",(new Date).getFullYear()," Encore Technologies Limited, All Rights Reserved"))}}]),a}(d.Component),Ws=n(9923),Hs=n.n(Ws);var Gs=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){return o(this,a),r.apply(this,arguments)}return i(a,[{key:"render",value:function(){return d.createElement(de,{id:"Instructions",show:!0,onHide:this.props.onClose},d.createElement("div",{className:"quiz-game__info"},d.createElement("div",{className:"quiz-game__info__close fa fa-times",onClick:this.props.onClose}),d.createElement("div",{className:"quiz-game__info__title"},"Songlio"),d.createElement("div",{className:"quiz-game__info__subtitle"},"How to play:"),d.createElement("ol",null,d.createElement("li",null,"Everyone chooses a song (check the ",d.createElement("strong",null,"theme")," before you pick)"),d.createElement("li",null,"A ",d.createElement("strong",null,"20 second clip")," from the first playerâs song will start"),d.createElement("li",null,"As soon as you know the song, type the ",d.createElement("strong",null,"song name")," into the guess box (bottom right corner) and hit enter")),d.createElement("div",{className:"quiz-game__info__subtitle"},"Scoring:"),d.createElement("ul",null,d.createElement("li",null,"â±ï¸ The faster you guess the song, the more points youâll get!"),d.createElement("li",null,"â When your song plays, youâll get bonus points depending on how many people can guess it!"),d.createElement("li",null,"ð Whoever has the most points after all the songs have played is crowned the undisputed ",d.createElement("strong",null,"Songlio champion"),"! ...at least, until next time!")),d.createElement("div",{className:"quiz-game__info__footer"},d.createElement(A,{primary:!0,label:"Got it",onClick:this.props.onClose}))))}}]),a}(d.Component);function Vs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}var Qs=function(e){c(n,e);var t=Vs(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).onLogout=function(e){(!0===e||(r.props.account&&r.props.account.loggedIn?window.confirm("Are you sure? You will lose all progress in this game."):window.confirm("Are you sure? You will lose all progress associated with this name.")))&&(r.props.onLogout(),r.props.dispatch(R())
2)},r.copyToClipboard=function(){r.linkRef.select(),document.execCommand("Copy"),alertify.success("Link copied to clipboard!")},r.onInstructionsClick=function(){r.setState({sideMenu:!1})},r.onToggleSideMenu=function(){return r.setState({sideMenu:!r.state.sideMenu})},r.onInstructionsClick=function(){r.setState({sideMenu:!1,instructions:!0})},r.onCloseInstructions=function(){return r.setState({instructions:!1})},r.state={sideMenu:!1,instructions:!1},r}return i(n,[{key:"render",value:function(){var e=this,t=this.props.quiz;return d.createElement(d.Fragment,null,d.createElement("div",{key:"nav-bar",className:"quiz-game__nav"},d.createElement("div",{className:"quiz-game__nav__left"},d.createElement("div",{className:"quiz-game__nav__menu__icon",onClick:this.onToggleSideMenu}),d.createElement("div",{className:"quiz-game__nav__title"},"Songlio")),d.createElement("div",{className:"quiz-game__nav__right"},d.createElement("div",{className:"quiz-game__nav__room"},d.createElement("div",{className:"quiz-game__nav__room__label"},"Multiplayer game"),d.createElement("div",{className:"quiz-game__nav__room__code"},((t.players||[])[0]||{}).name||"Someone","âs room"),d.createElement("input",{ref:function(t){return e.linkRef=t},className:"quiz-game__nav__room__input",defaultValue:"https://songl.io?room=".concat(t.room)})),d.createElement("div",{className:"quiz-game__nav__room__link",onClick:this.copyToClipboard},d.createElement("span",{className:"quiz-game__nav__room__link__label"},"Copy link"),d.createElement("span",{className:"fa fa-chain"})),d.createElement("a",{onClick:this.onInstructionsClick,"data-tip":"See instructions",className:"quiz-game__nav__right__item"},d.createElement("span",{className:"fa fa-question-circle-o"})),d.createElement("a",{href:"https://forms.gle/LE6XR43PV2WZYtmp6",target:"_blank","data-tip":"Give feedback",className:"quiz-game__nav__right__item"},d.createElement("span",{className:"fa fa-bullhorn"})),d.createElement("a",{"data-tip":"Leave Game",onClick:this.onLogout,className:"quiz-game__nav__right__item"},d.createElement("span",{className:"fa fa-sign-out"})),d.createElement(H,{onLeave:this.onLogout}))),d.createElement($s,{key:"side-menu",show:this.state.sideMenu,onToggleSideMenu:this.onToggleSideMenu,onInstructionsClick:this.onInstructionsClick,onLogout:this.onLogout}),!!this.state.instructions&&d.createElement(Gs,{key:"instructions",onClose:this.onCloseInstructions}),d.createElement(yr,{place:"bottom",effect:"solid",clickable:!0,delayShow:50,backgroundColor:"#414141",textColor:"white",className:"quiz-nav-tooltip"}))}}]),n}(d.Component),$s=function(e){c(n,e);var t=Vs(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n,[{key:"render",value:function(){return d.createElement("section",{className:"quiz-game__side-menu"},d.createElement("div",{className:"quiz-game__side-menu__backdrop --".concat(this.props.show?"show":"hide"),onClick:this.props.onToggleSideMenu}),d.createElement("div",{className:"quiz-game__side-menu__container --".concat(this.props.show?"show":"hide")},d.createElement("div",{className:"quiz-game__side-menu__header"},d.createElement("div",{className:"quiz-game__side-menu__icon",onClick:this.props.onToggleSideMenu}),d.createElement("div",{className:"quiz-game__side-menu__logo",onClick:this.props.onToggleSideMenu},"Songlio")),d.createElement("div",{className:"quiz-game__side-menu__body"},d.createElement(A,{secondary:!0,label:"Instructions",onClick:this.props.onInstructionsClick}),d.createElement("a",{href:"https://forms.gle/LE6XR43PV2WZYtmp6",target:"_blank",className:"quiz-game__side-menu__feedback"},"Feedback"),d.createElement(A,{primary:!0,label:"Leave Game",onClick:this.props.onLogout})),d.createElement("div",{className:"quiz-game__side-menu__footer"},"© ",(new Date).getFullYear()," Encore Technologies Limited, All Rights Reserved")))}}]),n}(d.Component);function Zs(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ks(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ks(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function Ks(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Xs=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){var e;o(this,a);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).calculatePoints=function(e,t,n){var r,o=0,a=0,i=Zs(t);try{for(i.s();!(r=i.n()).done;){var s,c=Zs(r.value.guesses||[]);try{for(c.s();!(s=c.n()).done;){var u=s.value;u.playerId===e&&u.correct&&u.points&&(o+=u.points)}}catch(e){c.e(e)}finally{c.f()}}}catch(e){i.e(e)}finally{i.f()}var l=t.find((function(t){return t.playerId===e}));if(l){var f=(l.guesses||[]).filter((function(e){return e.correct})).length;a=parseInt(f/n*100)||0}return o+a},e.calculateTotalPoints=function(t,n){var r,o=0,a=Zs(e.props.quiz.rounds);try{for(a.s();!(r=a.n()).done;){var i=r.value;o+=e.calculatePoints(t,i.songs,n)}}catch(e){a.e(e)}finally{a.f()}return o},e.calculateRanks=function(t){var n=e.props.quiz,r=n.rounds[n.activeRound],o=!(!r||!r.started);return t[0].host=!0,t.sort((function(e,t){return e.roundPoints>t.roundPoints?-1:1})),t.map((function(e,t){return e.rank=o&&t>=0?t+1:0,e.leader=o&&0===t,e}))},e}return i(a,[{key:"formatRank",value:function(e){var t=e%10,n=e%100;return 1==t&&11!=n?e+"st":2==t&&12!=n?e+"nd":3==t&&13!=n?e+"rd":e+"th"}},{key:"render",value:function(){var e=this,t=this.props.player,n=this.props.quiz,r=n.rounds[n.activeRound],o=!(!r||!r.started),a=r&&r.songs||[],i=r?a[r.activeSong]:null,s=!(!i||!i.startTime),c=r.totalPlayers||2,u=(n.players||[]).slice();u=u.filter((function(e){return!e.kicked})).map((function(t){return t.pickedSong=!!r&&a.some((function(e){return e.playerId===t._id&&!!e.song})),t.roundPoints=e.calculatePoints(t._id,a,c-1),t.totalPoints=e.calculateTotalPoints(t._id,c-1),t}));var l=!!((u=this.calculateRanks(u)).find((function(e){return e._id===t.id}))||{}).host;return d.createElement("div",{className:"quiz-game__players"},u.map((function(n,r){return d.createElement("div",{key:"player-".concat(r),className:"quiz-game__player"},d.createElement("div",{className:"quiz-game__player__top"},d.createElement("div",{className:"quiz-game__player__avatar",style:{backgroundImage:"url(https://storage.googleapis.com/encore_songlio/avatars/".concat(n.avatar,".png)")}},n.leader&&d.createElement("div",{className:"quiz-game__player__leader"},"ð")),d.createElement("div",{className:"quiz-game__player__content"},d.createElement("div",{className:"quiz-game__player__name"},n.host?d.createElement("div",{className:"quiz-game__player__host"},t.id===n._id?"Host (you):":"Host:"):t.id===n._id?d.createElement("div",{className:"quiz-game__player__host"},"You:"):null,d.createElement("div",{className:"quiz-game__player__name"},n.name)),o?n.connected?s?d.createElement("div",{className:"quiz-game__player__points__total"},"Total: ",n.totalPoints):n.pickedSong?d.createElement("div",{className:"quiz-game__player__status"},d.createElement("span",{className:"quiz-game__player__status__icon fa fa-check-circle --success"}),d.createElement("span",{className:"quiz-game__player__status__text"},"Picked song")):d.createElement("div",{className:"quiz-game__player__status"},d.createElement("span",{className:"quiz-game__player__status__icon fa fa-question-circle --pending"}),d.createElement("span",{className:"quiz-game__player__status__text"},"Picking song")):d.createElement("div",{className:"quiz-game__player__connection"},d.createElement("span",{className:"quiz-game__player__connection__icon fa fa-exclamation-triangle"}),"Disconnected"):null),l&&t.id!==n._id&&d.createElement("div",{className:"quiz-game__player__kick",onClick:e.props.onKick.bind(e,n._id)},"KICK"),d.createElement("div",{className:"quiz-game__player__points"},d.createElement("div",{className:"quiz-game__player__points__rank"},n.rank?e.formatRank(n.rank):"-"),d.createElement("div",{className:"quiz-game__player__points__round"}
2,n.roundPoints||"0"))))})))}}]),a}(d.Component);var Js=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;return o(this,a),(t=r.call(this,e)).onGuessChange=function(e){t.setState({guess:e})},t.isCorrectGuess=function(e,t){return t.toLowerCase().replace(/\([^)]*\)/g,"").replace(/[^a-zA-Z0-9\s\-\&]/g,"").trim()===e.toLowerCase().replace(/\([^)]*\)/g,"").replace(/[^a-zA-Z0-9\s\-\&]/g,"").trim()},t.onSubmitGuess=function(e){e.preventDefault();var n,r=t.props.player,o=t.props.song,a=Cs()().diff(Cs()(o.startTime),"seconds")>30,i=(o.guesses||[]).some((function(e){return e.playerId===r.id&&e.correct}))&&t.isCorrectGuess(o.song,t.state.guess),s=!(a&&t.isCorrectGuess(o.song,t.state.guess)||i);t.setState({guess:""}),s&&t.props.dispatch((n=t.state.guess,function(e,t){var r=t(),o=r.quiz,a=r.player;g().post("/quiz/guess",{code:o.code,playerId:a.id,guess:n})}))},t.showChat=function(){t.state.hide&&t.setState({hide:!1})},t.hideChat=function(){t.state.hide||t.setState({hide:!0})},t.focusChatInput=function(){t.refs["chat-input"].focus()},t.calculateSongOwnerPoints=function(e,t){var n=(e.guesses||[]).filter((function(e){return e.correct})).length;return parseInt(n/t*100)||0},t.isCloseAnswer=function(e,t){return Is(e.toLowerCase(),t.toLowerCase())<2},t.state={guess:"",hide:!1},window.ChatController={hide:t.hideChat,show:t.showChat},t}return i(a,[{key:"componentDidMount",value:function(){this.focusChatInput()}},{key:"componentWillUnmount",value:function(){window.ChatController=void 0}},{key:"componentDidUpdate",value:function(e){var t=document.getElementById("chat");t.scrollTop=t.scrollHeight,e.song&&this.props.song&&e.song.song!==this.props.song.song&&(this.setState({guess:""}),this.focusChatInput())}},{key:"render",value:function(){var e=this,t=this.props.quiz,n=this.props.player,r=t.rounds[t.activeRound],o=this.props.song.playerId===n.id,a=t.finished||r.finished||o,i=t.finished||r.finished?"Game over!":o?"Your song!":"Your guess";return d.createElement("div",{className:"quiz-game__chat".concat(this.state.hide?" --hide":"")},d.createElement("div",{id:"chat",className:"quiz-game__chat__logs"},r.songs.filter((function(e,t){return r.activeSong>=t})).map((function(n,o){var a=t.players.find((function(e){return e._id===n.playerId})),i=r.activeSong>o,s=(r.totalPlayers||2)-1,c=e.calculateSongOwnerPoints(n,s);return d.createElement(d.Fragment,{key:"chat-item-".concat(o,"-fragment")},!!a&&d.createElement("div",{key:"chat-item-".concat(o,"-song"),className:"quiz-game__chat__log --info"},"Guess ",a.name,"âs song!"),n.guesses.map((function(r,o){var a=t.players.find((function(e){return e._id===r.playerId})),i=e.isCloseAnswer(n.song,r.text);return r.correct?d.createElement("div",{key:"chat-item-".concat(o,"-guess"),className:"quiz-game__chat__log --success"},a.name," guessed the song! +",r.points," points"):i?d.createElement("div",{key:"chat-item-".concat(o,"-guess"),className:"quiz-game__chat__log --info"},a.name," is close!"):d.createElement("div",{key:"chat-item-".concat(o,"-guess"),className:"quiz-game__chat__log"},d.createElement("strong",null,a.name,":")," ",r.text)})),!!a&&!(!i&&!r.finished)&&d.createElement("div",{key:"chat-item-".concat(o,"-points"),className:"quiz-game__chat__log --success"},a.name," gained ",c," points!"))}))),d.createElement("form",{onSubmit:this.onSubmitGuess},d.createElement(I,{ref:"chat-input",containerClass:"quiz-game__chat__input",placeholder:i,value:this.state.guess,disabled:a,onChange:this.onGuessChange})))}}]),a}(d.Component);var ec=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;o(this,a),(t=r.call(this,e)).startTimer=function(){t.timer=setInterval(t.tick,1e3)},t.stopTimer=function(){clearInterval(t.timer),t.timer=null},t.reset=function(){t.setState({seconds:0})},t.tick=function(){var e=t.state.seconds+1;t.setState({seconds:e}),e>15&&e<=25&&t.props.songProgress(e-15),5===e?t.props.startSong():10===e?t.props.showHint("hangman"):15===e?t.props.showHint("album"):20===e?t.props.showHint("letters"):24===e?t.props.fadeSong():25===e?t.props.stopSong():30===e?t.props.showPoints():e>=35&&t.props.stopGuessing()};var n=e.song,i=n.startTime?Cs()().diff(Cs()(n.startTime),"seconds"):0;return t.state={seconds:i},t.startTimer(),t}
2return i(a,[{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"componentDidUpdate",value:function(e){(!!e.song!=!!this.props.song||e.song&&e.song._id!==this.props.song._id)&&this.reset()}},{key:"render",value:function(){var e=30-this.state.seconds,t=e<=15,n=e<=10?"#D0021B":t?"#F5A623":"#009F4D",r=-12*(30-e),o=t?180-12*(15-e):180,a=this.state.seconds<5?5-this.state.seconds:this.state.seconds<=30?30-this.state.seconds:0;return e<0?null:d.createElement("div",{className:"quiz-game__song__timer"},d.createElement("div",{className:"quiz-game__song__timer__circle"},!t&&d.createElement("div",{className:"quiz-game__song__timer__circle__mask --full"},d.createElement("div",{className:"quiz-game__song__timer__circle__mask__fill",style:{transform:"rotate(".concat(r,"deg)"),backgroundColor:n}})),d.createElement("div",{className:"quiz-game__song__timer__circle__mask --half"},d.createElement("div",{className:"quiz-game__song__timer__circle__mask__fill",style:{transform:"rotate(".concat(o,"deg)"),backgroundColor:n}})),d.createElement("div",{className:"quiz-game__song__timer__circle__inner"},a)))}}]),a}(d.Component);var tc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){var e;o(this,a);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).generateListData=function(){var t=e.props.quiz,n=t.rounds[t.activeRound],r=e.props.song,o=n&&n.totalPlayers||2;return t.players.filter((function(e){return!e.kicked})).map((function(e){var t=r.guesses.find((function(t){return t.playerId===e._id&&t.correct})),n=r.guesses.filter((function(e){return e.correct})).length,a=r.playerId===e._id,i=parseInt(n/(o-1)*100),s=a?i:t&&t.points||0;return{name:e.name,avatar:e.avatar,points:s}})).sort((function(e,t){return e.points>t.points?-1:1}))},e}return i(a,[{key:"render",value:function(){var e=this.generateListData(),t=this.props.song;return d.createElement("div",{className:"quiz-game__song__points"},d.createElement("div",{className:"quiz-game__song__points__title"},"Time's up!"),d.createElement("div",{className:"quiz-game__song__points__description"},"The song was â",t.song,"â by ",t.artist,"."),d.createElement("div",{className:"quiz-game__song__points__list"},e.map((function(e,t){return d.createElement("div",{key:"song-points-".concat(t),className:"quiz-game__song__points__item"},d.createElement("div",{className:"quiz-game__song__points__item__avatar",style:{backgroundImage:"url(https://storage.googleapis.com/encore_songlio/avatars/".concat(e.avatar,".png)")}}),d.createElement("div",{className:"quiz-game__song__points__item__name"},e.name),d.createElement("div",{className:"quiz-game__song__points__item__points"},e.points))}))))}}]),a}(d.Component);function nc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nc(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;o(this,a),(t=r.call(this,e)).reset=function(){t.setState({started:!1,finished:!1,showPoints:!1,blur:100,hints:{hangman:!1,album:!1,letters:!1}}),window.ChatController&&window.ChatController.show()},t.onJoinClick=function(){t.setState({showOverlay:!1}),t.state.finished||t.startSong()},t.startSong=function(){window.SoundController?(t.setState({started:!0}),window.SoundController.song.volume=.4,window.SoundController.song.src=t.props.song.url,window.SoundController.song.play()):(console.log("audio player not there!"),window.alert("Sorry, something went wrong with this track. Please try reloading the page."))},t.stopSong=function(){t.setState({finished:!0}),window.SoundController&&window.SoundController.song.pause()},t.fadeSong=function(){if(window.SoundController)var e=.4,t=setInterval((function(){e>0?(e-=.04,window.SoundController.song.volume=Math.max(0,e).toFixed(2)):clearInterval(t)}),100)},t.stopGuessing=function(){},t.songProgress=function(e){t.setState({blur:10*(10-e)})},t.showHint=function(e){t.setState({hints:rc(rc({},t.state.hints),{},K({},e,!0))})},t.showPoints=function(){t.setState({showPoints:!0}),window.ChatController&&window.ChatController.hide()};var n=e.song||{},i=!!n.startTime&&Cs()().diff(Cs()(n.startTime),"seconds")>5,s=!!n.startTime&&Cs()().diff(Cs()(n.startTime),"seconds")>30,c=!!n.startTime&&Cs()().diff(Cs()(n.startTime),"seconds")>=10,u=!!n.startTime&&Cs()().diff(Cs()(n.startTime),"seconds")>=15,l=!!n.startTime&&Cs()().diff(Cs()(n.startTime),"seconds")>=20;return t.state={started:i,finished:s,showPoints:s,showOverlay:i&&!s,blur:100,hints:{hangman:c,album:u,letters:l}},t}
2return i(a,[{key:"componenentDidMount",value:function(){window.ChatController&&window.ChatController.show()}},{key:"componentDidUpdate",value:function(e){(!!e.song!=!!this.props.song||e.song&&e.song._id!==this.props.song._id)&&this.reset()}},{key:"render",value:function(){var e=this,t=this.props.quiz,n=(t.rounds||[])[t.activeRound],r=this.props.song,o=n.songs.length||1,a=this.props.player,i=t.players.find((function(e){return e._id===r.playerId})),s=(i&&i.name,r.song),c=this.state.blur;return d.createElement("div",{className:"quiz-game__guess"},d.createElement("div",{className:"quiz-game__song"},this.state.started?this.state.showOverlay?d.createElement("div",{className:"quiz-game__song__overlay --actionable",onClick:this.onJoinClick},"Click to join"):null:d.createElement("div",{className:"quiz-game__song__overlay"},"Get ready!"),d.createElement(ec,{song:r,className:this.state.started?"":"--overlay",showHint:this.showHint,songProgress:this.songProgress,startSong:this.startSong,stopSong:this.stopSong,fadeSong:this.fadeSong,stopGuessing:this.stopGuessing,showPoints:this.showPoints}),this.state.showPoints?d.createElement(tc,{quiz:t,song:r,player:a}):d.createElement("div",{className:"quiz-game__song__panel"},d.createElement("div",{className:"quiz-game__song__album"},d.createElement("div",{className:"quiz-game__song__album__image",style:{backgroundImage:"url(".concat(r.image,")"),filter:"blur(".concat(c,"px)")}}),d.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg"},d.createElement("filter",{id:"blur"},d.createElement("feGaussianBlur",{stdDeviation:"100"})))),d.createElement("p",{className:"quiz-game__song__header"},"Song ",n.activeSong+1," of ",o," playing"),d.createElement("p",{className:"quiz-game__song__description"},"Guess the ",d.createElement("strong",null,"song name")),d.createElement("div",{className:"quiz-game__song__hangman"},d.createElement("span",{className:"quiz-game__song__hangman__hint"},"Hint: "),s.split(" ").map((function(t,n){return d.createElement("div",{key:n,className:"quiz-game__song__hangman__word"},t.split("").map((function(t,n){var r=e.state.hints.letters&&0===n;return d.createElement("span",{key:n,className:"quiz-game__song__hangman__letter ".concat(r?"--revealed":"")},r?t.toUpperCase():"")})))}))))))}}]),a}(d.Component);function ac(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ic(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ic(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function ic(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){var e;return o(this,a),(e=r.call(this)).getRankings=function(){var t=e.props.quiz,n=t.rounds[t.activeRound];return t.players.filter((function(e){return!e.kicked})).map((function(t){var r=e.calculatePoints(n,t._id),o=e.calculateTotalPoints(t._id);return t.points=r,t.totalPoints=o,t})).sort((function(e,t){return e.points>t.points?-1:1})).slice(0,3)},e.calculatePoints=function(e,t){var n,r=(e.totalPlayers||2)-1,o=0,a=0,i=ac(e.songs);try{for(i.s();!(n=i.n()).done;){var s,c=ac(n.value.guesses||[]);try{for(c.s();!(s=c.n()).done;){var u=s.value;u.playerId===t&&u.correct&&u.points&&(o+=u.points)}}catch(e){c.e(e)}finally{c.f()}}}catch(e){i.e(e)}finally{i.f()}var l=e.songs.find((function(e){return e.playerId===t}));if(l){var f=(l.guesses||[]).filter((function(e){return e.correct})).length;a=parseInt(f/r*100)||0}return o+a},e.calculateTotalPoints=function(t){var n,r=0,o=ac(e.props.quiz.rounds);try{for(o.s();!(n=o.n()).done;){var a=n.value;r+=e.calculatePoints(a,t)}}catch(e){o.e(e)}finally{o.f()}return r},e.getWinnerText=function(){var e=["you have the best ears in the room!","you are a certified musical genius!","you can now delete Shazam!","your parents will be very proud!","give yourself a pat on the back!","a great performance (assuming you weren't cheating)!","lovely stuff!","you are the king of the music castle!","you may
2now award yourself a gold star!"];return e[Math.floor(Math.random()*e.length)]},e.onThemeSelect=function(t){var n=t.target.value,r=null;("Custom"!==n||(r=prompt("Enter a custom theme:")))&&n&&e.setState({theme:n,customTheme:r,quiz:""})},e.onQuizSelect=function(t){var n=t.target.value;e.setState({theme:"No theme",customTheme:null,quiz:n})},e.onNextRoundClick=function(){var t,n,r=e.props.quiz.activeRound+1;e.props.dispatch((t=e.state.customTheme||e.state.theme,n=e.state.quiz,function(e,r){var o=r().quiz;g().post("/quiz/next",{code:o.code,settings:{theme:t,quizId:n}})}));var o=(e.props.quiz.players||[]).length;B("start_multiplayer",{event_label:e.state.theme,player_count:o,round:r}),clearTimeout(e.timer)},e.state={theme:"No theme",customTheme:null,quiz:""},e}return i(a,[{key:"componentDidMount",value:function(){var e=this;window.ChatController&&window.ChatController.hide(),setTimeout((function(){e.props.dispatch(j())}),500);var t=this.props.quiz.players.find((function(e){return!e.kicked})),n=t&&this.props.player.id===t._id;this.props.quiz.public&&n&&(this.timer=setTimeout((function(){alert("Warning: as host of this public room, you will be automatically kicked if you don't start a new round in the next 30 seconds.")}),3e4)),this.props.presetQuizzes.length||this.props.dispatch(P())}},{key:"componentDidUpdate",value:function(e){var t=this.props.quiz.players.find((function(e){return!e.kicked})),n=t&&this.props.player.id===t._id;if(this.props.quiz.public&&n){var r=e.quiz.players.find((function(e){return!e.kicked}));r&&this.props.player.id===r._id||(this.timer=setTimeout((function(){alert("Warning: you are now the host of this public room. Please start a new round in the next 30 seconds or you will be automatically kicked!")}),3e4))}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timer)}},{key:"render",value:function(){var e=this.props,t=e.quiz,n=e.player,r=e.presetQuizzes,o=this.getRankings(),a=o[0],i=this.getWinnerText(),s=t.players.find((function(e){return!e.kicked})),c=s&&n.id===s._id;return d.createElement("div",{className:"quiz-game__rankings"},c&&d.createElement("div",{className:"quiz-game__rankings__action"},d.createElement("select",{className:"quiz-game__rankings__action__theme".concat(this.state.quiz?"":" --active"),value:this.state.theme,onChange:this.onThemeSelect},hs.map((function(e){return d.createElement("option",{key:e,value:e},e)}))),!!r.length&&d.createElement(d.Fragment,null,d.createElement("div",{className:"quiz-game__rankings__action__or"},"OR"),d.createElement("select",{className:"quiz-game__rankings__action__theme".concat(this.state.quiz?" --active":""),value:this.state.quiz,onChange:this.onQuizSelect},d.createElement("option",{key:"no-quiz",value:""},"Select quiz"),r.map((function(e){return d.createElement("option",{key:e._id,value:e._id},e.name)})))),d.createElement(A,{secondary:!0,label:"Next round",onClick:this.onNextRoundClick}),!!this.state.customTheme&&d.createElement("div",{className:"quiz-game__rankings__action__theme__custom"},d.createElement("strong",null,"Theme:"),"Â ",this.state.customTheme)),d.createElement("div",{className:"quiz-game__rankings__title"},"Congratulations ",a.name,", ",i),d.createElement("div",{className:"quiz-game__rankings__list"},o.map((function(e,t){var n=0==t?"first":1==t?"second":"third";return d.createElement("div",{key:"rank-".concat(e._id),className:"quiz-game__rankings__item --".concat(n)},d.createElement("div",{className:"quiz-game__rankings__item__avatar",style:{backgroundImage:"url(https://storage.googleapis.com/encore_songlio/avatars/".concat(e.avatar,".png)")}}),d.createElement("div",{className:"quiz-game__rankings__item__name"},e.name),d.createElement("div",{className:"quiz-game__rankings__item__rank --".concat(n)},e.points))}))))}}]),a}(d.Component);var cc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){return o(this,a),r.apply(this,arguments)}return i(a,[{key:"render",value:function(){var e=this.props.dispatch,t=this.props.player,n=this.props.quiz,r=(n.rounds||[])[n.activeRound],o=this.props.song,a=n.finished||r&&r.finished,i=this.props.presetQuizzes;return d.createElement("div",{className:"quiz-game__game"},a?d.createElement(sc,{dispatch:e,player:t,quiz:n,presetQuizzes:i}):d.createElement(oc,{dispatch:e,player:t,quiz:n,song:o}),d.createElement(Js,{dispatch:e,player:t,quiz:n,song:o}))}}]),a}(d.Component);var uc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){return o(this,a),r.apply(this,arguments)}return i(a,[{key:"render",value:function(){var e=this.props.dispatch,t=this.props.player,n=this.props.quiz,r=this.props.presetQuizzes,o=this.props.song;return d.createElement("div",{className:"quiz-game__guess"},d.createElement(cc,{dispatch:e,player:t,quiz:n,presetQuizzes:r,song:o}))}}]),a}(d.Component);function lc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?lc(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}var dc=function(e){c(n,e);var t=pc(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).onInputChange=function(e){return r.setState({query:e})},r.onSearch=_(w().mark((function e(){var t,n,o,a,i;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.props.playSound("click"),t=r.state.query){e.next=4;break}return e.abrupt("return");case 4:return n=[],e.prev=5,o=(r.props.quiz.settings||{}).safemode,console.log("SAFEMODE ".concat(o?"ON":"OFF")),e.next=10,g().get("https://itunes.apple.com/search?term=".concat(t,"&limit=20&country=gb&media=music&entity=musicTrack&explicit=").concat(o?"no":"yes"));case 10:a=e.sent,i=a.data.results,console.log(i.filter((function(e){return!e.previewUrl})).length,"missing tracks from API"),n=(n=i.filter((function(e){return!!e.previewUrl})).map((function(e){return{song:e.trackName,album:e.collectionName,artist:e.artistName,url:e.previewUrl,image:e.artworkUrl100}}))).slice(0,10),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(5),console.error(e.t0);case 20:r.setState({songs:n});case 21:case"end":return e.stop()}}),e,null,[[5,17]])}))),r.saveSong=function(){r.props.playSound("click");var e=r.props.quiz,t=(e.rounds||[])[e.activeRound];if((t&&t.songs||[]).some((function(e){return e.url===r.state.song.url})))alertify.error("Someone already picked that song! Please choose another one.");else{var n=r.state.song;n.song=n.song.trim(),r.props.dispatch(function(e){return function(t,n){var r=n(),o=r.quiz,a=r.player;g().post("/quiz/pick",{code:o.code,playerId:a.id,song:e})}}(n))}},r.onKeyPress=function(e){"Enter"===e&&r.onSearch()},r.selectSong=function(e){var t=fc(fc({},e),{},{song:e.song.replace(/\([^)]*\)/g,"").replace(/[^a-zA-Z0-9\s\-\&]/g,"")});r.setState({song:t,songs:[]})},r.startSong=function(){r.audioPlayer?(r.audioPlayer.volume=.4,r.audioPlayer.play()):(console.log("audio player not there!"),window.alert("Sorry, something went wrong with this track. Please try reloading the page."))},r.onSongNameChange=function(e){var t=e.replace(/\([^)]*\)/g,"").replace(/[^a-zA-Z0-9\s\-\&]/g,"");r.state.song.oldName?r.setState({song:fc(fc({},r.state.song),{},{song:t})}):r.setState({song:fc(fc({},r.state.song),{},{oldName:r.state.song.song,song:t})})},r.getSuggestions=function(e){var t=[];return e&&ms[e]&&(t=ms[e].map((function(e){return e.name})).map((function(e){return[Math.random(),e]})).sort((function(e,t){return e[0]-t[0]})).map((function(e){return e[1]}))),t},r.useSuggestion=function(e){r.setState({query:e},(function(){r.onSearch()}))},r.onClearSong=function(){return r.setState({song:null})},r.onPickSong=function(){return r.setState({stage:"confirm-song"})},r.onBack=function(){return r.setState({stage:"pick-song"})},r.state={stage:"pick-song",query:"",song:null,songs:[],suggestions:[]},r}return i(n,[{key:"componentDidMount",value:function(){this.props.playBackground("clock");var e=this.props.quiz,t=(e.rounds||[])[e.activeRound].theme;this.setState({suggestions:this.getSuggestions(t)})}},{key:"componentDidUpdate",value:function(e,t){!this.state.song||t.song&&t.song.url===this.state.song.url||this.startSong()}},{key:"render",value:function(){var e=this,t=this.state.song,n=this.props.quiz,r=(n.rounds||[])[n.activeRound],o=this.state.suggestions;return d.createElement("div",{className:"quiz-game__pick"},d.createElement(hc,null),"pick-song"===this.state.stage?d.createElement("div",{className:"quiz-game__pick__stage"},!(!r||!r.theme)&&d.createElement("div",{className:"quiz-game__pick__theme"},"The theme is: ",d.createElement("strong",null,r.theme)),d.createElement("div",{className:"quiz-game__pick__title"},"Pick a song for others to guess:"),d.createElement("div",{className:"quiz-game__pick__search"},d.createElement(I,{placeholder:"Song / artist",value:this.state.query,onChange:this.onInputChange,onKeyPress:this.onKeyPress}),d.createElement(A,{secondary:!0,label:"Search",onClick:this.onSearch})),this.state.songs.length>0&&d.createElement("div",{className:"quiz-game__pick__results"},this.state.songs.map((function(t){return d.createElement("div",{className:"quiz-game__pick__results__row",key:t.url,onClick:e.selectSong.bind(e,t)},d.createElement("span",{className:"quiz-game__pick__results__row__main"},t.song)," - ",t.artist)}))),!t&&o.length>0&&d.createElement("div",{className:"quiz-game__pick__suggestions"},d.createElement("p",null,"Drawn a blank? Try one of these:"),o.slice(0,3).map((function(t,n){return d.createElement("p",{key:"suggestion-".concat(n),className:"quiz-game__pick__suggestions__idea",onClick:e.useSuggestion.bind(e,t)},t)}))),!!t&&d.createElement("div",{className:"quiz-game__pick__song__player"},d.createElement("div",{className:"quiz-game__pick__song__image",style:{backgroundImage:"url(".concat(t.image,")")}}),d.createElement("div",{className:"quiz-game__pick__song__player__content"},d.createElement("div",{className:"quiz-game__pick__song__player__content__top"},d.createElement("div",{className:"quiz-game__pick__song__name"},t.oldName||t.song),d.createElement("div",{className:"quiz-game__pick__song__details"},t.artist),d.createElement("audio",{ref:function(t){return e.audioPlayer=t},className:"quiz-game__pick__song__audio",key:t.url,controls:!0},d.createElement("source",{src:t.url,type:"audio/mpeg"}),"Your browser does not support the audio element.")),d.createElement("div",{className:"quiz-game__pick__song__player__content__bottom"},d.createElement(A,{link:!0,label:"Cancel",onClick:this.onClearSong}),d.createElement(A,{primary:!0,label:"Pick Song",onClick:this.onPickSong}))))):d.createElement("div",{className:"quiz-game__pick__stage"},d.createElement(I,{containerClass:"quiz-game__pick__song__edit-name",label:"Confirm the name other players will guess:",placeholder:"Song name",value:t.song,onChange:this.onSongNameChange}),d.createElement(A,{className:"quiz-game__pick__song__back",link:!0,label:"Back",onClick:this.onBack}),d.createElement(A,{className:"quiz-game__pick__song__confirm",primary:!0,label:"Cho
2ose this song!",onClick:this.saveSong})))}}]),n}(d.Component),hc=function(e){c(n,e);var t=pc(n);function n(e){var r;return o(this,n),(r=t.call(this,e)).startTimer=function(){r.timer=setInterval(r.tick,1e3)},r.stopTimer=function(){clearInterval(r.timer),r.timer=null},r.tick=function(){var e=r.state.seconds-1;r.setState({seconds:e}),e<=0&&r.stopTimer()},r.state={seconds:60},r.startTimer(),r}return i(n,[{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){var e=this.state.seconds<=30,t=this.state.seconds<=10?"#D0021B":e?"#F5A623":"#009F4D",n=-6*(60-this.state.seconds),r=e?180-6*(30-this.state.seconds):180;return d.createElement("div",{className:"quiz-game__pick__timer"},d.createElement("div",{className:"quiz-game__pick__timer__circle"},!e&&d.createElement("div",{className:"quiz-game__pick__timer__circle__mask --full"},d.createElement("div",{className:"quiz-game__pick__timer__circle__mask__fill",style:{transform:"rotate(".concat(n,"deg)"),backgroundColor:t}})),d.createElement("div",{className:"quiz-game__pick__timer__circle__mask --half"},d.createElement("div",{className:"quiz-game__pick__timer__circle__mask__fill",style:{transform:"rotate(".concat(r,"deg)"),backgroundColor:t}})),d.createElement("div",{className:"quiz-game__pick__timer__circle__inner"},this.state.seconds)))}}]),n}(d.Component);var mc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;o(this,a),(t=r.call(this,e)).refreshQuote=function(){var e=Math.random();t.setState({quote:ds[Math.floor(e*ds.length)]})},t.onThemeSelect=function(e){var n=e.target.value;"Custom"===n&&(n=prompt("Enter a custom theme:")),n&&(t.props.dispatch(T(n)),t.props.playSound("click"),t.setState({theme:e.target.value,quiz:""}))},t.onQuizSelect=function(e){var n=e.target.value||"",r="No theme";t.props.dispatch(T(r)),t.props.playSound("click"),t.setState({quiz:n,theme:r,safemode:!1})},t.onSafemodeChange=function(e){var n=e.target.checked;t.props.dispatch(function(e){return function(t,n){var r=n().quiz;g().post("/quiz/settings",{code:r.code,settings:{safemode:e}})}}(n)),t.props.playSound("click"),t.setState({safemode:n})},t.onStartRoundClick=function(){var e;t.props.dispatch((e=t.state.quiz,function(t,n){var r=n().quiz;g().post("/quiz/start",{code:r.code,quizId:e})})),t.props.playSound("click");var n=(t.props.quiz.players||[]).length;B("start_multiplayer",{event_label:t.state.theme,player_count:n,round:1})},t.onBackgroundAudioToggle=function(){t.setState({playBackgroundAudio:!t.state.playBackgroundAudio}),t.state.playBackgroundAudio?t.props.stopBackground():t.props.playBackground(t.props.picked?"clock":"background")},t.copyToClipboard=function(){t.linkRef.select(),document.execCommand("Copy"),alertify.success("Link copied to clipboard!")},t.launchStore=function(){window.launchStore&&window.launchStore()},t.hideNotification=function(){return t.setState({showNotification:!1})};var n=e.quiz,i=(n.rounds||[])[n.activeRound];return t.state={quote:ds[0],playBackgroundAudio:!0,showNotification:!0,theme:i&&i.theme?i.theme:"No theme",safemode:!1,quiz:""},t}return i(a,[{key:"componentDidMount",value:function(){this.timer=setInterval(this.refreshQuote,1e4),this.state.playBackgroundAudio&&this.props.playBackground(this.props.picked?"clock":"background"),this.props.dispatch(P())}},{key:"componentWillUnmount",value:function(){clearInterval(this.timer)}},{key:"render",value:function(){var e=this,t=this.props,n=t.quiz,r=t.player,o=t.presetQuizzes,a=n.players||[],i=a.find((function(e){return!e.kicked})),s=i&&r.id===i._id,c=(n.rounds||[])[n.activeRound],u=c&&c.started,l=a.length>1,f=c&&c.theme&&c.theme!==this.state.theme?c.theme:null;return d.createElement("div",{className:"quiz-game__waiting-room"},!u&&d.createElement("div",{className:"quiz-game__waiting-room__sound fa fa-volume-".concat(this.state.playBackgroun
2dAudio?"up":"off"),onClick:this.onBackgroundAudioToggle}),!u&&this.state.showNotification&&d.createElement("div",{className:"quiz-game__waiting-room__notification"},d.createElement("span",{className:"quiz-game__waiting-room__notification__close fa fa-times",onClick:this.hideNotification}),d.createElement("span",{className:"quiz-game__waiting-room__notification__icon fa fa-headphones"}),d.createElement("div",{className:"quiz-game__waiting-room__notification__content"},d.createElement("div",{className:"quiz-game__waiting-room__notification__title"},"Headphones are recommended"),d.createElement("div",{className:"quiz-game__waiting-room__notification__description"},"If playing without headphones, please mute yourself on any video calls (eg. Zoom) you have open"))),d.createElement("div",{className:"quiz-game__waiting-room__holder"},d.createElement("p",{className:"quiz-game__waiting-room__status"},"Waiting for other players..."),!s&&d.createElement("p",{className:"quiz-game__waiting-room__quote"},this.state.quote)),s&&!u&&!l&&d.createElement("div",{className:"quiz-game__waiting-room__link"},d.createElement("div",{className:"quiz-game__waiting-room__link__label"},"Share this link to invite people to join:"),d.createElement("div",{className:"quiz-game__waiting-room__link__copy",onClick:this.copyToClipboard},d.createElement("input",{ref:function(t){return e.linkRef=t},className:"quiz-game__waiting-room__link__input",defaultValue:"https://songl.io?room=".concat(n.room)}
2),d.createElement("span",{className:"fa fa-chain"}),d.createElement("span",{className:"quiz-game__waiting-room__link__copy__label"},"Copy link"))),s&&!u&&l&&d.createElement("div",{className:"quiz-game__waiting-room__action"},d.createElement("p",{className:"quiz-game__waiting-room__action__label"},"Choose a theme for this round:"),d.createElement("select",{className:"quiz-game__waiting-room__action__theme".concat(this.state.quiz?"":" --active"),value:this.state.theme,onChange:this.onThemeSelect},hs.map((function(e){return d.createElement("option",{key:e,value:e},e)}))),!!f&&d.createElement("div",{className:"quiz-game__waiting-room__action__theme__custom"},d.createElement("strong",null,"Theme:")," ",f),d.createElement("label",{className:"quiz-game__waiting-room__action__safemode"},d.createElement("input",{type:"checkbox",value:this.state.safemode,onChange:this.onSafemodeChange}),"Filter explicit songs"),!!o.length&&d.createElement(d.Fragment,null,d.createElement("div",{className:"quiz-game__waiting-room__action__or"},d.createElement("span",null,"or")),d.createElement("p",{className:"quiz-game__waiting-room__action__label"},"Pick from existing quizzes:"),d.createElement("select",{className:"quiz-game__waiting-room__action__theme".concat(this.state.quiz?" --active":""),value:this.state.quiz,onChange:this.onQuizSelect},d.createElement("option",{key:"no-quiz",value:""},"Please select"),o.map((function(e){return d.createElement("option",{key:e._id,value:e._id},e.name)})))),d.createElement(A,{secondary:!0,label:"Start game",onClick:this.onStartRoundClick})),!o.length&&!u&&d.createElement("div",{className:"quiz-game__waiting-room__ad",onClick:this.launchStore},d.createElement("span",null,"NEW!"),"Unlock pre-made multiplayer quizzes with the new Christmas pack in our shop ð"))}}]),a}(d.Component);n(5017),n(3984);var yc,gc,vc,_c=window.devicePixelRatio,bc=Math.PI,wc=Math.sqrt,Ec=Math.round,kc=Math.random,Sc=Math.cos,xc=Math.sin,Cc=window.requestAnimationFrame,Nc=window.cancelAnimationFrame||window.cancelRequestAnimationFrame,Oc=Date.now||function(){return(new Date).getTime()};yc=window,gc=Oc(),vc=yc.cancelAnimationFrame||yc.webkitCancelAnimationFrame||yc.clearTimeout,Cc=yc.requestAnimationFrame||yc.webkitRequestAnimationFrame||function(e){var t=Oc(),n=Math.max(0,16-(t-gc)),r=setTimeout(e,n);return gc=t,r},Nc=function(e){vc.call(yc,e)};var Tc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){return o(this,a),r.apply(this,arguments)}return i(a,[{key:"componentDidMount",value:function(){!function(){var e=bc/180,t=[["#df0049","#660671"],["#00e857","#005291"],["#2bebbc","#05798a"],["#ffd200","#b06c00"]];function n(e,t){this.x=e,this.y=t,this.Length=function(){return wc(this.SqrLength())},this.SqrLength=function(){return this.x*this.x+this.y*this.y},this.Add=function(e){this.x+=e.x,this.y+=e.y},this.Sub=function(e){this.x-=e.x,this.y-=e.y},this.Div=function(e){this.x/=e,this.y/=e},this.Mul=function(e){this.x*=e,this.y*=e},this.Normalize=function(){var e=this.SqrLength();if(0!=e){var t=1/wc(e);this.x*=t,this.y*=t}},this.Normalized=function(){var e=this.SqrLength();if(0!=e){var t=1/wc(e);return new n(this.x*t,this.y*t)}return new n(0,0)}}function r(e,t,r,o){this.position=new n(e,t),this.mass=r,this.drag=o,this.force=new n(0,0),this.velocity=new n(0,0),this.AddForce=function(e){this.force.Add(e)},this.Integrate=function(e){var t=this.CurrentForce(this.position);t.Div(this.mass);var r=new n(this.velocity.x,this.velocity.y);r.Mul(e),this.position.Add(r),t.Mul(e),this.velocity.Add(t),this.force=new n(0,0)},this.CurrentForce=function(e,t){var r=new n(this.force.x,this.force.y),o=this.velocity.Length(),a=new n(this.velocity.x,this.velocity.y);
2return a.Mul(this.drag*this.mass*o),r.Sub(a),r}}function o(r,a){this.pos=new n(r,a),this.rotationSpeed=600*kc()+800,this.angle=e*kc()*360,this.rotation=e*kc()*360,this.cosA=1,this.size=5,this.oscillationSpeed=1.5*kc()+.5,this.xSpeed=40,this.ySpeed=60*kc()+50,this.corners=new Array,this.time=kc();var i=Ec(kc()*(t.length-1));this.frontColor=t[i][0],this.backColor=t[i][1];for(var s=0;s<4;s++){var c=Sc(this.angle+e*(90*s+45)),u=xc(this.angle+e*(90*s+45));this.corners[s]=new n(c,u)}this.Update=function(t){this.time+=t,this.rotation+=this.rotationSpeed*t,this.cosA=Sc(e*this.rotation),this.pos.x+=Sc(this.time*this.oscillationSpeed)*this.xSpeed*t,this.pos.y+=this.ySpeed*t,this.pos.y>o.bounds.y&&(this.pos.x=kc()*o.bounds.x,this.pos.y=0)},this.Draw=function(e){this.cosA>0?e.fillStyle=this.frontColor:e.fillStyle=this.backColor,e.beginPath(),e.moveTo((this.pos.x+this.corners[0].x*this.size)*_c,(this.pos.y+this.corners[0].y*this.size*this.cosA)*_c);for(var t=1;t<4;t++)e.lineTo((this.pos.x+this.corners[t].x*this.size)*_c,(this.pos.y+this.corners[t].y*this.size*this.cosA)*_c);e.closePath(),e.fill()}}function a(o,i,s,c,u,l,f,p){this.particleDist=c,this.particleCount=s,this.particleMass=f,this.particleDrag=p,this.particles=new Array;var d=Ec(kc()*(t.length-1));this.frontColor=t[d][0],this.backColor=t[d][1],this.xOff=Sc(e*l)*u,this.yOff=xc(e*l)*u,this.position=new n(o,i),this.prevPosition=new n(o,i),this.velocityInherit=2*kc()+4,this.time=100*kc(),this.oscillationSpeed=2*kc()+2,this.oscillationDistance=40*kc()+40,this.ySpeed=40*kc()+80;for(var h=0;h<this.particleCount;h++)this.particles[h]=new r(o,i-h*this.particleDist,this.particleMass,this.particleDrag);this.Update=function(e){var t=0;this.time+=e*this.oscillationSpeed,this.position.y+=this.ySpeed*e,this.position.x+=Sc(this.time)*this.oscillationDistance*e,this.particles[0].position=this.position;var r=this.prevPosition.x-this.position.x,o=this.prevPosition.y-this.position.y,i=wc(r*r+o*o);for(this.prevPosition=new n(this.position.x,this.position.y),t=1;t<this.particleCount;t++){var s=n.Sub(this.particles[t-1].position,this.particles[t].position);s.Normalize(),s.Mul(i/e*this.velocityInherit),this.particles[t].AddForce(s)}for(t=1;t<this.particleCount;t++)this.particles[t].Integrate(e);for(t=1;t<this.particleCount;t++){var c=new n(this.particles[t].position.x,this.particles[t].position.y);c.Sub(this.particles[t-1].position),c.Normalize(),c.Mul(this.particleDist),c.Add(this.particles[t-1].position),this.particles[t].position=c}this.position.y>a.bounds.y+this.particleDist*this.particleCount&&this.Reset()},this.Reset=function(){this.position.y=-kc()*a.bounds.y,this.position.x=kc()*a.bounds.x,this.prevPosition=new n(this.position.x,this.position.y),this.velocityInherit=2*kc()+4,this.time=100*kc(),this.oscillationSpeed=2*kc()+1.5,this.oscillationDistance=40*kc()+40,this.ySpeed=40*kc()+80;var e=Ec(kc()*(t.length-1));this.frontColor=t[e][0],this.backColor=t[e][1],this.particles=new Array;for(var o=0;o<this.particleCount;o++)this.particles[o]=new r(this.position.x,this.position.y-o*this.particleDist,this.particleMass,this.particleDrag)},this.Draw=function(e){for(var t=0;t<this.particleCount-1;t++){var r=new n(this.particles[t].position.x+this.xOff,this.particles[t].position.y+this.yOff),o=new n(this.particles[t+1].position.x+this.xOff,this.particles[t+1].position.y+this.yOff);this.Side(this.particles[t].position.x,this.particles[t].position.y,this.particles[t+1].position.x,this.particles[t+1].position.y,o.x,o.y)<0?(e.fillStyle=this.frontColor,e.strokeStyle=this.frontColor):(e.fillStyle=this.backColor,e.strokeStyle=this.backColor),0==t?(e.beginPath(),e.moveTo(this.particles[t].position.x*_c,this.particles[t].position.y*_c),e.lineTo(this.particles[t+1].position.x*_c,this.particles[t+1].position.y*_c),e.lineTo(.5*(this.particles[t+1].position.x+o.x)*_c,.5*(this.particles[t+1].position.y+o.y)*_c),e.closePath(),e.stroke(),e.fill(),e.beginPath(),e.moveTo(o.x*_c,o.y*_c),e.lineTo(r.x*_c,r.y*_c),e.lineTo(.5*(this.particles[t+1].position.x+o.x)*_c,.5*(this.particles[t+1].position.y+o.y)*_c),e.closePath(),e.stroke(),e.fill()):t==this.particleCount-2?(e.beginPath(),e.moveTo(this.particles[t].position.x*_c,this.particles[t].position.y*_c),e.lineTo(this.particles[t+1].position.x*_c,this.particles[t+1].position.y*_c),e.lineTo(.5*(this.particles[t].position.x+r.x)*_c,.5*(this.particles[t].position.y+r.y)*_c),e.closePath(),e.stroke(),e.fill(),e.beginPath(),e.moveTo(o.x*_c,o.y*_c),e.lineTo(r.x*_c,r.y*_c),e.lineTo(.5*(this.particles[t].position.x+r.x)*_c,.5*(this.particles[t].position.y+r.y)*_c),e.closePath(),e.stroke(),e.fill()):(e.beginPath(),e.moveTo(this.particles[t].position.x*_c,this.particles[t].position.y*_c),e.lineTo(this.particles[t+1].position.x*_c,this.particles[t+1].position.y*_c),e.lineTo(o.x*_c,o.y*_c),e.lineTo(r.x*_c,r.y*_c),e.closePath(),e.stroke(),e.fill())}},this.Side=function(e,t,n,r,o,a){return(e-n)*(a-r)-(t-r)*(o-n)}}n.Lerp=function(e,t,r){return new n((t.x-e.x)*r+e.x,(t.y-e.y)*r+e.y)},n.Distance=function(e,t){return wc(n.SqrDistance(e,t))},n.SqrDistance=function(e,t){var n=e.x-t.x,r=e.y-t.y;return n*n+r*r+z*z},n.Scale=function(e,t){return new n(e.x*t.x,e.y*t.y)},n.Min=function(e,t){return new n(Math.min(e.x,t.x),Math.min(e.y,t.y))},n.Max=function(e,t){return new n(Math.max(e.x,t.x),Math.max(e.y,t.y))},n.ClampMagnitude=function(e,t){var r=e.Normalized;return new n(r.x*t,r.y*t)},n.Sub=function(e,t){return new n(e.x-t.x,e.y-t.y,e.z-t.z)},o.bounds=new n(0,0),a.bounds=new n(0,0),(i={}).Context=function(e){var t=0,r=document.getElementById(e),s=r.parentNode,c=s.offsetWidth,u=s.offsetHeight;r.width=c*_c,r.height=u*_c;var l=r.getContext("2d"),f=new Array;for(a.bounds=new n(c,u),t=0;t<20;t++)f[t]=new a(kc()*c,-kc()*u*2,50,8,8,45,1,.05);var p=new Array;for(o.bounds=new n(c,u),t=0;t<300;t++)p[t]=new o(kc()*c,kc()*u);this.resize=function(){c=s.offsetWidth,u=s.offsetHeight,r.width=c*_c,r.height=u*_c,o.bounds=new n(c,u),a.bounds=new n(c,u)},this.start=function(){this.stop(),this.update()},this.stop=function(){Nc(this.interval)},this.update=function(){var e=0;for(l.clearRect(0,0,r.width,r.height),e=0;e<300;e++)p[e].Update(.1),p[e].Draw(l);for(e=0;e<20;e++)f[e].Update(.1),f[e].Draw(l);this.interval=Cc((function(){i.update()}))}};var i=new i.Context("confetti");i.start(),window.addEventListener("resize",(function(e){i.resize()}))}()}},{key:"render",value:function(){return d.createElement("div",{className:"celebration"},d.createElement("div",{className:"celebration__box"},this.props.children),d.createElement("canvas",{id:"confetti",className:"celebration__canvas"}))}}]),a}(d.Component);var zc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;return o(this,a),(t=r.call(this,e)).startCelebration=function(){return t.setState({celebration:"level-up"})},t.stopCelebration=function(){return t.setState({celebration:null})},t.state={celebration:""},t}
2return i(a,[{key:"componentDidUpdate",value:function(e){var t=this;e.account&&e.account.level&&this.props.account.level>e.account.level&&(this.startCelebration(),setTimeout((function(){t.stopCelebration()}),5e3))}},{key:"render",value:function(){var e=this.props.account;return this.state.celebration?d.createElement(Tc,null,d.createElement("div",{className:"level-up"},d.createElement("div",{className:"level-up__icon fa fa-trophy"}),d.createElement("div",{className:"level-up__title"},"LEVEL UP!"),d.createElement("div",{className:"level-up__lvl"},e.level))):null}}]),a}(d.Component);var Pc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){var e;o(this,a);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).connectRoom=function(){var t={query:{room:e.props.quiz.room,playerId:e.props.player.id},transports:["websocket","polling"]};e.socket=Hs()("/quiz",t),e.socket.on("player_connected",e.onPlayerConnected),e.socket.on("player_disconnected",e.onPlayerDisconnected),e.socket.on("start_song",e.onStartSong),e.socket.on("next_song",e.onNextSong),e.socket.on("song_guess",e.onSongGuess),e.socket.on("game_update",e.onGameUpdate)},e.disconnectRoom=function(){e.socket&&e.socket.disconnect()},e.onPlayerConnected=function(t){var n=e.props.quiz,r=(n.rounds||[])[n.activeRound];e.props.dispatch(x(t)),r.started||e.sounds.playSound("join")},e.onPlayerDisconnected=function(t){e.props.dispatch(C(t))},e.onNextSong=function(t){console.log("start song"),e.props.dispatch(O(t)),e.sounds.quiet()},e.onStartSong=function(t){e.sounds.quiet(),e.props.dispatch(O(t))},e.onSongGuess=function(t){console.log("guess"),e.props.dispatch(O(t.quiz)),t.playerId===e.props.player.id&&(t.correct?e.sounds.playSound("correct"):e.sounds.playSound("wrong"))},e.onKick=function(t){window.confirm("Are you sure you want to remove this player from the game?")&&e.props.dispatch(N(t))},e.onGameUpdate=function(t){e.props.dispatch(O(t))},e.playSound=function(t){e.sounds&&e.sounds.playSound(t)},e.playBackground=function(t){e.sounds&&e.sounds.playBackground(t)},e.stopBackground=function(){e.sounds&&e.sounds.quiet()},e.onLogout=function(){e.sounds.quiet()},e}return i(a,[{key:"componentDidMount",value:function(){this.connectRoom()}},{key:"componentWillUnmount",value:function(){this.disconnectRoom()}},{key:"componentDidUpdate",value:function(e,t){!(e.account||{}).id&&(this.props.account||{}).id&&this.props.dispatch(P())}},{key:"render",value:function(){var e=this,t=this.props.dispatch,n=this.props.quiz,r=this.props.account,o=this.props.player,a=(n.rounds||[])[n.activeRound],i=a?a.activeSong:0,s=a&&a.started,c=a&&a.finished,u=a?a.songs[i]:null,l=a&&(a.songs||[]).some((function(e){return e.playerId===o.id&&!!e.song})),f=!(!u||!u.startTime),p=!l&&!c&&s,h=this.props.presetQuizzes;return d.createElement("div",{ref:"game",className:"quiz-game"},d.createElement(Qs,{dispatch:t,quiz:n,account:r,onLogout:this.onLogout}),d.createElement(Bs,{ref:function(t){return e.sounds=t}}),d.createElement("div",{className:"quiz-game__body"},d.createElement(Xs,{player:o,quiz:n,onKick:this.onKick}),f?d.createElement(uc,{dispatch:t,player:o,quiz:n,presetQuizzes:h,song:u}):p?d.createElement(dc,{dispatch:t,player:o,quiz:n,playSound:this.playSound,playBackground:this.playBackground}):d.createElement(mc,{dispatch:t,player:o,quiz:n,picked:l,playSound:this.playSound,playBackground:this.playBackground,stopBackground:this.stopBackground,presetQuizzes:h})),d.createElement(zc,{account:r}),d.createElement("footer",{className:"quiz-game__footer"},"© ",(new Date).getFullYear()," Encore Technologies Limited, All Rights Reserved"))}}]),a}(d.Component);var Rc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;o(this,a),(t=r.call(this,e)).startSingleplayer=function(){t.props.dispatch(me()),B("open_singleplayer")},t.startMultiplayer=function(e){t.setState({showModal:!0,gameMode:e?"public":"multiplayer"}),B("open_multiplayer")},t.onCreateQuizClick=function(){t.props.dispatch(E())},t.hideModals=function(){t.setState({showModal:!1,gameMode:""})};var n=!!window.room,i=!!window.quizId;return t.state={showModal:n||i,gameMode:n?"multiplayer":i?"singleplayer":""},t}
2return i(a,[{key:"componentDidMount",value:function(){if(window.location.href.includes("?account")||("singleplayer"===this.state.gameMode?this.startSingleplayer():window.location.href.includes("?multiplayer")&&(window.history.replaceState({},document.title,window.location.origin+window.location.pathname),this.startMultiplayer())),localStorage.SONGLIO_TOKEN){var e=window.location.href.includes("?account")?"account":null;this.props.dispatch(function(e){return function(t,n){g().defaults.headers.common["x-access-token"]=localStorage.SONGLIO_TOKEN,g().get("/account/profile").then((function(n){var r=n.data;"success"===r.status?(t({type:"ACCOUNT_LOGIN",payload:{account:r.account}}),e&&t(k(e))):t(L())})).catch((function(e){console.log(e.response.data),t(L())}))}}(e))}}},{key:"render",value:function(){var e=this.props,t=e.dispatch,n=e.account,r=e.quiz,o=e.player,a=this.state,i=a.showModal,s=a.gameMode;return d.createElement("div",{className:"quiz-home"},d.createElement("div",{className:"quiz-home__banner"},"Songlio is currently in Beta. Best played on laptops and desktops."),d.createElement("div",{className:"container"},d.createElement("div",{className:"quiz-home__nav"},d.createElement("div",{className:"quiz-home__nav__item"},d.createElement("a",{href:"https://forms.gle/Y87nvQ7vB9vjQP7D8",target:"_blank"},"ð£ Leave us feedback")),d.createElement(H,{homePage:!0})),d.createElement("div",{className:"quiz-home__main"},d.createElement("div",{className:"quiz-home__left"},d.createElement("h1",{className:"quiz-home__title"},"Songlio"),d.createElement("div",{className:"quiz-home__description"},"The ultimate online music guessing game.",d.createElement("br",null),d.createElement("br",null),"Play now for free!"),d.createElement("button",{className:"quiz-home__button",onClick:this.startMultiplayer.bind(this,!1)},"Multiplayer (2-100 players)"),d.createElement("button",{className:"quiz-home__button --secondary",onClick:this.startSingleplayer},d.createElement("span",{className:"quiz-home__button__highlight"},"NEW!"),"Single player"),d.createElement("div",{className:"quiz-home__encore"},"powered by ",d.createElement("a",{href:"https://encoremusicians.com",target:"_blank"},"Encore"))),d.createElement("div",{className:"quiz-home__right"},d.createElement("div",{className:"quiz-home__video-frame",style:{backgroundImage:"url(/img/quiz/index-page/desktop-frame.png)"}},d.createElement("iframe",{src:"https://player.vimeo.com/video/521554803?byline=0&portrait=0",width:"560",height:"315",frameBorder:"0",allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0})))),d.createElement("div",{className:"quiz-home__howitworks"},d.createElement("div",{className:"quiz-home__howitworks__title"},"How to play"),d.createElement("div",{className:"quiz-home__howitworks__diagrams"},d.createElement("div",{className:"quiz-home__howitworks__diagrams__section"},d.createElement("div",{className:"quiz-home__howitworks__img",style:{backgroundImage:"url(/img/quiz/index-page/humans-1.png)"}}),d.createElement("div",{className:"quiz-home__howitworks__caption"},"Single Player"),d.createElement("div",{className:"quiz-home__howitworks__step1"},"1. Pick from one of over ",d.createElement("strong",null,"50 pre-made quizzes")," (e.g. Disney songs)")),d.createElement("div",{className:"quiz-home__howitworks__divider"},d.createElement("div",{className:"quiz-home__howitworks__divider__or"},"OR")),d.createElement("div",{className:"quiz-home__howitworks__diagrams__section"},d.createElement("div",{className:"quiz-home__howitworks__img",style:{backgroundImage:"url(/img/quiz/index-page/humans-3.png)"}}),d.createElement("div",{className:"quiz-home__howitworks__caption --multi"},"Multiplayer (2-100)"),d.createElement("div",{className:"quiz-home__howitworks__step1 --divider"},"1. Each player chooses a song ",d.createElement("br",{className:"desktop-only"}),"for ",d.createElement("strong",null,"everyone else")," to guess"))),d.createElement("div",{className:"quiz-home__howitworks__step"},"2. Listen to a short ",d.createElement("strong",null,"20 second clip")," of each song ð§"),d.createElement("div",{className:"quiz-home__howitworks__step"},"3. ",d.createElement("strong",null,"As soon as you know the song"),", t
2ype in the song name. The faster you guess, the more points you get! â°"),d.createElement("div",{className:"quiz-home__howitworks__footer"},"The player with the most points at the end wins! ð")),d.createElement("div",{className:"quiz-home__section"},d.createElement("span",{className:"quiz-home__section__highlight"},"NEW!"),d.createElement("div",{className:"quiz-home__section__title"},"Create a custom quiz ",d.createElement("span",{style:{fontStyle:"normal"}},"ð·ââï¸")),d.createElement("div",{className:"quiz-home__section__para"},"Use our quiz builder tool to create quizzes on a topic of your choosing. ",d.createElement("br",null),"Send them to your friends and see who can guess them fastest! ",d.createElement("br",null),"Over 50 million songs to choose from!"),d.createElement("div",{className:"quiz-home__section__para --grey"},"Recent quizzes created: Billie Eilish Top 10, Anglican Choral Bangers, Beethoven Symphonies, The Ultimate MUSE quiz..."),d.createElement("button",{className:"quiz-home__button --secondary",onClick:this.onCreateQuizClick},"Create quiz")),d.createElement("div",{className:"quiz-home__section"},d.createElement("div",{className:"quiz-home__section__title"},"The perfect game for..."),d.createElement("div",{className:"quiz-home__section__grid"},d.createElement("div",{className:"quiz-home__section__grid__third"},d.createElement("div",{className:"quiz-home__section__grid__third__icon"},"ð¨âð©âð§âð¦"),d.createElement("div",{className:"quiz-home__section__grid__third__title"},"Zoom calls with friends and family! "),d.createElement("div",{className:"quiz-home__section__grid__third__content"},"Start a multiplayer game and choose songs with in-jokes for guaranteed lockdown laughs ð ")),d.createElement("div",{className:"quiz-home__section__grid__third"},d.createElement("div",{className:"quiz-home__section__grid__third__icon"},"ð¤"),d.createElement("div",{className:"quiz-home__section__grid__third__title"},"Music fans and nerds! "),d.createElement("div",{className:"quiz-home__section__grid__third__content"},"Compete in single player fan quizzes to be crowned the most knowledgeable fan!")),d.createElement("div",{className:"quiz-home__section__grid__third"},d.createElement("div",{className:"quiz-home__section__grid__third__icon"},"ð©âð"),d.createElement("div",{className:"quiz-home__section__grid__third__title"},"Music educators "),d.createElement("div",{className:"quiz-home__section__grid__third__content"},"Create music quizzes to test your studentsâ musical memory")))),d.createElement("div",{className:"quiz-home__section"},d.createElement("div",{className:"quiz-home__section__title"},"What people are saying"),d.createElement("div",{className:"quiz-home__section__grid --row"},d.createElement("div",{className:"quiz-home__section__grid__third"},d.createElement("div",{className:"quiz-home__section__grid__third__content"},"âJust used Songlio for our company Christmas party, it was AMAZING. Thanks so much for introducing us to this - I'll be reusing it with family over the next few days :) â",d.createElement("br",null),d.createElement("i",null,"Josh, Founder"))),d.createElement("div",{className:"quiz-home__section__grid__third"},d.createElement("div",{className:"quiz-home__section__grid__third__content"},"âI love the game! Especially when I WON! :D â",d.createElement("br",null),d.createElement("i",null,"Kris Boobyer, Choir conductor"))),d.createElement("div",{className:"quiz-home__section__grid__third"},d.createElement("div",{className:"quiz-home__section__grid__third__content"},"âWhen are we playing again?! Getting twitchy without my songlio fix. Such good fun â¤ï¸ â",d.createElement("br",null),d.createElement("i",null,"Gill")))),d.createElement("div",{className:"quiz-home__section__grid --row"},d.createElement("div",{className:"quiz-home__section__grid__third"},d.createElement("div",{className:"quiz-home__section__grid__third__content"},"âIt was awesome, loved it!â",d.createElement("br",null),d.createElement("i",null,"Anna, professional musician, Brighton"))),d.createElement("div",{className:"quiz-home__section__grid__third"},d.createElement("div",{className:"quiz-home__section__grid__third__content"},"âI played Songlio with some work friends yesterday and, they loved it and were v impressed! They said it was v easy to use and couldn't believe it was freeâ",d.createElement("br",null),d.createElement("i",null,"Helen, Civil Servant"))),d.createElement("div",{className:"quiz-home__section__grid__third"},d.createElement("div",{className:"quiz-home__section__grid__third__content"},"âloved the game woohooâ",d.createElement("br",null),d.createElement("i",null,"Josh, artist and climbing instructor")))),d.createElement("div",{className:"quiz-home__howitworks__footer"},"4000+ players in 48 countries!")),d.createElement("div",{className:"quiz-home__more-buttons"},d.createElement("p",null,"Play a game:"),d.createElement("button",{className:"quiz-home__button",onClick:this.startMultiplayer.bind(this,!1)},"Multiplayer (2-100 players)"),d.createElement("button",{className:"quiz-home__button --secondary",onClick:this.startSingleplayer},d.createElement("span",{className:"quiz-home__button__highlight"},"NEW!"),"Single player")),d.createElement("div",{className:"quiz-home__section --encore"},d.createElement("div",{className:"quiz-home__section__title"},"Looking for live musicians?"),d.createElement("div",{className:"quiz-home__section__para-left"},"Songlio was created by the team behind ",d.createElement("a",{href:"https://encoremusicians.com",target:"_blank"},"Encore")," - the UKâs musician-booking platform for weddings, parties and other events."),d.createElement("div",{className:"quiz-home__section__para-left"},"Browse over 5000 of the UKâs top musicians ",d.createElement("a",{href:"https://encoremusicians.com",target:"_blank"},"here"),"."),d.createElement("div",{className:"quiz-home__section__para-left"},"Planning a virtual or Zoom event? Head ",d.createElement("a",{href:"https://virtual.encoremusicians.com",target:"_blank"},"here")," to check out our vetted selection of musicians for virtual performances and personalised recordings."),d.createElement("div",{className:"quiz-home__section__para-left"},d.createElement("a",{href:"https://encoremusicians.com/reviews",target:"_blank"},"5000+ 5-star reviews")," and rated Excellent on Trustpilot.")),d.createElement("div",{className:"quiz-home__copyright"},"© ",(new Date).getFullYear()," Encore Technologies Limited, All Rights Reserved"),i&&d.createElement(bs,{dispatch:t,account:n,quiz:r,player:o,show:i,mode:s,onClose:this.hideModals})))}}]),a}(d.Component);var Ac=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;return o(this,a),(t=r.call(this,e)).onPasswordChange=function(e){return t.setState({password:e,error:null})},t.onPassword2Change=function(e){return t.setState({password2:e,error:null})},t.onKeyPress=function(e){"Enter"===e&&t.onPasswordReset()},t.onPasswordReset=function(){var e=t.state,n=e.password,r=e.password2,o=e.error,a=window.passwordResetToken;return a?n?r?n!==r?t.setState({error:"Your passwords donât match!"}):(o&&t.setState({error:null}),void t.props.dispatch(function(e,t){return function(n,r){g().post("/account/password/reset",{token:e,password:t}).then((function(e){var t=e.data;"success"===t.status?(alertify.success("Password reset"),n(k("home")),window.history.replaceState({},document.title,"/")):alertify.error(t.message)})).catch((function(e){console.log(e.response.data),alertify.error(e.response.data.message)}))}}(a,n))):t.setState({error:"Please confirm your password"}):t.setState({error:"Please choose a password"}):t.setState({error:"Sorry, something went wrong with your reset link. Please try clicking the link from your email again."})},t.state={password:"",password2:"",error:null},t}return i(a,[{key:"render",value:function(){return d.createElement("div",{className:"quiz-home__password-reset"},d.createElement("div",{className:"quiz-home__account-login__title"},"Password reset"),d.createElement(I,{className:"quiz-home__account-login__input",label:"Cho
2ose a new password:",type:"password",placeholder:"Password",value:this.state.password,onChange:this.onPasswordChange}),d.createElement(I,{className:"quiz-home__account-login__input",type:"password",placeholder:"Confirm password",value:this.state.password2,onChange:this.onPassword2Change,onKeyPress:this.onKeyPress}),!!this.state.error&&d.createElement(D,{iconClass:"info-circle",className:"quiz-home__account-login__error",content:this.state.error,status:"error"}),d.createElement(A,{primary:!0,className:"quiz-home__account-login__submit",label:"Save password",onClick:this.onPasswordReset}))}}]),a}(d.Component);n(8581),(function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){return o(this,a),r.apply(this,arguments)}return i(a,[{key:"render",value:function(){var e=this.props.current/this.props.total*100;return this.props.nonlinear&&(e=(1+(this.props.total-this.props.current)/(2*this.props.total))*e+(1===this.props.current?100/(2*this.props.total):0)),e=e.toFixed(2),d.createElement("div",{className:"progress__bar"},d.createElement("div",{className:"progress__bar__completed",style:{width:"".concat(e,"%")}}))}}]),a}(d.Component)).propTypes={current:M().number,total:M().number,nonlinear:M().bool};var qc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;return o(this,a),(t=r.call(this,e)).onCheckout=function(){var e=_(w().mark((function e(n){var r,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({clicked:!0}),e.prev=1,r=t.props.account.id,e.next=5,g().post("/account/".concat(r,"/coins/purchase"),{coins:n});case 5:(o=e.sent)&&200===o.data.status?window.location=o.data.sessionUrl:window.alert("Sorry, something went wrong. Please refresh the page and try again."),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(1),console.log(e.t0),window.alert("Sorry, something went wrong. Please refresh the page and try again.");case 13:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(t){return e.apply(this,arguments)}}(),t.state={clicked:!1},g().defaults.headers.common["x-access-token"]=localStorage.SONGLIO_TOKEN,t}return i(a,[{key:"render",value:function(){var e=this.state.clicked;return d.createElement(de,{id:"topup",show:!0,onHide:this.props.onClose},d.createElement("div",{className:"account-dashboard__topup"},d.createElement("div",{className:"account-dashboard__topup__close fa fa-times",onClick:this.props.onClose}),d.createElement("div",{className:"account-dashboard__topup__title"},"Buy more coins"),d.createElement("div",{className:"account-dashboard__topup__options"},d.createElement("div",{className:"account-dashboard__topup__option"},d.createElement("div",{className:"account-dashboard__topup__option__details"},d.createElement("div",{className:"account-dashboard__topup__option__title"},"Super bundle:"),d.createElement("div",{className:"account-dashboard__topup__option__coins"},"ð¡ 10 ",d.createElement("span",{className:"account-dashboard__topup__option__coins__label"},"coins"),d.createElement("span",{className:"account-dashboard__topup__option__price"},"£4.99"))),d.createElement(A,{primary:!0,label:"Buy",disabled:!!e,className:"account-dashboard__topup__option__buy",onClick:this.onCheckout.bind(this,10)})),d.createElement("div",{className:"account-dashboard__topup__option"},d.createElement("div",{className:"account-dashboard__topup__option__details"},d.createElement("div",{className:"account-dashboard__topup__option__title"},"Mega bundle:"),d.createElement("div",{className:"account-dashboard__topup__option__coins"},"ð¡ 50 ",d.createElement("span",{className:"account-dashboard__topup__option__coins__label"},"coins"),d.createElement("span",{className:"account-dashboard__topup__option__price"},"£19.99"))),d.createElement(A,{primary:!0,label:"Buy",disabled:!!e,className:"account-dashboard__topup__option__buy",onClick:this.onCheckout.bind(this,50)})),d.createElement("div",{className:"account-dashboard__topup__option"},d.createElement("div",{className:"account-dashboard__topup__option__details"},d.createElement("div",{className:"account-dashboard__topup__option__title"},"Ultimate bundle:"),d.createElement("div",{className:"account-dashboard__topup__option__coins"}
2,"ð¡ 100 ",d.createElement("span",{className:"account-dashboard__topup__option__coins__label"},"coins"),d.createElement("span",{className:"account-dashboard__topup__option__price"},"£29.99"))),d.createElement(A,{primary:!0,label:"Buy",disabled:!!e,className:"account-dashboard__topup__option__buy",onClick:this.onCheckout.bind(this,100)})))))}}]),a}(d.Component);var Mc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){return o(this,a),r.apply(this,arguments)}return i(a,[{key:"render",value:function(){var e=this.props,t=e.coins,n=e.account;return d.createElement(de,{id:"purchased",show:!0,onHide:this.props.onClose},d.createElement("div",{className:"account-dashboard__purchased"},d.createElement("div",{className:"account-dashboard__purchased__close fa fa-times",onClick:this.props.onClose}),d.createElement("div",{className:"account-dashboard__purchased__title"},"ð¡ ",t," coins added!"),d.createElement("div",{className:"account-dashboard__purchased__description"},"Thanks for your purchase, ",n.firstname,"! You can now use your coins to unlock some awesome upgrades in the shop. ",d.createElement("br",null),d.createElement("br",null),"Youâll receive a receipt to the email address registered with your account."),d.createElement(A,{primary:!0,label:"Done",className:"account-dashboard__purchased__done",onClick:this.props.onClose})))}}]),a}(d.Component);var Ic=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;return o(this,a),(t=r.call(this,e)).checkForCallbacks=_(w().mark((function e(){var n,r,o,a,i;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("true"!==(n=new URLSearchParams(window.location.search)).get("stripe_success")){e.next=17;break}return r=n.get("session_id"),console.log("stripe session",r),o=t.props.account.id,e.prev=5,e.next=8,g().post("/account/".concat(o,"/coins/purchase/success"),{session_id:r});case 8:(a=e.sent)&&200===a.data.status&&(i=a.data.coins,t.setState({modals:{topup:!1,purchased:!0,purchasedCoins:i}})),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),console.log(e.t0);case 15:e.next=18;break;case 17:"false"===n.get("stripe_success")&&console.log("something went wrong with the payment?");case 18:window.history.replaceState({},document.title,"".concat(location.pathname,"?account"));case 19:case"end":return e.stop()}}),e,null,[[5,12]])}))),t.navigateHome=function(){window.history.replaceState({},document.title,"/"),t.props.dispatch(k("home"))},t.navigateShop=function(){t.props.onTabChange("shop")},t.showCoinsHelp=function(){window.alert("Earn coins as you level up by playing games, or by unlocking achievements as you play. You can also purchase great value coin bundles to speed things up! Coins can be used to buy multiplayer quiz packs, unique avatars, sounds and power ups!")},t.topup=function(){t.setState({modals:{topup:!0,purchased:!1}})},t.onCloseModals=function(){t.setState({modals:{topup:!1,purchased:!1}})},t.state={modals:{topup:!1,purchased:!1}},g().defaults.headers.common["x-access-token"]=localStorage.SONGLIO_TOKEN,t}return i(a,[{key:"componentDidMount",value:function(){this.checkForCallbacks()}},{key:"render",value:function(){var e=this.props.account,t=Y(e.level||1);return d.createElement("div",{className:"account-dashboard"},d.createElement("div",{className:"account-dashboard__tile-row --outer"},d.createElement("div",{className:"account-dashboard__tile-col"},d.createElement("div",{className:"account-dashboard__tile-row"},d.createElement("div",{className:"account-dashboard__tile account-dashboard__stats"},d.createElement("div",{className:"account-dashboard__tile__title"},"Player stats"),d.createElement("div",{className:"account-dashboard__stats__bar"},d.createElement("div",{className:"account-dashboard__stats__bar__avatar"},d.createElement("img",{className:"account-dashboard__stats__bar__img",src:"https://storage.googleapis.com/encore_songlio/avatars/".concat(e.avatar,".png"),alt:"Avatar"})),d.createElement("div",{className:"account-dashboard__stats__bar__name"},d.createElement("div",{className:"account-dashboard__stats__bar__name__label"},e.username||"Player"),d.createElement("div",{className:"account-dashboard__stats__bar__name__level"},d.createElement("span",{className:"account-dashboard__stats__bar__name__level__icon fa fa-shield"}),d.createElement("span",{className:"account-dashboard__stats__bar__name__level__label"},"LEVEL ",t.level))),d.createElement("div",{className:"account-dashboard__stats__bar__progress__container"},d.createElement("div",{className:"account-dashboard__stats__bar__progress__label"},pe(e.xp)," / ",d.createElement("span",{style:{fontSize:12}},pe(t.maxXP)," XP")),d.createElement("div",{className:"account-dashboard__stats__bar__progress"},d.createElement("div",{className:"account-dashboard__stats__bar__progress__bar",style:{width:"".concat(Math.ceil(100*e.xp/t.maxXP),"%")}}))),d.createElement("div",{className:"account-dashboard__stats__bar__play"},d.createElement(A,{primary:!0,label:"Play a game",onClick:this.navigateHome}))))),d.createElement("div",{className:"account-dashboard__tile-row"},d.createElement("div",{className:"account-dashboard__tile account-dashboard__wallet"},d.createElement("div",{className:"account-dashboard__tile__title"},"Songlio wallet"),d.createElement("div",{className:"account-dashboard__wallet__count"},"ð¡ ",e.coins||0," ",d.createElement("span",{style:{fontSize:12}},"COINS"),d.createElement(A,{primary:!0,label:"Top up",onClick:this.topup,className:"account-dashboard__wallet__topup"}),!!this.state.modals.topup&&d.createElement(qc,{key:"topup",account:this.props.account,onClose:this.onCloseModals})),d.createElement("div",{className:"account-dashboard__wallet__help",onClick:this.showCoinsHelp},"How can I earn Songlio coins?")),d.createElement("div",{className:"account-dashboard__tile account-dashboard__coffee"},d.createElement("div",{className:"account-dashboard__tile__title"},"Enjoying Songlio?"),d.createElement("div",{className:"account-dashboard__coffee__description"},"You can support our friendly team by buying us a coffee.",d.createElement("br",null)),d.createElement("a",{className:"account-dashboard__coffee__link",href:"https://ko-fi.com/songlio",target:"_blank"},d.createElement(A,{primary:!0,label:"Buy us a coffee âï¸",onClick:function(){}})),d.createElement("div",{className:"account-dashboard__coffee__description-sub"},"Membership tiers available for behind-the-scenes access with the Songlio team!")))),d.createElement("div",{className:"account-dashboard__tile-col"},d.createElement("div",{className:"account-dashboard__tile account-dashboard__shop"},d.createElement("div",{className:"account-dashboard__tile__title"},"T'is the season for ",d.createElement("br",null),"new quizzes!"),d.createElement("div",{className:"account-dashboard__shop__image"}),d.createElement("div",{className:"account-dashboard__shop__description"},"Get new multiplayer quizzes and exclusive avatars using your coins in our shop."),d.createElement(A,{primary:!0,label:"Browse shop",onClick:this.navigateShop,className:"account-dashboard__tile__button"})))),!!this.state.modals.purchased&&d.createElement(Mc,{key:"purchased",account:this.props.account,coins:this.state.modals.purchasedCoins,onClose:this.onCloseModals}))}}]),a}(d.Component);var Dc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;return o(this,a),(t=r.call(this,e)).purchase=_(w().mark((function e(){var n,r,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.setState({clicked:!0}),n=t.props.item,r=t.props.account.id,e.next=6,g().post("/account/".concat(r,"/store/purchase"),{itemId:n._id});case 6:(o=e.sent)&&200===o.status?(t.setState({purchased:!0}),setTimeout((function(){window.location.reload()}),3e3)):window.alert("Sorry, something went wrong. Please check you have enough coins, refresh the page and try again."),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),console.log(e.t0),window.alert("Sorry, something went wrong. Please refresh the page and try again.");case 14:case"end":return e.stop()}}),e,null,[[0,10]])}))),t.state={purchased:!1,clicked:!1},g().defaults.headers.common["x-access-token"]=localStorage.SONGLIO_TOKEN,t}return i(a,[{key:"render",value:function(){var e=this.state,t=e.clicked,n=e.purchased,r=this.props.item;return d.createElement(de,{id:"purchase",show:!0,onHide:this.props.onClose},d.createElement("div",{className:"account-dashboard__purchase"},d.createElement("div",{className:"account-dashboard__purchase__close fa fa-times",onClick:this.props.onClose}),d.createElement("div",{className:"account-dashboard__purchase__title"},"Confirm purchase"),n?d.createElement("div",{className:"account-dashboard__purchase__details"},d.createElement("div",{className:"account-dashboard__purchase__details__title"},"Purchase complete! Please wait for the page to reload...")):d.createElement("div",{className:"account-dashboard__purchase__details"},d.createElement("div",{className:"account-dashboard__purchase__details__title"},r.title),d.createElement("div",{className:"account-dashboard__purchase__details__coins"},"ð¡ ",r.price," ",d.createElement("span",{className:"account-dashboard__purchase__details__coins__label"},"coins")),d.createElement("div",{className:"account-dashboard__purchase__details__description"},r.description)),d.createElement(A,{primary:!0,label:"Buy",disabled:!!t,className:"account-dashboard__purchase__details__buy",onClick:this.purchase})))}}]),a}(d.Component);var jc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;return o(this,a),(t=r.call(this,e)).fetchStoreItems=_(w().mark((function e(){var n,r,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t.props.account.id)){e.next=16;break}return e.prev=2,e.next=5,g().get("/account/store?userId=".concat(n));case 5:r=e.sent,(o=r.data).items?t.setState({items:o.items,coins:o.user&&o.user.coins||0}):alertify.error("Something went wrong!"),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),console.log(e.t0),alertify.error("Something went wrong!");case 14:e.next=18;break;case 16:console.error("no user id!"),console.log(t.props.account);case 18:case"end":return e.stop()}}),e,null,[[2,10]])}))),t.onBuyClick=function(e){t.setState({selectedItem:e,modals:{purchase:!0}})},t.showCoinsHelp=function(){window.alert("Earn coins as you level up by playing games, or by unlocking achievements as you play. You can also purchase great value coin bundles to speed things up! Coins can be used to buy multiplayer quiz packs, unique avatars, sounds and power ups!")},t.topup=function(){t.setState({modals:{topup:!0}})},t.onCloseModals=function(){t.setState({modals:{topup:!1,purchase:!1}})},t.state={items:[],coins:0,selectedItem:{},modals:{topup:!1,purchase:!1}},t}
2return i(a,[{key:"componentDidMount",value:function(){this.fetchStoreItems()}},{key:"render",value:function(){var e=this,t=this.state,n=t.items,r=t.coins,o=t.selectedItem;return d.createElement("div",{className:"account-shop"},d.createElement("div",{className:"account-shop__header"},d.createElement("div",{className:"account-shop__header__title"},"Browse our Shop"),d.createElement("div",{className:"account-shop__wallet"},d.createElement("div",{className:"account-shop__wallet__title"},"Songlio wallet",d.createElement("span",{className:"account-shop__wallet__help fa fa-question-circle",onClick:this.showCoinsHelp})),d.createElement("div",{className:"account-shop__wallet__count"},"ð¡ ",r||0," ",d.createElement("span",{style:{fontSize:12}},"COINS"),d.createElement(A,{primary:!0,label:"Top up",onClick:this.topup,className:"account-shop__wallet__topup"}),!!this.state.modals.topup&&d.createElement(qc,{key:"topup",account:this.props.account,onClose:this.onCloseModals})))),n.length?d.createElement("div",{className:"account-shop__items"},n.map((function(t){var n=!!t.purchased,o=t.price>r;return d.createElement("div",{key:"item-".concat(t._id),className:"account-dashboard__tile account-shop__item"},d.createElement("div",{className:"account-shop__item__title"},t.title),d.createElement("div",{className:"account-shop__item__description"},t.description),d.createElement("div",{className:"account-shop__item__image",style:{backgroundImage:"url(".concat(t.image||"",")")}}),d.createElement("div",{className:"account-shop__item__footer"},d.createElement(A,{primary:!0,label:n?"Already bought":"Buy",disabled:n||o,onClick:e.onBuyClick.bind(e,t),className:"account-shop__item__buy ".concat(n?"--purchased":"")}),!n&&d.createElement("div",{className:"account-shop__item__price ".concat(o?"--unaffordable":""),onClick:o?e.topup:null},"ð¡ ",t.price," coins")))}))):d.createElement("div",null,"Youâve bought everything we have to offer!"),!!this.state.modals.purchase&&d.createElement(Dc,{key:"purchase",item:o,account:this.props.account,onClose:this.onCloseModals}))}}]),a}(d.Component);var Lc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;return o(this,a),(t=r.call(this,e)).fetchQuizzes=_(w().mark((function e(){var n,r,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t.props.account.id)){e.next=16;break}return e.prev=2,e.next=5,g().get("/quiz/".concat(n,"/fetch"));case 5:r=e.sent,(o=r.data).quizzes?t.setState({quizzes:o.quizzes}):alertify.error("Something went wrong!"),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),console.log(e.t0),alertify.error("Something went wrong!");case 14:e.next=18;break;case 16:console.error("no user id!"),console.log(t.props.account);case 18:case"end":return e.stop()}}),e,null,[[2,10]])}))),t.startSingleplayer=function(){t.props.dispatch(me()),B("open_singleplayer")},t.onCreateQuizClick=function(){t.props.dispatch(E())},t.state={quizzes:[]},t}return i(a,[{key:"componentDidMount",value:function(){this.fetchQuizzes()}},{key:"render",value:function(){var e=this.state.quizzes;return d.createElement("div",{className:"account-solo-quizzes"},d.createElement("div",{className:"account-dashboard__tile"},d.createElement("div",{className:"account-dashboard__tile__title"},"Solo quizzes"),e.length?d.createElement("div",{className:"account-solo-quizzes__list"},e.map((function(e){return d.createElement("div",{key:"quiz-".concat(e._id),className:"solo-game__quiz-list__item",style:{cursor:"default"}},d.createElement("div",{className:"solo-game__quiz-list__item__img",style:{backgroundImage:"url(".concat(e.thumbnail||"",")")}}),d.createElement("div",{className:"solo-game__quiz-list__item__name"},e.name),d.createElement("div",{className:"solo-game__quiz-list__item__songs"},(e.songs||[]).length," song",1===(e.songs||[]).length?"":"s"),!!e.playCount&&d.createElement("div",{className:"solo-game__quiz-list__item__plays"},e.playCount," play",1===e.playCount?"":"s"),d.createElement("a",{href:"/?quiz=".concat(e.code),target:"_blank",style:{marginLeft:20}},"Play ",d.createElement("span",{className:"fa fa-external-link",style:{fontSize:14,marginLeft:2}})),d.createElement("a",{href:"/?edit=".concat(e.code,"&token=").concat(e.token),target:"_blank",style:{marginLeft:20}},"Edit ",d.createElement("span",{className:"fa fa-external-link",style:{fontSize:14,marginLeft:2}})))}
2))):d.createElement("div",null,"You havenât added any quizzes yet!"),d.createElement("hr",null),d.createElement("div",{className:"solo-game__quiz-list__create__footer",style:{width:180,marginBottom:20}},d.createElement(A,{primary:!0,label:"Create Quiz",onClick:this.onCreateQuizClick})),d.createElement("div",{className:"solo-game__quiz-list__create__footer",style:{width:180}},d.createElement(A,{primary:!0,label:"View all quizzes",onClick:this.startSingleplayer}))))}}]),a}(d.Component);var Bc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;o(this,a),(t=r.call(this,e)).onUsernameChange=function(e){return t.setState({username:e})},t.onFullnameChange=function(e){return t.setState({fullname:e})},t.onEmailChange=function(e){return t.setState({email:e})},t.onAvatarChange=function(e){return t.setState({avatar:e})},t.onPasswordChange=function(e){return t.setState({password:e})},t.onPassword2Change=function(e){return t.setState({password2:e})},t.isValidEmail=function(e){return!!(e+"").match(/([^\s]+\s*(@|\[\s*(@|at)\s*\])\s*[^\s]+)/g,"")},t.onSaveClick=function(){var e=t.state,n=e.avatar,r=e.username,o=e.email,a=e.fullname,i=e.password,s=e.password2,c=e.error;if(!n)return t.setState({error:"Please select an avatar"});if(!r)return t.setState({error:"Please enter your username"});if(!a)return t.setState({error:"Please enter your fullname"});if(i&&s&&i!==s)return t.setState({error:"Password doesn't match"});if(c)return t.setState({error:""});var u,l={avatar:n,username:r,fullname:a,email:o};i&&(l.password=i),t.props.dispatch((u=l,function(e,t){g().defaults.headers.common["x-access-token"]=localStorage.SONGLIO_TOKEN,g().post("/account/profile",u).then((function(t){var n=t.data;"success"===n.status?(e({type:"ACCOUNT_UPDATE",payload:{account:n.account}}),alertify.success("Saved")):alertify.error("Something went wrong.")})).catch((function(e){console.log(e),alertify.error("Something went wrong.")}))}))};var n=e.account||{};return t.state={avatar:n.avatar||"",username:n.username||"",fullname:n.fullname||"",email:n.email||"",password:n.password||"",password2:n.password2||"",error:""},t}return i(a,[{key:"render",value:function(){var e=this.state,t=e.avatar,n=e.username,r=e.email,o=e.fullname,a=e.error;return d.createElement("div",{className:"account-settings"},d.createElement("div",{className:"account-dashboard__tile"},!(n&&o)&&d.createElement(D,{status:"warning",content:"Please enter your fullname and a username to use in Songlio games."}),d.createElement("div",{className:"account-settings__input"},d.createElement(I,{label:"Fullname:",defaultValue:o,onChange:this.onFullnameChange})),d.createElement("div",{className:"account-settings__input"},d.createElement(I,{label:"Username:",defaultValue:n,onChange:this.onUsernameChange})),d.createElement("div",{className:"account-settings__avatar"},d.createElement("div",{className:"account-settings__avatar__label input__label"},"Default avatar:"),d.createElement(vs,{avatar:t,onChange:this.onAvatarChange})),d.createElement("div",{className:"account-settings__input"},d.createElement(I,{label:"Email address:",disabled:!0,defaultValue:r,onChange:this.onEmailChange})),d.createElement("div",{className:"account-settings__input"},d.createElement(I,{type:"password",label:"New password:",onChange:this.onPasswordChange})),d.createElement("div",{className:"account-settings__input"},d.createElement(I,{type:"password",label:"Confirm password:",onChange:this.onPassword2Change})),!!a&&d.createElement("div",{className:"account-settings__error"},a),d.createElement("div",{className:"account-settings__footer"},d.createElement(A,{primary:!0,label:"Save",onClick:this.onSaveClick}))))}}]),a}(d.Component);var Uc=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(e){var t;return o(this,a),(t=r.call(this,e)).onTabChange=function(e){return t.setState({tab:e})},t.getTabOptions=function(){return[{label:"Dashboard",value:"dashboard"},{label:"Shop",value:"shop"},{label:"My quizzes",value:"solo-quizzes"},{label:"Settings",value:"settings"}].map((function(e){return e.active=e.value===t.state.tab,e}))},t.onHomePageClick=function(){window.history.replaceState({},document.title,"/"),t.props.dispatch(k("home"))},t.onLogout=function(){t.props.dispatch(L())},t.state={tab:e.account.username?"dashboard":"settings"},t}return i(a,[{key:"render",value:function(){var e=this.props,t=e.dis
2patch,n=e.account,r=this.state.tab,o=this.getTabOptions();return d.createElement("div",{className:"account-manager"},d.createElement("div",{className:"account-manager__nav"},d.createElement("div",{className:"account-manager__nav__left"},d.createElement("div",{className:"account-manager__nav__title",onClick:this.onHomePageClick},"Songlio")),d.createElement("div",{className:"account-manager__nav__right"},d.createElement("a",{href:"https://forms.gle/LE6XR43PV2WZYtmp6",target:"_blank","data-tip":"Give feedback",className:"account-manager__nav__right__item"},d.createElement("span",{className:"fa fa-bullhorn"})),n.loggedIn&&d.createElement("span",{onClick:this.onLogout,"data-tip":"Log out",className:"account-manager__nav__right__item"},d.createElement("span",{className:"fa fa-sign-out"})),d.createElement(H,null))),d.createElement("div",{className:"account-manager__outer"},d.createElement("div",{className:"account-manager__container container"},d.createElement("div",{className:"account-manager__body"},d.createElement("div",{className:"account-manager__header"},d.createElement(Er,{tabs:o,onChange:this.onTabChange})),d.createElement("div",{className:"account-manager__main"},"settings"===r?d.createElement(Bc,{dispatch:t,account:n}):"shop"===r?d.createElement(jc,{dispatch:t,account:n}):"solo-quizzes"===r?d.createElement(Lc,{dispatch:t,account:n}):d.createElement(Ic,{dispatch:t,account:n,onTabChange:this.onTabChange}))))),d.createElement(yr,{place:"bottom",effect:"solid",clickable:!0,delayShow:50,backgroundColor:"#414141",textColor:"white",className:"quiz-nav-tooltip"}))}}]),a}(d.Component);function Fc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Yc=n(2370),Wc=(n(9724),n(5870));function Hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hc(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vc={loggedIn:!1,token:"",id:"",username:"",fullname:"",firstname:"",email:"",avatar:"",level:1,xp:0,coins:0,stats:{},purchases:[]};function Qc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qc(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zc={room:""};function Kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kc(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jc={enabled:!1,id:null,name:"",songs:[],songIndex:0,startTime:null,finishTime:null,totalTime:null,quizzes:[],rankings:[],loadedStandardQuizzes:!1,loadedCustomQuizzes:!1,isLoading:!0,presetQuizzes:[],info:{}};function eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?eu(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nu={enabled:!1,custom:!1,code:null,token:null,name:"",songs:[]};function ru(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ou(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ru(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ru(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var au={id:"",name:"",avatar:"",joined:!1};function iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function su(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iu(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cu={page:"home"};const uu=(0,Yc.UY)({account:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vc,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ACCOUNT_LOGIN":return Gc(Gc({},e),{},{loggedIn:!0,id:t.payload.account.id,username:t.payload.account.username,fullname:t.payload.account.fullname,firstname:t.payload.account.firstname||t.payload.account.fullname.trim().split(" ")[0],email:t.payload.account.email,avatar:t.payload.account.avatar,level:t.payload.account.level,xp:t.payload.account.xp,coins:t.payload.account.coins,stats:t.payload.account.stats,purchases:t.payload.account.purchases,token:t.payload.token});case"ACCOUNT_LOGOUT":return{loggedIn:!1,token:"",email:"",avatar:""};case"ACCOUNT_UPDATE":return Gc(Gc({},e),{},{username:t.payload.account.username,fullname:t.payload.account.fullname,email:t.payload.account.email,avatar:t.payload.account.avatar});case"ACCOUNT_LEVEL_UPDATE":return Gc(Gc({},e),{},{level:t.payload.level,xp:t.payload.xp})}return e},quiz:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zc,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOAD_DATA":return $c($c({},e),{},{room:t.payload.room});case"UPDATE_DATA":case"PLAYER_CONNECTED":return $c($c($c({},e),t.payload),{},{room:t.payload.code});case"JOIN_ROOM":return $c($c($c({},e),t.payload.room),{},{room:t.payload.room.code});case"PLAYER_DISCONNECTED":return $c($c({},e),{},{players:(e.players||[]).map((function(n){return n._id===t.payload.playerId?$c($c({},n),{},{connected:!1,kicked:!!e.public}):n}))});case"LOGOUT":return{room:""}}return e},quizBuilder:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CREATE_QUIZ_BUILDER":return tu(tu({},e),{},{enabled:!0},t.payload.quiz);case"EXIT_QUIZ_BUILDER":return{enabled:!1,custom:!1,code:null,token:null,name:"",songs:[]}}return e},soloQuiz:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jc,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"JOIN_SOLO_ROOM":return Xc(Xc({},e),{},{enabled:!0});case"SET_LOADING":return Xc(Xc({},e),{},{isLoading:!0});case"UNSET_LOADING":return Xc(Xc({},e),{},{isLoading:!1});case"JOIN_SOLO_QUIZ_ID":return Xc(Xc({},e),{},{id:t.payload.quiz});case"LOAD_SOLO_QUIZ":return Xc(Xc({},e),{},{id:t.payload.id,name:t.payload.name,songs:t.payload.songs,songIndex:0});case"LOAD_PRESET_QUIZZES":return Xc(Xc({},e),{},{presetQuizzes:t.payload.quizzes});case"LOAD_SOLO_QUIZZES":return Xc(Xc({},e),{},{quizzes:t.payload.quizzes,info:t.payload.info||e.info,loadedStandardQuizzes:e.loadedStandardQuizzes||["all","standard"].includes(t.payload.type),loadedCustomQuizzes:e.loadedCustomQuizzes||["all","custom"].includes(t.payload.type)});case"START_SOLO_QUIZ":return Xc(Xc({},e),{},{startTime:Cs()(),songs:e.songs.map((function(t,n){return e.songIndex===n&&(t.startTime=Cs()()),t}))});case"SOLO_QUIZ_GUESS":return Xc(Xc({},e),{},{startTime:Cs()(),songs:e.songs.map((function(n,r){return e.songIndex===r&&(n.guesses||(n.guesses=[]),n.guesses.push({text:t.payload.guess,time:Cs()(),correct:t.payload.correct})),n}))});case"SOLO_QUIZ_NEXT_SONG":return Xc(Xc({},e),{},{finishTime:e.songIndex+1>=e.songs.length?Cs()():null,songs:e.songs.map((function(t,n){return e.songIndex===n&&(t.finishTime=Cs()()),e.songIndex+1===n&&(t.startTime=Cs()()),t}
2)),songIndex:e.songIndex+1});case"SOLO_QUIZ_RESTART":return Xc(Xc({},e),{},{enabled:!0,id:null,name:"",songs:[],rankings:[],songIndex:0,startTime:null,finishTime:null,totalTime:null});case"SOLO_QUIZ_RESTART_SAME":return Xc(Xc({},e),{},{enabled:!0,songIndex:0,startTime:Cs()(),songs:e.songs.sort((function(){return.5-Math.random()})).map((function(t,n){return t.guesses=[],t.startTime=null,e.songIndex===n&&(t.startTime=Cs()()),t.finishTime=null,t})),finishTime:null,totalTime:null});case"LOAD_SOLO_QUIZ_RANKINGS":return Xc(Xc({},e),{},{rankings:t.payload.rankings});case"SAVE_SOLO_QUIZ_TIME":return Xc(Xc({},e),{},{totalTime:t.payload.time});case"LOGOUT":return Xc(Xc({},e),{},{enabled:!1,id:null,name:"",songs:[],rankings:[],songIndex:0})}return e},player:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:au,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"JOIN_ROOM":case"JOIN_SOLO_ROOM":return ou(ou({},e),{},{id:t.payload.player.id,name:t.payload.player.name,avatar:t.payload.player.avatar,joined:!0});case"LOGOUT":return{id:"",name:"",avatar:"",joined:!1}}return e},nav:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"NAVIGATE":return su(su({},e),{},{page:t.payload.page||"home"});case"ACCOUNT_LOGOUT":return{page:"home"}}return e}});var lu=n(6415),fu=[Wc.Z];const pu=(0,Yc.MT)(uu,(0,lu.Uo)(Yc.md.apply(void 0,function(e){if(Array.isArray(e))return Fc(e)}(du=fu)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(du)||function(e,t){if(e){if("string"==typeof e)return Fc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fc(e,t):void 0}}(du)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())));var du,hu;pu.dispatch(function(e,t,n,r){return function(o,a){var i=a().account,s=localStorage.getItem("QUIZ_PLAYER")?JSON.parse(localStorage.getItem("QUIZ_PLAYER")):null;r?("account"!==r||i&&i.id)&&o(k(r)):e&&s&&s.room===e||!e&&s?o(S(s.room,s.name,s.avatar,!0)):e?o({type:"LOAD_DATA",payload:{room:e}}):t?o({type:"LOAD_SOLO_QUIZ_ID",payload:{quiz:t}}):n&&o(E(n))}}(window.room,window.quizId,window.quizBuilder,window.passwordResetToken?"password-reset":window.location.href.includes("?account")?"account":null));var mu=(0,m.$j)((function(e){return{nav:e.nav,account:e.account,quiz:e.quiz,quizBuilder:e.quizBuilder,soloQuiz:e.soloQuiz,player:e.player}}))(hu=function(e){c(a,e);var t,n,r=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=p(t);if(n){var o=p(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)});function a(){return o(this,a),r.apply(this,arguments)}return i(a,[{key:"render",value:function(){var e=this.props,t=e.dispatch,n=e.nav,r=e.account,o=e.quiz,a=e.quizBuilder,i=e.soloQuiz,s=e.player;return d.createElement("section",{className:"quiz"},a.enabled?d.createElement(ie,{dispatch:t,account:r,quiz:a}):s.joined?i.enabled?d.createElement(Ys,{dispatch:t,account:r,quiz:i,player:s}):d.createElement(Pc,{dispatch:t,account:r,quiz:o,presetQuizzes:i.presetQuizzes,player:s}):"account"===n.page?d.createElement(Uc,{dispatch:t,account:r}):"password-reset"===n.page?d.createElement(Ac,{dispatch:t}):d.createElement(Rc,{dispatch:t,account:r,quiz:o,soloQuiz:i,player:s}))}}]),a}(d.Component))||hu,yu=document.getElementById("quiz");h.render(d.createElement(m.zt,{store:pu},d.createElement(mu,{container:yu})),yu)},6476:(e,t,n)=>{e.exports={default:n(1480),__esModule:!0}},8427:(e,t,n)=>{e.exports={default:n(7844),__esModule:!0}},5510:(e,t,n)=>{e.exports={default:n(1931),__esModule:!0}}
2,8629:(e,t,n)=>{e.exports={default:n(547),__esModule:!0}},9512:(e,t,n)=>{e.exports={default:n(3122),__esModule:!0}},4918:(e,t,n)=>{e.exports={default:n(4045),__esModule:!0}},9343:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},241:(e,t,n)=>{"use strict";t.__esModule=!0;var r,o=(r=n(6476))&&r.__esModule?r:{default:r};t.default=o.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},6653:(e,t,n)=>{"use strict";t.__esModule=!0;var r=i(n(8629)),o=i(n(8427)),a=i(n(4448));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,a.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},749:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},7306:(e,t,n)=>{"use strict";t.__esModule=!0;var r,o=(r=n(4448))&&r.__esModule?r:{default:r};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},4448:(e,t,n)=>{"use strict";t.__esModule=!0;var r=i(n(4918)),o=i(n(9512)),a="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function i(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===a(r.default)?function(e){return void 0===e?"undefined":a(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":a(e)}},1480:(e,t,n)=>{n(5673),e.exports=n(4307).Object.assign},7844:(e,t,n)=>{n(6053);var r=n(4307).Object;e.exports=function(e,t){return r.create(e,t)}},1931:(e,t,n)=>{n(1871),e.exports=n(4307).Object.entries},547:(e,t,n)=>{n(7286),e.exports=n(4307).Object.setPrototypeOf},3122:(e,t,n)=>{n(4883),n(7535),n(420),n(496),e.exports=n(4307).Symbol},4045:(e,t,n)=>{n(26),n(696),e.exports=n(3962).f("iterator")},8762:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},465:e=>{e.exports=function(){}},2623:(e,t,n)=>{var r=n(9485);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},6442:(e,t,n)=>{var r=n(2697),o=n(8142),a=n(606);e.exports=function(e){return function(t,n,i){var s,c=r(t),u=o(c.length),l=a(i,u);
2if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},9722:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},4307:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},3106:(e,t,n)=>{var r=n(8762);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},7399:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},6156:(e,t,n)=>{e.exports=!n(5418)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},7961:(e,t,n)=>{var r=n(9485),o=n(3439).document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},794:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},9490:(e,t,n)=>{var r=n(7896),o=n(5772),a=n(2016);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var i,s=n(e),c=a.f,u=0;s.length>u;
2)c.call(e,i=s[u++])&&t.push(i);return t}},5263:(e,t,n)=>{var r=n(3439),o=n(4307),a=n(3106),i=n(3416),s=n(5043),c=function(e,t,n){var u,l,f,p=e&c.F,d=e&c.G,h=e&c.S,m=e&c.P,y=e&c.B,g=e&c.W,v=d?o:o[t]||(o[t]={}),_=v.prototype,b=d?r:h?r[t]:(r[t]||{}).prototype;for(u in d&&(n=t),n)(l=!p&&b&&void 0!==b[u])&&s(v,u)||(f=l?b[u]:n[u],v[u]=d&&"function"!=typeof b[u]?n[u]:y&&l?a(f,r):g&&b[u]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):m&&"function"==typeof f?a(Function.call,f):f,m&&((v.virtual||(v.virtual={}))[u]=f,e&c.R&&_&&!_[u]&&i(_,u,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},5418:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},3439:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},5043:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},3416:(e,t,n)=>{var r=n(9443),o=n(1596);e.exports=n(6156)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},5477:(e,t,n)=>{var r=n(3439).document;e.exports=r&&r.documentElement},260:(e,t,n)=>{e.exports=!n(6156)&&!n(5418)((function(){return 7!=Object.defineProperty(n(7961)("div"),"a",{get:function(){return 7}}).a}))},3709:(e,t,n)=>{var r=n(9722);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},3062:(e,t,n)=>{var r=n(9722);e.exports=Array.isArray||function(e){return"Array"==r(e)}},9485:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},4998:(e,t,n)=>{"use strict";var r=n(6638),o=n(1596),a=n(3461),i={};n(3416)(i,n(6573)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(i,{next:o(1,n)}),a(e,t+" Iterator")}},2907:(e,t,n)=>{"use strict";var r=n(8468),o=n(5263),a=n(4077),i=n(3416),s=n(3241),c=n(4998),u=n(3461),l=n(3937),f=n(6573)("iterator"),p=!([].keys&&"next"in[].keys()),d="keys",h="values",m=function(){return this};e.exports=function(e,t,n,y,g,v,_){c(n,t,y);var b,w,E,k=function(e){if(!p&&e in N)return N[e];switch(e){case d:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",x=g==h,C=!1,N=e.prototype,O=N[f]||N["@@iterator"]||g&&N[g],T=O||k(g),z=g?x?k("entries"):T:void 0,P="Array"==t&&N.entries||O;if(P&&(E=l(P.call(new e)))!==Object.prototype&&E.next&&(u(E,S,!0),r||"function"==typeof E[f]||i(E,f,m)),x&&O&&O.name!==h&&(C=!0,T=function(){return O.call(this)}),r&&!_||!p&&!C&&N[f]||i(N,f,T),s[t]=T,s[S]=m,g)if(b={values:x?T:k(h),keys:v?T:k(d),entries:z},_)for(w in b)w in N||a(N,w,b[w]);else o(o.P+o.F*(p||C),t,b);return b}},5353:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},3241:e=>{e.exports={}},8468:e=>{e.exports=!0},3878:(e,t,n)=>{var r=n(1510)("meta"),o=n(9485),a=n(5043),i=n(9443).f,s=0,c=Object.isExtensible||function(){return!0},u=!n(5418)((function(){return c(Object.preventExtensions({}))})),l=function(e){i(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return u&&f.NEED&&c(e)&&!a(e,r)&&l(e),e}}},4524:(e,t,n)=>{"use strict";var r=n(6156),o=n(7896),a=n(5772),i=n(2016),s=n(5737),c=n(3709),u=Object.assign;e.exports=!u||n(5418)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){for(var n=s(e),u=arguments.length,l=1,f=a.f,p=i.f;u>l;)for(var d,h=c(arguments[l++]),m=f?o(h).concat(f(h)):o(h),y=m.length,g=0;y>g;)d=m[g++],r&&!p.call(h,d)||(n[d]=h[d]);return n}:u},6638:(e,t,n)=>{var r=n(2623),o=n(8841),a=n(794),i=n(622)("IE_PROTO"),s=function(){},c=function(){var e,t=n(7961)("iframe"),r=a.length;for(t.style.display="none",n(5477).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[a[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[i]=e):n=c(),void 0===t?n:o(n,t)}}
vendor: 4,318 bytes, line 2
2,9443:(e,t,n)=>{var r=n(2623),o=n(260),a=n(4311),i=Object.defineProperty;t.f=n(6156)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},8841:(e,t,n)=>{var r=n(9443),o=n(2623),a=n(7896);e.exports=n(6156)?Object.defineProperties:function(e,t){o(e);for(var n,i=a(t),s=i.length,c=0;s>c;)r.f(e,n=i[c++],t[n]);return e}},9324:(e,t,n)=>{var r=n(2016),o=n(1596),a=n(2697),i=n(4311),s=n(5043),c=n(260),u=Object.getOwnPropertyDescriptor;t.f=n(6156)?u:function(e,t){if(e=a(e),t=i(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},7517:(e,t,n)=>{var r=n(2697),o=n(32).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?function(e){try{return o(e)}catch(e){return i.slice()}}(e):o(r(e))}},32:(e,t,n)=>{var r=n(1481),o=n(794).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},5772:(e,t)=>{t.f=Object.getOwnPropertySymbols},3937:(e,t,n)=>{var r=n(5043),o=n(5737),a=n(622)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},1481:(e,t,n)=>{var r=n(5043),o=n(2697),a=n(6442)(!1),i=n(622)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),c=0,u=[];for(n in s)n!=i&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~a(u,n)||u.push(n));return u}},7896:(e,t,n)=>{var r=n(1481),o=n(794);e.exports=Object.keys||function(e){return r(e,o)}},2016:(e,t)=>{t.f={}.propertyIsEnumerable},3932:(e,t,n)=>{var r=n(6156),o=n(7896),a=n(2697),i=n(2016).f;e.exports=function(e){return function(t){for(var n,s=a(t),c=o(s),u=c.length,l=0,f=[];u>l;)n=c[l++],r&&!i.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}}},1596:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4077:(e,t,n)=>{e.exports=n(3416)},4654:(e,t,n)=>{var r=n(9485),o=n(2623),a=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(3106)(Function.call,n(9324).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},3461:(e,t,n)=>{var r=n(9443).f,o=n(5043),a=n(6573)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},622:(e,t,n)=>{var r=n(8864)("keys"),o=n(1510);e.exports=function(e){return r[e]||(r[e]=o(e))}},8864:(e,t,n)=>{var r=n(4307),o=n(3439),a="__core-js_shared__",i=o[a]||(o[a]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(8468)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},9464:(e,t,n)=>{var r=n(9700),o=n(7399);e.exports=function(e){return function(t,n){var a,i,s=String(o(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(a=s.charCodeAt(c))<55296||a>56319||c+1===u||(i=s.charCodeAt(c+1))<56320||i>57343?e?s.charAt(c):a:e?s.slice(c,c+2):i-56320+(a-55296<<10)+65536}}},606:(e,t,n)=>{var r=n(9700),o=Math.max,a=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):a(e,t)}},9700:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},2697:(e,t,n)=>{var r=n(3709),o=n(7399);e.exports=function(e){return r(o(e))}},8142:(e,t,n)=>{var r=n(9700),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},5737:(e,t,n)=>{var r=n(7399);e.exports=function(e){return Object(r(e))}},4311:(e,t,n)=>{var r=n(9485);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},1510:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},15:(e,t,n)=>{var r=n(3439),o=n(4307),a=n(8468),i=n(3962),s=n(9443).f;
vendor: 5,347 bytes, line 2
2e.exports=function(e){var t=o.Symbol||(o.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:i.f(e)})}},3962:(e,t,n)=>{t.f=n(6573)},6573:(e,t,n)=>{var r=n(8864)("wks"),o=n(1510),a=n(3439).Symbol,i="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))}).store=r},8402:(e,t,n)=>{"use strict";var r=n(465),o=n(5353),a=n(3241),i=n(2697);e.exports=n(2907)(Array,"Array",(function(e,t){this._t=i(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},5673:(e,t,n)=>{var r=n(5263);r(r.S+r.F,"Object",{assign:n(4524)})},6053:(e,t,n)=>{var r=n(5263);r(r.S,"Object",{create:n(6638)})},7286:(e,t,n)=>{var r=n(5263);r(r.S,"Object",{setPrototypeOf:n(4654).set})},7535:()=>{},26:(e,t,n)=>{"use strict";var r=n(9464)(!0);n(2907)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},4883:(e,t,n)=>{"use strict";var r=n(3439),o=n(5043),a=n(6156),i=n(5263),s=n(4077),c=n(3878).KEY,u=n(5418),l=n(8864),f=n(3461),p=n(1510),d=n(6573),h=n(3962),m=n(15),y=n(9490),g=n(3062),v=n(2623),_=n(9485),b=n(5737),w=n(2697),E=n(4311),k=n(1596),S=n(6638),x=n(7517),C=n(9324),N=n(5772),O=n(9443),T=n(7896),z=C.f,P=O.f,R=x.f,A=r.Symbol,q=r.JSON,M=q&&q.stringify,I=d("_hidden"),D=d("toPrimitive"),j={}.propertyIsEnumerable,L=l("symbol-registry"),B=l("symbols"),U=l("op-symbols"),F=Object.prototype,Y="function"==typeof A&&!!N.f,W=r.QObject,H=!W||!W.prototype||!W.prototype.findChild,G=a&&u((function(){return 7!=S(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=z(F,t);r&&delete F[t],P(e,t,n),r&&e!==F&&P(F,t,r)}:P,V=function(e){var t=B[e]=S(A.prototype);return t._k=e,t},Q=Y&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},$=function(e,t,n){return e===F&&$(U,t,n),v(e),t=E(t,!0),v(n),o(B,t)?(n.enumerable?(o(e,I)&&e[I][t]&&(e[I][t]=!1),n=S(n,{enumerable:k(0,!1)})):(o(e,I)||P(e,I,k(1,{})),e[I][t]=!0),G(e,t,n)):P(e,t,n)},Z=function(e,t){v(e);for(var n,r=y(t=w(t)),o=0,a=r.length;a>o;)$(e,n=r[o++],t[n]);return e},K=function(e){var t=j.call(this,e=E(e,!0));return!(this===F&&o(B,e)&&!o(U,e))&&(!(t||!o(this,e)||!o(B,e)||o(this,I)&&this[I][e])||t)},X=function(e,t){if(e=w(e),t=E(t,!0),e!==F||!o(B,t)||o(U,t)){var n=z(e,t);return!n||!o(B,t)||o(e,I)&&e[I][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=R(w(e)),r=[],a=0;n.length>a;)o(B,t=n[a++])||t==I||t==c||r.push(t);return r},ee=function(e){for(var t,n=e===F,r=R(n?U:w(e)),a=[],i=0;r.length>i;)!o(B,t=r[i++])||n&&!o(F,t)||a.push(B[t]);return a};Y||(s((A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===F&&t.call(U,n),o(this,I)&&o(this[I],e)&&(this[I][e]=!1),G(this,e,k(1,n))};return a&&H&&G(F,e,{configurable:!0,set:t}),V(e)}).prototype,"toString",(function(){return this._k})),C.f=X,O.f=$,n(32).f=x.f=J,n(2016).f=K,N.f=ee,a&&!n(8468)&&s(F,"propertyIsEnumerable",K,!0),h.f=function(e){return V(d(e))}),i(i.G+i.W+i.F*!Y,{Symbol:A});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)d(te[ne++]);for(var re=T(d.store),oe=0;re.length>oe;)m(re[oe++]);i(i.S+i.F*!Y,"Symbol",{for:function(e){return o(L,e+="")?L[e]:L[e]=A(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!");for(var t in L)if(L[t]===e)return t},useSetter:function(){H=!0},useSimple:function(){H=!1}}),i(i.S+i.F*!Y,"Object",{create:function(e,t){return void 0===t?S(e):Z(S(e),t)},defineProperty:$,defineProperties:Z,getOwnPropertyDescriptor:X,getOwnPropertyNames:J,getOwnPropertySymbols:ee});var ae=u((function(){N.f(1)}));i(i.S+i.F*ae,"Object",{getOwnPropertySymbols:function(e){return N.f(b(e))}}),q&&i(i.S+i.F*(!Y||u((function(){var e=A();return"[null]"!=M([e])||"{}"!=M({a:e})||"{}"!=M(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(_(t)||void 0!==e)&&!Q(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Q(t))return t}),r[1]=t,M.apply(q,r)}}),A.prototype[D]||n(3416)(A.prototype,D,A.prototype.valueOf),f(A,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},1871:(e,t,n)=>{var r=n(5263),o=n(3932)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},420:(e,t,n)=>{n(15)("asyncIterator")},496:(e,t,n)=>{n(15)("observable")},696:(e,t,n)=>{n(8402);for(var r=n(3439),o=n(3416),a=n(3241),i=n(6573)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],l=r[u],f=l&&l.prototype;f&&!f[i]&&o(f,i,u),a[u]=a.Array}},2307:e=>{function t(e){e=e||{}
2,this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=t,t.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},t.prototype.reset=function(){this.attempts=0},t.prototype.setMin=function(e){this.ms=e},t.prototype.setMax=function(e){this.max=e},t.prototype.setJitter=function(e){this.jitter=e}},8718:(e,t)=>{!function(e){"use strict";t.encode=function(t){var n,r=new Uint8Array(t),o=r.length,a="";for(n=0;n<o;n+=3)a+=e[r[n]>>2],a+=e[(3&r[n])<<4|r[n+1]>>4],a+=e[(15&r[n+1])<<2|r[n+2]>>6],a+=e[63&r[n+2]];return o%3==2?a=a.substring(0,a.length-1)+"=":o%3==1&&(a=a.substring(0,a.length-2)+"=="),a},t.decode=function(t){var n,r,o,a,i,s=.75*t.length,c=t.length,u=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var l=new ArrayBuffer(s),f=new Uint8Array(l);for(n=0;n<c;n+=4)r=e.indexOf(t[n]),o=e.indexOf(t[n+1]),a=e.indexOf(t[n+2]),i=e.indexOf(t[n+3]),f[u++]=r<<2|o>>4,f[u++]=(15&o)<<4|a>>2,f[u++]=(3&a)<<6|63&i;return l}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},2522:e=>{var t=void 0!==t?t:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,n=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),r=n&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),o=t&&t.prototype.append&&t.prototype.getBlob;function a(e){return e.map((function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var n=new Uint8Array(e.byteLength);n.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=n.buffer}return t}return e}))}function i(e,n){n=n||{};var r=new t;return a(e).forEach((function(e){r.append(e)})),n.type?r.getBlob(n.type):r.getBlob()}function s(e,t){return new Blob(a(e),t||{})}"undefined"!=typeof Blob&&(i.prototype=Blob.prototype,s.prototype=Blob.prototype),e.exports=n?r?Blob:s:o?i:void 0},42:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},4244:e=>{var t=[].slice;e.exports=function(e,n){if("string"==typeof n&&(n=e[n]),"function"!=typeof n)throw new Error("bind() requires a function");var r=t.call(arguments,2);return function(){return n.apply(e,r.concat(t.call(arguments)))}}},9797:(e,t,n)=>{var r;try{r=n(6724)}catch(e){r=n(6724)}e.exports=function e(t){switch(r(t)){case"object":var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=e(t[o]));return n;case"array":n=new Array(t.length);for(var a=0,i=t.length;a<i;a++)n[a]=e(t[a]);return n;case"regexp":var s="";return s+=t.multiline?"m":"",s+=t.global?"g":"",s+=t.ignoreCase?"i":"",new RegExp(t.source,s);case"date":return new Date(t.getTime());default:return t}}},4398:e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};
2var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n)for(var r=0,o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t);return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},8101:e=>{e.exports=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},1064:(e,t)=>{t=e.exports=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){var t=(new Date).getTime(),r=Math.max(0,16-(t-n)),o=setTimeout(e,r);return n=t,o};var n=(new Date).getTime(),r=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.clearTimeout;t.cancel=function(e){r.call(window,e)}},5e3:(e,t,n)=>{var r=n(4398),o=n(9797),a=n(6724),i=n(9265);function s(e){if(!(this instanceof s))return new s(e);this._from=e,this.ease("linear"),this.duration(500)}e.exports=s,r(s.prototype),s.prototype.reset=function(){return this.isArray="array"===a(this._from),this._curr=o(this._from),this._done=!1,this._start=Date.now(),this},s.prototype.to=function(e){return this.reset(),this._to=e,this},s.prototype.duration=function(e){return this._duration=e,this},s.prototype.ease=function(e){if(!(e="function"==typeof e?e:i[e]))throw new TypeError("invalid easing function");return this._ease=e,this},s.prototype.stop=function(){return this.stopped=!0,this._done=!0,this.emit("stop"),this.emit("end"),this},s.prototype.step=function(){if(!this._done){var e=this._duration,t=Date.now();if(t-this._start>=e)return this._from=this._to,this._update(this._to),this._done=!0,this.emit("end"),this;var n=this._from,r=this._to,o=this._curr,a=(0,this._ease)((t-this._start)/e);if(this.isArray){for(var i=0;i<n.length;++i)o[i]=n[i]+(r[i]-n[i])*a;return this._update(o),this}for(var s in n)o[s]=n[s]+(r[s]-n[s])*a;return this._update(o),this}},s.prototype.update=function(e){return 0==arguments.length?this.step():(this._update=e,this)}},6724:e=>{var t=Object.prototype.toString;e.exports=function(e){switch(t.call(e)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return null===e?"null":void 0===e?"undefined":e!=e?"nan":e&&1===e.nodeType?"element":typeof(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e))}},9944:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},1378:(e,t,n)=>{var r=n(8759);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},8669:(e,t,n)=>{var r=n(211),o=n(4710),a=n(7826),i=r("unscopables"),s=Array.prototype;null==s[i]&&a.f(s,i,{configurable:!0,value:o(null)}),e.exports=function(e){s[i][e]=!0}},9966:(e,t,n)=>{"use strict";var r=n(3448).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},1855:e=>{e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},6112:(e,t,n)=>{var r=n(8759);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},656:e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},3466:(e,t,n)=>{"use strict";var r,o=n(656),a=n(5283),i=n(2086),s=n(8759),c=n(3167),u=n(375),l=n(2585),f=n(1007),p=n(7826).f,d=n(2130),h=n(7530),m=n(211),y=n(5422),g=i.Int8Array,v=g&&g.prototype,_=i.Uint8ClampedArray,b=_&&_.prototype,w=g&&d(g),E=v&&d(v),k=Object.prototype,S=k.isPrototypeOf,x=m("toStringTag"),C=y("TYPED_ARRAY_TAG"),N=o&&!!h&&"Opera"!==u(i.opera),O=!1,T={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},P=function(e){if(!s(e))return!1;var t=u(e);return c(T,t)||c(z,t)};for(r in T)i[r]||(N=!1);if((!N||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},N))for(r in T)i[r]&&h(i[r],w);if((!N||!E||E===k)&&(E=w.prototype,N))for(r in T)i[r]&&h(i[r].prototype,E);if(N&&d(b)!==E&&h(b,E),a&&!c(E,x))for(r in O=!0,p(E,x,{get:function(){return s(this)?this[C]:void 0}}),T)i[r]&&l(i[r],C,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:O&&C,aTypedArray:function(e){if(P(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(h){if(S.call(w,e))return e}else for(var t in T)if(c(T,r)){var n=i[t];if(n&&(e===n||S.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(a){if(n)for(var r in T){var o=i[r];if(o&&c(o.prototype,e))try{delete o.prototype[e]}catch(e){}}E[e]&&!n||f(E,e,n?t:N&&v[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;
vendor: 4,159 bytes, line 2
2if(a){if(h){if(n)for(r in T)if((o=i[r])&&c(o,e))try{delete o[e]}catch(e){}if(w[e]&&!n)return;try{return f(w,e,n?t:N&&w[e]||t)}catch(e){}}for(r in T)!(o=i[r])||o[e]&&!n||f(o,e,t)}},isView:function(e){if(!s(e))return!1;var t=u(e);return"DataView"===t||c(T,t)||c(z,t)},isTypedArray:P,TypedArray:w,TypedArrayPrototype:E}},956:(e,t,n)=>{"use strict";var r=n(2086),o=n(5283),a=n(656),i=n(2585),s=n(9431),c=n(3677),u=n(1855),l=n(9679),f=n(4005),p=n(3687),d=n(3339),h=n(2130),m=n(7530),y=n(62).f,g=n(7826).f,v=n(435),_=n(914),b=n(3278),w=b.get,E=b.set,k="ArrayBuffer",S="DataView",x="Wrong index",C=r.ArrayBuffer,N=C,O=r.DataView,T=O&&O.prototype,z=Object.prototype,P=r.RangeError,R=d.pack,A=d.unpack,q=function(e){return[255&e]},M=function(e){return[255&e,e>>8&255]},I=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},D=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},j=function(e){return R(e,23,4)},L=function(e){return R(e,52,8)},B=function(e,t){g(e.prototype,t,{get:function(){return w(this)[t]}})},U=function(e,t,n,r){var o=p(n),a=w(e);if(o+t>a.byteLength)throw P(x);var i=w(a.buffer).bytes,s=o+a.byteOffset,c=i.slice(s,s+t);return r?c:c.reverse()},F=function(e,t,n,r,o,a){var i=p(n),s=w(e);if(i+t>s.byteLength)throw P(x);for(var c=w(s.buffer).bytes,u=i+s.byteOffset,l=r(+o),f=0;f<t;f++)c[u+f]=l[a?f:t-f-1]};if(a){if(!c((function(){C(1)}))||!c((function(){new C(-1)}))||c((function(){return new C,new C(1.5),new C(NaN),C.name!=k}))){for(var Y,W=(N=function(e){return u(this,N),new C(p(e))}).prototype=C.prototype,H=y(C),G=0;H.length>G;)(Y=H[G++])in N||i(N,Y,C[Y]);W.constructor=N}m&&h(T)!==z&&m(T,z);var V=new O(new N(2)),Q=T.setInt8;V.setInt8(0,2147483648),V.setInt8(1,2147483649),!V.getInt8(0)&&V.getInt8(1)||s(T,{setInt8:function(e,t){Q.call(this,e,t<<24>>24)},setUint8:function(e,t){Q.call(this,e,t<<24>>24)}},{unsafe:!0})}else N=function(e){u(this,N,k);var t=p(e);E(this,{bytes:v.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},O=function(e,t,n){u(this,O,S),u(e,N,S);var r=w(e).byteLength,a=l(t);if(a<0||a>r)throw P("Wrong offset");if(a+(n=void 0===n?r-a:f(n))>r)throw P("Wrong length");E(this,{buffer:e,byteLength:n,byteOffset:a}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},o&&(B(N,"byteLength"),B(O,"buffer"),B(O,"byteLength"),B(O,"byteOffset")),s(O.prototype,{getInt8:function(e){return U(this,1,e)[0]<<24>>24},getUint8:function(e){return U(this,1,e)[0]},getInt16:function(e){var t=U(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=U(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return D(U(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return D(U(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return A(U(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return A(U(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){F(this,1,e,q,t)},setUint8:function(e,t){F(this,1,e,q,t)},setInt16:function(e,t){F(this,2,e,M,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){F(this,2,e,M,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){F(this,4,e,I,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){F(this,4,e,I,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){F(this,4,e,j,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){F(this,8,e,L,t,arguments.length>2?arguments[2]:void 0)}});_(N,k),_(O,S),e.exports={ArrayBuffer:N,DataView:O}},990:(e,t,n)=>{"use strict";var r=n(3060),o=n(7740),a=n(4005),i=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=a(n.length),c=o(e,s),u=o(t,s),l=arguments.length>2?arguments[2]:void 0,f=i((void 0===l?s:o(l,s))-u,s-c),p=1;for(u<c&&c<u+f&&(p=-1,u+=f-1,c+=f-1);f-- >0;)u in n?n[c]=n[u]:delete n[c],c+=p,u+=p;return n}},435:(e,t,n)=>{"use strict";var r=n(3060),o=n(7740),a=n(4005);e.exports=function(e){for(var t=r(this),n=a(t.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),c=i>2?arguments[2]:void 0,u=void 0===c?n:o(c,n);u>s;)t[s++]=e;return t}},1984:(e,t,n)=>{"use strict";
vendor: 3,402 bytes, line 2
2var r=n(8062).forEach,o=n(2802)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},1842:(e,t,n)=>{"use strict";var r=n(8516),o=n(3060),a=n(7850),i=n(2814),s=n(4005),c=n(9720),u=n(1667);e.exports=function(e){var t,n,l,f,p,d,h=o(e),m="function"==typeof this?this:Array,y=arguments.length,g=y>1?arguments[1]:void 0,v=void 0!==g,_=u(h),b=0;if(v&&(g=r(g,y>2?arguments[2]:void 0,2)),null==_||m==Array&&i(_))for(n=new m(t=s(h.length));t>b;b++)d=v?g(h[b],b):h[b],c(n,b,d);else for(p=(f=_.call(h)).next,n=new m;!(l=p.call(f)).done;b++)d=v?a(f,g,[l.value,b],!0):l.value,c(n,b,d);return n.length=b,n}},6198:(e,t,n)=>{var r=n(4088),o=n(4005),a=n(7740),i=function(e){return function(t,n,i){var s,c=r(t),u=o(c.length),l=a(i,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},8062:(e,t,n)=>{var r=n(8516),o=n(5974),a=n(3060),i=n(4005),s=n(5574),c=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,l=4==e,f=6==e,p=7==e,d=5==e||f;return function(h,m,y,g){for(var v,_,b=a(h),w=o(b),E=r(m,y,3),k=i(w.length),S=0,x=g||s,C=t?x(h,k):n||p?x(h,0):void 0;k>S;S++)if((d||S in w)&&(_=E(v=w[S],S,b),e))if(t)C[S]=_;else if(_)switch(e){case 3:return!0;case 5:return v;case 6:return S;case 2:c.call(C,v)}else switch(e){case 4:return!1;case 7:c.call(C,v)}return f?-1:u||l?l:C}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterOut:u(7)}},1739:(e,t,n)=>{"use strict";var r=n(4088),o=n(9679),a=n(4005),i=n(2802),s=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,l=i("lastIndexOf"),f=u||!l;e.exports=f?function(e){if(u)return c.apply(this,arguments)||0;var t=r(this),n=a(t.length),i=n-1;for(arguments.length>1&&(i=s(i,o(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}:c},9955:(e,t,n)=>{var r=n(3677),o=n(211),a=n(1448),i=o("species");e.exports=function(e){return a>=51||!r((function(){var t=[];return(t.constructor={})[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},2802:(e,t,n)=>{"use strict";var r=n(3677);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},8758:(e,t,n)=>{var r=n(9944),o=n(3060),a=n(5974),i=n(4005),s=function(e){return function(t,n,s,c){r(n);var u=o(t),l=a(u),f=i(u.length),p=e?f-1:0,d=e?-1:1;if(s<2)for(;;){if(p in l){c=l[p],p+=d;break}if(p+=d,e?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:f>p;p+=d)p in l&&(c=n(c,l[p],p,u));return c}};e.exports={left:s(!1),right:s(!0)}},1147:e=>{var t=Math.floor,n=function(e,a){var i=e.length,s=t(i/2);return i<8?r(e,a):o(n(e.slice(0,s),a),n(e.slice(s),a),a)},r=function(e,t){for(var n,r,o=e.length,a=1;a<o;){for(r=a,n=e[a];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==a++&&(e[r]=n)}return e},o=function(e,t,n){for(var r=e.length,o=t.length,a=0,i=0,s=[];a<r||i<o;)a<r&&i<o?s.push(n(e[a],t[i])<=0?e[a++]:t[i++]):s.push(a<r?e[a++]:t[i++]);return s};e.exports=n},5574:(e,t,n)=>{var r=n(8759),o=n(6526),a=n(211)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[a])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},7850:(e,t,n)=>{var r=n(6112),o=n(6737);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){throw o(e),t}}}
2,8939:(e,t,n)=>{var r=n(211)("iterator"),o=!1;try{var a=0,i={next:function(){return{done:!!a++}},return:function(){o=!0}};i[r]=function(){return this},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},2306:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},375:(e,t,n)=>{var r=n(2371),o=n(2306),a=n(211)("toStringTag"),i="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?n:i?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},8474:(e,t,n)=>{var r=n(3167),o=n(6095),a=n(4399),i=n(7826);e.exports=function(e,t){for(var n=o(t),s=i.f,c=a.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},5469:(e,t,n)=>{var r=n(211)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},7209:(e,t,n)=>{var r=n(3677);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},1068:(e,t,n)=>{var r=n(9586),o=/"/g;e.exports=function(e,t,n,a){var i=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(a).replace(o,""")+'"'),s+">"+i+"</"+t+">"}},471:(e,t,n)=>{"use strict";var r=n(3083).IteratorPrototype,o=n(4710),a=n(5736),i=n(914),s=n(7719),c=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=o(r,{next:a(1,n)}),i(e,u,!1,!0),s[u]=c,e}},2585:(e,t,n)=>{var r=n(5283),o=n(7826),a=n(5736);e.exports=r?function(e,t,n){return o.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},5736:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9720:(e,t,n)=>{"use strict";var r=n(1288),o=n(7826),a=n(5736);e.exports=function(e,t,n){var i=r(t);i in e?o.f(e,i,a(0,n)):e[i]=n}},8432:(e,t,n)=>{"use strict";var r=n(1695),o=n(471),a=n(2130),i=n(7530),s=n(914),c=n(2585),u=n(1007),l=n(211),f=n(3296),p=n(7719),d=n(3083),h=d.IteratorPrototype,m=d.BUGGY_SAFARI_ITERATORS,y=l("iterator"),g="keys",v="values",_="entries",b=function(){return this};e.exports=function(e,t,n,l,d,w,E){o(n,t,l);var k,S,x,C=function(e){if(e===d&&P)return P;if(!m&&e in T)return T[e];switch(e){case g:case v:case _:return function(){return new n(this,e)}}return function(){return new n(this)}},N=t+" Iterator",O=!1,T=e.prototype,z=T[y]||T["@@iterator"]||d&&T[d],P=!m&&z||C(d),R="Array"==t&&T.entries||z;if(R&&(k=a(R.call(new e)),h!==Object.prototype&&k.next&&(f||a(k)===h||(i?i(k,h):"function"!=typeof k[y]&&c(k,y,b)),s(k,N,!0,!0),f&&(p[N]=b))),d==v&&z&&z.name!==v&&(O=!0,P=function(){return z.call(this)}),f&&!E||T[y]===P||c(T,y,P),p[t]=P,d)if(S={values:C(v),keys:w?P:C(g),entries:C(_)},E)for(x in S)(m||O||!(x in T))&&u(T,x,S[x]);else r({target:t,proto:!0,forced:m||O},S);return S}},4145:(e,t,n)=>{var r=n(9775),o=n(3167),a=n(9251),i=n(7826).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||i(t,e,{value:a.f(e)})}},5283:(e,t,n)=>{var r=n(3677);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},821:(e,t,n)=>{var r=n(2086),o=n(8759),a=r.document,i=o(a)&&o(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},933:e=>{e.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}},1799:(e,t,n)=>{var r=n(4999).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]}
2,4172:(e,t,n)=>{var r=n(4999);e.exports=/MSIE|Trident/.test(r)},4999:(e,t,n)=>{var r=n(563);e.exports=r("navigator","userAgent")||""},1448:(e,t,n)=>{var r,o,a=n(2086),i=n(4999),s=a.process,c=s&&s.versions,u=c&&c.v8;u?o=(r=u.split("."))[0]<4?1:r[0]+r[1]:i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},9804:(e,t,n)=>{var r=n(4999).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},8684:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1695:(e,t,n)=>{var r=n(2086),o=n(4399).f,a=n(2585),i=n(1007),s=n(3648),c=n(8474),u=n(7189);e.exports=function(e,t){var n,l,f,p,d,h=e.target,m=e.global,y=e.stat;if(n=m?r:y?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(d=o(n,l))&&d.value:n[l],!u(m?l:h+(y?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(e.sham||f&&f.sham)&&a(p,"sham",!0),i(n,l,p,e)}}},3677:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},2331:(e,t,n)=>{"use strict";n(2077);var r=n(1007),o=n(4861),a=n(3677),i=n(211),s=n(2585),c=i("species"),u=RegExp.prototype;e.exports=function(e,t,n,l){var f=i(e),p=!a((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),d=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!p||!d||n){var h=/./[f],m=t(f,""[e],(function(e,t,n,r,a){var i=t.exec;return i===o||i===u.exec?p&&!a?{done:!0,value:h.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));r(String.prototype,e,m[0]),r(u,f,m[1])}l&&s(u[f],"sham",!0)}},8516:(e,t,n)=>{var r=n(9944);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},2395:(e,t,n)=>{"use strict";var r=n(9944),o=n(8759),a=[].slice,i={},s=function(e,t,n){if(!(t in i)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";i[t]=Function("C,a","return new C("+r.join(",")+")")}return i[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),i=function(){var r=n.concat(a.call(arguments));return this instanceof i?s(t,r.length,r):t.apply(e,r)};return o(t.prototype)&&(i.prototype=t.prototype),i}},563:(e,t,n)=>{var r=n(9775),o=n(2086),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},1667:(e,t,n)=>{var r=n(375),o=n(7719),a=n(211)("iterator");e.exports=function(e){if(null!=e)return e[a]||e["@@iterator"]||o[r(e)]}},3546:(e,t,n)=>{var r=n(6112),o=n(1667);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},8509:(e,t,n)=>{var r=n(3060),o=Math.floor,a="".replace,i=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,c,u,l){var f=n+e.length,p=c.length,d=s;return void 0!==u&&(u=r(u),d=i),a.call(l,d,(function(r,a){var i;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(f);case"<":i=u[a.slice(1,-1)];break;default:var s=+a;if(0===s)return r;if(s>p){var l=o(s/10);return 0===l?r:l<=p?void 0===c[l-1]?a.charAt(1):c[l-1]+a.charAt(1):r}i=c[s-1]}return void 0===i?"":i}))}},2086:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},3167:(e,t,n)=>{var r=n(3060),o={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return o.call(r(e),t)}},7153:e=>{e.exports={}},5963:(e,t,n)=>{var r=n(563);e.exports=r("document","documentElement")},6761:(e,t,n)=>{var r=n(5283),o=n(3677),a=n(821);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},3339:e=>{var t=Math.abs,n=Math.pow,r=Math.floor,o=Math.log,a=Math.LN2;e.exports={pack:function(e,i,s){var c,u,l,f=new Array(s),p=8*s-i-1,d=(1<<p)-1,h=d>>1,m=23===i?n(2,-24)-n(2,-77):0,y=e<0||0===e&&1/e<0?1:0,g=0;for((e=t(e))!=e||e===1/0?(u=e!=e?1:0,c=d):(c=r(o(e)/a),e*(l=n(2,-c))<1&&(c--,l*=2),(e+=c+h>=1?m/l:m*n(2,1-h))*l>=2&&(c++,l/=2),c+h>=d?(u=0,c=d):c+h>=1?(u=(e*l-1)*n(2,i),c+=h):(u=e*n(2,h-1)*n(2,i),c=0));i>=8;f[g++]=255&u,u/=256,i-=8);for(c=c<<i|u,p+=i;p>0;f[g++]=255&c,c/=256,p-=8);return f[--g]|=128*y,f},unpack:function(e,t){var r,o=e.length,a=8*o-t-1,i=(1<<a)-1,s=i>>1,c=a-7,u=o-1,l=e[u--],f=127&l;for(l>>=7;c>0;f=256*f+e[u],u--,c-=8);for(r=f&(1<<-c)-1,f>>=-c,c+=t;c>0;r=256*r+e[u],u--,c-=8);if(0===f)f=1-s;else{if(f===i)return r?NaN:l?-1/0:1/0;r+=n(2,t),f-=s}return(l?-1:1)*r*n(2,f-t)}}}
2,5974:(e,t,n)=>{var r=n(3677),o=n(2306),a="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?a.call(e,""):Object(e)}:Object},5070:(e,t,n)=>{var r=n(8759),o=n(7530);e.exports=function(e,t,n){var a,i;return o&&"function"==typeof(a=t.constructor)&&a!==n&&r(i=a.prototype)&&i!==n.prototype&&o(e,i),e}},9277:(e,t,n)=>{var r=n(4489),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},3278:(e,t,n)=>{var r,o,a,i=n(9316),s=n(2086),c=n(8759),u=n(2585),l=n(3167),f=n(4489),p=n(8944),d=n(7153),h="Object already initialized",m=s.WeakMap;if(i||f.state){var y=f.state||(f.state=new m),g=y.get,v=y.has,_=y.set;r=function(e,t){if(v.call(y,e))throw new TypeError(h);return t.facade=e,_.call(y,e,t),t},o=function(e){return g.call(y,e)||{}},a=function(e){return v.call(y,e)}}else{var b=p("state");d[b]=!0,r=function(e,t){if(l(e,b))throw new TypeError(h);return t.facade=e,u(e,b,t),t},o=function(e){return l(e,b)?e[b]:{}},a=function(e){return l(e,b)}}e.exports={set:r,get:o,has:a,enforce:function(e){return a(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},2814:(e,t,n)=>{var r=n(211),o=n(7719),a=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[a]===e)}},6526:(e,t,n)=>{var r=n(2306);e.exports=Array.isArray||function(e){return"Array"==r(e)}},7189:(e,t,n)=>{var r=n(3677),o=/#|\.prototype\./,a=function(e,t){var n=s[i(e)];return n==u||n!=c&&("function"==typeof t?r(t):!!t)},i=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},8759:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},3296:e=>{e.exports=!1},7994:(e,t,n)=>{var r=n(8759),o=n(2306),a=n(211)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},6737:(e,t,n)=>{var r=n(6112);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},3083:(e,t,n)=>{"use strict";var r,o,a,i=n(3677),s=n(2130),c=n(2585),u=n(3167),l=n(211),f=n(3296),p=l("iterator"),d=!1;[].keys&&("next"in(a=[].keys())?(o=s(s(a)))!==Object.prototype&&(r=o):d=!0);var h=null==r||i((function(){var e={};return r[p].call(e)!==e}));h&&(r={}),f&&!h||u(r,p)||c(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},7719:e=>{e.exports={}},3193:(e,t,n)=>{var r=n(1448),o=n(3677);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4634:(e,t,n)=>{var r=n(3677),o=n(211),a=n(3296),i=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),a&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://ÑеÑÑ").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},9316:(e,t,n)=>{var r=n(2086),o=n(9277),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(o(a))},7725:(e,t,n)=>{var r=n(7994);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},2194:(e,t,n)=>{var r=n(2086),o=n(4080).trim,a=n(9439),i=r.parseInt,s=/^[+-]?0[Xx]/,c=8!==i(a+"08")||22!==i(a+"0x16");e.exports=c?function(e,t){var n=o(String(e));return i(n,t>>>0||(s.test(n)?16:10))}:i},4710:(e,t,n)=>{var r,o=n(6112),a=n(7711),i=n(8684),s=n(7153),c=n(5963),u=n(821),l=n(8944)("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},d=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;d=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=i.length;n--;)delete d.prototype[i[n]];return d()};s[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=o(e),n=new f,f.prototype=null,n[l]=e):n=d(),void 0===t?n:a(n,t)}},7711:(e,t,n)=>{var r=n(5283),o=n(7826),a=n(6112),i=n(8779);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n,r=i(t),s=r.length,c=0;s>c;)o.f(e,n=r[c++],t[n]);return e}},7826:(e,t,n)=>{var r=n(5283),o=n(6761),a=n(6112),i=n(1288),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=i(t,!0),a(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}}
vendor: 1,494 bytes, line 2
2,4399:(e,t,n)=>{var r=n(5283),o=n(7446),a=n(5736),i=n(4088),s=n(1288),c=n(3167),u=n(6761),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=i(e),t=s(t,!0),u)try{return l(e,t)}catch(e){}if(c(e,t))return a(!o.f.call(e,t),e[t])}},3226:(e,t,n)=>{var r=n(4088),o=n(62).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?function(e){try{return o(e)}catch(e){return i.slice()}}(e):o(r(e))}},62:(e,t,n)=>{var r=n(1352),o=n(8684).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},6952:(e,t)=>{t.f=Object.getOwnPropertySymbols},2130:(e,t,n)=>{var r=n(3167),o=n(3060),a=n(8944),i=n(7209),s=a("IE_PROTO"),c=Object.prototype;e.exports=i?Object.getPrototypeOf:function(e){return e=o(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},1352:(e,t,n)=>{var r=n(3167),o=n(4088),a=n(6198).indexOf,i=n(7153);e.exports=function(e,t){var n,s=o(e),c=0,u=[];for(n in s)!r(i,n)&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~a(u,n)||u.push(n));return u}},8779:(e,t,n)=>{var r=n(1352),o=n(8684);e.exports=Object.keys||function(e){return r(e,o)}},7446:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7530:(e,t,n)=>{var r=n(6112),o=n(1378);
2e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,a){return r(n),o(a),t?e.call(n,a):n.__proto__=a,n}}():void 0)},999:(e,t,n)=>{"use strict";var r=n(2371),o=n(375);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},6095:(e,t,n)=>{var r=n(563),o=n(62),a=n(6952),i=n(6112);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(i(e)),n=a.f;return n?t.concat(n(e)):t}},9775:(e,t,n)=>{var r=n(2086);e.exports=r},9431:(e,t,n)=>{var r=n(1007);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},1007:(e,t,n)=>{var r=n(2086),o=n(2585),a=n(3167),i=n(3648),s=n(9277),c=n(3278),u=c.get,l=c.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var c,u=!!s&&!!s.unsafe,p=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||o(n,"name",t),(c=l(n)).source||(c.source=f.join("string"==typeof t?t:""))),e!==r?(u?!d&&e[t]&&(p=!0):delete e[t],p?e[t]=n:o(e,t,n)):p?e[t]=n:i(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},1189:(e,t,n)=>{var r=n(2306),o=n(4861);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!=typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},4861:(e,t,n)=>{"use strict";var r,o,a=n(4276),i=n(4930),s=n(9197),c=n(4710),u=n(3278).get,l=n(2582),f=n(2910),p=RegExp.prototype.exec,d=s("native-string-replace",String.prototype.replace),h=p,m=(r=/a/,o=/b*/g,p.call(r,"a"),p.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),y=i.UNSUPPORTED_Y||i.BROKEN_CARET,g=void 0!==/()??/.exec("")[1];(m||g||y||l||f)&&(h=function(e){var t,n,r,o,i,s,l,f=this,v=u(f),_=v.raw;if(_)return _.lastIndex=f.lastIndex,t=h.call(_,e),f.lastIndex=_.lastIndex,t;var b=v.groups,w=y&&f.sticky,E=a.call(f),k=f.source,S=0,x=e;if(w&&(-1===(E=E.replace("y","")).indexOf("g")&&(E+="g"),x=String(e).slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==e[f.lastIndex-1])&&(k="(?: "+k+")",x=" "+x,S++),n=new RegExp("^(?:"+k+")",E)),g&&(n=new RegExp("^"+k+"$(?!\\s)",E)),m&&(r=f.lastIndex),o=p.call(w?n:f,x),w?o?(o.input=o.input.slice(S),o[0]=o[0].slice(S),o.index=f.lastIndex,f.lastIndex+=o[0].length):f.lastIndex=0:m&&o&&(f.lastIndex=f.global?o.index+o[0].length:r),g&&o&&o.length>1&&d.call(o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&b)for(o.groups=s=c(null),i=0;i<b.length;i++)s[(l=b[i])[0]]=o[l[1]];return o}
2),e.exports=h},4276:(e,t,n)=>{"use strict";var r=n(6112);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},4930:(e,t,n)=>{var r=n(3677),o=function(e,t){return RegExp(e,t)};t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},2582:(e,t,n)=>{var r=n(3677);e.exports=r((function(){var e=RegExp(".","string".charAt(0));return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},2910:(e,t,n)=>{var r=n(3677);e.exports=r((function(){var e=RegExp("(?<a>b)","string".charAt(5));return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},9586:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},2031:e=>{e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},3648:(e,t,n)=>{var r=n(2086),o=n(2585);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},7420:(e,t,n)=>{"use strict";var r=n(563),o=n(7826),a=n(211),i=n(5283),s=a("species");e.exports=function(e){var t=r(e),n=o.f;i&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},914:(e,t,n)=>{var r=n(7826).f,o=n(3167),a=n(211)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},8944:(e,t,n)=>{var r=n(9197),o=n(5422),a=r("keys");e.exports=function(e){return a[e]||(a[e]=o(e))}},4489:(e,t,n)=>{var r=n(2086),o=n(3648),a="__core-js_shared__",i=r[a]||o(a,{});e.exports=i},9197:(e,t,n)=>{var r=n(3296),o=n(4489);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.15.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},8515:(e,t,n)=>{var r=n(6112),o=n(9944),a=n(211)("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||null==(n=r(i)[a])?t:o(n)}},499:(e,t,n)=>{var r=n(3677);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},3448:(e,t,n)=>{var r=n(9679),o=n(9586),a=function(e){return function(t,n){var a,i,s=String(o(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(a=s.charCodeAt(c))<55296||a>56319||c+1===u||(i=s.charCodeAt(c+1))<56320||i>57343?e?s.charAt(c):a:e?s.slice(c,c+2):i-56320+(a-55296<<10)+65536}};e.exports={codeAt:a(!1),charAt:a(!0)}},8992:(e,t,n)=>{"use strict";var r=n(9679),o=n(9586);e.exports=function(e){var t=String(o(this)),n="",a=r(e);
2if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},4274:(e,t,n)=>{var r=n(3677),o=n(9439);e.exports=function(e){return r((function(){return!!o[e]()||"âÂ
á "!="âÂ
á "[e]()||o[e].name!==e}))}},4080:(e,t,n)=>{var r=n(9586),o="["+n(9439)+"]",a=RegExp("^"+o+o+"*"),i=RegExp(o+o+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(i,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},3114:(e,t,n)=>{var r=n(2306);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},7740:(e,t,n)=>{var r=n(9679),o=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):a(n,t)}},3687:(e,t,n)=>{var r=n(9679),o=n(4005);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length or index");return n}},4088:(e,t,n)=>{var r=n(5974),o=n(9586);e.exports=function(e){return r(o(e))}},9679:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},4005:(e,t,n)=>{var r=n(9679),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},3060:(e,t,n)=>{var r=n(9586);e.exports=function(e){return Object(r(e))}},5421:(e,t,n)=>{var r=n(4706);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},4706:(e,t,n)=>{var r=n(9679);e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},1288:(e,t,n)=>{var r=n(8759);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},2371:(e,t,n)=>{var r={};r[n(211)("toStringTag")]="z",e.exports="[object z]"===String(r)},5412:(e,t,n)=>{"use strict";var r=n(1695),o=n(2086),a=n(5283),i=n(8315),s=n(3466),c=n(956),u=n(1855),l=n(5736),f=n(2585),p=n(4005),d=n(3687),h=n(5421),m=n(1288),y=n(3167),g=n(375),v=n(8759),_=n(4710),b=n(7530),w=n(62).f,E=n(6654),k=n(8062).forEach,S=n(7420),x=n(7826),C=n(4399),N=n(3278),O=n(5070),T=N.get,z=N.set,P=x.f,R=C.f,A=Math.round,q=o.RangeError,M=c.ArrayBuffer,I=c.DataView,D=s.NATIVE_ARRAY_BUFFER_VIEWS,j=s.TYPED_ARRAY_TAG,L=s.TypedArray,B=s.TypedArrayPrototype,U=s.aTypedArrayConstructor,F=s.isTypedArray,Y="BYTES_PER_ELEMENT",W="Wrong length",H=function(e,t){for(var n=0,r=t.length,o=new(U(e))(r);r>n;)o[n]=t[n++];return o},G=function(e,t){P(e,t,{get:function(){return T(this)[t]}})},V=function(e){var t;return e instanceof M||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},Q=function(e,t){return F(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},$=function(e,t){return Q(e,t=m(t,!0))?l(2,e[t]):R(e,t)},Z=function(e,t,n){return!(Q(e,t=m(t,!0))&&v(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?P(e,t,n):(e[t]=n.value,e)};a?(D||(C.f=$,x.f=Z,G(B,"buffer"),G(B,"byteOffset"),G(B,"byteLength"),G(B,"length")),r({target:"Object",stat:!0,forced:!D},{getOwnPropertyDescriptor:$,defineProperty:Z}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",c="get"+e,l="set"+e,m=o[s],y=m,g=y&&y.prototype,x={},C=function(e,t){P(e,t,{get:function(){return function(e,t){var n=T(e);return n.view[c](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=T(e);n&&(r=(r=A(r))<0?0:r>255?255:255&r),o.view[l](t*a+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};D?i&&(y=t((function(e,t,n,r){return u(e,y,s),O(v(t)?V(t)?void 0!==r?new m(t,h(n,a),r):void 0!==n?new m(t,h(n,a)):new m(t):F(t)?H(y,t):E.call(y,t):new m(d(t)),e,y)})),b&&b(y,L),k(w(m),(function(e){e in y||f(y,e,m[e])})),y.prototype=g):(y=t((function(e,t,n,r){u(e,y,s);var o,i,c,l=0,f=0;if(v(t)){if(!V(t))return F(t)?H(y,t):E.call(y,t);o=t,f=h(n,a);var m=t.byteLength;if(void 0===r){if(m%a)throw q(W);if((i=m-f)<0)throw q(W)}else if((i=p(r)*a)+f>m)throw q(W);c=i/a}else c=d(t),o=new M(i=c*a);for(z(e,{buffer:o,byteOffset:f,byteLength:i,length:c,view:new I(o)});l<c;)C(e,l++)})),b&&b(y,L),g=y.prototype=_(B)),g.constructor!==y&&f(g,"constructor",y),j&&f(g,j,s),x[s]=y,r({global:!0,forced:y!=m,sham:!D},x),Y in y||f(y,Y,a),Y in g||f(g,Y,a),S(s)}):e.exports=function(){}},8315:(e,t,n)=>{var r=n(2086),o=n(3677),a=n(8939),i=n(3466).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,c=r.Int8Array;e.exports=!i||!o((function(){c(1)}))||!o((function(){new c(-1)}))||!a((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||o((function(){return 1!==new c(new s(2),1,void 0).length}))},5318:(e,t,n)=>{var r=n(3466).aTypedArrayConstructor,o=n(8515);e.exports=function(e,t){for(var n=o(e,e.constructor),a=0,i=t.length,s=new(r(n))(i);i>a;)s[a]=t[a++];return s}}
2,6654:(e,t,n)=>{var r=n(3060),o=n(4005),a=n(1667),i=n(2814),s=n(8516),c=n(3466).aTypedArrayConstructor;e.exports=function(e){var t,n,u,l,f,p,d=r(e),h=arguments.length,m=h>1?arguments[1]:void 0,y=void 0!==m,g=a(d);if(null!=g&&!i(g))for(p=(f=g.call(d)).next,d=[];!(l=p.call(f)).done;)d.push(l.value);for(y&&h>2&&(m=s(m,arguments[2],2)),n=o(d.length),u=new(c(this))(n),t=0;n>t;t++)u[t]=y?m(d[t],t):d[t];return u}},5422:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},1876:(e,t,n)=>{var r=n(3193);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9251:(e,t,n)=>{var r=n(211);t.f=r},211:(e,t,n)=>{var r=n(2086),o=n(9197),a=n(3167),i=n(5422),s=n(3193),c=n(1876),u=o("wks"),l=r.Symbol,f=c?l:l&&l.withoutSetter||i;e.exports=function(e){return a(u,e)&&(s||"string"==typeof u[e])||(s&&a(l,e)?u[e]=l[e]:u[e]=f("Symbol."+e)),u[e]}},9439:e=>{e.exports="\t\n\v\f\r  áââââââ
ââââââ¯âã\u2028\u2029\ufeff"},1572:(e,t,n)=>{"use strict";var r=n(1695),o=n(3677),a=n(956),i=n(6112),s=n(7740),c=n(4005),u=n(8515),l=a.ArrayBuffer,f=a.DataView,p=l.prototype.slice;r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new l(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(void 0!==p&&void 0===t)return p.call(i(this),e);for(var n=i(this).byteLength,r=s(e,n),o=s(void 0===t?n:t,n),a=new(u(this,l))(c(o-r)),d=new f(this),h=new f(a),m=0;r<o;)h.setUint8(m++,d.getUint8(r++));return a}})},3938:(e,t,n)=>{"use strict";var r=n(1695),o=n(3677),a=n(6526),i=n(8759),s=n(3060),c=n(4005),u=n(9720),l=n(5574),f=n(9955),p=n(211),d=n(1448),h=p("isConcatSpreadable"),m=9007199254740991,y="Maximum allowed index exceeded",g=d>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),v=f("concat"),_=function(e){if(!i(e))return!1;var t=e[h];return void 0!==t?!!t:a(e)};r({target:"Array",proto:!0,forced:!g||!v},{concat:function(e){var t,n,r,o,a,i=s(this),f=l(i,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(_(a=-1===t?i:arguments[t])){if(p+(o=c(a.length))>m)throw TypeError(y);for(n=0;n<o;n++,p++)n in a&&u(f,p,a[n])}else{if(p>=m)throw TypeError(y);u(f,p++,a)}return f.length=p,f}})},6e3:(e,t,n)=>{"use strict";var r=n(1695),o=n(8062).every;r({target:"Array",proto:!0,forced:!n(2802)("every")},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},3984:(e,t,n)=>{var r=n(1695),o=n(435),a=n(8669);r({target:"Array",proto:!0},{fill:o}),a("fill")},8010:(e,t,n)=>{"use strict";var r=n(1695),o=n(8062).filter;r({target:"Array",proto:!0,forced:!n(9955)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},5699:(e,t,n)=>{"use strict";var r=n(1695),o=n(8062).findIndex,a=n(8669),i="findIndex",s=!0;i in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(i)},2327:(e,t,n)=>{"use strict";var r=n(1695),o=n(8062).find,a=n(8669),i="find",s=!0;i in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a(i)},5374:(e,t,n)=>{"use strict";var r=n(1695),o=n(1984);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},5610:(e,t,n)=>{var r=n(1695),o=n(1842);r({target:"Array",stat:!0,forced:!n(8939)((function(e){Array.from(e)}))},{from:o})},5623:(e,t,n)=>{"use strict";var r=n(1695),o=n(6198).includes,a=n(8669);r({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},1882:(e,t,n)=>{n(1695)({target:"Array",stat:!0},{isArray:n(6526)})},5769:(e,t,n)=>{"use strict";var r=n(4088),o=n(8669),a=n(7719),i=n(3278),s=n(8432),c="Array Iterator",u=i.set,l=i.getterFor(c);e.exports=s(Array,"Array",(function(e,t){u(this,{type:c,target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},1013:(e,t,n)=>{"use strict";var r=n(1695),o=n(8062).map;r({target:"Array",proto:!0,forced:!n(9955)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},2410:(e,t,n)=>{"use strict";
vendor: 5,489 bytes, line 2
2var r=n(1695),o=n(8759),a=n(6526),i=n(7740),s=n(4005),c=n(4088),u=n(9720),l=n(211),f=n(9955)("slice"),p=l("species"),d=[].slice,h=Math.max;r({target:"Array",proto:!0,forced:!f},{slice:function(e,t){var n,r,l,f=c(this),m=s(f.length),y=i(e,m),g=i(void 0===t?m:t,m);if(a(f)&&("function"!=typeof(n=f.constructor)||n!==Array&&!a(n.prototype)?o(n)&&null===(n=n[p])&&(n=void 0):n=void 0,n===Array||void 0===n))return d.call(f,y,g);for(r=new(void 0===n?Array:n)(h(g-y,0)),l=0;y<g;y++,l++)y in f&&u(r,l,f[y]);return r.length=l,r}})},2264:(e,t,n)=>{"use strict";var r=n(1695),o=n(8062).some;r({target:"Array",proto:!0,forced:!n(2802)("some")},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},9217:(e,t,n)=>{"use strict";var r=n(1695),o=n(9944),a=n(3060),i=n(4005),s=n(3677),c=n(1147),u=n(2802),l=n(1799),f=n(4172),p=n(1448),d=n(9804),h=[],m=h.sort,y=s((function(){h.sort(void 0)})),g=s((function(){h.sort(null)})),v=u("sort"),_=!s((function(){if(p)return p<70;if(!(l&&l>3)){if(f)return!0;if(d)return d<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)h.push({k:t+r,v:n})}for(h.sort((function(e,t){return t.v-e.v})),r=0;r<h.length;r++)t=h[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:y||!g||!v||!_},{sort:function(e){void 0!==e&&o(e);var t=a(this);if(_)return void 0===e?m.call(t):m.call(t,e);var n,r,s=[],u=i(t.length);for(r=0;r<u;r++)r in t&&s.push(t[r]);for(s=c(s,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:String(t)>String(n)?1:-1}}(e)),n=s.length,r=0;r<n;)t[r]=s[r++];for(;r<u;)delete t[r++];return t}})},8217:(e,t,n)=>{"use strict";var r=n(1695),o=n(7740),a=n(9679),i=n(4005),s=n(3060),c=n(5574),u=n(9720),l=n(9955)("splice"),f=Math.max,p=Math.min,d=9007199254740991,h="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!l},{splice:function(e,t){var n,r,l,m,y,g,v=s(this),_=i(v.length),b=o(e,_),w=arguments.length;if(0===w?n=r=0:1===w?(n=0,r=_-b):(n=w-2,r=p(f(a(t),0),_-b)),_+n-r>d)throw TypeError(h);for(l=c(v,r),m=0;m<r;m++)(y=b+m)in v&&u(l,m,v[y]);if(l.length=r,n<r){for(m=b;m<_-r;m++)g=m+n,(y=m+r)in v?v[g]=v[y]:delete v[g];for(m=_;m>_-r+n;m--)delete v[m-1]}else if(n>r)for(m=_-r;m>b;m--)g=m+n-1,(y=m+r-1)in v?v[g]=v[y]:delete v[g];for(m=0;m<n;m++)v[m+b]=arguments[m+2];return v.length=_-r+n,l}})},5017:(e,t,n)=>{n(1695)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},205:(e,t,n)=>{var r=n(1007),o=Date.prototype,a="Invalid Date",i=o.toString,s=o.getTime;new Date(NaN)+""!=a&&r(o,"toString",(function(){var e=s.call(this);return e==e?i.call(this):a}))},3515:(e,t,n)=>{n(1695)({target:"Function",proto:!0},{bind:n(2395)})},3352:(e,t,n)=>{var r=n(5283),o=n(7826).f,a=Function.prototype,i=a.toString,s=/^\s*function ([^ (]*)/,c="name";r&&!(c in a)&&o(a,c,{configurable:!0,get:function(){try{return i.call(this).match(s)[1]}catch(e){return""}}})},5163:(e,t,n)=>{"use strict";var r=n(5283),o=n(2086),a=n(7189),i=n(1007),s=n(3167),c=n(2306),u=n(5070),l=n(1288),f=n(3677),p=n(4710),d=n(62).f,h=n(4399).f,m=n(7826).f,y=n(4080).trim,g="Number",v=o.Number,_=v.prototype,b=c(p(_))==g,w=function(e){var t,n,r,o,a,i,s,c,u=l(e,!1);if("string"==typeof u&&u.length>2)if(43===(t=(u=y(u)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(i=(a=u.slice(2)).length,s=0;s<i;s++)if((c=a.charCodeAt(s))<48||c>o)return NaN;return parseInt(a,r)}return+u};if(a(g,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var E,k=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof k&&(b?f((function(){_.valueOf.call(n)})):c(n)!=g)?u(new v(w(t)),n,k):w(t)},S=r?d(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),x=0;S.length>x;x++)s(v,E=S[x])&&!s(k,E)&&m(k,E,h(v,E));k.prototype=_,_.constructor=k,i(o,g,k)}},6056:(e,t,n)=>{"use strict";var r=n(1695),o=n(9679),a=n(3114),i=n(8992),s=n(3677),c=1..toFixed,u=Math.floor,l=function(e,t,n){return 0===t?n:t%2==1?l(e,t-1,n*e):l(e*e,t/2,n)},f=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=u(o/1e7)},p=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=u(r/t),r=r%t*1e7},d=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=String(e[t]);n=""===n?r:n+i.call("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){c.call({})}))},{toFixed:function(e){var t,n,r,s,c=a(this),u=o(e),h=[0,0,0,0,0,0],m="",y="0";if(u<0||u>20)throw RangeError("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(m="-",c=-c),c>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(c*l(2,69,1))-69)<0?c*l(2,-t,1):c/l(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(h,0,n),r=u;r>=7;)f(h,1e7,0),r-=7;for(f(h,l(10,r,1),0),r=t-1;r>=23;)p(h,1<<23),r-=23;p(h,1<<r),f(h,1,1),p(h,2),y=d(h)}else f(h,0,n),f(h,1<<-t,0),y=d(h)+i.call("0",u);return u>0?m+((s=y.length)<=u?"0."+i.call("0",u-s)+y:y.slice(0,s-u)+"."+y.slice(s-u)):m+y}})}
2,2699:(e,t,n)=>{var r=n(1695),o=n(5283);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(7711)})},9785:(e,t,n)=>{var r=n(1695),o=n(5283);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(7826).f})},252:(e,t,n)=>{var r=n(1695),o=n(3677),a=n(4088),i=n(4399).f,s=n(5283),c=o((function(){i(1)}));r({target:"Object",stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return i(a(e),t)}})},4009:(e,t,n)=>{var r=n(1695),o=n(5283),a=n(6095),i=n(4088),s=n(4399),c=n(9720);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),o=s.f,u=a(r),l={},f=0;u.length>f;)void 0!==(n=o(r,t=u[f++]))&&c(l,t,n);return l}})},2571:(e,t,n)=>{var r=n(1695),o=n(3060),a=n(8779);r({target:"Object",stat:!0,forced:n(3677)((function(){a(1)}))},{keys:function(e){return a(o(e))}})},3238:(e,t,n)=>{var r=n(2371),o=n(1007),a=n(999);r||o(Object.prototype,"toString",a,{unsafe:!0})},2081:(e,t,n)=>{var r=n(1695),o=n(2194);r({global:!0,forced:parseInt!=o},{parseInt:o})},3214:(e,t,n)=>{var r=n(1695),o=n(563),a=n(9944),i=n(6112),s=n(8759),c=n(4710),u=n(2395),l=n(3677),f=o("Reflect","construct"),p=l((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),d=!l((function(){f((function(){}))})),h=p||d;r({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){a(e),i(t);var n=arguments.length<3?e:a(arguments[2]);if(d&&!p)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var o=n.prototype,l=c(s(o)?o:Object.prototype),h=Function.apply.call(e,l,t);return s(h)?h:l}})},2759:(e,t,n)=>{var r=n(5283),o=n(2086),a=n(7189),i=n(5070),s=n(2585),c=n(7826).f,u=n(62).f,l=n(7994),f=n(4276),p=n(4930),d=n(1007),h=n(3677),m=n(3167),y=n(3278).enforce,g=n(7420),v=n(211),_=n(2582),b=n(2910),w=v("match"),E=o.RegExp,k=E.prototype,S=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,x=/a/g,C=/a/g,N=new E(x)!==x,O=p.UNSUPPORTED_Y;if(a("RegExp",r&&(!N||O||_||b||h((function(){return C[w]=!1,E(x)!=x||E(C)==C||"/a/i"!=E(x,"i")}))))){for(var T=function(e,t){var n,r,o,a,c,u,p=this instanceof T,d=l(e),h=void 0===t,g=[],v=e;if(!p&&d&&h&&e.constructor===T)return e;if((d||e instanceof T)&&(e=e.source,h&&(t="flags"in v?v.flags:f.call(v))),e=void 0===e?"":String(e),t=void 0===t?"":String(t),v=e,_&&"dotAll"in x&&(r=!!t&&t.indexOf("s")>-1)&&(t=t.replace(/s/g,"")),n=t,O&&"sticky"in x&&(o=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,"")),b&&(a=function(e){for(var t,n=e.length,r=0,o="",a=[],i={},s=!1,c=!1,u=0,l="";r<=n;r++){if("\\"===(t=e.charAt(r)))t+=e.charAt(++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:S.test(e.slice(r+1))&&(r+=2,c=!0),o+=t,u++;continue;case">"===t&&c:if(""===l||m(i,l))throw new SyntaxError("Invalid capture group name");i[l]=!0,a.push([l,u]),c=!1,l="";continue}c?l+=t:o+=t}return[o,a]}(e),e=a[0],g=a[1]),c=i(E(e,t),p?this:k,T),(r||o||g.length)&&(u=y(c),r&&(u.dotAll=!0,u.raw=T(function(e){for(var t,n=e.length,r=0,o="",a=!1;r<=n;r++)"\\"!==(t=e.charAt(r))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),o+=t):o+="[\\s\\S]":o+=t+e.charAt(++r);return o}(e),n)),o&&(u.sticky=!0),g.length&&(u.groups=g)),e!==v)try{s(c,"source",""===v?"(?:)":v)}catch(e){}return c},z=function(e){e in T||c(T,e,{configurable:!0,get:function(){return E[e]},set:function(t){E[e]=t}})},P=u(E),R=0;P.length>R;
2)z(P[R++]);k.constructor=T,T.prototype=k,d(o,"RegExp",T)}g("RegExp")},2077:(e,t,n)=>{"use strict";var r=n(1695),o=n(4861);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},895:(e,t,n)=>{"use strict";var r=n(1007),o=n(6112),a=n(3677),i=n(4276),s="toString",c=RegExp.prototype,u=c.toString,l=a((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),f=u.name!=s;(l||f)&&r(RegExp.prototype,s,(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in c)?i.call(e):n)}),{unsafe:!0})},1514:(e,t,n)=>{"use strict";var r=n(1695),o=n(7725),a=n(9586);r({target:"String",proto:!0,forced:!n(5469)("includes")},{includes:function(e){return!!~String(a(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},7460:(e,t,n)=>{"use strict";var r=n(3448).charAt,o=n(3278),a=n(8432),i="String Iterator",s=o.set,c=o.getterFor(i);a(String,"String",(function(e){s(this,{type:i,string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},3611:(e,t,n)=>{"use strict";var r=n(1695),o=n(1068);r({target:"String",proto:!0,forced:n(499)("link")},{link:function(e){return o(this,"a","href",e)}})},1203:(e,t,n)=>{"use strict";var r=n(2331),o=n(6112),a=n(4005),i=n(9586),s=n(9966),c=n(1189);r("match",(function(e,t,n){return[function(t){var n=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,this,e);if(r.done)return r.value;var i=o(this),u=String(e);if(!i.global)return c(i,u);var l=i.unicode;i.lastIndex=0;for(var f,p=[],d=0;null!==(f=c(i,u));){var h=String(f[0]);p[d]=h,""===h&&(i.lastIndex=s(u,a(i.lastIndex),l)),d++}return 0===d?null:p}]}))},911:(e,t,n)=>{"use strict";var r=n(2331),o=n(3677),a=n(6112),i=n(4005),s=n(9679),c=n(9586),u=n(9966),l=n(8509),f=n(1189),p=n(211)("replace"),d=Math.max,h=Math.min,m="$0"==="a".replace(/./,"$0"),y=!!/./[p]&&""===/./[p]("a","$0");r("replace",(function(e,t,n){var r=y?"$":"$0";return[function(e,n){var r=c(this),o=null==e?void 0:e[p];return void 0!==o?o.call(e,r,n):t.call(String(r),e,n)},function(e,o){if("string"==typeof o&&-1===o.indexOf(r)&&-1===o.indexOf("$<")){var c=n(t,this,e,o);if(c.done)return c.value}var p=a(this),m=String(e),y="function"==typeof o;y||(o=String(o));var g=p.global;if(g){var v=p.unicode;p.lastIndex=0}for(var _=[];;){var b=f(p,m);if(null===b)break;if(_.push(b),!g)break;""===String(b[0])&&(p.lastIndex=u(m,i(p.lastIndex),v))}for(var w,E="",k=0,S=0;S<_.length;S++){b=_[S];for(var x=String(b[0]),C=d(h(s(b.index),m.length),0),N=[],O=1;O<b.length;O++)N.push(void 0===(w=b[O])?w:String(w));var T=b.groups;if(y){var z=[x].concat(N,C,m);void 0!==T&&z.push(T);var P=String(o.apply(void 0,z))}else P=l(x,m,C,N,T,o);C>=k&&(E+=m.slice(k,C)+P,k=C+x.length)}return E+m.slice(k)}]}),!!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!m||y)},3526:(e,t,n)=>{"use strict";var r=n(2331),o=n(6112),a=n(9586),i=n(2031),s=n(1189);r("search",(function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,this,e);if(r.done)return r.value;var a=o(this),c=String(e),u=a.lastIndex;i(u,0)||(a.lastIndex=0);var l=s(a,c);return i(a.lastIndex,u)||(a.lastIndex=u),null===l?-1:l.index}]}))},2482:(e,t,n)=>{"use strict";var r=n(2331),o=n(7994),a=n(6112),i=n(9586),s=n(8515),c=n(9966),u=n(4005),l=n(1189),f=n(4861),p=n(4930),d=n(3677),h=p.UNSUPPORTED_Y,m=[].push,y=Math.min,g=4294967295;r("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(i(this)),a=void 0===n?g:n>>>0;if(0===a)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,a);for(var s,c,u,l=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,h=new RegExp(e.source,p+"g");(s=f.call(h,r))&&!((c=h.lastIndex)>d&&(l.push(r.slice(d,s.index)),s.length>1&&s.index<r.length&&m.apply(l,s.slice(1)),u=s[0].length,d=c,l.length>=a));)h.lastIndex===s.index&&h.lastIndex++;return d===r.length?!u&&h.test("")||l.push(""):l.push(r.slice(d)),l.length>a?l.slice(0,a):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=i(this),a=null==t?void 0:t[e];return void 0!==a?a.call(t,o,n):r.call(String(o),t,n)},function(e,o){var i=n(r,this,e,o,r!==t);if(i.done)return i.value;var f=a(this),p=String(e),d=s(f,RegExp),m=f.unicode,v=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(h?"g":"y"),_=new d(h?"^(?:"+f.
vendor: 4,099 bytes, line 2
2source+")":f,v),b=void 0===o?g:o>>>0;if(0===b)return[];if(0===p.length)return null===l(_,p)?[p]:[];for(var w=0,E=0,k=[];E<p.length;){_.lastIndex=h?0:E;var S,x=l(_,h?p.slice(E):p);if(null===x||(S=y(u(_.lastIndex+(h?E:0)),p.length))===w)E=c(p,E,m);else{if(k.push(p.slice(w,E)),k.length===b)return k;for(var C=1;C<=x.length-1;C++)if(k.push(x[C]),k.length===b)return k;E=w=S}}return k.push(p.slice(w)),k}]}),!!d((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),h)},266:(e,t,n)=>{"use strict";var r=n(1695),o=n(4080).trim;r({target:"String",proto:!0,forced:n(4274)("trim")},{trim:function(){return o(this)}})},2189:(e,t,n)=>{"use strict";var r=n(1695),o=n(5283),a=n(2086),i=n(3167),s=n(8759),c=n(7826).f,u=n(8474),l=a.Symbol;if(o&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var f={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new l(e):void 0===e?l():l(e);return""===e&&(f[t]=!0),t};u(p,l);var d=p.prototype=l.prototype;d.constructor=p;var h=d.toString,m="Symbol(test)"==String(l("test")),y=/^Symbol\((.*)\)[^)]+$/;c(d,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=h.call(e);if(i(f,e))return"";var n=m?t.slice(7,-1):t.replace(y,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},1047:(e,t,n)=>{n(4145)("iterator")},5901:(e,t,n)=>{"use strict";var r=n(1695),o=n(2086),a=n(563),i=n(3296),s=n(5283),c=n(3193),u=n(1876),l=n(3677),f=n(3167),p=n(6526),d=n(8759),h=n(6112),m=n(3060),y=n(4088),g=n(1288),v=n(5736),_=n(4710),b=n(8779),w=n(62),E=n(3226),k=n(6952),S=n(4399),x=n(7826),C=n(7446),N=n(2585),O=n(1007),T=n(9197),z=n(8944),P=n(7153),R=n(5422),A=n(211),q=n(9251),M=n(4145),I=n(914),D=n(3278),j=n(8062).forEach,L=z("hidden"),B="Symbol",U=A("toPrimitive"),F=D.set,Y=D.getterFor(B),W=Object.prototype,H=o.Symbol,G=a("JSON","stringify"),V=S.f,Q=x.f,$=E.f,Z=C.f,K=T("symbols"),X=T("op-symbols"),J=T("string-to-symbol-registry"),ee=T("symbol-to-string-registry"),te=T("wks"),ne=o.QObject,re=!ne||!ne.prototype||!ne.prototype.findChild,oe=s&&l((function(){return 7!=_(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=V(W,t);r&&delete W[t],Q(e,t,n),r&&e!==W&&Q(W,t,r)}:Q,ae=function(e,t){var n=K[e]=_(H.prototype);return F(n,{type:B,tag:e,description:t}),s||(n.description=t),n},ie=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof H},se=function(e,t,n){e===W&&se(X,t,n),h(e);var r=g(t,!0);return h(n),f(K,r)?(n.enumerable?(f(e,L)&&e[L][r]&&(e[L][r]=!1),n=_(n,{enumerable:v(0,!1)})):(f(e,L)||Q(e,L,v(1,{})),e[L][r]=!0),oe(e,r,n)):Q(e,r,n)},ce=function(e,t){h(e);var n=y(t),r=b(n).concat(pe(n));return j(r,(function(t){s&&!ue.call(n,t)||se(e,t,n[t])})),e},ue=function(e){var t=g(e,!0),n=Z.call(this,t);return!(this===W&&f(K,t)&&!f(X,t))&&(!(n||!f(this,t)||!f(K,t)||f(this,L)&&this[L][t])||n)},le=function(e,t){var n=y(e),r=g(t,!0);if(n!==W||!f(K,r)||f(X,r)){var o=V(n,r);return!o||!f(K,r)||f(n,L)&&n[L][r]||(o.enumerable=!0),o}},fe=function(e){var t=$(y(e)),n=[];return j(t,(function(e){f(K,e)||f(P,e)||n.push(e)})),n},pe=function(e){var t=e===W,n=$(t?X:y(e)),r=[];return j(n,(function(e){!f(K,e)||t&&!f(W,e)||r.push(K[e])})),r};c||(O((H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=R(e),n=function(e){this===W&&n.call(X,e),f(this,L)&&f(this[L],t)&&(this[L][t]=!1),oe(this,t,v(1,e))};return s&&re&&oe(W,t,{configurable:!0,set:n}),ae(t,e)}).prototype,"toString",(function(){return Y(this).tag})),O(H,"withoutSetter",(function(e){return ae(R(e),e)})),C.f=ue,x.f=se,S.f=le,w.f=E.f=fe,k.f=pe,q.f=function(e){return ae(A(e),e)},s&&(Q(H.prototype,"description",{configurable:!0,get:function(){return Y(this).description}}),i||O(W,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),j(b(te),(function(e){M(e)})),r({target:B,stat:!0,forced:!c}
2,{for:function(e){var t=String(e);if(f(J,t))return J[t];var n=H(t);return J[t]=n,ee[n]=t,n},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(f(ee,e))return ee[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(e,t){return void 0===t?_(e):ce(_(e),t)},defineProperty:se,defineProperties:ce,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:fe,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:l((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(m(e))}}),G&&r({target:"JSON",stat:!0,forced:!c||l((function(){var e=H();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],a=1;arguments.length>a;)o.push(arguments[a++]);if(r=t,(d(t)||void 0!==e)&&!ie(e))return p(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ie(t))return t}),o[1]=t,G.apply(null,o)}}),H.prototype[U]||N(H.prototype,U,H.prototype.valueOf),I(H,B),P[L]=!0},3712:(e,t,n)=>{"use strict";var r=n(3466),o=n(990),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(e,t){return o.call(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},2979:(e,t,n)=>{"use strict";var r=n(3466),o=n(8062).every,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},6160:(e,t,n)=>{"use strict";var r=n(3466),o=n(435),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",(function(e){return o.apply(a(this),arguments)}))},1849:(e,t,n)=>{"use strict";var r=n(3466),o=n(8062).filter,a=n(5318),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=o(i(this),e,arguments.length>1?arguments[1]:void 0);return a(this,t)}))},896:(e,t,n)=>{"use strict";var r=n(3466),o=n(8062).findIndex,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},5540:(e,t,n)=>{"use strict";var r=n(3466),o=n(8062).find,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},936:(e,t,n)=>{"use strict";var r=n(3466),o=n(8062).forEach,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},40:(e,t,n)=>{"use strict";var r=n(3466),o=n(6198).includes,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},5923:(e,t,n)=>{"use strict";var r=n(3466),o=n(6198).indexOf,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},5246:(e,t,n)=>{"use strict";var r=n(2086),o=n(3466),a=n(5769),i=n(211)("iterator"),s=r.Uint8Array,c=a.values,u=a.keys,l=a.entries,f=o.aTypedArray,p=o.exportTypedArrayMethod,d=s&&s.prototype[i],h=!!d&&("values"==d.name||null==d.name),m=function(){return c.call(f(this))};p("entries",(function(){return l.call(f(this))})),p("keys",(function(){return u.call(f(this))})),p("values",m,!h),p(i,m,!h)},7635:(e,t,n)=>{"use strict";var r=n(3466),o=r.aTypedArray,a=r.exportTypedArrayMethod,i=[].join;a("join",(function(e){return i.apply(o(this),arguments)}))},8774:(e,t,n)=>{"use strict";var r=n(3466),o=n(1739),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){return o.apply(a(this),arguments)}))},8373:(e,t,n)=>{"use strict";var r=n(3466),o=n(8062).map,a=n(8515),i=r.aTypedArray,s=r.aTypedArrayConstructor;(0,r.exportTypedArrayMethod)("map",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(s(a(e,e.constructor)))(t)}))}))},6964:(e,t,n)=>{"use strict";var r=n(3466),o=n(8758).right,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){return o(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},9706:(e,t,n)=>{"use strict";var r=n(3466),o=n(8758).left,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){return o(a(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},4630:(e,t,n)=>{"use strict";var r=n(3466),o=r.aTypedArray,a=r.exportTypedArrayMethod,i=Math.floor;a("reverse",(function(){for(var e,t=this,n=o(t).length,r=i(n/2),a=0;a<r;)e=t[a],t[a++]=t[--n],t[n]=e;return t}))}
2,5389:(e,t,n)=>{"use strict";var r=n(3466),o=n(4005),a=n(5421),i=n(3060),s=n(3677),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("set",(function(e){c(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=i(e),s=o(r.length),u=0;if(s+t>n)throw RangeError("Wrong length");for(;u<s;)this[t+u]=r[u++]}),s((function(){new Int8Array(1).set({})})))},1244:(e,t,n)=>{"use strict";var r=n(3466),o=n(8515),a=n(3677),i=r.aTypedArray,s=r.aTypedArrayConstructor,c=r.exportTypedArrayMethod,u=[].slice;c("slice",(function(e,t){for(var n=u.call(i(this),e,t),r=o(this,this.constructor),a=0,c=n.length,l=new(s(r))(c);c>a;)l[a]=n[a++];return l}),a((function(){new Int8Array(1).slice()})))},9981:(e,t,n)=>{"use strict";var r=n(3466),o=n(8062).some,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0)}))},3807:(e,t,n)=>{"use strict";var r=n(3466),o=n(2086),a=n(3677),i=n(9944),s=n(4005),c=n(1147),u=n(1799),l=n(4172),f=n(1448),p=n(9804),d=r.aTypedArray,h=r.exportTypedArrayMethod,m=o.Uint16Array,y=m&&m.prototype.sort,g=!!y&&!a((function(){var e=new m(2);e.sort(null),e.sort({})})),v=!!y&&!a((function(){if(f)return f<74;if(u)return u<67;if(l)return!0;if(p)return p<602;var e,t,n=new m(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(n.sort((function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));h("sort",(function(e){var t=this;if(void 0!==e&&i(e),v)return y.call(t,e);d(t);var n,r=s(t.length),o=Array(r);for(n=0;n<r;n++)o[n]=t[n];for(o=c(t,function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e)),n=0;n<r;n++)t[n]=o[n];return t}),!v||g)},2627:(e,t,n)=>{"use strict";var r=n(3466),o=n(4005),a=n(7740),i=n(8515),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=s(this),r=n.length,c=a(e,r);return new(i(n,n.constructor))(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,o((void 0===t?r:a(t,r))-c))}))},4950:(e,t,n)=>{"use strict";var r=n(2086),o=n(3466),a=n(3677),i=r.Int8Array,s=o.aTypedArray,c=o.exportTypedArrayMethod,u=[].toLocaleString,l=[].slice,f=!!i&&a((function(){u.call(new i(1))}));c("toLocaleString",(function(){return u.apply(f?l.call(s(this)):s(this),arguments)}),a((function(){return[1,2].toLocaleString()!=new i([1,2]).toLocaleString()}))||!a((function(){i.prototype.toLocaleString.call([1,2])})))},1964:(e,t,n)=>{"use strict";var r=n(3466).exportTypedArrayMethod,o=n(3677),a=n(2086).Uint8Array,i=a&&a.prototype||{},s=[].toString,c=[].join;o((function(){s.call({})}))&&(s=function(){return c.call(this)});var u=i.toString!=s;r("toString",s,u)},9876:(e,t,n)=>{n(5412)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},5849:(e,t,n)=>{var r=n(2086),o=n(933),a=n(1984),i=n(2585);for(var s in o){var c=r[s],u=c&&c.prototype;if(u&&u.forEach!==a)try{i(u,"forEach",a)}catch(e){u.forEach=a}}},4078:(e,t,n)=>{var r=n(2086),o=n(933),a=n(5769),i=n(2585),s=n(211),c=s("iterator"),u=s("toStringTag"),l=a.values;for(var f in o){var p=r[f],d=p&&p.prototype;if(d){if(d[c]!==l)try{i(d,c,l)}catch(e){d[c]=l}if(d[u]||i(d,u,f),o[f])for(var h in a)if(d[h]!==a[h])try{i(d,h,a[h])}catch(e){d[h]=a[h]}}}},6252:(e,t,n)=>{var r=n(1695),o=n(2086),a=n(4999),i=[].slice,s=function(e){return function(t,n){var r=arguments.length>2,o=r?i.call(arguments,2):void 0;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(a)},{setTimeout:s(o.setTimeout),setInterval:s(o.setInterval)})},8581:(e,t,n)=>{"use strict";n(5769);var r=n(1695),o=n(563),a=n(4634),i=n(1007),s=n(9431),c=n(914),u=n(471),l=n(3278),f=n(1855),p=n(3167),d=n(8516),h=n(375),m=n(6112),y=n(8759),g=n(4710),v=n(5736),_=n(3546),b=n(1667),w=n(211),E=o("fetch"),k=o("Headers"),S=w("iterator"),x="URLSearchParams",C="URLSearchParamsIterator",N=l.set,O=l.getterFor(x),T=l.getterFor(C),z=/\+/g,P=Array(4),R=function(e){return P[e-1]||(P[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},A=function(e){try{return decodeURIComponent(e)}catch(t){return e}},q=function(e){var t=e.replace(z," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(R(n--),A);return t}}
2,M=/[!'()~]|%20/g,I={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},D=function(e){return I[e]},j=function(e){return encodeURIComponent(e).replace(M,D)},L=function(e,t){if(t)for(var n,r,o=t.split("&"),a=0;a<o.length;)(n=o[a++]).length&&(r=n.split("="),e.push({key:q(r.shift()),value:q(r.join("="))}))},B=function(e){this.entries.length=0,L(this.entries,e)},U=function(e,t){if(e<t)throw TypeError("Not enough arguments")},F=u((function(e,t){N(this,{type:C,iterator:_(O(e).entries),kind:t})}),"Iterator",(function(){var e=T(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),Y=function(){f(this,Y,x);var e,t,n,r,o,a,i,s,c,u=arguments.length>0?arguments[0]:void 0,l=this,d=[];if(N(l,{type:x,entries:d,updateURL:function(){},updateSearchParams:B}),void 0!==u)if(y(u))if("function"==typeof(e=b(u)))for(n=(t=e.call(u)).next;!(r=n.call(t)).done;){if((i=(a=(o=_(m(r.value))).next).call(o)).done||(s=a.call(o)).done||!a.call(o).done)throw TypeError("Expected sequence with length 2");d.push({key:i.value+"",value:s.value+""})}else for(c in u)p(u,c)&&d.push({key:c,value:u[c]+""});else L(d,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},W=Y.prototype;s(W,{append:function(e,t){U(arguments.length,2);var n=O(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){U(arguments.length,1);for(var t=O(this),n=t.entries,r=e+"",o=0;o<n.length;)n[o].key===r?n.splice(o,1):o++;t.updateURL()},get:function(e){U(arguments.length,1);for(var t=O(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){U(arguments.length,1);for(var t=O(this).entries,n=e+"",r=[],o=0;o<t.length;o++)t[o].key===n&&r.push(t[o].value);return r},has:function(e){U(arguments.length,1);for(var t=O(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){U(arguments.length,1);for(var n,r=O(this),o=r.entries,a=!1,i=e+"",s=t+"",c=0;c<o.length;c++)(n=o[c]).key===i&&(a?o.splice(c--,1):(a=!0,n.value=s));a||o.push({key:i,value:s}),r.updateURL()},sort:function(){var e,t,n,r=O(this),o=r.entries,a=o.slice();for(o.length=0,n=0;n<a.length;n++){for(e=a[n],t=0;t<n;t++)if(o[t].key>e.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){for(var t,n=O(this).entries,r=d(e,arguments.length>1?arguments[1]:void 0,3),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new F(this,"keys")},values:function(){return new F(this,"values")},entries:function(){return new F(this,"entries")}},{enumerable:!0}),i(W,S,W.entries),i(W,"toString",(function(){for(var e,t=O(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(j(e.key)+"="+j(e.value));return n.join("&")}),{enumerable:!0}),c(Y,x),r({global:!0,forced:!a},{URLSearchParams:Y}),a||"function"!=typeof E||"function"!=typeof k||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,o=[e];return arguments.length>1&&(y(t=arguments[1])&&(n=t.body,h(n)===x&&((r=t.headers?new k(t.headers):new k).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:v(0,String(n)),headers:v(0,r)}))),o.push(t)),E.apply(this,o)}}),e.exports={URLSearchParams:Y,getState:O}},6292:(e,t,n)=>{function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(5765)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,a=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(a=o))})),e.splice(a,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&
vendor: 3,114 bytes, line 2
2("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},5765:(e,t,n)=>{function r(e){var n;function r(){if(r.enabled){var e=r,o=+new Date,a=o-(n||o);e.diff=a,e.prev=n,e.curr=o,n=o;for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var o=t.formatters[r];if("function"==typeof o){var a=i[c];n=o.call(e,a),i.splice(c,1),c--}return n})),t.formatArgs.call(e,i);var u=r.log||t.log||console.log.bind(console);u.apply(e,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var a=t.instances[n];a.enabled=t.enabled(a.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1}
2,t.humanize=n(8628),t.instances=[],t.names=[],t.skips=[],t.formatters={}},9709:(e,t,n)=>{"use strict";var r=n(3203);t.__esModule=!0,t.default=function(e){void 0===e&&(e=(0,o.default)());try{return e.activeElement}catch(e){}};var o=r(n(144));e.exports=t.default},168:(e,t,n)=>{"use strict";var r=n(3203);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(7367));e.exports=t.default},7367:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},5131:(e,t,n)=>{"use strict";var r=n(3203);t.__esModule=!0,t.default=void 0;var o=r(n(168));t.addClass=o.default;var a=r(n(7697));t.removeClass=a.default;var i=r(n(7367));t.hasClass=i.default;var s={addClass:o.default,removeClass:a.default,hasClass:i.default};t.default=s},7697:e=>{"use strict";
2function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},4456:(e,t,n)=>{"use strict";var r=n(3203);t.__esModule=!0,t.default=function(e,t){return function(n){var r=n.currentTarget,i=n.target;(0,a.default)(r,e).some((function(e){return(0,o.default)(e,i)}))&&t.call(this,n)}};var o=r(n(4702)),a=r(n(900));e.exports=t.default},7608:(e,t,n)=>{"use strict";var r=n(3203);t.__esModule=!0,t.default=void 0;var o=r(n(6061));t.on=o.default;var a=r(n(2281));t.off=a.default;var i=r(n(4456));t.filter=i.default;var s=r(n(5476));t.listen=s.default;var c={on:o.default,off:a.default,filter:i.default,listen:s.default};t.default=c},5476:(e,t,n)=>{"use strict";var r=n(3203);t.__esModule=!0,t.default=void 0;var o=r(n(2810)),a=r(n(6061)),i=r(n(2281)),s=function(){};o.default&&(s=function(e,t,n,r){return(0,a.default)(e,t,n,r),function(){(0,i.default)(e,t,n,r)}});var c=s;t.default=c,e.exports=t.default},2281:(e,t,n)=>{"use strict";var r=n(3203);t.__esModule=!0,t.default=void 0;var o=function(){};r(n(2810)).default&&(o=document.addEventListener?function(e,t,n,r){return e.removeEventListener(t,n,r||!1)}:document.attachEvent?function(e,t,n){return e.detachEvent("on"+t,n)}:void 0);var a=o;t.default=a,e.exports=t.default},6061:(e,t,n)=>{"use strict";var r=n(3203);t.__esModule=!0,t.default=void 0;var o=function(){};r(n(2810)).default&&(o=document.addEventListener?function(e,t,n,r){return e.addEventListener(t,n,r||!1)}:document.attachEvent?function(e,t,n){return e.attachEvent("on"+t,(function(t){(t=t||window.event).target=t.target||t.srcElement,t.currentTarget=e,n.call(e,t)}))}:void 0);var a=o;t.default=a,e.exports=t.default},144:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},4702:(e,t,n)=>{"use strict";var r=n(3203);t.__esModule=!0,t.default=void 0;var o=r(n(2810)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):a(e,t)}:a;function a(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=o,e.exports=t.default},7432:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},900:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){var o,a="#"===t[0],i="."===t[0],s=a||i?t.slice(1):t;return n.test(s)?a?(o=(e=e.getElementById?e:document).getElementById(s))?[o]:[]:e.getElementsByClassName&&i?r(e.getElementsByClassName(s)):r(e.getElementsByTagName(t)):r(e.querySelectorAll(t))};var n=/^[\w-]*$/,r=Function.prototype.bind.call(Function.prototype.call,[].slice);e.exports=t.default},7058:(e,t,n)=>{"use strict";var r=n(3203);t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var n=e.style;"float"==(t=(0,o.default)(t))&&(t="styleFloat");var r=e.currentStyle[t]||null;if(null==r&&n&&n[t]&&(r=n[t]),i.test(r)&&!a.test(t)){var s=n.left,c=e.runtimeStyle,u=c&&c.left;u&&(c.left=e.currentStyle.left),n.left="fontSize"===t?"1em":r,r=n.pixelLeft+"px",n.left=s,u&&(c.left=u)}return r}}};var o=r(n(3236)),a=/^(top|right|bottom|left)$/,i=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default}
2,7164:(e,t,n)=>{"use strict";var r=n(3203);t.__esModule=!0,t.default=function(e,t,n){var r="",l="",f=t;if("string"==typeof t){if(void 0===n)return e.style[(0,o.default)(t)]||(0,i.default)(e).getPropertyValue((0,a.default)(t));(f={})[t]=n}Object.keys(f).forEach((function(t){var n=f[t];n||0===n?(0,u.default)(t)?l+=t+"("+n+") ":r+=(0,a.default)(t)+": "+n+";":(0,s.default)(e,(0,a.default)(t))})),l&&(r+=c.transform+": "+l+";"),e.style.cssText+=";"+r};var o=r(n(3236)),a=r(n(4858)),i=r(n(7058)),s=r(n(3023)),c=n(132),u=r(n(611));e.exports=t.default},3023:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},611:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return!(!e||!n.test(e))};var n=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},132:(e,t,n)=>{"use strict";var r=n(3203);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var o,a,i,s,c,u,l,f,p,d,h,m=r(n(2810)),y="transform";if(t.transform=y,t.animationEnd=i,t.transitionEnd=a,t.transitionDelay=l,t.transitionTiming=u,t.transitionDuration=c,t.transitionProperty=s,t.animationDelay=h,t.animationTiming=d,t.animationDuration=p,t.animationName=f,m.default){var g=function(){for(var e,t,n=document.createElement("div").style,r={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},o=Object.keys(r),a="",i=0;i<o.length;i++){var s=o[i];if(s+"TransitionProperty"in n){a="-"+s.toLowerCase(),e=r[s]("TransitionEnd"),t=r[s]("AnimationEnd");break}}return!e&&"transitionProperty"in n&&(e="transitionend"),!t&&"animationName"in n&&(t="animationend"),n=null,{animationEnd:t,transitionEnd:e,prefix:a}}();o=g.prefix,t.transitionEnd=a=g.transitionEnd,t.animationEnd=i=g.animationEnd,t.transform=y=o+"-"+y,t.transitionProperty=s=o+"-transition-property",t.transitionDuration=c=o+"-transition-duration",t.transitionDelay=l=o+"-transition-delay",t.transitionTiming=u=o+"-transition-timing-function",t.animationName=f=o+"-animation-name",t.animationDuration=p=o+"-animation-duration",t.animationTiming=d=o+"-animation-delay",t.animationDelay=h=o+"-animation-timing-function"}var v={transform:y,end:a,property:s,timing:u,delay:l,duration:c};t.default=v},1878:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e.replace(n,(function(e,t){return t.toUpperCase()}))};var n=/-(.)/g;e.exports=t.default},3236:(e,t,n)=>{"use strict";var r=n(3203);t.__esModule=!0,t.default=function(e){return(0,o.default)(e.replace(a,"ms-"))};var o=r(n(1878)),a=/^-ms-/;e.exports=t.default},8218:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){return e.replace(n,"-$1").toLowerCase()};var n=/([A-Z])/g;e.exports=t.default},4858:(e,t,n)=>{"use strict";var r=n(3203);t.__esModule=!0,t.default=function(e){return(0,o.default)(e).replace(a,"-ms-")};var o=r(n(8218)),a=/^ms-/;e.exports=t.default},2810:(e,t)=>{"use strict";t.__esModule=!0,t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n,e.exports=t.default},4857:(e,t,n)=>{"use strict";var r=n(3203);t.__esModule=!0,t.default=function(e){if((!o&&0!==o||e)&&a.default){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),o=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return o};var o,a=r(n(2810));e.exports=t.default},9265:(e,t)=>{t.linear=function(e){return e},t.inQuad=function(e){return e*e},t.outQuad=function(e){return e*(2-e)},t.inOutQuad=function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},t.inCube=function(e){return e*e*e},t.outCube=function(e){return--e*e*e+1},t.inOutCube=function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},t.inQuart=function(e){return e*e*e*e},t.outQuart=function(e){return 1- --e*e*e*e},t.inOutQuart=function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},t.inQuint=function(e){return e*e*e*e*e},t.outQuint=function(e){return--e*e*e*e*e+1},t.inOutQuint=function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},t.inSine=function(e){return 1-Math.cos(e*Math.PI/2)},t.outSine=function(e){return Math.sin(e*Math.PI/2)},t.inOutSine=function(e){return.5*(1-Math.cos(Math.PI*e))},t.inExpo=function(e){return 0==e?0:Math.pow(1024,e-1)},t.outExpo=function(e){return 1==e?e:1-Math.pow(2,-10*e)},t.inOutExpo=function(e){return 0==e?0:1==e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},t.inCirc=function(e){return 1-Math.sqrt(1-e*e)},t.outCirc=function(e){return Math.sqrt(1- --e*e)},t.inOutCirc=function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},t.inBack=function(e){var t=1.70158;return e*e*((t+1)*e-t)},t.outBack=function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},t.inOutBack=function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},t.inBounce=function(e){return 1-t.outBounce(1-e)},t.outBounce=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},t.inOutBounce=function(e){return e<.5?.5*t.inBounce(2*e):.5*t.outBounce(2*e-1)+.5},t["in-quad"]=t.inQuad,t["out-quad"]=t.outQuad,t["in-out-quad"]=t.inOutQuad,t["in-cube"]=t.inCube,t["out-cube"]=t.outCube,t["in-out-cube"]=t.inOutCube,t["in-quart"]=t.inQuart,t["out-quart"]=t.outQuart,t["in-out-quart"]=t.inOutQuart,t["in-quint"]=t.inQuint,t["out-quint"]=t.outQuint,t["in-out-quint"]=t.inOutQuint,t["in-sine"]=t.inSine,t["out-sine"]=t.outSine,t["in-out-sine"]=t.inOutSine,t["in-expo"]=t.inExpo,t["out-expo"]=t.outExpo,t["in-out-expo"]=t.inOutExpo,t["in-circ"]=t.inCirc,t["out-circ"]=t.outCirc,t["in-out-circ"]=t.inOutCirc,t["in-back"]=t.inBack,t["out-back"]=t.outBack,t["in-out-back"]=t.inOutBack,t["in-bounce"]=t.inBounce,t["out-bounce"]=t.outBounce,t["in-out-bounce"]=t.inOutBounce},8475:e=>{e.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},6306:(e,t,n)=>{e.exports=n(4684),e.exports.parser=n(2654)},4684:(e,t,n)=>{var r=n(1492),o=n(6215),a=n(6292)("engine.io-client:socket"),i=n(9560),s=n(2654),c=n(5649),u=n(8370);function l(e,t){if(!(this instanceof l))return new l(e,t);t=t||{},e&&"object"==typeof e&&(t=e,e=null),e?(e=c(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=c(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=u.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.withCredentials=!1!==t.withCredentials,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.t
vendor: 2,575 bytes, line 2
2imestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=!1!==t.perMessageDeflate&&(t.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||void 0,this.key=t.key||void 0,this.passphrase=t.passphrase||void 0,this.cert=t.cert||void 0,this.ca=t.ca||void 0,this.ciphers=t.ciphers||void 0,this.rejectUnauthorized=void 0===t.rejectUnauthorized||t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=l,l.priorWebsocketSuccess=!1,o(l.prototype),l.protocol=s.protocol,l.Socket=l,l.Transport=n(7753),l.transports=n(1492),l.parser=n(2654),l.prototype.createTransport=function(e){a('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.query);t.EIO=s.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new r[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,withCredentials:n.withCredentials||this.withCredentials,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNo
2de||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},l.prototype.open=function(){var e;if(this.rememberUpgrade&&l.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout((function(){t.emit("error","No transports available")}),0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},l.prototype.setTransport=function(e){a("setting transport %s",e.name);var t=this;this.transport&&(a("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",(function(){t.onDrain()})).on("packet",(function(e){t.onPacket(e)})).on("error",(function(e){t.onError(e)})).on("close",(function(){t.onClose("transport close")}))},l.prototype.probe=function(e){a('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),n=!1,r=this;function o(){if(r.onlyBinaryUpgrades){var o=!this.supportsBinary&&r.transport.supportsBinary;n=n||o}n||(a('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(function(o){if(!n)if("pong"===o.type&&"probe"===o.data){if(a('probe transport "%s" pong',e),r.upgrading=!0,r.emit("upgrading",t),!t)return;l.priorWebsocketSuccess="websocket"===t.name,a('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(a("changing transport and sending upgrade packet"),p(),r.setTransport(t),t.send([{type:"upgrade"}]),r.emit("upgrade",t),t=null,r.upgrading=!1,r.flush())}))}else{a('probe transport "%s" failed',e);var i=new Error("probe error");i.transport=t.name,r.emit("upgradeError",i)}})))}function i(){n||(n=!0,p(),t.close(),t=null)}function s(n){var o=new Error("probe error: "+n);o.transport=t.name,i(),a('probe transport "%s" failed because of error: %s',e,n),r.emit("upgradeError",o)}function c(){s("transport closed")}function u(){s("socket closed")}function f(e){t&&e.name!==t.name&&(a('"%s" works - aborting "%s"',e.name,t.name),i())}function p(){t.removeListener("open",o),t.removeListener("error",s),t.removeListener("close",c),r.removeListener("close",u),r.removeListener("upgrading",f)}l.priorWebsocketSuccess=!1,t.once("open",o),t.once("error",s),t.once("close",c),this.once("close",u),this.once("upgrading",f),t.open()},l.prototype.onOpen=function(){if(a("socket open"),this.readyState="open",l.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){a("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},l.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(a('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;
2case"message":this.emit("data",e.data),this.emit("message",e.data)}else a('packet received with socket readyState "%s"',this.readyState)},l.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},l.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout((function(){"closed"!==t.readyState&&t.onClose("ping timeout")}),e||t.pingInterval+t.pingTimeout)},l.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout((function(){a("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)}),e.pingInterval)},l.prototype.ping=function(){var e=this;this.sendPacket("ping",(function(){e.emit("ping")}))},l.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},l.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(a("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},l.prototype.write=l.prototype.send=function(e,t,n){return this.sendPacket("message",e,t,n),this},l.prototype.sendPacket=function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var o={type:e,data:t,options:n};this.emit("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}},l.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",(function(){this.upgrading?r():t()})):this.upgrading?r():t()}function t(){e.onClose("forced close"),a("socket closing - telling transport to close"),e.transport.close()}function n(){e.removeListener("upgrade",n),e.removeListener("upgradeError",n),t()}function r(){e.once("upgrade",n),e.once("upgradeError",n)}return this},l.prototype.onError=function(e){a("socket error %j",e),l.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},l.prototype.onClose=function(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(a('socket close with reason: "%s"',e),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)},l.prototype.filterUpgrades=function(e){for(var t=[],n=0,r=e.length;n<r;n++)~i(this.transports,e[n])&&t.push(e[n]);return t}},7753:(e,t,n)=>{var r=n(2654),o=n(6215);function a(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}e.exports=a,o(a.prototype),a.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},a.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},a.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},a.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},a.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit
2("open")},a.prototype.onData=function(e){var t=r.decodePacket(e,this.socket.binaryType);this.onPacket(t)},a.prototype.onPacket=function(e){this.emit("packet",e)},a.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},1492:(e,t,n)=>{var r=n(8924),o=n(344),a=n(9642),i=n(3133);t.polling=function(e){var t=!1,n=!1,i=!1!==e.jsonp;if("undefined"!=typeof location){var s="https:"===location.protocol,c=location.port;c||(c=s?443:80),t=e.hostname!==location.hostname||c!==e.port,n=e.secure!==s}if(e.xdomain=t,e.xscheme=n,"open"in new r(e)&&!e.forceJSONP)return new o(e);if(!i)throw new Error("JSONP disabled");return new a(e)},t.websocket=i},9642:(e,t,n)=>{var r=n(8433),o=n(8101),a=n(8475);e.exports=l;var i,s=/\n/g,c=/\\n/g;function u(){}function l(e){r.call(this,e),this.query=this.query||{},i||(i=a.___eio=a.___eio||[]),this.index=i.length;var t=this;i.push((function(e){t.onData(e)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){t.script&&(t.script.onerror=u)}),!1)}o(l,r),l.prototype.supportsBinary=!1,l.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),r.prototype.doClose.call(this)},l.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)}),100)},l.prototype.doWrite=function(e,t){var n=this;if(!this.form){var r,o=document.createElement("form"),a=document.createElement("textarea"),i=this.iframeId="eio_iframe_"+this.index;o.className="socketio",o.style.position="absolute",o.style.top="-1000px",o.style.left="-1000px",o.target=i,o.method="POST",o.setAttribute("accept-charset","utf-8"),a.name="d",o.appendChild(a),document.body.appendChild(o),this.form=o,this.area=a}function u(){l(),t()}function l(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(e){n.onError("jsonp polling iframe removal error",e)}try{var e='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(e)}catch(e){(r=document.createElement("iframe")).name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),l(),e=e.replace(c,"\\\n"),this.area.value=e.replace(s,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&u()}:this.iframe.onload=u}},344:(e,t,n)=>{var r=n(8924),o=n(8433),a=n(6215),i=n(8101),s=n(6292)("engine.io-client:polling-xhr"),c=n(8475);function u(){}function l(e){if(o.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,"undefined"!=typeof location){var t="https:"===location.protocol,n=location.port;n||(n=t?443:80),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}}function f(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}function p(){for(var e in f.requests)f.requests.hasOwnProperty(e)&&f.requests[e].abort()}e.exports=l,e.exports.Request=f,i(l,o),l.prototype.supportsBinary=!0,l.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new f(e)},l.prototype.doWrite=function(e,t){var n="string"!=typeof e&&void 0!==e,r=this.request({method:"POST",data:e,isBinary:n}),o=this;r.on("success",t),r.on("error",(function(e){o.onError("xhr post error",e)})),this.sendXhr=r},l.prototype.doPoll=function(){s("xhr poll");var e=this.request(),t=this;e.on("data",(function(e){t.onData(e)})),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e},a(f.prototype),f.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new r(e),n=this;try{s("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var o in t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(o)&&t.setRequestHeader(o,this.extraHeaders[o])}catch(e){}if("POST"===this.method)try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.withCredentials),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){n.onLoad()},t.onerror=function(){n.onError(t.responseText)}):t.onreadystatechange=function(){if(2===t.readyState)try{var e=t.getResponseHeader("Content-Type");
2(n.supportsBinary&&"application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e)&&(t.responseType="arraybuffer")}catch(e){}4===t.readyState&&(200===t.status||1223===t.status?n.onLoad():setTimeout((function(){n.onError("number"==typeof t.status?t.status:0)}),0))},s("xhr data %s",this.data),t.send(this.data)}catch(e){return void setTimeout((function(){n.onError(e)}),0)}"undefined"!=typeof document&&(this.index=f.requestsCount++,f.requests[this.index]=this)},f.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},f.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},f.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},f.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=u:this.xhr.onreadystatechange=u,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete f.requests[this.index],this.xhr=null}},f.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(e){}e=("application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&this.xhr.response||this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},f.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},f.prototype.abort=function(){this.cleanup()},f.requestsCount=0,f.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",p):"function"==typeof addEventListener&&addEventListener("onpagehide"in c?"pagehide":"unload",p,!1))},8433:(e,t,n)=>{var r=n(7753),o=n(8370),a=n(2654),i=n(8101),s=n(327),c=n(6292)("engine.io-client:polling");e.exports=l;var u=null!=new(n(8924))({xdomain:!1}).responseType;function l(e){var t=e&&e.forceBase64;u&&!t||(this.supportsBinary=!1),r.call(this,e)}i(l,r),l.prototype.name="polling",l.prototype.doOpen=function(){this.poll()},l.prototype.pause=function(e){var t=this;function n(){c("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(c("we are currently polling - waiting to pause"),r++,this.once("pollComplete",(function(){c("pre-pause polling complete"),--r||n()}))),this.writable||(c("we are currently writing - waiting to pause"),r++,this.once("drain",(function(){c("pre-pause writing complete"),--r||n()})))}else n()},l.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},l.prototype.onData=function(e){var t=this;c("polling got data %s",e),a.decodePayload(e,this.socket.binaryType,(function(e,n,r){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},l.prototype.doClose=function(){var e=this;function t(){c("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(c("transport open - closing"),t()):(c("transport not open - deferring close"),this.once("open",t))},l.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};a.encodePayload(e,this.supportsBinary,(function(e){t.doWrite(e,n)}))},l.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=s()),this.supportsBinary||e.sid||(e.b64=1),e=o.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},3133:(e,t,n)=>{var r,o,a=n(7753),i=n(2654),s=n(8370),c=n(8101),u=n(327),l=n(6292)("engine.io-client:websocket");if("undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof self&&(r=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{o=n(7101)}catch(e){}var f=r||o;function p(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=r&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(f=o),a.call(this,e)}e.exports=p,c(p,a),p.prototype.name="websocket",p.prototype.supportsBinary=!0,p.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={};this.isReactNative||(n.agent=this.agent,n.perMessageDeflate=this.perMessageDeflate,n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new f(e,t):new f(e):new f(e,t,n)}
2catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},p.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},p.prototype.write=function(e){var t=this;this.writable=!1;for(var n=e.length,r=0,o=n;r<o;r++)!function(e){i.encodePacket(e,t.supportsBinary,(function(r){if(!t.usingBrowserWebSocket){var o={};e.options&&(o.compress=e.options.compress),t.perMessageDeflate&&("string"==typeof r?Buffer.byteLength(r):r.length)<t.perMessageDeflate.threshold&&(o.compress=!1)}try{t.usingBrowserWebSocket?t.ws.send(r):t.ws.send(r,o)}catch(e){l("websocket closed before onclose event")}--n||(t.emit("flush"),setTimeout((function(){t.writable=!0,t.emit("drain")}),0))}))}(e[r])},p.prototype.onClose=function(){a.prototype.onClose.call(this)},p.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},p.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",n="";return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=u()),this.supportsBinary||(e.b64=1),(e=s.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e},p.prototype.check=function(){return!(!f||"__initialize"in f&&this.name===p.prototype.name)}
2},8924:(e,t,n)=>{var r=n(6048),o=n(8475);e.exports=function(e){var t=e.xdomain,n=e.xscheme,a=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!n&&a)return new XDomainRequest}catch(e){}if(!t)try{return new(o[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},6215:e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},2654:(e,t,n)=>{var r,o=n(9521),a=n(4579),i=n(7781),s=n(8636),c=n(1681);"undefined"!=typeof ArrayBuffer&&(r=n(8718));var u="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),l="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),f=u||l;t.protocol=3;var p=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},d=o(p),h={type:"error",data:"parser error"},m=n(2522);function y(e,t,n){for(var r=new Array(e.length),o=s(e.length,n),a=function(e,n,o){t(n,(function(t,n){r[e]=n,o(t,r)}))},i=0;i<e.length;i++)a(i,e[i],o)}t.encodePacket=function(e,n,r,o){"function"==typeof n&&(o=n,n=!1),"function"==typeof r&&(o=r,r=null);var a=void 0===e.data?void 0:e.data.buffer||e.data;if("undefined"!=typeof ArrayBuffer&&a instanceof ArrayBuffer)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=e.data,a=new Uint8Array(o),i=new Uint8Array(1+o.byteLength);i[0]=p[e.type];for(var s=0;s<a.length;s++)i[s+1]=a[s];return r(i.buffer)}(e,n,o);if(void 0!==m&&a instanceof m)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);if(f)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var o=new FileReader;return o.onload=function(){t.encodePacket({type:e.type,data:o.result},n,!0,r)},o.readAsArrayBuffer(e.data)}(e,n,r);var o=new Uint8Array(1);return o[0]=p[e.type],r(new m([o.buffer,e.data]))}(e,n,o);if(a&&a.base64)return function(e,n){return n("b"+t.packets[e.type]+e.data.data)}(e,o);var i=p[e.type];return void 0!==e.data&&(i+=r?c.encode(String(e.data),{strict:!1}):String(e.data)),o(""+i)},t.encodeBase64Packet=function(e,n){var r,o="b"+t.packets[e.type];if(void 0!==m&&e.data instanceof m){var a=new FileReader;return a.onload=function(){var e=a.result.split(",")[1];n(o+e)},a.readAsDataURL(e.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(e.data))}catch(t){for(var i=new Uint8Array(e.data),s=new Array(i.length),c=0;c<i.length;c++)s[c]=i[c];r=String.fromCharCode.apply(null,s)}return o+=btoa(r),n(o)},t.decodePacket=function(e,n,r){if(void 0===e)return h;if("string"==typeof e){if("b"===e.charAt(0))return t.decodeBase64Packet(e.substr(1),n);if(r&&!1===(e=function(e){try{e=c.decode(e,{strict:!1})}catch(e){return!1}return e}(e)))return h;var o=e.charAt(0);return Number(o)==o&&d[o]?e.length>1?{type:d[o],data:e.substring(1)}:{type:d[o]}:h}o=new Uint8Array(e)[0];var a=i(e,1);return m&&"blob"===n&&(a=new m([a])),{type:d[o],data:a}},t.decodeBase64Packet=function(e,t){var n=d[e.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:e.substr(1)}};var o=r.decode(e.substr(1));return"blob"===t&&m&&(o=new m([o])),{type:n,data:o}},t.encodePayload=function(e,n,r){"function"==typeof n&&(r=n,n=null);var o=a(e);return n&&o?m&&!f?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r):e.length?void
2y(e,(function(e,r){t.encodePacket(e,!!o&&n,!1,(function(e){r(null,function(e){return e.length+":"+e}(e))}))}),(function(e,t){return r(t.join(""))})):r("0:")},t.decodePayload=function(e,n,r){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,r);var o;if("function"==typeof n&&(r=n,n=null),""===e)return r(h,0,1);for(var a,i,s="",c=0,u=e.length;c<u;c++){var l=e.charAt(c);if(":"===l){if(""===s||s!=(a=Number(s)))return r(h,0,1);if(s!=(i=e.substr(c+1,a)).length)return r(h,0,1);if(i.length){if(o=t.decodePacket(i,n,!1),h.type===o.type&&h.data===o.data)return r(h,0,1);if(!1===r(o,c+a,u))return}c+=a,s=""}else s+=l}return""!==s?r(h,0,1):void 0},t.encodePayloadAsArrayBuffer=function(e,n){if(!e.length)return n(new ArrayBuffer(0));y(e,(function(e,n){t.encodePacket(e,!0,!0,(function(e){return n(null,e)}))}),(function(e,t){var r=t.reduce((function(e,t){var n;return e+(n="string"==typeof t?t.length:t.byteLength).toString().length+n+2}),0),o=new Uint8Array(r),a=0;return t.forEach((function(e){var t="string"==typeof e,n=e;if(t){for(var r=new Uint8Array(e.length),i=0;i<e.length;i++)r[i]=e.charCodeAt(i);n=r.buffer}o[a++]=t?0:1;var s=n.byteLength.toString();for(i=0;i<s.length;i++)o[a++]=parseInt(s[i]);for(o[a++]=255,r=new Uint8Array(n),i=0;i<r.length;i++)o[a++]=r[i]})),n(o.buffer)}))},t.encodePayloadAsBlob=function(e,n){y(e,(function(e,n){t.encodePacket(e,!0,!0,(function(e){var t=new Uint8Array(1);if(t[0]=1,"string"==typeof e){for(var r=new Uint8Array(e.length),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);e=r.buffer,t[0]=0}var a=(e instanceof ArrayBuffer?e.byteLength:e.size).toString(),i=new Uint8Array(a.length+1);for(o=0;o<a.length;o++)i[o]=parseInt(a[o]);if(i[a.length]=255,m){var s=new m([t.buffer,i.buffer,e]);n(null,s)}}))}),(function(e,t){return n(new m(t))}))},t.decodePayloadAsBinary=function(e,n,r){"function"==typeof n&&(r=n,n=null);for(var o=e,a=[];o.byteLength>0;){for(var s=new Uint8Array(o),c=0===s[0],u="",l=1;255!==s[l];l++){if(u.length>310)return r(h,0,1);u+=s[l]}o=i(o,2+u.length),u=parseInt(u);var f=i(o,0,u);if(c)try{f=String.fromCharCode.apply(null,new Uint8Array(f))}catch(e){var p=new Uint8Array(f);for(f="",l=0;l<p.length;l++)f+=String.fromCharCode(p[l])}a.push(f),o=i(o,u)}var d=a.length;a.forEach((function(e,o){r(t.decodePacket(e,n,!0),o,d)}))}},9521:e=>{e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}},1681:e=>{var t,n,r,o=String.fromCharCode;function a(e){for(var t,n,r=[],o=0,a=e.length;o<a;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<a?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function i(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function s(e,t){return o(e>>t&63|128)}function c(e,t){if(0==(4294967168&e))return o(e);var n="";return 0==(4294965248&e)?n=o(e>>6&31|192):0==(4294901760&e)?(i(e,t)||(e=65533),n=o(e>>12&15|224),n+=s(e,6)):0==(4292870144&e)&&(n=o(e>>18&7|240),n+=s(e,12),n+=s(e,6)),n+o(63&e|128)}function u(){if(r>=n)throw Error("Invalid byte index");var e=255&t[r];if(r++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function l(e){var o,a;if(r>n)throw Error("Invalid byte index");if(r==n)return!1;if(o=255&t[r],r++,0==(128&o))return o;if(192==(224&o)){if((a=(31&o)<<6|u())>=128)return a;throw Error("Invalid continuation byte")}if(224==(240&o)){if((a=(15&o)<<12|u()<<6|u())>=2048)return i(a,e)?a:65533;throw Error("Invalid continuation byte")}if(240==(248&o)&&(a=(7&o)<<18|u()<<12|u()<<6|u())>=65536&&a<=1114111)return a;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,r=a(e),o=r.length,i=-1,s="";++i<o;)s+=c(r[i],n);return s},decode:function(e,i){var s=!1!==(i=i||{}).strict;t=a(e),n=t.length,r=0;for(var c,u=[];!1!==(c=l(s));)u.push(c);return function(e){for(var t,n=e.length,r=-1,a="";++r<n;)(t=e[r])>65535&&(a+=o((t-=65536)>>>10&1023|55296),t=56320|1023&t),a+=o(t);return a}(u)}}},4579:(e,t,n)=>{var r=n(3490),o=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),i="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);e.exports=function e(t){if(!t||"object"!=typeof t)return!1;if(r(t)){for(var n=0,o=t.length;n<o;n++)if(e(t[n]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(t)||"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||a&&t instanceof Blob||i&&t instanceof File)return!0;
2if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&e(t[s]))return!0;return!1}},3490:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},6048:e=>{try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},5839:(e,t,n)=>{"use strict";var r=n(9185),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var i=l(n);f&&(i=i.concat(f(n)));for(var s=c(t),m=c(n),y=0;y<i.length;++y){var g=i[y];if(!(a[g]||r&&r[g]||m&&m[g]||s&&s[g])){var v=p(n,g);try{u(t,g,v)}catch(e){}}}}return t}},9560:e=>{var t=[].indexOf;e.exports=function(e,n){if(t)return e.indexOf(n);for(var r=0;r<e.length;++r)if(e[r]===n)return r;return-1}},3996:e=>{"use strict";e.exports=function(e,t,n,r,o,a,i,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,i,s],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},4480:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=4480,e.exports=t},1320:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function d(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return xt(e,t,n,r,!0).utc()}function m(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function y(e){if(null==e._isValid){var t=m(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function g(e){var t=h(NaN);return null!=e?d(m(t),e):m(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=o.momentProperties=[],_=!1;function b(e,t){var n,r,o;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=m(t)),u(t._locale)||(e._locale=t._locale),v.length>0)for(n=0;n<v.length;n++)u(o=t[r=v[n]])||(e[r]=o);return e}function w(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,o.updateOffset(this),_=!1)}function E(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function k(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return d((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var r,a,i,c=[];for(a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(i in r+="\n["+a+"] ",arguments[0])s(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[a];c.push(r)}k(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var x,C={};function N(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),C[e]||(k(t),C[e]=!0)}function O(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e,t){var n,r=d({},e);for(n in t)s(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&i(e[n])&&(r[n]=d({},r[n]));return r}function z(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,x=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};function P(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
vendor: 7,538 bytes, line 2
2|x|X|zz?|ZZ?|.)/g,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,q={},M={};function I(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(M[e]=o),t&&(M[t[0]]=function(){return P(o.apply(this,arguments),t[1],t[2])}),n&&(M[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function D(e,t){return e.isValid()?(t=j(t,e.localeData()),q[t]=q[t]||function(e){var t,n,r,o=e.match(R);for(t=0,n=o.length;t<n;t++)M[o[t]]?o[t]=M[o[t]]:o[t]=(r=o[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,a="";for(r=0;r<n;r++)a+=O(o[r])?o[r].call(t,e):o[r];return a}}(t),q[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(A.lastIndex=0;n>=0&&A.test(e);)e=e.replace(A,r),A.lastIndex=0,n-=1;return e}var L={};function B(e,t){var n=e.toLowerCase();L[n]=L[n+"s"]=L[t]=e}function U(e){return"string"==typeof e?L[e]||L[e.toLowerCase()]:void 0}function F(e){var t,n,r={};for(n in e)s(e,n)&&(t=U(n))&&(r[t]=e[n]);return r}var Y={};function W(e,t){Y[e]=t}function H(e){return e%4==0&&e%100!=0||e%400==0}function G(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=G(t)),n}function Q(e,t){return function(n){return null!=n?(Z(this,e,n),o.updateOffset(this,t),this):$(this,e)}}function $(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Z(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&H(e.year())&&1===e.month()&&29===e.date()?(n=V(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ee(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var K,X=/\d/,J=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,oe=/\d\d\d\d?/,ae=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,se=/\d{1,4}/,ce=/[+-]?\d{1,6}/,ue=/\d+/,le=/[+-]?\d+/,fe=/Z|[+-]\d\d:?\d\d/gi,pe=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function he(e,t,n){K[e]=O(t)?t:function(e,r){return e&&n?n:t}}function me(e,t){return s(K,e)?K[e](t._strict,t._locale):new RegExp(ye(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function ye(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}K={};var ge={};function ve(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=V(e)}),n=0;n<e.length;n++)ge[e[n]]=r}function _e(e,t){ve(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function be(e,t,n){null!=t&&s(ge,e)&&ge[e](t,n._a,n,e)}var we;function Ee(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?H(e)?29:28:31-r%7%2}we=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},I("M",["MM",2],"Mo",(function(){return this.month()+1})),I("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),I("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),B("month","M"),W("month",8),he("M",re),he("MM",re,J),he("MMM",(function(e,t){return t.monthsShortRegex(e)})),he("MMMM",(function(e,t){return t.monthsRegex(e)})),ve(["M","MM"],(function(e,t){t[1]=V(e)-1})),ve(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[1]=o:m(n).invalidMonth=e}));var ke="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Se="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),xe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ce=de,Ne=de;function Oe(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=we.call(this._shortMonthsParse,i))?o:null:-1!==(o=we.call(this._longMonthsParse,i))?o:null:"MMM"===t?-1!==(o=we.call(this._shortMonthsParse,i))||-1!==(o=we.call(this._longMonthsParse,i))?o:null:-1!==(o=we.call(this._longMonthsParse,i))||-1!==(o=we.call(this._shortMonthsParse,i))?o:null}function Te(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=V(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ee(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ze(e){return null!=e?(Te(this,e),o.updateOffset(this,!0),this):$(this,"Month")}function Pe(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],a=[];for(t=0;t<12;t++)n=h([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),a.sort(e),t=0;t<12;t++)r[t]=ye(r[t]),o[t]=ye(o[t]);for(t=0;t<24;t++)a[t]=ye(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Re(e){return H(e)?366:365}I("Y",0,0,(function(){var e=this.year();return e<=9999?P(e,4):"+"+e})),I(0,["YY",2],0,(function(){return this.year()%100})),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),B("year","y"),W("year",1),he("Y",le),he("YY",re,J),he("YYYY",se,te),he("YYYYY",ce,ne),he("YYYYYY",ce,ne),ve(["YYYYY","YYYYYY"],0),ve("YYYY",(function(e,t){t[0]=2===e.length?o.parseTwoDigitYear(e):V(e)})),ve("YY",(function(e,t){t[0]=o.parseTwoDigitYear(e)})),ve("Y",(function(e,t){t[0]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return V(e)+(V(e)>68?1900:2e3)};var Ae=Q("FullYear",!0);function qe(e,t,n,r,o,a,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,a,i),s}function Me(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ie(e,t,n){var r=7+t-n;return-(7+Me(e,0,r).getUTCDay()-t)%7+r-1}function De(e,t,n,r,o){var a,i,s=1+7*(t-1)+(7+n-r)%7+Ie(e,r,o);return s<=0?i=Re(a=e-1)+s:s>Re(e)?(a=e+1,i=s-Re(e)):(a=e,i=s),{year:a,dayOfYear:i}}function je(e,t,n){var r,o,a=Ie(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?r=i+Le(o=e.year()-1,t,n):i>Le(e.year(),t,n)?(r=i-Le(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function Le(e,t,n){var r=Ie(e,t,n),o=Ie(e+1,t,n);return(Re(e)-r+o)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),W("week",5),W("isoWeek",5),he("w",re),he("ww",re,J),he("W",re),he("WW",re,J),_e(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=V(e)}));function Be(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("d",0,"do","day"),I("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),I("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),I("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),he("d",re),he("e",re),he("E",re),he("dd",(function(e,t){return t.weekdaysMinRegex(e)})),he("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),he("dddd",(function(e,t){return t.weekdaysRegex(e)})),_e(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._str
vendor: 5,820 bytes, line 2
2ict);null!=o?t.d=o:m(n).invalidWeekday=e})),_e(["d","e","E"],(function(e,t,n,r){t[r]=V(e)}));var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Fe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ye="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),We=de,He=de,Ge=de;function Ve(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=we.call(this._weekdaysParse,i))?o:null:"ddd"===t?-1!==(o=we.call(this._shortWeekdaysParse,i))?o:null:-1!==(o=we.call(this._minWeekdaysParse,i))?o:null:"dddd"===t?-1!==(o=we.call(this._weekdaysParse,i))||-1!==(o=we.call(this._shortWeekdaysParse,i))||-1!==(o=we.call(this._minWeekdaysParse,i))?o:null:"ddd"===t?-1!==(o=we.call(this._shortWeekdaysParse,i))||-1!==(o=we.call(this._weekdaysParse,i))||-1!==(o=we.call(this._minWeekdaysParse,i))?o:null:-1!==(o=we.call(this._minWeekdaysParse,i))||-1!==(o=we.call(this._weekdaysParse,i))||-1!==(o=we.call(this._shortWeekdaysParse,i))?o:null}function Qe(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],s=[],c=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=ye(this.weekdaysMin(n,"")),o=ye(this.weekdaysShort(n,"")),a=ye(this.weekdays(n,"")),i.push(r),s.push(o),c.push(a),u.push(r),u.push(o),u.push(a);i.sort(e),s.sort(e),c.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function $e(){return this.hours()%12||12}function Ze(e,t){I(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ke(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,$e),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+$e.apply(this)+P(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+$e.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),Ze("a",!0),Ze("A",!1),B("hour","h"),W("hour",13),he("a",Ke),he("A",Ke),he("H",re),he("h",re),he("k",re),he("HH",re,J),he("hh",re,J),he("kk",re,J),he("hmm",oe),he("hmmss",ae),he("Hmm",oe),he("Hmmss",ae),ve(["H","HH"],3),ve(["k","kk"],(function(e,t,n){var r=V(e);t[3]=24===r?0:r})),ve(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ve(["h","hh"],(function(e,t,n){t[3]=V(e),m(n).bigHour=!0})),ve("hmm",(function(e,t,n){var r=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r)),m(n).bigHour=!0})),ve("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r,2)),t[5]=V(e.substr(o)),m(n).bigHour=!0})),ve("Hmm",(function(e,t,n){var r=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r))})),ve("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r,2)),t[5]=V(e.substr(o))}));var Xe=Q("Hours",!0);var Je,et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ke,monthsShort:Se,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:Ye,weekdaysShort:Fe,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function ot(e){return e?e.toLowerCase().replace("_","-"):e}function at(t){var r=null;if(void 0===tt[t]&&e&&e.exports)try{r=Je._abbr,n(4480)("./"+t),it(r)}catch(e){tt[t]=null}return tt[t]}function it(e,t){var n;return e&&((n=u(t)?ct(e):st(e,t))?Je=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Je._abbr}function st(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])N("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(n=at(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return tt[e]=new z(T(r,t)),nt[e]&&nt[e].forEach((function(e){st(e.name,e.config)})),it(e),tt[e]}return delete tt[e],null}function ct(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Je;if(!a(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,r,o,a=0;a<e.length;){for(t=(o=ot(e[a]).split("-")).length,n=(n=ot(e[a+1]))?n.split("-"):null;t>0;){if(r=at(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(o,n)>=t-1)break;t--}a++}return Je}(e)}function ut(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Ee(n[0],n[1])?2:n[3]<0||n[3]>
vendor: 38,329 bytes, line 2
224||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),m(e)._overflowWeeks&&-1===t&&(t=7),m(e)._overflowWeekday&&-1===t&&(t=8),m(e).overflow=t),e}var lt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,dt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ht=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mt=/^\/?Date\((-?\d+)/i,yt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,gt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,n,r,o,a,i,s=e._i,c=lt.exec(s)||ft.exec(s);if(c){for(m(e).iso=!0,t=0,n=dt.length;t<n;t++)if(dt[t][1].exec(c[1])){o=dt[t][0],r=!1!==dt[t][2];break}if(null==o)return void(e._isValid=!1);if(c[3]){for(t=0,n=ht.length;t<n;t++)if(ht[t][1].exec(c[3])){a=(c[2]||" ")+ht[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(c[4]){if(!pt.exec(c[4]))return void(e._isValid=!1);i="Z"}e._f=o+(a||"")+(i||""),kt(e)}else e._isValid=!1}function _t(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function bt(e){var t,n,r,o,a,i,s,c,u=yt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(n=u[4],r=u[3],o=u[2],a=u[5],i=u[6],s=u[7],c=[_t(n),Se.indexOf(r),parseInt(o,10),parseInt(a,10),parseInt(i,10)],s&&c.push(parseInt(s,10)),t=c,!function(e,t,n){return!e||Fe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return gt[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}(u[8],u[9],u[10]),e._d=Me.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function wt(e,t,n){return null!=e?e:null!=t?t:n}function Et(e){var t,n,r,a,i,s=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,o,a,i,s,c,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,i=4,n=wt(t.GG,e._a[0],je(Ct(),1,4).year),r=wt(t.W,1),((o=wt(t.E,1))<1||o>7)&&(c=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,u=je(Ct(),a,i),n=wt(t.gg,e._a[0],u.year),r=wt(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(c=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(c=!0)):o=a),r<1||r>Le(n,a,i)?m(e)._overflowWeeks=!0:null!=c?m(e)._overflowWeekday=!0:(s=De(n,r,o,a,i),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=wt(e._a[0],r[0]),(e._dayOfYear>Re(i)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Me(i,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Me:qe).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(m(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],m(e).empty=!0;var t,n,r,a,i,s,c=""+e._i,u=c.length,l=0;for(r=j(e._f,e._locale).match(R)||[],t=0;t<r.length;t++)a=r[t],(n=(c.match(me(a,e))||[])[0])&&((i=c.substr(0,c.indexOf(n))).length>0&&m(e).unusedInput.push(i),c=c.slice(c.indexOf(n)+n.length),l+=n.length),M[a]?(n?m(e).empty=!1:m(e).unusedTokens.push(a),be(a,n,e)):e._strict&&!n&&m(e).unusedTokens.push(a);m(e).charsLeftOver=u-l,c.length>0&&m(e).unusedInput.push(c),e._a[3]<=12&&!0===m(e).bigHour&&e._a[3]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=m(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),Et(e),ut(e)}else bt(e);else vt(e)}function St(e){var t=e._i,n=e._f;return e._locale=e._locale||ct(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),E(t)?new w(ut(t)):(f(t)?e._d=t:a(n)?function(e){var t,n,r,o,a,i,s=!1;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)a=0,i=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],kt(t),y(t)&&(i=!0),a+=m(t).charsLeftOver,a+=10*m(t).unusedTokens.length,m(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||i)&&(r=a,n=t,i&&(s=!0));d(e,n||t)}(e):n?kt(e):function(e){var t=e._i;u(t)?e._d=new Date(o.now()):f(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=mt.exec(e._i);null===t?(vt(e),!1===e._isValid&&(delete e._isValid,bt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=p(t.slice(0),(function(e){return parseInt(e,10)})),Et(e)):i(t)?function(e){if(!e._d){var t=F(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Et(e)}}(e):l(t)?e._d=new Date(t):o.createFromInputFallback(e)}(e),y(e)||(e._d=null),e))}function xt(e,t,n,r,o){var s,u={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&c(e)||a(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=o,u._l=n,u._i=e,u._f=t,u._strict=r,(s=new w(ut(St(u))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Ct(e,t,n,r){return xt(e,t,n,r,!1)}o.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Nt=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Ot=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ct.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Tt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Ct();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var zt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pt(e){var t=F(e),n=t.year||0,r=t.quarter||0,o=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,c=t.hour||0,u=t.minute||0,l=t.second||0,f=t.millisecond||0;this._isValid=function(e){var t,n,r=!1;for(t in e)if(s(e,t)&&(-1===we.call(zt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<zt.length;++n)if(e[zt[n]]){if(r)return!1;parseFloat(e[zt[n]])!==V(e[zt[n]])&&(r=!0)}return!0}(t),this._milliseconds=+f+1e3*l+6e4*u+1e3*c*60*60,this._days=+i+7*a,this._months=+o+3*r+12*n,this._data={},this._locale=ct(),this._bubble()}function Rt(e){return e instanceof Pt}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function qt(e,t){I(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+P(~~(e/60),2)+t+P(~~e%60,2)}))}qt("Z",":"),qt("ZZ",""),he("Z",pe),he("ZZ",pe),ve(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=It(pe,e)}));var Mt=/([\+\-]|\d\d)/gi;function It(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(Mt)||["-",0,0])[1]+V(n[2]))?0:"+"===n[0]?r:-r}function Dt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(E(e)||f(e)?e.valueOf():Ct(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),o.updateOffset(n,!1),n):Ct(e).local()}function jt(e){return-Math.round(e._d.getTimezoneOffset())}function Lt(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Bt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ut=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ft(e,t){var n,r,o,a,i,c,u=e,f=null;return Rt(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(u={},t?u[t]=+e:u.milliseconds=+e):(f=Bt.exec(e))?(n="-"===f[1]?-1:1,u={y:0,d:V(f[2])*n,h:V(f[3])*n,m:V(f[4])*n,s:V(f[5])*n,ms:V(At(1e3*f[6]))*n}):(f=Ut.exec(e))?(n="-"===f[1]?-1:1,u={y:Yt(f[2],n),M:Yt(f[3],n),w:Yt(f[4],n),d:Yt(f[5],n),h:Yt(f[6],n),m:Yt(f[7],n),s:Yt(f[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(a=Ct(u.from),i=Ct(u.to),o=a.isValid()&&i.isValid()?(i=Dt(i,a),a.isBefore(i)?c=Wt(a,i):((c=Wt(i,a)).milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0},(u={}).ms=o.milliseconds,u.M=o.months),r=new Pt(u),Rt(e)&&s(e,"_locale")&&(r._locale=e._locale),Rt(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Yt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Wt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ht(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(N(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Gt(this,Ft(n,r),e),this}}function Gt(e,t,n,r){var a=t._milliseconds,i=At(t._days),s=At(t._months);e.isValid()&&(r=null==r||r,s&&Te(e,$(e,"Month")+s*n),i&&Z(e,"Date",$(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&o.updateOffset(e,i||s))}Ft.fn=Pt.prototype,Ft.invalid=function(){return Ft(NaN)};var Vt=Ht(1,"add"),Qt=Ht(-1,"subtract");function $t(e){return"string"==typeof e||e instanceof String}function Zt(e){return E(e)||f(e)||$t(e)||l(e)||function(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!l(t)&&$t(e)})).length),t&&n}(e)||function(e){var t,n,r=i(e)&&!c(e),o=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<a.length;t+=1)n=a[t],o=o||s(e,n);return r&&o}(e)||null==e}function Kt(e){var t,n=i(e)&&!c(e),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)r=r||s(e,o[t]);return n&&r}function Xt(e,t){if(e.date()<t.date())return-Xt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ct(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var en=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function tn(){return this._locale}var nn=1e3,rn=6e4,on=36e5,an=126227808e5;function sn(e,t){return(e%t+t)%t}function cn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-an:new Date(e,t,n).valueOf()}function un(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-an:Date.UTC(e,t,n)}function ln(e,t){return t.erasAbbrRegex(e)}function fn(){var e,t,n=[],r=[],o=[],a=[],i=this.eras();for(e=0,t=i.length;e<t;++e)r.push(ye(i[e].name)),n.push(ye(i[e].abbr)),o.push(ye(i[e].narrow)),a.push(ye(i[e].name)),a.push(ye(i[e].abbr)),a.push(ye(i[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function pn(e,t){I(0,[e,e.length],0,t)}function dn(e,t,n,r,o){var a;return null==e?je(this,r,o).year:(t>(a=Le(e,r,o))&&(t=a),hn.call(this,e,t,n,r,o))}function hn(e,t,n,r,o){var a=De(e,t,n,r,o),i=Me(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),he("N",ln),he("NN",ln),he("NNN",ln),he("NNNN",(function(e,t){return t.erasNameRegex(e)})),he("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ve(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?m(n).era=o:m(n).invalidEra=e})),he("y",ue),he("yy",ue),he("yyy",ue),he("yyyy",ue),he("yo",(function(e,t){return t._eraYearOrdinalRegex||ue})),ve(["y","yy","yyy","yyyy"],0),ve(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,o):t[0]=parseInt(e,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),pn("gggg","weekYear"),pn("ggggg","weekYear"),pn("GGGG","isoWeekYear"),pn("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),he("G",le),he("g",le),he("GG",re,J),he("gg",re,J),he("GGGG",se,te),he("gggg",se,te),he("GGGGG",ce,ne),he("ggggg",ce,ne),_e(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=V(e)})),_e(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),B("quarter","Q"),W("quarter",7),he("Q",X),ve("Q",(function(e,t){t[1]=3*(V(e)-1)})),I("D",["DD",2],"Do","date"),B("date","D"),W("date",9),he("D",re),he("DD",re,J),he("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ve(["D","DD"],2),ve("Do",(function(e,t){t[2]=V(e.match(re)[0])}));var mn=Q("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),W("dayOfYear",4),he("DDD",ie),he("DDDD",ee),ve(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=V(e)})),I("m",["mm",2],0,"minute"),B("minute","m"),W("minute",14),he("m",re),he("mm",re,J),ve(["m","mm"],4);var yn=Q("Minutes",!1);I("s",["ss",2],0,"second"),B("second","s"),W("second",15),he("s",re),he("ss",re,J),ve(["s","ss"],5);var gn,vn,_n=Q("Seconds",!1);for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),B("millisecond","ms"),W("millisecond",16),he("S",ie,X),he("SS",ie,J),he("SSS",ie,ee),gn="SSSS";gn.length<=9;gn+="S")he(gn,ue);function bn(e,t){t[6]=V(1e3*("0."+e))}for(gn="S";gn.length<=9;gn+="S")ve(gn,bn);vn=Q("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var wn=w.prototype;function En(e){return e}wn.add=Vt,wn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Zt(arguments[0])?(e=arguments[0],t=void 0):Kt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ct(),r=Dt(n,this).startOf("day"),a=o.calendarFormat(this,r)||"sameElse",i=t&&(O(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,Ct(n)))},wn.clone=function(){return new w(this)},wn.diff=function(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=Dt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=U(t)){case"year":a=Xt(this,r)/12;break;case"month":a=Xt(this,r);break;case"quarter":a=Xt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:G(a)},wn.endOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?un:cn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=on-sn(t+(this._isUTC?0:this.utcOffset()*rn),on)-1;break;case"minute":t=this._d.valueOf(),t+=rn-sn(t,rn)-1;break;case"second":t=this._d.valueOf(),t+=nn-sn(t,nn)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},wn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=D(this,e);return this.localeData().postformat(t)},wn.from=function(e,t){return this.isValid()&&(E(e)&&e.isValid()||Ct(e).isValid())?Ft({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.fromNow=function(e){return this.from(Ct(),e)},wn.to=function(e,t){return this.isValid()&&(E(e)&&e.isValid()||Ct(e).isValid())?Ft({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.toNow=function(e){return this.to(Ct(),e)},wn.get=function(e){return O(this[e=U(e)])?this[e]():this},wn.invalidAt=function(){return m(this).overflow},wn.isAfter=function(e,t){var n=E(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},wn.isBefore=function(e,t){var n=E(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},wn.isBetween=function(e,t,n,r){var o=E(e)?e:Ct(e),a=E(t)?t:Ct(t);return!!(this.isValid()&&o.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))},wn.isSame=function(e,t){var n,r=E(e)?e:Ct(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=U(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},wn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},wn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},wn.isValid=function(){return y(this)},wn.lang=en,wn.locale=Jt,wn.localeData=tn,wn.max=Ot,wn.min=Nt,wn.parsingFlags=function(){return d({},m(this))},wn.set=function(e,t){if("object"==typeof e){var n,r=function(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:Y[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=F(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(O(this[e=U(e)]))return this[e](t);return this},wn.startOf=function(e){var t,n;if(void 0===(e=U(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?un:cn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=sn(t+(this._isUTC?0:this.utcOffset()*rn),on);break;case"minute":t=this._d.valueOf(),t-=sn(t,rn);break;case"second":t=this._d.valueOf(),t-=sn(t,nn)}return this._d.setTime(t),o.updateOffset(this,!0),this},wn.subtract=Qt,wn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},wn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},wn.toDate=function(){return new Date(this.valueOf())},wn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?D(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",D(n,"Z")):D(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},wn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(wn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),wn.toJSON=function(){return this.isValid()?this.toISOString():null},wn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},wn.unix=function(){return Math.floor(this.valueOf()/1e3)},wn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},wn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},wn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""},wn.eraNarrow=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""},wn.eraAbbr=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""},wn.eraYear=function(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-o(a[e].since).year())*n+a[e].offset;return this.year()},wn.year=Ae,wn.isLeapYear=function(){return H(this.year())},wn.weekYear=function(e){return dn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},wn.isoWeekYear=function(e){return dn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},wn.quarter=wn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},wn.month=ze,wn.daysInMonth=function(){return Ee(this.year(),this.month())},wn.week=wn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},wn.isoWeek=wn.isoWeeks=function(e){var t=je(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},wn.weeksInYear=function(){var e=this.localeData()._week;return Le(this.year(),e.dow,e.doy)},wn.weeksInWeekYear=function(){var e=this.localeData()._week;return Le(this.weekYear(),e.dow,e.doy)},wn.isoWeeksInYear=function(){return Le(this.year(),1,4)},wn.isoWeeksInISOWeekYear=function(){return Le(this.isoWeekYear(),1,4)},wn.date=mn,wn.day=wn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},wn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},wn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},wn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},wn.hour=wn.hours=Xe,wn.minute=wn.minutes=yn,wn.second=wn.seconds=_n,wn.millisecond=wn.milliseconds=vn,wn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=It(pe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=jt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Gt(this,Ft(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:jt(this)},wn.utc=function(e){return this.utcOffset(0,e)},wn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jt(this),"m")),this},wn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=It(fe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},wn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ct(e).utcOffset():0,(this.utcOffset()-e)%60==0)},wn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},wn.isLocal=function(){return!!this.isValid()&&!this._isUTC},wn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},wn.isUtc=Lt,wn.isUTC=Lt,wn.zoneAbbr=function(){return this._isUTC?"UTC":""},wn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},wn.dates=S("dates accessor is deprecated. Use date instead.",mn),wn.months=S("months accessor is deprecated. Use month instead",ze),wn.years=S("years accessor is deprecated. Use year instead",Ae),wn.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),wn.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=St(t))._a?(e=t._isUTC?h(t._a):Ct(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&V(e[r])!==V(t[r]))&&i++;return i+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var kn=z.prototype;function Sn(e,t,n,r){var o=ct(),a=h().set(r,t);return o[n](a,e)}function xn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return Sn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=Sn(e,r,n,"month");return o}function Cn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,a=ct(),i=e?a._week.dow:0,s=[];if(null!=n)return Sn(t,(n+i)%7,r,"day");for(o=0;o<7;o++)s[o]=Sn(t,(o+i)%7,r,"day");return s}kn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r},kn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},kn.invalidDate=function(){return this._invalidDate},kn.ordinal=function(e){return this._ordinal.replace("%d",e)},kn.preparse=En,kn.postformat=En,kn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return O(o)?o(e,t,n,r):o.replace(/%d/i,e)},kn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)},kn.set=function(e){var t,n;for(n in e)s(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},kn.eras=function(e,t){var n,r,a,i=this._eras||ct("en")._eras;for(n=0,r=i.length;n<r;++n)switch("string"==typeof i[n].since&&(a=o(i[n].since).startOf("day"),i[n].since=a.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":a=o(i[n].until).startOf("day").valueOf(),i[n].until=a.valueOf()}return i},kn.erasParse=function(e,t,n){var r,o,a,i,s,c=this.eras();for(e=e.toUpperCase(),r=0,o=c.length;r<o;++r)if(a=c[r].name.toUpperCase(),i=c[r].abbr.toUpperCase(),s=c[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return c[r];break;case"NNNN":if(a===e)return c[r];break;case"NNNNN":if(s===e)return c[r]}else if([a,i,s].indexOf(e)>=0)return c[r]},kn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n},kn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||fn.call(this),e?this._erasAbbrRegex:this._erasRegex},kn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||fn.call(this),e?this._erasNameRegex:this._erasRegex},kn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||fn.call(this),e?this._erasNarrowRegex:this._erasRegex},kn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||xe).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},kn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[xe.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},kn.monthsParse=function(e,t,n){var r,o,a;if(this._monthsParseExact)return Oe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},kn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ne),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},kn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Ce),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},kn.week=function(e){return je(e,this._week.dow,this._week.doy).week},kn.firstDayOfYear=function(){return this._week.doy},kn.firstDayOfWeek=function(){return this._week.dow},kn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Be(n,this._week.dow):e?n[e.day()]:n},kn.weekdaysMin=function(e){return!0===e?Be(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},kn.weekdaysShort=function(e){return!0===e?Be(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},kn.weekdaysParse=function(e,t,n){var r,o,a;if(this._weekdaysParseExact)return Ve.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},kn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=We),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},kn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=He),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},kn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ge),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},kn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},kn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===V(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=S("moment.lang is deprecated. Use moment.locale instead.",it),o.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ct);var Nn=Math.abs;function On(e,t,n,r){var o=Ft(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Tn(e){return e<0?Math.floor(e):Math.ceil(e)}function zn(e){return 4800*e/146097}function Pn(e){return 146097*e/4800}function Rn(e){return function(){return this.as(e)}}var An=Rn("ms"),qn=Rn("s"),Mn=Rn("m"),In=Rn("h"),Dn=Rn("d"),jn=Rn("w"),Ln=Rn("M"),Bn=Rn("Q"),Un=Rn("y");function Fn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Yn=Fn("milliseconds"),Wn=Fn("seconds"),Hn=Fn("minutes"),Gn=Fn("hours"),Vn=Fn("days"),Qn=Fn("months"),$n=Fn("years");var Zn=Math.round,Kn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Xn(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Jn=Math.abs;function er(e){return(e>0)-(e<0)||+e}function tr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,a,i,s,c=Jn(this._milliseconds)/1e3,u=Jn(this._days),l=Jn(this._months),f=this.asSeconds();return f?(e=G(c/60),t=G(e/60),c%=60,e%=60,n=G(l/12),l%=12,r=c?c.toFixed(3).replace(/\.?0+$/,""):"",o=f<0?"-":"",a=er(this._months)!==er(f)?"-":"",i=er(this._days)!==er(f)?"-":"",s=er(this._milliseconds)!==er(f)?"-":"",o+"P"+(n?a+n+"Y":"")+(l?a+l+"M":"")+(u?i+u+"D":"")+(t||e||c?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(c?s+r+"S":"")):"P0D"}var nr=Pt.prototype;return nr.isValid=function(){return this._isValid},nr.abs=function(){var e=this._data;return this._milliseconds=Nn(this._milliseconds),this._days=Nn(this._days),this._months=Nn(this._months),e.milliseconds=Nn(e.milliseconds),e.seconds=Nn(e.seconds),e.minutes=Nn(e.minutes),e.hours=Nn(e.hours),e.months=Nn(e.months),e.years=Nn(e.years),this},nr.add=function(e,t){return On(this,e,t,1)},nr.subtract=function(e,t){return On(this,e,t,-1)},nr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=U(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+zn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Pn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},nr.asMilliseconds=An,nr.asSeconds=qn,nr.asMinutes=Mn,nr.asHours=In,nr.asDays=Dn,nr.asWeeks=jn,nr.asMonths=Ln,nr.asQuarters=Bn,nr.asYears=Un,nr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*V(this._months/12):NaN},nr._bubble=function(){var e,t,n,r,o,a=this._milliseconds,i=this._days,s=this._months,c=this._data;return a>=0&&i>=0&&s>=0||a<=0&&i<=0&&s<=0||(a+=864e5*Tn(Pn(s)+i),i=0,s=0),c.milliseconds=a%1e3,e=G(a/1e3),c.seconds=e%60,t=G(e/60),c.minutes=t%60,n=G(t/60),c.hours=n%24,i+=G(n/24),s+=o=G(zn(i)),i-=Tn(Pn(o)),r=G(s/12),s%=12,c.days=i,c.months=s,c.years=r,this},nr.clone=function(){return Ft(this)},nr.get=function(e){return e=U(e),this.isValid()?this[e+"s"]():NaN},nr.milliseconds=Yn,nr.seconds=Wn,nr.minutes=Hn,nr.hours=Gn,nr.days=Vn,nr.
2weeks=function(){return G(this.days()/7)},nr.months=Qn,nr.years=$n,nr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,a=Kn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(a=Object.assign({},Kn,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=function(e,t,n,r){var o=Ft(e).abs(),a=Zn(o.as("s")),i=Zn(o.as("m")),s=Zn(o.as("h")),c=Zn(o.as("d")),u=Zn(o.as("M")),l=Zn(o.as("w")),f=Zn(o.as("y")),p=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||c<=1&&["d"]||c<n.d&&["dd",c];return null!=n.w&&(p=p||l<=1&&["w"]||l<n.w&&["ww",l]),(p=p||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f])[2]=t,p[3]=+e>0,p[4]=r,Xn.apply(null,p)}(this,!o,a,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},nr.toISOString=tr,nr.toString=tr,nr.toJSON=tr,nr.locale=Jt,nr.localeData=tn,nr.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",tr),nr.lang=en,I("X",0,0,"unix"),I("x",0,0,"valueOf"),he("x",le),he("X",/[+-]?\d+(\.\d{1,3})?/),ve("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ve("x",(function(e,t,n){n._d=new Date(V(e))})),o.version="2.29.1",t=Ct,o.fn=wn,o.min=function(){return Tt("isBefore",[].slice.call(arguments,0))},o.max=function(){return Tt("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=h,o.unix=function(e){return Ct(1e3*e)},o.months=function(e,t){return xn(e,t,"months")},o.isDate=f,o.locale=it,o.invalid=g,o.duration=Ft,o.isMoment=E,o.weekdays=function(e,t,n){return Cn(e,t,n,"weekdays")},o.parseZone=function(){return Ct.apply(null,arguments).parseZone()},o.localeData=ct,o.isDuration=Rt,o.monthsShort=function(e,t){return xn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return Cn(e,t,n,"weekdaysMin")},o.defineLocale=st,o.updateLocale=function(e,t){if(null!=t){var n,r,o=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(T(tt[e]._config,t)):(null!=(r=at(e))&&(o=r._config),t=T(o,t),null==r&&(t.abbr=e),(n=new z(t)).parentLocale=tt[e],tt[e]=n),it(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===it()&&it(e)):null!=tt[e]&&delete tt[e]);return tt[e]},o.locales=function(){return x(tt)},o.weekdaysShort=function(e,t,n){return Cn(e,t,n,"weekdaysShort")},o.normalizeUnits=U,o.relativeTimeRounding=function(e){return void 0===e?Zn:"function"==typeof e&&(Zn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Kn[e]&&(void 0===t?Kn[e]:(Kn[e]=t,"s"===e&&(Kn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=wn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()},8628:e=>{var t=1e3,n=60*t,r=60*n,o=24*r;function a(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,i){i=i||{};var s,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var i=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"days":case"day":case"d":return i*o;case"hours":case"hour":case"hrs":case"hr":case"h":return i*r;case"minutes":case"minute":case"mins":case"min":case"m":return i*n;case"seconds":case"second":case"secs":case"sec":case"s":return i*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(e);if("number"===c&&!1===isNaN(e))return i.long?a(s=e,o,"day")||a(s,r,"hour")||a(s,n,"minute")||a(s,t,"second")||s+" ms":function(e){return e>=o?Math.round(e/o)+"d":e>=r?Math.round(e/r)+"h":e>=n?Math.round(e/n)+"m":e>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},2525:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;
2if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,s,c=o(e),u=1;u<arguments.length;u++){for(var l in i=Object(arguments[u]))n.call(i,l)&&(c[l]=i[l]);if(t){s=t(i);for(var f=0;f<s.length;f++)r.call(i,s[f])&&(c[s[f]]=i[s[f]])}}return c}},8370:(e,t)=>{t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,o=n.length;r<o;r++){var a=n[r].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}},5649:e=>{var t=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var r,o,a=e,i=e.indexOf("["),s=e.indexOf("]");-1!=i&&-1!=s&&(e=e.substring(0,i)+e.substring(i,s).replace(/:/g,";")+e.substring(s,e.length));for(var c,u,l=t.exec(e||""),f={},p=14;p--;)f[n[p]]=l[p]||"";return-1!=i&&-1!=s&&(f.source=a,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=(r=f.path,o=r.replace(/\/{2,9}/g,"/").split("/"),"/"!=r.substr(0,1)&&0!==r.length||o.splice(0,1),"/"==r.substr(r.length-1,1)&&o.splice(o.length-1,1),o),f.queryKey=(c=f.query,u={},c.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(u[t]=n)})),u),f}},4588:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=i(n(7378)),a=i(n(9317));function i(e){return e&&e.__esModule?e:{default:e}}t.default=(0,a.default)((function(e,t,n,a,i){var s=e[t],c=void 0===s?"undefined":r(s);return o.default.isValidElement(s)?new Error("Invalid "+a+" `"+i+"` of type ReactElement supplied to `"+n+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===c&&"function"==typeof s.render||1===s.nodeType?null:new Error("Invalid "+a+" `"+i+"` of value `"+s+"` supplied to `"+n+"`, expected a ReactComponent or a DOMElement.")})),e.exports=t.default},2123:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r,o=(r=n(7633))&&r.__esModule?r:{default:r},a={};function i(e,t){return function(n,r,i,s,c){var u=i||"<<anonymous>>",l=c||r;if(null!=n[r]){var f=i+"."+r;(0,o.default)(a[f],"The "+s+" `"+l+"` of `"+u+"` is deprecated. "+t+"."),a[f]=!0}for(var p=arguments.length,d=Array(p>5?p-5:0),h=5;h<p;h++)d[h-5]=arguments[h];return e.apply(void 0,[n,r,i,s,c].concat(d))}}i._resetWarned=function(){a={}},e.exports=t.default},2894:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(7378)),o=n(9185),a=i(n(9317));function i(e){return e&&e.__esModule?e:{default:e}}t.default=(0,a.default)((function(e,t,n,a,i){var s=e[t];return r.default.isValidElement(s)?new Error("Invalid "+a+" `"+i+"` of type ReactElement supplied to `"+n+"`,expected an element type (a string , component class, or function component)."):(0,o.isValidElementType)(s)?null:new Error("Invalid "+a+" `"+i+"` of value `"+s+"` supplied to `"+n+"`, expected an element type (a string , component class, or function component).")})),e.exports=t.default},9317:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,r,o,a,i){var s=o||"<<anonymous>>",c=i||r;if(null==n[r])return t?new Error("Required "+a+" `"+c+"` was not specified in `"+s+"`."):null;for(var u=arguments.length,l=Array(u>6?u-6:0),f=6;f<u;f++)l[f-6]=arguments[f];return e.apply(void 0,[n,r,s,a,c].concat(l))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},e.exports=t.default},7633:e=>{"use strict";e.exports=function(){}}
2,8772:(e,t,n)=>{"use strict";var r=n(331);function o(){}e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},3615:(e,t,n)=>{e.exports=n(8772)()},331:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4290:(e,t,n)=>{"use strict";t.__esModule=!0;var r=c(n(9343)),o=c(n(7306)),a=c(n(6653)),i=c(n(3615)),s=c(n(7378));function c(e){return e&&e.__esModule?e:{default:e}}var u={label:i.default.string.isRequired,onClick:i.default.func},l=function(e){function t(){return(0,r.default)(this,t),(0,o.default)(this,e.apply(this,arguments))}return(0,a.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.onClick;return s.default.createElement("button",{type:"button",className:"close",onClick:n},s.default.createElement("span",{"aria-hidden":"true"},"Ã"),s.default.createElement("span",{className:"sr-only"},t))},t}(s.default.Component);l.propTypes=u,l.defaultProps={label:"Close"},t.default=l,e.exports=t.default},8137:(e,t,n)=>{"use strict";t.__esModule=!0;var r,o=h(n(241)),a=h(n(749)),i=h(n(9343)),s=h(n(7306)),c=h(n(6653)),u=h(n(42)),l=h(n(7378)),f=h(n(3615)),p=n(8461),d=h(p);function h(e){return e&&e.__esModule?e:{default:e}}var m={in:f.default.bool,mountOnEnter:f.default.bool,unmountOnExit:f.default.bool,appear:f.default.bool,timeout:f.default.number,onEnter:f.default.func,onEntering:f.default.func,onEntered:f.default.func,onExit:f.default.func,onExiting:f.default.func,onExited:f.default.func},y=((r={})[p.ENTERING]="in",r[p.ENTERED]="in",r),g=function(e){function t(){return(0,i.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,c.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,r=(0,a.default)(e,["className","children"]);return l.default.createElement(d.default,r,(function(e,r){return l.default.cloneElement(n,(0,o.default)({},r,{className:(0,u.default)("fade",t,n.props.className,y[e])}))}))},t}(l.default.Component);g.propTypes=m,g.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},t.default=g,e.exports=t.default},1650:(e,t,n)=>{"use strict";t.__esModule=!0;var r=T(n(749)),o=T(n(9343)),a=T(n(7306)),i=T(n(6653)),s=T(n(241)),c=T(n(42)),u=T(n(7608)),l=T(n(144)),f=T(n(2810)),p=T(n(4857)),d=T(n(7378)),h=T(n(3615)),m=T(n(1542)),y=T(n(7288)),g=T(n(1011)),v=T(n(2894)),_=T(n(8137)),b=T(n(6232)),w=T(n(2706)),E=T(n(2652)),k=T(n(4809)),S=T(n(253)),x=n(3666),C=T(n(6270)),N=T(n(4781)),O=n(3565);function T(e){return e&&e.__esModule?e:{default:e}}var z=(0,s.default)({},y.default.propTypes,w.default.propTypes,{backdrop:h.default.oneOf(["static",!0,!1]),backdropClassName:h.default.string,keyboard:h.default.bool,animation:h.default.bool,dialogComponentClass:v.default,autoFocus:h.default.bool,enforceFocus:h.default.bool,restoreFocus:h.default.bool,show:h.default.bool,onHide:h.default.func,onEnter:h.default.func,onEntering:h.default.func,onEntered:h.default.func,onExit:h.default.func,onExiting:h.default.func,onExited:h.default.func,container:y.default.propTypes.container}),P=(0,s.default)({},y.default.defaultProps,{animation:!0,dialogComponentClass:w.default}),R={$bs_modal:h.default.shape({onHide:h.default.func})};function A(e){return d.default.createElement(_.default,(0,s.default)({},e,{timeout:M.TRANSITION_DURATION}))}function q(e){return d.default.createElement(_.default,(0,s.default)({},e,{timeout:M.BACKDROP_TRANSITION_DURATION}))}var M=function(e){function t(n,r){(0,o.default)(this,t);var i=(0,a.default)(this,e.call(this,n,r));return i.handleEntering=i.handleEntering.bind(i),i.handleExited=i.handleExited.bind(i),i.handleWindowResize=i.handleWindowResize.bind(i),i.handleDialogClick=i.handleDialogClick.bind(i),i.setModalRef=i.setModalRef.bind(i),i.state={style:{}},i}return(0,i.default)(t,e),t.prototype.getChildContext=function(){return{$bs_modal:{onHide:this.props.onHide}}},t.prototype.componentWillUnmount=function(){this.handleExited()},t.prototype.setModalRef=function(e){this._modal=e},t.prototype.handleDialogClick=function(e){e.target===e.currentTarget&&this.props.onHide()},t.prototype.handleEntering=function(){u.default.on(window,"resize",this.handleWindowResize),this.updateStyle()},t.prototype.handleExited=function(){u.default.off(window,"resize",this.handleWindowResize)},t.prototype.handleWindowResize=function(){this.updateStyle()},t.prototype.updateStyle=function(){if(f.default){var e=this._modal.getDialogElement(),t=e.scrollHeight,n=(0,l.default)(e),r=(0,g.default)(m.default.findDOMNode(this.props.container||n.body)),o=t>n.documentElement.clientHeight;this.setState({style:{paddingRight:r&&!o?(0,p.default)():void 0,paddingLeft:!r&&o?(0,p.default)():void 0}})}},t.prototype.render=function(){var e=this.props,t=e.backdrop,n=e.backdropClassName,o=e.animation,a=e.show,i=e.dialogComponentClass,u=e.className,l=e.style,f=e.children,p=e.onEntering,h=e.onExited,m=(0,r.default)(e,["backdrop","backdropClassName","animation","show","dialogComponentClass","className","style","children","onEntering","onExited"]),g=(0,N.default)(m,y.default),v=g[0],_=g[1],b=a&&!o&&"in";return d.default.createElement(y.default,(0,s.default)({},v,{ref:this.setModalRef,show:a,containerClassName:(0,x.prefix)(m,"open"),transition:o?A:void 0,backdrop:t,backdropTransition:o?q:void 0,backdropClassName:(0,
2c.default)((0,x.prefix)(m,"backdrop"),n,b),onEntering:(0,C.default)(p,this.handleEntering),onExited:(0,C.default)(h,this.handleExited)}),d.default.createElement(i,(0,s.default)({},_,{style:(0,s.default)({},this.state.style,l),className:(0,c.default)(u,b),onClick:!0===t?this.handleDialogClick:null}),f))},t}(d.default.Component);M.propTypes=z,M.defaultProps=P,M.childContextTypes=R,M.Body=b.default,M.Header=k.default,M.Title=S.default,M.Footer=E.default,M.Dialog=w.default,M.TRANSITION_DURATION=300,M.BACKDROP_TRANSITION_DURATION=150,t.default=(0,x.bsClass)("modal",(0,x.bsSizes)([O.Size.LARGE,O.Size.SMALL],M)),e.exports=t.default},6232:(e,t,n)=>{"use strict";t.__esModule=!0;var r=p(n(241)),o=p(n(749)),a=p(n(9343)),i=p(n(7306)),s=p(n(6653)),c=p(n(42)),u=p(n(7378)),l=p(n(2894)),f=n(3666);function p(e){return e&&e.__esModule?e:{default:e}}var d={componentClass:l.default},h=function(e){function t(){return(0,a.default)(this,t),(0,i.default)(this,e.apply(this,arguments))}return(0,s.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,a=(0,o.default)(e,["componentClass","className"]),i=(0,f.splitBsProps)(a),s=i[0],l=i[1],p=(0,f.getClassSet)(s);return u.default.createElement(t,(0,r.default)({},l,{className:(0,c.default)(n,p)}))},t}(u.default.Component);h.propTypes=d,h.defaultProps={componentClass:"div"},t.default=(0,f.bsClass)("modal-body",h),e.exports=t.default},2706:(e,t,n)=>{"use strict";t.__esModule=!0;var r=d(n(241)),o=d(n(749)),a=d(n(9343)),i=d(n(7306)),s=d(n(6653)),c=d(n(42)),u=d(n(7378)),l=d(n(3615)),f=n(3666),p=n(3565);function d(e){return e&&e.__esModule?e:{default:e}}var h={dialogClassName:l.default.string},m=function(e){function t(){return(0,a.default)(this,t),(0,i.default)(this,e.apply(this,arguments))}return(0,s.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.dialogClassName,a=t.className,i=t.style,s=t.children,l=(0,o.default)(t,["dialogClassName","className","style","children"]),p=(0,f.splitBsProps)(l),d=p[0],h=p[1],m=(0,f.prefix)(d),y=(0,r.default)({display:"block"},i),g=(0,r.default)({},(0,f.getClassSet)(d),((e={})[m]=!1,e[(0,f.prefix)(d,"dialog")]=!0,e));return u.default.createElement("div",(0,r.default)({},h,{tabIndex:"-1",role:"dialog",style:y,className:(0,c.default)(a,m)}),u.default.createElement("div",{className:(0,c.default)(n,g)},u.default.createElement("div",{className:(0,f.prefix)(d,"content"),role:"document"},s)))},t}(u.default.Component);m.propTypes=h,t.default=(0,f.bsClass)("modal",(0,f.bsSizes)([p.Size.LARGE,p.Size.SMALL],m)),e.exports=t.default},2652:(e,t,n)=>{"use strict";t.__esModule=!0;var r=p(n(241)),o=p(n(749)),a=p(n(9343)),i=p(n(7306)),s=p(n(6653)),c=p(n(42)),u=p(n(7378)),l=p(n(2894)),f=n(3666);function p(e){return e&&e.__esModule?e:{default:e}}var d={componentClass:l.default},h=function(e){function t(){return(0,a.default)(this,t),(0,i.default)(this,e.apply(this,arguments))}return(0,s.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,a=(0,o.default)(e,["componentClass","className"]),i=(0,f.splitBsProps)(a),s=i[0],l=i[1],p=(0,f.getClassSet)(s);return u.default.createElement(t,(0,r.default)({},l,{className:(0,c.default)(n,p)}))},t}(u.default.Component);h.propTypes=d,h.defaultProps={componentClass:"div"},t.default=(0,f.bsClass)("modal-footer",h),e.exports=t.default},4809:(e,t,n)=>{"use strict";t.__esModule=!0;var r=h(n(241)),o=h(n(749)),a=h(n(9343)),i=h(n(7306)),s=h(n(6653)),c=h(n(42)),u=h(n(3615)),l=h(n(7378)),f=n(3666),p=h(n(6270)),d=h(n(4290));function h(e){return e&&e.__esModule?e:{default:e}}var m={closeLabel:u.default.string,closeButton:u.default.bool,onHide:u.default.func},y={$bs_modal:u.default.shape({onHide:u.default.func})},g=function(e){function t(){return(0,a.default)(this,t),(0,i.default)(this,e.apply(this,arguments))}return(0,s.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.closeLabel,n=e.closeButton,a=e.onHide,i=e.className,s=e.children,u=(0,o.default)(e,["closeLabel","closeButton","onHide","className","children"]),h=this.context.$bs_modal,m=(0,f.splitBsProps)(u),y=m[0],g=m[1],v=(0,f.getClassSet)(y);return l.default.createElement("div",(0,r.default)({}
2,g,{className:(0,c.default)(i,v)}),n&&l.default.createElement(d.default,{label:t,onClick:(0,p.default)(h&&h.onHide,a)}),s)},t}(l.default.Component);g.propTypes=m,g.defaultProps={closeLabel:"Close",closeButton:!1},g.contextTypes=y,t.default=(0,f.bsClass)("modal-header",g),e.exports=t.default},253:(e,t,n)=>{"use strict";t.__esModule=!0;var r=p(n(241)),o=p(n(749)),a=p(n(9343)),i=p(n(7306)),s=p(n(6653)),c=p(n(42)),u=p(n(7378)),l=p(n(2894)),f=n(3666);function p(e){return e&&e.__esModule?e:{default:e}}var d={componentClass:l.default},h=function(e){function t(){return(0,a.default)(this,t),(0,i.default)(this,e.apply(this,arguments))}return(0,s.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,a=(0,o.default)(e,["componentClass","className"]),i=(0,f.splitBsProps)(a),s=i[0],l=i[1],p=(0,f.getClassSet)(s);return u.default.createElement(t,(0,r.default)({},l,{className:(0,c.default)(n,p)}))},t}(u.default.Component);h.propTypes=d,h.defaultProps={componentClass:"h4"},t.default=(0,f.bsClass)("modal-title",h),e.exports=t.default},3565:(e,t)=>{"use strict";t.__esModule=!0,t.Size={LARGE:"large",SMALL:"small",XSMALL:"xsmall"},t.SIZE_MAP={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"},t.DEVICE_SIZES=["lg","md","sm","xs"],t.State={SUCCESS:"success",WARNING:"warning",DANGER:"danger",INFO:"info"},t.Style={DEFAULT:"default",PRIMARY:"primary",LINK:"link",INVERSE:"inverse"}},3666:(e,t,n)=>{"use strict";t.__esModule=!0,t._curry=t.bsSizes=t.bsStyles=t.bsClass=void 0;var r=c(n(5510)),o=c(n(241));t.prefix=l,t.getClassSet=function(e){var t,n=((t={})[l(e)]=!0,t);e.bsSize&&(n[l(e,s.SIZE_MAP[e.bsSize]||e.bsSize)]=!0);return e.bsStyle&&(n[l(e,e.bsStyle)]=!0),n},t.splitBsProps=function(e){var t={};return(0,r.default)(e).forEach((function(e){var n=e[0],r=e[1];d(n)||(t[n]=r)})),[p(e),t]},t.splitBsPropsAndOmit=function(e,t){var n={};t.forEach((function(e){n[e]=!0}));var o={};return(0,r.default)(e).forEach((function(e){var t=e[0],r=e[1];d(t)||n[t]||(o[t]=r)})),[p(e),o]},t.addStyle=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];f(n,e)};var a=c(n(3996)),i=c(n(3615)),s=n(3565);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[n.length-1];return"function"==typeof o?e.apply(void 0,n):function(t){return e.apply(void 0,n.concat([t]))}}}function l(e,t){var n=(e.bsClass||"").trim();return null==n&&(0,a.default)(!1),n+(t?"-"+t:"")}t.bsClass=u((function(e,t){var n=t.propTypes||(t.propTypes={}),r=t.defaultProps||(t.defaultProps={});return n.bsClass=i.default.string,r.bsClass=e,t}));var f=t.bsStyles=u((function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);var r=n.STYLES||[],a=n.propTypes||{};e.forEach((function(e){-1===r.indexOf(e)&&r.push(e)}));var s=i.default.oneOf(r);return n.STYLES=r,s._values=r,n.propTypes=(0,o.default)({},a,{bsStyle:s}),void 0!==t&&((n.defaultProps||(n.defaultProps={})).bsStyle=t),n}));function p(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function d(e){return"bsClass"===e||"bsSize"===e||"bsStyle"===e||"bsRole"===e}t.bsSizes=u((function(e,t,n){"string"!=typeof t&&(n=t,t=void 0);var r=n.SIZES||[],a=n.propTypes||{};e.forEach((function(e){-1===r.indexOf(e)&&r.push(e)}));var c=[];r.forEach((function(e){var t=s.SIZE_MAP[e];t&&t!==e&&c.push(t),c.push(e)}));var u=i.default.oneOf(c);return u._values=c,n.SIZES=r,n.propTypes=(0,o.default)({},a,{bsSize:u}),void 0!==t&&(n.defaultProps||(n.defaultProps={}),n.defaultProps.bsSize=t),n})),t._curry=u},6270:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return null!=e})).reduce((function(e,t){if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),null)},e.exports=t.default},4781:(e,t,n)=>{"use strict";t.__esModule=!0;var r,o=(r=n(5510))&&r.__esModule?r:{default:r};t.default=function(e,t){var n=t.propTypes,r={},a={};return(0,o.default)(e).forEach((function(e){var t=e[0],o=e[1];n[t]?r[t]=o:a[t]=o})),[r,a]},e.exports=t.default},8461:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;
2var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(3615)),o=s(n(7378)),a=s(n(1542)),i=n(4829);function s(e){return e&&e.__esModule?e:{default:e}}n(5903);var c="unmounted";t.UNMOUNTED=c;var u="exited";t.EXITED=u;var l="entering";t.ENTERING=l;var f="entered";t.ENTERED=f;var p="exiting";t.EXITING=p;var d=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var o,a=n.transitionGroup,i=a&&!a.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=u,r.appearStatus=l):o=f:o=t.unmountOnExit||t.mountOnEnter?c:u,r.state={status:o},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:u}:null},i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==l&&n!==f&&(t=l):n!==l&&n!==f||(t=p)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=a.default.findDOMNode(this);t===l?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:c})},i.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,a=this.getTimeouts(),i=o?a.appear:a.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:l},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,i,(function(){n.safeSetState({status:f},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:f},(function(){n.props.onEntered(e)}))},i.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:p},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:u},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:u},(function(){t.props.onExited(e)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var a=o.default.Children.only(n);return o.default.cloneElement(a,r)},r}(o.default.Component);function h(){}d.contextTypes={transitionGroup:r.object},d.childContextTypes={transitionGroup:function(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4;var m=(0,i.polyfill)(d);t.default=m},5903:(e,t,n)=>{"use strict";var r;
2t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0,(r=n(3615))&&r.__esModule,t.timeoutsShape=null,t.classNamesShape=null},8702:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case a:case s:case i:case d:return e;default:switch(e=e&&e.$$typeof){case u:case p:case y:case m:case c:return e;default:return t}}case o:return t}}}function E(e){return w(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=d,t.isAsyncMode=function(e){return E(e)||w(e)===l},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===y},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===s||e===i||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===v||e.$$typeof===_||e.$$typeof===b||e.$$typeof===g)},t.typeOf=w},9185:(e,t,n)=>{"use strict";e.exports=n(8702)},4829:(e,t,n)=>{"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function a(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==s){var c=e.displayName||e.name,u="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}
2n.r(t),n.d(t,{polyfill:()=>i}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},2559:(e,t,n)=>{"use strict";t.__esModule=!0;var r=u(n(3615)),o=u(n(4588)),a=u(n(7378)),i=u(n(1542)),s=u(n(7221)),c=u(n(6158));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=function(e){function t(){var n,r;l(this,t);for(var o=arguments.length,u=Array(o),p=0;p<o;p++)u[p]=arguments[p];return n=r=f(this,e.call.apply(e,[this].concat(u))),r._mountOverlayTarget=function(){r._overlayTarget||(r._overlayTarget=document.createElement("div"),r._portalContainerNode=(0,s.default)(r.props.container,(0,c.default)(r).body),r._portalContainerNode.appendChild(r._overlayTarget))},r._unmountOverlayTarget=function(){r._overlayTarget&&(r._portalContainerNode.removeChild(r._overlayTarget),r._overlayTarget=null),r._portalContainerNode=null},r._renderOverlay=function(){var e=r.props.children?a.default.Children.only(r.props.children):null;if(null!==e){r._mountOverlayTarget();var t=!r._overlayInstance;r._overlayInstance=i.default.unstable_renderSubtreeIntoContainer(r,e,r._overlayTarget,(function(){t&&r.props.onRendered&&r.props.onRendered()}))}else r._unrenderOverlay(),r._unmountOverlayTarget()},r._unrenderOverlay=function(){r._overlayTarget&&(i.default.unmountComponentAtNode(r._overlayTarget),r._overlayInstance=null)},r.getMountNode=function(){return r._overlayTarget},f(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._isMounted=!0,this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.componentWillReceiveProps=function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,s.default)(e.container,(0,c.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._unrenderOverlay(),this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(a.default.Component);p.displayName="Portal",p.propTypes={container:r.default.oneOfType([o.default,r.default.func]),onRendered:r.default.func},t.default=p,e.exports=t.default},7288:(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=E(n(9709)),a=E(n(4702)),i=E(n(2810)),s=E(n(3615)),c=E(n(4588)),u=E(n(2123)),l=E(n(2894)),f=n(7378),p=E(f),d=E(n(1542)),h=E(n(1810)),m=E(n(5016)),y=E(n(9440)),g=E(n(9680)),v=E(n(8705)),_=E(n(9758)),b=E(n(7221)),w=E(n(6158));function E(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var x=new m.default,C=function(e){function t(){var n,r;k(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=S(this,e.call.apply(e,[this].concat(a))),N.call(r),S(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.omitProps=function(e,t){var n=Object.keys(e),r={};return n.map((function(n){Object.prototype.hasOwnProperty.call(t,n)||(r[n]=e[n])})),r},t.prototype.render=function(){var e=this.props,n=e.show,o=e.container,a=e.children,i=e.transition,s=e.backdrop,c=e.className,u=e.style,l=e.onExit,d=e.onExiting,h=e.onEnter,m=e.onEntering,v=e.onEntered,_=p.default.Children.only(a),b=this.omitProps(this.props,t.propT
2ypes);if(!(n||i&&!this.state.exited))return null;var w=_.props,E=w.role,k=w.tabIndex;return void 0!==E&&void 0!==k||(_=(0,f.cloneElement)(_,{role:void 0===E?"document":E,tabIndex:null==k?"-1":k})),i&&(_=p.default.createElement(i,{appear:!0,unmountOnExit:!0,in:n,onExit:l,onExiting:d,onExited:this.handleHidden,onEnter:h,onEntering:m,onEntered:v},_)),p.default.createElement(y.default,{ref:this.setMountNode,container:o,onRendered:this.onPortalRendered},p.default.createElement("div",r({ref:this.setModalNodeRef,role:E||"dialog"},b,{style:u,className:c}),s&&this.renderBackdrop(),p.default.createElement(g.default,{ref:this.setDialogRef},_)))},t.prototype.componentWillReceiveProps=function(e){e.show?this.setState({exited:!1}):e.transition||this.setState({exited:!0})},t.prototype.componentWillUpdate=function(e){!this.props.show&&e.show&&this.checkForFocus()},t.prototype.componentDidMount=function(){this._isMounted=!0,this.props.show&&this.onShow()},t.prototype.componentDidUpdate=function(e){var t=this.props.transition;!e.show||this.props.show||t?!e.show&&this.props.show&&this.onShow():this.onHide()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.show,n=e.transition;this._isMounted=!1,(t||n&&!this.state.exited)&&this.onHide()},t.prototype.autoFocus=function(){if(this.props.autoFocus){var e=this.getDialogElement(),t=(0,o.default)((0,w.default)(this));e&&!(0,a.default)(e,t)&&(this.lastFocus=t,e.hasAttribute("tabIndex")||((0,h.default)(!1,'The modal content node does not accept focus. For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'),e.setAttribute("tabIndex",-1)),e.focus())}},t.prototype.restoreLastFocus=function(){this.lastFocus&&this.lastFocus.focus&&(this.lastFocus.focus(),this.lastFocus=null)},t.prototype.getDialogElement=function(){return d.default.findDOMNode(this.dialog)},t.prototype.isTopModal=function(){return this.props.manager.isTopModal(this)},t}(p.default.Component);C.propTypes=r({},y.default.propTypes,{show:s.default.bool,container:s.default.oneOfType([c.default,s.default.func]),onShow:s.default.func,onHide:s.default.func,backdrop:s.default.oneOfType([s.default.bool,s.default.oneOf(["static"])]),renderBackdrop:s.default.func,onEscapeKeyDown:s.default.func,onEscapeKeyUp:(0,u.default)(s.default.func,"Please use onEscapeKeyDown instead for consistency"),onBackdropClick:s.default.func,backdropStyle:s.default.object,backdropClassName:s.default.string,containerClassName:s.default.string,keyboard:s.default.bool,transition:l.default,backdropTransition:l.default,autoFocus:s.default.bool,enforceFocus:s.default.bool,restoreFocus:s.default.bool,onEnter:s.default.func,onEntering:s.default.func,onEntered:s.default.func,onExit:s.default.func,onExiting:s.default.func,onExited:s.default.func,manager:s.default.object.isRequired}
2),C.defaultProps={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,onHide:function(){},manager:x,renderBackdrop:function(e){return p.default.createElement("div",e)}};var N=function(){var e=this;this.state={exited:!this.props.show},this.renderBackdrop=function(){var t=e.props,n=t.backdropStyle,r=t.backdropClassName,o=t.renderBackdrop,a=t.backdropTransition,i=o({ref:function(t){return e.backdrop=t},style:n,className:r,onClick:e.handleBackdropClick});return a&&(i=p.default.createElement(a,{appear:!0,in:e.props.show},i)),i},this.onPortalRendered=function(){e.autoFocus(),e.props.onShow&&e.props.onShow()},this.onShow=function(){var t=(0,w.default)(e),n=(0,b.default)(e.props.container,t.body);e.props.manager.add(e,n,e.props.containerClassName),e._onDocumentKeydownListener=(0,v.default)(t,"keydown",e.handleDocumentKeyDown),e._onDocumentKeyupListener=(0,v.default)(t,"keyup",e.handleDocumentKeyUp),e._onFocusinListener=(0,_.default)(e.enforceFocus)},this.onHide=function(){e.props.manager.remove(e),e._onDocumentKeydownListener.remove(),e._onDocumentKeyupListener.remove(),e._onFocusinListener.remove(),e.props.restoreFocus&&e.restoreLastFocus()},this.setMountNode=function(t){e.mountNode=t?t.getMountNode():t},this.setModalNodeRef=function(t){e.modalNode=t},this.setDialogRef=function(t){e.dialog=t},this.handleHidden=function(){var t;e.setState({exited:!0}),e.onHide(),e.props.onExited&&(t=e.props).onExited.apply(t,arguments)},this.handleBackdropClick=function(t){t.target===t.currentTarget&&(e.props.onBackdropClick&&e.props.onBackdropClick(t),!0===e.props.backdrop&&e.props.onHide())},this.handleDocumentKeyDown=function(t){e.props.keyboard&&27===t.keyCode&&e.isTopModal()&&(e.props.onEscapeKeyDown&&e.props.onEscapeKeyDown(t),e.props.onHide())},this.handleDocumentKeyUp=function(t){e.props.keyboard&&27===t.keyCode&&e.isTopModal()&&e.props.onEscapeKeyUp&&e.props.onEscapeKeyUp(t)},this.checkForFocus=function(){i.default&&(e.lastFocus=(0,o.default)())},this.enforceFocus=function(){if(e.props.enforceFocus&&e._isMounted&&e.isTopModal()){var t=e.getDialogElement(),n=(0,o.default)((0,w.default)(e));t&&!(0,a.default)(t,n)&&t.focus()}}};C.Manager=m.default,t.default=C,e.exports=t.default},5016:(e,t,n)=>{"use strict";t.__esModule=!0;var r=c(n(5131)),o=c(n(7164)),a=c(n(4857)),i=c(n(1011)),s=n(5337);function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){return n=function(e){return-1!==e.modals.indexOf(t)},r=-1,e.some((function(e,t){if(n(e))return r=t,!0})),r;var n,r}function f(e,t){var n={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing&&(n.paddingRight=parseInt((0,o.default)(t,"paddingRight")||0,10)+(0,a.default)()+"px"),(0,o.default)(t,n)}function p(e,t){var n=e.style;Object.keys(n).forEach((function(e){return t.style[e]=n[e]}))}t.default=function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.hideSiblingNodes,a=void 0===o||o,c=n.handleContainerOverflow,d=void 0===c||c;u(this,e),this.add=function(e,n,o){var a=t.modals.indexOf(e),c=t.containers.indexOf(n);if(-1!==a)return a;if(a=t.modals.length,t.modals.push(e),t.hideSiblingNodes&&(0,s.hideSiblings)(n,e.mountNode),-1!==c)return t.data[c].modals.push(e),a;var u={modals:[e],classes:o?o.split(/\s+/):[],overflowing:(0,i.default)(n)};return t.handleContainerOverflow&&f(u,n),u.classes.forEach(r.default.addClass.bind(null,n)),t.containers.push(n),t.data.push(u),a},this.remove=function(e){var n=t.modals.indexOf(e);if(-1!==n){var o=l(t.data,e),a=t.data[o],i=t.containers[o];a.modals.splice(a.modals.indexOf(e),1),t.modals.splice(n,1),0===a.modals.length?(a.classes.forEach(r.default.removeClass.bind(null,i)),t.handleContainerOverflow&&p(a,i),t.hideSiblingNodes&&(0,s.showSiblings)(i,e.mountNode),t.containers.splice(o,1),t.data.splice(o,1)):t.hideSiblingNodes&&(0,s.ariaHidden)(!1,a.modals[a.modals.length-1].mountNode)}},this.isTopModal=function(e){return!!t.modals.length&&t.modals[t.modals.length-1]===e},this.hideSiblingNodes=a,this.handleContainerOverflow=d,this.modals=[],this.containers=[],this.data=[]},e.exports=t.default},9440:(e,t,n)=>{"use strict";t.__esModule=!0;var r=l(n(3615)),o=l(n(4588)),a=l(n(7378)),i=l(n(1542)),s=l(n(7221)),c=l(n(6158)),u=l(n(2559));
2function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var n,r;f(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=p(this,e.call.apply(e,[this].concat(a))),r.setContainer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.props;r._portalContainerNode=(0,s.default)(e.container,(0,c.default)(r).body)},r.getMountNode=function(){return r._portalContainerNode},p(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.setContainer(),this.forceUpdate(this.props.onRendered)},t.prototype.componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?i.default.createPortal(this.props.children,this._portalContainerNode):null},t}(a.default.Component);d.displayName="Portal",d.propTypes={container:r.default.oneOfType([o.default,r.default.func]),onRendered:r.default.func},t.default=i.default.createPortal?d:u.default,e.exports=t.default},9680:(e,t,n)=>{"use strict";t.__esModule=!0;var r=a(n(3615)),o=a(n(7378));function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c={children:r.default.node},u=function(e){function t(){return i(this,t),s(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return this.props.children},t}(o.default.Component);u.propTypes=c,t.default=u,e.exports=t.default},8705:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e,t,n,a){return(0,r.default)(e,t,n,a),{remove:function(){(0,o.default)(e,t,n,a)}}};var r=a(n(6061)),o=a(n(2281));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},9758:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t=void 0;return!document.addEventListener?(document.attachEvent("onfocusin",e),t=function(){return document.detachEvent("onfocusin",e)}):(document.addEventListener("focus",e,!0),t=function(){return document.removeEventListener("focus",e,!0)}),{remove:t}},e.exports=t.default},7221:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e="function"==typeof e?e():e,o.default.findDOMNode(e)||t};var r,o=(r=n(1542))&&r.__esModule?r:{default:r};e.exports=t.default},1011:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return(0,r.default)(e)||(t=e)&&"body"===t.tagName.toLowerCase()?function(e){var t=(0,o.default)(e),n=(0,r.default)(t).innerWidth;if(!n){var a=t.documentElement.getBoundingClientRect();n=a.right-Math.abs(a.left)}return t.body.clientWidth<n}(e):e.scrollHeight>e.clientHeight;var t};var r=a(n(7432)),o=a(n(144));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},5337:(e,t)=>{"use strict";t.__esModule=!0,t.ariaHidden=o,t.hideSiblings=function(e,t){r(e,t,(function(e){return o(!0,e)}))},t.showSiblings=function(e,t){r(e,t,(function(e){return o(!1,e)}))};
2var n=["template","script","style"],r=function(e,t,r){t=[].concat(t),[].forEach.call(e.children,(function(e){var o,a,i;-1===t.indexOf(e)&&(a=(o=e).nodeType,i=o.tagName,1===a&&-1===n.indexOf(i.toLowerCase()))&&r(e)}))};function o(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}},6158:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){return(0,o.default)(r.default.findDOMNode(e))};var r=a(n(1542)),o=a(n(144));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},6666:(e,t,n)=>{var r=n(1542),o=n(6826);e.exports=function(e,t){t=t||{offset:0,align:"middle"};var n=r.findDOMNode(e);return null===n?0:o(0,function(e,t,n){var r,o=document.body,a=document.documentElement,i=e.getBoundingClientRect(),s=a.clientHeight,c=Math.max(o.scrollHeight,o.offsetHeight,a.clientHeight,a.scrollHeight,a.offsetHeight);switch(t=t||0,n){case"top":r=i.top;break;case"middle":default:r=i.bottom-s/2-i.height/2;break;case"bottom":r=i.bottom-s}var u=c-s;return Math.min(r+t+window.pageYOffset,u)}(n,t.offset,t.align),t)}},7835:(e,t,n)=>{"use strict";var r,o=(r=n(7378))&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.size,n=void 0===t?"50px":t,r=e.stroke,a=void 0===r?"3px":r,i=e.color,s=function(e,t,n){return{inner:{animation:"spin 0.5s linear infinite",height:e,width:e,border:t+" solid transparent",borderTopColor:n,borderRadius:"100%",boxSizing:"border-box"},outer:{height:"100%",width:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center"}}}(n,a,void 0===i?"#000":i);return o.default.createElement("div",{style:s.outer},o.default.createElement("div",{style:s.inner}),o.default.createElement("style",{dangerouslySetInnerHTML:{__html:"@keyframes spin { 0% { transform: rotate(0deg) } 100% { transform: rotate(360deg) }}"}}))}},2146:(e,t,n)=>{"use strict";var r=n(3651);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},4682:(e,t,n)=>{e.exports=n(2146)()},3651:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6415:(e,t,n)=>{"use strict";var r=n(2370).qC;t.Uo=function(){if(0!==arguments.length)return"object"==typeof arguments[0]?r:r.apply(null,arguments)}},3323:(e,t)=>{"use strict";var n,r,o,a,i;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,u=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(u,0),e}},l=Date.now();t.unstable_now=function(){return Date.now()-l},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(u,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},a=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,p=window.Date,d=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var y=p.now();t.unstable_now=function(){return p.now()-y}}var g=!1,v=null,_=-1,b=5,w=0;a=function(){return t.unstable_now()>=w},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):b=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,k=E.port2;E.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();w=e+b;try{v(!0,e)?k.postMessage(null):(g=!1,v=null)}catch(e){throw k.postMessage(null),e}}else g=!1},n=function(e){v=e,g||(g=!0,k.postMessage(null))},r=function(e,n){_=d((function(){e(t.unstable_now())}),n)},o=function(){h(_),_=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<N(o,t)))break e;e[r]=t,e[n]=o,n=r}}function x(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var a=2*(r+1)-1,i=e[a],s=a+1,c=e[s];if(void 0!==i&&0>N(i,n))void 0!==c&&0>N(c,i)?(e[r]=c,e[s]=n,r=s):(e[r]=i,e[a]=n,r=a);else{if(!(void 0!==c&&0>N(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function N(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],T=[],z=1,P=null,R=3,A=!1,q=!1,M=!1;function I(e){for(var t=x(T);null!==t;){if(null===t.callback)C(T);else{if(!(t.startTime<=e))break;C(T),t.sortIndex=t.expirationTime,S(O,t)}t=x(T)}}function D(e){if(M=!1,I(e),!q)if(null!==x(O))q=!0,n(j);else{var t=x(T);null!==t&&r(D,t.startTime-e)}}function j(e,n){q=!1,M&&(M=!1,o()),A=!0;var i=R;try{for(I(n),P=x(O);null!==P&&(!(P.expirationTime>n)||e&&!a());){var s=P.callback;if(null!==s){P.callback=null,R=P.priorityLevel;var c=s(P.expirationTime<=n);n=t.unstable_now(),"function"==typeof c?P.callback=c:P===x(O)&&C(O),I(n)}else C(O);P=x(O)}if(null!==P)var u=!0;else{var l=x(T);null!==l&&r(D,l.startTime-n),u=!1}return u}finally{P=null,R=i,A=!1}}function L(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){q||A||(q=!0,n(j))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return x(O)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,a,i){var s=t.unstable_now();if("object"==typeof i&&null!==i){var c=i.delay;c="number"==typeof c&&0<c?s+c:s,i="number"==typeof i.timeout?i.timeout:L(e)}else i=L(e),c=s;return e={id:z++,callback:a,priorityLevel:e,startTime:c,expirationTime:i=c+i,sortIndex:-1},c>s?(e.sortIndex=c,S(T,e),null===x(O)&&e===x(T)&&(M?o():M=!0,r(D,c-s))):(e.sortIndex=i,S(O,e),q||A||(q=!0,n(j))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();I(e);var n=x(O);return n!==P&&null!==P&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<P.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}}
2,1102:(e,t,n)=>{"use strict";e.exports=n(3323)},6826:(e,t,n)=>{var r=n(5e3),o=n(1064);e.exports=function(e,t,n){n=n||{};var a={top:window.pageYOffset||document.documentElement.scrollTop,left:window.pageXOffset||document.documentElement.scrollLeft},i=r(a).ease(n.ease||"out-circ").to({top:t,left:e}).duration(n.duration||1e3);function s(){o(s),i.update()}return i.update((function(e){window.scrollTo(0|e.left,0|e.top)})),i.on("end",(function(){s=function(){}})),s(),i}},9923:(e,t,n)=>{var r=n(8725),o=n(9607),a=n(4592),i=n(6292)("socket.io-client");e.exports=t=c;var s=t.managers={};function c(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,o=r(e),c=o.source,u=o.id,l=o.path,f=s[u]&&l in s[u].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||f?(i("ignoring socket cache for %s",c),n=a(c,t)):(s[u]||(i("new io instance for %s",c),s[u]=a(c,t)),n=s[u]),o.query&&!t.query&&(t.query=o.query),n.socket(o.path,t)}t.protocol=o.protocol,t.connect=c,t.Manager=n(4592),t.Socket=n(6367)},4592:(e,t,n)=>{var r=n(6306),o=n(6367),a=n(1310),i=n(9607),s=n(4076),c=n(4244),u=n(6292)("socket.io-client:manager"),l=n(9560),f=n(2307),p=Object.prototype.hasOwnProperty;function d(e,t){if(!(this instanceof d))return new d(e,t);e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new f({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=t.parser||i;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}e.exports=d,d.prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)p.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},d.prototype.updateSocketIds=function(){for(var e in this.nsps)p.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},d.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},a(d.prototype),d.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},d.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},d.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},d.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},d.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},d.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},d.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},d.prototype.open=d.prototype.connect=function(e,t){if(u("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;u("opening %s",this.uri),this.engine=r(this.uri,this.opts);var n=this.engine,o=this;this.readyState="opening",this.skipReconnect=!1;var a=s(n,"open",(function(){o.onopen(),e&&e()})),i=s(n,"error",(function(t){if(u("connect_error"),o.cleanup(),o.readyState="closed",o.emitAll("connect_error",t),e){var n=new Error("Connection error");n.data=t,e(n)}else o.maybeReconnectOnOpen()}));if(!1!==this._timeout){var c=this._timeout;u("connect attempt will timeout after %d",c),0===c&&a.destroy();var l=setTimeout((function(){u("connect attempt timed out after %d",c),a.destroy(),n.close(),n.emit("error","timeout"),o.emitAll("connect_timeout",c)}),c);this.subs.push({destroy:function(){clearTimeout(l)}})}return this.subs.push(a),this.subs.push(i),this},d.prototype.onopen=function(){u("open"),this.cleanup(),this.readyState="open",this.emit
2("open");var e=this.engine;this.subs.push(s(e,"data",c(this,"ondata"))),this.subs.push(s(e,"ping",c(this,"onping"))),this.subs.push(s(e,"pong",c(this,"onpong"))),this.subs.push(s(e,"error",c(this,"onerror"))),this.subs.push(s(e,"close",c(this,"onclose"))),this.subs.push(s(this.decoder,"decoded",c(this,"ondecoded")))},d.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},d.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},d.prototype.ondata=function(e){this.decoder.add(e)},d.prototype.ondecoded=function(e){this.emit("packet",e)},d.prototype.onerror=function(e){u("error",e),this.emitAll("error",e)},d.prototype.socket=function(e,t){var n=this.nsps[e];if(!n){n=new o(this,e,t),this.nsps[e]=n;var r=this;n.on("connecting",a),n.on("connect",(function(){n.id=r.generateId(e)})),this.autoConnect&&a()}function a(){~l(r.connecting,n)||r.connecting.push(n)}return n},d.prototype.destroy=function(e){var t=l(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},d.prototype.packet=function(e){u("writing packet %j",e);var t=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,(function(n){for(var r=0;r<n.length;r++)t.engine.write(n[r],e.options);t.encoding=!1,t.processPacketQueue()})))},d.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},d.prototype.cleanup=function(){u("cleanup");for(var e=this.subs.length,t=0;t<e;t++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},d.prototype.close=d.prototype.disconnect=function(){u("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},d.prototype.onclose=function(e){u("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},d.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)u("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();u("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout((function(){e.skipReconnect||(u("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open((function(t){t?(u("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(u("reconnect success"),e.onreconnect())})))}),t);this.subs.push({destroy:function(){clearTimeout(n)}})}},d.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},4076:e=>{e.exports=function(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}},6367:(e,t,n)=>{var r=n(9607),o=n(1310),a=n(6274),i=n(4076),s=n(4244),c=n(6292)("socket.io-client:socket"),u=n(8370),l=n(4579);e.exports=d;var f={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=o.prototype.emit;function d(e,t,n){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}o(d.prototype),d.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[i(e,"open",s(this,"onopen")),i(e,"packet",s(this,"onpacket")),i(e,"close",s(this,"onclose"))]}},d.prototype.open=d.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.reconnecting||this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},d.prototype.send=function(){var e=a(arguments);return e.unshift("message"),this.emit.apply(this,e),this},d.prototype.emit=function(e){if(f.hasOwnProperty(e))return p.apply(this,arguments),this;var t=a(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:l(t))?r.BINARY_EVENT:r.EVENT,data:t,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},d.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},d.prototype.onopen=function(){if(c("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"==typeof this.query?u.encode(this.query):this.query;c("sending connect packet with query %s",e),this.packet({type:r.CONNECT,query:e})}else this.packet({type:r.CONNECT})},d.prototype.onclose=function(e){c("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit
2("disconnect",e)},d.prototype.onpacket=function(e){var t=e.nsp===this.nsp,n=e.type===r.ERROR&&"/"===e.nsp;if(t||n)switch(e.type){case r.CONNECT:this.onconnect();break;case r.EVENT:case r.BINARY_EVENT:this.onevent(e);break;case r.ACK:case r.BINARY_ACK:this.onack(e);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",e.data)}},d.prototype.onevent=function(e){var t=e.data||[];c("emitting event %j",t),null!=e.id&&(c("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?p.apply(this,t):this.receiveBuffer.push(t)},d.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var o=a(arguments);c("sending ack %j",o),t.packet({type:l(o)?r.BINARY_ACK:r.ACK,id:e,data:o})}}},d.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(c("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):c("bad ack %s",e.id)},d.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},d.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)p.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},d.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},d.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},d.prototype.close=d.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},d.prototype.compress=function(e){return this.flags.compress=e,this},d.prototype.binary=function(e){return this.flags.binary=e,this}},8725:(e,t,n)=>{var r=n(5649),o=n(6292)("socket.io-client:url");e.exports=function(e,t){var n=e;t=t||"undefined"!=typeof location&&location,null==e&&(e=t.protocol+"//"+t.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?t.protocol+e:t.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==t?t.protocol+"//"+e:"https://"+e),o("parse %s",e),n=r(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";var a=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+a+":"+n.port,n.href=n.protocol+"://"+a+(t&&t.port===n.port?"":":"+n.port),n}},1310:e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},469:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},8482:(e,t,n)=>{var r=n(469),o=n(3399),a=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===a.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===a.call(File);function c(e,t){if(!e)return e;if(o(e)){var n={_placeholder:!0,num:t.length};return t.push(e),n}if(r(e)){for(var a=new Array(e.length),i=0;i<e.length;i++)a[i]=c(e[i],t);return a}if("object"==typeof e&&!(e instanceof Date)){for(var s in a={},e)a[s]=c(e[s],t);return a}return e}function u(e,t){if(!e)return e;if(e&&e._placeholder)return t[e.num];
2if(r(e))for(var n=0;n<e.length;n++)e[n]=u(e[n],t);else if("object"==typeof e)for(var o in e)e[o]=u(e[o],t);return e}t.deconstructPacket=function(e){var t=[],n=e.data,r=e;return r.data=c(n,t),r.attachments=t.length,{packet:r,buffers:t}},t.reconstructPacket=function(e,t){return e.data=u(e.data,t),e.attachments=void 0,e},t.removeBlobs=function(e,t){var n=0,a=e;!function e(c,u,l){if(!c)return c;if(i&&c instanceof Blob||s&&c instanceof File){n++;var f=new FileReader;f.onload=function(){l?l[u]=this.result:a=this.result,--n||t(a)},f.readAsArrayBuffer(c)}else if(r(c))for(var p=0;p<c.length;p++)e(c[p],p,c);else if("object"==typeof c&&!o(c))for(var d in c)e(c[d],d,c)}(a),n||t(a)}},9607:(e,t,n)=>{var r=n(6292)("socket.io-parser"),o=n(1310),a=n(8482),i=n(469),s=n(3399);function c(){}t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=c,t.Decoder=f;var u=t.ERROR+'"encode error"';function l(e){var n=""+e.type;if(t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data){var o=function(e){try{return JSON.stringify(e)}catch(e){return!1}}(e.data);if(!1===o)return u;n+=o}return r("encoded %j as %s",e,n),n}function f(){this.reconstructor=null}function p(e){this.reconPack=e,this.buffers=[]}function d(e){return{type:t.ERROR,data:"parser error: "+e}}c.prototype.encode=function(e,n){r("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type?function(e,t){a.removeBlobs(e,(function(e){var n=a.deconstructPacket(e),r=l(n.packet),o=n.buffers;o.unshift(r),t(o)}))}(e,n):n([l(e)])},o(f.prototype),f.prototype.add=function(e){var n;if("string"==typeof e)n=function(e){var n=0,o={type:Number(e.charAt(0))};if(null==t.types[o.type])return d("unknown packet type "+o.type);if(t.BINARY_EVENT===o.type||t.BINARY_ACK===o.type){for(var a=n+1;"-"!==e.charAt(++n)&&n!=e.length;);var s=e.substring(a,n);if(s!=Number(s)||"-"!==e.charAt(n))throw new Error("Illegal attachments");o.attachments=Number(s)}if("/"===e.charAt(n+1)){for(a=n+1;++n&&","!==(u=e.charAt(n))&&n!==e.length;);o.nsp=e.substring(a,n)}else o.nsp="/";var c=e.charAt(n+1);if(""!==c&&Number(c)==c){for(a=n+1;++n;){var u;if(null==(u=e.charAt(n))||Number(u)!=u){--n;break}if(n===e.length)break}o.id=Number(e.substring(a,n+1))}if(e.charAt(++n)){var l=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(n));if(!1===l||o.type!==t.ERROR&&!i(l))return d("invalid payload");o.data=l}return r("decoded %s as %j",e,o),o}(e),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new p(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!s(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},f.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},p.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=a.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},p.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},3399:e=>{e.exports=function(e){return t&&Buffer.isBuffer(e)||n&&(e instanceof ArrayBuffer||function(e){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer}(e))};var t="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,n="function"==typeof ArrayBuffer},5081:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r}),e=n.hmd(e);const r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)},6274:e=>{e.exports=function(e,t){for(var n=[],r=(t=t||0)||0;r<e.length;r++)n[r-t]=e[r];return n}},1810:e=>{"use strict";e.exports=function(){}},327:e=>{"use strict";var t,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),r={},o=0,a=0;function i(e){var t="";do{t=n[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function s(){var e=i(+new Date);return e!==t?(o=0,t=e):e+"."+i(o++)}for(;a<64;a++)r[n[a]]=a;s.encode=i,s.decode=function(e){var t=0;for(a=0;a<e.length;a++)t=64*t+r[e.charAt(a)];return t},e.exports=s},7101:()=>{},3203:e=>
vendor: 4,711 bytes, line 2
2{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},1337:(e,t,n)=>{var r=n(7501).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,a=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),i=new C(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=k(i,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=p(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var d={};function h(){}function m(){}function y(){}var g={};l(g,s,(function(){return this}));var v=Object.getPrototypeOf,_=v&&v(v(N([])));_&&_!==n&&a.call(_,s)&&(g=_);var b=y.prototype=h.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,s,c){var u=p(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==r(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;this._invoke=function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=p(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function N(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:O}}function O(){return{value:void 0,done:!0}}return m.prototype=y,l(b,"constructor",y),l(y,"constructor",m),m.displayName=l(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},w(E.prototype),l(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new E(f(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(b),l(b,u,"Generator"),l(b,s,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=N,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
2h(x),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},7501:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},824:(e,t,n)=>{var r=n(1337)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},7169:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},5773:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},3219:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(6983);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},808:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},6983:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})},7067:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});const r="object"==typeof global&&global&&global.Object===Object&&global;var o="object"==typeof self&&self&&self.Object===Object&&self;const a=(r||o||Function("return this")()).Symbol;var i=Object.prototype,s=i.hasOwnProperty,c=i.toString,u=a?a.toStringTag:void 0;var l=Object.prototype.toString;var f=a?a.toStringTag:void 0;const p=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":f&&f in Object(e)?function(e){var t=s.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=c.call(e);return r&&(t?e[u]=n:delete e[u]),o}(e):function(e){return l.call(e)}(e)},d=(h=Object.getPrototypeOf,m=Object,function(e){return h(m(e))});var h,m;var y=Function.prototype,g=Object.prototype,v=y.toString,_=g.hasOwnProperty,b=v.call(Object);const w=function(e){if(!function(e){return null!=e&&"object"==typeof e}(e)||"[object Object]"!=p(e))return!1;var t=d(e);if(null===t)return!0;var n=_.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&v.call(n)==b}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.m=t,e=[],r.O=(t,n,o,a)=>
2{if(!n){var i=1/0;for(l=0;l<e.length;l++){for(var[n,o,a]=e[l],s=!0,c=0;c<n.length;c++)(!1&a||i>=a)&&Object.keys(r.O).every((e=>r.O[e](n[c])))?n.splice(c--,1):(s=!1,a<i&&(i=a));if(s){e.splice(l--,1);var u=o();void 0!==u&&(t=u)}}return t}a=a||0;for(var l=e.length;l>0&&e[l-1][2]>a;l--)e[l]=e[l-1];e[l]=[n,o,a]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={166:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,a,[i,s,c]=n,u=0;if(i.some((t=>0!==e[t]))){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);if(c)var l=c(r)}for(t&&t(n);u<i.length;u++)a=i[u],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(l)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=r.O(void 0,[736],(()=>r(5717)));o=r.O(o)})();
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.