@bygd/gd-sdk-pes 1.41.17 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- !function(){"use strict";function e(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function t(t){return function(){var r=this,n=arguments;return new Promise((function(i,o){var a=t.apply(r,n);function s(t){e(a,i,o,s,u,"next",t)}function u(t){e(a,i,o,s,u,"throw",t)}s(void 0)}))}}function r(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}function n(e){return n="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},n(e)}var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var s={exports:{}},u={exports:{}};!function(e){function t(r){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(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(u),function(e){var t=u.exports.default;function r(){e.exports=r=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var n={},i=Object.prototype,o=i.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),s=new R(n||[]);return a(o,"_invoke",{value:k(e,r,s)}),o}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var h={};function m(){}function v(){}function g(){}var A={};l(A,u,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(I([])));y&&y!==i&&o.call(y,u)&&(A=y);var _=g.prototype=m.prototype=Object.create(A);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,r){function n(i,a,s,u){var c=p(e[i],e,a);if("throw"!==c.type){var d=c.arg,l=d.value;return l&&"object"==t(l)&&o.call(l,"__await")?r.resolve(l.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):r.resolve(l).then((function(e){d.value=e,s(d)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var i;a(this,"_invoke",{value:function(e,t){function o(){return new r((function(r,i){n(e,t,r,i)}))}return i=i?i.then(o,o):o()}})}function k(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return C()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=p(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=p(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var o=i.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,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function I(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:C}}function C(){return{value:void 0,done:!0}}return v.prototype=g,a(_,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:v,configurable:!0}),v.displayName=l(g,d,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,d,"GeneratorFunction")),e.prototype=Object.create(_),e},n.awrap=function(e){return{__await:e}},w(x.prototype),l(x.prototype,c,(function(){return this})),n.AsyncIterator=x,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var a=new x(f(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,d,"Generator"),l(_,u,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},n.values=I,R.prototype={constructor:R,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.forEach(D),!e)for(var t in this)"t"===t.charAt(0)&&o.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 r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},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),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;D(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(s);var c=s.exports(),d=c;try{regeneratorRuntime=c}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=c:Function("r","regeneratorRuntime = r")(c)}var l={},f=Object.prototype.hasOwnProperty;function p(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function h(e){try{return encodeURIComponent(e)}catch(e){return null}}l.stringify=function(e,t){t=t||"";var r,n,i=[];for(n in"string"!=typeof t&&(t="?"),e)if(f.call(e,n)){if((r=e[n])||null!=r&&!isNaN(r)||(r=""),n=h(n),r=h(r),null===n||null===r)continue;i.push(n+"="+r)}return i.length?t+i.join("&"):""},l.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var i=p(t[1]),o=p(t[2]);null===i||null===o||i in n||(n[i]=o)}return n};var m=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e},v=l,g=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,A=/[\n\r\t]/g,b=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,y=/:\d+$/,_=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,w=/^[a-zA-Z]:/;function x(e){return(e||"").toString().replace(g,"")}var k=[["#","hash"],["?","query"],function(e,t){return D(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],E={hash:1,query:1};function S(e){var t,r=("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:{}).location||{},n={},o=typeof(e=e||r);if("blob:"===e.protocol)n=new I(unescape(e.pathname),{});else if("string"===o)for(t in n=new I(e,{}),E)delete n[t];else if("object"===o){for(t in e)t in E||(n[t]=e[t]);void 0===n.slashes&&(n.slashes=b.test(e.href))}return n}function D(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function R(e,t){e=(e=x(e)).replace(A,""),t=t||{};var r,n=_.exec(e),i=n[1]?n[1].toLowerCase():"",o=!!n[2],a=!!n[3],s=0;return o?a?(r=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(r=n[2]+n[4],s=n[2].length):a?(r=n[3]+n[4],s=n[3].length):r=n[4],"file:"===i?s>=2&&(r=r.slice(2)):D(i)?r=n[4]:i?o&&(r=r.slice(2)):s>=2&&D(t.protocol)&&(r=n[4]),{protocol:i,slashes:o||D(i),slashesCount:s,rest:r}}function I(e,t,r){if(e=(e=x(e)).replace(A,""),!(this instanceof I))return new I(e,t,r);var n,i,o,a,s,u,c=k.slice(),d=typeof t,l=this,f=0;for("object"!==d&&"string"!==d&&(r=t,t=null),r&&"function"!=typeof r&&(r=v.parse),n=!(i=R(e||"",t=S(t))).protocol&&!i.slashes,l.slashes=i.slashes||n&&t.slashes,l.protocol=i.protocol||t.protocol||"",e=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||w.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!D(l.protocol)))&&(c[3]=[/(.*)/,"pathname"]);f<c.length;f++)"function"!=typeof(a=c[f])?(o=a[0],u=a[1],o!=o?l[u]=e:"string"==typeof o?~(s="@"===o?e.lastIndexOf(o):e.indexOf(o))&&("number"==typeof a[2]?(l[u]=e.slice(0,s),e=e.slice(s+a[2])):(l[u]=e.slice(s),e=e.slice(0,s))):(s=o.exec(e))&&(l[u]=s[1],e=e.slice(0,s.index)),l[u]=l[u]||n&&a[3]&&t[u]||"",a[4]&&(l[u]=l[u].toLowerCase())):e=a(e,l);r&&(l.query=r(l.query)),n&&t.slashes&&"/"!==l.pathname.charAt(0)&&(""!==l.pathname||""!==t.pathname)&&(l.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,i=r[n-1],o=!1,a=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),a++):a&&(0===n&&(o=!0),r.splice(n,1),a--);return o&&r.unshift(""),"."!==i&&".."!==i||r.push(""),r.join("/")}(l.pathname,t.pathname)),"/"!==l.pathname.charAt(0)&&D(l.protocol)&&(l.pathname="/"+l.pathname),m(l.port,l.protocol)||(l.host=l.hostname,l.port=""),l.username=l.password="",l.auth&&(~(s=l.auth.indexOf(":"))?(l.username=l.auth.slice(0,s),l.username=encodeURIComponent(decodeURIComponent(l.username)),l.password=l.auth.slice(s+1),l.password=encodeURIComponent(decodeURIComponent(l.password))):l.username=encodeURIComponent(decodeURIComponent(l.auth)),l.auth=l.password?l.username+":"+l.password:l.username),l.origin="file:"!==l.protocol&&D(l.protocol)&&l.host?l.protocol+"//"+l.host:"null",l.href=l.toString()}I.prototype={set:function(e,t,r){var n=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||v.parse)(t)),n[e]=t;break;case"port":n[e]=t,m(t,n.protocol)?t&&(n.host=n.hostname+":"+t):(n.host=n.hostname,n[e]="");break;case"hostname":n[e]=t,n.port&&(t+=":"+n.port),n.host=t;break;case"host":n[e]=t,y.test(t)?(t=t.split(":"),n.port=t.pop(),n.hostname=t.join(":")):(n.hostname=t,n.port="");break;case"protocol":n.protocol=t.toLowerCase(),n.slashes=!r;break;case"pathname":case"hash":if(t){var i="pathname"===e?"/":"#";n[e]=t.charAt(0)!==i?i+t:t}else n[e]=t;break;case"username":case"password":n[e]=encodeURIComponent(t);break;case"auth":var o=t.indexOf(":");~o?(n.username=t.slice(0,o),n.username=encodeURIComponent(decodeURIComponent(n.username)),n.password=t.slice(o+1),n.password=encodeURIComponent(decodeURIComponent(n.password))):n.username=encodeURIComponent(decodeURIComponent(t))}for(var a=0;a<k.length;a++){var s=k[a];s[4]&&(n[s[1]]=n[s[1]].toLowerCase())}return n.auth=n.password?n.username+":"+n.password:n.username,n.origin="file:"!==n.protocol&&D(n.protocol)&&n.host?n.protocol+"//"+n.host:"null",n.href=n.toString(),n},toString:function(e){e&&"function"==typeof e||(e=v.stringify);var t,r=this,n=r.host,i=r.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var o=i+(r.protocol&&r.slashes||D(r.protocol)?"//":"");return r.username?(o+=r.username,r.password&&(o+=":"+r.password),o+="@"):r.password?(o+=":"+r.password,o+="@"):"file:"!==r.protocol&&D(r.protocol)&&!n&&"/"!==r.pathname&&(o+="@"),(":"===n[n.length-1]||y.test(r.hostname)&&!r.port)&&(n+=":"),o+=n+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(o+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(o+=r.hash),o}},I.extractProtocol=R,I.location=S,I.trimLeft=x,I.qs=v;var C=I;function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,T(n.key),n)}}function M(e,t,r){return t&&P(e.prototype,t),r&&P(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var L={exports:{}};!function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",a="[object Boolean]",s="[object Date]",u="[object Function]",c="[object GeneratorFunction]",d="[object Map]",l="[object Number]",f="[object Object]",p="[object Promise]",h="[object RegExp]",m="[object Set]",v="[object String]",g="[object Symbol]",A="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",_="[object Float32Array]",w="[object Float64Array]",x="[object Int8Array]",k="[object Int16Array]",E="[object Int32Array]",S="[object Uint8Array]",D="[object Uint8ClampedArray]",R="[object Uint16Array]",I="[object Uint32Array]",C=/\w*$/,O=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,P={};P[o]=P["[object Array]"]=P[b]=P[y]=P[a]=P[s]=P[_]=P[w]=P[x]=P[k]=P[E]=P[d]=P[l]=P[f]=P[h]=P[m]=P[v]=P[g]=P[S]=P[D]=P[R]=P[I]=!0,P["[object Error]"]=P[u]=P[A]=!1;var M="object"==typeof i&&i&&i.Object===Object&&i,L="object"==typeof self&&self&&self.Object===Object&&self,B=M||L||Function("return this")(),j=t&&!t.nodeType&&t,U=j&&e&&!e.nodeType&&e,F=U&&U.exports===j;function N(e,t){return e.set(t[0],t[1]),e}function $(e,t){return e.add(t),e}function G(e,t,r,n){var i=-1,o=e?e.length:0;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function z(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function Z(e,t){return function(r){return e(t(r))}}function K(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var q=Array.prototype,V=Function.prototype,W=Object.prototype,Y=B["__core-js_shared__"],Q=function(){var e=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=V.toString,X=W.hasOwnProperty,ee=W.toString,te=RegExp("^"+J.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=F?B.Buffer:void 0,ne=B.Symbol,ie=B.Uint8Array,oe=Z(Object.getPrototypeOf,Object),ae=Object.create,se=W.propertyIsEnumerable,ue=q.splice,ce=Object.getOwnPropertySymbols,de=re?re.isBuffer:void 0,le=Z(Object.keys,Object),fe=je(B,"DataView"),pe=je(B,"Map"),he=je(B,"Promise"),me=je(B,"Set"),ve=je(B,"WeakMap"),ge=je(Object,"create"),Ae=Ge(fe),be=Ge(pe),ye=Ge(he),_e=Ge(me),we=Ge(ve),xe=ne?ne.prototype:void 0,ke=xe?xe.valueOf:void 0;function Ee(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Se(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function De(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Re(e){this.__data__=new Se(e)}function Ie(e,t){var r=ze(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ze(e)}(e)&&X.call(e,"callee")&&(!se.call(e,"callee")||ee.call(e)==o)}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,i=!!n;for(var a in e)!t&&!X.call(e,a)||i&&("length"==a||Ne(a,n))||r.push(a);return r}function Ce(e,t,r){var n=e[t];X.call(e,t)&&He(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function Oe(e,t){for(var r=e.length;r--;)if(He(e[r][0],t))return r;return-1}function Te(e,t,r,n,i,p,A){var O;if(n&&(O=p?n(e,i,p,A):n(e)),void 0!==O)return O;if(!Ve(e))return e;var T=ze(e);if(T){if(O=function(e){var t=e.length,r=e.constructor(t);t&&"string"==typeof e[0]&&X.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!t)return function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r<n;)t[r]=e[r];return t}(e,O)}else{var M=Fe(e),L=M==u||M==c;if(Ke(e))return function(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}(e,t);if(M==f||M==o||L&&!p){if(H(e))return p?e:{};if(O=function(e){return"function"!=typeof e.constructor||$e(e)?{}:(t=oe(e),Ve(t)?ae(t):{});var t}(L?{}:e),!t)return function(e,t){return Le(e,Ue(e),t)}(e,function(e,t){return e&&Le(t,We(t),e)}(O,e))}else{if(!P[M])return p?e:{};O=function(e,t,r,n){var i=e.constructor;switch(t){case b:return Me(e);case a:case s:return new i(+e);case y:return function(e,t){var r=t?Me(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,n);case _:case w:case x:case k:case E:case S:case D:case R:case I:return function(e,t){var r=t?Me(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,n);case d:return function(e,t,r){var n=t?r(z(e),!0):z(e);return G(n,N,new e.constructor)}(e,n,r);case l:case v:return new i(e);case h:return function(e){var t=new e.constructor(e.source,C.exec(e));return t.lastIndex=e.lastIndex,t}(e);case m:return function(e,t,r){var n=t?r(K(e),!0):K(e);return G(n,$,new e.constructor)}(e,n,r);case g:return o=e,ke?Object(ke.call(o)):{}}var o}(e,M,Te,t)}}A||(A=new Re);var B=A.get(e);if(B)return B;if(A.set(e,O),!T)var j=r?function(e){return function(e,t,r){var n=t(e);return ze(e)?n:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}(n,r(e))}(e,We,Ue)}(e):We(e);return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););}(j||e,(function(i,o){j&&(i=e[o=i]),Ce(O,o,Te(i,t,r,n,o,e,A))})),O}function Pe(e){return!(!Ve(e)||(t=e,Q&&Q in t))&&(qe(e)||H(e)?te:O).test(Ge(e));var t}function Me(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Le(e,t,r,n){r||(r={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=n?n(r[a],e[a],a,r,e):void 0;Ce(r,a,void 0===s?e[a]:s)}return r}function Be(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function je(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Pe(r)?r:void 0}Ee.prototype.clear=function(){this.__data__=ge?ge(null):{}},Ee.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ee.prototype.get=function(e){var t=this.__data__;if(ge){var n=t[e];return n===r?void 0:n}return X.call(t,e)?t[e]:void 0},Ee.prototype.has=function(e){var t=this.__data__;return ge?void 0!==t[e]:X.call(t,e)},Ee.prototype.set=function(e,t){return this.__data__[e]=ge&&void 0===t?r:t,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(e){var t=this.__data__,r=Oe(t,e);return!(r<0)&&(r==t.length-1?t.pop():ue.call(t,r,1),!0)},Se.prototype.get=function(e){var t=this.__data__,r=Oe(t,e);return r<0?void 0:t[r][1]},Se.prototype.has=function(e){return Oe(this.__data__,e)>-1},Se.prototype.set=function(e,t){var r=this.__data__,n=Oe(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},De.prototype.clear=function(){this.__data__={hash:new Ee,map:new(pe||Se),string:new Ee}},De.prototype.delete=function(e){return Be(this,e).delete(e)},De.prototype.get=function(e){return Be(this,e).get(e)},De.prototype.has=function(e){return Be(this,e).has(e)},De.prototype.set=function(e,t){return Be(this,e).set(e,t),this},Re.prototype.clear=function(){this.__data__=new Se},Re.prototype.delete=function(e){return this.__data__.delete(e)},Re.prototype.get=function(e){return this.__data__.get(e)},Re.prototype.has=function(e){return this.__data__.has(e)},Re.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Se){var n=r.__data__;if(!pe||n.length<199)return n.push([e,t]),this;r=this.__data__=new De(n)}return r.set(e,t),this};var Ue=ce?Z(ce,Object):function(){return[]},Fe=function(e){return ee.call(e)};function Ne(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function $e(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||W)}function Ge(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function He(e,t){return e===t||e!=e&&t!=t}(fe&&Fe(new fe(new ArrayBuffer(1)))!=y||pe&&Fe(new pe)!=d||he&&Fe(he.resolve())!=p||me&&Fe(new me)!=m||ve&&Fe(new ve)!=A)&&(Fe=function(e){var t=ee.call(e),r=t==f?e.constructor:void 0,n=r?Ge(r):void 0;if(n)switch(n){case Ae:return y;case be:return d;case ye:return p;case _e:return m;case we:return A}return t});var ze=Array.isArray;function Ze(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!qe(e)}var Ke=de||function(){return!1};function qe(e){var t=Ve(e)?ee.call(e):"";return t==u||t==c}function Ve(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function We(e){return Ze(e)?Ie(e):function(e){if(!$e(e))return le(e);var t=[];for(var r in Object(e))X.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return Te(e,!0,!0)}}(L,L.exports);var B=L.exports;
1
+ !function(){"use strict";function e(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function t(t){return function(){var r=this,n=arguments;return new Promise((function(i,o){var a=t.apply(r,n);function s(t){e(a,i,o,s,u,"next",t)}function u(t){e(a,i,o,s,u,"throw",t)}s(void 0)}))}}function r(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}function n(e){return n="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},n(e)}var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})})),t}var s={exports:{}},u={exports:{}};!function(e){function t(r){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(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(u),function(e){var t=u.exports.default;function r(){e.exports=r=function(){return i},e.exports.__esModule=!0,e.exports.default=e.exports;var n,i={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(n){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,o=Object.create(i.prototype),a=new P(n||[]);return s(o,"_invoke",{value:I(e,r,a)}),o}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}i.wrap=p;var m="suspendedStart",v="suspendedYield",g="executing",A="completed",b={};function y(){}function _(){}function w(){}var x={};f(x,c,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(M([])));E&&E!==o&&a.call(E,c)&&(x=E);var S=w.prototype=y.prototype=Object.create(x);function D(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,r){function n(i,o,s,u){var c=h(e[i],e,o);if("throw"!==c.type){var d=c.arg,l=d.value;return l&&"object"==t(l)&&a.call(l,"__await")?r.resolve(l.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):r.resolve(l).then((function(e){d.value=e,s(d)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var i;s(this,"_invoke",{value:function(e,t){function o(){return new r((function(r,i){n(e,t,r,i)}))}return i=i?i.then(o,o):o()}})}function I(e,t,r){var i=m;return function(o,a){if(i===g)throw Error("Generator is already running");if(i===A){if("throw"===o)throw a;return{value:n,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=C(s,r);if(u){if(u===b)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===m)throw i=A,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=g;var c=h(e,t,r);if("normal"===c.type){if(i=r.done?A:v,c.arg===b)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=A,r.method="throw",r.arg=c.arg)}}}function C(e,t){var r=t.method,i=e.iterator[r];if(i===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=n,C(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=h(i,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,b;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,b):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function O(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function t(){for(;++i<e.length;)if(a.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}throw new TypeError(t(e)+" is not iterable")}return _.prototype=w,s(S,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:_,configurable:!0}),_.displayName=f(w,l,"GeneratorFunction"),i.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},i.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,f(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},i.awrap=function(e){return{__await:e}},D(R.prototype),f(R.prototype,d,(function(){return this})),i.AsyncIterator=R,i.async=function(e,t,r,n,o){void 0===o&&(o=Promise);var a=new R(p(e,t,r,n),o);return i.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},D(S),f(S,l,"Generator"),f(S,c,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),i.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},i.values=M,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},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 r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(o)},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),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:M(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),b}},i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(s);var c=s.exports(),d=c;try{regeneratorRuntime=c}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=c:Function("r","regeneratorRuntime = r")(c)}var l={},f=Object.prototype.hasOwnProperty;function p(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function h(e){try{return encodeURIComponent(e)}catch(e){return null}}l.stringify=function(e,t){t=t||"";var r,n,i=[];for(n in"string"!=typeof t&&(t="?"),e)if(f.call(e,n)){if((r=e[n])||null!=r&&!isNaN(r)||(r=""),n=h(n),r=h(r),null===n||null===r)continue;i.push(n+"="+r)}return i.length?t+i.join("&"):""},l.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var i=p(t[1]),o=p(t[2]);null===i||null===o||i in n||(n[i]=o)}return n};var m=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e},v=l,g=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,A=/[\n\r\t]/g,b=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,y=/:\d+$/,_=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,w=/^[a-zA-Z]:/;function x(e){return(e||"").toString().replace(g,"")}var k=[["#","hash"],["?","query"],function(e,t){return D(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],E={hash:1,query:1};function S(e){var t,r=("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:{}).location||{},n={},o=typeof(e=e||r);if("blob:"===e.protocol)n=new I(unescape(e.pathname),{});else if("string"===o)for(t in n=new I(e,{}),E)delete n[t];else if("object"===o){for(t in e)t in E||(n[t]=e[t]);void 0===n.slashes&&(n.slashes=b.test(e.href))}return n}function D(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function R(e,t){e=(e=x(e)).replace(A,""),t=t||{};var r,n=_.exec(e),i=n[1]?n[1].toLowerCase():"",o=!!n[2],a=!!n[3],s=0;return o?a?(r=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(r=n[2]+n[4],s=n[2].length):a?(r=n[3]+n[4],s=n[3].length):r=n[4],"file:"===i?s>=2&&(r=r.slice(2)):D(i)?r=n[4]:i?o&&(r=r.slice(2)):s>=2&&D(t.protocol)&&(r=n[4]),{protocol:i,slashes:o||D(i),slashesCount:s,rest:r}}function I(e,t,r){if(e=(e=x(e)).replace(A,""),!(this instanceof I))return new I(e,t,r);var n,i,o,a,s,u,c=k.slice(),d=typeof t,l=this,f=0;for("object"!==d&&"string"!==d&&(r=t,t=null),r&&"function"!=typeof r&&(r=v.parse),n=!(i=R(e||"",t=S(t))).protocol&&!i.slashes,l.slashes=i.slashes||n&&t.slashes,l.protocol=i.protocol||t.protocol||"",e=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||w.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!D(l.protocol)))&&(c[3]=[/(.*)/,"pathname"]);f<c.length;f++)"function"!=typeof(a=c[f])?(o=a[0],u=a[1],o!=o?l[u]=e:"string"==typeof o?~(s="@"===o?e.lastIndexOf(o):e.indexOf(o))&&("number"==typeof a[2]?(l[u]=e.slice(0,s),e=e.slice(s+a[2])):(l[u]=e.slice(s),e=e.slice(0,s))):(s=o.exec(e))&&(l[u]=s[1],e=e.slice(0,s.index)),l[u]=l[u]||n&&a[3]&&t[u]||"",a[4]&&(l[u]=l[u].toLowerCase())):e=a(e,l);r&&(l.query=r(l.query)),n&&t.slashes&&"/"!==l.pathname.charAt(0)&&(""!==l.pathname||""!==t.pathname)&&(l.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,i=r[n-1],o=!1,a=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),a++):a&&(0===n&&(o=!0),r.splice(n,1),a--);return o&&r.unshift(""),"."!==i&&".."!==i||r.push(""),r.join("/")}(l.pathname,t.pathname)),"/"!==l.pathname.charAt(0)&&D(l.protocol)&&(l.pathname="/"+l.pathname),m(l.port,l.protocol)||(l.host=l.hostname,l.port=""),l.username=l.password="",l.auth&&(~(s=l.auth.indexOf(":"))?(l.username=l.auth.slice(0,s),l.username=encodeURIComponent(decodeURIComponent(l.username)),l.password=l.auth.slice(s+1),l.password=encodeURIComponent(decodeURIComponent(l.password))):l.username=encodeURIComponent(decodeURIComponent(l.auth)),l.auth=l.password?l.username+":"+l.password:l.username),l.origin="file:"!==l.protocol&&D(l.protocol)&&l.host?l.protocol+"//"+l.host:"null",l.href=l.toString()}I.prototype={set:function(e,t,r){var n=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||v.parse)(t)),n[e]=t;break;case"port":n[e]=t,m(t,n.protocol)?t&&(n.host=n.hostname+":"+t):(n.host=n.hostname,n[e]="");break;case"hostname":n[e]=t,n.port&&(t+=":"+n.port),n.host=t;break;case"host":n[e]=t,y.test(t)?(t=t.split(":"),n.port=t.pop(),n.hostname=t.join(":")):(n.hostname=t,n.port="");break;case"protocol":n.protocol=t.toLowerCase(),n.slashes=!r;break;case"pathname":case"hash":if(t){var i="pathname"===e?"/":"#";n[e]=t.charAt(0)!==i?i+t:t}else n[e]=t;break;case"username":case"password":n[e]=encodeURIComponent(t);break;case"auth":var o=t.indexOf(":");~o?(n.username=t.slice(0,o),n.username=encodeURIComponent(decodeURIComponent(n.username)),n.password=t.slice(o+1),n.password=encodeURIComponent(decodeURIComponent(n.password))):n.username=encodeURIComponent(decodeURIComponent(t))}for(var a=0;a<k.length;a++){var s=k[a];s[4]&&(n[s[1]]=n[s[1]].toLowerCase())}return n.auth=n.password?n.username+":"+n.password:n.username,n.origin="file:"!==n.protocol&&D(n.protocol)&&n.host?n.protocol+"//"+n.host:"null",n.href=n.toString(),n},toString:function(e){e&&"function"==typeof e||(e=v.stringify);var t,r=this,n=r.host,i=r.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var o=i+(r.protocol&&r.slashes||D(r.protocol)?"//":"");return r.username?(o+=r.username,r.password&&(o+=":"+r.password),o+="@"):r.password?(o+=":"+r.password,o+="@"):"file:"!==r.protocol&&D(r.protocol)&&!n&&"/"!==r.pathname&&(o+="@"),(":"===n[n.length-1]||y.test(r.hostname)&&!r.port)&&(n+=":"),o+=n+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(o+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(o+=r.hash),o}},I.extractProtocol=R,I.location=S,I.trimLeft=x,I.qs=v;var C=I;function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,T(n.key),n)}}function M(e,t,r){return t&&P(e.prototype,t),r&&P(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var L={exports:{}};!function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",a="[object Boolean]",s="[object Date]",u="[object Function]",c="[object GeneratorFunction]",d="[object Map]",l="[object Number]",f="[object Object]",p="[object Promise]",h="[object RegExp]",m="[object Set]",v="[object String]",g="[object Symbol]",A="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",_="[object Float32Array]",w="[object Float64Array]",x="[object Int8Array]",k="[object Int16Array]",E="[object Int32Array]",S="[object Uint8Array]",D="[object Uint8ClampedArray]",R="[object Uint16Array]",I="[object Uint32Array]",C=/\w*$/,O=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,P={};P[o]=P["[object Array]"]=P[b]=P[y]=P[a]=P[s]=P[_]=P[w]=P[x]=P[k]=P[E]=P[d]=P[l]=P[f]=P[h]=P[m]=P[v]=P[g]=P[S]=P[D]=P[R]=P[I]=!0,P["[object Error]"]=P[u]=P[A]=!1;var M="object"==typeof i&&i&&i.Object===Object&&i,L="object"==typeof self&&self&&self.Object===Object&&self,B=M||L||Function("return this")(),j=t&&!t.nodeType&&t,U=j&&e&&!e.nodeType&&e,F=U&&U.exports===j;function N(e,t){return e.set(t[0],t[1]),e}function $(e,t){return e.add(t),e}function G(e,t,r,n){var i=-1,o=e?e.length:0;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function z(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function Z(e,t){return function(r){return e(t(r))}}function K(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var q=Array.prototype,V=Function.prototype,W=Object.prototype,Y=B["__core-js_shared__"],Q=function(){var e=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=V.toString,X=W.hasOwnProperty,ee=W.toString,te=RegExp("^"+J.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=F?B.Buffer:void 0,ne=B.Symbol,ie=B.Uint8Array,oe=Z(Object.getPrototypeOf,Object),ae=Object.create,se=W.propertyIsEnumerable,ue=q.splice,ce=Object.getOwnPropertySymbols,de=re?re.isBuffer:void 0,le=Z(Object.keys,Object),fe=je(B,"DataView"),pe=je(B,"Map"),he=je(B,"Promise"),me=je(B,"Set"),ve=je(B,"WeakMap"),ge=je(Object,"create"),Ae=Ge(fe),be=Ge(pe),ye=Ge(he),_e=Ge(me),we=Ge(ve),xe=ne?ne.prototype:void 0,ke=xe?xe.valueOf:void 0;function Ee(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Se(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function De(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Re(e){this.__data__=new Se(e)}function Ie(e,t){var r=ze(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ze(e)}(e)&&X.call(e,"callee")&&(!se.call(e,"callee")||ee.call(e)==o)}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,i=!!n;for(var a in e)!t&&!X.call(e,a)||i&&("length"==a||Ne(a,n))||r.push(a);return r}function Ce(e,t,r){var n=e[t];X.call(e,t)&&He(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function Oe(e,t){for(var r=e.length;r--;)if(He(e[r][0],t))return r;return-1}function Te(e,t,r,n,i,p,A){var O;if(n&&(O=p?n(e,i,p,A):n(e)),void 0!==O)return O;if(!Ve(e))return e;var T=ze(e);if(T){if(O=function(e){var t=e.length,r=e.constructor(t);t&&"string"==typeof e[0]&&X.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!t)return function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r<n;)t[r]=e[r];return t}(e,O)}else{var M=Fe(e),L=M==u||M==c;if(Ke(e))return function(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}(e,t);if(M==f||M==o||L&&!p){if(H(e))return p?e:{};if(O=function(e){return"function"!=typeof e.constructor||$e(e)?{}:(t=oe(e),Ve(t)?ae(t):{});var t}(L?{}:e),!t)return function(e,t){return Le(e,Ue(e),t)}(e,function(e,t){return e&&Le(t,We(t),e)}(O,e))}else{if(!P[M])return p?e:{};O=function(e,t,r,n){var i=e.constructor;switch(t){case b:return Me(e);case a:case s:return new i(+e);case y:return function(e,t){var r=t?Me(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,n);case _:case w:case x:case k:case E:case S:case D:case R:case I:return function(e,t){var r=t?Me(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}(e,n);case d:return function(e,t,r){var n=t?r(z(e),!0):z(e);return G(n,N,new e.constructor)}(e,n,r);case l:case v:return new i(e);case h:return function(e){var t=new e.constructor(e.source,C.exec(e));return t.lastIndex=e.lastIndex,t}(e);case m:return function(e,t,r){var n=t?r(K(e),!0):K(e);return G(n,$,new e.constructor)}(e,n,r);case g:return o=e,ke?Object(ke.call(o)):{}}var o}(e,M,Te,t)}}A||(A=new Re);var B=A.get(e);if(B)return B;if(A.set(e,O),!T)var j=r?function(e){return function(e,t,r){var n=t(e);return ze(e)?n:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}(n,r(e))}(e,We,Ue)}(e):We(e);return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););}(j||e,(function(i,o){j&&(i=e[o=i]),Ce(O,o,Te(i,t,r,n,o,e,A))})),O}function Pe(e){return!(!Ve(e)||(t=e,Q&&Q in t))&&(qe(e)||H(e)?te:O).test(Ge(e));var t}function Me(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Le(e,t,r,n){r||(r={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=n?n(r[a],e[a],a,r,e):void 0;Ce(r,a,void 0===s?e[a]:s)}return r}function Be(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function je(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Pe(r)?r:void 0}Ee.prototype.clear=function(){this.__data__=ge?ge(null):{}},Ee.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ee.prototype.get=function(e){var t=this.__data__;if(ge){var n=t[e];return n===r?void 0:n}return X.call(t,e)?t[e]:void 0},Ee.prototype.has=function(e){var t=this.__data__;return ge?void 0!==t[e]:X.call(t,e)},Ee.prototype.set=function(e,t){return this.__data__[e]=ge&&void 0===t?r:t,this},Se.prototype.clear=function(){this.__data__=[]},Se.prototype.delete=function(e){var t=this.__data__,r=Oe(t,e);return!(r<0)&&(r==t.length-1?t.pop():ue.call(t,r,1),!0)},Se.prototype.get=function(e){var t=this.__data__,r=Oe(t,e);return r<0?void 0:t[r][1]},Se.prototype.has=function(e){return Oe(this.__data__,e)>-1},Se.prototype.set=function(e,t){var r=this.__data__,n=Oe(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},De.prototype.clear=function(){this.__data__={hash:new Ee,map:new(pe||Se),string:new Ee}},De.prototype.delete=function(e){return Be(this,e).delete(e)},De.prototype.get=function(e){return Be(this,e).get(e)},De.prototype.has=function(e){return Be(this,e).has(e)},De.prototype.set=function(e,t){return Be(this,e).set(e,t),this},Re.prototype.clear=function(){this.__data__=new Se},Re.prototype.delete=function(e){return this.__data__.delete(e)},Re.prototype.get=function(e){return this.__data__.get(e)},Re.prototype.has=function(e){return this.__data__.has(e)},Re.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Se){var n=r.__data__;if(!pe||n.length<199)return n.push([e,t]),this;r=this.__data__=new De(n)}return r.set(e,t),this};var Ue=ce?Z(ce,Object):function(){return[]},Fe=function(e){return ee.call(e)};function Ne(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function $e(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||W)}function Ge(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function He(e,t){return e===t||e!=e&&t!=t}(fe&&Fe(new fe(new ArrayBuffer(1)))!=y||pe&&Fe(new pe)!=d||he&&Fe(he.resolve())!=p||me&&Fe(new me)!=m||ve&&Fe(new ve)!=A)&&(Fe=function(e){var t=ee.call(e),r=t==f?e.constructor:void 0,n=r?Ge(r):void 0;if(n)switch(n){case Ae:return y;case be:return d;case ye:return p;case _e:return m;case we:return A}return t});var ze=Array.isArray;function Ze(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!qe(e)}var Ke=de||function(){return!1};function qe(e){var t=Ve(e)?ee.call(e):"";return t==u||t==c}function Ve(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function We(e){return Ze(e)?Ie(e):function(e){if(!$e(e))return le(e);var t=[];for(var r in Object(e))X.call(e,r)&&"constructor"!=r&&t.push(r);return t}(e)}e.exports=function(e){return Te(e,!0,!0)}}(L,L.exports);var B=L.exports;
2
2
  /*!
3
3
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
4
4
  *
5
5
  * Copyright (c) 2014-2017, Jon Schlinkert.
6
6
  * Released under the MIT License.
7
- */function j(e){return"[object Object]"===Object.prototype.toString.call(e)}function U(e){var t,r;return!1!==j(e)&&(void 0===(t=e.constructor)||!1!==j(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}var F=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0},N=String.prototype.valueOf,$=Object.prototype.toString,G=F()&&!!Symbol.toStringTag,H=function(e){return"string"==typeof e||"object"==typeof e&&(G?function(e){try{return N.call(e),!0}catch(e){return!1}}(e):"[object String]"===$.call(e))},z=Array.isArray,Z=Object.prototype.toString,K=z||function(e){return!!e&&"[object Array]"==Z.call(e)},q=function(e){if(!e)return!1;var t=V.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)},V=Object.prototype.toString;var W="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==W&&W,Y={searchParams:"URLSearchParams"in W,iterable:"Symbol"in W&&"iterator"in Symbol,blob:"FileReader"in W&&"Blob"in W&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in W,arrayBuffer:"ArrayBuffer"in W};if(Y.arrayBuffer)var Q=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],J=ArrayBuffer.isView||function(e){return e&&Q.indexOf(Object.prototype.toString.call(e))>-1};function X(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function ee(e){return"string"!=typeof e&&(e=String(e)),e}function te(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return Y.iterable&&(t[Symbol.iterator]=function(){return t}),t}function re(e){this.map={},e instanceof re?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function ne(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ie(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function oe(e){var t=new FileReader,r=ie(t);return t.readAsArrayBuffer(e),r}function ae(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function se(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:Y.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Y.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Y.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Y.arrayBuffer&&Y.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=ae(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Y.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||J(e))?this._bodyArrayBuffer=ae(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Y.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Y.blob&&(this.blob=function(){var e=ne(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=ne(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(oe)}),this.text=function(){var e=ne(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,r=ie(t);return t.readAsText(e),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Y.formData&&(this.formData=function(){return this.text().then(de)}),this.json=function(){return this.text().then(JSON.parse)},this}re.prototype.append=function(e,t){e=X(e),t=ee(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},re.prototype.delete=function(e){delete this.map[X(e)]},re.prototype.get=function(e){return e=X(e),this.has(e)?this.map[e]:null},re.prototype.has=function(e){return this.map.hasOwnProperty(X(e))},re.prototype.set=function(e,t){this.map[X(e)]=ee(t)},re.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},re.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),te(e)},re.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),te(e)},re.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),te(e)},Y.iterable&&(re.prototype[Symbol.iterator]=re.prototype.entries);var ue=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ce(e,t){if(!(this instanceof ce))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r=(t=t||{}).body;if(e instanceof ce){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new re(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new re(t.headers)),this.method=function(e){var t=e.toUpperCase();return ue.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function de(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function le(e,t){if(!(this instanceof le))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new re(t.headers),this.url=t.url||"",this._initBody(e)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})},se.call(ce.prototype),se.call(le.prototype),le.prototype.clone=function(){return new le(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new re(this.headers),url:this.url})},le.error=function(){var e=new le(null,{status:0,statusText:""});return e.type="error",e};var fe=[301,302,303,307,308];le.redirect=function(e,t){if(-1===fe.indexOf(t))throw new RangeError("Invalid status code");return new le(null,{status:t,headers:{location:e}})};var pe=W.DOMException;try{new pe}catch(e){pe=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},pe.prototype=Object.create(Error.prototype),pe.prototype.constructor=pe}function he(e,t){return new Promise((function(r,n){var i=new ce(e,t);if(i.signal&&i.signal.aborted)return n(new pe("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}o.onload=function(){var e,t,n={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new re,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t)};n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){r(new le(i,n))}),0)},o.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){n(new pe("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&W.location.href?W.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(Y.blob?o.responseType="blob":Y.arrayBuffer&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof re?i.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,ee(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",a)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}he.polyfill=!0,W.fetch||(W.fetch=he,W.Headers=re,W.Request=ce,W.Response=le);var me,ve,ge={exports:{}};me=ge,ve=ge.exports,function(e,t){var r="function",n="undefined",i="object",o="string",a="major",s="model",u="name",c="type",d="vendor",l="version",f="architecture",p="console",h="mobile",m="tablet",v="smarttv",g="wearable",A="embedded",b="Amazon",y="Apple",_="ASUS",w="BlackBerry",x="Browser",k="Chrome",E="Firefox",S="Google",D="Huawei",R="LG",I="Microsoft",C="Motorola",O="Opera",T="Samsung",P="Sharp",M="Sony",L="Xiaomi",B="Zebra",j="Facebook",U="Chromium OS",F="Mac OS",N=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},$=function(e,t){return typeof e===o&&-1!==G(t).indexOf(G(e))},G=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===o)return e=e.replace(/^\s\s*/,""),typeof t===n?e:e.substring(0,350)},z=function(e,n){for(var o,a,s,u,c,d,l=0;l<n.length&&!c;){var f=n[l],p=n[l+1];for(o=a=0;o<f.length&&!c&&f[o];)if(c=f[o++].exec(e))for(s=0;s<p.length;s++)d=c[++a],typeof(u=p[s])===i&&u.length>0?2===u.length?typeof u[1]==r?this[u[0]]=u[1].call(this,d):this[u[0]]=u[1]:3===u.length?typeof u[1]!==r||u[1].exec&&u[1].test?this[u[0]]=d?d.replace(u[1],u[2]):t:this[u[0]]=d?u[1].call(this,d,u[2]):t:4===u.length&&(this[u[0]]=d?u[3].call(this,d.replace(u[1],u[2])):t):this[u]=d||t;l+=2}},Z=function(e,r){for(var n in r)if(typeof r[n]===i&&r[n].length>0){for(var o=0;o<r[n].length;o++)if($(r[n][o],e))return"?"===n?t:n}else if($(r[n],e))return"?"===n?t:n;return e},K={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},q={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,l],[/opios[\/ ]+([\w\.]+)/i],[l,[u,O+" Mini"]],[/\bopr\/([\w\.]+)/i],[l,[u,O]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,l],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[u,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[l,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[l,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[l,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+x],l],[/\bfocus\/([\w\.]+)/i],[l,[u,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[l,[u,O+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[u,O+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[u,"MIUI "+x]],[/fxios\/([-\w\.]+)/i],[l,[u,E]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+x]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+x],l],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,l],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,j],l],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[l,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[u,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,k+" WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[u,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[l,Z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[u,E+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[u,l],[/(cobalt)\/([\w\.]+)/i],[u,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,G]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/windows (ce|mobile); ppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[f,/ower/,"",G]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[f,G]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[s,[d,T],[c,m]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[s,[d,T],[c,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[d,y],[c,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[d,y],[c,m]],[/(macintosh);/i],[s,[d,y]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[d,P],[c,h]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[s,[d,D],[c,m]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[d,D],[c,h]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[s,/_/g," "],[d,L],[c,h]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[s,/_/g," "],[d,L],[c,m]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[d,"OPPO"],[c,h]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[d,"Vivo"],[c,h]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[s,[d,"Realme"],[c,h]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[s,[d,C],[c,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[d,C],[c,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[d,R],[c,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[d,R],[c,h]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[s,[d,"Lenovo"],[c,m]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[s,/_/g," "],[d,"Nokia"],[c,h]],[/(pixel c)\b/i],[s,[d,S],[c,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[d,S],[c,h]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[d,M],[c,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[d,M],[c,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[d,"OnePlus"],[c,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[d,b],[c,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[d,b],[c,h]],[/(playbook);[-\w\),; ]+(rim)/i],[s,d,[c,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[d,w],[c,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[d,_],[c,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[d,_],[c,h]],[/(nexus 9)/i],[s,[d,"HTC"],[c,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[s,/_/g," "],[c,h]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[d,"Acer"],[c,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[d,"Meizu"],[c,h]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,s,[c,h]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,s,[c,m]],[/(surface duo)/i],[s,[d,I],[c,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[d,"Fairphone"],[c,h]],[/(u304aa)/i],[s,[d,"AT&T"],[c,h]],[/\bsie-(\w*)/i],[s,[d,"Siemens"],[c,h]],[/\b(rct\w+) b/i],[s,[d,"RCA"],[c,m]],[/\b(venue[\d ]{2,7}) b/i],[s,[d,"Dell"],[c,m]],[/\b(q(?:mv|ta)\w+) b/i],[s,[d,"Verizon"],[c,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[d,"Barnes & Noble"],[c,m]],[/\b(tm\d{3}\w+) b/i],[s,[d,"NuVision"],[c,m]],[/\b(k88) b/i],[s,[d,"ZTE"],[c,m]],[/\b(nx\d{3}j) b/i],[s,[d,"ZTE"],[c,h]],[/\b(gen\d{3}) b.+49h/i],[s,[d,"Swiss"],[c,h]],[/\b(zur\d{3}) b/i],[s,[d,"Swiss"],[c,m]],[/\b((zeki)?tb.*\b) b/i],[s,[d,"Zeki"],[c,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],s,[c,m]],[/\b(ns-?\w{0,9}) b/i],[s,[d,"Insignia"],[c,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[d,"NextBook"],[c,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],s,[c,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],s,[c,h]],[/\b(ph-1) /i],[s,[d,"Essential"],[c,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[d,"Envizen"],[c,m]],[/\b(trio[-\w\. ]+) b/i],[s,[d,"MachSpeed"],[c,m]],[/\btu_(1491) b/i],[s,[d,"Rotor"],[c,m]],[/(shield[\w ]+) b/i],[s,[d,"Nvidia"],[c,m]],[/(sprint) (\w+)/i],[d,s,[c,h]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[d,I],[c,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[d,B],[c,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[d,B],[c,h]],[/smart-tv.+(samsung)/i],[d,[c,v]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[d,T],[c,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,R],[c,v]],[/(apple) ?tv/i],[d,[s,y+" TV"],[c,v]],[/crkey/i],[[s,k+"cast"],[d,S],[c,v]],[/droid.+aft(\w)( bui|\))/i],[s,[d,b],[c,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[d,P],[c,v]],[/(bravia[\w ]+)( bui|\))/i],[s,[d,M],[c,v]],[/(mitv-\w{5}) bui/i],[s,[d,L],[c,v]],[/Hbbtv.*(technisat) (.*);/i],[d,s,[c,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,H],[s,H],[c,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,s,[c,p]],[/droid.+; (shield) bui/i],[s,[d,"Nvidia"],[c,p]],[/(playstation [345portablevi]+)/i],[s,[d,M],[c,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[d,I],[c,p]],[/((pebble))app/i],[d,s,[c,g]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[d,y],[c,g]],[/droid.+; (glass) \d/i],[s,[d,S],[c,g]],[/droid.+; (wt63?0{2,3})\)/i],[s,[d,B],[c,g]],[/(quest( 2| pro)?)/i],[s,[d,j],[c,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[c,A]],[/(aeobc)\b/i],[s,[d,b],[c,A]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[s,[c,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[c,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,h]],[/(android[-\w\. ]{0,9});.+buil/i],[s,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,l],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[l,Z,K]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[l,Z,K]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,F],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,l],[/\(bb(10);/i],[l,[u,w]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[u,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[l,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[l,[u,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,U],l],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,l],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,l]]},V=function(p,v){if(typeof p===i&&(v=p,p=t),!(this instanceof V))return new V(p,v).getResult();var g=typeof e!==n&&e.navigator?e.navigator:t,A=p||(g&&g.userAgent?g.userAgent:""),b=g&&g.userAgentData?g.userAgentData:t,y=v?function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r}(q,v):q,_=g&&g.userAgent==A;return this.getBrowser=function(){var e={};return e[u]=t,e[l]=t,z.call(e,A,y.browser),e[a]=function(e){return typeof e===o?e.replace(/[^\d\.]/g,"").split(".")[0]:t}(e[l]),_&&g&&g.brave&&typeof g.brave.isBrave==r&&(e[u]="Brave"),e},this.getCPU=function(){var e={};return e[f]=t,z.call(e,A,y.cpu),e},this.getDevice=function(){var e={};return e[d]=t,e[s]=t,e[c]=t,z.call(e,A,y.device),_&&!e[c]&&b&&b.mobile&&(e[c]=h),_&&"Macintosh"==e[s]&&g&&typeof g.standalone!==n&&g.maxTouchPoints&&g.maxTouchPoints>2&&(e[s]="iPad",e[c]=m),e},this.getEngine=function(){var e={};return e[u]=t,e[l]=t,z.call(e,A,y.engine),e},this.getOS=function(){var e={};return e[u]=t,e[l]=t,z.call(e,A,y.os),_&&!e[u]&&b&&"Unknown"!=b.platform&&(e[u]=b.platform.replace(/chrome os/i,U).replace(/macos/i,F)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return A},this.setUA=function(e){return A=typeof e===o&&e.length>350?H(e,350):e,this},this.setUA(A),this};V.VERSION="0.7.35",V.BROWSER=N([u,l,a]),V.CPU=N([f]),V.DEVICE=N([s,d,c,p,h,v,m,g,A]),V.ENGINE=V.OS=N([u,l]),me.exports&&(ve=me.exports=V),ve.UAParser=V;var W=typeof e!==n&&(e.jQuery||e.Zepto);if(W&&!W.ua){var Y=new V;W.ua=Y.getResult(),W.ua.get=function(){return Y.getUA()},W.ua.set=function(e){Y.setUA(e);var t=Y.getResult();for(var r in t)W.ua[r]=t[r]}}}("object"==typeof window?window:i);var Ae=ge.exports;const be="3.7.5",ye=be,_e="function"==typeof atob,we="function"==typeof btoa,xe="function"==typeof Buffer,ke="function"==typeof TextDecoder?new TextDecoder:void 0,Ee="function"==typeof TextEncoder?new TextEncoder:void 0,Se=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),De=(e=>{let t={};return e.forEach(((e,r)=>t[e]=r)),t})(Se),Re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Ie=String.fromCharCode.bind(String),Ce="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Oe=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),Te=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Pe=e=>{let t,r,n,i,o="";const a=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|i,o+=Se[t>>18&63]+Se[t>>12&63]+Se[t>>6&63]+Se[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},Me=we?e=>btoa(e):xe?e=>Buffer.from(e,"binary").toString("base64"):Pe,Le=xe?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(Ie.apply(null,e.subarray(r,r+4096)));return Me(t.join(""))},Be=(e,t=!1)=>t?Oe(Le(e)):Le(e),je=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Ie(192|t>>>6)+Ie(128|63&t):Ie(224|t>>>12&15)+Ie(128|t>>>6&63)+Ie(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Ie(240|t>>>18&7)+Ie(128|t>>>12&63)+Ie(128|t>>>6&63)+Ie(128|63&t)},Ue=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Fe=e=>e.replace(Ue,je),Ne=xe?e=>Buffer.from(e,"utf8").toString("base64"):Ee?e=>Le(Ee.encode(e)):e=>Me(Fe(e)),$e=(e,t=!1)=>t?Oe(Ne(e)):Ne(e),Ge=e=>$e(e,!0),He=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ze=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return Ie(55296+(t>>>10))+Ie(56320+(1023&t));case 3:return Ie((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Ie((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Ze=e=>e.replace(He,ze),Ke=e=>{if(e=e.replace(/\s+/g,""),!Re.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,n,i="";for(let o=0;o<e.length;)t=De[e.charAt(o++)]<<18|De[e.charAt(o++)]<<12|(r=De[e.charAt(o++)])<<6|(n=De[e.charAt(o++)]),i+=64===r?Ie(t>>16&255):64===n?Ie(t>>16&255,t>>8&255):Ie(t>>16&255,t>>8&255,255&t);return i},qe=_e?e=>atob(Te(e)):xe?e=>Buffer.from(e,"base64").toString("binary"):Ke,Ve=xe?e=>Ce(Buffer.from(e,"base64")):e=>Ce(qe(e).split("").map((e=>e.charCodeAt(0)))),We=e=>Ve(Qe(e)),Ye=xe?e=>Buffer.from(e,"base64").toString("utf8"):ke?e=>ke.decode(Ve(e)):e=>Ze(qe(e)),Qe=e=>Te(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))),Je=e=>Ye(Qe(e)),Xe=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),et=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,Xe(t));e("fromBase64",(function(){return Je(this)})),e("toBase64",(function(e){return $e(this,e)})),e("toBase64URI",(function(){return $e(this,!0)})),e("toBase64URL",(function(){return $e(this,!0)})),e("toUint8Array",(function(){return We(this)}))},tt=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,Xe(t));e("toBase64",(function(e){return Be(this,e)})),e("toBase64URI",(function(){return Be(this,!0)})),e("toBase64URL",(function(){return Be(this,!0)}))},rt={version:be,VERSION:ye,atob:qe,atobPolyfill:Ke,btoa:Me,btoaPolyfill:Pe,fromBase64:Je,toBase64:$e,encode:$e,encodeURI:Ge,encodeURL:Ge,utob:Fe,btou:Ze,decode:Je,isValid:e=>{if("string"!=typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:Be,toUint8Array:We,extendString:et,extendUint8Array:tt,extendBuiltins:()=>{et(),tt()}};var nt={Rewarded:"rewarded",Interstitial:"interstitial",Preroll:"interstitial",Midroll:"interstitial",Display:"display"};function it(e,t){var r;for(r in t)t.hasOwnProperty(r)&&null!==t[r]&&void 0!==t[r]&&(e[r]=t[r]);return e}function ot(){var e=ut(),t=(e.gd_sdk_referrer_url?e.gd_sdk_referrer_url:window.location!==window.parent.location&&document.referrer&&""!==document.referrer?document.referrer.split("/")[2]:document.location.host).replace(/^(?:https?:\/\/)?(?:\/\/)?(?:www\.)?/i,"").split("/")[0];if(-1!==document.referrer.indexOf("gameplayer.io")){t="gamedistribution.com";var r=st("ref",document.referrer);if(r){""!==r&&"{portal%20name}"!==r&&"{spilgames}"!==r&&"{portal name}"!==r&&(t=dt(r).replace(/^(?:https?:\/\/)?(?:\/\/)?(?:www\.)?/i,"").split("/")[0])}}else-1!==document.referrer.indexOf("localhost")&&(t="gamedistribution.com");return t}function at(){var e=ut();if(e.gd_sdk_referrer_url)return 0===pt()&&(e.gd_sdk_referrer_url=document.location.href),e.gd_sdk_referrer_url;var t=window.location!==window.parent.location&&document.referrer&&""!==document.referrer?document.referrer:document.location.href;if(-1!==document.referrer.indexOf("gameplayer.io")){t="https://gamedistribution.com";var r=st("ref",document.referrer);if(r){""!==r&&"{portal%20name}"!==r&&"{spilgames}"!==r&&"{portal name}"!==r&&(t=dt(r).replace(/^(?:https?:\/\/)?(?:\/\/)?/i,""),t="https://".concat(t))}}else-1!==document.referrer.indexOf("localhost")&&(t="https://gamedistribution.com/");return t}function st(e,t){var r=t||window.location.href,n=new RegExp("[?&]"+e+"=([^&#]*)","i").exec(r);return n?n[1]:null}function ut(){for(var e,t=/\+/g,r=/([^&=]+)=?([^&]*)/g,n=function(e){return decodeURIComponent(e.toLowerCase().replace(t," "))},i=window.location.search.substring(1),o={};e=r.exec(i);)o[n(e[1])]=n(e[2]);return o}function ct(e){return(e=e||"")!==decodeURIComponent(e)}function dt(e){for(;ct(e);)e=decodeURIComponent(e);return e}function lt(){var e=navigator.userAgent||navigator.vendor||window.opera;return/windows phone/i.test(e)?"windows":/android/i.test(e)?"android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"ios":""}function ft(e,t,r){return new Promise((function(n,i){if(r&&r.exists&&r.exists())n(ht(null==r?void 0:r.alternates));else{var o=r&&r.alternates&&r.alternates.length>0?ht(r.alternates):void 0,a=o||document.createElement("script"),s=r&&r.error_prefix?r.error_prefix:"Failed:";if(a.onload=function(){r&&r.exists&&!r.exists()?i("".concat(s," ").concat(e)):n(a)},a.onerror=function(){i("".concat(s," ").concat(e))},!o){if(a.type="text/javascript",!0===r.defer?a.defer=!0:a.async=!0,null==r?void 0:r.attrs)for(var u in r.attrs)a.setAttribute(u,r.attrs[u]);a.src=e,a.id=t,document.head.appendChild(a)}}}))}function pt(){var e=0,t=window;try{for(;t!=t.parent;)e++,t=t.parent}catch(e){}return e}function ht(e){if(e&&e.length){var t=document.querySelectorAll("script");if(t)for(var r in t){var n=t[r];if(e.includes(n.src))return n}}}function mt(e){return!!localStorage.getItem(e)}function vt(){var e=pt();if(0===e)return location.host.replace(/^www\.(.*)$/i,"$1");if(location.ancestorOrigins&&location.ancestorOrigins.length>0)return location.ancestorOrigins[location.ancestorOrigins.length-1].replace(/^https?:\/\/(www\.)?(.*)$/i,"$2");if(1===e){var t=function(e){if(e&&""!==e)try{return new C(e)}catch(e){}}(document.referrer);if(t)return t.host.replace(/^www\.(.*)$/i,"$1")}}var gt={has:mt,getBoolean:function(e,t){if(!mt(e))return t;var r=localStorage.getItem(e);return"true"===r||!0===r||1===r||"1"===r},getNumber:function(e,t){if(!mt(e))return t;var r=localStorage.getItem(e);return Number(r)},getString:function(e,t){return mt(e)?localStorage.getItem(e).toString():t},available:function(){var e=Date.now();try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}(),remove:function(e){localStorage.removeItem(e)},set:function(e,t){localStorage.setItem(e,t)}},At=Date.now(),bt={console:!1};function yt(e,t,r){try{if(gt.available&&gt.getBoolean("gd_debug_ex")||bt&&!0===bt.console){var n="error"===r?"background: #c4161e; color: #fff":"warning"===r?"background: #ff8c1c; color: #fff":"info"===r?"background: #ff0080; color: #fff":"background: #44a5ab; color: #fff",i=console.log("["+(Date.now()-At)/1e3+"s]%c %c %c gdsdk %c %c %c "+e+" ","background: #9854d8","background: #6c2ca7","color: #fff; background: #450f78;","background: #6c2ca7","background: #9854d8",n,void 0!==t?t:"");console.log.apply(console,i)}}catch(e){console.log(e)}}var _t=["SDK_READY","SDK_ERROR","SDK_LB_LOGIN","SDK_SHW_LB","SDK_GAME_START","SDK_GAME_PAUSE","SDK_GDPR_TRACKING","SDK_GDPR_TARGETING","SDK_GDPR_THIRD_PARTY","AD_SDK_MANAGER_READY","AD_SDK_CANCELED","AD_IS_ALREADY_RUNNING","SDK_REWARDED_WATCH_COMPLETE"],wt=["AD_ERROR","AD_BREAK_READY","AD_METADATA","ALL_ADS_COMPLETED","CLICK","COMPLETE","CONTENT_PAUSE_REQUESTED","CONTENT_RESUME_REQUESTED","DURATION_CHANGE","FIRST_QUARTILE","IMPRESSION","INTERACTION","LINEAR_CHANGED","LOADED","LOG","MIDPOINT","PAUSED","RESUMED","SKIPPABLE_STATE_CHANGED","SKIPPED","STARTED","THIRD_QUARTILE","USER_CLOSE","VOLUME_CHANGED","VOLUME_MUTED","DISPLAYAD_IMPRESSION","DISPLAYAD_ERROR"],xt={zIndex:1010},kt={zIndex:1020},Et={zIndex:1100},St=null,Dt=function(){function e(){if(O(this,e),St)return St;St=this,this.listeners={}}return M(e,[{key:"_getListenerIdx",value:function(e,t,r){var n,i=this.listeners[e],o=-1;if(!i||0===i.length)return o;for(n=0;n<i.length;n++)if(i[n].callback===t&&(!r||r===i[n].scope)){o=n;break}return o}},{key:"subscribe",value:function(e,t,r){var n;if(!e)throw new Error("Event name cannot be null or undefined.");if(!t||"function"!=typeof t)throw new Error("Listener must be of type function.");this._getListenerIdx(e,t,r)>=0?console.log(e,r):(n={callback:t,scope:r},this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(n))}},{key:"unsubscribeScope",value:function(e){for(var t=Object.keys(this.listeners),r=0;r<t.length;r++){for(var n=t[r],i=this.listeners[n],o=0;o<i.length;o++)i[o].scope===e&&(i.splice(o,1),o--);0===i.length&&delete this.listeners[n]}}},{key:"broadcast",value:function(e,t){var r=this.listeners[e];e&&this.listeners[e]&&((t=t||{}).name=t.name||e,r.forEach((function(e){e.callback.call(e.scope,t,e.scope)})))}},{key:"printScope",value:function(e){for(var t=Object.keys(this.listeners),r=0;r<t.length;r++)for(var n=t[r],i=this.listeners[n],o=0;o<i.length;o++)i[o].scope===e&&console.log(n,e)}}]),e}(),Rt=function(){function e(t){O(this,e),this.game=t.game,this.bridge=t.bridge}return M(e,[{key:"transform",value:function(e,t){var r=B(e);return this.transformValue(r,t)}},{key:"transformValue",value:function(e,t){if(U(e)||K(e))for(var r in e)e[r]=this.transformValue(e[r],t);else if(H(e)){var n,i=/\{\{(\w+)\}\}/g,o=[];do{if(n=i.exec(e)){n[0];var a=n[1],s=this.getMacroKeyValue(a,t);void 0!==s&&o.push({key:a,value:s})}}while(n);o.length>0&&o.forEach((function(t){e=e.replace(new RegExp("{{"+t.key+"}}","g"),t.value)}))}return e}},{key:"getMacroKeyValue",value:function(e,t){switch(e){case"CACHEBUSTER":return Date.now();case"GAME_ID":return this.game.gameId;case"GAME_TITLE":return this.game.title;case"COUNTRY_CODE":return this.game.ctry;case"PAGE_URL":return this.bridge.parentURL;case"PAGE_URL_ESC":return encodeURIComponent(this.bridge.parentURL);case"PAGE_URL_ESC_ESC":return encodeURIComponent(encodeURIComponent(this.bridge.parentURL));case"DOMAIN_MATCHED":return this.bridge.domainMatched?1:0;case"DOMAIN_PARENT":return this.bridge.parentDomain;case"DOMAIN_TOP":return this.bridge.topDomain;case"DEPTH":case"GAME_DEPTH":return this.bridge.depth;default:if(t&&q(t.get))return t.get(e)}}}]),e}(),It=function(){function e(t){O(this,e),this._config=t||{},this._url=t.url||"https://msgrt.gamedistribution.com/collect",this._topic_counter={},this._ua=(new Ae).getResult(),this._init_layout()}return M(e,[{key:"_init_layout",value:function(){var e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,t=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;e-=e%64,t-=t%64,this._layout={w:e,h:t}}},{key:"send",value:function(e,t){if(!this._config.isCoreSDKMode){this._size="".concat(this._layout.w," x ").concat(this._layout.h);var r=this._topic_counter[e]||0;this._topic_counter[e]=++r;var n={gmid:this._config.gameId,tdmn:this._config.topDomain,domn:this._config.domain,rfrr:this._config.referrer,lthr:this._config.hours,ctry:this._config.country,dpth:this._config.depth,vers:this._config.version,trac:this._config.tracking,whlb:this._config.whitelabel,plat:this._config.platform,tpct:r,args:t,ttle:document.title,size:this._size,brnm:this._ua.browser.name,brmj:this._ua.browser.major,osnm:this._ua.os.name,osvr:this._ua.os.version,dvmd:this._ua.device.model,byld:this._config.byloader,bylv:this._config.byloaderVersion,imgu:this._config.isMasterGameURL,iegu:this._config.isExtHostedGameURL,itgu:this._config.isTokenGameURL,cmpe:!1,host:window.location.hostname};"undefined"!=typeof idhb&&void 0!==idhb.iabCmpExists()&&(n.cmpe=idhb.iabCmpExists());try{n=encodeURIComponent(rt.encode(JSON.stringify([n]))),fetch(this._url+"?tp=com.gdsdk.".concat(e,"&ar=").concat(n,"&ts=").concat(Date.now()))}catch(e){}}}},{key:"setGameData",value:function(e){this._gameData=e,this._config.country=e.ctry}}]),e}(),Ct=null,Ot=function(){function e(t){if(O(this,e),Ct)return Ct;Ct=this,this.eventBus=new Dt,this._sdk=t}return M(e,[{key:"start",value:function(){var e="\n #gdsdk__console_container {\n display: flex;\n box-sizing: border-box;\n padding: 3px;\n background: linear-gradient(90deg,#3d1b5d,#5c3997);\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);\n color: #fff;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 8px;\n }\n #gdsdk__console_container button {\n flex: 1;\n background: #44a5ab;\n padding: 3px 10px;\n margin: 2px;\n border: 0;\n border-radius: 3px;\n color: #fff;\n outline: 0;\n cursor: pointer;\n font-size: 8px;\n box-shadow: 0 0 0 transparent;\n text-shadow: 0 0 0 transparent;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n #gdsdk__console_container button:hover {\n background: #4fb3b9;\n }\n #gdsdk__console_container button:active {\n background: #62bbc0;\n }\n ",t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e)),t.appendChild(r);var n=document.body||document.getElementsByTagName("body")[0],i=document.createElement("div");i.id="gdsdk__console",i.style.position="fixed",i.style.zIndex=Et.zIndex,i.style.bottom="0",i.style.left="0",i.style.width="100%",i.innerHTML='\n <div id="gdsdk__console_container">\n <button id="gdsdk__hbgdDebug">Activate hbgd debug</button>\n <button id="gdsdk__hbgdConfig">Log idhb config</button>\n \x3c!--\n <button id="gdsdk__resumeGame">Resume</button>\n <button id="gdsdk__pauseGame">Pause</button>\n --\x3e\n <button id="gdsdk__showLeaderboard">LeaderBoard</button>\n <button id="gdsdk__showInterstitial">Interstitial</button>\n <button id="gdsdk__showRewarded">Rewarded</button>\n \x3c!--\n <button id="gdsdk__preloadRewarded">Preload rewarded</button>\n --\x3e\n <button id="gdsdk__cancel">Cancel</button>\n <button id="gdsdk__demo">Demo VAST tag</button>\n <button id="gdsdk__disableMidrollTimer">Disable delay</button>\n <button id="gdsdk__closeDebug">Close</button>\n </div>\n ',n.appendChild(i);var o=document.getElementById("gdsdk__showLeaderboard"),a=document.getElementById("gdsdk__showInterstitial"),s=document.getElementById("gdsdk__showRewarded"),u=document.getElementById("gdsdk__cancel"),c=document.getElementById("gdsdk__demo"),d=document.getElementById("gdsdk__disableMidrollTimer"),l=document.getElementById("gdsdk__hbgdDebug"),f=document.getElementById("gdsdk__hbgdConfig"),p=document.getElementById("gdsdk__closeDebug");gt.getBoolean("gd_tag")?(c.innerHTML="Revert Vast tag",c.style.background="#ff8c1c"):(c.innerHTML="Demo VAST tag",c.style.background="#44a5ab"),gt.getBoolean("gd_disable_midroll_timer")?(d.innerHTML="Revert delay",d.style.background="#ff8c1c"):(d.innerHTML="Disable delay",d.style.background="#44a5ab"),gt.getBoolean("gd_hb_debug")?(l.innerHTML="Revert HB Debug",l.style.background="#ff8c1c"):(l.innerHTML="HB Debug",l.style.background="#44a5ab"),o.addEventListener("click",(function(){window.gdsdk.showLeaderBoard().catch((function(e){}))})),a.addEventListener("click",(function(){window.gdsdk.showAd(nt.Interstitial).catch((function(e){}))})),s.addEventListener("click",(function(){window.gdsdk.showAd(nt.Rewarded).catch((function(e){}))})),u.addEventListener("click",(function(){window.gdsdk.cancelAd().then((function(e){})).catch((function(e){}))})),c.addEventListener("click",(function(){try{gt.getBoolean("gd_tag")?gt.remove("gd_tag"):gt.set("gd_tag",!0),location.reload()}catch(e){console.log(e)}})),d.addEventListener("click",(function(){try{gt.getBoolean("gd_disable_midroll_timer")?gt.remove("gd_disable_midroll_timer"):gt.set("gd_disable_midroll_timer",!0),location.reload()}catch(e){console.log(e)}})),p.addEventListener("click",(function(){try{gt.getBoolean("gd_debug_ex")?gt.remove("gd_debug_ex"):gt.set("gd_debug_ex",!0),location.reload()}catch(e){console.log(e)}})),l.addEventListener("click",(function(){try{gt.getBoolean("gd_hb_debug")?gt.remove("gd_hb_debug"):gt.set("gd_hb_debug",!0),window.idhb&&window.idhb.debug(!(!gt.available||!gt.getBoolean("gd_hb_debug"))),location.reload()}catch(e){console.log(e)}})),f.addEventListener("click",(function(){try{var e=window.idhb.getConfig();console.info(e)}catch(e){console.log(e)}}))}}]),e}(),Tt=function(e){return e&&e.Math==Math&&e},Pt=Tt("object"==typeof globalThis&&globalThis)||Tt("object"==typeof window&&window)||Tt("object"==typeof self&&self)||Tt("object"==typeof i&&i)||function(){return this}()||Function("return this")(),Mt={exports:{}},Lt=Pt,Bt=Object.defineProperty,jt=function(e,t){try{Bt(Lt,e,{value:t,configurable:!0,writable:!0})}catch(r){Lt[e]=t}return t},Ut=jt,Ft="__core-js_shared__",Nt=Pt[Ft]||Ut(Ft,{}),$t=Nt;(Mt.exports=function(e,t){return $t[e]||($t[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Gt,Ht,zt=function(e){try{return!!e()}catch(e){return!0}},Zt=!zt((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Kt=Zt,qt=Function.prototype,Vt=qt.call,Wt=Kt&&qt.bind.bind(Vt,Vt),Yt=Kt?Wt:function(e){return function(){return Vt.apply(e,arguments)}},Qt=function(e){return null==e},Jt=Qt,Xt=TypeError,er=function(e){if(Jt(e))throw Xt("Can't call method on "+e);return e},tr=er,rr=Object,nr=function(e){return rr(tr(e))},ir=nr,or=Yt({}.hasOwnProperty),ar=Object.hasOwn||function(e,t){return or(ir(e),t)},sr=Yt,ur=0,cr=Math.random(),dr=sr(1..toString),lr=function(e){return"Symbol("+(void 0===e?"":e)+")_"+dr(++ur+cr,36)},fr="undefined"!=typeof navigator&&String(navigator.userAgent)||"",pr=Pt,hr=fr,mr=pr.process,vr=pr.Deno,gr=mr&&mr.versions||vr&&vr.version,Ar=gr&&gr.v8;Ar&&(Ht=(Gt=Ar.split("."))[0]>0&&Gt[0]<4?1:+(Gt[0]+Gt[1])),!Ht&&hr&&(!(Gt=hr.match(/Edge\/(\d+)/))||Gt[1]>=74)&&(Gt=hr.match(/Chrome\/(\d+)/))&&(Ht=+Gt[1]);var br=Ht,yr=br,_r=zt,wr=!!Object.getOwnPropertySymbols&&!_r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yr&&yr<41})),xr=wr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,kr=Pt,Er=Mt.exports,Sr=ar,Dr=lr,Rr=wr,Ir=xr,Cr=kr.Symbol,Or=Er("wks"),Tr=Ir?Cr.for||Cr:Cr&&Cr.withoutSetter||Dr,Pr=function(e){return Sr(Or,e)||(Or[e]=Rr&&Sr(Cr,e)?Cr[e]:Tr("Symbol."+e)),Or[e]},Mr={};Mr[Pr("toStringTag")]="z";var Lr="[object z]"===String(Mr),Br="object"==typeof document&&document.all,jr={all:Br,IS_HTMLDDA:void 0===Br&&void 0!==Br},Ur=jr.all,Fr=jr.IS_HTMLDDA?function(e){return"function"==typeof e||e===Ur}:function(e){return"function"==typeof e},Nr={},$r=!zt((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Gr=Fr,Hr=jr.all,zr=jr.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Gr(e)||e===Hr}:function(e){return"object"==typeof e?null!==e:Gr(e)},Zr=zr,Kr=Pt.document,qr=Zr(Kr)&&Zr(Kr.createElement),Vr=function(e){return qr?Kr.createElement(e):{}},Wr=Vr,Yr=!$r&&!zt((function(){return 7!=Object.defineProperty(Wr("div"),"a",{get:function(){return 7}}).a})),Qr=$r&&zt((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Jr=zr,Xr=String,en=TypeError,tn=function(e){if(Jr(e))return e;throw en(Xr(e)+" is not an object")},rn=Zt,nn=Function.prototype.call,on=rn?nn.bind(nn):function(){return nn.apply(nn,arguments)},an=Pt,sn=Fr,un=function(e,t){return arguments.length<2?(r=an[e],sn(r)?r:void 0):an[e]&&an[e][t];var r},cn=Yt({}.isPrototypeOf),dn=un,ln=Fr,fn=cn,pn=Object,hn=xr?function(e){return"symbol"==typeof e}:function(e){var t=dn("Symbol");return ln(t)&&fn(t.prototype,pn(e))},mn=String,vn=function(e){try{return mn(e)}catch(e){return"Object"}},gn=Fr,An=vn,bn=TypeError,yn=function(e){if(gn(e))return e;throw bn(An(e)+" is not a function")},_n=yn,wn=Qt,xn=function(e,t){var r=e[t];return wn(r)?void 0:_n(r)},kn=on,En=Fr,Sn=zr,Dn=TypeError,Rn=on,In=zr,Cn=hn,On=xn,Tn=function(e,t){var r,n;if("string"===t&&En(r=e.toString)&&!Sn(n=kn(r,e)))return n;if(En(r=e.valueOf)&&!Sn(n=kn(r,e)))return n;if("string"!==t&&En(r=e.toString)&&!Sn(n=kn(r,e)))return n;throw Dn("Can't convert object to primitive value")},Pn=TypeError,Mn=Pr("toPrimitive"),Ln=function(e,t){if(!In(e)||Cn(e))return e;var r,n=On(e,Mn);if(n){if(void 0===t&&(t="default"),r=Rn(n,e,t),!In(r)||Cn(r))return r;throw Pn("Can't convert object to primitive value")}return void 0===t&&(t="number"),Tn(e,t)},Bn=hn,jn=function(e){var t=Ln(e,"string");return Bn(t)?t:t+""},Un=$r,Fn=Yr,Nn=Qr,$n=tn,Gn=jn,Hn=TypeError,zn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,Kn="enumerable",qn="configurable",Vn="writable";Nr.f=Un?Nn?function(e,t,r){if($n(e),t=Gn(t),$n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Vn in r&&!r[Vn]){var n=Zn(e,t);n&&n[Vn]&&(e[t]=r.value,r={configurable:qn in r?r[qn]:n[qn],enumerable:Kn in r?r[Kn]:n[Kn],writable:!1})}return zn(e,t,r)}:zn:function(e,t,r){if($n(e),t=Gn(t),$n(r),Fn)try{return zn(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Hn("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Wn={exports:{}},Yn=$r,Qn=ar,Jn=Function.prototype,Xn=Yn&&Object.getOwnPropertyDescriptor,ei=Qn(Jn,"name"),ti={EXISTS:ei,PROPER:ei&&"something"===function(){}.name,CONFIGURABLE:ei&&(!Yn||Yn&&Xn(Jn,"name").configurable)},ri=Fr,ni=Nt,ii=Yt(Function.toString);ri(ni.inspectSource)||(ni.inspectSource=function(e){return ii(e)});var oi,ai,si,ui=ni.inspectSource,ci=Fr,di=Pt.WeakMap,li=ci(di)&&/native code/.test(String(di)),fi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},pi=Nr,hi=fi,mi=$r?function(e,t,r){return pi.f(e,t,hi(1,r))}:function(e,t,r){return e[t]=r,e},vi=Mt.exports,gi=lr,Ai=vi("keys"),bi=function(e){return Ai[e]||(Ai[e]=gi(e))},yi={},_i=li,wi=Pt,xi=zr,ki=mi,Ei=ar,Si=Nt,Di=bi,Ri=yi,Ii="Object already initialized",Ci=wi.TypeError,Oi=wi.WeakMap;if(_i||Si.state){var Ti=Si.state||(Si.state=new Oi);Ti.get=Ti.get,Ti.has=Ti.has,Ti.set=Ti.set,oi=function(e,t){if(Ti.has(e))throw Ci(Ii);return t.facade=e,Ti.set(e,t),t},ai=function(e){return Ti.get(e)||{}},si=function(e){return Ti.has(e)}}else{var Pi=Di("state");Ri[Pi]=!0,oi=function(e,t){if(Ei(e,Pi))throw Ci(Ii);return t.facade=e,ki(e,Pi,t),t},ai=function(e){return Ei(e,Pi)?e[Pi]:{}},si=function(e){return Ei(e,Pi)}}var Mi={set:oi,get:ai,has:si,enforce:function(e){return si(e)?ai(e):oi(e,{})},getterFor:function(e){return function(t){var r;if(!xi(t)||(r=ai(t)).type!==e)throw Ci("Incompatible receiver, "+e+" required");return r}}},Li=Yt,Bi=zt,ji=Fr,Ui=ar,Fi=$r,Ni=ti.CONFIGURABLE,$i=ui,Gi=Mi.enforce,Hi=Mi.get,zi=String,Zi=Object.defineProperty,Ki=Li("".slice),qi=Li("".replace),Vi=Li([].join),Wi=Fi&&!Bi((function(){return 8!==Zi((function(){}),"length",{value:8}).length})),Yi=String(String).split("String"),Qi=Wn.exports=function(e,t,r){"Symbol("===Ki(zi(t),0,7)&&(t="["+qi(zi(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Ui(e,"name")||Ni&&e.name!==t)&&(Fi?Zi(e,"name",{value:t,configurable:!0}):e.name=t),Wi&&r&&Ui(r,"arity")&&e.length!==r.arity&&Zi(e,"length",{value:r.arity});try{r&&Ui(r,"constructor")&&r.constructor?Fi&&Zi(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Gi(e);return Ui(n,"source")||(n.source=Vi(Yi,"string"==typeof t?t:"")),e};Function.prototype.toString=Qi((function(){return ji(this)&&Hi(this).source||$i(this)}),"toString");var Ji=Fr,Xi=Nr,eo=Wn.exports,to=jt,ro=function(e,t,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:t;if(Ji(r)&&eo(r,o,n),n.global)i?e[t]=r:to(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:Xi.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},no=Yt,oo=no({}.toString),ao=no("".slice),so=function(e){return ao(oo(e),8,-1)},uo=Lr,co=Fr,lo=so,fo=Pr("toStringTag"),po=Object,ho="Arguments"==lo(function(){return arguments}()),mo=uo?lo:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=po(e),fo))?r:ho?lo(t):"Object"==(n=lo(t))&&co(t.callee)?"Arguments":n},vo=mo,go=Lr?{}.toString:function(){return"[object "+vo(this)+"]"};Lr||ro(Object.prototype,"toString",go,{unsafe:!0});var Ao={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},bo=Vr("span").classList,yo=bo&&bo.constructor&&bo.constructor.prototype,_o=yo===Object.prototype?void 0:yo,wo=so,xo=Yt,ko=function(e){if("Function"===wo(e))return xo(e)},Eo=yn,So=Zt,Do=ko(ko.bind),Ro=function(e,t){return Eo(e),void 0===t?e:So?Do(e,t):function(){return e.apply(t,arguments)}},Io=zt,Co=so,Oo=Object,To=Yt("".split),Po=Io((function(){return!Oo("z").propertyIsEnumerable(0)}))?function(e){return"String"==Co(e)?To(e,""):Oo(e)}:Oo,Mo=Math.ceil,Lo=Math.floor,Bo=Math.trunc||function(e){var t=+e;return(t>0?Lo:Mo)(t)},jo=Bo,Uo=function(e){var t=+e;return t!=t||0===t?0:jo(t)},Fo=Uo,No=Math.min,$o=function(e){return e>0?No(Fo(e),9007199254740991):0},Go=$o,Ho=function(e){return Go(e.length)},zo=so,Zo=Array.isArray||function(e){return"Array"==zo(e)},Ko=Yt,qo=zt,Vo=Fr,Wo=mo,Yo=ui,Qo=function(){},Jo=[],Xo=un("Reflect","construct"),ea=/^\s*(?:class|function)\b/,ta=Ko(ea.exec),ra=!ea.exec(Qo),na=function(e){if(!Vo(e))return!1;try{return Xo(Qo,Jo,e),!0}catch(e){return!1}},ia=function(e){if(!Vo(e))return!1;switch(Wo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ra||!!ta(ea,Yo(e))}catch(e){return!0}};ia.sham=!0;var oa=!Xo||qo((function(){var e;return na(na.call)||!na(Object)||!na((function(){e=!0}))||e}))?ia:na,aa=Zo,sa=oa,ua=zr,ca=Pr("species"),da=Array,la=function(e){var t;return aa(e)&&(t=e.constructor,(sa(t)&&(t===da||aa(t.prototype))||ua(t)&&null===(t=t[ca]))&&(t=void 0)),void 0===t?da:t},fa=function(e,t){return new(la(e))(0===t?0:t)},pa=Ro,ha=Po,ma=nr,va=Ho,ga=fa,Aa=Yt([].push),ba=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(u,c,d,l){for(var f,p,h=ma(u),m=ha(h),v=pa(c,d),g=va(m),A=0,b=l||ga,y=t?b(u,g):r||a?b(u,0):void 0;g>A;A++)if((s||A in m)&&(p=v(f=m[A],A,h),e))if(t)y[A]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return A;case 2:Aa(y,f)}else switch(e){case 4:return!1;case 7:Aa(y,f)}return o?-1:n||i?i:y}},ya={forEach:ba(0),map:ba(1),filter:ba(2),some:ba(3),every:ba(4),find:ba(5),findIndex:ba(6),filterReject:ba(7)},_a=zt,wa=function(e,t){var r=[][e];return!!r&&_a((function(){r.call(null,t||function(){return 1},1)}))},xa=ya.forEach,ka=wa("forEach")?[].forEach:function(e){return xa(this,e,arguments.length>1?arguments[1]:void 0)},Ea=Pt,Sa=Ao,Da=_o,Ra=ka,Ia=mi,Ca=function(e){if(e&&e.forEach!==Ra)try{Ia(e,"forEach",Ra)}catch(t){e.forEach=Ra}};for(var Oa in Sa)Sa[Oa]&&Ca(Ea[Oa]&&Ea[Oa].prototype);Ca(Da);var Ta={},Pa={},Ma={}.propertyIsEnumerable,La=Object.getOwnPropertyDescriptor,Ba=La&&!Ma.call({1:2},1);Pa.f=Ba?function(e){var t=La(this,e);return!!t&&t.enumerable}:Ma;var ja=Po,Ua=er,Fa=function(e){return ja(Ua(e))},Na=$r,$a=on,Ga=Pa,Ha=fi,za=Fa,Za=jn,Ka=ar,qa=Yr,Va=Object.getOwnPropertyDescriptor;Ta.f=Na?Va:function(e,t){if(e=za(e),t=Za(t),qa)try{return Va(e,t)}catch(e){}if(Ka(e,t))return Ha(!$a(Ga.f,e,t),e[t])};var Wa={},Ya=Uo,Qa=Math.max,Ja=Math.min,Xa=function(e,t){var r=Ya(e);return r<0?Qa(r+t,0):Ja(r,t)},es=Fa,ts=Xa,rs=Ho,ns=function(e){return function(t,r,n){var i,o=es(t),a=rs(o),s=ts(n,a);if(e&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},is={includes:ns(!0),indexOf:ns(!1)},os=ar,as=Fa,ss=is.indexOf,us=yi,cs=Yt([].push),ds=function(e,t){var r,n=as(e),i=0,o=[];for(r in n)!os(us,r)&&os(n,r)&&cs(o,r);for(;t.length>i;)os(n,r=t[i++])&&(~ss(o,r)||cs(o,r));return o},ls=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fs=ds,ps=ls.concat("length","prototype");Wa.f=Object.getOwnPropertyNames||function(e){return fs(e,ps)};var hs={};hs.f=Object.getOwnPropertySymbols;var ms=un,vs=Wa,gs=hs,As=tn,bs=Yt([].concat),ys=ms("Reflect","ownKeys")||function(e){var t=vs.f(As(e)),r=gs.f;return r?bs(t,r(e)):t},_s=ar,ws=ys,xs=Ta,ks=Nr,Es=function(e,t,r){for(var n=ws(t),i=ks.f,o=xs.f,a=0;a<n.length;a++){var s=n[a];_s(e,s)||r&&_s(r,s)||i(e,s,o(t,s))}},Ss=zt,Ds=Fr,Rs=/#|\.prototype\./,Is=function(e,t){var r=Os[Cs(e)];return r==Ps||r!=Ts&&(Ds(t)?Ss(t):!!t)},Cs=Is.normalize=function(e){return String(e).replace(Rs,".").toLowerCase()},Os=Is.data={},Ts=Is.NATIVE="N",Ps=Is.POLYFILL="P",Ms=Is,Ls=Pt,Bs=Ta.f,js=mi,Us=ro,Fs=jt,Ns=Es,$s=Ms,Gs=function(e,t){var r,n,i,o,a,s=e.target,u=e.global,c=e.stat;if(r=u?Ls:c?Ls[s]||Fs(s,{}):(Ls[s]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(a=Bs(r,n))&&a.value:r[n],!$s(u?n:s+(c?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ns(o,i)}(e.sham||i&&i.sham)&&js(o,"sham",!0),Us(r,n,o,e)}},Hs=ds,zs=ls,Zs=Object.keys||function(e){return Hs(e,zs)},Ks=nr,Vs=Zs;Gs({target:"Object",stat:!0,forced:zt((function(){Vs(1)}))},{keys:function(e){return Vs(Ks(e))}});var Ws={name:"@bygd/gd-sdk-pes",version:"1.41.17",files:["dist/*"],scripts:{build:"NODE_ENV=production rollup --config",watch:"rollup --config --watch --sourcemap inline --environment DEVELOPMENT","deploy-base":"npm install && npm run build && npm publish --access public",deploy:"npm run deploy-base && gdtool pm-upload"},repository:{type:"git",url:"git@gitlab.azerdev.com:gamedistribution/gd-sdk-pes.git"},author:"",license:"ISC",devDependencies:{"@babel/core":"^7.14.6","@babel/plugin-transform-runtime":"^7.14.5","@babel/preset-env":"^7.14.7","@rollup/plugin-babel":"^5.2.3","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-replace":"^3.0.0",postcss:"^8.3.5",rollup:"^2.52.8","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-browsersync":"^1.3.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-polyfills":"^0.2.1","rollup-plugin-peer-deps-external":"^2.2.4","rollup-plugin-postcss":"^4.0.0","rollup-plugin-terser":"^7.0.2"},dependencies:{"@babel/runtime":"^7.14.6","@bygd/gd-sdk-era":"^0.3.6","@flownet/lib-connect-to-tcf":"^0.2.10","@fnet/inter-service-js":"^0.9.4",axios:"^0.26.1","can-autoplay":"^3.0.2",events:"^3.3.0","get-value":"^3.0.1","is-plain-object":"^5.0.0","is-valid-domain":"^0.1.2","js-base64":"^3.6.1","leaderboard-lib":"0.1.11","lodash.clonedeep":"^4.5.0","lodash.merge":"^4.6.2",querystringify:"^2.2.0","set-value":"^4.1.0","url-parse":"^1.4.7",uuid:"^8.3.2",validator:"^13.6.0"}},Ys=function(e){var t=Qs("object"===n(e)?e:function(e){if(e)try{return JSON.parse(e)}catch(e){}}(e));return t&&t.version?Ws.version>=t.version?t:void 0:t},Qs=function(e){var t=this;if(!K(e)||0===e.length)return e;if(1===e.length)return e[0];var n=0;e.forEach(function(e){r(this,t),e.weight=e.weight||1,n+=e.weight}.bind(this));var i=Math.floor(Math.random()*Math.floor(n));n=0;for(var o=0;o<e.length;o++){var a=e[o];if(i<(n+=a.weight))return a}},Js=function(){},Xs=function(){var e;(e=console).log.apply(e,arguments)},eu=function(){var e;(e=console).log.apply(e,arguments)};JSON.stringify({adapters:{default:["ima","adsense","ima","adsense"],preroll:["ima","adsense","ima","adsense"],midroll:["ima","adsense","ima","adsense"],rewarded:["ima","adsense","ima","adsense"]}}),JSON.stringify({adapters:{default:["ima","adsense","ima","adsense"],preroll:["ima","adsense","ima"],midroll:["ima","adsense","ima"],rewarded:["ima","adsense","ima","adsense"]}});var tu={};function ru(e,t,r){return(t=T(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nu=mo,iu=String,ou=function(e){if("Symbol"===nu(e))throw TypeError("Cannot convert a Symbol value to a string");return iu(e)},au={},su=$r,uu=Qr,cu=Nr,du=tn,lu=Fa,fu=Zs;au.f=su&&!uu?Object.defineProperties:function(e,t){du(e);for(var r,n=lu(t),i=fu(t),o=i.length,a=0;o>a;)cu.f(e,r=i[a++],n[r]);return e};var pu,hu=un("document","documentElement"),mu=tn,vu=au,gu=ls,Au=yi,bu=hu,yu=Vr,_u="prototype",wu="script",xu=bi("IE_PROTO"),ku=function(){},Eu=function(e){return"<"+wu+">"+e+"</"+wu+">"},Su=function(e){e.write(Eu("")),e.close();var t=e.parentWindow.Object;return e=null,t},Du=function(){try{pu=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;Du="undefined"!=typeof document?document.domain&&pu?Su(pu):(t=yu("iframe"),r="java"+wu+":",t.style.display="none",bu.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Eu("document.F=Object")),e.close(),e.F):Su(pu);for(var n=gu.length;n--;)delete Du[_u][gu[n]];return Du()};Au[xu]=!0;var Ru=Object.create||function(e,t){var r;return null!==e?(ku[_u]=mu(e),r=new ku,ku[_u]=null,r[xu]=e):r=Du(),void 0===t?r:vu.f(r,t)},Iu={},Cu=jn,Ou=Nr,Tu=fi,Pu=function(e,t,r){var n=Cu(t);n in e?Ou.f(e,n,Tu(0,r)):e[n]=r},Mu=Xa,Lu=Ho,Bu=Pu,ju=Array,Uu=Math.max,Fu=function(e,t,r){for(var n=Lu(e),i=Mu(t,n),o=Mu(void 0===r?n:r,n),a=ju(Uu(o-i,0)),s=0;i<o;i++,s++)Bu(a,s,e[i]);return a.length=s,a},Nu=so,$u=Fa,Gu=Wa.f,Hu=Fu,zu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Iu.f=function(e){return zu&&"Window"==Nu(e)?function(e){try{return Gu(e)}catch(e){return Hu(zu)}}(e):Gu($u(e))};var Zu=Wn.exports,Ku=Nr,qu=function(e,t,r){return r.get&&Zu(r.get,t,{getter:!0}),r.set&&Zu(r.set,t,{setter:!0}),Ku.f(e,t,r)},Vu={},Wu=Pr;Vu.f=Wu;var Yu=Pt,Qu=ar,Ju=Vu,Xu=Nr.f,ec=function(e){var t=Yu.Symbol||(Yu.Symbol={});Qu(t,e)||Xu(t,e,{value:Ju.f(e)})},tc=on,rc=un,nc=Pr,ic=ro,oc=Nr.f,ac=ar,sc=Pr("toStringTag"),uc=function(e,t,r){e&&!r&&(e=e.prototype),e&&!ac(e,sc)&&oc(e,sc,{configurable:!0,value:t})},cc=Gs,dc=Pt,lc=on,fc=Yt,pc=$r,hc=wr,mc=zt,vc=ar,gc=cn,Ac=tn,bc=Fa,yc=jn,_c=ou,wc=fi,xc=Ru,kc=Zs,Ec=Wa,Sc=Iu,Dc=hs,Rc=Ta,Ic=Nr,Cc=au,Oc=Pa,Tc=ro,Pc=qu,Mc=Mt.exports,Lc=yi,Bc=lr,jc=Pr,Uc=Vu,Fc=ec,Nc=function(){var e=rc("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=nc("toPrimitive");t&&!t[n]&&ic(t,n,(function(e){return tc(r,this)}),{arity:1})},$c=uc,Gc=Mi,Hc=ya.forEach,zc=bi("hidden"),Zc="Symbol",Kc="prototype",qc=Gc.set,Vc=Gc.getterFor(Zc),Wc=Object[Kc],Yc=dc.Symbol,Qc=Yc&&Yc[Kc],Jc=dc.TypeError,Xc=dc.QObject,ed=Rc.f,td=Ic.f,rd=Sc.f,nd=Oc.f,id=fc([].push),od=Mc("symbols"),ad=Mc("op-symbols"),sd=Mc("wks"),ud=!Xc||!Xc[Kc]||!Xc[Kc].findChild,cd=pc&&mc((function(){return 7!=xc(td({},"a",{get:function(){return td(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=ed(Wc,t);n&&delete Wc[t],td(e,t,r),n&&e!==Wc&&td(Wc,t,n)}:td,dd=function(e,t){var r=od[e]=xc(Qc);return qc(r,{type:Zc,tag:e,description:t}),pc||(r.description=t),r},ld=function(e,t,r){e===Wc&&ld(ad,t,r),Ac(e);var n=yc(t);return Ac(r),vc(od,n)?(r.enumerable?(vc(e,zc)&&e[zc][n]&&(e[zc][n]=!1),r=xc(r,{enumerable:wc(0,!1)})):(vc(e,zc)||td(e,zc,wc(1,{})),e[zc][n]=!0),cd(e,n,r)):td(e,n,r)},fd=function(e,t){Ac(e);var r=bc(t),n=kc(r).concat(vd(r));return Hc(n,(function(t){pc&&!lc(pd,r,t)||ld(e,t,r[t])})),e},pd=function(e){var t=yc(e),r=lc(nd,this,t);return!(this===Wc&&vc(od,t)&&!vc(ad,t))&&(!(r||!vc(this,t)||!vc(od,t)||vc(this,zc)&&this[zc][t])||r)},hd=function(e,t){var r=bc(e),n=yc(t);if(r!==Wc||!vc(od,n)||vc(ad,n)){var i=ed(r,n);return!i||!vc(od,n)||vc(r,zc)&&r[zc][n]||(i.enumerable=!0),i}},md=function(e){var t=rd(bc(e)),r=[];return Hc(t,(function(e){vc(od,e)||vc(Lc,e)||id(r,e)})),r},vd=function(e){var t=e===Wc,r=rd(t?ad:bc(e)),n=[];return Hc(r,(function(e){!vc(od,e)||t&&!vc(Wc,e)||id(n,od[e])})),n};hc||(Yc=function(){if(gc(Qc,this))throw Jc("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?_c(arguments[0]):void 0,t=Bc(e),r=function(e){this===Wc&&lc(r,ad,e),vc(this,zc)&&vc(this[zc],t)&&(this[zc][t]=!1),cd(this,t,wc(1,e))};return pc&&ud&&cd(Wc,t,{configurable:!0,set:r}),dd(t,e)},Tc(Qc=Yc[Kc],"toString",(function(){return Vc(this).tag})),Tc(Yc,"withoutSetter",(function(e){return dd(Bc(e),e)})),Oc.f=pd,Ic.f=ld,Cc.f=fd,Rc.f=hd,Ec.f=Sc.f=md,Dc.f=vd,Uc.f=function(e){return dd(jc(e),e)},pc&&(Pc(Qc,"description",{configurable:!0,get:function(){return Vc(this).description}}),Tc(Wc,"propertyIsEnumerable",pd,{unsafe:!0}))),cc({global:!0,constructor:!0,wrap:!0,forced:!hc,sham:!hc},{Symbol:Yc}),Hc(kc(sd),(function(e){Fc(e)})),cc({target:Zc,stat:!0,forced:!hc},{useSetter:function(){ud=!0},useSimple:function(){ud=!1}}),cc({target:"Object",stat:!0,forced:!hc,sham:!pc},{create:function(e,t){return void 0===t?xc(e):fd(xc(e),t)},defineProperty:ld,defineProperties:fd,getOwnPropertyDescriptor:hd}),cc({target:"Object",stat:!0,forced:!hc},{getOwnPropertyNames:md}),Nc(),$c(Yc,Zc),Lc[zc]=!0;var gd=wr&&!!Symbol.for&&!!Symbol.keyFor,Ad=Gs,bd=un,yd=ar,_d=ou,wd=Mt.exports,xd=gd,kd=wd("string-to-symbol-registry"),Ed=wd("symbol-to-string-registry");Ad({target:"Symbol",stat:!0,forced:!xd},{for:function(e){var t=_d(e);if(yd(kd,t))return kd[t];var r=bd("Symbol")(t);return kd[t]=r,Ed[r]=t,r}});var Sd=Gs,Dd=ar,Rd=hn,Id=vn,Cd=gd,Od=(0,Mt.exports)("symbol-to-string-registry");Sd({target:"Symbol",stat:!0,forced:!Cd},{keyFor:function(e){if(!Rd(e))throw TypeError(Id(e)+" is not a symbol");if(Dd(Od,e))return Od[e]}});var Td=Zt,Pd=Function.prototype,Md=Pd.apply,Ld=Pd.call,Bd="object"==typeof Reflect&&Reflect.apply||(Td?Ld.bind(Md):function(){return Ld.apply(Md,arguments)}),jd=Yt([].slice),Ud=Zo,Fd=Fr,Nd=so,$d=ou,Gd=Yt([].push),Hd=Gs,zd=un,Zd=Bd,Kd=on,qd=Yt,Vd=zt,Wd=Fr,Yd=hn,Qd=jd,Jd=function(e){if(Fd(e))return e;if(Ud(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?Gd(r,i):"number"!=typeof i&&"Number"!=Nd(i)&&"String"!=Nd(i)||Gd(r,$d(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Ud(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},Xd=wr,el=String,tl=zd("JSON","stringify"),rl=qd(/./.exec),nl=qd("".charAt),il=qd("".charCodeAt),ol=qd("".replace),al=qd(1..toString),sl=/[\uD800-\uDFFF]/g,ul=/^[\uD800-\uDBFF]$/,cl=/^[\uDC00-\uDFFF]$/,dl=!Xd||Vd((function(){var e=zd("Symbol")();return"[null]"!=tl([e])||"{}"!=tl({a:e})||"{}"!=tl(Object(e))})),ll=Vd((function(){return'"\\udf06\\ud834"'!==tl("\udf06\ud834")||'"\\udead"'!==tl("\udead")})),fl=function(e,t){var r=Qd(arguments),n=Jd(t);if(Wd(n)||void 0!==e&&!Yd(e))return r[1]=function(e,t){if(Wd(n)&&(t=Kd(n,this,el(e),t)),!Yd(t))return t},Zd(tl,null,r)},pl=function(e,t,r){var n=nl(r,t-1),i=nl(r,t+1);return rl(ul,e)&&!rl(cl,i)||rl(cl,e)&&!rl(ul,n)?"\\u"+al(il(e,0),16):e};tl&&Hd({target:"JSON",stat:!0,arity:3,forced:dl||ll},{stringify:function(e,t,r){var n=Qd(arguments),i=Zd(dl?fl:tl,null,n);return ll&&"string"==typeof i?ol(i,sl,pl):i}});var hl=hs,ml=nr;Gs({target:"Object",stat:!0,forced:!wr||zt((function(){hl.f(1)}))},{getOwnPropertySymbols:function(e){var t=hl.f;return t?t(ml(e)):[]}});var vl=zt,gl=br,Al=Pr("species"),bl=function(e){return gl>=51||!vl((function(){var t=[];return(t.constructor={})[Al]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},yl=ya.filter;Gs({target:"Array",proto:!0,forced:!bl("filter")},{filter:function(e){return yl(this,e,arguments.length>1?arguments[1]:void 0)}});var _l=Gs,wl=zt,xl=Fa,kl=Ta.f,El=$r;_l({target:"Object",stat:!0,forced:!El||wl((function(){kl(1)})),sham:!El},{getOwnPropertyDescriptor:function(e,t){return kl(xl(e),t)}});var Sl=ys,Dl=Fa,Rl=Ta,Il=Pu;Gs({target:"Object",stat:!0,sham:!$r},{getOwnPropertyDescriptors:function(e){for(var t,r,n=Dl(e),i=Rl.f,o=Sl(n),a={},s=0;o.length>s;)void 0!==(r=i(n,t=o[s++]))&&Il(a,t,r);return a}});var Cl=Gs,Ol=Zo,Tl=oa,Pl=zr,Ml=Xa,Ll=Ho,Bl=Fa,jl=Pu,Ul=Pr,Fl=jd,Nl=bl("slice"),$l=Ul("species"),Gl=Array,Hl=Math.max;Cl({target:"Array",proto:!0,forced:!Nl},{slice:function(e,t){var r,n,i,o=Bl(this),a=Ll(o),s=Ml(e,a),u=Ml(void 0===t?a:t,a);if(Ol(o)&&(r=o.constructor,(Tl(r)&&(r===Gl||Ol(r.prototype))||Pl(r)&&null===(r=r[$l]))&&(r=void 0),r===Gl||void 0===r))return Fl(o,s,u);for(n=new(void 0===r?Gl:r)(Hl(u-s,0)),i=0;s<u;s++,i++)s in o&&jl(n,i,o[s]);return n.length=i,n}});var zl=on,Zl=tn,Kl=xn,ql=function(e,t,r){var n,i;Zl(e);try{if(!(n=Kl(e,"return"))){if("throw"===t)throw r;return r}n=zl(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return Zl(n),r},Vl=tn,Wl=ql,Yl={},Ql=Yl,Jl=Pr("iterator"),Xl=Array.prototype,ef=function(e){return void 0!==e&&(Ql.Array===e||Xl[Jl]===e)},tf=mo,rf=xn,nf=Qt,of=Yl,af=Pr("iterator"),sf=function(e){if(!nf(e))return rf(e,af)||rf(e,"@@iterator")||of[tf(e)]},uf=on,cf=yn,df=tn,lf=vn,ff=sf,pf=TypeError,hf=function(e,t){var r=arguments.length<2?ff(e):t;if(cf(r))return df(uf(r,e));throw pf(lf(e)+" is not iterable")},mf=Ro,vf=on,gf=nr,Af=function(e,t,r,n){try{return n?t(Vl(r)[0],r[1]):t(r)}catch(t){Wl(e,"throw",t)}},bf=ef,yf=oa,_f=Ho,wf=Pu,xf=hf,kf=sf,Ef=Array,Sf=function(e){var t=gf(e),r=yf(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=mf(i,n>2?arguments[2]:void 0));var a,s,u,c,d,l,f=kf(t),p=0;if(!f||this===Ef&&bf(f))for(a=_f(t),s=r?new this(a):Ef(a);a>p;p++)l=o?i(t[p],p):t[p],wf(s,p,l);else for(d=(c=xf(t,f)).next,s=r?new this:[];!(u=vf(d,c)).done;p++)l=o?Af(c,i,[u.value,p],!0):u.value,wf(s,p,l);return s.length=p,s},Df=Pr("iterator"),Rf=!1;try{var If=0,Cf={next:function(){return{done:!!If++}},return:function(){Rf=!0}};Cf[Df]=function(){return this},Array.from(Cf,(function(){throw 2}))}catch(SS){}var Of=function(e,t){if(!t&&!Rf)return!1;var r=!1;try{var n={};n[Df]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},Tf=Sf;Gs({target:"Array",stat:!0,forced:!Of((function(e){Array.from(e)}))},{from:Tf});var Pf,Mf,Lf,Bf=Yt,jf=Uo,Uf=ou,Ff=er,Nf=Bf("".charAt),$f=Bf("".charCodeAt),Gf=Bf("".slice),Hf=function(e){return function(t,r){var n,i,o=Uf(Ff(t)),a=jf(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=$f(o,a))<55296||n>56319||a+1===s||(i=$f(o,a+1))<56320||i>57343?e?Nf(o,a):n:e?Gf(o,a,a+2):i-56320+(n-55296<<10)+65536}},zf={codeAt:Hf(!1),charAt:Hf(!0)},Zf=!zt((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Kf=ar,qf=Fr,Vf=nr,Wf=Zf,Yf=bi("IE_PROTO"),Qf=Object,Jf=Qf.prototype,Xf=Wf?Qf.getPrototypeOf:function(e){var t=Vf(e);if(Kf(t,Yf))return t[Yf];var r=t.constructor;return qf(r)&&t instanceof r?r.prototype:t instanceof Qf?Jf:null},ep=zt,tp=Fr,rp=zr,np=Xf,ip=ro,op=Pr("iterator"),ap=!1;[].keys&&("next"in(Lf=[].keys())?(Mf=np(np(Lf)))!==Object.prototype&&(Pf=Mf):ap=!0);var sp=!rp(Pf)||ep((function(){var e={};return Pf[op].call(e)!==e}));sp&&(Pf={}),tp(Pf[op])||ip(Pf,op,(function(){return this}));var up={IteratorPrototype:Pf,BUGGY_SAFARI_ITERATORS:ap},cp=up.IteratorPrototype,dp=Ru,lp=fi,fp=uc,pp=Yl,hp=function(){return this},mp=function(e,t,r,n){var i=t+" Iterator";return e.prototype=dp(cp,{next:lp(+!n,r)}),fp(e,i,!1),pp[i]=hp,e},vp=Yt,gp=yn,Ap=Fr,bp=String,yp=TypeError,_p=function(e,t,r){try{return vp(gp(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},wp=tn,xp=function(e){if("object"==typeof e||Ap(e))return e;throw yp("Can't set "+bp(e)+" as a prototype")},kp=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=_p(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return wp(r),xp(n),t?e(r,n):r.__proto__=n,r}}():void 0),Ep=Gs,Sp=on,Dp=Fr,Rp=mp,Ip=Xf,Cp=kp,Op=uc,Tp=mi,Pp=ro,Mp=Yl,Lp=ti.PROPER,Bp=ti.CONFIGURABLE,jp=up.IteratorPrototype,Up=up.BUGGY_SAFARI_ITERATORS,Fp=Pr("iterator"),Np="keys",$p="values",Gp="entries",Hp=function(){return this},zp=function(e,t,r,n,i,o,a){Rp(r,t,n);var s,u,c,d=function(e){if(e===i&&m)return m;if(!Up&&e in p)return p[e];switch(e){case Np:case $p:case Gp:return function(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",f=!1,p=e.prototype,h=p[Fp]||p["@@iterator"]||i&&p[i],m=!Up&&h||d(i),v="Array"==t&&p.entries||h;if(v&&(s=Ip(v.call(new e)))!==Object.prototype&&s.next&&(Ip(s)!==jp&&(Cp?Cp(s,jp):Dp(s[Fp])||Pp(s,Fp,Hp)),Op(s,l,!0)),Lp&&i==$p&&h&&h.name!==$p&&(Bp?Tp(p,"name",$p):(f=!0,m=function(){return Sp(h,this)})),i)if(u={values:d($p),keys:o?m:d(Np),entries:d(Gp)},a)for(c in u)(Up||f||!(c in p))&&Pp(p,c,u[c]);else Ep({target:t,proto:!0,forced:Up||f},u);return p[Fp]!==m&&Pp(p,Fp,m,{name:i}),Mp[t]=m,u},Zp=function(e,t){return{value:e,done:t}},Kp=zf.charAt,qp=ou,Vp=Mi,Wp=zp,Yp=Zp,Qp="String Iterator",Jp=Vp.set,Xp=Vp.getterFor(Qp);Wp(String,"String",(function(e){Jp(this,{type:Qp,string:qp(e),index:0})}),(function(){var e,t=Xp(this),r=t.string,n=t.index;return n>=r.length?Yp(void 0,!0):(e=Kp(r,n),t.index+=e.length,Yp(e,!1))}));var eh=tn,th=function(){var e=eh(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},rh=zt,nh=Pt.RegExp,ih=rh((function(){var e=nh("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),oh=ih||rh((function(){return!nh("a","y").sticky})),ah=ih||rh((function(){var e=nh("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),sh={BROKEN_CARET:ah,MISSED_STICKY:oh,UNSUPPORTED_Y:ih},uh=zt,ch=Pt.RegExp,dh=uh((function(){var e=ch(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),lh=zt,fh=Pt.RegExp,ph=lh((function(){var e=fh("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),hh=on,mh=Yt,vh=ou,gh=th,Ah=sh,bh=Mt.exports,yh=Ru,_h=Mi.get,wh=dh,xh=ph,kh=bh("native-string-replace",String.prototype.replace),Eh=RegExp.prototype.exec,Sh=Eh,Dh=mh("".charAt),Rh=mh("".indexOf),Ih=mh("".replace),Ch=mh("".slice),Oh=function(){var e=/a/,t=/b*/g;return hh(Eh,e,"a"),hh(Eh,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Th=Ah.BROKEN_CARET,Ph=void 0!==/()??/.exec("")[1];(Oh||Ph||Th||wh||xh)&&(Sh=function(e){var t,r,n,i,o,a,s,u=this,c=_h(u),d=vh(e),l=c.raw;if(l)return l.lastIndex=u.lastIndex,t=hh(Sh,l,d),u.lastIndex=l.lastIndex,t;var f=c.groups,p=Th&&u.sticky,h=hh(gh,u),m=u.source,v=0,g=d;if(p&&(h=Ih(h,"y",""),-1===Rh(h,"g")&&(h+="g"),g=Ch(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Dh(d,u.lastIndex-1))&&(m="(?: "+m+")",g=" "+g,v++),r=new RegExp("^(?:"+m+")",h)),Ph&&(r=new RegExp("^"+m+"$(?!\\s)",h)),Oh&&(n=u.lastIndex),i=hh(Eh,p?r:u,g),p?i?(i.input=Ch(i.input,v),i[0]=Ch(i[0],v),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:Oh&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),Ph&&i&&i.length>1&&hh(kh,i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&f)for(i.groups=a=yh(null),o=0;o<f.length;o++)a[(s=f[o])[0]]=i[s[1]];return i});var Mh=Sh;Gs({target:"RegExp",proto:!0,forced:/./.exec!==Mh},{exec:Mh});var Lh=Gs,Bh=$r,jh=Yt,Uh=ar,Fh=Fr,Nh=cn,$h=ou,Gh=qu,Hh=Es,zh=Pt.Symbol,Zh=zh&&zh.prototype;if(Bh&&Fh(zh)&&(!("description"in Zh)||void 0!==zh().description)){var Kh={},qh=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:$h(arguments[0]),t=Nh(Zh,this)?new zh(e):void 0===e?zh():zh(e);return""===e&&(Kh[t]=!0),t};Hh(qh,zh),qh.prototype=Zh,Zh.constructor=qh;var Vh="Symbol(test)"==String(zh("test")),Wh=jh(Zh.valueOf),Yh=jh(Zh.toString),Qh=/^Symbol\((.*)\)[^)]+$/,Jh=jh("".replace),Xh=jh("".slice);Gh(Zh,"description",{configurable:!0,get:function(){var e=Wh(this);if(Uh(Kh,e))return"";var t=Yh(e),r=Vh?Xh(t,7,-1):Jh(t,Qh,"$1");return""===r?void 0:r}}),Lh({global:!0,constructor:!0,forced:!0},{Symbol:qh})}ec("iterator");var em=Pr,tm=Ru,rm=Nr.f,nm=em("unscopables"),im=Array.prototype;null==im[nm]&&rm(im,nm,{configurable:!0,value:tm(null)});var om=function(e){im[nm][e]=!0},am=Fa,sm=om,um=Yl,cm=Mi,dm=Nr.f,lm=zp,fm=Zp,pm=$r,hm="Array Iterator",mm=cm.set,vm=cm.getterFor(hm),gm=lm(Array,"Array",(function(e,t){mm(this,{type:hm,target:am(e),index:0,kind:t})}),(function(){var e=vm(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,fm(void 0,!0)):fm("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),Am=um.Arguments=um.Array;if(sm("keys"),sm("values"),sm("entries"),pm&&"values"!==Am.name)try{dm(Am,"name",{value:"values"})}catch(SS){}var bm=Pt,ym=Ao,_m=_o,wm=gm,xm=mi,km=Pr,Em=km("iterator"),Sm=km("toStringTag"),Dm=wm.values,Rm=function(e,t){if(e){if(e[Em]!==Dm)try{xm(e,Em,Dm)}catch(t){e[Em]=Dm}if(e[Sm]||xm(e,Sm,t),ym[t])for(var r in wm)if(e[r]!==wm[r])try{xm(e,r,wm[r])}catch(t){e[r]=wm[r]}}};for(var Im in ym)Rm(bm[Im]&&bm[Im].prototype,Im);Rm(_m,"DOMTokenList");var Cm,Om,Tm,Pm,Mm="undefined"!=typeof process&&"process"==so(process),Lm=un,Bm=qu,jm=$r,Um=Pr("species"),Fm=function(e){var t=Lm(e);jm&&t&&!t[Um]&&Bm(t,Um,{configurable:!0,get:function(){return this}})},Nm=cn,$m=TypeError,Gm=function(e,t){if(Nm(t,e))return e;throw $m("Incorrect invocation")},Hm=oa,zm=vn,Zm=TypeError,Km=tn,qm=function(e){if(Hm(e))return e;throw Zm(zm(e)+" is not a constructor")},Vm=Qt,Wm=Pr("species"),Ym=function(e,t){var r,n=Km(e).constructor;return void 0===n||Vm(r=Km(n)[Wm])?t:qm(r)},Qm=TypeError,Jm=function(e,t){if(e<t)throw Qm("Not enough arguments");return e},Xm=/(?:ipad|iphone|ipod).*applewebkit/i.test(fr),ev=Pt,tv=Bd,rv=Ro,nv=Fr,iv=ar,ov=zt,av=hu,sv=jd,uv=Vr,cv=Jm,dv=Xm,lv=Mm,fv=ev.setImmediate,pv=ev.clearImmediate,hv=ev.process,mv=ev.Dispatch,vv=ev.Function,gv=ev.MessageChannel,Av=ev.String,bv=0,yv={},_v="onreadystatechange";ov((function(){Cm=ev.location}));var wv=function(e){if(iv(yv,e)){var t=yv[e];delete yv[e],t()}},xv=function(e){return function(){wv(e)}},kv=function(e){wv(e.data)},Ev=function(e){ev.postMessage(Av(e),Cm.protocol+"//"+Cm.host)};fv&&pv||(fv=function(e){cv(arguments.length,1);var t=nv(e)?e:vv(e),r=sv(arguments,1);return yv[++bv]=function(){tv(t,void 0,r)},Om(bv),bv},pv=function(e){delete yv[e]},lv?Om=function(e){hv.nextTick(xv(e))}:mv&&mv.now?Om=function(e){mv.now(xv(e))}:gv&&!dv?(Pm=(Tm=new gv).port2,Tm.port1.onmessage=kv,Om=rv(Pm.postMessage,Pm)):ev.addEventListener&&nv(ev.postMessage)&&!ev.importScripts&&Cm&&"file:"!==Cm.protocol&&!ov(Ev)?(Om=Ev,ev.addEventListener("message",kv,!1)):Om=_v in uv("script")?function(e){av.appendChild(uv("script"))[_v]=function(){av.removeChild(this),wv(e)}}:function(e){setTimeout(xv(e),0)});var Sv={set:fv,clear:pv},Dv=function(){this.head=null,this.tail=null};Dv.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Rv,Iv,Cv,Ov,Tv,Pv=Dv,Mv=/ipad|iphone|ipod/i.test(fr)&&"undefined"!=typeof Pebble,Lv=/web0s(?!.*chrome)/i.test(fr),Bv=Pt,jv=Ro,Uv=Ta.f,Fv=Sv.set,Nv=Pv,$v=Xm,Gv=Mv,Hv=Lv,zv=Mm,Zv=Bv.MutationObserver||Bv.WebKitMutationObserver,Kv=Bv.document,qv=Bv.process,Vv=Bv.Promise,Wv=Uv(Bv,"queueMicrotask"),Yv=Wv&&Wv.value;if(!Yv){var Qv=new Nv,Jv=function(){var e,t;for(zv&&(e=qv.domain)&&e.exit();t=Qv.get();)try{t()}catch(e){throw Qv.head&&Rv(),e}e&&e.enter()};$v||zv||Hv||!Zv||!Kv?!Gv&&Vv&&Vv.resolve?((Ov=Vv.resolve(void 0)).constructor=Vv,Tv=jv(Ov.then,Ov),Rv=function(){Tv(Jv)}):zv?Rv=function(){qv.nextTick(Jv)}:(Fv=jv(Fv,Bv),Rv=function(){Fv(Jv)}):(Iv=!0,Cv=Kv.createTextNode(""),new Zv(Jv).observe(Cv,{characterData:!0}),Rv=function(){Cv.data=Iv=!Iv}),Yv=function(e){Qv.head||Rv(),Qv.add(e)}}var Xv=Yv,eg=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},tg=Pt.Promise,rg="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ng=!rg&&!Mm&&"object"==typeof window&&"object"==typeof document,ig=Pt,og=tg,ag=Fr,sg=Ms,ug=ui,cg=Pr,dg=ng,lg=rg,fg=br;og&&og.prototype;var pg=cg("species"),hg=!1,mg=ag(ig.PromiseRejectionEvent),vg=sg("Promise",(function(){var e=ug(og),t=e!==String(og);if(!t&&66===fg)return!0;if(!fg||fg<51||!/native code/.test(e)){var r=new og((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[pg]=n,!(hg=r.then((function(){}))instanceof n))return!0}return!t&&(dg||lg)&&!mg})),gg={CONSTRUCTOR:vg,REJECTION_EVENT:mg,SUBCLASSING:hg},Ag={},bg=yn,yg=TypeError,_g=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw yg("Bad Promise constructor");t=e,r=n})),this.resolve=bg(t),this.reject=bg(r)};Ag.f=function(e){return new _g(e)};var wg,xg,kg,Eg=Gs,Sg=Mm,Dg=Pt,Rg=on,Ig=ro,Cg=kp,Og=uc,Tg=Fm,Pg=yn,Mg=Fr,Lg=zr,Bg=Gm,jg=Ym,Ug=Sv.set,Fg=Xv,Ng=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},$g=eg,Gg=Pv,Hg=Mi,zg=tg,Zg=Ag,Kg="Promise",qg=gg.CONSTRUCTOR,Vg=gg.REJECTION_EVENT,Wg=gg.SUBCLASSING,Yg=Hg.getterFor(Kg),Qg=Hg.set,Jg=zg&&zg.prototype,Xg=zg,eA=Jg,tA=Dg.TypeError,rA=Dg.document,nA=Dg.process,iA=Zg.f,oA=iA,aA=!!(rA&&rA.createEvent&&Dg.dispatchEvent),sA="unhandledrejection",uA=function(e){var t;return!(!Lg(e)||!Mg(t=e.then))&&t},cA=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&hA(t),t.rejection=1),!0===s?r=o:(d&&d.enter(),r=s(o),d&&(d.exit(),i=!0)),r===e.promise?c(tA("Promise-chain cycle")):(n=uA(r))?Rg(n,r,u,c):u(r)):c(o)}catch(e){d&&!i&&d.exit(),c(e)}},dA=function(e,t){e.notified||(e.notified=!0,Fg((function(){for(var r,n=e.reactions;r=n.get();)cA(r,e);e.notified=!1,t&&!e.rejection&&fA(e)})))},lA=function(e,t,r){var n,i;aA?((n=rA.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Dg.dispatchEvent(n)):n={promise:t,reason:r},!Vg&&(i=Dg["on"+e])?i(n):e===sA&&Ng("Unhandled promise rejection",r)},fA=function(e){Rg(Ug,Dg,(function(){var t,r=e.facade,n=e.value;if(pA(e)&&(t=$g((function(){Sg?nA.emit("unhandledRejection",n,r):lA(sA,r,n)})),e.rejection=Sg||pA(e)?2:1,t.error))throw t.value}))},pA=function(e){return 1!==e.rejection&&!e.parent},hA=function(e){Rg(Ug,Dg,(function(){var t=e.facade;Sg?nA.emit("rejectionHandled",t):lA("rejectionhandled",t,e.value)}))},mA=function(e,t,r){return function(n){e(t,n,r)}},vA=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,dA(e,!0))},gA=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw tA("Promise can't be resolved itself");var n=uA(t);n?Fg((function(){var r={done:!1};try{Rg(n,t,mA(gA,r,e),mA(vA,r,e))}catch(t){vA(r,t,e)}})):(e.value=t,e.state=1,dA(e,!1))}catch(t){vA({done:!1},t,e)}}};if(qg&&(Xg=function(e){Bg(this,eA),Pg(e),Rg(wg,this);var t=Yg(this);try{e(mA(gA,t),mA(vA,t))}catch(e){vA(t,e)}},eA=Xg.prototype,(wg=function(e){Qg(this,{type:Kg,done:!1,notified:!1,parent:!1,reactions:new Gg,rejection:!1,state:0,value:void 0})}).prototype=Ig(eA,"then",(function(e,t){var r=Yg(this),n=iA(jg(this,Xg));return r.parent=!0,n.ok=!Mg(e)||e,n.fail=Mg(t)&&t,n.domain=Sg?nA.domain:void 0,0==r.state?r.reactions.add(n):Fg((function(){cA(n,r)})),n.promise})),xg=function(){var e=new wg,t=Yg(e);this.promise=e,this.resolve=mA(gA,t),this.reject=mA(vA,t)},Zg.f=iA=function(e){return e===Xg||undefined===e?new xg(e):oA(e)},Mg(zg)&&Jg!==Object.prototype)){kg=Jg.then,Wg||Ig(Jg,"then",(function(e,t){var r=this;return new Xg((function(e,t){Rg(kg,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete Jg.constructor}catch(SS){}Cg&&Cg(Jg,eA)}Eg({global:!0,constructor:!0,wrap:!0,forced:qg},{Promise:Xg}),Og(Xg,Kg,!1),Tg(Kg);var AA=Ro,bA=on,yA=tn,_A=vn,wA=ef,xA=Ho,kA=cn,EA=hf,SA=sf,DA=ql,RA=TypeError,IA=function(e,t){this.stopped=e,this.result=t},CA=IA.prototype,OA=function(e,t,r){var n,i,o,a,s,u,c,d=r&&r.that,l=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),m=AA(t,d),v=function(e){return n&&DA(n,"normal",e),new IA(!0,e)},g=function(e){return l?(yA(e),h?m(e[0],e[1],v):m(e[0],e[1])):h?m(e,v):m(e)};if(f)n=e.iterator;else if(p)n=e;else{if(!(i=SA(e)))throw RA(_A(e)+" is not iterable");if(wA(i)){for(o=0,a=xA(e);a>o;o++)if((s=g(e[o]))&&kA(CA,s))return s;return new IA(!1)}n=EA(e,i)}for(u=f?e.next:n.next;!(c=bA(u,n)).done;){try{s=g(c.value)}catch(e){DA(n,"throw",e)}if("object"==typeof s&&s&&kA(CA,s))return s}return new IA(!1)},TA=tg,PA=gg.CONSTRUCTOR||!Of((function(e){TA.all(e).then(void 0,(function(){}))})),MA=on,LA=yn,BA=Ag,jA=eg,UA=OA;Gs({target:"Promise",stat:!0,forced:PA},{all:function(e){var t=this,r=BA.f(t),n=r.resolve,i=r.reject,o=jA((function(){var r=LA(t.resolve),o=[],a=0,s=1;UA(e,(function(e){var u=a++,c=!1;s++,MA(r,t,e).then((function(e){c||(c=!0,o[u]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var FA=Gs,NA=gg.CONSTRUCTOR,$A=tg,GA=un,HA=Fr,zA=ro,ZA=$A&&$A.prototype;if(FA({target:"Promise",proto:!0,forced:NA,real:!0},{catch:function(e){return this.then(void 0,e)}}),HA($A)){var KA=GA("Promise").prototype.catch;ZA.catch!==KA&&zA(ZA,"catch",KA,{unsafe:!0})}var qA=on,VA=yn,WA=Ag,YA=eg,QA=OA;Gs({target:"Promise",stat:!0,forced:PA},{race:function(e){var t=this,r=WA.f(t),n=r.reject,i=YA((function(){var i=VA(t.resolve);QA(e,(function(e){qA(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var JA=on,XA=Ag;Gs({target:"Promise",stat:!0,forced:gg.CONSTRUCTOR},{reject:function(e){var t=XA.f(this);return JA(t.reject,void 0,e),t.promise}});var eb=tn,tb=zr,rb=Ag,nb=function(e,t){if(eb(e),tb(t)&&t.constructor===e)return t;var r=rb.f(e);return(0,r.resolve)(t),r.promise},ib=Gs,ob=gg.CONSTRUCTOR,ab=nb;un("Promise"),ib({target:"Promise",stat:!0,forced:ob},{resolve:function(e){return ab(this,e)}});var sb=TypeError,ub=Gs,cb=zt,db=Zo,lb=zr,fb=nr,pb=Ho,hb=function(e){if(e>9007199254740991)throw sb("Maximum allowed index exceeded");return e},mb=Pu,vb=fa,gb=bl,Ab=br,bb=Pr("isConcatSpreadable"),yb=Ab>=51||!cb((function(){var e=[];return e[bb]=!1,e.concat()[0]!==e})),_b=function(e){if(!lb(e))return!1;var t=e[bb];return void 0!==t?!!t:db(e)};ub({target:"Array",proto:!0,arity:1,forced:!yb||!gb("concat")},{concat:function(e){var t,r,n,i,o,a=fb(this),s=vb(a,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(_b(o=-1===t?a:arguments[t]))for(i=pb(o),hb(u+i),r=0;r<i;r++,u++)r in o&&mb(s,u,o[r]);else hb(u+1),mb(s,u++,o);return s.length=u,s}});var wb=$r,xb=ti.EXISTS,kb=Yt,Eb=qu,Sb=Function.prototype,Db=kb(Sb.toString),Rb=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Ib=kb(Rb.exec);function Cb(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Ob(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ob(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Ob(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Tb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tb(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}wb&&!xb&&Eb(Sb,"name",{configurable:!0,get:function(){try{return Ib(Rb,Db(this))[1]}catch(e){return""}}});var Mb,Lb={react:{src:"https://pm.azerioncircle.com/react/16.14.0/umd/react.production.min.js",name:"React"},"react-dom":{src:"https://pm.azerioncircle.com/react-dom/16.14.0/umd/react-dom.production.min.js",name:"ReactDOM"},redux:{src:"https://pm.azerioncircle.com/redux/4.0.5/dist/redux.min.js",name:"Redux"},"react-redux":{src:"https://pm.azerioncircle.com/react-redux/7.2.1/dist/react-redux.min.js",name:"ReactRedux"},"material-ui-core":{src:"https://pm.azerioncircle.com/@material-ui/core/4.11.3/umd/material-ui.production.min.js",name:"MaterialUI"}},Bb={},jb=function(e,t){Bb[e]=Pb(Pb({},t),{},{isLoading:!1})},Ub=function(e){var t=this,n=e.id,i=e.src;return new Promise(function(e,o){if(r(this,t),document.getElementById(n))e();else{var a=document.createElement("script");a.onload=function(){e()},a.id=n,a.setAttribute("crossorigin",!0),a.src=i,document.head.appendChild(a)}}.bind(this))},Fb=function(){var e=t(d.mark((function e(t){var r,n,i,o,a,s,u,c;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=window[t])){e.next=3;break}return e.abrupt("return",r);case 3:if(!(n=Bb[t]).isLoading){e.next=6;break}return e.abrupt("return");case 6:n.isLoading=!0,i=Cb(n.dependencies),e.prev=8,i.s();case 10:if((o=i.n()).done){e.next=26;break}if(a=o.value,e.prev=12,s=Lb[a].name,!window[s]){e.next=16;break}return e.abrupt("continue",24);case 16:return e.next=18,Ub({id:a,src:Lb[a].src});case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(12),u=a.id,c=a.src,console.log("Could not load external script ".concat(u," ").concat(c),e.t0);case 24:e.next=10;break;case 26:e.next=31;break;case 28:e.prev=28,e.t1=e.catch(8),i.e(e.t1);case 31:return e.prev=31,i.f(),e.finish(31);case 34:return e.prev=34,e.next=37,Ub({id:t,src:n.source});case 37:r=window[t],e.next=43;break;case 40:e.prev=40,e.t2=e.catch(34),console.log("Could not load module ".concat(t," ").concat(n.source,"."),e.t2);case 43:return n.isLoading=!1,e.abrupt("return",r);case 45:case"end":return e.stop()}}),e,null,[[8,28,31,34],[12,20],[34,40]])})));return function(t){return e.apply(this,arguments)}}(),Nb=M((function e(){var r=this;O(this,e),ru(this,"load",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Fb("Leaderboard");case 2:r.leaderboard=e.sent;case 3:case"end":return e.stop()}}),e)})))),ru(this,"showLeaderboard",function(){var e=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=window.GD_OPTIONS.gameId,r.leaderboard){e.next=4;break}return e.next=4,r.load();case 4:r.leaderboard.showLeaderBoard(n,t);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),ru(this,"addScore",function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.leaderboard){e.next=3;break}return e.next=3,r.load();case 3:r.leaderboard.addScore(t);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.moduleName="Leaderboard",this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/gd-sdk-leaderboard/0.1.43/dist/default/iife/index.js",dependencies:["react","react-dom","redux","react-redux","material-ui-core"]},jb(this.moduleName,this.moduleConfig)})),$b=new Nb,Gb=zr,Hb=so,zb=Pr("match"),Zb=function(e){var t;return Gb(e)&&(void 0!==(t=e[zb])?!!t:"RegExp"==Hb(e))},Kb=Zb,qb=TypeError,Vb=function(e){if(Kb(e))throw qb("The method doesn't accept regular expressions");return e},Wb=Pr("match"),Yb=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Wb]=!1,"/./"[e](t)}catch(e){}}return!1},Qb=Gs,Jb=ko,Xb=Ta.f,ey=$o,ty=ou,ry=Vb,ny=er,iy=Yb,oy=Jb("".startsWith),ay=Jb("".slice),sy=Math.min,uy=iy("startsWith");Qb({target:"String",proto:!0,forced:!!(uy||(Mb=Xb(String.prototype,"startsWith"),!Mb||Mb.writable))&&!uy},{startsWith:function(e){var t=ty(ny(this));ry(e);var r=ey(sy(arguments.length>1?arguments[1]:void 0,t.length)),n=ty(e);return oy?oy(t,n,r):ay(t,r,r+n.length)===n}});var cy=on,dy=ar,ly=cn,fy=th,py=RegExp.prototype,hy=function(e){var t=e.flags;return void 0!==t||"flags"in py||dy(e,"flags")||!ly(py,e)?t:cy(fy,e)},my=ti.PROPER,vy=ro,gy=tn,Ay=ou,by=zt,yy=hy,_y="toString",wy=RegExp.prototype[_y],xy=by((function(){return"/a/b"!=wy.call({source:"a",flags:"b"})})),ky=my&&wy.name!=_y;(xy||ky)&&vy(RegExp.prototype,_y,(function(){var e=gy(this);return"/"+Ay(e.source)+"/"+Ay(yy(e))}),{unsafe:!0});var Ey=ko,Sy=ro,Dy=Mh,Ry=zt,Iy=Pr,Cy=mi,Oy=Iy("species"),Ty=RegExp.prototype,Py=function(e,t,r,n){var i=Iy(e),o=!Ry((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!Ry((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Oy]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return t=!0,null},r[i](""),!t}));if(!o||!a||r){var s=Ey(/./[i]),u=t(i,""[e],(function(e,t,r,n,i){var a=Ey(e),u=t.exec;return u===Dy||u===Ty.exec?o&&!i?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));Sy(String.prototype,e,u[0]),Sy(Ty,i,u[1])}n&&Cy(Ty[i],"sham",!0)},My=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},Ly=on,By=tn,jy=Fr,Uy=so,Fy=Mh,Ny=TypeError,$y=function(e,t){var r=e.exec;if(jy(r)){var n=Ly(r,e,t);return null!==n&&By(n),n}if("RegExp"===Uy(e))return Ly(Fy,e,t);throw Ny("RegExp#exec called on incompatible receiver")},Gy=on,Hy=tn,zy=Qt,Zy=er,Ky=My,qy=ou,Vy=xn,Wy=$y;function Yy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yy(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Py("search",(function(e,t,r){return[function(t){var r=Zy(this),n=zy(t)?void 0:Vy(t,e);return n?Gy(n,t,r):new RegExp(t)[e](qy(r))},function(e){var n=Hy(this),i=qy(e),o=r(t,n,i);if(o.done)return o.value;var a=n.lastIndex;Ky(a,0)||(n.lastIndex=0);var s=Wy(n,i);return Ky(n.lastIndex,a)||(n.lastIndex=a),null===s?-1:s.index}]}));var Jy,Xy,e_=function(){function e(){O(this,e)}return M(e,[{key:"getBridgeContext",value:function(){var e=this._isTokenGameURL(),t=this._isMasterGameURL(),r=this._isExtHostedGameURL(),n=e||r?this._getTokenGameURLConfig():{};n=n||{};var i=decodeURIComponent((e||r)&&n.parentURL?n.parentURL:at()),o=decodeURIComponent((e||r)&&n.parentDomain?n.parentDomain:ot()),a=decodeURIComponent((e||r)&&n.topDomain?n.topDomain:r&&0===pt()?o:vt()),s=(e||r)&&n.loaderEnabled,u=(e||r)&&n.loaderEnabled,c=(e||r)&&n.loaderEnabled,d=(e||r)&&n.loaderEnabled,l=(e||r)&&n.loaderEnabled,f=(e||r)&&n.loaderEnabled,p=(e||r)&&n.loaderEnabled;console.log("noMinijuegosSDK",p);var h=(e||r)&&n.loaderEnabled,m=(e||r)&&n.loaderEnabled&&n.hasImpression&&n.version>="1.1.24";return{isTokenGameURL:e,isMasterGameURL:t,isExtHostedGameURL:r,noConsoleBanner:s,noLoadedEvent:u,noBlockerEvent:c,noPreroll:h,parentURL:i,parentDomain:o,topDomain:a&&a.length?a:o,noGAPageView:d,noLotamePageView:l,noGamedockSDK:f,noMinijuegosSDK:p,version:n.version,pauseGameOnStartup:m,depth:pt(),domainMatched:o===a,exports:{formatTokenURLSearch:this._formatTokenURLSearch.bind(this),extendUrlQuery:this._extendUrlQuery.bind(this),base64Encode:this._base64_encode.bind(this)}}}},{key:"_isMasterGameURL",value:function(){var e=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i;return e.test(location.href)||!this._isTokenGameURL()&&e.test(document.referrer)}},{key:"_isTokenGameURL",value:function(){var e=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i;return e.test(location.href)||e.test(document.referrer)}},{key:"_isExtHostedGameURL",value:function(){var e=/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i;return e.test(location.href)||e.test(document.referrer)}},{key:"_isLoaderGameURL",value:function(){return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href)&&location.href.startsWith("https://html5.gamedistribution.com")}},{key:"_getTokenGameURLConfig",value:function(){try{var e,t=/http[s]?:\/\/html5\.gamedistribution\.com\/[A-Za-z0-9]{8}\/[A-Fa-f0-9]{32}\/.*/i;if(t.test(location.href)){var r=new C(location.href,!0);if(!r.query.gd_zone_config)return;e=r.query.gd_zone_config}else if(t.test(document.referrer)){var n=new C(document.referrer,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else{var i=new C(location.href,!0);if(!i.query.gd_zone_config)return;e=i.query.gd_zone_config}return JSON.parse(rt.decode(decodeURIComponent(e)))}catch(e){}}},{key:"_formatTokenURLSearch",value:function(e){var t="";try{t=encodeURIComponent(rt.encode(JSON.stringify(e)))}catch(e){}try{var r=new C(location.href,!0);return r.query=r.query||{},r.query.gd_zone_config=t,"?".concat(qs.stringify(r.query))}catch(e){return"?gd_zone_config=".concat(t)}}},{key:"_extendUrlQuery",value:function(e,t){var r=new C(e,!0);return r.query=Qy(Qy({},r.query),t),r.toString()}},{key:"_base64_encode",value:function(e){return rt.encode(JSON.stringify(e))}}]),e}(),t_=function(){try{return(new e_).getBridgeContext()}catch(e){return{}}}(),r_={userDeclinedTracking:document.location.search.indexOf("gdpr-tracking=0")>=0||document.cookie.indexOf("ogdpr_tracking=0")>=0,whitelabelPartner:(Jy=!1,(Xy=ut()).hasOwnProperty("xanthophyll")&&"true"===Xy.xanthophyll&&(Jy=!0),Jy)},n_=zf.charAt,i_=Yt,o_=nr,a_=Math.floor,s_=i_("".charAt),u_=i_("".replace),c_=i_("".slice),d_=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l_=/\$([$&'`]|\d{1,2})/g,f_=Bd,p_=on,h_=Yt,m_=Py,v_=zt,g_=tn,A_=Fr,b_=Qt,y_=Uo,__=$o,w_=ou,x_=er,k_=function(e,t,r){return t+(r?n_(e,t).length:1)},E_=xn,S_=function(e,t,r,n,i,o){var a=r+e.length,s=n.length,u=l_;return void 0!==i&&(i=o_(i),u=d_),u_(o,u,(function(o,u){var c;switch(s_(u,0)){case"$":return"$";case"&":return e;case"`":return c_(t,0,r);case"'":return c_(t,a);case"<":c=i[c_(u,1,-1)];break;default:var d=+u;if(0===d)return o;if(d>s){var l=a_(d/10);return 0===l?o:l<=s?void 0===n[l-1]?s_(u,1):n[l-1]+s_(u,1):o}c=n[d-1]}return void 0===c?"":c}))},D_=$y,R_=Pr("replace"),I_=Math.max,C_=Math.min,O_=h_([].concat),T_=h_([].push),P_=h_("".indexOf),M_=h_("".slice),L_=function(e){return void 0===e?e:String(e)},B_="$0"==="a".replace(/./,"$0"),j_=!!/./[R_]&&""===/./[R_]("a","$0"),U_=!v_((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));m_("replace",(function(e,t,r){var n=j_?"$":"$0";return[function(e,r){var n=x_(this),i=b_(e)?void 0:E_(e,R_);return i?p_(i,e,n,r):p_(t,w_(n),e,r)},function(e,i){var o=g_(this),a=w_(e);if("string"==typeof i&&-1===P_(i,n)&&-1===P_(i,"$<")){var s=r(t,o,a,i);if(s.done)return s.value}var u=A_(i);u||(i=w_(i));var c=o.global;if(c){var d=o.unicode;o.lastIndex=0}for(var l=[];;){var f=D_(o,a);if(null===f)break;if(T_(l,f),!c)break;""===w_(f[0])&&(o.lastIndex=k_(a,__(o.lastIndex),d))}for(var p="",h=0,m=0;m<l.length;m++){for(var v=w_((f=l[m])[0]),g=I_(C_(y_(f.index),a.length),0),A=[],b=1;b<f.length;b++)T_(A,L_(f[b]));var y=f.groups;if(u){var _=O_([v],A,g,a);void 0!==y&&T_(_,y);var w=w_(f_(i,void 0,_))}else w=S_(v,a,g,A,y,i);g>=h&&(p+=M_(a,h,g)+w,h=g+v.length)}return p+M_(a,h)}]}),!U_||!B_||j_);var F_=zt,N_=$r,$_=Pr("iterator"),G_=!F_((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!t.size&&!N_||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[$_]||"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"!==r||"x"!==new URL("http://x",void 0).host})),H_=ro,z_=Fu,Z_=Math.floor,K_=function(e,t){var r=e.length,n=Z_(r/2);return r<8?q_(e,t):V_(e,K_(z_(e,0,n),t),K_(z_(e,n),t),t)},q_=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},V_=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(t[a],r[s])<=0?t[a++]:r[s++]:a<i?t[a++]:r[s++];return e},W_=Gs,Y_=Pt,Q_=on,J_=Yt,X_=$r,ew=G_,tw=ro,rw=qu,nw=function(e,t,r){for(var n in t)H_(e,n,t[n],r);return e},iw=uc,ow=mp,aw=Mi,sw=Gm,uw=Fr,cw=ar,dw=Ro,lw=mo,fw=tn,pw=zr,hw=ou,mw=Ru,vw=fi,gw=hf,Aw=sf,bw=Jm,yw=K_,_w=Pr("iterator"),ww="URLSearchParams",xw=ww+"Iterator",kw=aw.set,Ew=aw.getterFor(ww),Sw=aw.getterFor(xw),Dw=Object.getOwnPropertyDescriptor,Rw=function(e){if(!X_)return Y_[e];var t=Dw(Y_,e);return t&&t.value},Iw=Rw("fetch"),Cw=Rw("Request"),Ow=Rw("Headers"),Tw=Cw&&Cw.prototype,Pw=Ow&&Ow.prototype,Mw=Y_.RegExp,Lw=Y_.TypeError,Bw=Y_.decodeURIComponent,jw=Y_.encodeURIComponent,Uw=J_("".charAt),Fw=J_([].join),Nw=J_([].push),$w=J_("".replace),Gw=J_([].shift),Hw=J_([].splice),zw=J_("".split),Zw=J_("".slice),Kw=/\+/g,qw=Array(4),Vw=function(e){return qw[e-1]||(qw[e-1]=Mw("((?:%[\\da-f]{2}){"+e+"})","gi"))},Ww=function(e){try{return Bw(e)}catch(t){return e}},Yw=function(e){var t=$w(e,Kw," "),r=4;try{return Bw(t)}catch(e){for(;r;)t=$w(t,Vw(r--),Ww);return t}},Qw=/[!'()~]|%20/g,Jw={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Xw=function(e){return Jw[e]},ex=function(e){return $w(jw(e),Qw,Xw)},tx=ow((function(e,t){kw(this,{type:xw,iterator:gw(Ew(e).entries),kind:t})}),"Iterator",(function(){var e=Sw(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),rx=function(e){this.entries=[],this.url=null,void 0!==e&&(pw(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Uw(e,0)?Zw(e,1):e:hw(e)))};rx.prototype={type:ww,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,u=Aw(e);if(u)for(r=(t=gw(e,u)).next;!(n=Q_(r,t)).done;){if(o=(i=gw(fw(n.value))).next,(a=Q_(o,i)).done||(s=Q_(o,i)).done||!Q_(o,i).done)throw Lw("Expected sequence with length 2");Nw(this.entries,{key:hw(a.value),value:hw(s.value)})}else for(var c in e)cw(e,c)&&Nw(this.entries,{key:c,value:hw(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=zw(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=zw(t,"="),Nw(this.entries,{key:Yw(Gw(r)),value:Yw(Fw(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],Nw(r,ex(e.key)+"="+ex(e.value));return Fw(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var nx=function(){sw(this,ix);var e=kw(this,new rx(arguments.length>0?arguments[0]:void 0));X_||(this.length=e.entries.length)},ix=nx.prototype;if(nw(ix,{append:function(e,t){bw(arguments.length,2);var r=Ew(this);Nw(r.entries,{key:hw(e),value:hw(t)}),X_||this.length++,r.updateURL()},delete:function(e){bw(arguments.length,1);for(var t=Ew(this),r=t.entries,n=hw(e),i=0;i<r.length;)r[i].key===n?Hw(r,i,1):i++;X_||(this.length=r.length),t.updateURL()},get:function(e){bw(arguments.length,1);for(var t=Ew(this).entries,r=hw(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){bw(arguments.length,1);for(var t=Ew(this).entries,r=hw(e),n=[],i=0;i<t.length;i++)t[i].key===r&&Nw(n,t[i].value);return n},has:function(e){bw(arguments.length,1);for(var t=Ew(this).entries,r=hw(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){bw(arguments.length,1);for(var r,n=Ew(this),i=n.entries,o=!1,a=hw(e),s=hw(t),u=0;u<i.length;u++)(r=i[u]).key===a&&(o?Hw(i,u--,1):(o=!0,r.value=s));o||Nw(i,{key:a,value:s}),X_||(this.length=i.length),n.updateURL()},sort:function(){var e=Ew(this);yw(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Ew(this).entries,n=dw(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new tx(this,"keys")},values:function(){return new tx(this,"values")},entries:function(){return new tx(this,"entries")}},{enumerable:!0}),tw(ix,_w,ix.entries,{name:"entries"}),tw(ix,"toString",(function(){return Ew(this).serialize()}),{enumerable:!0}),X_&&rw(ix,"size",{get:function(){return Ew(this).entries.length},configurable:!0,enumerable:!0}),iw(nx,ww),W_({global:!0,constructor:!0,forced:!ew},{URLSearchParams:nx}),!ew&&uw(Ow)){var ox=J_(Pw.has),ax=J_(Pw.set),sx=function(e){if(pw(e)){var t,r=e.body;if(lw(r)===ww)return t=e.headers?new Ow(e.headers):new Ow,ox(t,"content-type")||ax(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),mw(e,{body:vw(0,hw(r)),headers:vw(0,t)})}return e};if(uw(Iw)&&W_({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Iw(e,arguments.length>1?sx(arguments[1]):{})}}),uw(Cw)){var ux=function(e){return sw(this,Tw),new Cw(e,arguments.length>1?sx(arguments[1]):{})};Tw.constructor=ux,ux.prototype=Tw,W_({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ux})}}var cx={URLSearchParams:nx,getState:Ew},dx=is.includes,lx=om;Gs({target:"Array",proto:!0,forced:zt((function(){return!Array(1).includes()}))},{includes:function(e){return dx(this,e,arguments.length>1?arguments[1]:void 0)}}),lx("includes");var fx=Gs,px=Vb,hx=er,mx=ou,vx=Yb,gx=Yt("".indexOf);fx({target:"String",proto:!0,forced:!vx("includes")},{includes:function(e){return!!~gx(mx(hx(this)),mx(px(e)),arguments.length>1?arguments[1]:void 0)}});var Ax={exports:{}},bx={exports:{}},yx={exports:{}};!function(e,t){function r(e){return 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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="string"==typeof e||e instanceof String;if(!t){var n=r(e);throw null===e?n="null":"object"===n&&(n=e.constructor.name),new TypeError("Expected a string but received a ".concat(n))}},e.exports=t.default,e.exports.default=t.default}(yx,yx.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var r,n=(r=yx.exports)&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default}(bx,bx.exports);var _x={exports:{}},wx={},xx={};Object.defineProperty(xx,"__esModule",{value:!0}),xx.commaDecimal=xx.dotDecimal=xx.bengaliLocales=xx.farsiLocales=xx.arabicLocales=xx.englishLocales=xx.decimal=xx.alphanumeric=xx.alpha=void 0;var kx={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/};xx.alpha=kx;var Ex={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/};xx.alphanumeric=Ex;var Sx={"en-US":".",ar:"٫"};xx.decimal=Sx;var Dx=["AU","GB","HK","IN","NZ","ZA","ZM"];xx.englishLocales=Dx;for(var Rx,Ix=0;Ix<Dx.length;Ix++)kx[Rx="en-".concat(Dx[Ix])]=kx["en-US"],Ex[Rx]=Ex["en-US"],Sx[Rx]=Sx["en-US"];var Cx=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"];xx.arabicLocales=Cx;for(var Ox,Tx=0;Tx<Cx.length;Tx++)kx[Ox="ar-".concat(Cx[Tx])]=kx.ar,Ex[Ox]=Ex.ar,Sx[Ox]=Sx.ar;var Px=["IR","AF"];xx.farsiLocales=Px;for(var Mx,Lx=0;Lx<Px.length;Lx++)Ex[Mx="fa-".concat(Px[Lx])]=Ex.fa,Sx[Mx]=Sx.ar;var Bx=["BD","IN"];xx.bengaliLocales=Bx;for(var jx,Ux=0;Ux<Bx.length;Ux++)kx[jx="bn-".concat(Bx[Ux])]=kx.bn,Ex[jx]=Ex.bn,Sx[jx]=Sx["en-US"];var Fx=["ar-EG","ar-LB","ar-LY"];xx.dotDecimal=Fx;var Nx=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-ZM","es-ES","fr-CA","fr-FR","id-ID","it-IT","ku-IQ","hi-IN","hu-HU","nb-NO","nn-NO","nl-NL","pl-PL","pt-PT","ru-RU","si-LK","sl-SI","sr-RS@latin","sr-RS","sv-SE","tr-TR","uk-UA","vi-VN"];xx.commaDecimal=Nx;for(var $x=0;$x<Fx.length;$x++)Sx[Fx[$x]]=Sx["en-US"];for(var Gx=0;Gx<Nx.length;Gx++)Sx[Nx[Gx]]=",";kx["fr-CA"]=kx["fr-FR"],Ex["fr-CA"]=Ex["fr-FR"],kx["pt-BR"]=kx["pt-PT"],Ex["pt-BR"]=Ex["pt-PT"],Sx["pt-BR"]=Sx["pt-PT"],kx["pl-Pl"]=kx["pl-PL"],Ex["pl-Pl"]=Ex["pl-PL"],Sx["pl-Pl"]=Sx["pl-PL"],kx["fa-AF"]=kx.fa,Object.defineProperty(wx,"__esModule",{value:!0}),wx.default=function(e,t){(0,zx.default)(e),t=t||{};var r=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?Zx.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||","===e||"-"===e||"+"===e)return!1;var n=parseFloat(e.replace(",","."));return r.test(e)&&(!t.hasOwnProperty("min")||n>=t.min)&&(!t.hasOwnProperty("max")||n<=t.max)&&(!t.hasOwnProperty("lt")||n<t.lt)&&(!t.hasOwnProperty("gt")||n>t.gt)},wx.locales=void 0;var Hx,zx=(Hx=yx.exports)&&Hx.__esModule?Hx:{default:Hx},Zx=xx;var Kx=Object.keys(Zx.decimal);wx.locales=Kx,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)?parseFloat(e):NaN};var r=function(e){return e&&e.__esModule?e:{default:e}}(wx);e.exports=t.default,e.exports.default=t.default}(_x,_x.exports);var qx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),parseInt(e,t||10)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(qx,qx.exports);var Vx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(Vx,Vx.exports);var Wx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e===t};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(Wx,Wx.exports);var Yx={exports:{}},Qx={exports:{}};!function(e,t){function r(e){return 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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"object"===r(e)&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e="");return String(e)},e.exports=t.default,e.exports.default=t.default}(Qx,Qx.exports);var Jx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e},e.exports=t.default,e.exports.default=t.default}(Jx,Jx.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,o){if((0,r.default)(e),o=(0,i.default)(o,a),o.ignoreCase)return e.toLowerCase().split((0,n.default)(t).toLowerCase()).length>o.minOccurrences;return e.split((0,n.default)(t)).length>o.minOccurrences};var r=o(yx.exports),n=o(Qx.exports),i=o(Jx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a={ignoreCase:!1,minOccurrences:1};e.exports=t.default,e.exports.default=t.default}(Yx,Yx.exports);var Xx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,r.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,n));return!!e.match(t)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(Xx,Xx.exports);var ek={exports:{}},tk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i,o;(0,r.default)(e),"object"===n(t)?(i=t.min||0,o=t.max):(i=arguments[1],o=arguments[2]);var a=encodeURI(e).split(/%..|./).length-1;return a>=i&&(void 0===o||a<=o)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);function n(e){return n="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},n(e)}e.exports=t.default,e.exports.default=t.default}(tk,tk.exports);var rk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=(0,n.default)(t,o),t.allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var i=e.split("."),a=i[i.length-1];if(t.require_tld){if(i.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(a))return!1;if(/\s/.test(a))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(a))return!1;return i.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var r=i(yx.exports),n=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default}(rk,rk.exports);var nk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),n=String(n),!n)return e(t,4)||e(t,6);if("4"===n)return o.test(t);if("6"===n)return s.test(t);return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",i="(".concat(n,"[.]){3}").concat(n),o=new RegExp("^".concat(i,"$")),a="(?:[0-9a-fA-F]{1,4})",s=new RegExp("^("+"(?:".concat(a,":){7}(?:").concat(a,"|:)|")+"(?:".concat(a,":){6}(?:").concat(i,"|:").concat(a,"|:)|")+"(?:".concat(a,":){5}(?::").concat(i,"|(:").concat(a,"){1,2}|:)|")+"(?:".concat(a,":){4}(?:(:").concat(a,"){0,1}:").concat(i,"|(:").concat(a,"){1,3}|:)|")+"(?:".concat(a,":){3}(?:(:").concat(a,"){0,2}:").concat(i,"|(:").concat(a,"){1,4}|:)|")+"(?:".concat(a,":){2}(?:(:").concat(a,"){0,3}:").concat(i,"|(:").concat(a,"){1,5}|:)|")+"(?:".concat(a,":){1}(?:(:").concat(a,"){0,4}:").concat(i,"|(:").concat(a,"){1,6}|:)|")+"(?::((?::".concat(a,"){0,5}:").concat(i,"|(?::").concat(a,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default}(nk,nk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t=(0,n.default)(t,u),t.require_display_name||t.allow_display_name){var s=e.match(c);if(s){var v=s[1];if(e=e.replace(v,"").replace(/(^<|>$)/g,""),v.endsWith(" ")&&(v=v.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(v))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>m)return!1;var g=e.split("@"),A=g.pop(),b=A.toLowerCase();if(t.host_blacklist.includes(b))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(b))return!1;var y=g.join("@");if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var _=(y=y.toLowerCase()).split("+")[0];if(!(0,i.default)(_.replace(/\./g,""),{min:6,max:30}))return!1;for(var w=_.split("."),x=0;x<w.length;x++)if(!l.test(w[x]))return!1}if(!(!1!==t.ignore_max_length||(0,i.default)(y,{max:64})&&(0,i.default)(A,{max:254})))return!1;if(!(0,o.default)(A,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length})){if(!t.allow_ip_domain)return!1;if(!(0,a.default)(A)){if(!A.startsWith("[")||!A.endsWith("]"))return!1;var k=A.slice(1,-1);if(0===k.length||!(0,a.default)(k))return!1}}if('"'===y[0])return y=y.slice(1,y.length-1),t.allow_utf8_local_part?h.test(y):f.test(y);for(var E=t.allow_utf8_local_part?p:d,S=y.split("."),D=0;D<S.length;D++)if(!E.test(S[D]))return!1;if(t.blacklisted_chars&&-1!==y.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var r=s(yx.exports),n=s(Jx.exports),i=s(tk.exports),o=s(rk.exports),a=s(nk.exports);function s(e){return e&&e.__esModule?e:{default:e}}var u={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},c=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,l=/^[a-z\d]+$/,f=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,p=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,h=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,m=254;e.exports=t.default,e.exports.default=t.default}(ek,ek.exports);var ik={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if(t=(0,o.default)(t,u),t.validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var a,d,f,p,h,m,v,g;if(v=e.split("#"),e=v.shift(),v=e.split("?"),e=v.shift(),v=e.split("://"),v.length>1){if(a=v.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(a))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;v[0]=e.slice(2)}}if(e=v.join("://"),""===e)return!1;if(v=e.split("/"),e=v.shift(),""===e&&!t.require_host)return!0;if(v=e.split("@"),v.length>1){if(t.disallow_auth)return!1;if(""===v[0])return!1;if((d=v.shift()).indexOf(":")>=0&&d.split(":").length>2)return!1;var A=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(d.split(":"),2),b=A[0],y=A[1];if(""===b&&""===y)return!1}p=v.join("@"),m=null,g=null;var _=p.match(c);_?(f="",g=_[1],m=_[2]||null):(f=(v=p.split(":")).shift(),v.length&&(m=v.join(":")));if(null!==m&&m.length>0){if(h=parseInt(m,10),!/^[0-9]+$/.test(m)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return l(f,t.host_whitelist);if(""===f&&!t.require_host)return!0;if(!((0,i.default)(f)||(0,n.default)(f,t)||g&&(0,i.default)(g,6)))return!1;if(f=f||g,t.host_blacklist&&l(f,t.host_blacklist))return!1;return!0};var r=a(yx.exports),n=a(rk.exports),i=a(nk.exports),o=a(Jx.exports);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},c=/^\[([^\]]+)\](?::([0-9]+))?$/;function d(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];if(e===n||d(n)&&n.test(e))return!0}return!1}e.exports=t.default,e.exports.default=t.default}(ik,ik.exports);var ok={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,c){(0,r.default)(t),null!=c&&c.eui&&(c.eui=String(c.eui));if(null!=c&&c.no_colons||null!=c&&c.no_separators)return"48"===c.eui?i.test(t):"64"===c.eui?s.test(t):i.test(t)||s.test(t);if("48"===(null==c?void 0:c.eui))return n.test(t)||o.test(t);if("64"===(null==c?void 0:c.eui))return a.test(t)||u.test(t);return e(t,{eui:"48"})||e(t,{eui:"64"})};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,i=/^([0-9a-fA-F]){12}$/,o=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,a=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/,s=/^([0-9a-fA-F]){16}$/,u=/^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;e.exports=t.default,e.exports.default=t.default}(ok,ok.exports);var ak={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,r.default)(e);var i=e.split("/");if(2!==i.length)return!1;if(!o.test(i[1]))return!1;if(i[1].length>1&&i[1].startsWith("0"))return!1;var u=(0,n.default)(i[0],t);if(!u)return!1;var c=null;switch(String(t)){case"4":c=a;break;case"6":c=s;break;default:c=(0,n.default)(i[0],"6")?s:a}return i[1]<=c&&i[1]>=0};var r=i(yx.exports),n=i(nk.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o=/^\d{1,3}$/,a=32,s=128;e.exports=t.default,e.exports.default=t.default}(ak,ak.exports);var sk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t="string"==typeof t?(0,r.default)({format:t},a):(0,r.default)(t,a);if("string"==typeof e&&(m=t.format,/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(m))){var o,s=t.delimiters.find((function(e){return-1!==t.format.indexOf(e)})),u=t.strictMode?s:t.delimiters.find((function(t){return-1!==e.indexOf(t)})),c=function(e,t){for(var r=[],n=Math.min(e.length,t.length),i=0;i<n;i++)r.push([e[i],t[i]]);return r}(e.split(u),t.format.toLowerCase().split(s)),d={},l=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}(c);try{for(l.s();!(o=l.n()).done;){var f=n(o.value,2),p=f[0],h=f[1];if(p.length!==h.length)return!1;d[h.charAt(0)]=p}}catch(e){l.e(e)}finally{l.f()}return new Date("".concat(d.m,"/").concat(d.d,"/").concat(d.y)).getDate()===+d.d}var m;if(!t.strictMode)return"[object Date]"===Object.prototype.toString.call(e)&&isFinite(e);return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(Jx.exports);function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};e.exports=t.default,e.exports.default=t.default}(sk,sk.exports);var uk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t=(0,r.default)(t,n),"string"==typeof e&&i[t.hourFormat][t.mode].test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Jx.exports);var n={hourFormat:"hour24",mode:"default"},i={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/}};e.exports=t.default,e.exports.default=t.default}(uk,uk.exports);var ck={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;if((0,r.default)(e),t.loose)return o.includes(e.toLowerCase());return i.includes(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n={loose:!1},i=["true","false","1","0"],o=[].concat(i,["yes","no"]);e.exports=t.default,e.exports.default=t.default}(ck,ck.exports);var dk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(e),"en_US_POSIX"===e||"ca_ES_VALENCIA"===e)return!0;return n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;e.exports=t.default,e.exports.default=t.default}(dk,dk.exports);var lk={};Object.defineProperty(lk,"__esModule",{value:!0}),lk.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,fk.default)(e);var n=e,i=r.ignore;if(i)if(i instanceof RegExp)n=n.replace(i,"");else{if("string"!=typeof i)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in pk.alpha)return pk.alpha[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))},lk.locales=void 0;var fk=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),pk=xx;var hk=Object.keys(pk.alpha);lk.locales=hk;var mk={};Object.defineProperty(mk,"__esModule",{value:!0}),mk.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,vk.default)(e);var n=e,i=r.ignore;if(i)if(i instanceof RegExp)n=n.replace(i,"");else{if("string"!=typeof i)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in gk.alphanumeric)return gk.alphanumeric[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))},mk.locales=void 0;var vk=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),gk=xx;var Ak=Object.keys(gk.alphanumeric);mk.locales=Ak;var bk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t&&t.no_symbols)return i.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?n.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),n=xx;var i=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default}(bk,bk.exports);var yk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var i=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in n&&n[t].test(i)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{2,3}\d{7,8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};e.exports=t.default,e.exports.default=t.default}(yk,yk.exports);var _k={exports:{}},wk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=t||{};var o=t.hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?n:i,a=!t.hasOwnProperty("min")||e>=t.min,s=!t.hasOwnProperty("max")||e<=t.max,u=!t.hasOwnProperty("lt")||e<t.lt,c=!t.hasOwnProperty("gt")||e>t.gt;return o.test(e)&&a&&s&&u&&c};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,i=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default}(wk,wk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,{min:0,max:65535})};var r=function(e){return e&&e.__esModule?e:{default:e}}(wk.exports);e.exports=t.default,e.exports.default=t.default}(_k,_k.exports);var xk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e===e.toLowerCase()};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(xk,xk.exports);var kk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e===e.toUpperCase()};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(kk,kk.exports);var Ek={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=t||{};var o=n;t.allow_hyphens&&(o=i);if(!o.test(e))return!1;e=e.replace(/-/g,"");for(var a=0,s=2,u=0;u<14;u++){var c=e.substring(14-u-1,14-u),d=parseInt(c,10)*s;a+=d>=10?d%10+1:d,1===s?s+=1:s-=1}if((10-a%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[0-9]{15}$/,i=/^\d{2}-\d{6}-\d{6}-\d{1}$/;e.exports=t.default,e.exports.default=t.default}(Ek,Ek.exports);var Sk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default}(Sk,Sk.exports);var Dk={};Object.defineProperty(Dk,"__esModule",{value:!0}),Dk.default=function(e){return(0,Rk.default)(e),Ik.test(e)},Dk.fullWidth=void 0;var Rk=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var Ik=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;Dk.fullWidth=Ik;var Ck={};Object.defineProperty(Ck,"__esModule",{value:!0}),Ck.default=function(e){return(0,Ok.default)(e),Tk.test(e)},Ck.halfWidth=void 0;var Ok=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var Tk=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;Ck.halfWidth=Tk;var Pk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.fullWidth.test(e)&&i.halfWidth.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),n=Dk,i=Ck;e.exports=t.default,e.exports.default=t.default}(Pk,Pk.exports);var Mk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default}(Mk,Mk.exports);var Lk={exports:{}},Bk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=e.join("");return new RegExp(r,t)},e.exports=t.default,e.exports.default=t.default}(Bk,Bk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)};var r=n(yx.exports);function n(e){return e&&e.__esModule?e:{default:e}}var i=(0,n(Bk.exports).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");e.exports=t.default,e.exports.default=t.default}(Lk,Lk.exports);var jk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default}(jk,jk.exports);var Uk={exports:{}},Fk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){return e.some((function(e){return t===e}))};t.default=r,e.exports=t.default,e.exports.default=t.default}(Fk,Fk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t=(0,r.default)(t,s),t.locale in o.decimal)return!(0,i.default)(u,e.replace(/ /g,""))&&function(e){var t=new RegExp("^[-+]?([0-9]+)?(\\".concat(o.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"));return t}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var r=a(Jx.exports),n=a(yx.exports),i=a(Fk.exports),o=xx;function a(e){return e&&e.__esModule?e:{default:e}}var s={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},u=["","-","+"];e.exports=t.default,e.exports.default=t.default}(Uk,Uk.exports);var Nk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(0x|0h)?[0-9A-F]+$/i;e.exports=t.default,e.exports.default=t.default}(Nk,Nk.exports);var $k={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default}($k,$k.exports);var Gk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),(0,n.default)(e)%parseInt(t,10)==0};var r=i(yx.exports),n=i(_x.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(Gk,Gk.exports);var Hk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;e.exports=t.default,e.exports.default=t.default}(Hk,Hk.exports);var zk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,r.default)(e),!t)return n.test(e)||i.test(e);return n.test(e)||i.test(e)||o.test(e)||a.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,i=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,o=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,a=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;e.exports=t.default,e.exports.default=t.default}(zk,zk.exports);var Zk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return n.test(t);return i.test(t)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;e.exports=t.default,e.exports.default=t.default}(Zk,Zk.exports);var Kk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default}(Kk,Kk.exports);var qk={};Object.defineProperty(qk,"__esModule",{value:!0}),qk.default=function(e){return(0,Vk.default)(e),function(e){var t=e.replace(/[\s\-]+/gi,"").toUpperCase(),r=t.slice(0,2).toUpperCase();return r in Wk&&Wk[r].test(t)}(e)&&function(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,(function(e){return e.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(e,t){return Number(e+t)%97}),"")}(e)},qk.locales=void 0;var Vk=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var Wk={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};var Yk=Object.keys(Wk);qk.locales=Yk;var Qk={exports:{}},Jk={};Object.defineProperty(Jk,"__esModule",{value:!0}),Jk.default=function(e){return(0,Xk.default)(e),eE.has(e.toUpperCase())},Jk.CountryCodes=void 0;var Xk=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var eE=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);var tE=eE;Jk.CountryCodes=tE,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.slice(4,6).toUpperCase();if(!n.CountryCodes.has(t)&&"XK"!==t)return!1;return i.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),n=Jk;var i=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;e.exports=t.default,e.exports.default=t.default}(Qk,Qk.exports);var rE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default}(rE,rE.exports);var nE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),new RegExp("^[a-fA-F0-9]{".concat(n[t],"}$")).test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default}(nE,nE.exports);var iE={exports:{}},oE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=(0,n.default)(t,s);var i=e.length;if(t.urlSafe)return a.test(e);if(i%4!=0||o.test(e))return!1;var u=e.indexOf("=");return-1===u||u===i-1||u===i-2&&"="===e[i-1]};var r=i(yx.exports),n=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o=/[^A-Z0-9+\/=]/i,a=/^[A-Z0-9_\-]*$/i,s={urlSafe:!1};e.exports=t.default,e.exports.default=t.default}(oE,oE.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.split("."),i=t.length;if(i>3||i<2)return!1;return t.reduce((function(e,t){return e&&(0,n.default)(t,{urlSafe:!0})}),!0)};var r=i(yx.exports),n=i(oE.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(iE,iE.exports);var aE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);try{t=(0,n.default)(t,a);var i=[];t.allow_primitives&&(i=[null,!1,!0]);var s=JSON.parse(e);return i.includes(s)||!!s&&"object"===o(s)}catch(e){}return!1};var r=i(yx.exports),n=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="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(e)}var a={allow_primitives:!1};e.exports=t.default,e.exports.default=t.default}(aE,aE.exports);var sE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),t=(0,n.default)(t,o),0===(t.ignore_whitespace?e.trim().length:e.length)};var r=i(yx.exports),n=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default}(sE,sE.exports);var uE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i,o;(0,r.default)(e),"object"===n(t)?(i=t.min||0,o=t.max):(i=arguments[1]||0,o=arguments[2]);var a=e.match(/(\uFE0F|\uFE0E)/g)||[],s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],u=e.length-a.length-s.length;return u>=i&&(void 0===o||u<=o)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);function n(e){return n="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},n(e)}e.exports=t.default,e.exports.default=t.default}(uE,uE.exports);var cE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var i=n[[void 0,null].includes(t)?"all":t];return!!i&&i.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default,e.exports.default=t.default}(cE,cE.exports);var dE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),(0,n.default)(e)&&24===e.length};var r=i(yx.exports),n=i(Nk.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(dE,dE.exports);var lE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(null==t?void 0:t.comparisonDate)||t||Date().toString(),i=(0,r.default)(n),o=(0,r.default)(e);return!!(o&&i&&o>i)};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);e.exports=t.default,e.exports.default=t.default}(lE,lE.exports);var fE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,r.default)(e);var i=(0,n.default)(t),o=(0,n.default)(e);return!!(o&&i&&o<i)};var r=i(yx.exports),n=i(bx.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(fE,fE.exports);var pE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i;if((0,r.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var a=[];for(i in t)({}).hasOwnProperty.call(t,i)&&(a[i]=(0,n.default)(t[i]));return a.indexOf(e)>=0}if("object"===o(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var r=i(yx.exports),n=i(Qx.exports);function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="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(e)}e.exports=t.default,e.exports.default=t.default}(pE,pE.exports);var hE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);for(var t,n,i,o=e.replace(/[- ]+/g,""),a=0,s=o.length-1;s>=0;s--)t=o.substring(s,s+1),n=parseInt(t,10),a+=i&&(n*=2)>=10?n%10+1:n,i=!i;return!(a%10!=0||!o)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(hE,hE.exports);var mE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var i=t.provider,s=e.replace(/[- ]+/g,"");if(i&&i.toLowerCase()in o){if(!o[i.toLowerCase()].test(s))return!1}else{if(i&&!(i.toLowerCase()in o))throw new Error("".concat(i," is not a valid credit card provider."));if(!a.test(s))return!1}return(0,n.default)(e)};var r=i(yx.exports),n=i(hE.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},a=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;e.exports=t.default,e.exports.default=t.default}(mE,mE.exports);var vE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t in o)return o[t](e);if("any"===t){for(var n in o){if(o.hasOwnProperty(n))if((0,o[n])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r=i(yx.exports),n=i(wk.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o={PL:function(e){(0,r.default)(e);var t={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(null!=e&&11===e.length&&(0,n.default)(e,{allow_leading_zeroes:!0})){var i=e.split("").slice(0,-1).reduce((function(e,r,n){return e+Number(r)*t[n+1]}),0),o=i%10,a=Number(e.charAt(e.length-1));if(0===o&&0===a||a===10-o)return!0}return!1},ES:function(e){(0,r.default)(e);var t={X:0,Y:1,Z:2},n=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(n))return!1;var i=n.slice(0,-1).replace(/[X,Y,Z]/g,(function(e){return t[e]}));return n.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][i%23])},FI:function(e){if((0,r.default)(e),11!==e.length)return!1;if(!e.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;return"0123456789ABCDEFHJKLMNPRSTUVWXY"[(1e3*parseInt(e.slice(0,6),10)+parseInt(e.slice(7,10),10))%31]===e.slice(10,11)},IN:function(e){var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],r=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],n=e.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(n))return!1;var i=0;return n.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(e,n){i=t[i][r[n%8][e]]})),0===i},IR:function(e){if(!e.match(/^\d{10}$/))return!1;if(e="0000".concat(e).slice(e.length-6),0===parseInt(e.slice(3,9),10))return!1;for(var t=parseInt(e.slice(9,10),10),r=0,n=0;n<9;n++)r+=parseInt(e.slice(n,n+1),10)*(10-n);return(r%=11)<2&&t===r||r>=2&&t===11-r},IT:function(e){return 9===e.length&&("CA00000AA"!==e&&e.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var r=t.split("").map(Number),n=(11-(3*r[0]+7*r[1]+6*r[2]+1*r[3]+8*r[4]+9*r[5]+4*r[6]+5*r[7]+2*r[8])%11)%11,i=(11-(5*r[0]+4*r[1]+3*r[2]+2*r[3]+7*r[4]+6*r[5]+5*r[6]+4*r[7]+3*r[8]+2*n)%11)%11;return n===r[9]&&i===r[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,r=0;r<12;r++)t+=parseInt(e[r],10)*(13-r);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var r,n=t,i=0,o=0;o<n.length;o++)i+=(r=Number(n[o])*(o%2+1))>9?r-9:r;return i%10==0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,r=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],n=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],i=["1","0","X","9","8","7","6","5","4","3","2"],o=function(e){return r.includes(e)},a=function(e){var t=parseInt(e.substring(0,4),10),r=parseInt(e.substring(4,6),10),n=parseInt(e.substring(6),10),i=new Date(t,r-1,n);return!(i>new Date)&&(i.getFullYear()===t&&i.getMonth()===r-1&&i.getDate()===n)},s=function(e){return function(e){for(var t=e.substring(0,17),r=0,o=0;o<17;o++)r+=parseInt(t.charAt(o),10)*parseInt(n[o],10);return i[r%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var r=e.substring(0,2);if(!(t=o(r)))return!1;var n="19".concat(e.substring(6,12));return!!(t=a(n))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var r=e.substring(0,2);if(!(t=o(r)))return!1;var n=e.substring(6,14);return!!(t=a(n))&&s(e)}(t))},"zh-HK":function(e){var t=/^[0-9]$/;if(e=(e=e.trim()).toUpperCase(),!/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/.test(e))return!1;8===(e=e.replace(/\[|\]|\(|\)/g,"")).length&&(e="3".concat(e));for(var r=0,n=0;n<=7;n++){r+=(t.test(e[n])?e[n]:(e[n].charCodeAt(0)-55)%11)*(9-n)}return(0===(r%=11)?"0":1===r?"A":String(11-r))===e[e.length-1]},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},r=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(r)&&Array.from(r).reduce((function(e,r,n){if(0===n){var i=t[r];return i%10*9+Math.floor(i/10)}return 9===n?(10-e%10-Number(r))%10==0:e+Number(r)*(9-n)}),0)}};e.exports=t.default,e.exports.default=t.default}(vE,vE.exports);var gE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=Number(e.slice(-1));return o.test(e)&&t===(a=e,s=a.slice(0,-1).split("").map((function(e,t){return Number(e)*function(e,t){return e===n||e===i?t%2==0?3:1:t%2==0?1:3}(a.length,t)})).reduce((function(e,t){return e+t}),0),u=10-s%10,u<10?u:0);var a,s,u};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=8,i=14,o=/^(\d{8}|\d{13}|\d{14})$/;e.exports=t.default,e.exports.default=t.default}(gE,gE.exports);var AE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(e),!n.test(e))return!1;for(var t=!0,i=0,o=e.length-2;o>=0;o--)if(e[o]>="A"&&e[o]<="Z")for(var a=e[o].charCodeAt(0)-55,s=0,u=[a%10,Math.trunc(a/10)];s<u.length;s++){var c=u[s];i+=t?c>=5?1+2*(c-5):2*c:c,t=!t}else{var d=e[o].charCodeAt(0)-"0".charCodeAt(0);i+=t?d>=5?1+2*(d-5):2*d:d,t=!t}var l=10*Math.trunc((i+9)/10)-i;return+e[e.length-1]===l};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default}(AE,AE.exports);var bE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,a){(0,r.default)(t);var s=String((null==a?void 0:a.version)||a);if(!(null!=a&&a.version||a))return e(t,{version:10})||e(t,{version:13});var u=t.replace(/[\s-]+/g,""),c=0;if("10"===s){if(!n.test(u))return!1;for(var d=0;d<s-1;d++)c+=(d+1)*u.charAt(d);if("X"===u.charAt(9)?c+=100:c+=10*u.charAt(9),c%11==0)return!0}else if("13"===s){if(!i.test(u))return!1;for(var l=0;l<12;l++)c+=o[l%2]*u.charAt(l);if(u.charAt(12)-(10-c%10)%10==0)return!0}return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(?:[0-9]{9}X|[0-9]{10})$/,i=/^(?:[0-9]{13})$/,o=[1,3];e.exports=t.default,e.exports.default=t.default}(bE,bE.exports);var yE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var i=n;if(i=t.require_hyphen?i.replace("?",""):i,i=t.case_sensitive?new RegExp(i):new RegExp(i,"i"),!i.test(e))return!1;for(var o=e.replace("-","").toUpperCase(),a=0,s=0;s<o.length;s++){var u=o[s];a+=("X"===u?10:+u)*(8-s)}return a%11==0};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n="^\\d{4}-?\\d{3}[\\dX]$";e.exports=t.default,e.exports.default=t.default}(yE,yE.exports);var _E={exports:{}},wE={};Object.defineProperty(wE,"__esModule",{value:!0}),wE.iso7064Check=function(e){for(var t=10,r=0;r<e.length-1;r++)t=(parseInt(e[r],10)+t)%10==0?9:(parseInt(e[r],10)+t)%10*2%11;return(t=1===t?0:11-t)===parseInt(e[10],10)},wE.luhnCheck=function(e){for(var t=0,r=!1,n=e.length-1;n>=0;n--){if(r){var i=2*parseInt(e[n],10);t+=i>9?i.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):i}else t+=parseInt(e[n],10);r=!r}return t%10==0},wE.reverseMultiplyAndSum=function(e,t){for(var r=0,n=0;n<e.length;n++)r+=e[n]*(t-n);return r},wE.verhoeffCheck=function(e){for(var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],r=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],n=e.split("").reverse().join(""),i=0,o=0;o<n.length;o++)i=t[i][r[o%8][parseInt(n[o],10)]];return 0===i},function(e,t){function r(e){return 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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,n.default)(e);var r=e.slice(0);if(t in f)return t in m&&(r=r.replace(m[t],"")),!!f[t].test(r)&&(!(t in p)||p[t](r));throw new Error("Invalid locale '".concat(t,"'"))};var n=s(yx.exports),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(wE),o=s(sk.exports);function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e)||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.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d={andover:["10","12"],atlanta:["60","67"],austin:["50","53"],brookhaven:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],cincinnati:["30","32","35","36","37","38","61"],fresno:["15","24"],internet:["20","26","27","45","46","47"],kansas:["40","44"],memphis:["94","95"],ogden:["80","90"],philadelphia:["33","39","41","42","43","46","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],sba:["31"]};function l(e){for(var t=!1,r=!1,n=0;n<3;n++)if(!t&&/[AEIOU]/.test(e[n]))t=!0;else if(!r&&t&&"X"===e[n])r=!0;else if(n>0){if(t&&!r&&!/[AEIOU]/.test(e[n]))return!1;if(r&&!/X/.test(e[n]))return!1}return!0}var f={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};f["lb-LU"]=f["fr-LU"],f["lt-LT"]=f["et-EE"],f["nl-BE"]=f["fr-BE"],f["fr-CA"]=f["en-CA"];var p={"bg-BG":function(e){var t=e.slice(0,2),r=parseInt(e.slice(2,4),10);r>40?(r-=40,t="20".concat(t)):r>20?(r-=20,t="18".concat(t)):t="19".concat(t),r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,o.default)(n,"YYYY/MM/DD"))return!1;for(var i=e.split("").map((function(e){return parseInt(e,10)})),a=[2,4,8,5,10,9,7,3,6],s=0,u=0;u<a.length;u++)s+=i[u]*a[u];return(s=s%11==10?0:s%11)===i[9]},"cs-CZ":function(e){e=e.replace(/\W/,"");var t=parseInt(e.slice(0,2),10);if(10===e.length)t=t<54?"20".concat(t):"19".concat(t);else{if("000"===e.slice(6))return!1;if(!(t<54))return!1;t="19".concat(t)}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var r=parseInt(e.slice(2,4),10);if(r>50&&(r-=50),r>20){if(parseInt(t,10)<2004)return!1;r-=20}r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,o.default)(n,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var i=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===i))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return i.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=[],n=0;n<t.length-1;n++){r.push("");for(var o=0;o<t.length-1;o++)t[n]===t[o]&&(r[n]+=o)}if(2!==(r=r.filter((function(e){return e.length>1}))).length&&3!==r.length)return!1;if(3===r[0].length){for(var a=r[0].split("").map((function(e){return parseInt(e,10)})),s=0,u=0;u<a.length-1;u++)a[u]+1===a[u+1]&&(s+=1);if(2===s)return!1}return i.iso7064Check(e)},"dk-DK":function(e){e=e.replace(/\W/,"");var t=parseInt(e.slice(4,6),10);switch(e.slice(6,7)){case"0":case"1":case"2":case"3":t="19".concat(t);break;case"4":case"9":t=t<37?"20".concat(t):"19".concat(t);break;default:if(t<37)t="20".concat(t);else{if(!(t>58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var r="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,o.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),i=0,a=4,s=0;s<9;s++)i+=n[s]*a,1===(a-=1)&&(a=7);return 1!==(i%=11)&&(0===i?0===n[9]:n[9]===11-i)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),r=0,n=1;n<t.length;n+=2)r+=t[n];for(var i=0;i<t.length;i+=2)t[i]<2?r+=1-t[i]:(r+=2*(t[i]-2)+5,t[i]>4&&(r+=2));return String.fromCharCode(r%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=0,n=0;n<8;n++)r+=t[n]*Math.pow(2,8-n);return r%11%10===t[8]},"en-CA":function(e){var t=e.split(""),r=t.filter((function(e,t){return t%2})).map((function(e){return 2*Number(e)})).join("").split(""),n=t.filter((function(e,t){return!(t%2)})).concat(r).map((function(e){return Number(e)})).reduce((function(e,t){return e+t}));return n%10==0},"en-IE":function(e){var t=i.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0===(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in d)d.hasOwnProperty(t)&&e.push.apply(e,u(d[t]));return e}().indexOf(e.slice(0,2))},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var r=0;switch(t[0]){case"Y":r=1;break;case"Z":r=2}t.splice(0,1,r)}else for(;t.length<9;)t.unshift(0);t=t.join("");var n=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][n]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,o.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),i=0,a=1,s=0;s<10;s++)i+=n[s]*a,10===(a+=1)&&(a=1);if(i%11==10){i=0,a=3;for(var u=0;u<10;u++)i+=n[u]*a,10===(a+=1)&&(a=1);if(i%11==10)return 0===n[10]}return i%11===n[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,o.default)(r,"YYYY/MM/DD"))return!1;var n=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return n<10?n===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][n-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,o.default)(t,"YY/MM/DD"))return!1}var r=97-parseInt(e.slice(0,9),10)%97,n=parseInt(e.slice(9,11),10);return r===n||(r=97-parseInt("2".concat(e.slice(0,9)),10)%97)===n},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,o.default)(t,"YYYY/MM/DD")&&(!!i.luhnCheck(e.slice(0,12))&&i.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return i.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=8,n=1;n<9;n++)r+=t[n]*(n+1);return r%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!l(t.slice(0,3)))return!1;if(!l(t.slice(3,6)))return!1;for(var r={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},n=0,i=[6,7,9,10,12,13,14];n<i.length;n++){var a=i[n];t[a]in r&&t.splice(a,1,r[t[a]])}var s={A:"01",B:"02",C:"03",D:"04",E:"05",H:"06",L:"07",M:"08",P:"09",R:"10",S:"11",T:"12"}[t[8]],u=parseInt(t[9]+t[10],10);u>40&&(u-=40),u<10&&(u="0".concat(u));var c="".concat(t[6]).concat(t[7],"/").concat(s,"/").concat(u);if(!(0,o.default)(c,"YY/MM/DD"))return!1;for(var d=0,f=1;f<t.length-1;f+=2){var p=parseInt(t[f],10);isNaN(p)&&(p=t[f].charCodeAt(0)-65),d+=p}for(var h={A:1,B:0,C:5,D:7,E:9,F:13,G:15,H:17,I:19,J:21,K:2,L:4,M:18,N:20,O:11,P:3,Q:6,R:8,S:12,T:14,U:16,V:10,W:22,X:25,Y:24,Z:23,0:1,1:0},m=0;m<t.length-1;m+=2){var v=0;if(t[m]in h)v=h[t[m]];else{var g=parseInt(t[m],10);v=2*g+1,g>4&&(v+=2)}d+=v}return String.fromCharCode(65+d%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var r=e.slice(4,6);switch(e[6]){case"0":r="18".concat(r);break;case"1":r="19".concat(r);break;default:r="20".concat(r)}var n="".concat(r,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,o.default)(n,"YYYY/MM/DD"))return!1}for(var i=1101,a=[1,6,3,7,9,10,5,8,4,2],s=0;s<e.length-1;s++)i-=parseInt(e[s],10)*a[s];return parseInt(e[10],10)===i%11}return!0},"mt-MT":function(e){if(9!==e.length){for(var t=e.toUpperCase().split("");t.length<8;)t.unshift(0);switch(e[7]){case"A":case"P":if(0===parseInt(t[6],10))return!1;break;default:var r=parseInt(t.join("").slice(0,5),10);if(r>32e3)return!1;if(r===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return i.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],r=0,n=0;n<t.length;n++)r+=parseInt(e[n],10)*t[n];return 10!==(r%=11)&&r===parseInt(e[9],10)}var i=e.slice(0,2),a=parseInt(e.slice(2,4),10);a>80?(i="18".concat(i),a-=80):a>60?(i="22".concat(i),a-=60):a>40?(i="21".concat(i),a-=40):a>20?(i="20".concat(i),a-=20):i="19".concat(i),a<10&&(a="0".concat(a));var s="".concat(i,"/").concat(a,"/").concat(e.slice(4,6));if(!(0,o.default)(s,"YYYY/MM/DD"))return!1;for(var u=0,c=1,d=0;d<e.length-1;d++)u+=parseInt(e[d],10)*c%10,(c+=2)>10?c=1:5===c&&(c+=2);return(u=10-u%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,r;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var n=1;n<=9;n++)t+=parseInt(e.substring(n-1,n),10)*(11-n);if(10===(r=10*t%11)&&(r=0),r!==parseInt(e.substring(9,10),10))return!1;t=0;for(var i=1;i<=10;i++)t+=parseInt(e.substring(i-1,i),10)*(12-i);return 10===(r=10*t%11)&&(r=0),r===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var o=e.length-2,a=e.substring(0,o),s=e.substring(o),u=0,c=o-7,d=o;d>=1;d--)u+=a.charAt(o-d)*c,(c-=1)<2&&(c=9);var l=u%11<2?0:11-u%11;if(l!==parseInt(s.charAt(0),10))return!1;o+=1,a=e.substring(0,o),u=0,c=o-7;for(var f=o;f>=1;f--)u+=a.charAt(o-f)*c,(c-=1)<2&&(c=9);return(l=u%11<2?0:11-u%11)===parseInt(s.charAt(1),10)},"pt-PT":function(e){var t=11-i.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===r.length){if(!(0,o.default)(r,"YY/MM/DD"))return!1}else if(!(0,o.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),i=[2,7,9,1,4,6,3,5,8,2,7,9],a=0,s=0;s<i.length;s++)a+=n[s]*i[s];return a%11==10?1===n[12]:n[12]===a%11}return!0},"sk-SK":function(e){if(9===e.length){if("000"===(e=e.replace(/\W/,"")).slice(6))return!1;var t=parseInt(e.slice(0,2),10);if(t>53)return!1;t=t<10?"190".concat(t):"19".concat(t);var r=parseInt(e.slice(2,4),10);r>50&&(r-=50),r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,o.default)(n,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-i.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var r="",n=t.slice(2,4),a=parseInt(t.slice(4,6),10);if(e.length>11)r=e.slice(0,4);else if(r=e.slice(0,2),11===e.length&&a<60){var s=(new Date).getFullYear().toString(),u=parseInt(s.slice(0,2),10);if(s=parseInt(s,10),"-"===e[6])r=parseInt("".concat(u).concat(r),10)>s?"".concat(u-1).concat(r):"".concat(u).concat(r);else if(r="".concat(u-1).concat(r),s-parseInt(r,10)<100)return!1}a>60&&(a-=60),a<10&&(a="0".concat(a));var c="".concat(r,"/").concat(n,"/").concat(a);if(8===c.length){if(!(0,o.default)(c,"YY/MM/DD"))return!1}else if(!(0,o.default)(c,"YYYY/MM/DD"))return!1;return i.luhnCheck(e.replace(/\W/,""))}};p["lb-LU"]=p["fr-LU"],p["lt-LT"]=p["et-EE"],p["nl-BE"]=p["fr-BE"],p["fr-CA"]=p["en-CA"];var h=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,m={"de-AT":h,"de-DE":/[\/\\]/g,"fr-BE":h};m["nl-BE"]=m["fr-BE"],e.exports=t.default,e.exports.default=t.default}(_E,_E.exports);var xE={};Object.defineProperty(xE,"__esModule",{value:!0}),xE.default=function(e,t,r){if((0,kE.default)(e),r&&r.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(EE.hasOwnProperty(t)&&EE[t].test(e))return!0;return!1}));if(t in EE)return EE[t].test(e);if(!t||"any"===t){for(var n in EE){if(EE.hasOwnProperty(n))if(EE[n].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},xE.locales=void 0;var kE=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var EE={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};EE["en-CA"]=EE["en-US"],EE["fr-CA"]=EE["en-CA"],EE["fr-BE"]=EE["nl-BE"],EE["zh-HK"]=EE["en-HK"],EE["zh-MO"]=EE["en-MO"],EE["ga-IE"]=EE["en-IE"],EE["fr-CH"]=EE["de-CH"],EE["it-CH"]=EE["fr-CH"];var SE=Object.keys(EE);xE.locales=SE;var DE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default}(DE,DE.exports);var RE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),t=(0,r.default)(t,o),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,r){0!==r&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var r="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),n="-?",i="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),o="(".concat(["0","[1-9]\\d*",i].join("|"),")?"),a="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),s=o+(e.allow_decimal||e.require_decimal?a:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?s+=n:e.negative_sign_before_digits&&(s=n+s));e.allow_negative_sign_placeholder?s="( (?!\\-))?".concat(s):e.allow_space_after_symbol?s=" ?".concat(s):e.allow_space_after_digits&&(s+="( (?!$))?");e.symbol_after_digits?s+=r:s=r+s;e.allow_negatives&&(e.parens_for_negatives?s="(\\(".concat(s,"\\)|").concat(s,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(s=n+s));return new RegExp("^(?!-? )(?=.*\\d)".concat(s,"$"))}(t).test(e)};var r=i(Jx.exports),n=i(yx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};e.exports=t.default,e.exports.default=t.default}(RE,RE.exports);var IE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)||i.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(bc1)[a-z0-9]{25,39}$/,i=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default}(IE,IE.exports);var CE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.has(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);e.exports=t.default,e.exports.default=t.default}(CE,CE.exports);var OE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var a=t.strictSeparator?i.test(e):n.test(e);return a&&t.strict?o(e):a};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,o=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var r=Number(t[1]),n=Number(t[2]);return r%4==0&&r%100!=0||r%400==0?n<=366:n<=365}var i=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),o=i[1],a=i[2],s=i[3],u=a?"0".concat(a).slice(-2):a,c=s?"0".concat(s).slice(-2):s,d=new Date("".concat(o,"-").concat(u||"01","-").concat(c||"01"));return!a||!s||d.getUTCFullYear()===o&&d.getUTCMonth()+1===a&&d.getUTCDate()===s};e.exports=t.default,e.exports.default=t.default}(OE,OE.exports);var TE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),d.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/([01][0-9]|2[0-3])/,i=/[0-5][0-9]/,o=new RegExp("[-+]".concat(n.source,":").concat(i.source)),a=new RegExp("([zZ]|".concat(o.source,")")),s=new RegExp("".concat(n.source,":").concat(i.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),u=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),c=new RegExp("".concat(s.source).concat(a.source)),d=new RegExp("^".concat(u.source,"[ tT]").concat(c.source,"$"));e.exports=t.default,e.exports.default=t.default}(TE,TE.exports);var PE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.has(e.toUpperCase())};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);e.exports=t.default,e.exports.default=t.default}(PE,PE.exports);var ME={};Object.defineProperty(ME,"__esModule",{value:!0}),ME.default=function(e){return(0,LE.default)(e),BE.has(e.toUpperCase())},ME.CurrencyCodes=void 0;var LE=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var BE=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);var jE=BE;ME.CurrencyCodes=jE;var UE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t=(0,n.default)(t,s),t.crockford)return a.test(e);var i=e.length;if(i%8==0&&o.test(e))return!0;return!1};var r=i(yx.exports),n=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o=/^[A-Z2-7]+=*$/,a=/^[A-HJKMNP-TV-Z0-9]+$/,s={crockford:!1};e.exports=t.default,e.exports.default=t.default}(UE,UE.exports);var FE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(e),n.test(e))return!0;return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[A-HJ-NP-Za-km-z1-9]*$/;e.exports=t.default,e.exports.default=t.default}(FE,FE.exports);var NE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.split(",");if(t.length<2)return!1;var a=t.shift().trim().split(";"),s=a.shift();if("data:"!==s.slice(0,5))return!1;var u=s.slice(5);if(""!==u&&!n.test(u))return!1;for(var c=0;c<a.length;c++)if((c!==a.length-1||"base64"!==a[c].toLowerCase())&&!i.test(a[c]))return!1;for(var d=0;d<t.length;d++)if(!o.test(t[d]))return!1;return!0};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,i=/^[a-z\-]+=[a-z0-9\-]+$/i,o=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;e.exports=t.default,e.exports.default=t.default}(NE,NE.exports);var $E={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(e),0!==e.indexOf("magnet:?"))return!1;return n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;e.exports=t.default,e.exports.default=t.default}($E,$E.exports);var GE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)||i.test(e)||o.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,i=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,o=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;e.exports=t.default,e.exports.default=t.default}(GE,GE.exports);var HE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t=(0,n.default)(t,c),!e.includes(","))return!1;var i=e.split(",");if(i[0].startsWith("(")&&!i[1].endsWith(")")||i[1].endsWith(")")&&!i[0].startsWith("("))return!1;if(t.checkDMS)return s.test(i[0])&&u.test(i[1]);return o.test(i[0])&&a.test(i[1])};var r=i(yx.exports),n=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,a=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,s=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,u=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,c={checkDMS:!1};e.exports=t.default,e.exports.default=t.default}(HE,HE.exports);var zE={};Object.defineProperty(zE,"__esModule",{value:!0}),zE.default=function(e,t){if((0,ZE.default)(e),t in YE)return YE[t].test(e);if("any"===t){for(var r in YE){if(YE.hasOwnProperty(r))if(YE[r].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},zE.locales=void 0;var ZE=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var KE=/^\d{3}$/,qE=/^\d{4}$/,VE=/^\d{5}$/,WE=/^\d{6}$/,YE={AD:/^AD\d{3}$/,AT:qE,AU:qE,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:qE,BG:qE,BR:/^\d{5}-\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:qE,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:VE,DK:qE,DO:VE,DZ:VE,EE:VE,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:VE,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:qE,ID:VE,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:KE,IT:VE,JP:/^\d{3}\-\d{4}$/,KE:VE,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:qE,LV:/^LV\-\d{4}$/,LK:VE,MG:KE,MX:VE,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:VE,NL:/^\d{4}\s?[a-z]{2}$/i,NO:qE,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:qE,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:WE,RU:WE,SA:VE,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:WE,SI:qE,SK:/^\d{3}\s?\d{2}$/,TH:VE,TN:qE,TW:/^\d{3}(\d{2})?$/,UA:VE,US:/^\d{5}(-\d{4})?$/,ZA:qE,ZM:VE},QE=Object.keys(YE);zE.locales=QE;var JE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var n=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(n,"")};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(JE,JE.exports);var XE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t){var n=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(n,"")}var i=e.length-1;for(;/\s/.test(e.charAt(i));)i-=1;return e.slice(0,i+1)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(XE,XE.exports);var eS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)((0,n.default)(e,t),t)};var r=i(XE.exports),n=i(JE.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(eS,eS.exports);var tS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\//g,"&#x2F;").replace(/\\/g,"&#x5C;").replace(/`/g,"&#96;")};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(tS,tS.exports);var rS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e.replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&#x2F;/g,"/").replace(/&#x5C;/g,"\\").replace(/&#96;/g,"`").replace(/&amp;/g,"&")};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(rS,rS.exports);var nS={exports:{}},iS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e.replace(new RegExp("[".concat(t,"]+"),"g"),"")};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(iS,iS.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var i=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,n.default)(e,i)};var r=i(yx.exports),n=i(iS.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(nS,nS.exports);var oS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(oS,oS.exports);var aS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);for(var n=e.length-1;n>=0;n--)if(-1===t.indexOf(e[n]))return!1;return!0};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(aS,aS.exports);var sS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,r.default)(t,n);var c=e.split("@"),d=c.pop(),l=[c.join("@"),d];if(l[1]=l[1].toLowerCase(),"gmail.com"===l[1]||"googlemail.com"===l[1]){if(t.gmail_remove_subaddress&&(l[0]=l[0].split("+")[0]),t.gmail_remove_dots&&(l[0]=l[0].replace(/\.+/g,u)),!l[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(l[0]=l[0].toLowerCase()),l[1]=t.gmail_convert_googlemaildotcom?"gmail.com":l[1]}else if(i.indexOf(l[1])>=0){if(t.icloud_remove_subaddress&&(l[0]=l[0].split("+")[0]),!l[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(l[0]=l[0].toLowerCase())}else if(o.indexOf(l[1])>=0){if(t.outlookdotcom_remove_subaddress&&(l[0]=l[0].split("+")[0]),!l[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(l[0]=l[0].toLowerCase())}else if(a.indexOf(l[1])>=0){if(t.yahoo_remove_subaddress){var f=l[0].split("-");l[0]=f.length>1?f.slice(0,-1).join("-"):f[0]}if(!l[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(l[0]=l[0].toLowerCase())}else s.indexOf(l[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(l[0]=l[0].toLowerCase()),l[1]="yandex.ru"):t.all_lowercase&&(l[0]=l[0].toLowerCase());return l.join("@")};var r=function(e){return e&&e.__esModule?e:{default:e}}(Jx.exports);var n={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},i=["icloud.com","me.com"],o=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],a=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],s=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function u(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default}(sS,sS.exports);var uS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;e.exports=t.default,e.exports.default=t.default}(uS,uS.exports);var cS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t in n)return n[t](e);if("any"===t){for(var i in n){if((0,n[i])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n={"cs-CZ":function(e){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"en-IN":function(e){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(e)},"es-AR":function(e){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"hu-HU":function(e){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)},"pt-PT":function(e){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"sv-SE":function(e){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(e.trim())}};e.exports=t.default,e.exports.default=t.default}(cS,cS.exports);var dS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,n.default)(e);var i=function(e){var t=function(e){var t={};return Array.from(e).forEach((function(e){t[e]?t[e]+=1:t[e]=1})),t}(e),r={length:e.length,uniqueChars:Object.keys(t).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(t).forEach((function(e){o.test(e)?r.uppercaseCount+=t[e]:a.test(e)?r.lowercaseCount+=t[e]:s.test(e)?r.numberCount+=t[e]:u.test(e)&&(r.symbolCount+=t[e])})),r}(e);if(t=(0,r.default)(t||{},c),t.returnScore)return function(e,t){var r=0;r+=e.uniqueChars*t.pointsPerUnique,r+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(r+=t.pointsForContainingLower);e.uppercaseCount>0&&(r+=t.pointsForContainingUpper);e.numberCount>0&&(r+=t.pointsForContainingNumber);e.symbolCount>0&&(r+=t.pointsForContainingSymbol);return r}(i,t);return i.length>=t.minLength&&i.lowercaseCount>=t.minLowercase&&i.uppercaseCount>=t.minUppercase&&i.numberCount>=t.minNumbers&&i.symbolCount>=t.minSymbols};var r=i(Jx.exports),n=i(yx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o=/^[A-Z]$/,a=/^[a-z]$/,s=/^[0-9]$/,u=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,c={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};e.exports=t.default,e.exports.default=t.default}(dS,dS.exports);var lS={};function fS(e){return fS="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},fS(e)}Object.defineProperty(lS,"__esModule",{value:!0}),lS.default=function(e,t){if((0,pS.default)(e),(0,pS.default)(t),t in vS)return vS[t](e);throw new Error("Invalid country code: '".concat(t,"'"))},lS.vatMatchers=void 0;var pS=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),hS=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==fS(e)&&"function"!=typeof e)return{default:e};var t=mS();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(wE);function mS(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return mS=function(){return e},e}var vS={AT:function(e){return/^(AT)?U\d{8}$/.test(e)},BE:function(e){return/^(BE)?\d{10}$/.test(e)},BG:function(e){return/^(BG)?\d{9,10}$/.test(e)},HR:function(e){return/^(HR)?\d{11}$/.test(e)},CY:function(e){return/^(CY)?\w{9}$/.test(e)},CZ:function(e){return/^(CZ)?\d{8,10}$/.test(e)},DK:function(e){return/^(DK)?\d{8}$/.test(e)},EE:function(e){return/^(EE)?\d{9}$/.test(e)},FI:function(e){return/^(FI)?\d{8}$/.test(e)},FR:function(e){return/^(FR)?\w{2}\d{9}$/.test(e)},DE:function(e){return/^(DE)?\d{9}$/.test(e)},EL:function(e){return/^(EL)?\d{9}$/.test(e)},HU:function(e){return/^(HU)?\d{8}$/.test(e)},IE:function(e){return/^(IE)?\d{7}\w{1}(W)?$/.test(e)},IT:function(e){return/^(IT)?\d{11}$/.test(e)},LV:function(e){return/^(LV)?\d{11}$/.test(e)},LT:function(e){return/^(LT)?\d{9,12}$/.test(e)},LU:function(e){return/^(LU)?\d{8}$/.test(e)},MT:function(e){return/^(MT)?\d{8}$/.test(e)},NL:function(e){return/^(NL)?\d{9}B\d{2}$/.test(e)},PL:function(e){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(e)},PT:function(e){var t=e.match(/^(PT)?(\d{9})$/);if(!t)return!1;var r=t[2],n=11-hS.reverseMultiplyAndSum(r.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return n>9?0===parseInt(r[8],10):n===parseInt(r[8],10)},RO:function(e){return/^(RO)?\d{2,10}$/.test(e)},SK:function(e){return/^(SK)?\d{10}$/.test(e)},SI:function(e){return/^(SI)?\d{8}$/.test(e)},ES:function(e){return/^(ES)?\w\d{7}[A-Z]$/.test(e)},SE:function(e){return/^(SE)?\d{12}$/.test(e)},AL:function(e){return/^(AL)?\w{9}[A-Z]$/.test(e)},MK:function(e){return/^(MK)?\d{13}$/.test(e)},AU:function(e){return/^(AU)?\d{11}$/.test(e)},BY:function(e){return/^(УНП )?\d{9}$/.test(e)},CA:function(e){return/^(CA)?\d{9}$/.test(e)},IS:function(e){return/^(IS)?\d{5,6}$/.test(e)},IN:function(e){return/^(IN)?\d{15}$/.test(e)},ID:function(e){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(e)},IL:function(e){return/^(IL)?\d{9}$/.test(e)},KZ:function(e){return/^(KZ)?\d{9}$/.test(e)},NZ:function(e){return/^(NZ)?\d{9}$/.test(e)},NG:function(e){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(e)},NO:function(e){return/^(NO)?\d{9}MVA$/.test(e)},PH:function(e){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(e)},RU:function(e){return/^(RU)?(\d{10}|\d{12})$/.test(e)},SM:function(e){return/^(SM)?\d{5}$/.test(e)},SA:function(e){return/^(SA)?\d{15}$/.test(e)},RS:function(e){return/^(RS)?\d{9}$/.test(e)},CH:function(e){return/^(CH)?(\d{6}|\d{9}|(\d{3}.\d{3})|(\d{3}.\d{3}.\d{3}))(TVA|MWST|IVA)$/.test(e)},TR:function(e){return/^(TR)?\d{10}$/.test(e)},UA:function(e){return/^(UA)?\d{12}$/.test(e)},GB:function(e){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(e)},UZ:function(e){return/^(UZ)?\d{9}$/.test(e)},AR:function(e){return/^(AR)?\d{11}$/.test(e)},BO:function(e){return/^(BO)?\d{7}$/.test(e)},BR:function(e){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(e)},CL:function(e){return/^(CL)?\d{8}-\d{1}$/.test(e)},CO:function(e){return/^(CO)?\d{10}$/.test(e)},CR:function(e){return/^(CR)?\d{9,12}$/.test(e)},EC:function(e){return/^(EC)?\d{13}$/.test(e)},SV:function(e){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(e)},GT:function(e){return/^(GT)?\d{7}-\d{1}$/.test(e)},HN:function(e){return/^(HN)?$/.test(e)},MX:function(e){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(e)},NI:function(e){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(e)},PA:function(e){return/^(PA)?$/.test(e)},PY:function(e){return/^(PY)?\d{6,8}-\d{1}$/.test(e)},PE:function(e){return/^(PE)?\d{11}$/.test(e)},DO:function(e){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(e)},UY:function(e){return/^(UY)?\d{12}$/.test(e)},VE:function(e){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(e)}};lS.vatMatchers=vS,function(e,t){function r(e){return 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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=qe(bx.exports),i=qe(_x.exports),o=qe(qx.exports),a=qe(Vx.exports),s=qe(Wx.exports),u=qe(Yx.exports),c=qe(Xx.exports),d=qe(ek.exports),l=qe(ik.exports),f=qe(ok.exports),p=qe(nk.exports),h=qe(ak.exports),m=qe(rk.exports),v=qe(sk.exports),g=qe(uk.exports),A=qe(ck.exports),b=qe(dk.exports),y=Ke(lk),_=Ke(mk),w=qe(bk.exports),x=qe(yk.exports),k=qe(_k.exports),E=qe(xk.exports),S=qe(kk.exports),D=qe(Ek.exports),R=qe(Sk.exports),I=qe(Dk),C=qe(Ck),O=qe(Pk.exports),T=qe(Mk.exports),P=qe(Lk.exports),M=qe(jk.exports),L=qe(wk.exports),B=Ke(wx),j=qe(Uk.exports),U=qe(Nk.exports),F=qe($k.exports),N=qe(Gk.exports),$=qe(Hk.exports),G=qe(zk.exports),H=qe(Zk.exports),z=qe(Kk.exports),Z=Ke(qk),K=qe(Qk.exports),q=qe(rE.exports),V=qe(nE.exports),W=qe(iE.exports),Y=qe(aE.exports),Q=qe(sE.exports),J=qe(uE.exports),X=qe(tk.exports),ee=qe(cE.exports),te=qe(dE.exports),re=qe(lE.exports),ne=qe(fE.exports),ie=qe(pE.exports),oe=qe(hE.exports),ae=qe(mE.exports),se=qe(vE.exports),ue=qe(gE.exports),ce=qe(AE.exports),de=qe(bE.exports),le=qe(yE.exports),fe=qe(_E.exports),pe=Ke(xE),he=qe(DE.exports),me=qe(RE.exports),ve=qe(IE.exports),ge=qe(CE.exports),Ae=qe(OE.exports),be=qe(TE.exports),ye=qe(Jk),_e=qe(PE.exports),we=qe(ME),xe=qe(UE.exports),ke=qe(FE.exports),Ee=qe(oE.exports),Se=qe(NE.exports),De=qe($E.exports),Re=qe(GE.exports),Ie=qe(HE.exports),Ce=Ke(zE),Oe=qe(JE.exports),Te=qe(XE.exports),Pe=qe(eS.exports),Me=qe(tS.exports),Le=qe(rS.exports),Be=qe(nS.exports),je=qe(oS.exports),Ue=qe(iS.exports),Fe=qe(aS.exports),Ne=qe(sS.exports),$e=qe(uS.exports),Ge=qe(cS.exports),He=qe(dS.exports),ze=qe(lS);function Ze(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Ze=function(){return e},e}function Ke(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=Ze();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function qe(e){return e&&e.__esModule?e:{default:e}}var Ve={version:"13.9.0",toDate:n.default,toFloat:i.default,toInt:o.default,toBoolean:a.default,equals:s.default,contains:u.default,matches:c.default,isEmail:d.default,isURL:l.default,isMACAddress:f.default,isIP:p.default,isIPRange:h.default,isFQDN:m.default,isBoolean:A.default,isIBAN:Z.default,isBIC:K.default,isAlpha:y.default,isAlphaLocales:y.locales,isAlphanumeric:_.default,isAlphanumericLocales:_.locales,isNumeric:w.default,isPassportNumber:x.default,isPort:k.default,isLowercase:E.default,isUppercase:S.default,isAscii:R.default,isFullWidth:I.default,isHalfWidth:C.default,isVariableWidth:O.default,isMultibyte:T.default,isSemVer:P.default,isSurrogatePair:M.default,isInt:L.default,isIMEI:D.default,isFloat:B.default,isFloatLocales:B.locales,isDecimal:j.default,isHexadecimal:U.default,isOctal:F.default,isDivisibleBy:N.default,isHexColor:$.default,isRgbColor:G.default,isHSL:H.default,isISRC:z.default,isMD5:q.default,isHash:V.default,isJWT:W.default,isJSON:Y.default,isEmpty:Q.default,isLength:J.default,isLocale:b.default,isByteLength:X.default,isUUID:ee.default,isMongoId:te.default,isAfter:re.default,isBefore:ne.default,isIn:ie.default,isLuhnNumber:oe.default,isCreditCard:ae.default,isIdentityCard:se.default,isEAN:ue.default,isISIN:ce.default,isISBN:de.default,isISSN:le.default,isMobilePhone:pe.default,isMobilePhoneLocales:pe.locales,isPostalCode:Ce.default,isPostalCodeLocales:Ce.locales,isEthereumAddress:he.default,isCurrency:me.default,isBtcAddress:ve.default,isISO6391:ge.default,isISO8601:Ae.default,isRFC3339:be.default,isISO31661Alpha2:ye.default,isISO31661Alpha3:_e.default,isISO4217:we.default,isBase32:xe.default,isBase58:ke.default,isBase64:Ee.default,isDataURI:Se.default,isMagnetURI:De.default,isMimeType:Re.default,isLatLong:Ie.default,ltrim:Oe.default,rtrim:Te.default,trim:Pe.default,escape:Me.default,unescape:Le.default,stripLow:Be.default,whitelist:je.default,blacklist:Ue.default,isWhitelisted:Fe.default,normalizeEmail:Ne.default,toString:toString,isSlug:$e.default,isStrongPassword:He.default,isTaxID:fe.default,isDate:v.default,isTime:g.default,isLicensePlate:Ge.default,isVAT:ze.default,ibanLocales:Z.locales};t.default=Ve,e.exports=t.default,e.exports.default=t.default}(Ax,Ax.exports);var gS=o(Ax.exports);const AS=2147483647,bS=36,yS=/^xn--/,_S=/[^\0-\x7F]/,wS=/[\x2E\u3002\uFF0E\uFF61]/g,xS={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},kS=Math.floor,ES=String.fromCharCode;function SS(e){throw new RangeError(xS[e])}function DS(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const i=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace(wS,".")).split("."),t).join(".");return n+i}function RS(e){const t=[];let r=0;const n=e.length;for(;r<n;){const i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?t.push(((1023&i)<<10)+(1023&n)+65536):(t.push(i),r--)}else t.push(i)}return t}const IS=e=>String.fromCodePoint(...e),CS=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},OS=function(e,t,r){let n=0;for(e=r?kS(e/700):e>>1,e+=kS(e/t);e>455;n+=bS)e=kS(e/35);return kS(n+36*e/(e+38))},TS=function(e){const t=[],r=e.length;let n=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let r=0;r<a;++r)e.charCodeAt(r)>=128&&SS("not-basic"),t.push(e.charCodeAt(r));for(let u=a>0?a+1:0;u<r;){const a=n;for(let t=1,i=bS;;i+=bS){u>=r&&SS("invalid-input");const a=(s=e.charCodeAt(u++))>=48&&s<58?s-48+26:s>=65&&s<91?s-65:s>=97&&s<123?s-97:bS;a>=bS&&SS("invalid-input"),a>kS((AS-n)/t)&&SS("overflow"),n+=a*t;const c=i<=o?1:i>=o+26?26:i-o;if(a<c)break;const d=bS-c;t>kS(AS/d)&&SS("overflow"),t*=d}const c=t.length+1;o=OS(n-a,c,0==a),kS(n/c)>AS-i&&SS("overflow"),i+=kS(n/c),n%=c,t.splice(n++,0,i)}var s;return String.fromCodePoint(...t)},PS=function(e){const t=[],r=(e=RS(e)).length;let n=128,i=0,o=72;for(const r of e)r<128&&t.push(ES(r));const a=t.length;let s=a;for(a&&t.push("-");s<r;){let r=AS;for(const t of e)t>=n&&t<r&&(r=t);const u=s+1;r-n>kS((AS-i)/u)&&SS("overflow"),i+=(r-n)*u,n=r;for(const r of e)if(r<n&&++i>AS&&SS("overflow"),r===n){let e=i;for(let r=bS;;r+=bS){const n=r<=o?1:r>=o+26?26:r-o;if(e<n)break;const i=e-n,a=bS-n;t.push(ES(CS(n+i%a,0))),e=kS(i/a)}t.push(ES(CS(e,0))),o=OS(i,u,s===a),i=0,++s}++i,++n}return t.join("")},MS=function(e){return DS(e,(function(e){return yS.test(e)?TS(e.slice(4).toLowerCase()):e}))},LS=function(e){return DS(e,(function(e){return _S.test(e)?"xn--"+PS(e):e}))},BS={version:"2.1.0",ucs2:{decode:RS,encode:IS},decode:TS,encode:PS,toASCII:LS,toUnicode:MS};var jS=Object.freeze({__proto__:null,ucs2decode:RS,ucs2encode:IS,decode:TS,encode:PS,toASCII:LS,toUnicode:MS,default:BS}),US=a(jS),FS={"com.ac":!0,"net.ac":!0,"gov.ac":!0,"org.ac":!0,"mil.ac":!0,"co.ae":!0,"net.ae":!0,"gov.ae":!0,"ac.ae":!0,"sch.ae":!0,"org.ae":!0,"mil.ae":!0,"pro.ae":!0,"name.ae":!0,"com.af":!0,"edu.af":!0,"gov.af":!0,"net.af":!0,"org.af":!0,"com.al":!0,"edu.al":!0,"gov.al":!0,"mil.al":!0,"net.al":!0,"org.al":!0,"ed.ao":!0,"gv.ao":!0,"og.ao":!0,"co.ao":!0,"pb.ao":!0,"it.ao":!0,"com.ar":!0,"edu.ar":!0,"gob.ar":!0,"gov.ar":!0,"int.ar":!0,"mil.ar":!0,"net.ar":!0,"org.ar":!0,"tur.ar":!0,"gv.at":!0,"ac.at":!0,"co.at":!0,"or.at":!0,"com.au":!0,"net.au":!0,"org.au":!0,"edu.au":!0,"gov.au":!0,"csiro.au":!0,"asn.au":!0,"id.au":!0,"vic.au":!0,"sa.au":!0,"wa.au":!0,"nt.au":!0,"tas.au":!0,"qld.au":!0,"act.au":!0,"conf.au":!0,"oz.au":!0,"org.ba":!0,"net.ba":!0,"edu.ba":!0,"gov.ba":!0,"mil.ba":!0,"unsa.ba":!0,"untz.ba":!0,"unmo.ba":!0,"unbi.ba":!0,"unze.ba":!0,"co.ba":!0,"com.ba":!0,"rs.ba":!0,"co.bb":!0,"com.bb":!0,"net.bb":!0,"org.bb":!0,"gov.bb":!0,"edu.bb":!0,"info.bb":!0,"store.bb":!0,"tv.bb":!0,"biz.bb":!0,"com.bh":!0,"info.bh":!0,"cc.bh":!0,"edu.bh":!0,"biz.bh":!0,"net.bh":!0,"org.bh":!0,"gov.bh":!0,"com.bn":!0,"edu.bn":!0,"gov.bn":!0,"net.bn":!0,"org.bn":!0,"com.bo":!0,"net.bo":!0,"org.bo":!0,"tv.bo":!0,"mil.bo":!0,"int.bo":!0,"gob.bo":!0,"gov.bo":!0,"edu.bo":!0,"adm.br":!0,"adv.br":!0,"agr.br":!0,"am.br":!0,"arq.br":!0,"art.br":!0,"ato.br":!0,"b.br":!0,"bio.br":!0,"blog.br":!0,"bmd.br":!0,"cim.br":!0,"cng.br":!0,"cnt.br":!0,"com.br":!0,"coop.br":!0,"ecn.br":!0,"edu.br":!0,"eng.br":!0,"esp.br":!0,"etc.br":!0,"eti.br":!0,"far.br":!0,"flog.br":!0,"fm.br":!0,"fnd.br":!0,"fot.br":!0,"fst.br":!0,"g12.br":!0,"ggf.br":!0,"gov.br":!0,"imb.br":!0,"ind.br":!0,"inf.br":!0,"jor.br":!0,"jus.br":!0,"lel.br":!0,"mat.br":!0,"med.br":!0,"mil.br":!0,"mus.br":!0,"net.br":!0,"nom.br":!0,"not.br":!0,"ntr.br":!0,"odo.br":!0,"org.br":!0,"ppg.br":!0,"pro.br":!0,"psc.br":!0,"psi.br":!0,"qsl.br":!0,"rec.br":!0,"slg.br":!0,"srv.br":!0,"tmp.br":!0,"trd.br":!0,"tur.br":!0,"tv.br":!0,"vet.br":!0,"vlog.br":!0,"wiki.br":!0,"zlg.br":!0,"com.bs":!0,"net.bs":!0,"org.bs":!0,"edu.bs":!0,"gov.bs":!0,"om.bz":!0,"du.bz":!0,"ov.bz":!0,"et.bz":!0,"rg.bz":!0,"ab.ca":!0,"bc.ca":!0,"mb.ca":!0,"nb.ca":!0,"nf.ca":!0,"nl.ca":!0,"ns.ca":!0,"nt.ca":!0,"nu.ca":!0,"on.ca":!0,"pe.ca":!0,"qc.ca":!0,"sk.ca":!0,"yk.ca":!0,"co.ck":!0,"org.ck":!0,"edu.ck":!0,"gov.ck":!0,"net.ck":!0,"gen.ck":!0,"biz.ck":!0,"info.ck":!0,"ac.cn":!0,"com.cn":!0,"edu.cn":!0,"gov.cn":!0,"mil.cn":!0,"net.cn":!0,"org.cn":!0,"ah.cn":!0,"bj.cn":!0,"cq.cn":!0,"fj.cn":!0,"gd.cn":!0,"gs.cn":!0,"gz.cn":!0,"gx.cn":!0,"ha.cn":!0,"hb.cn":!0,"he.cn":!0,"hi.cn":!0,"hl.cn":!0,"hn.cn":!0,"jl.cn":!0,"js.cn":!0,"jx.cn":!0,"ln.cn":!0,"nm.cn":!0,"nx.cn":!0,"qh.cn":!0,"sc.cn":!0,"sd.cn":!0,"sh.cn":!0,"sn.cn":!0,"sx.cn":!0,"tj.cn":!0,"tw.cn":!0,"xj.cn":!0,"xz.cn":!0,"yn.cn":!0,"zj.cn":!0,"com.co":!0,"org.co":!0,"edu.co":!0,"gov.co":!0,"net.co":!0,"mil.co":!0,"nom.co":!0,"ac.cr":!0,"co.cr":!0,"ed.cr":!0,"fi.cr":!0,"go.cr":!0,"or.cr":!0,"sa.cr":!0,cr:!0,"ac.cy":!0,"net.cy":!0,"gov.cy":!0,"org.cy":!0,"pro.cy":!0,"name.cy":!0,"ekloges.cy":!0,"tm.cy":!0,"ltd.cy":!0,"biz.cy":!0,"press.cy":!0,"parliament.cy":!0,"com.cy":!0,"edu.do":!0,"gob.do":!0,"gov.do":!0,"com.do":!0,"sld.do":!0,"org.do":!0,"net.do":!0,"web.do":!0,"mil.do":!0,"art.do":!0,"com.dz":!0,"org.dz":!0,"net.dz":!0,"gov.dz":!0,"edu.dz":!0,"asso.dz":!0,"pol.dz":!0,"art.dz":!0,"com.ec":!0,"info.ec":!0,"net.ec":!0,"fin.ec":!0,"med.ec":!0,"pro.ec":!0,"org.ec":!0,"edu.ec":!0,"gov.ec":!0,"mil.ec":!0,"com.eg":!0,"edu.eg":!0,"eun.eg":!0,"gov.eg":!0,"mil.eg":!0,"name.eg":!0,"net.eg":!0,"org.eg":!0,"sci.eg":!0,"com.er":!0,"edu.er":!0,"gov.er":!0,"mil.er":!0,"net.er":!0,"org.er":!0,"ind.er":!0,"rochest.er":!0,"w.er":!0,"com.es":!0,"nom.es":!0,"org.es":!0,"gob.es":!0,"edu.es":!0,"com.et":!0,"gov.et":!0,"org.et":!0,"edu.et":!0,"net.et":!0,"biz.et":!0,"name.et":!0,"info.et":!0,"ac.fj":!0,"biz.fj":!0,"com.fj":!0,"info.fj":!0,"mil.fj":!0,"name.fj":!0,"net.fj":!0,"org.fj":!0,"pro.fj":!0,"co.fk":!0,"org.fk":!0,"gov.fk":!0,"ac.fk":!0,"nom.fk":!0,"net.fk":!0,fr:!0,"tm.fr":!0,"asso.fr":!0,"nom.fr":!0,"prd.fr":!0,"presse.fr":!0,"com.fr":!0,"gouv.fr":!0,"co.gg":!0,"net.gg":!0,"org.gg":!0,"com.gh":!0,"edu.gh":!0,"gov.gh":!0,"org.gh":!0,"mil.gh":!0,"co.gl":!0,"com.gl":!0,"edu.gl":!0,"net.gl":!0,"org.gl":!0,"com.gn":!0,"ac.gn":!0,"gov.gn":!0,"org.gn":!0,"net.gn":!0,"com.gr":!0,"edu.gr":!0,"net.gr":!0,"org.gr":!0,"gov.gr":!0,"mil.gr":!0,"com.gt":!0,"edu.gt":!0,"net.gt":!0,"gob.gt":!0,"org.gt":!0,"mil.gt":!0,"ind.gt":!0,"com.gu":!0,"net.gu":!0,"gov.gu":!0,"org.gu":!0,"edu.gu":!0,"com.hk":!0,"edu.hk":!0,"gov.hk":!0,"idv.hk":!0,"net.hk":!0,"org.hk":!0,"2000.hu":!0,"agrar.hu":!0,"bolt.hu":!0,"casino.hu":!0,"city.hu":!0,"co.hu":!0,"erotica.hu":!0,"erotika.hu":!0,"film.hu":!0,"forum.hu":!0,"games.hu":!0,"hotel.hu":!0,"info.hu":!0,"ingatlan.hu":!0,"jogasz.hu":!0,"konyvelo.hu":!0,"lakas.hu":!0,"media.hu":!0,"news.hu":!0,"org.hu":!0,"priv.hu":!0,"reklam.hu":!0,"sex.hu":!0,"shop.hu":!0,"sport.hu":!0,"suli.huv":!0,"szex.hu":!0,"tm.hu":!0,"tozsde.hu":!0,"utazas.hu":!0,"video.hu":!0,"ac.id":!0,"co.id":!0,"net.id":!0,"or.id":!0,"web.id":!0,"sch.id":!0,"mil.id":!0,"go.id":!0,"war.net.id":!0,"my.id":!0,"biz.id":!0,"ac.il":!0,"co.il":!0,"org.il":!0,"net.il":!0,"k12.il":!0,"gov.il":!0,"muni.il":!0,"idf.il":!0,in:!0,"4fd.in":!0,"co.in":!0,"firm.in":!0,"net.in":!0,"org.in":!0,"gen.in":!0,"ind.in":!0,"ac.in":!0,"edu.in":!0,"res.in":!0,"ernet.in":!0,"gov.in":!0,"mil.in":!0,"nic.in":!0,iq:!0,"gov.iq":!0,"edu.iq":!0,"com.iq":!0,"mil.iq":!0,"org.iq":!0,"net.iq":!0,ir:!0,"ac.ir":!0,"co.ir":!0,"gov.ir":!0,"id.ir":!0,"net.ir":!0,"org.ir":!0,"sch.ir":!0,"dnssec.ir":!0,"gov.it":!0,"edu.it":!0,"co.je":!0,"net.je":!0,"org.je":!0,"com.jo":!0,"net.jo":!0,"gov.jo":!0,"edu.jo":!0,"org.jo":!0,"mil.jo":!0,"name.jo":!0,"sch.jo":!0,"ac.jp":!0,"ad.jp":!0,"co.jp":!0,"ed.jp":!0,"go.jp":!0,"gr.jp":!0,"lg.jp":!0,"ne.jp":!0,"or.jp":!0,"co.ke":!0,"or.ke":!0,"ne.ke":!0,"go.ke":!0,"ac.ke":!0,"sc.ke":!0,"me.ke":!0,"mobi.ke":!0,"info.ke":!0,"per.kh":!0,"com.kh":!0,"edu.kh":!0,"gov.kh":!0,"mil.kh":!0,"net.kh":!0,"org.kh":!0,"com.ki":!0,"biz.ki":!0,"de.ki":!0,"net.ki":!0,"info.ki":!0,"org.ki":!0,"gov.ki":!0,"edu.ki":!0,"mob.ki":!0,"tel.ki":!0,km:!0,"com.km":!0,"coop.km":!0,"asso.km":!0,"nom.km":!0,"presse.km":!0,"tm.km":!0,"medecin.km":!0,"notaires.km":!0,"pharmaciens.km":!0,"veterinaire.km":!0,"edu.km":!0,"gouv.km":!0,"mil.km":!0,"net.kn":!0,"org.kn":!0,"edu.kn":!0,"gov.kn":!0,kr:!0,"co.kr":!0,"ne.kr":!0,"or.kr":!0,"re.kr":!0,"pe.kr":!0,"go.kr":!0,"mil.kr":!0,"ac.kr":!0,"hs.kr":!0,"ms.kr":!0,"es.kr":!0,"sc.kr":!0,"kg.kr":!0,"seoul.kr":!0,"busan.kr":!0,"daegu.kr":!0,"incheon.kr":!0,"gwangju.kr":!0,"daejeon.kr":!0,"ulsan.kr":!0,"gyeonggi.kr":!0,"gangwon.kr":!0,"chungbuk.kr":!0,"chungnam.kr":!0,"jeonbuk.kr":!0,"jeonnam.kr":!0,"gyeongbuk.kr":!0,"gyeongnam.kr":!0,"jeju.kr":!0,"edu.kw":!0,"com.kw":!0,"net.kw":!0,"org.kw":!0,"gov.kw":!0,"com.ky":!0,"org.ky":!0,"net.ky":!0,"edu.ky":!0,"gov.ky":!0,"com.kz":!0,"edu.kz":!0,"gov.kz":!0,"mil.kz":!0,"net.kz":!0,"org.kz":!0,"com.lb":!0,"edu.lb":!0,"gov.lb":!0,"net.lb":!0,"org.lb":!0,"gov.lk":!0,"sch.lk":!0,"net.lk":!0,"int.lk":!0,"com.lk":!0,"org.lk":!0,"edu.lk":!0,"ngo.lk":!0,"soc.lk":!0,"web.lk":!0,"ltd.lk":!0,"assn.lk":!0,"grp.lk":!0,"hotel.lk":!0,"com.lr":!0,"edu.lr":!0,"gov.lr":!0,"org.lr":!0,"net.lr":!0,"com.lv":!0,"edu.lv":!0,"gov.lv":!0,"org.lv":!0,"mil.lv":!0,"id.lv":!0,"net.lv":!0,"asn.lv":!0,"conf.lv":!0,"com.ly":!0,"net.ly":!0,"gov.ly":!0,"plc.ly":!0,"edu.ly":!0,"sch.ly":!0,"med.ly":!0,"org.ly":!0,"id.ly":!0,ma:!0,"net.ma":!0,"ac.ma":!0,"org.ma":!0,"gov.ma":!0,"press.ma":!0,"co.ma":!0,"tm.mc":!0,"asso.mc":!0,"co.me":!0,"net.me":!0,"org.me":!0,"edu.me":!0,"ac.me":!0,"gov.me":!0,"its.me":!0,"priv.me":!0,"org.mg":!0,"nom.mg":!0,"gov.mg":!0,"prd.mg":!0,"tm.mg":!0,"edu.mg":!0,"mil.mg":!0,"com.mg":!0,"com.mk":!0,"org.mk":!0,"net.mk":!0,"edu.mk":!0,"gov.mk":!0,"inf.mk":!0,"name.mk":!0,"pro.mk":!0,"com.ml":!0,"net.ml":!0,"org.ml":!0,"edu.ml":!0,"gov.ml":!0,"presse.ml":!0,"gov.mn":!0,"edu.mn":!0,"org.mn":!0,"com.mo":!0,"edu.mo":!0,"gov.mo":!0,"net.mo":!0,"org.mo":!0,"com.mt":!0,"org.mt":!0,"net.mt":!0,"edu.mt":!0,"gov.mt":!0,"aero.mv":!0,"biz.mv":!0,"com.mv":!0,"coop.mv":!0,"edu.mv":!0,"gov.mv":!0,"info.mv":!0,"int.mv":!0,"mil.mv":!0,"museum.mv":!0,"name.mv":!0,"net.mv":!0,"org.mv":!0,"pro.mv":!0,"ac.mw":!0,"co.mw":!0,"com.mw":!0,"coop.mw":!0,"edu.mw":!0,"gov.mw":!0,"int.mw":!0,"museum.mw":!0,"net.mw":!0,"org.mw":!0,"com.mx":!0,"net.mx":!0,"org.mx":!0,"edu.mx":!0,"gob.mx":!0,"com.my":!0,"net.my":!0,"org.my":!0,"gov.my":!0,"edu.my":!0,"sch.my":!0,"mil.my":!0,"name.my":!0,"com.nf":!0,"net.nf":!0,"arts.nf":!0,"store.nf":!0,"web.nf":!0,"firm.nf":!0,"info.nf":!0,"other.nf":!0,"per.nf":!0,"rec.nf":!0,"com.ng":!0,"org.ng":!0,"gov.ng":!0,"edu.ng":!0,"net.ng":!0,"sch.ng":!0,"name.ng":!0,"mobi.ng":!0,"biz.ng":!0,"mil.ng":!0,"gob.ni":!0,"co.ni":!0,"com.ni":!0,"ac.ni":!0,"edu.ni":!0,"org.ni":!0,"nom.ni":!0,"net.ni":!0,"mil.ni":!0,"com.np":!0,"edu.np":!0,"gov.np":!0,"org.np":!0,"mil.np":!0,"net.np":!0,"edu.nr":!0,"gov.nr":!0,"biz.nr":!0,"info.nr":!0,"net.nr":!0,"org.nr":!0,"com.nr":!0,"com.om":!0,"co.om":!0,"edu.om":!0,"ac.om":!0,"sch.om":!0,"gov.om":!0,"net.om":!0,"org.om":!0,"mil.om":!0,"museum.om":!0,"biz.om":!0,"pro.om":!0,"med.om":!0,"edu.pe":!0,"gob.pe":!0,"nom.pe":!0,"mil.pe":!0,"sld.pe":!0,"org.pe":!0,"com.pe":!0,"net.pe":!0,"com.ph":!0,"net.ph":!0,"org.ph":!0,"mil.ph":!0,"ngo.ph":!0,"i.ph":!0,"gov.ph":!0,"edu.ph":!0,"com.pk":!0,"net.pk":!0,"edu.pk":!0,"org.pk":!0,"fam.pk":!0,"biz.pk":!0,"web.pk":!0,"gov.pk":!0,"gob.pk":!0,"gok.pk":!0,"gon.pk":!0,"gop.pk":!0,"gos.pk":!0,"pwr.pl":!0,"com.pl":!0,"biz.pl":!0,"net.pl":!0,"art.pl":!0,"edu.pl":!0,"org.pl":!0,"ngo.pl":!0,"gov.pl":!0,"info.pl":!0,"mil.pl":!0,"waw.pl":!0,"warszawa.pl":!0,"wroc.pl":!0,"wroclaw.pl":!0,"krakow.pl":!0,"katowice.pl":!0,"poznan.pl":!0,"lodz.pl":!0,"gda.pl":!0,"gdansk.pl":!0,"slupsk.pl":!0,"radom.pl":!0,"szczecin.pl":!0,"lublin.pl":!0,"bialystok.pl":!0,"olsztyn.pl":!0,"torun.pl":!0,"gorzow.pl":!0,"zgora.pl":!0,"biz.pr":!0,"com.pr":!0,"edu.pr":!0,"gov.pr":!0,"info.pr":!0,"isla.pr":!0,"name.pr":!0,"net.pr":!0,"org.pr":!0,"pro.pr":!0,"est.pr":!0,"prof.pr":!0,"ac.pr":!0,"com.ps":!0,"net.ps":!0,"org.ps":!0,"edu.ps":!0,"gov.ps":!0,"plo.ps":!0,"sec.ps":!0,"co.pw":!0,"ne.pw":!0,"or.pw":!0,"ed.pw":!0,"go.pw":!0,"belau.pw":!0,"arts.ro":!0,"com.ro":!0,"firm.ro":!0,"info.ro":!0,"nom.ro":!0,"nt.ro":!0,"org.ro":!0,"rec.ro":!0,"store.ro":!0,"tm.ro":!0,"www.ro":!0,"co.rs":!0,"org.rs":!0,"edu.rs":!0,"ac.rs":!0,"gov.rs":!0,"in.rs":!0,"com.sb":!0,"net.sb":!0,"edu.sb":!0,"org.sb":!0,"gov.sb":!0,"com.sc":!0,"net.sc":!0,"edu.sc":!0,"gov.sc":!0,"org.sc":!0,"co.sh":!0,"com.sh":!0,"org.sh":!0,"gov.sh":!0,"edu.sh":!0,"net.sh":!0,"nom.sh":!0,"com.sl":!0,"net.sl":!0,"org.sl":!0,"edu.sl":!0,"gov.sl":!0,"gov.st":!0,"saotome.st":!0,"principe.st":!0,"consulado.st":!0,"embaixada.st":!0,"org.st":!0,"edu.st":!0,"net.st":!0,"com.st":!0,"store.st":!0,"mil.st":!0,"co.st":!0,"edu.sv":!0,"gob.sv":!0,"com.sv":!0,"org.sv":!0,"red.sv":!0,"co.sz":!0,"ac.sz":!0,"org.sz":!0,"com.tr":!0,"gen.tr":!0,"org.tr":!0,"biz.tr":!0,"info.tr":!0,"av.tr":!0,"dr.tr":!0,"pol.tr":!0,"bel.tr":!0,"tsk.tr":!0,"bbs.tr":!0,"k12.tr":!0,"edu.tr":!0,"name.tr":!0,"net.tr":!0,"gov.tr":!0,"web.tr":!0,"tel.tr":!0,"tv.tr":!0,"co.tt":!0,"com.tt":!0,"org.tt":!0,"net.tt":!0,"biz.tt":!0,"info.tt":!0,"pro.tt":!0,"int.tt":!0,"coop.tt":!0,"jobs.tt":!0,"mobi.tt":!0,"travel.tt":!0,"museum.tt":!0,"aero.tt":!0,"cat.tt":!0,"tel.tt":!0,"name.tt":!0,"mil.tt":!0,"edu.tt":!0,"gov.tt":!0,"edu.tw":!0,"gov.tw":!0,"mil.tw":!0,"com.tw":!0,"net.tw":!0,"org.tw":!0,"idv.tw":!0,"game.tw":!0,"ebiz.tw":!0,"club.tw":!0,"com.mu":!0,"gov.mu":!0,"net.mu":!0,"org.mu":!0,"ac.mu":!0,"co.mu":!0,"or.mu":!0,"ac.mz":!0,"co.mz":!0,"edu.mz":!0,"org.mz":!0,"gov.mz":!0,"com.na":!0,"co.na":!0,"ac.nz":!0,"co.nz":!0,"cri.nz":!0,"geek.nz":!0,"gen.nz":!0,"govt.nz":!0,"health.nz":!0,"iwi.nz":!0,"maori.nz":!0,"mil.nz":!0,"net.nz":!0,"org.nz":!0,"parliament.nz":!0,"school.nz":!0,"abo.pa":!0,"ac.pa":!0,"com.pa":!0,"edu.pa":!0,"gob.pa":!0,"ing.pa":!0,"med.pa":!0,"net.pa":!0,"nom.pa":!0,"org.pa":!0,"sld.pa":!0,"com.pt":!0,"edu.pt":!0,"gov.pt":!0,"int.pt":!0,"net.pt":!0,"nome.pt":!0,"org.pt":!0,"publ.pt":!0,"com.py":!0,"edu.py":!0,"gov.py":!0,"mil.py":!0,"net.py":!0,"org.py":!0,"com.qa":!0,"edu.qa":!0,"gov.qa":!0,"mil.qa":!0,"net.qa":!0,"org.qa":!0,"asso.re":!0,"com.re":!0,"nom.re":!0,"ac.ru":!0,"adygeya.ru":!0,"altai.ru":!0,"amur.ru":!0,"arkhangelsk.ru":!0,"astrakhan.ru":!0,"bashkiria.ru":!0,"belgorod.ru":!0,"bir.ru":!0,"bryansk.ru":!0,"buryatia.ru":!0,"cbg.ru":!0,"chel.ru":!0,"chelyabinsk.ru":!0,"chita.ru":!0,"chukotka.ru":!0,"chuvashia.ru":!0,"com.ru":!0,"dagestan.ru":!0,"e-burg.ru":!0,"edu.ru":!0,"gov.ru":!0,"grozny.ru":!0,"int.ru":!0,"irkutsk.ru":!0,"ivanovo.ru":!0,"izhevsk.ru":!0,"jar.ru":!0,"joshkar-ola.ru":!0,"kalmykia.ru":!0,"kaluga.ru":!0,"kamchatka.ru":!0,"karelia.ru":!0,"kazan.ru":!0,"kchr.ru":!0,"kemerovo.ru":!0,"khabarovsk.ru":!0,"khakassia.ru":!0,"khv.ru":!0,"kirov.ru":!0,"koenig.ru":!0,"komi.ru":!0,"kostroma.ru":!0,"kranoyarsk.ru":!0,"kuban.ru":!0,"kurgan.ru":!0,"kursk.ru":!0,"lipetsk.ru":!0,"magadan.ru":!0,"mari.ru":!0,"mari-el.ru":!0,"marine.ru":!0,"mil.ru":!0,"mordovia.ru":!0,"mosreg.ru":!0,"msk.ru":!0,"murmansk.ru":!0,"nalchik.ru":!0,"net.ru":!0,"nnov.ru":!0,"nov.ru":!0,"novosibirsk.ru":!0,"nsk.ru":!0,"omsk.ru":!0,"orenburg.ru":!0,"org.ru":!0,"oryol.ru":!0,"penza.ru":!0,"perm.ru":!0,"pp.ru":!0,"pskov.ru":!0,"ptz.ru":!0,"rnd.ru":!0,"ryazan.ru":!0,"sakhalin.ru":!0,"samara.ru":!0,"saratov.ru":!0,"simbirsk.ru":!0,"smolensk.ru":!0,"spb.ru":!0,"stavropol.ru":!0,"stv.ru":!0,"surgut.ru":!0,"tambov.ru":!0,"tatarstan.ru":!0,"tom.ru":!0,"tomsk.ru":!0,"tsaritsyn.ru":!0,"tsk.ru":!0,"tula.ru":!0,"tuva.ru":!0,"tver.ru":!0,"tyumen.ru":!0,"udm.ru":!0,"udmurtia.ru":!0,"ulan-ude.ru":!0,"vladikavkaz.ru":!0,"vladimir.ru":!0,"vladivostok.ru":!0,"volgograd.ru":!0,"vologda.ru":!0,"voronezh.ru":!0,"vrn.ru":!0,"vyatka.ru":!0,"yakutia.ru":!0,"yamal.ru":!0,"yekaterinburg.ru":!0,"yuzhno-sakhalinsk.ru":!0,"ac.rw":!0,"co.rw":!0,"com.rw":!0,"edu.rw":!0,"gouv.rw":!0,"gov.rw":!0,"int.rw":!0,"mil.rw":!0,"net.rw":!0,"com.sa":!0,"edu.sa":!0,"gov.sa":!0,"med.sa":!0,"net.sa":!0,"org.sa":!0,"pub.sa":!0,"sch.sa":!0,"com.sd":!0,"edu.sd":!0,"gov.sd":!0,"info.sd":!0,"med.sd":!0,"net.sd":!0,"org.sd":!0,"tv.sd":!0,"a.se":!0,"ac.se":!0,"b.se":!0,"bd.se":!0,"c.se":!0,"d.se":!0,"e.se":!0,"f.se":!0,"g.se":!0,"h.se":!0,"i.se":!0,"k.se":!0,"l.se":!0,"m.se":!0,"n.se":!0,"o.se":!0,"org.se":!0,"p.se":!0,"parti.se":!0,"pp.se":!0,"press.se":!0,"r.se":!0,"s.se":!0,"t.se":!0,"tm.se":!0,"u.se":!0,"w.se":!0,"x.se":!0,"y.se":!0,"z.se":!0,"com.sg":!0,"edu.sg":!0,"gov.sg":!0,"idn.sg":!0,"net.sg":!0,"org.sg":!0,"per.sg":!0,"art.sn":!0,"com.sn":!0,"edu.sn":!0,"gouv.sn":!0,"org.sn":!0,"perso.sn":!0,"univ.sn":!0,"com.sy":!0,"edu.sy":!0,"gov.sy":!0,"mil.sy":!0,"net.sy":!0,"news.sy":!0,"org.sy":!0,"ac.th":!0,"co.th":!0,"go.th":!0,"in.th":!0,"mi.th":!0,"net.th":!0,"or.th":!0,"ac.tj":!0,"biz.tj":!0,"co.tj":!0,"com.tj":!0,"edu.tj":!0,"go.tj":!0,"gov.tj":!0,"info.tj":!0,"int.tj":!0,"mil.tj":!0,"name.tj":!0,"net.tj":!0,"nic.tj":!0,"org.tj":!0,"test.tj":!0,"web.tj":!0,"agrinet.tn":!0,"com.tn":!0,"defense.tn":!0,"edunet.tn":!0,"ens.tn":!0,"fin.tn":!0,"gov.tn":!0,"ind.tn":!0,"info.tn":!0,"intl.tn":!0,"mincom.tn":!0,"nat.tn":!0,"net.tn":!0,"org.tn":!0,"perso.tn":!0,"rnrt.tn":!0,"rns.tn":!0,"rnu.tn":!0,"tourism.tn":!0,"ac.tz":!0,"co.tz":!0,"go.tz":!0,"ne.tz":!0,"or.tz":!0,"biz.ua":!0,"cherkassy.ua":!0,"chernigov.ua":!0,"chernovtsy.ua":!0,"ck.ua":!0,"cn.ua":!0,"co.ua":!0,"com.ua":!0,"crimea.ua":!0,"cv.ua":!0,"dn.ua":!0,"dnepropetrovsk.ua":!0,"donetsk.ua":!0,"dp.ua":!0,"edu.ua":!0,"gov.ua":!0,"if.ua":!0,"in.ua":!0,"ivano-frankivsk.ua":!0,"kh.ua":!0,"kharkov.ua":!0,"kherson.ua":!0,"khmelnitskiy.ua":!0,"kiev.ua":!0,"kirovograd.ua":!0,"km.ua":!0,"kr.ua":!0,"ks.ua":!0,"kv.ua":!0,"lg.ua":!0,"lugansk.ua":!0,"lutsk.ua":!0,"lviv.ua":!0,"me.ua":!0,"mk.ua":!0,"net.ua":!0,"nikolaev.ua":!0,"od.ua":!0,"odessa.ua":!0,"org.ua":!0,"pl.ua":!0,"poltava.ua":!0,"pp.ua":!0,"rovno.ua":!0,"rv.ua":!0,"sebastopol.ua":!0,"sumy.ua":!0,"te.ua":!0,"ternopil.ua":!0,"uzhgorod.ua":!0,"vinnica.ua":!0,"vn.ua":!0,"zaporizhzhe.ua":!0,"zhitomir.ua":!0,"zp.ua":!0,"zt.ua":!0,"ac.ug":!0,"co.ug":!0,"go.ug":!0,"ne.ug":!0,"or.ug":!0,"org.ug":!0,"sc.ug":!0,"ac.uk":!0,"bl.uk":!0,"british-library.uk":!0,"co.uk":!0,"cym.uk":!0,"gov.uk":!0,"govt.uk":!0,"icnet.uk":!0,"jet.uk":!0,"lea.uk":!0,"ltd.uk":!0,"me.uk":!0,"mil.uk":!0,"mod.uk":!0,"national-library-scotland.uk":!0,"nel.uk":!0,"net.uk":!0,"nhs.uk":!0,"nic.uk":!0,"nls.uk":!0,"org.uk":!0,"orgn.uk":!0,"parliament.uk":!0,"plc.uk":!0,"police.uk":!0,"sch.uk":!0,"scot.uk":!0,"soc.uk":!0,"4fd.us":!0,"dni.us":!0,"fed.us":!0,"isa.us":!0,"kids.us":!0,"nsn.us":!0,"com.uy":!0,"edu.uy":!0,"gub.uy":!0,"mil.uy":!0,"net.uy":!0,"org.uy":!0,"co.ve":!0,"com.ve":!0,"edu.ve":!0,"gob.ve":!0,"info.ve":!0,"mil.ve":!0,"net.ve":!0,"org.ve":!0,"web.ve":!0,"co.vi":!0,"com.vi":!0,"k12.vi":!0,"net.vi":!0,"org.vi":!0,"ac.vn":!0,"biz.vn":!0,"com.vn":!0,"edu.vn":!0,"gov.vn":!0,"health.vn":!0,"info.vn":!0,"int.vn":!0,"name.vn":!0,"net.vn":!0,"org.vn":!0,"pro.vn":!0,"co.ye":!0,"com.ye":!0,"gov.ye":!0,"ltd.ye":!0,"me.ye":!0,"net.ye":!0,"org.ye":!0,"plc.ye":!0,"ac.yu":!0,"co.yu":!0,"edu.yu":!0,"gov.yu":!0,"org.yu":!0,"ac.za":!0,"agric.za":!0,"alt.za":!0,"bourse.za":!0,"city.za":!0,"co.za":!0,"cybernet.za":!0,"db.za":!0,"ecape.school.za":!0,"edu.za":!0,"fs.school.za":!0,"gov.za":!0,"gp.school.za":!0,"grondar.za":!0,"iaccess.za":!0,"imt.za":!0,"inca.za":!0,"kzn.school.za":!0,"landesign.za":!0,"law.za":!0,"lp.school.za":!0,"mil.za":!0,"mpm.school.za":!0,"ncape.school.za":!0,"net.za":!0,"ngo.za":!0,"nis.za":!0,"nom.za":!0,"nw.school.za":!0,"olivetti.za":!0,"org.za":!0,"pix.za":!0,"school.za":!0,"tm.za":!0,"wcape.school.za":!0,"web.za":!0,"ac.zm":!0,"co.zm":!0,"com.zm":!0,"edu.zm":!0,"gov.zm":!0,"net.zm":!0,"org.zm":!0,"sch.zm":!0};const NS=US,$S=FS,GS={ad:!0,ae:!0,af:!0,ag:!0,ai:!0,al:!0,am:!0,ao:!0,aq:!0,ar:!0,as:!0,at:!0,au:!0,aw:!0,ax:!0,az:!0,ba:!0,bb:!0,bd:!0,be:!0,bf:!0,bg:!0,bh:!0,bi:!0,bj:!0,bl:!0,bm:!0,bn:!0,bo:!0,bq:!0,br:!0,bs:!0,bt:!0,bv:!0,bw:!0,by:!0,bz:!0,ca:!0,cc:!0,cd:!0,cf:!0,cg:!0,ch:!0,ci:!0,ck:!0,cl:!0,cm:!0,cn:!0,co:!0,cr:!0,cu:!0,cv:!0,cw:!0,cx:!0,cy:!0,cz:!0,de:!0,dj:!0,dk:!0,dm:!0,do:!0,dz:!0,ec:!0,ee:!0,eg:!0,er:!0,es:!0,et:!0,fi:!0,fj:!0,fk:!0,fm:!0,fo:!0,fr:!0,ga:!0,"gb (.uk)":!0,gd:!0,ge:!0,gf:!0,gg:!0,gh:!0,gi:!0,gl:!0,gm:!0,gn:!0,gp:!0,gq:!0,gr:!0,gs:!0,gt:!0,gu:!0,gw:!0,gy:!0,hk:!0,hm:!0,hn:!0,hr:!0,ht:!0,hu:!0,id:!0,ie:!0,il:!0,im:!0,in:!0,io:!0,iq:!0,ir:!0,is:!0,it:!0,je:!0,jm:!0,jo:!0,jp:!0,ke:!0,kg:!0,kh:!0,ki:!0,km:!0,kn:!0,kp:!0,kr:!0,kw:!0,ky:!0,kz:!0,la:!0,lb:!0,lc:!0,li:!0,lk:!0,lr:!0,ls:!0,lt:!0,lu:!0,lv:!0,ly:!0,ma:!0,mc:!0,md:!0,me:!0,mf:!0,mg:!0,mh:!0,mk:!0,ml:!0,mm:!0,mn:!0,mo:!0,mp:!0,mq:!0,mr:!0,ms:!0,mt:!0,mu:!0,mv:!0,mw:!0,mx:!0,my:!0,mz:!0,na:!0,nc:!0,ne:!0,nf:!0,ng:!0,ni:!0,nl:!0,no:!0,np:!0,nr:!0,nu:!0,nz:!0,om:!0,pa:!0,pe:!0,pf:!0,pg:!0,ph:!0,pk:!0,pl:!0,pm:!0,pn:!0,pr:!0,ps:!0,pt:!0,pw:!0,py:!0,qa:!0,re:!0,ro:!0,rs:!0,ru:!0,rw:!0,sa:!0,sb:!0,sc:!0,sd:!0,se:!0,sg:!0,sh:!0,si:!0,sj:!0,sk:!0,sl:!0,sm:!0,sn:!0,so:!0,sr:!0,ss:!0,st:!0,sv:!0,sx:!0,sy:!0,sz:!0,tc:!0,td:!0,tf:!0,tg:!0,th:!0,tj:!0,tk:!0,tl:!0,tm:!0,tn:!0,to:!0,tr:!0,tt:!0,tv:!0,tw:!0,tz:!0,ua:!0,ug:!0,us:!0,uy:!0,uz:!0,va:!0,vc:!0,ve:!0,vg:!0,vi:!0,vn:!0,vu:!0,wf:!0,ws:!0,ye:!0,yt:!0,za:!0,zm:!0,zw:!0};var HS=function(e,t){if("string"!=typeof e)return!1;if(t instanceof Object||(t={}),(e=e.toLowerCase()).endsWith(".")&&(e=e.slice(0,e.length-1)),t.allowUnicode&&(e=NS.toASCII(e)),e.length>253)return!1;if(!/^([\u0E00-\u0E7Fa-z0-9-._*]+)$/g.test(e))return!1;if(t.topLevel&&GS[e.replace(/\.$/,"")])return!0;const r=e.match(/(.*)\.(([\u0E00-\u0E7Fa-z0-9]+)(\.[a-z0-9]+))/);let n=null,i=null;if(r&&r.length>2&&$S[r[2]]&&(n=r[2],i=r[1].split(".")),!i){if(i=e.split("."),i.length<=1)return!1;n=i.pop();if(!/^(?:xn--)?(?!^\d+$)[\u0E00-\u0E7Fa-z0-9]+$/gi.test(n))return!1}if(!1===t.subdomain&&i.length>1)return!1;const o=i.every((function(e,r){if(t.wildcard&&0===r&&"*"===e&&i.length>1)return!0;let n=/^([\u0E00-\u0E7Fa-zA-Z0-9-_]+)$/g;r===i.length-1&&(n=/^([\u0E00-\u0E7Fa-zA-Z0-9-]+)$/g);const o=(e.match(/--(--)?/g)||[]).length,a=(e.match(/xn--/g)||[]).length;if(r===i.length-1&&o!==a)return!1;return n.test(e)&&e.length<64&&!e.startsWith("-")&&!e.endsWith("-")}));return o},zS=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)};
7
+ */function j(e){return"[object Object]"===Object.prototype.toString.call(e)}function U(e){var t,r;return!1!==j(e)&&(void 0===(t=e.constructor)||!1!==j(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}var F=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0},N=String.prototype.valueOf,$=Object.prototype.toString,G=F()&&!!Symbol.toStringTag,H=function(e){return"string"==typeof e||"object"==typeof e&&(G?function(e){try{return N.call(e),!0}catch(e){return!1}}(e):"[object String]"===$.call(e))},z=Array.isArray,Z=Object.prototype.toString,K=z||function(e){return!!e&&"[object Array]"==Z.call(e)},q=function(e){if(!e)return!1;var t=V.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)},V=Object.prototype.toString;var W="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},Y="URLSearchParams"in W,Q="Symbol"in W&&"iterator"in Symbol,J="FileReader"in W&&"Blob"in W&&function(){try{return new Blob,!0}catch(e){return!1}}(),X="FormData"in W,ee="ArrayBuffer"in W;if(ee)var te=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],re=ArrayBuffer.isView||function(e){return e&&te.indexOf(Object.prototype.toString.call(e))>-1};function ne(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function ie(e){return"string"!=typeof e&&(e=String(e)),e}function oe(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return Q&&(t[Symbol.iterator]=function(){return t}),t}function ae(e){this.map={},e instanceof ae?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function se(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function ue(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function ce(e){var t=new FileReader,r=ue(t);return t.readAsArrayBuffer(e),r}function de(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function le(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:J&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:X&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Y&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():ee&&J&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=de(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ee&&(ArrayBuffer.prototype.isPrototypeOf(e)||re(e))?this._bodyArrayBuffer=de(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Y&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},J&&(this.blob=function(){var e=se(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=se(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(J)return this.blob().then(ce);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=se(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,r=ue(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=n?n[1]:"utf-8";return t.readAsText(e,i),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},X&&(this.formData=function(){return this.text().then(he)}),this.json=function(){return this.text().then(JSON.parse)},this}ae.prototype.append=function(e,t){e=ne(e),t=ie(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},ae.prototype.delete=function(e){delete this.map[ne(e)]},ae.prototype.get=function(e){return e=ne(e),this.has(e)?this.map[e]:null},ae.prototype.has=function(e){return this.map.hasOwnProperty(ne(e))},ae.prototype.set=function(e,t){this.map[ne(e)]=ie(t)},ae.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},ae.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),oe(e)},ae.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),oe(e)},ae.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),oe(e)},Q&&(ae.prototype[Symbol.iterator]=ae.prototype.entries);var fe=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function pe(e,t){if(!(this instanceof pe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r=(t=t||{}).body;if(e instanceof pe){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ae(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new ae(t.headers)),this.method=function(e){var t=e.toUpperCase();return fe.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in W)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function he(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function me(e,t){if(!(this instanceof me))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new ae(t.headers),this.url=t.url||"",this._initBody(e)}pe.prototype.clone=function(){return new pe(this,{body:this._bodyInit})},le.call(pe.prototype),le.call(me.prototype),me.prototype.clone=function(){return new me(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ae(this.headers),url:this.url})},me.error=function(){var e=new me(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var ve=[301,302,303,307,308];me.redirect=function(e,t){if(-1===ve.indexOf(t))throw new RangeError("Invalid status code");return new me(null,{status:t,headers:{location:e}})};var ge=W.DOMException;try{new ge}catch(e){ge=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},ge.prototype=Object.create(Error.prototype),ge.prototype.constructor=ge}function Ae(e,t){return new Promise((function(r,n){var i=new pe(e,t);if(i.signal&&i.signal.aborted)return n(new ge("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}if(o.onload=function(){var e,t,n={statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new ae,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{t.append(n,i)}catch(e){console.warn("Response "+e.message)}}})),t)};0===i.url.indexOf("file://")&&(o.status<200||o.status>599)?n.status=200:n.status=o.status,n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");var a="response"in o?o.response:o.responseText;setTimeout((function(){r(new me(a,n))}),0)},o.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request timed out"))}),0)},o.onabort=function(){setTimeout((function(){n(new ge("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&W.location.href?W.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(J?o.responseType="blob":ee&&(o.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof ae||W.Headers&&t.headers instanceof W.Headers)){var s=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){s.push(ne(e)),o.setRequestHeader(e,ie(t.headers[e]))})),i.headers.forEach((function(e,t){-1===s.indexOf(t)&&o.setRequestHeader(t,e)}))}else i.headers.forEach((function(e,t){o.setRequestHeader(t,e)}));i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",a)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}Ae.polyfill=!0,W.fetch||(W.fetch=Ae,W.Headers=ae,W.Request=pe,W.Response=me);var be,ye,_e={exports:{}};be=_e,ye=_e.exports,function(e,t){var r="function",n="undefined",i="object",o="string",a="major",s="model",u="name",c="type",d="vendor",l="version",f="architecture",p="console",h="mobile",m="tablet",v="smarttv",g="wearable",A="embedded",b="Amazon",y="Apple",_="ASUS",w="BlackBerry",x="Browser",k="Chrome",E="Firefox",S="Google",D="Huawei",R="LG",I="Microsoft",C="Motorola",O="Opera",T="Samsung",P="Sharp",M="Sony",L="Xiaomi",B="Zebra",j="Facebook",U="Chromium OS",F="Mac OS",N=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},$=function(e,t){return typeof e===o&&-1!==G(t).indexOf(G(e))},G=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===o)return e=e.replace(/^\s\s*/,""),typeof t===n?e:e.substring(0,500)},z=function(e,n){for(var o,a,s,u,c,d,l=0;l<n.length&&!c;){var f=n[l],p=n[l+1];for(o=a=0;o<f.length&&!c&&f[o];)if(c=f[o++].exec(e))for(s=0;s<p.length;s++)d=c[++a],typeof(u=p[s])===i&&u.length>0?2===u.length?typeof u[1]==r?this[u[0]]=u[1].call(this,d):this[u[0]]=u[1]:3===u.length?typeof u[1]!==r||u[1].exec&&u[1].test?this[u[0]]=d?d.replace(u[1],u[2]):t:this[u[0]]=d?u[1].call(this,d,u[2]):t:4===u.length&&(this[u[0]]=d?u[3].call(this,d.replace(u[1],u[2])):t):this[u]=d||t;l+=2}},Z=function(e,r){for(var n in r)if(typeof r[n]===i&&r[n].length>0){for(var o=0;o<r[n].length;o++)if($(r[n][o],e))return"?"===n?t:n}else if($(r[n],e))return"?"===n?t:n;return e},K={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},q={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,l],[/opios[\/ ]+([\w\.]+)/i],[l,[u,O+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[l,[u,O+" GX"]],[/\bopr\/([\w\.]+)/i],[l,[u,O]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[l,[u,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,l],[/\bddg\/([\w\.]+)/i],[l,[u,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[u,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[l,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[l,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[l,[u,"Smart Lenovo "+x]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+x],l],[/\bfocus\/([\w\.]+)/i],[l,[u,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[l,[u,O+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[u,O+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[u,"MIUI "+x]],[/fxios\/([-\w\.]+)/i],[l,[u,E]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+x]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+x],l],[/samsungbrowser\/([\w\.]+)/i],[l,[u,T+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],l],[/metasr[\/ ]?([\d\.]+)/i],[l,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[u,l],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,j],l],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[u,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[l,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[u,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,k+" WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[u,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[l,Z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[u,E+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[u,l],[/(cobalt)\/([\w\.]+)/i],[u,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,G]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/windows (ce|mobile); ppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[f,/ower/,"",G]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[f,G]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[s,[d,T],[c,m]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[s,[d,T],[c,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[d,y],[c,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[d,y],[c,m]],[/(macintosh);/i],[s,[d,y]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[d,P],[c,h]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[s,[d,D],[c,m]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[d,D],[c,h]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[s,/_/g," "],[d,L],[c,h]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[s,/_/g," "],[d,L],[c,m]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[d,"OPPO"],[c,h]],[/\b(opd2\d{3}a?) bui/i],[s,[d,"OPPO"],[c,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[d,"Vivo"],[c,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[s,[d,"Realme"],[c,h]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[s,[d,C],[c,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[d,C],[c,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[d,R],[c,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[d,R],[c,h]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[s,[d,"Lenovo"],[c,m]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[s,/_/g," "],[d,"Nokia"],[c,h]],[/(pixel c)\b/i],[s,[d,S],[c,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[d,S],[c,h]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[d,M],[c,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[d,M],[c,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[d,"OnePlus"],[c,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[d,b],[c,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[d,b],[c,h]],[/(playbook);[-\w\),; ]+(rim)/i],[s,d,[c,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[d,w],[c,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[d,_],[c,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[d,_],[c,h]],[/(nexus 9)/i],[s,[d,"HTC"],[c,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[s,/_/g," "],[c,h]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[d,"Acer"],[c,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[d,"Meizu"],[c,h]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[s,[d,"Ulefone"],[c,h]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,s,[c,h]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,s,[c,m]],[/(surface duo)/i],[s,[d,I],[c,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[d,"Fairphone"],[c,h]],[/(u304aa)/i],[s,[d,"AT&T"],[c,h]],[/\bsie-(\w*)/i],[s,[d,"Siemens"],[c,h]],[/\b(rct\w+) b/i],[s,[d,"RCA"],[c,m]],[/\b(venue[\d ]{2,7}) b/i],[s,[d,"Dell"],[c,m]],[/\b(q(?:mv|ta)\w+) b/i],[s,[d,"Verizon"],[c,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[d,"Barnes & Noble"],[c,m]],[/\b(tm\d{3}\w+) b/i],[s,[d,"NuVision"],[c,m]],[/\b(k88) b/i],[s,[d,"ZTE"],[c,m]],[/\b(nx\d{3}j) b/i],[s,[d,"ZTE"],[c,h]],[/\b(gen\d{3}) b.+49h/i],[s,[d,"Swiss"],[c,h]],[/\b(zur\d{3}) b/i],[s,[d,"Swiss"],[c,m]],[/\b((zeki)?tb.*\b) b/i],[s,[d,"Zeki"],[c,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],s,[c,m]],[/\b(ns-?\w{0,9}) b/i],[s,[d,"Insignia"],[c,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[d,"NextBook"],[c,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],s,[c,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],s,[c,h]],[/\b(ph-1) /i],[s,[d,"Essential"],[c,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[d,"Envizen"],[c,m]],[/\b(trio[-\w\. ]+) b/i],[s,[d,"MachSpeed"],[c,m]],[/\btu_(1491) b/i],[s,[d,"Rotor"],[c,m]],[/(shield[\w ]+) b/i],[s,[d,"Nvidia"],[c,m]],[/(sprint) (\w+)/i],[d,s,[c,h]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[d,I],[c,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[d,B],[c,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[d,B],[c,h]],[/smart-tv.+(samsung)/i],[d,[c,v]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[d,T],[c,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,R],[c,v]],[/(apple) ?tv/i],[d,[s,y+" TV"],[c,v]],[/crkey/i],[[s,k+"cast"],[d,S],[c,v]],[/droid.+aft(\w+)( bui|\))/i],[s,[d,b],[c,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[d,P],[c,v]],[/(bravia[\w ]+)( bui|\))/i],[s,[d,M],[c,v]],[/(mitv-\w{5}) bui/i],[s,[d,L],[c,v]],[/Hbbtv.*(technisat) (.*);/i],[d,s,[c,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,H],[s,H],[c,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,s,[c,p]],[/droid.+; (shield) bui/i],[s,[d,"Nvidia"],[c,p]],[/(playstation [345portablevi]+)/i],[s,[d,M],[c,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[d,I],[c,p]],[/((pebble))app/i],[d,s,[c,g]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[d,y],[c,g]],[/droid.+; (glass) \d/i],[s,[d,S],[c,g]],[/droid.+; (wt63?0{2,3})\)/i],[s,[d,B],[c,g]],[/(quest( \d| pro)?)/i],[s,[d,j],[c,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[c,A]],[/(aeobc)\b/i],[s,[d,b],[c,A]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[s,[c,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[c,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,h]],[/(android[-\w\. ]{0,9});.+buil/i],[s,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,l],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[u,[l,Z,K]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,Z,K],[u,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,F],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,l],[/\(bb(10);/i],[l,[u,w]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[u,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[l,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[l,[u,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,U],l],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,l],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,l]]},V=function(p,v){if(typeof p===i&&(v=p,p=t),!(this instanceof V))return new V(p,v).getResult();var g=typeof e!==n&&e.navigator?e.navigator:t,A=p||(g&&g.userAgent?g.userAgent:""),b=g&&g.userAgentData?g.userAgentData:t,y=v?function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r}(q,v):q,_=g&&g.userAgent==A;return this.getBrowser=function(){var e={};return e[u]=t,e[l]=t,z.call(e,A,y.browser),e[a]=function(e){return typeof e===o?e.replace(/[^\d\.]/g,"").split(".")[0]:t}(e[l]),_&&g&&g.brave&&typeof g.brave.isBrave==r&&(e[u]="Brave"),e},this.getCPU=function(){var e={};return e[f]=t,z.call(e,A,y.cpu),e},this.getDevice=function(){var e={};return e[d]=t,e[s]=t,e[c]=t,z.call(e,A,y.device),_&&!e[c]&&b&&b.mobile&&(e[c]=h),_&&"Macintosh"==e[s]&&g&&typeof g.standalone!==n&&g.maxTouchPoints&&g.maxTouchPoints>2&&(e[s]="iPad",e[c]=m),e},this.getEngine=function(){var e={};return e[u]=t,e[l]=t,z.call(e,A,y.engine),e},this.getOS=function(){var e={};return e[u]=t,e[l]=t,z.call(e,A,y.os),_&&!e[u]&&b&&b.platform&&"Unknown"!=b.platform&&(e[u]=b.platform.replace(/chrome os/i,U).replace(/macos/i,F)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return A},this.setUA=function(e){return A=typeof e===o&&e.length>500?H(e,500):e,this},this.setUA(A),this};V.VERSION="0.7.38",V.BROWSER=N([u,l,a]),V.CPU=N([f]),V.DEVICE=N([s,d,c,p,h,v,m,g,A]),V.ENGINE=V.OS=N([u,l]),be.exports&&(ye=be.exports=V),ye.UAParser=V;var W=typeof e!==n&&(e.jQuery||e.Zepto);if(W&&!W.ua){var Y=new V;W.ua=Y.getResult(),W.ua.get=function(){return Y.getUA()},W.ua.set=function(e){Y.setUA(e);var t=Y.getResult();for(var r in t)W.ua[r]=t[r]}}}("object"==typeof window?window:i);var we=_e.exports;const xe="3.7.7",ke=xe,Ee="function"==typeof Buffer,Se="function"==typeof TextDecoder?new TextDecoder:void 0,De="function"==typeof TextEncoder?new TextEncoder:void 0,Re=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Ie=(e=>{let t={};return e.forEach(((e,r)=>t[e]=r)),t})(Re),Ce=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Oe=String.fromCharCode.bind(String),Te="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Pe=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),Me=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Le=e=>{let t,r,n,i,o="";const a=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|i,o+=Re[t>>18&63]+Re[t>>12&63]+Re[t>>6&63]+Re[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},Be="function"==typeof btoa?e=>btoa(e):Ee?e=>Buffer.from(e,"binary").toString("base64"):Le,je=Ee?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(Oe.apply(null,e.subarray(r,r+4096)));return Be(t.join(""))},Ue=(e,t=!1)=>t?Pe(je(e)):je(e),Fe=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Oe(192|t>>>6)+Oe(128|63&t):Oe(224|t>>>12&15)+Oe(128|t>>>6&63)+Oe(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Oe(240|t>>>18&7)+Oe(128|t>>>12&63)+Oe(128|t>>>6&63)+Oe(128|63&t)},Ne=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,$e=e=>e.replace(Ne,Fe),Ge=Ee?e=>Buffer.from(e,"utf8").toString("base64"):De?e=>je(De.encode(e)):e=>Be($e(e)),He=(e,t=!1)=>t?Pe(Ge(e)):Ge(e),ze=e=>He(e,!0),Ze=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Ke=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return Oe(55296+(t>>>10))+Oe(56320+(1023&t));case 3:return Oe((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Oe((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},qe=e=>e.replace(Ze,Ke),Ve=e=>{if(e=e.replace(/\s+/g,""),!Ce.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,n,i="";for(let o=0;o<e.length;)t=Ie[e.charAt(o++)]<<18|Ie[e.charAt(o++)]<<12|(r=Ie[e.charAt(o++)])<<6|(n=Ie[e.charAt(o++)]),i+=64===r?Oe(t>>16&255):64===n?Oe(t>>16&255,t>>8&255):Oe(t>>16&255,t>>8&255,255&t);return i},We="function"==typeof atob?e=>atob(Me(e)):Ee?e=>Buffer.from(e,"base64").toString("binary"):Ve,Ye=Ee?e=>Te(Buffer.from(e,"base64")):e=>Te(We(e).split("").map((e=>e.charCodeAt(0)))),Qe=e=>Ye(Xe(e)),Je=Ee?e=>Buffer.from(e,"base64").toString("utf8"):Se?e=>Se.decode(Ye(e)):e=>qe(We(e)),Xe=e=>Me(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))),et=e=>Je(Xe(e)),tt=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),rt=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,tt(t));e("fromBase64",(function(){return et(this)})),e("toBase64",(function(e){return He(this,e)})),e("toBase64URI",(function(){return He(this,!0)})),e("toBase64URL",(function(){return He(this,!0)})),e("toUint8Array",(function(){return Qe(this)}))},nt=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,tt(t));e("toBase64",(function(e){return Ue(this,e)})),e("toBase64URI",(function(){return Ue(this,!0)})),e("toBase64URL",(function(){return Ue(this,!0)}))},it={version:xe,VERSION:ke,atob:We,atobPolyfill:Ve,btoa:Be,btoaPolyfill:Le,fromBase64:et,toBase64:He,encode:He,encodeURI:ze,encodeURL:ze,utob:$e,btou:qe,decode:et,isValid:e=>{if("string"!=typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:Ue,toUint8Array:Qe,extendString:rt,extendUint8Array:nt,extendBuiltins:()=>{rt(),nt()}};var ot={Rewarded:"rewarded",Interstitial:"interstitial",Preroll:"interstitial",Midroll:"interstitial",Display:"display"};function at(e,t){var r;for(r in t)t.hasOwnProperty(r)&&null!==t[r]&&void 0!==t[r]&&(e[r]=t[r]);return e}function st(){var e=dt(),t=(e.gd_sdk_referrer_url?e.gd_sdk_referrer_url:window.location!==window.parent.location&&document.referrer&&""!==document.referrer?document.referrer.split("/")[2]:document.location.host).replace(/^(?:https?:\/\/)?(?:\/\/)?(?:www\.)?/i,"").split("/")[0];if(-1!==document.referrer.indexOf("gameplayer.io")){t="gamedistribution.com";var r=ct("ref",document.referrer);if(r){""!==r&&"{portal%20name}"!==r&&"{spilgames}"!==r&&"{portal name}"!==r&&(t=ft(r).replace(/^(?:https?:\/\/)?(?:\/\/)?(?:www\.)?/i,"").split("/")[0])}}else-1!==document.referrer.indexOf("localhost")&&(t="gamedistribution.com");return t}function ut(){var e=dt();if(e.gd_sdk_referrer_url)return 0===mt()&&(e.gd_sdk_referrer_url=document.location.href),e.gd_sdk_referrer_url;var t=window.location!==window.parent.location&&document.referrer&&""!==document.referrer?document.referrer:document.location.href;if(-1!==document.referrer.indexOf("gameplayer.io")){t="https://gamedistribution.com";var r=ct("ref",document.referrer);if(r){""!==r&&"{portal%20name}"!==r&&"{spilgames}"!==r&&"{portal name}"!==r&&(t=ft(r).replace(/^(?:https?:\/\/)?(?:\/\/)?/i,""),t="https://".concat(t))}}else-1!==document.referrer.indexOf("localhost")&&(t="https://gamedistribution.com/");return t}function ct(e,t){var r=t||window.location.href,n=new RegExp("[?&]"+e+"=([^&#]*)","i").exec(r);return n?n[1]:null}function dt(){for(var e,t=/\+/g,r=/([^&=]+)=?([^&]*)/g,n=function(e){return decodeURIComponent(e.toLowerCase().replace(t," "))},i=window.location.search.substring(1),o={};e=r.exec(i);)o[n(e[1])]=n(e[2]);return o}function lt(e){return(e=e||"")!==decodeURIComponent(e)}function ft(e){for(;lt(e);)e=decodeURIComponent(e);return e}function pt(){var e=navigator.userAgent||navigator.vendor||window.opera;return/windows phone/i.test(e)?"windows":/android/i.test(e)?"android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"ios":""}function ht(e,t,r){return new Promise((function(n,i){if(r&&r.exists&&r.exists())n(vt(null==r?void 0:r.alternates));else{var o=r&&r.alternates&&r.alternates.length>0?vt(r.alternates):void 0,a=o||document.createElement("script"),s=r&&r.error_prefix?r.error_prefix:"Failed:";if(a.onload=function(){r&&r.exists&&!r.exists()?i("".concat(s," ").concat(e)):n(a)},a.onerror=function(){i("".concat(s," ").concat(e))},!o){if(a.type="text/javascript",!0===r.defer?a.defer=!0:a.async=!0,null==r?void 0:r.attrs)for(var u in r.attrs)a.setAttribute(u,r.attrs[u]);a.src=e,a.id=t,document.head.appendChild(a)}}}))}function mt(){var e=0,t=window;try{for(;t!=t.parent;)e++,t=t.parent}catch(e){}return e}function vt(e){if(e&&e.length){var t=document.querySelectorAll("script");if(t)for(var r in t){var n=t[r];if(e.includes(n.src))return n}}}function gt(e){return!!localStorage.getItem(e)}function At(){var e=mt();if(0===e)return location.host.replace(/^www\.(.*)$/i,"$1");if(location.ancestorOrigins&&location.ancestorOrigins.length>0)return location.ancestorOrigins[location.ancestorOrigins.length-1].replace(/^https?:\/\/(www\.)?(.*)$/i,"$2");if(1===e){var t=function(e){if(e&&""!==e)try{return new C(e)}catch(e){}}(document.referrer);if(t)return t.host.replace(/^www\.(.*)$/i,"$1")}}var bt={has:gt,getBoolean:function(e,t){if(!gt(e))return t;var r=localStorage.getItem(e);return"true"===r||!0===r||1===r||"1"===r},getNumber:function(e,t){if(!gt(e))return t;var r=localStorage.getItem(e);return Number(r)},getString:function(e,t){return gt(e)?localStorage.getItem(e).toString():t},available:function(){var e=Date.now();try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}(),remove:function(e){localStorage.removeItem(e)},set:function(e,t){localStorage.setItem(e,t)}},yt=Date.now(),_t={console:!1};function wt(e,t,r){try{if(bt.available&&bt.getBoolean("gd_debug_ex")||_t&&!0===_t.console){var n="error"===r?"background: #c4161e; color: #fff":"warning"===r?"background: #ff8c1c; color: #fff":"info"===r?"background: #ff0080; color: #fff":"background: #44a5ab; color: #fff",i=console.log("["+(Date.now()-yt)/1e3+"s]%c %c %c gdsdk %c %c %c "+e+" ","background: #9854d8","background: #6c2ca7","color: #fff; background: #450f78;","background: #6c2ca7","background: #9854d8",n,void 0!==t?t:"");console.log.apply(console,i)}}catch(e){console.log(e)}}var xt=["SDK_READY","SDK_ERROR","SDK_LB_LOGIN","SDK_SHW_LB","SDK_GAME_START","SDK_GAME_PAUSE","SDK_GDPR_TRACKING","SDK_GDPR_TARGETING","SDK_GDPR_THIRD_PARTY","AD_SDK_MANAGER_READY","AD_SDK_CANCELED","AD_IS_ALREADY_RUNNING","SDK_REWARDED_WATCH_COMPLETE"],kt=["AD_ERROR","AD_BREAK_READY","AD_METADATA","ALL_ADS_COMPLETED","CLICK","COMPLETE","CONTENT_PAUSE_REQUESTED","CONTENT_RESUME_REQUESTED","DURATION_CHANGE","FIRST_QUARTILE","IMPRESSION","INTERACTION","LINEAR_CHANGED","LOADED","LOG","MIDPOINT","PAUSED","RESUMED","SKIPPABLE_STATE_CHANGED","SKIPPED","STARTED","THIRD_QUARTILE","USER_CLOSE","VOLUME_CHANGED","VOLUME_MUTED","DISPLAYAD_IMPRESSION","DISPLAYAD_ERROR"],Et={zIndex:1010},St={zIndex:1020},Dt={zIndex:1100},Rt=null,It=function(){function e(){if(O(this,e),Rt)return Rt;Rt=this,this.listeners={}}return M(e,[{key:"_getListenerIdx",value:function(e,t,r){var n,i=this.listeners[e],o=-1;if(!i||0===i.length)return o;for(n=0;n<i.length;n++)if(i[n].callback===t&&(!r||r===i[n].scope)){o=n;break}return o}},{key:"subscribe",value:function(e,t,r){var n;if(!e)throw new Error("Event name cannot be null or undefined.");if(!t||"function"!=typeof t)throw new Error("Listener must be of type function.");this._getListenerIdx(e,t,r)>=0?console.log(e,r):(n={callback:t,scope:r},this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(n))}},{key:"unsubscribeScope",value:function(e){for(var t=Object.keys(this.listeners),r=0;r<t.length;r++){for(var n=t[r],i=this.listeners[n],o=0;o<i.length;o++)i[o].scope===e&&(i.splice(o,1),o--);0===i.length&&delete this.listeners[n]}}},{key:"broadcast",value:function(e,t){var r=this.listeners[e];e&&this.listeners[e]&&((t=t||{}).name=t.name||e,r.forEach((function(e){e.callback.call(e.scope,t,e.scope)})))}},{key:"printScope",value:function(e){for(var t=Object.keys(this.listeners),r=0;r<t.length;r++)for(var n=t[r],i=this.listeners[n],o=0;o<i.length;o++)i[o].scope===e&&console.log(n,e)}}]),e}(),Ct=function(){function e(t){O(this,e),this.game=t.game,this.bridge=t.bridge}return M(e,[{key:"transform",value:function(e,t){var r=B(e);return this.transformValue(r,t)}},{key:"transformValue",value:function(e,t){if(U(e)||K(e))for(var r in e)e[r]=this.transformValue(e[r],t);else if(H(e)){var n,i=/\{\{(\w+)\}\}/g,o=[];do{if(n=i.exec(e)){n[0];var a=n[1],s=this.getMacroKeyValue(a,t);void 0!==s&&o.push({key:a,value:s})}}while(n);o.length>0&&o.forEach((function(t){e=e.replace(new RegExp("{{"+t.key+"}}","g"),t.value)}))}return e}},{key:"getMacroKeyValue",value:function(e,t){switch(e){case"CACHEBUSTER":return Date.now();case"GAME_ID":return this.game.gameId;case"GAME_TITLE":return this.game.title;case"COUNTRY_CODE":return this.game.ctry;case"PAGE_URL":return this.bridge.parentURL;case"PAGE_URL_ESC":return encodeURIComponent(this.bridge.parentURL);case"PAGE_URL_ESC_ESC":return encodeURIComponent(encodeURIComponent(this.bridge.parentURL));case"DOMAIN_MATCHED":return this.bridge.domainMatched?1:0;case"DOMAIN_PARENT":return this.bridge.parentDomain;case"DOMAIN_TOP":return this.bridge.topDomain;case"DEPTH":case"GAME_DEPTH":return this.bridge.depth;default:if(t&&q(t.get))return t.get(e)}}}]),e}(),Ot=function(){function e(t){O(this,e),this._config=t||{},this._url=t.url||"https://msgrt.gamedistribution.com/collect",this._topic_counter={},this._ua=(new we).getResult(),this._init_layout()}return M(e,[{key:"_init_layout",value:function(){var e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,t=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;e-=e%64,t-=t%64,this._layout={w:e,h:t}}},{key:"send",value:function(e,t){if(!this._config.isCoreSDKMode){this._size="".concat(this._layout.w," x ").concat(this._layout.h);var r=this._topic_counter[e]||0;this._topic_counter[e]=++r;var n={gmid:this._config.gameId,tdmn:this._config.topDomain,domn:this._config.domain,rfrr:this._config.referrer,lthr:this._config.hours,ctry:this._config.country,dpth:this._config.depth,vers:this._config.version,trac:this._config.tracking,whlb:this._config.whitelabel,plat:this._config.platform,tpct:r,args:t,ttle:document.title,size:this._size,brnm:this._ua.browser.name,brmj:this._ua.browser.major,osnm:this._ua.os.name,osvr:this._ua.os.version,dvmd:this._ua.device.model,byld:this._config.byloader,bylv:this._config.byloaderVersion,imgu:this._config.isMasterGameURL,iegu:this._config.isExtHostedGameURL,itgu:this._config.isTokenGameURL,cmpe:!1,host:window.location.hostname};"undefined"!=typeof idhb&&void 0!==idhb.iabCmpExists()&&(n.cmpe=idhb.iabCmpExists());try{n=encodeURIComponent(it.encode(JSON.stringify([n]))),fetch(this._url+"?tp=com.gdsdk.".concat(e,"&ar=").concat(n,"&ts=").concat(Date.now()))}catch(e){}}}},{key:"setGameData",value:function(e){this._gameData=e,this._config.country=e.ctry}}]),e}(),Tt=null,Pt=function(){function e(t){if(O(this,e),Tt)return Tt;Tt=this,this.eventBus=new It,this._sdk=t}return M(e,[{key:"start",value:function(){var e="\n #gdsdk__console_container {\n display: flex;\n box-sizing: border-box;\n padding: 3px;\n background: linear-gradient(90deg,#3d1b5d,#5c3997);\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);\n color: #fff;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 8px;\n }\n #gdsdk__console_container button {\n flex: 1;\n background: #44a5ab;\n padding: 3px 10px;\n margin: 2px;\n border: 0;\n border-radius: 3px;\n color: #fff;\n outline: 0;\n cursor: pointer;\n font-size: 8px;\n box-shadow: 0 0 0 transparent;\n text-shadow: 0 0 0 transparent;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n #gdsdk__console_container button:hover {\n background: #4fb3b9;\n }\n #gdsdk__console_container button:active {\n background: #62bbc0;\n }\n ",t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e)),t.appendChild(r);var n=document.body||document.getElementsByTagName("body")[0],i=document.createElement("div");i.id="gdsdk__console",i.style.position="fixed",i.style.zIndex=Dt.zIndex,i.style.bottom="0",i.style.left="0",i.style.width="100%",i.innerHTML='\n <div id="gdsdk__console_container">\n <button id="gdsdk__hbgdDebug">Activate hbgd debug</button>\n <button id="gdsdk__hbgdConfig">Log idhb config</button>\n \x3c!--\n <button id="gdsdk__resumeGame">Resume</button>\n <button id="gdsdk__pauseGame">Pause</button>\n --\x3e\n <button id="gdsdk__showLeaderboard">LeaderBoard</button>\n <button id="gdsdk__showInterstitial">Interstitial</button>\n <button id="gdsdk__showRewarded">Rewarded</button>\n \x3c!--\n <button id="gdsdk__preloadRewarded">Preload rewarded</button>\n --\x3e\n <button id="gdsdk__cancel">Cancel</button>\n <button id="gdsdk__demo">Demo VAST tag</button>\n <button id="gdsdk__disableMidrollTimer">Disable delay</button>\n <button id="gdsdk__closeDebug">Close</button>\n </div>\n ',n.appendChild(i);var o=document.getElementById("gdsdk__showLeaderboard"),a=document.getElementById("gdsdk__showInterstitial"),s=document.getElementById("gdsdk__showRewarded"),u=document.getElementById("gdsdk__cancel"),c=document.getElementById("gdsdk__demo"),d=document.getElementById("gdsdk__disableMidrollTimer"),l=document.getElementById("gdsdk__hbgdDebug"),f=document.getElementById("gdsdk__hbgdConfig"),p=document.getElementById("gdsdk__closeDebug");bt.getBoolean("gd_tag")?(c.innerHTML="Revert Vast tag",c.style.background="#ff8c1c"):(c.innerHTML="Demo VAST tag",c.style.background="#44a5ab"),bt.getBoolean("gd_disable_midroll_timer")?(d.innerHTML="Revert delay",d.style.background="#ff8c1c"):(d.innerHTML="Disable delay",d.style.background="#44a5ab"),bt.getBoolean("gd_hb_debug")?(l.innerHTML="Revert HB Debug",l.style.background="#ff8c1c"):(l.innerHTML="HB Debug",l.style.background="#44a5ab"),o.addEventListener("click",(function(){window.gdsdk.showLeaderBoard().catch((function(e){}))})),a.addEventListener("click",(function(){window.gdsdk.showAd(ot.Interstitial).catch((function(e){}))})),s.addEventListener("click",(function(){window.gdsdk.showAd(ot.Rewarded).catch((function(e){}))})),u.addEventListener("click",(function(){window.gdsdk.cancelAd().then((function(e){})).catch((function(e){}))})),c.addEventListener("click",(function(){try{bt.getBoolean("gd_tag")?bt.remove("gd_tag"):bt.set("gd_tag",!0),location.reload()}catch(e){console.log(e)}})),d.addEventListener("click",(function(){try{bt.getBoolean("gd_disable_midroll_timer")?bt.remove("gd_disable_midroll_timer"):bt.set("gd_disable_midroll_timer",!0),location.reload()}catch(e){console.log(e)}})),p.addEventListener("click",(function(){try{bt.getBoolean("gd_debug_ex")?bt.remove("gd_debug_ex"):bt.set("gd_debug_ex",!0),location.reload()}catch(e){console.log(e)}})),l.addEventListener("click",(function(){try{bt.getBoolean("gd_hb_debug")?bt.remove("gd_hb_debug"):bt.set("gd_hb_debug",!0),window.idhb&&window.idhb.debug(!(!bt.available||!bt.getBoolean("gd_hb_debug"))),location.reload()}catch(e){console.log(e)}})),f.addEventListener("click",(function(){try{var e=window.idhb.getConfig();console.info(e)}catch(e){console.log(e)}}))}}]),e}(),Mt=function(e){return e&&e.Math===Math&&e},Lt=Mt("object"==typeof globalThis&&globalThis)||Mt("object"==typeof window&&window)||Mt("object"==typeof self&&self)||Mt("object"==typeof i&&i)||Mt("object"==typeof i&&i)||function(){return this}()||Function("return this")(),Bt={},jt=function(e){try{return!!e()}catch(e){return!0}},Ut=!jt((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Ft=!jt((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Nt=Ft,$t=Function.prototype.call,Gt=Nt?$t.bind($t):function(){return $t.apply($t,arguments)},Ht={},zt={}.propertyIsEnumerable,Zt=Object.getOwnPropertyDescriptor,Kt=Zt&&!zt.call({1:2},1);Ht.f=Kt?function(e){var t=Zt(this,e);return!!t&&t.enumerable}:zt;var qt,Vt,Wt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Yt=Ft,Qt=Function.prototype,Jt=Qt.call,Xt=Yt&&Qt.bind.bind(Jt,Jt),er=Yt?Xt:function(e){return function(){return Jt.apply(e,arguments)}},tr=er,rr=tr({}.toString),nr=tr("".slice),ir=function(e){return nr(rr(e),8,-1)},or=jt,ar=ir,sr=Object,ur=er("".split),cr=or((function(){return!sr("z").propertyIsEnumerable(0)}))?function(e){return"String"===ar(e)?ur(e,""):sr(e)}:sr,dr=function(e){return null==e},lr=dr,fr=TypeError,pr=function(e){if(lr(e))throw new fr("Can't call method on "+e);return e},hr=cr,mr=pr,vr=function(e){return hr(mr(e))},gr="object"==typeof document&&document.all,Ar=void 0===gr&&void 0!==gr?function(e){return"function"==typeof e||e===gr}:function(e){return"function"==typeof e},br=Ar,yr=function(e){return"object"==typeof e?null!==e:br(e)},_r=Lt,wr=Ar,xr=function(e,t){return arguments.length<2?(r=_r[e],wr(r)?r:void 0):_r[e]&&_r[e][t];var r},kr=er({}.isPrototypeOf),Er="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Sr=Lt,Dr=Er,Rr=Sr.process,Ir=Sr.Deno,Cr=Rr&&Rr.versions||Ir&&Ir.version,Or=Cr&&Cr.v8;Or&&(Vt=(qt=Or.split("."))[0]>0&&qt[0]<4?1:+(qt[0]+qt[1])),!Vt&&Dr&&(!(qt=Dr.match(/Edge\/(\d+)/))||qt[1]>=74)&&(qt=Dr.match(/Chrome\/(\d+)/))&&(Vt=+qt[1]);var Tr=Vt,Pr=Tr,Mr=jt,Lr=Lt.String,Br=!!Object.getOwnPropertySymbols&&!Mr((function(){var e=Symbol("symbol detection");return!Lr(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Pr&&Pr<41})),jr=Br&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ur=xr,Fr=Ar,Nr=kr,$r=Object,Gr=jr?function(e){return"symbol"==typeof e}:function(e){var t=Ur("Symbol");return Fr(t)&&Nr(t.prototype,$r(e))},Hr=String,zr=function(e){try{return Hr(e)}catch(e){return"Object"}},Zr=Ar,Kr=zr,qr=TypeError,Vr=function(e){if(Zr(e))return e;throw new qr(Kr(e)+" is not a function")},Wr=Vr,Yr=dr,Qr=function(e,t){var r=e[t];return Yr(r)?void 0:Wr(r)},Jr=Gt,Xr=Ar,en=yr,tn=TypeError,rn={exports:{}},nn=Lt,on=Object.defineProperty,an=function(e,t){try{on(nn,e,{value:t,configurable:!0,writable:!0})}catch(r){nn[e]=t}return t},sn=Lt,un=an,cn="__core-js_shared__",dn=rn.exports=sn[cn]||un(cn,{});(dn.versions||(dn.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var ln=rn.exports,fn=function(e,t){return ln[e]||(ln[e]=t||{})},pn=pr,hn=Object,mn=function(e){return hn(pn(e))},vn=mn,gn=er({}.hasOwnProperty),An=Object.hasOwn||function(e,t){return gn(vn(e),t)},bn=er,yn=0,_n=Math.random(),wn=bn(1..toString),xn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+wn(++yn+_n,36)},kn=fn,En=An,Sn=xn,Dn=Br,Rn=jr,In=Lt.Symbol,Cn=kn("wks"),On=Rn?In.for||In:In&&In.withoutSetter||Sn,Tn=function(e){return En(Cn,e)||(Cn[e]=Dn&&En(In,e)?In[e]:On("Symbol."+e)),Cn[e]},Pn=Gt,Mn=yr,Ln=Gr,Bn=Qr,jn=function(e,t){var r,n;if("string"===t&&Xr(r=e.toString)&&!en(n=Jr(r,e)))return n;if(Xr(r=e.valueOf)&&!en(n=Jr(r,e)))return n;if("string"!==t&&Xr(r=e.toString)&&!en(n=Jr(r,e)))return n;throw new tn("Can't convert object to primitive value")},Un=TypeError,Fn=Tn("toPrimitive"),Nn=function(e,t){if(!Mn(e)||Ln(e))return e;var r,n=Bn(e,Fn);if(n){if(void 0===t&&(t="default"),r=Pn(n,e,t),!Mn(r)||Ln(r))return r;throw new Un("Can't convert object to primitive value")}return void 0===t&&(t="number"),jn(e,t)},$n=Gr,Gn=function(e){var t=Nn(e,"string");return $n(t)?t:t+""},Hn=yr,zn=Lt.document,Zn=Hn(zn)&&Hn(zn.createElement),Kn=function(e){return Zn?zn.createElement(e):{}},qn=Kn,Vn=!Ut&&!jt((function(){return 7!==Object.defineProperty(qn("div"),"a",{get:function(){return 7}}).a})),Wn=Ut,Yn=Gt,Qn=Ht,Jn=Wt,Xn=vr,ei=Gn,ti=An,ri=Vn,ni=Object.getOwnPropertyDescriptor;Bt.f=Wn?ni:function(e,t){if(e=Xn(e),t=ei(t),ri)try{return ni(e,t)}catch(e){}if(ti(e,t))return Jn(!Yn(Qn.f,e,t),e[t])};var ii={},oi=Ut&&jt((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ai=yr,si=String,ui=TypeError,ci=function(e){if(ai(e))return e;throw new ui(si(e)+" is not an object")},di=Ut,li=Vn,fi=oi,pi=ci,hi=Gn,mi=TypeError,vi=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,Ai="enumerable",bi="configurable",yi="writable";ii.f=di?fi?function(e,t,r){if(pi(e),t=hi(t),pi(r),"function"==typeof e&&"prototype"===t&&"value"in r&&yi in r&&!r[yi]){var n=gi(e,t);n&&n[yi]&&(e[t]=r.value,r={configurable:bi in r?r[bi]:n[bi],enumerable:Ai in r?r[Ai]:n[Ai],writable:!1})}return vi(e,t,r)}:vi:function(e,t,r){if(pi(e),t=hi(t),pi(r),li)try{return vi(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new mi("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var _i=ii,wi=Wt,xi=Ut?function(e,t,r){return _i.f(e,t,wi(1,r))}:function(e,t,r){return e[t]=r,e},ki={exports:{}},Ei=Ut,Si=An,Di=Function.prototype,Ri=Ei&&Object.getOwnPropertyDescriptor,Ii=Si(Di,"name"),Ci={EXISTS:Ii,PROPER:Ii&&"something"===function(){}.name,CONFIGURABLE:Ii&&(!Ei||Ei&&Ri(Di,"name").configurable)},Oi=er,Ti=Ar,Pi=rn.exports,Mi=Oi(Function.toString);Ti(Pi.inspectSource)||(Pi.inspectSource=function(e){return Mi(e)});var Li,Bi,ji,Ui=Pi.inspectSource,Fi=Ar,Ni=Lt.WeakMap,$i=Fi(Ni)&&/native code/.test(String(Ni)),Gi=xn,Hi=fn("keys"),zi=function(e){return Hi[e]||(Hi[e]=Gi(e))},Zi={},Ki=$i,qi=Lt,Vi=yr,Wi=xi,Yi=An,Qi=rn.exports,Ji=zi,Xi=Zi,eo="Object already initialized",to=qi.TypeError,ro=qi.WeakMap;if(Ki||Qi.state){var no=Qi.state||(Qi.state=new ro);no.get=no.get,no.has=no.has,no.set=no.set,Li=function(e,t){if(no.has(e))throw new to(eo);return t.facade=e,no.set(e,t),t},Bi=function(e){return no.get(e)||{}},ji=function(e){return no.has(e)}}else{var oo=Ji("state");Xi[oo]=!0,Li=function(e,t){if(Yi(e,oo))throw new to(eo);return t.facade=e,Wi(e,oo,t),t},Bi=function(e){return Yi(e,oo)?e[oo]:{}},ji=function(e){return Yi(e,oo)}}var ao={set:Li,get:Bi,has:ji,enforce:function(e){return ji(e)?Bi(e):Li(e,{})},getterFor:function(e){return function(t){var r;if(!Vi(t)||(r=Bi(t)).type!==e)throw new to("Incompatible receiver, "+e+" required");return r}}},so=er,uo=jt,co=Ar,lo=An,fo=Ut,po=Ci.CONFIGURABLE,ho=Ui,mo=ao.enforce,vo=ao.get,go=String,Ao=Object.defineProperty,bo=so("".slice),yo=so("".replace),_o=so([].join),wo=fo&&!uo((function(){return 8!==Ao((function(){}),"length",{value:8}).length})),xo=String(String).split("String"),ko=ki.exports=function(e,t,r){"Symbol("===bo(go(t),0,7)&&(t="["+yo(go(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!lo(e,"name")||po&&e.name!==t)&&(fo?Ao(e,"name",{value:t,configurable:!0}):e.name=t),wo&&r&&lo(r,"arity")&&e.length!==r.arity&&Ao(e,"length",{value:r.arity});try{r&&lo(r,"constructor")&&r.constructor?fo&&Ao(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=mo(e);return lo(n,"source")||(n.source=_o(xo,"string"==typeof t?t:"")),e};Function.prototype.toString=ko((function(){return co(this)&&vo(this).source||ho(this)}),"toString");var Eo=Ar,So=ii,Do=ki.exports,Ro=an,Io=function(e,t,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:t;if(Eo(r)&&Do(r,o,n),n.global)i?e[t]=r:Ro(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:So.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Co={},Oo=Math.ceil,To=Math.floor,Po=Math.trunc||function(e){var t=+e;return(t>0?To:Oo)(t)},Mo=Po,Lo=function(e){var t=+e;return t!=t||0===t?0:Mo(t)},Bo=Lo,jo=Math.max,Uo=Math.min,Fo=function(e,t){var r=Bo(e);return r<0?jo(r+t,0):Uo(r,t)},No=Lo,$o=Math.min,Go=function(e){var t=No(e);return t>0?$o(t,9007199254740991):0},Ho=Go,zo=function(e){return Ho(e.length)},Zo=vr,Ko=Fo,qo=zo,Vo=function(e){return function(t,r,n){var i=Zo(t),o=qo(i);if(0===o)return!e&&-1;var a,s=Ko(n,o);if(e&&r!=r){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},Wo={includes:Vo(!0),indexOf:Vo(!1)},Yo=An,Qo=vr,Jo=Wo.indexOf,Xo=Zi,ea=er([].push),ta=function(e,t){var r,n=Qo(e),i=0,o=[];for(r in n)!Yo(Xo,r)&&Yo(n,r)&&ea(o,r);for(;t.length>i;)Yo(n,r=t[i++])&&(~Jo(o,r)||ea(o,r));return o},ra=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],na=ta,ia=ra.concat("length","prototype");Co.f=Object.getOwnPropertyNames||function(e){return na(e,ia)};var oa={};oa.f=Object.getOwnPropertySymbols;var aa=xr,sa=Co,ua=oa,ca=ci,da=er([].concat),la=aa("Reflect","ownKeys")||function(e){var t=sa.f(ca(e)),r=ua.f;return r?da(t,r(e)):t},fa=An,pa=la,ha=Bt,ma=ii,va=function(e,t,r){for(var n=pa(t),i=ma.f,o=ha.f,a=0;a<n.length;a++){var s=n[a];fa(e,s)||r&&fa(r,s)||i(e,s,o(t,s))}},ga=jt,Aa=Ar,ba=/#|\.prototype\./,ya=function(e,t){var r=wa[_a(e)];return r===ka||r!==xa&&(Aa(t)?ga(t):!!t)},_a=ya.normalize=function(e){return String(e).replace(ba,".").toLowerCase()},wa=ya.data={},xa=ya.NATIVE="N",ka=ya.POLYFILL="P",Ea=ya,Sa=Lt,Da=Bt.f,Ra=xi,Ia=Io,Ca=an,Oa=va,Ta=Ea,Pa=function(e,t){var r,n,i,o,a,s=e.target,u=e.global,c=e.stat;if(r=u?Sa:c?Sa[s]||Ca(s,{}):Sa[s]&&Sa[s].prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(a=Da(r,n))&&a.value:r[n],!Ta(u?n:s+(c?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Oa(o,i)}(e.sham||i&&i.sham)&&Ra(o,"sham",!0),Ia(r,n,o,e)}},Ma=ir,La=Array.isArray||function(e){return"Array"===Ma(e)},Ba=TypeError,ja=Ut,Ua=ii,Fa=Wt,Na=function(e,t,r){ja?Ua.f(e,t,Fa(0,r)):e[t]=r},$a={};$a[Tn("toStringTag")]="z";var Ga="[object z]"===String($a),Ha=Ga,za=Ar,Za=ir,Ka=Tn("toStringTag"),qa=Object,Va="Arguments"===Za(function(){return arguments}()),Wa=Ha?Za:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=qa(e),Ka))?r:Va?Za(t):"Object"===(n=Za(t))&&za(t.callee)?"Arguments":n},Ya=er,Qa=jt,Ja=Ar,Xa=Wa,es=Ui,ts=function(){},rs=xr("Reflect","construct"),ns=/^\s*(?:class|function)\b/,is=Ya(ns.exec),os=!ns.test(ts),as=function(e){if(!Ja(e))return!1;try{return rs(ts,[],e),!0}catch(e){return!1}},ss=function(e){if(!Ja(e))return!1;switch(Xa(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return os||!!is(ns,es(e))}catch(e){return!0}};ss.sham=!0;var us=!rs||Qa((function(){var e;return as(as.call)||!as(Object)||!as((function(){e=!0}))||e}))?ss:as,cs=La,ds=us,ls=yr,fs=Tn("species"),ps=Array,hs=function(e){var t;return cs(e)&&(t=e.constructor,(ds(t)&&(t===ps||cs(t.prototype))||ls(t)&&null===(t=t[fs]))&&(t=void 0)),void 0===t?ps:t},ms=function(e,t){return new(hs(e))(0===t?0:t)},vs=jt,gs=Tr,As=Tn("species"),bs=function(e){return gs>=51||!vs((function(){var t=[];return(t.constructor={})[As]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},ys=Pa,_s=jt,ws=La,xs=yr,ks=mn,Es=zo,Ss=function(e){if(e>9007199254740991)throw Ba("Maximum allowed index exceeded");return e},Ds=Na,Rs=ms,Is=bs,Cs=Tr,Os=Tn("isConcatSpreadable"),Ts=Cs>=51||!_s((function(){var e=[];return e[Os]=!1,e.concat()[0]!==e})),Ps=function(e){if(!xs(e))return!1;var t=e[Os];return void 0!==t?!!t:ws(e)};ys({target:"Array",proto:!0,arity:1,forced:!Ts||!Is("concat")},{concat:function(e){var t,r,n,i,o,a=ks(this),s=Rs(a,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(Ps(o=-1===t?a:arguments[t]))for(i=Es(o),Ss(u+i),r=0;r<i;r++,u++)r in o&&Ds(s,u,o[r]);else Ss(u+1),Ds(s,u++,o);return s.length=u,s}});var Ms=ta,Ls=ra,Bs=Object.keys||function(e){return Ms(e,Ls)},js=mn,Us=Bs;Pa({target:"Object",stat:!0,forced:jt((function(){Us(1)}))},{keys:function(e){return Us(js(e))}});var Fs=Wa,Ns=Ga?{}.toString:function(){return"[object "+Fs(this)+"]"};Ga||Io(Object.prototype,"toString",Ns,{unsafe:!0});var $s={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},Gs=Kn("span").classList,Hs=Gs&&Gs.constructor&&Gs.constructor.prototype,zs=Hs===Object.prototype?void 0:Hs,Zs=ir,Ks=er,Vs=function(e){if("Function"===Zs(e))return Ks(e)},Ws=Vr,Ys=Ft,Qs=Vs(Vs.bind),Js=function(e,t){return Ws(e),void 0===t?e:Ys?Qs(e,t):function(){return e.apply(t,arguments)}},Xs=Js,eu=cr,tu=mn,ru=zo,nu=ms,iu=er([].push),ou=function(e){var t=1===e,r=2===e,n=3===e,i=4===e,o=6===e,a=7===e,s=5===e||o;return function(u,c,d,l){for(var f,p,h=tu(u),m=eu(h),v=ru(m),g=Xs(c,d),A=0,b=l||nu,y=t?b(u,v):r||a?b(u,0):void 0;v>A;A++)if((s||A in m)&&(p=g(f=m[A],A,h),e))if(t)y[A]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return A;case 2:iu(y,f)}else switch(e){case 4:return!1;case 7:iu(y,f)}return o?-1:n||i?i:y}},au={forEach:ou(0),map:ou(1),filter:ou(2),some:ou(3),every:ou(4),find:ou(5),findIndex:ou(6),filterReject:ou(7)},su=jt,uu=function(e,t){var r=[][e];return!!r&&su((function(){r.call(null,t||function(){return 1},1)}))},cu=au.forEach,du=uu("forEach")?[].forEach:function(e){return cu(this,e,arguments.length>1?arguments[1]:void 0)},lu=Lt,fu=$s,pu=zs,hu=du,mu=xi,vu=function(e){if(e&&e.forEach!==hu)try{mu(e,"forEach",hu)}catch(t){e.forEach=hu}};for(var gu in fu)fu[gu]&&vu(lu[gu]&&lu[gu].prototype);vu(pu);var Au={name:"@bygd/gd-sdk-pes",version:"1.42.0",files:["dist/*"],scripts:{build:"NODE_ENV=production rollup --config",watch:"rollup --config --watch --sourcemap inline --environment DEVELOPMENT","deploy-base":"npm install && npm run build && npm publish --access public",deploy:"npm run deploy-base && gdtool pm-upload"},repository:{type:"git",url:"git@gitlab.azerdev.com:gamedistribution/gd-sdk-pes.git"},author:"",license:"ISC",devDependencies:{"@babel/core":"^7.14.6","@babel/plugin-transform-runtime":"^7.14.5","@babel/preset-env":"^7.14.7","@rollup/plugin-babel":"^5.2.3","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-replace":"^3.0.0",postcss:"^8.3.5",rollup:"^2.52.8","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-browsersync":"^1.3.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-polyfills":"^0.2.1","rollup-plugin-peer-deps-external":"^2.2.4","rollup-plugin-postcss":"^4.0.0","rollup-plugin-terser":"^7.0.2"},dependencies:{"@babel/runtime":"^7.14.6","@bygd/gd-sdk-era":"^0.3.6","@flownet/lib-connect-to-tcf":"^0.2.10","@fnet/inter-service-js":"^0.9.4",axios:"^0.26.1","can-autoplay":"^3.0.2",events:"^3.3.0","get-value":"^3.0.1","is-plain-object":"^5.0.0","is-valid-domain":"^0.1.2","js-base64":"^3.6.1","leaderboard-lib":"0.1.11","lodash.clonedeep":"^4.5.0","lodash.merge":"^4.6.2",querystringify:"^2.2.0","set-value":"^4.1.0","url-parse":"^1.4.7",uuid:"^8.3.2",validator:"^13.6.0"}},bu=function(e){var t=yu("object"===n(e)?e:function(e){if(e)try{return JSON.parse(e)}catch(e){}}(e));return t&&t.version?Au.version>=t.version?t:void 0:t},yu=function(e){var t=this;if(!K(e)||0===e.length)return e;if(1===e.length)return e[0];var n=0;e.forEach(function(e){r(this,t),e.weight=e.weight||1,n+=e.weight}.bind(this));var i=Math.floor(Math.random()*Math.floor(n));n=0;for(var o=0;o<e.length;o++){var a=e[o];if(i<(n+=a.weight))return a}},_u=function(){},wu=function(){var e;(e=console).log.apply(e,arguments)},xu=function(){var e;(e=console).log.apply(e,arguments)};JSON.stringify({adapters:{default:["ima","adsense","ima","adsense"],preroll:["ima","adsense","ima","adsense"],midroll:["ima","adsense","ima","adsense"],rewarded:["ima","adsense","ima","adsense"]}}),JSON.stringify({adapters:{default:["ima","adsense","ima","adsense"],preroll:["ima","adsense","ima"],midroll:["ima","adsense","ima"],rewarded:["ima","adsense","ima","adsense"]}});var ku={};function Eu(e,t,r){return(t=T(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Su=Wa,Du=String,Ru=function(e){if("Symbol"===Su(e))throw new TypeError("Cannot convert a Symbol value to a string");return Du(e)},Iu={},Cu=Ut,Ou=oi,Tu=ii,Pu=ci,Mu=vr,Lu=Bs;Iu.f=Cu&&!Ou?Object.defineProperties:function(e,t){Pu(e);for(var r,n=Mu(t),i=Lu(t),o=i.length,a=0;o>a;)Tu.f(e,r=i[a++],n[r]);return e};var Bu,ju=xr("document","documentElement"),Uu=ci,Fu=Iu,Nu=ra,$u=Zi,Gu=ju,Hu=Kn,zu="prototype",Zu="script",Ku=zi("IE_PROTO"),qu=function(){},Vu=function(e){return"<"+Zu+">"+e+"</"+Zu+">"},Wu=function(e){e.write(Vu("")),e.close();var t=e.parentWindow.Object;return e=null,t},Yu=function(){try{Bu=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;Yu="undefined"!=typeof document?document.domain&&Bu?Wu(Bu):(t=Hu("iframe"),r="java"+Zu+":",t.style.display="none",Gu.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Vu("document.F=Object")),e.close(),e.F):Wu(Bu);for(var n=Nu.length;n--;)delete Yu[zu][Nu[n]];return Yu()};$u[Ku]=!0;var Qu=Object.create||function(e,t){var r;return null!==e?(qu[zu]=Uu(e),r=new qu,qu[zu]=null,r[Ku]=e):r=Yu(),void 0===t?r:Fu.f(r,t)},Ju={},Xu=er([].slice),ec=ir,tc=vr,rc=Co.f,nc=Xu,ic="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ju.f=function(e){return ic&&"Window"===ec(e)?function(e){try{return rc(e)}catch(e){return nc(ic)}}(e):rc(tc(e))};var oc=ki.exports,ac=ii,sc=function(e,t,r){return r.get&&oc(r.get,t,{getter:!0}),r.set&&oc(r.set,t,{setter:!0}),ac.f(e,t,r)},uc={},cc=Tn;uc.f=cc;var dc=Lt,lc=An,fc=uc,pc=ii.f,hc=function(e){var t=dc.Symbol||(dc.Symbol={});lc(t,e)||pc(t,e,{value:fc.f(e)})},mc=Gt,vc=xr,gc=Tn,Ac=Io,bc=ii.f,yc=An,_c=Tn("toStringTag"),wc=function(e,t,r){e&&!r&&(e=e.prototype),e&&!yc(e,_c)&&bc(e,_c,{configurable:!0,value:t})},xc=Pa,kc=Lt,Ec=Gt,Sc=er,Dc=Ut,Rc=Br,Ic=jt,Cc=An,Oc=kr,Tc=ci,Pc=vr,Mc=Gn,Lc=Ru,Bc=Wt,jc=Qu,Uc=Bs,Fc=Co,Nc=Ju,$c=oa,Gc=Bt,Hc=ii,zc=Iu,Zc=Ht,Kc=Io,qc=sc,Vc=fn,Wc=Zi,Yc=xn,Qc=Tn,Jc=uc,Xc=hc,ed=function(){var e=vc("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=gc("toPrimitive");t&&!t[n]&&Ac(t,n,(function(e){return mc(r,this)}),{arity:1})},td=wc,rd=ao,nd=au.forEach,id=zi("hidden"),od="Symbol",ad="prototype",sd=rd.set,ud=rd.getterFor(od),cd=Object[ad],dd=kc.Symbol,ld=dd&&dd[ad],fd=kc.RangeError,pd=kc.TypeError,hd=kc.QObject,md=Gc.f,vd=Hc.f,gd=Nc.f,Ad=Zc.f,bd=Sc([].push),yd=Vc("symbols"),_d=Vc("op-symbols"),wd=Vc("wks"),xd=!hd||!hd[ad]||!hd[ad].findChild,kd=function(e,t,r){var n=md(cd,t);n&&delete cd[t],vd(e,t,r),n&&e!==cd&&vd(cd,t,n)},Ed=Dc&&Ic((function(){return 7!==jc(vd({},"a",{get:function(){return vd(this,"a",{value:7}).a}})).a}))?kd:vd,Sd=function(e,t){var r=yd[e]=jc(ld);return sd(r,{type:od,tag:e,description:t}),Dc||(r.description=t),r},Dd=function(e,t,r){e===cd&&Dd(_d,t,r),Tc(e);var n=Mc(t);return Tc(r),Cc(yd,n)?(r.enumerable?(Cc(e,id)&&e[id][n]&&(e[id][n]=!1),r=jc(r,{enumerable:Bc(0,!1)})):(Cc(e,id)||vd(e,id,Bc(1,jc(null))),e[id][n]=!0),Ed(e,n,r)):vd(e,n,r)},Rd=function(e,t){Tc(e);var r=Pc(t),n=Uc(r).concat(Td(r));return nd(n,(function(t){Dc&&!Ec(Id,r,t)||Dd(e,t,r[t])})),e},Id=function(e){var t=Mc(e),r=Ec(Ad,this,t);return!(this===cd&&Cc(yd,t)&&!Cc(_d,t))&&(!(r||!Cc(this,t)||!Cc(yd,t)||Cc(this,id)&&this[id][t])||r)},Cd=function(e,t){var r=Pc(e),n=Mc(t);if(r!==cd||!Cc(yd,n)||Cc(_d,n)){var i=md(r,n);return!i||!Cc(yd,n)||Cc(r,id)&&r[id][n]||(i.enumerable=!0),i}},Od=function(e){var t=gd(Pc(e)),r=[];return nd(t,(function(e){Cc(yd,e)||Cc(Wc,e)||bd(r,e)})),r},Td=function(e){var t=e===cd,r=gd(t?_d:Pc(e)),n=[];return nd(r,(function(e){!Cc(yd,e)||t&&!Cc(cd,e)||bd(n,yd[e])})),n};Rc||(dd=function(){if(Oc(ld,this))throw new pd("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Lc(arguments[0]):void 0,t=Yc(e),r=function(e){var n=void 0===this?kc:this;n===cd&&Ec(r,_d,e),Cc(n,id)&&Cc(n[id],t)&&(n[id][t]=!1);var i=Bc(1,e);try{Ed(n,t,i)}catch(e){if(!(e instanceof fd))throw e;kd(n,t,i)}};return Dc&&xd&&Ed(cd,t,{configurable:!0,set:r}),Sd(t,e)},Kc(ld=dd[ad],"toString",(function(){return ud(this).tag})),Kc(dd,"withoutSetter",(function(e){return Sd(Yc(e),e)})),Zc.f=Id,Hc.f=Dd,zc.f=Rd,Gc.f=Cd,Fc.f=Nc.f=Od,$c.f=Td,Jc.f=function(e){return Sd(Qc(e),e)},Dc&&(qc(ld,"description",{configurable:!0,get:function(){return ud(this).description}}),Kc(cd,"propertyIsEnumerable",Id,{unsafe:!0}))),xc({global:!0,constructor:!0,wrap:!0,forced:!Rc,sham:!Rc},{Symbol:dd}),nd(Uc(wd),(function(e){Xc(e)})),xc({target:od,stat:!0,forced:!Rc},{useSetter:function(){xd=!0},useSimple:function(){xd=!1}}),xc({target:"Object",stat:!0,forced:!Rc,sham:!Dc},{create:function(e,t){return void 0===t?jc(e):Rd(jc(e),t)},defineProperty:Dd,defineProperties:Rd,getOwnPropertyDescriptor:Cd}),xc({target:"Object",stat:!0,forced:!Rc},{getOwnPropertyNames:Od}),ed(),td(dd,od),Wc[id]=!0;var Pd=Br&&!!Symbol.for&&!!Symbol.keyFor,Md=Pa,Ld=xr,Bd=An,jd=Ru,Ud=fn,Fd=Pd,Nd=Ud("string-to-symbol-registry"),$d=Ud("symbol-to-string-registry");Md({target:"Symbol",stat:!0,forced:!Fd},{for:function(e){var t=jd(e);if(Bd(Nd,t))return Nd[t];var r=Ld("Symbol")(t);return Nd[t]=r,$d[r]=t,r}});var Gd=Pa,Hd=An,zd=Gr,Zd=zr,Kd=Pd,qd=fn("symbol-to-string-registry");Gd({target:"Symbol",stat:!0,forced:!Kd},{keyFor:function(e){if(!zd(e))throw new TypeError(Zd(e)+" is not a symbol");if(Hd(qd,e))return qd[e]}});var Vd=Ft,Wd=Function.prototype,Yd=Wd.apply,Qd=Wd.call,Jd="object"==typeof Reflect&&Reflect.apply||(Vd?Qd.bind(Yd):function(){return Qd.apply(Yd,arguments)}),Xd=La,el=Ar,tl=ir,rl=Ru,nl=er([].push),il=Pa,ol=xr,al=Jd,sl=Gt,ul=er,cl=jt,dl=Ar,ll=Gr,fl=Xu,pl=function(e){if(el(e))return e;if(Xd(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?nl(r,i):"number"!=typeof i&&"Number"!==tl(i)&&"String"!==tl(i)||nl(r,rl(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Xd(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},hl=Br,ml=String,vl=ol("JSON","stringify"),gl=ul(/./.exec),Al=ul("".charAt),bl=ul("".charCodeAt),yl=ul("".replace),_l=ul(1..toString),wl=/[\uD800-\uDFFF]/g,xl=/^[\uD800-\uDBFF]$/,kl=/^[\uDC00-\uDFFF]$/,El=!hl||cl((function(){var e=ol("Symbol")("stringify detection");return"[null]"!==vl([e])||"{}"!==vl({a:e})||"{}"!==vl(Object(e))})),Sl=cl((function(){return'"\\udf06\\ud834"'!==vl("\udf06\ud834")||'"\\udead"'!==vl("\udead")})),Dl=function(e,t){var r=fl(arguments),n=pl(t);if(dl(n)||void 0!==e&&!ll(e))return r[1]=function(e,t){if(dl(n)&&(t=sl(n,this,ml(e),t)),!ll(t))return t},al(vl,null,r)},Rl=function(e,t,r){var n=Al(r,t-1),i=Al(r,t+1);return gl(xl,e)&&!gl(kl,i)||gl(kl,e)&&!gl(xl,n)?"\\u"+_l(bl(e,0),16):e};vl&&il({target:"JSON",stat:!0,arity:3,forced:El||Sl},{stringify:function(e,t,r){var n=fl(arguments),i=al(El?Dl:vl,null,n);return Sl&&"string"==typeof i?yl(i,wl,Rl):i}});var Il=oa,Cl=mn;Pa({target:"Object",stat:!0,forced:!Br||jt((function(){Il.f(1)}))},{getOwnPropertySymbols:function(e){var t=Il.f;return t?t(Cl(e)):[]}});var Ol=Pa,Tl=Ut,Pl=er,Ml=An,Ll=Ar,Bl=kr,jl=Ru,Ul=sc,Fl=va,Nl=Lt.Symbol,$l=Nl&&Nl.prototype;if(Tl&&Ll(Nl)&&(!("description"in $l)||void 0!==Nl().description)){var Gl={},Hl=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:jl(arguments[0]),t=Bl($l,this)?new Nl(e):void 0===e?Nl():Nl(e);return""===e&&(Gl[t]=!0),t};Fl(Hl,Nl),Hl.prototype=$l,$l.constructor=Hl;var zl="Symbol(description detection)"===String(Nl("description detection")),Zl=Pl($l.valueOf),Kl=Pl($l.toString),ql=/^Symbol\((.*)\)[^)]+$/,Vl=Pl("".replace),Wl=Pl("".slice);Ul($l,"description",{configurable:!0,get:function(){var e=Zl(this);if(Ml(Gl,e))return"";var t=Kl(e),r=zl?Wl(t,7,-1):Vl(t,ql,"$1");return""===r?void 0:r}}),Ol({global:!0,constructor:!0,forced:!0},{Symbol:Hl})}hc("iterator");var Yl=au.filter;Pa({target:"Array",proto:!0,forced:!bs("filter")},{filter:function(e){return Yl(this,e,arguments.length>1?arguments[1]:void 0)}});var Ql=Gt,Jl=ci,Xl=Qr,ef=function(e,t,r){var n,i;Jl(e);try{if(!(n=Xl(e,"return"))){if("throw"===t)throw r;return r}n=Ql(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return Jl(n),r},tf=ci,rf=ef,nf={},of=nf,af=Tn("iterator"),sf=Array.prototype,uf=function(e){return void 0!==e&&(of.Array===e||sf[af]===e)},cf=Wa,df=Qr,lf=dr,ff=nf,pf=Tn("iterator"),hf=function(e){if(!lf(e))return df(e,pf)||df(e,"@@iterator")||ff[cf(e)]},mf=Gt,vf=Vr,gf=ci,Af=zr,bf=hf,yf=TypeError,_f=function(e,t){var r=arguments.length<2?bf(e):t;if(vf(r))return gf(mf(r,e));throw new yf(Af(e)+" is not iterable")},wf=Js,xf=Gt,kf=mn,Ef=function(e,t,r,n){try{return n?t(tf(r)[0],r[1]):t(r)}catch(t){rf(e,"throw",t)}},Sf=uf,Df=us,Rf=zo,If=Na,Cf=_f,Of=hf,Tf=Array,Pf=function(e){var t=kf(e),r=Df(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=wf(i,n>2?arguments[2]:void 0));var a,s,u,c,d,l,f=Of(t),p=0;if(!f||this===Tf&&Sf(f))for(a=Rf(t),s=r?new this(a):Tf(a);a>p;p++)l=o?i(t[p],p):t[p],If(s,p,l);else for(s=r?new this:[],d=(c=Cf(t,f)).next;!(u=xf(d,c)).done;p++)l=o?Ef(c,i,[u.value,p],!0):u.value,If(s,p,l);return s.length=p,s},Mf=Tn("iterator"),Lf=!1;try{var Bf=0,jf={next:function(){return{done:!!Bf++}},return:function(){Lf=!0}};jf[Mf]=function(){return this},Array.from(jf,(function(){throw 2}))}catch(_S){}var Uf=function(e,t){try{if(!t&&!Lf)return!1}catch(e){return!1}var r=!1;try{var n={};n[Mf]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},Ff=Pf;Pa({target:"Array",stat:!0,forced:!Uf((function(e){Array.from(e)}))},{from:Ff});var Nf=Tn,$f=Qu,Gf=ii.f,Hf=Nf("unscopables"),zf=Array.prototype;void 0===zf[Hf]&&Gf(zf,Hf,{configurable:!0,value:$f(null)});var Zf,Kf,qf,Vf=function(e){zf[Hf][e]=!0},Wf=!jt((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Yf=An,Qf=Ar,Jf=mn,Xf=Wf,ep=zi("IE_PROTO"),tp=Object,rp=tp.prototype,np=Xf?tp.getPrototypeOf:function(e){var t=Jf(e);if(Yf(t,ep))return t[ep];var r=t.constructor;return Qf(r)&&t instanceof r?r.prototype:t instanceof tp?rp:null},ip=jt,op=Ar,ap=yr,sp=np,up=Io,cp=Tn("iterator"),dp=!1;[].keys&&("next"in(qf=[].keys())?(Kf=sp(sp(qf)))!==Object.prototype&&(Zf=Kf):dp=!0);var lp=!ap(Zf)||ip((function(){var e={};return Zf[cp].call(e)!==e}));lp&&(Zf={}),op(Zf[cp])||up(Zf,cp,(function(){return this}));var fp={IteratorPrototype:Zf,BUGGY_SAFARI_ITERATORS:dp},pp=fp.IteratorPrototype,hp=Qu,mp=Wt,vp=wc,gp=nf,Ap=function(){return this},bp=function(e,t,r,n){var i=t+" Iterator";return e.prototype=hp(pp,{next:mp(+!n,r)}),vp(e,i,!1),gp[i]=Ap,e},yp=er,_p=Vr,wp=yr,xp=function(e){return wp(e)||null===e},kp=String,Ep=TypeError,Sp=function(e,t,r){try{return yp(_p(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},Dp=yr,Rp=pr,Ip=function(e){if(xp(e))return e;throw new Ep("Can't set "+kp(e)+" as a prototype")},Cp=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Sp(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Rp(r),Ip(n),Dp(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0),Op=Pa,Tp=Gt,Pp=Ar,Mp=bp,Lp=np,Bp=Cp,jp=wc,Up=xi,Fp=Io,Np=nf,$p=Ci.PROPER,Gp=Ci.CONFIGURABLE,Hp=fp.IteratorPrototype,zp=fp.BUGGY_SAFARI_ITERATORS,Zp=Tn("iterator"),Kp="keys",qp="values",Vp="entries",Wp=function(){return this},Yp=function(e,t,r,n,i,o,a){Mp(r,t,n);var s,u,c,d=function(e){if(e===i&&m)return m;if(!zp&&e&&e in p)return p[e];switch(e){case Kp:case qp:case Vp:return function(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",f=!1,p=e.prototype,h=p[Zp]||p["@@iterator"]||i&&p[i],m=!zp&&h||d(i),v="Array"===t&&p.entries||h;if(v&&(s=Lp(v.call(new e)))!==Object.prototype&&s.next&&(Lp(s)!==Hp&&(Bp?Bp(s,Hp):Pp(s[Zp])||Fp(s,Zp,Wp)),jp(s,l,!0)),$p&&i===qp&&h&&h.name!==qp&&(Gp?Up(p,"name",qp):(f=!0,m=function(){return Tp(h,this)})),i)if(u={values:d(qp),keys:o?m:d(Kp),entries:d(Vp)},a)for(c in u)(zp||f||!(c in p))&&Fp(p,c,u[c]);else Op({target:t,proto:!0,forced:zp||f},u);return p[Zp]!==m&&Fp(p,Zp,m,{name:i}),Np[t]=m,u},Qp=function(e,t){return{value:e,done:t}},Jp=vr,Xp=Vf,eh=nf,th=ao,rh=ii.f,nh=Yp,ih=Qp,oh=Ut,ah="Array Iterator",sh=th.set,uh=th.getterFor(ah),ch=nh(Array,"Array",(function(e,t){sh(this,{type:ah,target:Jp(e),index:0,kind:t})}),(function(){var e=uh(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,ih(void 0,!0);switch(e.kind){case"keys":return ih(r,!1);case"values":return ih(t[r],!1)}return ih([r,t[r]],!1)}),"values"),dh=eh.Arguments=eh.Array;if(Xp("keys"),Xp("values"),Xp("entries"),oh&&"values"!==dh.name)try{rh(dh,"name",{value:"values"})}catch(_S){}var lh=Pa,fh=La,ph=us,hh=yr,mh=Fo,vh=zo,gh=vr,Ah=Na,bh=Tn,yh=Xu,_h=bs("slice"),wh=bh("species"),xh=Array,kh=Math.max;lh({target:"Array",proto:!0,forced:!_h},{slice:function(e,t){var r,n,i,o=gh(this),a=vh(o),s=mh(e,a),u=mh(void 0===t?a:t,a);if(fh(o)&&(r=o.constructor,(ph(r)&&(r===xh||fh(r.prototype))||hh(r)&&null===(r=r[wh]))&&(r=void 0),r===xh||void 0===r))return yh(o,s,u);for(n=new(void 0===r?xh:r)(kh(u-s,0)),i=0;s<u;s++,i++)s in o&&Ah(n,i,o[s]);return n.length=i,n}});var Eh=Pa,Sh=jt,Dh=vr,Rh=Bt.f,Ih=Ut;Eh({target:"Object",stat:!0,forced:!Ih||Sh((function(){Rh(1)})),sham:!Ih},{getOwnPropertyDescriptor:function(e,t){return Rh(Dh(e),t)}});var Ch=la,Oh=vr,Th=Bt,Ph=Na;Pa({target:"Object",stat:!0,sham:!Ut},{getOwnPropertyDescriptors:function(e){for(var t,r,n=Oh(e),i=Th.f,o=Ch(n),a={},s=0;o.length>s;)void 0!==(r=i(n,t=o[s++]))&&Ph(a,t,r);return a}});var Mh=ci,Lh=function(){var e=Mh(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Bh=jt,jh=Lt.RegExp,Uh=Bh((function(){var e=jh("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),Fh=Uh||Bh((function(){return!jh("a","y").sticky})),Nh=Uh||Bh((function(){var e=jh("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),$h={BROKEN_CARET:Nh,MISSED_STICKY:Fh,UNSUPPORTED_Y:Uh},Gh=jt,Hh=Lt.RegExp,zh=Gh((function(){var e=Hh(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),Zh=jt,Kh=Lt.RegExp,qh=Zh((function(){var e=Kh("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Vh=Gt,Wh=er,Yh=Ru,Qh=Lh,Jh=$h,Xh=Qu,em=ao.get,tm=zh,rm=qh,nm=fn("native-string-replace",String.prototype.replace),im=RegExp.prototype.exec,om=im,am=Wh("".charAt),sm=Wh("".indexOf),um=Wh("".replace),cm=Wh("".slice),dm=function(){var e=/a/,t=/b*/g;return Vh(im,e,"a"),Vh(im,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),lm=Jh.BROKEN_CARET,fm=void 0!==/()??/.exec("")[1];(dm||fm||lm||tm||rm)&&(om=function(e){var t,r,n,i,o,a,s,u=this,c=em(u),d=Yh(e),l=c.raw;if(l)return l.lastIndex=u.lastIndex,t=Vh(om,l,d),u.lastIndex=l.lastIndex,t;var f=c.groups,p=lm&&u.sticky,h=Vh(Qh,u),m=u.source,v=0,g=d;if(p&&(h=um(h,"y",""),-1===sm(h,"g")&&(h+="g"),g=cm(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==am(d,u.lastIndex-1))&&(m="(?: "+m+")",g=" "+g,v++),r=new RegExp("^(?:"+m+")",h)),fm&&(r=new RegExp("^"+m+"$(?!\\s)",h)),dm&&(n=u.lastIndex),i=Vh(im,p?r:u,g),p?i?(i.input=cm(i.input,v),i[0]=cm(i[0],v),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:dm&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),fm&&i&&i.length>1&&Vh(nm,i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&f)for(i.groups=a=Xh(null),o=0;o<f.length;o++)a[(s=f[o])[0]]=i[s[1]];return i});var pm=om;Pa({target:"RegExp",proto:!0,forced:/./.exec!==pm},{exec:pm});var hm=Gt,mm=An,vm=kr,gm=Lh,Am=RegExp.prototype,bm=function(e){var t=e.flags;return void 0!==t||"flags"in Am||mm(e,"flags")||!vm(Am,e)?t:hm(gm,e)},ym=Ci.PROPER,_m=Io,wm=ci,xm=Ru,km=jt,Em=bm,Sm="toString",Dm=RegExp.prototype,Rm=Dm[Sm],Im=km((function(){return"/a/b"!==Rm.call({source:"a",flags:"b"})})),Cm=ym&&Rm.name!==Sm;(Im||Cm)&&_m(Dm,Sm,(function(){var e=wm(this);return"/"+xm(e.source)+"/"+xm(Em(e))}),{unsafe:!0});var Om=er,Tm=Lo,Pm=Ru,Mm=pr,Lm=Om("".charAt),Bm=Om("".charCodeAt),jm=Om("".slice),Um=function(e){return function(t,r){var n,i,o=Pm(Mm(t)),a=Tm(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=Bm(o,a))<55296||n>56319||a+1===s||(i=Bm(o,a+1))<56320||i>57343?e?Lm(o,a):n:e?jm(o,a,a+2):i-56320+(n-55296<<10)+65536}},Fm={codeAt:Um(!1),charAt:Um(!0)},Nm=Fm.charAt,$m=Ru,Gm=ao,Hm=Yp,zm=Qp,Zm="String Iterator",Km=Gm.set,qm=Gm.getterFor(Zm);Hm(String,"String",(function(e){Km(this,{type:Zm,string:$m(e),index:0})}),(function(){var e,t=qm(this),r=t.string,n=t.index;return n>=r.length?zm(void 0,!0):(e=Nm(r,n),t.index+=e.length,zm(e,!1))}));var Vm=Lt,Wm=$s,Ym=zs,Qm=ch,Jm=xi,Xm=wc,ev=Tn("iterator"),tv=Qm.values,rv=function(e,t){if(e){if(e[ev]!==tv)try{Jm(e,ev,tv)}catch(t){e[ev]=tv}if(Xm(e,t,!0),Wm[t])for(var r in Qm)if(e[r]!==Qm[r])try{Jm(e,r,Qm[r])}catch(t){e[r]=Qm[r]}}};for(var nv in Wm)rv(Vm[nv]&&Vm[nv].prototype,nv);rv(Ym,"DOMTokenList");var iv=Ut,ov=Ci.EXISTS,av=er,sv=sc,uv=Function.prototype,cv=av(uv.toString),dv=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,lv=av(dv.exec);iv&&!ov&&sv(uv,"name",{configurable:!0,get:function(){try{return lv(dv,cv(this))[1]}catch(e){return""}}});var fv,pv,hv,mv,vv="process"===ir(Lt.process),gv=xr,Av=sc,bv=Ut,yv=Tn("species"),_v=function(e){var t=gv(e);bv&&t&&!t[yv]&&Av(t,yv,{configurable:!0,get:function(){return this}})},wv=kr,xv=TypeError,kv=function(e,t){if(wv(t,e))return e;throw new xv("Incorrect invocation")},Ev=us,Sv=zr,Dv=TypeError,Rv=ci,Iv=function(e){if(Ev(e))return e;throw new Dv(Sv(e)+" is not a constructor")},Cv=dr,Ov=Tn("species"),Tv=function(e,t){var r,n=Rv(e).constructor;return void 0===n||Cv(r=Rv(n)[Ov])?t:Iv(r)},Pv=TypeError,Mv=function(e,t){if(e<t)throw new Pv("Not enough arguments");return e},Lv=/(?:ipad|iphone|ipod).*applewebkit/i.test(Er),Bv=Lt,jv=Jd,Uv=Js,Fv=Ar,Nv=An,$v=jt,Gv=ju,Hv=Xu,zv=Kn,Zv=Mv,Kv=Lv,qv=vv,Vv=Bv.setImmediate,Wv=Bv.clearImmediate,Yv=Bv.process,Qv=Bv.Dispatch,Jv=Bv.Function,Xv=Bv.MessageChannel,eg=Bv.String,tg=0,rg={},ng="onreadystatechange";$v((function(){fv=Bv.location}));var ig=function(e){if(Nv(rg,e)){var t=rg[e];delete rg[e],t()}},og=function(e){return function(){ig(e)}},ag=function(e){ig(e.data)},sg=function(e){Bv.postMessage(eg(e),fv.protocol+"//"+fv.host)};Vv&&Wv||(Vv=function(e){Zv(arguments.length,1);var t=Fv(e)?e:Jv(e),r=Hv(arguments,1);return rg[++tg]=function(){jv(t,void 0,r)},pv(tg),tg},Wv=function(e){delete rg[e]},qv?pv=function(e){Yv.nextTick(og(e))}:Qv&&Qv.now?pv=function(e){Qv.now(og(e))}:Xv&&!Kv?(mv=(hv=new Xv).port2,hv.port1.onmessage=ag,pv=Uv(mv.postMessage,mv)):Bv.addEventListener&&Fv(Bv.postMessage)&&!Bv.importScripts&&fv&&"file:"!==fv.protocol&&!$v(sg)?(pv=sg,Bv.addEventListener("message",ag,!1)):pv=ng in zv("script")?function(e){Gv.appendChild(zv("script"))[ng]=function(){Gv.removeChild(this),ig(e)}}:function(e){setTimeout(og(e),0)});var ug={set:Vv,clear:Wv},cg=Lt,dg=Ut,lg=Object.getOwnPropertyDescriptor,fg=function(e){if(!dg)return cg[e];var t=lg(cg,e);return t&&t.value},pg=function(){this.head=null,this.tail=null};pg.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var hg,mg,vg,gg,Ag,bg=pg,yg=/ipad|iphone|ipod/i.test(Er)&&"undefined"!=typeof Pebble,_g=/web0s(?!.*chrome)/i.test(Er),wg=Lt,xg=fg,kg=Js,Eg=ug.set,Sg=bg,Dg=Lv,Rg=yg,Ig=_g,Cg=vv,Og=wg.MutationObserver||wg.WebKitMutationObserver,Tg=wg.document,Pg=wg.process,Mg=wg.Promise,Lg=xg("queueMicrotask");if(!Lg){var Bg=new Sg,jg=function(){var e,t;for(Cg&&(e=Pg.domain)&&e.exit();t=Bg.get();)try{t()}catch(e){throw Bg.head&&hg(),e}e&&e.enter()};Dg||Cg||Ig||!Og||!Tg?!Rg&&Mg&&Mg.resolve?((gg=Mg.resolve(void 0)).constructor=Mg,Ag=kg(gg.then,gg),hg=function(){Ag(jg)}):Cg?hg=function(){Pg.nextTick(jg)}:(Eg=kg(Eg,wg),hg=function(){Eg(jg)}):(mg=!0,vg=Tg.createTextNode(""),new Og(jg).observe(vg,{characterData:!0}),hg=function(){vg.data=mg=!mg}),Lg=function(e){Bg.head||hg(),Bg.add(e)}}var Ug=Lg,Fg=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Ng=Lt.Promise,$g="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Gg=!$g&&!vv&&"object"==typeof window&&"object"==typeof document,Hg=Lt,zg=Ng,Zg=Ar,Kg=Ea,qg=Ui,Vg=Tn,Wg=Gg,Yg=$g,Qg=Tr;zg&&zg.prototype;var Jg=Vg("species"),Xg=!1,eA=Zg(Hg.PromiseRejectionEvent),tA=Kg("Promise",(function(){var e=qg(zg),t=e!==String(zg);if(!t&&66===Qg)return!0;if(!Qg||Qg<51||!/native code/.test(e)){var r=new zg((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[Jg]=n,!(Xg=r.then((function(){}))instanceof n))return!0}return!t&&(Wg||Yg)&&!eA})),rA={CONSTRUCTOR:tA,REJECTION_EVENT:eA,SUBCLASSING:Xg},nA={},iA=Vr,oA=TypeError,aA=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new oA("Bad Promise constructor");t=e,r=n})),this.resolve=iA(t),this.reject=iA(r)};nA.f=function(e){return new aA(e)};var sA,uA,cA,dA=Pa,lA=vv,fA=Lt,pA=Gt,hA=Io,mA=Cp,vA=wc,gA=_v,AA=Vr,bA=Ar,yA=yr,_A=kv,wA=Tv,xA=ug.set,kA=Ug,EA=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},SA=Fg,DA=bg,RA=ao,IA=Ng,CA=nA,OA="Promise",TA=rA.CONSTRUCTOR,PA=rA.REJECTION_EVENT,MA=rA.SUBCLASSING,LA=RA.getterFor(OA),BA=RA.set,jA=IA&&IA.prototype,UA=IA,FA=jA,NA=fA.TypeError,$A=fA.document,GA=fA.process,HA=CA.f,zA=HA,ZA=!!($A&&$A.createEvent&&fA.dispatchEvent),KA="unhandledrejection",qA=function(e){var t;return!(!yA(e)||!bA(t=e.then))&&t},VA=function(e,t){var r,n,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&XA(t),t.rejection=1),!0===s?r=o:(d&&d.enter(),r=s(o),d&&(d.exit(),i=!0)),r===e.promise?c(new NA("Promise-chain cycle")):(n=qA(r))?pA(n,r,u,c):u(r)):c(o)}catch(e){d&&!i&&d.exit(),c(e)}},WA=function(e,t){e.notified||(e.notified=!0,kA((function(){for(var r,n=e.reactions;r=n.get();)VA(r,e);e.notified=!1,t&&!e.rejection&&QA(e)})))},YA=function(e,t,r){var n,i;ZA?((n=$A.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),fA.dispatchEvent(n)):n={promise:t,reason:r},!PA&&(i=fA["on"+e])?i(n):e===KA&&EA("Unhandled promise rejection",r)},QA=function(e){pA(xA,fA,(function(){var t,r=e.facade,n=e.value;if(JA(e)&&(t=SA((function(){lA?GA.emit("unhandledRejection",n,r):YA(KA,r,n)})),e.rejection=lA||JA(e)?2:1,t.error))throw t.value}))},JA=function(e){return 1!==e.rejection&&!e.parent},XA=function(e){pA(xA,fA,(function(){var t=e.facade;lA?GA.emit("rejectionHandled",t):YA("rejectionhandled",t,e.value)}))},eb=function(e,t,r){return function(n){e(t,n,r)}},tb=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,WA(e,!0))},rb=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new NA("Promise can't be resolved itself");var n=qA(t);n?kA((function(){var r={done:!1};try{pA(n,t,eb(rb,r,e),eb(tb,r,e))}catch(t){tb(r,t,e)}})):(e.value=t,e.state=1,WA(e,!1))}catch(t){tb({done:!1},t,e)}}};if(TA&&(UA=function(e){_A(this,FA),AA(e),pA(sA,this);var t=LA(this);try{e(eb(rb,t),eb(tb,t))}catch(e){tb(t,e)}},FA=UA.prototype,(sA=function(e){BA(this,{type:OA,done:!1,notified:!1,parent:!1,reactions:new DA,rejection:!1,state:0,value:void 0})}).prototype=hA(FA,"then",(function(e,t){var r=LA(this),n=HA(wA(this,UA));return r.parent=!0,n.ok=!bA(e)||e,n.fail=bA(t)&&t,n.domain=lA?GA.domain:void 0,0===r.state?r.reactions.add(n):kA((function(){VA(n,r)})),n.promise})),uA=function(){var e=new sA,t=LA(e);this.promise=e,this.resolve=eb(rb,t),this.reject=eb(tb,t)},CA.f=HA=function(e){return e===UA||undefined===e?new uA(e):zA(e)},bA(IA)&&jA!==Object.prototype)){cA=jA.then,MA||hA(jA,"then",(function(e,t){var r=this;return new UA((function(e,t){pA(cA,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete jA.constructor}catch(_S){}mA&&mA(jA,FA)}dA({global:!0,constructor:!0,wrap:!0,forced:TA},{Promise:UA}),vA(UA,OA,!1),gA(OA);var nb=Js,ib=Gt,ob=ci,ab=zr,sb=uf,ub=zo,cb=kr,db=_f,lb=hf,fb=ef,pb=TypeError,hb=function(e,t){this.stopped=e,this.result=t},mb=hb.prototype,vb=function(e,t,r){var n,i,o,a,s,u,c,d=r&&r.that,l=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),m=nb(t,d),v=function(e){return n&&fb(n,"normal",e),new hb(!0,e)},g=function(e){return l?(ob(e),h?m(e[0],e[1],v):m(e[0],e[1])):h?m(e,v):m(e)};if(f)n=e.iterator;else if(p)n=e;else{if(!(i=lb(e)))throw new pb(ab(e)+" is not iterable");if(sb(i)){for(o=0,a=ub(e);a>o;o++)if((s=g(e[o]))&&cb(mb,s))return s;return new hb(!1)}n=db(e,i)}for(u=f?e.next:n.next;!(c=ib(u,n)).done;){try{s=g(c.value)}catch(e){fb(n,"throw",e)}if("object"==typeof s&&s&&cb(mb,s))return s}return new hb(!1)},gb=Ng,Ab=rA.CONSTRUCTOR||!Uf((function(e){gb.all(e).then(void 0,(function(){}))})),bb=Gt,yb=Vr,_b=nA,wb=Fg,xb=vb;Pa({target:"Promise",stat:!0,forced:Ab},{all:function(e){var t=this,r=_b.f(t),n=r.resolve,i=r.reject,o=wb((function(){var r=yb(t.resolve),o=[],a=0,s=1;xb(e,(function(e){var u=a++,c=!1;s++,bb(r,t,e).then((function(e){c||(c=!0,o[u]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var kb=Pa,Eb=rA.CONSTRUCTOR,Sb=Ng,Db=xr,Rb=Ar,Ib=Io,Cb=Sb&&Sb.prototype;if(kb({target:"Promise",proto:!0,forced:Eb,real:!0},{catch:function(e){return this.then(void 0,e)}}),Rb(Sb)){var Ob=Db("Promise").prototype.catch;Cb.catch!==Ob&&Ib(Cb,"catch",Ob,{unsafe:!0})}var Tb=Gt,Pb=Vr,Mb=nA,Lb=Fg,Bb=vb;Pa({target:"Promise",stat:!0,forced:Ab},{race:function(e){var t=this,r=Mb.f(t),n=r.reject,i=Lb((function(){var i=Pb(t.resolve);Bb(e,(function(e){Tb(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var jb=nA;Pa({target:"Promise",stat:!0,forced:rA.CONSTRUCTOR},{reject:function(e){var t=jb.f(this);return(0,t.reject)(e),t.promise}});var Ub=ci,Fb=yr,Nb=nA,$b=function(e,t){if(Ub(e),Fb(t)&&t.constructor===e)return t;var r=Nb.f(e);return(0,r.resolve)(t),r.promise},Gb=Pa,Hb=rA.CONSTRUCTOR,zb=$b;function Zb(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Kb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kb(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Kb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qb(Object(r),!0).forEach((function(t){Eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}xr("Promise"),Gb({target:"Promise",stat:!0,forced:Hb},{resolve:function(e){return zb(this,e)}});var Wb={react:{src:"https://pm.azerioncircle.com/react/16.14.0/umd/react.production.min.js",name:"React"},"react-dom":{src:"https://pm.azerioncircle.com/react-dom/16.14.0/umd/react-dom.production.min.js",name:"ReactDOM"},redux:{src:"https://pm.azerioncircle.com/redux/4.0.5/dist/redux.min.js",name:"Redux"},"react-redux":{src:"https://pm.azerioncircle.com/react-redux/7.2.1/dist/react-redux.min.js",name:"ReactRedux"},"material-ui-core":{src:"https://pm.azerioncircle.com/@material-ui/core/4.11.3/umd/material-ui.production.min.js",name:"MaterialUI"}},Yb={},Qb=function(e,t){Yb[e]=Vb(Vb({},t),{},{isLoading:!1})},Jb=function(e){var t=this,n=e.id,i=e.src;return new Promise(function(e,o){if(r(this,t),document.getElementById(n))e();else{var a=document.createElement("script");a.onload=function(){e()},a.id=n,a.setAttribute("crossorigin",!0),a.src=i,document.head.appendChild(a)}}.bind(this))},Xb=function(){var e=t(d.mark((function e(t){var r,n,i,o,a,s,u,c;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=window[t])){e.next=3;break}return e.abrupt("return",r);case 3:if(!(n=Yb[t]).isLoading){e.next=6;break}return e.abrupt("return");case 6:n.isLoading=!0,i=Zb(n.dependencies),e.prev=8,i.s();case 10:if((o=i.n()).done){e.next=26;break}if(a=o.value,e.prev=12,s=Wb[a].name,!window[s]){e.next=16;break}return e.abrupt("continue",24);case 16:return e.next=18,Jb({id:a,src:Wb[a].src});case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(12),u=a.id,c=a.src,console.log("Could not load external script ".concat(u," ").concat(c),e.t0);case 24:e.next=10;break;case 26:e.next=31;break;case 28:e.prev=28,e.t1=e.catch(8),i.e(e.t1);case 31:return e.prev=31,i.f(),e.finish(31);case 34:return e.prev=34,e.next=37,Jb({id:t,src:n.source});case 37:r=window[t],e.next=43;break;case 40:e.prev=40,e.t2=e.catch(34),console.log("Could not load module ".concat(t," ").concat(n.source,"."),e.t2);case 43:return n.isLoading=!1,e.abrupt("return",r);case 45:case"end":return e.stop()}}),e,null,[[8,28,31,34],[12,20],[34,40]])})));return function(t){return e.apply(this,arguments)}}(),ey=M((function e(){var r=this;O(this,e),Eu(this,"load",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xb("Leaderboard");case 2:r.leaderboard=e.sent;case 3:case"end":return e.stop()}}),e)})))),Eu(this,"showLeaderboard",function(){var e=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=window.GD_OPTIONS.gameId,r.leaderboard){e.next=4;break}return e.next=4,r.load();case 4:r.leaderboard.showLeaderBoard(n,t);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),Eu(this,"addScore",function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.leaderboard){e.next=3;break}return e.next=3,r.load();case 3:r.leaderboard.addScore(t);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.moduleName="Leaderboard",this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/gd-sdk-leaderboard/0.1.43/dist/default/iife/index.js",dependencies:["react","react-dom","redux","react-redux","material-ui-core"]},Qb(this.moduleName,this.moduleConfig)})),ty=new ey,ry=Gt,ny=Io,iy=pm,oy=jt,ay=Tn,sy=xi,uy=ay("species"),cy=RegExp.prototype,dy=function(e,t,r,n){var i=ay(e),o=!oy((function(){var t={};return t[i]=function(){return 7},7!==""[e](t)})),a=o&&!oy((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[uy]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return t=!0,null},r[i](""),!t}));if(!o||!a||r){var s=/./[i],u=t(i,""[e],(function(e,t,r,n,i){var a=t.exec;return a===iy||a===cy.exec?o&&!i?{done:!0,value:ry(s,t,r,n)}:{done:!0,value:ry(e,r,t,n)}:{done:!1}}));ny(String.prototype,e,u[0]),ny(cy,i,u[1])}n&&sy(cy[i],"sham",!0)},ly=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},fy=Gt,py=ci,hy=Ar,my=ir,vy=pm,gy=TypeError,Ay=function(e,t){var r=e.exec;if(hy(r)){var n=fy(r,e,t);return null!==n&&py(n),n}if("RegExp"===my(e))return fy(vy,e,t);throw new gy("RegExp#exec called on incompatible receiver")},by=Gt,yy=ci,_y=dr,wy=pr,xy=ly,ky=Ru,Ey=Qr,Sy=Ay;dy("search",(function(e,t,r){return[function(t){var r=wy(this),n=_y(t)?void 0:Ey(t,e);return n?by(n,t,r):new RegExp(t)[e](ky(r))},function(e){var n=yy(this),i=ky(e),o=r(t,n,i);if(o.done)return o.value;var a=n.lastIndex;xy(a,0)||(n.lastIndex=0);var s=Sy(n,i);return xy(n.lastIndex,a)||(n.lastIndex=a),null===s?-1:s.index}]}));var Dy,Ry=yr,Iy=ir,Cy=Tn("match"),Oy=function(e){var t;return Ry(e)&&(void 0!==(t=e[Cy])?!!t:"RegExp"===Iy(e))},Ty=Oy,Py=TypeError,My=function(e){if(Ty(e))throw new Py("The method doesn't accept regular expressions");return e},Ly=Tn("match"),By=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Ly]=!1,"/./"[e](t)}catch(e){}}return!1},jy=Pa,Uy=Vs,Fy=Bt.f,Ny=Go,$y=Ru,Gy=My,Hy=pr,zy=By,Zy=Uy("".slice),Ky=Math.min,qy=zy("startsWith");function Vy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vy(Object(r),!0).forEach((function(t){Eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}jy({target:"String",proto:!0,forced:!!(qy||(Dy=Fy(String.prototype,"startsWith"),!Dy||Dy.writable))&&!qy},{startsWith:function(e){var t=$y(Hy(this));Gy(e);var r=Ny(Ky(arguments.length>1?arguments[1]:void 0,t.length)),n=$y(e);return Zy(t,r,r+n.length)===n}});var Yy,Qy,Jy=function(){return M((function e(){O(this,e)}),[{key:"getBridgeContext",value:function(){var e=this._isTokenGameURL(),t=this._isMasterGameURL(),r=this._isExtHostedGameURL(),n=e||r?this._getTokenGameURLConfig():{};n=n||{};var i=decodeURIComponent((e||r)&&n.parentURL?n.parentURL:ut()),o=decodeURIComponent((e||r)&&n.parentDomain?n.parentDomain:st()),a=decodeURIComponent((e||r)&&n.topDomain?n.topDomain:r&&0===mt()?o:At()),s=(e||r)&&n.loaderEnabled,u=(e||r)&&n.loaderEnabled,c=(e||r)&&n.loaderEnabled,d=(e||r)&&n.loaderEnabled,l=(e||r)&&n.loaderEnabled,f=(e||r)&&n.loaderEnabled,p=(e||r)&&n.loaderEnabled;console.log("noMinijuegosSDK",p);var h=(e||r)&&n.loaderEnabled,m=(e||r)&&n.loaderEnabled&&n.hasImpression&&n.version>="1.1.24";return{isTokenGameURL:e,isMasterGameURL:t,isExtHostedGameURL:r,noConsoleBanner:s,noLoadedEvent:u,noBlockerEvent:c,noPreroll:h,parentURL:i,parentDomain:o,topDomain:a&&a.length?a:o,noGAPageView:d,noLotamePageView:l,noGamedockSDK:f,noMinijuegosSDK:p,version:n.version,pauseGameOnStartup:m,depth:mt(),domainMatched:o===a,exports:{formatTokenURLSearch:this._formatTokenURLSearch.bind(this),extendUrlQuery:this._extendUrlQuery.bind(this),base64Encode:this._base64_encode.bind(this)}}}},{key:"_isMasterGameURL",value:function(){var e=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i;return e.test(location.href)||!this._isTokenGameURL()&&e.test(document.referrer)}},{key:"_isTokenGameURL",value:function(){var e=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i;return e.test(location.href)||e.test(document.referrer)}},{key:"_isExtHostedGameURL",value:function(){var e=/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i;return e.test(location.href)||e.test(document.referrer)}},{key:"_isLoaderGameURL",value:function(){return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href)&&location.href.startsWith("https://html5.gamedistribution.com")}},{key:"_getTokenGameURLConfig",value:function(){try{var e,t=/http[s]?:\/\/html5\.gamedistribution\.com\/[A-Za-z0-9]{8}\/[A-Fa-f0-9]{32}\/.*/i;if(t.test(location.href)){var r=new C(location.href,!0);if(!r.query.gd_zone_config)return;e=r.query.gd_zone_config}else if(t.test(document.referrer)){var n=new C(document.referrer,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else{var i=new C(location.href,!0);if(!i.query.gd_zone_config)return;e=i.query.gd_zone_config}return JSON.parse(it.decode(decodeURIComponent(e)))}catch(e){}}},{key:"_formatTokenURLSearch",value:function(e){var t="";try{t=encodeURIComponent(it.encode(JSON.stringify(e)))}catch(e){}try{var r=new C(location.href,!0);return r.query=r.query||{},r.query.gd_zone_config=t,"?".concat(qs.stringify(r.query))}catch(e){return"?gd_zone_config=".concat(t)}}},{key:"_extendUrlQuery",value:function(e,t){var r=new C(e,!0);return r.query=Wy(Wy({},r.query),t),r.toString()}},{key:"_base64_encode",value:function(e){return it.encode(JSON.stringify(e))}}])}(),Xy=function(){try{return(new Jy).getBridgeContext()}catch(e){return{}}}(),e_={userDeclinedTracking:document.location.search.indexOf("gdpr-tracking=0")>=0||document.cookie.indexOf("ogdpr_tracking=0")>=0,whitelabelPartner:(Yy=!1,(Qy=dt()).hasOwnProperty("xanthophyll")&&"true"===Qy.xanthophyll&&(Yy=!0),Yy)},t_=Wo.includes,r_=Vf;Pa({target:"Array",proto:!0,forced:jt((function(){return!Array(1).includes()}))},{includes:function(e){return t_(this,e,arguments.length>1?arguments[1]:void 0)}}),r_("includes");var n_=Pa,i_=My,o_=pr,a_=Ru,s_=By,u_=er("".indexOf);n_({target:"String",proto:!0,forced:!s_("includes")},{includes:function(e){return!!~u_(a_(o_(this)),a_(i_(e)),arguments.length>1?arguments[1]:void 0)}});var c_=Fm.charAt,d_=er,l_=mn,f_=Math.floor,p_=d_("".charAt),h_=d_("".replace),m_=d_("".slice),v_=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,g_=/\$([$&'`]|\d{1,2})/g,A_=Jd,b_=Gt,y_=er,__=dy,w_=jt,x_=ci,k_=Ar,E_=dr,S_=Lo,D_=Go,R_=Ru,I_=pr,C_=function(e,t,r){return t+(r?c_(e,t).length:1)},O_=Qr,T_=function(e,t,r,n,i,o){var a=r+e.length,s=n.length,u=g_;return void 0!==i&&(i=l_(i),u=v_),h_(o,u,(function(o,u){var c;switch(p_(u,0)){case"$":return"$";case"&":return e;case"`":return m_(t,0,r);case"'":return m_(t,a);case"<":c=i[m_(u,1,-1)];break;default:var d=+u;if(0===d)return o;if(d>s){var l=f_(d/10);return 0===l?o:l<=s?void 0===n[l-1]?p_(u,1):n[l-1]+p_(u,1):o}c=n[d-1]}return void 0===c?"":c}))},P_=Ay,M_=Tn("replace"),L_=Math.max,B_=Math.min,j_=y_([].concat),U_=y_([].push),F_=y_("".indexOf),N_=y_("".slice),$_=function(e){return void 0===e?e:String(e)},G_="$0"==="a".replace(/./,"$0"),H_=!!/./[M_]&&""===/./[M_]("a","$0"),z_=!w_((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));__("replace",(function(e,t,r){var n=H_?"$":"$0";return[function(e,r){var n=I_(this),i=E_(e)?void 0:O_(e,M_);return i?b_(i,e,n,r):b_(t,R_(n),e,r)},function(e,i){var o=x_(this),a=R_(e);if("string"==typeof i&&-1===F_(i,n)&&-1===F_(i,"$<")){var s=r(t,o,a,i);if(s.done)return s.value}var u=k_(i);u||(i=R_(i));var c,d=o.global;d&&(c=o.unicode,o.lastIndex=0);for(var l,f=[];null!==(l=P_(o,a))&&(U_(f,l),d);){""===R_(l[0])&&(o.lastIndex=C_(a,D_(o.lastIndex),c))}for(var p="",h=0,m=0;m<f.length;m++){for(var v,g=R_((l=f[m])[0]),A=L_(B_(S_(l.index),a.length),0),b=[],y=1;y<l.length;y++)U_(b,$_(l[y]));var _=l.groups;if(u){var w=j_([g],b,A,a);void 0!==_&&U_(w,_),v=R_(A_(i,void 0,w))}else v=T_(g,a,A,b,_,i);A>=h&&(p+=N_(a,h,A)+v,h=A+g.length)}return p+N_(a,h)}]}),!z_||!G_||H_);var Z_=jt,K_=Ut,q_=Tn("iterator"),V_=!Z_((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),!t.size&&!K_||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[q_]||"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})),W_=Io,Y_=Xu,Q_=Math.floor,J_=function(e,t){var r=e.length;if(r<8)for(var n,i,o=1;o<r;){for(i=o,n=e[o];i&&t(e[i-1],n)>0;)e[i]=e[--i];i!==o++&&(e[i]=n)}else for(var a=Q_(r/2),s=J_(Y_(e,0,a),t),u=J_(Y_(e,a),t),c=s.length,d=u.length,l=0,f=0;l<c||f<d;)e[l+f]=l<c&&f<d?t(s[l],u[f])<=0?s[l++]:u[f++]:l<c?s[l++]:u[f++];return e},X_=Pa,ew=Lt,tw=fg,rw=Gt,nw=er,iw=Ut,ow=V_,aw=Io,sw=sc,uw=function(e,t,r){for(var n in t)W_(e,n,t[n],r);return e},cw=wc,dw=bp,lw=ao,fw=kv,pw=Ar,hw=An,mw=Js,vw=Wa,gw=ci,Aw=yr,bw=Ru,yw=Qu,_w=Wt,ww=_f,xw=hf,kw=Qp,Ew=Mv,Sw=J_,Dw=Tn("iterator"),Rw="URLSearchParams",Iw=Rw+"Iterator",Cw=lw.set,Ow=lw.getterFor(Rw),Tw=lw.getterFor(Iw),Pw=tw("fetch"),Mw=tw("Request"),Lw=tw("Headers"),Bw=Mw&&Mw.prototype,jw=Lw&&Lw.prototype,Uw=ew.RegExp,Fw=ew.TypeError,Nw=ew.decodeURIComponent,$w=ew.encodeURIComponent,Gw=nw("".charAt),Hw=nw([].join),zw=nw([].push),Zw=nw("".replace),Kw=nw([].shift),qw=nw([].splice),Vw=nw("".split),Ww=nw("".slice),Yw=/\+/g,Qw=Array(4),Jw=function(e){return Qw[e-1]||(Qw[e-1]=Uw("((?:%[\\da-f]{2}){"+e+"})","gi"))},Xw=function(e){try{return Nw(e)}catch(t){return e}},ex=function(e){var t=Zw(e,Yw," "),r=4;try{return Nw(t)}catch(e){for(;r;)t=Zw(t,Jw(r--),Xw);return t}},tx=/[!'()~]|%20/g,rx={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},nx=function(e){return rx[e]},ix=function(e){return Zw($w(e),tx,nx)},ox=dw((function(e,t){Cw(this,{type:Iw,target:Ow(e).entries,index:0,kind:t})}),Rw,(function(){var e=Tw(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,kw(void 0,!0);var n=t[r];switch(e.kind){case"keys":return kw(n.key,!1);case"values":return kw(n.value,!1)}return kw([n.key,n.value],!1)}),!0),ax=function(e){this.entries=[],this.url=null,void 0!==e&&(Aw(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Gw(e,0)?Ww(e,1):e:bw(e)))};ax.prototype={type:Rw,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,u=this.entries,c=xw(e);if(c)for(r=(t=ww(e,c)).next;!(n=rw(r,t)).done;){if(o=(i=ww(gw(n.value))).next,(a=rw(o,i)).done||(s=rw(o,i)).done||!rw(o,i).done)throw new Fw("Expected sequence with length 2");zw(u,{key:bw(a.value),value:bw(s.value)})}else for(var d in e)hw(e,d)&&zw(u,{key:d,value:bw(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=Vw(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=Vw(t,"="),zw(n,{key:ex(Kw(r)),value:ex(Hw(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],zw(r,ix(e.key)+"="+ix(e.value));return Hw(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var sx=function(){fw(this,ux);var e=Cw(this,new ax(arguments.length>0?arguments[0]:void 0));iw||(this.size=e.entries.length)},ux=sx.prototype;if(uw(ux,{append:function(e,t){var r=Ow(this);Ew(arguments.length,2),zw(r.entries,{key:bw(e),value:bw(t)}),iw||this.length++,r.updateURL()},delete:function(e){for(var t=Ow(this),r=Ew(arguments.length,1),n=t.entries,i=bw(e),o=r<2?void 0:arguments[1],a=void 0===o?o:bw(o),s=0;s<n.length;){var u=n[s];if(u.key!==i||void 0!==a&&u.value!==a)s++;else if(qw(n,s,1),void 0!==a)break}iw||(this.size=n.length),t.updateURL()},get:function(e){var t=Ow(this).entries;Ew(arguments.length,1);for(var r=bw(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=Ow(this).entries;Ew(arguments.length,1);for(var r=bw(e),n=[],i=0;i<t.length;i++)t[i].key===r&&zw(n,t[i].value);return n},has:function(e){for(var t=Ow(this).entries,r=Ew(arguments.length,1),n=bw(e),i=r<2?void 0:arguments[1],o=void 0===i?i:bw(i),a=0;a<t.length;){var s=t[a++];if(s.key===n&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var r=Ow(this);Ew(arguments.length,1);for(var n,i=r.entries,o=!1,a=bw(e),s=bw(t),u=0;u<i.length;u++)(n=i[u]).key===a&&(o?qw(i,u--,1):(o=!0,n.value=s));o||zw(i,{key:a,value:s}),iw||(this.size=i.length),r.updateURL()},sort:function(){var e=Ow(this);Sw(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Ow(this).entries,n=mw(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new ox(this,"keys")},values:function(){return new ox(this,"values")},entries:function(){return new ox(this,"entries")}},{enumerable:!0}),aw(ux,Dw,ux.entries,{name:"entries"}),aw(ux,"toString",(function(){return Ow(this).serialize()}),{enumerable:!0}),iw&&sw(ux,"size",{get:function(){return Ow(this).entries.length},configurable:!0,enumerable:!0}),cw(sx,Rw),X_({global:!0,constructor:!0,forced:!ow},{URLSearchParams:sx}),!ow&&pw(Lw)){var cx=nw(jw.has),dx=nw(jw.set),lx=function(e){if(Aw(e)){var t,r=e.body;if(vw(r)===Rw)return t=e.headers?new Lw(e.headers):new Lw,cx(t,"content-type")||dx(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),yw(e,{body:_w(0,bw(r)),headers:_w(0,t)})}return e};if(pw(Pw)&&X_({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Pw(e,arguments.length>1?lx(arguments[1]):{})}}),pw(Mw)){var fx=function(e){return fw(this,Bw),new Mw(e,arguments.length>1?lx(arguments[1]):{})};Bw.constructor=fx,fx.prototype=Bw,X_({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:fx})}}var px={URLSearchParams:sx,getState:Ow},hx={exports:{}},mx={exports:{}},vx={exports:{}};!function(e,t){function r(e){return 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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="string"==typeof e||e instanceof String;if(!t){var n=r(e);throw null===e?n="null":"object"===n&&(n=e.constructor.name),new TypeError("Expected a string but received a ".concat(n))}},e.exports=t.default,e.exports.default=t.default}(vx,vx.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var r,n=(r=vx.exports)&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default}(mx,mx.exports);var gx={exports:{}},Ax={},bx={};Object.defineProperty(bx,"__esModule",{value:!0}),bx.farsiLocales=bx.englishLocales=bx.dotDecimal=bx.decimal=bx.commaDecimal=bx.bengaliLocales=bx.arabicLocales=bx.alphanumeric=bx.alpha=void 0;for(var yx,_x=bx.alpha={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"kk-KZ":/^[А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,eo:/^[ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/},wx=bx.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"kk-KZ":/^[0-9А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,eo:/^[0-9ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/},xx=bx.decimal={"en-US":".",ar:"٫"},kx=bx.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"],Ex=0;Ex<kx.length;Ex++)_x[yx="en-".concat(kx[Ex])]=_x["en-US"],wx[yx]=wx["en-US"],xx[yx]=xx["en-US"];for(var Sx,Dx=bx.arabicLocales=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"],Rx=0;Rx<Dx.length;Rx++)_x[Sx="ar-".concat(Dx[Rx])]=_x.ar,wx[Sx]=wx.ar,xx[Sx]=xx.ar;for(var Ix,Cx=bx.farsiLocales=["IR","AF"],Ox=0;Ox<Cx.length;Ox++)wx[Ix="fa-".concat(Cx[Ox])]=wx.fa,xx[Ix]=xx.ar;for(var Tx,Px=bx.bengaliLocales=["BD","IN"],Mx=0;Mx<Px.length;Mx++)_x[Tx="bn-".concat(Px[Mx])]=_x.bn,wx[Tx]=wx.bn,xx[Tx]=xx["en-US"];for(var Lx=bx.dotDecimal=["ar-EG","ar-LB","ar-LY"],Bx=bx.commaDecimal=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-ZM","eo","es-ES","fr-CA","fr-FR","id-ID","it-IT","ku-IQ","hi-IN","hu-HU","nb-NO","nn-NO","nl-NL","pl-PL","pt-PT","ru-RU","kk-KZ","si-LK","sl-SI","sr-RS@latin","sr-RS","sv-SE","tr-TR","uk-UA","vi-VN"],jx=0;jx<Lx.length;jx++)xx[Lx[jx]]=xx["en-US"];for(var Ux=0;Ux<Bx.length;Ux++)xx[Bx[Ux]]=",";_x["fr-CA"]=_x["fr-FR"],wx["fr-CA"]=wx["fr-FR"],_x["pt-BR"]=_x["pt-PT"],wx["pt-BR"]=wx["pt-PT"],xx["pt-BR"]=xx["pt-PT"],_x["pl-Pl"]=_x["pl-PL"],wx["pl-Pl"]=wx["pl-PL"],xx["pl-Pl"]=xx["pl-PL"],_x["fa-AF"]=_x.fa,Object.defineProperty(Ax,"__esModule",{value:!0}),Ax.default=function(e,t){(0,Nx.default)(e),t=t||{};var r=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?$x.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||","===e||"-"===e||"+"===e)return!1;var n=parseFloat(e.replace(",","."));return r.test(e)&&(!t.hasOwnProperty("min")||n>=t.min)&&(!t.hasOwnProperty("max")||n<=t.max)&&(!t.hasOwnProperty("lt")||n<t.lt)&&(!t.hasOwnProperty("gt")||n>t.gt)},Ax.locales=void 0;var Fx,Nx=(Fx=vx.exports)&&Fx.__esModule?Fx:{default:Fx},$x=bx;Ax.locales=Object.keys($x.decimal),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)?parseFloat(e):NaN};var r=function(e){return e&&e.__esModule?e:{default:e}}(Ax);e.exports=t.default,e.exports.default=t.default}(gx,gx.exports);var Gx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),parseInt(e,t||10)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);e.exports=t.default,e.exports.default=t.default}(Gx,Gx.exports);var Hx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);e.exports=t.default,e.exports.default=t.default}(Hx,Hx.exports);var zx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e===t};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);e.exports=t.default,e.exports.default=t.default}(zx,zx.exports);var Zx={exports:{}},Kx={exports:{}};!function(e,t){function r(e){return 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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"object"===r(e)&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e="");return String(e)},e.exports=t.default,e.exports.default=t.default}(Kx,Kx.exports);var qx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e},e.exports=t.default,e.exports.default=t.default}(qx,qx.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,o){if((0,r.default)(e),o=(0,i.default)(o,a),o.ignoreCase)return e.toLowerCase().split((0,n.default)(t).toLowerCase()).length>o.minOccurrences;return e.split((0,n.default)(t)).length>o.minOccurrences};var r=o(vx.exports),n=o(Kx.exports),i=o(qx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a={ignoreCase:!1,minOccurrences:1};e.exports=t.default,e.exports.default=t.default}(Zx,Zx.exports);var Vx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,r.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,n));return!!e.match(t)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);e.exports=t.default,e.exports.default=t.default}(Vx,Vx.exports);var Wx={exports:{}},Yx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i,o;(0,r.default)(e),"object"===n(t)?(i=t.min||0,o=t.max):(i=arguments[1],o=arguments[2]);var a=encodeURI(e).split(/%..|./).length-1;return a>=i&&(void 0===o||a<=o)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);function n(e){return n="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},n(e)}e.exports=t.default,e.exports.default=t.default}(Yx,Yx.exports);var Qx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=(0,n.default)(t,o),t.allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var i=e.split("."),a=i[i.length-1];if(t.require_tld){if(i.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(a))return!1;if(/\s/.test(a))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(a))return!1;return i.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var r=i(vx.exports),n=i(qx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default}(Qx,Qx.exports);var Jx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),n=String(n),!n)return e(t,4)||e(t,6);if("4"===n)return o.test(t);if("6"===n)return s.test(t);return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",i="(".concat(n,"[.]){3}").concat(n),o=new RegExp("^".concat(i,"$")),a="(?:[0-9a-fA-F]{1,4})",s=new RegExp("^("+"(?:".concat(a,":){7}(?:").concat(a,"|:)|")+"(?:".concat(a,":){6}(?:").concat(i,"|:").concat(a,"|:)|")+"(?:".concat(a,":){5}(?::").concat(i,"|(:").concat(a,"){1,2}|:)|")+"(?:".concat(a,":){4}(?:(:").concat(a,"){0,1}:").concat(i,"|(:").concat(a,"){1,3}|:)|")+"(?:".concat(a,":){3}(?:(:").concat(a,"){0,2}:").concat(i,"|(:").concat(a,"){1,4}|:)|")+"(?:".concat(a,":){2}(?:(:").concat(a,"){0,3}:").concat(i,"|(:").concat(a,"){1,5}|:)|")+"(?:".concat(a,":){1}(?:(:").concat(a,"){0,4}:").concat(i,"|(:").concat(a,"){1,6}|:)|")+"(?::((?::".concat(a,"){0,5}:").concat(i,"|(?::").concat(a,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default}(Jx,Jx.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t=(0,a.default)(t,u),t.require_display_name||t.allow_display_name){var s=e.match(c);if(s){var v=s[1];if(e=e.replace(v,"").replace(/(^<|>$)/g,""),v.endsWith(" ")&&(v=v.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(v))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>m)return!1;var g=e.split("@"),A=g.pop(),b=A.toLowerCase();if(t.host_blacklist.includes(b))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(b))return!1;var y=g.join("@");if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var _=(y=y.toLowerCase()).split("+")[0];if(!(0,n.default)(_.replace(/\./g,""),{min:6,max:30}))return!1;for(var w=_.split("."),x=0;x<w.length;x++)if(!l.test(w[x]))return!1}if(!(!1!==t.ignore_max_length||(0,n.default)(y,{max:64})&&(0,n.default)(A,{max:254})))return!1;if(!(0,i.default)(A,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!(0,o.default)(A)){if(!A.startsWith("[")||!A.endsWith("]"))return!1;var k=A.slice(1,-1);if(0===k.length||!(0,o.default)(k))return!1}}if('"'===y[0])return y=y.slice(1,y.length-1),t.allow_utf8_local_part?h.test(y):f.test(y);for(var E=t.allow_utf8_local_part?p:d,S=y.split("."),D=0;D<S.length;D++)if(!E.test(S[D]))return!1;if(t.blacklisted_chars&&-1!==y.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var r=s(vx.exports),n=s(Yx.exports),i=s(Qx.exports),o=s(Jx.exports),a=s(qx.exports);function s(e){return e&&e.__esModule?e:{default:e}}var u={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},c=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,l=/^[a-z\d]+$/,f=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,p=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,h=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,m=254;e.exports=t.default,e.exports.default=t.default}(Wx,Wx.exports);var Xx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if(t=(0,o.default)(t,u),t.validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var a,d,f,p,h,m,v,g;if(v=e.split("#"),e=v.shift(),v=e.split("?"),e=v.shift(),v=e.split("://"),v.length>1){if(a=v.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(a))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;v[0]=e.slice(2)}}if(e=v.join("://"),""===e)return!1;if(v=e.split("/"),e=v.shift(),""===e&&!t.require_host)return!0;if(v=e.split("@"),v.length>1){if(t.disallow_auth)return!1;if(""===v[0])return!1;if((d=v.shift()).indexOf(":")>=0&&d.split(":").length>2)return!1;var A=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(d.split(":"),2),b=A[0],y=A[1];if(""===b&&""===y)return!1}p=v.join("@"),m=null,g=null;var _=p.match(c);_?(f="",g=_[1],m=_[2]||null):(f=(v=p.split(":")).shift(),v.length&&(m=v.join(":")));if(null!==m&&m.length>0){if(h=parseInt(m,10),!/^[0-9]+$/.test(m)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return l(f,t.host_whitelist);if(""===f&&!t.require_host)return!0;if(!((0,i.default)(f)||(0,n.default)(f,t)||g&&(0,i.default)(g,6)))return!1;if(f=f||g,t.host_blacklist&&l(f,t.host_blacklist))return!1;return!0};var r=a(vx.exports),n=a(Qx.exports),i=a(Jx.exports),o=a(qx.exports);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},c=/^\[([^\]]+)\](?::([0-9]+))?$/;function d(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];if(e===n||d(n)&&n.test(e))return!0}return!1}e.exports=t.default,e.exports.default=t.default}(Xx,Xx.exports);var ek={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,c){(0,r.default)(t),null!=c&&c.eui&&(c.eui=String(c.eui));if(null!=c&&c.no_colons||null!=c&&c.no_separators)return"48"===c.eui?i.test(t):"64"===c.eui?s.test(t):i.test(t)||s.test(t);if("48"===(null==c?void 0:c.eui))return n.test(t)||o.test(t);if("64"===(null==c?void 0:c.eui))return a.test(t)||u.test(t);return e(t,{eui:"48"})||e(t,{eui:"64"})};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,i=/^([0-9a-fA-F]){12}$/,o=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,a=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/,s=/^([0-9a-fA-F]){16}$/,u=/^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;e.exports=t.default,e.exports.default=t.default}(ek,ek.exports);var tk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,r.default)(e);var i=e.split("/");if(2!==i.length)return!1;if(!o.test(i[1]))return!1;if(i[1].length>1&&i[1].startsWith("0"))return!1;var u=(0,n.default)(i[0],t);if(!u)return!1;var c=null;switch(String(t)){case"4":c=a;break;case"6":c=s;break;default:c=(0,n.default)(i[0],"6")?s:a}return i[1]<=c&&i[1]>=0};var r=i(vx.exports),n=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o=/^\d{1,3}$/,a=32,s=128;e.exports=t.default,e.exports.default=t.default}(tk,tk.exports);var rk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t="string"==typeof t?(0,r.default)({format:t},a):(0,r.default)(t,a);if("string"==typeof e&&(b=t.format,/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(b))){var o,s=t.delimiters.find((function(e){return-1!==t.format.indexOf(e)})),u=t.strictMode?s:t.delimiters.find((function(t){return-1!==e.indexOf(t)})),c=function(e,t){for(var r=[],n=Math.min(e.length,t.length),i=0;i<n;i++)r.push([e[i],t[i]]);return r}(e.split(u),t.format.toLowerCase().split(s)),d={},l=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}(c);try{for(l.s();!(o=l.n()).done;){var f=n(o.value,2),p=f[0],h=f[1];if(p.length!==h.length)return!1;d[h.charAt(0)]=p}}catch(e){l.e(e)}finally{l.f()}var m=d.y;if(m.startsWith("-"))return!1;if(2===d.y.length){var v=parseInt(d.y,10);if(isNaN(v))return!1;m=v<(new Date).getFullYear()%100?"20".concat(d.y):"19".concat(d.y)}var g=d.m;1===d.m.length&&(g="0".concat(d.m));var A=d.d;return 1===d.d.length&&(A="0".concat(d.d)),new Date("".concat(m,"-").concat(g,"-").concat(A,"T00:00:00.000Z")).getUTCDate()===+d.d}var b;if(!t.strictMode)return"[object Date]"===Object.prototype.toString.call(e)&&isFinite(e);return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(qx.exports);function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};e.exports=t.default,e.exports.default=t.default}(rk,rk.exports);var nk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t=(0,r.default)(t,n),"string"==typeof e&&i[t.hourFormat][t.mode].test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(qx.exports);var n={hourFormat:"hour24",mode:"default"},i={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/}};e.exports=t.default,e.exports.default=t.default}(nk,nk.exports);var ik={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;if((0,r.default)(e),t.loose)return o.includes(e.toLowerCase());return i.includes(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n={loose:!1},i=["true","false","1","0"],o=[].concat(i,["yes","no"]);e.exports=t.default,e.exports.default=t.default}(ik,ik.exports);var ok={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),c.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n="(([a-zA-Z]{2,3}(-".concat("([A-Za-z]{3}(-[A-Za-z]{3}){0,2})",")?)|([a-zA-Z]{5,8}))"),i="(".concat("(\\d|[A-W]|[Y-Z]|[a-w]|[y-z])","(-[A-Za-z0-9]{2,8})+)"),o="(x(-[A-Za-z0-9]{1,8})+)",a="(".concat("((en-GB-oed)|(i-ami)|(i-bnn)|(i-default)|(i-enochian)|(i-hak)|(i-klingon)|(i-lux)|(i-mingo)|(i-navajo)|(i-pwn)|(i-tao)|(i-tay)|(i-tsu)|(sgn-BE-FR)|(sgn-BE-NL)|(sgn-CH-DE))","|").concat("((art-lojban)|(cel-gaulish)|(no-bok)|(no-nyn)|(zh-guoyu)|(zh-hakka)|(zh-min)|(zh-min-nan)|(zh-xiang))",")"),s="(-|_)",u="".concat(n,"(").concat(s).concat("([A-Za-z]{4})",")?(").concat(s).concat("([A-Za-z]{2}|\\d{3})",")?(").concat(s).concat("([A-Za-z0-9]{5,8}|(\\d[A-Z-a-z0-9]{3}))",")*(").concat(s).concat(i,")*(").concat(s).concat(o,")?"),c=new RegExp("(^".concat(o,"$)|(^").concat(a,"$)|(^").concat(u,"$)"));e.exports=t.default,e.exports.default=t.default}(ok,ok.exports);var ak={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(e),!n.test(e))return!1;for(var t=0,i=0;i<e.length;i++)t+=i%3==0?3*e[i]:i%3==1?7*e[i]:1*e[i];return t%10==0};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^(?!(1[3-9])|(20)|(3[3-9])|(4[0-9])|(5[0-9])|(60)|(7[3-9])|(8[1-9])|(9[0-2])|(9[3-9]))[0-9]{9}$/;e.exports=t.default,e.exports.default=t.default}(ak,ak.exports);var sk={};Object.defineProperty(sk,"__esModule",{value:!0}),sk.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,uk.default)(e);var n=e,i=r.ignore;if(i)if(i instanceof RegExp)n=n.replace(i,"");else{if("string"!=typeof i)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in ck.alpha)return ck.alpha[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))},sk.locales=void 0;var uk=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports),ck=bx;sk.locales=Object.keys(ck.alpha);var dk={};Object.defineProperty(dk,"__esModule",{value:!0}),dk.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,lk.default)(e);var n=e,i=r.ignore;if(i)if(i instanceof RegExp)n=n.replace(i,"");else{if("string"!=typeof i)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in fk.alphanumeric)return fk.alphanumeric[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))},dk.locales=void 0;var lk=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports),fk=bx;dk.locales=Object.keys(fk.alphanumeric);var pk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t&&t.no_symbols)return i.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?n.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports),n=bx;var i=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default}(pk,pk.exports);var hk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var i=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in n&&n[t].test(i)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{1}\d{8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/,ZA:/^[TAMD]\d{8}$/};e.exports=t.default,e.exports.default=t.default}(hk,hk.exports);var mk={exports:{}},vk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=t||{};var o=!1===t.allow_leading_zeroes?n:i,a=!t.hasOwnProperty("min")||e>=t.min,s=!t.hasOwnProperty("max")||e<=t.max,u=!t.hasOwnProperty("lt")||e<t.lt,c=!t.hasOwnProperty("gt")||e>t.gt;return o.test(e)&&a&&s&&u&&c};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,i=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default}(vk,vk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,{allow_leading_zeroes:!1,min:0,max:65535})};var r=function(e){return e&&e.__esModule?e:{default:e}}(vk.exports);e.exports=t.default,e.exports.default=t.default}(mk,mk.exports);var gk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e===e.toLowerCase()};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);e.exports=t.default,e.exports.default=t.default}(gk,gk.exports);var Ak={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e===e.toUpperCase()};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);e.exports=t.default,e.exports.default=t.default}(Ak,Ak.exports);var bk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=t||{};var o=n;t.allow_hyphens&&(o=i);if(!o.test(e))return!1;e=e.replace(/-/g,"");for(var a=0,s=2,u=0;u<14;u++){var c=e.substring(14-u-1,14-u),d=parseInt(c,10)*s;a+=d>=10?d%10+1:d,1===s?s+=1:s-=1}if((10-a%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^[0-9]{15}$/,i=/^\d{2}-\d{6}-\d{6}-\d{1}$/;e.exports=t.default,e.exports.default=t.default}(bk,bk.exports);var yk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default}(yk,yk.exports);var _k={};Object.defineProperty(_k,"__esModule",{value:!0}),_k.default=function(e){return(0,wk.default)(e),xk.test(e)},_k.fullWidth=void 0;var wk=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var xk=_k.fullWidth=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;var kk={};Object.defineProperty(kk,"__esModule",{value:!0}),kk.default=function(e){return(0,Ek.default)(e),Sk.test(e)},kk.halfWidth=void 0;var Ek=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var Sk=kk.halfWidth=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;var Dk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.fullWidth.test(e)&&i.halfWidth.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports),n=_k,i=kk;e.exports=t.default,e.exports.default=t.default}(Dk,Dk.exports);var Rk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default}(Rk,Rk.exports);var Ik={exports:{}},Ck={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=e.join("");return new RegExp(r,t)},e.exports=t.default,e.exports.default=t.default}(Ck,Ck.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)};var r=n(vx.exports);function n(e){return e&&e.__esModule?e:{default:e}}var i=(0,n(Ck.exports).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");e.exports=t.default,e.exports.default=t.default}(Ik,Ik.exports);var Ok={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default}(Ok,Ok.exports);var Tk={exports:{}},Pk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e,t){return e.some((function(e){return t===e}))},e.exports=t.default,e.exports.default=t.default}(Pk,Pk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t=(0,r.default)(t,s),t.locale in o.decimal)return!(0,i.default)(u,e.replace(/ /g,""))&&function(e){var t=new RegExp("^[-+]?([0-9]+)?(\\".concat(o.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"));return t}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var r=a(qx.exports),n=a(vx.exports),i=a(Pk.exports),o=bx;function a(e){return e&&e.__esModule?e:{default:e}}var s={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},u=["","-","+"];e.exports=t.default,e.exports.default=t.default}(Tk,Tk.exports);var Mk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^(0x|0h)?[0-9A-F]+$/i;e.exports=t.default,e.exports.default=t.default}(Mk,Mk.exports);var Lk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default}(Lk,Lk.exports);var Bk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),(0,n.default)(e)%parseInt(t,10)==0};var r=i(vx.exports),n=i(gx.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(Bk,Bk.exports);var jk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;e.exports=t.default,e.exports.default=t.default}(jk,jk.exports);var Uk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,r.default)(e),!t)return n.test(e)||i.test(e);return n.test(e)||i.test(e)||o.test(e)||a.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,i=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,o=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,a=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;e.exports=t.default,e.exports.default=t.default}(Uk,Uk.exports);var Fk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return n.test(t);return i.test(t)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;e.exports=t.default,e.exports.default=t.default}(Fk,Fk.exports);var Nk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default}(Nk,Nk.exports);var $k={};Object.defineProperty($k,"__esModule",{value:!0}),$k.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,Gk.default)(e),function(e,t){var r=e.replace(/[\s\-]+/gi,"").toUpperCase(),n=r.slice(0,2).toUpperCase(),i=n in Hk;if(t.whitelist){if(!function(e){if(e.filter((function(e){return!(e in Hk)})).length>0)return!1;return!0}(t.whitelist))return!1;if(!t.whitelist.includes(n))return!1}if(t.blacklist){if(t.blacklist.includes(n))return!1}return i&&Hk[n].test(r)}(e,t)&&function(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,(function(e){return e.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(e,t){return Number(e+t)%97}),"")}(e)},$k.locales=void 0;var Gk=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var Hk={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,DZ:/^(DZ\d{24})$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MA:/^(MA[0-9]{26})$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};$k.locales=Object.keys(Hk);var zk={exports:{}},Zk={};Object.defineProperty(Zk,"__esModule",{value:!0}),Zk.CountryCodes=void 0,Zk.default=function(e){return(0,Kk.default)(e),qk.has(e.toUpperCase())};var Kk=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var qk=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);Zk.CountryCodes=qk,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.slice(4,6).toUpperCase();if(!n.CountryCodes.has(t)&&"XK"!==t)return!1;return i.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports),n=Zk;var i=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;e.exports=t.default,e.exports.default=t.default}(zk,zk.exports);var Vk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default}(Vk,Vk.exports);var Wk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),new RegExp("^[a-fA-F0-9]{".concat(n[t],"}$")).test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default}(Wk,Wk.exports);var Yk={exports:{}},Qk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=(0,n.default)(t,s);var i=e.length;if(t.urlSafe)return a.test(e);if(i%4!=0||o.test(e))return!1;var u=e.indexOf("=");return-1===u||u===i-1||u===i-2&&"="===e[i-1]};var r=i(vx.exports),n=i(qx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o=/[^A-Z0-9+\/=]/i,a=/^[A-Z0-9_\-]*$/i,s={urlSafe:!1};e.exports=t.default,e.exports.default=t.default}(Qk,Qk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.split(".");if(3!==t.length)return!1;return t.reduce((function(e,t){return e&&(0,n.default)(t,{urlSafe:!0})}),!0)};var r=i(vx.exports),n=i(Qk.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(Yk,Yk.exports);var Jk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);try{t=(0,n.default)(t,a);var i=[];t.allow_primitives&&(i=[null,!1,!0]);var s=JSON.parse(e);return i.includes(s)||!!s&&"object"===o(s)}catch(e){}return!1};var r=i(vx.exports),n=i(qx.exports);function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="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(e)}var a={allow_primitives:!1};e.exports=t.default,e.exports.default=t.default}(Jk,Jk.exports);var Xk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),t=(0,n.default)(t,o),0===(t.ignore_whitespace?e.trim().length:e.length)};var r=i(vx.exports),n=i(qx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default}(Xk,Xk.exports);var eE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i,o;(0,r.default)(e),"object"===n(t)?(i=t.min||0,o=t.max):(i=arguments[1]||0,o=arguments[2]);var a=e.match(/(\uFE0F|\uFE0E)/g)||[],s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],u=e.length-a.length-s.length;return u>=i&&(void 0===o||u<=o)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);function n(e){return n="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},n(e)}e.exports=t.default,e.exports.default=t.default}(eE,eE.exports);var tE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var i=n[[void 0,null].includes(t)?"all":t];return!!i&&i.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,7:/^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default,e.exports.default=t.default}(tE,tE.exports);var rE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),(0,n.default)(e)&&24===e.length};var r=i(vx.exports),n=i(Mk.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(rE,rE.exports);var nE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(null==t?void 0:t.comparisonDate)||t||Date().toString(),i=(0,r.default)(n),o=(0,r.default)(e);return!!(o&&i&&o>i)};var r=function(e){return e&&e.__esModule?e:{default:e}}(mx.exports);e.exports=t.default,e.exports.default=t.default}(nE,nE.exports);var iE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,r.default)(e);var i=(0,n.default)(t),o=(0,n.default)(e);return!!(o&&i&&o<i)};var r=i(vx.exports),n=i(mx.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(iE,iE.exports);var oE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i;if((0,r.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var a=[];for(i in t)({}).hasOwnProperty.call(t,i)&&(a[i]=(0,n.default)(t[i]));return a.indexOf(e)>=0}if("object"===o(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var r=i(vx.exports),n=i(Kx.exports);function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="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(e)}e.exports=t.default,e.exports.default=t.default}(oE,oE.exports);var aE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);for(var t,n,i,o=e.replace(/[- ]+/g,""),a=0,s=o.length-1;s>=0;s--)t=o.substring(s,s+1),n=parseInt(t,10),a+=i&&(n*=2)>=10?n%10+1:n,i=!i;return!(a%10!=0||!o)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);e.exports=t.default,e.exports.default=t.default}(aE,aE.exports);var sE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var i=t.provider,s=e.replace(/[- ]+/g,"");if(i&&i.toLowerCase()in o){if(!o[i.toLowerCase()].test(s))return!1}else{if(i&&!(i.toLowerCase()in o))throw new Error("".concat(i," is not a valid credit card provider."));if(!a.some((function(e){return e.test(s)})))return!1}return(0,n.default)(e)};var r=i(vx.exports),n=i(aE.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},a=function(){var e=[];for(var t in o)o.hasOwnProperty(t)&&e.push(o[t]);return e}();e.exports=t.default,e.exports.default=t.default}(sE,sE.exports);var uE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t in o)return o[t](e);if("any"===t){for(var n in o){if(o.hasOwnProperty(n))if((0,o[n])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r=i(vx.exports),n=i(vk.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o={PL:function(e){(0,r.default)(e);var t={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(null!=e&&11===e.length&&(0,n.default)(e,{allow_leading_zeroes:!0})){var i=e.split("").slice(0,-1).reduce((function(e,r,n){return e+Number(r)*t[n+1]}),0),o=i%10,a=Number(e.charAt(e.length-1));if(0===o&&0===a||a===10-o)return!0}return!1},ES:function(e){(0,r.default)(e);var t={X:0,Y:1,Z:2},n=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(n))return!1;var i=n.slice(0,-1).replace(/[X,Y,Z]/g,(function(e){return t[e]}));return n.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][i%23])},FI:function(e){if((0,r.default)(e),11!==e.length)return!1;if(!e.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;return"0123456789ABCDEFHJKLMNPRSTUVWXY"[(1e3*parseInt(e.slice(0,6),10)+parseInt(e.slice(7,10),10))%31]===e.slice(10,11)},IN:function(e){var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],r=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],n=e.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(n))return!1;var i=0;return n.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(e,n){i=t[i][r[n%8][e]]})),0===i},IR:function(e){if(!e.match(/^\d{10}$/))return!1;if(e="0000".concat(e).slice(e.length-6),0===parseInt(e.slice(3,9),10))return!1;for(var t=parseInt(e.slice(9,10),10),r=0,n=0;n<9;n++)r+=parseInt(e.slice(n,n+1),10)*(10-n);return(r%=11)<2&&t===r||r>=2&&t===11-r},IT:function(e){return 9===e.length&&("CA00000AA"!==e&&e.search(/C[A-Z]\d{5}[A-Z]{2}/i)>-1)},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var r=t.split("").map(Number),n=(11-(3*r[0]+7*r[1]+6*r[2]+1*r[3]+8*r[4]+9*r[5]+4*r[6]+5*r[7]+2*r[8])%11)%11,i=(11-(5*r[0]+4*r[1]+3*r[2]+2*r[3]+7*r[4]+6*r[5]+5*r[6]+4*r[7]+3*r[8]+2*n)%11)%11;return n===r[9]&&i===r[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,r=0;r<12;r++)t+=parseInt(e[r],10)*(13-r);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var r,n=t,i=0,o=0;o<n.length;o++)i+=(r=Number(n[o])*(o%2+1))>9?r-9:r;return i%10==0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,r=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],n=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],i=["1","0","X","9","8","7","6","5","4","3","2"],o=function(e){return r.includes(e)},a=function(e){var t=parseInt(e.substring(0,4),10),r=parseInt(e.substring(4,6),10),n=parseInt(e.substring(6),10),i=new Date(t,r-1,n);return!(i>new Date)&&(i.getFullYear()===t&&i.getMonth()===r-1&&i.getDate()===n)},s=function(e){return function(e){for(var t=e.substring(0,17),r=0,o=0;o<17;o++)r+=parseInt(t.charAt(o),10)*parseInt(n[o],10);return i[r%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var r=e.substring(0,2);if(!(t=o(r)))return!1;var n="19".concat(e.substring(6,12));return!!(t=a(n))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var r=e.substring(0,2);if(!(t=o(r)))return!1;var n=e.substring(6,14);return!!(t=a(n))&&s(e)}(t))},"zh-HK":function(e){var t=/^[0-9]$/;if(e=(e=e.trim()).toUpperCase(),!/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/.test(e))return!1;8===(e=e.replace(/\[|\]|\(|\)/g,"")).length&&(e="3".concat(e));for(var r=0,n=0;n<=7;n++){r+=(t.test(e[n])?e[n]:(e[n].charCodeAt(0)-55)%11)*(9-n)}return(0===(r%=11)?"0":1===r?"A":String(11-r))===e[e.length-1]},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},r=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(r)&&Array.from(r).reduce((function(e,r,n){if(0===n){var i=t[r];return i%10*9+Math.floor(i/10)}return 9===n?(10-e%10-Number(r))%10==0:e+Number(r)*(9-n)}),0)}};e.exports=t.default,e.exports.default=t.default}(uE,uE.exports);var cE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=Number(e.slice(-1));return o.test(e)&&t===(a=e,s=a.slice(0,-1).split("").map((function(e,t){return Number(e)*function(e,t){return e===n||e===i?t%2==0?3:1:t%2==0?1:3}(a.length,t)})).reduce((function(e,t){return e+t}),0),u=10-s%10,u<10?u:0);var a,s,u};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=8,i=14,o=/^(\d{8}|\d{13}|\d{14})$/;e.exports=t.default,e.exports.default=t.default}(cE,cE.exports);var dE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(e),!n.test(e))return!1;for(var t=!0,i=0,o=e.length-2;o>=0;o--)if(e[o]>="A"&&e[o]<="Z")for(var a=e[o].charCodeAt(0)-55,s=0,u=[a%10,Math.trunc(a/10)];s<u.length;s++){var c=u[s];i+=t?c>=5?1+2*(c-5):2*c:c,t=!t}else{var d=e[o].charCodeAt(0)-"0".charCodeAt(0);i+=t?d>=5?1+2*(d-5):2*d:d,t=!t}var l=10*Math.trunc((i+9)/10)-i;return+e[e.length-1]===l};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default}(dE,dE.exports);var lE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,a){(0,r.default)(t);var s=String((null==a?void 0:a.version)||a);if(!(null!=a&&a.version||a))return e(t,{version:10})||e(t,{version:13});var u=t.replace(/[\s-]+/g,""),c=0;if("10"===s){if(!n.test(u))return!1;for(var d=0;d<s-1;d++)c+=(d+1)*u.charAt(d);if("X"===u.charAt(9)?c+=100:c+=10*u.charAt(9),c%11==0)return!0}else if("13"===s){if(!i.test(u))return!1;for(var l=0;l<12;l++)c+=o[l%2]*u.charAt(l);if(u.charAt(12)-(10-c%10)%10==0)return!0}return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^(?:[0-9]{9}X|[0-9]{10})$/,i=/^(?:[0-9]{13})$/,o=[1,3];e.exports=t.default,e.exports.default=t.default}(lE,lE.exports);var fE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var i=n;if(i=t.require_hyphen?i.replace("?",""):i,i=t.case_sensitive?new RegExp(i):new RegExp(i,"i"),!i.test(e))return!1;for(var o=e.replace("-","").toUpperCase(),a=0,s=0;s<o.length;s++){var u=o[s];a+=("X"===u?10:+u)*(8-s)}return a%11==0};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n="^\\d{4}-?\\d{3}[\\dX]$";e.exports=t.default,e.exports.default=t.default}(fE,fE.exports);var pE={exports:{}},hE={};Object.defineProperty(hE,"__esModule",{value:!0}),hE.iso7064Check=function(e){for(var t=10,r=0;r<e.length-1;r++)t=(parseInt(e[r],10)+t)%10==0?9:(parseInt(e[r],10)+t)%10*2%11;return(t=1===t?0:11-t)===parseInt(e[10],10)},hE.luhnCheck=function(e){for(var t=0,r=!1,n=e.length-1;n>=0;n--){if(r){var i=2*parseInt(e[n],10);t+=i>9?i.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):i}else t+=parseInt(e[n],10);r=!r}return t%10==0},hE.reverseMultiplyAndSum=function(e,t){for(var r=0,n=0;n<e.length;n++)r+=e[n]*(t-n);return r},hE.verhoeffCheck=function(e){for(var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],r=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],n=e.split("").reverse().join(""),i=0,o=0;o<n.length;o++)i=t[i][r[o%8][parseInt(n[o],10)]];return 0===i},function(e,t){function r(e){return 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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,n.default)(e);var r=e.slice(0);if(t in f)return t in m&&(r=r.replace(m[t],"")),!!f[t].test(r)&&(!(t in p)||p[t](r));throw new Error("Invalid locale '".concat(t,"'"))};var n=s(vx.exports),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var u=o?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(i,s,u):i[s]=e[s]}return i.default=e,n&&n.set(e,i),i}(hE),o=s(rk.exports);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e)||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.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d={andover:["10","12"],atlanta:["60","67"],austin:["50","53"],brookhaven:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],cincinnati:["30","32","35","36","37","38","61"],fresno:["15","24"],internet:["20","26","27","45","46","47"],kansas:["40","44"],memphis:["94","95"],ogden:["80","90"],philadelphia:["33","39","41","42","43","46","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],sba:["31"]};function l(e){for(var t=!1,r=!1,n=0;n<3;n++)if(!t&&/[AEIOU]/.test(e[n]))t=!0;else if(!r&&t&&"X"===e[n])r=!0;else if(n>0){if(t&&!r&&!/[AEIOU]/.test(e[n]))return!1;if(r&&!/X/.test(e[n]))return!1}return!0}var f={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-AR":/(20|23|24|27|30|33|34)[0-9]{8}[0-9]/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/,"uk-UA":/^\d{10}$/};f["lb-LU"]=f["fr-LU"],f["lt-LT"]=f["et-EE"],f["nl-BE"]=f["fr-BE"],f["fr-CA"]=f["en-CA"];var p={"bg-BG":function(e){var t=e.slice(0,2),r=parseInt(e.slice(2,4),10);r>40?(r-=40,t="20".concat(t)):r>20?(r-=20,t="18".concat(t)):t="19".concat(t),r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,o.default)(n,"YYYY/MM/DD"))return!1;for(var i=e.split("").map((function(e){return parseInt(e,10)})),a=[2,4,8,5,10,9,7,3,6],s=0,u=0;u<a.length;u++)s+=i[u]*a[u];return(s=s%11==10?0:s%11)===i[9]},"cs-CZ":function(e){e=e.replace(/\W/,"");var t=parseInt(e.slice(0,2),10);if(10===e.length)t=t<54?"20".concat(t):"19".concat(t);else{if("000"===e.slice(6))return!1;if(!(t<54))return!1;t="19".concat(t)}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var r=parseInt(e.slice(2,4),10);if(r>50&&(r-=50),r>20){if(parseInt(t,10)<2004)return!1;r-=20}r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,o.default)(n,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var i=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===i))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return i.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=[],n=0;n<t.length-1;n++){r.push("");for(var o=0;o<t.length-1;o++)t[n]===t[o]&&(r[n]+=o)}if(2!==(r=r.filter((function(e){return e.length>1}))).length&&3!==r.length)return!1;if(3===r[0].length){for(var a=r[0].split("").map((function(e){return parseInt(e,10)})),s=0,u=0;u<a.length-1;u++)a[u]+1===a[u+1]&&(s+=1);if(2===s)return!1}return i.iso7064Check(e)},"dk-DK":function(e){e=e.replace(/\W/,"");var t=parseInt(e.slice(4,6),10);switch(e.slice(6,7)){case"0":case"1":case"2":case"3":t="19".concat(t);break;case"4":case"9":t=t<37?"20".concat(t):"19".concat(t);break;default:if(t<37)t="20".concat(t);else{if(!(t>58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var r="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,o.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),i=0,a=4,s=0;s<9;s++)i+=n[s]*a,1===(a-=1)&&(a=7);return 1!==(i%=11)&&(0===i?0===n[9]:n[9]===11-i)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),r=0,n=1;n<t.length;n+=2)r+=t[n];for(var i=0;i<t.length;i+=2)t[i]<2?r+=1-t[i]:(r+=2*(t[i]-2)+5,t[i]>4&&(r+=2));return String.fromCharCode(r%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=0,n=0;n<8;n++)r+=t[n]*Math.pow(2,8-n);return r%11%10===t[8]},"en-CA":function(e){var t=e.split(""),r=t.filter((function(e,t){return t%2})).map((function(e){return 2*Number(e)})).join("").split(""),n=t.filter((function(e,t){return!(t%2)})).concat(r).map((function(e){return Number(e)})).reduce((function(e,t){return e+t}));return n%10==0},"en-IE":function(e){var t=i.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0===(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in d)d.hasOwnProperty(t)&&e.push.apply(e,u(d[t]));return e}().indexOf(e.slice(0,2))},"es-AR":function(e){for(var t=0,r=e.split(""),n=parseInt(r.pop(),10),i=0;i<r.length;i++)t+=r[9-i]*(2+i%6);var o=11-t%11;return 11===o?o=0:10===o&&(o=9),n===o},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var r=0;switch(t[0]){case"Y":r=1;break;case"Z":r=2}t.splice(0,1,r)}else for(;t.length<9;)t.unshift(0);t=t.join("");var n=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][n]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,o.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),i=0,a=1,s=0;s<10;s++)i+=n[s]*a,10===(a+=1)&&(a=1);if(i%11==10){i=0,a=3;for(var u=0;u<10;u++)i+=n[u]*a,10===(a+=1)&&(a=1);if(i%11==10)return 0===n[10]}return i%11===n[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,o.default)(r,"YYYY/MM/DD"))return!1;var n=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return n<10?n===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][n-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,o.default)(t,"YY/MM/DD"))return!1}var r=97-parseInt(e.slice(0,9),10)%97,n=parseInt(e.slice(9,11),10);return r===n||(r=97-parseInt("2".concat(e.slice(0,9)),10)%97)===n},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,o.default)(t,"YYYY/MM/DD")&&(!!i.luhnCheck(e.slice(0,12))&&i.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return i.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=8,n=1;n<9;n++)r+=t[n]*(n+1);return r%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!l(t.slice(0,3)))return!1;if(!l(t.slice(3,6)))return!1;for(var r={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},n=0,i=[6,7,9,10,12,13,14];n<i.length;n++){var a=i[n];t[a]in r&&t.splice(a,1,r[t[a]])}var s={A:"01",B:"02",C:"03",D:"04",E:"05",H:"06",L:"07",M:"08",P:"09",R:"10",S:"11",T:"12"}[t[8]],u=parseInt(t[9]+t[10],10);u>40&&(u-=40),u<10&&(u="0".concat(u));var c="".concat(t[6]).concat(t[7],"/").concat(s,"/").concat(u);if(!(0,o.default)(c,"YY/MM/DD"))return!1;for(var d=0,f=1;f<t.length-1;f+=2){var p=parseInt(t[f],10);isNaN(p)&&(p=t[f].charCodeAt(0)-65),d+=p}for(var h={A:1,B:0,C:5,D:7,E:9,F:13,G:15,H:17,I:19,J:21,K:2,L:4,M:18,N:20,O:11,P:3,Q:6,R:8,S:12,T:14,U:16,V:10,W:22,X:25,Y:24,Z:23,0:1,1:0},m=0;m<t.length-1;m+=2){var v=0;if(t[m]in h)v=h[t[m]];else{var g=parseInt(t[m],10);v=2*g+1,g>4&&(v+=2)}d+=v}return String.fromCharCode(65+d%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var r=e.slice(4,6);switch(e[6]){case"0":r="18".concat(r);break;case"1":r="19".concat(r);break;default:r="20".concat(r)}var n="".concat(r,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,o.default)(n,"YYYY/MM/DD"))return!1}for(var i=1101,a=[1,6,3,7,9,10,5,8,4,2],s=0;s<e.length-1;s++)i-=parseInt(e[s],10)*a[s];return parseInt(e[10],10)===i%11}return!0},"mt-MT":function(e){if(9!==e.length){for(var t=e.toUpperCase().split("");t.length<8;)t.unshift(0);switch(e[7]){case"A":case"P":if(0===parseInt(t[6],10))return!1;break;default:var r=parseInt(t.join("").slice(0,5),10);if(r>32e3)return!1;if(r===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return i.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],r=0,n=0;n<t.length;n++)r+=parseInt(e[n],10)*t[n];return 10!==(r%=11)&&r===parseInt(e[9],10)}var i=e.slice(0,2),a=parseInt(e.slice(2,4),10);a>80?(i="18".concat(i),a-=80):a>60?(i="22".concat(i),a-=60):a>40?(i="21".concat(i),a-=40):a>20?(i="20".concat(i),a-=20):i="19".concat(i),a<10&&(a="0".concat(a));var s="".concat(i,"/").concat(a,"/").concat(e.slice(4,6));if(!(0,o.default)(s,"YYYY/MM/DD"))return!1;for(var u=0,c=1,d=0;d<e.length-1;d++)u+=parseInt(e[d],10)*c%10,(c+=2)>10?c=1:5===c&&(c+=2);return(u=10-u%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,r;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var n=1;n<=9;n++)t+=parseInt(e.substring(n-1,n),10)*(11-n);if(10===(r=10*t%11)&&(r=0),r!==parseInt(e.substring(9,10),10))return!1;t=0;for(var i=1;i<=10;i++)t+=parseInt(e.substring(i-1,i),10)*(12-i);return 10===(r=10*t%11)&&(r=0),r===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var o=e.length-2,a=e.substring(0,o),s=e.substring(o),u=0,c=o-7,d=o;d>=1;d--)u+=a.charAt(o-d)*c,(c-=1)<2&&(c=9);var l=u%11<2?0:11-u%11;if(l!==parseInt(s.charAt(0),10))return!1;o+=1,a=e.substring(0,o),u=0,c=o-7;for(var f=o;f>=1;f--)u+=a.charAt(o-f)*c,(c-=1)<2&&(c=9);return(l=u%11<2?0:11-u%11)===parseInt(s.charAt(1),10)},"pt-PT":function(e){var t=11-i.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var r="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===r.length){if(!(0,o.default)(r,"YY/MM/DD"))return!1}else if(!(0,o.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),i=[2,7,9,1,4,6,3,5,8,2,7,9],a=0,s=0;s<i.length;s++)a+=n[s]*i[s];return a%11==10?1===n[12]:n[12]===a%11}return!0},"sk-SK":function(e){if(9===e.length){if("000"===(e=e.replace(/\W/,"")).slice(6))return!1;var t=parseInt(e.slice(0,2),10);if(t>53)return!1;t=t<10?"190".concat(t):"19".concat(t);var r=parseInt(e.slice(2,4),10);r>50&&(r-=50),r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,o.default)(n,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-i.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var r="",n=t.slice(2,4),a=parseInt(t.slice(4,6),10);if(e.length>11)r=e.slice(0,4);else if(r=e.slice(0,2),11===e.length&&a<60){var s=(new Date).getFullYear().toString(),u=parseInt(s.slice(0,2),10);if(s=parseInt(s,10),"-"===e[6])r=parseInt("".concat(u).concat(r),10)>s?"".concat(u-1).concat(r):"".concat(u).concat(r);else if(r="".concat(u-1).concat(r),s-parseInt(r,10)<100)return!1}a>60&&(a-=60),a<10&&(a="0".concat(a));var c="".concat(r,"/").concat(n,"/").concat(a);if(8===c.length){if(!(0,o.default)(c,"YY/MM/DD"))return!1}else if(!(0,o.default)(c,"YYYY/MM/DD"))return!1;return i.luhnCheck(e.replace(/\W/,""))},"uk-UA":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=[-1,5,7,9,4,6,10,5,7],n=0,i=0;i<r.length;i++)n+=t[i]*r[i];return n%11==10?0===t[9]:t[9]===n%11}};p["lb-LU"]=p["fr-LU"],p["lt-LT"]=p["et-EE"],p["nl-BE"]=p["fr-BE"],p["fr-CA"]=p["en-CA"];var h=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,m={"de-AT":h,"de-DE":/[\/\\]/g,"fr-BE":h};m["nl-BE"]=m["fr-BE"],e.exports=t.default,e.exports.default=t.default}(pE,pE.exports);var mE={};Object.defineProperty(mE,"__esModule",{value:!0}),mE.default=function(e,t,r){if((0,vE.default)(e),r&&r.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(gE.hasOwnProperty(t)&&gE[t].test(e))return!0;return!1}));if(t in gE)return gE[t].test(e);if(!t||"any"===t){for(var n in gE){if(gE.hasOwnProperty(n))if(gE[n].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},mE.locales=void 0;var vE=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var gE={"am-AM":/^(\+?374|0)(33|4[134]|55|77|88|9[13-689])\d{6}$/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SD":/^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"fr-CF":/^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-MW":/^(\+?265|0)(((77|88|31|99|98|21)\d{7})|(((111)|1)\d{6})|(32000\d{4}))$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}$/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"fr-WF":/^(\+681)?\d{6}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"so-SO":/^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};gE["en-CA"]=gE["en-US"],gE["fr-CA"]=gE["en-CA"],gE["fr-BE"]=gE["nl-BE"],gE["zh-HK"]=gE["en-HK"],gE["zh-MO"]=gE["en-MO"],gE["ga-IE"]=gE["en-IE"],gE["fr-CH"]=gE["de-CH"],gE["it-CH"]=gE["fr-CH"],mE.locales=Object.keys(gE);var AE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default}(AE,AE.exports);var bE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),t=(0,r.default)(t,o),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,r){0!==r&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var r="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),n="-?",i="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),o="(".concat(["0","[1-9]\\d*",i].join("|"),")?"),a="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),s=o+(e.allow_decimal||e.require_decimal?a:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?s+=n:e.negative_sign_before_digits&&(s=n+s));e.allow_negative_sign_placeholder?s="( (?!\\-))?".concat(s):e.allow_space_after_symbol?s=" ?".concat(s):e.allow_space_after_digits&&(s+="( (?!$))?");e.symbol_after_digits?s+=r:s=r+s;e.allow_negatives&&(e.parens_for_negatives?s="(\\(".concat(s,"\\)|").concat(s,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(s=n+s));return new RegExp("^(?!-? )(?=.*\\d)".concat(s,"$"))}(t).test(e)};var r=i(qx.exports),n=i(vx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};e.exports=t.default,e.exports.default=t.default}(bE,bE.exports);var yE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)||i.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^(bc1)[a-z0-9]{25,39}$/,i=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default}(yE,yE.exports);var _E={};Object.defineProperty(_E,"__esModule",{value:!0}),_E.isFreightContainerID=void 0,_E.isISO6346=EE;var wE=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var xE=/^[A-Z]{3}(U[0-9]{7})|([J,Z][0-9]{6,7})$/,kE=/^[0-9]$/;function EE(e){if((0,wE.default)(e),e=e.toUpperCase(),!xE.test(e))return!1;if(11===e.length){for(var t=0,r=0;r<e.length-1;r++)if(kE.test(e[r]))t+=e[r]*Math.pow(2,r);else{var n=e.charCodeAt(r)-55;t+=(n<11?n:n>=11&&n<=20?12+n%11:n>=21&&n<=30?23+n%21:34+n%31)*Math.pow(2,r)}var i=t%11;return Number(e[e.length-1])===i}return!0}_E.isFreightContainerID=EE;var SE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.has(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);e.exports=t.default,e.exports.default=t.default}(SE,SE.exports);var DE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var a=t.strictSeparator?i.test(e):n.test(e);return a&&t.strict?o(e):a};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,o=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var r=Number(t[1]),n=Number(t[2]);return r%4==0&&r%100!=0||r%400==0?n<=366:n<=365}var i=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),o=i[1],a=i[2],s=i[3],u=a?"0".concat(a).slice(-2):a,c=s?"0".concat(s).slice(-2):s,d=new Date("".concat(o,"-").concat(u||"01","-").concat(c||"01"));return!a||!s||d.getUTCFullYear()===o&&d.getUTCMonth()+1===a&&d.getUTCDate()===s};e.exports=t.default,e.exports.default=t.default}(DE,DE.exports);var RE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),d.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/([01][0-9]|2[0-3])/,i=/[0-5][0-9]/,o=new RegExp("[-+]".concat(n.source,":").concat(i.source)),a=new RegExp("([zZ]|".concat(o.source,")")),s=new RegExp("".concat(n.source,":").concat(i.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),u=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),c=new RegExp("".concat(s.source).concat(a.source)),d=new RegExp("^".concat(u.source,"[ tT]").concat(c.source,"$"));e.exports=t.default,e.exports.default=t.default}(RE,RE.exports);var IE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.has(e.toUpperCase())};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);e.exports=t.default,e.exports.default=t.default}(IE,IE.exports);var CE={};Object.defineProperty(CE,"__esModule",{value:!0}),CE.CurrencyCodes=void 0,CE.default=function(e){return(0,OE.default)(e),TE.has(e.toUpperCase())};var OE=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var TE=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLE","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);CE.CurrencyCodes=TE;var PE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t=(0,n.default)(t,s),t.crockford)return a.test(e);var i=e.length;if(i%8==0&&o.test(e))return!0;return!1};var r=i(vx.exports),n=i(qx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o=/^[A-Z2-7]+=*$/,a=/^[A-HJKMNP-TV-Z0-9]+$/,s={crockford:!1};e.exports=t.default,e.exports.default=t.default}(PE,PE.exports);var ME={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(e),n.test(e))return!0;return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^[A-HJ-NP-Za-km-z1-9]*$/;e.exports=t.default,e.exports.default=t.default}(ME,ME.exports);var LE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.split(",");if(t.length<2)return!1;var a=t.shift().trim().split(";"),s=a.shift();if("data:"!==s.slice(0,5))return!1;var u=s.slice(5);if(""!==u&&!n.test(u))return!1;for(var c=0;c<a.length;c++)if((c!==a.length-1||"base64"!==a[c].toLowerCase())&&!i.test(a[c]))return!1;for(var d=0;d<t.length;d++)if(!o.test(t[d]))return!1;return!0};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,i=/^[a-z\-]+=[a-z0-9\-]+$/i,o=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;e.exports=t.default,e.exports.default=t.default}(LE,LE.exports);var BE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(e),0!==e.indexOf("magnet:?"))return!1;return n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;e.exports=t.default,e.exports.default=t.default}(BE,BE.exports);var jE={exports:{}},UE={exports:{}},FE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t){var n=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(n,"")}var i=e.length-1;for(;/\s/.test(e.charAt(i));)i-=1;return e.slice(0,i+1)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);e.exports=t.default,e.exports.default=t.default}(FE,FE.exports);var NE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var n=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(n,"")};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);e.exports=t.default,e.exports.default=t.default}(NE,NE.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)((0,n.default)(e,t),t)};var r=i(FE.exports),n=i(NE.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(UE,UE.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.default)(e),0!==e.indexOf("mailto:"))return!1;var o=a(e.replace("mailto:","").split("?"),2),u=o[0],c=o[1],d=void 0===c?"":c;if(!u&&!d)return!0;var l=function(e){var t=new Set(["subject","body","cc","bcc"]),r={cc:"",bcc:""},n=!1,i=e.split("&");if(i.length>4)return!1;var o,u=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=s(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}(i);try{for(u.s();!(o=u.n()).done;){var c=a(o.value.split("="),2),d=c[0],l=c[1];if(d&&!t.has(d)){n=!0;break}!l||"cc"!==d&&"bcc"!==d||(r[d]=l),d&&t.delete(d)}}catch(e){u.e(e)}finally{u.f()}return!n&&r}(d);if(!l)return!1;return"".concat(u,",").concat(l.cc,",").concat(l.bcc).split(",").every((function(e){return!(e=(0,r.default)(e," "))||(0,n.default)(e,t)}))};var r=o(UE.exports),n=o(Wx.exports),i=o(vx.exports);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}e.exports=t.default,e.exports.default=t.default}(jE,jE.exports);var $E={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)||i.test(e)||o.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,i=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,o=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;e.exports=t.default,e.exports.default=t.default}($E,$E.exports);var GE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t=(0,n.default)(t,c),!e.includes(","))return!1;var i=e.split(",");if(i[0].startsWith("(")&&!i[1].endsWith(")")||i[1].endsWith(")")&&!i[0].startsWith("("))return!1;if(t.checkDMS)return s.test(i[0])&&u.test(i[1]);return o.test(i[0])&&a.test(i[1])};var r=i(vx.exports),n=i(qx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,a=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,s=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,u=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,c={checkDMS:!1};e.exports=t.default,e.exports.default=t.default}(GE,GE.exports);var HE={};Object.defineProperty(HE,"__esModule",{value:!0}),HE.default=function(e,t){if((0,zE.default)(e),t in WE)return WE[t].test(e);if("any"===t){for(var r in WE){if(WE.hasOwnProperty(r))if(WE[r].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},HE.locales=void 0;var zE=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var ZE=/^\d{3}$/,KE=/^\d{4}$/,qE=/^\d{5}$/,VE=/^\d{6}$/,WE={AD:/^AD\d{3}$/,AT:KE,AU:KE,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:KE,BG:KE,BR:/^\d{5}-\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:KE,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:qE,DK:KE,DO:qE,DZ:qE,EE:qE,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:qE,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:KE,ID:qE,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:ZE,IT:qE,JP:/^\d{3}\-\d{4}$/,KE:qE,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:KE,LV:/^LV\-\d{4}$/,LK:qE,MG:ZE,MX:qE,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:qE,NL:/^[1-9]\d{3}\s?(?!sa|sd|ss)[a-z]{2}$/i,NO:KE,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:KE,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:VE,RU:VE,SA:qE,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:VE,SI:KE,SK:/^\d{3}\s?\d{2}$/,TH:qE,TN:KE,TW:/^\d{3}(\d{2})?$/,UA:qE,US:/^\d{5}(-\d{4})?$/,ZA:KE,ZM:qE};HE.locales=Object.keys(WE);var YE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\//g,"&#x2F;").replace(/\\/g,"&#x5C;").replace(/`/g,"&#96;")};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);e.exports=t.default,e.exports.default=t.default}(YE,YE.exports);var QE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e.replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&#x2F;/g,"/").replace(/&#x5C;/g,"\\").replace(/&#96;/g,"`").replace(/&amp;/g,"&")};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);e.exports=t.default,e.exports.default=t.default}(QE,QE.exports);var JE={exports:{}},XE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e.replace(new RegExp("[".concat(t,"]+"),"g"),"")};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);e.exports=t.default,e.exports.default=t.default}(XE,XE.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var i=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,n.default)(e,i)};var r=i(vx.exports),n=i(XE.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(JE,JE.exports);var eS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);e.exports=t.default,e.exports.default=t.default}(eS,eS.exports);var tS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);for(var n=e.length-1;n>=0;n--)if(-1===t.indexOf(e[n]))return!1;return!0};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);e.exports=t.default,e.exports.default=t.default}(tS,tS.exports);var rS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,r.default)(t,n);var c=e.split("@"),d=c.pop(),l=[c.join("@"),d];if(l[1]=l[1].toLowerCase(),"gmail.com"===l[1]||"googlemail.com"===l[1]){if(t.gmail_remove_subaddress&&(l[0]=l[0].split("+")[0]),t.gmail_remove_dots&&(l[0]=l[0].replace(/\.+/g,u)),!l[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(l[0]=l[0].toLowerCase()),l[1]=t.gmail_convert_googlemaildotcom?"gmail.com":l[1]}else if(i.indexOf(l[1])>=0){if(t.icloud_remove_subaddress&&(l[0]=l[0].split("+")[0]),!l[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(l[0]=l[0].toLowerCase())}else if(o.indexOf(l[1])>=0){if(t.outlookdotcom_remove_subaddress&&(l[0]=l[0].split("+")[0]),!l[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(l[0]=l[0].toLowerCase())}else if(a.indexOf(l[1])>=0){if(t.yahoo_remove_subaddress){var f=l[0].split("-");l[0]=f.length>1?f.slice(0,-1).join("-"):f[0]}if(!l[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(l[0]=l[0].toLowerCase())}else s.indexOf(l[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(l[0]=l[0].toLowerCase()),l[1]="yandex.ru"):t.all_lowercase&&(l[0]=l[0].toLowerCase());return l.join("@")};var r=function(e){return e&&e.__esModule?e:{default:e}}(qx.exports);var n={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},i=["icloud.com","me.com"],o=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],a=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],s=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function u(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default}(rS,rS.exports);var nS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;e.exports=t.default,e.exports.default=t.default}(nS,nS.exports);var iS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t in n)return n[t](e);if("any"===t){for(var i in n){if((0,n[i])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports);var n={"cs-CZ":function(e){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"en-IN":function(e){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(e)},"es-AR":function(e){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"hu-HU":function(e){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)},"pt-PT":function(e){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"sv-SE":function(e){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(e.trim())},"en-PK":function(e){return/(^[A-Z]{2}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{3}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{4}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]((\s|-){0,1})[0-9]{4}((\s|-)[0-9]{2}){0,1}$)/.test(e.trim())}};e.exports=t.default,e.exports.default=t.default}(iS,iS.exports);var oS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,n.default)(e);var i=function(e){var t=function(e){var t={};return Array.from(e).forEach((function(e){t[e]?t[e]+=1:t[e]=1})),t}(e),r={length:e.length,uniqueChars:Object.keys(t).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(t).forEach((function(e){o.test(e)?r.uppercaseCount+=t[e]:a.test(e)?r.lowercaseCount+=t[e]:s.test(e)?r.numberCount+=t[e]:u.test(e)&&(r.symbolCount+=t[e])})),r}(e);if(t=(0,r.default)(t||{},c),t.returnScore)return function(e,t){var r=0;r+=e.uniqueChars*t.pointsPerUnique,r+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(r+=t.pointsForContainingLower);e.uppercaseCount>0&&(r+=t.pointsForContainingUpper);e.numberCount>0&&(r+=t.pointsForContainingNumber);e.symbolCount>0&&(r+=t.pointsForContainingSymbol);return r}(i,t);return i.length>=t.minLength&&i.lowercaseCount>=t.minLowercase&&i.uppercaseCount>=t.minUppercase&&i.numberCount>=t.minNumbers&&i.symbolCount>=t.minSymbols};var r=i(qx.exports),n=i(vx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var o=/^[A-Z]$/,a=/^[a-z]$/,s=/^[0-9]$/,u=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/\\ ]$/,c={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};e.exports=t.default,e.exports.default=t.default}(oS,oS.exports);var aS={};function sS(e){return sS="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},sS(e)}Object.defineProperty(aS,"__esModule",{value:!0}),aS.default=function(e,t){if((0,uS.default)(e),(0,uS.default)(t),t in lS)return lS[t](e);throw new Error("Invalid country code: '".concat(t,"'"))},aS.vatMatchers=void 0;var uS=function(e){return e&&e.__esModule?e:{default:e}}(vx.exports),cS=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=sS(e)&&"function"!=typeof e)return{default:e};var r=dS(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(hE);function dS(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(dS=function(e){return e?r:t})(e)}var lS=aS.vatMatchers={AT:function(e){return/^(AT)?U\d{8}$/.test(e)},BE:function(e){return/^(BE)?\d{10}$/.test(e)},BG:function(e){return/^(BG)?\d{9,10}$/.test(e)},HR:function(e){return/^(HR)?\d{11}$/.test(e)},CY:function(e){return/^(CY)?\w{9}$/.test(e)},CZ:function(e){return/^(CZ)?\d{8,10}$/.test(e)},DK:function(e){return/^(DK)?\d{8}$/.test(e)},EE:function(e){return/^(EE)?\d{9}$/.test(e)},FI:function(e){return/^(FI)?\d{8}$/.test(e)},FR:function(e){return/^(FR)?\w{2}\d{9}$/.test(e)},DE:function(e){return/^(DE)?\d{9}$/.test(e)},EL:function(e){return/^(EL)?\d{9}$/.test(e)},HU:function(e){return/^(HU)?\d{8}$/.test(e)},IE:function(e){return/^(IE)?\d{7}\w{1}(W)?$/.test(e)},IT:function(e){return/^(IT)?\d{11}$/.test(e)},LV:function(e){return/^(LV)?\d{11}$/.test(e)},LT:function(e){return/^(LT)?\d{9,12}$/.test(e)},LU:function(e){return/^(LU)?\d{8}$/.test(e)},MT:function(e){return/^(MT)?\d{8}$/.test(e)},NL:function(e){return/^(NL)?\d{9}B\d{2}$/.test(e)},PL:function(e){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(e)},PT:function(e){var t=e.match(/^(PT)?(\d{9})$/);if(!t)return!1;var r=t[2],n=11-cS.reverseMultiplyAndSum(r.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return n>9?0===parseInt(r[8],10):n===parseInt(r[8],10)},RO:function(e){return/^(RO)?\d{2,10}$/.test(e)},SK:function(e){return/^(SK)?\d{10}$/.test(e)},SI:function(e){return/^(SI)?\d{8}$/.test(e)},ES:function(e){return/^(ES)?\w\d{7}[A-Z]$/.test(e)},SE:function(e){return/^(SE)?\d{12}$/.test(e)},AL:function(e){return/^(AL)?\w{9}[A-Z]$/.test(e)},MK:function(e){return/^(MK)?\d{13}$/.test(e)},AU:function(e){if(!e.match(/^(AU)?(\d{11})$/))return!1;var t=[10,1,3,5,7,9,11,13,15,17,19];e=e.replace(/^AU/,"");for(var r=(parseInt(e.slice(0,1),10)-1).toString()+e.slice(1),n=0,i=0;i<11;i++)n+=t[i]*r.charAt(i);return 0!==n&&n%89==0},BY:function(e){return/^(УНП )?\d{9}$/.test(e)},CA:function(e){return/^(CA)?\d{9}$/.test(e)},IS:function(e){return/^(IS)?\d{5,6}$/.test(e)},IN:function(e){return/^(IN)?\d{15}$/.test(e)},ID:function(e){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(e)},IL:function(e){return/^(IL)?\d{9}$/.test(e)},KZ:function(e){return/^(KZ)?\d{12}$/.test(e)},NZ:function(e){return/^(NZ)?\d{9}$/.test(e)},NG:function(e){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(e)},NO:function(e){return/^(NO)?\d{9}MVA$/.test(e)},PH:function(e){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(e)},RU:function(e){return/^(RU)?(\d{10}|\d{12})$/.test(e)},SM:function(e){return/^(SM)?\d{5}$/.test(e)},SA:function(e){return/^(SA)?\d{15}$/.test(e)},RS:function(e){return/^(RS)?\d{9}$/.test(e)},CH:function(e){var t,r,n;return/^(CHE[- ]?)?(\d{9}|(\d{3}\.\d{3}\.\d{3})|(\d{3} \d{3} \d{3})) ?(TVA|MWST|IVA)?$/.test(e)&&(t=e.match(/\d/g).map((function(e){return+e})),r=t.pop(),n=[5,4,3,2,7,6,5,4],r===(11-t.reduce((function(e,t,r){return e+t*n[r]}),0)%11)%11)},TR:function(e){return/^(TR)?\d{10}$/.test(e)},UA:function(e){return/^(UA)?\d{12}$/.test(e)},GB:function(e){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(e)},UZ:function(e){return/^(UZ)?\d{9}$/.test(e)},AR:function(e){return/^(AR)?\d{11}$/.test(e)},BO:function(e){return/^(BO)?\d{7}$/.test(e)},BR:function(e){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(e)},CL:function(e){return/^(CL)?\d{8}-\d{1}$/.test(e)},CO:function(e){return/^(CO)?\d{10}$/.test(e)},CR:function(e){return/^(CR)?\d{9,12}$/.test(e)},EC:function(e){return/^(EC)?\d{13}$/.test(e)},SV:function(e){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(e)},GT:function(e){return/^(GT)?\d{7}-\d{1}$/.test(e)},HN:function(e){return/^(HN)?$/.test(e)},MX:function(e){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(e)},NI:function(e){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(e)},PA:function(e){return/^(PA)?$/.test(e)},PY:function(e){return/^(PY)?\d{6,8}-\d{1}$/.test(e)},PE:function(e){return/^(PE)?\d{11}$/.test(e)},DO:function(e){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(e)},UY:function(e){return/^(UY)?\d{12}$/.test(e)},VE:function(e){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(e)}};!function(e,t){function r(e){return 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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=Ye(mx.exports),i=Ye(gx.exports),o=Ye(Gx.exports),a=Ye(Hx.exports),s=Ye(zx.exports),u=Ye(Zx.exports),c=Ye(Vx.exports),d=Ye(Wx.exports),l=Ye(Xx.exports),f=Ye(ek.exports),p=Ye(Jx.exports),h=Ye(tk.exports),m=Ye(Qx.exports),v=Ye(rk.exports),g=Ye(nk.exports),A=Ye(ik.exports),b=Ye(ok.exports),y=Ye(ak.exports),_=We(sk),w=We(dk),x=Ye(pk.exports),k=Ye(hk.exports),E=Ye(mk.exports),S=Ye(gk.exports),D=Ye(Ak.exports),R=Ye(bk.exports),I=Ye(yk.exports),C=Ye(_k),O=Ye(kk),T=Ye(Dk.exports),P=Ye(Rk.exports),M=Ye(Ik.exports),L=Ye(Ok.exports),B=Ye(vk.exports),j=We(Ax),U=Ye(Tk.exports),F=Ye(Mk.exports),N=Ye(Lk.exports),$=Ye(Bk.exports),G=Ye(jk.exports),H=Ye(Uk.exports),z=Ye(Fk.exports),Z=Ye(Nk.exports),K=We($k),q=Ye(zk.exports),V=Ye(Vk.exports),W=Ye(Wk.exports),Y=Ye(Yk.exports),Q=Ye(Jk.exports),J=Ye(Xk.exports),X=Ye(eE.exports),ee=Ye(Yx.exports),te=Ye(tE.exports),re=Ye(rE.exports),ne=Ye(nE.exports),ie=Ye(iE.exports),oe=Ye(oE.exports),ae=Ye(aE.exports),se=Ye(sE.exports),ue=Ye(uE.exports),ce=Ye(cE.exports),de=Ye(dE.exports),le=Ye(lE.exports),fe=Ye(fE.exports),pe=Ye(pE.exports),he=We(mE),me=Ye(AE.exports),ve=Ye(bE.exports),ge=Ye(yE.exports),Ae=_E,be=Ye(SE.exports),ye=Ye(DE.exports),_e=Ye(RE.exports),we=Ye(Zk),xe=Ye(IE.exports),ke=Ye(CE),Ee=Ye(PE.exports),Se=Ye(ME.exports),De=Ye(Qk.exports),Re=Ye(LE.exports),Ie=Ye(BE.exports),Ce=Ye(jE.exports),Oe=Ye($E.exports),Te=Ye(GE.exports),Pe=We(HE),Me=Ye(NE.exports),Le=Ye(FE.exports),Be=Ye(UE.exports),je=Ye(YE.exports),Ue=Ye(QE.exports),Fe=Ye(JE.exports),Ne=Ye(eS.exports),$e=Ye(XE.exports),Ge=Ye(tS.exports),He=Ye(rS.exports),ze=Ye(nS.exports),Ze=Ye(iS.exports),Ke=Ye(oS.exports),qe=Ye(aS);function Ve(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Ve=function(e){return e?r:t})(e)}function We(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=Ve(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&{}.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}function Ye(e){return e&&e.__esModule?e:{default:e}}var Qe={version:"13.12.0",toDate:n.default,toFloat:i.default,toInt:o.default,toBoolean:a.default,equals:s.default,contains:u.default,matches:c.default,isEmail:d.default,isURL:l.default,isMACAddress:f.default,isIP:p.default,isIPRange:h.default,isFQDN:m.default,isBoolean:A.default,isIBAN:K.default,isBIC:q.default,isAbaRouting:y.default,isAlpha:_.default,isAlphaLocales:_.locales,isAlphanumeric:w.default,isAlphanumericLocales:w.locales,isNumeric:x.default,isPassportNumber:k.default,isPort:E.default,isLowercase:S.default,isUppercase:D.default,isAscii:I.default,isFullWidth:C.default,isHalfWidth:O.default,isVariableWidth:T.default,isMultibyte:P.default,isSemVer:M.default,isSurrogatePair:L.default,isInt:B.default,isIMEI:R.default,isFloat:j.default,isFloatLocales:j.locales,isDecimal:U.default,isHexadecimal:F.default,isOctal:N.default,isDivisibleBy:$.default,isHexColor:G.default,isRgbColor:H.default,isHSL:z.default,isISRC:Z.default,isMD5:V.default,isHash:W.default,isJWT:Y.default,isJSON:Q.default,isEmpty:J.default,isLength:X.default,isLocale:b.default,isByteLength:ee.default,isUUID:te.default,isMongoId:re.default,isAfter:ne.default,isBefore:ie.default,isIn:oe.default,isLuhnNumber:ae.default,isCreditCard:se.default,isIdentityCard:ue.default,isEAN:ce.default,isISIN:de.default,isISBN:le.default,isISSN:fe.default,isMobilePhone:he.default,isMobilePhoneLocales:he.locales,isPostalCode:Pe.default,isPostalCodeLocales:Pe.locales,isEthereumAddress:me.default,isCurrency:ve.default,isBtcAddress:ge.default,isISO6346:Ae.isISO6346,isFreightContainerID:Ae.isFreightContainerID,isISO6391:be.default,isISO8601:ye.default,isRFC3339:_e.default,isISO31661Alpha2:we.default,isISO31661Alpha3:xe.default,isISO4217:ke.default,isBase32:Ee.default,isBase58:Se.default,isBase64:De.default,isDataURI:Re.default,isMagnetURI:Ie.default,isMailtoURI:Ce.default,isMimeType:Oe.default,isLatLong:Te.default,ltrim:Me.default,rtrim:Le.default,trim:Be.default,escape:je.default,unescape:Ue.default,stripLow:Fe.default,whitelist:Ne.default,blacklist:$e.default,isWhitelisted:Ge.default,normalizeEmail:He.default,toString:toString,isSlug:ze.default,isStrongPassword:Ke.default,isTaxID:pe.default,isDate:v.default,isTime:g.default,isLicensePlate:Ze.default,isVAT:qe.default,ibanLocales:K.locales};t.default=Qe,e.exports=t.default,e.exports.default=t.default}(hx,hx.exports);var fS=o(hx.exports);const pS=2147483647,hS=36,mS=/^xn--/,vS=/[^\0-\x7F]/,gS=/[\x2E\u3002\uFF0E\uFF61]/g,AS={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},bS=Math.floor,yS=String.fromCharCode;function _S(e){throw new RangeError(AS[e])}function wS(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const i=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace(gS,".")).split("."),t).join(".");return n+i}function xS(e){const t=[];let r=0;const n=e.length;for(;r<n;){const i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?t.push(((1023&i)<<10)+(1023&n)+65536):(t.push(i),r--)}else t.push(i)}return t}const kS=e=>String.fromCodePoint(...e),ES=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},SS=function(e,t,r){let n=0;for(e=r?bS(e/700):e>>1,e+=bS(e/t);e>455;n+=hS)e=bS(e/35);return bS(n+36*e/(e+38))},DS=function(e){const t=[],r=e.length;let n=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let r=0;r<a;++r)e.charCodeAt(r)>=128&&_S("not-basic"),t.push(e.charCodeAt(r));for(let u=a>0?a+1:0;u<r;){const a=n;for(let t=1,i=hS;;i+=hS){u>=r&&_S("invalid-input");const a=(s=e.charCodeAt(u++))>=48&&s<58?s-48+26:s>=65&&s<91?s-65:s>=97&&s<123?s-97:hS;a>=hS&&_S("invalid-input"),a>bS((pS-n)/t)&&_S("overflow"),n+=a*t;const c=i<=o?1:i>=o+26?26:i-o;if(a<c)break;const d=hS-c;t>bS(pS/d)&&_S("overflow"),t*=d}const c=t.length+1;o=SS(n-a,c,0==a),bS(n/c)>pS-i&&_S("overflow"),i+=bS(n/c),n%=c,t.splice(n++,0,i)}var s;return String.fromCodePoint(...t)},RS=function(e){const t=[],r=(e=xS(e)).length;let n=128,i=0,o=72;for(const r of e)r<128&&t.push(yS(r));const a=t.length;let s=a;for(a&&t.push("-");s<r;){let r=pS;for(const t of e)t>=n&&t<r&&(r=t);const u=s+1;r-n>bS((pS-i)/u)&&_S("overflow"),i+=(r-n)*u,n=r;for(const r of e)if(r<n&&++i>pS&&_S("overflow"),r===n){let e=i;for(let r=hS;;r+=hS){const n=r<=o?1:r>=o+26?26:r-o;if(e<n)break;const i=e-n,a=hS-n;t.push(yS(ES(n+i%a,0))),e=bS(i/a)}t.push(yS(ES(e,0))),o=SS(i,u,s===a),i=0,++s}++i,++n}return t.join("")},IS=function(e){return wS(e,(function(e){return mS.test(e)?DS(e.slice(4).toLowerCase()):e}))},CS=function(e){return wS(e,(function(e){return vS.test(e)?"xn--"+RS(e):e}))},OS={version:"2.3.1",ucs2:{decode:xS,encode:kS},decode:DS,encode:RS,toASCII:CS,toUnicode:IS};var TS=Object.freeze({__proto__:null,ucs2decode:xS,ucs2encode:kS,decode:DS,encode:RS,toASCII:CS,toUnicode:IS,default:OS}),PS=a(TS),MS={"com.ac":!0,"net.ac":!0,"gov.ac":!0,"org.ac":!0,"mil.ac":!0,"co.ae":!0,"net.ae":!0,"gov.ae":!0,"ac.ae":!0,"sch.ae":!0,"org.ae":!0,"mil.ae":!0,"pro.ae":!0,"name.ae":!0,"com.af":!0,"edu.af":!0,"gov.af":!0,"net.af":!0,"org.af":!0,"com.al":!0,"edu.al":!0,"gov.al":!0,"mil.al":!0,"net.al":!0,"org.al":!0,"ed.ao":!0,"gv.ao":!0,"og.ao":!0,"co.ao":!0,"pb.ao":!0,"it.ao":!0,"com.ar":!0,"edu.ar":!0,"gob.ar":!0,"gov.ar":!0,"int.ar":!0,"mil.ar":!0,"net.ar":!0,"org.ar":!0,"tur.ar":!0,"gv.at":!0,"ac.at":!0,"co.at":!0,"or.at":!0,"com.au":!0,"net.au":!0,"org.au":!0,"edu.au":!0,"gov.au":!0,"csiro.au":!0,"asn.au":!0,"id.au":!0,"vic.au":!0,"sa.au":!0,"wa.au":!0,"nt.au":!0,"tas.au":!0,"qld.au":!0,"act.au":!0,"conf.au":!0,"oz.au":!0,"org.ba":!0,"net.ba":!0,"edu.ba":!0,"gov.ba":!0,"mil.ba":!0,"unsa.ba":!0,"untz.ba":!0,"unmo.ba":!0,"unbi.ba":!0,"unze.ba":!0,"co.ba":!0,"com.ba":!0,"rs.ba":!0,"co.bb":!0,"com.bb":!0,"net.bb":!0,"org.bb":!0,"gov.bb":!0,"edu.bb":!0,"info.bb":!0,"store.bb":!0,"tv.bb":!0,"biz.bb":!0,"com.bh":!0,"info.bh":!0,"cc.bh":!0,"edu.bh":!0,"biz.bh":!0,"net.bh":!0,"org.bh":!0,"gov.bh":!0,"com.bn":!0,"edu.bn":!0,"gov.bn":!0,"net.bn":!0,"org.bn":!0,"com.bo":!0,"net.bo":!0,"org.bo":!0,"tv.bo":!0,"mil.bo":!0,"int.bo":!0,"gob.bo":!0,"gov.bo":!0,"edu.bo":!0,"adm.br":!0,"adv.br":!0,"agr.br":!0,"am.br":!0,"arq.br":!0,"art.br":!0,"ato.br":!0,"b.br":!0,"bio.br":!0,"blog.br":!0,"bmd.br":!0,"cim.br":!0,"cng.br":!0,"cnt.br":!0,"com.br":!0,"coop.br":!0,"ecn.br":!0,"edu.br":!0,"eng.br":!0,"esp.br":!0,"etc.br":!0,"eti.br":!0,"far.br":!0,"flog.br":!0,"fm.br":!0,"fnd.br":!0,"fot.br":!0,"fst.br":!0,"g12.br":!0,"ggf.br":!0,"gov.br":!0,"imb.br":!0,"ind.br":!0,"inf.br":!0,"jor.br":!0,"jus.br":!0,"lel.br":!0,"mat.br":!0,"med.br":!0,"mil.br":!0,"mus.br":!0,"net.br":!0,"nom.br":!0,"not.br":!0,"ntr.br":!0,"odo.br":!0,"org.br":!0,"ppg.br":!0,"pro.br":!0,"psc.br":!0,"psi.br":!0,"qsl.br":!0,"rec.br":!0,"slg.br":!0,"srv.br":!0,"tmp.br":!0,"trd.br":!0,"tur.br":!0,"tv.br":!0,"vet.br":!0,"vlog.br":!0,"wiki.br":!0,"zlg.br":!0,"com.bs":!0,"net.bs":!0,"org.bs":!0,"edu.bs":!0,"gov.bs":!0,"om.bz":!0,"du.bz":!0,"ov.bz":!0,"et.bz":!0,"rg.bz":!0,"ab.ca":!0,"bc.ca":!0,"mb.ca":!0,"nb.ca":!0,"nf.ca":!0,"nl.ca":!0,"ns.ca":!0,"nt.ca":!0,"nu.ca":!0,"on.ca":!0,"pe.ca":!0,"qc.ca":!0,"sk.ca":!0,"yk.ca":!0,"co.ck":!0,"org.ck":!0,"edu.ck":!0,"gov.ck":!0,"net.ck":!0,"gen.ck":!0,"biz.ck":!0,"info.ck":!0,"ac.cn":!0,"com.cn":!0,"edu.cn":!0,"gov.cn":!0,"mil.cn":!0,"net.cn":!0,"org.cn":!0,"ah.cn":!0,"bj.cn":!0,"cq.cn":!0,"fj.cn":!0,"gd.cn":!0,"gs.cn":!0,"gz.cn":!0,"gx.cn":!0,"ha.cn":!0,"hb.cn":!0,"he.cn":!0,"hi.cn":!0,"hl.cn":!0,"hn.cn":!0,"jl.cn":!0,"js.cn":!0,"jx.cn":!0,"ln.cn":!0,"nm.cn":!0,"nx.cn":!0,"qh.cn":!0,"sc.cn":!0,"sd.cn":!0,"sh.cn":!0,"sn.cn":!0,"sx.cn":!0,"tj.cn":!0,"tw.cn":!0,"xj.cn":!0,"xz.cn":!0,"yn.cn":!0,"zj.cn":!0,"com.co":!0,"org.co":!0,"edu.co":!0,"gov.co":!0,"net.co":!0,"mil.co":!0,"nom.co":!0,"ac.cr":!0,"co.cr":!0,"ed.cr":!0,"fi.cr":!0,"go.cr":!0,"or.cr":!0,"sa.cr":!0,cr:!0,"ac.cy":!0,"net.cy":!0,"gov.cy":!0,"org.cy":!0,"pro.cy":!0,"name.cy":!0,"ekloges.cy":!0,"tm.cy":!0,"ltd.cy":!0,"biz.cy":!0,"press.cy":!0,"parliament.cy":!0,"com.cy":!0,"edu.do":!0,"gob.do":!0,"gov.do":!0,"com.do":!0,"sld.do":!0,"org.do":!0,"net.do":!0,"web.do":!0,"mil.do":!0,"art.do":!0,"com.dz":!0,"org.dz":!0,"net.dz":!0,"gov.dz":!0,"edu.dz":!0,"asso.dz":!0,"pol.dz":!0,"art.dz":!0,"com.ec":!0,"info.ec":!0,"net.ec":!0,"fin.ec":!0,"med.ec":!0,"pro.ec":!0,"org.ec":!0,"edu.ec":!0,"gov.ec":!0,"mil.ec":!0,"com.eg":!0,"edu.eg":!0,"eun.eg":!0,"gov.eg":!0,"mil.eg":!0,"name.eg":!0,"net.eg":!0,"org.eg":!0,"sci.eg":!0,"com.er":!0,"edu.er":!0,"gov.er":!0,"mil.er":!0,"net.er":!0,"org.er":!0,"ind.er":!0,"rochest.er":!0,"w.er":!0,"com.es":!0,"nom.es":!0,"org.es":!0,"gob.es":!0,"edu.es":!0,"com.et":!0,"gov.et":!0,"org.et":!0,"edu.et":!0,"net.et":!0,"biz.et":!0,"name.et":!0,"info.et":!0,"ac.fj":!0,"biz.fj":!0,"com.fj":!0,"info.fj":!0,"mil.fj":!0,"name.fj":!0,"net.fj":!0,"org.fj":!0,"pro.fj":!0,"co.fk":!0,"org.fk":!0,"gov.fk":!0,"ac.fk":!0,"nom.fk":!0,"net.fk":!0,fr:!0,"tm.fr":!0,"asso.fr":!0,"nom.fr":!0,"prd.fr":!0,"presse.fr":!0,"com.fr":!0,"gouv.fr":!0,"co.gg":!0,"net.gg":!0,"org.gg":!0,"com.gh":!0,"edu.gh":!0,"gov.gh":!0,"org.gh":!0,"mil.gh":!0,"co.gl":!0,"com.gl":!0,"edu.gl":!0,"net.gl":!0,"org.gl":!0,"com.gn":!0,"ac.gn":!0,"gov.gn":!0,"org.gn":!0,"net.gn":!0,"com.gr":!0,"edu.gr":!0,"net.gr":!0,"org.gr":!0,"gov.gr":!0,"mil.gr":!0,"com.gt":!0,"edu.gt":!0,"net.gt":!0,"gob.gt":!0,"org.gt":!0,"mil.gt":!0,"ind.gt":!0,"com.gu":!0,"net.gu":!0,"gov.gu":!0,"org.gu":!0,"edu.gu":!0,"com.hk":!0,"edu.hk":!0,"gov.hk":!0,"idv.hk":!0,"net.hk":!0,"org.hk":!0,"2000.hu":!0,"agrar.hu":!0,"bolt.hu":!0,"casino.hu":!0,"city.hu":!0,"co.hu":!0,"erotica.hu":!0,"erotika.hu":!0,"film.hu":!0,"forum.hu":!0,"games.hu":!0,"hotel.hu":!0,"info.hu":!0,"ingatlan.hu":!0,"jogasz.hu":!0,"konyvelo.hu":!0,"lakas.hu":!0,"media.hu":!0,"news.hu":!0,"org.hu":!0,"priv.hu":!0,"reklam.hu":!0,"sex.hu":!0,"shop.hu":!0,"sport.hu":!0,"suli.huv":!0,"szex.hu":!0,"tm.hu":!0,"tozsde.hu":!0,"utazas.hu":!0,"video.hu":!0,"ac.id":!0,"co.id":!0,"net.id":!0,"or.id":!0,"web.id":!0,"sch.id":!0,"mil.id":!0,"go.id":!0,"war.net.id":!0,"my.id":!0,"biz.id":!0,"ac.il":!0,"co.il":!0,"org.il":!0,"net.il":!0,"k12.il":!0,"gov.il":!0,"muni.il":!0,"idf.il":!0,in:!0,"4fd.in":!0,"co.in":!0,"firm.in":!0,"net.in":!0,"org.in":!0,"gen.in":!0,"ind.in":!0,"ac.in":!0,"edu.in":!0,"res.in":!0,"ernet.in":!0,"gov.in":!0,"mil.in":!0,"nic.in":!0,iq:!0,"gov.iq":!0,"edu.iq":!0,"com.iq":!0,"mil.iq":!0,"org.iq":!0,"net.iq":!0,ir:!0,"ac.ir":!0,"co.ir":!0,"gov.ir":!0,"id.ir":!0,"net.ir":!0,"org.ir":!0,"sch.ir":!0,"dnssec.ir":!0,"gov.it":!0,"edu.it":!0,"co.je":!0,"net.je":!0,"org.je":!0,"com.jo":!0,"net.jo":!0,"gov.jo":!0,"edu.jo":!0,"org.jo":!0,"mil.jo":!0,"name.jo":!0,"sch.jo":!0,"ac.jp":!0,"ad.jp":!0,"co.jp":!0,"ed.jp":!0,"go.jp":!0,"gr.jp":!0,"lg.jp":!0,"ne.jp":!0,"or.jp":!0,"co.ke":!0,"or.ke":!0,"ne.ke":!0,"go.ke":!0,"ac.ke":!0,"sc.ke":!0,"me.ke":!0,"mobi.ke":!0,"info.ke":!0,"per.kh":!0,"com.kh":!0,"edu.kh":!0,"gov.kh":!0,"mil.kh":!0,"net.kh":!0,"org.kh":!0,"com.ki":!0,"biz.ki":!0,"de.ki":!0,"net.ki":!0,"info.ki":!0,"org.ki":!0,"gov.ki":!0,"edu.ki":!0,"mob.ki":!0,"tel.ki":!0,km:!0,"com.km":!0,"coop.km":!0,"asso.km":!0,"nom.km":!0,"presse.km":!0,"tm.km":!0,"medecin.km":!0,"notaires.km":!0,"pharmaciens.km":!0,"veterinaire.km":!0,"edu.km":!0,"gouv.km":!0,"mil.km":!0,"net.kn":!0,"org.kn":!0,"edu.kn":!0,"gov.kn":!0,kr:!0,"co.kr":!0,"ne.kr":!0,"or.kr":!0,"re.kr":!0,"pe.kr":!0,"go.kr":!0,"mil.kr":!0,"ac.kr":!0,"hs.kr":!0,"ms.kr":!0,"es.kr":!0,"sc.kr":!0,"kg.kr":!0,"seoul.kr":!0,"busan.kr":!0,"daegu.kr":!0,"incheon.kr":!0,"gwangju.kr":!0,"daejeon.kr":!0,"ulsan.kr":!0,"gyeonggi.kr":!0,"gangwon.kr":!0,"chungbuk.kr":!0,"chungnam.kr":!0,"jeonbuk.kr":!0,"jeonnam.kr":!0,"gyeongbuk.kr":!0,"gyeongnam.kr":!0,"jeju.kr":!0,"edu.kw":!0,"com.kw":!0,"net.kw":!0,"org.kw":!0,"gov.kw":!0,"com.ky":!0,"org.ky":!0,"net.ky":!0,"edu.ky":!0,"gov.ky":!0,"com.kz":!0,"edu.kz":!0,"gov.kz":!0,"mil.kz":!0,"net.kz":!0,"org.kz":!0,"com.lb":!0,"edu.lb":!0,"gov.lb":!0,"net.lb":!0,"org.lb":!0,"gov.lk":!0,"sch.lk":!0,"net.lk":!0,"int.lk":!0,"com.lk":!0,"org.lk":!0,"edu.lk":!0,"ngo.lk":!0,"soc.lk":!0,"web.lk":!0,"ltd.lk":!0,"assn.lk":!0,"grp.lk":!0,"hotel.lk":!0,"com.lr":!0,"edu.lr":!0,"gov.lr":!0,"org.lr":!0,"net.lr":!0,"com.lv":!0,"edu.lv":!0,"gov.lv":!0,"org.lv":!0,"mil.lv":!0,"id.lv":!0,"net.lv":!0,"asn.lv":!0,"conf.lv":!0,"com.ly":!0,"net.ly":!0,"gov.ly":!0,"plc.ly":!0,"edu.ly":!0,"sch.ly":!0,"med.ly":!0,"org.ly":!0,"id.ly":!0,ma:!0,"net.ma":!0,"ac.ma":!0,"org.ma":!0,"gov.ma":!0,"press.ma":!0,"co.ma":!0,"tm.mc":!0,"asso.mc":!0,"co.me":!0,"net.me":!0,"org.me":!0,"edu.me":!0,"ac.me":!0,"gov.me":!0,"its.me":!0,"priv.me":!0,"org.mg":!0,"nom.mg":!0,"gov.mg":!0,"prd.mg":!0,"tm.mg":!0,"edu.mg":!0,"mil.mg":!0,"com.mg":!0,"com.mk":!0,"org.mk":!0,"net.mk":!0,"edu.mk":!0,"gov.mk":!0,"inf.mk":!0,"name.mk":!0,"pro.mk":!0,"com.ml":!0,"net.ml":!0,"org.ml":!0,"edu.ml":!0,"gov.ml":!0,"presse.ml":!0,"gov.mn":!0,"edu.mn":!0,"org.mn":!0,"com.mo":!0,"edu.mo":!0,"gov.mo":!0,"net.mo":!0,"org.mo":!0,"com.mt":!0,"org.mt":!0,"net.mt":!0,"edu.mt":!0,"gov.mt":!0,"aero.mv":!0,"biz.mv":!0,"com.mv":!0,"coop.mv":!0,"edu.mv":!0,"gov.mv":!0,"info.mv":!0,"int.mv":!0,"mil.mv":!0,"museum.mv":!0,"name.mv":!0,"net.mv":!0,"org.mv":!0,"pro.mv":!0,"ac.mw":!0,"co.mw":!0,"com.mw":!0,"coop.mw":!0,"edu.mw":!0,"gov.mw":!0,"int.mw":!0,"museum.mw":!0,"net.mw":!0,"org.mw":!0,"com.mx":!0,"net.mx":!0,"org.mx":!0,"edu.mx":!0,"gob.mx":!0,"com.my":!0,"net.my":!0,"org.my":!0,"gov.my":!0,"edu.my":!0,"sch.my":!0,"mil.my":!0,"name.my":!0,"com.nf":!0,"net.nf":!0,"arts.nf":!0,"store.nf":!0,"web.nf":!0,"firm.nf":!0,"info.nf":!0,"other.nf":!0,"per.nf":!0,"rec.nf":!0,"com.ng":!0,"org.ng":!0,"gov.ng":!0,"edu.ng":!0,"net.ng":!0,"sch.ng":!0,"name.ng":!0,"mobi.ng":!0,"biz.ng":!0,"mil.ng":!0,"gob.ni":!0,"co.ni":!0,"com.ni":!0,"ac.ni":!0,"edu.ni":!0,"org.ni":!0,"nom.ni":!0,"net.ni":!0,"mil.ni":!0,"com.np":!0,"edu.np":!0,"gov.np":!0,"org.np":!0,"mil.np":!0,"net.np":!0,"edu.nr":!0,"gov.nr":!0,"biz.nr":!0,"info.nr":!0,"net.nr":!0,"org.nr":!0,"com.nr":!0,"com.om":!0,"co.om":!0,"edu.om":!0,"ac.om":!0,"sch.om":!0,"gov.om":!0,"net.om":!0,"org.om":!0,"mil.om":!0,"museum.om":!0,"biz.om":!0,"pro.om":!0,"med.om":!0,"edu.pe":!0,"gob.pe":!0,"nom.pe":!0,"mil.pe":!0,"sld.pe":!0,"org.pe":!0,"com.pe":!0,"net.pe":!0,"com.ph":!0,"net.ph":!0,"org.ph":!0,"mil.ph":!0,"ngo.ph":!0,"i.ph":!0,"gov.ph":!0,"edu.ph":!0,"com.pk":!0,"net.pk":!0,"edu.pk":!0,"org.pk":!0,"fam.pk":!0,"biz.pk":!0,"web.pk":!0,"gov.pk":!0,"gob.pk":!0,"gok.pk":!0,"gon.pk":!0,"gop.pk":!0,"gos.pk":!0,"pwr.pl":!0,"com.pl":!0,"biz.pl":!0,"net.pl":!0,"art.pl":!0,"edu.pl":!0,"org.pl":!0,"ngo.pl":!0,"gov.pl":!0,"info.pl":!0,"mil.pl":!0,"waw.pl":!0,"warszawa.pl":!0,"wroc.pl":!0,"wroclaw.pl":!0,"krakow.pl":!0,"katowice.pl":!0,"poznan.pl":!0,"lodz.pl":!0,"gda.pl":!0,"gdansk.pl":!0,"slupsk.pl":!0,"radom.pl":!0,"szczecin.pl":!0,"lublin.pl":!0,"bialystok.pl":!0,"olsztyn.pl":!0,"torun.pl":!0,"gorzow.pl":!0,"zgora.pl":!0,"biz.pr":!0,"com.pr":!0,"edu.pr":!0,"gov.pr":!0,"info.pr":!0,"isla.pr":!0,"name.pr":!0,"net.pr":!0,"org.pr":!0,"pro.pr":!0,"est.pr":!0,"prof.pr":!0,"ac.pr":!0,"com.ps":!0,"net.ps":!0,"org.ps":!0,"edu.ps":!0,"gov.ps":!0,"plo.ps":!0,"sec.ps":!0,"co.pw":!0,"ne.pw":!0,"or.pw":!0,"ed.pw":!0,"go.pw":!0,"belau.pw":!0,"arts.ro":!0,"com.ro":!0,"firm.ro":!0,"info.ro":!0,"nom.ro":!0,"nt.ro":!0,"org.ro":!0,"rec.ro":!0,"store.ro":!0,"tm.ro":!0,"www.ro":!0,"co.rs":!0,"org.rs":!0,"edu.rs":!0,"ac.rs":!0,"gov.rs":!0,"in.rs":!0,"com.sb":!0,"net.sb":!0,"edu.sb":!0,"org.sb":!0,"gov.sb":!0,"com.sc":!0,"net.sc":!0,"edu.sc":!0,"gov.sc":!0,"org.sc":!0,"co.sh":!0,"com.sh":!0,"org.sh":!0,"gov.sh":!0,"edu.sh":!0,"net.sh":!0,"nom.sh":!0,"com.sl":!0,"net.sl":!0,"org.sl":!0,"edu.sl":!0,"gov.sl":!0,"gov.st":!0,"saotome.st":!0,"principe.st":!0,"consulado.st":!0,"embaixada.st":!0,"org.st":!0,"edu.st":!0,"net.st":!0,"com.st":!0,"store.st":!0,"mil.st":!0,"co.st":!0,"edu.sv":!0,"gob.sv":!0,"com.sv":!0,"org.sv":!0,"red.sv":!0,"co.sz":!0,"ac.sz":!0,"org.sz":!0,"com.tr":!0,"gen.tr":!0,"org.tr":!0,"biz.tr":!0,"info.tr":!0,"av.tr":!0,"dr.tr":!0,"pol.tr":!0,"bel.tr":!0,"tsk.tr":!0,"bbs.tr":!0,"k12.tr":!0,"edu.tr":!0,"name.tr":!0,"net.tr":!0,"gov.tr":!0,"web.tr":!0,"tel.tr":!0,"tv.tr":!0,"co.tt":!0,"com.tt":!0,"org.tt":!0,"net.tt":!0,"biz.tt":!0,"info.tt":!0,"pro.tt":!0,"int.tt":!0,"coop.tt":!0,"jobs.tt":!0,"mobi.tt":!0,"travel.tt":!0,"museum.tt":!0,"aero.tt":!0,"cat.tt":!0,"tel.tt":!0,"name.tt":!0,"mil.tt":!0,"edu.tt":!0,"gov.tt":!0,"edu.tw":!0,"gov.tw":!0,"mil.tw":!0,"com.tw":!0,"net.tw":!0,"org.tw":!0,"idv.tw":!0,"game.tw":!0,"ebiz.tw":!0,"club.tw":!0,"com.mu":!0,"gov.mu":!0,"net.mu":!0,"org.mu":!0,"ac.mu":!0,"co.mu":!0,"or.mu":!0,"ac.mz":!0,"co.mz":!0,"edu.mz":!0,"org.mz":!0,"gov.mz":!0,"com.na":!0,"co.na":!0,"ac.nz":!0,"co.nz":!0,"cri.nz":!0,"geek.nz":!0,"gen.nz":!0,"govt.nz":!0,"health.nz":!0,"iwi.nz":!0,"maori.nz":!0,"mil.nz":!0,"net.nz":!0,"org.nz":!0,"parliament.nz":!0,"school.nz":!0,"abo.pa":!0,"ac.pa":!0,"com.pa":!0,"edu.pa":!0,"gob.pa":!0,"ing.pa":!0,"med.pa":!0,"net.pa":!0,"nom.pa":!0,"org.pa":!0,"sld.pa":!0,"com.pt":!0,"edu.pt":!0,"gov.pt":!0,"int.pt":!0,"net.pt":!0,"nome.pt":!0,"org.pt":!0,"publ.pt":!0,"com.py":!0,"edu.py":!0,"gov.py":!0,"mil.py":!0,"net.py":!0,"org.py":!0,"com.qa":!0,"edu.qa":!0,"gov.qa":!0,"mil.qa":!0,"net.qa":!0,"org.qa":!0,"asso.re":!0,"com.re":!0,"nom.re":!0,"ac.ru":!0,"adygeya.ru":!0,"altai.ru":!0,"amur.ru":!0,"arkhangelsk.ru":!0,"astrakhan.ru":!0,"bashkiria.ru":!0,"belgorod.ru":!0,"bir.ru":!0,"bryansk.ru":!0,"buryatia.ru":!0,"cbg.ru":!0,"chel.ru":!0,"chelyabinsk.ru":!0,"chita.ru":!0,"chukotka.ru":!0,"chuvashia.ru":!0,"com.ru":!0,"dagestan.ru":!0,"e-burg.ru":!0,"edu.ru":!0,"gov.ru":!0,"grozny.ru":!0,"int.ru":!0,"irkutsk.ru":!0,"ivanovo.ru":!0,"izhevsk.ru":!0,"jar.ru":!0,"joshkar-ola.ru":!0,"kalmykia.ru":!0,"kaluga.ru":!0,"kamchatka.ru":!0,"karelia.ru":!0,"kazan.ru":!0,"kchr.ru":!0,"kemerovo.ru":!0,"khabarovsk.ru":!0,"khakassia.ru":!0,"khv.ru":!0,"kirov.ru":!0,"koenig.ru":!0,"komi.ru":!0,"kostroma.ru":!0,"kranoyarsk.ru":!0,"kuban.ru":!0,"kurgan.ru":!0,"kursk.ru":!0,"lipetsk.ru":!0,"magadan.ru":!0,"mari.ru":!0,"mari-el.ru":!0,"marine.ru":!0,"mil.ru":!0,"mordovia.ru":!0,"mosreg.ru":!0,"msk.ru":!0,"murmansk.ru":!0,"nalchik.ru":!0,"net.ru":!0,"nnov.ru":!0,"nov.ru":!0,"novosibirsk.ru":!0,"nsk.ru":!0,"omsk.ru":!0,"orenburg.ru":!0,"org.ru":!0,"oryol.ru":!0,"penza.ru":!0,"perm.ru":!0,"pp.ru":!0,"pskov.ru":!0,"ptz.ru":!0,"rnd.ru":!0,"ryazan.ru":!0,"sakhalin.ru":!0,"samara.ru":!0,"saratov.ru":!0,"simbirsk.ru":!0,"smolensk.ru":!0,"spb.ru":!0,"stavropol.ru":!0,"stv.ru":!0,"surgut.ru":!0,"tambov.ru":!0,"tatarstan.ru":!0,"tom.ru":!0,"tomsk.ru":!0,"tsaritsyn.ru":!0,"tsk.ru":!0,"tula.ru":!0,"tuva.ru":!0,"tver.ru":!0,"tyumen.ru":!0,"udm.ru":!0,"udmurtia.ru":!0,"ulan-ude.ru":!0,"vladikavkaz.ru":!0,"vladimir.ru":!0,"vladivostok.ru":!0,"volgograd.ru":!0,"vologda.ru":!0,"voronezh.ru":!0,"vrn.ru":!0,"vyatka.ru":!0,"yakutia.ru":!0,"yamal.ru":!0,"yekaterinburg.ru":!0,"yuzhno-sakhalinsk.ru":!0,"ac.rw":!0,"co.rw":!0,"com.rw":!0,"edu.rw":!0,"gouv.rw":!0,"gov.rw":!0,"int.rw":!0,"mil.rw":!0,"net.rw":!0,"com.sa":!0,"edu.sa":!0,"gov.sa":!0,"med.sa":!0,"net.sa":!0,"org.sa":!0,"pub.sa":!0,"sch.sa":!0,"com.sd":!0,"edu.sd":!0,"gov.sd":!0,"info.sd":!0,"med.sd":!0,"net.sd":!0,"org.sd":!0,"tv.sd":!0,"a.se":!0,"ac.se":!0,"b.se":!0,"bd.se":!0,"c.se":!0,"d.se":!0,"e.se":!0,"f.se":!0,"g.se":!0,"h.se":!0,"i.se":!0,"k.se":!0,"l.se":!0,"m.se":!0,"n.se":!0,"o.se":!0,"org.se":!0,"p.se":!0,"parti.se":!0,"pp.se":!0,"press.se":!0,"r.se":!0,"s.se":!0,"t.se":!0,"tm.se":!0,"u.se":!0,"w.se":!0,"x.se":!0,"y.se":!0,"z.se":!0,"com.sg":!0,"edu.sg":!0,"gov.sg":!0,"idn.sg":!0,"net.sg":!0,"org.sg":!0,"per.sg":!0,"art.sn":!0,"com.sn":!0,"edu.sn":!0,"gouv.sn":!0,"org.sn":!0,"perso.sn":!0,"univ.sn":!0,"com.sy":!0,"edu.sy":!0,"gov.sy":!0,"mil.sy":!0,"net.sy":!0,"news.sy":!0,"org.sy":!0,"ac.th":!0,"co.th":!0,"go.th":!0,"in.th":!0,"mi.th":!0,"net.th":!0,"or.th":!0,"ac.tj":!0,"biz.tj":!0,"co.tj":!0,"com.tj":!0,"edu.tj":!0,"go.tj":!0,"gov.tj":!0,"info.tj":!0,"int.tj":!0,"mil.tj":!0,"name.tj":!0,"net.tj":!0,"nic.tj":!0,"org.tj":!0,"test.tj":!0,"web.tj":!0,"agrinet.tn":!0,"com.tn":!0,"defense.tn":!0,"edunet.tn":!0,"ens.tn":!0,"fin.tn":!0,"gov.tn":!0,"ind.tn":!0,"info.tn":!0,"intl.tn":!0,"mincom.tn":!0,"nat.tn":!0,"net.tn":!0,"org.tn":!0,"perso.tn":!0,"rnrt.tn":!0,"rns.tn":!0,"rnu.tn":!0,"tourism.tn":!0,"ac.tz":!0,"co.tz":!0,"go.tz":!0,"ne.tz":!0,"or.tz":!0,"biz.ua":!0,"cherkassy.ua":!0,"chernigov.ua":!0,"chernovtsy.ua":!0,"ck.ua":!0,"cn.ua":!0,"co.ua":!0,"com.ua":!0,"crimea.ua":!0,"cv.ua":!0,"dn.ua":!0,"dnepropetrovsk.ua":!0,"donetsk.ua":!0,"dp.ua":!0,"edu.ua":!0,"gov.ua":!0,"if.ua":!0,"in.ua":!0,"ivano-frankivsk.ua":!0,"kh.ua":!0,"kharkov.ua":!0,"kherson.ua":!0,"khmelnitskiy.ua":!0,"kiev.ua":!0,"kirovograd.ua":!0,"km.ua":!0,"kr.ua":!0,"ks.ua":!0,"kv.ua":!0,"lg.ua":!0,"lugansk.ua":!0,"lutsk.ua":!0,"lviv.ua":!0,"me.ua":!0,"mk.ua":!0,"net.ua":!0,"nikolaev.ua":!0,"od.ua":!0,"odessa.ua":!0,"org.ua":!0,"pl.ua":!0,"poltava.ua":!0,"pp.ua":!0,"rovno.ua":!0,"rv.ua":!0,"sebastopol.ua":!0,"sumy.ua":!0,"te.ua":!0,"ternopil.ua":!0,"uzhgorod.ua":!0,"vinnica.ua":!0,"vn.ua":!0,"zaporizhzhe.ua":!0,"zhitomir.ua":!0,"zp.ua":!0,"zt.ua":!0,"ac.ug":!0,"co.ug":!0,"go.ug":!0,"ne.ug":!0,"or.ug":!0,"org.ug":!0,"sc.ug":!0,"ac.uk":!0,"bl.uk":!0,"british-library.uk":!0,"co.uk":!0,"cym.uk":!0,"gov.uk":!0,"govt.uk":!0,"icnet.uk":!0,"jet.uk":!0,"lea.uk":!0,"ltd.uk":!0,"me.uk":!0,"mil.uk":!0,"mod.uk":!0,"national-library-scotland.uk":!0,"nel.uk":!0,"net.uk":!0,"nhs.uk":!0,"nic.uk":!0,"nls.uk":!0,"org.uk":!0,"orgn.uk":!0,"parliament.uk":!0,"plc.uk":!0,"police.uk":!0,"sch.uk":!0,"scot.uk":!0,"soc.uk":!0,"4fd.us":!0,"dni.us":!0,"fed.us":!0,"isa.us":!0,"kids.us":!0,"nsn.us":!0,"com.uy":!0,"edu.uy":!0,"gub.uy":!0,"mil.uy":!0,"net.uy":!0,"org.uy":!0,"co.ve":!0,"com.ve":!0,"edu.ve":!0,"gob.ve":!0,"info.ve":!0,"mil.ve":!0,"net.ve":!0,"org.ve":!0,"web.ve":!0,"co.vi":!0,"com.vi":!0,"k12.vi":!0,"net.vi":!0,"org.vi":!0,"ac.vn":!0,"biz.vn":!0,"com.vn":!0,"edu.vn":!0,"gov.vn":!0,"health.vn":!0,"info.vn":!0,"int.vn":!0,"name.vn":!0,"net.vn":!0,"org.vn":!0,"pro.vn":!0,"co.ye":!0,"com.ye":!0,"gov.ye":!0,"ltd.ye":!0,"me.ye":!0,"net.ye":!0,"org.ye":!0,"plc.ye":!0,"ac.yu":!0,"co.yu":!0,"edu.yu":!0,"gov.yu":!0,"org.yu":!0,"ac.za":!0,"agric.za":!0,"alt.za":!0,"bourse.za":!0,"city.za":!0,"co.za":!0,"cybernet.za":!0,"db.za":!0,"ecape.school.za":!0,"edu.za":!0,"fs.school.za":!0,"gov.za":!0,"gp.school.za":!0,"grondar.za":!0,"iaccess.za":!0,"imt.za":!0,"inca.za":!0,"kzn.school.za":!0,"landesign.za":!0,"law.za":!0,"lp.school.za":!0,"mil.za":!0,"mpm.school.za":!0,"ncape.school.za":!0,"net.za":!0,"ngo.za":!0,"nis.za":!0,"nom.za":!0,"nw.school.za":!0,"olivetti.za":!0,"org.za":!0,"pix.za":!0,"school.za":!0,"tm.za":!0,"wcape.school.za":!0,"web.za":!0,"ac.zm":!0,"co.zm":!0,"com.zm":!0,"edu.zm":!0,"gov.zm":!0,"net.zm":!0,"org.zm":!0,"sch.zm":!0};const LS=PS,BS=MS,jS={ad:!0,ae:!0,af:!0,ag:!0,ai:!0,al:!0,am:!0,ao:!0,aq:!0,ar:!0,as:!0,at:!0,au:!0,aw:!0,ax:!0,az:!0,ba:!0,bb:!0,bd:!0,be:!0,bf:!0,bg:!0,bh:!0,bi:!0,bj:!0,bl:!0,bm:!0,bn:!0,bo:!0,bq:!0,br:!0,bs:!0,bt:!0,bv:!0,bw:!0,by:!0,bz:!0,ca:!0,cc:!0,cd:!0,cf:!0,cg:!0,ch:!0,ci:!0,ck:!0,cl:!0,cm:!0,cn:!0,co:!0,cr:!0,cu:!0,cv:!0,cw:!0,cx:!0,cy:!0,cz:!0,de:!0,dj:!0,dk:!0,dm:!0,do:!0,dz:!0,ec:!0,ee:!0,eg:!0,er:!0,es:!0,et:!0,fi:!0,fj:!0,fk:!0,fm:!0,fo:!0,fr:!0,ga:!0,"gb (.uk)":!0,gd:!0,ge:!0,gf:!0,gg:!0,gh:!0,gi:!0,gl:!0,gm:!0,gn:!0,gp:!0,gq:!0,gr:!0,gs:!0,gt:!0,gu:!0,gw:!0,gy:!0,hk:!0,hm:!0,hn:!0,hr:!0,ht:!0,hu:!0,id:!0,ie:!0,il:!0,im:!0,in:!0,io:!0,iq:!0,ir:!0,is:!0,it:!0,je:!0,jm:!0,jo:!0,jp:!0,ke:!0,kg:!0,kh:!0,ki:!0,km:!0,kn:!0,kp:!0,kr:!0,kw:!0,ky:!0,kz:!0,la:!0,lb:!0,lc:!0,li:!0,lk:!0,lr:!0,ls:!0,lt:!0,lu:!0,lv:!0,ly:!0,ma:!0,mc:!0,md:!0,me:!0,mf:!0,mg:!0,mh:!0,mk:!0,ml:!0,mm:!0,mn:!0,mo:!0,mp:!0,mq:!0,mr:!0,ms:!0,mt:!0,mu:!0,mv:!0,mw:!0,mx:!0,my:!0,mz:!0,na:!0,nc:!0,ne:!0,nf:!0,ng:!0,ni:!0,nl:!0,no:!0,np:!0,nr:!0,nu:!0,nz:!0,om:!0,pa:!0,pe:!0,pf:!0,pg:!0,ph:!0,pk:!0,pl:!0,pm:!0,pn:!0,pr:!0,ps:!0,pt:!0,pw:!0,py:!0,qa:!0,re:!0,ro:!0,rs:!0,ru:!0,rw:!0,sa:!0,sb:!0,sc:!0,sd:!0,se:!0,sg:!0,sh:!0,si:!0,sj:!0,sk:!0,sl:!0,sm:!0,sn:!0,so:!0,sr:!0,ss:!0,st:!0,sv:!0,sx:!0,sy:!0,sz:!0,tc:!0,td:!0,tf:!0,tg:!0,th:!0,tj:!0,tk:!0,tl:!0,tm:!0,tn:!0,to:!0,tr:!0,tt:!0,tv:!0,tw:!0,tz:!0,ua:!0,ug:!0,us:!0,uy:!0,uz:!0,va:!0,vc:!0,ve:!0,vg:!0,vi:!0,vn:!0,vu:!0,wf:!0,ws:!0,ye:!0,yt:!0,za:!0,zm:!0,zw:!0};var US=function(e,t){if("string"!=typeof e)return!1;if(t instanceof Object||(t={}),(e=e.toLowerCase()).endsWith(".")&&(e=e.slice(0,e.length-1)),t.allowUnicode&&(e=LS.toASCII(e)),e.length>253)return!1;if(!/^([\u0E00-\u0E7Fa-z0-9-._*]+)$/g.test(e))return!1;if(t.topLevel&&jS[e.replace(/\.$/,"")])return!0;const r=e.match(/(.*)\.(([\u0E00-\u0E7Fa-z0-9]+)(\.[a-z0-9]+))/);let n=null,i=null;if(r&&r.length>2&&BS[r[2]]&&(n=r[2],i=r[1].split(".")),!i){if(i=e.split("."),i.length<=1)return!1;n=i.pop();if(!/^(?:xn--)?(?!^\d+$)[\u0E00-\u0E7Fa-z0-9]+$/gi.test(n))return!1}if(!1===t.subdomain&&i.length>1)return!1;const o=i.every((function(e,r){if(t.wildcard&&0===r&&"*"===e&&i.length>1)return!0;let n=/^([\u0E00-\u0E7Fa-zA-Z0-9-_]+)$/g;r===i.length-1&&(n=/^([\u0E00-\u0E7Fa-zA-Z0-9-]+)$/g);const o=(e.match(/--(--)?/g)||[]).length,a=(e.match(/xn--/g)||[]).length;if(r===i.length-1&&o!==a)return!1;return n.test(e)&&e.length<64&&!e.startsWith("-")&&!e.endsWith("-")}));return o},FS=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)};
8
8
  /*!
9
9
  * isobject <https://github.com/jonschlinkert/isobject>
10
10
  *
@@ -17,23 +17,23 @@
17
17
  * Copyright (c) 2014-2018, Jon Schlinkert.
18
18
  * Released under the MIT License.
19
19
  */
20
- const ZS=zS;var KS=function(e,t,r){if(ZS(r)||(r={default:r}),!WS(e))return void 0!==r.default?r.default:e;"number"==typeof t&&(t=String(t));const n=Array.isArray(t),i="string"==typeof t,o=r.separator||".",a=r.joinChar||("string"==typeof o?o:".");if(!i&&!n)return e;if(i&&t in e)return VS(t,e,r)?e[t]:r.default;let s=n?t:function(e,t,r){if("function"==typeof r.split)return r.split(e);return e.split(t)}(t,o,r),u=s.length,c=0;do{let t=s[c];for("number"==typeof t&&(t=String(t));t&&"\\"===t.slice(-1);)t=qS([t.slice(0,-1),s[++c]||""],a,r);if(t in e){if(!VS(t,e,r))return r.default;e=e[t]}else{let n=!1,i=c+1;for(;i<u;)if(t=qS([t,s[i++]],a,r),n=t in e){if(!VS(t,e,r))return r.default;e=e[t],c=i-1;break}if(!n)return r.default}}while(++c<u&&WS(e));return c===u?e:r.default};function qS(e,t,r){return"function"==typeof r.join?r.join(e):e[0]+t+e[1]}function VS(e,t,r){return"function"!=typeof r.isValid||r.isValid(e,t)}function WS(e){return ZS(e)||Array.isArray(e)||"function"==typeof e}
20
+ const NS=FS;var $S=function(e,t,r){if(NS(r)||(r={default:r}),!zS(e))return void 0!==r.default?r.default:e;"number"==typeof t&&(t=String(t));const n=Array.isArray(t),i="string"==typeof t,o=r.separator||".",a=r.joinChar||("string"==typeof o?o:".");if(!i&&!n)return e;if(i&&t in e)return HS(t,e,r)?e[t]:r.default;let s=n?t:function(e,t,r){if("function"==typeof r.split)return r.split(e);return e.split(t)}(t,o,r),u=s.length,c=0;do{let t=s[c];for("number"==typeof t&&(t=String(t));t&&"\\"===t.slice(-1);)t=GS([t.slice(0,-1),s[++c]||""],a,r);if(t in e){if(!HS(t,e,r))return r.default;e=e[t]}else{let n=!1,i=c+1;for(;i<u;)if(t=GS([t,s[i++]],a,r),n=t in e){if(!HS(t,e,r))return r.default;e=e[t],c=i-1;break}if(!n)return r.default}}while(++c<u&&zS(e));return c===u?e:r.default};function GS(e,t,r){return"function"==typeof r.join?r.join(e):e[0]+t+e[1]}function HS(e,t,r){return"function"!=typeof r.isValid||r.isValid(e,t)}function zS(e){return NS(e)||Array.isArray(e)||"function"==typeof e}
21
21
  /*!
22
22
  * is-primitive <https://github.com/jonschlinkert/is-primitive>
23
23
  *
24
24
  * Copyright (c) 2014-present, Jon Schlinkert.
25
25
  * Released under the MIT License.
26
- */var YS=zS;
26
+ */var ZS=FS;
27
27
  /*!
28
28
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
29
29
  *
30
30
  * Copyright (c) 2014-2017, Jon Schlinkert.
31
31
  * Released under the MIT License.
32
- */function QS(e){return!0===YS(e)&&"[object Object]"===Object.prototype.toString.call(e)}
32
+ */function KS(e){return!0===ZS(e)&&"[object Object]"===Object.prototype.toString.call(e)}
33
33
  /*!
34
34
  * set-value <https://github.com/jonschlinkert/set-value>
35
35
  *
36
36
  * Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
37
37
  * Released under the MIT License.
38
38
  */
39
- const{deleteProperty:JS}=Reflect,XS=function(e){return"object"==typeof e?null===e:"function"!=typeof e},eD=function(e){var t,r;return!1!==QS(e)&&("function"==typeof(t=e.constructor)&&(!1!==QS(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))},tD=e=>"object"==typeof e&&null!==e||"function"==typeof e,rD=e=>{if(!XS(e))throw new TypeError("Object keys must be strings or symbols");if((e=>"__proto__"===e||"constructor"===e||"prototype"===e)(e))throw new Error(`Cannot set unsafe key: "${e}"`)},nD=(e,t,r)=>{const n=(e=>Array.isArray(e)?e.flat().map(String).join(","):e)(t?((e,t)=>{if("string"!=typeof e||!t)return e;let r=e+";";return void 0!==t.arrays&&(r+=`arrays=${t.arrays};`),void 0!==t.separator&&(r+=`separator=${t.separator};`),void 0!==t.split&&(r+=`split=${t.split};`),void 0!==t.merge&&(r+=`merge=${t.merge};`),void 0!==t.preservePaths&&(r+=`preservePaths=${t.preservePaths};`),r})(e,t):e);rD(n);const i=aD.cache.get(n)||r();return aD.cache.set(n,i),i},iD=(e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:nD(e,t,(()=>((e,t={})=>{const r=t.separator||".",n="/"!==r&&t.preservePaths;if("string"==typeof e&&!1!==n&&/\//.test(e))return[e];const i=[];let o="";const a=e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)};for(let t=0;t<e.length;t++){const n=e[t];"\\"!==n?n!==r?o+=n:(a(o),o=""):o+=e[++t]}return o&&a(o),i})(e,t))),oD=(e,t,r,n)=>{if(rD(t),void 0===r)JS(e,t);else if(n&&n.merge){const i="function"===n.merge?n.merge:Object.assign;i&&eD(e[t])&&eD(r)?e[t]=i(e[t],r):e[t]=r}else e[t]=r;return e},aD=(e,t,r,n)=>{if(!t||!tD(e))return e;const i=iD(t,n);let o=e;for(let e=0;e<i.length;e++){const t=i[e],a=i[e+1];if(rD(t),void 0===a){oD(o,t,r,n);break}"number"!=typeof a||Array.isArray(o[t])?(tD(o[t])||(o[t]={}),o=o[t]):o=o[t]=[]}return e};aD.split=iD,aD.cache=new Map,aD.clear=()=>{aD.cache=new Map};var sD,uD=aD;function cD(e){var t=this,n={},i=(null==e?void 0:e._ancestor_origins)||window.location.ancestorOrigins,o=(null==e?void 0:e.self_url)||window.location.href,a=(null==e?void 0:e.self_origin)||window.location.origin,s=(null==e?void 0:e.referrer_url)||document.referrer;function u(e){return KS(n,e)}function c(e,t){return uD(n,e,t)}var d=function(){var e;r(this,t),function(){var e=0,t=window;try{for(;t!=t.parent;)e++,t=t.parent}catch(e){c("depth.error",e.message)}c("depth.value",e)}(),function(){var e=i,t=n.depth.value,r=a;if(c("top.domain.from","fallback"),e&&e.length>0)r=e[e.length-1],c("top.domain.from","origins");else if(0===t)r=a,c("top.domain.from","self-top");else if(1===t){var o=l(s);o&&(r=o.origin,c("top.domain.from","referrer"))}c("top.domain.value",r.replace(/^https?:\/\/(www\.)?(.*)$/i,"$2"))}(),function(){var e=f();if(e)if(HS(e))c("partner.domain.value",e),c("partner.domain.from","partner-domain");else{var t=l(e,!1);if(t)c("partner.domain.value",t.origin.replace(/^https?:\/\/(www\.)?(.*)$/i,"$2")),c("partner.domain.from","partner-url");else c("partner.domain.value",n.top.domain.value),c("partner.domain.from","partner-fallback")}else c("partner.domain.value",n.top.domain.value),c("partner.domain.from","fallback")}(),e=f(),0===n.depth.value?(c("partner.url.value",o),c("partner.url.from","self-top")):e?HS(e)?(c("partner.url.value",o),c("partner.url.from","partner-domain")):(c("partner.url.value",e),c("partner.url.from","partner-url")):(c("partner.url.value",s),c("partner.url.from","fallback"))}.bind(this);function l(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e&&""!==e)try{return new C(e,t)}catch(e){console.log(e)}}function f(){for(var t=(null==e?void 0:e.urls)||[o,s],r=0;r<t.length;r++){var n,i=l(t[r]);if(i){var a=null===(n=i.query)||void 0===n?void 0:n.gd_sdk_referrer_url;if(a&&(a=(a=decodeURIComponent(a)).startsWith("https://")||a.startsWith("http://")?a:"https://".concat(a),gS.isURL(a)))return a}}}return d(),{get:u,print:function(e){console.log(u(e))}}}var dD,lD=function(e){var t=this;if(!sD){var n={gameId:e.gameId,hours:(new Date).getHours(),topDomain:t_.topDomain,domain:t_.parentDomain,referrer:t_.parentURL,depth:pt(),version:Ws.version,byloader:t_.isTokenGameURL,isTokenGameURL:t_.isTokenGameURL,isMasterGameURL:t_.isMasterGameURL,isExtHostedGameURL:t_.isExtHostedGameURL,byloaderVersion:t_.version,tracking:r_.userDeclinedTracking,whitelabel:r_.whitelabelPartner,platform:lt()};sD=new It(n)}return sD||{send:function(){r(this,t)}.bind(this)}},fD={getGameData:function(e){var t=this;try{var n=e.replace("game.api.gamedistribution.com","game-api.gamedistribution.com");fetch(n).then(function(e){r(this,t)}.bind(this)).catch(function(e){r(this,t)}.bind(this))}catch(e){}},getGameLoaderIndex:function(e){var t=this;try{var n="https://html5-prod-aws.gamedistribution.com/".concat(e,"/");fetch(n).then(function(e){r(this,t)}.bind(this)).catch(function(e){r(this,t)}.bind(this))}catch(e){}}},pD={exports:{}},hD="object"==typeof Reflect?Reflect:null,mD=hD&&"function"==typeof hD.apply?hD.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};dD=hD&&"function"==typeof hD.ownKeys?hD.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var vD=Number.isNaN||function(e){return e!=e};function gD(){gD.init.call(this)}pD.exports=gD,pD.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}DD(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&DD(e,"error",t,r)}(e,i,{once:!0})}))},gD.EventEmitter=gD,gD.prototype._events=void 0,gD.prototype._eventsCount=0,gD.prototype._maxListeners=void 0;var AD=10;function bD(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function yD(e){return void 0===e._maxListeners?gD.defaultMaxListeners:e._maxListeners}function _D(e,t,r,n){var i,o,a,s;if(bD(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=yD(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function wD(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function xD(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=wD.bind(n);return i.listener=r,n.wrapFn=i,i}function kD(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):SD(i,i.length)}function ED(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function SD(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function DD(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(gD,"defaultMaxListeners",{enumerable:!0,get:function(){return AD},set:function(e){if("number"!=typeof e||e<0||vD(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");AD=e}}),gD.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},gD.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||vD(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},gD.prototype.getMaxListeners=function(){return yD(this)},gD.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)mD(s,this,t);else{var u=s.length,c=SD(s,u);for(r=0;r<u;++r)mD(c[r],this,t)}return!0},gD.prototype.addListener=function(e,t){return _D(this,e,t,!1)},gD.prototype.on=gD.prototype.addListener,gD.prototype.prependListener=function(e,t){return _D(this,e,t,!0)},gD.prototype.once=function(e,t){return bD(t),this.on(e,xD(this,e,t)),this},gD.prototype.prependOnceListener=function(e,t){return bD(t),this.prependListener(e,xD(this,e,t)),this},gD.prototype.removeListener=function(e,t){var r,n,i,o,a;if(bD(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},gD.prototype.off=gD.prototype.removeListener,gD.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},gD.prototype.listeners=function(e){return kD(this,e,!0)},gD.prototype.rawListeners=function(e){return kD(this,e,!1)},gD.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):ED.call(e,t)},gD.prototype.listenerCount=ED,gD.prototype.eventNames=function(){return this._eventsCount>0?dD(this._events):[]};var RD={prod:["html5.gamedistribution.com","revision.gamedistribution.com"],acc:["html5-acc-real-aws.gamedistribution.com","acceptance-revision.gamedistribution.com"]},ID={gameAPI:"game.api.gamedistribution.com"},CD={gameAPI:"game-api-acc-real-aws.gamedistribution.com"},OD=function(){var e=this,t=RD.acc.some(function(t){var n;return r(this,e),t===(null===(n=window.location.host)||void 0===n?void 0:n.toLowerCase())}.bind(this));return{env:t?"acc":"prod",config:t?CD:ID}},TD=function(e){var t=this,n=e.url;return new Promise(function(e,i){r(this,t);var o=new XMLHttpRequest;o.open("GET",n,!0),o.onreadystatechange=function(){if(4==o.readyState)if(200==o.status){var t=JSON.parse(o.responseText);e(t)}else i(Error("Error occured on request: ".concat(o.status,", ").concat(o.statusText)))},o.onerror=function(e){i(e)},o.send()}.bind(this))};function PD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function MD(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?PD(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PD(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var LD,BD,jD,UD=new pD.exports.EventEmitter,FD=[],ND=function(e){FD.push(e)},$D=function(e){LD=lD(jD=e)},GD=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(BD){e.next=6;break}return e.next=3,ZD(jD);case 3:BD=e.sent,UD.emit("game-data-ready",BD),HD();case 6:return e.abrupt("return",BD);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),HD=function(){var e,r;if(null!==(e=BD)&&void 0!==e&&null!==(r=e.aws_tst)&&void 0!==r&&r.enabled){var n,i,o,a,s;if(zD(),null!==(n=BD)&&void 0!==n&&null!==(i=n.aws_tst)&&void 0!==i&&null!==(o=i.ep)&&void 0!==o&&o.api&&null!==(a=BD)&&void 0!==a&&a.url)fD.getGameData(null===(s=BD)||void 0===s?void 0:s.url);setInterval(t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ZD(jD);case 3:BD=e.sent,Js("gd-aws-test, new game data received",null===(t=BD)||void 0===t?void 0:t.aws_tst),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])}))),3e5)}},zD=function(){var e=window.fetch;window.fetch=t(d.mark((function t(){var n,i,o,a,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x=this,k=arguments;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(c=k.length,l=new Array(c),f=0;f<c;f++)l[f]=k[f];p=l[0],h=l[1],m=null===(n=BD)||void 0===n||null===(i=n.aws_tst)||void 0===i||null===(o=i.ep)||void 0===o?void 0:o.atm,v=null===(a=BD)||void 0===a||null===(s=a.aws_tst)||void 0===s||null===(u=s.ep)||void 0===u?void 0:u.msgrt,g=function(t,n){var i=this;r(this,x);var o=p.replace(t,n);e(o,h).then(function(){r(this,i)}.bind(this))}.bind(this);try{m&&p.indexOf("tag.atom")>0&&g("tag.atom.gamedistribution.com","atom-tag-prod-aws.gamedistribution.com"),v&&p.indexOf("msgrt.gamedistribution.com")>0&&(Js("gd-aws-test hook",null===(A=BD)||void 0===A?void 0:A.aws_tst,null===(b=BD)||void 0===b||null===(y=b.aws_tst)||void 0===y||null===(_=y.ep)||void 0===_?void 0:_.msgrt),g("msgrt.gamedistribution.com","msgrt-prod-aws.gamedistribution.com"))}catch(e){}return t.next=9,e(p,h);case 9:return w=t.sent,t.abrupt("return",w);case 11:case"end":return t.stop()}}),t,this)})))},ZD=function(e){var n=this;LD.send("gdfw.loading",{message:"loading"}),FD=[],ND("1"),ND("2");var i=new cD;ND("3");var o=i.get("partner.domain.value");ND("4");var a=function(){return r(this,n),{gameId:e.gameId,disableAds:{},preroll:!0,midroll:12e4,rewardedAds:!1,title:"",tags:[],category:"",assets:[],dmain:!0,sdk:{},loader:{},splash:{},promo:{},dAds:{},pAds:{},mAds:{},rAds:{}}}.bind(this);ND("5");var s=function(){r(this,n);var t=u(),i=t?"&mode=".concat(t):"",a=OD().config;return"https://".concat(a.gameAPI,"/game/v4/get/").concat(e.gameId.replace(/-/g,""),"/?domain=").concat(o).concat(i,"&v=").concat(Ws.version,"&localTime=").concat((new Date).getHours())}.bind(this);ND("6");var u=function(){var e=this;r(this,n);var t=new Proxy(new URLSearchParams(window.location.search),{get:function(t,n){return r(this,e),t.get(n)}.bind(this)});return!t.gd_mode&&window.location.search.includes("gd_mode")?window.location.search.split("gd_mode=")[1]:t.gd_mode}.bind(this);return ND("7"),new Promise(function(e){var i=this;r(this,n),ND("7.1");var o=a();try{ND("7.2");var u=s();ND("7.3"),fetch(u).then(function(){var e=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ND("7.4"),e.prev=1,e.next=4,t.json();case 4:r=e.sent,e.next=13;break;case 7:return e.prev=7,e.t0=e.catch(1),Js("gameData fetch error, fallback to other ajax api",e.t0),e.next=12,TD({url:u});case 12:r=e.sent;case 13:return e.abrupt("return",r);case 14:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t){return e.apply(this,arguments)}}()).then(function(t){var n=this;if(r(this,i),ND("7.5"),t.success){var a,s,c,d=t.result.game;ND("7.6");var l={company:d.company,gameId:d.gameMd5,slug:d.slug,pname:d.pname,dname:d.dname,status:d.status,activeStatus:d.activeStatus,description:d.description,disableAds:d.enableAds,preroll:d.preRoll,midroll:6e4*d.timeAds,rewardedAds:d.rewardedAds,title:d.title,publishedAt:d.publishedAt,tags:d.tags,category:d.category,assets:d.assets,disp_2nd_prer:d.disp_2nd_prer,ctry_vst:d.ctry_vst,ctry:d.ctry,crtv:d.crtv,dmain:d.dmain,dmn:d.dmn,aws_tst:d.aws_tst,meta:d.meta,adsc:d.adsc,adspn:Ys(d.adspn)||{},__t4r:Ys(d.__t4r)||{},block_exts:Ys(d.push_cuda),bloc_gard:Ys(d.bloc_gard),cookie:Ys(d.cookie),gdpr:Ys(d.gdpr),diagnostic:Ys(d.diagnostic),cmp:Ys(d.cmp),gft:Ys(d.gft)||{},sdk:Ys(d.sdk)||{},sdkfw:Ys(d.sdkfw)||{},loader:Ys(d.loader)||{},splash:Ys(d.splash)||{},promo:Ys(d.promo)||{},dAds:Ys(d.dads)||{},pAds:Ys(d.pads)||{},mAds:Ys(d.mads)||{},rAds:Ys(d.rads)||{},lp:Ys(d.lp)||{},extsc:Ys(d.extsc)||{},evnts:Ys(d.evnts)||{},dp:Ys(d.dp)||{},adflw:Ys(d.adflw)||{},afgszf:Ys(d.afgszf)||{},fllc:Ys(d.fllc)||{},lotm:Ys(d.lotm)||{},t4rc:Ys(d.t4rc)||{},midroll_plus:Ys(d.midroll_plus)||{},gmky:Ys(d.gmky)||{},urlBlockExc:Ys(d.url_blck_exc)||{},sdk_wrp:Ys(d.sdk_wrp)||{},dbglg:Ys(d.dbglg)||{},extHosting:Ys(d.ext_hosting)||{},directTokenUse:Ys(d.dtu)||{},aeria:Ys(d.aeria)||{},advlm:Ys(d.advlm)||{},ad_blcks:Ys(d.ad_blcks)||{},rmblck:Ys(d.rmblck)||{},gs_trc:Ys(d.gs_trc)||{},rwskp:Ys(d.rwskp)||{},isv_fw:Ys(d.isv_fw)||{},ext_vst:Ys(d.ext_vst)||{},fix_score:Ys(d.fix_score)||{},compensation:Ys(d.comps)||{},adTimer:Ys(d.adtr)||{},cust_vast:Ys(d.cust_vast)||{}};ND("7.7");var f=it(B(o),l);ND("7.8"),f.afg_disabled=!1===(null===(a=f.sdk)||void 0===a||null===(s=a.afg)||void 0===s?void 0:s.enabled),f.url=u,function(){r(this,n),void 0!==tu.afgEnabled&&(f.afg_disabled=!tu.afgEnabled),void 0!==tu.promoEnabled&&(f.promo=f.promo||{},f.promo=MD(MD({},f.promo),{},{rainbow:{enabled:tu.promoEnabled}}))}.bind(this),ND("7.9"),null!==(c=f.pAds)&&void 0!==c&&c.enabled&&(f.preroll=!0),ND("7.10"),LD.send("gdfw.success",{message:"success"}),e(f)}else{o.failed=!0;var p=FD[FD.length-1];LD.send("gdfw.err",{message:"".concat(p,": json error")}),e(o)}}.bind(this)).catch(function(t){r(this,i);var n=FD[FD.length-1];LD.send("gdfw.err",{message:"".concat(n,": ").concat(t.message?t.message:t)}),o.failed=!0,e(o)}.bind(this))}catch(t){var c=FD[FD.length-1];LD.send("gdfw.err",{message:"".concat(c,": global ").concat(t.message?t.message:t)}),o.failed=!0,e(o)}}.bind(this))},KD=function(){var e=t(d.mark((function e(){var t,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GD();case 2:return r=e.sent,e.abrupt("return",!(null==r||null===(t=r.sdkfw)||void 0===t||!t.enabled));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),qD=function(){var e=t(d.mark((function e(){var t,r,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GD();case 2:return r=e.sent,n=null==r||null===(t=r.diagnostic)||void 0===t||!t.close_ga,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),VD=function(){var e=t(d.mark((function e(){var t,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GD();case 2:return r=e.sent,e.next=5,KD();case 5:if(e.t0=e.sent,!e.t0){e.next=8;break}e.t0=!(null==r||null===(t=r.sdkfw)||void 0===t||!t.handshake);case 8:return e.abrupt("return",e.t0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),WD=function(){var e=t(d.mark((function e(){var t,r,n,i,o,a,s,u;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GD();case 2:return s=e.sent,u=!(null==s||null===(t=s.extsc)||void 0===t||!t.enabled),e.abrupt("return",{enabled:u,path:u?null==s||null===(r=s.extsc)||void 0===r?void 0:r.path:"",name:u?null==s||null===(n=s.extsc)||void 0===n?void 0:n.name:"",ref:u?null==s||null===(i=s.extsc)||void 0===i?void 0:i.ref:"",loadedFlag:u?null==s||null===(o=s.extsc)||void 0===o?void 0:o.loadedFlag:void 0,loadedFlagCheck:!!u&&!(null==s||null===(a=s.extsc)||void 0===a||!a.loadedFlagCheck)});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),YD=function(){var e=t(d.mark((function e(){var t,n,i,o,a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,WD();case 2:if((t=e.sent).enabled){e.next=5;break}return e.abrupt("return");case 5:return n=t.path,i=t.name,o=t.ref,e.prev=6,a={},e.next=10,ft(n,i,{error_prefix:"Blocked:",exists:function(){return r(this,s),!!o&&!!window[o]}.bind(this),attrs:a});case 10:e.next=16;break;case 12:e.prev=12,e.t0=e.catch(6),console.log("extsc: error on external partner script load",i,e.t0),yt("DEVELOPER_ERROR",e.t0,"warning");case 16:case"end":return e.stop()}}),e,this,[[6,12]])})));return function(){return e.apply(this,arguments)}}(),QD=!1,JD=!1,XD=function(){return new Promise(function(){var e=t(d.mark((function e(t,n){var i,o,a,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!QD){e.next=4;break}return e.abrupt("return",t(JD));case 4:QD=!0;case 5:return e.next=7,WD();case 7:if((i=e.sent).enabled){e.next=10;break}return e.abrupt("return",t(!1));case 10:if(o=i.loadedFlag,!(a=i.loadedFlagCheck)||o){e.next=13;break}return e.abrupt("return",t(!1));case 13:if(a){e.next=16;break}return JD=!0,e.abrupt("return",t(!0));case 16:s=!0,setTimeout(function(){r(this,c),s&&(s=!1,QD=!0,t(!1))}.bind(this),5e3),u=setInterval(function(){r(this,c),s&&a&&window[o]?(s=!1,QD=!0,JD=!0,clearInterval(u),t(!0)):s||clearInterval(u)}.bind(this),100);case 19:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}())},eR=Gs,tR=tg,rR=zt,nR=un,iR=Fr,oR=Ym,aR=nb,sR=ro,uR=tR&&tR.prototype;if(eR({target:"Promise",proto:!0,real:!0,forced:!!tR&&rR((function(){uR.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=oR(this,nR("Promise")),r=iR(e);return this.then(r?function(r){return aR(t,e()).then((function(){return r}))}:e,r?function(r){return aR(t,e()).then((function(){throw r}))}:e)}}),iR(tR)){var cR=nR("Promise").prototype.finally;uR.finally!==cR&&sR(uR,"finally",cR,{unsafe:!0})}var dR="\t\n\v\f\r                 \u2028\u2029\ufeff",lR=er,fR=ou,pR=dR,hR=Yt("".replace),mR=RegExp("^["+pR+"]+"),vR=RegExp("(^|[^"+pR+"])["+pR+"]+$"),gR=function(e){return function(t){var r=fR(lR(t));return 1&e&&(r=hR(r,mR,"")),2&e&&(r=hR(r,vR,"$1")),r}},AR={start:gR(1),end:gR(2),trim:gR(3)},bR=ti.PROPER,yR=zt,_R=dR,wR=AR.trim;Gs({target:"String",proto:!0,forced:function(e){return yR((function(){return!!_R[e]()||"​…᠎"!=="​…᠎"[e]()||bR&&_R[e].name!==e}))}("trim")},{trim:function(){return wR(this)}});var xR=Gs,kR=ya.find,ER=om,SR="find",DR=!0;SR in[]&&Array(1)[SR]((function(){DR=!1})),xR({target:"Array",proto:!0,forced:DR},{find:function(e){return kR(this,e,arguments.length>1?arguments[1]:void 0)}}),ER(SR);var RR=Fr,IR=zr,CR=kp,OR=Nr.f,TR=$r,PR=Pt,MR=Yt,LR=Ms,BR=function(e,t,r){var n,i;return CR&&RR(n=t.constructor)&&n!==r&&IR(i=n.prototype)&&i!==r.prototype&&CR(e,i),e},jR=mi,UR=Wa.f,FR=cn,NR=Zb,$R=ou,GR=hy,HR=sh,zR=function(e,t,r){r in e||OR(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},ZR=ro,KR=zt,qR=ar,VR=Mi.enforce,WR=Fm,YR=dh,QR=ph,JR=Pr("match"),XR=PR.RegExp,eI=XR.prototype,tI=PR.SyntaxError,rI=MR(eI.exec),nI=MR("".charAt),iI=MR("".replace),oI=MR("".indexOf),aI=MR("".slice),sI=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,uI=/a/g,cI=/a/g,dI=new XR(uI)!==uI,lI=HR.MISSED_STICKY,fI=HR.UNSUPPORTED_Y,pI=TR&&(!dI||lI||YR||QR||KR((function(){return cI[JR]=!1,XR(uI)!=uI||XR(cI)==cI||"/a/i"!=XR(uI,"i")})));if(LR("RegExp",pI)){for(var hI=function(e,t){var r,n,i,o,a,s,u=FR(eI,this),c=NR(e),d=void 0===t,l=[],f=e;if(!u&&c&&d&&e.constructor===hI)return e;if((c||FR(eI,e))&&(e=e.source,d&&(t=GR(f))),e=void 0===e?"":$R(e),t=void 0===t?"":$R(t),f=e,YR&&"dotAll"in uI&&(n=!!t&&oI(t,"s")>-1)&&(t=iI(t,/s/g,"")),r=t,lI&&"sticky"in uI&&(i=!!t&&oI(t,"y")>-1)&&fI&&(t=iI(t,/y/g,"")),QR&&(o=function(e){for(var t,r=e.length,n=0,i="",o=[],a={},s=!1,u=!1,c=0,d="";n<=r;n++){if("\\"===(t=nI(e,n)))t+=nI(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:rI(sI,aI(e,n+1))&&(n+=2,u=!0),i+=t,c++;continue;case">"===t&&u:if(""===d||qR(a,d))throw new tI("Invalid capture group name");a[d]=!0,o[o.length]=[d,c],u=!1,d="";continue}u?d+=t:i+=t}return[i,o]}(e),e=o[0],l=o[1]),a=BR(XR(e,t),u?this:eI,hI),(n||i||l.length)&&(s=VR(a),n&&(s.dotAll=!0,s.raw=hI(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=nI(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+nI(e,++n);return i}(e),r)),i&&(s.sticky=!0),l.length&&(s.groups=l)),e!==f)try{jR(a,"source",""===f?"(?:)":f)}catch(e){}return a},mI=UR(XR),vI=0;mI.length>vI;)zR(hI,XR,mI[vI++]);eI.constructor=hI,hI.prototype=eI,ZR(PR,"RegExp",hI,{constructor:!0})}WR("RegExp");var gI=$r,AI=Yt,bI=Zs,yI=Fa,_I=AI(Pa.f),wI=AI([].push),xI=function(e){return function(t){for(var r,n=yI(t),i=bI(n),o=i.length,a=0,s=[];o>a;)r=i[a++],gI&&!_I(n,r)||wI(s,e?[r,n[r]]:n[r]);return s}},kI={entries:xI(!0),values:xI(!1)}.values;Gs({target:"Object",stat:!0},{values:function(e){return kI(e)}});var EI=Gs,SI=Po,DI=Fa,RI=wa,II=Yt([].join);EI({target:"Array",proto:!0,forced:SI!=Object||!RI("join",",")},{join:function(e){return II(DI(this),void 0===e?",":e)}});var CI=ya.map;Gs({target:"Array",proto:!0,forced:!bl("map")},{map:function(e){return CI(this,e,arguments.length>1?arguments[1]:void 0)}});var OI=$r,TI=Yt,PI=on,MI=zt,LI=Zs,BI=hs,jI=Pa,UI=nr,FI=Po,NI=Object.assign,$I=Object.defineProperty,GI=TI([].concat),HI=!NI||MI((function(){if(OI&&1!==NI({b:1},NI($I({},"a",{enumerable:!0,get:function(){$I(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=NI({},e)[r]||LI(NI({},t)).join("")!=n}))?function(e,t){for(var r=UI(e),n=arguments.length,i=1,o=BI.f,a=jI.f;n>i;)for(var s,u=FI(arguments[i++]),c=o?GI(LI(u),o(u)):LI(u),d=c.length,l=0;d>l;)s=c[l++],OI&&!PI(a,u,s)||(r[s]=u[s]);return r}:NI,zI=HI;Gs({target:"Object",stat:!0,arity:2,forced:Object.assign!==zI},{assign:zI});var ZI,KI=Yt,qI=2147483647,VI=/[^\0-\u007E]/,WI=/[.\u3002\uFF0E\uFF61]/g,YI="Overflow: input needs wider integers to process",QI=RangeError,JI=KI(WI.exec),XI=Math.floor,eC=String.fromCharCode,tC=KI("".charCodeAt),rC=KI([].join),nC=KI([].push),iC=KI("".replace),oC=KI("".split),aC=KI("".toLowerCase),sC=function(e){return e+22+75*(e<26)},uC=function(e,t,r){var n=0;for(e=r?XI(e/700):e>>1,e+=XI(e/t);e>455;)e=XI(e/35),n+=36;return XI(n+36*e/(e+38))},cC=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=tC(e,r++);if(i>=55296&&i<=56319&&r<n){var o=tC(e,r++);56320==(64512&o)?nC(t,((1023&i)<<10)+(1023&o)+65536):(nC(t,i),r--)}else nC(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&nC(t,eC(n));var u=t.length,c=u;for(u&&nC(t,"-");c<i;){var d=qI;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<d&&(d=n);var l=c+1;if(d-o>XI((qI-a)/l))throw QI(YI);for(a+=(d-o)*l,o=d,r=0;r<e.length;r++){if((n=e[r])<o&&++a>qI)throw QI(YI);if(n==o){for(var f=a,p=36;;){var h=p<=s?1:p>=s+26?26:p-s;if(f<h)break;var m=f-h,v=36-h;nC(t,eC(sC(h+m%v))),f=XI(m/v),p+=36}nC(t,eC(sC(f))),s=uC(a,l,c==u),a=0,c++}}a++,o++}return rC(t,"")},dC=Gs,lC=$r,fC=G_,pC=Pt,hC=Ro,mC=Yt,vC=ro,gC=qu,AC=Gm,bC=ar,yC=HI,_C=Sf,wC=Fu,xC=zf.codeAt,kC=function(e){var t,r,n=[],i=oC(iC(aC(e),WI,"."),".");for(t=0;t<i.length;t++)r=i[t],nC(n,JI(VI,r)?"xn--"+cC(r):r);return rC(n,".")},EC=ou,SC=uc,DC=Jm,RC=cx,IC=Mi,CC=IC.set,OC=IC.getterFor("URL"),TC=RC.URLSearchParams,PC=RC.getState,MC=pC.URL,LC=pC.TypeError,BC=pC.parseInt,jC=Math.floor,UC=Math.pow,FC=mC("".charAt),NC=mC(/./.exec),$C=mC([].join),GC=mC(1..toString),HC=mC([].pop),zC=mC([].push),ZC=mC("".replace),KC=mC([].shift),qC=mC("".split),VC=mC("".slice),WC=mC("".toLowerCase),YC=mC([].unshift),QC="Invalid scheme",JC="Invalid host",XC="Invalid port",eO=/[a-z]/i,tO=/[\d+-.a-z]/i,rO=/\d/,nO=/^0x/i,iO=/^[0-7]+$/,oO=/^\d+$/,aO=/^[\da-f]+$/i,sO=/[\0\t\n\r #%/:<>?@[\\\]^|]/,uO=/[\0\t\n\r #/:<>?@[\\\]^|]/,cO=/^[\u0000-\u0020]+/,dO=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,lO=/[\t\n\r]/g,fO=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)YC(t,e%256),e=jC(e/256);return $C(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=GC(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},pO={},hO=yC({},pO,{" ":1,'"':1,"<":1,">":1,"`":1}),mO=yC({},hO,{"#":1,"?":1,"{":1,"}":1}),vO=yC({},mO,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),gO=function(e,t){var r=xC(e,0);return r>32&&r<127&&!bC(t,e)?e:encodeURIComponent(e)},AO={ftp:21,file:null,http:80,https:443,ws:80,wss:443},bO=function(e,t){var r;return 2==e.length&&NC(eO,FC(e,0))&&(":"==(r=FC(e,1))||!t&&"|"==r)},yO=function(e){var t;return e.length>1&&bO(VC(e,0,2))&&(2==e.length||"/"===(t=FC(e,2))||"\\"===t||"?"===t||"#"===t)},_O=function(e){return"."===e||"%2e"===WC(e)},wO={},xO={},kO={},EO={},SO={},DO={},RO={},IO={},CO={},OO={},TO={},PO={},MO={},LO={},BO={},jO={},UO={},FO={},NO={},$O={},GO={},HO=function(e,t,r){var n,i,o,a=EC(e);if(t){if(i=this.parse(a))throw LC(i);this.searchParams=null}else{if(void 0!==r&&(n=new HO(r,!0)),i=this.parse(a,null,n))throw LC(i);(o=PC(new TC)).bindURL(this),this.searchParams=o}};HO.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,u=this,c=t||wO,d=0,l="",f=!1,p=!1,h=!1;for(e=EC(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=ZC(e,cO,""),e=ZC(e,dO,"$1")),e=ZC(e,lO,""),n=_C(e);d<=n.length;){switch(i=n[d],c){case wO:if(!i||!NC(eO,i)){if(t)return QC;c=kO;continue}l+=WC(i),c=xO;break;case xO:if(i&&(NC(tO,i)||"+"==i||"-"==i||"."==i))l+=WC(i);else{if(":"!=i){if(t)return QC;l="",c=kO,d=0;continue}if(t&&(u.isSpecial()!=bC(AO,l)||"file"==l&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=l,t)return void(u.isSpecial()&&AO[u.scheme]==u.port&&(u.port=null));l="","file"==u.scheme?c=LO:u.isSpecial()&&r&&r.scheme==u.scheme?c=EO:u.isSpecial()?c=IO:"/"==n[d+1]?(c=SO,d++):(u.cannotBeABaseURL=!0,zC(u.path,""),c=NO)}break;case kO:if(!r||r.cannotBeABaseURL&&"#"!=i)return QC;if(r.cannotBeABaseURL&&"#"==i){u.scheme=r.scheme,u.path=wC(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=GO;break}c="file"==r.scheme?LO:DO;continue;case EO:if("/"!=i||"/"!=n[d+1]){c=DO;continue}c=CO,d++;break;case SO:if("/"==i){c=OO;break}c=FO;continue;case DO:if(u.scheme=r.scheme,i==ZI)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=wC(r.path),u.query=r.query;else if("/"==i||"\\"==i&&u.isSpecial())c=RO;else if("?"==i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=wC(r.path),u.query="",c=$O;else{if("#"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=wC(r.path),u.path.length--,c=FO;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=wC(r.path),u.query=r.query,u.fragment="",c=GO}break;case RO:if(!u.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=FO;continue}c=OO}else c=CO;break;case IO:if(c=CO,"/"!=i||"/"!=FC(l,d+1))continue;d++;break;case CO:if("/"!=i&&"\\"!=i){c=OO;continue}break;case OO:if("@"==i){f&&(l="%40"+l),f=!0,o=_C(l);for(var m=0;m<o.length;m++){var v=o[m];if(":"!=v||h){var g=gO(v,vO);h?u.password+=g:u.username+=g}else h=!0}l=""}else if(i==ZI||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(f&&""==l)return"Invalid authority";d-=_C(l).length+1,l="",c=TO}else l+=i;break;case TO:case PO:if(t&&"file"==u.scheme){c=jO;continue}if(":"!=i||p){if(i==ZI||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(u.isSpecial()&&""==l)return JC;if(t&&""==l&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(l))return a;if(l="",c=UO,t)return;continue}"["==i?p=!0:"]"==i&&(p=!1),l+=i}else{if(""==l)return JC;if(a=u.parseHost(l))return a;if(l="",c=MO,t==PO)return}break;case MO:if(!NC(rO,i)){if(i==ZI||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()||t){if(""!=l){var A=BC(l,10);if(A>65535)return XC;u.port=u.isSpecial()&&A===AO[u.scheme]?null:A,l=""}if(t)return;c=UO;continue}return XC}l+=i;break;case LO:if(u.scheme="file","/"==i||"\\"==i)c=BO;else{if(!r||"file"!=r.scheme){c=FO;continue}if(i==ZI)u.host=r.host,u.path=wC(r.path),u.query=r.query;else if("?"==i)u.host=r.host,u.path=wC(r.path),u.query="",c=$O;else{if("#"!=i){yO($C(wC(n,d),""))||(u.host=r.host,u.path=wC(r.path),u.shortenPath()),c=FO;continue}u.host=r.host,u.path=wC(r.path),u.query=r.query,u.fragment="",c=GO}}break;case BO:if("/"==i||"\\"==i){c=jO;break}r&&"file"==r.scheme&&!yO($C(wC(n,d),""))&&(bO(r.path[0],!0)?zC(u.path,r.path[0]):u.host=r.host),c=FO;continue;case jO:if(i==ZI||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&bO(l))c=FO;else if(""==l){if(u.host="",t)return;c=UO}else{if(a=u.parseHost(l))return a;if("localhost"==u.host&&(u.host=""),t)return;l="",c=UO}continue}l+=i;break;case UO:if(u.isSpecial()){if(c=FO,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=ZI&&(c=FO,"/"!=i))continue}else u.fragment="",c=GO;else u.query="",c=$O;break;case FO:if(i==ZI||"/"==i||"\\"==i&&u.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=WC(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==i||"\\"==i&&u.isSpecial()||zC(u.path,"")):_O(l)?"/"==i||"\\"==i&&u.isSpecial()||zC(u.path,""):("file"==u.scheme&&!u.path.length&&bO(l)&&(u.host&&(u.host=""),l=FC(l,0)+":"),zC(u.path,l)),l="","file"==u.scheme&&(i==ZI||"?"==i||"#"==i))for(;u.path.length>1&&""===u.path[0];)KC(u.path);"?"==i?(u.query="",c=$O):"#"==i&&(u.fragment="",c=GO)}else l+=gO(i,mO);break;case NO:"?"==i?(u.query="",c=$O):"#"==i?(u.fragment="",c=GO):i!=ZI&&(u.path[0]+=gO(i,pO));break;case $O:t||"#"!=i?i!=ZI&&("'"==i&&u.isSpecial()?u.query+="%27":u.query+="#"==i?"%23":gO(i,pO)):(u.fragment="",c=GO);break;case GO:i!=ZI&&(u.fragment+=gO(i,hO))}d++}},parseHost:function(e){var t,r,n;if("["==FC(e,0)){if("]"!=FC(e,e.length-1))return JC;if(t=function(e){var t,r,n,i,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,d=null,l=0,f=function(){return FC(e,l)};if(":"==f()){if(":"!=FC(e,1))return;l+=2,d=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=r=0;r<4&&NC(aO,f());)t=16*t+BC(f(),16),l++,r++;if("."==f()){if(0==r)return;if(l-=r,c>6)return;for(n=0;f();){if(i=null,n>0){if(!("."==f()&&n<4))return;l++}if(!NC(rO,f()))return;for(;NC(rO,f());){if(o=BC(f(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;l++}u[c]=256*u[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==f()){if(l++,!f())return}else if(f())return;u[c++]=t}else{if(null!==d)return;l++,d=++c}}if(null!==d)for(a=c-d,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[d+a-1],u[d+--a]=s;else if(8!=c)return;return u}(VC(e,1,-1)),!t)return JC;this.host=t}else if(this.isSpecial()){if(e=kC(e),NC(sO,e))return JC;if(t=function(e){var t,r,n,i,o,a,s,u=qC(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=u[n]))return e;if(o=10,i.length>1&&"0"==FC(i,0)&&(o=NC(nO,i)?16:8,i=VC(i,8==o?1:2)),""===i)a=0;else{if(!NC(10==o?oO:8==o?iO:aO,i))return e;a=BC(i,o)}zC(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=UC(256,5-t))return null}else if(a>255)return null;for(s=HC(r),n=0;n<r.length;n++)s+=r[n]*UC(256,3-n);return s}(e),null===t)return JC;this.host=t}else{if(NC(uO,e))return JC;for(t="",r=_C(e),n=0;n<r.length;n++)t+=gO(r[n],pO);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return bC(AO,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&bO(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=fO(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+$C(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw LC(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new zO(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+fO(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(EC(e)+":",wO)},getUsername:function(){return this.username},setUsername:function(e){var t=_C(EC(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=gO(t[r],vO)}},getPassword:function(){return this.password},setPassword:function(e){var t=_C(EC(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=gO(t[r],vO)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?fO(e):fO(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,TO)},getHostname:function(){var e=this.host;return null===e?"":fO(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,PO)},getPort:function(){var e=this.port;return null===e?"":EC(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=EC(e))?this.port=null:this.parse(e,MO))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+$C(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,UO))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=EC(e))?this.query=null:("?"==FC(e,0)&&(e=VC(e,1)),this.query="",this.parse(e,$O)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=EC(e))?("#"==FC(e,0)&&(e=VC(e,1)),this.fragment="",this.parse(e,GO)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var zO=function(e){var t=AC(this,ZO),r=DC(arguments.length,1)>1?arguments[1]:void 0,n=CC(t,new HO(e,!1,r));lC||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},ZO=zO.prototype,KO=function(e,t){return{get:function(){return OC(this)[e]()},set:t&&function(e){return OC(this)[t](e)},configurable:!0,enumerable:!0}};if(lC&&(gC(ZO,"href",KO("serialize","setHref")),gC(ZO,"origin",KO("getOrigin")),gC(ZO,"protocol",KO("getProtocol","setProtocol")),gC(ZO,"username",KO("getUsername","setUsername")),gC(ZO,"password",KO("getPassword","setPassword")),gC(ZO,"host",KO("getHost","setHost")),gC(ZO,"hostname",KO("getHostname","setHostname")),gC(ZO,"port",KO("getPort","setPort")),gC(ZO,"pathname",KO("getPathname","setPathname")),gC(ZO,"search",KO("getSearch","setSearch")),gC(ZO,"searchParams",KO("getSearchParams")),gC(ZO,"hash",KO("getHash","setHash"))),vC(ZO,"toJSON",(function(){return OC(this).serialize()}),{enumerable:!0}),vC(ZO,"toString",(function(){return OC(this).serialize()}),{enumerable:!0}),MC){var qO=MC.createObjectURL,VO=MC.revokeObjectURL;qO&&vC(zO,"createObjectURL",hC(qO,MC)),VO&&vC(zO,"revokeObjectURL",hC(VO,MC))}SC(zO,"URL"),dC({global:!0,constructor:!0,forced:!fC,sham:!lC},{URL:zO});var WO=function(){function e(t){O(this,e),this.gameData=t,this.customParamKeys=["vid","_1ld","_1lp"]}return M(e,[{key:"_getFakeCustomParams",value:function(){var e={_vid:["bla_bla1","bla_bla2","bla_bla3"],_1ld:["1ld_1","1ld_2","1ld_3","1ld_4"],_1lp:["1lp_1","1lp_2"]},t={};for(var r in e){var n=e[r];t[r]=n[Math.floor(Math.random()*n.length)]}return t}},{key:"checkCustomParams",value:function(){var e=this;try{var t={},n=this.gameData.diagnostic&&this.gameData.diagnostic.cp&&this.gameData.diagnostic.cp.enabled,i=new C(location.href,!0);for(var o in i.query)t[o]=i.query[o];var a=Object.keys(t).filter(function(t){var n=this;return r(this,e),this.customParamKeys.some(function(e){return r(this,n),e===t}.bind(this))}.bind(this));return a.length>0||n?(console.log("custom-params",t,n),t):void console.log("custom-params, none")}catch(e){console.log("_checkCustomParams.Error",e)}}}]),e}(),YO=function(){function e(t,r){O(this,e),this.adContainer=t,this.onResume=r}return M(e,[{key:"show",value:function(){this.adResumeButton.style.display="block",this.adResumeButtonOverlay.style.display="block"}},{key:"hide",value:function(){this.adResumeButton.style.display="none",this.adResumeButtonOverlay.style.display="none"}},{key:"add",value:function(){var e=this;try{var t=document.createElement("div");this.adResumeButton=t,t.id="gd__resume__button",t.setAttribute("title","Resume"),this.addStyles(),t.classList.add("gd__resume__button"),t.addEventListener("click",function(){r(this,e),this.onResume()}.bind(this)),this.adContainer.appendChild(t);var n=document.createElement("div");this.adResumeButtonOverlay=n,n.id="gd__resume__button__overlay",n.classList.add("gd__resume__button__overlay"),this.adContainer.appendChild(n)}catch(e){console.log("Resume button add error",e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__resume__button__style",e,'\n .gd__resume__button{\n background-image: url("https://img.gamedistribution.com/play-black.svg");\n background-color:white; \n width: 120px;\n height: 120px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(50% - 60px);\n left: calc(50% - 60px);\n margin: 0;\n border-radius: 50%;\n border: 2px solid white;\n animation: play-button 1s ease-in-out infinite alternate;\n -webkit-animation: play-button 1s ease-in-out infinite alternate;\n }\n \n .gd__resume__button__overlay {\n position: fixed;\n display: none;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0,0,0,0.5);\n z-index: 1999;\n cursor: pointer;\n }\n @keyframes play-button {\n 0% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n 100% {\n transform: scale(1.1);\n -webkit-transform: scale(1.1);\n }\n }\n .gd__resume__button:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }\n ')}},{key:"addStylesheet",value:function(e,t,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}(),QO=function(){function e(t,r){O(this,e),this.adContainer=t,this.onResume=r}return M(e,[{key:"show",value:function(){this.rewardLabel.style.display="block"}},{key:"hide",value:function(){this.rewardLabel.style.display="none"}},{key:"add",value:function(){try{var e=document.createElement("div");this.rewardLabel=e;var t=document.createElement("span");t.innerText="To receive the reward, please do not skip the ad",this.addStyles(),e.classList.add("gd__reward__label"),t.classList.add("gd__reward__span"),this.rewardLabel.appendChild(t),this.adContainer.appendChild(e)}catch(e){console.log(e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__reward__label__style",e,"\n .gd__reward__label{\n background-color:black; \n width: 160px;\n // height: 35px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n bottom: 40px;\n left: 10px;\n margin: 0;\n border-radius: 5px;\n border: .5px solid gray;\n text-align: center;\n }\n .gd__reward__label:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }\n .gd__reward__span{\n color: white;\n font-size: 12px;\n padding-left: 5px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ")}},{key:"addStylesheet",value:function(e,t,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}(),JO=function(){function e(t,r,n){O(this,e),this.adContainer=t,this.onResume=r,this.OnSkip=n}return M(e,[{key:"show",value:function(){this.skipAd.style.display="block"}},{key:"hide",value:function(){this.skipAd.style.display="none"}},{key:"add",value:function(){var e=this;try{var t=document.createElement("div");this.skipAd=t;var n=document.createElement("span");n.innerText="Skip Ad >>",this.addStyles(),t.classList.add("gd__skip__ad"),n.classList.add("gd__skip__span"),this.skipAd.appendChild(n),this.adContainer.appendChild(t),this.skipAd.addEventListener("click",function(){r(this,e),this.OnSkip()}.bind(this))}catch(e){console.log(e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__skip__ad__style",e,"\n .gd__skip__ad{\n background-color:black; \n width: 260px;\n // height: 35px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n bottom: 40px;\n right: 0px;\n margin: 0;\n border-radius: 5px;\n border: .5px solid gray;\n text-align: center;\n padding: 10px;\n }\n .gd__skip__ad:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }\n .gd__skip__span{\n color: white;\n font-size: 22px;\n padding-left: 5px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ")}},{key:"addStylesheet",value:function(e,t,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}(),XO=function(){function e(t){O(this,e),this.adContainer=t}return M(e,[{key:"show",value:function(){this.audioLabel.style.display="block"}},{key:"hide",value:function(){this.audioLabel.style.display="none"}},{key:"mute",value:function(){document.getElementById("game").contentWindow.postMessage("mute","*")}},{key:"unmute",value:function(){document.getElementById("game").contentWindow.postMessage("unmute","*")}},{key:"add",value:function(){try{var e=document.createElement("div");this.audioLabel=e;var t=document.createElement("span");t.innerText="Audio Ad is Playing";var r=document.createElement("span");r.innerHTML="&#9432;",this.addStyles(),e.classList.add("gd__audio__label"),t.classList.add("gd__audio__span"),r.classList.add("gd__audio__span"),this.audioLabel.appendChild(r),this.audioLabel.appendChild(t),this.adContainer.appendChild(e)}catch(e){console.log(e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__audio__label__style",e,"\n .gd__audio__label{\n background-color: #ffca00; \n width: 200px;\n position: relative;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: 0px;\n margin: 0 auto;\n border-radius: 0px;\n border: 0px;\n text-align: center;\n height: 30px;\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n padding: 5px;\n }\n .gd__audio__span{\n color: black;\n font-size: 14px;\n padding-left: 5px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ")}},{key:"addStylesheet",value:function(e,t,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}(),eT=function(){function e(t){O(this,e),this.adContainer=t}return M(e,[{key:"show",value:function(){this.t4rButton.style.display="block"}},{key:"hide",value:function(){this.t4rButton.style.display="none"}},{key:"add",value:function(){try{var e=document.createElement("div"),t=document.createElement("p");this.addStyles(),t.innerText="x",e.appendChild(t),e.id="gd__exit__button",e.setAttribute("title","Exit"),e.classList.add("gd__exit__button"),this.t4rButton=e,document.body.appendChild(e)}catch(e){console.log("Exit button add error",e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__exit__button__style",e,"\n .gd__exit__button{\n background-color: transparent; \n width: 50px;\n height: 50px;\n position: absolute;\n pointer-events:none; \n z-index: 2000;\n top: 17px;\n right: 17px;\n margin: 0;\n border-radius: 50px;\n border: 1px solid white;\n text-align: center; \n font-size: 16px;\n line-height: normal;\n font-family: 'Arial';\n font-weight: bolder;\n }\n .gd__exit__button:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }")}},{key:"addStylesheet",value:function(e,t,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}(),tT=new Blob([new Uint8Array([255,227,24,196,0,0,0,3,72,1,64,0,0,4,132,16,31,227,192,225,76,255,67,12,255,221,27,255,228,97,73,63,255,195,131,69,192,232,223,255,255,207,102,239,255,255,255,101,158,206,70,20,59,255,254,95,70,149,66,4,16,128,0,2,2,32,240,138,255,36,106,183,255,227,24,196,59,11,34,62,80,49,135,40,0,253,29,191,209,200,141,71,7,255,252,152,74,15,130,33,185,6,63,255,252,195,70,203,86,53,15,255,255,247,103,76,121,64,32,47,255,34,227,194,209,138,76,65,77,69,51,46,57,55,170,170,170,170,170,170,170,170,170,170,255,227,24,196,73,13,153,210,100,81,135,56,0,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170])],{type:"audio/mpeg"}),rT=new Blob([new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0,0,0,1,15,109,105,110,102,0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49])],{type:"video/mp4"});function nT(e){return Object.assign({muted:!1,timeout:250,inline:!1},e)}function iT(e,t){var r=e.muted,n=e.timeout,i=e.inline,o=t(),a=o.element,s=o.source,u=void 0,c=void 0,d=void 0;return a.muted=r,!0===r&&a.setAttribute("muted","muted"),!0===i&&a.setAttribute("playsinline","playsinline"),a.src=s,new Promise((function(e){u=a.play(),c=setTimeout((function(){d(!1,new Error("Timeout "+n+" ms has been reached"))}),n),d=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;a.remove(),a.srcObject=null,clearTimeout(c),e({result:t,error:r})},void 0!==u?u.then((function(){return d(!0)})).catch((function(e){return d(!1,e)})):d(!0)}))}var oT={audio:function(e){return iT(e=nT(e),(function(){return{element:document.createElement("audio"),source:URL.createObjectURL(tT)}}))},video:function(e){return iT(e=nT(e),(function(){return{element:document.createElement("video"),source:URL.createObjectURL(rT)}}))}},aT={exports:{}};!function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",c="[object Null]",d="[object Object]",l="[object Proxy]",f="[object Undefined]",p=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[o]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m[s]=m["[object Map]"]=m["[object Number]"]=m[d]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;var v="object"==typeof i&&i&&i.Object===Object&&i,g="object"==typeof self&&self&&self.Object===Object&&self,A=v||g||Function("return this")(),b=t&&!t.nodeType&&t,y=b&&e&&!e.nodeType&&e,_=y&&y.exports===b,w=_&&v.process,x=function(){try{var e=y&&y.require&&y.require("util").types;return e||w&&w.binding&&w.binding("util")}catch(e){}}(),k=x&&x.isTypedArray;var E,S,D=Array.prototype,R=Function.prototype,I=Object.prototype,C=A["__core-js_shared__"],O=R.toString,T=I.hasOwnProperty,P=function(){var e=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),M=I.toString,L=O.call(Object),B=RegExp("^"+O.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=_?A.Buffer:void 0,U=A.Symbol,F=A.Uint8Array,N=j?j.allocUnsafe:void 0,$=(E=Object.getPrototypeOf,S=Object,function(e){return E(S(e))}),G=Object.create,H=I.propertyIsEnumerable,z=D.splice,Z=U?U.toStringTag:void 0,K=function(){try{var e=Ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),q=j?j.isBuffer:void 0,V=Math.max,W=Date.now,Y=Ae(A,"Map"),Q=Ae(Object,"create"),J=function(){function e(){}return function(t){if(!Ce(t))return{};if(G)return G(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function X(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ee(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function te(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function re(e){var t=this.__data__=new ee(e);this.size=t.size}function ne(e,t){var r=Ee(e),n=!r&&ke(e),i=!r&&!n&&De(e),o=!r&&!n&&!i&&Te(e),a=r||n||i||o,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],u=s.length;for(var c in e)!t&&!T.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||be(c,u))||s.push(c);return s}function ie(e,t,r){(void 0!==r&&!xe(e[t],r)||void 0===r&&!(t in e))&&se(e,t,r)}function oe(e,t,r){var n=e[t];T.call(e,t)&&xe(n,r)&&(void 0!==r||t in e)||se(e,t,r)}function ae(e,t){for(var r=e.length;r--;)if(xe(e[r][0],t))return r;return-1}function se(e,t,r){"__proto__"==t&&K?K(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}X.prototype.clear=function(){this.__data__=Q?Q(null):{},this.size=0},X.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},X.prototype.get=function(e){var t=this.__data__;if(Q){var n=t[e];return n===r?void 0:n}return T.call(t,e)?t[e]:void 0},X.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:T.call(t,e)},X.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Q&&void 0===t?r:t,this},ee.prototype.clear=function(){this.__data__=[],this.size=0},ee.prototype.delete=function(e){var t=this.__data__,r=ae(t,e);return!(r<0)&&(r==t.length-1?t.pop():z.call(t,r,1),--this.size,!0)},ee.prototype.get=function(e){var t=this.__data__,r=ae(t,e);return r<0?void 0:t[r][1]},ee.prototype.has=function(e){return ae(this.__data__,e)>-1},ee.prototype.set=function(e,t){var r=this.__data__,n=ae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(Y||ee),string:new X}},te.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return ge(this,e).get(e)},te.prototype.has=function(e){return ge(this,e).has(e)},te.prototype.set=function(e,t){var r=ge(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},re.prototype.clear=function(){this.__data__=new ee,this.size=0},re.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},re.prototype.get=function(e){return this.__data__.get(e)},re.prototype.has=function(e){return this.__data__.has(e)},re.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ee){var n=r.__data__;if(!Y||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new te(n)}return r.set(e,t),this.size=r.size,this};var ue,ce=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[ue?a:++n];if(!1===t(i[s],s,i))break}return e};function de(e){return null==e?void 0===e?f:c:Z&&Z in Object(e)?function(e){var t=T.call(e,Z),r=e[Z];try{e[Z]=void 0;var n=!0}catch(e){}var i=M.call(e);n&&(t?e[Z]=r:delete e[Z]);return i}(e):function(e){return M.call(e)}(e)}function le(e){return Oe(e)&&de(e)==o}function fe(e){return!(!Ce(e)||function(e){return!!P&&P in e}(e))&&(Re(e)?B:p).test(function(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function pe(e){if(!Ce(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ye(e),r=[];for(var n in e)("constructor"!=n||!t&&T.call(e,n))&&r.push(n);return r}function he(e,t,r,n,i){e!==t&&ce(t,(function(o,a){if(i||(i=new re),Ce(o))!function(e,t,r,n,i,o,a){var s=_e(e,r),u=_e(t,r),c=a.get(u);if(c)return void ie(e,r,c);var l=o?o(s,u,r+"",e,t,a):void 0,f=void 0===l;if(f){var p=Ee(u),h=!p&&De(u),m=!p&&!h&&Te(u);l=u,p||h||m?Ee(s)?l=s:Oe(y=s)&&Se(y)?l=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r<n;)t[r]=e[r];return t}(s):h?(f=!1,l=function(e,t){if(t)return e.slice();var r=e.length,n=N?N(r):new e.constructor(r);return e.copy(n),n}(u,!0)):m?(f=!1,v=u,g=!0?(A=v.buffer,b=new A.constructor(A.byteLength),new F(b).set(new F(A)),b):v.buffer,l=new v.constructor(g,v.byteOffset,v.length)):l=[]:function(e){if(!Oe(e)||de(e)!=d)return!1;var t=$(e);if(null===t)return!0;var r=T.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&O.call(r)==L}(u)||ke(u)?(l=s,ke(s)?l=function(e){return function(e,t,r,n){var i=!r;r||(r={});var o=-1,a=t.length;for(;++o<a;){var s=t[o],u=n?n(r[s],e[s],s,r,e):void 0;void 0===u&&(u=e[s]),i?se(r,s,u):oe(r,s,u)}return r}(e,Pe(e))}(s):Ce(s)&&!Re(s)||(l=function(e){return"function"!=typeof e.constructor||ye(e)?{}:J($(e))}(u))):f=!1}var v,g,A,b;var y;f&&(a.set(u,l),i(l,u,n,o,a),a.delete(u));ie(e,r,l)}(e,t,a,r,he,n,i);else{var s=n?n(_e(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),ie(e,a,s)}}),Pe)}function me(e,t){return we(function(e,t,r){return t=V(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=V(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,s)}}(e,t,Be),e+"")}var ve=K?function(e,t){return K(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Be;function ge(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function Ae(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return fe(r)?r:void 0}function be(e,t){var r=typeof e;return!!(t=null==t?n:t)&&("number"==r||"symbol"!=r&&h.test(e))&&e>-1&&e%1==0&&e<t}function ye(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||I)}function _e(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var we=function(e){var t=0,r=0;return function(){var n=W(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ve);function xe(e,t){return e===t||e!=e&&t!=t}var ke=le(function(){return arguments}())?le:function(e){return Oe(e)&&T.call(e,"callee")&&!H.call(e,"callee")},Ee=Array.isArray;function Se(e){return null!=e&&Ie(e.length)&&!Re(e)}var De=q||function(){return!1};function Re(e){if(!Ce(e))return!1;var t=de(e);return t==s||t==u||t==a||t==l}function Ie(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function Ce(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Oe(e){return null!=e&&"object"==typeof e}var Te=k?function(e){return function(t){return e(t)}}(k):function(e){return Oe(e)&&Ie(e.length)&&!!m[de(e)]};function Pe(e){return Se(e)?ne(e,!0):pe(e)}var Me,Le=(Me=function(e,t,r){he(e,t,r)},me((function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=Me.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!Ce(r))return!1;var n=typeof t;return!!("number"==n?Se(r)&&be(t,r.length):"string"==n&&t in r)&&xe(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r<n;){var a=t[r];a&&Me(e,a,r,i)}return e})));function Be(e){return e}e.exports=Le}(aT,aT.exports);var sT=aT.exports;function uT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uT(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uT(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dT(e){return null!=e&&e.error_url?"<vmap:VASTAdData>".concat(function(e){return e.promo_url?'<VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():e.fallback_url?'<VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():'<VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper>\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,"]]></VASTAdTagURI>\n </Wrapper>\n </Ad>\n </VAST>").trim()}(e),"</vmap:VASTAdData>"):'<vmap:AdTagURI templateType="vast3"><![CDATA['.concat(null==e?void 0:e.adtag_url,"]]></vmap:AdTagURI>")}var lT,fT="13998",pT="_cc".concat(fT),hT=["https://tags.crwdcntrl.net/c/".concat(fT,"/cc.js?ns=").concat(pT)],mT=function(){return!!lT&&"function"==typeof lT.bcpf&&"function"==typeof lT.add},vT=function(e,t){try{if(!mT())return;lT.add(e,t),Js("lotame add success ".concat(e," ").concat(t))}catch(e){Js("lotame add error",err)}},gT=function(e,t){try{if(!mT())return;lT.bcpw(e,t),Js("lotame send success ".concat(e," ").concat(t))}catch(e){}},AT=function(e){var t=this;try{vT("act","play"),vT("med","game"),"complete"===document.readyState?lT.bcpf():lT.bcp(),e.tags.forEach(function(e){r(this,t),gT("int","tags : ".concat(e.title.toLowerCase()))}.bind(this)),gT("int","category : ".concat(e.category.toLowerCase()))}catch(e){}},bT=function(){window.addEventListener("load",(function(){UD.once("game-data-ready",function(){var e=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=1,e.t0=null!=t_&&t_.noLotamePageView,!e.t0){e.next=7;break}return e.next=6,KD();case 6:e.t0=e.sent;case 7:if(!e.t0){e.next=10;break}return e.abrupt("return");case 10:if(null!==(r=t.lotm)&&void 0!==r&&r.enabled){e.next=13;break}return e.abrupt("return");case 13:return e.next=16,ft(hT[0],"LOTCC_".concat(fT),{alternates:hT});case 16:"object"===n(window[pT])&&(lT=window[pT]),mT()&&AT(t),e.next=23;break;case 20:e.prev=20,e.t1=e.catch(1),Js("lotame init error",e.t1);case 23:case"end":return e.stop()}}),e,null,[[1,20]])})));return function(t){return e.apply(this,arguments)}}())}))},yT=function(){gT("genp","ad video"),gT("act","ad impression")},_T=function(){gT("act","ad skipped")},wT=function(){gT("act","ad click")},xT=function(){gT("act","ad complete")},kT=function(){var e=(new cD).get("partner.url.value"),t=new C(e,!0),r={isRevisionTest:!1,useTestAds:!1,disableMidrolltimer:!1};if("revision.gamedistribution.com"===t.host){var n=t.query.test,i="1"===n||"2"===n,o="1"===n;r={useTestAds:i,disableMidrolltimer:o,isRevisionTest:o||i}}return r},ET=function(){function e(){O(this,e),this.adContainer=window.document.body}return M(e,[{key:"show",value:function(e){this.adSpinner.style.display="block",this.adSpinnerOverlay.style.display="block",e?(this.adSpinner.style.display="block",this.adSpinnerFail.style.display="none",this.adSpinnerButton.style.display="none"):(this.adSpinner.style.display="none",this.adSpinnerFail.style.display="block",this.adSpinnerButton.style.display="block")}},{key:"hide",value:function(){this.adSpinner.style.display="none",this.adSpinnerOverlay.style.display="none"}},{key:"add",value:function(){var e=this;try{this.addStyles();var t=document.createElement("div");t.id="gd__spinner",t.setAttribute("title","Spinner"),t.classList.add("gd__spinner"),this.adSpinner=t;var n=document.createElement("div");n.id="gd__spinner__fail",n.setAttribute("title","Spinner"),n.classList.add("gd__spinner__fail"),n.innerHTML="No Ads Available!",this.adSpinnerFail=n;var i=document.createElement("div");i.id="gd__spinner__button",i.setAttribute("title","Spinner"),i.classList.add("gd__spinner__button"),i.onclick=function(){r(this,e),this.hide()}.bind(this);var o=document.createElement("p");o.innerText="OK!",i.appendChild(o),this.adSpinnerButton=i;var a=document.createElement("div");a.id="gd__spinner__logo",a.setAttribute("title","Spinner"),a.classList.add("gd__spinner__logo"),this.adSpinnerLogo=a;var s=document.createElement("div");s.id="gd__spinner__container",s.classList.add("gd__spinner__container"),s.appendChild(this.adSpinner),s.appendChild(this.adSpinnerFail),s.appendChild(this.adSpinnerButton),s.appendChild(this.adSpinnerLogo),this.adSpinnerContainer=s;var u=document.createElement("div");u.id="gd__spinner__overlay",u.classList.add("gd__spinner__overlay"),u.appendChild(this.adSpinnerContainer),this.adSpinnerOverlay=u,this.adContainer.appendChild(this.adSpinnerOverlay)}catch(e){console.log("Spinner error",e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__spinner__style",e,'\n .gd__spinner__button{ \n text-align: center; \n width: 150px;\n height: 50px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(80% - 25px);\n left: calc(50% - 75px);\n margin: 0;\n font-size: large;\n font-family: monospace;\n background-color: #ff8c1c;\n border-radius: 50px;\n color: white;\n }\n\n .gd__spinner__fail{\n text-align: center; \n width: 300px;\n height: 50px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(65% - 25px);\n left: calc(50% - 150px);\n margin: 0;\n font-size: large;\n font-family: monospace;\n color: #ff8c1c;\n }\n\n .gd__spinner__logo{\n background: url("https://static.gamedistribution.com/android-chrome-192x192.png") no-repeat;\n background-size: cover; \n width: 100px;\n height: 100px;\n position: absolute;\n display: block;\n z-index: 2000;\n cursor: pointer;\n top: calc(30% - 50px);\n left: calc(50% - 50px);\n margin: 0;\n border-radius: 50%;\n }\n\n .gd__spinner__container{ \n background-color: black; \n width: 300px;\n height: 300px;\n position: absolute;\n z-index: 2000;\n cursor: pointer;\n top: calc(50% - 150px);\n left: calc(50% - 150px);\n margin: 0;\n border-radius: 20px;\n border: 2px solid #06b8a2;\n }\n\n\n .gd__spinner{\n background: url("https://static.gamedistribution.com/assets/loader.gif") no-repeat;\n background-size: cover; \n width: 50px;\n height: 50px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(80% - 25px);\n left: calc(50% - 25px);\n margin: 0;\n border-radius: 50%;\n }\n \n .gd__spinner__overlay {\n position: fixed;\n display: none;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0,0,0,0.5);\n z-index: 1999;\n cursor: pointer;\n }\n ')}},{key:"addStylesheet",value:function(e,t,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}();function ST(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function DT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ST(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ST(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var RT=new pD.exports.EventEmitter,IT=null,CT=function(){function e(t,n,i){var o=this;if(O(this,e),IT)return IT;IT=this;var a={debug:!1,width:640,height:360,locale:"en"};this.options=n?it(a,n):a,this.prefix="gdsdk__",this.adsLoader=null,this.adsManager=null,this.adDisplayContainer=null,this.eventBus=new Dt,this.safetyTimer=null,this.containerTransitionSpeed=0,this.adCounter={},this.adPrerollCount=0,this.adMidrollCount=0,this.adRewardedCount=0,this.preloadedAdType=null,this.requestRunning=!1,this.parentDomain=i.parentDomain,this.topDomain=i.topDomain,this.parentURL=i.parentURL,this.adDisplayContainerInitialized=!1,this.IMASampleTags={interstitial:["https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=","https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dredirectlinear&correlator=","https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dredirecterror&correlator="],rewarded:["https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator="]},this.atom_display,this.adType_="",this.rewardGuarantied=!1,this.clickCount={midroll:0,preroll:0,rewarded:0},this.userAllowedPersonalizedAds=document.location.search.indexOf("gdpr-targeting=0")>=0||document.cookie.indexOf("ogdpr_advertisement=0")>=0?"0":"1",this.parentDomain.includes("girlsgogames")&&(this.userAllowedPersonalizedAds=!1),this.thirdPartyContainer=""!==t?document.getElementById(t):null,this.options.width="number"==typeof this.options.width?this.options.width:"100%"===this.options.width?640:this.options.width.replace(/[^0-9]/g,""),this.options.height="number"==typeof this.options.height?this.options.height:"100%"===this.options.height?360:this.options.height.replace(/[^0-9]/g,"");var s=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.options.width=this.thirdPartyContainer?this.thirdPartyContainer.offsetWidth:s,this.options.height=this.thirdPartyContainer?this.thirdPartyContainer.offsetHeight:u,this.category="",this.tags=[],this.eventCategory="AD",this.eventBus.subscribe("LOADED",function(){r(this,o),this._clearSafetyTimer("LOADED"),this._startSafetyTimer(8e3,"LOADED")}.bind(this),"ima"),this.eventBus.subscribe("STARTED",function(){r(this,o),this._clearSafetyTimer("STARTED")}.bind(this),"ima")}var n,i,o,a,s,u,c,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,R,I,T,P;return M(e,[{key:"start",value:(P=t(d.mark((function e(){var n,i,o,a=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.adSystemInitialize(t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a._init_afg_script({});case 2:case"end":return e.stop()}}),e)}))));case 3:return n=e.sent,this.afgInitSuccess=n.success,e.next=7,this.adSystemInitialize(t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a._init_hl_script();case 2:return e.next=4,a._init_ima_script();case 4:a._createPlayer(),a._setUpIMA();case 6:case"end":return e.stop()}}),e)}))));case 7:if(i=e.sent,this.imaInitSuccess=i.success,o=[],this.afgInitSuccess||o.push(n.error),this.imaInitSuccess||o.push(i.error),!(o.length>0)){e.next=14;break}throw o[0];case 14:window.eventTest=function(e){r(this,a),this._broadcast(e,{message:"",status:"success"})}.bind(this),e.next=21;break;case 17:throw e.prev=17,e.t0=e.catch(0),eu("gd-adflow error on ads.start",e.t0),new Error(e.t0);case 21:case"end":return e.stop()}}),e,this,[[0,17]])}))),function(){return P.apply(this,arguments)})},{key:"adSystemInitialize",value:(T=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={success:!1},e.prev=1,e.next=4,t();case 4:r.success=!0,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),r.error=e.t0;case 10:return e.abrupt("return",r);case 12:case"end":return e.stop()}}),e,null,[[1,7]])}))),function(e){return T.apply(this,arguments)})},{key:"_getDefaultSpilAdapterConfig",value:function(){return{vast:null,url:"https://pubads.g.doubleclick.net/gampad/ads",query:{correlator:"{{CACHEBUSTER}}",description_url:"{{PAGE_URL}}",env:"vp",gdfp_req:1,impl:"s",iu:"/59392726/gd_instream",npa:0,output:"vast",sz:"640x480|400x300",tfcd:0,unviewed_position_start:1}}}},{key:"_getSpilUrl",value:(I=t(d.mark((function e(t){var r,n,i,o,a,s,u,c,l,f,p,h;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.adType,n=t.options,e.prev=1,a=null===(i=this.gameData.adflw)||void 0===i||null===(o=i.adapterConfig)||void 0===o?void 0:o.spil,s=this.nextAdPosition(r),e.next=6,this._create_dp_context(s,n);case 6:return u=e.sent,a?(Js("spil-adaptor: in _getSpilUrl, adType, adPosition, gamedata",r,s,this.gameData),c=a[s]||a.default||this._getDefaultSpilAdapterConfig()):c=this._getDefaultSpilAdapterConfig(),l=100*u.floor_price,Js("spil-adaptor: fp",u.floor_price),f=this._createCustomAdVastUrl(c,{tnl_keys:{floor_price:l}}),p=f.url,h={url:p,dp:u,hl:{bidFloorApplied:!0}},e.abrupt("return",h);case 17:e.prev=17,e.t0=e.catch(1),console.log("spil-adaptor: Error on getting spil",e.t0);case 20:case"end":return e.stop()}}),e,this,[[1,17]])}))),function(e){return I.apply(this,arguments)})},{key:"_getAdVast",value:function(e,n){var i=this;return new Promise(function(){var o=t(d.mark((function t(o){var a,s,u,c,l,f,p,h,m=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(gt.available&&gt.getBoolean("gd_debug_ex")&&gt.getBoolean("gd_tag")||kT().useTestAds)){t.next=6;break}return a=i.IMASampleTags[e],s=Math.floor(Math.random()*a.length),u=a[s],o({url:u,tnl_keys:{tnl_ad_pos:null==n?void 0:n.adTypeFound}}),t.abrupt("return");case 6:if("spil"!==n.adapter){t.next=8;break}return t.abrupt("return",o(i._getSpilUrl({adType:e,options:n})));case 8:if(void 0!==window.idhb.requestAds){t.next=10;break}throw new Error("Prebid.js wrapper script hit an error or didn't exist!");case 10:return t.prev=10,c=i.nextAdPosition(e),null!=n&&n.adTypeFound&&(c=null==n?void 0:n.adTypeFound),i._broadcast("AD_REQUEST",{message:c}),l=i.options,"preroll"===c&&U(l.preroll)?l=l.preroll:"midroll"===c&&U(l.midroll)?l=l.midroll:"rewarded"===c&&U(l.rewarded)&&(l=l.rewarded),f="","audio"===n.adapter||"audio"===n.giftType?(i.isAudioAd=!0,f="midrollaudio"):(i.isAudioAd=!1,f="rewarded"===c?"rewardedVideo":"gdbanner"===c?"gd__banner":"midroll"===c?"midroll":"video1"),t.next=20,window.idhb.isLoaded();case 20:return t.next=22,i._create_dp_context(c,n);case 22:p=t.sent,Xs("gd-adflow, before idhb",c,f),h=window.idhb.getAdserverTargetingForAdSlot(f),window.idhb.setAdserverTargeting(DT(DT({},h),{},{adaptor_order:n.adapterIndex})),Js("hl-order 2",window.idhb.getAdserverTargetingForAdSlot(f)),window.idhb.requestAds({slots:ru({},f,{bidFloor:(null==p?void 0:p.floor_price)||void 0}),callback:function(e,t){var n=this;r(this,m),"Missing configuration"===(null==e?void 0:e.error)&&i._broadcast("HL_CONFIG_ERROR",{status:"warning"}),!p||null!=t&&t.bidFloorApplied||fetch(p.skip_url).catch(function(e){r(this,n)}.bind(this));var a={src:"hl",tnl_keys:DT(DT({},window.idhb.getAdserverTargetingForAdSlot(f)),{},{tnl_ad_pos:c,tnl_asset_id:i.gameData.gameId}),url:e,dp:p,hl:t};i._extend_hl_url(a),o(a)}.bind(this)}),t.next=34;break;case 31:throw t.prev=31,t.t0=t.catch(10),new Error(t.t0);case 34:case"end":return t.stop()}}),t,this,[[10,31]])})));return function(e){return o.apply(this,arguments)}}())}},{key:"nextAdPosition",value:function(e){if(e===nt.Rewarded)return this.adRewardedCount++,"rewarded";if(e===nt.Interstitial){var t=!1===this.gameData.preroll||1===this.adPrerollCount;return t?this.adMidrollCount++:this.adPrerollCount++,t||this.adMidrollCount>0?"midroll":"preroll"}return"midroll"}},{key:"getAdPosition",value:function(e){return e===nt.Rewarded?"rewarded":e===nt.Interstitial?!1===this.gameData.preroll||1===this.adPrerollCount||this.adMidrollCount>0?"midroll":"preroll":"midroll"}},{key:"getCurrentAdPosition",value:function(e){return e===nt.Interstitial?1===this.adPrerollCount&&0===this.adMidrollCount?"preroll":"midroll":e===nt.Rewarded?"rewarded":void 0}},{key:"_requestPromo",value:function(e,t){var r=new google.ima.AdsRequest;return r.adsResponse=function(e){return'<VAST version="3.0"> \n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA['.concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,"]]></VASTAdTagURI> \n </Wrapper>\n </Ad>\n </VAST>").trim()}(e),r.linearAdSlotWidth=this.options.width,r.linearAdSlotHeight=this.options.height,r.nonLinearAdSlotWidth=this.options.width,r.nonLinearAdSlotHeight=this.options.height,r.forceNonLinearFullSlot=!0,this.options.vast_load_timeout&&(r.vastLoadTimeout=this.options.vast_load_timeout),r.setAdWillAutoPlay(t.autoplayAllowed),r.setAdWillPlayMuted(t.autoplayRequiresMute),this.adsLoader.requestAds(r),r}},{key:"_requestAd",value:function(e,t){var n=this;return t=t||{},new Promise(function(i){var o=this;if(r(this,n),"undefined"==typeof google)throw new Error("Unable to load ad, google IMA SDK not defined.");try{var a,s,u=null==e||null===(a=e.tnl_keys)||void 0===a?void 0:a.tnl_ad_pos;this.adSuccess=!1,this.contentPaused=!1;var c=new google.ima.AdsRequest,d=this._transformVast(e,t),l=DT(DT({},t),{},{adTag:d,tnl_ad_pos:u});this.adCounter[u]=this.adCounter[u]||0,this.adCounter[u]++;var f=e.dp,p=e.hl;this.current_dp=f,f&&!d.bidder&&(f.adtag_url=d.url);var h=this._isVMAP(u);(function(){r(this,o),t.shouldFail&&(f?(f.adtag_url="dp_original_broken",f.fallback_url="dp_fallback_broken"):d.url="original_broken",Js("gd-adflow, _requestAd, dp.adtag_url",null==f?void 0:f.adtag_url),Js("gd-adflow, _requestAd, dp.fallback_url",null==f?void 0:f.fallback_url),Js("gd-adflow, _requestAd, adTag.url",d.url))}).bind(this);var m=this._getExternalVast(null===(s=t)||void 0===s?void 0:s.adType);if(m)c.adTagUrl=m;else if(h){Js("gd-adflow, _isVMAP");var v=function(e){for(var t=[],r="",n=Date.now(),i={ppos:1,lip:!0,vad_type:"linear"},o=0;o<e.length;o++){var a=new C(e[o].adtag.url,!0);a.query=cT(cT({},a.query),{},{ad_rule:0,vpos:e[o].positon,pod:1,correlator:0===o?n:++n,output:"xml_vast3"}),o<e.length-1&&(a.query=cT(cT({},a.query),i)),t.push(a.toString())}for(var s=Date.now(),u=1;u<=t.length;u++){var c,d,l,f;r+='<vmap:AdBreak timeOffset="start" breakType="linear" breakId="break-'.concat(u,'">\n <vmap:AdSource id="').concat(s++,'" allowMultipleAds="false" followRedirects="true">\n ').concat(dT({id:s++,adtag_url:t[u-1],error_url:null===(c=e[u-1].dp)||void 0===c?void 0:c.error_url,impression_url:null===(d=e[u-1].dp)||void 0===d?void 0:d.impression_url,fallback_url:null===(l=e[u-1].dp)||void 0===l?void 0:l.fallback_url,fallback_imp_url:null===(f=e[u-1].dp)||void 0===f?void 0:f.fallback_imp_url}),"</vmap:AdSource>\n </vmap:AdBreak>")}return'<?xml version="1.0" encoding="UTF-8"?>\n <vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">\n '.concat(r,"\n </vmap:VMAP>").trim()}(this._get_vmap_context({dp:f,adtag:d,position:"preroll"===l.tnl_ad_pos?"preroll":"midroll",config:this._get_vmap_config(u)}));c.adsResponse=v}else if(f&&p.bidFloorApplied){Js("gd-adflow, vast wrapper"),f.adtag_url||(f.adtag_url=d.url);var g=function(e){return e.promo_url?e.fallback_url?'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>ADS</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="2" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():e.fallback_url?'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>ADS</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper>\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,"]]></VASTAdTagURI>\n </Wrapper>\n </Ad>\n </VAST>").trim()}(f);c.adsResponse=g}else if(f&&f.fallback_url){Js("gd-adflow, vast wrapper 2");var A=function(e){return'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>ADS</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim()}(f);c.adsResponse=A}else Js("gd-adflow, without dp"),c.adTagUrl=d.url;c.linearAdSlotWidth=this.options.width,c.linearAdSlotHeight=this.options.height,c.nonLinearAdSlotWidth=this.options.width,c.nonLinearAdSlotHeight=this.options.height,c.forceNonLinearFullSlot=!0,this.options.vast_load_timeout&&(c.vastLoadTimeout=this.options.vast_load_timeout),c.setAdWillAutoPlay(t.autoplayAllowed),c.setAdWillPlayMuted(t.autoplayRequiresMute),this.adsLoader.requestAds(c,l);try{this._broadcast("AD_SDK_REQUEST",{message:l})}catch(e){}i(c)}catch(e){throw new Error(e)}}.bind(this))}},{key:"_getExternalVast",value:function(e){var t;try{var r,n,i,o,a=this.getCurrentAdPosition(e),s=null===(r=this.gameData)||void 0===r?void 0:r.cust_vast,u=(null==s?void 0:s[a])||(null==s?void 0:s.default);if(!u)return Js("[ext-vast] no custom vast config"),null;Js("[ext-vast] has custom vast config",s);var c=null==u||null===(n=u.maps)||void 0===n||null===(i=n.position)||void 0===i?void 0:i[a],d=this._createCustomAdVastUrl(u,{tnl_keys:{slug:null===(o=this.gameData)||void 0===o?void 0:o.slug,mapped_position:c}});t=null==d?void 0:d.url,Js("[ext-vast] check result",t)}catch(e){eu("[ext-vast] check err",e)}return t}},{key:"cancel",value:function(e){var t;if(!1!==this.requestRunning){this.requestRunning=!1,this._resetAdsLoader(),this._hide("cancel");var r=(null==e||null===(t=e.message)||void 0===t?void 0:t.indexOf("NO_VAST_URL"))>=0,n="AD_SDK_CANCELED";this._broadcast(n,{name:n,message:"Advertisement has been canceled.",status:"warning",noVast:r,analytics:{category:this.eventCategory,action:n,label:this.gameData.gameId}})}}},{key:"_checkAutoPlay",value:(R=t(d.mark((function e(){var t=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,n){var i=this;r(this,t);var o=navigator.userAgent.toLowerCase();o.indexOf("safari")>-1&&o.indexOf("chrome"),oT.video({inline:!0,muted:!1}).then(function(t){r(this,i);var n=t.result;t.error,e(!0===n?{autoplayAllowed:!0,autoplayRequiresMute:!1}:{autoplayAllowed:!0,autoplayRequiresMute:!0})}.bind(this))}.bind(this)));case 1:case"end":return e.stop()}}),e,this)}))),function(){return R.apply(this,arguments)})},{key:"_initDisplayContainerWithAutoPlay",value:(D=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._checkAutoPlay(!1);case 2:return t=e.sent,this._autoplay=t,this.video_ad_player.autoplay=t.autoplayAllowed,this.video_ad_player.volume=t.autoplayRequiresMute?0:1,this.video_ad_player.muted=!!t.autoplayRequiresMute,t.adDisplayContainerInitialized||(this.adDisplayContainer.initialize(),this.adDisplayContainerInitialized=!0),e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)}))),function(){return D.apply(this,arguments)})},{key:"startAd",value:(S=t(d.mark((function e(t){var n,i,o,a=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.adType,o=t.params,this.adType_=i,this.isAudioAd=!1,this.adContext=DT(DT({},o),{},{adType:i}),null!==(n=this.gameData.adspn)&&void 0!==n&&n.enabled&&(this.adFlowProcessSpinner||(this.adFlowProcessSpinner=new ET,this.adFlowProcessSpinner.add()),this.adFlowProcessSpinner.show(!0)),"promo"!==(null==o?void 0:o.adapter)){e.next=7;break}return e.abrupt("return",this._startPromo(o,i));case 7:if("adsense"!==(null==o?void 0:o.adapter)){e.next=31;break}if(i!==nt.Interstitial){e.next=24;break}if("preroll"!==(null==o?void 0:o.position)){e.next=13;break}return e.abrupt("return",this._startAdsensePlacementPreroll(t));case 13:if("start"!==(null==o?void 0:o.position)){e.next=17;break}return e.abrupt("return",this._startAdsensePlacementStart(t));case 17:if("next"!==(null==o?void 0:o.position)){e.next=21;break}return e.abrupt("return",this._startAdsensePlacementNext(t));case 21:return e.abrupt("return",this._startAdsensePlacementPreroll(t));case 22:e.next=29;break;case 24:if(i!==nt.Rewarded){e.next=28;break}return e.abrupt("return",this._startAdsensePlacementRewardedAd(t));case 28:throw new Error("Unsupported ad type");case 29:e.next=44;break;case 31:if(!["ima","spil","audio"].some(function(e){return r(this,a),e===(null==o?void 0:o.adapter)}.bind(this))){e.next=42;break}if(i!==nt.Interstitial){e.next=37;break}return e.abrupt("return",this._startInterstitialAd(o));case 37:if(i!==nt.Rewarded){e.next=41;break}return e.abrupt("return",this._startRewardedAd(o));case 41:throw new Error("Unsupported ad type");case 42:["opus"].some(function(e){return r(this,a),e===(null==o?void 0:o.adapter)}.bind(this))&&this._startOpusAd(o);case 44:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"_startOpusAd",value:(E=t(d.mark((function e(t){var n,i,o,a,s,u,c,l,f,p,h,m,v,g,A,b=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.adTypeFound="rewarded"===t.adTypeFound?"reward":t.adTypeFound,i=t.adTypeFound,this._send_atom_event("opus-ad.start"),!this.requestRunning){e.next=9;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),this._broadcast("AD_ERROR",{message:"Ad is already running",status:"error",reason:"request-running"}),this._send_atom_event("opus-ad.already-running"),e.abrupt("return");case 9:if(o=null===(n=window.gdlocus)||void 0===n?void 0:n.adBreak){e.next=14;break}return this._send_atom_event("opus-ad.not-initialized"),this._broadcast("AD_ERROR",{message:"Locus adBreak not found",status:"error",reason:"opus-not-found"}),e.abrupt("return");case 14:this._send_atom_event("opus-ad.ready"),a=void function(){return r(this,b),!0}.bind(this),this.requestRunning=!0,s=this.gameData,u=s.gameId,c=s.slug,l=s.title,f={assetId:u,slug:c,title:l,debug:a},p=function(e){r(this,b),this.opusEventReceived=!0,this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),h=function(e){r(this,b),this.opusEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),m=function(){r(this,b),this.opusEventReceived=!0}.bind(this),v=function(){r(this,b),this.opusEventReceived=!0,this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this._send_atom_event("sg.ad.rw.viewed")}.bind(this),g=function(e){r(this,b),this.opusEventReceived=!0,this.resetForNext();var t="".concat(i);this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}):this._broadcast("AD_ERROR",{message:e.errorMessage,errorType:e.errorType,status:e.breakStatus,reason:"opus-error"})}.bind(this),console.log("opus-ad meta",f),A={type:i,meta:f,beforeAd:p,afterAd:h,adBreakDone:g},"reward"===i&&(A=DT(DT({},A),{},{adDismissed:m,adViewed:v})),this.opusEventReceived=!1,this._startTimeoutForOpus(),o&&o(A);case 31:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})},{key:"preloadAd",value:(k=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==nt.Interstitial){e.next=4;break}return e.abrupt("return","gdsdk://preloaded");case 4:if(t!==nt.Rewarded){e.next=8;break}return e.abrupt("return","gdsdk://preloaded");case 8:throw new Error("Unsupported ad type");case 9:case"end":return e.stop()}}),e)}))),function(e){return k.apply(this,arguments)})},{key:"addAdComponents",value:function(){var e=this,t=function(){r(this,e),this.adsManager.resume()}.bind(this),n=function(){r(this,e),this.rewardGuarantied||(this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this.rewardGuarantied=!1),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}),this._hideSkipButton(),this.cancel()}.bind(this);try{this.adResume=new YO(this.adContainer,t),this.adResume.add(),this.rewardedLabel=new QO(this.adContainer,t),this.rewardedLabel.add(),this.skipAdButton=new JO(this.adContainer,t,n),this.skipAdButton.add(),this.audioAdLabel=new XO(window.document.body),this.audioAdLabel.add(),this.audioAdLabel.hide()}catch(e){console.log("error on adding adResume",e)}}},{key:"loadDisplayAd",value:(x=t(d.mark((function e(n){var i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,o){var a,s,u,c,l,f,p,h,m,v=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{Js("display_test load",n),(s=n?n.containerId:null)||o("Container id is not specified"),u=document.getElementById(s),document.getElementById(s)||o("No container is found with this id - ".concat(s)),void 0===window.idhb.requestAds&&o("Prebid.js wrapper script hit an error or didn't exist!"),c=n.slotId?n.slotId:"gd__banner@".concat(s),document.getElementById(c)||(l="\n .gd__banner{\n z-index: ".concat(kt.zIndex,";\n height: 100%;\n display: flex !important;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n }"),document.getElementById("gd__banner__style")||((f=document.createElement("style")).type="text/css",f.id="gd__banner__style",f.styleSheet?f.styleSheet.cssText=l:f.appendChild(document.createTextNode(l)),u.appendChild(f)),(p=document.createElement("div")).id=c,p.classList.add("gd__banner"),u.appendChild(p)),i.atom_display=null,null!==(a=i.atom_display)&&void 0!==a&&a.params&&window.idhb.setAdserverTargeting(null===(h=i.atom_display)||void 0===h?void 0:h.params),(m={})[c]={maxSize:[u.offsetWidth,u.offsetHeight]},Js("display_test slots",m),window.idhb.requestAds({slots:m,callback:function(e){r(this,v),Js("display_test callback",JSON.stringify(e,null,2))}.bind(this)}),t()}catch(e){console.log("display_test error",e),o(e.message||e)}case 1:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return x.apply(this,arguments)})},{key:"_startInterstitialAd",value:(w=t(d.mark((function e(t){var n,i,o,a,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.requestRunning){e.next=4;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 4:if(!void function(){if(r(this,u),tu.fictionalIMAError)return this._broadcast("AD_ERROR",{message:"fictional IMA error",status:"error",skipForward:!0}),!0}.bind(this)){e.next=7;break}return e.abrupt("return");case 7:return this.requestRunning=!0,e.next=10,this._initDisplayContainerWithAutoPlay();case 10:return i=e.sent,e.next=13,this._loadInterstitialAd(DT(DT({},i),t));case 13:if(o=e.sent,a=o.success,o.args,a){e.next=18;break}return e.abrupt("return");case 18:null!==(n=this.adContext)&&void 0!==n&&n.muteRequested?this.adsManager.setVolume(0):(i.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(s=this.gameData.advlm)||void 0===s?void 0:s.mode)&&this.adsManager.setVolume(1)),this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start(),e.next=28;break;case 23:throw e.prev=23,e.t0=e.catch(0),Js("VAST_URL_2 error",e.t0),this._onError(e.t0),e.t0;case 28:case"end":return e.stop()}}),e,this,[[0,23]])}))),function(e){return w.apply(this,arguments)})},{key:"_startPromo",value:(_=t(d.mark((function e(t,r){var n,i,o,a,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.requestRunning){e.next=4;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 4:return this.requestRunning=!0,this.adSuccess=!1,e.next=8,this._initDisplayContainerWithAutoPlay();case 8:return i=e.sent,e.next=11,this._loadPromo(DT(DT({},i),t),r);case 11:if(o=e.sent,a=o.success,o.args,a){e.next=16;break}return e.abrupt("return");case 16:null!==(n=this.adContext)&&void 0!==n&&n.muteRequested?this.adsManager.setVolume(0):(i.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(s=this.gameData.advlm)||void 0===s?void 0:s.mode)&&this.adsManager.setVolume(1)),this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start(),this.msgrt.send("promo.adsense",{message:"".concat(t.position," success")}),e.next=27;break;case 22:throw e.prev=22,e.t0=e.catch(0),this.msgrt.send("promo.adsense.err",{message:"".concat(t.position," failure,").concat(e.t0.message?e.t0.message:e.t0,", [").concat(this.parentURL,"]")}),this._onError(e.t0),e.t0;case 27:case"end":return e.stop()}}),e,this,[[0,22]])}))),function(e,t){return _.apply(this,arguments)})},{key:"_loadPromo",value:(y=t(d.mark((function e(t,r){var n,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._resetAdsLoader(),e.prev=1,n=this.nextAdPosition(r),i=this._create_promo_context(n),this._requestPromo(i,DT({adType:nt.Interstitial},t)),e.next=7,this._waitOnAdLoad();case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(1),new Error(e.t0);case 13:case"end":return e.stop()}}),e,this,[[1,10]])}))),function(e,t){return y.apply(this,arguments)})},{key:"_loadInterstitialAd",value:(b=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._resetAdsLoader(),e.prev=1,e.t0=this.preloadedInterstitialAdVast,e.t0){e.next=7;break}return e.next=6,this._getAdVast(nt.Interstitial,t);case 6:e.t0=e.sent;case 7:if(r=e.t0,delete this.preloadedInterstitialAdVast,r.url){e.next=12;break}throw new Error("NO_VAST_URL");case 12:return e.next=14,this._requestAd(r,DT({adType:nt.Interstitial},t));case 14:return e.sent,e.next=17,this._waitOnAdLoad();case 17:return e.abrupt("return",e.sent);case 20:throw e.prev=20,e.t1=e.catch(1),console.log("VAST_URL error",e.t1),new Error(e.t1);case 24:case"end":return e.stop()}}),e,this,[[1,20]])}))),function(e){return b.apply(this,arguments)})},{key:"_waitOnAdLoad",value:function(){var e=this;return new Promise(function(t,n){var i=this;r(this,e);var o="videoad.preloadad";this.eventBus.unsubscribeScope(o);var a=function(e){var n=this;r(this,i),setTimeout(function(){r(this,n),this.eventBus.unsubscribeScope(o),t({success:!0,args:e})}.bind(this),1)}.bind(this),s=function(e){var n=this;r(this,i),setTimeout(function(){r(this,n),this.eventBus.unsubscribeScope(o),t({success:!1,args:e})}.bind(this),1)}.bind(this);this.eventBus.subscribe("AD_SDK_MANAGER_READY",a,o),this.eventBus.subscribe("AD_SDK_CANCELED",s,o),this.eventBus.subscribe("AD_ERROR",s,o)}.bind(this))}},{key:"_startRewardedAd",value:(A=t(d.mark((function e(t){var n,i,o,a,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.requestRunning){e.next=4;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 4:if(!void function(){if(r(this,u),tu.fictionalIMAError)return this._broadcast("AD_ERROR",{message:"fictional IMA error",status:"error",skipForward:!0}),!0}.bind(this)){e.next=7;break}return e.abrupt("return");case 7:return this.requestRunning=!0,e.next=10,this._initDisplayContainerWithAutoPlay();case 10:return i=e.sent,e.next=13,this._loadRewardedAd(DT(DT({},i),t));case 13:if(o=e.sent,a=o.success,o.args,a){e.next=18;break}return e.abrupt("return");case 18:null!==(n=this.adContext)&&void 0!==n&&n.muteRequested?this.adsManager.setVolume(0):(i.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(s=this.gameData.advlm)||void 0===s?void 0:s.mode)&&this.adsManager.setVolume(1)),this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start(),e.next=27;break;case 23:throw e.prev=23,e.t0=e.catch(0),this._onError(e.t0),e.t0;case 27:case"end":return e.stop()}}),e,this,[[0,23]])}))),function(e){return A.apply(this,arguments)})},{key:"_loadRewardedAd",value:(g=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._resetAdsLoader(),e.prev=1,e.t0=this.preloadedRewardedAdVast,e.t0){e.next=7;break}return e.next=6,this._getAdVast(nt.Rewarded,t);case 6:e.t0=e.sent;case 7:return r=e.t0,delete this.preloadedRewardedAdVast,e.next=11,this._requestAd(r,DT({adType:nt.Rewarded},t));case 11:return e.sent,e.next=14,this._waitOnAdLoad();case 14:return e.abrupt("return",e.sent);case 17:throw e.prev=17,e.t1=e.catch(1),new Error(e.t1);case 20:case"end":return e.stop()}}),e,this,[[1,17]])}))),function(e){return g.apply(this,arguments)})},{key:"_preloadInterstitialAd",value:(v=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,e.t0=this.preloadedInterstitialAdVast,e.t0){e.next=6;break}return e.next=5,this._getAdVast(nt.Interstitial);case 5:e.t0=e.sent;case 6:return this.preloadedInterstitialAdVast=e.t0,e.abrupt("return",this.preloadedInterstitialAdVast.url);case 10:throw e.prev=10,e.t1=e.catch(0),new Error(e.t1);case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return v.apply(this,arguments)})},{key:"_preloadRewardedAd",value:(m=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,e.t0=this.preloadedRewardedAdVast,e.t0){e.next=6;break}return e.next=5,this._getAdVast(nt.Rewarded);case 5:e.t0=e.sent;case 6:return this.preloadedRewardedAdVast=e.t0,e.abrupt("return",this.preloadedRewardedAdVast.url);case 10:throw e.prev=10,e.t1=e.catch(0),new Error(e.t1);case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return m.apply(this,arguments)})},{key:"_onError",value:function(e){this.cancel(e),this._clearSafetyTimer("ERROR")}},{key:"_hide",value:function(e){this.video_ad_player&&(this.video_ad_player.src=""),this.activeAdContainer&&(this.activeAdContainer.style.visibility="hidden")}},{key:"_show",value:function(e){var t=this;if(this.activeAdContainer){this.isAudioAd||(this.activeAdContainer.style.visibility="visible");var n=null==e?void 0:e.mode;e.t4r=this.gameData.__t4r;var i=this._adrequest_user_context.t4RResult?this._adrequest_user_context.t4RResult:this._isT4R(e);this._adrequest_user_context.t4RResult=i;var o=i.success,a=i.reason,s=this._getT4ROptions(e);if("loaded"===n){var u,c,d=(null===(u=this._adrequest_user_context)||void 0===u||null===(c=u.adTag)||void 0===c?void 0:c.bidder)||"adx";this._broadcast("AD_BIDDER",{bidder:d}),o||this._broadcast("AD_T4R_NONE",{reason:a}),this.activeAdContainer.style.opacity=o?.001:1,o&&null!=e&&e.contentType.startsWith("video/")&&(this.t4rButton=new eT(this.adContainer),this.t4rButton.add(),this._broadcast("AD_T4R_VIDEO")),o&&this.adsManager.setVolume(0),o&&this._broadcast("AD_T4R"),o&&setTimeout(function(){var e;r(this,t),this.activeAdContainer.style.opacity=1,this.adsManager.setVolume(null!==(e=this.adContext)&&void 0!==e&&e.muteRequested?0:1),this.t4rButton&&this.t4rButton.hide()}.bind(this),((null==s?void 0:s.min)||1234)+Math.random()*((null==s?void 0:s.max)||3210))}else if("click"===n||"first_quartile"===n){var l;if(o&&"click"===n){var f,p=null===(f=this._adrequest_user_context)||void 0===f?void 0:f.tnl_ad_pos;this.clickCount[p]++,this._broadcast("AD_T4R_CLICK")}o||"click"!==n||this._broadcast("AD_CLICK"),this.t4rButton&&this.t4rButton.hide(),this.activeAdContainer.style.opacity=1,this.adsManager.setVolume(null!==(l=this.adContext)&&void 0!==l&&l.muteRequested?0:1)}}}},{key:"_createPlayer",value:function(){var e=this,t=document.body||document.getElementsByTagName("body")[0];this.adContainer=document.createElement("div"),this.adContainer.id="".concat(this.prefix,"advertisement"),this.adContainer.style.position=this.thirdPartyContainer?"absolute":"fixed",this.adContainer.style.zIndex=xt.zIndex,this.adContainer.style.top="0",this.adContainer.style.left="0",this.adContainer.style.width="100%",this.adContainer.style.height="100%",this.thirdPartyContainer&&(this.thirdPartyContainer.style.transform=null);var n=document.createElement("video");n.setAttribute("playsinline",!0),n.setAttribute("webkit-playsinline",!0),n.id="".concat(this.prefix,"advertisement_video"),n.style.position="absolute",n.style.backgroundColor="#000000",n.style.top="0",n.style.left="0",n.style.width=this.options.width+"px",n.style.height=this.options.height+"px",this.video_ad_player=n,this.adContainer.appendChild(n);var i=document.createElement("div");i.id="".concat(this.prefix,"advertisement_slot"),i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.width=this.options.width+"px",i.style.height=this.options.height+"px",this.adContainerInner=i,this.activeAdContainer=this.adContainer,window.activeAdContainer=this.activeAdContainer,this.thirdPartyContainer?(this.adContainer.appendChild(i),this.thirdPartyContainer.appendChild(this.adContainer),this.activeAdContainer=this.thirdPartyContainer):(this.adContainer.appendChild(i),t.appendChild(this.adContainer)),this.addAdComponents(),this.activeAdContainer.style.visibility="hidden";var o=function(){r(this,e);var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.options.width=this.thirdPartyContainer?this.thirdPartyContainer.offsetWidth:t,this.options.height=this.thirdPartyContainer?this.thirdPartyContainer.offsetHeight:o,i.style.width=this.options.width+"px",i.style.height=this.options.height+"px",n.style.width=this.options.width+"px",n.style.height=this.options.height+"px"}.bind(this);window.addEventListener("resize",o),window.document.addEventListener("DOMContentLoaded",o)}},{key:"_setUpIMA",value:function(){this.adDisplayContainer=new google.ima.AdDisplayContainer(this.adContainerInner,this.video_ad_player),this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.getSettings().setDisableCustomPlaybackForIOS10Plus(!0),this.adsLoader.getSettings().setLocale(this.options.locale),this.adsLoader.getSettings().setVpaidMode(this._getVPAIDMode()),this.adsLoader.getSettings().setAutoPlayAdBreaks(!0);var e=this.adsLoader.getSettings().getNumRedirects();this.adsLoader.getSettings().setNumRedirects(2*e),this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this._onAdsManagerLoaded,!1,this),this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this._onAdError,!1,this)}},{key:"_onAdsManagerLoaded",value:function(e){var t=this,n=new google.ima.AdsRenderingSettings;n.autoAlign=!1,n.enablePreloading=!1,n.restoreCustomPlaybackStateOnAdBreakComplete=!0,n.useStyledNonLinearAds=!0,n.uiElements=[google.ima.UiElements.AD_ATTRIBUTION,google.ima.UiElements.COUNTDOWN],this.adsManager=e.getAdsManager(this.video_ad_player,n),this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this._onAdError.bind(this),!1,this),this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_BREAK_READY,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_METADATA,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.CLICK,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.DURATION_CHANGE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.FIRST_QUARTILE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.IMPRESSION,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.INTERACTION,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.LINEAR_CHANGED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.LOADED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.LOG,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.MIDPOINT,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.RESUMED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.STARTED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.THIRD_QUARTILE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.USER_CLOSE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.VOLUME_CHANGED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.VOLUME_MUTED,this._onAdEvent.bind(this),this),window.addEventListener("resize",function(){r(this,t),this.adsManager&&this.adsManager.resize(this.options.width,this.options.height,google.ima.ViewMode.NORMAL)}.bind(this)),this.adDisplayContainerInitialized||(this.adDisplayContainer.initialize(),this.adDisplayContainerInitialized=!0);var i=new Date,o=i.getHours(),a=i.getDate(),s=i.getMonth(),u=i.getFullYear(),c="AD_SDK_MANAGER_READY";this._broadcast(c,{name:c,message:"AD SDK is ready",status:"success",analytics:{category:c,action:this.parentDomain,label:"h".concat(o," d").concat(a," m").concat(s," y").concat(u)}}),this._adrequest_user_context=e.getUserRequestContext()}},{key:"_onAdEvent",value:function(e){var t,n,i,o,a,s,u=this,c=new Date,d=c.getHours(),l=c.getDate(),f=c.getMonth(),p=c.getFullYear(),h=(a=google.ima.AdEvent.Type,s=e.type,Object.keys(a).find((function(e){return a[e]===s}))),m=!1,v=(null==e||null===(t=e.getAd())||void 0===t?void 0:t.getContentType())||"",g=!v.startsWith("image")&&!v.startsWith("text"),A=null==e||null===(n=e.ad)||void 0===n||null===(i=n.data)||void 0===i?void 0:i.title,b=null==e||null===(o=e.getAd())||void 0===o?void 0:o.data.skippable;this._sendIMAEventsToHB(e);var y=document.getElementById("game"),_="";switch(e.type){case google.ima.AdEvent.Type.AD_BREAK_READY:_="Fired when an ad rule or a VMAP ad break would have played if autoPlayAdBreaks is false.";break;case google.ima.AdEvent.Type.AD_METADATA:_="Fired when an ads list is loaded.";break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.contentPaused&&(m=!0),this.isAudioAd&&(this.audioAdLabel.hide(),this.isAudioAd=!1),this.rewardGuarantied=!1,_="Fired when the ads manager is done playing all the ads.";break;case google.ima.AdEvent.Type.CLICK:_="Fired when the ad is clicked.";var w=e.getAd().getContentType();this._show({mode:"click",contentType:w}),wT();break;case google.ima.AdEvent.Type.COMPLETE:Js("gd-adflow ON COMPLETE!",e.getAd()),m=this._is_completed(e.getAd()),_="Fired when the ad completes playing.",this.adType_!==nt.Rewarded||this.rewardGuarantied||(this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this.rewardGuarantied=!0);break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.gameData.fllc.enabled&&(y.style.display="none"),this.contentPaused=!0,_="Fired when content should be paused. This usually happens right before an ad is about to cover the content.";break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.gameData.fllc.enabled&&(y.style.display="block"),_="Fired when content should be resumed. This usually happens when an ad finishes or collapses.",this.contentPaused?m=!0:(this.requestRunning=!1,this._broadcast("AD_ERROR",{message:"got resume without pause, possibly with VMAP",status:"error",skipForward:!0})),this._hideAddResume(),this._hideRewardedLabel(),this._hideSkipButton(),this.t4rButton&&this.t4rButton.hide(),this._clearTimeoutForSkipAddButton();break;case google.ima.AdEvent.Type.DURATION_CHANGE:_="Fired when the ad's duration changes.";break;case google.ima.AdEvent.Type.FIRST_QUARTILE:_="Fired when the ad playhead crosses first quartile.";var x=e.getAd().getContentType();this._show({mode:"first_quartile",contentType:x});break;case google.ima.AdEvent.Type.IMPRESSION:_="Fired when the impression URL has been pinged.",e.getAd(),console.log("gdsdk: eventname IMPRESSION",this.isAudioAd),this._hideAdSpinner(),this.isAudioAd&&this.audioAdLabel.show();break;case google.ima.AdEvent.Type.INTERACTION:_="Fired when an ad triggers the interaction callback. Ad interactions contain an interaction ID string in the ad data.";break;case google.ima.AdEvent.Type.LINEAR_CHANGED:_="Fired when the displayed ad changes from linear to nonlinear, or vice versa.";break;case google.ima.AdEvent.Type.LOADED:var k=e.getAd().getContentType();_=k,this._show({mode:"loaded",contentType:k});break;case google.ima.AdEvent.Type.LOG:e.getAdData().adError&&(_=e.getAdData());break;case google.ima.AdEvent.Type.MIDPOINT:_="Fired when the ad playhead crosses midpoint.";break;case google.ima.AdEvent.Type.PAUSED:g&&"VPAID"!==A&&this.adResume.show(),_="Fired when the ad is paused.";break;case google.ima.AdEvent.Type.RESUMED:_="Fired when the ad is resumed.",g&&(this.adResume.hide(),this.rewardedLabel.hide());break;case google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED:_="Fired when the displayed ads skippable state is changed.";break;case google.ima.AdEvent.Type.SKIPPED:m=this._is_completed(e.getAd()),_="Fired when the ad is skipped by the user.",_T(),this.t4rButton&&this.t4rButton.hide();break;case google.ima.AdEvent.Type.STARTED:var E;if(this.skipAdButton&&this.skipAdButton.hide(),this.rewardGuarantied=!1,this.adType_===nt.Rewarded)!b&&null!==(E=this.gameData.rwskp)&&void 0!==E&&E.enabled&&(this._skipAdButtonTimeout=setTimeout(function(){r(this,u),this.skipAdButton.show(),this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this.rewardGuarantied=!0}.bind(this),3e4)),this.rewardedLabel.show();this._hideAddResume(),_="Fired when the ad starts playing.";break;case google.ima.AdEvent.Type.THIRD_QUARTILE:_="Fired when the ad playhead crosses third quartile.";break;case google.ima.AdEvent.Type.USER_CLOSE:m=this._is_completed(e.getAd()),_="Fired when the ad is closed by the user.";break;case google.ima.AdEvent.Type.VOLUME_CHANGED:_="Fired when the ad volume has changed.";break;case google.ima.AdEvent.Type.VOLUME_MUTED:_="Fired when the ad volume has been muted."}if(""!==h&&""!==_){var S=!this.contentPaused&&e.type===google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,D=!this.contentPaused&&e.type===google.ima.AdEvent.Type.ALL_ADS_COMPLETED;S||D||this.isAudioAd||this._broadcast(h,{name:h,message:_,status:"success",analytics:{category:h,action:this.parentDomain,label:"h".concat(d," d").concat(l," m").concat(f," y").concat(p)}})}if(m&&!this.adSuccess){this.adSuccess=!0;var R=e.getAd(),I="Rainbow"===(null==R?void 0:R.getAdSystem())&&(null==R?void 0:R.getWrapperAdIds().some(function(e){return r(this,u),"promo"===e}.bind(this)));Js("gd-adflow isPromoSuccess",I,null==R?void 0:R.getAdSystem(),null==R?void 0:R.getWrapperAdIds()),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success",isPromoSuccess:I}),this.resetForNext(e)}}},{key:"_clearTimeoutForSkipAddButton",value:function(){this._skipAdButtonTimeout&&(clearTimeout(this._skipAdButtonTimeout),this._skipAdButtonTimeout=null)}},{key:"_run_atom_tag_aws_test",value:function(e){var t=this;try{var n,i,o,a,s;if(!((null===(n=this.gameData)||void 0===n||null===(i=n.aws_tst)||void 0===i?void 0:i.enabled)&&(null===(o=this.gameData)||void 0===o||null===(a=o.aws_tst)||void 0===a||null===(s=a.ep)||void 0===s?void 0:s.atm)))return;var u=e.type,c=e.url;if("none"===u||!c)return;c=c.replace("tag.atom.gamedistribution.com","atom-tag-prod-aws.gamedistribution.com"),fetch(c).then(function(){r(this,t)}.bind(this))}catch(e){}}},{key:"_findAtomTagUrl",value:function(e,t){var n=this,i={type:"none"};try{var o=this.current_dp,a=o.id,s=o.error_url,u=o.impression_url,c=o.fallback_imp_url,d=o.promo_imp_green_url;if(!e&&!t)return i={type:"imp_err",url:s};var l=e.getWrapperAdIds().some(function(e){return r(this,n),e==="".concat(a)}.bind(this)),f=e.getWrapperAdIds().some(function(e){return r(this,n),"fallback"===e}.bind(this)),p=e.getWrapperAdIds().some(function(e){return r(this,n),"promo"===e}.bind(this));l&&t?i={type:"normal_imp",url:u}:l&&!t?i={type:"normal_err",url:s}:p&&t?i={type:"promo_imp",url:d}:f&&t&&(i={type:"fallbacj_imp",url:c})}catch(e){}return i}},{key:"_onAdError",value:function(e){this.requestRunning=!1,this._resetAdsLoader(),this._clearSafetyTimer("ERROR"),this._hide("_onAdError"),this._sendIMAEventsToHB(e);try{var t="AD_ERROR",r=e.getError(),n=r.getErrorCode().toString()||r.getVastErrorCode().toString(),i=this._getInnerErrorCode(r);RT.emit("AD_ERROR",n),this._broadcast(t,{message:n,details:i,status:"warning",analytics:{category:t,action:i,label:n}}),this._hideAddResume(),this._clearTimeoutForSkipAddButton()}catch(e){}}},{key:"_hideAddResume",value:function(){try{this.adResume&&this.adResume.hide()}catch(e){console.log("Error on hide adResume",e)}}},{key:"_hideAdSpinner",value:function(){try{var e;null!==(e=this.gameData.adspn)&&void 0!==e&&e.enabled&&this.adFlowProcessSpinner&&this.adFlowProcessSpinner.hide()}catch(e){console.log("Error on hide adSpinner",e)}}},{key:"_hideRewardedLabel",value:function(){try{this.adType_===nt.Rewarded&&this.rewardedLabel&&this.rewardedLabel.hide()}catch(e){console.log("Error on hide adResume",e)}}},{key:"_hideSkipButton",value:function(){try{this.adType_===nt.Rewarded&&this.skipAdButton&&this.skipAdButton.hide()}catch(e){console.log("Error on hide adResume",e)}}},{key:"_sendIMAEventsToHB",value:function(e){if(window.idhb&&"function"==typeof window.idhb.onImaEvent)try{window.idhb.onImaEvent({event:e})}catch(e){}}},{key:"_resetAdsLoader",value:function(){this.adsManager&&(this.adsManager.destroy(),this.adsManager=null,this._adrequest_user_context=null),this.adsLoader&&this.adsLoader.contentComplete()}},{key:"_startSafetyTimer",value:function(e,t){var n=this;this.safetyTimer&&clearTimeout(this.safetyTimer),this.safetyTimer=window.setTimeout(function(){r(this,n),this.cancel(),this._clearSafetyTimer(t)}.bind(this),e)}},{key:"_clearSafetyTimer",value:function(e){void 0!==this.safetyTimer&&null!==this.safetyTimer&&(clearTimeout(this.safetyTimer),this.safetyTimer=void 0)}},{key:"_getVPAIDMode",value:function(){return google.ima.ImaSdkSettings.VpaidMode.ENABLED}},{key:"_getPrebidScripts",value:function(){var e=["https://hb.improvedigital.com/pbw/headerlift.min.js","http://hb.improvedigital.com/pbw/headerlift.min.js"];return this.options.hb_script?[this.options.hb_script].concat(e):e}},{key:"_getInnerErrorCode",value:function(e){if(q(e.getInnerError)){var t=e.getInnerError();if(t)return q(t.getErrorCode)&&q(t.getVastErrorCode)?t.getErrorCode().toString()||t.getVastErrorCode().toString():t.message}}},{key:"resetForNext",value:function(){this.requestRunning=!1,this._hide("resetForNext")}},{key:"_createCustomAdVastUrl",value:function(e,t){var n=this;if(e){var i=this.macros.transform(e,{get:function(e){if(r(this,n),t&&t.tnl_keys)return t.tnl_keys[e.toLowerCase()]}.bind(this)});for(var o in i.query||{}){var a=i.query[o];U(a)&&(i.query[o]=l.stringify(a))}var s=new C(i.url,!0);return sT(s.query,i.query||{}),DT({url:s.toString()},t)}}},{key:"_transformVast",value:function(e,t){var r={url:e.url};try{var n=new C(e.url,!0),i=this._transformQuery(e,t,n);i&&(r.url=n.toString());var o=i?n:new C(e.url,!0);if(o.query.cust_params){var a=l.parse(o.query.cust_params);r.bidder=a.hb_bidder,r.cust_params=a}r.url_parsed=o}catch(e){r.hasError=!0,r.message=e.message,r.bidder="error",console.log(e.message)}return r}},{key:"_transformQuery",value:function(e,t,n){var i=this;if(e&&t&&e.tnl_keys){var o=this.options.vast_query;if(t.retry_on_success&&this.options.retry_on_success&&U(this.options.retry_on_success.vast_query)?o=this.options.retry_on_success.vast_query:t.retry_on_failure&&this.options.retry_on_failure&&U(this.options.retry_on_failure.vast_query)&&(o=this.options.retry_on_failure.vast_query),U(o=B(o))){var a=n.query;if(o.$$remove){for(var s in a){new RegExp(o.$$remove,"i").test(s)&&delete a[s]}delete o.$$remove}var u=l.parse(a.cust_params);if(o.cust_params&&o.cust_params.$$remove){for(var c in u){new RegExp(o.cust_params.$$remove,"i").test(c)&&delete u[c]}delete o.cust_params.$$remove}var d=this.macros.transform(o,{get:function(t){return r(this,i),e.tnl_keys[t.toLowerCase()]}.bind(this)});return a.cust_params=u,sT(a,d),a.cust_params=l.stringify(a.cust_params),!0}}}},{key:"_isExcludedBidderForT4R",value:function(){var e=this;try{var t,n,i,o,a=(null===(t=this._adrequest_user_context)||void 0===t||null===(n=t.adTag)||void 0===n?void 0:n.bidder)||"adx";this.msgrt.send("bidder",{message:a}),Js("ex_bidder ad request context",this._adrequest_user_context,'bidder:"'.concat(a,'"'));var s=(null===(i=this.gameData.t4rc)||void 0===i?void 0:i.bidder_exc)||[],u=(null===(o=this.gameData.t4rc)||void 0===o?void 0:o.bidder_inc)||[],c=!1;return u.length>0?c=!u.some(function(t){return r(this,e),t===a}.bind(this)):s.length>0&&(c=s.some(function(t){return r(this,e),t===a}.bind(this))),Js("ex_bidder_result",a,c),c}catch(e){console.log("ex_bidder ERR",e)}}},{key:"_isExcludedBidderForT4RWithBidderExcRate",value:function(){var e,t,r,n,i=this._isExcludedBidderForT4R(),o=null===(e=this.gameData)||void 0===e||null===(t=e.t4rc)||void 0===t?void 0:t.bidder_exc_rate,a=null!=o&&o.enabled?(null==o?void 0:o.rate)||.8:0,s=(null===(r=this._adrequest_user_context)||void 0===r||null===(n=r.adTag)||void 0===n?void 0:n.bidder)||"adx",u=Math.random();return i||"adx"!==s&&u<a}},{key:"_isT4R",value:function(e){var t=null==e?void 0:e.contentType,r={isImage:null==t?void 0:t.startsWith("image/"),isText:"text"===t,isVideo:null==t?void 0:t.startsWith("video/")},n=Object.values(this._getT4RValidators(e)||{}),i={success:!0};try{for(var o=0,a=n;o<a.length;o++){var s=(0,a[o])(r);if(!s.success){i=s;break}}}catch(e){i={success:!1,reason:"internal-error"}}return i}},{key:"_getT4RValidators",value:function(e){var t=this,n=function(e){if(r(this,t),this.gameData.publishedAt){var n=new Date(this.gameData.publishedAt);return((new Date).getTime()-n.getTime())/864e5<=10?{success:!1,reason:"pdate-1",name:"pdate"}:{success:!0,name:"pdate"}}return{success:!1,reason:"pdate-2",name:"pdate"}}.bind(this),i=function(n){var i,o,a,s;r(this,t);var u=this.gameData.meta,c=e.t4r.meta;return(null==u||null===(i=u.ast)||void 0===i?void 0:i.c)>=(null==c||null===(o=c.ast)||void 0===o?void 0:o.c)&&(null==u||null===(a=u.sit)||void 0===a?void 0:a.c)>=(null==c||null===(s=c.sit)||void 0===s?void 0:s.c)?{success:!1,reason:"meta",name:"meta"}:{success:!0,name:"meta"}}.bind(this),o=function(e){r(this,t);var n=this._isExcludedBidderForT4RWithBidderExcRate();return this.msgrt.send("bidder.ex",{message:n?"true":"false"}),{success:!n,reason:n?"bidder":null,name:"bidder"}}.bind(this),a=function(n){var i,o;r(this,t);var a=null===(i=this._adrequest_user_context)||void 0===i?void 0:i.tnl_ad_pos,s=a&&this.clickCount[a]>=(null===(o=e.t4r[a])||void 0===o?void 0:o.count);return{success:!s,reason:s?"click-count":null,name:"click-count"}}.bind(this),s=function(n){var i,o;r(this,t);var a=null===(i=this._adrequest_user_context)||void 0===i?void 0:i.tnl_ad_pos,s=a&&(null===(o=e.t4r[a])||void 0===o?void 0:o.enabled);return{success:s,reason:s?null:"rule-check",name:"rule-check"}}.bind(this),u=function(n){var i,o;if(r(this,t),!n.isVideo)return{success:!0,name:"viper-check"};var a=null===(i=this._adrequest_user_context)||void 0===i?void 0:i.tnl_ad_pos,s=(null===(o=e.t4r[a])||void 0===o?void 0:o.viper)||0;if(s>0){var u,c=Math.random()<s,d=a&&c&&(null===(u=e.t4r[a])||void 0===u?void 0:u.enabled);return{success:d,reason:d?null:"viper-check",name:"viper-check"}}return{success:!1,reason:"rule-check-viper",name:"viper-check"}}.bind(this),c=function(e){r(this,t);var n=e.isImage,i=e.isText,o=e.isVideo,a=n||i||o;return{success:a,reason:a?null:"media-format",name:"media-format"}}.bind(this);return{checkRule:s,checkMediaFormat:c,checkPublishDate:n,checkMeta:i,checkClickCount:a,checkViper:u,checkExcludedBidder:o}}},{key:"_isVMAP",value:function(e){var t,r,n,i,o,a,s,u,c,d,l,f,p,h,m;if(!e)return!1;var v="preroll"===e&&(!0===(null===(t=this.gameData)||void 0===t||null===(r=t.pAds)||void 0===r?void 0:r.vmap)||!0===(null===(n=this.gameData)||void 0===n||null===(i=n.pAds)||void 0===i||null===(o=i.vmap)||void 0===o?void 0:o.enabled))||"midroll"===e&&(!0===(null===(a=this.gameData)||void 0===a||null===(s=a.mAds)||void 0===s?void 0:s.vmap)||!0===(null===(u=this.gameData)||void 0===u||null===(c=u.mAds)||void 0===c||null===(d=c.vmap)||void 0===d?void 0:d.enabled))||"rewarded"===e&&(!0===(null===(l=this.gameData)||void 0===l||null===(f=l.rAds)||void 0===f?void 0:f.vmap)||!0===(null===(p=this.gameData)||void 0===p||null===(h=p.rAds)||void 0===h||null===(m=h.vmap)||void 0===m?void 0:m.enabled));if(!v)return!1;var g=this._get_vmap_config(e),A=this.adCounter[e];return void 0!==(null==g?void 0:g.start)?A>=(null==g?void 0:g.start):v}},{key:"_getT4ROptions",value:function(e){var t,r=null===(t=this._adrequest_user_context)||void 0===t?void 0:t.tnl_ad_pos;switch(r){case"preroll":case"midroll":case"rewarded":return e.t4r[r]}}},{key:"_is_completed",value:function(e){var t=e.getContentType(),r=e.getAdPodInfo();return!(!t.startsWith("image/")&&"text"!==t&&1!==r.getTotalAds())}},{key:"_get_vmap_context",value:function(e){for(var t=e.adtag,r=e.position,n=e.config,i=e.dp,o=n.count||2,a=[],s=1;s<=o;s++){var u={};u.adtag=this._createCustomAdVastUrl(n["vast_"+s])||t,u.position=r,u.dp=n["vast_"+s]?void 0:i,a.push(u)}return a}},{key:"_get_vmap_config",value:function(e){var t,r,n,i,o,a,s,u;switch(e){case"preroll":return null===(t=this.gameData)||void 0===t||null===(r=t.pAds)||void 0===r?void 0:r.vmap;case"midroll":return null===(n=this.gameData)||void 0===n||null===(i=n.mAds)||void 0===i?void 0:i.vmap;case"rewarded":return null===(o=this.gameData)||void 0===o||null===(a=o.rAds)||void 0===a?void 0:a.vmap;default:return null===(s=this.gameData)||void 0===s||null===(u=s.pAds)||void 0===u?void 0:u.vmap}}},{key:"_isDP",value:function(e){var t,r,n;return!!e&&!0===(null===(t=this.gameData)||void 0===t||null===(r=t.dp)||void 0===r||null===(n=r[e])||void 0===n?void 0:n.enabled)}},{key:"_create_dp_display_context",value:function(){var e=this;return new Promise(function(t){var n=this;r(this,e);try{var i={id:this.topDomain||this.parentDomain,au:"display",ty:"display",aid:this.gameData.gameId,pgu:this.parentURL},o=new WO(this.gameData).checkCustomParams();o&&(i.cp=o);var a=encodeURIComponent(rt.encode(JSON.stringify(i)));fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(a)).then(function(e){return r(this,n),e.json()}.bind(this)).then(function(e){if(r(this,n),!e||!e.p)return this.msgrt.send("dp.na",{message:"atom"}),t();var i=e.p/100;this.msgrt.send("dp.fp",{message:i}),t({params:{fp:i},error_url:"https://tag.atom.gamedistribution.com/v1/err?ar=".concat(a),impression_url:"https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(a)})}.bind(this)).catch(function(e){r(this,n),this.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),t()}.bind(this))}catch(e){this.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),t()}}.bind(this))}},{key:"_create_promo_context",value:function(e){var t,n=this,i={id:this.topDomain||this.parentDomain,au:e||"unknown",ty:"video",aid:this.gameData.gameId,pgu:this.parentURL},o=Object.keys(i).map(function(e){return r(this,n),"".concat(e,"=").concat(encodeURIComponent(i[e]))}.bind(this)).join("&");encodeURIComponent(rt.encode(JSON.stringify(i)));var a=null===(t=this.gameData.promo)||void 0===t?void 0:t.rainbow,s=null==a?void 0:a.enabled,u="https://tag.atom.gamedistribution.com/v1/rainbow/?".concat(o),c=s?u:void 0;return function(){r(this,n),tu.promoError&&(console.log("promo-test fictional promo error"),c=void 0)}.bind(this),{promo_url:c,promo_imp_blue_url:s?"https://tag.atom.gamedistribution.com/v1/rainbow/blue":void 0,promo_imp_green_url:s?"https://tag.atom.gamedistribution.com/v1/rainbow/green":void 0}}},{key:"_create_dp_context",value:function(e,n){var i=this;return new Promise(function(){var o=t(d.mark((function t(o){var a,s,u,c,l,f=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,i._isDP(e)){t.next=5;break}return i.msgrt.send("dp.na",{message:"rule"}),t.abrupt("return",o());case 5:s={id:i.topDomain||i.parentDomain,au:e||"unknown",ty:"video",aid:i.gameData.gameId,pgu:i.parentURL},(u=new WO(i.gameData).checkCustomParams())&&(s.cp=u),c=encodeURIComponent(rt.encode(JSON.stringify(s))),Js("gd-adflow isLastAdapter",null==n?void 0:n.adapterIndex,null==n?void 0:n.isLastAdapter),l=null===(a=i.gameData.promo)||void 0===a?void 0:a.rainbow,Js("gd-adflow promo_enabled",!1,null==l?void 0:l.enabled,null==n?void 0:n.isLastAdapter),fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(c)).then(function(e){return r(this,f),e.json()}.bind(this)).then(function(e){if(r(this,f),!e||!e.p)return i.msgrt.send("dp.na",{message:"atom"}),o();var t=e.p/100;i.msgrt.send("dp.fp",{message:t}),o({id:Date.now(),floor_price:t,error_url:"https://tag.atom.gamedistribution.com/v1/err?ar=".concat(c,"&ec=[ERRORCODE]"),impression_url:"https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(c),skip_url:"https://tag.atom.gamedistribution.com/v1/skp?ar=".concat(c),promo_url:void 0,promo_imp_blue_url:void 0,promo_imp_green_url:void 0})}.bind(this)).catch(function(e){r(this,f),i.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),o()}.bind(this)),t.next=20;break;case 16:t.prev=16,t.t0=t.catch(0),i.msgrt.send("dp.err",{message:(null===t.t0||void 0===t.t0?void 0:t.t0.message)||t.t0}),o();case 20:case"end":return t.stop()}}),t,this,[[0,16]])})));return function(e){return o.apply(this,arguments)}}())}},{key:"_extend_dp_with_adsense",value:function(e,t){if(e&&t)try{var r,n=new C(t.vastUrl,!0);if(null===(r=n.query)||void 0===r||!r.cust_params)return;var i=l.parse(n.query.cust_params);if(!i.tnl_asset_id)return;i.adsense=1,n.query.cust_params=l.stringify(i,!1),e.fallback_url=n.toString(),e.fallback_imp_url="https://tag.atom.gamedistribution.com/v1/rainbow/green"}catch(e){}}},{key:"_extend_hl_url",value:function(e){e.dp;var t=e.hl;e.src;var r=e.tnl_keys,n=!0!==(null==t?void 0:t.bidFloorApplied)?0:1;0===n&&null!=r&&r.hasOwnProperty("fp")?n=2:1!==n||null!=r&&r.hasOwnProperty("fp")||(n=3),r.bfa=n;try{var i,o=new C(e.url,!0);if(null===(i=o.query)||void 0===i||!i.cust_params)return;var a=l.parse(o.query.cust_params);a.bfa=n,a.adsense=0,o.query.cust_params=l.stringify(a,!1),e.url=o.toString(),t.vastUrl=e.url}catch(e){}finally{this.msgrt.send("bfa",{message:n})}}},{key:"_init_hl_script",value:(h=t(d.mark((function e(t){var n,i,o,a,s,u,c,l,f=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._getPrebidScripts(),i=n[0],o=function(){return r(this,f),!1}.bind(this),window.idhb=window.idhb||{iabCmpExists:o},window.idhb.options=window.idhb.options||{},Object.assign(window.idhb.options,{assetId:this.gameData.gameId,configUrl:this.topDomain||this.parentDomain,parentUrl:this.parentURL,pageType:"gd"}),"undefined"===window.idhb.options.configUrl&&(window.idhb.options.configUrl=null),window.idhb.que=window.idhb.que||[],(a=new URL(i)).searchParams.append("referer",window.idhb.options.configUrl),i=a.href,e.next=13,ft(i,"gdsdk_prebid",{alternates:n,error_prefix:"Blocked:",exists:function(){return r(this,f),window.idhb.requestAds}.bind(this)});case 13:return e.next=15,this.checkOpphbPath();case 15:s=st("ch",window.location.href),u=st("ch_date",window.location.href),c={tnl_content_category:this.category.toLowerCase()},s&&(c.channel=s),u&&(c.ch_date=u),(l=st("hl_label",this.parentURL)||st("hl_label",window.location.href))&&(c.label=l),window.idhb.setAdserverTargeting(c),window.idhb.allowPersonalizedAds(!!parseInt(this.userAllowedPersonalizedAds)),window.idhb.addEventListener("slotRenderEnded",function(e){var t=this;r(this,f);try{var n,i,o=e.slotId.split("@");o=1===o.length?o[0]:o[1],e.isEmpty?(null!==(n=this.atom_display)&&void 0!==n&&n.error_url&&(fetch(this.atom_display.error_url).catch(function(e){r(this,t)}.bind(this)),delete this.atom_display),Js("display_test DISPLAYAD_ERR",e),this._broadcast("DISPLAYAD_ERROR",{message:o,status:"warning"})):(null!==(i=this.atom_display)&&void 0!==i&&i.impression_url&&(fetch(this.atom_display.impression_url).catch(function(e){r(this,t)}.bind(this)),delete this.atom_display),Js("display_test DISPLAYAD_IMPRESSION"),this._broadcast("DISPLAYAD_IMPRESSION",{message:o,status:"success"}))}catch(e){}}.bind(this));case 25:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"checkOpphbPath",value:(p=t(d.mark((function e(){var t,r,n,i,o,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=this.topDomain||this.parentDomain||"",i=(null===(t=this.gameData)||void 0===t?void 0:t.gameId)||"",o=(null===(r=this.options)||void 0===r?void 0:r.width)||640,e.next=6,fetch("https://pub.headerlift.com/opphb?page_url=".concat(n,"&page_type=gd&page_width=").concat(o,"&aid=").concat(i));case 6:a=e.sent,Xs("opphb load success",a),e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(0),new Error("Blocked: https://pub.headerlift.com/opphb");case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return p.apply(this,arguments)})},{key:"_init_ima_script",value:(f=t(d.mark((function e(t){var n,i,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=["https://imasdk.googleapis.com/js/sdkloader/ima3_debug.js","https://imasdk.googleapis.com/js/sdkloader/ima3.js","http://imasdk.googleapis.com/js/sdkloader/ima3_debug.js","http://imasdk.googleapis.com/js/sdkloader/ima3.js"],i=this.options.debug?n[0]:n[1],e.next=4,ft(i,"gdsdk_ima",{alternates:n,error_prefix:"Blocked:",exists:function(){return r(this,o),window.google&&window.google.ima}.bind(this)});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"_init_afg_script",value:(c=t(d.mark((function e(t){var n,i,o,a,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.gameData.afg_disabled){e.next=3;break}return e.abrupt("return");case 3:return(u={}).crossorigin="anonymous",u["data-ad-client"]=(null==t||null===(n=t.adsense_client)||void 0===n?void 0:n.length)>0?t.adsense_client:"ca-pub-2316275586951220",u["data-ad-frequency-hint"]="30s",u.allow="autoplay",(null==t||null===(i=t.adsense_channel)||void 0===i?void 0:i.length)>0&&(u["data-ad-channel"]=t.adsense_channel),(null==t||null===(o=t.adsense_host)||void 0===o?void 0:o.length)>0&&(u["data-ad-host"]=t.adsense_host),!0===(null==t?void 0:t.adsense_adbreak_test)&&(u["data-adbreak-test"]="on"),null!==(a=this.gameData.sdk.afg)&&void 0!==a&&a.enabled&&null!==(s=this.gameData.sdk.afg)&&void 0!==s&&s.use_own&&(u["data-ad-client"]=this.gameData.sdk.afg.adsense_client,u["data-ad-slot"]=this.gameData.sdk.afg.adsense_ad_slot,u["data-ad-format"]="auto"),e.next=16,ft("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js","afg",{error_prefix:"Blocked:",exists:function(){return r(this,c),!!window.adsbygoogle}.bind(this),attrs:u});case 16:window.adsbygoogle=window.adsbygoogle||[],window.adsbygoogle.push({sound:"on",preloadAdBreaks:"on"});case 18:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"fixOutOfBounds",value:function(){try{if(!(this.gameData.afgszf&&this.gameData.afgszf.enabled))return;for(var e=this.gameData.afgszf,t=e.height,r=e.scrolls,n=t||"120vh",i=r||!0,o=document.getElementsByClassName("adsbygoogle"),a=0;a<o.length;a++){var s,u=o[a],c=u&&(null===(s=u.children[0])||void 0===s?void 0:s.children[0]);c&&"IFRAME"===c.tagName&&c.style.height!==n&&(Js("out-of-bounds fix apply"),c.style.height=n,i&&(c.parentElement.style.overflow="auto"))}}catch(e){Js("out-of-bounds error: ".concat(e.message))}}},{key:"clearSession",value:function(){this.requestRunning=!1}},{key:"_startAdsensePlacementRewardedAd",value:(u=t(d.mark((function e(t){var n,i,o,a,s,u,c,l,f=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,e.prev=1,!this.requestRunning){e.next=5;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 5:if(!void function(){if(r(this,f),tu.fictionalAdSenseError||t.params.shouldFail)return this._broadcast("AD_ERROR",{message:"fictional adsense rewarded error",status:"error",skipForward:!0}),!0}.bind(this)){e.next=8;break}return e.abrupt("return");case 8:this.requestRunning=!0,this._send_atom_event("sg.ad.rw.requested"),n=!1,i=function(){r(this,f),n=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),o=function(){r(this,f),n=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),a=function(){r(this,f),n=!0,this._send_atom_event("sg.ad.rw.dismissed")}.bind(this),s=function(){r(this,f),n=!0,this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this._send_atom_event("sg.ad.rw.viewed")}.bind(this),u=function(e){r(this,f),n=!0,e()}.bind(this),c=function(e){r(this,f),n=!0,this.resetForNext();var t="rewarded";this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}):(this._broadcast("AD_ERROR",{message:e.breakStatus,status:"error",skipForward:!0}),"dismissed"!==e.breakStatus&&this._send_atom_event("sg.dbg.rw",e))}.bind(this),l=function(e){window.adsbygoogle.push(e)},setTimeout(function(){r(this,f),n||(Xs("gd-adflow adsense.reward timeout happened!"),this.requestRunning=!1,this._broadcast("AD_ERROR",{message:"timeout",status:"error",skipForward:!0}),this._send_atom_event("sg.dbg.rw",{breakStatus:"timeout"}))}.bind(this),1e3),l({type:"reward",name:"reward-in-game",beforeAd:i,afterAd:o,adDismissed:a,adViewed:s,beforeReward:u,adBreakDone:c}),e.next=26;break;case 22:throw e.prev=22,e.t0=e.catch(1),this._onError(e.t0),e.t0;case 26:case"end":return e.stop()}}),e,this,[[1,22]])}))),function(e){return u.apply(this,arguments)})},{key:"_startAdsensePlacementPreroll",value:(s=t(d.mark((function e(t){var n,i,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,e.prev=1,!this.requestRunning){e.next=5;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 5:if(!void function(){if(r(this,o),tu.fictionalAdSenseError||t.params.shouldFail)return this._broadcast("AD_ERROR",{message:"fictional adsense preroll error",status:"error"}),!0}.bind(this)){e.next=8;break}return e.abrupt("return");case 8:this.requestRunning=!0,this._send_atom_event("sg.ad.pr.requested"),this.adPlacementEventReceived=!1,n=function(){r(this,o),this.adPlacementEventReceived=!0}.bind(this),i=function(e){r(this,o),this.adPlacementEventReceived=!0,this.resetForNext();var t="preroll";this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?(this._send_atom_event("sg.ad.pr.viewed"),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"}),this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}),this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})):(this._broadcast("AD_ERROR",{message:e.breakStatus,status:"error"}),this._send_atom_event("sg.dbg.pr",e))}.bind(this),this._startTimeoutForAdBreak({adType:"preroll"}),a={type:"preroll",beforeAd:n,adBreakDone:i},window.adsbygoogle.push(a),e.next=22;break;case 18:throw e.prev=18,e.t0=e.catch(1),this._onError(e.t0),e.t0;case 22:case"end":return e.stop()}var a}),e,this,[[1,18]])}))),function(e){return s.apply(this,arguments)})},{key:"_startAdsensePlacementStart",value:(a=t(d.mark((function e(t){var n,i,o,a=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,e.prev=1,!this.requestRunning){e.next=5;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 5:if(!void function(){if(r(this,a),tu.fictionalAdSenseError||t.params.shouldFail)return this._broadcast("AD_ERROR",{message:"fictional adsense preroll error 2",status:"error"}),!0}.bind(this)){e.next=8;break}return e.abrupt("return");case 8:this.requestRunning=!0,this._send_atom_event("sg.ad.pr.requested"),n=function(){r(this,a),this.adPlacementEventReceived=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),i=function(){r(this,a),this.adPlacementEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),this.adPlacementEventReceived=!1,o=function(e){r(this,a),this.adPlacementEventReceived=!0,this.resetForNext();var t="preroll";this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?(this._send_atom_event("sg.ad.pr.viewed"),this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"})):(this._broadcast("AD_ERROR",{message:e.breakStatus,status:"error"}),this._send_atom_event("sg.dbg.pr",e))}.bind(this),this._startTimeoutForAdBreak({adType:"preroll"}),s={type:"start",name:"start-in-game",beforeAd:n,afterAd:i,adBreakDone:o},window.adsbygoogle.push(s),e.next=23;break;case 19:throw e.prev=19,e.t0=e.catch(1),this._onError(e.t0),e.t0;case 23:case"end":return e.stop()}var s}),e,this,[[1,19]])}))),function(e){return a.apply(this,arguments)})},{key:"_startTimeoutForAdBreak",value:function(e){var t,n,i,o,a,s,u=this;if(null===(t=this.gameData)||void 0===t||null===(n=t.ad_blcks)||void 0===n||null===(i=n.adsenseTimeout)||void 0===i?void 0:i.enabled){null==e||e.adType,null===(o=this.gameData)||void 0===o||null===(a=o.ad_blcks)||void 0===a||null===(s=a.adsenseTimeout)||void 0===s||s.timeout;var c=setTimeout(function(){r(this,u),this.adPlacementEventReceived||(this._broadcast("AD_ERROR",{message:"timeout-_startTimeoutForAdBreak",status:"error"}),this.adPlacementEventReceived=!1,this.requestRunning=!1),clearTimeout(c)}.bind(this),5e3)}}},{key:"_startTimeoutForOpus",value:function(){var e=this,t=setTimeout(function(){r(this,e),this.opusEventReceived||(this._broadcast("AD_ERROR",{message:"opus-sdk-timeout",status:"error",reason:"forced-sdk-timeout"}),this.opusEventReceived=!1,this.requestRunning=!1),clearTimeout(t)}.bind(this),8e3)}},{key:"_startAdsensePlacementNext",value:(o=t(d.mark((function e(t){var n,i,o,a=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,e.prev=1,!this.requestRunning){e.next=5;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 5:if(!void function(){if(r(this,a),tu.fictionalAdSenseError||t.params.shouldFail)return this._broadcast("AD_ERROR",{message:"fictional adsense midroll error",status:"error"}),!0}.bind(this)){e.next=8;break}return e.abrupt("return");case 8:this.requestRunning=!0,this._send_atom_event("sg.ad.mr.requested"),n=function(){r(this,a),this.adPlacementEventReceived=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),i=function(){r(this,a),this.adPlacementEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),this.adPlacementEventReceived=!1,o=function(e){r(this,a),this.adPlacementEventReceived=!0,this.resetForNext();var t="midroll";this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?(this._send_atom_event("sg.ad.mr.viewed"),this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"})):(this._broadcast("AD_ERROR",{message:e.breakStatus,status:"error"}),this._send_atom_event("sg.dbg.mr",e))}.bind(this),this._startTimeoutForAdBreak({adType:"midroll"}),s={type:"next",name:"next-in-game",beforeAd:n,afterAd:i,adBreakDone:o},window.adsbygoogle.push(s),e.next=23;break;case 19:throw e.prev=19,e.t0=e.catch(1),this._onError(e.t0),e.t0;case 23:case"end":return e.stop()}var s}),e,this,[[1,19]])}))),function(e){return o.apply(this,arguments)})},{key:"_send",value:function(e,t){try{var r=this.msgrt,n=r._layout,i=r._ua,o={tp:e,ct:0,vrs:this.PackageJSON.version,url:this.parentURL,rfr:document.referrer,tdmn:this.topDomain||this.parentDomain,dpth:0,args:t,ua:{brnm:i.browser.name,brvs:i.browser.version,osnm:i.os.name,osvs:i.os.version,dvmd:i.device.model,w:n.w,h:n.h}};return fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(rt.encode(JSON.stringify(o)))))}catch(e){}}},{key:"_send_atom_event",value:function(e,t){var r={gid:this.gameData.slug,md5:this.gameData.gameId,pid:0,pnm:this.gameData.pname,ctry:this.gameData.ctry,lcl:"en",hle:1,ads:1,args:t,href:window.location.href},n=(new cD).get();return r=DT(DT({},r),n),r=t?DT(DT({},r),t):r,this._send(e,r)}},{key:"_isAfgPositionNext",value:function(e){return void 0!==e.adTimestamp}},{key:"_isAfgPositionStart",value:function(e){if(void 0!==e.adTimestamp)return!1;var t="preroll";return this.adCounter[t]=this.adCounter[t]||0,0===this.adCounter[t]}},{key:"attachAfgPosition",value:function(e){var t=e.params.position;switch(t){case"preroll":case"start":case"pause":case"next":case"browse":case"reward":return}var r=e.adType;if(r===nt.Rewarded)t="reward";else if(r===nt.Interstitial){var n,i;if(this._isAfgPositionStart(e))t=null===(n=this.gameData.pAds)||void 0===n||!n.enabled||null!==(i=this.gameData.loader)&&void 0!==i&&i.enabled?"start":"next";else this._isAfgPositionNext(e)&&(t="next")}t||(t="preroll"),e.params.position=t}},{key:"_broadcast",value:function(e,t){var n=this,i=!1;["AD_ERROR"].some(function(t){return r(this,n),t===e}.bind(this))&&(i=!this.adContext.isLastAdapter||this.adContext.extraPromoRunOnFail);var o=this.getCurrentAdPosition(this.adContext.adType);this.eventBus.broadcast(e,DT(DT({},t),{},{skipForward:i,adPosition:o}))}},{key:"mute",value:(i=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.adContext&&(this.adContext.muteRequested=!0),this.adsManager&&this.adsManager.setVolume(0);case 2:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"terminate",value:(n=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.cancel();case 1:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}]),e}(),OT=M((function e(r){var n=this;O(this,e),ru(this,"load",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Fb(n.moduleName);case 2:n.module=e.sent;case 3:case"end":return e.stop()}}),e)})))),ru(this,"promo",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.module){e.next=3;break}return e.next=3,n.load();case 3:return e.abrupt("return",n.module[n.moduleDefault]);case 4:case"end":return e.stop()}}),e)}))));var i=r.package||"gd-sdk-stone-dynamic",o=r.package_version||"1.1.1",a=r.template||"puzzle",s=r.dependencies||[];this.moduleName="GDPromoByOrbit",this.moduleDefault=a.charAt(0).toUpperCase()+a.slice(1),this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/".concat(i,"/").concat(o,"/dist/").concat(a.toLowerCase(),"/iife/index.js"),dependencies:s},jb(this.moduleName,this.moduleConfig)})),TT=M((function e(r){var n=this;O(this,e),ru(this,"load",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Fb(n.moduleName);case 2:n.module=e.sent;case 3:case"end":return e.stop()}}),e)})))),ru(this,"splash",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.module){e.next=3;break}return e.next=3,n.load();case 3:return e.abrupt("return",n.module[n.moduleDefault]);case 4:case"end":return e.stop()}}),e)}))));var i=r.package||"gd-sdk-air-dynamic",o=r.package_version||"1.2.0",a=r.template||"pluto",s=r.dependencies||[];this.moduleName="GDSplashDynamic",this.moduleDefault=a.charAt(0).toUpperCase()+a.slice(1),this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/".concat(i,"/").concat(o,"/dist/").concat(a.toLowerCase(),"/iife/index.js"),dependencies:s},jb(this.moduleName,this.moduleConfig)})),PT=function(e,t){console.log(e,t)},MT={},LT={},BT=null;function jT(){for(var e,t=window,r=null,n=null;!e;){try{if("function"==typeof t.__tcfapi||"function"==typeof t.__cmp){"function"==typeof t.__tcfapi?(n=2,r=t.__tcfapi):(n=1,r=t.__cmp),e=t;break}}catch(e){}try{if(t.frames.__tcfapiLocator){n=2,e=t;break}}catch(e){}try{if(t.frames.__cmpLocator){n=1,e=t;break}}catch(e){}if(t===window.top)break;t=t.parent}return MT.version=n,MT.frame=e,MT.function=r,MT.version}function UT(e){var t=this;return BT||(BT=new Promise(function(n){function i(t,r){if(PT("Received a response from CMP",t),r){var i,o;if(!1!==t.gdprApplies)return"tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus?(("boolean"!=typeof(o=(i=t)&&"boolean"==typeof i.gdprApplies?i.gdprApplies:e.defaultGdprScope)||!0===o&&"string"!=typeof i.tcString)&&n({result:"cmpUnexpectedResponse",cmp:MT,consentData:i}),void n({result:"ok",consentData:t})):void 0;n({result:"ok",consentData:t})}else n({result:"cmpCallFailed"})}r(this,t),jT(),MT.frame?2===MT.version?(PT("TCF v2 CMP found. Fetching the consent."),MT.function?(PT("CMP API is directly accessible, calling it now..."),MT.function("addEventListener",MT.version,i)):(PT("CMP API is outside the current iframe, calling it now..."),function(e,t,n){var i=this,o="__tcfapi";function a(e){var t="".concat(o,"Return"),r="string"==typeof e.data&&e.data.indexOf(t)>=0?JSON.parse(e.data):e.data;if(r[t]&&r[t].callId){var n=r[t];void 0!==LT[n.callId]&&LT[n.callId](n.returnValue,n.success)}}window[o]=function(e,n,a,s){r(this,i);var u=Math.random()+"",c=ru({},"".concat(o,"Call"),{command:e,parameter:s,callId:u,version:n});LT[u]=a,t.postMessage(c,"*")}.bind(this),window.addEventListener("message",a,!1),window[o](e,MT.version,n)}("addEventListener",MT.frame,i))):n({result:"cmpVersionNotV2",cmp:MT}):n({result:"cmpNotFound"})}.bind(this)),BT)}var FT=function(){function e(){O(this,e),this.productName="Game Distribution"}var r;return M(e,[{key:"checkIfExcluded",value:function(e){try{var t,r;return!(null===(t=e.diagnostic)||void 0===t||null===(r=t.gameDock)||void 0===r||!r.excluded)}catch(e){return console.log("Error on checkIfExclude check",e),!1}}},{key:"track",value:(r=t(d.mark((function e(t,r){var n,i,o,a,s,u,c;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.checkIfExcluded(r)){e.next=3;break}return e.abrupt("return");case 3:if(o=null==t||null===(n=t.visitor)||void 0===n||null===(i=n.visitorData)||void 0===i?void 0:i.visitorId){e.next=6;break}return e.abrupt("return");case 6:return a=encodeURIComponent(this.productName),s=encodeURIComponent(o),e.prev=8,u="https://tracker-v4.gamedock.io/v1/events-tracker/track/product/".concat(a,"/user_id/").concat(s),e.next=12,fetch(u,{method:"POST"});case 12:e.sent,e.next=28;break;case 15:return e.prev=15,e.t0=e.catch(8),console.log("GAME_DOCK. fail v4",e.t0),e.prev=18,c="https://tracker.gamedock.io/v1/events-tracker/track/product/".concat(a,"/user_id/").concat(s),e.next=22,fetch(c,{method:"POST"});case 22:e.sent,e.next=28;break;case 25:e.prev=25,e.t1=e.catch(18),console.log("GAME_DOCK. fail v6",e.t1);case 28:case"end":return e.stop()}}),e,this,[[8,15],[18,25]])}))),function(e,t){return r.apply(this,arguments)})}]),e}(),NT=new FT;function $T(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return GT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return GT(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function GT(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var HT,zT=function(e){var t=this,n=e.src,i=e.attributes,o=e.target,a=e.isAsync;return new Promise(function(e,s){var u=this;r(this,t);try{var c=document.createElement("script");if(c.async=null==a||a,c.type="text/javascript",c.onload=function(){r(this,u),e()}.bind(this),c.onerror=function(){r(this,u);var e="Error on script load, Error: ".concat(n);console.log(e),s(e)}.bind(this),c.src=n,i){var d,l=$T(i);try{for(l.s();!(d=l.n()).done;){var f=d.value,p=f.key,h=f.value;c.setAttribute(p,h)}}catch(e){l.e(e)}finally{l.f()}}o||(o=document.head),o.appendChild(c)}catch(e){var m="Error on script load catch, Error: ".concat(n);console.log(m,e),s(m)}}.bind(this))},ZT="ffd4774b-99ae-4464-8f40-3afa12b4692e",KT=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,zT({src:"https://cdn.cookielaw.org/consent/tcf.stub.js",attributes:[{key:"id",value:"gd-cookie-pro-tcf-stub"},{key:"charset",value:"UTF-8"}],isAsync:!1});case 3:return e.next=5,zT({src:"https://cdn.cookielaw.org/consent/".concat(ZT,"/OtAutoBlock.js"),attributes:[{key:"id",value:"gd-cookie-pro-autoblock"}],isAsync:!1});case 5:return e.next=7,zT({src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",attributes:[{key:"id",value:"gd-cookie-pro-stub"},{key:"charset",value:"UTF-8"},{key:"data-domain-script",value:ZT}],isAsync:!1});case 7:r=void 0,n=void 0,i=void 0,r=(t={inlineScript:"function OptanonWrapper() { }"}).inlineScript,n=t.target,(i=document.createElement("script")).text=r,n||(n=document.head),n.appendChild(i),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.log("GD: CMP error on load",e.t0);case 13:case"end":return e.stop()}var t,r,n,i}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),qT=new pD.exports.EventEmitter,VT={"https://games.softgames.com":{"splash-hidden":"splash-hidden"},"https://sg.gamedistribution.com":{"splash-hidden":"splash-hidden"},"https://html5.gamedistribution.com":{key:"value"}},WT=!1;window.addEventListener("message",(function(e){var t=this,n=e.data,i=e.origin,o=n.type;if(Object.keys(VT).some(function(e){return r(this,t),e===i}.bind(this))&&(null==n||!n.__tcfapiCall)){var a=!n.type||!n.type.startsWith("gd-sdk")&&!("parent-data-response"===n.type)||"sg-game-event"===n.type;!function(e){if("gd-sdk-on-event"===(null==e?void 0:e.type)){var t,r,n;if("midroll"!==(null==e||null===(t=e.event)||void 0===t?void 0:t.adPosition))return;var i="CONTENT_RESUME_REQUESTED"===(null===(r=e.event)||void 0===r?void 0:r.name);"CONTENT_PAUSE_REQUESTED"===(null===(n=e.event)||void 0===n?void 0:n.name)&&(WT=!0),i&&WT&&(WT=!1,window.parent.postMessage({type:"sg-game-event",eventName:"levelFinish",data:{score:100}},"*"))}}(n);var s=function(){r(this,t);try{var n,i;return null==e||null===(n=e.source)||void 0===n||null===(i=n.location)||void 0===i?void 0:i.href}catch(e){}}.bind(this);if(window.parent&&a){if("https://html5.gamedistribution.com"===i){var u=s();if(!u)return;var c=u&&["9555f04e1900482aaaef710cd2f8c440"].some(function(e){return r(this,t),u.indexOf(e)>0}.bind(this)),d=["sg-game-event"].some(function(e){return r(this,t),e===(null==n?void 0:n.type)}.bind(this));if(!c&&!d)return}var l=n.eventName,f=n.data;window.mpHelper&&(console.log("SG_EVENTS sending to minijuegos!"),"levelStart"!==l&&"levelFinish"!==l||window.mpHelper.sendStat("level",f.level),"levelFinish"===l&&window.mpHelper.sendStat("score",f.score)),window.parent.postMessage(n,"*")}if(o){var p=VT[i][o];p&&qT.emit(p,n)}}}),!1);var YT=new Uint8Array(16);function QT(){if(!HT&&!(HT="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return HT(YT)}var JT=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var XT=[],eP=0;eP<256;++eP)XT.push((eP+256).toString(16).substr(1));function tP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(XT[e[t+0]]+XT[e[t+1]]+XT[e[t+2]]+XT[e[t+3]]+"-"+XT[e[t+4]]+XT[e[t+5]]+"-"+XT[e[t+6]]+XT[e[t+7]]+"-"+XT[e[t+8]]+XT[e[t+9]]+"-"+XT[e[t+10]]+XT[e[t+11]]+XT[e[t+12]]+XT[e[t+13]]+XT[e[t+14]]+XT[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&JT.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r}function rP(e,t,r){var n=(e=e||{}).random||(e.rng||QT)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return tP(n)}function nP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var iP="__msgr",oP=rP(),aP=function(e){var t=this;if(!window[iP]){var n=document.createElement("iframe");if(n.src="https://static.gamedistribution.com/message/index.html",n.style.display="none",n.name=iP,document.body.appendChild(n),window!==window.top){var i={gameId:e.gameId,target:e.evnts.domain,token:oP,event_name:"TokenGenerated",timestamp:Date.now()};n.onload=function(){cP(i)},setInterval(function(){r(this,t),i.timestamp=Date.now(),i.event_name="Heartbeat",cP(i)}.bind(this),1e3*e.evnts.heartbeatDuration)}}window.addEventListener("message",function(e){r(this,t);try{var n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nP(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nP(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e.data);if(!n.event_name)return;n.token=oP,cP(n)}catch(e){console.error("GD Messager Error",e.message)}}.bind(this),!1)},sP=function(e){try{var t={gameId:e.game.gameId,target:e.game.evnts.domain,event_name:e.event,timestamp:Date.now()},r=uP(window);r!==window.top&&(null==r||r.postMessage(t,"https://html5.gamedistribution.com"))}catch(e){}},uP=function e(t){try{var r,n,i=null==t?void 0:t.parent;if("game"===(null===(r=i.document)||void 0===r||null===(n=r.activeElement)||void 0===n?void 0:n.id))return i;e(i)}catch(e){return t}},cP=function(e){try{window[iP]&&window[iP].postMessage(e,"*")}catch(e){console.log("GD Messager initialization, please wait....")}},dP=function(){function e(t){O(this,e),this.adContainer=document.getElementById("gdsdk__advertisement"),this.adContainerInner=document.getElementById("gdsdk__advertisement_slot"),this._adRequest=t.adRequest,this._gameData=t._gameData,this._msgrt=t._msgrt,this._adInstance=t._adInstance,this._eventBus=t._eventBus,this.blockedAdsMap=t._blockedAdsMap,this._parentURL=t._parentURL,this._parentDomain=t._parentDomain,this._onResumeGame=t._onResumeGame.bind(t),this._onPauseGame=t._onPauseGame.bind(t),this._onRewardedWatchComplete=t._onRewardedWatchComplete.bind(t),this._onAdError=t._onAdError.bind(t),this._promoShowSuccess=!1}var n,i,o;return M(e,[{key:"run",value:function(e){var n=e.duration,i=this;return new Promise(function(){var e=t(d.mark((function e(t,o){var a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i.add();case 3:a=i.show(),setTimeout(function(){r(this,s);try{i.hide(),t({success:a})}catch(e){o(e)}}.bind(this),1e3*n),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),o(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));return function(t,r){return e.apply(this,arguments)}}())}},{key:"show",value:function(){return this.promo_data.game?(this.adContainer.style.visibility="visible",this.promo.style.display="block",this._onPauseGame("Pause the game for the promo","success"),this._promoShowSuccess=!0):this._onAdError("Promo not found"),this._promoShowSuccess}},{key:"hide",value:function(){var e;(this.promo.remove(),this.adContainer.style.visibility="hidden",this._promoShowSuccess)&&("reward"===(null===(e=this._adRequest.params)||void 0===e?void 0:e.position)&&this._onRewardedWatchComplete());this._onResumeGame("Advertisement(s) are done. Start / resume the game.","success")}},{key:"add",value:(o=t(d.mark((function e(){var r,n,i,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.fetch_promo();case 3:this.promo_data=e.sent,r=document.createElement("div"),this.promo=r,n=this.promo_data,this.promo.addEventListener("click",function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),console.log(n),o.track_click(n.click_tracking),window.open(n.click_through,"_blank");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(i=document.createElement("iframe")).src=this.promo_data.renderer_url,i.setAttribute("frameborder",0),this.addStyles(),this.promo.classList.add("gd__promo"),i.classList.add("gd__promo__iframe"),this.promo.appendChild(i),this.adContainer.appendChild(this.promo),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),console.log(e.t0);case 21:case"end":return e.stop()}}),e,this,[[0,18]])}))),function(){return o.apply(this,arguments)})},{key:"addStyles",value:function(){var e="\n .gd__promo{\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: transparent;\n z-index: 1;\n cursor: pointer;\n }\n .gd__promo__iframe{\n position: relative;\n z-index: -1;\n width:".concat(this.adContainerInner.style.width,";\n height:").concat(this.adContainerInner.style.height,";\n }\n "),t=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__promo__style",t,e)}},{key:"addStylesheet",value:function(e,t,r){if(!document.getElementById(e)){var n=document.createElement("style");n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}},{key:"fetch_promo",value:(i=t(d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://tag.atom.gamedistribution.com/v1/rainbow/pick?id=".concat(this._parentDomain,"&aid=").concat(this._gameData.gameId)).then(function(e){return r(this,n),e.json()}.bind(this));case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"track_click",value:(n=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})}]),e}();function lP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fP(e){return function(e){if(Array.isArray(e))return lP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return lP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lP(e,t):void 0}}(e)||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 pP=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"GD",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ObjectStore";O(this,e),this.dbName=t,this.storeName=r,this.db=null,this.init()}var n,i,o,a;return M(e,[{key:"init",value:function(){var e=this;return new Promise(function(t,n){var i=this;r(this,e);var o=indexedDB.open(this.dbName,1);o.onerror=function(e){r(this,i),console.error("Database error:",e.target.error),n(e.target.error)}.bind(this),o.onsuccess=function(e){r(this,i),this.db=e.target.result,t(this.db)}.bind(this),o.onupgradeneeded=function(e){r(this,i);var t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName,{keyPath:"key"})}.bind(this)}.bind(this))}},{key:"getItem",value:(a=t(d.mark((function e(t){var n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.init();case 3:return e.abrupt("return",new Promise(function(e,i){var o=this;r(this,n);var a=this.db.transaction([this.storeName],"readonly").objectStore(this.storeName).get(t);a.onerror=function(e){r(this,o),console.error("Get item error:",e.target.error),i(e.target.error)}.bind(this),a.onsuccess=function(t){r(this,o),a.result?e(a.result.value):e(null)}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"setItem",value:(o=t(d.mark((function e(t,n){var i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.init();case 3:return e.abrupt("return",new Promise(function(e,o){var a=this;r(this,i);var s=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).put({key:t,value:n});s.onerror=function(e){r(this,a),console.error("Set item error:",e.target.error),o(e.target.error)}.bind(this),s.onsuccess=function(t){r(this,a),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"removeItem",value:(i=t(d.mark((function e(t){var n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.init();case 3:return e.abrupt("return",new Promise(function(e,i){var o=this;r(this,n);var a=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).delete(t);a.onerror=function(e){r(this,o),console.error("Remove item error:",e.target.error),i(e.target.error)}.bind(this),a.onsuccess=function(t){r(this,o),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"clear",value:(n=t(d.mark((function e(){var t=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.init();case 3:return e.abrupt("return",new Promise(function(e,n){var i=this;r(this,t);var o=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).clear();o.onerror=function(e){r(this,i),console.error("Clear store error:",e.target.error),n(e.target.error)}.bind(this),o.onsuccess=function(t){r(this,i),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}]),e}(),hP=function(){function e(r){var n=r.mode;O(this,e),this.setItem=function(){var e=t(d.mark((function e(t,r){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),this.getItem=function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),"indexed-db"===n?(this.indexedStore=new pP,this.setItem=this.indexedStore.setItem.bind(this.indexedStore),this.getItem=this.indexedStore.getItem.bind(this.indexedStore)):"local-storage"===n&&(this.setItem=function(){var e=t(d.mark((function e(t,r){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",gt.set(t,r));case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),this.getItem=function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",gt.getString(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}var r,n;return M(e,[{key:"set",value:(n=t(d.mark((function e(t,r){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=JSON.stringify(r),e.next=3,this.setItem(t,n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"get",value:(r=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getItem(t);case 2:return r=e.sent,e.abrupt("return",r?JSON.parse(r):null);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}]),e}();function mP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mP(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mP(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var gP="_gd_vs";function AP(e){return bP.apply(this,arguments)}function bP(){return bP=t(d.mark((function e(t){var r,n,i,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.gameId,n=t.serverDate,o=[],!window.indexedDB){e.next=13;break}return e.prev=3,e.next=6,wP({gameId:r,serverDate:n});case 6:i=e.sent,e.next=13;break;case 9:e.prev=9,e.t0=e.catch(3),eu("visit-update error, indexedDb",e.t0.message),o.push(e.t0.message);case 13:if(i||!gt.available){e.next=24;break}return e.prev=14,e.next=17,yP({gameId:r,serverDate:n});case 17:i=e.sent,e.next=24;break;case 20:e.prev=20,e.t1=e.catch(14),eu("visit-update error, Ls",e.t1.message),o.push(e.t1.message);case 24:return e.abrupt("return",vP(vP({},i),{},{errors:o}));case 25:case"end":return e.stop()}}),e,null,[[3,9],[14,20]])}))),bP.apply(this,arguments)}function yP(e){return _P.apply(this,arguments)}function _P(){return _P=t(d.mark((function e(t){var r,n,i,o,a,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.gameId,n=t.serverDate,o=new hP({mode:i="local-storage"}),e.next=5,o.get(gP);case 5:return(a=e.sent)||(a={gids:{}}),a.gids[r]||(a.gids[r]={fv:n,vc:0}),(s=a.gids[r]).vc++,s.lv=n,e.next=13,o.set(gP,a);case 13:return e.abrupt("return",{visit:s,mode:i});case 14:case"end":return e.stop()}}),e)}))),_P.apply(this,arguments)}function wP(e){return xP.apply(this,arguments)}function xP(){return xP=t(d.mark((function e(t){var r,n,i,o,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.gameId,n=t.serverDate,o=new hP({mode:i="indexed-db"}),e.next=5,o.get(r);case 5:return(a=e.sent)||(a={fv:n,vc:0}),a.vc++,a.lv=n,e.next=11,o.set(r,a);case 11:return e.abrupt("return",{visit:a,mode:i});case 12:case"end":return e.stop()}}),e)}))),xP.apply(this,arguments)}let kP=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t};var EP={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,o||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var u,c,d=this._events[s],l=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),l){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,n),!0;case 4:return d.fn.call(d.context,t,n,i),!0;case 5:return d.fn.call(d.context,t,n,i,o),!0;case 6:return d.fn.call(d.context,t,n,i,o,a),!0}for(c=1,u=new Array(l-1);c<l;c++)u[c-1]=arguments[c];d.fn.apply(d.context,u)}else{var f,p=d.length;for(c=0;c<p;c++)switch(d[c].once&&this.removeListener(e,d[c].fn,void 0,!0),l){case 1:d[c].fn.call(d[c].context);break;case 2:d[c].fn.call(d[c].context,t);break;case 3:d[c].fn.call(d[c].context,t,n);break;case 4:d[c].fn.call(d[c].context,t,n,i);break;default:if(!u)for(f=1,u=new Array(l-1);f<l;f++)u[f-1]=arguments[f];d[c].fn.apply(d[c].context,u)}}return!0},s.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||a(this,o);else{for(var u=0,c=[],d=s.length;u<d;u++)(s[u].fn!==t||i&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(EP);var SP=EP.exports;function DP({window:e,serviceId:t}){return e&&t?t===this.serviceId?Promise.reject(new Error("[IS] Cannot connect to self")):new Promise(((r,n)=>{const i=kP();this.transactionHandler[i]=e=>{if("object"!=typeof e.data)return;const{contextId:t,scriptId:i,serviceId:o,messageId:a,sender:s}=e.data||{};t&&i&&o&&a&&s&&0!==e.ports.length&&(e.ports[0].start(),this.router=e.ports[0],this.router.onmessage=this.handleMessage.bind(this),this.router.serviceId=o,this.router.onmessageerror=e=>{console.error(`[IS] ${this.id}: Error received from router`,e?.message||e)},this.verbose&&console.log(`[IS] ${this.id}: Communication channel established with ${s}`),this.api.proxy({method:"echo",args:{ts:Date.now()}}).then((t=>{e.data.elapsed=Date.now()-e.data.ts;const n=Date.now()-t.ts;this.verbose&&console.log(`[IS] ${this.id}: Connection echo test response received from ${s} in ${n} ms`),r(e.data.body)})).catch((e=>{n(e)})))};const o=this.createMessage({transactionId:i,method:"connect"});o.body={where:{serviceId:t}},e.postMessage(o,"*"),this.setupTransactionTimeout({transactionId:i,reject:n})})):Promise.reject(new Error("[IS] Target window and service ID are required to connect to a service"))}function RP(){}function IP(e){return e}function CP({method:e,handler:t,configurable:r=!1}){if(this.api[e])throw new Error(`[IS] Cannot register method ${e} as it is already registered.`);this.registeredHandlers[e]=t,Object.defineProperty(this.api,e,{get:()=>t,enumerable:!1,configurable:r}),this.verbose&&console.log(`[IS] ${this.id}: Registered handler for ${e}`)}function OP({alias:e,method:t,service:r,configurable:n=!1}){this.api.register({method:e,handler:(e,n)=>this.api.proxy({method:t,service:r,args:e,options:n}),configurable:n}),this.verbose&&console.log(`[IS] ${this.id}: Registered proxy for ${e} to ${r}`)}const TP={services:{}};function PP({method:e,args:t,service:r,options:n={}}){return new Promise(((i,o)=>{const a=kP();this.transactionHandler[a]=e=>{e.data.elapsed=Date.now()-e.data.ts,e.data.error?o(e.data.error):i(e.data?.body)};const s=(r||"").split("/"),u=s.shift(),c=this.clients[u];if(void 0===c){if(!this.router)return delete this.transactionHandler[a],o(new Error(`No router registered for ${this.id}`));n?.callback&&this.api.register({method:a,handler:n.callback,configurable:!0});const i=this.createMessage({transactionId:a,method:e,hasCallback:!!n?.callback});t&&(i.body=t),r&&(i.service=r),this.router.postMessage(i),this.setupTransactionTimeout({transactionId:a,reject:o,timeout:n?.timeout})}else{const r=this.createMessage({transactionId:a,method:e,hasCallback:!!n?.callback});n?.callback&&this.api.register({method:a,handler:n.callback,configurable:!0}),t&&(r.body=t),s.length>0&&(r.service=s.join("/")),c.postMessage(r),this.setupTransactionTimeout({transactionId:a,reject:o,timeout:n?.timeout})}}))}function MP(){window.removeEventListener("message",this.handleMessage)}function LP({where:e,service:t}={}){if((e=e||{}).hasOwnProperty("serviceId"))if(Array.isArray(e.serviceId)){if(e.serviceId.length&&!e.serviceId.includes(t.serviceId))return!1}else if(e.serviceId!==t.serviceId)return!1;if(e.hasOwnProperty("contextId"))if(Array.isArray(e.contextId)){if(e.contextId.length&&!e.contextId.includes(t.contextId))return!1}else if(e.contextId!==t.contextId)return!1;if(e.hasOwnProperty("scriptId"))if(Array.isArray(e.scriptId)){if(e.scriptId.length&&!e.scriptId.includes(t.scriptId))return!1}else if(e.scriptId!==t.scriptId)return!1;if(e.hasOwnProperty("id"))if(Array.isArray(e.id)){if(e.id.length&&!e.id.includes(t.id))return!1}else if(e.id!==t.id)return!1;if(e.hasOwnProperty("client")){const r=Object.keys(t.clients);if(Array.isArray(e.client)){if(e.client.length&&!e.client.some((e=>r.includes(e))))return!1}else if(!r.includes(e.client))return!1}return!0}async function BP({timeout:e=1e3,interval:t=100,where:r={}}={}){const n=Date.now();let i=Math.floor(e/t);const o=FP.bind(this);for(;i>0;){const e=await o({timeout:t,where:r});if(e)return this.verbose&&console.log(`[IS] ${this.id}: Router found in ${Date.now()-n}ms`),e;i--}return this.verbose&&console.log(`[IS] ${this.id}: Router not found in ${Date.now()-n}ms`),null}function jP({window:e,timeout:t,where:r}={}){return new Promise(((n,i)=>{const o=kP();this.transactionHandler[o]=e=>{if("object"!=typeof e.data)return;const{contextId:t,scriptId:r,serviceId:i,messageId:o,sender:a}=e.data;t&&r&&i&&o&&a&&n(e.data)};const a=this.createMessage({transactionId:o,method:"are-you-router"});a.body={where:r},e.postMessage(a,"*"),this.setupTransactionTimeout({transactionId:o,reject:i,timeout:t})}))}function UP({where:e}={}){const t=TP.services,r=Object.keys(t),n=this.serviceId;for(let i=0;i<r.length;i++){const o=t[r[i]];if(o.serviceId!==n&&(LP({where:e,service:o})&&o.router_enabled))return o}return null}async function FP({timeout:e,where:t}={}){const r=UP.call(this,{where:t});if(r)return{window:window,serviceId:r.serviceId,contextId:r.contextId,scriptId:r.scriptId};let n=window.parent;for(;n!==window;){const r=await jP.call(this,{window:n,timeout:e,where:t}).catch((e=>{this.verbose&&console.log(`[IS] ${this.id}: ${e.message}`)}));if(r)return{window:n,serviceId:r.serviceId,contextId:r.contextId,scriptId:r.scriptId};if(n===n.parent)break;n=n.parent}return null}function NP({method:e}){this.api[e]&&(delete this.api[e],delete this.registeredHandlers[e],this.verbose&&console.log(`[IS] ${this.id}: Unregistered handler for ${e}`))}function $P(){return kP()}async function GP(e){const{transactionId:t,messageId:r,serviceId:n,method:i,sender:o,body:a}=e.data;if(this.serviceId===n)return;if(!LP({where:a?.where,service:this}))return;const s=new MessageChannel;s.port1.start(),this.clients[o]=s.port1,this.clients[o].onmessage=this.handleMessage.bind(this),this.clients[o].serviceId=n,this.clients[o].onmessageerror=e=>{console.error(`[IS] ${this.id}: Error received from ${o}`,e?.message||e)};const u=this.createMessage({transactionId:t,replyTo:r});u.body=a,e.source.postMessage(u,"*",[s.port2]),this.verbose&&console.log(`[IS] ${this.id}: Connection received from ${o}`);try{this.ee.emit("connected",{contextId:e.data.contextId,scriptId:e.data.scriptId,serviceId:n,service:o})}catch(e){this.verbose&&console.log(`[IS] ${this.id}: Error while emitting connected event`,e.message)}}async function HP(e){const{transactionId:t,messageId:r,serviceId:n,body:i}=e.data;if(!0!==this.router_enabled)return;if(this.serviceId===n)return;if(!LP({where:i?.where,service:this}))return;const o=this.createMessage({transactionId:t,replyTo:r});o.body=i,e.source.postMessage(o,"*")}async function zP(e){const{transactionId:t,messageId:r,method:n,service:i}=e.data,o=this.createMessage({transactionId:t,replyTo:r});try{const t=await this.api.proxy({method:n,args:e.data.body,service:i});o.body=t,e.target.postMessage(o)}catch(t){o.error=t?.message||t,e.target.postMessage(o)}}async function ZP(e){const{transactionId:t,messageId:r,method:n}=e.data,i=this.registeredHandlers[n],o=this.createMessage({transactionId:t,replyTo:r});try{const t=await i(e.data.body,e.data);o.body=t,e.target.postMessage(o)}catch(t){o.error=t?.message||t,e.target.postMessage(o)}}async function KP(e){const{transactionId:t}=e.data,r=this.transactionHandler[t];delete this.transactionHandler[t],await r(e)}async function qP(e){if("object"!=typeof e.data)return;const{transactionId:t,contextId:r,scriptId:n,messageId:i,serviceId:o,method:a,service:s}=e.data;if(t&&r&&n&&i&&o)switch(this.verbose&&console.log(`[IS] ${this.id}`,e.data),a){case"connect":await GP.call(this,e);break;case"are-you-router":await HP.call(this,e);break;default:a&&s?await zP.call(this,e):a&&this.registeredHandlers[a]?await ZP.call(this,e):this.transactionHandler[t]&&await KP.call(this,e)}}function VP({transactionId:e,reject:t,timeout:r=1e3}){const n=setTimeout((()=>{clearTimeout(n),delete this.transactionHandler[e],this.api.unregister({method:e}),t(new Error("[IS] timeout"))}),r)}async function WP(){const e="INTERSERVICE_CONTEXT_ID";window[e]||Object.defineProperty(window,e,{value:kP(),enumerable:!1,configurable:!1}),this.contextId=window[e],this.scriptId=await async function(e){if(!e)return null;const t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-1",t),n=Array.from(new Uint8Array(r)).map((e=>e.toString(16).padStart(2,"0"))).join("");return n}(document.currentScript&&document.currentScript.src||new URL("index.js",document.baseURI).href)}function YP(e){return{ts:Date.now(),contextId:this.contextId,scriptId:this.scriptId,serviceId:this.serviceId,messageId:kP(),sender:this.id,...e}}async function QP({id:e,verbose:t,router:r}){const n={api:{}};function i(e,t){Object.defineProperty(n.api,e,{get:()=>t,enumerable:!1,configurable:!1})}function o(e,t){const r=t.bind(n);n.api.register({method:e,handler:r})}return await async function(){if(!/^([a-z\-_]+)$/.test(e))throw new Error("[IS] Invalid ID format. ID should be lowercase and can include '-' and '_'.");this.router_enabled=r,this.serviceId=kP(),this.id=e,this.verbose=t,this.ee=new SP,this.router=null,this.clients={},this.transactionHandler={},this.registeredHandlers={},this.setupTransactionTimeout=VP.bind(this),this.handleMessage=qP.bind(this),this.createMessage=YP.bind(this),await WP.apply(this),window.addEventListener("message",this.handleMessage),TP.services[this.id]=this}.apply(n),i("connect",DP.bind(n)),i("findRouter",BP.bind(n)),i("register",CP.bind(n)),i("unregister",NP.bind(n)),i("registerProxy",OP.bind(n)),i("proxy",PP.bind(n)),i("dispose",MP.bind(n)),i("newId",$P.bind(n)),i("on",n.ee.on.bind(n.ee)),i("once",n.ee.once.bind(n.ee)),i("off",n.ee.off.bind(n.ee)),i("addListener",n.ee.addListener.bind(n.ee)),i("removeListener",n.ee.removeListener.bind(n.ee)),i("removeAllListeners",n.ee.removeAllListeners.bind(n.ee)),o("ping",RP),o("echo",IP),n.api}var JP;function XP(){return XP=t(d.mark((function e(t){var r,n,i,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.whichFrame,n=t.options,e.prev=1,i="gd-".concat(r),void 0,o=undefined,!("loader-frame"===r)){e.next=12;break}return e.next=9,eM({id:i,verbose:o,options:n});case 9:JP=e.sent,e.next=15;break;case 12:return e.next=14,rM({id:i,verbose:o,options:n});case 14:JP=e.sent;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(1),Js("[GD-IS] GD interservice create error",e.t0);case 20:case"end":return e.stop()}}),e,null,[[1,17]])}))),XP.apply(this,arguments)}function eM(e){return tM.apply(this,arguments)}function tM(){return tM=t(d.mark((function e(n){var i,o,a,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.id,o=n.verbose,a=n.options,e.next=4,QP({id:i,verbose:o,router:!0});case 4:return(s=e.sent).on("connected",function(e){r(this,u)}.bind(this)),s.register({method:"whoami",handler:function(){return r(this,u),"[GD-IS] I am ".concat(i)}.bind(this)}),s.register({method:"isLoader",handler:function(){return r(this,u),!0}.bind(this)}),s.register({method:"hasRouter",handler:function(){return r(this,u),!1}.bind(this)}),s.register({method:"showAd",handler:function(){var e=t(d.mark((function e(r){var n,i,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.showAd?a.showAd:function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),i=r.adType,o=r.params,e.next=4,n(i,o);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),s.register({method:"registerOnEvents",handler:function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.registerProxy({alias:"onEvent",method:"onEvent",service:"gd-game-frame"}),e.abrupt("return","[GD-IS] gd-game-frame registered for onEvents");case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),e.next=13,s.whoami();case 13:return e.sent,e.abrupt("return",s);case 16:case"end":return e.stop()}}),e,this)}))),tM.apply(this,arguments)}function rM(e){return nM.apply(this,arguments)}function nM(){return nM=t(d.mark((function e(t){var n,i,o,a,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,i=t.verbose,o=t.options,e.next=4,QP({id:n,verbose:i,router:!1});case 4:return a=e.sent,"gd-loader-frame",e.next=8,a.findRouter({where:{id:"gd-loader-frame"}}).catch(function(e){r(this,u)}.bind(this));case 8:if(s=e.sent,e.t0=!!s,!e.t0){e.next=15;break}return e.next=14,a.connect(s).catch(function(e){r(this,u),Js("[GD-IS] Failed to connect to router",(null==e?void 0:e.message)||e)}.bind(this));case 14:e.t0=e.sent;case 15:return e.t0,a.register({method:"whoami",handler:function(){return r(this,u),"[GD-IS] I am ".concat(n)}.bind(this)}),a.register({method:"onEvent",handler:function(e){var t=this;r(this,u);var n=e.event;(o.onEvent||function(e){r(this,t)}.bind(this))(n)}.bind(this)}),a.register({method:"isLoader",handler:function(){return r(this,u),!1}.bind(this)}),a.register({method:"hasRouter",handler:function(){return r(this,u),!!s}.bind(this)}),s&&(a.registerProxy({alias:"whoIsLoader",method:"whoami"}),a.registerProxy({alias:"registerOnEvents",method:"registerOnEvents"}),a.registerProxy({alias:"showAd",method:"showAd"})),e.next=24,a.whoami();case 24:if(e.sent,!s){e.next=35;break}return e.next=29,a.whoIsLoader();case 29:return e.sent,e.next=32,a.registerOnEvents();case 32:e.sent;case 35:return e.abrupt("return",a);case 36:case"end":return e.stop()}}),e,this)}))),nM.apply(this,arguments)}var iM=!1;function oM(){var e=this;return new Promise(function(t,n){var i=this;if(r(this,e),JP||iM)t(JP);else{var o=setInterval(function(){r(this,i),JP&&(iM=!0,clearInterval(o),t(JP))}.bind(this),100);setTimeout(function(){r(this,i),clearInterval(o),JP||(iM=!0,t(JP))}.bind(this),5e3)}}.bind(this))}function aM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aM(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var uM,cM,dM,lM=function(){var e=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.3.1/socket.io.js",t=["https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.3.1/socket.io.js"],e.next=4,ft(t[0],"soecket.io.js",{alternates:t});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),fM=0,pM=!1,hM=function(){var e=t(d.mark((function e(n){var i,o,a,s,u,c,l,f=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.args,o=n.onError,e.prev=1,!window.isForwarderFrame){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,oM();case 7:if(!(a=e.sent)){e.next=18;break}return e.next=11,a.isLoader();case 11:if(!(s=e.sent)&&(s||a.hasRouter())){e.next=16;break}a.register({method:"sendSocketEvent",handler:function(e){r(this,f),gM(e.topic,e.args)}.bind(this)}),e.next=18;break;case 16:return a.registerProxy({alias:"sendSocketEvent",method:"sendSocketEvent"}),e.abrupt("return");case 18:if(u=new C(window.location.href),c=!["html5.gamedistribution.com","revision.gamedistribution.com"].some(function(e){return r(this,f),e.toLowerCase()===u.host.toLowerCase()}.bind(this)),!(c&&a&&a.hasRouter())){e.next=24;break}return e.abrupt("return");case 24:return c&&a&&a.hasRouter(),e.next=27,lM();case 27:cM=rP(),l={json:JSON.stringify(i)},"wss://ws.gamedistribution.com",(uM=io("wss://ws.gamedistribution.com",{query:l,upgrade:!1,transports:["websocket"],reconnectionDelay:6e4,autoConnect:!1})).on("connect",function(){r(this,f)}.bind(this)),uM.on("after-connect",function(){var e=t(d.mark((function e(t){var r,n,o,a,s,u;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return dM=dM||(null==t?void 0:t.serverDate),r=i.gameId,e.next=4,AP({gameId:r,serverDate:dM});case 4:n=e.sent,o=n.visit,a=n.mode,s=n.errors,i.visit=sM(sM({},o),{},{stm:a,errors:s}),u={json:JSON.stringify(i)},uM.emit("client-info",{clientId:cM,counter:fM++,serverDate:dM,query:u}),pM=!0;case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),uM.on("disconnect",function(e){r(this,f),pM=!1}.bind(this)),uM.connect(),e.next=40;break;case 37:e.prev=37,e.t0=e.catch(1),o&&o(e.t0);case 40:case"end":return e.stop()}}),e,this,[[1,37]])})));return function(t){return e.apply(this,arguments)}}(),mM=!1,vM=[];function gM(e,t){return AM.apply(this,arguments)}function AM(){return AM=t(d.mark((function e(t,n){var i,o,a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oM();case 2:if(!(i=e.sent)){e.next=11;break}return e.next=6,i.isLoader();case 6:if(e.sent||!i.hasRouter()){e.next=11;break}return e.next=10,i.sendSocketEvent({topic:t,args:n});case 10:return e.abrupt("return");case 11:if("play"!==t){e.next=15;break}if(!mM){e.next=14;break}return e.abrupt("return");case 14:mM=!0;case 15:o=function(e,t){r(this,s);try{var n={json:JSON.stringify(t||{})};uM.emit("socket-event",{topic:e,clientId:cM,counter:fM,serverDate:dM,query:n})}catch(e){eu("game-session: Error on sending socket-event",e.message)}}.bind(this),a=function(){r(this,s),o(t,n)}.bind(this),vM.push(a);case 19:case"end":return e.stop()}}),e,this)}))),AM.apply(this,arguments)}function bM(e){var t=this,n={preroll:["preroll","start"],midroll:["next"],rewarded:["reward"]},i=Object.keys(n).find(function(i){var o=this;return r(this,t),n[i].some(function(t){return r(this,o),t===e.params.position}.bind(this))}.bind(this));return i||"midroll"}function yM(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return _M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _M(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function _M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}setInterval((function(){if(0!==vM.length&&uM&&pM){for(var e=function(){var e=this,i=n[t];i(),vM=vM.filter(function(t){return r(this,e),t!==i}.bind(this))},t=0,n=fP(vM);t<n.length;t++)e();Js("game-session: commands length",vM.length)}}),100);var wM=3,xM=1,kM=5,EM={lastImpressionDate:null,imps:0};function SM(){return DM.apply(this,arguments)}function DM(){return(DM=t(d.mark((function e(){var t,n,i,o,a,s,u,c,l,f,p;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},e.next=3,GD();case 3:if(i=e.sent,o=i.compensation||{enabled:!1},a=null==i||null===(t=i.adTimer)||void 0===t?void 0:t.enabled,n.ruleEnabled=(null==o?void 0:o.enabled)&&a,!(void 0===(null==o?void 0:o.exctg)||(null==o?void 0:o.exctg))){e.next=29;break}s=["co-op","multiplayer","IAPs"],u=(null==i?void 0:i.tags)||[],c=!1,l=yM(u),e.prev=13,p=d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=f.value,s.some(function(e){return r(this,n),e===t.title}.bind(this))&&(c=!0);case 2:case"end":return e.stop()}}),e,this)})),l.s();case 16:if((f=l.n()).done){e.next=20;break}return e.delegateYield(p(),"t0",18);case 18:e.next=16;break;case 20:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(13),l.e(e.t1);case 25:return e.prev=25,l.f(),e.finish(25);case 28:n.disabledByTag=c;case 29:return n.isLowScoreGame=RM(i),n.enabled=n.ruleEnabled&&!n.disabledByTag&&n.isLowScoreGame,i.hasActiveCompensations=n.enabled,e.abrupt("return",n);case 33:case"end":return e.stop()}}),e,null,[[13,22,25,28]])})))).apply(this,arguments)}function RM(e){var t=!1,r=e.compensation||{enabled:!1},n=null==e?void 0:e.adsc;if(1===(null==n?void 0:n.s)&&null!=n&&n.t){var i=null==n?void 0:n.t,o=(null==r?void 0:r.esc)||xM,a=(null==r?void 0:r.ascl)||kM,s=i||{},u=s.adsc,c=s.reqsc,d=s.pdur,l=s.rspdur;s.aspdur,t=(l||c/(d/wM))<=o&&u<a}return t}var IM=!1;function CM(){return OM.apply(this,arguments)}function OM(){return(OM=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!IM){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,SM();case 4:(t=e.sent).enabled,t.override,t.giftEnabled,t.midrollPlusEnabled,IM=!0;case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function TM(e){var t=e.rateType,r=e.gameData,n=!1;if(r.hasActiveCompensations){var i=r.compensation,o="gift"===t?null==i?void 0:i.gftr:null==i?void 0:i.mpr;o=void 0===o?1:o,n=Math.random()<=o}else n=!0;return n}function PM(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return MM(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return MM(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function MM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var LM=!1,BM=3,jM=5,UM=1,FM=60,NM=10;function $M(){return GM.apply(this,arguments)}function GM(){return(GM=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return EM.imps++,EM.lastImpressionDate=new Date,e.abrupt("return",!0);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function HM(e){return zM.apply(this,arguments)}function zM(){return zM=t(d.mark((function e(n){var i,o,a,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,R,I,C,O,T,P,M,L,B,j,U,F,N,$,G,H,z,Z,K,q,V=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=n.gameData,u=n.executeCompensation,c=function(){var e=t(d.mark((function e(t){var r,n,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(null==t?void 0:t.whenAvailable)||!1,!u){e.next=7;break}return e.next=4,u({whenAvailable:r});case 4:e.t0=e.sent,e.next=10;break;case 7:return e.next=9,$M();case 9:e.t0=e.sent;case 10:return n=e.t0,i=n.args,e.abrupt("return",null==i?void 0:i.success);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=!LM,!LM){e.next=5;break}return e.abrupt("return");case 5:if(LM=!0,f=s.adsc){e.next=10;break}return e.abrupt("return");case 10:if(p=f.s,h=f.t,1===p){e.next=13;break}return e.abrupt("return");case 13:if(m=s.compensation||{enabled:!1},v=null==m?void 0:m.enabled,g=null==s||null===(i=s.adTimer)||void 0===i?void 0:i.enabled,v&&g){e.next=20;break}return e.abrupt("return");case 20:if(!(void 0===(null==m?void 0:m.exctg)||(null==m?void 0:m.exctg))){e.next=45;break}A=["co-op","multiplayer","IAPs"],b=(null==s?void 0:s.tags)||[],y=!1,_=PM(b),e.prev=27,x=d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=w.value,A.some(function(e){return r(this,n),e===t.title}.bind(this))&&(y=!0);case 2:case"end":return e.stop()}}),e,this)})),_.s();case 30:if((w=_.n()).done){e.next=34;break}return e.delegateYield(x(),"t0",32);case 32:e.next=30;break;case 34:e.next=39;break;case 36:e.prev=36,e.t1=e.catch(27),_.e(e.t1);case 39:return e.prev=39,_.f(),e.finish(39);case 42:if(!y){e.next=45;break}return e.abrupt("return");case 45:if(k=(null==m?void 0:m.esc)||UM,E=void 0===(null==m?void 0:m.depgft)||(null==m?void 0:m.depgft),S=null!=m&&m.depgftr?null==m?void 0:m.depgftr:1,D=(null==m?void 0:m.onst)||!1,R=(null==m?void 0:m.sl)||3,I=(null==m?void 0:m.tl)||180,C=(null==s||null===(o=s.gft)||void 0===o?void 0:o.midroll.enabled)||!1,O=(null==s||null===(a=s.midroll_plus)||void 0===a?void 0:a.enabled)||!1,(!C||!O)&&(I/=S),T=void 0===(null==m?void 0:m.tc)||(null==m?void 0:m.tc),P=(null==m?void 0:m.ascl)||jM,!E){e.next=65;break}if(B=(null==s||null===(M=s.gft)||void 0===M?void 0:M.midroll.enabled)||!1,j=(null==s||null===(L=s.midroll_plus)||void 0===L?void 0:L.enabled)||!1,B&&j){e.next=65;break}return e.abrupt("return");case 65:if(F=(U=h||{}).adsc,N=U.reqsc,$=U.pdur,G=U.rspdur,U.aspdur,(G||N/($/BM))<=k&&F<P){e.next=72;break}return e.abrupt("return");case 72:if(H=Math.ceil($/BM),!D||!l){e.next=79;break}return e.next=79,c({whenAvailable:!0});case 79:z=0,Z=1,K=function(){r(this,V),z=0,Z=1}.bind(this),q=setInterval(t(d.mark((function e(){var t,n,i,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(T&&EM.imps>=H)){e.next=4;break}return clearInterval(q),e.abrupt("return");case 4:if(t=new Date,n=EM.lastImpressionDate?(a=EM.lastImpressionDate,s=t,u=void 0,d=void 0,void 0,void 0,u=a.getTime(),d=s.getTime(),(d-u)/1e3):I+1,!((i=I-n)>0)){e.next=20;break}if(!(i<=FM-NM)){e.next=17;break}return e.next=15,new Promise(function(e){var t=this;r(this,o),setTimeout(function(){r(this,t),e()}.bind(this),1e3*i)}.bind(this));case 15:e.next=20;break;case 17:return K(),e.abrupt("return");case 20:if(++z%Z==0){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,c({});case 26:e.sent?K():(z=0,Z=Z+1>R?R:Z+1);case 28:case"end":return e.stop()}var a,s,u,d}),e,this)}))),1e3*FM);case 83:case"end":return e.stop()}}),e,this,[[27,36,39,42]])}))),zM.apply(this,arguments)}function ZM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function KM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ZM(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qM(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return VM(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return VM(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function VM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var WM,YM=function(){function e(t){var n=this;O(this,e),this._gameData=t._gameData,this._msgrt=t.msgrt,this._adInstance=t.adInstance,this._eventBus=t.eventBus,this.blockedAdsMap=t.blockedAdsMap,this._parentURL=t._parentURL,this._parentDomain=t._parentDomain,this._onResumeGame=t.onResumeGame.bind(t),this._onPauseGame=t.onPauseGame.bind(t),this._onRewardedWatchComplete=t.onRewardedWatchComplete.bind(t),this._onAdError=t.onAdError.bind(t),this._setAdRequestTimer=t._setAdRequestTimer.bind(t),this._giveGift=t._giveGift.bind(t),this._executeMidrollPlus=t._executeMidrollPlus.bind(t),this.executeCompensation=t.executeCompensation.bind(t),this._runAutoResume=t._runAutoResume.bind(t),this.send_atom_event=t.send_atom_event.bind(t),this.get_session_id=t.get_session_id.bind(t),this.get_ad_system_init_result=t.get_ad_system_init_result.bind(t),this.eventBus=new Dt,this.isOpusReady=function(){return r(this,n),t.isOpusReady}.bind(this),this._muteRequested=!1,this._terminateRequested=!1,this._registerForEvents()}var n,i;return M(e,[{key:"_registerForEvents",value:function(){var e=this;this.eventBus.subscribe("HL_CONFIG_ERROR",function(t){r(this,e),this.hasHLConfigError=!0}.bind(this))}},{key:"runAdFlow",value:(i=t(d.mark((function e(t){var n,i,o,a,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,R,I,C,O,T,P,M,L,B,j,U,F,N,$,G,H,z,Z,K,q,V,W,Y,Q,J,X,ee,te,re,ne,ie,oe=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,oM();case 3:!(f=e.sent)||f.isLoader(),this.adRequest=t,p=bM(t),t.params.adTypeFound=p,Js("gd-adflow, adTypeFound",p,t.params.position),(h=this._getAdFlow(p)).find(function(e){return r(this,oe),"opus"===e}.bind(this))&&!this.isOpusReady()&&(h=h.filter(function(e){return r(this,oe),"opus"!==e}.bind(this)),this._msgrt.send("opus.sdk",{message:"Not ready"})),m=this._gameData,v=m.afg_disabled,g=null===(n=t.params)||void 0===n?void 0:n.isGift,A=null===(i=t.params)||void 0===i?void 0:i.isMidrollPlus,b=null===(o=t.params)||void 0===o?void 0:o.isCompensation,null===(a=t.params)||void 0===a||a.position,y=null===(s=m.promo)||void 0===s?void 0:s.rainbow,_=(null==y?void 0:y.enabled)&&(null===(u=y.position)||void 0===u?void 0:u[p]),w=null==y?void 0:y.gift,x=_&&null!=y&&y.duration?null==y?void 0:y.duration:5,k=v?h.filter(function(e){return r(this,oe),"adsense"!==e}.bind(this)):h,E=this.get_ad_system_init_result(),S=E.afg,D=E.ima,R=null==m||null===(c=m.ad_blcks)||void 0===c||null===(l=c.removeOtherAdaptors)||void 0===l?void 0:l.enabled,this.anyAdBlocking=!S||!D,this.bothAdBlocking=!S&&!D,this.adsBlocked=R&&this.anyAdBlocking||this.bothAdBlocking,this.adsBlocked?(Xs("gd-adflow adsBlocked so changing the flow"),k=[]):(S||(k=k.filter(function(e){return r(this,oe),"adsense"!==e}.bind(this))),D||(k=k.filter(function(e){return r(this,oe),"ima"!==e}.bind(this)))),I=!1,C=!1,O=[],T=0,P=!1,L={},B=qM(k),e.prev=40,B.s();case 42:if((j=B.n()).done){e.next=88;break}if(U=j.value,!this._terminateRequested){e.next=46;break}return e.abrupt("break",88);case 46:if(t.params.adapter=U,F=T===k.length-1,N=g&&w||!g,$=F&&_&&N,t.params=KM(KM({},t.params),{},{adapterIndex:T,isLastAdapter:F,shouldFail:!1,extraPromoRunOnFail:$,muteRequested:this._muteRequested}),!this._muteRequested||"adsense"!==U){e.next=53;break}return e.abrupt("continue",86);case 53:return function(){r(this,oe),tu.firstSuccessOrder&&!isNaN(tu.firstSuccessOrder)&&(t.params.shouldFail=T<tu.firstSuccessOrder)}.bind(this),Xs("gd-adflow, before adInvoke",T,U,t.params.shouldFail),e.next=57,this.adInvoke(t);case 57:if(G=e.sent,H=G.success,z=G.args,Z=G.isSkipped,K=G.noVast,q=G.t4r,V=null==z?void 0:z.reason,W=null==z?void 0:z.message,Y=null==z?void 0:z.errorType,L[U]=L[U]||{req:0,imp:0,fail:0},L[U].req++,H?L[U].imp++:(L[U].fail++,L[U].failReason=V,L[U].failMessage=W,L[U].failType=Y),!H){e.next=77;break}return Xs("gd-adflow, adapter-result-success",T,U,z),I=!0,C=!(null==z||!z.isPromoSuccess),M=q,e.abrupt("break",88);case 77:if(Xs("gd-adflow, adapter-result-failure",T,U,z.message),T++,O.push(z.message),!Z){e.next=82;break}return e.abrupt("break",88);case 82:if(!K){e.next=85;break}return this._runAutoResume(),e.abrupt("break",88);case 85:P=$;case 86:e.next=42;break;case 88:e.next=93;break;case 90:e.prev=90,e.t0=e.catch(40),B.e(e.t0);case 93:return e.prev=93,B.f(),e.finish(93);case 96:if(!P){e.next=102;break}return e.next=99,new dP(this).run({duration:x});case 99:e.sent.success&&(C=!0);case 102:return function(){var e;r(this,oe),tu.disableGift&&null!==(e=m.gft)&&void 0!==e&&e[p].enabled&&(m.gft[p].enabled=!1)}.bind(this),Q=O.join(" /n"),I?(EM.imps++,EM.lastImpressionDate=new Date,this._setAdRequestTimer(),this._onResumeGame("Advertisement(s) are done. Start / resume the game.","success"),this._giveGift(p),"midroll"===p&&this._executeMidrollPlus()):(this._onResumeGame(Q,"warning"),this._giveGift(p),"midroll"===p&&this._executeMidrollPlus()),HM({gameData:m,executeCompensation:this.executeCompensation}),J="-1",X="none",I?(J="index_".concat(T),X=k[T]):C&&(J="promo",X="promo"),ee=this.get_session_id(),this.anyAdBlocking&&"-1"===J?(te="rewarded"===p?"rewarded":this.blockedAdsMap.preroll?"midroll":"preroll",this.blockedAdsMap[te]=this.blockedAdsMap[te]?this.blockedAdsMap[te]+1:1,Js("gd-adflow, blocked-ad",JSON.stringify(this.blockedAdsMap)),this._msgrt.send("adflow.blocked.pos",{message:"".concat(te)}),this.send_atom_event("gd.adflow",{adBlocker:!0,afgBlocked:!S,imaBlocked:!D,isGift:g,isMidrollPlus:A,adType:te,sessionId:ee,successAdapter:"none",adFlowIndex:J,adapterResults:L})):(ru(re={},"adflow.all.index",{message:"".concat(J)}),ru(re,"adflow.all.success_adapter",{message:"".concat(X)}),ru(re,"adflow.".concat(p,".index"),{message:"".concat(J)}),ru(re,"adflow.".concat(p,".success_adapter"),{message:"".concat(X)}),ne=re,Object.keys(ne).forEach(function(e){r(this,oe);var t=ne[e];this._msgrt.send(e,t)}.bind(this)),this.send_atom_event("gd.adflow",{adFlowIndex:J,successAdapter:X,adBlocker:!1,afgBlocked:!S,imaBlocked:!D,isGift:g,isMidrollPlus:A,isCompensation:b,adType:p,sessionId:ee,t4r:M,adapterResults:L})),gM("ad-session",{adSession:{adType:p,imp:"-1"!==J&&"promo"!==J,promo:"promo"===J,blocked:this.anyAdBlocking&&"-1"===J,hasHLConfigError:this.hasHLConfigError,isGift:g,isMidrollPlus:A,isCompensation:b}}),ie={adType:p},this.eventBus.broadcast("AD_FLOW_COMPLETE",ie),e.abrupt("return",KM(KM({},ie),{},{args:{success:I,isGift:g,isMidrollPlus:A}}));case 120:case"end":return e.stop()}}),e,this,[[40,90,93,96]])}))),function(e){return i.apply(this,arguments)})},{key:"adInvoke",value:(n=t(d.mark((function e(n){var i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,o){var a,s,u,c,l=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="main.showad.".concat(n.params.adapter,".").concat(n.params.adapterIndex),Js("adInvoke.start",{scopeName:a,adRequest:JSON.stringify(n)}),s={},u=function(e){r(this,l),Js("adInvoke.failure",{args:e,adRequest:JSON.stringify(n)}),i._eventBus.unsubscribeScope(a);var o="dismissed"===(null==e?void 0:e.message);t({success:!1,args:e,isSkipped:o,noVast:e.noVast})}.bind(this),c=function(e){r(this,l),Js("adInvoke.success",{args:e,adRequest:JSON.stringify(n)}),i._eventBus.unsubscribeScope(a),t({success:!0,args:e,t4r:s})}.bind(this),i._eventBus.subscribe("AD_ERROR",u,a),i._eventBus.subscribe("AD_SDK_CANCELED",u,a),i._eventBus.subscribe("AD_SUCCESS",c,a),i._eventBus.subscribe("AD_T4R",function(){r(this,l),s.loaded=!0}.bind(this),a),i._eventBus.subscribe("AD_T4R_CLICK",function(){r(this,l),s.t4rClick=!0}.bind(this),a),i._eventBus.subscribe("AD_T4R_VIDEO",function(){r(this,l),s.t4rVideo=!0}.bind(this),a),i._eventBus.subscribe("AD_CLICK",function(){r(this,l),s.click=!0}.bind(this),a),i._eventBus.subscribe("AD_BIDDER",function(e){r(this,l),s.bidder=null==e?void 0:e.bidder}.bind(this),a),i._eventBus.subscribe("AD_T4R_NONE",function(e){r(this,l),s.fail_reason=null==e?void 0:e.reason}.bind(this),a),e.prev=14,e.next=17,i._adInstance.startAd(n);case 17:e.next=23;break;case 19:e.prev=19,e.t0=e.catch(14),eu("gd-adflow startAd error",e.t0),t({success:!1,err:e.t0});case 23:case"end":return e.stop()}}),e,this,[[14,19]])})));return function(t,r){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"_getAdFlow",value:function(e){var t,n,i,o,a,s,u,c,d=this,l=void function(){if(r(this,d),tu.customAdFlow)return JSON.parse(tu.customAdFlow)}.bind(this),f=this._gameData.adflw;l&&(f=l);var p=null!==(t=f)&&void 0!==t&&null!==(n=t.adapters)&&void 0!==n&&n.default?null===(i=f)||void 0===i||null===(o=i.adapters)||void 0===o?void 0:o.default:["ima","adsense"];return p=null!==(a=f)&&void 0!==a&&null!==(s=a.adapters)&&void 0!==s&&s[e]?null===(u=f)||void 0===u||null===(c=u.adapters)||void 0===c?void 0:c[e]:p}},{key:"mute",value:function(){var e=this;this._muteRequested=!0,this._adInstance.mute().catch(function(t){r(this,e)}.bind(this))}},{key:"terminate",value:function(){var e=this;this._terminateRequested=!0,this._adInstance.terminate().catch(function(t){r(this,e)}.bind(this)),this._setAdRequestTimer()}}]),e}(),QM=new pD.exports.EventEmitter,JM=["https://games.softgames.com","https://sg.gamedistribution.com","https://minigame-stg.aeriagames.jp","https://minigame.aeriagames.jp","https://html5.gamedistribution.com","http://localhost:3005","https://yjgames.gamedistribution.com","https://portal-staging-sgweb.gamedistribution.com/"];window.addEventListener("message",(function(e){var t=this,n=e.data,i=e.origin,o=e.source;if(JM.some(function(e){return r(this,t),e===i}.bind(this))&&(null==n||!n.__tcfapiCall)){var a=n.system;n.action;var s="aeriaExternalHostsConnector"===a;if("Softgames"===a)WM=o,(window.parent||window).postMessage(n,"*"),QM.emit("aeria-event",n);else if(s){WM&&WM.postMessage(n,"*");var u=window.parent||window;u&&u.postMessage(n,"*")}}}),!1);var XM="https://html5.gamedistribution.com",eL="parent-data-request",tL="parent-data-response",rL=function(){function e(){O(this,e)}var n;return M(e,[{key:"init",value:function(e){var t=this;this._registerForDataRequests(e),this._askForParentFrameData().then(function(n){if(r(this,t),n){var i=n.adRequestTimer;e.adRequestTimer=i,Js("gd-frame-data-bridge, adRequestTimer on init ",e.adRequestTimer)}}.bind(this))}},{key:"_registerForDataRequests",value:function(e){var t=this;window.addEventListener("message",function(n){r(this,t);var i=n.data,o=n.origin,a=n.source,s=i.type;if(i.value,o===XM&&s===eL){var u={adRequestTimer:e.adRequestTimer};a.postMessage({type:tL,value:u})}}.bind(this))}},{key:"_askForParentFrameData",value:(n=t(d.mark((function e(){var t=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,n){var i=this;r(this,t);var o=!1;window.addEventListener("message",(function(t){var r=t.data,n=t.origin;t.source;var i=r.type,a=r.value;n===XM&&i===tL&&(e(a),o=!0)})),setTimeout(function(){r(this,i),o||e()}.bind(this),1e3);var a={type:eL};window.parent.postMessage(a,"*")}.bind(this)));case 1:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}]),e}(),nL=new rL,iL={SDKExistsOnUpperFrame:!1};function oL(){return aL.apply(this,arguments)}function aL(){return aL=t(d.mark((function e(){var t,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=["https://pm.azerioncircle.com/p/gd-blck-rmv/"],e.next=4,ft(t[0],"blckrmv",{alternates:t});case 4:return r=window.GD_BLCK_RMV||{},console.log("new blocker",r),e.abrupt("return",r.AdBlockerPage);case 9:e.prev=9,e.t0=e.catch(0),console.log("new blcoker error => ",e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[0,9]])}))),aL.apply(this,arguments)}var sL=async()=>{const e={},t={};function r(){let t,r=window,n=null,i=null;for(;!t;){try{if("function"==typeof r.__tcfapi||"function"==typeof r.__cmp){"function"==typeof r.__tcfapi?(i=2,n=r.__tcfapi):(i=1,n=r.__cmp),t=r;break}}catch(e){}try{if(r.frames.__tcfapiLocator){i=2,t=r;break}}catch(e){}try{if(r.frames.__cmpLocator){i=1,t=r;break}}catch(e){}if(r===window.top)break;r=r.parent}return e.version=i,e.frame=t,e.function=n,e.version}function n(n={}){return new Promise((i=>{function o(t,r){if(r){if(!1!==t.gdprApplies)return"tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus?(function(t){const r=t&&"boolean"==typeof t.gdprApplies?t.gdprApplies:n.defaultGdprScope;("boolean"!=typeof r||!0===r&&"string"!=typeof t.tcString)&&i({result:"cmpUnexpectedResponse",cmp:e,consentData:t})}(t),void i({result:"ok",consentData:t})):void 0;i({result:"ok",consentData:t})}else i({result:"cmpCallFailed"})}r(),e.frame?2===e.version?e.function?e.function("addEventListener",e.version,o):function(r,n,i){const o="__tcfapi";function a(e){const r=`${o}Return`,n="string"==typeof e.data&&e.data.indexOf(r)>=0?JSON.parse(e.data):e.data;if(n[r]&&n[r].callId){const e=n[r];void 0!==t[e.callId]&&t[e.callId](e.returnValue,e.success)}}window[o]=(e,r,i,a)=>{const s=Math.random()+"",u={[`${o}Call`]:{command:e,parameter:a,callId:s,version:r}};t[s]=i,n.postMessage(u,"*")},window.addEventListener("message",a,!1),window[o](r,e.version,i)}("addEventListener",e.frame,o):i({result:"cmpVersionNotV2",cmp:e}):i({result:"cmpNotFound"})}))}return{findCmp:r,findUsp:function(){let e,t,r=window;for(;!e;){try{if("function"==typeof r.__uspapi){t=r.__uspapi,e=r;break}}catch(e){}try{if(r.frames.__uspapiLocator){e=r;break}}catch(e){}if(r===window.top)break;r=r.parent}return{uspapiFrame:e,uspapiFunction:t}},lookupIabConsent:function(){return new Promise((e=>{try{n().then(e).catch((t=>e({result:"cmpLookupFailed"})))}catch(t){e({result:"cmpLookupFailed"})}}))},getGoogleAdType:function(e){if(!e||!e.vendor)return{type:"unknown"};const t=e.vendor.consents[755],r=e.vendor.legitimateInterests[755];if(!t)return{type:"not-allowed"};const{consents:n,legitimateInterests:i}=e.purpose;let o=Object.keys({1:!0,3:!0,4:!0}).every((e=>n[e])),a=[2,7,9,10].every((e=>n[e]||i[e]&&r));return o&&a?{type:"personalized"}:(n[1]||i[1])&&a?{type:"non-personalized"}:{type:"limited"}}}};function uL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uL(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var dL=function(){Xs("gtag: GA not initialized",arguments)};function lL(e){return fL.apply(this,arguments)}function fL(){return fL=t(d.mark((function e(t){var i,o,a,s,u,c,l,f,p,h,m,v,g=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.onError,o=t.args,s="gdSDKDataLayer",u="https://www.googletagmanager.com/gtag/js?id=".concat(a="G-PLRTBHGSEL","&l=").concat(s),c=[u],e.prev=5,e.next=8,ft(c[0],"gdsdk_google_analytics",{alternates:c,error_prefix:"Blocked:",exists:function(){return r(this,g),window[s]}.bind(this)});case 8:return window[s]=window[s]||[],dL=function(){window[s].push(arguments)},dL("js",new Date),e.next=14,sL();case 14:return l=e.sent,f=l.lookupIabConsent,p=l.getGoogleAdType,e.next=19,f();case 19:h=e.sent,m=p(h.consentData),v=cL(cL({},v=o||{}),{},{cookie_flags:"SameSite=None;Secure",cmp:h.result,gdpr:"ok"===h.result?"object"===n(h.consentData)?!0===h.consentData.gdprApplies:"N/A":h.result,google_ads:null==m?void 0:m.type}),dL("config",a,v),e.next=31;break;case 27:e.prev=27,e.t0=e.catch(5),eu("gtag: load GA error",e.t0),i&&i(e.t0);case 31:case"end":return e.stop()}}),e,this,[[5,27]])}))),fL.apply(this,arguments)}new C("https://securepubads.g.doubleclick.net/gampad/ads?env=vp&gdfp_req=1&output=xml_vast4&unviewed_position_start=1&correlator=3792570314314042&sz=640x480&url=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&iu=%2F1015413%2FTNL_NS-18101700058%2FTNL_T-17110972893&description_url=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&max_ad_duration=300000&cust_params=hb_uuid%3Dcefbef16-53a9-4f49-9d3b-13e47e1066ad%26hb_cache_id%3Dundefined%26tnl_paid%3D866%26tnl_pid%3DP-17110700559%26tnl_system%3D1%26tid%3DTNL_T-17110972893%26tnl_ad_type%3Dvideo_image%26tnl_asset_id%3Daeac8455b2024f25abfa943ec96aa749%26tnl_ad_pos%3Dpreroll%26nsid%3DTNL_NS-18101700058%26tnl_pt%3D22%26hb_cache_host%3Dprebid.adnxs.com%26hb_format%3Dvideo%26hb_size%3D0x0%26hb_pb%3D1.15%26hb_adid%3D259407b5792767%26hb_bidder%3Dimprovedigital%26hb_cache_host_improv%3Dprebid.adnxs.com%26hb_uuid_improvedigit%3Dcefbef16-53a9-4f49-9d3b-13e47e1066ad%26hb_format_improvedig%3Dvideo%26hb_size_improvedigit%3D0x0%26hb_pb_improvedigital%3D1.15%26hb_adid_improvedigit%3D259407b5792767%26hb_bidder_improvedig%3Dimprovedigital%26tnl_wog%3D0%26gdGameId%3Daeac8455b2024f25abfa943ec96aa749%26tnl_content_category%3Dpuzzle%26adaptor_order%3D0%26pbct%3D2%26tnl_test%3Da%26fp%3D0.9%26fpt%3D99%26bfa%3D1%26adsense%3D0&gdpr=1&gdpr_consent=CP6lKcgP6lKcgAcABBENApEsAP_gAEPgAAYgg1NV_H__bX9j8Xr1aft0eY1H99j7rsQxBhfJk-4FyDvW_JwXn2EyNA26pqYKmRIEuzZBIQFkHIDURUigSogVrSDMYkGMgTNIJ6BkgFMRY2dYCFxvmQlDMQIY5vp9d3d52D-9_dv83dziz8FHvzU5PmckcICdA58tDfl9bRCb-5IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHs87_XU-9_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEQaoJIACgAHgAkABcADUAHAAUwAtgBmAD4AH4AYAAygBmgDkAHcAP8Ag4BHQCRAElAKiAXMAvQBfQDPgHUAPaAfYBEwCVQExAJnAUgApoBUgCuQFswLcAt0Bf4DBIGRgZIAywBmYDRgGrgNvAboA3wBywDtgHcgPFgfaB90EqASpAlhBLMEtIJbglxBLoEuwJfQTABMECYYExQJjgTJgmYCZwE0gJqATYgm2CbkE3gTfCCgEGoA8EADAFyAMEAtIQCAAAEAA0ADgAPAAyACwAI4AUAArgBbAEWAJcAX0A1ADVAHOAPIAfIBAwCDgEcAJ2AT-AoYCigF2AM4AbwA9AB8gENgIvAR6AkUBJYCVgEywJsAm0BS4CnwFhQLEAsUBdQC7gF5AMCgYeBiADFoGQgZGAyYBlwDPwGhANGAaYA1MBroDaAG3AN0AcEA6gB2ADuoHkgeUA96B8gHyhIG4ACAAFwAUABUADgAHgAQAAwgBkAGoAPAAiABMACqAG8APQAhIBDAESAI4ASwAmgBhgDLAGyAO-AewB8QD7AP0AgEBFwEYAI0AUEAqABVwC5gGKANoAbgA4gCRAE7AKHAUeApEBbAC5AF3gLzAYMAw0BkgDJwGcwNYA1kBuoDkwHLgPHDAUAAAgAGAAcABQAEUAJwAsABhADwAPYAhACIAEcAJgAVAArwBbAFyAOYA8ACGAESAIsAS4ApABWgDOAGpANkA4ABxgDnAHkAPwAgABGACTAE6AKKAUuArwCvgF2AL8AZwA2wBvADjgHNAOoAdkA9QB-wEJAIbARUAi8BHUCRAJFASXAloCXgE2AJ2AUJApECkgFigLRAXIAugBdwC9AGBAMPAYyAx6BkYGSAMnAZyAzwBoQDTAGtANdAboA6gB3AD3hAE8AAIABgAHAAUABFACcALAAYQA8AD2AIQAiABHACYAFcALcAcwB3AEMAIkARYAlwBSACtAGcANSAbIBwADjAHOAPIAfIA_ACAAEYAJNAToBOwCigFLgK8Ar4BdgC_AGcANQAbYA3gBxwDmgHZAPUAfIA_YCEgENgIvAR3AkQCRQElwJaAl4BNgCdgFCAKSgWIBYoC0QFyALoAXcAvQBgQDDwGMgMeAZIAycBnIDQgGmANaAa6A3QB1ADuAHvCgEYAIoAVABYAEIAJgAXAA8ACOAFIANQAcABHACiwFeAV8AuwBnADeAHNAOyAfsBHoCRQEvAJsAWKAtEBbAC7gF6AMPAZyAzwBoQDWoGuga8A94YAgABFACoALAAhABMAEcAKQAagA4ACOAFFgK8Ar4BdgDOAG8AOaAdkA_YCPQEvAJsAWiAtgBdwC9AGHgM5AZ4A0IBrQDXQHvAPiHAXoADAARAA4ADwALgAZABYADmAHwAfgBHACaAFAAKYAVwAtgBfADQAIQARYAjgBLgCkAFkAL4AYUAzQDOAGoAOcAdwA8gB8wEAAQOAg4CEAERAI4ATgAncBPgE_AKKAUsAqABWQC7AF6AM4AbwA44B0gD0AHyAQ2AiIBFQCPQEigJLASsAmIBMsCbAJtAUgApMBS4CqgFiALUAWzAugC6gF3AL6AYFAxADEwGLAMhAZNAy4DLwGfgNCAaNA0wDTQGpwNdA2ABtADbgHHgOWAc-A7AB3EDyQPKAekA94B8QD5QH2gPxHQRQAFwAUABUADgAIAAXQAwADUAHgARAAmABVgC4ALoAYgAzABvAD1AIYAiQBLACaAFGAMMAZQA0QBsgDvAHtAPsA_QB_wEWARgAoIBVwCxAFzALyAYoA2gBuADiAHUAReAkQBMgCdgFDgKPAU0AsUBbAC4AFyALtAXeAvMBgwDDQGPAMkAZOAyoBlgDOQGiANVAawA3UBxYDkwHLgPHAfWQAXAAIAAyACwAJoAXwA0ACkAFlALkAvgBnADUAHOARwAnABPoChgKKAUsArIBYgC0gF2AN4Ac0A7IB6AEewJsAm0BSYCxAFtALuAXkAwIBiUDPAM_AaEA1MBroDYAG3AOfAdGA7CB5IHlAPeAfEQgPAALAAoAC4AGIATAAqgBcADEAG8APQAjgB3gD_AJSAUEAq4BcwDFAG0AOoApoBYoC0QFwALkAZOAzkBogDVQHjkgF4ABgAHAAXAAyACwAHIARwAmgBUAC-AGQANoAeABCACkAFkAM6AagBqgDuAIAARyApoCoAFZALSAXYA3gB8gEVAI6AR6AkUBKwCWoE2ATaApMBVICxAF3AMWAZZAzwDPwGhANdAbAA7AB5QD3iUB0ABAACwAKAAcgBgAGIAPAAiABMACqAFwAMUAhgCJAEcAKMAbIA7wB-AFXAMUAdQBF4CRAFHgLFAWwAvMBk4DOQGsFIFwAC4AKAAqABwAEEAMAA1AB4AEQAJgAUgAqgBiADNAIYAiQBRgDKAGiANkAd8A_AD9AIsARgAoIBVwC5gF5AMUAbQA3ACLwEiAJ2AUOAsUBbAC4AFyALtAXmAw0BkgDJwGcwNYA1kBuoDkwHjlAIgAFwAMgAsAByAEcAJoAVAAvgBkADaAHgAQgAiwBHACZAFIALIAXwAwgBnQDUANUAc4A7oB8gH2AQAAjgBIgCdgFDAKXAVkBWwCxQF1AXYA14BvADtgHoAP-AjoBHoCRQElgJigTYBNoCkAFPgLEAXQAu4BeQC-gGBAMWAZMAy6BngGfgNCAaJA1IDU4GugbAA4IB0wDsAHcAPKAe8A-IB8oA.f_wACHwAAAAA&plcmt=1&vpmute=1&vpa=auto&sdkv=h.3.633.0&osd=2&frm=2&vis=1&sdr=1&hl=en&afvsz=200x200%2C250x250%2C300x250%2C336x280%2C450x50%2C468x60%2C480x70&is_amp=1&uach=WyJtYWNPUyIsIjE0LjQuMSIsImFybSIsIiIsIjEyMy4wLjYzMTIuMTIyIixudWxsLDAsbnVsbCwiNjQiLFtbIkdvb2dsZSBDaHJvbWUiLCIxMjMuMC42MzEyLjEyMiJdLFsiTm90OkEtQnJhbmQiLCI4LjAuMC4wIl0sWyJDaHJvbWl1bSIsIjEyMy4wLjYzMTIuMTIyIl1dLDBd&u_so=p&ctv=0&sdki=445&ptt=20&adk=2541783110&sdk_apis=2%2C7%2C8&omid_p=Google1%2Fh.3.633.0&sid=E657451B-8F2F-4921-A55A-21D1A6F3C39E&nel=1&eid=44777649%2C44781409%2C44785452%2C95321947%2C95322027%2C95323893%2C95324128%2C95324210%2C95326337&ref=https%3A%2F%2Fwww.gry.pl%2F&top=https%3A%2F%2Fwww.gry.pl%2F&loc=https%3A%2F%2Fhtml5.gamedistribution.com%2Faeac8455b2024f25abfa943ec96aa749%2F%3Ftimestamp%3D1713336375%26countryCode%3Dpl%26siteid%3D88%26channelid%3D1%26siteLocale%3Dpl%26locale%3Dpl%26gd_sdk_referrer_url%3Dhttps%253A%252F%252Fwww.gry.pl%252Fgra%252Fkings-and-queens-match&dlt=1713336379046&idt=2621&dt=1713336390920&scor=3473667703821297&ged=ve4_td12_tt10_pd12_la2000_er0.0.156.300_vi0.0.600.510_vp100_eb24427",!0),new C("https://securepubads.g.doubleclick.net/gampad/ads?env=vp&gdfp_req=1&output=xml_vast4&unviewed_position_start=1&correlator=2275053868608838&sz=640x480&url=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&iu=%2F1015413%2FTNL_NS-18101700058%2FTNL_T-17110972893&description_url=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&max_ad_duration=300000&vpa=auto&vpmute=0&plcmt=1&cust_params=tnl_paid%3D866%26tnl_pid%3DP-17110700559%26tnl_system%3D1%26tid%3DTNL_T-17110972893%26tnl_ad_type%3Dvideo_image%26tnl_asset_id%3Daeac8455b2024f25abfa943ec96aa749%26tnl_ad_pos%3Dpreroll%26nsid%3DTNL_NS-18101700058%26tnl_pt%3D22%26gd_opus%3D1%26fp%3D0.9%26gd_np%3D1%26bfa%3D1%26fpt%3D99%26tnl_wog%3D0&sdkv=h.3.633.0&osd=2&frm=0&vis=1&sdr=1&hl=en&afvsz=200x200%2C250x250%2C300x250%2C336x280%2C450x50%2C468x60%2C480x70&is_amp=0&uach=WyJtYWNPUyIsIjE0LjQuMSIsImFybSIsIiIsIjEyMy4wLjYzMTIuMTIyIixudWxsLDAsbnVsbCwiNjQiLFtbIkdvb2dsZSBDaHJvbWUiLCIxMjMuMC42MzEyLjEyMiJdLFsiTm90OkEtQnJhbmQiLCI4LjAuMC4wIl0sWyJDaHJvbWl1bSIsIjEyMy4wLjYzMTIuMTIyIl1dLDBd&u_so=p&ctv=0&gdpr=1&gdpr_consent=CP6lKcgP6lKcgAcABBENApEsAP_gAEPgAAYgg1NV_H__bX9j8Xr1aft0eY1H99j7rsQxBhfJk-4FyDvW_JwXn2EyNA26pqYKmRIEuzZBIQFkHIDURUigSogVrSDMYkGMgTNIJ6BkgFMRY2dYCFxvmQlDMQIY5vp9d3d52D-9_dv83dziz8FHvzU5PmckcICdA58tDfl9bRCb-5IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHs87_XU-9_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEQaoJIACgAHgAkABcADUAHAAUwAtgBmAD4AH4AYAAygBmgDkAHcAP8Ag4BHQCRAElAKiAXMAvQBfQDPgHUAPaAfYBEwCVQExAJnAUgApoBUgCuQFswLcAt0Bf4DBIGRgZIAywBmYDRgGrgNvAboA3wBywDtgHcgPFgfaB90EqASpAlhBLMEtIJbglxBLoEuwJfQTABMECYYExQJjgTJgmYCZwE0gJqATYgm2CbkE3gTfCCgEGoA8EADAFyAMEAtIQCAAAEAA0ADgAPAAyACwAI4AUAArgBbAEWAJcAX0A1ADVAHOAPIAfIBAwCDgEcAJ2AT-AoYCigF2AM4AbwA9AB8gENgIvAR6AkUBJYCVgEywJsAm0BS4CnwFhQLEAsUBdQC7gF5AMCgYeBiADFoGQgZGAyYBlwDPwGhANGAaYA1MBroDaAG3AN0AcEA6gB2ADuoHkgeUA96B8gHyhIG4ACAAFwAUABUADgAHgAQAAwgBkAGoAPAAiABMACqAG8APQAhIBDAESAI4ASwAmgBhgDLAGyAO-AewB8QD7AP0AgEBFwEYAI0AUEAqABVwC5gGKANoAbgA4gCRAE7AKHAUeApEBbAC5AF3gLzAYMAw0BkgDJwGcwNYA1kBuoDkwHLgPHDAUAAAgAGAAcABQAEUAJwAsABhADwAPYAhACIAEcAJgAVAArwBbAFyAOYA8ACGAESAIsAS4ApABWgDOAGpANkA4ABxgDnAHkAPwAgABGACTAE6AKKAUuArwCvgF2AL8AZwA2wBvADjgHNAOoAdkA9QB-wEJAIbARUAi8BHUCRAJFASXAloCXgE2AJ2AUJApECkgFigLRAXIAugBdwC9AGBAMPAYyAx6BkYGSAMnAZyAzwBoQDTAGtANdAboA6gB3AD3hAE8AAIABgAHAAUABFACcALAAYQA8AD2AIQAiABHACYAFcALcAcwB3AEMAIkARYAlwBSACtAGcANSAbIBwADjAHOAPIAfIA_ACAAEYAJNAToBOwCigFLgK8Ar4BdgC_AGcANQAbYA3gBxwDmgHZAPUAfIA_YCEgENgIvAR3AkQCRQElwJaAl4BNgCdgFCAKSgWIBYoC0QFyALoAXcAvQBgQDDwGMgMeAZIAycBnIDQgGmANaAa6A3QB1ADuAHvCgEYAIoAVABYAEIAJgAXAA8ACOAFIANQAcABHACiwFeAV8AuwBnADeAHNAOyAfsBHoCRQEvAJsAWKAtEBbAC7gF6AMPAZyAzwBoQDWoGuga8A94YAgABFACoALAAhABMAEcAKQAagA4ACOAFFgK8Ar4BdgDOAG8AOaAdkA_YCPQEvAJsAWiAtgBdwC9AGHgM5AZ4A0IBrQDXQHvAPiHAXoADAARAA4ADwALgAZABYADmAHwAfgBHACaAFAAKYAVwAtgBfADQAIQARYAjgBLgCkAFkAL4AYUAzQDOAGoAOcAdwA8gB8wEAAQOAg4CEAERAI4ATgAncBPgE_AKKAUsAqABWQC7AF6AM4AbwA44B0gD0AHyAQ2AiIBFQCPQEigJLASsAmIBMsCbAJtAUgApMBS4CqgFiALUAWzAugC6gF3AL6AYFAxADEwGLAMhAZNAy4DLwGfgNCAaNA0wDTQGpwNdA2ABtADbgHHgOWAc-A7AB3EDyQPKAekA94B8QD5QH2gPxHQRQAFwAUABUADgAIAAXQAwADUAHgARAAmABVgC4ALoAYgAzABvAD1AIYAiQBLACaAFGAMMAZQA0QBsgDvAHtAPsA_QB_wEWARgAoIBVwCxAFzALyAYoA2gBuADiAHUAReAkQBMgCdgFDgKPAU0AsUBbAC4AFyALtAXeAvMBgwDDQGPAMkAZOAyoBlgDOQGiANVAawA3UBxYDkwHLgPHAfWQAXAAIAAyACwAJoAXwA0ACkAFlALkAvgBnADUAHOARwAnABPoChgKKAUsArIBYgC0gF2AN4Ac0A7IB6AEewJsAm0BSYCxAFtALuAXkAwIBiUDPAM_AaEA1MBroDYAG3AOfAdGA7CB5IHlAPeAfEQgPAALAAoAC4AGIATAAqgBcADEAG8APQAjgB3gD_AJSAUEAq4BcwDFAG0AOoApoBYoC0QFwALkAZOAzkBogDVQHjkgF4ABgAHAAXAAyACwAHIARwAmgBUAC-AGQANoAeABCACkAFkAM6AagBqgDuAIAARyApoCoAFZALSAXYA3gB8gEVAI6AR6AkUBKwCWoE2ATaApMBVICxAF3AMWAZZAzwDPwGhANdAbAA7AB5QD3iUB0ABAACwAKAAcgBgAGIAPAAiABMACqAFwAMUAhgCJAEcAKMAbIA7wB-AFXAMUAdQBF4CRAFHgLFAWwAvMBk4DOQGsFIFwAC4AKAAqABwAEEAMAA1AB4AEQAJgAUgAqgBiADNAIYAiQBRgDKAGiANkAd8A_AD9AIsARgAoIBVwC5gF5AMUAbQA3ACLwEiAJ2AUOAsUBbAC4AFyALtAXmAw0BkgDJwGcwNYA1kBuoDkwHjlAIgAFwAMgAsAByAEcAJoAVAAvgBkADaAHgAQgAiwBHACZAFIALIAXwAwgBnQDUANUAc4A7oB8gH2AQAAjgBIgCdgFDAKXAVkBWwCxQF1AXYA14BvADtgHoAP-AjoBHoCRQElgJigTYBNoCkAFPgLEAXQAu4BeQC-gGBAMWAZMAy6BngGfgNCAaJA1IDU4GugbAA4IB0wDsAHcAPKAe8A-IB8oA.f_wACHwAAAAA&sdki=445&ptt=20&adk=1748861338&sdk_apis=2%2C7%2C8&omid_p=Google1%2Fh.3.633.0&media_url=blob%3Ahttps%253a%2F%2Fwww.gry.pl%2Ffa4fae4b-f435-43b4-9cee-af65696fe59e&sid=D3F4C4E1-4002-4BEE-A1F2-2638CD3B9197&a3p=EloKDWNyd2RjbnRybC5uZXQSQGE0MmZkMWJkNGI5MjgyOTY5NzUxNDUyYzVlNmUxNmQ1MzkzODYxY2E5Y2U2MGUzNjk3Y2ZlNTExMTQxYjFhZjgYucX8se4xSAASxgEKCHJ0YmhvdXNlEqwBWVNmZ3hFVno0OXBMOFI2c3ltSWtSdUFNdFg4d2Y0clBkdVMwTlVuLzZpUnhJZWh0cnRjVUtLSjFraHJDQWZERmp1N1pDNHJEc1lxMkduKzJFTFMxRmgzWlEzTUxaK0owbXZoTDR4UFlNc2JUbmlGNkczTWRaZjZQK3hEVVkwTU1FUlpkZzlKMjArcjlQNUtQOFBmWVhMaEkwRitGMUNhYUNwQS9aRVNNMVNnPRjBxfyx7jFIAFICCGoSGQoKdWlkYXBpLmNvbRjDz9ay7jFIAFICCGQSPgoFb3BlbngSLGV5SnBJam9pZEZoNU5XbDNSakZUT0ZjNVoxTlZRbFl5YWtRemR6MDlJbjA9GJ3I_LHuMUgA&nel=1&eid=44776494%2C44777649%2C44781409%2C95321947%2C95322027%2C95323893%2C95324128%2C95324210%2C95326337&top=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&loc=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&dt=1713336184147&cookie=ID%3Da17ef48e823e6627%3AT%3D1709727355%3ART%3D1713335981%3AS%3DALNI_MY20KDMmAY5MP3sMYIZndoHFyvxhg&gpic=UID%3D00000d6b0028013d%3AT%3D1709727355%3ART%3D1713335981%3AS%3DALNI_MZ7af9EvfEMcTpwOjK9LSfd-RfFCQ&scor=3968881391553945&ged=ve4_td21_tt0_pd21_la21000_er271.162.427.462_vi0.0.873.1064_vp100_eb24171",!0);var pL=function(e){var t=this,n=e.handler,i=e.timeout,o=e.interval,a=n||function(){return r(this,t),!0}.bind(this),s=i||1e3,u=o||10;return new Promise(function(e,i){var o=this;if(r(this,t),n())e(!0);else{var c=!1,d=setInterval(function(){r(this,o);try{a()&&(clearInterval(d),c=!0,e(!0))}catch(t){clearInterval(d),e(!1)}}.bind(this),u);setTimeout(function(){r(this,o),clearInterval(d),c||e(!1)}.bind(this),s)}}.bind(this))};function hL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hL(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vL(e){var t=e.gameData,n=e.msgrt,i=e.topDomain,o=e.parentDomain,a=e.parentURL;return{send_atom_event:function(e,s){if(function(e){var n=this,i=t.dbglg;return(null==i?void 0:i.enabled)&&i.topics&&i.topics.some(function(t){return r(this,n),t===e}.bind(this))}(e)){var u={gid:t.slug,md5:t.gameId,pid:0,pnm:t.pname,ctry:t.ctry,lcl:"en",hle:1,ads:1,args:s,href:window.location.href},c=(new cD).get();return u=mL(mL({},u),c),function(e,t){try{var r=n._layout,s=n._ua,u={tp:e,ct:0,vrs:Ws.version,url:a,rfr:document.referrer,tdmn:i||o,dpth:0,args:t,ua:{brnm:s.browser.name,brvs:s.browser.version,osnm:s.os.name,osvs:s.os.version,dvmd:s.device.model,w:r.w,h:r.h}};return fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(rt.encode(JSON.stringify(u)))))}catch(e){}}(e,u=s?mL(mL({},u),s):u)}}}}function gL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function AL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gL(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bL=rP(),yL=null,_L=null,wL=function(){function e(t){var n,i,o,a,s=this;if(O(this,e),ru(this,"_whichFrameV2",function(){var e=this;r(this,s);var t=C(window.location.href,!0),n=t.host,i=t.query,o="html5.gamedistribution.com"!==n,a=function(t){return r(this,e),"revision.gamedistribution.com"===t||"uncached-html5.gamedistribution.com"===t}.bind(this),u=a(n);null!=i&&i.gd_sdk_referrer_url&&(u=a(C(i.gd_sdk_referrer_url).host));return this._isMasterGameURL()&&!(this._isTokenGameURL()||o)||u?"loader-frame":"game-frame"}.bind(this)),yL)return yL;yL=this,this.isOpusReady=!1,this.isMidrollPlusExecuted=!1,this.blockedAdsMap={},this.blockingDetectedKey="d8d9b9b63e704668a29559970c1818be",this._defaults=this._getDefaultOptions(),this._extendDefaultOptions(this._defaults,t),this._version=t.version||"0.0.0",this._bridge=this._getBridgeContext(),this._location=new cD,this._location.print();var u=this._location.get(),c=(null==u||null===(n=u.top)||void 0===n||null===(i=n.domain)||void 0===i?void 0:i.value)||(null==u||null===(o=u.partner.domain)||void 0===o?void 0:o.value),d=null==u||null===(a=u.partner.url)||void 0===a?void 0:a.value;this._parentURL=0===this._bridge.depth?encodeURIComponent(this._bridge.parentURL):this._bridge.parentURL,this._parentURL=this._parentURL||d,this._parentDomain=this._bridge.parentDomain,this._topDomain=this._bridge.topDomain,this._topDomain=this._topDomain||c,Js("locs found:",this._topDomain,this._parentURL),this._isFullScreen=!1,this._giftCount={preroll:0,midroll:0,rewarded:0},this._mplus_count=0,function(e){XP.apply(this,arguments)}({whichFrame:this._whichFrameV2(),options:{showAd:this.showAd.bind(this),onEvent:this._onEvent.bind(this)}}),this._setConsoleBanner(),this._initializeMessageRouter(),this._checkConsole(),this._subscribeToEvents(),this.sdkReady=new Promise(this._initializeSDKWithGameData.bind(this)),this.sdkReady.then(function(e){r(this,s),this._sdk_ready=!0}.bind(this)).catch(function(e){r(this,s),this._sdk_ready=!1}.bind(this)).finally(function(){var e,t,n,i,o=this;if((r(this,s),null===(e=this._gameData)||void 0===e||null===(t=e.directTokenUse)||void 0===t?void 0:t.enabled)&&this._blockDirectTokenURLEmbedding().blocked)return;this.dumper=new vL({msgrt:this.msgrt,gameData:this._gameData,parentDomain:this._parentDomain,parentURL:this._parentURL,topDomain:this._parentURL}),this.dumper,this._initGameSessionTracking(),this._sendLoadedEvent(2),!0===(null===(n=this._gameData.lp)||void 0===n?void 0:n.load)&&this._sendLoadedEvent(1),this._sendLoaderDataEvent(),this._checkSplashAndPromoScreens(),this._initBlockingExternals(),this._initUnityHandler(),this._checkFullscreen(),null!==(i=this._gameData.evnts)&&void 0!==i&&i.enabled&&this._isLoaderGameURL()&&(aP(this._gameData),this._gameData.evnts.gameId===this.options.gameId&&setInterval(function(){r(this,o),this._send_gametag_data("heartbeat")}.bind(this),1e3*this._gameData.evnts.heartbeatDuration)),nL.init(this),this._send_gametag_data("sdk_init"),this.fixScore()}.bind(this)),this._registerSGBridge(),Js("which-frame",this._whichFrame()),this._loadLocus()}var n,i,o,a,s,u,c,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S;return M(e,[{key:"_getVisitorId",value:(S=t(d.mark((function e(){var t,n,i,o,a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pL({handler:function(){return r(this,s),!!_L}.bind(this),timeout:1e3,interval:10});case 2:return o=e.sent,a=o?null===(t=_L)||void 0===t||null===(n=t.visitor)||void 0===n||null===(i=n.visitorData)||void 0===i?void 0:i.visitorId:"noVisitorId",e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)}))),function(){return S.apply(this,arguments)})},{key:"_initGameSessionTracking",value:(E=t(d.mark((function e(){var t,n,i,o,a,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,R=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=this._gameData)||void 0===t||null===(n=t.gs_trc)||void 0===n?void 0:n.enabled){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this._getVisitorId();case 5:u=e.sent,c=this._gameData,l=c.category,f=c.dname,p=c.pname,h=c.gameId,m=c.slug,v=c.title,g=c.ctry,A=this._topDomain||this._parentDomain,b=new cD,y=b.get(),_=this.msgrt._ua,w=document.referrer,x=this.msgrt._layout,k=Ws.version,E=(null===(i=this._gameData)||void 0===i||null===(o=i.gft)||void 0===o?void 0:o.midroll.enabled)||!1,S=(null===(a=this._gameData)||void 0===a||null===(s=a.midroll_plus)||void 0===s?void 0:s.enabled)||!1,D={args:{rfr:w,category:l,dname:f,pname:p,gameId:h,slug:m,title:v,ctry:g,domain:A,loc:y,ua:_,layout:x,version:k,visitorId:u,hasGft:E,hasMp:S},onError:function(e){r(this,R),this._sendSDKError(e)}.bind(this)},hM(D);case 20:case"end":return e.stop()}}),e,this)}))),function(){return E.apply(this,arguments)})},{key:"_initUnityHandler",value:function(){var e=this;window.addEventListener("DOMNodeInserted",function(){if(r(this,e),this._gameData.block_exts&&this._removeExternalsInHtml({enabled:!1}),document.getElementsByClassName("webgl-content")[0]){var t=document.getElementsByClassName("webgl-content")[0].getElementsByClassName("footer")[0];t&&t.setAttribute("style","display:none")}}.bind(this))}},{key:"_send_gametag_data",value:(k=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._getGdModeIfExist()&&(r=lt()||"web",this.adInstance._send("tg.created",{gmid:this.options.gameId,dvc:r,qint:t}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return k.apply(this,arguments)})},{key:"_loadCMP",value:(x=t(d.mark((function e(){var t,r,n,i,o,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isMasterGameURL()){e.next=12;break}if(n=new cD,0!==(null==(i=n.get("depth"))?void 0:i.value)||null===(t=this._gameData)||void 0===t||null===(r=t.cmp)||void 0===r||!r.enabled){e.next=12;break}if(null===(o=this._gameData)||void 0===o||null===(a=o.cmp)||void 0===a||!a.checkDepthOnly){e.next=9;break}return e.next=7,KT();case 7:e.next=12;break;case 9:if("html5.gamedistribution.com"!==this._topDomain){e.next=12;break}return e.next=12,KT();case 12:case"end":return e.stop()}}),e,this)}))),function(){return x.apply(this,arguments)})},{key:"testConsent",value:function(){try{jT();t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,UT({});case 2:e.sent;case 3:case"end":return e.stop()}}),e)})))()}catch(e){console.log("find CMP error",e)}}},{key:"_sendLoaderDataEvent",value:function(){try{this.options.onLoaderEvent&&this.options.onLoaderEvent({name:"LOADER_DATA",message:{game:this._gameData,bridge:this._bridge},status:this._sdk_ready?"success":"error"})}catch(e){}}},{key:"_registerSGBridge",value:function(){var e=this;qT.on("splash-hidden",function(t){r(this,e),this._hideCMPButton()}.bind(this))}},{key:"_hideCMPButton",value:function(){var e=document.getElementById("ot-sdk-btn-floating");e&&(e.style.display="none")}},{key:"_sendLoadedEvent",value:function(e){if(this._isLoaded||(this._isLoaded={}),!this._isLoaded[e]){this._isLoaded[e]=!0;var t="loader-frame"===this._whichFrame()&&(this._isHostHTML5Domain()||this._isExternalHoster());C(location.href,!0);if(this._whichFrame(),this._isMasterGameURL(),this._isExtHostedGameURL(),this._isTokenGameURL(),this._isHostHTML5Domain(),this._isExternalHoster(),location.href,document.referrer,t)try{Js("which-frame, sending tunnel event",this._whichFrame()),this._sendTunnlEvent(e),this.msgrt.send("loaded",{message:this._hasBlocker?"Has Blocker":"No Blocker"})}catch(e){}}}},{key:"_sendGamedockGamePlay",value:function(){var e=this._isTokenGameURL();if(!(this._gameData.loader.enabled&&e||this._gameDockGamePlaySent))try{this._sendGamedockEvent("gameplay"),this._gameDockGamePlaySent=!0}catch(e){}}},{key:"_safeInit",value:function(){this._checkUserDeclinedTracking(),this._checkWhitelabelPartner();var e=this._gameData.diagnostic;void 0!==e&&void 0!==e.close_ga&&!1!==e.close_ga||this._loadGoogleAnalytics(),void 0!==e&&void 0!==e.close_gamedock&&!1!==e.close_gamedock||!this._bridge.isCoreSDKMode&&!this._bridge.noGamedockSDK&&this._loadGamedockTracker(),void 0!==e&&void 0!==e.close_minijuegos&&!1!==e.close_minijuegos||(console.log("noMinijuegosSDK",!this._bridge.isCoreSDKMode,!this._bridge.noMinijuegosSDK,document.location.search.indexOf("mp_game_id")>=0),!this._bridge.isCoreSDKMode&&!this._bridge.noMinijuegosSDK&&document.location.search.indexOf("mp_game_id")>=0&&this._loadMiniJuegosGratisTracker())}},{key:"_initializeSDKWithGameData",value:(w=t(d.mark((function e(t,n){var i,o,a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._getGameData();case 3:return this._gameData=e.sent,e.next=6,this._loadCMP();case 6:return this._bridge.isCoreSDKMode=(null===(i=this._gameData.disableAds)||void 0===i?void 0:i.default)||!1,this._safeInit(),this._checkGameId(),this._checkGameDeleted(),this._checkBlocking(),this._changeMidrollInDebugMode(),void 0!==this._gameData.diagnostic&&void 0!==(null===(o=this._gameData.diagnostic)||void 0===o?void 0:o.close_ads)&&!1!==(null===(a=this._gameData.diagnostic)||void 0===a?void 0:a.close_ads)||(this.videoAdReady=this._initializeVideoAd().then(function(){r(this,s),(this._isMasterGameURL()||this._isExtHostedGameURL())&&(this.msgrt.send("adblocker.flw",{message:"ok"}),this.msgrt.send("adblocker.adapters",{message:"none"})),this._checkAdBlockerRemoval()}.bind(this)).catch(function(e){r(this,s);var t="".concat(e).startsWith("Error: Blocked:");Xs("gd-adflow adsBlocked",t,e);var n=this.get_ad_system_init_result(),i=n.ima,o=n.afg;if(this.adsBlocked=!i&&!o,this._isMasterGameURL()||this._isExtHostedGameURL()){this.msgrt.send("adblocker.flw",{message:"".concat(this.adsBlocked?"blocked":"ok")});var a=i||o?i?o?"none":"adsense":"ima":"all";this.msgrt.send("adblocker.adapters",{message:"".concat(a)})}this._sendSDKError(e),this._checkAdBlocker(),console.error(e.message||e)}.bind(this))),e.next=15,CM();case 15:t(this._gameData),e.next=23;break;case 18:e.prev=18,e.t0=e.catch(0),this._sendSDKError(e.t0),this.onResumeGame(e.t0.message,"warning"),n(e.t0);case 23:case"end":return e.stop()}}),e,this,[[0,18]])}))),function(e,t){return w.apply(this,arguments)})},{key:"_getDefaultOptions",value:function(){return{debug:!1,testing:!1,gameId:"4f3d7d38d24b740c95da2b03dc3a2333",prefix:"gdsdk__",onEvent:function(e){},onLoaderEvent:function(e){},flashSettings:{adContainerId:"",splashContainerId:""},advertisementSettings:{},resumeGame:function(){},pauseGame:function(){},onInit:function(e){},onError:function(e){},loader:{}}}},{key:"_checkAdBlockerRemoval",value:function(){gt.getBoolean(this.blockingDetectedKey)&&(gt.set(this.blockingDetectedKey,!1),this.send_atom_event("ad-blocker-removed"))}},{key:"_checkAdBlocker",value:(_=t(d.mark((function e(){var t,r,n,i,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t=this.get_ad_system_init_result(),r=t.ima,n=t.afg,r&&n){e.next=12;break}if(gt.set(this.blockingDetectedKey,!0),null===(i=this._gameData.rmblck)||void 0===i||!i.enabled){e.next=12;break}if(this.adBlockerPage){e.next=12;break}return e.next=9,oL();case 9:o=e.sent,this.adBlockerPage=new o(this._gameData),this.adBlockerPage.add();case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),console.log(e.t0.message);case 17:case"end":return e.stop()}}),e,this,[[0,14]])}))),function(){return _.apply(this,arguments)})},{key:"_extendDefaultOptions",value:function(e,t){var r=B(e);this.options=t?it(r,t):r,this.options.gameId=this.options.gameId.trim()}},{key:"_setConsoleBanner",value:function(){if(!this._bridge.noConsoleBanner){var e=Ws.version,t=console.log("%c %c %c GameDistribution.com HTML5 SDK | Version: "+e+" %c %c %c","background: #9854d8","background: #6c2ca7","color: #fff; background: #450f78;","background: #6c2ca7","background: #9854d8","background: #ffffff");console.log.apply(console,t)}}},{key:"_shouldSendTunnlEvent",value:function(e){return this.tunnlEventCounts||(this.tunnlEventCounts={}),this.tunnlEventCounts[e]||(this.tunnlEventCounts[e]=0),this.tunnlEventCounts[e]++,1===this.tunnlEventCounts[e]}},{key:"_sendTunnlEvent",value:function(e){var t=this;if(this._shouldSendTunnlEvent(e)){void 0!==this._topDomain&&"undefined"!==this._topDomain||(this._topDomain=void 0);var n={page_url:this._topDomain||this._parentDomain,game_id:this.options.gameId,eventtype:e,ts:Date.now()};fetch("https://hlana.gamedistribution.com/event?".concat(l.stringify(n))).catch(function(i){r(this,t),this._sendHLAnalyicsLog({query:AL(AL({},n),{},{error:null==i?void 0:i.message}),eventType:-e})}.bind(this)),this._sendHLAnalyicsLog({query:n,eventType:e}),this.adInstance._send_atom_event("hl.config",n),this._send_gametag_data("sdk_gameplay")}}},{key:"_sendHLAnalyicsLog",value:function(e){var t,r=e.query,n=e.eventType;if(1===n?t="hl.gameplay":2===n?t="hl.gameload":3===n?t="hl.adblock":-1===n?t="hl.gameplay.error":-2===n?t="hl.gameload.error":-3===n&&(t="hl.adblock.error"),t)try{this.dumper.send_atom_event(t,r)}catch(e){console.log("Error on sending dump!",e)}}},{key:"_sendAdRequestContext",value:function(e){this.msgrt.send("adctx",{message:e.adTag.bidder})}},{key:"_checkWhitelabelPartner",value:function(){this._whitelabelPartner=!1;var e=ut();e.hasOwnProperty("xanthophyll")&&"true"===e.xanthophyll&&(this._whitelabelPartner=!0,yt("White label publisher","".concat(this._whitelabelPartner),"success"))}},{key:"_checkConsole",value:function(){try{if(!gt.available)return;"developer.gamedistribution.com"===this._parentDomain||"developer.gamedistribution.com"===this._topDomain||"developer-acc.gamedistribution.com"===this._parentDomain||"developer-acc.gamedistribution.com"===this._topDomain?(gt.set("gd_debug_ex",!0),gt.set("gd_disable_midroll_timer",!0),gt.set("gd_tag",!0)):"localhost:3000"===this._parentDomain&&(gt.set("gd_debug_ex",!0),gt.set("gd_disable_midroll_timer",!0)),gt.getBoolean("gd_debug_ex")&&(this.openConsole(),this.msgrt.send("dev.console",{message:this._parentDomain}))}catch(e){}}},{key:"_checkUserDeclinedTracking",value:function(){this._userDeclinedTracking=this._bridge.isCoreSDKMode||document.location.search.indexOf("gdpr-tracking=0")>=0||document.cookie.indexOf("ogdpr_tracking=0")>=0}},{key:"_initializeMessageRouter",value:function(){this.msgrt=new It({gameId:this.options.gameId,hours:(new Date).getHours(),topDomain:this._topDomain,domain:this._parentDomain,referrer:this._parentURL,depth:pt(),version:Ws.version,tracking:this._userDeclinedTracking,whitelabel:this._whitelabelPartner,platform:lt(),byloader:this._bridge.isTokenGameURL,isTokenGameURL:this._bridge.isTokenGameURL,isMasterGameURL:this._bridge.isMasterGameURL,isExtHostedGameURL:this._bridge.isExtHostedGameURL,byloaderVersion:this._bridge.version})}},{key:"_loadGamedockTracker",value:function(){var e=this;try{var t=[this._gameData.gmky.url];ft(t[0],"GamedockSDK",{alternates:t}).then(function(){var t,n;r(this,e),_L=this._initGamedockTracker(window.GamedockSDK),this._sendGamedockEvent("pageview"),null!==(t=this._gameData.diagnostic)&&void 0!==t&&null!==(n=t.gameDock)&&void 0!==n&&n.adViewEvent&&_L.tracking.enableHeartBeatForPage({pageId:this.options.gameId,pageType:"game"},this._gameData.diagnostic.gameDock.heartbeatConfig),NT.track(_L,this._gameData)}.bind(this)).catch(function(t){r(this,e),this._sendSDKError(t)}.bind(this))}catch(e){}}},{key:"_initGamedockTracker",value:function(e){if(!this._bridge.isCoreSDKMode)return e.initialize("gd",this._parentDomain)}},{key:"_sendGamedockEvent",value:function(e){var t,r;null===(t=_L)||void 0===t||null===(r=t.tracking)||void 0===r||r.trackEvent(e,{pageId:this.options.gameId,pageType:"game"})}},{key:"_loadMiniJuegosGratisTracker",value:function(){var e=this;window.mpConfig={game:this.options.gameId,partner:"game-distribution"};var t=["https://ext.minijuegosgratis.com/external-host/main.js"];console.log("noMinijuegosSDK loading"),ft(t[0],"MinijuegosSDK",{alternates:t}).catch(function(t){r(this,e),this._sendSDKError(t)}.bind(this))}},{key:"_loadLocus",value:function(){var e=t(d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qD();case 2:if(e.sent){e.next=6;break}return console.log("locus-disabled"),e.abrupt("return");case 6:t=["https://pm.azerioncircle.com/p/locus/"],window.gdlocus=window.gdlocus||{cmd:[]},window.gdlocus.cmd.push(function(){r(this,n),this.isOpusReady=!0,window.gdlocus.iservice.register({method:"muteAdFlow",handler:this._muteFlowSound.bind(this)}),window.gdlocus.iservice.register({method:"terminateAdFlow",handler:this._terminateFlow.bind(this)})}.bind(this)),ft(t[0],"locus",{alternates:t}).catch(function(e){r(this,n),this._sendSDKError(e)}.bind(this)).then(function(){r(this,n)}.bind(this));case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_muteFlowSound",value:(y=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._adFlow){e.next=2;break}return e.abrupt("return");case 2:this._adFlow.mute();case 3:case"end":return e.stop()}}),e,this)}))),function(){return y.apply(this,arguments)})},{key:"_terminateFlow",value:(b=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._adFlow){e.next=2;break}return e.abrupt("return");case 2:this._adFlow.terminate();case 3:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"_loadGoogleAnalytics",value:function(){var e=this;if(!this._bridge.isCoreSDKMode){var t=this._gameData,n=t.gameId,i=t.slug,o=t.title,a=new cD,s={provider:"gd-sdk",page_depth:a.get("depth.value"),partner_domain_from:a.get("partner.domain.from"),top_domain_from:a.get("top.domain.from"),top_domain:this._topDomain,parent_domain:this._parentDomain,parent_url:this._parentURL,game_id:n,game_slug:i,game_title:o};lL({onError:function(t){r(this,e),this._sendSDKError(t)}.bind(this),args:s})}}},{key:"_getCleanUrl",value:function(e){var t=e;try{var r=new C(e,!0);t="".concat(r.protocol,"//").concat(r.hostname,"/").concat(r.pathname)}catch(e){}return t}},{key:"_subscribeToEvents",value:function(){var e=this;this.eventBus=new Dt,_t.forEach(function(t){var n=this;return r(this,e),this.eventBus.subscribe(t,function(e){return r(this,n),this._onEvent(e)}.bind(this),"sdk")}.bind(this)),wt.forEach(function(t){var n=this;return r(this,e),this.eventBus.subscribe(t,function(e){return r(this,n),this._onEvent(e)}.bind(this),"ima")}.bind(this)),this.eventBus.subscribe("COMPLETE",function(){r(this,e);var t=this._getDeveloperDomains(),n=t.developerDomain,i=t.gameApiDomain;if(n){fetch("https://".concat(i,"/game/v2/hasapi/").concat(this.options.gameId,"?timestamp=").concat((new Date).valueOf()));try{var o=JSON.stringify({type:"GD_SDK_IMPLEMENTED",gameID:this.options.gameId});window.location!==window.top.location?window.top.postMessage(o,"*"):null!==window.opener&&window.opener.location!==window.location&&window.opener.postMessage(o,"*")}catch(e){}}xT()}.bind(this),"ima"),this.eventBus.subscribe("CONTENT_PAUSE_REQUESTED",function(){return r(this,e),this.onPauseGame("New advertisements requested and loaded","success")}.bind(this),"ima"),this.eventBus.subscribe("IMPRESSION",function(t){var n,i;r(this,e),this.msgrt.send("ad.impression"),yT(),null!==(n=this._gameData.diagnostic)&&void 0!==n&&null!==(i=n.gameDock)&&void 0!==i&&i.adViewEvent&&NT.track(_L,this._gameData)}.bind(this),"ima"),this.eventBus.subscribe("AD_ERROR",function(t){r(this,e),this.msgrt.send("ad.error",{message:t.message,details:t.details})}.bind(this),"ima"),this.eventBus.subscribe("AD_SDK_REQUEST",function(t){r(this,e),this._sendAdRequestContext(t.message)}.bind(this),"sdk"),this.eventBus.subscribe("SDK_ERROR",function(t){if(r(this,e),t.message.startsWith("Blocked:")){var n=t.message.replace("Blocked:","").trim(),i=this._getCleanUrl(n),o="Blocked: ".concat(i);if(!this._bridge.noBlockerEvent&&(this.msgrt.send("error",{message:o}),!this._hasBlocker)){this._hasBlocker=!0;this.msgrt.send("adblck.src",{message:o});var a=this.get_ad_system_init_result(),s=a.ima,u=a.afg;(!s||!u)&&this._sendTunnlEvent(3)}}else this.msgrt.send("error",{message:t.message})}.bind(this),"sdk"),this.eventBus.subscribe("AD_REQUEST_KEYS_EMPTY",function(t){r(this,e),this.msgrt.send("tunnl.keys.empty",{message:t.message,details:t.details})}.bind(this),"sdk"),this.eventBus.subscribe("AD_REQUEST_KEYS_FALLBACK",function(t){r(this,e),this.msgrt.send("tunnl.keys.fallback",{message:t.message,details:t.details})}.bind(this),"sdk"),this.eventBus.subscribe("AD_T4R",function(t){return r(this,e),this.msgrt.send("adt4r")}.bind(this),"sdk")}},{key:"_checkGameId",value:function(){this.options.gameId===this._defaults.gameId&&this._sendSDKError("Please check if your GAME ID is correct. Otherwise, no revenue will be reported.")}},{key:"_getDefaultGameData",value:function(){return{gameId:this.options.gameId,disableAds:{},preroll:!0,midroll:12e4,rewardedAds:!1,title:"",tags:[],category:"",assets:[],dmain:!0,sdk:{},loader:{},splash:{},promo:{},dAds:{},pAds:{},mAds:{},rAds:{}}}},{key:"_getGameDataUrl",value:function(){var e=void 0!==this._topDomain&&"undefined"!==this._topDomain?this._topDomain:this._parentDomain,t=OD().config;return"https://".concat(t.gameAPI,"/game/v4/get/").concat(this.options.gameId.replace(/-/g,""),"/?domain=").concat(e,"&v=").concat(Ws.version,"&localTime=").concat((new Date).getHours())}},{key:"_checkBlocking",value:(A=t(d.mark((function e(){var t,r,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=!0,r=this._gameData,n=this._parentDomain.indexOf("gamedistribution.com")>=0,t=(t=void 0===this._gameData.dmain||this._gameData.dmain)||n,(r.bloc_gard&&!0===r.bloc_gard.enabled||!t)&&this._redirectToBlocking(!1,!t);case 7:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"_blockDirectTokenURLEmbedding",value:function(){var e,t,r=this._checkTokenGameUrl(),n=new cD,i="html5.gamedistribution.com"!==C(document.referrer).host,o=r&&!iL.SDKExistsOnUpperFrame&&n.get("depth.value")>0&&i;if(o&&(null===(e=this._gameData)||void 0===e||null===(t=e.directTokenUse)||void 0===t?void 0:t.enabled)){var a,s,u=null===(a=this._gameData)||void 0===a||null===(s=a.directTokenUse)||void 0===s?void 0:s.behavior;"to-loader"===u?this._redirectToLoaderFrame():"to-blocked-page"===u&&this._redirectToBlocking(!0)}return{blocked:o}}},{key:"_redirectToBlocking",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.msgrt.send("blocked");var i=this._gameData;setTimeout(t(d.mark((function t(){return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=9;break}return t.prev=1,t.next=4,r.adInstance._send_atom_event("token-blocked");case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),console.log("Could not send dump.token-blocked",t.t0);case 9:window.location.href="https://html5.api.gamedistribution.com/blocked.html?".concat(l.stringify({domain:r._parentDomain,id:i.gameId,img:r._get_game_thumbnail_url(),title:i.title,unregistered:n,utm_source:r._parentDomain,utm_medium:(null==i?void 0:i.slug)||(null==i?void 0:i.title)||(null==i?void 0:i.gameId)||"unknown",utm_campaign:"block-and-redirect"}));case 10:case"end":return t.stop()}}),t,null,[[1,6]])}))),100)}},{key:"_redirectToLoaderFrame",value:function(){var e=this,r=this._gameData;setTimeout(t(d.mark((function t(){var n,i,o,a;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.adInstance._send_atom_event("loader-redirect");case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),console.log("Could not send dump.loader-redirect",t.t0);case 8:n=C(location.href,!0),i=AL(AL({},n.query),{},{rd:"1"}),o=l.stringify(i),a="https://html5.gamedistribution.com/".concat(r.gameId,"/?").concat(o),window.location.href=a;case 13:case"end":return t.stop()}}),t,null,[[0,5]])}))),100)}},{key:"_checkGameDeleted",value:function(){var e=this;6!==this._gameData.status&&4!==this._gameData.activeStatus||(console.log("%c %c %c This game was deleted, please remove it in your website... ","background: #F2181A","background: #F23818","color: #fff; background: #F23818;","background: #F55E60","background: #F55E60","background: #c4161e; color: #fff;"),setTimeout(function(){r(this,e),document.location="https://html5.api.gamedistribution.com/deleted.html"}.bind(this),100))}},{key:"_changeMidrollInDebugMode",value:function(){var e=this._gameData;kT().disableMidrolltimer?e.midroll=0:gt.available&&gt.getBoolean("gd_debug_ex")&&(gt.getBoolean("gd_disable_midroll_timer")?e.midroll=0:e.midroll=this._getDefaultGameData().midroll)}},{key:"_checkSplashAndPromoScreens",value:function(){var e,t,r,n;!1===(null===(e=this._gameData.loader)||void 0===e?void 0:e.mobile)&&this._getisMobile()&&(this._gameData.loader.enabled=!1);var i,o=this._gameData,a=o.gdpr&&!0===o.gdpr.consent,s=o.loader,u=null===(t=o.promo)||void 0===t?void 0:t[null===(r=o.promo)||void 0===r||null===(n=r.template)||void 0===n?void 0:n.preroll];(o.preroll||(this.adRequestTimer=Date.now()),this.options.loader.enabled)?null!=u&&u.enabled?this._createPromoBeforeSplash(o,a):s.enabled&&!0!==(null===(i=s.splash)||void 0===i?void 0:i.skip)?this._createSplash(o,a):this.onResumeGame("Skipped splash.","success"):s.enabled||this._bridge.isTokenGameURL&&this._bridge.isExtHostedGameURL||(this.options.advertisementSettings.autoplay||a?null!=u&&u.enabled?this._createPromoBeforeSplash(o,a):!1!==s.enabled&&this._createSplash(o,a):null!=u&&u.enabled&&this._createPromo(o,a))}},{key:"_initializeVideoAd",value:(g=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._bridge.isCoreSDKMode){e.next=2;break}return e.abrupt("return");case 2:return(t=this._gameData).sdk.enabled&&(this.options.advertisementSettings=it(this.options.advertisementSettings,t.sdk)),this.macros=new Rt({game:t,bridge:this._bridge}),this.adInstance=new CT(this.options.flashSettings.adContainerId,this.options.advertisementSettings,{parentURL:this._parentURL,parentDomain:this._parentDomain,topDomain:this._topDomain}),this.adInstance.gameId=t.gameId,this.adInstance.category=t.category,this.adInstance.tags=t.tags,this.adInstance.noPreroll=this._bridge.noPreroll,this.adInstance.macros=this.macros,this.adInstance.gameData=t,this.adInstance.msgrt=this.msgrt,this.adInstance.PackageJSON=Ws,this.adInstance._send_atom_event("gd.location"),e.next=17,this.adInstance.start();case 17:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"_sendSDKReady",value:function(){var e="Everything is ready.";this.eventBus.broadcast("SDK_READY",{message:e,status:"success"});try{this.options.onInit(e)}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}}},{key:"_sendSDKError",value:function(e){e=e.message?e:{message:e};this.eventBus.broadcast("SDK_ERROR",{message:e.message,status:"error"});try{this.options.onError(e)}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}}},{key:"IscForwardOnEvent",value:(v=t(d.mark((function e(t){var r,n,i,o,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!1,e.prev=1,e.next=4,oM();case 4:if(!(n=e.sent)){e.next=14;break}return e.next=8,n.isLoader();case 8:if(a=e.sent,!((null===(i=this._gameData)||void 0===i||null===(o=i.isv_fw)||void 0===o?void 0:o.enabled)&&a&&n.onEvent)){e.next=14;break}return r=!0,n.onEvent({event:t}),e.abrupt("return",r);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),Js("[GD-IS] error on onEvent forward",e.t0);case 19:return e.abrupt("return",r);case 20:case"end":return e.stop()}}),e,this,[[1,16]])}))),function(e){return v.apply(this,arguments)})},{key:"_onEvent",value:(m=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.IscForwardOnEvent(t);case 2:if(!e.sent){e.next=5;break}return e.abrupt("return");case 5:if(Js("[GD-IS] onEvent executing",{event:null==t?void 0:t.name,e:t,location:window.location.href}),yt(t.name,t.message,t.status),!t.skipForward){e.next=9;break}return e.abrupt("return");case 9:Xs("[developer-event]",t.name);try{this.options.onEvent({name:t.name,message:t.message,status:t.status,skipForward:t.skipForward,adPosition:t.adPosition})}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}case 11:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"_getGameData",value:(h=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GD();case 2:return t=e.sent,this.msgrt.setGameData(t),r=t.diagnostic,bt=r,e.abrupt("return",t);case 6:case"end":return e.stop()}var r}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"_createSplash",value:(p=t(d.mark((function e(n,i){var o,a,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getSplashTemplate(n);case 2:return o=e.sent,a=new o(AL(AL({},this.options),{},{isConsentDomain:i,version:Ws.version}),n,this._parentDomain),e.next=6,WD();case 6:s=e.sent,u=s.enabled,a.on("playClick",function(){var e,o,s,l=this;if(r(this,c),((null===(e=window.gdlocus)||void 0===e?void 0:e.firstUserAction)||t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("gd-adflow locus-first-user-action is not defined");case 1:case"end":return e.stop()}}),e)}))))({game_id:n.gameId}).catch(function(e){r(this,l),console.log("gd-adflow locus-first-user-action error",e)}.bind(this)),i){var f=new Date;f.setDate(f.getDate()+90),document.cookie="ogdpr_tracking=1; expires=".concat(f.toUTCString(),"; path=/")}if(this._hideCMPButton(),gM("play"),u)window.gdsdk.showAd(nt.Interstitial,{position:"preroll"}).catch(function(e){r(this,l),a.hide()}.bind(this));else{var p={position:"preroll"};(function(){r(this,l),tu.firstAdapterModeAdsense&&(console.log("promo-test, set first adapter to adssense 1"),p.adapter="adsense")}).bind(this),this.showAd(nt.Interstitial,p).catch(function(e){r(this,l)}.bind(this))}null!==(o=this._gameData)&&void 0!==o&&null!==(s=o.evnts)&&void 0!==s&&s.enabled&&(sP({event:"FirstInteraction",game:this._gameData}),this._send_gametag_data("first_interaction"))}.bind(this)),this.onPauseGame("Pause the game and wait for a user gesture","success"),this.eventBus.subscribe("SDK_GAME_PAUSE",function(){r(this,c),a.hide()}.bind(this)),this.eventBus.subscribe("SDK_GAME_START",function(){r(this,c),a.hide()}.bind(this));case 12:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"_createPromoBeforeSplash",value:(f=t(d.mark((function e(t,n){var i,o,a,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._createPrerollPromoTemplate(t);case 3:a=e.sent,(s=new a(AL(AL({},this.options),{},{isConsentDomain:n,version:Ws.version,template:null===(i=t.promo)||void 0===i||null===(o=i.template)||void 0===o?void 0:o.preroll}),t)).on("done",function(){r(this,u),s.hide(),this._createSplash(t,n)}.bind(this)),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0),this._createSplash(t,n);case 12:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(e,t){return f.apply(this,arguments)})},{key:"_createPromo",value:(c=t(d.mark((function e(t,n){var i,o,a,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._createPrerollPromoTemplate(t);case 3:a=e.sent,(s=new a(AL(AL({},this.options),{},{isConsentDomain:n,version:Ws.version,template:null===(i=t.promo)||void 0===i||null===(o=i.template)||void 0===o?void 0:o.preroll}),t)).on("done",function(){r(this,u),s.hide(),this.onResumeGame("Resumed after the promo","warning")}.bind(this)),this.onPauseGame("Pause the game for the promo","success"),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),this.onResumeGame("Resumed after the promo","warning");case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e,t){return c.apply(this,arguments)})},{key:"showBanner",value:function(){var e=this;this.showAd(nt.Interstitial).catch(function(){r(this,e)}.bind(this))}},{key:"IscForwardShowAd",value:(u=t(d.mark((function e(t){var r,n,i,o,a,s,u,c=arguments;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=c.length>1&&void 0!==c[1]?c[1]:{},o={forwarded:n=!1,result:i},e.prev=3,null===(a=this._gameData)||void 0===a||null===(s=a.isv_fw)||void 0===s?void 0:s.enabled){e.next=7;break}return e.abrupt("return",o);case 7:return e.next=10,oM();case 10:if(u=e.sent){e.next=13;break}return e.abrupt("return",o);case 13:return e.next=16,u.isLoader();case 16:if(e.sent||!u.hasRouter()){e.next=23;break}return Xs("[GD-IS] forwarding ad call",{location:window.location.href}),n=!0,e.next=22,u.showAd({adType:t,params:r});case 22:i=e.sent;case 23:e.next=29;break;case 26:e.prev=26,e.t0=e.catch(3),Js("[GD-IS] error on showAd forward",e.t0);case 29:return e.abrupt("return",{forwarded:n,result:i});case 30:case"end":return e.stop()}}),e,this,[[3,26]])}))),function(e){return u.apply(this,arguments)})},{key:"showAd",value:(s=t(d.mark((function e(r){var n,i=this,o=arguments;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,o){var a,s,u,c,l,f,p,h;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i.IscForwardShowAd(r,n);case 3:if(s=e.sent,u=s.forwarded,c=s.result,!u){e.next=9;break}return t(c),e.abrupt("return");case 9:if(gM("play"),l={adType:r||"interstitial",params:n,adTimestamp:i.adRequestTimer},!i._autoResumeIfAdsAreDisabled(bM(l))){e.next=15;break}return e.abrupt("return",t());case 15:return e.next=18,i.sdkReady;case 18:return f=e.sent,e.next=21,i.videoAdReady;case 21:if(null!==(a=i._gameData.lp)&&void 0!==a&&a.load||i._sendLoadedEvent(1),i._sendGamedockGamePlay(),i._rejectAdIfGameBlocked({gameData:f,adRequest:l}),i._rejectAdIfAdDisabled({gameData:f,adRequest:l}),i._rejectAdIfUnsupportedType({adRequest:l}),"rewarded"===r&&i._setGameRewardedFlag(),null!=n&&n.isGift||null!=n&&n.isCompensation||i._rejectAdIfAdRateHits({gameData:f,adRequest:l}),n&&(n.isGift||n.isMidrollPlus||n.isCompensation)||!i.adBlockerPage||(i._setAdRequestTimer(),i.adBlockerPage.show()),i.adInstance.attachAfgPosition(l),!i.adFlowRunning){e.next=32;break}return e.abrupt("return",t());case 32:return i.adFlowRunning=!0,p=new YM(i),i._adFlow=p,e.next=37,p.runAdFlow(l);case 37:h=e.sent,i.adFlowRunning=!1,i._adFlow=null,t(h),i._post_message({topic:"adrequest.instream"}),e.next=51;break;case 44:e.prev=44,e.t0=e.catch(0),i.adFlowRunning=!1,i._adFlow=null,i.onAdError(e.t0.message),i.onResumeGame(e.t0.message,"warning"),o(e.t0.message);case 51:case"end":return e.stop()}}),e,null,[[0,44]])})));return function(t,r){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"_autoResumeIfAdsAreDisabled",value:function(e){var t,r=!1,n=null===(t=this._gameData.diagnostic)||void 0===t?void 0:t.close_ads,i=this._gameData.disableAds[e],o=n||i;return Js("gd-adflow autoresume result: adModuleDisabled,adDisabled",n,i,e,this._gameData.diagnostic,this._gameData.disableAds),o&&(this._runAutoResume(),r=!0),r}},{key:"_runAutoResume",value:function(){var e=this,t="CONTENT_PAUSE_REQUESTED",n="CONTENT_RESUME_REQUESTED";this.eventBus.broadcast(t,{name:t,message:"Auto pause when ads are disabled"}),setTimeout(function(){r(this,e),this.eventBus.broadcast(n,{name:n,message:"Auto resume when ads are disabled"}),this.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success")}.bind(this),3e3)}},{key:"_giveGift",value:function(e){var t,r,n,i,o,a,s,u,c,d,l,f,p,h,m;switch(e){case"preroll":null!==(t=this._gameData)&&void 0!==t&&null!==(r=t.gft)&&void 0!==r&&r[e].enabled&&(null===(n=this._gameData)||void 0===n||null===(i=n.gft)||void 0===i||null===(o=i[e].durations[this._giftCount[e]])||void 0===o?void 0:o.after)===this.adInstance.adPrerollCount&&this.decideToGiveAGift(e);break;case"midroll":null!==(a=this._gameData)&&void 0!==a&&null!==(s=a.gft)&&void 0!==s&&s[e].enabled&&(null===(u=this._gameData)||void 0===u||null===(c=u.gft)||void 0===c||null===(d=c[e].durations[this._giftCount[e]])||void 0===d?void 0:d.after)===this.adInstance.adMidrollCount&&this.decideToGiveAGift(e);break;case"rewarded":null!==(l=this._gameData)&&void 0!==l&&null!==(f=l.gft)&&void 0!==f&&f[e].enabled&&(null===(p=this._gameData)||void 0===p||null===(h=p.gft)||void 0===h||null===(m=h[e].durations[this._giftCount[e]])||void 0===m?void 0:m.after)===this.adInstance.adRewardedCount&&this.decideToGiveAGift(e)}}},{key:"_setAdRequestTimer",value:function(){this.adRequestTimer=Date.now()}},{key:"clearSession",value:function(){this.adInstance.clearSession()}},{key:"_attachAfgFallback",value:function(e){var t=e.gameData,r=e.adRequest;if(!t.afg_disabled&&!r.params.hasOwnProperty("fallback_adsense"))switch(r.params.position){case"preroll":case"start":case"next":r.params.fallback_adsense=!0}}},{key:"_rejectAdIfGameBlocked",value:function(e){var t=e.gameData;if(t.bloc_gard&&!0===t.bloc_gard.enabled)throw new Error("Game or domain is blocked.")}},{key:"_rejectAdIfAdDisabled",value:function(e){var t=e.gameData,r=bM(e.adRequest);if(t.disableAds[r]||this._whitelabelPartner)throw new Error("Advertisements are disabled.")}},{key:"_rejectAdIfUnsupportedType",value:function(e){var t=e.adRequest;if(t.adType){if(t.adType!==nt.Interstitial&&t.adType!==nt.Rewarded)throw new Error("Unsupported an advertisement type: ",t.adType)}else t.adType=nt.Interstitial}},{key:"_rejectAdIfRewardedDisabled",value:function(e){var t=e.gameData;if(e.adRequest.adType===nt.Rewarded&&!t.rewardedAds)throw new Error("Rewarded ads are disabled.")}},{key:"_rejectAdIfAdRateHits",value:function(e){var t,r,n,i,o,a,s=e.gameData,u=e.adRequest,c=null;u.adType===nt.Interstitial&&null!==(t=s.diagnostic)&&void 0!==t&&null!==(r=t.useMidrollIndex)&&void 0!==r&&r.enabled&&this.adInstance.noPreroll?this.adInstance.adMidrollCount>(null===(n=s.diagnostic)||void 0===n||null===(i=n.useMidrollIndex)||void 0===i?void 0:i.indexes.length)-1||(c=6e4*(null===(o=s.diagnostic)||void 0===o||null===(a=o.useMidrollIndex)||void 0===a?void 0:a.indexes[this.adInstance.adMidrollCount])):c=s.midroll;if(u.adType===nt.Interstitial&&void 0!==this.adRequestTimer&&Date.now()-this.adRequestTimer<c)throw new Error("The advertisement was requested too soon.")}},{key:"preloadAd",value:(a=t(d.mark((function e(r){var n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,i){var o,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.sdkReady;case 3:return o=e.sent,e.next=6,n.videoAdReady;case 6:if(!o.bloc_gard||!0!==o.bloc_gard.enabled){e.next=8;break}throw new Error("Game or domain is blocked.");case 8:if(!o.disableAds[r]&&!n._whitelabelPartner){e.next=10;break}throw new Error("Advertisements are disabled for this ad type => ".concat(r,"..."));case 10:if(r){e.next=14;break}r=nt.Rewarded,e.next=16;break;case 14:if(r===nt.Interstitial||r===nt.Rewarded){e.next=16;break}throw new Error("Unsupported an advertisement type:"+r);case 16:if(!n.adInstance){e.next=22;break}return e.next=19,n.adInstance.preloadAd(r);case 19:e.t0=e.sent,e.next=23;break;case 22:e.t0="gdsdk://preloaded";case 23:a=e.t0,t(a),e.next=30;break;case 27:e.prev=27,e.t1=e.catch(0),i(e.t1);case 30:case"end":return e.stop()}}),e,null,[[0,27]])})));return function(t,r){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"cancelAd",value:(o=t(d.mark((function e(){var r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,n){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{r.adInstance.cancel(),r.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success"),n()}catch(e){r.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success"),t(e.message)}case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(){return o.apply(this,arguments)})},{key:"showDisplayAd",value:function(e){var r=this;return new Promise(function(){var n=t(d.mark((function t(n,i){var o;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r.sdkReady;case 3:return o=t.sent,t.next=6,r.videoAdReady;case 6:if(!o.dAds.enabled){t.next=13;break}return t.next=9,r.adInstance.loadDisplayAd(e);case 9:r._post_message({topic:"adrequest.display"}),n(),t.next=14;break;case 13:i("Display-Ads are disabled.");case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(0),i(t.t0.message||t.t0);case 19:case"end":return t.stop()}}),t,null,[[0,16]])})));return function(e,t){return n.apply(this,arguments)}}())}},{key:"onResumeGame",value:function(e,t){var r;try{this._allowExternals({enabled:!1}),this.options.resumeGame()}catch(e){console.log("gd-adflow error onResumeGame",e),yt("DEVELOPER_ERROR",e.message,"warning")}var n="SDK_GAME_START";this.eventBus.broadcast(n,{name:n,message:e,status:t,analytics:{category:"SDK",action:n,label:this.options.gameId+""}}),this.adInstance&&this.adInstance._hideAddResume(),this.adInstance&&this.adInstance._hideAdSpinner(),this.adInstance&&this.adInstance._clearTimeoutForSkipAddButton(),null===(r=this._gameData.evnts)||void 0===r||!r.enabled||this._isMasterGameURL()&&!this._isExtHostedGameURL()||(sP({event:"GameStarted",game:this._gameData}),this._send_gametag_data("game_started"))}},{key:"onPauseGame",value:function(e,t){var r;this._allowExternals({enabled:!0});try{this.options.pauseGame()}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}var n="SDK_GAME_PAUSE";this.eventBus.broadcast(n,{name:n,message:e,status:t,analytics:{category:"SDK",action:n,label:this.options.gameId+""}}),null===(r=this._gameData.evnts)||void 0===r||!r.enabled||this._isMasterGameURL()&&!this._isExtHostedGameURL()||(sP({event:"GamePaused",game:this._gameData}),this._send_gametag_data("game_paused"))}},{key:"onRewardedWatchComplete",value:function(){this.eventBus.broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"})}},{key:"onAdError",value:function(e){this.eventBus.broadcast("AD_ERROR",{message:e,status:"error"})}},{key:"openConsole",value:function(){try{new Ot(this).start(),gt.set("gd_debug_ex",!0)}catch(e){console.log(e)}}},{key:"_initBlockingExternals",value:function(){var e=this._gameData;(e.failed||e.block_exts&&e.block_exts.enabled)&&(this.window_open=window.open,this._allowExternals({enabled:!1}),this._removeExternalsInHtml({enabled:!1}))}},{key:"_checkFullscreen",value:function(){var e=this;try{var t=this._gameData;t.sdk.fullscreen&&"auto"===t.sdk.fullscreen&&document.addEventListener("click",function(){if(r(this,e),!this._isFullScreen){var t=document.body,n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;if(n)n.call(t);else if(void 0!==window.ActiveXObject){var i=new ActiveXObject("WScript.Shell");null!==i&&i.SendKeys("{F11}")}this._isFullScreen=!0}}.bind(this))}catch(e){console.log("Fullscreen error handled...",e)}}},{key:"_allowExternals",value:function(e){var t=this;void 0!==this.window_open&&(!1===e.enabled?window.open=function(e){r(this,t),this.msgrt.send("external",{message:"C> ".concat(e)}),(e.startsWith("https://play.google.com")||e.startsWith("https://itunes.apple.com"))&&this.window_open.call(null,e)}.bind(this):window.open=this.window_open)}},{key:"_shouldAllowExternalUrl",value:function(e){var t,n,i=this,o=new C(e),a=o.host;return o.href,n=((null===(t=this._gameData.urlBlockExc)||void 0===t?void 0:t.hosts)||[]).some(function(e){return r(this,i),e===a}.bind(this)),n}},{key:"_removeExternalsInHtml",value:function(e){var t=this;!1===e.enabled&&window.document.querySelectorAll("a").forEach(function(e){var n=this;r(this,t);var i=!!(e.innerText.toLowerCase().includes("start")||e.innerText.toLowerCase().includes("play")||e.innerText.toLowerCase().includes("continue")),o=e.getAttribute("href");if(!this._shouldAllowExternalUrl(o)){var a=e.getAttribute("href");e.removeAttribute("href"),i||(e.onclick=function(e){return r(this,n),e.preventDefault(),this.msgrt.send("external",{message:"H> ".concat(a)}),!1}.bind(this))}}.bind(this))}},{key:"_getBridgeContext",value:function(){var e=this._isTokenGameURL(),t=this._isMasterGameURL(),r=this._isExtHostedGameURL(),n=e||r?this._getTokenGameURLConfig():{};n=n||{};var i=decodeURIComponent((e||r)&&n.parentURL?n.parentURL:at()),o=decodeURIComponent((e||r)&&n.parentDomain?n.parentDomain:ot()),a=decodeURIComponent((e||r)&&n.topDomain?n.topDomain:r&&0===pt()?o:vt()),s=(e||r)&&n.loaderEnabled,u=(e||r)&&n.loaderEnabled,c=(e||r)&&n.loaderEnabled,d=(e||r)&&n.loaderEnabled,l=(e||r)&&n.loaderEnabled,f=(e||r)&&n.loaderEnabled,p=(e||r)&&n.loaderEnabled,h=(e||r)&&n.loaderEnabled,m=(e||r)&&n.loaderEnabled&&n.hasImpression&&n.version>="1.1.24";return{isTokenGameURL:e,isMasterGameURL:t,isExtHostedGameURL:r,noConsoleBanner:s,noLoadedEvent:u,noBlockerEvent:c,noPreroll:h,parentURL:i,parentDomain:o,topDomain:a&&a.length?a:o,noGAPageView:d,noLotamePageView:l,noGamedockSDK:f,noMinijuegosSDK:p,version:n.version,pauseGameOnStartup:m,depth:pt(),domainMatched:o===a,exports:{formatTokenURLSearch:this._formatTokenURLSearch.bind(this),extendUrlQuery:this._extendUrlQuery.bind(this),base64Encode:this._base64_encode.bind(this)}}}},{key:"_isHostHTML5Domain",value:function(){var e=new C(location.href);return"html5.gamedistribution.com"===(null==e?void 0:e.host.toLowerCase())}},{key:"_isExternalHoster",value:function(){var e,t;return null===(e=this._gameData)||void 0===e||null===(t=e.extHosting)||void 0===t?void 0:t.enabled}},{key:"_whichFrame",value:function(){return(this._isMasterGameURL()||this._isExtHostedGameURL())&&!this._isTokenGameURL()?"loader-frame":"game-frame"}},{key:"_isMasterGameURL",value:function(){var e=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i;return e.test(location.href)||!this._isTokenGameURL()&&e.test(document.referrer)}},{key:"_checkTokenGameUrl",value:function(){var e=C(location.href),t=e.origin,r=e.pathname,n="".concat(t).concat(r);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i.test(n)}},{key:"_isTokenGameURL",value:function(){var e,t=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i,r="1"===(null===(e=C(location.href,!0).query)||void 0===e?void 0:e.rd);return t.test(location.href)||!r&&t.test(document.referrer)}},{key:"_isExtHostedGameURL",value:function(){var e=/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i;return e.test(location.href)||e.test(document.referrer)}},{key:"_isLoaderGameURL",value:function(){return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href)&&location.href.startsWith("https://html5.gamedistribution.com")}},{key:"_getTokenGameURLConfig",value:function(){try{var e,t=/http[s]?:\/\/html5\.gamedistribution\.com\/[A-Za-z0-9]{8}\/[A-Fa-f0-9]{32}\/.*/i;if(t.test(location.href)){var r=new C(location.href,!0);if(!r.query.gd_zone_config)return;e=r.query.gd_zone_config}else if(t.test(document.referrer)){var n=new C(document.referrer,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else{var i=new C(location.href,!0);if(!i.query.gd_zone_config)return;e=i.query.gd_zone_config}return JSON.parse(rt.decode(decodeURIComponent(e)))}catch(e){}}},{key:"_getSplashTemplate",value:function(e){var t=e.splash;return new TT(t).splash()}},{key:"_createPrerollPromoTemplate",value:(i=t(d.mark((function e(t){var r,n,i,o,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=null===(r=t.promo)||void 0===r?void 0:r[null===(n=t.promo)||void 0===n||null===(i=n.template)||void 0===i?void 0:i.preroll],a=new OT(o),e.abrupt("return",a.promo());case 3:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"_formatTokenURLSearch",value:function(e){var t="";try{t=encodeURIComponent(rt.encode(JSON.stringify(e)))}catch(e){}try{var r=new C(location.href,!0);return r.query=r.query||{},r.query.gd_zone_config=t,"?".concat(l.stringify(r.query))}catch(e){return"?gd_zone_config=".concat(t)}}},{key:"_extendUrlQuery",value:function(e,t){var r=new C(e,!0);return r.query=AL(AL({},r.query),t),r.toString()}},{key:"_base64_encode",value:function(e){return rt.encode(JSON.stringify(e))}},{key:"session",value:function(){var e=this;return new Promise(function(){var r=t(d.mark((function t(r,n){var i;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.sdkReady;case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:i=e._gameData,r({ads:{display:{enabled:i.dAds.enabled},rewarded:{enabled:i.rewardedAds}},location:{parentDomain:e._bridge.parentDomain,topDomain:e._bridge.topDomain,parentURL:e._bridge.parentURL,depth:e._bridge.depth,loadedByGameZone:e._bridge.isTokenGameURL}});case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(e,t){return r.apply(this,arguments)}}())}},{key:"sendGenericEvent",value:function(e){console.log("Received generic event",e,this._isMasterGameURL());try{var t,r;if("track-milestone"==e.eventName)_L.tracking.trackEvent("milestoneAchieved",{pageId:this.options.gameId,pageType:"game",isAuthorized:null===(t=e.data)||void 0===t?void 0:t.isAuthorized,milestoneDescription:null===(r=e.data)||void 0===r?void 0:r.milestoneDescription});else if("game_event"==e.eventName)return this._gameEventPostMessage(e)}catch(e){console.log(e.message)}}},{key:"_gameEventPostMessage",value:function(e){if(void 0!==e.data.level&&this._numberValidator(e.data.level))if(void 0!==e.data.score&&this._numberValidator(e.data.score)){var t={type:e.eventName,data:e.data};window.location!==window.top.location&&window.top.postMessage(t,"*")}else console.log("Level data type should be number!");else console.log("Level data type should be number!")}},{key:"_numberValidator",value:function(e){return"number"==typeof e&&/^\d*$/.test(e)}},{key:"_getisMobile",value:function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),!1===t&&window.orientation>-1&&(t=!0),t}},{key:"_get_game_thumbnail_url",value:function(){var e=this,t=this._gameData,n=t.assets.find(function(t){return r(this,e),t.hasOwnProperty("name")&&512===t.width&&512===t.height}.bind(this));return n||(n=t.assets.length>0?t.assets[0]:{name:"logo.svg"}),"https://img.gamedistribution.com/".concat(n.name)}},{key:"_post_message",value:function(e){var t,r=e.topic,n=e.data,i=null!==(t=location.ancestorOrigins)&&void 0!==t&&t.length?location.ancestorOrigins[location.ancestorOrigins.length-1]:"*";try{var o=window.top||window.parent;o&&o.postMessage({source:"gdsdk",topic:r,data:n},i)}catch(e){console.error((null==e?void 0:e.message)||e)}}},{key:"fixScore",value:function(){var e,t,n,i,o=this;if(null===(e=this._gameData)||void 0===e||null===(t=e.fix_score)||void 0===t?void 0:t.enabled){var a=(null===(n=this._gameData)||void 0===n||null===(i=n.fix_score)||void 0===i?void 0:i.wait)||10;setTimeout(function(){var e=this;r(this,o),this.showAd(nt.Interstitial,{position:"midroll"}).catch(function(t){r(this,e)}.bind(this))}.bind(this),1e3*a)}}},{key:"executeCompensation",value:(n=t(d.mark((function e(n){var i,o,a,s,u,c,l=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(null==n?void 0:n.whenAvailable)||!1,o=!this.adInstance.requestRunning&&!this.adFlowRunning,a=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.showAd(nt.Interstitial,{position:"midroll",isCompensation:!0});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!o){e.next=10;break}return e.next=7,a();case 7:return s=e.sent,e.abrupt("return",s);case 10:if(!i){e.next=17;break}return u=!1,e.next=15,new Promise(function(e,n){var i=this;r(this,l);var o=!1,s=setInterval(t(d.mark((function t(){var r;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i.adInstance.requestRunning||i.adFlowRunning){t.next=19;break}return clearInterval(s),t.prev=4,t.next=7,a();case 7:r=t.sent,o=!0,e(r),u=!0,t.next=19;break;case 14:t.prev=14,t.t0=t.catch(4),Js("[compensation] execution error after became available",t.t0),e({err:t.t0,success:!1}),u=!0;case 19:case"end":return t.stop()}}),t,null,[[4,14]])}))),1e3);setTimeout(function(){r(this,i),o||u||e({success:!1})}.bind(this),6e4)}.bind(this));case 15:return c=e.sent,e.abrupt("return",c);case 17:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"decideToGiveAGift",value:function(e){var n=this;try{var i,o=null===(i=this._gameData)||void 0===i?void 0:i.gft[e],a="gift";if(!TM({rateType:a,gameData:this._gameData}))return void Js("[compensation] rate check did not pass for ".concat(a));Js("[compensation] rate check passed for ".concat(a));var s=setInterval(t(d.mark((function t(){var i=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.adInstance.requestRunning||n.adFlowRunning?console.log("Advertisement already running..."):(Js("gd-adflow WILL GIVE GIFT!!!"),n.showAd(nt.Interstitial,{position:e,isGift:!0}).catch(function(e){r(this,i)}.bind(this)),clearInterval(s),n._giftCount[e]++);case 1:case"end":return t.stop()}}),t,this)}))),1e3*o.durations[this._giftCount[e]].wait)}catch(e){console.log("Advertisement Error...")}}},{key:"send_atom_event",value:function(e,t){this.adInstance._send_atom_event(e,t)}},{key:"get_session_id",value:function(){return bL}},{key:"get_ad_system_init_result",value:function(){return{afg:this.adInstance.afgInitSuccess,ima:this.adInstance.imaInitSuccess}}},{key:"_getDeveloperDomains",value:function(){var e,t;return"developer.gamedistribution.com"===this._topDomain||"developer-acc.gamedistribution.com"===this._topDomain?e=this._topDomain:!0===new RegExp("^localhost").test(this._parentDomain)&&(e="localhost"),e&&(t={"developer-acc.gamedistribution.com":"game-api-acc-real-aws.gamedistribution.com","developer.gamedistribution.com":"game.api.gamedistribution.com",localhost:"game-api-acc-real-aws.gamedistribution.com"}[e]),{developerDomain:e,gameApiDomain:t}}},{key:"_setGameRewardedFlag",value:function(){try{var e=this._getDeveloperDomains(),t=e.developerDomain,r=e.gameApiDomain;if(t){fetch("https://".concat(r,"/game/v2/hasrewarded/").concat(this.options.gameId,"?timestamp=").concat((new Date).valueOf()));try{var n=JSON.stringify({type:"GD_SDK_REWARDED_SET",gameID:this.options.gameId});window.location!==window.top.location?window.top.postMessage(n,"*"):null!==window.opener&&window.opener.location!==window.location&&window.opener.postMessage(n,"*")}catch(e){}}}catch(e){}}},{key:"_getGdModeIfExist",value:function(){var e=this,t=new Proxy(new URLSearchParams(window.location.search),{get:function(t,n){return r(this,e),t.get(n)}.bind(this)});return!t.gd_mode&&window.location.search.includes("gd_mode")?window.location.search.split("gd_mode=")[1]:t.gd_mode}},{key:"_executeMidrollPlus",value:function(){var e,t=this;if(TM({rateType:"midroll+",gameData:this._gameData})&&null!==(e=this._gameData.midroll_plus)&&void 0!==e&&e.enabled&&!this.isMidrollPlusExecuted){var n;this.isMidrollPlusExecuted=!0;var i=this._gameData.midroll_plus.type||"midroll";if(null!==(n=this._gameData.midroll_plus)&&void 0!==n&&n.interval)var o=setInterval(function(){var e,n,a=this;(r(this,t),this.adFlowRunning)||(this.showAd(nt.Interstitial,{position:"midroll",giftType:i,isMidrollPlus:!0}).catch(function(e){r(this,a)}.bind(this)),this._mplus_count++,"infinite"!==(null===(e=this._gameData.midroll_plus)||void 0===e?void 0:e.interval)&&this._mplus_count===(null===(n=this._gameData.midroll_plus)||void 0===n?void 0:n.interval)&&clearInterval(o))}.bind(this),6e4*this._gameData.midroll_plus.timer);else setTimeout(function(){var e=this;r(this,t),this.showAd(nt.Interstitial,{position:"midroll",giftType:i,isMidrollPlus:!0}).catch(function(t){r(this,e)}.bind(this))}.bind(this),this._gameData.midroll)}}}]),e}();function xL(){return xL=t(d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qD();case 2:if(e.sent){e.next=6;break}return console.log("locus-disabled on proxy level"),e.abrupt("return");case 6:t=["https://pm.azerioncircle.com/p/locus/"],console.log("locus loading"),ft(t[0],"locus",{alternates:t}).catch(function(e){r(this,n),this._sendSDKError(e)}.bind(this));case 9:case"end":return e.stop()}}),e,this)}))),xL.apply(this,arguments)}var kL,EL=new pD.exports.EventEmitter,SL=function(e){var t=this;!function(){xL.apply(this,arguments)}();var n,i=function(e){var n=this;return r(this,t),new Promise(function(t,i){var o=this;r(this,n);var a=function(e){r(this,o),"SDK_GAME_START"===e.name&&(EL.off("sdk-event",a),t())}.bind(this);EL.on("sdk-event",a),m("showAd",{adType:e})}.bind(this))}.bind(this),o=function(){return r(this,t),n||(n=new wL(e)),n}.bind(this),a=function(e){return r(this,t),i(e)}.bind(this),s=function(e){return r(this,t),"gdsdk://preloaded"}.bind(this),u=function(e){return r(this,t),o().showDisplayAd(e)}.bind(this),c=function(){return r(this,t),m("cancelAd")}.bind(this),d=function(){return r(this,t),m("openConsole")}.bind(this),l=function(){return r(this,t),m("showBanner")}.bind(this),f=function(){return r(this,t),m("session")}.bind(this),p=function(e){return r(this,t),m("sendGenericEvent",{options:e})}.bind(this),h=function(){r(this,t),console.log("_sendSDKReady")}.bind(this),m=function(e,n){var i=this;return r(this,t),n||(n={}),new Promise(function(t,o){r(this,i);try{var a={type:"gd-sdk",method:e,options:n};window.parent.postMessage(a,"*"),t()}catch(e){console.log("gd:adp:m:s:error",e),t()}}.bind(this))}.bind(this),v=function(){r(this,t);window.addEventListener("message",(function(e){var t=e.data;e.origin,e.source;var r=t.type,n=t.event;"gd-sdk-on-event"===r&&n&&A(n)}),!1)}.bind(this),g=function(){r(this,t),v(),m("init")}.bind(this),A=function(n){r(this,t);try{EL.emit("sdk-event",n),e.onEvent&&e.onEvent(n)}catch(e){console.log("DEVELOPER ERROR on forwarder-sdk")}}.bind(this);return{showBanner:l,showAd:a,preloadAd:s,showDisplayAd:u,cancelAd:c,openConsole:d,getSession:f,onEvent:A,init:g,_sendSDKReady:h,sendGenericEvent:p}},DL=function(e){var t=SL(e);return t.init(),t},RL=function(){var e=this,t=function(){r(this,e);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href)}.bind(this),n=function(){r(this,e);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i.test(location.href)}.bind(this),i=function(){r(this,e);return/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i.test(location.href)}.bind(this),o=function(){r(this,e);var i="html5.gamedistribution.com"!==C(window.location.href).host;return t()&&!(n()||i)?"loader-frame":"game-frame"}.bind(this);return{isMasterGameURL:t,isTokenGameURL:n,isExtHostedGameURL:i,whichFrame:o}},IL="gd-sdk-frame-handshake-request",CL="gd-sdk-frame-handshake-response",OL=function(e){var t=this;return new Promise(function(e,n){var i=this;r(this,t);var o={type:IL},a=!1;window.addEventListener("message",(function(t){var r=t.data,n=t.origin,i=t.source,o=r.type;if(o===IL){var s={type:CL};i.postMessage(s,n)}else o===CL&&(a=!0,e({origin:n,source:i}))})),setTimeout(function(){r(this,i),a||e()}.bind(this),200),window.parent!==window?window.parent.postMessage(o,"*"):e()}.bind(this))},TL=function(){var e=t(d.mark((function e(){var t,r,n,i,o,a,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,KD();case 2:return t=e.sent,e.next=6,OL();case 6:if(r=e.sent,iL.SDKExistsOnUpperFrame=!!r,t){e.next=10;break}return e.abrupt("return",!1);case 10:return n=RL(),i=n.isMasterGameURL,n.isTokenGameURL,o=i(),e.next=14,VD();case 14:return a=e.sent,s=!1,s=a?!o&&!!r:!o,e.abrupt("return",s);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),PL={},ML=function(e){try{if(e.skipForward)return void Js("gd-adflow fw-skip-forward",e);if(Js("gd-adflow fw-forwarding",e),PL.source){var t={type:"gd-sdk-on-event",event:e};PL.source.postMessage(t,PL.origin)}}catch(e){console.log("gd-sdk forwardEvent err",e)}},LL=function(){ML({name:"SDK_READY",status:"success",message:"Everything is ready."}),ML({name:"SDK_GAME_START",status:"success",message:"Advertisement(s) are done. Start / resume the game."}),ML({name:"CONTENT_RESUME_REQUESTED",status:"success",message:"Fired when content should be resumed. This usually happens when an ad finishes or collapses."})},BL=function(e){window.addEventListener("message",(function(n){var i=n.data,o=n.origin,a=n.source,s=i.type,u=i.method,c=i.options;if("gd-sdk-self"!==s){if("gd-sdk"===s){if(!PL.source&&"init"===u)return function(e){var t=e.source,r=e.origin;PL={source:t,origin:r}}({source:a,origin:o}),void LL();var l=e[u];l&&t(d.mark((function t(){var n,i=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,function(){r(this,i),"showAd"===u&&tu.firstAdapterModeAdsense&&"rewarded"!==c.adType&&(console.log("promo-test, set first adapter to adssense 3"),c.params=c.params?c.params:{},c.params.adapter="adsense")}.bind(this),!(n=l.apply(e,Object.values(c)))||!n.then){t.next=6;break}return t.next=6,n;case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.log("gd:adp:m:r onFrameMessage error",t.t0);case 11:case"end":return t.stop()}}),t,this,[[0,8]])})))()}}else{var f={type:"gd-sdk",method:u,options:c};window.postMessage(f,location.origin)}}),!1)},jL=function(e){!function(e){var t=e.onEvent;e.onEvent=function(e){ML(e),t.apply(this,arguments)}}(e);var t=new wL(e);return BL(t),t},UL=function(){function e(){O(this,e),this.moduleName="GDAeria",this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/gd-sdk-aeria/1.0.1/dist/default/iife/index.js",dependencies:[]},jb(this.moduleName,this.moduleConfig)}var r,n;return M(e,[{key:"load",value:(n=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Fb(this.moduleName);case 3:this.module=e.sent,Js("aeria module load success",this.module),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("aeria module load error",e.t0),this.module=null;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return n.apply(this,arguments)})},{key:"runYMenu",value:(r=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.gameId,this.module){e.next=4;break}return e.next=4,this.load();case 4:(new this.module.Aeria).renderYMenu({gameId:r});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}]),e}(),FL=function(){var e=t(d.mark((function e(){var r,n,i,o,a,s,u,c,l,f,p,h,m,v,g,A;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=function(){var e,t=(e=new cD).get("partner.domain.value")||e.get("top.domain.value");return{isAeriaDomain:"minigame.aeriagames.jp"===t||"minigame-stg.aeriagames.jp"===t,isAeriaStagingDomain:"minigame-stg.aeriagames.jp"===t}}(),n=r.isAeriaDomain,i=r.isAeriaStagingDomain,!n){e.next=21;break}return s=function(){var e=(new cD).get("partner.url.value");return new C(e,!0)},u=function(){var e="ae-soft-323";try{var t=s(),r=t.pathname,n=r.split("/"),i=n[n.length-1];Xs("aeria-ylogin:loc",t,r,i),e=i}catch(e){eu("Error on getting aeria game id",e)}return e}(),c={action:"score",data:{gameId:u,score:100},env:i?"staging":"production",system:"Softgames"},l=function(){var e=window.parent||window,t=c;e.postMessage(t,"*")},f=new Dt,e.next=13,GD();case 13:p=e.sent,h=null==p||null===(o=p.aeria)||void 0===o?void 0:o.yMenuExcluded,m=null==p||null===(a=p.aeria)||void 0===a?void 0:a.yLoginExcluded,f.subscribe("AD_FLOW_COMPLETE",(function(e){"midroll"===e.adType&&(m||l())})),v=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(new UL).runYMenu({gameId:u});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=RL(),A=g.whichFrame,"game-frame"===A()&&(h||v());case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),NL=function(e){try{var t=lD(e);e.gameId||t.send("nogameid",{message:"".concat(t_.parentURL)})}catch(e){}},$L=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,FL();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.log("error on creating some bridge module");case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),GL=function(){var e=t(d.mark((function e(t){var r,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,NL(t),$D(t),e.next=5,TL();case 5:return r=e.sent,e.next=8,$L();case 8:return window.isForwarderFrame=r,n=r?DL(t):jL(t),YD(),e.abrupt("return",n);case 14:return e.prev=14,e.t0=e.catch(0),console.log("gd:adp: sdk adaptor create failed, fallback to default adapter",e.t0),e.abrupt("return",jL(t));case 18:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(t){return e.apply(this,arguments)}}(),HL={create:GL};function zL(){return(zL=t(d.mark((function e(t,r){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,XD();case 2:if(!e.sent){e.next=7;break}e.t0=window.gdsdk,e.next=10;break;case 7:return e.next=9,VL(t);case 9:e.t0=e.sent;case 10:return n=e.t0,e.abrupt("return",r(n));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ZL,KL,qL=!1;function VL(e){var t=this;return new Promise(function(n,i){var o=this;if(r(this,t),kL)return n(kL);if(qL)var a=setInterval(function(){r(this,o),kL&&(qL=!1,clearInterval(a),n(kL))}.bind(this),100);else qL=!0,HL.create(e).then(function(e){r(this,o),kL=e,e._sendSDKReady(),qL=!1,n(kL)}.bind(this))}.bind(this))}function WL(e){return VL(e),{invoke:function(t){return function(e,t){return zL.apply(this,arguments)}(e,t)}}}function YL(e,n){var i=this;return new Promise(function(o,a){var s,u=this;r(this,i);var c=function(e){var t="https://pm.azerioncircle.com/pkg/@bygd/gd-sdk-wrp/dist/default/iife/index.js";return e&&(t="https://pm.azerioncircle.com/@bygd/gd-sdk-wrp/".concat(e,"/dist/default/iife/index.js")),[t]}(null==n||null===(s=n.game)||void 0===s?void 0:s.version);QL({text:"sdk-wrapper-script-load"}),ft(c[0],"gd-sdk-wrp",{alternates:c}).catch(function(e){r(this,u),QL({text:"sdk-wrapper load error",error:e.message}),this._sendSDKError(e),a(e)}.bind(this)).then(t(d.mark((function t(){var r,i;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,QL({text:"sdk-wrapper load success"}),r=window.GDSDKWRP.GDSDKWRP,i=new r,QL({text:"sdk-wrapper before gdSdkWrp.init"}),t.next=7,i.init(e,n);case 7:KL=t.sent,QL({text:"sdk-wrapper after gdSdkWrp.init"}),o(KL),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(0),QL({text:"sdk-wrapper load error 2",error:t.t0.message}),a(t.t0);case 16:case"end":return t.stop()}}),t,null,[[0,12]])}))))}.bind(this))}function QL(e){try{var t={tp:"gd.wrp",args:e};fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(rt.encode(JSON.stringify(t))))),console.log(fP(Object.values(e)))}catch(e){}}function JL(e){if(e){var t=e.name,r=e.message,n=e.status;try{QL({text:"samsung-wrp send-game-event",evt:e,hasOptions:!!ZL}),ZL&&ZL.onEvent({name:t,message:r,status:n})}catch(t){QL({text:"samsung-wrp DEVELOPER-ERROR",evt:e,err:t})}}}function XL(e){return eB.apply(this,arguments)}function eB(){return(eB=t(d.mark((function e(t){var r,n,i,o,a,s,u,c,l;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ZL=t,$D(t),e.next=4,GD();case 4:if(o=e.sent,!KL){e.next=7;break}return e.abrupt("return",KL);case 7:if(a=null==o||null===(r=o.sdk_wrp)||void 0===r?void 0:r.enabled,s=null==o||null===(n=o.sdk_wrp)||void 0===n?void 0:n.version,u=null==o?void 0:o.gameId,c=null==o?void 0:o.title,rB("isWrapEnabled ".concat(a)),a){e.next=14;break}return e.abrupt("return");case 14:return l=null==o||null===(i=o.sdk_wrp)||void 0===i?void 0:i.wrapper,e.next=17,YL(l,{onEvent:JL,game:{gameId:u,title:c,version:s}});case 17:return KL=e.sent,e.abrupt("return",KL);case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function tB(){return tB=t(d.mark((function e(t){var r,n,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._get_developer_sets,rB("beforeGetDeveloperSettings"),n=r(),rB("afterGetDeveloperSettings"),e.prev=4,e.next=7,XL(n);case 7:i=e.sent,rB("after get SDK wrapper: ".concat(!!i)),i&&(rB("setting SDK Wrapper as gd-sdk"),window.sdkWrapper=i,window.gdsdk=i,window.gdApi=window.gdsdk),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),console.log("Error on SDK wrapper init",e.t0),rB("Error on SDK wrapper init: ".concat(e.t0.message));case 16:case"end":return e.stop()}}),e,null,[[4,12]])}))),tB.apply(this,arguments)}function rB(e){window.sdkLog.push(e)}function nB(){var e={};try{"object"===("undefined"==typeof GD_OPTIONS?"undefined":n(GD_OPTIONS))&&GD_OPTIONS?e=GD_OPTIONS:window.gdApi&&"object"===n(window.gdApi.q[0][0])&&window.gdApi.q[0][0]&&((e=window.gdApi.q[0][0]).hasOwnProperty("advertisementSettings")||(e.advertisementSettings={autoplay:!0}))}catch(e){console.log("_get_developer_sets failed",e)}return e}window.sdkLog=[],"img.samsungapps.com"===function(){var e,t,r=C(window.location.href,!0),n=r.host,i=r.query,o=n,a=null==i?void 0:i.gd_sdk_referrer_url;return a&&(a=a.startsWith("https://")||a.startsWith("http://")?a:"https://".concat(a),null!==(t=e=C(a,!0))&&void 0!==t&&t.host&&(o=e.host)),o}()?rB("skipped normal SDK init!"):(!function(){bT();var e=WL(nB());function n(){var n=this;this.AdType=nt,this.preloadAd=function(){var n=t(d.mark((function t(n){var i,o=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.invoke(function(e){return r(this,o),e.preloadAd(n)}.bind(this));case 2:return i=t.sent,Xs("[developer-event] preloadAd check",i),t.abrupt("return",i);case 5:case"end":return t.stop()}}),t,this)})));return function(e){return n.apply(this,arguments)}}(),this.showAd=function(){var n=t(d.mark((function t(n,i){var o,a=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.invoke(function(e){var t=this;if(r(this,a),n===nt.Display)return e.showDisplayAd(i);var o={};return function(){r(this,t),tu.firstAdapterModeAdsense&&(console.log("promo-test, set first adapter to adssense 2"),o.adapter="adsense")}.bind(this),e.showAd(n,o)}.bind(this));case 2:return o=t.sent,Xs("[developer-event] after showAd",o),t.abrupt("return",o);case 5:case"end":return t.stop()}}),t,this)})));return function(e,t){return n.apply(this,arguments)}}(),this.cancelAd=function(){var t=this;return e.invoke(function(e){return r(this,t),e.cancelAd()}.bind(this))},this.openConsole=function(){var t=this;return e.invoke(function(e){return r(this,t),e.openConsole()}.bind(this))},this.getSession=function(){var t=this;return e.invoke(function(e){return r(this,t),e.session()}.bind(this))},this.sendEvent=function(t){var n=this;return e.invoke(function(e){return r(this,n),e.sendGenericEvent(t)}.bind(this))},this.leaderboard={show:function(){r(this,n),$b.showLeaderboard()}.bind(this),addScore:function(e){r(this,n),$b.addScore(e)}.bind(this)}}n.prototype=new function(){this.showBanner=function(){var t=this;return e.invoke(function(e){return r(this,t),e.showBanner()}.bind(this))},this.play=function(){},this.customLog=function(){}},window.gdsdk=new n,window.gdApi=window.gdsdk}(),rB("afterSDKInit")),function(e){tB.apply(this,arguments)}({_get_developer_sets:nB})}();
39
+ const{deleteProperty:qS}=Reflect,VS=function(e){return"object"==typeof e?null===e:"function"!=typeof e},WS=function(e){var t,r;return!1!==KS(e)&&("function"==typeof(t=e.constructor)&&(!1!==KS(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))},YS=e=>"object"==typeof e&&null!==e||"function"==typeof e,QS=e=>{if(!VS(e))throw new TypeError("Object keys must be strings or symbols");if((e=>"__proto__"===e||"constructor"===e||"prototype"===e)(e))throw new Error(`Cannot set unsafe key: "${e}"`)},JS=(e,t,r)=>{const n=(e=>Array.isArray(e)?e.flat().map(String).join(","):e)(t?((e,t)=>{if("string"!=typeof e||!t)return e;let r=e+";";return void 0!==t.arrays&&(r+=`arrays=${t.arrays};`),void 0!==t.separator&&(r+=`separator=${t.separator};`),void 0!==t.split&&(r+=`split=${t.split};`),void 0!==t.merge&&(r+=`merge=${t.merge};`),void 0!==t.preservePaths&&(r+=`preservePaths=${t.preservePaths};`),r})(e,t):e);QS(n);const i=tD.cache.get(n)||r();return tD.cache.set(n,i),i},XS=(e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:JS(e,t,(()=>((e,t={})=>{const r=t.separator||".",n="/"!==r&&t.preservePaths;if("string"==typeof e&&!1!==n&&/\//.test(e))return[e];const i=[];let o="";const a=e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)};for(let t=0;t<e.length;t++){const n=e[t];"\\"!==n?n!==r?o+=n:(a(o),o=""):o+=e[++t]}return o&&a(o),i})(e,t))),eD=(e,t,r,n)=>{if(QS(t),void 0===r)qS(e,t);else if(n&&n.merge){const i="function"===n.merge?n.merge:Object.assign;i&&WS(e[t])&&WS(r)?e[t]=i(e[t],r):e[t]=r}else e[t]=r;return e},tD=(e,t,r,n)=>{if(!t||!YS(e))return e;const i=XS(t,n);let o=e;for(let e=0;e<i.length;e++){const t=i[e],a=i[e+1];if(QS(t),void 0===a){eD(o,t,r,n);break}"number"!=typeof a||Array.isArray(o[t])?(YS(o[t])||(o[t]={}),o=o[t]):o=o[t]=[]}return e};tD.split=XS,tD.cache=new Map,tD.clear=()=>{tD.cache=new Map};var rD,nD=tD;function iD(e){var t=this,n={},i=(null==e?void 0:e._ancestor_origins)||window.location.ancestorOrigins,o=(null==e?void 0:e.self_url)||window.location.href,a=(null==e?void 0:e.self_origin)||window.location.origin,s=(null==e?void 0:e.referrer_url)||document.referrer;function u(e){return $S(n,e)}function c(e,t){return nD(n,e,t)}var d=function(){var e;r(this,t),function(){var e=0,t=window;try{for(;t!=t.parent;)e++,t=t.parent}catch(e){c("depth.error",e.message)}c("depth.value",e)}(),function(){var e=i,t=n.depth.value,r=a;if(c("top.domain.from","fallback"),e&&e.length>0)r=e[e.length-1],c("top.domain.from","origins");else if(0===t)r=a,c("top.domain.from","self-top");else if(1===t){var o=l(s);o&&(r=o.origin,c("top.domain.from","referrer"))}c("top.domain.value",r.replace(/^https?:\/\/(www\.)?(.*)$/i,"$2"))}(),function(){var e=f();if(e)if(US(e))c("partner.domain.value",e),c("partner.domain.from","partner-domain");else{var t=l(e,!1);if(t)c("partner.domain.value",t.origin.replace(/^https?:\/\/(www\.)?(.*)$/i,"$2")),c("partner.domain.from","partner-url");else c("partner.domain.value",n.top.domain.value),c("partner.domain.from","partner-fallback")}else c("partner.domain.value",n.top.domain.value),c("partner.domain.from","fallback")}(),e=f(),0===n.depth.value?(c("partner.url.value",o),c("partner.url.from","self-top")):e?US(e)?(c("partner.url.value",o),c("partner.url.from","partner-domain")):(c("partner.url.value",e),c("partner.url.from","partner-url")):(c("partner.url.value",s),c("partner.url.from","fallback"))}.bind(this);function l(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e&&""!==e)try{return new C(e,t)}catch(e){console.log(e)}}function f(){for(var t=(null==e?void 0:e.urls)||[o,s],r=0;r<t.length;r++){var n,i=l(t[r]);if(i){var a=null===(n=i.query)||void 0===n?void 0:n.gd_sdk_referrer_url;if(a&&(a=(a=decodeURIComponent(a)).startsWith("https://")||a.startsWith("http://")?a:"https://".concat(a),fS.isURL(a)))return a}}}return d(),{get:u,print:function(e){console.log(u(e))}}}var oD,aD=function(e){var t=this;if(!rD){var n={gameId:e.gameId,hours:(new Date).getHours(),topDomain:Xy.topDomain,domain:Xy.parentDomain,referrer:Xy.parentURL,depth:mt(),version:Au.version,byloader:Xy.isTokenGameURL,isTokenGameURL:Xy.isTokenGameURL,isMasterGameURL:Xy.isMasterGameURL,isExtHostedGameURL:Xy.isExtHostedGameURL,byloaderVersion:Xy.version,tracking:e_.userDeclinedTracking,whitelabel:e_.whitelabelPartner,platform:pt()};rD=new Ot(n)}return rD||{send:function(){r(this,t)}.bind(this)}},sD={getGameData:function(e){var t=this;try{var n=e.replace("game.api.gamedistribution.com","game-api.gamedistribution.com");fetch(n).then(function(e){r(this,t)}.bind(this)).catch(function(e){r(this,t)}.bind(this))}catch(e){}},getGameLoaderIndex:function(e){var t=this;try{var n="https://html5-prod-aws.gamedistribution.com/".concat(e,"/");fetch(n).then(function(e){r(this,t)}.bind(this)).catch(function(e){r(this,t)}.bind(this))}catch(e){}}},uD={exports:{}},cD="object"==typeof Reflect?Reflect:null,dD=cD&&"function"==typeof cD.apply?cD.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};oD=cD&&"function"==typeof cD.ownKeys?cD.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var lD=Number.isNaN||function(e){return e!=e};function fD(){fD.init.call(this)}uD.exports=fD,uD.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}wD(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&wD(e,"error",t,r)}(e,i,{once:!0})}))},fD.EventEmitter=fD,fD.prototype._events=void 0,fD.prototype._eventsCount=0,fD.prototype._maxListeners=void 0;var pD=10;function hD(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function mD(e){return void 0===e._maxListeners?fD.defaultMaxListeners:e._maxListeners}function vD(e,t,r,n){var i,o,a,s;if(hD(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=mD(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function gD(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function AD(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=gD.bind(n);return i.listener=r,n.wrapFn=i,i}function bD(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):_D(i,i.length)}function yD(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function _D(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function wD(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(fD,"defaultMaxListeners",{enumerable:!0,get:function(){return pD},set:function(e){if("number"!=typeof e||e<0||lD(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");pD=e}}),fD.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},fD.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||lD(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},fD.prototype.getMaxListeners=function(){return mD(this)},fD.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)dD(s,this,t);else{var u=s.length,c=_D(s,u);for(r=0;r<u;++r)dD(c[r],this,t)}return!0},fD.prototype.addListener=function(e,t){return vD(this,e,t,!1)},fD.prototype.on=fD.prototype.addListener,fD.prototype.prependListener=function(e,t){return vD(this,e,t,!0)},fD.prototype.once=function(e,t){return hD(t),this.on(e,AD(this,e,t)),this},fD.prototype.prependOnceListener=function(e,t){return hD(t),this.prependListener(e,AD(this,e,t)),this},fD.prototype.removeListener=function(e,t){var r,n,i,o,a;if(hD(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},fD.prototype.off=fD.prototype.removeListener,fD.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},fD.prototype.listeners=function(e){return bD(this,e,!0)},fD.prototype.rawListeners=function(e){return bD(this,e,!1)},fD.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):yD.call(e,t)},fD.prototype.listenerCount=yD,fD.prototype.eventNames=function(){return this._eventsCount>0?oD(this._events):[]};var xD={prod:["html5.gamedistribution.com","revision.gamedistribution.com"],acc:["html5-acc-real-aws.gamedistribution.com","acceptance-revision.gamedistribution.com"]},kD={gameAPI:"game.api.gamedistribution.com"},ED={gameAPI:"game-api-acc-real-aws.gamedistribution.com"},SD=function(){var e=this,t=xD.acc.some(function(t){var n;return r(this,e),t===(null===(n=window.location.host)||void 0===n?void 0:n.toLowerCase())}.bind(this));return{env:t?"acc":"prod",config:t?ED:kD}},DD=function(e){var t=this,n=e.url;return new Promise(function(e,i){r(this,t);var o=new XMLHttpRequest;o.open("GET",n,!0),o.onreadystatechange=function(){if(4==o.readyState)if(200==o.status){var t=JSON.parse(o.responseText);e(t)}else i(Error("Error occured on request: ".concat(o.status,", ").concat(o.statusText)))},o.onerror=function(e){i(e)},o.send()}.bind(this))};function RD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ID(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?RD(Object(r),!0).forEach((function(t){Eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RD(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var CD,OD,TD,PD=new uD.exports.EventEmitter,MD=[],LD=function(e){MD.push(e)},BD=function(e){CD=aD(TD=e)},jD=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(OD){e.next=6;break}return e.next=3,ND(TD);case 3:OD=e.sent,PD.emit("game-data-ready",OD),UD();case 6:return e.abrupt("return",OD);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),UD=function(){var e;if(null!==(e=OD)&&void 0!==e&&null!==(e=e.aws_tst)&&void 0!==e&&e.enabled){var r,n,i;if(FD(),null!==(r=OD)&&void 0!==r&&null!==(r=r.aws_tst)&&void 0!==r&&null!==(r=r.ep)&&void 0!==r&&r.api&&null!==(n=OD)&&void 0!==n&&n.url)sD.getGameData(null===(i=OD)||void 0===i?void 0:i.url);setInterval(t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ND(TD);case 3:OD=e.sent,_u("gd-aws-test, new game data received",null===(t=OD)||void 0===t?void 0:t.aws_tst),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])}))),3e5)}},FD=function(){var e=window.fetch;window.fetch=t(d.mark((function t(){var n,i,o,a,s,u,c,l,f,p,h,m,v,g=this,A=arguments;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(o=A.length,a=new Array(o),s=0;s<o;s++)a[s]=A[s];u=a[0],c=a[1],l=null===(n=OD)||void 0===n||null===(n=n.aws_tst)||void 0===n||null===(n=n.ep)||void 0===n?void 0:n.atm,f=null===(i=OD)||void 0===i||null===(i=i.aws_tst)||void 0===i||null===(i=i.ep)||void 0===i?void 0:i.msgrt,p=function(t,n){var i=this;r(this,g);var o=u.replace(t,n);e(o,c).then(function(){r(this,i)}.bind(this))}.bind(this);try{l&&u.indexOf("tag.atom")>0&&p("tag.atom.gamedistribution.com","atom-tag-prod-aws.gamedistribution.com"),f&&u.indexOf("msgrt.gamedistribution.com")>0&&(_u("gd-aws-test hook",null===(h=OD)||void 0===h?void 0:h.aws_tst,null===(m=OD)||void 0===m||null===(m=m.aws_tst)||void 0===m||null===(m=m.ep)||void 0===m?void 0:m.msgrt),p("msgrt.gamedistribution.com","msgrt-prod-aws.gamedistribution.com"))}catch(e){}return t.next=9,e(u,c);case 9:return v=t.sent,t.abrupt("return",v);case 11:case"end":return t.stop()}}),t,this)})))},ND=function(e){var n=this;CD.send("gdfw.loading",{message:"loading"}),MD=[],LD("1"),LD("2");var i=new iD;LD("3");var o=i.get("partner.domain.value");LD("4");var a=function(){return r(this,n),{gameId:e.gameId,disableAds:{},preroll:!0,midroll:12e4,rewardedAds:!1,title:"",tags:[],category:"",assets:[],dmain:!0,sdk:{},loader:{},splash:{},promo:{},dAds:{},pAds:{},mAds:{},rAds:{},gs_trc:{enabled:!0}}}.bind(this);LD("5");var s=function(){r(this,n);var t=u(),i=t?"&mode=".concat(t):"",a=SD().config;return"https://".concat(a.gameAPI,"/game/v4/get/").concat(e.gameId.replace(/-/g,""),"/?domain=").concat(o).concat(i,"&v=").concat(Au.version,"&localTime=").concat((new Date).getHours())}.bind(this);LD("6");var u=function(){var e=this;r(this,n);var t=new Proxy(new URLSearchParams(window.location.search),{get:function(t,n){return r(this,e),t.get(n)}.bind(this)});return!t.gd_mode&&window.location.search.includes("gd_mode")?window.location.search.split("gd_mode=")[1]:t.gd_mode}.bind(this);return LD("7"),new Promise(function(e){var i=this;r(this,n),LD("7.1");var o=a();try{LD("7.2");var u=s();LD("7.3"),fetch(u).then(function(){var e=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return LD("7.4"),e.prev=1,e.next=4,t.json();case 4:r=e.sent,e.next=13;break;case 7:return e.prev=7,e.t0=e.catch(1),_u("gameData fetch error, fallback to other ajax api",e.t0),e.next=12,DD({url:u});case 12:r=e.sent;case 13:return e.abrupt("return",r);case 14:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t){return e.apply(this,arguments)}}()).then(function(t){var n=this;if(r(this,i),LD("7.5"),t.success){var a,s,c=t.result.game;LD("7.6");var d={company:c.company,gameId:c.gameMd5,slug:c.slug,pname:c.pname,dname:c.dname,status:c.status,activeStatus:c.activeStatus,description:c.description,disableAds:c.enableAds,preroll:c.preRoll,midroll:6e4*c.timeAds,rewardedAds:c.rewardedAds,title:c.title,publishedAt:c.publishedAt,tags:c.tags,category:c.category,assets:c.assets,disp_2nd_prer:c.disp_2nd_prer,ctry_vst:c.ctry_vst,ctry:c.ctry,crtv:c.crtv,dmain:c.dmain,dmn:c.dmn,aws_tst:c.aws_tst,meta:c.meta,adsc:c.adsc,adspn:bu(c.adspn)||{},__t4r:bu(c.__t4r)||{},block_exts:bu(c.push_cuda),bloc_gard:bu(c.bloc_gard),cookie:bu(c.cookie),gdpr:bu(c.gdpr),diagnostic:bu(c.diagnostic),cmp:bu(c.cmp),gft:bu(c.gft)||{},sdk:bu(c.sdk)||{},sdkfw:bu(c.sdkfw)||{},loader:bu(c.loader)||{},splash:bu(c.splash)||{},promo:bu(c.promo)||{},dAds:bu(c.dads)||{},pAds:bu(c.pads)||{},mAds:bu(c.mads)||{},rAds:bu(c.rads)||{},lp:bu(c.lp)||{},extsc:bu(c.extsc)||{},evnts:bu(c.evnts)||{},dp:bu(c.dp)||{},adflw:bu(c.adflw)||{},afgszf:bu(c.afgszf)||{},fllc:bu(c.fllc)||{},lotm:bu(c.lotm)||{},t4rc:bu(c.t4rc)||{},midroll_plus:bu(c.midroll_plus)||{},gmky:bu(c.gmky)||{},urlBlockExc:bu(c.url_blck_exc)||{},sdk_wrp:bu(c.sdk_wrp)||{},dbglg:bu(c.dbglg)||{},extHosting:bu(c.ext_hosting)||{},directTokenUse:bu(c.dtu)||{},aeria:bu(c.aeria)||{},advlm:bu(c.advlm)||{},ad_blcks:bu(c.ad_blcks)||{},rmblck:bu(c.rmblck)||{},gs_trc:bu(c.gs_trc)||{},rwskp:bu(c.rwskp)||{},isv_fw:bu(c.isv_fw)||{},ext_vst:bu(c.ext_vst)||{},fix_score:bu(c.fix_score)||{},compensation:bu(c.comps)||{},adTimer:bu(c.adtr)||{},cust_vast:bu(c.cust_vast)||{}};LD("7.7");var l=at(B(o),d);LD("7.8"),l.afg_disabled=!1===(null===(a=l.sdk)||void 0===a||null===(a=a.afg)||void 0===a?void 0:a.enabled),l.url=u,function(){r(this,n),void 0!==ku.afgEnabled&&(l.afg_disabled=!ku.afgEnabled),void 0!==ku.promoEnabled&&(l.promo=l.promo||{},l.promo=ID(ID({},l.promo),{},{rainbow:{enabled:ku.promoEnabled}}))}.bind(this),LD("7.9"),null!==(s=l.pAds)&&void 0!==s&&s.enabled&&(l.preroll=!0),LD("7.10"),CD.send("gdfw.success",{message:"success"}),e(l)}else{o.failed=!0;var f=MD[MD.length-1];CD.send("gdfw.err",{message:"".concat(f,": json error")}),e(o)}}.bind(this)).catch(function(t){r(this,i);var n=MD[MD.length-1];CD.send("gdfw.err",{message:"".concat(n,": ").concat(t.message?t.message:t)}),o.failed=!0,e(o)}.bind(this))}catch(t){var c=MD[MD.length-1];CD.send("gdfw.err",{message:"".concat(c,": global ").concat(t.message?t.message:t)}),o.failed=!0,e(o)}}.bind(this))},$D=function(){var e=t(d.mark((function e(){var t,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jD();case 2:return r=e.sent,e.abrupt("return",!(null==r||null===(t=r.sdkfw)||void 0===t||!t.enabled));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),GD=function(){var e=t(d.mark((function e(){var t,r,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jD();case 2:return r=e.sent,n=null==r||null===(t=r.diagnostic)||void 0===t||!t.close_ga,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),HD=function(){var e=t(d.mark((function e(){var t,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jD();case 2:return r=e.sent,e.next=5,$D();case 5:if(e.t0=e.sent,!e.t0){e.next=8;break}e.t0=!(null==r||null===(t=r.sdkfw)||void 0===t||!t.handshake);case 8:return e.abrupt("return",e.t0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),zD=function(){var e=t(d.mark((function e(){var t,r,n,i,o,a,s,u;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jD();case 2:return s=e.sent,u=!(null==s||null===(t=s.extsc)||void 0===t||!t.enabled),e.abrupt("return",{enabled:u,path:u?null==s||null===(r=s.extsc)||void 0===r?void 0:r.path:"",name:u?null==s||null===(n=s.extsc)||void 0===n?void 0:n.name:"",ref:u?null==s||null===(i=s.extsc)||void 0===i?void 0:i.ref:"",loadedFlag:u?null==s||null===(o=s.extsc)||void 0===o?void 0:o.loadedFlag:void 0,loadedFlagCheck:!!u&&!(null==s||null===(a=s.extsc)||void 0===a||!a.loadedFlagCheck)});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ZD=function(){var e=t(d.mark((function e(){var t,n,i,o,a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,zD();case 2:if((t=e.sent).enabled){e.next=5;break}return e.abrupt("return");case 5:return n=t.path,i=t.name,o=t.ref,e.prev=6,a={},e.next=10,ht(n,i,{error_prefix:"Blocked:",exists:function(){return r(this,s),!!o&&!!window[o]}.bind(this),attrs:a});case 10:e.next=16;break;case 12:e.prev=12,e.t0=e.catch(6),console.log("extsc: error on external partner script load",i,e.t0),wt("DEVELOPER_ERROR",e.t0,"warning");case 16:case"end":return e.stop()}}),e,this,[[6,12]])})));return function(){return e.apply(this,arguments)}}(),KD=!1,qD=!1,VD=function(){return new Promise(function(){var e=t(d.mark((function e(t,n){var i,o,a,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!KD){e.next=4;break}return e.abrupt("return",t(qD));case 4:KD=!0;case 5:return e.next=7,zD();case 7:if((i=e.sent).enabled){e.next=10;break}return e.abrupt("return",t(!1));case 10:if(o=i.loadedFlag,!(a=i.loadedFlagCheck)||o){e.next=13;break}return e.abrupt("return",t(!1));case 13:if(a){e.next=16;break}return qD=!0,e.abrupt("return",t(!0));case 16:s=!0,setTimeout(function(){r(this,c),s&&(s=!1,KD=!0,t(!1))}.bind(this),5e3),u=setInterval(function(){r(this,c),s&&a&&window[o]?(s=!1,KD=!0,qD=!0,clearInterval(u),t(!0)):s||clearInterval(u)}.bind(this),100);case 19:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}())},WD=Pa,YD=au.find,QD=Vf,JD="find",XD=!0;JD in[]&&Array(1)[JD]((function(){XD=!1})),WD({target:"Array",proto:!0,forced:XD},{find:function(e){return YD(this,e,arguments.length>1?arguments[1]:void 0)}}),QD(JD);var eR=Pa,tR=Ng,rR=jt,nR=xr,iR=Ar,oR=Tv,aR=$b,sR=Io,uR=tR&&tR.prototype;if(eR({target:"Promise",proto:!0,real:!0,forced:!!tR&&rR((function(){uR.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=oR(this,nR("Promise")),r=iR(e);return this.then(r?function(r){return aR(t,e()).then((function(){return r}))}:e,r?function(r){return aR(t,e()).then((function(){throw r}))}:e)}}),iR(tR)){var cR=nR("Promise").prototype.finally;uR.finally!==cR&&sR(uR,"finally",cR,{unsafe:!0})}var dR=Ar,lR=yr,fR=Cp,pR=ii.f,hR=Ut,mR=Lt,vR=er,gR=Ea,AR=function(e,t,r){var n,i;return fR&&dR(n=t.constructor)&&n!==r&&lR(i=n.prototype)&&i!==r.prototype&&fR(e,i),e},bR=xi,yR=Qu,_R=Co.f,wR=kr,xR=Oy,kR=Ru,ER=bm,SR=$h,DR=function(e,t,r){r in e||pR(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},RR=Io,IR=jt,CR=An,OR=ao.enforce,TR=_v,PR=zh,MR=qh,LR=Tn("match"),BR=mR.RegExp,jR=BR.prototype,UR=mR.SyntaxError,FR=vR(jR.exec),NR=vR("".charAt),$R=vR("".replace),GR=vR("".indexOf),HR=vR("".slice),zR=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ZR=/a/g,KR=/a/g,qR=new BR(ZR)!==ZR,VR=SR.MISSED_STICKY,WR=SR.UNSUPPORTED_Y,YR=hR&&(!qR||VR||PR||MR||IR((function(){return KR[LR]=!1,BR(ZR)!==ZR||BR(KR)===KR||"/a/i"!==String(BR(ZR,"i"))})));if(gR("RegExp",YR)){for(var QR=function(e,t){var r,n,i,o,a,s,u=wR(jR,this),c=xR(e),d=void 0===t,l=[],f=e;if(!u&&c&&d&&e.constructor===QR)return e;if((c||wR(jR,e))&&(e=e.source,d&&(t=ER(f))),e=void 0===e?"":kR(e),t=void 0===t?"":kR(t),f=e,PR&&"dotAll"in ZR&&(n=!!t&&GR(t,"s")>-1)&&(t=$R(t,/s/g,"")),r=t,VR&&"sticky"in ZR&&(i=!!t&&GR(t,"y")>-1)&&WR&&(t=$R(t,/y/g,"")),MR&&(o=function(e){for(var t,r=e.length,n=0,i="",o=[],a=yR(null),s=!1,u=!1,c=0,d="";n<=r;n++){if("\\"===(t=NR(e,n)))t+=NR(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:FR(zR,HR(e,n+1))&&(n+=2,u=!0),i+=t,c++;continue;case">"===t&&u:if(""===d||CR(a,d))throw new UR("Invalid capture group name");a[d]=!0,o[o.length]=[d,c],u=!1,d="";continue}u?d+=t:i+=t}return[i,o]}(e),e=o[0],l=o[1]),a=AR(BR(e,t),u?this:jR,QR),(n||i||l.length)&&(s=OR(a),n&&(s.dotAll=!0,s.raw=QR(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=NR(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+NR(e,++n);return i}(e),r)),i&&(s.sticky=!0),l.length&&(s.groups=l)),e!==f)try{bR(a,"source",""===f?"(?:)":f)}catch(e){}return a},JR=_R(BR),XR=0;JR.length>XR;)DR(QR,BR,JR[XR++]);jR.constructor=QR,QR.prototype=jR,RR(mR,"RegExp",QR,{constructor:!0})}TR("RegExp");var eI="\t\n\v\f\r                 \u2028\u2029\ufeff",tI=pr,rI=Ru,nI=eI,iI=er("".replace),oI=RegExp("^["+nI+"]+"),aI=RegExp("(^|[^"+nI+"])["+nI+"]+$"),sI=function(e){return function(t){var r=rI(tI(t));return 1&e&&(r=iI(r,oI,"")),2&e&&(r=iI(r,aI,"$1")),r}},uI={start:sI(1),end:sI(2),trim:sI(3)},cI=Ci.PROPER,dI=jt,lI=eI,fI=uI.trim;Pa({target:"String",proto:!0,forced:function(e){return dI((function(){return!!lI[e]()||"​…᠎"!=="​…᠎"[e]()||cI&&lI[e].name!==e}))}("trim")},{trim:function(){return fI(this)}});var pI=Pa,hI=cr,mI=vr,vI=uu,gI=er([].join);pI({target:"Array",proto:!0,forced:hI!==Object||!vI("join",",")},{join:function(e){return gI(mI(this),void 0===e?",":e)}});var AI=au.map;Pa({target:"Array",proto:!0,forced:!bs("map")},{map:function(e){return AI(this,e,arguments.length>1?arguments[1]:void 0)}});var bI=Ut,yI=er,_I=Gt,wI=jt,xI=Bs,kI=oa,EI=Ht,SI=mn,DI=cr,RI=Object.assign,II=Object.defineProperty,CI=yI([].concat),OI=!RI||wI((function(){if(bI&&1!==RI({b:1},RI(II({},"a",{enumerable:!0,get:function(){II(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!==RI({},e)[r]||xI(RI({},t)).join("")!==n}))?function(e,t){for(var r=SI(e),n=arguments.length,i=1,o=kI.f,a=EI.f;n>i;)for(var s,u=DI(arguments[i++]),c=o?CI(xI(u),o(u)):xI(u),d=c.length,l=0;d>l;)s=c[l++],bI&&!_I(a,u,s)||(r[s]=u[s]);return r}:RI,TI=OI;Pa({target:"Object",stat:!0,arity:2,forced:Object.assign!==TI},{assign:TI});var PI=Ut,MI=jt,LI=er,BI=np,jI=Bs,UI=vr,FI=LI(Ht.f),NI=LI([].push),$I=PI&&MI((function(){var e=Object.create(null);return e[2]=2,!FI(e,2)})),GI=function(e){return function(t){for(var r,n=UI(t),i=jI(n),o=$I&&null===BI(n),a=i.length,s=0,u=[];a>s;)r=i[s++],PI&&!(o?r in n:FI(n,r))||NI(u,e?[r,n[r]]:n[r]);return u}},HI={entries:GI(!0),values:GI(!1)}.values;Pa({target:"Object",stat:!0},{values:function(e){return HI(e)}});var zI,ZI=er,KI=2147483647,qI=/[^\0-\u007E]/,VI=/[.\u3002\uFF0E\uFF61]/g,WI="Overflow: input needs wider integers to process",YI=RangeError,QI=ZI(VI.exec),JI=Math.floor,XI=String.fromCharCode,eC=ZI("".charCodeAt),tC=ZI([].join),rC=ZI([].push),nC=ZI("".replace),iC=ZI("".split),oC=ZI("".toLowerCase),aC=function(e){return e+22+75*(e<26)},sC=function(e,t,r){var n=0;for(e=r?JI(e/700):e>>1,e+=JI(e/t);e>455;)e=JI(e/35),n+=36;return JI(n+36*e/(e+38))},uC=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=eC(e,r++);if(i>=55296&&i<=56319&&r<n){var o=eC(e,r++);56320==(64512&o)?rC(t,((1023&i)<<10)+(1023&o)+65536):(rC(t,i),r--)}else rC(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&rC(t,XI(n));var u=t.length,c=u;for(u&&rC(t,"-");c<i;){var d=KI;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<d&&(d=n);var l=c+1;if(d-o>JI((KI-a)/l))throw new YI(WI);for(a+=(d-o)*l,o=d,r=0;r<e.length;r++){if((n=e[r])<o&&++a>KI)throw new YI(WI);if(n===o){for(var f=a,p=36;;){var h=p<=s?1:p>=s+26?26:p-s;if(f<h)break;var m=f-h,v=36-h;rC(t,XI(aC(h+m%v))),f=JI(m/v),p+=36}rC(t,XI(aC(f))),s=sC(a,l,c===u),a=0,c++}}a++,o++}return tC(t,"")},cC=Pa,dC=Ut,lC=V_,fC=Lt,pC=Js,hC=er,mC=Io,vC=sc,gC=kv,AC=An,bC=OI,yC=Pf,_C=Xu,wC=Fm.codeAt,xC=function(e){var t,r,n=[],i=iC(nC(oC(e),VI,"."),".");for(t=0;t<i.length;t++)r=i[t],rC(n,QI(qI,r)?"xn--"+uC(r):r);return tC(n,".")},kC=Ru,EC=wc,SC=Mv,DC=px,RC=ao,IC=RC.set,CC=RC.getterFor("URL"),OC=DC.URLSearchParams,TC=DC.getState,PC=fC.URL,MC=fC.TypeError,LC=fC.parseInt,BC=Math.floor,jC=Math.pow,UC=hC("".charAt),FC=hC(/./.exec),NC=hC([].join),$C=hC(1..toString),GC=hC([].pop),HC=hC([].push),zC=hC("".replace),ZC=hC([].shift),KC=hC("".split),qC=hC("".slice),VC=hC("".toLowerCase),WC=hC([].unshift),YC="Invalid scheme",QC="Invalid host",JC="Invalid port",XC=/[a-z]/i,eO=/[\d+-.a-z]/i,tO=/\d/,rO=/^0x/i,nO=/^[0-7]+$/,iO=/^\d+$/,oO=/^[\da-f]+$/i,aO=/[\0\t\n\r #%/:<>?@[\\\]^|]/,sO=/[\0\t\n\r #/:<>?@[\\\]^|]/,uO=/^[\u0000-\u0020]+/,cO=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,dO=/[\t\n\r]/g,lO=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)WC(t,e%256),e=BC(e/256);return NC(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=$C(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},fO={},pO=bC({},fO,{" ":1,'"':1,"<":1,">":1,"`":1}),hO=bC({},pO,{"#":1,"?":1,"{":1,"}":1}),mO=bC({},hO,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),vO=function(e,t){var r=wC(e,0);return r>32&&r<127&&!AC(t,e)?e:encodeURIComponent(e)},gO={ftp:21,file:null,http:80,https:443,ws:80,wss:443},AO=function(e,t){var r;return 2===e.length&&FC(XC,UC(e,0))&&(":"===(r=UC(e,1))||!t&&"|"===r)},bO=function(e){var t;return e.length>1&&AO(qC(e,0,2))&&(2===e.length||"/"===(t=UC(e,2))||"\\"===t||"?"===t||"#"===t)},yO=function(e){return"."===e||"%2e"===VC(e)},_O={},wO={},xO={},kO={},EO={},SO={},DO={},RO={},IO={},CO={},OO={},TO={},PO={},MO={},LO={},BO={},jO={},UO={},FO={},NO={},$O={},GO=function(e,t,r){var n,i,o,a=kC(e);if(t){if(i=this.parse(a))throw new MC(i);this.searchParams=null}else{if(void 0!==r&&(n=new GO(r,!0)),i=this.parse(a,null,n))throw new MC(i);(o=TC(new OC)).bindURL(this),this.searchParams=o}};GO.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,u=this,c=t||_O,d=0,l="",f=!1,p=!1,h=!1;for(e=kC(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=zC(e,uO,""),e=zC(e,cO,"$1")),e=zC(e,dO,""),n=yC(e);d<=n.length;){switch(i=n[d],c){case _O:if(!i||!FC(XC,i)){if(t)return YC;c=xO;continue}l+=VC(i),c=wO;break;case wO:if(i&&(FC(eO,i)||"+"===i||"-"===i||"."===i))l+=VC(i);else{if(":"!==i){if(t)return YC;l="",c=xO,d=0;continue}if(t&&(u.isSpecial()!==AC(gO,l)||"file"===l&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=l,t)return void(u.isSpecial()&&gO[u.scheme]===u.port&&(u.port=null));l="","file"===u.scheme?c=MO:u.isSpecial()&&r&&r.scheme===u.scheme?c=kO:u.isSpecial()?c=RO:"/"===n[d+1]?(c=EO,d++):(u.cannotBeABaseURL=!0,HC(u.path,""),c=FO)}break;case xO:if(!r||r.cannotBeABaseURL&&"#"!==i)return YC;if(r.cannotBeABaseURL&&"#"===i){u.scheme=r.scheme,u.path=_C(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=$O;break}c="file"===r.scheme?MO:SO;continue;case kO:if("/"!==i||"/"!==n[d+1]){c=SO;continue}c=IO,d++;break;case EO:if("/"===i){c=CO;break}c=UO;continue;case SO:if(u.scheme=r.scheme,i===zI)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=_C(r.path),u.query=r.query;else if("/"===i||"\\"===i&&u.isSpecial())c=DO;else if("?"===i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=_C(r.path),u.query="",c=NO;else{if("#"!==i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=_C(r.path),u.path.length--,c=UO;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=_C(r.path),u.query=r.query,u.fragment="",c=$O}break;case DO:if(!u.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=UO;continue}c=CO}else c=IO;break;case RO:if(c=IO,"/"!==i||"/"!==UC(l,d+1))continue;d++;break;case IO:if("/"!==i&&"\\"!==i){c=CO;continue}break;case CO:if("@"===i){f&&(l="%40"+l),f=!0,o=yC(l);for(var m=0;m<o.length;m++){var v=o[m];if(":"!==v||h){var g=vO(v,mO);h?u.password+=g:u.username+=g}else h=!0}l=""}else if(i===zI||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()){if(f&&""===l)return"Invalid authority";d-=yC(l).length+1,l="",c=OO}else l+=i;break;case OO:case TO:if(t&&"file"===u.scheme){c=BO;continue}if(":"!==i||p){if(i===zI||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()){if(u.isSpecial()&&""===l)return QC;if(t&&""===l&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(l))return a;if(l="",c=jO,t)return;continue}"["===i?p=!0:"]"===i&&(p=!1),l+=i}else{if(""===l)return QC;if(a=u.parseHost(l))return a;if(l="",c=PO,t===TO)return}break;case PO:if(!FC(tO,i)){if(i===zI||"/"===i||"?"===i||"#"===i||"\\"===i&&u.isSpecial()||t){if(""!==l){var A=LC(l,10);if(A>65535)return JC;u.port=u.isSpecial()&&A===gO[u.scheme]?null:A,l=""}if(t)return;c=jO;continue}return JC}l+=i;break;case MO:if(u.scheme="file","/"===i||"\\"===i)c=LO;else{if(!r||"file"!==r.scheme){c=UO;continue}switch(i){case zI:u.host=r.host,u.path=_C(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=_C(r.path),u.query="",c=NO;break;case"#":u.host=r.host,u.path=_C(r.path),u.query=r.query,u.fragment="",c=$O;break;default:bO(NC(_C(n,d),""))||(u.host=r.host,u.path=_C(r.path),u.shortenPath()),c=UO;continue}}break;case LO:if("/"===i||"\\"===i){c=BO;break}r&&"file"===r.scheme&&!bO(NC(_C(n,d),""))&&(AO(r.path[0],!0)?HC(u.path,r.path[0]):u.host=r.host),c=UO;continue;case BO:if(i===zI||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&AO(l))c=UO;else if(""===l){if(u.host="",t)return;c=jO}else{if(a=u.parseHost(l))return a;if("localhost"===u.host&&(u.host=""),t)return;l="",c=jO}continue}l+=i;break;case jO:if(u.isSpecial()){if(c=UO,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==zI&&(c=UO,"/"!==i))continue}else u.fragment="",c=$O;else u.query="",c=NO;break;case UO:if(i===zI||"/"===i||"\\"===i&&u.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(s=VC(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"===i||"\\"===i&&u.isSpecial()||HC(u.path,"")):yO(l)?"/"===i||"\\"===i&&u.isSpecial()||HC(u.path,""):("file"===u.scheme&&!u.path.length&&AO(l)&&(u.host&&(u.host=""),l=UC(l,0)+":"),HC(u.path,l)),l="","file"===u.scheme&&(i===zI||"?"===i||"#"===i))for(;u.path.length>1&&""===u.path[0];)ZC(u.path);"?"===i?(u.query="",c=NO):"#"===i&&(u.fragment="",c=$O)}else l+=vO(i,hO);break;case FO:"?"===i?(u.query="",c=NO):"#"===i?(u.fragment="",c=$O):i!==zI&&(u.path[0]+=vO(i,fO));break;case NO:t||"#"!==i?i!==zI&&("'"===i&&u.isSpecial()?u.query+="%27":u.query+="#"===i?"%23":vO(i,fO)):(u.fragment="",c=$O);break;case $O:i!==zI&&(u.fragment+=vO(i,pO))}d++}},parseHost:function(e){var t,r,n;if("["===UC(e,0)){if("]"!==UC(e,e.length-1))return QC;if(t=function(e){var t,r,n,i,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,d=null,l=0,f=function(){return UC(e,l)};if(":"===f()){if(":"!==UC(e,1))return;l+=2,d=++c}for(;f();){if(8===c)return;if(":"!==f()){for(t=r=0;r<4&&FC(oO,f());)t=16*t+LC(f(),16),l++,r++;if("."===f()){if(0===r)return;if(l-=r,c>6)return;for(n=0;f();){if(i=null,n>0){if(!("."===f()&&n<4))return;l++}if(!FC(tO,f()))return;for(;FC(tO,f());){if(o=LC(f(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;l++}u[c]=256*u[c]+i,2!=++n&&4!==n||c++}if(4!==n)return;break}if(":"===f()){if(l++,!f())return}else if(f())return;u[c++]=t}else{if(null!==d)return;l++,d=++c}}if(null!==d)for(a=c-d,c=7;0!==c&&a>0;)s=u[c],u[c--]=u[d+a-1],u[d+--a]=s;else if(8!==c)return;return u}(qC(e,1,-1)),!t)return QC;this.host=t}else if(this.isSpecial()){if(e=xC(e),FC(aO,e))return QC;if(t=function(e){var t,r,n,i,o,a,s,u=KC(e,".");if(u.length&&""===u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(i=u[n]))return e;if(o=10,i.length>1&&"0"===UC(i,0)&&(o=FC(rO,i)?16:8,i=qC(i,8===o?1:2)),""===i)a=0;else{if(!FC(10===o?iO:8===o?nO:oO,i))return e;a=LC(i,o)}HC(r,a)}for(n=0;n<t;n++)if(a=r[n],n===t-1){if(a>=jC(256,5-t))return null}else if(a>255)return null;for(s=GC(r),n=0;n<r.length;n++)s+=r[n]*jC(256,3-n);return s}(e),null===t)return QC;this.host=t}else{if(FC(sO,e))return QC;for(t="",r=yC(e),n=0;n<r.length;n++)t+=vO(r[n],fO);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return AC(gO,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&AO(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=lO(i),null!==o&&(c+=":"+o)):"file"===t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+NC(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw new MC(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new HO(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+lO(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(kC(e)+":",_O)},getUsername:function(){return this.username},setUsername:function(e){var t=yC(kC(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=vO(t[r],mO)}},getPassword:function(){return this.password},setPassword:function(e){var t=yC(kC(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=vO(t[r],mO)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?lO(e):lO(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,OO)},getHostname:function(){var e=this.host;return null===e?"":lO(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,TO)},getPort:function(){var e=this.port;return null===e?"":kC(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=kC(e))?this.port=null:this.parse(e,PO))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+NC(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,jO))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=kC(e))?this.query=null:("?"===UC(e,0)&&(e=qC(e,1)),this.query="",this.parse(e,NO)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=kC(e))?("#"===UC(e,0)&&(e=qC(e,1)),this.fragment="",this.parse(e,$O)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var HO=function(e){var t=gC(this,zO),r=SC(arguments.length,1)>1?arguments[1]:void 0,n=IC(t,new GO(e,!1,r));dC||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},zO=HO.prototype,ZO=function(e,t){return{get:function(){return CC(this)[e]()},set:t&&function(e){return CC(this)[t](e)},configurable:!0,enumerable:!0}};if(dC&&(vC(zO,"href",ZO("serialize","setHref")),vC(zO,"origin",ZO("getOrigin")),vC(zO,"protocol",ZO("getProtocol","setProtocol")),vC(zO,"username",ZO("getUsername","setUsername")),vC(zO,"password",ZO("getPassword","setPassword")),vC(zO,"host",ZO("getHost","setHost")),vC(zO,"hostname",ZO("getHostname","setHostname")),vC(zO,"port",ZO("getPort","setPort")),vC(zO,"pathname",ZO("getPathname","setPathname")),vC(zO,"search",ZO("getSearch","setSearch")),vC(zO,"searchParams",ZO("getSearchParams")),vC(zO,"hash",ZO("getHash","setHash"))),mC(zO,"toJSON",(function(){return CC(this).serialize()}),{enumerable:!0}),mC(zO,"toString",(function(){return CC(this).serialize()}),{enumerable:!0}),PC){var KO=PC.createObjectURL,qO=PC.revokeObjectURL;KO&&mC(HO,"createObjectURL",pC(KO,PC)),qO&&mC(HO,"revokeObjectURL",pC(qO,PC))}EC(HO,"URL"),cC({global:!0,constructor:!0,forced:!lC,sham:!dC},{URL:HO});var VO=Gt;Pa({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return VO(URL.prototype.toString,this)}});var WO=function(){return M((function e(t){O(this,e),this.gameData=t,this.customParamKeys=["vid","_1ld","_1lp"]}),[{key:"_getFakeCustomParams",value:function(){var e={_vid:["bla_bla1","bla_bla2","bla_bla3"],_1ld:["1ld_1","1ld_2","1ld_3","1ld_4"],_1lp:["1lp_1","1lp_2"]},t={};for(var r in e){var n=e[r];t[r]=n[Math.floor(Math.random()*n.length)]}return t}},{key:"checkCustomParams",value:function(){var e=this;try{var t={},n=this.gameData.diagnostic&&this.gameData.diagnostic.cp&&this.gameData.diagnostic.cp.enabled,i=new C(location.href,!0);for(var o in i.query)t[o]=i.query[o];var a=Object.keys(t).filter(function(t){var n=this;return r(this,e),this.customParamKeys.some(function(e){return r(this,n),e===t}.bind(this))}.bind(this));return a.length>0||n?(console.log("custom-params",t,n),t):void console.log("custom-params, none")}catch(e){console.log("_checkCustomParams.Error",e)}}}])}(),YO=function(){return M((function e(t,r){O(this,e),this.adContainer=t,this.onResume=r}),[{key:"show",value:function(){this.adResumeButton.style.display="block",this.adResumeButtonOverlay.style.display="block"}},{key:"hide",value:function(){this.adResumeButton.style.display="none",this.adResumeButtonOverlay.style.display="none"}},{key:"add",value:function(){var e=this;try{var t=document.createElement("div");this.adResumeButton=t,t.id="gd__resume__button",t.setAttribute("title","Resume"),this.addStyles(),t.classList.add("gd__resume__button"),t.addEventListener("click",function(){r(this,e),this.onResume()}.bind(this)),this.adContainer.appendChild(t);var n=document.createElement("div");this.adResumeButtonOverlay=n,n.id="gd__resume__button__overlay",n.classList.add("gd__resume__button__overlay"),this.adContainer.appendChild(n)}catch(e){console.log("Resume button add error",e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__resume__button__style",e,'\n .gd__resume__button{\n background-image: url("https://img.gamedistribution.com/play-black.svg");\n background-color:white; \n width: 120px;\n height: 120px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(50% - 60px);\n left: calc(50% - 60px);\n margin: 0;\n border-radius: 50%;\n border: 2px solid white;\n animation: play-button 1s ease-in-out infinite alternate;\n -webkit-animation: play-button 1s ease-in-out infinite alternate;\n }\n \n .gd__resume__button__overlay {\n position: fixed;\n display: none;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0,0,0,0.5);\n z-index: 1999;\n cursor: pointer;\n }\n @keyframes play-button {\n 0% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n 100% {\n transform: scale(1.1);\n -webkit-transform: scale(1.1);\n }\n }\n .gd__resume__button:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }\n ')}},{key:"addStylesheet",value:function(e,t,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}])}(),QO=function(){return M((function e(t,r){O(this,e),this.adContainer=t,this.onResume=r}),[{key:"show",value:function(){this.rewardLabel.style.display="block"}},{key:"hide",value:function(){this.rewardLabel.style.display="none"}},{key:"add",value:function(){try{var e=document.createElement("div");this.rewardLabel=e;var t=document.createElement("span");t.innerText="To receive the reward, please do not skip the ad",this.addStyles(),e.classList.add("gd__reward__label"),t.classList.add("gd__reward__span"),this.rewardLabel.appendChild(t),this.adContainer.appendChild(e)}catch(e){console.log(e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__reward__label__style",e,"\n .gd__reward__label{\n background-color:black; \n width: 160px;\n // height: 35px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n bottom: 40px;\n left: 10px;\n margin: 0;\n border-radius: 5px;\n border: .5px solid gray;\n text-align: center;\n }\n .gd__reward__label:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }\n .gd__reward__span{\n color: white;\n font-size: 12px;\n padding-left: 5px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ")}},{key:"addStylesheet",value:function(e,t,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}])}(),JO=function(){return M((function e(t,r,n){O(this,e),this.adContainer=t,this.onResume=r,this.OnSkip=n}),[{key:"show",value:function(){this.skipAd.style.display="block"}},{key:"hide",value:function(){this.skipAd.style.display="none"}},{key:"add",value:function(){var e=this;try{var t=document.createElement("div");this.skipAd=t;var n=document.createElement("span");n.innerText="Skip Ad >>",this.addStyles(),t.classList.add("gd__skip__ad"),n.classList.add("gd__skip__span"),this.skipAd.appendChild(n),this.adContainer.appendChild(t),this.skipAd.addEventListener("click",function(){r(this,e),this.OnSkip()}.bind(this))}catch(e){console.log(e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__skip__ad__style",e,"\n .gd__skip__ad{\n background-color:black; \n width: 260px;\n // height: 35px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n bottom: 40px;\n right: 0px;\n margin: 0;\n border-radius: 5px;\n border: .5px solid gray;\n text-align: center;\n padding: 10px;\n }\n .gd__skip__ad:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }\n .gd__skip__span{\n color: white;\n font-size: 22px;\n padding-left: 5px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ")}},{key:"addStylesheet",value:function(e,t,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}])}(),XO=function(){return M((function e(t){O(this,e),this.adContainer=t}),[{key:"show",value:function(){this.audioLabel.style.display="block"}},{key:"hide",value:function(){this.audioLabel.style.display="none"}},{key:"mute",value:function(){document.getElementById("game").contentWindow.postMessage("mute","*")}},{key:"unmute",value:function(){document.getElementById("game").contentWindow.postMessage("unmute","*")}},{key:"add",value:function(){try{var e=document.createElement("div");this.audioLabel=e;var t=document.createElement("span");t.innerText="Audio Ad is Playing";var r=document.createElement("span");r.innerHTML="&#9432;",this.addStyles(),e.classList.add("gd__audio__label"),t.classList.add("gd__audio__span"),r.classList.add("gd__audio__span"),this.audioLabel.appendChild(r),this.audioLabel.appendChild(t),this.adContainer.appendChild(e)}catch(e){console.log(e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__audio__label__style",e,"\n .gd__audio__label{\n background-color: #ffca00; \n width: 200px;\n position: relative;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: 0px;\n margin: 0 auto;\n border-radius: 0px;\n border: 0px;\n text-align: center;\n height: 30px;\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n padding: 5px;\n }\n .gd__audio__span{\n color: black;\n font-size: 14px;\n padding-left: 5px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ")}},{key:"addStylesheet",value:function(e,t,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}])}(),eT=function(){return M((function e(t){O(this,e),this.adContainer=t}),[{key:"show",value:function(){this.t4rButton.style.display="block"}},{key:"hide",value:function(){this.t4rButton.style.display="none"}},{key:"add",value:function(){try{var e=document.createElement("div"),t=document.createElement("p");this.addStyles(),t.innerText="x",e.appendChild(t),e.id="gd__exit__button",e.setAttribute("title","Exit"),e.classList.add("gd__exit__button"),this.t4rButton=e,document.body.appendChild(e)}catch(e){console.log("Exit button add error",e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__exit__button__style",e,"\n .gd__exit__button{\n background-color: transparent; \n width: 50px;\n height: 50px;\n position: absolute;\n pointer-events:none; \n z-index: 2000;\n top: 17px;\n right: 17px;\n margin: 0;\n border-radius: 50px;\n border: 1px solid white;\n text-align: center; \n font-size: 16px;\n line-height: normal;\n font-family: 'Arial';\n font-weight: bolder;\n }\n .gd__exit__button:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }")}},{key:"addStylesheet",value:function(e,t,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}])}(),tT=new Blob([new Uint8Array([255,227,24,196,0,0,0,3,72,1,64,0,0,4,132,16,31,227,192,225,76,255,67,12,255,221,27,255,228,97,73,63,255,195,131,69,192,232,223,255,255,207,102,239,255,255,255,101,158,206,70,20,59,255,254,95,70,149,66,4,16,128,0,2,2,32,240,138,255,36,106,183,255,227,24,196,59,11,34,62,80,49,135,40,0,253,29,191,209,200,141,71,7,255,252,152,74,15,130,33,185,6,63,255,252,195,70,203,86,53,15,255,255,247,103,76,121,64,32,47,255,34,227,194,209,138,76,65,77,69,51,46,57,55,170,170,170,170,170,170,170,170,170,170,255,227,24,196,73,13,153,210,100,81,135,56,0,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170])],{type:"audio/mpeg"}),rT=new Blob([new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0,0,0,1,15,109,105,110,102,0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49])],{type:"video/mp4"});function nT(e){return Object.assign({muted:!1,timeout:250,inline:!1},e)}function iT(e,t){var r=e.muted,n=e.timeout,i=e.inline,o=t(),a=o.element,s=o.source,u=void 0,c=void 0,d=void 0;return a.muted=r,!0===r&&a.setAttribute("muted","muted"),!0===i&&a.setAttribute("playsinline","playsinline"),a.src=s,new Promise((function(e){u=a.play(),c=setTimeout((function(){d(!1,new Error("Timeout "+n+" ms has been reached"))}),n),d=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;a.remove(),a.srcObject=null,clearTimeout(c),e({result:t,error:r})},void 0!==u?u.then((function(){return d(!0)})).catch((function(e){return d(!1,e)})):d(!0)}))}var oT={audio:function(e){return iT(e=nT(e),(function(){return{element:document.createElement("audio"),source:URL.createObjectURL(tT)}}))},video:function(e){return iT(e=nT(e),(function(){return{element:document.createElement("video"),source:URL.createObjectURL(rT)}}))}},aT={exports:{}};!function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",c="[object Null]",d="[object Object]",l="[object Proxy]",f="[object Undefined]",p=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[o]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m[s]=m["[object Map]"]=m["[object Number]"]=m[d]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;var v="object"==typeof i&&i&&i.Object===Object&&i,g="object"==typeof self&&self&&self.Object===Object&&self,A=v||g||Function("return this")(),b=t&&!t.nodeType&&t,y=b&&e&&!e.nodeType&&e,_=y&&y.exports===b,w=_&&v.process,x=function(){try{var e=y&&y.require&&y.require("util").types;return e||w&&w.binding&&w.binding("util")}catch(e){}}(),k=x&&x.isTypedArray;var E,S,D=Array.prototype,R=Function.prototype,I=Object.prototype,C=A["__core-js_shared__"],O=R.toString,T=I.hasOwnProperty,P=function(){var e=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),M=I.toString,L=O.call(Object),B=RegExp("^"+O.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=_?A.Buffer:void 0,U=A.Symbol,F=A.Uint8Array,N=j?j.allocUnsafe:void 0,$=(E=Object.getPrototypeOf,S=Object,function(e){return E(S(e))}),G=Object.create,H=I.propertyIsEnumerable,z=D.splice,Z=U?U.toStringTag:void 0,K=function(){try{var e=Ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),q=j?j.isBuffer:void 0,V=Math.max,W=Date.now,Y=Ae(A,"Map"),Q=Ae(Object,"create"),J=function(){function e(){}return function(t){if(!Ce(t))return{};if(G)return G(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function X(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ee(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function te(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function re(e){var t=this.__data__=new ee(e);this.size=t.size}function ne(e,t){var r=Ee(e),n=!r&&ke(e),i=!r&&!n&&De(e),o=!r&&!n&&!i&&Te(e),a=r||n||i||o,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],u=s.length;for(var c in e)!t&&!T.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||be(c,u))||s.push(c);return s}function ie(e,t,r){(void 0!==r&&!xe(e[t],r)||void 0===r&&!(t in e))&&se(e,t,r)}function oe(e,t,r){var n=e[t];T.call(e,t)&&xe(n,r)&&(void 0!==r||t in e)||se(e,t,r)}function ae(e,t){for(var r=e.length;r--;)if(xe(e[r][0],t))return r;return-1}function se(e,t,r){"__proto__"==t&&K?K(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}X.prototype.clear=function(){this.__data__=Q?Q(null):{},this.size=0},X.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},X.prototype.get=function(e){var t=this.__data__;if(Q){var n=t[e];return n===r?void 0:n}return T.call(t,e)?t[e]:void 0},X.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:T.call(t,e)},X.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Q&&void 0===t?r:t,this},ee.prototype.clear=function(){this.__data__=[],this.size=0},ee.prototype.delete=function(e){var t=this.__data__,r=ae(t,e);return!(r<0)&&(r==t.length-1?t.pop():z.call(t,r,1),--this.size,!0)},ee.prototype.get=function(e){var t=this.__data__,r=ae(t,e);return r<0?void 0:t[r][1]},ee.prototype.has=function(e){return ae(this.__data__,e)>-1},ee.prototype.set=function(e,t){var r=this.__data__,n=ae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(Y||ee),string:new X}},te.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return ge(this,e).get(e)},te.prototype.has=function(e){return ge(this,e).has(e)},te.prototype.set=function(e,t){var r=ge(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},re.prototype.clear=function(){this.__data__=new ee,this.size=0},re.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},re.prototype.get=function(e){return this.__data__.get(e)},re.prototype.has=function(e){return this.__data__.has(e)},re.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ee){var n=r.__data__;if(!Y||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new te(n)}return r.set(e,t),this.size=r.size,this};var ue,ce=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[ue?a:++n];if(!1===t(i[s],s,i))break}return e};function de(e){return null==e?void 0===e?f:c:Z&&Z in Object(e)?function(e){var t=T.call(e,Z),r=e[Z];try{e[Z]=void 0;var n=!0}catch(e){}var i=M.call(e);n&&(t?e[Z]=r:delete e[Z]);return i}(e):function(e){return M.call(e)}(e)}function le(e){return Oe(e)&&de(e)==o}function fe(e){return!(!Ce(e)||function(e){return!!P&&P in e}(e))&&(Re(e)?B:p).test(function(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function pe(e){if(!Ce(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ye(e),r=[];for(var n in e)("constructor"!=n||!t&&T.call(e,n))&&r.push(n);return r}function he(e,t,r,n,i){e!==t&&ce(t,(function(o,a){if(i||(i=new re),Ce(o))!function(e,t,r,n,i,o,a){var s=_e(e,r),u=_e(t,r),c=a.get(u);if(c)return void ie(e,r,c);var l=o?o(s,u,r+"",e,t,a):void 0,f=void 0===l;if(f){var p=Ee(u),h=!p&&De(u),m=!p&&!h&&Te(u);l=u,p||h||m?Ee(s)?l=s:Oe(y=s)&&Se(y)?l=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r<n;)t[r]=e[r];return t}(s):h?(f=!1,l=function(e,t){if(t)return e.slice();var r=e.length,n=N?N(r):new e.constructor(r);return e.copy(n),n}(u,!0)):m?(f=!1,v=u,g=!0?(A=v.buffer,b=new A.constructor(A.byteLength),new F(b).set(new F(A)),b):v.buffer,l=new v.constructor(g,v.byteOffset,v.length)):l=[]:function(e){if(!Oe(e)||de(e)!=d)return!1;var t=$(e);if(null===t)return!0;var r=T.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&O.call(r)==L}(u)||ke(u)?(l=s,ke(s)?l=function(e){return function(e,t,r,n){var i=!r;r||(r={});var o=-1,a=t.length;for(;++o<a;){var s=t[o],u=n?n(r[s],e[s],s,r,e):void 0;void 0===u&&(u=e[s]),i?se(r,s,u):oe(r,s,u)}return r}(e,Pe(e))}(s):Ce(s)&&!Re(s)||(l=function(e){return"function"!=typeof e.constructor||ye(e)?{}:J($(e))}(u))):f=!1}var v,g,A,b;var y;f&&(a.set(u,l),i(l,u,n,o,a),a.delete(u));ie(e,r,l)}(e,t,a,r,he,n,i);else{var s=n?n(_e(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),ie(e,a,s)}}),Pe)}function me(e,t){return we(function(e,t,r){return t=V(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=V(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,s)}}(e,t,Be),e+"")}var ve=K?function(e,t){return K(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Be;function ge(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function Ae(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return fe(r)?r:void 0}function be(e,t){var r=typeof e;return!!(t=null==t?n:t)&&("number"==r||"symbol"!=r&&h.test(e))&&e>-1&&e%1==0&&e<t}function ye(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||I)}function _e(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var we=function(e){var t=0,r=0;return function(){var n=W(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ve);function xe(e,t){return e===t||e!=e&&t!=t}var ke=le(function(){return arguments}())?le:function(e){return Oe(e)&&T.call(e,"callee")&&!H.call(e,"callee")},Ee=Array.isArray;function Se(e){return null!=e&&Ie(e.length)&&!Re(e)}var De=q||function(){return!1};function Re(e){if(!Ce(e))return!1;var t=de(e);return t==s||t==u||t==a||t==l}function Ie(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function Ce(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Oe(e){return null!=e&&"object"==typeof e}var Te=k?function(e){return function(t){return e(t)}}(k):function(e){return Oe(e)&&Ie(e.length)&&!!m[de(e)]};function Pe(e){return Se(e)?ne(e,!0):pe(e)}var Me,Le=(Me=function(e,t,r){he(e,t,r)},me((function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=Me.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!Ce(r))return!1;var n=typeof t;return!!("number"==n?Se(r)&&be(t,r.length):"string"==n&&t in r)&&xe(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r<n;){var a=t[r];a&&Me(e,a,r,i)}return e})));function Be(e){return e}e.exports=Le}(aT,aT.exports);var sT=aT.exports;function uT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uT(Object(r),!0).forEach((function(t){Eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uT(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dT(e){return null!=e&&e.error_url?"<vmap:VASTAdData>".concat(function(e){return e.promo_url?'<VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():e.fallback_url?'<VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():'<VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper>\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,"]]></VASTAdTagURI>\n </Wrapper>\n </Ad>\n </VAST>").trim()}(e),"</vmap:VASTAdData>"):'<vmap:AdTagURI templateType="vast3"><![CDATA['.concat(null==e?void 0:e.adtag_url,"]]></vmap:AdTagURI>")}var lT,fT="13998",pT="_cc".concat(fT),hT=["https://tags.crwdcntrl.net/c/".concat(fT,"/cc.js?ns=").concat(pT)],mT=function(){return!!lT&&"function"==typeof lT.bcpf&&"function"==typeof lT.add},vT=function(e,t){try{if(!mT())return;lT.add(e,t),_u("lotame add success ".concat(e," ").concat(t))}catch(e){_u("lotame add error",err)}},gT=function(e,t){try{if(!mT())return;lT.bcpw(e,t),_u("lotame send success ".concat(e," ").concat(t))}catch(e){}},AT=function(e){var t=this;try{vT("act","play"),vT("med","game"),"complete"===document.readyState?lT.bcpf():lT.bcp(),e.tags.forEach(function(e){r(this,t),gT("int","tags : ".concat(e.title.toLowerCase()))}.bind(this)),gT("int","category : ".concat(e.category.toLowerCase()))}catch(e){}},bT=function(){window.addEventListener("load",(function(){PD.once("game-data-ready",function(){var e=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=1,e.t0=null!=Xy&&Xy.noLotamePageView,!e.t0){e.next=7;break}return e.next=6,$D();case 6:e.t0=e.sent;case 7:if(!e.t0){e.next=10;break}return e.abrupt("return");case 10:if(null!==(r=t.lotm)&&void 0!==r&&r.enabled){e.next=13;break}return e.abrupt("return");case 13:return e.next=16,ht(hT[0],"LOTCC_".concat(fT),{alternates:hT});case 16:"object"===n(window[pT])&&(lT=window[pT]),mT()&&AT(t),e.next=23;break;case 20:e.prev=20,e.t1=e.catch(1),_u("lotame init error",e.t1);case 23:case"end":return e.stop()}}),e,null,[[1,20]])})));return function(t){return e.apply(this,arguments)}}())}))},yT=function(){gT("genp","ad video"),gT("act","ad impression")},_T=function(){gT("act","ad skipped")},wT=function(){gT("act","ad click")},xT=function(){gT("act","ad complete")},kT=function(){var e=(new iD).get("partner.url.value"),t=new C(e,!0),r={isRevisionTest:!1,useTestAds:!1,disableMidrolltimer:!1};if("revision.gamedistribution.com"===t.host){var n=t.query.test,i="1"===n||"2"===n,o="1"===n;r={useTestAds:i,disableMidrolltimer:o,isRevisionTest:o||i}}return r},ET=function(){return M((function e(){O(this,e),this.adContainer=window.document.body}),[{key:"show",value:function(e){this.adSpinner.style.display="block",this.adSpinnerOverlay.style.display="block",e?(this.adSpinner.style.display="block",this.adSpinnerFail.style.display="none",this.adSpinnerButton.style.display="none"):(this.adSpinner.style.display="none",this.adSpinnerFail.style.display="block",this.adSpinnerButton.style.display="block")}},{key:"hide",value:function(){this.adSpinner.style.display="none",this.adSpinnerOverlay.style.display="none"}},{key:"add",value:function(){var e=this;try{this.addStyles();var t=document.createElement("div");t.id="gd__spinner",t.setAttribute("title","Spinner"),t.classList.add("gd__spinner"),this.adSpinner=t;var n=document.createElement("div");n.id="gd__spinner__fail",n.setAttribute("title","Spinner"),n.classList.add("gd__spinner__fail"),n.innerHTML="No Ads Available!",this.adSpinnerFail=n;var i=document.createElement("div");i.id="gd__spinner__button",i.setAttribute("title","Spinner"),i.classList.add("gd__spinner__button"),i.onclick=function(){r(this,e),this.hide()}.bind(this);var o=document.createElement("p");o.innerText="OK!",i.appendChild(o),this.adSpinnerButton=i;var a=document.createElement("div");a.id="gd__spinner__logo",a.setAttribute("title","Spinner"),a.classList.add("gd__spinner__logo"),this.adSpinnerLogo=a;var s=document.createElement("div");s.id="gd__spinner__container",s.classList.add("gd__spinner__container"),s.appendChild(this.adSpinner),s.appendChild(this.adSpinnerFail),s.appendChild(this.adSpinnerButton),s.appendChild(this.adSpinnerLogo),this.adSpinnerContainer=s;var u=document.createElement("div");u.id="gd__spinner__overlay",u.classList.add("gd__spinner__overlay"),u.appendChild(this.adSpinnerContainer),this.adSpinnerOverlay=u,this.adContainer.appendChild(this.adSpinnerOverlay)}catch(e){console.log("Spinner error",e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__spinner__style",e,'\n .gd__spinner__button{ \n text-align: center; \n width: 150px;\n height: 50px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(80% - 25px);\n left: calc(50% - 75px);\n margin: 0;\n font-size: large;\n font-family: monospace;\n background-color: #ff8c1c;\n border-radius: 50px;\n color: white;\n }\n\n .gd__spinner__fail{\n text-align: center; \n width: 300px;\n height: 50px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(65% - 25px);\n left: calc(50% - 150px);\n margin: 0;\n font-size: large;\n font-family: monospace;\n color: #ff8c1c;\n }\n\n .gd__spinner__logo{\n background: url("https://static.gamedistribution.com/android-chrome-192x192.png") no-repeat;\n background-size: cover; \n width: 100px;\n height: 100px;\n position: absolute;\n display: block;\n z-index: 2000;\n cursor: pointer;\n top: calc(30% - 50px);\n left: calc(50% - 50px);\n margin: 0;\n border-radius: 50%;\n }\n\n .gd__spinner__container{ \n background-color: black; \n width: 300px;\n height: 300px;\n position: absolute;\n z-index: 2000;\n cursor: pointer;\n top: calc(50% - 150px);\n left: calc(50% - 150px);\n margin: 0;\n border-radius: 20px;\n border: 2px solid #06b8a2;\n }\n\n\n .gd__spinner{\n background: url("https://static.gamedistribution.com/assets/loader.gif") no-repeat;\n background-size: cover; \n width: 50px;\n height: 50px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(80% - 25px);\n left: calc(50% - 25px);\n margin: 0;\n border-radius: 50%;\n }\n \n .gd__spinner__overlay {\n position: fixed;\n display: none;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0,0,0,0.5);\n z-index: 1999;\n cursor: pointer;\n }\n ')}},{key:"addStylesheet",value:function(e,t,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}])}();function ST(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function DT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ST(Object(r),!0).forEach((function(t){Eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ST(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var RT=new uD.exports.EventEmitter,IT=null,CT=function(){return M((function e(t,n,i){var o=this;if(O(this,e),IT)return IT;IT=this;var a={debug:!1,width:640,height:360,locale:"en"};this.options=n?at(a,n):a,this.prefix="gdsdk__",this.adsLoader=null,this.adsManager=null,this.adDisplayContainer=null,this.eventBus=new It,this.safetyTimer=null,this.containerTransitionSpeed=0,this.adCounter={},this.adPrerollCount=0,this.adMidrollCount=0,this.adRewardedCount=0,this.preloadedAdType=null,this.requestRunning=!1,this.parentDomain=i.parentDomain,this.topDomain=i.topDomain,this.parentURL=i.parentURL,this.adDisplayContainerInitialized=!1,this.IMASampleTags={interstitial:["https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=","https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dredirectlinear&correlator=","https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dredirecterror&correlator="],rewarded:["https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator="]},this.atom_display,this.adType_="",this.rewardGuarantied=!1,this.clickCount={midroll:0,preroll:0,rewarded:0},this.userAllowedPersonalizedAds=document.location.search.indexOf("gdpr-targeting=0")>=0||document.cookie.indexOf("ogdpr_advertisement=0")>=0?"0":"1",this.parentDomain.includes("girlsgogames")&&(this.userAllowedPersonalizedAds=!1),this.thirdPartyContainer=""!==t?document.getElementById(t):null,this.options.width="number"==typeof this.options.width?this.options.width:"100%"===this.options.width?640:this.options.width.replace(/[^0-9]/g,""),this.options.height="number"==typeof this.options.height?this.options.height:"100%"===this.options.height?360:this.options.height.replace(/[^0-9]/g,"");var s=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.options.width=this.thirdPartyContainer?this.thirdPartyContainer.offsetWidth:s,this.options.height=this.thirdPartyContainer?this.thirdPartyContainer.offsetHeight:u,this.category="",this.tags=[],this.eventCategory="AD",this.eventBus.subscribe("LOADED",function(){r(this,o),this._clearSafetyTimer("LOADED"),this._startSafetyTimer(8e3,"LOADED")}.bind(this),"ima"),this.eventBus.subscribe("STARTED",function(){r(this,o),this._clearSafetyTimer("STARTED")}.bind(this),"ima")}),[{key:"start",value:(T=t(d.mark((function e(){var n,i,o,a=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.adSystemInitialize(t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a._init_afg_script({});case 2:case"end":return e.stop()}}),e)}))));case 3:return n=e.sent,this.afgInitSuccess=n.success,e.next=7,this.adSystemInitialize(t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a._init_hl_script();case 2:return e.next=4,a._init_ima_script();case 4:a._createPlayer(),a._setUpIMA();case 6:case"end":return e.stop()}}),e)}))));case 7:if(i=e.sent,this.imaInitSuccess=i.success,o=[],this.afgInitSuccess||o.push(n.error),this.imaInitSuccess||o.push(i.error),!(o.length>0)){e.next=14;break}throw o[0];case 14:window.eventTest=function(e){r(this,a),this._broadcast(e,{message:"",status:"success"})}.bind(this),e.next=21;break;case 17:throw e.prev=17,e.t0=e.catch(0),xu("gd-adflow error on ads.start",e.t0),new Error(e.t0);case 21:case"end":return e.stop()}}),e,this,[[0,17]])}))),function(){return T.apply(this,arguments)})},{key:"adSystemInitialize",value:(I=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={success:!1},e.prev=1,e.next=4,t();case 4:r.success=!0,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),r.error=e.t0;case 10:return e.abrupt("return",r);case 12:case"end":return e.stop()}}),e,null,[[1,7]])}))),function(e){return I.apply(this,arguments)})},{key:"_getDefaultSpilAdapterConfig",value:function(){return{vast:null,url:"https://pubads.g.doubleclick.net/gampad/ads",query:{correlator:"{{CACHEBUSTER}}",description_url:"{{PAGE_URL}}",env:"vp",gdfp_req:1,impl:"s",iu:"/59392726/gd_instream",npa:0,output:"vast",sz:"640x480|400x300",tfcd:0,unviewed_position_start:1}}}},{key:"_getSpilUrl",value:(R=t(d.mark((function e(t){var r,n,i,o,a,s,u,c,l,f,p;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.adType,n=t.options,e.prev=1,o=null===(i=this.gameData.adflw)||void 0===i||null===(i=i.adapterConfig)||void 0===i?void 0:i.spil,a=this.nextAdPosition(r),e.next=6,this._create_dp_context(a,n);case 6:return s=e.sent,o?(_u("spil-adaptor: in _getSpilUrl, adType, adPosition, gamedata",r,a,this.gameData),u=o[a]||o.default||this._getDefaultSpilAdapterConfig()):u=this._getDefaultSpilAdapterConfig(),c=100*s.floor_price,_u("spil-adaptor: fp",s.floor_price),l=this._createCustomAdVastUrl(u,{tnl_keys:{floor_price:c}}),f=l.url,p={url:f,dp:s,hl:{bidFloorApplied:!0}},e.abrupt("return",p);case 17:e.prev=17,e.t0=e.catch(1),console.log("spil-adaptor: Error on getting spil",e.t0);case 20:case"end":return e.stop()}}),e,this,[[1,17]])}))),function(e){return R.apply(this,arguments)})},{key:"_getAdVast",value:function(e,n){var i=this;return new Promise(function(){var o=t(d.mark((function t(o){var a,s,u,c,l,f,p,h,m=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(bt.available&&bt.getBoolean("gd_debug_ex")&&bt.getBoolean("gd_tag")||kT().useTestAds)){t.next=6;break}return a=i.IMASampleTags[e],s=Math.floor(Math.random()*a.length),u=a[s],o({url:u,tnl_keys:{tnl_ad_pos:null==n?void 0:n.adTypeFound}}),t.abrupt("return");case 6:if("spil"!==n.adapter){t.next=8;break}return t.abrupt("return",o(i._getSpilUrl({adType:e,options:n})));case 8:if(void 0!==window.idhb.requestAds){t.next=10;break}throw new Error("Prebid.js wrapper script hit an error or didn't exist!");case 10:return t.prev=10,c=i.nextAdPosition(e),null!=n&&n.adTypeFound&&(c=null==n?void 0:n.adTypeFound),i._broadcast("AD_REQUEST",{message:c}),l=i.options,"preroll"===c&&U(l.preroll)?l=l.preroll:"midroll"===c&&U(l.midroll)?l=l.midroll:"rewarded"===c&&U(l.rewarded)&&(l=l.rewarded),f="","audio"===n.adapter||"audio"===n.giftType?(i.isAudioAd=!0,f="midrollaudio"):(i.isAudioAd=!1,f="rewarded"===c?"rewardedVideo":"gdbanner"===c?"gd__banner":"midroll"===c?"midroll":"video1"),t.next=20,window.idhb.isLoaded();case 20:return t.next=22,i._create_dp_context(c,n);case 22:p=t.sent,wu("gd-adflow, before idhb",c,f),h=window.idhb.getAdserverTargetingForAdSlot(f),window.idhb.setAdserverTargeting(DT(DT({},h),{},{adaptor_order:n.adapterIndex})),_u("hl-order 2",window.idhb.getAdserverTargetingForAdSlot(f)),window.idhb.requestAds({slots:Eu({},f,{bidFloor:(null==p?void 0:p.floor_price)||void 0}),callback:function(e,t){var n=this;r(this,m),"Missing configuration"===(null==e?void 0:e.error)&&i._broadcast("HL_CONFIG_ERROR",{status:"warning"}),!p||null!=t&&t.bidFloorApplied||fetch(p.skip_url).catch(function(e){r(this,n)}.bind(this));var a={src:"hl",tnl_keys:DT(DT({},window.idhb.getAdserverTargetingForAdSlot(f)),{},{tnl_ad_pos:c,tnl_asset_id:i.gameData.gameId}),url:e,dp:p,hl:t};i._extend_hl_url(a),o(a)}.bind(this)}),t.next=34;break;case 31:throw t.prev=31,t.t0=t.catch(10),new Error(t.t0);case 34:case"end":return t.stop()}}),t,this,[[10,31]])})));return function(e){return o.apply(this,arguments)}}())}},{key:"nextAdPosition",value:function(e){if(e===ot.Rewarded)return this.adRewardedCount++,"rewarded";if(e===ot.Interstitial){var t=!1===this.gameData.preroll||1===this.adPrerollCount;return t?this.adMidrollCount++:this.adPrerollCount++,t||this.adMidrollCount>0?"midroll":"preroll"}return"midroll"}},{key:"getAdPosition",value:function(e){return e===ot.Rewarded?"rewarded":e===ot.Interstitial?!1===this.gameData.preroll||1===this.adPrerollCount||this.adMidrollCount>0?"midroll":"preroll":"midroll"}},{key:"getCurrentAdPosition",value:function(e){return e===ot.Interstitial?1===this.adPrerollCount&&0===this.adMidrollCount?"preroll":"midroll":e===ot.Rewarded?"rewarded":void 0}},{key:"_requestPromo",value:function(e,t){var r=new google.ima.AdsRequest;return r.adsResponse=function(e){return'<VAST version="3.0"> \n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA['.concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,"]]></VASTAdTagURI> \n </Wrapper>\n </Ad>\n </VAST>").trim()}(e),r.linearAdSlotWidth=this.options.width,r.linearAdSlotHeight=this.options.height,r.nonLinearAdSlotWidth=this.options.width,r.nonLinearAdSlotHeight=this.options.height,r.forceNonLinearFullSlot=!0,this.options.vast_load_timeout&&(r.vastLoadTimeout=this.options.vast_load_timeout),r.setAdWillAutoPlay(t.autoplayAllowed),r.setAdWillPlayMuted(t.autoplayRequiresMute),this.adsLoader.requestAds(r),r}},{key:"_requestAd",value:function(e,t){var n=this;return t=t||{},new Promise(function(i){var o=this;if(r(this,n),"undefined"==typeof google)throw new Error("Unable to load ad, google IMA SDK not defined.");try{var a,s,u=null==e||null===(a=e.tnl_keys)||void 0===a?void 0:a.tnl_ad_pos;this.adSuccess=!1,this.contentPaused=!1;var c=new google.ima.AdsRequest,d=this._transformVast(e,t),l=DT(DT({},t),{},{adTag:d,tnl_ad_pos:u});this.adCounter[u]=this.adCounter[u]||0,this.adCounter[u]++;var f=e.dp,p=e.hl;this.current_dp=f,f&&!d.bidder&&(f.adtag_url=d.url);var h=this._isVMAP(u);(function(){r(this,o),t.shouldFail&&(f?(f.adtag_url="dp_original_broken",f.fallback_url="dp_fallback_broken"):d.url="original_broken",_u("gd-adflow, _requestAd, dp.adtag_url",null==f?void 0:f.adtag_url),_u("gd-adflow, _requestAd, dp.fallback_url",null==f?void 0:f.fallback_url),_u("gd-adflow, _requestAd, adTag.url",d.url))}).bind(this);var m=this._getExternalVast(null===(s=t)||void 0===s?void 0:s.adType);if(m)c.adTagUrl=m;else if(h){_u("gd-adflow, _isVMAP");var v=function(e){for(var t=[],r="",n=Date.now(),i={ppos:1,lip:!0,vad_type:"linear"},o=0;o<e.length;o++){var a=new C(e[o].adtag.url,!0);a.query=cT(cT({},a.query),{},{ad_rule:0,vpos:e[o].positon,pod:1,correlator:0===o?n:++n,output:"xml_vast3"}),o<e.length-1&&(a.query=cT(cT({},a.query),i)),t.push(a.toString())}for(var s=Date.now(),u=1;u<=t.length;u++){var c,d,l,f;r+='<vmap:AdBreak timeOffset="start" breakType="linear" breakId="break-'.concat(u,'">\n <vmap:AdSource id="').concat(s++,'" allowMultipleAds="false" followRedirects="true">\n ').concat(dT({id:s++,adtag_url:t[u-1],error_url:null===(c=e[u-1].dp)||void 0===c?void 0:c.error_url,impression_url:null===(d=e[u-1].dp)||void 0===d?void 0:d.impression_url,fallback_url:null===(l=e[u-1].dp)||void 0===l?void 0:l.fallback_url,fallback_imp_url:null===(f=e[u-1].dp)||void 0===f?void 0:f.fallback_imp_url}),"</vmap:AdSource>\n </vmap:AdBreak>")}return'<?xml version="1.0" encoding="UTF-8"?>\n <vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">\n '.concat(r,"\n </vmap:VMAP>").trim()}(this._get_vmap_context({dp:f,adtag:d,position:"preroll"===l.tnl_ad_pos?"preroll":"midroll",config:this._get_vmap_config(u)}));c.adsResponse=v}else if(f&&p.bidFloorApplied){_u("gd-adflow, vast wrapper"),f.adtag_url||(f.adtag_url=d.url);var g=function(e){return e.promo_url?e.fallback_url?'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>ADS</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="2" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():e.fallback_url?'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>ADS</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper>\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,"]]></VASTAdTagURI>\n </Wrapper>\n </Ad>\n </VAST>").trim()}(f);c.adsResponse=g}else if(f&&f.fallback_url){_u("gd-adflow, vast wrapper 2");var A=function(e){return'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>ADS</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim()}(f);c.adsResponse=A}else _u("gd-adflow, without dp"),c.adTagUrl=d.url;c.linearAdSlotWidth=this.options.width,c.linearAdSlotHeight=this.options.height,c.nonLinearAdSlotWidth=this.options.width,c.nonLinearAdSlotHeight=this.options.height,c.forceNonLinearFullSlot=!0,this.options.vast_load_timeout&&(c.vastLoadTimeout=this.options.vast_load_timeout),c.setAdWillAutoPlay(t.autoplayAllowed),c.setAdWillPlayMuted(t.autoplayRequiresMute),this.adsLoader.requestAds(c,l);try{this._broadcast("AD_SDK_REQUEST",{message:l})}catch(e){}i(c)}catch(e){throw new Error(e)}}.bind(this))}},{key:"_getExternalVast",value:function(e){var t;try{var r,n,i,o=this.getCurrentAdPosition(e),a=null===(r=this.gameData)||void 0===r?void 0:r.cust_vast,s=(null==a?void 0:a[o])||(null==a?void 0:a.default);if(!s)return _u("[ext-vast] no custom vast config"),null;_u("[ext-vast] has custom vast config",a);var u=null==s||null===(n=s.maps)||void 0===n||null===(n=n.position)||void 0===n?void 0:n[o],c=this._createCustomAdVastUrl(s,{tnl_keys:{slug:null===(i=this.gameData)||void 0===i?void 0:i.slug,mapped_position:u}});t=null==c?void 0:c.url,_u("[ext-vast] check result",t)}catch(e){xu("[ext-vast] check err",e)}return t}},{key:"cancel",value:function(e){var t;if(!1!==this.requestRunning){this.requestRunning=!1,this._resetAdsLoader(),this._hide("cancel");var r=(null==e||null===(t=e.message)||void 0===t?void 0:t.indexOf("NO_VAST_URL"))>=0,n="AD_SDK_CANCELED";this._broadcast(n,{name:n,message:"Advertisement has been canceled.",status:"warning",noVast:r,analytics:{category:this.eventCategory,action:n,label:this.gameData.gameId}})}}},{key:"_checkAutoPlay",value:(D=t(d.mark((function e(){var t=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,n){var i=this;r(this,t);var o=navigator.userAgent.toLowerCase();o.indexOf("safari")>-1&&o.indexOf("chrome"),oT.video({inline:!0,muted:!1}).then(function(t){r(this,i);var n=t.result;t.error,e(!0===n?{autoplayAllowed:!0,autoplayRequiresMute:!1}:{autoplayAllowed:!0,autoplayRequiresMute:!0})}.bind(this))}.bind(this)));case 1:case"end":return e.stop()}}),e,this)}))),function(){return D.apply(this,arguments)})},{key:"_initDisplayContainerWithAutoPlay",value:(S=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._checkAutoPlay(!1);case 2:return t=e.sent,this._autoplay=t,this.video_ad_player.autoplay=t.autoplayAllowed,this.video_ad_player.volume=t.autoplayRequiresMute?0:1,this.video_ad_player.muted=!!t.autoplayRequiresMute,t.adDisplayContainerInitialized||(this.adDisplayContainer.initialize(),this.adDisplayContainerInitialized=!0),e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)}))),function(){return S.apply(this,arguments)})},{key:"startAd",value:(E=t(d.mark((function e(t){var n,i,o,a=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.adType,o=t.params,this.adType_=i,this.isAudioAd=!1,this.adContext=DT(DT({},o),{},{adType:i}),null!==(n=this.gameData.adspn)&&void 0!==n&&n.enabled&&(this.adFlowProcessSpinner||(this.adFlowProcessSpinner=new ET,this.adFlowProcessSpinner.add()),this.adFlowProcessSpinner.show(!0)),"promo"!==(null==o?void 0:o.adapter)){e.next=7;break}return e.abrupt("return",this._startPromo(o,i));case 7:if("adsense"!==(null==o?void 0:o.adapter)){e.next=31;break}if(i!==ot.Interstitial){e.next=24;break}if("preroll"!==(null==o?void 0:o.position)){e.next=13;break}return e.abrupt("return",this._startAdsensePlacementPreroll(t));case 13:if("start"!==(null==o?void 0:o.position)){e.next=17;break}return e.abrupt("return",this._startAdsensePlacementStart(t));case 17:if("next"!==(null==o?void 0:o.position)){e.next=21;break}return e.abrupt("return",this._startAdsensePlacementNext(t));case 21:return e.abrupt("return",this._startAdsensePlacementPreroll(t));case 22:e.next=29;break;case 24:if(i!==ot.Rewarded){e.next=28;break}return e.abrupt("return",this._startAdsensePlacementRewardedAd(t));case 28:throw new Error("Unsupported ad type");case 29:e.next=44;break;case 31:if(!["ima","spil","audio"].some(function(e){return r(this,a),e===(null==o?void 0:o.adapter)}.bind(this))){e.next=42;break}if(i!==ot.Interstitial){e.next=37;break}return e.abrupt("return",this._startInterstitialAd(o));case 37:if(i!==ot.Rewarded){e.next=41;break}return e.abrupt("return",this._startRewardedAd(o));case 41:throw new Error("Unsupported ad type");case 42:["opus"].some(function(e){return r(this,a),e===(null==o?void 0:o.adapter)}.bind(this))&&this._startOpusAd(o);case 44:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})},{key:"_startOpusAd",value:(k=t(d.mark((function e(t){var n,i,o,a,s,u,c,l,f,p,h,m,v,g,A,b=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.adTypeFound="rewarded"===t.adTypeFound?"reward":t.adTypeFound,i=t.adTypeFound,this._send_atom_event("opus-ad.start"),!this.requestRunning){e.next=9;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),this._broadcast("AD_ERROR",{message:"Ad is already running",status:"error",reason:"request-running"}),this._send_atom_event("opus-ad.already-running"),e.abrupt("return");case 9:if(o=null===(n=window.gdlocus)||void 0===n?void 0:n.adBreak){e.next=14;break}return this._send_atom_event("opus-ad.not-initialized"),this._broadcast("AD_ERROR",{message:"Locus adBreak not found",status:"error",reason:"opus-not-found"}),e.abrupt("return");case 14:this._send_atom_event("opus-ad.ready"),a=void function(){return r(this,b),!0}.bind(this),this.requestRunning=!0,s=this.gameData,u=s.gameId,c=s.slug,l=s.title,f={assetId:u,slug:c,title:l,debug:a},p=function(e){r(this,b),this.opusEventReceived=!0,this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),h=function(e){r(this,b),this.opusEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),m=function(){r(this,b),this.opusEventReceived=!0}.bind(this),v=function(){r(this,b),this.opusEventReceived=!0,this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this._send_atom_event("sg.ad.rw.viewed")}.bind(this),g=function(e){r(this,b),this.opusEventReceived=!0,this.resetForNext();var t="".concat(i);this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}):this._broadcast("AD_ERROR",{message:e.errorMessage,errorType:e.errorType,status:e.breakStatus,reason:"opus-error"})}.bind(this),console.log("opus-ad meta",f),A={type:i,meta:f,beforeAd:p,afterAd:h,adBreakDone:g},"reward"===i&&(A=DT(DT({},A),{},{adDismissed:m,adViewed:v})),this.opusEventReceived=!1,this._startTimeoutForOpus(),o&&o(A);case 31:case"end":return e.stop()}}),e,this)}))),function(e){return k.apply(this,arguments)})},{key:"preloadAd",value:(x=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==ot.Interstitial){e.next=4;break}return e.abrupt("return","gdsdk://preloaded");case 4:if(t!==ot.Rewarded){e.next=8;break}return e.abrupt("return","gdsdk://preloaded");case 8:throw new Error("Unsupported ad type");case 9:case"end":return e.stop()}}),e)}))),function(e){return x.apply(this,arguments)})},{key:"addAdComponents",value:function(){var e=this,t=function(){r(this,e),this.adsManager.resume()}.bind(this),n=function(){r(this,e),this.rewardGuarantied||(this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this.rewardGuarantied=!1),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}),this._hideSkipButton(),this.cancel()}.bind(this);try{this.adResume=new YO(this.adContainer,t),this.adResume.add(),this.rewardedLabel=new QO(this.adContainer,t),this.rewardedLabel.add(),this.skipAdButton=new JO(this.adContainer,t,n),this.skipAdButton.add(),this.audioAdLabel=new XO(window.document.body),this.audioAdLabel.add(),this.audioAdLabel.hide()}catch(e){console.log("error on adding adResume",e)}}},{key:"loadDisplayAd",value:(w=t(d.mark((function e(n){var i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,o){var a,s,u,c,l,f,p,h,m,v=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{_u("display_test load",n),(s=n?n.containerId:null)||o("Container id is not specified"),u=document.getElementById(s),document.getElementById(s)||o("No container is found with this id - ".concat(s)),void 0===window.idhb.requestAds&&o("Prebid.js wrapper script hit an error or didn't exist!"),c=n.slotId?n.slotId:"gd__banner@".concat(s),document.getElementById(c)||(l="\n .gd__banner{\n z-index: ".concat(St.zIndex,";\n height: 100%;\n display: flex !important;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n }"),document.getElementById("gd__banner__style")||((f=document.createElement("style")).type="text/css",f.id="gd__banner__style",f.styleSheet?f.styleSheet.cssText=l:f.appendChild(document.createTextNode(l)),u.appendChild(f)),(p=document.createElement("div")).id=c,p.classList.add("gd__banner"),u.appendChild(p)),i.atom_display=null,null!==(a=i.atom_display)&&void 0!==a&&a.params&&window.idhb.setAdserverTargeting(null===(h=i.atom_display)||void 0===h?void 0:h.params),(m={})[c]={maxSize:[u.offsetWidth,u.offsetHeight]},_u("display_test slots",m),window.idhb.requestAds({slots:m,callback:function(e){r(this,v),_u("display_test callback",JSON.stringify(e,null,2))}.bind(this)}),t()}catch(e){console.log("display_test error",e),o(e.message||e)}case 1:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return w.apply(this,arguments)})},{key:"_startInterstitialAd",value:(_=t(d.mark((function e(t){var n,i,o,a,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.requestRunning){e.next=4;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 4:if(!void function(){if(r(this,u),ku.fictionalIMAError)return this._broadcast("AD_ERROR",{message:"fictional IMA error",status:"error",skipForward:!0}),!0}.bind(this)){e.next=7;break}return e.abrupt("return");case 7:return this.requestRunning=!0,e.next=10,this._initDisplayContainerWithAutoPlay();case 10:return i=e.sent,e.next=13,this._loadInterstitialAd(DT(DT({},i),t));case 13:if(o=e.sent,a=o.success,o.args,a){e.next=18;break}return e.abrupt("return");case 18:null!==(n=this.adContext)&&void 0!==n&&n.muteRequested?this.adsManager.setVolume(0):(i.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(s=this.gameData.advlm)||void 0===s?void 0:s.mode)&&this.adsManager.setVolume(1)),this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start(),e.next=28;break;case 23:throw e.prev=23,e.t0=e.catch(0),_u("VAST_URL_2 error",e.t0),this._onError(e.t0),e.t0;case 28:case"end":return e.stop()}}),e,this,[[0,23]])}))),function(e){return _.apply(this,arguments)})},{key:"_startPromo",value:(y=t(d.mark((function e(t,r){var n,i,o,a,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.requestRunning){e.next=4;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 4:return this.requestRunning=!0,this.adSuccess=!1,e.next=8,this._initDisplayContainerWithAutoPlay();case 8:return i=e.sent,e.next=11,this._loadPromo(DT(DT({},i),t),r);case 11:if(o=e.sent,a=o.success,o.args,a){e.next=16;break}return e.abrupt("return");case 16:null!==(n=this.adContext)&&void 0!==n&&n.muteRequested?this.adsManager.setVolume(0):(i.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(s=this.gameData.advlm)||void 0===s?void 0:s.mode)&&this.adsManager.setVolume(1)),this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start(),this.msgrt.send("promo.adsense",{message:"".concat(t.position," success")}),e.next=27;break;case 22:throw e.prev=22,e.t0=e.catch(0),this.msgrt.send("promo.adsense.err",{message:"".concat(t.position," failure,").concat(e.t0.message?e.t0.message:e.t0,", [").concat(this.parentURL,"]")}),this._onError(e.t0),e.t0;case 27:case"end":return e.stop()}}),e,this,[[0,22]])}))),function(e,t){return y.apply(this,arguments)})},{key:"_loadPromo",value:(b=t(d.mark((function e(t,r){var n,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._resetAdsLoader(),e.prev=1,n=this.nextAdPosition(r),i=this._create_promo_context(n),this._requestPromo(i,DT({adType:ot.Interstitial},t)),e.next=7,this._waitOnAdLoad();case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(1),new Error(e.t0);case 13:case"end":return e.stop()}}),e,this,[[1,10]])}))),function(e,t){return b.apply(this,arguments)})},{key:"_loadInterstitialAd",value:(A=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._resetAdsLoader(),e.prev=1,e.t0=this.preloadedInterstitialAdVast,e.t0){e.next=7;break}return e.next=6,this._getAdVast(ot.Interstitial,t);case 6:e.t0=e.sent;case 7:if(r=e.t0,delete this.preloadedInterstitialAdVast,r.url){e.next=12;break}throw new Error("NO_VAST_URL");case 12:return e.next=14,this._requestAd(r,DT({adType:ot.Interstitial},t));case 14:return e.sent,e.next=17,this._waitOnAdLoad();case 17:return e.abrupt("return",e.sent);case 20:throw e.prev=20,e.t1=e.catch(1),console.log("VAST_URL error",e.t1),new Error(e.t1);case 24:case"end":return e.stop()}}),e,this,[[1,20]])}))),function(e){return A.apply(this,arguments)})},{key:"_waitOnAdLoad",value:function(){var e=this;return new Promise(function(t,n){var i=this;r(this,e);var o="videoad.preloadad";this.eventBus.unsubscribeScope(o);var a=function(e){var n=this;r(this,i),setTimeout(function(){r(this,n),this.eventBus.unsubscribeScope(o),t({success:!0,args:e})}.bind(this),1)}.bind(this),s=function(e){var n=this;r(this,i),setTimeout(function(){r(this,n),this.eventBus.unsubscribeScope(o),t({success:!1,args:e})}.bind(this),1)}.bind(this);this.eventBus.subscribe("AD_SDK_MANAGER_READY",a,o),this.eventBus.subscribe("AD_SDK_CANCELED",s,o),this.eventBus.subscribe("AD_ERROR",s,o)}.bind(this))}},{key:"_startRewardedAd",value:(g=t(d.mark((function e(t){var n,i,o,a,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.requestRunning){e.next=4;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 4:if(!void function(){if(r(this,u),ku.fictionalIMAError)return this._broadcast("AD_ERROR",{message:"fictional IMA error",status:"error",skipForward:!0}),!0}.bind(this)){e.next=7;break}return e.abrupt("return");case 7:return this.requestRunning=!0,e.next=10,this._initDisplayContainerWithAutoPlay();case 10:return i=e.sent,e.next=13,this._loadRewardedAd(DT(DT({},i),t));case 13:if(o=e.sent,a=o.success,o.args,a){e.next=18;break}return e.abrupt("return");case 18:null!==(n=this.adContext)&&void 0!==n&&n.muteRequested?this.adsManager.setVolume(0):(i.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(s=this.gameData.advlm)||void 0===s?void 0:s.mode)&&this.adsManager.setVolume(1)),this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start(),e.next=27;break;case 23:throw e.prev=23,e.t0=e.catch(0),this._onError(e.t0),e.t0;case 27:case"end":return e.stop()}}),e,this,[[0,23]])}))),function(e){return g.apply(this,arguments)})},{key:"_loadRewardedAd",value:(v=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._resetAdsLoader(),e.prev=1,e.t0=this.preloadedRewardedAdVast,e.t0){e.next=7;break}return e.next=6,this._getAdVast(ot.Rewarded,t);case 6:e.t0=e.sent;case 7:return r=e.t0,delete this.preloadedRewardedAdVast,e.next=11,this._requestAd(r,DT({adType:ot.Rewarded},t));case 11:return e.sent,e.next=14,this._waitOnAdLoad();case 14:return e.abrupt("return",e.sent);case 17:throw e.prev=17,e.t1=e.catch(1),new Error(e.t1);case 20:case"end":return e.stop()}}),e,this,[[1,17]])}))),function(e){return v.apply(this,arguments)})},{key:"_preloadInterstitialAd",value:(m=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,e.t0=this.preloadedInterstitialAdVast,e.t0){e.next=6;break}return e.next=5,this._getAdVast(ot.Interstitial);case 5:e.t0=e.sent;case 6:return this.preloadedInterstitialAdVast=e.t0,e.abrupt("return",this.preloadedInterstitialAdVast.url);case 10:throw e.prev=10,e.t1=e.catch(0),new Error(e.t1);case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return m.apply(this,arguments)})},{key:"_preloadRewardedAd",value:(h=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,e.t0=this.preloadedRewardedAdVast,e.t0){e.next=6;break}return e.next=5,this._getAdVast(ot.Rewarded);case 5:e.t0=e.sent;case 6:return this.preloadedRewardedAdVast=e.t0,e.abrupt("return",this.preloadedRewardedAdVast.url);case 10:throw e.prev=10,e.t1=e.catch(0),new Error(e.t1);case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return h.apply(this,arguments)})},{key:"_onError",value:function(e){this.cancel(e),this._clearSafetyTimer("ERROR")}},{key:"_hide",value:function(e){this.video_ad_player&&(this.video_ad_player.src=""),this.activeAdContainer&&(this.activeAdContainer.style.visibility="hidden")}},{key:"_show",value:function(e){var t=this;if(this.activeAdContainer){this.isAudioAd||(this.activeAdContainer.style.visibility="visible");var n=null==e?void 0:e.mode;e.t4r=this.gameData.__t4r;var i=this._adrequest_user_context.t4RResult?this._adrequest_user_context.t4RResult:this._isT4R(e);this._adrequest_user_context.t4RResult=i;var o=i.success,a=i.reason,s=this._getT4ROptions(e);if("loaded"===n){var u,c=(null===(u=this._adrequest_user_context)||void 0===u||null===(u=u.adTag)||void 0===u?void 0:u.bidder)||"adx";this._broadcast("AD_BIDDER",{bidder:c}),o||this._broadcast("AD_T4R_NONE",{reason:a}),this.activeAdContainer.style.opacity=o?.001:1,o&&null!=e&&e.contentType.startsWith("video/")&&(this.t4rButton=new eT(this.adContainer),this.t4rButton.add(),this._broadcast("AD_T4R_VIDEO")),o&&this.adsManager.setVolume(0),o&&this._broadcast("AD_T4R"),o&&setTimeout(function(){var e;r(this,t),this.activeAdContainer.style.opacity=1,this.adsManager.setVolume(null!==(e=this.adContext)&&void 0!==e&&e.muteRequested?0:1),this.t4rButton&&this.t4rButton.hide()}.bind(this),((null==s?void 0:s.min)||1234)+Math.random()*((null==s?void 0:s.max)||3210))}else if("click"===n||"first_quartile"===n){var d;if(o&&"click"===n){var l,f=null===(l=this._adrequest_user_context)||void 0===l?void 0:l.tnl_ad_pos;this.clickCount[f]++,this._broadcast("AD_T4R_CLICK")}o||"click"!==n||this._broadcast("AD_CLICK"),this.t4rButton&&this.t4rButton.hide(),this.activeAdContainer.style.opacity=1,this.adsManager.setVolume(null!==(d=this.adContext)&&void 0!==d&&d.muteRequested?0:1)}}}},{key:"_createPlayer",value:function(){var e=this,t=document.body||document.getElementsByTagName("body")[0];this.adContainer=document.createElement("div"),this.adContainer.id="".concat(this.prefix,"advertisement"),this.adContainer.style.position=this.thirdPartyContainer?"absolute":"fixed",this.adContainer.style.zIndex=Et.zIndex,this.adContainer.style.top="0",this.adContainer.style.left="0",this.adContainer.style.width="100%",this.adContainer.style.height="100%",this.thirdPartyContainer&&(this.thirdPartyContainer.style.transform=null);var n=document.createElement("video");n.setAttribute("playsinline",!0),n.setAttribute("webkit-playsinline",!0),n.id="".concat(this.prefix,"advertisement_video"),n.style.position="absolute",n.style.backgroundColor="#000000",n.style.top="0",n.style.left="0",n.style.width=this.options.width+"px",n.style.height=this.options.height+"px",this.video_ad_player=n,this.adContainer.appendChild(n);var i=document.createElement("div");i.id="".concat(this.prefix,"advertisement_slot"),i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.width=this.options.width+"px",i.style.height=this.options.height+"px",this.adContainerInner=i,this.activeAdContainer=this.adContainer,window.activeAdContainer=this.activeAdContainer,this.thirdPartyContainer?(this.adContainer.appendChild(i),this.thirdPartyContainer.appendChild(this.adContainer),this.activeAdContainer=this.thirdPartyContainer):(this.adContainer.appendChild(i),t.appendChild(this.adContainer)),this.addAdComponents(),this.activeAdContainer.style.visibility="hidden";var o=function(){r(this,e);var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.options.width=this.thirdPartyContainer?this.thirdPartyContainer.offsetWidth:t,this.options.height=this.thirdPartyContainer?this.thirdPartyContainer.offsetHeight:o,i.style.width=this.options.width+"px",i.style.height=this.options.height+"px",n.style.width=this.options.width+"px",n.style.height=this.options.height+"px"}.bind(this);window.addEventListener("resize",o),window.document.addEventListener("DOMContentLoaded",o)}},{key:"_setUpIMA",value:function(){this.adDisplayContainer=new google.ima.AdDisplayContainer(this.adContainerInner,this.video_ad_player),this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.getSettings().setDisableCustomPlaybackForIOS10Plus(!0),this.adsLoader.getSettings().setLocale(this.options.locale),this.adsLoader.getSettings().setVpaidMode(this._getVPAIDMode()),this.adsLoader.getSettings().setAutoPlayAdBreaks(!0);var e=this.adsLoader.getSettings().getNumRedirects();this.adsLoader.getSettings().setNumRedirects(2*e),this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this._onAdsManagerLoaded,!1,this),this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this._onAdError,!1,this)}},{key:"_onAdsManagerLoaded",value:function(e){var t=this,n=new google.ima.AdsRenderingSettings;n.autoAlign=!1,n.enablePreloading=!1,n.restoreCustomPlaybackStateOnAdBreakComplete=!0,n.useStyledNonLinearAds=!0,n.uiElements=[google.ima.UiElements.AD_ATTRIBUTION,google.ima.UiElements.COUNTDOWN],this.adsManager=e.getAdsManager(this.video_ad_player,n),this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this._onAdError.bind(this),!1,this),this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_BREAK_READY,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_METADATA,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.CLICK,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.DURATION_CHANGE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.FIRST_QUARTILE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.IMPRESSION,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.INTERACTION,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.LINEAR_CHANGED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.LOADED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.LOG,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.MIDPOINT,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.RESUMED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.STARTED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.THIRD_QUARTILE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.USER_CLOSE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.VOLUME_CHANGED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.VOLUME_MUTED,this._onAdEvent.bind(this),this),window.addEventListener("resize",function(){r(this,t),this.adsManager&&this.adsManager.resize(this.options.width,this.options.height,google.ima.ViewMode.NORMAL)}.bind(this)),this.adDisplayContainerInitialized||(this.adDisplayContainer.initialize(),this.adDisplayContainerInitialized=!0);var i=new Date,o=i.getHours(),a=i.getDate(),s=i.getMonth(),u=i.getFullYear(),c="AD_SDK_MANAGER_READY";this._broadcast(c,{name:c,message:"AD SDK is ready",status:"success",analytics:{category:c,action:this.parentDomain,label:"h".concat(o," d").concat(a," m").concat(s," y").concat(u)}}),this._adrequest_user_context=e.getUserRequestContext()}},{key:"_onAdEvent",value:function(e){var t,n,i,o,a,s=this,u=new Date,c=u.getHours(),d=u.getDate(),l=u.getMonth(),f=u.getFullYear(),p=(o=google.ima.AdEvent.Type,a=e.type,Object.keys(o).find((function(e){return o[e]===a}))),h=!1,m=(null==e||null===(t=e.getAd())||void 0===t?void 0:t.getContentType())||"",v=!m.startsWith("image")&&!m.startsWith("text"),g=null==e||null===(n=e.ad)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.title,A=null==e||null===(i=e.getAd())||void 0===i?void 0:i.data.skippable;this._sendIMAEventsToHB(e);var b=document.getElementById("game"),y="";switch(e.type){case google.ima.AdEvent.Type.AD_BREAK_READY:y="Fired when an ad rule or a VMAP ad break would have played if autoPlayAdBreaks is false.";break;case google.ima.AdEvent.Type.AD_METADATA:y="Fired when an ads list is loaded.";break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.contentPaused&&(h=!0),this.isAudioAd&&(this.audioAdLabel.hide(),this.isAudioAd=!1),this.rewardGuarantied=!1,y="Fired when the ads manager is done playing all the ads.";break;case google.ima.AdEvent.Type.CLICK:y="Fired when the ad is clicked.";var _=e.getAd().getContentType();this._show({mode:"click",contentType:_}),wT();break;case google.ima.AdEvent.Type.COMPLETE:_u("gd-adflow ON COMPLETE!",e.getAd()),h=this._is_completed(e.getAd()),y="Fired when the ad completes playing.",this.adType_!==ot.Rewarded||this.rewardGuarantied||(this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this.rewardGuarantied=!0);break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.gameData.fllc.enabled&&(b.style.display="none"),this.contentPaused=!0,y="Fired when content should be paused. This usually happens right before an ad is about to cover the content.";break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.gameData.fllc.enabled&&(b.style.display="block"),y="Fired when content should be resumed. This usually happens when an ad finishes or collapses.",this.contentPaused?h=!0:(this.requestRunning=!1,this._broadcast("AD_ERROR",{message:"got resume without pause, possibly with VMAP",status:"error",skipForward:!0})),this._hideAddResume(),this._hideRewardedLabel(),this._hideSkipButton(),this.t4rButton&&this.t4rButton.hide(),this._clearTimeoutForSkipAddButton();break;case google.ima.AdEvent.Type.DURATION_CHANGE:y="Fired when the ad's duration changes.";break;case google.ima.AdEvent.Type.FIRST_QUARTILE:y="Fired when the ad playhead crosses first quartile.";var w=e.getAd().getContentType();this._show({mode:"first_quartile",contentType:w});break;case google.ima.AdEvent.Type.IMPRESSION:y="Fired when the impression URL has been pinged.",e.getAd(),console.log("gdsdk: eventname IMPRESSION",this.isAudioAd),this._hideAdSpinner(),this.isAudioAd&&this.audioAdLabel.show();break;case google.ima.AdEvent.Type.INTERACTION:y="Fired when an ad triggers the interaction callback. Ad interactions contain an interaction ID string in the ad data.";break;case google.ima.AdEvent.Type.LINEAR_CHANGED:y="Fired when the displayed ad changes from linear to nonlinear, or vice versa.";break;case google.ima.AdEvent.Type.LOADED:var x=e.getAd().getContentType();y=x,this._show({mode:"loaded",contentType:x});break;case google.ima.AdEvent.Type.LOG:e.getAdData().adError&&(y=e.getAdData());break;case google.ima.AdEvent.Type.MIDPOINT:y="Fired when the ad playhead crosses midpoint.";break;case google.ima.AdEvent.Type.PAUSED:v&&"VPAID"!==g&&this.adResume.show(),y="Fired when the ad is paused.";break;case google.ima.AdEvent.Type.RESUMED:y="Fired when the ad is resumed.",v&&(this.adResume.hide(),this.rewardedLabel.hide());break;case google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED:y="Fired when the displayed ads skippable state is changed.";break;case google.ima.AdEvent.Type.SKIPPED:h=this._is_completed(e.getAd()),y="Fired when the ad is skipped by the user.",_T(),this.t4rButton&&this.t4rButton.hide();break;case google.ima.AdEvent.Type.STARTED:var k;if(this.skipAdButton&&this.skipAdButton.hide(),this.rewardGuarantied=!1,this.adType_===ot.Rewarded)!A&&null!==(k=this.gameData.rwskp)&&void 0!==k&&k.enabled&&(this._skipAdButtonTimeout=setTimeout(function(){r(this,s),this.skipAdButton.show(),this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this.rewardGuarantied=!0}.bind(this),3e4)),this.rewardedLabel.show();this._hideAddResume(),y="Fired when the ad starts playing.";break;case google.ima.AdEvent.Type.THIRD_QUARTILE:y="Fired when the ad playhead crosses third quartile.";break;case google.ima.AdEvent.Type.USER_CLOSE:h=this._is_completed(e.getAd()),y="Fired when the ad is closed by the user.";break;case google.ima.AdEvent.Type.VOLUME_CHANGED:y="Fired when the ad volume has changed.";break;case google.ima.AdEvent.Type.VOLUME_MUTED:y="Fired when the ad volume has been muted."}if(""!==p&&""!==y){var E=!this.contentPaused&&e.type===google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,S=!this.contentPaused&&e.type===google.ima.AdEvent.Type.ALL_ADS_COMPLETED;E||S||this.isAudioAd||this._broadcast(p,{name:p,message:y,status:"success",analytics:{category:p,action:this.parentDomain,label:"h".concat(c," d").concat(d," m").concat(l," y").concat(f)}})}if(h&&!this.adSuccess){this.adSuccess=!0;var D=e.getAd(),R="Rainbow"===(null==D?void 0:D.getAdSystem())&&(null==D?void 0:D.getWrapperAdIds().some(function(e){return r(this,s),"promo"===e}.bind(this)));_u("gd-adflow isPromoSuccess",R,null==D?void 0:D.getAdSystem(),null==D?void 0:D.getWrapperAdIds()),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success",isPromoSuccess:R}),this.resetForNext(e)}}},{key:"_clearTimeoutForSkipAddButton",value:function(){this._skipAdButtonTimeout&&(clearTimeout(this._skipAdButtonTimeout),this._skipAdButtonTimeout=null)}},{key:"_run_atom_tag_aws_test",value:function(e){var t=this;try{var n,i;if(!((null===(n=this.gameData)||void 0===n||null===(n=n.aws_tst)||void 0===n?void 0:n.enabled)&&(null===(i=this.gameData)||void 0===i||null===(i=i.aws_tst)||void 0===i||null===(i=i.ep)||void 0===i?void 0:i.atm)))return;var o=e.type,a=e.url;if("none"===o||!a)return;a=a.replace("tag.atom.gamedistribution.com","atom-tag-prod-aws.gamedistribution.com"),fetch(a).then(function(){r(this,t)}.bind(this))}catch(e){}}},{key:"_findAtomTagUrl",value:function(e,t){var n=this,i={type:"none"};try{var o=this.current_dp,a=o.id,s=o.error_url,u=o.impression_url,c=o.fallback_imp_url,d=o.promo_imp_green_url;if(!e&&!t)return i={type:"imp_err",url:s};var l=e.getWrapperAdIds().some(function(e){return r(this,n),e==="".concat(a)}.bind(this)),f=e.getWrapperAdIds().some(function(e){return r(this,n),"fallback"===e}.bind(this)),p=e.getWrapperAdIds().some(function(e){return r(this,n),"promo"===e}.bind(this));l&&t?i={type:"normal_imp",url:u}:l&&!t?i={type:"normal_err",url:s}:p&&t?i={type:"promo_imp",url:d}:f&&t&&(i={type:"fallbacj_imp",url:c})}catch(e){}return i}},{key:"_onAdError",value:function(e){this.requestRunning=!1,this._resetAdsLoader(),this._clearSafetyTimer("ERROR"),this._hide("_onAdError"),this._sendIMAEventsToHB(e);try{var t="AD_ERROR",r=e.getError(),n=r.getErrorCode().toString()||r.getVastErrorCode().toString(),i=this._getInnerErrorCode(r);RT.emit("AD_ERROR",n),this._broadcast(t,{message:n,details:i,status:"warning",analytics:{category:t,action:i,label:n}}),this._hideAddResume(),this._clearTimeoutForSkipAddButton()}catch(e){}}},{key:"_hideAddResume",value:function(){try{this.adResume&&this.adResume.hide()}catch(e){console.log("Error on hide adResume",e)}}},{key:"_hideAdSpinner",value:function(){try{var e;null!==(e=this.gameData.adspn)&&void 0!==e&&e.enabled&&this.adFlowProcessSpinner&&this.adFlowProcessSpinner.hide()}catch(e){console.log("Error on hide adSpinner",e)}}},{key:"_hideRewardedLabel",value:function(){try{this.adType_===ot.Rewarded&&this.rewardedLabel&&this.rewardedLabel.hide()}catch(e){console.log("Error on hide adResume",e)}}},{key:"_hideSkipButton",value:function(){try{this.adType_===ot.Rewarded&&this.skipAdButton&&this.skipAdButton.hide()}catch(e){console.log("Error on hide adResume",e)}}},{key:"_sendIMAEventsToHB",value:function(e){if(window.idhb&&"function"==typeof window.idhb.onImaEvent)try{window.idhb.onImaEvent({event:e})}catch(e){}}},{key:"_resetAdsLoader",value:function(){this.adsManager&&(this.adsManager.destroy(),this.adsManager=null,this._adrequest_user_context=null),this.adsLoader&&this.adsLoader.contentComplete()}},{key:"_startSafetyTimer",value:function(e,t){var n=this;this.safetyTimer&&clearTimeout(this.safetyTimer),this.safetyTimer=window.setTimeout(function(){r(this,n),this.cancel(),this._clearSafetyTimer(t)}.bind(this),e)}},{key:"_clearSafetyTimer",value:function(e){void 0!==this.safetyTimer&&null!==this.safetyTimer&&(clearTimeout(this.safetyTimer),this.safetyTimer=void 0)}},{key:"_getVPAIDMode",value:function(){return google.ima.ImaSdkSettings.VpaidMode.ENABLED}},{key:"_getPrebidScripts",value:function(){var e=["https://hb.improvedigital.com/pbw/headerlift.min.js","http://hb.improvedigital.com/pbw/headerlift.min.js"];return this.options.hb_script?[this.options.hb_script].concat(e):e}},{key:"_getInnerErrorCode",value:function(e){if(q(e.getInnerError)){var t=e.getInnerError();if(t)return q(t.getErrorCode)&&q(t.getVastErrorCode)?t.getErrorCode().toString()||t.getVastErrorCode().toString():t.message}}},{key:"resetForNext",value:function(){this.requestRunning=!1,this._hide("resetForNext")}},{key:"_createCustomAdVastUrl",value:function(e,t){var n=this;if(e){var i=this.macros.transform(e,{get:function(e){if(r(this,n),t&&t.tnl_keys)return t.tnl_keys[e.toLowerCase()]}.bind(this)});for(var o in i.query||{}){var a=i.query[o];U(a)&&(i.query[o]=l.stringify(a))}var s=new C(i.url,!0);return sT(s.query,i.query||{}),DT({url:s.toString()},t)}}},{key:"_transformVast",value:function(e,t){var r={url:e.url};try{var n=new C(e.url,!0),i=this._transformQuery(e,t,n);i&&(r.url=n.toString());var o=i?n:new C(e.url,!0);if(o.query.cust_params){var a=l.parse(o.query.cust_params);r.bidder=a.hb_bidder,r.cust_params=a}r.url_parsed=o}catch(e){r.hasError=!0,r.message=e.message,r.bidder="error",console.log(e.message)}return r}},{key:"_transformQuery",value:function(e,t,n){var i=this;if(e&&t&&e.tnl_keys){var o=this.options.vast_query;if(t.retry_on_success&&this.options.retry_on_success&&U(this.options.retry_on_success.vast_query)?o=this.options.retry_on_success.vast_query:t.retry_on_failure&&this.options.retry_on_failure&&U(this.options.retry_on_failure.vast_query)&&(o=this.options.retry_on_failure.vast_query),U(o=B(o))){var a=n.query;if(o.$$remove){for(var s in a){new RegExp(o.$$remove,"i").test(s)&&delete a[s]}delete o.$$remove}var u=l.parse(a.cust_params);if(o.cust_params&&o.cust_params.$$remove){for(var c in u){new RegExp(o.cust_params.$$remove,"i").test(c)&&delete u[c]}delete o.cust_params.$$remove}var d=this.macros.transform(o,{get:function(t){return r(this,i),e.tnl_keys[t.toLowerCase()]}.bind(this)});return a.cust_params=u,sT(a,d),a.cust_params=l.stringify(a.cust_params),!0}}}},{key:"_isExcludedBidderForT4R",value:function(){var e=this;try{var t,n,i,o=(null===(t=this._adrequest_user_context)||void 0===t||null===(t=t.adTag)||void 0===t?void 0:t.bidder)||"adx";this.msgrt.send("bidder",{message:o}),_u("ex_bidder ad request context",this._adrequest_user_context,'bidder:"'.concat(o,'"'));var a=(null===(n=this.gameData.t4rc)||void 0===n?void 0:n.bidder_exc)||[],s=(null===(i=this.gameData.t4rc)||void 0===i?void 0:i.bidder_inc)||[],u=!1;return s.length>0?u=!s.some(function(t){return r(this,e),t===o}.bind(this)):a.length>0&&(u=a.some(function(t){return r(this,e),t===o}.bind(this))),_u("ex_bidder_result",o,u),u}catch(e){console.log("ex_bidder ERR",e)}}},{key:"_isExcludedBidderForT4RWithBidderExcRate",value:function(){var e,t,r=this._isExcludedBidderForT4R(),n=null===(e=this.gameData)||void 0===e||null===(e=e.t4rc)||void 0===e?void 0:e.bidder_exc_rate,i=null!=n&&n.enabled?(null==n?void 0:n.rate)||.8:0,o=(null===(t=this._adrequest_user_context)||void 0===t||null===(t=t.adTag)||void 0===t?void 0:t.bidder)||"adx",a=Math.random();return r||"adx"!==o&&a<i}},{key:"_isT4R",value:function(e){var t=null==e?void 0:e.contentType,r={isImage:null==t?void 0:t.startsWith("image/"),isText:"text"===t,isVideo:null==t?void 0:t.startsWith("video/")},n=Object.values(this._getT4RValidators(e)||{}),i={success:!0};try{for(var o=0,a=n;o<a.length;o++){var s=(0,a[o])(r);if(!s.success){i=s;break}}}catch(e){i={success:!1,reason:"internal-error"}}return i}},{key:"_getT4RValidators",value:function(e){var t=this,n=function(e){if(r(this,t),this.gameData.publishedAt){var n=new Date(this.gameData.publishedAt);return((new Date).getTime()-n.getTime())/864e5<=10?{success:!1,reason:"pdate-1",name:"pdate"}:{success:!0,name:"pdate"}}return{success:!1,reason:"pdate-2",name:"pdate"}}.bind(this),i=function(n){var i,o,a,s;r(this,t);var u=this.gameData.meta,c=e.t4r.meta;return(null==u||null===(i=u.ast)||void 0===i?void 0:i.c)>=(null==c||null===(o=c.ast)||void 0===o?void 0:o.c)&&(null==u||null===(a=u.sit)||void 0===a?void 0:a.c)>=(null==c||null===(s=c.sit)||void 0===s?void 0:s.c)?{success:!1,reason:"meta",name:"meta"}:{success:!0,name:"meta"}}.bind(this),o=function(e){r(this,t);var n=this._isExcludedBidderForT4RWithBidderExcRate();return this.msgrt.send("bidder.ex",{message:n?"true":"false"}),{success:!n,reason:n?"bidder":null,name:"bidder"}}.bind(this),a=function(n){var i,o;r(this,t);var a=null===(i=this._adrequest_user_context)||void 0===i?void 0:i.tnl_ad_pos,s=a&&this.clickCount[a]>=(null===(o=e.t4r[a])||void 0===o?void 0:o.count);return{success:!s,reason:s?"click-count":null,name:"click-count"}}.bind(this),s=function(n){var i,o;r(this,t);var a=null===(i=this._adrequest_user_context)||void 0===i?void 0:i.tnl_ad_pos,s=a&&(null===(o=e.t4r[a])||void 0===o?void 0:o.enabled);return{success:s,reason:s?null:"rule-check",name:"rule-check"}}.bind(this),u=function(n){var i,o;if(r(this,t),!n.isVideo)return{success:!0,name:"viper-check"};var a=null===(i=this._adrequest_user_context)||void 0===i?void 0:i.tnl_ad_pos,s=(null===(o=e.t4r[a])||void 0===o?void 0:o.viper)||0;if(s>0){var u,c=Math.random()<s,d=a&&c&&(null===(u=e.t4r[a])||void 0===u?void 0:u.enabled);return{success:d,reason:d?null:"viper-check",name:"viper-check"}}return{success:!1,reason:"rule-check-viper",name:"viper-check"}}.bind(this),c=function(e){r(this,t);var n=e.isImage,i=e.isText,o=e.isVideo,a=n||i||o;return{success:a,reason:a?null:"media-format",name:"media-format"}}.bind(this);return{checkRule:s,checkMediaFormat:c,checkPublishDate:n,checkMeta:i,checkClickCount:a,checkViper:u,checkExcludedBidder:o}}},{key:"_isVMAP",value:function(e){var t,r,n,i,o,a;if(!e)return!1;var s="preroll"===e&&(!0===(null===(t=this.gameData)||void 0===t||null===(t=t.pAds)||void 0===t?void 0:t.vmap)||!0===(null===(r=this.gameData)||void 0===r||null===(r=r.pAds)||void 0===r||null===(r=r.vmap)||void 0===r?void 0:r.enabled))||"midroll"===e&&(!0===(null===(n=this.gameData)||void 0===n||null===(n=n.mAds)||void 0===n?void 0:n.vmap)||!0===(null===(i=this.gameData)||void 0===i||null===(i=i.mAds)||void 0===i||null===(i=i.vmap)||void 0===i?void 0:i.enabled))||"rewarded"===e&&(!0===(null===(o=this.gameData)||void 0===o||null===(o=o.rAds)||void 0===o?void 0:o.vmap)||!0===(null===(a=this.gameData)||void 0===a||null===(a=a.rAds)||void 0===a||null===(a=a.vmap)||void 0===a?void 0:a.enabled));if(!s)return!1;var u=this._get_vmap_config(e),c=this.adCounter[e];return void 0!==(null==u?void 0:u.start)?c>=(null==u?void 0:u.start):s}},{key:"_getT4ROptions",value:function(e){var t,r=null===(t=this._adrequest_user_context)||void 0===t?void 0:t.tnl_ad_pos;switch(r){case"preroll":case"midroll":case"rewarded":return e.t4r[r]}}},{key:"_is_completed",value:function(e){var t=e.getContentType(),r=e.getAdPodInfo();return!(!t.startsWith("image/")&&"text"!==t&&1!==r.getTotalAds())}},{key:"_get_vmap_context",value:function(e){for(var t=e.adtag,r=e.position,n=e.config,i=e.dp,o=n.count||2,a=[],s=1;s<=o;s++){var u={};u.adtag=this._createCustomAdVastUrl(n["vast_"+s])||t,u.position=r,u.dp=n["vast_"+s]?void 0:i,a.push(u)}return a}},{key:"_get_vmap_config",value:function(e){var t,r,n,i;switch(e){case"preroll":return null===(t=this.gameData)||void 0===t||null===(t=t.pAds)||void 0===t?void 0:t.vmap;case"midroll":return null===(r=this.gameData)||void 0===r||null===(r=r.mAds)||void 0===r?void 0:r.vmap;case"rewarded":return null===(n=this.gameData)||void 0===n||null===(n=n.rAds)||void 0===n?void 0:n.vmap;default:return null===(i=this.gameData)||void 0===i||null===(i=i.pAds)||void 0===i?void 0:i.vmap}}},{key:"_isDP",value:function(e){var t;return!!e&&!0===(null===(t=this.gameData)||void 0===t||null===(t=t.dp)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.enabled)}},{key:"_create_dp_display_context",value:function(){var e=this;return new Promise(function(t){var n=this;r(this,e);try{var i={id:this.topDomain||this.parentDomain,au:"display",ty:"display",aid:this.gameData.gameId,pgu:this.parentURL},o=new WO(this.gameData).checkCustomParams();o&&(i.cp=o);var a=encodeURIComponent(it.encode(JSON.stringify(i)));fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(a)).then(function(e){return r(this,n),e.json()}.bind(this)).then(function(e){if(r(this,n),!e||!e.p)return this.msgrt.send("dp.na",{message:"atom"}),t();var i=e.p/100;this.msgrt.send("dp.fp",{message:i}),t({params:{fp:i},error_url:"https://tag.atom.gamedistribution.com/v1/err?ar=".concat(a),impression_url:"https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(a)})}.bind(this)).catch(function(e){r(this,n),this.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),t()}.bind(this))}catch(e){this.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),t()}}.bind(this))}},{key:"_create_promo_context",value:function(e){var t,n=this,i={id:this.topDomain||this.parentDomain,au:e||"unknown",ty:"video",aid:this.gameData.gameId,pgu:this.parentURL},o=Object.keys(i).map(function(e){return r(this,n),"".concat(e,"=").concat(encodeURIComponent(i[e]))}.bind(this)).join("&");encodeURIComponent(it.encode(JSON.stringify(i)));var a=null===(t=this.gameData.promo)||void 0===t?void 0:t.rainbow,s=null==a?void 0:a.enabled,u="https://tag.atom.gamedistribution.com/v1/rainbow/?".concat(o),c=s?u:void 0;return function(){r(this,n),ku.promoError&&(console.log("promo-test fictional promo error"),c=void 0)}.bind(this),{promo_url:c,promo_imp_blue_url:s?"https://tag.atom.gamedistribution.com/v1/rainbow/blue":void 0,promo_imp_green_url:s?"https://tag.atom.gamedistribution.com/v1/rainbow/green":void 0}}},{key:"_create_dp_context",value:function(e,n){var i=this;return new Promise(function(){var o=t(d.mark((function t(o){var a,s,u,c,l,f=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,i._isDP(e)){t.next=5;break}return i.msgrt.send("dp.na",{message:"rule"}),t.abrupt("return",o());case 5:s={id:i.topDomain||i.parentDomain,au:e||"unknown",ty:"video",aid:i.gameData.gameId,pgu:i.parentURL},(u=new WO(i.gameData).checkCustomParams())&&(s.cp=u),c=encodeURIComponent(it.encode(JSON.stringify(s))),_u("gd-adflow isLastAdapter",null==n?void 0:n.adapterIndex,null==n?void 0:n.isLastAdapter),l=null===(a=i.gameData.promo)||void 0===a?void 0:a.rainbow,_u("gd-adflow promo_enabled",!1,null==l?void 0:l.enabled,null==n?void 0:n.isLastAdapter),fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(c)).then(function(e){return r(this,f),e.json()}.bind(this)).then(function(e){if(r(this,f),!e||!e.p)return i.msgrt.send("dp.na",{message:"atom"}),o();var t=e.p/100;i.msgrt.send("dp.fp",{message:t}),o({id:Date.now(),floor_price:t,error_url:"https://tag.atom.gamedistribution.com/v1/err?ar=".concat(c,"&ec=[ERRORCODE]"),impression_url:"https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(c),skip_url:"https://tag.atom.gamedistribution.com/v1/skp?ar=".concat(c),promo_url:void 0,promo_imp_blue_url:void 0,promo_imp_green_url:void 0})}.bind(this)).catch(function(e){r(this,f),i.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),o()}.bind(this)),t.next=20;break;case 16:t.prev=16,t.t0=t.catch(0),i.msgrt.send("dp.err",{message:(null===t.t0||void 0===t.t0?void 0:t.t0.message)||t.t0}),o();case 20:case"end":return t.stop()}}),t,this,[[0,16]])})));return function(e){return o.apply(this,arguments)}}())}},{key:"_extend_dp_with_adsense",value:function(e,t){if(e&&t)try{var r,n=new C(t.vastUrl,!0);if(null===(r=n.query)||void 0===r||!r.cust_params)return;var i=l.parse(n.query.cust_params);if(!i.tnl_asset_id)return;i.adsense=1,n.query.cust_params=l.stringify(i,!1),e.fallback_url=n.toString(),e.fallback_imp_url="https://tag.atom.gamedistribution.com/v1/rainbow/green"}catch(e){}}},{key:"_extend_hl_url",value:function(e){e.dp;var t=e.hl;e.src;var r=e.tnl_keys,n=!0!==(null==t?void 0:t.bidFloorApplied)?0:1;0===n&&null!=r&&r.hasOwnProperty("fp")?n=2:1!==n||null!=r&&r.hasOwnProperty("fp")||(n=3),r.bfa=n;try{var i,o=new C(e.url,!0);if(null===(i=o.query)||void 0===i||!i.cust_params)return;var a=l.parse(o.query.cust_params);a.bfa=n,a.adsense=0,o.query.cust_params=l.stringify(a,!1),e.url=o.toString(),t.vastUrl=e.url}catch(e){}finally{this.msgrt.send("bfa",{message:n})}}},{key:"_init_hl_script",value:(p=t(d.mark((function e(t){var n,i,o,a,s,u,c,l,f,p,h=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this._getPrebidScripts(),o=i[0],a=function(){return r(this,h),!1}.bind(this),window.idhb=window.idhb||{iabCmpExists:a},window.idhb.options=window.idhb.options||{},Object.assign(window.idhb.options,{assetId:this.gameData.gameId,configUrl:this.topDomain||this.parentDomain,parentUrl:this.parentURL,pageType:"gd"}),"undefined"===window.idhb.options.configUrl&&(window.idhb.options.configUrl=null),window.idhb.que=window.idhb.que||[],(s=new URL(o)).searchParams.append("referer",window.idhb.options.configUrl),o=s.href,e.next=13,ht(o,"gdsdk_prebid",{alternates:i,error_prefix:"Blocked:",exists:function(){return r(this,h),window.idhb.requestAds}.bind(this)});case 13:return e.next=15,this.checkOpphbPath();case 15:u=ct("ch",window.location.href),c=ct("ch_date",window.location.href),l={tnl_content_category:this.category.toLowerCase()},u&&(l.channel=u),c&&(l.ch_date=c),(f=ct("hl_label",this.parentURL)||ct("hl_label",window.location.href))&&(l.label=f),window.idhb.setAdserverTargeting(l),window.idhb.allowPersonalizedAds(!!parseInt(this.userAllowedPersonalizedAds)),null!=(p=window.idhb.getConfig())&&null!==(n=p.hbw)&&void 0!==n&&null!==(n=n.slots)&&void 0!==n&&null!==(n=n.gd__banner)&&void 0!==n&&n.sizes&&(p.hbw.slots.gd__banner.sizes=[[120,600],[160,600],[250,250],[300,50],[300,100],[300,250],[300,600],[320,50],[320,480],[336,280],[728,90]],p.setConfig(p)),window.idhb.addEventListener("slotRenderEnded",function(e){var t=this;r(this,h);try{var n,i,o=e.slotId.split("@");o=1===o.length?o[0]:o[1],e.isEmpty?(null!==(n=this.atom_display)&&void 0!==n&&n.error_url&&(fetch(this.atom_display.error_url).catch(function(e){r(this,t)}.bind(this)),delete this.atom_display),_u("display_test DISPLAYAD_ERR",e),this._broadcast("DISPLAYAD_ERROR",{message:o,status:"warning"})):(null!==(i=this.atom_display)&&void 0!==i&&i.impression_url&&(fetch(this.atom_display.impression_url).catch(function(e){r(this,t)}.bind(this)),delete this.atom_display),_u("display_test DISPLAYAD_IMPRESSION"),this._broadcast("DISPLAYAD_IMPRESSION",{message:o,status:"success"}))}catch(e){}}.bind(this));case 27:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"checkOpphbPath",value:(f=t(d.mark((function e(){var t,r,n,i,o,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=this.topDomain||this.parentDomain||"",i=(null===(t=this.gameData)||void 0===t?void 0:t.gameId)||"",o=(null===(r=this.options)||void 0===r?void 0:r.width)||640,e.next=6,fetch("https://pub.headerlift.com/opphb?page_url=".concat(n,"&page_type=gd&page_width=").concat(o,"&aid=").concat(i));case 6:a=e.sent,wu("opphb load success",a),e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(0),new Error("Blocked: https://pub.headerlift.com/opphb");case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return f.apply(this,arguments)})},{key:"_init_ima_script",value:(c=t(d.mark((function e(t){var n,i,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=["https://imasdk.googleapis.com/js/sdkloader/ima3_debug.js","https://imasdk.googleapis.com/js/sdkloader/ima3.js","http://imasdk.googleapis.com/js/sdkloader/ima3_debug.js","http://imasdk.googleapis.com/js/sdkloader/ima3.js"],i=this.options.debug?n[0]:n[1],e.next=4,ht(i,"gdsdk_ima",{alternates:n,error_prefix:"Blocked:",exists:function(){return r(this,o),window.google&&window.google.ima}.bind(this)});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"_init_afg_script",value:(u=t(d.mark((function e(t){var n,i,o,a,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.gameData.afg_disabled){e.next=3;break}return e.abrupt("return");case 3:return(u={}).crossorigin="anonymous",u["data-ad-client"]=(null==t||null===(n=t.adsense_client)||void 0===n?void 0:n.length)>0?t.adsense_client:"ca-pub-2316275586951220",u["data-ad-frequency-hint"]="30s",u.allow="autoplay",(null==t||null===(i=t.adsense_channel)||void 0===i?void 0:i.length)>0&&(u["data-ad-channel"]=t.adsense_channel),(null==t||null===(o=t.adsense_host)||void 0===o?void 0:o.length)>0&&(u["data-ad-host"]=t.adsense_host),!0===(null==t?void 0:t.adsense_adbreak_test)&&(u["data-adbreak-test"]="on"),null!==(a=this.gameData.sdk.afg)&&void 0!==a&&a.enabled&&null!==(s=this.gameData.sdk.afg)&&void 0!==s&&s.use_own&&(u["data-ad-client"]=this.gameData.sdk.afg.adsense_client,u["data-ad-slot"]=this.gameData.sdk.afg.adsense_ad_slot,u["data-ad-format"]="auto"),e.next=16,ht("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js","afg",{error_prefix:"Blocked:",exists:function(){return r(this,c),!!window.adsbygoogle}.bind(this),attrs:u});case 16:window.adsbygoogle=window.adsbygoogle||[],window.adsbygoogle.push({sound:"on",preloadAdBreaks:"on"});case 18:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"fixOutOfBounds",value:function(){try{if(!(this.gameData.afgszf&&this.gameData.afgszf.enabled))return;for(var e=this.gameData.afgszf,t=e.height,r=e.scrolls,n=t||"120vh",i=r||!0,o=document.getElementsByClassName("adsbygoogle"),a=0;a<o.length;a++){var s,u=o[a],c=u&&(null===(s=u.children[0])||void 0===s?void 0:s.children[0]);c&&"IFRAME"===c.tagName&&c.style.height!==n&&(_u("out-of-bounds fix apply"),c.style.height=n,i&&(c.parentElement.style.overflow="auto"))}}catch(e){_u("out-of-bounds error: ".concat(e.message))}}},{key:"clearSession",value:function(){this.requestRunning=!1}},{key:"_startAdsensePlacementRewardedAd",value:(s=t(d.mark((function e(t){var n,i,o,a,s,u,c,l,f=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,e.prev=1,!this.requestRunning){e.next=5;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 5:if(!void function(){if(r(this,f),ku.fictionalAdSenseError||t.params.shouldFail)return this._broadcast("AD_ERROR",{message:"fictional adsense rewarded error",status:"error",skipForward:!0}),!0}.bind(this)){e.next=8;break}return e.abrupt("return");case 8:this.requestRunning=!0,this._send_atom_event("sg.ad.rw.requested"),n=!1,i=function(){r(this,f),n=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),o=function(){r(this,f),n=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),a=function(){r(this,f),n=!0,this._send_atom_event("sg.ad.rw.dismissed")}.bind(this),s=function(){r(this,f),n=!0,this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this._send_atom_event("sg.ad.rw.viewed")}.bind(this),u=function(e){r(this,f),n=!0,e()}.bind(this),c=function(e){r(this,f),n=!0,this.resetForNext();var t="rewarded";this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}):(this._broadcast("AD_ERROR",{message:e.breakStatus,status:"error",skipForward:!0}),"dismissed"!==e.breakStatus&&this._send_atom_event("sg.dbg.rw",e))}.bind(this),l=function(e){window.adsbygoogle.push(e)},setTimeout(function(){r(this,f),n||(wu("gd-adflow adsense.reward timeout happened!"),this.requestRunning=!1,this._broadcast("AD_ERROR",{message:"timeout",status:"error",skipForward:!0}),this._send_atom_event("sg.dbg.rw",{breakStatus:"timeout"}))}.bind(this),1e3),l({type:"reward",name:"reward-in-game",beforeAd:i,afterAd:o,adDismissed:a,adViewed:s,beforeReward:u,adBreakDone:c}),e.next=26;break;case 22:throw e.prev=22,e.t0=e.catch(1),this._onError(e.t0),e.t0;case 26:case"end":return e.stop()}}),e,this,[[1,22]])}))),function(e){return s.apply(this,arguments)})},{key:"_startAdsensePlacementPreroll",value:(a=t(d.mark((function e(t){var n,i,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,e.prev=1,!this.requestRunning){e.next=5;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 5:if(!void function(){if(r(this,o),ku.fictionalAdSenseError||t.params.shouldFail)return this._broadcast("AD_ERROR",{message:"fictional adsense preroll error",status:"error"}),!0}.bind(this)){e.next=8;break}return e.abrupt("return");case 8:this.requestRunning=!0,this._send_atom_event("sg.ad.pr.requested"),this.adPlacementEventReceived=!1,n=function(){r(this,o),this.adPlacementEventReceived=!0}.bind(this),i=function(e){r(this,o),this.adPlacementEventReceived=!0,this.resetForNext();var t="preroll";this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?(this._send_atom_event("sg.ad.pr.viewed"),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"}),this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}),this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})):(this._broadcast("AD_ERROR",{message:e.breakStatus,status:"error"}),this._send_atom_event("sg.dbg.pr",e))}.bind(this),this._startTimeoutForAdBreak({adType:"preroll"}),a={type:"preroll",beforeAd:n,adBreakDone:i},window.adsbygoogle.push(a),e.next=22;break;case 18:throw e.prev=18,e.t0=e.catch(1),this._onError(e.t0),e.t0;case 22:case"end":return e.stop()}var a}),e,this,[[1,18]])}))),function(e){return a.apply(this,arguments)})},{key:"_startAdsensePlacementStart",value:(o=t(d.mark((function e(t){var n,i,o,a=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,e.prev=1,!this.requestRunning){e.next=5;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 5:if(!void function(){if(r(this,a),ku.fictionalAdSenseError||t.params.shouldFail)return this._broadcast("AD_ERROR",{message:"fictional adsense preroll error 2",status:"error"}),!0}.bind(this)){e.next=8;break}return e.abrupt("return");case 8:this.requestRunning=!0,this._send_atom_event("sg.ad.pr.requested"),n=function(){r(this,a),this.adPlacementEventReceived=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),i=function(){r(this,a),this.adPlacementEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),this.adPlacementEventReceived=!1,o=function(e){r(this,a),this.adPlacementEventReceived=!0,this.resetForNext();var t="preroll";this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?(this._send_atom_event("sg.ad.pr.viewed"),this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"})):(this._broadcast("AD_ERROR",{message:e.breakStatus,status:"error"}),this._send_atom_event("sg.dbg.pr",e))}.bind(this),this._startTimeoutForAdBreak({adType:"preroll"}),s={type:"start",name:"start-in-game",beforeAd:n,afterAd:i,adBreakDone:o},window.adsbygoogle.push(s),e.next=23;break;case 19:throw e.prev=19,e.t0=e.catch(1),this._onError(e.t0),e.t0;case 23:case"end":return e.stop()}var s}),e,this,[[1,19]])}))),function(e){return o.apply(this,arguments)})},{key:"_startTimeoutForAdBreak",value:function(e){var t,n,i=this;if(null===(t=this.gameData)||void 0===t||null===(t=t.ad_blcks)||void 0===t||null===(t=t.adsenseTimeout)||void 0===t?void 0:t.enabled){null==e||e.adType,null===(n=this.gameData)||void 0===n||null===(n=n.ad_blcks)||void 0===n||null===(n=n.adsenseTimeout)||void 0===n||n.timeout;var o=setTimeout(function(){r(this,i),this.adPlacementEventReceived||(this._broadcast("AD_ERROR",{message:"timeout-_startTimeoutForAdBreak",status:"error"}),this.adPlacementEventReceived=!1,this.requestRunning=!1),clearTimeout(o)}.bind(this),5e3)}}},{key:"_startTimeoutForOpus",value:function(){var e=this,t=setTimeout(function(){r(this,e),this.opusEventReceived||(this._broadcast("AD_ERROR",{message:"opus-sdk-timeout",status:"error",reason:"forced-sdk-timeout"}),this.opusEventReceived=!1,this.requestRunning=!1),clearTimeout(t)}.bind(this),8e3)}},{key:"_startAdsensePlacementNext",value:(i=t(d.mark((function e(t){var n,i,o,a=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,e.prev=1,!this.requestRunning){e.next=5;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 5:if(!void function(){if(r(this,a),ku.fictionalAdSenseError||t.params.shouldFail)return this._broadcast("AD_ERROR",{message:"fictional adsense midroll error",status:"error"}),!0}.bind(this)){e.next=8;break}return e.abrupt("return");case 8:this.requestRunning=!0,this._send_atom_event("sg.ad.mr.requested"),n=function(){r(this,a),this.adPlacementEventReceived=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),i=function(){r(this,a),this.adPlacementEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),this.adPlacementEventReceived=!1,o=function(e){r(this,a),this.adPlacementEventReceived=!0,this.resetForNext();var t="midroll";this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?(this._send_atom_event("sg.ad.mr.viewed"),this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"})):(this._broadcast("AD_ERROR",{message:e.breakStatus,status:"error"}),this._send_atom_event("sg.dbg.mr",e))}.bind(this),this._startTimeoutForAdBreak({adType:"midroll"}),s={type:"next",name:"next-in-game",beforeAd:n,afterAd:i,adBreakDone:o},window.adsbygoogle.push(s),e.next=23;break;case 19:throw e.prev=19,e.t0=e.catch(1),this._onError(e.t0),e.t0;case 23:case"end":return e.stop()}var s}),e,this,[[1,19]])}))),function(e){return i.apply(this,arguments)})},{key:"_send",value:function(e,t){try{var r=this.msgrt,n=r._layout,i=r._ua,o={tp:e,ct:0,vrs:this.PackageJSON.version,url:this.parentURL,rfr:document.referrer,tdmn:this.topDomain||this.parentDomain,dpth:0,args:t,ua:{brnm:i.browser.name,brvs:i.browser.version,osnm:i.os.name,osvs:i.os.version,dvmd:i.device.model,w:n.w,h:n.h}};return fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(it.encode(JSON.stringify(o)))))}catch(e){}}},{key:"_send_atom_event",value:function(e,t){var r={gid:this.gameData.slug,md5:this.gameData.gameId,pid:0,pnm:this.gameData.pname,ctry:this.gameData.ctry,lcl:"en",hle:1,ads:1,args:t,href:window.location.href},n=(new iD).get();return r=DT(DT({},r),n),r=t?DT(DT({},r),t):r,this._send(e,r)}},{key:"_isAfgPositionNext",value:function(e){return void 0!==e.adTimestamp}},{key:"_isAfgPositionStart",value:function(e){if(void 0!==e.adTimestamp)return!1;var t="preroll";return this.adCounter[t]=this.adCounter[t]||0,0===this.adCounter[t]}},{key:"attachAfgPosition",value:function(e){var t=e.params.position;switch(t){case"preroll":case"start":case"pause":case"next":case"browse":case"reward":return}var r=e.adType;if(r===ot.Rewarded)t="reward";else if(r===ot.Interstitial){var n,i;if(this._isAfgPositionStart(e))t=null===(n=this.gameData.pAds)||void 0===n||!n.enabled||null!==(i=this.gameData.loader)&&void 0!==i&&i.enabled?"start":"next";else this._isAfgPositionNext(e)&&(t="next")}t||(t="preroll"),e.params.position=t}},{key:"_broadcast",value:function(e,t){var n=this,i=!1;["AD_ERROR"].some(function(t){return r(this,n),t===e}.bind(this))&&(i=!this.adContext.isLastAdapter||this.adContext.extraPromoRunOnFail);var o=this.getCurrentAdPosition(this.adContext.adType);this.eventBus.broadcast(e,DT(DT({},t),{},{skipForward:i,adPosition:o}))}},{key:"mute",value:(n=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.adContext&&(this.adContext.muteRequested=!0),this.adsManager&&this.adsManager.setVolume(0);case 2:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"terminate",value:(e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.cancel();case 1:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e,n,i,o,a,s,u,c,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,R,I,T}(),OT=M((function e(r){var n=this;O(this,e),Eu(this,"load",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xb(n.moduleName);case 2:n.module=e.sent;case 3:case"end":return e.stop()}}),e)})))),Eu(this,"promo",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.module){e.next=3;break}return e.next=3,n.load();case 3:return e.abrupt("return",n.module[n.moduleDefault]);case 4:case"end":return e.stop()}}),e)}))));var i=r.package||"gd-sdk-stone-dynamic",o=r.package_version||"1.1.1",a=r.template||"puzzle",s=r.dependencies||[];this.moduleName="GDPromoByOrbit",this.moduleDefault=a.charAt(0).toUpperCase()+a.slice(1),this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/".concat(i,"/").concat(o,"/dist/").concat(a.toLowerCase(),"/iife/index.js"),dependencies:s},Qb(this.moduleName,this.moduleConfig)})),TT=M((function e(r){var n=this;O(this,e),Eu(this,"load",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xb(n.moduleName);case 2:n.module=e.sent;case 3:case"end":return e.stop()}}),e)})))),Eu(this,"splash",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.module){e.next=3;break}return e.next=3,n.load();case 3:return e.abrupt("return",n.module[n.moduleDefault]);case 4:case"end":return e.stop()}}),e)}))));var i=r.package||"gd-sdk-air-dynamic",o=r.package_version||"1.2.0",a=r.template||"pluto",s=r.dependencies||[];this.moduleName="GDSplashDynamic",this.moduleDefault=a.charAt(0).toUpperCase()+a.slice(1),this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/".concat(i,"/").concat(o,"/dist/").concat(a.toLowerCase(),"/iife/index.js"),dependencies:s},Qb(this.moduleName,this.moduleConfig)})),PT=function(e,t){console.log(e,t)},MT={},LT={},BT=null;function jT(){for(var e,t=window,r=null,n=null;!e;){try{if("function"==typeof t.__tcfapi||"function"==typeof t.__cmp){"function"==typeof t.__tcfapi?(n=2,r=t.__tcfapi):(n=1,r=t.__cmp),e=t;break}}catch(e){}try{if(t.frames.__tcfapiLocator){n=2,e=t;break}}catch(e){}try{if(t.frames.__cmpLocator){n=1,e=t;break}}catch(e){}if(t===window.top)break;t=t.parent}return MT.version=n,MT.frame=e,MT.function=r,MT.version}function UT(e){var t=this;return BT||(BT=new Promise(function(n){function i(t,r){if(PT("Received a response from CMP",t),r){var i,o;if(!1!==t.gdprApplies)return"tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus?(("boolean"!=typeof(o=(i=t)&&"boolean"==typeof i.gdprApplies?i.gdprApplies:e.defaultGdprScope)||!0===o&&"string"!=typeof i.tcString)&&n({result:"cmpUnexpectedResponse",cmp:MT,consentData:i}),void n({result:"ok",consentData:t})):void 0;n({result:"ok",consentData:t})}else n({result:"cmpCallFailed"})}r(this,t),jT(),MT.frame?2===MT.version?(PT("TCF v2 CMP found. Fetching the consent."),MT.function?(PT("CMP API is directly accessible, calling it now..."),MT.function("addEventListener",MT.version,i)):(PT("CMP API is outside the current iframe, calling it now..."),function(e,t,n){var i=this,o="__tcfapi";function a(e){var t="".concat(o,"Return"),r="string"==typeof e.data&&e.data.indexOf(t)>=0?JSON.parse(e.data):e.data;if(r[t]&&r[t].callId){var n=r[t];void 0!==LT[n.callId]&&LT[n.callId](n.returnValue,n.success)}}window[o]=function(e,n,a,s){r(this,i);var u=Math.random()+"",c=Eu({},"".concat(o,"Call"),{command:e,parameter:s,callId:u,version:n});LT[u]=a,t.postMessage(c,"*")}.bind(this),window.addEventListener("message",a,!1),window[o](e,MT.version,n)}("addEventListener",MT.frame,i))):n({result:"cmpVersionNotV2",cmp:MT}):n({result:"cmpNotFound"})}.bind(this)),BT)}var FT=function(){return M((function e(){O(this,e),this.productName="Game Distribution"}),[{key:"checkIfExcluded",value:function(e){try{var t;return!(null===(t=e.diagnostic)||void 0===t||null===(t=t.gameDock)||void 0===t||!t.excluded)}catch(e){return console.log("Error on checkIfExclude check",e),!1}}},{key:"track",value:(e=t(d.mark((function e(t,r){var n,i,o,a,s,u;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.checkIfExcluded(r)){e.next=3;break}return e.abrupt("return");case 3:if(i=null==t||null===(n=t.visitor)||void 0===n||null===(n=n.visitorData)||void 0===n?void 0:n.visitorId){e.next=6;break}return e.abrupt("return");case 6:return o=encodeURIComponent(this.productName),a=encodeURIComponent(i),e.prev=8,s="https://tracker-v4.gamedock.io/v1/events-tracker/track/product/".concat(o,"/user_id/").concat(a),e.next=12,fetch(s,{method:"POST"});case 12:e.sent,e.next=28;break;case 15:return e.prev=15,e.t0=e.catch(8),console.log("GAME_DOCK. fail v4",e.t0),e.prev=18,u="https://tracker.gamedock.io/v1/events-tracker/track/product/".concat(o,"/user_id/").concat(a),e.next=22,fetch(u,{method:"POST"});case 22:e.sent,e.next=28;break;case 25:e.prev=25,e.t1=e.catch(18),console.log("GAME_DOCK. fail v6",e.t1);case 28:case"end":return e.stop()}}),e,this,[[8,15],[18,25]])}))),function(t,r){return e.apply(this,arguments)})}]);var e}(),NT=new FT;function $T(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return GT(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?GT(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function GT(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var HT,zT=function(e){var t=this,n=e.src,i=e.attributes,o=e.target,a=e.isAsync;return new Promise(function(e,s){var u=this;r(this,t);try{var c=document.createElement("script");if(c.async=null==a||a,c.type="text/javascript",c.onload=function(){r(this,u),e()}.bind(this),c.onerror=function(){r(this,u);var e="Error on script load, Error: ".concat(n);console.log(e),s(e)}.bind(this),c.src=n,i){var d,l=$T(i);try{for(l.s();!(d=l.n()).done;){var f=d.value,p=f.key,h=f.value;c.setAttribute(p,h)}}catch(e){l.e(e)}finally{l.f()}}o||(o=document.head),o.appendChild(c)}catch(e){var m="Error on script load catch, Error: ".concat(n);console.log(m,e),s(m)}}.bind(this))},ZT="ffd4774b-99ae-4464-8f40-3afa12b4692e",KT=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,zT({src:"https://cdn.cookielaw.org/consent/tcf.stub.js",attributes:[{key:"id",value:"gd-cookie-pro-tcf-stub"},{key:"charset",value:"UTF-8"}],isAsync:!1});case 3:return e.next=5,zT({src:"https://cdn.cookielaw.org/consent/".concat(ZT,"/OtAutoBlock.js"),attributes:[{key:"id",value:"gd-cookie-pro-autoblock"}],isAsync:!1});case 5:return e.next=7,zT({src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",attributes:[{key:"id",value:"gd-cookie-pro-stub"},{key:"charset",value:"UTF-8"},{key:"data-domain-script",value:ZT}],isAsync:!1});case 7:r=void 0,n=void 0,i=void 0,r=(t={inlineScript:"function OptanonWrapper() { }"}).inlineScript,n=t.target,(i=document.createElement("script")).text=r,n||(n=document.head),n.appendChild(i),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.log("GD: CMP error on load",e.t0);case 13:case"end":return e.stop()}var t,r,n,i}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),qT=new uD.exports.EventEmitter,VT={"https://games.softgames.com":{"splash-hidden":"splash-hidden"},"https://sg.gamedistribution.com":{"splash-hidden":"splash-hidden"},"https://html5.gamedistribution.com":{key:"value"}},WT=!1;window.addEventListener("message",(function(e){var t=this,n=e.data,i=e.origin,o=n.type;if(Object.keys(VT).some(function(e){return r(this,t),e===i}.bind(this))&&(null==n||!n.__tcfapiCall)){var a=!n.type||!n.type.startsWith("gd-sdk")&&!("parent-data-response"===n.type)||"sg-game-event"===n.type;!function(e){if("gd-sdk-on-event"===(null==e?void 0:e.type)){var t,r,n;if("midroll"!==(null==e||null===(t=e.event)||void 0===t?void 0:t.adPosition))return;var i="CONTENT_RESUME_REQUESTED"===(null===(r=e.event)||void 0===r?void 0:r.name);"CONTENT_PAUSE_REQUESTED"===(null===(n=e.event)||void 0===n?void 0:n.name)&&(WT=!0),i&&WT&&(WT=!1,window.parent.postMessage({type:"sg-game-event",eventName:"levelFinish",data:{score:100}},"*"))}}(n);var s=function(){r(this,t);try{var n;return null==e||null===(n=e.source)||void 0===n||null===(n=n.location)||void 0===n?void 0:n.href}catch(e){}}.bind(this);if(window.parent&&a){if("https://html5.gamedistribution.com"===i){var u=s();if(!u)return;var c=u&&["9555f04e1900482aaaef710cd2f8c440"].some(function(e){return r(this,t),u.indexOf(e)>0}.bind(this)),d=["sg-game-event"].some(function(e){return r(this,t),e===(null==n?void 0:n.type)}.bind(this));if(!c&&!d)return}var l=n.eventName,f=n.data;window.mpHelper&&("levelStart"!==l&&"levelFinish"!==l||window.mpHelper.sendStat("level",f.level),"levelFinish"===l&&window.mpHelper.sendStat("score",f.score)),window.parent.postMessage(n,"*")}if(o){var p=VT[i][o];p&&qT.emit(p,n)}}}),!1);var YT=new Uint8Array(16);function QT(){if(!HT&&!(HT="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return HT(YT)}var JT=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var XT=[],eP=0;eP<256;++eP)XT.push((eP+256).toString(16).substr(1));function tP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(XT[e[t+0]]+XT[e[t+1]]+XT[e[t+2]]+XT[e[t+3]]+"-"+XT[e[t+4]]+XT[e[t+5]]+"-"+XT[e[t+6]]+XT[e[t+7]]+"-"+XT[e[t+8]]+XT[e[t+9]]+"-"+XT[e[t+10]]+XT[e[t+11]]+XT[e[t+12]]+XT[e[t+13]]+XT[e[t+14]]+XT[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&JT.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r}function rP(e,t,r){var n=(e=e||{}).random||(e.rng||QT)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return tP(n)}function nP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var iP="__msgr",oP=rP(),aP=function(e){var t=this;if(!window[iP]){var n=document.createElement("iframe");if(n.src="https://static.gamedistribution.com/message/index.html",n.style.display="none",n.name=iP,document.body.appendChild(n),window!==window.top){var i={gameId:e.gameId,target:e.evnts.domain,token:oP,event_name:"TokenGenerated",timestamp:Date.now()};n.onload=function(){cP(i)},setInterval(function(){r(this,t),i.timestamp=Date.now(),i.event_name="Heartbeat",cP(i)}.bind(this),1e3*e.evnts.heartbeatDuration)}}window.addEventListener("message",function(e){r(this,t);try{var n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nP(Object(r),!0).forEach((function(t){Eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nP(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e.data);if(!n.event_name)return;n.token=oP,cP(n)}catch(e){console.error("GD Messager Error",e.message)}}.bind(this),!1)},sP=function(e){try{var t={gameId:e.game.gameId,target:e.game.evnts.domain,event_name:e.event,timestamp:Date.now()},r=uP(window);r!==window.top&&(null==r||r.postMessage(t,"https://html5.gamedistribution.com"))}catch(e){}},uP=function e(t){try{var r,n=null==t?void 0:t.parent;if("game"===(null===(r=n.document)||void 0===r||null===(r=r.activeElement)||void 0===r?void 0:r.id))return n;e(n)}catch(e){return t}},cP=function(e){try{window[iP]&&window[iP].postMessage(e,"*")}catch(e){console.log("GD Messager initialization, please wait....")}},dP=function(){return M((function e(t){O(this,e),this.adContainer=document.getElementById("gdsdk__advertisement"),this.adContainerInner=document.getElementById("gdsdk__advertisement_slot"),this._adRequest=t.adRequest,this._gameData=t._gameData,this._msgrt=t._msgrt,this._adInstance=t._adInstance,this._eventBus=t._eventBus,this.blockedAdsMap=t._blockedAdsMap,this._parentURL=t._parentURL,this._parentDomain=t._parentDomain,this._onResumeGame=t._onResumeGame.bind(t),this._onPauseGame=t._onPauseGame.bind(t),this._onRewardedWatchComplete=t._onRewardedWatchComplete.bind(t),this._onAdError=t._onAdError.bind(t),this._promoShowSuccess=!1}),[{key:"run",value:function(e){var n=e.duration,i=this;return new Promise(function(){var e=t(d.mark((function e(t,o){var a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i.add();case 3:a=i.show(),setTimeout(function(){r(this,s);try{i.hide(),t({success:a})}catch(e){o(e)}}.bind(this),1e3*n),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),o(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));return function(t,r){return e.apply(this,arguments)}}())}},{key:"show",value:function(){return this.promo_data.game?(this.adContainer.style.visibility="visible",this.promo.style.display="block",this._onPauseGame("Pause the game for the promo","success"),this._promoShowSuccess=!0):this._onAdError("Promo not found"),this._promoShowSuccess}},{key:"hide",value:function(){var e;(this.promo.remove(),this.adContainer.style.visibility="hidden",this._promoShowSuccess)&&("reward"===(null===(e=this._adRequest.params)||void 0===e?void 0:e.position)&&this._onRewardedWatchComplete());this._onResumeGame("Advertisement(s) are done. Start / resume the game.","success")}},{key:"add",value:(i=t(d.mark((function e(){var r,n,i,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.fetch_promo();case 3:this.promo_data=e.sent,r=document.createElement("div"),this.promo=r,n=this.promo_data,this.promo.addEventListener("click",function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),console.log(n),o.track_click(n.click_tracking),window.open(n.click_through,"_blank");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(i=document.createElement("iframe")).src=this.promo_data.renderer_url,i.setAttribute("frameborder",0),this.addStyles(),this.promo.classList.add("gd__promo"),i.classList.add("gd__promo__iframe"),this.promo.appendChild(i),this.adContainer.appendChild(this.promo),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),console.log(e.t0);case 21:case"end":return e.stop()}}),e,this,[[0,18]])}))),function(){return i.apply(this,arguments)})},{key:"addStyles",value:function(){var e="\n .gd__promo{\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: transparent;\n z-index: 1;\n cursor: pointer;\n }\n .gd__promo__iframe{\n position: relative;\n z-index: -1;\n width:".concat(this.adContainerInner.style.width,";\n height:").concat(this.adContainerInner.style.height,";\n }\n "),t=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__promo__style",t,e)}},{key:"addStylesheet",value:function(e,t,r){if(!document.getElementById(e)){var n=document.createElement("style");n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}},{key:"fetch_promo",value:(n=t(d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://tag.atom.gamedistribution.com/v1/rainbow/pick?id=".concat(this._parentDomain,"&aid=").concat(this._gameData.gameId)).then(function(e){return r(this,n),e.json()}.bind(this));case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"track_click",value:(e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}]);var e,n,i}();function lP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function fP(e){return function(e){if(Array.isArray(e))return lP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return lP(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lP(e,t):void 0}}(e)||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 pP=function(){return M((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"GD",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ObjectStore";O(this,e),this.dbName=t,this.storeName=r,this.db=null,this.init()}),[{key:"init",value:function(){var e=this;return new Promise(function(t,n){var i=this;r(this,e);var o=indexedDB.open(this.dbName,1);o.onerror=function(e){r(this,i),console.error("Database error:",e.target.error),n(e.target.error)}.bind(this),o.onsuccess=function(e){r(this,i),this.db=e.target.result,t(this.db)}.bind(this),o.onupgradeneeded=function(e){r(this,i);var t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName,{keyPath:"key"})}.bind(this)}.bind(this))}},{key:"getItem",value:(o=t(d.mark((function e(t){var n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.init();case 3:return e.abrupt("return",new Promise(function(e,i){var o=this;r(this,n);var a=this.db.transaction([this.storeName],"readonly").objectStore(this.storeName).get(t);a.onerror=function(e){r(this,o),console.error("Get item error:",e.target.error),i(e.target.error)}.bind(this),a.onsuccess=function(t){r(this,o),a.result?e(a.result.value):e(null)}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"setItem",value:(i=t(d.mark((function e(t,n){var i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.init();case 3:return e.abrupt("return",new Promise(function(e,o){var a=this;r(this,i);var s=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).put({key:t,value:n});s.onerror=function(e){r(this,a),console.error("Set item error:",e.target.error),o(e.target.error)}.bind(this),s.onsuccess=function(t){r(this,a),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"removeItem",value:(n=t(d.mark((function e(t){var n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.init();case 3:return e.abrupt("return",new Promise(function(e,i){var o=this;r(this,n);var a=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).delete(t);a.onerror=function(e){r(this,o),console.error("Remove item error:",e.target.error),i(e.target.error)}.bind(this),a.onsuccess=function(t){r(this,o),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"clear",value:(e=t(d.mark((function e(){var t=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.init();case 3:return e.abrupt("return",new Promise(function(e,n){var i=this;r(this,t);var o=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).clear();o.onerror=function(e){r(this,i),console.error("Clear store error:",e.target.error),n(e.target.error)}.bind(this),o.onsuccess=function(t){r(this,i),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e,n,i,o}(),hP=function(){return M((function e(r){var n=r.mode;O(this,e),this.setItem=function(){var e=t(d.mark((function e(t,r){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),this.getItem=function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),"indexed-db"===n?(this.indexedStore=new pP,this.setItem=this.indexedStore.setItem.bind(this.indexedStore),this.getItem=this.indexedStore.getItem.bind(this.indexedStore)):"local-storage"===n&&(this.setItem=function(){var e=t(d.mark((function e(t,r){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",bt.set(t,r));case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),this.getItem=function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",bt.getString(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}),[{key:"set",value:(r=t(d.mark((function e(t,r){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=JSON.stringify(r),e.next=3,this.setItem(t,n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"get",value:(e=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getItem(t);case 2:return r=e.sent,e.abrupt("return",r?JSON.parse(r):null);case 4:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})}]);var e,r}();function mP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mP(Object(r),!0).forEach((function(t){Eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mP(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var gP="_gd_vs";function AP(e){return bP.apply(this,arguments)}function bP(){return bP=t(d.mark((function e(t){var r,n,i,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.gameId,n=t.serverDate,o=[],!window.indexedDB){e.next=13;break}return e.prev=3,e.next=6,wP({gameId:r,serverDate:n});case 6:i=e.sent,e.next=13;break;case 9:e.prev=9,e.t0=e.catch(3),xu("visit-update error, indexedDb",e.t0.message),o.push(e.t0.message);case 13:if(i||!bt.available){e.next=24;break}return e.prev=14,e.next=17,yP({gameId:r,serverDate:n});case 17:i=e.sent,e.next=24;break;case 20:e.prev=20,e.t1=e.catch(14),xu("visit-update error, Ls",e.t1.message),o.push(e.t1.message);case 24:return e.abrupt("return",vP(vP({},i),{},{errors:o}));case 25:case"end":return e.stop()}}),e,null,[[3,9],[14,20]])}))),bP.apply(this,arguments)}function yP(e){return _P.apply(this,arguments)}function _P(){return _P=t(d.mark((function e(t){var r,n,i,o,a,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.gameId,n=t.serverDate,o=new hP({mode:i="local-storage"}),e.next=5,o.get(gP);case 5:return(a=e.sent)||(a={gids:{}}),a.gids[r]||(a.gids[r]={fv:n,vc:0}),(s=a.gids[r]).vc++,s.lv=n,e.next=13,o.set(gP,a);case 13:return e.abrupt("return",{visit:s,mode:i});case 14:case"end":return e.stop()}}),e)}))),_P.apply(this,arguments)}function wP(e){return xP.apply(this,arguments)}function xP(){return xP=t(d.mark((function e(t){var r,n,i,o,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.gameId,n=t.serverDate,o=new hP({mode:i="indexed-db"}),e.next=5,o.get(r);case 5:return(a=e.sent)||(a={fv:n,vc:0}),a.vc++,a.lv=n,e.next=11,o.set(r,a);case 11:return e.abrupt("return",{visit:a,mode:i});case 12:case"end":return e.stop()}}),e)}))),xP.apply(this,arguments)}let kP=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t};var EP={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,o||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var u,c,d=this._events[s],l=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),l){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,n),!0;case 4:return d.fn.call(d.context,t,n,i),!0;case 5:return d.fn.call(d.context,t,n,i,o),!0;case 6:return d.fn.call(d.context,t,n,i,o,a),!0}for(c=1,u=new Array(l-1);c<l;c++)u[c-1]=arguments[c];d.fn.apply(d.context,u)}else{var f,p=d.length;for(c=0;c<p;c++)switch(d[c].once&&this.removeListener(e,d[c].fn,void 0,!0),l){case 1:d[c].fn.call(d[c].context);break;case 2:d[c].fn.call(d[c].context,t);break;case 3:d[c].fn.call(d[c].context,t,n);break;case 4:d[c].fn.call(d[c].context,t,n,i);break;default:if(!u)for(f=1,u=new Array(l-1);f<l;f++)u[f-1]=arguments[f];d[c].fn.apply(d[c].context,u)}}return!0},s.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||a(this,o);else{for(var u=0,c=[],d=s.length;u<d;u++)(s[u].fn!==t||i&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(EP);var SP=EP.exports;function DP({window:e,serviceId:t}){return e&&t?t===this.serviceId?Promise.reject(new Error("[IS] Cannot connect to self")):new Promise(((r,n)=>{const i=kP();this.transactionHandler[i]=e=>{if("object"!=typeof e.data)return;const{contextId:t,scriptId:i,serviceId:o,messageId:a,sender:s}=e.data||{};t&&i&&o&&a&&s&&0!==e.ports.length&&(e.ports[0].start(),this.router=e.ports[0],this.router.onmessage=this.handleMessage.bind(this),this.router.serviceId=o,this.router.onmessageerror=e=>{console.error(`[IS] ${this.id}: Error received from router`,e?.message||e)},this.verbose&&console.log(`[IS] ${this.id}: Communication channel established with ${s}`),this.api.proxy({method:"echo",args:{ts:Date.now()}}).then((t=>{e.data.elapsed=Date.now()-e.data.ts;const n=Date.now()-t.ts;this.verbose&&console.log(`[IS] ${this.id}: Connection echo test response received from ${s} in ${n} ms`),r(e.data.body)})).catch((e=>{n(e)})))};const o=this.createMessage({transactionId:i,method:"connect"});o.body={where:{serviceId:t}},e.postMessage(o,"*"),this.setupTransactionTimeout({transactionId:i,reject:n})})):Promise.reject(new Error("[IS] Target window and service ID are required to connect to a service"))}function RP(){}function IP(e){return e}function CP({method:e,handler:t,configurable:r=!1}){if(this.api[e])throw new Error(`[IS] Cannot register method ${e} as it is already registered.`);this.registeredHandlers[e]=t,Object.defineProperty(this.api,e,{get:()=>t,enumerable:!1,configurable:r}),this.verbose&&console.log(`[IS] ${this.id}: Registered handler for ${e}`)}function OP({alias:e,method:t,service:r,configurable:n=!1}){this.api.register({method:e,handler:(e,n)=>this.api.proxy({method:t,service:r,args:e,options:n}),configurable:n}),this.verbose&&console.log(`[IS] ${this.id}: Registered proxy for ${e} to ${r}`)}const TP={services:{}};function PP({method:e,args:t,service:r,options:n={}}){return new Promise(((i,o)=>{const a=kP();this.transactionHandler[a]=e=>{e.data.elapsed=Date.now()-e.data.ts,e.data.error?o(e.data.error):i(e.data?.body)};const s=(r||"").split("/"),u=s.shift(),c=this.clients[u];if(void 0===c){if(!this.router)return delete this.transactionHandler[a],o(new Error(`No router registered for ${this.id}`));n?.callback&&this.api.register({method:a,handler:n.callback,configurable:!0});const i=this.createMessage({transactionId:a,method:e,hasCallback:!!n?.callback});t&&(i.body=t),r&&(i.service=r),this.router.postMessage(i),this.setupTransactionTimeout({transactionId:a,reject:o,timeout:n?.timeout})}else{const r=this.createMessage({transactionId:a,method:e,hasCallback:!!n?.callback});n?.callback&&this.api.register({method:a,handler:n.callback,configurable:!0}),t&&(r.body=t),s.length>0&&(r.service=s.join("/")),c.postMessage(r),this.setupTransactionTimeout({transactionId:a,reject:o,timeout:n?.timeout})}}))}function MP(){window.removeEventListener("message",this.handleMessage)}function LP({where:e,service:t}={}){if((e=e||{}).hasOwnProperty("serviceId"))if(Array.isArray(e.serviceId)){if(e.serviceId.length&&!e.serviceId.includes(t.serviceId))return!1}else if(e.serviceId!==t.serviceId)return!1;if(e.hasOwnProperty("contextId"))if(Array.isArray(e.contextId)){if(e.contextId.length&&!e.contextId.includes(t.contextId))return!1}else if(e.contextId!==t.contextId)return!1;if(e.hasOwnProperty("scriptId"))if(Array.isArray(e.scriptId)){if(e.scriptId.length&&!e.scriptId.includes(t.scriptId))return!1}else if(e.scriptId!==t.scriptId)return!1;if(e.hasOwnProperty("id"))if(Array.isArray(e.id)){if(e.id.length&&!e.id.includes(t.id))return!1}else if(e.id!==t.id)return!1;if(e.hasOwnProperty("client")){const r=Object.keys(t.clients);if(Array.isArray(e.client)){if(e.client.length&&!e.client.some((e=>r.includes(e))))return!1}else if(!r.includes(e.client))return!1}return!0}async function BP({timeout:e=1e3,interval:t=100,where:r={}}={}){const n=Date.now();let i=Math.floor(e/t);const o=FP.bind(this);for(;i>0;){const e=await o({timeout:t,where:r});if(e)return this.verbose&&console.log(`[IS] ${this.id}: Router found in ${Date.now()-n}ms`),e;i--}return this.verbose&&console.log(`[IS] ${this.id}: Router not found in ${Date.now()-n}ms`),null}function jP({window:e,timeout:t,where:r}={}){return new Promise(((n,i)=>{const o=kP();this.transactionHandler[o]=e=>{if("object"!=typeof e.data)return;const{contextId:t,scriptId:r,serviceId:i,messageId:o,sender:a}=e.data;t&&r&&i&&o&&a&&n(e.data)};const a=this.createMessage({transactionId:o,method:"are-you-router"});a.body={where:r},e.postMessage(a,"*"),this.setupTransactionTimeout({transactionId:o,reject:i,timeout:t})}))}function UP({where:e}={}){const t=TP.services,r=Object.keys(t),n=this.serviceId;for(let i=0;i<r.length;i++){const o=t[r[i]];if(o.serviceId!==n&&(LP({where:e,service:o})&&o.router_enabled))return o}return null}async function FP({timeout:e,where:t}={}){const r=UP.call(this,{where:t});if(r)return{window:window,serviceId:r.serviceId,contextId:r.contextId,scriptId:r.scriptId};let n=window.parent;for(;n!==window;){const r=await jP.call(this,{window:n,timeout:e,where:t}).catch((e=>{this.verbose&&console.log(`[IS] ${this.id}: ${e.message}`)}));if(r)return{window:n,serviceId:r.serviceId,contextId:r.contextId,scriptId:r.scriptId};if(n===n.parent)break;n=n.parent}return null}function NP({method:e}){this.api[e]&&(delete this.api[e],delete this.registeredHandlers[e],this.verbose&&console.log(`[IS] ${this.id}: Unregistered handler for ${e}`))}function $P(){return kP()}async function GP(e){const{transactionId:t,messageId:r,serviceId:n,method:i,sender:o,body:a}=e.data;if(this.serviceId===n)return;if(!LP({where:a?.where,service:this}))return;const s=new MessageChannel;s.port1.start(),this.clients[o]=s.port1,this.clients[o].onmessage=this.handleMessage.bind(this),this.clients[o].serviceId=n,this.clients[o].onmessageerror=e=>{console.error(`[IS] ${this.id}: Error received from ${o}`,e?.message||e)};const u=this.createMessage({transactionId:t,replyTo:r});u.body=a,e.source.postMessage(u,"*",[s.port2]),this.verbose&&console.log(`[IS] ${this.id}: Connection received from ${o}`);try{this.ee.emit("connected",{contextId:e.data.contextId,scriptId:e.data.scriptId,serviceId:n,service:o})}catch(e){this.verbose&&console.log(`[IS] ${this.id}: Error while emitting connected event`,e.message)}}async function HP(e){const{transactionId:t,messageId:r,serviceId:n,body:i}=e.data;if(!0!==this.router_enabled)return;if(this.serviceId===n)return;if(!LP({where:i?.where,service:this}))return;const o=this.createMessage({transactionId:t,replyTo:r});o.body=i,e.source.postMessage(o,"*")}async function zP(e){const{transactionId:t,messageId:r,method:n,service:i}=e.data,o=this.createMessage({transactionId:t,replyTo:r});try{const t=await this.api.proxy({method:n,args:e.data.body,service:i});o.body=t,e.target.postMessage(o)}catch(t){o.error=t?.message||t,e.target.postMessage(o)}}async function ZP(e){const{transactionId:t,messageId:r,method:n}=e.data,i=this.registeredHandlers[n],o=this.createMessage({transactionId:t,replyTo:r});try{const t=await i(e.data.body,e.data);o.body=t,e.target.postMessage(o)}catch(t){o.error=t?.message||t,e.target.postMessage(o)}}async function KP(e){const{transactionId:t}=e.data,r=this.transactionHandler[t];delete this.transactionHandler[t],await r(e)}async function qP(e){if("object"!=typeof e.data)return;const{transactionId:t,contextId:r,scriptId:n,messageId:i,serviceId:o,method:a,service:s}=e.data;if(t&&r&&n&&i&&o)switch(this.verbose&&console.log(`[IS] ${this.id}`,e.data),a){case"connect":await GP.call(this,e);break;case"are-you-router":await HP.call(this,e);break;default:a&&s?await zP.call(this,e):a&&this.registeredHandlers[a]?await ZP.call(this,e):this.transactionHandler[t]&&await KP.call(this,e)}}function VP({transactionId:e,reject:t,timeout:r=1e3}){const n=setTimeout((()=>{clearTimeout(n),delete this.transactionHandler[e],this.api.unregister({method:e}),t(new Error("[IS] timeout"))}),r)}async function WP(){const e="INTERSERVICE_CONTEXT_ID";window[e]||Object.defineProperty(window,e,{value:kP(),enumerable:!1,configurable:!1}),this.contextId=window[e],this.scriptId=await async function(e){if(!e)return null;const t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-1",t),n=Array.from(new Uint8Array(r)).map((e=>e.toString(16).padStart(2,"0"))).join("");return n}(document.currentScript&&document.currentScript.src||new URL("index.js",document.baseURI).href)}function YP(e){return{ts:Date.now(),contextId:this.contextId,scriptId:this.scriptId,serviceId:this.serviceId,messageId:kP(),sender:this.id,...e}}async function QP({id:e,verbose:t,router:r}){const n={api:{}};function i(e,t){Object.defineProperty(n.api,e,{get:()=>t,enumerable:!1,configurable:!1})}function o(e,t){const r=t.bind(n);n.api.register({method:e,handler:r})}return await async function(){if(!/^([a-z\-_]+)$/.test(e))throw new Error("[IS] Invalid ID format. ID should be lowercase and can include '-' and '_'.");this.router_enabled=r,this.serviceId=kP(),this.id=e,this.verbose=t,this.ee=new SP,this.router=null,this.clients={},this.transactionHandler={},this.registeredHandlers={},this.setupTransactionTimeout=VP.bind(this),this.handleMessage=qP.bind(this),this.createMessage=YP.bind(this),await WP.apply(this),window.addEventListener("message",this.handleMessage),TP.services[this.id]=this}.apply(n),i("connect",DP.bind(n)),i("findRouter",BP.bind(n)),i("register",CP.bind(n)),i("unregister",NP.bind(n)),i("registerProxy",OP.bind(n)),i("proxy",PP.bind(n)),i("dispose",MP.bind(n)),i("newId",$P.bind(n)),i("on",n.ee.on.bind(n.ee)),i("once",n.ee.once.bind(n.ee)),i("off",n.ee.off.bind(n.ee)),i("addListener",n.ee.addListener.bind(n.ee)),i("removeListener",n.ee.removeListener.bind(n.ee)),i("removeAllListeners",n.ee.removeAllListeners.bind(n.ee)),o("ping",RP),o("echo",IP),n.api}var JP;function XP(){return XP=t(d.mark((function e(t){var r,n,i,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.whichFrame,n=t.options,e.prev=1,i="gd-".concat(r),void 0,o=undefined,!("loader-frame"===r)){e.next=12;break}return e.next=9,eM({id:i,verbose:o,options:n});case 9:JP=e.sent,e.next=15;break;case 12:return e.next=14,rM({id:i,verbose:o,options:n});case 14:JP=e.sent;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(1),_u("[GD-IS] GD interservice create error",e.t0);case 20:case"end":return e.stop()}}),e,null,[[1,17]])}))),XP.apply(this,arguments)}function eM(e){return tM.apply(this,arguments)}function tM(){return tM=t(d.mark((function e(n){var i,o,a,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.id,o=n.verbose,a=n.options,e.next=4,QP({id:i,verbose:o,router:!0});case 4:return(s=e.sent).on("connected",function(e){r(this,u)}.bind(this)),s.register({method:"whoami",handler:function(){return r(this,u),"[GD-IS] I am ".concat(i)}.bind(this)}),s.register({method:"isLoader",handler:function(){return r(this,u),!0}.bind(this)}),s.register({method:"hasRouter",handler:function(){return r(this,u),!1}.bind(this)}),s.register({method:"showAd",handler:function(){var e=t(d.mark((function e(r){var n,i,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.showAd?a.showAd:function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),i=r.adType,o=r.params,e.next=4,n(i,o);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),s.register({method:"registerOnEvents",handler:function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.registerProxy({alias:"onEvent",method:"onEvent",service:"gd-game-frame"}),e.abrupt("return","[GD-IS] gd-game-frame registered for onEvents");case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),e.next=13,s.whoami();case 13:return e.sent,e.abrupt("return",s);case 16:case"end":return e.stop()}}),e,this)}))),tM.apply(this,arguments)}function rM(e){return nM.apply(this,arguments)}function nM(){return nM=t(d.mark((function e(t){var n,i,o,a,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,i=t.verbose,o=t.options,e.next=4,QP({id:n,verbose:i,router:!1});case 4:return a=e.sent,"gd-loader-frame",e.next=8,a.findRouter({where:{id:"gd-loader-frame"}}).catch(function(e){r(this,u)}.bind(this));case 8:if(s=e.sent,e.t0=!!s,!e.t0){e.next=15;break}return e.next=14,a.connect(s).catch(function(e){r(this,u),_u("[GD-IS] Failed to connect to router",(null==e?void 0:e.message)||e)}.bind(this));case 14:e.t0=e.sent;case 15:return e.t0,a.register({method:"whoami",handler:function(){return r(this,u),"[GD-IS] I am ".concat(n)}.bind(this)}),a.register({method:"onEvent",handler:function(e){var t=this;r(this,u);var n=e.event;(o.onEvent||function(e){r(this,t)}.bind(this))(n)}.bind(this)}),a.register({method:"isLoader",handler:function(){return r(this,u),!1}.bind(this)}),a.register({method:"hasRouter",handler:function(){return r(this,u),!!s}.bind(this)}),s&&(a.registerProxy({alias:"whoIsLoader",method:"whoami"}),a.registerProxy({alias:"registerOnEvents",method:"registerOnEvents"}),a.registerProxy({alias:"showAd",method:"showAd"})),e.next=24,a.whoami();case 24:if(e.sent,!s){e.next=35;break}return e.next=29,a.whoIsLoader();case 29:return e.sent,e.next=32,a.registerOnEvents();case 32:e.sent;case 35:return e.abrupt("return",a);case 36:case"end":return e.stop()}}),e,this)}))),nM.apply(this,arguments)}var iM=!1;function oM(){var e=this;return new Promise(function(t,n){var i=this;if(r(this,e),JP||iM)t(JP);else{var o=setInterval(function(){r(this,i),JP&&(iM=!0,clearInterval(o),t(JP))}.bind(this),100);setTimeout(function(){r(this,i),clearInterval(o),JP||(iM=!0,t(JP))}.bind(this),5e3)}}.bind(this))}function aM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aM(Object(r),!0).forEach((function(t){Eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var uM,cM,dM,lM=function(){var e=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.3.1/socket.io.js",t=["https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.3.1/socket.io.js"],e.next=4,ht(t[0],"soecket.io.js",{alternates:t});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),fM=0,pM=!1,hM=function(){var e=t(d.mark((function e(n){var i,o,a,s,u,c,l,f=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.args,o=n.onError,e.prev=1,!window.isForwarderFrame){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,oM();case 7:if(!(a=e.sent)){e.next=18;break}return e.next=11,a.isLoader();case 11:if(!(s=e.sent)&&(s||a.hasRouter())){e.next=16;break}a.register({method:"sendSocketEvent",handler:function(e){r(this,f),gM(e.topic,e.args)}.bind(this)}),e.next=18;break;case 16:return a.registerProxy({alias:"sendSocketEvent",method:"sendSocketEvent"}),e.abrupt("return");case 18:if(u=new C(window.location.href),c=!["html5.gamedistribution.com","revision.gamedistribution.com"].some(function(e){return r(this,f),e.toLowerCase()===u.host.toLowerCase()}.bind(this)),!(c&&a&&a.hasRouter())){e.next=24;break}return e.abrupt("return");case 24:return c&&a&&a.hasRouter(),e.next=27,lM();case 27:cM=rP(),l={json:JSON.stringify(i)},"wss://ws.gamedistribution.com",(uM=io("wss://ws.gamedistribution.com",{query:l,upgrade:!1,transports:["websocket"],reconnectionDelay:6e4,autoConnect:!1})).on("connect",function(){r(this,f)}.bind(this)),uM.on("after-connect",function(){var e=t(d.mark((function e(t){var r,n,o,a,s,u,c;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return dM=dM||(null==t?void 0:t.serverDate),r=i.gameId,n=i.failed,e.next=4,AP({gameId:r,serverDate:dM});case 4:o=e.sent,a=o.visit,s=o.mode,u=o.errors,i.visit=sM(sM({},a),{},{stm:s,errors:u}),n&&(i.gameId=r?"failed:wrong":"failed:empty"),c={json:JSON.stringify(i)},uM.emit("client-info",{clientId:cM,counter:fM++,serverDate:dM,query:c}),pM=!0;case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),uM.on("disconnect",function(e){r(this,f),pM=!1}.bind(this)),uM.connect(),e.next=40;break;case 37:e.prev=37,e.t0=e.catch(1),o&&o(e.t0);case 40:case"end":return e.stop()}}),e,this,[[1,37]])})));return function(t){return e.apply(this,arguments)}}(),mM=!1,vM=[];function gM(e,t){return AM.apply(this,arguments)}function AM(){return AM=t(d.mark((function e(t,n){var i,o,a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oM();case 2:if(!(i=e.sent)){e.next=11;break}return e.next=6,i.isLoader();case 6:if(e.sent||!i.hasRouter()){e.next=11;break}return e.next=10,i.sendSocketEvent({topic:t,args:n});case 10:return e.abrupt("return");case 11:if("play"!==t){e.next=15;break}if(!mM){e.next=14;break}return e.abrupt("return");case 14:mM=!0;case 15:o=function(e,t){r(this,s);try{var n={json:JSON.stringify(t||{})};uM.emit("socket-event",{topic:e,clientId:cM,counter:fM,serverDate:dM,query:n})}catch(e){xu("game-session: Error on sending socket-event",e.message)}}.bind(this),a=function(){r(this,s),o(t,n)}.bind(this),vM.push(a);case 19:case"end":return e.stop()}}),e,this)}))),AM.apply(this,arguments)}function bM(e){var t=this,n={preroll:["preroll","start"],midroll:["next"],rewarded:["reward"]},i=Object.keys(n).find(function(i){var o=this;return r(this,t),n[i].some(function(t){return r(this,o),t===e.params.position}.bind(this))}.bind(this));return i||"midroll"}function yM(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return _M(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_M(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function _M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}setInterval((function(){if(0!==vM.length&&uM&&pM){for(var e=function(){var e=this,i=n[t];i(),vM=vM.filter(function(t){return r(this,e),t!==i}.bind(this))},t=0,n=fP(vM);t<n.length;t++)e();_u("game-session: commands length",vM.length)}}),100);var wM=3,xM=1,kM=5,EM={lastImpressionDate:null,imps:0};function SM(){return DM.apply(this,arguments)}function DM(){return(DM=t(d.mark((function e(){var t,n,i,o,a,s,u,c,l,f,p;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},e.next=3,jD();case 3:if(i=e.sent,o=i.compensation||{enabled:!1},a=null==i||null===(t=i.adTimer)||void 0===t?void 0:t.enabled,n.ruleEnabled=(null==o?void 0:o.enabled)&&a,!(void 0===(null==o?void 0:o.exctg)||(null==o?void 0:o.exctg))){e.next=29;break}s=["co-op","multiplayer","IAPs"],u=(null==i?void 0:i.tags)||[],c=!1,l=yM(u),e.prev=13,p=d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=f.value,s.some(function(e){return r(this,n),e===t.title}.bind(this))&&(c=!0);case 2:case"end":return e.stop()}}),e,this)})),l.s();case 16:if((f=l.n()).done){e.next=20;break}return e.delegateYield(p(),"t0",18);case 18:e.next=16;break;case 20:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(13),l.e(e.t1);case 25:return e.prev=25,l.f(),e.finish(25);case 28:n.disabledByTag=c;case 29:return n.isLowScoreGame=RM(i),n.enabled=n.ruleEnabled&&!n.disabledByTag&&n.isLowScoreGame,i.hasActiveCompensations=n.enabled,e.abrupt("return",n);case 33:case"end":return e.stop()}}),e,null,[[13,22,25,28]])})))).apply(this,arguments)}function RM(e){var t=!1,r=e.compensation||{enabled:!1},n=null==e?void 0:e.adsc;if(1===(null==n?void 0:n.s)&&null!=n&&n.t){var i=null==n?void 0:n.t,o=(null==r?void 0:r.esc)||xM,a=(null==r?void 0:r.ascl)||kM,s=i||{},u=s.adsc,c=s.reqsc,d=s.pdur,l=s.rspdur;s.aspdur,t=(l||c/(d/wM))<=o&&u<a}return t}var IM=!1;function CM(){return OM.apply(this,arguments)}function OM(){return(OM=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!IM){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,SM();case 4:(t=e.sent).enabled,t.override,t.giftEnabled,t.midrollPlusEnabled,IM=!0;case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function TM(e){var t=e.rateType,r=e.gameData,n=!1;if(r.hasActiveCompensations){var i=r.compensation,o="gift"===t?null==i?void 0:i.gftr:null==i?void 0:i.mpr;o=void 0===o?1:o,n=Math.random()<=o}else n=!0;return n}function PM(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return MM(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?MM(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function MM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var LM=!1,BM=3,jM=5,UM=1,FM=60,NM=10;function $M(){return GM.apply(this,arguments)}function GM(){return(GM=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return EM.imps++,EM.lastImpressionDate=new Date,e.abrupt("return",!0);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function HM(e){return zM.apply(this,arguments)}function zM(){return zM=t(d.mark((function e(n){var i,o,a,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,R,I,C,O,T,P,M,L,B,j,U,F,N,$,G,H,z,Z,K,q,V,W,Y=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=n.gameData,c=n.executeCompensation,l=function(){var e=t(d.mark((function e(t){var r,n,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(null==t?void 0:t.whenAvailable)||!1,!c){e.next=7;break}return e.next=4,c({whenAvailable:r});case 4:e.t0=e.sent,e.next=10;break;case 7:return e.next=9,$M();case 9:e.t0=e.sent;case 10:return n=e.t0,i=n.args,e.abrupt("return",null==i?void 0:i.success);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=!LM,!LM){e.next=5;break}return e.abrupt("return");case 5:if(LM=!0,p=u.adsc){e.next=10;break}return e.abrupt("return");case 10:if(h=p.s,m=p.t,1===h){e.next=13;break}return e.abrupt("return");case 13:if(v=u.compensation||{enabled:!1},g=null==v?void 0:v.enabled,A=null==u||null===(i=u.adTimer)||void 0===i?void 0:i.enabled,g&&A){e.next=20;break}return e.abrupt("return");case 20:if(!(void 0===(null==v?void 0:v.exctg)||(null==v?void 0:v.exctg))){e.next=45;break}b=["co-op","multiplayer","IAPs"],y=(null==u?void 0:u.tags)||[],_=!1,w=PM(y),e.prev=27,k=d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=x.value,b.some(function(e){return r(this,n),e===t.title}.bind(this))&&(_=!0);case 2:case"end":return e.stop()}}),e,this)})),w.s();case 30:if((x=w.n()).done){e.next=34;break}return e.delegateYield(k(),"t0",32);case 32:e.next=30;break;case 34:e.next=39;break;case 36:e.prev=36,e.t1=e.catch(27),w.e(e.t1);case 39:return e.prev=39,w.f(),e.finish(39);case 42:if(!_){e.next=45;break}return e.abrupt("return");case 45:if(E=(null==v?void 0:v.esc)||UM,S=void 0===(null==v?void 0:v.depgft)||(null==v?void 0:v.depgft),D=null!=v&&v.depgftr?null==v?void 0:v.depgftr:1,R=(null==v?void 0:v.onst)||!1,I=(null==v?void 0:v.sl)||3,C=(null==v?void 0:v.tl)||180,O=(null==u||null===(o=u.gft)||void 0===o?void 0:o.midroll.enabled)||!1,T=(null==u||null===(a=u.midroll_plus)||void 0===a?void 0:a.enabled)||!1,(!O||!T)&&(C/=D),P=void 0===(null==v?void 0:v.tc)||(null==v?void 0:v.tc),M=(null==v?void 0:v.ascl)||jM,!S){e.next=65;break}if(j=(null==u||null===(L=u.gft)||void 0===L?void 0:L.midroll.enabled)||!1,U=(null==u||null===(B=u.midroll_plus)||void 0===B?void 0:B.enabled)||!1,j&&U){e.next=65;break}return e.abrupt("return");case 65:if(N=(F=m||{}).adsc,$=F.reqsc,G=F.pdur,H=F.rspdur,F.aspdur,(H||$/(G/BM))<=E&&N<M){e.next=72;break}return e.abrupt("return");case 72:if(z=Math.ceil(G/BM),!R||!f){e.next=79;break}return e.next=79,l({whenAvailable:!0});case 79:return Z=0,K=1,q=function(){r(this,Y),Z=0,K=1}.bind(this),null===(s=u.sdkfw)||void 0===s||s.enabled,e.next=85,oM();case 85:if(V=e.sent,e.t2=V,!e.t2){e.next=91;break}return e.next=90,V.isLoader();case 90:e.t2=e.sent;case 91:e.t2,W=setInterval(t(d.mark((function e(){var t,n,i,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(P&&EM.imps>=z)){e.next=4;break}return clearInterval(W),e.abrupt("return");case 4:if(t=new Date,n=EM.lastImpressionDate?(a=EM.lastImpressionDate,s=t,u=void 0,c=void 0,void 0,void 0,u=a.getTime(),c=s.getTime(),(c-u)/1e3):C+1,!((i=C-n)>0)){e.next=20;break}if(!(i<=FM-NM)){e.next=17;break}return e.next=15,new Promise(function(e){var t=this;r(this,o),setTimeout(function(){r(this,t),e()}.bind(this),1e3*i)}.bind(this));case 15:e.next=20;break;case 17:return q(),e.abrupt("return");case 20:if(++Z%K==0){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,l({});case 26:e.sent?q():(Z=0,K=K+1>I?I:K+1);case 28:case"end":return e.stop()}var a,s,u,c}),e,this)}))),1e3*FM);case 94:case"end":return e.stop()}}),e,this,[[27,36,39,42]])}))),zM.apply(this,arguments)}function ZM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function KM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ZM(Object(r),!0).forEach((function(t){Eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qM(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return VM(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?VM(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function VM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var WM,YM=function(){return M((function e(t){var n=this;O(this,e),this._gameData=t._gameData,this._msgrt=t.msgrt,this._adInstance=t.adInstance,this._eventBus=t.eventBus,this.blockedAdsMap=t.blockedAdsMap,this._parentURL=t._parentURL,this._parentDomain=t._parentDomain,this._onResumeGame=t.onResumeGame.bind(t),this._onPauseGame=t.onPauseGame.bind(t),this._onRewardedWatchComplete=t.onRewardedWatchComplete.bind(t),this._onAdError=t.onAdError.bind(t),this._setAdRequestTimer=t._setAdRequestTimer.bind(t),this._giveGift=t._giveGift.bind(t),this._executeMidrollPlus=t._executeMidrollPlus.bind(t),this.executeCompensation=t.executeCompensation.bind(t),this._runAutoResume=t._runAutoResume.bind(t),this.send_atom_event=t.send_atom_event.bind(t),this.get_session_id=t.get_session_id.bind(t),this.get_ad_system_init_result=t.get_ad_system_init_result.bind(t),this.eventBus=new It,this.isOpusReady=function(){return r(this,n),t.isOpusReady}.bind(this),this._muteRequested=!1,this._terminateRequested=!1,this._registerForEvents()}),[{key:"_registerForEvents",value:function(){var e=this;this.eventBus.subscribe("HL_CONFIG_ERROR",function(t){r(this,e),this.hasHLConfigError=!0}.bind(this))}},{key:"runAdFlow",value:(n=t(d.mark((function e(t){var n,i,o,a,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,R,I,C,O,T,P,M,L,B,j,U,F,N,$,G,H,z,Z,K,q,V,W,Y,Q,J,X,ee,te,re,ne=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,oM();case 3:!(l=e.sent)||l.isLoader(),this.adRequest=t,f=bM(t),t.params.adTypeFound=f,_u("gd-adflow, adTypeFound",f,t.params.position),(p=this._getAdFlow(f)).find(function(e){return r(this,ne),"opus"===e}.bind(this))&&!this.isOpusReady()&&(p=p.filter(function(e){return r(this,ne),"opus"!==e}.bind(this)),this._msgrt.send("opus.sdk",{message:"Not ready"})),h=this._gameData,m=h.afg_disabled,v=null===(n=t.params)||void 0===n?void 0:n.isGift,g=null===(i=t.params)||void 0===i?void 0:i.isMidrollPlus,A=null===(o=t.params)||void 0===o?void 0:o.isCompensation,null===(a=t.params)||void 0===a||a.position,b=null===(s=h.promo)||void 0===s?void 0:s.rainbow,y=(null==b?void 0:b.enabled)&&(null===(u=b.position)||void 0===u?void 0:u[f]),_=null==b?void 0:b.gift,w=y&&null!=b&&b.duration?null==b?void 0:b.duration:5,x=m?p.filter(function(e){return r(this,ne),"adsense"!==e}.bind(this)):p,k=this.get_ad_system_init_result(),E=k.afg,S=k.ima,D=null==h||null===(c=h.ad_blcks)||void 0===c||null===(c=c.removeOtherAdaptors)||void 0===c?void 0:c.enabled,this.anyAdBlocking=!E||!S,this.bothAdBlocking=!E&&!S,this.adsBlocked=D&&this.anyAdBlocking||this.bothAdBlocking,this.adsBlocked?(wu("gd-adflow adsBlocked so changing the flow"),x=[]):(E||(x=x.filter(function(e){return r(this,ne),"adsense"!==e}.bind(this))),S||(x=x.filter(function(e){return r(this,ne),"ima"!==e}.bind(this)))),R=!1,I=!1,C=[],O=0,T=!1,M={},L=qM(x),e.prev=40,L.s();case 42:if((B=L.n()).done){e.next=88;break}if(j=B.value,!this._terminateRequested){e.next=46;break}return e.abrupt("break",88);case 46:if(t.params.adapter=j,U=O===x.length-1,F=v&&_||!v,N=U&&y&&F,t.params=KM(KM({},t.params),{},{adapterIndex:O,isLastAdapter:U,shouldFail:!1,extraPromoRunOnFail:N,muteRequested:this._muteRequested}),!this._muteRequested||"adsense"!==j){e.next=53;break}return e.abrupt("continue",86);case 53:return function(){r(this,ne),ku.firstSuccessOrder&&!isNaN(ku.firstSuccessOrder)&&(t.params.shouldFail=O<ku.firstSuccessOrder)}.bind(this),wu("gd-adflow, before adInvoke",O,j,t.params.shouldFail),e.next=57,this.adInvoke(t);case 57:if($=e.sent,G=$.success,H=$.args,z=$.isSkipped,Z=$.noVast,K=$.t4r,q=null==H?void 0:H.reason,V=null==H?void 0:H.message,W=null==H?void 0:H.errorType,M[j]=M[j]||{req:0,imp:0,fail:0},M[j].req++,G?M[j].imp++:(M[j].fail++,M[j].failReason=q,M[j].failMessage=V,M[j].failType=W),!G){e.next=77;break}return wu("gd-adflow, adapter-result-success",O,j,H),R=!0,I=!(null==H||!H.isPromoSuccess),P=K,e.abrupt("break",88);case 77:if(wu("gd-adflow, adapter-result-failure",O,j,H.message),O++,C.push(H.message),!z){e.next=82;break}return e.abrupt("break",88);case 82:if(!Z){e.next=85;break}return this._runAutoResume(),e.abrupt("break",88);case 85:T=N;case 86:e.next=42;break;case 88:e.next=93;break;case 90:e.prev=90,e.t0=e.catch(40),L.e(e.t0);case 93:return e.prev=93,L.f(),e.finish(93);case 96:if(!T){e.next=102;break}return e.next=99,new dP(this).run({duration:w});case 99:e.sent.success&&(I=!0);case 102:return function(){var e;r(this,ne),ku.disableGift&&null!==(e=h.gft)&&void 0!==e&&e[f].enabled&&(h.gft[f].enabled=!1)}.bind(this),Y=C.join(" /n"),R?(EM.imps++,EM.lastImpressionDate=new Date,this._setAdRequestTimer(),this._onResumeGame("Advertisement(s) are done. Start / resume the game.","success"),this._giveGift(f),"midroll"===f&&this._executeMidrollPlus()):(this._onResumeGame(Y,"warning"),this._giveGift(f),"midroll"===f&&this._executeMidrollPlus()),HM({gameData:h,executeCompensation:this.executeCompensation}),Q="-1",J="none",R?(Q="index_".concat(O),J=x[O]):I&&(Q="promo",J="promo"),X=this.get_session_id(),this.anyAdBlocking&&"-1"===Q?(ee="rewarded"===f?"rewarded":this.blockedAdsMap.preroll?"midroll":"preroll",this.blockedAdsMap[ee]=this.blockedAdsMap[ee]?this.blockedAdsMap[ee]+1:1,_u("gd-adflow, blocked-ad",JSON.stringify(this.blockedAdsMap)),this._msgrt.send("adflow.blocked.pos",{message:"".concat(ee)}),this.send_atom_event("gd.adflow",{adBlocker:!0,afgBlocked:!E,imaBlocked:!S,isGift:v,isMidrollPlus:g,adType:ee,sessionId:X,successAdapter:"none",adFlowIndex:Q,adapterResults:M})):(te=Eu(Eu(Eu(Eu({},"adflow.all.index",{message:"".concat(Q)}),"adflow.all.success_adapter",{message:"".concat(J)}),"adflow.".concat(f,".index"),{message:"".concat(Q)}),"adflow.".concat(f,".success_adapter"),{message:"".concat(J)}),Object.keys(te).forEach(function(e){r(this,ne);var t=te[e];this._msgrt.send(e,t)}.bind(this)),this.send_atom_event("gd.adflow",{adFlowIndex:Q,successAdapter:J,adBlocker:!1,afgBlocked:!E,imaBlocked:!S,isGift:v,isMidrollPlus:g,isCompensation:A,adType:f,sessionId:X,t4r:P,adapterResults:M})),gM("ad-session",{adSession:{adType:f,imp:"-1"!==Q&&"promo"!==Q,promo:"promo"===Q,blocked:this.anyAdBlocking&&"-1"===Q,hasHLConfigError:this.hasHLConfigError,isGift:v,isMidrollPlus:g,isCompensation:A}}),re={adType:f},this.eventBus.broadcast("AD_FLOW_COMPLETE",re),e.abrupt("return",KM(KM({},re),{},{args:{success:R,isGift:v,isMidrollPlus:g}}));case 120:case"end":return e.stop()}}),e,this,[[40,90,93,96]])}))),function(e){return n.apply(this,arguments)})},{key:"adInvoke",value:(e=t(d.mark((function e(n){var i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,o){var a,s,u,c,l=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="main.showad.".concat(n.params.adapter,".").concat(n.params.adapterIndex),_u("adInvoke.start",{scopeName:a,adRequest:JSON.stringify(n)}),s={},u=function(e){r(this,l),_u("adInvoke.failure",{args:e,adRequest:JSON.stringify(n)}),i._eventBus.unsubscribeScope(a);var o="dismissed"===(null==e?void 0:e.message);t({success:!1,args:e,isSkipped:o,noVast:e.noVast})}.bind(this),c=function(e){r(this,l),_u("adInvoke.success",{args:e,adRequest:JSON.stringify(n)}),i._eventBus.unsubscribeScope(a),t({success:!0,args:e,t4r:s})}.bind(this),i._eventBus.subscribe("AD_ERROR",u,a),i._eventBus.subscribe("AD_SDK_CANCELED",u,a),i._eventBus.subscribe("AD_SUCCESS",c,a),i._eventBus.subscribe("AD_T4R",function(){r(this,l),s.loaded=!0}.bind(this),a),i._eventBus.subscribe("AD_T4R_CLICK",function(){r(this,l),s.t4rClick=!0}.bind(this),a),i._eventBus.subscribe("AD_T4R_VIDEO",function(){r(this,l),s.t4rVideo=!0}.bind(this),a),i._eventBus.subscribe("AD_CLICK",function(){r(this,l),s.click=!0}.bind(this),a),i._eventBus.subscribe("AD_BIDDER",function(e){r(this,l),s.bidder=null==e?void 0:e.bidder}.bind(this),a),i._eventBus.subscribe("AD_T4R_NONE",function(e){r(this,l),s.fail_reason=null==e?void 0:e.reason}.bind(this),a),e.prev=14,e.next=17,i._adInstance.startAd(n);case 17:e.next=23;break;case 19:e.prev=19,e.t0=e.catch(14),xu("gd-adflow startAd error",e.t0),t({success:!1,err:e.t0});case 23:case"end":return e.stop()}}),e,this,[[14,19]])})));return function(t,r){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})},{key:"_getAdFlow",value:function(e){var t,n,i,o,a=this,s=void function(){if(r(this,a),ku.customAdFlow)return JSON.parse(ku.customAdFlow)}.bind(this),u=this._gameData.adflw;s&&(u=s);var c=null!==(t=u)&&void 0!==t&&null!==(t=t.adapters)&&void 0!==t&&t.default?null===(n=u)||void 0===n||null===(n=n.adapters)||void 0===n?void 0:n.default:["ima","adsense"];return c=null!==(i=u)&&void 0!==i&&null!==(i=i.adapters)&&void 0!==i&&i[e]?null===(o=u)||void 0===o||null===(o=o.adapters)||void 0===o?void 0:o[e]:c}},{key:"mute",value:function(){var e=this;this._muteRequested=!0,this._adInstance.mute().catch(function(t){r(this,e)}.bind(this))}},{key:"terminate",value:function(){var e=this;this._terminateRequested=!0,this._adInstance.terminate().catch(function(t){r(this,e)}.bind(this)),this._setAdRequestTimer()}}]);var e,n}(),QM=new uD.exports.EventEmitter,JM=["https://games.softgames.com","https://sg.gamedistribution.com","https://minigame-stg.aeriagames.jp","https://minigame.aeriagames.jp","https://html5.gamedistribution.com","http://localhost:3005","https://yjgames.gamedistribution.com","https://portal-staging-sgweb.gamedistribution.com/"];window.addEventListener("message",(function(e){var t=this,n=e.data,i=e.origin,o=e.source;if(JM.some(function(e){return r(this,t),e===i}.bind(this))&&(null==n||!n.__tcfapiCall)){var a=n.system;n.action;var s="aeriaExternalHostsConnector"===a;if("Softgames"===a)WM=o,(window.parent||window).postMessage(n,"*"),QM.emit("aeria-event",n);else if(s){WM&&WM.postMessage(n,"*");var u=window.parent||window;u&&u.postMessage(n,"*")}}}),!1);var XM="https://html5.gamedistribution.com",eL="parent-data-request",tL="parent-data-response",rL=function(){return M((function e(){O(this,e)}),[{key:"init",value:function(e){var t=this;this._registerForDataRequests(e),this._askForParentFrameData().then(function(n){if(r(this,t),n){var i=n.adRequestTimer;e.adRequestTimer=i,_u("gd-frame-data-bridge, adRequestTimer on init ",e.adRequestTimer)}}.bind(this))}},{key:"_registerForDataRequests",value:function(e){var t=this;window.addEventListener("message",function(n){r(this,t);var i=n.data,o=n.origin,a=n.source,s=i.type;if(i.value,o===XM&&s===eL){var u={adRequestTimer:e.adRequestTimer};a.postMessage({type:tL,value:u})}}.bind(this))}},{key:"_askForParentFrameData",value:(e=t(d.mark((function e(){var t=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,n){var i=this;r(this,t);var o=!1;window.addEventListener("message",(function(t){var r=t.data,n=t.origin;t.source;var i=r.type,a=r.value;n===XM&&i===tL&&(e(a),o=!0)})),setTimeout(function(){r(this,i),o||e()}.bind(this),1e3);var a={type:eL};window.parent.postMessage(a,"*")}.bind(this)));case 1:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e}(),nL=new rL,iL={SDKExistsOnUpperFrame:!1};function oL(){return aL.apply(this,arguments)}function aL(){return aL=t(d.mark((function e(){var t,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=["https://pm.azerioncircle.com/p/gd-blck-rmv/"],e.next=4,ht(t[0],"blckrmv",{alternates:t});case 4:return r=window.GD_BLCK_RMV||{},console.log("new blocker",r),e.abrupt("return",r.AdBlockerPage);case 9:e.prev=9,e.t0=e.catch(0),console.log("new blcoker error => ",e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[0,9]])}))),aL.apply(this,arguments)}var sL=async()=>{const e={},t={};function r(){let t,r=window,n=null,i=null;for(;!t;){try{if("function"==typeof r.__tcfapi||"function"==typeof r.__cmp){"function"==typeof r.__tcfapi?(i=2,n=r.__tcfapi):(i=1,n=r.__cmp),t=r;break}}catch(e){}try{if(r.frames.__tcfapiLocator){i=2,t=r;break}}catch(e){}try{if(r.frames.__cmpLocator){i=1,t=r;break}}catch(e){}if(r===window.top)break;r=r.parent}return e.version=i,e.frame=t,e.function=n,e.version}function n(n={}){return new Promise((i=>{function o(t,r){if(r){if(!1!==t.gdprApplies)return"tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus?(function(t){const r=t&&"boolean"==typeof t.gdprApplies?t.gdprApplies:n.defaultGdprScope;("boolean"!=typeof r||!0===r&&"string"!=typeof t.tcString)&&i({result:"cmpUnexpectedResponse",cmp:e,consentData:t})}(t),void i({result:"ok",consentData:t})):void 0;i({result:"ok",consentData:t})}else i({result:"cmpCallFailed"})}r(),e.frame?2===e.version?e.function?e.function("addEventListener",e.version,o):function(r,n,i){const o="__tcfapi";function a(e){const r=`${o}Return`,n="string"==typeof e.data&&e.data.indexOf(r)>=0?JSON.parse(e.data):e.data;if(n[r]&&n[r].callId){const e=n[r];void 0!==t[e.callId]&&t[e.callId](e.returnValue,e.success)}}window[o]=(e,r,i,a)=>{const s=Math.random()+"",u=`${o}Call`,c={[u]:{command:e,parameter:a,callId:s,version:r}};t[s]=i,n.postMessage(c,"*")},window.addEventListener("message",a,!1),window[o](r,e.version,i)}("addEventListener",e.frame,o):i({result:"cmpVersionNotV2",cmp:e}):i({result:"cmpNotFound"})}))}return{findCmp:r,findUsp:function(){let e,t,r=window;for(;!e;){try{if("function"==typeof r.__uspapi){t=r.__uspapi,e=r;break}}catch(e){}try{if(r.frames.__uspapiLocator){e=r;break}}catch(e){}if(r===window.top)break;r=r.parent}return{uspapiFrame:e,uspapiFunction:t}},lookupIabConsent:function(){return new Promise((e=>{try{n().then(e).catch((t=>e({result:"cmpLookupFailed"})))}catch(t){e({result:"cmpLookupFailed"})}}))},getGoogleAdType:function(e){if(!e||!e.vendor)return{type:"unknown"};const t=e.vendor.consents[755],r=e.vendor.legitimateInterests[755];if(!t)return{type:"not-allowed"};const{consents:n,legitimateInterests:i}=e.purpose;let o=Object.keys({1:!0,3:!0,4:!0}).every((e=>n[e])),a=[2,7,9,10].every((e=>n[e]||i[e]&&r));return o&&a?{type:"personalized"}:(n[1]||i[1])&&a?{type:"non-personalized"}:{type:"limited"}}}};function uL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uL(Object(r),!0).forEach((function(t){Eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var dL=function(){wu("gtag: GA not initialized",arguments)};function lL(e){return fL.apply(this,arguments)}function fL(){return fL=t(d.mark((function e(t){var i,o,a,s,u,c,l,f,p,h,m,v,g=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.onError,o=t.args,s="gdSDKDataLayer",u="https://www.googletagmanager.com/gtag/js?id=".concat(a="G-PLRTBHGSEL","&l=").concat(s),c=[u],e.prev=5,e.next=8,ht(c[0],"gdsdk_google_analytics",{alternates:c,error_prefix:"Blocked:",exists:function(){return r(this,g),window[s]}.bind(this)});case 8:return window[s]=window[s]||[],dL=function(){window[s].push(arguments)},dL("js",new Date),e.next=14,sL();case 14:return l=e.sent,f=l.lookupIabConsent,p=l.getGoogleAdType,e.next=19,f();case 19:h=e.sent,m=p(h.consentData),v=cL(cL({},v=o||{}),{},{cookie_flags:"SameSite=None;Secure",cmp:h.result,gdpr:"ok"===h.result?"object"===n(h.consentData)?!0===h.consentData.gdprApplies:"N/A":h.result,google_ads:null==m?void 0:m.type}),dL("config",a,v),e.next=31;break;case 27:e.prev=27,e.t0=e.catch(5),xu("gtag: load GA error",e.t0),i&&i(e.t0);case 31:case"end":return e.stop()}}),e,this,[[5,27]])}))),fL.apply(this,arguments)}new C("https://securepubads.g.doubleclick.net/gampad/ads?env=vp&gdfp_req=1&output=xml_vast4&unviewed_position_start=1&correlator=3792570314314042&sz=640x480&url=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&iu=%2F1015413%2FTNL_NS-18101700058%2FTNL_T-17110972893&description_url=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&max_ad_duration=300000&cust_params=hb_uuid%3Dcefbef16-53a9-4f49-9d3b-13e47e1066ad%26hb_cache_id%3Dundefined%26tnl_paid%3D866%26tnl_pid%3DP-17110700559%26tnl_system%3D1%26tid%3DTNL_T-17110972893%26tnl_ad_type%3Dvideo_image%26tnl_asset_id%3Daeac8455b2024f25abfa943ec96aa749%26tnl_ad_pos%3Dpreroll%26nsid%3DTNL_NS-18101700058%26tnl_pt%3D22%26hb_cache_host%3Dprebid.adnxs.com%26hb_format%3Dvideo%26hb_size%3D0x0%26hb_pb%3D1.15%26hb_adid%3D259407b5792767%26hb_bidder%3Dimprovedigital%26hb_cache_host_improv%3Dprebid.adnxs.com%26hb_uuid_improvedigit%3Dcefbef16-53a9-4f49-9d3b-13e47e1066ad%26hb_format_improvedig%3Dvideo%26hb_size_improvedigit%3D0x0%26hb_pb_improvedigital%3D1.15%26hb_adid_improvedigit%3D259407b5792767%26hb_bidder_improvedig%3Dimprovedigital%26tnl_wog%3D0%26gdGameId%3Daeac8455b2024f25abfa943ec96aa749%26tnl_content_category%3Dpuzzle%26adaptor_order%3D0%26pbct%3D2%26tnl_test%3Da%26fp%3D0.9%26fpt%3D99%26bfa%3D1%26adsense%3D0&gdpr=1&gdpr_consent=CP6lKcgP6lKcgAcABBENApEsAP_gAEPgAAYgg1NV_H__bX9j8Xr1aft0eY1H99j7rsQxBhfJk-4FyDvW_JwXn2EyNA26pqYKmRIEuzZBIQFkHIDURUigSogVrSDMYkGMgTNIJ6BkgFMRY2dYCFxvmQlDMQIY5vp9d3d52D-9_dv83dziz8FHvzU5PmckcICdA58tDfl9bRCb-5IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHs87_XU-9_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEQaoJIACgAHgAkABcADUAHAAUwAtgBmAD4AH4AYAAygBmgDkAHcAP8Ag4BHQCRAElAKiAXMAvQBfQDPgHUAPaAfYBEwCVQExAJnAUgApoBUgCuQFswLcAt0Bf4DBIGRgZIAywBmYDRgGrgNvAboA3wBywDtgHcgPFgfaB90EqASpAlhBLMEtIJbglxBLoEuwJfQTABMECYYExQJjgTJgmYCZwE0gJqATYgm2CbkE3gTfCCgEGoA8EADAFyAMEAtIQCAAAEAA0ADgAPAAyACwAI4AUAArgBbAEWAJcAX0A1ADVAHOAPIAfIBAwCDgEcAJ2AT-AoYCigF2AM4AbwA9AB8gENgIvAR6AkUBJYCVgEywJsAm0BS4CnwFhQLEAsUBdQC7gF5AMCgYeBiADFoGQgZGAyYBlwDPwGhANGAaYA1MBroDaAG3AN0AcEA6gB2ADuoHkgeUA96B8gHyhIG4ACAAFwAUABUADgAHgAQAAwgBkAGoAPAAiABMACqAG8APQAhIBDAESAI4ASwAmgBhgDLAGyAO-AewB8QD7AP0AgEBFwEYAI0AUEAqABVwC5gGKANoAbgA4gCRAE7AKHAUeApEBbAC5AF3gLzAYMAw0BkgDJwGcwNYA1kBuoDkwHLgPHDAUAAAgAGAAcABQAEUAJwAsABhADwAPYAhACIAEcAJgAVAArwBbAFyAOYA8ACGAESAIsAS4ApABWgDOAGpANkA4ABxgDnAHkAPwAgABGACTAE6AKKAUuArwCvgF2AL8AZwA2wBvADjgHNAOoAdkA9QB-wEJAIbARUAi8BHUCRAJFASXAloCXgE2AJ2AUJApECkgFigLRAXIAugBdwC9AGBAMPAYyAx6BkYGSAMnAZyAzwBoQDTAGtANdAboA6gB3AD3hAE8AAIABgAHAAUABFACcALAAYQA8AD2AIQAiABHACYAFcALcAcwB3AEMAIkARYAlwBSACtAGcANSAbIBwADjAHOAPIAfIA_ACAAEYAJNAToBOwCigFLgK8Ar4BdgC_AGcANQAbYA3gBxwDmgHZAPUAfIA_YCEgENgIvAR3AkQCRQElwJaAl4BNgCdgFCAKSgWIBYoC0QFyALoAXcAvQBgQDDwGMgMeAZIAycBnIDQgGmANaAa6A3QB1ADuAHvCgEYAIoAVABYAEIAJgAXAA8ACOAFIANQAcABHACiwFeAV8AuwBnADeAHNAOyAfsBHoCRQEvAJsAWKAtEBbAC7gF6AMPAZyAzwBoQDWoGuga8A94YAgABFACoALAAhABMAEcAKQAagA4ACOAFFgK8Ar4BdgDOAG8AOaAdkA_YCPQEvAJsAWiAtgBdwC9AGHgM5AZ4A0IBrQDXQHvAPiHAXoADAARAA4ADwALgAZABYADmAHwAfgBHACaAFAAKYAVwAtgBfADQAIQARYAjgBLgCkAFkAL4AYUAzQDOAGoAOcAdwA8gB8wEAAQOAg4CEAERAI4ATgAncBPgE_AKKAUsAqABWQC7AF6AM4AbwA44B0gD0AHyAQ2AiIBFQCPQEigJLASsAmIBMsCbAJtAUgApMBS4CqgFiALUAWzAugC6gF3AL6AYFAxADEwGLAMhAZNAy4DLwGfgNCAaNA0wDTQGpwNdA2ABtADbgHHgOWAc-A7AB3EDyQPKAekA94B8QD5QH2gPxHQRQAFwAUABUADgAIAAXQAwADUAHgARAAmABVgC4ALoAYgAzABvAD1AIYAiQBLACaAFGAMMAZQA0QBsgDvAHtAPsA_QB_wEWARgAoIBVwCxAFzALyAYoA2gBuADiAHUAReAkQBMgCdgFDgKPAU0AsUBbAC4AFyALtAXeAvMBgwDDQGPAMkAZOAyoBlgDOQGiANVAawA3UBxYDkwHLgPHAfWQAXAAIAAyACwAJoAXwA0ACkAFlALkAvgBnADUAHOARwAnABPoChgKKAUsArIBYgC0gF2AN4Ac0A7IB6AEewJsAm0BSYCxAFtALuAXkAwIBiUDPAM_AaEA1MBroDYAG3AOfAdGA7CB5IHlAPeAfEQgPAALAAoAC4AGIATAAqgBcADEAG8APQAjgB3gD_AJSAUEAq4BcwDFAG0AOoApoBYoC0QFwALkAZOAzkBogDVQHjkgF4ABgAHAAXAAyACwAHIARwAmgBUAC-AGQANoAeABCACkAFkAM6AagBqgDuAIAARyApoCoAFZALSAXYA3gB8gEVAI6AR6AkUBKwCWoE2ATaApMBVICxAF3AMWAZZAzwDPwGhANdAbAA7AB5QD3iUB0ABAACwAKAAcgBgAGIAPAAiABMACqAFwAMUAhgCJAEcAKMAbIA7wB-AFXAMUAdQBF4CRAFHgLFAWwAvMBk4DOQGsFIFwAC4AKAAqABwAEEAMAA1AB4AEQAJgAUgAqgBiADNAIYAiQBRgDKAGiANkAd8A_AD9AIsARgAoIBVwC5gF5AMUAbQA3ACLwEiAJ2AUOAsUBbAC4AFyALtAXmAw0BkgDJwGcwNYA1kBuoDkwHjlAIgAFwAMgAsAByAEcAJoAVAAvgBkADaAHgAQgAiwBHACZAFIALIAXwAwgBnQDUANUAc4A7oB8gH2AQAAjgBIgCdgFDAKXAVkBWwCxQF1AXYA14BvADtgHoAP-AjoBHoCRQElgJigTYBNoCkAFPgLEAXQAu4BeQC-gGBAMWAZMAy6BngGfgNCAaJA1IDU4GugbAA4IB0wDsAHcAPKAe8A-IB8oA.f_wACHwAAAAA&plcmt=1&vpmute=1&vpa=auto&sdkv=h.3.633.0&osd=2&frm=2&vis=1&sdr=1&hl=en&afvsz=200x200%2C250x250%2C300x250%2C336x280%2C450x50%2C468x60%2C480x70&is_amp=1&uach=WyJtYWNPUyIsIjE0LjQuMSIsImFybSIsIiIsIjEyMy4wLjYzMTIuMTIyIixudWxsLDAsbnVsbCwiNjQiLFtbIkdvb2dsZSBDaHJvbWUiLCIxMjMuMC42MzEyLjEyMiJdLFsiTm90OkEtQnJhbmQiLCI4LjAuMC4wIl0sWyJDaHJvbWl1bSIsIjEyMy4wLjYzMTIuMTIyIl1dLDBd&u_so=p&ctv=0&sdki=445&ptt=20&adk=2541783110&sdk_apis=2%2C7%2C8&omid_p=Google1%2Fh.3.633.0&sid=E657451B-8F2F-4921-A55A-21D1A6F3C39E&nel=1&eid=44777649%2C44781409%2C44785452%2C95321947%2C95322027%2C95323893%2C95324128%2C95324210%2C95326337&ref=https%3A%2F%2Fwww.gry.pl%2F&top=https%3A%2F%2Fwww.gry.pl%2F&loc=https%3A%2F%2Fhtml5.gamedistribution.com%2Faeac8455b2024f25abfa943ec96aa749%2F%3Ftimestamp%3D1713336375%26countryCode%3Dpl%26siteid%3D88%26channelid%3D1%26siteLocale%3Dpl%26locale%3Dpl%26gd_sdk_referrer_url%3Dhttps%253A%252F%252Fwww.gry.pl%252Fgra%252Fkings-and-queens-match&dlt=1713336379046&idt=2621&dt=1713336390920&scor=3473667703821297&ged=ve4_td12_tt10_pd12_la2000_er0.0.156.300_vi0.0.600.510_vp100_eb24427",!0),new C("https://securepubads.g.doubleclick.net/gampad/ads?env=vp&gdfp_req=1&output=xml_vast4&unviewed_position_start=1&correlator=2275053868608838&sz=640x480&url=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&iu=%2F1015413%2FTNL_NS-18101700058%2FTNL_T-17110972893&description_url=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&max_ad_duration=300000&vpa=auto&vpmute=0&plcmt=1&cust_params=tnl_paid%3D866%26tnl_pid%3DP-17110700559%26tnl_system%3D1%26tid%3DTNL_T-17110972893%26tnl_ad_type%3Dvideo_image%26tnl_asset_id%3Daeac8455b2024f25abfa943ec96aa749%26tnl_ad_pos%3Dpreroll%26nsid%3DTNL_NS-18101700058%26tnl_pt%3D22%26gd_opus%3D1%26fp%3D0.9%26gd_np%3D1%26bfa%3D1%26fpt%3D99%26tnl_wog%3D0&sdkv=h.3.633.0&osd=2&frm=0&vis=1&sdr=1&hl=en&afvsz=200x200%2C250x250%2C300x250%2C336x280%2C450x50%2C468x60%2C480x70&is_amp=0&uach=WyJtYWNPUyIsIjE0LjQuMSIsImFybSIsIiIsIjEyMy4wLjYzMTIuMTIyIixudWxsLDAsbnVsbCwiNjQiLFtbIkdvb2dsZSBDaHJvbWUiLCIxMjMuMC42MzEyLjEyMiJdLFsiTm90OkEtQnJhbmQiLCI4LjAuMC4wIl0sWyJDaHJvbWl1bSIsIjEyMy4wLjYzMTIuMTIyIl1dLDBd&u_so=p&ctv=0&gdpr=1&gdpr_consent=CP6lKcgP6lKcgAcABBENApEsAP_gAEPgAAYgg1NV_H__bX9j8Xr1aft0eY1H99j7rsQxBhfJk-4FyDvW_JwXn2EyNA26pqYKmRIEuzZBIQFkHIDURUigSogVrSDMYkGMgTNIJ6BkgFMRY2dYCFxvmQlDMQIY5vp9d3d52D-9_dv83dziz8FHvzU5PmckcICdA58tDfl9bRCb-5IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHs87_XU-9_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEQaoJIACgAHgAkABcADUAHAAUwAtgBmAD4AH4AYAAygBmgDkAHcAP8Ag4BHQCRAElAKiAXMAvQBfQDPgHUAPaAfYBEwCVQExAJnAUgApoBUgCuQFswLcAt0Bf4DBIGRgZIAywBmYDRgGrgNvAboA3wBywDtgHcgPFgfaB90EqASpAlhBLMEtIJbglxBLoEuwJfQTABMECYYExQJjgTJgmYCZwE0gJqATYgm2CbkE3gTfCCgEGoA8EADAFyAMEAtIQCAAAEAA0ADgAPAAyACwAI4AUAArgBbAEWAJcAX0A1ADVAHOAPIAfIBAwCDgEcAJ2AT-AoYCigF2AM4AbwA9AB8gENgIvAR6AkUBJYCVgEywJsAm0BS4CnwFhQLEAsUBdQC7gF5AMCgYeBiADFoGQgZGAyYBlwDPwGhANGAaYA1MBroDaAG3AN0AcEA6gB2ADuoHkgeUA96B8gHyhIG4ACAAFwAUABUADgAHgAQAAwgBkAGoAPAAiABMACqAG8APQAhIBDAESAI4ASwAmgBhgDLAGyAO-AewB8QD7AP0AgEBFwEYAI0AUEAqABVwC5gGKANoAbgA4gCRAE7AKHAUeApEBbAC5AF3gLzAYMAw0BkgDJwGcwNYA1kBuoDkwHLgPHDAUAAAgAGAAcABQAEUAJwAsABhADwAPYAhACIAEcAJgAVAArwBbAFyAOYA8ACGAESAIsAS4ApABWgDOAGpANkA4ABxgDnAHkAPwAgABGACTAE6AKKAUuArwCvgF2AL8AZwA2wBvADjgHNAOoAdkA9QB-wEJAIbARUAi8BHUCRAJFASXAloCXgE2AJ2AUJApECkgFigLRAXIAugBdwC9AGBAMPAYyAx6BkYGSAMnAZyAzwBoQDTAGtANdAboA6gB3AD3hAE8AAIABgAHAAUABFACcALAAYQA8AD2AIQAiABHACYAFcALcAcwB3AEMAIkARYAlwBSACtAGcANSAbIBwADjAHOAPIAfIA_ACAAEYAJNAToBOwCigFLgK8Ar4BdgC_AGcANQAbYA3gBxwDmgHZAPUAfIA_YCEgENgIvAR3AkQCRQElwJaAl4BNgCdgFCAKSgWIBYoC0QFyALoAXcAvQBgQDDwGMgMeAZIAycBnIDQgGmANaAa6A3QB1ADuAHvCgEYAIoAVABYAEIAJgAXAA8ACOAFIANQAcABHACiwFeAV8AuwBnADeAHNAOyAfsBHoCRQEvAJsAWKAtEBbAC7gF6AMPAZyAzwBoQDWoGuga8A94YAgABFACoALAAhABMAEcAKQAagA4ACOAFFgK8Ar4BdgDOAG8AOaAdkA_YCPQEvAJsAWiAtgBdwC9AGHgM5AZ4A0IBrQDXQHvAPiHAXoADAARAA4ADwALgAZABYADmAHwAfgBHACaAFAAKYAVwAtgBfADQAIQARYAjgBLgCkAFkAL4AYUAzQDOAGoAOcAdwA8gB8wEAAQOAg4CEAERAI4ATgAncBPgE_AKKAUsAqABWQC7AF6AM4AbwA44B0gD0AHyAQ2AiIBFQCPQEigJLASsAmIBMsCbAJtAUgApMBS4CqgFiALUAWzAugC6gF3AL6AYFAxADEwGLAMhAZNAy4DLwGfgNCAaNA0wDTQGpwNdA2ABtADbgHHgOWAc-A7AB3EDyQPKAekA94B8QD5QH2gPxHQRQAFwAUABUADgAIAAXQAwADUAHgARAAmABVgC4ALoAYgAzABvAD1AIYAiQBLACaAFGAMMAZQA0QBsgDvAHtAPsA_QB_wEWARgAoIBVwCxAFzALyAYoA2gBuADiAHUAReAkQBMgCdgFDgKPAU0AsUBbAC4AFyALtAXeAvMBgwDDQGPAMkAZOAyoBlgDOQGiANVAawA3UBxYDkwHLgPHAfWQAXAAIAAyACwAJoAXwA0ACkAFlALkAvgBnADUAHOARwAnABPoChgKKAUsArIBYgC0gF2AN4Ac0A7IB6AEewJsAm0BSYCxAFtALuAXkAwIBiUDPAM_AaEA1MBroDYAG3AOfAdGA7CB5IHlAPeAfEQgPAALAAoAC4AGIATAAqgBcADEAG8APQAjgB3gD_AJSAUEAq4BcwDFAG0AOoApoBYoC0QFwALkAZOAzkBogDVQHjkgF4ABgAHAAXAAyACwAHIARwAmgBUAC-AGQANoAeABCACkAFkAM6AagBqgDuAIAARyApoCoAFZALSAXYA3gB8gEVAI6AR6AkUBKwCWoE2ATaApMBVICxAF3AMWAZZAzwDPwGhANdAbAA7AB5QD3iUB0ABAACwAKAAcgBgAGIAPAAiABMACqAFwAMUAhgCJAEcAKMAbIA7wB-AFXAMUAdQBF4CRAFHgLFAWwAvMBk4DOQGsFIFwAC4AKAAqABwAEEAMAA1AB4AEQAJgAUgAqgBiADNAIYAiQBRgDKAGiANkAd8A_AD9AIsARgAoIBVwC5gF5AMUAbQA3ACLwEiAJ2AUOAsUBbAC4AFyALtAXmAw0BkgDJwGcwNYA1kBuoDkwHjlAIgAFwAMgAsAByAEcAJoAVAAvgBkADaAHgAQgAiwBHACZAFIALIAXwAwgBnQDUANUAc4A7oB8gH2AQAAjgBIgCdgFDAKXAVkBWwCxQF1AXYA14BvADtgHoAP-AjoBHoCRQElgJigTYBNoCkAFPgLEAXQAu4BeQC-gGBAMWAZMAy6BngGfgNCAaJA1IDU4GugbAA4IB0wDsAHcAPKAe8A-IB8oA.f_wACHwAAAAA&sdki=445&ptt=20&adk=1748861338&sdk_apis=2%2C7%2C8&omid_p=Google1%2Fh.3.633.0&media_url=blob%3Ahttps%253a%2F%2Fwww.gry.pl%2Ffa4fae4b-f435-43b4-9cee-af65696fe59e&sid=D3F4C4E1-4002-4BEE-A1F2-2638CD3B9197&a3p=EloKDWNyd2RjbnRybC5uZXQSQGE0MmZkMWJkNGI5MjgyOTY5NzUxNDUyYzVlNmUxNmQ1MzkzODYxY2E5Y2U2MGUzNjk3Y2ZlNTExMTQxYjFhZjgYucX8se4xSAASxgEKCHJ0YmhvdXNlEqwBWVNmZ3hFVno0OXBMOFI2c3ltSWtSdUFNdFg4d2Y0clBkdVMwTlVuLzZpUnhJZWh0cnRjVUtLSjFraHJDQWZERmp1N1pDNHJEc1lxMkduKzJFTFMxRmgzWlEzTUxaK0owbXZoTDR4UFlNc2JUbmlGNkczTWRaZjZQK3hEVVkwTU1FUlpkZzlKMjArcjlQNUtQOFBmWVhMaEkwRitGMUNhYUNwQS9aRVNNMVNnPRjBxfyx7jFIAFICCGoSGQoKdWlkYXBpLmNvbRjDz9ay7jFIAFICCGQSPgoFb3BlbngSLGV5SnBJam9pZEZoNU5XbDNSakZUT0ZjNVoxTlZRbFl5YWtRemR6MDlJbjA9GJ3I_LHuMUgA&nel=1&eid=44776494%2C44777649%2C44781409%2C95321947%2C95322027%2C95323893%2C95324128%2C95324210%2C95326337&top=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&loc=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&dt=1713336184147&cookie=ID%3Da17ef48e823e6627%3AT%3D1709727355%3ART%3D1713335981%3AS%3DALNI_MY20KDMmAY5MP3sMYIZndoHFyvxhg&gpic=UID%3D00000d6b0028013d%3AT%3D1709727355%3ART%3D1713335981%3AS%3DALNI_MZ7af9EvfEMcTpwOjK9LSfd-RfFCQ&scor=3968881391553945&ged=ve4_td21_tt0_pd21_la21000_er271.162.427.462_vi0.0.873.1064_vp100_eb24171",!0);var pL=function(e){var t=this,n=e.handler,i=e.timeout,o=e.interval,a=n||function(){return r(this,t),!0}.bind(this),s=i||1e3,u=o||10;return new Promise(function(e,i){var o=this;if(r(this,t),n())e(!0);else{var c=!1,d=setInterval(function(){r(this,o);try{a()&&(clearInterval(d),c=!0,e(!0))}catch(t){clearInterval(d),e(!1)}}.bind(this),u);setTimeout(function(){r(this,o),clearInterval(d),c||e(!1)}.bind(this),s)}}.bind(this))};function hL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hL(Object(r),!0).forEach((function(t){Eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vL(e){var t=e.gameData,n=e.msgrt,i=e.topDomain,o=e.parentDomain,a=e.parentURL;return{send_atom_event:function(e,s){if(function(e){var n=this,i=t.dbglg;return(null==i?void 0:i.enabled)&&i.topics&&i.topics.some(function(t){return r(this,n),t===e}.bind(this))}(e)){var u={gid:t.slug,md5:t.gameId,pid:0,pnm:t.pname,ctry:t.ctry,lcl:"en",hle:1,ads:1,args:s,href:window.location.href},c=(new iD).get();return u=mL(mL({},u),c),function(e,t){try{var r=n._layout,s=n._ua,u={tp:e,ct:0,vrs:Au.version,url:a,rfr:document.referrer,tdmn:i||o,dpth:0,args:t,ua:{brnm:s.browser.name,brvs:s.browser.version,osnm:s.os.name,osvs:s.os.version,dvmd:s.device.model,w:r.w,h:r.h}};return fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(it.encode(JSON.stringify(u)))))}catch(e){}}(e,u=s?mL(mL({},u),s):u)}}}}function gL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function AL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gL(Object(r),!0).forEach((function(t){Eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bL=rP(),yL=null,_L=null,wL=function(){return M((function e(t){var n,i,o,a=this;if(O(this,e),Eu(this,"_whichFrameV2",function(){var e=this;r(this,a);var t=C(window.location.href,!0),n=t.host,i=t.query,o="html5.gamedistribution.com"!==n,s=function(t){return r(this,e),"revision.gamedistribution.com"===t||"uncached-html5.gamedistribution.com"===t}.bind(this),u=s(n);null!=i&&i.gd_sdk_referrer_url&&(u=s(C(i.gd_sdk_referrer_url).host));return this._isMasterGameURL()&&!(this._isTokenGameURL()||o)||u?"loader-frame":"game-frame"}.bind(this)),yL)return yL;yL=this,this.isOpusReady=!1,this.isMidrollPlusExecuted=!1,this.blockedAdsMap={},this.blockingDetectedKey="d8d9b9b63e704668a29559970c1818be",this._defaults=this._getDefaultOptions(),this._extendDefaultOptions(this._defaults,t),this._version=t.version||"0.0.0",this._bridge=this._getBridgeContext(),this._location=new iD,this._location.print();var s=this._location.get(),u=(null==s||null===(n=s.top)||void 0===n||null===(n=n.domain)||void 0===n?void 0:n.value)||(null==s||null===(i=s.partner.domain)||void 0===i?void 0:i.value),c=null==s||null===(o=s.partner.url)||void 0===o?void 0:o.value;this._parentURL=0===this._bridge.depth?encodeURIComponent(this._bridge.parentURL):this._bridge.parentURL,this._parentURL=this._parentURL||c,this._parentDomain=this._bridge.parentDomain,this._topDomain=this._bridge.topDomain,this._topDomain=this._topDomain||u,_u("locs found:",this._topDomain,this._parentURL),this._isFullScreen=!1,this._giftCount={preroll:0,midroll:0,rewarded:0},this._mplus_count=0,function(e){XP.apply(this,arguments)}({whichFrame:this._whichFrameV2(),options:{showAd:this.showAd.bind(this),onEvent:this._onEvent.bind(this)}}),this._setConsoleBanner(),this._initializeMessageRouter(),this._checkConsole(),this._subscribeToEvents(),this.sdkReady=new Promise(this._initializeSDKWithGameData.bind(this)),this.sdkReady.then(function(e){r(this,a),this._sdk_ready=!0}.bind(this)).catch(function(e){r(this,a),this._sdk_ready=!1}.bind(this)).finally(function(){var e,t,n,i=this;if((r(this,a),null===(e=this._gameData)||void 0===e||null===(e=e.directTokenUse)||void 0===e?void 0:e.enabled)&&this._blockDirectTokenURLEmbedding().blocked)return;this.dumper=new vL({msgrt:this.msgrt,gameData:this._gameData,parentDomain:this._parentDomain,parentURL:this._parentURL,topDomain:this._parentURL}),this.dumper,this._initGameSessionTracking(),this._sendLoadedEvent(2),!0===(null===(t=this._gameData.lp)||void 0===t?void 0:t.load)&&this._sendLoadedEvent(1),this._sendLoaderDataEvent(),this._checkSplashAndPromoScreens(),this._initBlockingExternals(),this._initUnityHandler(),this._checkFullscreen(),null!==(n=this._gameData.evnts)&&void 0!==n&&n.enabled&&this._isLoaderGameURL()&&(aP(this._gameData),this._gameData.evnts.gameId===this.options.gameId&&setInterval(function(){r(this,i),this._send_gametag_data("heartbeat")}.bind(this),1e3*this._gameData.evnts.heartbeatDuration)),nL.init(this),this._send_gametag_data("sdk_init"),this.fixScore()}.bind(this)),this._registerSGBridge(),_u("which-frame",this._whichFrame()),this._loadLocus()}),[{key:"_getVisitorId",value:(E=t(d.mark((function e(){var t,n,i,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pL({handler:function(){return r(this,o),!!_L}.bind(this),timeout:1e3,interval:10});case 2:return n=e.sent,i=n?null===(t=_L)||void 0===t||null===(t=t.visitor)||void 0===t||null===(t=t.visitorData)||void 0===t?void 0:t.visitorId:"noVisitorId",e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)}))),function(){return E.apply(this,arguments)})},{key:"_initGameSessionTracking",value:(k=t(d.mark((function e(){var t,n,i,o,a,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=this._gameData)||void 0===t||null===(t=t.gs_trc)||void 0===t?void 0:t.enabled){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this._getVisitorId();case 5:o=e.sent,a=this._gameData,s=a.category,u=a.dname,c=a.pname,l=a.gameId,f=a.slug,p=a.title,h=a.ctry,m=a.failed,v=this._topDomain||this._parentDomain,g=new iD,A=g.get(),b=this.msgrt._ua,y=document.referrer,_=this.msgrt._layout,w=Au.version,x=(null===(n=this._gameData)||void 0===n||null===(n=n.gft)||void 0===n?void 0:n.midroll.enabled)||!1,k=(null===(i=this._gameData)||void 0===i||null===(i=i.midroll_plus)||void 0===i?void 0:i.enabled)||!1,E={args:{rfr:y,category:s,dname:u,pname:c,gameId:l,slug:f,title:p,ctry:h,domain:v,loc:A,ua:b,layout:_,version:w,visitorId:o,hasGft:x,hasMp:k,failed:m},onError:function(e){r(this,S),this._sendSDKError(e)}.bind(this)},hM(E);case 20:case"end":return e.stop()}}),e,this)}))),function(){return k.apply(this,arguments)})},{key:"_initUnityHandler",value:function(){var e=this;window.addEventListener("DOMNodeInserted",function(){if(r(this,e),this._gameData.block_exts&&this._removeExternalsInHtml({enabled:!1}),document.getElementsByClassName("webgl-content")[0]){var t=document.getElementsByClassName("webgl-content")[0].getElementsByClassName("footer")[0];t&&t.setAttribute("style","display:none")}}.bind(this))}},{key:"_send_gametag_data",value:(x=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._getGdModeIfExist()&&(r=pt()||"web",this.adInstance._send("tg.created",{gmid:this.options.gameId,dvc:r,qint:t}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"_loadCMP",value:(w=t(d.mark((function e(){var t,r,n,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isMasterGameURL()){e.next=12;break}if(r=new iD,0!==(null==(n=r.get("depth"))?void 0:n.value)||null===(t=this._gameData)||void 0===t||null===(t=t.cmp)||void 0===t||!t.enabled){e.next=12;break}if(null===(i=this._gameData)||void 0===i||null===(i=i.cmp)||void 0===i||!i.checkDepthOnly){e.next=9;break}return e.next=7,KT();case 7:e.next=12;break;case 9:if("html5.gamedistribution.com"!==this._topDomain){e.next=12;break}return e.next=12,KT();case 12:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})},{key:"testConsent",value:function(){try{jT();t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,UT({});case 2:e.sent;case 3:case"end":return e.stop()}}),e)})))()}catch(e){console.log("find CMP error",e)}}},{key:"_sendLoaderDataEvent",value:function(){try{this.options.onLoaderEvent&&this.options.onLoaderEvent({name:"LOADER_DATA",message:{game:this._gameData,bridge:this._bridge},status:this._sdk_ready?"success":"error"})}catch(e){}}},{key:"_registerSGBridge",value:function(){var e=this;qT.on("splash-hidden",function(t){r(this,e),this._hideCMPButton()}.bind(this))}},{key:"_hideCMPButton",value:function(){var e=document.getElementById("ot-sdk-btn-floating");e&&(e.style.display="none")}},{key:"_sendLoadedEvent",value:function(e){if(this._isLoaded||(this._isLoaded={}),!this._isLoaded[e]){this._isLoaded[e]=!0;var t="loader-frame"===this._whichFrame()&&(this._isHostHTML5Domain()||this._isExternalHoster());C(location.href,!0);if(this._whichFrame(),this._isMasterGameURL(),this._isExtHostedGameURL(),this._isTokenGameURL(),this._isHostHTML5Domain(),this._isExternalHoster(),location.href,document.referrer,t)try{_u("which-frame, sending tunnel event",this._whichFrame()),this._sendTunnlEvent(e),this.msgrt.send("loaded",{message:this._hasBlocker?"Has Blocker":"No Blocker"})}catch(e){}}}},{key:"_sendGamedockGamePlay",value:function(){var e=this._isTokenGameURL();if(!(this._gameData.loader.enabled&&e||this._gameDockGamePlaySent))try{this._sendGamedockEvent("gameplay"),this._gameDockGamePlaySent=!0}catch(e){}}},{key:"_safeInit",value:function(){this._checkUserDeclinedTracking(),this._checkWhitelabelPartner();var e=this._gameData.diagnostic;void 0!==e&&void 0!==e.close_ga&&!1!==e.close_ga||this._loadGoogleAnalytics(),void 0!==e&&void 0!==e.close_gamedock&&!1!==e.close_gamedock||!this._bridge.isCoreSDKMode&&!this._bridge.noGamedockSDK&&this._loadGamedockTracker(),void 0!==e&&void 0!==e.close_minijuegos&&!1!==e.close_minijuegos||(console.log("noMinijuegosSDK",!this._bridge.isCoreSDKMode,!this._bridge.noMinijuegosSDK,document.location.search.indexOf("mp_game_id")>=0),!this._bridge.isCoreSDKMode&&!this._bridge.noMinijuegosSDK&&document.location.search.indexOf("mp_game_id")>=0&&this._loadMiniJuegosGratisTracker())}},{key:"_initializeSDKWithGameData",value:(_=t(d.mark((function e(t,n){var i,o,a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._getGameData();case 3:return this._gameData=e.sent,e.next=6,this._loadCMP();case 6:return this._bridge.isCoreSDKMode=(null===(i=this._gameData.disableAds)||void 0===i?void 0:i.default)||!1,this._safeInit(),this._checkGameId(),this._checkGameDeleted(),this._checkBlocking(),this._changeMidrollInDebugMode(),void 0!==this._gameData.diagnostic&&void 0!==(null===(o=this._gameData.diagnostic)||void 0===o?void 0:o.close_ads)&&!1!==(null===(a=this._gameData.diagnostic)||void 0===a?void 0:a.close_ads)||(this.videoAdReady=this._initializeVideoAd().then(function(){r(this,s),(this._isMasterGameURL()||this._isExtHostedGameURL())&&(this.msgrt.send("adblocker.flw",{message:"ok"}),this.msgrt.send("adblocker.adapters",{message:"none"})),this._checkAdBlockerRemoval()}.bind(this)).catch(function(e){r(this,s);var t="".concat(e).startsWith("Error: Blocked:");wu("gd-adflow adsBlocked",t,e);var n=this.get_ad_system_init_result(),i=n.ima,o=n.afg;if(this.adsBlocked=!i&&!o,this._isMasterGameURL()||this._isExtHostedGameURL()){this.msgrt.send("adblocker.flw",{message:"".concat(this.adsBlocked?"blocked":"ok")});var a=i||o?i?o?"none":"adsense":"ima":"all";this.msgrt.send("adblocker.adapters",{message:"".concat(a)})}this._sendSDKError(e),this._checkAdBlocker(),console.error(e.message||e)}.bind(this))),e.next=15,CM();case 15:t(this._gameData),e.next=23;break;case 18:e.prev=18,e.t0=e.catch(0),this._sendSDKError(e.t0),this.onResumeGame(e.t0.message,"warning"),n(e.t0);case 23:case"end":return e.stop()}}),e,this,[[0,18]])}))),function(e,t){return _.apply(this,arguments)})},{key:"_getDefaultOptions",value:function(){return{debug:!1,testing:!1,gameId:"4f3d7d38d24b740c95da2b03dc3a2333",prefix:"gdsdk__",onEvent:function(e){},onLoaderEvent:function(e){},flashSettings:{adContainerId:"",splashContainerId:""},advertisementSettings:{},resumeGame:function(){},pauseGame:function(){},onInit:function(e){},onError:function(e){},loader:{}}}},{key:"_checkAdBlockerRemoval",value:function(){bt.getBoolean(this.blockingDetectedKey)&&(bt.set(this.blockingDetectedKey,!1),this.send_atom_event("ad-blocker-removed"))}},{key:"_checkAdBlocker",value:(y=t(d.mark((function e(){var t,r,n,i,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t=this.get_ad_system_init_result(),r=t.ima,n=t.afg,r&&n){e.next=12;break}if(bt.set(this.blockingDetectedKey,!0),null===(i=this._gameData.rmblck)||void 0===i||!i.enabled){e.next=12;break}if(this.adBlockerPage){e.next=12;break}return e.next=9,oL();case 9:o=e.sent,this.adBlockerPage=new o(this._gameData),this.adBlockerPage.add();case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),console.log(e.t0.message);case 17:case"end":return e.stop()}}),e,this,[[0,14]])}))),function(){return y.apply(this,arguments)})},{key:"_extendDefaultOptions",value:function(e,t){var r=B(e);this.options=t?at(r,t):r,this.options.gameId=this.options.gameId.trim()}},{key:"_setConsoleBanner",value:function(){if(!this._bridge.noConsoleBanner){var e=Au.version,t=console.log("%c %c %c GameDistribution.com HTML5 SDK | Version: "+e+" %c %c %c","background: #9854d8","background: #6c2ca7","color: #fff; background: #450f78;","background: #6c2ca7","background: #9854d8","background: #ffffff");console.log.apply(console,t)}}},{key:"_shouldSendTunnlEvent",value:function(e){return this.tunnlEventCounts||(this.tunnlEventCounts={}),this.tunnlEventCounts[e]||(this.tunnlEventCounts[e]=0),this.tunnlEventCounts[e]++,1===this.tunnlEventCounts[e]}},{key:"_sendTunnlEvent",value:function(e){var t=this;if(this._shouldSendTunnlEvent(e)){void 0!==this._topDomain&&"undefined"!==this._topDomain||(this._topDomain=void 0);var n={page_url:this._topDomain||this._parentDomain,game_id:this.options.gameId,eventtype:e,ts:Date.now()};fetch("https://hlana.gamedistribution.com/event?".concat(l.stringify(n))).catch(function(i){r(this,t),this._sendHLAnalyicsLog({query:AL(AL({},n),{},{error:null==i?void 0:i.message}),eventType:-e})}.bind(this)),this._sendHLAnalyicsLog({query:n,eventType:e}),this.adInstance._send_atom_event("hl.config",n),this._send_gametag_data("sdk_gameplay")}}},{key:"_sendHLAnalyicsLog",value:function(e){var t,r=e.query,n=e.eventType;if(1===n?t="hl.gameplay":2===n?t="hl.gameload":3===n?t="hl.adblock":-1===n?t="hl.gameplay.error":-2===n?t="hl.gameload.error":-3===n&&(t="hl.adblock.error"),t)try{this.dumper.send_atom_event(t,r)}catch(e){console.log("Error on sending dump!",e)}}},{key:"_sendAdRequestContext",value:function(e){this.msgrt.send("adctx",{message:e.adTag.bidder})}},{key:"_checkWhitelabelPartner",value:function(){this._whitelabelPartner=!1;var e=dt();e.hasOwnProperty("xanthophyll")&&"true"===e.xanthophyll&&(this._whitelabelPartner=!0,wt("White label publisher","".concat(this._whitelabelPartner),"success"))}},{key:"_checkConsole",value:function(){try{if(!bt.available)return;"developer.gamedistribution.com"===this._parentDomain||"developer.gamedistribution.com"===this._topDomain||"developer-acc.gamedistribution.com"===this._parentDomain||"developer-acc.gamedistribution.com"===this._topDomain?(bt.set("gd_debug_ex",!0),bt.set("gd_disable_midroll_timer",!0),bt.set("gd_tag",!0)):"localhost:3000"===this._parentDomain&&(bt.set("gd_debug_ex",!0),bt.set("gd_disable_midroll_timer",!0)),bt.getBoolean("gd_debug_ex")&&(this.openConsole(),this.msgrt.send("dev.console",{message:this._parentDomain}))}catch(e){}}},{key:"_checkUserDeclinedTracking",value:function(){this._userDeclinedTracking=this._bridge.isCoreSDKMode||document.location.search.indexOf("gdpr-tracking=0")>=0||document.cookie.indexOf("ogdpr_tracking=0")>=0}},{key:"_initializeMessageRouter",value:function(){this.msgrt=new Ot({gameId:this.options.gameId,hours:(new Date).getHours(),topDomain:this._topDomain,domain:this._parentDomain,referrer:this._parentURL,depth:mt(),version:Au.version,tracking:this._userDeclinedTracking,whitelabel:this._whitelabelPartner,platform:pt(),byloader:this._bridge.isTokenGameURL,isTokenGameURL:this._bridge.isTokenGameURL,isMasterGameURL:this._bridge.isMasterGameURL,isExtHostedGameURL:this._bridge.isExtHostedGameURL,byloaderVersion:this._bridge.version})}},{key:"_loadGamedockTracker",value:function(){var e=this;try{var t=[this._gameData.gmky.url];ht(t[0],"GamedockSDK",{alternates:t}).then(function(){var t;r(this,e),_L=this._initGamedockTracker(window.GamedockSDK),this._sendGamedockEvent("pageview"),null!==(t=this._gameData.diagnostic)&&void 0!==t&&null!==(t=t.gameDock)&&void 0!==t&&t.adViewEvent&&_L.tracking.enableHeartBeatForPage({pageId:this.options.gameId,pageType:"game"},this._gameData.diagnostic.gameDock.heartbeatConfig),NT.track(_L,this._gameData)}.bind(this)).catch(function(t){r(this,e),this._sendSDKError(t)}.bind(this))}catch(e){}}},{key:"_initGamedockTracker",value:function(e){if(!this._bridge.isCoreSDKMode)return e.initialize("gd",this._parentDomain)}},{key:"_sendGamedockEvent",value:function(e){var t;null===(t=_L)||void 0===t||null===(t=t.tracking)||void 0===t||t.trackEvent(e,{pageId:this.options.gameId,pageType:"game"})}},{key:"_loadMiniJuegosGratisTracker",value:function(){var e=this;window.mpConfig={game:this.options.gameId,partner:"game-distribution"};var t=["https://ext.minijuegosgratis.com/external-host/main.js"];console.log("noMinijuegosSDK loading"),ht(t[0],"MinijuegosSDK",{alternates:t}).catch(function(t){r(this,e),this._sendSDKError(t)}.bind(this))}},{key:"_loadLocus",value:function(){var e=t(d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GD();case 2:if(e.sent){e.next=6;break}return console.log("locus-disabled"),e.abrupt("return");case 6:t=["https://pm.azerioncircle.com/p/locus/"],window.gdlocus=window.gdlocus||{cmd:[]},window.gdlocus.cmd.push(function(){r(this,n),this.isOpusReady=!0,window.gdlocus.iservice.register({method:"muteAdFlow",handler:this._muteFlowSound.bind(this)}),window.gdlocus.iservice.register({method:"terminateAdFlow",handler:this._terminateFlow.bind(this)})}.bind(this)),ht(t[0],"locus",{alternates:t}).catch(function(e){r(this,n),this._sendSDKError(e)}.bind(this)).then(function(){r(this,n)}.bind(this));case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_muteFlowSound",value:(b=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._adFlow){e.next=2;break}return e.abrupt("return");case 2:this._adFlow.mute();case 3:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"_terminateFlow",value:(A=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._adFlow){e.next=2;break}return e.abrupt("return");case 2:this._adFlow.terminate();case 3:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"_loadGoogleAnalytics",value:function(){var e=this;if(!this._bridge.isCoreSDKMode){var t=this._gameData,n=t.gameId,i=t.slug,o=t.title,a=new iD,s={provider:"gd-sdk",page_depth:a.get("depth.value"),partner_domain_from:a.get("partner.domain.from"),top_domain_from:a.get("top.domain.from"),top_domain:this._topDomain,parent_domain:this._parentDomain,parent_url:this._parentURL,game_id:n,game_slug:i,game_title:o};lL({onError:function(t){r(this,e),this._sendSDKError(t)}.bind(this),args:s})}}},{key:"_getCleanUrl",value:function(e){var t=e;try{var r=new C(e,!0);t="".concat(r.protocol,"//").concat(r.hostname,"/").concat(r.pathname)}catch(e){}return t}},{key:"_subscribeToEvents",value:function(){var e=this;this.eventBus=new It,xt.forEach(function(t){var n=this;return r(this,e),this.eventBus.subscribe(t,function(e){return r(this,n),this._onEvent(e)}.bind(this),"sdk")}.bind(this)),kt.forEach(function(t){var n=this;return r(this,e),this.eventBus.subscribe(t,function(e){return r(this,n),this._onEvent(e)}.bind(this),"ima")}.bind(this)),this.eventBus.subscribe("COMPLETE",function(){r(this,e);var t=this._getDeveloperDomains(),n=t.developerDomain,i=t.gameApiDomain;if(n){fetch("https://".concat(i,"/game/v2/hasapi/").concat(this.options.gameId,"?timestamp=").concat((new Date).valueOf()));try{var o=JSON.stringify({type:"GD_SDK_IMPLEMENTED",gameID:this.options.gameId});window.location!==window.top.location?window.top.postMessage(o,"*"):null!==window.opener&&window.opener.location!==window.location&&window.opener.postMessage(o,"*")}catch(e){}}xT()}.bind(this),"ima"),this.eventBus.subscribe("CONTENT_PAUSE_REQUESTED",function(){return r(this,e),this.onPauseGame("New advertisements requested and loaded","success")}.bind(this),"ima"),this.eventBus.subscribe("IMPRESSION",function(t){var n;r(this,e),this.msgrt.send("ad.impression"),yT(),null!==(n=this._gameData.diagnostic)&&void 0!==n&&null!==(n=n.gameDock)&&void 0!==n&&n.adViewEvent&&NT.track(_L,this._gameData)}.bind(this),"ima"),this.eventBus.subscribe("AD_ERROR",function(t){r(this,e),this.msgrt.send("ad.error",{message:t.message,details:t.details})}.bind(this),"ima"),this.eventBus.subscribe("AD_SDK_REQUEST",function(t){r(this,e),this._sendAdRequestContext(t.message)}.bind(this),"sdk"),this.eventBus.subscribe("SDK_ERROR",function(t){if(r(this,e),t.message.startsWith("Blocked:")){var n=t.message.replace("Blocked:","").trim(),i=this._getCleanUrl(n),o="Blocked: ".concat(i);if(!this._bridge.noBlockerEvent&&(this.msgrt.send("error",{message:o}),!this._hasBlocker)){this._hasBlocker=!0;this.msgrt.send("adblck.src",{message:o});var a=this.get_ad_system_init_result(),s=a.ima,u=a.afg;(!s||!u)&&this._sendTunnlEvent(3)}}else this.msgrt.send("error",{message:t.message})}.bind(this),"sdk"),this.eventBus.subscribe("AD_REQUEST_KEYS_EMPTY",function(t){r(this,e),this.msgrt.send("tunnl.keys.empty",{message:t.message,details:t.details})}.bind(this),"sdk"),this.eventBus.subscribe("AD_REQUEST_KEYS_FALLBACK",function(t){r(this,e),this.msgrt.send("tunnl.keys.fallback",{message:t.message,details:t.details})}.bind(this),"sdk"),this.eventBus.subscribe("AD_T4R",function(t){return r(this,e),this.msgrt.send("adt4r")}.bind(this),"sdk")}},{key:"_checkGameId",value:function(){this.options.gameId===this._defaults.gameId&&this._sendSDKError("Please check if your GAME ID is correct. Otherwise, no revenue will be reported.")}},{key:"_getDefaultGameData",value:function(){return{gameId:this.options.gameId,disableAds:{},preroll:!0,midroll:12e4,rewardedAds:!1,title:"",tags:[],category:"",assets:[],dmain:!0,sdk:{},loader:{},splash:{},promo:{},dAds:{},pAds:{},mAds:{},rAds:{}}}},{key:"_getGameDataUrl",value:function(){var e=void 0!==this._topDomain&&"undefined"!==this._topDomain?this._topDomain:this._parentDomain,t=SD().config;return"https://".concat(t.gameAPI,"/game/v4/get/").concat(this.options.gameId.replace(/-/g,""),"/?domain=").concat(e,"&v=").concat(Au.version,"&localTime=").concat((new Date).getHours())}},{key:"_checkBlocking",value:(g=t(d.mark((function e(){var t,r,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=!0,r=this._gameData,n=this._parentDomain.indexOf("gamedistribution.com")>=0,t=(t=void 0===this._gameData.dmain||this._gameData.dmain)||n,(r.bloc_gard&&!0===r.bloc_gard.enabled||!t)&&this._redirectToBlocking(!1,!t);case 7:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"_blockDirectTokenURLEmbedding",value:function(){var e,t=this._checkTokenGameUrl(),r=new iD,n="html5.gamedistribution.com"!==C(document.referrer).host,i=t&&!iL.SDKExistsOnUpperFrame&&r.get("depth.value")>0&&n;if(i&&(null===(e=this._gameData)||void 0===e||null===(e=e.directTokenUse)||void 0===e?void 0:e.enabled)){var o,a=null===(o=this._gameData)||void 0===o||null===(o=o.directTokenUse)||void 0===o?void 0:o.behavior;"to-loader"===a?this._redirectToLoaderFrame():"to-blocked-page"===a&&this._redirectToBlocking(!0)}return{blocked:i}}},{key:"_redirectToBlocking",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.msgrt.send("blocked");var i=this._gameData;setTimeout(t(d.mark((function t(){return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=9;break}return t.prev=1,t.next=4,r.adInstance._send_atom_event("token-blocked");case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),console.log("Could not send dump.token-blocked",t.t0);case 9:window.location.href="https://html5.api.gamedistribution.com/blocked.html?".concat(l.stringify({domain:r._parentDomain,id:i.gameId,img:r._get_game_thumbnail_url(),title:i.title,unregistered:n,utm_source:r._parentDomain,utm_medium:(null==i?void 0:i.slug)||(null==i?void 0:i.title)||(null==i?void 0:i.gameId)||"unknown",utm_campaign:"block-and-redirect"}));case 10:case"end":return t.stop()}}),t,null,[[1,6]])}))),100)}},{key:"_redirectToLoaderFrame",value:function(){var e=this,r=this._gameData;setTimeout(t(d.mark((function t(){var n,i,o,a;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.adInstance._send_atom_event("loader-redirect");case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),console.log("Could not send dump.loader-redirect",t.t0);case 8:n=C(location.href,!0),i=AL(AL({},n.query),{},{rd:"1"}),o=l.stringify(i),a="https://html5.gamedistribution.com/".concat(r.gameId,"/?").concat(o),window.location.href=a;case 13:case"end":return t.stop()}}),t,null,[[0,5]])}))),100)}},{key:"_checkGameDeleted",value:function(){var e=this;6!==this._gameData.status&&4!==this._gameData.activeStatus||(console.log("%c %c %c This game was deleted, please remove it in your website... ","background: #F2181A","background: #F23818","color: #fff; background: #F23818;","background: #F55E60","background: #F55E60","background: #c4161e; color: #fff;"),setTimeout(function(){r(this,e),document.location="https://html5.api.gamedistribution.com/deleted.html"}.bind(this),100))}},{key:"_changeMidrollInDebugMode",value:function(){var e=this._gameData;kT().disableMidrolltimer?e.midroll=0:bt.available&&bt.getBoolean("gd_debug_ex")&&(bt.getBoolean("gd_disable_midroll_timer")?e.midroll=0:e.midroll=this._getDefaultGameData().midroll)}},{key:"_checkSplashAndPromoScreens",value:function(){var e,t,r;!1===(null===(e=this._gameData.loader)||void 0===e?void 0:e.mobile)&&this._getisMobile()&&(this._gameData.loader.enabled=!1);var n,i=this._gameData,o=i.gdpr&&!0===i.gdpr.consent,a=i.loader,s=null===(t=i.promo)||void 0===t?void 0:t[null===(r=i.promo)||void 0===r||null===(r=r.template)||void 0===r?void 0:r.preroll];(i.preroll||(this.adRequestTimer=Date.now()),this.options.loader.enabled)?null!=s&&s.enabled?this._createPromoBeforeSplash(i,o):a.enabled&&!0!==(null===(n=a.splash)||void 0===n?void 0:n.skip)?this._createSplash(i,o):this.onResumeGame("Skipped splash.","success"):a.enabled||this._bridge.isTokenGameURL&&this._bridge.isExtHostedGameURL||(this.options.advertisementSettings.autoplay||o?null!=s&&s.enabled?this._createPromoBeforeSplash(i,o):!1!==a.enabled&&this._createSplash(i,o):null!=s&&s.enabled&&this._createPromo(i,o))}},{key:"_initializeVideoAd",value:(v=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._bridge.isCoreSDKMode){e.next=2;break}return e.abrupt("return");case 2:return(t=this._gameData).sdk.enabled&&(this.options.advertisementSettings=at(this.options.advertisementSettings,t.sdk)),this.macros=new Ct({game:t,bridge:this._bridge}),this.adInstance=new CT(this.options.flashSettings.adContainerId,this.options.advertisementSettings,{parentURL:this._parentURL,parentDomain:this._parentDomain,topDomain:this._topDomain}),this.adInstance.gameId=t.gameId,this.adInstance.category=t.category,this.adInstance.tags=t.tags,this.adInstance.noPreroll=this._bridge.noPreroll,this.adInstance.macros=this.macros,this.adInstance.gameData=t,this.adInstance.msgrt=this.msgrt,this.adInstance.PackageJSON=Au,this.adInstance._send_atom_event("gd.location"),e.next=17,this.adInstance.start();case 17:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"_sendSDKReady",value:function(){var e="Everything is ready.";this.eventBus.broadcast("SDK_READY",{message:e,status:"success"});try{this.options.onInit(e)}catch(e){wt("DEVELOPER_ERROR",e.message,"warning")}}},{key:"_sendSDKError",value:function(e){e=e.message?e:{message:e};this.eventBus.broadcast("SDK_ERROR",{message:e.message,status:"error"});try{this.options.onError(e)}catch(e){wt("DEVELOPER_ERROR",e.message,"warning")}}},{key:"IscForwardOnEvent",value:(m=t(d.mark((function e(t){var r,n,i,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!1,e.prev=1,e.next=4,oM();case 4:if(!(n=e.sent)){e.next=14;break}return e.next=8,n.isLoader();case 8:if(o=e.sent,!((null===(i=this._gameData)||void 0===i||null===(i=i.isv_fw)||void 0===i?void 0:i.enabled)&&o&&n.onEvent)){e.next=14;break}return r=!0,n.onEvent({event:t}),e.abrupt("return",r);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),_u("[GD-IS] error on onEvent forward",e.t0);case 19:return e.abrupt("return",r);case 20:case"end":return e.stop()}}),e,this,[[1,16]])}))),function(e){return m.apply(this,arguments)})},{key:"_onEvent",value:(h=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.IscForwardOnEvent(t);case 2:if(!e.sent){e.next=5;break}return e.abrupt("return");case 5:if(_u("[GD-IS] onEvent executing",{event:null==t?void 0:t.name,e:t,location:window.location.href}),wt(t.name,t.message,t.status),!t.skipForward){e.next=9;break}return e.abrupt("return");case 9:wu("[developer-event]",t.name);try{this.options.onEvent({name:t.name,message:t.message,status:t.status,skipForward:t.skipForward,adPosition:t.adPosition})}catch(e){wt("DEVELOPER_ERROR",e.message,"warning")}case 11:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"_getGameData",value:(p=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jD();case 2:return t=e.sent,this.msgrt.setGameData(t),r=t.diagnostic,_t=r,e.abrupt("return",t);case 6:case"end":return e.stop()}var r}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"_createSplash",value:(f=t(d.mark((function e(n,i){var o,a,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getSplashTemplate(n);case 2:return o=e.sent,a=new o(AL(AL({},this.options),{},{isConsentDomain:i,version:Au.version}),n,this._parentDomain),e.next=6,zD();case 6:s=e.sent,u=s.enabled,a.on("playClick",function(){var e,o,s=this;if(r(this,c),((null===(e=window.gdlocus)||void 0===e?void 0:e.firstUserAction)||t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("gd-adflow locus-first-user-action is not defined");case 1:case"end":return e.stop()}}),e)}))))({game_id:n.gameId}).catch(function(e){r(this,s),console.log("gd-adflow locus-first-user-action error",e)}.bind(this)),i){var l=new Date;l.setDate(l.getDate()+90),document.cookie="ogdpr_tracking=1; expires=".concat(l.toUTCString(),"; path=/")}if(this._hideCMPButton(),gM("play"),u)window.gdsdk.showAd(ot.Interstitial,{position:"preroll"}).catch(function(e){r(this,s),a.hide()}.bind(this));else{var f={position:"preroll"};(function(){r(this,s),ku.firstAdapterModeAdsense&&(console.log("promo-test, set first adapter to adssense 1"),f.adapter="adsense")}).bind(this),this.showAd(ot.Interstitial,f).catch(function(e){r(this,s)}.bind(this))}null!==(o=this._gameData)&&void 0!==o&&null!==(o=o.evnts)&&void 0!==o&&o.enabled&&(sP({event:"FirstInteraction",game:this._gameData}),this._send_gametag_data("first_interaction"))}.bind(this)),this.onPauseGame("Pause the game and wait for a user gesture","success"),this.eventBus.subscribe("SDK_GAME_PAUSE",function(){r(this,c),a.hide()}.bind(this)),this.eventBus.subscribe("SDK_GAME_START",function(){r(this,c),a.hide()}.bind(this));case 12:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"_createPromoBeforeSplash",value:(c=t(d.mark((function e(t,n){var i,o,a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._createPrerollPromoTemplate(t);case 3:o=e.sent,(a=new o(AL(AL({},this.options),{},{isConsentDomain:n,version:Au.version,template:null===(i=t.promo)||void 0===i||null===(i=i.template)||void 0===i?void 0:i.preroll}),t)).on("done",function(){r(this,s),a.hide(),this._createSplash(t,n)}.bind(this)),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0),this._createSplash(t,n);case 12:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(e,t){return c.apply(this,arguments)})},{key:"_createPromo",value:(u=t(d.mark((function e(t,n){var i,o,a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._createPrerollPromoTemplate(t);case 3:o=e.sent,(a=new o(AL(AL({},this.options),{},{isConsentDomain:n,version:Au.version,template:null===(i=t.promo)||void 0===i||null===(i=i.template)||void 0===i?void 0:i.preroll}),t)).on("done",function(){r(this,s),a.hide(),this.onResumeGame("Resumed after the promo","warning")}.bind(this)),this.onPauseGame("Pause the game for the promo","success"),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),this.onResumeGame("Resumed after the promo","warning");case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e,t){return u.apply(this,arguments)})},{key:"showBanner",value:function(){var e=this;this.showAd(ot.Interstitial).catch(function(){r(this,e)}.bind(this))}},{key:"IscForwardShowAd",value:(s=t(d.mark((function e(t){var r,n,i,o,a,s,u,c,l=arguments;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=l.length>1&&void 0!==l[1]?l[1]:{},o={forwarded:n=!1,result:i},e.prev=3,null===(a=this._gameData)||void 0===a||null===(a=a.isv_fw)||void 0===a?void 0:a.enabled){e.next=7;break}return e.abrupt("return",o);case 7:return e.next=10,oM();case 10:if(s=e.sent){e.next=13;break}return e.abrupt("return",o);case 13:return e.next=16,s.isLoader();case 16:if(u=e.sent,c=s.hasRouter(),u||!c){e.next=26;break}return wu("[GD-IS] forwarding ad call",{location:window.location.href}),n=!0,e.next=25,s.showAd({adType:t,params:r});case 25:i=e.sent;case 26:e.next=32;break;case 29:e.prev=29,e.t0=e.catch(3),_u("[GD-IS] error on showAd forward",e.t0);case 32:return e.abrupt("return",{forwarded:n,result:i});case 33:case"end":return e.stop()}}),e,this,[[3,29]])}))),function(e){return s.apply(this,arguments)})},{key:"showAd",value:(a=t(d.mark((function e(r){var n,i=this,o=arguments;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,o){var a,s,u,c,l,f,p,h;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i.IscForwardShowAd(r,n);case 3:if(s=e.sent,u=s.forwarded,c=s.result,!u){e.next=9;break}return t(c),e.abrupt("return");case 9:if(gM("play"),l={adType:r||"interstitial",params:n,adTimestamp:i.adRequestTimer},!i._autoResumeIfAdsAreDisabled(bM(l))){e.next=16;break}return e.abrupt("return",t());case 16:return e.next=19,i.sdkReady;case 19:return f=e.sent,e.next=22,i.videoAdReady;case 22:if(null!==(a=i._gameData.lp)&&void 0!==a&&a.load||i._sendLoadedEvent(1),i._sendGamedockGamePlay(),i._rejectAdIfGameBlocked({gameData:f,adRequest:l}),i._rejectAdIfAdDisabled({gameData:f,adRequest:l}),i._rejectAdIfUnsupportedType({adRequest:l}),"rewarded"===r&&i._setGameRewardedFlag(),null!=n&&n.isGift||null!=n&&n.isCompensation||i._rejectAdIfAdRateHits({gameData:f,adRequest:l}),n&&(n.isGift||n.isMidrollPlus||n.isCompensation)||!i.adBlockerPage||(i._setAdRequestTimer(),i.adBlockerPage.show()),i.adInstance.attachAfgPosition(l),!i.adFlowRunning){e.next=33;break}return e.abrupt("return",t());case 33:return i.adFlowRunning=!0,p=new YM(i),i._adFlow=p,e.next=38,p.runAdFlow(l);case 38:h=e.sent,i.adFlowRunning=!1,i._adFlow=null,t(h),i._post_message({topic:"adrequest.instream"}),e.next=52;break;case 45:e.prev=45,e.t0=e.catch(0),i.adFlowRunning=!1,i._adFlow=null,i.onAdError(e.t0.message),i.onResumeGame(e.t0.message,"warning"),o(e.t0.message);case 52:case"end":return e.stop()}}),e,null,[[0,45]])})));return function(t,r){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"_autoResumeIfAdsAreDisabled",value:function(e){var t,r=!1,n=null===(t=this._gameData.diagnostic)||void 0===t?void 0:t.close_ads,i=this._gameData.disableAds[e],o=n||i;return _u("gd-adflow autoresume result: adModuleDisabled,adDisabled",n,i,e,this._gameData.diagnostic,this._gameData.disableAds),o&&(this._runAutoResume(),r=!0),r}},{key:"_runAutoResume",value:function(){var e=this,t="CONTENT_PAUSE_REQUESTED",n="CONTENT_RESUME_REQUESTED";this.eventBus.broadcast(t,{name:t,message:"Auto pause when ads are disabled"}),setTimeout(function(){r(this,e),this.eventBus.broadcast(n,{name:n,message:"Auto resume when ads are disabled"}),this.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success")}.bind(this),3e3)}},{key:"_giveGift",value:function(e){var t,r,n,i,o,a;switch(e){case"preroll":null!==(t=this._gameData)&&void 0!==t&&null!==(t=t.gft)&&void 0!==t&&t[e].enabled&&(null===(r=this._gameData)||void 0===r||null===(r=r.gft)||void 0===r||null===(r=r[e].durations[this._giftCount[e]])||void 0===r?void 0:r.after)===this.adInstance.adPrerollCount&&this.decideToGiveAGift(e);break;case"midroll":null!==(n=this._gameData)&&void 0!==n&&null!==(n=n.gft)&&void 0!==n&&n[e].enabled&&(null===(i=this._gameData)||void 0===i||null===(i=i.gft)||void 0===i||null===(i=i[e].durations[this._giftCount[e]])||void 0===i?void 0:i.after)===this.adInstance.adMidrollCount&&this.decideToGiveAGift(e);break;case"rewarded":null!==(o=this._gameData)&&void 0!==o&&null!==(o=o.gft)&&void 0!==o&&o[e].enabled&&(null===(a=this._gameData)||void 0===a||null===(a=a.gft)||void 0===a||null===(a=a[e].durations[this._giftCount[e]])||void 0===a?void 0:a.after)===this.adInstance.adRewardedCount&&this.decideToGiveAGift(e)}}},{key:"_setAdRequestTimer",value:function(){this.adRequestTimer=Date.now()}},{key:"clearSession",value:function(){this.adInstance.clearSession()}},{key:"_attachAfgFallback",value:function(e){var t=e.gameData,r=e.adRequest;if(!t.afg_disabled&&!r.params.hasOwnProperty("fallback_adsense"))switch(r.params.position){case"preroll":case"start":case"next":r.params.fallback_adsense=!0}}},{key:"_rejectAdIfGameBlocked",value:function(e){var t=e.gameData;if(t.bloc_gard&&!0===t.bloc_gard.enabled)throw new Error("Game or domain is blocked.")}},{key:"_rejectAdIfAdDisabled",value:function(e){var t=e.gameData,r=bM(e.adRequest);if(t.disableAds[r]||this._whitelabelPartner)throw new Error("Advertisements are disabled.")}},{key:"_rejectAdIfUnsupportedType",value:function(e){var t=e.adRequest;if(t.adType){if(t.adType!==ot.Interstitial&&t.adType!==ot.Rewarded)throw new Error("Unsupported an advertisement type: ",t.adType)}else t.adType=ot.Interstitial}},{key:"_rejectAdIfRewardedDisabled",value:function(e){var t=e.gameData;if(e.adRequest.adType===ot.Rewarded&&!t.rewardedAds)throw new Error("Rewarded ads are disabled.")}},{key:"_rejectAdIfAdRateHits",value:function(e){var t,r,n,i=e.gameData,o=e.adRequest,a=null;o.adType===ot.Interstitial&&null!==(t=i.diagnostic)&&void 0!==t&&null!==(t=t.useMidrollIndex)&&void 0!==t&&t.enabled&&this.adInstance.noPreroll?this.adInstance.adMidrollCount>(null===(r=i.diagnostic)||void 0===r||null===(r=r.useMidrollIndex)||void 0===r?void 0:r.indexes.length)-1||(a=6e4*(null===(n=i.diagnostic)||void 0===n||null===(n=n.useMidrollIndex)||void 0===n?void 0:n.indexes[this.adInstance.adMidrollCount])):a=i.midroll;if(o.adType===ot.Interstitial&&void 0!==this.adRequestTimer&&Date.now()-this.adRequestTimer<a)throw new Error("The advertisement was requested too soon.")}},{key:"preloadAd",value:(o=t(d.mark((function e(r){var n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,i){var o,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.sdkReady;case 3:return o=e.sent,e.next=6,n.videoAdReady;case 6:if(!o.bloc_gard||!0!==o.bloc_gard.enabled){e.next=8;break}throw new Error("Game or domain is blocked.");case 8:if(!o.disableAds[r]&&!n._whitelabelPartner){e.next=10;break}throw new Error("Advertisements are disabled for this ad type => ".concat(r,"..."));case 10:if(r){e.next=14;break}r=ot.Rewarded,e.next=16;break;case 14:if(r===ot.Interstitial||r===ot.Rewarded){e.next=16;break}throw new Error("Unsupported an advertisement type:"+r);case 16:if(!n.adInstance){e.next=22;break}return e.next=19,n.adInstance.preloadAd(r);case 19:e.t0=e.sent,e.next=23;break;case 22:e.t0="gdsdk://preloaded";case 23:a=e.t0,t(a),e.next=30;break;case 27:e.prev=27,e.t1=e.catch(0),i(e.t1);case 30:case"end":return e.stop()}}),e,null,[[0,27]])})));return function(t,r){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"cancelAd",value:(i=t(d.mark((function e(){var r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,n){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{r.adInstance.cancel(),r.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success"),n()}catch(e){r.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success"),t(e.message)}case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})},{key:"showDisplayAd",value:function(e){var r=this;return new Promise(function(){var n=t(d.mark((function t(n,i){var o;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r.sdkReady;case 3:return o=t.sent,t.next=6,r.videoAdReady;case 6:if(!o.dAds.enabled){t.next=13;break}return t.next=9,r.adInstance.loadDisplayAd(e);case 9:r._post_message({topic:"adrequest.display"}),n(),t.next=14;break;case 13:i("Display-Ads are disabled.");case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(0),i(t.t0.message||t.t0);case 19:case"end":return t.stop()}}),t,null,[[0,16]])})));return function(e,t){return n.apply(this,arguments)}}())}},{key:"onResumeGame",value:function(e,t){var r;try{this._allowExternals({enabled:!1}),this.options.resumeGame()}catch(e){console.log("gd-adflow error onResumeGame",e),wt("DEVELOPER_ERROR",e.message,"warning")}var n="SDK_GAME_START";this.eventBus.broadcast(n,{name:n,message:e,status:t,analytics:{category:"SDK",action:n,label:this.options.gameId+""}}),this.adInstance&&this.adInstance._hideAddResume(),this.adInstance&&this.adInstance._hideAdSpinner(),this.adInstance&&this.adInstance._clearTimeoutForSkipAddButton(),null===(r=this._gameData.evnts)||void 0===r||!r.enabled||this._isMasterGameURL()&&!this._isExtHostedGameURL()||(sP({event:"GameStarted",game:this._gameData}),this._send_gametag_data("game_started"))}},{key:"onPauseGame",value:function(e,t){var r;this._allowExternals({enabled:!0});try{this.options.pauseGame()}catch(e){wt("DEVELOPER_ERROR",e.message,"warning")}var n="SDK_GAME_PAUSE";this.eventBus.broadcast(n,{name:n,message:e,status:t,analytics:{category:"SDK",action:n,label:this.options.gameId+""}}),null===(r=this._gameData.evnts)||void 0===r||!r.enabled||this._isMasterGameURL()&&!this._isExtHostedGameURL()||(sP({event:"GamePaused",game:this._gameData}),this._send_gametag_data("game_paused"))}},{key:"onRewardedWatchComplete",value:function(){this.eventBus.broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"})}},{key:"onAdError",value:function(e){this.eventBus.broadcast("AD_ERROR",{message:e,status:"error"})}},{key:"openConsole",value:function(){try{new Pt(this).start(),bt.set("gd_debug_ex",!0)}catch(e){console.log(e)}}},{key:"_initBlockingExternals",value:function(){var e=this._gameData;(e.failed||e.block_exts&&e.block_exts.enabled)&&(this.window_open=window.open,this._allowExternals({enabled:!1}),this._removeExternalsInHtml({enabled:!1}))}},{key:"_checkFullscreen",value:function(){var e=this;try{var t=this._gameData;t.sdk.fullscreen&&"auto"===t.sdk.fullscreen&&document.addEventListener("click",function(){if(r(this,e),!this._isFullScreen){var t=document.body,n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;if(n)n.call(t);else if(void 0!==window.ActiveXObject){var i=new ActiveXObject("WScript.Shell");null!==i&&i.SendKeys("{F11}")}this._isFullScreen=!0}}.bind(this))}catch(e){console.log("Fullscreen error handled...",e)}}},{key:"_allowExternals",value:function(e){var t=this;void 0!==this.window_open&&(!1===e.enabled?window.open=function(e){r(this,t),this.msgrt.send("external",{message:"C> ".concat(e)}),(e.startsWith("https://play.google.com")||e.startsWith("https://itunes.apple.com"))&&this.window_open.call(null,e)}.bind(this):window.open=this.window_open)}},{key:"_shouldAllowExternalUrl",value:function(e){var t,n,i=this,o=new C(e),a=o.host;return o.href,n=((null===(t=this._gameData.urlBlockExc)||void 0===t?void 0:t.hosts)||[]).some(function(e){return r(this,i),e===a}.bind(this)),n}},{key:"_removeExternalsInHtml",value:function(e){var t=this;!1===e.enabled&&window.document.querySelectorAll("a").forEach(function(e){var n=this;r(this,t);var i=!!(e.innerText.toLowerCase().includes("start")||e.innerText.toLowerCase().includes("play")||e.innerText.toLowerCase().includes("continue")),o=e.getAttribute("href");if(!this._shouldAllowExternalUrl(o)){var a=e.getAttribute("href");e.removeAttribute("href"),i||(e.onclick=function(e){return r(this,n),e.preventDefault(),this.msgrt.send("external",{message:"H> ".concat(a)}),!1}.bind(this))}}.bind(this))}},{key:"_getBridgeContext",value:function(){var e=this._isTokenGameURL(),t=this._isMasterGameURL(),r=this._isExtHostedGameURL(),n=e||r?this._getTokenGameURLConfig():{};n=n||{};var i=decodeURIComponent((e||r)&&n.parentURL?n.parentURL:ut()),o=decodeURIComponent((e||r)&&n.parentDomain?n.parentDomain:st()),a=decodeURIComponent((e||r)&&n.topDomain?n.topDomain:r&&0===mt()?o:At()),s=(e||r)&&n.loaderEnabled,u=(e||r)&&n.loaderEnabled,c=(e||r)&&n.loaderEnabled,d=(e||r)&&n.loaderEnabled,l=(e||r)&&n.loaderEnabled,f=(e||r)&&n.loaderEnabled,p=(e||r)&&n.loaderEnabled,h=(e||r)&&n.loaderEnabled,m=(e||r)&&n.loaderEnabled&&n.hasImpression&&n.version>="1.1.24";return{isTokenGameURL:e,isMasterGameURL:t,isExtHostedGameURL:r,noConsoleBanner:s,noLoadedEvent:u,noBlockerEvent:c,noPreroll:h,parentURL:i,parentDomain:o,topDomain:a&&a.length?a:o,noGAPageView:d,noLotamePageView:l,noGamedockSDK:f,noMinijuegosSDK:p,version:n.version,pauseGameOnStartup:m,depth:mt(),domainMatched:o===a,exports:{formatTokenURLSearch:this._formatTokenURLSearch.bind(this),extendUrlQuery:this._extendUrlQuery.bind(this),base64Encode:this._base64_encode.bind(this)}}}},{key:"_isHostHTML5Domain",value:function(){var e=new C(location.href);return"html5.gamedistribution.com"===(null==e?void 0:e.host.toLowerCase())}},{key:"_isExternalHoster",value:function(){var e;return null===(e=this._gameData)||void 0===e||null===(e=e.extHosting)||void 0===e?void 0:e.enabled}},{key:"_whichFrame",value:function(){return(this._isMasterGameURL()||this._isExtHostedGameURL())&&!this._isTokenGameURL()?"loader-frame":"game-frame"}},{key:"_isMasterGameURL",value:function(){var e=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i;return e.test(location.href)||!this._isTokenGameURL()&&e.test(document.referrer)}},{key:"_checkTokenGameUrl",value:function(){var e=C(location.href),t=e.origin,r=e.pathname,n="".concat(t).concat(r);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i.test(n)}},{key:"_isTokenGameURL",value:function(){var e,t=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i,r="1"===(null===(e=C(location.href,!0).query)||void 0===e?void 0:e.rd);return t.test(location.href)||!r&&t.test(document.referrer)}},{key:"_isExtHostedGameURL",value:function(){var e=/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i;return e.test(location.href)||e.test(document.referrer)}},{key:"_isLoaderGameURL",value:function(){return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href)&&location.href.startsWith("https://html5.gamedistribution.com")}},{key:"_getTokenGameURLConfig",value:function(){try{var e,t=/http[s]?:\/\/html5\.gamedistribution\.com\/[A-Za-z0-9]{8}\/[A-Fa-f0-9]{32}\/.*/i;if(t.test(location.href)){var r=new C(location.href,!0);if(!r.query.gd_zone_config)return;e=r.query.gd_zone_config}else if(t.test(document.referrer)){var n=new C(document.referrer,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else{var i=new C(location.href,!0);if(!i.query.gd_zone_config)return;e=i.query.gd_zone_config}return JSON.parse(it.decode(decodeURIComponent(e)))}catch(e){}}},{key:"_getSplashTemplate",value:function(e){var t=e.splash;return new TT(t).splash()}},{key:"_createPrerollPromoTemplate",value:(n=t(d.mark((function e(t){var r,n,i,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=null===(r=t.promo)||void 0===r?void 0:r[null===(n=t.promo)||void 0===n||null===(n=n.template)||void 0===n?void 0:n.preroll],o=new OT(i),e.abrupt("return",o.promo());case 3:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"_formatTokenURLSearch",value:function(e){var t="";try{t=encodeURIComponent(it.encode(JSON.stringify(e)))}catch(e){}try{var r=new C(location.href,!0);return r.query=r.query||{},r.query.gd_zone_config=t,"?".concat(l.stringify(r.query))}catch(e){return"?gd_zone_config=".concat(t)}}},{key:"_extendUrlQuery",value:function(e,t){var r=new C(e,!0);return r.query=AL(AL({},r.query),t),r.toString()}},{key:"_base64_encode",value:function(e){return it.encode(JSON.stringify(e))}},{key:"session",value:function(){var e=this;return new Promise(function(){var r=t(d.mark((function t(r,n){var i;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.sdkReady;case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:i=e._gameData,r({ads:{display:{enabled:i.dAds.enabled},rewarded:{enabled:i.rewardedAds}},location:{parentDomain:e._bridge.parentDomain,topDomain:e._bridge.topDomain,parentURL:e._bridge.parentURL,depth:e._bridge.depth,loadedByGameZone:e._bridge.isTokenGameURL}});case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(e,t){return r.apply(this,arguments)}}())}},{key:"sendGenericEvent",value:function(e){console.log("Received generic event",e,this._isMasterGameURL());try{var t,r;if("track-milestone"==e.eventName)_L.tracking.trackEvent("milestoneAchieved",{pageId:this.options.gameId,pageType:"game",isAuthorized:null===(t=e.data)||void 0===t?void 0:t.isAuthorized,milestoneDescription:null===(r=e.data)||void 0===r?void 0:r.milestoneDescription});else if("game_event"==e.eventName)return this._gameEventPostMessage(e)}catch(e){console.log(e.message)}}},{key:"_gameEventPostMessage",value:function(e){if(void 0!==e.data.level&&this._numberValidator(e.data.level))if(void 0!==e.data.score&&this._numberValidator(e.data.score)){var t={type:e.eventName,data:e.data};window.location!==window.top.location&&window.top.postMessage(t,"*")}else console.log("Level data type should be number!");else console.log("Level data type should be number!")}},{key:"_numberValidator",value:function(e){return"number"==typeof e&&/^\d*$/.test(e)}},{key:"_getisMobile",value:function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),!1===t&&window.orientation>-1&&(t=!0),t}},{key:"_get_game_thumbnail_url",value:function(){var e=this,t=this._gameData,n=t.assets.find(function(t){return r(this,e),t.hasOwnProperty("name")&&512===t.width&&512===t.height}.bind(this));return n||(n=t.assets.length>0?t.assets[0]:{name:"logo.svg"}),"https://img.gamedistribution.com/".concat(n.name)}},{key:"_post_message",value:function(e){var t,r=e.topic,n=e.data,i=null!==(t=location.ancestorOrigins)&&void 0!==t&&t.length?location.ancestorOrigins[location.ancestorOrigins.length-1]:"*";try{var o=window.top||window.parent;o&&o.postMessage({source:"gdsdk",topic:r,data:n},i)}catch(e){console.error((null==e?void 0:e.message)||e)}}},{key:"fixScore",value:function(){var e,t,n=this;if(null===(e=this._gameData)||void 0===e||null===(e=e.fix_score)||void 0===e?void 0:e.enabled){var i=(null===(t=this._gameData)||void 0===t||null===(t=t.fix_score)||void 0===t?void 0:t.wait)||10;setTimeout(function(){var e=this;r(this,n),this.showAd(ot.Interstitial,{position:"midroll"}).catch(function(t){r(this,e)}.bind(this))}.bind(this),1e3*i)}}},{key:"executeCompensation",value:(e=t(d.mark((function e(n){var i,o,a,s,u,c,l=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(null==n?void 0:n.whenAvailable)||!1,o=!this.adInstance.requestRunning&&!this.adFlowRunning,a=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.showAd(ot.Interstitial,{position:"midroll",isCompensation:!0});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!o){e.next=10;break}return e.next=7,a();case 7:return s=e.sent,e.abrupt("return",s);case 10:if(!i){e.next=17;break}return u=!1,e.next=15,new Promise(function(e,n){var i=this;r(this,l);var o=!1,s=setInterval(t(d.mark((function t(){var r;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i.adInstance.requestRunning||i.adFlowRunning){t.next=19;break}return clearInterval(s),t.prev=4,t.next=7,a();case 7:r=t.sent,o=!0,e(r),u=!0,t.next=19;break;case 14:t.prev=14,t.t0=t.catch(4),_u("[compensation] execution error after became available",t.t0),e({err:t.t0,success:!1}),u=!0;case 19:case"end":return t.stop()}}),t,null,[[4,14]])}))),1e3);setTimeout(function(){r(this,i),o||u||e({success:!1})}.bind(this),6e4)}.bind(this));case 15:return c=e.sent,e.abrupt("return",c);case 17:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"decideToGiveAGift",value:function(e){var n=this;try{var i,o=null===(i=this._gameData)||void 0===i?void 0:i.gft[e],a="gift";if(!TM({rateType:a,gameData:this._gameData}))return void _u("[compensation] rate check did not pass for ".concat(a));_u("[compensation] rate check passed for ".concat(a));var s=setInterval(t(d.mark((function t(){var i=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.adInstance.requestRunning||n.adFlowRunning?console.log("Advertisement already running..."):(_u("gd-adflow WILL GIVE GIFT!!!"),n.showAd(ot.Interstitial,{position:e,isGift:!0}).catch(function(e){r(this,i)}.bind(this)),clearInterval(s),n._giftCount[e]++);case 1:case"end":return t.stop()}}),t,this)}))),1e3*o.durations[this._giftCount[e]].wait)}catch(e){console.log("Advertisement Error...")}}},{key:"send_atom_event",value:function(e,t){this.adInstance._send_atom_event(e,t)}},{key:"get_session_id",value:function(){return bL}},{key:"get_ad_system_init_result",value:function(){return{afg:this.adInstance.afgInitSuccess,ima:this.adInstance.imaInitSuccess}}},{key:"_getDeveloperDomains",value:function(){var e,t;return"developer.gamedistribution.com"===this._topDomain||"developer-acc.gamedistribution.com"===this._topDomain?e=this._topDomain:!0===new RegExp("^localhost").test(this._parentDomain)&&(e="localhost"),e&&(t={"developer-acc.gamedistribution.com":"game-api-acc-real-aws.gamedistribution.com","developer.gamedistribution.com":"game.api.gamedistribution.com",localhost:"game-api-acc-real-aws.gamedistribution.com"}[e]),{developerDomain:e,gameApiDomain:t}}},{key:"_setGameRewardedFlag",value:function(){try{var e=this._getDeveloperDomains(),t=e.developerDomain,r=e.gameApiDomain;if(t){fetch("https://".concat(r,"/game/v2/hasrewarded/").concat(this.options.gameId,"?timestamp=").concat((new Date).valueOf()));try{var n=JSON.stringify({type:"GD_SDK_REWARDED_SET",gameID:this.options.gameId});window.location!==window.top.location?window.top.postMessage(n,"*"):null!==window.opener&&window.opener.location!==window.location&&window.opener.postMessage(n,"*")}catch(e){}}}catch(e){}}},{key:"_getGdModeIfExist",value:function(){var e=this,t=new Proxy(new URLSearchParams(window.location.search),{get:function(t,n){return r(this,e),t.get(n)}.bind(this)});return!t.gd_mode&&window.location.search.includes("gd_mode")?window.location.search.split("gd_mode=")[1]:t.gd_mode}},{key:"_executeMidrollPlus",value:function(){var e,t=this;if(TM({rateType:"midroll+",gameData:this._gameData})&&null!==(e=this._gameData.midroll_plus)&&void 0!==e&&e.enabled&&!this.isMidrollPlusExecuted){var n;this.isMidrollPlusExecuted=!0;var i=this._gameData.midroll_plus.type||"midroll";if(null!==(n=this._gameData.midroll_plus)&&void 0!==n&&n.interval)var o=setInterval(function(){var e,n,a=this;(r(this,t),this.adFlowRunning)||(this.showAd(ot.Interstitial,{position:"midroll",giftType:i,isMidrollPlus:!0}).catch(function(e){r(this,a)}.bind(this)),this._mplus_count++,"infinite"!==(null===(e=this._gameData.midroll_plus)||void 0===e?void 0:e.interval)&&this._mplus_count===(null===(n=this._gameData.midroll_plus)||void 0===n?void 0:n.interval)&&clearInterval(o))}.bind(this),6e4*this._gameData.midroll_plus.timer);else setTimeout(function(){var e=this;r(this,t),this.showAd(ot.Interstitial,{position:"midroll",giftType:i,isMidrollPlus:!0}).catch(function(t){r(this,e)}.bind(this))}.bind(this),this._gameData.midroll)}}}]);var e,n,i,o,a,s,u,c,f,p,h,m,v,g,A,b,y,_,w,x,k,E}();function xL(){return xL=t(d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GD();case 2:if(e.sent){e.next=6;break}return console.log("locus-disabled on proxy level"),e.abrupt("return");case 6:t=["https://pm.azerioncircle.com/p/locus/"],console.log("locus loading"),ht(t[0],"locus",{alternates:t}).catch(function(e){r(this,n),this._sendSDKError(e)}.bind(this));case 9:case"end":return e.stop()}}),e,this)}))),xL.apply(this,arguments)}var kL,EL=new uD.exports.EventEmitter,SL=function(e){var t=this;!function(){xL.apply(this,arguments)}();var n,i=function(e){var n=this;return r(this,t),new Promise(function(t,i){var o=this;r(this,n);var a=function(e){r(this,o),"SDK_GAME_START"===e.name&&(EL.off("sdk-event",a),t())}.bind(this);EL.on("sdk-event",a),m("showAd",{adType:e})}.bind(this))}.bind(this),o=function(){return r(this,t),n||(n=new wL(e)),n}.bind(this),a=function(e){return r(this,t),i(e)}.bind(this),s=function(e){return r(this,t),"gdsdk://preloaded"}.bind(this),u=function(e){return r(this,t),o().showDisplayAd(e)}.bind(this),c=function(){return r(this,t),m("cancelAd")}.bind(this),d=function(){return r(this,t),m("openConsole")}.bind(this),l=function(){return r(this,t),m("showBanner")}.bind(this),f=function(){return r(this,t),m("session")}.bind(this),p=function(e){return r(this,t),m("sendGenericEvent",{options:e})}.bind(this),h=function(){r(this,t),console.log("_sendSDKReady")}.bind(this),m=function(e,n){var i=this;return r(this,t),n||(n={}),new Promise(function(t,o){r(this,i);try{var a={type:"gd-sdk",method:e,options:n};window.parent.postMessage(a,"*"),t()}catch(e){console.log("gd:adp:m:s:error",e),t()}}.bind(this))}.bind(this),v=function(){r(this,t);window.addEventListener("message",(function(e){var t=e.data;e.origin,e.source;var r=t.type,n=t.event;"gd-sdk-on-event"===r&&n&&A(n)}),!1)}.bind(this),g=function(){r(this,t),v(),m("init")}.bind(this),A=function(n){r(this,t);try{EL.emit("sdk-event",n),e.onEvent&&e.onEvent(n)}catch(e){console.log("DEVELOPER ERROR on forwarder-sdk")}}.bind(this);return{showBanner:l,showAd:a,preloadAd:s,showDisplayAd:u,cancelAd:c,openConsole:d,getSession:f,onEvent:A,init:g,_sendSDKReady:h,sendGenericEvent:p}},DL=function(e){var t=SL(e);return t.init(),t},RL=function(){var e=this,t=function(){r(this,e);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href)}.bind(this),n=function(){r(this,e);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i.test(location.href)}.bind(this),i=function(){r(this,e);return/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i.test(location.href)}.bind(this),o=function(){r(this,e);var i="html5.gamedistribution.com"!==C(window.location.href).host;return t()&&!(n()||i)?"loader-frame":"game-frame"}.bind(this);return{isMasterGameURL:t,isTokenGameURL:n,isExtHostedGameURL:i,whichFrame:o}},IL="gd-sdk-frame-handshake-request",CL="gd-sdk-frame-handshake-response",OL=function(e){var t=this;return new Promise(function(e,n){var i=this;r(this,t);var o={type:IL},a=!1;window.addEventListener("message",(function(t){var r=t.data,n=t.origin,i=t.source,o=r.type;if(o===IL){var s={type:CL};i.postMessage(s,n)}else o===CL&&(a=!0,e({origin:n,source:i}))})),setTimeout(function(){r(this,i),a||e()}.bind(this),200),window.parent!==window?window.parent.postMessage(o,"*"):e()}.bind(this))},TL=function(){var e=t(d.mark((function e(){var t,r,n,i,o,a,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$D();case 2:return t=e.sent,e.next=6,OL();case 6:if(r=e.sent,iL.SDKExistsOnUpperFrame=!!r,t){e.next=10;break}return e.abrupt("return",!1);case 10:return n=RL(),i=n.isMasterGameURL,n.isTokenGameURL,o=i(),e.next=14,HD();case 14:return a=e.sent,s=!1,s=a?!o&&!!r:!o,e.abrupt("return",s);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),PL={},ML=function(e){try{if(e.skipForward)return void _u("gd-adflow fw-skip-forward",e);if(_u("gd-adflow fw-forwarding",e),PL.source){var t={type:"gd-sdk-on-event",event:e};PL.source.postMessage(t,PL.origin)}}catch(e){console.log("gd-sdk forwardEvent err",e)}},LL=function(){ML({name:"SDK_READY",status:"success",message:"Everything is ready."}),ML({name:"SDK_GAME_START",status:"success",message:"Advertisement(s) are done. Start / resume the game."}),ML({name:"CONTENT_RESUME_REQUESTED",status:"success",message:"Fired when content should be resumed. This usually happens when an ad finishes or collapses."})},BL=function(e){window.addEventListener("message",(function(n){var i=n.data,o=n.origin,a=n.source,s=i.type,u=i.method,c=i.options;if("gd-sdk-self"!==s){if("gd-sdk"===s){if(!PL.source&&"init"===u)return function(e){var t=e.source,r=e.origin;PL={source:t,origin:r}}({source:a,origin:o}),void LL();var l=e[u];l&&t(d.mark((function t(){var n,i=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,function(){r(this,i),"showAd"===u&&ku.firstAdapterModeAdsense&&"rewarded"!==c.adType&&(console.log("promo-test, set first adapter to adssense 3"),c.params=c.params?c.params:{},c.params.adapter="adsense")}.bind(this),!(n=l.apply(e,Object.values(c)))||!n.then){t.next=6;break}return t.next=6,n;case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.log("gd:adp:m:r onFrameMessage error",t.t0);case 11:case"end":return t.stop()}}),t,this,[[0,8]])})))()}}else{var f={type:"gd-sdk",method:u,options:c};window.postMessage(f,location.origin)}}),!1)},jL=function(e){!function(e){var t=e.onEvent;e.onEvent=function(e){ML(e),t.apply(this,arguments)}}(e);var t=new wL(e);return BL(t),t},UL=function(){return M((function e(){O(this,e),this.moduleName="GDAeria",this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/gd-sdk-aeria/1.0.1/dist/default/iife/index.js",dependencies:[]},Qb(this.moduleName,this.moduleConfig)}),[{key:"load",value:(r=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Xb(this.moduleName);case 3:this.module=e.sent,_u("aeria module load success",this.module),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("aeria module load error",e.t0),this.module=null;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return r.apply(this,arguments)})},{key:"runYMenu",value:(e=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.gameId,this.module){e.next=4;break}return e.next=4,this.load();case 4:(new this.module.Aeria).renderYMenu({gameId:r});case 6:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})}]);var e,r}(),FL=function(){var e=t(d.mark((function e(){var r,n,i,o,a,s,u,c,l,f,p,h,m,v,g,A;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=function(){var e,t=(e=new iD).get("partner.domain.value")||e.get("top.domain.value");return{isAeriaDomain:"minigame.aeriagames.jp"===t||"minigame-stg.aeriagames.jp"===t,isAeriaStagingDomain:"minigame-stg.aeriagames.jp"===t}}(),n=r.isAeriaDomain,i=r.isAeriaStagingDomain,!n){e.next=21;break}return s=function(){var e=(new iD).get("partner.url.value");return new C(e,!0)},u=function(){var e="ae-soft-323";try{var t=s(),r=t.pathname,n=r.split("/"),i=n[n.length-1];wu("aeria-ylogin:loc",t,r,i),e=i}catch(e){xu("Error on getting aeria game id",e)}return e}(),c={action:"score",data:{gameId:u,score:100},env:i?"staging":"production",system:"Softgames"},l=function(){var e=window.parent||window,t=c;e.postMessage(t,"*")},f=new It,e.next=13,jD();case 13:p=e.sent,h=null==p||null===(o=p.aeria)||void 0===o?void 0:o.yMenuExcluded,m=null==p||null===(a=p.aeria)||void 0===a?void 0:a.yLoginExcluded,f.subscribe("AD_FLOW_COMPLETE",(function(e){"midroll"===e.adType&&(m||l())})),v=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(new UL).runYMenu({gameId:u});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=RL(),A=g.whichFrame,"game-frame"===A()&&(h||v());case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),NL=function(e){try{var t=aD(e);e.gameId||t.send("nogameid",{message:"".concat(Xy.parentURL)})}catch(e){}},$L=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,FL();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.log("error on creating some bridge module");case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),GL=function(){var e=t(d.mark((function e(t){var r,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,NL(t),BD(t),e.next=5,TL();case 5:return r=e.sent,e.next=8,$L();case 8:return window.isForwarderFrame=r,n=r?DL(t):jL(t),ZD(),e.abrupt("return",n);case 14:return e.prev=14,e.t0=e.catch(0),console.log("gd:adp: sdk adaptor create failed, fallback to default adapter",e.t0),e.abrupt("return",jL(t));case 18:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(t){return e.apply(this,arguments)}}(),HL={create:GL};function zL(){return(zL=t(d.mark((function e(t,r){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,VD();case 2:if(!e.sent){e.next=7;break}e.t0=window.gdsdk,e.next=10;break;case 7:return e.next=9,VL(t);case 9:e.t0=e.sent;case 10:return n=e.t0,e.abrupt("return",r(n));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ZL,KL,qL=!1;function VL(e){var t=this;return new Promise(function(n,i){var o=this;if(r(this,t),kL)return n(kL);if(qL)var a=setInterval(function(){r(this,o),kL&&(qL=!1,clearInterval(a),n(kL))}.bind(this),100);else qL=!0,HL.create(e).then(function(e){r(this,o),kL=e,e._sendSDKReady(),qL=!1,n(kL)}.bind(this))}.bind(this))}function WL(e){return VL(e),{invoke:function(t){return function(e,t){return zL.apply(this,arguments)}(e,t)}}}function YL(e,n){var i=this;return new Promise(function(o,a){var s,u=this;r(this,i);var c=function(e){var t="https://pm.azerioncircle.com/pkg/@bygd/gd-sdk-wrp/dist/default/iife/index.js";return e&&(t="https://pm.azerioncircle.com/@bygd/gd-sdk-wrp/".concat(e,"/dist/default/iife/index.js")),[t]}(null==n||null===(s=n.game)||void 0===s?void 0:s.version);QL({text:"sdk-wrapper-script-load"}),ht(c[0],"gd-sdk-wrp",{alternates:c}).catch(function(e){r(this,u),QL({text:"sdk-wrapper load error",error:e.message}),this._sendSDKError(e),a(e)}.bind(this)).then(t(d.mark((function t(){var r,i;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,QL({text:"sdk-wrapper load success"}),r=window.GDSDKWRP.GDSDKWRP,i=new r,QL({text:"sdk-wrapper before gdSdkWrp.init"}),t.next=7,i.init(e,n);case 7:KL=t.sent,QL({text:"sdk-wrapper after gdSdkWrp.init"}),o(KL),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(0),QL({text:"sdk-wrapper load error 2",error:t.t0.message}),a(t.t0);case 16:case"end":return t.stop()}}),t,null,[[0,12]])}))))}.bind(this))}function QL(e){try{var t={tp:"gd.wrp",args:e};fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(it.encode(JSON.stringify(t))))),console.log(fP(Object.values(e)))}catch(e){}}function JL(e){if(e){var t=e.name,r=e.message,n=e.status;try{QL({text:"samsung-wrp send-game-event",evt:e,hasOptions:!!ZL}),ZL&&ZL.onEvent({name:t,message:r,status:n})}catch(t){QL({text:"samsung-wrp DEVELOPER-ERROR",evt:e,err:t})}}}function XL(e){return eB.apply(this,arguments)}function eB(){return(eB=t(d.mark((function e(t){var r,n,i,o,a,s,u,c,l;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ZL=t,BD(t),e.next=4,jD();case 4:if(o=e.sent,!KL){e.next=7;break}return e.abrupt("return",KL);case 7:if(a=null==o||null===(r=o.sdk_wrp)||void 0===r?void 0:r.enabled,s=null==o||null===(n=o.sdk_wrp)||void 0===n?void 0:n.version,u=null==o?void 0:o.gameId,c=null==o?void 0:o.title,rB("isWrapEnabled ".concat(a)),a){e.next=14;break}return e.abrupt("return");case 14:return l=null==o||null===(i=o.sdk_wrp)||void 0===i?void 0:i.wrapper,e.next=17,YL(l,{onEvent:JL,game:{gameId:u,title:c,version:s}});case 17:return KL=e.sent,e.abrupt("return",KL);case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function tB(){return tB=t(d.mark((function e(t){var r,n,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._get_developer_sets,rB("beforeGetDeveloperSettings"),n=r(),rB("afterGetDeveloperSettings"),e.prev=4,e.next=7,XL(n);case 7:i=e.sent,rB("after get SDK wrapper: ".concat(!!i)),i&&(rB("setting SDK Wrapper as gd-sdk"),window.sdkWrapper=i,window.gdsdk=i,window.gdApi=window.gdsdk),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),console.log("Error on SDK wrapper init",e.t0),rB("Error on SDK wrapper init: ".concat(e.t0.message));case 16:case"end":return e.stop()}}),e,null,[[4,12]])}))),tB.apply(this,arguments)}function rB(e){window.sdkLog.push(e)}function nB(){var e={};try{"object"===("undefined"==typeof GD_OPTIONS?"undefined":n(GD_OPTIONS))&&GD_OPTIONS?e=GD_OPTIONS:window.gdApi&&"object"===n(window.gdApi.q[0][0])&&window.gdApi.q[0][0]&&((e=window.gdApi.q[0][0]).hasOwnProperty("advertisementSettings")||(e.advertisementSettings={autoplay:!0}))}catch(e){console.log("_get_developer_sets failed",e)}return e}window.sdkLog=[],"img.samsungapps.com"===function(){var e,t,r=C(window.location.href,!0),n=r.host,i=r.query,o=n,a=null==i?void 0:i.gd_sdk_referrer_url;return a&&(a=a.startsWith("https://")||a.startsWith("http://")?a:"https://".concat(a),null!==(t=e=C(a,!0))&&void 0!==t&&t.host&&(o=e.host)),o}()?rB("skipped normal SDK init!"):(!function(){bT();var e=WL(nB());function n(){var n=this;this.AdType=ot,this.preloadAd=function(){var n=t(d.mark((function t(n){var i,o=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.invoke(function(e){return r(this,o),e.preloadAd(n)}.bind(this));case 2:return i=t.sent,wu("[developer-event] preloadAd check",i),t.abrupt("return",i);case 5:case"end":return t.stop()}}),t,this)})));return function(e){return n.apply(this,arguments)}}(),this.showAd=function(){var n=t(d.mark((function t(n,i){var o,a=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.invoke(function(e){var t=this;if(r(this,a),n===ot.Display)return e.showDisplayAd(i);var o={};return function(){r(this,t),ku.firstAdapterModeAdsense&&(console.log("promo-test, set first adapter to adssense 2"),o.adapter="adsense")}.bind(this),e.showAd(n,o)}.bind(this));case 2:return o=t.sent,wu("[developer-event] after showAd",o),t.abrupt("return",o);case 5:case"end":return t.stop()}}),t,this)})));return function(e,t){return n.apply(this,arguments)}}(),this.cancelAd=function(){var t=this;return e.invoke(function(e){return r(this,t),e.cancelAd()}.bind(this))},this.openConsole=function(){var t=this;return e.invoke(function(e){return r(this,t),e.openConsole()}.bind(this))},this.getSession=function(){var t=this;return e.invoke(function(e){return r(this,t),e.session()}.bind(this))},this.sendEvent=function(t){var n=this;return e.invoke(function(e){return r(this,n),e.sendGenericEvent(t)}.bind(this))},this.leaderboard={show:function(){r(this,n),ty.showLeaderboard()}.bind(this),addScore:function(e){r(this,n),ty.addScore(e)}.bind(this)}}n.prototype=new function(){this.showBanner=function(){var t=this;return e.invoke(function(e){return r(this,t),e.showBanner()}.bind(this))},this.play=function(){},this.customLog=function(){}},window.gdsdk=new n,window.gdApi=window.gdsdk}(),rB("afterSDKInit")),function(e){tB.apply(this,arguments)}({_get_developer_sets:nB})}();